@stacksjs/stx 0.2.642 → 0.2.644

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 (62) hide show
  1. package/dist/{chunk-ngkxtkh3.js → chunk-12677ap2.js} +2 -2
  2. package/dist/{chunk-70na8hcs.js → chunk-162gprh9.js} +1 -1
  3. package/dist/{chunk-bxvnzafh.js → chunk-29gd2kkk.js} +1 -1
  4. package/dist/{chunk-8at87jae.js → chunk-29sq7kqw.js} +1 -1
  5. package/dist/{chunk-yvf7ta8h.js → chunk-2s3sxt48.js} +1 -1
  6. package/dist/{chunk-3xdmxpxe.js → chunk-3jrssj8g.js} +1 -1
  7. package/dist/{chunk-pjxns9tp.js → chunk-5c511mj0.js} +1 -1
  8. package/dist/{chunk-p7jbzxps.js → chunk-6bdr0x43.js} +2 -2
  9. package/dist/{chunk-pr08fz3f.js → chunk-7qgsgfnt.js} +1 -1
  10. package/dist/{chunk-j36hrzac.js → chunk-8bk1ghb7.js} +3 -3
  11. package/dist/{chunk-w7wb4t0z.js → chunk-8k5eac6p.js} +1 -1
  12. package/dist/{chunk-z84vhs3n.js → chunk-afsf6sp0.js} +1 -1
  13. package/dist/{chunk-kcvn37qp.js → chunk-bnfjwgtm.js} +1 -1
  14. package/dist/{chunk-jmhpfxjq.js → chunk-br7xk2hb.js} +1 -1
  15. package/dist/{chunk-efx1zm7a.js → chunk-c8p5jwdq.js} +1 -1
  16. package/dist/{chunk-7xq8ng55.js → chunk-cpxtmmvv.js} +41 -43
  17. package/dist/{chunk-cc1v8q2d.js → chunk-cw8mx4qf.js} +5 -5
  18. package/dist/{chunk-crtv20vx.js → chunk-dr4325et.js} +1 -1
  19. package/dist/{chunk-vecjfm4z.js → chunk-eh7qq39j.js} +1 -1
  20. package/dist/chunk-ek5vrw4r.js +2 -0
  21. package/dist/chunk-erweevv2.js +2 -0
  22. package/dist/{chunk-h3nrzz4k.js → chunk-ft3r2rzs.js} +1 -1
  23. package/dist/{chunk-6sb3tcr6.js → chunk-fywp8fcr.js} +1 -1
  24. package/dist/{chunk-hhnbm4y5.js → chunk-gbxzqvez.js} +1 -1
  25. package/dist/{chunk-dqjx14em.js → chunk-grg366m9.js} +18 -18
  26. package/dist/{chunk-dy3hvydn.js → chunk-h3brvxbf.js} +1 -1
  27. package/dist/{chunk-1at1xzx5.js → chunk-hbk20w21.js} +1 -1
  28. package/dist/{chunk-n95243ry.js → chunk-hrdnz5q9.js} +1 -1
  29. package/dist/{chunk-g0wr83v9.js → chunk-hshcbe3p.js} +1 -1
  30. package/dist/{chunk-j9kachkd.js → chunk-hvk5zkpm.js} +1 -1
  31. package/dist/{chunk-2zey344t.js → chunk-ja3m0h9h.js} +1 -1
  32. package/dist/{chunk-5x83f835.js → chunk-jtk2p5p0.js} +1 -1
  33. package/dist/{chunk-52wj6yc8.js → chunk-k46gqnmk.js} +1 -1
  34. package/dist/{chunk-5qwrg6m7.js → chunk-ktjvqwp4.js} +1 -1
  35. package/dist/{chunk-7pmcsw3x.js → chunk-kv5mn1qr.js} +1 -1
  36. package/dist/{chunk-hbwxr5dq.js → chunk-m2bnyrft.js} +1 -1
  37. package/dist/{chunk-p6kaqfa9.js → chunk-myq0m4h4.js} +1 -1
  38. package/dist/{chunk-wv9mc6gx.js → chunk-nv9syzs0.js} +1 -1
  39. package/dist/{chunk-t53pmm3n.js → chunk-qf210sfx.js} +2 -2
  40. package/dist/{chunk-cc6f6t8f.js → chunk-s0tbc9t1.js} +1 -1
  41. package/dist/{chunk-4whp2tr5.js → chunk-s7e9ztgq.js} +1 -1
  42. package/dist/{chunk-mck6csxx.js → chunk-t6awky15.js} +1 -1
  43. package/dist/{chunk-0f75mm0s.js → chunk-tcq0me7c.js} +1 -1
  44. package/dist/{chunk-kah2drys.js → chunk-vse0hhn9.js} +1 -1
  45. package/dist/{chunk-75tshgmz.js → chunk-x901zq4q.js} +1 -1
  46. package/dist/chunk-xe8qmf1d.js +2 -0
  47. package/dist/{chunk-pr1rt0z4.js → chunk-xsmvcnmx.js} +1 -1
  48. package/dist/{chunk-8k4d65x2.js → chunk-zrngcg6r.js} +1 -1
  49. package/dist/cli.js +7 -7
  50. package/dist/craft-entry.js +1 -1
  51. package/dist/craft.js +1 -1
  52. package/dist/native-backend.d.ts +0 -4
  53. package/dist/native-backend.js +14 -30
  54. package/dist/native-build.js +39 -8
  55. package/dist/native-signing.d.ts +2 -1
  56. package/dist/native-signing.js +45 -9
  57. package/dist/pwa.js +1 -1
  58. package/dist/ssg.js +2 -2
  59. package/package.json +5 -5
  60. package/dist/chunk-fhhen33c.js +0 -2
  61. package/dist/chunk-hbqqh0cr.js +0 -2
  62. package/dist/chunk-razh91br.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ut}from"./chunk-qmh6f1bt.js";import{yi,Ss,W,Xe,ne,Lt,x,Ze,Qe,mr,u}from"./chunk-dqjx14em.js";import{D}from"./chunk-7mkw98cr.js";var H=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function V(t,n,e){let r={fullTag:e,content:n,attrs:t};if(/\bserver\b/.test(t))return{...r,type:"server"};if(/\bdata-stx-scoped\b/.test(t))return{...r,type:"client"};if(H.test(n))return{...r,type:"signals"};if(/\bclient\b/.test(t)||/\btype\s*=\s*["']module["']/.test(t)||/\bsrc\s*=/.test(t))return{...r,type:"client"};return{...r,type:"server"}}var B=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function Po(t){let n=[],e=[],r=[],i=0;while(i<t.length){let s=t.indexOf("<",i);if(s===-1)break;let a=Xe(t,s);if(a>s){i=a;continue}let o=W(t,s);if(o>s){let c=t.slice(s,o),f=B.exec(c);if(f){let l=V(f[1],f[2],c);switch(l.type){case"signals":n.push(l);break;case"client":e.push(l);break;case"server":r.push(l);break}}i=o;continue}i=s+(t.startsWith("<!--",s)?4:1)}return{signals:n,client:e,server:r}}var q=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function z(t){let n=[],e=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,r;while((r=e.exec(t))!==null)n.push({start:r.index,end:r.index+r[0].length});return n}function P(t,n){return n.some((e)=>t>=e.start&&t<e.end)}function G(t){let n=(t||"").trim();if(!n)return null;if(/[\s>+~,:]/.test(n))return null;let e={},r=n,i=r.match(/^[a-z][\w-]*/i);if(i)e.tag=i[0].toLowerCase(),r=r.slice(i[0].length);while(r.length>0){let s=r.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(s){if(e.attr=s[1],s[3]!==void 0&&s[3]!=="")e.attrValue=s[3];r=r.slice(s[0].length);continue}let a=r.match(/^#([\w-]+)/);if(a){e.id=a[1],r=r.slice(a[0].length);continue}let o=r.match(/^\.([\w-]+)/);if(o){e.className=o[1],r=r.slice(o[0].length);continue}return null}if(!e.tag&&!e.attr&&!e.id&&!e.className)return null;return e}function U(t,n){if(n.attr){if(!(n.attrValue===void 0?new RegExp(`\\b${n.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${n.attr}\\s*=\\s*(["'])\\s*${n.attrValue}\\s*\\1`,"i")).test(t))return!1}if(n.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${n.id}\\s*\\1`,"i").test(t))return!1}if(n.className){let e=t.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!e)return!1;if(!e[2].split(/\s+/).includes(n.className))return!1}return!0}function O(t,n="main"){let e=G(n);if(!e)return null;let r=/<([a-z][\w-]*)\b([^>]*)>/gi,i=z(t),s;while((s=r.exec(t))!==null){if(P(s.index,i))continue;let a=s[1].toLowerCase(),o=s[2]||"";if(o.trimEnd().endsWith("/")||q.has(a))continue;if(e.tag&&e.tag!==a)continue;if(!U(o,e))continue;let c=s[0],f=s.index+c.length,l=new RegExp(`<(/?)${a}\\b([^>]*)>`,"gi");l.lastIndex=f;let g=1,m;while((m=l.exec(t))!==null){if(P(m.index,i))continue;let S=m[1]==="/";if(!S&&(m[2]||"").trimEnd().endsWith("/"))continue;if(g+=S?-1:1,g===0)return{openTag:c,openIndex:s.index,start:f,end:m.index,tagName:a}}return null}return null}var He="private, no-store";function Io(t){return t.replace(/&#(\d+);/g,(n,e)=>M(Number(e),n)).replace(/&#x([0-9a-f]+);/gi,(n,e)=>M(Number.parseInt(e,16),n)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function M(t,n){if(!Number.isInteger(t)||t<0||t>1114111)return n;try{return String.fromCodePoint(t)}catch{return n}}function ce(t){return t.headers.get("X-STX-Router")==="true"}function X(t,n){if(!t)return n;return t.split(",").some((r)=>r.trim().toLowerCase()===n.toLowerCase())?t:`${t}, ${n}`}function T(t){return{Vary:X(t,"X-STX-Router")}}import E from"path";var J="stx-page-head:",K=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,v={dev:null,prod:null};function Y(){let t=D()?"dev":"prod",n=v[t];if(n!==null)return n;try{let e=import.meta.require("./chunk-degxqdbb.js"),r=t==="dev"&&typeof e.getRouterScriptDev==="function"?e.getRouterScriptDev:e.getRouterScript;v[t]=`<script>${r()}</script>`}catch{v[t]=""}return v[t]}async function Oo(t,n){if(n===!1)return null;if(n&&typeof n==="string"){let r=E.resolve(t,n);if(await Bun.file(r).exists())return r;return null}let e=E.join(t,"app.stx");if(await Bun.file(e).exists())return e;return null}async function Gr(t,n){try{let e=await Bun.file(t).text(),r=e,i=e.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(i)r=i[1].trim();let s=Po(e),a=[...s.client.map((d)=>d.fullTag),...s.signals.map((d)=>d.fullTag)],o=[],c=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,f;while((f=c.exec(e))!==null)o.push(f[0]);let l=r;for(let d of s.server)l=l.replace(d.fullTag,"");for(let d of s.client)l=l.replace(d.fullTag,"");l=l.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let g="<!--__STX_PAGE_SLOT__-->";if(l=l.replace(/<slot\s*\/>/gi,g).replace(/<slot\s*>\s*<\/slot>/gi,g),!l.includes(g))return console.warn(`[stx] Shell ${t} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:m,extractVariables:S,defaultConfig:b,loadStxConfig:w}=await import("./chunk-fhhen33c.js"),y=await w(),p={__filename:t,__dirname:E.dirname(t)};for(let d of a){let C=d.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(C&&!d.includes("client")&&!d.includes('type="module"'))await S(C[1],p,t)}let R=await m(l,p,t,{...b,...y,...n},new Set),h=R.indexOf(g);if(h===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:R.substring(0,h),afterSlot:R.substring(h+g.length),filePath:t,shellScripts:a,shellStyles:o}}catch(e){return console.error(`[stx] Error processing shell ${t}:`,e),null}}function Zn(t,n,e){let r,i="",s=n.match(K);if(s){n=n.replace(s[0],"");try{let l=Buffer.from(s[1],"base64").toString("utf8"),g=l.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(g)r=g[1].trim();i=l.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let a=e||r||"stx App",o=Y(),c="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
2
+ import{Ut}from"./chunk-qmh6f1bt.js";import{yi,Ss,W,Xe,ne,Lt,x,Ze,Qe,mr,u}from"./chunk-grg366m9.js";import{D}from"./chunk-7mkw98cr.js";var H=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function V(t,n,e){let r={fullTag:e,content:n,attrs:t};if(/\bserver\b/.test(t))return{...r,type:"server"};if(/\bdata-stx-scoped\b/.test(t))return{...r,type:"client"};if(H.test(n))return{...r,type:"signals"};if(/\bclient\b/.test(t)||/\btype\s*=\s*["']module["']/.test(t)||/\bsrc\s*=/.test(t))return{...r,type:"client"};return{...r,type:"server"}}var B=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function Po(t){let n=[],e=[],r=[],i=0;while(i<t.length){let s=t.indexOf("<",i);if(s===-1)break;let a=Xe(t,s);if(a>s){i=a;continue}let o=W(t,s);if(o>s){let c=t.slice(s,o),f=B.exec(c);if(f){let l=V(f[1],f[2],c);switch(l.type){case"signals":n.push(l);break;case"client":e.push(l);break;case"server":r.push(l);break}}i=o;continue}i=s+(t.startsWith("<!--",s)?4:1)}return{signals:n,client:e,server:r}}var q=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function z(t){let n=[],e=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,r;while((r=e.exec(t))!==null)n.push({start:r.index,end:r.index+r[0].length});return n}function P(t,n){return n.some((e)=>t>=e.start&&t<e.end)}function G(t){let n=(t||"").trim();if(!n)return null;if(/[\s>+~,:]/.test(n))return null;let e={},r=n,i=r.match(/^[a-z][\w-]*/i);if(i)e.tag=i[0].toLowerCase(),r=r.slice(i[0].length);while(r.length>0){let s=r.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(s){if(e.attr=s[1],s[3]!==void 0&&s[3]!=="")e.attrValue=s[3];r=r.slice(s[0].length);continue}let a=r.match(/^#([\w-]+)/);if(a){e.id=a[1],r=r.slice(a[0].length);continue}let o=r.match(/^\.([\w-]+)/);if(o){e.className=o[1],r=r.slice(o[0].length);continue}return null}if(!e.tag&&!e.attr&&!e.id&&!e.className)return null;return e}function U(t,n){if(n.attr){if(!(n.attrValue===void 0?new RegExp(`\\b${n.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${n.attr}\\s*=\\s*(["'])\\s*${n.attrValue}\\s*\\1`,"i")).test(t))return!1}if(n.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${n.id}\\s*\\1`,"i").test(t))return!1}if(n.className){let e=t.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!e)return!1;if(!e[2].split(/\s+/).includes(n.className))return!1}return!0}function O(t,n="main"){let e=G(n);if(!e)return null;let r=/<([a-z][\w-]*)\b([^>]*)>/gi,i=z(t),s;while((s=r.exec(t))!==null){if(P(s.index,i))continue;let a=s[1].toLowerCase(),o=s[2]||"";if(o.trimEnd().endsWith("/")||q.has(a))continue;if(e.tag&&e.tag!==a)continue;if(!U(o,e))continue;let c=s[0],f=s.index+c.length,l=new RegExp(`<(/?)${a}\\b([^>]*)>`,"gi");l.lastIndex=f;let g=1,m;while((m=l.exec(t))!==null){if(P(m.index,i))continue;let S=m[1]==="/";if(!S&&(m[2]||"").trimEnd().endsWith("/"))continue;if(g+=S?-1:1,g===0)return{openTag:c,openIndex:s.index,start:f,end:m.index,tagName:a}}return null}return null}var He="private, no-store";function Io(t){return t.replace(/&#(\d+);/g,(n,e)=>M(Number(e),n)).replace(/&#x([0-9a-f]+);/gi,(n,e)=>M(Number.parseInt(e,16),n)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function M(t,n){if(!Number.isInteger(t)||t<0||t>1114111)return n;try{return String.fromCodePoint(t)}catch{return n}}function ce(t){return t.headers.get("X-STX-Router")==="true"}function X(t,n){if(!t)return n;return t.split(",").some((r)=>r.trim().toLowerCase()===n.toLowerCase())?t:`${t}, ${n}`}function T(t){return{Vary:X(t,"X-STX-Router")}}import E from"path";var J="stx-page-head:",K=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,v={dev:null,prod:null};function Y(){let t=D()?"dev":"prod",n=v[t];if(n!==null)return n;try{let e=import.meta.require("./chunk-degxqdbb.js"),r=t==="dev"&&typeof e.getRouterScriptDev==="function"?e.getRouterScriptDev:e.getRouterScript;v[t]=`<script>${r()}</script>`}catch{v[t]=""}return v[t]}async function Oo(t,n){if(n===!1)return null;if(n&&typeof n==="string"){let r=E.resolve(t,n);if(await Bun.file(r).exists())return r;return null}let e=E.join(t,"app.stx");if(await Bun.file(e).exists())return e;return null}async function Gr(t,n){try{let e=await Bun.file(t).text(),r=e,i=e.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(i)r=i[1].trim();let s=Po(e),a=[...s.client.map((d)=>d.fullTag),...s.signals.map((d)=>d.fullTag)],o=[],c=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,f;while((f=c.exec(e))!==null)o.push(f[0]);let l=r;for(let d of s.server)l=l.replace(d.fullTag,"");for(let d of s.client)l=l.replace(d.fullTag,"");l=l.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let g="<!--__STX_PAGE_SLOT__-->";if(l=l.replace(/<slot\s*\/>/gi,g).replace(/<slot\s*>\s*<\/slot>/gi,g),!l.includes(g))return console.warn(`[stx] Shell ${t} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:m,extractVariables:S,defaultConfig:b,loadStxConfig:w}=await import("./chunk-ek5vrw4r.js"),y=await w(),p={__filename:t,__dirname:E.dirname(t)};for(let d of a){let C=d.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(C&&!d.includes("client")&&!d.includes('type="module"'))await S(C[1],p,t)}let R=await m(l,p,t,{...b,...y,...n},new Set),h=R.indexOf(g);if(h===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:R.substring(0,h),afterSlot:R.substring(h+g.length),filePath:t,shellScripts:a,shellStyles:o}}catch(e){return console.error(`[stx] Error processing shell ${t}:`,e),null}}function Zn(t,n,e){let r,i="",s=n.match(K);if(s){n=n.replace(s[0],"");try{let l=Buffer.from(s[1],"base64").toString("utf8"),g=l.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(g)r=g[1].trim();i=l.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let a=e||r||"stx App",o=Y(),c="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -27,5 +27,5 @@ ${o}
27
27
  `));if(i.length>0)y.push(i.filter((p)=>!c.has(p)).join(`
28
28
  `));if(S.length>0)y.push(S.filter((p)=>!c.has(p)).join(`
29
29
  `));return y.push(m),y.join(`
30
- `)}import k from"fs";import I from"path";function Do(t,n,e){return{version:1,buildTime:new Date().toISOString(),routes:t,assets:n,outputDir:e}}function Mo(t,n){let e=I.join(n,"manifest.json");k.writeFileSync(e,JSON.stringify(t,null,2))}function Lo(t){let n=I.join(t,"manifest.json");if(!k.existsSync(n))return null;try{let e=k.readFileSync(n,"utf-8"),r=JSON.parse(e);if(r.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${r.version}`),null;return r}catch(e){return console.warn("[stx] Failed to load manifest:",e),null}}function _(t,n,e={}){let r=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`;if(e.maxAge!==void 0)r+=`; Max-Age=${e.maxAge}`;if(e.expires)r+=`; Expires=${e.expires.toUTCString()}`;if(e.path)r+=`; Path=${e.path}`;if(e.domain)r+=`; Domain=${e.domain}`;if(e.secure)r+="; Secure";if(e.httpOnly)r+="; HttpOnly";if(e.sameSite)r+=`; SameSite=${e.sameSite}`;return r}async function Q(t){let n=t.headers.get("content-type")||"",e={},r=(i,s)=>{let a=e[i];if(a===void 0)e[i]=s;else if(Array.isArray(a))a.push(s);else e[i]=[a,s]};if(n.includes("multipart/form-data")){let i=await t.formData();for(let[s,a]of i.entries())if(typeof a==="string")r(s,a);return e}if(n.includes("application/x-www-form-urlencoded")){for(let[i,s]of new URLSearchParams(await t.text()).entries())r(i,s);return e}return e}function Kr(t){if(!t)return!1;let n=t.toUpperCase();return n!=="GET"&&n!=="HEAD"}async function F(t,n={}){let e=n.request,r=n.method??e?.method;if(!e||!Kr(r))return{ran:!1};if(typeof t.action!=="function")return{ran:!1};let i={};try{i=await Q(e)}catch{}let s=await t.action({request:e,form:i,params:n.params??{},query:t.query??{},cookies:n.cookies??{}});if(s&&typeof s==="object"){let a=s,o=tt(a.cookies),c=a.redirect;if(typeof c==="string"&&c)return{redirect:c,ran:!0,...o.length>0?{cookies:o}:{}};let{cookies:f,redirect:l,...g}=a;if(Object.assign(t,g),o.length>0)return{ran:!0,cookies:o}}return{ran:!0}}function tt(t){if(!t||typeof t!=="object"||Array.isArray(t))return[];let n=[];for(let[e,r]of Object.entries(t)){if(!e)continue;if(typeof r==="string"){n.push(_(e,r));continue}if(r&&typeof r==="object"){let i=r;if(typeof i.value!=="string")continue;n.push(_(e,i.value,i))}}return n}function jo(t,n=[],e){let r=new Headers({Location:t,"Cache-Control":"no-store"});for(let i of n)r.append("Set-Cookie",i);for(let[i,s]of Object.entries(e??{}))if(i.toLowerCase()!=="location")r.set(i,s);return new Response(null,{status:303,headers:r})}async function Jt(t,n={}){let{html:e,context:r,redirect:i,cookies:s}=await et(t,n),a=Ze(r),o=Qe(r);if(i)return{html:e,redirect:i,cookies:s,status:a,headers:o};let{extractStreamBoundaries:c}=await import("./chunk-75tshgmz.js"),f=c(r),l=t.streamTemplates;if(l&&Object.keys(l).length>0){let{processDirectives:g}=await import("./chunk-crtv20vx.js"),{defaultConfig:m}=await import("./chunk-hbwxr5dq.js"),S=r.streamBoundaries||{},b={...m,autoShell:!1},w=Object.keys(l).map((p)=>({id:p,render:async()=>{let R=typeof S[p]==="function"?await S[p]():void 0;return g(l[p],{...r,$boundary:R},t.sourceFile,b,new Set)}})),y=new Set(w.map((p)=>p.id));f=[...(f||[]).filter((p)=>!y.has(p.id)),...w]}return{html:e,boundaries:f&&f.length>0?f:void 0,cookies:s,status:a,headers:o}}async function et(t,n){let e={__filename:t.sourceFile,__dirname:t.sourceFile.replace(/[/\\][^/\\]+$/,""),...n};if(!t.hasServerScripts&&!Ss(t.html))return{html:t.html,context:e};for(let a of t.serverScriptContent)try{await u(a,e,t.sourceFile)}catch(o){if(n.__stx_strict_hydration)throw o;console.warn(`[stx] Server script error in ${t.sourceFile}:`,o)}let r=await F(e,{request:n.request,method:n.method,params:n.params??{},cookies:n.cookies??{}}),i=(a)=>{let o=a.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),c=mr(e);if(!c)return o;let f=o.indexOf("</head>");return f<0?c+o:o.slice(0,f)+c+o.slice(f)};if(r.redirect)return{html:t.html,context:e,redirect:r.redirect,cookies:r.cookies};if(!Ss(t.html))return{html:i(t.html),context:e,cookies:r.cookies};let s=new Map;for(let[a,o]of Object.entries(t.placeholders))if(o.expression)try{let c=x(o.expression,e);if(o.type==="raw")s.set(a,c!==void 0&&c!==null?String(c):"");else s.set(a,c!==void 0&&c!==null?Lt(String(c)):"")}catch(c){if(n.__stx_strict_hydration)throw c;s.set(a,"")}return{html:i(yi(t.html,s)),context:e,cookies:r.cookies}}
30
+ `)}import k from"fs";import I from"path";function Do(t,n,e){return{version:1,buildTime:new Date().toISOString(),routes:t,assets:n,outputDir:e}}function Mo(t,n){let e=I.join(n,"manifest.json");k.writeFileSync(e,JSON.stringify(t,null,2))}function Lo(t){let n=I.join(t,"manifest.json");if(!k.existsSync(n))return null;try{let e=k.readFileSync(n,"utf-8"),r=JSON.parse(e);if(r.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${r.version}`),null;return r}catch(e){return console.warn("[stx] Failed to load manifest:",e),null}}function _(t,n,e={}){let r=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`;if(e.maxAge!==void 0)r+=`; Max-Age=${e.maxAge}`;if(e.expires)r+=`; Expires=${e.expires.toUTCString()}`;if(e.path)r+=`; Path=${e.path}`;if(e.domain)r+=`; Domain=${e.domain}`;if(e.secure)r+="; Secure";if(e.httpOnly)r+="; HttpOnly";if(e.sameSite)r+=`; SameSite=${e.sameSite}`;return r}async function Q(t){let n=t.headers.get("content-type")||"",e={},r=(i,s)=>{let a=e[i];if(a===void 0)e[i]=s;else if(Array.isArray(a))a.push(s);else e[i]=[a,s]};if(n.includes("multipart/form-data")){let i=await t.formData();for(let[s,a]of i.entries())if(typeof a==="string")r(s,a);return e}if(n.includes("application/x-www-form-urlencoded")){for(let[i,s]of new URLSearchParams(await t.text()).entries())r(i,s);return e}return e}function Kr(t){if(!t)return!1;let n=t.toUpperCase();return n!=="GET"&&n!=="HEAD"}async function F(t,n={}){let e=n.request,r=n.method??e?.method;if(!e||!Kr(r))return{ran:!1};if(typeof t.action!=="function")return{ran:!1};let i={};try{i=await Q(e)}catch{}let s=await t.action({request:e,form:i,params:n.params??{},query:t.query??{},cookies:n.cookies??{}});if(s&&typeof s==="object"){let a=s,o=tt(a.cookies),c=a.redirect;if(typeof c==="string"&&c)return{redirect:c,ran:!0,...o.length>0?{cookies:o}:{}};let{cookies:f,redirect:l,...g}=a;if(Object.assign(t,g),o.length>0)return{ran:!0,cookies:o}}return{ran:!0}}function tt(t){if(!t||typeof t!=="object"||Array.isArray(t))return[];let n=[];for(let[e,r]of Object.entries(t)){if(!e)continue;if(typeof r==="string"){n.push(_(e,r));continue}if(r&&typeof r==="object"){let i=r;if(typeof i.value!=="string")continue;n.push(_(e,i.value,i))}}return n}function jo(t,n=[],e){let r=new Headers({Location:t,"Cache-Control":"no-store"});for(let i of n)r.append("Set-Cookie",i);for(let[i,s]of Object.entries(e??{}))if(i.toLowerCase()!=="location")r.set(i,s);return new Response(null,{status:303,headers:r})}async function Jt(t,n={}){let{html:e,context:r,redirect:i,cookies:s}=await et(t,n),a=Ze(r),o=Qe(r);if(i)return{html:e,redirect:i,cookies:s,status:a,headers:o};let{extractStreamBoundaries:c}=await import("./chunk-x901zq4q.js"),f=c(r),l=t.streamTemplates;if(l&&Object.keys(l).length>0){let{processDirectives:g}=await import("./chunk-dr4325et.js"),{defaultConfig:m}=await import("./chunk-m2bnyrft.js"),S=r.streamBoundaries||{},b={...m,autoShell:!1},w=Object.keys(l).map((p)=>({id:p,render:async()=>{let R=typeof S[p]==="function"?await S[p]():void 0;return g(l[p],{...r,$boundary:R},t.sourceFile,b,new Set)}})),y=new Set(w.map((p)=>p.id));f=[...(f||[]).filter((p)=>!y.has(p.id)),...w]}return{html:e,boundaries:f&&f.length>0?f:void 0,cookies:s,status:a,headers:o}}async function et(t,n){let e={__filename:t.sourceFile,__dirname:t.sourceFile.replace(/[/\\][^/\\]+$/,""),...n};if(!t.hasServerScripts&&!Ss(t.html))return{html:t.html,context:e};for(let a of t.serverScriptContent)try{await u(a,e,t.sourceFile)}catch(o){if(n.__stx_strict_hydration)throw o;console.warn(`[stx] Server script error in ${t.sourceFile}:`,o)}let r=await F(e,{request:n.request,method:n.method,params:n.params??{},cookies:n.cookies??{}}),i=(a)=>{let o=a.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),c=mr(e);if(!c)return o;let f=o.indexOf("</head>");return f<0?c+o:o.slice(0,f)+c+o.slice(f)};if(r.redirect)return{html:t.html,context:e,redirect:r.redirect,cookies:r.cookies};if(!Ss(t.html))return{html:i(t.html),context:e,cookies:r.cookies};let s=new Map;for(let[a,o]of Object.entries(t.placeholders))if(o.expression)try{let c=x(o.expression,e);if(o.type==="raw")s.set(a,c!==void 0&&c!==null?String(c):"");else s.set(a,c!==void 0&&c!==null?Lt(String(c)):"")}catch(c){if(n.__stx_strict_hydration)throw c;s.set(a,"")}return{html:i(yi(t.html,s)),context:e,cookies:r.cookies}}
31
31
  export{Po,He,Io,ce,T,Oo,Gr,Zn,ke,No,le,Do,Mo,Lo,Kr,jo,Jt};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{kl}from"./chunk-z84vhs3n.js";import"./chunk-dqjx14em.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-pr1rt0z4.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{kl as startInteractive};
2
+ import{kl}from"./chunk-afsf6sp0.js";import"./chunk-grg366m9.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-xsmvcnmx.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{kl as startInteractive};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{bn,fe}from"./chunk-bsts9pr5.js";import{M,m,vn,ar,w,Ke,o,P}from"./chunk-dqjx14em.js";import{bs}from"./chunk-7pmcsw3x.js";import{s,Pe}from"./chunk-70et0fbw.js";import{a}from"./chunk-8cqx63aw.js";import d from"path";import b from"fs";import{AsyncLocalStorage as gt}from"async_hooks";var ht=11;function X(t,e,n){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(d.basename(t))||bs(t,e,n)}var ot=2;function bc(t){let e=process.env.STX_BUNDLE_CACHE_DIR?.trim();return e?d.resolve(e):a(t,"bundle-cache")}function nt(t,e){let n=t;for(let i of xt(e))if(i!==d.sep)n=n.split(i).join("\x00root");return n}var st=new Map;function xt(t){let e=d.resolve(t),n=st.get(e);if(!n){let i=e;try{i=b.realpathSync(e)}catch{}n=[...new Set([e,i])].sort((u,g)=>g.length-u.length),st.set(e,n)}return n}function yt(t,e){try{let n=b.statSync(t),i=d.resolve(e),u=t.startsWith(`${i}${d.sep}`);return{path:u?d.relative(i,t):t,...u?{inRoot:!0}:{},mtimeMs:n.mtimeMs,size:n.size,hash:Bun.hash(b.readFileSync(t)).toString(36)}}catch{return null}}function at(t,e){return t.inRoot?d.join(d.resolve(e),t.path):t.path}function bt(t,e){for(let n of t){let i=at(n,e);try{let u=b.statSync(i);if(u.size!==n.size)return!1;if(u.mtimeMs!==n.mtimeMs&&Bun.hash(b.readFileSync(i)).toString(36)!==n.hash)return!1}catch{return!1}}return!0}var ct=new Map,wt=100;function vc(t=process.env){let e=Number(t.STX_BUNDLE_CACHE_LIMIT);return Number.isFinite(e)&&e>=1?Math.floor(e):2000}var G=new Map;async function St(t){let e=G.get(t)??0;if(e>0&&e<wt){G.set(t,e+1);return}G.set(t,1);try{let n=(await b.promises.readdir(t)).filter((l)=>l.endsWith(".js")),i=vc();if(n.length<=i)return;let g=(await Promise.all(n.map(async(l)=>{try{return{name:l,at:(await b.promises.stat(d.join(t,l))).mtimeMs}}catch{return null}}))).filter((l)=>l!==null);g.sort((l,S)=>S.at-l.at);for(let l of g.slice(i)){let S=l.name.slice(0,-3);await b.promises.rm(d.join(t,`${S}.js`),{force:!0}),await b.promises.rm(d.join(t,`${S}.deps.json`),{force:!0})}C("pruned bundle cache to",i,"entries")}catch{}}function pe(t){return ct.get(t)??[]}function q(t,e){if(t)ct.set(t,e)}function wc(t=process.env){return t.STX_DEBUG==="true"||t.STX_DEBUG==="1"}function C(...t){if(wc())console.log("[stx:bundler]",...t)}var Y=[];function di(t,e,n){Y.push({filePath:t||"<inline>",message:e,details:n})}function $t(){return Y.slice()}function Rt(){Y.length=0}var Z;function Qu(t){Z=t}function pi(){if(Z)return Z;try{let t=P.strict;return typeof t==="object"&&t!==null?t.bundlerFallback??"warn":"warn"}catch{return"warn"}}var Q=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function At(t){let e=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,n;while((n=e.exec(t))!==null){let u=n[1];if(!Q.some((l)=>l.test(u)))return C("detected user import:",u),!0}let i=/^[ \t]*import[ \t]*['"]([^'"]+)['"]/gm;while((n=i.exec(t))!==null){let u=n[1];if(/\.css(?:\?.*)?$/.test(u))continue;if(!Q.some((l)=>l.test(u)))return C("detected side-effect import:",u),!0}return!1}var yn="stx-module:",vt=/\.(?:[cm]?[jt]sx?|json)$/i;function xc(t,e){return d.relative(t,e).split(d.sep).join("/")}function Sc(t,e){if(e.size===0)return t;return t.replace(/^([ \t]*import(?:(?:\s+|(?=[{*]))[^;"']*?\s*from\s*|\s*))(["'])([^"']+)\2/gm,(n,i,u,g)=>{let l=e.get(g);return l&&!g.startsWith(yn)?`${i}${u}${l}${u}`:n})}function kc(t,e){let n=0,i=(g)=>{let l=`__stxMod${n++}`,S=JSON.stringify(g);return e.push(`var ${l} = globalThis.__stxModules && globalThis.__stxModules[${S}];`,`if (${l} === undefined) throw new Error("[stx] module " + ${JSON.stringify(S)} + " is not registered on this page (#1957)");`),l},u=(g,l)=>{for(let S of g.split(",")){let F=S.trim();if(!F)continue;let j=F.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!j)continue;let p=j[1].startsWith('"')?JSON.parse(j[1]):j[1],r=j[2]??p;e.push(`var ${r} = ${l}[${JSON.stringify(p)}];`)}};return t=t.replace(/^[ \t]*import(?:\s+|(?=[{*]))([^;"']+?)\s*from\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(g,l,S)=>{let F=S.slice(yn.length),j=i(F),p=l.trim(),r=p.match(/^([\w$]+)\s*(?:,\s*|$)/);if(r&&!p.startsWith("{")&&!p.startsWith("*"))e.push(`var ${r[1]} = ${j}.default;`),p=p.slice(r[0].length).trim();let c=p.match(/^\*\s*as\s+([\w$]+)$/);if(c)e.push(`var ${c[1]} = ${j};`);else if(p.startsWith("{"))u(p.replace(/^\{|\}$/g,""),j);return""}),t=t.replace(/^[ \t]*import\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(g,l)=>(i(l.slice(yn.length)),"")),t}function rt(t){let e=[t,`${t}.ts`,`${t}.tsx`,`${t}.js`,`${t}.mjs`,`${t}.jsx`,d.join(t,"index.ts"),d.join(t,"index.tsx"),d.join(t,"index.js"),d.join(t,"index.mjs")];for(let n of e)try{if(b.existsSync(n)&&b.statSync(n,{throwIfNoEntry:!1})?.isFile())return n}catch{}return}var K=new gt;function gs(t,e){let n=new Bun.CryptoHasher("md5");for(let[i,u]of[...t].sort(([g],[l])=>g<l?-1:g>l?1:0))n.update(`${i}\x00${u}\x00`);return K.run({modules:t,key:n.digest("hex").slice(0,12)},e)}function Pt(){return K.getStore()?.key??""}function Bt(t,e,n,i,u,g=new Map,l,S){let F=(p,r,c)=>{if(X(r,t,l))return null;if(!u||p!==n||!vt.test(r))return null;try{if(!b.statSync(r,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}i.add(r);let x=`${yn}${xc(process.cwd(),r)}`;return g.set(c,x),{path:x,external:!0}},j=(p,r)=>{let c=p===n?e:d.dirname(p),x=d.resolve(c,r);return rt(x)??x};return{name:"stx-client-bundle",setup(p){if(p.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(r)=>({path:r.path,external:!0})),p.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(r)=>({path:r.path,external:!0})),p.onResolve({filter:/^\//},(r)=>{let c=rt(r.path);if(c){let x=F(r.importer,c,r.path);if(x)return x;if(c!==n)i.add(c);return{path:c}}return{path:r.path,external:!0}}),p.onResolve({filter:/^\.\.?\//},(r)=>{let c=j(r.importer,r.path),x=F(r.importer,c,r.path);if(x)return x;return i.add(c),{path:c}}),p.onResolve({filter:/^[@~]\//},(r)=>{let c=d.resolve(t,r.path.slice(2)),x=[c,`${c}.ts`,`${c}.tsx`,`${c}.js`,`${c}.mjs`,`${c}.jsx`,d.join(c,"index.ts"),d.join(c,"index.tsx"),d.join(c,"index.js"),d.join(c,"index.mjs")];for(let I of x)if(b.existsSync(I)&&b.statSync(I,{throwIfNoEntry:!1})?.isFile()){let E=F(r.importer,I,r.path);if(E)return E;return C(`resolved ${r.path[0]}/ import:`,r.path,"\u2192",I),i.add(I),{path:I}}return console.warn(`[stx:bundler] could not resolve ${r.path[0]}/ import:`,r.path),{path:c}}),u)p.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(r)=>{if(r.importer!==n)return;let c=`${yn}npm:${r.path}`;return g.set(r.path,c),{path:c,external:!0}});p.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(r)=>{if(X(r.path,t,l))throw Error(`Server-only API source cannot be imported by a client script: ${r.path}`);let c=d.extname(r.path).toLowerCase(),x=c===".json"?"json":c===".tsx"?"tsx":c===".jsx"?"jsx":c===".ts"||c===".mts"||c===".cts"?"ts":"js";if(r.path!==n)i.add(r.path);let I=S?.get(r.path);if(I!==void 0)return{contents:I,loader:"js"};return{contents:b.readFileSync(r.path,"utf8"),loader:x}})}}}var H=new Map,k=m(64),it=Symbol.for("stx.client-bundle-build-queue");function Cc(t){let e=globalThis,i=(e[it]??Promise.resolve()).then(t,t);return e[it]=i.then(()=>{return},()=>{return}),i}async function It(t,e,n={}){let i=n.projectRoot||process.cwd(),u=(await o(i)).serverApi,g=n.minify??!1,l=n.externalizeUserModules??!0,S=n.expose?.length?[...new Set(n.expose)].sort():void 0,F=n.cacheDir||bc(i),j=K.getStore(),p=new Bun.CryptoHasher("md5");p.update(`${ht}\x00${Ke()}\x00${JSON.stringify(u??!1)}\x00${l?"registry":"inline"}\x00${S?S.join(","):"*"}\x00${g?"minified":"readable"}\x00${j?.key??""}\x00${nt(t,i)}\x00${nt(e,i)}`);let r=p.digest("hex").slice(0,12),c=d.join(F,`${r}.js`),x=k.get(c);if(x){if(ar(x.files)&&x.files.every((R)=>!X(R.path,i,u))){C("memo hit:",r);let R=x.files.map((A)=>A.path);return q(e,R),n.collectInputs?.push(...R),x.code}k.delete(c),C("memo invalidated by dep change:",r)}let I=d.join(F,`${r}.deps.json`),E=Bun.file(c);if(await E.exists()){let R=Bun.file(I),A=!1,O=null;if(await R.exists())try{let D=JSON.parse(await R.text());if(D.metadataVersion===ot&&Array.isArray(D.files)&&bt(D.files,i))O=vn(D.files.map((h)=>at(h,i))),A=O.length===D.files.length&&!O.some((h)=>X(h.path,i,u))}catch{A=!1}if(A){if(C("cache hit:",r),O)q(e,O.map((T)=>T.path)),n.collectInputs?.push(...O.map((T)=>T.path));let D=await E.text(),h=new Date;if(b.promises.utimes(c,h,h).catch(()=>{}),O)k.set(c,{code:D,files:O});return D}C("cache invalidated by dep change:",r)}let z=H.get(r);if(z){let R=await z;if(n.collectInputs)n.collectInputs.push(...(k.get(c)?.files??[]).map((A)=>A.path));return R}let V=Cc(()=>Et(t,e,{projectRoot:i,minify:g,cacheDir:F,hash:r,cachePath:c,depsPath:I,collectInputs:n.collectInputs,externalizeUserModules:l,serverApi:u,expose:S,throwOnFailure:n.throwOnFailure,substitutes:j?.modules}));H.set(r,V);try{return await V}finally{H.delete(r)}}var jt=0;function _c(t){return`${t}-${process.pid}-${++jt}`}async function Et(t,e,n){let{projectRoot:i,minify:u,cacheDir:g,hash:l,cachePath:S,depsPath:F,externalizeUserModules:j}=n,p=a(i,"bundle-tmp"),r=_c(l),c=d.join(p,`${r}.ts`),x=d.join(p,"out",r);b.mkdirSync(p,{recursive:!0}),b.mkdirSync(x,{recursive:!0});let I=d.dirname(e),E=new Set,z=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,V=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,R=s(t),{depths:A,balanced:O}=Pe(R),D=(B)=>!O||A[B]===0,h;while((h=z.exec(R))!==null){if(h[1])continue;if(!D(h.index))continue;if(h[2])h[2].split(",").forEach((B)=>{let f=_t(B);if(f)E.add(f)});else if(h[3])E.add(h[3])}while((h=V.exec(R))!==null){if(h[1])continue;if(!D(h.index))continue;E.add(h[2])}let T=/^[ \t]*import[ \t]+(?!type\b)(?:(\w+)\s*(?:,\s*)?)?(?:\*\s+as\s+(\w+)|\{([^}]+)\})?\s+from\b/gm;while((h=T.exec(R))!==null){if(!D(h.index))continue;let B=/^\s*['"]([^'"]+)['"]/.exec(t.slice(h.index+h[0].length))?.[1];if(B&&Q.some((f)=>f.test(B)))continue;if(h[1])E.add(h[1]);if(h[2])E.add(h[2]);for(let f of(h[3]??"").split(",")){let v=f.trim();if(!v||/^type\s/.test(v))continue;let L=/\bas\s+(\w+)\s*$/.exec(v)?.[1]??/^\w+$/.exec(v)?.[0];if(L)E.add(L)}}for(let B of R.matchAll(/\bexport\s*\{([^}]+)\}/g))for(let f of B[1].split(",")){let v=/\bas\s+(\w+)\s*$/.exec(f)?.[1]??/^\s*(\w+)\s*$/.exec(f)?.[1];if(v)E.delete(v)}let lt=E.size>0?`
2
+ import{bn,fe}from"./chunk-bsts9pr5.js";import{M,m,vn,ar,w,Ke,o,P}from"./chunk-grg366m9.js";import{bs}from"./chunk-kv5mn1qr.js";import{s,Pe}from"./chunk-70et0fbw.js";import{a}from"./chunk-8cqx63aw.js";import d from"path";import b from"fs";import{AsyncLocalStorage as gt}from"async_hooks";var ht=11;function X(t,e,n){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(d.basename(t))||bs(t,e,n)}var ot=2;function bc(t){let e=process.env.STX_BUNDLE_CACHE_DIR?.trim();return e?d.resolve(e):a(t,"bundle-cache")}function nt(t,e){let n=t;for(let i of xt(e))if(i!==d.sep)n=n.split(i).join("\x00root");return n}var st=new Map;function xt(t){let e=d.resolve(t),n=st.get(e);if(!n){let i=e;try{i=b.realpathSync(e)}catch{}n=[...new Set([e,i])].sort((u,g)=>g.length-u.length),st.set(e,n)}return n}function yt(t,e){try{let n=b.statSync(t),i=d.resolve(e),u=t.startsWith(`${i}${d.sep}`);return{path:u?d.relative(i,t):t,...u?{inRoot:!0}:{},mtimeMs:n.mtimeMs,size:n.size,hash:Bun.hash(b.readFileSync(t)).toString(36)}}catch{return null}}function at(t,e){return t.inRoot?d.join(d.resolve(e),t.path):t.path}function bt(t,e){for(let n of t){let i=at(n,e);try{let u=b.statSync(i);if(u.size!==n.size)return!1;if(u.mtimeMs!==n.mtimeMs&&Bun.hash(b.readFileSync(i)).toString(36)!==n.hash)return!1}catch{return!1}}return!0}var ct=new Map,wt=100;function vc(t=process.env){let e=Number(t.STX_BUNDLE_CACHE_LIMIT);return Number.isFinite(e)&&e>=1?Math.floor(e):2000}var G=new Map;async function St(t){let e=G.get(t)??0;if(e>0&&e<wt){G.set(t,e+1);return}G.set(t,1);try{let n=(await b.promises.readdir(t)).filter((l)=>l.endsWith(".js")),i=vc();if(n.length<=i)return;let g=(await Promise.all(n.map(async(l)=>{try{return{name:l,at:(await b.promises.stat(d.join(t,l))).mtimeMs}}catch{return null}}))).filter((l)=>l!==null);g.sort((l,S)=>S.at-l.at);for(let l of g.slice(i)){let S=l.name.slice(0,-3);await b.promises.rm(d.join(t,`${S}.js`),{force:!0}),await b.promises.rm(d.join(t,`${S}.deps.json`),{force:!0})}C("pruned bundle cache to",i,"entries")}catch{}}function pe(t){return ct.get(t)??[]}function q(t,e){if(t)ct.set(t,e)}function wc(t=process.env){return t.STX_DEBUG==="true"||t.STX_DEBUG==="1"}function C(...t){if(wc())console.log("[stx:bundler]",...t)}var Y=[];function di(t,e,n){Y.push({filePath:t||"<inline>",message:e,details:n})}function $t(){return Y.slice()}function Rt(){Y.length=0}var Z;function Qu(t){Z=t}function pi(){if(Z)return Z;try{let t=P.strict;return typeof t==="object"&&t!==null?t.bundlerFallback??"warn":"warn"}catch{return"warn"}}var Q=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function At(t){let e=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,n;while((n=e.exec(t))!==null){let u=n[1];if(!Q.some((l)=>l.test(u)))return C("detected user import:",u),!0}let i=/^[ \t]*import[ \t]*['"]([^'"]+)['"]/gm;while((n=i.exec(t))!==null){let u=n[1];if(/\.css(?:\?.*)?$/.test(u))continue;if(!Q.some((l)=>l.test(u)))return C("detected side-effect import:",u),!0}return!1}var yn="stx-module:",vt=/\.(?:[cm]?[jt]sx?|json)$/i;function xc(t,e){return d.relative(t,e).split(d.sep).join("/")}function Sc(t,e){if(e.size===0)return t;return t.replace(/^([ \t]*import(?:(?:\s+|(?=[{*]))[^;"']*?\s*from\s*|\s*))(["'])([^"']+)\2/gm,(n,i,u,g)=>{let l=e.get(g);return l&&!g.startsWith(yn)?`${i}${u}${l}${u}`:n})}function kc(t,e){let n=0,i=(g)=>{let l=`__stxMod${n++}`,S=JSON.stringify(g);return e.push(`var ${l} = globalThis.__stxModules && globalThis.__stxModules[${S}];`,`if (${l} === undefined) throw new Error("[stx] module " + ${JSON.stringify(S)} + " is not registered on this page (#1957)");`),l},u=(g,l)=>{for(let S of g.split(",")){let F=S.trim();if(!F)continue;let j=F.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!j)continue;let p=j[1].startsWith('"')?JSON.parse(j[1]):j[1],r=j[2]??p;e.push(`var ${r} = ${l}[${JSON.stringify(p)}];`)}};return t=t.replace(/^[ \t]*import(?:\s+|(?=[{*]))([^;"']+?)\s*from\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(g,l,S)=>{let F=S.slice(yn.length),j=i(F),p=l.trim(),r=p.match(/^([\w$]+)\s*(?:,\s*|$)/);if(r&&!p.startsWith("{")&&!p.startsWith("*"))e.push(`var ${r[1]} = ${j}.default;`),p=p.slice(r[0].length).trim();let c=p.match(/^\*\s*as\s+([\w$]+)$/);if(c)e.push(`var ${c[1]} = ${j};`);else if(p.startsWith("{"))u(p.replace(/^\{|\}$/g,""),j);return""}),t=t.replace(/^[ \t]*import\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(g,l)=>(i(l.slice(yn.length)),"")),t}function rt(t){let e=[t,`${t}.ts`,`${t}.tsx`,`${t}.js`,`${t}.mjs`,`${t}.jsx`,d.join(t,"index.ts"),d.join(t,"index.tsx"),d.join(t,"index.js"),d.join(t,"index.mjs")];for(let n of e)try{if(b.existsSync(n)&&b.statSync(n,{throwIfNoEntry:!1})?.isFile())return n}catch{}return}var K=new gt;function gs(t,e){let n=new Bun.CryptoHasher("md5");for(let[i,u]of[...t].sort(([g],[l])=>g<l?-1:g>l?1:0))n.update(`${i}\x00${u}\x00`);return K.run({modules:t,key:n.digest("hex").slice(0,12)},e)}function Pt(){return K.getStore()?.key??""}function Bt(t,e,n,i,u,g=new Map,l,S){let F=(p,r,c)=>{if(X(r,t,l))return null;if(!u||p!==n||!vt.test(r))return null;try{if(!b.statSync(r,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}i.add(r);let x=`${yn}${xc(process.cwd(),r)}`;return g.set(c,x),{path:x,external:!0}},j=(p,r)=>{let c=p===n?e:d.dirname(p),x=d.resolve(c,r);return rt(x)??x};return{name:"stx-client-bundle",setup(p){if(p.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(r)=>({path:r.path,external:!0})),p.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(r)=>({path:r.path,external:!0})),p.onResolve({filter:/^\//},(r)=>{let c=rt(r.path);if(c){let x=F(r.importer,c,r.path);if(x)return x;if(c!==n)i.add(c);return{path:c}}return{path:r.path,external:!0}}),p.onResolve({filter:/^\.\.?\//},(r)=>{let c=j(r.importer,r.path),x=F(r.importer,c,r.path);if(x)return x;return i.add(c),{path:c}}),p.onResolve({filter:/^[@~]\//},(r)=>{let c=d.resolve(t,r.path.slice(2)),x=[c,`${c}.ts`,`${c}.tsx`,`${c}.js`,`${c}.mjs`,`${c}.jsx`,d.join(c,"index.ts"),d.join(c,"index.tsx"),d.join(c,"index.js"),d.join(c,"index.mjs")];for(let I of x)if(b.existsSync(I)&&b.statSync(I,{throwIfNoEntry:!1})?.isFile()){let E=F(r.importer,I,r.path);if(E)return E;return C(`resolved ${r.path[0]}/ import:`,r.path,"\u2192",I),i.add(I),{path:I}}return console.warn(`[stx:bundler] could not resolve ${r.path[0]}/ import:`,r.path),{path:c}}),u)p.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(r)=>{if(r.importer!==n)return;let c=`${yn}npm:${r.path}`;return g.set(r.path,c),{path:c,external:!0}});p.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(r)=>{if(X(r.path,t,l))throw Error(`Server-only API source cannot be imported by a client script: ${r.path}`);let c=d.extname(r.path).toLowerCase(),x=c===".json"?"json":c===".tsx"?"tsx":c===".jsx"?"jsx":c===".ts"||c===".mts"||c===".cts"?"ts":"js";if(r.path!==n)i.add(r.path);let I=S?.get(r.path);if(I!==void 0)return{contents:I,loader:"js"};return{contents:b.readFileSync(r.path,"utf8"),loader:x}})}}}var H=new Map,k=m(64),it=Symbol.for("stx.client-bundle-build-queue");function Cc(t){let e=globalThis,i=(e[it]??Promise.resolve()).then(t,t);return e[it]=i.then(()=>{return},()=>{return}),i}async function It(t,e,n={}){let i=n.projectRoot||process.cwd(),u=(await o(i)).serverApi,g=n.minify??!1,l=n.externalizeUserModules??!0,S=n.expose?.length?[...new Set(n.expose)].sort():void 0,F=n.cacheDir||bc(i),j=K.getStore(),p=new Bun.CryptoHasher("md5");p.update(`${ht}\x00${Ke()}\x00${JSON.stringify(u??!1)}\x00${l?"registry":"inline"}\x00${S?S.join(","):"*"}\x00${g?"minified":"readable"}\x00${j?.key??""}\x00${nt(t,i)}\x00${nt(e,i)}`);let r=p.digest("hex").slice(0,12),c=d.join(F,`${r}.js`),x=k.get(c);if(x){if(ar(x.files)&&x.files.every((R)=>!X(R.path,i,u))){C("memo hit:",r);let R=x.files.map((A)=>A.path);return q(e,R),n.collectInputs?.push(...R),x.code}k.delete(c),C("memo invalidated by dep change:",r)}let I=d.join(F,`${r}.deps.json`),E=Bun.file(c);if(await E.exists()){let R=Bun.file(I),A=!1,O=null;if(await R.exists())try{let D=JSON.parse(await R.text());if(D.metadataVersion===ot&&Array.isArray(D.files)&&bt(D.files,i))O=vn(D.files.map((h)=>at(h,i))),A=O.length===D.files.length&&!O.some((h)=>X(h.path,i,u))}catch{A=!1}if(A){if(C("cache hit:",r),O)q(e,O.map((T)=>T.path)),n.collectInputs?.push(...O.map((T)=>T.path));let D=await E.text(),h=new Date;if(b.promises.utimes(c,h,h).catch(()=>{}),O)k.set(c,{code:D,files:O});return D}C("cache invalidated by dep change:",r)}let z=H.get(r);if(z){let R=await z;if(n.collectInputs)n.collectInputs.push(...(k.get(c)?.files??[]).map((A)=>A.path));return R}let V=Cc(()=>Et(t,e,{projectRoot:i,minify:g,cacheDir:F,hash:r,cachePath:c,depsPath:I,collectInputs:n.collectInputs,externalizeUserModules:l,serverApi:u,expose:S,throwOnFailure:n.throwOnFailure,substitutes:j?.modules}));H.set(r,V);try{return await V}finally{H.delete(r)}}var jt=0;function _c(t){return`${t}-${process.pid}-${++jt}`}async function Et(t,e,n){let{projectRoot:i,minify:u,cacheDir:g,hash:l,cachePath:S,depsPath:F,externalizeUserModules:j}=n,p=a(i,"bundle-tmp"),r=_c(l),c=d.join(p,`${r}.ts`),x=d.join(p,"out",r);b.mkdirSync(p,{recursive:!0}),b.mkdirSync(x,{recursive:!0});let I=d.dirname(e),E=new Set,z=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,V=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,R=s(t),{depths:A,balanced:O}=Pe(R),D=(B)=>!O||A[B]===0,h;while((h=z.exec(R))!==null){if(h[1])continue;if(!D(h.index))continue;if(h[2])h[2].split(",").forEach((B)=>{let f=_t(B);if(f)E.add(f)});else if(h[3])E.add(h[3])}while((h=V.exec(R))!==null){if(h[1])continue;if(!D(h.index))continue;E.add(h[2])}let T=/^[ \t]*import[ \t]+(?!type\b)(?:(\w+)\s*(?:,\s*)?)?(?:\*\s+as\s+(\w+)|\{([^}]+)\})?\s+from\b/gm;while((h=T.exec(R))!==null){if(!D(h.index))continue;let B=/^\s*['"]([^'"]+)['"]/.exec(t.slice(h.index+h[0].length))?.[1];if(B&&Q.some((f)=>f.test(B)))continue;if(h[1])E.add(h[1]);if(h[2])E.add(h[2]);for(let f of(h[3]??"").split(",")){let v=f.trim();if(!v||/^type\s/.test(v))continue;let L=/\bas\s+(\w+)\s*$/.exec(v)?.[1]??/^\w+$/.exec(v)?.[0];if(L)E.add(L)}}for(let B of R.matchAll(/\bexport\s*\{([^}]+)\}/g))for(let f of B[1].split(",")){let v=/\bas\s+(\w+)\s*$/.exec(f)?.[1]??/^\s*(\w+)\s*$/.exec(f)?.[1];if(v)E.delete(v)}let lt=E.size>0?`
3
3
  export { ${[...E].join(", ")} }`:"";await Bun.write(c,t+lt),C("bundling:",l,"from:",d.basename(e));let tt=new Set,et=new Map;try{let B=await Bun.build({entrypoints:[c],outdir:x,target:"browser",format:"esm",minify:u?{whitespace:!1,identifiers:!0,syntax:!0}:!1,plugins:[Bt(i,I,c,tt,j,et,n.serverApi,n.substitutes)],define:{"process.env.NODE_ENV":u?'"production"':'"development"',...w()},root:i});if(!B.success){let _=B.logs.filter((N)=>N.level==="error").map((N)=>N.message).join(", ")||`Unable to bundle ${d.basename(e)}`,U=bn(B.logs,e||void 0);if(console.warn("[stx:bundler] build failed:",_),di(e||"",_,U),n.throwOnFailure||pi()==="error")throw Error(_);return t}let f="";for(let y of B.outputs){f=await y.text();break}let v=[];for(let y of f.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let _ of y[1].split(",")){let U=_.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(U){v.push([U[2],U[1]]);continue}let N=_.trim();if(/^[A-Za-z_$][\w$]*$/.test(N))v.push([N,N])}if(n.expose){let y=new Set(n.expose);for(let _=v.length-1;_>=0;_--)if(!y.has(v[_][0]))v.splice(_,1)}let L=[];f=kc(Sc(f,et),L);let ut=f.match(/^\s*import(?:\s+|(?=["'{*]))[^;]+;?\s*$/gm)||[];if(f=f.replace(/^\s*import(?:\s+|(?=["'{*]))[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),u&&f)try{f=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(f)}catch{}let J=`__stxBundle_${l}`,dt=new Set(M(t,!0).split(",").map((y)=>y.trim())),pt=v.map(([y,_])=>`get ${JSON.stringify(y)}() { return ${_} }${dt.has(y)?`, set ${JSON.stringify(y)}(__stxValue_${_}) { ${_} = __stxValue_${_} }`:""}`).join(", "),ft=v.map(([y])=>`var ${y} = undefined;`).join(`
4
4
  `),mt=v.map(([y])=>`${y} = ${J}[${JSON.stringify(y)}];`).join(`
5
5
  `);if(f=`${ut.join(`
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{p,c}from"./chunk-m92q2jyt.js";import{re,b}from"./chunk-dqjx14em.js";function A(t,o){let i=1,r=o,n="<template",e="</template";while(r<t.length&&i>0){let s=t.indexOf("<",r);if(s===-1)break;if(r=s,t.startsWith(n,r)&&(r+n.length>=t.length||/[\s>\/]/.test(t[r+n.length]))){i++,r+=n.length;continue}if(t.startsWith(e,r)){let a=t.indexOf(">",r+e.length);if(a!==-1){if(i--,i===0)return a+1;r=a+1;continue}}r++}return i===0?r:-1}var w=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function x(t,o){let i=null;for(let r=o;r<t.length;r++){let n=t[r];if(i){if(n==="\\"){r++;continue}if(n===i)i=null;continue}if(n==='"'||n==="'"){i=n;continue}if(n===">")return r+1}return-1}function N(t,o,i){let r=o.toLowerCase(),n=1,e=i;while(e<t.length){let s=t.indexOf("<",e);if(s===-1)return-1;if(t.startsWith("<!--",s)){let g=t.indexOf("-->",s+4);e=g===-1?t.length:g+3;continue}let a=x(t,s+1);if(a===-1)return-1;let f=t.slice(s,a),u=f.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(u&&u[2].toLowerCase()===r){if(u[1]==="/"){if(n--,n===0)return a}else if(!/\/\s*>$/.test(f))n++}e=a}return-1}function R(t){let o=[],i=[],r=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,n=0;while(n<t.length){let e=t.indexOf("<",n);if(e===-1)break;if(t.startsWith("<!--",e)){let l=t.indexOf("-->",e+4);n=l===-1?t.length:l+3;continue}let s=x(t,e+1);if(s===-1)break;let a=t.slice(e,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){n=s;continue}let u=f[2].toLowerCase();if(f[1]==="/"){let l=i.lastIndexOf(u);if(l!==-1)i.splice(l);n=s;continue}let g=/\/\s*>$/.test(a),m=i.length===0?a.match(r):null;if(m){let l=m[1]||m[2],d=a.replace(r,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),h=g||w.has(u)?-1:N(t,u,s);if(h===-1)o.push({start:e,end:s,slotName:l,element:d}),n=s;else o.push({start:e,end:h,slotName:l,element:d+t.slice(s,h)}),n=h;continue}if(!g&&!w.has(u)){if(i.push(u),u==="script"||u==="style"){let l=t.toLowerCase().indexOf(`</${u}>`,s);if(l!==-1){n=l;continue}}}n=s}return o}function O(t){let o=[],i=[],r=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,n=0;while(n<t.length){let e=t.indexOf("<",n);if(e===-1)break;if(t.startsWith("<!--",e)){let l=t.indexOf("-->",e+4);n=l===-1?t.length:l+3;continue}let s=x(t,e+1);if(s===-1)break;let a=t.slice(e,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){n=s;continue}let u=f[1]==="/",g=f[2].toLowerCase();if(u){let l=i.lastIndexOf(g);if(l!==-1)i.splice(l);n=s;continue}if(g==="template"&&i.length===0){let l=a.match(r);if(l){let d=A(t,s);if(d!==-1){let h=l[1]||l[2]||l[3];o.push({start:e,end:d,slotName:h,content:t.slice(s,d-11).trim(),propsBinding:l[4]||void 0}),n=d;continue}}}if(!/\/\s*>$/.test(a)&&!w.has(g)){if(i.push(g),g==="script"||g==="style"){let l=t.toLowerCase().indexOf(`</${g}>`,s);if(l!==-1){n=l;continue}}}n=s}return o}function Oa(t){let o={default:"",named:new Map},i=t,r=O(t);for(let e of r)o.named.set(e.slotName,{name:e.slotName,content:e.content,propsBinding:e.propsBinding});r.sort((e,s)=>s.start-e.start);for(let e of r)i=i.slice(0,e.start)+i.slice(e.end);let n=R(i);for(let e of n){let s=o.named.get(e.slotName);if(s)s.content+=e.element;else o.named.set(e.slotName,{name:e.slotName,content:e.element})}for(let e=n.length-1;e>=0;e--){let s=n[e];i=i.slice(0,s.start)+i.slice(s.end)}return o.default=i.trim(),o}function ql(t){let o=t.match(/name\s*=\s*["']([^"']+)["']/),i=o?o[1]:"",r={},n=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,e;while((e=n.exec(t))!==null)r[e[1]]=e[2];let s=t.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),a=s?s[1].trim():"";return{name:i,props:r,defaultContent:a}}async function Na(t,o,i,r){if(!t)return i;let n=t.content;if(t.propsBinding&&Object.keys(o).length>0){let e=t.propsBinding.trim(),s={...r},a=new Set,f=new Set;if(e.startsWith("{")&&e.endsWith("}")){let u=e.slice(1,-1).split(",").map((g)=>g.trim()).filter(Boolean);for(let g of u){let[m,l]=g.split(":").map((h)=>h.trim()),d=l||m;if(s[d]=o[m],o[m]!==void 0)f.add(d);else a.add(d)}}else if(s[e]=o,Object.values(o).some((u)=>u===void 0))a.add(e);else f.add(e);n=C(n,s,a,f)}return n}function C(t,o,i,r){return t.replace(/\{\{\s*([^}]+)\s*\}\}/g,(n,e)=>{try{let s=e.trim();if(re(s,i))return n;if(Array.isArray(o.__stx_preserved_client_expressions)&&o.__stx_preserved_client_expressions.includes(s)&&!re(s,r))return n;let a=k(s,o);if(a===void 0)return n;return b(String(a??""))}catch{return`{{ ${e} }}`}})}function k(t,o){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(t)){let r=t.split("."),n=o;for(let e of r)if(n&&typeof n==="object"&&e in n)n=n[e];else return;return n}let i=t.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(i){let[,r,n,e]=i,s=o[r],a=parseInt(e,10);if(typeof s==="number")switch(n){case"+":return s+a;case"-":return s-a;case"*":return s*a;case"/":return s/a}}try{if(!p(t))return;return c(t,Object.keys(o))(...Object.values(o))}catch{return}}async function Da(t,o,i){let r=t;r=await M(r,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(s,a,f,u)=>{let g=o.named.get(a),m=u?.trim()||"",l=f||"",d={},h=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,S;while((S=h.exec(l))!==null){let y=S[1],E=S[2];d[y]=k(E,i)}return await Na(g,d,m,i)});let e=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return r=r.replace(e,(s,a,f)=>{if(/\bname\s*=/.test(a||""))return s;let u=f?.trim()||"";return o.default||u}),r}async function M(t,o,i){let r=[],n=[];t.replace(o,(a,...f)=>{let u=f[f.length-2];return n.push({match:a,index:u}),r.push(i(a,...f.slice(0,-2))),a});let e=await Promise.all(r),s=t;for(let a=n.length-1;a>=0;a--){let{match:f,index:u}=n[a];s=s.slice(0,u)+e[a]+s.slice(u+f.length)}return s}function Gl(t){let o=Oa(t);return{defaultSlot:o.default,namedSlots:o.named}}async function Kl(t,o,i,r){return await Da(t,{default:o,named:i},r)}
2
+ import{p,c}from"./chunk-m92q2jyt.js";import{re,b}from"./chunk-grg366m9.js";function A(t,o){let i=1,r=o,n="<template",e="</template";while(r<t.length&&i>0){let s=t.indexOf("<",r);if(s===-1)break;if(r=s,t.startsWith(n,r)&&(r+n.length>=t.length||/[\s>\/]/.test(t[r+n.length]))){i++,r+=n.length;continue}if(t.startsWith(e,r)){let a=t.indexOf(">",r+e.length);if(a!==-1){if(i--,i===0)return a+1;r=a+1;continue}}r++}return i===0?r:-1}var w=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function x(t,o){let i=null;for(let r=o;r<t.length;r++){let n=t[r];if(i){if(n==="\\"){r++;continue}if(n===i)i=null;continue}if(n==='"'||n==="'"){i=n;continue}if(n===">")return r+1}return-1}function N(t,o,i){let r=o.toLowerCase(),n=1,e=i;while(e<t.length){let s=t.indexOf("<",e);if(s===-1)return-1;if(t.startsWith("<!--",s)){let g=t.indexOf("-->",s+4);e=g===-1?t.length:g+3;continue}let a=x(t,s+1);if(a===-1)return-1;let f=t.slice(s,a),u=f.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(u&&u[2].toLowerCase()===r){if(u[1]==="/"){if(n--,n===0)return a}else if(!/\/\s*>$/.test(f))n++}e=a}return-1}function R(t){let o=[],i=[],r=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,n=0;while(n<t.length){let e=t.indexOf("<",n);if(e===-1)break;if(t.startsWith("<!--",e)){let l=t.indexOf("-->",e+4);n=l===-1?t.length:l+3;continue}let s=x(t,e+1);if(s===-1)break;let a=t.slice(e,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){n=s;continue}let u=f[2].toLowerCase();if(f[1]==="/"){let l=i.lastIndexOf(u);if(l!==-1)i.splice(l);n=s;continue}let g=/\/\s*>$/.test(a),m=i.length===0?a.match(r):null;if(m){let l=m[1]||m[2],d=a.replace(r,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),h=g||w.has(u)?-1:N(t,u,s);if(h===-1)o.push({start:e,end:s,slotName:l,element:d}),n=s;else o.push({start:e,end:h,slotName:l,element:d+t.slice(s,h)}),n=h;continue}if(!g&&!w.has(u)){if(i.push(u),u==="script"||u==="style"){let l=t.toLowerCase().indexOf(`</${u}>`,s);if(l!==-1){n=l;continue}}}n=s}return o}function O(t){let o=[],i=[],r=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,n=0;while(n<t.length){let e=t.indexOf("<",n);if(e===-1)break;if(t.startsWith("<!--",e)){let l=t.indexOf("-->",e+4);n=l===-1?t.length:l+3;continue}let s=x(t,e+1);if(s===-1)break;let a=t.slice(e,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){n=s;continue}let u=f[1]==="/",g=f[2].toLowerCase();if(u){let l=i.lastIndexOf(g);if(l!==-1)i.splice(l);n=s;continue}if(g==="template"&&i.length===0){let l=a.match(r);if(l){let d=A(t,s);if(d!==-1){let h=l[1]||l[2]||l[3];o.push({start:e,end:d,slotName:h,content:t.slice(s,d-11).trim(),propsBinding:l[4]||void 0}),n=d;continue}}}if(!/\/\s*>$/.test(a)&&!w.has(g)){if(i.push(g),g==="script"||g==="style"){let l=t.toLowerCase().indexOf(`</${g}>`,s);if(l!==-1){n=l;continue}}}n=s}return o}function Oa(t){let o={default:"",named:new Map},i=t,r=O(t);for(let e of r)o.named.set(e.slotName,{name:e.slotName,content:e.content,propsBinding:e.propsBinding});r.sort((e,s)=>s.start-e.start);for(let e of r)i=i.slice(0,e.start)+i.slice(e.end);let n=R(i);for(let e of n){let s=o.named.get(e.slotName);if(s)s.content+=e.element;else o.named.set(e.slotName,{name:e.slotName,content:e.element})}for(let e=n.length-1;e>=0;e--){let s=n[e];i=i.slice(0,s.start)+i.slice(s.end)}return o.default=i.trim(),o}function ql(t){let o=t.match(/name\s*=\s*["']([^"']+)["']/),i=o?o[1]:"",r={},n=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,e;while((e=n.exec(t))!==null)r[e[1]]=e[2];let s=t.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),a=s?s[1].trim():"";return{name:i,props:r,defaultContent:a}}async function Na(t,o,i,r){if(!t)return i;let n=t.content;if(t.propsBinding&&Object.keys(o).length>0){let e=t.propsBinding.trim(),s={...r},a=new Set,f=new Set;if(e.startsWith("{")&&e.endsWith("}")){let u=e.slice(1,-1).split(",").map((g)=>g.trim()).filter(Boolean);for(let g of u){let[m,l]=g.split(":").map((h)=>h.trim()),d=l||m;if(s[d]=o[m],o[m]!==void 0)f.add(d);else a.add(d)}}else if(s[e]=o,Object.values(o).some((u)=>u===void 0))a.add(e);else f.add(e);n=C(n,s,a,f)}return n}function C(t,o,i,r){return t.replace(/\{\{\s*([^}]+)\s*\}\}/g,(n,e)=>{try{let s=e.trim();if(re(s,i))return n;if(Array.isArray(o.__stx_preserved_client_expressions)&&o.__stx_preserved_client_expressions.includes(s)&&!re(s,r))return n;let a=k(s,o);if(a===void 0)return n;return b(String(a??""))}catch{return`{{ ${e} }}`}})}function k(t,o){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(t)){let r=t.split("."),n=o;for(let e of r)if(n&&typeof n==="object"&&e in n)n=n[e];else return;return n}let i=t.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(i){let[,r,n,e]=i,s=o[r],a=parseInt(e,10);if(typeof s==="number")switch(n){case"+":return s+a;case"-":return s-a;case"*":return s*a;case"/":return s/a}}try{if(!p(t))return;return c(t,Object.keys(o))(...Object.values(o))}catch{return}}async function Da(t,o,i){let r=t;r=await M(r,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(s,a,f,u)=>{let g=o.named.get(a),m=u?.trim()||"",l=f||"",d={},h=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,S;while((S=h.exec(l))!==null){let y=S[1],E=S[2];d[y]=k(E,i)}return await Na(g,d,m,i)});let e=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return r=r.replace(e,(s,a,f)=>{if(/\bname\s*=/.test(a||""))return s;let u=f?.trim()||"";return o.default||u}),r}async function M(t,o,i){let r=[],n=[];t.replace(o,(a,...f)=>{let u=f[f.length-2];return n.push({match:a,index:u}),r.push(i(a,...f.slice(0,-2))),a});let e=await Promise.all(r),s=t;for(let a=n.length-1;a>=0;a--){let{match:f,index:u}=n[a];s=s.slice(0,u)+e[a]+s.slice(u+f.length)}return s}function Gl(t){let o=Oa(t);return{defaultSlot:o.default,namedSlots:o.named}}async function Kl(t,o,i,r){return await Da(t,{default:o,named:i},r)}
3
3
  export{Oa,ql,Na,Da,Gl,Kl};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  import m from"path";var y=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function I(...o){let r=new Set;for(let s of o){if(!s||!s.includes("__stxModules["))continue;for(let e of s.matchAll(y))try{r.add(JSON.parse(`"${e[1]}"`))}catch{}}return[...r].sort()}async function w(o,r={}){if(o.length===0)return null;let s=process.cwd(),e=[],a=[];o.forEach((t,c)=>{let i=t.startsWith("npm:")?t.slice(4):m.resolve(s,t),l=`__stxRegistered${c}`,p=JSON.stringify(t);e.push(`import * as ${l} from ${JSON.stringify(i)};`),a.push(`if (!globalThis.__stxModules[${p}]) globalThis.__stxModules[${p}] = ${l};`)});let d=[...e,"globalThis.__stxModules = globalThis.__stxModules || {};",...a].join(`
3
- `),n;try{let{bundleClientScript:t}=await import("./chunk-8k4d65x2.js");n=await t(d,m.join(s,".stx-module-registry.ts"),{projectRoot:s,minify:r.minify,externalizeUserModules:!1,collectInputs:r.collectInputs,throwOnFailure:!0})}catch(t){let{formatBuildFailure:c}=await import("./chunk-y51ndrdb.js"),i=c(t);console.warn(`[stx] could not build the page module registry (#1957): ${i}`);let l=`[stx] the page module registry did not build, so ${o.join(", ")} cannot load (#1957): ${i}`;return`;console.error(${JSON.stringify(l)});`}let{transformAutoImports:f,generateAutoImportDestructuring:_}=await import("./chunk-efx1zm7a.js"),u=f(n),h=_(u.stxImports,u.browserImports),{transformStoreImports:x}=await import("./chunk-wj4rf7sb.js");n=x(u.code);let g=JSON.stringify(new Bun.CryptoHasher("md5").update(d).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${g}]) return;`,` __stxBundles[${g}] = true;`,h,n,"})();"].join(`
3
+ `),n;try{let{bundleClientScript:t}=await import("./chunk-zrngcg6r.js");n=await t(d,m.join(s,".stx-module-registry.ts"),{projectRoot:s,minify:r.minify,externalizeUserModules:!1,collectInputs:r.collectInputs,throwOnFailure:!0})}catch(t){let{formatBuildFailure:c}=await import("./chunk-y51ndrdb.js"),i=c(t);console.warn(`[stx] could not build the page module registry (#1957): ${i}`);let l=`[stx] the page module registry did not build, so ${o.join(", ")} cannot load (#1957): ${i}`;return`;console.error(${JSON.stringify(l)});`}let{transformAutoImports:f,generateAutoImportDestructuring:_}=await import("./chunk-c8p5jwdq.js"),u=f(n),h=_(u.stxImports,u.browserImports),{transformStoreImports:x}=await import("./chunk-wj4rf7sb.js");n=x(u.code);let g=JSON.stringify(new Bun.CryptoHasher("md5").update(d).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${g}]) return;`,` __stxBundles[${g}] = true;`,h,n,"})();"].join(`
4
4
  `)}export{w as buildModuleRegistryScript,I as registeredModuleIdsIn};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{M,wd,Hc,Ps,Is,Ri,Ai,Os,Ns,gr,Pi,Ii,Vc,nt}from"./chunk-dqjx14em.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-pr1rt0z4.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{wd as clearScriptScanCache,Os as convertServerLoopAttributesToDirectives,Ri as convertSignalDirectivesToAttributes,Ns as convertSignalLoopsToAttributes,M as extractExports,Ii as findMarkupIndexOutsideScripts,Is as hasSignalsSyntax,Ps as parseLoopExpression,Ai as preEvalLiteralReactiveIfs,gr as processScriptSetup,Pi as processSignals,Vc as rewriteStxImportSpecifiers,Hc as scanScriptTags,nt as stripStxRuntimeImports};
2
+ import{M,wd,Hc,Ps,Is,Ri,Ai,Os,Ns,gr,Pi,Ii,Vc,nt}from"./chunk-grg366m9.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-xsmvcnmx.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{wd as clearScriptScanCache,Os as convertServerLoopAttributesToDirectives,Ri as convertSignalDirectivesToAttributes,Ns as convertSignalLoopsToAttributes,M as extractExports,Ii as findMarkupIndexOutsideScripts,Is as hasSignalsSyntax,Ps as parseLoopExpression,Ai as preEvalLiteralReactiveIfs,gr as processScriptSetup,Pi as processSignals,Vc as rewriteStxImportSpecifiers,Hc as scanScriptTags,nt as stripStxRuntimeImports};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Oa,ql,Na,Da,Gl,Kl}from"./chunk-8at87jae.js";import"./chunk-dqjx14em.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-pr1rt0z4.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{Kl as applySlots,Gl as extractSlotContent,ql as parseSlotElement,Oa as parseSlots,Da as processSlots,Na as renderSlot};
2
+ import{Oa,ql,Na,Da,Gl,Kl}from"./chunk-29sq7kqw.js";import"./chunk-grg366m9.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-xsmvcnmx.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{Kl as applySlots,Gl as extractSlotContent,ql as parseSlotElement,Oa as parseSlots,Da as processSlots,Na as renderSlot};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ir,Ge,_e,Ee,xi,dr,oe,Q,Tn,u,$n,n,A}from"./chunk-dqjx14em.js";function b(o){return o.endsWith(".md")||o.endsWith(".markdown")}function C(o){let e=[];m(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let s=[...e];m(/<code\b[^>]*>[\s\S]*?<\/code>/gi,s);function m(r,p){let g;while((g=r.exec(o))!==null){let t=g.index,i=t+g[0].length;if(p?.some((l)=>t>=l.start&&i<=l.end))continue;e.push({start:t,end:i})}}if(e.length===0)return o;e.sort((r,p)=>r.start-p.start);let a="",c=0;for(let r of e){if(r.start<c)continue;a+=o.slice(c,r.start),a+=`@raw${o.slice(r.start,r.end)}@endraw`,c=r.end}return a+=o.slice(c),a}async function R(o,e={}){let{data:s,content:m}=ir(o),c=await(e.renderer??((r)=>Ge(r)))(m);return{html:C(c),frontmatter:s??{}}}import{dirname as k,resolve as _}from"path";function v(o){let e=o,s=oe(o);if(s)e=s.content.trim();let m=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,a=[],c=[],r=[],p=(i)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(i),g;while((g=m.exec(o))!==null){let i=g[1],l=g[2],d=g[0],f=i.includes("server");if(p(l))r.push(d);else if(f)c.push(l);else a.push(d)}let t=e;{let i=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,l,d=[];while((l=i.exec(t))!==null){let f=l.index+l[0].length,w=t.indexOf("</script>",f);if(w===-1)continue;d.push({start:l.index,end:w+9}),i.lastIndex=w+9}for(let f=d.length-1;f>=0;f--)t=t.substring(0,d[f].start)+t.substring(d[f].end)}for(let i of a)t=t.replace(i,"");return{templateContent:t,serverScripts:c,clientScripts:a,signalsScripts:r}}function M(o,e){return`<!DOCTYPE html>
2
+ import{ir,Ge,_e,Ee,xi,dr,oe,Q,Tn,u,$n,n,A}from"./chunk-grg366m9.js";function b(o){return o.endsWith(".md")||o.endsWith(".markdown")}function C(o){let e=[];m(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let s=[...e];m(/<code\b[^>]*>[\s\S]*?<\/code>/gi,s);function m(r,p){let g;while((g=r.exec(o))!==null){let t=g.index,i=t+g[0].length;if(p?.some((l)=>t>=l.start&&i<=l.end))continue;e.push({start:t,end:i})}}if(e.length===0)return o;e.sort((r,p)=>r.start-p.start);let a="",c=0;for(let r of e){if(r.start<c)continue;a+=o.slice(c,r.start),a+=`@raw${o.slice(r.start,r.end)}@endraw`,c=r.end}return a+=o.slice(c),a}async function R(o,e={}){let{data:s,content:m}=ir(o),c=await(e.renderer??((r)=>Ge(r)))(m);return{html:C(c),frontmatter:s??{}}}import{dirname as k,resolve as _}from"path";function v(o){let e=o,s=oe(o);if(s)e=s.content.trim();let m=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,a=[],c=[],r=[],p=(i)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(i),g;while((g=m.exec(o))!==null){let i=g[1],l=g[2],d=g[0],f=i.includes("server");if(p(l))r.push(d);else if(f)c.push(l);else a.push(d)}let t=e;{let i=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,l,d=[];while((l=i.exec(t))!==null){let f=l.index+l[0].length,w=t.indexOf("</script>",f);if(w===-1)continue;d.push({start:l.index,end:w+9}),i.lastIndex=w+9}for(let f=d.length-1;f>=0;f--)t=t.substring(0,d[f].start)+t.substring(d[f].end)}for(let i of a)t=t.replace(i,"");return{templateContent:t,serverScripts:c,clientScripts:a,signalsScripts:r}}function M(o,e){return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -14,5 +14,5 @@ ${c.join(`
14
14
  `)}`}else{if(s.processClientScripts!==!1&&c.length>0){let i=p.__stx_event_bindings||[],l=_e(p),d=await Promise.all(c.map(async(y)=>{let h=y.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!h)return y;return await Ee(h[1],{eventBindings:i,templateContent:t,serverData:l,filePath:e})})),w=[await $n(d,{...r,buildMode:"compile"}),...d].filter(Boolean).join(`
15
15
  `);if(t.match(/(<\/body>)/i))t=t.replace(/(<\/body>)/i,`${w}
16
16
  $1`);else t+=`
17
- ${w}`}t=await Q(t)}if(s.wrapInDocument){if(!t.trim().toLowerCase().startsWith("<!doctype")&&!t.trim().toLowerCase().startsWith("<html"))t=M(t,s.title)}if(s.injectCSS)try{let{injectCss:i}=await import("./chunk-0f75mm0s.js");t=await i(t)}catch{}return t}
17
+ ${w}`}t=await Q(t)}if(s.wrapInDocument){if(!t.trim().toLowerCase().startsWith("<!doctype")&&!t.trim().toLowerCase().startsWith("<html"))t=M(t,s.title)}if(s.injectCSS)try{let{injectCss:i}=await import("./chunk-tcq0me7c.js");t=await i(t)}catch{}return t}
18
18
  export{ni};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{xd,Zc,Ae,Mi,Sd,Ls,js,Bs}from"./chunk-dqjx14em.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-pr1rt0z4.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{Sd as clearOnceStore,Mi as onceStore,Ae as partialsCache,Ls as processIncludes,js as processStackPushDirectives,Bs as processStackReplacements,xd as resetUnscopedSignalWarnings,Zc as topLevelElements};
2
+ import{xd,Zc,Ae,Mi,Sd,Ls,js,Bs}from"./chunk-grg366m9.js";import"./chunk-r00nn2qs.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-xsmvcnmx.js";import"./chunk-a0ygyftk.js";import"./chunk-6vmvra0f.js";import"./chunk-qmh6f1bt.js";import"./chunk-m92q2jyt.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-gsp3627d.js";import"./chunk-pvfx0dgz.js";export{Sd as clearOnceStore,Mi as onceStore,Ae as partialsCache,Ls as processIncludes,js as processStackPushDirectives,Bs as processStackReplacements,xd as resetUnscopedSignalWarnings,Zc as topLevelElements};