@stacksjs/stx 0.2.251 → 0.2.253
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-1p3rxd4t.js → chunk-0mppmrxh.js} +1 -1
- package/dist/chunk-14j9kdmd.js +2 -0
- package/dist/{chunk-z0smbvq9.js → chunk-18vhxnfs.js} +231 -231
- package/dist/{chunk-mjt2ga29.js → chunk-1hytm0q8.js} +1 -1
- package/dist/chunk-1kyskyr5.js +2 -0
- package/dist/chunk-26vagr0w.js +2 -0
- package/dist/{chunk-g7cxh760.js → chunk-27cntejn.js} +1 -1
- package/dist/chunk-2ca1krpk.js +2 -0
- package/dist/{chunk-q0sgqw4m.js → chunk-2fgthktp.js} +1 -1
- package/dist/{chunk-h3cvkas0.js → chunk-2gaetgdw.js} +1 -1
- package/dist/{chunk-k40y60y8.js → chunk-2gyvrpnh.js} +1 -1
- package/dist/{chunk-kpxrbw2n.js → chunk-2x2fephd.js} +1 -1
- package/dist/{chunk-mb3wam73.js → chunk-3a9s3fbj.js} +1 -1
- package/dist/{chunk-9qn3f7tp.js → chunk-3k5k7s1x.js} +2 -2
- package/dist/{chunk-8rnqqt1c.js → chunk-3mzwc7eq.js} +2 -2
- package/dist/{chunk-f16432td.js → chunk-3qjmz25p.js} +1 -1
- package/dist/{chunk-b9691w0f.js → chunk-3r20gmdk.js} +1 -1
- package/dist/{chunk-vbhn2vkt.js → chunk-47tn0mzr.js} +1 -1
- package/dist/{chunk-4c0p295t.js → chunk-491g88xs.js} +1 -1
- package/dist/{chunk-9z5cbn7k.js → chunk-4as2fzad.js} +1 -1
- package/dist/{chunk-qedw3aa8.js → chunk-4he1z2t1.js} +1 -1
- package/dist/chunk-5495z3j6.js +2 -0
- package/dist/{chunk-cexbvwfh.js → chunk-5bz9vhd8.js} +1 -1
- package/dist/{chunk-j67zcaxq.js → chunk-5mwq3xas.js} +1 -1
- package/dist/{chunk-cysn9vr0.js → chunk-5rcd16wn.js} +1 -1
- package/dist/{chunk-4e5hmhj6.js → chunk-64w70y1w.js} +1 -1
- package/dist/{chunk-t60sskkr.js → chunk-6n48y1kn.js} +47 -6
- package/dist/{chunk-2yhd8t93.js → chunk-6ns885eh.js} +1 -1
- package/dist/{chunk-ncnevn5e.js → chunk-6zg37cv2.js} +1 -1
- package/dist/chunk-718grrqy.js +2 -0
- package/dist/{chunk-zearrb9h.js → chunk-7g3bmwjb.js} +1 -1
- package/dist/{chunk-hacwdva6.js → chunk-8vg1vjrb.js} +1 -1
- package/dist/{chunk-cwpndk2c.js → chunk-8wxjrdfa.js} +1 -1
- package/dist/{chunk-52rn1jwe.js → chunk-93vj358r.js} +1 -1
- package/dist/{chunk-sp9xg733.js → chunk-97mr2z1s.js} +1 -1
- package/dist/chunk-9hf5g22r.js +2 -0
- package/dist/chunk-9q9swjc1.js +3 -0
- package/dist/{chunk-egmfmghe.js → chunk-9r200f9s.js} +1 -1
- package/dist/{chunk-8xpbqqam.js → chunk-adck7v93.js} +2 -2
- package/dist/{chunk-hcve5245.js → chunk-b0z7ba52.js} +1 -1
- package/dist/{chunk-x9txr656.js → chunk-b654f46j.js} +1 -1
- package/dist/{chunk-07xd6551.js → chunk-b8nzt1eb.js} +1 -1
- package/dist/{chunk-xdh1ddh5.js → chunk-bet2qwnf.js} +1 -1
- package/dist/{chunk-hd8mg5q5.js → chunk-bgma9v3x.js} +1 -1
- package/dist/{chunk-jzt4hwd4.js → chunk-bkwdc3qm.js} +1 -1
- package/dist/chunk-bm66v3s4.js +2 -0
- package/dist/{chunk-t46gp6zh.js → chunk-bmbk5ghv.js} +1 -1
- package/dist/{chunk-aqqgjd2b.js → chunk-bp5zq65f.js} +1 -1
- package/dist/{chunk-7sz0gpt1.js → chunk-ccdcqwkc.js} +1 -1
- package/dist/chunk-cp9e1rps.js +2 -0
- package/dist/{chunk-c3nj877g.js → chunk-cw5qgr4c.js} +1 -1
- package/dist/{chunk-v02fytc7.js → chunk-dcdengjn.js} +1 -1
- package/dist/{chunk-gsv6mckp.js → chunk-drryh5b2.js} +1 -1
- package/dist/{chunk-8vvyq3vs.js → chunk-e3e902d1.js} +1 -1
- package/dist/{chunk-66dttjqr.js → chunk-e7sngyjy.js} +1 -1
- package/dist/{chunk-qvhrs4ax.js → chunk-e8a7412j.js} +1 -1
- package/dist/{chunk-877wjc2k.js → chunk-f3mja030.js} +1 -1
- package/dist/{chunk-cc1w7yrs.js → chunk-f3xj9bqh.js} +1 -1
- package/dist/{chunk-t7rna4kn.js → chunk-f48jq07q.js} +1 -1
- package/dist/chunk-f5xznbvs.js +2 -0
- package/dist/chunk-fr46f91s.js +2 -0
- package/dist/chunk-g2n1p4zf.js +2 -0
- package/dist/{chunk-s9y6fp24.js → chunk-h329f051.js} +1 -1
- package/dist/{chunk-pfhm9kh8.js → chunk-hcd40acb.js} +1 -1
- package/dist/{chunk-dz4nx45f.js → chunk-jn10hhxp.js} +1 -1
- package/dist/chunk-jtpf61c3.js +2 -0
- package/dist/{chunk-cv5w1fkv.js → chunk-jywqwcp0.js} +1 -1
- package/dist/chunk-ke3fyxd0.js +2 -0
- package/dist/{chunk-xft5th6y.js → chunk-kga4sxrh.js} +1 -1
- package/dist/{chunk-v936h01r.js → chunk-n4m09b4x.js} +1 -1
- package/dist/{chunk-krmh1xsd.js → chunk-n9twmmw7.js} +2 -2
- package/dist/{chunk-5ct1qbxq.js → chunk-ng30x86k.js} +1 -1
- package/dist/{chunk-vr7n7ss7.js → chunk-nhnvf9b5.js} +1 -1
- package/dist/{chunk-pmwjpk8w.js → chunk-nnwk9mnw.js} +1 -1
- package/dist/{chunk-tyg85fgy.js → chunk-nxhfke97.js} +1 -1
- package/dist/{chunk-vz05q05v.js → chunk-nzkdwswr.js} +1 -1
- package/dist/{chunk-zpkdfbyp.js → chunk-p1e61dbq.js} +1 -1
- package/dist/{chunk-kprebvy0.js → chunk-p8v6bas0.js} +1 -1
- package/dist/{chunk-66sy0sx8.js → chunk-pp9fpjz2.js} +1 -1
- package/dist/chunk-q5t9kzzb.js +2 -0
- package/dist/{chunk-8w35y6ye.js → chunk-qjp6yj48.js} +1 -1
- package/dist/{chunk-0kxqfy8p.js → chunk-tfktw2ss.js} +1 -1
- package/dist/{chunk-ssdxwkpn.js → chunk-v7z91k5s.js} +1 -1
- package/dist/{chunk-crtwmac9.js → chunk-vfvm6wwh.js} +1 -1
- package/dist/chunk-x4vjrz9k.js +2 -0
- package/dist/{chunk-xtmt4549.js → chunk-xk3j0vv1.js} +1 -1
- package/dist/chunk-y31ay8w8.js +2 -0
- package/dist/{chunk-kaaskzaj.js → chunk-ycxt0hkg.js} +10 -10
- package/dist/{chunk-6p5k801j.js → chunk-ygeaadvk.js} +1 -1
- package/dist/{chunk-ptzfbj3s.js → chunk-yk6pbzj7.js} +1 -1
- package/dist/{chunk-yfsfmn45.js → chunk-ytp1ka2n.js} +1 -1
- package/dist/{chunk-7d0yzpvd.js → chunk-yx6hpqvy.js} +1 -1
- package/dist/{chunk-rzbgxrk3.js → chunk-yyb09h5j.js} +1 -1
- package/dist/{chunk-a09ncpfc.js → chunk-z9aq5zs6.js} +1 -1
- package/dist/{chunk-5gyfr3ry.js → chunk-zpm2qcyj.js} +1 -1
- package/dist/cli.js +14 -14
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/expressions.d.ts +5 -1
- package/dist/expressions.js +4 -1
- package/dist/imported-signals.d.ts +43 -0
- package/dist/imported-signals.js +35 -0
- package/dist/includes.js +22 -5
- package/dist/process.js +1 -1
- package/dist/pwa.js +2 -2
- package/dist/runtime-globals.d.ts +2 -2
- package/dist/runtime-globals.js +15 -4
- package/dist/signal-processing.d.ts +1 -1
- package/dist/signal-processing.js +19 -9
- package/dist/signals.js +46 -5
- package/dist/ssg.js +2 -2
- package/dist/visual-testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-0j6zhj0f.js +0 -2
- package/dist/chunk-616a6xf0.js +0 -2
- package/dist/chunk-9dj2wad8.js +0 -2
- package/dist/chunk-a0b1zd34.js +0 -2
- package/dist/chunk-c56z9y36.js +0 -2
- package/dist/chunk-cnrpg4gc.js +0 -2
- package/dist/chunk-dnz8044v.js +0 -2
- package/dist/chunk-f3va9snb.js +0 -2
- package/dist/chunk-gbm3bd0j.js +0 -2
- package/dist/chunk-ktj5sfax.js +0 -2
- package/dist/chunk-qx2bkryn.js +0 -2
- package/dist/chunk-rrxm5s7d.js +0 -3
- package/dist/chunk-s6ky5k5w.js +0 -2
- package/dist/chunk-sbzycn0t.js +0 -2
- package/dist/chunk-t6apsjj2.js +0 -2
- package/dist/chunk-tqs4v0hc.js +0 -2
- package/dist/chunk-xvx1zzw1.js +0 -2
- package/dist/chunk-zz62s52f.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{bs as a,cs as b,ds as c,es as d,fs as e,gs as f}from"./chunk-
|
|
2
|
+
import{bs as a,cs as b,ds as c,es as d,fs as e,gs as f}from"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Gf as a}from"./chunk-bmbk5ghv.js";import"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{a as startInteractive};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{wg as a}from"./chunk-0mppmrxh.js";import"./chunk-cw5qgr4c.js";import"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{a as startProductionServer};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{bm as F,em as V,sm as I}from"./chunk-
|
|
2
|
+
import{bm as F,em as V,sm as I}from"./chunk-18vhxnfs.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
|
|
3
3
|
export{w as Eh,C as Fh,N as Gh,A as Hh,E as Ih,M as Jh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$o as c,_o as b,dm as a}from"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ru as E}from"./chunk-3r20gmdk.js";import G from"fs";import S from"path";var N=new Set([".jpg",".jpeg",".png",".webp",".avif"]),W=new Map,B=!1;function x(j){if(!j)return;let k=j.split("?")[0].split("#")[0];return W.get(k)}function n(){return B}function w(){W.clear(),B=!1}function y(j,k){W.set(j,k),B=!0}function I(j){let k=0,F=0,J=0,z=0;for(let q=0;q<j.length;q+=4)k+=j[q],F+=j[q+1],J+=j[q+2],z++;if(z===0)return"#e5e7eb";let H=(q)=>Math.round(q/z).toString(16).padStart(2,"0");return`#${H(k)}${H(F)}${H(J)}`}function U(j,k,F,J=4,z=3){let H=[];for(let q=0;q<z;q++)for(let Q=0;Q<J;Q++){let M=Math.floor(Q*k/J),Y=Math.max(M+1,Math.floor((Q+1)*k/J)),O=Math.floor(q*F/z),K=Math.max(O+1,Math.floor((q+1)*F/z)),T=0,L=0,V=0,X=0;for(let Z=O;Z<K;Z++)for(let _=M;_<Y;_++){let A=(Z*k+_)*4;T+=j[A],L+=j[A+1],V+=j[A+2],X++}let $=(Z)=>Math.round(Z/X).toString(16).padStart(2,"0");H.push(`<rect x="${Q}" y="${q}" width="1" height="1" fill="#${$(T)}${$(L)}${$(V)}"/>`)}return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${J} ${z}" preserveAspectRatio="none"><filter id="b"><feGaussianBlur stdDeviation=".6"/></filter><g filter="url(#b)">${H.join("")}</g></svg>`}function C(j){return`data:image/svg+xml;base64,${Buffer.from(j,"utf8").toString("base64")}`}function D(j){try{return JSON.parse(G.readFileSync(j,"utf8"))}catch{return{}}}function v(j,k){try{G.mkdirSync(S.dirname(j),{recursive:!0}),G.writeFileSync(j,JSON.stringify(k))}catch{}}function R(j,k,F=[]){let J;try{J=G.readdirSync(j,{withFileTypes:!0})}catch{return F}for(let z of J){let H=S.join(j,z.name);if(z.isDirectory()){R(H,`${k}/${z.name}`,F);continue}if(!N.has(S.extname(z.name).toLowerCase()))continue;F.push([`${k}/${z.name}`,H])}return F}async function P(j,k={}){let{cachePath:F,maxBytes:J=33554432,limit:z=2000}=k;if(!j||!G.existsSync(j))return B=!0,W.size;let H;try{H=await import("ts-images")}catch{return B=!0,W.size}let q=F?D(F):{},Q=!1,M=R(j,"").slice(0,z),Y=8,O=async([K,T])=>{let L;try{L=G.statSync(T)}catch{return}if(L.size>J)return;let V=q[K];if(V&&V.mtimeMs===L.mtimeMs&&V.size===L.size){W.set(K,{dataUrl:V.dataUrl,color:V.color});return}try{let{hash:X}=await H.generateThumbHash(T);if(!X)return;let{rgba:$,w:Z,h:_}=H.thumbHashToRGBA(X),A={dataUrl:C(U($,Z,_)),color:I($)};W.set(K,A),q[K]={mtimeMs:L.mtimeMs,size:L.size,...A},Q=!0}catch{}};for(let K=0;K<M.length;K+=Y)await Promise.all(M.slice(K,K+Y).map(O));if(F&&Q)v(F,q);return B=!0,W.size}
|
|
3
3
|
export{x as at,n as bt,w as ct,y as dt,U as et,C as ft,P as gt};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Hu as y}from"./chunk-3k5k7s1x.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-crosswind=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"crosswind",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-crosswind="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
|
|
3
3
|
`);return C.push("declare module '@stacksjs/stx' {"," interface KnownLayouts {",...M.map((v)=>` '${v}': true`)," }","}","","export {}",""),C.join(`
|
|
4
4
|
`)}function HM(M,C){if(!M)return[];let v=F.isAbsolute(M)?M:F.resolve(process.cwd(),M),q=f(v),g=c(q),j=F.join(C,h);try{if(Z.existsSync(j)&&Z.readFileSync(j,"utf8")===g)return q;Z.mkdirSync(C,{recursive:!0}),Z.writeFileSync(j,g)}catch{}return q}
|
|
5
5
|
export{Y as wk,_ as xk,a as yk,s as zk,h as Ak,f as Bk,c as Ck,HM as Dk};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ht as a,it as b,jt as c,kt as d,lt as e,mt as f}from"./chunk-ecncwde8.js";import"./chunk-
|
|
2
|
+
import{ht as a,it as b,jt as c,kt as d,lt as e,mt as f}from"./chunk-ecncwde8.js";import"./chunk-3r20gmdk.js";export{d as stateDirName,e as stateDir,c as setStateDir,f as rebaseOntoStateDir,b as STATE_DIR_ENV_VAR,a as DEFAULT_STATE_DIR};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Oj as a,Pj as b,Qj as c,Rj as d,Sj as e,Tj as f,Uj as g,Vj as h,Wj as i,Xj as j,Yj as k}from"./chunk-
|
|
2
|
+
import{Oj as a,Pj as b,Qj as c,Rj as d,Sj as e,Tj as f,Uj as g,Vj as h,Wj as i,Xj as j,Yj as k}from"./chunk-4he1z2t1.js";import"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,k as hashFilePath,f as getCachedSignalsRuntime,g as getCachedRouterScript,h as clearDevCaches,i as checkCache,j as cacheTemplate,e as __setSignalsGeneratorsForTest};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-
|
|
2
|
+
import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-3r20gmdk.js";export{c as updateContextTree,b as updateContextStoryFiles,a as createContext};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Pu as Ae,Qu as u}from"./chunk-3r20gmdk.js";function _(e){return e.split(/[\\/]/).filter(Boolean).slice(0,-1).some((a)=>g.includes(a))}function m(e){return _(e.replace(/^\//,""))}var g;var b=u(()=>{g=["components","layouts","partials","emails"]});import d from"fs";import y from"path";function x(e,t){let a=e.filter((o)=>!m(o.pattern)),r=["// Auto-generated by STX - do not edit"];if(a.length===0)r.push("// No page routes found \u2014 route paths stay typed as string.","export {}","");else{r.push("declare module '@stacksjs/stx' {"," interface KnownRoutes {");for(let o of a){let i=[];for(let c of o.params){let f=o.pattern.includes(`:${c}?`)?"?":"";i.push(`${c}${f}: string`)}let l=i.join("; ");r.push(` '${o.pattern}': { ${l} }`)}r.push(" }","}","","export {}","")}let n=r.join(`
|
|
3
3
|
`),s=y.join(t,"route-types.d.ts");try{if(d.existsSync(s)&&d.readFileSync(s,"utf8")===n)return;d.mkdirSync(t,{recursive:!0}),d.writeFileSync(s,n)}catch{}}function S(e,t,a){let r=process.cwd(),n=y.relative(r,a),s=e.filter((i)=>!m(i.pattern)),o=["// Auto-generated by stx \u2014 do not edit",`// Source: ${n||"pages"}/`,"","export const routes = ["];for(let i of s){let l=y.relative(r,i.filePath).replace(/\\/g,"/"),c=JSON.stringify(i.params),f=i.layout?`, layout: '${y.relative(r,i.layout).replace(/\\/g,"/")}'`:"";o.push(` { pattern: '${i.pattern}', filePath: '${l}', isDynamic: ${i.isDynamic}, params: ${c}${f} },`)}o.push("] as const",""),o.push("export type RouteName = typeof routes[number]['pattern']",""),d.mkdirSync(t,{recursive:!0}),d.writeFileSync(y.join(t,"routes.ts"),o.join(`
|
|
4
4
|
`))}var F=u(()=>{b()});import V from"path";function k(e,t){let r=V.relative(t,e).replace(/\.(stx|md)$/,"");if(r=r.split(V.sep).join("/"),r==="index")return"/";if(r.endsWith("/index"))r=r.slice(0,-6);return r=r.replace(/\[\[([^\]]+)\]\]/g,":$1?"),r=r.replace(/\[([^\]]+)\]/g,":$1"),r=r.replace(/:\.\.\.([^/]+)/g,":$1*"),`/${r}`}function v(e){let t=[],a="",r=0;while(r<e.length){let n=e.slice(r),s=/^\/:([^/?*]+)\?/.exec(n);if(s){t.push(s[1]),a+="(?:/([^/]+))?",r+=s[0].length;continue}let o=/^:([^/?*]+)\*/.exec(n);if(o){t.push(o[1]),a+="(.+)",r+=o[0].length;continue}let i=/^:([^/?*]+)/.exec(n);if(i){t.push(i[1]),a+="([^/]+)",r+=i[0].length;continue}a+=e[r].replace(/[.+^${}()|[\]\\*?]/g,"\\$&"),r+=1}return{regex:new RegExp(`^${a}$`),params:t}}function W(e,t){let a=e===""?"/":e;for(let r of t){let n=a.match(r.regex);if(n){let s={};return r.params.forEach((o,i)=>{s[o]=n[i+1]}),{route:r,params:s}}}return null}function D(e){let t=e.replace(/\[\[([^\]]+)\]\]/g,":$1?").replace(/\[([^\]]+)\]/g,":$1").replace(/:\.\.\.([^/]+)/g,":$1*");return v(t)}var I=()=>{};import xe from"fs";import M from"path";function A(e,t){let a=[],r=M.dirname(e);while(r.startsWith(t)||r===t){let n=M.join(r,"_layout.stx");if(xe.existsSync(n))a.unshift(n);if(r===t)break;r=M.dirname(r)}return a}var N=()=>{};import P from"fs";import h from"path";function K(e,t){let a=[];if(!P.existsSync(e))return a;let r=P.readdirSync(e,{withFileTypes:!0});for(let n of r){let s=h.join(e,n.name);if(n.isDirectory()){if(n.name.startsWith("."))continue;if(g.includes(n.name))continue;a.push(...K(s,t))}else if(n.isFile()){let o=h.extname(n.name);if(t.includes(o)){if(n.name.startsWith("_")&&n.name!=="_layout.stx")continue;if(n.name==="_layout.stx")continue;a.push(s)}}}return a}class C{routes;pagesDir;pagesDirs;config;constructor(e,t={}){this.config=t;let a=t.pagesDirs&&t.pagesDirs.length>0?t.pagesDirs:[t.pagesDir||"pages"];this.pagesDirs=a.map((o)=>h.resolve(e,o)),this.pagesDir=this.pagesDirs[0];let r=t.extensions||[".stx"],n=new Set;this.routes=[];for(let o of this.pagesDirs){let i=K(o,r);for(let l of i){let c=k(l,o);if(n.has(c))continue;n.add(c);let{regex:f,params:H}=v(c),O=t.layouts!==!1?A(l,o):[];this.routes.push({pattern:c,regex:f,params:H,filePath:l,isDynamic:H.length>0,layout:O.length>0?O[O.length-1]:void 0})}}this.routes.sort((o,i)=>{if(!o.isDynamic&&i.isDynamic)return-1;if(o.isDynamic&&!i.isDynamic)return 1;let l=o.pattern.split("/").length,c=i.pattern.split("/").length;if(l!==c)return c-l;return o.pattern.localeCompare(i.pattern)});let s=h.resolve(e,t.stateDir||process.env.STX_DIR?.trim()||".stx");x(this.routes,s),S(this.routes,s,this.pagesDir)}match(e){let t=e===""?"/":e;for(let a of this.routes){let r=t.match(a.regex);if(r){let n={};return a.params.forEach((s,o)=>{n[s]=r[o+1]}),{route:a,params:n}}}return null}resolve(e,t){let a=this.routes.find((n)=>n.pattern===e||n.filePath.includes(e));if(!a)return"#not-found";let r=a.pattern;if(t)for(let[n,s]of Object.entries(t))r=r.replace(`:${n}`,encodeURIComponent(s));return r}addRoute(e){this.routes.push(e),this.routes.sort((t,a)=>{if(!t.isDynamic&&a.isDynamic)return-1;if(t.isDynamic&&!a.isDynamic)return 1;return t.pattern.localeCompare(a.pattern)})}getLayout(e){return e.layout??null}}function z(e,t){return new C(e,t)}function $(e,t){let a=[`${t}.stx`,"error.stx"];for(let r of a){let n=h.join(e,r);if(P.existsSync(n))return n}return null}function Y(e,t){return e.map((a)=>{let r=h.relative(t,a.filePath),n=a.isDynamic?" (dynamic)":"";return`${a.pattern} \u2192 ${r}${n}`})}var J=u(()=>{F();I();N();b()});function Z(e){T=e.replace(/\/$/,"")}function Q(e,t,a={}){p[e]={path:t,name:e,params:a}}function ee(e){for(let[t,a]of Object.entries(e))if(typeof a==="string")p[t]={path:a,name:t};else p[t]={...a,name:t}}function te(e,t={},a=!1){let r=p[e];if(!r)return console.warn(`Route [${e}] not defined.`),"#undefined-route";let n={...r.params,...t},s=r.path;s=s.replace(/:(\w+)/g,(i,l)=>{let c=n[l];if(c===void 0)return console.warn(`Missing parameter [${l}] for route [${e}].`),`:${l}`;return delete n[l],encodeURIComponent(String(c))});let o=Object.entries(n);if(o.length>0){let i=o.map(([l,c])=>`${encodeURIComponent(l)}=${encodeURIComponent(String(c))}`).join("&");s+=(s.includes("?")?"&":"?")+i}return a&&T?`${T}${s}`:s}function re(){for(let e of Object.keys(p))delete p[e];T=""}var p,T="";var ae=u(()=>{p={}});import ne from"fs";import oe from"path";function se(e,t={}){return{type:"redirect",path:e,options:{replace:t.replace??!1,external:t.external??!1,redirectCode:t.redirectCode??302}}}function ie(e){return{type:"abort",error:typeof e==="string"?{statusCode:500,message:e}:e}}function le(e,t={}){return{handler:e,mode:t.mode??"universal"}}function B(e){let t={};if(!e)return t;let a=e.split(";");for(let r of a){let[n,...s]=r.split("=");if(n){let o=n.trim(),i=s.join("=").trim();if(o)t[o]=decodeURIComponent(i)}}return t}function E(e,t,a={}){let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(a.expires){let n=typeof a.expires==="number"?new Date(Date.now()+a.expires*1000):a.expires;r+=`; Expires=${n.toUTCString()}`}if(a.path)r+=`; Path=${a.path}`;if(a.domain)r+=`; Domain=${a.domain}`;if(a.secure)r+="; Secure";if(a.httpOnly)r+="; HttpOnly";if(a.sameSite)r+=`; SameSite=${a.sameSite}`;return r}function G(e,t){let a=e.headers.get("cookie")||"",r=B(a);return{get(n){return r[n]},set(n,s,o={}){r[n]=s,t.append("Set-Cookie",E(n,s,o))},delete(n){delete r[n],t.append("Set-Cookie",E(n,"",{expires:new Date(0),path:"/"}))},getAll(){return{...r}}}}function X(){return{get(e){if(typeof document>"u")return;return B(document.cookie)[e]},set(e,t,a={}){if(typeof document>"u")return;document.cookie=E(e,t,a)},delete(e){if(typeof document>"u")return;document.cookie=E(e,"",{expires:new Date(0),path:"/"})},getAll(){if(typeof document>"u")return{};return B(document.cookie)}}}function U(){let e=typeof window<"u"&&typeof window.localStorage<"u";return{get(t){if(!e)return null;try{return window.localStorage.getItem(t)}catch{return null}},set(t,a){if(!e)return;try{window.localStorage.setItem(t,a)}catch{}},remove(t){if(!e)return;try{window.localStorage.removeItem(t)}catch{}},isAvailable(){return e}}}function R(e,t){w.set(e,t)}function j(e){return w.get(e)}function ce(e){return w.has(e)}function ue(){w.clear()}function de(){return Array.from(w.keys())}async function he(e,t="middleware"){let a=oe.resolve(e,t);if(!ne.existsSync(a))return;let r=ne.readdirSync(a);for(let n of r){if(!n.endsWith(".ts")&&!n.endsWith(".js"))continue;if(n.includes(".test.")||n.includes(".spec."))continue;let s=n.replace(/\.(ts|js)$/,""),o=oe.join(a,n);try{let l=(await import(o)).default;if(l&&typeof l.handler==="function")R(s,l);else if(typeof l==="function")R(s,{handler:l,mode:"universal"})}catch(i){console.warn(`Failed to load middleware '${s}' from ${o}:`,i)}}}function Se(e){let t={};if(!e)return t;let a=new URLSearchParams(e);for(let[r,n]of a)t[r]=n;return t}function pe(e,t,a,r=""){return{path:e,params:t,query:Se(r),fullPath:r?`${e}?${r}`:e,meta:a}}function fe(e,t,a,r){let n=r?.isServer??typeof window>"u",s=!n,o=new Headers;return{to:e,from:t,isClient:s,isServer:n,cookies:n&&a?G(a,o):X(),storage:U(),state:{},request:a,responseHeaders:o}}async function ge(e,t){let a=Array.isArray(e)?e:[e],r=t.isServer;for(let n of a){let s=j(n);if(!s)return console.error(`Route middleware '${n}' is not registered \u2014 failing the guard closed.`),{passed:!1,abort:{type:"abort",error:{statusCode:500,message:`Route middleware '${n}' is not registered`}},state:t.state,responseHeaders:t.responseHeaders};if(s.mode==="server"&&!r)continue;try{let o=await s.handler(t);if(o){if(o.type==="redirect")return{passed:!1,redirect:o,state:t.state,responseHeaders:t.responseHeaders};if(o.type==="abort")return{passed:!1,abort:o,state:t.state,responseHeaders:t.responseHeaders}}}catch(o){return console.error(`Error in middleware '${n}':`,o),{passed:!1,abort:{type:"abort",error:{statusCode:500,message:o instanceof Error?o.message:"Middleware error"}},state:t.state,responseHeaders:t.responseHeaders}}}return{passed:!0,state:t.state,responseHeaders:t.responseHeaders}}var w;var me=u(()=>{w=new Map});function q(e){let a=e.replace(/\\/g,"/").split("/").filter(Boolean),r=a.lastIndexOf("layouts"),n=r>=0?a[r+1]:a.at(-1);if(!n)return"app";return n.replace(/\.stx$/i,"")||"app"}function ye(e){let t=e.match(/<meta\b[^>]*name=["']stx-layout["'][^>]*content=["']([^"']+)["'][^>]*>/i),a=e.match(/<meta\b[^>]*name=["']stx-layout-group["'][^>]*content=["']([^"']+)["'][^>]*>/i),r=e.match(/<!--\s*stx-layout:\s*([^ ]+)\s*-->/i),n=t?.[1]||r?.[1]||"";return{layout:n,group:a?.[1]||q(n)}}var ve=()=>{};function ke(e){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(e).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return e}}function we(){if(L)return L;return L=ke(`
|
|
5
5
|
;(function(){
|
|
@@ -1777,4 +1777,4 @@ else {
|
|
|
1777
1777
|
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init);else init();
|
|
1778
1778
|
})();
|
|
1779
1779
|
`),L}var L;var be=()=>{};var Ce={};Ae(Ce,{setAppUrl:()=>Z,runMiddleware:()=>ge,route:()=>te,resolveLayoutChain:()=>A,resetRoutes:()=>re,registerMiddleware:()=>R,patternToRegex:()=>v,navigateTo:()=>se,matchRoute:()=>W,loadMiddlewareFromDirectory:()=>he,isNonPageRoutePattern:()=>m,isNonPageRoutePath:()=>_,hasMiddleware:()=>ce,getRouterScript:()=>we,getMiddlewareNames:()=>de,getMiddleware:()=>j,generateRouteTypes:()=>x,generateRouteManifest:()=>S,formatRoutes:()=>Y,findErrorPage:()=>$,filePathToPattern:()=>k,extractLayoutMetadata:()=>ye,deriveLayoutGroup:()=>q,defineRoutes:()=>ee,defineRoute:()=>Q,defineMiddleware:()=>le,createStorageManager:()=>U,createServerCookieManager:()=>G,createRouter:()=>z,createRouteLocation:()=>pe,createMiddlewareContext:()=>fe,createClientCookieManager:()=>X,clearMiddleware:()=>ue,bracketPathToRegex:()=>D,abortNavigation:()=>ie,Router:()=>C,NON_PAGE_DIRS:()=>g});var Te=u(()=>{J();I();ae();me();N();ve();F();b();be()});
|
|
1780
|
-
export{g as
|
|
1780
|
+
export{g as Wt,_ as Xt,m as Yt,x as Zt,S as _t,k as $t,v as au,W as bu,D as cu,A as du,C as eu,z as fu,$ as gu,Y as hu,Z as iu,Q as ju,ee as ku,te as lu,re as mu,se as nu,ie as ou,le as pu,G as qu,X as ru,U as su,R as tu,j as uu,ce as vu,ue as wu,de as xu,he as yu,pe as zu,fe as Au,ge as Bu,q as Cu,ye as Du,ve as Eu,we as Fu,Ce as Gu,Te as Hu};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{up as V}from"./chunk-
|
|
2
|
+
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{up as V}from"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import{Ru as F}from"./chunk-3r20gmdk.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
const ws = new WebSocket('${z}');
|
|
@@ -556,7 +556,7 @@ window.__stxPerformance = {
|
|
|
556
556
|
|
|
557
557
|
window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
|
|
558
558
|
</script>
|
|
559
|
-
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-
|
|
559
|
+
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-9hf5g22r.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-9hf5g22r.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
560
560
|
`)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
561
561
|
`)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
|
|
562
562
|
<html lang="en" class="${Z.darkClass||"dark"}">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ah as f,Bh as g,Ch as h,vh as a,wh as b,xh as c,yh as d,zh as e}from"./chunk-49kk0s96.js";import"./chunk-w95sp0k9.js";import"./chunk-
|
|
2
|
+
import{Ah as f,Bh as g,Ch as h,vh as a,wh as b,xh as c,yh as d,zh as e}from"./chunk-49kk0s96.js";import"./chunk-w95sp0k9.js";import"./chunk-3r20gmdk.js";export{d as v,a as useForm,g as processHasErrorsDirective,h as processFormValidationDirectives,f as processErrorsDirective,e as processErrorDirective,b as defineForm,c as Validator};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{defineProperty:e,getOwnPropertyNames:g,getOwnPropertyDescriptor:h}=Object,i=Object.prototype.hasOwnProperty;function j(a){return this[a]}var m=(a)=>{var b=(f??=new WeakMap).get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of g(a))if(!i.call(b,d))e(b,d,{get:j.bind(a,d),enumerable:!(c=h(a,d))||c.enumerable})}return f.set(a,b),b},f;var k=(a)=>a;function l(a,b){this[a]=k.bind(null,b)}var n=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:l.bind(b,c)})};var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var p=import.meta.require;
|
|
3
|
-
export{m as
|
|
3
|
+
export{m as Ou,n as Pu,o as Qu,p as Ru};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$f as d,Yf as a,Zf as b,_f as c,ag as e,bg as f,cg as g,dg as h,eg as i,fg as j,gg as k,hg as l}from"./chunk-0j9hrzjj.js";import"./chunk-
|
|
2
|
+
import{$f as d,Yf as a,Zf as b,_f as c,ag as e,bg as f,cg as g,dg as h,eg as i,fg as j,gg as k,hg as l}from"./chunk-0j9hrzjj.js";import"./chunk-3r20gmdk.js";export{g as toUsers,f as toUser,c as stopBroadcasting,b as startBroadcasting,d as loadChannels,a as getBroadcastServer,j as channel,h as broadcastPrivate,i as broadcastPresence,e as broadcast,l as BroadcastServer,k as Broadcast};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{tk as m}from"./chunk-
|
|
2
|
+
import{tk as m}from"./chunk-adck7v93.js";import{Ru as z}from"./chunk-3r20gmdk.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{sj as o,tj as p,uj as q}from"./chunk-
|
|
2
|
+
import{sj as o,tj as p,uj as q}from"./chunk-6n48y1kn.js";import{Aj as a,Bj as b,Cj as c,Dj as d,Ej as e,Fj as f,Gj as g,Hj as h,Ij as i,Jj as j,Kj as k,Lj as l,Mj as m,Nj as n}from"./chunk-w95sp0k9.js";import"./chunk-9q9swjc1.js";import"./chunk-3r20gmdk.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Vq as q,Zq as y}from"./chunk-
|
|
2
|
+
import{Vq as q,Zq as y}from"./chunk-18vhxnfs.js";import{Ru as L}from"./chunk-3r20gmdk.js";import M from"fs";import X from"path";var T=new Map,Q=new Map;async function A(j){let z;for(let K=0;K<3;K++)try{let V=(await M.promises.stat(j)).mtime.getTime(),J=Q.get(j);if(J&&J.mtime===V)return J.content;let W=await Bun.file(j).text(),U=(await M.promises.stat(j)).mtime.getTime();if(U!==V)continue;return Q.set(j,{content:W,mtime:U}),W}catch(I){z=I;break}throw Q.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function H(j){Q.delete(j)}function v(j){for(let B of Q.keys())if(B.startsWith(j))Q.delete(B)}var Z=null,b=null,N=null;function E(j){N=j}async function F(j=!1){let B=N??await import("./chunk-4as2fzad.js");if(j)return B.generateSignalsRuntimeDev();if(Z===null)Z=B.generateSignalsRuntime();return Z}var $=null;async function R(){if($===null){let{getRouterScript:j}=await import("./chunk-hcd40acb.js");$=j()}return $}function S(){Q.clear(),y(),Z=null,b=null,$=null}function k(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function _(j,B){try{if(!B.cachePath)return null;let z=X.resolve(B.cachePath),K=X.join(z,`${D(j)}.html`),I=X.join(z,`${D(j)}.meta.json`);if(!await q(K)||!await q(I))return null;let V=await Bun.file(I).text(),J=JSON.parse(V);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==k(B))return null;if((await M.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Y of J.dependencies)if(await q(Y)){if((await M.promises.stat(Y)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function g(j,B,z,K){try{if(!K.cachePath)return;let I=X.resolve(K.cachePath);await M.promises.mkdir(I,{recursive:!0});let V=X.join(I,`${D(j)}.html`),J=X.join(I,`${D(j)}.meta.json`),W=await M.promises.stat(j);await Bun.write(V,B);let Y={sourcePath:j,mtime:W.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:k(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Y,null,2)),T.set(j,{output:B,mtime:W.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var G=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,G)}
|
|
3
3
|
export{T as Oj,A as Pj,H as Qj,v as Rj,E as Sj,F as Tj,R as Uj,S as Vj,_ as Wj,g as Xj,D as Yj};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Vi as a,Wi as b}from"./chunk-qjp6yj48.js";import"./chunk-9n0gvfrg.js";import"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{a as getStoreScript,b as clearStoreCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as ll,$a as cn,$b as vo,$c as vp,$d as vq,A as Xj,Aa as nm,Ab as Pn,Ac as Wo,Ad as Wp,Ae as ar,B as Yj,Ba as om,Bb as Qn,Bc as Xo,Bd as Xp,Be as br,C as Zj,Ca as Bm,Cb as Rn,Cc as Yo,Cd as Yp,Ce as cr,D as _j,Da as Cm,Db as Sn,Dc as Zo,Dd as Zp,De as dr,E as Qk,Ea as Dm,Eb as Tn,Ec as _o,Ed as _p,Ee as er,F as Rk,Fa as Em,Fb as Un,Fc as $o,Fd as $p,Fe as fr,G as Sk,Ga as Fm,Gb as Vn,Gc as ap,Gd as aq,Ge as gr,H as Tk,Ha as Gm,Hb as Wn,Hc as bp,Hd as bq,He as hr,I as Uk,Ia as Km,Ib as Xn,Ic as cp,Id as cq,Ie as ir,J as Vk,Ja as Lm,Jb as Yn,Jc as dp,Jd as dq,Je as jr,K as Wk,Ka as Mm,Kb as Zn,Kc as ep,Kd as eq,Ke as kr,L as Xk,La as Nm,Lb as _n,Lc as fp,Ld as fq,Le as lr,M as Yk,Ma as Om,Mb as $n,Mc as gp,Md as gq,Me as mr,N as Zk,Na as Pm,Nb as ao,Nc as hp,Nd as hq,Ne as nr,O as _k,Oa as Qm,Ob as io,Oc as ip,Od as iq,Oe as or,P as $k,Pa as Rm,Pb as jo,Pc as jp,Pd as jq,Pe as pr,Q as al,Qa as Sm,Qb as ko,Qc as kp,Qd as kq,Qe as qr,R as bl,Ra as Tm,Rb as lo,Rc as lp,Rd as lq,Re as rr,S as cl,Sa as Um,Sb as mo,Sc as mp,Sd as mq,Se as sr,T as dl,Ta as Vm,Tb as no,Tc as np,Td as nq,Te as tr,U as el,Ua as Wm,Ub as oo,Uc as op,Ud as oq,Ue as ur,V as fl,Va as Xm,Vb as po,Vc as pp,Vd as pq,Ve as vr,W as gl,Wa as Ym,Wb as qo,Wc as qp,Wd as qq,We as wr,X as hl,Xa as Zm,Xb as ro,Xc as rp,Xd as rq,Xe as xr,Y as il,Ya as $m,Yb as so,Yc as sp,Yd as sq,Ye as yr,Z as jl,Za as an,Zb as to,Zc as tp,Zd as tq,_ as kl,_a as bn,_b as uo,_c as up,_d as uq,aa as ml,ab as dn,ac as wo,ad as wp,ae as wq,ba as nl,bb as en,bc as xo,bd as xp,be as xq,ca as ol,cb as fn,cc as yo,cd as yp,ce as yq,da as pl,db as gn,dc as zo,dd as zp,de as zq,ea as ql,eb as hn,ec as Ao,ed as Ap,ee as Aq,fa as rl,fb as jn,fc as Bo,fd as Bp,fe as Bq,ga as sl,gb as kn,gc as Co,gd as Cp,ge as Cq,ha as tl,hb as ln,hc as Do,hd as Dp,he as Dq,ia as ul,ib as mn,ic as Eo,id as Ep,ie as Eq,ja as vl,jb as nn,jc as Fo,jd as Fp,je as Fq,ka as wl,kb as on,kc as Go,kd as Gp,ke as Gq,la as xl,lb as pn,lc as Ho,ld as Hp,le as Hq,ma as yl,mb as qn,mc as Io,md as Ip,me as Iq,na as zl,nb as rn,nc as Jo,nd as Jp,ne as Jq,o as a,oa as Al,ob as sn,oc as Ko,od as Kp,oe as Kq,p as Ij,pa as cm,pb as vn,pc as Lo,pd as Lp,pe as Rq,q as Jj,qa as dm,qb as wn,qc as Mo,qd as Mp,qe as Sq,r as Kj,ra as em,rb as xn,rc as No,rd as Np,re as Tq,s as Lj,sa as fm,sb as yn,sc as Oo,sd as Op,se as Uq,t as Mj,ta as gm,tb as En,tc as Po,td as Pp,te as Vq,u as Nj,ua as hm,ub as Fn,uc as Qo,ud as Qp,ue as Wq,v as Oj,va as im,vb as Gn,vc as Ro,vd as Rp,ve as Xq,w as Pj,wa as jm,wb as Hn,wc as So,wd as Sp,we as Yq,x as Qj,xa as km,xb as Mn,xc as To,xd as Tp,xe as Zq,y as Vj,ya as lm,yb as Nn,yc as Uo,yd as Up,ye as _q,z as Wj,za as mm,zb as On,zc as Vo,zd as Vp,ze as $q}from"./chunk-kaaskzaj.js";import{$e as bk,Ze as $j,_e as ak,af as ck,bf as dk,cf as ek,df as fk,ef as gk,ff as hk,gf as ik,hf as jk,if as kk,jf as lk,kf as mk,lf as nk}from"./chunk-ym3r8ktq.js";import{mf as Ek,nf as Fk,of as Gk,pf as Hk,qf as Ik,rf as Jk,sf as Kk,tf as Lk,uf as Mk,vf as Nk,wf as Ok,xf as Pk}from"./chunk-hd8mg5q5.js";import{Af as eo,Bf as fo,Cf as go,Df as ho,yf as bo,zf as co}from"./chunk-5ct1qbxq.js";import{Ef as tn,Ff as un}from"./chunk-pbsfbgx7.js";import{Gf as zn}from"./chunk-t46gp6zh.js";import{Hf as Sl,If as Tl,Jf as Ul,Kf as Vl,Lf as Yl,Mf as am}from"./chunk-ssdxwkpn.js";import{Nf as Wl,Qf as Xl}from"./chunk-t7rna4kn.js";import{$f as sm,Yf as pm,Zf as qm,_f as rm,ag as tm,bg as um,cg as vm,dg as wm,eg as xm,fg as ym,gg as zm,hg as Am}from"./chunk-0j9hrzjj.js";import{ig as Ck,jg as Dk}from"./chunk-ptzfbj3s.js";import{kg as bm}from"./chunk-ncnevn5e.js";import{lg as Hm,mg as Im,ng as Jm,og as _m,pg as An,qg as Bn,rg as Cn,sg as Dn,tg as In,ug as Jn,vg as Kn,wg as Ln}from"./chunk-1p3rxd4t.js";import{Ag as El,Bg as Fl,Cg as Gl,Dg as Hl,Eg as Il,Fg as Jl,Gg as Kl,Hg as Ll,Ig as Ml,Jg as Nl,Kg as Zl,Lg as _l,Mg as $l,xg as Bl,yg as Cl,zg as Dl}from"./chunk-c3nj877g.js";import{Ng as Xi,Og as Yi,Pg as Zi,Qg as _i,Rg as $i,Sg as aj,Tg as bj,Ug as cj,Vg as dj,Wg as ej,Xg as fj}from"./chunk-2yhd8t93.js";import{Yg as xj,_g as yj}from"./chunk-f5v2qf95.js";import{eh as ok,fh as pk,gh as qk,hh as rk,ih as sk,jh as tk,kh as uk,mh as vk,nh as wk,oh as xk,ph as yk,qh as zk,rh as Ak,uh as Bk}from"./chunk-0kxqfy8p.js";import{vh as hh,wh as ih,xh as jh,yh as kh}from"./chunk-49kk0s96.js";import{Dh as lh}from"./chunk-w3ycm4na.js";import{Eh as sh,Fh as th,Gh as uh,Hh as vh,Ih as wh,Jh as xh}from"./chunk-g7cxh760.js";import{Kh as Mi,Lh as Ni,Mh as Oi,Qh as Pi,Rh as Qi,Sh as Ri}from"./chunk-v936h01r.js";import{$h as Ji,Th as Ci,Uh as Di,Vh as Ei,Wh as Fi,Xh as Gi,Zh as Hi,_h as Ii,ai as Ki,bi as Li}from"./chunk-74cv4ta1.js";import{ci as sg,di as tg,ei as ug,fi as vg,gi as wg,hi as xg}from"./chunk-wcm80anz.js";import{ii as yg,ji as zg,ki as Ag,li as Bg,mi as Cg}from"./chunk-y7m2dpd3.js";import{ni as Dg,oi as Eg,pi as Fg,qi as Gg,ri as Hg}from"./chunk-9y0g8kzt.js";import{si as Ig,ti as Jg,ui as Kg,vi as Lg,wi as Mg,xi as Ng,yi as Og}from"./chunk-t6nseeb9.js";import{Ai as Qg,Bi as Rg,Ci as Sg,Di as Tg,Ei as Ug,zi as Pg}from"./chunk-xttsqmkm.js";import{Gi as Vg,Hi as Wg,Ii as Xg,Ji as Yg,Ki as Zg,Li as _g,Mi as $g,Ni as ah,Oi as bh,Pi as ch,Qi as dh,Ri as eh,Si as fh,Ti as gh}from"./chunk-54st8g2j.js";import{Vi as mg,Wi as ng}from"./chunk-8w35y6ye.js";import{Zi as og}from"./chunk-cwpndk2c.js";import"./chunk-9n0gvfrg.js";import{bj as pg}from"./chunk-7q9mwh4v.js";import{cj as qg,dj as rg}from"./chunk-refwkt87.js";import{ej as fe,fj as ge,gj as he,hj as ie,ij as je,jj as ke,kj as le,lj as me,mj as ne,nj as oe,oj as pe,pj as qe,qj as re,rj as se}from"./chunk-xtmt4549.js";import{sj as Pe,tj as Qe}from"./chunk-t60sskkr.js";import{Aj as Be,Bj as Ce,Cj as De,Dj as Ee,Ej as Fe,Fj as Ge,Gj as He,Hj as Ie,Ij as Je,Jj as Ke,Kj as Le,Lj as Me,Mj as Ne,Nj as Oe}from"./chunk-w95sp0k9.js";import{Oj as Re,Pj as Se,Qj as Te,Rj as Ue,Sj as Ve,Tj as We,Uj as Xe,Vj as Ye,Wj as Ze,Xj as _e,Yj as $e}from"./chunk-qedw3aa8.js";import{qk as Lq,rk as Mq,sk as Nq,tk as Oq,uk as Pq,vk as Qq}from"./chunk-8xpbqqam.js";import{Ak as Ol,Bk as Pl,Ck as Ql,Dk as Rl,wk as Rj,xk as Sj,yk as Tj,zk as Uj}from"./chunk-h3cvkas0.js";import"./chunk-58f0mthg.js";import"./chunk-0ha9e1wt.js";import{$l as Wa,$m as Ub,$n as Uc,$p as Hf,$q as Nh,$r as vj,Al as I,Am as pb,An as tc,Ao as Jd,Ap as ff,Aq as gg,Ar as vi,Bl as J,Bm as qb,Bn as uc,Bo as Kd,Bp as gf,Bq as hg,Br as wi,Cl as da,Cn as vc,Co as Ld,Cp as hf,Cq as ig,Cr as xi,Dl as ea,Dm as xb,Dn as wc,Do as Md,Dp as jf,Dq as jg,Dr as yi,El as fa,Em as yb,En as xc,Eo as Nd,Ep as kf,Eq as kg,Er as zi,Fl as ga,Fm as zb,Fn as yc,Fo as Od,Fp as lf,Fq as lg,Fr as Ai,Gl as ha,Gm as Ab,Gn as zc,Go as Pd,Gp as mf,Gq as mh,Gr as Bi,Hl as ia,Hm as Bb,Hn as Ac,Ho as Qd,Hp as nf,Hq as nh,Hr as Si,Im as Cb,In as Bc,Io as Rd,Ip as of,Iq as oh,Ir as Ti,Jm as Db,Jn as Cc,Jo as Sd,Jp as pf,Jq as ph,Jr as Ui,Kl as za,Kn as Dc,Ko as Td,Kp as qf,Kq as qh,Kr as Vi,Ll as Aa,Lm as Eb,Ln as Ec,Lo as Ud,Lp as rf,Lq as rh,Lr as Wi,Ml as Ba,Mm as Fb,Mn as Fc,Mo as Vd,Mp as sf,Mq as yh,Mr as gj,Nl as Ca,Nm as Gb,Nn as Gc,No as Wd,Np as tf,Nq as zh,Nr as hj,Ol as Da,Om as Hb,On as Hc,Oo as Xd,Op as uf,Oq as Ah,Or as ij,Pm as Ib,Pn as Ic,Po as Yd,Pp as vf,Pq as Bh,Pr as jj,Qm as Jb,Qn as Jc,Qo as Zd,Qp as wf,Qq as Ch,Qr as kj,Rl as Ga,Rm as Kb,Rn as Kc,Ro as _d,Rp as xf,Rq as Dh,Rr as lj,Sl as Ha,Sm as Lb,Sn as Lc,So as $d,Sp as yf,Sq as Eh,Sr as mj,Tl as Ia,Tm as Mb,Tn as Mc,To as ae,Tp as zf,Tq as Fh,Tr as nj,Ul as Pa,Um as Nb,Un as Nc,Uo as be,Up as Af,Uq as Gh,Ur as oj,Vl as Qa,Vm as Ob,Vn as Oc,Vo as ce,Vp as Bf,Vq as Hh,Vr as pj,Wl as Ra,Wm as Pb,Wn as Pc,Wo as de,Wp as Cf,Wq as Ih,Wr as qj,Xl as Sa,Xm as Qb,Xn as Qc,Xo as ee,Xp as Df,Xq as Jh,Xr as rj,Yl as Ta,Ym as Rb,Yn as Rc,Yp as Ef,Yq as Kh,Yr as sj,Zl as Ua,Zm as Sb,Zn as Sc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Va,_m as Tb,_n as Tc,_p as Gf,_q as Mh,_r as uj,am as Xa,an as Vb,ao as Vc,ap as ze,aq as If,ar as Oh,as as wj,bn as Wb,bo as Wc,bp as Ae,bq as Jf,br as Yh,bs as zj,cn as Xb,co as Xc,cq as Kf,cr as Zh,cs as Aj,dn as Yb,do as Yc,dp as af,dq as Lf,dr as _h,ds as Bj,en as Zb,eo as Zc,eq as Mf,er as $h,es as Cj,fm as Ya,fn as _b,fo as _c,fq as Nf,fr as ai,fs as Dj,gm as Za,gn as $b,go as $c,gq as Of,gr as bi,gs as Ej,hm as _a,hn as ac,ho as ad,hq as Pf,hr as ci,hs as Fj,im as $a,in as bc,io as bd,iq as Qf,ir as di,is as Gj,jm as ab,jn as cc,jo as cd,jq as Rf,jr as ei,js as Hj,kl as s,km as bb,kn as dc,ko as dd,kq as Sf,kr as fi,ll as t,ln as ec,lo as ed,lq as Tf,lr as gi,ml as u,mn as fc,mo as fd,mq as Uf,mr as hi,nl as v,nm as cb,nn as gc,no as gd,nq as Vf,nr as ii,ol as w,om as db,on as hc,oo as hd,oq as Wf,or as ji,pl as x,pm as eb,pn as ic,po as id,pq as Xf,pr as ki,ql as y,qm as fb,qn as jc,qo as zd,qq as Yf,qr as li,rl as z,rm as gb,rn as kc,ro as Ad,rq as Zf,rr as mi,sl as A,sm as hb,sn as lc,so as Bd,sq as _f,sr as ni,tl as B,tm as ib,tn as mc,to as Cd,tq as $f,tr as oi,ul as C,um as jb,un as nc,uo as Dd,up as bf,uq as ag,ur as pi,vl as D,vm as kb,vn as oc,vo as Ed,vq as bg,vr as qi,wl as E,wm as lb,wn as pc,wo as Fd,wp as cf,wq as cg,wr as ri,xl as F,xm as mb,xn as qc,xo as Gd,xq as dg,xr as si,yl as G,ym as nb,yn as rc,yo as Hd,yp as df,yq as eg,yr as ti,zl as H,zm as ob,zn as sc,zo as Id,zp as ef,zq as fg,zr as ui}from"./chunk-z0smbvq9.js";import{ks as d,ls as e,ms as f,ns as g,os as h,ps as i,qs as j,rs as k,ss as l,ts as m,us as n,vs as o,ws as p,xs as q,ys as r}from"./chunk-vr4ycjqv.js";import{As as Qh,Bs as Rh,Cs as Sh,Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,zs as Ph}from"./chunk-cbj5a2tk.js";import{Is as b,Js as c}from"./chunk-fmw1mscr.js";import{Ks as Ea,Ls as Fa}from"./chunk-wfsf3vmh.js";import{$s as wb,Ms as rb,Ns as sb,Ps as tb,Zs as ub,_s as vb}from"./chunk-krmh1xsd.js";import{at as te,bt as ue,ct as ve,dt as we,gt as xe}from"./chunk-q0sgqw4m.js";import{ht as Ja,it as Ka,jt as La,kt as Ma,lt as Na,mt as Oa}from"./chunk-ecncwde8.js";import{At as wd,Bt as xd,Ct as yd,nt as jd,ot as kd,pt as ld,qt as md,rt as nd,st as od,tt as pd,ut as qd,vt as rd,wt as sd,xt as td,yt as ud,zt as vd}from"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import{Ft as ja,Gt as ka,Ht as la,It as ma,Jt as na,Kt as oa,Lt as pa,Mt as qa,Nt as ra,Ot as sa,Pt as ta,Qt as ua,Rt as va,St as wa,Tt as xa,Ut as ya}from"./chunk-rrxm5s7d.js";import{Au as ba,Cu as ca,Yt as K,Zt as L,au as M,fu as N,gu as O,mu as P,nu as Q,ou as R,pu as S,qu as T,ru as U,su as V,tu as W,uu as X,vu as Y,wu as Z,xu as _,yu as $,zu as aa}from"./chunk-9qn3f7tp.js";import"./chunk-zpkdfbyp.js";import"./chunk-b9691w0f.js";export{jk as writeNetlifyConfig,_l as writeManifest,Ok as writeImageManifest,ro as wrapComponentForHMR,lr as withDefaults,wj as webComponentDirectiveHandler,gp as watermark,iq as watchViews,Yk as watchMultiple,Zk as watchEffect,Xk as watch,xe as warmImagePlaceholders,kl as waitForStore,Yd as waitForLocale,co as virtualPathFor,jj as videoDirective,tc as validators,pr as validated,Kd as validateValueEnhanced,nh as validateTemplate,lp as validateParams,Ld as validateFormEnhanced,Zp as validateFile,Gd as validateFields,Fd as validateField,ph as validateDirective,dd as validateCspDirectives,Ej as validateConfig,dm as validateComponentScripts,Bm as validateComponentProps,lg as validateClientScript,kh as v,jb as usesSignalsInScript,pa as usesReactiveRuntime,Ch as userComponentFileExists,Sg as useVirtualList,rd as useTitle,jl as useStoreOrThrow,Jo as useStore,Vj as useStorage,tq as useSlots,Xj as useSessionStorage,od as useSeoMeta,ll as useRouteParams,nl as useRouteParamOrThrow,ml as useRouteParam,rd as usePageTitle,Oe as useOptimistic,pl as useMiddlewareValue,ol as useMiddlewareState,Wj as useLocalStorage,ko as useLoadingIndicator,md as useHead,hh as useForm,vq as useAttrs,$p as uploadFiles,_p as uploadFile,gl as updateInstance,Me as untrack,Sh as unregisterDirective,hl as unmountInstance,qb as unescapeHtml,go as typecheckStxFiles,Bh as transpileTypeScript,_q as translate,w as transitionDirective,vm as toUsers,um as toUser,Ro as thumbnail,Sp as thumbHashToRGBA,Tp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Re as templateCache,Mb as syncRecordedResponse,oo as stxClientHelpers,wf as structuredDataDirective,br as stripLocalePrefix,Ll as stripDocumentWrapper,Fa as stripCommentsAndLiterals,jn as stringToStream,Tc as strictCspPreset,ne as streamingSuspenseDirective,re as streamToResponse,le as streamTemplateSimple,fe as streamTemplate,Qj as stopHmrServer,rm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Be as state,fg as startsDocument,Ln as startProductionServer,zn as startInteractive,qm as startBroadcasting,dr as stampLocaleLayoutGroup,D as staggerDirective,jp as srcsetUrls,E as springDirective,Cc as splitByPipe,Hl as spaNavVaryHeaders,eo as sourcePathFor,qp as smartBatchSign,Eh as slotContentHasExpressions,op as signUrl,zh as shouldTranspileTypeScript,Nj as shouldReloadOnChange,tp as shouldRefreshSignature,Oj as shouldIgnoreFile,Kg as shouldCacheComponent,Vo as sharpen,sr as shape,La as setStateDir,tl as setRouteParams,ul as setMiddlewareState,we as setImagePlaceholder,nq as setGlobalProvide,Qb as setErrorLocale,Qk as setCurrentInstance,Zi as setCachedVideoResult,Oi as setCachedImageResult,Ii as setCached,vr as serveStxFile,xr as serveMultipleStxFiles,Ij as serveMarkdownFile,Vn as serveFile,yr as serveApp,Un as serve,uo as serializeState,_m as serializeSetCookie,Xo as sepia,pd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,nj as scopeHTML,mj as scopeCSS,zf as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,$o as saturation,mp as sanitizeParams,vc as sanitizeFilePath,wc as sanitizeExpression,xc as sanitizeDirectiveParams,uc as sanitizeDirectiveParam,yc as sanitizeComponentProps,oc as safeExecuteAsync,nc as safeExecute,xa as runtimeHandledXAttrsLiteral,pf as runPreProcessingMiddleware,qf as runPostProcessingMiddleware,Cn as runPageAction,He as runMountCallbacks,ba as runMiddleware,el as runHooks,Tq as runDoctor,Ie as runDestroyCallbacks,Ef as runComposers,ap as rotate,lh as rewriteImagesWithSiblings,Nb as responseBindings,Ih as resolveTemplatePath,c as resolveStxTargets,Aj as resolveStxDirectories,Zq as resolveI18n,Po as resize,Ya as resetPlaceholders,ld as resetHead,to as resetHMRHandler,bc as resetErrorConfig,nr as required,ab as replacePlaceholders,gq as renderView,gj as renderVideoComponent,Qa as renderVendorStyleTags,Cq as renderToString,Dq as renderToStream,Eq as renderToDOM,Rp as renderThumbhashToCanvas,Qq as renderTemplateString,Oq as renderTemplate,Pq as renderString,ie as renderStreamingPage,uh as renderSlot,Ag as renderSSRSuspense,Bp as renderProtectedVideo,Ap as renderProtectedImg,np as renderMediaUpload,Nq as renderMarkdownView,Ql as renderLayoutTypes,Si as renderImgComponent,Ek as renderImageComponent,td as renderHtmlAttrs,sd as renderHead,jq as renderEmail,Gh as renderComponentWithSlot,ud as renderBodyAttrs,Eo as render,Vc as relaxedCspPreset,Ed as registerValidationRule,pe as registerStreamingDirectives,Lo as registerStoresClient,rl as registerStore,xf as registerSeoDirectives,V as registerMiddleware,eb as registerFilters,db as registerFilter,Sb as registerErrorMessages,Jd as registerEnhancedValidationRule,Ph as registerDirective,cd as registerCspDirectives,Em as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Uk as ref,rn as redirect,Ib as recordResponseStatus,Jb as recordResponseHeader,Oa as rebaseOntoStateDir,Kb as readResponseStatus,Lb as readResponseHeaders,Gj as readMarkdownFile,Se as readFileCached,Vk as reactive,ep as quality,yp as pruneSignatureCache,Li as pruneCache,lq as provide,Mq as protectCodeBlocks,mr as prop,If as processVueTemplate,Qg as processVirtualListDirectives,Ug as processVirtualGridDirectives,fj as processVideo,Hd as processValidateDirective,de as processTranslateDirective,ug as processTransitionDirectives,xg as processTransitionAttributes,xd as processTitleDirective,Ab as processTemplateBindings,qg as processTeleportDirectives,yg as processSuspenseDirectives,sf as processStructuredData,je as processStreamDirectives,Ob as processStatusDirective,fh as processStaticDirectives,nf as processStackReplacements,mf as processStackPushDirectives,vh as processSlots,Jl as processShell,Gf as processServerBindings,tf as processSeoDirective,qe as processSectionDirectives,Lf as processScopedStyles,yb as processReactiveBindings,Cp as processProtectedMedia,_g as processPartialHydrationDirectives,kg as processOnceDirective,of as processMiddleware,rf as processMetaDirectives,yd as processMetaDirective,Hj as processMarkdownFileDirectives,Nh as processMarkdownDirectives,gf as processLoops,Ig as processKeepAliveDirectives,jg as processJsonDirective,Tg as processInfiniteListDirectives,lf as processIncludes,Ui as processImgComponents,Gk as processImageComponents,tk as processImage,wd as processHeadDirective,Ad as processForms,Cd as processFormInputDirectives,nb as processExpressions,Ca as processEventDirectives,Dd as processErrorDirective,Jf as processDynamicComponents,mh as processDirectives,Xh as processDirectiveAttributes,pg as processDeferDirectives,hd as processCustomDirectives,$c as processCspDirectives,tr as processComponentProps,Xa as processClientScript,Bd as processBasicFormDirectives,Dg as processAsyncDirectives,id as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Ud as preloadTranslationsBackground,Td as preloadTranslations,jo as preloadIslandHandlers,ye as preloadIconCollection,mm as poolStrings,yj as pluginManager,ue as placeholdersWarmed,tg as performLeave,sg as performEnter,Je as pendingLifecycleCounts,Ne as peek,hf as partialsCache,hj as parseVideoDirectiveOptions,No as parseUrl,Up as parseThumbhashString,Ic as parseSwitchBlock,sh as parseSlots,th as parseSlotElement,Nc as parseScriptDeclarations,uj as parseSFCComponent,Dp as parseProtectedArgs,ff as parseLoopBinding,Ti as parseImgComponent,ji as parseImageUrl,Fk as parseImageComponent,An as parseFormBody,Kc as parseExpressionWithFilters,Fm as parseDefaults,on as parseCookies,Km as parseContainerSelector,Fc as parseConditionalBlock,Lc as parseArguments,H as parseAnimationShorthand,or as optional,nm as optimizeTemplate,Lk as optimizeImage,Mk as optimizeDirectory,qr as oneOf,jf as onceStore,bl as onUpdated,xb as onUpdate,dl as onUnmounted,yl as onServer,$k as onMounted,Fe as onMount,eh as onHydrated,rq as onErrorCaptured,Ge as onDestroy,Og as onDeactivated,xl as onClient,al as onBeforeUpdate,cl as onBeforeUnmount,_k as onBeforeMount,Ng as onActivated,Np as observeElement,sn as notFound,Qf as normalizeCriticalHeadOrder,qq as nextTick,Im as negotiateEncoding,P as navigateTo,fl as mountInstance,z as motionDirective,Uc as moderateCspPreset,lm as minifyHtml,vf as metaDirective,_f as metaDedupKey,Oo as mergeParams,ag as mergeHtmlAttrs,nd as mergeHeadConfigs,Yc as mergeCspDirectives,sb as mergeCrosswindConfig,M as matchRoute,Oh as markdownDirectiveHandler,Fj as markdownCache,b as looksLikeGlob,ar as localizePath,Vd as loadTranslationLazy,$d as loadTranslation,Bj as loadStxConfig,_ as loadMiddlewareFromDirectory,$l as loadManifest,Jp as loadElement,sm as loadChannels,hr as lintStxStrict,Lp as lazyLoadAll,Kp as lazyLoad,C as keyframeDirective,Aq as jsxs,Bq as jsxDEV,zq as jsx,qn as jsonResponse,oe as islandDirective,_b as isTest,Ml as isSpaNavigation,Fl as isSpaNavRequest,rp as isSignatureValid,Ke as isSignal,rk as isSharpAvailable,bn as isServerEnvironment,vl as isServer,ta as isRuntimeOwnedColonAttr,Yb as isProduction,d as isPresentationalRole,Gp as isNativeLazySupported,Lq as isMarkdownPath,Rd as isLoading,Sd as isLoaded,yh as isJavaScriptScript,Hp as isIntersectionObserverSupported,zk as isImageFile,sk as isImageBackendAvailable,be as isICUFormat,dh as isHydrated,Dh as isHydrateTrigger,Gb as isHttpStatus,an as isEdgeEnvironment,ir as isDirectiveKind,Zb as isDevelopment,Le as isDerived,Mj as isCssOnlyChange,Hm as isCompressible,wl as isClient,Fg as isAsyncComponent,Bn as isActionableMethod,Yo as invert,Ue as invalidateFileCacheByDir,Te as invalidateFileCache,mb as interpolateScriptsInTemplate,kb as interpolateScriptExpressions,lb as interpolateScriptAttributes,kc as inlineError,Yq as injectThemeBootstrap,uf as injectSeoTags,Vq as injectSeo,af as injectRouterScript,Lj as injectHotReload,fa as injectHeatmap,Zc as injectCspMetaTag,wb as injectCrosswindCSS,hg as injectConfigHeadTags,Pf as injectColorModeBootScript,cg as injectCloakStyle,Wf as injectBuildId,Sa as injectBrowserCoreAutoImports,Cb as injectAnalytics,mq as inject,ql as initStoreRegistry,mk as initNetlify,lo as initLoadingIndicator,Ip as initLazyLoading,yn as initFile,Qp as initBlurUp,Wp as initAllBlurUp,Wi as imgDirective,Jk as imageDirective,Jn as hydrateTemplateStream,In as hydrateTemplate,io as hydrateIslands,ah as hydrateIsland,Kn as hydrateFragment,bh as hydrateByStrategy,ch as hydrateAll,Bo as hydrate,Tn as htmlResponse,dg as hoistLeadingHeadTags,Rf as hoistColorModeBootScript,ga as heatmapDirective,Ei as hashString,$e as hashFilePath,Ci as hashFile,Di as hashBuffer,Hf as hasVueTemplateSyntax,ef as hasVariables,Go as hasStore,bb as hasPlaceholders,kk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,gg as hasDocumentShell,qh as hasDirectives,h as hasDOMSupport,Ck as handleImageRequest,sq as handleError,Iq as h,yk as groupVariantsByFormat,Wo as grayscale,Mn as gitHash,fm as getUnusedDirectives,Wd as getTranslationSync,Pd as getTranslationCacheStats,Xd as getTranslationAsync,ce as getTranslation,fk as getTotalSize,sp as getTimeUntilExpiry,mg as getStoreScript,Ho as getStoreNames,Fo as getStore,_j as getStorageSize,Zj as getStorageKeys,Jh as getSourceLineInfo,Ah as getSharedTranspiler,g as getScreenReaderOnlyStyle,oj as getScopeAttribute,Ae as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,oh as getPositionInfo,_a as getPlaceholderRegistry,Bi as getPlaceholderCacheStats,kd as getPageMeta,Pc as getNonce,Ak as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Qd as getLoadingState,Zd as getLoadingLocales,te as getImagePlaceholder,uk as getImageMetadata,Ao as getHydrationRuntime,sl as getHydratedStoreState,Pj as getHmrServer,jd as getHead,so as getHMRHandler,ni as getFormatExtension,Gi as getFileMtime,xk as getFallbackVariant,Ub as getErrorMessage,Rb as getErrorLocale,ac as getErrorConfig,Xb as getErrorCodeName,Rh as getDirectives,Qh as getDirective,Rk as getCurrentInstance,Xc as getCspPreset,ed as getCspHeaderName,tb as getCrosswindServeAsset,Mh as getComponentCacheStats,Yi as getCachedVideoResult,wp as getCachedSignature,We as getCachedSignalsRuntime,Xe as getCachedRouterScript,zi as getCachedPlaceholder,Ni as getCachedImageResult,Hi as getCached,Ki as getCacheStats,Uf as getBuildId,pm as getBroadcastServer,mi as getBestVariant,fb as getAllFilters,ai as generateWidthSrcset,Rg as generateVirtualListCSS,bq as generateVideoPreview,Md as generateValidationScript,cq as generateUploadRuntime,gm as generateTreeShakenBundle,wg as generateTransitionRuntime,vg as generateTransitionCSS,aj as generateThumbnails,si as generateThumbhashPlaceholder,Tm as generateTemplatesDocs,Cg as generateSuspenseRuntime,Bg as generateSuspenseCSS,vo as generateStateScript,ki as generateSrcsetData,Ri as generateSrcset,vk as generateSrcSet,bj as generateSpriteSheet,kq as generateSpaShell,li as generateSourceTags,gi as generateSizesFromBreakpoints,fi as generateSizesAttribute,wk as generateSizes,yf as generateSitemapIndex,Wq as generateSitemap,Fp as generateSimpleMediaPicker,zp as generateSignatureRuntime,Qe as generateSignalsRuntimeDev,Pe as generateSignalsRuntime,Wa as generateServerDataBridge,lj as generateScopeId,vj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Af as generateRobotsTxt,Xq as generateRobots,Qi as generateResponsiveVariants,rj as generateReactiveWebComponentTS,qj as generateReactiveWebComponent,tj as generateReactiveRuntime,sj as generateReactiveMixin,$i as generatePoster,yi as generatePlaceholderStyle,xi as generatePlaceholderCSS,ri as generatePlaceholder,$g as generatePartialHydrationCSS,Oc as generateNonce,gk as generateNetlifyToml,eq as generateMinifiedMediaRuntime,dq as generateMediaRuntime,Ep as generateMediaManagerEmbed,Zl as generateManifest,no as generateLoadingIndicatorHtml,Pp as generateLazyLoadRuntime,Rl as generateLayoutTypes,ui as generateLQIP,Mg as generateKeepAliveRuntime,Lg as generateKeepAliveCSS,gh as generateIslandManifest,aq as generateImagePreview,Nk as generateImageManifest,zo as generateHydrationScript,se as generateHydrationRuntime,Co as generateHydrationCSS,Vg as generateHydrationBootstrap,Kj as generateHotReloadScript,ea as generateHeatmapScript,qo as generateHMRClientScript,cj as generateHLSManifest,wo as generateEventBindings,ei as generateDprSrcsetWithVariableQuality,di as generateDprSrcset,eg as generateDocumentShell,Ym as generateDocs,Um as generateDirectivesDocs,Wh as generateDirectiveRuntime,Bf as generateDefaultRobotsTxt,dj as generateDASHManifest,Sc as generateCspMetaTag,Rc as generateCspHeader,vb as generateCrosswindCSS,xq as generateCompositionRuntime,Sm as generateComponentsDocs,Wg as generateComponentManifest,Qm as generateComponentDoc,wi as generateColorPlaceholder,Of as generateColorModeBootScript,il as generateClientRuntime,Fi as generateCacheKey,Ua as generateBrowserAutoImportDestructuring,Xp as generateBlurUpRuntime,Yp as generateBlurUpCSS,zb as generateBindingsRuntime,bi as generateAutoWidthSrcset,Ta as generateAutoImportDestructuring,Hg as generateAsyncComponentRuntime,Gg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Bb as generateAnalyticsScript,ho as formatTypecheckDiagnostics,ao as formatTypeErrors,vn as formatStxContent,ek as formatSize,O as formatRoutes,wn as formatMarkdownContent,Vb as formatLocalizedError,ae as formatICU,cc as formatFilePath,jc as formatError,Uq as formatDoctorReport,Vm as formatDocsAsMarkdown,Xm as formatDocsAsJson,Wm as formatDocsAsHtml,dp as format,km as foldConstants,cp as flipVertical,bp as flipHorizontal,Sl as fingerprint,fo as findRuntimeTypeDeclarations,Sq as findPantryPackage,Ec as findMatchingEndTag,Ac as findMatchingDelimiter,Ea as findInterpolationEnd,Gc as findIfBlocks,Jc as findExpressions,N as findErrorPage,Hc as findDirectiveBlocks,hm as findDeadCode,hm as findDeadBranches,Lm as findContainerRegion,Rm as findComponentFiles,wr as findCommonDir,dk as filterRequiredFiles,Hh as fileExists,bf as extractVariables,Xl as extractTemplateExpressions,ke as extractStreamBoundaries,xo as extractState,wh as extractSlotContent,df as extractScriptFromTemplate,Wl as extractScriptBlocks,$a as extractPlaceholders,Dc as extractParenthesizedExpression,Hb as extractPageResponseStatus,ca as extractLayoutMetadata,vi as extractDominantColor,Mc as extractDirectiveParams,rh as extractDirectiveNames,Nl as extractContainerContent,Om as extractComponentProps,Xg as extractComponentName,Pm as extractComponentDescription,ub as extractClassNames,Va as extractBridgeData,Yg as extractBoundProps,Bc as extractBalancedExpression,Pa as extractAndStripCssImports,pj as extractAndScopeStyles,Ba as extractAndProcessEvents,Tj as externalizeSharedAssets,Uj as externalizeRepeatedAssets,Sj as externalizeHtml,pb as evaluateExpression,jm as evaluateConstant,Pb as evaluateAuthExpression,ib as escapeHtmlValue,hb as escapeHtml,pc as errorRecovery,rc as errorLogger,rg as ensureTeleportTargets,ig as ensureDocumentShell,Id as enhancedValidationRules,Mm as enableDevTools,im as eliminateDeadCode,De as effect,kp as dprUrls,Zm as docsCommand,Pl as discoverLayoutNames,Op as disconnectObserver,Nm as disableDevTools,sc as devHelpers,Il as detectShell,$m as detectRuntime,hk as detectProjectConfig,oi as detectFormat,cm as detectBuildMode,Ce as derived,lk as deploy,Dj as defineStxConfig,Ko as defineStore,uq as defineSlots,gr as defineSiteConfig,kr as definePropsWithValidation,jr as defineProps,xj as definePlugin,qd as definePageMeta,R as defineMiddleware,ih as defineForm,pq as defineExpose,oq as defineEmits,Th as defineDirective,Kq as defineCustomElement,Hn as defineConfig,Uh as defineClientDirective,Eg as defineAsyncComponent,fq as defaultMediaConfig,Pk as defaultImageConfig,Nd as defaultI18nConfig,da as defaultHeatmapConfig,zd as defaultFormClasses,cb as defaultFilters,gd as defaultCspConfig,zj as defaultConfig,ur as default,rb as deepMergeThemes,Kf as dedupeScopedStyles,ti as decodeThumbhash,bd as cspNonceDirective,ad as cspDirective,Vp as crossfadeTransition,Qo as crop,Pg as createVirtualList,ij as createVideoDirective,mn as createVercelHandler,Zn as createTypeChecker,ee as createTranslateFilter,hn as createTextEncoderStream,Jq as createStxApp,gn as createStreamingResponse,me as createStreamRenderer,Io as createStore,U as createStorageManager,S as createServerCookieManager,Tk as createScope,zg as createSSRSuspense,ze as createRouter,$ as createRouteLocation,Xn as createRoute,Uk as createRef,Vk as createReactive,wq as createProvideContext,On as createProject,Gn as createProductionBuild,Za as createPlaceholder,om as createOptimizedBuild,nn as createNetlifyHandler,$j as createNetlifyClient,aa as createMiddlewareContext,Wn as createMiddleware,Mp as createLazyObserver,Jg as createKeepAliveCache,dn as createKVNamespace,Zg as createIslandRegistry,Vi as createImgDirective,Kk as createImagePlugin,Dk as createImageHandler,Ik as createImageDirective,ia as createHeatmapAggregator,ck as createFileManifest,cn as createEnvAccessor,mc as createEnhancedError,fn as createEdgeHandler,en as createEdgeCache,Kh as createDetailedErrorMessage,ln as createDenoHandler,ik as createDefaultNetlifyConfig,fd as createCspHeaders,pn as createCookie,Wk as createComputed,Sk as createComponentInstance,kn as createCloudflareHandler,T as createClientCookieManager,Vh as createBuiltinDirectives,Jq as createApp,F as createAnimationTimeline,To as cover,cf as convertToCommonJS,_o as contrast,So as contain,lc as consoleError,$b as configureErrorHandling,Cj as config,Wk as computed,Jm as compressResponse,Df as composerPattern,Cf as composer,Kl as composeShellWithPage,Dm as componentDirective,Fh as componentClientSignalNames,Yl as compileTemplate,a as collectRepeatedFlag,bk as collectDeployFiles,_i as clearVideoCache,Od as clearTranslationCache,ng as clearStoreCache,Yj as clearStorage,xp as clearSignatureCache,Ai as clearPlaceholderCache,kf as clearOnceStore,Qc as clearNonce,Y as clearMiddleware,ve as clearImagePlaceholders,Hk as clearImageCache,Tb as clearErrorMessages,Ye as clearDevCaches,gb as clearCustomFilters,Ff as clearComposers,og as clearComposableCache,Lh as clearComponentCache,Ji as clearCache,mo as cleanupLoadingIndicator,Bl as classifyScript,Cl as classifyAllScripts,_n as checkTemplateFile,$n as checkTemplate,Ze as checkCache,up as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,ym as channel,un as captureScreenshots,tn as captureScreenshot,_d as cancelPendingLoads,ak as calculateSha1,ci as calculateOptimalWidths,_e as cacheTemplate,kj as buildWebComponents,bo as buildVirtualSource,hq as buildViews,Mo as buildUrl,ge as buildSuspenseResolveScript,fr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Tl as buildRuntimeAsset,Ul as buildRouterAsset,er as buildLangPickerScript,ii as buildImageUrl,$f as buildHtmlAttrs,am as buildForProduction,Gm as buildComponentLibrary,vp as buildAuthParams,bm as buildApp,cr as buildAlternateLinks,Fn as build,wm as broadcastPrivate,xm as broadcastPresence,tm as broadcast,Zo as brightness,Uo as blur,ya as blankInertHtmlRegions,pp as batchSignUrls,Ee as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,fp as auto,e as attributeValue,Vl as assetTags,za as asInvocableStatement,rr as arrayOf,$q as applyTranslations,Pi as applyTransformations,xh as applySlots,Cm as applyPropDefaults,ip as applyPreset,bg as applyHtmlAttrs,vd as applyHead,ob as applyFilters,Gl as appendVary,Wc as apiCspPreset,y as animationGroupDirective,ej as analyzeVideo,em as analyzeUsage,zl as analyzeTemplate,Al as analyzeProject,em as analyzeDirectiveUsage,Db as analyticsDirective,Rn as addStore,Qn as addPage,_c as addNonceToInlineContent,Sn as addLayout,Pn as addComponent,Dn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Ve as __setSignalsGeneratorsForTest,Vf as __setBuildIdForTest,Xi as VideoProcessorCache,jh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,zc as Tokenizer,Yn as TemplateTypeChecker,xn as TEMPLATE_PRESETS,ic as StxValidationError,ec as StxSyntaxError,gc as StxSecurityError,fc as StxRuntimeError,hc as StxFileError,dc as StxError,Fq as Show,he as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Dl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Eb as RESPONSE_STATUS_KEY,Fb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,En as ProductionBuild,Hq as Portal,Nn as PROJECT_TEMPLATES,hp as PRESETS,na as NON_CLIENT_PRIMITIVES,Do as MemorySessionStore,$h as MIME_TYPES,Yh as MEDIA_DEFAULT_WIDTHS,_h as MEDIA_DEFAULT_FORMATS,Ol as LAYOUT_TYPES_FILE,Mi as ImageProcessorCache,Bk as ImageProcessingError,yo as HydrationRuntime,Jj as HotReloadServer,ha as HeatmapAggregator,Zf as HTML_CLASS_MARKER,Yf as HTML_ATTRS_MARKER,yq as Fragment,Gq as For,El as FRAGMENT_CACHE_CONTROL,qc as ErrorLogger,Wb as ErrorCodes,Rj as EXTERNALIZED_ASSET_DIR,nk as DeployError,ok as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,qk as DEFAULT_QUALITY,pi as DEFAULT_PLACEHOLDER_OPTIONS,pk as DEFAULT_FORMATS,Zh as DEFAULT_DPR_VALUES,po as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,hi as COMMON_SIZES,Mf as COLOR_MODE_BOOT_MARKER,Nf as COLOR_MODE_BOOT_GLOBAL,Xf as CLOAK_STYLE,Am as BroadcastServer,zm as Broadcast,Sf as BUILD_ID_META,Tf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,qi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Rq as $path};
|
|
2
|
+
import{$ as ll,$a as cn,$b as vo,$c as vp,$d as vq,A as Xj,Aa as nm,Ab as Pn,Ac as Wo,Ad as Wp,Ae as ar,B as Yj,Ba as om,Bb as Qn,Bc as Xo,Bd as Xp,Be as br,C as Zj,Ca as Bm,Cb as Rn,Cc as Yo,Cd as Yp,Ce as cr,D as _j,Da as Cm,Db as Sn,Dc as Zo,Dd as Zp,De as dr,E as Qk,Ea as Dm,Eb as Tn,Ec as _o,Ed as _p,Ee as er,F as Rk,Fa as Em,Fb as Un,Fc as $o,Fd as $p,Fe as fr,G as Sk,Ga as Fm,Gb as Vn,Gc as ap,Gd as aq,Ge as gr,H as Tk,Ha as Gm,Hb as Wn,Hc as bp,Hd as bq,He as hr,I as Uk,Ia as Km,Ib as Xn,Ic as cp,Id as cq,Ie as ir,J as Vk,Ja as Lm,Jb as Yn,Jc as dp,Jd as dq,Je as jr,K as Wk,Ka as Mm,Kb as Zn,Kc as ep,Kd as eq,Ke as kr,L as Xk,La as Nm,Lb as _n,Lc as fp,Ld as fq,Le as lr,M as Yk,Ma as Om,Mb as $n,Mc as gp,Md as gq,Me as mr,N as Zk,Na as Pm,Nb as ao,Nc as hp,Nd as hq,Ne as nr,O as _k,Oa as Qm,Ob as io,Oc as ip,Od as iq,Oe as or,P as $k,Pa as Rm,Pb as jo,Pc as jp,Pd as jq,Pe as pr,Q as al,Qa as Sm,Qb as ko,Qc as kp,Qd as kq,Qe as qr,R as bl,Ra as Tm,Rb as lo,Rc as lp,Rd as lq,Re as rr,S as cl,Sa as Um,Sb as mo,Sc as mp,Sd as mq,Se as sr,T as dl,Ta as Vm,Tb as no,Tc as np,Td as nq,Te as tr,U as el,Ua as Wm,Ub as oo,Uc as op,Ud as oq,Ue as ur,V as fl,Va as Xm,Vb as po,Vc as pp,Vd as pq,Ve as vr,W as gl,Wa as Ym,Wb as qo,Wc as qp,Wd as qq,We as wr,X as hl,Xa as Zm,Xb as ro,Xc as rp,Xd as rq,Xe as xr,Y as il,Ya as $m,Yb as so,Yc as sp,Yd as sq,Ye as yr,Z as jl,Za as an,Zb as to,Zc as tp,Zd as tq,_ as kl,_a as bn,_b as uo,_c as up,_d as uq,aa as ml,ab as dn,ac as wo,ad as wp,ae as wq,ba as nl,bb as en,bc as xo,bd as xp,be as xq,ca as ol,cb as fn,cc as yo,cd as yp,ce as yq,da as pl,db as gn,dc as zo,dd as zp,de as zq,ea as ql,eb as hn,ec as Ao,ed as Ap,ee as Aq,fa as rl,fb as jn,fc as Bo,fd as Bp,fe as Bq,ga as sl,gb as kn,gc as Co,gd as Cp,ge as Cq,ha as tl,hb as ln,hc as Do,hd as Dp,he as Dq,ia as ul,ib as mn,ic as Eo,id as Ep,ie as Eq,ja as vl,jb as nn,jc as Fo,jd as Fp,je as Fq,ka as wl,kb as on,kc as Go,kd as Gp,ke as Gq,la as xl,lb as pn,lc as Ho,ld as Hp,le as Hq,ma as yl,mb as qn,mc as Io,md as Ip,me as Iq,na as zl,nb as rn,nc as Jo,nd as Jp,ne as Jq,o as a,oa as Al,ob as sn,oc as Ko,od as Kp,oe as Kq,p as Ij,pa as cm,pb as vn,pc as Lo,pd as Lp,pe as Rq,q as Jj,qa as dm,qb as wn,qc as Mo,qd as Mp,qe as Sq,r as Kj,ra as em,rb as xn,rc as No,rd as Np,re as Tq,s as Lj,sa as fm,sb as yn,sc as Oo,sd as Op,se as Uq,t as Mj,ta as gm,tb as En,tc as Po,td as Pp,te as Vq,u as Nj,ua as hm,ub as Fn,uc as Qo,ud as Qp,ue as Wq,v as Oj,va as im,vb as Gn,vc as Ro,vd as Rp,ve as Xq,w as Pj,wa as jm,wb as Hn,wc as So,wd as Sp,we as Yq,x as Qj,xa as km,xb as Mn,xc as To,xd as Tp,xe as Zq,y as Vj,ya as lm,yb as Nn,yc as Uo,yd as Up,ye as _q,z as Wj,za as mm,zb as On,zc as Vo,zd as Vp,ze as $q}from"./chunk-ycxt0hkg.js";import{$e as bk,Ze as $j,_e as ak,af as ck,bf as dk,cf as ek,df as fk,ef as gk,ff as hk,gf as ik,hf as jk,if as kk,jf as lk,kf as mk,lf as nk}from"./chunk-ym3r8ktq.js";import{mf as Ek,nf as Fk,of as Gk,pf as Hk,qf as Ik,rf as Jk,sf as Kk,tf as Lk,uf as Mk,vf as Nk,wf as Ok,xf as Pk}from"./chunk-bgma9v3x.js";import{Af as eo,Bf as fo,Cf as go,Df as ho,yf as bo,zf as co}from"./chunk-ng30x86k.js";import{Ef as tn,Ff as un}from"./chunk-pbsfbgx7.js";import{Gf as zn}from"./chunk-bmbk5ghv.js";import{Hf as Sl,If as Tl,Jf as Ul,Kf as Vl,Lf as Yl,Mf as am}from"./chunk-v7z91k5s.js";import{Nf as Wl,Qf as Xl}from"./chunk-f48jq07q.js";import{$f as sm,Yf as pm,Zf as qm,_f as rm,ag as tm,bg as um,cg as vm,dg as wm,eg as xm,fg as ym,gg as zm,hg as Am}from"./chunk-0j9hrzjj.js";import{ig as Ck,jg as Dk}from"./chunk-yk6pbzj7.js";import{kg as bm}from"./chunk-6zg37cv2.js";import{lg as Hm,mg as Im,ng as Jm,og as _m,pg as An,qg as Bn,rg as Cn,sg as Dn,tg as In,ug as Jn,vg as Kn,wg as Ln}from"./chunk-0mppmrxh.js";import{Ag as El,Bg as Fl,Cg as Gl,Dg as Hl,Eg as Il,Fg as Jl,Gg as Kl,Hg as Ll,Ig as Ml,Jg as Nl,Kg as Zl,Lg as _l,Mg as $l,xg as Bl,yg as Cl,zg as Dl}from"./chunk-cw5qgr4c.js";import{Ng as Xi,Og as Yi,Pg as Zi,Qg as _i,Rg as $i,Sg as aj,Tg as bj,Ug as cj,Vg as dj,Wg as ej,Xg as fj}from"./chunk-6ns885eh.js";import{Yg as xj,_g as yj}from"./chunk-f5v2qf95.js";import{eh as ok,fh as pk,gh as qk,hh as rk,ih as sk,jh as tk,kh as uk,mh as vk,nh as wk,oh as xk,ph as yk,qh as zk,rh as Ak,uh as Bk}from"./chunk-tfktw2ss.js";import{vh as hh,wh as ih,xh as jh,yh as kh}from"./chunk-49kk0s96.js";import{Dh as lh}from"./chunk-w3ycm4na.js";import{Eh as sh,Fh as th,Gh as uh,Hh as vh,Ih as wh,Jh as xh}from"./chunk-27cntejn.js";import{Kh as Mi,Lh as Ni,Mh as Oi,Qh as Pi,Rh as Qi,Sh as Ri}from"./chunk-n4m09b4x.js";import{$h as Ji,Th as Ci,Uh as Di,Vh as Ei,Wh as Fi,Xh as Gi,Zh as Hi,_h as Ii,ai as Ki,bi as Li}from"./chunk-74cv4ta1.js";import{ci as sg,di as tg,ei as ug,fi as vg,gi as wg,hi as xg}from"./chunk-wcm80anz.js";import{ii as yg,ji as zg,ki as Ag,li as Bg,mi as Cg}from"./chunk-y7m2dpd3.js";import{ni as Dg,oi as Eg,pi as Fg,qi as Gg,ri as Hg}from"./chunk-9y0g8kzt.js";import{si as Ig,ti as Jg,ui as Kg,vi as Lg,wi as Mg,xi as Ng,yi as Og}from"./chunk-t6nseeb9.js";import{Ai as Qg,Bi as Rg,Ci as Sg,Di as Tg,Ei as Ug,zi as Pg}from"./chunk-xttsqmkm.js";import{Gi as Vg,Hi as Wg,Ii as Xg,Ji as Yg,Ki as Zg,Li as _g,Mi as $g,Ni as ah,Oi as bh,Pi as ch,Qi as dh,Ri as eh,Si as fh,Ti as gh}from"./chunk-54st8g2j.js";import{Vi as mg,Wi as ng}from"./chunk-qjp6yj48.js";import{Zi as og}from"./chunk-8wxjrdfa.js";import"./chunk-9n0gvfrg.js";import{bj as pg}from"./chunk-7q9mwh4v.js";import{cj as qg,dj as rg}from"./chunk-refwkt87.js";import{ej as fe,fj as ge,gj as he,hj as ie,ij as je,jj as ke,kj as le,lj as me,mj as ne,nj as oe,oj as pe,pj as qe,qj as re,rj as se}from"./chunk-xk3j0vv1.js";import{sj as Pe,tj as Qe}from"./chunk-6n48y1kn.js";import{Aj as Be,Bj as Ce,Cj as De,Dj as Ee,Ej as Fe,Fj as Ge,Gj as He,Hj as Ie,Ij as Je,Jj as Ke,Kj as Le,Lj as Me,Mj as Ne,Nj as Oe}from"./chunk-w95sp0k9.js";import{Oj as Re,Pj as Se,Qj as Te,Rj as Ue,Sj as Ve,Tj as We,Uj as Xe,Vj as Ye,Wj as Ze,Xj as _e,Yj as $e}from"./chunk-4he1z2t1.js";import{qk as Lq,rk as Mq,sk as Nq,tk as Oq,uk as Pq,vk as Qq}from"./chunk-adck7v93.js";import{Ak as Ol,Bk as Pl,Ck as Ql,Dk as Rl,wk as Rj,xk as Sj,yk as Tj,zk as Uj}from"./chunk-2gaetgdw.js";import"./chunk-58f0mthg.js";import"./chunk-0ha9e1wt.js";import{$l as Wa,$m as Ub,$n as Uc,$p as Hf,$q as Nh,$r as vj,Al as I,Am as pb,An as tc,Ao as Jd,Ap as ff,Aq as gg,Ar as vi,Bl as J,Bm as qb,Bn as uc,Bo as Kd,Bp as gf,Bq as hg,Br as wi,Cl as da,Cn as vc,Co as Ld,Cp as hf,Cq as ig,Cr as xi,Dl as ea,Dm as xb,Dn as wc,Do as Md,Dp as jf,Dq as jg,Dr as yi,El as fa,Em as yb,En as xc,Eo as Nd,Ep as kf,Eq as kg,Er as zi,Fl as ga,Fm as zb,Fn as yc,Fo as Od,Fp as lf,Fq as lg,Fr as Ai,Gl as ha,Gm as Ab,Gn as zc,Go as Pd,Gp as mf,Gq as mh,Gr as Bi,Hl as ia,Hm as Bb,Hn as Ac,Ho as Qd,Hp as nf,Hq as nh,Hr as Si,Im as Cb,In as Bc,Io as Rd,Ip as of,Iq as oh,Ir as Ti,Jm as Db,Jn as Cc,Jo as Sd,Jp as pf,Jq as ph,Jr as Ui,Kl as za,Kn as Dc,Ko as Td,Kp as qf,Kq as qh,Kr as Vi,Ll as Aa,Lm as Eb,Ln as Ec,Lo as Ud,Lp as rf,Lq as rh,Lr as Wi,Ml as Ba,Mm as Fb,Mn as Fc,Mo as Vd,Mp as sf,Mq as yh,Mr as gj,Nl as Ca,Nm as Gb,Nn as Gc,No as Wd,Np as tf,Nq as zh,Nr as hj,Ol as Da,Om as Hb,On as Hc,Oo as Xd,Op as uf,Oq as Ah,Or as ij,Pm as Ib,Pn as Ic,Po as Yd,Pp as vf,Pq as Bh,Pr as jj,Qm as Jb,Qn as Jc,Qo as Zd,Qp as wf,Qq as Ch,Qr as kj,Rl as Ga,Rm as Kb,Rn as Kc,Ro as _d,Rp as xf,Rq as Dh,Rr as lj,Sl as Ha,Sm as Lb,Sn as Lc,So as $d,Sp as yf,Sq as Eh,Sr as mj,Tl as Ia,Tm as Mb,Tn as Mc,To as ae,Tp as zf,Tq as Fh,Tr as nj,Ul as Pa,Um as Nb,Un as Nc,Uo as be,Up as Af,Uq as Gh,Ur as oj,Vl as Qa,Vm as Ob,Vn as Oc,Vo as ce,Vp as Bf,Vq as Hh,Vr as pj,Wl as Ra,Wm as Pb,Wn as Pc,Wo as de,Wp as Cf,Wq as Ih,Wr as qj,Xl as Sa,Xm as Qb,Xn as Qc,Xo as ee,Xp as Df,Xq as Jh,Xr as rj,Yl as Ta,Ym as Rb,Yn as Rc,Yp as Ef,Yq as Kh,Yr as sj,Zl as Ua,Zm as Sb,Zn as Sc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Va,_m as Tb,_n as Tc,_p as Gf,_q as Mh,_r as uj,am as Xa,an as Vb,ao as Vc,ap as ze,aq as If,ar as Oh,as as wj,bn as Wb,bo as Wc,bp as Ae,bq as Jf,br as Yh,bs as zj,cn as Xb,co as Xc,cq as Kf,cr as Zh,cs as Aj,dn as Yb,do as Yc,dp as af,dq as Lf,dr as _h,ds as Bj,en as Zb,eo as Zc,eq as Mf,er as $h,es as Cj,fm as Ya,fn as _b,fo as _c,fq as Nf,fr as ai,fs as Dj,gm as Za,gn as $b,go as $c,gq as Of,gr as bi,gs as Ej,hm as _a,hn as ac,ho as ad,hq as Pf,hr as ci,hs as Fj,im as $a,in as bc,io as bd,iq as Qf,ir as di,is as Gj,jm as ab,jn as cc,jo as cd,jq as Rf,jr as ei,js as Hj,kl as s,km as bb,kn as dc,ko as dd,kq as Sf,kr as fi,ll as t,ln as ec,lo as ed,lq as Tf,lr as gi,ml as u,mn as fc,mo as fd,mq as Uf,mr as hi,nl as v,nm as cb,nn as gc,no as gd,nq as Vf,nr as ii,ol as w,om as db,on as hc,oo as hd,oq as Wf,or as ji,pl as x,pm as eb,pn as ic,po as id,pq as Xf,pr as ki,ql as y,qm as fb,qn as jc,qo as zd,qq as Yf,qr as li,rl as z,rm as gb,rn as kc,ro as Ad,rq as Zf,rr as mi,sl as A,sm as hb,sn as lc,so as Bd,sq as _f,sr as ni,tl as B,tm as ib,tn as mc,to as Cd,tq as $f,tr as oi,ul as C,um as jb,un as nc,uo as Dd,up as bf,uq as ag,ur as pi,vl as D,vm as kb,vn as oc,vo as Ed,vq as bg,vr as qi,wl as E,wm as lb,wn as pc,wo as Fd,wp as cf,wq as cg,wr as ri,xl as F,xm as mb,xn as qc,xo as Gd,xq as dg,xr as si,yl as G,ym as nb,yn as rc,yo as Hd,yp as df,yq as eg,yr as ti,zl as H,zm as ob,zn as sc,zo as Id,zp as ef,zq as fg,zr as ui}from"./chunk-18vhxnfs.js";import{ks as d,ls as e,ms as f,ns as g,os as h,ps as i,qs as j,rs as k,ss as l,ts as m,us as n,vs as o,ws as p,xs as q,ys as r}from"./chunk-vr4ycjqv.js";import{As as Qh,Bs as Rh,Cs as Sh,Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,zs as Ph}from"./chunk-cbj5a2tk.js";import{Is as b,Js as c}from"./chunk-fmw1mscr.js";import{Ks as Ea,Ls as Fa}from"./chunk-wfsf3vmh.js";import{$s as wb,Ms as rb,Ns as sb,Ps as tb,Zs as ub,_s as vb}from"./chunk-n9twmmw7.js";import{at as te,bt as ue,ct as ve,dt as we,gt as xe}from"./chunk-2fgthktp.js";import{ht as Ja,it as Ka,jt as La,kt as Ma,lt as Na,mt as Oa}from"./chunk-ecncwde8.js";import{At as wd,Bt as xd,Ct as yd,nt as jd,ot as kd,pt as ld,qt as md,rt as nd,st as od,tt as pd,ut as qd,vt as rd,wt as sd,xt as td,yt as ud,zt as vd}from"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import{Gt as ja,Ht as ka,It as la,Jt as ma,Kt as na,Lt as oa,Mt as pa,Nt as qa,Ot as ra,Pt as sa,Qt as ta,Rt as ua,St as va,Tt as wa,Ut as xa,Vt as ya}from"./chunk-9q9swjc1.js";import{Au as aa,Bu as ba,Du as ca,Zt as K,_t as L,bu as M,gu as N,hu as O,nu as P,ou as Q,pu as R,qu as S,ru as T,su as U,tu as V,uu as W,vu as X,wu as Y,xu as Z,yu as _,zu as $}from"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{jk as writeNetlifyConfig,_l as writeManifest,Ok as writeImageManifest,ro as wrapComponentForHMR,lr as withDefaults,wj as webComponentDirectiveHandler,gp as watermark,iq as watchViews,Yk as watchMultiple,Zk as watchEffect,Xk as watch,xe as warmImagePlaceholders,kl as waitForStore,Yd as waitForLocale,co as virtualPathFor,jj as videoDirective,tc as validators,pr as validated,Kd as validateValueEnhanced,nh as validateTemplate,lp as validateParams,Ld as validateFormEnhanced,Zp as validateFile,Gd as validateFields,Fd as validateField,ph as validateDirective,dd as validateCspDirectives,Ej as validateConfig,dm as validateComponentScripts,Bm as validateComponentProps,lg as validateClientScript,kh as v,jb as usesSignalsInScript,pa as usesReactiveRuntime,Ch as userComponentFileExists,Sg as useVirtualList,rd as useTitle,jl as useStoreOrThrow,Jo as useStore,Vj as useStorage,tq as useSlots,Xj as useSessionStorage,od as useSeoMeta,ll as useRouteParams,nl as useRouteParamOrThrow,ml as useRouteParam,rd as usePageTitle,Oe as useOptimistic,pl as useMiddlewareValue,ol as useMiddlewareState,Wj as useLocalStorage,ko as useLoadingIndicator,md as useHead,hh as useForm,vq as useAttrs,$p as uploadFiles,_p as uploadFile,gl as updateInstance,Me as untrack,Sh as unregisterDirective,hl as unmountInstance,qb as unescapeHtml,go as typecheckStxFiles,Bh as transpileTypeScript,_q as translate,w as transitionDirective,vm as toUsers,um as toUser,Ro as thumbnail,Sp as thumbHashToRGBA,Tp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Re as templateCache,Mb as syncRecordedResponse,oo as stxClientHelpers,wf as structuredDataDirective,br as stripLocalePrefix,Ll as stripDocumentWrapper,Fa as stripCommentsAndLiterals,jn as stringToStream,Tc as strictCspPreset,ne as streamingSuspenseDirective,re as streamToResponse,le as streamTemplateSimple,fe as streamTemplate,Qj as stopHmrServer,rm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Be as state,fg as startsDocument,Ln as startProductionServer,zn as startInteractive,qm as startBroadcasting,dr as stampLocaleLayoutGroup,D as staggerDirective,jp as srcsetUrls,E as springDirective,Cc as splitByPipe,Hl as spaNavVaryHeaders,eo as sourcePathFor,qp as smartBatchSign,Eh as slotContentHasExpressions,op as signUrl,zh as shouldTranspileTypeScript,Nj as shouldReloadOnChange,tp as shouldRefreshSignature,Oj as shouldIgnoreFile,Kg as shouldCacheComponent,Vo as sharpen,sr as shape,La as setStateDir,tl as setRouteParams,ul as setMiddlewareState,we as setImagePlaceholder,nq as setGlobalProvide,Qb as setErrorLocale,Qk as setCurrentInstance,Zi as setCachedVideoResult,Oi as setCachedImageResult,Ii as setCached,vr as serveStxFile,xr as serveMultipleStxFiles,Ij as serveMarkdownFile,Vn as serveFile,yr as serveApp,Un as serve,uo as serializeState,_m as serializeSetCookie,Xo as sepia,pd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,nj as scopeHTML,mj as scopeCSS,zf as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,$o as saturation,mp as sanitizeParams,vc as sanitizeFilePath,wc as sanitizeExpression,xc as sanitizeDirectiveParams,uc as sanitizeDirectiveParam,yc as sanitizeComponentProps,oc as safeExecuteAsync,nc as safeExecute,xa as runtimeHandledXAttrsLiteral,pf as runPreProcessingMiddleware,qf as runPostProcessingMiddleware,Cn as runPageAction,He as runMountCallbacks,ba as runMiddleware,el as runHooks,Tq as runDoctor,Ie as runDestroyCallbacks,Ef as runComposers,ap as rotate,lh as rewriteImagesWithSiblings,Nb as responseBindings,Ih as resolveTemplatePath,c as resolveStxTargets,Aj as resolveStxDirectories,Zq as resolveI18n,Po as resize,Ya as resetPlaceholders,ld as resetHead,to as resetHMRHandler,bc as resetErrorConfig,nr as required,ab as replacePlaceholders,gq as renderView,gj as renderVideoComponent,Qa as renderVendorStyleTags,Cq as renderToString,Dq as renderToStream,Eq as renderToDOM,Rp as renderThumbhashToCanvas,Qq as renderTemplateString,Oq as renderTemplate,Pq as renderString,ie as renderStreamingPage,uh as renderSlot,Ag as renderSSRSuspense,Bp as renderProtectedVideo,Ap as renderProtectedImg,np as renderMediaUpload,Nq as renderMarkdownView,Ql as renderLayoutTypes,Si as renderImgComponent,Ek as renderImageComponent,td as renderHtmlAttrs,sd as renderHead,jq as renderEmail,Gh as renderComponentWithSlot,ud as renderBodyAttrs,Eo as render,Vc as relaxedCspPreset,Ed as registerValidationRule,pe as registerStreamingDirectives,Lo as registerStoresClient,rl as registerStore,xf as registerSeoDirectives,V as registerMiddleware,eb as registerFilters,db as registerFilter,Sb as registerErrorMessages,Jd as registerEnhancedValidationRule,Ph as registerDirective,cd as registerCspDirectives,Em as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Uk as ref,rn as redirect,Ib as recordResponseStatus,Jb as recordResponseHeader,Oa as rebaseOntoStateDir,Kb as readResponseStatus,Lb as readResponseHeaders,Gj as readMarkdownFile,Se as readFileCached,Vk as reactive,ep as quality,yp as pruneSignatureCache,Li as pruneCache,lq as provide,Mq as protectCodeBlocks,mr as prop,If as processVueTemplate,Qg as processVirtualListDirectives,Ug as processVirtualGridDirectives,fj as processVideo,Hd as processValidateDirective,de as processTranslateDirective,ug as processTransitionDirectives,xg as processTransitionAttributes,xd as processTitleDirective,Ab as processTemplateBindings,qg as processTeleportDirectives,yg as processSuspenseDirectives,sf as processStructuredData,je as processStreamDirectives,Ob as processStatusDirective,fh as processStaticDirectives,nf as processStackReplacements,mf as processStackPushDirectives,vh as processSlots,Jl as processShell,Gf as processServerBindings,tf as processSeoDirective,qe as processSectionDirectives,Lf as processScopedStyles,yb as processReactiveBindings,Cp as processProtectedMedia,_g as processPartialHydrationDirectives,kg as processOnceDirective,of as processMiddleware,rf as processMetaDirectives,yd as processMetaDirective,Hj as processMarkdownFileDirectives,Nh as processMarkdownDirectives,gf as processLoops,Ig as processKeepAliveDirectives,jg as processJsonDirective,Tg as processInfiniteListDirectives,lf as processIncludes,Ui as processImgComponents,Gk as processImageComponents,tk as processImage,wd as processHeadDirective,Ad as processForms,Cd as processFormInputDirectives,nb as processExpressions,Ca as processEventDirectives,Dd as processErrorDirective,Jf as processDynamicComponents,mh as processDirectives,Xh as processDirectiveAttributes,pg as processDeferDirectives,hd as processCustomDirectives,$c as processCspDirectives,tr as processComponentProps,Xa as processClientScript,Bd as processBasicFormDirectives,Dg as processAsyncDirectives,id as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Ud as preloadTranslationsBackground,Td as preloadTranslations,jo as preloadIslandHandlers,ye as preloadIconCollection,mm as poolStrings,yj as pluginManager,ue as placeholdersWarmed,tg as performLeave,sg as performEnter,Je as pendingLifecycleCounts,Ne as peek,hf as partialsCache,hj as parseVideoDirectiveOptions,No as parseUrl,Up as parseThumbhashString,Ic as parseSwitchBlock,sh as parseSlots,th as parseSlotElement,Nc as parseScriptDeclarations,uj as parseSFCComponent,Dp as parseProtectedArgs,ff as parseLoopBinding,Ti as parseImgComponent,ji as parseImageUrl,Fk as parseImageComponent,An as parseFormBody,Kc as parseExpressionWithFilters,Fm as parseDefaults,on as parseCookies,Km as parseContainerSelector,Fc as parseConditionalBlock,Lc as parseArguments,H as parseAnimationShorthand,or as optional,nm as optimizeTemplate,Lk as optimizeImage,Mk as optimizeDirectory,qr as oneOf,jf as onceStore,bl as onUpdated,xb as onUpdate,dl as onUnmounted,yl as onServer,$k as onMounted,Fe as onMount,eh as onHydrated,rq as onErrorCaptured,Ge as onDestroy,Og as onDeactivated,xl as onClient,al as onBeforeUpdate,cl as onBeforeUnmount,_k as onBeforeMount,Ng as onActivated,Np as observeElement,sn as notFound,Qf as normalizeCriticalHeadOrder,qq as nextTick,Im as negotiateEncoding,P as navigateTo,fl as mountInstance,z as motionDirective,Uc as moderateCspPreset,lm as minifyHtml,vf as metaDirective,_f as metaDedupKey,Oo as mergeParams,ag as mergeHtmlAttrs,nd as mergeHeadConfigs,Yc as mergeCspDirectives,sb as mergeCrosswindConfig,M as matchRoute,Oh as markdownDirectiveHandler,Fj as markdownCache,b as looksLikeGlob,ar as localizePath,Vd as loadTranslationLazy,$d as loadTranslation,Bj as loadStxConfig,_ as loadMiddlewareFromDirectory,$l as loadManifest,Jp as loadElement,sm as loadChannels,hr as lintStxStrict,Lp as lazyLoadAll,Kp as lazyLoad,C as keyframeDirective,Aq as jsxs,Bq as jsxDEV,zq as jsx,qn as jsonResponse,oe as islandDirective,_b as isTest,Ml as isSpaNavigation,Fl as isSpaNavRequest,rp as isSignatureValid,Ke as isSignal,rk as isSharpAvailable,bn as isServerEnvironment,vl as isServer,ta as isRuntimeOwnedColonAttr,Yb as isProduction,d as isPresentationalRole,Gp as isNativeLazySupported,Lq as isMarkdownPath,Rd as isLoading,Sd as isLoaded,yh as isJavaScriptScript,Hp as isIntersectionObserverSupported,zk as isImageFile,sk as isImageBackendAvailable,be as isICUFormat,dh as isHydrated,Dh as isHydrateTrigger,Gb as isHttpStatus,an as isEdgeEnvironment,ir as isDirectiveKind,Zb as isDevelopment,Le as isDerived,Mj as isCssOnlyChange,Hm as isCompressible,wl as isClient,Fg as isAsyncComponent,Bn as isActionableMethod,Yo as invert,Ue as invalidateFileCacheByDir,Te as invalidateFileCache,mb as interpolateScriptsInTemplate,kb as interpolateScriptExpressions,lb as interpolateScriptAttributes,kc as inlineError,Yq as injectThemeBootstrap,uf as injectSeoTags,Vq as injectSeo,af as injectRouterScript,Lj as injectHotReload,fa as injectHeatmap,Zc as injectCspMetaTag,wb as injectCrosswindCSS,hg as injectConfigHeadTags,Pf as injectColorModeBootScript,cg as injectCloakStyle,Wf as injectBuildId,Sa as injectBrowserCoreAutoImports,Cb as injectAnalytics,mq as inject,ql as initStoreRegistry,mk as initNetlify,lo as initLoadingIndicator,Ip as initLazyLoading,yn as initFile,Qp as initBlurUp,Wp as initAllBlurUp,Wi as imgDirective,Jk as imageDirective,Jn as hydrateTemplateStream,In as hydrateTemplate,io as hydrateIslands,ah as hydrateIsland,Kn as hydrateFragment,bh as hydrateByStrategy,ch as hydrateAll,Bo as hydrate,Tn as htmlResponse,dg as hoistLeadingHeadTags,Rf as hoistColorModeBootScript,ga as heatmapDirective,Ei as hashString,$e as hashFilePath,Ci as hashFile,Di as hashBuffer,Hf as hasVueTemplateSyntax,ef as hasVariables,Go as hasStore,bb as hasPlaceholders,kk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,gg as hasDocumentShell,qh as hasDirectives,h as hasDOMSupport,Ck as handleImageRequest,sq as handleError,Iq as h,yk as groupVariantsByFormat,Wo as grayscale,Mn as gitHash,fm as getUnusedDirectives,Wd as getTranslationSync,Pd as getTranslationCacheStats,Xd as getTranslationAsync,ce as getTranslation,fk as getTotalSize,sp as getTimeUntilExpiry,mg as getStoreScript,Ho as getStoreNames,Fo as getStore,_j as getStorageSize,Zj as getStorageKeys,Jh as getSourceLineInfo,Ah as getSharedTranspiler,g as getScreenReaderOnlyStyle,oj as getScopeAttribute,Ae as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,oh as getPositionInfo,_a as getPlaceholderRegistry,Bi as getPlaceholderCacheStats,kd as getPageMeta,Pc as getNonce,Ak as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Qd as getLoadingState,Zd as getLoadingLocales,te as getImagePlaceholder,uk as getImageMetadata,Ao as getHydrationRuntime,sl as getHydratedStoreState,Pj as getHmrServer,jd as getHead,so as getHMRHandler,ni as getFormatExtension,Gi as getFileMtime,xk as getFallbackVariant,Ub as getErrorMessage,Rb as getErrorLocale,ac as getErrorConfig,Xb as getErrorCodeName,Rh as getDirectives,Qh as getDirective,Rk as getCurrentInstance,Xc as getCspPreset,ed as getCspHeaderName,tb as getCrosswindServeAsset,Mh as getComponentCacheStats,Yi as getCachedVideoResult,wp as getCachedSignature,We as getCachedSignalsRuntime,Xe as getCachedRouterScript,zi as getCachedPlaceholder,Ni as getCachedImageResult,Hi as getCached,Ki as getCacheStats,Uf as getBuildId,pm as getBroadcastServer,mi as getBestVariant,fb as getAllFilters,ai as generateWidthSrcset,Rg as generateVirtualListCSS,bq as generateVideoPreview,Md as generateValidationScript,cq as generateUploadRuntime,gm as generateTreeShakenBundle,wg as generateTransitionRuntime,vg as generateTransitionCSS,aj as generateThumbnails,si as generateThumbhashPlaceholder,Tm as generateTemplatesDocs,Cg as generateSuspenseRuntime,Bg as generateSuspenseCSS,vo as generateStateScript,ki as generateSrcsetData,Ri as generateSrcset,vk as generateSrcSet,bj as generateSpriteSheet,kq as generateSpaShell,li as generateSourceTags,gi as generateSizesFromBreakpoints,fi as generateSizesAttribute,wk as generateSizes,yf as generateSitemapIndex,Wq as generateSitemap,Fp as generateSimpleMediaPicker,zp as generateSignatureRuntime,Qe as generateSignalsRuntimeDev,Pe as generateSignalsRuntime,Wa as generateServerDataBridge,lj as generateScopeId,vj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Af as generateRobotsTxt,Xq as generateRobots,Qi as generateResponsiveVariants,rj as generateReactiveWebComponentTS,qj as generateReactiveWebComponent,tj as generateReactiveRuntime,sj as generateReactiveMixin,$i as generatePoster,yi as generatePlaceholderStyle,xi as generatePlaceholderCSS,ri as generatePlaceholder,$g as generatePartialHydrationCSS,Oc as generateNonce,gk as generateNetlifyToml,eq as generateMinifiedMediaRuntime,dq as generateMediaRuntime,Ep as generateMediaManagerEmbed,Zl as generateManifest,no as generateLoadingIndicatorHtml,Pp as generateLazyLoadRuntime,Rl as generateLayoutTypes,ui as generateLQIP,Mg as generateKeepAliveRuntime,Lg as generateKeepAliveCSS,gh as generateIslandManifest,aq as generateImagePreview,Nk as generateImageManifest,zo as generateHydrationScript,se as generateHydrationRuntime,Co as generateHydrationCSS,Vg as generateHydrationBootstrap,Kj as generateHotReloadScript,ea as generateHeatmapScript,qo as generateHMRClientScript,cj as generateHLSManifest,wo as generateEventBindings,ei as generateDprSrcsetWithVariableQuality,di as generateDprSrcset,eg as generateDocumentShell,Ym as generateDocs,Um as generateDirectivesDocs,Wh as generateDirectiveRuntime,Bf as generateDefaultRobotsTxt,dj as generateDASHManifest,Sc as generateCspMetaTag,Rc as generateCspHeader,vb as generateCrosswindCSS,xq as generateCompositionRuntime,Sm as generateComponentsDocs,Wg as generateComponentManifest,Qm as generateComponentDoc,wi as generateColorPlaceholder,Of as generateColorModeBootScript,il as generateClientRuntime,Fi as generateCacheKey,Ua as generateBrowserAutoImportDestructuring,Xp as generateBlurUpRuntime,Yp as generateBlurUpCSS,zb as generateBindingsRuntime,bi as generateAutoWidthSrcset,Ta as generateAutoImportDestructuring,Hg as generateAsyncComponentRuntime,Gg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Bb as generateAnalyticsScript,ho as formatTypecheckDiagnostics,ao as formatTypeErrors,vn as formatStxContent,ek as formatSize,O as formatRoutes,wn as formatMarkdownContent,Vb as formatLocalizedError,ae as formatICU,cc as formatFilePath,jc as formatError,Uq as formatDoctorReport,Vm as formatDocsAsMarkdown,Xm as formatDocsAsJson,Wm as formatDocsAsHtml,dp as format,km as foldConstants,cp as flipVertical,bp as flipHorizontal,Sl as fingerprint,fo as findRuntimeTypeDeclarations,Sq as findPantryPackage,Ec as findMatchingEndTag,Ac as findMatchingDelimiter,Ea as findInterpolationEnd,Gc as findIfBlocks,Jc as findExpressions,N as findErrorPage,Hc as findDirectiveBlocks,hm as findDeadCode,hm as findDeadBranches,Lm as findContainerRegion,Rm as findComponentFiles,wr as findCommonDir,dk as filterRequiredFiles,Hh as fileExists,bf as extractVariables,Xl as extractTemplateExpressions,ke as extractStreamBoundaries,xo as extractState,wh as extractSlotContent,df as extractScriptFromTemplate,Wl as extractScriptBlocks,$a as extractPlaceholders,Dc as extractParenthesizedExpression,Hb as extractPageResponseStatus,ca as extractLayoutMetadata,vi as extractDominantColor,Mc as extractDirectiveParams,rh as extractDirectiveNames,Nl as extractContainerContent,Om as extractComponentProps,Xg as extractComponentName,Pm as extractComponentDescription,ub as extractClassNames,Va as extractBridgeData,Yg as extractBoundProps,Bc as extractBalancedExpression,Pa as extractAndStripCssImports,pj as extractAndScopeStyles,Ba as extractAndProcessEvents,Tj as externalizeSharedAssets,Uj as externalizeRepeatedAssets,Sj as externalizeHtml,pb as evaluateExpression,jm as evaluateConstant,Pb as evaluateAuthExpression,ib as escapeHtmlValue,hb as escapeHtml,pc as errorRecovery,rc as errorLogger,rg as ensureTeleportTargets,ig as ensureDocumentShell,Id as enhancedValidationRules,Mm as enableDevTools,im as eliminateDeadCode,De as effect,kp as dprUrls,Zm as docsCommand,Pl as discoverLayoutNames,Op as disconnectObserver,Nm as disableDevTools,sc as devHelpers,Il as detectShell,$m as detectRuntime,hk as detectProjectConfig,oi as detectFormat,cm as detectBuildMode,Ce as derived,lk as deploy,Dj as defineStxConfig,Ko as defineStore,uq as defineSlots,gr as defineSiteConfig,kr as definePropsWithValidation,jr as defineProps,xj as definePlugin,qd as definePageMeta,R as defineMiddleware,ih as defineForm,pq as defineExpose,oq as defineEmits,Th as defineDirective,Kq as defineCustomElement,Hn as defineConfig,Uh as defineClientDirective,Eg as defineAsyncComponent,fq as defaultMediaConfig,Pk as defaultImageConfig,Nd as defaultI18nConfig,da as defaultHeatmapConfig,zd as defaultFormClasses,cb as defaultFilters,gd as defaultCspConfig,zj as defaultConfig,ur as default,rb as deepMergeThemes,Kf as dedupeScopedStyles,ti as decodeThumbhash,bd as cspNonceDirective,ad as cspDirective,Vp as crossfadeTransition,Qo as crop,Pg as createVirtualList,ij as createVideoDirective,mn as createVercelHandler,Zn as createTypeChecker,ee as createTranslateFilter,hn as createTextEncoderStream,Jq as createStxApp,gn as createStreamingResponse,me as createStreamRenderer,Io as createStore,U as createStorageManager,S as createServerCookieManager,Tk as createScope,zg as createSSRSuspense,ze as createRouter,$ as createRouteLocation,Xn as createRoute,Uk as createRef,Vk as createReactive,wq as createProvideContext,On as createProject,Gn as createProductionBuild,Za as createPlaceholder,om as createOptimizedBuild,nn as createNetlifyHandler,$j as createNetlifyClient,aa as createMiddlewareContext,Wn as createMiddleware,Mp as createLazyObserver,Jg as createKeepAliveCache,dn as createKVNamespace,Zg as createIslandRegistry,Vi as createImgDirective,Kk as createImagePlugin,Dk as createImageHandler,Ik as createImageDirective,ia as createHeatmapAggregator,ck as createFileManifest,cn as createEnvAccessor,mc as createEnhancedError,fn as createEdgeHandler,en as createEdgeCache,Kh as createDetailedErrorMessage,ln as createDenoHandler,ik as createDefaultNetlifyConfig,fd as createCspHeaders,pn as createCookie,Wk as createComputed,Sk as createComponentInstance,kn as createCloudflareHandler,T as createClientCookieManager,Vh as createBuiltinDirectives,Jq as createApp,F as createAnimationTimeline,To as cover,cf as convertToCommonJS,_o as contrast,So as contain,lc as consoleError,$b as configureErrorHandling,Cj as config,Wk as computed,Jm as compressResponse,Df as composerPattern,Cf as composer,Kl as composeShellWithPage,Dm as componentDirective,Fh as componentClientSignalNames,Yl as compileTemplate,a as collectRepeatedFlag,bk as collectDeployFiles,_i as clearVideoCache,Od as clearTranslationCache,ng as clearStoreCache,Yj as clearStorage,xp as clearSignatureCache,Ai as clearPlaceholderCache,kf as clearOnceStore,Qc as clearNonce,Y as clearMiddleware,ve as clearImagePlaceholders,Hk as clearImageCache,Tb as clearErrorMessages,Ye as clearDevCaches,gb as clearCustomFilters,Ff as clearComposers,og as clearComposableCache,Lh as clearComponentCache,Ji as clearCache,mo as cleanupLoadingIndicator,Bl as classifyScript,Cl as classifyAllScripts,_n as checkTemplateFile,$n as checkTemplate,Ze as checkCache,up as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,ym as channel,un as captureScreenshots,tn as captureScreenshot,_d as cancelPendingLoads,ak as calculateSha1,ci as calculateOptimalWidths,_e as cacheTemplate,kj as buildWebComponents,bo as buildVirtualSource,hq as buildViews,Mo as buildUrl,ge as buildSuspenseResolveScript,fr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Tl as buildRuntimeAsset,Ul as buildRouterAsset,er as buildLangPickerScript,ii as buildImageUrl,$f as buildHtmlAttrs,am as buildForProduction,Gm as buildComponentLibrary,vp as buildAuthParams,bm as buildApp,cr as buildAlternateLinks,Fn as build,wm as broadcastPrivate,xm as broadcastPresence,tm as broadcast,Zo as brightness,Uo as blur,ya as blankInertHtmlRegions,pp as batchSignUrls,Ee as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,fp as auto,e as attributeValue,Vl as assetTags,za as asInvocableStatement,rr as arrayOf,$q as applyTranslations,Pi as applyTransformations,xh as applySlots,Cm as applyPropDefaults,ip as applyPreset,bg as applyHtmlAttrs,vd as applyHead,ob as applyFilters,Gl as appendVary,Wc as apiCspPreset,y as animationGroupDirective,ej as analyzeVideo,em as analyzeUsage,zl as analyzeTemplate,Al as analyzeProject,em as analyzeDirectiveUsage,Db as analyticsDirective,Rn as addStore,Qn as addPage,_c as addNonceToInlineContent,Sn as addLayout,Pn as addComponent,Dn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Ve as __setSignalsGeneratorsForTest,Vf as __setBuildIdForTest,Xi as VideoProcessorCache,jh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,zc as Tokenizer,Yn as TemplateTypeChecker,xn as TEMPLATE_PRESETS,ic as StxValidationError,ec as StxSyntaxError,gc as StxSecurityError,fc as StxRuntimeError,hc as StxFileError,dc as StxError,Fq as Show,he as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Dl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Eb as RESPONSE_STATUS_KEY,Fb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,En as ProductionBuild,Hq as Portal,Nn as PROJECT_TEMPLATES,hp as PRESETS,na as NON_CLIENT_PRIMITIVES,Do as MemorySessionStore,$h as MIME_TYPES,Yh as MEDIA_DEFAULT_WIDTHS,_h as MEDIA_DEFAULT_FORMATS,Ol as LAYOUT_TYPES_FILE,Mi as ImageProcessorCache,Bk as ImageProcessingError,yo as HydrationRuntime,Jj as HotReloadServer,ha as HeatmapAggregator,Zf as HTML_CLASS_MARKER,Yf as HTML_ATTRS_MARKER,yq as Fragment,Gq as For,El as FRAGMENT_CACHE_CONTROL,qc as ErrorLogger,Wb as ErrorCodes,Rj as EXTERNALIZED_ASSET_DIR,nk as DeployError,ok as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,qk as DEFAULT_QUALITY,pi as DEFAULT_PLACEHOLDER_OPTIONS,pk as DEFAULT_FORMATS,Zh as DEFAULT_DPR_VALUES,po as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,hi as COMMON_SIZES,Mf as COLOR_MODE_BOOT_MARKER,Nf as COLOR_MODE_BOOT_GLOBAL,Xf as CLOAK_STYLE,Am as BroadcastServer,zm as Broadcast,Sf as BUILD_ID_META,Tf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,qi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Rq as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$l as k,Rl as c,Ul as d,Vl as e,Wl as f,Xl as g,Yl as h,Zl as i,_l as j,am as l}from"./chunk-
|
|
2
|
+
import{$l as k,Rl as c,Ul as d,Vl as e,Wl as f,Xl as g,Yl as h,Zl as i,_l as j,am as l}from"./chunk-18vhxnfs.js";import"./chunk-vr4ycjqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-fmw1mscr.js";import{Ks as a,Ls as b}from"./chunk-wfsf3vmh.js";import"./chunk-n9twmmw7.js";import"./chunk-2fgthktp.js";import"./chunk-ecncwde8.js";import"./chunk-fdd1ccv6.js";import"./chunk-yjrdr27z.js";import"./chunk-9q9swjc1.js";import"./chunk-3k5k7s1x.js";import"./chunk-p1e61dbq.js";import"./chunk-3r20gmdk.js";export{b as stripCommentsAndLiterals,e as renderVendorStyleTags,l as processClientScript,g as injectBrowserCoreAutoImports,k as generateServerDataBridge,i as generateBrowserAutoImportDestructuring,h as generateAutoImportDestructuring,a as findInterpolationEnd,j as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{il as _,jl as u}from"./chunk-0ha9e1wt.js";import{Sl as h,es as n}from"./chunk-
|
|
2
|
+
import{il as _,jl as u}from"./chunk-0ha9e1wt.js";import{Sl as h,es as n}from"./chunk-18vhxnfs.js";import{lt as N}from"./chunk-ecncwde8.js";import K from"path";import M from"fs";var s=5,c=1,p=new Map;function $w(z){return p.get(z)??[]}function o(z,w){if(z)p.set(z,w)}function t(z=process.env){return z.STX_DEBUG==="true"||z.STX_DEBUG==="1"}function T(...z){if(t())console.log("[stx:bundler]",...z)}var D=[];function b(z,w,Y){D.push({filePath:z||"<inline>",message:w,details:Y})}function Qw(){return D.slice()}function Xw(){D.length=0}var F;function Hw(z){F=z}function f(){if(F)return F;try{let z=n.strict;return typeof z==="object"&&z!==null?z.bundlerFallback??"warn":"warn"}catch{return"warn"}}var g=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function qw(z){let w=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,Y;while((Y=w.exec(z))!==null){let j=Y[1];if(!g.some((G)=>G.test(j)))return T("detected user import:",j),!0}let Z=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while((Y=Z.exec(z))!==null){let j=Y[1];if(/\.css(?:\?.*)?$/.test(j))continue;if(!g.some((G)=>G.test(j)))return T("detected side-effect import:",j),!0}return!1}function a(z,w,Y,Z){let j=(Q,G)=>{let J=Q===Y?w:K.dirname(Q),W=K.resolve(J,G),X=[W,`${W}.ts`,`${W}.tsx`,`${W}.js`,`${W}.mjs`,`${W}.jsx`,K.join(W,"index.ts"),K.join(W,"index.tsx"),K.join(W,"index.js"),K.join(W,"index.mjs")];for(let S of X)try{if(M.existsSync(S)&&M.statSync(S,{throwIfNoEntry:!1})?.isFile())return S}catch{}return W};return{name:"stx-client-bundle",setup(Q){Q.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(G)=>({path:G.path,external:!0})),Q.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(G)=>({path:G.path,external:!0})),Q.onResolve({filter:/^\//},(G)=>{if(M.existsSync(G.path))return{path:G.path};return{path:G.path,external:!0}}),Q.onResolve({filter:/^\.\.?\//},(G)=>{let J=j(G.importer,G.path);return Z.add(J),{path:J}}),Q.onResolve({filter:/^[@~]\//},(G)=>{let J=K.resolve(z,G.path.slice(2)),W=[J,`${J}.ts`,`${J}.tsx`,`${J}.js`,`${J}.mjs`,`${J}.jsx`,K.join(J,"index.ts"),K.join(J,"index.tsx"),K.join(J,"index.js"),K.join(J,"index.mjs")];for(let X of W)if(M.existsSync(X)&&M.statSync(X,{throwIfNoEntry:!1})?.isFile())return T(`resolved ${G.path[0]}/ import:`,G.path,"\u2192",X),Z.add(X),{path:X};return console.warn(`[stx:bundler] could not resolve ${G.path[0]}/ import:`,G.path),{path:J}}),Q.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(G)=>{let J=K.extname(G.path).toLowerCase(),W=J===".json"?"json":J===".tsx"?"tsx":J===".jsx"?"jsx":J===".ts"||J===".mts"||J===".cts"?"ts":"js";if(G.path!==Y)Z.add(G.path);return{contents:M.readFileSync(G.path,"utf8"),loader:W}})}}}var R=new Map,m=Symbol.for("stx.client-bundle-build-queue");function e(z){let w=globalThis,Z=(w[m]??Promise.resolve()).then(z,z);return w[m]=Z.then(()=>{return},()=>{return}),Z}async function Mw(z,w,Y={}){let Z=Y.projectRoot||process.cwd(),j=Y.minify??!1,Q=Y.cacheDir||N(Z,"bundle-cache"),G=new Bun.CryptoHasher("md5");G.update(`${s}\x00${z}\x00${w}`);let J=G.digest("hex").slice(0,12),W=K.join(Q,`${J}.js`),X=K.join(Q,`${J}.deps.json`),S=Bun.file(W);if(await S.exists()){let k=Bun.file(X),I=!0;if(await k.exists())try{let O=JSON.parse(await k.text());if(O.metadataVersion!==c||!Array.isArray(O.files))I=!1;for(let q of Array.isArray(O.files)?O.files:[])try{if(M.statSync(q.path).mtimeMs!==q.mtimeMs){I=!1;break}}catch{I=!1;break}}catch{I=!1}if(I){T("cache hit:",J);try{let O=JSON.parse(await Bun.file(X).text());o(w,(O.files??[]).map((q)=>q.path))}catch{}return await S.text()}T("cache invalidated by dep change:",J)}let y=R.get(J);if(y)return await y;let x=e(()=>ww(z,w,{projectRoot:Z,minify:j,cacheDir:Q,hash:J,cachePath:W,depsPath:X}));R.set(J,x);try{return await x}finally{R.delete(J)}}async function ww(z,w,Y){let{projectRoot:Z,minify:j,cacheDir:Q,hash:G,cachePath:J,depsPath:W}=Y,X=N(Z,"bundle-tmp"),S=K.join(X,`${G}.ts`),y=K.join(X,"out",G);M.mkdirSync(X,{recursive:!0}),M.mkdirSync(y,{recursive:!0});let x=K.dirname(w),k=[],I=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,O=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,q;while((q=I.exec(z))!==null){if(q[1])continue;if(q[2])q[2].split(",").forEach((V)=>{let H=zw(V);if(H)k.push(H)});else if(q[3])k.push(q[3])}while((q=O.exec(z))!==null){if(q[1])continue;k.push(q[2])}let E=k.length>0?`
|
|
3
3
|
export { ${k.join(", ")} }`:"";await Bun.write(S,z+E),T("bundling:",G,"from:",K.basename(w));let B=new Set;try{let V=await Bun.build({entrypoints:[S],outdir:y,target:"browser",format:"esm",minify:j,plugins:[a(Z,x,S,B)],define:{"process.env.NODE_ENV":j?'"production"':'"development"',...h()},root:Z});if(!V.success){let U=V.logs.filter((L)=>L.level==="error").map((L)=>L.message).join(", ")||`Unable to bundle ${K.basename(w)}`,A=_(V.logs,w||void 0);if(console.warn("[stx:bundler] build failed:",U),b(w||"",U,A),f()==="error")throw Error(U);return z}let H="";for(let $ of V.outputs){H=await $.text();break}let C=[];for(let $ of H.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let U of $[1].split(",")){let A=U.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(A){C.push([A[2],A[1]]);continue}let L=U.trim();if(/^[A-Za-z_$][\w$]*$/.test(L))C.push([L,L])}let r=H.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];H=H.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let v=`__stxBundle_${G}`,d=C.map(([$,U])=>`${JSON.stringify($)}: ${U}`).join(", "),l=C.map(([$])=>`var ${$} = undefined;`).join(`
|
|
4
4
|
`),i=C.map(([$])=>`${$} = ${v}[${JSON.stringify($)}];`).join(`
|
|
5
5
|
`);if(H=`${r.join(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ls as _}from"./chunk-wfsf3vmh.js";import"./chunk-
|
|
2
|
+
import{Ls as _}from"./chunk-wfsf3vmh.js";import"./chunk-3r20gmdk.js";function W(j,G,H=240){return j.slice(G,G+H)}var v=[{rule:"route-params",pattern:/\blocation\s*\.\s*pathname\s*\.\s*(?:match|split)\s*\(/g,primitive:"useRoute() / useRouteParams() / useRouteParam(name)",why:"parsing the URL by hand re-implements the router and does not update on SPA navigation"},{rule:"alert",pattern:/(?<![.#\w$])(?:(?:window|globalThis)\s*\.\s*)?alert\s*\(/g,primitive:"stxAlert(message)",why:"themed, focus-trapped and non-blocking \u2014 but `await` it if the code after it "+"depended on the native dialog blocking until dismissal",reject:(j)=>/\b(?:async\s+)?function\s+alert\s*\(/.test(j)||/\b(?:const|let|var)\s+alert\s*=/.test(j)},{rule:"search-params",pattern:/new\s+URLSearchParams\s*\(/g,primitive:"useSearchParams()",why:"reactive, and writes back through the router instead of history.replaceState",reject:(j,G)=>{let H=j.indexOf("(",G);if(H===-1)return!0;let Q=j.slice(H+1,j.indexOf(")",H)+1);return!/\b(?:location|search|href|url)\b/i.test(Q)}},{rule:"navigate",pattern:/\blocation\s*\.\s*(?:assign|replace)\s*\(|\blocation\s*\.\s*href\s*=/g,primitive:"navigate(path) / goBack()",why:"a full document load throws away every store and the scroll position; navigate() is an SPA transition",reject:(j,G)=>/^[^\n]*?(?:['"`]\s*)?(?:mailto:|tel:|sms:|https?:\/\/|\/\/)/.test(W(j,G,160))},{rule:"fetch",pattern:/new\s+AbortController\s*\(/g,primitive:"useFetch(url) / useAsyncData(key, fn)",why:"cancellation, loading and error state are already wired; hand-rolling them is where the races live"},{rule:"polling",pattern:/setInterval\s*\(/g,primitive:"useEventSource() / useSSE() / useWebSocket() / useChannel()",why:"polling burns requests and lags; the push primitives are delivered",reject:(j,G)=>!/\bfetch\s*\(|\$fetch\b|useFetch\b|\.get\s*\(|axios\b/.test(W(j,G))},{rule:"debounce",pattern:/\bclearTimeout\s*\(/g,primitive:"useDebounce(fn, ms) / useThrottle(fn, ms)",why:"a hand-held timer handle per call site is the usual source of stale-result bugs",requires:(j)=>/setTimeout\s*\(/.test(j)},{rule:"click-outside",pattern:/document\s*\.\s*addEventListener\s*\(\s*['"](?:click|mousedown|pointerdown)['"]/g,primitive:"useClickOutside(ref, fn)",why:"the document-level listener plus the blur race is exactly what this composable exists to remove"},{rule:"focus",pattern:/\.\s*(?:getElementById|querySelector)\s*\([^)]*\)\s*(?:\?\.)?\s*\.?focus\s*\(/g,primitive:"useFocus(ref) with x-ref",why:"a query by id breaks under nested scopes and SPA navigation; a ref does not"},{rule:"clipboard",pattern:/navigator\s*\.\s*(?:clipboard|share)\b/g,primitive:"useClipboard() / useShare()",why:"permission state, the copied flag and the unsupported-browser fallback are already handled"},{rule:"watch",pattern:/\beffect\s*\(\s*\(\s*\)\s*=>\s*\{[^}]*\bvoid\s+\w+\s*\(\s*\)/g,primitive:"watch(source, cb) / watchMultiple([...], cb)",why:"the `void a(); void b()` dance is a manual dependency list; watch takes one directly"}],U=["confirm","tooltip",...v.map((j)=>j.rule)];function N(j,G){let H=1;for(let Q=0;Q<G;Q++)if(j[Q]===`
|
|
3
3
|
`)H++;return H}function P(j,G){let H=j.lastIndexOf(`
|
|
4
4
|
`,G)+1,Q=j.indexOf(`
|
|
5
5
|
`,G);return j.slice(H,Q===-1?j.length:Q).trim().slice(0,120)}function q(j,G){let H=j.slice(0,G),Q=H.lastIndexOf("function"),X=H.lastIndexOf("=>"),M=Math.max(Q,X);if(M===-1)return!1;let z=j.slice(Math.max(0,M-120),M);return/\basync\b[^;{}]*$/.test(z)}function L(j){return/\b(?:async\s+)?function\s+confirm\s*\(/.test(j)||/\b(?:const|let|var)\s+confirm\s*=/.test(j)||/\bimport\s*\{[^}]*\bconfirm\b[^}]*\}/.test(j)}function O(j,G,H){if(L(j))return j;let Q=/(^|[^\w$.])(?:(?:window|globalThis)\s*\.\s*)?confirm\s*\(/g,X=F(j),M="",z=0,Y;while((Y=Q.exec(X))!==null){let Z=Y.index+Y[1].length,$=N(j,Z),J=P(j,Z);if(/stxConfirm\s*\($/.test(j.slice(0,Z+8)))continue;let D=q(j,Z);if(H.push({file:G,line:$,rule:"confirm",applied:D,snippet:J,reason:D?void 0:"stxConfirm() returns a Promise and native confirm() is synchronous, so this needs `await` inside an async function. Rewriting it here would make the condition always true."}),D)M+=j.slice(z,Z)+"await stxConfirm(",z=Z+(Y[0].length-Y[1].length)}return M+j.slice(z)}function w(j,G,H){let Q=/(<[a-z][\w-]*\b[^>]*?)\stitle=(["'])(.*?)\2/gis,X=C(j),M="",z=0,Y;while((Y=Q.exec(X))!==null){let[Z,$,J,D]=Y,K=N(j,Y.index),B=P(j,Y.index),V=$.match(/^<([A-Za-z][\w-]*)/)?.[1]??"";if(/^[A-Z]/.test(V)){H.push({file:G,line:K,rule:"tooltip",applied:!1,snippet:B,reason:`\`title\` on <${V}> is a component prop, not an HTML attribute \u2014 `+"adding x-tooltip here would put a tooltip on a component and may duplicate text it already renders."});continue}if(/\bx-tooltip[=\s]/.test($)||D.trim()===""){H.push({file:G,line:K,rule:"tooltip",applied:!1,snippet:B,reason:/\bx-tooltip[=\s]/.test($)?"already has x-tooltip":"empty title"});continue}H.push({file:G,line:K,rule:"tooltip",applied:!0,snippet:B}),M+=j.slice(z,Y.index)+`${$} x-tooltip=${J}${D}${J} title=${J}${D}${J}`,z=Y.index+Z.length}return M+j.slice(z)}function C(j){return j.replace(/<!--[\s\S]*?-->/g,(G)=>G.replace(/[^\n]/g," ")).replace(/\{\{--[\s\S]*?--\}\}/g,(G)=>G.replace(/[^\n]/g," "))}function E(j){let G=(H)=>H.replace(/[^\n]/g," ");return j.replace(/\/\*[\s\S]*?\*\//g,G).replace(/\/\/[^\n]*/g,G)}function F(j,G=!1){let H=C(j);return(G?E(H):_(H)).replace(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi,(X,M)=>/\bclient\b/i.test(M)?X:X.replace(/[^\n]/g," "))}function S(j,G,H,Q){let X=F(j),M=F(j,!0);for(let z of v){if(!H.includes(z.rule))continue;if(z.requires&&!z.requires(j))continue;z.pattern.lastIndex=0;let Y,Z=/['"]/.test(z.pattern.source)?M:X;z.pattern.lastIndex=0;while((Y=z.pattern.exec(Z))!==null){if(z.reject?.(j,Y.index))continue;Q.push({file:G,line:N(j,Y.index),rule:z.rule,applied:!1,snippet:P(j,Y.index),reason:`${z.primitive} \u2014 ${z.why}`})}}}function k(j,G={}){let H=G.rules??U,Q=G.file??"<source>",X=[];S(j,Q,H,X);let M=j;if(H.includes("confirm"))M=O(M,Q,X);if(H.includes("tooltip"))M=w(M,Q,X);X.sort((Z,$)=>Z.line-$.line);let z=new Set,Y=X.filter((Z)=>{let $=`${Z.rule}:${Z.line}`;if(z.has($))return!1;return z.add($),!0});return{code:M,findings:Y}}var I=new Set(["confirm","tooltip"]);function A(j,G){if(j.length===0)return"No hand-rolled equivalents found.";let H=j.filter((z)=>z.applied),Q=j.filter((z)=>!z.applied&&I.has(z.rule)),X=j.filter((z)=>!z.applied&&!I.has(z.rule)),M=[];if(H.length>0){M.push(G?`Rewrote ${H.length} site(s):`:`Would rewrite ${H.length} site(s) (pass --fix):`);for(let z of H)M.push(` ${z.file}:${z.line} [${z.rule}] ${z.snippet}`)}if(Q.length>0){M.push("",`Needs a human \u2014 ${Q.length} site(s):`);for(let z of Q)M.push(` ${z.file}:${z.line} [${z.rule}] ${z.snippet}
|