@stacksjs/stx 0.2.200 → 0.2.201
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-2f80w68h.js → chunk-5d664wp1.js} +1 -1
- package/dist/{chunk-k03b9z9e.js → chunk-5hpp0vzz.js} +54 -54
- package/dist/{chunk-hryeb88f.js → chunk-as6mtt14.js} +1 -1
- package/dist/{chunk-wjqswn35.js → chunk-h5rx09a5.js} +4 -4
- package/dist/{chunk-vx8cht59.js → chunk-m3qtqheb.js} +1 -1
- package/dist/{chunk-eqq7k4g0.js → chunk-njvb5hn8.js} +1 -1
- package/dist/{chunk-pa6gyr8e.js → chunk-q7tx4b74.js} +1 -1
- package/dist/{chunk-b5nws5vh.js → chunk-r65jaef6.js} +1 -1
- package/dist/{chunk-v9yzmqsh.js → chunk-te0r2g0x.js} +1 -1
- package/dist/{chunk-macr4195.js → chunk-xdxhz4h3.js} +1 -1
- package/dist/cli.js +3 -3
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{xg as a}from"./chunk-
|
|
2
|
+
import{xg as a}from"./chunk-q7tx4b74.js";import"./chunk-ndnc7k2n.js";import"./chunk-njvb5hn8.js";import"./chunk-whq99ytc.js";import"./chunk-3es366z4.js";import"./chunk-yckd6ks5.js";import"./chunk-6wx32fa5.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-31xczh3c.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{a as buildForProduction};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{if as Z$,jf as $5}from"./chunk-
|
|
2
|
+
import{if as Z$,jf as $5}from"./chunk-te0r2g0x.js";import{Kg as I7,Lg as I6,Mg as s$,Ng as Y$,Og as J$,Pg as D6,Qg as w6}from"./chunk-njvb5hn8.js";import{Ri as t1,Si as e1}from"./chunk-m1awve2j.js";import{Aj as y1,Bj as L1,Cj as F1,Dj as b$,Ej as y$,Fj as b5,Hj as y5}from"./chunk-3es366z4.js";import{sk as x5,tk as k5}from"./chunk-ycn1vnv2.js";import{Ak as v7,zk as y7}from"./chunk-yckd6ks5.js";import{cl as $1}from"./chunk-zgvga8rc.js";import{Aq as A1,Bm as M6,Dp as V6,Eo as o1,Ep as E6,Eq as p0,Ir as H$,Jm as f1,Kr as z1,Lr as A0,Mm as Z6,Mo as B0,Pr as q0,Ul as R7,Um as p$,Uo as m0,Vp as r$,Wl as i5,Wm as c$,Xp as R6,Yp as J6,Zm as h1,bn as l$,en as n1,fn as Y6,jm as u0,lq as L0,tm as m$,vr as $$,wp as w7,zq as a5}from"./chunk-6wx32fa5.js";import{Bs as X$,Cs as Q$,Gs as s,ts as B}from"./chunk-31xczh3c.js";import{Ls as S0}from"./chunk-cbc56wpd.js";import{Ot as z6,Pt as j6,Qt as H6,Rt as O6,St as A6,Tt as q6,Vt as N6,Zt as _6,tt as a$,ut as K6,yt as L6,zt as F6}from"./chunk-3952ykhb.js";import{hu as c}from"./chunk-pw0rzgpv.js";var v5={read:($)=>{try{return JSON.parse($)}catch{return $}},write:($)=>{return JSON.stringify($)}};function c7($,X,Q={}){let{storage:Z="local",serializer:Y=v5,mergeDefaults:J=!1,listenToStorageChanges:G=!0}=Q,W=new Set,K=typeof window<"u",_=()=>{if(!K)return null;return Z==="session"?sessionStorage:localStorage},U=()=>{let L=_();if(!L)return X;try{let O=L.getItem($);if(O===null)return X;let A=Y.read(O);if(J&&typeof X==="object"&&X!==null)return{...X,...A};return A}catch{return X}},z=(L)=>{let O=_();if(!O)return;try{if(L===null||L===void 0)O.removeItem($);else O.setItem($,Y.write(L))}catch(A){console.warn(`[useStorage] Failed to write key "${$}":`,A)}},F=U(),H=(L,O)=>{for(let A of W)try{A(L,O)}catch(q){console.error("[useStorage] Subscriber error:",q)}};if(K&&G){let L=(A)=>{if(A.key===$&&A.storageArea===_()){let q=F;try{F=A.newValue?Y.read(A.newValue):X}catch(M){console.warn(`[useStorage] Failed to read key "${$}" from a cross-tab update:`,M);return}H(F,q)}};window.addEventListener("storage",L);let O=globalThis.onDestroy;if(typeof O==="function")O(()=>window.removeEventListener("storage",L))}let j={get value(){return F},set value(L){let O=F;F=L,z(L),H(L,O)},get:()=>F,set:(L)=>{j.value=L},remove:()=>{let L=_();if(L){L.removeItem($);let O=F;F=X,H(X,O)}},subscribe:(L)=>{return W.add(L),L(F,void 0),()=>W.delete(L)}};return j}function g5($,X,Q,Z,Y={}){let{serializer:J=v5,mergeDefaults:G=!1,listenToStorageChanges:W=!0}=Y,K=typeof window<"u",_=()=>{if(!K)return null;return $==="session"?sessionStorage:localStorage},U=(H)=>{if(H===null||H===void 0)return Z;try{let j=J.read(H);if(G&&typeof Z==="object"&&Z!==null)return{...Z,...j};return j}catch(j){return console.warn(`[${X}] Failed to read key "${Q}":`,j),Z}},F=b5((()=>{let H=_();if(!H)return Z;try{return U(H.getItem(Q))}catch(j){return console.warn(`[${X}] Cannot read "${Q}":`,j),Z}})());if(y5(()=>{let H=F(),j=_();if(!j)return;try{if(H===null||H===void 0)j.removeItem(Q);else j.setItem(Q,J.write(H))}catch(L){console.warn(`[${X}] Cannot persist "${Q}":`,L)}}),K&&W){let H=(L)=>{if(L.key!==Q)return;if(L.storageArea&&L.storageArea!==_())return;F.set(U(L.newValue))};window.addEventListener("storage",H);let j=globalThis.onDestroy;if(typeof j==="function")j(()=>window.removeEventListener("storage",H))}return F}function l7($,X,Q){return g5("local","useLocalStorage",$,X,Q)}function i7($,X,Q){return g5("session","useSessionStorage",$,X,Q)}function a7($="local"){if(typeof window>"u")return;($==="session"?sessionStorage:localStorage).clear()}function r7($="local"){if(typeof window>"u")return[];let X=$==="session"?sessionStorage:localStorage;return Object.keys(X)}function s7($="local"){if(typeof window>"u")return 0;let X=$==="session"?sessionStorage:localStorage,Q=0;for(let Z in X)if(Object.prototype.hasOwnProperty.call(X,Z))Q+=(Z.length+(X.getItem(Z)?.length||0))*2;return Q}var i=null;function b1($,X,Q=new WeakSet){if(Object.is($,X))return!0;if(typeof $!=="object"||typeof X!=="object"||$===null||X===null)return!1;if(Q.has($))return!0;if(Q.add($),$ instanceof Date&&X instanceof Date)return $.getTime()===X.getTime();if($ instanceof RegExp&&X instanceof RegExp)return $.source===X.source&&$.flags===X.flags;if(Array.isArray($)){if(!Array.isArray(X)||$.length!==X.length)return!1;for(let J=0;J<$.length;J++)if(!b1($[J],X[J],Q))return!1;return!0}if(Array.isArray(X))return!1;if($ instanceof Map){if(!(X instanceof Map)||$.size!==X.size)return!1;for(let[J,G]of $)if(!X.has(J)||!b1(G,X.get(J),Q))return!1;return!0}if(X instanceof Map)return!1;if($ instanceof Set){if(!(X instanceof Set)||$.size!==X.size)return!1;for(let J of $)if(!X.has(J))return!1;return!0}if(X instanceof Set)return!1;let Z=Object.keys($),Y=Object.keys(X);if(Z.length!==Y.length)return!1;for(let J of Z){if(!Object.prototype.hasOwnProperty.call(X,J))return!1;if(!b1($[J],X[J],Q))return!1}return!0}function eY($){i=$}function $J(){return i}function XJ(){return{isMounted:!1,isUnmounted:!1,hooks:{beforeMount:[],mounted:[],beforeUpdate:[],updated:[],beforeUnmount:[],unmounted:[]},effects:[],scope:n7()}}function n7(){return{refs:new Map,effects:new Set,cleanups:[]}}function QJ($){let X=new Set,Q=new Set,Z=$,Y=Symbol("ref"),J={get value(){let G=y1();if(G)Q.add(G);return Z},set value(G){if(!Object.is(G,Z)){let W=Z;Z=G;for(let K of X)K(G,W);for(let K of Q)if(b$())y$(K);else K()}},subscribe(G){return X.add(G),()=>{X.delete(G)}}};if(i)i.scope.refs.set(Y,J);return J}var f5=new WeakMap;function o7($){let X=f5.get($);if(X)return X;let Q=new Map,Z=(G)=>{let W=Q.get(G);if(!W)return;for(let K of[...W])if(b$())y$(K);else K()},Y=(G,W)=>{if(!Q.has(G))Q.set(G,new Set);return Q.get(G).add(W),()=>{Q.get(G)?.delete(W)}},J=new Proxy($,{get(G,W,K){let _=Reflect.get(G,W,K),U=y1();if(U)Y(W,U);if(_!==null&&typeof _==="object"&&!Array.isArray(_)){let z=Object.getPrototypeOf(_);if(z===Object.prototype||z===null)return o7(_)}return _},set(G,W,K,_){let U=Reflect.get(G,W,_),z=Reflect.set(G,W,K,_);if(!Object.is(K,U))Z(W);return z},deleteProperty(G,W){let K=Reflect.deleteProperty(G,W);return Z(W),K}});return f5.set($,J),J}function ZJ($){let X,Q=!0,Z=new Set,Y=new Set,J=()=>{Q=!0,G()},G=()=>{if(Q){let K=X,_=L1(J);if(X=$(),F1(_),Q=!1,!Object.is(X,K)){for(let U of Z)U(X,K);for(let U of Y)U()}}},W=L1(J);return X=$(),Q=!1,F1(W),{get value(){let K=y1();if(K)Y.add(K);return G(),X},set value(K){console.warn("[stx] Computed properties are readonly")},subscribe(K){return Z.add(K),()=>{Z.delete(K)}}}}function t7($){if(typeof requestAnimationFrame==="function"){requestAnimationFrame(()=>{requestAnimationFrame($)});return}setTimeout($,0)}function YJ($,X,Q={}){let{immediate:Z=!1,deep:Y=!1,flush:J="post"}=Q,G,W,K=!1,_=()=>{if(K)return;let j=H();if((Y?!b1(j,G):!Object.is(j,G))||Z)if(X(j,G),Y&&j!==null&&typeof j==="object")try{G=structuredClone(j)}catch{G=j}else G=j},U=(j)=>{if(J==="sync")j();else if(J==="pre")Promise.resolve().then(j);else t7(j)},z=!1,F=()=>{if(K||z)return;z=!0,U(()=>{z=!1,_()})},H=()=>{if(typeof $==="function"){let j=L1(F);try{return $()}finally{F1(j)}}return $.value};if(typeof $!=="function"){let j=$.subscribe(()=>{U(_)});W=()=>{K=!0,j()}}else W=()=>{K=!0};if(G=H(),Z)U(_);if(i)i.scope.cleanups.push(()=>W?.());return()=>W?.()}function JJ($,X,Q={}){let Z=[],Y=$.map((J)=>J.value);for(let J of $){let G=J.subscribe(()=>{let W=$.map((K)=>K.value);X(W,Y),Y=[...W]});Z.push(G)}if(Q.immediate){let J=$.map((G)=>G.value);X(J,Y)}return()=>{for(let J of Z)J()}}function GJ($){let X,Q=!1,Z=()=>{if(Q)return;if(X)X();let Y=L1(Z);X=$(),F1(Y)};if(Z(),i)i.scope.cleanups.push(()=>{if(Q=!0,X)X()});return()=>{if(Q=!0,X)X()}}function WJ($){if(i)i.hooks.beforeMount.push($);else console.warn("[stx] onBeforeMount called outside of component setup")}function KJ($){if(i)i.hooks.mounted.push($);else console.warn("[stx] onMounted called outside of component setup")}function _J($){if(i)i.hooks.beforeUpdate.push($);else console.warn("[stx] onBeforeUpdate called outside of component setup")}function UJ($){if(i)i.hooks.updated.push($);else console.warn("[stx] onUpdated called outside of component setup")}function BJ($){if(i)i.hooks.beforeUnmount.push($);else console.warn("[stx] onBeforeUnmount called outside of component setup")}function LJ($){if(i)i.hooks.unmounted.push($);else console.warn("[stx] onUnmounted called outside of component setup")}async function r0($,X){let Q=$.hooks[X];for(let Z of Q)await Z()}async function FJ($){await r0($,"beforeMount"),$.isMounted=!0,await r0($,"mounted")}async function zJ($){if(!$.isMounted||$.isUnmounted)return;await r0($,"beforeUpdate"),await r0($,"updated")}async function jJ($){if($.isUnmounted)return;await r0($,"beforeUnmount");for(let X of $.scope.cleanups)X();$.isUnmounted=!0,await r0($,"unmounted")}function HJ(){return`
|
|
3
3
|
<script data-stx-client-runtime>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -685,7 +685,7 @@ else {
|
|
|
685
685
|
<span class="frontmatter-label">${X}:</span>
|
|
686
686
|
<span>${Array.isArray(Q)?Q.join(", "):String(Q)}</span>
|
|
687
687
|
</div>`).join("")}
|
|
688
|
-
</div>`}import X6 from"net";async function s3($){return new Promise((X)=>{let Q=X6.createServer();Q.once("error",()=>X(!1)),Q.once("listening",()=>{Q.close(()=>X(!0))}),Q.listen($,"0.0.0.0")})}async function n3($){return new Promise((X)=>{let Q=X6.createServer();Q.once("error",()=>X(!1)),Q.once("listening",()=>{Q.close(()=>X(!0))}),Q.listen($,"::")})}async function o3($){if(!await s3($))return!1;return await n3($)}async function x0($,X=20){$=Number($);for(let Q=0;Q<X;Q++){let Z=$+Q;if(await o3(Z))return Z}throw Error(`Could not find an available port between ${$} and ${$+X-1}`)}var t3={title:"stx Development",width:1400,height:900,darkMode:!0,hotReload:!0,titlebarHidden:!1,nativeSidebar:!1,sidebarWidth:260,sidebarConfig:void 0};async function e3(){try{let $=await import("./chunk-
|
|
688
|
+
</div>`}import X6 from"net";async function s3($){return new Promise((X)=>{let Q=X6.createServer();Q.once("error",()=>X(!1)),Q.once("listening",()=>{Q.close(()=>X(!0))}),Q.listen($,"0.0.0.0")})}async function n3($){return new Promise((X)=>{let Q=X6.createServer();Q.once("error",()=>X(!1)),Q.once("listening",()=>{Q.close(()=>X(!0))}),Q.listen($,"::")})}async function o3($){if(!await s3($))return!1;return await n3($)}async function x0($,X=20){$=Number($);for(let Q=0;Q<X;Q++){let Z=$+Q;if(await o3(Z))return Z}throw Error(`Could not find an available port between ${$} and ${$+X-1}`)}var t3={title:"stx Development",width:1400,height:900,darkMode:!0,hotReload:!0,titlebarHidden:!1,nativeSidebar:!1,sidebarWidth:260,sidebarConfig:void 0};async function e3(){try{let $=await import("./chunk-5hpp0vzz.js");if(typeof $.openDevWindow!=="function")return null;return $}catch{return null}}async function n0($,X={}){let Q={...t3,...X},Z=await e3();if(!Z)return console.log(`${B.yellow}\u26A0${B.reset} Native window requested, but @stacksjs/desktop is not available.`),console.log(" Install & build the desktop package to enable --native."),!1;try{let Y=await Z.openDevWindow($,{title:Q.title,width:Q.width,height:Q.height,darkMode:Q.darkMode,hotReload:Q.hotReload,titlebarHidden:Q.titlebarHidden,nativeSidebar:Q.nativeSidebar,sidebarWidth:Q.sidebarWidth,sidebarConfig:Q.sidebarConfig});if(Y&&Q.nativeSidebar)console.log(`${B.green}\u2713${B.reset} Native sidebar enabled (macOS Tahoe style)`);return Y}catch(Y){return console.log(`${B.red}\u2717${B.reset} Could not open native window:`,Y),!1}}function l1($){if($.match(/<Sidebar[\s\S]*?variant=["'](?:tahoe|vibrancy|desktop)["'][\s\S]*?\/>/i)){let Y=$.match(/<script\s+server[^>]*>([\s\S]*?)<\/script>/i);if(Y){let J=Y[1];try{let G=`
|
|
689
689
|
${J}
|
|
690
690
|
return typeof sidebarConfig !== 'undefined' ? sidebarConfig : null;
|
|
691
691
|
`,K=Function(G)();if(K)return K}catch(G){console.warn("Invalid sidebarConfig:",G)}}return{sections:[]}}let Q=$.match(/@nativeSidebar\s*\(\s*(\{[\s\S]*?\})\s*\)/m);if(Q)try{return JSON.parse(Q[1])}catch{console.warn("Invalid @nativeSidebar configuration")}let Z=$.match(/<script\s+native-sidebar[^>]*>([\s\S]*?)<\/script>/i);if(Z)try{let Y=Z[1].match(/(?:export\s+(?:default\s+)?|const\s+\w+\s*=\s*)(\{[\s\S]*\})/m);if(Y)return Function(`return ${Y[1]}`)()}catch(Y){console.warn("Invalid native-sidebar script configuration:",Y)}return}function h$(){console.log(`
|
|
@@ -1120,7 +1120,7 @@ ${O}`}if(j=await J6(j),W.forEach((L)=>Z.add(L)),Q.cache&&Q.cachePath){if(await e
|
|
|
1120
1120
|
<h1>Something went wrong</h1>
|
|
1121
1121
|
<p>An internal error occurred. Please try again later.</p>
|
|
1122
1122
|
</body>
|
|
1123
|
-
</html>`,loader:"html"}}})}};async function W4($,X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=$0.resolve($);if(!F0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return u$(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=S0(process.cwd(),"output");F0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let q={name:"public-assets",setup(E){E.onResolve({filter:/^\/(images|fonts|assets|public)\//},(w)=>{return{path:w.path,external:!0}})}},M=await Bun.build({entrypoints:[W],outdir:K,plugins:[q,e0],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!M.success)return console.error(`${B.red}Build failed:${B.reset}`,M.logs),!1;let V=M.outputs.find((E)=>E.path.endsWith(".html"));if(!V)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(V.path).text(),!0}catch(q){return console.error(`${B.red}Error building stx file:${B.reset}`,q),!1}};if(!await U())return!1;let F=$0.dirname(W);await X$(F);let H=Q;try{if(H=await x0(Q),H!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${H} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let q=X.hmrPort||H+1;J=s1({wsPort:q,verbose:!1}),G=J.start(q)}let j={},L=null;try{let{loadStxConfig:q}=await import("./chunk-
|
|
1123
|
+
</html>`,loader:"html"}}})}};async function W4($,X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=$0.resolve($);if(!F0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return u$(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=S0(process.cwd(),"output");F0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let q={name:"public-assets",setup(E){E.onResolve({filter:/^\/(images|fonts|assets|public)\//},(w)=>{return{path:w.path,external:!0}})}},M=await Bun.build({entrypoints:[W],outdir:K,plugins:[q,e0],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!M.success)return console.error(`${B.red}Build failed:${B.reset}`,M.logs),!1;let V=M.outputs.find((E)=>E.path.endsWith(".html"));if(!V)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(V.path).text(),!0}catch(q){return console.error(`${B.red}Error building stx file:${B.reset}`,q),!1}};if(!await U())return!1;let F=$0.dirname(W);await X$(F);let H=Q;try{if(H=await x0(Q),H!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${H} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let q=X.hmrPort||H+1;J=s1({wsPort:q,verbose:!1}),G=J.start(q)}let j={},L=null;try{let{loadStxConfig:q}=await import("./chunk-xdxhz4h3.js"),M=await q();if(M?.apiRouter)L=M?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(M?.apiRoutes){j=M.apiRoutes;let V=Object.keys(j).length;if(V>0)console.log(`${B.blue}Loaded ${B.bright}${V} API route${V>1?"s":""}${B.reset}`)}if(M?.broadcasting?.enabled)try{let{startBroadcasting:V,loadChannels:N}=await import("./chunk-nenge2m2.js"),E=M.broadcasting;await V(E);let w=E.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${w}/ws${B.reset}`);let C=$0.join(process.cwd(),"channels.ts");if(F0.existsSync(C))try{let R=await N(C);console.log(`${B.blue}Loaded ${B.bright}${R} broadcast channel${R!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(R){console.warn(`${B.yellow}Failed to load channels.ts: ${R.message}${B.reset}`)}}catch(V){console.warn(`${B.yellow}Broadcasting failed to start: ${V.message}${B.reset}`)}}catch{}if(console.log(`${B.blue}Starting server on ${B.cyan}http://localhost:${H}/${B.reset}...`),Y)console.log(`${B.magenta}Hot reload enabled on ws://localhost:${G}${B.reset}`);let O=G4({port:H,async fetch(q){return Z$(q,await(async()=>{let M=new URL(q.url);if(L)try{let C=await L.handleRequest(q);if(C.status!==404)return C}catch{}if(j[M.pathname])try{return await j[M.pathname](q)}catch(C){return new Response(JSON.stringify({error:C.message}),{status:500,headers:{"Content-Type":"application/json"}})}if(M.pathname==="/")return(async()=>{let R=await s(_||"");if(Y)R=I0(R,G);if(X.native)if(R.includes("<head>"))R=R.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else if(R.includes("<html"))R=R.replace(/(<html[^>]*>)/,"$1<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>");else R="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+R;if(X.titlebarHidden)if(R.includes("<head>"))R=R.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else if(R.includes("<html"))R=R.replace(/(<html[^>]*>)/,"$1<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>");else R=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${R}`;return R})().then((R)=>new Response(R,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}}));let V=$0.join(K,M.pathname);if(F0.existsSync(V)&&F0.statSync(V).isFile()){let C=Bun.file(V),R=$0.extname(V).toLowerCase(),I="text/plain";if(R===".ts"||R===".tsx"){let m=new Bun.Transpiler({loader:R===".tsx"?"tsx":"ts"}),h=await C.text(),E0=m.transformSync(h);return new Response(E0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(R){case".html":I="text/html";break;case".css":I="text/css";break;case".js":I="text/javascript";break;case".json":I="application/json";break;case".png":I="image/png";break;case".jpg":case".jpeg":I="image/jpeg";break;case".gif":I="image/gif";break;case".woff":I="font/woff";break;case".woff2":I="font/woff2";break;case".ttf":I="font/ttf";break;case".otf":I="font/otf";break;case".eot":I="application/vnd.ms-fontobject";break}return new Response(C,{headers:{"Content-Type":I}})}let N=$0.dirname(W),E=$0.join(N,M.pathname);if(F0.existsSync(E)&&F0.statSync(E).isFile()){let C=Bun.file(E),R=$0.extname(E).toLowerCase(),I="text/plain";if(R===".ts"||R===".tsx"){let m=new Bun.Transpiler({loader:R===".tsx"?"tsx":"ts"}),h=await C.text(),E0=m.transformSync(h);return new Response(E0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(R){case".html":I="text/html";break;case".css":I="text/css";break;case".js":I="text/javascript";break;case".json":I="application/json";break;case".png":I="image/png";break;case".jpg":case".jpeg":I="image/jpeg";break;case".gif":I="image/gif";break;case".svg":I="image/svg+xml";break;case".ico":I="image/x-icon";break;case".woff":I="font/woff";break;case".woff2":I="font/woff2";break;case".ttf":I="font/ttf";break;case".otf":I="font/otf";break;case".eot":I="application/vnd.ms-fontobject";break}return new Response(C,{headers:{"Content-Type":I}})}let w=$0.join(process.cwd(),"public",M.pathname);if(F0.existsSync(w)&&F0.statSync(w).isFile()){let C=Bun.file(w),R=$0.extname(w).toLowerCase(),I="application/octet-stream";if(R===".ts"||R===".tsx"){let m=new Bun.Transpiler({loader:R===".tsx"?"tsx":"ts"}),h=await C.text(),E0=m.transformSync(h);return new Response(E0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(R){case".html":I="text/html";break;case".css":I="text/css";break;case".js":I="text/javascript";break;case".json":I="application/json";break;case".png":I="image/png";break;case".jpg":case".jpeg":I="image/jpeg";break;case".gif":I="image/gif";break;case".svg":I="image/svg+xml";break;case".ico":I="image/x-icon";break;case".woff":I="font/woff";break;case".woff2":I="font/woff2";break;case".ttf":I="font/ttf";break;case".otf":I="font/otf";break;case".eot":I="application/vnd.ms-fontobject";break}return new Response(C,{headers:{"Content-Type":I}})}return new Response("Not Found",{status:404})})())},error(q){return new Response(`<pre>${q}
|
|
1124
1124
|
${q.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),console.log(`
|
|
1125
1125
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1126
1126
|
${B.bright}\u2192 ${B.cyan}http://localhost:${H}/${B.reset}`),console.log(`
|
|
@@ -1607,7 +1607,7 @@ ${j.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),con
|
|
|
1607
1607
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1608
1608
|
${B.bright}\u2192 ${B.cyan}http://localhost:${U}/${B.reset}`),console.log(`
|
|
1609
1609
|
${B.yellow}Routes:${B.reset}`);let F=new Set(W.map((j)=>j.routeTemplate)),H=Object.entries(G).filter(([j])=>!F.has(j)).sort(([j],[L])=>j.localeCompare(L)).map(([j,L])=>({route:j==="/"?"/":j,filePath:t.relative(process.cwd(),L.filePath),fileType:L.fileType}));for(let j of W){let L=j.routeTemplate.replace(/\[([^\]]+)\]/g,":$1");H.push({route:L,filePath:t.relative(process.cwd(),j.filePath),fileType:"stx"})}if(H.sort((j,L)=>j.route.localeCompare(L.route)),H.forEach((j,L)=>{let A=L===H.length-1?"\u2514\u2500 ":"\u251C\u2500 ",q=j.fileType==="md"?`${B.magenta}(markdown)${B.reset}`:"";console.log(` ${B.green}${A}${j.route}${B.reset} \u2192 ${B.bright}${j.filePath}${B.reset} ${q}`)}),console.log(`
|
|
1610
|
-
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),k0(z.url.toString(),()=>{if(Z)P0.watch(J,{recursive:!0}).close();z.stop()}),Z){console.log(`${B.blue}Watching for changes...${B.reset}`);let j=P0.watch(J,{recursive:!0},async(L,O)=>{if(!O)return;if(O.endsWith(".stx")||O.endsWith(".js")||O.endsWith(".ts")||O.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${O}${B.yellow} changed, rebuilding...${B.reset}`),m0.clear(),p0(),await K()});process.on("SIGINT",()=>{j.close(),z.stop(),process.exit(0)})}return!0}function W6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:U4}=globalThis.Bun;import X0 from"fs";import g from"path";async function B6($){try{return v$(await Bun.file($).text())}catch{return}}function i$($){let X=Bun.file($),Q=g.extname($).toLowerCase(),Z={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Q)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Z[Q]||"application/octet-stream",...J}})}async function B4($=".",X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=g.resolve($),{loadStxConfig:K}=await import("./chunk-macr4195.js"),_=await K(W),U=_.root&&_.root!=="."?g.join(W,_.root):W,z=X.pagesDir||_.pagesDir||"pages",F=g.join(U,z);if(!X0.existsSync(F))return console.error(`${B.red}Error: No '${z}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${F}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${z}/index.stx for the homepage.${B.reset}`),!1;let H=r$(U,{pagesDir:z});if(H.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${F}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${H.length}${B.blue} routes${B.reset}`);let j=_?._pluginPageDirs||[],L=[];for(let{dir:D,prefix:T}of j)if(X0.existsSync(D)){let b=r$(g.dirname(D),{pagesDir:g.basename(D)});for(let S of b){let y=T==="/"?S.pattern:`${T}${S.pattern==="/"?"":S.pattern}`;L.push({route:{...S,pattern:y},prefix:T})}if(b.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${b.length}${B.blue} routes at ${B.cyan}${T}${B.reset}`)}let O=new Map,A=null,q=null;if(X.stxOptions?.shell!==!1){if(q=await I6(W,X.stxOptions?.shell),q){if(A=await s$(q,X.stxOptions||{}),A)console.log(`${B.blue}Using app shell: ${B.bright}${g.relative(W,q)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}z6(),await H6(W);let M=j6();if(M.length>0)console.log(`${B.blue}Loaded ${B.bright}${M.length}${B.blue} middleware: ${B.dim}${M.join(", ")}${B.reset}`);let V={},N=null;try{let{loadStxConfig:D}=await import("./chunk-macr4195.js"),T=await D(W);if(T?.apiRouter)N=T?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(T?.apiRoutes){V=T.apiRoutes;let b=Object.keys(V).length;if(b>0)console.log(`${B.blue}Loaded ${B.bright}${b} API route${b>1?"s":""}${B.reset}`)}if(T?.broadcasting?.enabled)try{let{startBroadcasting:b,loadChannels:S}=await import("./chunk-nenge2m2.js"),y=T.broadcasting;await b(y);let G0=y.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${G0}/ws${B.reset}`);let Y0=g.join(process.cwd(),"channels.ts");if(X0.existsSync(Y0))try{let T0=await S(Y0);console.log(`${B.blue}Loaded ${B.bright}${T0} broadcast channel${T0!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(T0){console.warn(`${B.yellow}Failed to load channels.ts: ${T0.message}${B.reset}`)}}catch(b){console.warn(`${B.yellow}Broadcasting failed to start: ${b.message}${B.reset}`)}}catch{}let E=S0(W,"output");X0.mkdirSync(E,{recursive:!0});let w=new Map,C=new Set,R=async(D)=>{let T=L6(F,D);if(!T)return null;try{let b=await Bun.build({entrypoints:[T],outdir:E,plugins:[e0],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!b.success)return null;let S=b.outputs.find((y)=>y.path.endsWith(".html"));if(!S)return null;return await Bun.file(S.path).text()}catch{return null}},I=async(D,T)=>{try{let{processDirectives:b,extractVariables:S,defaultConfig:y,loadStxConfig:G0,injectRouterScript:Y0}=await import("./chunk-macr4195.js"),{checkCache:T0,cacheTemplate:S$,readFileCached:r,templateCache:S1}=await import("./chunk-n4v5733m.js"),P1=await G0(W),x=(u)=>{if(!u)return u;if(g.isAbsolute(u))return u;return g.resolve(W,u)},v={...y,...P1,...X.stxOptions,autoShell:!0};if(X.debugDirectives)v.debug=!0;v.partialsDir=x(v.partialsDir),v.componentsDir=x(v.componentsDir),v.layoutsDir=x(v.layoutsDir),v.storesDir=x(v.storesDir||"stores"),v.cachePath=x(v.cachePath)??S0(W,"cache");let p=!T&&!X.profile,d=v.cache!==!1;if(d&&p){let u=S1.get(D.filePath);if(u)try{if((await X0.promises.stat(D.filePath)).mtime.getTime()<=u.mtime){let C0=!0;for(let n of u.dependencies){if(!X0.existsSync(n)){C0=!1;break}if((await X0.promises.stat(n)).mtime.getTime()>u.mtime){C0=!1;break}}if(C0){let n=u.output;if(A)n=J$(n,{preserveHead:!0});return{route:D,content:n,status:await B6(D.filePath)}}}}catch{}let _0=await T0(D.filePath,v);if(_0){let U0=_0;if(A)U0=J$(U0,{preserveHead:!0});return{route:D,content:U0,status:await B6(D.filePath)}}}let k=d?await r(D.filePath):await Bun.file(D.filePath).text(),W0=v$(k),{classifyAllScripts:j0}=await import("./chunk-macr4195.js"),l=j0(k),J0=l.server.map((u)=>u.content),H0=k;for(let u of l.server)H0=H0.replace(u.fullTag,"");let K0={__filename:D.filePath,__dirname:g.dirname(D.filePath),params:T??{},__stx_runtime_head:{}};for(let u of J0)try{await S(u,K0,D.filePath)}catch(_0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",D.filePath,_0?.message||_0)}let P$=new Set,O0;if(X.profile){let u=performance.now();O0=await b(H0,K0,D.filePath,v,P$);let _0=performance.now()-u,U0=g.relative(W,D.filePath)||D.filePath;console.log(`[stx:profile] ${U0} \u2192 ${_0.toFixed(2)}ms`)}else O0=await b(H0,K0,D.filePath,v,P$);if(!A)O0=await Y0(O0,{router:v.router});{let{interpolateScriptExpressions:u}=await import("./chunk-gfgpf7h8.js");O0=O0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(_0,U0,C0)=>{if(!/function\s+__stx_setup_/.test(C0))return _0;return`<script${U0}>${u(C0,K0)}</script>`})}if(A)O0=J$(O0,{preserveHead:!0});if(d&&p)await S$(D.filePath,O0,P$,v);let{extractStreamBoundaries:p7}=await import("./chunk-a438xffx.js"),a0=p7(K0),B1=K0.__streamTemplates;if(B1&&typeof B1==="object"&&Object.keys(B1).length>0){let u=K0.streamBoundaries||{},_0={...v,autoShell:!1},U0=Object.keys(B1).map((n)=>({id:n,render:async()=>{let P5=typeof u[n]==="function"?await u[n]():void 0;return b(B1[n],{...K0,$boundary:P5},D.filePath,_0,new Set)}})),C0=new Set(U0.map((n)=>n.id));a0=[...(a0||[]).filter((n)=>!C0.has(n.id)),...U0]}if(a0&&a0.length>0)C.add(D.pattern);else a0=void 0;return{route:D,content:O0,status:W0,boundaries:a0}}catch(b){return console.error(`${B.red}Error building ${B.bright}${D.pattern}${B.reset}:`,b),null}},m=8,h=async()=>{w.clear(),O.clear();for(let D=0;D<H.length;D+=m){let T=H.slice(D,D+m),b=await Promise.all(T.map((S)=>I(S)));for(let S of b)if(S)w.set(S.route.pattern,S)}for(let D=0;D<L.length;D+=m){let T=L.slice(D,D+m),b=await Promise.all(T.map(({route:S})=>I(S)));for(let S of b)if(S)O.set(S.route.pattern,S)}return w.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await h())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await X$(W);let R0=Q;try{if(R0=await x0(Q),R0!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${R0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let D=X.hmrPort||R0+1;J=s1({wsPort:D,verbose:!1}),G=J.start(D)}let d0=(D,T)=>{let S=`<script data-stx-route-params>(function(){var p=${JSON.stringify(T).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(D.includes("</head>"))return D.replace("</head>",`${S}</head>`);if(D.includes("<body"))return D.replace(/<body([^>]*)>/,`<body$1>${S}`);return S+D};console.log(`${B.blue}Starting server...${B.reset}`);let k1=U4({port:R0,async fetch(D){let T=new URL(D.url),b=_?.publicDir||"public",S=g.join(W,b,T.pathname),y=g.join(W,T.pathname),G0=g.join(E,T.pathname),[Y0,T0,S$]=await Promise.all([X0.promises.stat(S).catch(()=>null),X0.promises.stat(y).catch(()=>null),X0.promises.stat(G0).catch(()=>null)]);if(Y0?.isFile())return i$(S);if(T0?.isFile())return i$(y);if(S$?.isFile())return i$(G0);if(T.pathname.startsWith("/_stx/component/")){let x=decodeURIComponent(T.pathname.slice(16));if(x)try{let v=`<${x} />`,p={...buildConfig,autoShell:!1},d=await processDirectives(v,{},g.join(W,"components",`${x}.stx`),p,new Set);return new Response(d,{headers:{"Content-Type":"text/html"}})}catch(v){return new Response(`<div class="stx-async-error">${v.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(T.pathname==="/_stx/img"){let{handleImageRequest:x}=await import("./chunk-xz019t7t.js"),v=await x(D,{publicDir:g.join(W,b),cacheDir:S0(W,"cache","img")});if(v)return v}if(N)try{let x=await N.handleRequest(D);if(x.status!==404)return x}catch{}if(V[T.pathname])try{return await V[T.pathname](D)}catch(x){return new Response(JSON.stringify({error:x.message}),{status:500,headers:{"Content-Type":"application/json"}})}let r=a$(T.pathname,H);if(r){let x=w.get(r.route.pattern),v=C.has(r.route.pattern);if(r.route.isDynamic&&Object.keys(r.params).length>0||v){let p=await I(r.route,r.params);if(p)x=p}if(x){let p=x.status??200,d=(r.route.filePath?M6(await Bun.file(r.route.filePath).text().catch(()=>"")):null)??{};if(d.validate){if(!await d.validate({params:r.params})){let j0=await R(404);if(j0){let l=j0;if(l=await s(l,W),Y)l=I0(l,G);return new Response(l,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(d.middleware){let W0=O6(T.pathname,r.params,d,T.search),j0=A6(W0,null,D,{isServer:!0}),l=await q6(d.middleware,j0);if(l.redirect){let J0=l.redirect.path,H0=l.redirect.options.redirectCode||302,K0=new Headers(l.responseHeaders);return K0.set("Location",J0),new Response(null,{status:H0,headers:K0})}if(l.abort){let{statusCode:J0,message:H0}=l.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${J0}</title></head><body><h1>Error ${J0}</h1><p>${H0}</p></body></html>`,{status:J0,headers:{"Content-Type":"text/html"}})}if(Object.keys(l.state).length>0){let J0=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(l.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;x.content=x.content.replace("</head>",`${J0}</head>`)}}let k=x.content;if(A&&D6(D)){let W0=N6(k),j0=R6(k),l=k.match(/<title[^>]*>([\s\S]*?)<\/title>/i),J0=l?l[1].trim():"";if(Object.keys(r.params).length>0)k=d0(k,r.params);k=await s(k,W);let H0=_?.router?.container||"main";return k=w6(k,H0),new Response(k,{status:p,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":W0.layout,"X-STX-Layout-Group":W0.group,"X-STX-Runtime":j0?"true":"false",...J0&&{"X-STX-Title":encodeURIComponent(J0)},[V6]:E6(),"Cache-Control":"no-store, no-cache, must-revalidate"}})}if(A)k=Y$(A,k);if(Object.keys(r.params).length>0)k=d0(k,r.params);if(k=await s(k,W),Y)k=I0(k,G);if(X.native)if(k.includes("<head>"))k=k.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else k="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+k;if(X.titlebarHidden)if(k.includes("<head>"))k=k.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else k=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${k}`;if(x.boundaries&&x.boundaries.length>0){let{renderStreamingPage:W0,streamToResponse:j0}=await import("./chunk-a438xffx.js");return j0(W0(k,x.boundaries,{timeoutMs:30000}),{status:p,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(k,{status:p,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}if(L.length>0){let x=L.map((p)=>p.route),v=a$(T.pathname,x);if(v){let p=O.get(v.route.pattern);if(p){let d=p.content;if(A)d=Y$(A,d);if(Object.keys(v.params).length>0)d=d0(d,v.params);if(d=await s(d,W),Y)d=I0(d,G);return new Response(d,{status:p.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:p}of j)if(p!=="/"&&T.pathname.startsWith(p)){let d=O.get(p)||O.get(p+"/");if(d){let k=d.content;if(A)k=Y$(A,k);if(k=await s(k,W),Y)k=I0(k,G);return new Response(k,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let S1=w.get("/");if(S1){let x=S1.content;if(x=await s(x,W),Y)x=I0(x,G);if(X.native)if(x.includes("<head>"))x=x.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else x="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+x;return new Response(x,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let P1=await R(404);if(P1){let x=P1;if(x=await s(x,W),Y)x=I0(x,G);return new Response(x,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(D){let T=await R(500);if(T)return new Response(T,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${D}
|
|
1610
|
+
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),k0(z.url.toString(),()=>{if(Z)P0.watch(J,{recursive:!0}).close();z.stop()}),Z){console.log(`${B.blue}Watching for changes...${B.reset}`);let j=P0.watch(J,{recursive:!0},async(L,O)=>{if(!O)return;if(O.endsWith(".stx")||O.endsWith(".js")||O.endsWith(".ts")||O.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${O}${B.yellow} changed, rebuilding...${B.reset}`),m0.clear(),p0(),await K()});process.on("SIGINT",()=>{j.close(),z.stop(),process.exit(0)})}return!0}function W6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:U4}=globalThis.Bun;import X0 from"fs";import g from"path";async function B6($){try{return v$(await Bun.file($).text())}catch{return}}function i$($){let X=Bun.file($),Q=g.extname($).toLowerCase(),Z={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Q)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Z[Q]||"application/octet-stream",...J}})}async function B4($=".",X={}){let Q=X.port||3000,Z=X.watch!==!1,Y=X.hotReload!==!1&&Z,J=null,G=X.hmrPort||Q+1,W=g.resolve($),{loadStxConfig:K}=await import("./chunk-xdxhz4h3.js"),_=await K(W),U=_.root&&_.root!=="."?g.join(W,_.root):W,z=X.pagesDir||_.pagesDir||"pages",F=g.join(U,z);if(!X0.existsSync(F))return console.error(`${B.red}Error: No '${z}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${F}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${z}/index.stx for the homepage.${B.reset}`),!1;let H=r$(U,{pagesDir:z});if(H.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${F}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${H.length}${B.blue} routes${B.reset}`);let j=_?._pluginPageDirs||[],L=[];for(let{dir:D,prefix:T}of j)if(X0.existsSync(D)){let b=r$(g.dirname(D),{pagesDir:g.basename(D)});for(let S of b){let y=T==="/"?S.pattern:`${T}${S.pattern==="/"?"":S.pattern}`;L.push({route:{...S,pattern:y},prefix:T})}if(b.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${b.length}${B.blue} routes at ${B.cyan}${T}${B.reset}`)}let O=new Map,A=null,q=null;if(X.stxOptions?.shell!==!1){if(q=await I6(W,X.stxOptions?.shell),q){if(A=await s$(q,X.stxOptions||{}),A)console.log(`${B.blue}Using app shell: ${B.bright}${g.relative(W,q)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}z6(),await H6(W);let M=j6();if(M.length>0)console.log(`${B.blue}Loaded ${B.bright}${M.length}${B.blue} middleware: ${B.dim}${M.join(", ")}${B.reset}`);let V={},N=null;try{let{loadStxConfig:D}=await import("./chunk-xdxhz4h3.js"),T=await D(W);if(T?.apiRouter)N=T?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(T?.apiRoutes){V=T.apiRoutes;let b=Object.keys(V).length;if(b>0)console.log(`${B.blue}Loaded ${B.bright}${b} API route${b>1?"s":""}${B.reset}`)}if(T?.broadcasting?.enabled)try{let{startBroadcasting:b,loadChannels:S}=await import("./chunk-nenge2m2.js"),y=T.broadcasting;await b(y);let G0=y.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${G0}/ws${B.reset}`);let Y0=g.join(process.cwd(),"channels.ts");if(X0.existsSync(Y0))try{let T0=await S(Y0);console.log(`${B.blue}Loaded ${B.bright}${T0} broadcast channel${T0!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(T0){console.warn(`${B.yellow}Failed to load channels.ts: ${T0.message}${B.reset}`)}}catch(b){console.warn(`${B.yellow}Broadcasting failed to start: ${b.message}${B.reset}`)}}catch{}let E=S0(W,"output");X0.mkdirSync(E,{recursive:!0});let w=new Map,C=new Set,R=async(D)=>{let T=L6(F,D);if(!T)return null;try{let b=await Bun.build({entrypoints:[T],outdir:E,plugins:[e0],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!b.success)return null;let S=b.outputs.find((y)=>y.path.endsWith(".html"));if(!S)return null;return await Bun.file(S.path).text()}catch{return null}},I=async(D,T)=>{try{let{processDirectives:b,extractVariables:S,defaultConfig:y,loadStxConfig:G0,injectRouterScript:Y0}=await import("./chunk-xdxhz4h3.js"),{checkCache:T0,cacheTemplate:S$,readFileCached:r,templateCache:S1}=await import("./chunk-n4v5733m.js"),P1=await G0(W),x=(u)=>{if(!u)return u;if(g.isAbsolute(u))return u;return g.resolve(W,u)},v={...y,...P1,...X.stxOptions,autoShell:!0};if(X.debugDirectives)v.debug=!0;v.partialsDir=x(v.partialsDir),v.componentsDir=x(v.componentsDir),v.layoutsDir=x(v.layoutsDir),v.storesDir=x(v.storesDir||"stores"),v.cachePath=x(v.cachePath)??S0(W,"cache");let p=!T&&!X.profile,d=v.cache!==!1;if(d&&p){let u=S1.get(D.filePath);if(u)try{if((await X0.promises.stat(D.filePath)).mtime.getTime()<=u.mtime){let C0=!0;for(let n of u.dependencies){if(!X0.existsSync(n)){C0=!1;break}if((await X0.promises.stat(n)).mtime.getTime()>u.mtime){C0=!1;break}}if(C0){let n=u.output;if(A)n=J$(n,{preserveHead:!0});return{route:D,content:n,status:await B6(D.filePath)}}}}catch{}let _0=await T0(D.filePath,v);if(_0){let U0=_0;if(A)U0=J$(U0,{preserveHead:!0});return{route:D,content:U0,status:await B6(D.filePath)}}}let k=d?await r(D.filePath):await Bun.file(D.filePath).text(),W0=v$(k),{classifyAllScripts:j0}=await import("./chunk-xdxhz4h3.js"),l=j0(k),J0=l.server.map((u)=>u.content),H0=k;for(let u of l.server)H0=H0.replace(u.fullTag,"");let K0={__filename:D.filePath,__dirname:g.dirname(D.filePath),params:T??{},__stx_runtime_head:{}};for(let u of J0)try{await S(u,K0,D.filePath)}catch(_0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",D.filePath,_0?.message||_0)}let P$=new Set,O0;if(X.profile){let u=performance.now();O0=await b(H0,K0,D.filePath,v,P$);let _0=performance.now()-u,U0=g.relative(W,D.filePath)||D.filePath;console.log(`[stx:profile] ${U0} \u2192 ${_0.toFixed(2)}ms`)}else O0=await b(H0,K0,D.filePath,v,P$);if(!A)O0=await Y0(O0,{router:v.router});{let{interpolateScriptExpressions:u}=await import("./chunk-gfgpf7h8.js");O0=O0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(_0,U0,C0)=>{if(!/function\s+__stx_setup_/.test(C0))return _0;return`<script${U0}>${u(C0,K0)}</script>`})}if(A)O0=J$(O0,{preserveHead:!0});if(d&&p)await S$(D.filePath,O0,P$,v);let{extractStreamBoundaries:p7}=await import("./chunk-a438xffx.js"),a0=p7(K0),B1=K0.__streamTemplates;if(B1&&typeof B1==="object"&&Object.keys(B1).length>0){let u=K0.streamBoundaries||{},_0={...v,autoShell:!1},U0=Object.keys(B1).map((n)=>({id:n,render:async()=>{let P5=typeof u[n]==="function"?await u[n]():void 0;return b(B1[n],{...K0,$boundary:P5},D.filePath,_0,new Set)}})),C0=new Set(U0.map((n)=>n.id));a0=[...(a0||[]).filter((n)=>!C0.has(n.id)),...U0]}if(a0&&a0.length>0)C.add(D.pattern);else a0=void 0;return{route:D,content:O0,status:W0,boundaries:a0}}catch(b){return console.error(`${B.red}Error building ${B.bright}${D.pattern}${B.reset}:`,b),null}},m=8,h=async()=>{w.clear(),O.clear();for(let D=0;D<H.length;D+=m){let T=H.slice(D,D+m),b=await Promise.all(T.map((S)=>I(S)));for(let S of b)if(S)w.set(S.route.pattern,S)}for(let D=0;D<L.length;D+=m){let T=L.slice(D,D+m),b=await Promise.all(T.map(({route:S})=>I(S)));for(let S of b)if(S)O.set(S.route.pattern,S)}return w.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await h())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await X$(W);let R0=Q;try{if(R0=await x0(Q),R0!==Q)console.log(`${B.yellow}Port ${Q} is busy, using port ${R0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let D=X.hmrPort||R0+1;J=s1({wsPort:D,verbose:!1}),G=J.start(D)}let d0=(D,T)=>{let S=`<script data-stx-route-params>(function(){var p=${JSON.stringify(T).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(D.includes("</head>"))return D.replace("</head>",`${S}</head>`);if(D.includes("<body"))return D.replace(/<body([^>]*)>/,`<body$1>${S}`);return S+D};console.log(`${B.blue}Starting server...${B.reset}`);let k1=U4({port:R0,async fetch(D){let T=new URL(D.url),b=_?.publicDir||"public",S=g.join(W,b,T.pathname),y=g.join(W,T.pathname),G0=g.join(E,T.pathname),[Y0,T0,S$]=await Promise.all([X0.promises.stat(S).catch(()=>null),X0.promises.stat(y).catch(()=>null),X0.promises.stat(G0).catch(()=>null)]);if(Y0?.isFile())return i$(S);if(T0?.isFile())return i$(y);if(S$?.isFile())return i$(G0);if(T.pathname.startsWith("/_stx/component/")){let x=decodeURIComponent(T.pathname.slice(16));if(x)try{let v=`<${x} />`,p={...buildConfig,autoShell:!1},d=await processDirectives(v,{},g.join(W,"components",`${x}.stx`),p,new Set);return new Response(d,{headers:{"Content-Type":"text/html"}})}catch(v){return new Response(`<div class="stx-async-error">${v.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(T.pathname==="/_stx/img"){let{handleImageRequest:x}=await import("./chunk-xz019t7t.js"),v=await x(D,{publicDir:g.join(W,b),cacheDir:S0(W,"cache","img")});if(v)return v}if(N)try{let x=await N.handleRequest(D);if(x.status!==404)return x}catch{}if(V[T.pathname])try{return await V[T.pathname](D)}catch(x){return new Response(JSON.stringify({error:x.message}),{status:500,headers:{"Content-Type":"application/json"}})}let r=a$(T.pathname,H);if(r){let x=w.get(r.route.pattern),v=C.has(r.route.pattern);if(r.route.isDynamic&&Object.keys(r.params).length>0||v){let p=await I(r.route,r.params);if(p)x=p}if(x){let p=x.status??200,d=(r.route.filePath?M6(await Bun.file(r.route.filePath).text().catch(()=>"")):null)??{};if(d.validate){if(!await d.validate({params:r.params})){let j0=await R(404);if(j0){let l=j0;if(l=await s(l,W),Y)l=I0(l,G);return new Response(l,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(d.middleware){let W0=O6(T.pathname,r.params,d,T.search),j0=A6(W0,null,D,{isServer:!0}),l=await q6(d.middleware,j0);if(l.redirect){let J0=l.redirect.path,H0=l.redirect.options.redirectCode||302,K0=new Headers(l.responseHeaders);return K0.set("Location",J0),new Response(null,{status:H0,headers:K0})}if(l.abort){let{statusCode:J0,message:H0}=l.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${J0}</title></head><body><h1>Error ${J0}</h1><p>${H0}</p></body></html>`,{status:J0,headers:{"Content-Type":"text/html"}})}if(Object.keys(l.state).length>0){let J0=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(l.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;x.content=x.content.replace("</head>",`${J0}</head>`)}}let k=x.content;if(A&&D6(D)){let W0=N6(k),j0=R6(k),l=k.match(/<title[^>]*>([\s\S]*?)<\/title>/i),J0=l?l[1].trim():"";if(Object.keys(r.params).length>0)k=d0(k,r.params);k=await s(k,W);let H0=_?.router?.container||"main";return k=w6(k,H0),new Response(k,{status:p,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":W0.layout,"X-STX-Layout-Group":W0.group,"X-STX-Runtime":j0?"true":"false",...J0&&{"X-STX-Title":encodeURIComponent(J0)},[V6]:E6(),"Cache-Control":"no-store, no-cache, must-revalidate"}})}if(A)k=Y$(A,k);if(Object.keys(r.params).length>0)k=d0(k,r.params);if(k=await s(k,W),Y)k=I0(k,G);if(X.native)if(k.includes("<head>"))k=k.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else k="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+k;if(X.titlebarHidden)if(k.includes("<head>"))k=k.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else k=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${k}`;if(x.boundaries&&x.boundaries.length>0){let{renderStreamingPage:W0,streamToResponse:j0}=await import("./chunk-a438xffx.js");return j0(W0(k,x.boundaries,{timeoutMs:30000}),{status:p,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(k,{status:p,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}if(L.length>0){let x=L.map((p)=>p.route),v=a$(T.pathname,x);if(v){let p=O.get(v.route.pattern);if(p){let d=p.content;if(A)d=Y$(A,d);if(Object.keys(v.params).length>0)d=d0(d,v.params);if(d=await s(d,W),Y)d=I0(d,G);return new Response(d,{status:p.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:p}of j)if(p!=="/"&&T.pathname.startsWith(p)){let d=O.get(p)||O.get(p+"/");if(d){let k=d.content;if(A)k=Y$(A,k);if(k=await s(k,W),Y)k=I0(k,G);return new Response(k,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let S1=w.get("/");if(S1){let x=S1.content;if(x=await s(x,W),Y)x=I0(x,G);if(X.native)if(x.includes("<head>"))x=x.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else x="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+x;return new Response(x,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let P1=await R(404);if(P1){let x=P1;if(x=await s(x,W),Y)x=I0(x,G);return new Response(x,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(D){let T=await R(500);if(T)return new Response(T,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${D}
|
|
1611
1611
|
${D.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});if(console.clear(),console.log(`
|
|
1612
1612
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1613
1613
|
${B.bright}\u2192 ${B.cyan}http://localhost:${R0}/${B.reset}`),Y)console.log(`${B.dim} HMR: ws://localhost:${G}${B.reset}`);console.log(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Kr as E}from"./chunk-6wx32fa5.js";import{hu as D}from"./chunk-pw0rzgpv.js";import I from"path";async function M(q={}){let G=performance.now(),J=q.root||process.cwd(),j=await E(),y=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${y.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(y==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,...q.ssg})}else{let{buildForProduction:z}=await import("./chunk-
|
|
2
|
+
import{Kr as E}from"./chunk-6wx32fa5.js";import{hu as D}from"./chunk-pw0rzgpv.js";import I from"path";async function M(q={}){let G=performance.now(),J=q.root||process.cwd(),j=await E(),y=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${y.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(y==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,...q.ssg})}else{let{buildForProduction:z}=await import("./chunk-as6mtt14.js");B=await z({outputDir:".output",debug:q.debug,...q.ssr})}let H=Math.round(performance.now()-G);return{mode:y,ssg:A,ssr:B,duration:H}}
|
|
3
3
|
export{M as ff};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Rp as R,cm as E,dm as M}from"./chunk-6wx32fa5.js";import{Wt as m,Yt as d,Zt as p}from"./chunk-3952ykhb.js";import{eu as g,hu as u}from"./chunk-pw0rzgpv.js";var f=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function C(w,J,z){let B={fullTag:z,content:J,attrs:w};if(/\bserver\b/.test(w))return{...B,type:"server"};if(/\bdata-stx-scoped\b/.test(w))return{...B,type:"client"};if(f.test(J))return{...B,type:"signals"};if(/\bclient\b/.test(w)||/\btype\s*=\s*["']module["']/.test(w)||/\bsrc\s*=/.test(w))return{...B,type:"client"};return{...B,type:"server"}}var S=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function P(w){let J=[],z=[],B=[],Y=0;while(Y<w.length){let Q=w.indexOf("<",Y);if(Q===-1)break;let U=M(w,Q);if(U>Q){Y=U;continue}let X=E(w,Q);if(X>Q){let $=w.slice(Q,X),j=S.exec($);if(j){let F=C(j[1],j[2],$);switch(F.type){case"signals":J.push(F);break;case"client":z.push(F);break;case"server":B.push(F);break}}Y=X;continue}Y=Q+(w.startsWith("<!--",Q)?4:1)}return{signals:J,client:z,server:B}}import L from"path";m();var c="stx-page-head:",i=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,A=null;function h(){if(A!==null)return A;try{let{getRouterScript:w}=(p(),g(d));A=`<script>${w()}</script>`}catch{A=""}return A}async function e(w,J){if(J===!1)return null;if(J&&typeof J==="string"){let B=L.resolve(w,J);if(await Bun.file(B).exists())return B;return null}let z=L.join(w,"app.stx");if(await Bun.file(z).exists())return z;return null}async function t(w,J){try{let z=await Bun.file(w).text(),B=z,Y=z.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(Y)B=Y[1].trim();let Q=P(z),U=[...Q.client.map((Z)=>Z.fullTag),...Q.signals.map((Z)=>Z.fullTag)],X=[],$=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,j;while((j=$.exec(z))!==null)X.push(j[0]);let F=B;for(let Z of Q.server)F=F.replace(Z.fullTag,"");for(let Z of Q.client)F=F.replace(Z.fullTag,"");F=F.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let V="<!--__STX_PAGE_SLOT__-->";if(F=F.replace(/<slot\s*\/>/gi,V).replace(/<slot\s*>\s*<\/slot>/gi,V),!F.includes(V))return console.warn(`[stx] Shell ${w} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:W,extractVariables:G,defaultConfig:_,loadStxConfig:v}=await import("./chunk-
|
|
2
|
+
import{Rp as R,cm as E,dm as M}from"./chunk-6wx32fa5.js";import{Wt as m,Yt as d,Zt as p}from"./chunk-3952ykhb.js";import{eu as g,hu as u}from"./chunk-pw0rzgpv.js";var f=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function C(w,J,z){let B={fullTag:z,content:J,attrs:w};if(/\bserver\b/.test(w))return{...B,type:"server"};if(/\bdata-stx-scoped\b/.test(w))return{...B,type:"client"};if(f.test(J))return{...B,type:"signals"};if(/\bclient\b/.test(w)||/\btype\s*=\s*["']module["']/.test(w)||/\bsrc\s*=/.test(w))return{...B,type:"client"};return{...B,type:"server"}}var S=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function P(w){let J=[],z=[],B=[],Y=0;while(Y<w.length){let Q=w.indexOf("<",Y);if(Q===-1)break;let U=M(w,Q);if(U>Q){Y=U;continue}let X=E(w,Q);if(X>Q){let $=w.slice(Q,X),j=S.exec($);if(j){let F=C(j[1],j[2],$);switch(F.type){case"signals":J.push(F);break;case"client":z.push(F);break;case"server":B.push(F);break}}Y=X;continue}Y=Q+(w.startsWith("<!--",Q)?4:1)}return{signals:J,client:z,server:B}}import L from"path";m();var c="stx-page-head:",i=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,A=null;function h(){if(A!==null)return A;try{let{getRouterScript:w}=(p(),g(d));A=`<script>${w()}</script>`}catch{A=""}return A}async function e(w,J){if(J===!1)return null;if(J&&typeof J==="string"){let B=L.resolve(w,J);if(await Bun.file(B).exists())return B;return null}let z=L.join(w,"app.stx");if(await Bun.file(z).exists())return z;return null}async function t(w,J){try{let z=await Bun.file(w).text(),B=z,Y=z.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(Y)B=Y[1].trim();let Q=P(z),U=[...Q.client.map((Z)=>Z.fullTag),...Q.signals.map((Z)=>Z.fullTag)],X=[],$=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,j;while((j=$.exec(z))!==null)X.push(j[0]);let F=B;for(let Z of Q.server)F=F.replace(Z.fullTag,"");for(let Z of Q.client)F=F.replace(Z.fullTag,"");F=F.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let V="<!--__STX_PAGE_SLOT__-->";if(F=F.replace(/<slot\s*\/>/gi,V).replace(/<slot\s*>\s*<\/slot>/gi,V),!F.includes(V))return console.warn(`[stx] Shell ${w} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:W,extractVariables:G,defaultConfig:_,loadStxConfig:v}=await import("./chunk-xdxhz4h3.js"),k=await v(),H={__filename:w,__dirname:L.dirname(w)};for(let Z of U){let K=Z.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(K&&!Z.includes("client")&&!Z.includes('type="module"'))await G(K[1],H,w)}let N=await W(F,H,w,{..._,...k,...J},new Set),q=N.indexOf(V);if(q===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:N.substring(0,q),afterSlot:N.substring(q+V.length),filePath:w,shellScripts:U,shellStyles:X}}catch(z){return console.error(`[stx] Error processing shell ${w}:`,z),null}}function ww(w,J,z){let B,Y="",Q=J.match(i);if(Q){J=J.replace(Q[0],"");try{let F=Buffer.from(Q[1],"base64").toString("utf8"),V=F.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(V)B=V[1].trim();Y=F.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=z||B||"stx App",X=h(),$="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Cg as a}from"./chunk-ndnc7k2n.js";import{Og as n,Qg as FF,Rg as YF,Sg as ZF}from"./chunk-
|
|
2
|
+
import{Cg as a}from"./chunk-ndnc7k2n.js";import{Og as n,Qg as FF,Rg as YF,Sg as ZF}from"./chunk-njvb5hn8.js";import{xj as C,yj as D}from"./chunk-whq99ytc.js";import{Ak as XF,yk as JF,zk as QF}from"./chunk-yckd6ks5.js";import{Ir as c,Kr as N,Np as o,Up as e,Vp as t,Yl as l,_l as d,lq as u,zp as r}from"./chunk-6wx32fa5.js";import{Gs as s}from"./chunk-31xczh3c.js";import{Xt as S,Zt as zF}from"./chunk-3952ykhb.js";import G from"fs";import Z from"path";import{createHash as WF}from"crypto";zF();function g(J){return WF("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function KF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as $F}from"crypto";function GF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function p(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=$F("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>a($))),{context:E}=GF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...c,...K,...z,buildMode:"compile",strict:!1},w=await u(X,E,Q,_,L),U=n(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,streamTemplates:E.__streamTemplates}}var VF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function i(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(VF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function mF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=t(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await p(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=e(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=r(F.html,W);if(k.htmlAttrs)F.html=o(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await s(F.html),F.fragment=FF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=i(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=XF(z);if(v){let{copied:Y,bytes:F}=i(v,Z.join(Q,"public",QF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${JF}/`)}let R={runtime:H.filename,router:$.filename},qF=YF(j,R,Q);ZF(qF,Q);let x=Date.now()-q;return console.log(`
|
|
3
3
|
[stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
|
|
4
4
|
export{g as sg,f as tg,m as ug,KF as vg,p as wg,mF as xg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ff as a}from"./chunk-
|
|
2
|
+
import{ff as a}from"./chunk-m3qtqheb.js";import"./chunk-6wx32fa5.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-31xczh3c.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{a as buildApp};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Tg as n}from"./chunk-eqq7k4g0.js";import{Mo as f,Xp as p,am as b,bm as S,km as k,rm as q}from"./chunk-6wx32fa5.js";import{Vt as c,Zt as XG,st as d}from"./chunk-3952ykhb.js";import{hu as T}from"./chunk-pw0rzgpv.js";import l from"fs";import F from"path";var{serve:ZG}=globalThis.Bun;function R(G,J,K={}){let Q=`${encodeURIComponent(G)}=${encodeURIComponent(J)}`;if(K.maxAge!==void 0)Q+=`; Max-Age=${K.maxAge}`;if(K.expires)Q+=`; Expires=${K.expires.toUTCString()}`;if(K.path)Q+=`; Path=${K.path}`;if(K.domain)Q+=`; Domain=${K.domain}`;if(K.secure)Q+="; Secure";if(K.httpOnly)Q+="; HttpOnly";if(K.sameSite)Q+=`; SameSite=${K.sameSite}`;return Q}async function i(G){let J=G.headers.get("content-type")||"",K={},Q=(X,Z)=>{let $=K[X];if($===void 0)K[X]=Z;else if(Array.isArray($))$.push(Z);else K[X]=[$,Z]};if(J.includes("multipart/form-data")){let X=await G.formData();for(let[Z,$]of X.entries())if(typeof $==="string")Q(Z,$);return K}if(J.includes("application/x-www-form-urlencoded")){for(let[X,Z]of new URLSearchParams(await G.text()).entries())Q(X,Z);return K}return K}function C(G){if(!G)return!1;let J=G.toUpperCase();return J!=="GET"&&J!=="HEAD"}async function y(G,J={}){let K=J.request,Q=J.method??K?.method;if(!K||!C(Q))return{ran:!1};if(typeof G.action!=="function")return{ran:!1};let X={};try{X=await i(K)}catch{}let Z=await G.action({request:K,form:X,params:J.params??{},query:G.query??{},cookies:J.cookies??{}});if(Z&&typeof Z==="object"){let $=Z,U=a($.cookies),I=$.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...U.length>0?{cookies:U}:{}};let{cookies:V,redirect:A,...O}=$;if(Object.assign(G,O),U.length>0)return{ran:!0,cookies:U}}return{ran:!0}}function a(G){if(!G||typeof G!=="object"||Array.isArray(G))return[];let J=[];for(let[K,Q]of Object.entries(G)){if(!K)continue;if(typeof Q==="string"){J.push(R(K,Q));continue}if(Q&&typeof Q==="object"){let X=Q;if(typeof X.value!=="string")continue;J.push(R(K,X.value,X))}}return J}function v(G,J=[]){let K=new Headers({Location:G,"Cache-Control":"no-store"});for(let Q of J)K.append("Set-Cookie",Q);return new Response(null,{status:303,headers:K})}async function LG(G,J={}){return(await x(G,J)).html}async function g(G,J={}){let{html:K,context:Q,redirect:X,cookies:Z}=await x(G,J);if(X)return{html:K,redirect:X,cookies:Z};let{extractStreamBoundaries:$}=await import("./chunk-a438xffx.js"),U=$(Q),I=G.streamTemplates;if(I&&Object.keys(I).length>0){let{processDirectives:V}=await import("./chunk-1ms6ey5t.js"),{defaultConfig:A}=await import("./chunk-6v4ddvfk.js"),O=Q.streamBoundaries||{},D={...A,autoShell:!1},j=Object.keys(I).map((_)=>({id:_,render:async()=>{let M=typeof O[_]==="function"?await O[_]():void 0;return V(I[_],{...Q,$boundary:M},G.sourceFile,D,new Set)}})),N=new Set(j.map((_)=>_.id));U=[...(U||[]).filter((_)=>!N.has(_.id)),...j]}return{html:K,boundaries:U&&U.length>0?U:void 0,cookies:Z}}async function x(G,J){let K={__filename:G.sourceFile,__dirname:G.sourceFile.replace(/[/\\][^/\\]+$/,""),...J};if(!G.hasServerScripts&&!S(G.html))return{html:G.html,context:K};for(let Z of G.serverScriptContent)try{await f(Z,K,G.sourceFile)}catch($){console.warn(`[stx] Server script error in ${G.sourceFile}:`,$)}let Q=await y(K,{request:J.request,method:J.method,params:J.params??{},cookies:J.cookies??{}});if(Q.redirect)return{html:G.html,context:K,redirect:Q.redirect,cookies:Q.cookies};if(!S(G.html))return{html:G.html,context:K,cookies:Q.cookies};let X=new Map;for(let[Z,$]of Object.entries(G.placeholders))if($.expression)try{let U=q($.expression,K);if($.type==="raw")X.set(Z,U!==void 0&&U!==null?String(U):"");else X.set(Z,U!==void 0&&U!==null?k(String(U)):"")}catch{X.set(Z,"")}return{html:b(G.html,X),context:K,cookies:Q.cookies}}async function VG(G,J={}){if(!G.hasServerScripts&&!S(G.fragment))return G.fragment;let K={__filename:G.sourceFile,__dirname:G.sourceFile.replace(/[/\\][^/\\]+$/,""),...J};for(let X of G.serverScriptContent)try{await f(X,K,G.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${G.sourceFile}:`,Z)}if(!S(G.fragment))return G.fragment;let Q=new Map;for(let[X,Z]of Object.entries(G.placeholders))if(Z.expression)try{let $=q(Z.expression,K);if(Z.type==="raw")Q.set(X,$!==void 0&&$!==null?String($):"");else Q.set(X,$!==void 0&&$!==null?k(String($)):"")}catch{Q.set(X,"")}return b(G.fragment,Q)}XG();import E from"zlib";import{promisify as u}from"util";var s=u(E.brotliCompress),t=u(E.gzip),o=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],e=["text/event-stream","multipart/x-mixed-replace"],GG=1024;function JG(G){if(!G)return!1;let J=G.toLowerCase();if(e.some((K)=>J.startsWith(K)))return!1;return o.some((K)=>J.startsWith(K))}function KG(G){let J=new Map;for(let K of G.split(",")){let[Q,...X]=K.trim().split(";"),Z=Q.trim().toLowerCase();if(!Z)continue;let $=1;for(let U of X){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(U);if(!I)continue;let V=Number.parseFloat(I[1]);if(Number.isFinite(V))$=V}J.set(Z,$)}return J}function QG(G){if(!G)return null;let J=KG(G),K=J.get("*"),Q=(X)=>J.get(X)??K??0;if(Q("br")>0)return"br";if(Q("gzip")>0)return"gzip";return null}async function m(G,J,K={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!JG(J.headers.get("content-type")))return J;let Q=QG(G.headers.get("accept-encoding"));if(!Q)return J;let X;try{X=new Uint8Array(await J.arrayBuffer())}catch{return J}let Z=()=>new Response(X,{status:J.status,statusText:J.statusText,headers:h(J.headers)});if(X.length<(K.threshold??GG))return Z();try{let $=Q==="br"?await s(X,{params:{[E.constants.BROTLI_PARAM_QUALITY]:K.quality??5,[E.constants.BROTLI_PARAM_SIZE_HINT]:X.length}}):await t(X);if($.length>=X.length)return Z();let U=h(J.headers);return U.set("Content-Encoding",Q),U.set("Content-Length",String($.length)),new Response($,{status:J.status,statusText:J.statusText,headers:U})}catch{return Z()}}function h(G){let J=new Headers(G),K=J.get("Vary");if(!K)return J.set("Vary","Accept-Encoding"),J;if(!K.split(",").some((X)=>X.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${K}, Accept-Encoding`);return J}var $G={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function bG(G={}){let J=F.resolve(G.outputDir||".output"),K=G.port||3000,Q=n(J);if(!Q)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Q.routes.length} routes...`);let X=new Map,Z=new Map,$=new Map,U=new Map;for(let O of Q.routes)try{let D=F.join(J,O.compiledPath),j=JSON.parse(await Bun.file(D).text());X.set(O.pattern,j),$.set(O.pattern,c(j.html)),U.set(O.pattern,p(j.html));let N=F.join(J,O.fragmentPath);if(await Bun.file(N).exists())Z.set(O.pattern,await Bun.file(N).text())}catch(D){console.warn(`[stx] Failed to load route ${O.pattern}:`,D)}let I=new Map,V=[];for(let O of Q.routes)if(O.hasParams){let{regex:D,params:j}=d(O.pattern);V.push({regex:D,route:O,paramNames:j})}else I.set(O.pattern,O);let A=ZG({port:K,async fetch(O){return m(O,await(async()=>{let j=new URL(O.url).pathname;if(G.onRequest){let W=await G.onRequest(O);if(W)return W}if(G.apiRoutes?.[j])return G.apiRoutes[j](O);if((O.method==="GET"||O.method==="HEAD")&&j!=="/"){let W=F.resolve(J,"public"),Y;try{Y=decodeURIComponent(j)}catch{Y=j}if(!Y.includes("\x00")){let L=F.resolve(W,`.${Y}`);if(L===W||L.startsWith(`${W}${F.sep}`))try{if(l.existsSync(L)&&l.statSync(L).isFile()){let w=F.extname(L).toLowerCase(),H=$G[w]||"application/octet-stream",P=j.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(j);return new Response(Bun.file(L),{headers:{"Content-Type":H,"Cache-Control":P?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let N=O.headers.get("X-STX-Router")==="true",_=null,M={};if(_=I.get(j)||null,!_)for(let{regex:W,route:Y,paramNames:L}of V){let B=j.match(W);if(B){_=Y,L.forEach((w,H)=>{M[w]=B[H+1]});break}}if(!_){let W=I.get("/404")||null;if(W){let Y=X.get(W.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(N){let W=Z.get(_.pattern);if(W){let Y=$.get(_.pattern);return new Response(W,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...U.has(_.pattern)?{"X-STX-Runtime":U.get(_.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},"Cache-Control":"no-cache"}})}}let r=C(O.method),z=X.get(_.pattern);if(!z){let W=I.get("/500")||null;if(W){let Y=X.get(W.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!r&&!z.hasServerScripts&&Object.keys(z.placeholders).length===0)return new Response(z.html,{headers:{"Content-Type":"text/html","Cache-Control":"public, max-age=60"}});try{let{html:W,boundaries:Y,redirect:L,cookies:B}=await g(z,{params:M,request:O,method:O.method});if(L)return v(L,B);if(Y&&Y.length>0){let{renderStreamingPage:H,streamToResponse:P}=await import("./chunk-a438xffx.js");return P(H(W,Y,{timeoutMs:30000}),{headers:{"Cache-Control":"no-cache"}})}let w=new Headers({"Content-Type":"text/html","Cache-Control":"no-cache"});for(let H of B??[])w.append("Set-Cookie",H);return new Response(W,{headers:w})}catch(W){return console.error(`[stx] Hydration error for ${j}:`,W),new Response(z.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${K}`),console.log(`[stx] Serving ${Q.routes.length} routes (${X.size} pre-loaded)`),{port:K,stop:()=>A.stop()}}
|
|
2
|
+
import{Tg as n}from"./chunk-njvb5hn8.js";import{Mo as f,Xp as p,am as b,bm as S,km as k,rm as q}from"./chunk-6wx32fa5.js";import{Vt as c,Zt as XG,st as d}from"./chunk-3952ykhb.js";import{hu as T}from"./chunk-pw0rzgpv.js";import l from"fs";import F from"path";var{serve:ZG}=globalThis.Bun;function R(G,J,K={}){let Q=`${encodeURIComponent(G)}=${encodeURIComponent(J)}`;if(K.maxAge!==void 0)Q+=`; Max-Age=${K.maxAge}`;if(K.expires)Q+=`; Expires=${K.expires.toUTCString()}`;if(K.path)Q+=`; Path=${K.path}`;if(K.domain)Q+=`; Domain=${K.domain}`;if(K.secure)Q+="; Secure";if(K.httpOnly)Q+="; HttpOnly";if(K.sameSite)Q+=`; SameSite=${K.sameSite}`;return Q}async function i(G){let J=G.headers.get("content-type")||"",K={},Q=(X,Z)=>{let $=K[X];if($===void 0)K[X]=Z;else if(Array.isArray($))$.push(Z);else K[X]=[$,Z]};if(J.includes("multipart/form-data")){let X=await G.formData();for(let[Z,$]of X.entries())if(typeof $==="string")Q(Z,$);return K}if(J.includes("application/x-www-form-urlencoded")){for(let[X,Z]of new URLSearchParams(await G.text()).entries())Q(X,Z);return K}return K}function C(G){if(!G)return!1;let J=G.toUpperCase();return J!=="GET"&&J!=="HEAD"}async function y(G,J={}){let K=J.request,Q=J.method??K?.method;if(!K||!C(Q))return{ran:!1};if(typeof G.action!=="function")return{ran:!1};let X={};try{X=await i(K)}catch{}let Z=await G.action({request:K,form:X,params:J.params??{},query:G.query??{},cookies:J.cookies??{}});if(Z&&typeof Z==="object"){let $=Z,U=a($.cookies),I=$.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...U.length>0?{cookies:U}:{}};let{cookies:V,redirect:A,...O}=$;if(Object.assign(G,O),U.length>0)return{ran:!0,cookies:U}}return{ran:!0}}function a(G){if(!G||typeof G!=="object"||Array.isArray(G))return[];let J=[];for(let[K,Q]of Object.entries(G)){if(!K)continue;if(typeof Q==="string"){J.push(R(K,Q));continue}if(Q&&typeof Q==="object"){let X=Q;if(typeof X.value!=="string")continue;J.push(R(K,X.value,X))}}return J}function v(G,J=[]){let K=new Headers({Location:G,"Cache-Control":"no-store"});for(let Q of J)K.append("Set-Cookie",Q);return new Response(null,{status:303,headers:K})}async function LG(G,J={}){return(await x(G,J)).html}async function g(G,J={}){let{html:K,context:Q,redirect:X,cookies:Z}=await x(G,J);if(X)return{html:K,redirect:X,cookies:Z};let{extractStreamBoundaries:$}=await import("./chunk-a438xffx.js"),U=$(Q),I=G.streamTemplates;if(I&&Object.keys(I).length>0){let{processDirectives:V}=await import("./chunk-1ms6ey5t.js"),{defaultConfig:A}=await import("./chunk-6v4ddvfk.js"),O=Q.streamBoundaries||{},D={...A,autoShell:!1},j=Object.keys(I).map((_)=>({id:_,render:async()=>{let M=typeof O[_]==="function"?await O[_]():void 0;return V(I[_],{...Q,$boundary:M},G.sourceFile,D,new Set)}})),N=new Set(j.map((_)=>_.id));U=[...(U||[]).filter((_)=>!N.has(_.id)),...j]}return{html:K,boundaries:U&&U.length>0?U:void 0,cookies:Z}}async function x(G,J){let K={__filename:G.sourceFile,__dirname:G.sourceFile.replace(/[/\\][^/\\]+$/,""),...J};if(!G.hasServerScripts&&!S(G.html))return{html:G.html,context:K};for(let Z of G.serverScriptContent)try{await f(Z,K,G.sourceFile)}catch($){console.warn(`[stx] Server script error in ${G.sourceFile}:`,$)}let Q=await y(K,{request:J.request,method:J.method,params:J.params??{},cookies:J.cookies??{}});if(Q.redirect)return{html:G.html,context:K,redirect:Q.redirect,cookies:Q.cookies};if(!S(G.html))return{html:G.html,context:K,cookies:Q.cookies};let X=new Map;for(let[Z,$]of Object.entries(G.placeholders))if($.expression)try{let U=q($.expression,K);if($.type==="raw")X.set(Z,U!==void 0&&U!==null?String(U):"");else X.set(Z,U!==void 0&&U!==null?k(String(U)):"")}catch{X.set(Z,"")}return{html:b(G.html,X),context:K,cookies:Q.cookies}}async function VG(G,J={}){if(!G.hasServerScripts&&!S(G.fragment))return G.fragment;let K={__filename:G.sourceFile,__dirname:G.sourceFile.replace(/[/\\][^/\\]+$/,""),...J};for(let X of G.serverScriptContent)try{await f(X,K,G.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${G.sourceFile}:`,Z)}if(!S(G.fragment))return G.fragment;let Q=new Map;for(let[X,Z]of Object.entries(G.placeholders))if(Z.expression)try{let $=q(Z.expression,K);if(Z.type==="raw")Q.set(X,$!==void 0&&$!==null?String($):"");else Q.set(X,$!==void 0&&$!==null?k(String($)):"")}catch{Q.set(X,"")}return b(G.fragment,Q)}XG();import E from"zlib";import{promisify as u}from"util";var s=u(E.brotliCompress),t=u(E.gzip),o=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],e=["text/event-stream","multipart/x-mixed-replace"],GG=1024;function JG(G){if(!G)return!1;let J=G.toLowerCase();if(e.some((K)=>J.startsWith(K)))return!1;return o.some((K)=>J.startsWith(K))}function KG(G){let J=new Map;for(let K of G.split(",")){let[Q,...X]=K.trim().split(";"),Z=Q.trim().toLowerCase();if(!Z)continue;let $=1;for(let U of X){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(U);if(!I)continue;let V=Number.parseFloat(I[1]);if(Number.isFinite(V))$=V}J.set(Z,$)}return J}function QG(G){if(!G)return null;let J=KG(G),K=J.get("*"),Q=(X)=>J.get(X)??K??0;if(Q("br")>0)return"br";if(Q("gzip")>0)return"gzip";return null}async function m(G,J,K={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!JG(J.headers.get("content-type")))return J;let Q=QG(G.headers.get("accept-encoding"));if(!Q)return J;let X;try{X=new Uint8Array(await J.arrayBuffer())}catch{return J}let Z=()=>new Response(X,{status:J.status,statusText:J.statusText,headers:h(J.headers)});if(X.length<(K.threshold??GG))return Z();try{let $=Q==="br"?await s(X,{params:{[E.constants.BROTLI_PARAM_QUALITY]:K.quality??5,[E.constants.BROTLI_PARAM_SIZE_HINT]:X.length}}):await t(X);if($.length>=X.length)return Z();let U=h(J.headers);return U.set("Content-Encoding",Q),U.set("Content-Length",String($.length)),new Response($,{status:J.status,statusText:J.statusText,headers:U})}catch{return Z()}}function h(G){let J=new Headers(G),K=J.get("Vary");if(!K)return J.set("Vary","Accept-Encoding"),J;if(!K.split(",").some((X)=>X.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${K}, Accept-Encoding`);return J}var $G={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function bG(G={}){let J=F.resolve(G.outputDir||".output"),K=G.port||3000,Q=n(J);if(!Q)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Q.routes.length} routes...`);let X=new Map,Z=new Map,$=new Map,U=new Map;for(let O of Q.routes)try{let D=F.join(J,O.compiledPath),j=JSON.parse(await Bun.file(D).text());X.set(O.pattern,j),$.set(O.pattern,c(j.html)),U.set(O.pattern,p(j.html));let N=F.join(J,O.fragmentPath);if(await Bun.file(N).exists())Z.set(O.pattern,await Bun.file(N).text())}catch(D){console.warn(`[stx] Failed to load route ${O.pattern}:`,D)}let I=new Map,V=[];for(let O of Q.routes)if(O.hasParams){let{regex:D,params:j}=d(O.pattern);V.push({regex:D,route:O,paramNames:j})}else I.set(O.pattern,O);let A=ZG({port:K,async fetch(O){return m(O,await(async()=>{let j=new URL(O.url).pathname;if(G.onRequest){let W=await G.onRequest(O);if(W)return W}if(G.apiRoutes?.[j])return G.apiRoutes[j](O);if((O.method==="GET"||O.method==="HEAD")&&j!=="/"){let W=F.resolve(J,"public"),Y;try{Y=decodeURIComponent(j)}catch{Y=j}if(!Y.includes("\x00")){let L=F.resolve(W,`.${Y}`);if(L===W||L.startsWith(`${W}${F.sep}`))try{if(l.existsSync(L)&&l.statSync(L).isFile()){let w=F.extname(L).toLowerCase(),H=$G[w]||"application/octet-stream",P=j.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(j);return new Response(Bun.file(L),{headers:{"Content-Type":H,"Cache-Control":P?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let N=O.headers.get("X-STX-Router")==="true",_=null,M={};if(_=I.get(j)||null,!_)for(let{regex:W,route:Y,paramNames:L}of V){let B=j.match(W);if(B){_=Y,L.forEach((w,H)=>{M[w]=B[H+1]});break}}if(!_){let W=I.get("/404")||null;if(W){let Y=X.get(W.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(N){let W=Z.get(_.pattern);if(W){let Y=$.get(_.pattern);return new Response(W,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...U.has(_.pattern)?{"X-STX-Runtime":U.get(_.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},"Cache-Control":"no-cache"}})}}let r=C(O.method),z=X.get(_.pattern);if(!z){let W=I.get("/500")||null;if(W){let Y=X.get(W.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!r&&!z.hasServerScripts&&Object.keys(z.placeholders).length===0)return new Response(z.html,{headers:{"Content-Type":"text/html","Cache-Control":"public, max-age=60"}});try{let{html:W,boundaries:Y,redirect:L,cookies:B}=await g(z,{params:M,request:O,method:O.method});if(L)return v(L,B);if(Y&&Y.length>0){let{renderStreamingPage:H,streamToResponse:P}=await import("./chunk-a438xffx.js");return P(H(W,Y,{timeoutMs:30000}),{headers:{"Cache-Control":"no-cache"}})}let w=new Headers({"Content-Type":"text/html","Cache-Control":"no-cache"});for(let H of B??[])w.append("Set-Cookie",H);return new Response(W,{headers:w})}catch(W){return console.error(`[stx] Hydration error for ${j}:`,W),new Response(z.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${K}`),console.log(`[stx] Serving ${Q.routes.length} routes (${X.size} pre-loaded)`),{port:K,stop:()=>A.stop()}}
|
|
3
3
|
export{JG as gf,QG as hf,m as if,R as jf,i as kf,C as lf,y as mf,v as nf,LG as of,g as pf,VG as qf,bG as rf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as Gk,$a as sm,$b as Kn,$c as Lo,$d as Lp,A as qj,Aa as Dl,Ab as cn,Ac as ko,Ad as kp,Ae as qq,B as rj,Ba as El,Bb as dn,Bc as lo,Bd as lp,Be as rq,C as sj,Ca as Fl,Cb as en,Cc as mo,Cd as mp,Ce as sq,D as tj,Da as Sl,Db as fn,Dc as no,Dd as np,De as tq,E as jk,Ea as Tl,Eb as gn,Ec as oo,Ed as op,Ee as uq,F as kk,Fa as Ul,Fb as hn,Fc as po,Fd as pp,Fe as vq,G as lk,Ga as Vl,Gb as jn,Gc as qo,Gd as qp,Ge as wq,H as mk,Ha as Wl,Hb as kn,Hc as ro,Hd as rp,He as xq,I as nk,Ia as _l,Ib as ln,Ic as so,Id as sp,Ie as yq,J as ok,Ja as $l,Jb as mn,Jc as to,Jd as tp,Je as zq,K as pk,Ka as am,Kb as nn,Kc as uo,Kd as up,Ke as Aq,L as qk,La as bm,Lb as on,Lc as vo,Ld as vp,Le as Bq,M as rk,Ma as cm,Mb as pn,Mc as wo,Md as wp,Me as Cq,N as sk,Na as dm,Nb as qn,Nc as xo,Nd as xp,Ne as Dq,O as tk,Oa as em,Ob as xn,Oc as yo,Od as yp,Oe as Eq,P as uk,Pa as fm,Pb as yn,Pc as zo,Pd as zp,Pe as Fq,Q as vk,Qa as gm,Qb as zn,Qc as Ao,Qd as Ap,Qe as Gq,R as wk,Ra as hm,Rb as An,Rc as Bo,Rd as Bp,Re as Hq,S as xk,Sa as im,Sb as Bn,Sc as Co,Sd as Cp,Se as Iq,T as yk,Ta as jm,Tb as Cn,Tc as Do,Td as Dp,Te as Jq,U as zk,Ua as km,Ub as Dn,Uc as Eo,Ud as Ep,Ue as Kq,V as Ak,Va as lm,Vb as En,Vc as Fo,Vd as Fp,Ve as Lq,W as Bk,Wa as mm,Wb as Fn,Wc as Go,Wd as Gp,We as Mq,X as Ck,Xa as nm,Xb as Gn,Xc as Ho,Xd as Hp,Xe as Nq,Y as Dk,Ya as pm,Yb as Hn,Yc as Io,Yd as Ip,Z as Ek,Za as qm,Zb as In,Zc as Jo,Zd as Jp,_ as Fk,_a as rm,_b as Jn,_c as Ko,_d as Kp,aa as Hk,ab as tm,ac as Ln,ad as Mo,ae as Mp,ba as Ik,bb as um,bc as Mn,bd as No,be as Np,ca as Jk,cb as vm,cc as Nn,cd as Oo,ce as Op,da as Kk,db as wm,dc as On,dd as Po,de as Pp,ea as Lk,eb as xm,ec as Pn,ed as Qo,ee as Qp,fa as Mk,fb as ym,fc as Qn,fd as Ro,fe as Rp,ga as Nk,gb as zm,gc as Rn,gd as So,ge as Sp,ha as Ok,hb as Am,hc as Sn,hd as To,he as Tp,ia as Pk,ib as Bm,ic as Tn,id as Uo,ie as Up,ja as Qk,jb as Cm,jc as Un,jd as Vo,je as Vp,ka as Rk,kb as Dm,kc as Vn,kd as Wo,ke as Wp,la as Sk,lb as Em,lc as Wn,ld as Xo,le as Xp,ma as Tk,mb as Fm,mc as Xn,md as Yo,me as Yp,na as Uk,nb as Gm,nc as Yn,nd as Zo,ne as Zp,o as a,oa as Vk,ob as Hm,oc as Zn,od as _o,oe as _p,p as bj,pa as Wk,pb as Km,pc as _n,pd as $o,pe as fq,q as cj,qa as tl,qb as Lm,qc as $n,qd as ap,qe as gq,r as dj,ra as ul,rb as Mm,rc as ao,rd as bp,re as hq,s as ej,sa as vl,sb as Nm,sc as bo,sd as cp,se as iq,t as fj,ta as wl,tb as Tm,tc as co,td as dp,te as jq,u as gj,ua as xl,ub as Um,uc as eo,ud as ep,ue as kq,v as hj,va as yl,vb as Vm,vc as fo,vd as fp,ve as lq,w as ij,wa as zl,wb as Wm,wc as go,wd as gp,we as mq,x as jj,xa as Al,xb as $m,xc as ho,xd as hp,xe as nq,y as oj,ya as Bl,yb as an,yc as io,yd as ip,ye as oq,z as pj,za as Cl,zb as bn,zc as jo,zd as jp,ze as pq}from"./chunk-wjqswn35.js";import{$e as un,Ye as rn,Ze as sn,_e as tn,af as vn,bf as wn}from"./chunk-mvb60bhh.js";import{cf as Im,df as Jm}from"./chunk-9xh78snm.js";import{ef as Om}from"./chunk-xgejppzh.js";import{ff as sl}from"./chunk-vx8cht59.js";import{gf as Xl,hf as Yl,if as Zl,jf as om,kf as Pm,lf as Qm,mf as Rm,nf as Sm,of as Xm,pf as Ym,qf as Zm,rf as _m}from"./chunk-v9yzmqsh.js";import{Af as Cj,Bf as Dj,Cf as Ej,Df as Fj,Ef as Gj,Ff as Hj,Gf as Ij,sf as uj,tf as vj,uf as wj,vf as xj,wf as yj,xf as zj,yf as Aj,zf as Bj}from"./chunk-fnkxbnka.js";import{Hf as Zj,If as _j,Jf as $j,Kf as ak,Lf as bk,Mf as ck,Nf as dk,Of as ek,Pf as fk,Qf as gk,Rf as hk,Sf as ik}from"./chunk-1mhc4g86.js";import{Tf as Xj,Uf as Yj}from"./chunk-1e25ksp6.js";import{Vf as Si,Xf as Ti}from"./chunk-9b82d4g5.js";import{bg as Jj,cg as Kj,dg as Lj,eg as Mj,fg as Nj,gg as Oj,hg as Pj,jg as Qj,kg as Rj,lg as Sj,mg as Tj,ng as Uj,og as Vj,rg as Wj}from"./chunk-ygr11tgz.js";import{sg as hl,tg as il,ug as jl,vg as kl,wg as nl,xg as rl}from"./chunk-pa6gyr8e.js";import{Bg as ml,yg as ll}from"./chunk-ndnc7k2n.js";import{Jg as Xk,Kg as Yk,Lg as Zk,Mg as _k,Ng as $k,Og as al,Pg as bl,Qg as cl,Rg as ol,Sg as pl,Tg as ql}from"./chunk-eqq7k4g0.js";import{$g as Nl,Ug as Gl,Vg as Hl,Wg as Il,Xg as Jl,Yg as Kl,Zg as Ll,_g as Ml,ah as Ol,bh as Pl,ch as Ql,dh as Rl}from"./chunk-st5qggks.js";import{eh as Gg}from"./chunk-z2sp0k8d.js";import{fh as Ng,gh as Og,hh as Pg,ih as Qg,jh as Rg,kh as Sg}from"./chunk-237jkeca.js";import{lh as fi,mh as gi,nh as hi,rh as ii,sh as ji,th as ki}from"./chunk-mkm91b6w.js";import{Ah as wi,Bh as xi,Ch as yi,Dh as zi,Eh as Ai,uh as qi,vh as ri,wh as si,xh as ti,yh as ui,zh as vi}from"./chunk-e0460y7f.js";import{Fh as Xh,Gh as Yh,Hh as Zh,Ih as _h,Jh as $h,Lh as ai,Mh as bi,Nh as ci,Oh as di,Ph as ei}from"./chunk-q8szpd6w.js";import{Qh as Tf,Rh as Uf,Sh as Vf,Th as Wf,Uh as Xf}from"./chunk-w0ng9e1m.js";import{Vh as Yf,Wh as Zf,Xh as _f,Yh as $f,Zh as ag}from"./chunk-x13f5bbe.js";import{$h as cg,_h as bg,ai as dg,bi as eg,ci as fg,di as gg,ei as hg}from"./chunk-ymccpdg6.js";import{fi as ig,gi as jg,hi as kg,ii as lg,ji as mg,ki as ng}from"./chunk-vgk5v31k.js";import{mi as og,ni as pg,oi as qg,pi as rg,qi as sg,ri as tg,si as ug,ti as vg,ui as wg,vi as xg,wi as yg,xi as zg,yi as Ag,zi as Bg}from"./chunk-n8zpm7xb.js";import{Bi as Cg,Ci as Dg,Di as Eg,Ei as Fg}from"./chunk-y4hkqsgw.js";import{Ji as sf,Ki as tf,Li as uf,Mi as vf,Ni as wf,Oi as xf,Pi as yf,Qi as zf,Ri as Af,Si as Bf,Ti as Cf}from"./chunk-m1awve2j.js";import{Ui as Hf,Vi as If}from"./chunk-jn49sc7r.js";import{Yi as Jf}from"./chunk-4v5fsrdd.js";import"./chunk-ht51fz7w.js";import{aj as Kf}from"./chunk-fvjh7rx0.js";import{bj as Lf,cj as Mf}from"./chunk-b6jhznkh.js";import{dj as Nf,ej as Of,fj as Pf,gj as Qf,hj as Rf,ij as Sf}from"./chunk-hyrjade7.js";import{jj as Fd,kj as Gd,lj as Hd,mj as Id,nj as Jd,oj as Kd,pj as Ld,qj as Md,rj as Nd,sj as Od,tj as Pd,uj as Qd,vj as Rd,wj as Sd}from"./chunk-a4mcc2dm.js";import{xj as qf,yj as rf}from"./chunk-whq99ytc.js";import{Fj as bf,Gj as cf,Hj as df,Ij as ef,Jj as ff,Kj as gf,Lj as hf,Mj as jf,Nj as kf,Oj as lf,Pj as mf,Qj as nf,Rj as of,Sj as pf}from"./chunk-3es366z4.js";import{kk as $p,lk as aq,mk as bq,nk as cq,ok as dq,pk as eq}from"./chunk-3jfg5kdy.js";import{qk as kj,rk as lj,sk as mj,tk as nj,uk as dl,vk as el,wk as fl,xk as gl}from"./chunk-ycn1vnv2.js";import"./chunk-yckd6ks5.js";import"./chunk-zgvga8rc.js";import{$l as Ka,$m as Mb,$n as ad,$o as fe,$q as Kh,Al as ia,Am as mb,An as lc,Ao as Bd,Ap as Ge,Aq as ah,Ar as Ki,Bn as mc,Bo as Cd,Bp as He,Bq as bh,Br as Li,Cm as nb,Cn as nc,Co as Dd,Cp as Ie,Cq as ch,Cr as Mi,Dl as ja,Dm as ob,Dn as oc,Do as Ed,Dp as Je,Dq as dh,Dr as Ni,El as ka,Em as pb,En as pc,Ep as Ke,Eq as eh,Er as Oi,Fl as la,Fm as qb,Fn as qc,Fo as Td,Fp as Le,Fq as fh,Fr as Pi,Gl as ma,Gm as rb,Gn as rc,Gp as Me,Gq as gh,Gr as Qi,Hl as na,Hm as sb,Hn as sc,Hp as Ne,Hq as hh,Hr as Ri,Im as tb,In as tc,Ip as Oe,Iq as rh,Ir as Ui,Jm as ub,Jn as uc,Jp as Pe,Jq as sh,Jr as Vi,Kl as qa,Km as vb,Kn as vc,Kp as Qe,Kq as th,Kr as Wi,Ll as ra,Lm as wb,Ln as wc,Lp as Re,Lq as uh,Lr as Xi,Ml as ya,Mm as xb,Mn as xc,Mo as Ud,Mp as Se,Mq as vh,Mr as Yi,Nl as za,Nm as yb,Nn as yc,Np as Te,Nq as wh,Nr as Zi,Ol as Aa,Om as zb,On as zc,Oo as Vd,Op as Ue,Oq as xh,Or as _i,Pl as Ba,Pm as Ab,Pn as Ac,Pp as Ve,Pq as yh,Pr as $i,Ql as Ca,Qm as Bb,Qn as Bc,Qo as Wd,Qp as We,Qq as zh,Qr as aj,Rl as Da,Rm as Cb,Rn as Cc,Ro as Xd,Rp as Xe,Rq as Ah,Sl as Ea,Sm as Db,Sn as Dc,So as Yd,Sp as Ye,Sq as Bh,Tl as Fa,Tm as Eb,Tn as Ec,To as Zd,Tp as Ze,Tq as Ch,Ul as Ga,Um as Fb,Un as Fc,Uo as _d,Up as _e,Uq as Dh,Vm as Gb,Vn as Gc,Vo as $d,Vp as $e,Vq as Eh,Wm as Hb,Wn as Hc,Wo as ae,Wp as af,Wq as Fh,Xm as Ib,Xn as Ic,Xo as be,Xq as Gh,Yl as Ha,Ym as Jb,Yn as Zc,Yo as ce,Yp as Df,Yq as Hh,Zl as Ia,Zm as Kb,Zn as _c,Zo as de,Zq as Ih,_l as Ja,_m as Lb,_n as $c,_o as ee,_q as Jh,am as La,an as Nb,ao as bd,ap as ge,ar as Lh,bm as Ma,bn as Ob,bo as cd,bp as he,br as Mh,cn as Pb,co as dd,cp as ie,cr as Nh,dl as s,dn as Qb,do as ed,dp as je,dr as Oh,el as t,em as Na,en as Rb,eo as fd,ep as ke,er as Ph,fl as u,fm as Oa,fn as Sb,fo as gd,fp as le,fr as Qh,gl as v,gm as Pa,gn as Tb,go as hd,gp as me,gr as Rh,hl as w,hm as Qa,hn as Ub,ho as id,hp as ne,hr as Sh,il as x,im as Ra,in as Vb,io as jd,ip as oe,iq as Ef,ir as Th,jl as y,jm as Sa,jn as Wb,jo as kd,jp as pe,jq as Ff,jr as Uh,kl as z,km as Ta,kn as Xb,ko as ld,kp as qe,kq as Gf,kr as Vh,ll as A,lm as Ua,ln as Yb,lo as md,lp as re,lq as Hg,lr as Wh,ml as B,mm as Va,mn as Zb,mo as nd,mp as se,mq as Ig,mr as li,nl as C,nm as Wa,nn as _b,no as od,np as te,nq as Jg,nr as mi,ol as D,om as Xa,on as $b,oo as pd,op as ue,oq as Kg,or as ni,pl as E,pm as Ya,pn as ac,po as qd,pp as ve,pq as Lg,pr as oi,ql as F,qm as Za,qn as bc,qo as rd,qp as we,qq as Mg,qr as pi,rl as G,rm as _a,rn as cc,ro as sd,rp as xe,rq as Tg,rr as Bi,sl as H,sm as $a,sn as dc,so as td,sp as ye,sq as Ug,sr as Ci,tl as I,tn as ec,to as ud,tp as ze,tq as Vg,tr as Di,ul as J,um as gb,un as fc,uo as vd,up as Ae,uq as Wg,ur as Ei,vl as da,vm as hb,vn as gc,vo as wd,vp as Be,vq as Xg,vr as Fi,wl as ea,wm as ib,wn as hc,wo as xd,wp as Ce,wq as Yg,wr as Gi,xl as fa,xm as jb,xn as ic,xo as yd,xp as De,xq as Zg,xr as Hi,yl as ga,ym as kb,yn as jc,yo as zd,yp as Ee,yq as _g,yr as Ii,zl as ha,zm as lb,zn as kc,zo as Ad,zp as Fe,zq as $g,zr as Ji}from"./chunk-6wx32fa5.js";import{$r as n,Rr as d,Sr as e,Tr as f,Ur as g,Vr as h,Wr as i,Xr as j,Yr as k,Zr as l,_r as m,as as o,bs as p,cs as q,ds as r}from"./chunk-8src5smc.js";import{es as b,fs as c}from"./chunk-gcnrdgrq.js";import{gs as oa,hs as pa}from"./chunk-xp3fp266.js";import{is as ih,js as jh,ks as kh,ls as lh,ms as mh,ns as nh,os as oh,ps as ph,qs as qh}from"./chunk-nye9brje.js";import{Es as db,Fs as eb,Gs as fb,rs as ab,ss as bb,us as cb}from"./chunk-31xczh3c.js";import{Hs as sa,Is as ta,Js as ua,Ks as va,Ls as wa,Ms as xa}from"./chunk-cbc56wpd.js";import{$s as Xc,Ns as Jc,Os as Kc,Ps as Lc,Qs as Mc,Rs as Nc,Ss as Oc,Ts as Pc,Us as Qc,Vs as Rc,Ws as Sc,Xs as Tc,Ys as Uc,Zs as Vc,_s as Wc,at as Yc}from"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import{Ft as P,Gt as Q,Ht as R,It as S,Jt as T,Kt as U,Lt as V,Mt as W,Nt as X,Ot as Y,Pt as Z,Qt as _,Rt as $,St as aa,Tt as ba,Vt as ca,pt as K,qt as L,tt as M,yt as N,zt as O}from"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{Ej as writeNetlifyConfig,pl as writeManifest,hk as writeImageManifest,Gn as wrapComponentForHMR,Aq as withDefaults,Ri as webComponentDirectiveHandler,wo as watermark,yp as watchViews,rk as watchMultiple,sk as watchEffect,qk as watch,Gk as waitForStore,wd as waitForLocale,sn as virtualPathFor,Ei as videoDirective,Tb as validators,Eq as validated,id as validateValueEnhanced,Ig as validateTemplate,Bo as validateParams,jd as validateFormEnhanced,np as validateFile,ed as validateFields,dd as validateField,Kg as validateDirective,Dc as validateCspDirectives,Zi as validateConfig,ul as validateComponentScripts,Sl as validateComponentProps,Gf as validateClientScript,Fg as v,Ua as usesSignalsInScript,Xg as userComponentFileExists,lg as useVirtualList,Rc as useTitle,Fk as useStoreOrThrow,Yn as useStore,oj as useStorage,Jp as useSlots,qj as useSessionStorage,Oc as useSeoMeta,Hk as useRouteParams,Jk as useRouteParamOrThrow,Ik as useRouteParam,Rc as usePageTitle,pf as useOptimistic,Lk as useMiddlewareValue,Kk as useMiddlewareState,pj as useLocalStorage,zn as useLoadingIndicator,Mc as useHead,Cg as useForm,Lp as useAttrs,pp as uploadFiles,op as uploadFile,Bk as updateInstance,nf as untrack,lh as unregisterDirective,Ck as unmountInstance,$a as unescapeHtml,vn as typecheckStxFiles,Wg as transpileTypeScript,oq as translate,w as transitionDirective,Ml as toUsers,Ll as toUser,fo as thumbnail,gp as thumbHashToRGBA,hp as thumbHashToDataURL,sf as templateCache,Dn as stxClientHelpers,me as structuredDataDirective,rq as stripLocalePrefix,al as stripDocumentWrapper,pa as stripCommentsAndLiterals,ym as stringToStream,rc as strictCspPreset,Nd as streamingSuspenseDirective,Rd as streamToResponse,Ld as streamTemplateSimple,Fd as streamTemplate,jj as stopHmrServer,Il as stopBroadcasting,va as stateDirName,wa as stateDir,bf as state,Xe as startsDocument,_m as startProductionServer,Om as startInteractive,Hl as startBroadcasting,D as staggerDirective,zo as srcsetUrls,E as springDirective,ac as splitByPipe,tn as sourcePathFor,Go as smartBatchSign,Zg as slotContentHasExpressions,Eo as signUrl,Ug as shouldTranspileTypeScript,gj as shouldReloadOnChange,Jo as shouldRefreshSignature,hj as shouldIgnoreFile,dg as shouldCacheComponent,jo as sharpen,Hq as shape,ua as setStateDir,Pk as setRouteParams,Qk as setMiddlewareState,Dp as setGlobalProvide,ob as setErrorLocale,jk as setCurrentInstance,si as setCachedVideoResult,hi as setCachedImageResult,bi as setCached,Kq as serveStxFile,Mq as serveMultipleStxFiles,bj as serveMarkdownFile,jn as serveFile,Nq as serveApp,hn as serve,Jn as serializeState,om as serializeSetCookie,lo as sepia,Pc as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ii as scopeHTML,Hi as scopeCSS,pe as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,po as saturation,Co as sanitizeParams,Vb as sanitizeFilePath,Wb as sanitizeExpression,Xb as sanitizeDirectiveParams,Ub as sanitizeDirectiveParam,Yb as sanitizeComponentProps,Ob as safeExecuteAsync,Nb as safeExecute,fe as runPreProcessingMiddleware,ge as runPostProcessingMiddleware,Rm as runPageAction,hf as runMountCallbacks,ba as runMiddleware,zk as runHooks,hq as runDoctor,jf as runDestroyCallbacks,ue as runComposers,qo as rotate,Gg as rewriteImagesWithSiblings,bh as resolveTemplatePath,c as resolveStxTargets,Vi as resolveStxDirectories,nq as resolveI18n,co as resize,Ha as resetPlaceholders,Lc as resetHead,In as resetHMRHandler,Bb as resetErrorConfig,Cq as required,La as replacePlaceholders,wp as renderView,Bi as renderVideoComponent,za as renderVendorStyleTags,Sp as renderToString,Tp as renderToStream,Up as renderToDOM,fp as renderThumbhashToCanvas,eq as renderTemplateString,cq as renderTemplate,dq as renderString,Id as renderStreamingPage,Pg as renderSlot,Vf as renderSSRSuspense,Ro as renderProtectedVideo,Qo as renderProtectedImg,Do as renderMediaUpload,bq as renderMarkdownView,fl as renderLayoutTypes,li as renderImgComponent,Zj as renderImageComponent,Tc as renderHtmlAttrs,Sc as renderHead,zp as renderEmail,$g as renderComponentWithSlot,Uc as renderBodyAttrs,Tn as render,tc as relaxedCspPreset,cd as registerValidationRule,Pd as registerStreamingDirectives,_n as registerStoresClient,Nk as registerStore,ne as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,qb as registerErrorMessages,hd as registerEnhancedValidationRule,ih as registerDirective,Cc as registerCspDirectives,Vl as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,nk as ref,Gm as redirect,xa as rebaseOntoStateDir,$i as readMarkdownFile,tf as readFileCached,ok as reactive,uo as quality,Oo as pruneSignatureCache,ei as pruneCache,Bp as provide,aq as protectCodeBlocks,Bq as prop,ye as processVueTemplate,jg as processVirtualListDirectives,ng as processVirtualGridDirectives,Ai as processVideo,fd as processValidateDirective,Dd as processTranslateDirective,Pf as processTransitionDirectives,Sf as processTransitionAttributes,Xc as processTitleDirective,jb as processTemplateBindings,Lf as processTeleportDirectives,Tf as processSuspenseDirectives,ie as processStructuredData,Jd as processStreamDirectives,Ag as processStaticDirectives,de as processStackReplacements,ce as processStackPushDirectives,Qg as processSlots,_k as processShell,we as processServerBindings,je as processSeoDirective,Qd as processSectionDirectives,Be as processScopedStyles,hb as processReactiveBindings,So as processProtectedMedia,tg as processPartialHydrationDirectives,Ff as processOnceDirective,ee as processMiddleware,he as processMetaDirectives,Yc as processMetaDirective,aj as processMarkdownFileDirectives,gh as processMarkdownDirectives,Zd as processLoops,bg as processKeepAliveDirectives,Ef as processJsonDirective,mg as processInfiniteListDirectives,be as processIncludes,ni as processImgComponents,$j as processImageComponents,Oj as processImage,Wc as processHeadDirective,_c as processForms,ad as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,bd as processErrorDirective,ze as processDynamicComponents,Hg as processDirectives,qh as processDirectiveAttributes,Kf as processDeferDirectives,Hc as processCustomDirectives,zc as processCspDirectives,Iq as processComponentProps,Ga as processClientScript,$c as processBasicFormDirectives,Yf as processAsyncDirectives,Ic as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,sd as preloadTranslationsBackground,rd as preloadTranslations,yn as preloadIslandHandlers,Td as preloadIconCollection,Dl as poolStrings,Ti as pluginManager,Of as performLeave,Nf as performEnter,kf as pendingLifecycleCounts,of as peek,_d as partialsCache,Ci as parseVideoDirectiveOptions,ao as parseUrl,ip as parseThumbhashString,gc as parseSwitchBlock,Ng as parseSlots,Og as parseSlotElement,lc as parseScriptDeclarations,Pi as parseSFCComponent,To as parseProtectedArgs,Yd as parseLoopBinding,mi as parseImgComponent,Eh as parseImageUrl,_j as parseImageComponent,Pm as parseFormBody,ic as parseExpressionWithFilters,Dm as parseCookies,_l as parseContainerSelector,dc as parseConditionalBlock,jc as parseArguments,H as parseAnimationShorthand,Dq as optional,El as optimizeTemplate,ek as optimizeImage,fk as optimizeDirectory,Fq as oneOf,$d as onceStore,wk as onUpdated,gb as onUpdate,yk as onUnmounted,Uk as onServer,uk as onMounted,ff as onMount,zg as onHydrated,Hp as onErrorCaptured,gf as onDestroy,hg as onDeactivated,Tk as onClient,vk as onBeforeUpdate,xk as onBeforeUnmount,tk as onBeforeMount,gg as onActivated,bp as observeElement,Hm as notFound,Ge as normalizeCriticalHeadOrder,Gp as nextTick,Yl as negotiateEncoding,P as navigateTo,Ak as mountInstance,z as motionDirective,sc as moderateCspPreset,Cl as minifyHtml,le as metaDirective,Qe as metaDedupKey,bo as mergeParams,Se as mergeHtmlAttrs,Nc as mergeHeadConfigs,wc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,hh as markdownDirectiveHandler,_i as markdownCache,b as looksLikeGlob,qq as localizePath,td as loadTranslationLazy,zd as loadTranslation,Wi as loadStxConfig,_ as loadMiddlewareFromDirectory,ql as loadManifest,Zo as loadElement,Jl as loadChannels,wq as lintStxStrict,$o as lazyLoadAll,_o as lazyLoad,C as keyframeDirective,Qp as jsxs,Rp as jsxDEV,Pp as jsx,Fm as jsonResponse,Od as islandDirective,yb as isTest,bl as isSpaNavigation,Ho as isSignatureValid,lf as isSignal,Mj as isSharpAvailable,rm as isServerEnvironment,Rk as isServer,wb as isProduction,d as isPresentationalRole,Wo as isNativeLazySupported,$p as isMarkdownPath,pd as isLoading,qd as isLoaded,Tg as isJavaScriptScript,Xo as isIntersectionObserverSupported,Uj as isImageFile,Nj as isImageBackendAvailable,Bd as isICUFormat,yg as isHydrated,Yg as isHydrateTrigger,qm as isEdgeEnvironment,xq as isDirectiveKind,xb as isDevelopment,mf as isDerived,fj as isCssOnlyChange,Xl as isCompressible,Sk as isClient,_f as isAsyncComponent,Qm as isActionableMethod,mo as invert,vf as invalidateFileCacheByDir,uf as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Kb as inlineError,mq as injectThemeBootstrap,ke as injectSeoTags,jq as injectSeo,Df as injectRouterScript,ej as injectHotReload,fa as injectHeatmap,xc as injectCspMetaTag,fb as injectCrosswindCSS,Ze as injectConfigHeadTags,Fe as injectColorModeBootScript,Ue as injectCloakStyle,Me as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Cp as inject,Mk as initStoreRegistry,Hj as initNetlify,An as initLoadingIndicator,Yo as initLazyLoading,Nm as initFile,ep as initBlurUp,kp as initAllBlurUp,pi as imgDirective,ck as imageDirective,Ym as hydrateTemplateStream,Xm as hydrateTemplate,xn as hydrateIslands,vg as hydrateIsland,Zm as hydrateFragment,wg as hydrateByStrategy,xg as hydrateAll,Qn as hydrate,gn as htmlResponse,Ve as hoistLeadingHeadTags,He as hoistColorModeBootScript,ga as heatmapDirective,Zh as hashString,Cf as hashFilePath,Xh as hashFile,Yh as hashBuffer,xe as hasVueTemplateSyntax,Xd as hasVariables,Vn as hasStore,Ma as hasPlaceholders,Fj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,Ye as hasDocumentShell,Lg as hasDirectives,h as hasDOMSupport,Xj as handleImageRequest,Ip as handleError,Yp as h,Tj as groupVariantsByFormat,ko as grayscale,$m as gitHash,wl as getUnusedDirectives,ud as getTranslationSync,nd as getTranslationCacheStats,vd as getTranslationAsync,Cd as getTranslation,Aj as getTotalSize,Io as getTimeUntilExpiry,Hf as getStoreScript,Wn as getStoreNames,Un as getStore,tj as getStorageSize,sj as getStorageKeys,ch as getSourceLineInfo,Vg as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ji as getScopeAttribute,af as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Jg as getPositionInfo,Ja as getPlaceholderRegistry,Wh as getPlaceholderCacheStats,Kc as getPageMeta,nc as getNonce,Vj as getMimeType,Z as getMiddlewareNames,W as getMiddleware,od as getLoadingState,xd as getLoadingLocales,Pj as getImageMetadata,Pn as getHydrationRuntime,Ok as getHydratedStoreState,ij as getHmrServer,Jc as getHead,Hn as getHMRHandler,Ih as getFormatExtension,$h as getFileMtime,Sj as getFallbackVariant,sb as getErrorMessage,pb as getErrorLocale,Ab as getErrorConfig,vb as getErrorCodeName,kh as getDirectives,jh as getDirective,kk as getCurrentInstance,vc as getCspPreset,Ec as getCspHeaderName,cb as getCrosswindServeAsset,fh as getComponentCacheStats,ri as getCachedVideoResult,Mo as getCachedSignature,xf as getCachedSignalsRuntime,yf as getCachedRouterScript,Uh as getCachedPlaceholder,gi as getCachedImageResult,ai as getCached,di as getCacheStats,Ke as getBuildId,Gl as getBroadcastServer,Hh as getBestVariant,Qa as getAllFilters,vh as generateWidthSrcset,kg as generateVirtualListCSS,rp as generateVideoPreview,kd as generateValidationScript,sp as generateUploadRuntime,xl as generateTreeShakenBundle,Rf as generateTransitionRuntime,Qf as generateTransitionCSS,vi as generateThumbnails,Nh as generateThumbhashPlaceholder,hm as generateTemplatesDocs,Xf as generateSuspenseRuntime,Wf as generateSuspenseCSS,Kn as generateStateScript,Fh as generateSrcsetData,ki as generateSrcset,Qj as generateSrcSet,wi as generateSpriteSheet,Ap as generateSpaShell,Gh as generateSourceTags,Bh as generateSizesFromBreakpoints,Ah as generateSizesAttribute,Rj as generateSizes,oe as generateSitemapIndex,kq as generateSitemap,Vo as generateSimpleMediaPicker,Po as generateSignatureRuntime,rf as generateSignalsRuntimeDev,qf as generateSignalsRuntime,Fa as generateServerDataBridge,Gi as generateScopeId,Qi as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,qe as generateRobotsTxt,lq as generateRobots,ji as generateResponsiveVariants,Mi as generateReactiveWebComponentTS,Li as generateReactiveWebComponent,Oi as generateReactiveRuntime,Ni as generateReactiveMixin,ui as generatePoster,Th as generatePlaceholderStyle,Sh as generatePlaceholderCSS,Mh as generatePlaceholder,ug as generatePartialHydrationCSS,mc as generateNonce,Bj as generateNetlifyToml,up as generateMinifiedMediaRuntime,tp as generateMediaRuntime,Uo as generateMediaManagerEmbed,ol as generateManifest,Cn as generateLoadingIndicatorHtml,dp as generateLazyLoadRuntime,gl as generateLayoutTypes,Ph as generateLQIP,fg as generateKeepAliveRuntime,eg as generateKeepAliveCSS,Bg as generateIslandManifest,qp as generateImagePreview,gk as generateImageManifest,On as generateHydrationScript,Sd as generateHydrationRuntime,Rn as generateHydrationCSS,og as generateHydrationBootstrap,dj as generateHotReloadScript,ea as generateHeatmapScript,Fn as generateHMRClientScript,xi as generateHLSManifest,Ln as generateEventBindings,zh as generateDprSrcsetWithVariableQuality,yh as generateDprSrcset,We as generateDocumentShell,mm as generateDocs,im as generateDirectivesDocs,ph as generateDirectiveRuntime,re as generateDefaultRobotsTxt,yi as generateDASHManifest,qc as generateCspMetaTag,pc as generateCspHeader,eb as generateCrosswindCSS,Np as generateCompositionRuntime,gm as generateComponentsDocs,pg as generateComponentManifest,em as generateComponentDoc,Rh as generateColorPlaceholder,Ee as generateColorModeBootScript,Dk as generateClientRuntime,_h as generateCacheKey,Da as generateBrowserAutoImportDestructuring,lp as generateBlurUpRuntime,mp as generateBlurUpCSS,ib as generateBindingsRuntime,wh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,ag as generateAsyncComponentRuntime,$f as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,wn as formatTypecheckDiagnostics,qn as formatTypeErrors,Km as formatStxContent,zj as formatSize,O as formatRoutes,Lm as formatMarkdownContent,tb as formatLocalizedError,Ad as formatICU,Cb as formatFilePath,Jb as formatError,iq as formatDoctorReport,jm as formatDocsAsMarkdown,lm as formatDocsAsJson,km as formatDocsAsHtml,to as format,Bl as foldConstants,so as flipVertical,ro as flipHorizontal,hl as fingerprint,un as findRuntimeTypeDeclarations,gq as findPantryPackage,cc as findMatchingEndTag,_b as findMatchingDelimiter,oa as findInterpolationEnd,ec as findIfBlocks,hc as findExpressions,N as findErrorPage,fc as findDirectiveBlocks,yl as findDeadCode,yl as findDeadBranches,$l as findContainerRegion,fm as findComponentFiles,Lq as findCommonDir,yj as filterRequiredFiles,ah as fileExists,Ud as extractVariables,ml as extractTemplateExpressions,Kd as extractStreamBoundaries,Mn as extractState,Rg as extractSlotContent,Wd as extractScriptFromTemplate,ll as extractScriptBlocks,Ka as extractPlaceholders,bc as extractParenthesizedExpression,Ek as extractPageResponseStatus,ca as extractLayoutMetadata,Qh as extractDominantColor,kc as extractDirectiveParams,Mg as extractDirectiveNames,cl as extractContainerContent,cm as extractComponentProps,qg as extractComponentName,dm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,rg as extractBoundProps,$b as extractBalancedExpression,ya as extractAndStripCssImports,Ki as extractAndScopeStyles,la as extractAndProcessEvents,mj as externalizeSharedAssets,nj as externalizeRepeatedAssets,lj as externalizeHtml,_a as evaluateExpression,Al as evaluateConstant,nb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,Pb as errorRecovery,Rb as errorLogger,Mf as ensureTeleportTargets,_e as ensureDocumentShell,gd as enhancedValidationRules,am as enableDevTools,zl as eliminateDeadCode,df as effect,Ao as dprUrls,nm as docsCommand,el as discoverLayoutNames,cp as disconnectObserver,bm as disableDevTools,Sb as devHelpers,Zk as detectShell,pm as detectRuntime,Cj as detectProjectConfig,Jh as detectFormat,tl as detectBuildMode,cf as derived,Gj as deploy,Yi as defineStxConfig,Zn as defineStore,Kp as defineSlots,vq as defineSiteConfig,zq as definePropsWithValidation,yq as defineProps,Si as definePlugin,Qc as definePageMeta,R as defineMiddleware,Dg as defineForm,Fp as defineExpose,Ep as defineEmits,mh as defineDirective,_p as defineCustomElement,Wm as defineConfig,nh as defineClientDirective,Zf as defineAsyncComponent,vp as defaultMediaConfig,ik as defaultImageConfig,ld as defaultI18nConfig,da as defaultHeatmapConfig,Zc as defaultFormClasses,Na as defaultFilters,Gc as defaultCspConfig,Ui as defaultConfig,Jq as default,ab as deepMergeThemes,Ae as dedupeScopedStyles,Oh as decodeThumbhash,Bc as cspNonceDirective,Ac as cspDirective,jp as crossfadeTransition,eo as crop,ig as createVirtualList,Di as createVideoDirective,Bm as createVercelHandler,nn as createTypeChecker,Ed as createTranslateFilter,xm as createTextEncoderStream,Zp as createStxApp,wm as createStreamingResponse,Md as createStreamRenderer,Xn as createStore,U as createStorageManager,S as createServerCookieManager,mk as createScope,Uf as createSSRSuspense,$e as createRouter,$ as createRouteLocation,ln as createRoute,nk as createRef,ok as createReactive,Mp as createProvideContext,bn as createProject,Vm as createProductionBuild,Ia as createPlaceholder,Fl as createOptimizedBuild,Cm as createNetlifyHandler,uj as createNetlifyClient,aa as createMiddlewareContext,kn as createMiddleware,ap as createLazyObserver,cg as createKeepAliveCache,tm as createKVNamespace,sg as createIslandRegistry,oi as createImgDirective,dk as createImagePlugin,Yj as createImageHandler,bk as createImageDirective,ia as createHeatmapAggregator,xj as createFileManifest,sm as createEnvAccessor,Mb as createEnhancedError,vm as createEdgeHandler,um as createEdgeCache,dh as createDetailedErrorMessage,Am as createDenoHandler,Dj as createDefaultNetlifyConfig,Fc as createCspHeaders,Em as createCookie,pk as createComputed,lk as createComponentInstance,zm as createCloudflareHandler,T as createClientCookieManager,oh as createBuiltinDirectives,Zp as createApp,F as createAnimationTimeline,ho as cover,Vd as convertToCommonJS,oo as contrast,go as contain,Lb as consoleError,zb as configureErrorHandling,Xi as config,pk as computed,Zl as compressResponse,te as composerPattern,se as composer,$k as composeShellWithPage,Ul as componentDirective,_g as componentClientSignalNames,nl as compileTemplate,a as collectRepeatedFlag,wj as collectDeployFiles,ti as clearVideoCache,md as clearTranslationCache,If as clearStoreCache,rj as clearStorage,No as clearSignatureCache,Vh as clearPlaceholderCache,ae as clearOnceStore,oc as clearNonce,Y as clearMiddleware,ak as clearImageCache,rb as clearErrorMessages,zf as clearDevCaches,Ra as clearCustomFilters,ve as clearComposers,Jf as clearComposableCache,eh as clearComponentCache,ci as clearCache,Bn as cleanupLoadingIndicator,Xk as classifyScript,Yk as classifyAllScripts,on as checkTemplateFile,pn as checkTemplate,Af as checkCache,Ko as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Pl as channel,Jm as captureScreenshots,Im as captureScreenshot,yd as cancelPendingLoads,vj as calculateSha1,xh as calculateOptimalWidths,Bf as cacheTemplate,Fi as buildWebComponents,rn as buildVirtualSource,xp as buildViews,$n as buildUrl,Gd as buildSuspenseResolveScript,uq as buildStaticSite,il as buildRuntimeAsset,jl as buildRouterAsset,tq as buildLangPickerScript,Dh as buildImageUrl,Re as buildHtmlAttrs,rl as buildForProduction,Wl as buildComponentLibrary,Lo as buildAuthParams,sl as buildApp,sq as buildAlternateLinks,Um as build,Nl as broadcastPrivate,Ol as broadcastPresence,Kl as broadcast,no as brightness,io as blur,Fo as batchSignUrls,ef as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,vo as auto,e as attributeValue,kl as assetTags,ja as asInvocableStatement,Gq as arrayOf,pq as applyTranslations,ii as applyTransformations,Sg as applySlots,Tl as applyPropDefaults,yo as applyPreset,Te as applyHtmlAttrs,Vc as applyHead,Za as applyFilters,uc as apiCspPreset,y as animationGroupDirective,zi as analyzeVideo,vl as analyzeUsage,Vk as analyzeTemplate,Wk as analyzeProject,vl as analyzeDirectiveUsage,mb as analyticsDirective,en as addStore,dn as addPage,yc as addNonceToInlineContent,fn as addLayout,cn as addComponent,Sm as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,wf as __setSignalsGeneratorsForTest,Le as __setBuildIdForTest,qi as VideoProcessorCache,Eg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Zb as Tokenizer,mn as TemplateTypeChecker,Mm as TEMPLATE_PRESETS,Ib as StxValidationError,Eb as StxSyntaxError,Gb as StxSecurityError,Fb as StxRuntimeError,Hb as StxFileError,Db as StxError,Vp as Show,Hd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Tm as ProductionBuild,Xp as Portal,an as PROJECT_TEMPLATES,xo as PRESETS,Sn as MemorySessionStore,uh as MIME_TYPES,rh as MEDIA_DEFAULT_WIDTHS,th as MEDIA_DEFAULT_FORMATS,dl as LAYOUT_TYPES_FILE,fi as ImageProcessorCache,Wj as ImageProcessingError,Nn as HydrationRuntime,cj as HotReloadServer,ha as HeatmapAggregator,Pe as HTML_CLASS_MARKER,Oe as HTML_ATTRS_MARKER,Op as Fragment,Wp as For,Qb as ErrorLogger,ub as ErrorCodes,kj as EXTERNALIZED_ASSET_DIR,Ij as DeployError,Jj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Lj as DEFAULT_QUALITY,Kh as DEFAULT_PLACEHOLDER_OPTIONS,Kj as DEFAULT_FORMATS,sh as DEFAULT_DPR_VALUES,En as ComponentHMRHandler,Ch as COMMON_SIZES,Ce as COLOR_MODE_BOOT_MARKER,De as COLOR_MODE_BOOT_GLOBAL,Ne as CLOAK_STYLE,Rl as BroadcastServer,Ql as Broadcast,Ie as BUILD_ID_META,Je as BUILD_ID_HEADER,Lh as BLUR_UP_CSS,fq as $path};
|
|
2
|
+
import{$ as Gk,$a as sm,$b as Kn,$c as Lo,$d as Lp,A as qj,Aa as Dl,Ab as cn,Ac as ko,Ad as kp,Ae as qq,B as rj,Ba as El,Bb as dn,Bc as lo,Bd as lp,Be as rq,C as sj,Ca as Fl,Cb as en,Cc as mo,Cd as mp,Ce as sq,D as tj,Da as Sl,Db as fn,Dc as no,Dd as np,De as tq,E as jk,Ea as Tl,Eb as gn,Ec as oo,Ed as op,Ee as uq,F as kk,Fa as Ul,Fb as hn,Fc as po,Fd as pp,Fe as vq,G as lk,Ga as Vl,Gb as jn,Gc as qo,Gd as qp,Ge as wq,H as mk,Ha as Wl,Hb as kn,Hc as ro,Hd as rp,He as xq,I as nk,Ia as _l,Ib as ln,Ic as so,Id as sp,Ie as yq,J as ok,Ja as $l,Jb as mn,Jc as to,Jd as tp,Je as zq,K as pk,Ka as am,Kb as nn,Kc as uo,Kd as up,Ke as Aq,L as qk,La as bm,Lb as on,Lc as vo,Ld as vp,Le as Bq,M as rk,Ma as cm,Mb as pn,Mc as wo,Md as wp,Me as Cq,N as sk,Na as dm,Nb as qn,Nc as xo,Nd as xp,Ne as Dq,O as tk,Oa as em,Ob as xn,Oc as yo,Od as yp,Oe as Eq,P as uk,Pa as fm,Pb as yn,Pc as zo,Pd as zp,Pe as Fq,Q as vk,Qa as gm,Qb as zn,Qc as Ao,Qd as Ap,Qe as Gq,R as wk,Ra as hm,Rb as An,Rc as Bo,Rd as Bp,Re as Hq,S as xk,Sa as im,Sb as Bn,Sc as Co,Sd as Cp,Se as Iq,T as yk,Ta as jm,Tb as Cn,Tc as Do,Td as Dp,Te as Jq,U as zk,Ua as km,Ub as Dn,Uc as Eo,Ud as Ep,Ue as Kq,V as Ak,Va as lm,Vb as En,Vc as Fo,Vd as Fp,Ve as Lq,W as Bk,Wa as mm,Wb as Fn,Wc as Go,Wd as Gp,We as Mq,X as Ck,Xa as nm,Xb as Gn,Xc as Ho,Xd as Hp,Xe as Nq,Y as Dk,Ya as pm,Yb as Hn,Yc as Io,Yd as Ip,Z as Ek,Za as qm,Zb as In,Zc as Jo,Zd as Jp,_ as Fk,_a as rm,_b as Jn,_c as Ko,_d as Kp,aa as Hk,ab as tm,ac as Ln,ad as Mo,ae as Mp,ba as Ik,bb as um,bc as Mn,bd as No,be as Np,ca as Jk,cb as vm,cc as Nn,cd as Oo,ce as Op,da as Kk,db as wm,dc as On,dd as Po,de as Pp,ea as Lk,eb as xm,ec as Pn,ed as Qo,ee as Qp,fa as Mk,fb as ym,fc as Qn,fd as Ro,fe as Rp,ga as Nk,gb as zm,gc as Rn,gd as So,ge as Sp,ha as Ok,hb as Am,hc as Sn,hd as To,he as Tp,ia as Pk,ib as Bm,ic as Tn,id as Uo,ie as Up,ja as Qk,jb as Cm,jc as Un,jd as Vo,je as Vp,ka as Rk,kb as Dm,kc as Vn,kd as Wo,ke as Wp,la as Sk,lb as Em,lc as Wn,ld as Xo,le as Xp,ma as Tk,mb as Fm,mc as Xn,md as Yo,me as Yp,na as Uk,nb as Gm,nc as Yn,nd as Zo,ne as Zp,o as a,oa as Vk,ob as Hm,oc as Zn,od as _o,oe as _p,p as bj,pa as Wk,pb as Km,pc as _n,pd as $o,pe as fq,q as cj,qa as tl,qb as Lm,qc as $n,qd as ap,qe as gq,r as dj,ra as ul,rb as Mm,rc as ao,rd as bp,re as hq,s as ej,sa as vl,sb as Nm,sc as bo,sd as cp,se as iq,t as fj,ta as wl,tb as Tm,tc as co,td as dp,te as jq,u as gj,ua as xl,ub as Um,uc as eo,ud as ep,ue as kq,v as hj,va as yl,vb as Vm,vc as fo,vd as fp,ve as lq,w as ij,wa as zl,wb as Wm,wc as go,wd as gp,we as mq,x as jj,xa as Al,xb as $m,xc as ho,xd as hp,xe as nq,y as oj,ya as Bl,yb as an,yc as io,yd as ip,ye as oq,z as pj,za as Cl,zb as bn,zc as jo,zd as jp,ze as pq}from"./chunk-h5rx09a5.js";import{$e as un,Ye as rn,Ze as sn,_e as tn,af as vn,bf as wn}from"./chunk-mvb60bhh.js";import{cf as Im,df as Jm}from"./chunk-9xh78snm.js";import{ef as Om}from"./chunk-xgejppzh.js";import{ff as sl}from"./chunk-m3qtqheb.js";import{gf as Xl,hf as Yl,if as Zl,jf as om,kf as Pm,lf as Qm,mf as Rm,nf as Sm,of as Xm,pf as Ym,qf as Zm,rf as _m}from"./chunk-te0r2g0x.js";import{Af as Cj,Bf as Dj,Cf as Ej,Df as Fj,Ef as Gj,Ff as Hj,Gf as Ij,sf as uj,tf as vj,uf as wj,vf as xj,wf as yj,xf as zj,yf as Aj,zf as Bj}from"./chunk-fnkxbnka.js";import{Hf as Zj,If as _j,Jf as $j,Kf as ak,Lf as bk,Mf as ck,Nf as dk,Of as ek,Pf as fk,Qf as gk,Rf as hk,Sf as ik}from"./chunk-1mhc4g86.js";import{Tf as Xj,Uf as Yj}from"./chunk-1e25ksp6.js";import{Vf as Si,Xf as Ti}from"./chunk-9b82d4g5.js";import{bg as Jj,cg as Kj,dg as Lj,eg as Mj,fg as Nj,gg as Oj,hg as Pj,jg as Qj,kg as Rj,lg as Sj,mg as Tj,ng as Uj,og as Vj,rg as Wj}from"./chunk-ygr11tgz.js";import{sg as hl,tg as il,ug as jl,vg as kl,wg as nl,xg as rl}from"./chunk-q7tx4b74.js";import{Bg as ml,yg as ll}from"./chunk-ndnc7k2n.js";import{Jg as Xk,Kg as Yk,Lg as Zk,Mg as _k,Ng as $k,Og as al,Pg as bl,Qg as cl,Rg as ol,Sg as pl,Tg as ql}from"./chunk-njvb5hn8.js";import{$g as Nl,Ug as Gl,Vg as Hl,Wg as Il,Xg as Jl,Yg as Kl,Zg as Ll,_g as Ml,ah as Ol,bh as Pl,ch as Ql,dh as Rl}from"./chunk-st5qggks.js";import{eh as Gg}from"./chunk-z2sp0k8d.js";import{fh as Ng,gh as Og,hh as Pg,ih as Qg,jh as Rg,kh as Sg}from"./chunk-237jkeca.js";import{lh as fi,mh as gi,nh as hi,rh as ii,sh as ji,th as ki}from"./chunk-mkm91b6w.js";import{Ah as wi,Bh as xi,Ch as yi,Dh as zi,Eh as Ai,uh as qi,vh as ri,wh as si,xh as ti,yh as ui,zh as vi}from"./chunk-e0460y7f.js";import{Fh as Xh,Gh as Yh,Hh as Zh,Ih as _h,Jh as $h,Lh as ai,Mh as bi,Nh as ci,Oh as di,Ph as ei}from"./chunk-q8szpd6w.js";import{Qh as Tf,Rh as Uf,Sh as Vf,Th as Wf,Uh as Xf}from"./chunk-w0ng9e1m.js";import{Vh as Yf,Wh as Zf,Xh as _f,Yh as $f,Zh as ag}from"./chunk-x13f5bbe.js";import{$h as cg,_h as bg,ai as dg,bi as eg,ci as fg,di as gg,ei as hg}from"./chunk-ymccpdg6.js";import{fi as ig,gi as jg,hi as kg,ii as lg,ji as mg,ki as ng}from"./chunk-vgk5v31k.js";import{mi as og,ni as pg,oi as qg,pi as rg,qi as sg,ri as tg,si as ug,ti as vg,ui as wg,vi as xg,wi as yg,xi as zg,yi as Ag,zi as Bg}from"./chunk-n8zpm7xb.js";import{Bi as Cg,Ci as Dg,Di as Eg,Ei as Fg}from"./chunk-y4hkqsgw.js";import{Ji as sf,Ki as tf,Li as uf,Mi as vf,Ni as wf,Oi as xf,Pi as yf,Qi as zf,Ri as Af,Si as Bf,Ti as Cf}from"./chunk-m1awve2j.js";import{Ui as Hf,Vi as If}from"./chunk-jn49sc7r.js";import{Yi as Jf}from"./chunk-4v5fsrdd.js";import"./chunk-ht51fz7w.js";import{aj as Kf}from"./chunk-fvjh7rx0.js";import{bj as Lf,cj as Mf}from"./chunk-b6jhznkh.js";import{dj as Nf,ej as Of,fj as Pf,gj as Qf,hj as Rf,ij as Sf}from"./chunk-hyrjade7.js";import{jj as Fd,kj as Gd,lj as Hd,mj as Id,nj as Jd,oj as Kd,pj as Ld,qj as Md,rj as Nd,sj as Od,tj as Pd,uj as Qd,vj as Rd,wj as Sd}from"./chunk-a4mcc2dm.js";import{xj as qf,yj as rf}from"./chunk-whq99ytc.js";import{Fj as bf,Gj as cf,Hj as df,Ij as ef,Jj as ff,Kj as gf,Lj as hf,Mj as jf,Nj as kf,Oj as lf,Pj as mf,Qj as nf,Rj as of,Sj as pf}from"./chunk-3es366z4.js";import{kk as $p,lk as aq,mk as bq,nk as cq,ok as dq,pk as eq}from"./chunk-3jfg5kdy.js";import{qk as kj,rk as lj,sk as mj,tk as nj,uk as dl,vk as el,wk as fl,xk as gl}from"./chunk-ycn1vnv2.js";import"./chunk-yckd6ks5.js";import"./chunk-zgvga8rc.js";import{$l as Ka,$m as Mb,$n as ad,$o as fe,$q as Kh,Al as ia,Am as mb,An as lc,Ao as Bd,Ap as Ge,Aq as ah,Ar as Ki,Bn as mc,Bo as Cd,Bp as He,Bq as bh,Br as Li,Cm as nb,Cn as nc,Co as Dd,Cp as Ie,Cq as ch,Cr as Mi,Dl as ja,Dm as ob,Dn as oc,Do as Ed,Dp as Je,Dq as dh,Dr as Ni,El as ka,Em as pb,En as pc,Ep as Ke,Eq as eh,Er as Oi,Fl as la,Fm as qb,Fn as qc,Fo as Td,Fp as Le,Fq as fh,Fr as Pi,Gl as ma,Gm as rb,Gn as rc,Gp as Me,Gq as gh,Gr as Qi,Hl as na,Hm as sb,Hn as sc,Hp as Ne,Hq as hh,Hr as Ri,Im as tb,In as tc,Ip as Oe,Iq as rh,Ir as Ui,Jm as ub,Jn as uc,Jp as Pe,Jq as sh,Jr as Vi,Kl as qa,Km as vb,Kn as vc,Kp as Qe,Kq as th,Kr as Wi,Ll as ra,Lm as wb,Ln as wc,Lp as Re,Lq as uh,Lr as Xi,Ml as ya,Mm as xb,Mn as xc,Mo as Ud,Mp as Se,Mq as vh,Mr as Yi,Nl as za,Nm as yb,Nn as yc,Np as Te,Nq as wh,Nr as Zi,Ol as Aa,Om as zb,On as zc,Oo as Vd,Op as Ue,Oq as xh,Or as _i,Pl as Ba,Pm as Ab,Pn as Ac,Pp as Ve,Pq as yh,Pr as $i,Ql as Ca,Qm as Bb,Qn as Bc,Qo as Wd,Qp as We,Qq as zh,Qr as aj,Rl as Da,Rm as Cb,Rn as Cc,Ro as Xd,Rp as Xe,Rq as Ah,Sl as Ea,Sm as Db,Sn as Dc,So as Yd,Sp as Ye,Sq as Bh,Tl as Fa,Tm as Eb,Tn as Ec,To as Zd,Tp as Ze,Tq as Ch,Ul as Ga,Um as Fb,Un as Fc,Uo as _d,Up as _e,Uq as Dh,Vm as Gb,Vn as Gc,Vo as $d,Vp as $e,Vq as Eh,Wm as Hb,Wn as Hc,Wo as ae,Wp as af,Wq as Fh,Xm as Ib,Xn as Ic,Xo as be,Xq as Gh,Yl as Ha,Ym as Jb,Yn as Zc,Yo as ce,Yp as Df,Yq as Hh,Zl as Ia,Zm as Kb,Zn as _c,Zo as de,Zq as Ih,_l as Ja,_m as Lb,_n as $c,_o as ee,_q as Jh,am as La,an as Nb,ao as bd,ap as ge,ar as Lh,bm as Ma,bn as Ob,bo as cd,bp as he,br as Mh,cn as Pb,co as dd,cp as ie,cr as Nh,dl as s,dn as Qb,do as ed,dp as je,dr as Oh,el as t,em as Na,en as Rb,eo as fd,ep as ke,er as Ph,fl as u,fm as Oa,fn as Sb,fo as gd,fp as le,fr as Qh,gl as v,gm as Pa,gn as Tb,go as hd,gp as me,gr as Rh,hl as w,hm as Qa,hn as Ub,ho as id,hp as ne,hr as Sh,il as x,im as Ra,in as Vb,io as jd,ip as oe,iq as Ef,ir as Th,jl as y,jm as Sa,jn as Wb,jo as kd,jp as pe,jq as Ff,jr as Uh,kl as z,km as Ta,kn as Xb,ko as ld,kp as qe,kq as Gf,kr as Vh,ll as A,lm as Ua,ln as Yb,lo as md,lp as re,lq as Hg,lr as Wh,ml as B,mm as Va,mn as Zb,mo as nd,mp as se,mq as Ig,mr as li,nl as C,nm as Wa,nn as _b,no as od,np as te,nq as Jg,nr as mi,ol as D,om as Xa,on as $b,oo as pd,op as ue,oq as Kg,or as ni,pl as E,pm as Ya,pn as ac,po as qd,pp as ve,pq as Lg,pr as oi,ql as F,qm as Za,qn as bc,qo as rd,qp as we,qq as Mg,qr as pi,rl as G,rm as _a,rn as cc,ro as sd,rp as xe,rq as Tg,rr as Bi,sl as H,sm as $a,sn as dc,so as td,sp as ye,sq as Ug,sr as Ci,tl as I,tn as ec,to as ud,tp as ze,tq as Vg,tr as Di,ul as J,um as gb,un as fc,uo as vd,up as Ae,uq as Wg,ur as Ei,vl as da,vm as hb,vn as gc,vo as wd,vp as Be,vq as Xg,vr as Fi,wl as ea,wm as ib,wn as hc,wo as xd,wp as Ce,wq as Yg,wr as Gi,xl as fa,xm as jb,xn as ic,xo as yd,xp as De,xq as Zg,xr as Hi,yl as ga,ym as kb,yn as jc,yo as zd,yp as Ee,yq as _g,yr as Ii,zl as ha,zm as lb,zn as kc,zo as Ad,zp as Fe,zq as $g,zr as Ji}from"./chunk-6wx32fa5.js";import{$r as n,Rr as d,Sr as e,Tr as f,Ur as g,Vr as h,Wr as i,Xr as j,Yr as k,Zr as l,_r as m,as as o,bs as p,cs as q,ds as r}from"./chunk-8src5smc.js";import{es as b,fs as c}from"./chunk-gcnrdgrq.js";import{gs as oa,hs as pa}from"./chunk-xp3fp266.js";import{is as ih,js as jh,ks as kh,ls as lh,ms as mh,ns as nh,os as oh,ps as ph,qs as qh}from"./chunk-nye9brje.js";import{Es as db,Fs as eb,Gs as fb,rs as ab,ss as bb,us as cb}from"./chunk-31xczh3c.js";import{Hs as sa,Is as ta,Js as ua,Ks as va,Ls as wa,Ms as xa}from"./chunk-cbc56wpd.js";import{$s as Xc,Ns as Jc,Os as Kc,Ps as Lc,Qs as Mc,Rs as Nc,Ss as Oc,Ts as Pc,Us as Qc,Vs as Rc,Ws as Sc,Xs as Tc,Ys as Uc,Zs as Vc,_s as Wc,at as Yc}from"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import{Ft as P,Gt as Q,Ht as R,It as S,Jt as T,Kt as U,Lt as V,Mt as W,Nt as X,Ot as Y,Pt as Z,Qt as _,Rt as $,St as aa,Tt as ba,Vt as ca,pt as K,qt as L,tt as M,yt as N,zt as O}from"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{Ej as writeNetlifyConfig,pl as writeManifest,hk as writeImageManifest,Gn as wrapComponentForHMR,Aq as withDefaults,Ri as webComponentDirectiveHandler,wo as watermark,yp as watchViews,rk as watchMultiple,sk as watchEffect,qk as watch,Gk as waitForStore,wd as waitForLocale,sn as virtualPathFor,Ei as videoDirective,Tb as validators,Eq as validated,id as validateValueEnhanced,Ig as validateTemplate,Bo as validateParams,jd as validateFormEnhanced,np as validateFile,ed as validateFields,dd as validateField,Kg as validateDirective,Dc as validateCspDirectives,Zi as validateConfig,ul as validateComponentScripts,Sl as validateComponentProps,Gf as validateClientScript,Fg as v,Ua as usesSignalsInScript,Xg as userComponentFileExists,lg as useVirtualList,Rc as useTitle,Fk as useStoreOrThrow,Yn as useStore,oj as useStorage,Jp as useSlots,qj as useSessionStorage,Oc as useSeoMeta,Hk as useRouteParams,Jk as useRouteParamOrThrow,Ik as useRouteParam,Rc as usePageTitle,pf as useOptimistic,Lk as useMiddlewareValue,Kk as useMiddlewareState,pj as useLocalStorage,zn as useLoadingIndicator,Mc as useHead,Cg as useForm,Lp as useAttrs,pp as uploadFiles,op as uploadFile,Bk as updateInstance,nf as untrack,lh as unregisterDirective,Ck as unmountInstance,$a as unescapeHtml,vn as typecheckStxFiles,Wg as transpileTypeScript,oq as translate,w as transitionDirective,Ml as toUsers,Ll as toUser,fo as thumbnail,gp as thumbHashToRGBA,hp as thumbHashToDataURL,sf as templateCache,Dn as stxClientHelpers,me as structuredDataDirective,rq as stripLocalePrefix,al as stripDocumentWrapper,pa as stripCommentsAndLiterals,ym as stringToStream,rc as strictCspPreset,Nd as streamingSuspenseDirective,Rd as streamToResponse,Ld as streamTemplateSimple,Fd as streamTemplate,jj as stopHmrServer,Il as stopBroadcasting,va as stateDirName,wa as stateDir,bf as state,Xe as startsDocument,_m as startProductionServer,Om as startInteractive,Hl as startBroadcasting,D as staggerDirective,zo as srcsetUrls,E as springDirective,ac as splitByPipe,tn as sourcePathFor,Go as smartBatchSign,Zg as slotContentHasExpressions,Eo as signUrl,Ug as shouldTranspileTypeScript,gj as shouldReloadOnChange,Jo as shouldRefreshSignature,hj as shouldIgnoreFile,dg as shouldCacheComponent,jo as sharpen,Hq as shape,ua as setStateDir,Pk as setRouteParams,Qk as setMiddlewareState,Dp as setGlobalProvide,ob as setErrorLocale,jk as setCurrentInstance,si as setCachedVideoResult,hi as setCachedImageResult,bi as setCached,Kq as serveStxFile,Mq as serveMultipleStxFiles,bj as serveMarkdownFile,jn as serveFile,Nq as serveApp,hn as serve,Jn as serializeState,om as serializeSetCookie,lo as sepia,Pc as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ii as scopeHTML,Hi as scopeCSS,pe as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,po as saturation,Co as sanitizeParams,Vb as sanitizeFilePath,Wb as sanitizeExpression,Xb as sanitizeDirectiveParams,Ub as sanitizeDirectiveParam,Yb as sanitizeComponentProps,Ob as safeExecuteAsync,Nb as safeExecute,fe as runPreProcessingMiddleware,ge as runPostProcessingMiddleware,Rm as runPageAction,hf as runMountCallbacks,ba as runMiddleware,zk as runHooks,hq as runDoctor,jf as runDestroyCallbacks,ue as runComposers,qo as rotate,Gg as rewriteImagesWithSiblings,bh as resolveTemplatePath,c as resolveStxTargets,Vi as resolveStxDirectories,nq as resolveI18n,co as resize,Ha as resetPlaceholders,Lc as resetHead,In as resetHMRHandler,Bb as resetErrorConfig,Cq as required,La as replacePlaceholders,wp as renderView,Bi as renderVideoComponent,za as renderVendorStyleTags,Sp as renderToString,Tp as renderToStream,Up as renderToDOM,fp as renderThumbhashToCanvas,eq as renderTemplateString,cq as renderTemplate,dq as renderString,Id as renderStreamingPage,Pg as renderSlot,Vf as renderSSRSuspense,Ro as renderProtectedVideo,Qo as renderProtectedImg,Do as renderMediaUpload,bq as renderMarkdownView,fl as renderLayoutTypes,li as renderImgComponent,Zj as renderImageComponent,Tc as renderHtmlAttrs,Sc as renderHead,zp as renderEmail,$g as renderComponentWithSlot,Uc as renderBodyAttrs,Tn as render,tc as relaxedCspPreset,cd as registerValidationRule,Pd as registerStreamingDirectives,_n as registerStoresClient,Nk as registerStore,ne as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,qb as registerErrorMessages,hd as registerEnhancedValidationRule,ih as registerDirective,Cc as registerCspDirectives,Vl as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,nk as ref,Gm as redirect,xa as rebaseOntoStateDir,$i as readMarkdownFile,tf as readFileCached,ok as reactive,uo as quality,Oo as pruneSignatureCache,ei as pruneCache,Bp as provide,aq as protectCodeBlocks,Bq as prop,ye as processVueTemplate,jg as processVirtualListDirectives,ng as processVirtualGridDirectives,Ai as processVideo,fd as processValidateDirective,Dd as processTranslateDirective,Pf as processTransitionDirectives,Sf as processTransitionAttributes,Xc as processTitleDirective,jb as processTemplateBindings,Lf as processTeleportDirectives,Tf as processSuspenseDirectives,ie as processStructuredData,Jd as processStreamDirectives,Ag as processStaticDirectives,de as processStackReplacements,ce as processStackPushDirectives,Qg as processSlots,_k as processShell,we as processServerBindings,je as processSeoDirective,Qd as processSectionDirectives,Be as processScopedStyles,hb as processReactiveBindings,So as processProtectedMedia,tg as processPartialHydrationDirectives,Ff as processOnceDirective,ee as processMiddleware,he as processMetaDirectives,Yc as processMetaDirective,aj as processMarkdownFileDirectives,gh as processMarkdownDirectives,Zd as processLoops,bg as processKeepAliveDirectives,Ef as processJsonDirective,mg as processInfiniteListDirectives,be as processIncludes,ni as processImgComponents,$j as processImageComponents,Oj as processImage,Wc as processHeadDirective,_c as processForms,ad as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,bd as processErrorDirective,ze as processDynamicComponents,Hg as processDirectives,qh as processDirectiveAttributes,Kf as processDeferDirectives,Hc as processCustomDirectives,zc as processCspDirectives,Iq as processComponentProps,Ga as processClientScript,$c as processBasicFormDirectives,Yf as processAsyncDirectives,Ic as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,sd as preloadTranslationsBackground,rd as preloadTranslations,yn as preloadIslandHandlers,Td as preloadIconCollection,Dl as poolStrings,Ti as pluginManager,Of as performLeave,Nf as performEnter,kf as pendingLifecycleCounts,of as peek,_d as partialsCache,Ci as parseVideoDirectiveOptions,ao as parseUrl,ip as parseThumbhashString,gc as parseSwitchBlock,Ng as parseSlots,Og as parseSlotElement,lc as parseScriptDeclarations,Pi as parseSFCComponent,To as parseProtectedArgs,Yd as parseLoopBinding,mi as parseImgComponent,Eh as parseImageUrl,_j as parseImageComponent,Pm as parseFormBody,ic as parseExpressionWithFilters,Dm as parseCookies,_l as parseContainerSelector,dc as parseConditionalBlock,jc as parseArguments,H as parseAnimationShorthand,Dq as optional,El as optimizeTemplate,ek as optimizeImage,fk as optimizeDirectory,Fq as oneOf,$d as onceStore,wk as onUpdated,gb as onUpdate,yk as onUnmounted,Uk as onServer,uk as onMounted,ff as onMount,zg as onHydrated,Hp as onErrorCaptured,gf as onDestroy,hg as onDeactivated,Tk as onClient,vk as onBeforeUpdate,xk as onBeforeUnmount,tk as onBeforeMount,gg as onActivated,bp as observeElement,Hm as notFound,Ge as normalizeCriticalHeadOrder,Gp as nextTick,Yl as negotiateEncoding,P as navigateTo,Ak as mountInstance,z as motionDirective,sc as moderateCspPreset,Cl as minifyHtml,le as metaDirective,Qe as metaDedupKey,bo as mergeParams,Se as mergeHtmlAttrs,Nc as mergeHeadConfigs,wc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,hh as markdownDirectiveHandler,_i as markdownCache,b as looksLikeGlob,qq as localizePath,td as loadTranslationLazy,zd as loadTranslation,Wi as loadStxConfig,_ as loadMiddlewareFromDirectory,ql as loadManifest,Zo as loadElement,Jl as loadChannels,wq as lintStxStrict,$o as lazyLoadAll,_o as lazyLoad,C as keyframeDirective,Qp as jsxs,Rp as jsxDEV,Pp as jsx,Fm as jsonResponse,Od as islandDirective,yb as isTest,bl as isSpaNavigation,Ho as isSignatureValid,lf as isSignal,Mj as isSharpAvailable,rm as isServerEnvironment,Rk as isServer,wb as isProduction,d as isPresentationalRole,Wo as isNativeLazySupported,$p as isMarkdownPath,pd as isLoading,qd as isLoaded,Tg as isJavaScriptScript,Xo as isIntersectionObserverSupported,Uj as isImageFile,Nj as isImageBackendAvailable,Bd as isICUFormat,yg as isHydrated,Yg as isHydrateTrigger,qm as isEdgeEnvironment,xq as isDirectiveKind,xb as isDevelopment,mf as isDerived,fj as isCssOnlyChange,Xl as isCompressible,Sk as isClient,_f as isAsyncComponent,Qm as isActionableMethod,mo as invert,vf as invalidateFileCacheByDir,uf as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Kb as inlineError,mq as injectThemeBootstrap,ke as injectSeoTags,jq as injectSeo,Df as injectRouterScript,ej as injectHotReload,fa as injectHeatmap,xc as injectCspMetaTag,fb as injectCrosswindCSS,Ze as injectConfigHeadTags,Fe as injectColorModeBootScript,Ue as injectCloakStyle,Me as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Cp as inject,Mk as initStoreRegistry,Hj as initNetlify,An as initLoadingIndicator,Yo as initLazyLoading,Nm as initFile,ep as initBlurUp,kp as initAllBlurUp,pi as imgDirective,ck as imageDirective,Ym as hydrateTemplateStream,Xm as hydrateTemplate,xn as hydrateIslands,vg as hydrateIsland,Zm as hydrateFragment,wg as hydrateByStrategy,xg as hydrateAll,Qn as hydrate,gn as htmlResponse,Ve as hoistLeadingHeadTags,He as hoistColorModeBootScript,ga as heatmapDirective,Zh as hashString,Cf as hashFilePath,Xh as hashFile,Yh as hashBuffer,xe as hasVueTemplateSyntax,Xd as hasVariables,Vn as hasStore,Ma as hasPlaceholders,Fj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,Ye as hasDocumentShell,Lg as hasDirectives,h as hasDOMSupport,Xj as handleImageRequest,Ip as handleError,Yp as h,Tj as groupVariantsByFormat,ko as grayscale,$m as gitHash,wl as getUnusedDirectives,ud as getTranslationSync,nd as getTranslationCacheStats,vd as getTranslationAsync,Cd as getTranslation,Aj as getTotalSize,Io as getTimeUntilExpiry,Hf as getStoreScript,Wn as getStoreNames,Un as getStore,tj as getStorageSize,sj as getStorageKeys,ch as getSourceLineInfo,Vg as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ji as getScopeAttribute,af as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Jg as getPositionInfo,Ja as getPlaceholderRegistry,Wh as getPlaceholderCacheStats,Kc as getPageMeta,nc as getNonce,Vj as getMimeType,Z as getMiddlewareNames,W as getMiddleware,od as getLoadingState,xd as getLoadingLocales,Pj as getImageMetadata,Pn as getHydrationRuntime,Ok as getHydratedStoreState,ij as getHmrServer,Jc as getHead,Hn as getHMRHandler,Ih as getFormatExtension,$h as getFileMtime,Sj as getFallbackVariant,sb as getErrorMessage,pb as getErrorLocale,Ab as getErrorConfig,vb as getErrorCodeName,kh as getDirectives,jh as getDirective,kk as getCurrentInstance,vc as getCspPreset,Ec as getCspHeaderName,cb as getCrosswindServeAsset,fh as getComponentCacheStats,ri as getCachedVideoResult,Mo as getCachedSignature,xf as getCachedSignalsRuntime,yf as getCachedRouterScript,Uh as getCachedPlaceholder,gi as getCachedImageResult,ai as getCached,di as getCacheStats,Ke as getBuildId,Gl as getBroadcastServer,Hh as getBestVariant,Qa as getAllFilters,vh as generateWidthSrcset,kg as generateVirtualListCSS,rp as generateVideoPreview,kd as generateValidationScript,sp as generateUploadRuntime,xl as generateTreeShakenBundle,Rf as generateTransitionRuntime,Qf as generateTransitionCSS,vi as generateThumbnails,Nh as generateThumbhashPlaceholder,hm as generateTemplatesDocs,Xf as generateSuspenseRuntime,Wf as generateSuspenseCSS,Kn as generateStateScript,Fh as generateSrcsetData,ki as generateSrcset,Qj as generateSrcSet,wi as generateSpriteSheet,Ap as generateSpaShell,Gh as generateSourceTags,Bh as generateSizesFromBreakpoints,Ah as generateSizesAttribute,Rj as generateSizes,oe as generateSitemapIndex,kq as generateSitemap,Vo as generateSimpleMediaPicker,Po as generateSignatureRuntime,rf as generateSignalsRuntimeDev,qf as generateSignalsRuntime,Fa as generateServerDataBridge,Gi as generateScopeId,Qi as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,qe as generateRobotsTxt,lq as generateRobots,ji as generateResponsiveVariants,Mi as generateReactiveWebComponentTS,Li as generateReactiveWebComponent,Oi as generateReactiveRuntime,Ni as generateReactiveMixin,ui as generatePoster,Th as generatePlaceholderStyle,Sh as generatePlaceholderCSS,Mh as generatePlaceholder,ug as generatePartialHydrationCSS,mc as generateNonce,Bj as generateNetlifyToml,up as generateMinifiedMediaRuntime,tp as generateMediaRuntime,Uo as generateMediaManagerEmbed,ol as generateManifest,Cn as generateLoadingIndicatorHtml,dp as generateLazyLoadRuntime,gl as generateLayoutTypes,Ph as generateLQIP,fg as generateKeepAliveRuntime,eg as generateKeepAliveCSS,Bg as generateIslandManifest,qp as generateImagePreview,gk as generateImageManifest,On as generateHydrationScript,Sd as generateHydrationRuntime,Rn as generateHydrationCSS,og as generateHydrationBootstrap,dj as generateHotReloadScript,ea as generateHeatmapScript,Fn as generateHMRClientScript,xi as generateHLSManifest,Ln as generateEventBindings,zh as generateDprSrcsetWithVariableQuality,yh as generateDprSrcset,We as generateDocumentShell,mm as generateDocs,im as generateDirectivesDocs,ph as generateDirectiveRuntime,re as generateDefaultRobotsTxt,yi as generateDASHManifest,qc as generateCspMetaTag,pc as generateCspHeader,eb as generateCrosswindCSS,Np as generateCompositionRuntime,gm as generateComponentsDocs,pg as generateComponentManifest,em as generateComponentDoc,Rh as generateColorPlaceholder,Ee as generateColorModeBootScript,Dk as generateClientRuntime,_h as generateCacheKey,Da as generateBrowserAutoImportDestructuring,lp as generateBlurUpRuntime,mp as generateBlurUpCSS,ib as generateBindingsRuntime,wh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,ag as generateAsyncComponentRuntime,$f as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,wn as formatTypecheckDiagnostics,qn as formatTypeErrors,Km as formatStxContent,zj as formatSize,O as formatRoutes,Lm as formatMarkdownContent,tb as formatLocalizedError,Ad as formatICU,Cb as formatFilePath,Jb as formatError,iq as formatDoctorReport,jm as formatDocsAsMarkdown,lm as formatDocsAsJson,km as formatDocsAsHtml,to as format,Bl as foldConstants,so as flipVertical,ro as flipHorizontal,hl as fingerprint,un as findRuntimeTypeDeclarations,gq as findPantryPackage,cc as findMatchingEndTag,_b as findMatchingDelimiter,oa as findInterpolationEnd,ec as findIfBlocks,hc as findExpressions,N as findErrorPage,fc as findDirectiveBlocks,yl as findDeadCode,yl as findDeadBranches,$l as findContainerRegion,fm as findComponentFiles,Lq as findCommonDir,yj as filterRequiredFiles,ah as fileExists,Ud as extractVariables,ml as extractTemplateExpressions,Kd as extractStreamBoundaries,Mn as extractState,Rg as extractSlotContent,Wd as extractScriptFromTemplate,ll as extractScriptBlocks,Ka as extractPlaceholders,bc as extractParenthesizedExpression,Ek as extractPageResponseStatus,ca as extractLayoutMetadata,Qh as extractDominantColor,kc as extractDirectiveParams,Mg as extractDirectiveNames,cl as extractContainerContent,cm as extractComponentProps,qg as extractComponentName,dm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,rg as extractBoundProps,$b as extractBalancedExpression,ya as extractAndStripCssImports,Ki as extractAndScopeStyles,la as extractAndProcessEvents,mj as externalizeSharedAssets,nj as externalizeRepeatedAssets,lj as externalizeHtml,_a as evaluateExpression,Al as evaluateConstant,nb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,Pb as errorRecovery,Rb as errorLogger,Mf as ensureTeleportTargets,_e as ensureDocumentShell,gd as enhancedValidationRules,am as enableDevTools,zl as eliminateDeadCode,df as effect,Ao as dprUrls,nm as docsCommand,el as discoverLayoutNames,cp as disconnectObserver,bm as disableDevTools,Sb as devHelpers,Zk as detectShell,pm as detectRuntime,Cj as detectProjectConfig,Jh as detectFormat,tl as detectBuildMode,cf as derived,Gj as deploy,Yi as defineStxConfig,Zn as defineStore,Kp as defineSlots,vq as defineSiteConfig,zq as definePropsWithValidation,yq as defineProps,Si as definePlugin,Qc as definePageMeta,R as defineMiddleware,Dg as defineForm,Fp as defineExpose,Ep as defineEmits,mh as defineDirective,_p as defineCustomElement,Wm as defineConfig,nh as defineClientDirective,Zf as defineAsyncComponent,vp as defaultMediaConfig,ik as defaultImageConfig,ld as defaultI18nConfig,da as defaultHeatmapConfig,Zc as defaultFormClasses,Na as defaultFilters,Gc as defaultCspConfig,Ui as defaultConfig,Jq as default,ab as deepMergeThemes,Ae as dedupeScopedStyles,Oh as decodeThumbhash,Bc as cspNonceDirective,Ac as cspDirective,jp as crossfadeTransition,eo as crop,ig as createVirtualList,Di as createVideoDirective,Bm as createVercelHandler,nn as createTypeChecker,Ed as createTranslateFilter,xm as createTextEncoderStream,Zp as createStxApp,wm as createStreamingResponse,Md as createStreamRenderer,Xn as createStore,U as createStorageManager,S as createServerCookieManager,mk as createScope,Uf as createSSRSuspense,$e as createRouter,$ as createRouteLocation,ln as createRoute,nk as createRef,ok as createReactive,Mp as createProvideContext,bn as createProject,Vm as createProductionBuild,Ia as createPlaceholder,Fl as createOptimizedBuild,Cm as createNetlifyHandler,uj as createNetlifyClient,aa as createMiddlewareContext,kn as createMiddleware,ap as createLazyObserver,cg as createKeepAliveCache,tm as createKVNamespace,sg as createIslandRegistry,oi as createImgDirective,dk as createImagePlugin,Yj as createImageHandler,bk as createImageDirective,ia as createHeatmapAggregator,xj as createFileManifest,sm as createEnvAccessor,Mb as createEnhancedError,vm as createEdgeHandler,um as createEdgeCache,dh as createDetailedErrorMessage,Am as createDenoHandler,Dj as createDefaultNetlifyConfig,Fc as createCspHeaders,Em as createCookie,pk as createComputed,lk as createComponentInstance,zm as createCloudflareHandler,T as createClientCookieManager,oh as createBuiltinDirectives,Zp as createApp,F as createAnimationTimeline,ho as cover,Vd as convertToCommonJS,oo as contrast,go as contain,Lb as consoleError,zb as configureErrorHandling,Xi as config,pk as computed,Zl as compressResponse,te as composerPattern,se as composer,$k as composeShellWithPage,Ul as componentDirective,_g as componentClientSignalNames,nl as compileTemplate,a as collectRepeatedFlag,wj as collectDeployFiles,ti as clearVideoCache,md as clearTranslationCache,If as clearStoreCache,rj as clearStorage,No as clearSignatureCache,Vh as clearPlaceholderCache,ae as clearOnceStore,oc as clearNonce,Y as clearMiddleware,ak as clearImageCache,rb as clearErrorMessages,zf as clearDevCaches,Ra as clearCustomFilters,ve as clearComposers,Jf as clearComposableCache,eh as clearComponentCache,ci as clearCache,Bn as cleanupLoadingIndicator,Xk as classifyScript,Yk as classifyAllScripts,on as checkTemplateFile,pn as checkTemplate,Af as checkCache,Ko as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Pl as channel,Jm as captureScreenshots,Im as captureScreenshot,yd as cancelPendingLoads,vj as calculateSha1,xh as calculateOptimalWidths,Bf as cacheTemplate,Fi as buildWebComponents,rn as buildVirtualSource,xp as buildViews,$n as buildUrl,Gd as buildSuspenseResolveScript,uq as buildStaticSite,il as buildRuntimeAsset,jl as buildRouterAsset,tq as buildLangPickerScript,Dh as buildImageUrl,Re as buildHtmlAttrs,rl as buildForProduction,Wl as buildComponentLibrary,Lo as buildAuthParams,sl as buildApp,sq as buildAlternateLinks,Um as build,Nl as broadcastPrivate,Ol as broadcastPresence,Kl as broadcast,no as brightness,io as blur,Fo as batchSignUrls,ef as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,vo as auto,e as attributeValue,kl as assetTags,ja as asInvocableStatement,Gq as arrayOf,pq as applyTranslations,ii as applyTransformations,Sg as applySlots,Tl as applyPropDefaults,yo as applyPreset,Te as applyHtmlAttrs,Vc as applyHead,Za as applyFilters,uc as apiCspPreset,y as animationGroupDirective,zi as analyzeVideo,vl as analyzeUsage,Vk as analyzeTemplate,Wk as analyzeProject,vl as analyzeDirectiveUsage,mb as analyticsDirective,en as addStore,dn as addPage,yc as addNonceToInlineContent,fn as addLayout,cn as addComponent,Sm as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,wf as __setSignalsGeneratorsForTest,Le as __setBuildIdForTest,qi as VideoProcessorCache,Eg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Zb as Tokenizer,mn as TemplateTypeChecker,Mm as TEMPLATE_PRESETS,Ib as StxValidationError,Eb as StxSyntaxError,Gb as StxSecurityError,Fb as StxRuntimeError,Hb as StxFileError,Db as StxError,Vp as Show,Hd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Tm as ProductionBuild,Xp as Portal,an as PROJECT_TEMPLATES,xo as PRESETS,Sn as MemorySessionStore,uh as MIME_TYPES,rh as MEDIA_DEFAULT_WIDTHS,th as MEDIA_DEFAULT_FORMATS,dl as LAYOUT_TYPES_FILE,fi as ImageProcessorCache,Wj as ImageProcessingError,Nn as HydrationRuntime,cj as HotReloadServer,ha as HeatmapAggregator,Pe as HTML_CLASS_MARKER,Oe as HTML_ATTRS_MARKER,Op as Fragment,Wp as For,Qb as ErrorLogger,ub as ErrorCodes,kj as EXTERNALIZED_ASSET_DIR,Ij as DeployError,Jj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Lj as DEFAULT_QUALITY,Kh as DEFAULT_PLACEHOLDER_OPTIONS,Kj as DEFAULT_FORMATS,sh as DEFAULT_DPR_VALUES,En as ComponentHMRHandler,Ch as COMMON_SIZES,Ce as COLOR_MODE_BOOT_MARKER,De as COLOR_MODE_BOOT_GLOBAL,Ne as CLOAK_STYLE,Rl as BroadcastServer,Ql as Broadcast,Ie as BUILD_ID_META,Je as BUILD_ID_HEADER,Lh as BLUR_UP_CSS,fq as $path};
|