@stacksjs/stx 0.2.378 → 0.2.380
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-vsvjw3bp.js → chunk-0jts0tmp.js} +1 -1
- package/dist/{chunk-b3rqr465.js → chunk-0nknfsxa.js} +1 -1
- package/dist/{chunk-ghn6rvgw.js → chunk-123vn4r5.js} +45 -45
- package/dist/{chunk-rfq5h4zn.js → chunk-14bq0xmx.js} +1 -1
- package/dist/{chunk-054eyrwg.js → chunk-2g6k94hw.js} +1 -1
- package/dist/chunk-3ef52k5e.js +2 -0
- package/dist/{chunk-dnctgb5m.js → chunk-43ammxkh.js} +1 -1
- package/dist/{chunk-0vgw4496.js → chunk-508xtkyq.js} +17 -17
- package/dist/{chunk-68vgysme.js → chunk-585vt0xw.js} +14 -1
- package/dist/chunk-5d8ppxbm.js +2 -0
- package/dist/{chunk-dahpshkz.js → chunk-60s7hgym.js} +2 -2
- package/dist/{chunk-gagw5rvw.js → chunk-660e7tfb.js} +1 -1
- package/dist/{chunk-v48ngnf4.js → chunk-6esv7x92.js} +1 -1
- package/dist/{chunk-0gbbfr5v.js → chunk-6vqzyvn2.js} +1 -1
- package/dist/chunk-73kw81xx.js +2 -0
- package/dist/chunk-7ngmxv4z.js +47 -0
- package/dist/{chunk-tm8v7xc0.js → chunk-8kwmj99g.js} +1 -1
- package/dist/chunk-8nqkzq6v.js +2 -0
- package/dist/{chunk-vvzw2vyk.js → chunk-8qs79pym.js} +1 -1
- package/dist/{chunk-jehmjxnq.js → chunk-98cret6x.js} +1 -1
- package/dist/{chunk-h0k7xkah.js → chunk-9jh1etzh.js} +1 -1
- package/dist/{chunk-ds9hax17.js → chunk-a3fsqjag.js} +1 -1
- package/dist/{chunk-w499e1n1.js → chunk-c9fg7wte.js} +1 -1
- package/dist/{chunk-74efeytn.js → chunk-cdnytss4.js} +1 -1
- package/dist/chunk-chejthpz.js +2 -0
- package/dist/chunk-cvfyjqbp.js +2 -0
- package/dist/{chunk-ywcx2q3t.js → chunk-dhh2r9vj.js} +1 -1
- package/dist/{chunk-x3e2wvk5.js → chunk-f486k78c.js} +1 -1
- package/dist/{chunk-mrxrz9b1.js → chunk-fa68t20e.js} +1 -1
- package/dist/{chunk-zw91ws20.js → chunk-j8vff5b1.js} +1 -1
- package/dist/{chunk-yfqxzkex.js → chunk-jtnhq04d.js} +1 -1
- package/dist/{chunk-aj6dbp5y.js → chunk-m1axasq6.js} +1 -1
- package/dist/{chunk-8dqjqnes.js → chunk-m859sqt4.js} +119 -119
- package/dist/{chunk-cf7qz2yz.js → chunk-nh6p0k17.js} +1 -1
- package/dist/chunk-nqa2rqjs.js +2 -0
- package/dist/chunk-pvxh9ms3.js +2 -0
- package/dist/{chunk-dvd2c0ab.js → chunk-qsygwwkt.js} +1 -1
- package/dist/{chunk-kb6h4vf7.js → chunk-rqshksja.js} +1 -1
- package/dist/{chunk-ykyecpyx.js → chunk-sf4e6cnx.js} +1 -1
- package/dist/{chunk-skpj0796.js → chunk-sgraj16m.js} +1 -1
- package/dist/{chunk-f95kp2ch.js → chunk-tfk1w25g.js} +1 -1
- package/dist/{chunk-8ys85nkt.js → chunk-v8q5jr1g.js} +2 -2
- package/dist/{chunk-8h4het40.js → chunk-vafmd261.js} +1 -1
- package/dist/{chunk-4v4xer9k.js → chunk-vwh3j3fh.js} +2 -2
- package/dist/{chunk-rft4sz7t.js → chunk-w6mt6tt1.js} +1 -1
- package/dist/chunk-wea6j8hh.js +2 -0
- package/dist/{chunk-s54sn5xa.js → chunk-wfeshaa9.js} +1 -1
- package/dist/chunk-wkgywcpz.js +2 -0
- package/dist/{chunk-at4s8qvj.js → chunk-wpe1ns0w.js} +1 -1
- package/dist/{chunk-ewr4ym70.js → chunk-wxfbfa9w.js} +1 -1
- package/dist/{chunk-75d91rgh.js → chunk-xcf8q763.js} +1 -1
- package/dist/{chunk-abp8t91q.js → chunk-xpw4r8qb.js} +1 -1
- package/dist/{chunk-tnv2bhye.js → chunk-y2drxh2s.js} +1 -1
- package/dist/{chunk-vak9j9cc.js → chunk-yht9jjry.js} +1 -1
- package/dist/{chunk-4znpx8a5.js → chunk-yk277pd8.js} +1 -1
- package/dist/{chunk-41hqk2fp.js → chunk-ytksxjme.js} +1 -1
- package/dist/{chunk-x5bsgr9k.js → chunk-zhzcahz5.js} +1 -1
- package/dist/{chunk-sc5kdhc5.js → chunk-zzvkcf01.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/env.js +6 -3
- package/dist/props.js +2 -1
- package/dist/pwa.js +1 -1
- package/dist/signals.js +14 -1
- package/dist/ssg.js +2 -2
- package/dist/utils.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-4r1safma.js +0 -2
- package/dist/chunk-ab52p413.js +0 -2
- package/dist/chunk-akvf7pgp.js +0 -2
- package/dist/chunk-cqs0hfrw.js +0 -2
- package/dist/chunk-qweye95d.js +0 -2
- package/dist/chunk-rc3d4yyy.js +0 -2
- package/dist/chunk-ryc446j9.js +0 -2
- package/dist/chunk-s7nd2979.js +0 -47
- package/dist/chunk-s9j8pgz8.js +0 -2
- package/dist/chunk-x2r3gjtw.js +0 -2
- package/dist/chunk-x8vhy875.js +0 -2
|
@@ -8319,7 +8319,20 @@ else {
|
|
|
8319
8319
|
// the work, so onMount must fire when the trigger actually hydrates the
|
|
8320
8320
|
// scope, not now. deferHydration's run() flushes it then.
|
|
8321
8321
|
var scopeDeferred = el.hasAttribute && el.hasAttribute('stx-hydrate') && !el.__stx_hydrated;
|
|
8322
|
-
if
|
|
8322
|
+
// A component behind a false :if is in the document's MARKUP but not in
|
|
8323
|
+
// the document: bindIf detached the subtree before this walk reached it,
|
|
8324
|
+
// while the component's own setup script already ran and queued its
|
|
8325
|
+
// onMount. Mounting it from here anyway is what made being mounted
|
|
8326
|
+
// unusable as an open state (stacksjs/stx#2036) -- three gated modal
|
|
8327
|
+
// shells each locked body scroll and registered an Escape handler before
|
|
8328
|
+
// anything had been opened, so the page could not be scrolled and Escape
|
|
8329
|
+
// reached whichever instance registered last.
|
|
8330
|
+
//
|
|
8331
|
+
// Left unmounted rather than mounted-and-torn-down, so hydrateComponentScopes
|
|
8332
|
+
// flushes it when bindIf shows the subtree -- the same deferral
|
|
8333
|
+
// stx-hydrate uses above, and the same flush an island gets.
|
|
8334
|
+
var scopeDetached = el.isConnected === false;
|
|
8335
|
+
if (scopeVars && scopeVars.__mountCallbacks && !scopeVars.__mounted && !scopeDeferred && !scopeDetached) {
|
|
8323
8336
|
scopeVars.__mounted = true;
|
|
8324
8337
|
runMountCallbacks(scopeVars.__mountCallbacks, scopeDestroySink(scopeVars));
|
|
8325
8338
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Po as a,Qo as b,Ro as c,So as d}from"./chunk-508xtkyq.js";import"./chunk-nh6p0k17.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-a3fsqjag.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-rqshksja.js";import"./chunk-k6bagvmz.js";import"./chunk-zhzcahz5.js";import"./chunk-8kwmj99g.js";import"./chunk-7ngmxv4z.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{b as reportDeferredLoopWarnings,c as processLoops,a as parseLoopBinding,d as declareBareLoopHead};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$n as M,Bo as x,Jo as k,Mp as w,Tl as A,Ul as b,bn as T,cn as y,lm as B,nm as F,no as R,wr as P}from"./chunk-
|
|
2
|
+
import{$n as M,Bo as x,Jo as k,Mp as w,Tl as A,Ul as b,bn as T,cn as y,lm as B,nm as F,no as R,wr as P}from"./chunk-508xtkyq.js";import{Tw as v}from"./chunk-myyj9qp3.js";function j(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,Y){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(Y?.some((X)=>q>=X.start&&N<=X.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,Y)=>J.start-Y.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function D(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>b(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as f,resolve as H}from"path";function S(K){let z=K,G=M(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],Y=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],X=$[2],E=$[0],Z=N.includes("server");if(Y(X))J.push(E);else if(Z)Q.push(X);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,X,E=[];while((X=N.exec(q))!==null){let Z=X.index+X[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:X.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -14,5 +14,5 @@ ${Q.join(`
|
|
|
14
14
|
`)}`}else{if(G.processClientScripts!==!1&&Q.length>0){let N=Y.__stx_event_bindings||[],X=B(Y),Z=(await Promise.all(Q.map(async(I)=>{let W=I.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!W)return I;return await F(W[1],{eventBindings:N,templateContent:q,serverData:X,filePath:z})}))).join(`
|
|
15
15
|
`);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${Z}
|
|
16
16
|
$1`);else q+=`
|
|
17
|
-
${Z}`}q=await R(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-
|
|
17
|
+
${Z}`}q=await R(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-xcf8q763.js");q=await N(q)}catch{}return q}
|
|
18
18
|
export{j as pk,C as qk,D as rk,o as sk,r as tk,V as uk};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ki as T,Li as u,Mi as A}from"./chunk-ra1s4s6b.js";import{_k as g,fl as h,ll as b}from"./chunk-
|
|
2
|
+
import{Ki as T,Li as u,Mi as A}from"./chunk-ra1s4s6b.js";import{_k as g,fl as h,ll as b}from"./chunk-f486k78c.js";import{Ao as f,bm as k,gq as B,yr as I}from"./chunk-508xtkyq.js";import{wv as D,xv as S}from"./chunk-s3tpyage.js";import{Bv as F}from"./chunk-x8t29tnr.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
|
|
3
3
|
${Q.trim()}`)}catch(Q){console.warn(`[stx] Failed to load composable ${q}:`,Q)}if(R.length===0||L.size===0)return A(j,M,W,""),null;let t=[...L].map((q)=>` try { if (!(${JSON.stringify(q)} in __c)) __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
|
|
4
4
|
`),N=JSON.stringify([...L]),E=R.join(`
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as lm,$a as oo,$b as zp,$c as zq,$d as zr,A as Xk,Aa as zn,Ab as To,Ac as _p,Ad as _q,Ae as es,B as Yk,Ba as An,Bb as Uo,Bc as $p,Bd as $q,Be as fs,C as Zk,Ca as Nn,Cb as Vo,Cc as aq,Cd as ar,Ce as gs,D as _k,Da as On,Db as Wo,Dc as bq,Dd as br,De as hs,E as Ql,Ea as Pn,Eb as Xo,Ec as cq,Ed as cr,Ee as is,F as Rl,Fa as Qn,Fb as Yo,Fc as dq,Fd as dr,Fe as js,G as Sl,Ga as Rn,Gb as Zo,Gc as eq,Gd as er,Ge as ks,H as Tl,Ha as Sn,Hb as _o,Hc as fq,Hd as fr,He as ls,I as Ul,Ia as Wn,Ib as $o,Ic as gq,Id as gr,Ie as ms,J as Vl,Ja as Xn,Jb as ap,Jc as hq,Jd as hr,Je as ns,K as Wl,Ka as Yn,Kb as bp,Kc as iq,Kd as ir,Ke as os,L as Xl,La as Zn,Lb as cp,Lc as jq,Ld as jr,M as Yl,Ma as _n,Mb as dp,Mc as kq,Md as kr,N as Zl,Na as $n,Nb as lp,Nc as lq,Nd as lr,O as _l,Oa as ao,Ob as mp,Oc as mq,Od as mr,P as $l,Pa as bo,Pb as np,Pc as nq,Pd as nr,Q as am,Qa as co,Qb as op,Qc as oq,Qd as or,R as bm,Ra as eo,Rb as pp,Rc as pq,Rd as pr,S as cm,Sa as fo,Sb as qp,Sc as qq,Sd as qr,T as dm,Ta as go,Tb as rp,Tc as rq,Td as rr,U as em,Ua as ho,Ub as sp,Uc as sq,Ud as sr,V as fm,Va as io,Vb as tp,Vc as tq,Vd as tr,W as gm,Wa as jo,Wb as up,Wc as uq,Wd as ur,X as hm,Xa as ko,Xb as vp,Xc as vq,Xd as vr,Y as im,Ya as lo,Yb as wp,Yc as wq,Yd as wr,Z as jm,Za as mo,Zb as xp,Zc as xq,Zd as xr,_ as km,_a as no,_b as yp,_c as yq,_d as yr,aa as mm,ab as po,ac as Ap,ad as Aq,ae as Ar,ba as nm,bb as qo,bc as Bp,bd as Bq,be as Hr,ca as om,cb as ro,cc as Cp,cd as Cq,ce as Ir,da as pm,db as so,dc as Dp,dd as Dq,de as Jr,ea as qm,eb as to,ec as Ep,ed as Eq,ee as Kr,fa as rm,fb as uo,fc as Fp,fd as Fq,fe as Lr,ga as sm,gb as vo,gc as Gp,gd as Gq,ge as Mr,ha as tm,hb as wo,hc as Hp,hd as Hq,he as Nr,ia as um,ib as xo,ic as Ip,id as Iq,ie as Or,ja as vm,jb as yo,jc as Jp,jd as Jq,je as Pr,ka as wm,kb as zo,kc as Kp,kd as Kq,ke as Qr,la as xm,lb as Ao,lc as Lp,ld as Lq,le as Rr,ma as ym,mb as Bo,mc as Mp,md as Mq,me as Sr,na as zm,nb as Eo,nc as Np,nd as Nq,ne as Tr,o as a,oa as Am,ob as Fo,oc as Op,od as Oq,oe as Ur,p as Ik,pa as on,pb as Go,pc as Pp,pd as Pq,pe as Vr,q as Jk,qa as pn,qb as Ho,qc as Qp,qd as Qq,qe as Wr,r as Kk,ra as qn,rb as Jo,rc as Rp,rd as Rq,re as Xr,s as Lk,sa as rn,sb as Ko,sc as Sp,sd as Sq,se as Yr,t as Mk,ta as sn,tb as Lo,tc as Tp,td as Tq,te as Zr,u as Nk,ua as tn,ub as Mo,uc as Up,ud as Uq,ue as _r,v as Ok,va as un,vb as Oo,vc as Vp,vd as Vq,ve as $r,w as Pk,wa as vn,wb as Po,wc as Wp,wd as Wq,we as as,x as Qk,xa as wn,xb as Qo,xc as Xp,xd as Xq,xe as bs,y as Vk,ya as xn,yb as Ro,yc as Yp,yd as Yq,ye as cs,z as Wk,za as yn,zb as So,zc as Zp,zd as Zq,ze as ds}from"./chunk-8dqjqnes.js";import{Le as ep,Me as fp,Ne as gp,Oe as hp,Pe as ip,Qe as jp,Re as kp}from"./chunk-vvzw2vyk.js";import{Se as Co,Te as Do}from"./chunk-7hb89n3z.js";import{Ue as Io}from"./chunk-rft4sz7t.js";import{Ve as nn}from"./chunk-ywcx2q3t.js";import{We as Tn,Xe as Un,Ye as Vn,Ze as No}from"./chunk-74efeytn.js";import{$e as al,_e as $k,af as bl,bf as cl,cf as dl,df as el,ef as fl,ff as gl,gf as hl,hf as il,if as jl,jf as kl,kf as ll,lf as ml,mf as nl}from"./chunk-n0d7nwhd.js";import{nf as El,of as Fl,pf as Gl,qf as Hl,rf as Il,sf as Jl,tf as Kl,uf as Ll,vf as Ml,wf as Nl,xf as Ol,yf as Pl}from"./chunk-m7zebyq5.js";import{Af as Dl,zf as Cl}from"./chunk-eewneg7t.js";import{Bf as ol,Cf as pl,Df as ql,Ef as rl,Ff as sl,Gf as tl,Hf as ul,Jf as vl,Kf as wl,Lf as xl,Mf as yl,Nf as zl,Of as Al,Rf as Bl}from"./chunk-km3e88cy.js";import{Sf as Xm,Tf as Ym,Uf as Zm,Vf as _m,Wf as $m,Xf as mn}from"./chunk-aj6dbp5y.js";import{$f as Em,Yf as Bm,Zf as Cm,_f as Dm,ag as Fm,bg as Gm,cg as Hm,dg as Im,eg as Jm,fg as Km,gg as Lm,hg as Mm,ig as Nm,jg as Om,kg as Pm,lg as Qm,mg as an,ng as bn,og as cn,pg as dn,qg as en,rg as fn,sg as gn,tg as hn,ug as jn,vg as kn,wg as ln}from"./chunk-4v4xer9k.js";import{xg as Rm,yg as Sm}from"./chunk-0knxnyq6.js";import{Ag as Cn,Bg as Dn,Cg as En,Dg as Fn,Eg as Gn,Fg as Hn,Gg as In,Hg as Jn,Ig as Kn,Jg as Ln,Kg as Mn,zg as Bn}from"./chunk-634gaa9d.js";import{Lg as ri,Mg as si,Ng as ti,Og as ui,Pg as vi,Qg as wi}from"./chunk-dnctgb5m.js";import{Rg as Mj,Sg as Nj,Tg as Oj,Xg as Pj,Yg as Qj,Zg as Rj}from"./chunk-an1vn2mr.js";import{$g as Yj,_g as Xj,ah as Zj,bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk}from"./chunk-m2c9847h.js";import{jh as Cj,kh as Dj,lh as Ej,mh as Fj,nh as Gj,ph as Hj,qh as Ij,rh as Jj,sh as Kj,th as Lj}from"./chunk-bcpjhcpn.js";import{uh as xk,wh as yk}from"./chunk-y4zddt5r.js";import{Ch as Mh,Dh as Nh,Eh as Oh,Fh as Ph,Gh as Qh,Hh as Rh}from"./chunk-g7bpkpd4.js";import{Jh as Sh,Kh as Th,Lh as Uh,Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di}from"./chunk-k33778kc.js";import{$h as hi,Yh as ei,Zh as fi,_h as gi}from"./chunk-ys4hpkrp.js";import{ei as ii}from"./chunk-g1vxsvqv.js";import{hi as lh}from"./chunk-gagw5rvw.js";import{ii as mh}from"./chunk-fqq5k9ve.js";import{ji as nh,ki as oh}from"./chunk-ya5m5vbn.js";import{li as ph,mi as qh,ni as rh,oi as sh,pi as th,qi as uh}from"./chunk-y4nzmkea.js";import{ri as vh,si as wh,ti as xh,ui as yh,vi as zh}from"./chunk-7kw3grq5.js";import{Ai as Eh,wi as Ah,xi as Bh,yi as Ch,zi as Dh}from"./chunk-c79nfdyj.js";import{Bi as Fh,Ci as Gh,Di as Hh,Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh}from"./chunk-ej8mv2k6.js";import{Ii as jh,Ji as kh}from"./chunk-yfqxzkex.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-4znpx8a5.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-68vgysme.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-zw91ws20.js";import{pk as Br,qk as Cr,rk as Dr,sk as Er,tk as Fr,uk as Gr}from"./chunk-dahpshkz.js";import{Ak as Um,Bk as Vm,Ck as Wm,vk as Rk,wk as Sk,xk as Tk,yk as Uk,zk as Tm}from"./chunk-e4jsntps.js";import"./chunk-frp9fc7j.js";import"./chunk-x3e2wvk5.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-abp8t91q.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as yg,$p as mi,$q as Bj,Al as Ca,Am as Ec,An as Qd,Ap as Zg,Aq as aj,Ar as Dk,Bl as Da,Bm as Fc,Bn as Rd,Bp as _g,Bq as bj,Br as Ek,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as $g,Cq as cj,Cr as Fk,Dl as Fa,Dm as Hc,Dn as Td,Dp as ah,Dq as dj,Dr as Gk,El as Ga,Em as Ic,En as Ud,Ep as bh,Eq as ej,Er as Hk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as ch,Fq as fj,Gl as Ia,Gm as Kc,Gn as Wd,Gp as dh,Gq as gj,Hl as Ja,Hm as Lc,Hn as Xd,Hp as eh,Hq as hj,Il as Ka,Im as Mc,In as Yd,Ip as fh,Iq as ij,Jl as La,Jm as Nc,Jn as Zd,Jo as Zf,Jp as gh,Jq as jj,Kl as Ma,Km as Oc,Kn as _d,Kp as hh,Kq as kj,Ll as Na,Lm as Pc,Ln as $d,Lo as _f,Lp as ih,Lq as lj,Ml as Oa,Mm as Qc,Mn as ae,Mp as ji,Mq as mj,Nl as ib,Nm as _c,Nn as re,No as $f,Np as ki,Nq as nj,Ol as jb,Om as $c,On as se,Oo as ag,Oq as oj,Pl as kb,Pm as ad,Pn as te,Po as bg,Pq as pj,Ql as lb,Qm as bd,Qn as ue,Qo as cg,Qp as li,Qq as qj,Rl as mb,Rm as cd,Rn as ve,Ro as dg,Rq as rj,Sl as nb,Sm as dd,Sn as we,So as eg,Sq as sj,Tm as ed,Tn as xe,To as qg,Tq as tj,Un as ye,Uo as rg,Uq as uj,Vl as Kb,Vm as fd,Vn as ze,Vo as sg,Vq as vj,Wl as Lb,Wm as gd,Wn as Ae,Wo as tg,Wq as wj,Xl as Mb,Xm as hd,Xn as Be,Xo as ug,Xq as xj,Yl as Nb,Ym as id,Yn as Ce,Yo as vg,Yq as yj,Zl as Ob,Zm as jd,Zn as De,Zo as wg,Zq as zj,_l as Pb,_m as kd,_n as Ee,_o as xg,_q as Aj,am as Ub,an as md,ao as Ie,ap as zg,aq as ni,ar as Sj,bm as Vb,bn as nd,bo as Je,bp as Ag,bq as oi,br as Tj,cm as Wb,cn as od,co as Ke,cp as Bg,cq as pi,cr as Uj,dm as hc,dn as pd,do as Le,dp as Cg,dq as qi,dr as Vj,em as ic,en as qd,eo as Me,ep as Dg,eq as xi,er as Wj,fm as jc,fn as vd,fo as Ne,fp as Eg,fq as yi,fr as gk,gm as kc,gn as wd,go as Oe,gp as Fg,gq as zi,gr as hk,hm as lc,hn as xd,hp as Gg,hq as Ai,hr as ik,im as mc,in as yd,ip as Hg,iq as Bi,ir as jk,jm as nc,jn as zd,jp as Ig,jq as Ci,jr as kk,km as oc,kn as Ad,ko as bf,kp as Jg,kq as Di,kr as lk,lm as pc,ln as Bd,lo as cf,lp as Kg,lq as Ei,lr as mk,mm as qc,mn as Cd,mp as Lg,mq as Fi,mr as nk,nm as rc,nn as Dd,no as Xf,np as Mg,nq as Gi,nr as ok,om as sc,on as Ed,op as Ng,oq as Hi,or as pk,pm as tc,pn as Fd,pp as Og,pq as Ii,pr as qk,qm as uc,qn as Gd,qp as Pg,qq as Ji,qr as rk,rm as vc,rn as Hd,rp as Qg,rq as Ki,rr as sk,sm as wc,sn as Id,sp as Rg,sq as Li,sr as tk,tm as xc,tn as Jd,tp as Sg,tq as Mi,tr as uk,um as yc,un as Kd,up as Tg,uq as Ni,ur as vk,vl as xa,vm as zc,vn as Ld,vp as Ug,vq as Oi,vr as wk,wl as ya,wm as Ac,wn as Md,wp as Vg,wq as Yi,wr as zk,xl as za,xm as Bc,xn as Nd,xp as Wg,xq as Zi,xr as Ak,yl as Aa,ym as Cc,yn as Od,yp as Xg,yq as _i,yr as Bk,zl as Ba,zm as Dc,zn as Pd,zp as Yg,zq as $i,zr as Ck}from"./chunk-0vgw4496.js";import{$r as ia,Fr as M,Gr as N,Hr as O,Ir as P,Jr as Q,Kr as R,Lr as S,Mr as T,Nr as U,Or as V,Pr as W,Qr as X,Rr as Y,Sr as Z,Tr as _,Ur as $,Vr as aa,Wr as ba,Xr as ca,Yr as da,Zr as ea,_r as fa,as as ja,bs as ka,cs as la,ds as ma,es as na,fs as oa,gs as pa,hs as qa,is as ra,js as sa,ks as ta,ls as ua,ms as va,ns as wa}from"./chunk-cf7qz2yz.js";import{os as ga,ps as ha}from"./chunk-49trnqad.js";import{qs as Rb,rs as Sb,ss as Tb}from"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import{As as Qi,Bs as Ri,Cs as Si,Ds as Ti,Es as Ui,Fs as Vi,Gs as Wi,Hs as Xi,zs as Pi}from"./chunk-cbj5a2tk.js";import{$s as Tc,Zs as Rc,_s as Sc,at as Uc,bt as Vc,dt as Wc,mt as Xc,nt as Yc,ot as Zc}from"./chunk-ds9hax17.js";import{pt as Xb,qt as Yb,rt as Zb,st as _b,tt as $b,ut as ac}from"./chunk-2zbmyvqc.js";import{Bt as Fe,Dt as Ge,Gt as He}from"./chunk-sjpjge04.js";import"./chunk-kb6h4vf7.js";import{Lt as cc,Mt as dc}from"./chunk-k6bagvmz.js";import{$t as pg,Qt as fg,Rt as gg,St as hg,Tt as ig,Ut as jg,Vt as kg,Wt as lg,Yt as mg,Zt as ng,_t as og}from"./chunk-x5bsgr9k.js";import{Au as oe,Bu as pe,Cu as qe,au as rd,bu as sd,cu as td,du as ud,nu as be,ou as ce,pu as de,qu as ee,ru as fe,su as ge,tu as he,uu as ie,vu as je,wu as ke,xu as le,yu as me,zu as ne}from"./chunk-tm8v7xc0.js";import{$u as z,Du as b,Eu as c,Fu as d,Gu as e,Hu as f,Iu as g,Ju as h,Ku as i,Lu as j,Mu as k,Nu as l,Ou as m,Pu as n,Qu as o,Ru as p,Su as q,Tu as r,Uu as s,Vu as t,Wu as u,Xu as v,Yu as w,Zu as x,_u as y,av as A,bv as B,cv as C,dv as D,ev as E,fv as F,gv as G,hv as H,iv as I,jv as J,kv as K,lv as L}from"./chunk-s7nd2979.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import{Bv as ob,Cv as pb,Dv as qb,Ev as rb,Fv as sb,Gv as tb,Hv as ub,Iv as vb,Jv as wb,Kv as xb,Lv as yb,Mv as zb,Nv as Ab,Ov as Bb,Pv as Cb,Qv as Db,Rv as Eb,Sv as Fb,Tv as Gb,Uv as Hb,Vv as Ib,Wv as Jb}from"./chunk-x8t29tnr.js";import{$v as Qa,Aw as eb,Bw as fb,Cw as gb,Ew as hb,_v as Pa,cw as Ra,hw as Sa,iw as Ta,ow as Ua,pw as Va,qw as Wa,rw as Xa,sw as Ya,tw as Za,uw as _a,vw as $a,ww as ab,xw as bb,yw as cb,zw as db}from"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{jl as writeNetlifyConfig,bn as writeManifest,Ol as writeImageManifest,up as wrapComponentForHMR,bs as withDefaults,wk as webComponentDirectiveHandler,jq as watermark,lr as watchViews,Yl as watchMultiple,Zl as watchEffect,Xl as watch,Me as warmImagePlaceholders,km as waitForStore,X as waitForLocale,fp as virtualPathFor,jk as videoDirective,G as validators,fs as validated,Ce as validateValueEnhanced,mi as validateTemplate,Rm as validateRouteRules,oq as validateParams,De as validateFormEnhanced,ar as validateFile,ye as validateFields,xe as validateField,oi as validateDirective,Xd as validateCspDirectives,Ek as validateConfig,pn as validateComponentScripts,Nn as validateComponentProps,ih as validateClientScript,hi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ci as userComponentFileExists,Ph as useVirtualList,je as useTitle,jm as useStoreOrThrow,Mp as useStore,Vk as useStorage,Af as useSlots,Xk as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,lm as useRouteParams,nm as useRouteParamOrThrow,mm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,pm as useMiddlewareValue,om as useMiddlewareState,Wk as useLocalStorage,np as useLoadingIndicator,ee as useHead,ei as useForm,Cf as useAttrs,cr as uploadFiles,br as uploadFile,gm as updateInstance,pf as untrack,Si as unregisterDirective,hm as unmountInstance,Qc as unescapeHtml,jp as typecheckStxFiles,Ai as transpileTypeScript,Qr as translate,Ba as transitionDirective,lc as transformAutoImports,Hn as toUsers,Gn as toUser,Up as thumbnail,Vq as thumbHashToRGBA,Wq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,rp as stxClientHelpers,kg as structuredDataDirective,Tr as stripLocalePrefix,Om as stripDocumentWrapper,Sb as stripCommentsAndLiterals,so as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Qk as stopHmrServer,Dn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,ch as startsDocument,No as startProductionServer,Io as startInteractive,Cn as startBroadcasting,Vr as stampLocaleLayoutGroup,Ia as staggerDirective,mq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Km as spaNavVaryHeaders,gp as sourcePathFor,tq as smartBatchSign,Ei as slotContentHasExpressions,rq as signUrl,yi as shouldTranspileTypeScript,Nk as shouldReloadOnChange,wq as shouldRefreshSignature,Ok as shouldIgnoreFile,Hh as shouldCacheComponent,Yp as sharpen,is as shape,Zb as setStateDir,tm as setRouteParams,um as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Ql as setCurrentInstance,Zj as setCachedVideoResult,Oj as setCachedImageResult,Ij as setCached,ls as serveStxFile,ns as serveMultipleStxFiles,Ik as serveMarkdownFile,Yo as serveFile,os as serveApp,Xo as serve,xp as serializeState,dn as serializeSetCookie,_p as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Bi as scopeOnRootElement,nk as scopeHTML,mk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,cq as saturation,pq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,gn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,em as runHooks,Jr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,dq as rotate,ii as rewriteImagesWithSiblings,od as responseBindings,Ii as resolveTemplatePath,ha as resolveStxTargets,Ak as resolveStxDirectories,Pr as resolveI18n,Sp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,wp as resetHMRHandler,o as resetErrorConfig,ds as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,jr as renderView,gk as renderVideoComponent,ic as renderVendorStyleTags,sr as renderToString,tr as renderToStream,ur as renderToDOM,Uq as renderThumbhashToCanvas,Gr as renderTemplateString,Er as renderTemplate,Fr as renderString,Se as renderStreamingPage,ti as renderSlot,xh as renderSSRSuspense,Eq as renderProtectedVideo,Dq as renderProtectedImg,qq as renderMediaUpload,Dr as renderMarkdownView,Vm as renderLayoutTypes,Sj as renderImgComponent,El as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,mr as renderEmail,Gi as renderComponentWithSlot,me as renderBodyAttrs,Hp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Op as registerStoresClient,rm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Pi as registerDirective,Wd as registerCspDirectives,Qn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Ul as ref,Ao as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Gk as readMarkdownFile,Kf as readFileCached,Vl as reactive,hq as quality,Bq as pruneSignatureCache,Lj as pruneCache,sf as provide,Cr as protectCodeBlocks,cs as prop,Fg as processVueTemplate,Nh as processVirtualListDirectives,Rh as processVirtualGridDirectives,fk as processVideo,ze as processValidateDirective,ea as processTranslateDirective,rh as processTransitionDirectives,uh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,nh as processTeleportDirectives,vh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,ci as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,ui as processSlots,Mm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Fq as processProtectedMedia,Xh as processPartialHydrationDirectives,hh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Hk as processMarkdownFileDirectives,Ni as processMarkdownDirectives,dg as processLoops,Fh as processKeepAliveDirectives,gh as processJsonDirective,Qh as processInfiniteListDirectives,ug as processIncludes,Uj as processImgComponents,Gl as processImageComponents,tl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,ji as processDirectives,Xi as processDirectiveAttributes,mh as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,js as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Ah as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,mp as preloadIslandHandlers,Ne as preloadIconCollection,yn as poolStrings,yk as pluginManager,Je as placeholdersWarmed,qh as performLeave,ph as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,hk as parseVideoDirectiveOptions,Qp as parseUrl,Xq as parseThumbhashString,Ad as parseSwitchBlock,ri as parseSlots,si as parseSlotElement,Fd as parseScriptDeclarations,uk as parseSFCComponent,Gq as parseProtectedArgs,bg as parseLoopBinding,Tj as parseImgComponent,jj as parseImageUrl,Fl as parseImageComponent,en as parseFormBody,Cd as parseExpressionWithFilters,Rn as parseDefaults,xo as parseCookies,Dm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,es as optional,zn as optimizeTemplate,Ll as optimizeImage,Ml as optimizeDirectory,gs as oneOf,sg as onceStore,bm as onUpdated,_c as onUpdate,dm as onUnmounted,ym as onServer,$l as onMounted,hf as onMount,bi as onHydrated,yf as onErrorCaptured,jf as onDestroy,Lh as onDeactivated,xm as onClient,am as onBeforeUpdate,cm as onBeforeUnmount,_l as onBeforeMount,Kh as onActivated,Qq as observeElement,Bo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Un as negotiateEncoding,Ua as navigateTo,fm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,xn as minifyHtml,jg as metaDirective,Wg as metaDedupKey,Rp as mergeParams,Yg as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Oi as markdownDirectiveHandler,Fk as markdownCache,ga as looksLikeGlob,Sr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Bk as loadStxConfig,db as loadMiddlewareFromDirectory,cn as loadManifest,Mq as loadElement,En as loadChannels,Lb as listensPassively,Zr as lintStxStrict,Oq as lazyLoadAll,Nq as lazyLoad,Ha as keyframeDirective,qr as jsxs,rr as jsxDEV,pr as jsx,zo as jsonResponse,Ye as islandDirective,l as isTest,Pm as isSpaNavigation,Im as isSpaNavRequest,uq as isSignatureValid,nf as isSignal,rl as isSharpAvailable,lo as isServerEnvironment,vm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Jq as isNativeLazySupported,Br as isMarkdownPath,Q as isLoading,R as isLoaded,xi as isJavaScriptScript,Kq as isIntersectionObserverSupported,zl as isImageFile,sl as isImageBackendAvailable,aa as isICUFormat,ai as isHydrated,Di as isHydrateTrigger,hd as isHttpStatus,ko as isEdgeEnvironment,_r as isDirectiveKind,k as isDevelopment,of as isDerived,Mk as isCssOnlyChange,Tn as isCompressible,wm as isClient,Ch as isAsyncComponent,fn as isActionableMethod,$p as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Or as injectThemeBootstrap,ig as injectSeoTags,Lr as injectSeo,Xf as injectRouterScript,Lk as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,eh as injectConfigHeadTags,Kg as injectColorModeBootScript,_g as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,qm as initStoreRegistry,ml as initNetlify,op as initLoadingIndicator,Lq as initLazyLoading,Ho as initFile,Tq as initBlurUp,Zq as initAllBlurUp,Wj as imgDirective,Jl as imageDirective,kn as hydrateTemplateStream,jn as hydrateTemplate,lp as hydrateIslands,Zh as hydrateIsland,ln as hydrateFragment,_h as hydrateByStrategy,$h as hydrateAll,Ep as hydrate,Wo as htmlResponse,ah as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Ej as hashString,Wf as hashFilePath,Cj as hashFile,Dj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Jp as hasStore,xc as hasPlaceholders,kl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,dh as hasDocumentShell,pi as hasDirectives,ma as hasDOMSupport,Cl as handleImageRequest,zf as handleError,yr as h,yl as groupVariantsByFormat,Zp as grayscale,Po as gitHash,rn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,fl as getTotalSize,vq as getTimeUntilExpiry,jh as getStoreScript,Kp as getStoreNames,Ip as getStore,_k as getStorageSize,Zk as getStorageKeys,Ji as getSourceLineInfo,zi as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,ok as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,ni as getPositionInfo,uc as getPlaceholderRegistry,Bj as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Al as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,ul as getImageMetadata,Fe as getImageDelivery,Dp as getHydrationRuntime,sm as getHydratedStoreState,Pk as getHmrServer,be as getHead,vp as getHMRHandler,nj as getFormatExtension,Gj as getFileMtime,xl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ri as getDirectives,Qi as getDirective,Rl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Mi as getComponentCacheStats,Yj as getCachedVideoResult,zq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,zj as getCachedPlaceholder,Nj as getCachedImageResult,Hj as getCached,Kj as getCacheStats,Pg as getBuildId,Bn as getBroadcastServer,mj as getBestVariant,Bc as getAllFilters,aj as generateWidthSrcset,Oh as generateVirtualListCSS,er as generateVideoPreview,Ee as generateValidationScript,fr as generateUploadRuntime,sn as generateTreeShakenBundle,th as generateTransitionRuntime,sh as generateTransitionCSS,ak as generateThumbnails,sj as generateThumbhashPlaceholder,bo as generateTemplatesDocs,zh as generateSuspenseRuntime,yh as generateSuspenseCSS,yp as generateStateScript,kj as generateSrcsetData,Rj as generateSrcset,vl as generateSrcSet,bk as generateSpriteSheet,nr as generateSpaShell,lj as generateSourceTags,gj as generateSizesFromBreakpoints,fj as generateSizesAttribute,wl as generateSizes,mg as generateSitemapIndex,Mr as generateSitemap,Iq as generateSimpleMediaPicker,Cq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,lk as generateScopeId,vk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Nr as generateRobots,Qj as generateResponsiveVariants,rk as generateReactiveWebComponentTS,qk as generateReactiveWebComponent,tk as generateReactiveRuntime,sk as generateReactiveMixin,$j as generatePoster,yj as generatePlaceholderStyle,xj as generatePlaceholderCSS,rj as generatePlaceholder,Yh as generatePartialHydrationCSS,Gd as generateNonce,gl as generateNetlifyToml,hr as generateMinifiedMediaRuntime,gr as generateMediaRuntime,Hq as generateMediaManagerEmbed,an as generateManifest,qp as generateLoadingIndicatorHtml,Sq as generateLazyLoadRuntime,Wm as generateLayoutTypes,uj as generateLQIP,Jh as generateKeepAliveRuntime,Ih as generateKeepAliveCSS,di as generateIslandManifest,dr as generateImagePreview,Nl as generateImageManifest,Cp as generateHydrationScript,af as generateHydrationRuntime,Fp as generateHydrationCSS,Sh as generateHydrationBootstrap,Kk as generateHotReloadScript,jb as generateHeatmapScript,tp as generateHMRClientScript,ck as generateHLSManifest,zp as generateEventBindings,ej as generateDprSrcsetWithVariableQuality,dj as generateDprSrcset,bh as generateDocumentShell,ho as generateDocs,co as generateDirectivesDocs,Wi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,dk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ao as generateComponentsDocs,Th as generateComponentManifest,_n as generateComponentDoc,wj as generateColorPlaceholder,Jg as generateColorModeBootScript,im as generateClientRuntime,Fj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,_q as generateBlurUpRuntime,$q as generateBlurUpCSS,ad as generateBindingsRuntime,bj as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Eh as generateAsyncComponentRuntime,Dh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,kp as formatTypecheckDiagnostics,dp as formatTypeErrors,Eo as formatStxContent,el as formatSize,Ta as formatRoutes,Fo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Kr as formatDoctorReport,eo as formatDocsAsMarkdown,go as formatDocsAsJson,fo as formatDocsAsHtml,gq as format,wn as foldConstants,fq as flipVertical,eq as flipHorizontal,Xm as fingerprint,ip as findStxModuleDeclarations,hp as findRuntimeTypeDeclarations,Ir as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,tn as findDeadCode,tn as findDeadBranches,Em as findContainerRegion,$n as findComponentFiles,ms as findCommonDir,dl as filterRequiredFiles,Hi as fileExists,Zf as extractVariables,li as extractTemplateExpressions,Ue as extractStreamBoundaries,Ap as extractState,vi as extractSlotContent,$f as extractScriptFromTemplate,ki as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,vj as extractDominantColor,Ed as extractDirectiveParams,qi as extractDirectiveNames,Qm as extractContainerContent,Yn as extractComponentProps,Uh as extractComponentName,Zn as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Vh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,pk as extractAndScopeStyles,Ob as extractAndProcessEvents,Tk as externalizeSharedAssets,Uk as externalizeRepeatedAssets,Sk as externalizeHtml,Pc as evaluateExpression,vn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,oh as ensureTeleportTargets,fh as ensureDocumentShell,Ae as enhancedValidationRules,Wn as enableDevTools,un as eliminateDeadCode,ff as effect,nq as dprUrls,io as docsCommand,ec as discoverServerApi,Um as discoverLayoutNames,Rq as disconnectObserver,Xn as disableDevTools,F as devHelpers,Lm as detectShell,jo as detectRuntime,hl as detectProjectConfig,oj as detectFormat,on as detectBuildMode,ef as derived,ll as deploy,Dk as defineStxConfig,Np as defineStore,Bf as defineSlots,Yr as defineSiteConfig,as as definePropsWithValidation,$r as defineProps,xk as definePlugin,ie as definePageMeta,Wa as defineMiddleware,fi as defineForm,wf as defineExpose,vf as defineEmits,Ti as defineDirective,Ar as defineCustomElement,Mo as defineConfig,Ui as defineClientDirective,Bh as defineAsyncComponent,Oo as defineApiHandler,ir as defaultMediaConfig,Pl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,zk as defaultConfig,ks as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Hm as decodeTitleEntities,tj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,Yq as crossfadeTransition,Tp as crop,Mh as createVirtualList,ik as createVideoDirective,vo as createVercelHandler,ap as createTypeChecker,fa as createTranslateFilter,ro as createTextEncoderStream,zr as createStxApp,qo as createStreamingResponse,We as createStreamRenderer,Lp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Tl as createScope,wh as createSSRSuspense,bf as createRouter,Sm as createRouteRuleResolver,eb as createRouteLocation,_o as createRoute,Ul as createRef,Vl as createReactive,Df as createProvideContext,Ro as createProject,Lo as createProductionBuild,tc as createPlaceholder,An as createOptimizedBuild,wo as createNetlifyHandler,$k as createNetlifyClient,fb as createMiddlewareContext,Zo as createMiddleware,Pq as createLazyObserver,Gh as createKeepAliveCache,no as createKVNamespace,Wh as createIslandRegistry,Vj as createImgDirective,Kl as createImagePlugin,Dl as createImageHandler,Il as createImageDirective,nb as createHeatmapAggregator,cl as createFileManifest,mo as createEnvAccessor,z as createEnhancedError,po as createEdgeHandler,oo as createEdgeCache,Ki as createDetailedErrorMessage,uo as createDenoHandler,il as createDefaultNetlifyConfig,Zd as createCspHeaders,yo as createCookie,Wl as createComputed,Sl as createComponentInstance,to as createCloudflareHandler,Ya as createClientCookieManager,Vi as createBuiltinDirectives,zr as createApp,Ka as createAnimationTimeline,Wp as cover,_f as convertToCommonJS,bq as contrast,Vp as contain,y as consoleError,m as configureErrorHandling,Ck as config,Wl as computed,Vn as compressResponse,Bg as composerPattern,Ag as composer,Nm as composeShellWithPage,Pn as componentDirective,Fi as componentClientSignalNames,$m as compileTemplate,a as collectRepeatedFlag,bl as collectDeployFiles,$g as cloakStyleFragment,Ic as clientLoopScopes,_j as clearVideoCache,N as clearTranslationCache,kh as clearStoreCache,Yk as clearStorage,Aq as clearSignatureCache,Gf as clearServerData,Aj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Hl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,lh as clearComposableCache,Li as clearComponentCache,Jj as clearCache,Ib as clearBlankCache,pp as cleanupLoadingIndicator,Bm as classifyScript,Cm as classifyAllScripts,bp as checkTemplateFile,cp as checkTemplate,Uf as checkCache,xq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Kn as channel,Do as captureScreenshots,Co as captureScreenshot,Z as cancelPendingLoads,al as calculateSha1,cj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,kk as buildWebComponents,ep as buildVirtualSource,kr as buildViews,Pp as buildUrl,Qe as buildSuspenseResolveScript,Xr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Ym as buildRuntimeAsset,Zm as buildRouterAsset,Wr as buildLangPickerScript,ij as buildImageUrl,Sg as buildIdFragment,Xg as buildHtmlAttrs,mn as buildForProduction,Sn as buildComponentLibrary,yq as buildAuthParams,nn as buildApp,Ur as buildAlternateLinks,Ko as build,In as broadcastPrivate,Jn as broadcastPresence,Fn as broadcast,aq as brightness,Tb as bracketDepths,Xp as blur,Jb as blankInertHtmlRegions,sq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,iq as auto,ja as attributeValue,_m as assetTags,Mb as asInvocableStatement,hs as arrayOf,Rr as applyTranslations,Pj as applyTransformations,wi as applySlots,On as applyPropDefaults,lq as applyPreset,Zg as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Jm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,ek as analyzeVideo,qn as analyzeUsage,zm as analyzeTemplate,Am as analyzeProject,qn as analyzeDirectiveUsage,ed as analyticsDirective,Uo as addStore,To as addPage,Sd as addNonceToInlineContent,Vo as addLayout,So as addComponent,hn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,Xj as VideoProcessorCache,gi as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,$o as TemplateTypeChecker,Go as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,vr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Fm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Jo as ProductionBuild,xr as Portal,Qo as PROJECT_TEMPLATES,kq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Gp as MemorySessionStore,$i as MIME_TYPES,Yi as MEDIA_DEFAULT_WIDTHS,_i as MEDIA_DEFAULT_FORMATS,Tm as LAYOUT_TYPES_FILE,Mj as ImageProcessorCache,Bl as ImageProcessingError,Bp as HydrationRuntime,Jk as HotReloadServer,mb as HeatmapAggregator,Vg as HTML_CLASS_MARKER,Ug as HTML_ATTRS_MARKER,or as Fragment,wr as For,Gm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Rk as EXTERNALIZED_ASSET_DIR,nl as DeployError,ol as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ql as DEFAULT_QUALITY,pj as DEFAULT_PLACEHOLDER_OPTIONS,pl as DEFAULT_FORMATS,Zi as DEFAULT_DPR_VALUES,sp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,hj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Tg as CLOAK_STYLE,Mn as BroadcastServer,Ln as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,qj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Hr as $path};
|
|
2
|
+
import{$ as lm,$a as oo,$b as zp,$c as zq,$d as zr,A as Xk,Aa as zn,Ab as To,Ac as _p,Ad as _q,Ae as es,B as Yk,Ba as An,Bb as Uo,Bc as $p,Bd as $q,Be as fs,C as Zk,Ca as Nn,Cb as Vo,Cc as aq,Cd as ar,Ce as gs,D as _k,Da as On,Db as Wo,Dc as bq,Dd as br,De as hs,E as Ql,Ea as Pn,Eb as Xo,Ec as cq,Ed as cr,Ee as is,F as Rl,Fa as Qn,Fb as Yo,Fc as dq,Fd as dr,Fe as js,G as Sl,Ga as Rn,Gb as Zo,Gc as eq,Gd as er,Ge as ks,H as Tl,Ha as Sn,Hb as _o,Hc as fq,Hd as fr,He as ls,I as Ul,Ia as Wn,Ib as $o,Ic as gq,Id as gr,Ie as ms,J as Vl,Ja as Xn,Jb as ap,Jc as hq,Jd as hr,Je as ns,K as Wl,Ka as Yn,Kb as bp,Kc as iq,Kd as ir,Ke as os,L as Xl,La as Zn,Lb as cp,Lc as jq,Ld as jr,M as Yl,Ma as _n,Mb as dp,Mc as kq,Md as kr,N as Zl,Na as $n,Nb as lp,Nc as lq,Nd as lr,O as _l,Oa as ao,Ob as mp,Oc as mq,Od as mr,P as $l,Pa as bo,Pb as np,Pc as nq,Pd as nr,Q as am,Qa as co,Qb as op,Qc as oq,Qd as or,R as bm,Ra as eo,Rb as pp,Rc as pq,Rd as pr,S as cm,Sa as fo,Sb as qp,Sc as qq,Sd as qr,T as dm,Ta as go,Tb as rp,Tc as rq,Td as rr,U as em,Ua as ho,Ub as sp,Uc as sq,Ud as sr,V as fm,Va as io,Vb as tp,Vc as tq,Vd as tr,W as gm,Wa as jo,Wb as up,Wc as uq,Wd as ur,X as hm,Xa as ko,Xb as vp,Xc as vq,Xd as vr,Y as im,Ya as lo,Yb as wp,Yc as wq,Yd as wr,Z as jm,Za as mo,Zb as xp,Zc as xq,Zd as xr,_ as km,_a as no,_b as yp,_c as yq,_d as yr,aa as mm,ab as po,ac as Ap,ad as Aq,ae as Ar,ba as nm,bb as qo,bc as Bp,bd as Bq,be as Hr,ca as om,cb as ro,cc as Cp,cd as Cq,ce as Ir,da as pm,db as so,dc as Dp,dd as Dq,de as Jr,ea as qm,eb as to,ec as Ep,ed as Eq,ee as Kr,fa as rm,fb as uo,fc as Fp,fd as Fq,fe as Lr,ga as sm,gb as vo,gc as Gp,gd as Gq,ge as Mr,ha as tm,hb as wo,hc as Hp,hd as Hq,he as Nr,ia as um,ib as xo,ic as Ip,id as Iq,ie as Or,ja as vm,jb as yo,jc as Jp,jd as Jq,je as Pr,ka as wm,kb as zo,kc as Kp,kd as Kq,ke as Qr,la as xm,lb as Ao,lc as Lp,ld as Lq,le as Rr,ma as ym,mb as Bo,mc as Mp,md as Mq,me as Sr,na as zm,nb as Eo,nc as Np,nd as Nq,ne as Tr,o as a,oa as Am,ob as Fo,oc as Op,od as Oq,oe as Ur,p as Ik,pa as on,pb as Go,pc as Pp,pd as Pq,pe as Vr,q as Jk,qa as pn,qb as Ho,qc as Qp,qd as Qq,qe as Wr,r as Kk,ra as qn,rb as Jo,rc as Rp,rd as Rq,re as Xr,s as Lk,sa as rn,sb as Ko,sc as Sp,sd as Sq,se as Yr,t as Mk,ta as sn,tb as Lo,tc as Tp,td as Tq,te as Zr,u as Nk,ua as tn,ub as Mo,uc as Up,ud as Uq,ue as _r,v as Ok,va as un,vb as Oo,vc as Vp,vd as Vq,ve as $r,w as Pk,wa as vn,wb as Po,wc as Wp,wd as Wq,we as as,x as Qk,xa as wn,xb as Qo,xc as Xp,xd as Xq,xe as bs,y as Vk,ya as xn,yb as Ro,yc as Yp,yd as Yq,ye as cs,z as Wk,za as yn,zb as So,zc as Zp,zd as Zq,ze as ds}from"./chunk-m859sqt4.js";import{Le as ep,Me as fp,Ne as gp,Oe as hp,Pe as ip,Qe as jp,Re as kp}from"./chunk-8qs79pym.js";import{Se as Co,Te as Do}from"./chunk-7hb89n3z.js";import{Ue as Io}from"./chunk-w6mt6tt1.js";import{Ve as nn}from"./chunk-dhh2r9vj.js";import{We as Tn,Xe as Un,Ye as Vn,Ze as No}from"./chunk-cdnytss4.js";import{$e as al,_e as $k,af as bl,bf as cl,cf as dl,df as el,ef as fl,ff as gl,gf as hl,hf as il,if as jl,jf as kl,kf as ll,lf as ml,mf as nl}from"./chunk-n0d7nwhd.js";import{nf as El,of as Fl,pf as Gl,qf as Hl,rf as Il,sf as Jl,tf as Kl,uf as Ll,vf as Ml,wf as Nl,xf as Ol,yf as Pl}from"./chunk-m7zebyq5.js";import{Af as Dl,zf as Cl}from"./chunk-eewneg7t.js";import{Bf as ol,Cf as pl,Df as ql,Ef as rl,Ff as sl,Gf as tl,Hf as ul,Jf as vl,Kf as wl,Lf as xl,Mf as yl,Nf as zl,Of as Al,Rf as Bl}from"./chunk-km3e88cy.js";import{Sf as Xm,Tf as Ym,Uf as Zm,Vf as _m,Wf as $m,Xf as mn}from"./chunk-m1axasq6.js";import{$f as Em,Yf as Bm,Zf as Cm,_f as Dm,ag as Fm,bg as Gm,cg as Hm,dg as Im,eg as Jm,fg as Km,gg as Lm,hg as Mm,ig as Nm,jg as Om,kg as Pm,lg as Qm,mg as an,ng as bn,og as cn,pg as dn,qg as en,rg as fn,sg as gn,tg as hn,ug as jn,vg as kn,wg as ln}from"./chunk-vwh3j3fh.js";import{xg as Rm,yg as Sm}from"./chunk-0knxnyq6.js";import{Ag as Cn,Bg as Dn,Cg as En,Dg as Fn,Eg as Gn,Fg as Hn,Gg as In,Hg as Jn,Ig as Kn,Jg as Ln,Kg as Mn,zg as Bn}from"./chunk-634gaa9d.js";import{Lg as ri,Mg as si,Ng as ti,Og as ui,Pg as vi,Qg as wi}from"./chunk-43ammxkh.js";import{Rg as Mj,Sg as Nj,Tg as Oj,Xg as Pj,Yg as Qj,Zg as Rj}from"./chunk-an1vn2mr.js";import{$g as Yj,_g as Xj,ah as Zj,bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk}from"./chunk-m2c9847h.js";import{jh as Cj,kh as Dj,lh as Ej,mh as Fj,nh as Gj,ph as Hj,qh as Ij,rh as Jj,sh as Kj,th as Lj}from"./chunk-bcpjhcpn.js";import{uh as xk,wh as yk}from"./chunk-y4zddt5r.js";import{Ch as Mh,Dh as Nh,Eh as Oh,Fh as Ph,Gh as Qh,Hh as Rh}from"./chunk-g7bpkpd4.js";import{Jh as Sh,Kh as Th,Lh as Uh,Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di}from"./chunk-k33778kc.js";import{$h as hi,Yh as ei,Zh as fi,_h as gi}from"./chunk-ys4hpkrp.js";import{ei as ii}from"./chunk-g1vxsvqv.js";import{hi as lh}from"./chunk-660e7tfb.js";import{ii as mh}from"./chunk-fqq5k9ve.js";import{ji as nh,ki as oh}from"./chunk-ya5m5vbn.js";import{li as ph,mi as qh,ni as rh,oi as sh,pi as th,qi as uh}from"./chunk-y4nzmkea.js";import{ri as vh,si as wh,ti as xh,ui as yh,vi as zh}from"./chunk-7kw3grq5.js";import{Ai as Eh,wi as Ah,xi as Bh,yi as Ch,zi as Dh}from"./chunk-c79nfdyj.js";import{Bi as Fh,Ci as Gh,Di as Hh,Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh}from"./chunk-ej8mv2k6.js";import{Ii as jh,Ji as kh}from"./chunk-jtnhq04d.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-yk277pd8.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-585vt0xw.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-j8vff5b1.js";import{pk as Br,qk as Cr,rk as Dr,sk as Er,tk as Fr,uk as Gr}from"./chunk-60s7hgym.js";import{Ak as Um,Bk as Vm,Ck as Wm,vk as Rk,wk as Sk,xk as Tk,yk as Uk,zk as Tm}from"./chunk-e4jsntps.js";import"./chunk-frp9fc7j.js";import"./chunk-f486k78c.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-xpw4r8qb.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as yg,$p as mi,$q as Bj,Al as Ca,Am as Ec,An as Qd,Ap as Zg,Aq as aj,Ar as Dk,Bl as Da,Bm as Fc,Bn as Rd,Bp as _g,Bq as bj,Br as Ek,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as $g,Cq as cj,Cr as Fk,Dl as Fa,Dm as Hc,Dn as Td,Dp as ah,Dq as dj,Dr as Gk,El as Ga,Em as Ic,En as Ud,Ep as bh,Eq as ej,Er as Hk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as ch,Fq as fj,Gl as Ia,Gm as Kc,Gn as Wd,Gp as dh,Gq as gj,Hl as Ja,Hm as Lc,Hn as Xd,Hp as eh,Hq as hj,Il as Ka,Im as Mc,In as Yd,Ip as fh,Iq as ij,Jl as La,Jm as Nc,Jn as Zd,Jo as Zf,Jp as gh,Jq as jj,Kl as Ma,Km as Oc,Kn as _d,Kp as hh,Kq as kj,Ll as Na,Lm as Pc,Ln as $d,Lo as _f,Lp as ih,Lq as lj,Ml as Oa,Mm as Qc,Mn as ae,Mp as ji,Mq as mj,Nl as ib,Nm as _c,Nn as re,No as $f,Np as ki,Nq as nj,Ol as jb,Om as $c,On as se,Oo as ag,Oq as oj,Pl as kb,Pm as ad,Pn as te,Po as bg,Pq as pj,Ql as lb,Qm as bd,Qn as ue,Qo as cg,Qp as li,Qq as qj,Rl as mb,Rm as cd,Rn as ve,Ro as dg,Rq as rj,Sl as nb,Sm as dd,Sn as we,So as eg,Sq as sj,Tm as ed,Tn as xe,To as qg,Tq as tj,Un as ye,Uo as rg,Uq as uj,Vl as Kb,Vm as fd,Vn as ze,Vo as sg,Vq as vj,Wl as Lb,Wm as gd,Wn as Ae,Wo as tg,Wq as wj,Xl as Mb,Xm as hd,Xn as Be,Xo as ug,Xq as xj,Yl as Nb,Ym as id,Yn as Ce,Yo as vg,Yq as yj,Zl as Ob,Zm as jd,Zn as De,Zo as wg,Zq as zj,_l as Pb,_m as kd,_n as Ee,_o as xg,_q as Aj,am as Ub,an as md,ao as Ie,ap as zg,aq as ni,ar as Sj,bm as Vb,bn as nd,bo as Je,bp as Ag,bq as oi,br as Tj,cm as Wb,cn as od,co as Ke,cp as Bg,cq as pi,cr as Uj,dm as hc,dn as pd,do as Le,dp as Cg,dq as qi,dr as Vj,em as ic,en as qd,eo as Me,ep as Dg,eq as xi,er as Wj,fm as jc,fn as vd,fo as Ne,fp as Eg,fq as yi,fr as gk,gm as kc,gn as wd,go as Oe,gp as Fg,gq as zi,gr as hk,hm as lc,hn as xd,hp as Gg,hq as Ai,hr as ik,im as mc,in as yd,ip as Hg,iq as Bi,ir as jk,jm as nc,jn as zd,jp as Ig,jq as Ci,jr as kk,km as oc,kn as Ad,ko as bf,kp as Jg,kq as Di,kr as lk,lm as pc,ln as Bd,lo as cf,lp as Kg,lq as Ei,lr as mk,mm as qc,mn as Cd,mp as Lg,mq as Fi,mr as nk,nm as rc,nn as Dd,no as Xf,np as Mg,nq as Gi,nr as ok,om as sc,on as Ed,op as Ng,oq as Hi,or as pk,pm as tc,pn as Fd,pp as Og,pq as Ii,pr as qk,qm as uc,qn as Gd,qp as Pg,qq as Ji,qr as rk,rm as vc,rn as Hd,rp as Qg,rq as Ki,rr as sk,sm as wc,sn as Id,sp as Rg,sq as Li,sr as tk,tm as xc,tn as Jd,tp as Sg,tq as Mi,tr as uk,um as yc,un as Kd,up as Tg,uq as Ni,ur as vk,vl as xa,vm as zc,vn as Ld,vp as Ug,vq as Oi,vr as wk,wl as ya,wm as Ac,wn as Md,wp as Vg,wq as Yi,wr as zk,xl as za,xm as Bc,xn as Nd,xp as Wg,xq as Zi,xr as Ak,yl as Aa,ym as Cc,yn as Od,yp as Xg,yq as _i,yr as Bk,zl as Ba,zm as Dc,zn as Pd,zp as Yg,zq as $i,zr as Ck}from"./chunk-508xtkyq.js";import{$r as ia,Fr as M,Gr as N,Hr as O,Ir as P,Jr as Q,Kr as R,Lr as S,Mr as T,Nr as U,Or as V,Pr as W,Qr as X,Rr as Y,Sr as Z,Tr as _,Ur as $,Vr as aa,Wr as ba,Xr as ca,Yr as da,Zr as ea,_r as fa,as as ja,bs as ka,cs as la,ds as ma,es as na,fs as oa,gs as pa,hs as qa,is as ra,js as sa,ks as ta,ls as ua,ms as va,ns as wa}from"./chunk-nh6p0k17.js";import{os as ga,ps as ha}from"./chunk-49trnqad.js";import{qs as Rb,rs as Sb,ss as Tb}from"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import{As as Qi,Bs as Ri,Cs as Si,Ds as Ti,Es as Ui,Fs as Vi,Gs as Wi,Hs as Xi,zs as Pi}from"./chunk-cbj5a2tk.js";import{$s as Tc,Zs as Rc,_s as Sc,at as Uc,bt as Vc,dt as Wc,mt as Xc,nt as Yc,ot as Zc}from"./chunk-a3fsqjag.js";import{pt as Xb,qt as Yb,rt as Zb,st as _b,tt as $b,ut as ac}from"./chunk-2zbmyvqc.js";import{Bt as Fe,Dt as Ge,Gt as He}from"./chunk-sjpjge04.js";import"./chunk-rqshksja.js";import{Lt as cc,Mt as dc}from"./chunk-k6bagvmz.js";import{$t as pg,Qt as fg,Rt as gg,St as hg,Tt as ig,Ut as jg,Vt as kg,Wt as lg,Yt as mg,Zt as ng,_t as og}from"./chunk-zhzcahz5.js";import{Au as oe,Bu as pe,Cu as qe,au as rd,bu as sd,cu as td,du as ud,nu as be,ou as ce,pu as de,qu as ee,ru as fe,su as ge,tu as he,uu as ie,vu as je,wu as ke,xu as le,yu as me,zu as ne}from"./chunk-8kwmj99g.js";import{$u as z,Du as b,Eu as c,Fu as d,Gu as e,Hu as f,Iu as g,Ju as h,Ku as i,Lu as j,Mu as k,Nu as l,Ou as m,Pu as n,Qu as o,Ru as p,Su as q,Tu as r,Uu as s,Vu as t,Wu as u,Xu as v,Yu as w,Zu as x,_u as y,av as A,bv as B,cv as C,dv as D,ev as E,fv as F,gv as G,hv as H,iv as I,jv as J,kv as K,lv as L}from"./chunk-7ngmxv4z.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import{Bv as ob,Cv as pb,Dv as qb,Ev as rb,Fv as sb,Gv as tb,Hv as ub,Iv as vb,Jv as wb,Kv as xb,Lv as yb,Mv as zb,Nv as Ab,Ov as Bb,Pv as Cb,Qv as Db,Rv as Eb,Sv as Fb,Tv as Gb,Uv as Hb,Vv as Ib,Wv as Jb}from"./chunk-x8t29tnr.js";import{$v as Qa,Aw as eb,Bw as fb,Cw as gb,Ew as hb,_v as Pa,cw as Ra,hw as Sa,iw as Ta,ow as Ua,pw as Va,qw as Wa,rw as Xa,sw as Ya,tw as Za,uw as _a,vw as $a,ww as ab,xw as bb,yw as cb,zw as db}from"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{jl as writeNetlifyConfig,bn as writeManifest,Ol as writeImageManifest,up as wrapComponentForHMR,bs as withDefaults,wk as webComponentDirectiveHandler,jq as watermark,lr as watchViews,Yl as watchMultiple,Zl as watchEffect,Xl as watch,Me as warmImagePlaceholders,km as waitForStore,X as waitForLocale,fp as virtualPathFor,jk as videoDirective,G as validators,fs as validated,Ce as validateValueEnhanced,mi as validateTemplate,Rm as validateRouteRules,oq as validateParams,De as validateFormEnhanced,ar as validateFile,ye as validateFields,xe as validateField,oi as validateDirective,Xd as validateCspDirectives,Ek as validateConfig,pn as validateComponentScripts,Nn as validateComponentProps,ih as validateClientScript,hi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ci as userComponentFileExists,Ph as useVirtualList,je as useTitle,jm as useStoreOrThrow,Mp as useStore,Vk as useStorage,Af as useSlots,Xk as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,lm as useRouteParams,nm as useRouteParamOrThrow,mm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,pm as useMiddlewareValue,om as useMiddlewareState,Wk as useLocalStorage,np as useLoadingIndicator,ee as useHead,ei as useForm,Cf as useAttrs,cr as uploadFiles,br as uploadFile,gm as updateInstance,pf as untrack,Si as unregisterDirective,hm as unmountInstance,Qc as unescapeHtml,jp as typecheckStxFiles,Ai as transpileTypeScript,Qr as translate,Ba as transitionDirective,lc as transformAutoImports,Hn as toUsers,Gn as toUser,Up as thumbnail,Vq as thumbHashToRGBA,Wq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,rp as stxClientHelpers,kg as structuredDataDirective,Tr as stripLocalePrefix,Om as stripDocumentWrapper,Sb as stripCommentsAndLiterals,so as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Qk as stopHmrServer,Dn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,ch as startsDocument,No as startProductionServer,Io as startInteractive,Cn as startBroadcasting,Vr as stampLocaleLayoutGroup,Ia as staggerDirective,mq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Km as spaNavVaryHeaders,gp as sourcePathFor,tq as smartBatchSign,Ei as slotContentHasExpressions,rq as signUrl,yi as shouldTranspileTypeScript,Nk as shouldReloadOnChange,wq as shouldRefreshSignature,Ok as shouldIgnoreFile,Hh as shouldCacheComponent,Yp as sharpen,is as shape,Zb as setStateDir,tm as setRouteParams,um as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Ql as setCurrentInstance,Zj as setCachedVideoResult,Oj as setCachedImageResult,Ij as setCached,ls as serveStxFile,ns as serveMultipleStxFiles,Ik as serveMarkdownFile,Yo as serveFile,os as serveApp,Xo as serve,xp as serializeState,dn as serializeSetCookie,_p as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Bi as scopeOnRootElement,nk as scopeHTML,mk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,cq as saturation,pq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,gn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,em as runHooks,Jr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,dq as rotate,ii as rewriteImagesWithSiblings,od as responseBindings,Ii as resolveTemplatePath,ha as resolveStxTargets,Ak as resolveStxDirectories,Pr as resolveI18n,Sp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,wp as resetHMRHandler,o as resetErrorConfig,ds as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,jr as renderView,gk as renderVideoComponent,ic as renderVendorStyleTags,sr as renderToString,tr as renderToStream,ur as renderToDOM,Uq as renderThumbhashToCanvas,Gr as renderTemplateString,Er as renderTemplate,Fr as renderString,Se as renderStreamingPage,ti as renderSlot,xh as renderSSRSuspense,Eq as renderProtectedVideo,Dq as renderProtectedImg,qq as renderMediaUpload,Dr as renderMarkdownView,Vm as renderLayoutTypes,Sj as renderImgComponent,El as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,mr as renderEmail,Gi as renderComponentWithSlot,me as renderBodyAttrs,Hp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Op as registerStoresClient,rm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Pi as registerDirective,Wd as registerCspDirectives,Qn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Ul as ref,Ao as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Gk as readMarkdownFile,Kf as readFileCached,Vl as reactive,hq as quality,Bq as pruneSignatureCache,Lj as pruneCache,sf as provide,Cr as protectCodeBlocks,cs as prop,Fg as processVueTemplate,Nh as processVirtualListDirectives,Rh as processVirtualGridDirectives,fk as processVideo,ze as processValidateDirective,ea as processTranslateDirective,rh as processTransitionDirectives,uh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,nh as processTeleportDirectives,vh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,ci as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,ui as processSlots,Mm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Fq as processProtectedMedia,Xh as processPartialHydrationDirectives,hh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Hk as processMarkdownFileDirectives,Ni as processMarkdownDirectives,dg as processLoops,Fh as processKeepAliveDirectives,gh as processJsonDirective,Qh as processInfiniteListDirectives,ug as processIncludes,Uj as processImgComponents,Gl as processImageComponents,tl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,ji as processDirectives,Xi as processDirectiveAttributes,mh as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,js as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Ah as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,mp as preloadIslandHandlers,Ne as preloadIconCollection,yn as poolStrings,yk as pluginManager,Je as placeholdersWarmed,qh as performLeave,ph as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,hk as parseVideoDirectiveOptions,Qp as parseUrl,Xq as parseThumbhashString,Ad as parseSwitchBlock,ri as parseSlots,si as parseSlotElement,Fd as parseScriptDeclarations,uk as parseSFCComponent,Gq as parseProtectedArgs,bg as parseLoopBinding,Tj as parseImgComponent,jj as parseImageUrl,Fl as parseImageComponent,en as parseFormBody,Cd as parseExpressionWithFilters,Rn as parseDefaults,xo as parseCookies,Dm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,es as optional,zn as optimizeTemplate,Ll as optimizeImage,Ml as optimizeDirectory,gs as oneOf,sg as onceStore,bm as onUpdated,_c as onUpdate,dm as onUnmounted,ym as onServer,$l as onMounted,hf as onMount,bi as onHydrated,yf as onErrorCaptured,jf as onDestroy,Lh as onDeactivated,xm as onClient,am as onBeforeUpdate,cm as onBeforeUnmount,_l as onBeforeMount,Kh as onActivated,Qq as observeElement,Bo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Un as negotiateEncoding,Ua as navigateTo,fm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,xn as minifyHtml,jg as metaDirective,Wg as metaDedupKey,Rp as mergeParams,Yg as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Oi as markdownDirectiveHandler,Fk as markdownCache,ga as looksLikeGlob,Sr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Bk as loadStxConfig,db as loadMiddlewareFromDirectory,cn as loadManifest,Mq as loadElement,En as loadChannels,Lb as listensPassively,Zr as lintStxStrict,Oq as lazyLoadAll,Nq as lazyLoad,Ha as keyframeDirective,qr as jsxs,rr as jsxDEV,pr as jsx,zo as jsonResponse,Ye as islandDirective,l as isTest,Pm as isSpaNavigation,Im as isSpaNavRequest,uq as isSignatureValid,nf as isSignal,rl as isSharpAvailable,lo as isServerEnvironment,vm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Jq as isNativeLazySupported,Br as isMarkdownPath,Q as isLoading,R as isLoaded,xi as isJavaScriptScript,Kq as isIntersectionObserverSupported,zl as isImageFile,sl as isImageBackendAvailable,aa as isICUFormat,ai as isHydrated,Di as isHydrateTrigger,hd as isHttpStatus,ko as isEdgeEnvironment,_r as isDirectiveKind,k as isDevelopment,of as isDerived,Mk as isCssOnlyChange,Tn as isCompressible,wm as isClient,Ch as isAsyncComponent,fn as isActionableMethod,$p as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Or as injectThemeBootstrap,ig as injectSeoTags,Lr as injectSeo,Xf as injectRouterScript,Lk as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,eh as injectConfigHeadTags,Kg as injectColorModeBootScript,_g as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,qm as initStoreRegistry,ml as initNetlify,op as initLoadingIndicator,Lq as initLazyLoading,Ho as initFile,Tq as initBlurUp,Zq as initAllBlurUp,Wj as imgDirective,Jl as imageDirective,kn as hydrateTemplateStream,jn as hydrateTemplate,lp as hydrateIslands,Zh as hydrateIsland,ln as hydrateFragment,_h as hydrateByStrategy,$h as hydrateAll,Ep as hydrate,Wo as htmlResponse,ah as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Ej as hashString,Wf as hashFilePath,Cj as hashFile,Dj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Jp as hasStore,xc as hasPlaceholders,kl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,dh as hasDocumentShell,pi as hasDirectives,ma as hasDOMSupport,Cl as handleImageRequest,zf as handleError,yr as h,yl as groupVariantsByFormat,Zp as grayscale,Po as gitHash,rn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,fl as getTotalSize,vq as getTimeUntilExpiry,jh as getStoreScript,Kp as getStoreNames,Ip as getStore,_k as getStorageSize,Zk as getStorageKeys,Ji as getSourceLineInfo,zi as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,ok as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,ni as getPositionInfo,uc as getPlaceholderRegistry,Bj as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Al as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,ul as getImageMetadata,Fe as getImageDelivery,Dp as getHydrationRuntime,sm as getHydratedStoreState,Pk as getHmrServer,be as getHead,vp as getHMRHandler,nj as getFormatExtension,Gj as getFileMtime,xl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ri as getDirectives,Qi as getDirective,Rl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Mi as getComponentCacheStats,Yj as getCachedVideoResult,zq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,zj as getCachedPlaceholder,Nj as getCachedImageResult,Hj as getCached,Kj as getCacheStats,Pg as getBuildId,Bn as getBroadcastServer,mj as getBestVariant,Bc as getAllFilters,aj as generateWidthSrcset,Oh as generateVirtualListCSS,er as generateVideoPreview,Ee as generateValidationScript,fr as generateUploadRuntime,sn as generateTreeShakenBundle,th as generateTransitionRuntime,sh as generateTransitionCSS,ak as generateThumbnails,sj as generateThumbhashPlaceholder,bo as generateTemplatesDocs,zh as generateSuspenseRuntime,yh as generateSuspenseCSS,yp as generateStateScript,kj as generateSrcsetData,Rj as generateSrcset,vl as generateSrcSet,bk as generateSpriteSheet,nr as generateSpaShell,lj as generateSourceTags,gj as generateSizesFromBreakpoints,fj as generateSizesAttribute,wl as generateSizes,mg as generateSitemapIndex,Mr as generateSitemap,Iq as generateSimpleMediaPicker,Cq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,lk as generateScopeId,vk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Nr as generateRobots,Qj as generateResponsiveVariants,rk as generateReactiveWebComponentTS,qk as generateReactiveWebComponent,tk as generateReactiveRuntime,sk as generateReactiveMixin,$j as generatePoster,yj as generatePlaceholderStyle,xj as generatePlaceholderCSS,rj as generatePlaceholder,Yh as generatePartialHydrationCSS,Gd as generateNonce,gl as generateNetlifyToml,hr as generateMinifiedMediaRuntime,gr as generateMediaRuntime,Hq as generateMediaManagerEmbed,an as generateManifest,qp as generateLoadingIndicatorHtml,Sq as generateLazyLoadRuntime,Wm as generateLayoutTypes,uj as generateLQIP,Jh as generateKeepAliveRuntime,Ih as generateKeepAliveCSS,di as generateIslandManifest,dr as generateImagePreview,Nl as generateImageManifest,Cp as generateHydrationScript,af as generateHydrationRuntime,Fp as generateHydrationCSS,Sh as generateHydrationBootstrap,Kk as generateHotReloadScript,jb as generateHeatmapScript,tp as generateHMRClientScript,ck as generateHLSManifest,zp as generateEventBindings,ej as generateDprSrcsetWithVariableQuality,dj as generateDprSrcset,bh as generateDocumentShell,ho as generateDocs,co as generateDirectivesDocs,Wi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,dk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ao as generateComponentsDocs,Th as generateComponentManifest,_n as generateComponentDoc,wj as generateColorPlaceholder,Jg as generateColorModeBootScript,im as generateClientRuntime,Fj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,_q as generateBlurUpRuntime,$q as generateBlurUpCSS,ad as generateBindingsRuntime,bj as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Eh as generateAsyncComponentRuntime,Dh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,kp as formatTypecheckDiagnostics,dp as formatTypeErrors,Eo as formatStxContent,el as formatSize,Ta as formatRoutes,Fo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Kr as formatDoctorReport,eo as formatDocsAsMarkdown,go as formatDocsAsJson,fo as formatDocsAsHtml,gq as format,wn as foldConstants,fq as flipVertical,eq as flipHorizontal,Xm as fingerprint,ip as findStxModuleDeclarations,hp as findRuntimeTypeDeclarations,Ir as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,tn as findDeadCode,tn as findDeadBranches,Em as findContainerRegion,$n as findComponentFiles,ms as findCommonDir,dl as filterRequiredFiles,Hi as fileExists,Zf as extractVariables,li as extractTemplateExpressions,Ue as extractStreamBoundaries,Ap as extractState,vi as extractSlotContent,$f as extractScriptFromTemplate,ki as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,vj as extractDominantColor,Ed as extractDirectiveParams,qi as extractDirectiveNames,Qm as extractContainerContent,Yn as extractComponentProps,Uh as extractComponentName,Zn as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Vh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,pk as extractAndScopeStyles,Ob as extractAndProcessEvents,Tk as externalizeSharedAssets,Uk as externalizeRepeatedAssets,Sk as externalizeHtml,Pc as evaluateExpression,vn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,oh as ensureTeleportTargets,fh as ensureDocumentShell,Ae as enhancedValidationRules,Wn as enableDevTools,un as eliminateDeadCode,ff as effect,nq as dprUrls,io as docsCommand,ec as discoverServerApi,Um as discoverLayoutNames,Rq as disconnectObserver,Xn as disableDevTools,F as devHelpers,Lm as detectShell,jo as detectRuntime,hl as detectProjectConfig,oj as detectFormat,on as detectBuildMode,ef as derived,ll as deploy,Dk as defineStxConfig,Np as defineStore,Bf as defineSlots,Yr as defineSiteConfig,as as definePropsWithValidation,$r as defineProps,xk as definePlugin,ie as definePageMeta,Wa as defineMiddleware,fi as defineForm,wf as defineExpose,vf as defineEmits,Ti as defineDirective,Ar as defineCustomElement,Mo as defineConfig,Ui as defineClientDirective,Bh as defineAsyncComponent,Oo as defineApiHandler,ir as defaultMediaConfig,Pl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,zk as defaultConfig,ks as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Hm as decodeTitleEntities,tj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,Yq as crossfadeTransition,Tp as crop,Mh as createVirtualList,ik as createVideoDirective,vo as createVercelHandler,ap as createTypeChecker,fa as createTranslateFilter,ro as createTextEncoderStream,zr as createStxApp,qo as createStreamingResponse,We as createStreamRenderer,Lp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Tl as createScope,wh as createSSRSuspense,bf as createRouter,Sm as createRouteRuleResolver,eb as createRouteLocation,_o as createRoute,Ul as createRef,Vl as createReactive,Df as createProvideContext,Ro as createProject,Lo as createProductionBuild,tc as createPlaceholder,An as createOptimizedBuild,wo as createNetlifyHandler,$k as createNetlifyClient,fb as createMiddlewareContext,Zo as createMiddleware,Pq as createLazyObserver,Gh as createKeepAliveCache,no as createKVNamespace,Wh as createIslandRegistry,Vj as createImgDirective,Kl as createImagePlugin,Dl as createImageHandler,Il as createImageDirective,nb as createHeatmapAggregator,cl as createFileManifest,mo as createEnvAccessor,z as createEnhancedError,po as createEdgeHandler,oo as createEdgeCache,Ki as createDetailedErrorMessage,uo as createDenoHandler,il as createDefaultNetlifyConfig,Zd as createCspHeaders,yo as createCookie,Wl as createComputed,Sl as createComponentInstance,to as createCloudflareHandler,Ya as createClientCookieManager,Vi as createBuiltinDirectives,zr as createApp,Ka as createAnimationTimeline,Wp as cover,_f as convertToCommonJS,bq as contrast,Vp as contain,y as consoleError,m as configureErrorHandling,Ck as config,Wl as computed,Vn as compressResponse,Bg as composerPattern,Ag as composer,Nm as composeShellWithPage,Pn as componentDirective,Fi as componentClientSignalNames,$m as compileTemplate,a as collectRepeatedFlag,bl as collectDeployFiles,$g as cloakStyleFragment,Ic as clientLoopScopes,_j as clearVideoCache,N as clearTranslationCache,kh as clearStoreCache,Yk as clearStorage,Aq as clearSignatureCache,Gf as clearServerData,Aj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Hl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,lh as clearComposableCache,Li as clearComponentCache,Jj as clearCache,Ib as clearBlankCache,pp as cleanupLoadingIndicator,Bm as classifyScript,Cm as classifyAllScripts,bp as checkTemplateFile,cp as checkTemplate,Uf as checkCache,xq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Kn as channel,Do as captureScreenshots,Co as captureScreenshot,Z as cancelPendingLoads,al as calculateSha1,cj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,kk as buildWebComponents,ep as buildVirtualSource,kr as buildViews,Pp as buildUrl,Qe as buildSuspenseResolveScript,Xr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Ym as buildRuntimeAsset,Zm as buildRouterAsset,Wr as buildLangPickerScript,ij as buildImageUrl,Sg as buildIdFragment,Xg as buildHtmlAttrs,mn as buildForProduction,Sn as buildComponentLibrary,yq as buildAuthParams,nn as buildApp,Ur as buildAlternateLinks,Ko as build,In as broadcastPrivate,Jn as broadcastPresence,Fn as broadcast,aq as brightness,Tb as bracketDepths,Xp as blur,Jb as blankInertHtmlRegions,sq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,iq as auto,ja as attributeValue,_m as assetTags,Mb as asInvocableStatement,hs as arrayOf,Rr as applyTranslations,Pj as applyTransformations,wi as applySlots,On as applyPropDefaults,lq as applyPreset,Zg as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Jm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,ek as analyzeVideo,qn as analyzeUsage,zm as analyzeTemplate,Am as analyzeProject,qn as analyzeDirectiveUsage,ed as analyticsDirective,Uo as addStore,To as addPage,Sd as addNonceToInlineContent,Vo as addLayout,So as addComponent,hn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,Xj as VideoProcessorCache,gi as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,$o as TemplateTypeChecker,Go as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,vr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Fm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Jo as ProductionBuild,xr as Portal,Qo as PROJECT_TEMPLATES,kq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Gp as MemorySessionStore,$i as MIME_TYPES,Yi as MEDIA_DEFAULT_WIDTHS,_i as MEDIA_DEFAULT_FORMATS,Tm as LAYOUT_TYPES_FILE,Mj as ImageProcessorCache,Bl as ImageProcessingError,Bp as HydrationRuntime,Jk as HotReloadServer,mb as HeatmapAggregator,Vg as HTML_CLASS_MARKER,Ug as HTML_ATTRS_MARKER,or as Fragment,wr as For,Gm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Rk as EXTERNALIZED_ASSET_DIR,nl as DeployError,ol as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ql as DEFAULT_QUALITY,pj as DEFAULT_PLACEHOLDER_OPTIONS,pl as DEFAULT_FORMATS,Zi as DEFAULT_DPR_VALUES,sp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,hj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Tg as CLOAK_STYLE,Mn as BroadcastServer,Ln as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,qj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Hr as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ht as a,It as b}from"./chunk-
|
|
2
|
+
import{Ht as a,It as b}from"./chunk-rqshksja.js";import"./chunk-k6bagvmz.js";import"./chunk-myyj9qp3.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{lk as a,mk as b,nk as c,ok as d}from"./chunk-ytksxjme.js";import"./chunk-60s7hgym.js";import"./chunk-508xtkyq.js";import"./chunk-nh6p0k17.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-a3fsqjag.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-rqshksja.js";import"./chunk-k6bagvmz.js";import"./chunk-zhzcahz5.js";import"./chunk-8kwmj99g.js";import"./chunk-7ngmxv4z.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Tw as z}from"./chunk-myyj9qp3.js";var Yq={1001:{message:"Unclosed directive: {{directive}}",help:"Make sure to close the directive with the appropriate end tag"},1002:{message:"Unclosed expression at position {{position}}",help:"Check for missing closing braces }}"},1003:{message:"Invalid directive syntax: {{directive}}",help:"Review the directive documentation for correct syntax"},1004:{message:"Malformed expression: {{expression}}",help:"Check for syntax errors in your expression"},1005:{message:"Unexpected token: {{token}}",help:"Remove or fix the unexpected token"},1101:{message:"Undefined variable: {{variable}}",help:"Make sure the variable is defined in the template context"},1102:{message:"Type error: {{details}}",help:"Check that you are using the correct types"},1103:{message:"Evaluation error: {{details}}",help:"Review the expression for errors"},1104:{message:"Infinite loop detected in {{location}}",help:"Check your loop conditions"},1105:{message:"Circular reference detected: {{path}}",help:"Remove the circular dependency"},1201:{message:"Unsafe expression blocked: {{expression}}",help:"This expression contains potentially dangerous code"},1202:{message:"Path traversal attempt blocked: {{path}}",help:"Use only relative paths within allowed directories"},1203:{message:"Potential XSS attempt blocked",help:"Sanitize user input before rendering"},1204:{message:"Code injection attempt blocked: {{code}}",help:"Avoid executing dynamic code"},1205:{message:"Prohibited DOM API usage: {{api}}",help:"Use STX.useRefs(), STX.useRef(), STX.el() and other STX helpers instead of direct DOM manipulation"},1301:{message:"File not found: {{path}}",help:"Check that the file exists and the path is correct"},1302:{message:"Error reading file: {{path}}",help:"Check file permissions and encoding"},1303:{message:"Invalid file path: {{path}}",help:"Use a valid file path"},1304:{message:"Permission denied: {{path}}",help:"Check file permissions"},1401:{message:"Invalid configuration: {{details}}",help:"Review your stx.config.ts file"},1402:{message:"Missing required configuration: {{key}}",help:"Add the required configuration option"},1403:{message:"Deprecated configuration: {{key}}",help:"Update to the new configuration format"},1501:{message:"Component not found: {{name}}",help:"Check that the component exists in your components directory"},1502:{message:"Invalid props for component {{name}}: {{details}}",help:"Check the component prop requirements"},1503:{message:"Error rendering component {{name}}: {{details}}",help:"Check the component template for errors"},1601:{message:"Filter not found: {{filter}}",help:"Register the filter or check the filter name"},1602:{message:"Invalid arguments for filter {{filter}}: {{details}}",help:"Check the filter documentation for correct arguments"},1603:{message:"Expression evaluation timed out",help:"Simplify the expression or increase the timeout"}},N={},u="en";function Gq(q){u=q}function Bq(){return u}function Hq(q){N={...N,...q}}function wq(){N={}}function f(q,V={}){let J=N[q]||Yq[q]||{message:`Unknown error (code: ${q})`},Q=J.message,Z=J.help;for(let[$,Y]of Object.entries(V)){let X=`{{${$}}}`;if(Q=Q.replace(new RegExp(X,"g"),Y),Z)Z=Z.replace(new RegExp(X,"g"),Y)}return{message:Q,help:Z}}function Wq(q,V={}){let{message:J,help:Q}=f(q,V);return Q?`${J}
|
|
3
|
+
Help: ${Q}`:J}var D={UNCLOSED_DIRECTIVE:1001,UNCLOSED_EXPRESSION:1002,INVALID_DIRECTIVE_SYNTAX:1003,MALFORMED_EXPRESSION:1004,UNEXPECTED_TOKEN:1005,UNDEFINED_VARIABLE:1101,TYPE_ERROR:1102,EVALUATION_ERROR:1103,INFINITE_LOOP:1104,CIRCULAR_REFERENCE:1105,UNSAFE_EXPRESSION:1201,PATH_TRAVERSAL:1202,XSS_ATTEMPT:1203,CODE_INJECTION:1204,DOM_API_VIOLATION:1205,FILE_NOT_FOUND:1301,FILE_READ_ERROR:1302,INVALID_FILE_PATH:1303,PERMISSION_DENIED:1304,INVALID_CONFIG:1401,MISSING_REQUIRED_CONFIG:1402,DEPRECATED_CONFIG:1403,COMPONENT_NOT_FOUND:1501,INVALID_PROPS:1502,COMPONENT_RENDER_ERROR:1503,FILTER_NOT_FOUND:1601,INVALID_FILTER_ARGS:1602,EXPRESSION_TIMEOUT:1603};function S(q){for(let[V,J]of Object.entries(D))if(J===q)return V;return}function Mq(){let{NODE_ENV:q}=process.env;return q==="production"}function K(){let{STX_DEBUG:q}=process.env;return!Mq()||q==="true"}function aq(){let{NODE_ENV:q}=process.env;return q==="test"}import Dq from"path";var x={showRelativePaths:!1,enableAutoRecovery:K(),logRecoveryWarnings:!0},j={...x};function Iq(q){j={...j,...q}}function T(){return{...j}}function Fq(){j={...x}}function _(q){if(!j.showRelativePaths||!q)return q;let V=j.baseDir||process.cwd();try{let J=Dq.relative(V,q);return J.startsWith("..")?q:J}catch{return q}}class O extends Error{code;filePath;line;column;context;numericCode;constructor(q,V,J,Q,Z,$,Y){super(q);this.code=V;this.filePath=J;this.line=Q;this.column=Z;this.context=$;if(this.name="StxError",this.numericCode=Y||D.EVALUATION_ERROR,this.filePath)this.filePath=_(this.filePath)}}class c extends O{constructor(q,V,J,Q,Z,$){super(q,"stx_SYNTAX_ERROR",V,J,Q,Z,$||D.INVALID_DIRECTIVE_SYNTAX);this.name="StxSyntaxError"}}class m extends O{constructor(q,V,J,Q,Z,$){super(q,"stx_RUNTIME_ERROR",V,J,Q,Z,$||D.EVALUATION_ERROR);this.name="StxRuntimeError"}}class d extends O{constructor(q,V,J,Q,Z,$){super(q,"stx_SECURITY_ERROR",V,J,Q,Z,$||D.UNSAFE_EXPRESSION);this.name="StxSecurityError"}}class p extends O{constructor(q,V,J,Q,Z,$){super(q,"stx_FILE_ERROR",V,J,Q,Z,$||D.FILE_NOT_FOUND);this.name="StxFileError"}}class l extends O{isFatal=!0;constructor(q,V,J,Q,Z,$){super(q,"stx_VALIDATION_ERROR",V,J,Q,Z,$||D.DOM_API_VIOLATION);this.name="StxValidationError"}}function h(q){let{type:V,message:J,code:Q,filePath:Z,line:$,column:Y,template:X,offset:B,snippet:G,suggestion:H,format:w="text"}=q,W=$,M=Y;if(!W&&X&&B!==void 0){let E=o(X,B);W=E.line,M=E.column}let F=Z?_(Z):void 0,Xq=Q?S(Q):void 0,U={type:V,code:Q,codeName:Xq,message:J,filePath:F,line:W,column:M,snippet:G,suggestion:H,timestamp:new Date().toISOString()},k;switch(w){case"html":k=jq(U);break;case"json":k=JSON.stringify(U,null,2);break;case"console":k=Uq(U,X,B);break;case"text":default:k=Oq(U,X,B);break}return{formatted:k,data:U}}function Oq(q,V,J){let Q=[],Z=q.code?` [${q.codeName||q.code}]`:"";if(Q.push(`[${q.type} Error${Z}]`),q.filePath){let $=q.filePath;if(q.line){if($+=`:${q.line}`,q.column)$+=`:${q.column}`}Q.push(`at ${$}`)}if(Q.push(`
|
|
4
|
+
${q.message}`),V&&q.line){let $=kq(V,q.line,2);if($)Q.push(`
|
|
5
|
+
${$}`)}if(q.snippet)Q.push(`
|
|
6
|
+
Snippet: ${q.snippet}`);if(q.suggestion)Q.push(`
|
|
7
|
+
Suggestion: ${q.suggestion}`);return Q.join(" ")}function jq(q){let V=q.code?` [${q.code}]`:"",J=q.filePath?` in ${q.filePath}${q.line?`:${q.line}`:""}`:"",Q=`<!-- [${q.type} Error${V}]${J}: ${s(q.message)}`;if(q.suggestion)Q+=` | Suggestion: ${s(q.suggestion)}`;return Q+=" -->",Q}function Uq(q,V,J){let G=[],H=q.code?` [${q.codeName||q.code}]`:"";if(G.push(`\x1B[1m${"\x1B[31m"}\u2501\u2501\u2501 ${q.type} Error${H} \u2501\u2501\u2501${"\x1B[0m"}`),q.filePath){let w=`\x1B[36m${q.filePath}\x1B[0m`;if(q.line){if(w+=`\x1B[90m:${q.line}\x1B[0m`,q.column)w+=`\x1B[90m:${q.column}\x1B[0m`}G.push(`
|
|
8
|
+
\x1B[90mat\x1B[0m ${w}`)}if(G.push(`
|
|
9
|
+
|
|
10
|
+
${q.message}`),V&&q.line){let w=Kq(V,q.line,2);if(w)G.push(`
|
|
11
|
+
|
|
12
|
+
\x1B[90mContext:\x1B[0m
|
|
13
|
+
${w}`)}if(q.suggestion)G.push(`
|
|
14
|
+
|
|
15
|
+
\x1B[33mSuggestion:\x1B[0m ${q.suggestion}`);return G.push(`
|
|
16
|
+
${"\x1B[31m"}\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501${"\x1B[0m"}`),G.join("")}function kq(q,V,J){let Q=q.split(`
|
|
17
|
+
`),Z=Math.max(0,V-J-1),$=Math.min(Q.length-1,V+J-1),Y=[];for(let X=Z;X<=$;X++){let B=(X+1).toString().padStart(4),G=X===V-1?">":" ";Y.push(`${G}${B} | ${Q[X]}`)}return Y.join(`
|
|
18
|
+
`)}function Kq(q,V,J){let Q=q.split(`
|
|
19
|
+
`),Z=Math.max(0,V-J-1),$=Math.min(Q.length-1,V+J-1),Y="\x1B[90m",X="\x1B[31m",B="\x1B[0m",G=[];for(let H=Z;H<=$;H++){let w=(H+1).toString().padStart(4),W=H===V-1,M=W?"\x1B[31m>\x1B[0m":" ",F=W?`\x1B[31m${Q[H]}\x1B[0m`:`\x1B[90m${Q[H]}\x1B[0m`;G.push(`${M}\x1B[90m${w}\x1B[0m | ${F}`)}return G.join(`
|
|
20
|
+
`)}function s(q){return q.replace(/--/g,"- -").replace(/>/g,">")}function o(q,V){let Q=q.substring(0,V).split(`
|
|
21
|
+
`);return{line:Q.length,column:Q[Q.length-1].length}}function zq(q,V,J){return h({type:q,message:V,code:J,format:"html"}).formatted}function Nq(q,V,J,Q,Z){return h({type:q,message:V,code:Z,filePath:J,line:Q,format:"console"}).formatted}function Tq(q,V,J){let Q=J.template.split(`
|
|
22
|
+
`),Z=o(J.template,J.offset),$=`[${q} Error at line ${Z.line} in ${J.filePath}]: ${V}
|
|
23
|
+
|
|
24
|
+
`,Y=Math.max(0,Z.line-3),X=Math.min(Q.length-1,Z.line+2);$+=`Context:
|
|
25
|
+
`;for(let B=Y;B<=X;B++){let G=B+1,H=Q[B]||"",w=B===Z.line-1?">":" ";$+=`${w} ${G.toString().padStart(3)}: ${H}
|
|
26
|
+
`}if(Z.line-1<Q.length){let B=" ".repeat(Z.column+5);$+=`${B}^
|
|
27
|
+
`}return $}function _q(q,V,J){try{return q()}catch(Q){if(J&&Q instanceof Error)J(Q);return V}}async function Lq(q,V,J){try{return await q()}catch(Q){if(J&&Q instanceof Error)J(Q);return V}}var bq={isEnabled(){return T().enableAutoRecovery},fixCommonSyntaxErrors(q){let V=T();if(!V.enableAutoRecovery)return{fixed:q,fixes:[]};let J=q,Q=[],Z=(J.match(/\{\{/g)||[]).length,$=(J.match(/\}\}/g)||[]).length;if(Z>$){let X=Z-$;J+="}}".repeat(X),Q.push(`Added ${X} missing closing braces '}}'`)}let Y=["if","foreach","for","switch","section"];for(let X of Y){let B=(J.match(new RegExp(`@${X}\\b`,"g"))||[]).length,G=(J.match(new RegExp(`@end${X}\\b`,"g"))||[]).length;if(B>G){let H=B-G;for(let w=0;w<H;w++)J+=`
|
|
28
|
+
@end${X}`;Q.push(`Added ${H} missing @end${X}`)}}if(Q.length>0&&V.logRecoveryWarnings)console.warn("[stx] Auto-recovery applied fixes:"),Q.forEach((X)=>console.warn(` - ${X}`)),console.warn(" Consider fixing these issues in your template.");return{fixed:J,fixes:Q}},createFallbackContent(q,V){if(K())return`<!-- ${q} failed: ${V.message} -->`;return"<!-- stx rendering error -->"}};class v{errors=[];maxErrors;enableFileLogging;logFilePath;logFormat;maxFileSize;maxLogFiles;minLevel;writeQueue=Promise.resolve();constructor(q={}){this.maxErrors=q.maxErrors??1000,this.enableFileLogging=q.enableFileLogging??!1,this.logFilePath=q.logFilePath??".stx/errors.log",this.logFormat=q.logFormat??"json",this.maxFileSize=q.maxFileSize??10485760,this.maxLogFiles=q.maxLogFiles??5,this.minLevel=q.minLevel??"all"}configure(q){if(q.maxErrors!==void 0)this.maxErrors=q.maxErrors;if(q.enableFileLogging!==void 0)this.enableFileLogging=q.enableFileLogging;if(q.logFilePath!==void 0)this.logFilePath=q.logFilePath;if(q.logFormat!==void 0)this.logFormat=q.logFormat;if(q.maxFileSize!==void 0)this.maxFileSize=q.maxFileSize;if(q.maxLogFiles!==void 0)this.maxLogFiles=q.maxLogFiles;if(q.minLevel!==void 0)this.minLevel=q.minLevel}log(q,V,J="error"){let Q={timestamp:new Date,error:q,context:V,level:J};if(this.errors.push(Q),this.errors.length>this.maxErrors)this.errors=this.errors.slice(-this.maxErrors);if(this.enableFileLogging&&this.shouldLog(J))this.writeToFile(Q)}shouldLog(q){if(this.minLevel==="all")return!0;if(this.minLevel==="warning")return q==="error"||q==="warning";if(this.minLevel==="error")return q==="error";return!0}formatEntry(q){if(this.logFormat==="json")return JSON.stringify({timestamp:q.timestamp.toISOString(),level:q.level||"error",type:q.error.constructor.name,message:q.error.message,stack:q.error.stack,context:q.context});let V=[`[${q.timestamp.toISOString()}] [${(q.level||"error").toUpperCase()}] ${q.error.constructor.name}: ${q.error.message}`];if(q.error.stack)V.push(` Stack: ${q.error.stack.split(`
|
|
29
|
+
`).slice(1).join(`
|
|
30
|
+
`)}`);if(q.context)V.push(` Context: ${JSON.stringify(q.context)}`);return V.join(`
|
|
31
|
+
`)}writeToFile(q){this.writeQueue=this.writeQueue.then(async()=>{try{let V=await import("fs"),Q=(await import("path")).dirname(this.logFilePath);if(!V.existsSync(Q))V.mkdirSync(Q,{recursive:!0});await this.rotateIfNeeded(V);let Z=`${this.formatEntry(q)}
|
|
32
|
+
`;V.appendFileSync(this.logFilePath,Z,"utf-8")}catch(V){if(process.env.STX_DEBUG==="true")console.error("Failed to write to error log:",V)}})}async rotateIfNeeded(q){try{if(!q.existsSync(this.logFilePath))return;if(q.statSync(this.logFilePath).size<this.maxFileSize)return;for(let J=this.maxLogFiles-1;J>=1;J--){let Q=`${this.logFilePath}.${J}`,Z=`${this.logFilePath}.${J+1}`;if(q.existsSync(Q))if(J>=this.maxLogFiles-1)q.unlinkSync(Q);else q.renameSync(Q,Z)}if(this.maxLogFiles<=1)q.writeFileSync(this.logFilePath,"");else q.renameSync(this.logFilePath,`${this.logFilePath}.1`)}catch(V){if(process.env.STX_DEBUG==="true")console.error("Failed to rotate error logs:",V)}}getRecentErrors(q=10){return this.errors.slice(-q)}getErrorsByType(q){return this.errors.filter((V)=>V.error.constructor.name===q)}getErrorsByLevel(q){return this.errors.filter((V)=>V.level===q)}clear(){this.errors.length=0}async clearLogFile(){try{let q=await import("fs");if(q.existsSync(this.logFilePath))q.writeFileSync(this.logFilePath,"","utf-8")}catch(q){if(process.env.STX_DEBUG==="true")console.error("Failed to clear error log:",q)}}getStats(){let q={},V={error:0,warning:0,info:0};for(let J of this.errors){let Q=J.error.constructor.name;q[Q]=(q[Q]||0)+1;let Z=J.level||"error";V[Z]=(V[Z]||0)+1}return{total:this.errors.length,byType:q,byLevel:V}}async exportToFile(q,V="json"){let J=await import("fs"),Z=(await import("path")).dirname(q);if(!J.existsSync(Z))J.mkdirSync(Z,{recursive:!0});if(V==="json"){let $=this.errors.map((Y)=>({timestamp:Y.timestamp.toISOString(),level:Y.level||"error",type:Y.error.constructor.name,message:Y.error.message,stack:Y.error.stack,context:Y.context}));J.writeFileSync(q,JSON.stringify($,null,2),"utf-8")}else{let $=this.errors.map((Y)=>this.formatEntry(Y));J.writeFileSync(q,$.join(`
|
|
33
|
+
|
|
34
|
+
`),"utf-8")}}async flush(){await this.writeQueue}}var Aq=new v,Rq={isDevelopment(){return K()},logDetailedError(q,V){if(!this.isDevelopment())return;if(console.error("=== stx Detailed Error ==="),console.error("Error:",q.message),console.error("Stack:",q.stack),V)console.error("Context:",V);console.error("========================")},createErrorReport(q,V){let J=["=== stx Error Report ===",`Time: ${new Date().toISOString()}`,`Error: ${q.message}`,`Type: ${q.constructor.name}`,`Stack: ${q.stack}`];if(V)J.push(`Context: ${JSON.stringify(V,null,2)}`);return J.push("========================"),J.join(`
|
|
35
|
+
`)}};import g from"path";var P={isValidFilePath(q,V){let J=q.replace(/\\/g,"/");if(J.includes("\x00"))return!1;if(J.includes("../")||J.includes("..\\")||J===".."||J.startsWith("../")||J.endsWith("/..")||J.includes("/..\\")||J.includes("\\../"))return!1;if(/^[a-z][a-z0-9+.-]*:/i.test(J))return!1;if(J.startsWith("/")){if(["/etc/","/root/","/var/","/usr/","/bin/","/sbin/","/proc/","/sys/","/dev/","/boot/","/home/","/private/","/Library/","/System/"].some(($)=>J===$.slice(0,-1)||J.startsWith($)))return!1}if(/^[a-z]:/i.test(J)){if(["Windows/","Windows\\","System32/","System32\\","Program Files/","Program Files\\"].some(($)=>J.includes($)))return!1}if(V){let Z=g.resolve(V,q),$=g.resolve(V);if(!Z.startsWith($+g.sep)&&Z!==$)return!1}return!0},isValidVariableName(q){return/^[a-z_$]\w*$/i.test(q)},isValidDirectiveName(q){return/^[a-z][\w-]*$/i.test(q)},isSafeContent(q){return![/<script[^>]*>[\s\S]*?<\/script>/i,/javascript:/i,/data:text\/html/i,/vbscript:/i,/on\w+\s*=/i].some((J)=>J.test(q))}};function Sq(q){let V={"&":"&","<":"<",">":">",'"':""","'":"'"};return q.replace(/[&<>"']/g,(J)=>V[J]||J)}function L(q,V={}){let{allowHtml:J=!1,maxLength:Q=1e4,allowSpecialChars:Z=!0,customSanitizer:$}=V,Y=[],X=q,B=!1;if($){let H=$(X);if(H!==X)X=H,B=!0}if(X.includes("\x00"))X=X.replace(/\0/g,""),B=!0,Y.push("Null bytes removed from parameter");if(X.length>Q)X=X.substring(0,Q),B=!0,Y.push(`Parameter truncated to ${Q} characters`);if(!J&&/<[^>]+>/.test(X))X=Sq(X),B=!0,Y.push("HTML content was escaped");let G=[{pattern:/javascript:/gi,replacement:"",name:"javascript: URI"},{pattern:/vbscript:/gi,replacement:"",name:"vbscript: URI"},{pattern:/data:text\/html/gi,replacement:"",name:"data:text/html URI"}];for(let{pattern:H,replacement:w,name:W}of G)if(H.test(X))X=X.replace(H,w),B=!0,Y.push(`Removed ${W} from parameter`);if(!Z){let H=X;if(X=X.split("").filter((w)=>{let W=w.charCodeAt(0);return W>=32&&W!==127}).join(""),X!==H)B=!0,Y.push("Control characters removed")}return{value:X,modified:B,warnings:Y}}function hq(q,V){let J=q.replace(/\0/g,"");J=J.replace(/\\/g,"/"),J=J.replace(/^[a-z][a-z0-9+.-]*:/i,"");while(J.includes("../")||J.includes("./"))J=J.replace(/\.\.\//g,"").replace(/\.\//g,"");if(!P.isValidFilePath(J,V))return null;return J}function vq(q){let V=[],J=q.trim(),Q=J!==q,Z=[{pattern:/\beval\s*\(/gi,name:"eval()"},{pattern:/\bFunction\s*\(/gi,name:"Function()"},{pattern:/\bsetTimeout\s*\(/gi,name:"setTimeout()"},{pattern:/\bsetInterval\s*\(/gi,name:"setInterval()"},{pattern:/\bimport\s*\(/gi,name:"dynamic import()"},{pattern:/\brequire\s*\(/gi,name:"require()"},{pattern:/\b__proto__\b/gi,name:"__proto__"},{pattern:/\bconstructor\b/gi,name:"constructor"},{pattern:/\bprototype\b/gi,name:"prototype"}];for(let{pattern:$,name:Y}of Z)if($.test(J))V.push(`Potentially dangerous pattern detected: ${Y}`);if(J.includes("\x00"))J=J.replace(/\0/g,""),Q=!0,V.push("Null bytes removed from expression");return{value:J,modified:Q,warnings:V}}function gq(q,V={}){return q.map((J)=>L(J,V))}function r(q){let V={};for(let[J,Q]of Object.entries(q)){if(!P.isValidVariableName(J))continue;if(typeof Q==="string"){let Z=L(Q);V[J]=Z.value}else if(Array.isArray(Q))V[J]=Q.map((Z)=>typeof Z==="string"?L(Z).value:Z);else if(typeof Q==="object"&&Q!==null)V[J]=r(Q);else V[J]=Q}return V}var Pq={maxSanitizeDepth:10,allowBracketNotation:!1},e={...Pq};var A=/\bnew\s+/,R="__stx_safe_ctors",qq=[/\b(eval|Function|setTimeout|setInterval|setImmediate)\b/,/\b(process|require|import|exports|module)\b/,/\b(window|document|global|globalThis)\b/,/\b(constructor|prototype|__proto__)\b/,/\b(Reflect|Proxy)\b/,/\bSymbol\b/,/\b(WeakMap|WeakSet|WeakRef|FinalizationRegistry)\b/,/\b(Generator|AsyncGenerator)\b/,/__\w+__/,/\.(bind|call|apply)\s*\(/,A,/\bdelete\s+/,/\bthis\b/],Cq=new Set(["eval","Function","setTimeout","setInterval","setImmediate","process","require","import","exports","module","window","document","global","globalThis","constructor","prototype","Reflect","Proxy","Symbol","WeakMap","WeakSet","WeakRef","FinalizationRegistry","Generator","AsyncGenerator","delete","this",R]),Vq=new Set(["__proto__","constructor","prototype"]),yq=/[\w)\]]\s*\[\s*['"]/;function Jq(q){let V="",J=[],Q=null,Z=!1;for(let $=0;$<q.length;$++){let Y=q[$];if(Z){Z=!1;continue}if(Y==="\\"&&Q){Z=!0;continue}if(Q){if(Q==="`"&&Y==="$"&&$+1<q.length&&q[$+1]==="{"){let X=1;$+=2;while($<q.length&&X>0){if(q[$]==="{")X++;else if(q[$]==="}")X--;if(X>0)V+=q[$],J.push($),$++}continue}if(Y===Q)Q=null;continue}if(Y==='"'||Y==="'"||Y==="`"){Q=Y;continue}V+=Y,J.push($)}return{text:V,map:J}}function Eq(q){return Jq(q).text}var Qq=["Collator","DateTimeFormat","DisplayNames","ListFormat","Locale","NumberFormat","PluralRules","RelativeTimeFormat","Segmenter"],Zq=(()=>{let q={Date,URL,URLSearchParams},V=Intl;for(let J of Qq)if(typeof V[J]==="function")q[`Intl_${J}`]=V[J];return Object.freeze(Object.assign(Object.create(null),q))})(),uq=/^new(\s+)(Date|URLSearchParams|URL|Intl\s*\.\s*([A-Z_a-z]\w*))\s*\(/,n=/(?<![\w$])new(?![\w$])/g,i=`only new Date(), new URL(), new URLSearchParams() and new Intl.{${Qq.join(",")}}() are allowed`;function fq(q){let{text:V,map:J}=Jq(q),Q=[];n.lastIndex=0;let Z;while((Z=n.exec(V))!==null){let Y=Z.index;if(/(?<!\.)\.\s*$/.test(V.slice(0,Y)))continue;let X=uq.exec(V.slice(Y)),B=X?.[3],G=!X?null:B?`Intl_${B}`:X[2];if(!X||!G||!(G in Zq))throw new I(`matched /${A.source}/; ${i}`,q);let H=Y+X[0].length,w=J[Y],W=J[H-1]+1;if(q.slice(w,W)!==V.slice(Y,H))throw new I(`matched /${A.source}/; ${i}`,q);let M=w+3+X[1].length;Q.push({start:M,end:M+X[2].length,key:G})}let $=q;for(let Y=Q.length-1;Y>=0;Y--){let X=Q[Y];$=`${$.slice(0,X.start)}${R}.${X.key}${$.slice(X.end)}`}return{source:$,usesSafeConstructors:Q.length>0}}class I extends Error{rule;expression;constructor(q,V,J){super(J??`Potentially unsafe expression (${q}): ${V}`);this.name="UnsafeExpressionError",this.rule=q,this.expression=V}}function UV(q){try{return y(q),null}catch(V){return V instanceof I?V.rule:V instanceof Error?V.message:String(V)}}function xq(q,V){let J=/[$A-Z_a-z][$\w]*/g,Q;while((Q=J.exec(q))!==null){let Z=Q[0],$=q[Q.index-1];if(Cq.has(Z))throw new I(`matched /\\b${Z}\\b/; identifier ${Z}`,V);if($==="."&&Vq.has(Z))throw new I(`matched /.${Z}/; property ${Z}`,V)}}function cq(q){let V=/\[\s*(['"])(.*?)\1\s*\]/g,J;while((J=V.exec(q))!==null){let Q=J[2];if(!Vq.has(Q))continue;let Z=q.slice(0,J.index).match(/\S(?=\s*$)/)?.[0],$=q.slice(J.index+J[0].length).match(/^\s*(\S)/)?.[1];if(!((Z==="{"||Z===",")&&$===":"))throw new I(`bracket key ${J[2]}`,q)}}function y(q){let V=q.trim(),J=Eq(V);xq(J,V),cq(V);for(let Q of qq){if(Q===A)continue;if(Q.test(J))throw new I(`matched /${Q.source}/`,V)}if(!e.allowBracketNotation&&yq.test(V))throw new I("bracket notation with a string key; enable with configureSafeEvaluator({ allowBracketNotation: true })",V,`Bracket notation with strings not allowed: ${V}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return fq(V)}function mq(q){return y(q),q.trim()}function dq(q){let V={};V.Math=Math,V.JSON=JSON,V.Date=Date,V.String=String,V.Number=Number,V.Boolean=Boolean,V.Array=Array,V.parseInt=Number.parseInt,V.parseFloat=Number.parseFloat,V.isNaN=Number.isNaN,V.isFinite=Number.isFinite,V.encodeURIComponent=encodeURIComponent,V.decodeURIComponent=decodeURIComponent;for(let[J,Q]of Object.entries(q)){if(J.startsWith("__")||qq.some((Z)=>Z.test(J)))continue;if(Q&&typeof Q==="object"&&!Array.isArray(Q))V[J]=C(Q);else V[J]=Q}return V}function C(q,V=0){if(V>=e.maxSanitizeDepth)return"[Object too deep]";if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map((Q)=>C(Q,V+1));if(q instanceof Date||q instanceof RegExp||q instanceof Map||q instanceof Set||q instanceof Error)return q;let J={};for(let[Q,Z]of Object.entries(q)){if(Q.startsWith("__")||Q==="constructor"||Q==="prototype")continue;if(Z&&typeof Z==="object")J[Q]=C(Z,V+1);else J[Q]=Z}return J}function pq(q,V){try{let J=dq(V),Q=Object.keys(J),Z=Object.values(J);return rq(q,Q)(...Z)}catch{return}}function kV(q){try{return mq(q),!0}catch{return!1}}function KV(q,V){try{let J=pq(q,V);if(J&&typeof J==="object"&&!Array.isArray(J))return J;return{}}catch{return{}}}var $q=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","let","static","implements","interface","package","private","protected","public","arguments","eval","await"]),lq=2000,b=new Map;function a(q,V){let J=`${q.join(",")}\x00${V}`,Q=b.get(J);if(Q)return Q;let Z=Function(...q,V);if(b.size>=lq)b.clear();return b.set(J,Z),Z}function zV(q){return q.replace(/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`/g," ").replace(/\??\.\s*[a-zA-Z_$][\w$]*/g," ").replace(/([{,]\s*)[a-zA-Z_$][\w$]*(\s*:)/g,"$1$2").match(/\b[a-zA-Z_$][\w$]*\b/g)||[]}var sq=/^[A-Za-z_$][\w$]*$/;function oq(q){return sq.test(q)&&!$q.has(q)}function rq(q,V){let{source:J,usesSafeConstructors:Q}=y(q),Z=[];for(let G=0;G<V.length;G++){if(!oq(V[G]))continue;if(V[G]===R)continue;Z.push({key:V[G],index:G})}Z.sort((G,H)=>G.key.localeCompare(H.key));let $=Z.map((G)=>G.key),Y=Z.map((G)=>G.index),X=`
|
|
36
|
+
'use strict';
|
|
37
|
+
try {
|
|
38
|
+
return ${J};
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
if (e instanceof TypeError) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
throw e;
|
|
45
|
+
}
|
|
46
|
+
`;return nq(Q?(G)=>{let H=a([R,...$,...G],X);return(...w)=>H(Zq,...w)}:(G)=>a([...$,...G],X),$,V,Z,Y)}function nq(q,V,J,Q,Z){let $=q([]),Y=Q.every((B,G)=>B.index===G);if(V.length===J.length&&Y)return t($,V,q);return t((...B)=>{let G=Array(Z.length);for(let H=0;H<Z.length;H++)G[H]=B[Z[H]];return $(...G)},V,q,(B)=>{$=q(B)})}function t(q,V,J,Q){let $=/^(\w+) is not defined$/,Y=q,X=[],B=new Set(V);return(...G)=>{for(let H=0;H<=8;H++)try{return Y(...G)}catch(w){let W=w instanceof Error?w.message:"",M=$.exec(W);if(!(w instanceof ReferenceError)||!M)return;let F=M[1];if(B.has(F)||$q.has(F))return;if(B.add(F),X.push(F),Q)Q(X);else Y=J(X)}return}}function NV(q){let V=q.trim(),J=[/\beval\s*\(/i,/\bFunction\s*\(/i,/\bimport\s*\(/i,/\brequire\s*\(/i,/\bprocess\b/i,/\b__proto__\b/i,/\bconstructor\s*[.(]/i,/\bglobalThis\b/i,/\bwindow\b/i,/\bdocument\b/i,/\bfetch\s*\(/i,/\bBun\b/i,/\bDeno\b/i,/\bconsole\b/i,/\bthis\b/i,/\bReflect\b/i,/\bProxy\b/i,/\bprototype\b/i,/\.(bind|call|apply)\s*\(/i];for(let Q of J)if(Q.test(V))return!1;return!0}
|
|
47
|
+
export{Gq as Du,Bq as Eu,Hq as Fu,wq as Gu,f as Hu,Wq as Iu,D as Ju,S as Ku,Mq as Lu,K as Mu,aq as Nu,Iq as Ou,T as Pu,Fq as Qu,_ as Ru,O as Su,c as Tu,m as Uu,d as Vu,p as Wu,l as Xu,h as Yu,zq as Zu,Nq as _u,Tq as $u,_q as av,Lq as bv,bq as cv,v as dv,Aq as ev,Rq as fv,P as gv,L as hv,hq as iv,vq as jv,gq as kv,r as lv,UV as mv,mq as nv,dq as ov,pq as pv,kV as qv,KV as rv,zV as sv,oq as tv,rq as uv,NV as vv};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ju as Y,Zu as y,mv as A,ov as H,sv as q,uv as b}from"./chunk-
|
|
2
|
+
import{Ju as Y,Zu as y,mv as A,ov as H,sv as q,uv as b}from"./chunk-7ngmxv4z.js";import M from"path";class S{source;pos=0;line=1;column=0;tokens=[];constructor(K){this.source=K}tokenize(){this.tokens=[],this.pos=0,this.line=1,this.column=0;while(this.pos<this.source.length){let K=this.nextToken();if(K)this.tokens.push(K)}return this.tokens.push({type:"EOF",value:"",start:this.pos,end:this.pos,line:this.line,column:this.column}),this.tokens}nextToken(){if(this.pos>=this.source.length)return null;let K=this.pos,Q=this.line,Z=this.column,$=this.source[this.pos];if(/\s/.test($))return this.readWhitespace(K,Q,Z);if($==="/"&&this.peek(1)==="/")return this.readLineComment(K,Q,Z);if($==="/"&&this.peek(1)==="*")return this.readBlockComment(K,Q,Z);if($==='"'||$==="'")return this.readString($,K,Q,Z);if($==="`")return this.readTemplateString(K,Q,Z);if(/\d/.test($)||$==="."&&/\d/.test(this.peek(1)||""))return this.readNumber(K,Q,Z);if(/[a-z_$]/i.test($))return this.readIdentifier(K,Q,Z);if($==="{"){if(this.peek(1)==="{"&&this.peek(2)==="{")return this.advance(3),{type:"RAW_START",value:"{{{",start:K,end:this.pos,line:Q,column:Z};if(this.peek(1)==="{")return this.advance(2),{type:"EXPRESSION_START",value:"{{",start:K,end:this.pos,line:Q,column:Z};if(this.peek(1)==="!"&&this.peek(2)==="!")return this.advance(3),{type:"RAW_START",value:"{!!",start:K,end:this.pos,line:Q,column:Z}}if($==="}"){if(this.peek(1)==="}"&&this.peek(2)==="}")return this.advance(3),{type:"RAW_END",value:"}}}",start:K,end:this.pos,line:Q,column:Z};if(this.peek(1)==="}")return this.advance(2),{type:"EXPRESSION_END",value:"}}",start:K,end:this.pos,line:Q,column:Z}}if($==="!"&&this.peek(1)==="!"&&this.peek(2)==="}")return this.advance(3),{type:"RAW_END",value:"!!}",start:K,end:this.pos,line:Q,column:Z};if($==="@"&&/[a-z]/i.test(this.peek(1)||""))return this.readDirective(K,Q,Z);let z=["===","!==","==","!=","<=",">=","&&","||","??","++","--","+=","-=","*=","/=","%=","**","=>","?.","...","<<",">>",">>>","&=","|=","^="];for(let j of z)if(this.source.slice(this.pos,this.pos+j.length)===j)return this.advance(j.length),{type:"OPERATOR",value:j,start:K,end:this.pos,line:Q,column:Z};if(/[+\-*/%<>=!&|^~?:]/.test($))return this.advance(),{type:"OPERATOR",value:$,start:K,end:this.pos,line:Q,column:Z};if(/[()[\]{},;.]/.test($))return this.advance(),{type:"PUNCTUATION",value:$,start:K,end:this.pos,line:Q,column:Z};return this.advance(),{type:"PUNCTUATION",value:$,start:K,end:this.pos,line:Q,column:Z}}readWhitespace(K,Q,Z){while(this.pos<this.source.length&&/\s/.test(this.source[this.pos]))this.advance();return{type:"WHITESPACE",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}readLineComment(K,Q,Z){this.advance(2);while(this.pos<this.source.length&&this.source[this.pos]!==`
|
|
3
3
|
`)this.advance();return{type:"COMMENT",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}readBlockComment(K,Q,Z){this.advance(2);while(this.pos<this.source.length-1){if(this.source[this.pos]==="*"&&this.source[this.pos+1]==="/"){this.advance(2);break}this.advance()}return{type:"COMMENT",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}readString(K,Q,Z,$){this.advance();while(this.pos<this.source.length){let z=this.source[this.pos];if(z==="\\"){this.advance(2);continue}if(z===K){this.advance();break}this.advance()}return{type:"STRING",value:this.source.slice(Q,this.pos),start:Q,end:this.pos,line:Z,column:$}}readTemplateString(K,Q,Z){this.advance();let $=0,z=256;while(this.pos<this.source.length){let j=this.source[this.pos];if(j==="\\"){this.advance(2);continue}if(j==="$"&&this.peek(1)==="{"){if($>=z){this.pos=this.source.length;break}this.advance(2),$++;continue}if(j==="{"&&$>0){$++,this.advance();continue}if(j==="}"&&$>0){$--,this.advance();continue}if(j==="`"&&$===0){this.advance();break}this.advance()}return{type:"TEMPLATE_STRING",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}readNumber(K,Q,Z){if(this.source[this.pos]==="0"){let $=this.peek(1)?.toLowerCase();if($==="x"||$==="o"||$==="b"){this.advance(2);while(this.pos<this.source.length&&/[\da-f_]/i.test(this.source[this.pos]))this.advance();return{type:"NUMBER",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}}while(this.pos<this.source.length&&/[\d_]/.test(this.source[this.pos]))this.advance();if(this.source[this.pos]==="."&&/\d/.test(this.peek(1)||"")){this.advance();while(this.pos<this.source.length&&/[\d_]/.test(this.source[this.pos]))this.advance()}if(/e/i.test(this.source[this.pos]||"")){if(this.advance(),/[+-]/.test(this.source[this.pos]||""))this.advance();while(this.pos<this.source.length&&/[\d_]/.test(this.source[this.pos]))this.advance()}if(this.source[this.pos]==="n")this.advance();return{type:"NUMBER",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}readIdentifier(K,Q,Z){while(this.pos<this.source.length&&/[\w$]/.test(this.source[this.pos]))this.advance();return{type:"IDENTIFIER",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}readDirective(K,Q,Z){this.advance();while(this.pos<this.source.length&&/[a-z]/i.test(this.source[this.pos]))this.advance();return{type:"DIRECTIVE",value:this.source.slice(K,this.pos),start:K,end:this.pos,line:Q,column:Z}}advance(K=1){for(let Q=0;Q<K&&this.pos<this.source.length;Q++){if(this.source[this.pos]===`
|
|
4
4
|
`)this.line++,this.column=0;else this.column++;this.pos++}}peek(K){return this.source[this.pos+K]}saveState(){return{pos:this.pos,line:this.line,column:this.column}}restoreState(K){this.pos=K.pos,this.line=K.line,this.column=K.column}}function D(K,Q,Z,$=0){let z=0,j=$,J=null,W=0,X=!1;while(j<K.length){let B=K[j];if(J&&X){X=!1,j++;continue}if(J&&B==="\\"){X=!0,j++;continue}if(X=!1,(B==='"'||B==="'"||B==="`")&&!J){J=B,j++;continue}if(B===J&&J!=="`"){J=null,j++;continue}if(J==="`"&&B==="$"&&K[j+1]==="{"){W++,j+=2;continue}if(W>0&&B==="}"){W--,j++;continue}if(B==="`"&&J==="`"&&W===0){J=null,j++;continue}if(J){j++;continue}if(B===Q)z++;else if(B===Z){if(z--,z===0)return j}j++}return-1}function g(K,Q){let Z=Q,$={paren:0,bracket:0,brace:0},z=null,j=0;while(Z<K.length){let J=K[Z];if((Z>0?K[Z-1]:"")==="\\"&&z){Z++;continue}if((J==='"'||J==="'")&&!z){z=J,Z++;continue}if(J===z&&z!=="`"){z=null,Z++;continue}if(J==="`"&&!z){z="`",Z++;continue}if(J==="`"&&z==="`"&&j===0){z=null,Z++;continue}if(z==="`"&&J==="$"&&K[Z+1]==="{"){j++,Z+=2;continue}if(j>0){if(J==="{")j++;else if(J==="}")j--;Z++;continue}if(z){Z++;continue}if($.paren===0&&$.bracket===0&&$.brace===0){if(K.slice(Z,Z+2)==="}}"||K.slice(Z,Z+3)==="!!}")break;if(J===","||J===";")break}if(J==="(")$.paren++;else if(J===")"){if($.paren--,$.paren<0)break}else if(J==="[")$.bracket++;else if(J==="]"){if($.bracket--,$.bracket<0)break}else if(J==="{")$.brace++;else if(J==="}"){if($.brace--,$.brace<0)break}Z++}return{expression:K.slice(Q,Z),endPos:Z}}function l(K){let Q=[],Z="",$={paren:0,bracket:0,brace:0},z=null,j=0;for(let J=0;J<K.length;J++){let W=K[J];if((J>0?K[J-1]:"")==="\\"&&z){Z+=W;continue}if((W==='"'||W==="'")&&!z){z=W,Z+=W;continue}if(W===z&&z!=="`"){z=null,Z+=W;continue}if(W==="`"&&!z){z="`",Z+=W;continue}if(W==="`"&&z==="`"&&j===0){z=null,Z+=W;continue}if(z==="`"&&W==="$"&&K[J+1]==="{"){j++,Z+=W+K[J+1],J++;continue}if(j>0&&W==="{"){j++,Z+=W;continue}if(j>0&&W==="}"){j--,Z+=W;continue}if(z){Z+=W;continue}if(W==="(")$.paren++;else if(W===")")$.paren--;else if(W==="[")$.bracket++;else if(W==="]")$.bracket--;else if(W==="{")$.brace++;else if(W==="}")$.brace--;if(W==="|"&&K[J+1]!=="|"&&(J===0||K[J-1]!=="|")&&K[J-1]!=="\\"&&$.paren===0&&$.bracket===0&&$.brace===0){Q.push(Z.trim()),Z="";continue}if(W==="|"&&K[J-1]==="\\"&&!z){Z=Z.slice(0,-1)+W;continue}Z+=W}if(Z.trim())Q.push(Z.trim());return Q}function C(K,Q){let Z=[];Q.lastIndex=0;let $;while(($=Q.exec(K))!==null){let z=$.index,j=z+$[0].length-1,J=D(K,"(",")",j);if(J===-1){Z.push({start:z,end:-1,args:"",call:K.slice(z,Math.min(K.length,z+80))}),Q.lastIndex=j+1;continue}Z.push({start:z,end:J+1,args:K.slice(j+1,J),call:K.slice(z,J+1)}),Q.lastIndex=J+1}return Z}function w(K,Q,Z,$){let z="",j=0;for(let J of C(K,Q)){if(z+=K.slice(j,J.start),J.end===-1){z+=$(J.call),j=J.start;continue}z+=Z(J.args,J.call),j=J.end}return z+K.slice(j)}function k(K){let Q=[],Z=0,$=null,z="";for(let j=0;j<K.length;j++){let J=K[j];if($){if(z+=J,J==="\\"&&j+1<K.length){z+=K[++j];continue}if(J===$)$=null;continue}if(J==="'"||J==='"'||J==="`")$=J;else if(J==="("||J==="["||J==="{")Z++;else if(J===")"||J==="]"||J==="}")Z--;else if(J===","&&Z===0){Q.push(z.trim()),z="";continue}z+=J}if(z.trim())Q.push(z.trim());return Q}function V(K){let Q=K.trim(),Z=Q[0];if(Z!=="'"&&Z!=='"'&&Z!=="`"||Q.length<2||Q.at(-1)!==Z)return null;let $="";for(let z=1;z<Q.length-1;z++){let j=Q[z];if(j==="\\"&&z+1<Q.length-1){let J=Q[++z];$+=J==="n"?`
|
|
5
5
|
`:J==="t"?"\t":J;continue}if(j===Z)return null;if(Z==="`"&&j==="$"&&Q[z+1]==="{")return null;$+=j}return $}var x=new Set(["true","false","null","undefined","typeof","void","new","in","of","instanceof","this","delete","await","async","function","return","NaN","Infinity"]);function N(K,Q){let Z=K.trim();if(!Z)return{ok:!1,message:"the argument is empty",code:Y.INVALID_DIRECTIVE_SYNTAX};let $=A(Z);if($)return{ok:!1,message:`the expression is not allowed (${$})`,code:Y.UNSAFE_EXPRESSION};let z=H(Q),j;try{j=b(Z,Object.keys(z))(...Object.values(z))}catch(W){return{ok:!1,message:`the expression could not be evaluated: ${W instanceof Error?W.message:String(W)}`,code:Y.EVALUATION_ERROR}}if(j!==void 0&&j!==null)return{ok:!0,value:j};let J=[...new Set(q(Z))].filter((W)=>!x.has(W)&&!(W in z)&&!(W in globalThis));if(J.length>0)return{ok:!1,message:`${J.map((X)=>`"${X}"`).join(", ")} ${J.length===1?"is":"are"} not defined here. Values a directive reads must come from <script server> or the render context; a plain <script> runs in the browser. To pass literal text, quote it.`,code:Y.UNDEFINED_VARIABLE};if(j===void 0&&(Z.startsWith("{")||Z.startsWith("[")))return{ok:!1,message:"the expression threw while it was evaluated",code:Y.EVALUATION_ERROR};return{ok:!0,value:j}}function _(K){if(K===null)return"null";if(Array.isArray(K))return"an array";if(typeof K==="object")return"an object";if(typeof K==="string")return`a string ("${K.length>40?`${K.slice(0,40)}...`:K}")`;return`${/^[aeiou]/.test(typeof K)?"an":"a"} ${typeof K}`}function T(K){return typeof K==="object"&&K!==null&&!Array.isArray(K)}function L(K){if(!K)return"";return M.isAbsolute(K)?M.relative(process.cwd(),K)||K:K}function G(K){let Q=K.replace(/\s+/g," ").trim();return Q.length>80?`${Q.slice(0,77)}...`:Q}function I(K,Q,Z,$,z=Y.EVALUATION_ERROR){let j=$?` in ${L($)}`:"";return console.warn(`[stx] ${G(Q)}${j}: ${Z}`),y(K,`${G(Q)}: ${Z}`,z)}function a(K,Q,Z){let $=Z?` in ${L(Z)}`:"";console.warn(`[stx] ${G(K)}${$}: ${Q}`)}var v=["og:","article:","book:","profile:","fb:","music:","video:"],d=/^[a-z][\w-]*(?::[\w:-]+)?$/i;function E(K,Q){if(K.length<1)return{kind:"error",message:"meta directive requires at least the meta name",code:Y.INVALID_DIRECTIVE_SYNTAX};if(K.length>2)return{kind:"error",message:`@meta takes a name and a value, got ${K.length} arguments`,code:Y.INVALID_DIRECTIVE_SYNTAX};let Z=m(K[0],Q);if(typeof Z!=="string")return Z;let $;if(K.length===2){let j=h(K[1],Q);if(typeof j!=="string")return j;$=j}else{let j=Z.includes(":")?Z.slice(Z.indexOf(":")+1):Z,J=Q.openGraph,W=Q[j]??(T(J)?J[j]:void 0);$=W===void 0||W===null||typeof W==="object"?"":String(W)}if(!$)return{kind:"empty"};return{kind:"tag",tag:v.some((j)=>Z.startsWith(j))?{property:Z,content:$}:{name:Z,content:$}}}function m(K,Q){let Z=V(K);if(Z!==null)return Z.trim()?Z:{kind:"error",message:"the meta name is empty",code:Y.INVALID_DIRECTIVE_SYNTAX};if(d.test(K.trim()))return K.trim();let $=N(K,Q);if(!$.ok)return{kind:"error",message:`meta name: ${$.message}`,code:$.code};if(typeof $.value!=="string"||!$.value.trim())return{kind:"error",message:`the meta name must be a non-empty string, got ${_($.value)}`,code:Y.TYPE_ERROR};return $.value}function h(K,Q){let Z=V(K);if(Z!==null)return Z;let $=N(K,Q);if(!$.ok)return{kind:"error",message:$.message,code:$.code};let z=$.value;if(z===void 0||z===null||z===!1)return"";if(Array.isArray(z))return z.filter((j)=>j!==void 0&&j!==null&&j!=="").map(String).join(", ");if(typeof z==="object"&&!(z instanceof Date))return{kind:"error",message:`the content must be text, got ${_(z)}`,code:Y.TYPE_ERROR};return String(z)}var O={},p=[],F={};function jK(){return O}function zK(){return F}function JK(){O={},p.length=0,F={}}function P(K){O=R(O,K)}function R(K,Q){return{title:Q.title??K.title,titleTemplate:Q.titleTemplate??K.titleTemplate,base:Q.base??K.base,meta:[...K.meta||[],...Q.meta||[]],link:[...K.link||[],...Q.link||[]],script:[...K.script||[],...Q.script||[]],style:[...K.style||[],...Q.style||[]],htmlAttrs:{...K.htmlAttrs,...Q.htmlAttrs},bodyAttrs:{...K.bodyAttrs,...Q.bodyAttrs}}}function u(K){P(f(K))}function f(K){let Q=[];if(K.description)Q.push({name:"description",content:K.description});if(K.keywords){let X=Array.isArray(K.keywords)?K.keywords.join(", "):K.keywords;Q.push({name:"keywords",content:X})}if(K.author)Q.push({name:"author",content:K.author});if(K.robots)Q.push({name:"robots",content:K.robots});let Z=K.ogTitle??K.title,$=K.ogDescription??K.description;if(Z)Q.push({property:"og:title",content:Z});if($)Q.push({property:"og:description",content:$});if(K.ogImage){if(Q.push({property:"og:image",content:K.ogImage}),K.ogImageType)Q.push({property:"og:image:type",content:K.ogImageType});if(K.ogImageWidth)Q.push({property:"og:image:width",content:String(K.ogImageWidth)});if(K.ogImageHeight)Q.push({property:"og:image:height",content:String(K.ogImageHeight)});if(K.ogImageAlt)Q.push({property:"og:image:alt",content:K.ogImageAlt})}if(K.ogUrl)Q.push({property:"og:url",content:K.ogUrl});if(K.ogType)Q.push({property:"og:type",content:K.ogType});if(K.ogSiteName)Q.push({property:"og:site_name",content:K.ogSiteName});if(K.ogLocale)Q.push({property:"og:locale",content:K.ogLocale});if(K.profileFirstName)Q.push({property:"profile:first_name",content:K.profileFirstName});if(K.profileLastName)Q.push({property:"profile:last_name",content:K.profileLastName});if(K.profileUsername)Q.push({property:"profile:username",content:K.profileUsername});let z=K.twitterTitle??K.title,j=K.twitterDescription??K.description,J=K.twitterImage??K.ogImage;if(K.twitterCard)Q.push({name:"twitter:card",content:K.twitterCard});if(z)Q.push({name:"twitter:title",content:z});if(j)Q.push({name:"twitter:description",content:j});if(J){Q.push({name:"twitter:image",content:J});let X=K.twitterImageAlt??(K.twitterImage?void 0:K.ogImageAlt);if(X)Q.push({name:"twitter:image:alt",content:X})}if(K.twitterSite)Q.push({name:"twitter:site",content:K.twitterSite});if(K.twitterCreator)Q.push({name:"twitter:creator",content:K.twitterCreator});if(K.articleAuthor)Q.push({property:"article:author",content:K.articleAuthor});if(K.articlePublishedTime)Q.push({property:"article:published_time",content:K.articlePublishedTime});if(K.articleModifiedTime)Q.push({property:"article:modified_time",content:K.articleModifiedTime});if(K.articleSection)Q.push({property:"article:section",content:K.articleSection});if(K.articleTags)for(let X of K.articleTags)Q.push({property:"article:tag",content:X});let W=[];if(K.canonical)W.push({rel:"canonical",href:K.canonical});return{title:K.title,titleTemplate:K.titleTemplate,meta:Q,link:W}}function WK(K){if(F={...F,...K},K.title||K.description)u({title:K.title,description:K.description})}function XK(K){let Q=typeof K==="function"?K():K;P({title:Q})}function YK(K=O){let Q=[];if(K.title){let Z=K.title;if(K.titleTemplate)Z=typeof K.titleTemplate==="function"?K.titleTemplate(Z):K.titleTemplate.replace("%s",Z);Q.push(`<title>${U(Z)}</title>`)}if(K.base){let Z=Object.entries(K.base).map(([$,z])=>`${$}="${U(z)}"`).join(" ");Q.push(`<base ${Z}>`)}for(let Z of K.meta||[]){let $=Object.entries(Z).filter(([z,j])=>j!==void 0).map(([z,j])=>{return`${z==="httpEquiv"?"http-equiv":z}="${U(String(j))}"`}).join(" ");Q.push(`<meta ${$}>`)}for(let Z of K.link||[]){let $=Object.entries(Z).filter(([z,j])=>j!==void 0).map(([z,j])=>`${z}="${U(String(j))}"`).join(" ");Q.push(`<link ${$}>`)}for(let Z of K.script||[]){let{content:$,...z}=Z,j=Object.entries(z).filter(([J,W])=>W!==void 0).map(([J,W])=>{if(typeof W==="boolean")return W?J:"";return`${J}="${U(String(W))}"`}).filter(Boolean).join(" ");if($)Q.push(`<script ${j}>${$}</script>`);else Q.push(`<script ${j}></script>`)}for(let Z of K.style||[]){let $=Z.type?` type="${Z.type}"`:"";Q.push(`<style${$}>${Z.content}</style>`)}return Q.join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Xf as a}from"./chunk-m1axasq6.js";import"./chunk-vwh3j3fh.js";import"./chunk-0knxnyq6.js";import"./chunk-585vt0xw.js";import"./chunk-y32dbdta.js";import"./chunk-frp9fc7j.js";import"./chunk-xpw4r8qb.js";import"./chunk-508xtkyq.js";import"./chunk-nh6p0k17.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-a3fsqjag.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-rqshksja.js";import"./chunk-k6bagvmz.js";import"./chunk-zhzcahz5.js";import"./chunk-8kwmj99g.js";import"./chunk-7ngmxv4z.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{a as buildForProduction};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fi as jH}from"./chunk-
|
|
2
|
+
import{fi as jH}from"./chunk-660e7tfb.js";import{Eo as e,Np as S,Op as zH,Pp as qH,Sp as JH,Tp as WH,Up as VH,Vp as AH,Wp as GH,Xp as UH,Yp as FH,Zp as MH,_p as XH,am as $H,yr as BH}from"./chunk-508xtkyq.js";import{tt as f}from"./chunk-2zbmyvqc.js";import{Bv as D}from"./chunk-x8t29tnr.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
|
|
3
3
|
`).length;Z.push({line:I,column:V-(J.lastIndexOf(`
|
|
4
4
|
`)+1)+1,offset:V,length:$.length,name:$,kind:q.kind,message:xH($,q.kind)})}}}return Z}import w from"path";var hH="@stacksjs/stx-typescript-plugin";function kH(H,K){let Z=w.resolve(H);for(;;){let q=w.join(Z,"tsconfig.json");if(K(q))return q;let Y=w.dirname(Z);if(Y===Z)return;Z=Y}}function YH(H,K,Z){let q=kH(H,Z);if(!q)return;let Y=new Set,z=(A)=>{if(Y.has(A))return;Y.add(A);let G=K(A);if(!G)return;let X=G.compilerOptions?.plugins;if(Array.isArray(X)){let $=X.find((J)=>J?.name===hH),V=Array.isArray($?.libs)?$.libs.filter((J)=>typeof J==="string"):[];return $?{configPath:A,libs:V.map((J)=>w.resolve(w.dirname(A),J))}:null}let M=typeof G.extends==="string"?[G.extends]:Array.isArray(G.extends)?G.extends:[];for(let $ of[...M].reverse()){if(typeof $!=="string"||!$.startsWith("."))continue;let V=w.resolve(w.dirname(A),$.endsWith(".json")?$:`${$}.json`),J=z(V);if(J!==void 0)return J}return};return z(q)??void 0}function gH(H,K="",Z=""){let q=H.startLine>1?`
|
|
5
5
|
`.repeat(H.startLine-1):"",Y=UH(H)+qH(zH(H.code)),z=H.kind==="client"||H.kind==="plain"?VH(K,H.code):"";return GH(`${q+Y}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Am as g,Bm as h,Cm as i,Dm as j,Em as k,Fm as l,Gm as m,Hm as n,Im as o,Jm as p,Km as q,Lm as r,Mm as s,um as a,vm as b,wm as c,xm as d,ym as e,zm as f}from"./chunk-
|
|
2
|
+
import{Am as g,Bm as h,Cm as i,Dm as j,Em as k,Fm as l,Gm as m,Hm as n,Im as o,Jm as p,Km as q,Lm as r,Mm as s,um as a,vm as b,wm as c,xm as d,ym as e,zm as f}from"./chunk-508xtkyq.js";import"./chunk-nh6p0k17.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-a3fsqjag.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-rqshksja.js";import"./chunk-k6bagvmz.js";import"./chunk-zhzcahz5.js";import"./chunk-8kwmj99g.js";import"./chunk-7ngmxv4z.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{j as usesSignalsInScript,s as unescapeHtml,q as resetRejectedExpressionWarnings,g as replaceInterpolations,c as registerFilters,b as registerFilter,o as processExpressions,n as interpolateScriptsInTemplate,l as interpolateScriptExpressions,m as interpolateScriptAttributes,d as getAllFilters,f as findMustacheEnd,r as evaluateExpression,i as escapeHtmlValue,h as escapeHtml,a as defaultFilters,k as clientLoopScopes,e as clearCustomFilters,p as applyFilters};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{Tw as H}from"./chunk-myyj9qp3.js";import P from"path";var $=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function G(...w){let v=new Set;for(let q of w){if(!q||!q.includes("__stxModules["))continue;for(let z of q.matchAll($))try{v.add(JSON.parse(`"${z[1]}"`))}catch{}}return[...v].sort()}async function T(w,v={}){if(w.length===0)return null;let q=process.cwd(),z=[],J=[];w.forEach((j,X)=>{let Z=j.startsWith("npm:")?j.slice(4):P.resolve(q,j),N=`__stxRegistered${X}`,O=JSON.stringify(j);z.push(`import * as ${N} from ${JSON.stringify(Z)};`),J.push(`if (!globalThis.__stxModules[${O}]) globalThis.__stxModules[${O}] = ${N};`)});let L=[...z,"globalThis.__stxModules = globalThis.__stxModules || {};",...J].join(`
|
|
3
|
-
`),B;try{let{bundleClientScript:j}=await import("./chunk-
|
|
3
|
+
`),B;try{let{bundleClientScript:j}=await import("./chunk-14bq0xmx.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:v.minify,externalizeUserModules:!1,collectInputs:v.collectInputs})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-wxfbfa9w.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-4vg0zgas.js");B=W(F.code);let M=JSON.stringify(new Bun.CryptoHasher("md5").update(L).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${M}]) return;`,` __stxBundles[${M}] = true;`,V,B,"})();"].join(`
|
|
4
4
|
`)}export{G as registeredModuleIdsIn,T as buildModuleRegistryScript};
|
|
@@ -18,7 +18,7 @@ catch (e) {
|
|
|
18
18
|
}
|
|
19
19
|
throw e;
|
|
20
20
|
}
|
|
21
|
-
`),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}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 a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-vak9j9cc.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
|
|
21
|
+
`),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}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 a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-yht9jjry.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
|
|
22
22
|
`))P+=`
|
|
23
23
|
`}let A=P+E.toCSS($J,ZJ);return A=uJ+A,e(W,A),jQ(W,A,F),A}catch(Z){return console.warn("Failed to generate Css CSS:",Z),""}}async function tQ(J,Q,Z=!1,$=!1){let U=await LQ(J,Q);if(!U)return $?o(J):J;let F=Z?`<link data-css="generated" rel="stylesheet" href="/_stx/css.${UQ(U)}.css">`:`<style data-css="generated">
|
|
24
24
|
${U}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ni as a,Oi as b,Pi as c,Qi as d,Ri as e,Si as f,Ti as g,Ui as h,Vi as i,Wi as j,Xi as k,Yi as l,Zi as m,_i as n}from"./chunk-
|
|
2
|
+
import{Ni as a,Oi as b,Pi as c,Qi as d,Ri as e,Si as f,Ti as g,Ui as h,Vi as i,Wi as j,Xi as k,Yi as l,Zi as m,_i as n}from"./chunk-yk277pd8.js";import"./chunk-508xtkyq.js";import"./chunk-nh6p0k17.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-a3fsqjag.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-rqshksja.js";import"./chunk-k6bagvmz.js";import"./chunk-zhzcahz5.js";import"./chunk-8kwmj99g.js";import"./chunk-7ngmxv4z.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
|