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
@@ -0,0 +1,1224 @@
1
+ import { createRequire as __dinou_createRequire } from "node:module";
2
+ import { fileURLToPath as __dinou_fileURLToPath } from "node:url";
3
+ import __dinou_path from "node:path";
4
+ const require = __dinou_createRequire(import.meta.url);
5
+ const __filename = __dinou_fileURLToPath(import.meta.url);
6
+ const __dirname = __dinou_path.dirname(__filename);
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __commonJS = (cb, mod) => function __require2() {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ };
17
+
18
+ // node_modules/resolve/lib/homedir.js
19
+ var require_homedir = __commonJS({
20
+ "node_modules/resolve/lib/homedir.js"(exports, module) {
21
+ "use strict";
22
+ var os = __require("os");
23
+ module.exports = os.homedir || function homedir() {
24
+ var home = process.env.HOME;
25
+ var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
26
+ if (process.platform === "win32") {
27
+ return process.env.USERPROFILE || process.env.HOMEDRIVE && process.env.HOMEPATH && process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
28
+ }
29
+ if (process.platform === "darwin") {
30
+ return home || (user ? "/Users/" + user : null);
31
+ }
32
+ if (process.platform === "linux") {
33
+ return home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null);
34
+ }
35
+ return home || null;
36
+ };
37
+ }
38
+ });
39
+
40
+ // node_modules/es-errors/index.js
41
+ var require_es_errors = __commonJS({
42
+ "node_modules/es-errors/index.js"(exports, module) {
43
+ "use strict";
44
+ module.exports = Error;
45
+ }
46
+ });
47
+
48
+ // node_modules/resolve/lib/caller.js
49
+ var require_caller = __commonJS({
50
+ "node_modules/resolve/lib/caller.js"(exports, module) {
51
+ "use strict";
52
+ var $Error = require_es_errors();
53
+ module.exports = function() {
54
+ var origPrepareStackTrace = $Error.prepareStackTrace;
55
+ $Error.prepareStackTrace = function(_, stack2) {
56
+ return stack2;
57
+ };
58
+ var stack = new $Error().stack;
59
+ $Error.prepareStackTrace = origPrepareStackTrace;
60
+ return stack[2].getFileName();
61
+ };
62
+ }
63
+ });
64
+
65
+ // node_modules/path-parse/index.js
66
+ var require_path_parse = __commonJS({
67
+ "node_modules/path-parse/index.js"(exports, module) {
68
+ "use strict";
69
+ var isWindows = process.platform === "win32";
70
+ var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
71
+ var win32 = {};
72
+ function win32SplitPath(filename) {
73
+ return splitWindowsRe.exec(filename).slice(1);
74
+ }
75
+ win32.parse = function(pathString) {
76
+ if (typeof pathString !== "string") {
77
+ throw new TypeError(
78
+ "Parameter 'pathString' must be a string, not " + typeof pathString
79
+ );
80
+ }
81
+ var allParts = win32SplitPath(pathString);
82
+ if (!allParts || allParts.length !== 5) {
83
+ throw new TypeError("Invalid path '" + pathString + "'");
84
+ }
85
+ return {
86
+ root: allParts[1],
87
+ dir: allParts[0] === allParts[1] ? allParts[0] : allParts[0].slice(0, -1),
88
+ base: allParts[2],
89
+ ext: allParts[4],
90
+ name: allParts[3]
91
+ };
92
+ };
93
+ var splitPathRe = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/;
94
+ var posix = {};
95
+ function posixSplitPath(filename) {
96
+ return splitPathRe.exec(filename).slice(1);
97
+ }
98
+ posix.parse = function(pathString) {
99
+ if (typeof pathString !== "string") {
100
+ throw new TypeError(
101
+ "Parameter 'pathString' must be a string, not " + typeof pathString
102
+ );
103
+ }
104
+ var allParts = posixSplitPath(pathString);
105
+ if (!allParts || allParts.length !== 5) {
106
+ throw new TypeError("Invalid path '" + pathString + "'");
107
+ }
108
+ return {
109
+ root: allParts[1],
110
+ dir: allParts[0].slice(0, -1),
111
+ base: allParts[2],
112
+ ext: allParts[4],
113
+ name: allParts[3]
114
+ };
115
+ };
116
+ if (isWindows)
117
+ module.exports = win32.parse;
118
+ else
119
+ module.exports = posix.parse;
120
+ module.exports.posix = posix.parse;
121
+ module.exports.win32 = win32.parse;
122
+ }
123
+ });
124
+
125
+ // node_modules/resolve/lib/node-modules-paths.js
126
+ var require_node_modules_paths = __commonJS({
127
+ "node_modules/resolve/lib/node-modules-paths.js"(exports, module) {
128
+ var path = __require("path");
129
+ var parse = path.parse || require_path_parse();
130
+ var driveLetterRegex = /^([A-Za-z]:)/;
131
+ var uncPathRegex = /^\\\\/;
132
+ function getNodeModulesDirs(absoluteStart, modules) {
133
+ var prefix = "/";
134
+ if (driveLetterRegex.test(absoluteStart)) {
135
+ prefix = "";
136
+ } else if (uncPathRegex.test(absoluteStart)) {
137
+ prefix = "\\\\";
138
+ }
139
+ var paths = [absoluteStart];
140
+ var parsed = parse(absoluteStart);
141
+ while (parsed.dir !== paths[paths.length - 1]) {
142
+ paths.push(parsed.dir);
143
+ parsed = parse(parsed.dir);
144
+ }
145
+ return paths.reduce(function(dirs, aPath) {
146
+ return dirs.concat(modules.map(function(moduleDir) {
147
+ return path.resolve(prefix, aPath, moduleDir);
148
+ }));
149
+ }, []);
150
+ }
151
+ module.exports = function nodeModulesPaths(start, opts, request) {
152
+ var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"];
153
+ if (opts && typeof opts.paths === "function") {
154
+ return opts.paths(
155
+ request,
156
+ start,
157
+ function() {
158
+ return getNodeModulesDirs(start, modules);
159
+ },
160
+ opts
161
+ );
162
+ }
163
+ var dirs = getNodeModulesDirs(start, modules);
164
+ return opts && opts.paths ? dirs.concat(opts.paths) : dirs;
165
+ };
166
+ }
167
+ });
168
+
169
+ // node_modules/resolve/lib/normalize-options.js
170
+ var require_normalize_options = __commonJS({
171
+ "node_modules/resolve/lib/normalize-options.js"(exports, module) {
172
+ module.exports = function(x, opts) {
173
+ return opts || {};
174
+ };
175
+ }
176
+ });
177
+
178
+ // node_modules/function-bind/implementation.js
179
+ var require_implementation = __commonJS({
180
+ "node_modules/function-bind/implementation.js"(exports, module) {
181
+ "use strict";
182
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
183
+ var toStr = Object.prototype.toString;
184
+ var max = Math.max;
185
+ var funcType = "[object Function]";
186
+ var concatty = function concatty2(a, b) {
187
+ var arr = [];
188
+ for (var i = 0; i < a.length; i += 1) {
189
+ arr[i] = a[i];
190
+ }
191
+ for (var j = 0; j < b.length; j += 1) {
192
+ arr[j + a.length] = b[j];
193
+ }
194
+ return arr;
195
+ };
196
+ var slicy = function slicy2(arrLike, offset) {
197
+ var arr = [];
198
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
199
+ arr[j] = arrLike[i];
200
+ }
201
+ return arr;
202
+ };
203
+ var joiny = function(arr, joiner) {
204
+ var str = "";
205
+ for (var i = 0; i < arr.length; i += 1) {
206
+ str += arr[i];
207
+ if (i + 1 < arr.length) {
208
+ str += joiner;
209
+ }
210
+ }
211
+ return str;
212
+ };
213
+ module.exports = function bind(that) {
214
+ var target = this;
215
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
216
+ throw new TypeError(ERROR_MESSAGE + target);
217
+ }
218
+ var args = slicy(arguments, 1);
219
+ var bound;
220
+ var binder = function() {
221
+ if (this instanceof bound) {
222
+ var result = target.apply(
223
+ this,
224
+ concatty(args, arguments)
225
+ );
226
+ if (Object(result) === result) {
227
+ return result;
228
+ }
229
+ return this;
230
+ }
231
+ return target.apply(
232
+ that,
233
+ concatty(args, arguments)
234
+ );
235
+ };
236
+ var boundLength = max(0, target.length - args.length);
237
+ var boundArgs = [];
238
+ for (var i = 0; i < boundLength; i++) {
239
+ boundArgs[i] = "$" + i;
240
+ }
241
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
242
+ if (target.prototype) {
243
+ var Empty = function Empty2() {
244
+ };
245
+ Empty.prototype = target.prototype;
246
+ bound.prototype = new Empty();
247
+ Empty.prototype = null;
248
+ }
249
+ return bound;
250
+ };
251
+ }
252
+ });
253
+
254
+ // node_modules/function-bind/index.js
255
+ var require_function_bind = __commonJS({
256
+ "node_modules/function-bind/index.js"(exports, module) {
257
+ "use strict";
258
+ var implementation = require_implementation();
259
+ module.exports = Function.prototype.bind || implementation;
260
+ }
261
+ });
262
+
263
+ // node_modules/hasown/index.js
264
+ var require_hasown = __commonJS({
265
+ "node_modules/hasown/index.js"(exports, module) {
266
+ "use strict";
267
+ var call = Function.prototype.call;
268
+ var $hasOwn = Object.prototype.hasOwnProperty;
269
+ var bind = require_function_bind();
270
+ module.exports = bind.call(call, $hasOwn);
271
+ }
272
+ });
273
+
274
+ // node_modules/is-core-module/core.json
275
+ var require_core = __commonJS({
276
+ "node_modules/is-core-module/core.json"(exports, module) {
277
+ module.exports = {
278
+ assert: true,
279
+ "node:assert": [">= 14.18 && < 15", ">= 16"],
280
+ "assert/strict": ">= 15",
281
+ "node:assert/strict": ">= 16",
282
+ async_hooks: ">= 8",
283
+ "node:async_hooks": [">= 14.18 && < 15", ">= 16"],
284
+ buffer_ieee754: ">= 0.5 && < 0.9.7",
285
+ buffer: true,
286
+ "node:buffer": [">= 14.18 && < 15", ">= 16"],
287
+ child_process: true,
288
+ "node:child_process": [">= 14.18 && < 15", ">= 16"],
289
+ cluster: ">= 0.5",
290
+ "node:cluster": [">= 14.18 && < 15", ">= 16"],
291
+ console: true,
292
+ "node:console": [">= 14.18 && < 15", ">= 16"],
293
+ constants: true,
294
+ "node:constants": [">= 14.18 && < 15", ">= 16"],
295
+ crypto: true,
296
+ "node:crypto": [">= 14.18 && < 15", ">= 16"],
297
+ _debug_agent: ">= 1 && < 8",
298
+ _debugger: "< 8",
299
+ dgram: true,
300
+ "node:dgram": [">= 14.18 && < 15", ">= 16"],
301
+ diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
302
+ "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
303
+ dns: true,
304
+ "node:dns": [">= 14.18 && < 15", ">= 16"],
305
+ "dns/promises": ">= 15",
306
+ "node:dns/promises": ">= 16",
307
+ domain: ">= 0.7.12",
308
+ "node:domain": [">= 14.18 && < 15", ">= 16"],
309
+ events: true,
310
+ "node:events": [">= 14.18 && < 15", ">= 16"],
311
+ "node:ffi": ">= 26.9",
312
+ freelist: "< 6",
313
+ fs: true,
314
+ "node:fs": [">= 14.18 && < 15", ">= 16"],
315
+ "fs/promises": [">= 10 && < 10.1", ">= 14"],
316
+ "node:fs/promises": [">= 14.18 && < 15", ">= 16"],
317
+ _http_agent: ">= 0.11.1",
318
+ "node:_http_agent": [">= 14.18 && < 15", ">= 16"],
319
+ _http_client: ">= 0.11.1",
320
+ "node:_http_client": [">= 14.18 && < 15", ">= 16"],
321
+ _http_common: ">= 0.11.1",
322
+ "node:_http_common": [">= 14.18 && < 15", ">= 16"],
323
+ _http_incoming: ">= 0.11.1",
324
+ "node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
325
+ _http_outgoing: ">= 0.11.1",
326
+ "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
327
+ _http_server: ">= 0.11.1",
328
+ "node:_http_server": [">= 14.18 && < 15", ">= 16"],
329
+ http: true,
330
+ "node:http": [">= 14.18 && < 15", ">= 16"],
331
+ http2: ">= 8.8",
332
+ "node:http2": [">= 14.18 && < 15", ">= 16"],
333
+ https: true,
334
+ "node:https": [">= 14.18 && < 15", ">= 16"],
335
+ inspector: ">= 8",
336
+ "node:inspector": [">= 14.18 && < 15", ">= 16"],
337
+ "inspector/promises": [">= 19"],
338
+ "node:inspector/promises": [">= 19"],
339
+ _linklist: "< 8",
340
+ module: true,
341
+ "node:module": [">= 14.18 && < 15", ">= 16"],
342
+ net: true,
343
+ "node:net": [">= 14.18 && < 15", ">= 16"],
344
+ "node-inspect/lib/_inspect": ">= 7.6 && < 12",
345
+ "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
346
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
347
+ os: true,
348
+ "node:os": [">= 14.18 && < 15", ">= 16"],
349
+ path: true,
350
+ "node:path": [">= 14.18 && < 15", ">= 16"],
351
+ "path/posix": ">= 15.3",
352
+ "node:path/posix": ">= 16",
353
+ "path/win32": ">= 15.3",
354
+ "node:path/win32": ">= 16",
355
+ perf_hooks: ">= 8.5",
356
+ "node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
357
+ process: ">= 1",
358
+ "node:process": [">= 14.18 && < 15", ">= 16"],
359
+ punycode: ">= 0.5",
360
+ "node:punycode": [">= 14.18 && < 15", ">= 16"],
361
+ querystring: true,
362
+ "node:querystring": [">= 14.18 && < 15", ">= 16"],
363
+ readline: true,
364
+ "node:readline": [">= 14.18 && < 15", ">= 16"],
365
+ "readline/promises": ">= 17",
366
+ "node:readline/promises": ">= 17",
367
+ repl: true,
368
+ "node:repl": [">= 14.18 && < 15", ">= 16"],
369
+ "node:sea": [">= 20.12 && < 21", ">= 21.7"],
370
+ smalloc: ">= 0.11.5 && < 3",
371
+ "node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
372
+ _stream_duplex: ">= 0.9.4 && < 26",
373
+ "node:_stream_duplex": [">= 14.18 && < 15", ">= 16 && < 26"],
374
+ _stream_transform: ">= 0.9.4 && < 26",
375
+ "node:_stream_transform": [">= 14.18 && < 15", ">= 16 && < 26"],
376
+ _stream_wrap: ">= 1.4.1 && < 26",
377
+ "node:_stream_wrap": [">= 14.18 && < 15", ">= 16 && < 26"],
378
+ _stream_passthrough: ">= 0.9.4 && < 26",
379
+ "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16 && < 26"],
380
+ _stream_readable: ">= 0.9.4 && < 26",
381
+ "node:_stream_readable": [">= 14.18 && < 15", ">= 16 && < 26"],
382
+ _stream_writable: ">= 0.9.4 && < 26",
383
+ "node:_stream_writable": [">= 14.18 && < 15", ">= 16 && < 26"],
384
+ stream: true,
385
+ "node:stream": [">= 14.18 && < 15", ">= 16"],
386
+ "stream/consumers": ">= 16.7",
387
+ "node:stream/consumers": ">= 16.7",
388
+ "stream/promises": ">= 15",
389
+ "node:stream/promises": ">= 16",
390
+ "stream/web": ">= 16.5",
391
+ "node:stream/web": ">= 16.5",
392
+ string_decoder: true,
393
+ "node:string_decoder": [">= 14.18 && < 15", ">= 16"],
394
+ sys: [">= 0.4 && < 0.7", ">= 0.8"],
395
+ "node:sys": [">= 14.18 && < 15", ">= 16"],
396
+ "test/reporters": ">= 19.9 && < 20.2",
397
+ "node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
398
+ "test/mock_loader": ">= 22.3 && < 22.7",
399
+ "node:test/mock_loader": ">= 22.3 && < 22.7",
400
+ "node:test": [">= 16.17 && < 17", ">= 18"],
401
+ timers: true,
402
+ "node:timers": [">= 14.18 && < 15", ">= 16"],
403
+ "timers/promises": ">= 15",
404
+ "node:timers/promises": ">= 16",
405
+ _tls_common: ">= 0.11.13",
406
+ "node:_tls_common": [">= 14.18 && < 15", ">= 16"],
407
+ _tls_legacy: ">= 0.11.3 && < 10",
408
+ _tls_wrap: ">= 0.11.3",
409
+ "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
410
+ tls: true,
411
+ "node:tls": [">= 14.18 && < 15", ">= 16"],
412
+ trace_events: ">= 10",
413
+ "node:trace_events": [">= 14.18 && < 15", ">= 16"],
414
+ tty: true,
415
+ "node:tty": [">= 14.18 && < 15", ">= 16"],
416
+ url: true,
417
+ "node:url": [">= 14.18 && < 15", ">= 16"],
418
+ util: true,
419
+ "node:util": [">= 14.18 && < 15", ">= 16"],
420
+ "util/types": ">= 15.3",
421
+ "node:util/types": ">= 16",
422
+ "v8/tools/arguments": ">= 10 && < 12",
423
+ "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
424
+ "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
425
+ "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
426
+ "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
427
+ "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
428
+ "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
429
+ v8: ">= 1",
430
+ "node:v8": [">= 14.18 && < 15", ">= 16"],
431
+ vm: true,
432
+ "node:vm": [">= 14.18 && < 15", ">= 16"],
433
+ wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
434
+ "node:wasi": [">= 18.17 && < 19", ">= 20"],
435
+ worker_threads: ">= 11.7",
436
+ "node:worker_threads": [">= 14.18 && < 15", ">= 16"],
437
+ zlib: ">= 0.5",
438
+ "node:zlib": [">= 14.18 && < 15", ">= 16"]
439
+ };
440
+ }
441
+ });
442
+
443
+ // node_modules/is-core-module/index.js
444
+ var require_is_core_module = __commonJS({
445
+ "node_modules/is-core-module/index.js"(exports, module) {
446
+ "use strict";
447
+ var hasOwn = require_hasown();
448
+ function specifierIncluded(current, specifier) {
449
+ var nodeParts = current.split(".");
450
+ var parts = specifier.split(" ");
451
+ var op = parts.length > 1 ? parts[0] : "=";
452
+ var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
453
+ for (var i = 0; i < 3; ++i) {
454
+ var cur = parseInt(nodeParts[i] || "0", 10);
455
+ var ver = parseInt(versionParts[i] || "0", 10);
456
+ if (cur === ver) {
457
+ continue;
458
+ }
459
+ if (op === "<") {
460
+ return cur < ver;
461
+ }
462
+ if (op === ">=") {
463
+ return cur >= ver;
464
+ }
465
+ return false;
466
+ }
467
+ return op === ">=";
468
+ }
469
+ function matchesRange(current, range) {
470
+ var specifiers = range.split(/ ?&& ?/);
471
+ if (specifiers.length === 0) {
472
+ return false;
473
+ }
474
+ for (var i = 0; i < specifiers.length; ++i) {
475
+ if (!specifierIncluded(current, specifiers[i])) {
476
+ return false;
477
+ }
478
+ }
479
+ return true;
480
+ }
481
+ function versionIncluded(nodeVersion, specifierValue) {
482
+ if (typeof specifierValue === "boolean") {
483
+ return specifierValue;
484
+ }
485
+ var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion;
486
+ if (typeof current !== "string") {
487
+ throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required");
488
+ }
489
+ if (specifierValue && typeof specifierValue === "object") {
490
+ for (var i = 0; i < specifierValue.length; ++i) {
491
+ if (matchesRange(current, specifierValue[i])) {
492
+ return true;
493
+ }
494
+ }
495
+ return false;
496
+ }
497
+ return matchesRange(current, specifierValue);
498
+ }
499
+ var data = require_core();
500
+ module.exports = function isCore(x, nodeVersion) {
501
+ return hasOwn(data, x) && versionIncluded(nodeVersion, data[
502
+ /** @type {Module} */
503
+ x
504
+ ]);
505
+ };
506
+ }
507
+ });
508
+
509
+ // node_modules/es-errors/type.js
510
+ var require_type = __commonJS({
511
+ "node_modules/es-errors/type.js"(exports, module) {
512
+ "use strict";
513
+ module.exports = TypeError;
514
+ }
515
+ });
516
+
517
+ // node_modules/resolve/lib/async.js
518
+ var require_async = __commonJS({
519
+ "node_modules/resolve/lib/async.js"(exports, module) {
520
+ var fs = __require("fs");
521
+ var getHomedir = require_homedir();
522
+ var path = __require("path");
523
+ var caller = require_caller();
524
+ var nodeModulesPaths = require_node_modules_paths();
525
+ var normalizeOptions = require_normalize_options();
526
+ var isCore = require_is_core_module();
527
+ var $Error = require_es_errors();
528
+ var $TypeError = require_type();
529
+ var realpathFS = process.platform !== "win32" && fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath;
530
+ var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
531
+ var windowsDriveRegex = /^\w:[/\\]*$/;
532
+ var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
533
+ var homedir = getHomedir();
534
+ function defaultPaths() {
535
+ if (!homedir) return [];
536
+ return [
537
+ path.join(homedir, ".node_modules"),
538
+ path.join(homedir, ".node_libraries")
539
+ ];
540
+ }
541
+ var defaultIsFile = function isFile(file, cb) {
542
+ fs.stat(file, function(err, stat) {
543
+ if (!err) {
544
+ return cb(null, stat.isFile() || stat.isFIFO());
545
+ }
546
+ if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
547
+ return cb(err);
548
+ });
549
+ };
550
+ var defaultIsDir = function isDirectory(dir, cb) {
551
+ fs.stat(dir, function(err, stat) {
552
+ if (!err) {
553
+ return cb(null, stat.isDirectory());
554
+ }
555
+ if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
556
+ return cb(err);
557
+ });
558
+ };
559
+ var defaultRealpath = function realpath(x, cb) {
560
+ realpathFS(x, function(realpathErr, realPath) {
561
+ if (realpathErr && realpathErr.code !== "ENOENT") cb(realpathErr);
562
+ else cb(null, realpathErr ? x : realPath);
563
+ });
564
+ };
565
+ function maybeRealpath(realpath, x, opts, cb) {
566
+ if (opts && opts.preserveSymlinks === false) {
567
+ realpath(x, cb);
568
+ } else {
569
+ cb(null, x);
570
+ }
571
+ }
572
+ function defaultReadPackage(readFile, pkgfile, cb) {
573
+ readFile(pkgfile, function(readFileErr, body) {
574
+ if (readFileErr) cb(readFileErr);
575
+ else {
576
+ try {
577
+ var pkg = JSON.parse(body);
578
+ cb(null, pkg);
579
+ } catch (jsonErr) {
580
+ cb(null);
581
+ }
582
+ }
583
+ });
584
+ }
585
+ function getPackageCandidates(x, start, opts) {
586
+ var dirs = nodeModulesPaths(start, opts, x);
587
+ for (var i = 0; i < dirs.length; i++) {
588
+ dirs[i] = path.join(dirs[i], x);
589
+ }
590
+ return dirs;
591
+ }
592
+ module.exports = function resolve(x, options, callback) {
593
+ var cb = callback;
594
+ var opts = options;
595
+ if (typeof options === "function") {
596
+ cb = opts;
597
+ opts = {};
598
+ }
599
+ if (typeof x !== "string") {
600
+ var err = new $TypeError("Path must be a string.");
601
+ return process.nextTick(function() {
602
+ cb(err);
603
+ });
604
+ }
605
+ opts = normalizeOptions(x, opts);
606
+ var isFile = opts.isFile || defaultIsFile;
607
+ var isDirectory = opts.isDirectory || defaultIsDir;
608
+ var readFile = opts.readFile || fs.readFile;
609
+ var realpath = opts.realpath || defaultRealpath;
610
+ var readPackage = opts.readPackage || defaultReadPackage;
611
+ if (opts.readFile && opts.readPackage) {
612
+ var conflictErr = new $TypeError("`readFile` and `readPackage` are mutually exclusive.");
613
+ return process.nextTick(function() {
614
+ cb(conflictErr);
615
+ });
616
+ }
617
+ var packageIterator = opts.packageIterator;
618
+ var extensions = opts.extensions || [".js"];
619
+ var includeCoreModules = opts.includeCoreModules !== false;
620
+ var basedir = opts.basedir || path.dirname(caller());
621
+ var parent = opts.filename || basedir;
622
+ opts.paths = opts.paths || defaultPaths();
623
+ var absoluteStart = path.resolve(basedir);
624
+ maybeRealpath(
625
+ realpath,
626
+ absoluteStart,
627
+ opts,
628
+ function(err2, realStart) {
629
+ if (err2) cb(err2);
630
+ else init(realStart);
631
+ }
632
+ );
633
+ var res;
634
+ function init(basedir2) {
635
+ if (relativePathRegex.test(x)) {
636
+ res = path.resolve(basedir2, x);
637
+ if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
638
+ if (x.slice(-1) === "/" && res === basedir2) {
639
+ loadAsDirectory(res, opts.package, onfile);
640
+ } else loadAsFile(res, opts.package, onfile);
641
+ } else if (includeCoreModules && isCore(x)) {
642
+ return cb(null, x);
643
+ } else loadNodeModules(x, basedir2, function(err2, n, pkg) {
644
+ if (err2) cb(err2);
645
+ else if (n) {
646
+ return maybeRealpath(realpath, n, opts, function(err3, realN) {
647
+ if (err3) {
648
+ cb(err3);
649
+ } else {
650
+ cb(null, realN, pkg);
651
+ }
652
+ });
653
+ } else {
654
+ var moduleError = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
655
+ moduleError.code = "MODULE_NOT_FOUND";
656
+ cb(moduleError);
657
+ }
658
+ });
659
+ }
660
+ function onfile(err2, m, pkg) {
661
+ if (err2) cb(err2);
662
+ else if (m) cb(null, m, pkg);
663
+ else loadAsDirectory(res, function(err3, d, pkg2) {
664
+ if (err3) cb(err3);
665
+ else if (d) {
666
+ maybeRealpath(realpath, d, opts, function(err4, realD) {
667
+ if (err4) {
668
+ cb(err4);
669
+ } else {
670
+ cb(null, realD, pkg2);
671
+ }
672
+ });
673
+ } else {
674
+ var moduleError = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
675
+ moduleError.code = "MODULE_NOT_FOUND";
676
+ cb(moduleError);
677
+ }
678
+ });
679
+ }
680
+ function loadAsFile(x2, thePackage, callback2) {
681
+ var loadAsFilePackage = thePackage;
682
+ var cb2 = callback2;
683
+ if (typeof loadAsFilePackage === "function") {
684
+ cb2 = loadAsFilePackage;
685
+ loadAsFilePackage = void 0;
686
+ }
687
+ var exts = [""].concat(extensions);
688
+ load(exts, x2, loadAsFilePackage);
689
+ function load(exts2, x3, loadPackage) {
690
+ if (exts2.length === 0) return cb2(null, void 0, loadPackage);
691
+ var file = x3 + exts2[0];
692
+ var pkg = loadPackage;
693
+ if (pkg) onpkg(null, pkg);
694
+ else loadpkg(path.dirname(file), onpkg);
695
+ function onpkg(err2, pkg_, dir) {
696
+ pkg = pkg_;
697
+ if (err2) return cb2(err2);
698
+ if (dir && pkg && opts.pathFilter) {
699
+ var rfile = path.relative(dir, file);
700
+ var rel = rfile.slice(0, rfile.length - exts2[0].length);
701
+ var r = opts.pathFilter(pkg, x3, rel);
702
+ if (r) return load(
703
+ [""].concat(extensions),
704
+ path.resolve(dir, r),
705
+ pkg
706
+ );
707
+ }
708
+ isFile(file, onex);
709
+ }
710
+ function onex(err2, ex) {
711
+ if (err2) return cb2(err2);
712
+ if (ex) return cb2(null, file, pkg);
713
+ load(exts2.slice(1), x3, pkg);
714
+ }
715
+ }
716
+ }
717
+ function loadpkg(dir, cb2) {
718
+ if (dir === "" || dir === "/") return cb2(null);
719
+ if (process.platform === "win32" && windowsDriveRegex.test(dir)) {
720
+ return cb2(null);
721
+ }
722
+ if (nodeModulesRegex.test(dir)) return cb2(null);
723
+ maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
724
+ if (unwrapErr) return loadpkg(path.dirname(dir), cb2);
725
+ var pkgfile = path.join(pkgdir, "package.json");
726
+ isFile(pkgfile, function(err2, ex) {
727
+ if (!ex) return loadpkg(path.dirname(dir), cb2);
728
+ readPackage(readFile, pkgfile, function(err3, pkgParam) {
729
+ if (err3) {
730
+ return cb2(err3);
731
+ }
732
+ var pkg = pkgParam;
733
+ if (pkg && opts.packageFilter) {
734
+ pkg = opts.packageFilter(pkg, pkgfile);
735
+ }
736
+ cb2(null, pkg, dir);
737
+ });
738
+ });
739
+ });
740
+ }
741
+ function loadAsDirectory(x2, loadAsDirectoryPackage, callback2) {
742
+ var cb2 = callback2;
743
+ var fpkg = loadAsDirectoryPackage;
744
+ if (typeof fpkg === "function") {
745
+ cb2 = fpkg;
746
+ fpkg = opts.package;
747
+ }
748
+ maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
749
+ if (unwrapErr) return cb2(unwrapErr);
750
+ var pkgfile = path.join(pkgdir, "package.json");
751
+ isFile(pkgfile, function(err2, ex) {
752
+ if (err2) return cb2(err2);
753
+ if (!ex) return loadAsFile(path.join(x2, "index"), fpkg, cb2);
754
+ readPackage(readFile, pkgfile, function(err3, pkgParam) {
755
+ if (err3) return cb2(err3);
756
+ var pkg = pkgParam;
757
+ if (pkg && opts.packageFilter) {
758
+ pkg = opts.packageFilter(pkg, pkgfile);
759
+ }
760
+ if (pkg && pkg.main) {
761
+ if (typeof pkg.main !== "string") {
762
+ var mainError = new $TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
763
+ mainError.code = "INVALID_PACKAGE_MAIN";
764
+ return cb2(mainError);
765
+ }
766
+ if (pkg.main === "." || pkg.main === "./") {
767
+ pkg.main = "index";
768
+ }
769
+ loadAsFile(path.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
770
+ if (err4) return cb2(err4);
771
+ if (m) return cb2(null, m, pkg2);
772
+ if (!pkg2) return loadAsFile(path.join(x2, "index"), pkg2, cb2);
773
+ var dir = path.resolve(x2, pkg2.main);
774
+ loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
775
+ if (err5) return cb2(err5);
776
+ if (n) return cb2(null, n, pkg3);
777
+ loadAsFile(path.join(x2, "index"), pkg3, cb2);
778
+ });
779
+ });
780
+ return;
781
+ }
782
+ loadAsFile(path.join(x2, "/index"), pkg, cb2);
783
+ });
784
+ });
785
+ });
786
+ }
787
+ function processDirs(cb2, dirs) {
788
+ if (dirs.length === 0) return cb2(null, void 0);
789
+ var dir = dirs[0];
790
+ isDirectory(path.dirname(dir), isdir);
791
+ function isdir(err2, isdir2) {
792
+ if (err2) return cb2(err2);
793
+ if (!isdir2) return processDirs(cb2, dirs.slice(1));
794
+ loadAsFile(dir, opts.package, onfile2);
795
+ }
796
+ function onfile2(err2, m, pkg) {
797
+ if (err2) return cb2(err2);
798
+ if (m) return cb2(null, m, pkg);
799
+ loadAsDirectory(dir, opts.package, ondir);
800
+ }
801
+ function ondir(err2, n, pkg) {
802
+ if (err2) return cb2(err2);
803
+ if (n) return cb2(null, n, pkg);
804
+ processDirs(cb2, dirs.slice(1));
805
+ }
806
+ }
807
+ function loadNodeModules(x2, start, cb2) {
808
+ var thunk = function() {
809
+ return getPackageCandidates(x2, start, opts);
810
+ };
811
+ processDirs(
812
+ cb2,
813
+ packageIterator ? packageIterator(x2, start, thunk, opts) : thunk()
814
+ );
815
+ }
816
+ };
817
+ }
818
+ });
819
+
820
+ // node_modules/resolve/lib/core.json
821
+ var require_core2 = __commonJS({
822
+ "node_modules/resolve/lib/core.json"(exports, module) {
823
+ module.exports = {
824
+ assert: true,
825
+ "node:assert": [">= 14.18 && < 15", ">= 16"],
826
+ "assert/strict": ">= 15",
827
+ "node:assert/strict": ">= 16",
828
+ async_hooks: ">= 8",
829
+ "node:async_hooks": [">= 14.18 && < 15", ">= 16"],
830
+ buffer_ieee754: ">= 0.5 && < 0.9.7",
831
+ buffer: true,
832
+ "node:buffer": [">= 14.18 && < 15", ">= 16"],
833
+ child_process: true,
834
+ "node:child_process": [">= 14.18 && < 15", ">= 16"],
835
+ cluster: ">= 0.5",
836
+ "node:cluster": [">= 14.18 && < 15", ">= 16"],
837
+ console: true,
838
+ "node:console": [">= 14.18 && < 15", ">= 16"],
839
+ constants: true,
840
+ "node:constants": [">= 14.18 && < 15", ">= 16"],
841
+ crypto: true,
842
+ "node:crypto": [">= 14.18 && < 15", ">= 16"],
843
+ _debug_agent: ">= 1 && < 8",
844
+ _debugger: "< 8",
845
+ dgram: true,
846
+ "node:dgram": [">= 14.18 && < 15", ">= 16"],
847
+ diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
848
+ "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
849
+ dns: true,
850
+ "node:dns": [">= 14.18 && < 15", ">= 16"],
851
+ "dns/promises": ">= 15",
852
+ "node:dns/promises": ">= 16",
853
+ domain: ">= 0.7.12",
854
+ "node:domain": [">= 14.18 && < 15", ">= 16"],
855
+ events: true,
856
+ "node:events": [">= 14.18 && < 15", ">= 16"],
857
+ freelist: "< 6",
858
+ fs: true,
859
+ "node:fs": [">= 14.18 && < 15", ">= 16"],
860
+ "fs/promises": [">= 10 && < 10.1", ">= 14"],
861
+ "node:fs/promises": [">= 14.18 && < 15", ">= 16"],
862
+ _http_agent: ">= 0.11.1",
863
+ "node:_http_agent": [">= 14.18 && < 15", ">= 16"],
864
+ _http_client: ">= 0.11.1",
865
+ "node:_http_client": [">= 14.18 && < 15", ">= 16"],
866
+ _http_common: ">= 0.11.1",
867
+ "node:_http_common": [">= 14.18 && < 15", ">= 16"],
868
+ _http_incoming: ">= 0.11.1",
869
+ "node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
870
+ _http_outgoing: ">= 0.11.1",
871
+ "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
872
+ _http_server: ">= 0.11.1",
873
+ "node:_http_server": [">= 14.18 && < 15", ">= 16"],
874
+ http: true,
875
+ "node:http": [">= 14.18 && < 15", ">= 16"],
876
+ http2: ">= 8.8",
877
+ "node:http2": [">= 14.18 && < 15", ">= 16"],
878
+ https: true,
879
+ "node:https": [">= 14.18 && < 15", ">= 16"],
880
+ inspector: ">= 8",
881
+ "node:inspector": [">= 14.18 && < 15", ">= 16"],
882
+ "inspector/promises": [">= 19"],
883
+ "node:inspector/promises": [">= 19"],
884
+ _linklist: "< 8",
885
+ module: true,
886
+ "node:module": [">= 14.18 && < 15", ">= 16"],
887
+ net: true,
888
+ "node:net": [">= 14.18 && < 15", ">= 16"],
889
+ "node-inspect/lib/_inspect": ">= 7.6 && < 12",
890
+ "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
891
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
892
+ os: true,
893
+ "node:os": [">= 14.18 && < 15", ">= 16"],
894
+ path: true,
895
+ "node:path": [">= 14.18 && < 15", ">= 16"],
896
+ "path/posix": ">= 15.3",
897
+ "node:path/posix": ">= 16",
898
+ "path/win32": ">= 15.3",
899
+ "node:path/win32": ">= 16",
900
+ perf_hooks: ">= 8.5",
901
+ "node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
902
+ process: ">= 1",
903
+ "node:process": [">= 14.18 && < 15", ">= 16"],
904
+ punycode: ">= 0.5",
905
+ "node:punycode": [">= 14.18 && < 15", ">= 16"],
906
+ querystring: true,
907
+ "node:querystring": [">= 14.18 && < 15", ">= 16"],
908
+ readline: true,
909
+ "node:readline": [">= 14.18 && < 15", ">= 16"],
910
+ "readline/promises": ">= 17",
911
+ "node:readline/promises": ">= 17",
912
+ repl: true,
913
+ "node:repl": [">= 14.18 && < 15", ">= 16"],
914
+ "node:sea": [">= 20.12 && < 21", ">= 21.7"],
915
+ smalloc: ">= 0.11.5 && < 3",
916
+ "node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
917
+ _stream_duplex: ">= 0.9.4",
918
+ "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
919
+ _stream_transform: ">= 0.9.4",
920
+ "node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
921
+ _stream_wrap: ">= 1.4.1",
922
+ "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
923
+ _stream_passthrough: ">= 0.9.4",
924
+ "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
925
+ _stream_readable: ">= 0.9.4",
926
+ "node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
927
+ _stream_writable: ">= 0.9.4",
928
+ "node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
929
+ stream: true,
930
+ "node:stream": [">= 14.18 && < 15", ">= 16"],
931
+ "stream/consumers": ">= 16.7",
932
+ "node:stream/consumers": ">= 16.7",
933
+ "stream/promises": ">= 15",
934
+ "node:stream/promises": ">= 16",
935
+ "stream/web": ">= 16.5",
936
+ "node:stream/web": ">= 16.5",
937
+ string_decoder: true,
938
+ "node:string_decoder": [">= 14.18 && < 15", ">= 16"],
939
+ sys: [">= 0.4 && < 0.7", ">= 0.8"],
940
+ "node:sys": [">= 14.18 && < 15", ">= 16"],
941
+ "test/reporters": ">= 19.9 && < 20.2",
942
+ "node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
943
+ "test/mock_loader": ">= 22.3 && < 22.7",
944
+ "node:test/mock_loader": ">= 22.3 && < 22.7",
945
+ "node:test": [">= 16.17 && < 17", ">= 18"],
946
+ timers: true,
947
+ "node:timers": [">= 14.18 && < 15", ">= 16"],
948
+ "timers/promises": ">= 15",
949
+ "node:timers/promises": ">= 16",
950
+ _tls_common: ">= 0.11.13",
951
+ "node:_tls_common": [">= 14.18 && < 15", ">= 16"],
952
+ _tls_legacy: ">= 0.11.3 && < 10",
953
+ _tls_wrap: ">= 0.11.3",
954
+ "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
955
+ tls: true,
956
+ "node:tls": [">= 14.18 && < 15", ">= 16"],
957
+ trace_events: ">= 10",
958
+ "node:trace_events": [">= 14.18 && < 15", ">= 16"],
959
+ tty: true,
960
+ "node:tty": [">= 14.18 && < 15", ">= 16"],
961
+ url: true,
962
+ "node:url": [">= 14.18 && < 15", ">= 16"],
963
+ util: true,
964
+ "node:util": [">= 14.18 && < 15", ">= 16"],
965
+ "util/types": ">= 15.3",
966
+ "node:util/types": ">= 16",
967
+ "v8/tools/arguments": ">= 10 && < 12",
968
+ "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
969
+ "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
970
+ "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
971
+ "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
972
+ "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
973
+ "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
974
+ v8: ">= 1",
975
+ "node:v8": [">= 14.18 && < 15", ">= 16"],
976
+ vm: true,
977
+ "node:vm": [">= 14.18 && < 15", ">= 16"],
978
+ wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
979
+ "node:wasi": [">= 18.17 && < 19", ">= 20"],
980
+ worker_threads: ">= 11.7",
981
+ "node:worker_threads": [">= 14.18 && < 15", ">= 16"],
982
+ zlib: ">= 0.5",
983
+ "node:zlib": [">= 14.18 && < 15", ">= 16"]
984
+ };
985
+ }
986
+ });
987
+
988
+ // node_modules/resolve/lib/core.js
989
+ var require_core3 = __commonJS({
990
+ "node_modules/resolve/lib/core.js"(exports, module) {
991
+ "use strict";
992
+ var isCoreModule = require_is_core_module();
993
+ var data = require_core2();
994
+ var core = {};
995
+ for (mod in data) {
996
+ if (Object.prototype.hasOwnProperty.call(data, mod)) {
997
+ core[mod] = isCoreModule(mod);
998
+ }
999
+ }
1000
+ var mod;
1001
+ module.exports = core;
1002
+ }
1003
+ });
1004
+
1005
+ // node_modules/resolve/lib/is-core.js
1006
+ var require_is_core = __commonJS({
1007
+ "node_modules/resolve/lib/is-core.js"(exports, module) {
1008
+ var isCoreModule = require_is_core_module();
1009
+ module.exports = function isCore(x) {
1010
+ return isCoreModule(x);
1011
+ };
1012
+ }
1013
+ });
1014
+
1015
+ // node_modules/resolve/lib/sync.js
1016
+ var require_sync = __commonJS({
1017
+ "node_modules/resolve/lib/sync.js"(exports, module) {
1018
+ var isCore = require_is_core_module();
1019
+ var fs = __require("fs");
1020
+ var path = __require("path");
1021
+ var $Error = require_es_errors();
1022
+ var $TypeError = require_type();
1023
+ var getHomedir = require_homedir();
1024
+ var caller = require_caller();
1025
+ var nodeModulesPaths = require_node_modules_paths();
1026
+ var normalizeOptions = require_normalize_options();
1027
+ var realpathFS = process.platform !== "win32" && fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync;
1028
+ var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
1029
+ var windowsDriveRegex = /^\w:[/\\]*$/;
1030
+ var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
1031
+ var homedir = getHomedir();
1032
+ function defaultPaths() {
1033
+ if (!homedir) return [];
1034
+ return [
1035
+ path.join(homedir, ".node_modules"),
1036
+ path.join(homedir, ".node_libraries")
1037
+ ];
1038
+ }
1039
+ var defaultIsFile = function isFile(file) {
1040
+ try {
1041
+ var stat = fs.statSync(file, { throwIfNoEntry: false });
1042
+ } catch (e) {
1043
+ if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
1044
+ throw e;
1045
+ }
1046
+ return !!stat && (stat.isFile() || stat.isFIFO());
1047
+ };
1048
+ var defaultIsDir = function isDirectory(dir) {
1049
+ try {
1050
+ var stat = fs.statSync(dir, { throwIfNoEntry: false });
1051
+ } catch (e) {
1052
+ if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
1053
+ throw e;
1054
+ }
1055
+ return !!stat && stat.isDirectory();
1056
+ };
1057
+ var defaultRealpathSync = function realpathSync(x) {
1058
+ try {
1059
+ return realpathFS(x);
1060
+ } catch (realpathErr) {
1061
+ if (realpathErr.code !== "ENOENT") {
1062
+ throw realpathErr;
1063
+ }
1064
+ }
1065
+ return x;
1066
+ };
1067
+ function maybeRealpathSync(realpathSync, x, opts) {
1068
+ if (opts && opts.preserveSymlinks === false) {
1069
+ return realpathSync(x);
1070
+ }
1071
+ return x;
1072
+ }
1073
+ function defaultReadPackageSync(readFileSync, pkgfile) {
1074
+ var body = readFileSync(pkgfile);
1075
+ try {
1076
+ var pkg = JSON.parse(body);
1077
+ return pkg;
1078
+ } catch (jsonErr) {
1079
+ }
1080
+ }
1081
+ function getPackageCandidates(x, start, opts) {
1082
+ var dirs = nodeModulesPaths(start, opts, x);
1083
+ for (var i = 0; i < dirs.length; i++) {
1084
+ dirs[i] = path.join(dirs[i], x);
1085
+ }
1086
+ return dirs;
1087
+ }
1088
+ module.exports = function resolveSync(x, options) {
1089
+ if (typeof x !== "string") {
1090
+ throw new $TypeError("Path must be a string.");
1091
+ }
1092
+ var opts = normalizeOptions(x, options);
1093
+ var isFile = opts.isFile || defaultIsFile;
1094
+ var readFileSync = opts.readFileSync || fs.readFileSync;
1095
+ var isDirectory = opts.isDirectory || defaultIsDir;
1096
+ var realpathSync = opts.realpathSync || defaultRealpathSync;
1097
+ var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
1098
+ if (opts.readFileSync && opts.readPackageSync) {
1099
+ throw new $TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
1100
+ }
1101
+ var packageIterator = opts.packageIterator;
1102
+ var extensions = opts.extensions || [".js"];
1103
+ var includeCoreModules = opts.includeCoreModules !== false;
1104
+ var basedir = opts.basedir || path.dirname(caller());
1105
+ var parent = opts.filename || basedir;
1106
+ opts.paths = opts.paths || defaultPaths();
1107
+ var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts);
1108
+ if (relativePathRegex.test(x)) {
1109
+ var res = path.resolve(absoluteStart, x);
1110
+ if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
1111
+ var m = loadAsFileSync(res) || loadAsDirectorySync(res);
1112
+ if (m) return maybeRealpathSync(realpathSync, m, opts);
1113
+ } else if (includeCoreModules && isCore(x)) {
1114
+ return x;
1115
+ } else {
1116
+ var n = loadNodeModulesSync(x, absoluteStart);
1117
+ if (n) return maybeRealpathSync(realpathSync, n, opts);
1118
+ }
1119
+ var err = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
1120
+ err.code = "MODULE_NOT_FOUND";
1121
+ throw err;
1122
+ function loadAsFileSync(x2) {
1123
+ var pkg = loadpkg(path.dirname(x2));
1124
+ if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
1125
+ var rfile = path.relative(pkg.dir, x2);
1126
+ var r = opts.pathFilter(pkg.pkg, x2, rfile);
1127
+ if (r) {
1128
+ x2 = path.resolve(pkg.dir, r);
1129
+ }
1130
+ }
1131
+ if (isFile(x2)) {
1132
+ return x2;
1133
+ }
1134
+ for (var i = 0; i < extensions.length; i++) {
1135
+ var file = x2 + extensions[i];
1136
+ if (isFile(file)) {
1137
+ return file;
1138
+ }
1139
+ }
1140
+ }
1141
+ function loadpkg(dir) {
1142
+ if (dir === "" || dir === "/") return;
1143
+ if (process.platform === "win32" && windowsDriveRegex.test(dir)) {
1144
+ return;
1145
+ }
1146
+ if (nodeModulesRegex.test(dir)) return;
1147
+ var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
1148
+ if (!isFile(pkgfile)) {
1149
+ return loadpkg(path.dirname(dir));
1150
+ }
1151
+ var pkg = readPackageSync(readFileSync, pkgfile);
1152
+ if (pkg && opts.packageFilter) {
1153
+ pkg = opts.packageFilter(
1154
+ pkg,
1155
+ /*pkgfile,*/
1156
+ dir
1157
+ );
1158
+ }
1159
+ return { pkg, dir };
1160
+ }
1161
+ function loadAsDirectorySync(x2) {
1162
+ var pkgfile = path.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
1163
+ if (isFile(pkgfile)) {
1164
+ try {
1165
+ var pkg = readPackageSync(readFileSync, pkgfile);
1166
+ } catch (e) {
1167
+ }
1168
+ if (pkg && opts.packageFilter) {
1169
+ pkg = opts.packageFilter(
1170
+ pkg,
1171
+ /*pkgfile,*/
1172
+ x2
1173
+ );
1174
+ }
1175
+ if (pkg && pkg.main) {
1176
+ if (typeof pkg.main !== "string") {
1177
+ var mainError = new $TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
1178
+ mainError.code = "INVALID_PACKAGE_MAIN";
1179
+ throw mainError;
1180
+ }
1181
+ if (pkg.main === "." || pkg.main === "./") {
1182
+ pkg.main = "index";
1183
+ }
1184
+ try {
1185
+ var m2 = loadAsFileSync(path.resolve(x2, pkg.main));
1186
+ if (m2) return m2;
1187
+ var n2 = loadAsDirectorySync(path.resolve(x2, pkg.main));
1188
+ if (n2) return n2;
1189
+ } catch (e) {
1190
+ }
1191
+ }
1192
+ }
1193
+ return loadAsFileSync(path.join(x2, "/index"));
1194
+ }
1195
+ function loadNodeModulesSync(x2, start) {
1196
+ var thunk = function() {
1197
+ return getPackageCandidates(x2, start, opts);
1198
+ };
1199
+ var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
1200
+ for (var i = 0; i < dirs.length; i++) {
1201
+ var dir = dirs[i];
1202
+ if (isDirectory(path.dirname(dir))) {
1203
+ var m2 = loadAsFileSync(dir);
1204
+ if (m2) return m2;
1205
+ var n2 = loadAsDirectorySync(dir);
1206
+ if (n2) return n2;
1207
+ }
1208
+ }
1209
+ }
1210
+ };
1211
+ }
1212
+ });
1213
+
1214
+ // node_modules/resolve/index.js
1215
+ var require_resolve = __commonJS({
1216
+ "node_modules/resolve/index.js"(exports, module) {
1217
+ var async = require_async();
1218
+ async.core = require_core3();
1219
+ async.isCore = require_is_core();
1220
+ async.sync = require_sync();
1221
+ module.exports = async;
1222
+ }
1223
+ });
1224
+ export default require_resolve();