@stacksjs/stx 0.2.417 → 0.2.419

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 (208) hide show
  1. package/dist/{chunk-wweasgq9.js → chunk-09hhrjk9.js} +6 -6
  2. package/dist/chunk-0bsjrj8s.js +2 -0
  3. package/dist/chunk-0n76c3g8.js +2 -0
  4. package/dist/{chunk-w5zmvn7b.js → chunk-0varh725.js} +3 -3
  5. package/dist/chunk-0xpgfvrn.js +4 -0
  6. package/dist/{chunk-9r5ycpdg.js → chunk-10967rws.js} +3 -3
  7. package/dist/chunk-10fh9qhe.js +2 -0
  8. package/dist/{chunk-xvn3sv3v.js → chunk-11ra3sbc.js} +3 -3
  9. package/dist/{chunk-e83j8xe9.js → chunk-12b8akfg.js} +4 -4
  10. package/dist/chunk-18awnp9d.js +2 -0
  11. package/dist/{chunk-hm2k9a04.js → chunk-20tdz0zs.js} +7 -7
  12. package/dist/{chunk-mj9yv1vb.js → chunk-21a7p956.js} +1 -1
  13. package/dist/{chunk-5fwy3xap.js → chunk-2ewa2sg5.js} +3 -3
  14. package/dist/chunk-2hswgxpb.js +2 -0
  15. package/dist/{chunk-g947brd0.js → chunk-2tfe2g58.js} +6 -6
  16. package/dist/{chunk-0xgf3xgy.js → chunk-32y3767j.js} +7 -7
  17. package/dist/{chunk-3wmxb126.js → chunk-34gy5zjm.js} +2 -2
  18. package/dist/chunk-37eyawdr.js +2 -0
  19. package/dist/chunk-3cp46g4f.js +2 -0
  20. package/dist/{chunk-kds79hq3.js → chunk-3xdqvrxa.js} +10 -10
  21. package/dist/chunk-4amznxaq.js +2 -0
  22. package/dist/{chunk-865xvpp2.js → chunk-4n6c5rp5.js} +2 -2
  23. package/dist/chunk-55yja0xs.js +2 -0
  24. package/dist/{chunk-dw961rvn.js → chunk-5vfyxxrp.js} +2 -2
  25. package/dist/{chunk-ka8x4sw6.js → chunk-60bes9yt.js} +5 -5
  26. package/dist/chunk-61kz487h.js +2 -0
  27. package/dist/{chunk-7q1yy18q.js → chunk-62r4fa4q.js} +2 -2
  28. package/dist/{chunk-76japd6k.js → chunk-66k7yxnr.js} +4 -4
  29. package/dist/{chunk-68rq2fqt.js → chunk-68dkgdhq.js} +1 -1
  30. package/dist/{chunk-bk5ndwv3.js → chunk-757ec865.js} +2 -2
  31. package/dist/{chunk-d6h9rpm4.js → chunk-7n8ns8sr.js} +5 -5
  32. package/dist/{chunk-xwkdv585.js → chunk-802pr252.js} +2 -2
  33. package/dist/{chunk-ev8bhsc0.js → chunk-8drvzsk1.js} +2 -2
  34. package/dist/chunk-8j3f789a.js +2 -0
  35. package/dist/{chunk-y9t55tv7.js → chunk-8j8k27xb.js} +6 -6
  36. package/dist/{chunk-q8swb7na.js → chunk-8jqy69td.js} +3 -3
  37. package/dist/chunk-8nsqac4z.js +2 -0
  38. package/dist/chunk-8ttvazck.js +2 -0
  39. package/dist/{chunk-sjjc670z.js → chunk-8vq0qjq9.js} +9 -9
  40. package/dist/chunk-8y4bqsxz.js +2 -0
  41. package/dist/{chunk-072mzamc.js → chunk-963skd21.js} +5 -5
  42. package/dist/{chunk-3senpdjt.js → chunk-9d5eab03.js} +2 -2
  43. package/dist/chunk-9qx66tpp.js +2 -0
  44. package/dist/chunk-ac033b93.js +2 -0
  45. package/dist/chunk-aj43359g.js +2 -0
  46. package/dist/chunk-aj8yq228.js +2 -0
  47. package/dist/{chunk-vyfg2qd2.js → chunk-ap6fehea.js} +5 -5
  48. package/dist/chunk-as72dvvm.js +2 -0
  49. package/dist/chunk-ax58cds3.js +5 -0
  50. package/dist/{chunk-qmzwhtr2.js → chunk-aync8qmk.js} +2 -2
  51. package/dist/chunk-b01jqb5f.js +2 -0
  52. package/dist/{chunk-3aqe7wy7.js → chunk-b1fg9vg7.js} +2 -2
  53. package/dist/chunk-bfvaxrq0.js +2 -0
  54. package/dist/chunk-bkaw7sgz.js +2 -0
  55. package/dist/chunk-bvae0b17.js +2 -0
  56. package/dist/chunk-byvbdmb2.js +2 -0
  57. package/dist/chunk-c4s2pe49.js +2 -0
  58. package/dist/{chunk-bt11a8z4.js → chunk-csjw5esc.js} +3 -3
  59. package/dist/chunk-d2c5727w.js +2 -0
  60. package/dist/chunk-d5amzers.js +2 -0
  61. package/dist/chunk-d9yq3tyx.js +2 -0
  62. package/dist/chunk-dfchrqw5.js +2 -0
  63. package/dist/{chunk-94ky725r.js → chunk-dg4q9qw2.js} +2 -2
  64. package/dist/{chunk-47h689h6.js → chunk-dhxbjw6k.js} +2 -2
  65. package/dist/{chunk-1680nbq4.js → chunk-dxb1bbtr.js} +301 -301
  66. package/dist/{chunk-9yt899e7.js → chunk-ep5jnqdb.js} +6 -6
  67. package/dist/{chunk-yrbzsrde.js → chunk-f6z33aa6.js} +2 -2
  68. package/dist/{chunk-e2m674vf.js → chunk-g1fxmp9z.js} +4 -4
  69. package/dist/chunk-g43wvf4g.js +2 -0
  70. package/dist/chunk-ga83rmz6.js +2 -0
  71. package/dist/chunk-gk56fgfz.js +2 -0
  72. package/dist/{chunk-h8f18cc5.js → chunk-h1h6xe1k.js} +5 -5
  73. package/dist/chunk-hahzjyxc.js +2 -0
  74. package/dist/{chunk-5vzamjf6.js → chunk-hdx8x2z1.js} +3 -3
  75. package/dist/chunk-hgqcqg1h.js +2 -0
  76. package/dist/chunk-hjdwf9gp.js +2 -0
  77. package/dist/chunk-hr7rmyv7.js +2 -0
  78. package/dist/{chunk-d0ynfema.js → chunk-hy9e3ny6.js} +1 -1
  79. package/dist/{chunk-9bq4w4d6.js → chunk-hyak4dzg.js} +3 -3
  80. package/dist/chunk-j0twxvjf.js +2 -0
  81. package/dist/chunk-j9aberz0.js +2 -0
  82. package/dist/chunk-jjm0ekw8.js +2 -0
  83. package/dist/chunk-jjnfj9nf.js +3 -0
  84. package/dist/chunk-jjtzm6dn.js +3 -0
  85. package/dist/{chunk-c8p4v1rd.js → chunk-k31fwm2w.js} +5 -5
  86. package/dist/{chunk-pb0fgdvn.js → chunk-kjkwycce.js} +4 -4
  87. package/dist/{chunk-85bm5xrm.js → chunk-krr2vb0s.js} +3 -3
  88. package/dist/{chunk-3f5td68v.js → chunk-m16h8ea0.js} +2 -2
  89. package/dist/chunk-m2jphkdv.js +2 -0
  90. package/dist/{chunk-vepc9rbt.js → chunk-mbbx3w32.js} +2 -2
  91. package/dist/{chunk-25n4gmek.js → chunk-mg13q1kd.js} +2 -2
  92. package/dist/chunk-p083sckk.js +2 -0
  93. package/dist/{chunk-hg3tyzn5.js → chunk-p828w2b8.js} +11 -11
  94. package/dist/chunk-pc178389.js +2 -0
  95. package/dist/chunk-q0mbgq3n.js +2 -0
  96. package/dist/chunk-q1v0jwr4.js +2 -0
  97. package/dist/{chunk-v15g9jjh.js → chunk-qbq6652q.js} +6 -6
  98. package/dist/{chunk-fr8jq2ys.js → chunk-qby6wxat.js} +2 -2
  99. package/dist/chunk-qtz161z6.js +2 -0
  100. package/dist/{chunk-dym1eteb.js → chunk-qx3js9tk.js} +1 -1
  101. package/dist/{chunk-ayd5r3se.js → chunk-qxre7vw6.js} +2 -2
  102. package/dist/chunk-r5gjb55x.js +2 -0
  103. package/dist/{chunk-vfdwvt23.js → chunk-r8wze9ym.js} +2 -2
  104. package/dist/chunk-ra1rcn3g.js +2 -0
  105. package/dist/chunk-rjd08g2t.js +2 -0
  106. package/dist/{chunk-wgzxmh7w.js → chunk-rsxvbnp4.js} +3 -3
  107. package/dist/chunk-s3ktxdbd.js +2 -0
  108. package/dist/chunk-se1b9b6m.js +2 -0
  109. package/dist/{chunk-vdqa5gt7.js → chunk-tafebmtg.js} +2 -2
  110. package/dist/chunk-tf44jyrh.js +2 -0
  111. package/dist/chunk-tfypkw4y.js +3 -0
  112. package/dist/{chunk-hkxxfzfd.js → chunk-th9s15es.js} +2 -2
  113. package/dist/{chunk-xt6d3zws.js → chunk-tqnysw0k.js} +4 -4
  114. package/dist/{chunk-5f3k2mke.js → chunk-tspmynvh.js} +1 -1
  115. package/dist/chunk-vcx4bxj3.js +2 -0
  116. package/dist/{chunk-jfjym18d.js → chunk-w7a4mjsm.js} +3 -3
  117. package/dist/{chunk-psmdbcbc.js → chunk-wbm2yq5d.js} +3 -3
  118. package/dist/{chunk-08p07eq7.js → chunk-wg1ttvs5.js} +2 -2
  119. package/dist/chunk-wgqjjhx5.js +2 -0
  120. package/dist/{chunk-fxhvkenf.js → chunk-x5ks23vx.js} +2 -2
  121. package/dist/chunk-x8rckpyz.js +2 -0
  122. package/dist/{chunk-mj6fme15.js → chunk-xbragnsq.js} +5 -5
  123. package/dist/{chunk-9af8qbwb.js → chunk-xvzxrt9a.js} +5 -5
  124. package/dist/{chunk-wpkxbggq.js → chunk-xwfjhz0h.js} +1 -1
  125. package/dist/chunk-ya9c8nec.js +2 -0
  126. package/dist/chunk-ycp9r4qn.js +2 -0
  127. package/dist/{chunk-jgsgd6rt.js → chunk-ynkc9t68.js} +5 -5
  128. package/dist/chunk-yqm74xyg.js +2 -0
  129. package/dist/chunk-zpcz2kh6.js +2 -0
  130. package/dist/{chunk-kkj5x9rp.js → chunk-zvh2nnzr.js} +1 -1
  131. package/dist/chunk-zynzw92k.js +2 -0
  132. package/dist/{chunk-gfm7g98y.js → chunk-zz6ad4p5.js} +39 -39
  133. package/dist/cli.js +21 -21
  134. package/dist/craft-entry.js +2 -2
  135. package/dist/craft.js +2 -2
  136. package/dist/head-keys.d.ts +41 -0
  137. package/dist/head-keys.js +78 -0
  138. package/dist/head.js +2 -1
  139. package/dist/process.js +2 -1
  140. package/dist/production-builder.js +2 -1
  141. package/dist/pwa.js +3 -3
  142. package/dist/ssg.js +15 -15
  143. package/dist/variable-extractor.js +2 -1
  144. package/package.json +5 -5
  145. package/dist/chunk-072f6hnz.js +0 -2
  146. package/dist/chunk-0x076wz1.js +0 -2
  147. package/dist/chunk-2gfj59pt.js +0 -2
  148. package/dist/chunk-2gntnw7e.js +0 -2
  149. package/dist/chunk-2hvvwhmv.js +0 -2
  150. package/dist/chunk-31a8eh0j.js +0 -5
  151. package/dist/chunk-4bhertga.js +0 -2
  152. package/dist/chunk-4s9dypby.js +0 -2
  153. package/dist/chunk-5z56g0n4.js +0 -2
  154. package/dist/chunk-6ad0nseq.js +0 -2
  155. package/dist/chunk-7eazcxzf.js +0 -2
  156. package/dist/chunk-7hy29tcy.js +0 -2
  157. package/dist/chunk-8fyqbq14.js +0 -2
  158. package/dist/chunk-92xzpt6p.js +0 -2
  159. package/dist/chunk-9kmmafp4.js +0 -2
  160. package/dist/chunk-atgwc7r7.js +0 -2
  161. package/dist/chunk-bs6y5wy2.js +0 -2
  162. package/dist/chunk-ccg6xjr1.js +0 -2
  163. package/dist/chunk-ckv4aty5.js +0 -2
  164. package/dist/chunk-dbh7h0kt.js +0 -2
  165. package/dist/chunk-dhqkg0ph.js +0 -2
  166. package/dist/chunk-ettat5ah.js +0 -2
  167. package/dist/chunk-f4ws0qcd.js +0 -2
  168. package/dist/chunk-f97v10zr.js +0 -2
  169. package/dist/chunk-fe5st320.js +0 -2
  170. package/dist/chunk-fet3hce8.js +0 -2
  171. package/dist/chunk-fq7128p1.js +0 -2
  172. package/dist/chunk-fwy2h1ms.js +0 -2
  173. package/dist/chunk-gtkhykc4.js +0 -2
  174. package/dist/chunk-h8pkm7c5.js +0 -2
  175. package/dist/chunk-hneg0155.js +0 -2
  176. package/dist/chunk-hs90en70.js +0 -2
  177. package/dist/chunk-jn3njpxs.js +0 -2
  178. package/dist/chunk-mcqn70v8.js +0 -3
  179. package/dist/chunk-mcs7p3fy.js +0 -2
  180. package/dist/chunk-mmtg0jxd.js +0 -2
  181. package/dist/chunk-mrsxwd0h.js +0 -2
  182. package/dist/chunk-mscky0ww.js +0 -2
  183. package/dist/chunk-mtphm33a.js +0 -2
  184. package/dist/chunk-p2jbc71s.js +0 -2
  185. package/dist/chunk-pvd9k3kx.js +0 -2
  186. package/dist/chunk-pz1jc3db.js +0 -2
  187. package/dist/chunk-qvr6e2ve.js +0 -3
  188. package/dist/chunk-ra0pkkvd.js +0 -2
  189. package/dist/chunk-rcbtd4w3.js +0 -2
  190. package/dist/chunk-rd2r9jvn.js +0 -2
  191. package/dist/chunk-s8srb8bg.js +0 -2
  192. package/dist/chunk-snf2b68p.js +0 -2
  193. package/dist/chunk-t2bfwr9v.js +0 -2
  194. package/dist/chunk-tbmwdahm.js +0 -2
  195. package/dist/chunk-vpv896zx.js +0 -2
  196. package/dist/chunk-w6h63b48.js +0 -2
  197. package/dist/chunk-wrk3gkgg.js +0 -2
  198. package/dist/chunk-wtd71jsa.js +0 -2
  199. package/dist/chunk-wymf1ek6.js +0 -2
  200. package/dist/chunk-wz8hyh8h.js +0 -4
  201. package/dist/chunk-x32wpjs0.js +0 -2
  202. package/dist/chunk-x4q2eyt0.js +0 -2
  203. package/dist/chunk-x95ejws0.js +0 -2
  204. package/dist/chunk-xket8ejt.js +0 -2
  205. package/dist/chunk-ypfzy1mq.js +0 -2
  206. package/dist/chunk-zg68pwy8.js +0 -2
  207. package/dist/chunk-zs58fnme.js +0 -2
  208. package/dist/chunk-zy3p0vmx.js +0 -3
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import s from"path";var h=new Set([".jpg",".jpeg",".png",".gif"]),d=[{ext:".avif",mime:"image/avif"},{ext:".webp",mime:"image/webp"}];async function ya(e,r){let a=r.formats??d;if(!r.publicDir)return e;let i=y(e),o=[],m=/<img\b[^>]*?>/gi,c=[],u;while((u=m.exec(e))!==null){let t=u[0],n=t.match(/\bsrc=["']([^"']+)["']/i);if(!n)continue;if(A(u.index,i))continue;c.push({idx:u.index,length:t.length,src:n[1],raw:t})}if(c.length===0)return e;let f=await Promise.all(c.map(async(t)=>{let n=await S(t.src,r.publicDir,a);return{match:t,sources:n}}));for(let{match:t,sources:n}of f){if(n.length===0)continue;let x=`<picture>${n.map((p)=>`<source type="${p.mime}" srcset="${P(p.url)}">`).join("")}${t.raw}</picture>`;o.push({start:t.idx,end:t.idx+t.length,replacement:x})}if(o.length===0)return e;let l="",g=0;for(let t of o)l+=e.slice(g,t.start),l+=t.replacement,g=t.end;return l+=e.slice(g),l}async function S(e,r,a){if(!w(e))return[];let i=s.extname(e).toLowerCase();if(!h.has(i))return[];if(!e.startsWith("/"))return[];let o=s.join(r,e.slice(1)),m=s.dirname(o),c=s.basename(o,i),u=s.resolve(m),f=s.resolve(r);if(!u.startsWith(f))return[];let l=s.posix.dirname(e),g=a.map(async(n)=>{let b=s.join(m,`${c}${n.ext}`);if(!await Bun.file(b).exists())return null;return{url:s.posix.join(l,`${c}${n.ext}`),mime:n.mime}});return(await Promise.all(g)).filter((n)=>n!==null)}function w(e){if(!e)return!1;if(e.startsWith("http://")||e.startsWith("https://"))return!1;if(e.startsWith("//"))return!1;if(e.startsWith("data:"))return!1;return!0}function y(e){let r=[],a=/<picture\b[^>]*>[\s\S]*?<\/picture>/gi,i;while((i=a.exec(e))!==null)r.push([i.index,i.index+i[0].length]);return r}function A(e,r){for(let[a,i]of r)if(e>=a&&e<i)return!0;return!1}function P(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}
3
- export{ya};
2
+ import s from"path";var h=new Set([".jpg",".jpeg",".png",".gif"]),d=[{ext:".avif",mime:"image/avif"},{ext:".webp",mime:"image/webp"}];async function va(e,r){let a=r.formats??d;if(!r.publicDir)return e;let i=y(e),o=[],m=/<img\b[^>]*?>/gi,c=[],u;while((u=m.exec(e))!==null){let t=u[0],n=t.match(/\bsrc=["']([^"']+)["']/i);if(!n)continue;if(A(u.index,i))continue;c.push({idx:u.index,length:t.length,src:n[1],raw:t})}if(c.length===0)return e;let f=await Promise.all(c.map(async(t)=>{let n=await S(t.src,r.publicDir,a);return{match:t,sources:n}}));for(let{match:t,sources:n}of f){if(n.length===0)continue;let x=`<picture>${n.map((p)=>`<source type="${p.mime}" srcset="${P(p.url)}">`).join("")}${t.raw}</picture>`;o.push({start:t.idx,end:t.idx+t.length,replacement:x})}if(o.length===0)return e;let l="",g=0;for(let t of o)l+=e.slice(g,t.start),l+=t.replacement,g=t.end;return l+=e.slice(g),l}async function S(e,r,a){if(!w(e))return[];let i=s.extname(e).toLowerCase();if(!h.has(i))return[];if(!e.startsWith("/"))return[];let o=s.join(r,e.slice(1)),m=s.dirname(o),c=s.basename(o,i),u=s.resolve(m),f=s.resolve(r);if(!u.startsWith(f))return[];let l=s.posix.dirname(e),g=a.map(async(n)=>{let b=s.join(m,`${c}${n.ext}`);if(!await Bun.file(b).exists())return null;return{url:s.posix.join(l,`${c}${n.ext}`),mime:n.mime}});return(await Promise.all(g)).filter((n)=>n!==null)}function w(e){if(!e)return!1;if(e.startsWith("http://")||e.startsWith("https://"))return!1;if(e.startsWith("//"))return!1;if(e.startsWith("data:"))return!1;return!0}function y(e){let r=[],a=/<picture\b[^>]*>[\s\S]*?<\/picture>/gi,i;while((i=a.exec(e))!==null)r.push([i.index,i.index+i[0].length]);return r}function A(e,r){for(let[a,i]of r)if(e>=a&&e<i)return!0;return!1}function P(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}
3
+ export{va};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ml,hl}from"./chunk-0varh725.js";export{hl as ensureTeleportTargets,ml as processTeleportDirectives};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{kl,Cl,$l,El,Tl}from"./chunk-xvzxrt9a.js";export{Cl as createSSRSuspense,El as generateSuspenseCSS,Tl as generateSuspenseRuntime,kl as processSuspenseDirectives,$l as renderSSRSuspense};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Eu,Li,Tu,ji,qa,Ka,wt,Qt,_u,Xa,Ga,Ja,f}from"./chunk-dxb1bbtr.js";import"./chunk-11ra3sbc.js";import"./chunk-x5ks23vx.js";import"./chunk-g1fxmp9z.js";import"./chunk-mbbx3w32.js";import"./chunk-62r4fa4q.js";import"./chunk-32y3767j.js";import"./chunk-ax58cds3.js";import"./chunk-09hhrjk9.js";import"./chunk-tafebmtg.js";import"./chunk-757ec865.js";import"./chunk-66k7yxnr.js";import"./chunk-4n6c5rp5.js";export{wt as buildCss,Xa as extractClassNames,Ka as fingerprintConfig,Ga as generateCss,_u as getCachedCSS,Eu as getCssServeAsset,f as injectCss,Li as loadCssEngine,ji as loadCssEngineConfig,Qt as rebuildCss,Tu as resetCssCache,qa as resolveUserCssConfig,Ja as withLinkedModuleBundles};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{rl}from"./chunk-9d5eab03.js";import"./chunk-7n8ns8sr.js";import"./chunk-xbragnsq.js";import"./chunk-dxb1bbtr.js";import"./chunk-11ra3sbc.js";import"./chunk-x5ks23vx.js";import"./chunk-g1fxmp9z.js";import"./chunk-mbbx3w32.js";import"./chunk-62r4fa4q.js";import"./chunk-32y3767j.js";import"./chunk-ax58cds3.js";import"./chunk-09hhrjk9.js";import"./chunk-tafebmtg.js";import"./chunk-757ec865.js";import"./chunk-66k7yxnr.js";import"./chunk-4n6c5rp5.js";export{rl as startProductionServer};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Uc}from"./chunk-w7a4mjsm.js";import"./chunk-dxb1bbtr.js";import"./chunk-11ra3sbc.js";import"./chunk-x5ks23vx.js";import"./chunk-g1fxmp9z.js";import"./chunk-mbbx3w32.js";import"./chunk-62r4fa4q.js";import"./chunk-32y3767j.js";import"./chunk-ax58cds3.js";import"./chunk-09hhrjk9.js";import"./chunk-tafebmtg.js";import"./chunk-757ec865.js";import"./chunk-66k7yxnr.js";import"./chunk-4n6c5rp5.js";export{Uc as startInteractive};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ie,ut}from"./chunk-85bm5xrm.js";import{pe}from"./chunk-qvr6e2ve.js";function m(e){let t={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return t[e]||t["network-first"]}function g(e){return m(e).className}function d(e){let t=e.pwa;if(!t?.enabled)return"";let r=t.routes||[],n=t.cacheStorage,c=[];for(let a of r){let i=g(a.strategy),s=[];if(a.maxAgeSeconds||a.maxEntries||n?.maxEntries){let o=a.maxEntries||n?.maxEntries||100,u=a.maxAgeSeconds||(n?.maxAge?n.maxAge*24*60*60:void 0);s.push(`new ExpirationPlugin({
2
+ import{ie,dt}from"./chunk-krr2vb0s.js";import{fe}from"./chunk-jjnfj9nf.js";function m(e){let t={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return t[e]||t["network-first"]}function g(e){return m(e).className}function d(e){let t=e.pwa;if(!t?.enabled)return"";let r=t.routes||[],n=t.cacheStorage,c=[];for(let a of r){let i=g(a.strategy),s=[];if(a.maxAgeSeconds||a.maxEntries||n?.maxEntries){let o=a.maxEntries||n?.maxEntries||100,u=a.maxAgeSeconds||(n?.maxAge?n.maxAge*24*60*60:void 0);s.push(`new ExpirationPlugin({
3
3
  maxEntries: ${o},
4
4
  ${u?`maxAgeSeconds: ${u},`:""}
5
5
  purgeOnQuotaError: true,
@@ -17,7 +17,7 @@ registerRoute(
17
17
  ],`:""}
18
18
  })
19
19
  );`)}return c.join(`
20
- `)}function p(e){if(e.startsWith("*.")){let t=e.slice(2);return`({ request }) => request.destination === '${f(t)}'`}if(e.endsWith("/**"))return`({ url }) => url.pathname.startsWith('${e.slice(0,-3)}')`;if(e.endsWith("/*")){let t=e.slice(0,-2);return`({ url }) => url.pathname.startsWith('${t}') && !url.pathname.slice(${t.length+1}).includes('/')`}if(e.includes("*")&&!e.startsWith("*")){let[t,r]=e.split("*");return`({ url }) => url.pathname.startsWith('${t}') && url.pathname.endsWith('${r}')`}if(e==="/"||!e.includes("*"))return`({ url }) => url.pathname === '${e}'`;return`new RegExp('${x(e).replace(/\\\*/g,".*")}')`}function f(e){return{js:"script",mjs:"script",css:"style",html:"document",htm:"document",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",ico:"image",woff:"font",woff2:"font",ttf:"font",eot:"font",otf:"font"}[e.toLowerCase()]||"empty"}function h(e){return"stx-"+e.replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase().slice(0,30)+"-cache"}function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e,t){let r=e.pwa;if(!r?.enabled)return{mode:"generate",modules:[],skipWaiting:!0,clientsClaim:!0};let n=r.serviceWorker||{},c=r.routes||[],a=[{name:"workbox-precaching",exports:["precacheAndRoute","cleanupOutdatedCaches"]},{name:"workbox-routing",exports:["registerRoute","NavigationRoute","setDefaultHandler"]}],i=new Set;for(let o of c)i.add(g(o.strategy));if(i.size>0)a.push({name:"workbox-strategies",exports:Array.from(i)});if(c.some((o)=>o.maxAgeSeconds||o.maxEntries)||r.cacheStorage)a.push({name:"workbox-expiration",exports:["ExpirationPlugin"]});if(c.some((o)=>o.strategy==="network-first"||o.strategy==="stale-while-revalidate"))a.push({name:"workbox-cacheable-response",exports:["CacheableResponsePlugin"]});if(r.backgroundSync?.enabled)a.push({name:"workbox-background-sync",exports:["BackgroundSyncPlugin","Queue"]});if(n.navigationPreload)a.push({name:"workbox-navigation-preload",exports:["enable"]});let l=t?ie(t,e):void 0;return{mode:"generate",modules:a,precacheManifest:l?.entries,skipWaiting:n.skipWaiting??!0,clientsClaim:n.clientsClaim??!0,offlineFallback:r.offline?.enabled?"/offline.html":void 0,navigationPreload:n.navigationPreload??!1,cacheVersion:n.cacheVersion||"1.0.0"}}function W(e,t){let r=e.pwa;if(!r?.enabled)return"";let n=b(e,t),c=r.serviceWorker||{},{push:a,backgroundSync:i}=r,s=t?ie(t,e):null,l=s?ut(s):"[]",o=k(n.modules),u=d(e);return`/**
20
+ `)}function p(e){if(e.startsWith("*.")){let t=e.slice(2);return`({ request }) => request.destination === '${f(t)}'`}if(e.endsWith("/**"))return`({ url }) => url.pathname.startsWith('${e.slice(0,-3)}')`;if(e.endsWith("/*")){let t=e.slice(0,-2);return`({ url }) => url.pathname.startsWith('${t}') && !url.pathname.slice(${t.length+1}).includes('/')`}if(e.includes("*")&&!e.startsWith("*")){let[t,r]=e.split("*");return`({ url }) => url.pathname.startsWith('${t}') && url.pathname.endsWith('${r}')`}if(e==="/"||!e.includes("*"))return`({ url }) => url.pathname === '${e}'`;return`new RegExp('${x(e).replace(/\\\*/g,".*")}')`}function f(e){return{js:"script",mjs:"script",css:"style",html:"document",htm:"document",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",ico:"image",woff:"font",woff2:"font",ttf:"font",eot:"font",otf:"font"}[e.toLowerCase()]||"empty"}function h(e){return"stx-"+e.replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase().slice(0,30)+"-cache"}function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e,t){let r=e.pwa;if(!r?.enabled)return{mode:"generate",modules:[],skipWaiting:!0,clientsClaim:!0};let n=r.serviceWorker||{},c=r.routes||[],a=[{name:"workbox-precaching",exports:["precacheAndRoute","cleanupOutdatedCaches"]},{name:"workbox-routing",exports:["registerRoute","NavigationRoute","setDefaultHandler"]}],i=new Set;for(let o of c)i.add(g(o.strategy));if(i.size>0)a.push({name:"workbox-strategies",exports:Array.from(i)});if(c.some((o)=>o.maxAgeSeconds||o.maxEntries)||r.cacheStorage)a.push({name:"workbox-expiration",exports:["ExpirationPlugin"]});if(c.some((o)=>o.strategy==="network-first"||o.strategy==="stale-while-revalidate"))a.push({name:"workbox-cacheable-response",exports:["CacheableResponsePlugin"]});if(r.backgroundSync?.enabled)a.push({name:"workbox-background-sync",exports:["BackgroundSyncPlugin","Queue"]});if(n.navigationPreload)a.push({name:"workbox-navigation-preload",exports:["enable"]});let l=t?ie(t,e):void 0;return{mode:"generate",modules:a,precacheManifest:l?.entries,skipWaiting:n.skipWaiting??!0,clientsClaim:n.clientsClaim??!0,offlineFallback:r.offline?.enabled?"/offline.html":void 0,navigationPreload:n.navigationPreload??!1,cacheVersion:n.cacheVersion||"1.0.0"}}function W(e,t){let r=e.pwa;if(!r?.enabled)return"";let n=b(e,t),c=r.serviceWorker||{},{push:a,backgroundSync:i}=r,s=t?ie(t,e):null,l=s?dt(s):"[]",o=k(n.modules),u=d(e);return`/**
21
21
  * Service Worker - Generated by stx with Workbox
22
22
  * Cache Version: ${n.cacheVersion}
23
23
  *
@@ -41,7 +41,7 @@ importScripts('https://storage.googleapis.com/workbox-cdn/releases/7.0.0/workbox
41
41
  // build's transpiler folds that particular read to a constant, so every
42
42
  // published copy of stx emitted "debug: true" and no app could turn Workbox's
43
43
  // logging off in production however it set NODE_ENV (see ../env.ts).
44
- workbox.setConfig({ debug: ${!pe()} });
44
+ workbox.setConfig({ debug: ${!fe()} });
45
45
 
46
46
  // Extract modules from workbox global
47
47
  ${o}
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{_l,Rl,Al,Pl,Il}from"./chunk-tqnysw0k.js";export{Rl as defineAsyncComponent,Pl as generateAsyncComponentCSS,Il as generateAsyncComponentRuntime,Al as isAsyncComponent,_l as processAsyncDirectives};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{gl}from"./chunk-34gy5zjm.js";export{gl as processDeferDirectives};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{mi,hi,yi,lu}from"./chunk-p828w2b8.js";import"./chunk-60bes9yt.js";import"./chunk-dxb1bbtr.js";import"./chunk-11ra3sbc.js";import"./chunk-x5ks23vx.js";import"./chunk-g1fxmp9z.js";import"./chunk-mbbx3w32.js";import"./chunk-62r4fa4q.js";import"./chunk-32y3767j.js";import"./chunk-ax58cds3.js";import"./chunk-09hhrjk9.js";import"./chunk-tafebmtg.js";import"./chunk-757ec865.js";import"./chunk-66k7yxnr.js";import"./chunk-4n6c5rp5.js";export{mi as buildNative,lu as default,yi as getAvailableFormats,hi as getAvailableTargets};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{An,Pe,Ti,Ra}from"./chunk-kjkwycce.js";export{An as generateServiceWorker,Ra as generateServiceWorkerAuto,Pe as getServiceWorkerFileName,Ti as isWorkboxEnabled};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{p,l}from"./chunk-wweasgq9.js";import{h}from"./chunk-1680nbq4.js";function y(t,o){let i=1,r=o,e="<template",n="</template";while(r<t.length&&i>0){let s=t.indexOf("<",r);if(s===-1)break;if(r=s,t.startsWith(e,r)&&(r+e.length>=t.length||/[\s>\/]/.test(t[r+e.length]))){i++,r+=e.length;continue}if(t.startsWith(n,r)){let a=t.indexOf(">",r+n.length);if(a!==-1){if(i--,i===0)return a+1;r=a+1;continue}}r++}return i===0?r:-1}var x=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function b(t,o){let i=null;for(let r=o;r<t.length;r++){let e=t[r];if(i){if(e==="\\"){r++;continue}if(e===i)i=null;continue}if(e==='"'||e==="'"){i=e;continue}if(e===">")return r+1}return-1}function N(t,o,i){let r=o.toLowerCase(),e=1,n=i;while(n<t.length){let s=t.indexOf("<",n);if(s===-1)return-1;if(t.startsWith("<!--",s)){let g=t.indexOf("-->",s+4);n=g===-1?t.length:g+3;continue}let a=b(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(e--,e===0)return a}else if(!/\/\s*>$/.test(f))e++}n=a}return-1}function A(t){let o=[],i=[],r=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,e=0;while(e<t.length){let n=t.indexOf("<",e);if(n===-1)break;if(t.startsWith("<!--",n)){let c=t.indexOf("-->",n+4);e=c===-1?t.length:c+3;continue}let s=b(t,n+1);if(s===-1)break;let a=t.slice(n,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){e=s;continue}let u=f[2].toLowerCase();if(f[1]==="/"){let c=i.lastIndexOf(u);if(c!==-1)i.splice(c);e=s;continue}let g=/\/\s*>$/.test(a),d=i.length===0?a.match(r):null;if(d){let c=d[1]||d[2],m=a.replace(r,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),S=g||x.has(u)?-1:N(t,u,s);if(S===-1)o.push({start:n,end:s,slotName:c,element:m}),e=s;else o.push({start:n,end:S,slotName:c,element:m+t.slice(s,S)}),e=S;continue}if(!g&&!x.has(u)){if(i.push(u),u==="script"||u==="style"){let c=t.toLowerCase().indexOf(`</${u}>`,s);if(c!==-1){e=c;continue}}}e=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,e=0;while(e<t.length){let n=t.indexOf("<",e);if(n===-1)break;if(t.startsWith("<!--",n)){let c=t.indexOf("-->",n+4);e=c===-1?t.length:c+3;continue}let s=b(t,n+1);if(s===-1)break;let a=t.slice(n,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){e=s;continue}let u=f[1]==="/",g=f[2].toLowerCase();if(u){let c=i.lastIndexOf(g);if(c!==-1)i.splice(c);e=s;continue}if(g==="template"&&i.length===0){let c=a.match(r);if(c){let m=y(t,s);if(m!==-1){let S=c[1]||c[2]||c[3];o.push({start:n,end:m,slotName:S,content:t.slice(s,m-11).trim(),propsBinding:c[4]||void 0}),e=m;continue}}}if(!/\/\s*>$/.test(a)&&!x.has(g)){if(i.push(g),g==="script"||g==="style"){let c=t.toLowerCase().indexOf(`</${g}>`,s);if(c!==-1){e=c;continue}}}e=s}return o}function Ho(t){let o={default:"",named:new Map},i=t,r=O(t);for(let n of r)o.named.set(n.slotName,{name:n.slotName,content:n.content,propsBinding:n.propsBinding});r.sort((n,s)=>s.start-n.start);for(let n of r)i=i.slice(0,n.start)+i.slice(n.end);let e=A(i);for(let n of e){let s=o.named.get(n.slotName);if(s)s.content+=n.element;else o.named.set(n.slotName,{name:n.slotName,content:n.element})}for(let n=e.length-1;n>=0;n--){let s=e[n];i=i.slice(0,s.start)+i.slice(s.end)}return o.default=i.trim(),o}function nl(t){let o=t.match(/name\s*=\s*["']([^"']+)["']/),i=o?o[1]:"",r={},e=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,n;while((n=e.exec(t))!==null)r[n[1]]=n[2];let s=t.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),a=s?s[1].trim():"";return{name:i,props:r,defaultContent:a}}async function Vo(t,o,i,r){if(!t)return i;let e=t.content;if(t.propsBinding&&Object.keys(o).length>0){let n=t.propsBinding.trim(),s={...r};if(n.startsWith("{")&&n.endsWith("}")){let a=n.slice(1,-1).split(",").map((f)=>f.trim()).filter(Boolean);for(let f of a){let[u,g]=f.split(":").map((c)=>c.trim()),d=g||u;if(o[u]!==void 0)s[d]=o[u]}}else s[n]=o;e=C(e,s)}return e}function C(t,o){return t.replace(/\{\{\s*([^}]+)\s*\}\}/g,(i,r)=>{try{let e=r.trim(),n=k(e,o);return h(String(n??""))}catch{return`{{ ${r} }}`}})}function k(t,o){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(t)){let r=t.split("."),e=o;for(let n of r)if(e&&typeof e==="object"&&n in e)e=e[n];else return;return e}let i=t.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(i){let[,r,e,n]=i,s=o[r],a=parseInt(n,10);if(typeof s==="number")switch(e){case"+":return s+a;case"-":return s-a;case"*":return s*a;case"/":return s/a}}try{if(!p(t))return;return l(t,Object.keys(o))(...Object.values(o))}catch{return}}async function Uo(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),d=u?.trim()||"",c=f||"",m={},S=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,w;while((w=S.exec(c))!==null){let E=w[1],R=w[2];m[E]=k(R,i)}return await Vo(g,m,d,i)});let n=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return r=r.replace(n,(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=[],e=[];t.replace(o,(a,...f)=>{let u=f[f.length-2];return e.push({match:a,index:u}),r.push(i(a,...f.slice(0,-2))),a});let n=await Promise.all(r),s=t;for(let a=e.length-1;a>=0;a--){let{match:f,index:u}=e[a];s=s.slice(0,u)+n[a]+s.slice(u+f.length)}return s}function rl(t){let o=Ho(t);return{defaultSlot:o.default,namedSlots:o.named}}async function sl(t,o,i,r){return await Uo(t,{default:o,named:i},r)}
3
- export{Ho,nl,Vo,Uo,rl,sl};
2
+ import{p,l}from"./chunk-09hhrjk9.js";import{h}from"./chunk-dxb1bbtr.js";function y(t,o){let i=1,r=o,e="<template",n="</template";while(r<t.length&&i>0){let s=t.indexOf("<",r);if(s===-1)break;if(r=s,t.startsWith(e,r)&&(r+e.length>=t.length||/[\s>\/]/.test(t[r+e.length]))){i++,r+=e.length;continue}if(t.startsWith(n,r)){let a=t.indexOf(">",r+n.length);if(a!==-1){if(i--,i===0)return a+1;r=a+1;continue}}r++}return i===0?r:-1}var x=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function b(t,o){let i=null;for(let r=o;r<t.length;r++){let e=t[r];if(i){if(e==="\\"){r++;continue}if(e===i)i=null;continue}if(e==='"'||e==="'"){i=e;continue}if(e===">")return r+1}return-1}function N(t,o,i){let r=o.toLowerCase(),e=1,n=i;while(n<t.length){let s=t.indexOf("<",n);if(s===-1)return-1;if(t.startsWith("<!--",s)){let g=t.indexOf("-->",s+4);n=g===-1?t.length:g+3;continue}let a=b(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(e--,e===0)return a}else if(!/\/\s*>$/.test(f))e++}n=a}return-1}function A(t){let o=[],i=[],r=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,e=0;while(e<t.length){let n=t.indexOf("<",e);if(n===-1)break;if(t.startsWith("<!--",n)){let c=t.indexOf("-->",n+4);e=c===-1?t.length:c+3;continue}let s=b(t,n+1);if(s===-1)break;let a=t.slice(n,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){e=s;continue}let u=f[2].toLowerCase();if(f[1]==="/"){let c=i.lastIndexOf(u);if(c!==-1)i.splice(c);e=s;continue}let g=/\/\s*>$/.test(a),d=i.length===0?a.match(r):null;if(d){let c=d[1]||d[2],m=a.replace(r,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),S=g||x.has(u)?-1:N(t,u,s);if(S===-1)o.push({start:n,end:s,slotName:c,element:m}),e=s;else o.push({start:n,end:S,slotName:c,element:m+t.slice(s,S)}),e=S;continue}if(!g&&!x.has(u)){if(i.push(u),u==="script"||u==="style"){let c=t.toLowerCase().indexOf(`</${u}>`,s);if(c!==-1){e=c;continue}}}e=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,e=0;while(e<t.length){let n=t.indexOf("<",e);if(n===-1)break;if(t.startsWith("<!--",n)){let c=t.indexOf("-->",n+4);e=c===-1?t.length:c+3;continue}let s=b(t,n+1);if(s===-1)break;let a=t.slice(n,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){e=s;continue}let u=f[1]==="/",g=f[2].toLowerCase();if(u){let c=i.lastIndexOf(g);if(c!==-1)i.splice(c);e=s;continue}if(g==="template"&&i.length===0){let c=a.match(r);if(c){let m=y(t,s);if(m!==-1){let S=c[1]||c[2]||c[3];o.push({start:n,end:m,slotName:S,content:t.slice(s,m-11).trim(),propsBinding:c[4]||void 0}),e=m;continue}}}if(!/\/\s*>$/.test(a)&&!x.has(g)){if(i.push(g),g==="script"||g==="style"){let c=t.toLowerCase().indexOf(`</${g}>`,s);if(c!==-1){e=c;continue}}}e=s}return o}function Wo(t){let o={default:"",named:new Map},i=t,r=O(t);for(let n of r)o.named.set(n.slotName,{name:n.slotName,content:n.content,propsBinding:n.propsBinding});r.sort((n,s)=>s.start-n.start);for(let n of r)i=i.slice(0,n.start)+i.slice(n.end);let e=A(i);for(let n of e){let s=o.named.get(n.slotName);if(s)s.content+=n.element;else o.named.set(n.slotName,{name:n.slotName,content:n.element})}for(let n=e.length-1;n>=0;n--){let s=e[n];i=i.slice(0,s.start)+i.slice(s.end)}return o.default=i.trim(),o}function il(t){let o=t.match(/name\s*=\s*["']([^"']+)["']/),i=o?o[1]:"",r={},e=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,n;while((n=e.exec(t))!==null)r[n[1]]=n[2];let s=t.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),a=s?s[1].trim():"";return{name:i,props:r,defaultContent:a}}async function qo(t,o,i,r){if(!t)return i;let e=t.content;if(t.propsBinding&&Object.keys(o).length>0){let n=t.propsBinding.trim(),s={...r};if(n.startsWith("{")&&n.endsWith("}")){let a=n.slice(1,-1).split(",").map((f)=>f.trim()).filter(Boolean);for(let f of a){let[u,g]=f.split(":").map((c)=>c.trim()),d=g||u;if(o[u]!==void 0)s[d]=o[u]}}else s[n]=o;e=C(e,s)}return e}function C(t,o){return t.replace(/\{\{\s*([^}]+)\s*\}\}/g,(i,r)=>{try{let e=r.trim(),n=k(e,o);return h(String(n??""))}catch{return`{{ ${r} }}`}})}function k(t,o){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(t)){let r=t.split("."),e=o;for(let n of r)if(e&&typeof e==="object"&&n in e)e=e[n];else return;return e}let i=t.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(i){let[,r,e,n]=i,s=o[r],a=parseInt(n,10);if(typeof s==="number")switch(e){case"+":return s+a;case"-":return s-a;case"*":return s*a;case"/":return s/a}}try{if(!p(t))return;return l(t,Object.keys(o))(...Object.values(o))}catch{return}}async function Ko(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),d=u?.trim()||"",c=f||"",m={},S=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,w;while((w=S.exec(c))!==null){let E=w[1],R=w[2];m[E]=k(R,i)}return await qo(g,m,d,i)});let n=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return r=r.replace(n,(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=[],e=[];t.replace(o,(a,...f)=>{let u=f[f.length-2];return e.push({match:a,index:u}),r.push(i(a,...f.slice(0,-2))),a});let n=await Promise.all(r),s=t;for(let a=e.length-1;a>=0;a--){let{match:f,index:u}=e[a];s=s.slice(0,u)+n[a]+s.slice(u+f.length)}return s}function ol(t){let o=Wo(t);return{defaultSlot:o.default,namedSlots:o.named}}async function al(t,o,i,r){return await Ko(t,{default:o,named:i},r)}
3
+ export{Wo,il,qo,Ko,ol,al};
@@ -298,5 +298,5 @@ catch (error) {
298
298
  init();
299
299
  }
300
300
  })();
301
- </script>`}var Rc={name:"pwa.installButton",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return r(t,n)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Ac={name:"pwa.updatePrompt",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return p(t,n)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},Pc={name:"pwa.offlineIndicator",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return d(t,n)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},Ic={name:"pwa.pushSubscribe",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return l(t,n)},hasEndTag:!0,description:"Renders a push notification subscription button"},rr=[Rc,Ac,Pc,Ic];function Ju(t){return[...t,...rr]}
302
- export{Rc,Ac,Pc,Ic,rr,Ju};
301
+ </script>`}var Ic={name:"pwa.installButton",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return r(t,n)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Dc={name:"pwa.updatePrompt",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return p(t,n)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},Oc={name:"pwa.offlineIndicator",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return d(t,n)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},Mc={name:"pwa.pushSubscribe",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return l(t,n)},hasEndTag:!0,description:"Renders a push notification subscription button"},or=[Ic,Dc,Oc,Mc];function Qu(t){return[...t,...or]}
302
+ export{Ic,Dc,Oc,Mc,or,Qu};