dinou 9.3.0 → 10.0.1

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 (166) hide show
  1. package/CHANGELOG.md +196 -0
  2. package/README.md +157 -132
  3. package/dinou/adapters/bun.js +34 -5
  4. package/dinou/adapters/cloudflare.js +110 -17
  5. package/dinou/adapters/deno.js +46 -8
  6. package/dinou/adapters/netlify.js +86 -50
  7. package/dinou/adapters/node.js +8 -0
  8. package/dinou/assets.d.ts +32 -5
  9. package/dinou/bun/build.js +190 -106
  10. package/dinou/cli.js +992 -532
  11. package/dinou/cloudflare/build.js +187 -106
  12. package/dinou/compiled/autoprefixer/index.js +509 -517
  13. package/dinou/compiled/babel-core/index.js +738 -716
  14. package/dinou/compiled/babel-generator/index.js +341 -299
  15. package/dinou/compiled/babel-loader/index.js +766 -744
  16. package/dinou/compiled/babel-parser/index.js +2 -2
  17. package/dinou/compiled/babel-plugin-react-compiler/index.js +178 -178
  18. package/dinou/compiled/babel-plugin-syntax-import-meta/index.js +4 -4
  19. package/dinou/compiled/babel-preset-react/index.js +752 -730
  20. package/dinou/compiled/babel-preset-typescript/index.js +738 -716
  21. package/dinou/compiled/babel-traverse/index.js +463 -433
  22. package/dinou/compiled/babel-types/index.js +176 -176
  23. package/dinou/compiled/chokidar/index.js +4 -4
  24. package/dinou/compiled/commander/index.js +15 -15
  25. package/dinou/compiled/copy-webpack-plugin/index.js +433 -425
  26. package/dinou/compiled/css-loader/index.js +289 -289
  27. package/dinou/compiled/css-loader/runtime/api.js +85 -0
  28. package/dinou/compiled/css-loader/runtime/getUrl.js +26 -0
  29. package/dinou/compiled/css-loader/runtime/noSourceMaps.js +5 -0
  30. package/dinou/compiled/css-loader/runtime/package.json +3 -0
  31. package/dinou/compiled/css-loader/runtime/sourceMaps.js +16 -0
  32. package/dinou/compiled/fast-glob/index.js +5810 -0
  33. package/dinou/compiled/generic-names/index.js +16 -16
  34. package/dinou/compiled/mini-css-extract-plugin/{chunk-YYEJWYXE.js → chunk-R6DP5ZYM.js} +36 -36
  35. package/dinou/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +253 -0
  36. package/dinou/compiled/mini-css-extract-plugin/hmr/normalize-url.js +39 -0
  37. package/dinou/compiled/mini-css-extract-plugin/hmr/package.json +3 -0
  38. package/dinou/compiled/mini-css-extract-plugin/index.js +1 -1
  39. package/dinou/compiled/mini-css-extract-plugin/loader.js +5 -5
  40. package/dinou/compiled/postcss/index.js +83 -83
  41. package/dinou/compiled/postcss-import/index.js +147 -117
  42. package/dinou/compiled/postcss-modules/index.js +216 -216
  43. package/dinou/compiled/resolve/index.js +1224 -0
  44. package/dinou/compiled/rollup-plugin-babel/index.js +753 -731
  45. package/dinou/compiled/rollup-plugin-commonjs/index.js +43 -38
  46. package/dinou/compiled/rollup-plugin-delete/index.js +615 -253
  47. package/dinou/compiled/rollup-plugin-json/index.js +22 -18
  48. package/dinou/compiled/rollup-plugin-node-resolve/index.js +130 -100
  49. package/dinou/compiled/rollup-plugin-postcss/index.js +3299 -3277
  50. package/dinou/compiled/rollup-plugin-replace/index.js +34 -29
  51. package/dinou/compiled/tailwindcss-postcss/index.js +214 -211
  52. package/dinou/compiled/vendors-manifest.json +59 -83
  53. package/dinou/core/asset-extensions.js +482 -33
  54. package/dinou/core/bailout-proxy.js +21 -2
  55. package/dinou/core/build-static-pages.js +523 -371
  56. package/dinou/core/builtin-asset-extensions.js +63 -0
  57. package/dinou/core/cache-revalidate.js +449 -256
  58. package/dinou/core/cache-slot.js +289 -79
  59. package/dinou/core/client-webpack.jsx +470 -39
  60. package/dinou/core/client.jsx +402 -39
  61. package/dinou/core/config.js +3 -0
  62. package/dinou/core/copy-static-dirs.js +98 -0
  63. package/dinou/core/createScopedName.js +22 -4
  64. package/dinou/core/dinou-paths.js +1 -1
  65. package/dinou/core/discover-layouts.js +200 -0
  66. package/dinou/core/edge-ssr.js +1 -1
  67. package/dinou/core/ensure-vendor-mode.js +78 -19
  68. package/dinou/core/env.js +544 -0
  69. package/dinou/core/export-static.js +41 -9
  70. package/dinou/core/generate-route-types.js +989 -95
  71. package/dinou/core/generate-static-rsc.js +5 -6
  72. package/dinou/core/generate-static.js +45 -6
  73. package/dinou/core/get-abs-path-with-ext.js +217 -75
  74. package/dinou/core/get-asset-from-manifest.js +19 -8
  75. package/dinou/core/get-error-jsx.js +4 -5
  76. package/dinou/core/get-file-path-and-dynamic-params.js +561 -338
  77. package/dinou/core/get-jsx.js +220 -53
  78. package/dinou/core/handler.js +1647 -466
  79. package/dinou/core/import-module.js +7 -0
  80. package/dinou/core/layout-functions.js +72 -13
  81. package/dinou/core/link.jsx +34 -6
  82. package/dinou/core/load-dinou-config.js +520 -89
  83. package/dinou/core/manifest-provider.js +4 -14
  84. package/dinou/core/navigation-utils.js +141 -3
  85. package/dinou/core/navigation.js +134 -50
  86. package/dinou/core/node-middleware-runner.js +165 -0
  87. package/dinou/core/postcss-pipeline.js +236 -0
  88. package/dinou/core/ppr-context.js +114 -22
  89. package/dinou/core/ppr-runtime.js +391 -127
  90. package/dinou/core/redirect.jsx +1 -1
  91. package/dinou/core/render-jsx-to-client-jsx.js +216 -48
  92. package/dinou/core/request-context.js +59 -3
  93. package/dinou/core/resolve-contextual-dinou.js +523 -0
  94. package/dinou/core/resolve-setup-files.js +85 -27
  95. package/dinou/core/revalidating.js +10 -2
  96. package/dinou/core/route-generator.js +6 -2
  97. package/dinou/core/rsc-renderer.js +4 -1
  98. package/dinou/core/run-ssg.js +6 -0
  99. package/dinou/core/runtime-env.js +265 -0
  100. package/dinou/core/server-css-modules-plugin.js +155 -0
  101. package/dinou/core/server-function-proxy-webpack.js +27 -2
  102. package/dinou/core/server-function-proxy.js +27 -2
  103. package/dinou/core/slot.js +47 -2
  104. package/dinou/core/static-assets.js +503 -0
  105. package/dinou/core/storage-adapter.js +452 -24
  106. package/dinou/core/transform-server-functions.js +272 -24
  107. package/dinou/core/tsconfig-aliases.js +964 -0
  108. package/dinou/core/uneject.js +640 -0
  109. package/dinou/core/url-resolver.js +1 -1
  110. package/dinou/core/vfs.js +11 -2
  111. package/dinou/css.d.ts +4 -1
  112. package/dinou/deno/build.js +205 -153
  113. package/dinou/deno/seed-kv.js +4 -0
  114. package/dinou/env.d.ts +22 -2
  115. package/dinou/esbuild/build.js +40 -50
  116. package/dinou/esbuild/dev.js +33 -7
  117. package/dinou/esbuild/helpers-esbuild/get-config-esbuild-prod.js +41 -16
  118. package/dinou/esbuild/helpers-esbuild/get-config-esbuild.js +51 -49
  119. package/dinou/esbuild/helpers-esbuild/get-esbuild-entries.js +73 -60
  120. package/dinou/esbuild/helpers-esbuild/swc-disk-cache.js +35 -16
  121. package/dinou/esbuild/helpers-esbuild/write.js +13 -3
  122. package/dinou/esbuild/plugins-esbuild/assets-plugin.js +100 -238
  123. package/dinou/esbuild/plugins-esbuild/babel-react-compiler-plugin.js +73 -29
  124. package/dinou/esbuild/plugins-esbuild/css-processor-plugin.js +283 -91
  125. package/dinou/esbuild/plugins-esbuild/manifest-generator-plugin.js +3 -5
  126. package/dinou/esbuild/plugins-esbuild/react-client-manifest-plugin.js +9 -3
  127. package/dinou/esbuild/plugins-esbuild/server-functions-plugin.js +4 -3
  128. package/dinou/esbuild/plugins-esbuild/stable-chunk-names-and-maps-plugin.js +10 -1
  129. package/dinou/esbuild/plugins-postcss/postcss-extract-plugin.js +84 -21
  130. package/dinou/esbuild/react-refresh/esm-hmr/client.js +31 -10
  131. package/dinou/esbuild/react-refresh/esm-hmr-plugin.js +48 -18
  132. package/dinou/esbuild/react-refresh/is-react-refresh-boundary.js +9 -1
  133. package/dinou/esbuild/react-refresh/react-refresh-runtime.js +13 -7
  134. package/dinou/index.d.ts +1028 -88
  135. package/dinou/node/build.js +138 -74
  136. package/dinou/node/bundle-dual-engine.js +393 -131
  137. package/dinou/node/dev.js +1005 -275
  138. package/dinou/package.json +11 -34
  139. package/dinou/rollup/postcss.config.js +3 -4
  140. package/dinou/rollup/react-refresh/esm-hmr/client.js +31 -10
  141. package/dinou/rollup/react-refresh/react-refresh-wrap-modules.js +16 -13
  142. package/dinou/rollup/react-refresh/rollup-plugin-esm-hmr.js +53 -7
  143. package/dinou/rollup/rollup-plugins/dinou-asset-plugin.js +58 -20
  144. package/dinou/rollup/rollup-plugins/manifest-generator-plugin.js +16 -7
  145. package/dinou/rollup/rollup-plugins/rollup-plugin-react-client-manifest.js +118 -42
  146. package/dinou/rollup/rollup-plugins/rollup-plugin-server-functions.js +48 -36
  147. package/dinou/rollup/rollup.config.js +174 -101
  148. package/dinou/scripts/build-vendors.js +123 -33
  149. package/dinou/server.d.ts +126 -15
  150. package/dinou/webpack/helpers/get-webpack-entries.js +87 -41
  151. package/dinou/webpack/helpers/patch-webpack-internals.js +93 -1
  152. package/dinou/webpack/loaders/server-functions-loader.js +1 -1
  153. package/dinou/webpack/plugins/manifest-generator-plugin.js +27 -7
  154. package/dinou/webpack/plugins/server-functions-plugin.js +39 -12
  155. package/dinou/webpack/plugins/webpack-memory-plugin.js +25 -12
  156. package/dinou/webpack/postcss.config.js +3 -4
  157. package/dinou/webpack/webpack.config.js +408 -132
  158. package/eject.js +6 -224
  159. package/package.json +7 -9
  160. package/dinou/compiled/cross-env/index.js +0 -661
  161. package/dinou/compiled/dotenv/index.js +0 -375
  162. package/dinou/compiled/esbuild-copy-static-files/index.js +0 -63
  163. package/dinou/compiled/esbuild-tsconfig-paths/index.js +0 -1314
  164. package/dinou/compiled/rollup-plugin-copy/index.js +0 -12066
  165. package/dinou/compiled/rollup-plugin-tsconfig-paths/index.js +0 -569
  166. package/dinou/compiled/tsconfig-paths-webpack-plugin/index.js +0 -3956
@@ -36,9 +36,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  mod
37
37
  ));
38
38
 
39
- // ../node_modules/deepmerge/dist/cjs.js
39
+ // node_modules/deepmerge/dist/cjs.js
40
40
  var require_cjs = __commonJS({
41
- "../node_modules/deepmerge/dist/cjs.js"(exports, module) {
41
+ "node_modules/deepmerge/dist/cjs.js"(exports, module) {
42
42
  "use strict";
43
43
  var isMergeableObject = function isMergeableObject2(value) {
44
44
  return isNonNullObject(value) && !isSpecial(value);
@@ -139,9 +139,9 @@ var require_cjs = __commonJS({
139
139
  }
140
140
  });
141
141
 
142
- // ../node_modules/is-module/index.js
142
+ // node_modules/is-module/index.js
143
143
  var require_is_module = __commonJS({
144
- "../node_modules/is-module/index.js"(exports, module) {
144
+ "node_modules/is-module/index.js"(exports, module) {
145
145
  var ES6ImportExportRegExp = /(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/;
146
146
  var ES6AliasRegExp = /(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;
147
147
  module.exports = function(sauce) {
@@ -150,16 +150,16 @@ var require_is_module = __commonJS({
150
150
  }
151
151
  });
152
152
 
153
- // ../node_modules/resolve/lib/homedir.js
153
+ // node_modules/resolve/lib/homedir.js
154
154
  var require_homedir = __commonJS({
155
- "../node_modules/resolve/lib/homedir.js"(exports, module) {
155
+ "node_modules/resolve/lib/homedir.js"(exports, module) {
156
156
  "use strict";
157
157
  var os = __require("os");
158
158
  module.exports = os.homedir || function homedir() {
159
159
  var home = process.env.HOME;
160
160
  var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
161
161
  if (process.platform === "win32") {
162
- return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
162
+ return process.env.USERPROFILE || process.env.HOMEDRIVE && process.env.HOMEPATH && process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
163
163
  }
164
164
  if (process.platform === "darwin") {
165
165
  return home || (user ? "/Users/" + user : null);
@@ -172,24 +172,34 @@ var require_homedir = __commonJS({
172
172
  }
173
173
  });
174
174
 
175
- // ../node_modules/resolve/lib/caller.js
175
+ // node_modules/es-errors/index.js
176
+ var require_es_errors = __commonJS({
177
+ "node_modules/es-errors/index.js"(exports, module) {
178
+ "use strict";
179
+ module.exports = Error;
180
+ }
181
+ });
182
+
183
+ // node_modules/resolve/lib/caller.js
176
184
  var require_caller = __commonJS({
177
- "../node_modules/resolve/lib/caller.js"(exports, module) {
185
+ "node_modules/resolve/lib/caller.js"(exports, module) {
186
+ "use strict";
187
+ var $Error = require_es_errors();
178
188
  module.exports = function() {
179
- var origPrepareStackTrace = Error.prepareStackTrace;
180
- Error.prepareStackTrace = function(_, stack2) {
189
+ var origPrepareStackTrace = $Error.prepareStackTrace;
190
+ $Error.prepareStackTrace = function(_, stack2) {
181
191
  return stack2;
182
192
  };
183
- var stack = new Error().stack;
184
- Error.prepareStackTrace = origPrepareStackTrace;
193
+ var stack = new $Error().stack;
194
+ $Error.prepareStackTrace = origPrepareStackTrace;
185
195
  return stack[2].getFileName();
186
196
  };
187
197
  }
188
198
  });
189
199
 
190
- // ../node_modules/path-parse/index.js
200
+ // node_modules/path-parse/index.js
191
201
  var require_path_parse = __commonJS({
192
- "../node_modules/path-parse/index.js"(exports, module) {
202
+ "node_modules/path-parse/index.js"(exports, module) {
193
203
  "use strict";
194
204
  var isWindows = process.platform === "win32";
195
205
  var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
@@ -247,14 +257,14 @@ var require_path_parse = __commonJS({
247
257
  }
248
258
  });
249
259
 
250
- // ../node_modules/resolve/lib/node-modules-paths.js
260
+ // node_modules/resolve/lib/node-modules-paths.js
251
261
  var require_node_modules_paths = __commonJS({
252
- "../node_modules/resolve/lib/node-modules-paths.js"(exports, module) {
262
+ "node_modules/resolve/lib/node-modules-paths.js"(exports, module) {
253
263
  var path2 = __require("path");
254
264
  var parse = path2.parse || require_path_parse();
255
265
  var driveLetterRegex = /^([A-Za-z]:)/;
256
266
  var uncPathRegex = /^\\\\/;
257
- var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
267
+ function getNodeModulesDirs(absoluteStart, modules) {
258
268
  var prefix = "/";
259
269
  if (driveLetterRegex.test(absoluteStart)) {
260
270
  prefix = "";
@@ -272,7 +282,7 @@ var require_node_modules_paths = __commonJS({
272
282
  return path2.resolve(prefix, aPath, moduleDir);
273
283
  }));
274
284
  }, []);
275
- };
285
+ }
276
286
  module.exports = function nodeModulesPaths(start, opts, request) {
277
287
  var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"];
278
288
  if (opts && typeof opts.paths === "function") {
@@ -291,18 +301,18 @@ var require_node_modules_paths = __commonJS({
291
301
  }
292
302
  });
293
303
 
294
- // ../node_modules/resolve/lib/normalize-options.js
304
+ // node_modules/resolve/lib/normalize-options.js
295
305
  var require_normalize_options = __commonJS({
296
- "../node_modules/resolve/lib/normalize-options.js"(exports, module) {
306
+ "node_modules/resolve/lib/normalize-options.js"(exports, module) {
297
307
  module.exports = function(x, opts) {
298
308
  return opts || {};
299
309
  };
300
310
  }
301
311
  });
302
312
 
303
- // ../node_modules/function-bind/implementation.js
313
+ // node_modules/function-bind/implementation.js
304
314
  var require_implementation = __commonJS({
305
- "../node_modules/function-bind/implementation.js"(exports, module) {
315
+ "node_modules/function-bind/implementation.js"(exports, module) {
306
316
  "use strict";
307
317
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
308
318
  var toStr = Object.prototype.toString;
@@ -376,18 +386,18 @@ var require_implementation = __commonJS({
376
386
  }
377
387
  });
378
388
 
379
- // ../node_modules/function-bind/index.js
389
+ // node_modules/function-bind/index.js
380
390
  var require_function_bind = __commonJS({
381
- "../node_modules/function-bind/index.js"(exports, module) {
391
+ "node_modules/function-bind/index.js"(exports, module) {
382
392
  "use strict";
383
393
  var implementation = require_implementation();
384
394
  module.exports = Function.prototype.bind || implementation;
385
395
  }
386
396
  });
387
397
 
388
- // ../node_modules/hasown/index.js
398
+ // node_modules/hasown/index.js
389
399
  var require_hasown = __commonJS({
390
- "../node_modules/hasown/index.js"(exports, module) {
400
+ "node_modules/hasown/index.js"(exports, module) {
391
401
  "use strict";
392
402
  var call = Function.prototype.call;
393
403
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -396,9 +406,9 @@ var require_hasown = __commonJS({
396
406
  }
397
407
  });
398
408
 
399
- // ../node_modules/is-core-module/core.json
409
+ // node_modules/is-core-module/core.json
400
410
  var require_core = __commonJS({
401
- "../node_modules/is-core-module/core.json"(exports, module) {
411
+ "node_modules/is-core-module/core.json"(exports, module) {
402
412
  module.exports = {
403
413
  assert: true,
404
414
  "node:assert": [">= 14.18 && < 15", ">= 16"],
@@ -433,6 +443,7 @@ var require_core = __commonJS({
433
443
  "node:domain": [">= 14.18 && < 15", ">= 16"],
434
444
  events: true,
435
445
  "node:events": [">= 14.18 && < 15", ">= 16"],
446
+ "node:ffi": ">= 26.9",
436
447
  freelist: "< 6",
437
448
  fs: true,
438
449
  "node:fs": [">= 14.18 && < 15", ">= 16"],
@@ -493,18 +504,18 @@ var require_core = __commonJS({
493
504
  "node:sea": [">= 20.12 && < 21", ">= 21.7"],
494
505
  smalloc: ">= 0.11.5 && < 3",
495
506
  "node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
496
- _stream_duplex: ">= 0.9.4",
497
- "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
498
- _stream_transform: ">= 0.9.4",
499
- "node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
500
- _stream_wrap: ">= 1.4.1",
501
- "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
502
- _stream_passthrough: ">= 0.9.4",
503
- "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
504
- _stream_readable: ">= 0.9.4",
505
- "node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
506
- _stream_writable: ">= 0.9.4",
507
- "node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
507
+ _stream_duplex: ">= 0.9.4 && < 26",
508
+ "node:_stream_duplex": [">= 14.18 && < 15", ">= 16 && < 26"],
509
+ _stream_transform: ">= 0.9.4 && < 26",
510
+ "node:_stream_transform": [">= 14.18 && < 15", ">= 16 && < 26"],
511
+ _stream_wrap: ">= 1.4.1 && < 26",
512
+ "node:_stream_wrap": [">= 14.18 && < 15", ">= 16 && < 26"],
513
+ _stream_passthrough: ">= 0.9.4 && < 26",
514
+ "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16 && < 26"],
515
+ _stream_readable: ">= 0.9.4 && < 26",
516
+ "node:_stream_readable": [">= 14.18 && < 15", ">= 16 && < 26"],
517
+ _stream_writable: ">= 0.9.4 && < 26",
518
+ "node:_stream_writable": [">= 14.18 && < 15", ">= 16 && < 26"],
508
519
  stream: true,
509
520
  "node:stream": [">= 14.18 && < 15", ">= 16"],
510
521
  "stream/consumers": ">= 16.7",
@@ -564,9 +575,9 @@ var require_core = __commonJS({
564
575
  }
565
576
  });
566
577
 
567
- // ../node_modules/is-core-module/index.js
578
+ // node_modules/is-core-module/index.js
568
579
  var require_is_core_module = __commonJS({
569
- "../node_modules/is-core-module/index.js"(exports, module) {
580
+ "node_modules/is-core-module/index.js"(exports, module) {
570
581
  "use strict";
571
582
  var hasOwn = require_hasown();
572
583
  function specifierIncluded(current, specifier) {
@@ -575,8 +586,8 @@ var require_is_core_module = __commonJS({
575
586
  var op = parts.length > 1 ? parts[0] : "=";
576
587
  var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
577
588
  for (var i = 0; i < 3; ++i) {
578
- var cur = parseInt(nodeParts[i] || 0, 10);
579
- var ver = parseInt(versionParts[i] || 0, 10);
589
+ var cur = parseInt(nodeParts[i] || "0", 10);
590
+ var ver = parseInt(versionParts[i] || "0", 10);
580
591
  if (cur === ver) {
581
592
  continue;
582
593
  }
@@ -622,14 +633,25 @@ var require_is_core_module = __commonJS({
622
633
  }
623
634
  var data = require_core();
624
635
  module.exports = function isCore(x, nodeVersion) {
625
- return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
636
+ return hasOwn(data, x) && versionIncluded(nodeVersion, data[
637
+ /** @type {Module} */
638
+ x
639
+ ]);
626
640
  };
627
641
  }
628
642
  });
629
643
 
630
- // ../node_modules/resolve/lib/async.js
644
+ // node_modules/es-errors/type.js
645
+ var require_type = __commonJS({
646
+ "node_modules/es-errors/type.js"(exports, module) {
647
+ "use strict";
648
+ module.exports = TypeError;
649
+ }
650
+ });
651
+
652
+ // node_modules/resolve/lib/async.js
631
653
  var require_async = __commonJS({
632
- "../node_modules/resolve/lib/async.js"(exports, module) {
654
+ "node_modules/resolve/lib/async.js"(exports, module) {
633
655
  var fs2 = __require("fs");
634
656
  var getHomedir = require_homedir();
635
657
  var path2 = __require("path");
@@ -637,17 +659,20 @@ var require_async = __commonJS({
637
659
  var nodeModulesPaths = require_node_modules_paths();
638
660
  var normalizeOptions = require_normalize_options();
639
661
  var isCore = require_is_core_module();
662
+ var $Error = require_es_errors();
663
+ var $TypeError = require_type();
640
664
  var realpathFS = process.platform !== "win32" && fs2.realpath && typeof fs2.realpath.native === "function" ? fs2.realpath.native : fs2.realpath;
641
665
  var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
642
666
  var windowsDriveRegex = /^\w:[/\\]*$/;
643
667
  var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
644
668
  var homedir = getHomedir();
645
- var defaultPaths = function() {
669
+ function defaultPaths() {
670
+ if (!homedir) return [];
646
671
  return [
647
672
  path2.join(homedir, ".node_modules"),
648
673
  path2.join(homedir, ".node_libraries")
649
674
  ];
650
- };
675
+ }
651
676
  var defaultIsFile = function isFile(file, cb) {
652
677
  fs2.stat(file, function(err, stat2) {
653
678
  if (!err) {
@@ -672,14 +697,14 @@ var require_async = __commonJS({
672
697
  else cb(null, realpathErr ? x : realPath);
673
698
  });
674
699
  };
675
- var maybeRealpath = function maybeRealpath2(realpath2, x, opts, cb) {
700
+ function maybeRealpath(realpath2, x, opts, cb) {
676
701
  if (opts && opts.preserveSymlinks === false) {
677
702
  realpath2(x, cb);
678
703
  } else {
679
704
  cb(null, x);
680
705
  }
681
- };
682
- var defaultReadPackage = function defaultReadPackage2(readFile2, pkgfile, cb) {
706
+ }
707
+ function defaultReadPackage(readFile2, pkgfile, cb) {
683
708
  readFile2(pkgfile, function(readFileErr, body) {
684
709
  if (readFileErr) cb(readFileErr);
685
710
  else {
@@ -691,14 +716,14 @@ var require_async = __commonJS({
691
716
  }
692
717
  }
693
718
  });
694
- };
695
- var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
719
+ }
720
+ function getPackageCandidates(x, start, opts) {
696
721
  var dirs = nodeModulesPaths(start, opts, x);
697
722
  for (var i = 0; i < dirs.length; i++) {
698
723
  dirs[i] = path2.join(dirs[i], x);
699
724
  }
700
725
  return dirs;
701
- };
726
+ }
702
727
  module.exports = function resolve3(x, options, callback) {
703
728
  var cb = callback;
704
729
  var opts = options;
@@ -707,7 +732,7 @@ var require_async = __commonJS({
707
732
  opts = {};
708
733
  }
709
734
  if (typeof x !== "string") {
710
- var err = new TypeError("Path must be a string.");
735
+ var err = new $TypeError("Path must be a string.");
711
736
  return process.nextTick(function() {
712
737
  cb(err);
713
738
  });
@@ -719,7 +744,7 @@ var require_async = __commonJS({
719
744
  var realpath2 = opts.realpath || defaultRealpath;
720
745
  var readPackage = opts.readPackage || defaultReadPackage;
721
746
  if (opts.readFile && opts.readPackage) {
722
- var conflictErr = new TypeError("`readFile` and `readPackage` are mutually exclusive.");
747
+ var conflictErr = new $TypeError("`readFile` and `readPackage` are mutually exclusive.");
723
748
  return process.nextTick(function() {
724
749
  cb(conflictErr);
725
750
  });
@@ -761,7 +786,7 @@ var require_async = __commonJS({
761
786
  }
762
787
  });
763
788
  } else {
764
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
789
+ var moduleError = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
765
790
  moduleError.code = "MODULE_NOT_FOUND";
766
791
  cb(moduleError);
767
792
  }
@@ -781,7 +806,7 @@ var require_async = __commonJS({
781
806
  }
782
807
  });
783
808
  } else {
784
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
809
+ var moduleError = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
785
810
  moduleError.code = "MODULE_NOT_FOUND";
786
811
  cb(moduleError);
787
812
  }
@@ -810,7 +835,7 @@ var require_async = __commonJS({
810
835
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
811
836
  var r = opts.pathFilter(pkg, x3, rel);
812
837
  if (r) return load(
813
- [""].concat(extensions.slice()),
838
+ [""].concat(extensions),
814
839
  path2.resolve(dir, r),
815
840
  pkg
816
841
  );
@@ -836,7 +861,9 @@ var require_async = __commonJS({
836
861
  isFile(pkgfile, function(err2, ex) {
837
862
  if (!ex) return loadpkg(path2.dirname(dir), cb2);
838
863
  readPackage(readFile2, pkgfile, function(err3, pkgParam) {
839
- if (err3) cb2(err3);
864
+ if (err3) {
865
+ return cb2(err3);
866
+ }
840
867
  var pkg = pkgParam;
841
868
  if (pkg && opts.packageFilter) {
842
869
  pkg = opts.packageFilter(pkg, pkgfile);
@@ -867,7 +894,7 @@ var require_async = __commonJS({
867
894
  }
868
895
  if (pkg && pkg.main) {
869
896
  if (typeof pkg.main !== "string") {
870
- var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
897
+ var mainError = new $TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
871
898
  mainError.code = "INVALID_PACKAGE_MAIN";
872
899
  return cb2(mainError);
873
900
  }
@@ -925,9 +952,9 @@ var require_async = __commonJS({
925
952
  }
926
953
  });
927
954
 
928
- // ../node_modules/resolve/lib/core.json
955
+ // node_modules/resolve/lib/core.json
929
956
  var require_core2 = __commonJS({
930
- "../node_modules/resolve/lib/core.json"(exports, module) {
957
+ "node_modules/resolve/lib/core.json"(exports, module) {
931
958
  module.exports = {
932
959
  assert: true,
933
960
  "node:assert": [">= 14.18 && < 15", ">= 16"],
@@ -1093,9 +1120,9 @@ var require_core2 = __commonJS({
1093
1120
  }
1094
1121
  });
1095
1122
 
1096
- // ../node_modules/resolve/lib/core.js
1123
+ // node_modules/resolve/lib/core.js
1097
1124
  var require_core3 = __commonJS({
1098
- "../node_modules/resolve/lib/core.js"(exports, module) {
1125
+ "node_modules/resolve/lib/core.js"(exports, module) {
1099
1126
  "use strict";
1100
1127
  var isCoreModule = require_is_core_module();
1101
1128
  var data = require_core2();
@@ -1110,9 +1137,9 @@ var require_core3 = __commonJS({
1110
1137
  }
1111
1138
  });
1112
1139
 
1113
- // ../node_modules/resolve/lib/is-core.js
1140
+ // node_modules/resolve/lib/is-core.js
1114
1141
  var require_is_core = __commonJS({
1115
- "../node_modules/resolve/lib/is-core.js"(exports, module) {
1142
+ "node_modules/resolve/lib/is-core.js"(exports, module) {
1116
1143
  var isCoreModule = require_is_core_module();
1117
1144
  module.exports = function isCore(x) {
1118
1145
  return isCoreModule(x);
@@ -1120,12 +1147,14 @@ var require_is_core = __commonJS({
1120
1147
  }
1121
1148
  });
1122
1149
 
1123
- // ../node_modules/resolve/lib/sync.js
1150
+ // node_modules/resolve/lib/sync.js
1124
1151
  var require_sync = __commonJS({
1125
- "../node_modules/resolve/lib/sync.js"(exports, module) {
1152
+ "node_modules/resolve/lib/sync.js"(exports, module) {
1126
1153
  var isCore = require_is_core_module();
1127
1154
  var fs2 = __require("fs");
1128
1155
  var path2 = __require("path");
1156
+ var $Error = require_es_errors();
1157
+ var $TypeError = require_type();
1129
1158
  var getHomedir = require_homedir();
1130
1159
  var caller = require_caller();
1131
1160
  var nodeModulesPaths = require_node_modules_paths();
@@ -1135,12 +1164,13 @@ var require_sync = __commonJS({
1135
1164
  var windowsDriveRegex = /^\w:[/\\]*$/;
1136
1165
  var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
1137
1166
  var homedir = getHomedir();
1138
- var defaultPaths = function() {
1167
+ function defaultPaths() {
1168
+ if (!homedir) return [];
1139
1169
  return [
1140
1170
  path2.join(homedir, ".node_modules"),
1141
1171
  path2.join(homedir, ".node_libraries")
1142
1172
  ];
1143
- };
1173
+ }
1144
1174
  var defaultIsFile = function isFile(file) {
1145
1175
  try {
1146
1176
  var stat2 = fs2.statSync(file, { throwIfNoEntry: false });
@@ -1169,30 +1199,30 @@ var require_sync = __commonJS({
1169
1199
  }
1170
1200
  return x;
1171
1201
  };
1172
- var maybeRealpathSync = function maybeRealpathSync2(realpathSync2, x, opts) {
1202
+ function maybeRealpathSync(realpathSync2, x, opts) {
1173
1203
  if (opts && opts.preserveSymlinks === false) {
1174
1204
  return realpathSync2(x);
1175
1205
  }
1176
1206
  return x;
1177
- };
1178
- var defaultReadPackageSync = function defaultReadPackageSync2(readFileSync, pkgfile) {
1207
+ }
1208
+ function defaultReadPackageSync(readFileSync, pkgfile) {
1179
1209
  var body = readFileSync(pkgfile);
1180
1210
  try {
1181
1211
  var pkg = JSON.parse(body);
1182
1212
  return pkg;
1183
1213
  } catch (jsonErr) {
1184
1214
  }
1185
- };
1186
- var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
1215
+ }
1216
+ function getPackageCandidates(x, start, opts) {
1187
1217
  var dirs = nodeModulesPaths(start, opts, x);
1188
1218
  for (var i = 0; i < dirs.length; i++) {
1189
1219
  dirs[i] = path2.join(dirs[i], x);
1190
1220
  }
1191
1221
  return dirs;
1192
- };
1222
+ }
1193
1223
  module.exports = function resolveSync(x, options) {
1194
1224
  if (typeof x !== "string") {
1195
- throw new TypeError("Path must be a string.");
1225
+ throw new $TypeError("Path must be a string.");
1196
1226
  }
1197
1227
  var opts = normalizeOptions(x, options);
1198
1228
  var isFile = opts.isFile || defaultIsFile;
@@ -1201,7 +1231,7 @@ var require_sync = __commonJS({
1201
1231
  var realpathSync2 = opts.realpathSync || defaultRealpathSync;
1202
1232
  var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
1203
1233
  if (opts.readFileSync && opts.readPackageSync) {
1204
- throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
1234
+ throw new $TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
1205
1235
  }
1206
1236
  var packageIterator = opts.packageIterator;
1207
1237
  var extensions = opts.extensions || [".js"];
@@ -1221,7 +1251,7 @@ var require_sync = __commonJS({
1221
1251
  var n = loadNodeModulesSync(x, absoluteStart);
1222
1252
  if (n) return maybeRealpathSync(realpathSync2, n, opts);
1223
1253
  }
1224
- var err = new Error("Cannot find module '" + x + "' from '" + parent + "'");
1254
+ var err = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
1225
1255
  err.code = "MODULE_NOT_FOUND";
1226
1256
  throw err;
1227
1257
  function loadAsFileSync(x2) {
@@ -1279,7 +1309,7 @@ var require_sync = __commonJS({
1279
1309
  }
1280
1310
  if (pkg && pkg.main) {
1281
1311
  if (typeof pkg.main !== "string") {
1282
- var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
1312
+ var mainError = new $TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
1283
1313
  mainError.code = "INVALID_PACKAGE_MAIN";
1284
1314
  throw mainError;
1285
1315
  }
@@ -1316,9 +1346,9 @@ var require_sync = __commonJS({
1316
1346
  }
1317
1347
  });
1318
1348
 
1319
- // ../node_modules/resolve/index.js
1349
+ // node_modules/resolve/index.js
1320
1350
  var require_resolve = __commonJS({
1321
- "../node_modules/resolve/index.js"(exports, module) {
1351
+ "node_modules/resolve/index.js"(exports, module) {
1322
1352
  var async = require_async();
1323
1353
  async.core = require_core3();
1324
1354
  async.isCore = require_is_core();
@@ -1327,9 +1357,9 @@ var require_resolve = __commonJS({
1327
1357
  }
1328
1358
  });
1329
1359
 
1330
- // ../node_modules/picomatch/lib/constants.js
1360
+ // node_modules/picomatch/lib/constants.js
1331
1361
  var require_constants = __commonJS({
1332
- "../node_modules/picomatch/lib/constants.js"(exports, module) {
1362
+ "node_modules/picomatch/lib/constants.js"(exports, module) {
1333
1363
  "use strict";
1334
1364
  var WIN_SLASH = "\\\\/";
1335
1365
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
@@ -1529,9 +1559,9 @@ var require_constants = __commonJS({
1529
1559
  }
1530
1560
  });
1531
1561
 
1532
- // ../node_modules/picomatch/lib/utils.js
1562
+ // node_modules/picomatch/lib/utils.js
1533
1563
  var require_utils = __commonJS({
1534
- "../node_modules/picomatch/lib/utils.js"(exports) {
1564
+ "node_modules/picomatch/lib/utils.js"(exports) {
1535
1565
  "use strict";
1536
1566
  var {
1537
1567
  REGEX_BACKSLASH,
@@ -1593,9 +1623,9 @@ var require_utils = __commonJS({
1593
1623
  }
1594
1624
  });
1595
1625
 
1596
- // ../node_modules/picomatch/lib/scan.js
1626
+ // node_modules/picomatch/lib/scan.js
1597
1627
  var require_scan = __commonJS({
1598
- "../node_modules/picomatch/lib/scan.js"(exports, module) {
1628
+ "node_modules/picomatch/lib/scan.js"(exports, module) {
1599
1629
  "use strict";
1600
1630
  var utils = require_utils();
1601
1631
  var {
@@ -1931,9 +1961,9 @@ var require_scan = __commonJS({
1931
1961
  }
1932
1962
  });
1933
1963
 
1934
- // ../node_modules/picomatch/lib/parse.js
1964
+ // node_modules/picomatch/lib/parse.js
1935
1965
  var require_parse = __commonJS({
1936
- "../node_modules/picomatch/lib/parse.js"(exports, module) {
1966
+ "node_modules/picomatch/lib/parse.js"(exports, module) {
1937
1967
  "use strict";
1938
1968
  var constants = require_constants();
1939
1969
  var utils = require_utils();
@@ -2946,9 +2976,9 @@ var require_parse = __commonJS({
2946
2976
  }
2947
2977
  });
2948
2978
 
2949
- // ../node_modules/picomatch/lib/picomatch.js
2979
+ // node_modules/picomatch/lib/picomatch.js
2950
2980
  var require_picomatch = __commonJS({
2951
- "../node_modules/picomatch/lib/picomatch.js"(exports, module) {
2981
+ "node_modules/picomatch/lib/picomatch.js"(exports, module) {
2952
2982
  "use strict";
2953
2983
  var scan = require_scan();
2954
2984
  var parse = require_parse();
@@ -3086,9 +3116,9 @@ var require_picomatch = __commonJS({
3086
3116
  }
3087
3117
  });
3088
3118
 
3089
- // ../node_modules/picomatch/index.js
3119
+ // node_modules/picomatch/index.js
3090
3120
  var require_picomatch2 = __commonJS({
3091
- "../node_modules/picomatch/index.js"(exports, module) {
3121
+ "node_modules/picomatch/index.js"(exports, module) {
3092
3122
  "use strict";
3093
3123
  var pico = require_picomatch();
3094
3124
  var utils = require_utils();
@@ -3103,7 +3133,7 @@ var require_picomatch2 = __commonJS({
3103
3133
  }
3104
3134
  });
3105
3135
 
3106
- // ../node_modules/@rollup/plugin-node-resolve/dist/es/index.js
3136
+ // node_modules/@rollup/plugin-node-resolve/dist/es/index.js
3107
3137
  var import_deepmerge = __toESM(require_cjs(), 1);
3108
3138
  var import_is_module = __toESM(require_is_module(), 1);
3109
3139
  var import_resolve = __toESM(require_resolve(), 1);
@@ -3113,7 +3143,7 @@ import fs, { realpathSync } from "fs";
3113
3143
  import { promisify } from "util";
3114
3144
  import { pathToFileURL, fileURLToPath } from "url";
3115
3145
 
3116
- // ../node_modules/@rollup/pluginutils/dist/es/index.js
3146
+ // node_modules/@rollup/pluginutils/dist/es/index.js
3117
3147
  import { extname, win32, posix, isAbsolute, resolve } from "path";
3118
3148
  var import_picomatch = __toESM(require_picomatch2(), 1);
3119
3149
  function isArray(arg) {
@@ -3182,7 +3212,7 @@ var forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(" "));
3182
3212
  forbiddenIdentifiers.add("");
3183
3213
  var hasStringIsWellFormed = "isWellFormed" in String.prototype;
3184
3214
 
3185
- // ../node_modules/@rollup/plugin-node-resolve/dist/es/index.js
3215
+ // node_modules/@rollup/plugin-node-resolve/dist/es/index.js
3186
3216
  var version = "16.0.3";
3187
3217
  var peerDependencies = {
3188
3218
  rollup: "^2.78.0||^3.0.0||^4.0.0"