@stacksjs/stx 0.2.912 → 0.2.913
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-027qc41m.js +2 -0
- package/dist/{chunk-s1sm41pe.js → chunk-084f6953.js} +1 -1
- package/dist/{chunk-wsg1evmc.js → chunk-0b5vmmf8.js} +1 -1
- package/dist/chunk-12f99j3h.js +2 -0
- package/dist/{chunk-cpt9sg6d.js → chunk-132j46ey.js} +1 -1
- package/dist/{chunk-6ryenxnh.js → chunk-1nf2ma94.js} +1 -1
- package/dist/{chunk-zcgks568.js → chunk-1qygqpc7.js} +1 -1
- package/dist/{chunk-dqwc5b8m.js → chunk-2qypb5q8.js} +1 -1
- package/dist/{chunk-13awnyq0.js → chunk-2vdbt2a7.js} +1 -1
- package/dist/{chunk-pwv6pvnm.js → chunk-3xgr1z61.js} +1 -1
- package/dist/{chunk-q3smaxw7.js → chunk-500be1wy.js} +2 -2
- package/dist/chunk-5md9ymx3.js +2 -0
- package/dist/{chunk-btetjy8n.js → chunk-5mv2hc96.js} +3 -3
- package/dist/{chunk-vys2c06e.js → chunk-6s82ecbh.js} +4 -4
- package/dist/{chunk-zqvkbj0k.js → chunk-6vyy44ve.js} +2 -2
- package/dist/{chunk-ck4ypzet.js → chunk-75r2p1cz.js} +1 -1
- package/dist/{chunk-aahxd88g.js → chunk-7b2t9j0x.js} +4 -4
- package/dist/{chunk-c8qp8b5z.js → chunk-7mv9z3mp.js} +1 -1
- package/dist/{chunk-ypy1k5t0.js → chunk-89z732nx.js} +1 -1
- package/dist/{chunk-7y5fkje7.js → chunk-8mc1kr6z.js} +1 -1
- package/dist/chunk-a774ncg3.js +3 -0
- package/dist/chunk-aty34jhn.js +2 -0
- package/dist/chunk-banmft69.js +2 -0
- package/dist/{chunk-pthvpadr.js → chunk-bwk2jakf.js} +1 -1
- package/dist/chunk-dk881ye4.js +2 -0
- package/dist/{chunk-q3ccf7ky.js → chunk-dm9r5gzb.js} +1 -1
- package/dist/{chunk-cxzy7kxg.js → chunk-etn044yn.js} +7 -7
- package/dist/{chunk-c0738x1k.js → chunk-exny40nv.js} +1 -1
- package/dist/chunk-f9dy0r3f.js +2 -0
- package/dist/{chunk-d2rwg24x.js → chunk-fcqca9qb.js} +1 -1
- package/dist/{chunk-jbbgye38.js → chunk-fcxg3xwf.js} +5 -5
- package/dist/{chunk-nkkassx2.js → chunk-fd8fp6h4.js} +1 -1
- package/dist/{chunk-9kaxt6tw.js → chunk-fx6hg5yd.js} +1 -1
- package/dist/{chunk-pgb2p7pm.js → chunk-g9s2t064.js} +1 -1
- package/dist/{chunk-jkenezzp.js → chunk-gfm238j6.js} +1 -1
- package/dist/{chunk-vr9dbmxh.js → chunk-gqz6502d.js} +1 -1
- package/dist/{chunk-r3eq7mza.js → chunk-hacdy30m.js} +1 -1
- package/dist/{chunk-pdvssk6k.js → chunk-hcxsyw55.js} +4 -4
- package/dist/{chunk-xsxdyzha.js → chunk-hgpjneyy.js} +2 -2
- package/dist/{chunk-vhk5m98x.js → chunk-hm954re1.js} +1 -1
- package/dist/{chunk-03sqt4jx.js → chunk-ja4fyz87.js} +2 -2
- package/dist/chunk-jr3txt3f.js +2 -0
- package/dist/{chunk-x5x8hbm0.js → chunk-kc3w40c2.js} +1 -1
- package/dist/{chunk-9ejbveb6.js → chunk-mqknt05a.js} +1 -1
- package/dist/chunk-n008g6xh.js +2 -0
- package/dist/{chunk-rektg4nx.js → chunk-p9cm5ksf.js} +1 -1
- package/dist/{chunk-996gpkb6.js → chunk-pasjfsz4.js} +1 -1
- package/dist/{chunk-rpyhbyt7.js → chunk-px6zx8ae.js} +1 -1
- package/dist/{chunk-wnnj29pg.js → chunk-pzf34jvd.js} +1 -1
- package/dist/chunk-q8k9ava8.js +2 -0
- package/dist/{chunk-wvpk866c.js → chunk-qedhz0p8.js} +1 -1
- package/dist/{chunk-gmk82cm4.js → chunk-qfwnp28b.js} +1 -1
- package/dist/{chunk-1gfc406y.js → chunk-rbfrxaer.js} +1 -1
- package/dist/{chunk-kfvp7mh1.js → chunk-rmyhjta6.js} +1 -1
- package/dist/{chunk-8vk795yg.js → chunk-s19t5mh2.js} +1 -1
- package/dist/chunk-s26a54qk.js +2 -0
- package/dist/{chunk-jcmhpbh4.js → chunk-thrvqves.js} +1 -1
- package/dist/{chunk-jk6zn8tw.js → chunk-tm4fgc58.js} +1 -1
- package/dist/{chunk-zytwcfbt.js → chunk-v37hjzt2.js} +1 -1
- package/dist/{chunk-ff03ga49.js → chunk-vk9s9byv.js} +4 -4
- package/dist/{chunk-nxcg5tf5.js → chunk-vr6maaas.js} +1 -1
- package/dist/{chunk-46fzxsh0.js → chunk-whd6y829.js} +3 -3
- package/dist/chunk-ygrrbcfm.js +2 -0
- package/dist/chunk-ys68yvgz.js +2 -0
- package/dist/{chunk-ve0sbkrt.js → chunk-z02jzx63.js} +1 -1
- package/dist/chunk-zjrnz9yt.js +7 -0
- package/dist/{chunk-a5920t9d.js → chunk-zwhc17pt.js} +2 -2
- package/dist/chunk-zzpedcte.js +2 -0
- package/dist/cli.js +8 -8
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/dist/strip-literals.js +40 -26
- package/package.json +5 -5
- package/dist/chunk-28f696hb.js +0 -2
- package/dist/chunk-59nhx5mp.js +0 -2
- package/dist/chunk-68qw8ak4.js +0 -2
- package/dist/chunk-759jwj0e.js +0 -3
- package/dist/chunk-83ykx150.js +0 -2
- package/dist/chunk-a5990vzz.js +0 -2
- package/dist/chunk-ahf9j8wb.js +0 -12
- package/dist/chunk-ardnfxn5.js +0 -2
- package/dist/chunk-bjbzpy42.js +0 -2
- package/dist/chunk-dhk7355h.js +0 -2
- package/dist/chunk-fwebja2k.js +0 -2
- package/dist/chunk-prekacv2.js +0 -2
- package/dist/chunk-rssjx1mg.js +0 -2
- package/dist/chunk-rtrhv7nd.js +0 -2
- package/dist/chunk-vavq2ak3.js +0 -2
- package/dist/chunk-vktbykbf.js +0 -2
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{_o,tn,tu,am}from"./chunk-w3y8408q.js";import{ko,aa,sm,om,im}from"./chunk-3syagjd7.js";import{Zl,Ql,eu,nm,rm}from"./chunk-yzgtsrjb.js";import{st,Vn,ca}from"./chunk-eptzpvn0.js";import{cm,lm,um,dm,Co,Gy}from"./chunk-0d3pkkrv.js";import B from"fs";import w from"path";import O from"fs";import u from"path";var v=[72,96,128,144,152,192,384,512],S=[120,152,167,180],P=[16,32];async function M(n,t){let e={success:!0,generatedFiles:[],errors:[],warnings:[]},r=n.pwa?.icons;if(!r?.src)return e.errors.push("No source icon specified in pwa.icons.src"),e.success=!1,e;let o=u.isAbsolute(r.src)?r.src:u.resolve(process.cwd(),r.src);if(!await Bun.file(o).exists())return e.errors.push(`Source icon not found: ${o}`),e.success=!1,e;let a=u.resolve(t,r.outputDir||"pwa-icons");try{O.mkdirSync(a,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${a}`),e.success=!1,e}let s=r.sizes||v,l=r.generateWebP??!0,p=r.generateAppleIcons??!0;try{let c;try{c=await import("sharp")}catch{return e.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-zzpedcte.js"),o=await Bun.file(e).text();return await r(o,{},e,n,new Set)}catch(r){console.warn(`[PWA] Failed to process custom offline page: ${r}`)}else console.warn(`[PWA] Custom offline page not found: ${e}`)}return E(n)}function E(n){let t=n.pwa?.offline,e=n.pwa?.manifest,r=t?.fallbackTitle||"You are offline",o=t?.fallbackMessage||"Please check your internet connection and try again.",a=e?.themeColor||"#4f46e5",s=e?.shortName||e?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-0jdz31q1.js";import"./chunk-
|
|
2
|
+
import"./chunk-0jdz31q1.js";import"./chunk-75r2p1cz.js";import"./chunk-2vdbt2a7.js";import"./chunk-cwcmmgvz.js";import{_,Ol}from"./chunk-c08jvjqt.js";import"./chunk-4b110x6r.js";import"./chunk-phzhmnnm.js";import{Ut,x}from"./chunk-etn044yn.js";import"./chunk-w98yt4d4.js";import"./chunk-fcqca9qb.js";import"./chunk-razwegar.js";import{Lt,jt,Bt,Ft,zt,Ht}from"./chunk-9gptdyqq.js";import{a}from"./chunk-ja4fyz87.js";import{qs}from"./chunk-eca022er.js";import"./chunk-mpfm5ctr.js";import"./chunk-gqz6502d.js";import{$e,mn,hn}from"./chunk-px6zx8ae.js";import"./chunk-z02jzx63.js";import{S}from"./chunk-zwhc17pt.js";import{Pt,i}from"./chunk-6s82ecbh.js";import"./chunk-0b5vmmf8.js";import"./chunk-vk9s9byv.js";import{Os}from"./chunk-6vyy44ve.js";import"./chunk-084f6953.js";import"./chunk-fs43342z.js";import{Ec,Tc,$c}from"./chunk-8n42epb6.js";import{fn,gr,mr}from"./chunk-357qjcj1.js";import{gn}from"./chunk-7mv9z3mp.js";import"./chunk-a774ncg3.js";import"./chunk-9bexzgws.js";import{re,Pe}from"./chunk-hcxsyw55.js";import"./chunk-v0yay1kw.js";import"./chunk-v37hjzt2.js";import{l}from"./chunk-w4177qn3.js";import{rt}from"./chunk-e5rag6rh.js";import{t,h}from"./chunk-zjrnz9yt.js";import{f}from"./chunk-8tfpv6zf.js";import R from"fs";import w from"path";import{createHash as $t}from"crypto";function kt(e){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(e).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return e}}var Dt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Rt(e){return Bun.hash(e).toString(16)}function lt(e,n={}){if(!e.includes('type="stx/island"'))return{html:e,chunks:[]};let s=new Map,o=e.replace(Dt,(r,u,g,P)=>{let b=P.trim();if(!b)return r;if(/\bdata-stx-src=/.test(g))return r;if(n.minify)b=kt(b);let p=Rt(b);if(!s.has(p))s.set(p,b);let k=n.integrity?` data-stx-integrity="sha384-${$t("sha384").update(b).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${p}.js"${k}${g}></script>`}),c=Array.from(s,([r,u])=>({hash:r,code:u}));return{html:o,chunks:c}}var Et=new Set(["visible","idle"]);function ut(e){if(!e.includes("data-stx-src="))return e;let n=new Map,s=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,o;while((o=s.exec(e))!==null)n.set(o[1],o[2]);let c=new Set,r=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=r.exec(e))!==null)if(Et.has(n.get(u[1])||""))c.add(u[2]);let g=/<\/head\s*>/iy,P=x(e,(p,k)=>(g.lastIndex=k,g.exec(p)?g.lastIndex:-1))[0]?.start??-1;if(c.size===0||P===-1)return e;let b=Array.from(c).filter((p)=>!e.includes(`rel="prefetch" href="${p}"`)).map((p)=>`<link rel="prefetch" href="${p}" as="script">`).join("");if(!b)return e;return e.slice(0,P)+b+e.slice(P)}var Ct=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function Y(e){let n=e.trim();if(!n)return null;let s=/^https?:\/\//i.test(n)?n:`https://${n}`;try{return new URL(s).origin+new URL(s).pathname.replace(/\/$/,"")}catch{return null}}function It(e){for(let n of Ct){let s=e[n];if(!s)continue;let o=Y(s);if(o)return{url:o,source:"env",via:n}}return null}function dt(e){if(!e||typeof e!=="object")return null;let n=e,s=n.site?.url??n.url??n.app?.url;return typeof s==="string"?Y(s):null}async function Tt(e){let{existsSync:n}=await import("fs"),s=await import("path");for(let o of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=s.resolve(e,o);if(!n(c))continue;try{let r=await import(c),u=dt(r.default??r);if(u)return u}catch{}}return null}async function gt(e={}){let n=e.cwd??process.cwd(),s=e.env??process.env;if(e.explicit){let u=Y(e.explicit);if(u)return{url:u,source:"option"}}let o=dt(e.stxConfig);if(o)return{url:o,source:"stx.config",via:"site.url"};let c=await Tt(n);if(c)return{url:c,source:"site.config",via:"url"};let r=It(s);if(r)return r;return{url:"http://localhost",source:"fallback"}}function pt(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
3
|
`)}function V(e){return async()=>({paths:await e(),fallback:!1})}var At;function Ot(e){let n=t(e),{depths:s}=h(n),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,c;while((c=o.exec(n))!==null){if(s[c.index]!==0)continue;let u=_(n,"(",")",o.lastIndex-1),g=n.indexOf("{",u+1),P=_(n,"{","}",g);if(u<0||g<0||P<0)break;return e.slice(c.index,P+1)}let r=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((c=r.exec(n))!==null){if(s[c.index]!==0)continue;let u=Ol(n,r.lastIndex).endPos;return e.slice(r.lastIndex,u).trim()}throw SyntaxError("Could not extract getStaticPaths; use a top-level function or const declaration")}async function ft(e){let n="read";try{let s=await Bun.file(e).text();n="parse";let o=gn(s),c=[...o.server,...o.client,...o.signals].filter((r)=>/(?:^|\s)server(?:\s|=|$)/i.test(t(r.attrs))).sort((r,u)=>s.indexOf(r.fullTag)-s.indexOf(u.fullTag));for(let r of c){if(!/\bgetStaticPaths\b/.test(t(r.content)))continue;let u=(At??=new Bun.Transpiler({loader:"ts",target:"bun"})).transformSync(r.content);if(!/\bgetStaticPaths\b/.test(t(u)))continue;let g=Ot(u);if(/\bdefineStaticPaths\b/.test(t(g))&&Ut(u,"defineStaticPaths"))throw SyntaxError("Cannot evaluate a module-local defineStaticPaths binding during isolated hook extraction");n="execute";let P=Function("defineStaticPaths",`return (${g})`)(V);if(typeof P!=="function")throw TypeError("getStaticPaths must be a function");let b=await P();n="result";let p=Array.isArray(b)?{paths:b}:b;if(!p||typeof p!=="object"||!("paths"in p)||!Array.isArray(p.paths))throw TypeError("getStaticPaths must return { paths: [...] } or an array of paths");for(let k of p.paths)if(!k||typeof k!=="object"||!k.params||typeof k.params!=="object"||Array.isArray(k.params))throw TypeError("Each getStaticPaths path must contain a params object");return{kind:"ok",value:p}}return{kind:"absent"}}catch(s){return{kind:"error",phase:n,error:s instanceof Error?s:Error(String(s))}}}class ht{cacheDir;cache=new Map;loaded=!1;salt;constructor(e,n=""){this.cacheDir=e,this.salt=n}async load(){if(this.loaded)return;let e=w.join(this.cacheDir,"build-cache.json");if(await Bun.file(e).exists())try{let n=JSON.parse(await Bun.file(e).text());for(let[s,o]of Object.entries(n))this.cache.set(s,o)}catch{}this.loaded=!0}async save(){await R.promises.mkdir(this.cacheDir,{recursive:!0});let e=w.join(this.cacheDir,"build-cache.json"),n={};for(let[s,o]of this.cache)n[s]=o;await Bun.write(e,JSON.stringify(n))}getHash(e,n){let s=R.statSync(e),o=`${this.salt}|${e}:${s.mtimeMs}`;for(let r of n)if(R.existsSync(r)){let u=R.statSync(r);o+=`:${r}:${u.mtimeMs}`}let c=0;for(let r=0;r<o.length;r++){let u=o.charCodeAt(r);c=(c<<5)-c+u,c=c&c}return Math.abs(c).toString(36)}get(e,n){let s=this.cache.get(e);if(!s)return null;let o=wt(n).some((u)=>R.existsSync(u)),c=[n,...s.dependencies??[]].some((u)=>u.endsWith(".stx")&&R.existsSync(u)&&Os(R.readFileSync(u,"utf8")).some((g)=>/\bserver\b/.test(g.attrs)));if(o||c)return this.cache.delete(e),null;let r=this.getHash(n,s.dependencies??[]);if(s.hash!==r)return this.cache.delete(e),null;return s.html}set(e,n,s,o){let c=this.getHash(n,s);this.cache.set(e,{hash:c,html:o,generatedAt:Date.now(),dependencies:s})}}class mt{cacheDir;constructor(e){this.cacheDir=e}getFilePath(e){let n=e.replace(/[^a-zA-Z0-9]/g,"_")+".json";return w.join(this.cacheDir,"isr",n)}async get(e){let n=this.getFilePath(e);if(!await Bun.file(n).exists())return null;try{return JSON.parse(await Bun.file(n).text())}catch{return null}}async set(e,n){let s=this.getFilePath(e);await R.promises.mkdir(w.dirname(s),{recursive:!0}),await Bun.write(s,JSON.stringify(n))}async invalidate(e){let n=this.getFilePath(e);if(await Bun.file(n).exists())await R.promises.unlink(n)}async invalidatePattern(e){let n=w.join(this.cacheDir,"isr");if(!R.existsSync(n))return;let s=await R.promises.readdir(n);for(let o of s){let c=o.replace(/_/g,"/").replace(".json","");if(e.test(c))await R.promises.unlink(w.join(n,o))}}async needsRevalidation(e){let n=await this.get(e);if(!n)return!0;return Date.now()>n.revalidateAfter}}async function _t(e){let n=[];if(!e.isDynamic)n.push({url:e.pattern,params:{}});else{let s=await ft(e.filePath);if(s.kind==="error")throw Error(`getStaticPaths ${s.phase} failed for ${e.pattern} (${e.filePath}): ${s.error.message}`,{cause:s.error});if(s.kind==="absent")return console.warn(`Warning: Dynamic route ${e.pattern} (${e.filePath}) has no getStaticPaths`),n;let o=s.value;if(o.paths.length===0)return console.info(`getStaticPaths returned no paths for dynamic route ${e.pattern} (${e.filePath})`),n;for(let c of o.paths){let r=e.pattern;for(let[u,g]of Object.entries(c.params))r=r.replace(`:${u}`,g).replace(`:${u}*`,g);n.push({url:r,params:c.params,props:c.props,revalidate:c.revalidate})}}return n}function wt(e){return[e.replace(/\.stx$/,".data.ts"),e.replace(/\.stx$/,".data.js"),e+".data.ts",e+".data.js"]}async function Mt(e){for(let n of wt(e))if(await Bun.file(n).exists())try{let s=await import(n);if(typeof s.default==="function")return await s.default();else if(typeof s.default==="object")return s.default;else if(typeof s.getData==="function")return await s.getData();else{let{default:o,...c}=s;return c}}catch(s){console.error(`Error loading data file ${n}:`,s)}return null}async function Gt(e,n,s){let o=e.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!o)return null;let c=o[1];if(!c.includes("getStaticProps"))return null;try{let r=c.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!r)return null;return await Function("params",`
|
|
4
4
|
return (async function getStaticProps() {
|
|
5
5
|
${r[1]}
|
|
@@ -36,7 +36,7 @@ ${e.map((o)=>{let c=new URL(o.loc,n).href,r=` <url>
|
|
|
36
36
|
${s.join(`
|
|
37
37
|
`)}
|
|
38
38
|
</channel>
|
|
39
|
-
</rss>`}async function Xt(e={}){let n=Date.now();hn();let s=await a(process.cwd()),o=s.build||{},c=await gt({explicit:e.domain||o.domain,stxConfig:s});if(c.source==="fallback"&&(e.sitemap??o.sitemap??!0))console.warn(pt());let r={router:e.router??s?.router??{},pagesDir:e.pagesDir||o.pagesDir||"pages",outputDir:e.outputDir||o.outputDir||"dist",baseUrl:e.baseUrl||o.baseUrl||"/",domain:c.url,revalidate:e.revalidate??o.revalidate??!1,sitemap:e.sitemap??o.sitemap??!0,sitemapExclude:e.sitemapExclude||o.sitemapExclude||[],robots:e.robots??o.robots??!0,rss:e.rss??o.rss??!1,concurrency:e.concurrency||o.concurrency||10,cache:e.cache??o.cache??!0,cacheDir:e.cacheDir||o.cacheDir||l(process.cwd(),"ssg-cache"),contentLoaders:e.contentLoaders||[],hooks:e.hooks||{},minify:e.minify??o.minify??!0,generate404:e.generate404??o.generate404??!0,publicDir:e.publicDir||o.publicDir||"public",trailingSlash:e.trailingSlash??o.trailingSlash??!1,cleanOutput:e.cleanOutput??o.cleanOutput??!0,cacheSalt:e.cacheSalt??"",partialsDir:e.partialsDir||s?.partialsDir||"",componentsDir:e.componentsDir||s?.componentsDir||"",failOnIncludeError:e.failOnIncludeError??!0,failOnServerScriptError:e.failOnServerScriptError??!0,chunkIslands:e.chunkIslands===!0,prefetchIslands:e.prefetchIslands===!0,integrityIslands:e.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,P=0,b={},p={};await r.hooks.onBuildStart?.();try{if(r.cleanOutput&&R.existsSync(r.outputDir))await R.promises.rm(r.outputDir,{recursive:!0});await R.promises.mkdir(r.outputDir,{recursive:!0});let C=r.cacheSalt;if(!C){let{resolveUserCssConfig:d,fingerprintConfig:y}=await import("./chunk-
|
|
39
|
+
</rss>`}async function Xt(e={}){let n=Date.now();hn();let s=await a(process.cwd()),o=s.build||{},c=await gt({explicit:e.domain||o.domain,stxConfig:s});if(c.source==="fallback"&&(e.sitemap??o.sitemap??!0))console.warn(pt());let r={router:e.router??s?.router??{},pagesDir:e.pagesDir||o.pagesDir||"pages",outputDir:e.outputDir||o.outputDir||"dist",baseUrl:e.baseUrl||o.baseUrl||"/",domain:c.url,revalidate:e.revalidate??o.revalidate??!1,sitemap:e.sitemap??o.sitemap??!0,sitemapExclude:e.sitemapExclude||o.sitemapExclude||[],robots:e.robots??o.robots??!0,rss:e.rss??o.rss??!1,concurrency:e.concurrency||o.concurrency||10,cache:e.cache??o.cache??!0,cacheDir:e.cacheDir||o.cacheDir||l(process.cwd(),"ssg-cache"),contentLoaders:e.contentLoaders||[],hooks:e.hooks||{},minify:e.minify??o.minify??!0,generate404:e.generate404??o.generate404??!0,publicDir:e.publicDir||o.publicDir||"public",trailingSlash:e.trailingSlash??o.trailingSlash??!1,cleanOutput:e.cleanOutput??o.cleanOutput??!0,cacheSalt:e.cacheSalt??"",partialsDir:e.partialsDir||s?.partialsDir||"",componentsDir:e.componentsDir||s?.componentsDir||"",failOnIncludeError:e.failOnIncludeError??!0,failOnServerScriptError:e.failOnServerScriptError??!0,chunkIslands:e.chunkIslands===!0,prefetchIslands:e.prefetchIslands===!0,integrityIslands:e.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,P=0,b={},p={};await r.hooks.onBuildStart?.();try{if(r.cleanOutput&&R.existsSync(r.outputDir))await R.promises.rm(r.outputDir,{recursive:!0});await R.promises.mkdir(r.outputDir,{recursive:!0});let C=r.cacheSalt;if(!C){let{resolveUserCssConfig:d,fingerprintConfig:y}=await import("./chunk-5md9ymx3.js");try{C=y(await d(process.cwd()))}catch{}}let{prepareImageDelivery:v}=await import("./chunk-8mc1kr6z.js"),E=await v(r.publicDir,r.outputDir);if(E.count>0)console.log(`Optimized ${E.count} image(s) for responsive delivery`),C=[C,E.fingerprint].filter(Boolean).join(":");let O=new ht(r.cacheDir,C);if(r.cache)await O.load();try{let{generateCss:d}=await import("./chunk-5md9ymx3.js");await d('<div class="bg-black"></div>')}catch{}Lt();let St=s?.routeMiddleware?.dir||"middleware";await Bt(process.cwd(),St);let K=jt();if(K.length>0)console.log(`Loaded ${K.length} middleware: ${K.join(", ")}`);let xt=s?.routeMiddleware?.global||[];$c(s?.layoutsDir,l(process.cwd()));let Q=re(".",{pagesDir:r.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${Q.length} routes`);let U=[];for(let d of Q)try{let y=await _t(d);for(let D of y)U.push({route:d,url:D.url,params:D.params,props:D.props,revalidate:D.revalidate??r.revalidate})}catch(y){let D=y instanceof Error?y:Error(String(y));u.failedCount++,u.errors.push({route:d.pattern,error:D}),await r.hooks.onError?.(D,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,D)}u.totalPages=U.length+u.failedCount,console.log(`Generating ${U.length} pages...`);let M=[],tt=[];for(let d=0;d<U.length;d+=r.concurrency)tt.push(U.slice(d,d+r.concurrency));for(let d of tt)await Promise.all(d.map(async(y)=>{let{route:D,url:m,params:G,props:bt,revalidate:it}=y;try{await r.hooks.onPageStart?.(m);let H=await Bun.file(D.filePath).text(),A=Qt(H),vt=A?.middleware?Array.isArray(A.middleware)?A.middleware:[A.middleware]:[],st=[...xt,...vt];if(st.length>0){let j=Ft(m,G,A||{}),z=zt(j,null,void 0,{isServer:!0}),F=await Ht(st,z);if(F.redirect){let I=typeof F.redirect==="string"?F.redirect:F.redirect.path||F.redirect,W=te(String(I),m),L=ee(m,r);await R.promises.mkdir(w.dirname(L),{recursive:!0}),await Bun.write(L,W),u.successCount++,u.pages.push({route:m,outputPath:L,size:Buffer.byteLength(W),cached:!1}),M.push({loc:m,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${m} \u2192 redirect to ${I}`);return}if(F.abort){let I=typeof F.abort==="string"?F.abort:F.abort?.error?.message||"aborted";console.warn(` \u21B3 ${m} \u2014 middleware aborted: ${I}`);return}}let at=A?.validate;if(typeof at==="function")try{if(!await at({params:G})){console.warn(`Validation failed for ${m}, skipping...`);return}}catch{}let B=null,ot=!1;if(r.cache){if(B=O.get(m,D.filePath),B)ot=!0,u.cachedCount++}if(!B){let j=await yt(D,G,bt,r,s);if(B=j.html,r.failOnIncludeError&&j.includeFailures.length>0)throw Error(`${j.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
40
40
|
${j.includeFailures.join(`
|
|
41
41
|
`)}
|
|
42
42
|
Set ssg.failOnIncludeError to false to build anyway.`);if(r.failOnServerScriptError&&j.serverScriptFailures.length>0)throw Error(`${j.serverScriptFailures.length} <script server> block(s) failed, so this page would have shipped with the content they produce missing:
|
package/dist/strip-literals.js
CHANGED
|
@@ -130,39 +130,52 @@ export function stripBindingLiterals(code) {
|
|
|
130
130
|
return stripLiterals(code, !0);
|
|
131
131
|
}
|
|
132
132
|
function stripLiterals(code, bindingBoundaries) {
|
|
133
|
-
let out = "", i = 0
|
|
133
|
+
let out = "", i = 0;
|
|
134
|
+
const tokens = /[\w$]+|\s+|[^\w$\s]/g;
|
|
135
|
+
let lastSig = "", lastWord = "";
|
|
134
136
|
while (i < code.length) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
tokens.lastIndex = i;
|
|
138
|
+
const token = tokens.exec(code)[0];
|
|
139
|
+
if (token.length > 1 || /[\w$\s]/.test(token)) {
|
|
140
|
+
out += token;
|
|
141
|
+
i += token.length;
|
|
142
|
+
if (!/\s/.test(token[0])) {
|
|
143
|
+
lastWord = /[\w$]/.test(lastSig) ? lastWord + token : token;
|
|
144
|
+
lastSig = token[token.length - 1];
|
|
145
|
+
}
|
|
140
146
|
continue;
|
|
141
147
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
const ch = token;
|
|
149
|
+
if (ch === "/" && code[i + 1] === "/") {
|
|
150
|
+
const end = code.indexOf(`
|
|
151
|
+
`, i), next = end === -1 ? code.length : end;
|
|
152
|
+
out += " ".repeat(next - i);
|
|
153
|
+
i = next;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (ch === "/" && code[i + 1] === "*") {
|
|
157
|
+
const end = code.indexOf("*/", i), next = end === -1 ? code.length : end;
|
|
158
|
+
out += blankLiteral(code.slice(i, next));
|
|
159
|
+
i = next;
|
|
147
160
|
out += " ";
|
|
148
161
|
i += 2;
|
|
149
162
|
continue;
|
|
150
163
|
}
|
|
151
|
-
const ch = code[i];
|
|
152
164
|
if (ch === '"' || ch === "'") {
|
|
153
165
|
const quote = ch;
|
|
154
166
|
out += " ";
|
|
155
167
|
i++;
|
|
168
|
+
const boundary = quote === '"' ? /["\\]/g : /['\\]/g;
|
|
156
169
|
while (i < code.length && code[i] !== quote) {
|
|
157
170
|
if (code[i] === "\\") {
|
|
158
171
|
out += " ";
|
|
159
172
|
i += 2;
|
|
160
173
|
continue;
|
|
161
174
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
i
|
|
175
|
+
boundary.lastIndex = i;
|
|
176
|
+
const next = boundary.exec(code)?.index ?? code.length;
|
|
177
|
+
out += blankLiteral(code.slice(i, next));
|
|
178
|
+
i = next;
|
|
166
179
|
}
|
|
167
180
|
out += bindingBoundaries ? "$" : " ";
|
|
168
181
|
i++;
|
|
@@ -183,6 +196,7 @@ function stripLiterals(code, bindingBoundaries) {
|
|
|
183
196
|
if (ch === "`") {
|
|
184
197
|
out += bindingBoundaries ? "(" : " ";
|
|
185
198
|
i++;
|
|
199
|
+
const boundary = /[\\`$]/g;
|
|
186
200
|
while (i < code.length && code[i] !== "`") {
|
|
187
201
|
if (code[i] === "\\") {
|
|
188
202
|
out += " ";
|
|
@@ -198,10 +212,11 @@ function stripLiterals(code, bindingBoundaries) {
|
|
|
198
212
|
i = bodyEnd + 1;
|
|
199
213
|
continue;
|
|
200
214
|
}
|
|
201
|
-
|
|
202
|
-
` ? `
|
|
203
|
-
` : " ";
|
|
215
|
+
const start = i;
|
|
204
216
|
i++;
|
|
217
|
+
boundary.lastIndex = i;
|
|
218
|
+
i = boundary.exec(code)?.index ?? code.length;
|
|
219
|
+
out += blankLiteral(code.slice(start, i));
|
|
205
220
|
}
|
|
206
221
|
out += bindingBoundaries ? ")" : " ";
|
|
207
222
|
i++;
|
|
@@ -211,16 +226,15 @@ function stripLiterals(code, bindingBoundaries) {
|
|
|
211
226
|
}
|
|
212
227
|
out += ch;
|
|
213
228
|
i++;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
lastSig = ch;
|
|
217
|
-
} else if (!/\s/.test(ch)) {
|
|
218
|
-
lastSig = ch;
|
|
219
|
-
lastWord = "";
|
|
220
|
-
}
|
|
229
|
+
lastSig = ch;
|
|
230
|
+
lastWord = "";
|
|
221
231
|
}
|
|
222
232
|
return out;
|
|
223
233
|
}
|
|
234
|
+
function blankLiteral(value) {
|
|
235
|
+
return value.includes(`
|
|
236
|
+
`) ? value.replace(/[^\n]/g, " ") : " ".repeat(value.length);
|
|
237
|
+
}
|
|
224
238
|
export function bracketDepths(stripped) {
|
|
225
239
|
const depths = new Uint16Array(stripped.length);
|
|
226
240
|
let depth = 0, balanced = !0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.913",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@stacksjs/clapp": "^0.2.17",
|
|
130
|
-
"@stacksjs/desktop": "0.2.
|
|
131
|
-
"@stacksjs/sanitizer": "0.2.
|
|
130
|
+
"@stacksjs/desktop": "0.2.913",
|
|
131
|
+
"@stacksjs/sanitizer": "0.2.913",
|
|
132
132
|
"@stacksjs/ts-css": "^0.3.21",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
134
|
"@types/dom-speech-recognition": "^0.0.12",
|
|
135
|
-
"bun-plugin-stx": "0.2.
|
|
135
|
+
"bun-plugin-stx": "0.2.913",
|
|
136
136
|
"bunfig": "^0.15.21",
|
|
137
|
-
"stx-router": "0.2.
|
|
137
|
+
"stx-router": "0.2.913",
|
|
138
138
|
"ts-broadcasting": "^0.0.13",
|
|
139
139
|
"ts-images": "^0.2.22",
|
|
140
140
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-28f696hb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{uy,fg,lt,Dc,dy,Ts,$s,Rs}from"./chunk-ff03ga49.js";import"./chunk-wsg1evmc.js";import"./chunk-759jwj0e.js";import"./chunk-9bexzgws.js";import"./chunk-v0yay1kw.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{dy as clearOnceStore,Dc as onceStore,lt as partialsCache,Ts as processIncludes,$s as processStackPushDirectives,Rs as processStackReplacements,uy as resetUnscopedSignalWarnings,fg as topLevelElements};
|
package/dist/chunk-59nhx5mp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{br,i}from"./chunk-vys2c06e.js";import"./chunk-a5920t9d.js";import"./chunk-ff03ga49.js";import"./chunk-fs43342z.js";import"./chunk-wsg1evmc.js";import"./chunk-759jwj0e.js";import"./chunk-s1sm41pe.js";import"./chunk-9bexzgws.js";import"./chunk-zqvkbj0k.js";import{Pe}from"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-ve0sbkrt.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import{Ke,lo,uo}from"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{br as buildModulesTag,Pe as injectRouterScript,i as processDirectives,lo as processJsonDirective,uo as processOnceDirective,Ke as validateClientScript};
|
package/dist/chunk-68qw8ak4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{mh,Ka,Uu,hh,yh,bh,wh,vh,Vu,Wu,xh,Sh,kh,_h}from"./chunk-ypy1k5t0.js";import"./chunk-vys2c06e.js";import"./chunk-a5920t9d.js";import"./chunk-ff03ga49.js";import"./chunk-fs43342z.js";import"./chunk-wsg1evmc.js";import"./chunk-759jwj0e.js";import"./chunk-s1sm41pe.js";import"./chunk-9bexzgws.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-ve0sbkrt.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Uu as SUSPENSE_RESOLVER_RUNTIME,Ka as buildSuspenseResolveScript,vh as createStreamRenderer,bh as extractStreamBoundaries,_h as generateHydrationRuntime,Wu as islandDirective,Sh as processSectionDirectives,yh as processStreamDirectives,xh as registerStreamingDirectives,hh as renderStreamingPage,mh as streamTemplate,wh as streamTemplateSimple,kh as streamToResponse,Vu as streamingSuspenseDirective};
|
package/dist/chunk-759jwj0e.js
DELETED
package/dist/chunk-83ykx150.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tm}from"./chunk-9ejbveb6.js";import"./chunk-vys2c06e.js";import"./chunk-a5920t9d.js";import"./chunk-ff03ga49.js";import"./chunk-fs43342z.js";import"./chunk-wsg1evmc.js";import"./chunk-759jwj0e.js";import"./chunk-s1sm41pe.js";import"./chunk-9bexzgws.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-ve0sbkrt.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Tm as startInteractive};
|
package/dist/chunk-a5990vzz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bh,Ho,Fh,zh,Hh,Uh}from"./chunk-vhk5m98x.js";import"./chunk-rpyhbyt7.js";import"./chunk-vr9dbmxh.js";import"./chunk-cwcmmgvz.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Uh as clearStoreCache,Bh as getStoreScript,Hh as getStoreScriptFor,zh as pageStoresAll,Ho as storesRead,Fh as storesReadInFiles};
|
package/dist/chunk-ahf9j8wb.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function m(e,s){let i=e[s],n=s+1;while(n<e.length){if(e[n]==="\\"){n+=2;continue}if(e[n]===i)return n+1;n++}return e.length}function c(e,s){let i=s+1;while(i<e.length){if(e[i]==="\\"){i+=2;continue}if(e[i]==="`")return i+1;if(e[i]==="$"&&e[i+1]==="{"){if(i=Hl(e,i+2),i<e.length)i++;continue}i++}return e.length}function Hl(e,s){let i=1,n=s,l="{",r="";while(n<e.length){let f=e[n];if(f==="\\"){n+=2;continue}if(f==='"'||f==="'"){n=m(e,n),l=a,r="";continue}if(f==="`"){n=c(e,n),l=a,r="";continue}if(f==="/"&&e[n+1]==="/"){while(n<e.length&&e[n]!==`
|
|
3
|
-
`)n++;continue}if(f==="/"&&e[n+1]==="*"){n+=2;while(n<e.length&&e.slice(n,n+2)!=="*/")n++;n+=2;continue}if(f==="/"&&p(l,r)){let u=b(e,n);if(u!==-1){n=u,l=a,r="";continue}}if(f==="{")i++;else if(f==="}"){if(i--,i===0)return n}if(/[\w$]/.test(f))r=/[\w$]/.test(l)?r+f:f,l=f;else if(!/\s/.test(f))l=f,r="";n++}return e.length}var E=new Set(["return","typeof","instanceof","in","of","new","delete","void","throw","case","do","else","yield","await"]);function p(e,s){if(s)return E.has(s);return!(e===")"||e==="]"||e===a)}var a="\x00";function b(e,s){let i=s+1,n=!1;while(i<e.length){let l=e[i];if(l===`
|
|
4
|
-
`)return-1;if(l==="\\"){i+=2;continue}if(l==="[")n=!0;else if(l==="]")n=!1;else if(l==="/"&&!n){i++;while(i<e.length&&/[a-z]/i.test(e[i]))i++;return i}i++}return-1}function t(e){return o(e,!1)}function Un(e){return o(e,!0)}function o(e,s){let i="",n=0,l="",r="";while(n<e.length){let f=e.slice(n,n+2);if(f==="//"){while(n<e.length&&e[n]!==`
|
|
5
|
-
`)i+=" ",n++;continue}if(f==="/*"){while(n<e.length&&e.slice(n,n+2)!=="*/")i+=e[n]===`
|
|
6
|
-
`?`
|
|
7
|
-
`:" ",n++;i+=" ",n+=2;continue}let u=e[n];if(u==='"'||u==="'"){let g=u;i+=" ",n++;while(n<e.length&&e[n]!==g){if(e[n]==="\\"){i+=" ",n+=2;continue}i+=e[n]===`
|
|
8
|
-
`?`
|
|
9
|
-
`:" ",n++}i+=s?"$":" ",n++,l=a,r="";continue}if(u==="/"&&p(l,r)){let g=b(e,n);if(g!==-1){i+=`/${" ".repeat(g-n-2)}/`,n=g,l=a,r="";continue}}if(u==="`"){i+=s?"(":" ",n++;while(n<e.length&&e[n]!=="`"){if(e[n]==="\\"){i+=" ",n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){let g=n+2,w=Hl(e,g);if(i+=s?" {":" ",i+=o(e.slice(g,w),s),w<e.length)i+=s?"}":" ";n=w+1;continue}i+=e[n]===`
|
|
10
|
-
`?`
|
|
11
|
-
`:" ",n++}i+=s?")":" ",n++,l=a,r="";continue}if(i+=u,n++,/[\w$]/.test(u))r=/[\w$]/.test(l)?r+u:u,l=u;else if(!/\s/.test(u))l=u,r=""}return i}function h(e){let s=new Uint16Array(e.length),i=0,n=!0;for(let l=0;l<e.length;l++){let r=e[l];if(r===")"||r==="]"||r==="}")if(i===0)n=!1;else i--;if(s[l]=i,r==="("||r==="["||r==="{")i++}return{depths:s,balanced:n&&i===0}}
|
|
12
|
-
export{Hl,t,Un,h};
|
package/dist/chunk-ardnfxn5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$m}from"./chunk-jkenezzp.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{$m as buildApp};
|
package/dist/chunk-bjbzpy42.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Uo,Vh,Wh}from"./chunk-wnnj29pg.js";import"./chunk-rpyhbyt7.js";import"./chunk-vr9dbmxh.js";import"./chunk-cwcmmgvz.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Wh as clearComposableCache,Vh as getComposableScript,Uo as listComposableModules};
|
package/dist/chunk-dhk7355h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lm}from"./chunk-jcmhpbh4.js";import"./chunk-btetjy8n.js";import"./chunk-0mxkw6m6.js";import"./chunk-c8qp8b5z.js";import"./chunk-vr9dbmxh.js";import"./chunk-vys2c06e.js";import"./chunk-a5920t9d.js";import"./chunk-ff03ga49.js";import"./chunk-fs43342z.js";import"./chunk-wsg1evmc.js";import"./chunk-759jwj0e.js";import"./chunk-s1sm41pe.js";import"./chunk-9bexzgws.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-ve0sbkrt.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Lm as buildForProduction};
|
package/dist/chunk-fwebja2k.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rm}from"./chunk-wvpk866c.js";import"./chunk-btetjy8n.js";import"./chunk-c8qp8b5z.js";import"./chunk-vr9dbmxh.js";import"./chunk-759jwj0e.js";import"./chunk-pdvssk6k.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Rm as startProductionServer};
|
package/dist/chunk-prekacv2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ec,tc,nc,rc,ry}from"./chunk-9kaxt6tw.js";import"./chunk-wbsbrm6n.js";import"./chunk-q3smaxw7.js";import"./chunk-0vyytd9v.js";import"./chunk-vys2c06e.js";import"./chunk-a5920t9d.js";import"./chunk-ff03ga49.js";import"./chunk-fs43342z.js";import"./chunk-wsg1evmc.js";import"./chunk-759jwj0e.js";import"./chunk-s1sm41pe.js";import"./chunk-9bexzgws.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-ve0sbkrt.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{ec as buildNative,ry as default,tc as findCraftBinary,rc as getAvailableFormats,nc as getAvailableTargets};
|
package/dist/chunk-rssjx1mg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ma,Om,jo,Nm,hu,yu,Mm,Dm}from"./chunk-r3eq7mza.js";import"./chunk-wnnj29pg.js";import"./chunk-rpyhbyt7.js";import"./chunk-vr9dbmxh.js";import"./chunk-cwcmmgvz.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-13awnyq0.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import{_e,so}from"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Ma as buildScriptVirtualFile,Om as buildVirtualSource,_e as extractScriptBlocks,so as extractTemplateExpressions,hu as findRuntimeTypeDeclarations,yu as findStxModuleDeclarations,Dm as formatTypecheckDiagnostics,Nm as sourcePathFor,Mm as typecheckStxFiles,jo as virtualPathFor};
|
package/dist/chunk-rtrhv7nd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Is,mg,ui,hg}from"./chunk-s1sm41pe.js";import"./chunk-9bexzgws.js";import"./chunk-zqvkbj0k.js";import"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import{Wt}from"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{hg as declareBareLoopHead,Wt as parseLoopBinding,mg as processLoops,ui as processLoopsAsync,Is as reportDeferredLoopWarnings};
|
package/dist/chunk-vavq2ak3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ou,iu}from"./chunk-jbbgye38.js";import"./chunk-72pbhpq8.js";import"./chunk-9ejbveb6.js";import"./chunk-jkenezzp.js";import"./chunk-wvpk866c.js";import"./chunk-3m457a9q.js";import"./chunk-ta7cwykn.js";import"./chunk-r3eq7mza.js";import"./chunk-jcmhpbh4.js";import"./chunk-btetjy8n.js";import"./chunk-6yketqa1.js";import"./chunk-9atdw0p8.js";import"./chunk-5jn2qyv7.js";import"./chunk-dqwc5b8m.js";import"./chunk-gyv2bsmn.js";import"./chunk-2m4d8jkv.js";import"./chunk-gg31th5s.js";import"./chunk-1ezcxbpg.js";import"./chunk-jttzrv0w.js";import"./chunk-ekyx5z50.js";import"./chunk-zcgks568.js";import"./chunk-ypy1k5t0.js";import"./chunk-nan0ysys.js";import"./chunk-zk1c6tg7.js";import"./chunk-jhegz7az.js";import"./chunk-pc89t52s.js";import"./chunk-vhk5m98x.js";import"./chunk-wnnj29pg.js";import"./chunk-0mxkw6m6.js";import"./chunk-q3smaxw7.js";import"./chunk-0vyytd9v.js";import"./chunk-8n42epb6.js";import{gn}from"./chunk-c8qp8b5z.js";import{og}from"./chunk-rpyhbyt7.js";import"./chunk-vr9dbmxh.js";import"./chunk-cwcmmgvz.js";import{Ue,i}from"./chunk-vys2c06e.js";import"./chunk-a5920t9d.js";import"./chunk-ff03ga49.js";import"./chunk-fs43342z.js";import"./chunk-wsg1evmc.js";import"./chunk-759jwj0e.js";import"./chunk-s1sm41pe.js";import"./chunk-9bexzgws.js";import"./chunk-zqvkbj0k.js";import{Pe}from"./chunk-pdvssk6k.js";import"./chunk-v0yay1kw.js";import{Er,Tr}from"./chunk-ve0sbkrt.js";import"./chunk-13awnyq0.js";import{zs,q,a}from"./chunk-03sqt4jx.js";import"./chunk-zytwcfbt.js";import"./chunk-razwegar.js";import"./chunk-mpfm5ctr.js";import"./chunk-eca022er.js";import"./chunk-9gptdyqq.js";import{B,y,Je}from"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";import{la}from"./chunk-8tfpv6zf.js";import"./chunk-fycxc75p.js";import"./chunk-d4hnj3ct.js";export{zs as buildWebComponents,Tr as cacheTemplate,Er as checkCache,gn as classifyAllScripts,ou as createMiddleware,iu as createRoute,q as defaultConfig,y as extractVariables,B as findSfcTemplateBlock,Pe as injectRouterScript,la as insertBeforeBodyClose,a as loadStxConfig,Je as processClientScript,i as processDirectives,Ue as readMarkdownFile,og as withinBundlerCallback};
|
package/dist/chunk-vktbykbf.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cg,Nc,ay,Mc,lg,ug,Sn,xr,cy,dg,pg,ly,S}from"./chunk-a5920t9d.js";import"./chunk-ve0sbkrt.js";import"./chunk-cxzy7kxg.js";import"./chunk-d2rwg24x.js";import"./chunk-w98yt4d4.js";import"./chunk-c08jvjqt.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0jdz31q1.js";import"./chunk-4b110x6r.js";export{Sn as buildCss,dg as extractClassNames,ug as fingerprintConfig,pg as generateCss,cy as getCachedCSS,cg as getCssServeAsset,S as injectCss,Nc as loadCssEngine,Mc as loadCssEngineConfig,xr as rebuildCss,ay as resetCssCache,lg as resolveUserCssConfig,ly as withLinkedModuleBundles};
|