@storm-software/git-tools 2.58.3 → 2.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/bin/git.js +983 -1838
- package/bin/post-checkout.js +926 -1781
- package/bin/post-commit.js +926 -1781
- package/bin/post-merge.js +926 -1781
- package/bin/pre-commit.js +926 -1781
- package/bin/pre-install.js +926 -1781
- package/bin/pre-push.js +926 -1781
- package/bin/prepare.js +926 -1781
- package/bin/version-warning.js +926 -1781
- package/package.json +3 -3
- package/src/cli/index.js +977 -1832
- package/src/index.js +977 -1832
- /package/commitlint/{commitlint.config.cjs → config.cjs} +0 -0
- /package/lefthook/{lefthook.yml → config.yml} +0 -0
package/bin/pre-commit.js
CHANGED
|
@@ -231,363 +231,11 @@ var init_dist = __esm({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
|
|
234
|
-
// node_modules/.pnpm/
|
|
235
|
-
var require_package = __commonJS({
|
|
236
|
-
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports, module) {
|
|
237
|
-
module.exports = {
|
|
238
|
-
name: "dotenv",
|
|
239
|
-
version: "16.4.5",
|
|
240
|
-
description: "Loads environment variables from .env file",
|
|
241
|
-
main: "lib/main.js",
|
|
242
|
-
types: "lib/main.d.ts",
|
|
243
|
-
exports: {
|
|
244
|
-
".": {
|
|
245
|
-
types: "./lib/main.d.ts",
|
|
246
|
-
require: "./lib/main.js",
|
|
247
|
-
default: "./lib/main.js"
|
|
248
|
-
},
|
|
249
|
-
"./config": "./config.js",
|
|
250
|
-
"./config.js": "./config.js",
|
|
251
|
-
"./lib/env-options": "./lib/env-options.js",
|
|
252
|
-
"./lib/env-options.js": "./lib/env-options.js",
|
|
253
|
-
"./lib/cli-options": "./lib/cli-options.js",
|
|
254
|
-
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
255
|
-
"./package.json": "./package.json"
|
|
256
|
-
},
|
|
257
|
-
scripts: {
|
|
258
|
-
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
259
|
-
lint: "standard",
|
|
260
|
-
"lint-readme": "standard-markdown",
|
|
261
|
-
pretest: "npm run lint && npm run dts-check",
|
|
262
|
-
test: "tap tests/*.js --100 -Rspec",
|
|
263
|
-
"test:coverage": "tap --coverage-report=lcov",
|
|
264
|
-
prerelease: "npm test",
|
|
265
|
-
release: "standard-version"
|
|
266
|
-
},
|
|
267
|
-
repository: {
|
|
268
|
-
type: "git",
|
|
269
|
-
url: "git://github.com/motdotla/dotenv.git"
|
|
270
|
-
},
|
|
271
|
-
funding: "https://dotenvx.com",
|
|
272
|
-
keywords: [
|
|
273
|
-
"dotenv",
|
|
274
|
-
"env",
|
|
275
|
-
".env",
|
|
276
|
-
"environment",
|
|
277
|
-
"variables",
|
|
278
|
-
"config",
|
|
279
|
-
"settings"
|
|
280
|
-
],
|
|
281
|
-
readmeFilename: "README.md",
|
|
282
|
-
license: "BSD-2-Clause",
|
|
283
|
-
devDependencies: {
|
|
284
|
-
"@definitelytyped/dtslint": "^0.0.133",
|
|
285
|
-
"@types/node": "^18.11.3",
|
|
286
|
-
decache: "^4.6.1",
|
|
287
|
-
sinon: "^14.0.1",
|
|
288
|
-
standard: "^17.0.0",
|
|
289
|
-
"standard-markdown": "^7.1.0",
|
|
290
|
-
"standard-version": "^9.5.0",
|
|
291
|
-
tap: "^16.3.0",
|
|
292
|
-
tar: "^6.1.11",
|
|
293
|
-
typescript: "^4.8.4"
|
|
294
|
-
},
|
|
295
|
-
engines: {
|
|
296
|
-
node: ">=12"
|
|
297
|
-
},
|
|
298
|
-
browser: {
|
|
299
|
-
fs: false
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
|
|
305
|
-
// node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
|
|
306
|
-
var require_main = __commonJS({
|
|
307
|
-
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports, module) {
|
|
308
|
-
var fs2 = __require("fs");
|
|
309
|
-
var path5 = __require("path");
|
|
310
|
-
var os2 = __require("os");
|
|
311
|
-
var crypto = __require("crypto");
|
|
312
|
-
var packageJson = require_package();
|
|
313
|
-
var version2 = packageJson.version;
|
|
314
|
-
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
315
|
-
function parse6(src) {
|
|
316
|
-
const obj = {};
|
|
317
|
-
let lines = src.toString();
|
|
318
|
-
lines = lines.replace(/\r\n?/mg, "\n");
|
|
319
|
-
let match;
|
|
320
|
-
while ((match = LINE.exec(lines)) != null) {
|
|
321
|
-
const key = match[1];
|
|
322
|
-
let value2 = match[2] || "";
|
|
323
|
-
value2 = value2.trim();
|
|
324
|
-
const maybeQuote = value2[0];
|
|
325
|
-
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
326
|
-
if (maybeQuote === '"') {
|
|
327
|
-
value2 = value2.replace(/\\n/g, "\n");
|
|
328
|
-
value2 = value2.replace(/\\r/g, "\r");
|
|
329
|
-
}
|
|
330
|
-
obj[key] = value2;
|
|
331
|
-
}
|
|
332
|
-
return obj;
|
|
333
|
-
}
|
|
334
|
-
function _parseVault(options) {
|
|
335
|
-
const vaultPath = _vaultPath(options);
|
|
336
|
-
const result = DotenvModule.configDotenv({ path: vaultPath });
|
|
337
|
-
if (!result.parsed) {
|
|
338
|
-
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
339
|
-
err.code = "MISSING_DATA";
|
|
340
|
-
throw err;
|
|
341
|
-
}
|
|
342
|
-
const keys = _dotenvKey(options).split(",");
|
|
343
|
-
const length = keys.length;
|
|
344
|
-
let decrypted;
|
|
345
|
-
for (let i2 = 0; i2 < length; i2++) {
|
|
346
|
-
try {
|
|
347
|
-
const key = keys[i2].trim();
|
|
348
|
-
const attrs = _instructions(result, key);
|
|
349
|
-
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
350
|
-
break;
|
|
351
|
-
} catch (error) {
|
|
352
|
-
if (i2 + 1 >= length) {
|
|
353
|
-
throw error;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
return DotenvModule.parse(decrypted);
|
|
358
|
-
}
|
|
359
|
-
function _log(message) {
|
|
360
|
-
console.log(`[dotenv@${version2}][INFO] ${message}`);
|
|
361
|
-
}
|
|
362
|
-
function _warn(message) {
|
|
363
|
-
console.log(`[dotenv@${version2}][WARN] ${message}`);
|
|
364
|
-
}
|
|
365
|
-
function _debug(message) {
|
|
366
|
-
console.log(`[dotenv@${version2}][DEBUG] ${message}`);
|
|
367
|
-
}
|
|
368
|
-
function _dotenvKey(options) {
|
|
369
|
-
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
370
|
-
return options.DOTENV_KEY;
|
|
371
|
-
}
|
|
372
|
-
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
373
|
-
return process.env.DOTENV_KEY;
|
|
374
|
-
}
|
|
375
|
-
return "";
|
|
376
|
-
}
|
|
377
|
-
function _instructions(result, dotenvKey) {
|
|
378
|
-
let uri;
|
|
379
|
-
try {
|
|
380
|
-
uri = new URL(dotenvKey);
|
|
381
|
-
} catch (error) {
|
|
382
|
-
if (error.code === "ERR_INVALID_URL") {
|
|
383
|
-
const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
384
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
385
|
-
throw err;
|
|
386
|
-
}
|
|
387
|
-
throw error;
|
|
388
|
-
}
|
|
389
|
-
const key = uri.password;
|
|
390
|
-
if (!key) {
|
|
391
|
-
const err = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
392
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
393
|
-
throw err;
|
|
394
|
-
}
|
|
395
|
-
const environment = uri.searchParams.get("environment");
|
|
396
|
-
if (!environment) {
|
|
397
|
-
const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
398
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
399
|
-
throw err;
|
|
400
|
-
}
|
|
401
|
-
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
402
|
-
const ciphertext = result.parsed[environmentKey];
|
|
403
|
-
if (!ciphertext) {
|
|
404
|
-
const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
405
|
-
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
406
|
-
throw err;
|
|
407
|
-
}
|
|
408
|
-
return { ciphertext, key };
|
|
409
|
-
}
|
|
410
|
-
function _vaultPath(options) {
|
|
411
|
-
let possibleVaultPath = null;
|
|
412
|
-
if (options && options.path && options.path.length > 0) {
|
|
413
|
-
if (Array.isArray(options.path)) {
|
|
414
|
-
for (const filepath of options.path) {
|
|
415
|
-
if (fs2.existsSync(filepath)) {
|
|
416
|
-
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
} else {
|
|
420
|
-
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
421
|
-
}
|
|
422
|
-
} else {
|
|
423
|
-
possibleVaultPath = path5.resolve(process.cwd(), ".env.vault");
|
|
424
|
-
}
|
|
425
|
-
if (fs2.existsSync(possibleVaultPath)) {
|
|
426
|
-
return possibleVaultPath;
|
|
427
|
-
}
|
|
428
|
-
return null;
|
|
429
|
-
}
|
|
430
|
-
function _resolveHome(envPath) {
|
|
431
|
-
return envPath[0] === "~" ? path5.join(os2.homedir(), envPath.slice(1)) : envPath;
|
|
432
|
-
}
|
|
433
|
-
function _configVault(options) {
|
|
434
|
-
_log("Loading env from encrypted .env.vault");
|
|
435
|
-
const parsed = DotenvModule._parseVault(options);
|
|
436
|
-
let processEnv = process.env;
|
|
437
|
-
if (options && options.processEnv != null) {
|
|
438
|
-
processEnv = options.processEnv;
|
|
439
|
-
}
|
|
440
|
-
DotenvModule.populate(processEnv, parsed, options);
|
|
441
|
-
return { parsed };
|
|
442
|
-
}
|
|
443
|
-
function configDotenv(options) {
|
|
444
|
-
const dotenvPath = path5.resolve(process.cwd(), ".env");
|
|
445
|
-
let encoding = "utf8";
|
|
446
|
-
const debug2 = Boolean(options && options.debug);
|
|
447
|
-
if (options && options.encoding) {
|
|
448
|
-
encoding = options.encoding;
|
|
449
|
-
} else {
|
|
450
|
-
if (debug2) {
|
|
451
|
-
_debug("No encoding is specified. UTF-8 is used by default");
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
let optionPaths = [dotenvPath];
|
|
455
|
-
if (options && options.path) {
|
|
456
|
-
if (!Array.isArray(options.path)) {
|
|
457
|
-
optionPaths = [_resolveHome(options.path)];
|
|
458
|
-
} else {
|
|
459
|
-
optionPaths = [];
|
|
460
|
-
for (const filepath of options.path) {
|
|
461
|
-
optionPaths.push(_resolveHome(filepath));
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
let lastError;
|
|
466
|
-
const parsedAll = {};
|
|
467
|
-
for (const path6 of optionPaths) {
|
|
468
|
-
try {
|
|
469
|
-
const parsed = DotenvModule.parse(fs2.readFileSync(path6, { encoding }));
|
|
470
|
-
DotenvModule.populate(parsedAll, parsed, options);
|
|
471
|
-
} catch (e2) {
|
|
472
|
-
if (debug2) {
|
|
473
|
-
_debug(`Failed to load ${path6} ${e2.message}`);
|
|
474
|
-
}
|
|
475
|
-
lastError = e2;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
let processEnv = process.env;
|
|
479
|
-
if (options && options.processEnv != null) {
|
|
480
|
-
processEnv = options.processEnv;
|
|
481
|
-
}
|
|
482
|
-
DotenvModule.populate(processEnv, parsedAll, options);
|
|
483
|
-
if (lastError) {
|
|
484
|
-
return { parsed: parsedAll, error: lastError };
|
|
485
|
-
} else {
|
|
486
|
-
return { parsed: parsedAll };
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
function config(options) {
|
|
490
|
-
if (_dotenvKey(options).length === 0) {
|
|
491
|
-
return DotenvModule.configDotenv(options);
|
|
492
|
-
}
|
|
493
|
-
const vaultPath = _vaultPath(options);
|
|
494
|
-
if (!vaultPath) {
|
|
495
|
-
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
496
|
-
return DotenvModule.configDotenv(options);
|
|
497
|
-
}
|
|
498
|
-
return DotenvModule._configVault(options);
|
|
499
|
-
}
|
|
500
|
-
function decrypt(encrypted, keyStr) {
|
|
501
|
-
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
502
|
-
let ciphertext = Buffer.from(encrypted, "base64");
|
|
503
|
-
const nonce = ciphertext.subarray(0, 12);
|
|
504
|
-
const authTag = ciphertext.subarray(-16);
|
|
505
|
-
ciphertext = ciphertext.subarray(12, -16);
|
|
506
|
-
try {
|
|
507
|
-
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
508
|
-
aesgcm.setAuthTag(authTag);
|
|
509
|
-
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
510
|
-
} catch (error) {
|
|
511
|
-
const isRange = error instanceof RangeError;
|
|
512
|
-
const invalidKeyLength = error.message === "Invalid key length";
|
|
513
|
-
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
514
|
-
if (isRange || invalidKeyLength) {
|
|
515
|
-
const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
516
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
517
|
-
throw err;
|
|
518
|
-
} else if (decryptionFailed) {
|
|
519
|
-
const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
520
|
-
err.code = "DECRYPTION_FAILED";
|
|
521
|
-
throw err;
|
|
522
|
-
} else {
|
|
523
|
-
throw error;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
function populate(processEnv, parsed, options = {}) {
|
|
528
|
-
const debug2 = Boolean(options && options.debug);
|
|
529
|
-
const override = Boolean(options && options.override);
|
|
530
|
-
if (typeof parsed !== "object") {
|
|
531
|
-
const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
532
|
-
err.code = "OBJECT_REQUIRED";
|
|
533
|
-
throw err;
|
|
534
|
-
}
|
|
535
|
-
for (const key of Object.keys(parsed)) {
|
|
536
|
-
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
537
|
-
if (override === true) {
|
|
538
|
-
processEnv[key] = parsed[key];
|
|
539
|
-
}
|
|
540
|
-
if (debug2) {
|
|
541
|
-
if (override === true) {
|
|
542
|
-
_debug(`"${key}" is already defined and WAS overwritten`);
|
|
543
|
-
} else {
|
|
544
|
-
_debug(`"${key}" is already defined and was NOT overwritten`);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
} else {
|
|
548
|
-
processEnv[key] = parsed[key];
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
var DotenvModule = {
|
|
553
|
-
configDotenv,
|
|
554
|
-
_configVault,
|
|
555
|
-
_parseVault,
|
|
556
|
-
config,
|
|
557
|
-
decrypt,
|
|
558
|
-
parse: parse6,
|
|
559
|
-
populate
|
|
560
|
-
};
|
|
561
|
-
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
562
|
-
module.exports._configVault = DotenvModule._configVault;
|
|
563
|
-
module.exports._parseVault = DotenvModule._parseVault;
|
|
564
|
-
module.exports.config = DotenvModule.config;
|
|
565
|
-
module.exports.decrypt = DotenvModule.decrypt;
|
|
566
|
-
module.exports.parse = DotenvModule.parse;
|
|
567
|
-
module.exports.populate = DotenvModule.populate;
|
|
568
|
-
module.exports = DotenvModule;
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
|
|
572
|
-
// node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js
|
|
234
|
+
// node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs
|
|
573
235
|
var require_jiti = __commonJS({
|
|
574
|
-
"node_modules/.pnpm/jiti@
|
|
236
|
+
"node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs"(exports, module) {
|
|
575
237
|
(() => {
|
|
576
|
-
var __webpack_modules__ = { "./node_modules/.pnpm/
|
|
577
|
-
const nativeModule = __webpack_require__2("module"), path5 = __webpack_require__2("path"), fs2 = __webpack_require__2("fs");
|
|
578
|
-
module2.exports = function(filename) {
|
|
579
|
-
return filename || (filename = process.cwd()), function(path6) {
|
|
580
|
-
try {
|
|
581
|
-
return fs2.lstatSync(path6).isDirectory();
|
|
582
|
-
} catch (e2) {
|
|
583
|
-
return false;
|
|
584
|
-
}
|
|
585
|
-
}(filename) && (filename = path5.join(filename, "index.js")), nativeModule.createRequire ? nativeModule.createRequire(filename) : nativeModule.createRequireFromPath ? nativeModule.createRequireFromPath(filename) : function(filename2) {
|
|
586
|
-
const mod = new nativeModule.Module(filename2, null);
|
|
587
|
-
return mod.filename = filename2, mod.paths = nativeModule.Module._nodeModulePaths(path5.dirname(filename2)), mod._compile("module.exports = require;", filename2), mod.exports;
|
|
588
|
-
}(filename);
|
|
589
|
-
};
|
|
590
|
-
}, "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module2) => {
|
|
238
|
+
var __webpack_modules__ = { "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module2) => {
|
|
591
239
|
function webpackEmptyAsyncContext(req) {
|
|
592
240
|
return Promise.resolve().then(() => {
|
|
593
241
|
var e2 = new Error("Cannot find module '" + req + "'");
|
|
@@ -595,893 +243,24 @@ var require_jiti = __commonJS({
|
|
|
595
243
|
});
|
|
596
244
|
}
|
|
597
245
|
webpackEmptyAsyncContext.keys = () => [], webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext, webpackEmptyAsyncContext.id = "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive", module2.exports = webpackEmptyAsyncContext;
|
|
598
|
-
}, "./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js": (module2, exports2, __webpack_require__2) => {
|
|
599
|
-
"use strict";
|
|
600
|
-
var crypto = __webpack_require__2("crypto");
|
|
601
|
-
function objectHash2(object, options) {
|
|
602
|
-
return function(object2, options2) {
|
|
603
|
-
var hashingStream;
|
|
604
|
-
hashingStream = "passthrough" !== options2.algorithm ? crypto.createHash(options2.algorithm) : new PassThrough();
|
|
605
|
-
void 0 === hashingStream.write && (hashingStream.write = hashingStream.update, hashingStream.end = hashingStream.update);
|
|
606
|
-
var hasher = typeHasher(options2, hashingStream);
|
|
607
|
-
hasher.dispatch(object2), hashingStream.update || hashingStream.end("");
|
|
608
|
-
if (hashingStream.digest) return hashingStream.digest("buffer" === options2.encoding ? void 0 : options2.encoding);
|
|
609
|
-
var buf = hashingStream.read();
|
|
610
|
-
if ("buffer" === options2.encoding) return buf;
|
|
611
|
-
return buf.toString(options2.encoding);
|
|
612
|
-
}(object, options = applyDefaults(object, options));
|
|
613
|
-
}
|
|
614
|
-
(exports2 = module2.exports = objectHash2).sha1 = function(object) {
|
|
615
|
-
return objectHash2(object);
|
|
616
|
-
}, exports2.keys = function(object) {
|
|
617
|
-
return objectHash2(object, { excludeValues: true, algorithm: "sha1", encoding: "hex" });
|
|
618
|
-
}, exports2.MD5 = function(object) {
|
|
619
|
-
return objectHash2(object, { algorithm: "md5", encoding: "hex" });
|
|
620
|
-
}, exports2.keysMD5 = function(object) {
|
|
621
|
-
return objectHash2(object, { algorithm: "md5", encoding: "hex", excludeValues: true });
|
|
622
|
-
};
|
|
623
|
-
var hashes = crypto.getHashes ? crypto.getHashes().slice() : ["sha1", "md5"];
|
|
624
|
-
hashes.push("passthrough");
|
|
625
|
-
var encodings = ["buffer", "hex", "binary", "base64"];
|
|
626
|
-
function applyDefaults(object, sourceOptions) {
|
|
627
|
-
sourceOptions = sourceOptions || {};
|
|
628
|
-
var options = {};
|
|
629
|
-
if (options.algorithm = sourceOptions.algorithm || "sha1", options.encoding = sourceOptions.encoding || "hex", options.excludeValues = !!sourceOptions.excludeValues, options.algorithm = options.algorithm.toLowerCase(), options.encoding = options.encoding.toLowerCase(), options.ignoreUnknown = true === sourceOptions.ignoreUnknown, options.respectType = false !== sourceOptions.respectType, options.respectFunctionNames = false !== sourceOptions.respectFunctionNames, options.respectFunctionProperties = false !== sourceOptions.respectFunctionProperties, options.unorderedArrays = true === sourceOptions.unorderedArrays, options.unorderedSets = false !== sourceOptions.unorderedSets, options.unorderedObjects = false !== sourceOptions.unorderedObjects, options.replacer = sourceOptions.replacer || void 0, options.excludeKeys = sourceOptions.excludeKeys || void 0, void 0 === object) throw new Error("Object argument required.");
|
|
630
|
-
for (var i2 = 0; i2 < hashes.length; ++i2) hashes[i2].toLowerCase() === options.algorithm.toLowerCase() && (options.algorithm = hashes[i2]);
|
|
631
|
-
if (-1 === hashes.indexOf(options.algorithm)) throw new Error('Algorithm "' + options.algorithm + '" not supported. supported values: ' + hashes.join(", "));
|
|
632
|
-
if (-1 === encodings.indexOf(options.encoding) && "passthrough" !== options.algorithm) throw new Error('Encoding "' + options.encoding + '" not supported. supported values: ' + encodings.join(", "));
|
|
633
|
-
return options;
|
|
634
|
-
}
|
|
635
|
-
function isNativeFunction2(f2) {
|
|
636
|
-
if ("function" != typeof f2) return false;
|
|
637
|
-
return null != /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(f2));
|
|
638
|
-
}
|
|
639
|
-
function typeHasher(options, writeTo, context) {
|
|
640
|
-
context = context || [];
|
|
641
|
-
var write = function(str) {
|
|
642
|
-
return writeTo.update ? writeTo.update(str, "utf8") : writeTo.write(str, "utf8");
|
|
643
|
-
};
|
|
644
|
-
return { dispatch: function(value2) {
|
|
645
|
-
options.replacer && (value2 = options.replacer(value2));
|
|
646
|
-
var type = typeof value2;
|
|
647
|
-
return null === value2 && (type = "null"), this["_" + type](value2);
|
|
648
|
-
}, _object: function(object) {
|
|
649
|
-
var objString = Object.prototype.toString.call(object), objType = /\[object (.*)\]/i.exec(objString);
|
|
650
|
-
objType = (objType = objType ? objType[1] : "unknown:[" + objString + "]").toLowerCase();
|
|
651
|
-
var objectNumber;
|
|
652
|
-
if ((objectNumber = context.indexOf(object)) >= 0) return this.dispatch("[CIRCULAR:" + objectNumber + "]");
|
|
653
|
-
if (context.push(object), "undefined" != typeof Buffer && Buffer.isBuffer && Buffer.isBuffer(object)) return write("buffer:"), write(object);
|
|
654
|
-
if ("object" === objType || "function" === objType || "asyncfunction" === objType) {
|
|
655
|
-
var keys = Object.keys(object);
|
|
656
|
-
options.unorderedObjects && (keys = keys.sort()), false === options.respectType || isNativeFunction2(object) || keys.splice(0, 0, "prototype", "__proto__", "constructor"), options.excludeKeys && (keys = keys.filter(function(key) {
|
|
657
|
-
return !options.excludeKeys(key);
|
|
658
|
-
})), write("object:" + keys.length + ":");
|
|
659
|
-
var self2 = this;
|
|
660
|
-
return keys.forEach(function(key) {
|
|
661
|
-
self2.dispatch(key), write(":"), options.excludeValues || self2.dispatch(object[key]), write(",");
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
if (!this["_" + objType]) {
|
|
665
|
-
if (options.ignoreUnknown) return write("[" + objType + "]");
|
|
666
|
-
throw new Error('Unknown object type "' + objType + '"');
|
|
667
|
-
}
|
|
668
|
-
this["_" + objType](object);
|
|
669
|
-
}, _array: function(arr, unordered) {
|
|
670
|
-
unordered = void 0 !== unordered ? unordered : false !== options.unorderedArrays;
|
|
671
|
-
var self2 = this;
|
|
672
|
-
if (write("array:" + arr.length + ":"), !unordered || arr.length <= 1) return arr.forEach(function(entry) {
|
|
673
|
-
return self2.dispatch(entry);
|
|
674
|
-
});
|
|
675
|
-
var contextAdditions = [], entries = arr.map(function(entry) {
|
|
676
|
-
var strm = new PassThrough(), localContext = context.slice();
|
|
677
|
-
return typeHasher(options, strm, localContext).dispatch(entry), contextAdditions = contextAdditions.concat(localContext.slice(context.length)), strm.read().toString();
|
|
678
|
-
});
|
|
679
|
-
return context = context.concat(contextAdditions), entries.sort(), this._array(entries, false);
|
|
680
|
-
}, _date: function(date) {
|
|
681
|
-
return write("date:" + date.toJSON());
|
|
682
|
-
}, _symbol: function(sym) {
|
|
683
|
-
return write("symbol:" + sym.toString());
|
|
684
|
-
}, _error: function(err) {
|
|
685
|
-
return write("error:" + err.toString());
|
|
686
|
-
}, _boolean: function(bool) {
|
|
687
|
-
return write("bool:" + bool.toString());
|
|
688
|
-
}, _string: function(string) {
|
|
689
|
-
write("string:" + string.length + ":"), write(string.toString());
|
|
690
|
-
}, _function: function(fn2) {
|
|
691
|
-
write("fn:"), isNativeFunction2(fn2) ? this.dispatch("[native]") : this.dispatch(fn2.toString()), false !== options.respectFunctionNames && this.dispatch("function-name:" + String(fn2.name)), options.respectFunctionProperties && this._object(fn2);
|
|
692
|
-
}, _number: function(number) {
|
|
693
|
-
return write("number:" + number.toString());
|
|
694
|
-
}, _xml: function(xml) {
|
|
695
|
-
return write("xml:" + xml.toString());
|
|
696
|
-
}, _null: function() {
|
|
697
|
-
return write("Null");
|
|
698
|
-
}, _undefined: function() {
|
|
699
|
-
return write("Undefined");
|
|
700
|
-
}, _regexp: function(regex) {
|
|
701
|
-
return write("regex:" + regex.toString());
|
|
702
|
-
}, _uint8array: function(arr) {
|
|
703
|
-
return write("uint8array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
704
|
-
}, _uint8clampedarray: function(arr) {
|
|
705
|
-
return write("uint8clampedarray:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
706
|
-
}, _int8array: function(arr) {
|
|
707
|
-
return write("int8array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
708
|
-
}, _uint16array: function(arr) {
|
|
709
|
-
return write("uint16array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
710
|
-
}, _int16array: function(arr) {
|
|
711
|
-
return write("int16array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
712
|
-
}, _uint32array: function(arr) {
|
|
713
|
-
return write("uint32array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
714
|
-
}, _int32array: function(arr) {
|
|
715
|
-
return write("int32array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
716
|
-
}, _float32array: function(arr) {
|
|
717
|
-
return write("float32array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
718
|
-
}, _float64array: function(arr) {
|
|
719
|
-
return write("float64array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
720
|
-
}, _arraybuffer: function(arr) {
|
|
721
|
-
return write("arraybuffer:"), this.dispatch(new Uint8Array(arr));
|
|
722
|
-
}, _url: function(url) {
|
|
723
|
-
return write("url:" + url.toString());
|
|
724
|
-
}, _map: function(map) {
|
|
725
|
-
write("map:");
|
|
726
|
-
var arr = Array.from(map);
|
|
727
|
-
return this._array(arr, false !== options.unorderedSets);
|
|
728
|
-
}, _set: function(set) {
|
|
729
|
-
write("set:");
|
|
730
|
-
var arr = Array.from(set);
|
|
731
|
-
return this._array(arr, false !== options.unorderedSets);
|
|
732
|
-
}, _file: function(file) {
|
|
733
|
-
return write("file:"), this.dispatch([file.name, file.size, file.type, file.lastModfied]);
|
|
734
|
-
}, _blob: function() {
|
|
735
|
-
if (options.ignoreUnknown) return write("[blob]");
|
|
736
|
-
throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n');
|
|
737
|
-
}, _domwindow: function() {
|
|
738
|
-
return write("domwindow");
|
|
739
|
-
}, _bigint: function(number) {
|
|
740
|
-
return write("bigint:" + number.toString());
|
|
741
|
-
}, _process: function() {
|
|
742
|
-
return write("process");
|
|
743
|
-
}, _timer: function() {
|
|
744
|
-
return write("timer");
|
|
745
|
-
}, _pipe: function() {
|
|
746
|
-
return write("pipe");
|
|
747
|
-
}, _tcp: function() {
|
|
748
|
-
return write("tcp");
|
|
749
|
-
}, _udp: function() {
|
|
750
|
-
return write("udp");
|
|
751
|
-
}, _tty: function() {
|
|
752
|
-
return write("tty");
|
|
753
|
-
}, _statwatcher: function() {
|
|
754
|
-
return write("statwatcher");
|
|
755
|
-
}, _securecontext: function() {
|
|
756
|
-
return write("securecontext");
|
|
757
|
-
}, _connection: function() {
|
|
758
|
-
return write("connection");
|
|
759
|
-
}, _zlib: function() {
|
|
760
|
-
return write("zlib");
|
|
761
|
-
}, _context: function() {
|
|
762
|
-
return write("context");
|
|
763
|
-
}, _nodescript: function() {
|
|
764
|
-
return write("nodescript");
|
|
765
|
-
}, _httpparser: function() {
|
|
766
|
-
return write("httpparser");
|
|
767
|
-
}, _dataview: function() {
|
|
768
|
-
return write("dataview");
|
|
769
|
-
}, _signal: function() {
|
|
770
|
-
return write("signal");
|
|
771
|
-
}, _fsevent: function() {
|
|
772
|
-
return write("fsevent");
|
|
773
|
-
}, _tlswrap: function() {
|
|
774
|
-
return write("tlswrap");
|
|
775
|
-
} };
|
|
776
|
-
}
|
|
777
|
-
function PassThrough() {
|
|
778
|
-
return { buf: "", write: function(b6) {
|
|
779
|
-
this.buf += b6;
|
|
780
|
-
}, end: function(b6) {
|
|
781
|
-
this.buf += b6;
|
|
782
|
-
}, read: function() {
|
|
783
|
-
return this.buf;
|
|
784
|
-
} };
|
|
785
|
-
}
|
|
786
|
-
exports2.writeToStream = function(object, options, stream) {
|
|
787
|
-
return void 0 === stream && (stream = options, options = {}), typeHasher(options = applyDefaults(object, options), stream).dispatch(object);
|
|
788
|
-
};
|
|
789
|
-
}, "./node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js": (module2, exports2, __webpack_require__2) => {
|
|
790
|
-
"use strict";
|
|
791
|
-
module2 = __webpack_require__2.nmd(module2), Object.defineProperty(exports2, "__esModule", { value: true }), exports2.addHook = function(hook, opts = {}) {
|
|
792
|
-
let reverted = false;
|
|
793
|
-
const loaders = [], oldLoaders = [];
|
|
794
|
-
let exts;
|
|
795
|
-
const originalJSLoader = Module._extensions[".js"], matcher = opts.matcher || null, ignoreNodeModules = false !== opts.ignoreNodeModules;
|
|
796
|
-
exts = opts.extensions || opts.exts || opts.extension || opts.ext || [".js"], Array.isArray(exts) || (exts = [exts]);
|
|
797
|
-
return exts.forEach((ext) => {
|
|
798
|
-
if ("string" != typeof ext) throw new TypeError(`Invalid Extension: ${ext}`);
|
|
799
|
-
const oldLoader = Module._extensions[ext] || originalJSLoader;
|
|
800
|
-
oldLoaders[ext] = Module._extensions[ext], loaders[ext] = Module._extensions[ext] = function(mod, filename) {
|
|
801
|
-
let compile;
|
|
802
|
-
reverted || function(filename2, exts2, matcher2, ignoreNodeModules2) {
|
|
803
|
-
if ("string" != typeof filename2) return false;
|
|
804
|
-
if (-1 === exts2.indexOf(_path.default.extname(filename2))) return false;
|
|
805
|
-
const resolvedFilename = _path.default.resolve(filename2);
|
|
806
|
-
if (ignoreNodeModules2 && nodeModulesRegex.test(resolvedFilename)) return false;
|
|
807
|
-
if (matcher2 && "function" == typeof matcher2) return !!matcher2(resolvedFilename);
|
|
808
|
-
return true;
|
|
809
|
-
}(filename, exts, matcher, ignoreNodeModules) && (compile = mod._compile, mod._compile = function(code) {
|
|
810
|
-
mod._compile = compile;
|
|
811
|
-
const newCode = hook(code, filename);
|
|
812
|
-
if ("string" != typeof newCode) throw new Error(HOOK_RETURNED_NOTHING_ERROR_MESSAGE);
|
|
813
|
-
return mod._compile(newCode, filename);
|
|
814
|
-
}), oldLoader(mod, filename);
|
|
815
|
-
};
|
|
816
|
-
}), function() {
|
|
817
|
-
reverted || (reverted = true, exts.forEach((ext) => {
|
|
818
|
-
Module._extensions[ext] === loaders[ext] && (oldLoaders[ext] ? Module._extensions[ext] = oldLoaders[ext] : delete Module._extensions[ext]);
|
|
819
|
-
}));
|
|
820
|
-
};
|
|
821
|
-
};
|
|
822
|
-
var _module = _interopRequireDefault(__webpack_require__2("module")), _path = _interopRequireDefault(__webpack_require__2("path"));
|
|
823
|
-
function _interopRequireDefault(obj) {
|
|
824
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
825
|
-
}
|
|
826
|
-
const nodeModulesRegex = /^(?:.*[\\/])?node_modules(?:[\\/].*)?$/, Module = module2.constructor.length > 1 ? module2.constructor : _module.default, HOOK_RETURNED_NOTHING_ERROR_MESSAGE = "[Pirates] A hook returned a non-string, or nothing at all! This is a violation of intergalactic law!\n--------------------\nIf you have no idea what this means or what Pirates is, let me explain: Pirates is a module that makes is easy to implement require hooks. One of the require hooks you're using uses it. One of these require hooks didn't return anything from it's handler, so we don't know what to do. You might want to debug this.";
|
|
827
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
828
|
-
const ANY = Symbol("SemVer ANY");
|
|
829
|
-
class Comparator {
|
|
830
|
-
static get ANY() {
|
|
831
|
-
return ANY;
|
|
832
|
-
}
|
|
833
|
-
constructor(comp, options) {
|
|
834
|
-
if (options = parseOptions(options), comp instanceof Comparator) {
|
|
835
|
-
if (comp.loose === !!options.loose) return comp;
|
|
836
|
-
comp = comp.value;
|
|
837
|
-
}
|
|
838
|
-
comp = comp.trim().split(/\s+/).join(" "), debug2("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug2("comp", this);
|
|
839
|
-
}
|
|
840
|
-
parse(comp) {
|
|
841
|
-
const r3 = this.options.loose ? re3[t2.COMPARATORLOOSE] : re3[t2.COMPARATOR], m3 = comp.match(r3);
|
|
842
|
-
if (!m3) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
843
|
-
this.operator = void 0 !== m3[1] ? m3[1] : "", "=" === this.operator && (this.operator = ""), m3[2] ? this.semver = new SemVer(m3[2], this.options.loose) : this.semver = ANY;
|
|
844
|
-
}
|
|
845
|
-
toString() {
|
|
846
|
-
return this.value;
|
|
847
|
-
}
|
|
848
|
-
test(version2) {
|
|
849
|
-
if (debug2("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY) return true;
|
|
850
|
-
if ("string" == typeof version2) try {
|
|
851
|
-
version2 = new SemVer(version2, this.options);
|
|
852
|
-
} catch (er2) {
|
|
853
|
-
return false;
|
|
854
|
-
}
|
|
855
|
-
return cmp(version2, this.operator, this.semver, this.options);
|
|
856
|
-
}
|
|
857
|
-
intersects(comp, options) {
|
|
858
|
-
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
859
|
-
return "" === this.operator ? "" === this.value || new Range(comp.value, options).test(this.value) : "" === comp.operator ? "" === comp.value || new Range(this.value, options).test(comp.semver) : (!(options = parseOptions(options)).includePrerelease || "<0.0.0-0" !== this.value && "<0.0.0-0" !== comp.value) && (!(!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) && (!(!this.operator.startsWith(">") || !comp.operator.startsWith(">")) || (!(!this.operator.startsWith("<") || !comp.operator.startsWith("<")) || (!(this.semver.version !== comp.semver.version || !this.operator.includes("=") || !comp.operator.includes("=")) || (!!(cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) || !!(cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")))))));
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
module2.exports = Comparator;
|
|
863
|
-
const parseOptions = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"), { safeRe: re3, t: t2 } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), cmp = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js"), debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
864
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
865
|
-
class Range {
|
|
866
|
-
constructor(range, options) {
|
|
867
|
-
if (options = parseOptions(options), range instanceof Range) return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new Range(range.raw, options);
|
|
868
|
-
if (range instanceof Comparator) return this.raw = range.value, this.set = [[range]], this.format(), this;
|
|
869
|
-
if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().split(/\s+/).join(" "), this.set = this.raw.split("||").map((r3) => this.parseRange(r3.trim())).filter((c) => c.length), !this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
870
|
-
if (this.set.length > 1) {
|
|
871
|
-
const first = this.set[0];
|
|
872
|
-
if (this.set = this.set.filter((c) => !isNullSet(c[0])), 0 === this.set.length) this.set = [first];
|
|
873
|
-
else if (this.set.length > 1) {
|
|
874
|
-
for (const c of this.set) if (1 === c.length && isAny(c[0])) {
|
|
875
|
-
this.set = [c];
|
|
876
|
-
break;
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
this.format();
|
|
881
|
-
}
|
|
882
|
-
format() {
|
|
883
|
-
return this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim(), this.range;
|
|
884
|
-
}
|
|
885
|
-
toString() {
|
|
886
|
-
return this.range;
|
|
887
|
-
}
|
|
888
|
-
parseRange(range) {
|
|
889
|
-
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached2 = cache2.get(memoKey);
|
|
890
|
-
if (cached2) return cached2;
|
|
891
|
-
const loose = this.options.loose, hr2 = loose ? re3[t2.HYPHENRANGELOOSE] : re3[t2.HYPHENRANGE];
|
|
892
|
-
range = range.replace(hr2, hyphenReplace(this.options.includePrerelease)), debug2("hyphen replace", range), range = range.replace(re3[t2.COMPARATORTRIM], comparatorTrimReplace), debug2("comparator trim", range), range = range.replace(re3[t2.TILDETRIM], tildeTrimReplace), debug2("tilde trim", range), range = range.replace(re3[t2.CARETTRIM], caretTrimReplace), debug2("caret trim", range);
|
|
893
|
-
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
894
|
-
loose && (rangeList = rangeList.filter((comp) => (debug2("loose invalid filter", comp, this.options), !!comp.match(re3[t2.COMPARATORLOOSE])))), debug2("range list", rangeList);
|
|
895
|
-
const rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
896
|
-
for (const comp of comparators) {
|
|
897
|
-
if (isNullSet(comp)) return [comp];
|
|
898
|
-
rangeMap.set(comp.value, comp);
|
|
899
|
-
}
|
|
900
|
-
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
901
|
-
const result = [...rangeMap.values()];
|
|
902
|
-
return cache2.set(memoKey, result), result;
|
|
903
|
-
}
|
|
904
|
-
intersects(range, options) {
|
|
905
|
-
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
906
|
-
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
|
|
907
|
-
}
|
|
908
|
-
test(version2) {
|
|
909
|
-
if (!version2) return false;
|
|
910
|
-
if ("string" == typeof version2) try {
|
|
911
|
-
version2 = new SemVer(version2, this.options);
|
|
912
|
-
} catch (er2) {
|
|
913
|
-
return false;
|
|
914
|
-
}
|
|
915
|
-
for (let i2 = 0; i2 < this.set.length; i2++) if (testSet(this.set[i2], version2, this.options)) return true;
|
|
916
|
-
return false;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
module2.exports = Range;
|
|
920
|
-
const cache2 = new (__webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/lrucache.js"))(), parseOptions = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), { safeRe: re3, t: t2, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), isNullSet = (c) => "<0.0.0-0" === c.value, isAny = (c) => "" === c.value, isSatisfiable = (comparators, options) => {
|
|
921
|
-
let result = true;
|
|
922
|
-
const remainingComparators = comparators.slice();
|
|
923
|
-
let testComparator = remainingComparators.pop();
|
|
924
|
-
for (; result && remainingComparators.length; ) result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
925
|
-
return result;
|
|
926
|
-
}, parseComparator = (comp, options) => (debug2("comp", comp, options), comp = replaceCarets(comp, options), debug2("caret", comp), comp = replaceTildes(comp, options), debug2("tildes", comp), comp = replaceXRanges(comp, options), debug2("xrange", comp), comp = replaceStars(comp, options), debug2("stars", comp), comp), isX = (id) => !id || "x" === id.toLowerCase() || "*" === id, replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
|
|
927
|
-
const r3 = options.loose ? re3[t2.TILDELOOSE] : re3[t2.TILDE];
|
|
928
|
-
return comp.replace(r3, (_6, M4, m3, p2, pr2) => {
|
|
929
|
-
let ret;
|
|
930
|
-
return debug2("tilde", comp, _6, M4, m3, p2, pr2), isX(M4) ? ret = "" : isX(m3) ? ret = `>=${M4}.0.0 <${+M4 + 1}.0.0-0` : isX(p2) ? ret = `>=${M4}.${m3}.0 <${M4}.${+m3 + 1}.0-0` : pr2 ? (debug2("replaceTilde pr", pr2), ret = `>=${M4}.${m3}.${p2}-${pr2} <${M4}.${+m3 + 1}.0-0`) : ret = `>=${M4}.${m3}.${p2} <${M4}.${+m3 + 1}.0-0`, debug2("tilde return", ret), ret;
|
|
931
|
-
});
|
|
932
|
-
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
933
|
-
debug2("caret", comp, options);
|
|
934
|
-
const r3 = options.loose ? re3[t2.CARETLOOSE] : re3[t2.CARET], z3 = options.includePrerelease ? "-0" : "";
|
|
935
|
-
return comp.replace(r3, (_6, M4, m3, p2, pr2) => {
|
|
936
|
-
let ret;
|
|
937
|
-
return debug2("caret", comp, _6, M4, m3, p2, pr2), isX(M4) ? ret = "" : isX(m3) ? ret = `>=${M4}.0.0${z3} <${+M4 + 1}.0.0-0` : isX(p2) ? ret = "0" === M4 ? `>=${M4}.${m3}.0${z3} <${M4}.${+m3 + 1}.0-0` : `>=${M4}.${m3}.0${z3} <${+M4 + 1}.0.0-0` : pr2 ? (debug2("replaceCaret pr", pr2), ret = "0" === M4 ? "0" === m3 ? `>=${M4}.${m3}.${p2}-${pr2} <${M4}.${m3}.${+p2 + 1}-0` : `>=${M4}.${m3}.${p2}-${pr2} <${M4}.${+m3 + 1}.0-0` : `>=${M4}.${m3}.${p2}-${pr2} <${+M4 + 1}.0.0-0`) : (debug2("no pr"), ret = "0" === M4 ? "0" === m3 ? `>=${M4}.${m3}.${p2}${z3} <${M4}.${m3}.${+p2 + 1}-0` : `>=${M4}.${m3}.${p2}${z3} <${M4}.${+m3 + 1}.0-0` : `>=${M4}.${m3}.${p2} <${+M4 + 1}.0.0-0`), debug2("caret return", ret), ret;
|
|
938
|
-
});
|
|
939
|
-
}, replaceXRanges = (comp, options) => (debug2("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
940
|
-
comp = comp.trim();
|
|
941
|
-
const r3 = options.loose ? re3[t2.XRANGELOOSE] : re3[t2.XRANGE];
|
|
942
|
-
return comp.replace(r3, (ret, gtlt, M4, m3, p2, pr2) => {
|
|
943
|
-
debug2("xRange", comp, ret, gtlt, M4, m3, p2, pr2);
|
|
944
|
-
const xM = isX(M4), xm = xM || isX(m3), xp = xm || isX(p2), anyX = xp;
|
|
945
|
-
return "=" === gtlt && anyX && (gtlt = ""), pr2 = options.includePrerelease ? "-0" : "", xM ? ret = ">" === gtlt || "<" === gtlt ? "<0.0.0-0" : "*" : gtlt && anyX ? (xm && (m3 = 0), p2 = 0, ">" === gtlt ? (gtlt = ">=", xm ? (M4 = +M4 + 1, m3 = 0, p2 = 0) : (m3 = +m3 + 1, p2 = 0)) : "<=" === gtlt && (gtlt = "<", xm ? M4 = +M4 + 1 : m3 = +m3 + 1), "<" === gtlt && (pr2 = "-0"), ret = `${gtlt + M4}.${m3}.${p2}${pr2}`) : xm ? ret = `>=${M4}.0.0${pr2} <${+M4 + 1}.0.0-0` : xp && (ret = `>=${M4}.${m3}.0${pr2} <${M4}.${+m3 + 1}.0-0`), debug2("xRange return", ret), ret;
|
|
946
|
-
});
|
|
947
|
-
}, replaceStars = (comp, options) => (debug2("replaceStars", comp, options), comp.trim().replace(re3[t2.STAR], "")), replaceGTE0 = (comp, options) => (debug2("replaceGTE0", comp, options), comp.trim().replace(re3[options.includePrerelease ? t2.GTE0PRE : t2.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => `${from = isX(fM) ? "" : isX(fm) ? `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? `>=${from}` : `>=${from}${incPr ? "-0" : ""}`} ${to = isX(tM) ? "" : isX(tm) ? `<${+tM + 1}.0.0-0` : isX(tp) ? `<${tM}.${+tm + 1}.0-0` : tpr ? `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? `<${tM}.${tm}.${+tp + 1}-0` : `<=${to}`}`.trim(), testSet = (set, version2, options) => {
|
|
948
|
-
for (let i2 = 0; i2 < set.length; i2++) if (!set[i2].test(version2)) return false;
|
|
949
|
-
if (version2.prerelease.length && !options.includePrerelease) {
|
|
950
|
-
for (let i2 = 0; i2 < set.length; i2++) if (debug2(set[i2].semver), set[i2].semver !== Comparator.ANY && set[i2].semver.prerelease.length > 0) {
|
|
951
|
-
const allowed = set[i2].semver;
|
|
952
|
-
if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) return true;
|
|
953
|
-
}
|
|
954
|
-
return false;
|
|
955
|
-
}
|
|
956
|
-
return true;
|
|
957
|
-
};
|
|
958
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
959
|
-
const debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), { MAX_LENGTH, MAX_SAFE_INTEGER } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), { safeRe: re3, t: t2 } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), parseOptions = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"), { compareIdentifiers } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js");
|
|
960
|
-
class SemVer {
|
|
961
|
-
constructor(version2, options) {
|
|
962
|
-
if (options = parseOptions(options), version2 instanceof SemVer) {
|
|
963
|
-
if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) return version2;
|
|
964
|
-
version2 = version2.version;
|
|
965
|
-
} else if ("string" != typeof version2) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
|
|
966
|
-
if (version2.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
967
|
-
debug2("SemVer", version2, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
968
|
-
const m3 = version2.trim().match(options.loose ? re3[t2.LOOSE] : re3[t2.FULL]);
|
|
969
|
-
if (!m3) throw new TypeError(`Invalid Version: ${version2}`);
|
|
970
|
-
if (this.raw = version2, this.major = +m3[1], this.minor = +m3[2], this.patch = +m3[3], this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
971
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
972
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
973
|
-
m3[4] ? this.prerelease = m3[4].split(".").map((id) => {
|
|
974
|
-
if (/^[0-9]+$/.test(id)) {
|
|
975
|
-
const num = +id;
|
|
976
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
977
|
-
}
|
|
978
|
-
return id;
|
|
979
|
-
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
980
|
-
}
|
|
981
|
-
format() {
|
|
982
|
-
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
983
|
-
}
|
|
984
|
-
toString() {
|
|
985
|
-
return this.version;
|
|
986
|
-
}
|
|
987
|
-
compare(other) {
|
|
988
|
-
if (debug2("SemVer.compare", this.version, this.options, other), !(other instanceof SemVer)) {
|
|
989
|
-
if ("string" == typeof other && other === this.version) return 0;
|
|
990
|
-
other = new SemVer(other, this.options);
|
|
991
|
-
}
|
|
992
|
-
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
993
|
-
}
|
|
994
|
-
compareMain(other) {
|
|
995
|
-
return other instanceof SemVer || (other = new SemVer(other, this.options)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
996
|
-
}
|
|
997
|
-
comparePre(other) {
|
|
998
|
-
if (other instanceof SemVer || (other = new SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length) return -1;
|
|
999
|
-
if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
1000
|
-
if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
1001
|
-
let i2 = 0;
|
|
1002
|
-
do {
|
|
1003
|
-
const a2 = this.prerelease[i2], b6 = other.prerelease[i2];
|
|
1004
|
-
if (debug2("prerelease compare", i2, a2, b6), void 0 === a2 && void 0 === b6) return 0;
|
|
1005
|
-
if (void 0 === b6) return 1;
|
|
1006
|
-
if (void 0 === a2) return -1;
|
|
1007
|
-
if (a2 !== b6) return compareIdentifiers(a2, b6);
|
|
1008
|
-
} while (++i2);
|
|
1009
|
-
}
|
|
1010
|
-
compareBuild(other) {
|
|
1011
|
-
other instanceof SemVer || (other = new SemVer(other, this.options));
|
|
1012
|
-
let i2 = 0;
|
|
1013
|
-
do {
|
|
1014
|
-
const a2 = this.build[i2], b6 = other.build[i2];
|
|
1015
|
-
if (debug2("build compare", i2, a2, b6), void 0 === a2 && void 0 === b6) return 0;
|
|
1016
|
-
if (void 0 === b6) return 1;
|
|
1017
|
-
if (void 0 === a2) return -1;
|
|
1018
|
-
if (a2 !== b6) return compareIdentifiers(a2, b6);
|
|
1019
|
-
} while (++i2);
|
|
1020
|
-
}
|
|
1021
|
-
inc(release, identifier, identifierBase) {
|
|
1022
|
-
switch (release) {
|
|
1023
|
-
case "premajor":
|
|
1024
|
-
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
|
1025
|
-
break;
|
|
1026
|
-
case "preminor":
|
|
1027
|
-
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
|
1028
|
-
break;
|
|
1029
|
-
case "prepatch":
|
|
1030
|
-
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
1031
|
-
break;
|
|
1032
|
-
case "prerelease":
|
|
1033
|
-
0 === this.prerelease.length && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
1034
|
-
break;
|
|
1035
|
-
case "major":
|
|
1036
|
-
0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
1037
|
-
break;
|
|
1038
|
-
case "minor":
|
|
1039
|
-
0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = [];
|
|
1040
|
-
break;
|
|
1041
|
-
case "patch":
|
|
1042
|
-
0 === this.prerelease.length && this.patch++, this.prerelease = [];
|
|
1043
|
-
break;
|
|
1044
|
-
case "pre": {
|
|
1045
|
-
const base = Number(identifierBase) ? 1 : 0;
|
|
1046
|
-
if (!identifier && false === identifierBase) throw new Error("invalid increment argument: identifier is empty");
|
|
1047
|
-
if (0 === this.prerelease.length) this.prerelease = [base];
|
|
1048
|
-
else {
|
|
1049
|
-
let i2 = this.prerelease.length;
|
|
1050
|
-
for (; --i2 >= 0; ) "number" == typeof this.prerelease[i2] && (this.prerelease[i2]++, i2 = -2);
|
|
1051
|
-
if (-1 === i2) {
|
|
1052
|
-
if (identifier === this.prerelease.join(".") && false === identifierBase) throw new Error("invalid increment argument: identifier already exists");
|
|
1053
|
-
this.prerelease.push(base);
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
if (identifier) {
|
|
1057
|
-
let prerelease = [identifier, base];
|
|
1058
|
-
false === identifierBase && (prerelease = [identifier]), 0 === compareIdentifiers(this.prerelease[0], identifier) ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
1059
|
-
}
|
|
1060
|
-
break;
|
|
1061
|
-
}
|
|
1062
|
-
default:
|
|
1063
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
1064
|
-
}
|
|
1065
|
-
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
module2.exports = SemVer;
|
|
1069
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1070
|
-
const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1071
|
-
module2.exports = (version2, options) => {
|
|
1072
|
-
const s2 = parse6(version2.trim().replace(/^[=v]+/, ""), options);
|
|
1073
|
-
return s2 ? s2.version : null;
|
|
1074
|
-
};
|
|
1075
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1076
|
-
const eq = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js"), neq = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js"), gt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), gte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js"), lt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js"), lte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js");
|
|
1077
|
-
module2.exports = (a2, op, b6, loose) => {
|
|
1078
|
-
switch (op) {
|
|
1079
|
-
case "===":
|
|
1080
|
-
return "object" == typeof a2 && (a2 = a2.version), "object" == typeof b6 && (b6 = b6.version), a2 === b6;
|
|
1081
|
-
case "!==":
|
|
1082
|
-
return "object" == typeof a2 && (a2 = a2.version), "object" == typeof b6 && (b6 = b6.version), a2 !== b6;
|
|
1083
|
-
case "":
|
|
1084
|
-
case "=":
|
|
1085
|
-
case "==":
|
|
1086
|
-
return eq(a2, b6, loose);
|
|
1087
|
-
case "!=":
|
|
1088
|
-
return neq(a2, b6, loose);
|
|
1089
|
-
case ">":
|
|
1090
|
-
return gt(a2, b6, loose);
|
|
1091
|
-
case ">=":
|
|
1092
|
-
return gte(a2, b6, loose);
|
|
1093
|
-
case "<":
|
|
1094
|
-
return lt(a2, b6, loose);
|
|
1095
|
-
case "<=":
|
|
1096
|
-
return lte(a2, b6, loose);
|
|
1097
|
-
default:
|
|
1098
|
-
throw new TypeError(`Invalid operator: ${op}`);
|
|
1099
|
-
}
|
|
1100
|
-
};
|
|
1101
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1102
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"), { safeRe: re3, t: t2 } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js");
|
|
1103
|
-
module2.exports = (version2, options) => {
|
|
1104
|
-
if (version2 instanceof SemVer) return version2;
|
|
1105
|
-
if ("number" == typeof version2 && (version2 = String(version2)), "string" != typeof version2) return null;
|
|
1106
|
-
let match = null;
|
|
1107
|
-
if ((options = options || {}).rtl) {
|
|
1108
|
-
const coerceRtlRegex = options.includePrerelease ? re3[t2.COERCERTLFULL] : re3[t2.COERCERTL];
|
|
1109
|
-
let next;
|
|
1110
|
-
for (; (next = coerceRtlRegex.exec(version2)) && (!match || match.index + match[0].length !== version2.length); ) match && next.index + next[0].length === match.index + match[0].length || (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
1111
|
-
coerceRtlRegex.lastIndex = -1;
|
|
1112
|
-
} else match = version2.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
|
|
1113
|
-
if (null === match) return null;
|
|
1114
|
-
const major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
1115
|
-
return parse6(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
1116
|
-
};
|
|
1117
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1118
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1119
|
-
module2.exports = (a2, b6, loose) => {
|
|
1120
|
-
const versionA = new SemVer(a2, loose), versionB = new SemVer(b6, loose);
|
|
1121
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
1122
|
-
};
|
|
1123
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-loose.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1124
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1125
|
-
module2.exports = (a2, b6) => compare(a2, b6, true);
|
|
1126
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1127
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1128
|
-
module2.exports = (a2, b6, loose) => new SemVer(a2, loose).compare(new SemVer(b6, loose));
|
|
1129
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1130
|
-
const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1131
|
-
module2.exports = (version1, version2) => {
|
|
1132
|
-
const v1 = parse6(version1, null, true), v22 = parse6(version2, null, true), comparison = v1.compare(v22);
|
|
1133
|
-
if (0 === comparison) return null;
|
|
1134
|
-
const v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v22, lowVersion = v1Higher ? v22 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
1135
|
-
if (!!lowVersion.prerelease.length && !highHasPre) return lowVersion.patch || lowVersion.minor ? highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major" : "major";
|
|
1136
|
-
const prefix = highHasPre ? "pre" : "";
|
|
1137
|
-
return v1.major !== v22.major ? prefix + "major" : v1.minor !== v22.minor ? prefix + "minor" : v1.patch !== v22.patch ? prefix + "patch" : "prerelease";
|
|
1138
|
-
};
|
|
1139
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1140
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1141
|
-
module2.exports = (a2, b6, loose) => 0 === compare(a2, b6, loose);
|
|
1142
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1143
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1144
|
-
module2.exports = (a2, b6, loose) => compare(a2, b6, loose) > 0;
|
|
1145
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1146
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1147
|
-
module2.exports = (a2, b6, loose) => compare(a2, b6, loose) >= 0;
|
|
1148
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/inc.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1149
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1150
|
-
module2.exports = (version2, release, options, identifier, identifierBase) => {
|
|
1151
|
-
"string" == typeof options && (identifierBase = identifier, identifier = options, options = void 0);
|
|
1152
|
-
try {
|
|
1153
|
-
return new SemVer(version2 instanceof SemVer ? version2.version : version2, options).inc(release, identifier, identifierBase).version;
|
|
1154
|
-
} catch (er2) {
|
|
1155
|
-
return null;
|
|
1156
|
-
}
|
|
1157
|
-
};
|
|
1158
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1159
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1160
|
-
module2.exports = (a2, b6, loose) => compare(a2, b6, loose) < 0;
|
|
1161
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1162
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1163
|
-
module2.exports = (a2, b6, loose) => compare(a2, b6, loose) <= 0;
|
|
1164
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/major.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1165
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1166
|
-
module2.exports = (a2, loose) => new SemVer(a2, loose).major;
|
|
1167
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/minor.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1168
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1169
|
-
module2.exports = (a2, loose) => new SemVer(a2, loose).minor;
|
|
1170
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1171
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1172
|
-
module2.exports = (a2, b6, loose) => 0 !== compare(a2, b6, loose);
|
|
1173
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1174
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1175
|
-
module2.exports = (version2, options, throwErrors = false) => {
|
|
1176
|
-
if (version2 instanceof SemVer) return version2;
|
|
1177
|
-
try {
|
|
1178
|
-
return new SemVer(version2, options);
|
|
1179
|
-
} catch (er2) {
|
|
1180
|
-
if (!throwErrors) return null;
|
|
1181
|
-
throw er2;
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/patch.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1185
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1186
|
-
module2.exports = (a2, loose) => new SemVer(a2, loose).patch;
|
|
1187
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1188
|
-
const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1189
|
-
module2.exports = (version2, options) => {
|
|
1190
|
-
const parsed = parse6(version2, options);
|
|
1191
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
1192
|
-
};
|
|
1193
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rcompare.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1194
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1195
|
-
module2.exports = (a2, b6, loose) => compare(b6, a2, loose);
|
|
1196
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rsort.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1197
|
-
const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
|
|
1198
|
-
module2.exports = (list, loose) => list.sort((a2, b6) => compareBuild(b6, a2, loose));
|
|
1199
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1200
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1201
|
-
module2.exports = (version2, range, options) => {
|
|
1202
|
-
try {
|
|
1203
|
-
range = new Range(range, options);
|
|
1204
|
-
} catch (er2) {
|
|
1205
|
-
return false;
|
|
1206
|
-
}
|
|
1207
|
-
return range.test(version2);
|
|
1208
|
-
};
|
|
1209
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/sort.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1210
|
-
const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
|
|
1211
|
-
module2.exports = (list, loose) => list.sort((a2, b6) => compareBuild(a2, b6, loose));
|
|
1212
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1213
|
-
const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1214
|
-
module2.exports = (version2, options) => {
|
|
1215
|
-
const v5 = parse6(version2, options);
|
|
1216
|
-
return v5 ? v5.version : null;
|
|
1217
|
-
};
|
|
1218
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1219
|
-
const internalRe = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), constants3 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), identifiers = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js"), parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"), valid = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"), clean = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"), inc = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/inc.js"), diff2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"), major = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/major.js"), minor = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/minor.js"), patch = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/patch.js"), prerelease = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"), compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js"), rcompare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rcompare.js"), compareLoose = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-loose.js"), compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js"), sort = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/sort.js"), rsort = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rsort.js"), gt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), lt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js"), eq = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js"), neq = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js"), gte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js"), lte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js"), cmp = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js"), coerce2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), toComparators = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/to-comparators.js"), maxSatisfying = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/max-satisfying.js"), minSatisfying = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-satisfying.js"), minVersion = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-version.js"), validRange = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/valid.js"), outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js"), gtr = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/gtr.js"), ltr = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/ltr.js"), intersects = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/intersects.js"), simplifyRange = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/simplify.js"), subset = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/subset.js");
|
|
1220
|
-
module2.exports = { parse: parse6, valid, clean, inc, diff: diff2, major, minor, patch, prerelease, compare, rcompare, compareLoose, compareBuild, sort, rsort, gt, lt, eq, neq, gte, lte, cmp, coerce: coerce2, Comparator, Range, satisfies, toComparators, maxSatisfying, minSatisfying, minVersion, validRange, outside, gtr, ltr, intersects, simplifyRange, subset, SemVer, re: internalRe.re, src: internalRe.src, tokens: internalRe.t, SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION, RELEASE_TYPES: constants3.RELEASE_TYPES, compareIdentifiers: identifiers.compareIdentifiers, rcompareIdentifiers: identifiers.rcompareIdentifiers };
|
|
1221
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js": (module2) => {
|
|
1222
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
1223
|
-
module2.exports = { MAX_LENGTH: 256, MAX_SAFE_COMPONENT_LENGTH: 16, MAX_SAFE_BUILD_LENGTH: 250, MAX_SAFE_INTEGER, RELEASE_TYPES: ["major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease"], SEMVER_SPEC_VERSION: "2.0.0", FLAG_INCLUDE_PRERELEASE: 1, FLAG_LOOSE: 2 };
|
|
1224
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js": (module2) => {
|
|
1225
|
-
const debug2 = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
1226
|
-
};
|
|
1227
|
-
module2.exports = debug2;
|
|
1228
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js": (module2) => {
|
|
1229
|
-
const numeric = /^[0-9]+$/, compareIdentifiers = (a2, b6) => {
|
|
1230
|
-
const anum = numeric.test(a2), bnum = numeric.test(b6);
|
|
1231
|
-
return anum && bnum && (a2 = +a2, b6 = +b6), a2 === b6 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b6 ? -1 : 1;
|
|
1232
|
-
};
|
|
1233
|
-
module2.exports = { compareIdentifiers, rcompareIdentifiers: (a2, b6) => compareIdentifiers(b6, a2) };
|
|
1234
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/lrucache.js": (module2) => {
|
|
1235
|
-
module2.exports = class {
|
|
1236
|
-
constructor() {
|
|
1237
|
-
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
1238
|
-
}
|
|
1239
|
-
get(key) {
|
|
1240
|
-
const value2 = this.map.get(key);
|
|
1241
|
-
return void 0 === value2 ? void 0 : (this.map.delete(key), this.map.set(key, value2), value2);
|
|
1242
|
-
}
|
|
1243
|
-
delete(key) {
|
|
1244
|
-
return this.map.delete(key);
|
|
1245
|
-
}
|
|
1246
|
-
set(key, value2) {
|
|
1247
|
-
if (!this.delete(key) && void 0 !== value2) {
|
|
1248
|
-
if (this.map.size >= this.max) {
|
|
1249
|
-
const firstKey = this.map.keys().next().value;
|
|
1250
|
-
this.delete(firstKey);
|
|
1251
|
-
}
|
|
1252
|
-
this.map.set(key, value2);
|
|
1253
|
-
}
|
|
1254
|
-
return this;
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js": (module2) => {
|
|
1258
|
-
const looseOption = Object.freeze({ loose: true }), emptyOpts = Object.freeze({});
|
|
1259
|
-
module2.exports = (options) => options ? "object" != typeof options ? looseOption : options : emptyOpts;
|
|
1260
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js": (module2, exports2, __webpack_require__2) => {
|
|
1261
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), re3 = (exports2 = module2.exports = {}).re = [], safeRe = exports2.safeRe = [], src = exports2.src = [], t2 = exports2.t = {};
|
|
1262
|
-
let R4 = 0;
|
|
1263
|
-
const safeRegexReplacements = [["\\s", 1], ["\\d", MAX_LENGTH], ["[a-zA-Z0-9-]", MAX_SAFE_BUILD_LENGTH]], createToken = (name, value2, isGlobal) => {
|
|
1264
|
-
const safe = ((value3) => {
|
|
1265
|
-
for (const [token, max] of safeRegexReplacements) value3 = value3.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
1266
|
-
return value3;
|
|
1267
|
-
})(value2), index = R4++;
|
|
1268
|
-
debug2(name, index, value2), t2[name] = index, src[index] = value2, re3[index] = new RegExp(value2, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
1269
|
-
};
|
|
1270
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"), createToken("NUMERICIDENTIFIERLOOSE", "\\d+"), createToken("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"), createToken("MAINVERSION", `(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})`), createToken("MAINVERSIONLOOSE", `(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})`), createToken("PRERELEASEIDENTIFIER", `(?:${src[t2.NUMERICIDENTIFIER]}|${src[t2.NONNUMERICIDENTIFIER]})`), createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t2.NUMERICIDENTIFIERLOOSE]}|${src[t2.NONNUMERICIDENTIFIER]})`), createToken("PRERELEASE", `(?:-(${src[t2.PRERELEASEIDENTIFIER]}(?:\\.${src[t2.PRERELEASEIDENTIFIER]})*))`), createToken("PRERELEASELOOSE", `(?:-?(${src[t2.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t2.PRERELEASEIDENTIFIERLOOSE]})*))`), createToken("BUILDIDENTIFIER", "[a-zA-Z0-9-]+"), createToken("BUILD", `(?:\\+(${src[t2.BUILDIDENTIFIER]}(?:\\.${src[t2.BUILDIDENTIFIER]})*))`), createToken("FULLPLAIN", `v?${src[t2.MAINVERSION]}${src[t2.PRERELEASE]}?${src[t2.BUILD]}?`), createToken("FULL", `^${src[t2.FULLPLAIN]}$`), createToken("LOOSEPLAIN", `[v=\\s]*${src[t2.MAINVERSIONLOOSE]}${src[t2.PRERELEASELOOSE]}?${src[t2.BUILD]}?`), createToken("LOOSE", `^${src[t2.LOOSEPLAIN]}$`), createToken("GTLT", "((?:<|>)?=?)"), createToken("XRANGEIDENTIFIERLOOSE", `${src[t2.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), createToken("XRANGEIDENTIFIER", `${src[t2.NUMERICIDENTIFIER]}|x|X|\\*`), createToken("XRANGEPLAIN", `[v=\\s]*(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:${src[t2.PRERELEASE]})?${src[t2.BUILD]}?)?)?`), createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:${src[t2.PRERELEASELOOSE]})?${src[t2.BUILD]}?)?)?`), createToken("XRANGE", `^${src[t2.GTLT]}\\s*${src[t2.XRANGEPLAIN]}$`), createToken("XRANGELOOSE", `^${src[t2.GTLT]}\\s*${src[t2.XRANGEPLAINLOOSE]}$`), createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`), createToken("COERCE", `${src[t2.COERCEPLAIN]}(?:$|[^\\d])`), createToken("COERCEFULL", src[t2.COERCEPLAIN] + `(?:${src[t2.PRERELEASE]})?(?:${src[t2.BUILD]})?(?:$|[^\\d])`), createToken("COERCERTL", src[t2.COERCE], true), createToken("COERCERTLFULL", src[t2.COERCEFULL], true), createToken("LONETILDE", "(?:~>?)"), createToken("TILDETRIM", `(\\s*)${src[t2.LONETILDE]}\\s+`, true), exports2.tildeTrimReplace = "$1~", createToken("TILDE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`), createToken("TILDELOOSE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`), createToken("LONECARET", "(?:\\^)"), createToken("CARETTRIM", `(\\s*)${src[t2.LONECARET]}\\s+`, true), exports2.caretTrimReplace = "$1^", createToken("CARET", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`), createToken("CARETLOOSE", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`), createToken("COMPARATORLOOSE", `^${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]})$|^$`), createToken("COMPARATOR", `^${src[t2.GTLT]}\\s*(${src[t2.FULLPLAIN]})$|^$`), createToken("COMPARATORTRIM", `(\\s*)${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true), exports2.comparatorTrimReplace = "$1$2$3", createToken("HYPHENRANGE", `^\\s*(${src[t2.XRANGEPLAIN]})\\s+-\\s+(${src[t2.XRANGEPLAIN]})\\s*$`), createToken("HYPHENRANGELOOSE", `^\\s*(${src[t2.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t2.XRANGEPLAINLOOSE]})\\s*$`), createToken("STAR", "(<|>)?=?\\s*\\*"), createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
1271
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/gtr.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1272
|
-
const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
|
|
1273
|
-
module2.exports = (version2, range, options) => outside(version2, range, ">", options);
|
|
1274
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/intersects.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1275
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1276
|
-
module2.exports = (r1, r22, options) => (r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22, options));
|
|
1277
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/ltr.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1278
|
-
const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
|
|
1279
|
-
module2.exports = (version2, range, options) => outside(version2, range, "<", options);
|
|
1280
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/max-satisfying.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1281
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1282
|
-
module2.exports = (versions, range, options) => {
|
|
1283
|
-
let max = null, maxSV = null, rangeObj = null;
|
|
1284
|
-
try {
|
|
1285
|
-
rangeObj = new Range(range, options);
|
|
1286
|
-
} catch (er2) {
|
|
1287
|
-
return null;
|
|
1288
|
-
}
|
|
1289
|
-
return versions.forEach((v5) => {
|
|
1290
|
-
rangeObj.test(v5) && (max && -1 !== maxSV.compare(v5) || (max = v5, maxSV = new SemVer(max, options)));
|
|
1291
|
-
}), max;
|
|
1292
|
-
};
|
|
1293
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-satisfying.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1294
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1295
|
-
module2.exports = (versions, range, options) => {
|
|
1296
|
-
let min = null, minSV = null, rangeObj = null;
|
|
1297
|
-
try {
|
|
1298
|
-
rangeObj = new Range(range, options);
|
|
1299
|
-
} catch (er2) {
|
|
1300
|
-
return null;
|
|
1301
|
-
}
|
|
1302
|
-
return versions.forEach((v5) => {
|
|
1303
|
-
rangeObj.test(v5) && (min && 1 !== minSV.compare(v5) || (min = v5, minSV = new SemVer(min, options)));
|
|
1304
|
-
}), min;
|
|
1305
|
-
};
|
|
1306
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-version.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1307
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), gt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js");
|
|
1308
|
-
module2.exports = (range, loose) => {
|
|
1309
|
-
range = new Range(range, loose);
|
|
1310
|
-
let minver = new SemVer("0.0.0");
|
|
1311
|
-
if (range.test(minver)) return minver;
|
|
1312
|
-
if (minver = new SemVer("0.0.0-0"), range.test(minver)) return minver;
|
|
1313
|
-
minver = null;
|
|
1314
|
-
for (let i2 = 0; i2 < range.set.length; ++i2) {
|
|
1315
|
-
const comparators = range.set[i2];
|
|
1316
|
-
let setMin = null;
|
|
1317
|
-
comparators.forEach((comparator) => {
|
|
1318
|
-
const compver = new SemVer(comparator.semver.version);
|
|
1319
|
-
switch (comparator.operator) {
|
|
1320
|
-
case ">":
|
|
1321
|
-
0 === compver.prerelease.length ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
1322
|
-
case "":
|
|
1323
|
-
case ">=":
|
|
1324
|
-
setMin && !gt(compver, setMin) || (setMin = compver);
|
|
1325
|
-
break;
|
|
1326
|
-
case "<":
|
|
1327
|
-
case "<=":
|
|
1328
|
-
break;
|
|
1329
|
-
default:
|
|
1330
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1331
|
-
}
|
|
1332
|
-
}), !setMin || minver && !gt(minver, setMin) || (minver = setMin);
|
|
1333
|
-
}
|
|
1334
|
-
return minver && range.test(minver) ? minver : null;
|
|
1335
|
-
};
|
|
1336
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1337
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), { ANY } = Comparator, Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), gt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), lt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js"), lte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js"), gte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js");
|
|
1338
|
-
module2.exports = (version2, range, hilo, options) => {
|
|
1339
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1340
|
-
switch (version2 = new SemVer(version2, options), range = new Range(range, options), hilo) {
|
|
1341
|
-
case ">":
|
|
1342
|
-
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
1343
|
-
break;
|
|
1344
|
-
case "<":
|
|
1345
|
-
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
|
1346
|
-
break;
|
|
1347
|
-
default:
|
|
1348
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
1349
|
-
}
|
|
1350
|
-
if (satisfies(version2, range, options)) return false;
|
|
1351
|
-
for (let i2 = 0; i2 < range.set.length; ++i2) {
|
|
1352
|
-
const comparators = range.set[i2];
|
|
1353
|
-
let high = null, low = null;
|
|
1354
|
-
if (comparators.forEach((comparator) => {
|
|
1355
|
-
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
|
|
1356
|
-
}), high.operator === comp || high.operator === ecomp) return false;
|
|
1357
|
-
if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) return false;
|
|
1358
|
-
if (low.operator === ecomp && ltfn(version2, low.semver)) return false;
|
|
1359
|
-
}
|
|
1360
|
-
return true;
|
|
1361
|
-
};
|
|
1362
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/simplify.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1363
|
-
const satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1364
|
-
module2.exports = (versions, range, options) => {
|
|
1365
|
-
const set = [];
|
|
1366
|
-
let first = null, prev = null;
|
|
1367
|
-
const v5 = versions.sort((a2, b6) => compare(a2, b6, options));
|
|
1368
|
-
for (const version2 of v5) {
|
|
1369
|
-
satisfies(version2, range, options) ? (prev = version2, first || (first = version2)) : (prev && set.push([first, prev]), prev = null, first = null);
|
|
1370
|
-
}
|
|
1371
|
-
first && set.push([first, null]);
|
|
1372
|
-
const ranges = [];
|
|
1373
|
-
for (const [min, max] of set) min === max ? ranges.push(min) : max || min !== v5[0] ? max ? min === v5[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`) : ranges.push("*");
|
|
1374
|
-
const simplified = ranges.join(" || "), original = "string" == typeof range.raw ? range.raw : String(range);
|
|
1375
|
-
return simplified.length < original.length ? simplified : range;
|
|
1376
|
-
};
|
|
1377
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/subset.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1378
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), { ANY } = Comparator, satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js"), minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
1379
|
-
if (sub === dom) return true;
|
|
1380
|
-
if (1 === sub.length && sub[0].semver === ANY) {
|
|
1381
|
-
if (1 === dom.length && dom[0].semver === ANY) return true;
|
|
1382
|
-
sub = options.includePrerelease ? minimumVersionWithPreRelease : minimumVersion;
|
|
1383
|
-
}
|
|
1384
|
-
if (1 === dom.length && dom[0].semver === ANY) {
|
|
1385
|
-
if (options.includePrerelease) return true;
|
|
1386
|
-
dom = minimumVersion;
|
|
1387
|
-
}
|
|
1388
|
-
const eqSet = /* @__PURE__ */ new Set();
|
|
1389
|
-
let gt, lt, gtltComp, higher, lower, hasDomLT, hasDomGT;
|
|
1390
|
-
for (const c of sub) ">" === c.operator || ">=" === c.operator ? gt = higherGT(gt, c, options) : "<" === c.operator || "<=" === c.operator ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
1391
|
-
if (eqSet.size > 1) return null;
|
|
1392
|
-
if (gt && lt) {
|
|
1393
|
-
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0) return null;
|
|
1394
|
-
if (0 === gtltComp && (">=" !== gt.operator || "<=" !== lt.operator)) return null;
|
|
1395
|
-
}
|
|
1396
|
-
for (const eq of eqSet) {
|
|
1397
|
-
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
1398
|
-
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
1399
|
-
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
1400
|
-
return true;
|
|
1401
|
-
}
|
|
1402
|
-
let needDomLTPre = !(!lt || options.includePrerelease || !lt.semver.prerelease.length) && lt.semver, needDomGTPre = !(!gt || options.includePrerelease || !gt.semver.prerelease.length) && gt.semver;
|
|
1403
|
-
needDomLTPre && 1 === needDomLTPre.prerelease.length && "<" === lt.operator && 0 === needDomLTPre.prerelease[0] && (needDomLTPre = false);
|
|
1404
|
-
for (const c of dom) {
|
|
1405
|
-
if (hasDomGT = hasDomGT || ">" === c.operator || ">=" === c.operator, hasDomLT = hasDomLT || "<" === c.operator || "<=" === c.operator, gt) {
|
|
1406
|
-
if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = false), ">" === c.operator || ">=" === c.operator) {
|
|
1407
|
-
if (higher = higherGT(gt, c, options), higher === c && higher !== gt) return false;
|
|
1408
|
-
} else if (">=" === gt.operator && !satisfies(gt.semver, String(c), options)) return false;
|
|
1409
|
-
}
|
|
1410
|
-
if (lt) {
|
|
1411
|
-
if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = false), "<" === c.operator || "<=" === c.operator) {
|
|
1412
|
-
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt) return false;
|
|
1413
|
-
} else if ("<=" === lt.operator && !satisfies(lt.semver, String(c), options)) return false;
|
|
1414
|
-
}
|
|
1415
|
-
if (!c.operator && (lt || gt) && 0 !== gtltComp) return false;
|
|
1416
|
-
}
|
|
1417
|
-
return !(gt && hasDomLT && !lt && 0 !== gtltComp) && (!(lt && hasDomGT && !gt && 0 !== gtltComp) && (!needDomGTPre && !needDomLTPre));
|
|
1418
|
-
}, higherGT = (a2, b6, options) => {
|
|
1419
|
-
if (!a2) return b6;
|
|
1420
|
-
const comp = compare(a2.semver, b6.semver, options);
|
|
1421
|
-
return comp > 0 ? a2 : comp < 0 || ">" === b6.operator && ">=" === a2.operator ? b6 : a2;
|
|
1422
|
-
}, lowerLT = (a2, b6, options) => {
|
|
1423
|
-
if (!a2) return b6;
|
|
1424
|
-
const comp = compare(a2.semver, b6.semver, options);
|
|
1425
|
-
return comp < 0 ? a2 : comp > 0 || "<" === b6.operator && "<=" === a2.operator ? b6 : a2;
|
|
1426
|
-
};
|
|
1427
|
-
module2.exports = (sub, dom, options = {}) => {
|
|
1428
|
-
if (sub === dom) return true;
|
|
1429
|
-
sub = new Range(sub, options), dom = new Range(dom, options);
|
|
1430
|
-
let sawNonNull = false;
|
|
1431
|
-
OUTER: for (const simpleSub of sub.set) {
|
|
1432
|
-
for (const simpleDom of dom.set) {
|
|
1433
|
-
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
1434
|
-
if (sawNonNull = sawNonNull || null !== isSub, isSub) continue OUTER;
|
|
1435
|
-
}
|
|
1436
|
-
if (sawNonNull) return false;
|
|
1437
|
-
}
|
|
1438
|
-
return true;
|
|
1439
|
-
};
|
|
1440
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/to-comparators.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1441
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1442
|
-
module2.exports = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1443
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/valid.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1444
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1445
|
-
module2.exports = (range, options) => {
|
|
1446
|
-
try {
|
|
1447
|
-
return new Range(range, options).range || "*";
|
|
1448
|
-
} catch (er2) {
|
|
1449
|
-
return null;
|
|
1450
|
-
}
|
|
1451
|
-
};
|
|
1452
|
-
}, crypto: (module2) => {
|
|
1453
|
-
"use strict";
|
|
1454
|
-
module2.exports = __require("crypto");
|
|
1455
|
-
}, fs: (module2) => {
|
|
1456
|
-
"use strict";
|
|
1457
|
-
module2.exports = __require("fs");
|
|
1458
|
-
}, module: (module2) => {
|
|
1459
|
-
"use strict";
|
|
1460
|
-
module2.exports = __require("module");
|
|
1461
|
-
}, path: (module2) => {
|
|
1462
|
-
"use strict";
|
|
1463
|
-
module2.exports = __require("path");
|
|
1464
246
|
} }, __webpack_module_cache__ = {};
|
|
1465
247
|
function __webpack_require__(moduleId) {
|
|
1466
248
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
1467
249
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
1468
|
-
var module2 = __webpack_module_cache__[moduleId] = {
|
|
1469
|
-
return __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__), module2.
|
|
250
|
+
var module2 = __webpack_module_cache__[moduleId] = { exports: {} };
|
|
251
|
+
return __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__), module2.exports;
|
|
1470
252
|
}
|
|
1471
253
|
__webpack_require__.n = (module2) => {
|
|
1472
254
|
var getter = module2 && module2.__esModule ? () => module2.default : () => module2;
|
|
1473
255
|
return __webpack_require__.d(getter, { a: getter }), getter;
|
|
1474
256
|
}, __webpack_require__.d = (exports2, definition) => {
|
|
1475
257
|
for (var key in definition) __webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key) && Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
|
|
1476
|
-
}, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
|
258
|
+
}, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1477
259
|
var __webpack_exports__ = {};
|
|
1478
260
|
(() => {
|
|
1479
261
|
"use strict";
|
|
1480
|
-
__webpack_require__.d(__webpack_exports__, { default: () =>
|
|
1481
|
-
|
|
1482
|
-
const external_perf_hooks_namespaceObject = __require("perf_hooks"), external_os_namespaceObject = __require("os"), external_vm_namespaceObject = __require("vm");
|
|
1483
|
-
var external_vm_default = __webpack_require__.n(external_vm_namespaceObject);
|
|
1484
|
-
const external_url_namespaceObject = __require("url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
262
|
+
__webpack_require__.d(__webpack_exports__, { default: () => createJiti2 });
|
|
263
|
+
const external_node_os_namespaceObject = __require("node:os"), external_node_url_namespaceObject = __require("node:url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
1485
264
|
function normalizeWindowsPath2(input = "") {
|
|
1486
265
|
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r3) => r3.toUpperCase()) : input;
|
|
1487
266
|
}
|
|
@@ -1495,6 +274,14 @@ var require_jiti = __commonJS({
|
|
|
1495
274
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
1496
275
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
1497
276
|
};
|
|
277
|
+
const resolve3 = function(...arguments_) {
|
|
278
|
+
let resolvedPath = "", resolvedAbsolute = false;
|
|
279
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
280
|
+
const path5 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
281
|
+
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute = isAbsolute2(path5));
|
|
282
|
+
}
|
|
283
|
+
return resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute2(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
284
|
+
};
|
|
1498
285
|
function normalizeString2(path5, allowAboveRoot) {
|
|
1499
286
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
1500
287
|
for (let index = 0; index <= path5.length; ++index) {
|
|
@@ -1524,72 +311,38 @@ var require_jiti = __commonJS({
|
|
|
1524
311
|
}
|
|
1525
312
|
return res;
|
|
1526
313
|
}
|
|
1527
|
-
const isAbsolute2 = function(
|
|
1528
|
-
return _IS_ABSOLUTE_RE2.test(
|
|
1529
|
-
}, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname3 = function(
|
|
1530
|
-
const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(
|
|
314
|
+
const isAbsolute2 = function(p3) {
|
|
315
|
+
return _IS_ABSOLUTE_RE2.test(p3);
|
|
316
|
+
}, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname3 = function(p3) {
|
|
317
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(p3));
|
|
1531
318
|
return match && match[1] || "";
|
|
1532
|
-
}, pathe_ff20891b_dirname = function(
|
|
1533
|
-
const segments = normalizeWindowsPath2(
|
|
1534
|
-
return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute2(
|
|
1535
|
-
}, basename2 = function(
|
|
1536
|
-
const lastSegment = normalizeWindowsPath2(
|
|
319
|
+
}, pathe_ff20891b_dirname = function(p3) {
|
|
320
|
+
const segments = normalizeWindowsPath2(p3).replace(/\/$/, "").split("/").slice(0, -1);
|
|
321
|
+
return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute2(p3) ? "/" : ".");
|
|
322
|
+
}, basename2 = function(p3, extension) {
|
|
323
|
+
const lastSegment = normalizeWindowsPath2(p3).split("/").pop();
|
|
1537
324
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
1538
|
-
}
|
|
1539
|
-
function jsonParseTransform2(key, value2) {
|
|
1540
|
-
if (!("__proto__" === key || "constructor" === key && value2 && "object" == typeof value2 && "prototype" in value2)) return value2;
|
|
1541
|
-
!function(key2) {
|
|
1542
|
-
console.warn(`[destr] Dropping "${key2}" key to prevent prototype pollution.`);
|
|
1543
|
-
}(key);
|
|
1544
|
-
}
|
|
1545
|
-
function destr2(value2, options = {}) {
|
|
1546
|
-
if ("string" != typeof value2) return value2;
|
|
1547
|
-
const _value = value2.trim();
|
|
1548
|
-
if ('"' === value2[0] && value2.endsWith('"') && !value2.includes("\\")) return _value.slice(1, -1);
|
|
1549
|
-
if (_value.length <= 9) {
|
|
1550
|
-
const _lval = _value.toLowerCase();
|
|
1551
|
-
if ("true" === _lval) return true;
|
|
1552
|
-
if ("false" === _lval) return false;
|
|
1553
|
-
if ("undefined" === _lval) return;
|
|
1554
|
-
if ("null" === _lval) return null;
|
|
1555
|
-
if ("nan" === _lval) return Number.NaN;
|
|
1556
|
-
if ("infinity" === _lval) return Number.POSITIVE_INFINITY;
|
|
1557
|
-
if ("-infinity" === _lval) return Number.NEGATIVE_INFINITY;
|
|
1558
|
-
}
|
|
1559
|
-
if (!JsonSigRx2.test(value2)) {
|
|
1560
|
-
if (options.strict) throw new SyntaxError("[destr] Invalid JSON");
|
|
1561
|
-
return value2;
|
|
1562
|
-
}
|
|
1563
|
-
try {
|
|
1564
|
-
if (suspectProtoRx2.test(value2) || suspectConstructorRx2.test(value2)) {
|
|
1565
|
-
if (options.strict) throw new Error("[destr] Possible prototype pollution");
|
|
1566
|
-
return JSON.parse(value2, jsonParseTransform2);
|
|
1567
|
-
}
|
|
1568
|
-
return JSON.parse(value2);
|
|
1569
|
-
} catch (error) {
|
|
1570
|
-
if (options.strict) throw error;
|
|
1571
|
-
return value2;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
325
|
+
};
|
|
1574
326
|
function escapeStringRegexp(string) {
|
|
1575
327
|
if ("string" != typeof string) throw new TypeError("Expected a string");
|
|
1576
328
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
1577
329
|
}
|
|
1578
|
-
var create_require = __webpack_require__("./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js"), create_require_default = __webpack_require__.n(create_require), semver = __webpack_require__("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/index.js");
|
|
1579
330
|
const pathSeparators = /* @__PURE__ */ new Set(["/", "\\", void 0]), normalizedAliasSymbol = Symbol.for("pathe:normalizedAlias");
|
|
1580
331
|
function normalizeAliases(_aliases) {
|
|
1581
332
|
if (_aliases[normalizedAliasSymbol]) return _aliases;
|
|
1582
|
-
const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([
|
|
1583
|
-
return b7.split("/").length -
|
|
1584
|
-
}(
|
|
333
|
+
const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([a3], [b6]) => function(a4, b7) {
|
|
334
|
+
return b7.split("/").length - a4.split("/").length;
|
|
335
|
+
}(a3, b6)));
|
|
1585
336
|
for (const key in aliases2) for (const alias in aliases2) alias === key || key.startsWith(alias) || aliases2[key].startsWith(alias) && pathSeparators.has(aliases2[key][alias.length]) && (aliases2[key] = aliases2[alias] + aliases2[key].slice(alias.length));
|
|
1586
337
|
return Object.defineProperty(aliases2, normalizedAliasSymbol, { value: true, enumerable: false }), aliases2;
|
|
1587
338
|
}
|
|
339
|
+
const FILENAME_RE = /(^|[/\\])([^/\\]+?)(?=(\.[^.]+)?$)/;
|
|
1588
340
|
function hasTrailingSlash2(path5 = "/") {
|
|
1589
341
|
const lastChar = path5[path5.length - 1];
|
|
1590
342
|
return "/" === lastChar || "\\" === lastChar;
|
|
1591
343
|
}
|
|
1592
|
-
var lib = __webpack_require__("./node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js"), object_hash = __webpack_require__("./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js"), object_hash_default = __webpack_require__.n(object_hash), astralIdentifierCodes2 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes2 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierStartChars2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", reservedWords2 = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, ecma5AndLessKeywords2 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", keywords$12 = { 5: ecma5AndLessKeywords2, "5module": ecma5AndLessKeywords2 + " export import", 6: ecma5AndLessKeywords2 + " const class extends export import super" }, keywordRelationalOperator2 = /^in(stanceof)?$/, nonASCIIidentifierStart2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "]"), nonASCIIidentifier2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");
|
|
344
|
+
const package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.3"}'), external_node_fs_namespaceObject = __require("node:fs"), external_node_crypto_namespaceObject = __require("node:crypto");
|
|
345
|
+
var astralIdentifierCodes2 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes2 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierStartChars2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", reservedWords2 = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, ecma5AndLessKeywords2 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", keywords$12 = { 5: ecma5AndLessKeywords2, "5module": ecma5AndLessKeywords2 + " export import", 6: ecma5AndLessKeywords2 + " const class extends export import super" }, keywordRelationalOperator2 = /^in(stanceof)?$/, nonASCIIidentifierStart2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "]"), nonASCIIidentifier2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");
|
|
1593
346
|
function isInAstralSet2(code, set) {
|
|
1594
347
|
for (var pos = 65536, i3 = 0; i3 < set.length; i3 += 2) {
|
|
1595
348
|
if ((pos += set[i3]) > code) return false;
|
|
@@ -1642,8 +395,8 @@ var require_jiti = __commonJS({
|
|
|
1642
395
|
Position3.prototype.offset = function(n) {
|
|
1643
396
|
return new Position3(this.line, this.column + n);
|
|
1644
397
|
};
|
|
1645
|
-
var SourceLocation3 = function(
|
|
1646
|
-
this.start = start, this.end = end, null !==
|
|
398
|
+
var SourceLocation3 = function(p3, start, end) {
|
|
399
|
+
this.start = start, this.end = end, null !== p3.sourceFile && (this.source = p3.sourceFile);
|
|
1647
400
|
};
|
|
1648
401
|
function getLineInfo2(input, offset2) {
|
|
1649
402
|
for (var line = 1, cur = 0; ; ) {
|
|
@@ -1719,7 +472,7 @@ var require_jiti = __commonJS({
|
|
|
1719
472
|
}, Parser3.tokenizer = function(input, options) {
|
|
1720
473
|
return new this(options, input);
|
|
1721
474
|
}, Object.defineProperties(Parser3.prototype, prototypeAccessors2);
|
|
1722
|
-
var pp$92 = Parser3.prototype, literal2 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")
|
|
475
|
+
var pp$92 = Parser3.prototype, literal2 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/s;
|
|
1723
476
|
pp$92.strictDirective = function(start) {
|
|
1724
477
|
if (this.options.ecmaVersion < 5) return false;
|
|
1725
478
|
for (; ; ) {
|
|
@@ -1880,8 +633,8 @@ var require_jiti = __commonJS({
|
|
|
1880
633
|
var init$1 = this.startNode(), kind = isLet ? "let" : this.value;
|
|
1881
634
|
return this.next(), this.parseVar(init$1, true, kind), this.finishNode(init$1, "VariableDeclaration"), (this.type === types$12._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && 1 === init$1.declarations.length ? (this.options.ecmaVersion >= 9 && (this.type === types$12._in ? awaitAt > -1 && this.unexpected(awaitAt) : node.await = awaitAt > -1), this.parseForIn(node, init$1)) : (awaitAt > -1 && this.unexpected(awaitAt), this.parseFor(node, init$1));
|
|
1882
635
|
}
|
|
1883
|
-
var startsWithLet = this.isContextual("let"), isForOf = false, refDestructuringErrors = new DestructuringErrors3(),
|
|
1884
|
-
return this.type === types$12._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (
|
|
636
|
+
var startsWithLet = this.isContextual("let"), isForOf = false, containsEsc = this.containsEsc, refDestructuringErrors = new DestructuringErrors3(), initPos = this.start, init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, "await") : this.parseExpression(true, refDestructuringErrors);
|
|
637
|
+
return this.type === types$12._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (awaitAt > -1 ? (this.type === types$12._in && this.unexpected(awaitAt), node.await = true) : isForOf && this.options.ecmaVersion >= 8 && (init.start !== initPos || containsEsc || "Identifier" !== init.type || "async" !== init.name ? this.options.ecmaVersion >= 9 && (node.await = false) : this.unexpected()), startsWithLet && isForOf && this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(init, false, refDestructuringErrors), this.checkLValPattern(init), this.parseForIn(node, init)) : (this.checkExpressionErrors(refDestructuringErrors, true), awaitAt > -1 && this.unexpected(awaitAt), this.parseFor(node, init));
|
|
1885
638
|
}, pp$82.parseFunctionStatement = function(node, isAsync2, declarationPosition) {
|
|
1886
639
|
return this.next(), this.parseFunction(node, FUNC_STATEMENT2 | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT2), false, isAsync2);
|
|
1887
640
|
}, pp$82.parseIfStatement = function(node) {
|
|
@@ -2263,8 +1016,8 @@ var require_jiti = __commonJS({
|
|
|
2263
1016
|
};
|
|
2264
1017
|
var TokContext3 = function(token, isExpr, preserveSpace, override, generator) {
|
|
2265
1018
|
this.token = token, this.isExpr = !!isExpr, this.preserveSpace = !!preserveSpace, this.override = override, this.generator = !!generator;
|
|
2266
|
-
}, types2 = { b_stat: new TokContext3("{", false), b_expr: new TokContext3("{", true), b_tmpl: new TokContext3("${", false), p_stat: new TokContext3("(", false), p_expr: new TokContext3("(", true), q_tmpl: new TokContext3("`", true, true, function(
|
|
2267
|
-
return
|
|
1019
|
+
}, types2 = { b_stat: new TokContext3("{", false), b_expr: new TokContext3("{", true), b_tmpl: new TokContext3("${", false), p_stat: new TokContext3("(", false), p_expr: new TokContext3("(", true), q_tmpl: new TokContext3("`", true, true, function(p3) {
|
|
1020
|
+
return p3.tryReadTemplateToken();
|
|
2268
1021
|
}), f_stat: new TokContext3("function", false), f_expr: new TokContext3("function", true), f_expr_gen: new TokContext3("function", true, false, null, true), f_gen: new TokContext3("function", false, false, null, true) }, pp$62 = Parser3.prototype;
|
|
2269
1022
|
pp$62.initialContext = function() {
|
|
2270
1023
|
return [types2.b_stat];
|
|
@@ -2314,8 +1067,11 @@ var require_jiti = __commonJS({
|
|
|
2314
1067
|
this.options.ecmaVersion >= 6 && prevType !== types$12.dot && ("of" === this.value && !this.exprAllowed || "yield" === this.value && this.inGeneratorContext()) && (allowed = true), this.exprAllowed = allowed;
|
|
2315
1068
|
};
|
|
2316
1069
|
var pp$52 = Parser3.prototype;
|
|
1070
|
+
function isLocalVariableAccess2(node) {
|
|
1071
|
+
return "Identifier" === node.type || "ParenthesizedExpression" === node.type && isLocalVariableAccess2(node.expression);
|
|
1072
|
+
}
|
|
2317
1073
|
function isPrivateFieldAccess2(node) {
|
|
2318
|
-
return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression);
|
|
1074
|
+
return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression) || "ParenthesizedExpression" === node.type && isPrivateFieldAccess2(node.expression);
|
|
2319
1075
|
}
|
|
2320
1076
|
pp$52.checkPropClash = function(prop, propHash, refDestructuringErrors) {
|
|
2321
1077
|
if (!(this.options.ecmaVersion >= 9 && "SpreadElement" === prop.type || this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))) {
|
|
@@ -2393,7 +1149,7 @@ var require_jiti = __commonJS({
|
|
|
2393
1149
|
if (this.isContextual("await") && this.canAwait) expr = this.parseAwait(forInit), sawUnary = true;
|
|
2394
1150
|
else if (this.type.prefix) {
|
|
2395
1151
|
var node = this.startNode(), update = this.type === types$12.incDec;
|
|
2396
|
-
node.operator = this.value, node.prefix = true, this.next(), node.argument = this.parseMaybeUnary(null, true, update, forInit), this.checkExpressionErrors(refDestructuringErrors, true), update ? this.checkLValSimple(node.argument) : this.strict && "delete" === node.operator &&
|
|
1152
|
+
node.operator = this.value, node.prefix = true, this.next(), node.argument = this.parseMaybeUnary(null, true, update, forInit), this.checkExpressionErrors(refDestructuringErrors, true), update ? this.checkLValSimple(node.argument) : this.strict && "delete" === node.operator && isLocalVariableAccess2(node.argument) ? this.raiseRecoverable(node.start, "Deleting local variable in strict mode") : "delete" === node.operator && isPrivateFieldAccess2(node.argument) ? this.raiseRecoverable(node.start, "Private fields can not be deleted") : sawUnary = true, expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
|
|
2397
1153
|
} else if (sawUnary || this.type !== types$12.privateId) {
|
|
2398
1154
|
if (expr = this.parseExprSubscripts(refDestructuringErrors, forInit), this.checkExpressionErrors(refDestructuringErrors)) return expr;
|
|
2399
1155
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
@@ -2563,7 +1319,7 @@ var require_jiti = __commonJS({
|
|
|
2563
1319
|
return node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false), this.eat(types$12.parenL) ? node.arguments = this.parseExprList(types$12.parenR, this.options.ecmaVersion >= 8, false) : node.arguments = empty2, this.finishNode(node, "NewExpression");
|
|
2564
1320
|
}, pp$52.parseTemplateElement = function(ref3) {
|
|
2565
1321
|
var isTagged = ref3.isTagged, elem = this.startNode();
|
|
2566
|
-
return this.type === types$12.invalidTemplate ? (isTagged || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), elem.value = { raw: this.value, cooked: null }) : elem.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), cooked: this.value }, this.next(), elem.tail = this.type === types$12.backQuote, this.finishNode(elem, "TemplateElement");
|
|
1322
|
+
return this.type === types$12.invalidTemplate ? (isTagged || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), elem.value = { raw: this.value.replace(/\r\n?/g, "\n"), cooked: null }) : elem.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), cooked: this.value }, this.next(), elem.tail = this.type === types$12.backQuote, this.finishNode(elem, "TemplateElement");
|
|
2567
1323
|
}, pp$52.parseTemplate = function(ref3) {
|
|
2568
1324
|
void 0 === ref3 && (ref3 = {});
|
|
2569
1325
|
var isTagged = ref3.isTagged;
|
|
@@ -2741,8 +1497,17 @@ var require_jiti = __commonJS({
|
|
|
2741
1497
|
for (var i2 = 0, list = [9, 10, 11, 12, 13, 14]; i2 < list.length; i2 += 1) {
|
|
2742
1498
|
buildUnicodeData2(list[i2]);
|
|
2743
1499
|
}
|
|
2744
|
-
var pp$12 = Parser3.prototype,
|
|
2745
|
-
this.
|
|
1500
|
+
var pp$12 = Parser3.prototype, BranchID3 = function(parent, base) {
|
|
1501
|
+
this.parent = parent, this.base = base || this;
|
|
1502
|
+
};
|
|
1503
|
+
BranchID3.prototype.separatedFrom = function(alt) {
|
|
1504
|
+
for (var self2 = this; self2; self2 = self2.parent) for (var other = alt; other; other = other.parent) if (self2.base === other.base && self2 !== other) return true;
|
|
1505
|
+
return false;
|
|
1506
|
+
}, BranchID3.prototype.sibling = function() {
|
|
1507
|
+
return new BranchID3(this.parent, this.base);
|
|
1508
|
+
};
|
|
1509
|
+
var RegExpValidationState3 = function(parser) {
|
|
1510
|
+
this.parser = parser, this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = data2[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = false, this.switchV = false, this.switchN = false, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = false, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
2746
1511
|
};
|
|
2747
1512
|
function isSyntaxCharacter2(ch) {
|
|
2748
1513
|
return 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
|
|
@@ -2757,18 +1522,18 @@ var require_jiti = __commonJS({
|
|
|
2757
1522
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
2758
1523
|
}, RegExpValidationState3.prototype.at = function(i3, forceU) {
|
|
2759
1524
|
void 0 === forceU && (forceU = false);
|
|
2760
|
-
var s2 = this.source,
|
|
2761
|
-
if (i3 >=
|
|
1525
|
+
var s2 = this.source, l3 = s2.length;
|
|
1526
|
+
if (i3 >= l3) return -1;
|
|
2762
1527
|
var c = s2.charCodeAt(i3);
|
|
2763
|
-
if (!forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >=
|
|
1528
|
+
if (!forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l3) return c;
|
|
2764
1529
|
var next = s2.charCodeAt(i3 + 1);
|
|
2765
1530
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
2766
1531
|
}, RegExpValidationState3.prototype.nextIndex = function(i3, forceU) {
|
|
2767
1532
|
void 0 === forceU && (forceU = false);
|
|
2768
|
-
var s2 = this.source,
|
|
2769
|
-
if (i3 >=
|
|
1533
|
+
var s2 = this.source, l3 = s2.length;
|
|
1534
|
+
if (i3 >= l3) return l3;
|
|
2770
1535
|
var next, c = s2.charCodeAt(i3);
|
|
2771
|
-
return !forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >=
|
|
1536
|
+
return !forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l3 || (next = s2.charCodeAt(i3 + 1)) < 56320 || next > 57343 ? i3 + 1 : i3 + 2;
|
|
2772
1537
|
}, RegExpValidationState3.prototype.current = function(forceU) {
|
|
2773
1538
|
return void 0 === forceU && (forceU = false), this.at(this.pos, forceU);
|
|
2774
1539
|
}, RegExpValidationState3.prototype.lookahead = function(forceU) {
|
|
@@ -2792,16 +1557,20 @@ var require_jiti = __commonJS({
|
|
|
2792
1557
|
}
|
|
2793
1558
|
this.options.ecmaVersion >= 15 && u3 && v5 && this.raise(state.start, "Invalid regular expression flag");
|
|
2794
1559
|
}, pp$12.validateRegExpPattern = function(state) {
|
|
2795
|
-
this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 &&
|
|
1560
|
+
this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 && function(obj) {
|
|
1561
|
+
for (var _7 in obj) return true;
|
|
1562
|
+
return false;
|
|
1563
|
+
}(state.groupNames) && (state.switchN = true, this.regexp_pattern(state));
|
|
2796
1564
|
}, pp$12.regexp_pattern = function(state) {
|
|
2797
|
-
state.pos = 0, state.lastIntValue = 0, state.lastStringValue = "", state.lastAssertionIsQuantifiable = false, state.numCapturingParens = 0, state.maxBackReference = 0, state.groupNames
|
|
1565
|
+
state.pos = 0, state.lastIntValue = 0, state.lastStringValue = "", state.lastAssertionIsQuantifiable = false, state.numCapturingParens = 0, state.maxBackReference = 0, state.groupNames = /* @__PURE__ */ Object.create(null), state.backReferenceNames.length = 0, state.branchID = null, this.regexp_disjunction(state), state.pos !== state.source.length && (state.eat(41) && state.raise("Unmatched ')'"), (state.eat(93) || state.eat(125)) && state.raise("Lone quantifier brackets")), state.maxBackReference > state.numCapturingParens && state.raise("Invalid escape");
|
|
2798
1566
|
for (var i3 = 0, list2 = state.backReferenceNames; i3 < list2.length; i3 += 1) {
|
|
2799
1567
|
var name = list2[i3];
|
|
2800
|
-
|
|
1568
|
+
state.groupNames[name] || state.raise("Invalid named capture referenced");
|
|
2801
1569
|
}
|
|
2802
1570
|
}, pp$12.regexp_disjunction = function(state) {
|
|
2803
|
-
|
|
2804
|
-
|
|
1571
|
+
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
1572
|
+
for (trackDisjunction && (state.branchID = new BranchID3(state.branchID, null)), this.regexp_alternative(state); state.eat(124); ) trackDisjunction && (state.branchID = state.branchID.sibling()), this.regexp_alternative(state);
|
|
1573
|
+
trackDisjunction && (state.branchID = state.branchID.parent), this.regexp_eatQuantifier(state, true) && state.raise("Nothing to repeat"), state.eat(123) && state.raise("Lone quantifier brackets");
|
|
2805
1574
|
}, pp$12.regexp_alternative = function(state) {
|
|
2806
1575
|
for (; state.pos < state.source.length && this.regexp_eatTerm(state); ) ;
|
|
2807
1576
|
}, pp$12.regexp_eatTerm = function(state) {
|
|
@@ -2870,8 +1639,13 @@ var require_jiti = __commonJS({
|
|
|
2870
1639
|
return !(-1 === ch || 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || 91 === ch || 94 === ch || 124 === ch) && (state.advance(), true);
|
|
2871
1640
|
}, pp$12.regexp_groupSpecifier = function(state) {
|
|
2872
1641
|
if (state.eat(63)) {
|
|
2873
|
-
|
|
2874
|
-
state.
|
|
1642
|
+
this.regexp_eatGroupName(state) || state.raise("Invalid group");
|
|
1643
|
+
var trackDisjunction = this.options.ecmaVersion >= 16, known = state.groupNames[state.lastStringValue];
|
|
1644
|
+
if (known) if (trackDisjunction) for (var i3 = 0, list2 = known; i3 < list2.length; i3 += 1) {
|
|
1645
|
+
list2[i3].separatedFrom(state.branchID) || state.raise("Duplicate capture group name");
|
|
1646
|
+
}
|
|
1647
|
+
else state.raise("Duplicate capture group name");
|
|
1648
|
+
trackDisjunction ? (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID) : state.groupNames[state.lastStringValue] = true;
|
|
2875
1649
|
}
|
|
2876
1650
|
}, pp$12.regexp_eatGroupName = function(state) {
|
|
2877
1651
|
if (state.lastStringValue = "", state.eat(60)) {
|
|
@@ -3170,8 +1944,8 @@ var require_jiti = __commonJS({
|
|
|
3170
1944
|
}
|
|
3171
1945
|
return true;
|
|
3172
1946
|
};
|
|
3173
|
-
var Token3 = function(
|
|
3174
|
-
this.type =
|
|
1947
|
+
var Token3 = function(p3) {
|
|
1948
|
+
this.type = p3.type, this.value = p3.value, this.start = p3.start, this.end = p3.end, p3.options.locations && (this.loc = new SourceLocation3(p3, p3.startLoc, p3.endLoc)), p3.options.ranges && (this.range = [p3.start, p3.end]);
|
|
3175
1949
|
}, pp2 = Parser3.prototype;
|
|
3176
1950
|
function stringToBigInt2(str) {
|
|
3177
1951
|
return "function" != typeof BigInt ? null : BigInt(str.replace(/_/g, ""));
|
|
@@ -3476,6 +2250,12 @@ var require_jiti = __commonJS({
|
|
|
3476
2250
|
if ("{" !== this.input[this.pos + 1]) break;
|
|
3477
2251
|
case "`":
|
|
3478
2252
|
return this.finishToken(types$12.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
2253
|
+
case "\r":
|
|
2254
|
+
"\n" === this.input[this.pos + 1] && ++this.pos;
|
|
2255
|
+
case "\n":
|
|
2256
|
+
case "\u2028":
|
|
2257
|
+
case "\u2029":
|
|
2258
|
+
++this.curLine, this.lineStart = this.pos + 1;
|
|
3479
2259
|
}
|
|
3480
2260
|
this.raise(this.start, "Unterminated template");
|
|
3481
2261
|
}, pp2.readEscapedChar = function(inTemplate) {
|
|
@@ -3512,7 +2292,7 @@ var require_jiti = __commonJS({
|
|
|
3512
2292
|
var octalStr = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], octal = parseInt(octalStr, 8);
|
|
3513
2293
|
return octal > 255 && (octalStr = octalStr.slice(0, -1), octal = parseInt(octalStr, 8)), this.pos += octalStr.length - 1, ch = this.input.charCodeAt(this.pos), "0" === octalStr && 56 !== ch && 57 !== ch || !this.strict && !inTemplate || this.invalidStringToken(this.pos - 1 - octalStr.length, inTemplate ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(octal);
|
|
3514
2294
|
}
|
|
3515
|
-
return isNewLine2(ch) ? "" : String.fromCharCode(ch);
|
|
2295
|
+
return isNewLine2(ch) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ch);
|
|
3516
2296
|
}
|
|
3517
2297
|
}, pp2.readHexChar = function(len) {
|
|
3518
2298
|
var codePos = this.pos, n = this.readInt(16, len);
|
|
@@ -3537,8 +2317,8 @@ var require_jiti = __commonJS({
|
|
|
3537
2317
|
var word = this.readWord1(), type = types$12.name;
|
|
3538
2318
|
return this.keywords.test(word) && (type = keywords2[word]), this.finishToken(type, word);
|
|
3539
2319
|
};
|
|
3540
|
-
Parser3.acorn = { Parser: Parser3, version: "8.
|
|
3541
|
-
const external_node_module_namespaceObject = __require("module")
|
|
2320
|
+
Parser3.acorn = { Parser: Parser3, version: "8.12.0", defaultOptions: defaultOptions2, Position: Position3, SourceLocation: SourceLocation3, getLineInfo: getLineInfo2, Node: Node3, TokenType: TokenType3, tokTypes: types$12, keywordTypes: keywords2, TokContext: TokContext3, tokContexts: types2, isIdentifierChar: isIdentifierChar2, isIdentifierStart: isIdentifierStart2, Token: Token3, isNewLine: isNewLine2, lineBreak: lineBreak2, lineBreakG: lineBreakG2, nonASCIIwhitespace: nonASCIIwhitespace2 };
|
|
2321
|
+
const external_node_module_namespaceObject = __require("node:module");
|
|
3542
2322
|
Math.floor, String.fromCharCode;
|
|
3543
2323
|
const TRAILING_SLASH_RE2 = /\/$|\/\?|\/#/, JOIN_LEADING_SLASH_RE2 = /^\.?\//;
|
|
3544
2324
|
function dist_hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
@@ -3566,7 +2346,7 @@ var require_jiti = __commonJS({
|
|
|
3566
2346
|
}
|
|
3567
2347
|
Symbol.for("ufo:protocolRelative");
|
|
3568
2348
|
Object.defineProperty;
|
|
3569
|
-
const
|
|
2349
|
+
const external_node_assert_namespaceObject = __require("node:assert"), external_node_process_namespaceObject = __require("node:process"), external_node_path_namespaceObject = __require("node:path"), external_node_v8_namespaceObject = __require("node:v8"), external_node_util_namespaceObject = __require("node:util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
|
|
3570
2350
|
function normalizeSlash2(path5) {
|
|
3571
2351
|
return path5.replace(/\\/g, "/");
|
|
3572
2352
|
}
|
|
@@ -3889,9 +2669,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3889
2669
|
}
|
|
3890
2670
|
throw exportsNotFound2(packageSubpath, packageJsonUrl, base);
|
|
3891
2671
|
}
|
|
3892
|
-
function patternKeyCompare2(
|
|
3893
|
-
const aPatternIndex =
|
|
3894
|
-
return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex ||
|
|
2672
|
+
function patternKeyCompare2(a3, b6) {
|
|
2673
|
+
const aPatternIndex = a3.indexOf("*"), bPatternIndex = b6.indexOf("*"), baseLengthA = -1 === aPatternIndex ? a3.length : aPatternIndex + 1, baseLengthB = -1 === bPatternIndex ? b6.length : bPatternIndex + 1;
|
|
2674
|
+
return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex || a3.length > b6.length ? -1 : b6.length > a3.length ? 1 : 0;
|
|
3895
2675
|
}
|
|
3896
2676
|
function packageImportsResolve2(name, base, conditions) {
|
|
3897
2677
|
if ("#" === name || name.startsWith("#/") || name.endsWith("/")) {
|
|
@@ -4060,220 +2840,285 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
4060
2840
|
function hasESMSyntax(code, opts = {}) {
|
|
4061
2841
|
return opts.stripComments && (code = code.replace(COMMENT_RE, "")), ESM_RE.test(code);
|
|
4062
2842
|
}
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
return
|
|
2843
|
+
const dist_r = /* @__PURE__ */ Object.create(null), E3 = (e2) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e2 ? dist_r : globalThis), dist_s = new Proxy(dist_r, { get: (e2, o) => E3()[o] ?? dist_r[o], has: (e2, o) => o in E3() || o in dist_r, set: (e2, o, i3) => (E3(true)[o] = i3, true), deleteProperty(e2, o) {
|
|
2844
|
+
if (!o) return false;
|
|
2845
|
+
return delete E3(true)[o], true;
|
|
2846
|
+
}, ownKeys() {
|
|
2847
|
+
const e2 = E3(true);
|
|
2848
|
+
return Object.keys(e2);
|
|
2849
|
+
} }), dist_t = typeof process < "u" && process.env && process.env.NODE_ENV || "", p2 = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"]];
|
|
2850
|
+
const l2 = function() {
|
|
2851
|
+
if (globalThis.process?.env) for (const e2 of p2) {
|
|
2852
|
+
const o = e2[1] || e2[0];
|
|
2853
|
+
if (globalThis.process?.env[o]) return { name: e2[0].toLowerCase(), ...e2[2] };
|
|
2854
|
+
}
|
|
2855
|
+
return "/bin/jsh" === globalThis.process?.env?.SHELL && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
|
|
2856
|
+
}();
|
|
2857
|
+
l2.name;
|
|
2858
|
+
function dist_n(e2) {
|
|
2859
|
+
return !!e2 && "false" !== e2;
|
|
2860
|
+
}
|
|
2861
|
+
const I4 = globalThis.process?.platform || "", T5 = dist_n(dist_s.CI) || false !== l2.ci, R4 = dist_n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), C4 = (dist_n(dist_s.DEBUG), "test" === dist_t || dist_n(dist_s.TEST)), a2 = (dist_n(dist_s.MINIMAL), /^win/i.test(I4)), _6 = (/^linux/i.test(I4), /^darwin/i.test(I4), !dist_n(dist_s.NO_COLOR) && (dist_n(dist_s.FORCE_COLOR) || (R4 || a2) && dist_s.TERM), (globalThis.process?.versions?.node || "").replace(/^v/, "") || null), W6 = (Number(_6?.split(".")[0]), globalThis.process || /* @__PURE__ */ Object.create(null)), dist_c = { versions: {} }, A2 = (new Proxy(W6, { get: (e2, o) => "env" === o ? dist_s : o in e2 ? e2[o] : o in dist_c ? dist_c[o] : void 0 }), "node" === globalThis.process?.release?.name), L2 = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D4 = !!globalThis.Deno, O4 = !!globalThis.fastly, F2 = [[!!globalThis.Netlify, "netlify"], [!!globalThis.EdgeRuntime, "edge-light"], ["Cloudflare-Workers" === globalThis.navigator?.userAgent, "workerd"], [O4, "fastly"], [D4, "deno"], [L2, "bun"], [A2, "node"], [!!globalThis.__lagon__, "lagon"]];
|
|
2862
|
+
!function() {
|
|
2863
|
+
const e2 = F2.find((o) => o[0]);
|
|
2864
|
+
if (e2) e2[1];
|
|
2865
|
+
}();
|
|
2866
|
+
const hasColors = __require("node:tty").WriteStream.prototype.hasColors(), base_format = (open, close) => {
|
|
2867
|
+
if (!hasColors) return (input) => input;
|
|
2868
|
+
const openCode = `\x1B[${open}m`, closeCode = `\x1B[${close}m`;
|
|
2869
|
+
return (input) => {
|
|
2870
|
+
const string = input + "";
|
|
2871
|
+
let index = string.indexOf(closeCode);
|
|
2872
|
+
if (-1 === index) return openCode + string + closeCode;
|
|
2873
|
+
let result = openCode, lastIndex = 0;
|
|
2874
|
+
for (; -1 !== index; ) result += string.slice(lastIndex, index) + openCode, lastIndex = index + closeCode.length, index = string.indexOf(closeCode, lastIndex);
|
|
2875
|
+
return result += string.slice(lastIndex) + closeCode, result;
|
|
2876
|
+
};
|
|
2877
|
+
}, red = (base_format(0, 0), base_format(1, 22), base_format(2, 22), base_format(3, 23), base_format(4, 24), base_format(53, 55), base_format(7, 27), base_format(8, 28), base_format(9, 29), base_format(30, 39), base_format(31, 39)), green = base_format(32, 39), yellow = base_format(33, 39), blue = base_format(34, 39), cyan = (base_format(35, 39), base_format(36, 39)), gray = (base_format(37, 39), base_format(90, 39));
|
|
2878
|
+
base_format(40, 49), base_format(41, 49), base_format(42, 49), base_format(43, 49), base_format(44, 49), base_format(45, 49), base_format(46, 49), base_format(47, 49), base_format(100, 49), base_format(91, 39), base_format(92, 39), base_format(93, 39), base_format(94, 39), base_format(95, 39), base_format(96, 39), base_format(97, 39), base_format(101, 49), base_format(102, 49), base_format(103, 49), base_format(104, 49), base_format(105, 49), base_format(106, 49), base_format(107, 49);
|
|
2879
|
+
function isDir(filename) {
|
|
2880
|
+
if (filename instanceof URL || filename.startsWith("file://")) return false;
|
|
2881
|
+
try {
|
|
2882
|
+
return (0, external_node_fs_namespaceObject.lstatSync)(filename).isDirectory();
|
|
2883
|
+
} catch {
|
|
2884
|
+
return false;
|
|
2885
|
+
}
|
|
4066
2886
|
}
|
|
4067
|
-
|
|
4068
|
-
return
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
function
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
})).then(fulfilled, rejected);
|
|
2887
|
+
function md5(content, len = 8) {
|
|
2888
|
+
return (0, external_node_crypto_namespaceObject.createHash)("md5").update(content).digest("hex").slice(0, len);
|
|
2889
|
+
}
|
|
2890
|
+
const debugMap = { true: green("true"), false: yellow("false"), "[esm]": blue("[esm]"), "[cjs]": green("[cjs]"), "[import]": blue("[import]"), "[require]": green("[require]"), "[native]": cyan("[native]"), "[transpile]": yellow("[transpile]"), "[fallback]": red("[fallback]"), "[unknown]": red("[unknown]"), "[hit]": green("[hit]"), "[miss]": yellow("[miss]"), "[json]": green("[json]") };
|
|
2891
|
+
function debug2(ctx, ...args) {
|
|
2892
|
+
if (!ctx.opts.debug) return;
|
|
2893
|
+
const cwd2 = process.cwd();
|
|
2894
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd2, "."))].join(" ")));
|
|
2895
|
+
}
|
|
2896
|
+
function jitiInteropDefault(ctx, mod) {
|
|
2897
|
+
return ctx.opts.interopDefault ? function(sourceModule, opts = {}) {
|
|
2898
|
+
if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
|
|
2899
|
+
var value2;
|
|
2900
|
+
const defaultValue = sourceModule.default;
|
|
2901
|
+
if (null == defaultValue) return sourceModule;
|
|
2902
|
+
const _defaultType = typeof defaultValue;
|
|
2903
|
+
if ("object" !== _defaultType && ("function" !== _defaultType || opts.preferNamespace)) return opts.preferNamespace ? sourceModule : defaultValue;
|
|
2904
|
+
for (const key in sourceModule) try {
|
|
2905
|
+
key in defaultValue || Object.defineProperty(defaultValue, key, { enumerable: "default" !== key, configurable: "default" !== key, get: () => sourceModule[key] });
|
|
2906
|
+
} catch {
|
|
4088
2907
|
}
|
|
4089
|
-
|
|
4090
|
-
});
|
|
4091
|
-
}
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
2908
|
+
return defaultValue;
|
|
2909
|
+
}(mod) : mod;
|
|
2910
|
+
}
|
|
2911
|
+
function _booleanEnv(name, defaultValue) {
|
|
2912
|
+
const val = _jsonEnv(name, defaultValue);
|
|
2913
|
+
return Boolean(val);
|
|
2914
|
+
}
|
|
2915
|
+
function _jsonEnv(name, defaultValue) {
|
|
2916
|
+
const envValue = process.env[name];
|
|
2917
|
+
if (!(name in process.env)) return defaultValue;
|
|
2918
|
+
try {
|
|
2919
|
+
return JSON.parse(envValue);
|
|
2920
|
+
} catch {
|
|
2921
|
+
return defaultValue;
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
const JS_EXT_RE = /\.(c|m)?j(sx?)$/, TS_EXT_RE = /\.(c|m)?t(sx?)$/;
|
|
2925
|
+
function jitiResolve(ctx, id, options) {
|
|
2926
|
+
let resolved, lastError;
|
|
2927
|
+
if (ctx.isNativeRe.test(id)) return id;
|
|
2928
|
+
ctx.alias && (id = function(path5, aliases2) {
|
|
2929
|
+
const _path = normalizeWindowsPath2(path5);
|
|
2930
|
+
aliases2 = normalizeAliases(aliases2);
|
|
2931
|
+
for (const [alias, to] of Object.entries(aliases2)) {
|
|
2932
|
+
if (!_path.startsWith(alias)) continue;
|
|
2933
|
+
const _alias = hasTrailingSlash2(alias) ? alias.slice(0, -1) : alias;
|
|
2934
|
+
if (hasTrailingSlash2(_path[_alias.length])) return join4(to, _path.slice(alias.length));
|
|
2935
|
+
}
|
|
2936
|
+
return _path;
|
|
2937
|
+
}(id, ctx.alias));
|
|
2938
|
+
let parentURL = options?.parentURL || ctx.url;
|
|
2939
|
+
isDir(parentURL) && (parentURL = join4(parentURL, "_index.js"));
|
|
2940
|
+
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
2941
|
+
for (const conditions of conditionSets) {
|
|
4100
2942
|
try {
|
|
4101
|
-
|
|
4102
|
-
} catch (
|
|
4103
|
-
|
|
2943
|
+
resolved = resolvePathSync2(id, { url: parentURL, conditions, extensions: ctx.opts.extensions });
|
|
2944
|
+
} catch (error) {
|
|
2945
|
+
lastError = error;
|
|
4104
2946
|
}
|
|
4105
|
-
|
|
4106
|
-
|
|
2947
|
+
if (resolved) return resolved;
|
|
2948
|
+
}
|
|
2949
|
+
try {
|
|
2950
|
+
return ctx.nativeRequire.resolve(id, options);
|
|
2951
|
+
} catch (error) {
|
|
2952
|
+
lastError = error;
|
|
2953
|
+
}
|
|
2954
|
+
for (const ext of ctx.additionalExts) {
|
|
2955
|
+
if (resolved = tryNativeRequireResolve(ctx, id + ext, parentURL, options) || tryNativeRequireResolve(ctx, id + "/index" + ext, parentURL, options), resolved) return resolved;
|
|
2956
|
+
if ((TS_EXT_RE.test(ctx.filename) || TS_EXT_RE.test(ctx.parentModule?.filename || "")) && (resolved = tryNativeRequireResolve(ctx, id.replace(JS_EXT_RE, ".$1t$2"), parentURL, options), resolved)) return resolved;
|
|
2957
|
+
}
|
|
2958
|
+
if (!options?.try) throw lastError;
|
|
2959
|
+
}
|
|
2960
|
+
function tryNativeRequireResolve(ctx, id, parentURL, options) {
|
|
2961
|
+
try {
|
|
2962
|
+
return ctx.nativeRequire.resolve(id, { ...options, paths: [pathe_ff20891b_dirname(fileURLToPath3(parentURL)), ...options?.paths || []] });
|
|
2963
|
+
} catch {
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
const external_node_perf_hooks_namespaceObject = __require("node:perf_hooks"), external_node_vm_namespaceObject = __require("node:vm");
|
|
2967
|
+
var external_node_vm_default = __webpack_require__.n(external_node_vm_namespaceObject);
|
|
2968
|
+
function jitiRequire(ctx, id, opts) {
|
|
2969
|
+
const cache3 = ctx.parentCache || {};
|
|
2970
|
+
if (id.startsWith("node:") ? id = id.slice(5) : id.startsWith("file:") && (id = (0, external_node_url_namespaceObject.fileURLToPath)(id)), external_node_module_namespaceObject.builtinModules.includes(id) || ".pnp.js" === id) return nativeImportOrRequire(ctx, id, opts.async);
|
|
2971
|
+
if (ctx.opts.experimentalBun && !ctx.opts.transformOptions) try {
|
|
2972
|
+
if (!(id = jitiResolve(ctx, id, opts)) && opts.try) return;
|
|
2973
|
+
if (debug2(ctx, "[bun]", "[native]", opts.async && ctx.nativeImport ? "[import]" : "[require]", id), opts.async && ctx.nativeImport) return ctx.nativeImport(id).then((m3) => (false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, m3)));
|
|
2974
|
+
{
|
|
2975
|
+
const _mod = ctx.nativeRequire(id);
|
|
2976
|
+
return false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, _mod);
|
|
2977
|
+
}
|
|
2978
|
+
} catch (error) {
|
|
2979
|
+
debug2(ctx, `[bun] Using fallback for ${id} because of an error:`, error);
|
|
2980
|
+
}
|
|
2981
|
+
const filename = jitiResolve(ctx, id, opts);
|
|
2982
|
+
if (!filename && opts.try) return;
|
|
2983
|
+
const ext = extname3(filename);
|
|
2984
|
+
if (".json" === ext) {
|
|
2985
|
+
debug2(ctx, "[json]", filename);
|
|
2986
|
+
const jsonModule = ctx.nativeRequire(filename);
|
|
2987
|
+
return jsonModule && !("default" in jsonModule) && Object.defineProperty(jsonModule, "default", { value: jsonModule, enumerable: false }), jsonModule;
|
|
2988
|
+
}
|
|
2989
|
+
if (ext && !ctx.opts.extensions.includes(ext)) return debug2(ctx, "[native]", "[unknown]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
|
|
2990
|
+
if (ctx.isNativeRe.test(filename)) return debug2(ctx, "[native]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
|
|
2991
|
+
if (cache3[filename]) return jitiInteropDefault(ctx, cache3[filename]?.exports);
|
|
2992
|
+
if (ctx.opts.moduleCache && ctx.nativeRequire.cache[filename]) return jitiInteropDefault(ctx, ctx.nativeRequire.cache[filename]?.exports);
|
|
2993
|
+
const source = (0, external_node_fs_namespaceObject.readFileSync)(filename, "utf8");
|
|
2994
|
+
return eval_evalModule(ctx, source, { id, filename, ext, cache: cache3, async: opts.async });
|
|
2995
|
+
}
|
|
2996
|
+
function nativeImportOrRequire(ctx, id, async) {
|
|
2997
|
+
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
2998
|
+
return a2 && isAbsolute2(id2) ? pathToFileURL2(id2) : id2;
|
|
2999
|
+
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3000
|
+
}
|
|
3001
|
+
const CACHE_VERSION = "8";
|
|
3002
|
+
function getCache(ctx, topts, get) {
|
|
3003
|
+
if (!ctx.opts.fsCache || !topts.filename) return get();
|
|
3004
|
+
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3005
|
+
`, cacheName = `${basename2(pathe_ff20891b_dirname(topts.filename))}-${function(path5) {
|
|
3006
|
+
return path5.match(FILENAME_RE)?.[2];
|
|
3007
|
+
}(topts.filename)}` + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs"), cacheDir = ctx.opts.fsCache, cacheFilePath = join4(cacheDir, cacheName);
|
|
3008
|
+
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3009
|
+
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3010
|
+
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
3011
|
+
}
|
|
3012
|
+
debug2(ctx, "[cache]", "[miss]", topts.filename);
|
|
3013
|
+
const result = get();
|
|
3014
|
+
return result.includes("__JITI_ERROR__") || ((0, external_node_fs_namespaceObject.writeFileSync)(cacheFilePath, result + sourceHash, "utf8"), debug2(ctx, "[cache]", "[store]", topts.filename, "~>", cacheFilePath)), result;
|
|
3015
|
+
}
|
|
3016
|
+
function prepareCacheDir(ctx) {
|
|
3017
|
+
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3018
|
+
const nmDir = ctx2.filename && resolve3(ctx2.filename, "../node_modules");
|
|
3019
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join4(nmDir, ".cache/jiti");
|
|
3020
|
+
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
4107
3021
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
4108
3022
|
const _env = process.env.TMPDIR;
|
|
4109
|
-
delete process.env.TMPDIR, _tmpDir = (0,
|
|
3023
|
+
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
4110
3024
|
}
|
|
4111
|
-
return join4(_tmpDir, "
|
|
4112
|
-
}()), opts.
|
|
4113
|
-
if ((0,
|
|
3025
|
+
return join4(_tmpDir, "jiti");
|
|
3026
|
+
}(ctx)), ctx.opts.fsCache) try {
|
|
3027
|
+
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
4114
3028
|
try {
|
|
4115
|
-
return (0,
|
|
4116
|
-
} catch
|
|
3029
|
+
return (0, external_node_fs_namespaceObject.accessSync)(filename, external_node_fs_namespaceObject.constants.W_OK), true;
|
|
3030
|
+
} catch {
|
|
4117
3031
|
return false;
|
|
4118
3032
|
}
|
|
4119
|
-
}(opts.
|
|
3033
|
+
}(ctx.opts.fsCache)) throw new Error("directory is not writable!");
|
|
4120
3034
|
} catch (error) {
|
|
4121
|
-
debug2("Error creating cache directory at ", opts.
|
|
3035
|
+
debug2(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error), ctx.opts.fsCache = false;
|
|
4122
3036
|
}
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
}
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
}
|
|
4138
|
-
return _path;
|
|
4139
|
-
}(id, alias)), opts.esmResolve) {
|
|
4140
|
-
const conditionSets = [["node", "require"], ["node", "import"]];
|
|
4141
|
-
for (const conditions of conditionSets) {
|
|
3037
|
+
}
|
|
3038
|
+
function transform2(ctx, topts) {
|
|
3039
|
+
let code = getCache(ctx, topts, () => {
|
|
3040
|
+
const res = ctx.opts.transform({ ...ctx.opts.transformOptions, babel: { ...ctx.opts.sourceMaps ? { sourceFileName: topts.filename, sourceMaps: "inline" } : {}, ...ctx.opts.transformOptions?.babel }, interopDefault: ctx.opts.interopDefault, ...topts });
|
|
3041
|
+
return res.error && ctx.opts.debug && debug2(ctx, res.error), res.code;
|
|
3042
|
+
});
|
|
3043
|
+
return code.startsWith("#!") && (code = "// " + code), code;
|
|
3044
|
+
}
|
|
3045
|
+
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3046
|
+
const id = evalOptions.id || (evalOptions.filename ? basename2(evalOptions.filename) : `_jitiEval.${evalOptions.ext || (evalOptions.async ? "mjs" : "js")}`), filename = evalOptions.filename || jitiResolve(ctx, id, { async: evalOptions.async }), ext = evalOptions.ext || extname3(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isESM = ".mjs" === ext || ".js" === ext && "module" === function(path5) {
|
|
3047
|
+
for (; path5 && "." !== path5 && "/" !== path5; ) {
|
|
3048
|
+
path5 = join4(path5, "..");
|
|
3049
|
+
try {
|
|
3050
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join4(path5, "package.json"), "utf8");
|
|
4142
3051
|
try {
|
|
4143
|
-
|
|
4144
|
-
} catch
|
|
4145
|
-
err = error;
|
|
3052
|
+
return JSON.parse(pkg);
|
|
3053
|
+
} catch {
|
|
4146
3054
|
}
|
|
4147
|
-
|
|
4148
|
-
}
|
|
4149
|
-
}
|
|
4150
|
-
try {
|
|
4151
|
-
return nativeRequire.resolve(id, options);
|
|
4152
|
-
} catch (error) {
|
|
4153
|
-
err = error;
|
|
4154
|
-
}
|
|
4155
|
-
for (const ext of _additionalExts) {
|
|
4156
|
-
if (resolved = tryResolve(id + ext, options) || tryResolve(id + "/index" + ext, options), resolved) return resolved;
|
|
4157
|
-
if (TS_EXT_RE.test((null == parentModule ? void 0 : parentModule.filename) || "") && (resolved = tryResolve(id.replace(JS_EXT_RE, ".$1t$2"), options), resolved)) return resolved;
|
|
4158
|
-
}
|
|
4159
|
-
throw err;
|
|
4160
|
-
};
|
|
4161
|
-
function transform(topts) {
|
|
4162
|
-
let code = function(filename, source, get) {
|
|
4163
|
-
if (!opts.cache || !filename) return get();
|
|
4164
|
-
const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_ff20891b_dirname(filename)) + "-" + basename2(filename), cacheFile = join4(opts.cache, filebase + "." + md5(filename) + ".js");
|
|
4165
|
-
if ((0, external_fs_.existsSync)(cacheFile)) {
|
|
4166
|
-
const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
|
|
4167
|
-
if (cacheSource.endsWith(sourceHash)) return debug2("[cache hit]", filename, "~>", cacheFile), cacheSource;
|
|
4168
|
-
}
|
|
4169
|
-
debug2("[cache miss]", filename);
|
|
4170
|
-
const result = get();
|
|
4171
|
-
return result.includes("__JITI_ERROR__") || (0, external_fs_.writeFileSync)(cacheFile, result + sourceHash, "utf8"), result;
|
|
4172
|
-
}(topts.filename, topts.source, () => {
|
|
4173
|
-
var _a;
|
|
4174
|
-
const res = opts.transform(Object.assign(Object.assign(Object.assign({ legacy: opts.legacy }, opts.transformOptions), { babel: Object.assign(Object.assign({}, opts.sourceMaps ? { sourceFileName: topts.filename, sourceMaps: "inline" } : {}), null === (_a = opts.transformOptions) || void 0 === _a ? void 0 : _a.babel) }), topts));
|
|
4175
|
-
return res.error && opts.debug && debug2(res.error), res.code;
|
|
4176
|
-
});
|
|
4177
|
-
return code.startsWith("#!") && (code = "// " + code), code;
|
|
4178
|
-
}
|
|
4179
|
-
function _interopDefault(mod) {
|
|
4180
|
-
return opts.interopDefault ? function(sourceModule, opts2 = {}) {
|
|
4181
|
-
if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
|
|
4182
|
-
var value2;
|
|
4183
|
-
const defaultValue = sourceModule.default;
|
|
4184
|
-
if (null == defaultValue) return sourceModule;
|
|
4185
|
-
const _defaultType = typeof defaultValue;
|
|
4186
|
-
if ("object" !== _defaultType && ("function" !== _defaultType || opts2.preferNamespace)) return opts2.preferNamespace ? sourceModule : defaultValue;
|
|
4187
|
-
for (const key in sourceModule) try {
|
|
4188
|
-
key in defaultValue || Object.defineProperty(defaultValue, key, { enumerable: "default" !== key, configurable: "default" !== key, get: () => sourceModule[key] });
|
|
3055
|
+
break;
|
|
4189
3056
|
} catch {
|
|
4190
3057
|
}
|
|
4191
|
-
return defaultValue;
|
|
4192
|
-
}(mod) : mod;
|
|
4193
|
-
}
|
|
4194
|
-
function jiti(id, _importOptions) {
|
|
4195
|
-
var _a, _b;
|
|
4196
|
-
const cache3 = parentCache || {};
|
|
4197
|
-
if (id.startsWith("node:") ? id = id.slice(5) : id.startsWith("file:") && (id = (0, external_url_namespaceObject.fileURLToPath)(id)), external_module_.builtinModules.includes(id) || ".pnp.js" === id) return nativeRequire(id);
|
|
4198
|
-
if (opts.experimentalBun && !opts.transformOptions) try {
|
|
4199
|
-
debug2(`[bun] [native] ${id}`);
|
|
4200
|
-
const _mod = nativeRequire(id);
|
|
4201
|
-
return false === opts.requireCache && delete nativeRequire.cache[id], _interopDefault(_mod);
|
|
4202
|
-
} catch (error) {
|
|
4203
|
-
debug2(`[bun] Using fallback for ${id} because of an error:`, error);
|
|
4204
3058
|
}
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
if (opts.requireCache && nativeRequire.cache[filename]) return _interopDefault(null === (_b = nativeRequire.cache[filename]) || void 0 === _b ? void 0 : _b.exports);
|
|
4215
|
-
return evalModule((0, external_fs_.readFileSync)(filename, "utf8"), { id, filename, ext, cache: cache3 });
|
|
3059
|
+
}(filename)?.type, needsTranspile = !(".cjs" === ext) && !(isESM && evalOptions.async) && (isTypescript || isESM || ctx.isTransformRe.test(filename) || hasESMSyntax(source)), start = external_node_perf_hooks_namespaceObject.performance.now();
|
|
3060
|
+
if (needsTranspile) {
|
|
3061
|
+
source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false });
|
|
3062
|
+
const time = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start)) / 1e3;
|
|
3063
|
+
debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time}ms)`);
|
|
3064
|
+
} else try {
|
|
3065
|
+
return debug2(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, evalOptions.async);
|
|
3066
|
+
} catch (error) {
|
|
3067
|
+
debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false });
|
|
4216
3068
|
}
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
debug2("[transpile]" + (isNativeModule ? " [esm]" : ""), filename, `(${Math.round(1e3 * (external_perf_hooks_namespaceObject.performance.now() - start)) / 1e3}ms)`);
|
|
4237
|
-
} else try {
|
|
4238
|
-
return debug2("[native]", filename), _interopDefault(nativeRequire(id));
|
|
4239
|
-
} catch (error) {
|
|
4240
|
-
debug2("Native require error:", error), debug2("[fallback]", filename), source = transform({ filename, source, ts: isTypescript });
|
|
4241
|
-
}
|
|
4242
|
-
const mod = new external_module_.Module(filename);
|
|
4243
|
-
let compiled;
|
|
4244
|
-
mod.filename = filename, parentModule && (mod.parent = parentModule, Array.isArray(parentModule.children) && !parentModule.children.includes(mod) && parentModule.children.push(mod)), mod.require = createJITI(filename, opts, mod, cache3), mod.path = pathe_ff20891b_dirname(filename), mod.paths = external_module_.Module._nodeModulePaths(mod.path), cache3[filename] = mod, opts.requireCache && (nativeRequire.cache[filename] = mod);
|
|
4245
|
-
try {
|
|
4246
|
-
compiled = external_vm_default().runInThisContext(external_module_.Module.wrap(source), { filename, lineOffset: 0, displayErrors: false });
|
|
4247
|
-
} catch (error) {
|
|
4248
|
-
opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
|
|
4249
|
-
}
|
|
4250
|
-
try {
|
|
4251
|
-
compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename));
|
|
4252
|
-
} catch (error) {
|
|
4253
|
-
opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
|
|
4254
|
-
}
|
|
3069
|
+
const mod = new external_node_module_namespaceObject.Module(filename);
|
|
3070
|
+
mod.filename = filename, ctx.parentModule && (mod.parent = ctx.parentModule, Array.isArray(ctx.parentModule.children) && !ctx.parentModule.children.includes(mod) && ctx.parentModule.children.push(mod));
|
|
3071
|
+
const _jiti = createJiti2(filename, ctx.opts, { parentModule: mod, parentCache: cache3, nativeImport: ctx.nativeImport, onError: ctx.onError, createRequire: ctx.createRequire }, true);
|
|
3072
|
+
let compiled, evalResult;
|
|
3073
|
+
mod.require = _jiti, mod.path = pathe_ff20891b_dirname(filename), mod.paths = external_node_module_namespaceObject.Module._nodeModulePaths(mod.path), cache3[filename] = mod, ctx.opts.moduleCache && (ctx.nativeRequire.cache[filename] = mod);
|
|
3074
|
+
try {
|
|
3075
|
+
compiled = external_node_vm_default().runInThisContext(function(source2, opts) {
|
|
3076
|
+
return `(${opts?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport) { ${source2}
|
|
3077
|
+
});`;
|
|
3078
|
+
}(source, { async: evalOptions.async }), { filename, lineOffset: 0, displayErrors: false });
|
|
3079
|
+
} catch (error) {
|
|
3080
|
+
ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
|
|
3081
|
+
}
|
|
3082
|
+
try {
|
|
3083
|
+
evalResult = compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename), _jiti.import);
|
|
3084
|
+
} catch (error) {
|
|
3085
|
+
ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
|
|
3086
|
+
}
|
|
3087
|
+
function next() {
|
|
4255
3088
|
if (mod.exports && mod.exports.__JITI_ERROR__) {
|
|
4256
3089
|
const { filename: filename2, line, column, code, message } = mod.exports.__JITI_ERROR__, err = new Error(`${code}: ${message}
|
|
4257
3090
|
${`${filename2}:${line}:${column}`}`);
|
|
4258
|
-
Error.captureStackTrace(err,
|
|
3091
|
+
Error.captureStackTrace(err, jitiRequire), ctx.onError(err);
|
|
4259
3092
|
}
|
|
4260
3093
|
mod.loaded = true;
|
|
4261
|
-
return
|
|
4262
|
-
}
|
|
4263
|
-
return
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
3094
|
+
return jitiInteropDefault(ctx, mod.exports);
|
|
3095
|
+
}
|
|
3096
|
+
return evalOptions.async ? Promise.resolve(evalResult).then(next) : next();
|
|
3097
|
+
}
|
|
3098
|
+
const isWindows = "win32" === (0, external_node_os_namespaceObject.platform)();
|
|
3099
|
+
function createJiti2(filename, userOptions = {}, parentContext, isNested = false) {
|
|
3100
|
+
const opts = isNested ? userOptions : function(userOptions2) {
|
|
3101
|
+
const jitiDefaults = { fsCache: _booleanEnv("JITI_FS_CACHE", _booleanEnv("JITI_CACHE", true)), moduleCache: _booleanEnv("JITI_MODULE_CACHE", _booleanEnv("JITI_REQUIRE_CACHE", true)), debug: _booleanEnv("JITI_DEBUG", false), sourceMaps: _booleanEnv("JITI_SOURCE_MAPS", false), interopDefault: _booleanEnv("JITI_INTEROP_DEFAULT", false), extensions: _jsonEnv("JITI_EXTENSIONS", [".js", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts"]), alias: _jsonEnv("JITI_ALIAS", {}), nativeModules: _jsonEnv("JITI_NATIVE_MODULES", []), transformModules: _jsonEnv("JITI_TRANSFORM_MODULES", []), experimentalBun: _jsonEnv("JITI_EXPERIMENTAL_BUN", !!process.versions.bun) }, deprecatOverrides = {};
|
|
3102
|
+
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3103
|
+
}(userOptions), alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : void 0, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
|
|
3104
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join4(filename, "_index.js"));
|
|
3105
|
+
const url = (0, external_node_url_namespaceObject.pathToFileURL)(filename), additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), nativeRequire = parentContext.createRequire(isWindows ? filename.replace(/\//g, "\\") : filename), ctx = { filename, url, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
|
|
3106
|
+
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3107
|
+
const jiti = Object.assign(function(id) {
|
|
3108
|
+
return jitiRequire(ctx, id, { async: false });
|
|
3109
|
+
}, { cache: opts.moduleCache ? nativeRequire.cache : /* @__PURE__ */ Object.create(null), extensions: nativeRequire.extensions, main: nativeRequire.main, resolve: Object.assign(function(path5) {
|
|
3110
|
+
return jitiResolve(ctx, path5, { async: false });
|
|
3111
|
+
}, { paths: nativeRequire.resolve.paths }), transform: (opts2) => transform2(ctx, opts2), evalModule: (source, options) => eval_evalModule(ctx, source, options), import: async (id, opts2) => await jitiRequire(ctx, id, { ...opts2, async: true }), esmResolve: (id, opts2) => jitiResolve(ctx, id, { ...opts2, async: true }) });
|
|
3112
|
+
return jiti;
|
|
4268
3113
|
}
|
|
4269
3114
|
})(), module.exports = __webpack_exports__.default;
|
|
4270
3115
|
})();
|
|
4271
3116
|
}
|
|
4272
3117
|
});
|
|
4273
3118
|
|
|
4274
|
-
// node_modules/.pnpm/jiti@
|
|
3119
|
+
// node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs
|
|
4275
3120
|
var require_babel = __commonJS({
|
|
4276
|
-
"node_modules/.pnpm/jiti@
|
|
3121
|
+
"node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs"(exports, module) {
|
|
4277
3122
|
(() => {
|
|
4278
3123
|
var __webpack_modules__ = { "./node_modules/.pnpm/@ampproject+remapping@2.3.0/node_modules/@ampproject/remapping/dist/remapping.umd.js": function(module2, __unused_webpack_exports, __webpack_require__2) {
|
|
4279
3124
|
module2.exports = function(traceMapping, genMapping) {
|
|
@@ -4359,11 +3204,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4359
3204
|
webpackEmptyContext.keys = () => [], webpackEmptyContext.resolve = webpackEmptyContext, webpackEmptyContext.id = "./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/files sync recursive", module2.exports = webpackEmptyContext;
|
|
4360
3205
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-class-properties/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4361
3206
|
"use strict";
|
|
4362
|
-
|
|
3207
|
+
exports2.A = void 0;
|
|
4363
3208
|
var _default = (0, __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api) => (api.assertVersion(7), { name: "syntax-class-properties", manipulateOptions(opts, parserOpts) {
|
|
4364
3209
|
parserOpts.plugins.push("classProperties", "classPrivateProperties", "classPrivateMethods");
|
|
4365
3210
|
} }));
|
|
4366
|
-
exports2.
|
|
3211
|
+
exports2.A = _default;
|
|
4367
3212
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-export-namespace-from@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-export-namespace-from/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4368
3213
|
"use strict";
|
|
4369
3214
|
exports2.A = void 0;
|
|
@@ -4371,20 +3216,6 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4371
3216
|
parserOpts.plugins.push("exportNamespaceFrom");
|
|
4372
3217
|
} }));
|
|
4373
3218
|
exports2.A = _default;
|
|
4374
|
-
}, "./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4375
|
-
"use strict";
|
|
4376
|
-
exports2.A = void 0;
|
|
4377
|
-
var _default = (0, __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api) => (api.assertVersion(7), { name: "syntax-nullish-coalescing-operator", manipulateOptions(opts, parserOpts) {
|
|
4378
|
-
parserOpts.plugins.push("nullishCoalescingOperator");
|
|
4379
|
-
} }));
|
|
4380
|
-
exports2.A = _default;
|
|
4381
|
-
}, "./node_modules/.pnpm/@babel+plugin-syntax-optional-chaining@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4382
|
-
"use strict";
|
|
4383
|
-
exports2.A = void 0;
|
|
4384
|
-
var _default = (0, __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api) => (api.assertVersion(7), { name: "syntax-optional-chaining", manipulateOptions(opts, parserOpts) {
|
|
4385
|
-
parserOpts.plugins.push("optionalChaining");
|
|
4386
|
-
} }));
|
|
4387
|
-
exports2.A = _default;
|
|
4388
3219
|
}, "./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.5/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js": function(__unused_webpack_module, exports2, __webpack_require__2) {
|
|
4389
3220
|
!function(exports3, setArray, sourcemapCodec, traceMapping) {
|
|
4390
3221
|
"use strict";
|
|
@@ -4964,55 +3795,6 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4964
3795
|
}
|
|
4965
3796
|
exports3.AnyMap = AnyMap, exports3.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND, exports3.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND, exports3.TraceMap = TraceMap, exports3.allGeneratedPositionsFor = allGeneratedPositionsFor, exports3.decodedMap = decodedMap, exports3.decodedMappings = decodedMappings, exports3.eachMapping = eachMapping, exports3.encodedMap = encodedMap, exports3.encodedMappings = encodedMappings, exports3.generatedPositionFor = generatedPositionFor, exports3.isIgnored = isIgnored, exports3.originalPositionFor = originalPositionFor, exports3.presortedDecodedMap = presortedDecodedMap, exports3.sourceContentFor = sourceContentFor, exports3.traceSegment = traceSegment;
|
|
4966
3797
|
}(exports2, __webpack_require__2("./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"), __webpack_require__2("./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"));
|
|
4967
|
-
}, "./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js": (module2, exports2, __webpack_require__2) => {
|
|
4968
|
-
"use strict";
|
|
4969
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(api) {
|
|
4970
|
-
var transformImport = (0, _utils.createDynamicImportTransform)(api);
|
|
4971
|
-
return { manipulateOptions: function(opts, parserOpts) {
|
|
4972
|
-
parserOpts.plugins.push("dynamicImport");
|
|
4973
|
-
}, visitor: { Import: function(path5) {
|
|
4974
|
-
transformImport(this, path5);
|
|
4975
|
-
} } };
|
|
4976
|
-
};
|
|
4977
|
-
var _utils = __webpack_require__2("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js");
|
|
4978
|
-
module2.exports = exports2.default;
|
|
4979
|
-
}, "./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js": (__unused_webpack_module, exports2) => {
|
|
4980
|
-
"use strict";
|
|
4981
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4982
|
-
var _slicedToArray = function(arr, i2) {
|
|
4983
|
-
if (Array.isArray(arr)) return arr;
|
|
4984
|
-
if (Symbol.iterator in Object(arr)) return function(arr2, i3) {
|
|
4985
|
-
var _arr = [], _n2 = true, _d = false, _e2 = void 0;
|
|
4986
|
-
try {
|
|
4987
|
-
for (var _s, _i2 = arr2[Symbol.iterator](); !(_n2 = (_s = _i2.next()).done) && (_arr.push(_s.value), !i3 || _arr.length !== i3); _n2 = true) ;
|
|
4988
|
-
} catch (err) {
|
|
4989
|
-
_d = true, _e2 = err;
|
|
4990
|
-
} finally {
|
|
4991
|
-
try {
|
|
4992
|
-
!_n2 && _i2.return && _i2.return();
|
|
4993
|
-
} finally {
|
|
4994
|
-
if (_d) throw _e2;
|
|
4995
|
-
}
|
|
4996
|
-
}
|
|
4997
|
-
return _arr;
|
|
4998
|
-
}(arr, i2);
|
|
4999
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
5000
|
-
};
|
|
5001
|
-
function getImportSource(t2, callNode) {
|
|
5002
|
-
var importArguments = callNode.arguments, importPath = _slicedToArray(importArguments, 1)[0];
|
|
5003
|
-
return t2.isStringLiteral(importPath) || t2.isTemplateLiteral(importPath) ? (t2.removeComments(importPath), importPath) : t2.templateLiteral([t2.templateElement({ raw: "", cooked: "" }), t2.templateElement({ raw: "", cooked: "" }, true)], importArguments);
|
|
5004
|
-
}
|
|
5005
|
-
exports2.getImportSource = getImportSource, exports2.createDynamicImportTransform = function(_ref) {
|
|
5006
|
-
var template = _ref.template, t2 = _ref.types, builders = { static: { interop: template("Promise.resolve().then(() => INTEROP(require(SOURCE)))"), noInterop: template("Promise.resolve().then(() => require(SOURCE))") }, dynamic: { interop: template("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"), noInterop: template("Promise.resolve(SOURCE).then(s => require(s))") } }, visited = "function" == typeof WeakSet && /* @__PURE__ */ new WeakSet();
|
|
5007
|
-
return function(context, path5) {
|
|
5008
|
-
if (visited) {
|
|
5009
|
-
if (visited.has(path5)) return;
|
|
5010
|
-
visited.add(path5);
|
|
5011
|
-
}
|
|
5012
|
-
var node, SOURCE = getImportSource(t2, path5.parent), builder = (node = SOURCE, t2.isStringLiteral(node) || t2.isTemplateLiteral(node) && 0 === node.expressions.length ? builders.static : builders.dynamic), newImport = context.opts.noInterop ? builder.noInterop({ SOURCE }) : builder.interop({ SOURCE, INTEROP: context.addHelper("interopRequireWildcard") });
|
|
5013
|
-
path5.parentPath.replaceWith(newImport);
|
|
5014
|
-
};
|
|
5015
|
-
};
|
|
5016
3798
|
}, "./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
5017
3799
|
"use strict";
|
|
5018
3800
|
var _path = __webpack_require__2("path");
|
|
@@ -5308,14 +4090,14 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5308
4090
|
}
|
|
5309
4091
|
}, "./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/plugin.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
5310
4092
|
"use strict";
|
|
5311
|
-
|
|
4093
|
+
exports2.A = void 0;
|
|
5312
4094
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _parameterVisitor = __webpack_require__2("./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/parameter/parameterVisitor.js"), _metadataVisitor = __webpack_require__2("./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/metadata/metadataVisitor.js"), _default = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { visitor: { Program(programPath) {
|
|
5313
4095
|
programPath.traverse({ ClassDeclaration(path5) {
|
|
5314
4096
|
for (const field of path5.get("body").get("body")) "ClassMethod" !== field.type && "ClassProperty" !== field.type || ((0, _parameterVisitor.parameterVisitor)(path5, field), (0, _metadataVisitor.metadataVisitor)(path5, field));
|
|
5315
4097
|
path5.parentPath.scope.crawl();
|
|
5316
4098
|
} });
|
|
5317
4099
|
} } }));
|
|
5318
|
-
exports2.
|
|
4100
|
+
exports2.A = _default;
|
|
5319
4101
|
}, "./node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js": (__unused_webpack_module, exports2) => {
|
|
5320
4102
|
"use strict";
|
|
5321
4103
|
var decodeBase64;
|
|
@@ -6381,18 +5163,6 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6381
5163
|
FastObject(), module2.exports = function(o) {
|
|
6382
5164
|
return FastObject(o);
|
|
6383
5165
|
};
|
|
6384
|
-
}, "./stubs/babel-codeframe.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
|
|
6385
|
-
"use strict";
|
|
6386
|
-
function codeFrameColumns() {
|
|
6387
|
-
return "";
|
|
6388
|
-
}
|
|
6389
|
-
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
|
|
6390
|
-
}, "./stubs/helper-compilation-targets.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
|
|
6391
|
-
"use strict";
|
|
6392
|
-
function getTargets() {
|
|
6393
|
-
return {};
|
|
6394
|
-
}
|
|
6395
|
-
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
|
|
6396
5166
|
}, assert: (module2) => {
|
|
6397
5167
|
"use strict";
|
|
6398
5168
|
module2.exports = __require("assert");
|
|
@@ -7760,7 +6530,7 @@ ${yield* Formatter.optionsAndDescriptors(config.content)}`;
|
|
|
7760
6530
|
}, data2;
|
|
7761
6531
|
}
|
|
7762
6532
|
function _helperCompilationTargets() {
|
|
7763
|
-
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.
|
|
6533
|
+
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
|
|
7764
6534
|
return _helperCompilationTargets = function() {
|
|
7765
6535
|
return data2;
|
|
7766
6536
|
}, data2;
|
|
@@ -7798,7 +6568,7 @@ ${yield* Formatter.optionsAndDescriptors(config.content)}`;
|
|
|
7798
6568
|
}, "./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/validation/option-assertions.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
7799
6569
|
"use strict";
|
|
7800
6570
|
function _helperCompilationTargets() {
|
|
7801
|
-
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.
|
|
6571
|
+
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
|
|
7802
6572
|
return _helperCompilationTargets = function() {
|
|
7803
6573
|
return data2;
|
|
7804
6574
|
}, data2;
|
|
@@ -8364,7 +7134,7 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
8364
7134
|
}, data2;
|
|
8365
7135
|
}
|
|
8366
7136
|
function _codeFrame() {
|
|
8367
|
-
const data2 = __webpack_require__2("./stubs/babel-codeframe.
|
|
7137
|
+
const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
|
|
8368
7138
|
return _codeFrame = function() {
|
|
8369
7139
|
return data2;
|
|
8370
7140
|
}, data2;
|
|
@@ -8637,7 +7407,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8637
7407
|
}, data2;
|
|
8638
7408
|
}
|
|
8639
7409
|
function _codeFrame() {
|
|
8640
|
-
const data2 = __webpack_require__2("./stubs/babel-codeframe.
|
|
7410
|
+
const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
|
|
8641
7411
|
return _codeFrame = function() {
|
|
8642
7412
|
return data2;
|
|
8643
7413
|
}, data2;
|
|
@@ -20558,9 +19328,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20558
19328
|
}, exports2.tokTypes = tokTypes;
|
|
20559
19329
|
}, "./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-proposal-decorators/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20560
19330
|
"use strict";
|
|
20561
|
-
|
|
19331
|
+
exports2.A = void 0;
|
|
20562
19332
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _pluginSyntaxDecorators = __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-decorators/lib/index.js"), _helperCreateClassFeaturesPlugin = __webpack_require__2("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.24.7_@babel+core@7.24.7/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"), _transformerLegacy = __webpack_require__2("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js");
|
|
20563
|
-
exports2.
|
|
19333
|
+
exports2.A = (0, _helperPluginUtils.declare)((api, options) => {
|
|
20564
19334
|
api.assertVersion(7);
|
|
20565
19335
|
var { legacy } = options;
|
|
20566
19336
|
const { version: version2 } = options;
|
|
@@ -20677,9 +19447,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20677
19447
|
});
|
|
20678
19448
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-import-assertions@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20679
19449
|
"use strict";
|
|
20680
|
-
|
|
19450
|
+
exports2.A = void 0;
|
|
20681
19451
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js");
|
|
20682
|
-
exports2.
|
|
19452
|
+
exports2.A = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "syntax-import-assertions", manipulateOptions(opts, parserOpts) {
|
|
20683
19453
|
parserOpts.plugins.push("importAssertions");
|
|
20684
19454
|
} }));
|
|
20685
19455
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-jsx@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-jsx/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
@@ -20713,9 +19483,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20713
19483
|
});
|
|
20714
19484
|
}, "./node_modules/.pnpm/@babel+plugin-transform-export-namespace-from@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20715
19485
|
"use strict";
|
|
20716
|
-
|
|
19486
|
+
exports2.A = void 0;
|
|
20717
19487
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _core = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
|
|
20718
|
-
exports2.
|
|
19488
|
+
exports2.A = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "transform-export-namespace-from", inherits: "8" === api.version[0] ? void 0 : __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-export-namespace-from@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-export-namespace-from/lib/index.js").A, visitor: { ExportNamedDeclaration(path5) {
|
|
20719
19489
|
var _exported$name;
|
|
20720
19490
|
const { node, scope } = path5, { specifiers } = node, index = _core.types.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0;
|
|
20721
19491
|
if (!_core.types.isExportNamespaceSpecifier(specifiers[index])) return;
|
|
@@ -20855,118 +19625,6 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20855
19625
|
}, wrapReference(ref2, payload) {
|
|
20856
19626
|
if ("lazy/function" === payload) return _core.types.callExpression(ref2, []);
|
|
20857
19627
|
} });
|
|
20858
|
-
}, "./node_modules/.pnpm/@babel+plugin-transform-nullish-coalescing-operator@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20859
|
-
"use strict";
|
|
20860
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
|
|
20861
|
-
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _core = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
|
|
20862
|
-
exports2.default = (0, _helperPluginUtils.declare)((api, { loose = false }) => {
|
|
20863
|
-
var _api$assumption;
|
|
20864
|
-
api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
|
|
20865
|
-
const noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose;
|
|
20866
|
-
return { name: "transform-nullish-coalescing-operator", inherits: "8" === api.version[0] ? void 0 : __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js").A, visitor: { LogicalExpression(path5) {
|
|
20867
|
-
const { node, scope } = path5;
|
|
20868
|
-
if ("??" !== node.operator) return;
|
|
20869
|
-
let ref2, assignment;
|
|
20870
|
-
if (scope.isStatic(node.left)) ref2 = node.left, assignment = _core.types.cloneNode(node.left);
|
|
20871
|
-
else {
|
|
20872
|
-
if (scope.path.isPattern()) return void path5.replaceWith(_core.template.statement.ast`(() => ${path5.node})()`);
|
|
20873
|
-
ref2 = scope.generateUidIdentifierBasedOnNode(node.left), scope.push({ id: _core.types.cloneNode(ref2) }), assignment = _core.types.assignmentExpression("=", ref2, node.left);
|
|
20874
|
-
}
|
|
20875
|
-
path5.replaceWith(_core.types.conditionalExpression(noDocumentAll ? _core.types.binaryExpression("!=", assignment, _core.types.nullLiteral()) : _core.types.logicalExpression("&&", _core.types.binaryExpression("!==", assignment, _core.types.nullLiteral()), _core.types.binaryExpression("!==", _core.types.cloneNode(ref2), scope.buildUndefinedNode())), _core.types.cloneNode(ref2), node.right));
|
|
20876
|
-
} } };
|
|
20877
|
-
});
|
|
20878
|
-
}, "./node_modules/.pnpm/@babel+plugin-transform-optional-chaining@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20879
|
-
"use strict";
|
|
20880
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20881
|
-
var helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), core = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js"), helperSkipTransparentExpressionWrappers = __webpack_require__2("./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.24.7/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js");
|
|
20882
|
-
function willPathCastToBoolean(path5) {
|
|
20883
|
-
const maybeWrapped = findOutermostTransparentParent(path5), { node, parentPath } = maybeWrapped;
|
|
20884
|
-
if (parentPath.isLogicalExpression()) {
|
|
20885
|
-
const { operator, right } = parentPath.node;
|
|
20886
|
-
if ("&&" === operator || "||" === operator || "??" === operator && node === right) return willPathCastToBoolean(parentPath);
|
|
20887
|
-
}
|
|
20888
|
-
if (parentPath.isSequenceExpression()) {
|
|
20889
|
-
const { expressions } = parentPath.node;
|
|
20890
|
-
return expressions[expressions.length - 1] !== node || willPathCastToBoolean(parentPath);
|
|
20891
|
-
}
|
|
20892
|
-
return parentPath.isConditional({ test: node }) || parentPath.isUnaryExpression({ operator: "!" }) || parentPath.isLoop({ test: node });
|
|
20893
|
-
}
|
|
20894
|
-
function findOutermostTransparentParent(path5) {
|
|
20895
|
-
let maybeWrapped = path5;
|
|
20896
|
-
return path5.findParent((p2) => {
|
|
20897
|
-
if (!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p2.node)) return true;
|
|
20898
|
-
maybeWrapped = p2;
|
|
20899
|
-
}), maybeWrapped;
|
|
20900
|
-
}
|
|
20901
|
-
const last = (arr) => arr[arr.length - 1];
|
|
20902
|
-
function isSimpleMemberExpression(expression) {
|
|
20903
|
-
return expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression), core.types.isIdentifier(expression) || core.types.isSuper(expression) || core.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object);
|
|
20904
|
-
}
|
|
20905
|
-
const NULLISH_CHECK = core.template.expression("%%check%% === null || %%ref%% === void 0"), NULLISH_CHECK_NO_DDA = core.template.expression("%%check%% == null"), NULLISH_CHECK_NEG = core.template.expression("%%check%% !== null && %%ref%% !== void 0"), NULLISH_CHECK_NO_DDA_NEG = core.template.expression("%%check%% != null");
|
|
20906
|
-
function transformOptionalChain(path5, { pureGetters, noDocumentAll }, replacementPath, ifNullish, wrapLast) {
|
|
20907
|
-
const { scope } = path5;
|
|
20908
|
-
if (scope.path.isPattern() && function(path6) {
|
|
20909
|
-
let optionalPath2 = path6;
|
|
20910
|
-
const { scope: scope2 } = path6;
|
|
20911
|
-
for (; optionalPath2.isOptionalMemberExpression() || optionalPath2.isOptionalCallExpression(); ) {
|
|
20912
|
-
const { node } = optionalPath2, childPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath2.isOptionalMemberExpression() ? optionalPath2.get("object") : optionalPath2.get("callee"));
|
|
20913
|
-
if (node.optional) return !scope2.isStatic(childPath.node);
|
|
20914
|
-
optionalPath2 = childPath;
|
|
20915
|
-
}
|
|
20916
|
-
}(path5)) return void replacementPath.replaceWith(core.template.expression.ast`(() => ${replacementPath.node})()`);
|
|
20917
|
-
const optionals = [];
|
|
20918
|
-
let optionalPath = path5;
|
|
20919
|
-
for (; optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression(); ) {
|
|
20920
|
-
const { node } = optionalPath;
|
|
20921
|
-
node.optional && optionals.push(node), optionalPath.isOptionalMemberExpression() ? (optionalPath.node.type = "MemberExpression", optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object"))) : optionalPath.isOptionalCallExpression() && (optionalPath.node.type = "CallExpression", optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")));
|
|
20922
|
-
}
|
|
20923
|
-
if (0 === optionals.length) return;
|
|
20924
|
-
const checks = [];
|
|
20925
|
-
let tmpVar;
|
|
20926
|
-
for (let i2 = optionals.length - 1; i2 >= 0; i2--) {
|
|
20927
|
-
const node = optionals[i2], isCall = core.types.isCallExpression(node), chainWithTypes = isCall ? node.callee : node.object, chain = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes);
|
|
20928
|
-
let ref2, check2;
|
|
20929
|
-
if (isCall && core.types.isIdentifier(chain, { name: "eval" }) ? (check2 = ref2 = chain, node.callee = core.types.sequenceExpression([core.types.numericLiteral(0), ref2])) : pureGetters && isCall && isSimpleMemberExpression(chain) ? check2 = ref2 = node.callee : scope.isStatic(chain) ? check2 = ref2 = chainWithTypes : (tmpVar && !isCall || (tmpVar = scope.generateUidIdentifierBasedOnNode(chain), scope.push({ id: core.types.cloneNode(tmpVar) })), ref2 = tmpVar, check2 = core.types.assignmentExpression("=", core.types.cloneNode(tmpVar), chainWithTypes), isCall ? node.callee = ref2 : node.object = ref2), isCall && core.types.isMemberExpression(chain)) if (pureGetters && isSimpleMemberExpression(chain)) node.callee = chainWithTypes;
|
|
20930
|
-
else {
|
|
20931
|
-
const { object } = chain;
|
|
20932
|
-
let context;
|
|
20933
|
-
if (core.types.isSuper(object)) context = core.types.thisExpression();
|
|
20934
|
-
else {
|
|
20935
|
-
const memoized = scope.maybeGenerateMemoised(object);
|
|
20936
|
-
memoized ? (context = memoized, chain.object = core.types.assignmentExpression("=", memoized, object)) : context = object;
|
|
20937
|
-
}
|
|
20938
|
-
node.arguments.unshift(core.types.cloneNode(context)), node.callee = core.types.memberExpression(node.callee, core.types.identifier("call"));
|
|
20939
|
-
}
|
|
20940
|
-
const data2 = { check: core.types.cloneNode(check2), ref: core.types.cloneNode(ref2) };
|
|
20941
|
-
Object.defineProperty(data2, "ref", { enumerable: false }), checks.push(data2);
|
|
20942
|
-
}
|
|
20943
|
-
let result = replacementPath.node;
|
|
20944
|
-
wrapLast && (result = wrapLast(result));
|
|
20945
|
-
const ifNullishBoolean = core.types.isBooleanLiteral(ifNullish), ifNullishFalse = ifNullishBoolean && false === ifNullish.value, ifNullishVoid = !ifNullishBoolean && core.types.isUnaryExpression(ifNullish, { operator: "void" }), isEvaluationValueIgnored = core.types.isExpressionStatement(replacementPath.parent) && !replacementPath.isCompletionRecord() || core.types.isSequenceExpression(replacementPath.parent) && last(replacementPath.parent.expressions) !== replacementPath.node, tpl = ifNullishFalse ? noDocumentAll ? NULLISH_CHECK_NO_DDA_NEG : NULLISH_CHECK_NEG : noDocumentAll ? NULLISH_CHECK_NO_DDA : NULLISH_CHECK, logicalOp = ifNullishFalse ? "&&" : "||", check = checks.map(tpl).reduce((expr, check2) => core.types.logicalExpression(logicalOp, expr, check2));
|
|
20946
|
-
replacementPath.replaceWith(ifNullishBoolean || ifNullishVoid && isEvaluationValueIgnored ? core.types.logicalExpression(logicalOp, check, result) : core.types.conditionalExpression(check, ifNullish, result));
|
|
20947
|
-
}
|
|
20948
|
-
function transform(path5, assumptions) {
|
|
20949
|
-
const { scope } = path5, maybeWrapped = findOutermostTransparentParent(path5), { parentPath } = maybeWrapped;
|
|
20950
|
-
if (parentPath.isUnaryExpression({ operator: "delete" })) transformOptionalChain(path5, assumptions, parentPath, core.types.booleanLiteral(true));
|
|
20951
|
-
else {
|
|
20952
|
-
let wrapLast;
|
|
20953
|
-
parentPath.isCallExpression({ callee: maybeWrapped.node }) && path5.isOptionalMemberExpression() && (wrapLast = (replacement) => {
|
|
20954
|
-
var _baseRef;
|
|
20955
|
-
const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object);
|
|
20956
|
-
let baseRef;
|
|
20957
|
-
return assumptions.pureGetters && isSimpleMemberExpression(object) || (baseRef = scope.maybeGenerateMemoised(object), baseRef && (replacement.object = core.types.assignmentExpression("=", baseRef, object))), core.types.callExpression(core.types.memberExpression(replacement, core.types.identifier("bind")), [core.types.cloneNode(null != (_baseRef = baseRef) ? _baseRef : object)]);
|
|
20958
|
-
}), transformOptionalChain(path5, assumptions, path5, willPathCastToBoolean(maybeWrapped) ? core.types.booleanLiteral(false) : scope.buildUndefinedNode(), wrapLast);
|
|
20959
|
-
}
|
|
20960
|
-
}
|
|
20961
|
-
var index = helperPluginUtils.declare((api, options) => {
|
|
20962
|
-
var _api$assumption, _api$assumption2;
|
|
20963
|
-
api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
|
|
20964
|
-
const { loose = false } = options, noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose, pureGetters = null != (_api$assumption2 = api.assumption("pureGetters")) ? _api$assumption2 : loose;
|
|
20965
|
-
return { name: "transform-optional-chaining", inherits: "8" === api.version[0] ? void 0 : __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-optional-chaining@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js").A, visitor: { "OptionalCallExpression|OptionalMemberExpression"(path5) {
|
|
20966
|
-
transform(path5, { noDocumentAll, pureGetters });
|
|
20967
|
-
} } };
|
|
20968
|
-
});
|
|
20969
|
-
exports2.default = index, exports2.transform = transform, exports2.transformOptionalChain = transformOptionalChain;
|
|
20970
19628
|
}, "./node_modules/.pnpm/@babel+plugin-transform-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20971
19629
|
"use strict";
|
|
20972
19630
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(path5, t2) {
|
|
@@ -21662,7 +20320,7 @@ ${str}
|
|
|
21662
20320
|
const state = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist, placeholderPattern, syntacticPlaceholders };
|
|
21663
20321
|
return traverse(ast, placeholderVisitorHandler, state), Object.assign({ ast }, state.syntactic.placeholders.length ? state.syntactic : state.legacy);
|
|
21664
20322
|
};
|
|
21665
|
-
var _t = __webpack_require__2("./node_modules/.pnpm/@babel+types@7.24.7/node_modules/@babel/types/lib/index.js"), _parser = __webpack_require__2("./node_modules/.pnpm/@babel+parser@7.24.7/node_modules/@babel/parser/lib/index.js"), _codeFrame = __webpack_require__2("./stubs/babel-codeframe.
|
|
20323
|
+
var _t = __webpack_require__2("./node_modules/.pnpm/@babel+types@7.24.7/node_modules/@babel/types/lib/index.js"), _parser = __webpack_require__2("./node_modules/.pnpm/@babel+parser@7.24.7/node_modules/@babel/parser/lib/index.js"), _codeFrame = __webpack_require__2("./stubs/babel-codeframe.mjs");
|
|
21666
20324
|
const { isCallExpression, isExpressionStatement, isFunction, isIdentifier, isJSXIdentifier, isNewExpression, isPlaceholder, isStatement, isStringLiteral, removePropertiesDeep, traverse } = _t, PATTERN = /^[_$A-Z0-9]+$/;
|
|
21667
20325
|
function placeholderVisitorHandler(node, ancestors, state) {
|
|
21668
20326
|
var _state$placeholderWhi;
|
|
@@ -21750,7 +20408,7 @@ ${str}
|
|
|
21750
20408
|
clearPath(), clearScope();
|
|
21751
20409
|
}, exports2.clearPath = clearPath, exports2.clearScope = clearScope, exports2.getCachedPaths = function(hub, parent) {
|
|
21752
20410
|
var _pathsCache$get;
|
|
21753
|
-
return null
|
|
20411
|
+
return null == (_pathsCache$get = pathsCache.get(false ? null : nullHub)) ? void 0 : _pathsCache$get.get(parent);
|
|
21754
20412
|
}, exports2.getOrCreateCachedPaths = function(hub, parent) {
|
|
21755
20413
|
null;
|
|
21756
20414
|
let parents = pathsCache.get(false ? null : nullHub);
|
|
@@ -23516,7 +22174,7 @@ ${str}
|
|
|
23516
22174
|
const expressionAST = ast.program.body[0].expression;
|
|
23517
22175
|
return _index.default.removeProperties(expressionAST), this.replaceWith(expressionAST);
|
|
23518
22176
|
};
|
|
23519
|
-
var _codeFrame = __webpack_require__2("./stubs/babel-codeframe.
|
|
22177
|
+
var _codeFrame = __webpack_require__2("./stubs/babel-codeframe.mjs"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+traverse@7.24.7/node_modules/@babel/traverse/lib/index.js"), _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+traverse@7.24.7/node_modules/@babel/traverse/lib/path/index.js"), _cache = __webpack_require__2("./node_modules/.pnpm/@babel+traverse@7.24.7/node_modules/@babel/traverse/lib/cache.js"), _parser = __webpack_require__2("./node_modules/.pnpm/@babel+parser@7.24.7/node_modules/@babel/parser/lib/index.js"), _t = __webpack_require__2("./node_modules/.pnpm/@babel+types@7.24.7/node_modules/@babel/types/lib/index.js"), _helperHoistVariables = __webpack_require__2("./node_modules/.pnpm/@babel+helper-hoist-variables@7.24.7/node_modules/@babel/helper-hoist-variables/lib/index.js");
|
|
23520
22178
|
const { FUNCTION_TYPES, arrowFunctionExpression, assignmentExpression, awaitExpression, blockStatement, buildUndefinedNode, callExpression, cloneNode, conditionalExpression, expressionStatement, getBindingIdentifiers, identifier, inheritLeadingComments, inheritTrailingComments, inheritsComments, isBlockStatement, isEmptyStatement, isExpression, isExpressionStatement, isIfStatement, isProgram, isStatement, isVariableDeclaration, removeComments, returnStatement, sequenceExpression, validate, yieldExpression } = _t;
|
|
23521
22179
|
function gatherSequenceExpressions(nodes, declars) {
|
|
23522
22180
|
const exprs = [];
|
|
@@ -29529,6 +28187,18 @@ ${trace}`);
|
|
|
29529
28187
|
}
|
|
29530
28188
|
} };
|
|
29531
28189
|
const __WEBPACK_DEFAULT_EXPORT__ = JSON5;
|
|
28190
|
+
}, "./stubs/babel-codeframe.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
|
|
28191
|
+
"use strict";
|
|
28192
|
+
function codeFrameColumns() {
|
|
28193
|
+
return "";
|
|
28194
|
+
}
|
|
28195
|
+
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
|
|
28196
|
+
}, "./stubs/helper-compilation-targets.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
|
|
28197
|
+
"use strict";
|
|
28198
|
+
function getTargets() {
|
|
28199
|
+
return {};
|
|
28200
|
+
}
|
|
28201
|
+
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
|
|
29532
28202
|
}, "./node_modules/.pnpm/@babel+preset-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/preset-typescript/package.json": (module2) => {
|
|
29533
28203
|
"use strict";
|
|
29534
28204
|
module2.exports = JSON.parse('{"name":"@babel/preset-typescript","version":"7.24.7","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.24.7","@babel/helper-validator-option":"^7.24.7","@babel/plugin-syntax-jsx":"^7.24.7","@babel/plugin-transform-modules-commonjs":"^7.24.7","@babel/plugin-transform-typescript":"^7.24.7"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.24.7","@babel/helper-plugin-test-runner":"^7.24.7"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs"}');
|
|
@@ -29542,7 +28212,10 @@ ${trace}`);
|
|
|
29542
28212
|
var module2 = __webpack_module_cache__[moduleId] = { exports: {} };
|
|
29543
28213
|
return __webpack_modules__[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__), module2.exports;
|
|
29544
28214
|
}
|
|
29545
|
-
__webpack_require__.
|
|
28215
|
+
__webpack_require__.n = (module2) => {
|
|
28216
|
+
var getter = module2 && module2.__esModule ? () => module2.default : () => module2;
|
|
28217
|
+
return __webpack_require__.d(getter, { a: getter }), getter;
|
|
28218
|
+
}, __webpack_require__.d = (exports2, definition) => {
|
|
29546
28219
|
for (var key in definition) __webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key) && Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
|
|
29547
28220
|
}, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports2) => {
|
|
29548
28221
|
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -29550,15 +28223,17 @@ ${trace}`);
|
|
|
29550
28223
|
var __webpack_exports__ = {};
|
|
29551
28224
|
(() => {
|
|
29552
28225
|
"use strict";
|
|
29553
|
-
__webpack_require__.d(__webpack_exports__, { default: () =>
|
|
29554
|
-
var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js")
|
|
28226
|
+
__webpack_require__.d(__webpack_exports__, { default: () => transform2 });
|
|
28227
|
+
var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
|
|
28228
|
+
const external_node_url_namespaceObject = __require("node:url");
|
|
28229
|
+
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.24.7/node_modules/@babel/template/lib/index.js");
|
|
29555
28230
|
function TransformImportMetaPlugin(_ctx, opts) {
|
|
29556
28231
|
return { name: "transform-import-meta", visitor: { Program(path5) {
|
|
29557
28232
|
const metas = [];
|
|
29558
28233
|
if (path5.traverse({ MemberExpression(memberExpPath) {
|
|
29559
28234
|
const { node } = memberExpPath;
|
|
29560
28235
|
"MetaProperty" === node.object.type && "import" === node.object.meta.name && "meta" === node.object.property.name && "Identifier" === node.property.type && "url" === node.property.name && metas.push(memberExpPath);
|
|
29561
|
-
} }), 0 !== metas.length) for (const meta of metas) meta.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify((0,
|
|
28236
|
+
} }), 0 !== metas.length) for (const meta of metas) meta.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify((0, external_node_url_namespaceObject.pathToFileURL)(opts.filename)) : "require('url').pathToFileURL(__filename).toString()"}`);
|
|
29562
28237
|
} } };
|
|
29563
28238
|
}
|
|
29564
28239
|
function importMetaEnvPlugin({ template, types: types2 }) {
|
|
@@ -29572,14 +28247,124 @@ ${trace}`);
|
|
|
29572
28247
|
"import" === parentNodeObjMeta.meta.name && "meta" === parentNodeObjMeta.property.name && "env" === parentNode.property.name && path5.parentPath.replaceWith(template.expression.ast("process.env"));
|
|
29573
28248
|
} } };
|
|
29574
28249
|
}
|
|
29575
|
-
|
|
29576
|
-
|
|
29577
|
-
|
|
29578
|
-
|
|
28250
|
+
var helper_plugin_utils_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), helper_module_transforms_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.24.7_@babel+core@7.24.7/node_modules/@babel/helper-module-transforms/lib/index.js"), helper_simple_access_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-simple-access@7.24.7/node_modules/@babel/helper-simple-access/lib/index.js");
|
|
28251
|
+
function transformDynamicImport(path5, noInterop, file) {
|
|
28252
|
+
path5.replaceWith((0, helper_module_transforms_lib.buildDynamicImport)(path5.node, true, false, (specifier) => ((source, file2, noInterop2) => {
|
|
28253
|
+
const exp = lib.template.expression.ast`jitiImport(${source})`;
|
|
28254
|
+
return noInterop2 ? exp : lib.types.callExpression(lib.types.memberExpression(exp, lib.types.identifier("then")), [lib.types.arrowFunctionExpression([lib.types.identifier("m")], lib.types.callExpression(file2.addHelper("interopRequireWildcard"), [lib.types.identifier("m")]))]);
|
|
28255
|
+
})(specifier, file, noInterop)));
|
|
28256
|
+
}
|
|
28257
|
+
const commonJSHooksKey = "@babel/plugin-transform-modules-commonjs/customWrapperPlugin";
|
|
28258
|
+
function findMap(arr, cb) {
|
|
28259
|
+
if (arr) for (const el of arr) {
|
|
28260
|
+
const res = cb(el);
|
|
28261
|
+
if (null != res) return res;
|
|
28262
|
+
}
|
|
28263
|
+
}
|
|
28264
|
+
const transform_module = (0, helper_plugin_utils_lib.declare)((api, options) => {
|
|
28265
|
+
const { strictNamespace = false, mjsStrictNamespace = strictNamespace, allowTopLevelThis, strict, strictMode, noInterop, importInterop, lazy = false, allowCommonJSExports = true, loose = false, async = false } = options, constantReexports = api.assumption("constantReexports") ?? loose, enumerableModuleMeta = api.assumption("enumerableModuleMeta") ?? loose, noIncompleteNsImportDetection = api.assumption("noIncompleteNsImportDetection") ?? false;
|
|
28266
|
+
if (!("boolean" == typeof lazy || "function" == typeof lazy || Array.isArray(lazy) && lazy.every((item) => "string" == typeof item))) throw new Error(".lazy must be a boolean, array of strings, or a function");
|
|
28267
|
+
if ("boolean" != typeof strictNamespace) throw new TypeError(".strictNamespace must be a boolean, or undefined");
|
|
28268
|
+
if ("boolean" != typeof mjsStrictNamespace) throw new TypeError(".mjsStrictNamespace must be a boolean, or undefined");
|
|
28269
|
+
const getAssertion = (localName) => lib.template.expression.ast`
|
|
28270
|
+
(function(){
|
|
28271
|
+
throw new Error(
|
|
28272
|
+
"The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." +
|
|
28273
|
+
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
|
28274
|
+
"Babel config for this file.");
|
|
28275
|
+
})()
|
|
28276
|
+
`, moduleExportsVisitor = { ReferencedIdentifier(path5) {
|
|
28277
|
+
const localName = path5.node.name;
|
|
28278
|
+
if ("module" !== localName && "exports" !== localName) return;
|
|
28279
|
+
const localBinding = path5.scope.getBinding(localName);
|
|
28280
|
+
this.scope.getBinding(localName) !== localBinding || path5.parentPath.isObjectProperty({ value: path5.node }) && path5.parentPath.parentPath.isObjectPattern() || path5.parentPath.isAssignmentExpression({ left: path5.node }) || path5.isAssignmentExpression({ left: path5.node }) || path5.replaceWith(getAssertion(localName));
|
|
28281
|
+
}, UpdateExpression(path5) {
|
|
28282
|
+
const arg = path5.get("argument");
|
|
28283
|
+
if (!arg.isIdentifier()) return;
|
|
28284
|
+
const localName = arg.node.name;
|
|
28285
|
+
if ("module" !== localName && "exports" !== localName) return;
|
|
28286
|
+
const localBinding = path5.scope.getBinding(localName);
|
|
28287
|
+
this.scope.getBinding(localName) === localBinding && path5.replaceWith(lib.types.assignmentExpression(path5.node.operator[0] + "=", arg.node, getAssertion(localName)));
|
|
28288
|
+
}, AssignmentExpression(path5) {
|
|
28289
|
+
const left = path5.get("left");
|
|
28290
|
+
if (left.isIdentifier()) {
|
|
28291
|
+
const localName = left.node.name;
|
|
28292
|
+
if ("module" !== localName && "exports" !== localName) return;
|
|
28293
|
+
const localBinding = path5.scope.getBinding(localName);
|
|
28294
|
+
if (this.scope.getBinding(localName) !== localBinding) return;
|
|
28295
|
+
const right = path5.get("right");
|
|
28296
|
+
right.replaceWith(lib.types.sequenceExpression([right.node, getAssertion(localName)]));
|
|
28297
|
+
} else if (left.isPattern()) {
|
|
28298
|
+
const ids = left.getOuterBindingIdentifiers(), localName = Object.keys(ids).find((localName2) => ("module" === localName2 || "exports" === localName2) && this.scope.getBinding(localName2) === path5.scope.getBinding(localName2));
|
|
28299
|
+
if (localName) {
|
|
28300
|
+
const right = path5.get("right");
|
|
28301
|
+
right.replaceWith(lib.types.sequenceExpression([right.node, getAssertion(localName)]));
|
|
28302
|
+
}
|
|
28303
|
+
}
|
|
28304
|
+
} };
|
|
28305
|
+
return { name: "transform-modules-commonjs", pre() {
|
|
28306
|
+
this.file.set("@babel/plugin-transform-modules-*", "commonjs"), lazy && function(file, hook) {
|
|
28307
|
+
let hooks = file.get(commonJSHooksKey);
|
|
28308
|
+
hooks || file.set(commonJSHooksKey, hooks = []), hooks.push(hook);
|
|
28309
|
+
}(this.file, /* @__PURE__ */ ((lazy2) => ({ name: "babel-plugin-transform-modules-commonjs/lazy", version: "7.24.7", getWrapperPayload: (source, metadata) => (0, helper_module_transforms_lib.isSideEffectImport)(metadata) || metadata.reexportAll ? null : true === lazy2 ? source.includes(".") ? null : "lazy/function" : Array.isArray(lazy2) ? lazy2.includes(source) ? "lazy/function" : null : "function" == typeof lazy2 ? lazy2(source) ? "lazy/function" : null : void 0, buildRequireWrapper(name, init, payload, referenced) {
|
|
28310
|
+
if ("lazy/function" === payload) return !!referenced && lib.template.statement.ast`
|
|
28311
|
+
function ${name}() {
|
|
28312
|
+
const data = ${init};
|
|
28313
|
+
${name} = function(){ return data; };
|
|
28314
|
+
return data;
|
|
28315
|
+
}
|
|
28316
|
+
`;
|
|
28317
|
+
}, wrapReference(ref2, payload) {
|
|
28318
|
+
if ("lazy/function" === payload) return lib.types.callExpression(ref2, []);
|
|
28319
|
+
} }))(lazy));
|
|
28320
|
+
}, visitor: { ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path5) {
|
|
28321
|
+
if (path5.isCallExpression() && !lib.types.isImport(path5.node.callee)) return;
|
|
28322
|
+
let { scope } = path5;
|
|
28323
|
+
do {
|
|
28324
|
+
scope.rename("require");
|
|
28325
|
+
} while (scope = scope.parent);
|
|
28326
|
+
transformDynamicImport(path5, noInterop, this.file);
|
|
28327
|
+
}, Program: { exit(path5, state) {
|
|
28328
|
+
if (!(0, helper_module_transforms_lib.isModule)(path5)) return;
|
|
28329
|
+
path5.scope.rename("exports"), path5.scope.rename("module"), path5.scope.rename("require"), path5.scope.rename("__filename"), path5.scope.rename("__dirname"), allowCommonJSExports || (process.env.BABEL_8_BREAKING ? (0, helper_simple_access_lib.default)(path5, /* @__PURE__ */ new Set(["module", "exports"])) : (0, helper_simple_access_lib.default)(path5, /* @__PURE__ */ new Set(["module", "exports"]), false), path5.traverse(moduleExportsVisitor, { scope: path5.scope }));
|
|
28330
|
+
let moduleName = (0, helper_module_transforms_lib.getModuleName)(this.file.opts, options);
|
|
28331
|
+
moduleName && (moduleName = lib.types.stringLiteral(moduleName));
|
|
28332
|
+
const hooks = function(file) {
|
|
28333
|
+
const hooks2 = file.get(commonJSHooksKey);
|
|
28334
|
+
return { getWrapperPayload: (...args) => findMap(hooks2, (hook) => hook.getWrapperPayload?.(...args)), wrapReference: (...args) => findMap(hooks2, (hook) => hook.wrapReference?.(...args)), buildRequireWrapper: (...args) => findMap(hooks2, (hook) => hook.buildRequireWrapper?.(...args)) };
|
|
28335
|
+
}(this.file), { meta, headers } = (0, helper_module_transforms_lib.rewriteModuleStatementsAndPrepareHeader)(path5, { exportName: "exports", constantReexports, enumerableModuleMeta, strict, strictMode, allowTopLevelThis, noInterop, importInterop, wrapReference: hooks.wrapReference, getWrapperPayload: hooks.getWrapperPayload, esNamespaceOnly: "string" == typeof state.filename && /\.mjs$/.test(state.filename) ? mjsStrictNamespace : strictNamespace, noIncompleteNsImportDetection, filename: this.file.opts.filename });
|
|
28336
|
+
for (const [source, metadata] of meta.source) {
|
|
28337
|
+
const loadExpr = async ? lib.types.awaitExpression(lib.types.callExpression(lib.types.identifier("jitiImport"), [lib.types.stringLiteral(source)])) : lib.types.callExpression(lib.types.identifier("require"), [lib.types.stringLiteral(source)]);
|
|
28338
|
+
let header;
|
|
28339
|
+
if ((0, helper_module_transforms_lib.isSideEffectImport)(metadata)) {
|
|
28340
|
+
if (lazy && "function" === metadata.wrap) throw new Error("Assertion failure");
|
|
28341
|
+
header = lib.types.expressionStatement(loadExpr);
|
|
28342
|
+
} else {
|
|
28343
|
+
const init = (0, helper_module_transforms_lib.wrapInterop)(path5, loadExpr, metadata.interop) || loadExpr;
|
|
28344
|
+
if (metadata.wrap) {
|
|
28345
|
+
const res = hooks.buildRequireWrapper(metadata.name, init, metadata.wrap, metadata.referenced);
|
|
28346
|
+
if (false === res) continue;
|
|
28347
|
+
header = res;
|
|
28348
|
+
}
|
|
28349
|
+
header ??= lib.template.statement.ast`
|
|
28350
|
+
var ${metadata.name} = ${init};
|
|
28351
|
+
`;
|
|
28352
|
+
}
|
|
28353
|
+
header.loc = metadata.loc, headers.push(header), headers.push(...(0, helper_module_transforms_lib.buildNamespaceInitStatements)(meta, metadata, constantReexports, hooks.wrapReference));
|
|
28354
|
+
}
|
|
28355
|
+
(0, helper_module_transforms_lib.ensureStatementsHoisted)(headers), path5.unshiftContainer("body", headers), path5.get("body").forEach((path6) => {
|
|
28356
|
+
headers.includes(path6.node) && path6.isVariableDeclaration() && path6.scope.registerDeclaration(path6);
|
|
28357
|
+
});
|
|
28358
|
+
} } } };
|
|
28359
|
+
});
|
|
28360
|
+
var lib_plugin = __webpack_require__("./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/plugin.js"), plugin_syntax_class_properties_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-class-properties/lib/index.js"), plugin_transform_export_namespace_from_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-export-namespace-from@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js"), plugin_transform_typescript_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-typescript/lib/index.js"), plugin_proposal_decorators_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-proposal-decorators/lib/index.js"), babel_plugin_parameter_decorator_lib = __webpack_require__("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js"), babel_plugin_parameter_decorator_lib_default = __webpack_require__.n(babel_plugin_parameter_decorator_lib), plugin_syntax_import_assertions_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-import-assertions@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js");
|
|
28361
|
+
function transform2(opts) {
|
|
28362
|
+
const _opts = { babelrc: false, configFile: false, compact: false, retainLines: "boolean" != typeof opts.retainLines || opts.retainLines, filename: "", cwd: "/", ...opts.babel, plugins: [[transform_module, { allowTopLevelThis: true, noInterop: !opts.interopDefault, async: opts.async }], [TransformImportMetaPlugin, { filename: opts.filename }], [plugin_syntax_class_properties_lib.A], [plugin_transform_export_namespace_from_lib.A], [importMetaEnvPlugin]] };
|
|
28363
|
+
opts.ts && (_opts.plugins.push([plugin_transform_typescript_lib.default, { allowDeclareFields: true }]), _opts.plugins.unshift([lib_plugin.A], [plugin_proposal_decorators_lib.A, { legacy: true }]), _opts.plugins.push(babel_plugin_parameter_decorator_lib_default()), _opts.plugins.push(plugin_syntax_import_assertions_lib.A)), opts.babel && Array.isArray(opts.babel.plugins) && _opts.plugins?.push(...opts.babel.plugins);
|
|
29579
28364
|
try {
|
|
29580
|
-
return { code: (
|
|
28365
|
+
return { code: (0, lib.transformSync)(opts.source, _opts)?.code || "" };
|
|
29581
28366
|
} catch (error) {
|
|
29582
|
-
return { error, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line:
|
|
28367
|
+
return { error, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line: error.loc?.line || 0, column: error.loc?.column || 0, code: error.code?.replace("BABEL_", "").replace("PARSE_ERROR", "ParseError"), message: error.message?.replace("/: ", "").replace(/\(.+\)\s*$/, "") }) };
|
|
29583
28368
|
}
|
|
29584
28369
|
}
|
|
29585
28370
|
})(), module.exports = __webpack_exports__.default;
|
|
@@ -29587,23 +28372,6 @@ ${trace}`);
|
|
|
29587
28372
|
}
|
|
29588
28373
|
});
|
|
29589
28374
|
|
|
29590
|
-
// node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js
|
|
29591
|
-
var require_lib = __commonJS({
|
|
29592
|
-
"node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js"(exports, module) {
|
|
29593
|
-
function onError(err) {
|
|
29594
|
-
throw err;
|
|
29595
|
-
}
|
|
29596
|
-
module.exports = function jiti(filename, opts) {
|
|
29597
|
-
const jiti2 = require_jiti();
|
|
29598
|
-
opts = { onError, ...opts };
|
|
29599
|
-
if (!opts.transform) {
|
|
29600
|
-
opts.transform = require_babel();
|
|
29601
|
-
}
|
|
29602
|
-
return jiti2(filename, opts);
|
|
29603
|
-
};
|
|
29604
|
-
}
|
|
29605
|
-
});
|
|
29606
|
-
|
|
29607
28375
|
// node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
29608
28376
|
function isPlainObject(value2) {
|
|
29609
28377
|
if (value2 === null || typeof value2 !== "object") {
|
|
@@ -32570,6 +31338,344 @@ ${f2}`, i2);
|
|
|
32570
31338
|
}
|
|
32571
31339
|
});
|
|
32572
31340
|
|
|
31341
|
+
// node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json
|
|
31342
|
+
var require_package = __commonJS({
|
|
31343
|
+
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports, module) {
|
|
31344
|
+
module.exports = {
|
|
31345
|
+
name: "dotenv",
|
|
31346
|
+
version: "16.4.5",
|
|
31347
|
+
description: "Loads environment variables from .env file",
|
|
31348
|
+
main: "lib/main.js",
|
|
31349
|
+
types: "lib/main.d.ts",
|
|
31350
|
+
exports: {
|
|
31351
|
+
".": {
|
|
31352
|
+
types: "./lib/main.d.ts",
|
|
31353
|
+
require: "./lib/main.js",
|
|
31354
|
+
default: "./lib/main.js"
|
|
31355
|
+
},
|
|
31356
|
+
"./config": "./config.js",
|
|
31357
|
+
"./config.js": "./config.js",
|
|
31358
|
+
"./lib/env-options": "./lib/env-options.js",
|
|
31359
|
+
"./lib/env-options.js": "./lib/env-options.js",
|
|
31360
|
+
"./lib/cli-options": "./lib/cli-options.js",
|
|
31361
|
+
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
31362
|
+
"./package.json": "./package.json"
|
|
31363
|
+
},
|
|
31364
|
+
scripts: {
|
|
31365
|
+
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
31366
|
+
lint: "standard",
|
|
31367
|
+
"lint-readme": "standard-markdown",
|
|
31368
|
+
pretest: "npm run lint && npm run dts-check",
|
|
31369
|
+
test: "tap tests/*.js --100 -Rspec",
|
|
31370
|
+
"test:coverage": "tap --coverage-report=lcov",
|
|
31371
|
+
prerelease: "npm test",
|
|
31372
|
+
release: "standard-version"
|
|
31373
|
+
},
|
|
31374
|
+
repository: {
|
|
31375
|
+
type: "git",
|
|
31376
|
+
url: "git://github.com/motdotla/dotenv.git"
|
|
31377
|
+
},
|
|
31378
|
+
funding: "https://dotenvx.com",
|
|
31379
|
+
keywords: [
|
|
31380
|
+
"dotenv",
|
|
31381
|
+
"env",
|
|
31382
|
+
".env",
|
|
31383
|
+
"environment",
|
|
31384
|
+
"variables",
|
|
31385
|
+
"config",
|
|
31386
|
+
"settings"
|
|
31387
|
+
],
|
|
31388
|
+
readmeFilename: "README.md",
|
|
31389
|
+
license: "BSD-2-Clause",
|
|
31390
|
+
devDependencies: {
|
|
31391
|
+
"@definitelytyped/dtslint": "^0.0.133",
|
|
31392
|
+
"@types/node": "^18.11.3",
|
|
31393
|
+
decache: "^4.6.1",
|
|
31394
|
+
sinon: "^14.0.1",
|
|
31395
|
+
standard: "^17.0.0",
|
|
31396
|
+
"standard-markdown": "^7.1.0",
|
|
31397
|
+
"standard-version": "^9.5.0",
|
|
31398
|
+
tap: "^16.3.0",
|
|
31399
|
+
tar: "^6.1.11",
|
|
31400
|
+
typescript: "^4.8.4"
|
|
31401
|
+
},
|
|
31402
|
+
engines: {
|
|
31403
|
+
node: ">=12"
|
|
31404
|
+
},
|
|
31405
|
+
browser: {
|
|
31406
|
+
fs: false
|
|
31407
|
+
}
|
|
31408
|
+
};
|
|
31409
|
+
}
|
|
31410
|
+
});
|
|
31411
|
+
|
|
31412
|
+
// node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
|
|
31413
|
+
var require_main = __commonJS({
|
|
31414
|
+
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports, module) {
|
|
31415
|
+
var fs2 = __require("fs");
|
|
31416
|
+
var path5 = __require("path");
|
|
31417
|
+
var os2 = __require("os");
|
|
31418
|
+
var crypto = __require("crypto");
|
|
31419
|
+
var packageJson = require_package();
|
|
31420
|
+
var version2 = packageJson.version;
|
|
31421
|
+
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
31422
|
+
function parse6(src) {
|
|
31423
|
+
const obj = {};
|
|
31424
|
+
let lines = src.toString();
|
|
31425
|
+
lines = lines.replace(/\r\n?/mg, "\n");
|
|
31426
|
+
let match;
|
|
31427
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
31428
|
+
const key = match[1];
|
|
31429
|
+
let value2 = match[2] || "";
|
|
31430
|
+
value2 = value2.trim();
|
|
31431
|
+
const maybeQuote = value2[0];
|
|
31432
|
+
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
31433
|
+
if (maybeQuote === '"') {
|
|
31434
|
+
value2 = value2.replace(/\\n/g, "\n");
|
|
31435
|
+
value2 = value2.replace(/\\r/g, "\r");
|
|
31436
|
+
}
|
|
31437
|
+
obj[key] = value2;
|
|
31438
|
+
}
|
|
31439
|
+
return obj;
|
|
31440
|
+
}
|
|
31441
|
+
function _parseVault(options) {
|
|
31442
|
+
const vaultPath = _vaultPath(options);
|
|
31443
|
+
const result = DotenvModule.configDotenv({ path: vaultPath });
|
|
31444
|
+
if (!result.parsed) {
|
|
31445
|
+
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
31446
|
+
err.code = "MISSING_DATA";
|
|
31447
|
+
throw err;
|
|
31448
|
+
}
|
|
31449
|
+
const keys = _dotenvKey(options).split(",");
|
|
31450
|
+
const length = keys.length;
|
|
31451
|
+
let decrypted;
|
|
31452
|
+
for (let i2 = 0; i2 < length; i2++) {
|
|
31453
|
+
try {
|
|
31454
|
+
const key = keys[i2].trim();
|
|
31455
|
+
const attrs = _instructions(result, key);
|
|
31456
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
31457
|
+
break;
|
|
31458
|
+
} catch (error) {
|
|
31459
|
+
if (i2 + 1 >= length) {
|
|
31460
|
+
throw error;
|
|
31461
|
+
}
|
|
31462
|
+
}
|
|
31463
|
+
}
|
|
31464
|
+
return DotenvModule.parse(decrypted);
|
|
31465
|
+
}
|
|
31466
|
+
function _log(message) {
|
|
31467
|
+
console.log(`[dotenv@${version2}][INFO] ${message}`);
|
|
31468
|
+
}
|
|
31469
|
+
function _warn(message) {
|
|
31470
|
+
console.log(`[dotenv@${version2}][WARN] ${message}`);
|
|
31471
|
+
}
|
|
31472
|
+
function _debug(message) {
|
|
31473
|
+
console.log(`[dotenv@${version2}][DEBUG] ${message}`);
|
|
31474
|
+
}
|
|
31475
|
+
function _dotenvKey(options) {
|
|
31476
|
+
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
31477
|
+
return options.DOTENV_KEY;
|
|
31478
|
+
}
|
|
31479
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
31480
|
+
return process.env.DOTENV_KEY;
|
|
31481
|
+
}
|
|
31482
|
+
return "";
|
|
31483
|
+
}
|
|
31484
|
+
function _instructions(result, dotenvKey) {
|
|
31485
|
+
let uri;
|
|
31486
|
+
try {
|
|
31487
|
+
uri = new URL(dotenvKey);
|
|
31488
|
+
} catch (error) {
|
|
31489
|
+
if (error.code === "ERR_INVALID_URL") {
|
|
31490
|
+
const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
31491
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31492
|
+
throw err;
|
|
31493
|
+
}
|
|
31494
|
+
throw error;
|
|
31495
|
+
}
|
|
31496
|
+
const key = uri.password;
|
|
31497
|
+
if (!key) {
|
|
31498
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
31499
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31500
|
+
throw err;
|
|
31501
|
+
}
|
|
31502
|
+
const environment = uri.searchParams.get("environment");
|
|
31503
|
+
if (!environment) {
|
|
31504
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
31505
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31506
|
+
throw err;
|
|
31507
|
+
}
|
|
31508
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
31509
|
+
const ciphertext = result.parsed[environmentKey];
|
|
31510
|
+
if (!ciphertext) {
|
|
31511
|
+
const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
31512
|
+
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
31513
|
+
throw err;
|
|
31514
|
+
}
|
|
31515
|
+
return { ciphertext, key };
|
|
31516
|
+
}
|
|
31517
|
+
function _vaultPath(options) {
|
|
31518
|
+
let possibleVaultPath = null;
|
|
31519
|
+
if (options && options.path && options.path.length > 0) {
|
|
31520
|
+
if (Array.isArray(options.path)) {
|
|
31521
|
+
for (const filepath of options.path) {
|
|
31522
|
+
if (fs2.existsSync(filepath)) {
|
|
31523
|
+
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
31524
|
+
}
|
|
31525
|
+
}
|
|
31526
|
+
} else {
|
|
31527
|
+
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
31528
|
+
}
|
|
31529
|
+
} else {
|
|
31530
|
+
possibleVaultPath = path5.resolve(process.cwd(), ".env.vault");
|
|
31531
|
+
}
|
|
31532
|
+
if (fs2.existsSync(possibleVaultPath)) {
|
|
31533
|
+
return possibleVaultPath;
|
|
31534
|
+
}
|
|
31535
|
+
return null;
|
|
31536
|
+
}
|
|
31537
|
+
function _resolveHome(envPath) {
|
|
31538
|
+
return envPath[0] === "~" ? path5.join(os2.homedir(), envPath.slice(1)) : envPath;
|
|
31539
|
+
}
|
|
31540
|
+
function _configVault(options) {
|
|
31541
|
+
_log("Loading env from encrypted .env.vault");
|
|
31542
|
+
const parsed = DotenvModule._parseVault(options);
|
|
31543
|
+
let processEnv = process.env;
|
|
31544
|
+
if (options && options.processEnv != null) {
|
|
31545
|
+
processEnv = options.processEnv;
|
|
31546
|
+
}
|
|
31547
|
+
DotenvModule.populate(processEnv, parsed, options);
|
|
31548
|
+
return { parsed };
|
|
31549
|
+
}
|
|
31550
|
+
function configDotenv(options) {
|
|
31551
|
+
const dotenvPath = path5.resolve(process.cwd(), ".env");
|
|
31552
|
+
let encoding = "utf8";
|
|
31553
|
+
const debug2 = Boolean(options && options.debug);
|
|
31554
|
+
if (options && options.encoding) {
|
|
31555
|
+
encoding = options.encoding;
|
|
31556
|
+
} else {
|
|
31557
|
+
if (debug2) {
|
|
31558
|
+
_debug("No encoding is specified. UTF-8 is used by default");
|
|
31559
|
+
}
|
|
31560
|
+
}
|
|
31561
|
+
let optionPaths = [dotenvPath];
|
|
31562
|
+
if (options && options.path) {
|
|
31563
|
+
if (!Array.isArray(options.path)) {
|
|
31564
|
+
optionPaths = [_resolveHome(options.path)];
|
|
31565
|
+
} else {
|
|
31566
|
+
optionPaths = [];
|
|
31567
|
+
for (const filepath of options.path) {
|
|
31568
|
+
optionPaths.push(_resolveHome(filepath));
|
|
31569
|
+
}
|
|
31570
|
+
}
|
|
31571
|
+
}
|
|
31572
|
+
let lastError;
|
|
31573
|
+
const parsedAll = {};
|
|
31574
|
+
for (const path6 of optionPaths) {
|
|
31575
|
+
try {
|
|
31576
|
+
const parsed = DotenvModule.parse(fs2.readFileSync(path6, { encoding }));
|
|
31577
|
+
DotenvModule.populate(parsedAll, parsed, options);
|
|
31578
|
+
} catch (e2) {
|
|
31579
|
+
if (debug2) {
|
|
31580
|
+
_debug(`Failed to load ${path6} ${e2.message}`);
|
|
31581
|
+
}
|
|
31582
|
+
lastError = e2;
|
|
31583
|
+
}
|
|
31584
|
+
}
|
|
31585
|
+
let processEnv = process.env;
|
|
31586
|
+
if (options && options.processEnv != null) {
|
|
31587
|
+
processEnv = options.processEnv;
|
|
31588
|
+
}
|
|
31589
|
+
DotenvModule.populate(processEnv, parsedAll, options);
|
|
31590
|
+
if (lastError) {
|
|
31591
|
+
return { parsed: parsedAll, error: lastError };
|
|
31592
|
+
} else {
|
|
31593
|
+
return { parsed: parsedAll };
|
|
31594
|
+
}
|
|
31595
|
+
}
|
|
31596
|
+
function config(options) {
|
|
31597
|
+
if (_dotenvKey(options).length === 0) {
|
|
31598
|
+
return DotenvModule.configDotenv(options);
|
|
31599
|
+
}
|
|
31600
|
+
const vaultPath = _vaultPath(options);
|
|
31601
|
+
if (!vaultPath) {
|
|
31602
|
+
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
31603
|
+
return DotenvModule.configDotenv(options);
|
|
31604
|
+
}
|
|
31605
|
+
return DotenvModule._configVault(options);
|
|
31606
|
+
}
|
|
31607
|
+
function decrypt(encrypted, keyStr) {
|
|
31608
|
+
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
31609
|
+
let ciphertext = Buffer.from(encrypted, "base64");
|
|
31610
|
+
const nonce = ciphertext.subarray(0, 12);
|
|
31611
|
+
const authTag = ciphertext.subarray(-16);
|
|
31612
|
+
ciphertext = ciphertext.subarray(12, -16);
|
|
31613
|
+
try {
|
|
31614
|
+
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
31615
|
+
aesgcm.setAuthTag(authTag);
|
|
31616
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
31617
|
+
} catch (error) {
|
|
31618
|
+
const isRange = error instanceof RangeError;
|
|
31619
|
+
const invalidKeyLength = error.message === "Invalid key length";
|
|
31620
|
+
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
31621
|
+
if (isRange || invalidKeyLength) {
|
|
31622
|
+
const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
31623
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31624
|
+
throw err;
|
|
31625
|
+
} else if (decryptionFailed) {
|
|
31626
|
+
const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
31627
|
+
err.code = "DECRYPTION_FAILED";
|
|
31628
|
+
throw err;
|
|
31629
|
+
} else {
|
|
31630
|
+
throw error;
|
|
31631
|
+
}
|
|
31632
|
+
}
|
|
31633
|
+
}
|
|
31634
|
+
function populate(processEnv, parsed, options = {}) {
|
|
31635
|
+
const debug2 = Boolean(options && options.debug);
|
|
31636
|
+
const override = Boolean(options && options.override);
|
|
31637
|
+
if (typeof parsed !== "object") {
|
|
31638
|
+
const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
31639
|
+
err.code = "OBJECT_REQUIRED";
|
|
31640
|
+
throw err;
|
|
31641
|
+
}
|
|
31642
|
+
for (const key of Object.keys(parsed)) {
|
|
31643
|
+
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
31644
|
+
if (override === true) {
|
|
31645
|
+
processEnv[key] = parsed[key];
|
|
31646
|
+
}
|
|
31647
|
+
if (debug2) {
|
|
31648
|
+
if (override === true) {
|
|
31649
|
+
_debug(`"${key}" is already defined and WAS overwritten`);
|
|
31650
|
+
} else {
|
|
31651
|
+
_debug(`"${key}" is already defined and was NOT overwritten`);
|
|
31652
|
+
}
|
|
31653
|
+
}
|
|
31654
|
+
} else {
|
|
31655
|
+
processEnv[key] = parsed[key];
|
|
31656
|
+
}
|
|
31657
|
+
}
|
|
31658
|
+
}
|
|
31659
|
+
var DotenvModule = {
|
|
31660
|
+
configDotenv,
|
|
31661
|
+
_configVault,
|
|
31662
|
+
_parseVault,
|
|
31663
|
+
config,
|
|
31664
|
+
decrypt,
|
|
31665
|
+
parse: parse6,
|
|
31666
|
+
populate
|
|
31667
|
+
};
|
|
31668
|
+
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
31669
|
+
module.exports._configVault = DotenvModule._configVault;
|
|
31670
|
+
module.exports._parseVault = DotenvModule._parseVault;
|
|
31671
|
+
module.exports.config = DotenvModule.config;
|
|
31672
|
+
module.exports.decrypt = DotenvModule.decrypt;
|
|
31673
|
+
module.exports.parse = DotenvModule.parse;
|
|
31674
|
+
module.exports.populate = DotenvModule.populate;
|
|
31675
|
+
module.exports = DotenvModule;
|
|
31676
|
+
}
|
|
31677
|
+
});
|
|
31678
|
+
|
|
32573
31679
|
// node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/jsonc.mjs
|
|
32574
31680
|
var jsonc_exports = {};
|
|
32575
31681
|
__export(jsonc_exports, {
|
|
@@ -44988,7 +44094,7 @@ var require_dist = __commonJS({
|
|
|
44988
44094
|
});
|
|
44989
44095
|
|
|
44990
44096
|
// node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs
|
|
44991
|
-
var
|
|
44097
|
+
var require_lib = __commonJS({
|
|
44992
44098
|
"node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs"(exports, module) {
|
|
44993
44099
|
var nodeFetch = require_dist();
|
|
44994
44100
|
function fetch2(input, options) {
|
|
@@ -45095,7 +44201,7 @@ var require_proxy = __commonJS({
|
|
|
45095
44201
|
var require$$3 = __require("events");
|
|
45096
44202
|
var require$$5$2 = __require("url");
|
|
45097
44203
|
var require$$2$1 = __require("assert");
|
|
45098
|
-
var nodeFetchNative =
|
|
44204
|
+
var nodeFetchNative = require_lib();
|
|
45099
44205
|
function _interopDefaultCompat(e2) {
|
|
45100
44206
|
return e2 && typeof e2 == "object" && "default" in e2 ? e2.default : e2;
|
|
45101
44207
|
}
|
|
@@ -48132,7 +47238,7 @@ ${f2.toString(16)}\r
|
|
|
48132
47238
|
if (J4 != null && typeof J4 != "boolean") throw new InvalidArgumentError$e("allowH2 must be a valid boolean value");
|
|
48133
47239
|
if (W6 != null && (typeof W6 != "number" || W6 < 1)) throw new InvalidArgumentError$e("maxConcurrentStreams must be a positive integer, greater than 0");
|
|
48134
47240
|
typeof Y5 != "function" && (Y5 = buildConnector$2({ ...S6, maxCachedSessions: p2, allowH2: J4, socketPath: k4, timeout: l2, ...util$f.nodeHasAutoSelectFamily && D4 ? { autoSelectFamily: D4, autoSelectFamilyAttemptTimeout: b6 } : void 0, ...Y5 })), t2?.Client && Array.isArray(t2.Client) ? (this[kInterceptors$3] = t2.Client, deprecatedInterceptorWarned || (deprecatedInterceptorWarned = true, process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.", { code: "UNDICI-CLIENT-INTERCEPTOR-DEPRECATED" }))) : this[kInterceptors$3] = [createRedirectInterceptor$1({ maxRedirections: V5 })], this[kUrl$2] = util$f.parseOrigin(A2), this[kConnector] = Y5, this[kPipelining] = F2 ?? 1, this[kMaxHeadersSize] = r3 || http$1.maxHeaderSize, this[kKeepAliveDefaultTimeout] = I4 ?? 4e3, this[kKeepAliveMaxTimeout] = w5 ?? 6e5, this[kKeepAliveTimeoutThreshold] = U4 ?? 1e3, this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout], this[kServerName] = null, this[kLocalAddress] = m3 ?? null, this[kResuming] = 0, this[kNeedDrain$2] = 0, this[kHostHeader] = `host: ${this[kUrl$2].hostname}${this[kUrl$2].port ? `:${this[kUrl$2].port}` : ""}\r
|
|
48135
|
-
`, this[kBodyTimeout] = C4 ?? 3e5, this[kHeadersTimeout] = n ?? 3e5, this[kStrictContentLength] = M4 ?? true, this[kMaxRedirections$1] = V5, this[kMaxRequests] = R4, this[kClosedResolve$1] = null, this[kMaxResponseSize] = _6 > -1 ? _6 : -1, this[kMaxConcurrentStreams] = W6 ?? 100, this[kHTTPContext] = null, this[kQueue$1] = [], this[kRunningIdx] = 0, this[kPendingIdx] = 0, this[kResume$1] = (N5) => resume$1(this, N5), this[kOnError] = (N5) =>
|
|
47241
|
+
`, this[kBodyTimeout] = C4 ?? 3e5, this[kHeadersTimeout] = n ?? 3e5, this[kStrictContentLength] = M4 ?? true, this[kMaxRedirections$1] = V5, this[kMaxRequests] = R4, this[kClosedResolve$1] = null, this[kMaxResponseSize] = _6 > -1 ? _6 : -1, this[kMaxConcurrentStreams] = W6 ?? 100, this[kHTTPContext] = null, this[kQueue$1] = [], this[kRunningIdx] = 0, this[kPendingIdx] = 0, this[kResume$1] = (N5) => resume$1(this, N5), this[kOnError] = (N5) => onError2(this, N5);
|
|
48136
47242
|
}
|
|
48137
47243
|
get pipelining() {
|
|
48138
47244
|
return this[kPipelining];
|
|
@@ -48182,7 +47288,7 @@ ${f2.toString(16)}\r
|
|
|
48182
47288
|
}
|
|
48183
47289
|
}, Q5(Xe2, "Client"), Xe2);
|
|
48184
47290
|
var createRedirectInterceptor$1 = redirectInterceptor;
|
|
48185
|
-
function
|
|
47291
|
+
function onError2(e2, A2) {
|
|
48186
47292
|
if (e2[kRunning$3] === 0 && A2.code !== "UND_ERR_INFO" && A2.code !== "UND_ERR_SOCKET") {
|
|
48187
47293
|
assert$4(e2[kPendingIdx] === e2[kRunningIdx]);
|
|
48188
47294
|
const t2 = e2[kQueue$1].splice(e2[kRunningIdx]);
|
|
@@ -48193,7 +47299,7 @@ ${f2.toString(16)}\r
|
|
|
48193
47299
|
assert$4(e2[kSize$3] === 0);
|
|
48194
47300
|
}
|
|
48195
47301
|
}
|
|
48196
|
-
Q5(
|
|
47302
|
+
Q5(onError2, "onError");
|
|
48197
47303
|
async function connect$1(e2) {
|
|
48198
47304
|
assert$4(!e2[kConnecting]), assert$4(!e2[kHTTPContext]);
|
|
48199
47305
|
let { host: A2, hostname: t2, protocol: r3, port: n } = e2[kUrl$2];
|
|
@@ -48229,7 +47335,7 @@ ${f2.toString(16)}\r
|
|
|
48229
47335
|
const B3 = e2[kQueue$1][e2[kPendingIdx]++];
|
|
48230
47336
|
errorRequest(e2, B3, o);
|
|
48231
47337
|
}
|
|
48232
|
-
else
|
|
47338
|
+
else onError2(e2, o);
|
|
48233
47339
|
e2.emit("connectionError", e2[kUrl$2], [e2], o);
|
|
48234
47340
|
}
|
|
48235
47341
|
e2[kResume$1]();
|
|
@@ -53662,15 +52768,15 @@ var require_conversions = __commonJS({
|
|
|
53662
52768
|
const g4 = rgb[1] / 255;
|
|
53663
52769
|
const b6 = rgb[2] / 255;
|
|
53664
52770
|
const v5 = Math.max(r3, g4, b6);
|
|
53665
|
-
const
|
|
52771
|
+
const diff = v5 - Math.min(r3, g4, b6);
|
|
53666
52772
|
const diffc = function(c) {
|
|
53667
|
-
return (v5 - c) / 6 /
|
|
52773
|
+
return (v5 - c) / 6 / diff + 1 / 2;
|
|
53668
52774
|
};
|
|
53669
|
-
if (
|
|
52775
|
+
if (diff === 0) {
|
|
53670
52776
|
h5 = 0;
|
|
53671
52777
|
s2 = 0;
|
|
53672
52778
|
} else {
|
|
53673
|
-
s2 =
|
|
52779
|
+
s2 = diff / v5;
|
|
53674
52780
|
rdif = diffc(r3);
|
|
53675
52781
|
gdif = diffc(g4);
|
|
53676
52782
|
bdif = diffc(b6);
|
|
@@ -54968,14 +54074,31 @@ var require_source = __commonJS({
|
|
|
54968
54074
|
}
|
|
54969
54075
|
});
|
|
54970
54076
|
|
|
54971
|
-
// node_modules/.pnpm/c12@
|
|
54077
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
|
|
54972
54078
|
init_dist();
|
|
54973
|
-
var dotenv = __toESM(require_main(), 1);
|
|
54974
|
-
var import_jiti = __toESM(require_lib(), 1);
|
|
54975
54079
|
import { existsSync as existsSync4, promises as promises3 } from "node:fs";
|
|
54976
54080
|
import { rm as rm2, readFile as readFile3 } from "node:fs/promises";
|
|
54977
54081
|
import { homedir as homedir3 } from "node:os";
|
|
54978
54082
|
|
|
54083
|
+
// node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/lib/jiti.mjs
|
|
54084
|
+
var import_jiti = __toESM(require_jiti(), 1);
|
|
54085
|
+
var import_babel = __toESM(require_babel(), 1);
|
|
54086
|
+
import { createRequire } from "node:module";
|
|
54087
|
+
function onError(err) {
|
|
54088
|
+
throw err;
|
|
54089
|
+
}
|
|
54090
|
+
var nativeImport = (id) => import(id);
|
|
54091
|
+
function createJiti(id, opts = {}) {
|
|
54092
|
+
if (!opts.transform) {
|
|
54093
|
+
opts = { ...opts, transform: import_babel.default };
|
|
54094
|
+
}
|
|
54095
|
+
return (0, import_jiti.default)(id, opts, {
|
|
54096
|
+
onError,
|
|
54097
|
+
nativeImport,
|
|
54098
|
+
createRequire
|
|
54099
|
+
});
|
|
54100
|
+
}
|
|
54101
|
+
|
|
54979
54102
|
// node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
54980
54103
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
54981
54104
|
import { resolve as resolve2 } from "node:path";
|
|
@@ -55211,7 +54334,7 @@ function readUser(options) {
|
|
|
55211
54334
|
return read(options);
|
|
55212
54335
|
}
|
|
55213
54336
|
|
|
55214
|
-
// node_modules/.pnpm/c12@
|
|
54337
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
|
|
55215
54338
|
init_defu();
|
|
55216
54339
|
|
|
55217
54340
|
// node_modules/.pnpm/ohash@1.1.3/node_modules/ohash/dist/index.mjs
|
|
@@ -55816,7 +54939,7 @@ function hash(object, options = {}) {
|
|
|
55816
54939
|
return sha256base64(hashed).slice(0, 10);
|
|
55817
54940
|
}
|
|
55818
54941
|
|
|
55819
|
-
// node_modules/.pnpm/pkg-types@1.
|
|
54942
|
+
// node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
|
|
55820
54943
|
init_dist();
|
|
55821
54944
|
import { statSync as statSync2, promises as promises2 } from "node:fs";
|
|
55822
54945
|
|
|
@@ -61217,8 +60340,13 @@ Parser.acorn = {
|
|
|
61217
60340
|
// node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
|
|
61218
60341
|
init_dist2();
|
|
61219
60342
|
init_dist();
|
|
61220
|
-
import { builtinModules, createRequire } from "node:module";
|
|
60343
|
+
import { builtinModules, createRequire as createRequire2 } from "node:module";
|
|
61221
60344
|
import fs, { realpathSync, statSync, promises } from "node:fs";
|
|
60345
|
+
|
|
60346
|
+
// node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/index.mjs
|
|
60347
|
+
init_confbox_bcd59e75();
|
|
60348
|
+
|
|
60349
|
+
// node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
|
|
61222
60350
|
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
|
|
61223
60351
|
import assert from "node:assert";
|
|
61224
60352
|
import process$1 from "node:process";
|
|
@@ -62572,10 +61700,7 @@ function resolvePath(id, options) {
|
|
|
62572
61700
|
}
|
|
62573
61701
|
}
|
|
62574
61702
|
|
|
62575
|
-
// node_modules/.pnpm/
|
|
62576
|
-
init_confbox_bcd59e75();
|
|
62577
|
-
|
|
62578
|
-
// node_modules/.pnpm/pkg-types@1.1.1/node_modules/pkg-types/dist/index.mjs
|
|
61703
|
+
// node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
|
|
62579
61704
|
var defaultFindOptions = {
|
|
62580
61705
|
startingFrom: ".",
|
|
62581
61706
|
rootPattern: /^node_modules$/,
|
|
@@ -62692,7 +61817,8 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
62692
61817
|
throw new Error("Cannot detect workspace root from " + id);
|
|
62693
61818
|
}
|
|
62694
61819
|
|
|
62695
|
-
// node_modules/.pnpm/c12@
|
|
61820
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
|
|
61821
|
+
var dotenv = __toESM(require_main(), 1);
|
|
62696
61822
|
async function setupDotenv(options) {
|
|
62697
61823
|
const targetEnvironment = options.env ?? process.env;
|
|
62698
61824
|
const environment = await loadDotenv({
|
|
@@ -62741,7 +61867,7 @@ function interpolate(target, source = {}, parse6 = (v5) => v5) {
|
|
|
62741
61867
|
let value22, replacePart;
|
|
62742
61868
|
if (prefix === "\\") {
|
|
62743
61869
|
replacePart = parts[0] || "";
|
|
62744
|
-
value22 = replacePart.replace(
|
|
61870
|
+
value22 = replacePart.replace(String.raw`\$`, "$");
|
|
62745
61871
|
} else {
|
|
62746
61872
|
const key = parts[2];
|
|
62747
61873
|
replacePart = (parts[0] || "").slice(prefix.length);
|
|
@@ -62800,10 +61926,10 @@ async function loadConfig(options) {
|
|
|
62800
61926
|
...options.extend
|
|
62801
61927
|
};
|
|
62802
61928
|
}
|
|
62803
|
-
|
|
61929
|
+
const _merger = options.merger || defu;
|
|
61930
|
+
options.jiti = options.jiti || createJiti(join(options.cwd, options.configFile), {
|
|
62804
61931
|
interopDefault: true,
|
|
62805
|
-
|
|
62806
|
-
esmResolve: true,
|
|
61932
|
+
moduleCache: false,
|
|
62807
61933
|
extensions: [...SUPPORTED_EXTENSIONS],
|
|
62808
61934
|
...options.jitiOptions
|
|
62809
61935
|
});
|
|
@@ -62813,17 +61939,24 @@ async function loadConfig(options) {
|
|
|
62813
61939
|
configFile: resolve(options.cwd, options.configFile),
|
|
62814
61940
|
layers: []
|
|
62815
61941
|
};
|
|
61942
|
+
const _configs = {
|
|
61943
|
+
overrides: options.overrides,
|
|
61944
|
+
main: void 0,
|
|
61945
|
+
rc: void 0,
|
|
61946
|
+
packageJson: void 0,
|
|
61947
|
+
defaultConfig: options.defaultConfig
|
|
61948
|
+
};
|
|
62816
61949
|
if (options.dotenv) {
|
|
62817
61950
|
await setupDotenv({
|
|
62818
61951
|
cwd: options.cwd,
|
|
62819
61952
|
...options.dotenv === true ? {} : options.dotenv
|
|
62820
61953
|
});
|
|
62821
61954
|
}
|
|
62822
|
-
const
|
|
62823
|
-
if (configFile) {
|
|
62824
|
-
|
|
61955
|
+
const _mainConfig = await resolveConfig(".", options);
|
|
61956
|
+
if (_mainConfig.configFile) {
|
|
61957
|
+
_configs.main = _mainConfig.config;
|
|
61958
|
+
r3.configFile = _mainConfig.configFile;
|
|
62825
61959
|
}
|
|
62826
|
-
const configRC = {};
|
|
62827
61960
|
if (options.rcFile) {
|
|
62828
61961
|
const rcSources = [];
|
|
62829
61962
|
rcSources.push(read({ name: options.rcFile, dir: options.cwd }));
|
|
@@ -62835,9 +61968,8 @@ async function loadConfig(options) {
|
|
|
62835
61968
|
}
|
|
62836
61969
|
rcSources.push(readUser({ name: options.rcFile, dir: options.cwd }));
|
|
62837
61970
|
}
|
|
62838
|
-
|
|
61971
|
+
_configs.rc = _merger({}, ...rcSources);
|
|
62839
61972
|
}
|
|
62840
|
-
const pkgJson = {};
|
|
62841
61973
|
if (options.packageJson) {
|
|
62842
61974
|
const keys = (Array.isArray(options.packageJson) ? options.packageJson : [
|
|
62843
61975
|
typeof options.packageJson === "string" ? options.packageJson : options.name
|
|
@@ -62845,34 +61977,42 @@ async function loadConfig(options) {
|
|
|
62845
61977
|
const pkgJsonFile = await readPackageJSON(options.cwd).catch(() => {
|
|
62846
61978
|
});
|
|
62847
61979
|
const values = keys.map((key) => pkgJsonFile?.[key]);
|
|
62848
|
-
|
|
62849
|
-
}
|
|
62850
|
-
|
|
62851
|
-
|
|
62852
|
-
|
|
62853
|
-
|
|
62854
|
-
|
|
62855
|
-
|
|
61980
|
+
_configs.packageJson = _merger({}, ...values);
|
|
61981
|
+
}
|
|
61982
|
+
const configs = {};
|
|
61983
|
+
for (const key in _configs) {
|
|
61984
|
+
const value2 = _configs[key];
|
|
61985
|
+
configs[key] = await (typeof value2 === "function" ? value2({ configs }) : value2);
|
|
61986
|
+
}
|
|
61987
|
+
r3.config = _merger(
|
|
61988
|
+
configs.overrides,
|
|
61989
|
+
configs.main,
|
|
61990
|
+
configs.rc,
|
|
61991
|
+
configs.packageJson,
|
|
61992
|
+
configs.defaultConfig
|
|
62856
61993
|
);
|
|
62857
61994
|
if (options.extend) {
|
|
62858
61995
|
await extendConfig(r3.config, options);
|
|
62859
61996
|
r3.layers = r3.config._layers;
|
|
62860
61997
|
delete r3.config._layers;
|
|
62861
|
-
r3.config =
|
|
61998
|
+
r3.config = _merger(r3.config, ...r3.layers.map((e2) => e2.config));
|
|
62862
61999
|
}
|
|
62863
62000
|
const baseLayers = [
|
|
62864
|
-
|
|
62865
|
-
config:
|
|
62001
|
+
configs.overrides && {
|
|
62002
|
+
config: configs.overrides,
|
|
62866
62003
|
configFile: void 0,
|
|
62867
62004
|
cwd: void 0
|
|
62868
62005
|
},
|
|
62869
|
-
{ config, configFile: options.configFile, cwd: options.cwd },
|
|
62870
|
-
|
|
62871
|
-
|
|
62006
|
+
{ config: configs.main, configFile: options.configFile, cwd: options.cwd },
|
|
62007
|
+
configs.rc && { config: configs.rc, configFile: options.rcFile },
|
|
62008
|
+
configs.packageJson && {
|
|
62009
|
+
config: configs.packageJson,
|
|
62010
|
+
configFile: "package.json"
|
|
62011
|
+
}
|
|
62872
62012
|
].filter((l2) => l2 && l2.config);
|
|
62873
62013
|
r3.layers = [...baseLayers, ...r3.layers];
|
|
62874
62014
|
if (options.defaults) {
|
|
62875
|
-
r3.config =
|
|
62015
|
+
r3.config = _merger(r3.config, options.defaults);
|
|
62876
62016
|
}
|
|
62877
62017
|
if (options.omit$Keys) {
|
|
62878
62018
|
for (const key in r3.config) {
|
|
@@ -62951,7 +62091,8 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
62951
62091
|
return res2;
|
|
62952
62092
|
}
|
|
62953
62093
|
}
|
|
62954
|
-
|
|
62094
|
+
const _merger = options.merger || defu;
|
|
62095
|
+
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
62955
62096
|
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist4(), dist_exports));
|
|
62956
62097
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
62957
62098
|
let cloneDir;
|
|
@@ -62979,7 +62120,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
62979
62120
|
}
|
|
62980
62121
|
const tryResolve = (id) => {
|
|
62981
62122
|
try {
|
|
62982
|
-
return options.jiti.
|
|
62123
|
+
return options.jiti.esmResolve(id, { try: true });
|
|
62983
62124
|
} catch {
|
|
62984
62125
|
}
|
|
62985
62126
|
};
|
|
@@ -63009,7 +62150,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
63009
62150
|
const contents = await readFile3(res.configFile, "utf8");
|
|
63010
62151
|
res.config = asyncLoader(contents);
|
|
63011
62152
|
} else {
|
|
63012
|
-
res.config = options.jiti(res.configFile);
|
|
62153
|
+
res.config = await options.jiti.import(res.configFile);
|
|
63013
62154
|
}
|
|
63014
62155
|
if (res.config instanceof Function) {
|
|
63015
62156
|
res.config = await res.config();
|
|
@@ -63020,19 +62161,23 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
63020
62161
|
...res.config.$env?.[options.envName]
|
|
63021
62162
|
};
|
|
63022
62163
|
if (Object.keys(envConfig).length > 0) {
|
|
63023
|
-
res.config =
|
|
62164
|
+
res.config = _merger(envConfig, res.config);
|
|
63024
62165
|
}
|
|
63025
62166
|
}
|
|
63026
62167
|
res.meta = defu(res.sourceOptions.meta, res.config.$meta);
|
|
63027
62168
|
delete res.config.$meta;
|
|
63028
62169
|
if (res.sourceOptions.overrides) {
|
|
63029
|
-
res.config =
|
|
62170
|
+
res.config = _merger(res.sourceOptions.overrides, res.config);
|
|
63030
62171
|
}
|
|
63031
62172
|
res.configFile = _normalize(res.configFile);
|
|
63032
62173
|
res.source = _normalize(res.source);
|
|
63033
62174
|
return res;
|
|
63034
62175
|
}
|
|
63035
62176
|
|
|
62177
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/index.mjs
|
|
62178
|
+
init_defu();
|
|
62179
|
+
var import_dotenv = __toESM(require_main(), 1);
|
|
62180
|
+
|
|
63036
62181
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
63037
62182
|
var import_deepmerge = __toESM(require_cjs());
|
|
63038
62183
|
|
|
@@ -63880,12 +63025,12 @@ var ZodType = class {
|
|
|
63880
63025
|
and(incoming) {
|
|
63881
63026
|
return ZodIntersection.create(this, incoming, this._def);
|
|
63882
63027
|
}
|
|
63883
|
-
transform(
|
|
63028
|
+
transform(transform2) {
|
|
63884
63029
|
return new ZodEffects({
|
|
63885
63030
|
...processCreateParams(this._def),
|
|
63886
63031
|
schema: this,
|
|
63887
63032
|
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
63888
|
-
effect: { type: "transform", transform }
|
|
63033
|
+
effect: { type: "transform", transform: transform2 }
|
|
63889
63034
|
});
|
|
63890
63035
|
}
|
|
63891
63036
|
default(def) {
|