@introspection-ai/recipes 0.36.2 → 0.37.0

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 (135) hide show
  1. package/dist/ask-user-question.d.ts +82 -0
  2. package/dist/ask-user-question.d.ts.map +1 -0
  3. package/dist/ask-user-question.js +314 -0
  4. package/dist/ask-user-question.js.map +1 -0
  5. package/dist/connector-tools.d.ts.map +1 -1
  6. package/dist/connector-tools.js +10 -2
  7. package/dist/connector-tools.js.map +1 -1
  8. package/dist/documents/index.d.ts +6 -0
  9. package/dist/documents/index.d.ts.map +1 -0
  10. package/dist/documents/index.js +3 -0
  11. package/dist/documents/index.js.map +1 -0
  12. package/dist/documents/module.d.ts +51 -0
  13. package/dist/documents/module.d.ts.map +1 -0
  14. package/dist/documents/module.js +116 -0
  15. package/dist/documents/module.js.map +1 -0
  16. package/dist/documents/tools.d.ts +40 -0
  17. package/dist/documents/tools.d.ts.map +1 -0
  18. package/dist/documents/tools.js +327 -0
  19. package/dist/documents/tools.js.map +1 -0
  20. package/dist/documents/types.d.ts +144 -0
  21. package/dist/documents/types.d.ts.map +1 -0
  22. package/dist/documents/types.js +10 -0
  23. package/dist/documents/types.js.map +1 -0
  24. package/dist/extensions.d.ts +2 -0
  25. package/dist/extensions.d.ts.map +1 -1
  26. package/dist/extensions.js +3 -0
  27. package/dist/extensions.js.map +1 -1
  28. package/dist/interaction-tui.d.ts +1 -1
  29. package/dist/interaction-tui.d.ts.map +1 -1
  30. package/dist/interaction-tui.js +2 -2
  31. package/dist/interaction-tui.js.map +1 -1
  32. package/dist/mcp-chunks/{auth-command-GMMLBU24.js → auth-command-M7TQE3AL.js} +26 -23
  33. package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +16 -0
  34. package/dist/mcp-chunks/{call-command-2VF6IKAZ.js → call-command-7LD7UEFK.js} +33 -33
  35. package/dist/mcp-chunks/{chunk-TYL2NVXI.js → chunk-2AKSS7WR.js} +2 -2
  36. package/dist/mcp-chunks/{chunk-LZUKBEQZ.js → chunk-2YV72LUA.js} +12 -12
  37. package/dist/mcp-chunks/{chunk-2JTXIMGE.js → chunk-3ETUDW7N.js} +1 -1
  38. package/dist/mcp-chunks/{chunk-5UK2JLTN.js → chunk-3FRLDHVD.js} +5 -5
  39. package/dist/mcp-chunks/{chunk-ENBJFQ6H.js → chunk-3HSC6NHZ.js} +1 -1
  40. package/dist/mcp-chunks/{chunk-IHOU2BEL.js → chunk-3LENTPGE.js} +2 -2
  41. package/dist/mcp-chunks/{chunk-ZJWZY54X.js → chunk-3P3KGT4H.js} +2 -2
  42. package/dist/mcp-chunks/{chunk-IMXPLUKE.js → chunk-3SXP4S2A.js} +2 -2
  43. package/dist/mcp-chunks/{chunk-22WCLO4D.js → chunk-5Z6WSV5D.js} +5 -5
  44. package/dist/mcp-chunks/{chunk-QNZGFUKC.js → chunk-63L6SHK3.js} +2 -2
  45. package/dist/mcp-chunks/{chunk-OI3RTQXY.js → chunk-66VSGFXA.js} +1 -1
  46. package/dist/mcp-chunks/{chunk-DUBQHYW4.js → chunk-6O42UGLI.js} +9 -9
  47. package/dist/mcp-chunks/{chunk-R4OYHQ4V.js → chunk-6P3KAQ5N.js} +1 -1
  48. package/dist/mcp-chunks/{chunk-5OO6WVPL.js → chunk-7U5NSQ5T.js} +1 -1
  49. package/dist/mcp-chunks/{chunk-O2C3HXGS.js → chunk-B6S43WID.js} +1 -1
  50. package/dist/mcp-chunks/{chunk-VWPKJFK4.js → chunk-BHXCAVFP.js} +1 -1
  51. package/dist/mcp-chunks/{chunk-WXNGATQ7.js → chunk-BUOGKTKK.js} +2 -1
  52. package/dist/mcp-chunks/{chunk-4U4BUXQD.js → chunk-CXST5CVH.js} +33 -17
  53. package/dist/mcp-chunks/{chunk-YWFQPA4D.js → chunk-DU4SDPEV.js} +2 -2
  54. package/dist/mcp-chunks/{chunk-ZI5XYM4C.js → chunk-E76ZUBOJ.js} +4 -4
  55. package/dist/mcp-chunks/{chunk-D2SZ7KRY.js → chunk-ELHS763C.js} +1 -1
  56. package/dist/mcp-chunks/{chunk-RHXZKYM7.js → chunk-F2X4Y2TQ.js} +1 -1
  57. package/dist/mcp-chunks/{chunk-6XC5JJWD.js → chunk-GTETFUPQ.js} +28 -25
  58. package/dist/mcp-chunks/{chunk-UQUM7ICD.js → chunk-GZ53GNFP.js} +10 -10
  59. package/dist/mcp-chunks/{chunk-LUVLTUKR.js → chunk-H5PBSJP3.js} +1 -1
  60. package/dist/mcp-chunks/{chunk-FLUF2FRN.js → chunk-HNQSUT44.js} +3 -3
  61. package/dist/mcp-chunks/{chunk-CN5KSNWG.js → chunk-I6UFV7RW.js} +1 -1
  62. package/dist/mcp-chunks/{chunk-OSTHIELS.js → chunk-IRARVOUM.js} +1 -1
  63. package/dist/mcp-chunks/{webapi-NNCZGUMZ.js → chunk-IRSL7JRH.js} +255 -249
  64. package/dist/mcp-chunks/{chunk-ZXIF7MKN.js → chunk-IWCVZ46B.js} +2 -2
  65. package/dist/mcp-chunks/{chunk-RZZO3ZD4.js → chunk-JEHI2YU4.js} +3 -3
  66. package/dist/mcp-chunks/{chunk-ANNJGB6F.js → chunk-JTPTAO4M.js} +13 -13
  67. package/dist/mcp-chunks/{chunk-U5QZHPCC.js → chunk-KJ5FPQF6.js} +1 -1
  68. package/dist/mcp-chunks/{chunk-7IVXKYTI.js → chunk-L2MSWQDL.js} +1 -1
  69. package/dist/mcp-chunks/{chunk-DBNBEWRX.js → chunk-MEQXX43K.js} +1 -1
  70. package/dist/mcp-chunks/{chunk-3AAF3FSI.js → chunk-MHUMLEBO.js} +1 -1
  71. package/dist/mcp-chunks/{chunk-HFHIY5TO.js → chunk-N2U2FODH.js} +4 -4
  72. package/dist/mcp-chunks/{chunk-YFCNRWLV.js → chunk-N6YUOYDS.js} +2 -2
  73. package/dist/mcp-chunks/{chunk-C4TJGC4F.js → chunk-O3RTM5HD.js} +1 -1
  74. package/dist/mcp-chunks/{chunk-35LLRCRA.js → chunk-O7SIXJM6.js} +1308 -912
  75. package/dist/mcp-chunks/{chunk-QDFL757K.js → chunk-PSE442BC.js} +91 -77
  76. package/dist/mcp-chunks/{chunk-YPSODIQX.js → chunk-QNXOIF5U.js} +15 -14
  77. package/dist/mcp-chunks/{chunk-RKQC2EE6.js → chunk-RUF27IUF.js} +2 -2
  78. package/dist/mcp-chunks/{chunk-SS7V7GVT.js → chunk-S2F7DDP5.js} +4 -4
  79. package/dist/mcp-chunks/{chunk-D65GOMYV.js → chunk-TC2JPBFB.js} +2 -2
  80. package/dist/mcp-chunks/{chunk-7BVYBZ4J.js → chunk-THRMUZZD.js} +39 -14
  81. package/dist/mcp-chunks/{chunk-P5YLK5G2.js → chunk-UFV6SVQG.js} +11 -11
  82. package/dist/mcp-chunks/{chunk-LISNXOIQ.js → chunk-US63Y6XE.js} +1 -1
  83. package/dist/mcp-chunks/{chunk-BIVX2WFX.js → chunk-UVEZNUN3.js} +285 -322
  84. package/dist/mcp-chunks/{chunk-HI6VG5LR.js → chunk-UVRJ3AAD.js} +2 -2
  85. package/dist/mcp-chunks/{chunk-6TIU2CDB.js → chunk-V42T3QNK.js} +456 -64
  86. package/dist/mcp-chunks/{chunk-347GOMV4.js → chunk-WDWSA7RL.js} +4 -4
  87. package/dist/mcp-chunks/{chunk-4PN2J74H.js → chunk-WQL7FJQ3.js} +4 -4
  88. package/dist/mcp-chunks/{chunk-LRGMFF5S.js → chunk-ZEA3Y5ZD.js} +7 -7
  89. package/dist/mcp-chunks/{cli-4OQD3H4N.js → cli-IYD7Y7MO.js} +67 -67
  90. package/dist/mcp-chunks/client-5MNBV3Z7.js +32 -0
  91. package/dist/mcp-chunks/{config-command-72TCIWPV.js → config-command-6DXILFNO.js} +129 -34
  92. package/dist/mcp-chunks/daemon-command-V3B3EMXD.js +32 -0
  93. package/dist/mcp-chunks/{dist-74UCKZK5.js → dist-Q7WSCBBK.js} +74 -55
  94. package/dist/mcp-chunks/{emit-ts-command-KD4ON2SE.js → emit-ts-command-NDCDFDRM.js} +17 -17
  95. package/dist/mcp-chunks/{generate-cli-runner-HWGI6HPL.js → generate-cli-runner-PW5WJ7KI.js} +136 -92
  96. package/dist/mcp-chunks/generated-daemon-runtime-3C4NWGAU.js +32 -0
  97. package/dist/mcp-chunks/{inspect-cli-command-FT5JSB7V.js → inspect-cli-command-4MGF5CPP.js} +9 -9
  98. package/dist/mcp-chunks/{launch-AHLKP2VM.js → launch-UG7IH27P.js} +1 -1
  99. package/dist/mcp-chunks/{lifecycle-BJDITFWN.js → lifecycle-QBYGUHQ3.js} +1 -1
  100. package/dist/mcp-chunks/{list-command-YKF7RN6Y.js → list-command-SDITI3ZM.js} +36 -35
  101. package/dist/mcp-chunks/{output-utils-LYB5IJRD.js → output-utils-YTMZTA7J.js} +3 -3
  102. package/dist/mcp-chunks/{prompt-CH6TK0bC-B3USYOND.js → prompt-DkftHXS7-N7UENQ4C.js} +1 -1
  103. package/dist/mcp-chunks/{record-command-MJW3Z5E5.js → record-command-JGTMATYI.js} +5 -5
  104. package/dist/mcp-chunks/{replay-command-5ZHBUOLE.js → replay-command-S2VAC4RW.js} +6 -6
  105. package/dist/mcp-chunks/{resource-command-L4I24AX5.js → resource-command-SRFQQROJ.js} +9 -9
  106. package/dist/mcp-chunks/{result-utils-5WRI66KV.js → result-utils-JASGNHXK.js} +3 -3
  107. package/dist/mcp-chunks/runtime-RMI3XCYJ.js +39 -0
  108. package/dist/mcp-chunks/{runtime-wrapper-WFMNIHD5.js → runtime-wrapper-7HYO3NM5.js} +3 -3
  109. package/dist/mcp-chunks/{serve-command-KNCSJUXS.js → serve-command-UF5SVREV.js} +1111 -697
  110. package/dist/mcp-chunks/{timeouts-2ZHGSB3R.js → timeouts-BJWDJEMH.js} +3 -3
  111. package/dist/mcp-chunks/{vault-command-7EDL45AA.js → vault-command-EYOIFWEY.js} +5 -4
  112. package/dist/mcp-chunks/webapi-WMMA3OEC.js +82 -0
  113. package/dist/mcp-daemon.js +28 -27
  114. package/dist/mcp-run-worker.js +28 -27
  115. package/dist/pi-extension.d.ts.map +1 -1
  116. package/dist/pi-extension.js +6 -0
  117. package/dist/pi-extension.js.map +1 -1
  118. package/dist/recipe/package.d.ts +7 -0
  119. package/dist/recipe/package.d.ts.map +1 -1
  120. package/dist/recipe/package.js +69 -0
  121. package/dist/recipe/package.js.map +1 -1
  122. package/dist/session.d.ts.map +1 -1
  123. package/dist/session.js +6 -0
  124. package/dist/session.js.map +1 -1
  125. package/docs/documents.md +249 -0
  126. package/docs/index.md +1 -0
  127. package/docs/interactions.md +76 -8
  128. package/docs/mcp-configuration.md +10 -5
  129. package/docs/recipe-format.md +69 -1
  130. package/package.json +10 -6
  131. package/dist/mcp-chunks/call-arguments-WSURHOLV.js +0 -16
  132. package/dist/mcp-chunks/client-LXKCCVMT.js +0 -31
  133. package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +0 -31
  134. package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +0 -31
  135. package/dist/mcp-chunks/runtime-IKWDQLZF.js +0 -38
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import "./chunk-LRKZP7DJ.js";
3
3
 
4
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/binding-DlR5d34p.mjs
4
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/binding-BMtuZhvP.mjs
5
5
  import { createRequire } from "node:module";
6
6
  var __create = Object.create;
7
7
  var __defProp = Object.defineProperty;
@@ -9,7 +9,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
9
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
10
  var __getProtoOf = Object.getPrototypeOf;
11
11
  var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
12
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
13
13
  var __copyProps = (to, from, except, desc) => {
14
14
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i2 = 0, n3 = keys.length, key; i2 < n3; i2++) {
15
15
  key = keys[i2];
@@ -106,7 +106,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106
106
  try {
107
107
  const binding = __require("@rolldown/binding-android-arm64");
108
108
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
109
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
109
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
110
110
  return binding;
111
111
  } catch (e2) {
112
112
  loadErrors.push(e2);
@@ -120,7 +120,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
120
120
  try {
121
121
  const binding = __require("@rolldown/binding-android-arm-eabi");
122
122
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
123
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
123
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
124
124
  return binding;
125
125
  } catch (e2) {
126
126
  loadErrors.push(e2);
@@ -137,7 +137,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137
137
  try {
138
138
  const binding = __require("@rolldown/binding-win32-x64-gnu");
139
139
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
140
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
140
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
141
141
  return binding;
142
142
  } catch (e2) {
143
143
  loadErrors.push(e2);
@@ -151,7 +151,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
151
151
  try {
152
152
  const binding = __require("@rolldown/binding-win32-x64-msvc");
153
153
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
154
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
154
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
155
155
  return binding;
156
156
  } catch (e2) {
157
157
  loadErrors.push(e2);
@@ -166,7 +166,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
166
166
  try {
167
167
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
168
168
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
169
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
169
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
170
170
  return binding;
171
171
  } catch (e2) {
172
172
  loadErrors.push(e2);
@@ -180,7 +180,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
180
180
  try {
181
181
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
182
182
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
183
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
183
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
184
184
  return binding;
185
185
  } catch (e2) {
186
186
  loadErrors.push(e2);
@@ -195,7 +195,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
195
195
  try {
196
196
  const binding = __require("@rolldown/binding-darwin-universal");
197
197
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
198
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
198
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
199
199
  return binding;
200
200
  } catch (e2) {
201
201
  loadErrors.push(e2);
@@ -209,7 +209,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
209
209
  try {
210
210
  const binding = __require("@rolldown/binding-darwin-x64");
211
211
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
212
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
212
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
213
213
  return binding;
214
214
  } catch (e2) {
215
215
  loadErrors.push(e2);
@@ -223,7 +223,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
223
223
  try {
224
224
  const binding = __require("@rolldown/binding-darwin-arm64");
225
225
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
226
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
226
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
227
  return binding;
228
228
  } catch (e2) {
229
229
  loadErrors.push(e2);
@@ -239,7 +239,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
239
239
  try {
240
240
  const binding = __require("@rolldown/binding-freebsd-x64");
241
241
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
242
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
243
  return binding;
244
244
  } catch (e2) {
245
245
  loadErrors.push(e2);
@@ -253,7 +253,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
253
253
  try {
254
254
  const binding = __require("@rolldown/binding-freebsd-arm64");
255
255
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
256
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
257
257
  return binding;
258
258
  } catch (e2) {
259
259
  loadErrors.push(e2);
@@ -270,7 +270,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
270
270
  try {
271
271
  const binding = __require("@rolldown/binding-linux-x64-musl");
272
272
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
273
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
273
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
274
274
  return binding;
275
275
  } catch (e2) {
276
276
  loadErrors.push(e2);
@@ -284,7 +284,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
284
284
  try {
285
285
  const binding = __require("@rolldown/binding-linux-x64-gnu");
286
286
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
287
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
287
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
288
288
  return binding;
289
289
  } catch (e2) {
290
290
  loadErrors.push(e2);
@@ -300,7 +300,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
300
300
  try {
301
301
  const binding = __require("@rolldown/binding-linux-arm64-musl");
302
302
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
303
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
303
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
304
304
  return binding;
305
305
  } catch (e2) {
306
306
  loadErrors.push(e2);
@@ -314,7 +314,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
314
314
  try {
315
315
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
316
316
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
317
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
317
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
318
318
  return binding;
319
319
  } catch (e2) {
320
320
  loadErrors.push(e2);
@@ -330,7 +330,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
330
330
  try {
331
331
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
332
332
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
333
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
333
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
334
334
  return binding;
335
335
  } catch (e2) {
336
336
  loadErrors.push(e2);
@@ -344,7 +344,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
344
344
  try {
345
345
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
346
346
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
347
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
347
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
348
348
  return binding;
349
349
  } catch (e2) {
350
350
  loadErrors.push(e2);
@@ -360,7 +360,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
360
360
  try {
361
361
  const binding = __require("@rolldown/binding-linux-loong64-musl");
362
362
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
363
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
363
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
364
  return binding;
365
365
  } catch (e2) {
366
366
  loadErrors.push(e2);
@@ -374,7 +374,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
374
374
  try {
375
375
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
376
376
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
377
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
378
378
  return binding;
379
379
  } catch (e2) {
380
380
  loadErrors.push(e2);
@@ -390,7 +390,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
390
390
  try {
391
391
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
392
392
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
393
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
393
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
394
  return binding;
395
395
  } catch (e2) {
396
396
  loadErrors.push(e2);
@@ -404,7 +404,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
404
404
  try {
405
405
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
406
406
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
407
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
407
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
408
  return binding;
409
409
  } catch (e2) {
410
410
  loadErrors.push(e2);
@@ -419,7 +419,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
419
419
  try {
420
420
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
421
421
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
422
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
423
423
  return binding;
424
424
  } catch (e2) {
425
425
  loadErrors.push(e2);
@@ -433,7 +433,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
433
433
  try {
434
434
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
435
435
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
436
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
436
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
437
437
  return binding;
438
438
  } catch (e2) {
439
439
  loadErrors.push(e2);
@@ -449,7 +449,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
449
449
  try {
450
450
  const binding = __require("@rolldown/binding-openharmony-arm64");
451
451
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
452
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
452
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
453
  return binding;
454
454
  } catch (e2) {
455
455
  loadErrors.push(e2);
@@ -463,7 +463,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
463
463
  try {
464
464
  const binding = __require("@rolldown/binding-openharmony-x64");
465
465
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
466
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
466
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
467
467
  return binding;
468
468
  } catch (e2) {
469
469
  loadErrors.push(e2);
@@ -477,7 +477,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
477
477
  try {
478
478
  const binding = __require("@rolldown/binding-openharmony-arm");
479
479
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
480
- if (bindingPackageVersion !== "1.2.13" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
480
+ if (bindingPackageVersion !== "1.2.15" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
481
481
  return binding;
482
482
  } catch (e2) {
483
483
  loadErrors.push(e2);
@@ -568,7 +568,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
568
568
  if (!candidateFailed) {
569
569
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
570
570
  const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
571
- if (bindingPackageVersion !== "1.2.13") throw new Error(`WASI binding package version mismatch, expected 1.2.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
571
+ if (bindingPackageVersion !== "1.2.15") throw new Error(`WASI binding package version mismatch, expected 1.2.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
572
572
  }
573
573
  wasiBinding = __require("@rolldown/binding-wasm32-wasi");
574
574
  nativeBinding = wasiBinding;
@@ -697,7 +697,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
697
697
  module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
698
698
  }));
699
699
 
700
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/logs-D6uA606S.mjs
700
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/logs-DyTyzzWG.mjs
701
701
  function spaces(index) {
702
702
  let result = "";
703
703
  while (index--) result += " ";
@@ -872,7 +872,7 @@ function augmentCodeLocation(properties, pos, source, id2) {
872
872
  }
873
873
  }
874
874
 
875
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/normalize-string-or-regex-B7Gsiuz7.mjs
875
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/normalize-string-or-regex-DUkI3MrN.mjs
876
876
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
877
877
  var BuiltinPlugin = class {
878
878
  name;
@@ -911,7 +911,7 @@ function isReadonlyArray(input) {
911
911
  return Array.isArray(input);
912
912
  }
913
913
 
914
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/misc-DOSKtd97.mjs
914
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/misc-BaVlOYH0.mjs
915
915
  function arraify(value) {
916
916
  return Array.isArray(value) ? value : [value];
917
917
  }
@@ -933,7 +933,7 @@ function isPathFragment(name) {
933
933
  return name[0] === "/" || name[0] === "." && (name[1] === "/" || name[1] === ".") || ABSOLUTE_PATH_REGEX.test(name);
934
934
  }
935
935
 
936
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/error-Dsqzw0Oa.mjs
936
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/error-D0SD8_tL.mjs
937
937
  function bindingifySourcemap(map) {
938
938
  if (map == null) return;
939
939
  return { inner: typeof map === "string" ? map : {
@@ -1014,7 +1014,7 @@ function joinNewLine(s1, s2) {
1014
1014
  return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
1015
1015
  }
1016
1016
 
1017
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/parse-CbPMgY6t.mjs
1017
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/parse-B7LUicIJ.mjs
1018
1018
  var import_binding2 = /* @__PURE__ */ __toESM(require_binding(), 1);
1019
1019
  function wrap(result) {
1020
1020
  let program, module, comments, errors;
@@ -1055,7 +1055,7 @@ function parseSync(filename, sourceText, options) {
1055
1055
  return wrap((0, import_binding2.parseSync)(filename, sourceText, options));
1056
1056
  }
1057
1057
 
1058
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/parse-ast-index.mjs
1058
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/parse-ast-index.mjs
1059
1059
  function wrap2(result, filename, sourceText) {
1060
1060
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
1061
1061
  return result.program;
@@ -1091,7 +1091,7 @@ function parseAst(sourceText, options, filename) {
1091
1091
  }), filename, sourceText);
1092
1092
  }
1093
1093
 
1094
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/bindingify-input-options-C0gEvtnB.mjs
1094
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/bindingify-input-options-BMZwyvQ7.mjs
1095
1095
  import path from "node:path";
1096
1096
 
1097
1097
  // node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs
@@ -1177,9 +1177,9 @@ function exclude(expr) {
1177
1177
  return new Exclude(expr);
1178
1178
  }
1179
1179
 
1180
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/bindingify-input-options-C0gEvtnB.mjs
1180
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/bindingify-input-options-BMZwyvQ7.mjs
1181
1181
  import fsp from "node:fs/promises";
1182
- var version = "1.2.13";
1182
+ var version = "1.2.15";
1183
1183
  var VERSION = version;
1184
1184
  var LOG_LEVEL_SILENT = "silent";
1185
1185
  var LOG_LEVEL_WARN = "warn";
@@ -1684,6 +1684,9 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
1684
1684
  get dir() {
1685
1685
  return this.inner.dir ?? void 0;
1686
1686
  }
1687
+ get charset() {
1688
+ return this.inner.charset;
1689
+ }
1687
1690
  get entryFileNames() {
1688
1691
  return this.inner.entryFilenames || this.outputOptions.entryFileNames;
1689
1692
  }
@@ -1820,6 +1823,7 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
1820
1823
  }
1821
1824
  };
1822
1825
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "dir", null);
1826
+ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "charset", null);
1823
1827
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "entryFileNames", null);
1824
1828
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "chunkFileNames", null);
1825
1829
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "assetFileNames", null);
@@ -3087,7 +3091,7 @@ function normalizeTransformOptions(inputOptions) {
3087
3091
  };
3088
3092
  }
3089
3093
  function getDefaultDevRuntime(host = "localhost", port = 3e3) {
3090
- return "// @ts-check\n\nclass Module {\n /**\n * @type {{ exports: any }}\n */\n exportsHolder = { exports: null };\n /**\n * @type {string}\n */\n id;\n\n /**\n * @param {string} id\n */\n constructor(id) {\n this.id = id;\n }\n\n get exports() {\n return this.exportsHolder.exports;\n }\n}\n\n/**\n * Compiler-emitted module-graph delta \u2014 topology (static + dynamic edges).\n * `ids[0, localCount)` are the modules this payload carries; `ids[localCount, \u2026)` are foreign edge targets.\n * `edges[i]` / `dynamicEdges[i]` are the static / dynamic-`import()` out-edges of `ids[i]`.\n * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds\n * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.\n * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.\n * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.\n * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]>, stamps?: Record<number, number> }} ModuleGraphDelta\n * @typedef {{ createModuleHotContext(moduleId: string): any, onModuleCacheRemoval(moduleId: string): void }} DevRuntimeHooks\n */\n\nexport class MissingFactoryError extends Error {\n /**\n * @param {string} id\n */\n constructor(id) {\n super(`No factory registered for module ${id}`);\n this.id = id;\n }\n}\n\nexport class DevRuntime {\n /**\n * Client ID generated at runtime initialization, used for lazy compilation requests.\n * @type {string}\n */\n clientId;\n\n /**\n * @param {string} clientId\n */\n constructor(clientId) {\n this.clientId = clientId;\n }\n\n /**\n * Static import edges from `registerGraph` \u2014 entries persist across `removeModuleCache`\n * and change only by replacement from a newer payload (last write wins).\n * `bindings` is the payload row as sent; `getImportedBindings` resolves a missing entry.\n * @type {Map<string, { edges: string[], bindings: (string[] | null)[] | undefined }>}\n */\n staticImports = new Map();\n /**\n * Reverse index over the static imports.\n * @type {Map<string, Set<string>>}\n */\n importers = new Map();\n /**\n * Dynamic `import()` edges from `registerGraph`, keyed by importer \u2014 mirror of\n * `staticImports` for the dynamic reverse index.\n * @type {Map<string, { edges: string[] }>}\n */\n dynamicImports = new Map();\n /**\n * Reverse index over the dynamic imports.\n * @type {Map<string, Set<string>>}\n */\n dynamicImporters = new Map();\n /**\n * The module cache. Membership means \"this module's side effects ran in this tab\" \u2014\n * registration is emitted ahead of every module body, and nothing un-registers on\n * unwind, so a factory that throws mid-body stays registered. A `Map` rather than a\n * plain object: HMR eviction deletes entries, and a `delete` on an object drops V8\n * into dictionary mode, taxing every later lookup on the hottest read path.\n * @type {Map<string, Module>}\n */\n moduleCache = new Map();\n /**\n * Re-runnable factories from HMR patches and lazy chunks. The initial bundle stays\n * scope-hoisted and contributes none.\n * @type {Map<string, (id: string) => void>}\n */\n factories = new Map();\n /**\n * A late payload (a slow lazy chunk after an HMR patch) must not replace newer rows or\n * factories.\n * @type {Map<string, number>}\n */\n rowStamps = new Map();\n /** @type {Map<string, number>} */\n factoryStamps = new Map();\n /**\n * Installed by the dev client at boot. The runtime is a store + executor and makes\n * no HMR decisions; accepting, disposing, and reloading live behind these hooks.\n * @type {DevRuntimeHooks | null}\n */\n hooks = null;\n\n /**\n * @param {ModuleGraphDelta} delta\n */\n registerGraph(delta) {\n for (let i = 0; i < delta.localCount; i++) {\n const id = delta.ids[i];\n if (delta.stamps) {\n const stamp = delta.stamps[i] ?? 0;\n if (stamp < (this.rowStamps.get(id) ?? 0)) continue;\n this.rowStamps.set(id, stamp);\n } else {\n // A full-build chunk has no stamps. It runs its code right away, so its row always\n // replaces the old one.\n this.rowStamps.delete(id);\n }\n const edges = delta.edges[i].map((j) => delta.ids[j]);\n for (const target of this.staticImports.get(id)?.edges ?? []) {\n this.importers.get(target)?.delete(id);\n }\n for (const target of edges) {\n let importerSet = this.importers.get(target);\n if (!importerSet) {\n importerSet = new Set();\n this.importers.set(target, importerSet);\n }\n importerSet.add(id);\n }\n this.staticImports.set(id, { edges, bindings: delta.bindings?.[i] });\n\n // Dynamic `import()` edges are maintained in a parallel reverse index with the same\n // last-write-wins bookkeeping; `getImporters` unions the two.\n const dynamicEdges = (delta.dynamicEdges?.[i] ?? []).map((j) => delta.ids[j]);\n for (const target of this.dynamicImports.get(id)?.edges ?? []) {\n this.dynamicImporters.get(target)?.delete(id);\n }\n for (const target of dynamicEdges) {\n let importerSet = this.dynamicImporters.get(target);\n if (!importerSet) {\n importerSet = new Set();\n this.dynamicImporters.set(target, importerSet);\n }\n importerSet.add(id);\n }\n this.dynamicImports.set(id, { edges: dynamicEdges });\n }\n }\n\n /**\n * @param {string} id\n * @param {(id: string) => void} fn\n * @param {number} [stamp]\n */\n registerFactory(id, fn, stamp = 0) {\n if (stamp < (this.factoryStamps.get(id) ?? 0)) return;\n this.factoryStamps.set(id, stamp);\n this.factories.set(id, fn);\n }\n\n /**\n * @param {string} id\n * @param {{ exports: any }} [exportsHolder]\n */\n registerModule(id, exportsHolder = { exports: {} }) {\n const module = new Module(id);\n module.exportsHolder = exportsHolder;\n this.moduleCache.set(id, module);\n }\n\n /**\n * @param {string} id\n * @returns {string[]}\n */\n getImporters(id) {\n // Static \u222A dynamic importers \u2014 the boundary walk treats both kinds the same (parity\n // with Vite `node.importers` / webpack `module.parents`). Deduped so a module that\n // imports `id` both statically and via `import()` appears once.\n const dynamic = this.dynamicImporters.get(id);\n if (!dynamic || dynamic.size === 0) {\n return [...(this.importers.get(id) ?? [])];\n }\n return [...new Set([...(this.importers.get(id) ?? []), ...dynamic])];\n }\n\n /**\n * `\"*\"` means the whole namespace, an empty list a side-effect-only import, `undefined` no edge.\n * @param {string} importer\n * @param {string} id\n * @returns {string[] | undefined}\n */\n getImportedBindings(importer, id) {\n const record = this.staticImports.get(importer);\n const j = record ? record.edges.indexOf(id) : -1;\n const names = j === -1 ? undefined : (record?.bindings?.[j] ?? ['*']);\n if (!this.dynamicImports.get(importer)?.edges.includes(id)) {\n return names;\n }\n if (!names) return ['*'];\n return names.includes('*') ? names : [...names, '*'];\n }\n\n /**\n * @param {string} id\n */\n isExecuted(id) {\n return this.moduleCache.has(id);\n }\n\n /**\n * @param {string} id\n */\n hasFactory(id) {\n return this.factories.has(id);\n }\n\n /**\n * Module-cache delete only \u2014 static imports and factories persist. Removal is what\n * re-arms a cache-gated factory for `initModule`.\n * @param {string} id\n */\n removeModuleCache(id) {\n this.moduleCache.delete(id);\n this.hooks?.onModuleCacheRemoval(id);\n }\n\n /**\n * The one re-execution gate: registered \u2192 return the live exports; otherwise run the\n * mapped factory (which registers itself first, then runs the body).\n * @param {string} id\n */\n initModule(id) {\n if (this.moduleCache.has(id)) {\n return this.loadExports(id);\n }\n const factory = this.factories.get(id);\n if (!factory) {\n throw new MissingFactoryError(id);\n }\n factory(id);\n return this.loadExports(id);\n }\n\n /**\n * @param {string} id\n */\n loadExports(id) {\n const module = this.moduleCache.get(id);\n if (module) {\n return module.exportsHolder.exports;\n } else {\n console.warn(`Module ${id} not found`);\n return {};\n }\n }\n\n /**\n * @param {string} moduleId\n */\n createModuleHotContext(moduleId) {\n if (this.hooks) {\n return this.hooks.createModuleHotContext(moduleId);\n }\n throw new Error('createModuleHotContext requires installed hooks or an override');\n }\n\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __toESM = __toESM;\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __toCommonJS = __toCommonJS;\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __exportAll = __exportAll;\n /**\n * @param {boolean} [isNodeMode]\n * @returns {(mod: any) => any}\n * @internal\n */\n // @ts-expect-error The variable will be injected at build time.\n __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __reExport = __reExport;\n}\n\n// @ts-check\n\n/** @import { DevRuntime } from './runtime-extra-dev-common.js' */\n\n/** @type {typeof DevRuntime} */\n// @ts-expect-error -- there's no way to declare a variable by JSDoc\nvar BaseDevRuntime = DevRuntime;\n\nclass ModuleHotContext {\n /**\n * @type {{ deps: [string], fn: (moduleExports: Record<string, any>[]) => void }[]}\n */\n acceptCallbacks = [];\n /**\n * @param {string} moduleId\n * @param {InstanceType<BaseDevRuntime>} devRuntime\n */\n constructor(moduleId, devRuntime) {\n this.moduleId = moduleId;\n this.devRuntime = devRuntime;\n }\n\n /**\n * @overload\n * @param {(mod: Record<string, any>) => void} cb\n * @returns {void}\n */\n /**\n * @param {...any} args\n * @returns {void}\n */\n accept(...args) {\n if (args.length === 1) {\n const [cb] = /** @type {[(mod: Record<string, any>) => void]} */ (args);\n const acceptingPath = this.moduleId;\n this.acceptCallbacks.push({\n deps: [acceptingPath],\n fn: cb,\n });\n } else if (args.length === 0) {}\n else {\n throw new Error('Invalid arguments for `import.meta.hot.accept`');\n }\n }\n\n invalidate() {\n socket.send(JSON.stringify({\n type: 'hmr:invalidate',\n moduleId: this.moduleId,\n }));\n }\n}\n\nclass DefaultDevRuntime extends BaseDevRuntime {\n /**\n * @type {Map<string, ModuleHotContext>}\n */\n moduleHotContexts = new Map();\n /**\n * @override\n * @param {string} moduleId\n */\n createModuleHotContext(moduleId) {\n const hotContext = new ModuleHotContext(moduleId, this);\n this.moduleHotContexts.set(moduleId, hotContext);\n return hotContext;\n }\n}\n\n/** @param {string} url */\nfunction loadScript(url) {\n var script = document.createElement('script');\n script.src = url;\n script.type = 'module';\n script.onerror = function() {\n console.error('Failed to load script: ' + url);\n };\n document.body.appendChild(script);\n}\n\nconsole.debug('HMR runtime loaded', '$ADDR');\n// Generate client ID immediately at runtime initialization\n// This ensures the client ID is available before any lazy imports\nconst clientId = crypto.randomUUID();\nconst addr = new URL('ws://$ADDR');\naddr.searchParams.set('clientId', clientId);\n\nconst socket = new WebSocket(addr);\n\n(/** @type {any} */ (globalThis)).__rolldown_runtime__ ??=\n new DefaultDevRuntime(clientId);\n\n/** @param {MessageEvent} event */\nsocket.onmessage = function(event) {\n const data = JSON.parse(event.data);\n console.debug('Received message:', data);\n if (data.type === 'connected') {\n // Server acknowledged the connection\n console.debug('[hmr]: Connection established with server');\n } else if (data.type === 'hmr:update') {\n if (typeof process === 'object') {\n import(data.path);\n console.debug(`[hmr]: Importing HMR patch: ${data.path}`);\n } else {\n console.debug(`[hmr]: Loading HMR patch: ${data.path}`);\n loadScript(data.url);\n }\n } else if (data.type === 'hmr:reload') {\n console.log('[hmr]: Full reload required, reloading page');\n if (typeof location !== 'undefined') {\n location.reload();\n } else {\n console.log('[hmr]: location is undefined, cannot reload page');\n }\n }\n};\n".replaceAll("$ADDR", `${host}:${port}`);
3094
+ return "// @ts-check\n\nclass Module {\n /**\n * @type {{ exports: any }}\n */\n exportsHolder = { exports: null };\n /**\n * @type {string}\n */\n id;\n\n /**\n * @param {string} id\n */\n constructor(id) {\n this.id = id;\n }\n\n get exports() {\n return this.exportsHolder.exports;\n }\n}\n\n/**\n * Compiler-emitted module-graph delta \u2014 topology (static + dynamic edges).\n * `ids[0, localCount)` are the modules this payload carries; `ids[localCount, \u2026)` are foreign edge targets.\n * `edges[i]` / `dynamicEdges[i]` are the static / dynamic-`import()` out-edges of `ids[i]`.\n * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds\n * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.\n * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.\n * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.\n * `entries` lists the rows whose module is an entry.\n * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]>, stamps?: Record<number, number>, entries?: number[] }} ModuleGraphDelta\n * @typedef {{ createModuleHotContext(moduleId: string): any, onModuleCacheRemoval(moduleId: string): void }} DevRuntimeHooks\n */\n\nexport class MissingFactoryError extends Error {\n /**\n * @param {string} id\n */\n constructor(id) {\n super(`No factory registered for module ${id}`);\n this.id = id;\n }\n}\n\nexport class DevRuntime {\n /**\n * Client ID generated at runtime initialization, used for lazy compilation requests.\n * @type {string}\n */\n clientId;\n\n /**\n * @param {string} clientId\n */\n constructor(clientId) {\n this.clientId = clientId;\n }\n\n /**\n * Static import edges from `registerGraph` \u2014 entries persist across `removeModuleCache`\n * and change only by replacement from a newer payload (last write wins).\n * `bindings` is the payload row as sent; `getImportedBindings` resolves a missing entry.\n * @type {Map<string, { edges: string[], bindings: (string[] | null)[] | undefined }>}\n */\n staticImports = new Map();\n /**\n * Reverse index over the static imports.\n * @type {Map<string, Set<string>>}\n */\n importers = new Map();\n /**\n * Dynamic `import()` edges from `registerGraph`, keyed by importer \u2014 mirror of\n * `staticImports` for the dynamic reverse index.\n * @type {Map<string, { edges: string[] }>}\n */\n dynamicImports = new Map();\n /**\n * Reverse index over the dynamic imports.\n * @type {Map<string, Set<string>>}\n */\n dynamicImporters = new Map();\n /** @type {Set<string>} */\n entries = new Set();\n /**\n * The module cache. Membership means \"this module's side effects ran in this tab\" \u2014\n * registration is emitted ahead of every module body, and nothing un-registers on\n * unwind, so a factory that throws mid-body stays registered. A `Map` rather than a\n * plain object: HMR eviction deletes entries, and a `delete` on an object drops V8\n * into dictionary mode, taxing every later lookup on the hottest read path.\n * @type {Map<string, Module>}\n */\n moduleCache = new Map();\n /**\n * Re-runnable factories from HMR patches and lazy chunks. The initial bundle stays\n * scope-hoisted and contributes none.\n * @type {Map<string, (id: string) => void>}\n */\n factories = new Map();\n /**\n * A late payload (a slow lazy chunk after an HMR patch) must not replace newer rows or\n * factories.\n * @type {Map<string, number>}\n */\n rowStamps = new Map();\n /** @type {Map<string, number>} */\n factoryStamps = new Map();\n /**\n * Installed by the dev client at boot. The runtime is a store + executor and makes\n * no HMR decisions; accepting, disposing, and reloading live behind these hooks.\n * @type {DevRuntimeHooks | null}\n */\n hooks = null;\n\n /**\n * @param {ModuleGraphDelta} delta\n */\n registerGraph(delta) {\n for (let i = 0; i < delta.localCount; i++) {\n const id = delta.ids[i];\n if (delta.stamps) {\n const stamp = delta.stamps[i] ?? 0;\n if (stamp < (this.rowStamps.get(id) ?? 0)) continue;\n this.rowStamps.set(id, stamp);\n } else {\n // A full-build chunk has no stamps. It runs its code right away, so its row always\n // replaces the old one.\n this.rowStamps.delete(id);\n }\n const edges = delta.edges[i].map((j) => delta.ids[j]);\n for (const target of this.staticImports.get(id)?.edges ?? []) {\n this.importers.get(target)?.delete(id);\n }\n for (const target of edges) {\n let importerSet = this.importers.get(target);\n if (!importerSet) {\n importerSet = new Set();\n this.importers.set(target, importerSet);\n }\n importerSet.add(id);\n }\n this.staticImports.set(id, { edges, bindings: delta.bindings?.[i] });\n\n // Dynamic `import()` edges are maintained in a parallel reverse index with the same\n // last-write-wins bookkeeping; `getImporters` unions the two.\n const dynamicEdges = (delta.dynamicEdges?.[i] ?? []).map((j) => delta.ids[j]);\n for (const target of this.dynamicImports.get(id)?.edges ?? []) {\n this.dynamicImporters.get(target)?.delete(id);\n }\n for (const target of dynamicEdges) {\n let importerSet = this.dynamicImporters.get(target);\n if (!importerSet) {\n importerSet = new Set();\n this.dynamicImporters.set(target, importerSet);\n }\n importerSet.add(id);\n }\n this.dynamicImports.set(id, { edges: dynamicEdges });\n\n if (delta.entries?.includes(i)) {\n this.entries.add(id);\n } else {\n this.entries.delete(id);\n }\n }\n }\n\n /**\n * @param {string} id\n * @param {(id: string) => void} fn\n * @param {number} [stamp]\n */\n registerFactory(id, fn, stamp = 0) {\n if (stamp < (this.factoryStamps.get(id) ?? 0)) return;\n this.factoryStamps.set(id, stamp);\n this.factories.set(id, fn);\n }\n\n /**\n * @param {string} id\n * @param {{ exports: any }} [exportsHolder]\n */\n registerModule(id, exportsHolder = { exports: {} }) {\n const module = new Module(id);\n module.exportsHolder = exportsHolder;\n this.moduleCache.set(id, module);\n }\n\n /**\n * @param {string} id\n * @returns {string[]}\n */\n getImporters(id) {\n // Static \u222A dynamic importers \u2014 the boundary walk treats both kinds the same (parity\n // with Vite `node.importers` / webpack `module.parents`). Deduped so a module that\n // imports `id` both statically and via `import()` appears once.\n const dynamic = this.dynamicImporters.get(id);\n if (!dynamic || dynamic.size === 0) {\n return [...(this.importers.get(id) ?? [])];\n }\n return [...new Set([...(this.importers.get(id) ?? []), ...dynamic])];\n }\n\n /**\n * `\"*\"` means the whole namespace, an empty list a side-effect-only import, `undefined` no edge.\n * @param {string} importer\n * @param {string} id\n * @returns {string[] | undefined}\n */\n getImportedBindings(importer, id) {\n const record = this.staticImports.get(importer);\n const j = record ? record.edges.indexOf(id) : -1;\n const names = j === -1 ? undefined : (record?.bindings?.[j] ?? ['*']);\n if (!this.dynamicImports.get(importer)?.edges.includes(id)) {\n return names;\n }\n if (!names) return ['*'];\n return names.includes('*') ? names : [...names, '*'];\n }\n\n /**\n * @param {string} id\n */\n isEntry(id) {\n return this.entries.has(id);\n }\n\n /**\n * @param {string} id\n */\n isExecuted(id) {\n return this.moduleCache.has(id);\n }\n\n /**\n * @param {string} id\n */\n hasFactory(id) {\n return this.factories.has(id);\n }\n\n /**\n * Module-cache delete only \u2014 static imports and factories persist. Removal is what\n * re-arms a cache-gated factory for `initModule`.\n * @param {string} id\n */\n removeModuleCache(id) {\n this.moduleCache.delete(id);\n this.hooks?.onModuleCacheRemoval(id);\n }\n\n /**\n * The one re-execution gate: registered \u2192 return the live exports; otherwise run the\n * mapped factory (which registers itself first, then runs the body).\n * @param {string} id\n */\n initModule(id) {\n if (this.moduleCache.has(id)) {\n return this.loadExports(id);\n }\n const factory = this.factories.get(id);\n if (!factory) {\n throw new MissingFactoryError(id);\n }\n factory(id);\n return this.loadExports(id);\n }\n\n /**\n * @param {string} id\n */\n loadExports(id) {\n const module = this.moduleCache.get(id);\n if (module) {\n return module.exportsHolder.exports;\n } else {\n console.warn(`Module ${id} not found`);\n return {};\n }\n }\n\n /**\n * @param {string} moduleId\n */\n createModuleHotContext(moduleId) {\n if (this.hooks) {\n return this.hooks.createModuleHotContext(moduleId);\n }\n throw new Error('createModuleHotContext requires installed hooks or an override');\n }\n\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __toESM = __toESM;\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __toCommonJS = __toCommonJS;\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __exportAll = __exportAll;\n /**\n * @param {boolean} [isNodeMode]\n * @returns {(mod: any) => any}\n * @internal\n */\n // @ts-expect-error The variable will be injected at build time.\n __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __reExport = __reExport;\n}\n\n// @ts-check\n\n/** @import { DevRuntime } from './runtime-extra-dev-common.js' */\n\n/** @type {typeof DevRuntime} */\n// @ts-expect-error -- there's no way to declare a variable by JSDoc\nvar BaseDevRuntime = DevRuntime;\n\nclass ModuleHotContext {\n /**\n * @type {{ deps: [string], fn: (moduleExports: Record<string, any>[]) => void }[]}\n */\n acceptCallbacks = [];\n /**\n * @param {string} moduleId\n * @param {InstanceType<BaseDevRuntime>} devRuntime\n */\n constructor(moduleId, devRuntime) {\n this.moduleId = moduleId;\n this.devRuntime = devRuntime;\n }\n\n /**\n * @overload\n * @param {(mod: Record<string, any>) => void} cb\n * @returns {void}\n */\n /**\n * @param {...any} args\n * @returns {void}\n */\n accept(...args) {\n if (args.length === 1) {\n const [cb] = /** @type {[(mod: Record<string, any>) => void]} */ (args);\n const acceptingPath = this.moduleId;\n this.acceptCallbacks.push({\n deps: [acceptingPath],\n fn: cb,\n });\n } else if (args.length === 0) {}\n else {\n throw new Error('Invalid arguments for `import.meta.hot.accept`');\n }\n }\n\n invalidate() {\n socket.send(JSON.stringify({\n type: 'hmr:invalidate',\n moduleId: this.moduleId,\n }));\n }\n}\n\nclass DefaultDevRuntime extends BaseDevRuntime {\n /**\n * @type {Map<string, ModuleHotContext>}\n */\n moduleHotContexts = new Map();\n /**\n * @override\n * @param {string} moduleId\n */\n createModuleHotContext(moduleId) {\n const hotContext = new ModuleHotContext(moduleId, this);\n this.moduleHotContexts.set(moduleId, hotContext);\n return hotContext;\n }\n}\n\n/** @param {string} url */\nfunction loadScript(url) {\n var script = document.createElement('script');\n script.src = url;\n script.type = 'module';\n script.onerror = function() {\n console.error('Failed to load script: ' + url);\n };\n document.body.appendChild(script);\n}\n\nconsole.debug('HMR runtime loaded', '$ADDR');\n// Generate client ID immediately at runtime initialization\n// This ensures the client ID is available before any lazy imports\nconst clientId = crypto.randomUUID();\nconst addr = new URL('ws://$ADDR');\naddr.searchParams.set('clientId', clientId);\n\nconst socket = new WebSocket(addr);\n\n(/** @type {any} */ (globalThis)).__rolldown_runtime__ ??=\n new DefaultDevRuntime(clientId);\n\n/** @param {MessageEvent} event */\nsocket.onmessage = function(event) {\n const data = JSON.parse(event.data);\n console.debug('Received message:', data);\n if (data.type === 'connected') {\n // Server acknowledged the connection\n console.debug('[hmr]: Connection established with server');\n } else if (data.type === 'hmr:update') {\n if (typeof process === 'object') {\n import(data.path);\n console.debug(`[hmr]: Importing HMR patch: ${data.path}`);\n } else {\n console.debug(`[hmr]: Loading HMR patch: ${data.path}`);\n loadScript(data.url);\n }\n } else if (data.type === 'hmr:reload') {\n console.log('[hmr]: Full reload required, reloading page');\n if (typeof location !== 'undefined') {\n location.reload();\n } else {\n console.log('[hmr]: location is undefined, cannot reload page');\n }\n }\n};\n".replaceAll("$ADDR", `${host}:${port}`);
3091
3095
  }
3092
3096
  function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode, timings) {
3093
3097
  const plugins = rawPlugins.map((plugin) => {
@@ -3344,7 +3348,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
3344
3348
  };
3345
3349
  }
3346
3350
 
3347
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/create-bundler-option-2b9QJDoZ.mjs
3351
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/create-bundler-option-DzNR1xQS.mjs
3348
3352
  import { Worker } from "node:worker_threads";
3349
3353
  import path2, { sep } from "node:path";
3350
3354
  import { formatWithOptions, styleText } from "node:util";
@@ -4562,7 +4566,8 @@ var ChecksOptionsSchema = /* @__PURE__ */ strictObject({
4562
4566
  ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
4563
4567
  largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)")),
4564
4568
  sourcemapBroken: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin transforms code without generating a sourcemap")),
4565
- namespaceConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when multiple star re-exports provide the same name from different modules"))
4569
+ namespaceConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when multiple star re-exports provide the same name from different modules")),
4570
+ shimmedExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a missing export is replaced with an undefined binding"))
4566
4571
  });
4567
4572
  var MinifyOptionsSchema = /* @__PURE__ */ strictObject({
4568
4573
  compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
@@ -4800,6 +4805,7 @@ var GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
4800
4805
  var OutputOptionsSchema = /* @__PURE__ */ strictObject({
4801
4806
  dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
4802
4807
  file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
4808
+ charset: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("ascii"), /* @__PURE__ */ literal("utf8")])), /* @__PURE__ */ description("Character set to use in generated JavaScript")),
4803
4809
  exports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
4804
4810
  /* @__PURE__ */ literal("auto"),
4805
4811
  /* @__PURE__ */ literal("named"),
@@ -5925,7 +5931,7 @@ function createConsola(options = {}) {
5925
5931
  defaults: { level },
5926
5932
  stdout: process.stdout,
5927
5933
  stderr: process.stderr,
5928
- prompt: (...args2) => import("./prompt-CH6TK0bC-B3USYOND.js").then((m) => m.prompt(...args2)),
5934
+ prompt: (...args2) => import("./prompt-DkftHXS7-N7UENQ4C.js").then((m) => m.prompt(...args2)),
5929
5935
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
5930
5936
  ...options
5931
5937
  });
@@ -5959,11 +5965,12 @@ function createTestingLogger() {
5959
5965
  return ret;
5960
5966
  }
5961
5967
  function bindingifyOutputOptions(outputOptions, pluginContextData, onLog, timings) {
5962
- const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapFileNames, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
5968
+ const { dir, charset, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapFileNames, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
5963
5969
  if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
5964
5970
  const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData, onLog, timings);
5965
5971
  return {
5966
5972
  dir,
5973
+ charset,
5967
5974
  file: file == null ? void 0 : file,
5968
5975
  format: bindingifyFormat(format),
5969
5976
  exports,
@@ -6314,7 +6321,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, meas
6314
6321
  }
6315
6322
  }
6316
6323
 
6317
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/watch-D9MpODOf.mjs
6324
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/watch-DCbIzCTu.mjs
6318
6325
  var signals = [];
6319
6326
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
6320
6327
  if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
@@ -6613,7 +6620,7 @@ function watch(input) {
6613
6620
  return emitter;
6614
6621
  }
6615
6622
 
6616
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/rolldown-D_vNlorD.mjs
6623
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/rolldown-CMhwwZPA.mjs
6617
6624
  var import_binding6 = /* @__PURE__ */ __toESM(require_binding(), 1);
6618
6625
  var RolldownOutputImpl = class extends PlainObjectLike {
6619
6626
  bindingOutputs;
@@ -6643,7 +6650,7 @@ var RolldownBuild = class {
6643
6650
  #inputOptions;
6644
6651
  #bundler;
6645
6652
  #stopWorkers;
6646
- #asyncRuntimeReleased = false;
6653
+ #closing;
6647
6654
  /** @hidden should not be used directly */
6648
6655
  constructor(inputOptions) {
6649
6656
  this.#inputOptions = inputOptions;
@@ -6704,15 +6711,27 @@ var RolldownBuild = class {
6704
6711
  * ```
6705
6712
  */
6706
6713
  async close() {
6707
- const shouldRelease = !this.#asyncRuntimeReleased;
6708
- this.#asyncRuntimeReleased = true;
6714
+ if (this.#closing) {
6715
+ await this.#closing.catch(noop);
6716
+ return;
6717
+ }
6718
+ this.#closing = this.#close();
6719
+ await this.#closing;
6720
+ }
6721
+ async #close() {
6722
+ let stopWorkersError;
6709
6723
  try {
6710
- await this.#stopWorkers?.();
6711
- await this.#bundler.close();
6724
+ try {
6725
+ await this.#stopWorkers?.();
6726
+ } catch (error2) {
6727
+ stopWorkersError = { error: error2 };
6728
+ }
6712
6729
  this.#stopWorkers = void 0;
6730
+ await this.#bundler.close();
6713
6731
  } finally {
6714
- if (shouldRelease) (0, import_binding6.shutdownAsyncRuntime)();
6732
+ (0, import_binding6.shutdownAsyncRuntime)();
6715
6733
  }
6734
+ if (stopWorkersError) throw stopWorkersError.error;
6716
6735
  }
6717
6736
  /** @hidden documented in close method */
6718
6737
  async [Symbol.asyncDispose]() {
@@ -6746,18 +6765,18 @@ var rolldown = async (input) => {
6746
6765
  return new RolldownBuild(await PluginDriver.callOptionsHook(input));
6747
6766
  };
6748
6767
 
6749
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs
6768
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/shared/define-config-BQBrxnNZ.mjs
6750
6769
  function defineConfig(config) {
6751
6770
  return config;
6752
6771
  }
6753
6772
 
6754
- // node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/index.mjs
6773
+ // node_modules/.pnpm/rolldown@1.2.15/node_modules/rolldown/dist/index.mjs
6755
6774
  import { isMainThread } from "node:worker_threads";
6756
6775
  var import_binding7 = /* @__PURE__ */ __toESM(require_binding(), 1);
6757
6776
  if (isMainThread) {
6758
6777
  const subscriberGuard = (0, import_binding7.initTraceSubscriber)();
6759
- onExit(() => {
6760
- subscriberGuard?.close();
6778
+ if (subscriberGuard) onExit(() => {
6779
+ subscriberGuard.close();
6761
6780
  });
6762
6781
  }
6763
6782
  var RUNTIME_MODULE_ID = "\0rolldown/runtime.js";