@stacksjs/stx 0.2.785 → 0.2.787

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/{chunk-bj1dmqa1.js → chunk-0jp3tt5c.js} +1 -1
  2. package/dist/{chunk-cfpw4c6b.js → chunk-0r61tkfe.js} +2 -2
  3. package/dist/chunk-0s25gyy5.js +2 -0
  4. package/dist/{chunk-m4mpyq3d.js → chunk-14ft0zc7.js} +3 -3
  5. package/dist/chunk-1brkqd5f.js +2 -0
  6. package/dist/chunk-1pdaqca9.js +2 -0
  7. package/dist/{chunk-9tec9eap.js → chunk-1y9ez7nz.js} +2 -2
  8. package/dist/{chunk-k0aejzg9.js → chunk-2p4yad7w.js} +4 -4
  9. package/dist/chunk-2scyqqt3.js +2 -0
  10. package/dist/{chunk-x27rzb5w.js → chunk-2v75eyf8.js} +1 -1
  11. package/dist/chunk-2vxh8b8g.js +2 -0
  12. package/dist/chunk-33na85q2.js +2 -0
  13. package/dist/{chunk-qby3e5nm.js → chunk-3gn1t0pa.js} +29 -29
  14. package/dist/chunk-3n03m9w0.js +2 -0
  15. package/dist/chunk-3t4t655h.js +2 -0
  16. package/dist/{chunk-3ywnsdha.js → chunk-40ambk0h.js} +4 -4
  17. package/dist/chunk-43ynckvh.js +2 -0
  18. package/dist/chunk-44bm0pty.js +2 -0
  19. package/dist/chunk-498286bb.js +2 -0
  20. package/dist/{chunk-e1gxykm8.js → chunk-4s5q1aea.js} +4 -4
  21. package/dist/chunk-4v22nj67.js +2 -0
  22. package/dist/chunk-549zk2p7.js +2 -0
  23. package/dist/{chunk-ra8f8sm2.js → chunk-59tbk9qj.js} +4 -4
  24. package/dist/{chunk-w9d18r1t.js → chunk-5a92srn2.js} +1 -1
  25. package/dist/{chunk-cz8mka1b.js → chunk-5j619xgb.js} +2 -2
  26. package/dist/chunk-5pgv8jh1.js +2 -0
  27. package/dist/chunk-699t603m.js +2 -0
  28. package/dist/chunk-6f6xqzhb.js +2 -0
  29. package/dist/{chunk-r1jzbqr3.js → chunk-6v4b0xc1.js} +5 -5
  30. package/dist/{chunk-ya150593.js → chunk-6w935vyf.js} +2 -2
  31. package/dist/{chunk-bgc2fm73.js → chunk-74rf78w8.js} +2 -2
  32. package/dist/chunk-76ngpa25.js +2 -0
  33. package/dist/{chunk-gm9cag4s.js → chunk-7gvaz6ye.js} +3 -3
  34. package/dist/{chunk-et1vz3wd.js → chunk-7pk3t82j.js} +2 -2
  35. package/dist/{chunk-rzb6bdby.js → chunk-7wkz9sz5.js} +6 -6
  36. package/dist/chunk-8pphy0p1.js +2 -0
  37. package/dist/{chunk-tx628jpx.js → chunk-8w54jyt7.js} +2 -2
  38. package/dist/{chunk-2z69cw5m.js → chunk-8ycz8ss9.js} +5 -5
  39. package/dist/{chunk-bq9xf8nq.js → chunk-94gyfwpz.js} +8 -8
  40. package/dist/{chunk-tk08pr4b.js → chunk-992nsr70.js} +2 -2
  41. package/dist/chunk-9th217rf.js +2 -0
  42. package/dist/{chunk-y5f04xtb.js → chunk-9tqa8xvf.js} +2 -2
  43. package/dist/chunk-9wmjmas8.js +2 -0
  44. package/dist/{chunk-x8anspa5.js → chunk-agtvdtx4.js} +2 -2
  45. package/dist/{chunk-yzs2afn7.js → chunk-b4r7d6me.js} +3 -3
  46. package/dist/chunk-bgybw1k5.js +2 -0
  47. package/dist/chunk-bm7xr4xh.js +3 -0
  48. package/dist/{chunk-4wc5pc19.js → chunk-bwcj9z19.js} +2 -2
  49. package/dist/chunk-cagvn9tf.js +2 -0
  50. package/dist/chunk-cdsv4yrv.js +2 -0
  51. package/dist/chunk-cg5ar6y0.js +2 -0
  52. package/dist/{chunk-hpt354jm.js → chunk-d3pemcp8.js} +5 -5
  53. package/dist/chunk-d5e47gr4.js +2 -0
  54. package/dist/chunk-d910ytt2.js +2 -0
  55. package/dist/chunk-d9p7xaj7.js +2 -0
  56. package/dist/{chunk-y38swh5t.js → chunk-dhqp3z4w.js} +2 -2
  57. package/dist/chunk-dtc8expv.js +2 -0
  58. package/dist/{chunk-kf8hzvb7.js → chunk-e3wmnjz8.js} +3 -3
  59. package/dist/{chunk-6mj7fx2x.js → chunk-e44zheax.js} +3 -3
  60. package/dist/chunk-ebbzq4va.js +2 -0
  61. package/dist/chunk-eeqr09wt.js +2 -0
  62. package/dist/{chunk-z2m9p8xe.js → chunk-es006emk.js} +2 -2
  63. package/dist/chunk-fkkdt6sj.js +2 -0
  64. package/dist/chunk-fxy0cq7h.js +2 -0
  65. package/dist/chunk-g6smtcc0.js +2 -0
  66. package/dist/{chunk-9f6qx8b9.js → chunk-gb65t4n1.js} +2 -2
  67. package/dist/{chunk-2b34ce4g.js → chunk-gj5hjak1.js} +1 -1
  68. package/dist/{chunk-eapt899m.js → chunk-gv3bfkdm.js} +5 -5
  69. package/dist/{chunk-ady8cnpb.js → chunk-h0c6jtrj.js} +4 -4
  70. package/dist/{chunk-zxfptbac.js → chunk-h0jnatd4.js} +2 -2
  71. package/dist/{chunk-ghfw9cgr.js → chunk-h1cep4w8.js} +3 -3
  72. package/dist/{chunk-7rtcmxhd.js → chunk-hc8htggj.js} +4 -4
  73. package/dist/{chunk-3vzee3z9.js → chunk-hf2h0shz.js} +3 -3
  74. package/dist/{chunk-dt4435zf.js → chunk-hqmgvan6.js} +2 -2
  75. package/dist/{chunk-5behs1dk.js → chunk-hzmhh3k5.js} +1 -1
  76. package/dist/chunk-k7w05cjv.js +2 -0
  77. package/dist/{chunk-20afyff6.js → chunk-kce6pzmj.js} +2 -2
  78. package/dist/chunk-kk8vqwe4.js +2 -0
  79. package/dist/chunk-kn38mjpp.js +2 -0
  80. package/dist/{chunk-7d7aj7rh.js → chunk-kq1zc10a.js} +2 -2
  81. package/dist/chunk-kvmpc0sg.js +2 -0
  82. package/dist/chunk-memz2xdn.js +2 -0
  83. package/dist/{chunk-0q2v7k1m.js → chunk-mqr61kqn.js} +2 -2
  84. package/dist/chunk-n2cq11e3.js +2 -0
  85. package/dist/{chunk-ss2mk7zm.js → chunk-n70gbh4y.js} +9 -9
  86. package/dist/chunk-nf2bzqaw.js +2 -0
  87. package/dist/{chunk-mhkftysj.js → chunk-npfs1zyn.js} +3 -3
  88. package/dist/{chunk-05xa75nb.js → chunk-nrnkqqmb.js} +5 -5
  89. package/dist/{chunk-tmd1qwx7.js → chunk-nzj7mkvm.js} +61 -61
  90. package/dist/{chunk-7w1373q6.js → chunk-p0f5vygc.js} +5 -5
  91. package/dist/{chunk-9ct3gbyv.js → chunk-pa9zfbh6.js} +6 -6
  92. package/dist/{chunk-j2qv5ra2.js → chunk-q14d714d.js} +2 -2
  93. package/dist/chunk-qf86f6c5.js +2 -0
  94. package/dist/{chunk-tyjzye2d.js → chunk-qp3xd98j.js} +1 -1
  95. package/dist/chunk-qrnws56v.js +2 -0
  96. package/dist/{chunk-t3wfrb5x.js → chunk-qsqha895.js} +16 -16
  97. package/dist/{chunk-he85ksa7.js → chunk-qv85c3qy.js} +1 -1
  98. package/dist/{chunk-dyn8hwy1.js → chunk-qvc6d3ka.js} +4 -4
  99. package/dist/chunk-qzb0v08n.js +2 -0
  100. package/dist/{chunk-yazy1vk7.js → chunk-rkpd5pqc.js} +5 -5
  101. package/dist/chunk-rnaeezmp.js +2 -0
  102. package/dist/{chunk-gbx5vw81.js → chunk-rrb9m2q2.js} +5 -5
  103. package/dist/{chunk-e0ze9x4e.js → chunk-rwbcxzw2.js} +2 -2
  104. package/dist/chunk-s18ecm80.js +2 -0
  105. package/dist/chunk-s1wdzttg.js +2 -0
  106. package/dist/{chunk-mjpv9r5m.js → chunk-t0kh3ev1.js} +10 -10
  107. package/dist/chunk-t2hscbrh.js +2 -0
  108. package/dist/chunk-tbnyx5d2.js +2 -0
  109. package/dist/chunk-th5afzmv.js +2 -0
  110. package/dist/chunk-tktkj2dc.js +2 -0
  111. package/dist/{chunk-5mng4x26.js → chunk-tnkxww7b.js} +5 -5
  112. package/dist/{chunk-td3qp5my.js → chunk-tnn0br4w.js} +3 -3
  113. package/dist/{chunk-qfcn4btf.js → chunk-v1z6n7wz.js} +1 -1
  114. package/dist/{chunk-w6gfpxz3.js → chunk-v6z3ak8h.js} +1 -1
  115. package/dist/{chunk-vct6dec8.js → chunk-v8rfeev5.js} +2 -2
  116. package/dist/{chunk-yzapw5rk.js → chunk-vgtbds23.js} +13 -13
  117. package/dist/chunk-vgzfsh1z.js +2 -0
  118. package/dist/{chunk-416jy1m5.js → chunk-vkn133cs.js} +2 -2
  119. package/dist/{chunk-kk7seavb.js → chunk-vr6jccpy.js} +3 -3
  120. package/dist/{chunk-sxwgq49z.js → chunk-vrbcdds3.js} +1 -1
  121. package/dist/{chunk-wj78td69.js → chunk-w5hhqjwr.js} +1 -1
  122. package/dist/{chunk-8yjmf3gv.js → chunk-w6emseps.js} +5 -5
  123. package/dist/{chunk-x8js27hd.js → chunk-w9nwb8r3.js} +6 -6
  124. package/dist/chunk-wdqgf1hh.js +2 -0
  125. package/dist/chunk-wqjdzdaj.js +2 -0
  126. package/dist/chunk-wr3adhd8.js +2 -0
  127. package/dist/{chunk-rhpn4s5s.js → chunk-wrd3aygb.js} +1 -1
  128. package/dist/chunk-x8pehmac.js +2 -0
  129. package/dist/{chunk-9ba2z5fe.js → chunk-ymb0h1b9.js} +4 -4
  130. package/dist/chunk-zdwnzq78.js +2 -0
  131. package/dist/chunk-zyf6737j.js +2 -0
  132. package/dist/cli.js +12 -12
  133. package/dist/craft-entry.js +2 -2
  134. package/dist/craft.js +2 -2
  135. package/dist/expressions.js +2 -2
  136. package/dist/native/bridge/protocol.d.ts +2 -0
  137. package/dist/native/runtime/jsc-globals.js +16 -0
  138. package/dist/native/runtime/native-host.js +41 -6
  139. package/dist/native/runtime/native-media.d.ts +39 -0
  140. package/dist/native/runtime/native-media.js +144 -0
  141. package/dist/native/runtime/shared-screen.js +3 -0
  142. package/dist/native/testing.js +7 -2
  143. package/dist/pwa.js +3 -3
  144. package/dist/ssg.js +3 -3
  145. package/dist/utils.d.ts +1 -8
  146. package/dist/utils.js +11 -3
  147. package/package.json +5 -5
  148. package/dist/chunk-0vm1ys7q.js +0 -2
  149. package/dist/chunk-2vnhyter.js +0 -2
  150. package/dist/chunk-462dyzmx.js +0 -2
  151. package/dist/chunk-47qestfz.js +0 -2
  152. package/dist/chunk-4kx7pw6x.js +0 -2
  153. package/dist/chunk-4te06cpw.js +0 -2
  154. package/dist/chunk-4wsdx9vy.js +0 -2
  155. package/dist/chunk-4yr14p2w.js +0 -2
  156. package/dist/chunk-65s4mjxb.js +0 -2
  157. package/dist/chunk-713az4kg.js +0 -2
  158. package/dist/chunk-7y2h7nfd.js +0 -2
  159. package/dist/chunk-7y6ad89y.js +0 -2
  160. package/dist/chunk-8ds59ttd.js +0 -2
  161. package/dist/chunk-8pyyqev1.js +0 -2
  162. package/dist/chunk-9896204h.js +0 -2
  163. package/dist/chunk-9fh3h9p3.js +0 -2
  164. package/dist/chunk-9qwkyt81.js +0 -2
  165. package/dist/chunk-bancsgvx.js +0 -2
  166. package/dist/chunk-c91y14ae.js +0 -2
  167. package/dist/chunk-cpq9b0fx.js +0 -2
  168. package/dist/chunk-cqv28wmk.js +0 -2
  169. package/dist/chunk-d1ngw481.js +0 -2
  170. package/dist/chunk-dcnjpjc1.js +0 -2
  171. package/dist/chunk-dxp022r0.js +0 -2
  172. package/dist/chunk-e3y78men.js +0 -2
  173. package/dist/chunk-evshahyj.js +0 -2
  174. package/dist/chunk-gbgbhpms.js +0 -2
  175. package/dist/chunk-gd6hxe85.js +0 -2
  176. package/dist/chunk-hef2dr38.js +0 -2
  177. package/dist/chunk-jazkazdy.js +0 -2
  178. package/dist/chunk-k8srkymx.js +0 -2
  179. package/dist/chunk-k9dg3nyy.js +0 -2
  180. package/dist/chunk-m627y6xq.js +0 -2
  181. package/dist/chunk-m90wyzhd.js +0 -2
  182. package/dist/chunk-mcevnfnx.js +0 -2
  183. package/dist/chunk-mxbzqyvp.js +0 -2
  184. package/dist/chunk-nx20kccb.js +0 -2
  185. package/dist/chunk-p43hw6ef.js +0 -2
  186. package/dist/chunk-pxfrshr6.js +0 -2
  187. package/dist/chunk-q0v6y356.js +0 -2
  188. package/dist/chunk-q71qqjy7.js +0 -2
  189. package/dist/chunk-qe9dqhpr.js +0 -2
  190. package/dist/chunk-s53psb1j.js +0 -2
  191. package/dist/chunk-t482tgm6.js +0 -2
  192. package/dist/chunk-t619ap22.js +0 -2
  193. package/dist/chunk-t61m22mj.js +0 -2
  194. package/dist/chunk-thajeb3z.js +0 -2
  195. package/dist/chunk-wm8wz183.js +0 -2
  196. package/dist/chunk-x0e0pcn0.js +0 -2
  197. package/dist/chunk-x756yzrc.js +0 -2
  198. package/dist/chunk-xgvsaj4e.js +0 -2
  199. package/dist/chunk-xq2tfg4v.js +0 -2
  200. package/dist/chunk-ycyn0jrr.js +0 -2
  201. package/dist/chunk-yehbnf0t.js +0 -2
  202. package/dist/chunk-yrdxvphr.js +0 -2
  203. package/dist/chunk-z9678kfn.js +0 -2
  204. package/dist/chunk-zh8w0nb6.js +0 -2
  205. package/dist/chunk-zj3dz854.js +0 -3
@@ -0,0 +1,144 @@
1
+ function length(value) {
2
+ const match = /^(-?\d*\.?\d+)(px|em|rem)?$/.exec(value.trim());
3
+ if (!match)
4
+ return null;
5
+ const amount = Number(match[1]);
6
+ return match[2] === "em" || match[2] === "rem" ? amount * 16 : amount;
7
+ }
8
+ function feature(text, state) {
9
+ const [rawName, rawValue] = text.split(":", 2), name = rawName.trim().toLowerCase(), value = rawValue?.trim().toLowerCase(), size = (dimension, bound) => {
10
+ const actual = dimension === "width" ? state.width : state.height;
11
+ if (value === void 0)
12
+ return actual > 0;
13
+ const wanted = length(value);
14
+ if (wanted === null)
15
+ return !1;
16
+ if (bound === "min")
17
+ return actual >= wanted;
18
+ if (bound === "max")
19
+ return actual <= wanted;
20
+ return actual === wanted;
21
+ };
22
+ switch (name) {
23
+ case "width":
24
+ return size("width", null);
25
+ case "min-width":
26
+ return size("width", "min");
27
+ case "max-width":
28
+ return size("width", "max");
29
+ case "height":
30
+ return size("height", null);
31
+ case "min-height":
32
+ return size("height", "min");
33
+ case "max-height":
34
+ return size("height", "max");
35
+ case "orientation": {
36
+ const landscape = state.width > state.height && state.height > 0;
37
+ return value === (landscape ? "landscape" : "portrait");
38
+ }
39
+ case "prefers-color-scheme":
40
+ return value === state.colorScheme;
41
+ case "prefers-reduced-motion":
42
+ return value === void 0 ? state.reducedMotion : value === (state.reducedMotion ? "reduce" : "no-preference");
43
+ case "hover":
44
+ case "any-hover":
45
+ return value === void 0 ? state.pointer : value === (state.pointer ? "hover" : "none");
46
+ case "pointer":
47
+ case "any-pointer":
48
+ return value === void 0 ? !0 : value === (state.pointer ? "fine" : "coarse");
49
+ default:
50
+ return !1;
51
+ }
52
+ }
53
+ export function evaluateMediaQuery(query, state) {
54
+ return query.split(",").some((part) => {
55
+ let text = part.trim().toLowerCase();
56
+ if (!text)
57
+ return !1;
58
+ let negate = !1;
59
+ if (text.startsWith("not ")) {
60
+ negate = !0;
61
+ text = text.slice(4).trim();
62
+ } else if (text.startsWith("only "))
63
+ text = text.slice(5).trim();
64
+ const holds = text.split(/\s+and\s+/).every((term) => {
65
+ const trimmed = term.trim();
66
+ if (trimmed.startsWith("(") && trimmed.endsWith(")"))
67
+ return feature(trimmed.slice(1, -1), state);
68
+ return trimmed === "all" || trimmed === "screen";
69
+ });
70
+ return negate ? !holds : holds;
71
+ });
72
+ }
73
+ export function createNativeMedia(initial = {}) {
74
+ const state = {
75
+ width: Math.max(0, Number(initial.width) || 0),
76
+ height: Math.max(0, Number(initial.height) || 0),
77
+ colorScheme: initial.colorScheme === "dark" ? "dark" : "light",
78
+ reducedMotion: initial.reducedMotion === !0,
79
+ pointer: initial.pointer === !0
80
+ }, watched = new Set;
81
+ function matchMedia(query) {
82
+ const media = String(query), entry = { list: null, matches: evaluateMediaQuery(media, state), listeners: new Set }, listen = (listener) => {
83
+ if (typeof listener !== "function")
84
+ return;
85
+ entry.listeners.add(listener);
86
+ watched.add(entry);
87
+ }, forget = (listener) => {
88
+ entry.listeners.delete(listener);
89
+ if (!entry.listeners.size && !entry.list.onchange)
90
+ watched.delete(entry);
91
+ };
92
+ let onchange = null;
93
+ entry.list = {
94
+ media,
95
+ get matches() {
96
+ return evaluateMediaQuery(media, state);
97
+ },
98
+ get onchange() {
99
+ return onchange;
100
+ },
101
+ set onchange(value) {
102
+ onchange = typeof value === "function" ? value : null;
103
+ if (onchange)
104
+ watched.add(entry);
105
+ else if (!entry.listeners.size)
106
+ watched.delete(entry);
107
+ },
108
+ addEventListener: (type, listener) => {
109
+ if (type === "change")
110
+ listen(listener);
111
+ },
112
+ removeEventListener: (type, listener) => {
113
+ if (type === "change")
114
+ forget(listener);
115
+ },
116
+ addListener: listen,
117
+ removeListener: forget
118
+ };
119
+ return entry.list;
120
+ }
121
+ function update(changes) {
122
+ if (changes.width !== void 0 && Number.isFinite(changes.width))
123
+ state.width = Math.max(0, changes.width);
124
+ if (changes.height !== void 0 && Number.isFinite(changes.height))
125
+ state.height = Math.max(0, changes.height);
126
+ if (changes.colorScheme === "light" || changes.colorScheme === "dark")
127
+ state.colorScheme = changes.colorScheme;
128
+ if (typeof changes.reducedMotion === "boolean")
129
+ state.reducedMotion = changes.reducedMotion;
130
+ if (typeof changes.pointer === "boolean")
131
+ state.pointer = changes.pointer;
132
+ for (const entry of [...watched]) {
133
+ const matches = evaluateMediaQuery(entry.list.media, state);
134
+ if (matches === entry.matches)
135
+ continue;
136
+ entry.matches = matches;
137
+ const event = { matches, media: entry.list.media };
138
+ entry.list.onchange?.(event);
139
+ for (const listener of [...entry.listeners])
140
+ listener(event);
141
+ }
142
+ }
143
+ return { matchMedia, update, state };
144
+ }
@@ -45,6 +45,7 @@ export function prepareSharedNativeScreen(document, manifest, bridge, options =
45
45
  if (scheme === "light" || scheme === "dark") {
46
46
  bridge.colorScheme = scheme;
47
47
  host.setColorScheme(scheme);
48
+ globalThis.__stxNativeMedia?.update({ colorScheme: scheme });
48
49
  }
49
50
  });
50
51
  protocol.on("VIEWPORT", (message) => {
@@ -52,6 +53,8 @@ export function prepareSharedNativeScreen(document, manifest, bridge, options =
52
53
  if (!Number.isFinite(width) || width < 0)
53
54
  return;
54
55
  bridge.viewportWidth = width;
56
+ const height = Number(message.payload?.height);
57
+ globalThis.__stxNativeMedia?.update({ width, ...Number.isFinite(height) && height >= 0 ? { height } : {} });
55
58
  host.setViewportWidth(width);
56
59
  });
57
60
  if (manifest.entries.find((entry) => entry.id === document.root.bindingId)?.bindings.some((binding) => binding.kind === "if" || binding.kind === "for"))
@@ -76,20 +76,24 @@ function answered(status, body) {
76
76
  }
77
77
  export function mountNativeScreen(code, screen, options = {}) {
78
78
  let ended = !1, online = !0;
79
- const timeouts = new Set, intervals = new Set, timers = {
79
+ const timeouts = new Set, immediateTimeouts = new Set, intervals = new Set, timers = {
80
80
  setTimeout: (run, ms, ...args) => {
81
81
  if (ended)
82
82
  return 0;
83
83
  const id = setTimeout((...rest) => {
84
84
  timeouts.delete(id);
85
+ immediateTimeouts.delete(id);
85
86
  if (!ended)
86
87
  run(...rest);
87
88
  }, ms, ...args);
88
89
  timeouts.add(id);
90
+ if ((ms ?? 0) <= 0)
91
+ immediateTimeouts.add(id);
89
92
  return id;
90
93
  },
91
94
  clearTimeout: (id) => {
92
95
  timeouts.delete(id);
96
+ immediateTimeouts.delete(id);
93
97
  clearTimeout(id);
94
98
  },
95
99
  setInterval: (run, ms, ...args) => {
@@ -412,6 +416,7 @@ export function mountNativeScreen(code, screen, options = {}) {
412
416
  for (const id of intervals)
413
417
  clearInterval(id);
414
418
  timeouts.clear();
419
+ immediateTimeouts.clear();
415
420
  intervals.clear();
416
421
  streams.forEach((stream) => stream.end());
417
422
  }
@@ -504,7 +509,7 @@ export function mountNativeScreen(code, screen, options = {}) {
504
509
  settle: async (ms = 30) => {
505
510
  const started = performance.now();
506
511
  await Bun.sleep(ms);
507
- while (performance.now() - started < 5000 && (fetching > 0 || performance.now() - answeredAt < ms))
512
+ while (!ended && performance.now() - started < 5000 && (fetching > 0 || performance.now() - answeredAt < ms || immediateTimeouts.size > 0))
508
513
  await Bun.sleep(5);
509
514
  if (mutationErrors.length) {
510
515
  const error = mutationErrors[0];
package/dist/pwa.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import{Zs,Ht,wl,Sg}from"./chunk-4wc5pc19.js";import{Ys,Ai,wg,vg,xg}from"./chunk-e1gxykm8.js";import{hl,yl,bl,yg,bg}from"./chunk-y38swh5t.js";import{Ue,Tn,Pi}from"./chunk-k4bdf0dw.js";import{kg,_g,Cg,Eg,Qs,cy}from"./chunk-et1vz3wd.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-evshahyj.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>
2
+ import{Zs,Ht,vl,kg}from"./chunk-bwcj9z19.js";import{Ys,Ai,vg,xg,Sg}from"./chunk-4s5q1aea.js";import{yl,bl,wl,bg,wg}from"./chunk-dhqp3z4w.js";import{Ue,Tn,Pi}from"./chunk-k4bdf0dw.js";import{_g,Cg,Eg,Tg,Qs,ly}from"./chunk-7pk3t82j.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-498286bb.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">
@@ -233,4 +233,4 @@ Icon generation requires the sharp package for image processing.`),e.success=!1,
233
233
  }, 5000);
234
234
  </script>
235
235
  </body>
236
- </html>`}function b(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=Ue(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=Zs(n,t);if(a){let s=Ht(n),l=w.join(t,s);await Bun.write(l,a),e.files.serviceWorker=l}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate service worker: ${s}`),e.success=!1}return e}function ae(n,t){return Ai(n,t)}function se(n){return n.pwa?.enabled===!0}export{S as APPLE_TOUCH_ICON_SIZES,v as DEFAULT_ICON_SIZES,P as FAVICON_SIZES,yl as auditBuildOutput,hl as auditConfig,re as buildPwaAssets,bl as calculateAuditResult,bg as formatAuditResult,Pi as formatSize,j as generateManifest,_ as generateManifestJson,vg as generateManifestLink,F as generateOfflinePage,Ue as generatePrecacheManifest,Tn as generatePrecacheManifestJs,M as generatePwaIcons,Ys as generatePwaTags,Zs as generateServiceWorker,Sg as generateServiceWorkerAuto,wg as generateSwRegistrationScript,xg as generateThemeColorMeta,N as getExpectedIconPaths,Ht as getServiceWorkerFileName,Ai as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,wl as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,Qs as pwaDirectives,kg as pwaInstallDirective,Cg as pwaOfflineDirective,Eg as pwaPushDirective,_g as pwaUpdateDirective,cy as registerPwaDirectives,yg as runPwaAudit,D as validateManifest};
236
+ </html>`}function b(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=Ue(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=Zs(n,t);if(a){let s=Ht(n),l=w.join(t,s);await Bun.write(l,a),e.files.serviceWorker=l}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate service worker: ${s}`),e.success=!1}return e}function ae(n,t){return Ai(n,t)}function se(n){return n.pwa?.enabled===!0}export{S as APPLE_TOUCH_ICON_SIZES,v as DEFAULT_ICON_SIZES,P as FAVICON_SIZES,bl as auditBuildOutput,yl as auditConfig,re as buildPwaAssets,wl as calculateAuditResult,wg as formatAuditResult,Pi as formatSize,j as generateManifest,_ as generateManifestJson,xg as generateManifestLink,F as generateOfflinePage,Ue as generatePrecacheManifest,Tn as generatePrecacheManifestJs,M as generatePwaIcons,Ys as generatePwaTags,Zs as generateServiceWorker,kg as generateServiceWorkerAuto,vg as generateSwRegistrationScript,Sg as generateThemeColorMeta,N as getExpectedIconPaths,Ht as getServiceWorkerFileName,Ai as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,vl as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,Qs as pwaDirectives,_g as pwaInstallDirective,Eg as pwaOfflineDirective,Tg as pwaPushDirective,Cg as pwaUpdateDirective,ly as registerPwaDirectives,bg as runPwaAudit,D as validateManifest};
package/dist/ssg.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import"./chunk-7sh9fa3q.js";import{w,el}from"./chunk-bq9xf8nq.js";import"./chunk-9f6qx8b9.js";import"./chunk-2yxva96k.js";import{Rt,S}from"./chunk-tmd1qwx7.js";import"./chunk-27rzdq3n.js";import"./chunk-rhpn4s5s.js";import"./chunk-zxfptbac.js";import{kt,_t,Ct,Et,Tt,$t}from"./chunk-j2qv5ra2.js";import{a}from"./chunk-rzb6bdby.js";import{Cs}from"./chunk-x8js27hd.js";import"./chunk-605b93pe.js";import"./chunk-mhkftysj.js";import{he,en,tn}from"./chunk-6mj7fx2x.js";import"./chunk-0q2v7k1m.js";import{y}from"./chunk-hpt354jm.js";import{yt,i}from"./chunk-yzapw5rk.js";import"./chunk-kk7seavb.js";import"./chunk-05xa75nb.js";import{ds}from"./chunk-2z69cw5m.js";import"./chunk-tk08pr4b.js";import"./chunk-2gqhfge6.js";import{Ga,Ja,Ya}from"./chunk-d18xd9x5.js";import{Zt,Yn,Zn}from"./chunk-ndjmt3vg.js";import{Qt}from"./chunk-w6gfpxz3.js";import"./chunk-zj3dz854.js";import"./chunk-he85ksa7.js";import{X,we}from"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import"./chunk-bj1dmqa1.js";import{l}from"./chunk-jdj1358b.js";import{s,ge}from"./chunk-m4mpyq3d.js";import D from"fs";import f from"path";import{createHash as vt}from"crypto";function Pt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Dt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function It(t){return Bun.hash(t).toString(16)}function ot(t,r={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let n=new Map,o=t.replace(Dt,(e,u,g,v)=>{let x=v.trim();if(!x)return e;if(/\bdata-stx-src=/.test(g))return e;if(r.minify)x=Pt(x);let p=It(x);if(!n.has(p))n.set(p,x);let P=r.integrity?` data-stx-integrity="sha384-${vt("sha384").update(x).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${p}.js"${P}${g}></script>`}),c=Array.from(n,([e,u])=>({hash:e,code:u}));return{html:o,chunks:c}}var Bt=new Set(["visible","idle"]);function ct(t){if(!t.includes("data-stx-src="))return t;let r=new Map,n=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,o;while((o=n.exec(t))!==null)r.set(o[1],o[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=e.exec(t))!==null)if(Bt.has(r.get(u[1])||""))c.add(u[2]);let g=/<\/head\s*>/iy,v=S(t,(p,P)=>(g.lastIndex=P,g.exec(p)?g.lastIndex:-1))[0]?.start??-1;if(c.size===0||v===-1)return t;let x=Array.from(c).filter((p)=>!t.includes(`rel="prefetch" href="${p}"`)).map((p)=>`<link rel="prefetch" href="${p}" as="script">`).join("");if(!x)return t;return t.slice(0,v)+x+t.slice(v)}var jt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function K(t){let r=t.trim();if(!r)return null;let n=/^https?:\/\//i.test(r)?r:`https://${r}`;try{return new URL(n).origin+new URL(n).pathname.replace(/\/$/,"")}catch{return null}}function Ft(t){for(let r of jt){let n=t[r];if(!n)continue;let o=K(n);if(o)return{url:o,source:"env",via:r}}return null}function lt(t){if(!t||typeof t!=="object")return null;let r=t,n=r.site?.url??r.url??r.app?.url;return typeof n==="string"?K(n):null}async function At(t){let{existsSync:r}=await import("fs"),n=await import("path");for(let o of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=n.resolve(t,o);if(!r(c))continue;try{let e=await import(c),u=lt(e.default??e);if(u)return u}catch{}}return null}async function ut(t={}){let r=t.cwd??process.cwd(),n=t.env??process.env;if(t.explicit){let u=K(t.explicit);if(u)return{url:u,source:"option"}}let o=lt(t.stxConfig);if(o)return{url:o,source:"stx.config",via:"site.url"};let c=await At(r);if(c)return{url:c,source:"site.config",via:"url"};let e=Ft(n);if(e)return e;return{url:"http://localhost",source:"fallback"}}function dt(){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
- `)}function q(t){return async()=>({paths:await t(),fallback:!1})}var Ot;function Lt(t){let r=s(t),{depths:n}=ge(r),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,c;while((c=o.exec(r))!==null){if(n[c.index]!==0)continue;let u=w(r,"(",")",o.lastIndex-1),g=r.indexOf("{",u+1),v=w(r,"{","}",g);if(u<0||g<0||v<0)break;return t.slice(c.index,v+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((c=e.exec(r))!==null){if(n[c.index]!==0)continue;let u=el(r,e.lastIndex).endPos;return t.slice(e.lastIndex,u).trim()}throw SyntaxError("Could not extract getStaticPaths; use a top-level function or const declaration")}async function gt(t){let r="read";try{let n=await Bun.file(t).text();r="parse";let o=Qt(n),c=[...o.server,...o.client,...o.signals].filter((e)=>/(?:^|\s)server(?:\s|=|$)/i.test(s(e.attrs))).sort((e,u)=>n.indexOf(e.fullTag)-n.indexOf(u.fullTag));for(let e of c){if(!/\bgetStaticPaths\b/.test(s(e.content)))continue;let u=(Ot??=new Bun.Transpiler({loader:"ts",target:"bun"})).transformSync(e.content);if(!/\bgetStaticPaths\b/.test(s(u)))continue;let g=Lt(u);if(/\bdefineStaticPaths\b/.test(s(g))&&Rt(u,"defineStaticPaths"))throw SyntaxError("Cannot evaluate a module-local defineStaticPaths binding during isolated hook extraction");r="execute";let v=Function("defineStaticPaths",`return (${g})`)(q);if(typeof v!=="function")throw TypeError("getStaticPaths must be a function");let x=await v();r="result";let p=Array.isArray(x)?{paths:x}:x;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 P of p.paths)if(!P||typeof P!=="object"||!P.params||typeof P.params!=="object"||Array.isArray(P.params))throw TypeError("Each getStaticPaths path must contain a params object");return{kind:"ok",value:p}}return{kind:"absent"}}catch(n){return{kind:"error",phase:r,error:n instanceof Error?n:Error(String(n))}}}class pt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,r=""){this.cacheDir=t,this.salt=r}async load(){if(this.loaded)return;let t=f.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let r=JSON.parse(await Bun.file(t).text());for(let[n,o]of Object.entries(r))this.cache.set(n,o)}catch{}this.loaded=!0}async save(){await D.promises.mkdir(this.cacheDir,{recursive:!0});let t=f.join(this.cacheDir,"build-cache.json"),r={};for(let[n,o]of this.cache)r[n]=o;await Bun.write(t,JSON.stringify(r))}getHash(t,r){let n=D.statSync(t),o=`${this.salt}|${t}:${n.mtimeMs}`;for(let e of r)if(D.existsSync(e)){let u=D.statSync(e);o+=`:${e}:${u.mtimeMs}`}let c=0;for(let e=0;e<o.length;e++){let u=o.charCodeAt(e);c=(c<<5)-c+u,c=c&c}return Math.abs(c).toString(36)}get(t,r){let n=this.cache.get(t);if(!n)return null;let o=ft(r).some((u)=>D.existsSync(u)),c=[r,...n.dependencies??[]].some((u)=>u.endsWith(".stx")&&D.existsSync(u)&&ds(D.readFileSync(u,"utf8")).some((g)=>/\bserver\b/.test(g.attrs)));if(o||c)return this.cache.delete(t),null;let e=this.getHash(r,n.dependencies??[]);if(n.hash!==e)return this.cache.delete(t),null;return n.html}set(t,r,n,o){let c=this.getHash(r,n);this.cache.set(t,{hash:c,html:o,generatedAt:Date.now(),dependencies:n})}}class ht{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let r=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return f.join(this.cacheDir,"isr",r)}async get(t){let r=this.getFilePath(t);if(!await Bun.file(r).exists())return null;try{return JSON.parse(await Bun.file(r).text())}catch{return null}}async set(t,r){let n=this.getFilePath(t);await D.promises.mkdir(f.dirname(n),{recursive:!0}),await Bun.write(n,JSON.stringify(r))}async invalidate(t){let r=this.getFilePath(t);if(await Bun.file(r).exists())await D.promises.unlink(r)}async invalidatePattern(t){let r=f.join(this.cacheDir,"isr");if(!D.existsSync(r))return;let n=await D.promises.readdir(r);for(let o of n){let c=o.replace(/_/g,"/").replace(".json","");if(t.test(c))await D.promises.unlink(f.join(r,o))}}async needsRevalidation(t){let r=await this.get(t);if(!r)return!0;return Date.now()>r.revalidateAfter}}async function Ut(t){let r=[];if(!t.isDynamic)r.push({url:t.pattern,params:{}});else{let n=await gt(t.filePath);if(n.kind==="error")throw Error(`getStaticPaths ${n.phase} failed for ${t.pattern} (${t.filePath}): ${n.error.message}`,{cause:n.error});if(n.kind==="absent")return console.warn(`Warning: Dynamic route ${t.pattern} (${t.filePath}) has no getStaticPaths`),r;let o=n.value;if(o.paths.length===0)return console.info(`getStaticPaths returned no paths for dynamic route ${t.pattern} (${t.filePath})`),r;for(let c of o.paths){let e=t.pattern;for(let[u,g]of Object.entries(c.params))e=e.replace(`:${u}`,g).replace(`:${u}*`,g);r.push({url:e,params:c.params,props:c.props,revalidate:c.revalidate})}}return r}function ft(t){return[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"]}async function Mt(t){for(let r of ft(t))if(await Bun.file(r).exists())try{let n=await import(r);if(typeof n.default==="function")return await n.default();else if(typeof n.default==="object")return n.default;else if(typeof n.getData==="function")return await n.getData();else{let{default:o,...c}=n;return c}}catch(n){console.error(`Error loading data file ${r}:`,n)}return null}async function Gt(t,r,n){let o=t.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 e=c.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
2
+ import"./chunk-7sh9fa3q.js";import{w,tl}from"./chunk-94gyfwpz.js";import"./chunk-gb65t4n1.js";import"./chunk-2yxva96k.js";import{Rt,S}from"./chunk-nzj7mkvm.js";import"./chunk-27rzdq3n.js";import"./chunk-wrd3aygb.js";import"./chunk-h0jnatd4.js";import{kt,_t,Ct,Et,Tt,$t}from"./chunk-q14d714d.js";import{a}from"./chunk-7wkz9sz5.js";import{Cs}from"./chunk-w9nwb8r3.js";import"./chunk-605b93pe.js";import"./chunk-npfs1zyn.js";import{he,en,tn}from"./chunk-e44zheax.js";import"./chunk-mqr61kqn.js";import{y}from"./chunk-d3pemcp8.js";import{yt,i}from"./chunk-vgtbds23.js";import"./chunk-vr6jccpy.js";import"./chunk-nrnkqqmb.js";import{ds}from"./chunk-8ycz8ss9.js";import"./chunk-992nsr70.js";import"./chunk-2gqhfge6.js";import{Ga,Ja,Ya}from"./chunk-d18xd9x5.js";import{Zt,Yn,Zn}from"./chunk-ndjmt3vg.js";import{Qt}from"./chunk-v6z3ak8h.js";import"./chunk-bm7xr4xh.js";import"./chunk-qv85c3qy.js";import{X,we}from"./chunk-40ambk0h.js";import"./chunk-w5hhqjwr.js";import"./chunk-0jp3tt5c.js";import{l}from"./chunk-jdj1358b.js";import{s,ge}from"./chunk-14ft0zc7.js";import D from"fs";import f from"path";import{createHash as vt}from"crypto";function Pt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Dt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function It(t){return Bun.hash(t).toString(16)}function ot(t,r={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let n=new Map,o=t.replace(Dt,(e,u,g,v)=>{let x=v.trim();if(!x)return e;if(/\bdata-stx-src=/.test(g))return e;if(r.minify)x=Pt(x);let p=It(x);if(!n.has(p))n.set(p,x);let P=r.integrity?` data-stx-integrity="sha384-${vt("sha384").update(x).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${p}.js"${P}${g}></script>`}),c=Array.from(n,([e,u])=>({hash:e,code:u}));return{html:o,chunks:c}}var Bt=new Set(["visible","idle"]);function ct(t){if(!t.includes("data-stx-src="))return t;let r=new Map,n=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,o;while((o=n.exec(t))!==null)r.set(o[1],o[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=e.exec(t))!==null)if(Bt.has(r.get(u[1])||""))c.add(u[2]);let g=/<\/head\s*>/iy,v=S(t,(p,P)=>(g.lastIndex=P,g.exec(p)?g.lastIndex:-1))[0]?.start??-1;if(c.size===0||v===-1)return t;let x=Array.from(c).filter((p)=>!t.includes(`rel="prefetch" href="${p}"`)).map((p)=>`<link rel="prefetch" href="${p}" as="script">`).join("");if(!x)return t;return t.slice(0,v)+x+t.slice(v)}var jt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function K(t){let r=t.trim();if(!r)return null;let n=/^https?:\/\//i.test(r)?r:`https://${r}`;try{return new URL(n).origin+new URL(n).pathname.replace(/\/$/,"")}catch{return null}}function Ft(t){for(let r of jt){let n=t[r];if(!n)continue;let o=K(n);if(o)return{url:o,source:"env",via:r}}return null}function lt(t){if(!t||typeof t!=="object")return null;let r=t,n=r.site?.url??r.url??r.app?.url;return typeof n==="string"?K(n):null}async function At(t){let{existsSync:r}=await import("fs"),n=await import("path");for(let o of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=n.resolve(t,o);if(!r(c))continue;try{let e=await import(c),u=lt(e.default??e);if(u)return u}catch{}}return null}async function ut(t={}){let r=t.cwd??process.cwd(),n=t.env??process.env;if(t.explicit){let u=K(t.explicit);if(u)return{url:u,source:"option"}}let o=lt(t.stxConfig);if(o)return{url:o,source:"stx.config",via:"site.url"};let c=await At(r);if(c)return{url:c,source:"site.config",via:"url"};let e=Ft(n);if(e)return e;return{url:"http://localhost",source:"fallback"}}function dt(){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
+ `)}function q(t){return async()=>({paths:await t(),fallback:!1})}var Ot;function Lt(t){let r=s(t),{depths:n}=ge(r),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,c;while((c=o.exec(r))!==null){if(n[c.index]!==0)continue;let u=w(r,"(",")",o.lastIndex-1),g=r.indexOf("{",u+1),v=w(r,"{","}",g);if(u<0||g<0||v<0)break;return t.slice(c.index,v+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((c=e.exec(r))!==null){if(n[c.index]!==0)continue;let u=tl(r,e.lastIndex).endPos;return t.slice(e.lastIndex,u).trim()}throw SyntaxError("Could not extract getStaticPaths; use a top-level function or const declaration")}async function gt(t){let r="read";try{let n=await Bun.file(t).text();r="parse";let o=Qt(n),c=[...o.server,...o.client,...o.signals].filter((e)=>/(?:^|\s)server(?:\s|=|$)/i.test(s(e.attrs))).sort((e,u)=>n.indexOf(e.fullTag)-n.indexOf(u.fullTag));for(let e of c){if(!/\bgetStaticPaths\b/.test(s(e.content)))continue;let u=(Ot??=new Bun.Transpiler({loader:"ts",target:"bun"})).transformSync(e.content);if(!/\bgetStaticPaths\b/.test(s(u)))continue;let g=Lt(u);if(/\bdefineStaticPaths\b/.test(s(g))&&Rt(u,"defineStaticPaths"))throw SyntaxError("Cannot evaluate a module-local defineStaticPaths binding during isolated hook extraction");r="execute";let v=Function("defineStaticPaths",`return (${g})`)(q);if(typeof v!=="function")throw TypeError("getStaticPaths must be a function");let x=await v();r="result";let p=Array.isArray(x)?{paths:x}:x;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 P of p.paths)if(!P||typeof P!=="object"||!P.params||typeof P.params!=="object"||Array.isArray(P.params))throw TypeError("Each getStaticPaths path must contain a params object");return{kind:"ok",value:p}}return{kind:"absent"}}catch(n){return{kind:"error",phase:r,error:n instanceof Error?n:Error(String(n))}}}class pt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,r=""){this.cacheDir=t,this.salt=r}async load(){if(this.loaded)return;let t=f.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let r=JSON.parse(await Bun.file(t).text());for(let[n,o]of Object.entries(r))this.cache.set(n,o)}catch{}this.loaded=!0}async save(){await D.promises.mkdir(this.cacheDir,{recursive:!0});let t=f.join(this.cacheDir,"build-cache.json"),r={};for(let[n,o]of this.cache)r[n]=o;await Bun.write(t,JSON.stringify(r))}getHash(t,r){let n=D.statSync(t),o=`${this.salt}|${t}:${n.mtimeMs}`;for(let e of r)if(D.existsSync(e)){let u=D.statSync(e);o+=`:${e}:${u.mtimeMs}`}let c=0;for(let e=0;e<o.length;e++){let u=o.charCodeAt(e);c=(c<<5)-c+u,c=c&c}return Math.abs(c).toString(36)}get(t,r){let n=this.cache.get(t);if(!n)return null;let o=ft(r).some((u)=>D.existsSync(u)),c=[r,...n.dependencies??[]].some((u)=>u.endsWith(".stx")&&D.existsSync(u)&&ds(D.readFileSync(u,"utf8")).some((g)=>/\bserver\b/.test(g.attrs)));if(o||c)return this.cache.delete(t),null;let e=this.getHash(r,n.dependencies??[]);if(n.hash!==e)return this.cache.delete(t),null;return n.html}set(t,r,n,o){let c=this.getHash(r,n);this.cache.set(t,{hash:c,html:o,generatedAt:Date.now(),dependencies:n})}}class ht{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let r=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return f.join(this.cacheDir,"isr",r)}async get(t){let r=this.getFilePath(t);if(!await Bun.file(r).exists())return null;try{return JSON.parse(await Bun.file(r).text())}catch{return null}}async set(t,r){let n=this.getFilePath(t);await D.promises.mkdir(f.dirname(n),{recursive:!0}),await Bun.write(n,JSON.stringify(r))}async invalidate(t){let r=this.getFilePath(t);if(await Bun.file(r).exists())await D.promises.unlink(r)}async invalidatePattern(t){let r=f.join(this.cacheDir,"isr");if(!D.existsSync(r))return;let n=await D.promises.readdir(r);for(let o of n){let c=o.replace(/_/g,"/").replace(".json","");if(t.test(c))await D.promises.unlink(f.join(r,o))}}async needsRevalidation(t){let r=await this.get(t);if(!r)return!0;return Date.now()>r.revalidateAfter}}async function Ut(t){let r=[];if(!t.isDynamic)r.push({url:t.pattern,params:{}});else{let n=await gt(t.filePath);if(n.kind==="error")throw Error(`getStaticPaths ${n.phase} failed for ${t.pattern} (${t.filePath}): ${n.error.message}`,{cause:n.error});if(n.kind==="absent")return console.warn(`Warning: Dynamic route ${t.pattern} (${t.filePath}) has no getStaticPaths`),r;let o=n.value;if(o.paths.length===0)return console.info(`getStaticPaths returned no paths for dynamic route ${t.pattern} (${t.filePath})`),r;for(let c of o.paths){let e=t.pattern;for(let[u,g]of Object.entries(c.params))e=e.replace(`:${u}`,g).replace(`:${u}*`,g);r.push({url:e,params:c.params,props:c.props,revalidate:c.revalidate})}}return r}function ft(t){return[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"]}async function Mt(t){for(let r of ft(t))if(await Bun.file(r).exists())try{let n=await import(r);if(typeof n.default==="function")return await n.default();else if(typeof n.default==="object")return n.default;else if(typeof n.getData==="function")return await n.getData();else{let{default:o,...c}=n;return c}}catch(n){console.error(`Error loading data file ${r}:`,n)}return null}async function Gt(t,r,n){let o=t.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 e=c.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
4
4
  return (async function getStaticProps() {
5
5
  ${e[1]}
6
6
  })()
@@ -37,7 +37,7 @@ ${t.map((o)=>{let c=new URL(o.loc,r).href,e=` <url>
37
37
  ${n.join(`
38
38
  `)}
39
39
  </channel>
40
- </rss>`}async function Vt(t={}){let r=Date.now();tn();let n=await a(process.cwd()),o=n.build||{},c=await ut({explicit:t.domain||o.domain,stxConfig:n});if(c.source==="fallback"&&(t.sitemap??o.sitemap??!0))console.warn(dt());let e={router:t.router??n?.router??{},pagesDir:t.pagesDir||o.pagesDir||"pages",outputDir:t.outputDir||o.outputDir||"dist",baseUrl:t.baseUrl||o.baseUrl||"/",domain:c.url,revalidate:t.revalidate??o.revalidate??!1,sitemap:t.sitemap??o.sitemap??!0,sitemapExclude:t.sitemapExclude||o.sitemapExclude||[],robots:t.robots??o.robots??!0,rss:t.rss??o.rss??!1,concurrency:t.concurrency||o.concurrency||10,cache:t.cache??o.cache??!0,cacheDir:t.cacheDir||o.cacheDir||l(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??o.minify??!0,generate404:t.generate404??o.generate404??!0,publicDir:t.publicDir||o.publicDir||"public",trailingSlash:t.trailingSlash??o.trailingSlash??!1,cleanOutput:t.cleanOutput??o.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||n?.partialsDir||"",componentsDir:t.componentsDir||n?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,v=0,x={},p={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&D.existsSync(e.outputDir))await D.promises.rm(e.outputDir,{recursive:!0});await D.promises.mkdir(e.outputDir,{recursive:!0});let E=e.cacheSalt;if(!E){let{resolveUserCssConfig:d,fingerprintConfig:m}=await import("./chunk-4yr14p2w.js");try{E=m(await d(process.cwd()))}catch{}}let{prepareImageDelivery:b}=await import("./chunk-thajeb3z.js"),R=await b(e.publicDir,e.outputDir);if(R.count>0)console.log(`Optimized ${R.count} image(s) for responsive delivery`),E=[E,R.fingerprint].filter(Boolean).join(":");let T=new pt(e.cacheDir,E);if(e.cache)await T.load();try{let{generateCss:d}=await import("./chunk-4yr14p2w.js");await d('<div class="bg-black"></div>')}catch{}kt();let wt=n?.routeMiddleware?.dir||"middleware";await Ct(process.cwd(),wt);let J=_t();if(J.length>0)console.log(`Loaded ${J.length} middleware: ${J.join(", ")}`);let St=n?.routeMiddleware?.global||[];Ya(n?.layoutsDir,l(process.cwd()));let Z=X(".",{pagesDir:e.pagesDir,pagesDirs:n?._layerPageDirs});console.log(`Found ${Z.length} routes`);let M=[];for(let d of Z)try{let m=await Ut(d);for(let k of m)M.push({route:d,url:k.url,params:k.params,props:k.props,revalidate:k.revalidate??e.revalidate})}catch(m){let k=m instanceof Error?m:Error(String(m));u.failedCount++,u.errors.push({route:d.pattern,error:k}),await e.hooks.onError?.(k,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,k)}u.totalPages=M.length+u.failedCount,console.log(`Generating ${M.length} pages...`);let _=[],Q=[];for(let d=0;d<M.length;d+=e.concurrency)Q.push(M.slice(d,d+e.concurrency));for(let d of Q)await Promise.all(d.map(async(m)=>{let{route:k,url:h,params:G,props:xt,revalidate:rt}=m;try{await e.hooks.onPageStart?.(h);let A=await Bun.file(k.filePath).text(),O=Yt(A),bt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],nt=[...St,...bt];if(nt.length>0){let B=Et(h,G,O||{}),L=Tt(B,null,void 0,{isServer:!0}),j=await $t(nt,L);if(j.redirect){let C=typeof j.redirect==="string"?j.redirect:j.redirect.path||j.redirect,H=te(String(C),h),U=ee(h,e);await D.promises.mkdir(f.dirname(U),{recursive:!0}),await Bun.write(U,H),u.successCount++,u.pages.push({route:h,outputPath:U,size:Buffer.byteLength(H),cached:!1}),_.push({loc:h,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${h} \u2192 redirect to ${C}`);return}if(j.abort){let C=typeof j.abort==="string"?j.abort:j.abort?.error?.message||"aborted";console.warn(` \u21B3 ${h} \u2014 middleware aborted: ${C}`);return}}let it=A.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(it)try{if(!await Function("route",`
40
+ </rss>`}async function Vt(t={}){let r=Date.now();tn();let n=await a(process.cwd()),o=n.build||{},c=await ut({explicit:t.domain||o.domain,stxConfig:n});if(c.source==="fallback"&&(t.sitemap??o.sitemap??!0))console.warn(dt());let e={router:t.router??n?.router??{},pagesDir:t.pagesDir||o.pagesDir||"pages",outputDir:t.outputDir||o.outputDir||"dist",baseUrl:t.baseUrl||o.baseUrl||"/",domain:c.url,revalidate:t.revalidate??o.revalidate??!1,sitemap:t.sitemap??o.sitemap??!0,sitemapExclude:t.sitemapExclude||o.sitemapExclude||[],robots:t.robots??o.robots??!0,rss:t.rss??o.rss??!1,concurrency:t.concurrency||o.concurrency||10,cache:t.cache??o.cache??!0,cacheDir:t.cacheDir||o.cacheDir||l(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??o.minify??!0,generate404:t.generate404??o.generate404??!0,publicDir:t.publicDir||o.publicDir||"public",trailingSlash:t.trailingSlash??o.trailingSlash??!1,cleanOutput:t.cleanOutput??o.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||n?.partialsDir||"",componentsDir:t.componentsDir||n?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,v=0,x={},p={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&D.existsSync(e.outputDir))await D.promises.rm(e.outputDir,{recursive:!0});await D.promises.mkdir(e.outputDir,{recursive:!0});let E=e.cacheSalt;if(!E){let{resolveUserCssConfig:d,fingerprintConfig:m}=await import("./chunk-9th217rf.js");try{E=m(await d(process.cwd()))}catch{}}let{prepareImageDelivery:b}=await import("./chunk-k7w05cjv.js"),R=await b(e.publicDir,e.outputDir);if(R.count>0)console.log(`Optimized ${R.count} image(s) for responsive delivery`),E=[E,R.fingerprint].filter(Boolean).join(":");let T=new pt(e.cacheDir,E);if(e.cache)await T.load();try{let{generateCss:d}=await import("./chunk-9th217rf.js");await d('<div class="bg-black"></div>')}catch{}kt();let wt=n?.routeMiddleware?.dir||"middleware";await Ct(process.cwd(),wt);let J=_t();if(J.length>0)console.log(`Loaded ${J.length} middleware: ${J.join(", ")}`);let St=n?.routeMiddleware?.global||[];Ya(n?.layoutsDir,l(process.cwd()));let Z=X(".",{pagesDir:e.pagesDir,pagesDirs:n?._layerPageDirs});console.log(`Found ${Z.length} routes`);let M=[];for(let d of Z)try{let m=await Ut(d);for(let k of m)M.push({route:d,url:k.url,params:k.params,props:k.props,revalidate:k.revalidate??e.revalidate})}catch(m){let k=m instanceof Error?m:Error(String(m));u.failedCount++,u.errors.push({route:d.pattern,error:k}),await e.hooks.onError?.(k,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,k)}u.totalPages=M.length+u.failedCount,console.log(`Generating ${M.length} pages...`);let _=[],Q=[];for(let d=0;d<M.length;d+=e.concurrency)Q.push(M.slice(d,d+e.concurrency));for(let d of Q)await Promise.all(d.map(async(m)=>{let{route:k,url:h,params:G,props:xt,revalidate:rt}=m;try{await e.hooks.onPageStart?.(h);let A=await Bun.file(k.filePath).text(),O=Yt(A),bt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],nt=[...St,...bt];if(nt.length>0){let B=Et(h,G,O||{}),L=Tt(B,null,void 0,{isServer:!0}),j=await $t(nt,L);if(j.redirect){let C=typeof j.redirect==="string"?j.redirect:j.redirect.path||j.redirect,H=te(String(C),h),U=ee(h,e);await D.promises.mkdir(f.dirname(U),{recursive:!0}),await Bun.write(U,H),u.successCount++,u.pages.push({route:h,outputPath:U,size:Buffer.byteLength(H),cached:!1}),_.push({loc:h,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${h} \u2192 redirect to ${C}`);return}if(j.abort){let C=typeof j.abort==="string"?j.abort:j.abort?.error?.message||"aborted";console.warn(` \u21B3 ${h} \u2014 middleware aborted: ${C}`);return}}let it=A.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(it)try{if(!await Function("route",`
41
41
  const validate = ${it[1]};
42
42
  return validate(route);
43
43
  `)({params:G})){console.warn(`Validation failed for ${h}, skipping...`);return}}catch{}let I=null,st=!1;if(e.cache){if(I=T.get(h,k.filePath),I)st=!0,u.cachedCount++}if(!I){let B=await mt(k,G,xt,e,n);if(I=B.html,e.failOnIncludeError&&B.includeFailures.length>0)throw Error(`${B.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
package/dist/utils.d.ts CHANGED
@@ -57,14 +57,6 @@ export declare function isHydrateTrigger(trigger: string): boolean;
57
57
  * would flag components that have no slot expressions at all.
58
58
  */
59
59
  export declare function slotContentHasExpressions(slotContent: string): boolean;
60
- /**
61
- * Collect client variables whose initializer returns a signal-like value.
62
- *
63
- * Component scripts are removed before their template body reaches the
64
- * expression pipeline. Recording these names in the component context keeps
65
- * interpolations such as `{{ title() }}` client-owned even when a static prop
66
- * named `title` also exists in the server context.
67
- */
68
60
  export declare function componentClientSignalNames(scripts: string[]): string[];
69
61
  export declare function renderComponentWithSlot(componentPath: string, props: Record<string, unknown>, slotContent: string, componentsDir: string, parentContext: Record<string, unknown>, parentFilePath: string, options: StxOptions, processedComponents?: Set<string> | undefined, dependencies: Set<string>, clientLoopNames?: readonly string[], renderMetadata?: { declaredProps: Set<string>, consumedProps?: Set<string>, reactiveProps?: string[], events?: string[] }, lookupName?: string): Promise<string>;
70
62
  /**
@@ -104,6 +96,7 @@ export declare function clearComponentCache(): void;
104
96
  * Get component cache statistics
105
97
  */
106
98
  export declare function getComponentCacheStats(): { size: number, maxSize: number };
99
+ export declare const SIGNAL_COMPOSABLE_CALL: RegExp;
107
100
  // Re-export from extracted modules for backward compatibility
108
101
  export {
109
102
  extractDirectiveNames,
package/dist/utils.js CHANGED
@@ -672,8 +672,10 @@ ${triedPaths.map((tried) => ` - ${tried}`).join(`
672
672
  function unresolvedComponentMarkup(componentPath) {
673
673
  return `<!-- stx: component "${componentPath.replace(/--+/g, "-")}" could not be resolved; see the server log -->`;
674
674
  }
675
+ const SIGNAL_COMPOSABLES = "useMediaQuery|useDark|usePreferredDark|usePreferredLight|usePreferredReducedMotion|usePreferredContrast|useDocumentVisibility|useScrollLock";
676
+ export const SIGNAL_COMPOSABLE_CALL = new RegExp(`\\b(?:${SIGNAL_COMPOSABLES})\\s*(?:<[^>]*>)?\\s*\\(`);
675
677
  export function componentClientSignalNames(scripts) {
676
- const names = new Set, declaration = /\b(?:const|let|var)\s+([a-zA-Z_$][\w$]*)\s*=\s*(?:state|derived|computed|ref|reactive|signal|useModel|useReactiveProp|useLocalStorage|useSessionStorage|keptState|useCookie|useDebouncedValue)\s*(?:<[^>]*>)?\s*\(/g;
678
+ const names = new Set, declaration = new RegExp(`\\b(?:const|let|var)\\s+([a-zA-Z_$][\\w$]*)\\s*=\\s*(?:state|derived|computed|ref|reactive|signal|useModel|useReactiveProp|useLocalStorage|useSessionStorage|keptState|useCookie|useDebouncedValue|${SIGNAL_COMPOSABLES})\\s*(?:<[^>]*>)?\\s*\\(`, "g");
677
679
  for (const script of scripts) {
678
680
  let match;
679
681
  while ((match = declaration.exec(script)) !== null)
@@ -889,8 +891,14 @@ export async function renderComponentWithSlot(componentPath, props, slotContent,
889
891
  callerSlotContent = await processIncludes(slotContent, parentContext, parentFilePath, options, dependencies);
890
892
  }
891
893
  if (/<[A-Z][\w.-]*[\s/>]/.test(callerSlotContent)) {
892
- const { processComponents } = await importOnce("stx/component-renderer", () => import("./component-renderer.js"));
893
- callerSlotContent = await processComponents(callerSlotContent, { ...parentContext, __processedComponents: components, ...callerLoopScope }, parentFilePath, options, dependencies);
894
+ const { processComponents } = await importOnce("stx/component-renderer", () => import("./component-renderer.js")), slotComponentContext = { ...parentContext, __processedComponents: components, ...callerLoopScope };
895
+ callerSlotContent = await processComponents(callerSlotContent, slotComponentContext, parentFilePath, options, dependencies);
896
+ const recorded = slotComponentContext.__stx_preserved_client_expressions;
897
+ if (Array.isArray(recorded) && recorded.length > 0)
898
+ parentContext.__stx_preserved_client_expressions = [...new Set([
899
+ ...Array.isArray(parentContext.__stx_preserved_client_expressions) ? parentContext.__stx_preserved_client_expressions : [],
900
+ ...recorded
901
+ ])];
894
902
  }
895
903
  const callerPreservedExpressions = [];
896
904
  if (slotContentHasExpressions(callerSlotContent)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/stx",
3
3
  "type": "module",
4
- "version": "0.2.785",
4
+ "version": "0.2.787",
5
5
  "description": "A performant UI Framework. Powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -128,12 +128,12 @@
128
128
  "dependencies": {
129
129
  "@stacksjs/ts-css": "^0.3.11",
130
130
  "@stacksjs/clapp": "^0.2.16",
131
- "@stacksjs/desktop": "0.2.785",
132
- "@stacksjs/sanitizer": "0.2.785",
131
+ "@stacksjs/desktop": "0.2.787",
132
+ "@stacksjs/sanitizer": "0.2.787",
133
133
  "@stacksjs/ts-i18n": "^0.1.11",
134
- "bun-plugin-stx": "0.2.785",
134
+ "bun-plugin-stx": "0.2.787",
135
135
  "bunfig": "^0.15.21",
136
- "stx-router": "0.2.785",
136
+ "stx-router": "0.2.787",
137
137
  "ts-broadcasting": "^0.0.11",
138
138
  "ts-images": "^0.2.22",
139
139
  "ts-syntax-highlighter": "^0.2.1"
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Bl,um,Fl,zl,dm,pm}from"./chunk-ya150593.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{pm as applySlots,dm as extractSlotContent,um as parseSlotElement,Bl as parseSlots,zl as processSlots,Fl as renderSlot};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{jf,Xo}from"./chunk-zxfptbac.js";export{jf as looksLikeGlob,Xo as resolveStxTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{hn,Gf,Jf,Yf,Zf,Qf,m,eg,pi,tg,Vc,Uc}from"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{hn as STX_ENGINE_BINDING_NAMES,pi as convertToCommonJS,Vc as extractScriptFromTemplate,m as extractVariables,Uc as hasVariables,eg as isCompleteImport,Qf as isMissingBindingFailure,Yf as isModuleResolutionFailure,Zf as isSyntaxFailure,tg as splitDeclaration,Gf as stripTypeScript,Jf as withoutStxReferrer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Q,ee,te,Nn,me,Te,Kr,Hl,gt,Xt,Dn,Mn,Ln,ne,jn,Bn,Xr}from"./chunk-cfpw4c6b.js";import"./chunk-c0ejyxfj.js";export{ee as DEFAULT_FORMATS,te as DEFAULT_QUALITY,Q as DEFAULT_WIDTHS,Xr as ImageProcessingError,Bn as formatSize,Xt as generateSizes,gt as generateSrcSet,Dn as getFallbackVariant,Kr as getImageMetadata,ne as getMimeType,jn as getTotalSize,Mn as groupVariantsByFormat,me as isImageBackendAvailable,Ln as isImageFile,Nn as isSharpAvailable,Te as processImage,Hl as resizeAndConvert};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Di,Mi,Li,Ig,ji,Bi,Og,Fi,zi,xl,Ng}from"./chunk-kf8hzvb7.js";export{Di as VideoProcessorCache,xl as analyzeVideo,Ig as clearVideoCache,zi as generateDASHManifest,Fi as generateHLSManifest,ji as generatePoster,Og as generateSpriteSheet,Bi as generateThumbnails,Mi as getCachedVideoResult,Ng as processVideo,Li as setCachedVideoResult};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ug}from"./chunk-7d7aj7rh.js";import"./chunk-8yjmf3gv.js";import"./chunk-w6gfpxz3.js";import"./chunk-mhkftysj.js";import"./chunk-zj3dz854.js";import"./chunk-3ywnsdha.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{Ug as startProductionServer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ma,su,Fn,Tm,ou,iu,au,$m}from"./chunk-3vzee3z9.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{Fn as Validator,su as defineForm,ou as processErrorDirective,iu as processErrorsDirective,$m as processFormValidationDirectives,au as processHasErrorsDirective,ma as useForm,Tm as v};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xh,nc,Sh,rc,Cf,Ef,cn,sr,kh,Tf,$f,_h,y}from"./chunk-hpt354jm.js";import"./chunk-0q2v7k1m.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{cn as buildCss,Tf as extractClassNames,Ef as fingerprintConfig,$f as generateCss,kh as getCachedCSS,xh as getCssServeAsset,y as injectCss,nc as loadCssEngine,rc as loadCssEngineConfig,sr as rebuildCss,Sh as resetCssCache,Cf as resolveUserCssConfig,_h as withLinkedModuleBundles};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{bf,wf,he,vf,Za,en,tn,bh,Qa,nn,Qn,xf,Sf,kf,rs,rn,_f,sn,ec,wh}from"./chunk-6mj7fx2x.js";import"./chunk-mhkftysj.js";import"./chunk-7sh9fa3q.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{Qn as MODULE_SPECIFIER_PREFIX,bf as bundleCacheDir,wf as bundleCacheEntryLimit,wh as bundleClientEntriesSplit,sn as bundleClientScript,tn as clearBundleFailures,he as clientBundleDependencies,en as getBundleFailures,nn as hasUserImports,rn as moduleSubstitutionKey,Sf as normalizeRegistrySpecifiers,_f as queueClientBundleBuild,Za as recordBundleFailure,xf as registryIdForPath,Qa as resolveBundlerFallback,kf as rewriteRegistryImports,bh as setBundlerFallbackMode,vf as shouldLogBundlerDiagnostics,ec as tempBuildName,rs as withModuleSubstitutes};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{fa,ga,Ul,Wl,ql,Kl,Cm}from"./chunk-r1jzbqr3.js";export{fa as createVirtualList,Cm as default,Ul as generateVirtualListCSS,ql as processInfiniteListDirectives,Kl as processVirtualGridDirectives,ga as processVirtualListDirectives,Wl as useVirtualList};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{fm,gm,mm,hm,ym}from"./chunk-k0aejzg9.js";export{gm as defineAsyncComponent,hm as generateAsyncComponentCSS,ym as generateAsyncComponentRuntime,mm as isAsyncComponent,fm as processAsyncDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{pu,So,Kn,fu,gu,mu,hu,yu,bu,wu,vu,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Du,Mu,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd,Jt,Ta,sd,od,id,$a,ad,cd,ld,ud,dd,pd,Ra,fd,gd,md,hd,yd,bd,wd,vd,xd,Xn,Sd,kd,_d,Cd,Ed,Td,$d,Rd,Ad,Pd,Id,Od,ko,Nd,Dd,Md,Ld,jd,Qr,Bd,Fd,zd,Hd,Vd,Aa,Ud,Wd,qd,Pa,_o,Kd,Xd,Ia,Oa,es,Na,Gd,Yt,Jd,Da,Ma,Co,Yd,Eo,Zd,Qd,ep,tp,np,rp,sp,La,op,ip,ja,ap,cp,lp,up,dp,pp,fp,gp,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Ba,Pp,Ip,Op,Np,Dp,Mp,Lp,jp,Bp,Fp,zp,Gn,Fa,za,Hp,Jn,Vp,Up,Wp,Ha,Va,ts,ns,qp,To,Kp,Xp,Gp,Jp,Yp,Zp,Qp,ef,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,Ua,gf,mf,Wa,qa,hf,yf}from"./chunk-qby3e5nm.js";export{nd as AVAILABLE_COMPONENTS,Aa as AutoUpdater,rd as COMPONENT_STYLES,ts as DEFAULT_WATCH_INTERVAL_MS,Va as MAX_WATCH_INTERVAL_MS,Ha as MIN_WATCH_INTERVAL_MS,pd as MODAL_STYLES,xu as TOAST_STYLES,wd as TRAY_MENU_STYLES,Ia as UPDATE_MANIFEST_ASSET,cd as alert,Tp as appInfo,Zp as appleScript,yf as applicationDataDirectory,Yp as audio,mf as backgroundDelay,kp as battery,Jp as biometric,Fp as bluetooth,rf as bonjour,Yt as bundlePathForExecutable,Yd as caffeinate,Ud as canReplaceBundle,Wd as clearQuarantine,gp as clipboard,dd as closeAllModals,Od as closeAllWindows,ad as confirm,Ap as contextMenu,uf as continuityCamera,lf as coreml,Hd as craftBinaryNotFoundMessage,ko as craftWindowArguments,Gn as crashReporter,Uu as createAccordion,Lu as createAutocomplete,$u as createAvatar,Tu as createBadge,Su as createButton,Ru as createCard,Yu as createChart,_u as createCheckbox,Fu as createChip,Zu as createCodeEditor,Nu as createColorPicker,Ju as createDataGrid,Du as createDatePicker,Pu as createDropdown,ed as createFileExplorer,Gd as createGitHubUpdateManifest,Na as createGitHubUpdater,Bu as createImageView,up as createInterval,ju as createLabel,Ku as createListView,Qu as createMediaPlayer,fd as createMenubar,qu as createModalComponent,hf as createNativeUpdateApi,qa as createPantrySelfUpdater,np as createPreferences,Eu as createProgressBar,Ou as createRadioButton,Iu as createRating,Hu as createScrollView,Co as createSelfUpdater,Cu as createSlider,Vu as createSplitView,Wu as createStepper,Ra as createSystemTray,Xu as createTable,Au as createTabs,ku as createTextInput,Mu as createTimePicker,lp as createTimer,zu as createTooltip,Gu as createTreeView,td as createWebView,Nd as createWindow,Md as createWindowWithHTML,Eo as decaffeinate,Sp as deepLinks,dp as delay,bu as dismissAlertById,wu as dismissAllAlerts,vp as dragOut,qd as extractBundle,Qp as fileAssociations,To as focus,Xp as focusShortcutsReady,fp as formatCompact,tp as formatDuration,ep as formatRemainingTime,op as formatShortcut,pp as formatTime,hp as fs,Pa as generateUpdateManifest,vu as getActiveAlertCount,ud as getActiveModalCount,gd as getActiveTrayInstances,Pd as getActiveWindowIds,Qd as getCaffeinateStatus,ff as getCapabilities,Ua as getCapability,Rd as getDesktopConfig,Td as getDialogBridgeScript,cp as getRegisteredHotkeys,yd as getSimulatedTrayHTML,bd as getTrayBridgeScript,md as getTrayInstance,Id as getWindow,jd as getWindowBridgeScript,Oa as githubLatestAssetUrl,es as githubReleaseAssetUrl,bp as globalShortcuts,Jn as handoff,Kp as hasFocusShortcuts,Hp as iap,sp as isAutoLaunchEnabled,gf as isAvailable,Zd as isCaffeinated,xp as isDragOutAvailable,Ld as isWebviewAvailable,Op as keychain,Vp as liveActivities,Gp as localServer,Up as location,nf as log,Bd as macOSRuntimeExecutablePath,Rp as menu,cf as midi,Mp as nativeAutoLaunch,Lp as nativeTray,jp as nativeWindow,_p as network,mp as notifications,yu as notify,Dd as openDevWindow,Fd as pack,zd as packageApp,Wa as parsePantryUpdateManifest,La as parseShortcut,tf as pdf,Np as permissions,Dp as printing,ld as prompt,Da as quitLauncher,_o as readBundleIdentity,Fa as redactPII,ip as registerHotkey,Ma as relaunchBundle,pu as requestNotificationPermission,Ad as resetDesktopConfig,Vd as resolveCraftBinary,Qr as resolveCraftExecutablePath,Jd as runningBundleTeamId,Ip as screen,Wp as screenCapture,ns as screenSharing,pf as serial,df as serviceMenu,rp as setAutoLaunch,$d as setDesktopConfig,yp as shell,So as showAlert,kd as showAlertDialog,Sd as showColorPicker,_d as showConfirmDialog,Cd as showErrorDialog,od as showErrorModal,hu as showErrorToast,Ta as showInfoModal,fu as showInfoToast,Xn as showMessageBox,Jt as showModal,vd as showOpenDialog,$a as showQuestionModal,xd as showSaveDialog,id as showSuccessModal,gu as showSuccessToast,Kn as showToast,Ed as showWarningDialog,sd as showWarningModal,mu as showWarningToast,Ba as sidebar,za as signPayload,zp as speech,of as speechRecognition,sf as spotlight,$p as standardMenus,Kd as swapBundle,Pp as system,ef as tags,wp as theme,Bp as touchbar,hd as triggerTrayAction,ap as unregisterAllHotkeys,ja as unregisterHotkey,Cp as updater,Xd as verifyBundleTrust,af as vision,qp as watchScreenSharing,Ep as windowEvents};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{hl,yl,bl,yg,bg}from"./chunk-y38swh5t.js";export{yl as auditBuildOutput,hl as auditConfig,bl as calculateAuditResult,bg as formatAuditResult,yg as runPwaAudit};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{El,ta,Tl,$l,na,Rl,Al,Pl,Il,ra,Ol,Kg}from"./chunk-ady8cnpb.js";import{da,jl}from"./chunk-vct6dec8.js";import{Q,ee,te,Nn,me,Te,Kr,gt,Xt,Dn,Mn,Ln,ne,jn,Bn,Xr}from"./chunk-cfpw4c6b.js";import{Vl}from"./chunk-416jy1m5.js";import"./chunk-c0ejyxfj.js";export{ee as DEFAULT_FORMATS,te as DEFAULT_QUALITY,Q as DEFAULT_WIDTHS,Xr as ImageProcessingError,$l as clearImageCache,na as createImageDirective,jl as createImageHandler,Al as createImagePlugin,Kg as defaultImageConfig,Bn as formatSize,ra as generateImageManifest,Xt as generateSizes,gt as generateSrcSet,Dn as getFallbackVariant,Kr as getImageMetadata,ne as getMimeType,jn as getTotalSize,Mn as groupVariantsByFormat,da as handleImageRequest,Rl as imageDirective,me as isImageBackendAvailable,Ln as isImageFile,Nn as isSharpAvailable,Il as optimizeDirectory,Pl as optimizeImage,ta as parseImageComponent,Te as processImage,Tl as processImageComponents,El as renderImageComponent,Vl as rewriteImagesWithSiblings,Ol as writeImageManifest};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jo,Yo,Zo,Qo,ks,_s,Bh,Fh,zh,Hh,Cs,Vh}from"./chunk-x8js27hd.js";import"./chunk-bq9xf8nq.js";export{Vh as generateDefaultRobotsTxt,Cs as generateRobotsTxt,Fh as generateSitemap,zh as generateSitemapIndex,Qo as injectSeoTags,ks as metaDirective,Jo as processMetaDirectives,Zo as processSeoDirective,Yo as processStructuredData,Bh as registerSeoDirectives,Hh as scanForSitemapEntries,_s as structuredDataDirective};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Yg}from"./chunk-tx628jpx.js";import"./chunk-8yjmf3gv.js";import"./chunk-ra8f8sm2.js";import"./chunk-w6gfpxz3.js";import"./chunk-mhkftysj.js";import"./chunk-yzapw5rk.js";import"./chunk-hpt354jm.js";import"./chunk-05xa75nb.js";import"./chunk-2gqhfge6.js";import"./chunk-kk7seavb.js";import"./chunk-zj3dz854.js";import"./chunk-tk08pr4b.js";import"./chunk-he85ksa7.js";import"./chunk-2z69cw5m.js";import"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import"./chunk-0q2v7k1m.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{Yg as buildForProduction};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ys,Ai,wg,vg,xg}from"./chunk-e1gxykm8.js";import"./chunk-4wc5pc19.js";export{vg as generateManifestLink,Ys as generatePwaTags,wg as generateSwRegistrationScript,xg as generateThemeColorMeta,Ai as injectPwaTags};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{m,pi,Vc,Uc,rg,sg,og,ig,ag,zs,cg,je,Y,Be,lg,Cr,ug,Kc,hi,Fe,r,bn,Xc,h,fe,Wh}from"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{fe as clearComponentCache,hi as componentClientSignalNames,pi as convertToCommonJS,h as createDetailedErrorMessage,ag as extractDirectiveNames,Vc as extractScriptFromTemplate,m as extractVariables,r as fileExists,Wh as getComponentCacheStats,sg as getPositionInfo,Y as getSharedTranspiler,Xc as getSourceLineInfo,ig as hasDirectives,Uc as hasVariables,ug as isHydrateTrigger,cg as isJavaScriptScript,Fe as renderComponentWithSlot,bn as resolveTemplatePath,lg as scopeOnRootElement,zs as scopeSequenceKey,je as shouldTranspileTypeScript,Kc as slotContentHasExpressions,Be as transpileTypeScript,Cr as userComponentFileExists,og as validateDirective,rg as validateTemplate};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ht,Hn,ih}from"./chunk-ra8f8sm2.js";import{le,Vn,ah,Un,bo,Gr,Jr,ch,lh,uh,Wn,qn,wo,Yr,dh}from"./chunk-y5f04xtb.js";import"./chunk-9f6qx8b9.js";export{bo as batch,ih as default,Vn as derived,Un as effect,ht as generateSignalsRuntime,Hn as generateSignalsRuntimeDev,qn as isDerived,Wn as isSignal,ah as memo,Jr as onDestroy,Gr as onMount,Yr as peek,uh as pendingLifecycleCounts,lh as runDestroyCallbacks,ch as runMountCallbacks,le as state,wo as untrack,dh as useOptimistic};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Hm,Vm,Um,Wm,qm,Km}from"./chunk-eapt899m.js";export{Wm as generateTransitionCSS,qm as generateTransitionRuntime,Hm as performEnter,Vm as performLeave,Km as processTransitionAttributes,Um as processTransitionDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{kl,_l}from"./chunk-t3wfrb5x.js";import"./chunk-9tec9eap.js";import"./chunk-gm9cag4s.js";import"./chunk-dt4435zf.js";import"./chunk-7d7aj7rh.js";import"./chunk-yzs2afn7.js";import"./chunk-ady8cnpb.js";import"./chunk-ss2mk7zm.js";import"./chunk-tx628jpx.js";import"./chunk-8yjmf3gv.js";import"./chunk-cz8mka1b.js";import"./chunk-vct6dec8.js";import"./chunk-sxwgq49z.js";import"./chunk-ya150593.js";import"./chunk-cfpw4c6b.js";import"./chunk-416jy1m5.js";import"./chunk-k0aejzg9.js";import"./chunk-gbx5vw81.js";import"./chunk-r1jzbqr3.js";import"./chunk-9ct3gbyv.js";import"./chunk-3vzee3z9.js";import"./chunk-7w1373q6.js";import"./chunk-x8anspa5.js";import"./chunk-td3qp5my.js";import"./chunk-eapt899m.js";import"./chunk-5mng4x26.js";import"./chunk-dyn8hwy1.js";import"./chunk-ghfw9cgr.js";import"./chunk-ra8f8sm2.js";import"./chunk-7rtcmxhd.js";import"./chunk-c0ejyxfj.js";import"./chunk-d18xd9x5.js";import{Qt}from"./chunk-w6gfpxz3.js";import"./chunk-6mj7fx2x.js";import"./chunk-mhkftysj.js";import"./chunk-7sh9fa3q.js";import{Re,i}from"./chunk-yzapw5rk.js";import"./chunk-hpt354jm.js";import"./chunk-05xa75nb.js";import"./chunk-2gqhfge6.js";import"./chunk-kk7seavb.js";import"./chunk-zj3dz854.js";import"./chunk-tk08pr4b.js";import"./chunk-he85ksa7.js";import"./chunk-2z69cw5m.js";import{we}from"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import{lr,ur}from"./chunk-0q2v7k1m.js";import{vs,j,a}from"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import{m,Le}from"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";import"./chunk-w9d18r1t.js";import"./chunk-kf8hzvb7.js";export{vs as buildWebComponents,ur as cacheTemplate,lr as checkCache,Qt as classifyAllScripts,kl as createMiddleware,_l as createRoute,j as defaultConfig,m as extractVariables,we as injectRouterScript,a as loadStxConfig,Le as processClientScript,i as processDirectives,Re as readMarkdownFile};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ka,_a,Ca,Ea,yh}from"./chunk-yazy1vk7.js";import"./chunk-qby3e5nm.js";import"./chunk-7rtcmxhd.js";import"./chunk-c0ejyxfj.js";import"./chunk-yzapw5rk.js";import"./chunk-hpt354jm.js";import"./chunk-05xa75nb.js";import"./chunk-2gqhfge6.js";import"./chunk-kk7seavb.js";import"./chunk-zj3dz854.js";import"./chunk-tk08pr4b.js";import"./chunk-he85ksa7.js";import"./chunk-2z69cw5m.js";import"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import"./chunk-0q2v7k1m.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{ka as buildNative,yh as default,_a as findCraftBinary,Ea as getAvailableFormats,Ca as getAvailableTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Af,ls}from"./chunk-kk7seavb.js";import"./chunk-zj3dz854.js";import"./chunk-he85ksa7.js";import"./chunk-wj78td69.js";import{kr}from"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import{st}from"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{st as freeIdentifiers,ls as processComponents,Af as processESImports,kr as rendersAsElement};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{pa,lm}from"./chunk-sxwgq49z.js";export{pa as definePlugin,lm as pluginManager};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xe,fi,gi,ng,Dt,Wc,mi,qc,Uh,Me,yn,Le}from"./chunk-tmd1qwx7.js";import{Zc,s}from"./chunk-m4mpyq3d.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{xe as BROWSER_CORE_IMPORTS,ng as STX_AUTO_IMPORTS,fi as extractAndStripCssImports,Me as extractBridgeData,Zc as findInterpolationEnd,qc as generateAutoImportDestructuring,Uh as generateBrowserAutoImportDestructuring,yn as generateServerDataBridge,Dt as injectBrowserCoreAutoImports,Le as processClientScript,mi as referencesName,gi as renderVendorStyleTags,s as stripCommentsAndLiterals,Wc as transformAutoImports};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{tr,i}from"./chunk-yzapw5rk.js";import"./chunk-hpt354jm.js";import"./chunk-05xa75nb.js";import"./chunk-2gqhfge6.js";import"./chunk-kk7seavb.js";import"./chunk-zj3dz854.js";import"./chunk-tk08pr4b.js";import"./chunk-he85ksa7.js";import"./chunk-2z69cw5m.js";import{we}from"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import"./chunk-0q2v7k1m.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import{Oe,Bs,Fs}from"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{tr as buildModulesTag,we as injectRouterScript,i as processDirectives,Bs as processJsonDirective,Fs as processOnceDirective,Oe as validateClientScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Vl}from"./chunk-416jy1m5.js";export{Vl as rewriteImagesWithSiblings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Rm,ha,cu,Am,Pm,Im,Om,Nm,lu,uu,Dm,Mm,Lm,jm}from"./chunk-7w1373q6.js";import"./chunk-yzapw5rk.js";import"./chunk-hpt354jm.js";import"./chunk-05xa75nb.js";import"./chunk-2gqhfge6.js";import"./chunk-kk7seavb.js";import"./chunk-zj3dz854.js";import"./chunk-tk08pr4b.js";import"./chunk-he85ksa7.js";import"./chunk-2z69cw5m.js";import"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import"./chunk-0q2v7k1m.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{cu as SUSPENSE_RESOLVER_RUNTIME,ha as buildSuspenseResolveScript,Nm as createStreamRenderer,Im as extractStreamBoundaries,jm as generateHydrationRuntime,uu as islandDirective,Mm as processSectionDirectives,Pm as processStreamDirectives,Dm as registerStreamingDirectives,Am as renderStreamingPage,Rm as streamTemplate,Om as streamTemplateSimple,Lm as streamToResponse,lu as streamingSuspenseDirective};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Hg}from"./chunk-gm9cag4s.js";import"./chunk-yzapw5rk.js";import"./chunk-hpt354jm.js";import"./chunk-05xa75nb.js";import"./chunk-2gqhfge6.js";import"./chunk-kk7seavb.js";import"./chunk-zj3dz854.js";import"./chunk-tk08pr4b.js";import"./chunk-he85ksa7.js";import"./chunk-2z69cw5m.js";import"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import"./chunk-0q2v7k1m.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{Hg as startInteractive};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Qm,ho,eh,th,nh,rh}from"./chunk-dyn8hwy1.js";import"./chunk-6mj7fx2x.js";import"./chunk-mhkftysj.js";import"./chunk-7sh9fa3q.js";import"./chunk-2z69cw5m.js";import"./chunk-3ywnsdha.js";import"./chunk-wj78td69.js";import"./chunk-rzb6bdby.js";import"./chunk-bj1dmqa1.js";import"./chunk-zxfptbac.js";import"./chunk-605b93pe.js";import"./chunk-x8js27hd.js";import"./chunk-j2qv5ra2.js";import"./chunk-tmd1qwx7.js";import"./chunk-rhpn4s5s.js";import"./chunk-27rzdq3n.js";import"./chunk-bq9xf8nq.js";import"./chunk-2yxva96k.js";import"./chunk-9f6qx8b9.js";export{rh as clearStoreCache,Qm as getStoreScript,nh as getStoreScriptFor,th as pageStoresAll,ho as storesRead,eh as storesReadInFiles};