@stacksjs/stx 0.2.237 → 0.2.238
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-3j404s9z.js → chunk-0b88ky9d.js} +1 -1
- package/dist/{chunk-qpbywzvg.js → chunk-0e1pt5my.js} +2 -2
- package/dist/{chunk-haeynd7x.js → chunk-11mxy34t.js} +2 -2
- package/dist/{chunk-g5bhgv8m.js → chunk-1jcyfxq5.js} +1 -1
- package/dist/{chunk-6qhezn34.js → chunk-1xgva25g.js} +1 -1
- package/dist/{chunk-nebfw3pc.js → chunk-2k9xsqnx.js} +1 -1
- package/dist/{chunk-85frtq6r.js → chunk-38nq2ymv.js} +1 -1
- package/dist/chunk-412apa52.js +2 -0
- package/dist/{chunk-fgfb9fs0.js → chunk-4s11yb67.js} +1 -1
- package/dist/{chunk-bjs711qv.js → chunk-4tybm7fx.js} +1 -1
- package/dist/chunk-5a1b5kjt.js +3 -0
- package/dist/{chunk-r23ycexh.js → chunk-5e2j8d7r.js} +1 -1
- package/dist/{chunk-x3tvmc58.js → chunk-5q44vwmg.js} +1 -1
- package/dist/{chunk-c5411vve.js → chunk-6x3jqwxp.js} +1 -1
- package/dist/{chunk-vgf3zdpb.js → chunk-7hfjv9ej.js} +1 -1
- package/dist/{chunk-f3r3x3bh.js → chunk-7qgt3b5t.js} +1 -1
- package/dist/chunk-7rfx2s7c.js +2 -0
- package/dist/{chunk-3sy1cf6v.js → chunk-7y7dp1ba.js} +1 -1
- package/dist/{chunk-c8sh51p7.js → chunk-89nbkhxk.js} +1 -1
- package/dist/{chunk-3zdkcdvf.js → chunk-8k7evyhh.js} +1 -1
- package/dist/{chunk-2tew0h6f.js → chunk-8p8qa1s9.js} +1 -1
- package/dist/{chunk-qpt60465.js → chunk-8t7w323q.js} +1 -1
- package/dist/{chunk-qsdv9c1c.js → chunk-9g2rhkx8.js} +1 -1
- package/dist/{chunk-f48gnx24.js → chunk-9hcw5zsr.js} +1 -1
- package/dist/{chunk-1x91733n.js → chunk-9scfmhph.js} +1 -1
- package/dist/chunk-a0aqpzm6.js +2 -0
- package/dist/{chunk-ae1pb4a7.js → chunk-a0zaf8r9.js} +1 -1
- package/dist/{chunk-wx8pg3dw.js → chunk-a6m63ra1.js} +1 -1
- package/dist/{chunk-nb7rbydx.js → chunk-acwjyext.js} +1 -1
- package/dist/{chunk-q7e9d2m9.js → chunk-bskzz385.js} +1 -1
- package/dist/{chunk-jqefbg40.js → chunk-cdb8a0tx.js} +1 -1
- package/dist/chunk-cff5gpvr.js +2 -0
- package/dist/{chunk-akm700yc.js → chunk-cjhpwef8.js} +1 -1
- package/dist/{chunk-81zcv66r.js → chunk-cs9cynxh.js} +1 -1
- package/dist/{chunk-xkeyq622.js → chunk-d1pp19wx.js} +1 -1
- package/dist/chunk-dcc04y1t.js +2 -0
- package/dist/{chunk-kq3erhfz.js → chunk-dzr5w33y.js} +10 -10
- package/dist/chunk-e4gycrtb.js +2 -0
- package/dist/chunk-f7se90b8.js +2 -0
- package/dist/{chunk-ba75f8qh.js → chunk-fee1k8c5.js} +1 -1
- package/dist/{chunk-ttmtwp1x.js → chunk-frh6b2q7.js} +1 -1
- package/dist/{chunk-8m7fhky6.js → chunk-frv8qh41.js} +1 -1
- package/dist/{chunk-mgexc8xe.js → chunk-g6bdbdvj.js} +1 -1
- package/dist/{chunk-savq2gjy.js → chunk-g98vjcbj.js} +1 -1
- package/dist/chunk-gcn830km.js +2 -0
- package/dist/{chunk-fwrhkhhz.js → chunk-gg2epwyx.js} +1 -1
- package/dist/{chunk-geztp3y3.js → chunk-ggsxz07y.js} +1 -1
- package/dist/chunk-h451yyp6.js +2 -0
- package/dist/chunk-hd1hr94w.js +2 -0
- package/dist/chunk-hfc4afre.js +2 -0
- package/dist/{chunk-ypajs9wd.js → chunk-hv6hat6p.js} +1 -1
- package/dist/{chunk-pwfqgvyf.js → chunk-hx0zj6c9.js} +1 -1
- package/dist/{chunk-1nztpv0g.js → chunk-j2pmv4jw.js} +1 -1
- package/dist/{chunk-yx8vftp0.js → chunk-j4ze77e0.js} +1 -1
- package/dist/chunk-j5rmhyqr.js +2 -0
- package/dist/chunk-je7cvg5j.js +2 -0
- package/dist/{chunk-1z4dvqqv.js → chunk-jjehgxtc.js} +1 -1
- package/dist/{chunk-7b9tak12.js → chunk-jqnckvbk.js} +1 -1
- package/dist/{chunk-2w64hysh.js → chunk-k46js7bz.js} +1 -1
- package/dist/{chunk-17kxd17m.js → chunk-m2v35nze.js} +1 -1
- package/dist/{chunk-gtek2yzx.js → chunk-mbwe1z12.js} +1 -1
- package/dist/{chunk-gjapb8k6.js → chunk-mccyah24.js} +1 -1
- package/dist/chunk-mdk3c8n2.js +2 -0
- package/dist/{chunk-74r77tz1.js → chunk-msxcd1kp.js} +1 -1
- package/dist/{chunk-35ezbs7m.js → chunk-n0kbk2ge.js} +1 -1
- package/dist/{chunk-7t4yc43k.js → chunk-n27c7jvr.js} +1 -1
- package/dist/{chunk-fexeqbkk.js → chunk-n7w8kgfw.js} +1 -1
- package/dist/{chunk-rcv6w99y.js → chunk-nnd1hqht.js} +2 -2
- package/dist/{chunk-fj497e24.js → chunk-nrzx6d77.js} +1 -1
- package/dist/{chunk-h9e1mhhk.js → chunk-p4a35r71.js} +1 -1
- package/dist/{chunk-ksrrk187.js → chunk-p56hfz00.js} +1 -1
- package/dist/{chunk-am6ee3yg.js → chunk-pz3n5qde.js} +1 -1
- package/dist/{chunk-vbrbg7s2.js → chunk-qa8qmer5.js} +1 -1
- package/dist/{chunk-znjrab9a.js → chunk-qygqf2zb.js} +1 -1
- package/dist/{chunk-7kpfk426.js → chunk-r2kag877.js} +2 -2
- package/dist/{chunk-6k94kwfr.js → chunk-rkhfhfas.js} +1 -1
- package/dist/{chunk-yzceabbm.js → chunk-s2smc4wv.js} +1 -1
- package/dist/{chunk-q7pafzst.js → chunk-s8bx0wv7.js} +1 -1
- package/dist/{chunk-eb9caxff.js → chunk-sbpzt8yd.js} +1 -1
- package/dist/{chunk-cnayba7d.js → chunk-spnkgsft.js} +21 -21
- package/dist/chunk-ssbddr82.js +2 -0
- package/dist/{chunk-hjdqejae.js → chunk-v4t1kxm7.js} +1 -1
- package/dist/{chunk-ts9swsgf.js → chunk-v65nfy32.js} +1 -1
- package/dist/{chunk-z9tj6jq7.js → chunk-vtfzc29r.js} +1 -1
- package/dist/{chunk-www2w0mc.js → chunk-w56erqz5.js} +1 -1
- package/dist/{chunk-v80629x2.js → chunk-w9yfvb4d.js} +1 -1
- package/dist/chunk-wc5385mg.js +2 -0
- package/dist/{chunk-hh6yxbyv.js → chunk-wdwf3wzg.js} +1 -1
- package/dist/{chunk-tyeb73qy.js → chunk-x21s75kv.js} +1 -1
- package/dist/{chunk-8srw2ck7.js → chunk-x58dcsjw.js} +1 -1
- package/dist/chunk-xrx24ndt.js +2 -0
- package/dist/{chunk-kp0g4ckk.js → chunk-y805f58c.js} +1 -1
- package/dist/{chunk-jd90twtr.js → chunk-yf04htgs.js} +1 -1
- package/dist/{chunk-te108yc3.js → chunk-z0y4gcsp.js} +1 -1
- package/dist/chunk-z54ans51.js +2 -0
- package/dist/cli.js +14 -14
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1 -0
- package/dist/pwa.js +2 -2
- package/dist/ssg.js +2 -2
- package/dist/visual-testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-0e4xfaxn.js +0 -2
- package/dist/chunk-3w2k2ma8.js +0 -2
- package/dist/chunk-4regf51y.js +0 -2
- package/dist/chunk-67az313z.js +0 -2
- package/dist/chunk-9sg8p36m.js +0 -2
- package/dist/chunk-c0hd0jtr.js +0 -2
- package/dist/chunk-ccbgys65.js +0 -2
- package/dist/chunk-ddqzxbkr.js +0 -2
- package/dist/chunk-dhcdsfga.js +0 -2
- package/dist/chunk-e4ta7mkk.js +0 -2
- package/dist/chunk-fsr7j01j.js +0 -2
- package/dist/chunk-js0r6bc9.js +0 -2
- package/dist/chunk-pwn4hxjb.js +0 -2
- package/dist/chunk-qh9bw4w4.js +0 -2
- package/dist/chunk-r3vb8c9k.js +0 -2
- package/dist/chunk-s9669ak6.js +0 -2
- package/dist/chunk-t4e1wqa0.js +0 -2
- package/dist/chunk-wmwjbk2g.js +0 -2
- package/dist/chunk-xaqjtned.js +0 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{jg as a}from"./chunk-cdb8a0tx.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as buildApp};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{mi as a,ni as b,oi as c,pi as d,qi as e}from"./chunk-ssfhndm6.js";import"./chunk-
|
|
2
|
+
import{mi as a,ni as b,oi as c,pi as d,qi as e}from"./chunk-ssfhndm6.js";import"./chunk-j4ze77e0.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-j4ze77e0.js";import v from"fs";import H from"path";import{gzipSync as z}from"zlib";import{createHash as g}from"crypto";var D={".js":"js",".mjs":"js",".cjs":"js",".ts":"js",".jsx":"js",".tsx":"js",".css":"css",".scss":"css",".sass":"css",".less":"css",".html":"html",".htm":"html",".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"},b=[/node_modules/,/vendor/,/bower_components/,/\.min\./],B=[/index\.(js|ts|html)$/,/main\.(js|ts)$/,/app\.(js|ts)$/,/entry\.(js|ts)$/];async function L(X,Z={}){let{includeSourceMaps:Q=!1,parseImports:$=!0,detectDuplicates:U=!0,topModulesCount:K=20}=Z;if(!v.existsSync(X))throw Error(`Build directory not found: ${X}`);if(!v.statSync(X).isDirectory())throw Error(`Not a directory: ${X}`);let q=await k(X,Q),J=[],F=[];for(let A of q)try{let O=await f(A,X,$);J.push(O)}catch(O){F.push(`Failed to process ${A}: ${O}`)}let Y=c(J,X),V=J.reduce((A,O)=>A+O.size,0),_=J.reduce((A,O)=>A+O.gzipSize,0),w=m(J),G=U?p(J):[],C=[...J].sort((A,O)=>O.size-A.size).slice(0,K);return{timestamp:Date.now(),buildDir:H.resolve(X),chunks:Y,totalSize:V,totalGzipSize:_,moduleCount:J.length,duplicates:G,byType:w,largestModules:C,warnings:F}}async function k(X,Z){let Q=[];async function $(U){let K=await v.promises.readdir(U,{withFileTypes:!0});for(let j of K){let q=H.join(U,j.name);if(j.isDirectory()){if(!j.name.startsWith(".")&&j.name!=="node_modules")await $(q)}else if(j.isFile()){if(!Z&&j.name.endsWith(".map"))continue;Q.push(q)}}}return await $(X),Q}async function f(X,Z,Q){let $=await v.promises.readFile(X),U=H.relative(Z,X),K=H.extname(X).toLowerCase(),j=$.length,q=y($),J=h($,K),F=g("md5").update($).digest("hex").slice(0,8),Y=D[K]||"other",V=[];if(Q&&Y==="js")V.push(...d($.toString("utf-8")));return{id:U,path:U,size:j,gzipSize:q,parsedSize:J,extension:K,type:Y,imports:V,importedBy:[],hash:F}}function y(X){try{let Z=z(X,{level:9}).length;return Math.min(Z,X.length)}catch{return X.length}}function h(X,Z){if(Z.includes(".min.")||X.length<1000)return X.length;let $=D[Z];if($==="js")return Math.round(X.length*0.6);if($==="css")return Math.round(X.length*0.7);return X.length}function d(X){let Z=[],Q=/import\s+(?:[\w*{}\s,]+\s+from\s+)?['"]([^'"]+)['"]/g,$;while(($=Q.exec(X))!==null)Z.push($[1]);let U=/import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=U.exec(X))!==null)Z.push($[1]);let K=/require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=K.exec(X))!==null)Z.push($[1]);return[...new Set(Z)]}function c(X,Z){let Q=new Map;for(let U of X){let K=U.path.split(H.sep),j;if(K.length===1)j=H.basename(U.path,U.extension);else j=K[0];let q=Q.get(j)||[];q.push(U),Q.set(j,q)}let $=[];for(let[U,K]of Q){let j=K.reduce((Y,V)=>Y+V.size,0),q=K.reduce((Y,V)=>Y+V.gzipSize,0),J=K.some((Y)=>B.some((V)=>V.test(Y.path))),F=K.some((Y)=>b.some((V)=>V.test(Y.path)));$.push({name:U,files:K.map((Y)=>Y.path),modules:K,size:j,gzipSize:q,isEntry:J,isVendor:F})}return $.sort((U,K)=>K.size-U.size)}function m(X){let Z={js:{count:0,size:0,gzipSize:0},css:{count:0,size:0,gzipSize:0},html:{count:0,size:0,gzipSize:0},image:{count:0,size:0,gzipSize:0},font:{count:0,size:0,gzipSize:0},other:{count:0,size:0,gzipSize:0}};for(let Q of X)Z[Q.type].count++,Z[Q.type].size+=Q.size,Z[Q.type].gzipSize+=Q.gzipSize;return Z}function p(X){let Z=new Map;for(let $ of X){let U=Z.get($.hash)||[];U.push($),Z.set($.hash,U)}let Q=[];for(let[,$]of Z)if($.length>1){let U=$[0];Q.push({path:U.path,count:$.length,wastedBytes:U.size*($.length-1),locations:$.map((K)=>K.path)})}return Q.sort(($,U)=>U.wastedBytes-$.wastedBytes)}function W(X){if(X<1024)return`${X} B`;if(X<1048576)return`${(X/1024).toFixed(2)} KB`;return`${(X/1048576).toFixed(2)} MB`}function I(X){let Z=X.match(/^([\d.]+)\s*(B|KB|MB|GB)?$/i);if(!Z)return 0;let Q=Number.parseFloat(Z[1]);switch((Z[2]||"B").toUpperCase()){case"KB":return Q*1024;case"MB":return Q*1024*1024;case"GB":return Q*1024*1024*1024;default:return Q}}function E(X,Z){if(Z===0)return"0%";return`${(X/Z*100).toFixed(1)}%`}function R(X,Z){switch(Z.format){case"json":return u(X,Z);case"markdown":return l(X,Z);case"text":default:return r(X,Z)}}function u(X,Z){let Q=N(X,Z);return JSON.stringify({timestamp:X.timestamp,buildDir:X.buildDir,summary:{totalSize:X.totalSize,totalSizeFormatted:W(X.totalSize),totalGzipSize:X.totalGzipSize,totalGzipSizeFormatted:W(X.totalGzipSize),moduleCount:X.moduleCount,chunkCount:X.chunks.length,duplicateCount:X.duplicates.length},byType:Object.fromEntries(Object.entries(X.byType).map(([$,U])=>[$,{...U,sizeFormatted:W(U.size),gzipSizeFormatted:W(U.gzipSize)}])),chunks:X.chunks.map(($)=>({name:$.name,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),moduleCount:$.modules.length,isEntry:$.isEntry,isVendor:$.isVendor})),largestModules:X.largestModules.slice(0,Z.topModules||10).map(($)=>({path:$.path,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),type:$.type})),duplicates:X.duplicates,analysis:Q,warnings:X.warnings},null,2)}function r(X,Z){let Q=[],$=Z.showGzip!==!1;if(Q.push(""),Q.push("Bundle Analysis Report"),Q.push("\u2550".repeat(50)),Q.push(""),Q.push("Summary"),Q.push("\u2500".repeat(50)),$)Q.push(`Total Size: ${W(X.totalSize)} (${W(X.totalGzipSize)} gzip)`);else Q.push(`Total Size: ${W(X.totalSize)}`);if(Q.push(`Modules: ${X.moduleCount}`),Q.push(`Chunks: ${X.chunks.length}`),X.duplicates.length>0)Q.push(`Duplicates: ${X.duplicates.length}`);if(Q.push(""),Z.threshold&&X.totalSize>Z.threshold)Q.push(`\u26A0\uFE0F Bundle exceeds threshold of ${W(Z.threshold)}!`),Q.push("");Q.push("Size by Type"),Q.push("\u2500".repeat(50));let U=["js","css","html","image","font","other"];for(let j of U){let q=X.byType[j];if(q.count>0){let J=E(q.size,X.totalSize),F=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${j.padEnd(8)} ${W(q.size).padStart(12)}${F} ${J.padStart(6)} (${q.count} files)`)}}Q.push(""),Q.push("Chunks"),Q.push("\u2500".repeat(50));for(let j of X.chunks.slice(0,10)){let q=[];if(j.isEntry)q.push("entry");if(j.isVendor)q.push("vendor");let J=q.length>0?` [${q.join(", ")}]`:"",F=$?` (${W(j.gzipSize)} gzip)`:"";Q.push(` ${j.name.padEnd(20)} ${W(j.size).padStart(12)}${F}${J}`)}if(X.chunks.length>10)Q.push(` ... and ${X.chunks.length-10} more chunks`);Q.push("");let K=Z.topModules||10;Q.push(`Largest Modules (Top ${K})`),Q.push("\u2500".repeat(50));for(let j=0;j<Math.min(K,X.largestModules.length);j++){let q=X.largestModules[j],J=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${(j+1).toString().padStart(2)}. ${q.path}`),Q.push(` ${W(q.size)}${J}`)}if(Q.push(""),X.duplicates.length>0){Q.push("Duplicate Modules"),Q.push("\u2500".repeat(50));for(let j of X.duplicates.slice(0,5))Q.push(` ${j.path}`),Q.push(` ${j.count} copies, wasting ${W(j.wastedBytes)}`);if(X.duplicates.length>5)Q.push(` ... and ${X.duplicates.length-5} more duplicates`);Q.push("")}if(Z.recommendations!==!1){let j=N(X,Z);if(j.recommendations.length>0){Q.push("Recommendations"),Q.push("\u2500".repeat(50));for(let q of j.recommendations.slice(0,5)){let J=q.impact==="high"?"\u26A1":q.impact==="medium"?"\uD83D\uDCCA":"\uD83D\uDCA1";Q.push(` ${J} ${q.title}`),Q.push(` ${q.description}`)}Q.push("")}}if(X.warnings.length>0){Q.push("Warnings"),Q.push("\u2500".repeat(50));for(let j of X.warnings)Q.push(` \u26A0\uFE0F ${j}`);Q.push("")}return Q.join(`
|
|
3
3
|
`)}function l(X,Z){let Q=[],$=Z.showGzip!==!1;if(Q.push("# Bundle Analysis Report"),Q.push(""),Q.push(`Generated: ${new Date(X.timestamp).toISOString()}`),Q.push(""),Q.push("## Summary"),Q.push(""),Q.push("| Metric | Value |"),Q.push("|--------|-------|"),Q.push(`| Total Size | ${W(X.totalSize)} |`),$)Q.push(`| Gzip Size | ${W(X.totalGzipSize)} |`);Q.push(`| Modules | ${X.moduleCount} |`),Q.push(`| Chunks | ${X.chunks.length} |`),Q.push(`| Duplicates | ${X.duplicates.length} |`),Q.push(""),Q.push("## Size by Type"),Q.push(""),Q.push("| Type | Size | Gzip | % | Files |"),Q.push("|------|------|------|---|-------|");let U=["js","css","html","image","font","other"];for(let j of U){let q=X.byType[j];if(q.count>0)Q.push(`| ${j} | ${W(q.size)} | ${W(q.gzipSize)} | ${E(q.size,X.totalSize)} | ${q.count} |`)}Q.push(""),Q.push("## Chunks"),Q.push(""),Q.push("| Name | Size | Gzip | Modules | Type |"),Q.push("|------|------|------|---------|------|");for(let j of X.chunks.slice(0,15)){let q=j.isEntry?"Entry":j.isVendor?"Vendor":"-";Q.push(`| ${j.name} | ${W(j.size)} | ${W(j.gzipSize)} | ${j.modules.length} | ${q} |`)}Q.push("");let K=Z.topModules||10;Q.push(`## Largest Modules (Top ${K})`),Q.push(""),Q.push("| # | Path | Size | Gzip |"),Q.push("|---|------|------|------|");for(let j=0;j<Math.min(K,X.largestModules.length);j++){let q=X.largestModules[j];Q.push(`| ${j+1} | \`${q.path}\` | ${W(q.size)} | ${W(q.gzipSize)} |`)}if(Q.push(""),X.duplicates.length>0){Q.push("## Duplicates"),Q.push(""),Q.push("| Path | Copies | Wasted |"),Q.push("|------|--------|--------|");for(let j of X.duplicates.slice(0,10))Q.push(`| \`${j.path}\` | ${j.count} | ${W(j.wastedBytes)} |`);Q.push("")}if(Z.recommendations!==!1){let j=N(X,Z);if(j.recommendations.length>0){Q.push("## Recommendations"),Q.push("");for(let q of j.recommendations)Q.push(`### ${q.title}`),Q.push(""),Q.push(q.description),Q.push(""),Q.push(`- **Impact:** ${q.impact}`),Q.push(`- **Effort:** ${q.effort}`),Q.push("")}}return Q.join(`
|
|
4
4
|
`)}function N(X,Z){let Q=[],$=[];if(Z.threshold&&X.totalSize>Z.threshold)Q.push({severity:"error",message:`Bundle size (${W(X.totalSize)}) exceeds threshold (${W(Z.threshold)})`});if(X.totalSize>1048576)Q.push({severity:"warning",message:`Bundle is over 1MB (${W(X.totalSize)})`,details:"Large bundles can significantly impact load time"});if(X.duplicates.length>0){let q=X.duplicates.reduce((J,F)=>J+F.wastedBytes,0);Q.push({severity:"warning",message:`${X.duplicates.length} duplicate modules found, wasting ${W(q)}`}),$.push({title:"Remove Duplicate Modules",description:"Consider using import aliases or ensuring consistent package versions to eliminate duplicates.",impact:"medium",effort:"low"})}if(X.byType.js.size/X.totalSize>0.8&&X.totalSize>512000)$.push({title:"Code Splitting",description:"Over 80% of your bundle is JavaScript. Consider splitting code by route or feature.",impact:"high",effort:"medium"});let K=X.largestModules.filter((q)=>q.size>102400);if(K.length>0){Q.push({severity:"info",message:`${K.length} modules are over 100KB`});for(let q of K){if(q.path.includes("lodash")&&!q.path.includes("lodash-es"))$.push({title:"Use lodash-es instead of lodash",description:"lodash-es supports tree-shaking and can significantly reduce bundle size.",impact:"high",effort:"low"});if(q.path.includes("moment"))$.push({title:"Replace moment.js",description:"Consider using date-fns or dayjs for smaller date handling libraries.",impact:"high",effort:"medium"})}}if(X.byType.image.size>512000)$.push({title:"Optimize Images",description:`Images account for ${W(X.byType.image.size)}. Consider using WebP/AVIF formats and responsive images.`,impact:"high",effort:"low"});let j=100;if(X.totalSize>1048576)j-=20;else if(X.totalSize>512000)j-=10;if(j-=Math.min(20,X.duplicates.length*2),j-=Math.min(15,K.length*3),Z.threshold&&X.totalSize>Z.threshold)j-=25;return{score:Math.max(0,j),issues:Q,recommendations:$}}var i={lodash:{alternative:"lodash-es or individual imports",savings:"~70%"},moment:{alternative:"date-fns or dayjs",savings:"~90%"},"chart.js":{alternative:"chart.js with tree-shaking",savings:"~50%"},"highlight.js":{alternative:"Selective language imports",savings:"~80%"},fontawesome:{alternative:"Individual icon imports",savings:"~90%"},"material-ui":{alternative:"Named imports from @mui/*",savings:"~60%"}};function n(X){for(let[Z,Q]of Object.entries(i))if(X.includes(Z))return{title:`Optimize ${Z}`,description:`Consider using ${Q.alternative}. Potential savings: ${Q.savings}`,impact:"high",effort:"low"};return null}var o={default:{js:"#f7df1e",css:"#264de4",html:"#e34c26",image:"#4caf50",font:"#9c27b0",other:"#607d8b",vendor:"#ff5722"},pastel:{js:"#fff3b0",css:"#b0d4ff",html:"#ffb0b0",image:"#b0ffb0",font:"#e0b0ff",other:"#d0d0d0",vendor:"#ffcfb0"},monochrome:{js:"#333333",css:"#555555",html:"#777777",image:"#999999",font:"#bbbbbb",other:"#dddddd",vendor:"#444444"}};function x(X,Z={}){let{title:Q="Bundle Analysis",gzip:$=!0,colorScheme:U="default"}=Z,K=o[U],j=a(X),q=JSON.stringify(j);return`<!DOCTYPE html>
|
|
5
5
|
<html lang="en">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{dh as a,eh as b,fh as c,gh as d,hh as e,ih as f,jh as g,kh as h,lh as i,mh as j,nh as k,oh as l,ph as m,qh as n,rh as o,sh as p,th as q}from"./chunk-
|
|
2
|
+
import{dh as a,eh as b,fh as c,gh as d,hh as e,ih as f,jh as g,kh as h,lh as i,mh as j,nh as k,oh as l,ph as m,qh as n,rh as o,sh as p,th as q}from"./chunk-k46js7bz.js";import"./chunk-j4ze77e0.js";export{h as resizeAndConvert,f as processImage,d as isSharpAvailable,m as isImageFile,e as isImageBackendAvailable,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,g as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,p as formatSize,q as ImageProcessingError,a as DEFAULT_WIDTHS,c as DEFAULT_QUALITY,b as DEFAULT_FORMATS};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Qf as p}from"./chunk-
|
|
2
|
+
import{Qf as p}from"./chunk-9g2rhkx8.js";import{Gg as a,Ig as JF,Jg as ZF,Kg as qF}from"./chunk-y805f58c.js";import{rj as C,sj as D}from"./chunk-qa8qmer5.js";import{Dk as QF,Ek as XF,Fk as YF}from"./chunk-frp9fc7j.js";import{Dq as c,Lm as u,Zo as o,_r as n,as as N,cm as l,em as d,eq as e,sq as t,zq as FF}from"./chunk-spnkgsft.js";import{Ys as r}from"./chunk-nnd1hqht.js";import{Bu as S,Du as WF}from"./chunk-r2kag877.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=o(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
|
|
3
3
|
[stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
|
|
4
4
|
export{g as Gf,f as Hf,m as If,UF as Jf,i as Kf,lF as Lf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{kt as a,lt as b,mt as c,nt as d,ot as e,pt as f,qt as g,rt as h,st as i,tt as j,ut as k,vt as l,wt as m,xt as n,yt as o,zt as p}from"./chunk-2fspj91j.js";import"./chunk-
|
|
2
|
+
import{kt as a,lt as b,mt as c,nt as d,ot as e,pt as f,qt as g,rt as h,st as i,tt as j,ut as k,vt as l,wt as m,xt as n,yt as o,zt as p}from"./chunk-2fspj91j.js";import"./chunk-j4ze77e0.js";export{i as useTitle,f as useSeoMeta,i as usePageTitle,d as useHead,g as seoMetaToHeadConfig,c as resetHead,k as renderHtmlAttrs,j as renderHead,l as renderBodyAttrs,o as processTitleDirective,p as processMetaDirective,n as processHeadDirective,e as mergeHeadConfigs,b as getPageMeta,a as getHead,h as definePageMeta,m as applyHead};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$k as c,Zk as a,_k as b,al as d,bl as e,cl as f,dl as g,el as h,fl as i}from"./chunk-a0zaf8r9.js";import"./chunk-r84h7wxw.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as shouldLogBundlerDiagnostics,e as setBundlerFallbackMode,f as resolveBundlerFallback,b as recordBundleFailure,h as queueClientBundleBuild,g as hasUserImports,c as getBundleFailures,d as clearBundleFailures,i as bundleClientScript};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Sh as x,Xh as M,Yh as C,Zh as v,_h as P}from"./chunk-j93x5fzs.js";import{
|
|
2
|
+
import{Sh as x,Xh as M,Yh as C,Zh as v,_h as P}from"./chunk-j93x5fzs.js";import{Nu as y}from"./chunk-j4ze77e0.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Jh,w as Kh,Q as Lh,d as Mh,g as Nh,n as Oh,D as Ph,t as Qh,KJ as Rh};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Nj as a,Oj as b,Pj as c,Qj as d,Rj as e,Sj as f,Tj as g,Uj as h,Vj as i,Wj as j,Xj as k}from"./chunk-
|
|
2
|
+
import{Nj as a,Oj as b,Pj as c,Qj as d,Rj as e,Sj as f,Tj as g,Uj as h,Vj as i,Wj as j,Xj as k}from"./chunk-x58dcsjw.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,k as hashFilePath,f as getCachedSignalsRuntime,g as getCachedRouterScript,h as clearDevCaches,i as checkCache,j as cacheTemplate,e as __setSignalsGeneratorsForTest};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Sq as q,Wq as y}from"./chunk-
|
|
2
|
+
import{Sq as q,Wq as y}from"./chunk-spnkgsft.js";import{Nu as L}from"./chunk-j4ze77e0.js";import M from"fs";import X from"path";var T=new Map,Q=new Map;async function A(j){let z;for(let K=0;K<3;K++)try{let V=(await M.promises.stat(j)).mtime.getTime(),J=Q.get(j);if(J&&J.mtime===V)return J.content;let W=await Bun.file(j).text(),U=(await M.promises.stat(j)).mtime.getTime();if(U!==V)continue;return Q.set(j,{content:W,mtime:U}),W}catch(I){z=I;break}throw Q.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function H(j){Q.delete(j)}function v(j){for(let B of Q.keys())if(B.startsWith(j))Q.delete(B)}var Z=null,b=null,N=null;function E(j){N=j}async function F(j=!1){let B=N??await import("./chunk-p56hfz00.js");if(j)return B.generateSignalsRuntimeDev();if(Z===null)Z=B.generateSignalsRuntime();return Z}var $=null;async function R(){if($===null){let{getRouterScript:j}=await import("./chunk-mbwe1z12.js");$=j()}return $}function S(){Q.clear(),y(),Z=null,b=null,$=null}function k(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function _(j,B){try{if(!B.cachePath)return null;let z=X.resolve(B.cachePath),K=X.join(z,`${D(j)}.html`),I=X.join(z,`${D(j)}.meta.json`);if(!await q(K)||!await q(I))return null;let V=await Bun.file(I).text(),J=JSON.parse(V);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==k(B))return null;if((await M.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Y of J.dependencies)if(await q(Y)){if((await M.promises.stat(Y)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function g(j,B,z,K){try{if(!K.cachePath)return;let I=X.resolve(K.cachePath);await M.promises.mkdir(I,{recursive:!0});let V=X.join(I,`${D(j)}.html`),J=X.join(I,`${D(j)}.meta.json`),W=await M.promises.stat(j);await Bun.write(V,B);let Y={sourcePath:j,mtime:W.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:k(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Y,null,2)),T.set(j,{output:B,mtime:W.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var G=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,G)}
|
|
3
3
|
export{T as Nj,A as Oj,H as Pj,v as Qj,E as Rj,F as Sj,R as Tj,S as Uj,_ as Vj,g as Wj,D as Xj};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as kl,$a as bn,$b as uo,$c as up,$d as uq,A as Wj,Aa as mm,Ab as On,Ac as Vo,Ad as Vp,Ae as $q,B as Xj,Ba as nm,Bb as Pn,Bc as Wo,Bd as Wp,Be as ar,C as Yj,Ca as Am,Cb as Qn,Cc as Xo,Cd as Xp,Ce as br,D as Zj,Da as Bm,Db as Rn,Dc as Yo,Dd as Yp,De as cr,E as Pk,Ea as Cm,Eb as Sn,Ec as Zo,Ed as Zp,Ee as dr,F as Qk,Fa as Dm,Fb as Tn,Fc as _o,Fd as _p,Fe as er,G as Rk,Ga as Em,Gb as Un,Gc as $o,Gd as $p,Ge as fr,H as Sk,Ha as Im,Hb as Vn,Hc as ap,Hd as aq,He as gr,I as Tk,Ia as Jm,Ib as Wn,Ic as bp,Id as bq,Ie as hr,J as Uk,Ja as Km,Jb as Xn,Jc as cp,Jd as cq,Je as ir,K as Vk,Ka as Lm,Kb as Yn,Kc as dp,Kd as dq,Ke as jr,L as Wk,La as Mm,Lb as Zn,Lc as ep,Ld as eq,Le as kr,M as Xk,Ma as Nm,Mb as _n,Mc as fp,Md as fq,Me as lr,N as Yk,Na as Om,Nb as go,Nc as gp,Nd as gq,Ne as mr,O as Zk,Oa as Pm,Ob as ho,Oc as hp,Od as hq,Oe as nr,P as _k,Pa as Qm,Pb as io,Pc as ip,Pd as iq,Pe as or,Q as $k,Qa as Rm,Qb as jo,Qc as jp,Qd as jq,Qe as pr,R as al,Ra as Sm,Rb as ko,Rc as kp,Rd as kq,Re as qr,S as bl,Sa as Tm,Sb as lo,Sc as lp,Sd as lq,Se as rr,T as cl,Ta as Um,Tb as mo,Tc as mp,Td as mq,Te as sr,U as dl,Ua as Vm,Ub as no,Uc as np,Ud as nq,Ue as tr,V as el,Va as Wm,Vb as oo,Vc as op,Vd as oq,Ve as ur,W as fl,Wa as Xm,Wb as po,Wc as pp,Wd as pq,We as vr,X as gl,Xa as Zm,Xb as qo,Xc as qp,Xd as qq,Xe as wr,Y as hl,Ya as _m,Yb as ro,Yc as rp,Yd as rq,Z as il,Za as $m,Zb as so,Zc as sp,Zd as sq,_ as jl,_a as an,_b as to,_c as tp,_d as tq,aa as ll,ab as cn,ac as vo,ad as vp,ae as vq,ba as ml,bb as dn,bc as wo,bd as wp,be as wq,ca as nl,cb as en,cc as xo,cd as xp,ce as xq,da as ol,db as fn,dc as yo,dd as yp,de as yq,ea as pl,eb as gn,ec as zo,ed as zp,ee as zq,fa as ql,fb as hn,fc as Ao,fd as Ap,fe as Aq,ga as rl,gb as jn,gc as Bo,gd as Bp,ge as Bq,ha as sl,hb as kn,hc as Co,hd as Cp,he as Cq,ia as tl,ib as ln,ic as Do,id as Dp,ie as Dq,ja as ul,jb as mn,jc as Eo,jd as Ep,je as Eq,ka as vl,kb as nn,kc as Fo,kd as Fp,ke as Fq,la as wl,lb as on,lc as Go,ld as Gp,le as Gq,ma as xl,mb as pn,mc as Ho,md as Hp,me as Hq,na as yl,nb as qn,nc as Io,nd as Ip,ne as Iq,o as a,oa as zl,ob as tn,oc as Jo,od as Jp,oe as Pq,p as Hj,pa as bm,pb as un,pc as Ko,pd as Kp,pe as Qq,q as Ij,qa as cm,qb as vn,qc as Lo,qd as Lp,qe as Rq,r as Jj,ra as dm,rb as wn,rc as Mo,rd as Mp,re as Sq,s as Kj,sa as em,sb as Cn,sc as No,sd as Np,se as Tq,t as Lj,ta as fm,tb as Dn,tc as Oo,td as Op,te as Uq,u as Mj,ua as gm,ub as En,uc as Po,ud as Pp,ue as Vq,v as Nj,va as hm,vb as Fn,vc as Qo,vd as Qp,ve as Wq,w as Oj,wa as im,wb as Kn,wc as Ro,wd as Rp,we as Xq,x as Pj,xa as jm,xb as Ln,xc as So,xd as Sp,xe as Yq,y as Uj,ya as km,yb as Mn,yc as To,yd as Tp,ye as Zq,z as Vj,za as lm,zb as Nn,zc as Uo,zd as Up,ze as _q}from"./chunk-dzr5w33y.js";import{$e as bk,Ye as _j,Ze as $j,_e as ak,af as ck,bf as dk,cf as ek,df as fk,ef as gk,ff as hk,gf as ik,hf as jk,if as kk,jf as lk,kf as mk}from"./chunk-jy6madxa.js";import{lf as Dk,mf as Ek,nf as Fk,of as Gk,pf as Hk,qf as Ik,rf as Jk,sf as Kk,tf as Lk,uf as Mk,vf as Nk,wf as Ok}from"./chunk-j2pmv4jw.js";import{Af as co,Bf as eo,Cf as fo,xf as $n,yf as ao,zf as bo}from"./chunk-acwjyext.js";import{Df as rn,Ef as sn}from"./chunk-vzskgbqj.js";import{Ff as xn}from"./chunk-bskzz385.js";import{Gf as Rl,Hf as Sl,If as Tl,Jf as Ul,Kf as Xl,Lf as $l}from"./chunk-w56erqz5.js";import{Mf as Vl,Pf as Wl}from"./chunk-9g2rhkx8.js";import{$f as sm,Xf as om,Yf as pm,Zf as qm,_f as rm,ag as tm,bg as um,cg as vm,dg as wm,eg as xm,fg as ym,gg as zm}from"./chunk-d19bydks.js";import{hg as Bk,ig as Ck}from"./chunk-n7w8kgfw.js";import{jg as am}from"./chunk-cdb8a0tx.js";import{kg as Fm,lg as Gm,mg as Hm,ng as Ym,og as yn,pg as zn,qg as An,rg as Bn,sg as Gn,tg as Hn,ug as In,vg as Jn}from"./chunk-89nbkhxk.js";import{Ag as El,Bg as Fl,Cg as Gl,Dg as Hl,Eg as Il,Fg as Jl,Gg as Kl,Hg as Ll,Ig as Ml,Jg as Yl,Kg as Zl,Lg as _l,wg as Al,xg as Bl,yg as Cl,zg as Dl}from"./chunk-y805f58c.js";import{Mg as Wi,Ng as Xi,Og as Yi,Pg as Zi,Qg as _i,Rg as $i,Sg as aj,Tg as bj,Ug as cj,Vg as dj,Wg as ej}from"./chunk-6x3jqwxp.js";import{Xg as wj,Zg as xj}from"./chunk-cs1dc1n7.js";import{dh as nk,eh as ok,fh as pk,gh as qk,hh as rk,ih as sk,jh as tk,lh as uk,mh as vk,nh as wk,oh as xk,ph as yk,qh as zk,th as Ak}from"./chunk-k46js7bz.js";import{uh as gh,vh as hh,wh as ih,xh as jh}from"./chunk-tv4n71jy.js";import{Ch as kh}from"./chunk-rbke5wqk.js";import{Dh as rh,Eh as sh,Fh as th,Gh as uh,Hh as vh,Ih as wh}from"./chunk-z0y4gcsp.js";import{Jh as Li,Kh as Mi,Lh as Ni,Ph as Oi,Qh as Pi,Rh as Qi}from"./chunk-wdwf3wzg.js";import{$h as Ji,Sh as Bi,Th as Ci,Uh as Di,Vh as Ei,Wh as Fi,Yh as Gi,Zh as Hi,_h as Ii,ai as Ki}from"./chunk-j93x5fzs.js";import{bi as rg,ci as sg,di as tg,ei as ug,fi as vg,gi as wg}from"./chunk-ntnv2f7a.js";import{hi as xg,ii as yg,ji as zg,ki as Ag,li as Bg}from"./chunk-1gdzz04h.js";import{mi as Cg,ni as Dg,oi as Eg,pi as Fg,qi as Gg}from"./chunk-ssfhndm6.js";import{ri as Hg,si as Ig,ti as Jg,ui as Kg,vi as Lg,wi as Mg,xi as Ng}from"./chunk-94fee5jw.js";import{Ai as Qg,Bi as Rg,Ci as Sg,Di as Tg,yi as Og,zi as Pg}from"./chunk-pv9at6r1.js";import{Fi as Ug,Gi as Vg,Hi as Wg,Ii as Xg,Ji as Yg,Ki as Zg,Li as _g,Mi as $g,Ni as ah,Oi as bh,Pi as ch,Qi as dh,Ri as eh,Si as fh}from"./chunk-dq88kv1p.js";import{Ui as lg,Vi as mg}from"./chunk-s8bx0wv7.js";import{Yi as ng}from"./chunk-5q44vwmg.js";import"./chunk-ht51fz7w.js";import{aj as og}from"./chunk-fvjh7rx0.js";import{bj as pg,cj as qg}from"./chunk-b6jhznkh.js";import{dj as ee,ej as fe,fj as ge,gj as he,hj as ie,ij as je,jj as ke,kj as le,lj as me,mj as ne,nj as oe,oj as pe,pj as qe,qj as re}from"./chunk-fee1k8c5.js";import{rj as Oe,sj as Pe}from"./chunk-qa8qmer5.js";import{Aj as Be,Bj as Ce,Cj as De,Dj as Ee,Ej as Fe,Fj as Ge,Gj as He,Hj as Ie,Ij as Je,Jj as Ke,Kj as Le,Lj as Me,Mj as Ne,zj as Ae}from"./chunk-nhmq45hh.js";import{Nj as Qe,Oj as Re,Pj as Se,Qj as Te,Rj as Ue,Sj as Ve,Tj as We,Uj as Xe,Vj as Ye,Wj as Ze,Xj as _e}from"./chunk-x58dcsjw.js";import{pk as Jq,qk as Kq,rk as Lq,sk as Mq,tk as Nq,uk as Oq}from"./chunk-0e1pt5my.js";import{Ak as Ol,Bk as Pl,Ck as Ql,vk as Qj,wk as Rj,xk as Sj,yk as Tj,zk as Nl}from"./chunk-8k7evyhh.js";import"./chunk-frp9fc7j.js";import"./chunk-r84h7wxw.js";import{$m as Wb,$n as Wc,$p as Jf,$q as Yh,$r as zj,Al as da,Am as wb,An as vc,Ao as Ld,Ap as hf,Aq as ig,Ar as xi,Bl as ea,Bm as xb,Bn as wc,Bo as Md,Bp as jf,Bq as jg,Br as yi,Cl as fa,Cm as yb,Cn as xc,Co as Nd,Cp as kf,Cq as kg,Cr as zi,Dl as ga,Dm as zb,Dn as yc,Do as Od,Dp as lf,Dq as lh,Dr as Ai,El as ha,Em as Ab,En as zc,Eo as Pd,Ep as mf,Eq as mh,Er as Ri,Fl as ia,Fm as Bb,Fn as Ac,Fo as Qd,Fp as nf,Fq as nh,Fr as Si,Gm as Cb,Gn as Bc,Go as Rd,Gp as of,Gq as oh,Gr as Ti,Hn as Cc,Ho as Sd,Hp as pf,Hq as ph,Hr as Ui,Il as za,Im as Db,In as Dc,Io as Td,Ip as qf,Iq as qh,Ir as Vi,Jl as Aa,Jm as Eb,Jn as Ec,Jo as Ud,Jp as rf,Jq as xh,Jr as fj,Kl as Ba,Km as Fb,Kn as Fc,Ko as Vd,Kp as sf,Kq as yh,Kr as gj,Ll as Ca,Lm as Gb,Ln as Gc,Lo as Wd,Lp as tf,Lq as zh,Lr as hj,Ml as Da,Mm as Hb,Mn as Hc,Mo as Xd,Mp as uf,Mq as Ah,Mr as ij,Nm as Ib,Nn as Ic,No as Yd,Np as vf,Nq as Bh,Nr as jj,Om as Jb,On as Jc,Oo as Zd,Op as wf,Oq as Ch,Or as kj,Pl as Ga,Pm as Kb,Pn as Kc,Po as _d,Pp as xf,Pq as Dh,Pr as lj,Ql as Ha,Qm as Lb,Qn as Lc,Qo as $d,Qp as yf,Qq as Eh,Qr as mj,Rl as Oa,Rm as Mb,Rn as Mc,Ro as ae,Rp as zf,Rq as Fh,Rr as nj,Sl as Pa,Sm as Nb,Sn as Nc,So as be,Sp as Af,Sq as Gh,Sr as oj,Tl as Qa,Tm as Ob,Tn as Oc,To as ce,Tp as Bf,Tq as Hh,Tr as pj,Ul as Ra,Um as Pb,Un as Pc,Uo as de,Up as Cf,Uq as Ih,Ur as qj,Vl as Sa,Vm as Qb,Vn as Qc,Vp as Df,Vq as Jh,Vr as rj,Wl as Ta,Wm as Rb,Wn as Rc,Wo as xe,Wp as Ef,Wq as Kh,Wr as sj,Xl as Ua,Xm as Sb,Xn as Sc,Xp as Ff,Xq as Lh,Xr as tj,Yl as Va,Ym as Tb,Yn as Tc,Yp as Gf,Yq as Mh,Yr as uj,Zl as Wa,Zm as Ub,Zn as Uc,Zo as ye,Zp as Hf,Zq as Nh,Zr as vj,_m as Vb,_n as Vc,_o as ze,_p as If,_q as Xh,_r as yj,an as Xb,ao as Xc,ap as $e,aq as Kf,ar as Zh,as as Aj,bn as Yb,bo as Yc,bq as Lf,br as _h,bs as Bj,cm as Xa,cn as Zb,co as Zc,cq as Mf,cr as $h,cs as Cj,dm as Ya,dn as _b,do as _c,dq as Nf,dr as ai,ds as Dj,em as Za,en as $b,eo as $c,eq as Of,er as bi,es as Ej,fm as _a,fn as ac,fo as ad,fq as Pf,fr as ci,fs as Fj,gm as $a,gn as bc,go as bd,gq as Qf,gr as di,gs as Gj,hm as ab,hn as cc,ho as cd,hq as Rf,hr as ei,il as s,in as dc,io as dd,iq as Sf,ir as fi,jl as t,jn as ec,jo as ed,jq as Tf,jr as gi,kl as u,km as bb,kn as fc,ko as fd,kq as Uf,kr as hi,ll as v,lm as cb,ln as gc,lo as gd,lq as Vf,lr as ii,ml as w,mm as db,mn as hc,mo as hd,mq as Wf,mr as ji,nl as x,nm as eb,nn as ic,no as yd,nq as Xf,nr as ki,ol as y,om as fb,on as jc,oo as zd,oq as Yf,or as li,pl as z,pm as gb,pn as kc,po as Ad,pq as Zf,pr as mi,ql as A,qm as hb,qn as lc,qo as Bd,qq as _f,qr as ni,rl as B,rm as ib,rn as mc,ro as Cd,rp as af,rq as $f,rr as oi,sl as C,sm as jb,sn as nc,so as Dd,sq as ag,sr as pi,tl as D,tm as kb,tn as oc,to as Ed,tp as bf,tq as bg,tr as qi,ul as E,um as lb,un as pc,uo as Fd,uq as cg,ur as ri,vl as F,vm as mb,vn as qc,vo as Gd,vp as cf,vq as dg,vr as si,wl as G,wm as nb,wn as rc,wo as Hd,wp as df,wq as eg,wr as ti,xl as H,xm as ob,xn as sc,xo as Id,xp as ef,xq as fg,xr as ui,yl as I,ym as pb,yn as tc,yo as Jd,yp as ff,yq as gg,yr as vi,zl as J,zn as uc,zo as Kd,zp as gf,zq as hg,zr as wi}from"./chunk-spnkgsft.js";import{hs as d,is as e,js as f,ks as g,ls as h,ms as i,ns as j,os as k,ps as l,qs as m,rs as n,ss as o,ts as p,us as q,vs as r}from"./chunk-4awxsp8f.js";import{As as Sh,Bs as Th,Cs as Uh,Ds as Vh,Es as Wh,ws as Oh,xs as Ph,ys as Qh,zs as Rh}from"./chunk-hk8j3eps.js";import{Fs as b,Gs as c}from"./chunk-mxva4zmq.js";import{Hs as Ea,Is as Fa}from"./chunk-1kg9sz9a.js";import{Js as qb,Ks as rb,Ms as sb,Ws as tb,Xs as ub,Ys as vb}from"./chunk-nnd1hqht.js";import{$s as ue,Zs as se,_s as te,at as ve,dt as we}from"./chunk-msxcd1kp.js";import{et as Ia,ft as Ja,gt as Ka,ht as La,it as Ma,jt as Na}from"./chunk-xgtcq9bj.js";import{kt as id,lt as jd,mt as kd,nt as ld,ot as md,pt as nd,qt as od,rt as pd,st as qd,tt as rd,ut as sd,vt as td,wt as ud,xt as vd,yt as wd,zt as xd}from"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import{Ct as ja,Dt as ka,Et as la,Ft as ma,Gt as na,Ht as oa,It as pa,Jt as qa,Kt as ra,Lt as sa,Mt as ta,Nt as ua,Ot as va,Pt as wa,Qt as xa,Rt as ya}from"./chunk-5a1b5kjt.js";import{Vt as K,Wt as L,Zt as M,cu as N,du as O,ju as P,ku as Q,lu as R,mu as S,nu as T,ou as U,pu as V,qu as W,ru as X,su as Y,tu as Z,uu as _,vu as $,wu as aa,xu as ba,zu as ca}from"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{ik as writeNetlifyConfig,Zl as writeManifest,Nk as writeImageManifest,po as wrapComponentForHMR,jr as withDefaults,vj as webComponentDirectiveHandler,ep as watermark,gq as watchViews,Xk as watchMultiple,Yk as watchEffect,Wk as watch,we as warmImagePlaceholders,jl as waitForStore,Xd as waitForLocale,ao as virtualPathFor,ij as videoDirective,sc as validators,nr as validated,Jd as validateValueEnhanced,mh as validateTemplate,jp as validateParams,Kd as validateFormEnhanced,Xp as validateFile,Fd as validateFields,Ed as validateField,oh as validateDirective,cd as validateCspDirectives,Dj as validateConfig,cm as validateComponentScripts,Am as validateComponentProps,kg as validateClientScript,jh as v,ib as usesSignalsInScript,pa as usesReactiveRuntime,Bh as userComponentFileExists,Rg as useVirtualList,qd as useTitle,il as useStoreOrThrow,Ho as useStore,Uj as useStorage,rq as useSlots,Wj as useSessionStorage,nd as useSeoMeta,kl as useRouteParams,ml as useRouteParamOrThrow,ll as useRouteParam,qd as usePageTitle,Ne as useOptimistic,ol as useMiddlewareValue,nl as useMiddlewareState,Vj as useLocalStorage,io as useLoadingIndicator,ld as useHead,gh as useForm,tq as useAttrs,Zp as uploadFiles,Yp as uploadFile,fl as updateInstance,Le as untrack,Rh as unregisterDirective,gl as unmountInstance,pb as unescapeHtml,eo as typecheckStxFiles,Ah as transpileTypeScript,Yq as translate,w as transitionDirective,um as toUsers,tm as toUser,Po as thumbnail,Qp as thumbHashToRGBA,Rp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Qe as templateCache,Lb as syncRecordedResponse,mo as stxClientHelpers,vf as structuredDataDirective,$q as stripLocalePrefix,Kl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,gn as stringToStream,Sc as strictCspPreset,me as streamingSuspenseDirective,qe as streamToResponse,ke as streamTemplateSimple,ee as streamTemplate,Pj as stopHmrServer,qm as stopBroadcasting,La as stateDirName,Ma as stateDir,Ae as state,eg as startsDocument,Jn as startProductionServer,xn as startInteractive,pm as startBroadcasting,br as stampLocaleLayoutGroup,D as staggerDirective,hp as srcsetUrls,E as springDirective,Bc as splitByPipe,Gl as spaNavVaryHeaders,bo as sourcePathFor,op as smartBatchSign,Dh as slotContentHasExpressions,mp as signUrl,yh as shouldTranspileTypeScript,Mj as shouldReloadOnChange,rp as shouldRefreshSignature,Nj as shouldIgnoreFile,Jg as shouldCacheComponent,To as sharpen,qr as shape,Ka as setStateDir,sl as setRouteParams,tl as setMiddlewareState,ve as setImagePlaceholder,lq as setGlobalProvide,Pb as setErrorLocale,Pk as setCurrentInstance,Yi as setCachedVideoResult,Ni as setCachedImageResult,Hi as setCached,tr as serveStxFile,vr as serveMultipleStxFiles,Hj as serveMarkdownFile,Tn as serveFile,wr as serveApp,Sn as serve,so as serializeState,Ym as serializeSetCookie,Vo as sepia,od as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,mj as scopeHTML,lj as scopeCSS,yf as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,Zo as saturation,kp as sanitizeParams,uc as sanitizeFilePath,vc as sanitizeExpression,wc as sanitizeDirectiveParams,tc as sanitizeDirectiveParam,xc as sanitizeComponentProps,nc as safeExecuteAsync,mc as safeExecute,xa as runtimeHandledXAttrsLiteral,of as runPreProcessingMiddleware,pf as runPostProcessingMiddleware,An as runPageAction,Ge as runMountCallbacks,ba as runMiddleware,dl as runHooks,Rq as runDoctor,He as runDestroyCallbacks,Df as runComposers,_o as rotate,kh as rewriteImagesWithSiblings,Mb as responseBindings,Hh as resolveTemplatePath,c as resolveStxTargets,zj as resolveStxDirectories,Xq as resolveI18n,No as resize,Xa as resetPlaceholders,kd as resetHead,ro as resetHMRHandler,ac as resetErrorConfig,lr as required,$a as replacePlaceholders,eq as renderView,fj as renderVideoComponent,Pa as renderVendorStyleTags,Aq as renderToString,Bq as renderToStream,Cq as renderToDOM,Pp as renderThumbhashToCanvas,Oq as renderTemplateString,Mq as renderTemplate,Nq as renderString,he as renderStreamingPage,th as renderSlot,zg as renderSSRSuspense,zp as renderProtectedVideo,yp as renderProtectedImg,lp as renderMediaUpload,Lq as renderMarkdownView,Pl as renderLayoutTypes,Ri as renderImgComponent,Dk as renderImageComponent,sd as renderHtmlAttrs,rd as renderHead,hq as renderEmail,Fh as renderComponentWithSlot,td as renderBodyAttrs,Co as render,Uc as relaxedCspPreset,Dd as registerValidationRule,oe as registerStreamingDirectives,Jo as registerStoresClient,ql as registerStore,wf as registerSeoDirectives,V as registerMiddleware,db as registerFilters,cb as registerFilter,Rb as registerErrorMessages,Id as registerEnhancedValidationRule,Oh as registerDirective,bd as registerCspDirectives,Dm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Tk as ref,pn as redirect,Hb as recordResponseStatus,Ib as recordResponseHeader,Na as rebaseOntoStateDir,Jb as readResponseStatus,Kb as readResponseHeaders,Fj as readMarkdownFile,Re as readFileCached,Uk as reactive,cp as quality,wp as pruneSignatureCache,Ki as pruneCache,jq as provide,Kq as protectCodeBlocks,kr as prop,Hf as processVueTemplate,Pg as processVirtualListDirectives,Tg as processVirtualGridDirectives,ej as processVideo,Gd as processValidateDirective,ce as processTranslateDirective,tg as processTransitionDirectives,wg as processTransitionAttributes,wd as processTitleDirective,zb as processTemplateBindings,pg as processTeleportDirectives,xg as processSuspenseDirectives,rf as processStructuredData,ie as processStreamDirectives,Nb as processStatusDirective,eh as processStaticDirectives,mf as processStackReplacements,lf as processStackPushDirectives,uh as processSlots,Il as processShell,Ff as processServerBindings,sf as processSeoDirective,pe as processSectionDirectives,Kf as processScopedStyles,xb as processReactiveBindings,Ap as processProtectedMedia,Zg as processPartialHydrationDirectives,jg as processOnceDirective,nf as processMiddleware,qf as processMetaDirectives,xd as processMetaDirective,Gj as processMarkdownFileDirectives,Mh as processMarkdownDirectives,ff as processLoops,Hg as processKeepAliveDirectives,ig as processJsonDirective,Sg as processInfiniteListDirectives,kf as processIncludes,Ti as processImgComponents,Fk as processImageComponents,sk as processImage,vd as processHeadDirective,zd as processForms,Bd as processFormInputDirectives,mb as processExpressions,Ca as processEventDirectives,Cd as processErrorDirective,If as processDynamicComponents,lh as processDirectives,Wh as processDirectiveAttributes,og as processDeferDirectives,gd as processCustomDirectives,_c as processCspDirectives,rr as processComponentProps,Wa as processClientScript,Ad as processBasicFormDirectives,Cg as processAsyncDirectives,hd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Td as preloadTranslationsBackground,Sd as preloadTranslations,ho as preloadIslandHandlers,xe as preloadIconCollection,lm as poolStrings,xj as pluginManager,te as placeholdersWarmed,sg as performLeave,rg as performEnter,Ie as pendingLifecycleCounts,Me as peek,gf as partialsCache,gj as parseVideoDirectiveOptions,Lo as parseUrl,Sp as parseThumbhashString,Hc as parseSwitchBlock,rh as parseSlots,sh as parseSlotElement,Mc as parseScriptDeclarations,tj as parseSFCComponent,Bp as parseProtectedArgs,ef as parseLoopBinding,Si as parseImgComponent,ii as parseImageUrl,Ek as parseImageComponent,yn as parseFormBody,Jc as parseExpressionWithFilters,mn as parseCookies,Im as parseContainerSelector,Ec as parseConditionalBlock,Kc as parseArguments,H as parseAnimationShorthand,mr as optional,mm as optimizeTemplate,Kk as optimizeImage,Lk as optimizeDirectory,or as oneOf,hf as onceStore,al as onUpdated,wb as onUpdate,cl as onUnmounted,xl as onServer,_k as onMounted,Ee as onMount,dh as onHydrated,pq as onErrorCaptured,Fe as onDestroy,Ng as onDeactivated,wl as onClient,$k as onBeforeUpdate,bl as onBeforeUnmount,Zk as onBeforeMount,Mg as onActivated,Lp as observeElement,qn as notFound,Pf as normalizeCriticalHeadOrder,oq as nextTick,Gm as negotiateEncoding,P as navigateTo,el as mountInstance,z as motionDirective,Tc as moderateCspPreset,km as minifyHtml,uf as metaDirective,Zf as metaDedupKey,Mo as mergeParams,$f as mergeHtmlAttrs,md as mergeHeadConfigs,Xc as mergeCspDirectives,rb as mergeCrosswindConfig,M as matchRoute,Nh as markdownDirectiveHandler,Ej as markdownCache,b as looksLikeGlob,_q as localizePath,Ud as loadTranslationLazy,_d as loadTranslation,Aj as loadStxConfig,_ as loadMiddlewareFromDirectory,_l as loadManifest,Hp as loadElement,rm as loadChannels,fr as lintStxStrict,Jp as lazyLoadAll,Ip as lazyLoad,C as keyframeDirective,yq as jsxs,zq as jsxDEV,xq as jsx,on as jsonResponse,ne as islandDirective,Zb as isTest,Ll as isSpaNavigation,El as isSpaNavRequest,pp as isSignatureValid,Je as isSignal,qk as isSharpAvailable,$m as isServerEnvironment,ul as isServer,ta as isRuntimeOwnedColonAttr,Xb as isProduction,d as isPresentationalRole,Ep as isNativeLazySupported,Jq as isMarkdownPath,Qd as isLoading,Rd as isLoaded,xh as isJavaScriptScript,Fp as isIntersectionObserverSupported,yk as isImageFile,rk as isImageBackendAvailable,ae as isICUFormat,ch as isHydrated,Ch as isHydrateTrigger,Fb as isHttpStatus,_m as isEdgeEnvironment,gr as isDirectiveKind,Yb as isDevelopment,Ke as isDerived,Lj as isCssOnlyChange,Fm as isCompressible,vl as isClient,Eg as isAsyncComponent,zn as isActionableMethod,Wo as invert,Te as invalidateFileCacheByDir,Se as invalidateFileCache,lb as interpolateScriptsInTemplate,jb as interpolateScriptExpressions,kb as interpolateScriptAttributes,jc as inlineError,Wq as injectThemeBootstrap,tf as injectSeoTags,Tq as injectSeo,$e as injectRouterScript,Kj as injectHotReload,fa as injectHeatmap,Yc as injectCspMetaTag,vb as injectCrosswindCSS,gg as injectConfigHeadTags,Of as injectColorModeBootScript,bg as injectCloakStyle,Vf as injectBuildId,Ra as injectBrowserCoreAutoImports,Bb as injectAnalytics,kq as inject,pl as initStoreRegistry,lk as initNetlify,jo as initLoadingIndicator,Gp as initLazyLoading,wn as initFile,Op as initBlurUp,Up as initAllBlurUp,Vi as imgDirective,Ik as imageDirective,Hn as hydrateTemplateStream,Gn as hydrateTemplate,go as hydrateIslands,$g as hydrateIsland,In as hydrateFragment,ah as hydrateByStrategy,bh as hydrateAll,zo as hydrate,Rn as htmlResponse,cg as hoistLeadingHeadTags,Qf as hoistColorModeBootScript,ga as heatmapDirective,Di as hashString,_e as hashFilePath,Bi as hashFile,Ci as hashBuffer,Gf as hasVueTemplateSyntax,df as hasVariables,Eo as hasStore,ab as hasPlaceholders,jk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,fg as hasDocumentShell,ph as hasDirectives,h as hasDOMSupport,Bk as handleImageRequest,qq as handleError,Gq as h,xk as groupVariantsByFormat,Uo as grayscale,Kn as gitHash,em as getUnusedDirectives,Vd as getTranslationSync,Od as getTranslationCacheStats,Wd as getTranslationAsync,be as getTranslation,ek as getTotalSize,qp as getTimeUntilExpiry,lg as getStoreScript,Fo as getStoreNames,Do as getStore,Zj as getStorageSize,Yj as getStorageKeys,Ih as getSourceLineInfo,zh as getSharedTranspiler,g as getScreenReaderOnlyStyle,nj as getScopeAttribute,ze as getRouteParams,Ga as getPublicEnvDefine,Ha as getPublicEnv,nh as getPositionInfo,Za as getPlaceholderRegistry,Ai as getPlaceholderCacheStats,jd as getPageMeta,Oc as getNonce,zk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Pd as getLoadingState,Yd as getLoadingLocales,se as getImagePlaceholder,tk as getImageMetadata,yo as getHydrationRuntime,rl as getHydratedStoreState,Oj as getHmrServer,id as getHead,qo as getHMRHandler,mi as getFormatExtension,Fi as getFileMtime,wk as getFallbackVariant,Tb as getErrorMessage,Qb as getErrorLocale,$b as getErrorConfig,Wb as getErrorCodeName,Qh as getDirectives,Ph as getDirective,Qk as getCurrentInstance,Wc as getCspPreset,dd as getCspHeaderName,sb as getCrosswindServeAsset,Lh as getComponentCacheStats,Xi as getCachedVideoResult,up as getCachedSignature,Ve as getCachedSignalsRuntime,We as getCachedRouterScript,yi as getCachedPlaceholder,Mi as getCachedImageResult,Gi as getCached,Ji as getCacheStats,Tf as getBuildId,om as getBroadcastServer,li as getBestVariant,eb as getAllFilters,$h as generateWidthSrcset,Qg as generateVirtualListCSS,$p as generateVideoPreview,Ld as generateValidationScript,aq as generateUploadRuntime,fm as generateTreeShakenBundle,vg as generateTransitionRuntime,ug as generateTransitionCSS,$i as generateThumbnails,ri as generateThumbhashPlaceholder,Rm as generateTemplatesDocs,Bg as generateSuspenseRuntime,Ag as generateSuspenseCSS,to as generateStateScript,ji as generateSrcsetData,Qi as generateSrcset,uk as generateSrcSet,aj as generateSpriteSheet,iq as generateSpaShell,ki as generateSourceTags,fi as generateSizesFromBreakpoints,ei as generateSizesAttribute,vk as generateSizes,xf as generateSitemapIndex,Uq as generateSitemap,Dp as generateSimpleMediaPicker,xp as generateSignatureRuntime,Pe as generateSignalsRuntimeDev,Oe as generateSignalsRuntime,Va as generateServerDataBridge,kj as generateScopeId,uj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,zf as generateRobotsTxt,Vq as generateRobots,Pi as generateResponsiveVariants,qj as generateReactiveWebComponentTS,pj as generateReactiveWebComponent,sj as generateReactiveRuntime,rj as generateReactiveMixin,_i as generatePoster,xi as generatePlaceholderStyle,wi as generatePlaceholderCSS,qi as generatePlaceholder,_g as generatePartialHydrationCSS,Nc as generateNonce,fk as generateNetlifyToml,cq as generateMinifiedMediaRuntime,bq as generateMediaRuntime,Cp as generateMediaManagerEmbed,Yl as generateManifest,lo as generateLoadingIndicatorHtml,Np as generateLazyLoadRuntime,Ql as generateLayoutTypes,ti as generateLQIP,Lg as generateKeepAliveRuntime,Kg as generateKeepAliveCSS,fh as generateIslandManifest,_p as generateImagePreview,Mk as generateImageManifest,xo as generateHydrationScript,re as generateHydrationRuntime,Ao as generateHydrationCSS,Ug as generateHydrationBootstrap,Jj as generateHotReloadScript,ea as generateHeatmapScript,oo as generateHMRClientScript,bj as generateHLSManifest,uo as generateEventBindings,di as generateDprSrcsetWithVariableQuality,ci as generateDprSrcset,dg as generateDocumentShell,Wm as generateDocs,Sm as generateDirectivesDocs,Vh as generateDirectiveRuntime,Af as generateDefaultRobotsTxt,cj as generateDASHManifest,Rc as generateCspMetaTag,Qc as generateCspHeader,ub as generateCrosswindCSS,vq as generateCompositionRuntime,Qm as generateComponentsDocs,Vg as generateComponentManifest,Om as generateComponentDoc,vi as generateColorPlaceholder,Nf as generateColorModeBootScript,hl as generateClientRuntime,Ei as generateCacheKey,Ta as generateBrowserAutoImportDestructuring,Vp as generateBlurUpRuntime,Wp as generateBlurUpCSS,yb as generateBindingsRuntime,ai as generateAutoWidthSrcset,Sa as generateAutoImportDestructuring,Gg as generateAsyncComponentRuntime,Fg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Ab as generateAnalyticsScript,fo as formatTypecheckDiagnostics,_n as formatTypeErrors,tn as formatStxContent,dk as formatSize,O as formatRoutes,un as formatMarkdownContent,Ub as formatLocalizedError,$d as formatICU,bc as formatFilePath,ic as formatError,Sq as formatDoctorReport,Tm as formatDocsAsMarkdown,Vm as formatDocsAsJson,Um as formatDocsAsHtml,bp as format,jm as foldConstants,ap as flipVertical,$o as flipHorizontal,Rl as fingerprint,co as findRuntimeTypeDeclarations,Qq as findPantryPackage,Dc as findMatchingEndTag,zc as findMatchingDelimiter,Ea as findInterpolationEnd,Fc as findIfBlocks,Ic as findExpressions,N as findErrorPage,Gc as findDirectiveBlocks,gm as findDeadCode,gm as findDeadBranches,Jm as findContainerRegion,Pm as findComponentFiles,ur as findCommonDir,ck as filterRequiredFiles,Gh as fileExists,af as extractVariables,Wl as extractTemplateExpressions,je as extractStreamBoundaries,vo as extractState,vh as extractSlotContent,cf as extractScriptFromTemplate,Vl as extractScriptBlocks,_a as extractPlaceholders,Cc as extractParenthesizedExpression,Gb as extractPageResponseStatus,ca as extractLayoutMetadata,ui as extractDominantColor,Lc as extractDirectiveParams,qh as extractDirectiveNames,Ml as extractContainerContent,Mm as extractComponentProps,Wg as extractComponentName,Nm as extractComponentDescription,tb as extractClassNames,Ua as extractBridgeData,Xg as extractBoundProps,Ac as extractBalancedExpression,Oa as extractAndStripCssImports,oj as extractAndScopeStyles,Ba as extractAndProcessEvents,Sj as externalizeSharedAssets,Tj as externalizeRepeatedAssets,Rj as externalizeHtml,ob as evaluateExpression,im as evaluateConstant,Ob as evaluateAuthExpression,hb as escapeHtmlValue,gb as escapeHtml,oc as errorRecovery,qc as errorLogger,qg as ensureTeleportTargets,hg as ensureDocumentShell,Hd as enhancedValidationRules,Km as enableDevTools,hm as eliminateDeadCode,Ce as effect,ip as dprUrls,Xm as docsCommand,Ol as discoverLayoutNames,Mp as disconnectObserver,Lm as disableDevTools,rc as devHelpers,Hl as detectShell,Zm as detectRuntime,gk as detectProjectConfig,ni as detectFormat,bm as detectBuildMode,Be as derived,kk as deploy,Cj as defineStxConfig,Io as defineStore,sq as defineSlots,er as defineSiteConfig,ir as definePropsWithValidation,hr as defineProps,wj as definePlugin,pd as definePageMeta,R as defineMiddleware,hh as defineForm,nq as defineExpose,mq as defineEmits,Sh as defineDirective,Iq as defineCustomElement,Fn as defineConfig,Th as defineClientDirective,Dg as defineAsyncComponent,dq as defaultMediaConfig,Ok as defaultImageConfig,Md as defaultI18nConfig,da as defaultHeatmapConfig,yd as defaultFormClasses,bb as defaultFilters,fd as defaultCspConfig,yj as defaultConfig,sr as default,qb as deepMergeThemes,Jf as dedupeScopedStyles,si as decodeThumbhash,ad as cspNonceDirective,$c as cspDirective,Tp as crossfadeTransition,Oo as crop,Og as createVirtualList,hj as createVideoDirective,kn as createVercelHandler,Xn as createTypeChecker,de as createTranslateFilter,fn as createTextEncoderStream,Hq as createStxApp,en as createStreamingResponse,le as createStreamRenderer,Go as createStore,U as createStorageManager,S as createServerCookieManager,Sk as createScope,yg as createSSRSuspense,ye as createRouter,$ as createRouteLocation,Vn as createRoute,Tk as createRef,Uk as createReactive,uq as createProvideContext,Mn as createProject,En as createProductionBuild,Ya as createPlaceholder,nm as createOptimizedBuild,ln as createNetlifyHandler,_j as createNetlifyClient,aa as createMiddlewareContext,Un as createMiddleware,Kp as createLazyObserver,Ig as createKeepAliveCache,bn as createKVNamespace,Yg as createIslandRegistry,Ui as createImgDirective,Jk as createImagePlugin,Ck as createImageHandler,Hk as createImageDirective,ia as createHeatmapAggregator,bk as createFileManifest,an as createEnvAccessor,lc as createEnhancedError,dn as createEdgeHandler,cn as createEdgeCache,Jh as createDetailedErrorMessage,jn as createDenoHandler,hk as createDefaultNetlifyConfig,ed as createCspHeaders,nn as createCookie,Vk as createComputed,Rk as createComponentInstance,hn as createCloudflareHandler,T as createClientCookieManager,Uh as createBuiltinDirectives,Hq as createApp,F as createAnimationTimeline,Ro as cover,bf as convertToCommonJS,Yo as contrast,Qo as contain,kc as consoleError,_b as configureErrorHandling,Bj as config,Vk as computed,Hm as compressResponse,Cf as composerPattern,Bf as composer,Jl as composeShellWithPage,Cm as componentDirective,Eh as componentClientSignalNames,Xl as compileTemplate,a as collectRepeatedFlag,ak as collectDeployFiles,Zi as clearVideoCache,Nd as clearTranslationCache,mg as clearStoreCache,Xj as clearStorage,vp as clearSignatureCache,zi as clearPlaceholderCache,jf as clearOnceStore,Pc as clearNonce,Y as clearMiddleware,ue as clearImagePlaceholders,Gk as clearImageCache,Sb as clearErrorMessages,Xe as clearDevCaches,fb as clearCustomFilters,Ef as clearComposers,ng as clearComposableCache,Kh as clearComponentCache,Ii as clearCache,ko as cleanupLoadingIndicator,Al as classifyScript,Bl as classifyAllScripts,Yn as checkTemplateFile,Zn as checkTemplate,Ye as checkCache,sp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,xm as channel,sn as captureScreenshots,rn as captureScreenshot,Zd as cancelPendingLoads,$j as calculateSha1,bi as calculateOptimalWidths,Ze as cacheTemplate,jj as buildWebComponents,$n as buildVirtualSource,fq as buildViews,Ko as buildUrl,fe as buildSuspenseResolveScript,dr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Sl as buildRuntimeAsset,Tl as buildRouterAsset,cr as buildLangPickerScript,hi as buildImageUrl,_f as buildHtmlAttrs,$l as buildForProduction,Em as buildComponentLibrary,tp as buildAuthParams,am as buildApp,ar as buildAlternateLinks,Dn as build,vm as broadcastPrivate,wm as broadcastPresence,sm as broadcast,Xo as brightness,So as blur,ya as blankInertHtmlRegions,np as batchSignUrls,De as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,dp as auto,e as attributeValue,Ul as assetTags,za as asInvocableStatement,pr as arrayOf,Zq as applyTranslations,Oi as applyTransformations,wh as applySlots,Bm as applyPropDefaults,gp as applyPreset,ag as applyHtmlAttrs,ud as applyHead,nb as applyFilters,Fl as appendVary,Vc as apiCspPreset,y as animationGroupDirective,dj as analyzeVideo,dm as analyzeUsage,yl as analyzeTemplate,zl as analyzeProject,dm as analyzeDirectiveUsage,Cb as analyticsDirective,Pn as addStore,On as addPage,Zc as addNonceToInlineContent,Qn as addLayout,Nn as addComponent,Bn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Ue as __setSignalsGeneratorsForTest,Uf as __setBuildIdForTest,Wi as VideoProcessorCache,ih as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,yc as Tokenizer,Wn as TemplateTypeChecker,vn as TEMPLATE_PRESETS,hc as StxValidationError,dc as StxSyntaxError,fc as StxSecurityError,ec as StxRuntimeError,gc as StxFileError,cc as StxError,Dq as Show,ge as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Qa as STX_AUTO_IMPORTS,Ja as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Cl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Db as RESPONSE_STATUS_KEY,Eb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Cn as ProductionBuild,Fq as Portal,Ln as PROJECT_TEMPLATES,fp as PRESETS,na as NON_CLIENT_PRIMITIVES,Bo as MemorySessionStore,_h as MIME_TYPES,Xh as MEDIA_DEFAULT_WIDTHS,Zh as MEDIA_DEFAULT_FORMATS,Nl as LAYOUT_TYPES_FILE,Li as ImageProcessorCache,Ak as ImageProcessingError,wo as HydrationRuntime,Ij as HotReloadServer,ha as HeatmapAggregator,Yf as HTML_CLASS_MARKER,Xf as HTML_ATTRS_MARKER,wq as Fragment,Eq as For,Dl as FRAGMENT_CACHE_CONTROL,pc as ErrorLogger,Vb as ErrorCodes,Qj as EXTERNALIZED_ASSET_DIR,mk as DeployError,nk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ia as DEFAULT_STATE_DIR,pk as DEFAULT_QUALITY,oi as DEFAULT_PLACEHOLDER_OPTIONS,ok as DEFAULT_FORMATS,Yh as DEFAULT_DPR_VALUES,no as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,gi as COMMON_SIZES,Lf as COLOR_MODE_BOOT_MARKER,Mf as COLOR_MODE_BOOT_GLOBAL,Wf as CLOAK_STYLE,zm as BroadcastServer,ym as Broadcast,Rf as BUILD_ID_META,Sf as BUILD_ID_HEADER,pi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Pq as $path};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{im as E,jm as M,wq as T}from"./chunk-
|
|
2
|
+
import{im as E,jm as M,wq as T}from"./chunk-spnkgsft.js";import{Au as d,Cu as c,Du as i}from"./chunk-r2kag877.js";import{Ku as m,Nu as p}from"./chunk-j4ze77e0.js";var y=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function f(z,Q,F){let J={fullTag:F,content:Q,attrs:z};if(/\bserver\b/.test(z))return{...J,type:"server"};if(/\bdata-stx-scoped\b/.test(z))return{...J,type:"client"};if(y.test(Q))return{...J,type:"signals"};if(/\bclient\b/.test(z)||/\btype\s*=\s*["']module["']/.test(z)||/\bsrc\s*=/.test(z))return{...J,type:"client"};return{...J,type:"server"}}var g=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function P(z){let Q=[],F=[],J=[],$=0;while($<z.length){let Y=z.indexOf("<",$);if(Y===-1)break;let K=M(z,Y);if(K>Y){$=K;continue}let Z=E(z,Y);if(Z>Y){let B=z.slice(Y,Z),U=g.exec(B);if(U){let X=f(U[1],U[2],B);switch(X.type){case"signals":Q.push(X);break;case"client":F.push(X);break;case"server":J.push(X);break}}$=Z;continue}$=Y+(z.startsWith("<!--",Y)?4:1)}return{signals:Q,client:F,server:J}}var s="X-STX-Router",a="private, no-store";function R(z){return z.headers.get("X-STX-Router")==="true"}function u(z,Q){if(!z)return Q;return z.split(",").some((J)=>J.trim().toLowerCase()===Q.toLowerCase())?z:`${z}, ${Q}`}function t(z){return{Vary:u(z,"X-STX-Router")}}import L from"path";d();var h="stx-page-head:",o=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,I=null;function r(){if(I!==null)return I;try{let{getRouterScript:z}=(i(),m(c));I=`<script>${z()}</script>`}catch{I=""}return I}async function Yz(z,Q){if(Q===!1)return null;if(Q&&typeof Q==="string"){let J=L.resolve(z,Q);if(await Bun.file(J).exists())return J;return null}let F=L.join(z,"app.stx");if(await Bun.file(F).exists())return F;return null}async function Zz(z,Q){try{let F=await Bun.file(z).text(),J=F,$=F.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)J=$[1].trim();let Y=P(F),K=[...Y.client.map((j)=>j.fullTag),...Y.signals.map((j)=>j.fullTag)],Z=[],B=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,U;while((U=B.exec(F))!==null)Z.push(U[0]);let X=J;for(let j of Y.server)X=X.replace(j.fullTag,"");for(let j of Y.client)X=X.replace(j.fullTag,"");X=X.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let W="<!--__STX_PAGE_SLOT__-->";if(X=X.replace(/<slot\s*\/>/gi,W).replace(/<slot\s*>\s*<\/slot>/gi,W),!X.includes(W))return console.warn(`[stx] Shell ${z} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:q,extractVariables:k,defaultConfig:v,loadStxConfig:H}=await import("./chunk-xrx24ndt.js"),w=await H(),A={__filename:z,__dirname:L.dirname(z)};for(let j of K){let N=j.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(N&&!j.includes("client")&&!j.includes('type="module"'))await k(N[1],A,z)}let V=await q(X,A,z,{...v,...w,...Q},new Set),G=V.indexOf(W);if(G===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:V.substring(0,G),afterSlot:V.substring(G+W.length),filePath:z,shellScripts:K,shellStyles:Z}}catch(F){return console.error(`[stx] Error processing shell ${z}:`,F),null}}function $z(z,Q,F){let J,$="",Y=Q.match(o);if(Y){Q=Q.replace(Y[0],"");try{let X=Buffer.from(Y[1],"base64").toString("utf8"),W=X.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(W)J=W[1].trim();$=X.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let K=F||J||"stx App",Z=r(),B="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$s as c,Zs as a,_s as b,at as d,bt as e,ct as f,dt as g}from"./chunk-
|
|
2
|
+
import{$s as c,Zs as a,_s as b,at as d,bt as e,ct as f,dt as g}from"./chunk-msxcd1kp.js";import"./chunk-j4ze77e0.js";export{g as warmImagePlaceholders,f as svgDataUrl,d as setImagePlaceholder,b as placeholdersWarmed,e as meshSvg,a as getImagePlaceholder,c as clearImagePlaceholders};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{_l as F,bm as V,pm as I}from"./chunk-
|
|
2
|
+
import{_l as F,bm as V,pm as I}from"./chunk-spnkgsft.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
|
|
3
3
|
export{w as Dh,C as Eh,N as Fh,A as Gh,E as Hh,M as Ih};
|