@stacksjs/stx 0.2.285 → 0.2.286

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.
Files changed (50) hide show
  1. package/dist/{chunk-n3qyd366.js → chunk-2q630fj4.js} +1 -1
  2. package/dist/{chunk-fk6ssg32.js → chunk-3ehv1by2.js} +1 -1
  3. package/dist/{chunk-9rkntp0z.js → chunk-4cqgbcy7.js} +15 -15
  4. package/dist/{chunk-z7cwrmgt.js → chunk-56ywtaff.js} +1 -1
  5. package/dist/{chunk-m2harpd3.js → chunk-61sj52qh.js} +1 -1
  6. package/dist/{chunk-kpy77ys3.js → chunk-6cye5m9f.js} +1 -1
  7. package/dist/{chunk-43r6p08p.js → chunk-7ej1d910.js} +1 -1
  8. package/dist/{chunk-7gbwa2ph.js → chunk-829pcte9.js} +1 -1
  9. package/dist/{chunk-hzw1ekq3.js → chunk-8emkx9ja.js} +1 -1
  10. package/dist/{chunk-zcmtqan3.js → chunk-9th1wd1d.js} +1 -1
  11. package/dist/{chunk-f2s94353.js → chunk-ah4e6e09.js} +1 -1
  12. package/dist/{chunk-yqaky7fa.js → chunk-ajbfeey7.js} +1 -1
  13. package/dist/{chunk-0hdkedwq.js → chunk-an2539bs.js} +1 -1
  14. package/dist/{chunk-jxjt1szw.js → chunk-b7tjq91c.js} +1 -1
  15. package/dist/{chunk-xqxg3fck.js → chunk-e2w23g2r.js} +8 -8
  16. package/dist/{chunk-y1segp76.js → chunk-e4akvata.js} +1 -1
  17. package/dist/{chunk-71nr1avx.js → chunk-f4k2a7vs.js} +1 -1
  18. package/dist/{chunk-9v5s9ax8.js → chunk-hs0387tm.js} +1 -1
  19. package/dist/{chunk-3y623mek.js → chunk-j9g11dzx.js} +1 -1
  20. package/dist/{chunk-bxskmetn.js → chunk-jbfpc4z7.js} +1 -1
  21. package/dist/{chunk-f6x9bh8n.js → chunk-jg0axas8.js} +1 -1
  22. package/dist/{chunk-cb74rvec.js → chunk-jrk8rhwt.js} +1 -1
  23. package/dist/{chunk-stw3ej3d.js → chunk-kawk5ve9.js} +1 -1
  24. package/dist/{chunk-ada449cq.js → chunk-kmhr1z0m.js} +1 -1
  25. package/dist/{chunk-9aw94jhm.js → chunk-m3yaa0v5.js} +4 -4
  26. package/dist/{chunk-gkmtkzdm.js → chunk-m7xnzt2t.js} +1 -1
  27. package/dist/{chunk-f8b83xbw.js → chunk-mkn6qqc7.js} +1 -1
  28. package/dist/{chunk-d34fnbpc.js → chunk-n3jyv9z6.js} +1 -1
  29. package/dist/{chunk-ggrzaenz.js → chunk-nh21517m.js} +1 -1
  30. package/dist/{chunk-dy2y790t.js → chunk-qbeffw17.js} +1 -1
  31. package/dist/{chunk-1k957wj9.js → chunk-qk8tbcwk.js} +1 -1
  32. package/dist/{chunk-d10btecr.js → chunk-qsr3bqav.js} +1 -1
  33. package/dist/{chunk-7g88q9ft.js → chunk-rhs51nmz.js} +2 -2
  34. package/dist/{chunk-a1g1zsbh.js → chunk-s7pc68jf.js} +1 -1
  35. package/dist/{chunk-v4f08c2r.js → chunk-vb10qph4.js} +1 -1
  36. package/dist/{chunk-n32gnc22.js → chunk-vy8v5xdb.js} +1 -1
  37. package/dist/{chunk-1xfqy79h.js → chunk-w0sqz3cb.js} +1 -1
  38. package/dist/{chunk-60c5bvke.js → chunk-w8smn72c.js} +1 -1
  39. package/dist/{chunk-492g6g4g.js → chunk-wxk2pbrh.js} +1 -1
  40. package/dist/{chunk-y3qng57q.js → chunk-x1nw1p8z.js} +1 -1
  41. package/dist/{chunk-t0ghjghe.js → chunk-xg57nax9.js} +1 -1
  42. package/dist/{chunk-8ns2r0we.js → chunk-xz55q3gr.js} +1 -1
  43. package/dist/{chunk-egez576q.js → chunk-y8n174xq.js} +2 -2
  44. package/dist/cli.js +7 -7
  45. package/dist/client-script-bundler.js +7 -7
  46. package/dist/craft-entry.js +1 -1
  47. package/dist/craft.js +1 -1
  48. package/dist/pwa.js +1 -1
  49. package/dist/ssg.js +2 -2
  50. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Fp as X,um as W}from"./chunk-9rkntp0z.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
2
+ import{Fp as X,um as W}from"./chunk-4cqgbcy7.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
3
3
  ${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
4
4
  `)}else{console.log(`
5
5
  ${j.bold}Available Commands:${j.reset}
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Up as D,Yp as T}from"./chunk-9rkntp0z.js";import{$s as N}from"./chunk-zcmtqan3.js";import{dv as L}from"./chunk-sskbegsz.js";import Q from"fs";import Y from"path";var b=new Map,V=new Map;async function v(j){let z;for(let K=0;K<3;K++)try{let W=(await Q.promises.stat(j)).mtime.getTime(),J=V.get(j);if(J&&J.mtime===W)return J.content;let X=await Bun.file(j).text(),U=(await Q.promises.stat(j)).mtime.getTime();if(U!==W)continue;return V.set(j,{content:X,mtime:U}),X}catch(I){z=I;break}throw V.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function E(j){V.delete(j)}function F(j){for(let B of V.keys())if(B.startsWith(j))V.delete(B)}var $=null,G=null,k=null;function R(j){k=j}async function S(j=!1){let B=k??await import("./chunk-fskfes13.js");if(j)return B.generateSignalsRuntimeDev();if($===null)$=B.generateSignalsRuntime();return $}var q=null;async function _(){if(q===null){let{getRouterScript:j}=await import("./chunk-2g9jwgs7.js");q=j()}return q}function g(){V.clear(),T(),N(),$=null,G=null,q=null}function y(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function C(j,B){try{if(!B.cachePath)return null;let z=Y.resolve(B.cachePath),K=Y.join(z,`${M(j)}.html`),I=Y.join(z,`${M(j)}.meta.json`);if(!await D(K)||!await D(I))return null;let W=await Bun.file(I).text(),J=JSON.parse(W);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==y(B))return null;if((await Q.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Z of J.dependencies)if(await D(Z)){if((await Q.promises.stat(Z)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function u(j,B,z,K){try{if(!K.cachePath)return;let I=Y.resolve(K.cachePath);await Q.promises.mkdir(I,{recursive:!0});let W=Y.join(I,`${M(j)}.html`),J=Y.join(I,`${M(j)}.meta.json`),X=await Q.promises.stat(j);await Bun.write(W,B);let Z={sourcePath:j,mtime:X.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:y(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Z,null,2)),b.set(j,{output:B,mtime:X.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var O=16;function M(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,O)}
2
+ import{Up as D,Yp as T}from"./chunk-4cqgbcy7.js";import{$s as N}from"./chunk-9th1wd1d.js";import{dv as L}from"./chunk-sskbegsz.js";import Q from"fs";import Y from"path";var b=new Map,V=new Map;async function v(j){let z;for(let K=0;K<3;K++)try{let W=(await Q.promises.stat(j)).mtime.getTime(),J=V.get(j);if(J&&J.mtime===W)return J.content;let X=await Bun.file(j).text(),U=(await Q.promises.stat(j)).mtime.getTime();if(U!==W)continue;return V.set(j,{content:X,mtime:U}),X}catch(I){z=I;break}throw V.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function E(j){V.delete(j)}function F(j){for(let B of V.keys())if(B.startsWith(j))V.delete(B)}var $=null,G=null,k=null;function R(j){k=j}async function S(j=!1){let B=k??await import("./chunk-fskfes13.js");if(j)return B.generateSignalsRuntimeDev();if($===null)$=B.generateSignalsRuntime();return $}var q=null;async function _(){if(q===null){let{getRouterScript:j}=await import("./chunk-2g9jwgs7.js");q=j()}return q}function g(){V.clear(),T(),N(),$=null,G=null,q=null}function y(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function C(j,B){try{if(!B.cachePath)return null;let z=Y.resolve(B.cachePath),K=Y.join(z,`${M(j)}.html`),I=Y.join(z,`${M(j)}.meta.json`);if(!await D(K)||!await D(I))return null;let W=await Bun.file(I).text(),J=JSON.parse(W);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==y(B))return null;if((await Q.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Z of J.dependencies)if(await D(Z)){if((await Q.promises.stat(Z)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function u(j,B,z,K){try{if(!K.cachePath)return;let I=Y.resolve(K.cachePath);await Q.promises.mkdir(I,{recursive:!0});let W=Y.join(I,`${M(j)}.html`),J=Y.join(I,`${M(j)}.meta.json`),X=await Q.promises.stat(j);await Bun.write(W,B);let Z={sourcePath:j,mtime:X.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:y(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Z,null,2)),b.set(j,{output:B,mtime:X.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var O=16;function M(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,O)}
3
3
  export{b as Oj,v as Pj,E as Qj,F as Rj,R as Sj,S as Tj,_ as Uj,g as Vj,C as Wj,u as Xj,M as Yj};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ef as a}from"./chunk-3y623mek.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as buildApp};
2
+ import{Ef as a}from"./chunk-j9g11dzx.js";import"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as buildApp};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Np as M,Rl as x}from"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import{_s as B,at as P}from"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
2
+ import{Np as M,Rl as x}from"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import{_s as B,at as P}from"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
3
3
  ${A.transformSync(j).trim()}`);for(let $ of I)C.add($)}catch($){console.warn(`[stx] framework composable ${G.basename(q)} could not be bundled:`,$)}}let Y=Q.filter((q)=>!C.has(q)&&!g(H,q));if(Y.length>0)console.warn(`[stx] could not bundle ${Y.join(", ")} from @stacksjs/stx/composables \u2014 `+"calls to them will throw ReferenceError in the browser. Import them explicitly so the bundler inlines them, or use a runtime equivalent from window.stx.");if(W.length===0)return K.set(z,""),null;let k=[...C].map((q)=>` try { if (!(${JSON.stringify(q)} in __s)) { __s[${JSON.stringify(q)}] = ${q}; if (!(${JSON.stringify(q)} in window)) window[${JSON.stringify(q)}] = ${q}; } } catch (e) {}`).join(`
4
4
  `),w=`<script data-stx-framework-composables>
5
5
  ;(function(){
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{so as V}from"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import{dv as F}from"./chunk-sskbegsz.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
2
+ import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{so as V}from"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import{dv as F}from"./chunk-sskbegsz.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
3
3
  <script>
4
4
  (function() {
5
5
  const ws = new WebSocket('${z}');
@@ -556,7 +556,7 @@ window.__stxPerformance = {
556
556
 
557
557
  window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
558
558
  </script>
559
- `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-y3qng57q.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-y3qng57q.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
559
+ `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-x1nw1p8z.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-x1nw1p8z.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
560
560
  `)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
561
561
  `)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
562
562
  <html lang="en" class="${Z.darkClass||"dark"}">
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{tk as m}from"./chunk-egez576q.js";import{dv as z}from"./chunk-sskbegsz.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
2
+ import{tk as m}from"./chunk-y8n174xq.js";import{dv as z}from"./chunk-sskbegsz.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
3
3
  <script>
4
4
  (function() {
5
5
  'use strict';
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Oj as a,Pj as b,Qj as c,Rj as d,Sj as e,Tj as f,Uj as g,Vj as h,Wj as i,Xj as j,Yj as k}from"./chunk-dy2y790t.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,k as hashFilePath,f as getCachedSignalsRuntime,g as getCachedRouterScript,h as clearDevCaches,i as checkCache,j as cacheTemplate,e as __setSignalsGeneratorsForTest};
2
+ import{Oj as a,Pj as b,Qj as c,Rj as d,Sj as e,Tj as f,Uj as g,Vj as h,Wj as i,Xj as j,Yj as k}from"./chunk-qbeffw17.js";import"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,k as hashFilePath,f as getCachedSignalsRuntime,g as getCachedRouterScript,h as clearDevCaches,i as checkCache,j as cacheTemplate,e as __setSignalsGeneratorsForTest};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$l as l,Ql as c,Tl as d,Ul as e,Vl as f,Wl as g,Xl as h,Yl as i,Zl as j,_l as k,am as m}from"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import{Vs as a,Ws as b}from"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
2
+ import{$l as l,Ql as c,Tl as d,Ul as e,Vl as f,Wl as g,Xl as h,Yl as i,Zl as j,_l as k,am as m}from"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import{Vs as a,Ws as b}from"./chunk-52mh63sp.js";import"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$i as w,_i as O,aj as Z}from"./chunk-9n0gvfrg.js";import{$k as R,gl as U,il as T}from"./chunk-9aw94jhm.js";import{Np as k,Ol as E,Pl as L,Rl as M,cr as C,no as W}from"./chunk-9rkntp0z.js";import{Ut as B}from"./chunk-c6fw33zh.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd()});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
2
+ import{$i as w,_i as O,aj as Z}from"./chunk-9n0gvfrg.js";import{$k as R,gl as U,il as T}from"./chunk-m3yaa0v5.js";import{Np as k,Ol as E,Pl as L,Rl as M,cr as C,no as W}from"./chunk-4cqgbcy7.js";import{Ut as B}from"./chunk-c6fw33zh.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd()});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
3
3
  ${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
4
4
 
5
5
  `),x=`;(function(){
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as tl,$a as nn,$b as Fo,$c as Fp,$d as Fq,A as dk,Aa as xm,Ab as Zn,Ac as ep,Ad as eq,Ae as kr,B as ek,Ba as ym,Bb as _n,Bc as fp,Bd as fq,Be as lr,C as fk,Ca as Lm,Cb as $n,Cc as gp,Cd as gq,Ce as mr,D as gk,Da as Mm,Db as ao,Dc as hp,Dd as hq,De as nr,E as Yk,Ea as Nm,Eb as bo,Ec as ip,Ed as iq,Ee as or,F as Zk,Fa as Om,Fb as co,Fc as jp,Fd as jq,Fe as pr,G as _k,Ga as Pm,Gb as eo,Gc as kp,Gd as kq,Ge as qr,H as $k,Ha as Qm,Hb as fo,Hc as lp,Hd as lq,He as rr,I as al,Ia as Um,Ib as go,Ic as mp,Id as mq,Ie as sr,J as bl,Ja as Vm,Jb as ho,Jc as np,Jd as nq,Je as tr,K as cl,Ka as Wm,Kb as io,Kc as op,Kd as oq,Ke as ur,L as dl,La as Xm,Lb as jo,Lc as pp,Ld as pq,Le as vr,M as el,Ma as Ym,Mb as qo,Mc as qp,Md as qq,Me as wr,N as fl,Na as Zm,Nb as ro,Nc as rp,Nd as rq,Ne as xr,O as gl,Oa as _m,Ob as so,Oc as sp,Od as sq,Oe as yr,P as hl,Pa as $m,Pb as to,Pc as tp,Pd as tq,Pe as zr,Q as il,Qa as an,Qb as uo,Qc as up,Qd as uq,Qe as Ar,R as jl,Ra as bn,Rb as vo,Rc as vp,Rd as vq,Re as Br,S as kl,Sa as cn,Sb as wo,Sc as wp,Sd as wq,Se as Cr,T as ll,Ta as dn,Tb as xo,Tc as xp,Td as xq,Te as Dr,U as ml,Ua as en,Ub as yo,Uc as yp,Ud as yq,Ue as Er,V as nl,Va as fn,Vb as zo,Vc as zp,Vd as zq,Ve as Fr,W as ol,Wa as hn,Wb as Ao,Wc as Ap,Wd as Aq,We as Gr,X as pl,Xa as jn,Xb as Bo,Xc as Bp,Xd as Bq,Y as ql,Ya as kn,Yb as Co,Yc as Cp,Yd as Cq,Z as rl,Za as ln,Zb as Do,Zc as Dp,Zd as Dq,_ as sl,_a as mn,_b as Eo,_c as Ep,_d as Eq,aa as ul,ab as on,ac as Go,ad as Gp,ae as Gq,ba as vl,bb as pn,bc as Ho,bd as Hp,be as Hq,ca as wl,cb as qn,cc as Io,cd as Ip,ce as Iq,da as xl,db as rn,dc as Jo,dd as Jp,de as Jq,ea as yl,eb as sn,ec as Ko,ed as Kp,ee as Kq,fa as zl,fb as tn,fc as Lo,fd as Lp,fe as Lq,ga as Al,gb as un,gc as Mo,gd as Mp,ge as Mq,ha as Bl,hb as vn,hc as No,hd as Np,he as Nq,ia as Cl,ib as wn,ic as Oo,id as Op,ie as Oq,ja as Dl,jb as xn,jc as Po,jd as Pp,je as Pq,ka as El,kb as yn,kc as Qo,kd as Qp,ke as Qq,la as Fl,lb as zn,lc as Ro,ld as Rp,le as Rq,ma as Gl,mb as An,mc as So,md as Sp,me as Sq,na as Hl,nb as Dn,nc as To,nd as Tp,ne as Zq,o as a,oa as Il,ob as En,oc as Uo,od as Up,oe as _q,p as Qj,pa as mm,pb as Fn,pc as Vo,pd as Vp,pe as $q,q as Rj,qa as nm,qb as Gn,qc as Wo,qd as Wp,qe as ar,r as Sj,ra as om,rb as Mn,rc as Xo,rd as Xp,re as br,s as Tj,sa as pm,sb as Nn,sc as Yo,sd as Yp,se as cr,t as Uj,ta as qm,tb as On,tc as Zo,td as Zp,te as dr,u as Vj,ua as rm,ub as Pn,uc as _o,ud as _p,ue as er,v as Wj,va as sm,vb as Un,vc as $o,vd as $p,ve as fr,w as Xj,wa as tm,wb as Vn,wc as ap,wd as aq,we as gr,x as Yj,xa as um,xb as Wn,xc as bp,xd as bq,xe as hr,y as bk,ya as vm,yb as Xn,yc as cp,yd as cq,ye as ir,z as ck,za as wm,zb as Yn,zc as dp,zd as dq,ze as jr}from"./chunk-xqxg3fck.js";import{$e as Qk,Xe as Mk,Ye as Nk,Ze as Ok,_e as Pk,af as Rk,bf as Sk,cf as Tk,df as Uk,ef as Vk,ff as Wk,gf as Xk}from"./chunk-0fgcnv6y.js";import{hf as ko,if as lo,jf as mo,kf as no,lf as oo,mf as po}from"./chunk-bxskmetn.js";import{nf as Bn,of as Cn}from"./chunk-n3ggrhb3.js";import{pf as Hn}from"./chunk-ggrzaenz.js";import{Af as Jm,Bf as Km,qf as zm,rf as Am,sf as Bm,tf as Cm,uf as Dm,vf as Em,wf as Fm,xf as Gm,yf as Hm,zf as Im}from"./chunk-vqxmxgaj.js";import{Cf as Kk,Df as Lk}from"./chunk-5aq35j2e.js";import{Ef as lm}from"./chunk-3y623mek.js";import{Ff as Rm,Gf as Sm,Hf as Tm,If as gn,Jf as In,Kf as Jn,Lf as Kn,Mf as Ln,Nf as Qn,Of as Rn,Pf as Sn,Qf as Tn}from"./chunk-t0ghjghe.js";import{$f as rk,Rf as hk,Sf as ik,Tf as jk,Uf as kk,Vf as lk,Wf as mk,Xf as nk,Yf as ok,Zf as pk,_f as qk,ag as sk,bg as tk,cg as uk,dg as vk}from"./chunk-nx5qkm8k.js";import{eg as dj,fg as ej,gg as fj,hg as gj,ig as hj,jg as ij,kg as jj,lg as kj,mg as lj,ng as mj,og as nj}from"./chunk-e4hhz9j3.js";import{pg as Fj,rg as Gj}from"./chunk-bz820epz.js";import{Ag as zk,Bg as Ak,Cg as Bk,Dg as Ck,Fg as Dk,Gg as Ek,Hg as Fk,Ig as Gk,Jg as Hk,Kg as Ik,Ng as Jk,xg as wk,yg as xk,zg as yk}from"./chunk-9zndrzb3.js";import{Og as am,Pg as bm,Qg as cm,Rg as dm,Sg as gm,Tg as km}from"./chunk-9v5s9ax8.js";import{Ug as em,Xg as fm}from"./chunk-0hdkedwq.js";import{dh as Jl,eh as Kl,fh as Ll,gh as Ml,hh as Nl,ih as Ol,jh as Pl,kh as Ql,lh as Rl,mh as Sl,nh as Tl,oh as Ul,ph as Vl,qh as Wl,rh as Xl,sh as hm,th as im,uh as jm}from"./chunk-kpy77ys3.js";import{vh as ph,wh as qh,xh as rh,yh as sh}from"./chunk-49kk0s96.js";import{Dh as th}from"./chunk-w3ycm4na.js";import{Eh as Ah,Fh as Bh,Gh as Ch,Hh as Dh,Ih as Eh,Jh as Fh}from"./chunk-f2s94353.js";import{Kh as Ui,Lh as Vi,Mh as Wi,Qh as Xi,Rh as Yi,Sh as Zi}from"./chunk-mb518a4n.js";import{$h as Ri,Th as Ki,Uh as Li,Vh as Mi,Wh as Ni,Xh as Oi,Zh as Pi,_h as Qi,ai as Si,bi as Ti}from"./chunk-74cv4ta1.js";import{ci as Ag,di as Bg,ei as Cg,fi as Dg,gi as Eg,hi as Fg}from"./chunk-wcm80anz.js";import{ii as Gg,ji as Hg,ki as Ig,li as Jg,mi as Kg}from"./chunk-y7m2dpd3.js";import{ni as Lg,oi as Mg,pi as Ng,qi as Og,ri as Pg}from"./chunk-9y0g8kzt.js";import{si as Qg,ti as Rg,ui as Sg,vi as Tg,wi as Ug,xi as Vg,yi as Wg}from"./chunk-t6nseeb9.js";import{Ai as Yg,Bi as Zg,Ci as _g,Di as $g,Ei as ah,zi as Xg}from"./chunk-xttsqmkm.js";import{Gi as bh,Hi as ch,Ii as dh,Ji as eh,Ki as fh,Li as gh,Mi as hh,Ni as ih,Oi as jh,Pi as kh,Qi as lh,Ri as mh,Si as nh,Ti as oh}from"./chunk-54st8g2j.js";import{Vi as ug,Wi as vg}from"./chunk-1xfqy79h.js";import{Zi as wg}from"./chunk-cb74rvec.js";import"./chunk-9n0gvfrg.js";import{bj as xg}from"./chunk-7q9mwh4v.js";import{cj as yg,dj as zg}from"./chunk-refwkt87.js";import{ej as ie,fj as je,gj as ke,hj as le,ij as me,jj as ne,kj as oe,lj as pe,mj as qe,nj as re,oj as se,pj as te,qj as ue,rj as ve}from"./chunk-ada449cq.js";import{sj as We,tj as Xe}from"./chunk-g3fy0tw8.js";import{Aj as Ie,Bj as Je,Cj as Ke,Dj as Le,Ej as Me,Fj as Ne,Gj as Oe,Hj as Pe,Ij as Qe,Jj as Re,Kj as Se,Lj as Te,Mj as Ue,Nj as Ve}from"./chunk-w95sp0k9.js";import{Oj as Ye,Pj as Ze,Qj as _e,Rj as $e,Sj as af,Tj as bf,Uj as cf,Vj as df,Wj as ef,Xj as ff,Yj as gf}from"./chunk-dy2y790t.js";import{qk as Tq,rk as Uq,sk as Vq,tk as Wq,uk as Xq,vk as Yq}from"./chunk-egez576q.js";import{Ak as Yl,Bk as Zl,Ck as _l,Dk as $l,wk as Zj,xk as _j,yk as $j,zk as ak}from"./chunk-zn5jgmqw.js";import"./chunk-58f0mthg.js";import"./chunk-9aw94jhm.js";import{$l as ac,$m as dd,$n as He,$o as Qf,$p as Wh,$q as Ej,Al as Oa,Am as Fc,An as Ed,Ao as pf,Ap as pg,Aq as Ei,Bl as ib,Bm as Gc,Bn as Fd,Bo as qf,Bp as qg,Bq as Fi,Cl as jb,Cm as Hc,Cn as Wd,Co as rf,Cp as rg,Cq as Gi,Dl as kb,Dm as Ic,Dn as Xd,Do as sf,Dp as sg,Dq as Hi,El as lb,Em as Jc,En as Yd,Eo as tf,Ep as tg,Eq as Ii,Fl as mb,Fn as Zd,Fo as uf,Fp as uh,Fq as Ji,Gl as nb,Gm as Kc,Gn as _d,Go as vf,Gp as vh,Gq as _i,Hm as Lc,Hn as $d,Ho as wf,Hp as wh,Hq as $i,Im as Mc,In as ae,Io as xf,Ip as xh,Iq as aj,Jl as Eb,Jm as Nc,Jn as be,Jo as yf,Jp as yh,Jq as bj,Kl as Fb,Km as Oc,Kn as ce,Ko as zf,Kp as zh,Kq as cj,Ll as Gb,Lm as Pc,Ln as de,Lo as Af,Lp as Gh,Lq as oj,Ml as Hb,Mm as Qc,Mn as ee,Mo as Bf,Mp as Hh,Mq as pj,Nl as Ib,Nm as Rc,Nn as fe,No as Cf,Np as Ih,Nq as qj,Om as Sc,On as ge,Oo as Df,Op as Jh,Oq as rj,Pm as Tc,Pn as he,Po as Ef,Pp as Kh,Pq as sj,Ql as Lb,Qm as Uc,Qo as Ff,Qp as Lh,Qq as tj,Rl as Mb,Rm as Vc,Rn as ze,Ro as Gf,Rp as Mh,Rq as uj,Sl as Nb,Sm as Wc,Sn as Ae,So as Hf,Sp as Nh,Sq as vj,Tl as Ub,Tm as Xc,Tn as Be,To as If,Tp as Oh,Tq as wj,Ul as Vb,Um as Yc,Un as Ce,Uo as Jf,Up as Ph,Uq as xj,Vl as Wb,Vm as Zc,Vn as De,Vo as Kf,Vp as Qh,Vq as yj,Wl as Xb,Wm as _c,Wn as Ee,Wo as Lf,Wp as Rh,Wq as zj,Xl as Yb,Xm as $c,Xn as Fe,Xo as Mf,Xp as Sh,Xq as Aj,Yl as Zb,Ym as ad,Yo as Nf,Yp as Th,Yq as Bj,Zl as _b,Zm as bd,Zo as Of,Zp as Uh,Zq as Cj,_l as $b,_m as cd,_n as Ge,_o as Pf,_p as Vh,_q as Dj,am as bc,an as ed,ap as Rf,aq as ei,ar as Hj,bm as cc,bn as fd,bo as hf,bp as Sf,bq as fi,br as Ij,cm as dc,cn as gd,cp as Tf,cq as gi,cr as Jj,dm as ec,dn as hd,dp as Uf,dq as hi,dr as Kj,em as fc,en as id,ep as Vf,eq as ii,er as Lj,fm as gc,fn as jd,fp as Wf,fq as ji,fr as Mj,gm as hc,gn as kd,gp as Xf,gq as ki,gr as Nj,hn as ld,hp as Yf,hq as li,hr as Oj,in as md,ip as Zf,iq as mi,ir as Pj,jl as xa,jm as ic,jn as nd,jp as _f,jq as ni,kl as ya,km as jc,kn as od,kp as $f,kq as oi,ll as za,lm as kc,ln as pd,lp as ag,lq as pi,ml as Aa,mm as lc,mn as qd,mp as bg,mq as qi,nl as Ba,nm as mc,nn as rd,np as cg,nq as ri,ol as Ca,om as nc,on as sd,op as dg,oq as si,pl as Da,pm as oc,pn as td,pp as eg,pq as ti,ql as Ea,qm as pc,qn as ud,qp as fg,qq as ui,rl as Fa,rm as qc,rn as vd,rp as gg,rq as vi,sl as Ga,sm as rc,sn as wd,so as jf,sp as hg,sq as wi,tl as Ha,tm as sc,tn as xd,tp as ig,tq as xi,ul as Ia,um as tc,un as yd,uo as kf,up as jg,uq as yi,vl as Ja,vm as uc,vn as zd,vp as kg,vq as zi,wl as Ka,wm as vc,wn as Ad,wo as lf,wp as lg,wq as Ai,xl as La,xm as wc,xn as Bd,xo as mf,xp as mg,xq as Bi,yl as Ma,ym as Dc,yn as Cd,yo as nf,yp as ng,yq as Ci,zl as Na,zm as Ec,zn as Dd,zo as of,zp as og,zq as Di}from"./chunk-9rkntp0z.js";import{$r as M,Ar as s,As as na,Br as t,Bs as oa,Cr as u,Cs as pa,Dr as v,Ds as qa,Er as w,Es as ra,Fr as x,Fs as sa,Gr as y,Gs as ta,Hr as z,Hs as ua,Ir as A,Is as va,Jr as B,Js as wa,Kr as C,Lr as D,Mr as E,Nr as F,Or as G,Pr as H,Qr as I,Rr as J,Sr as K,Tr as L,as as N,bs as O,cs as P,ds as Q,es as R,fs as S,gs as T,hs as U,is as V,jr as b,js as W,kr as c,ks as X,lr as d,ls as Y,mr as e,ms as Z,nr as f,ns as _,or as g,os as $,pr as h,ps as aa,qr as i,qs as ba,rr as j,rs as ca,sr as k,ss as da,tr as l,ts as ea,ur as m,us as fa,vr as n,vs as ia,wr as o,ws as ja,xr as p,xs as ka,yr as q,ys as la,zr as r,zs as ma}from"./chunk-q68xmak4.js";import{Ks as Xh,Ls as Yh,Ms as Zh,Ns as _h,Os as $h,Ps as ai,Qs as bi,Rs as ci,Ss as di}from"./chunk-c0an64km.js";import{Ts as ga,Us as ha}from"./chunk-t1k5dpbr.js";import{Vs as Jb,Ws as Kb}from"./chunk-52mh63sp.js";import{dt as xc,et as yc,gt as zc,pt as Ac,qt as Bc,rt as Cc}from"./chunk-zcmtqan3.js";import{st as Ob,tt as Pb,ut as Qb,vt as Rb,wt as Sb,xt as Tb}from"./chunk-39f40yc4.js";import{At as ye,yt as we,zt as xe}from"./chunk-ysnk7x79.js";import{Bt as Gd,Ct as Hd,Dt as Id,Et as Jd,Ft as Kd,Gt as Ld,Ht as Md,It as Nd,Jt as Od,Kt as Pd,Lt as Qd,Mt as Rd,Nt as Sd,Ot as Td,Pt as Ud,Qt as Vd}from"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import{$t as vb,Ut as ob,Vt as pb,Wt as qb,Xt as rb,Yt as sb,Zt as tb,_t as ub,au as wb,bu as xb,cu as yb,du as zb,eu as Ab,fu as Bb,gu as Cb,hu as Db}from"./chunk-c6fw33zh.js";import{Bu as Ua,Cu as Va,Du as Wa,Eu as Xa,Fu as Ya,Gu as Za,Hu as _a,Iu as $a,Ju as ab,Ku as bb,Lu as cb,Mu as db,Nu as eb,Ou as fb,Pu as gb,Ru as hb,lu as Pa,mu as Qa,pu as Ra,uu as Sa,vu as Ta}from"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{rk as writeNetlifyConfig,im as writeManifest,Wk as writeImageManifest,zo as wrapComponentForHMR,tr as withDefaults,Ej as webComponentDirectiveHandler,op as watermark,qq as watchViews,el as watchMultiple,fl as watchEffect,dl as watch,De as warmImagePlaceholders,sl as waitForStore,X as waitForLocale,lo as virtualPathFor,rj as videoDirective,G as validators,xr as validated,fe as validateValueEnhanced,vh as validateTemplate,tp as validateParams,ge as validateFormEnhanced,fq as validateFile,be as validateFields,ae as validateField,xh as validateDirective,Ad as validateCspDirectives,Mj as validateConfig,nm as validateComponentScripts,Lm as validateComponentProps,tg as validateClientScript,sh as v,pc as usesSignalsInScript,ub as usesReactiveRuntime,Kh as userComponentFileExists,_g as useVirtualList,Od as useTitle,rl as useStoreOrThrow,Ro as useStore,bk as useStorage,Bq as useSlots,dk as useSessionStorage,Ld as useSeoMeta,tl as useRouteParams,vl as useRouteParamOrThrow,ul as useRouteParam,Od as usePageTitle,Ve as useOptimistic,xl as useMiddlewareValue,wl as useMiddlewareState,ck as useLocalStorage,so as useLoadingIndicator,Jd as useHead,ph as useForm,Dq as useAttrs,hq as uploadFiles,gq as uploadFile,ol as updateInstance,Te as untrack,_h as unregisterDirective,pl as unmountInstance,wc as unescapeHtml,oo as typecheckStxFiles,Jh as transpileTypeScript,gr as translate,Ba as transitionDirective,Yb as transformAutoImports,Fm as toUsers,Em as toUser,Zo as thumbnail,_p as thumbHashToRGBA,$p as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Ye as templateCache,Sc as syncRecordedResponse,wo as stxClientHelpers,Df as structuredDataDirective,jr as stripLocalePrefix,Vl as stripDocumentWrapper,Kb as stripCommentsAndLiterals,rn as stringToStream,od as strictCspPreset,qe as streamingSuspenseDirective,ue as streamToResponse,oe as streamTemplateSimple,ie as streamTemplate,Yj as stopHmrServer,Bm as stopBroadcasting,Rb as stateDirName,Sb as stateDir,Ie as state,ng as startsDocument,Tn as startProductionServer,Hn as startInteractive,Am as startBroadcasting,lr as stampLocaleLayoutGroup,Ia as staggerDirective,rp as srcsetUrls,Ja as springDirective,Zc as splitByPipe,Rl as spaNavVaryHeaders,mo as sourcePathFor,yp as smartBatchSign,Mh as slotContentHasExpressions,wp as signUrl,Hh as shouldTranspileTypeScript,Vj as shouldReloadOnChange,Bp as shouldRefreshSignature,Wj as shouldIgnoreFile,Sg as shouldCacheComponent,bp as sharpen,Ar as shape,Qb as setStateDir,Bl as setRouteParams,Cl as setMiddlewareState,Ce as setImagePlaceholder,vq as setGlobalProvide,b as setErrorLocale,Yk as setCurrentInstance,fj as setCachedVideoResult,Wi as setCachedImageResult,Qi as setCached,Dr as serveStxFile,Fr as serveMultipleStxFiles,Qj as serveMarkdownFile,bo as serveFile,Gr as serveApp,ao as serve,Co as serializeState,gn as serializeSetCookie,dp as sepia,Md as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,vj as scopeHTML,uj as scopeCSS,Gf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,hp as saturation,up as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,wf as runPreProcessingMiddleware,xf as runPostProcessingMiddleware,Kn as runPageAction,Oe as runMountCallbacks,gb as runMiddleware,ml as runHooks,$q as runDoctor,Pe as runDestroyCallbacks,Lf as runComposers,ip as rotate,th as rewriteImagesWithSiblings,Tc as responseBindings,Qh as resolveTemplatePath,ha as resolveStxTargets,Ij as resolveStxDirectories,fr as resolveI18n,Xo as resize,cc as resetPlaceholders,Id as resetHead,Bo as resetHMRHandler,o as resetErrorConfig,vr as required,gc as replacePlaceholders,oq as renderView,oj as renderVideoComponent,Vb as renderVendorStyleTags,Kq as renderToString,Lq as renderToStream,Mq as renderToDOM,Zp as renderThumbhashToCanvas,Yq as renderTemplateString,Wq as renderTemplate,Xq as renderString,le as renderStreamingPage,Ch as renderSlot,Ig as renderSSRSuspense,Jp as renderProtectedVideo,Ip as renderProtectedImg,vp as renderMediaUpload,Vq as renderMarkdownView,_l as renderLayoutTypes,_i as renderImgComponent,Mk as renderImageComponent,Qd as renderHtmlAttrs,Pd as renderHead,rq as renderEmail,Oh as renderComponentWithSlot,Rd as renderBodyAttrs,Mo as render,qd as relaxedCspPreset,$d as registerValidationRule,se as registerStreamingDirectives,To as registerStoresClient,zl as registerStore,Ef as registerSeoDirectives,_a as registerMiddleware,kc as registerFilters,jc as registerFilter,d as registerErrorMessages,ee as registerEnhancedValidationRule,Xh as registerDirective,zd as registerCspDirectives,Om as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,al as ref,zn as redirect,Oc as recordResponseStatus,Pc as recordResponseHeader,Tb as rebaseOntoStateDir,Qc as readResponseStatus,Rc as readResponseHeaders,Oj as readMarkdownFile,Ze as readFileCached,bl as reactive,mp as quality,Gp as pruneSignatureCache,Ti as pruneCache,tq as provide,Uq as protectCodeBlocks,ur as prop,Of as processVueTemplate,Yg as processVirtualListDirectives,ah as processVirtualGridDirectives,nj as processVideo,ce as processValidateDirective,ea as processTranslateDirective,Cg as processTransitionDirectives,Fg as processTransitionAttributes,Ud as processTitleDirective,Gc as processTemplateBindings,yg as processTeleportDirectives,Gg as processSuspenseDirectives,zf as processStructuredData,me as processStreamDirectives,Uc as processStatusDirective,nh as processStaticDirectives,uf as processStackReplacements,tf as processStackPushDirectives,Dh as processSlots,Tl as processShell,Fe as processServerBindings,Af as processSeoDirective,te as processSectionDirectives,Rf as processScopedStyles,Ec as processReactiveBindings,Kp as processProtectedMedia,gh as processPartialHydrationDirectives,sg as processOnceDirective,vf as processMiddleware,yf as processMetaDirectives,Vd as processMetaDirective,Pj as processMarkdownFileDirectives,Vh as processMarkdownDirectives,of as processLoops,Qg as processKeepAliveDirectives,rg as processJsonDirective,$g as processInfiniteListDirectives,sf as processIncludes,aj as processImgComponents,Ok as processImageComponents,Bk as processImage,Td as processHeadDirective,Xd as processForms,Zd as processFormInputDirectives,tc as processExpressions,Hb as processEventDirectives,_d as processErrorDirective,Pf as processDynamicComponents,uh as processDirectives,di as processDirectiveAttributes,xg as processDeferDirectives,Ed as processCustomDirectives,wd as processCspDirectives,Br as processComponentProps,bc as processClientScript,Yd as processBasicFormDirectives,Lg as processAsyncDirectives,Fd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ye as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,ro as preloadIslandHandlers,Ee as preloadIconCollection,wm as poolStrings,Gj as pluginManager,Ae as placeholdersWarmed,Bg as performLeave,Ag as performEnter,Qe as pendingLifecycleCounts,Ue as peek,pf as partialsCache,pj as parseVideoDirectiveOptions,Vo as parseUrl,aq as parseThumbhashString,dd as parseSwitchBlock,Ah as parseSlots,Bh as parseSlotElement,id as parseScriptDeclarations,Cj as parseSFCComponent,Lp as parseProtectedArgs,nf as parseLoopBinding,$i as parseImgComponent,ri as parseImageUrl,Nk as parseImageComponent,In as parseFormBody,fd as parseExpressionWithFilters,Pm as parseDefaults,wn as parseCookies,Ll as parseContainerSelector,ad as parseConditionalBlock,gd as parseArguments,Ma as parseAnimationShorthand,wr as optional,xm as optimizeTemplate,Tk as optimizeImage,Uk as optimizeDirectory,yr as oneOf,qf as onceStore,jl as onUpdated,Dc as onUpdate,ll as onUnmounted,Gl as onServer,hl as onMounted,Me as onMount,mh as onHydrated,zq as onErrorCaptured,Ne as onDestroy,Wg as onDeactivated,Fl as onClient,il as onBeforeUpdate,kl as onBeforeUnmount,gl as onBeforeMount,Vg as onActivated,Vp as observeElement,An as notFound,Wf as normalizeCriticalHeadOrder,yq as nextTick,Sm as negotiateEncoding,Ua as navigateTo,nl as mountInstance,Ea as motionDirective,pd as moderateCspPreset,vm as minifyHtml,Cf as metaDirective,fg as metaDedupKey,Wo as mergeParams,hg as mergeHtmlAttrs,Kd as mergeHeadConfigs,yc as mergeCssConfig,td as mergeCspDirectives,Ra as matchRoute,Wh as markdownDirectiveHandler,Nj as markdownCache,ga as looksLikeGlob,ir as localizePath,U as loadTranslationLazy,_ as loadTranslation,Jj as loadStxConfig,db as loadMiddlewareFromDirectory,jm as loadManifest,Rp as loadElement,Cm as loadChannels,pr as lintStxStrict,Tp as lazyLoadAll,Sp as lazyLoad,Ha as keyframeDirective,Iq as jsxs,Jq as jsxDEV,Hq as jsx,yn as jsonResponse,re as islandDirective,l as isTest,Wl as isSpaNavigation,Pl as isSpaNavRequest,zp as isSignatureValid,Re as isSignal,zk as isSharpAvailable,kn as isServerEnvironment,Dl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Op as isNativeLazySupported,Tq as isMarkdownPath,Q as isLoading,R as isLoaded,Gh as isJavaScriptScript,Pp as isIntersectionObserverSupported,Hk as isImageFile,Ak as isImageBackendAvailable,aa as isICUFormat,lh as isHydrated,Lh as isHydrateTrigger,Mc as isHttpStatus,jn as isEdgeEnvironment,qr as isDirectiveKind,k as isDevelopment,Se as isDerived,Uj as isCssOnlyChange,Rm as isCompressible,El as isClient,Ng as isAsyncComponent,Jn as isActionableMethod,ep as invert,$e as invalidateFileCacheByDir,_e as invalidateFileCache,sc as interpolateScriptsInTemplate,qc as interpolateScriptExpressions,rc as interpolateScriptAttributes,x as inlineError,er as injectThemeBootstrap,Bf as injectSeoTags,br as injectSeo,hf as injectRouterScript,Tj as injectHotReload,kb as injectHeatmap,Cc as injectCss,ud as injectCspMetaTag,pg as injectConfigHeadTags,Vf as injectColorModeBootScript,jg as injectCloakStyle,ag as injectBuildId,Xb as injectBrowserCoreAutoImports,Ic as injectAnalytics,uq as inject,yl as initStoreRegistry,uk as initNetlify,to as initLoadingIndicator,Qp as initLazyLoading,Gn as initFile,Yp as initBlurUp,cq as initAllBlurUp,cj as imgDirective,Rk as imageDirective,Rn as hydrateTemplateStream,Qn as hydrateTemplate,qo as hydrateIslands,ih as hydrateIsland,Sn as hydrateFragment,jh as hydrateByStrategy,kh as hydrateAll,Jo as hydrate,$n as htmlResponse,lg as hoistLeadingHeadTags,Xf as hoistColorModeBootScript,lb as heatmapDirective,Mi as hashString,gf as hashFilePath,Ki as hashFile,Li as hashBuffer,Nf as hasVueTemplateSyntax,mf as hasVariables,Oo as hasStore,hc as hasPlaceholders,sk as hasNetlifyConfig,ab as hasMiddleware,Ib as hasEventDirectives,og as hasDocumentShell,yh as hasDirectives,ma as hasDOMSupport,Kk as handleImageRequest,Aq as handleError,Qq as h,Gk as groupVariantsByFormat,cp as grayscale,Un as gitHash,pm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,nk as getTotalSize,Ap as getTimeUntilExpiry,ug as getStoreScript,Po as getStoreNames,No as getStore,gk as getStorageSize,fk as getStorageKeys,Rh as getSourceLineInfo,Ih as getSharedTranspiler,la as getScreenReaderOnlyStyle,wj as getScopeAttribute,He as getRouteParams,Mb as getPublicEnvDefine,Nb as getPublicEnv,wh as getPositionInfo,ec as getPlaceholderRegistry,Ji as getPlaceholderCacheStats,Hd as getPageMeta,kd as getNonce,Ik as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ze as getImagePlaceholder,Ck as getImageMetadata,we as getImageDelivery,Io as getHydrationRuntime,Al as getHydratedStoreState,Xj as getHmrServer,Gd as getHead,Ao as getHMRHandler,vi as getFormatExtension,Oi as getFileMtime,Fk as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Zh as getDirectives,Yh as getDirective,Zk as getCurrentInstance,zc as getCssServeAsset,sd as getCspPreset,Bd as getCspHeaderName,Uh as getComponentCacheStats,ej as getCachedVideoResult,Ep as getCachedSignature,bf as getCachedSignalsRuntime,cf as getCachedRouterScript,Hi as getCachedPlaceholder,Vi as getCachedImageResult,Pi as getCached,Si as getCacheStats,_f as getBuildId,zm as getBroadcastServer,ui as getBestVariant,lc as getAllFilters,ii as generateWidthSrcset,Zg as generateVirtualListCSS,jq as generateVideoPreview,he as generateValidationScript,kq as generateUploadRuntime,qm as generateTreeShakenBundle,Eg as generateTransitionRuntime,Dg as generateTransitionCSS,ij as generateThumbnails,Ai as generateThumbhashPlaceholder,$m as generateTemplatesDocs,Kg as generateSuspenseRuntime,Jg as generateSuspenseCSS,Do as generateStateScript,si as generateSrcsetData,Zi as generateSrcset,Dk as generateSrcSet,jj as generateSpriteSheet,sq as generateSpaShell,ti as generateSourceTags,oi as generateSizesFromBreakpoints,ni as generateSizesAttribute,Ek as generateSizes,Ff as generateSitemapIndex,cr as generateSitemap,Np as generateSimpleMediaPicker,Hp as generateSignatureRuntime,Xe as generateSignalsRuntimeDev,We as generateSignalsRuntime,ac as generateServerDataBridge,tj as generateScopeId,Dj as generateSFCWebComponent,Fb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Hf as generateRobotsTxt,dr as generateRobots,Yi as generateResponsiveVariants,zj as generateReactiveWebComponentTS,yj as generateReactiveWebComponent,Bj as generateReactiveRuntime,Aj as generateReactiveMixin,hj as generatePoster,Gi as generatePlaceholderStyle,Fi as generatePlaceholderCSS,zi as generatePlaceholder,hh as generatePartialHydrationCSS,jd as generateNonce,ok as generateNetlifyToml,mq as generateMinifiedMediaRuntime,lq as generateMediaRuntime,Mp as generateMediaManagerEmbed,hm as generateManifest,vo as generateLoadingIndicatorHtml,Xp as generateLazyLoadRuntime,$l as generateLayoutTypes,Ci as generateLQIP,Ug as generateKeepAliveRuntime,Tg as generateKeepAliveCSS,oh as generateIslandManifest,iq as generateImagePreview,Vk as generateImageManifest,Ho as generateHydrationScript,ve as generateHydrationRuntime,Ko as generateHydrationCSS,bh as generateHydrationBootstrap,Sj as generateHotReloadScript,jb as generateHeatmapScript,yo as generateHMRClientScript,kj as generateHLSManifest,Eo as generateEventBindings,mi as generateDprSrcsetWithVariableQuality,li as generateDprSrcset,mg as generateDocumentShell,en as generateDocs,an as generateDirectivesDocs,ci as generateDirectiveRuntime,If as generateDefaultRobotsTxt,lj as generateDASHManifest,Bc as generateCss,nd as generateCspMetaTag,md as generateCspHeader,Fq as generateCompositionRuntime,_m as generateComponentsDocs,ch as generateComponentManifest,Ym as generateComponentDoc,Ei as generateColorPlaceholder,Uf as generateColorModeBootScript,ql as generateClientRuntime,Ni as generateCacheKey,_b as generateBrowserAutoImportDestructuring,dq as generateBlurUpRuntime,eq as generateBlurUpCSS,Fc as generateBindingsRuntime,ji as generateAutoWidthSrcset,Zb as generateAutoImportDestructuring,Pg as generateAsyncComponentRuntime,Og as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Hc as generateAnalyticsScript,po as formatTypecheckDiagnostics,jo as formatTypeErrors,Dn as formatStxContent,mk as formatSize,Ta as formatRoutes,En as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,ar as formatDoctorReport,bn as formatDocsAsMarkdown,dn as formatDocsAsJson,cn as formatDocsAsHtml,lp as format,um as foldConstants,kp as flipVertical,jp as flipHorizontal,am as fingerprint,no as findRuntimeTypeDeclarations,_q as findPantryPackage,$c as findMatchingEndTag,Xc as findMatchingDelimiter,Jb as findInterpolationEnd,bd as findIfBlocks,ed as findExpressions,Sa as findErrorPage,cd as findDirectiveBlocks,rm as findDeadCode,rm as findDeadBranches,Ml as findContainerRegion,Zm as findComponentFiles,Er as findCommonDir,lk as filterRequiredFiles,Ph as fileExists,jf as extractVariables,fm as extractTemplateExpressions,ne as extractStreamBoundaries,Fo as extractState,Eh as extractSlotContent,lf as extractScriptFromTemplate,em as extractScriptBlocks,fc as extractPlaceholders,_c as extractParenthesizedExpression,Nc as extractPageResponseStatus,hb as extractLayoutMetadata,Di as extractDominantColor,hd as extractDirectiveParams,zh as extractDirectiveNames,Xl as extractContainerContent,Wm as extractComponentProps,dh as extractComponentName,Xm as extractComponentDescription,Ac as extractClassNames,$b as extractBridgeData,eh as extractBoundProps,Yc as extractBalancedExpression,Ub as extractAndStripCssImports,xj as extractAndScopeStyles,Gb as extractAndProcessEvents,$j as externalizeSharedAssets,ak as externalizeRepeatedAssets,_j as externalizeHtml,vc as evaluateExpression,tm as evaluateConstant,Vc as evaluateAuthExpression,oc as escapeHtmlValue,nc as escapeHtml,C as errorRecovery,E as errorLogger,zg as ensureTeleportTargets,qg as ensureDocumentShell,de as enhancedValidationRules,Um as enableDevTools,sm as eliminateDeadCode,Ke as effect,sp as dprUrls,fn as docsCommand,Zl as discoverLayoutNames,Wp as disconnectObserver,Vm as disableDevTools,F as devHelpers,Sl as detectShell,hn as detectRuntime,pk as detectProjectConfig,wi as detectFormat,mm as detectBuildMode,Je as derived,tk as deploy,Lj as defineStxConfig,So as defineStore,Cq as defineSlots,or as defineSiteConfig,sr as definePropsWithValidation,rr as defineProps,Fj as definePlugin,Nd as definePageMeta,Wa as defineMiddleware,qh as defineForm,xq as defineExpose,wq as defineEmits,$h as defineDirective,Sq as defineCustomElement,Pn as defineConfig,ai as defineClientDirective,Mg as defineAsyncComponent,nq as defaultMediaConfig,Xk as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Wd as defaultFormClasses,ic as defaultFilters,Dd as defaultCspConfig,Hj as defaultConfig,Cr as default,xc as deepMergeThemes,Qf as dedupeScopedStyles,Bi as decodeThumbhash,yd as cspNonceDirective,xd as cspDirective,bq as crossfadeTransition,Yo as crop,Xg as createVirtualList,qj as createVideoDirective,un as createVercelHandler,go as createTypeChecker,fa as createTranslateFilter,qn as createTextEncoderStream,Rq as createStxApp,pn as createStreamingResponse,pe as createStreamRenderer,Qo as createStore,Za as createStorageManager,Xa as createServerCookieManager,$k as createScope,Hg as createSSRSuspense,Ge as createRouter,eb as createRouteLocation,eo as createRoute,al as createRef,bl as createReactive,Eq as createProvideContext,Wn as createProject,On as createProductionBuild,dc as createPlaceholder,ym as createOptimizedBuild,vn as createNetlifyHandler,hk as createNetlifyClient,fb as createMiddlewareContext,co as createMiddleware,Up as createLazyObserver,Rg as createKeepAliveCache,mn as createKVNamespace,fh as createIslandRegistry,bj as createImgDirective,Sk as createImagePlugin,Lk as createImageHandler,Qk as createImageDirective,nb as createHeatmapAggregator,kk as createFileManifest,ln as createEnvAccessor,z as createEnhancedError,on as createEdgeHandler,nn as createEdgeCache,Sh as createDetailedErrorMessage,tn as createDenoHandler,qk as createDefaultNetlifyConfig,Cd as createCspHeaders,xn as createCookie,cl as createComputed,_k as createComponentInstance,sn as createCloudflareHandler,Ya as createClientCookieManager,bi as createBuiltinDirectives,Rq as createApp,Ka as createAnimationTimeline,$o as cover,kf as convertToCommonJS,gp as contrast,_o as contain,y as consoleError,m as configureErrorHandling,Kj as config,cl as computed,Tm as compressResponse,Kf as composerPattern,Jf as composer,Ul as composeShellWithPage,Nm as componentDirective,Nh as componentClientSignalNames,gm as compileTemplate,a as collectRepeatedFlag,jk as collectDeployFiles,kg as cloakStyleFragment,gj as clearVideoCache,N as clearTranslationCache,vg as clearStoreCache,ek as clearStorage,Fp as clearSignatureCache,Ii as clearPlaceholderCache,rf as clearOnceStore,ld as clearNonce,bb as clearMiddleware,Be as clearImagePlaceholders,xe as clearImageDeliveryCatalog,Pk as clearImageCache,e as clearErrorMessages,df as clearDevCaches,mc as clearCustomFilters,Mf as clearComposers,wg as clearComposableCache,Th as clearComponentCache,Ri as clearCache,uo as cleanupLoadingIndicator,Jl as classifyScript,Kl as classifyAllScripts,ho as checkTemplateFile,io as checkTemplate,ef as checkCache,Cp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Im as channel,Cn as captureScreenshots,Bn as captureScreenshot,Z as cancelPendingLoads,ik as calculateSha1,ki as calculateOptimalWidths,ff as cacheTemplate,sj as buildWebComponents,ko as buildVirtualSource,pq as buildViews,Uo as buildUrl,je as buildSuspenseResolveScript,nr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,bm as buildRuntimeAsset,cm as buildRouterAsset,mr as buildLangPickerScript,qi as buildImageUrl,bg as buildIdFragment,gg as buildHtmlAttrs,km as buildForProduction,Qm as buildComponentLibrary,Dp as buildAuthParams,lm as buildApp,kr as buildAlternateLinks,Nn as build,Gm as broadcastPrivate,Hm as broadcastPresence,Dm as broadcast,fp as brightness,ap as blur,Db as blankInertHtmlRegions,xp as batchSignUrls,Le as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,np as auto,ja as attributeValue,dm as assetTags,Eb as asInvocableStatement,zr as arrayOf,hr as applyTranslations,Xi as applyTransformations,Fh as applySlots,Mm as applyPropDefaults,qp as applyPreset,ig as applyHtmlAttrs,Sd as applyHead,uc as applyFilters,Ql as appendVary,rd as apiCspPreset,Da as animationGroupDirective,mj as analyzeVideo,om as analyzeUsage,Hl as analyzeTemplate,Il as analyzeProject,om as analyzeDirectiveUsage,Jc as analyticsDirective,Zn as addStore,Yn as addPage,vd as addNonceToInlineContent,_n as addLayout,Xn as addComponent,Ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,af as __setSignalsGeneratorsForTest,$f as __setBuildIdForTest,dj as VideoProcessorCache,rh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Wc as Tokenizer,fo as TemplateTypeChecker,Fn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Nq as Show,ke as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Wb as STX_AUTO_IMPORTS,Pb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Nl as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Kc as RESPONSE_STATUS_KEY,Lc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mn as ProductionBuild,Pq as Portal,Vn as PROJECT_TEMPLATES,pp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Lo as MemorySessionStore,hi as MIME_TYPES,ei as MEDIA_DEFAULT_WIDTHS,gi as MEDIA_DEFAULT_FORMATS,Yl as LAYOUT_TYPES_FILE,Ui as ImageProcessorCache,Jk as ImageProcessingError,Go as HydrationRuntime,Rj as HotReloadServer,mb as HeatmapAggregator,eg as HTML_CLASS_MARKER,dg as HTML_ATTRS_MARKER,Gq as Fragment,Oq as For,Ol as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Zj as EXTERNALIZED_ASSET_DIR,vk as DeployError,wk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Ob as DEFAULT_STATE_DIR,yk as DEFAULT_QUALITY,xi as DEFAULT_PLACEHOLDER_OPTIONS,xk as DEFAULT_FORMATS,fi as DEFAULT_DPR_VALUES,xo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,pi as COMMON_SIZES,Sf as COLOR_MODE_BOOT_MARKER,Tf as COLOR_MODE_BOOT_GLOBAL,cg as CLOAK_STYLE,Km as BroadcastServer,Jm as Broadcast,Yf as BUILD_ID_META,Zf as BUILD_ID_HEADER,Lb as BROWSER_CORE_IMPORTS,yi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Zq as $path};
2
+ import{$ as tl,$a as nn,$b as Fo,$c as Fp,$d as Fq,A as dk,Aa as xm,Ab as Zn,Ac as ep,Ad as eq,Ae as kr,B as ek,Ba as ym,Bb as _n,Bc as fp,Bd as fq,Be as lr,C as fk,Ca as Lm,Cb as $n,Cc as gp,Cd as gq,Ce as mr,D as gk,Da as Mm,Db as ao,Dc as hp,Dd as hq,De as nr,E as Yk,Ea as Nm,Eb as bo,Ec as ip,Ed as iq,Ee as or,F as Zk,Fa as Om,Fb as co,Fc as jp,Fd as jq,Fe as pr,G as _k,Ga as Pm,Gb as eo,Gc as kp,Gd as kq,Ge as qr,H as $k,Ha as Qm,Hb as fo,Hc as lp,Hd as lq,He as rr,I as al,Ia as Um,Ib as go,Ic as mp,Id as mq,Ie as sr,J as bl,Ja as Vm,Jb as ho,Jc as np,Jd as nq,Je as tr,K as cl,Ka as Wm,Kb as io,Kc as op,Kd as oq,Ke as ur,L as dl,La as Xm,Lb as jo,Lc as pp,Ld as pq,Le as vr,M as el,Ma as Ym,Mb as qo,Mc as qp,Md as qq,Me as wr,N as fl,Na as Zm,Nb as ro,Nc as rp,Nd as rq,Ne as xr,O as gl,Oa as _m,Ob as so,Oc as sp,Od as sq,Oe as yr,P as hl,Pa as $m,Pb as to,Pc as tp,Pd as tq,Pe as zr,Q as il,Qa as an,Qb as uo,Qc as up,Qd as uq,Qe as Ar,R as jl,Ra as bn,Rb as vo,Rc as vp,Rd as vq,Re as Br,S as kl,Sa as cn,Sb as wo,Sc as wp,Sd as wq,Se as Cr,T as ll,Ta as dn,Tb as xo,Tc as xp,Td as xq,Te as Dr,U as ml,Ua as en,Ub as yo,Uc as yp,Ud as yq,Ue as Er,V as nl,Va as fn,Vb as zo,Vc as zp,Vd as zq,Ve as Fr,W as ol,Wa as hn,Wb as Ao,Wc as Ap,Wd as Aq,We as Gr,X as pl,Xa as jn,Xb as Bo,Xc as Bp,Xd as Bq,Y as ql,Ya as kn,Yb as Co,Yc as Cp,Yd as Cq,Z as rl,Za as ln,Zb as Do,Zc as Dp,Zd as Dq,_ as sl,_a as mn,_b as Eo,_c as Ep,_d as Eq,aa as ul,ab as on,ac as Go,ad as Gp,ae as Gq,ba as vl,bb as pn,bc as Ho,bd as Hp,be as Hq,ca as wl,cb as qn,cc as Io,cd as Ip,ce as Iq,da as xl,db as rn,dc as Jo,dd as Jp,de as Jq,ea as yl,eb as sn,ec as Ko,ed as Kp,ee as Kq,fa as zl,fb as tn,fc as Lo,fd as Lp,fe as Lq,ga as Al,gb as un,gc as Mo,gd as Mp,ge as Mq,ha as Bl,hb as vn,hc as No,hd as Np,he as Nq,ia as Cl,ib as wn,ic as Oo,id as Op,ie as Oq,ja as Dl,jb as xn,jc as Po,jd as Pp,je as Pq,ka as El,kb as yn,kc as Qo,kd as Qp,ke as Qq,la as Fl,lb as zn,lc as Ro,ld as Rp,le as Rq,ma as Gl,mb as An,mc as So,md as Sp,me as Sq,na as Hl,nb as Dn,nc as To,nd as Tp,ne as Zq,o as a,oa as Il,ob as En,oc as Uo,od as Up,oe as _q,p as Qj,pa as mm,pb as Fn,pc as Vo,pd as Vp,pe as $q,q as Rj,qa as nm,qb as Gn,qc as Wo,qd as Wp,qe as ar,r as Sj,ra as om,rb as Mn,rc as Xo,rd as Xp,re as br,s as Tj,sa as pm,sb as Nn,sc as Yo,sd as Yp,se as cr,t as Uj,ta as qm,tb as On,tc as Zo,td as Zp,te as dr,u as Vj,ua as rm,ub as Pn,uc as _o,ud as _p,ue as er,v as Wj,va as sm,vb as Un,vc as $o,vd as $p,ve as fr,w as Xj,wa as tm,wb as Vn,wc as ap,wd as aq,we as gr,x as Yj,xa as um,xb as Wn,xc as bp,xd as bq,xe as hr,y as bk,ya as vm,yb as Xn,yc as cp,yd as cq,ye as ir,z as ck,za as wm,zb as Yn,zc as dp,zd as dq,ze as jr}from"./chunk-e2w23g2r.js";import{$e as Qk,Xe as Mk,Ye as Nk,Ze as Ok,_e as Pk,af as Rk,bf as Sk,cf as Tk,df as Uk,ef as Vk,ff as Wk,gf as Xk}from"./chunk-0fgcnv6y.js";import{hf as ko,if as lo,jf as mo,kf as no,lf as oo,mf as po}from"./chunk-jbfpc4z7.js";import{nf as Bn,of as Cn}from"./chunk-n3ggrhb3.js";import{pf as Hn}from"./chunk-nh21517m.js";import{Af as Jm,Bf as Km,qf as zm,rf as Am,sf as Bm,tf as Cm,uf as Dm,vf as Em,wf as Fm,xf as Gm,yf as Hm,zf as Im}from"./chunk-vqxmxgaj.js";import{Cf as Kk,Df as Lk}from"./chunk-5aq35j2e.js";import{Ef as lm}from"./chunk-j9g11dzx.js";import{Ff as Rm,Gf as Sm,Hf as Tm,If as gn,Jf as In,Kf as Jn,Lf as Kn,Mf as Ln,Nf as Qn,Of as Rn,Pf as Sn,Qf as Tn}from"./chunk-xg57nax9.js";import{$f as rk,Rf as hk,Sf as ik,Tf as jk,Uf as kk,Vf as lk,Wf as mk,Xf as nk,Yf as ok,Zf as pk,_f as qk,ag as sk,bg as tk,cg as uk,dg as vk}from"./chunk-nx5qkm8k.js";import{eg as dj,fg as ej,gg as fj,hg as gj,ig as hj,jg as ij,kg as jj,lg as kj,mg as lj,ng as mj,og as nj}from"./chunk-e4hhz9j3.js";import{pg as Fj,rg as Gj}from"./chunk-bz820epz.js";import{Ag as zk,Bg as Ak,Cg as Bk,Dg as Ck,Fg as Dk,Gg as Ek,Hg as Fk,Ig as Gk,Jg as Hk,Kg as Ik,Ng as Jk,xg as wk,yg as xk,zg as yk}from"./chunk-9zndrzb3.js";import{Og as am,Pg as bm,Qg as cm,Rg as dm,Sg as gm,Tg as km}from"./chunk-hs0387tm.js";import{Ug as em,Xg as fm}from"./chunk-an2539bs.js";import{dh as Jl,eh as Kl,fh as Ll,gh as Ml,hh as Nl,ih as Ol,jh as Pl,kh as Ql,lh as Rl,mh as Sl,nh as Tl,oh as Ul,ph as Vl,qh as Wl,rh as Xl,sh as hm,th as im,uh as jm}from"./chunk-6cye5m9f.js";import{vh as ph,wh as qh,xh as rh,yh as sh}from"./chunk-49kk0s96.js";import{Dh as th}from"./chunk-w3ycm4na.js";import{Eh as Ah,Fh as Bh,Gh as Ch,Hh as Dh,Ih as Eh,Jh as Fh}from"./chunk-ah4e6e09.js";import{Kh as Ui,Lh as Vi,Mh as Wi,Qh as Xi,Rh as Yi,Sh as Zi}from"./chunk-mb518a4n.js";import{$h as Ri,Th as Ki,Uh as Li,Vh as Mi,Wh as Ni,Xh as Oi,Zh as Pi,_h as Qi,ai as Si,bi as Ti}from"./chunk-74cv4ta1.js";import{ci as Ag,di as Bg,ei as Cg,fi as Dg,gi as Eg,hi as Fg}from"./chunk-wcm80anz.js";import{ii as Gg,ji as Hg,ki as Ig,li as Jg,mi as Kg}from"./chunk-y7m2dpd3.js";import{ni as Lg,oi as Mg,pi as Ng,qi as Og,ri as Pg}from"./chunk-9y0g8kzt.js";import{si as Qg,ti as Rg,ui as Sg,vi as Tg,wi as Ug,xi as Vg,yi as Wg}from"./chunk-t6nseeb9.js";import{Ai as Yg,Bi as Zg,Ci as _g,Di as $g,Ei as ah,zi as Xg}from"./chunk-xttsqmkm.js";import{Gi as bh,Hi as ch,Ii as dh,Ji as eh,Ki as fh,Li as gh,Mi as hh,Ni as ih,Oi as jh,Pi as kh,Qi as lh,Ri as mh,Si as nh,Ti as oh}from"./chunk-54st8g2j.js";import{Vi as ug,Wi as vg}from"./chunk-w0sqz3cb.js";import{Zi as wg}from"./chunk-jrk8rhwt.js";import"./chunk-9n0gvfrg.js";import{bj as xg}from"./chunk-7q9mwh4v.js";import{cj as yg,dj as zg}from"./chunk-refwkt87.js";import{ej as ie,fj as je,gj as ke,hj as le,ij as me,jj as ne,kj as oe,lj as pe,mj as qe,nj as re,oj as se,pj as te,qj as ue,rj as ve}from"./chunk-kmhr1z0m.js";import{sj as We,tj as Xe}from"./chunk-g3fy0tw8.js";import{Aj as Ie,Bj as Je,Cj as Ke,Dj as Le,Ej as Me,Fj as Ne,Gj as Oe,Hj as Pe,Ij as Qe,Jj as Re,Kj as Se,Lj as Te,Mj as Ue,Nj as Ve}from"./chunk-w95sp0k9.js";import{Oj as Ye,Pj as Ze,Qj as _e,Rj as $e,Sj as af,Tj as bf,Uj as cf,Vj as df,Wj as ef,Xj as ff,Yj as gf}from"./chunk-qbeffw17.js";import{qk as Tq,rk as Uq,sk as Vq,tk as Wq,uk as Xq,vk as Yq}from"./chunk-y8n174xq.js";import{Ak as Yl,Bk as Zl,Ck as _l,Dk as $l,wk as Zj,xk as _j,yk as $j,zk as ak}from"./chunk-zn5jgmqw.js";import"./chunk-58f0mthg.js";import"./chunk-m3yaa0v5.js";import{$l as ac,$m as dd,$n as He,$o as Qf,$p as Wh,$q as Ej,Al as Oa,Am as Fc,An as Ed,Ao as pf,Ap as pg,Aq as Ei,Bl as ib,Bm as Gc,Bn as Fd,Bo as qf,Bp as qg,Bq as Fi,Cl as jb,Cm as Hc,Cn as Wd,Co as rf,Cp as rg,Cq as Gi,Dl as kb,Dm as Ic,Dn as Xd,Do as sf,Dp as sg,Dq as Hi,El as lb,Em as Jc,En as Yd,Eo as tf,Ep as tg,Eq as Ii,Fl as mb,Fn as Zd,Fo as uf,Fp as uh,Fq as Ji,Gl as nb,Gm as Kc,Gn as _d,Go as vf,Gp as vh,Gq as _i,Hm as Lc,Hn as $d,Ho as wf,Hp as wh,Hq as $i,Im as Mc,In as ae,Io as xf,Ip as xh,Iq as aj,Jl as Eb,Jm as Nc,Jn as be,Jo as yf,Jp as yh,Jq as bj,Kl as Fb,Km as Oc,Kn as ce,Ko as zf,Kp as zh,Kq as cj,Ll as Gb,Lm as Pc,Ln as de,Lo as Af,Lp as Gh,Lq as oj,Ml as Hb,Mm as Qc,Mn as ee,Mo as Bf,Mp as Hh,Mq as pj,Nl as Ib,Nm as Rc,Nn as fe,No as Cf,Np as Ih,Nq as qj,Om as Sc,On as ge,Oo as Df,Op as Jh,Oq as rj,Pm as Tc,Pn as he,Po as Ef,Pp as Kh,Pq as sj,Ql as Lb,Qm as Uc,Qo as Ff,Qp as Lh,Qq as tj,Rl as Mb,Rm as Vc,Rn as ze,Ro as Gf,Rp as Mh,Rq as uj,Sl as Nb,Sm as Wc,Sn as Ae,So as Hf,Sp as Nh,Sq as vj,Tl as Ub,Tm as Xc,Tn as Be,To as If,Tp as Oh,Tq as wj,Ul as Vb,Um as Yc,Un as Ce,Uo as Jf,Up as Ph,Uq as xj,Vl as Wb,Vm as Zc,Vn as De,Vo as Kf,Vp as Qh,Vq as yj,Wl as Xb,Wm as _c,Wn as Ee,Wo as Lf,Wp as Rh,Wq as zj,Xl as Yb,Xm as $c,Xn as Fe,Xo as Mf,Xp as Sh,Xq as Aj,Yl as Zb,Ym as ad,Yo as Nf,Yp as Th,Yq as Bj,Zl as _b,Zm as bd,Zo as Of,Zp as Uh,Zq as Cj,_l as $b,_m as cd,_n as Ge,_o as Pf,_p as Vh,_q as Dj,am as bc,an as ed,ap as Rf,aq as ei,ar as Hj,bm as cc,bn as fd,bo as hf,bp as Sf,bq as fi,br as Ij,cm as dc,cn as gd,cp as Tf,cq as gi,cr as Jj,dm as ec,dn as hd,dp as Uf,dq as hi,dr as Kj,em as fc,en as id,ep as Vf,eq as ii,er as Lj,fm as gc,fn as jd,fp as Wf,fq as ji,fr as Mj,gm as hc,gn as kd,gp as Xf,gq as ki,gr as Nj,hn as ld,hp as Yf,hq as li,hr as Oj,in as md,ip as Zf,iq as mi,ir as Pj,jl as xa,jm as ic,jn as nd,jp as _f,jq as ni,kl as ya,km as jc,kn as od,kp as $f,kq as oi,ll as za,lm as kc,ln as pd,lp as ag,lq as pi,ml as Aa,mm as lc,mn as qd,mp as bg,mq as qi,nl as Ba,nm as mc,nn as rd,np as cg,nq as ri,ol as Ca,om as nc,on as sd,op as dg,oq as si,pl as Da,pm as oc,pn as td,pp as eg,pq as ti,ql as Ea,qm as pc,qn as ud,qp as fg,qq as ui,rl as Fa,rm as qc,rn as vd,rp as gg,rq as vi,sl as Ga,sm as rc,sn as wd,so as jf,sp as hg,sq as wi,tl as Ha,tm as sc,tn as xd,tp as ig,tq as xi,ul as Ia,um as tc,un as yd,uo as kf,up as jg,uq as yi,vl as Ja,vm as uc,vn as zd,vp as kg,vq as zi,wl as Ka,wm as vc,wn as Ad,wo as lf,wp as lg,wq as Ai,xl as La,xm as wc,xn as Bd,xo as mf,xp as mg,xq as Bi,yl as Ma,ym as Dc,yn as Cd,yo as nf,yp as ng,yq as Ci,zl as Na,zm as Ec,zn as Dd,zo as of,zp as og,zq as Di}from"./chunk-4cqgbcy7.js";import{$r as M,Ar as s,As as na,Br as t,Bs as oa,Cr as u,Cs as pa,Dr as v,Ds as qa,Er as w,Es as ra,Fr as x,Fs as sa,Gr as y,Gs as ta,Hr as z,Hs as ua,Ir as A,Is as va,Jr as B,Js as wa,Kr as C,Lr as D,Mr as E,Nr as F,Or as G,Pr as H,Qr as I,Rr as J,Sr as K,Tr as L,as as N,bs as O,cs as P,ds as Q,es as R,fs as S,gs as T,hs as U,is as V,jr as b,js as W,kr as c,ks as X,lr as d,ls as Y,mr as e,ms as Z,nr as f,ns as _,or as g,os as $,pr as h,ps as aa,qr as i,qs as ba,rr as j,rs as ca,sr as k,ss as da,tr as l,ts as ea,ur as m,us as fa,vr as n,vs as ia,wr as o,ws as ja,xr as p,xs as ka,yr as q,ys as la,zr as r,zs as ma}from"./chunk-q68xmak4.js";import{Ks as Xh,Ls as Yh,Ms as Zh,Ns as _h,Os as $h,Ps as ai,Qs as bi,Rs as ci,Ss as di}from"./chunk-c0an64km.js";import{Ts as ga,Us as ha}from"./chunk-t1k5dpbr.js";import{Vs as Jb,Ws as Kb}from"./chunk-52mh63sp.js";import{dt as xc,et as yc,gt as zc,pt as Ac,qt as Bc,rt as Cc}from"./chunk-9th1wd1d.js";import{st as Ob,tt as Pb,ut as Qb,vt as Rb,wt as Sb,xt as Tb}from"./chunk-39f40yc4.js";import{At as ye,yt as we,zt as xe}from"./chunk-ysnk7x79.js";import{Bt as Gd,Ct as Hd,Dt as Id,Et as Jd,Ft as Kd,Gt as Ld,Ht as Md,It as Nd,Jt as Od,Kt as Pd,Lt as Qd,Mt as Rd,Nt as Sd,Ot as Td,Pt as Ud,Qt as Vd}from"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import{$t as vb,Ut as ob,Vt as pb,Wt as qb,Xt as rb,Yt as sb,Zt as tb,_t as ub,au as wb,bu as xb,cu as yb,du as zb,eu as Ab,fu as Bb,gu as Cb,hu as Db}from"./chunk-c6fw33zh.js";import{Bu as Ua,Cu as Va,Du as Wa,Eu as Xa,Fu as Ya,Gu as Za,Hu as _a,Iu as $a,Ju as ab,Ku as bb,Lu as cb,Mu as db,Nu as eb,Ou as fb,Pu as gb,Ru as hb,lu as Pa,mu as Qa,pu as Ra,uu as Sa,vu as Ta}from"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{rk as writeNetlifyConfig,im as writeManifest,Wk as writeImageManifest,zo as wrapComponentForHMR,tr as withDefaults,Ej as webComponentDirectiveHandler,op as watermark,qq as watchViews,el as watchMultiple,fl as watchEffect,dl as watch,De as warmImagePlaceholders,sl as waitForStore,X as waitForLocale,lo as virtualPathFor,rj as videoDirective,G as validators,xr as validated,fe as validateValueEnhanced,vh as validateTemplate,tp as validateParams,ge as validateFormEnhanced,fq as validateFile,be as validateFields,ae as validateField,xh as validateDirective,Ad as validateCspDirectives,Mj as validateConfig,nm as validateComponentScripts,Lm as validateComponentProps,tg as validateClientScript,sh as v,pc as usesSignalsInScript,ub as usesReactiveRuntime,Kh as userComponentFileExists,_g as useVirtualList,Od as useTitle,rl as useStoreOrThrow,Ro as useStore,bk as useStorage,Bq as useSlots,dk as useSessionStorage,Ld as useSeoMeta,tl as useRouteParams,vl as useRouteParamOrThrow,ul as useRouteParam,Od as usePageTitle,Ve as useOptimistic,xl as useMiddlewareValue,wl as useMiddlewareState,ck as useLocalStorage,so as useLoadingIndicator,Jd as useHead,ph as useForm,Dq as useAttrs,hq as uploadFiles,gq as uploadFile,ol as updateInstance,Te as untrack,_h as unregisterDirective,pl as unmountInstance,wc as unescapeHtml,oo as typecheckStxFiles,Jh as transpileTypeScript,gr as translate,Ba as transitionDirective,Yb as transformAutoImports,Fm as toUsers,Em as toUser,Zo as thumbnail,_p as thumbHashToRGBA,$p as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Ye as templateCache,Sc as syncRecordedResponse,wo as stxClientHelpers,Df as structuredDataDirective,jr as stripLocalePrefix,Vl as stripDocumentWrapper,Kb as stripCommentsAndLiterals,rn as stringToStream,od as strictCspPreset,qe as streamingSuspenseDirective,ue as streamToResponse,oe as streamTemplateSimple,ie as streamTemplate,Yj as stopHmrServer,Bm as stopBroadcasting,Rb as stateDirName,Sb as stateDir,Ie as state,ng as startsDocument,Tn as startProductionServer,Hn as startInteractive,Am as startBroadcasting,lr as stampLocaleLayoutGroup,Ia as staggerDirective,rp as srcsetUrls,Ja as springDirective,Zc as splitByPipe,Rl as spaNavVaryHeaders,mo as sourcePathFor,yp as smartBatchSign,Mh as slotContentHasExpressions,wp as signUrl,Hh as shouldTranspileTypeScript,Vj as shouldReloadOnChange,Bp as shouldRefreshSignature,Wj as shouldIgnoreFile,Sg as shouldCacheComponent,bp as sharpen,Ar as shape,Qb as setStateDir,Bl as setRouteParams,Cl as setMiddlewareState,Ce as setImagePlaceholder,vq as setGlobalProvide,b as setErrorLocale,Yk as setCurrentInstance,fj as setCachedVideoResult,Wi as setCachedImageResult,Qi as setCached,Dr as serveStxFile,Fr as serveMultipleStxFiles,Qj as serveMarkdownFile,bo as serveFile,Gr as serveApp,ao as serve,Co as serializeState,gn as serializeSetCookie,dp as sepia,Md as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,vj as scopeHTML,uj as scopeCSS,Gf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,hp as saturation,up as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,wf as runPreProcessingMiddleware,xf as runPostProcessingMiddleware,Kn as runPageAction,Oe as runMountCallbacks,gb as runMiddleware,ml as runHooks,$q as runDoctor,Pe as runDestroyCallbacks,Lf as runComposers,ip as rotate,th as rewriteImagesWithSiblings,Tc as responseBindings,Qh as resolveTemplatePath,ha as resolveStxTargets,Ij as resolveStxDirectories,fr as resolveI18n,Xo as resize,cc as resetPlaceholders,Id as resetHead,Bo as resetHMRHandler,o as resetErrorConfig,vr as required,gc as replacePlaceholders,oq as renderView,oj as renderVideoComponent,Vb as renderVendorStyleTags,Kq as renderToString,Lq as renderToStream,Mq as renderToDOM,Zp as renderThumbhashToCanvas,Yq as renderTemplateString,Wq as renderTemplate,Xq as renderString,le as renderStreamingPage,Ch as renderSlot,Ig as renderSSRSuspense,Jp as renderProtectedVideo,Ip as renderProtectedImg,vp as renderMediaUpload,Vq as renderMarkdownView,_l as renderLayoutTypes,_i as renderImgComponent,Mk as renderImageComponent,Qd as renderHtmlAttrs,Pd as renderHead,rq as renderEmail,Oh as renderComponentWithSlot,Rd as renderBodyAttrs,Mo as render,qd as relaxedCspPreset,$d as registerValidationRule,se as registerStreamingDirectives,To as registerStoresClient,zl as registerStore,Ef as registerSeoDirectives,_a as registerMiddleware,kc as registerFilters,jc as registerFilter,d as registerErrorMessages,ee as registerEnhancedValidationRule,Xh as registerDirective,zd as registerCspDirectives,Om as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,al as ref,zn as redirect,Oc as recordResponseStatus,Pc as recordResponseHeader,Tb as rebaseOntoStateDir,Qc as readResponseStatus,Rc as readResponseHeaders,Oj as readMarkdownFile,Ze as readFileCached,bl as reactive,mp as quality,Gp as pruneSignatureCache,Ti as pruneCache,tq as provide,Uq as protectCodeBlocks,ur as prop,Of as processVueTemplate,Yg as processVirtualListDirectives,ah as processVirtualGridDirectives,nj as processVideo,ce as processValidateDirective,ea as processTranslateDirective,Cg as processTransitionDirectives,Fg as processTransitionAttributes,Ud as processTitleDirective,Gc as processTemplateBindings,yg as processTeleportDirectives,Gg as processSuspenseDirectives,zf as processStructuredData,me as processStreamDirectives,Uc as processStatusDirective,nh as processStaticDirectives,uf as processStackReplacements,tf as processStackPushDirectives,Dh as processSlots,Tl as processShell,Fe as processServerBindings,Af as processSeoDirective,te as processSectionDirectives,Rf as processScopedStyles,Ec as processReactiveBindings,Kp as processProtectedMedia,gh as processPartialHydrationDirectives,sg as processOnceDirective,vf as processMiddleware,yf as processMetaDirectives,Vd as processMetaDirective,Pj as processMarkdownFileDirectives,Vh as processMarkdownDirectives,of as processLoops,Qg as processKeepAliveDirectives,rg as processJsonDirective,$g as processInfiniteListDirectives,sf as processIncludes,aj as processImgComponents,Ok as processImageComponents,Bk as processImage,Td as processHeadDirective,Xd as processForms,Zd as processFormInputDirectives,tc as processExpressions,Hb as processEventDirectives,_d as processErrorDirective,Pf as processDynamicComponents,uh as processDirectives,di as processDirectiveAttributes,xg as processDeferDirectives,Ed as processCustomDirectives,wd as processCspDirectives,Br as processComponentProps,bc as processClientScript,Yd as processBasicFormDirectives,Lg as processAsyncDirectives,Fd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ye as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,ro as preloadIslandHandlers,Ee as preloadIconCollection,wm as poolStrings,Gj as pluginManager,Ae as placeholdersWarmed,Bg as performLeave,Ag as performEnter,Qe as pendingLifecycleCounts,Ue as peek,pf as partialsCache,pj as parseVideoDirectiveOptions,Vo as parseUrl,aq as parseThumbhashString,dd as parseSwitchBlock,Ah as parseSlots,Bh as parseSlotElement,id as parseScriptDeclarations,Cj as parseSFCComponent,Lp as parseProtectedArgs,nf as parseLoopBinding,$i as parseImgComponent,ri as parseImageUrl,Nk as parseImageComponent,In as parseFormBody,fd as parseExpressionWithFilters,Pm as parseDefaults,wn as parseCookies,Ll as parseContainerSelector,ad as parseConditionalBlock,gd as parseArguments,Ma as parseAnimationShorthand,wr as optional,xm as optimizeTemplate,Tk as optimizeImage,Uk as optimizeDirectory,yr as oneOf,qf as onceStore,jl as onUpdated,Dc as onUpdate,ll as onUnmounted,Gl as onServer,hl as onMounted,Me as onMount,mh as onHydrated,zq as onErrorCaptured,Ne as onDestroy,Wg as onDeactivated,Fl as onClient,il as onBeforeUpdate,kl as onBeforeUnmount,gl as onBeforeMount,Vg as onActivated,Vp as observeElement,An as notFound,Wf as normalizeCriticalHeadOrder,yq as nextTick,Sm as negotiateEncoding,Ua as navigateTo,nl as mountInstance,Ea as motionDirective,pd as moderateCspPreset,vm as minifyHtml,Cf as metaDirective,fg as metaDedupKey,Wo as mergeParams,hg as mergeHtmlAttrs,Kd as mergeHeadConfigs,yc as mergeCssConfig,td as mergeCspDirectives,Ra as matchRoute,Wh as markdownDirectiveHandler,Nj as markdownCache,ga as looksLikeGlob,ir as localizePath,U as loadTranslationLazy,_ as loadTranslation,Jj as loadStxConfig,db as loadMiddlewareFromDirectory,jm as loadManifest,Rp as loadElement,Cm as loadChannels,pr as lintStxStrict,Tp as lazyLoadAll,Sp as lazyLoad,Ha as keyframeDirective,Iq as jsxs,Jq as jsxDEV,Hq as jsx,yn as jsonResponse,re as islandDirective,l as isTest,Wl as isSpaNavigation,Pl as isSpaNavRequest,zp as isSignatureValid,Re as isSignal,zk as isSharpAvailable,kn as isServerEnvironment,Dl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Op as isNativeLazySupported,Tq as isMarkdownPath,Q as isLoading,R as isLoaded,Gh as isJavaScriptScript,Pp as isIntersectionObserverSupported,Hk as isImageFile,Ak as isImageBackendAvailable,aa as isICUFormat,lh as isHydrated,Lh as isHydrateTrigger,Mc as isHttpStatus,jn as isEdgeEnvironment,qr as isDirectiveKind,k as isDevelopment,Se as isDerived,Uj as isCssOnlyChange,Rm as isCompressible,El as isClient,Ng as isAsyncComponent,Jn as isActionableMethod,ep as invert,$e as invalidateFileCacheByDir,_e as invalidateFileCache,sc as interpolateScriptsInTemplate,qc as interpolateScriptExpressions,rc as interpolateScriptAttributes,x as inlineError,er as injectThemeBootstrap,Bf as injectSeoTags,br as injectSeo,hf as injectRouterScript,Tj as injectHotReload,kb as injectHeatmap,Cc as injectCss,ud as injectCspMetaTag,pg as injectConfigHeadTags,Vf as injectColorModeBootScript,jg as injectCloakStyle,ag as injectBuildId,Xb as injectBrowserCoreAutoImports,Ic as injectAnalytics,uq as inject,yl as initStoreRegistry,uk as initNetlify,to as initLoadingIndicator,Qp as initLazyLoading,Gn as initFile,Yp as initBlurUp,cq as initAllBlurUp,cj as imgDirective,Rk as imageDirective,Rn as hydrateTemplateStream,Qn as hydrateTemplate,qo as hydrateIslands,ih as hydrateIsland,Sn as hydrateFragment,jh as hydrateByStrategy,kh as hydrateAll,Jo as hydrate,$n as htmlResponse,lg as hoistLeadingHeadTags,Xf as hoistColorModeBootScript,lb as heatmapDirective,Mi as hashString,gf as hashFilePath,Ki as hashFile,Li as hashBuffer,Nf as hasVueTemplateSyntax,mf as hasVariables,Oo as hasStore,hc as hasPlaceholders,sk as hasNetlifyConfig,ab as hasMiddleware,Ib as hasEventDirectives,og as hasDocumentShell,yh as hasDirectives,ma as hasDOMSupport,Kk as handleImageRequest,Aq as handleError,Qq as h,Gk as groupVariantsByFormat,cp as grayscale,Un as gitHash,pm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,nk as getTotalSize,Ap as getTimeUntilExpiry,ug as getStoreScript,Po as getStoreNames,No as getStore,gk as getStorageSize,fk as getStorageKeys,Rh as getSourceLineInfo,Ih as getSharedTranspiler,la as getScreenReaderOnlyStyle,wj as getScopeAttribute,He as getRouteParams,Mb as getPublicEnvDefine,Nb as getPublicEnv,wh as getPositionInfo,ec as getPlaceholderRegistry,Ji as getPlaceholderCacheStats,Hd as getPageMeta,kd as getNonce,Ik as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ze as getImagePlaceholder,Ck as getImageMetadata,we as getImageDelivery,Io as getHydrationRuntime,Al as getHydratedStoreState,Xj as getHmrServer,Gd as getHead,Ao as getHMRHandler,vi as getFormatExtension,Oi as getFileMtime,Fk as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Zh as getDirectives,Yh as getDirective,Zk as getCurrentInstance,zc as getCssServeAsset,sd as getCspPreset,Bd as getCspHeaderName,Uh as getComponentCacheStats,ej as getCachedVideoResult,Ep as getCachedSignature,bf as getCachedSignalsRuntime,cf as getCachedRouterScript,Hi as getCachedPlaceholder,Vi as getCachedImageResult,Pi as getCached,Si as getCacheStats,_f as getBuildId,zm as getBroadcastServer,ui as getBestVariant,lc as getAllFilters,ii as generateWidthSrcset,Zg as generateVirtualListCSS,jq as generateVideoPreview,he as generateValidationScript,kq as generateUploadRuntime,qm as generateTreeShakenBundle,Eg as generateTransitionRuntime,Dg as generateTransitionCSS,ij as generateThumbnails,Ai as generateThumbhashPlaceholder,$m as generateTemplatesDocs,Kg as generateSuspenseRuntime,Jg as generateSuspenseCSS,Do as generateStateScript,si as generateSrcsetData,Zi as generateSrcset,Dk as generateSrcSet,jj as generateSpriteSheet,sq as generateSpaShell,ti as generateSourceTags,oi as generateSizesFromBreakpoints,ni as generateSizesAttribute,Ek as generateSizes,Ff as generateSitemapIndex,cr as generateSitemap,Np as generateSimpleMediaPicker,Hp as generateSignatureRuntime,Xe as generateSignalsRuntimeDev,We as generateSignalsRuntime,ac as generateServerDataBridge,tj as generateScopeId,Dj as generateSFCWebComponent,Fb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Hf as generateRobotsTxt,dr as generateRobots,Yi as generateResponsiveVariants,zj as generateReactiveWebComponentTS,yj as generateReactiveWebComponent,Bj as generateReactiveRuntime,Aj as generateReactiveMixin,hj as generatePoster,Gi as generatePlaceholderStyle,Fi as generatePlaceholderCSS,zi as generatePlaceholder,hh as generatePartialHydrationCSS,jd as generateNonce,ok as generateNetlifyToml,mq as generateMinifiedMediaRuntime,lq as generateMediaRuntime,Mp as generateMediaManagerEmbed,hm as generateManifest,vo as generateLoadingIndicatorHtml,Xp as generateLazyLoadRuntime,$l as generateLayoutTypes,Ci as generateLQIP,Ug as generateKeepAliveRuntime,Tg as generateKeepAliveCSS,oh as generateIslandManifest,iq as generateImagePreview,Vk as generateImageManifest,Ho as generateHydrationScript,ve as generateHydrationRuntime,Ko as generateHydrationCSS,bh as generateHydrationBootstrap,Sj as generateHotReloadScript,jb as generateHeatmapScript,yo as generateHMRClientScript,kj as generateHLSManifest,Eo as generateEventBindings,mi as generateDprSrcsetWithVariableQuality,li as generateDprSrcset,mg as generateDocumentShell,en as generateDocs,an as generateDirectivesDocs,ci as generateDirectiveRuntime,If as generateDefaultRobotsTxt,lj as generateDASHManifest,Bc as generateCss,nd as generateCspMetaTag,md as generateCspHeader,Fq as generateCompositionRuntime,_m as generateComponentsDocs,ch as generateComponentManifest,Ym as generateComponentDoc,Ei as generateColorPlaceholder,Uf as generateColorModeBootScript,ql as generateClientRuntime,Ni as generateCacheKey,_b as generateBrowserAutoImportDestructuring,dq as generateBlurUpRuntime,eq as generateBlurUpCSS,Fc as generateBindingsRuntime,ji as generateAutoWidthSrcset,Zb as generateAutoImportDestructuring,Pg as generateAsyncComponentRuntime,Og as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Hc as generateAnalyticsScript,po as formatTypecheckDiagnostics,jo as formatTypeErrors,Dn as formatStxContent,mk as formatSize,Ta as formatRoutes,En as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,ar as formatDoctorReport,bn as formatDocsAsMarkdown,dn as formatDocsAsJson,cn as formatDocsAsHtml,lp as format,um as foldConstants,kp as flipVertical,jp as flipHorizontal,am as fingerprint,no as findRuntimeTypeDeclarations,_q as findPantryPackage,$c as findMatchingEndTag,Xc as findMatchingDelimiter,Jb as findInterpolationEnd,bd as findIfBlocks,ed as findExpressions,Sa as findErrorPage,cd as findDirectiveBlocks,rm as findDeadCode,rm as findDeadBranches,Ml as findContainerRegion,Zm as findComponentFiles,Er as findCommonDir,lk as filterRequiredFiles,Ph as fileExists,jf as extractVariables,fm as extractTemplateExpressions,ne as extractStreamBoundaries,Fo as extractState,Eh as extractSlotContent,lf as extractScriptFromTemplate,em as extractScriptBlocks,fc as extractPlaceholders,_c as extractParenthesizedExpression,Nc as extractPageResponseStatus,hb as extractLayoutMetadata,Di as extractDominantColor,hd as extractDirectiveParams,zh as extractDirectiveNames,Xl as extractContainerContent,Wm as extractComponentProps,dh as extractComponentName,Xm as extractComponentDescription,Ac as extractClassNames,$b as extractBridgeData,eh as extractBoundProps,Yc as extractBalancedExpression,Ub as extractAndStripCssImports,xj as extractAndScopeStyles,Gb as extractAndProcessEvents,$j as externalizeSharedAssets,ak as externalizeRepeatedAssets,_j as externalizeHtml,vc as evaluateExpression,tm as evaluateConstant,Vc as evaluateAuthExpression,oc as escapeHtmlValue,nc as escapeHtml,C as errorRecovery,E as errorLogger,zg as ensureTeleportTargets,qg as ensureDocumentShell,de as enhancedValidationRules,Um as enableDevTools,sm as eliminateDeadCode,Ke as effect,sp as dprUrls,fn as docsCommand,Zl as discoverLayoutNames,Wp as disconnectObserver,Vm as disableDevTools,F as devHelpers,Sl as detectShell,hn as detectRuntime,pk as detectProjectConfig,wi as detectFormat,mm as detectBuildMode,Je as derived,tk as deploy,Lj as defineStxConfig,So as defineStore,Cq as defineSlots,or as defineSiteConfig,sr as definePropsWithValidation,rr as defineProps,Fj as definePlugin,Nd as definePageMeta,Wa as defineMiddleware,qh as defineForm,xq as defineExpose,wq as defineEmits,$h as defineDirective,Sq as defineCustomElement,Pn as defineConfig,ai as defineClientDirective,Mg as defineAsyncComponent,nq as defaultMediaConfig,Xk as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Wd as defaultFormClasses,ic as defaultFilters,Dd as defaultCspConfig,Hj as defaultConfig,Cr as default,xc as deepMergeThemes,Qf as dedupeScopedStyles,Bi as decodeThumbhash,yd as cspNonceDirective,xd as cspDirective,bq as crossfadeTransition,Yo as crop,Xg as createVirtualList,qj as createVideoDirective,un as createVercelHandler,go as createTypeChecker,fa as createTranslateFilter,qn as createTextEncoderStream,Rq as createStxApp,pn as createStreamingResponse,pe as createStreamRenderer,Qo as createStore,Za as createStorageManager,Xa as createServerCookieManager,$k as createScope,Hg as createSSRSuspense,Ge as createRouter,eb as createRouteLocation,eo as createRoute,al as createRef,bl as createReactive,Eq as createProvideContext,Wn as createProject,On as createProductionBuild,dc as createPlaceholder,ym as createOptimizedBuild,vn as createNetlifyHandler,hk as createNetlifyClient,fb as createMiddlewareContext,co as createMiddleware,Up as createLazyObserver,Rg as createKeepAliveCache,mn as createKVNamespace,fh as createIslandRegistry,bj as createImgDirective,Sk as createImagePlugin,Lk as createImageHandler,Qk as createImageDirective,nb as createHeatmapAggregator,kk as createFileManifest,ln as createEnvAccessor,z as createEnhancedError,on as createEdgeHandler,nn as createEdgeCache,Sh as createDetailedErrorMessage,tn as createDenoHandler,qk as createDefaultNetlifyConfig,Cd as createCspHeaders,xn as createCookie,cl as createComputed,_k as createComponentInstance,sn as createCloudflareHandler,Ya as createClientCookieManager,bi as createBuiltinDirectives,Rq as createApp,Ka as createAnimationTimeline,$o as cover,kf as convertToCommonJS,gp as contrast,_o as contain,y as consoleError,m as configureErrorHandling,Kj as config,cl as computed,Tm as compressResponse,Kf as composerPattern,Jf as composer,Ul as composeShellWithPage,Nm as componentDirective,Nh as componentClientSignalNames,gm as compileTemplate,a as collectRepeatedFlag,jk as collectDeployFiles,kg as cloakStyleFragment,gj as clearVideoCache,N as clearTranslationCache,vg as clearStoreCache,ek as clearStorage,Fp as clearSignatureCache,Ii as clearPlaceholderCache,rf as clearOnceStore,ld as clearNonce,bb as clearMiddleware,Be as clearImagePlaceholders,xe as clearImageDeliveryCatalog,Pk as clearImageCache,e as clearErrorMessages,df as clearDevCaches,mc as clearCustomFilters,Mf as clearComposers,wg as clearComposableCache,Th as clearComponentCache,Ri as clearCache,uo as cleanupLoadingIndicator,Jl as classifyScript,Kl as classifyAllScripts,ho as checkTemplateFile,io as checkTemplate,ef as checkCache,Cp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Im as channel,Cn as captureScreenshots,Bn as captureScreenshot,Z as cancelPendingLoads,ik as calculateSha1,ki as calculateOptimalWidths,ff as cacheTemplate,sj as buildWebComponents,ko as buildVirtualSource,pq as buildViews,Uo as buildUrl,je as buildSuspenseResolveScript,nr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,bm as buildRuntimeAsset,cm as buildRouterAsset,mr as buildLangPickerScript,qi as buildImageUrl,bg as buildIdFragment,gg as buildHtmlAttrs,km as buildForProduction,Qm as buildComponentLibrary,Dp as buildAuthParams,lm as buildApp,kr as buildAlternateLinks,Nn as build,Gm as broadcastPrivate,Hm as broadcastPresence,Dm as broadcast,fp as brightness,ap as blur,Db as blankInertHtmlRegions,xp as batchSignUrls,Le as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,np as auto,ja as attributeValue,dm as assetTags,Eb as asInvocableStatement,zr as arrayOf,hr as applyTranslations,Xi as applyTransformations,Fh as applySlots,Mm as applyPropDefaults,qp as applyPreset,ig as applyHtmlAttrs,Sd as applyHead,uc as applyFilters,Ql as appendVary,rd as apiCspPreset,Da as animationGroupDirective,mj as analyzeVideo,om as analyzeUsage,Hl as analyzeTemplate,Il as analyzeProject,om as analyzeDirectiveUsage,Jc as analyticsDirective,Zn as addStore,Yn as addPage,vd as addNonceToInlineContent,_n as addLayout,Xn as addComponent,Ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,af as __setSignalsGeneratorsForTest,$f as __setBuildIdForTest,dj as VideoProcessorCache,rh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Wc as Tokenizer,fo as TemplateTypeChecker,Fn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Nq as Show,ke as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Wb as STX_AUTO_IMPORTS,Pb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Nl as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Kc as RESPONSE_STATUS_KEY,Lc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mn as ProductionBuild,Pq as Portal,Vn as PROJECT_TEMPLATES,pp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Lo as MemorySessionStore,hi as MIME_TYPES,ei as MEDIA_DEFAULT_WIDTHS,gi as MEDIA_DEFAULT_FORMATS,Yl as LAYOUT_TYPES_FILE,Ui as ImageProcessorCache,Jk as ImageProcessingError,Go as HydrationRuntime,Rj as HotReloadServer,mb as HeatmapAggregator,eg as HTML_CLASS_MARKER,dg as HTML_ATTRS_MARKER,Gq as Fragment,Oq as For,Ol as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Zj as EXTERNALIZED_ASSET_DIR,vk as DeployError,wk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Ob as DEFAULT_STATE_DIR,yk as DEFAULT_QUALITY,xi as DEFAULT_PLACEHOLDER_OPTIONS,xk as DEFAULT_FORMATS,fi as DEFAULT_DPR_VALUES,xo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,pi as COMMON_SIZES,Sf as COLOR_MODE_BOOT_MARKER,Tf as COLOR_MODE_BOOT_GLOBAL,cg as CLOAK_STYLE,Km as BroadcastServer,Jm as Broadcast,Yf as BUILD_ID_META,Zf as BUILD_ID_HEADER,Lb as BROWSER_CORE_IMPORTS,yi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Zq as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Xi as a,Yi as b,Zi as c}from"./chunk-cb74rvec.js";import"./chunk-9n0gvfrg.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
2
+ import{Xi as a,Yi as b,Zi as c}from"./chunk-jrk8rhwt.js";import"./chunk-9n0gvfrg.js";import"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Cp as b,Dp as c,Ep as d,Fp as e,bo as a}from"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
2
+ import{Cp as b,Dp as c,Ep as d,Fp as e,bo as a}from"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{ih as t,jh as e,lh as b,uh as JJ}from"./chunk-kpy77ys3.js";import{Mm as u,Nm as l,ao as o,fm as y,gm as P,pm as x,so as g,wm as v}from"./chunk-9rkntp0z.js";import{Ru as s,Vu as OJ,ou as a}from"./chunk-bf8wf3r2.js";import{dv as R}from"./chunk-sskbegsz.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-f8b83xbw.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-y3qng57q.js"),{defaultConfig:z}=await import("./chunk-yqaky7fa.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".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 mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-f8b83xbw.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
2
+ import{ih as t,jh as e,lh as b,uh as JJ}from"./chunk-6cye5m9f.js";import{Mm as u,Nm as l,ao as o,fm as y,gm as P,pm as x,so as g,wm as v}from"./chunk-4cqgbcy7.js";import{Ru as s,Vu as OJ,ou as a}from"./chunk-bf8wf3r2.js";import{dv as R}from"./chunk-sskbegsz.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-mkn6qqc7.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-x1nw1p8z.js"),{defaultConfig:z}=await import("./chunk-ajbfeey7.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".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 mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-mkn6qqc7.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
3
3
  export{WJ as Ff,YJ as Gf,i as Hf,q as If,KJ as Jf,f as Kf,h as Lf,m as Mf,wJ as Nf,d as Of,AJ as Pf,mJ as Qf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Qf as a}from"./chunk-t0ghjghe.js";import"./chunk-kpy77ys3.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as startProductionServer};
2
+ import{Qf as a}from"./chunk-xg57nax9.js";import"./chunk-6cye5m9f.js";import"./chunk-4cqgbcy7.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-9th1wd1d.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as startProductionServer};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Fp as k,Hl as A,Il as D,Om as T,Pm as y,Qn as x,_l as B,am as F,ar as w,bo as M,so as R}from"./chunk-9rkntp0z.js";import{dv as P}from"./chunk-sskbegsz.js";function b(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,X){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(X?.some((Y)=>q>=Y.start&&N<=Y.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,X)=>J.start-X.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function j(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>D(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as v,resolve as H}from"path";function f(K){let z=K,G=x(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],X=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],Y=$[2],E=$[0],Z=N.includes("server");if(X(Y))J.push(E);else if(Z)Q.push(Y);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,Y,E=[];while((Y=N.exec(q))!==null){let Z=Y.index+Y[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:Y.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function S(K,z){return`<!DOCTYPE html>
2
+ import{Fp as k,Hl as A,Il as D,Om as T,Pm as y,Qn as x,_l as B,am as F,ar as w,bo as M,so as R}from"./chunk-4cqgbcy7.js";import{dv as P}from"./chunk-sskbegsz.js";function b(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,X){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(X?.some((Y)=>q>=Y.start&&N<=Y.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,X)=>J.start-X.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function j(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>D(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as v,resolve as H}from"path";function f(K){let z=K,G=x(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],X=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],Y=$[2],E=$[0],Z=N.includes("server");if(X(Y))J.push(E);else if(Z)Q.push(Y);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,Y,E=[];while((Y=N.exec(q))!==null){let Z=Y.index+Y[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:Y.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function S(K,z){return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -14,5 +14,5 @@ ${Q.join(`
14
14
  `)}`}else{if(G.processClientScripts!==!1&&Q.length>0){let N=X.__stx_event_bindings||[],Y=B(X),Z=(await Promise.all(Q.map(async(V)=>{let W=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!W)return V;return await F(W[1],{eventBindings:N,templateContent:q,serverData:Y,filePath:z})}))).join(`
15
15
  `);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${Z}
16
16
  $1`);else q+=`
17
- ${Z}`}q=await M(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=S(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-n3qyd366.js");q=await N(q)}catch{}return q}
17
+ ${Z}`}q=await M(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=S(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-2q630fj4.js");q=await N(q)}catch{}return q}
18
18
  export{b as qk,C as rk,j as sk,s as tk,i as uk,I as vk};