nitro-nightly 4.0.0-20251030-091344-d4418b98 → 4.0.0-20251030-121649-98b56dfe

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 (334) hide show
  1. package/dist/_build/common.mjs +763 -0
  2. package/dist/_build/rolldown.mjs +216 -0
  3. package/dist/_build/rollup.mjs +359 -0
  4. package/dist/_build/vite.build.mjs +67 -0
  5. package/dist/_build/vite.plugin.mjs +747 -0
  6. package/dist/_chunks/B-7HiF0V.mjs +1303 -0
  7. package/dist/_chunks/B3asVbT4.mjs +151 -0
  8. package/dist/_chunks/B5ooyfLk.mjs +372 -0
  9. package/dist/_chunks/DXMHy5ca.mjs +43 -0
  10. package/dist/_dev.d.mts +12 -0
  11. package/dist/_dev.mjs +675 -0
  12. package/dist/_libs/acorn.mjs +5034 -0
  13. package/dist/_libs/c12.mjs +2798 -0
  14. package/dist/_libs/chokidar.mjs +1560 -0
  15. package/dist/_libs/citty.mjs +333 -0
  16. package/dist/_libs/commondir.mjs +22 -0
  17. package/dist/_libs/compatx.mjs +46 -0
  18. package/dist/_libs/confbox.mjs +2920 -0
  19. package/dist/_libs/debug.mjs +848 -0
  20. package/dist/_libs/deepmerge.mjs +86 -0
  21. package/dist/_libs/depd.mjs +314 -0
  22. package/dist/_libs/dot-prop.mjs +138 -0
  23. package/dist/_libs/duplexer.mjs +71 -0
  24. package/dist/_libs/ee-first.mjs +68 -0
  25. package/dist/_libs/encodeurl.mjs +49 -0
  26. package/dist/_libs/escape-html.mjs +58 -0
  27. package/dist/_libs/escape-string-regexp.mjs +8 -0
  28. package/dist/_libs/estree-walker.mjs +330 -0
  29. package/dist/_libs/etag.mjs +75 -0
  30. package/dist/{_chunks/_deps → _libs}/fdir.mjs +49 -104
  31. package/dist/_libs/fresh.mjs +85 -0
  32. package/dist/_libs/function-bind.mjs +63 -0
  33. package/dist/_libs/gen-mapping.mjs +612 -0
  34. package/dist/_libs/giget.mjs +19076 -0
  35. package/dist/_libs/gzip-size.mjs +21 -0
  36. package/dist/_libs/hasown.mjs +14 -0
  37. package/dist/_libs/http-errors.mjs +436 -0
  38. package/dist/_libs/httpxy.mjs +410 -0
  39. package/dist/_libs/is-core-module.mjs +220 -0
  40. package/dist/_libs/is-module.mjs +13 -0
  41. package/dist/_libs/is-reference.mjs +32 -0
  42. package/dist/{_chunks/_deps → _libs}/js-tokens.mjs +83 -112
  43. package/dist/_libs/klona.mjs +90 -0
  44. package/dist/_libs/knitwork.mjs +124 -0
  45. package/dist/_libs/local-pkg.mjs +1686 -0
  46. package/dist/{_chunks/_deps → _libs}/magic-string.mjs +272 -629
  47. package/dist/_libs/mime-db.mjs +7642 -0
  48. package/dist/_libs/mime-types.mjs +162 -0
  49. package/dist/_libs/mime.mjs +1391 -0
  50. package/dist/_libs/node-fetch-native.mjs +173 -0
  51. package/dist/_libs/on-finished.mjs +170 -0
  52. package/dist/_libs/parseurl.mjs +103 -0
  53. package/dist/_libs/path-parse.mjs +47 -0
  54. package/dist/_libs/pathe.mjs +41 -0
  55. package/dist/_libs/picomatch.mjs +1673 -0
  56. package/dist/_libs/plugin-alias.mjs +64 -0
  57. package/dist/_libs/plugin-commonjs.mjs +1489 -0
  58. package/dist/_libs/plugin-inject.mjs +135 -0
  59. package/dist/_libs/plugin-json.mjs +36 -0
  60. package/dist/_libs/plugin-node-resolve.mjs +1553 -0
  61. package/dist/_libs/plugin-replace.mjs +104 -0
  62. package/dist/_libs/pretty-bytes.mjs +116 -0
  63. package/dist/_libs/range-parser.mjs +102 -0
  64. package/dist/_libs/remapping.mjs +117 -0
  65. package/dist/{_chunks/_deps → _libs}/rou3.mjs +7 -22
  66. package/dist/_libs/send.mjs +857 -0
  67. package/dist/_libs/serve-static.mjs +124 -0
  68. package/dist/_libs/std-env.mjs +158 -0
  69. package/dist/_libs/strip-literal.mjs +51 -0
  70. package/dist/{_chunks/_deps → _libs}/tinyglobby.mjs +32 -33
  71. package/dist/_libs/ultrahtml.mjs +138 -0
  72. package/dist/_libs/unimport.mjs +3520 -0
  73. package/dist/_libs/untyped.mjs +271 -0
  74. package/dist/_libs/unwasm.mjs +5825 -0
  75. package/dist/{_chunks/_deps/@pi0 → _libs}/vite-plugin-fullstack.mjs +28 -42
  76. package/dist/_presets.mjs +1723 -0
  77. package/dist/builder.d.mts +37 -35
  78. package/dist/builder.mjs +45 -117
  79. package/dist/cli/_chunks/build.mjs +43 -0
  80. package/dist/cli/_chunks/common.mjs +15 -0
  81. package/dist/cli/_chunks/detect-acorn.mjs +12 -0
  82. package/dist/cli/_chunks/dev.mjs +79 -0
  83. package/dist/cli/_chunks/dist.mjs +3 -0
  84. package/dist/cli/_chunks/dist2.mjs +4 -0
  85. package/dist/cli/_chunks/esm.mjs +3 -0
  86. package/dist/cli/_chunks/json5.mjs +4 -0
  87. package/dist/cli/_chunks/jsonc.mjs +4 -0
  88. package/dist/cli/_chunks/list.mjs +27 -0
  89. package/dist/cli/_chunks/multipart-parser.mjs +6 -0
  90. package/dist/cli/_chunks/prepare.mjs +19 -0
  91. package/dist/cli/_chunks/run.mjs +55 -0
  92. package/dist/cli/_chunks/task.mjs +16 -0
  93. package/dist/cli/_chunks/toml.mjs +4 -0
  94. package/dist/cli/_chunks/yaml.mjs +4 -0
  95. package/dist/cli/index.d.mts +1 -1
  96. package/dist/cli/index.mjs +19 -18
  97. package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -0
  98. package/dist/presets/_nitro/runtime/nitro-dev.mjs +42 -33
  99. package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +2 -2
  100. package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +4 -8
  101. package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -0
  102. package/dist/presets/_nitro/runtime/service-worker.mjs +14 -11
  103. package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -0
  104. package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +6 -5
  105. package/dist/presets/aws-lambda/runtime/_utils.d.mts +8 -13
  106. package/dist/presets/aws-lambda/runtime/_utils.mjs +95 -81
  107. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -2
  108. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +25 -27
  109. package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +7 -7
  110. package/dist/presets/azure/runtime/_utils.mjs +43 -43
  111. package/dist/presets/azure/runtime/azure-swa.d.mts +2 -2
  112. package/dist/presets/azure/runtime/azure-swa.mjs +22 -21
  113. package/dist/presets/bun/runtime/bun.d.mts +1 -0
  114. package/dist/presets/bun/runtime/bun.mjs +18 -17
  115. package/dist/presets/cloudflare/runtime/_module-handler.d.mts +10 -7
  116. package/dist/presets/cloudflare/runtime/_module-handler.mjs +78 -87
  117. package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +6 -14
  118. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +53 -58
  119. package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -7
  120. package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +12 -14
  121. package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +12 -12
  122. package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +35 -39
  123. package/dist/presets/cloudflare/runtime/plugin.dev.d.mts +2 -2
  124. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +86 -76
  125. package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -0
  126. package/dist/presets/deno/runtime/deno-deploy.mjs +12 -11
  127. package/dist/presets/deno/runtime/deno-server.d.mts +2 -1
  128. package/dist/presets/deno/runtime/deno-server.mjs +31 -39
  129. package/dist/presets/netlify/runtime/netlify-edge.d.mts +2 -1
  130. package/dist/presets/netlify/runtime/netlify-edge.mjs +14 -11
  131. package/dist/presets/netlify/runtime/netlify.mjs +11 -17
  132. package/dist/presets/node/runtime/node-cluster.mjs +49 -48
  133. package/dist/presets/node/runtime/node-middleware.d.mts +3 -2
  134. package/dist/presets/node/runtime/node-middleware.mjs +7 -6
  135. package/dist/presets/node/runtime/node-server.mjs +33 -23
  136. package/dist/presets/standard/runtime/server.d.mts +1 -3
  137. package/dist/presets/standard/runtime/server.mjs +1 -3
  138. package/dist/presets/stormkit/runtime/stormkit.d.mts +13 -13
  139. package/dist/presets/stormkit/runtime/stormkit.mjs +20 -20
  140. package/dist/presets/vercel/runtime/vercel.d.mts +3 -3
  141. package/dist/presets/vercel/runtime/vercel.mjs +15 -14
  142. package/dist/presets/winterjs/runtime/winterjs.d.mts +2 -0
  143. package/dist/presets/winterjs/runtime/winterjs.mjs +72 -68
  144. package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
  145. package/dist/runtime/index.d.mts +12 -1
  146. package/dist/runtime/index.mjs +12 -7
  147. package/dist/runtime/internal/app.mjs +175 -162
  148. package/dist/runtime/internal/cache.d.mts +10 -4
  149. package/dist/runtime/internal/cache.mjs +247 -216
  150. package/dist/runtime/internal/context.d.mts +9 -9
  151. package/dist/runtime/internal/context.mjs +17 -10
  152. package/dist/runtime/internal/database.mjs +8 -10
  153. package/dist/runtime/internal/error/dev.d.mts +5 -4
  154. package/dist/runtime/internal/error/dev.mjs +106 -105
  155. package/dist/runtime/internal/error/prod.d.mts +2 -2
  156. package/dist/runtime/internal/error/prod.mjs +48 -52
  157. package/dist/runtime/internal/error/utils.d.mts +4 -4
  158. package/dist/runtime/internal/error/utils.mjs +1 -1
  159. package/dist/runtime/internal/index.d.mts +2 -0
  160. package/dist/runtime/internal/index.mjs +2 -0
  161. package/dist/runtime/internal/lib/http-graceful-shutdown.d.mts +14 -14
  162. package/dist/runtime/internal/lib/http-graceful-shutdown.mjs +248 -209
  163. package/dist/runtime/internal/meta.d.mts +1 -1
  164. package/dist/runtime/internal/meta.mjs +1 -1
  165. package/dist/runtime/internal/plugin.d.mts +2 -2
  166. package/dist/runtime/internal/plugin.mjs +1 -1
  167. package/dist/runtime/internal/renderer.mjs +39 -31
  168. package/dist/runtime/internal/route-rules.d.mts +8 -8
  169. package/dist/runtime/internal/route-rules.mjs +53 -51
  170. package/dist/runtime/internal/routes/dev-tasks.d.mts +1 -30
  171. package/dist/runtime/internal/routes/dev-tasks.mjs +15 -17
  172. package/dist/runtime/internal/routes/openapi.d.mts +1 -0
  173. package/dist/runtime/internal/routes/openapi.mjs +81 -87
  174. package/dist/runtime/internal/routes/renderer-template.d.mts +1 -1
  175. package/dist/runtime/internal/routes/renderer-template.dev.d.mts +1 -2
  176. package/dist/runtime/internal/routes/renderer-template.dev.mjs +10 -17
  177. package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
  178. package/dist/runtime/internal/routes/scalar.d.mts +1 -0
  179. package/dist/runtime/internal/routes/scalar.mjs +22 -23
  180. package/dist/runtime/internal/routes/swagger.d.mts +1 -0
  181. package/dist/runtime/internal/routes/swagger.mjs +9 -11
  182. package/dist/runtime/internal/runtime-config.d.mts +4 -4
  183. package/dist/runtime/internal/runtime-config.mjs +40 -35
  184. package/dist/runtime/internal/shutdown.d.mts +2 -7
  185. package/dist/runtime/internal/shutdown.mjs +30 -29
  186. package/dist/runtime/internal/static.mjs +63 -74
  187. package/dist/runtime/internal/storage.mjs +2 -2
  188. package/dist/runtime/internal/task.d.mts +6 -6
  189. package/dist/runtime/internal/task.mjs +56 -59
  190. package/dist/runtime/internal/utils.d.mts +1 -1
  191. package/dist/runtime/internal/utils.mjs +4 -10
  192. package/dist/types/index.d.mts +2566 -3851
  193. package/dist/types/index.mjs +1 -1
  194. package/dist/vite.d.mts +56 -52
  195. package/dist/vite.mjs +55 -132
  196. package/package.json +10 -10
  197. package/dist/_build/build.mjs +0 -368
  198. package/dist/_build/build2.mjs +0 -556
  199. package/dist/_build/info.mjs +0 -1002
  200. package/dist/_build/prepare.mjs +0 -1511
  201. package/dist/_build/snapshot.mjs +0 -185
  202. package/dist/_build/vite.mjs +0 -959
  203. package/dist/_build/vite2.mjs +0 -149
  204. package/dist/_chunks/_deps/@jridgewell/gen-mapping.mjs +0 -189
  205. package/dist/_chunks/_deps/@jridgewell/remapping.mjs +0 -137
  206. package/dist/_chunks/_deps/@jridgewell/resolve-uri.mjs +0 -231
  207. package/dist/_chunks/_deps/@jridgewell/sourcemap-codec.mjs +0 -173
  208. package/dist/_chunks/_deps/@jridgewell/trace-mapping.mjs +0 -170
  209. package/dist/_chunks/_deps/@rollup/plugin-alias.mjs +0 -89
  210. package/dist/_chunks/_deps/@rollup/plugin-commonjs.mjs +0 -2376
  211. package/dist/_chunks/_deps/@rollup/plugin-inject.mjs +0 -212
  212. package/dist/_chunks/_deps/@rollup/plugin-json.mjs +0 -37
  213. package/dist/_chunks/_deps/@rollup/plugin-node-resolve.mjs +0 -1386
  214. package/dist/_chunks/_deps/@rollup/plugin-replace.mjs +0 -133
  215. package/dist/_chunks/_deps/@rollup/pluginutils.mjs +0 -346
  216. package/dist/_chunks/_deps/acorn.mjs +0 -6225
  217. package/dist/_chunks/_deps/c12.mjs +0 -510
  218. package/dist/_chunks/_deps/chokidar.mjs +0 -1428
  219. package/dist/_chunks/_deps/citty.mjs +0 -460
  220. package/dist/_chunks/_deps/commondir.mjs +0 -77
  221. package/dist/_chunks/_deps/compatx.mjs +0 -76
  222. package/dist/_chunks/_deps/confbox.mjs +0 -300
  223. package/dist/_chunks/_deps/debug.mjs +0 -885
  224. package/dist/_chunks/_deps/deepmerge.mjs +0 -147
  225. package/dist/_chunks/_deps/depd.mjs +0 -550
  226. package/dist/_chunks/_deps/dot-prop.mjs +0 -282
  227. package/dist/_chunks/_deps/dotenv.mjs +0 -555
  228. package/dist/_chunks/_deps/duplexer.mjs +0 -1
  229. package/dist/_chunks/_deps/ee-first.mjs +0 -104
  230. package/dist/_chunks/_deps/encodeurl.mjs +0 -69
  231. package/dist/_chunks/_deps/escape-html.mjs +0 -87
  232. package/dist/_chunks/_deps/escape-string-regexp.mjs +0 -13
  233. package/dist/_chunks/_deps/estree-walker.mjs +0 -433
  234. package/dist/_chunks/_deps/etag.mjs +0 -147
  235. package/dist/_chunks/_deps/exsolve.mjs +0 -1416
  236. package/dist/_chunks/_deps/fresh.mjs +0 -145
  237. package/dist/_chunks/_deps/function-bind.mjs +0 -106
  238. package/dist/_chunks/_deps/giget.mjs +0 -451
  239. package/dist/_chunks/_deps/gzip-size.mjs +0 -19
  240. package/dist/_chunks/_deps/hasown.mjs +0 -19
  241. package/dist/_chunks/_deps/http-errors.mjs +0 -307
  242. package/dist/_chunks/_deps/httpxy.mjs +0 -580
  243. package/dist/_chunks/_deps/inherits.mjs +0 -57
  244. package/dist/_chunks/_deps/is-core-module.mjs +0 -596
  245. package/dist/_chunks/_deps/is-module.mjs +0 -25
  246. package/dist/_chunks/_deps/is-reference.mjs +0 -31
  247. package/dist/_chunks/_deps/klona.mjs +0 -137
  248. package/dist/_chunks/_deps/knitwork.mjs +0 -172
  249. package/dist/_chunks/_deps/local-pkg.mjs +0 -163
  250. package/dist/_chunks/_deps/mime-db.mjs +0 -11685
  251. package/dist/_chunks/_deps/mime-types.mjs +0 -287
  252. package/dist/_chunks/_deps/mime.mjs +0 -1172
  253. package/dist/_chunks/_deps/mlly.mjs +0 -2413
  254. package/dist/_chunks/_deps/ms.mjs +0 -172
  255. package/dist/_chunks/_deps/node-fetch-native.mjs +0 -3
  256. package/dist/_chunks/_deps/nypm.mjs +0 -219
  257. package/dist/_chunks/_deps/on-finished.mjs +0 -246
  258. package/dist/_chunks/_deps/parseurl.mjs +0 -168
  259. package/dist/_chunks/_deps/path-parse.mjs +0 -85
  260. package/dist/_chunks/_deps/pathe.mjs +0 -251
  261. package/dist/_chunks/_deps/perfect-debounce.mjs +0 -88
  262. package/dist/_chunks/_deps/picomatch.mjs +0 -2144
  263. package/dist/_chunks/_deps/pkg-types.mjs +0 -247
  264. package/dist/_chunks/_deps/pretty-bytes.mjs +0 -180
  265. package/dist/_chunks/_deps/quansync.mjs +0 -99
  266. package/dist/_chunks/_deps/range-parser.mjs +0 -171
  267. package/dist/_chunks/_deps/rc9.mjs +0 -219
  268. package/dist/_chunks/_deps/readdirp.mjs +0 -245
  269. package/dist/_chunks/_deps/resolve.mjs +0 -1260
  270. package/dist/_chunks/_deps/send.mjs +0 -1022
  271. package/dist/_chunks/_deps/serve-static.mjs +0 -228
  272. package/dist/_chunks/_deps/setprototypeof.mjs +0 -26
  273. package/dist/_chunks/_deps/statuses.mjs +0 -457
  274. package/dist/_chunks/_deps/std-env.mjs +0 -3
  275. package/dist/_chunks/_deps/strip-literal.mjs +0 -67
  276. package/dist/_chunks/_deps/supports-color.mjs +0 -44
  277. package/dist/_chunks/_deps/tinyexec.mjs +0 -552
  278. package/dist/_chunks/_deps/toidentifier.mjs +0 -41
  279. package/dist/_chunks/_deps/ultrahtml.mjs +0 -3
  280. package/dist/_chunks/_deps/unimport.mjs +0 -2267
  281. package/dist/_chunks/_deps/unplugin-utils.mjs +0 -65
  282. package/dist/_chunks/_deps/unplugin.mjs +0 -1294
  283. package/dist/_chunks/_deps/untyped.mjs +0 -375
  284. package/dist/_chunks/_deps/unwasm.mjs +0 -6959
  285. package/dist/_chunks/_deps/webpack-virtual-modules.mjs +0 -360
  286. package/dist/_chunks/_presets/_all.mjs +0 -59
  287. package/dist/_chunks/_presets/_nitro.mjs +0 -74
  288. package/dist/_chunks/_presets/_resolve.mjs +0 -64
  289. package/dist/_chunks/_presets/_static.mjs +0 -69
  290. package/dist/_chunks/_presets/_types.mjs +0 -3
  291. package/dist/_chunks/_presets/_utils.mjs +0 -31
  292. package/dist/_chunks/_presets/alwaysdata.mjs +0 -17
  293. package/dist/_chunks/_presets/aws-amplify.mjs +0 -111
  294. package/dist/_chunks/_presets/aws-lambda.mjs +0 -23
  295. package/dist/_chunks/_presets/azure.mjs +0 -162
  296. package/dist/_chunks/_presets/bun.mjs +0 -19
  297. package/dist/_chunks/_presets/cleavr.mjs +0 -15
  298. package/dist/_chunks/_presets/cloudflare.mjs +0 -608
  299. package/dist/_chunks/_presets/deno.mjs +0 -196
  300. package/dist/_chunks/_presets/digitalocean.mjs +0 -14
  301. package/dist/_chunks/_presets/firebase.mjs +0 -47
  302. package/dist/_chunks/_presets/flightcontrol.mjs +0 -14
  303. package/dist/_chunks/_presets/genezio.mjs +0 -13
  304. package/dist/_chunks/_presets/heroku.mjs +0 -14
  305. package/dist/_chunks/_presets/iis.mjs +0 -194
  306. package/dist/_chunks/_presets/index.mjs +0 -62
  307. package/dist/_chunks/_presets/koyeb.mjs +0 -14
  308. package/dist/_chunks/_presets/netlify.mjs +0 -241
  309. package/dist/_chunks/_presets/node.mjs +0 -54
  310. package/dist/_chunks/_presets/platform.mjs +0 -14
  311. package/dist/_chunks/_presets/render.mjs +0 -14
  312. package/dist/_chunks/_presets/standard.mjs +0 -23
  313. package/dist/_chunks/_presets/stormkit.mjs +0 -18
  314. package/dist/_chunks/_presets/vercel.mjs +0 -375
  315. package/dist/_chunks/_presets/winterjs.mjs +0 -22
  316. package/dist/_chunks/_presets/zeabur.mjs +0 -69
  317. package/dist/_chunks/_presets/zerops.mjs +0 -27
  318. package/dist/_chunks/app.mjs +0 -600
  319. package/dist/_chunks/builder.mjs +0 -648
  320. package/dist/_chunks/server.mjs +0 -256
  321. package/dist/_cli/build.mjs +0 -49
  322. package/dist/_cli/common.mjs +0 -13
  323. package/dist/_cli/dev.mjs +0 -121
  324. package/dist/_cli/index.mjs +0 -16
  325. package/dist/_cli/list.mjs +0 -33
  326. package/dist/_cli/prepare.mjs +0 -23
  327. package/dist/_cli/run.mjs +0 -59
  328. package/dist/presets/cloudflare/runtime/shims/workers.dev.d.mts +0 -21
  329. package/dist/runtime/internal/empty.d.mts +0 -0
  330. package/dist/runtime/internal/vite/dev-entry.d.mts +0 -1
  331. package/dist/runtime/internal/vite/dev-worker.d.mts +0 -1
  332. package/dist/runtime/internal/vite/prod-setup.d.mts +0 -4
  333. package/dist/runtime/internal/vite/ssr-renderer.d.mts +0 -4
  334. /package/lib/{indexd.mts → index.d.mts} +0 -0
@@ -0,0 +1,86 @@
1
+ import { t as __commonJS } from "../_chunks/DXMHy5ca.mjs";
2
+
3
+ //#region node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
4
+ var require_cjs = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js": ((exports, module) => {
5
+ var isMergeableObject = function isMergeableObject$1(value) {
6
+ return isNonNullObject(value) && !isSpecial(value);
7
+ };
8
+ function isNonNullObject(value) {
9
+ return !!value && typeof value === "object";
10
+ }
11
+ function isSpecial(value) {
12
+ var stringValue = Object.prototype.toString.call(value);
13
+ return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
14
+ }
15
+ var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.element") : 60103;
16
+ function isReactElement(value) {
17
+ return value.$$typeof === REACT_ELEMENT_TYPE;
18
+ }
19
+ function emptyTarget(val) {
20
+ return Array.isArray(val) ? [] : {};
21
+ }
22
+ function cloneUnlessOtherwiseSpecified(value, options) {
23
+ return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
24
+ }
25
+ function defaultArrayMerge(target, source, options) {
26
+ return target.concat(source).map(function(element) {
27
+ return cloneUnlessOtherwiseSpecified(element, options);
28
+ });
29
+ }
30
+ function getMergeFunction(key, options) {
31
+ if (!options.customMerge) return deepmerge;
32
+ var customMerge = options.customMerge(key);
33
+ return typeof customMerge === "function" ? customMerge : deepmerge;
34
+ }
35
+ function getEnumerableOwnPropertySymbols(target) {
36
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
37
+ return Object.propertyIsEnumerable.call(target, symbol);
38
+ }) : [];
39
+ }
40
+ function getKeys(target) {
41
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
42
+ }
43
+ function propertyIsOnObject(object, property) {
44
+ try {
45
+ return property in object;
46
+ } catch (_) {
47
+ return false;
48
+ }
49
+ }
50
+ function propertyIsUnsafe(target, key) {
51
+ return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
52
+ }
53
+ function mergeObject(target, source, options) {
54
+ var destination = {};
55
+ if (options.isMergeableObject(target)) getKeys(target).forEach(function(key) {
56
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
57
+ });
58
+ getKeys(source).forEach(function(key) {
59
+ if (propertyIsUnsafe(target, key)) return;
60
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
61
+ else destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
62
+ });
63
+ return destination;
64
+ }
65
+ function deepmerge(target, source, options) {
66
+ options = options || {};
67
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
68
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
69
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
70
+ var sourceIsArray = Array.isArray(source);
71
+ if (!(sourceIsArray === Array.isArray(target))) return cloneUnlessOtherwiseSpecified(source, options);
72
+ else if (sourceIsArray) return options.arrayMerge(target, source, options);
73
+ else return mergeObject(target, source, options);
74
+ }
75
+ deepmerge.all = function deepmergeAll(array, options) {
76
+ if (!Array.isArray(array)) throw new Error("first argument should be an array");
77
+ return array.reduce(function(prev, next) {
78
+ return deepmerge(prev, next, options);
79
+ }, {});
80
+ };
81
+ var deepmerge_1 = deepmerge;
82
+ module.exports = deepmerge_1;
83
+ }) });
84
+
85
+ //#endregion
86
+ export { require_cjs as t };
@@ -0,0 +1,314 @@
1
+ import { i as __require, t as __commonJS } from "../_chunks/DXMHy5ca.mjs";
2
+
3
+ //#region node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js
4
+ var require_depd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js": ((exports, module) => {
5
+ /*!
6
+ * depd
7
+ * Copyright(c) 2014-2018 Douglas Christopher Wilson
8
+ * MIT Licensed
9
+ */
10
+ /**
11
+ * Module dependencies.
12
+ */
13
+ var relative = __require("path").relative;
14
+ /**
15
+ * Module exports.
16
+ */
17
+ module.exports = depd;
18
+ /**
19
+ * Get the path to base files on.
20
+ */
21
+ var basePath = process.cwd();
22
+ /**
23
+ * Determine if namespace is contained in the string.
24
+ */
25
+ function containsNamespace(str, namespace) {
26
+ var vals = str.split(/[ ,]+/);
27
+ var ns = String(namespace).toLowerCase();
28
+ for (var i = 0; i < vals.length; i++) {
29
+ var val = vals[i];
30
+ if (val && (val === "*" || val.toLowerCase() === ns)) return true;
31
+ }
32
+ return false;
33
+ }
34
+ /**
35
+ * Convert a data descriptor to accessor descriptor.
36
+ */
37
+ function convertDataDescriptorToAccessor(obj, prop, message) {
38
+ var descriptor = Object.getOwnPropertyDescriptor(obj, prop);
39
+ var value = descriptor.value;
40
+ descriptor.get = function getter() {
41
+ return value;
42
+ };
43
+ if (descriptor.writable) descriptor.set = function setter(val) {
44
+ return value = val;
45
+ };
46
+ delete descriptor.value;
47
+ delete descriptor.writable;
48
+ Object.defineProperty(obj, prop, descriptor);
49
+ return descriptor;
50
+ }
51
+ /**
52
+ * Create arguments string to keep arity.
53
+ */
54
+ function createArgumentsString(arity) {
55
+ var str = "";
56
+ for (var i = 0; i < arity; i++) str += ", arg" + i;
57
+ return str.substr(2);
58
+ }
59
+ /**
60
+ * Create stack string from stack.
61
+ */
62
+ function createStackString(stack) {
63
+ var str = this.name + ": " + this.namespace;
64
+ if (this.message) str += " deprecated " + this.message;
65
+ for (var i = 0; i < stack.length; i++) str += "\n at " + stack[i].toString();
66
+ return str;
67
+ }
68
+ /**
69
+ * Create deprecate for namespace in caller.
70
+ */
71
+ function depd(namespace) {
72
+ if (!namespace) throw new TypeError("argument namespace is required");
73
+ var file = callSiteLocation(getStack()[1])[0];
74
+ function deprecate(message) {
75
+ log.call(deprecate, message);
76
+ }
77
+ deprecate._file = file;
78
+ deprecate._ignored = isignored(namespace);
79
+ deprecate._namespace = namespace;
80
+ deprecate._traced = istraced(namespace);
81
+ deprecate._warned = Object.create(null);
82
+ deprecate.function = wrapfunction;
83
+ deprecate.property = wrapproperty;
84
+ return deprecate;
85
+ }
86
+ /**
87
+ * Determine if event emitter has listeners of a given type.
88
+ *
89
+ * The way to do this check is done three different ways in Node.js >= 0.8
90
+ * so this consolidates them into a minimal set using instance methods.
91
+ *
92
+ * @param {EventEmitter} emitter
93
+ * @param {string} type
94
+ * @returns {boolean}
95
+ * @private
96
+ */
97
+ function eehaslisteners(emitter, type) {
98
+ return (typeof emitter.listenerCount !== "function" ? emitter.listeners(type).length : emitter.listenerCount(type)) > 0;
99
+ }
100
+ /**
101
+ * Determine if namespace is ignored.
102
+ */
103
+ function isignored(namespace) {
104
+ if (process.noDeprecation) return true;
105
+ return containsNamespace(process.env.NO_DEPRECATION || "", namespace);
106
+ }
107
+ /**
108
+ * Determine if namespace is traced.
109
+ */
110
+ function istraced(namespace) {
111
+ if (process.traceDeprecation) return true;
112
+ return containsNamespace(process.env.TRACE_DEPRECATION || "", namespace);
113
+ }
114
+ /**
115
+ * Display deprecation message.
116
+ */
117
+ function log(message, site) {
118
+ var haslisteners = eehaslisteners(process, "deprecation");
119
+ if (!haslisteners && this._ignored) return;
120
+ var caller;
121
+ var callFile;
122
+ var callSite;
123
+ var depSite;
124
+ var i = 0;
125
+ var seen = false;
126
+ var stack = getStack();
127
+ var file = this._file;
128
+ if (site) {
129
+ depSite = site;
130
+ callSite = callSiteLocation(stack[1]);
131
+ callSite.name = depSite.name;
132
+ file = callSite[0];
133
+ } else {
134
+ i = 2;
135
+ depSite = callSiteLocation(stack[i]);
136
+ callSite = depSite;
137
+ }
138
+ for (; i < stack.length; i++) {
139
+ caller = callSiteLocation(stack[i]);
140
+ callFile = caller[0];
141
+ if (callFile === file) seen = true;
142
+ else if (callFile === this._file) file = this._file;
143
+ else if (seen) break;
144
+ }
145
+ var key = caller ? depSite.join(":") + "__" + caller.join(":") : void 0;
146
+ if (key !== void 0 && key in this._warned) return;
147
+ this._warned[key] = true;
148
+ var msg = message;
149
+ if (!msg) msg = callSite === depSite || !callSite.name ? defaultMessage(depSite) : defaultMessage(callSite);
150
+ if (haslisteners) {
151
+ var err = DeprecationError(this._namespace, msg, stack.slice(i));
152
+ process.emit("deprecation", err);
153
+ return;
154
+ }
155
+ var output = (process.stderr.isTTY ? formatColor : formatPlain).call(this, msg, caller, stack.slice(i));
156
+ process.stderr.write(output + "\n", "utf8");
157
+ }
158
+ /**
159
+ * Get call site location as array.
160
+ */
161
+ function callSiteLocation(callSite) {
162
+ var file = callSite.getFileName() || "<anonymous>";
163
+ var line = callSite.getLineNumber();
164
+ var colm = callSite.getColumnNumber();
165
+ if (callSite.isEval()) file = callSite.getEvalOrigin() + ", " + file;
166
+ var site = [
167
+ file,
168
+ line,
169
+ colm
170
+ ];
171
+ site.callSite = callSite;
172
+ site.name = callSite.getFunctionName();
173
+ return site;
174
+ }
175
+ /**
176
+ * Generate a default message from the site.
177
+ */
178
+ function defaultMessage(site) {
179
+ var callSite = site.callSite;
180
+ var funcName = site.name;
181
+ if (!funcName) funcName = "<anonymous@" + formatLocation(site) + ">";
182
+ var context = callSite.getThis();
183
+ var typeName = context && callSite.getTypeName();
184
+ if (typeName === "Object") typeName = void 0;
185
+ if (typeName === "Function") typeName = context.name || typeName;
186
+ return typeName && callSite.getMethodName() ? typeName + "." + funcName : funcName;
187
+ }
188
+ /**
189
+ * Format deprecation message without color.
190
+ */
191
+ function formatPlain(msg, caller, stack) {
192
+ var formatted = (/* @__PURE__ */ new Date()).toUTCString() + " " + this._namespace + " deprecated " + msg;
193
+ if (this._traced) {
194
+ for (var i = 0; i < stack.length; i++) formatted += "\n at " + stack[i].toString();
195
+ return formatted;
196
+ }
197
+ if (caller) formatted += " at " + formatLocation(caller);
198
+ return formatted;
199
+ }
200
+ /**
201
+ * Format deprecation message with color.
202
+ */
203
+ function formatColor(msg, caller, stack) {
204
+ var formatted = "\x1B[36;1m" + this._namespace + "\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m" + msg + "\x1B[39m";
205
+ if (this._traced) {
206
+ for (var i = 0; i < stack.length; i++) formatted += "\n \x1B[36mat " + stack[i].toString() + "\x1B[39m";
207
+ return formatted;
208
+ }
209
+ if (caller) formatted += " \x1B[36m" + formatLocation(caller) + "\x1B[39m";
210
+ return formatted;
211
+ }
212
+ /**
213
+ * Format call site location.
214
+ */
215
+ function formatLocation(callSite) {
216
+ return relative(basePath, callSite[0]) + ":" + callSite[1] + ":" + callSite[2];
217
+ }
218
+ /**
219
+ * Get the stack as array of call sites.
220
+ */
221
+ function getStack() {
222
+ var limit = Error.stackTraceLimit;
223
+ var obj = {};
224
+ var prep = Error.prepareStackTrace;
225
+ Error.prepareStackTrace = prepareObjectStackTrace;
226
+ Error.stackTraceLimit = Math.max(10, limit);
227
+ Error.captureStackTrace(obj);
228
+ var stack = obj.stack.slice(1);
229
+ Error.prepareStackTrace = prep;
230
+ Error.stackTraceLimit = limit;
231
+ return stack;
232
+ }
233
+ /**
234
+ * Capture call site stack from v8.
235
+ */
236
+ function prepareObjectStackTrace(obj, stack) {
237
+ return stack;
238
+ }
239
+ /**
240
+ * Return a wrapped function in a deprecation message.
241
+ */
242
+ function wrapfunction(fn, message) {
243
+ if (typeof fn !== "function") throw new TypeError("argument fn must be a function");
244
+ var args = createArgumentsString(fn.length);
245
+ var site = callSiteLocation(getStack()[1]);
246
+ site.name = fn.name;
247
+ return new Function("fn", "log", "deprecate", "message", "site", "\"use strict\"\nreturn function (" + args + ") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(fn, log, this, message, site);
248
+ }
249
+ /**
250
+ * Wrap property in a deprecation message.
251
+ */
252
+ function wrapproperty(obj, prop, message) {
253
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") throw new TypeError("argument obj must be object");
254
+ var descriptor = Object.getOwnPropertyDescriptor(obj, prop);
255
+ if (!descriptor) throw new TypeError("must call property on owner object");
256
+ if (!descriptor.configurable) throw new TypeError("property must be configurable");
257
+ var deprecate = this;
258
+ var site = callSiteLocation(getStack()[1]);
259
+ site.name = prop;
260
+ if ("value" in descriptor) descriptor = convertDataDescriptorToAccessor(obj, prop, message);
261
+ var get = descriptor.get;
262
+ var set = descriptor.set;
263
+ if (typeof get === "function") descriptor.get = function getter() {
264
+ log.call(deprecate, message, site);
265
+ return get.apply(this, arguments);
266
+ };
267
+ if (typeof set === "function") descriptor.set = function setter() {
268
+ log.call(deprecate, message, site);
269
+ return set.apply(this, arguments);
270
+ };
271
+ Object.defineProperty(obj, prop, descriptor);
272
+ }
273
+ /**
274
+ * Create DeprecationError for deprecation
275
+ */
276
+ function DeprecationError(namespace, message, stack) {
277
+ var error = /* @__PURE__ */ new Error();
278
+ var stackString;
279
+ Object.defineProperty(error, "constructor", { value: DeprecationError });
280
+ Object.defineProperty(error, "message", {
281
+ configurable: true,
282
+ enumerable: false,
283
+ value: message,
284
+ writable: true
285
+ });
286
+ Object.defineProperty(error, "name", {
287
+ enumerable: false,
288
+ configurable: true,
289
+ value: "DeprecationError",
290
+ writable: true
291
+ });
292
+ Object.defineProperty(error, "namespace", {
293
+ configurable: true,
294
+ enumerable: false,
295
+ value: namespace,
296
+ writable: true
297
+ });
298
+ Object.defineProperty(error, "stack", {
299
+ configurable: true,
300
+ enumerable: false,
301
+ get: function() {
302
+ if (stackString !== void 0) return stackString;
303
+ return stackString = createStackString.call(this, stack);
304
+ },
305
+ set: function setter(val) {
306
+ stackString = val;
307
+ }
308
+ });
309
+ return error;
310
+ }
311
+ }) });
312
+
313
+ //#endregion
314
+ export { require_depd as t };
@@ -0,0 +1,138 @@
1
+ //#region node_modules/.pnpm/dot-prop@10.1.0/node_modules/dot-prop/index.js
2
+ const isObject = (value) => {
3
+ const type = typeof value;
4
+ return value !== null && (type === "object" || type === "function");
5
+ };
6
+ const disallowedKeys = new Set([
7
+ "__proto__",
8
+ "prototype",
9
+ "constructor"
10
+ ]);
11
+ const MAX_ARRAY_INDEX = 1e6;
12
+ const isDigit = (character) => character >= "0" && character <= "9";
13
+ function shouldCoerceToNumber(segment) {
14
+ if (segment === "0") return true;
15
+ if (/^[1-9]\d*$/.test(segment)) {
16
+ const parsedNumber = Number.parseInt(segment, 10);
17
+ return parsedNumber <= Number.MAX_SAFE_INTEGER && parsedNumber <= MAX_ARRAY_INDEX;
18
+ }
19
+ return false;
20
+ }
21
+ function processSegment(segment, parts) {
22
+ if (disallowedKeys.has(segment)) return false;
23
+ if (segment && shouldCoerceToNumber(segment)) parts.push(Number.parseInt(segment, 10));
24
+ else parts.push(segment);
25
+ return true;
26
+ }
27
+ function parsePath(path) {
28
+ if (typeof path !== "string") throw new TypeError(`Expected a string, got ${typeof path}`);
29
+ const parts = [];
30
+ let currentSegment = "";
31
+ let currentPart = "start";
32
+ let isEscaping = false;
33
+ let position = 0;
34
+ for (const character of path) {
35
+ position++;
36
+ if (isEscaping) {
37
+ currentSegment += character;
38
+ isEscaping = false;
39
+ continue;
40
+ }
41
+ if (character === "\\") {
42
+ if (currentPart === "index") throw new Error(`Invalid character '${character}' in an index at position ${position}`);
43
+ if (currentPart === "indexEnd") throw new Error(`Invalid character '${character}' after an index at position ${position}`);
44
+ isEscaping = true;
45
+ currentPart = currentPart === "start" ? "property" : currentPart;
46
+ continue;
47
+ }
48
+ switch (character) {
49
+ case ".":
50
+ if (currentPart === "index") throw new Error(`Invalid character '${character}' in an index at position ${position}`);
51
+ if (currentPart === "indexEnd") {
52
+ currentPart = "property";
53
+ break;
54
+ }
55
+ if (!processSegment(currentSegment, parts)) return [];
56
+ currentSegment = "";
57
+ currentPart = "property";
58
+ break;
59
+ case "[":
60
+ if (currentPart === "index") throw new Error(`Invalid character '${character}' in an index at position ${position}`);
61
+ if (currentPart === "indexEnd") {
62
+ currentPart = "index";
63
+ break;
64
+ }
65
+ if (currentPart === "property" || currentPart === "start") {
66
+ if ((currentSegment || currentPart === "property") && !processSegment(currentSegment, parts)) return [];
67
+ currentSegment = "";
68
+ }
69
+ currentPart = "index";
70
+ break;
71
+ case "]":
72
+ if (currentPart === "index") {
73
+ if (currentSegment === "") {
74
+ currentSegment = (parts.pop() || "") + "[]";
75
+ currentPart = "property";
76
+ } else {
77
+ const parsedNumber = Number.parseInt(currentSegment, 10);
78
+ if (!Number.isNaN(parsedNumber) && Number.isFinite(parsedNumber) && parsedNumber >= 0 && parsedNumber <= Number.MAX_SAFE_INTEGER && parsedNumber <= MAX_ARRAY_INDEX && currentSegment === String(parsedNumber)) parts.push(parsedNumber);
79
+ else parts.push(currentSegment);
80
+ currentSegment = "";
81
+ currentPart = "indexEnd";
82
+ }
83
+ break;
84
+ }
85
+ if (currentPart === "indexEnd") throw new Error(`Invalid character '${character}' after an index at position ${position}`);
86
+ currentSegment += character;
87
+ break;
88
+ default:
89
+ if (currentPart === "index" && !isDigit(character)) throw new Error(`Invalid character '${character}' in an index at position ${position}`);
90
+ if (currentPart === "indexEnd") throw new Error(`Invalid character '${character}' after an index at position ${position}`);
91
+ if (currentPart === "start") currentPart = "property";
92
+ currentSegment += character;
93
+ }
94
+ }
95
+ if (isEscaping) currentSegment += "\\";
96
+ switch (currentPart) {
97
+ case "property":
98
+ if (!processSegment(currentSegment, parts)) return [];
99
+ break;
100
+ case "index": throw new Error("Index was not closed");
101
+ case "start":
102
+ parts.push("");
103
+ break;
104
+ }
105
+ return parts;
106
+ }
107
+ function normalizePath(path) {
108
+ if (typeof path === "string") return parsePath(path);
109
+ if (Array.isArray(path)) {
110
+ const normalized = [];
111
+ for (const [index, segment] of path.entries()) {
112
+ if (typeof segment !== "string" && typeof segment !== "number") throw new TypeError(`Expected a string or number for path segment at index ${index}, got ${typeof segment}`);
113
+ if (typeof segment === "number" && !Number.isFinite(segment)) throw new TypeError(`Path segment at index ${index} must be a finite number, got ${segment}`);
114
+ if (disallowedKeys.has(segment)) return [];
115
+ if (typeof segment === "string" && shouldCoerceToNumber(segment)) normalized.push(Number.parseInt(segment, 10));
116
+ else normalized.push(segment);
117
+ }
118
+ return normalized;
119
+ }
120
+ return [];
121
+ }
122
+ function getProperty(object, path, value) {
123
+ if (!isObject(object) || typeof path !== "string" && !Array.isArray(path)) return value === void 0 ? object : value;
124
+ const pathArray = normalizePath(path);
125
+ if (pathArray.length === 0) return value;
126
+ for (let index = 0; index < pathArray.length; index++) {
127
+ const key = pathArray[index];
128
+ object = object[key];
129
+ if (object === void 0 || object === null) {
130
+ if (index !== pathArray.length - 1) return value;
131
+ break;
132
+ }
133
+ }
134
+ return object === void 0 ? value : object;
135
+ }
136
+
137
+ //#endregion
138
+ export { getProperty as t };
@@ -0,0 +1,71 @@
1
+ import { i as __require, t as __commonJS } from "../_chunks/DXMHy5ca.mjs";
2
+
3
+ //#region node_modules/.pnpm/duplexer@0.1.2/node_modules/duplexer/index.js
4
+ var require_duplexer = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/duplexer@0.1.2/node_modules/duplexer/index.js": ((exports, module) => {
5
+ var Stream = __require("stream");
6
+ var writeMethods = [
7
+ "write",
8
+ "end",
9
+ "destroy"
10
+ ];
11
+ var readMethods = ["resume", "pause"];
12
+ var readEvents = ["data", "close"];
13
+ var slice = Array.prototype.slice;
14
+ module.exports = duplex;
15
+ function forEach(arr, fn) {
16
+ if (arr.forEach) return arr.forEach(fn);
17
+ for (var i = 0; i < arr.length; i++) fn(arr[i], i);
18
+ }
19
+ function duplex(writer, reader) {
20
+ var stream = new Stream();
21
+ var ended = false;
22
+ forEach(writeMethods, proxyWriter);
23
+ forEach(readMethods, proxyReader);
24
+ forEach(readEvents, proxyStream);
25
+ reader.on("end", handleEnd);
26
+ writer.on("drain", function() {
27
+ stream.emit("drain");
28
+ });
29
+ writer.on("error", reemit);
30
+ reader.on("error", reemit);
31
+ stream.writable = writer.writable;
32
+ stream.readable = reader.readable;
33
+ return stream;
34
+ function proxyWriter(methodName) {
35
+ stream[methodName] = method;
36
+ function method() {
37
+ return writer[methodName].apply(writer, arguments);
38
+ }
39
+ }
40
+ function proxyReader(methodName) {
41
+ stream[methodName] = method;
42
+ function method() {
43
+ stream.emit(methodName);
44
+ var func = reader[methodName];
45
+ if (func) return func.apply(reader, arguments);
46
+ reader.emit(methodName);
47
+ }
48
+ }
49
+ function proxyStream(methodName) {
50
+ reader.on(methodName, reemit$1);
51
+ function reemit$1() {
52
+ var args = slice.call(arguments);
53
+ args.unshift(methodName);
54
+ stream.emit.apply(stream, args);
55
+ }
56
+ }
57
+ function handleEnd() {
58
+ if (ended) return;
59
+ ended = true;
60
+ var args = slice.call(arguments);
61
+ args.unshift("end");
62
+ stream.emit.apply(stream, args);
63
+ }
64
+ function reemit(err) {
65
+ stream.emit("error", err);
66
+ }
67
+ }
68
+ }) });
69
+
70
+ //#endregion
71
+ export { require_duplexer as t };
@@ -0,0 +1,68 @@
1
+ import { t as __commonJS } from "../_chunks/DXMHy5ca.mjs";
2
+
3
+ //#region node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js
4
+ var require_ee_first = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js": ((exports, module) => {
5
+ /**
6
+ * Module exports.
7
+ * @public
8
+ */
9
+ module.exports = first;
10
+ /**
11
+ * Get the first event in a set of event emitters and event pairs.
12
+ *
13
+ * @param {array} stuff
14
+ * @param {function} done
15
+ * @public
16
+ */
17
+ function first(stuff, done) {
18
+ if (!Array.isArray(stuff)) throw new TypeError("arg must be an array of [ee, events...] arrays");
19
+ var cleanups = [];
20
+ for (var i = 0; i < stuff.length; i++) {
21
+ var arr = stuff[i];
22
+ if (!Array.isArray(arr) || arr.length < 2) throw new TypeError("each array member must be [ee, events...]");
23
+ var ee = arr[0];
24
+ for (var j = 1; j < arr.length; j++) {
25
+ var event = arr[j];
26
+ var fn = listener(event, callback);
27
+ ee.on(event, fn);
28
+ cleanups.push({
29
+ ee,
30
+ event,
31
+ fn
32
+ });
33
+ }
34
+ }
35
+ function callback() {
36
+ cleanup();
37
+ done.apply(null, arguments);
38
+ }
39
+ function cleanup() {
40
+ var x;
41
+ for (var i$1 = 0; i$1 < cleanups.length; i$1++) {
42
+ x = cleanups[i$1];
43
+ x.ee.removeListener(x.event, x.fn);
44
+ }
45
+ }
46
+ function thunk(fn$1) {
47
+ done = fn$1;
48
+ }
49
+ thunk.cancel = cleanup;
50
+ return thunk;
51
+ }
52
+ /**
53
+ * Create the event listener.
54
+ * @private
55
+ */
56
+ function listener(event, done) {
57
+ return function onevent(arg1) {
58
+ var args = new Array(arguments.length);
59
+ var ee = this;
60
+ var err = event === "error" ? arg1 : null;
61
+ for (var i = 0; i < args.length; i++) args[i] = arguments[i];
62
+ done(err, ee, event, args);
63
+ };
64
+ }
65
+ }) });
66
+
67
+ //#endregion
68
+ export { require_ee_first as t };