nitro-nightly 3.0.1-20260106-202835-5325b208 → 3.0.1-20260106-205209-b085a480

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 (86) hide show
  1. package/dist/_build/common.mjs +24899 -0
  2. package/dist/_build/rolldown.mjs +6 -9
  3. package/dist/_build/rollup.mjs +6 -8
  4. package/dist/_build/vite.build.mjs +1 -1
  5. package/dist/{_dev.mjs → _chunks/dev.mjs} +4 -7
  6. package/dist/{_nitro.mjs → _chunks/nitro.mjs} +16 -195
  7. package/dist/_chunks/nitro2.mjs +101 -0
  8. package/dist/_chunks/utils.mjs +278 -0
  9. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +32 -4
  10. package/dist/_libs/@jridgewell/gen-mapping.mjs +304 -2
  11. package/dist/_libs/@jridgewell/remapping.mjs +1 -2
  12. package/dist/_libs/@rollup/plugin-commonjs.mjs +75 -31
  13. package/dist/_libs/@rollup/plugin-inject.mjs +1 -3
  14. package/dist/_libs/@rollup/plugin-json.mjs +1 -1
  15. package/dist/_libs/@rollup/plugin-node-resolve.mjs +1111 -7
  16. package/dist/_libs/c12.mjs +597 -41
  17. package/dist/_libs/chokidar.mjs +235 -2
  18. package/dist/_libs/confbox.mjs +454 -1476
  19. package/dist/_libs/estree-walker.mjs +1 -144
  20. package/dist/_libs/giget.mjs +2235 -1377
  21. package/dist/_libs/httpxy.mjs +1 -1
  22. package/dist/_libs/unimport.mjs +1547 -1772
  23. package/dist/_presets.mjs +3 -9
  24. package/dist/builder.mjs +7 -12
  25. package/dist/cli/_chunks/{build2.mjs → build.mjs} +1 -1
  26. package/dist/cli/_chunks/dev.mjs +3 -5
  27. package/dist/cli/_chunks/list.mjs +1 -1
  28. package/dist/cli/_chunks/prepare.mjs +1 -1
  29. package/dist/cli/_chunks/run.mjs +1 -1
  30. package/dist/cli/index.mjs +1 -1
  31. package/dist/vite.mjs +14 -1128
  32. package/package.json +1 -1
  33. package/dist/_build/rollup2.mjs +0 -56
  34. package/dist/_build/shared.mjs +0 -60
  35. package/dist/_build/shared2.mjs +0 -40
  36. package/dist/_build/shared3.mjs +0 -68
  37. package/dist/_libs/@jridgewell/resolve-uri.mjs +0 -166
  38. package/dist/_libs/@jridgewell/sourcemap-codec.mjs +0 -167
  39. package/dist/_libs/@jridgewell/trace-mapping.mjs +0 -141
  40. package/dist/_libs/@rolldown/pluginutils.mjs +0 -31
  41. package/dist/_libs/@rollup/plugin-replace.mjs +0 -104
  42. package/dist/_libs/@rollup/pluginutils.mjs +0 -241
  43. package/dist/_libs/acorn.mjs +0 -5034
  44. package/dist/_libs/commondir.mjs +0 -22
  45. package/dist/_libs/deepmerge.mjs +0 -86
  46. package/dist/_libs/dot-prop.mjs +0 -138
  47. package/dist/_libs/dotenv.mjs +0 -345
  48. package/dist/_libs/duplexer.mjs +0 -71
  49. package/dist/_libs/etag.mjs +0 -80
  50. package/dist/_libs/exsolve.mjs +0 -1007
  51. package/dist/_libs/fdir.mjs +0 -514
  52. package/dist/_libs/function-bind.mjs +0 -63
  53. package/dist/_libs/gzip-size.mjs +0 -21
  54. package/dist/_libs/hasown.mjs +0 -14
  55. package/dist/_libs/is-core-module.mjs +0 -220
  56. package/dist/_libs/is-module.mjs +0 -13
  57. package/dist/_libs/is-reference.mjs +0 -33
  58. package/dist/_libs/js-tokens.mjs +0 -382
  59. package/dist/_libs/knitwork.mjs +0 -124
  60. package/dist/_libs/local-pkg.mjs +0 -125
  61. package/dist/_libs/magic-string.mjs +0 -939
  62. package/dist/_libs/mime.mjs +0 -1391
  63. package/dist/_libs/mlly.mjs +0 -1415
  64. package/dist/_libs/node-fetch-native.mjs +0 -7
  65. package/dist/_libs/nypm.mjs +0 -239
  66. package/dist/_libs/path-parse.mjs +0 -47
  67. package/dist/_libs/pathe.mjs +0 -202
  68. package/dist/_libs/perfect-debounce.mjs +0 -89
  69. package/dist/_libs/picomatch.mjs +0 -1673
  70. package/dist/_libs/pkg-types.mjs +0 -197
  71. package/dist/_libs/pretty-bytes.mjs +0 -116
  72. package/dist/_libs/quansync.mjs +0 -90
  73. package/dist/_libs/rc9.mjs +0 -136
  74. package/dist/_libs/readdirp.mjs +0 -237
  75. package/dist/_libs/resolve.mjs +0 -689
  76. package/dist/_libs/std-env.mjs +0 -158
  77. package/dist/_libs/strip-literal.mjs +0 -51
  78. package/dist/_libs/tinyexec.mjs +0 -627
  79. package/dist/_libs/tinyglobby.mjs +0 -292
  80. package/dist/_libs/unplugin-utils.mjs +0 -61
  81. package/dist/_libs/unplugin.mjs +0 -1225
  82. package/dist/_libs/untyped.mjs +0 -271
  83. package/dist/_libs/unwasm.mjs +0 -5895
  84. package/dist/_libs/webpack-virtual-modules.mjs +0 -272
  85. package/dist/_nitro2.mjs +0 -303
  86. /package/dist/{_rolldown.mjs → _common.mjs} +0 -0
@@ -1,689 +0,0 @@
1
- import { r as __require, t as __commonJSMin } from "../_rolldown.mjs";
2
- import { t as require_path_parse } from "./path-parse.mjs";
3
- import { t as require_is_core_module } from "./is-core-module.mjs";
4
-
5
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/homedir.js
6
- var require_homedir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7
- var os = __require("os");
8
- module.exports = os.homedir || function homedir() {
9
- var home = process.env.HOME;
10
- var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
11
- if (process.platform === "win32") return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
12
- if (process.platform === "darwin") return home || (user ? "/Users/" + user : null);
13
- if (process.platform === "linux") return home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null);
14
- return home || null;
15
- };
16
- }));
17
-
18
- //#endregion
19
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/caller.js
20
- var require_caller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21
- module.exports = function() {
22
- var origPrepareStackTrace = Error.prepareStackTrace;
23
- Error.prepareStackTrace = function(_, stack$1) {
24
- return stack$1;
25
- };
26
- var stack = (/* @__PURE__ */ new Error()).stack;
27
- Error.prepareStackTrace = origPrepareStackTrace;
28
- return stack[2].getFileName();
29
- };
30
- }));
31
-
32
- //#endregion
33
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/node-modules-paths.js
34
- var require_node_modules_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
35
- var path$2 = __require("path");
36
- var parse = path$2.parse || require_path_parse();
37
- var driveLetterRegex = /^([A-Za-z]:)/;
38
- var uncPathRegex = /^\\\\/;
39
- var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
40
- var prefix = "/";
41
- if (driveLetterRegex.test(absoluteStart)) prefix = "";
42
- else if (uncPathRegex.test(absoluteStart)) prefix = "\\\\";
43
- var paths = [absoluteStart];
44
- var parsed = parse(absoluteStart);
45
- while (parsed.dir !== paths[paths.length - 1]) {
46
- paths.push(parsed.dir);
47
- parsed = parse(parsed.dir);
48
- }
49
- return paths.reduce(function(dirs, aPath) {
50
- return dirs.concat(modules.map(function(moduleDir) {
51
- return path$2.resolve(prefix, aPath, moduleDir);
52
- }));
53
- }, []);
54
- };
55
- module.exports = function nodeModulesPaths(start, opts, request) {
56
- var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"];
57
- if (opts && typeof opts.paths === "function") return opts.paths(request, start, function() {
58
- return getNodeModulesDirs(start, modules);
59
- }, opts);
60
- var dirs = getNodeModulesDirs(start, modules);
61
- return opts && opts.paths ? dirs.concat(opts.paths) : dirs;
62
- };
63
- }));
64
-
65
- //#endregion
66
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/normalize-options.js
67
- var require_normalize_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
68
- module.exports = function(x, opts) {
69
- /**
70
- * This file is purposefully a passthrough. It's expected that third-party
71
- * environments will override it at runtime in order to inject special logic
72
- * into `resolve` (by manipulating the options). One such example is the PnP
73
- * code path in Yarn.
74
- */
75
- return opts || {};
76
- };
77
- }));
78
-
79
- //#endregion
80
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/async.js
81
- var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82
- var fs$1 = __require("fs");
83
- var getHomedir = require_homedir();
84
- var path$1 = __require("path");
85
- var caller = require_caller();
86
- var nodeModulesPaths = require_node_modules_paths();
87
- var normalizeOptions = require_normalize_options();
88
- var isCore = require_is_core_module();
89
- var realpathFS = process.platform !== "win32" && fs$1.realpath && typeof fs$1.realpath.native === "function" ? fs$1.realpath.native : fs$1.realpath;
90
- var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
91
- var windowsDriveRegex = /^\w:[/\\]*$/;
92
- var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
93
- var homedir = getHomedir();
94
- var defaultPaths = function() {
95
- return [path$1.join(homedir, ".node_modules"), path$1.join(homedir, ".node_libraries")];
96
- };
97
- var defaultIsFile = function isFile(file, cb) {
98
- fs$1.stat(file, function(err, stat) {
99
- if (!err) return cb(null, stat.isFile() || stat.isFIFO());
100
- if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
101
- return cb(err);
102
- });
103
- };
104
- var defaultIsDir = function isDirectory(dir, cb) {
105
- fs$1.stat(dir, function(err, stat) {
106
- if (!err) return cb(null, stat.isDirectory());
107
- if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
108
- return cb(err);
109
- });
110
- };
111
- var defaultRealpath = function realpath(x, cb) {
112
- realpathFS(x, function(realpathErr, realPath) {
113
- if (realpathErr && realpathErr.code !== "ENOENT") cb(realpathErr);
114
- else cb(null, realpathErr ? x : realPath);
115
- });
116
- };
117
- var maybeRealpath = function maybeRealpath(realpath, x, opts, cb) {
118
- if (opts && opts.preserveSymlinks === false) realpath(x, cb);
119
- else cb(null, x);
120
- };
121
- var defaultReadPackage = function defaultReadPackage(readFile, pkgfile, cb) {
122
- readFile(pkgfile, function(readFileErr, body) {
123
- if (readFileErr) cb(readFileErr);
124
- else try {
125
- cb(null, JSON.parse(body));
126
- } catch (jsonErr) {
127
- cb(null);
128
- }
129
- });
130
- };
131
- var getPackageCandidates = function getPackageCandidates(x, start, opts) {
132
- var dirs = nodeModulesPaths(start, opts, x);
133
- for (var i = 0; i < dirs.length; i++) dirs[i] = path$1.join(dirs[i], x);
134
- return dirs;
135
- };
136
- module.exports = function resolve(x, options, callback) {
137
- var cb = callback;
138
- var opts = options;
139
- if (typeof options === "function") {
140
- cb = opts;
141
- opts = {};
142
- }
143
- if (typeof x !== "string") {
144
- var err = /* @__PURE__ */ new TypeError("Path must be a string.");
145
- return process.nextTick(function() {
146
- cb(err);
147
- });
148
- }
149
- opts = normalizeOptions(x, opts);
150
- var isFile = opts.isFile || defaultIsFile;
151
- var isDirectory = opts.isDirectory || defaultIsDir;
152
- var readFile = opts.readFile || fs$1.readFile;
153
- var realpath = opts.realpath || defaultRealpath;
154
- var readPackage = opts.readPackage || defaultReadPackage;
155
- if (opts.readFile && opts.readPackage) {
156
- var conflictErr = /* @__PURE__ */ new TypeError("`readFile` and `readPackage` are mutually exclusive.");
157
- return process.nextTick(function() {
158
- cb(conflictErr);
159
- });
160
- }
161
- var packageIterator = opts.packageIterator;
162
- var extensions = opts.extensions || [".js"];
163
- var includeCoreModules = opts.includeCoreModules !== false;
164
- var basedir = opts.basedir || path$1.dirname(caller());
165
- var parent = opts.filename || basedir;
166
- opts.paths = opts.paths || defaultPaths();
167
- maybeRealpath(realpath, path$1.resolve(basedir), opts, function(err$1, realStart) {
168
- if (err$1) cb(err$1);
169
- else init(realStart);
170
- });
171
- var res;
172
- function init(basedir$1) {
173
- if (relativePathRegex.test(x)) {
174
- res = path$1.resolve(basedir$1, x);
175
- if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
176
- if (x.slice(-1) === "/" && res === basedir$1) loadAsDirectory(res, opts.package, onfile);
177
- else loadAsFile(res, opts.package, onfile);
178
- } else if (includeCoreModules && isCore(x)) return cb(null, x);
179
- else loadNodeModules(x, basedir$1, function(err$1, n, pkg) {
180
- if (err$1) cb(err$1);
181
- else if (n) return maybeRealpath(realpath, n, opts, function(err$2, realN) {
182
- if (err$2) cb(err$2);
183
- else cb(null, realN, pkg);
184
- });
185
- else {
186
- var moduleError = /* @__PURE__ */ new Error("Cannot find module '" + x + "' from '" + parent + "'");
187
- moduleError.code = "MODULE_NOT_FOUND";
188
- cb(moduleError);
189
- }
190
- });
191
- }
192
- function onfile(err$1, m, pkg) {
193
- if (err$1) cb(err$1);
194
- else if (m) cb(null, m, pkg);
195
- else loadAsDirectory(res, function(err$2, d, pkg$1) {
196
- if (err$2) cb(err$2);
197
- else if (d) maybeRealpath(realpath, d, opts, function(err$3, realD) {
198
- if (err$3) cb(err$3);
199
- else cb(null, realD, pkg$1);
200
- });
201
- else {
202
- var moduleError = /* @__PURE__ */ new Error("Cannot find module '" + x + "' from '" + parent + "'");
203
- moduleError.code = "MODULE_NOT_FOUND";
204
- cb(moduleError);
205
- }
206
- });
207
- }
208
- function loadAsFile(x$1, thePackage, callback$1) {
209
- var loadAsFilePackage = thePackage;
210
- var cb$1 = callback$1;
211
- if (typeof loadAsFilePackage === "function") {
212
- cb$1 = loadAsFilePackage;
213
- loadAsFilePackage = void 0;
214
- }
215
- load([""].concat(extensions), x$1, loadAsFilePackage);
216
- function load(exts, x$2, loadPackage) {
217
- if (exts.length === 0) return cb$1(null, void 0, loadPackage);
218
- var file = x$2 + exts[0];
219
- var pkg = loadPackage;
220
- if (pkg) onpkg(null, pkg);
221
- else loadpkg(path$1.dirname(file), onpkg);
222
- function onpkg(err$1, pkg_, dir) {
223
- pkg = pkg_;
224
- if (err$1) return cb$1(err$1);
225
- if (dir && pkg && opts.pathFilter) {
226
- var rfile = path$1.relative(dir, file);
227
- var rel = rfile.slice(0, rfile.length - exts[0].length);
228
- var r = opts.pathFilter(pkg, x$2, rel);
229
- if (r) return load([""].concat(extensions.slice()), path$1.resolve(dir, r), pkg);
230
- }
231
- isFile(file, onex);
232
- }
233
- function onex(err$1, ex) {
234
- if (err$1) return cb$1(err$1);
235
- if (ex) return cb$1(null, file, pkg);
236
- load(exts.slice(1), x$2, pkg);
237
- }
238
- }
239
- }
240
- function loadpkg(dir, cb$1) {
241
- if (dir === "" || dir === "/") return cb$1(null);
242
- if (process.platform === "win32" && windowsDriveRegex.test(dir)) return cb$1(null);
243
- if (nodeModulesRegex.test(dir)) return cb$1(null);
244
- maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
245
- if (unwrapErr) return loadpkg(path$1.dirname(dir), cb$1);
246
- var pkgfile = path$1.join(pkgdir, "package.json");
247
- isFile(pkgfile, function(err$1, ex) {
248
- if (!ex) return loadpkg(path$1.dirname(dir), cb$1);
249
- readPackage(readFile, pkgfile, function(err$2, pkgParam) {
250
- if (err$2) cb$1(err$2);
251
- var pkg = pkgParam;
252
- if (pkg && opts.packageFilter) pkg = opts.packageFilter(pkg, pkgfile);
253
- cb$1(null, pkg, dir);
254
- });
255
- });
256
- });
257
- }
258
- function loadAsDirectory(x$1, loadAsDirectoryPackage, callback$1) {
259
- var cb$1 = callback$1;
260
- var fpkg = loadAsDirectoryPackage;
261
- if (typeof fpkg === "function") {
262
- cb$1 = fpkg;
263
- fpkg = opts.package;
264
- }
265
- maybeRealpath(realpath, x$1, opts, function(unwrapErr, pkgdir) {
266
- if (unwrapErr) return cb$1(unwrapErr);
267
- var pkgfile = path$1.join(pkgdir, "package.json");
268
- isFile(pkgfile, function(err$1, ex) {
269
- if (err$1) return cb$1(err$1);
270
- if (!ex) return loadAsFile(path$1.join(x$1, "index"), fpkg, cb$1);
271
- readPackage(readFile, pkgfile, function(err$2, pkgParam) {
272
- if (err$2) return cb$1(err$2);
273
- var pkg = pkgParam;
274
- if (pkg && opts.packageFilter) pkg = opts.packageFilter(pkg, pkgfile);
275
- if (pkg && pkg.main) {
276
- if (typeof pkg.main !== "string") {
277
- var mainError = /* @__PURE__ */ new TypeError("package “" + pkg.name + "” `main` must be a string");
278
- mainError.code = "INVALID_PACKAGE_MAIN";
279
- return cb$1(mainError);
280
- }
281
- if (pkg.main === "." || pkg.main === "./") pkg.main = "index";
282
- loadAsFile(path$1.resolve(x$1, pkg.main), pkg, function(err$3, m, pkg$1) {
283
- if (err$3) return cb$1(err$3);
284
- if (m) return cb$1(null, m, pkg$1);
285
- if (!pkg$1) return loadAsFile(path$1.join(x$1, "index"), pkg$1, cb$1);
286
- loadAsDirectory(path$1.resolve(x$1, pkg$1.main), pkg$1, function(err$4, n, pkg$2) {
287
- if (err$4) return cb$1(err$4);
288
- if (n) return cb$1(null, n, pkg$2);
289
- loadAsFile(path$1.join(x$1, "index"), pkg$2, cb$1);
290
- });
291
- });
292
- return;
293
- }
294
- loadAsFile(path$1.join(x$1, "/index"), pkg, cb$1);
295
- });
296
- });
297
- });
298
- }
299
- function processDirs(cb$1, dirs) {
300
- if (dirs.length === 0) return cb$1(null, void 0);
301
- var dir = dirs[0];
302
- isDirectory(path$1.dirname(dir), isdir);
303
- function isdir(err$1, isdir$1) {
304
- if (err$1) return cb$1(err$1);
305
- if (!isdir$1) return processDirs(cb$1, dirs.slice(1));
306
- loadAsFile(dir, opts.package, onfile$1);
307
- }
308
- function onfile$1(err$1, m, pkg) {
309
- if (err$1) return cb$1(err$1);
310
- if (m) return cb$1(null, m, pkg);
311
- loadAsDirectory(dir, opts.package, ondir);
312
- }
313
- function ondir(err$1, n, pkg) {
314
- if (err$1) return cb$1(err$1);
315
- if (n) return cb$1(null, n, pkg);
316
- processDirs(cb$1, dirs.slice(1));
317
- }
318
- }
319
- function loadNodeModules(x$1, start, cb$1) {
320
- var thunk = function() {
321
- return getPackageCandidates(x$1, start, opts);
322
- };
323
- processDirs(cb$1, packageIterator ? packageIterator(x$1, start, thunk, opts) : thunk());
324
- }
325
- };
326
- }));
327
-
328
- //#endregion
329
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/core.json
330
- var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
331
- module.exports = {
332
- "assert": true,
333
- "node:assert": [">= 14.18 && < 15", ">= 16"],
334
- "assert/strict": ">= 15",
335
- "node:assert/strict": ">= 16",
336
- "async_hooks": ">= 8",
337
- "node:async_hooks": [">= 14.18 && < 15", ">= 16"],
338
- "buffer_ieee754": ">= 0.5 && < 0.9.7",
339
- "buffer": true,
340
- "node:buffer": [">= 14.18 && < 15", ">= 16"],
341
- "child_process": true,
342
- "node:child_process": [">= 14.18 && < 15", ">= 16"],
343
- "cluster": ">= 0.5",
344
- "node:cluster": [">= 14.18 && < 15", ">= 16"],
345
- "console": true,
346
- "node:console": [">= 14.18 && < 15", ">= 16"],
347
- "constants": true,
348
- "node:constants": [">= 14.18 && < 15", ">= 16"],
349
- "crypto": true,
350
- "node:crypto": [">= 14.18 && < 15", ">= 16"],
351
- "_debug_agent": ">= 1 && < 8",
352
- "_debugger": "< 8",
353
- "dgram": true,
354
- "node:dgram": [">= 14.18 && < 15", ">= 16"],
355
- "diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"],
356
- "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
357
- "dns": true,
358
- "node:dns": [">= 14.18 && < 15", ">= 16"],
359
- "dns/promises": ">= 15",
360
- "node:dns/promises": ">= 16",
361
- "domain": ">= 0.7.12",
362
- "node:domain": [">= 14.18 && < 15", ">= 16"],
363
- "events": true,
364
- "node:events": [">= 14.18 && < 15", ">= 16"],
365
- "freelist": "< 6",
366
- "fs": true,
367
- "node:fs": [">= 14.18 && < 15", ">= 16"],
368
- "fs/promises": [">= 10 && < 10.1", ">= 14"],
369
- "node:fs/promises": [">= 14.18 && < 15", ">= 16"],
370
- "_http_agent": ">= 0.11.1",
371
- "node:_http_agent": [">= 14.18 && < 15", ">= 16"],
372
- "_http_client": ">= 0.11.1",
373
- "node:_http_client": [">= 14.18 && < 15", ">= 16"],
374
- "_http_common": ">= 0.11.1",
375
- "node:_http_common": [">= 14.18 && < 15", ">= 16"],
376
- "_http_incoming": ">= 0.11.1",
377
- "node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
378
- "_http_outgoing": ">= 0.11.1",
379
- "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
380
- "_http_server": ">= 0.11.1",
381
- "node:_http_server": [">= 14.18 && < 15", ">= 16"],
382
- "http": true,
383
- "node:http": [">= 14.18 && < 15", ">= 16"],
384
- "http2": ">= 8.8",
385
- "node:http2": [">= 14.18 && < 15", ">= 16"],
386
- "https": true,
387
- "node:https": [">= 14.18 && < 15", ">= 16"],
388
- "inspector": ">= 8",
389
- "node:inspector": [">= 14.18 && < 15", ">= 16"],
390
- "inspector/promises": [">= 19"],
391
- "node:inspector/promises": [">= 19"],
392
- "_linklist": "< 8",
393
- "module": true,
394
- "node:module": [">= 14.18 && < 15", ">= 16"],
395
- "net": true,
396
- "node:net": [">= 14.18 && < 15", ">= 16"],
397
- "node-inspect/lib/_inspect": ">= 7.6 && < 12",
398
- "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
399
- "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
400
- "os": true,
401
- "node:os": [">= 14.18 && < 15", ">= 16"],
402
- "path": true,
403
- "node:path": [">= 14.18 && < 15", ">= 16"],
404
- "path/posix": ">= 15.3",
405
- "node:path/posix": ">= 16",
406
- "path/win32": ">= 15.3",
407
- "node:path/win32": ">= 16",
408
- "perf_hooks": ">= 8.5",
409
- "node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
410
- "process": ">= 1",
411
- "node:process": [">= 14.18 && < 15", ">= 16"],
412
- "punycode": ">= 0.5",
413
- "node:punycode": [">= 14.18 && < 15", ">= 16"],
414
- "querystring": true,
415
- "node:querystring": [">= 14.18 && < 15", ">= 16"],
416
- "readline": true,
417
- "node:readline": [">= 14.18 && < 15", ">= 16"],
418
- "readline/promises": ">= 17",
419
- "node:readline/promises": ">= 17",
420
- "repl": true,
421
- "node:repl": [">= 14.18 && < 15", ">= 16"],
422
- "node:sea": [">= 20.12 && < 21", ">= 21.7"],
423
- "smalloc": ">= 0.11.5 && < 3",
424
- "node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
425
- "_stream_duplex": ">= 0.9.4",
426
- "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
427
- "_stream_transform": ">= 0.9.4",
428
- "node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
429
- "_stream_wrap": ">= 1.4.1",
430
- "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
431
- "_stream_passthrough": ">= 0.9.4",
432
- "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
433
- "_stream_readable": ">= 0.9.4",
434
- "node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
435
- "_stream_writable": ">= 0.9.4",
436
- "node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
437
- "stream": true,
438
- "node:stream": [">= 14.18 && < 15", ">= 16"],
439
- "stream/consumers": ">= 16.7",
440
- "node:stream/consumers": ">= 16.7",
441
- "stream/promises": ">= 15",
442
- "node:stream/promises": ">= 16",
443
- "stream/web": ">= 16.5",
444
- "node:stream/web": ">= 16.5",
445
- "string_decoder": true,
446
- "node:string_decoder": [">= 14.18 && < 15", ">= 16"],
447
- "sys": [">= 0.4 && < 0.7", ">= 0.8"],
448
- "node:sys": [">= 14.18 && < 15", ">= 16"],
449
- "test/reporters": ">= 19.9 && < 20.2",
450
- "node:test/reporters": [
451
- ">= 18.17 && < 19",
452
- ">= 19.9",
453
- ">= 20"
454
- ],
455
- "test/mock_loader": ">= 22.3 && < 22.7",
456
- "node:test/mock_loader": ">= 22.3 && < 22.7",
457
- "node:test": [">= 16.17 && < 17", ">= 18"],
458
- "timers": true,
459
- "node:timers": [">= 14.18 && < 15", ">= 16"],
460
- "timers/promises": ">= 15",
461
- "node:timers/promises": ">= 16",
462
- "_tls_common": ">= 0.11.13",
463
- "node:_tls_common": [">= 14.18 && < 15", ">= 16"],
464
- "_tls_legacy": ">= 0.11.3 && < 10",
465
- "_tls_wrap": ">= 0.11.3",
466
- "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
467
- "tls": true,
468
- "node:tls": [">= 14.18 && < 15", ">= 16"],
469
- "trace_events": ">= 10",
470
- "node:trace_events": [">= 14.18 && < 15", ">= 16"],
471
- "tty": true,
472
- "node:tty": [">= 14.18 && < 15", ">= 16"],
473
- "url": true,
474
- "node:url": [">= 14.18 && < 15", ">= 16"],
475
- "util": true,
476
- "node:util": [">= 14.18 && < 15", ">= 16"],
477
- "util/types": ">= 15.3",
478
- "node:util/types": ">= 16",
479
- "v8/tools/arguments": ">= 10 && < 12",
480
- "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
481
- "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
482
- "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
483
- "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
484
- "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
485
- "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
486
- "v8": ">= 1",
487
- "node:v8": [">= 14.18 && < 15", ">= 16"],
488
- "vm": true,
489
- "node:vm": [">= 14.18 && < 15", ">= 16"],
490
- "wasi": [
491
- ">= 13.4 && < 13.5",
492
- ">= 18.17 && < 19",
493
- ">= 20"
494
- ],
495
- "node:wasi": [">= 18.17 && < 19", ">= 20"],
496
- "worker_threads": ">= 11.7",
497
- "node:worker_threads": [">= 14.18 && < 15", ">= 16"],
498
- "zlib": ">= 0.5",
499
- "node:zlib": [">= 14.18 && < 15", ">= 16"]
500
- };
501
- }));
502
-
503
- //#endregion
504
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/core.js
505
- var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
506
- var isCoreModule = require_is_core_module();
507
- var data = require_core$1();
508
- var core = {};
509
- for (var mod in data) if (Object.prototype.hasOwnProperty.call(data, mod)) core[mod] = isCoreModule(mod);
510
- module.exports = core;
511
- }));
512
-
513
- //#endregion
514
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/is-core.js
515
- var require_is_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
516
- var isCoreModule = require_is_core_module();
517
- module.exports = function isCore(x) {
518
- return isCoreModule(x);
519
- };
520
- }));
521
-
522
- //#endregion
523
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/sync.js
524
- var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
525
- var isCore = require_is_core_module();
526
- var fs = __require("fs");
527
- var path = __require("path");
528
- var getHomedir = require_homedir();
529
- var caller = require_caller();
530
- var nodeModulesPaths = require_node_modules_paths();
531
- var normalizeOptions = require_normalize_options();
532
- var realpathFS = process.platform !== "win32" && fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync;
533
- var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
534
- var windowsDriveRegex = /^\w:[/\\]*$/;
535
- var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
536
- var homedir = getHomedir();
537
- var defaultPaths = function() {
538
- return [path.join(homedir, ".node_modules"), path.join(homedir, ".node_libraries")];
539
- };
540
- var defaultIsFile = function isFile(file) {
541
- try {
542
- var stat = fs.statSync(file, { throwIfNoEntry: false });
543
- } catch (e) {
544
- if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
545
- throw e;
546
- }
547
- return !!stat && (stat.isFile() || stat.isFIFO());
548
- };
549
- var defaultIsDir = function isDirectory(dir) {
550
- try {
551
- var stat = fs.statSync(dir, { throwIfNoEntry: false });
552
- } catch (e) {
553
- if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
554
- throw e;
555
- }
556
- return !!stat && stat.isDirectory();
557
- };
558
- var defaultRealpathSync = function realpathSync(x) {
559
- try {
560
- return realpathFS(x);
561
- } catch (realpathErr) {
562
- if (realpathErr.code !== "ENOENT") throw realpathErr;
563
- }
564
- return x;
565
- };
566
- var maybeRealpathSync = function maybeRealpathSync(realpathSync, x, opts) {
567
- if (opts && opts.preserveSymlinks === false) return realpathSync(x);
568
- return x;
569
- };
570
- var defaultReadPackageSync = function defaultReadPackageSync(readFileSync, pkgfile) {
571
- var body = readFileSync(pkgfile);
572
- try {
573
- return JSON.parse(body);
574
- } catch (jsonErr) {}
575
- };
576
- var getPackageCandidates = function getPackageCandidates(x, start, opts) {
577
- var dirs = nodeModulesPaths(start, opts, x);
578
- for (var i = 0; i < dirs.length; i++) dirs[i] = path.join(dirs[i], x);
579
- return dirs;
580
- };
581
- module.exports = function resolveSync(x, options) {
582
- if (typeof x !== "string") throw new TypeError("Path must be a string.");
583
- var opts = normalizeOptions(x, options);
584
- var isFile = opts.isFile || defaultIsFile;
585
- var readFileSync = opts.readFileSync || fs.readFileSync;
586
- var isDirectory = opts.isDirectory || defaultIsDir;
587
- var realpathSync = opts.realpathSync || defaultRealpathSync;
588
- var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
589
- if (opts.readFileSync && opts.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
590
- var packageIterator = opts.packageIterator;
591
- var extensions = opts.extensions || [".js"];
592
- var includeCoreModules = opts.includeCoreModules !== false;
593
- var basedir = opts.basedir || path.dirname(caller());
594
- var parent = opts.filename || basedir;
595
- opts.paths = opts.paths || defaultPaths();
596
- var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts);
597
- if (relativePathRegex.test(x)) {
598
- var res = path.resolve(absoluteStart, x);
599
- if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
600
- var m = loadAsFileSync(res) || loadAsDirectorySync(res);
601
- if (m) return maybeRealpathSync(realpathSync, m, opts);
602
- } else if (includeCoreModules && isCore(x)) return x;
603
- else {
604
- var n = loadNodeModulesSync(x, absoluteStart);
605
- if (n) return maybeRealpathSync(realpathSync, n, opts);
606
- }
607
- var err = /* @__PURE__ */ new Error("Cannot find module '" + x + "' from '" + parent + "'");
608
- err.code = "MODULE_NOT_FOUND";
609
- throw err;
610
- function loadAsFileSync(x$1) {
611
- var pkg = loadpkg(path.dirname(x$1));
612
- if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
613
- var rfile = path.relative(pkg.dir, x$1);
614
- var r = opts.pathFilter(pkg.pkg, x$1, rfile);
615
- if (r) x$1 = path.resolve(pkg.dir, r);
616
- }
617
- if (isFile(x$1)) return x$1;
618
- for (var i = 0; i < extensions.length; i++) {
619
- var file = x$1 + extensions[i];
620
- if (isFile(file)) return file;
621
- }
622
- }
623
- function loadpkg(dir) {
624
- if (dir === "" || dir === "/") return;
625
- if (process.platform === "win32" && windowsDriveRegex.test(dir)) return;
626
- if (nodeModulesRegex.test(dir)) return;
627
- var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
628
- if (!isFile(pkgfile)) return loadpkg(path.dirname(dir));
629
- var pkg = readPackageSync(readFileSync, pkgfile);
630
- if (pkg && opts.packageFilter) pkg = opts.packageFilter(pkg, dir);
631
- return {
632
- pkg,
633
- dir
634
- };
635
- }
636
- function loadAsDirectorySync(x$1) {
637
- var pkgfile = path.join(maybeRealpathSync(realpathSync, x$1, opts), "/package.json");
638
- if (isFile(pkgfile)) {
639
- try {
640
- var pkg = readPackageSync(readFileSync, pkgfile);
641
- } catch (e) {}
642
- if (pkg && opts.packageFilter) pkg = opts.packageFilter(pkg, x$1);
643
- if (pkg && pkg.main) {
644
- if (typeof pkg.main !== "string") {
645
- var mainError = /* @__PURE__ */ new TypeError("package “" + pkg.name + "” `main` must be a string");
646
- mainError.code = "INVALID_PACKAGE_MAIN";
647
- throw mainError;
648
- }
649
- if (pkg.main === "." || pkg.main === "./") pkg.main = "index";
650
- try {
651
- var m$1 = loadAsFileSync(path.resolve(x$1, pkg.main));
652
- if (m$1) return m$1;
653
- var n$1 = loadAsDirectorySync(path.resolve(x$1, pkg.main));
654
- if (n$1) return n$1;
655
- } catch (e) {}
656
- }
657
- }
658
- return loadAsFileSync(path.join(x$1, "/index"));
659
- }
660
- function loadNodeModulesSync(x$1, start) {
661
- var thunk = function() {
662
- return getPackageCandidates(x$1, start, opts);
663
- };
664
- var dirs = packageIterator ? packageIterator(x$1, start, thunk, opts) : thunk();
665
- for (var i = 0; i < dirs.length; i++) {
666
- var dir = dirs[i];
667
- if (isDirectory(path.dirname(dir))) {
668
- var m$1 = loadAsFileSync(dir);
669
- if (m$1) return m$1;
670
- var n$1 = loadAsDirectorySync(dir);
671
- if (n$1) return n$1;
672
- }
673
- }
674
- }
675
- };
676
- }));
677
-
678
- //#endregion
679
- //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/index.js
680
- var require_resolve = /* @__PURE__ */ __commonJSMin(((exports, module) => {
681
- var async = require_async();
682
- async.core = require_core();
683
- async.isCore = require_is_core();
684
- async.sync = require_sync();
685
- module.exports = async;
686
- }));
687
-
688
- //#endregion
689
- export { require_resolve as t };