@stacksjs/stx 0.2.845 → 0.2.847

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 (237) hide show
  1. package/dist/app-shell.d.ts +2 -1
  2. package/dist/app-shell.js +3 -3
  3. package/dist/builtins/image-worker.d.ts +1 -17
  4. package/dist/builtins/image-worker.js +3 -16
  5. package/dist/{chunk-rb6vr5v9.js → chunk-09412heg.js} +7 -7
  6. package/dist/chunk-0d4zhbjz.js +2 -0
  7. package/dist/chunk-0g05v7m1.js +2 -0
  8. package/dist/chunk-0vbt87cv.js +2 -0
  9. package/dist/{chunk-n91sm385.js → chunk-0wms5teg.js} +2 -2
  10. package/dist/{chunk-6x6w0v1k.js → chunk-110s34yg.js} +3 -3
  11. package/dist/chunk-11snc6n0.js +2 -0
  12. package/dist/{chunk-py5x8fkq.js → chunk-12r22pf0.js} +2 -2
  13. package/dist/chunk-14cvwsy1.js +3 -0
  14. package/dist/chunk-1menbxwb.js +2 -0
  15. package/dist/chunk-1na30z8t.js +2 -0
  16. package/dist/chunk-1p968nww.js +2 -0
  17. package/dist/chunk-1pf4y2yr.js +2 -0
  18. package/dist/chunk-1rban2td.js +2 -0
  19. package/dist/{chunk-3rjgm7qk.js → chunk-25m74mh1.js} +5 -5
  20. package/dist/{chunk-79wb76ya.js → chunk-2j3gttzf.js} +1 -1
  21. package/dist/{chunk-ka5ea34g.js → chunk-2ts9pb6s.js} +2 -2
  22. package/dist/{chunk-ntg8ttm4.js → chunk-2xf323h9.js} +3 -3
  23. package/dist/chunk-31rtwv90.js +2 -0
  24. package/dist/chunk-341c732h.js +2 -0
  25. package/dist/chunk-343hxxq1.js +2 -0
  26. package/dist/chunk-37bzsnr7.js +2 -0
  27. package/dist/{chunk-97bvpszy.js → chunk-3c2hgvag.js} +3 -3
  28. package/dist/chunk-3m6n90sk.js +2 -0
  29. package/dist/{chunk-9vg3jtzw.js → chunk-3qyz80d6.js} +6 -6
  30. package/dist/{chunk-47n5s7wk.js → chunk-46t924aw.js} +2 -2
  31. package/dist/{chunk-c6yc6qsv.js → chunk-4fc8zs15.js} +5 -5
  32. package/dist/{chunk-6tyjvxgb.js → chunk-5aqvfnvy.js} +8 -8
  33. package/dist/chunk-5bm8hmwd.js +2 -0
  34. package/dist/{chunk-vhxrrqrg.js → chunk-5ghw26vq.js} +2 -2
  35. package/dist/{chunk-4rfedg2f.js → chunk-5m0nyt8d.js} +3 -3
  36. package/dist/{chunk-md84j62m.js → chunk-5njk2ba0.js} +10 -10
  37. package/dist/{chunk-fg80w4zk.js → chunk-5wr1qqz3.js} +2 -2
  38. package/dist/{chunk-7r4p7zjn.js → chunk-5x8q6e1q.js} +6 -6
  39. package/dist/chunk-6bemqsdj.js +2 -0
  40. package/dist/chunk-6hd83cj4.js +2 -0
  41. package/dist/{chunk-k7am94hr.js → chunk-6peq9s4s.js} +5 -5
  42. package/dist/{chunk-1h6pb8d1.js → chunk-6xcmeev9.js} +5 -5
  43. package/dist/chunk-77fs8281.js +2 -0
  44. package/dist/chunk-79pgjds2.js +2 -0
  45. package/dist/chunk-7ycmnsh5.js +2 -0
  46. package/dist/{chunk-78q3apyy.js → chunk-81ysx0tc.js} +2 -2
  47. package/dist/{chunk-s68p10zh.js → chunk-8586a2hh.js} +2 -2
  48. package/dist/chunk-86z8zrn9.js +3 -0
  49. package/dist/chunk-8xb9ecb9.js +2 -0
  50. package/dist/{chunk-mveqaxkr.js → chunk-907zya76.js} +9 -9
  51. package/dist/{chunk-fs5mshcs.js → chunk-93c08def.js} +5 -5
  52. package/dist/chunk-9c6yvh3p.js +2 -0
  53. package/dist/chunk-9fxeqf0e.js +2 -0
  54. package/dist/chunk-9m96yv69.js +2 -0
  55. package/dist/{chunk-6hb75r07.js → chunk-9qxx2teq.js} +6 -6
  56. package/dist/{chunk-rk2ex6qx.js → chunk-9sjtph54.js} +3 -3
  57. package/dist/{chunk-0gg7k9cj.js → chunk-acwdf0cf.js} +5 -5
  58. package/dist/chunk-atsjexk0.js +2 -0
  59. package/dist/{chunk-hc1f1yq8.js → chunk-b3n1m4m5.js} +2 -2
  60. package/dist/chunk-bcefawtc.js +2 -0
  61. package/dist/{chunk-8g5dsjr0.js → chunk-bttvkzxh.js} +6 -6
  62. package/dist/chunk-byjjz7h8.js +2 -0
  63. package/dist/chunk-c0azgkss.js +2 -0
  64. package/dist/{chunk-tzdwg9rw.js → chunk-c541s99z.js} +4 -4
  65. package/dist/chunk-cbz7jtzf.js +2 -0
  66. package/dist/chunk-cq06hsm4.js +2 -0
  67. package/dist/{chunk-5a7etvxz.js → chunk-cv0rmntr.js} +5 -5
  68. package/dist/{chunk-48vnw9t9.js → chunk-cww1zk8y.js} +2 -2
  69. package/dist/{chunk-010yhk6m.js → chunk-cz2s176s.js} +5 -5
  70. package/dist/chunk-dsh91n7n.js +2 -0
  71. package/dist/{chunk-2cafvex6.js → chunk-dv9q56r7.js} +2 -2
  72. package/dist/{chunk-r8xwd8r1.js → chunk-eg2p1cyw.js} +14 -14
  73. package/dist/{chunk-r4jwhy37.js → chunk-emf6ee94.js} +3 -3
  74. package/dist/{chunk-dhgjq9jx.js → chunk-eqbx4yj1.js} +6 -6
  75. package/dist/chunk-evdskc25.js +2 -0
  76. package/dist/chunk-f18rxz70.js +2 -0
  77. package/dist/chunk-f8akfzzn.js +2 -0
  78. package/dist/chunk-f8wmxwa3.js +2 -0
  79. package/dist/{chunk-b6qf7w2b.js → chunk-fa3ygt8c.js} +4 -4
  80. package/dist/{chunk-fm8gfj2g.js → chunk-fez9828r.js} +2 -2
  81. package/dist/chunk-fhyvdxhw.js +4 -0
  82. package/dist/{chunk-nqj1mkkz.js → chunk-fr658fhd.js} +2 -2
  83. package/dist/chunk-fseqwysr.js +2 -0
  84. package/dist/{chunk-zwxncs2e.js → chunk-fxk08je0.js} +9 -9
  85. package/dist/chunk-g891ftgz.js +2 -0
  86. package/dist/{chunk-8qjf16yr.js → chunk-ga650crj.js} +5 -5
  87. package/dist/chunk-gc7gh0g0.js +2 -0
  88. package/dist/chunk-gzx1f8ay.js +2 -0
  89. package/dist/chunk-h526qmg2.js +2 -0
  90. package/dist/{chunk-y06rw18j.js → chunk-h9778nxm.js} +2 -2
  91. package/dist/chunk-hazd1sh8.js +2 -0
  92. package/dist/{chunk-kbv5nwwd.js → chunk-he9dzchk.js} +1 -1
  93. package/dist/{chunk-xr8hg79c.js → chunk-hpaj7zjv.js} +4 -4
  94. package/dist/{chunk-4y6hes3h.js → chunk-hpwtjb4a.js} +2 -2
  95. package/dist/chunk-j08r18x1.js +2 -0
  96. package/dist/chunk-j1sm889p.js +2 -0
  97. package/dist/chunk-j539dz72.js +2 -0
  98. package/dist/{chunk-11kp389s.js → chunk-jaf44web.js} +1 -1
  99. package/dist/{chunk-5p96rafz.js → chunk-jcwtw3hd.js} +2 -2
  100. package/dist/{chunk-tpyk6b4c.js → chunk-jh36gqcq.js} +2 -2
  101. package/dist/chunk-jj5fz0fq.js +12 -0
  102. package/dist/{chunk-x0dx1pyf.js → chunk-jm0qsr3s.js} +3 -3
  103. package/dist/chunk-jmqwpnpd.js +2 -0
  104. package/dist/chunk-jqngvqby.js +2 -0
  105. package/dist/{chunk-9mtyxvhk.js → chunk-jtccqpwa.js} +2 -2
  106. package/dist/chunk-k33kgf8a.js +2 -0
  107. package/dist/{chunk-jabw4ck5.js → chunk-k44qj40k.js} +2 -2
  108. package/dist/chunk-ke8rxpp9.js +2 -0
  109. package/dist/{chunk-302gek13.js → chunk-ks0dwtp0.js} +3 -3
  110. package/dist/chunk-kvttzk86.js +2 -0
  111. package/dist/{chunk-87ksn02m.js → chunk-ma9yq04p.js} +2 -2
  112. package/dist/{chunk-6trgwvt0.js → chunk-mbcqpcyt.js} +12 -12
  113. package/dist/chunk-mfbqjkgp.js +3 -0
  114. package/dist/chunk-my8257pf.js +2 -0
  115. package/dist/{chunk-jf0a5ew8.js → chunk-na1x46xm.js} +3 -3
  116. package/dist/chunk-nm04926f.js +2 -0
  117. package/dist/chunk-nnnf8cjv.js +2 -0
  118. package/dist/{chunk-ncrrxp60.js → chunk-nws4zm4k.js} +4 -4
  119. package/dist/chunk-p2fkggw4.js +3 -0
  120. package/dist/{chunk-c62wxswd.js → chunk-prnebmz1.js} +39 -39
  121. package/dist/chunk-q18508s2.js +2 -0
  122. package/dist/{chunk-k1tbgnhf.js → chunk-q61r0m6r.js} +1 -1
  123. package/dist/chunk-qay7pgnq.js +2 -0
  124. package/dist/{chunk-rpapxkdm.js → chunk-qpz9jrvw.js} +3 -3
  125. package/dist/chunk-r6085mp4.js +2 -0
  126. package/dist/{chunk-7s411sa9.js → chunk-r96ahk8s.js} +5 -5
  127. package/dist/chunk-rke4q3jk.js +2 -0
  128. package/dist/{chunk-r3jf8v5a.js → chunk-rqjskxpw.js} +32 -32
  129. package/dist/chunk-rsa9ssz7.js +33 -0
  130. package/dist/{chunk-y7aqf8r7.js → chunk-s4wcksaw.js} +2 -2
  131. package/dist/{chunk-vf0xbptq.js → chunk-s6td2c1k.js} +2 -2
  132. package/dist/chunk-se79v0pe.js +2 -0
  133. package/dist/{chunk-rncmfgpk.js → chunk-sz2nax5v.js} +32 -32
  134. package/dist/{chunk-kxj5sp5w.js → chunk-t4dkcf28.js} +114 -25
  135. package/dist/{chunk-4dxq7ft1.js → chunk-t5q31st4.js} +2 -2
  136. package/dist/{chunk-5y3m5vzg.js → chunk-tb5h85ag.js} +2 -2
  137. package/dist/{chunk-02qbawwq.js → chunk-tm5t3hh3.js} +3 -3
  138. package/dist/{chunk-bqsrtvad.js → chunk-trgbdydw.js} +2 -2
  139. package/dist/chunk-twfx2scr.js +2 -0
  140. package/dist/{chunk-hgk1v60t.js → chunk-txs1vxas.js} +10 -10
  141. package/dist/{chunk-315q48qy.js → chunk-v5tzcd49.js} +7 -7
  142. package/dist/chunk-v7d7m4k1.js +2 -0
  143. package/dist/chunk-vdb3p2v3.js +2 -0
  144. package/dist/chunk-vm2y05sr.js +2 -0
  145. package/dist/{chunk-f34ce0pn.js → chunk-vm68yvgf.js} +6 -6
  146. package/dist/{chunk-69b8mr68.js → chunk-wdwx2aa6.js} +2 -2
  147. package/dist/{chunk-1c6kczkt.js → chunk-wp14sf2j.js} +2 -2
  148. package/dist/{chunk-2ytaezad.js → chunk-wzyc9da7.js} +2 -2
  149. package/dist/chunk-xc1k2zza.js +2 -0
  150. package/dist/{chunk-ndsygfeb.js → chunk-xn0ebqgw.js} +14 -14
  151. package/dist/{chunk-zjqvbcwa.js → chunk-xppm4cs4.js} +2 -2
  152. package/dist/{chunk-3ba0nqwm.js → chunk-y1cneng3.js} +2 -2
  153. package/dist/{chunk-tjnf4a8g.js → chunk-ybgzr6wn.js} +64 -64
  154. package/dist/{chunk-3sskqw4b.js → chunk-yrmppd8r.js} +1 -1
  155. package/dist/{chunk-pb9347sn.js → chunk-ysqzz2h3.js} +3 -3
  156. package/dist/{chunk-28zze2wm.js → chunk-z57xq46m.js} +1 -1
  157. package/dist/{chunk-mnt7jbek.js → chunk-zfb2wnha.js} +3 -3
  158. package/dist/cli.js +20 -20
  159. package/dist/craft-entry.js +2 -2
  160. package/dist/craft.js +2 -2
  161. package/dist/framework-composables.js +13 -1
  162. package/dist/installed-entry.d.ts +8 -0
  163. package/dist/installed-entry.js +19 -0
  164. package/dist/page-head.d.ts +15 -0
  165. package/dist/page-head.js +35 -10
  166. package/dist/pwa.js +3 -3
  167. package/dist/ssg.js +6 -6
  168. package/dist/template-compiler.js +2 -2
  169. package/package.json +5 -5
  170. package/dist/chunk-01gwdj2y.js +0 -2
  171. package/dist/chunk-07hvjvj1.js +0 -2
  172. package/dist/chunk-12tkqtrv.js +0 -2
  173. package/dist/chunk-168fwztf.js +0 -2
  174. package/dist/chunk-1cdxe8yt.js +0 -2
  175. package/dist/chunk-1k751fgt.js +0 -2
  176. package/dist/chunk-3qa40hgd.js +0 -2
  177. package/dist/chunk-3qstewq3.js +0 -2
  178. package/dist/chunk-40r740w1.js +0 -2
  179. package/dist/chunk-469nzheq.js +0 -2
  180. package/dist/chunk-5hhyqze9.js +0 -2
  181. package/dist/chunk-60jtrz9f.js +0 -2
  182. package/dist/chunk-64evx0my.js +0 -2
  183. package/dist/chunk-6vcpmt0y.js +0 -2
  184. package/dist/chunk-7tdwa595.js +0 -2
  185. package/dist/chunk-7xp2ec0v.js +0 -2
  186. package/dist/chunk-8hy5g1hq.js +0 -32
  187. package/dist/chunk-8nq2snvy.js +0 -2
  188. package/dist/chunk-8s27mteq.js +0 -2
  189. package/dist/chunk-8weaawqm.js +0 -2
  190. package/dist/chunk-afyvnpr9.js +0 -2
  191. package/dist/chunk-as6x6be8.js +0 -2
  192. package/dist/chunk-aw45yjrw.js +0 -2
  193. package/dist/chunk-b30fzxwd.js +0 -2
  194. package/dist/chunk-b3wcs8bk.js +0 -2
  195. package/dist/chunk-bygxt820.js +0 -3
  196. package/dist/chunk-c3y7cxe7.js +0 -2
  197. package/dist/chunk-d5bjpjbv.js +0 -2
  198. package/dist/chunk-dmmt4psb.js +0 -12
  199. package/dist/chunk-e1vf62ck.js +0 -2
  200. package/dist/chunk-eaz30495.js +0 -4
  201. package/dist/chunk-emzz6seq.js +0 -2
  202. package/dist/chunk-exr9599h.js +0 -2
  203. package/dist/chunk-f1wv2q2z.js +0 -2
  204. package/dist/chunk-fpc1n3je.js +0 -2
  205. package/dist/chunk-fyesbfvr.js +0 -2
  206. package/dist/chunk-fz433ybr.js +0 -2
  207. package/dist/chunk-hbkh87n2.js +0 -2
  208. package/dist/chunk-hpw6hq7p.js +0 -2
  209. package/dist/chunk-j274w1ac.js +0 -2
  210. package/dist/chunk-jf37tpj2.js +0 -2
  211. package/dist/chunk-jv2z9qb7.js +0 -2
  212. package/dist/chunk-k609nyan.js +0 -2
  213. package/dist/chunk-msd0ezxm.js +0 -2
  214. package/dist/chunk-n4c8srx8.js +0 -2
  215. package/dist/chunk-nfxd6y75.js +0 -2
  216. package/dist/chunk-pj1xj34h.js +0 -2
  217. package/dist/chunk-pv2mrc9g.js +0 -2
  218. package/dist/chunk-pwdnqe30.js +0 -2
  219. package/dist/chunk-qeej9h56.js +0 -2
  220. package/dist/chunk-rapk2r7b.js +0 -2
  221. package/dist/chunk-rrj3gv46.js +0 -3
  222. package/dist/chunk-sss23kn5.js +0 -2
  223. package/dist/chunk-st75663x.js +0 -2
  224. package/dist/chunk-sv52qc36.js +0 -3
  225. package/dist/chunk-t4n23dh5.js +0 -2
  226. package/dist/chunk-vkrxrt0a.js +0 -2
  227. package/dist/chunk-vzpbxgg7.js +0 -2
  228. package/dist/chunk-wvwca1e9.js +0 -2
  229. package/dist/chunk-xjbc3bhs.js +0 -2
  230. package/dist/chunk-xtbmntht.js +0 -2
  231. package/dist/chunk-xvd3vdrw.js +0 -2
  232. package/dist/chunk-xvtp7nyj.js +0 -2
  233. package/dist/chunk-xy45tx27.js +0 -2
  234. package/dist/chunk-yg5a54pj.js +0 -2
  235. package/dist/chunk-yhzakgpp.js +0 -2
  236. package/dist/chunk-z3qgv971.js +0 -2
  237. package/dist/chunk-zztfp9qh.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Oe,w,S,C,Z}from"./chunk-tjnf4a8g.js";import{k}from"./chunk-n91sm385.js";import{I,Rn}from"./chunk-zjqvbcwa.js";import{a}from"./chunk-md84j62m.js";import{ye,rn,sn,on}from"./chunk-xr8hg79c.js";import{vt}from"./chunk-mveqaxkr.js";import{ht,Un,Jt,le}from"./chunk-jf0a5ew8.js";import{T,$n}from"./chunk-jabw4ck5.js";import h from"path";var v=new Map,A=new Map,E=w(64),F=new Map,Y=["composables","functions"];function H(e){let s=h.basename(e,".ts");return s==="index"||s==="types"||e.endsWith(".d.ts")}async function ee(e){if(e)return h.resolve(e);let s=`<default>:${process.cwd()}`,r=F.get(s);if(r!==void 0)return r;let t=await te();if(t!==null)F.set(s,t);return t}async function te(){let e=await a(),s=e.root||process.cwd(),r=e.composablesDir;if(r)return h.resolve(s,r);for(let t of Y){let n=h.resolve(s,t);try{let c=new Bun.Glob("**/*.ts");for await(let i of c.scan({cwd:n,absolute:!0}))if(!H(i))return n}catch{}}return null}async function W(e){let s=Array.isArray(e)?e:e?[h.resolve(e)]:(await a())._layerComposableDirs??[await ee()].filter((t)=>!!t),r=new Map;for(let t of s){let n=new Bun.Glob("**/*.ts");try{for await(let c of n.scan({cwd:t,absolute:!0})){let i=h.relative(t,c);if(!H(c)&&!r.has(i))r.set(i,c)}}catch{}}return{key:s.join("\x00"),files:[...r.values()].sort()}}async function xo(e){let{files:s}=await W(e),r=Z({loader:"ts",target:"browser",define:C()}),t=[];for(let n of s)try{let c=await Bun.file(n).text(),i=r.scan(c).exports.filter((u)=>u!=="default");if(i.length>0)t.push({file:n,names:i})}catch{}return t}function ne(e,s){return new RegExp(`\\b${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(e)}function R(e,s){let r=new Set(e.match(/\w+/g)),t=new Set;for(let n of s)if(/^\w+$/.test(n)?r.has(n):ne(e,n))t.add(n);return t}var J=w(64);function X(e,s){let r=S(e,s.size),t=J.get(r);if(t)return t;let n;try{n=Oe(e,s)}catch{n=R(e,s)}let c=[...e.matchAll(/(?:const|let|var)\s*\{([^}]*)\}\s*=\s*window\.__composables\u0008/g),...e.matchAll(/import\s*\{([^}]*)\}\s*from\s*['"]@composables['"]/g)];for(let i of c)for(let u of i[1].split(",")){let f=u.trim().split(/\s*(?::|\u0008as\u0008)\s*/)[0];if(f&&s.has(f))n.add(f)}return J.set(r,n),n}function se(e){return!e||/^(?:module|(?:text|application)\/(?:java|ecma)script|application\/stx-[\w-]+)$/i.test(e)}var L=w(256);function oe(e,s){let r=new Set(s),t="",n=0,c=new Set;for(let i of e.matchAll(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi)){t+=e.slice(n,i.index),n=i.index+i[0].length;let u=i[1]??"",f=i[2]??"",d=/\btype\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(u),m=d?(d[1]??d[2]??d[3]??"").trim():void 0;if(!se(m)){if(!/json/i.test(m??""))t+=` ${f} `;continue}let y=R(f,r);if(y.size===0)continue;let _=S(f,[...y].sort().join(",")),b=L.get(_);if(!b)b=X(f,y),L.set(_,b);for(let B of b)c.add(B)}t+=e.slice(n);for(let i of R(t,r))c.add(i);return c}function ie(e,s,r){let t=new Map;for(let{file:f,names:d}of e)for(let m of d)if(!t.has(m))t.set(m,f);let n=new Set(t.keys()),c=(f)=>{let d=[];for(let m of X(f,n))d.push(t.get(m));return d},i=new Set,u=r.flatMap((f,d)=>d===0?[...oe(f,t.keys())].map((m)=>t.get(m)):c(f));while(u.length>0){let f=[];for(let d of u){if(i.has(d))continue;i.add(d);for(let m of c(s.get(d)??""))if(!i.has(m))f.push(m)}u=f}return i}async function gh(e,s,r,t){let{key:n,files:c}=await W(e);if(!n)return null;let i=()=>[...new Set([...c,...c.flatMap((o)=>ye(o))])],u=ht(i());if(c.length===0)return le(v,n,u,""),null;c.sort();let f=Z({loader:"ts",target:"browser",define:C()}),d=Jt(A,n,u);if(!d){let o=new Map,l=[];for(let p of c)try{let x=await Bun.file(p).text();o.set(p,x);let g=f.scan(x).exports.filter((V)=>V!=="default");if(g.length>0)l.push({file:p,names:g})}catch{o.set(p,"")}d=le(A,n,u,{codeByFile:o,modules:l})}let{codeByFile:m,modules:y}=d,_;if(s===void 0)_=new Set(c);else{let o=r?[s,...r]:[s],l=S(o.join("\x00"),n,o.length,u),p=E.get(l);if(_=p??ie(y,m,o),!p)E.set(l,_)}if(_.size===0)return null;let b=c.filter((o)=>_.has(o)),B=()=>{if(!t)return;for(let o of b)t.push(o,...ye(o))},N=`${n}\x00${b.join("\x00")}\x00${sn()}`,P=Jt(v,N,u);if(P!==void 0)return B(),P||null;let D=[],M=new Set,U=new Set;for(let o of b)try{let l=m.get(o)??await Bun.file(o).text(),p=h.basename(o,".ts");for(let g of l.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(g[1])U.add(g[1]);let x=[];try{for(let g of f.scan(l).exports)if(g!=="default")M.add(g),x.push(g)}catch{}if(l=I(l),rn(l))l=await on(l,o,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),l=vt(l);l=Rn(l),l=l.replace(/^export\s+(default\s+)?/gm,""),l=f.transformSync(l),D.push(`// Composable: ${p}
2
+ import{Oe,w,S,C,Z}from"./chunk-ybgzr6wn.js";import{k}from"./chunk-0wms5teg.js";import{I,An}from"./chunk-xppm4cs4.js";import{a}from"./chunk-5njk2ba0.js";import{ye,sn,on,an}from"./chunk-hpaj7zjv.js";import{vt}from"./chunk-907zya76.js";import{ht,Wn,Yt,le}from"./chunk-na1x46xm.js";import{T,Rn}from"./chunk-k44qj40k.js";import h from"path";var v=new Map,A=new Map,E=w(64),F=new Map,Y=["composables","functions"];function H(e){let s=h.basename(e,".ts");return s==="index"||s==="types"||e.endsWith(".d.ts")}async function ee(e){if(e)return h.resolve(e);let s=`<default>:${process.cwd()}`,r=F.get(s);if(r!==void 0)return r;let t=await te();if(t!==null)F.set(s,t);return t}async function te(){let e=await a(),s=e.root||process.cwd(),r=e.composablesDir;if(r)return h.resolve(s,r);for(let t of Y){let n=h.resolve(s,t);try{let c=new Bun.Glob("**/*.ts");for await(let i of c.scan({cwd:n,absolute:!0}))if(!H(i))return n}catch{}}return null}async function W(e){let s=Array.isArray(e)?e:e?[h.resolve(e)]:(await a())._layerComposableDirs??[await ee()].filter((t)=>!!t),r=new Map;for(let t of s){let n=new Bun.Glob("**/*.ts");try{for await(let c of n.scan({cwd:t,absolute:!0})){let i=h.relative(t,c);if(!H(c)&&!r.has(i))r.set(i,c)}}catch{}}return{key:s.join("\x00"),files:[...r.values()].sort()}}async function ko(e){let{files:s}=await W(e),r=Z({loader:"ts",target:"browser",define:C()}),t=[];for(let n of s)try{let c=await Bun.file(n).text(),i=r.scan(c).exports.filter((u)=>u!=="default");if(i.length>0)t.push({file:n,names:i})}catch{}return t}function ne(e,s){return new RegExp(`\\b${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(e)}function R(e,s){let r=new Set(e.match(/\w+/g)),t=new Set;for(let n of s)if(/^\w+$/.test(n)?r.has(n):ne(e,n))t.add(n);return t}var J=w(64);function X(e,s){let r=S(e,s.size),t=J.get(r);if(t)return t;let n;try{n=Oe(e,s)}catch{n=R(e,s)}let c=[...e.matchAll(/(?:const|let|var)\s*\{([^}]*)\}\s*=\s*window\.__composables\u0008/g),...e.matchAll(/import\s*\{([^}]*)\}\s*from\s*['"]@composables['"]/g)];for(let i of c)for(let u of i[1].split(",")){let f=u.trim().split(/\s*(?::|\u0008as\u0008)\s*/)[0];if(f&&s.has(f))n.add(f)}return J.set(r,n),n}function se(e){return!e||/^(?:module|(?:text|application)\/(?:java|ecma)script|application\/stx-[\w-]+)$/i.test(e)}var L=w(256);function oe(e,s){let r=new Set(s),t="",n=0,c=new Set;for(let i of e.matchAll(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi)){t+=e.slice(n,i.index),n=i.index+i[0].length;let u=i[1]??"",f=i[2]??"",d=/\btype\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(u),m=d?(d[1]??d[2]??d[3]??"").trim():void 0;if(!se(m)){if(!/json/i.test(m??""))t+=` ${f} `;continue}let y=R(f,r);if(y.size===0)continue;let _=S(f,[...y].sort().join(",")),b=L.get(_);if(!b)b=X(f,y),L.set(_,b);for(let B of b)c.add(B)}t+=e.slice(n);for(let i of R(t,r))c.add(i);return c}function ie(e,s,r){let t=new Map;for(let{file:f,names:d}of e)for(let m of d)if(!t.has(m))t.set(m,f);let n=new Set(t.keys()),c=(f)=>{let d=[];for(let m of X(f,n))d.push(t.get(m));return d},i=new Set,u=r.flatMap((f,d)=>d===0?[...oe(f,t.keys())].map((m)=>t.get(m)):c(f));while(u.length>0){let f=[];for(let d of u){if(i.has(d))continue;i.add(d);for(let m of c(s.get(d)??""))if(!i.has(m))f.push(m)}u=f}return i}async function hh(e,s,r,t){let{key:n,files:c}=await W(e);if(!n)return null;let i=()=>[...new Set([...c,...c.flatMap((o)=>ye(o))])],u=ht(i());if(c.length===0)return le(v,n,u,""),null;c.sort();let f=Z({loader:"ts",target:"browser",define:C()}),d=Yt(A,n,u);if(!d){let o=new Map,l=[];for(let p of c)try{let x=await Bun.file(p).text();o.set(p,x);let g=f.scan(x).exports.filter((V)=>V!=="default");if(g.length>0)l.push({file:p,names:g})}catch{o.set(p,"")}d=le(A,n,u,{codeByFile:o,modules:l})}let{codeByFile:m,modules:y}=d,_;if(s===void 0)_=new Set(c);else{let o=r?[s,...r]:[s],l=S(o.join("\x00"),n,o.length,u),p=E.get(l);if(_=p??ie(y,m,o),!p)E.set(l,_)}if(_.size===0)return null;let b=c.filter((o)=>_.has(o)),B=()=>{if(!t)return;for(let o of b)t.push(o,...ye(o))},N=`${n}\x00${b.join("\x00")}\x00${on()}`,P=Yt(v,N,u);if(P!==void 0)return B(),P||null;let D=[],M=new Set,U=new Set;for(let o of b)try{let l=m.get(o)??await Bun.file(o).text(),p=h.basename(o,".ts");for(let g of l.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(g[1])U.add(g[1]);let x=[];try{for(let g of f.scan(l).exports)if(g!=="default")M.add(g),x.push(g)}catch{}if(l=I(l),sn(l))l=await an(l,o,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),l=vt(l);l=An(l),l=l.replace(/^export\s+(default\s+)?/gm,""),l=f.transformSync(l),D.push(`// Composable: ${p}
3
3
  ${l.trim()}`)}catch(l){console.warn(`[stx] Failed to load composable ${o}:`,l)}if(D.length===0||M.size===0)return le(v,N,u,""),null;let q=[...M].map((o)=>` try { if (!(${JSON.stringify(o)} in __c)) __c[${JSON.stringify(o)}] = ${o}; } catch (e) {}`).join(`
4
4
  `),z=JSON.stringify([...M]),j=D.join(`
5
5
 
@@ -29,5 +29,5 @@ ${q}
29
29
  window[__n] = __c[__n];
30
30
  __published[__n] = true;
31
31
  }
32
- })();`,G=T()?$n(O):O;return u=ht(i()),le(v,N,u,G),B(),G}function mh(){v.clear(),Un(),A.clear(),E.clear(),F.clear()}
33
- export{xo,gh,mh};
32
+ })();`,G=T()?Rn(O):O;return u=ht(i()),le(v,N,u,G),B(),G}function yh(){v.clear(),Wn(),A.clear(),E.clear(),F.clear()}
33
+ export{ko,hh,yh};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Nl,Zg}from"./chunk-trgbdydw.js";export{Nl as captureScreenshot,Zg as captureScreenshots};
@@ -159,7 +159,7 @@ else {
159
159
  stxIslands.initIslands();
160
160
  }
161
161
  })();
162
- </script>`}function b(e){let t=e.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(t)return t[1];let n=e.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(n)return n[1];return null}function w(e,t){let n={},r=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,i;while((i=r.exec(e))!==null){let d=i[1],o=i[2];if(o in t)n[d]=t[o];else n[d]=o}return n}function eu(){let e=new Map;return{islands:e,register(t){e.set(t.id,t)},get(t){return e.get(t)},async hydrate(t){let n=e.get(t);if(!n||n.hydrated)return;if(n.hydrated=!0,typeof window<"u"&&typeof window.dispatchEvent==="function")window.dispatchEvent(new CustomEvent("stx:hydrate",{detail:{id:t,component:n.component}}))},async hydrateAll(){let t=Array.from(e.values()).filter((n)=>!n.hydrated).map((n)=>this.hydrate(n.id));await Promise.all(t)}}}function I(e){return`
162
+ </script>`}function b(e){let t=e.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(t)return t[1];let n=e.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(n)return n[1];return null}function w(e,t){let n={},r=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,i;while((i=r.exec(e))!==null){let d=i[1],o=i[2];if(o in t)n[d]=t[o];else n[d]=o}return n}function nu(){let e=new Map;return{islands:e,register(t){e.set(t.id,t)},get(t){return e.get(t)},async hydrate(t){let n=e.get(t);if(!n||n.hydrated)return;if(n.hydrated=!0,typeof window<"u"&&typeof window.dispatchEvent==="function")window.dispatchEvent(new CustomEvent("stx:hydrate",{detail:{id:t,component:n.component}}))},async hydrateAll(){let t=Array.from(e.values()).filter((n)=>!n.hydrated).map((n)=>this.hydrate(n.id));await Promise.all(t)}}}function I(e){return`
163
163
  <script data-hydrate="${e}">
164
164
  (function() {
165
165
  const island = document.querySelector('[data-island="${e}"]');
@@ -311,7 +311,7 @@ else {
311
311
  });
312
312
  })();
313
313
  </script>
314
- `}function tu(e,t={},n){let r=e,i=!1,d=/@client:(load|idle|visible|media|only|hover|event)/i.test(e);if(r=u(r,"load",t),r=u(r,"idle",t),r=u(r,"visible",t),r=u(r,"media",t),r=M(r),r=u(r,"hover",t),r=u(r,"event",t),i=d&&r!==e,i)r+=`
314
+ `}function ru(e,t={},n){let r=e,i=!1,d=/@client:(load|idle|visible|media|only|hover|event)/i.test(e);if(r=u(r,"load",t),r=u(r,"idle",t),r=u(r,"visible",t),r=u(r,"media",t),r=M(r),r=u(r,"hover",t),r=u(r,"event",t),i=d&&r!==e,i)r+=`
315
315
  `+v();return r}function u(e,t,n){let r=new RegExp(`@client:${t}(?:\\s*\\(([^)]*)\\))?\\s*([\\s\\S]*?)@endclient`,"gi");return e.replace(r,(i,d,o)=>{let a={strategy:t};if(d)try{let E=d.split(",").map((h)=>h.trim());for(let h of E){let[m,g]=h.split(":").map((p)=>p.trim());if(m&&g){let p=g.replace(/^['"]|['"]$/g,"");a[m]=p}}}catch{}let s=`island-${Math.random().toString(36).substring(2,9)}`,y=b(o.trim()),f=w(o.trim(),n),c=[];if(a.rootMargin)c.push(`data-root-margin="${a.rootMargin}"`);if(a.threshold!==void 0)c.push(`data-threshold="${a.threshold}"`);if(a.media)c.push(`data-media="${a.media}"`);if(a.event)c.push(`data-event="${a.event}"`);if(y)c.push(`data-component="${y}"`);let x=Object.keys(f).length>0?`
316
316
  <script type="application/json" data-island-props="${s}">${JSON.stringify(f)}</script>`:"",l="";switch(t){case"load":l=I(s);break;case"idle":l=L(s,a);break;case"visible":l=C(s,a);break;case"media":l=S(s,a);break;case"hover":l=k(s);break;case"event":l=H(s,a);break}return`
317
317
  <div data-island="${s}"
@@ -342,7 +342,7 @@ else {
342
342
  }
343
343
  })();
344
344
  </script>
345
- `})}function nu(){return`
345
+ `})}function su(){return`
346
346
  /* Island base styles */
347
347
  .stx-island {
348
348
  display: contents;
@@ -383,9 +383,9 @@ else {
383
383
  .stx-island.hydrated {
384
384
  opacity: 1;
385
385
  }
386
- `}function ru(e){if(typeof window>"u")return;let t=document.querySelector(`[data-island="${e}"]`);if(!t||t.classList.contains("hydrated"))return;t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))}function su(e){if(typeof window>"u")return;document.querySelectorAll(`[data-strategy="${e}"]:not(.hydrated)`).forEach((n)=>{n.classList.add("hydrated"),n.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function ou(){if(typeof window>"u")return;document.querySelectorAll(".stx-island:not(.hydrated)").forEach((t)=>{t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function iu(e){if(typeof window>"u")return!1;return document.querySelector(`[data-island="${e}"]`)?.classList.contains("hydrated")??!1}function au(e){return new Promise((t)=>{if(typeof window>"u"){t();return}let n=document.querySelector(`[data-island="${e}"]`);if(!n){t();return}if(n.classList.contains("hydrated")){t();return}n.addEventListener("stx:hydrated",()=>t(),{once:!0})})}function cu(e){return e.replace(/@static\s*([\s\S]*?)@endstatic/gi,(t,n)=>`<div class="stx-static">${n.trim()}</div>`)}function lu(e){let t=e.map((n)=>({id:n.id,component:n.component,strategy:n.options.strategy,props:n.props}));return`
386
+ `}function ou(e){if(typeof window>"u")return;let t=document.querySelector(`[data-island="${e}"]`);if(!t||t.classList.contains("hydrated"))return;t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))}function iu(e){if(typeof window>"u")return;document.querySelectorAll(`[data-strategy="${e}"]:not(.hydrated)`).forEach((n)=>{n.classList.add("hydrated"),n.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function au(){if(typeof window>"u")return;document.querySelectorAll(".stx-island:not(.hydrated)").forEach((t)=>{t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function cu(e){if(typeof window>"u")return!1;return document.querySelector(`[data-island="${e}"]`)?.classList.contains("hydrated")??!1}function lu(e){return new Promise((t)=>{if(typeof window>"u"){t();return}let n=document.querySelector(`[data-island="${e}"]`);if(!n){t();return}if(n.classList.contains("hydrated")){t();return}n.addEventListener("stx:hydrated",()=>t(),{once:!0})})}function uu(e){return e.replace(/@static\s*([\s\S]*?)@endstatic/gi,(t,n)=>`<div class="stx-static">${n.trim()}</div>`)}function du(e){let t=e.map((n)=>({id:n.id,component:n.component,strategy:n.options.strategy,props:n.props}));return`
387
387
  <script type="application/json" id="stx-island-manifest">
388
388
  ${JSON.stringify(t)}
389
389
  </script>
390
- `}var Mm={processPartialHydrationDirectives:tu,processStaticDirectives:cu,generatePartialHydrationCSS:nu,generateIslandManifest:lu,createIslandRegistry:eu,hydrateIsland:ru,hydrateByStrategy:su,hydrateAll:ou,isHydrated:iu,onHydrated:au};
391
- export{eu,tu,nu,ru,su,ou,iu,au,cu,lu,Mm};
390
+ `}var jm={processPartialHydrationDirectives:ru,processStaticDirectives:uu,generatePartialHydrationCSS:su,generateIslandManifest:du,createIslandRegistry:nu,hydrateIsland:ou,hydrateByStrategy:iu,hydrateAll:au,isHydrated:cu,onHydrated:lu};
391
+ export{nu,ru,su,ou,iu,au,cu,lu,uu,du,jm};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{AsyncLocalStorage as R}from"async_hooks";var b=Symbol.for("stx.runtime-config.scope"),y=globalThis,m=y[b]??=new R;function He(n,f){return m.run(n,f)}function _n(){return m.getStore()}function Ks(){let n=m.getStore();if(!n)throw Error("useServerRuntimeConfig requires a server request or template render");return Object.freeze(Object.defineProperty({public:n.public},"private",{value:n.private}))}function Ci(){return Ks().public}function D(n={},f=process.env){let s=new Set;function o(e,i){if(i===null)return e===null;if(Array.isArray(i))return Array.isArray(e)&&(!i.length||e.every((r)=>i.some((u)=>o(r,u))));if(typeof i==="object")return e!==null&&typeof e==="object"&&!Array.isArray(e)&&Object.entries(i).every(([r,u])=>Object.hasOwn(e,r)&&o(e[r],u));return typeof e===typeof i}function g(e,i){if(e&&typeof e==="object"&&!Array.isArray(e)){if(Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw TypeError(`Runtime config ${i.join(".")} must contain JSON values`);let t=Object.create(null);for(let[c,l]of Object.entries(e)){if(!/^[a-zA-Z][a-zA-Z0-9_]*$/.test(c)||["constructor","prototype","__proto__"].includes(c))throw TypeError(`Invalid runtime config key: ${c}`);t[c]=g(l,[...i,c])}return Object.freeze(t)}let r=`STX_RUNTIME_${i.map((t)=>t.replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase()).join("__")}`;if(s.has(r))throw TypeError(`Ambiguous runtime config environment key: ${r}`);s.add(r);let u=f[r],a=e;if(u!==void 0){try{a=typeof e==="string"?u:JSON.parse(u)}catch{throw TypeError(`Invalid runtime config override: ${r}`)}if(!o(a,e))throw TypeError(`Wrong runtime config override type: ${r}`)}function p(t){if(t===null||typeof t==="string"||typeof t==="boolean")return t;if(typeof t==="number"&&Number.isFinite(t))return t;if(Array.isArray(t))return Object.freeze(t.map(p));if(t&&typeof t==="object"&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null))return Object.freeze(Object.fromEntries(Object.entries(t).map(([c,l])=>[c,p(l)])));throw TypeError(`Runtime config ${i.join(".")} must contain JSON values`)}return p(a)}return Object.freeze({public:g(n.public??{},["public"]),private:g(n.private??{},["private"])})}function C(n){return`<script data-stx-scoped data-stx-runtime-config type="application/json">${JSON.stringify(n.public).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}</script>`}function Lt(n,f){let s=n.replace(/<script\b[^>]*\bdata-stx-runtime-config\b[^>]*>[\s\S]*?<\/script>/gi,""),o=/<head\b[^>]*>/i.exec(s),g=o?o.index+o[0].length:0;return s.slice(0,g)+C(f)+s.slice(g)}
3
- export{He,_n,Ks,Ci,D,Lt};
2
+ import{AsyncLocalStorage as R}from"async_hooks";var b=Symbol.for("stx.runtime-config.scope"),y=globalThis,m=y[b]??=new R;function He(n,f){return m.run(n,f)}function Cn(){return m.getStore()}function Gs(){let n=m.getStore();if(!n)throw Error("useServerRuntimeConfig requires a server request or template render");return Object.freeze(Object.defineProperty({public:n.public},"private",{value:n.private}))}function Ti(){return Gs().public}function D(n={},f=process.env){let s=new Set;function o(e,i){if(i===null)return e===null;if(Array.isArray(i))return Array.isArray(e)&&(!i.length||e.every((r)=>i.some((u)=>o(r,u))));if(typeof i==="object")return e!==null&&typeof e==="object"&&!Array.isArray(e)&&Object.entries(i).every(([r,u])=>Object.hasOwn(e,r)&&o(e[r],u));return typeof e===typeof i}function g(e,i){if(e&&typeof e==="object"&&!Array.isArray(e)){if(Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw TypeError(`Runtime config ${i.join(".")} must contain JSON values`);let t=Object.create(null);for(let[c,l]of Object.entries(e)){if(!/^[a-zA-Z][a-zA-Z0-9_]*$/.test(c)||["constructor","prototype","__proto__"].includes(c))throw TypeError(`Invalid runtime config key: ${c}`);t[c]=g(l,[...i,c])}return Object.freeze(t)}let r=`STX_RUNTIME_${i.map((t)=>t.replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase()).join("__")}`;if(s.has(r))throw TypeError(`Ambiguous runtime config environment key: ${r}`);s.add(r);let u=f[r],a=e;if(u!==void 0){try{a=typeof e==="string"?u:JSON.parse(u)}catch{throw TypeError(`Invalid runtime config override: ${r}`)}if(!o(a,e))throw TypeError(`Wrong runtime config override type: ${r}`)}function p(t){if(t===null||typeof t==="string"||typeof t==="boolean")return t;if(typeof t==="number"&&Number.isFinite(t))return t;if(Array.isArray(t))return Object.freeze(t.map(p));if(t&&typeof t==="object"&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null))return Object.freeze(Object.fromEntries(Object.entries(t).map(([c,l])=>[c,p(l)])));throw TypeError(`Runtime config ${i.join(".")} must contain JSON values`)}return p(a)}return Object.freeze({public:g(n.public??{},["public"]),private:g(n.private??{},["private"])})}function C(n){return`<script data-stx-scoped data-stx-runtime-config type="application/json">${JSON.stringify(n.public).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}</script>`}function Lt(n,f){let s=n.replace(/<script\b[^>]*\bdata-stx-runtime-config\b[^>]*>[\s\S]*?<\/script>/gi,""),o=/<head\b[^>]*>/i.exec(s),g=o?o.index+o[0].length:0;return s.slice(0,g)+C(f)+s.slice(g)}
3
+ export{He,Cn,Gs,Ti,D,Lt};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var d=0;function l(){return`keep-alive-${++d}-${Date.now().toString(36)}`}function $m(e,t={},n){let i=/@keepAlive(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@endkeepAlive/gi;return e.replace(i,(a,c,o)=>{let s=l(),r=u(c||"");return p(s,o.trim(),r)})}function u(e){let t={max:10},n=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\d+)|(\w+))/g,i;while((i=n.exec(e))!==null){let a=i[1],c=i[2]||i[3],o=i[4];switch(a){case"max":t.max=o?parseInt(o,10):10;break;case"include":t.include=c;break;case"exclude":t.exclude=c;break;case"id":t.id=c;break}}return t}function p(e,t,n){let{max:i,include:a,exclude:c}=n,o=n.id||e;return`
2
+ var d=0;function l(){return`keep-alive-${++d}-${Date.now().toString(36)}`}function Am(e,t={},n){let i=/@keepAlive(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@endkeepAlive/gi;return e.replace(i,(a,c,o)=>{let s=l(),r=u(c||"");return p(s,o.trim(),r)})}function u(e){let t={max:10},n=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\d+)|(\w+))/g,i;while((i=n.exec(e))!==null){let a=i[1],c=i[2]||i[3],o=i[4];switch(a){case"max":t.max=o?parseInt(o,10):10;break;case"include":t.include=c;break;case"exclude":t.exclude=c;break;case"id":t.id=c;break}}return t}function p(e,t,n){let{max:i,include:a,exclude:c}=n,o=n.id||e;return`
3
3
  <div class="stx-keep-alive" data-keep-alive-id="${e}" data-custom-id="${o}">
4
4
  <div class="stx-keep-alive-content" data-keep-alive-content="${e}">
5
5
  ${t}
@@ -286,7 +286,7 @@ else {
286
286
  });
287
287
  })();
288
288
  </script>
289
- `}function Rm(e={}){return{id:e.id||l(),cache:new Map,max:e.max||10,include:e.include?e.include.split(",").map((n)=>n.trim()):null,exclude:e.exclude?e.exclude.split(",").map((n)=>n.trim()):null}}function Am(e,t){if(t.exclude&&t.exclude.includes(e))return!1;if(t.include&&!t.include.includes(e))return!1;return!0}function Pm(){return`
289
+ `}function Pm(e={}){return{id:e.id||l(),cache:new Map,max:e.max||10,include:e.include?e.include.split(",").map((n)=>n.trim()):null,exclude:e.exclude?e.exclude.split(",").map((n)=>n.trim()):null}}function Im(e,t){if(t.exclude&&t.exclude.includes(e))return!1;if(t.include&&!t.include.includes(e))return!1;return!0}function Om(){return`
290
290
  /* STX Keep-Alive Styles */
291
291
  .stx-keep-alive {
292
292
  position: relative;
@@ -311,7 +311,7 @@ else {
311
311
  .stx-keep-alive-content > [data-activated] {
312
312
  opacity: 1;
313
313
  }
314
- `}function Im(){return`
314
+ `}function Nm(){return`
315
315
  // STX Keep-Alive Runtime
316
316
  (function() {
317
317
  if (typeof window === 'undefined') return;
@@ -347,5 +347,5 @@ else {
347
347
 
348
348
  console.log('[stx] Keep-alive runtime initialized');
349
349
  })();
350
- `}function Om(e){if(typeof document<"u")document.addEventListener("stx:activated",(t)=>{e(t.detail)})}function Nm(e){if(typeof document<"u")document.addEventListener("stx:deactivated",(t)=>{e(t.detail)})}
351
- export{$m,Rm,Am,Pm,Im,Om,Nm};
350
+ `}function Dm(e){if(typeof document<"u")document.addEventListener("stx:activated",(t)=>{e(t.detail)})}function Mm(e){if(typeof document<"u")document.addEventListener("stx:deactivated",(t)=>{e(t.detail)})}
351
+ export{Am,Pm,Im,Om,Nm,Dm,Mm};