@storm-software/config-tools 1.93.0 → 1.93.2

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/index.cjs CHANGED
@@ -224,363 +224,11 @@ var init_dist = __esm({
224
224
  }
225
225
  });
226
226
 
227
- // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json
228
- var require_package = __commonJS({
229
- "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports2, module2) {
230
- module2.exports = {
231
- name: "dotenv",
232
- version: "16.4.5",
233
- description: "Loads environment variables from .env file",
234
- main: "lib/main.js",
235
- types: "lib/main.d.ts",
236
- exports: {
237
- ".": {
238
- types: "./lib/main.d.ts",
239
- require: "./lib/main.js",
240
- default: "./lib/main.js"
241
- },
242
- "./config": "./config.js",
243
- "./config.js": "./config.js",
244
- "./lib/env-options": "./lib/env-options.js",
245
- "./lib/env-options.js": "./lib/env-options.js",
246
- "./lib/cli-options": "./lib/cli-options.js",
247
- "./lib/cli-options.js": "./lib/cli-options.js",
248
- "./package.json": "./package.json"
249
- },
250
- scripts: {
251
- "dts-check": "tsc --project tests/types/tsconfig.json",
252
- lint: "standard",
253
- "lint-readme": "standard-markdown",
254
- pretest: "npm run lint && npm run dts-check",
255
- test: "tap tests/*.js --100 -Rspec",
256
- "test:coverage": "tap --coverage-report=lcov",
257
- prerelease: "npm test",
258
- release: "standard-version"
259
- },
260
- repository: {
261
- type: "git",
262
- url: "git://github.com/motdotla/dotenv.git"
263
- },
264
- funding: "https://dotenvx.com",
265
- keywords: [
266
- "dotenv",
267
- "env",
268
- ".env",
269
- "environment",
270
- "variables",
271
- "config",
272
- "settings"
273
- ],
274
- readmeFilename: "README.md",
275
- license: "BSD-2-Clause",
276
- devDependencies: {
277
- "@definitelytyped/dtslint": "^0.0.133",
278
- "@types/node": "^18.11.3",
279
- decache: "^4.6.1",
280
- sinon: "^14.0.1",
281
- standard: "^17.0.0",
282
- "standard-markdown": "^7.1.0",
283
- "standard-version": "^9.5.0",
284
- tap: "^16.3.0",
285
- tar: "^6.1.11",
286
- typescript: "^4.8.4"
287
- },
288
- engines: {
289
- node: ">=12"
290
- },
291
- browser: {
292
- fs: false
293
- }
294
- };
295
- }
296
- });
297
-
298
- // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
299
- var require_main = __commonJS({
300
- "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports2, module2) {
301
- var fs2 = require("fs");
302
- var path5 = require("path");
303
- var os2 = require("os");
304
- var crypto = require("crypto");
305
- var packageJson = require_package();
306
- var version2 = packageJson.version;
307
- var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
308
- function parse6(src) {
309
- const obj = {};
310
- let lines = src.toString();
311
- lines = lines.replace(/\r\n?/mg, "\n");
312
- let match;
313
- while ((match = LINE.exec(lines)) != null) {
314
- const key = match[1];
315
- let value2 = match[2] || "";
316
- value2 = value2.trim();
317
- const maybeQuote = value2[0];
318
- value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
319
- if (maybeQuote === '"') {
320
- value2 = value2.replace(/\\n/g, "\n");
321
- value2 = value2.replace(/\\r/g, "\r");
322
- }
323
- obj[key] = value2;
324
- }
325
- return obj;
326
- }
327
- function _parseVault(options) {
328
- const vaultPath = _vaultPath(options);
329
- const result = DotenvModule.configDotenv({ path: vaultPath });
330
- if (!result.parsed) {
331
- const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
332
- err.code = "MISSING_DATA";
333
- throw err;
334
- }
335
- const keys = _dotenvKey(options).split(",");
336
- const length = keys.length;
337
- let decrypted;
338
- for (let i2 = 0; i2 < length; i2++) {
339
- try {
340
- const key = keys[i2].trim();
341
- const attrs = _instructions(result, key);
342
- decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
343
- break;
344
- } catch (error) {
345
- if (i2 + 1 >= length) {
346
- throw error;
347
- }
348
- }
349
- }
350
- return DotenvModule.parse(decrypted);
351
- }
352
- function _log(message) {
353
- console.log(`[dotenv@${version2}][INFO] ${message}`);
354
- }
355
- function _warn(message) {
356
- console.log(`[dotenv@${version2}][WARN] ${message}`);
357
- }
358
- function _debug(message) {
359
- console.log(`[dotenv@${version2}][DEBUG] ${message}`);
360
- }
361
- function _dotenvKey(options) {
362
- if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
363
- return options.DOTENV_KEY;
364
- }
365
- if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
366
- return process.env.DOTENV_KEY;
367
- }
368
- return "";
369
- }
370
- function _instructions(result, dotenvKey) {
371
- let uri;
372
- try {
373
- uri = new URL(dotenvKey);
374
- } catch (error) {
375
- if (error.code === "ERR_INVALID_URL") {
376
- 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");
377
- err.code = "INVALID_DOTENV_KEY";
378
- throw err;
379
- }
380
- throw error;
381
- }
382
- const key = uri.password;
383
- if (!key) {
384
- const err = new Error("INVALID_DOTENV_KEY: Missing key part");
385
- err.code = "INVALID_DOTENV_KEY";
386
- throw err;
387
- }
388
- const environment = uri.searchParams.get("environment");
389
- if (!environment) {
390
- const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
391
- err.code = "INVALID_DOTENV_KEY";
392
- throw err;
393
- }
394
- const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
395
- const ciphertext = result.parsed[environmentKey];
396
- if (!ciphertext) {
397
- const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
398
- err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
399
- throw err;
400
- }
401
- return { ciphertext, key };
402
- }
403
- function _vaultPath(options) {
404
- let possibleVaultPath = null;
405
- if (options && options.path && options.path.length > 0) {
406
- if (Array.isArray(options.path)) {
407
- for (const filepath of options.path) {
408
- if (fs2.existsSync(filepath)) {
409
- possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
410
- }
411
- }
412
- } else {
413
- possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
414
- }
415
- } else {
416
- possibleVaultPath = path5.resolve(process.cwd(), ".env.vault");
417
- }
418
- if (fs2.existsSync(possibleVaultPath)) {
419
- return possibleVaultPath;
420
- }
421
- return null;
422
- }
423
- function _resolveHome(envPath) {
424
- return envPath[0] === "~" ? path5.join(os2.homedir(), envPath.slice(1)) : envPath;
425
- }
426
- function _configVault(options) {
427
- _log("Loading env from encrypted .env.vault");
428
- const parsed = DotenvModule._parseVault(options);
429
- let processEnv = process.env;
430
- if (options && options.processEnv != null) {
431
- processEnv = options.processEnv;
432
- }
433
- DotenvModule.populate(processEnv, parsed, options);
434
- return { parsed };
435
- }
436
- function configDotenv(options) {
437
- const dotenvPath = path5.resolve(process.cwd(), ".env");
438
- let encoding = "utf8";
439
- const debug2 = Boolean(options && options.debug);
440
- if (options && options.encoding) {
441
- encoding = options.encoding;
442
- } else {
443
- if (debug2) {
444
- _debug("No encoding is specified. UTF-8 is used by default");
445
- }
446
- }
447
- let optionPaths = [dotenvPath];
448
- if (options && options.path) {
449
- if (!Array.isArray(options.path)) {
450
- optionPaths = [_resolveHome(options.path)];
451
- } else {
452
- optionPaths = [];
453
- for (const filepath of options.path) {
454
- optionPaths.push(_resolveHome(filepath));
455
- }
456
- }
457
- }
458
- let lastError;
459
- const parsedAll = {};
460
- for (const path6 of optionPaths) {
461
- try {
462
- const parsed = DotenvModule.parse(fs2.readFileSync(path6, { encoding }));
463
- DotenvModule.populate(parsedAll, parsed, options);
464
- } catch (e2) {
465
- if (debug2) {
466
- _debug(`Failed to load ${path6} ${e2.message}`);
467
- }
468
- lastError = e2;
469
- }
470
- }
471
- let processEnv = process.env;
472
- if (options && options.processEnv != null) {
473
- processEnv = options.processEnv;
474
- }
475
- DotenvModule.populate(processEnv, parsedAll, options);
476
- if (lastError) {
477
- return { parsed: parsedAll, error: lastError };
478
- } else {
479
- return { parsed: parsedAll };
480
- }
481
- }
482
- function config(options) {
483
- if (_dotenvKey(options).length === 0) {
484
- return DotenvModule.configDotenv(options);
485
- }
486
- const vaultPath = _vaultPath(options);
487
- if (!vaultPath) {
488
- _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
489
- return DotenvModule.configDotenv(options);
490
- }
491
- return DotenvModule._configVault(options);
492
- }
493
- function decrypt(encrypted, keyStr) {
494
- const key = Buffer.from(keyStr.slice(-64), "hex");
495
- let ciphertext = Buffer.from(encrypted, "base64");
496
- const nonce = ciphertext.subarray(0, 12);
497
- const authTag = ciphertext.subarray(-16);
498
- ciphertext = ciphertext.subarray(12, -16);
499
- try {
500
- const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
501
- aesgcm.setAuthTag(authTag);
502
- return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
503
- } catch (error) {
504
- const isRange = error instanceof RangeError;
505
- const invalidKeyLength = error.message === "Invalid key length";
506
- const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
507
- if (isRange || invalidKeyLength) {
508
- const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
509
- err.code = "INVALID_DOTENV_KEY";
510
- throw err;
511
- } else if (decryptionFailed) {
512
- const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
513
- err.code = "DECRYPTION_FAILED";
514
- throw err;
515
- } else {
516
- throw error;
517
- }
518
- }
519
- }
520
- function populate(processEnv, parsed, options = {}) {
521
- const debug2 = Boolean(options && options.debug);
522
- const override = Boolean(options && options.override);
523
- if (typeof parsed !== "object") {
524
- const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
525
- err.code = "OBJECT_REQUIRED";
526
- throw err;
527
- }
528
- for (const key of Object.keys(parsed)) {
529
- if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
530
- if (override === true) {
531
- processEnv[key] = parsed[key];
532
- }
533
- if (debug2) {
534
- if (override === true) {
535
- _debug(`"${key}" is already defined and WAS overwritten`);
536
- } else {
537
- _debug(`"${key}" is already defined and was NOT overwritten`);
538
- }
539
- }
540
- } else {
541
- processEnv[key] = parsed[key];
542
- }
543
- }
544
- }
545
- var DotenvModule = {
546
- configDotenv,
547
- _configVault,
548
- _parseVault,
549
- config,
550
- decrypt,
551
- parse: parse6,
552
- populate
553
- };
554
- module2.exports.configDotenv = DotenvModule.configDotenv;
555
- module2.exports._configVault = DotenvModule._configVault;
556
- module2.exports._parseVault = DotenvModule._parseVault;
557
- module2.exports.config = DotenvModule.config;
558
- module2.exports.decrypt = DotenvModule.decrypt;
559
- module2.exports.parse = DotenvModule.parse;
560
- module2.exports.populate = DotenvModule.populate;
561
- module2.exports = DotenvModule;
562
- }
563
- });
564
-
565
- // node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js
227
+ // node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs
566
228
  var require_jiti = __commonJS({
567
- "node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js"(exports2, module2) {
229
+ "node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs"(exports2, module2) {
568
230
  (() => {
569
- var __webpack_modules__ = { "./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
570
- const nativeModule = __webpack_require__2("module"), path5 = __webpack_require__2("path"), fs2 = __webpack_require__2("fs");
571
- module3.exports = function(filename) {
572
- return filename || (filename = process.cwd()), function(path6) {
573
- try {
574
- return fs2.lstatSync(path6).isDirectory();
575
- } catch (e2) {
576
- return false;
577
- }
578
- }(filename) && (filename = path5.join(filename, "index.js")), nativeModule.createRequire ? nativeModule.createRequire(filename) : nativeModule.createRequireFromPath ? nativeModule.createRequireFromPath(filename) : function(filename2) {
579
- const mod = new nativeModule.Module(filename2, null);
580
- return mod.filename = filename2, mod.paths = nativeModule.Module._nodeModulePaths(path5.dirname(filename2)), mod._compile("module.exports = require;", filename2), mod.exports;
581
- }(filename);
582
- };
583
- }, "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module3) => {
231
+ var __webpack_modules__ = { "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module3) => {
584
232
  function webpackEmptyAsyncContext(req) {
585
233
  return Promise.resolve().then(() => {
586
234
  var e2 = new Error("Cannot find module '" + req + "'");
@@ -588,893 +236,24 @@ var require_jiti = __commonJS({
588
236
  });
589
237
  }
590
238
  webpackEmptyAsyncContext.keys = () => [], webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext, webpackEmptyAsyncContext.id = "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive", module3.exports = webpackEmptyAsyncContext;
591
- }, "./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js": (module3, exports3, __webpack_require__2) => {
592
- "use strict";
593
- var crypto = __webpack_require__2("crypto");
594
- function objectHash2(object, options) {
595
- return function(object2, options2) {
596
- var hashingStream;
597
- hashingStream = "passthrough" !== options2.algorithm ? crypto.createHash(options2.algorithm) : new PassThrough();
598
- void 0 === hashingStream.write && (hashingStream.write = hashingStream.update, hashingStream.end = hashingStream.update);
599
- var hasher = typeHasher(options2, hashingStream);
600
- hasher.dispatch(object2), hashingStream.update || hashingStream.end("");
601
- if (hashingStream.digest) return hashingStream.digest("buffer" === options2.encoding ? void 0 : options2.encoding);
602
- var buf = hashingStream.read();
603
- if ("buffer" === options2.encoding) return buf;
604
- return buf.toString(options2.encoding);
605
- }(object, options = applyDefaults(object, options));
606
- }
607
- (exports3 = module3.exports = objectHash2).sha1 = function(object) {
608
- return objectHash2(object);
609
- }, exports3.keys = function(object) {
610
- return objectHash2(object, { excludeValues: true, algorithm: "sha1", encoding: "hex" });
611
- }, exports3.MD5 = function(object) {
612
- return objectHash2(object, { algorithm: "md5", encoding: "hex" });
613
- }, exports3.keysMD5 = function(object) {
614
- return objectHash2(object, { algorithm: "md5", encoding: "hex", excludeValues: true });
615
- };
616
- var hashes = crypto.getHashes ? crypto.getHashes().slice() : ["sha1", "md5"];
617
- hashes.push("passthrough");
618
- var encodings = ["buffer", "hex", "binary", "base64"];
619
- function applyDefaults(object, sourceOptions) {
620
- sourceOptions = sourceOptions || {};
621
- var options = {};
622
- 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.");
623
- for (var i2 = 0; i2 < hashes.length; ++i2) hashes[i2].toLowerCase() === options.algorithm.toLowerCase() && (options.algorithm = hashes[i2]);
624
- if (-1 === hashes.indexOf(options.algorithm)) throw new Error('Algorithm "' + options.algorithm + '" not supported. supported values: ' + hashes.join(", "));
625
- if (-1 === encodings.indexOf(options.encoding) && "passthrough" !== options.algorithm) throw new Error('Encoding "' + options.encoding + '" not supported. supported values: ' + encodings.join(", "));
626
- return options;
627
- }
628
- function isNativeFunction2(f2) {
629
- if ("function" != typeof f2) return false;
630
- return null != /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(f2));
631
- }
632
- function typeHasher(options, writeTo, context) {
633
- context = context || [];
634
- var write = function(str) {
635
- return writeTo.update ? writeTo.update(str, "utf8") : writeTo.write(str, "utf8");
636
- };
637
- return { dispatch: function(value2) {
638
- options.replacer && (value2 = options.replacer(value2));
639
- var type = typeof value2;
640
- return null === value2 && (type = "null"), this["_" + type](value2);
641
- }, _object: function(object) {
642
- var objString = Object.prototype.toString.call(object), objType = /\[object (.*)\]/i.exec(objString);
643
- objType = (objType = objType ? objType[1] : "unknown:[" + objString + "]").toLowerCase();
644
- var objectNumber;
645
- if ((objectNumber = context.indexOf(object)) >= 0) return this.dispatch("[CIRCULAR:" + objectNumber + "]");
646
- if (context.push(object), "undefined" != typeof Buffer && Buffer.isBuffer && Buffer.isBuffer(object)) return write("buffer:"), write(object);
647
- if ("object" === objType || "function" === objType || "asyncfunction" === objType) {
648
- var keys = Object.keys(object);
649
- options.unorderedObjects && (keys = keys.sort()), false === options.respectType || isNativeFunction2(object) || keys.splice(0, 0, "prototype", "__proto__", "constructor"), options.excludeKeys && (keys = keys.filter(function(key) {
650
- return !options.excludeKeys(key);
651
- })), write("object:" + keys.length + ":");
652
- var self2 = this;
653
- return keys.forEach(function(key) {
654
- self2.dispatch(key), write(":"), options.excludeValues || self2.dispatch(object[key]), write(",");
655
- });
656
- }
657
- if (!this["_" + objType]) {
658
- if (options.ignoreUnknown) return write("[" + objType + "]");
659
- throw new Error('Unknown object type "' + objType + '"');
660
- }
661
- this["_" + objType](object);
662
- }, _array: function(arr, unordered) {
663
- unordered = void 0 !== unordered ? unordered : false !== options.unorderedArrays;
664
- var self2 = this;
665
- if (write("array:" + arr.length + ":"), !unordered || arr.length <= 1) return arr.forEach(function(entry) {
666
- return self2.dispatch(entry);
667
- });
668
- var contextAdditions = [], entries = arr.map(function(entry) {
669
- var strm = new PassThrough(), localContext = context.slice();
670
- return typeHasher(options, strm, localContext).dispatch(entry), contextAdditions = contextAdditions.concat(localContext.slice(context.length)), strm.read().toString();
671
- });
672
- return context = context.concat(contextAdditions), entries.sort(), this._array(entries, false);
673
- }, _date: function(date) {
674
- return write("date:" + date.toJSON());
675
- }, _symbol: function(sym) {
676
- return write("symbol:" + sym.toString());
677
- }, _error: function(err) {
678
- return write("error:" + err.toString());
679
- }, _boolean: function(bool) {
680
- return write("bool:" + bool.toString());
681
- }, _string: function(string) {
682
- write("string:" + string.length + ":"), write(string.toString());
683
- }, _function: function(fn2) {
684
- 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);
685
- }, _number: function(number) {
686
- return write("number:" + number.toString());
687
- }, _xml: function(xml) {
688
- return write("xml:" + xml.toString());
689
- }, _null: function() {
690
- return write("Null");
691
- }, _undefined: function() {
692
- return write("Undefined");
693
- }, _regexp: function(regex) {
694
- return write("regex:" + regex.toString());
695
- }, _uint8array: function(arr) {
696
- return write("uint8array:"), this.dispatch(Array.prototype.slice.call(arr));
697
- }, _uint8clampedarray: function(arr) {
698
- return write("uint8clampedarray:"), this.dispatch(Array.prototype.slice.call(arr));
699
- }, _int8array: function(arr) {
700
- return write("int8array:"), this.dispatch(Array.prototype.slice.call(arr));
701
- }, _uint16array: function(arr) {
702
- return write("uint16array:"), this.dispatch(Array.prototype.slice.call(arr));
703
- }, _int16array: function(arr) {
704
- return write("int16array:"), this.dispatch(Array.prototype.slice.call(arr));
705
- }, _uint32array: function(arr) {
706
- return write("uint32array:"), this.dispatch(Array.prototype.slice.call(arr));
707
- }, _int32array: function(arr) {
708
- return write("int32array:"), this.dispatch(Array.prototype.slice.call(arr));
709
- }, _float32array: function(arr) {
710
- return write("float32array:"), this.dispatch(Array.prototype.slice.call(arr));
711
- }, _float64array: function(arr) {
712
- return write("float64array:"), this.dispatch(Array.prototype.slice.call(arr));
713
- }, _arraybuffer: function(arr) {
714
- return write("arraybuffer:"), this.dispatch(new Uint8Array(arr));
715
- }, _url: function(url) {
716
- return write("url:" + url.toString());
717
- }, _map: function(map) {
718
- write("map:");
719
- var arr = Array.from(map);
720
- return this._array(arr, false !== options.unorderedSets);
721
- }, _set: function(set) {
722
- write("set:");
723
- var arr = Array.from(set);
724
- return this._array(arr, false !== options.unorderedSets);
725
- }, _file: function(file) {
726
- return write("file:"), this.dispatch([file.name, file.size, file.type, file.lastModfied]);
727
- }, _blob: function() {
728
- if (options.ignoreUnknown) return write("[blob]");
729
- 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');
730
- }, _domwindow: function() {
731
- return write("domwindow");
732
- }, _bigint: function(number) {
733
- return write("bigint:" + number.toString());
734
- }, _process: function() {
735
- return write("process");
736
- }, _timer: function() {
737
- return write("timer");
738
- }, _pipe: function() {
739
- return write("pipe");
740
- }, _tcp: function() {
741
- return write("tcp");
742
- }, _udp: function() {
743
- return write("udp");
744
- }, _tty: function() {
745
- return write("tty");
746
- }, _statwatcher: function() {
747
- return write("statwatcher");
748
- }, _securecontext: function() {
749
- return write("securecontext");
750
- }, _connection: function() {
751
- return write("connection");
752
- }, _zlib: function() {
753
- return write("zlib");
754
- }, _context: function() {
755
- return write("context");
756
- }, _nodescript: function() {
757
- return write("nodescript");
758
- }, _httpparser: function() {
759
- return write("httpparser");
760
- }, _dataview: function() {
761
- return write("dataview");
762
- }, _signal: function() {
763
- return write("signal");
764
- }, _fsevent: function() {
765
- return write("fsevent");
766
- }, _tlswrap: function() {
767
- return write("tlswrap");
768
- } };
769
- }
770
- function PassThrough() {
771
- return { buf: "", write: function(b6) {
772
- this.buf += b6;
773
- }, end: function(b6) {
774
- this.buf += b6;
775
- }, read: function() {
776
- return this.buf;
777
- } };
778
- }
779
- exports3.writeToStream = function(object, options, stream) {
780
- return void 0 === stream && (stream = options, options = {}), typeHasher(options = applyDefaults(object, options), stream).dispatch(object);
781
- };
782
- }, "./node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js": (module3, exports3, __webpack_require__2) => {
783
- "use strict";
784
- module3 = __webpack_require__2.nmd(module3), Object.defineProperty(exports3, "__esModule", { value: true }), exports3.addHook = function(hook, opts = {}) {
785
- let reverted = false;
786
- const loaders = [], oldLoaders = [];
787
- let exts;
788
- const originalJSLoader = Module._extensions[".js"], matcher = opts.matcher || null, ignoreNodeModules = false !== opts.ignoreNodeModules;
789
- exts = opts.extensions || opts.exts || opts.extension || opts.ext || [".js"], Array.isArray(exts) || (exts = [exts]);
790
- return exts.forEach((ext) => {
791
- if ("string" != typeof ext) throw new TypeError(`Invalid Extension: ${ext}`);
792
- const oldLoader = Module._extensions[ext] || originalJSLoader;
793
- oldLoaders[ext] = Module._extensions[ext], loaders[ext] = Module._extensions[ext] = function(mod, filename) {
794
- let compile;
795
- reverted || function(filename2, exts2, matcher2, ignoreNodeModules2) {
796
- if ("string" != typeof filename2) return false;
797
- if (-1 === exts2.indexOf(_path.default.extname(filename2))) return false;
798
- const resolvedFilename = _path.default.resolve(filename2);
799
- if (ignoreNodeModules2 && nodeModulesRegex.test(resolvedFilename)) return false;
800
- if (matcher2 && "function" == typeof matcher2) return !!matcher2(resolvedFilename);
801
- return true;
802
- }(filename, exts, matcher, ignoreNodeModules) && (compile = mod._compile, mod._compile = function(code) {
803
- mod._compile = compile;
804
- const newCode = hook(code, filename);
805
- if ("string" != typeof newCode) throw new Error(HOOK_RETURNED_NOTHING_ERROR_MESSAGE);
806
- return mod._compile(newCode, filename);
807
- }), oldLoader(mod, filename);
808
- };
809
- }), function() {
810
- reverted || (reverted = true, exts.forEach((ext) => {
811
- Module._extensions[ext] === loaders[ext] && (oldLoaders[ext] ? Module._extensions[ext] = oldLoaders[ext] : delete Module._extensions[ext]);
812
- }));
813
- };
814
- };
815
- var _module = _interopRequireDefault(__webpack_require__2("module")), _path = _interopRequireDefault(__webpack_require__2("path"));
816
- function _interopRequireDefault(obj) {
817
- return obj && obj.__esModule ? obj : { default: obj };
818
- }
819
- const nodeModulesRegex = /^(?:.*[\\/])?node_modules(?:[\\/].*)?$/, Module = module3.constructor.length > 1 ? module3.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.";
820
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
821
- const ANY = Symbol("SemVer ANY");
822
- class Comparator {
823
- static get ANY() {
824
- return ANY;
825
- }
826
- constructor(comp, options) {
827
- if (options = parseOptions(options), comp instanceof Comparator) {
828
- if (comp.loose === !!options.loose) return comp;
829
- comp = comp.value;
830
- }
831
- 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);
832
- }
833
- parse(comp) {
834
- const r3 = this.options.loose ? re3[t2.COMPARATORLOOSE] : re3[t2.COMPARATOR], m3 = comp.match(r3);
835
- if (!m3) throw new TypeError(`Invalid comparator: ${comp}`);
836
- 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;
837
- }
838
- toString() {
839
- return this.value;
840
- }
841
- test(version2) {
842
- if (debug2("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY) return true;
843
- if ("string" == typeof version2) try {
844
- version2 = new SemVer(version2, this.options);
845
- } catch (er2) {
846
- return false;
847
- }
848
- return cmp(version2, this.operator, this.semver, this.options);
849
- }
850
- intersects(comp, options) {
851
- if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
852
- 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(">")))))));
853
- }
854
- }
855
- module3.exports = Comparator;
856
- 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");
857
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
858
- class Range {
859
- constructor(range, options) {
860
- if (options = parseOptions(options), range instanceof Range) return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new Range(range.raw, options);
861
- if (range instanceof Comparator) return this.raw = range.value, this.set = [[range]], this.format(), this;
862
- 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}`);
863
- if (this.set.length > 1) {
864
- const first = this.set[0];
865
- if (this.set = this.set.filter((c) => !isNullSet(c[0])), 0 === this.set.length) this.set = [first];
866
- else if (this.set.length > 1) {
867
- for (const c of this.set) if (1 === c.length && isAny(c[0])) {
868
- this.set = [c];
869
- break;
870
- }
871
- }
872
- }
873
- this.format();
874
- }
875
- format() {
876
- return this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim(), this.range;
877
- }
878
- toString() {
879
- return this.range;
880
- }
881
- parseRange(range) {
882
- const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached2 = cache2.get(memoKey);
883
- if (cached2) return cached2;
884
- const loose = this.options.loose, hr2 = loose ? re3[t2.HYPHENRANGELOOSE] : re3[t2.HYPHENRANGE];
885
- 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);
886
- let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
887
- loose && (rangeList = rangeList.filter((comp) => (debug2("loose invalid filter", comp, this.options), !!comp.match(re3[t2.COMPARATORLOOSE])))), debug2("range list", rangeList);
888
- const rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
889
- for (const comp of comparators) {
890
- if (isNullSet(comp)) return [comp];
891
- rangeMap.set(comp.value, comp);
892
- }
893
- rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
894
- const result = [...rangeMap.values()];
895
- return cache2.set(memoKey, result), result;
896
- }
897
- intersects(range, options) {
898
- if (!(range instanceof Range)) throw new TypeError("a Range is required");
899
- 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)))));
900
- }
901
- test(version2) {
902
- if (!version2) return false;
903
- if ("string" == typeof version2) try {
904
- version2 = new SemVer(version2, this.options);
905
- } catch (er2) {
906
- return false;
907
- }
908
- for (let i2 = 0; i2 < this.set.length; i2++) if (testSet(this.set[i2], version2, this.options)) return true;
909
- return false;
910
- }
911
- }
912
- module3.exports = Range;
913
- 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) => {
914
- let result = true;
915
- const remainingComparators = comparators.slice();
916
- let testComparator = remainingComparators.pop();
917
- for (; result && remainingComparators.length; ) result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
918
- return result;
919
- }, 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) => {
920
- const r3 = options.loose ? re3[t2.TILDELOOSE] : re3[t2.TILDE];
921
- return comp.replace(r3, (_6, M4, m3, p2, pr2) => {
922
- let ret;
923
- 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;
924
- });
925
- }, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
926
- debug2("caret", comp, options);
927
- const r3 = options.loose ? re3[t2.CARETLOOSE] : re3[t2.CARET], z3 = options.includePrerelease ? "-0" : "";
928
- return comp.replace(r3, (_6, M4, m3, p2, pr2) => {
929
- let ret;
930
- 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;
931
- });
932
- }, replaceXRanges = (comp, options) => (debug2("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
933
- comp = comp.trim();
934
- const r3 = options.loose ? re3[t2.XRANGELOOSE] : re3[t2.XRANGE];
935
- return comp.replace(r3, (ret, gtlt, M4, m3, p2, pr2) => {
936
- debug2("xRange", comp, ret, gtlt, M4, m3, p2, pr2);
937
- const xM = isX(M4), xm = xM || isX(m3), xp = xm || isX(p2), anyX = xp;
938
- 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;
939
- });
940
- }, 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) => {
941
- for (let i2 = 0; i2 < set.length; i2++) if (!set[i2].test(version2)) return false;
942
- if (version2.prerelease.length && !options.includePrerelease) {
943
- for (let i2 = 0; i2 < set.length; i2++) if (debug2(set[i2].semver), set[i2].semver !== Comparator.ANY && set[i2].semver.prerelease.length > 0) {
944
- const allowed = set[i2].semver;
945
- if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) return true;
946
- }
947
- return false;
948
- }
949
- return true;
950
- };
951
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
952
- 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");
953
- class SemVer {
954
- constructor(version2, options) {
955
- if (options = parseOptions(options), version2 instanceof SemVer) {
956
- if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) return version2;
957
- version2 = version2.version;
958
- } else if ("string" != typeof version2) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
959
- if (version2.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
960
- debug2("SemVer", version2, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
961
- const m3 = version2.trim().match(options.loose ? re3[t2.LOOSE] : re3[t2.FULL]);
962
- if (!m3) throw new TypeError(`Invalid Version: ${version2}`);
963
- 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");
964
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
965
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
966
- m3[4] ? this.prerelease = m3[4].split(".").map((id) => {
967
- if (/^[0-9]+$/.test(id)) {
968
- const num = +id;
969
- if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
970
- }
971
- return id;
972
- }) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
973
- }
974
- format() {
975
- return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
976
- }
977
- toString() {
978
- return this.version;
979
- }
980
- compare(other) {
981
- if (debug2("SemVer.compare", this.version, this.options, other), !(other instanceof SemVer)) {
982
- if ("string" == typeof other && other === this.version) return 0;
983
- other = new SemVer(other, this.options);
984
- }
985
- return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
986
- }
987
- compareMain(other) {
988
- 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);
989
- }
990
- comparePre(other) {
991
- if (other instanceof SemVer || (other = new SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length) return -1;
992
- if (!this.prerelease.length && other.prerelease.length) return 1;
993
- if (!this.prerelease.length && !other.prerelease.length) return 0;
994
- let i2 = 0;
995
- do {
996
- const a2 = this.prerelease[i2], b6 = other.prerelease[i2];
997
- if (debug2("prerelease compare", i2, a2, b6), void 0 === a2 && void 0 === b6) return 0;
998
- if (void 0 === b6) return 1;
999
- if (void 0 === a2) return -1;
1000
- if (a2 !== b6) return compareIdentifiers(a2, b6);
1001
- } while (++i2);
1002
- }
1003
- compareBuild(other) {
1004
- other instanceof SemVer || (other = new SemVer(other, this.options));
1005
- let i2 = 0;
1006
- do {
1007
- const a2 = this.build[i2], b6 = other.build[i2];
1008
- if (debug2("build compare", i2, a2, b6), void 0 === a2 && void 0 === b6) return 0;
1009
- if (void 0 === b6) return 1;
1010
- if (void 0 === a2) return -1;
1011
- if (a2 !== b6) return compareIdentifiers(a2, b6);
1012
- } while (++i2);
1013
- }
1014
- inc(release, identifier, identifierBase) {
1015
- switch (release) {
1016
- case "premajor":
1017
- this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
1018
- break;
1019
- case "preminor":
1020
- this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
1021
- break;
1022
- case "prepatch":
1023
- this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
1024
- break;
1025
- case "prerelease":
1026
- 0 === this.prerelease.length && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
1027
- break;
1028
- case "major":
1029
- 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
1030
- break;
1031
- case "minor":
1032
- 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = [];
1033
- break;
1034
- case "patch":
1035
- 0 === this.prerelease.length && this.patch++, this.prerelease = [];
1036
- break;
1037
- case "pre": {
1038
- const base = Number(identifierBase) ? 1 : 0;
1039
- if (!identifier && false === identifierBase) throw new Error("invalid increment argument: identifier is empty");
1040
- if (0 === this.prerelease.length) this.prerelease = [base];
1041
- else {
1042
- let i2 = this.prerelease.length;
1043
- for (; --i2 >= 0; ) "number" == typeof this.prerelease[i2] && (this.prerelease[i2]++, i2 = -2);
1044
- if (-1 === i2) {
1045
- if (identifier === this.prerelease.join(".") && false === identifierBase) throw new Error("invalid increment argument: identifier already exists");
1046
- this.prerelease.push(base);
1047
- }
1048
- }
1049
- if (identifier) {
1050
- let prerelease = [identifier, base];
1051
- false === identifierBase && (prerelease = [identifier]), 0 === compareIdentifiers(this.prerelease[0], identifier) ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
1052
- }
1053
- break;
1054
- }
1055
- default:
1056
- throw new Error(`invalid increment argument: ${release}`);
1057
- }
1058
- return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
1059
- }
1060
- }
1061
- module3.exports = SemVer;
1062
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1063
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1064
- module3.exports = (version2, options) => {
1065
- const s2 = parse6(version2.trim().replace(/^[=v]+/, ""), options);
1066
- return s2 ? s2.version : null;
1067
- };
1068
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1069
- 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");
1070
- module3.exports = (a2, op, b6, loose) => {
1071
- switch (op) {
1072
- case "===":
1073
- return "object" == typeof a2 && (a2 = a2.version), "object" == typeof b6 && (b6 = b6.version), a2 === b6;
1074
- case "!==":
1075
- return "object" == typeof a2 && (a2 = a2.version), "object" == typeof b6 && (b6 = b6.version), a2 !== b6;
1076
- case "":
1077
- case "=":
1078
- case "==":
1079
- return eq(a2, b6, loose);
1080
- case "!=":
1081
- return neq(a2, b6, loose);
1082
- case ">":
1083
- return gt(a2, b6, loose);
1084
- case ">=":
1085
- return gte(a2, b6, loose);
1086
- case "<":
1087
- return lt(a2, b6, loose);
1088
- case "<=":
1089
- return lte(a2, b6, loose);
1090
- default:
1091
- throw new TypeError(`Invalid operator: ${op}`);
1092
- }
1093
- };
1094
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1095
- 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");
1096
- module3.exports = (version2, options) => {
1097
- if (version2 instanceof SemVer) return version2;
1098
- if ("number" == typeof version2 && (version2 = String(version2)), "string" != typeof version2) return null;
1099
- let match = null;
1100
- if ((options = options || {}).rtl) {
1101
- const coerceRtlRegex = options.includePrerelease ? re3[t2.COERCERTLFULL] : re3[t2.COERCERTL];
1102
- let next;
1103
- 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;
1104
- coerceRtlRegex.lastIndex = -1;
1105
- } else match = version2.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
1106
- if (null === match) return null;
1107
- 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]}` : "";
1108
- return parse6(`${major}.${minor}.${patch}${prerelease}${build}`, options);
1109
- };
1110
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1111
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1112
- module3.exports = (a2, b6, loose) => {
1113
- const versionA = new SemVer(a2, loose), versionB = new SemVer(b6, loose);
1114
- return versionA.compare(versionB) || versionA.compareBuild(versionB);
1115
- };
1116
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-loose.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1117
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1118
- module3.exports = (a2, b6) => compare(a2, b6, true);
1119
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1120
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1121
- module3.exports = (a2, b6, loose) => new SemVer(a2, loose).compare(new SemVer(b6, loose));
1122
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1123
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1124
- module3.exports = (version1, version2) => {
1125
- const v1 = parse6(version1, null, true), v22 = parse6(version2, null, true), comparison = v1.compare(v22);
1126
- if (0 === comparison) return null;
1127
- const v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v22, lowVersion = v1Higher ? v22 : v1, highHasPre = !!highVersion.prerelease.length;
1128
- if (!!lowVersion.prerelease.length && !highHasPre) return lowVersion.patch || lowVersion.minor ? highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major" : "major";
1129
- const prefix = highHasPre ? "pre" : "";
1130
- return v1.major !== v22.major ? prefix + "major" : v1.minor !== v22.minor ? prefix + "minor" : v1.patch !== v22.patch ? prefix + "patch" : "prerelease";
1131
- };
1132
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1133
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1134
- module3.exports = (a2, b6, loose) => 0 === compare(a2, b6, loose);
1135
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1136
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1137
- module3.exports = (a2, b6, loose) => compare(a2, b6, loose) > 0;
1138
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1139
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1140
- module3.exports = (a2, b6, loose) => compare(a2, b6, loose) >= 0;
1141
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/inc.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1142
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1143
- module3.exports = (version2, release, options, identifier, identifierBase) => {
1144
- "string" == typeof options && (identifierBase = identifier, identifier = options, options = void 0);
1145
- try {
1146
- return new SemVer(version2 instanceof SemVer ? version2.version : version2, options).inc(release, identifier, identifierBase).version;
1147
- } catch (er2) {
1148
- return null;
1149
- }
1150
- };
1151
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1152
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1153
- module3.exports = (a2, b6, loose) => compare(a2, b6, loose) < 0;
1154
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1155
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1156
- module3.exports = (a2, b6, loose) => compare(a2, b6, loose) <= 0;
1157
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/major.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1158
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1159
- module3.exports = (a2, loose) => new SemVer(a2, loose).major;
1160
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/minor.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1161
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1162
- module3.exports = (a2, loose) => new SemVer(a2, loose).minor;
1163
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1164
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1165
- module3.exports = (a2, b6, loose) => 0 !== compare(a2, b6, loose);
1166
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1167
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1168
- module3.exports = (version2, options, throwErrors = false) => {
1169
- if (version2 instanceof SemVer) return version2;
1170
- try {
1171
- return new SemVer(version2, options);
1172
- } catch (er2) {
1173
- if (!throwErrors) return null;
1174
- throw er2;
1175
- }
1176
- };
1177
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/patch.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1178
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1179
- module3.exports = (a2, loose) => new SemVer(a2, loose).patch;
1180
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1181
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1182
- module3.exports = (version2, options) => {
1183
- const parsed = parse6(version2, options);
1184
- return parsed && parsed.prerelease.length ? parsed.prerelease : null;
1185
- };
1186
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rcompare.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1187
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1188
- module3.exports = (a2, b6, loose) => compare(b6, a2, loose);
1189
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rsort.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1190
- const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
1191
- module3.exports = (list, loose) => list.sort((a2, b6) => compareBuild(b6, a2, loose));
1192
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1193
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1194
- module3.exports = (version2, range, options) => {
1195
- try {
1196
- range = new Range(range, options);
1197
- } catch (er2) {
1198
- return false;
1199
- }
1200
- return range.test(version2);
1201
- };
1202
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/sort.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1203
- const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
1204
- module3.exports = (list, loose) => list.sort((a2, b6) => compareBuild(a2, b6, loose));
1205
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1206
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1207
- module3.exports = (version2, options) => {
1208
- const v5 = parse6(version2, options);
1209
- return v5 ? v5.version : null;
1210
- };
1211
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1212
- 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");
1213
- module3.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 };
1214
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js": (module3) => {
1215
- const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
1216
- module3.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 };
1217
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js": (module3) => {
1218
- const debug2 = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
1219
- };
1220
- module3.exports = debug2;
1221
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js": (module3) => {
1222
- const numeric = /^[0-9]+$/, compareIdentifiers = (a2, b6) => {
1223
- const anum = numeric.test(a2), bnum = numeric.test(b6);
1224
- return anum && bnum && (a2 = +a2, b6 = +b6), a2 === b6 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b6 ? -1 : 1;
1225
- };
1226
- module3.exports = { compareIdentifiers, rcompareIdentifiers: (a2, b6) => compareIdentifiers(b6, a2) };
1227
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/lrucache.js": (module3) => {
1228
- module3.exports = class {
1229
- constructor() {
1230
- this.max = 1e3, this.map = /* @__PURE__ */ new Map();
1231
- }
1232
- get(key) {
1233
- const value2 = this.map.get(key);
1234
- return void 0 === value2 ? void 0 : (this.map.delete(key), this.map.set(key, value2), value2);
1235
- }
1236
- delete(key) {
1237
- return this.map.delete(key);
1238
- }
1239
- set(key, value2) {
1240
- if (!this.delete(key) && void 0 !== value2) {
1241
- if (this.map.size >= this.max) {
1242
- const firstKey = this.map.keys().next().value;
1243
- this.delete(firstKey);
1244
- }
1245
- this.map.set(key, value2);
1246
- }
1247
- return this;
1248
- }
1249
- };
1250
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js": (module3) => {
1251
- const looseOption = Object.freeze({ loose: true }), emptyOpts = Object.freeze({});
1252
- module3.exports = (options) => options ? "object" != typeof options ? looseOption : options : emptyOpts;
1253
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js": (module3, exports3, __webpack_require__2) => {
1254
- 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 = (exports3 = module3.exports = {}).re = [], safeRe = exports3.safeRe = [], src = exports3.src = [], t2 = exports3.t = {};
1255
- let R4 = 0;
1256
- const safeRegexReplacements = [["\\s", 1], ["\\d", MAX_LENGTH], ["[a-zA-Z0-9-]", MAX_SAFE_BUILD_LENGTH]], createToken = (name, value2, isGlobal) => {
1257
- const safe = ((value3) => {
1258
- for (const [token, max] of safeRegexReplacements) value3 = value3.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
1259
- return value3;
1260
- })(value2), index = R4++;
1261
- 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);
1262
- };
1263
- 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), exports3.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), exports3.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), exports3.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*$");
1264
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/gtr.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1265
- const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
1266
- module3.exports = (version2, range, options) => outside(version2, range, ">", options);
1267
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/intersects.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1268
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1269
- module3.exports = (r1, r22, options) => (r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22, options));
1270
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/ltr.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1271
- const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
1272
- module3.exports = (version2, range, options) => outside(version2, range, "<", options);
1273
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/max-satisfying.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1274
- 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");
1275
- module3.exports = (versions, range, options) => {
1276
- let max = null, maxSV = null, rangeObj = null;
1277
- try {
1278
- rangeObj = new Range(range, options);
1279
- } catch (er2) {
1280
- return null;
1281
- }
1282
- return versions.forEach((v5) => {
1283
- rangeObj.test(v5) && (max && -1 !== maxSV.compare(v5) || (max = v5, maxSV = new SemVer(max, options)));
1284
- }), max;
1285
- };
1286
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-satisfying.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1287
- 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");
1288
- module3.exports = (versions, range, options) => {
1289
- let min = null, minSV = null, rangeObj = null;
1290
- try {
1291
- rangeObj = new Range(range, options);
1292
- } catch (er2) {
1293
- return null;
1294
- }
1295
- return versions.forEach((v5) => {
1296
- rangeObj.test(v5) && (min && 1 !== minSV.compare(v5) || (min = v5, minSV = new SemVer(min, options)));
1297
- }), min;
1298
- };
1299
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-version.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1300
- 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");
1301
- module3.exports = (range, loose) => {
1302
- range = new Range(range, loose);
1303
- let minver = new SemVer("0.0.0");
1304
- if (range.test(minver)) return minver;
1305
- if (minver = new SemVer("0.0.0-0"), range.test(minver)) return minver;
1306
- minver = null;
1307
- for (let i2 = 0; i2 < range.set.length; ++i2) {
1308
- const comparators = range.set[i2];
1309
- let setMin = null;
1310
- comparators.forEach((comparator) => {
1311
- const compver = new SemVer(comparator.semver.version);
1312
- switch (comparator.operator) {
1313
- case ">":
1314
- 0 === compver.prerelease.length ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
1315
- case "":
1316
- case ">=":
1317
- setMin && !gt(compver, setMin) || (setMin = compver);
1318
- break;
1319
- case "<":
1320
- case "<=":
1321
- break;
1322
- default:
1323
- throw new Error(`Unexpected operation: ${comparator.operator}`);
1324
- }
1325
- }), !setMin || minver && !gt(minver, setMin) || (minver = setMin);
1326
- }
1327
- return minver && range.test(minver) ? minver : null;
1328
- };
1329
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1330
- 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");
1331
- module3.exports = (version2, range, hilo, options) => {
1332
- let gtfn, ltefn, ltfn, comp, ecomp;
1333
- switch (version2 = new SemVer(version2, options), range = new Range(range, options), hilo) {
1334
- case ">":
1335
- gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
1336
- break;
1337
- case "<":
1338
- gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
1339
- break;
1340
- default:
1341
- throw new TypeError('Must provide a hilo val of "<" or ">"');
1342
- }
1343
- if (satisfies(version2, range, options)) return false;
1344
- for (let i2 = 0; i2 < range.set.length; ++i2) {
1345
- const comparators = range.set[i2];
1346
- let high = null, low = null;
1347
- if (comparators.forEach((comparator) => {
1348
- 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);
1349
- }), high.operator === comp || high.operator === ecomp) return false;
1350
- if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) return false;
1351
- if (low.operator === ecomp && ltfn(version2, low.semver)) return false;
1352
- }
1353
- return true;
1354
- };
1355
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/simplify.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1356
- 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");
1357
- module3.exports = (versions, range, options) => {
1358
- const set = [];
1359
- let first = null, prev = null;
1360
- const v5 = versions.sort((a2, b6) => compare(a2, b6, options));
1361
- for (const version2 of v5) {
1362
- satisfies(version2, range, options) ? (prev = version2, first || (first = version2)) : (prev && set.push([first, prev]), prev = null, first = null);
1363
- }
1364
- first && set.push([first, null]);
1365
- const ranges = [];
1366
- 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("*");
1367
- const simplified = ranges.join(" || "), original = "string" == typeof range.raw ? range.raw : String(range);
1368
- return simplified.length < original.length ? simplified : range;
1369
- };
1370
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/subset.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1371
- 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) => {
1372
- if (sub === dom) return true;
1373
- if (1 === sub.length && sub[0].semver === ANY) {
1374
- if (1 === dom.length && dom[0].semver === ANY) return true;
1375
- sub = options.includePrerelease ? minimumVersionWithPreRelease : minimumVersion;
1376
- }
1377
- if (1 === dom.length && dom[0].semver === ANY) {
1378
- if (options.includePrerelease) return true;
1379
- dom = minimumVersion;
1380
- }
1381
- const eqSet = /* @__PURE__ */ new Set();
1382
- let gt, lt, gtltComp, higher, lower, hasDomLT, hasDomGT;
1383
- 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);
1384
- if (eqSet.size > 1) return null;
1385
- if (gt && lt) {
1386
- if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0) return null;
1387
- if (0 === gtltComp && (">=" !== gt.operator || "<=" !== lt.operator)) return null;
1388
- }
1389
- for (const eq of eqSet) {
1390
- if (gt && !satisfies(eq, String(gt), options)) return null;
1391
- if (lt && !satisfies(eq, String(lt), options)) return null;
1392
- for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
1393
- return true;
1394
- }
1395
- let needDomLTPre = !(!lt || options.includePrerelease || !lt.semver.prerelease.length) && lt.semver, needDomGTPre = !(!gt || options.includePrerelease || !gt.semver.prerelease.length) && gt.semver;
1396
- needDomLTPre && 1 === needDomLTPre.prerelease.length && "<" === lt.operator && 0 === needDomLTPre.prerelease[0] && (needDomLTPre = false);
1397
- for (const c of dom) {
1398
- if (hasDomGT = hasDomGT || ">" === c.operator || ">=" === c.operator, hasDomLT = hasDomLT || "<" === c.operator || "<=" === c.operator, gt) {
1399
- 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) {
1400
- if (higher = higherGT(gt, c, options), higher === c && higher !== gt) return false;
1401
- } else if (">=" === gt.operator && !satisfies(gt.semver, String(c), options)) return false;
1402
- }
1403
- if (lt) {
1404
- 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) {
1405
- if (lower = lowerLT(lt, c, options), lower === c && lower !== lt) return false;
1406
- } else if ("<=" === lt.operator && !satisfies(lt.semver, String(c), options)) return false;
1407
- }
1408
- if (!c.operator && (lt || gt) && 0 !== gtltComp) return false;
1409
- }
1410
- return !(gt && hasDomLT && !lt && 0 !== gtltComp) && (!(lt && hasDomGT && !gt && 0 !== gtltComp) && (!needDomGTPre && !needDomLTPre));
1411
- }, higherGT = (a2, b6, options) => {
1412
- if (!a2) return b6;
1413
- const comp = compare(a2.semver, b6.semver, options);
1414
- return comp > 0 ? a2 : comp < 0 || ">" === b6.operator && ">=" === a2.operator ? b6 : a2;
1415
- }, lowerLT = (a2, b6, options) => {
1416
- if (!a2) return b6;
1417
- const comp = compare(a2.semver, b6.semver, options);
1418
- return comp < 0 ? a2 : comp > 0 || "<" === b6.operator && "<=" === a2.operator ? b6 : a2;
1419
- };
1420
- module3.exports = (sub, dom, options = {}) => {
1421
- if (sub === dom) return true;
1422
- sub = new Range(sub, options), dom = new Range(dom, options);
1423
- let sawNonNull = false;
1424
- OUTER: for (const simpleSub of sub.set) {
1425
- for (const simpleDom of dom.set) {
1426
- const isSub = simpleSubset(simpleSub, simpleDom, options);
1427
- if (sawNonNull = sawNonNull || null !== isSub, isSub) continue OUTER;
1428
- }
1429
- if (sawNonNull) return false;
1430
- }
1431
- return true;
1432
- };
1433
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/to-comparators.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1434
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1435
- module3.exports = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1436
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/valid.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
1437
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1438
- module3.exports = (range, options) => {
1439
- try {
1440
- return new Range(range, options).range || "*";
1441
- } catch (er2) {
1442
- return null;
1443
- }
1444
- };
1445
- }, crypto: (module3) => {
1446
- "use strict";
1447
- module3.exports = require("crypto");
1448
- }, fs: (module3) => {
1449
- "use strict";
1450
- module3.exports = require("fs");
1451
- }, module: (module3) => {
1452
- "use strict";
1453
- module3.exports = require("module");
1454
- }, path: (module3) => {
1455
- "use strict";
1456
- module3.exports = require("path");
1457
239
  } }, __webpack_module_cache__ = {};
1458
240
  function __webpack_require__(moduleId) {
1459
241
  var cachedModule = __webpack_module_cache__[moduleId];
1460
242
  if (void 0 !== cachedModule) return cachedModule.exports;
1461
- var module3 = __webpack_module_cache__[moduleId] = { id: moduleId, loaded: false, exports: {} };
1462
- return __webpack_modules__[moduleId](module3, module3.exports, __webpack_require__), module3.loaded = true, module3.exports;
243
+ var module3 = __webpack_module_cache__[moduleId] = { exports: {} };
244
+ return __webpack_modules__[moduleId](module3, module3.exports, __webpack_require__), module3.exports;
1463
245
  }
1464
246
  __webpack_require__.n = (module3) => {
1465
247
  var getter = module3 && module3.__esModule ? () => module3.default : () => module3;
1466
248
  return __webpack_require__.d(getter, { a: getter }), getter;
1467
249
  }, __webpack_require__.d = (exports3, definition) => {
1468
250
  for (var key in definition) __webpack_require__.o(definition, key) && !__webpack_require__.o(exports3, key) && Object.defineProperty(exports3, key, { enumerable: true, get: definition[key] });
1469
- }, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.nmd = (module3) => (module3.paths = [], module3.children || (module3.children = []), module3);
251
+ }, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
1470
252
  var __webpack_exports__ = {};
1471
253
  (() => {
1472
254
  "use strict";
1473
- __webpack_require__.d(__webpack_exports__, { default: () => createJITI });
1474
- var external_fs_ = __webpack_require__("fs"), external_module_ = __webpack_require__("module");
1475
- const external_perf_hooks_namespaceObject = require("perf_hooks"), external_os_namespaceObject = require("os"), external_vm_namespaceObject = require("vm");
1476
- var external_vm_default = __webpack_require__.n(external_vm_namespaceObject);
1477
- const external_url_namespaceObject = require("url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
255
+ __webpack_require__.d(__webpack_exports__, { default: () => createJiti2 });
256
+ const external_node_os_namespaceObject = require("node:os"), external_node_url_namespaceObject = require("node:url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
1478
257
  function normalizeWindowsPath2(input = "") {
1479
258
  return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r3) => r3.toUpperCase()) : input;
1480
259
  }
@@ -1488,6 +267,14 @@ var require_jiti = __commonJS({
1488
267
  for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
1489
268
  return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
1490
269
  };
270
+ const resolve3 = function(...arguments_) {
271
+ let resolvedPath = "", resolvedAbsolute = false;
272
+ for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
273
+ const path5 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
274
+ path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute = isAbsolute2(path5));
275
+ }
276
+ return resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute2(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
277
+ };
1491
278
  function normalizeString2(path5, allowAboveRoot) {
1492
279
  let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
1493
280
  for (let index = 0; index <= path5.length; ++index) {
@@ -1517,72 +304,38 @@ var require_jiti = __commonJS({
1517
304
  }
1518
305
  return res;
1519
306
  }
1520
- const isAbsolute2 = function(p2) {
1521
- return _IS_ABSOLUTE_RE2.test(p2);
1522
- }, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname3 = function(p2) {
1523
- const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(p2));
307
+ const isAbsolute2 = function(p3) {
308
+ return _IS_ABSOLUTE_RE2.test(p3);
309
+ }, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname3 = function(p3) {
310
+ const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(p3));
1524
311
  return match && match[1] || "";
1525
- }, pathe_ff20891b_dirname = function(p2) {
1526
- const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
1527
- return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
1528
- }, basename2 = function(p2, extension) {
1529
- const lastSegment = normalizeWindowsPath2(p2).split("/").pop();
312
+ }, pathe_ff20891b_dirname = function(p3) {
313
+ const segments = normalizeWindowsPath2(p3).replace(/\/$/, "").split("/").slice(0, -1);
314
+ return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute2(p3) ? "/" : ".");
315
+ }, basename2 = function(p3, extension) {
316
+ const lastSegment = normalizeWindowsPath2(p3).split("/").pop();
1530
317
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
1531
- }, suspectProtoRx2 = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, suspectConstructorRx2 = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, JsonSigRx2 = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
1532
- function jsonParseTransform2(key, value2) {
1533
- if (!("__proto__" === key || "constructor" === key && value2 && "object" == typeof value2 && "prototype" in value2)) return value2;
1534
- !function(key2) {
1535
- console.warn(`[destr] Dropping "${key2}" key to prevent prototype pollution.`);
1536
- }(key);
1537
- }
1538
- function destr2(value2, options = {}) {
1539
- if ("string" != typeof value2) return value2;
1540
- const _value = value2.trim();
1541
- if ('"' === value2[0] && value2.endsWith('"') && !value2.includes("\\")) return _value.slice(1, -1);
1542
- if (_value.length <= 9) {
1543
- const _lval = _value.toLowerCase();
1544
- if ("true" === _lval) return true;
1545
- if ("false" === _lval) return false;
1546
- if ("undefined" === _lval) return;
1547
- if ("null" === _lval) return null;
1548
- if ("nan" === _lval) return Number.NaN;
1549
- if ("infinity" === _lval) return Number.POSITIVE_INFINITY;
1550
- if ("-infinity" === _lval) return Number.NEGATIVE_INFINITY;
1551
- }
1552
- if (!JsonSigRx2.test(value2)) {
1553
- if (options.strict) throw new SyntaxError("[destr] Invalid JSON");
1554
- return value2;
1555
- }
1556
- try {
1557
- if (suspectProtoRx2.test(value2) || suspectConstructorRx2.test(value2)) {
1558
- if (options.strict) throw new Error("[destr] Possible prototype pollution");
1559
- return JSON.parse(value2, jsonParseTransform2);
1560
- }
1561
- return JSON.parse(value2);
1562
- } catch (error) {
1563
- if (options.strict) throw error;
1564
- return value2;
1565
- }
1566
- }
318
+ };
1567
319
  function escapeStringRegexp(string) {
1568
320
  if ("string" != typeof string) throw new TypeError("Expected a string");
1569
321
  return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
1570
322
  }
1571
- 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");
1572
323
  const pathSeparators = /* @__PURE__ */ new Set(["/", "\\", void 0]), normalizedAliasSymbol = Symbol.for("pathe:normalizedAlias");
1573
324
  function normalizeAliases(_aliases) {
1574
325
  if (_aliases[normalizedAliasSymbol]) return _aliases;
1575
- const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([a2], [b6]) => function(a3, b7) {
1576
- return b7.split("/").length - a3.split("/").length;
1577
- }(a2, b6)));
326
+ const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([a3], [b6]) => function(a4, b7) {
327
+ return b7.split("/").length - a4.split("/").length;
328
+ }(a3, b6)));
1578
329
  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));
1579
330
  return Object.defineProperty(aliases2, normalizedAliasSymbol, { value: true, enumerable: false }), aliases2;
1580
331
  }
332
+ const FILENAME_RE = /(^|[/\\])([^/\\]+?)(?=(\.[^.]+)?$)/;
1581
333
  function hasTrailingSlash2(path5 = "/") {
1582
334
  const lastChar = path5[path5.length - 1];
1583
335
  return "/" === lastChar || "\\" === lastChar;
1584
336
  }
1585
- 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]");
337
+ 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");
338
+ 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]");
1586
339
  function isInAstralSet2(code, set) {
1587
340
  for (var pos = 65536, i3 = 0; i3 < set.length; i3 += 2) {
1588
341
  if ((pos += set[i3]) > code) return false;
@@ -1635,8 +388,8 @@ var require_jiti = __commonJS({
1635
388
  Position3.prototype.offset = function(n) {
1636
389
  return new Position3(this.line, this.column + n);
1637
390
  };
1638
- var SourceLocation3 = function(p2, start, end) {
1639
- this.start = start, this.end = end, null !== p2.sourceFile && (this.source = p2.sourceFile);
391
+ var SourceLocation3 = function(p3, start, end) {
392
+ this.start = start, this.end = end, null !== p3.sourceFile && (this.source = p3.sourceFile);
1640
393
  };
1641
394
  function getLineInfo2(input, offset2) {
1642
395
  for (var line = 1, cur = 0; ; ) {
@@ -1712,7 +465,7 @@ var require_jiti = __commonJS({
1712
465
  }, Parser3.tokenizer = function(input, options) {
1713
466
  return new this(options, input);
1714
467
  }, Object.defineProperties(Parser3.prototype, prototypeAccessors2);
1715
- var pp$92 = Parser3.prototype, literal2 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
468
+ var pp$92 = Parser3.prototype, literal2 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/s;
1716
469
  pp$92.strictDirective = function(start) {
1717
470
  if (this.options.ecmaVersion < 5) return false;
1718
471
  for (; ; ) {
@@ -1873,8 +626,8 @@ var require_jiti = __commonJS({
1873
626
  var init$1 = this.startNode(), kind = isLet ? "let" : this.value;
1874
627
  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));
1875
628
  }
1876
- var startsWithLet = this.isContextual("let"), isForOf = false, refDestructuringErrors = new DestructuringErrors3(), init = this.parseExpression(!(awaitAt > -1) || "await", refDestructuringErrors);
1877
- return this.type === types$12._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (this.options.ecmaVersion >= 9 && (this.type === types$12._in ? awaitAt > -1 && this.unexpected(awaitAt) : node.await = awaitAt > -1), 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));
629
+ 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);
630
+ 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));
1878
631
  }, pp$82.parseFunctionStatement = function(node, isAsync2, declarationPosition) {
1879
632
  return this.next(), this.parseFunction(node, FUNC_STATEMENT2 | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT2), false, isAsync2);
1880
633
  }, pp$82.parseIfStatement = function(node) {
@@ -2256,8 +1009,8 @@ var require_jiti = __commonJS({
2256
1009
  };
2257
1010
  var TokContext3 = function(token, isExpr, preserveSpace, override, generator) {
2258
1011
  this.token = token, this.isExpr = !!isExpr, this.preserveSpace = !!preserveSpace, this.override = override, this.generator = !!generator;
2259
- }, 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(p2) {
2260
- return p2.tryReadTemplateToken();
1012
+ }, 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) {
1013
+ return p3.tryReadTemplateToken();
2261
1014
  }), 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;
2262
1015
  pp$62.initialContext = function() {
2263
1016
  return [types2.b_stat];
@@ -2307,8 +1060,11 @@ var require_jiti = __commonJS({
2307
1060
  this.options.ecmaVersion >= 6 && prevType !== types$12.dot && ("of" === this.value && !this.exprAllowed || "yield" === this.value && this.inGeneratorContext()) && (allowed = true), this.exprAllowed = allowed;
2308
1061
  };
2309
1062
  var pp$52 = Parser3.prototype;
1063
+ function isLocalVariableAccess2(node) {
1064
+ return "Identifier" === node.type || "ParenthesizedExpression" === node.type && isLocalVariableAccess2(node.expression);
1065
+ }
2310
1066
  function isPrivateFieldAccess2(node) {
2311
- return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression);
1067
+ return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression) || "ParenthesizedExpression" === node.type && isPrivateFieldAccess2(node.expression);
2312
1068
  }
2313
1069
  pp$52.checkPropClash = function(prop, propHash, refDestructuringErrors) {
2314
1070
  if (!(this.options.ecmaVersion >= 9 && "SpreadElement" === prop.type || this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))) {
@@ -2386,7 +1142,7 @@ var require_jiti = __commonJS({
2386
1142
  if (this.isContextual("await") && this.canAwait) expr = this.parseAwait(forInit), sawUnary = true;
2387
1143
  else if (this.type.prefix) {
2388
1144
  var node = this.startNode(), update = this.type === types$12.incDec;
2389
- 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 && "Identifier" === node.argument.type ? 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");
1145
+ 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");
2390
1146
  } else if (sawUnary || this.type !== types$12.privateId) {
2391
1147
  if (expr = this.parseExprSubscripts(refDestructuringErrors, forInit), this.checkExpressionErrors(refDestructuringErrors)) return expr;
2392
1148
  for (; this.type.postfix && !this.canInsertSemicolon(); ) {
@@ -2556,7 +1312,7 @@ var require_jiti = __commonJS({
2556
1312
  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");
2557
1313
  }, pp$52.parseTemplateElement = function(ref3) {
2558
1314
  var isTagged = ref3.isTagged, elem = this.startNode();
2559
- 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");
1315
+ 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");
2560
1316
  }, pp$52.parseTemplate = function(ref3) {
2561
1317
  void 0 === ref3 && (ref3 = {});
2562
1318
  var isTagged = ref3.isTagged;
@@ -2734,8 +1490,17 @@ var require_jiti = __commonJS({
2734
1490
  for (var i2 = 0, list = [9, 10, 11, 12, 13, 14]; i2 < list.length; i2 += 1) {
2735
1491
  buildUnicodeData2(list[i2]);
2736
1492
  }
2737
- var pp$12 = Parser3.prototype, RegExpValidationState3 = function(parser) {
2738
- 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 = [], this.backReferenceNames = [];
1493
+ var pp$12 = Parser3.prototype, BranchID3 = function(parent, base) {
1494
+ this.parent = parent, this.base = base || this;
1495
+ };
1496
+ BranchID3.prototype.separatedFrom = function(alt) {
1497
+ 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;
1498
+ return false;
1499
+ }, BranchID3.prototype.sibling = function() {
1500
+ return new BranchID3(this.parent, this.base);
1501
+ };
1502
+ var RegExpValidationState3 = function(parser) {
1503
+ 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;
2739
1504
  };
2740
1505
  function isSyntaxCharacter2(ch) {
2741
1506
  return 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
@@ -2750,18 +1515,18 @@ var require_jiti = __commonJS({
2750
1515
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
2751
1516
  }, RegExpValidationState3.prototype.at = function(i3, forceU) {
2752
1517
  void 0 === forceU && (forceU = false);
2753
- var s2 = this.source, l2 = s2.length;
2754
- if (i3 >= l2) return -1;
1518
+ var s2 = this.source, l3 = s2.length;
1519
+ if (i3 >= l3) return -1;
2755
1520
  var c = s2.charCodeAt(i3);
2756
- if (!forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l2) return c;
1521
+ if (!forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l3) return c;
2757
1522
  var next = s2.charCodeAt(i3 + 1);
2758
1523
  return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
2759
1524
  }, RegExpValidationState3.prototype.nextIndex = function(i3, forceU) {
2760
1525
  void 0 === forceU && (forceU = false);
2761
- var s2 = this.source, l2 = s2.length;
2762
- if (i3 >= l2) return l2;
1526
+ var s2 = this.source, l3 = s2.length;
1527
+ if (i3 >= l3) return l3;
2763
1528
  var next, c = s2.charCodeAt(i3);
2764
- return !forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l2 || (next = s2.charCodeAt(i3 + 1)) < 56320 || next > 57343 ? i3 + 1 : i3 + 2;
1529
+ return !forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l3 || (next = s2.charCodeAt(i3 + 1)) < 56320 || next > 57343 ? i3 + 1 : i3 + 2;
2765
1530
  }, RegExpValidationState3.prototype.current = function(forceU) {
2766
1531
  return void 0 === forceU && (forceU = false), this.at(this.pos, forceU);
2767
1532
  }, RegExpValidationState3.prototype.lookahead = function(forceU) {
@@ -2785,16 +1550,20 @@ var require_jiti = __commonJS({
2785
1550
  }
2786
1551
  this.options.ecmaVersion >= 15 && u3 && v5 && this.raise(state.start, "Invalid regular expression flag");
2787
1552
  }, pp$12.validateRegExpPattern = function(state) {
2788
- this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 && state.groupNames.length > 0 && (state.switchN = true, this.regexp_pattern(state));
1553
+ this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 && function(obj) {
1554
+ for (var _7 in obj) return true;
1555
+ return false;
1556
+ }(state.groupNames) && (state.switchN = true, this.regexp_pattern(state));
2789
1557
  }, pp$12.regexp_pattern = function(state) {
2790
- state.pos = 0, state.lastIntValue = 0, state.lastStringValue = "", state.lastAssertionIsQuantifiable = false, state.numCapturingParens = 0, state.maxBackReference = 0, state.groupNames.length = 0, state.backReferenceNames.length = 0, 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");
1558
+ 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");
2791
1559
  for (var i3 = 0, list2 = state.backReferenceNames; i3 < list2.length; i3 += 1) {
2792
1560
  var name = list2[i3];
2793
- -1 === state.groupNames.indexOf(name) && state.raise("Invalid named capture referenced");
1561
+ state.groupNames[name] || state.raise("Invalid named capture referenced");
2794
1562
  }
2795
1563
  }, pp$12.regexp_disjunction = function(state) {
2796
- for (this.regexp_alternative(state); state.eat(124); ) this.regexp_alternative(state);
2797
- this.regexp_eatQuantifier(state, true) && state.raise("Nothing to repeat"), state.eat(123) && state.raise("Lone quantifier brackets");
1564
+ var trackDisjunction = this.options.ecmaVersion >= 16;
1565
+ 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);
1566
+ trackDisjunction && (state.branchID = state.branchID.parent), this.regexp_eatQuantifier(state, true) && state.raise("Nothing to repeat"), state.eat(123) && state.raise("Lone quantifier brackets");
2798
1567
  }, pp$12.regexp_alternative = function(state) {
2799
1568
  for (; state.pos < state.source.length && this.regexp_eatTerm(state); ) ;
2800
1569
  }, pp$12.regexp_eatTerm = function(state) {
@@ -2863,8 +1632,13 @@ var require_jiti = __commonJS({
2863
1632
  return !(-1 === ch || 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || 91 === ch || 94 === ch || 124 === ch) && (state.advance(), true);
2864
1633
  }, pp$12.regexp_groupSpecifier = function(state) {
2865
1634
  if (state.eat(63)) {
2866
- if (this.regexp_eatGroupName(state)) return -1 !== state.groupNames.indexOf(state.lastStringValue) && state.raise("Duplicate capture group name"), void state.groupNames.push(state.lastStringValue);
2867
- state.raise("Invalid group");
1635
+ this.regexp_eatGroupName(state) || state.raise("Invalid group");
1636
+ var trackDisjunction = this.options.ecmaVersion >= 16, known = state.groupNames[state.lastStringValue];
1637
+ if (known) if (trackDisjunction) for (var i3 = 0, list2 = known; i3 < list2.length; i3 += 1) {
1638
+ list2[i3].separatedFrom(state.branchID) || state.raise("Duplicate capture group name");
1639
+ }
1640
+ else state.raise("Duplicate capture group name");
1641
+ trackDisjunction ? (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID) : state.groupNames[state.lastStringValue] = true;
2868
1642
  }
2869
1643
  }, pp$12.regexp_eatGroupName = function(state) {
2870
1644
  if (state.lastStringValue = "", state.eat(60)) {
@@ -3163,8 +1937,8 @@ var require_jiti = __commonJS({
3163
1937
  }
3164
1938
  return true;
3165
1939
  };
3166
- var Token3 = function(p2) {
3167
- this.type = p2.type, this.value = p2.value, this.start = p2.start, this.end = p2.end, p2.options.locations && (this.loc = new SourceLocation3(p2, p2.startLoc, p2.endLoc)), p2.options.ranges && (this.range = [p2.start, p2.end]);
1940
+ var Token3 = function(p3) {
1941
+ 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]);
3168
1942
  }, pp2 = Parser3.prototype;
3169
1943
  function stringToBigInt2(str) {
3170
1944
  return "function" != typeof BigInt ? null : BigInt(str.replace(/_/g, ""));
@@ -3469,6 +2243,12 @@ var require_jiti = __commonJS({
3469
2243
  if ("{" !== this.input[this.pos + 1]) break;
3470
2244
  case "`":
3471
2245
  return this.finishToken(types$12.invalidTemplate, this.input.slice(this.start, this.pos));
2246
+ case "\r":
2247
+ "\n" === this.input[this.pos + 1] && ++this.pos;
2248
+ case "\n":
2249
+ case "\u2028":
2250
+ case "\u2029":
2251
+ ++this.curLine, this.lineStart = this.pos + 1;
3472
2252
  }
3473
2253
  this.raise(this.start, "Unterminated template");
3474
2254
  }, pp2.readEscapedChar = function(inTemplate) {
@@ -3505,7 +2285,7 @@ var require_jiti = __commonJS({
3505
2285
  var octalStr = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], octal = parseInt(octalStr, 8);
3506
2286
  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);
3507
2287
  }
3508
- return isNewLine2(ch) ? "" : String.fromCharCode(ch);
2288
+ return isNewLine2(ch) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ch);
3509
2289
  }
3510
2290
  }, pp2.readHexChar = function(len) {
3511
2291
  var codePos = this.pos, n = this.readInt(16, len);
@@ -3530,8 +2310,8 @@ var require_jiti = __commonJS({
3530
2310
  var word = this.readWord1(), type = types$12.name;
3531
2311
  return this.keywords.test(word) && (type = keywords2[word]), this.finishToken(type, word);
3532
2312
  };
3533
- Parser3.acorn = { Parser: Parser3, version: "8.11.3", 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 };
3534
- const external_node_module_namespaceObject = require("module"), external_node_fs_namespaceObject = require("fs");
2313
+ 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 };
2314
+ const external_node_module_namespaceObject = require("node:module");
3535
2315
  Math.floor, String.fromCharCode;
3536
2316
  const TRAILING_SLASH_RE2 = /\/$|\/\?|\/#/, JOIN_LEADING_SLASH_RE2 = /^\.?\//;
3537
2317
  function dist_hasTrailingSlash(input = "", respectQueryAndFragment) {
@@ -3559,7 +2339,7 @@ var require_jiti = __commonJS({
3559
2339
  }
3560
2340
  Symbol.for("ufo:protocolRelative");
3561
2341
  Object.defineProperty;
3562
- const external_node_url_namespaceObject = require("url"), external_node_assert_namespaceObject = require("assert"), external_node_process_namespaceObject = require("process"), external_node_path_namespaceObject = require("path"), external_node_v8_namespaceObject = require("v8"), external_node_util_namespaceObject = require("util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
2342
+ 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);
3563
2343
  function normalizeSlash2(path5) {
3564
2344
  return path5.replace(/\\/g, "/");
3565
2345
  }
@@ -3882,9 +2662,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3882
2662
  }
3883
2663
  throw exportsNotFound2(packageSubpath, packageJsonUrl, base);
3884
2664
  }
3885
- function patternKeyCompare2(a2, b6) {
3886
- const aPatternIndex = a2.indexOf("*"), bPatternIndex = b6.indexOf("*"), baseLengthA = -1 === aPatternIndex ? a2.length : aPatternIndex + 1, baseLengthB = -1 === bPatternIndex ? b6.length : bPatternIndex + 1;
3887
- return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex || a2.length > b6.length ? -1 : b6.length > a2.length ? 1 : 0;
2665
+ function patternKeyCompare2(a3, b6) {
2666
+ const aPatternIndex = a3.indexOf("*"), bPatternIndex = b6.indexOf("*"), baseLengthA = -1 === aPatternIndex ? a3.length : aPatternIndex + 1, baseLengthB = -1 === bPatternIndex ? b6.length : bPatternIndex + 1;
2667
+ return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex || a3.length > b6.length ? -1 : b6.length > a3.length ? 1 : 0;
3888
2668
  }
3889
2669
  function packageImportsResolve2(name, base, conditions) {
3890
2670
  if ("#" === name || name.startsWith("#/") || name.endsWith("/")) {
@@ -4053,220 +2833,285 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4053
2833
  function hasESMSyntax(code, opts = {}) {
4054
2834
  return opts.stripComments && (code = code.replace(COMMENT_RE, "")), ESM_RE.test(code);
4055
2835
  }
4056
- var external_crypto_ = __webpack_require__("crypto");
4057
- function md5(content, len = 8) {
4058
- return (0, external_crypto_.createHash)("md5").update(content).digest("hex").slice(0, len);
2836
+ 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) {
2837
+ if (!o) return false;
2838
+ return delete E3(true)[o], true;
2839
+ }, ownKeys() {
2840
+ const e2 = E3(true);
2841
+ return Object.keys(e2);
2842
+ } }), 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"]];
2843
+ const l2 = function() {
2844
+ if (globalThis.process?.env) for (const e2 of p2) {
2845
+ const o = e2[1] || e2[0];
2846
+ if (globalThis.process?.env[o]) return { name: e2[0].toLowerCase(), ...e2[2] };
2847
+ }
2848
+ return "/bin/jsh" === globalThis.process?.env?.SHELL && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
2849
+ }();
2850
+ l2.name;
2851
+ function dist_n(e2) {
2852
+ return !!e2 && "false" !== e2;
2853
+ }
2854
+ 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"]];
2855
+ !function() {
2856
+ const e2 = F2.find((o) => o[0]);
2857
+ if (e2) e2[1];
2858
+ }();
2859
+ const hasColors = require("node:tty").WriteStream.prototype.hasColors(), base_format = (open, close) => {
2860
+ if (!hasColors) return (input) => input;
2861
+ const openCode = `\x1B[${open}m`, closeCode = `\x1B[${close}m`;
2862
+ return (input) => {
2863
+ const string = input + "";
2864
+ let index = string.indexOf(closeCode);
2865
+ if (-1 === index) return openCode + string + closeCode;
2866
+ let result = openCode, lastIndex = 0;
2867
+ for (; -1 !== index; ) result += string.slice(lastIndex, index) + openCode, lastIndex = index + closeCode.length, index = string.indexOf(closeCode, lastIndex);
2868
+ return result += string.slice(lastIndex) + closeCode, result;
2869
+ };
2870
+ }, 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));
2871
+ 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);
2872
+ function isDir(filename) {
2873
+ if (filename instanceof URL || filename.startsWith("file://")) return false;
2874
+ try {
2875
+ return (0, external_node_fs_namespaceObject.lstatSync)(filename).isDirectory();
2876
+ } catch {
2877
+ return false;
2878
+ }
4059
2879
  }
4060
- var __awaiter = function(thisArg, _arguments, P5, generator) {
4061
- return new (P5 || (P5 = Promise))(function(resolve3, reject) {
4062
- function fulfilled(value2) {
4063
- try {
4064
- step(generator.next(value2));
4065
- } catch (e2) {
4066
- reject(e2);
4067
- }
4068
- }
4069
- function rejected(value2) {
4070
- try {
4071
- step(generator.throw(value2));
4072
- } catch (e2) {
4073
- reject(e2);
4074
- }
4075
- }
4076
- function step(result) {
4077
- var value2;
4078
- result.done ? resolve3(result.value) : (value2 = result.value, value2 instanceof P5 ? value2 : new P5(function(resolve4) {
4079
- resolve4(value2);
4080
- })).then(fulfilled, rejected);
2880
+ function md5(content, len = 8) {
2881
+ return (0, external_node_crypto_namespaceObject.createHash)("md5").update(content).digest("hex").slice(0, len);
2882
+ }
2883
+ 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]") };
2884
+ function debug2(ctx, ...args) {
2885
+ if (!ctx.opts.debug) return;
2886
+ const cwd2 = process.cwd();
2887
+ console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd2, "."))].join(" ")));
2888
+ }
2889
+ function jitiInteropDefault(ctx, mod) {
2890
+ return ctx.opts.interopDefault ? function(sourceModule, opts = {}) {
2891
+ if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
2892
+ var value2;
2893
+ const defaultValue = sourceModule.default;
2894
+ if (null == defaultValue) return sourceModule;
2895
+ const _defaultType = typeof defaultValue;
2896
+ if ("object" !== _defaultType && ("function" !== _defaultType || opts.preferNamespace)) return opts.preferNamespace ? sourceModule : defaultValue;
2897
+ for (const key in sourceModule) try {
2898
+ key in defaultValue || Object.defineProperty(defaultValue, key, { enumerable: "default" !== key, configurable: "default" !== key, get: () => sourceModule[key] });
2899
+ } catch {
4081
2900
  }
4082
- step((generator = generator.apply(thisArg, _arguments || [])).next());
4083
- });
4084
- };
4085
- const _EnvDebug = destr2(process.env.JITI_DEBUG), _EnvCache = destr2(process.env.JITI_CACHE), _EnvESMResolve = destr2(process.env.JITI_ESM_RESOLVE), _EnvRequireCache = destr2(process.env.JITI_REQUIRE_CACHE), _EnvSourceMaps = destr2(process.env.JITI_SOURCE_MAPS), _EnvAlias = destr2(process.env.JITI_ALIAS), _EnvTransform = destr2(process.env.JITI_TRANSFORM_MODULES), _EnvNative = destr2(process.env.JITI_NATIVE_MODULES), _ExpBun = destr2(process.env.JITI_EXPERIMENTAL_BUN), isWindows = "win32" === (0, external_os_namespaceObject.platform)(), defaults3 = { debug: _EnvDebug, cache: void 0 === _EnvCache || !!_EnvCache, requireCache: void 0 === _EnvRequireCache || !!_EnvRequireCache, sourceMaps: void 0 !== _EnvSourceMaps && !!_EnvSourceMaps, interopDefault: false, esmResolve: _EnvESMResolve || false, cacheVersion: "7", legacy: (0, semver.lt)(process.version || "0.0.0", "14.0.0"), extensions: [".js", ".mjs", ".cjs", ".ts", ".mts", ".cts", ".json"], alias: _EnvAlias, nativeModules: _EnvNative || [], transformModules: _EnvTransform || [], experimentalBun: void 0 === _ExpBun ? !!process.versions.bun : !!_ExpBun }, JS_EXT_RE = /\.(c|m)?j(sx?)$/, TS_EXT_RE = /\.(c|m)?t(sx?)$/;
4086
- function createJITI(_filename, opts = {}, parentModule, parentCache) {
4087
- (opts = Object.assign(Object.assign({}, defaults3), opts)).legacy && (opts.cacheVersion += "-legacy"), opts.transformOptions && (opts.cacheVersion += "-" + object_hash_default()(opts.transformOptions));
4088
- const alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : null, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], transformModules = [...opts.transformModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`), isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
4089
- function debug2(...args) {
4090
- opts.debug && console.log("[jiti]", ...args);
4091
- }
4092
- if (_filename || (_filename = process.cwd()), function(filename) {
2901
+ return defaultValue;
2902
+ }(mod) : mod;
2903
+ }
2904
+ function _booleanEnv(name, defaultValue) {
2905
+ const val = _jsonEnv(name, defaultValue);
2906
+ return Boolean(val);
2907
+ }
2908
+ function _jsonEnv(name, defaultValue) {
2909
+ const envValue = process.env[name];
2910
+ if (!(name in process.env)) return defaultValue;
2911
+ try {
2912
+ return JSON.parse(envValue);
2913
+ } catch {
2914
+ return defaultValue;
2915
+ }
2916
+ }
2917
+ const JS_EXT_RE = /\.(c|m)?j(sx?)$/, TS_EXT_RE = /\.(c|m)?t(sx?)$/;
2918
+ function jitiResolve(ctx, id, options) {
2919
+ let resolved, lastError;
2920
+ if (ctx.isNativeRe.test(id)) return id;
2921
+ ctx.alias && (id = function(path5, aliases2) {
2922
+ const _path = normalizeWindowsPath2(path5);
2923
+ aliases2 = normalizeAliases(aliases2);
2924
+ for (const [alias, to] of Object.entries(aliases2)) {
2925
+ if (!_path.startsWith(alias)) continue;
2926
+ const _alias = hasTrailingSlash2(alias) ? alias.slice(0, -1) : alias;
2927
+ if (hasTrailingSlash2(_path[_alias.length])) return join4(to, _path.slice(alias.length));
2928
+ }
2929
+ return _path;
2930
+ }(id, ctx.alias));
2931
+ let parentURL = options?.parentURL || ctx.url;
2932
+ isDir(parentURL) && (parentURL = join4(parentURL, "_index.js"));
2933
+ const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
2934
+ for (const conditions of conditionSets) {
4093
2935
  try {
4094
- return (0, external_fs_.lstatSync)(filename).isDirectory();
4095
- } catch (_a) {
4096
- return false;
2936
+ resolved = resolvePathSync2(id, { url: parentURL, conditions, extensions: ctx.opts.extensions });
2937
+ } catch (error) {
2938
+ lastError = error;
4097
2939
  }
4098
- }(_filename) && (_filename = join4(_filename, "index.js")), true === opts.cache && (opts.cache = function() {
4099
- let _tmpDir = (0, external_os_namespaceObject.tmpdir)();
2940
+ if (resolved) return resolved;
2941
+ }
2942
+ try {
2943
+ return ctx.nativeRequire.resolve(id, options);
2944
+ } catch (error) {
2945
+ lastError = error;
2946
+ }
2947
+ for (const ext of ctx.additionalExts) {
2948
+ if (resolved = tryNativeRequireResolve(ctx, id + ext, parentURL, options) || tryNativeRequireResolve(ctx, id + "/index" + ext, parentURL, options), resolved) return resolved;
2949
+ 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;
2950
+ }
2951
+ if (!options?.try) throw lastError;
2952
+ }
2953
+ function tryNativeRequireResolve(ctx, id, parentURL, options) {
2954
+ try {
2955
+ return ctx.nativeRequire.resolve(id, { ...options, paths: [pathe_ff20891b_dirname(fileURLToPath3(parentURL)), ...options?.paths || []] });
2956
+ } catch {
2957
+ }
2958
+ }
2959
+ const external_node_perf_hooks_namespaceObject = require("node:perf_hooks"), external_node_vm_namespaceObject = require("node:vm");
2960
+ var external_node_vm_default = __webpack_require__.n(external_node_vm_namespaceObject);
2961
+ function jitiRequire(ctx, id, opts) {
2962
+ const cache3 = ctx.parentCache || {};
2963
+ 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);
2964
+ if (ctx.opts.experimentalBun && !ctx.opts.transformOptions) try {
2965
+ if (!(id = jitiResolve(ctx, id, opts)) && opts.try) return;
2966
+ 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)));
2967
+ {
2968
+ const _mod = ctx.nativeRequire(id);
2969
+ return false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, _mod);
2970
+ }
2971
+ } catch (error) {
2972
+ debug2(ctx, `[bun] Using fallback for ${id} because of an error:`, error);
2973
+ }
2974
+ const filename = jitiResolve(ctx, id, opts);
2975
+ if (!filename && opts.try) return;
2976
+ const ext = extname3(filename);
2977
+ if (".json" === ext) {
2978
+ debug2(ctx, "[json]", filename);
2979
+ const jsonModule = ctx.nativeRequire(filename);
2980
+ return jsonModule && !("default" in jsonModule) && Object.defineProperty(jsonModule, "default", { value: jsonModule, enumerable: false }), jsonModule;
2981
+ }
2982
+ if (ext && !ctx.opts.extensions.includes(ext)) return debug2(ctx, "[native]", "[unknown]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
2983
+ if (ctx.isNativeRe.test(filename)) return debug2(ctx, "[native]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
2984
+ if (cache3[filename]) return jitiInteropDefault(ctx, cache3[filename]?.exports);
2985
+ if (ctx.opts.moduleCache && ctx.nativeRequire.cache[filename]) return jitiInteropDefault(ctx, ctx.nativeRequire.cache[filename]?.exports);
2986
+ const source = (0, external_node_fs_namespaceObject.readFileSync)(filename, "utf8");
2987
+ return eval_evalModule(ctx, source, { id, filename, ext, cache: cache3, async: opts.async });
2988
+ }
2989
+ function nativeImportOrRequire(ctx, id, async) {
2990
+ return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
2991
+ return a2 && isAbsolute2(id2) ? pathToFileURL2(id2) : id2;
2992
+ }(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
2993
+ }
2994
+ const CACHE_VERSION = "8";
2995
+ function getCache(ctx, topts, get) {
2996
+ if (!ctx.opts.fsCache || !topts.filename) return get();
2997
+ const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
2998
+ `, cacheName = `${basename2(pathe_ff20891b_dirname(topts.filename))}-${function(path5) {
2999
+ return path5.match(FILENAME_RE)?.[2];
3000
+ }(topts.filename)}` + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs"), cacheDir = ctx.opts.fsCache, cacheFilePath = join4(cacheDir, cacheName);
3001
+ if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
3002
+ const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
3003
+ if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
3004
+ }
3005
+ debug2(ctx, "[cache]", "[miss]", topts.filename);
3006
+ const result = get();
3007
+ return result.includes("__JITI_ERROR__") || ((0, external_node_fs_namespaceObject.writeFileSync)(cacheFilePath, result + sourceHash, "utf8"), debug2(ctx, "[cache]", "[store]", topts.filename, "~>", cacheFilePath)), result;
3008
+ }
3009
+ function prepareCacheDir(ctx) {
3010
+ if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
3011
+ const nmDir = ctx2.filename && resolve3(ctx2.filename, "../node_modules");
3012
+ if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join4(nmDir, ".cache/jiti");
3013
+ let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
4100
3014
  if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
4101
3015
  const _env = process.env.TMPDIR;
4102
- delete process.env.TMPDIR, _tmpDir = (0, external_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
3016
+ delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
4103
3017
  }
4104
- return join4(_tmpDir, "node-jiti");
4105
- }()), opts.cache) try {
4106
- if ((0, external_fs_.mkdirSync)(opts.cache, { recursive: true }), !function(filename) {
3018
+ return join4(_tmpDir, "jiti");
3019
+ }(ctx)), ctx.opts.fsCache) try {
3020
+ if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
4107
3021
  try {
4108
- return (0, external_fs_.accessSync)(filename, external_fs_.constants.W_OK), true;
4109
- } catch (_a) {
3022
+ return (0, external_node_fs_namespaceObject.accessSync)(filename, external_node_fs_namespaceObject.constants.W_OK), true;
3023
+ } catch {
4110
3024
  return false;
4111
3025
  }
4112
- }(opts.cache)) throw new Error("directory is not writable");
3026
+ }(ctx.opts.fsCache)) throw new Error("directory is not writable!");
4113
3027
  } catch (error) {
4114
- debug2("Error creating cache directory at ", opts.cache, error), opts.cache = false;
3028
+ debug2(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error), ctx.opts.fsCache = false;
4115
3029
  }
4116
- const nativeRequire = create_require_default()(isWindows ? _filename.replace(/\//g, "\\") : _filename), tryResolve = (id, options) => {
4117
- try {
4118
- return nativeRequire.resolve(id, options);
4119
- } catch (_a) {
4120
- }
4121
- }, _url = (0, external_url_namespaceObject.pathToFileURL)(_filename), _additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), _resolve3 = (id, options) => {
4122
- let resolved, err;
4123
- if (alias && (id = function(path5, aliases2) {
4124
- const _path = normalizeWindowsPath2(path5);
4125
- aliases2 = normalizeAliases(aliases2);
4126
- for (const [alias2, to] of Object.entries(aliases2)) {
4127
- if (!_path.startsWith(alias2)) continue;
4128
- const _alias = hasTrailingSlash2(alias2) ? alias2.slice(0, -1) : alias2;
4129
- if (hasTrailingSlash2(_path[_alias.length])) return join4(to, _path.slice(alias2.length));
4130
- }
4131
- return _path;
4132
- }(id, alias)), opts.esmResolve) {
4133
- const conditionSets = [["node", "require"], ["node", "import"]];
4134
- for (const conditions of conditionSets) {
3030
+ }
3031
+ function transform2(ctx, topts) {
3032
+ let code = getCache(ctx, topts, () => {
3033
+ 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 });
3034
+ return res.error && ctx.opts.debug && debug2(ctx, res.error), res.code;
3035
+ });
3036
+ return code.startsWith("#!") && (code = "// " + code), code;
3037
+ }
3038
+ function eval_evalModule(ctx, source, evalOptions = {}) {
3039
+ 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) {
3040
+ for (; path5 && "." !== path5 && "/" !== path5; ) {
3041
+ path5 = join4(path5, "..");
3042
+ try {
3043
+ const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join4(path5, "package.json"), "utf8");
4135
3044
  try {
4136
- resolved = resolvePathSync2(id, { url: _url, conditions, extensions: opts.extensions });
4137
- } catch (error) {
4138
- err = error;
3045
+ return JSON.parse(pkg);
3046
+ } catch {
4139
3047
  }
4140
- if (resolved) return resolved;
4141
- }
4142
- }
4143
- try {
4144
- return nativeRequire.resolve(id, options);
4145
- } catch (error) {
4146
- err = error;
4147
- }
4148
- for (const ext of _additionalExts) {
4149
- if (resolved = tryResolve(id + ext, options) || tryResolve(id + "/index" + ext, options), resolved) return resolved;
4150
- if (TS_EXT_RE.test((null == parentModule ? void 0 : parentModule.filename) || "") && (resolved = tryResolve(id.replace(JS_EXT_RE, ".$1t$2"), options), resolved)) return resolved;
4151
- }
4152
- throw err;
4153
- };
4154
- function transform(topts) {
4155
- let code = function(filename, source, get) {
4156
- if (!opts.cache || !filename) return get();
4157
- const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_ff20891b_dirname(filename)) + "-" + basename2(filename), cacheFile = join4(opts.cache, filebase + "." + md5(filename) + ".js");
4158
- if ((0, external_fs_.existsSync)(cacheFile)) {
4159
- const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
4160
- if (cacheSource.endsWith(sourceHash)) return debug2("[cache hit]", filename, "~>", cacheFile), cacheSource;
4161
- }
4162
- debug2("[cache miss]", filename);
4163
- const result = get();
4164
- return result.includes("__JITI_ERROR__") || (0, external_fs_.writeFileSync)(cacheFile, result + sourceHash, "utf8"), result;
4165
- }(topts.filename, topts.source, () => {
4166
- var _a;
4167
- 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));
4168
- return res.error && opts.debug && debug2(res.error), res.code;
4169
- });
4170
- return code.startsWith("#!") && (code = "// " + code), code;
4171
- }
4172
- function _interopDefault(mod) {
4173
- return opts.interopDefault ? function(sourceModule, opts2 = {}) {
4174
- if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
4175
- var value2;
4176
- const defaultValue = sourceModule.default;
4177
- if (null == defaultValue) return sourceModule;
4178
- const _defaultType = typeof defaultValue;
4179
- if ("object" !== _defaultType && ("function" !== _defaultType || opts2.preferNamespace)) return opts2.preferNamespace ? sourceModule : defaultValue;
4180
- for (const key in sourceModule) try {
4181
- key in defaultValue || Object.defineProperty(defaultValue, key, { enumerable: "default" !== key, configurable: "default" !== key, get: () => sourceModule[key] });
3048
+ break;
4182
3049
  } catch {
4183
3050
  }
4184
- return defaultValue;
4185
- }(mod) : mod;
4186
- }
4187
- function jiti(id, _importOptions) {
4188
- var _a, _b;
4189
- const cache3 = parentCache || {};
4190
- 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);
4191
- if (opts.experimentalBun && !opts.transformOptions) try {
4192
- debug2(`[bun] [native] ${id}`);
4193
- const _mod = nativeRequire(id);
4194
- return false === opts.requireCache && delete nativeRequire.cache[id], _interopDefault(_mod);
4195
- } catch (error) {
4196
- debug2(`[bun] Using fallback for ${id} because of an error:`, error);
4197
3051
  }
4198
- const filename = _resolve3(id), ext = extname3(filename);
4199
- if (".json" === ext) {
4200
- debug2("[json]", filename);
4201
- const jsonModule = nativeRequire(id);
4202
- return Object.defineProperty(jsonModule, "default", { value: jsonModule }), jsonModule;
4203
- }
4204
- if (ext && !opts.extensions.includes(ext)) return debug2("[unknown]", filename), nativeRequire(id);
4205
- if (isNativeRe.test(filename)) return debug2("[native]", filename), nativeRequire(id);
4206
- if (cache3[filename] && (true === cache3[filename].loaded || false === (null == parentModule ? void 0 : parentModule.loaded))) return _interopDefault(null === (_a = cache3[filename]) || void 0 === _a ? void 0 : _a.exports);
4207
- if (opts.requireCache && nativeRequire.cache[filename]) return _interopDefault(null === (_b = nativeRequire.cache[filename]) || void 0 === _b ? void 0 : _b.exports);
4208
- return evalModule((0, external_fs_.readFileSync)(filename, "utf8"), { id, filename, ext, cache: cache3 });
3052
+ }(filename)?.type, needsTranspile = !(".cjs" === ext) && !(isESM && evalOptions.async) && (isTypescript || isESM || ctx.isTransformRe.test(filename) || hasESMSyntax(source)), start = external_node_perf_hooks_namespaceObject.performance.now();
3053
+ if (needsTranspile) {
3054
+ source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false });
3055
+ const time = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start)) / 1e3;
3056
+ debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time}ms)`);
3057
+ } else try {
3058
+ return debug2(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, evalOptions.async);
3059
+ } catch (error) {
3060
+ debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false });
4209
3061
  }
4210
- function evalModule(source, evalOptions = {}) {
4211
- var _a;
4212
- const id = evalOptions.id || (evalOptions.filename ? basename2(evalOptions.filename) : `_jitiEval.${evalOptions.ext || ".js"}`), filename = evalOptions.filename || _resolve3(id), ext = evalOptions.ext || extname3(filename), cache3 = evalOptions.cache || parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isNativeModule = ".mjs" === ext || ".js" === ext && "module" === (null === (_a = function(path5) {
4213
- for (; path5 && "." !== path5 && "/" !== path5; ) {
4214
- path5 = join4(path5, "..");
4215
- try {
4216
- const pkg = (0, external_fs_.readFileSync)(join4(path5, "package.json"), "utf8");
4217
- try {
4218
- return JSON.parse(pkg);
4219
- } catch (_a2) {
4220
- }
4221
- break;
4222
- } catch (_b) {
4223
- }
4224
- }
4225
- }(filename)) || void 0 === _a ? void 0 : _a.type), needsTranspile = !(".cjs" === ext) && (isTypescript || isNativeModule || isTransformRe.test(filename) || hasESMSyntax(source) || opts.legacy && source.match(/\?\.|\?\?/));
4226
- const start = external_perf_hooks_namespaceObject.performance.now();
4227
- if (needsTranspile) {
4228
- source = transform({ filename, source, ts: isTypescript });
4229
- debug2("[transpile]" + (isNativeModule ? " [esm]" : ""), filename, `(${Math.round(1e3 * (external_perf_hooks_namespaceObject.performance.now() - start)) / 1e3}ms)`);
4230
- } else try {
4231
- return debug2("[native]", filename), _interopDefault(nativeRequire(id));
4232
- } catch (error) {
4233
- debug2("Native require error:", error), debug2("[fallback]", filename), source = transform({ filename, source, ts: isTypescript });
4234
- }
4235
- const mod = new external_module_.Module(filename);
4236
- let compiled;
4237
- 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);
4238
- try {
4239
- compiled = external_vm_default().runInThisContext(external_module_.Module.wrap(source), { filename, lineOffset: 0, displayErrors: false });
4240
- } catch (error) {
4241
- opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
4242
- }
4243
- try {
4244
- compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename));
4245
- } catch (error) {
4246
- opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
4247
- }
3062
+ const mod = new external_node_module_namespaceObject.Module(filename);
3063
+ mod.filename = filename, ctx.parentModule && (mod.parent = ctx.parentModule, Array.isArray(ctx.parentModule.children) && !ctx.parentModule.children.includes(mod) && ctx.parentModule.children.push(mod));
3064
+ const _jiti = createJiti2(filename, ctx.opts, { parentModule: mod, parentCache: cache3, nativeImport: ctx.nativeImport, onError: ctx.onError, createRequire: ctx.createRequire }, true);
3065
+ let compiled, evalResult;
3066
+ 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);
3067
+ try {
3068
+ compiled = external_node_vm_default().runInThisContext(function(source2, opts) {
3069
+ return `(${opts?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport) { ${source2}
3070
+ });`;
3071
+ }(source, { async: evalOptions.async }), { filename, lineOffset: 0, displayErrors: false });
3072
+ } catch (error) {
3073
+ ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
3074
+ }
3075
+ try {
3076
+ evalResult = compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename), _jiti.import);
3077
+ } catch (error) {
3078
+ ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
3079
+ }
3080
+ function next() {
4248
3081
  if (mod.exports && mod.exports.__JITI_ERROR__) {
4249
3082
  const { filename: filename2, line, column, code, message } = mod.exports.__JITI_ERROR__, err = new Error(`${code}: ${message}
4250
3083
  ${`${filename2}:${line}:${column}`}`);
4251
- Error.captureStackTrace(err, jiti), opts.onError(err);
3084
+ Error.captureStackTrace(err, jitiRequire), ctx.onError(err);
4252
3085
  }
4253
3086
  mod.loaded = true;
4254
- return _interopDefault(mod.exports);
4255
- }
4256
- return _resolve3.paths = nativeRequire.resolve.paths, jiti.resolve = _resolve3, jiti.cache = opts.requireCache ? nativeRequire.cache : {}, jiti.extensions = nativeRequire.extensions, jiti.main = nativeRequire.main, jiti.transform = transform, jiti.register = function() {
4257
- return (0, lib.addHook)((source, filename) => jiti.transform({ source, filename, ts: !!/\.[cm]?ts$/.test(filename) }), { exts: opts.extensions });
4258
- }, jiti.evalModule = evalModule, jiti.import = (id, importOptions) => __awaiter(this, void 0, void 0, function* () {
4259
- return yield jiti(id);
4260
- }), jiti;
3087
+ return jitiInteropDefault(ctx, mod.exports);
3088
+ }
3089
+ return evalOptions.async ? Promise.resolve(evalResult).then(next) : next();
3090
+ }
3091
+ const isWindows = "win32" === (0, external_node_os_namespaceObject.platform)();
3092
+ function createJiti2(filename, userOptions = {}, parentContext, isNested = false) {
3093
+ const opts = isNested ? userOptions : function(userOptions2) {
3094
+ 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 = {};
3095
+ return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
3096
+ }(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("|")})/`);
3097
+ filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join4(filename, "_index.js"));
3098
+ 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 };
3099
+ isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
3100
+ const jiti = Object.assign(function(id) {
3101
+ return jitiRequire(ctx, id, { async: false });
3102
+ }, { cache: opts.moduleCache ? nativeRequire.cache : /* @__PURE__ */ Object.create(null), extensions: nativeRequire.extensions, main: nativeRequire.main, resolve: Object.assign(function(path5) {
3103
+ return jitiResolve(ctx, path5, { async: false });
3104
+ }, { 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 }) });
3105
+ return jiti;
4261
3106
  }
4262
3107
  })(), module2.exports = __webpack_exports__.default;
4263
3108
  })();
4264
3109
  }
4265
3110
  });
4266
3111
 
4267
- // node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/babel.js
3112
+ // node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs
4268
3113
  var require_babel = __commonJS({
4269
- "node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/babel.js"(exports2, module2) {
3114
+ "node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs"(exports2, module2) {
4270
3115
  (() => {
4271
3116
  var __webpack_modules__ = { "./node_modules/.pnpm/@ampproject+remapping@2.3.0/node_modules/@ampproject/remapping/dist/remapping.umd.js": function(module3, __unused_webpack_exports, __webpack_require__2) {
4272
3117
  module3.exports = function(traceMapping, genMapping) {
@@ -4352,11 +3197,11 @@ Did you specify these with the most recent transformation maps first?`);
4352
3197
  webpackEmptyContext.keys = () => [], webpackEmptyContext.resolve = webpackEmptyContext, webpackEmptyContext.id = "./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/files sync recursive", module3.exports = webpackEmptyContext;
4353
3198
  }, "./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, exports3, __webpack_require__2) => {
4354
3199
  "use strict";
4355
- Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = void 0;
3200
+ exports3.A = void 0;
4356
3201
  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) {
4357
3202
  parserOpts.plugins.push("classProperties", "classPrivateProperties", "classPrivateMethods");
4358
3203
  } }));
4359
- exports3.default = _default;
3204
+ exports3.A = _default;
4360
3205
  }, "./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, exports3, __webpack_require__2) => {
4361
3206
  "use strict";
4362
3207
  exports3.A = void 0;
@@ -4364,20 +3209,6 @@ Did you specify these with the most recent transformation maps first?`);
4364
3209
  parserOpts.plugins.push("exportNamespaceFrom");
4365
3210
  } }));
4366
3211
  exports3.A = _default;
4367
- }, "./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, exports3, __webpack_require__2) => {
4368
- "use strict";
4369
- exports3.A = void 0;
4370
- 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) {
4371
- parserOpts.plugins.push("nullishCoalescingOperator");
4372
- } }));
4373
- exports3.A = _default;
4374
- }, "./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, exports3, __webpack_require__2) => {
4375
- "use strict";
4376
- exports3.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-optional-chaining", manipulateOptions(opts, parserOpts) {
4378
- parserOpts.plugins.push("optionalChaining");
4379
- } }));
4380
- exports3.A = _default;
4381
3212
  }, "./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.5/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js": function(__unused_webpack_module, exports3, __webpack_require__2) {
4382
3213
  !function(exports4, setArray, sourcemapCodec, traceMapping) {
4383
3214
  "use strict";
@@ -4957,55 +3788,6 @@ Did you specify these with the most recent transformation maps first?`);
4957
3788
  }
4958
3789
  exports4.AnyMap = AnyMap, exports4.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND, exports4.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND, exports4.TraceMap = TraceMap, exports4.allGeneratedPositionsFor = allGeneratedPositionsFor, exports4.decodedMap = decodedMap, exports4.decodedMappings = decodedMappings, exports4.eachMapping = eachMapping, exports4.encodedMap = encodedMap, exports4.encodedMappings = encodedMappings, exports4.generatedPositionFor = generatedPositionFor, exports4.isIgnored = isIgnored, exports4.originalPositionFor = originalPositionFor, exports4.presortedDecodedMap = presortedDecodedMap, exports4.sourceContentFor = sourceContentFor, exports4.traceSegment = traceSegment;
4959
3790
  }(exports3, __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"));
4960
- }, "./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js": (module3, exports3, __webpack_require__2) => {
4961
- "use strict";
4962
- Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(api) {
4963
- var transformImport = (0, _utils.createDynamicImportTransform)(api);
4964
- return { manipulateOptions: function(opts, parserOpts) {
4965
- parserOpts.plugins.push("dynamicImport");
4966
- }, visitor: { Import: function(path5) {
4967
- transformImport(this, path5);
4968
- } } };
4969
- };
4970
- 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");
4971
- module3.exports = exports3.default;
4972
- }, "./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js": (__unused_webpack_module, exports3) => {
4973
- "use strict";
4974
- Object.defineProperty(exports3, "__esModule", { value: true });
4975
- var _slicedToArray = function(arr, i2) {
4976
- if (Array.isArray(arr)) return arr;
4977
- if (Symbol.iterator in Object(arr)) return function(arr2, i3) {
4978
- var _arr = [], _n2 = true, _d = false, _e2 = void 0;
4979
- try {
4980
- for (var _s, _i2 = arr2[Symbol.iterator](); !(_n2 = (_s = _i2.next()).done) && (_arr.push(_s.value), !i3 || _arr.length !== i3); _n2 = true) ;
4981
- } catch (err) {
4982
- _d = true, _e2 = err;
4983
- } finally {
4984
- try {
4985
- !_n2 && _i2.return && _i2.return();
4986
- } finally {
4987
- if (_d) throw _e2;
4988
- }
4989
- }
4990
- return _arr;
4991
- }(arr, i2);
4992
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
4993
- };
4994
- function getImportSource(t2, callNode) {
4995
- var importArguments = callNode.arguments, importPath = _slicedToArray(importArguments, 1)[0];
4996
- return t2.isStringLiteral(importPath) || t2.isTemplateLiteral(importPath) ? (t2.removeComments(importPath), importPath) : t2.templateLiteral([t2.templateElement({ raw: "", cooked: "" }), t2.templateElement({ raw: "", cooked: "" }, true)], importArguments);
4997
- }
4998
- exports3.getImportSource = getImportSource, exports3.createDynamicImportTransform = function(_ref) {
4999
- 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();
5000
- return function(context, path5) {
5001
- if (visited) {
5002
- if (visited.has(path5)) return;
5003
- visited.add(path5);
5004
- }
5005
- 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") });
5006
- path5.parentPath.replaceWith(newImport);
5007
- };
5008
- };
5009
3791
  }, "./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
5010
3792
  "use strict";
5011
3793
  var _path = __webpack_require__2("path");
@@ -5301,14 +4083,14 @@ Did you specify these with the most recent transformation maps first?`);
5301
4083
  }
5302
4084
  }, "./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, exports3, __webpack_require__2) => {
5303
4085
  "use strict";
5304
- Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = void 0;
4086
+ exports3.A = void 0;
5305
4087
  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) {
5306
4088
  programPath.traverse({ ClassDeclaration(path5) {
5307
4089
  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));
5308
4090
  path5.parentPath.scope.crawl();
5309
4091
  } });
5310
4092
  } } }));
5311
- exports3.default = _default;
4093
+ exports3.A = _default;
5312
4094
  }, "./node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js": (__unused_webpack_module, exports3) => {
5313
4095
  "use strict";
5314
4096
  var decodeBase64;
@@ -6374,18 +5156,6 @@ Did you specify these with the most recent transformation maps first?`);
6374
5156
  FastObject(), module3.exports = function(o) {
6375
5157
  return FastObject(o);
6376
5158
  };
6377
- }, "./stubs/babel-codeframe.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
6378
- "use strict";
6379
- function codeFrameColumns() {
6380
- return "";
6381
- }
6382
- __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
6383
- }, "./stubs/helper-compilation-targets.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
6384
- "use strict";
6385
- function getTargets() {
6386
- return {};
6387
- }
6388
- __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
6389
5159
  }, assert: (module3) => {
6390
5160
  "use strict";
6391
5161
  module3.exports = require("assert");
@@ -7753,7 +6523,7 @@ ${yield* Formatter.optionsAndDescriptors(config.content)}`;
7753
6523
  }, data2;
7754
6524
  }
7755
6525
  function _helperCompilationTargets() {
7756
- const data2 = __webpack_require__2("./stubs/helper-compilation-targets.js");
6526
+ const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
7757
6527
  return _helperCompilationTargets = function() {
7758
6528
  return data2;
7759
6529
  }, data2;
@@ -7791,7 +6561,7 @@ ${yield* Formatter.optionsAndDescriptors(config.content)}`;
7791
6561
  }, "./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/validation/option-assertions.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
7792
6562
  "use strict";
7793
6563
  function _helperCompilationTargets() {
7794
- const data2 = __webpack_require__2("./stubs/helper-compilation-targets.js");
6564
+ const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
7795
6565
  return _helperCompilationTargets = function() {
7796
6566
  return data2;
7797
6567
  }, data2;
@@ -8357,7 +7127,7 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
8357
7127
  }, data2;
8358
7128
  }
8359
7129
  function _codeFrame() {
8360
- const data2 = __webpack_require__2("./stubs/babel-codeframe.js");
7130
+ const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
8361
7131
  return _codeFrame = function() {
8362
7132
  return data2;
8363
7133
  }, data2;
@@ -8630,7 +7400,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
8630
7400
  }, data2;
8631
7401
  }
8632
7402
  function _codeFrame() {
8633
- const data2 = __webpack_require__2("./stubs/babel-codeframe.js");
7403
+ const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
8634
7404
  return _codeFrame = function() {
8635
7405
  return data2;
8636
7406
  }, data2;
@@ -20551,9 +19321,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20551
19321
  }, exports3.tokTypes = tokTypes;
20552
19322
  }, "./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, exports3, __webpack_require__2) => {
20553
19323
  "use strict";
20554
- Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = void 0;
19324
+ exports3.A = void 0;
20555
19325
  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");
20556
- exports3.default = (0, _helperPluginUtils.declare)((api, options) => {
19326
+ exports3.A = (0, _helperPluginUtils.declare)((api, options) => {
20557
19327
  api.assertVersion(7);
20558
19328
  var { legacy } = options;
20559
19329
  const { version: version2 } = options;
@@ -20670,9 +19440,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20670
19440
  });
20671
19441
  }, "./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, exports3, __webpack_require__2) => {
20672
19442
  "use strict";
20673
- Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = void 0;
19443
+ exports3.A = void 0;
20674
19444
  var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js");
20675
- exports3.default = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "syntax-import-assertions", manipulateOptions(opts, parserOpts) {
19445
+ exports3.A = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "syntax-import-assertions", manipulateOptions(opts, parserOpts) {
20676
19446
  parserOpts.plugins.push("importAssertions");
20677
19447
  } }));
20678
19448
  }, "./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, exports3, __webpack_require__2) => {
@@ -20706,9 +19476,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20706
19476
  });
20707
19477
  }, "./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, exports3, __webpack_require__2) => {
20708
19478
  "use strict";
20709
- Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = void 0;
19479
+ exports3.A = void 0;
20710
19480
  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");
20711
- exports3.default = (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) {
19481
+ exports3.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) {
20712
19482
  var _exported$name;
20713
19483
  const { node, scope } = path5, { specifiers } = node, index = _core.types.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0;
20714
19484
  if (!_core.types.isExportNamespaceSpecifier(specifiers[index])) return;
@@ -20848,118 +19618,6 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20848
19618
  }, wrapReference(ref2, payload) {
20849
19619
  if ("lazy/function" === payload) return _core.types.callExpression(ref2, []);
20850
19620
  } });
20851
- }, "./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, exports3, __webpack_require__2) => {
20852
- "use strict";
20853
- Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = void 0;
20854
- 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");
20855
- exports3.default = (0, _helperPluginUtils.declare)((api, { loose = false }) => {
20856
- var _api$assumption;
20857
- api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
20858
- const noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose;
20859
- 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) {
20860
- const { node, scope } = path5;
20861
- if ("??" !== node.operator) return;
20862
- let ref2, assignment;
20863
- if (scope.isStatic(node.left)) ref2 = node.left, assignment = _core.types.cloneNode(node.left);
20864
- else {
20865
- if (scope.path.isPattern()) return void path5.replaceWith(_core.template.statement.ast`(() => ${path5.node})()`);
20866
- ref2 = scope.generateUidIdentifierBasedOnNode(node.left), scope.push({ id: _core.types.cloneNode(ref2) }), assignment = _core.types.assignmentExpression("=", ref2, node.left);
20867
- }
20868
- 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));
20869
- } } };
20870
- });
20871
- }, "./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, exports3, __webpack_require__2) => {
20872
- "use strict";
20873
- Object.defineProperty(exports3, "__esModule", { value: true });
20874
- 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");
20875
- function willPathCastToBoolean(path5) {
20876
- const maybeWrapped = findOutermostTransparentParent(path5), { node, parentPath } = maybeWrapped;
20877
- if (parentPath.isLogicalExpression()) {
20878
- const { operator, right } = parentPath.node;
20879
- if ("&&" === operator || "||" === operator || "??" === operator && node === right) return willPathCastToBoolean(parentPath);
20880
- }
20881
- if (parentPath.isSequenceExpression()) {
20882
- const { expressions } = parentPath.node;
20883
- return expressions[expressions.length - 1] !== node || willPathCastToBoolean(parentPath);
20884
- }
20885
- return parentPath.isConditional({ test: node }) || parentPath.isUnaryExpression({ operator: "!" }) || parentPath.isLoop({ test: node });
20886
- }
20887
- function findOutermostTransparentParent(path5) {
20888
- let maybeWrapped = path5;
20889
- return path5.findParent((p2) => {
20890
- if (!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p2.node)) return true;
20891
- maybeWrapped = p2;
20892
- }), maybeWrapped;
20893
- }
20894
- const last = (arr) => arr[arr.length - 1];
20895
- function isSimpleMemberExpression(expression) {
20896
- return expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression), core.types.isIdentifier(expression) || core.types.isSuper(expression) || core.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object);
20897
- }
20898
- 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");
20899
- function transformOptionalChain(path5, { pureGetters, noDocumentAll }, replacementPath, ifNullish, wrapLast) {
20900
- const { scope } = path5;
20901
- if (scope.path.isPattern() && function(path6) {
20902
- let optionalPath2 = path6;
20903
- const { scope: scope2 } = path6;
20904
- for (; optionalPath2.isOptionalMemberExpression() || optionalPath2.isOptionalCallExpression(); ) {
20905
- const { node } = optionalPath2, childPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath2.isOptionalMemberExpression() ? optionalPath2.get("object") : optionalPath2.get("callee"));
20906
- if (node.optional) return !scope2.isStatic(childPath.node);
20907
- optionalPath2 = childPath;
20908
- }
20909
- }(path5)) return void replacementPath.replaceWith(core.template.expression.ast`(() => ${replacementPath.node})()`);
20910
- const optionals = [];
20911
- let optionalPath = path5;
20912
- for (; optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression(); ) {
20913
- const { node } = optionalPath;
20914
- 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")));
20915
- }
20916
- if (0 === optionals.length) return;
20917
- const checks = [];
20918
- let tmpVar;
20919
- for (let i2 = optionals.length - 1; i2 >= 0; i2--) {
20920
- const node = optionals[i2], isCall = core.types.isCallExpression(node), chainWithTypes = isCall ? node.callee : node.object, chain = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes);
20921
- let ref2, check2;
20922
- 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;
20923
- else {
20924
- const { object } = chain;
20925
- let context;
20926
- if (core.types.isSuper(object)) context = core.types.thisExpression();
20927
- else {
20928
- const memoized = scope.maybeGenerateMemoised(object);
20929
- memoized ? (context = memoized, chain.object = core.types.assignmentExpression("=", memoized, object)) : context = object;
20930
- }
20931
- node.arguments.unshift(core.types.cloneNode(context)), node.callee = core.types.memberExpression(node.callee, core.types.identifier("call"));
20932
- }
20933
- const data2 = { check: core.types.cloneNode(check2), ref: core.types.cloneNode(ref2) };
20934
- Object.defineProperty(data2, "ref", { enumerable: false }), checks.push(data2);
20935
- }
20936
- let result = replacementPath.node;
20937
- wrapLast && (result = wrapLast(result));
20938
- 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));
20939
- replacementPath.replaceWith(ifNullishBoolean || ifNullishVoid && isEvaluationValueIgnored ? core.types.logicalExpression(logicalOp, check, result) : core.types.conditionalExpression(check, ifNullish, result));
20940
- }
20941
- function transform(path5, assumptions) {
20942
- const { scope } = path5, maybeWrapped = findOutermostTransparentParent(path5), { parentPath } = maybeWrapped;
20943
- if (parentPath.isUnaryExpression({ operator: "delete" })) transformOptionalChain(path5, assumptions, parentPath, core.types.booleanLiteral(true));
20944
- else {
20945
- let wrapLast;
20946
- parentPath.isCallExpression({ callee: maybeWrapped.node }) && path5.isOptionalMemberExpression() && (wrapLast = (replacement) => {
20947
- var _baseRef;
20948
- const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object);
20949
- let baseRef;
20950
- 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)]);
20951
- }), transformOptionalChain(path5, assumptions, path5, willPathCastToBoolean(maybeWrapped) ? core.types.booleanLiteral(false) : scope.buildUndefinedNode(), wrapLast);
20952
- }
20953
- }
20954
- var index = helperPluginUtils.declare((api, options) => {
20955
- var _api$assumption, _api$assumption2;
20956
- api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
20957
- const { loose = false } = options, noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose, pureGetters = null != (_api$assumption2 = api.assumption("pureGetters")) ? _api$assumption2 : loose;
20958
- 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) {
20959
- transform(path5, { noDocumentAll, pureGetters });
20960
- } } };
20961
- });
20962
- exports3.default = index, exports3.transform = transform, exports3.transformOptionalChain = transformOptionalChain;
20963
19621
  }, "./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, exports3, __webpack_require__2) => {
20964
19622
  "use strict";
20965
19623
  Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(path5, t2) {
@@ -21655,7 +20313,7 @@ ${str}
21655
20313
  const state = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist, placeholderPattern, syntacticPlaceholders };
21656
20314
  return traverse(ast, placeholderVisitorHandler, state), Object.assign({ ast }, state.syntactic.placeholders.length ? state.syntactic : state.legacy);
21657
20315
  };
21658
- 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.js");
20316
+ 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");
21659
20317
  const { isCallExpression, isExpressionStatement, isFunction, isIdentifier, isJSXIdentifier, isNewExpression, isPlaceholder, isStatement, isStringLiteral, removePropertiesDeep, traverse } = _t, PATTERN = /^[_$A-Z0-9]+$/;
21660
20318
  function placeholderVisitorHandler(node, ancestors, state) {
21661
20319
  var _state$placeholderWhi;
@@ -21743,7 +20401,7 @@ ${str}
21743
20401
  clearPath(), clearScope();
21744
20402
  }, exports3.clearPath = clearPath, exports3.clearScope = clearScope, exports3.getCachedPaths = function(hub, parent) {
21745
20403
  var _pathsCache$get;
21746
- return null, null == (_pathsCache$get = pathsCache.get(false ? null : nullHub)) ? void 0 : _pathsCache$get.get(parent);
20404
+ return null == (_pathsCache$get = pathsCache.get(false ? null : nullHub)) ? void 0 : _pathsCache$get.get(parent);
21747
20405
  }, exports3.getOrCreateCachedPaths = function(hub, parent) {
21748
20406
  null;
21749
20407
  let parents = pathsCache.get(false ? null : nullHub);
@@ -23509,7 +22167,7 @@ ${str}
23509
22167
  const expressionAST = ast.program.body[0].expression;
23510
22168
  return _index.default.removeProperties(expressionAST), this.replaceWith(expressionAST);
23511
22169
  };
23512
- var _codeFrame = __webpack_require__2("./stubs/babel-codeframe.js"), _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");
22170
+ 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");
23513
22171
  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;
23514
22172
  function gatherSequenceExpressions(nodes, declars) {
23515
22173
  const exprs = [];
@@ -29522,6 +28180,18 @@ ${trace}`);
29522
28180
  }
29523
28181
  } };
29524
28182
  const __WEBPACK_DEFAULT_EXPORT__ = JSON5;
28183
+ }, "./stubs/babel-codeframe.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
28184
+ "use strict";
28185
+ function codeFrameColumns() {
28186
+ return "";
28187
+ }
28188
+ __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
28189
+ }, "./stubs/helper-compilation-targets.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
28190
+ "use strict";
28191
+ function getTargets() {
28192
+ return {};
28193
+ }
28194
+ __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
29525
28195
  }, "./node_modules/.pnpm/@babel+preset-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/preset-typescript/package.json": (module3) => {
29526
28196
  "use strict";
29527
28197
  module3.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"}');
@@ -29535,7 +28205,10 @@ ${trace}`);
29535
28205
  var module3 = __webpack_module_cache__[moduleId] = { exports: {} };
29536
28206
  return __webpack_modules__[moduleId].call(module3.exports, module3, module3.exports, __webpack_require__), module3.exports;
29537
28207
  }
29538
- __webpack_require__.d = (exports3, definition) => {
28208
+ __webpack_require__.n = (module3) => {
28209
+ var getter = module3 && module3.__esModule ? () => module3.default : () => module3;
28210
+ return __webpack_require__.d(getter, { a: getter }), getter;
28211
+ }, __webpack_require__.d = (exports3, definition) => {
29539
28212
  for (var key in definition) __webpack_require__.o(definition, key) && !__webpack_require__.o(exports3, key) && Object.defineProperty(exports3, key, { enumerable: true, get: definition[key] });
29540
28213
  }, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports3) => {
29541
28214
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(exports3, "__esModule", { value: true });
@@ -29543,15 +28216,17 @@ ${trace}`);
29543
28216
  var __webpack_exports__ = {};
29544
28217
  (() => {
29545
28218
  "use strict";
29546
- __webpack_require__.d(__webpack_exports__, { default: () => transform });
29547
- var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js"), external_url_ = __webpack_require__("url"), template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.24.7/node_modules/@babel/template/lib/index.js");
28219
+ __webpack_require__.d(__webpack_exports__, { default: () => transform2 });
28220
+ var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
28221
+ const external_node_url_namespaceObject = require("node:url");
28222
+ var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.24.7/node_modules/@babel/template/lib/index.js");
29548
28223
  function TransformImportMetaPlugin(_ctx, opts) {
29549
28224
  return { name: "transform-import-meta", visitor: { Program(path5) {
29550
28225
  const metas = [];
29551
28226
  if (path5.traverse({ MemberExpression(memberExpPath) {
29552
28227
  const { node } = memberExpPath;
29553
28228
  "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);
29554
- } }), 0 !== metas.length) for (const meta of metas) meta.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify((0, external_url_.pathToFileURL)(opts.filename)) : "require('url').pathToFileURL(__filename).toString()"}`);
28229
+ } }), 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()"}`);
29555
28230
  } } };
29556
28231
  }
29557
28232
  function importMetaEnvPlugin({ template, types: types2 }) {
@@ -29565,14 +28240,124 @@ ${trace}`);
29565
28240
  "import" === parentNodeObjMeta.meta.name && "meta" === parentNodeObjMeta.property.name && "env" === parentNode.property.name && path5.parentPath.replaceWith(template.expression.ast("process.env"));
29566
28241
  } } };
29567
28242
  }
29568
- function transform(opts) {
29569
- var _a, _b, _c, _d, _e2, _f;
29570
- const _opts = Object.assign(Object.assign({ babelrc: false, configFile: false, compact: false, retainLines: "boolean" != typeof opts.retainLines || opts.retainLines, filename: "", cwd: "/" }, opts.babel), { plugins: [[__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"), { allowTopLevelThis: true }], [__webpack_require__("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js"), { noInterop: true }], [TransformImportMetaPlugin, { filename: opts.filename }], [__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")], [__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")], [importMetaEnvPlugin]] });
29571
- opts.ts && (_opts.plugins.push([__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"), { allowDeclareFields: true }]), _opts.plugins.unshift([__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")], [__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"), { legacy: true }]), _opts.plugins.push(__webpack_require__("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js")), _opts.plugins.push(__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"))), opts.legacy && (_opts.plugins.push(__webpack_require__("./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")), _opts.plugins.push(__webpack_require__("./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"))), opts.babel && Array.isArray(opts.babel.plugins) && (null === (_a = _opts.plugins) || void 0 === _a || _a.push(...opts.babel.plugins));
28243
+ 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");
28244
+ function transformDynamicImport(path5, noInterop, file) {
28245
+ path5.replaceWith((0, helper_module_transforms_lib.buildDynamicImport)(path5.node, true, false, (specifier) => ((source, file2, noInterop2) => {
28246
+ const exp = lib.template.expression.ast`jitiImport(${source})`;
28247
+ 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")]))]);
28248
+ })(specifier, file, noInterop)));
28249
+ }
28250
+ const commonJSHooksKey = "@babel/plugin-transform-modules-commonjs/customWrapperPlugin";
28251
+ function findMap(arr, cb) {
28252
+ if (arr) for (const el of arr) {
28253
+ const res = cb(el);
28254
+ if (null != res) return res;
28255
+ }
28256
+ }
28257
+ const transform_module = (0, helper_plugin_utils_lib.declare)((api, options) => {
28258
+ 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;
28259
+ 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");
28260
+ if ("boolean" != typeof strictNamespace) throw new TypeError(".strictNamespace must be a boolean, or undefined");
28261
+ if ("boolean" != typeof mjsStrictNamespace) throw new TypeError(".mjsStrictNamespace must be a boolean, or undefined");
28262
+ const getAssertion = (localName) => lib.template.expression.ast`
28263
+ (function(){
28264
+ throw new Error(
28265
+ "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." +
28266
+ "Consider setting setting sourceType:script or sourceType:unambiguous in your " +
28267
+ "Babel config for this file.");
28268
+ })()
28269
+ `, moduleExportsVisitor = { ReferencedIdentifier(path5) {
28270
+ const localName = path5.node.name;
28271
+ if ("module" !== localName && "exports" !== localName) return;
28272
+ const localBinding = path5.scope.getBinding(localName);
28273
+ 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));
28274
+ }, UpdateExpression(path5) {
28275
+ const arg = path5.get("argument");
28276
+ if (!arg.isIdentifier()) return;
28277
+ const localName = arg.node.name;
28278
+ if ("module" !== localName && "exports" !== localName) return;
28279
+ const localBinding = path5.scope.getBinding(localName);
28280
+ this.scope.getBinding(localName) === localBinding && path5.replaceWith(lib.types.assignmentExpression(path5.node.operator[0] + "=", arg.node, getAssertion(localName)));
28281
+ }, AssignmentExpression(path5) {
28282
+ const left = path5.get("left");
28283
+ if (left.isIdentifier()) {
28284
+ const localName = left.node.name;
28285
+ if ("module" !== localName && "exports" !== localName) return;
28286
+ const localBinding = path5.scope.getBinding(localName);
28287
+ if (this.scope.getBinding(localName) !== localBinding) return;
28288
+ const right = path5.get("right");
28289
+ right.replaceWith(lib.types.sequenceExpression([right.node, getAssertion(localName)]));
28290
+ } else if (left.isPattern()) {
28291
+ const ids = left.getOuterBindingIdentifiers(), localName = Object.keys(ids).find((localName2) => ("module" === localName2 || "exports" === localName2) && this.scope.getBinding(localName2) === path5.scope.getBinding(localName2));
28292
+ if (localName) {
28293
+ const right = path5.get("right");
28294
+ right.replaceWith(lib.types.sequenceExpression([right.node, getAssertion(localName)]));
28295
+ }
28296
+ }
28297
+ } };
28298
+ return { name: "transform-modules-commonjs", pre() {
28299
+ this.file.set("@babel/plugin-transform-modules-*", "commonjs"), lazy && function(file, hook) {
28300
+ let hooks = file.get(commonJSHooksKey);
28301
+ hooks || file.set(commonJSHooksKey, hooks = []), hooks.push(hook);
28302
+ }(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) {
28303
+ if ("lazy/function" === payload) return !!referenced && lib.template.statement.ast`
28304
+ function ${name}() {
28305
+ const data = ${init};
28306
+ ${name} = function(){ return data; };
28307
+ return data;
28308
+ }
28309
+ `;
28310
+ }, wrapReference(ref2, payload) {
28311
+ if ("lazy/function" === payload) return lib.types.callExpression(ref2, []);
28312
+ } }))(lazy));
28313
+ }, visitor: { ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path5) {
28314
+ if (path5.isCallExpression() && !lib.types.isImport(path5.node.callee)) return;
28315
+ let { scope } = path5;
28316
+ do {
28317
+ scope.rename("require");
28318
+ } while (scope = scope.parent);
28319
+ transformDynamicImport(path5, noInterop, this.file);
28320
+ }, Program: { exit(path5, state) {
28321
+ if (!(0, helper_module_transforms_lib.isModule)(path5)) return;
28322
+ 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 }));
28323
+ let moduleName = (0, helper_module_transforms_lib.getModuleName)(this.file.opts, options);
28324
+ moduleName && (moduleName = lib.types.stringLiteral(moduleName));
28325
+ const hooks = function(file) {
28326
+ const hooks2 = file.get(commonJSHooksKey);
28327
+ 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)) };
28328
+ }(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 });
28329
+ for (const [source, metadata] of meta.source) {
28330
+ 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)]);
28331
+ let header;
28332
+ if ((0, helper_module_transforms_lib.isSideEffectImport)(metadata)) {
28333
+ if (lazy && "function" === metadata.wrap) throw new Error("Assertion failure");
28334
+ header = lib.types.expressionStatement(loadExpr);
28335
+ } else {
28336
+ const init = (0, helper_module_transforms_lib.wrapInterop)(path5, loadExpr, metadata.interop) || loadExpr;
28337
+ if (metadata.wrap) {
28338
+ const res = hooks.buildRequireWrapper(metadata.name, init, metadata.wrap, metadata.referenced);
28339
+ if (false === res) continue;
28340
+ header = res;
28341
+ }
28342
+ header ??= lib.template.statement.ast`
28343
+ var ${metadata.name} = ${init};
28344
+ `;
28345
+ }
28346
+ header.loc = metadata.loc, headers.push(header), headers.push(...(0, helper_module_transforms_lib.buildNamespaceInitStatements)(meta, metadata, constantReexports, hooks.wrapReference));
28347
+ }
28348
+ (0, helper_module_transforms_lib.ensureStatementsHoisted)(headers), path5.unshiftContainer("body", headers), path5.get("body").forEach((path6) => {
28349
+ headers.includes(path6.node) && path6.isVariableDeclaration() && path6.scope.registerDeclaration(path6);
28350
+ });
28351
+ } } } };
28352
+ });
28353
+ 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");
28354
+ function transform2(opts) {
28355
+ 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]] };
28356
+ 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);
29572
28357
  try {
29573
- return { code: (null === (_b = (0, lib.transformSync)(opts.source, _opts)) || void 0 === _b ? void 0 : _b.code) || "" };
28358
+ return { code: (0, lib.transformSync)(opts.source, _opts)?.code || "" };
29574
28359
  } catch (error) {
29575
- return { error, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line: (null === (_c = error.loc) || void 0 === _c ? void 0 : _c.line) || 0, column: (null === (_d = error.loc) || void 0 === _d ? void 0 : _d.column) || 0, code: null === (_e2 = error.code) || void 0 === _e2 ? void 0 : _e2.replace("BABEL_", "").replace("PARSE_ERROR", "ParseError"), message: null === (_f = error.message) || void 0 === _f ? void 0 : _f.replace("/: ", "").replace(/\(.+\)\s*$/, "") }) };
28360
+ 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*$/, "") }) };
29576
28361
  }
29577
28362
  }
29578
28363
  })(), module2.exports = __webpack_exports__.default;
@@ -29580,23 +28365,6 @@ ${trace}`);
29580
28365
  }
29581
28366
  });
29582
28367
 
29583
- // node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js
29584
- var require_lib = __commonJS({
29585
- "node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js"(exports2, module2) {
29586
- function onError(err) {
29587
- throw err;
29588
- }
29589
- module2.exports = function jiti(filename, opts) {
29590
- const jiti2 = require_jiti();
29591
- opts = { onError, ...opts };
29592
- if (!opts.transform) {
29593
- opts.transform = require_babel();
29594
- }
29595
- return jiti2(filename, opts);
29596
- };
29597
- }
29598
- });
29599
-
29600
28368
  // node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
29601
28369
  function isPlainObject(value2) {
29602
28370
  if (value2 === null || typeof value2 !== "object") {
@@ -32346,6 +31114,344 @@ ${f2}`, i2);
32346
31114
  }
32347
31115
  });
32348
31116
 
31117
+ // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json
31118
+ var require_package = __commonJS({
31119
+ "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports2, module2) {
31120
+ module2.exports = {
31121
+ name: "dotenv",
31122
+ version: "16.4.5",
31123
+ description: "Loads environment variables from .env file",
31124
+ main: "lib/main.js",
31125
+ types: "lib/main.d.ts",
31126
+ exports: {
31127
+ ".": {
31128
+ types: "./lib/main.d.ts",
31129
+ require: "./lib/main.js",
31130
+ default: "./lib/main.js"
31131
+ },
31132
+ "./config": "./config.js",
31133
+ "./config.js": "./config.js",
31134
+ "./lib/env-options": "./lib/env-options.js",
31135
+ "./lib/env-options.js": "./lib/env-options.js",
31136
+ "./lib/cli-options": "./lib/cli-options.js",
31137
+ "./lib/cli-options.js": "./lib/cli-options.js",
31138
+ "./package.json": "./package.json"
31139
+ },
31140
+ scripts: {
31141
+ "dts-check": "tsc --project tests/types/tsconfig.json",
31142
+ lint: "standard",
31143
+ "lint-readme": "standard-markdown",
31144
+ pretest: "npm run lint && npm run dts-check",
31145
+ test: "tap tests/*.js --100 -Rspec",
31146
+ "test:coverage": "tap --coverage-report=lcov",
31147
+ prerelease: "npm test",
31148
+ release: "standard-version"
31149
+ },
31150
+ repository: {
31151
+ type: "git",
31152
+ url: "git://github.com/motdotla/dotenv.git"
31153
+ },
31154
+ funding: "https://dotenvx.com",
31155
+ keywords: [
31156
+ "dotenv",
31157
+ "env",
31158
+ ".env",
31159
+ "environment",
31160
+ "variables",
31161
+ "config",
31162
+ "settings"
31163
+ ],
31164
+ readmeFilename: "README.md",
31165
+ license: "BSD-2-Clause",
31166
+ devDependencies: {
31167
+ "@definitelytyped/dtslint": "^0.0.133",
31168
+ "@types/node": "^18.11.3",
31169
+ decache: "^4.6.1",
31170
+ sinon: "^14.0.1",
31171
+ standard: "^17.0.0",
31172
+ "standard-markdown": "^7.1.0",
31173
+ "standard-version": "^9.5.0",
31174
+ tap: "^16.3.0",
31175
+ tar: "^6.1.11",
31176
+ typescript: "^4.8.4"
31177
+ },
31178
+ engines: {
31179
+ node: ">=12"
31180
+ },
31181
+ browser: {
31182
+ fs: false
31183
+ }
31184
+ };
31185
+ }
31186
+ });
31187
+
31188
+ // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
31189
+ var require_main = __commonJS({
31190
+ "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports2, module2) {
31191
+ var fs2 = require("fs");
31192
+ var path5 = require("path");
31193
+ var os2 = require("os");
31194
+ var crypto = require("crypto");
31195
+ var packageJson = require_package();
31196
+ var version2 = packageJson.version;
31197
+ var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
31198
+ function parse6(src) {
31199
+ const obj = {};
31200
+ let lines = src.toString();
31201
+ lines = lines.replace(/\r\n?/mg, "\n");
31202
+ let match;
31203
+ while ((match = LINE.exec(lines)) != null) {
31204
+ const key = match[1];
31205
+ let value2 = match[2] || "";
31206
+ value2 = value2.trim();
31207
+ const maybeQuote = value2[0];
31208
+ value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
31209
+ if (maybeQuote === '"') {
31210
+ value2 = value2.replace(/\\n/g, "\n");
31211
+ value2 = value2.replace(/\\r/g, "\r");
31212
+ }
31213
+ obj[key] = value2;
31214
+ }
31215
+ return obj;
31216
+ }
31217
+ function _parseVault(options) {
31218
+ const vaultPath = _vaultPath(options);
31219
+ const result = DotenvModule.configDotenv({ path: vaultPath });
31220
+ if (!result.parsed) {
31221
+ const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
31222
+ err.code = "MISSING_DATA";
31223
+ throw err;
31224
+ }
31225
+ const keys = _dotenvKey(options).split(",");
31226
+ const length = keys.length;
31227
+ let decrypted;
31228
+ for (let i2 = 0; i2 < length; i2++) {
31229
+ try {
31230
+ const key = keys[i2].trim();
31231
+ const attrs = _instructions(result, key);
31232
+ decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
31233
+ break;
31234
+ } catch (error) {
31235
+ if (i2 + 1 >= length) {
31236
+ throw error;
31237
+ }
31238
+ }
31239
+ }
31240
+ return DotenvModule.parse(decrypted);
31241
+ }
31242
+ function _log(message) {
31243
+ console.log(`[dotenv@${version2}][INFO] ${message}`);
31244
+ }
31245
+ function _warn(message) {
31246
+ console.log(`[dotenv@${version2}][WARN] ${message}`);
31247
+ }
31248
+ function _debug(message) {
31249
+ console.log(`[dotenv@${version2}][DEBUG] ${message}`);
31250
+ }
31251
+ function _dotenvKey(options) {
31252
+ if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
31253
+ return options.DOTENV_KEY;
31254
+ }
31255
+ if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
31256
+ return process.env.DOTENV_KEY;
31257
+ }
31258
+ return "";
31259
+ }
31260
+ function _instructions(result, dotenvKey) {
31261
+ let uri;
31262
+ try {
31263
+ uri = new URL(dotenvKey);
31264
+ } catch (error) {
31265
+ if (error.code === "ERR_INVALID_URL") {
31266
+ 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");
31267
+ err.code = "INVALID_DOTENV_KEY";
31268
+ throw err;
31269
+ }
31270
+ throw error;
31271
+ }
31272
+ const key = uri.password;
31273
+ if (!key) {
31274
+ const err = new Error("INVALID_DOTENV_KEY: Missing key part");
31275
+ err.code = "INVALID_DOTENV_KEY";
31276
+ throw err;
31277
+ }
31278
+ const environment = uri.searchParams.get("environment");
31279
+ if (!environment) {
31280
+ const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
31281
+ err.code = "INVALID_DOTENV_KEY";
31282
+ throw err;
31283
+ }
31284
+ const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
31285
+ const ciphertext = result.parsed[environmentKey];
31286
+ if (!ciphertext) {
31287
+ const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
31288
+ err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
31289
+ throw err;
31290
+ }
31291
+ return { ciphertext, key };
31292
+ }
31293
+ function _vaultPath(options) {
31294
+ let possibleVaultPath = null;
31295
+ if (options && options.path && options.path.length > 0) {
31296
+ if (Array.isArray(options.path)) {
31297
+ for (const filepath of options.path) {
31298
+ if (fs2.existsSync(filepath)) {
31299
+ possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
31300
+ }
31301
+ }
31302
+ } else {
31303
+ possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
31304
+ }
31305
+ } else {
31306
+ possibleVaultPath = path5.resolve(process.cwd(), ".env.vault");
31307
+ }
31308
+ if (fs2.existsSync(possibleVaultPath)) {
31309
+ return possibleVaultPath;
31310
+ }
31311
+ return null;
31312
+ }
31313
+ function _resolveHome(envPath) {
31314
+ return envPath[0] === "~" ? path5.join(os2.homedir(), envPath.slice(1)) : envPath;
31315
+ }
31316
+ function _configVault(options) {
31317
+ _log("Loading env from encrypted .env.vault");
31318
+ const parsed = DotenvModule._parseVault(options);
31319
+ let processEnv = process.env;
31320
+ if (options && options.processEnv != null) {
31321
+ processEnv = options.processEnv;
31322
+ }
31323
+ DotenvModule.populate(processEnv, parsed, options);
31324
+ return { parsed };
31325
+ }
31326
+ function configDotenv(options) {
31327
+ const dotenvPath = path5.resolve(process.cwd(), ".env");
31328
+ let encoding = "utf8";
31329
+ const debug2 = Boolean(options && options.debug);
31330
+ if (options && options.encoding) {
31331
+ encoding = options.encoding;
31332
+ } else {
31333
+ if (debug2) {
31334
+ _debug("No encoding is specified. UTF-8 is used by default");
31335
+ }
31336
+ }
31337
+ let optionPaths = [dotenvPath];
31338
+ if (options && options.path) {
31339
+ if (!Array.isArray(options.path)) {
31340
+ optionPaths = [_resolveHome(options.path)];
31341
+ } else {
31342
+ optionPaths = [];
31343
+ for (const filepath of options.path) {
31344
+ optionPaths.push(_resolveHome(filepath));
31345
+ }
31346
+ }
31347
+ }
31348
+ let lastError;
31349
+ const parsedAll = {};
31350
+ for (const path6 of optionPaths) {
31351
+ try {
31352
+ const parsed = DotenvModule.parse(fs2.readFileSync(path6, { encoding }));
31353
+ DotenvModule.populate(parsedAll, parsed, options);
31354
+ } catch (e2) {
31355
+ if (debug2) {
31356
+ _debug(`Failed to load ${path6} ${e2.message}`);
31357
+ }
31358
+ lastError = e2;
31359
+ }
31360
+ }
31361
+ let processEnv = process.env;
31362
+ if (options && options.processEnv != null) {
31363
+ processEnv = options.processEnv;
31364
+ }
31365
+ DotenvModule.populate(processEnv, parsedAll, options);
31366
+ if (lastError) {
31367
+ return { parsed: parsedAll, error: lastError };
31368
+ } else {
31369
+ return { parsed: parsedAll };
31370
+ }
31371
+ }
31372
+ function config(options) {
31373
+ if (_dotenvKey(options).length === 0) {
31374
+ return DotenvModule.configDotenv(options);
31375
+ }
31376
+ const vaultPath = _vaultPath(options);
31377
+ if (!vaultPath) {
31378
+ _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
31379
+ return DotenvModule.configDotenv(options);
31380
+ }
31381
+ return DotenvModule._configVault(options);
31382
+ }
31383
+ function decrypt(encrypted, keyStr) {
31384
+ const key = Buffer.from(keyStr.slice(-64), "hex");
31385
+ let ciphertext = Buffer.from(encrypted, "base64");
31386
+ const nonce = ciphertext.subarray(0, 12);
31387
+ const authTag = ciphertext.subarray(-16);
31388
+ ciphertext = ciphertext.subarray(12, -16);
31389
+ try {
31390
+ const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
31391
+ aesgcm.setAuthTag(authTag);
31392
+ return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
31393
+ } catch (error) {
31394
+ const isRange = error instanceof RangeError;
31395
+ const invalidKeyLength = error.message === "Invalid key length";
31396
+ const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
31397
+ if (isRange || invalidKeyLength) {
31398
+ const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
31399
+ err.code = "INVALID_DOTENV_KEY";
31400
+ throw err;
31401
+ } else if (decryptionFailed) {
31402
+ const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
31403
+ err.code = "DECRYPTION_FAILED";
31404
+ throw err;
31405
+ } else {
31406
+ throw error;
31407
+ }
31408
+ }
31409
+ }
31410
+ function populate(processEnv, parsed, options = {}) {
31411
+ const debug2 = Boolean(options && options.debug);
31412
+ const override = Boolean(options && options.override);
31413
+ if (typeof parsed !== "object") {
31414
+ const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
31415
+ err.code = "OBJECT_REQUIRED";
31416
+ throw err;
31417
+ }
31418
+ for (const key of Object.keys(parsed)) {
31419
+ if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
31420
+ if (override === true) {
31421
+ processEnv[key] = parsed[key];
31422
+ }
31423
+ if (debug2) {
31424
+ if (override === true) {
31425
+ _debug(`"${key}" is already defined and WAS overwritten`);
31426
+ } else {
31427
+ _debug(`"${key}" is already defined and was NOT overwritten`);
31428
+ }
31429
+ }
31430
+ } else {
31431
+ processEnv[key] = parsed[key];
31432
+ }
31433
+ }
31434
+ }
31435
+ var DotenvModule = {
31436
+ configDotenv,
31437
+ _configVault,
31438
+ _parseVault,
31439
+ config,
31440
+ decrypt,
31441
+ parse: parse6,
31442
+ populate
31443
+ };
31444
+ module2.exports.configDotenv = DotenvModule.configDotenv;
31445
+ module2.exports._configVault = DotenvModule._configVault;
31446
+ module2.exports._parseVault = DotenvModule._parseVault;
31447
+ module2.exports.config = DotenvModule.config;
31448
+ module2.exports.decrypt = DotenvModule.decrypt;
31449
+ module2.exports.parse = DotenvModule.parse;
31450
+ module2.exports.populate = DotenvModule.populate;
31451
+ module2.exports = DotenvModule;
31452
+ }
31453
+ });
31454
+
32349
31455
  // node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/jsonc.mjs
32350
31456
  var jsonc_exports = {};
32351
31457
  __export(jsonc_exports, {
@@ -44754,7 +43860,7 @@ var require_dist = __commonJS({
44754
43860
  });
44755
43861
 
44756
43862
  // node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs
44757
- var require_lib2 = __commonJS({
43863
+ var require_lib = __commonJS({
44758
43864
  "node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs"(exports2, module2) {
44759
43865
  var nodeFetch = require_dist();
44760
43866
  function fetch2(input, options) {
@@ -44861,7 +43967,7 @@ var require_proxy = __commonJS({
44861
43967
  var require$$3 = require("events");
44862
43968
  var require$$5$2 = require("url");
44863
43969
  var require$$2$1 = require("assert");
44864
- var nodeFetchNative = require_lib2();
43970
+ var nodeFetchNative = require_lib();
44865
43971
  function _interopDefaultCompat(e2) {
44866
43972
  return e2 && typeof e2 == "object" && "default" in e2 ? e2.default : e2;
44867
43973
  }
@@ -47897,7 +47003,7 @@ ${f2.toString(16)}\r
47897
47003
  if (J4 != null && typeof J4 != "boolean") throw new InvalidArgumentError$e("allowH2 must be a valid boolean value");
47898
47004
  if (W6 != null && (typeof W6 != "number" || W6 < 1)) throw new InvalidArgumentError$e("maxConcurrentStreams must be a positive integer, greater than 0");
47899
47005
  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
47900
- `, 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) => onError(this, N5);
47006
+ `, 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);
47901
47007
  }
47902
47008
  get pipelining() {
47903
47009
  return this[kPipelining];
@@ -47947,7 +47053,7 @@ ${f2.toString(16)}\r
47947
47053
  }
47948
47054
  }, Q5(Xe2, "Client"), Xe2);
47949
47055
  var createRedirectInterceptor$1 = redirectInterceptor;
47950
- function onError(e2, A2) {
47056
+ function onError2(e2, A2) {
47951
47057
  if (e2[kRunning$3] === 0 && A2.code !== "UND_ERR_INFO" && A2.code !== "UND_ERR_SOCKET") {
47952
47058
  assert$4(e2[kPendingIdx] === e2[kRunningIdx]);
47953
47059
  const t2 = e2[kQueue$1].splice(e2[kRunningIdx]);
@@ -47958,7 +47064,7 @@ ${f2.toString(16)}\r
47958
47064
  assert$4(e2[kSize$3] === 0);
47959
47065
  }
47960
47066
  }
47961
- Q5(onError, "onError");
47067
+ Q5(onError2, "onError");
47962
47068
  async function connect$1(e2) {
47963
47069
  assert$4(!e2[kConnecting]), assert$4(!e2[kHTTPContext]);
47964
47070
  let { host: A2, hostname: t2, protocol: r3, port: n } = e2[kUrl$2];
@@ -47994,7 +47100,7 @@ ${f2.toString(16)}\r
47994
47100
  const B3 = e2[kQueue$1][e2[kPendingIdx]++];
47995
47101
  errorRequest(e2, B3, o);
47996
47102
  }
47997
- else onError(e2, o);
47103
+ else onError2(e2, o);
47998
47104
  e2.emit("connectionError", e2[kUrl$2], [e2], o);
47999
47105
  }
48000
47106
  e2[kResume$1]();
@@ -53426,15 +52532,15 @@ var require_conversions = __commonJS({
53426
52532
  const g4 = rgb[1] / 255;
53427
52533
  const b6 = rgb[2] / 255;
53428
52534
  const v5 = Math.max(r3, g4, b6);
53429
- const diff2 = v5 - Math.min(r3, g4, b6);
52535
+ const diff = v5 - Math.min(r3, g4, b6);
53430
52536
  const diffc = function(c) {
53431
- return (v5 - c) / 6 / diff2 + 1 / 2;
52537
+ return (v5 - c) / 6 / diff + 1 / 2;
53432
52538
  };
53433
- if (diff2 === 0) {
52539
+ if (diff === 0) {
53434
52540
  h5 = 0;
53435
52541
  s2 = 0;
53436
52542
  } else {
53437
- s2 = diff2 / v5;
52543
+ s2 = diff / v5;
53438
52544
  rdif = diffc(r3);
53439
52545
  gdif = diffc(g4);
53440
52546
  bdif = diffc(b6);
@@ -54780,13 +53886,30 @@ __export(src_exports, {
54780
53886
  });
54781
53887
  module.exports = __toCommonJS(src_exports);
54782
53888
 
54783
- // node_modules/.pnpm/c12@1.10.0/node_modules/c12/dist/index.mjs
53889
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
54784
53890
  var import_node_fs8 = require("node:fs");
54785
- init_dist();
54786
- var dotenv = __toESM(require_main(), 1);
54787
53891
  var import_promises4 = require("node:fs/promises");
54788
53892
  var import_node_os6 = require("node:os");
54789
- var import_jiti = __toESM(require_lib(), 1);
53893
+ init_dist();
53894
+
53895
+ // node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/lib/jiti.mjs
53896
+ var import_node_module = require("node:module");
53897
+ var import_jiti = __toESM(require_jiti(), 1);
53898
+ var import_babel = __toESM(require_babel(), 1);
53899
+ function onError(err) {
53900
+ throw err;
53901
+ }
53902
+ var nativeImport = (id) => import(id);
53903
+ function createJiti(id, opts = {}) {
53904
+ if (!opts.transform) {
53905
+ opts = { ...opts, transform: import_babel.default };
53906
+ }
53907
+ return (0, import_jiti.default)(id, opts, {
53908
+ onError,
53909
+ nativeImport,
53910
+ createRequire: import_node_module.createRequire
53911
+ });
53912
+ }
54790
53913
 
54791
53914
  // node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
54792
53915
  var import_node_fs = require("node:fs");
@@ -55023,7 +54146,7 @@ function readUser(options) {
55023
54146
  return read(options);
55024
54147
  }
55025
54148
 
55026
- // node_modules/.pnpm/c12@1.10.0/node_modules/c12/dist/index.mjs
54149
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
55027
54150
  init_defu();
55028
54151
 
55029
54152
  // node_modules/.pnpm/ohash@1.1.3/node_modules/ohash/dist/index.mjs
@@ -55628,7 +54751,7 @@ function hash(object, options = {}) {
55628
54751
  return sha256base64(hashed).slice(0, 10);
55629
54752
  }
55630
54753
 
55631
- // node_modules/.pnpm/pkg-types@1.1.1/node_modules/pkg-types/dist/index.mjs
54754
+ // node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
55632
54755
  var import_node_fs3 = require("node:fs");
55633
54756
  init_dist();
55634
54757
 
@@ -61027,17 +60150,22 @@ Parser.acorn = {
61027
60150
  };
61028
60151
 
61029
60152
  // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
61030
- var import_node_module = require("node:module");
60153
+ var import_node_module2 = require("node:module");
61031
60154
  var import_node_fs2 = __toESM(require("node:fs"), 1);
61032
60155
  init_dist2();
61033
60156
  init_dist();
60157
+
60158
+ // node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/index.mjs
60159
+ init_confbox_bcd59e75();
60160
+
60161
+ // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
61034
60162
  var import_node_url = require("node:url");
61035
60163
  var import_node_assert = __toESM(require("node:assert"), 1);
61036
60164
  var import_node_process = __toESM(require("node:process"), 1);
61037
60165
  var import_node_path2 = __toESM(require("node:path"), 1);
61038
60166
  var import_node_v8 = __toESM(require("node:v8"), 1);
61039
60167
  var import_node_util = require("node:util");
61040
- var BUILTIN_MODULES = new Set(import_node_module.builtinModules);
60168
+ var BUILTIN_MODULES = new Set(import_node_module2.builtinModules);
61041
60169
  function normalizeSlash(path5) {
61042
60170
  return path5.replace(/\\/g, "/");
61043
60171
  }
@@ -62151,7 +61279,7 @@ function parsePackageName(specifier, base) {
62151
61279
  return { packageName, packageSubpath, isScoped };
62152
61280
  }
62153
61281
  function packageResolve(specifier, base, conditions) {
62154
- if (import_node_module.builtinModules.includes(specifier)) {
61282
+ if (import_node_module2.builtinModules.includes(specifier)) {
62155
61283
  return new import_node_url.URL("node:" + specifier);
62156
61284
  }
62157
61285
  const { packageName, packageSubpath, isScoped } = parsePackageName(
@@ -62238,7 +61366,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
62238
61366
  try {
62239
61367
  resolved = new import_node_url.URL(specifier);
62240
61368
  } catch (error_) {
62241
- if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
61369
+ if (isRemote && !import_node_module2.builtinModules.includes(specifier)) {
62242
61370
  const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
62243
61371
  error.cause = error_;
62244
61372
  throw error;
@@ -62384,10 +61512,7 @@ function resolvePath(id, options) {
62384
61512
  }
62385
61513
  }
62386
61514
 
62387
- // node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/index.mjs
62388
- init_confbox_bcd59e75();
62389
-
62390
- // node_modules/.pnpm/pkg-types@1.1.1/node_modules/pkg-types/dist/index.mjs
61515
+ // node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
62391
61516
  var defaultFindOptions = {
62392
61517
  startingFrom: ".",
62393
61518
  rootPattern: /^node_modules$/,
@@ -62504,7 +61629,8 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
62504
61629
  throw new Error("Cannot detect workspace root from " + id);
62505
61630
  }
62506
61631
 
62507
- // node_modules/.pnpm/c12@1.10.0/node_modules/c12/dist/index.mjs
61632
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
61633
+ var dotenv = __toESM(require_main(), 1);
62508
61634
  async function setupDotenv(options) {
62509
61635
  const targetEnvironment = options.env ?? process.env;
62510
61636
  const environment = await loadDotenv({
@@ -62553,7 +61679,7 @@ function interpolate(target, source = {}, parse6 = (v5) => v5) {
62553
61679
  let value22, replacePart;
62554
61680
  if (prefix === "\\") {
62555
61681
  replacePart = parts[0] || "";
62556
- value22 = replacePart.replace("\\$", "$");
61682
+ value22 = replacePart.replace(String.raw`\$`, "$");
62557
61683
  } else {
62558
61684
  const key = parts[2];
62559
61685
  replacePart = (parts[0] || "").slice(prefix.length);
@@ -62612,10 +61738,10 @@ async function loadConfig(options) {
62612
61738
  ...options.extend
62613
61739
  };
62614
61740
  }
62615
- options.jiti = options.jiti || (0, import_jiti.default)(void 0, {
61741
+ const _merger = options.merger || defu;
61742
+ options.jiti = options.jiti || createJiti(join(options.cwd, options.configFile), {
62616
61743
  interopDefault: true,
62617
- requireCache: false,
62618
- esmResolve: true,
61744
+ moduleCache: false,
62619
61745
  extensions: [...SUPPORTED_EXTENSIONS],
62620
61746
  ...options.jitiOptions
62621
61747
  });
@@ -62625,17 +61751,24 @@ async function loadConfig(options) {
62625
61751
  configFile: resolve(options.cwd, options.configFile),
62626
61752
  layers: []
62627
61753
  };
61754
+ const _configs = {
61755
+ overrides: options.overrides,
61756
+ main: void 0,
61757
+ rc: void 0,
61758
+ packageJson: void 0,
61759
+ defaultConfig: options.defaultConfig
61760
+ };
62628
61761
  if (options.dotenv) {
62629
61762
  await setupDotenv({
62630
61763
  cwd: options.cwd,
62631
61764
  ...options.dotenv === true ? {} : options.dotenv
62632
61765
  });
62633
61766
  }
62634
- const { config, configFile } = await resolveConfig(".", options);
62635
- if (configFile) {
62636
- r3.configFile = configFile;
61767
+ const _mainConfig = await resolveConfig(".", options);
61768
+ if (_mainConfig.configFile) {
61769
+ _configs.main = _mainConfig.config;
61770
+ r3.configFile = _mainConfig.configFile;
62637
61771
  }
62638
- const configRC = {};
62639
61772
  if (options.rcFile) {
62640
61773
  const rcSources = [];
62641
61774
  rcSources.push(read({ name: options.rcFile, dir: options.cwd }));
@@ -62647,9 +61780,8 @@ async function loadConfig(options) {
62647
61780
  }
62648
61781
  rcSources.push(readUser({ name: options.rcFile, dir: options.cwd }));
62649
61782
  }
62650
- Object.assign(configRC, defu({}, ...rcSources));
61783
+ _configs.rc = _merger({}, ...rcSources);
62651
61784
  }
62652
- const pkgJson = {};
62653
61785
  if (options.packageJson) {
62654
61786
  const keys = (Array.isArray(options.packageJson) ? options.packageJson : [
62655
61787
  typeof options.packageJson === "string" ? options.packageJson : options.name
@@ -62657,34 +61789,42 @@ async function loadConfig(options) {
62657
61789
  const pkgJsonFile = await readPackageJSON(options.cwd).catch(() => {
62658
61790
  });
62659
61791
  const values = keys.map((key) => pkgJsonFile?.[key]);
62660
- Object.assign(pkgJson, defu({}, ...values));
62661
- }
62662
- r3.config = defu(
62663
- options.overrides,
62664
- config,
62665
- configRC,
62666
- pkgJson,
62667
- options.defaultConfig
61792
+ _configs.packageJson = _merger({}, ...values);
61793
+ }
61794
+ const configs = {};
61795
+ for (const key in _configs) {
61796
+ const value2 = _configs[key];
61797
+ configs[key] = await (typeof value2 === "function" ? value2({ configs }) : value2);
61798
+ }
61799
+ r3.config = _merger(
61800
+ configs.overrides,
61801
+ configs.main,
61802
+ configs.rc,
61803
+ configs.packageJson,
61804
+ configs.defaultConfig
62668
61805
  );
62669
61806
  if (options.extend) {
62670
61807
  await extendConfig(r3.config, options);
62671
61808
  r3.layers = r3.config._layers;
62672
61809
  delete r3.config._layers;
62673
- r3.config = defu(r3.config, ...r3.layers.map((e2) => e2.config));
61810
+ r3.config = _merger(r3.config, ...r3.layers.map((e2) => e2.config));
62674
61811
  }
62675
61812
  const baseLayers = [
62676
- options.overrides && {
62677
- config: options.overrides,
61813
+ configs.overrides && {
61814
+ config: configs.overrides,
62678
61815
  configFile: void 0,
62679
61816
  cwd: void 0
62680
61817
  },
62681
- { config, configFile: options.configFile, cwd: options.cwd },
62682
- options.rcFile && { config: configRC, configFile: options.rcFile },
62683
- options.packageJson && { config: pkgJson, configFile: "package.json" }
61818
+ { config: configs.main, configFile: options.configFile, cwd: options.cwd },
61819
+ configs.rc && { config: configs.rc, configFile: options.rcFile },
61820
+ configs.packageJson && {
61821
+ config: configs.packageJson,
61822
+ configFile: "package.json"
61823
+ }
62684
61824
  ].filter((l2) => l2 && l2.config);
62685
61825
  r3.layers = [...baseLayers, ...r3.layers];
62686
61826
  if (options.defaults) {
62687
- r3.config = defu(r3.config, options.defaults);
61827
+ r3.config = _merger(r3.config, options.defaults);
62688
61828
  }
62689
61829
  if (options.omit$Keys) {
62690
61830
  for (const key in r3.config) {
@@ -62763,7 +61903,8 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62763
61903
  return res2;
62764
61904
  }
62765
61905
  }
62766
- if (GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
61906
+ const _merger = options.merger || defu;
61907
+ if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
62767
61908
  const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist4(), dist_exports));
62768
61909
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
62769
61910
  let cloneDir;
@@ -62791,7 +61932,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62791
61932
  }
62792
61933
  const tryResolve = (id) => {
62793
61934
  try {
62794
- return options.jiti.resolve(id, { paths: [options.cwd] });
61935
+ return options.jiti.esmResolve(id, { try: true });
62795
61936
  } catch {
62796
61937
  }
62797
61938
  };
@@ -62821,7 +61962,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62821
61962
  const contents = await (0, import_promises4.readFile)(res.configFile, "utf8");
62822
61963
  res.config = asyncLoader(contents);
62823
61964
  } else {
62824
- res.config = options.jiti(res.configFile);
61965
+ res.config = await options.jiti.import(res.configFile);
62825
61966
  }
62826
61967
  if (res.config instanceof Function) {
62827
61968
  res.config = await res.config();
@@ -62832,19 +61973,23 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62832
61973
  ...res.config.$env?.[options.envName]
62833
61974
  };
62834
61975
  if (Object.keys(envConfig).length > 0) {
62835
- res.config = defu(envConfig, res.config);
61976
+ res.config = _merger(envConfig, res.config);
62836
61977
  }
62837
61978
  }
62838
61979
  res.meta = defu(res.sourceOptions.meta, res.config.$meta);
62839
61980
  delete res.config.$meta;
62840
61981
  if (res.sourceOptions.overrides) {
62841
- res.config = defu(res.sourceOptions.overrides, res.config);
61982
+ res.config = _merger(res.sourceOptions.overrides, res.config);
62842
61983
  }
62843
61984
  res.configFile = _normalize(res.configFile);
62844
61985
  res.source = _normalize(res.source);
62845
61986
  return res;
62846
61987
  }
62847
61988
 
61989
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/index.mjs
61990
+ init_defu();
61991
+ var import_dotenv = __toESM(require_main(), 1);
61992
+
62848
61993
  // packages/config-tools/src/config-file/get-config-file.ts
62849
61994
  var import_deepmerge = __toESM(require_cjs());
62850
61995
 
@@ -63782,12 +62927,12 @@ var ZodType = class {
63782
62927
  and(incoming) {
63783
62928
  return ZodIntersection.create(this, incoming, this._def);
63784
62929
  }
63785
- transform(transform) {
62930
+ transform(transform2) {
63786
62931
  return new ZodEffects({
63787
62932
  ...processCreateParams(this._def),
63788
62933
  schema: this,
63789
62934
  typeName: ZodFirstPartyTypeKind.ZodEffects,
63790
- effect: { type: "transform", transform }
62935
+ effect: { type: "transform", transform: transform2 }
63791
62936
  });
63792
62937
  }
63793
62938
  default(def) {