@storm-software/git-tools 2.113.7 → 2.113.8

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.
@@ -3727,7 +3727,7 @@ var require_jiti = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
3727
3727
  function NodeError(...parameters) {
3728
3728
  const limit = Error.stackTraceLimit;
3729
3729
  isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = 0);
3730
- const error2 = new Base();
3730
+ const error = new Base();
3731
3731
  isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = limit);
3732
3732
  const message = function(key2, parameters2, self) {
3733
3733
  const message2 = messages.get(key2);
@@ -3736,10 +3736,10 @@ var require_jiti = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
3736
3736
  let expectedLength = 0;
3737
3737
  for (; null !== regex.exec(message2); ) expectedLength++;
3738
3738
  return external_node_assert_namespaceObject(expectedLength === parameters2.length, `Code: ${key2}; The provided arguments length (${parameters2.length}) does not match the required ones (${expectedLength}).`), 0 === parameters2.length ? message2 : (parameters2.unshift(message2), Reflect.apply(external_node_util_namespaceObject.format, null, parameters2));
3739
- }(key, parameters, error2);
3740
- return Object.defineProperties(error2, { message: { value: message, enumerable: false, writable: true, configurable: true }, toString: { value() {
3739
+ }(key, parameters, error);
3740
+ return Object.defineProperties(error, { message: { value: message, enumerable: false, writable: true, configurable: true }, toString: { value() {
3741
3741
  return `${this.name} [${key}]: ${this.message}`;
3742
- }, enumerable: false, writable: true, configurable: true } }), captureLargerStackTrace(error2), error2.code = key, error2;
3742
+ }, enumerable: false, writable: true, configurable: true } }), captureLargerStackTrace(error), error.code = key, error;
3743
3743
  }
3744
3744
  }(constructor, sym);
3745
3745
  }
@@ -3785,9 +3785,9 @@ var require_jiti = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
3785
3785
  const captureLargerStackTrace = function(wrappedFunction) {
3786
3786
  const hidden = "__node_internal_" + wrappedFunction.name;
3787
3787
  return Object.defineProperty(wrappedFunction, "name", { value: hidden }), wrappedFunction;
3788
- }(function(error2) {
3788
+ }(function(error) {
3789
3789
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
3790
- return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error2), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error2;
3790
+ return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error;
3791
3791
  });
3792
3792
  const hasOwnProperty$1 = {}.hasOwnProperty, { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes, cache = /* @__PURE__ */ new Map();
3793
3793
  function read2(jsonPath, { base, specifier }) {
@@ -3796,8 +3796,8 @@ var require_jiti = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
3796
3796
  let string3;
3797
3797
  try {
3798
3798
  string3 = external_node_fs_namespaceObject.readFileSync(external_node_path_namespaceObject.toNamespacedPath(jsonPath), "utf8");
3799
- } catch (error2) {
3800
- const exception = error2;
3799
+ } catch (error) {
3800
+ const exception = error;
3801
3801
  if ("ENOENT" !== exception.code) throw exception;
3802
3802
  }
3803
3803
  const result = { exists: false, pjsonPath: jsonPath, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
@@ -3806,8 +3806,8 @@ var require_jiti = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
3806
3806
  try {
3807
3807
  parsed = JSON.parse(string3);
3808
3808
  } catch (error_) {
3809
- const cause = error_, error2 = new ERR_INVALID_PACKAGE_CONFIG$1(jsonPath, (base ? `"${specifier}" from ` : "") + (0, external_node_url_namespaceObject.fileURLToPath)(base || specifier), cause.message);
3810
- throw error2.cause = cause, error2;
3809
+ const cause = error_, error = new ERR_INVALID_PACKAGE_CONFIG$1(jsonPath, (base ? `"${specifier}" from ` : "") + (0, external_node_url_namespaceObject.fileURLToPath)(base || specifier), cause.message);
3810
+ throw error.cause = cause, error;
3811
3811
  }
3812
3812
  result.exists = true, hasOwnProperty$1.call(parsed, "name") && "string" == typeof parsed.name && (result.name = parsed.name), hasOwnProperty$1.call(parsed, "main") && "string" == typeof parsed.main && (result.main = parsed.main), hasOwnProperty$1.call(parsed, "exports") && (result.exports = parsed.exports), hasOwnProperty$1.call(parsed, "imports") && (result.imports = parsed.imports), !hasOwnProperty$1.call(parsed, "type") || "commonjs" !== parsed.type && "module" !== parsed.type || (result.type = parsed.type);
3813
3813
  }
@@ -3962,9 +3962,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3962
3962
  let resolveResult;
3963
3963
  try {
3964
3964
  resolveResult = resolvePackageTarget(packageJsonUrl, targetItem, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions);
3965
- } catch (error2) {
3966
- if (lastException = error2, "ERR_INVALID_PACKAGE_TARGET" === error2.code) continue;
3967
- throw error2;
3965
+ } catch (error) {
3966
+ if (lastException = error, "ERR_INVALID_PACKAGE_TARGET" === error.code) continue;
3967
+ throw error;
3968
3968
  }
3969
3969
  if (void 0 !== resolveResult) {
3970
3970
  if (null !== resolveResult) return resolveResult;
@@ -4110,16 +4110,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4110
4110
  }(specifier)) try {
4111
4111
  resolved = new external_node_url_namespaceObject.URL(specifier, base);
4112
4112
  } catch (error_) {
4113
- const error2 = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
4114
- throw error2.cause = error_, error2;
4113
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
4114
+ throw error.cause = error_, error;
4115
4115
  }
4116
4116
  else if ("file:" === protocol && "#" === specifier[0]) resolved = packageImportsResolve(specifier, base, conditions);
4117
4117
  else try {
4118
4118
  resolved = new external_node_url_namespaceObject.URL(specifier);
4119
4119
  } catch (error_) {
4120
4120
  if (isRemote && !external_node_module_namespaceObject.builtinModules.includes(specifier)) {
4121
- const error2 = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
4122
- throw error2.cause = error_, error2;
4121
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
4122
+ throw error.cause = error_, error;
4123
4123
  }
4124
4124
  resolved = packageResolve(specifier, base, conditions);
4125
4125
  }
@@ -4128,18 +4128,18 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4128
4128
  let filePath;
4129
4129
  try {
4130
4130
  filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2);
4131
- } catch (error2) {
4132
- const cause = error2;
4131
+ } catch (error) {
4132
+ const cause = error;
4133
4133
  throw Object.defineProperty(cause, "input", { value: String(resolved2) }), Object.defineProperty(cause, "module", { value: String(base2) }), cause;
4134
4134
  }
4135
4135
  const stats = tryStatSync(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
4136
4136
  if (stats && stats.isDirectory()) {
4137
- const error2 = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, external_node_url_namespaceObject.fileURLToPath)(base2));
4138
- throw error2.url = String(resolved2), error2;
4137
+ const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, external_node_url_namespaceObject.fileURLToPath)(base2));
4138
+ throw error.url = String(resolved2), error;
4139
4139
  }
4140
4140
  if (!stats || !stats.isFile()) {
4141
- const error2 = new ERR_MODULE_NOT_FOUND(filePath || resolved2.pathname, base2 && (0, external_node_url_namespaceObject.fileURLToPath)(base2), true);
4142
- throw error2.url = String(resolved2), error2;
4141
+ const error = new ERR_MODULE_NOT_FOUND(filePath || resolved2.pathname, base2 && (0, external_node_url_namespaceObject.fileURLToPath)(base2), true);
4142
+ throw error.url = String(resolved2), error;
4143
4143
  }
4144
4144
  if (!preserveSymlinks2) {
4145
4145
  const real = (0, external_node_fs_namespaceObject.realpathSync)(filePath), { search, hash } = resolved2;
@@ -4158,8 +4158,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4158
4158
  function _tryModuleResolve(id, url, conditions) {
4159
4159
  try {
4160
4160
  return moduleResolve(id, url, conditions);
4161
- } catch (error2) {
4162
- if (!NOT_FOUND_ERRORS.has(_optionalChain([error2, 'optionalAccess', _3 => _3.code]))) throw error2;
4161
+ } catch (error) {
4162
+ if (!NOT_FOUND_ERRORS.has(_optionalChain([error, 'optionalAccess', _3 => _3.code]))) throw error;
4163
4163
  }
4164
4164
  }
4165
4165
  function _resolve(id, options = {}) {
@@ -4171,8 +4171,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4171
4171
  if (BUILTIN_MODULES.has(id)) return "node:" + id;
4172
4172
  if (id.startsWith("file://") && (id = fileURLToPath2(id)), isAbsolute2(id)) try {
4173
4173
  if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL(id);
4174
- } catch (error2) {
4175
- if ("ENOENT" !== _optionalChain([error2, 'optionalAccess', _4 => _4.code])) throw error2;
4174
+ } catch (error) {
4175
+ if ("ENOENT" !== _optionalChain([error, 'optionalAccess', _4 => _4.code])) throw error;
4176
4176
  }
4177
4177
  const conditionsSet = options.conditions ? new Set(options.conditions) : DEFAULT_CONDITIONS_SET, _urls = (Array.isArray(options.url) ? options.url : [options.url]).filter(Boolean).map((url) => new URL(function(id2) {
4178
4178
  return "string" != typeof id2 && (id2 = id2.toString()), /(node|data|http|https|file):/.test(id2) ? id2 : BUILTIN_MODULES.has(id2) ? "node:" + id2 : "file://" + encodeURI(normalizeSlash(id2));
@@ -4190,8 +4190,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4190
4190
  if (resolved) break;
4191
4191
  }
4192
4192
  if (!resolved) {
4193
- const error2 = new Error(`Cannot find module ${id} imported from ${urls.join(", ")}`);
4194
- throw error2.code = "ERR_MODULE_NOT_FOUND", error2;
4193
+ const error = new Error(`Cannot find module ${id} imported from ${urls.join(", ")}`);
4194
+ throw error.code = "ERR_MODULE_NOT_FOUND", error;
4195
4195
  }
4196
4196
  return pathToFileURL(resolved);
4197
4197
  }
@@ -4327,15 +4327,15 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4327
4327
  for (const conditions of conditionSets) {
4328
4328
  try {
4329
4329
  resolved = resolvePathSync(id, { url: parentURL, conditions, extensions: ctx.opts.extensions });
4330
- } catch (error2) {
4331
- lastError = error2;
4330
+ } catch (error) {
4331
+ lastError = error;
4332
4332
  }
4333
4333
  if (resolved) return resolved;
4334
4334
  }
4335
4335
  try {
4336
4336
  return ctx.nativeRequire.resolve(id, { paths: options.paths });
4337
- } catch (error2) {
4338
- lastError = error2;
4337
+ } catch (error) {
4338
+ lastError = error;
4339
4339
  }
4340
4340
  for (const ext of ctx.additionalExts) {
4341
4341
  if (resolved = tryNativeRequireResolve(ctx, id + ext, parentURL, options) || tryNativeRequireResolve(ctx, id + "/index" + ext, parentURL, options), resolved) return resolved;
@@ -4367,8 +4367,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4367
4367
  const _mod = ctx.nativeRequire(id);
4368
4368
  return false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, _mod);
4369
4369
  }
4370
- } catch (error2) {
4371
- debug(ctx, `[try-native] Using fallback for ${id} because of an error:`, error2);
4370
+ } catch (error) {
4371
+ debug(ctx, `[try-native] Using fallback for ${id} because of an error:`, error);
4372
4372
  }
4373
4373
  const filename = jitiResolve(ctx, id, opts);
4374
4374
  if (!filename && opts.try) return;
@@ -4429,8 +4429,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4429
4429
  return false;
4430
4430
  }
4431
4431
  }(ctx.opts.fsCache)) throw new Error("directory is not writable!");
4432
- } catch (error2) {
4433
- debug(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error2), ctx.opts.fsCache = false;
4432
+ } catch (error) {
4433
+ debug(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error), ctx.opts.fsCache = false;
4434
4434
  }
4435
4435
  }
4436
4436
  function transform3(ctx, topts) {
@@ -4460,11 +4460,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4460
4460
  const time3 = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start)) / 1e3;
4461
4461
  debug(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time3}ms)`);
4462
4462
  } else {
4463
- if (debug(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), evalOptions.async) return Promise.resolve(nativeImportOrRequire(ctx, filename, evalOptions.async)).catch((error2) => (debug(ctx, "Native import error:", error2), debug(ctx, "[fallback]", filename), eval_evalModule(ctx, source, { ...evalOptions, forceTranspile: true })));
4463
+ if (debug(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), evalOptions.async) return Promise.resolve(nativeImportOrRequire(ctx, filename, evalOptions.async)).catch((error) => (debug(ctx, "Native import error:", error), debug(ctx, "[fallback]", filename), eval_evalModule(ctx, source, { ...evalOptions, forceTranspile: true })));
4464
4464
  try {
4465
4465
  return nativeImportOrRequire(ctx, filename, evalOptions.async);
4466
- } catch (error2) {
4467
- debug(ctx, "Native require error:", error2), debug(ctx, "[fallback]", filename), source = transform3(ctx, { filename, source, ts: isTypescript, async: _nullishCoalesce(evalOptions.async, () => ( false)), jsx: ctx.opts.jsx });
4466
+ } catch (error) {
4467
+ debug(ctx, "Native require error:", error), debug(ctx, "[fallback]", filename), source = transform3(ctx, { filename, source, ts: isTypescript, async: _nullishCoalesce(evalOptions.async, () => ( false)), jsx: ctx.opts.jsx });
4468
4468
  }
4469
4469
  }
4470
4470
  const mod = new external_node_module_namespaceObject.Module(filename);
@@ -4478,17 +4478,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4478
4478
  }(source, { async: evalOptions.async });
4479
4479
  try {
4480
4480
  compiled = external_node_vm_default().runInThisContext(wrapped, { filename, lineOffset: 0, displayErrors: false });
4481
- } catch (error2) {
4482
- "SyntaxError" === error2.name && evalOptions.async && ctx.nativeImport ? (debug(ctx, "[esm]", "[import]", "[fallback]", filename), compiled = function(code, nativeImport2) {
4481
+ } catch (error) {
4482
+ "SyntaxError" === error.name && evalOptions.async && ctx.nativeImport ? (debug(ctx, "[esm]", "[import]", "[fallback]", filename), compiled = function(code, nativeImport2) {
4483
4483
  const uri = `data:text/javascript;base64,${Buffer.from(`export default ${code}`).toString("base64")}`;
4484
4484
  return (...args) => nativeImport2(uri).then((mod2) => mod2.default(...args));
4485
- }(wrapped, ctx.nativeImport)) : (ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error2));
4485
+ }(wrapped, ctx.nativeImport)) : (ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error));
4486
4486
  }
4487
4487
  let evalResult;
4488
4488
  try {
4489
4489
  evalResult = compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename), _jiti.import, _jiti.esmResolve);
4490
- } catch (error2) {
4491
- ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error2);
4490
+ } catch (error) {
4491
+ ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
4492
4492
  }
4493
4493
  function next() {
4494
4494
  if (mod.exports && mod.exports.__JITI_ERROR__) {
@@ -5166,12 +5166,12 @@ Did you specify these with the most recent transformation maps first?`);
5166
5166
  return { __proto__: null };
5167
5167
  }
5168
5168
  const AnyMap = function(map, mapUrl) {
5169
- const parsed = parse5(map);
5169
+ const parsed = parse4(map);
5170
5170
  if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
5171
5171
  const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
5172
5172
  return recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, 1 / 0, 1 / 0), presortedDecodedMap({ version: 3, file: parsed.file, names, sources, sourcesContent, mappings, ignoreList });
5173
5173
  };
5174
- function parse5(map) {
5174
+ function parse4(map) {
5175
5175
  return "string" == typeof map ? JSON.parse(map) : map;
5176
5176
  }
5177
5177
  function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
@@ -5187,7 +5187,7 @@ Did you specify these with the most recent transformation maps first?`);
5187
5187
  }
5188
5188
  }
5189
5189
  function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
5190
- const parsed = parse5(input);
5190
+ const parsed = parse4(input);
5191
5191
  if ("sections" in parsed) return recurse(...arguments);
5192
5192
  const map = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
5193
5193
  if (append(sources, resolvedSources), append(names, map.names), contents) append(sourcesContent, contents);
@@ -5597,13 +5597,13 @@ Did you specify these with the most recent transformation maps first?`);
5597
5597
  }, exports2.save = function(namespaces) {
5598
5598
  try {
5599
5599
  namespaces ? exports2.storage.setItem("debug", namespaces) : exports2.storage.removeItem("debug");
5600
- } catch (error2) {
5600
+ } catch (error) {
5601
5601
  }
5602
5602
  }, exports2.load = function() {
5603
5603
  let r;
5604
5604
  try {
5605
5605
  r = exports2.storage.getItem("debug");
5606
- } catch (error2) {
5606
+ } catch (error) {
5607
5607
  }
5608
5608
  !r && "undefined" != typeof process && "env" in process && (r = process.env.DEBUG);
5609
5609
  return r;
@@ -5615,7 +5615,7 @@ Did you specify these with the most recent transformation maps first?`);
5615
5615
  }, exports2.storage = function() {
5616
5616
  try {
5617
5617
  return localStorage;
5618
- } catch (error2) {
5618
+ } catch (error) {
5619
5619
  }
5620
5620
  }(), exports2.destroy = /* @__PURE__ */ (() => {
5621
5621
  let warned = false;
@@ -5628,8 +5628,8 @@ Did you specify these with the most recent transformation maps first?`);
5628
5628
  formatters.j = function(v) {
5629
5629
  try {
5630
5630
  return JSON.stringify(v);
5631
- } catch (error2) {
5632
- return "[UnexpectedJSONParseError]: " + error2.message;
5631
+ } catch (error) {
5632
+ return "[UnexpectedJSONParseError]: " + error.message;
5633
5633
  }
5634
5634
  };
5635
5635
  }, "./node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
@@ -5725,7 +5725,7 @@ Did you specify these with the most recent transformation maps first?`);
5725
5725
  try {
5726
5726
  const supportsColor = __webpack_require__2("./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js");
5727
5727
  supportsColor && (supportsColor.stderr || supportsColor).level >= 2 && (exports2.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221]);
5728
- } catch (error2) {
5728
+ } catch (error) {
5729
5729
  }
5730
5730
  exports2.inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
5731
5731
  const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
@@ -6054,7 +6054,7 @@ Did you specify these with the most recent transformation maps first?`);
6054
6054
  tok("CARET"), src[t.CARET] = "^" + src[t.LONECARET] + src[t.XRANGEPLAIN] + "$", tok("CARETLOOSE"), src[t.CARETLOOSE] = "^" + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + "$", tok("COMPARATORLOOSE"), src[t.COMPARATORLOOSE] = "^" + src[t.GTLT] + "\\s*(" + src[t.LOOSEPLAIN] + ")$|^$", tok("COMPARATOR"), src[t.COMPARATOR] = "^" + src[t.GTLT] + "\\s*(" + src[t.FULLPLAIN] + ")$|^$", tok("COMPARATORTRIM"), src[t.COMPARATORTRIM] = "(\\s*)" + src[t.GTLT] + "\\s*(" + src[t.LOOSEPLAIN] + "|" + src[t.XRANGEPLAIN] + ")", re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], "g"), safeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), "g");
6055
6055
  tok("HYPHENRANGE"), src[t.HYPHENRANGE] = "^\\s*(" + src[t.XRANGEPLAIN] + ")\\s+-\\s+(" + src[t.XRANGEPLAIN] + ")\\s*$", tok("HYPHENRANGELOOSE"), src[t.HYPHENRANGELOOSE] = "^\\s*(" + src[t.XRANGEPLAINLOOSE] + ")\\s+-\\s+(" + src[t.XRANGEPLAINLOOSE] + ")\\s*$", tok("STAR"), src[t.STAR] = "(<|>)?=?\\s*\\*";
6056
6056
  for (var i = 0; i < R; i++) debug(i, src[i]), re[i] || (re[i] = new RegExp(src[i]), safeRe[i] = new RegExp(makeSafeRe(src[i])));
6057
- function parse5(version2, options) {
6057
+ function parse4(version2, options) {
6058
6058
  if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) return version2;
6059
6059
  if ("string" != typeof version2) return null;
6060
6060
  if (version2.length > MAX_LENGTH) return null;
@@ -6086,11 +6086,11 @@ Did you specify these with the most recent transformation maps first?`);
6086
6086
  return id;
6087
6087
  }) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
6088
6088
  }
6089
- exports2.parse = parse5, exports2.valid = function(version2, options) {
6090
- var v = parse5(version2, options);
6089
+ exports2.parse = parse4, exports2.valid = function(version2, options) {
6090
+ var v = parse4(version2, options);
6091
6091
  return v ? v.version : null;
6092
6092
  }, exports2.clean = function(version2, options) {
6093
- var s = parse5(version2.trim().replace(/^[=v]+/, ""), options);
6093
+ var s = parse4(version2.trim().replace(/^[=v]+/, ""), options);
6094
6094
  return s ? s.version : null;
6095
6095
  }, exports2.SemVer = SemVer, SemVer.prototype.format = function() {
6096
6096
  return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
@@ -6166,7 +6166,7 @@ Did you specify these with the most recent transformation maps first?`);
6166
6166
  }
6167
6167
  }, exports2.diff = function(version1, version2) {
6168
6168
  if (eq(version1, version2)) return null;
6169
- var v1 = parse5(version1), v2 = parse5(version2), prefix = "";
6169
+ var v1 = parse4(version1), v2 = parse4(version2), prefix = "";
6170
6170
  if (v1.prerelease.length || v2.prerelease.length) {
6171
6171
  prefix = "pre";
6172
6172
  var defaultResult = "prerelease";
@@ -6480,7 +6480,7 @@ Did you specify these with the most recent transformation maps first?`);
6480
6480
  }, exports2.gtr = function(version2, range, options) {
6481
6481
  return outside(version2, range, ">", options);
6482
6482
  }, exports2.outside = outside, exports2.prerelease = function(version2, options) {
6483
- var parsed = parse5(version2, options);
6483
+ var parsed = parse4(version2, options);
6484
6484
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
6485
6485
  }, exports2.intersects = function(r1, r2, options) {
6486
6486
  return r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2);
@@ -6494,7 +6494,7 @@ Did you specify these with the most recent transformation maps first?`);
6494
6494
  safeRe[t.COERCERTL].lastIndex = -1;
6495
6495
  } else match = version2.match(safeRe[t.COERCE]);
6496
6496
  if (null === match) return null;
6497
- return parse5(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
6497
+ return parse4(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
6498
6498
  };
6499
6499
  }, "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
6500
6500
  "use strict";
@@ -7189,12 +7189,12 @@ from ${dirname2}`);
7189
7189
  handler = function(m, filename) {
7190
7190
  if (handler && filename.endsWith(ext2)) try {
7191
7191
  return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, { filename })).code, filename);
7192
- } catch (error2) {
7192
+ } catch (error) {
7193
7193
  if (!hasTsSupport) {
7194
7194
  const packageJson = __webpack_require__2("./node_modules/.pnpm/@babel+preset-typescript@7.26.0_@babel+core@7.26.0/node_modules/@babel/preset-typescript/package.json");
7195
7195
  _semver().lt(packageJson.version, "7.21.4") && console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.");
7196
7196
  }
7197
- throw error2;
7197
+ throw error;
7198
7198
  }
7199
7199
  return __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").extensions[".js"](m, filename);
7200
7200
  }, __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").extensions[ext2] = handler;
@@ -7298,8 +7298,8 @@ from ${dirname2}`);
7298
7298
  function getTSPreset(filepath) {
7299
7299
  try {
7300
7300
  return __webpack_require__2("./node_modules/.pnpm/@babel+preset-typescript@7.26.0_@babel+core@7.26.0/node_modules/@babel/preset-typescript/lib/index.js");
7301
- } catch (error2) {
7302
- if ("MODULE_NOT_FOUND" !== error2.code) throw error2;
7301
+ } catch (error) {
7302
+ if ("MODULE_NOT_FOUND" !== error.code) throw error;
7303
7303
  let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";
7304
7304
  throw process.versions.pnp && (message += `
7305
7305
  If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
@@ -7389,20 +7389,20 @@ packageExtensions:
7389
7389
  return name.replace(isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE, `babel-${type}-`).replace(isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE, `$1${type}-`).replace(isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE, `$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`).replace(EXACT_RE, "");
7390
7390
  }
7391
7391
  function* resolveAlternativesHelper(type, name) {
7392
- const standardizedName = standardizeName(type, name), { error: error2, value: value2 } = yield standardizedName;
7393
- if (!error2) return value2;
7394
- if ("MODULE_NOT_FOUND" !== error2.code) throw error2;
7395
- standardizedName === name || (yield name).error || (error2.message += `
7396
- - If you want to resolve "${name}", use "module:${name}"`), (yield standardizeName(type, "@babel/" + name)).error || (error2.message += `
7392
+ const standardizedName = standardizeName(type, name), { error, value: value2 } = yield standardizedName;
7393
+ if (!error) return value2;
7394
+ if ("MODULE_NOT_FOUND" !== error.code) throw error;
7395
+ standardizedName === name || (yield name).error || (error.message += `
7396
+ - If you want to resolve "${name}", use "module:${name}"`), (yield standardizeName(type, "@babel/" + name)).error || (error.message += `
7397
7397
  - Did you mean "@babel/${name}"?`);
7398
7398
  const oppositeType = "preset" === type ? "plugin" : "preset";
7399
- if ((yield standardizeName(oppositeType, name)).error || (error2.message += `
7399
+ if ((yield standardizeName(oppositeType, name)).error || (error.message += `
7400
7400
  - Did you accidentally pass a ${oppositeType} as a ${type}?`), "plugin" === type) {
7401
7401
  const transformName = standardizedName.replace("-proposal-", "-transform-");
7402
- transformName === standardizedName || (yield transformName).error || (error2.message += `
7402
+ transformName === standardizedName || (yield transformName).error || (error.message += `
7403
7403
  - Did you mean "${transformName}"?`);
7404
7404
  }
7405
- throw error2.message += "\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n", error2;
7405
+ throw error.message += "\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n", error;
7406
7406
  }
7407
7407
  function tryRequireResolve(id, dirname2) {
7408
7408
  try {
@@ -7411,16 +7411,16 @@ packageExtensions:
7411
7411
  if (f) return f;
7412
7412
  throw f = new Error(`Cannot resolve module '${r}'`), f.code = "MODULE_NOT_FOUND", f;
7413
7413
  })(id, { paths: [dirname2] }) } : { error: null, value: __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve(id) };
7414
- } catch (error2) {
7415
- return { error: error2, value: null };
7414
+ } catch (error) {
7415
+ return { error, value: null };
7416
7416
  }
7417
7417
  var v, w;
7418
7418
  }
7419
7419
  function tryImportMetaResolve(id, options) {
7420
7420
  try {
7421
7421
  return { error: null, value: (0, _importMetaResolve.resolve)(id, options) };
7422
- } catch (error2) {
7423
- return { error: error2, value: null };
7422
+ } catch (error) {
7423
+ return { error, value: null };
7424
7424
  }
7425
7425
  }
7426
7426
  function resolveStandardizedNameForRequire(type, name, dirname2) {
@@ -7588,9 +7588,9 @@ packageExtensions:
7588
7588
  if (!item || "object" != typeof item) throw new Error("Plugin/Preset did not return an object.");
7589
7589
  if ((0, _async.isThenable)(item)) throw yield* [], new Error(`You appear to be using a promise as a plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version. As an alternative, you can prefix the promise with "await". (While processing: ${JSON.stringify(alias)})`);
7590
7590
  if (externalDependencies.length > 0 && (!cache.configured() || "forever" === cache.mode())) {
7591
- let error2 = `A plugin/preset has external untracked dependencies (${externalDependencies[0]}), but the cache `;
7592
- throw cache.configured() ? error2 += " has been configured to never be invalidated. " : error2 += "has not been configured to be invalidated when the external dependencies change. ", error2 += `Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`
7593
- (While processing: ${JSON.stringify(alias)})`, new Error(error2);
7591
+ let error = `A plugin/preset has external untracked dependencies (${externalDependencies[0]}), but the cache `;
7592
+ throw cache.configured() ? error += " has been configured to never be invalidated. " : error += "has not been configured to be invalidated when the external dependencies change. ", error += `Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`
7593
+ (While processing: ${JSON.stringify(alias)})`, new Error(error);
7594
7594
  }
7595
7595
  return { value: item, options, dirname: dirname2, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
7596
7596
  }), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname2, alias, externalDependencies }, cache) {
@@ -8120,9 +8120,9 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
8120
8120
  }, exports2.validate = function(type, opts, filename) {
8121
8121
  try {
8122
8122
  return validateNested({ type: "root", source: type }, opts);
8123
- } catch (error2) {
8124
- const configError = new _configError.default(error2.message, filename);
8125
- throw error2.code && (configError.code = error2.code), configError;
8123
+ } catch (error) {
8124
+ const configError = new _configError.default(error.message, filename);
8125
+ throw error.code && (configError.code = error.code), configError;
8126
8126
  }
8127
8127
  };
8128
8128
  var _removed = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/validation/removed.js"), _optionAssertions = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/validation/option-assertions.js"), _configError = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/errors/config-error.js");
@@ -8228,13 +8228,13 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
8228
8228
  return SUPPORTED ? Object.defineProperty(function(...args) {
8229
8229
  return fn(...args);
8230
8230
  }, "name", { value: START_HIDING }) : fn;
8231
- }, exports2.expectedError = function(error2) {
8231
+ }, exports2.expectedError = function(error) {
8232
8232
  if (!SUPPORTED) return;
8233
- return expectedErrors.add(error2), error2;
8234
- }, exports2.injectVirtualStackFrame = function(error2, filename) {
8233
+ return expectedErrors.add(error), error;
8234
+ }, exports2.injectVirtualStackFrame = function(error, filename) {
8235
8235
  if (!SUPPORTED) return;
8236
- let frames = virtualFrames.get(error2);
8237
- frames || virtualFrames.set(error2, frames = []);
8236
+ let frames = virtualFrames.get(error);
8237
+ frames || virtualFrames.set(error, frames = []);
8238
8238
  return frames.push(/* @__PURE__ */ function(filename2) {
8239
8239
  return /* @__PURE__ */ Object.create({ isNative: () => false, isConstructor: () => false, isToplevel: () => true, getFileName: () => filename2, getLineNumber: () => {
8240
8240
  }, getColumnNumber: () => {
@@ -8242,7 +8242,7 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
8242
8242
  }, getMethodName: () => {
8243
8243
  }, getTypeName: () => {
8244
8244
  }, toString: () => filename2 });
8245
- }(filename)), error2;
8245
+ }(filename)), error;
8246
8246
  };
8247
8247
  const ErrorToString = Function.call.bind(Error.prototype.toString), SUPPORTED = !!Error.captureStackTrace && true === (null == (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit")) ? void 0 : _Object$getOwnPropert.writable), START_HIDING = "startHiding - secret - don't use this - v1", STOP_HIDING = "stopHiding - secret - don't use this - v1", expectedErrors = /* @__PURE__ */ new WeakSet(), virtualFrames = /* @__PURE__ */ new WeakMap();
8248
8248
  function setupPrepareStackTrace() {
@@ -8372,13 +8372,13 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
8372
8372
  });
8373
8373
  try {
8374
8374
  result = { ok: true, value: yield* fn() }, resultP = null, promiseReferenced && resolve3(result.value);
8375
- } catch (error2) {
8376
- result = { ok: false, value: error2 }, resultP = null, promiseReferenced && reject(error2);
8375
+ } catch (error) {
8376
+ result = { ok: false, value: error }, resultP = null, promiseReferenced && reject(error);
8377
8377
  }
8378
8378
  } else try {
8379
8379
  result = { ok: true, value: yield* fn() };
8380
- } catch (error2) {
8381
- result = { ok: false, value: error2 };
8380
+ } catch (error) {
8381
+ result = { ok: false, value: error };
8382
8382
  }
8383
8383
  }
8384
8384
  if (result.ok) return result.value;
@@ -9256,10 +9256,10 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
9256
9256
  }(context.conditions), url = moduleResolve(specifier2, new (_url2()).URL(parentURL), conditions, false);
9257
9257
  return { url: url.href, format: defaultGetFormatWithoutErrors(url, { parentURL }) };
9258
9258
  }(specifier, { parentURL: parent }).url;
9259
- } catch (error2) {
9260
- const exception = error2;
9259
+ } catch (error) {
9260
+ const exception = error;
9261
9261
  if (("ERR_UNSUPPORTED_DIR_IMPORT" === exception.code || "ERR_MODULE_NOT_FOUND" === exception.code) && "string" == typeof exception.url) return exception.url;
9262
- throw error2;
9262
+ throw error;
9263
9263
  }
9264
9264
  };
9265
9265
  const own$1 = {}.hasOwnProperty, classRegExp = /^([A-Z][a-z\d]*)+$/, kTypes = /* @__PURE__ */ new Set(["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"]), codes = {};
@@ -9274,7 +9274,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
9274
9274
  function NodeError(...parameters) {
9275
9275
  const limit = Error.stackTraceLimit;
9276
9276
  isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = 0);
9277
- const error2 = new Base();
9277
+ const error = new Base();
9278
9278
  isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = limit);
9279
9279
  const message = function(key2, parameters2, self) {
9280
9280
  const message2 = messages.get(key2);
@@ -9283,10 +9283,10 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
9283
9283
  let expectedLength = 0;
9284
9284
  for (; null !== regex.exec(message2); ) expectedLength++;
9285
9285
  return _assert()(expectedLength === parameters2.length, `Code: ${key2}; The provided arguments length (${parameters2.length}) does not match the required ones (${expectedLength}).`), 0 === parameters2.length ? message2 : (parameters2.unshift(message2), Reflect.apply(_util().format, null, parameters2));
9286
- }(key, parameters, error2);
9287
- return Object.defineProperties(error2, { message: { value: message, enumerable: false, writable: true, configurable: true }, toString: { value() {
9286
+ }(key, parameters, error);
9287
+ return Object.defineProperties(error, { message: { value: message, enumerable: false, writable: true, configurable: true }, toString: { value() {
9288
9288
  return `${this.name} [${key}]: ${this.message}`;
9289
- }, enumerable: false, writable: true, configurable: true } }), captureLargerStackTrace(error2), error2.code = key, error2;
9289
+ }, enumerable: false, writable: true, configurable: true } }), captureLargerStackTrace(error), error.code = key, error;
9290
9290
  }
9291
9291
  }(constructor, sym);
9292
9292
  }
@@ -9332,9 +9332,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
9332
9332
  const captureLargerStackTrace = function(wrappedFunction) {
9333
9333
  const hidden = "__node_internal_" + wrappedFunction.name;
9334
9334
  return Object.defineProperty(wrappedFunction, "name", { value: hidden }), wrappedFunction;
9335
- }(function(error2) {
9335
+ }(function(error) {
9336
9336
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
9337
- return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error2), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error2;
9337
+ return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error;
9338
9338
  });
9339
9339
  const hasOwnProperty$1 = {}.hasOwnProperty, { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes, cache = /* @__PURE__ */ new Map();
9340
9340
  function read2(jsonPath, { base, specifier }) {
@@ -9343,8 +9343,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
9343
9343
  let string3;
9344
9344
  try {
9345
9345
  string3 = _fs().default.readFileSync(_path().toNamespacedPath(jsonPath), "utf8");
9346
- } catch (error2) {
9347
- const exception = error2;
9346
+ } catch (error) {
9347
+ const exception = error;
9348
9348
  if ("ENOENT" !== exception.code) throw exception;
9349
9349
  }
9350
9350
  const result = { exists: false, pjsonPath: jsonPath, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
@@ -9353,8 +9353,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
9353
9353
  try {
9354
9354
  parsed = JSON.parse(string3);
9355
9355
  } catch (error_) {
9356
- const cause = error_, error2 = new ERR_INVALID_PACKAGE_CONFIG$1(jsonPath, (base ? `"${specifier}" from ` : "") + (0, _url2().fileURLToPath)(base || specifier), cause.message);
9357
- throw error2.cause = cause, error2;
9356
+ const cause = error_, error = new ERR_INVALID_PACKAGE_CONFIG$1(jsonPath, (base ? `"${specifier}" from ` : "") + (0, _url2().fileURLToPath)(base || specifier), cause.message);
9357
+ throw error.cause = cause, error;
9358
9358
  }
9359
9359
  result.exists = true, hasOwnProperty$1.call(parsed, "name") && "string" == typeof parsed.name && (result.name = parsed.name), hasOwnProperty$1.call(parsed, "main") && "string" == typeof parsed.main && (result.main = parsed.main), hasOwnProperty$1.call(parsed, "exports") && (result.exports = parsed.exports), hasOwnProperty$1.call(parsed, "imports") && (result.imports = parsed.imports), !hasOwnProperty$1.call(parsed, "type") || "commonjs" !== parsed.type && "module" !== parsed.type || (result.type = parsed.type);
9360
9360
  }
@@ -9510,9 +9510,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9510
9510
  let resolveResult;
9511
9511
  try {
9512
9512
  resolveResult = resolvePackageTarget(packageJsonUrl, targetItem, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions);
9513
- } catch (error2) {
9514
- if (lastException = error2, "ERR_INVALID_PACKAGE_TARGET" === error2.code) continue;
9515
- throw error2;
9513
+ } catch (error) {
9514
+ if (lastException = error, "ERR_INVALID_PACKAGE_TARGET" === error.code) continue;
9515
+ throw error;
9516
9516
  }
9517
9517
  if (void 0 !== resolveResult) {
9518
9518
  if (null !== resolveResult) return resolveResult;
@@ -9659,16 +9659,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9659
9659
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) try {
9660
9660
  resolved = new (_url2()).URL(specifier, base);
9661
9661
  } catch (error_) {
9662
- const error2 = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
9663
- throw error2.cause = error_, error2;
9662
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
9663
+ throw error.cause = error_, error;
9664
9664
  }
9665
9665
  else if ("file:" === protocol && "#" === specifier[0]) resolved = packageImportsResolve(specifier, base, conditions);
9666
9666
  else try {
9667
9667
  resolved = new (_url2()).URL(specifier);
9668
9668
  } catch (error_) {
9669
9669
  if (isRemote && !_module().builtinModules.includes(specifier)) {
9670
- const error2 = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
9671
- throw error2.cause = error_, error2;
9670
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
9671
+ throw error.cause = error_, error;
9672
9672
  }
9673
9673
  resolved = packageResolve(specifier, base, conditions);
9674
9674
  }
@@ -9677,18 +9677,18 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9677
9677
  let filePath;
9678
9678
  try {
9679
9679
  filePath = (0, _url2().fileURLToPath)(resolved2);
9680
- } catch (error2) {
9681
- const cause = error2;
9680
+ } catch (error) {
9681
+ const cause = error;
9682
9682
  throw Object.defineProperty(cause, "input", { value: String(resolved2) }), Object.defineProperty(cause, "module", { value: String(base2) }), cause;
9683
9683
  }
9684
9684
  const stats = tryStatSync(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
9685
9685
  if (stats && stats.isDirectory()) {
9686
- const error2 = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, _url2().fileURLToPath)(base2));
9687
- throw error2.url = String(resolved2), error2;
9686
+ const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, _url2().fileURLToPath)(base2));
9687
+ throw error.url = String(resolved2), error;
9688
9688
  }
9689
9689
  if (!stats || !stats.isFile()) {
9690
- const error2 = new ERR_MODULE_NOT_FOUND(filePath || resolved2.pathname, base2 && (0, _url2().fileURLToPath)(base2), true);
9691
- throw error2.url = String(resolved2), error2;
9690
+ const error = new ERR_MODULE_NOT_FOUND(filePath || resolved2.pathname, base2 && (0, _url2().fileURLToPath)(base2), true);
9691
+ throw error.url = String(resolved2), error;
9692
9692
  }
9693
9693
  if (!preserveSymlinks2) {
9694
9694
  const real = (0, _fs().realpathSync)(filePath), { search, hash } = resolved2;
@@ -14562,17 +14562,17 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
14562
14562
  oldReasonCodes[reasonCode] && (reasonCode = oldReasonCodes[reasonCode]);
14563
14563
  }
14564
14564
  return function constructor(loc, details) {
14565
- const error2 = new SyntaxError();
14566
- return error2.code = code2, error2.reasonCode = reasonCode, error2.loc = loc, error2.pos = loc.index, error2.syntaxPlugin = syntaxPlugin, hasMissingPlugin && (error2.missingPlugin = details.missingPlugin), defineHidden(error2, "clone", function(overrides = {}) {
14565
+ const error = new SyntaxError();
14566
+ return error.code = code2, error.reasonCode = reasonCode, error.loc = loc, error.pos = loc.index, error.syntaxPlugin = syntaxPlugin, hasMissingPlugin && (error.missingPlugin = details.missingPlugin), defineHidden(error, "clone", function(overrides = {}) {
14567
14567
  var _overrides$loc;
14568
14568
  const { line, column, index } = null != (_overrides$loc = overrides.loc) ? _overrides$loc : loc;
14569
14569
  return constructor(new Position(line, column, index), Object.assign({}, details, overrides.details));
14570
- }), defineHidden(error2, "details", details), Object.defineProperty(error2, "message", { configurable: true, get() {
14570
+ }), defineHidden(error, "details", details), Object.defineProperty(error, "message", { configurable: true, get() {
14571
14571
  const message = `${toMessage(details)} (${loc.line}:${loc.column})`;
14572
14572
  return this.message = message, message;
14573
14573
  }, set(value2) {
14574
14574
  Object.defineProperty(this, "message", { value: value2, writable: true });
14575
- } }), error2;
14575
+ } }), error;
14576
14576
  };
14577
14577
  }
14578
14578
  function ParseErrorEnum(argument, syntaxPlugin) {
@@ -15667,16 +15667,16 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
15667
15667
  tokenIsKeyword(type) && this.state.containsEsc && this.raise(Errors.InvalidEscapedReservedWord, this.state.startLoc, { reservedWord: tokenLabelName(type) });
15668
15668
  }
15669
15669
  raise(toParseError, at, details = {}) {
15670
- const error2 = toParseError(at instanceof Position ? at : at.loc.start, details);
15671
- if (!this.options.errorRecovery) throw error2;
15672
- return this.isLookahead || this.state.errors.push(error2), error2;
15670
+ const error = toParseError(at instanceof Position ? at : at.loc.start, details);
15671
+ if (!this.options.errorRecovery) throw error;
15672
+ return this.isLookahead || this.state.errors.push(error), error;
15673
15673
  }
15674
15674
  raiseOverwrite(toParseError, at, details = {}) {
15675
15675
  const loc = at instanceof Position ? at : at.loc.start, pos = loc.index, errors = this.state.errors;
15676
15676
  for (let i = errors.length - 1; i >= 0; i--) {
15677
- const error2 = errors[i];
15678
- if (error2.loc.index === pos) return errors[i] = toParseError(loc, details);
15679
- if (error2.loc.index < pos) break;
15677
+ const error = errors[i];
15678
+ if (error.loc.index === pos) return errors[i] = toParseError(loc, details);
15679
+ if (error.loc.index < pos) break;
15680
15680
  }
15681
15681
  return this.raise(toParseError, at, details);
15682
15682
  }
@@ -15692,9 +15692,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
15692
15692
  expectOnePlugin(pluginNames) {
15693
15693
  if (!pluginNames.some((name) => this.hasPlugin(name))) throw this.raise(Errors.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: pluginNames });
15694
15694
  }
15695
- errorBuilder(error2) {
15695
+ errorBuilder(error) {
15696
15696
  return (pos, lineStart, curLine) => {
15697
- this.raise(error2, buildPosition(pos, lineStart, curLine));
15697
+ this.raise(error, buildPosition(pos, lineStart, curLine));
15698
15698
  };
15699
15699
  }
15700
15700
  }
@@ -15779,12 +15779,12 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
15779
15779
  }
15780
15780
  this.parser.raise(toParseError, origin);
15781
15781
  }
15782
- recordArrowParameterBindingError(error2, node) {
15782
+ recordArrowParameterBindingError(error, node) {
15783
15783
  const { stack } = this, scope = stack[stack.length - 1], origin = node.loc.start;
15784
- if (scope.isCertainlyParameterDeclaration()) this.parser.raise(error2, origin);
15784
+ if (scope.isCertainlyParameterDeclaration()) this.parser.raise(error, origin);
15785
15785
  else {
15786
15786
  if (!scope.canBeArrowParameterDeclaration()) return;
15787
- scope.recordDeclarationError(error2, origin);
15787
+ scope.recordDeclarationError(error, origin);
15788
15788
  }
15789
15789
  }
15790
15790
  recordAsyncArrowParametersError(at) {
@@ -15892,11 +15892,11 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
15892
15892
  return this.state = oldState, this.state.tokensLength = failState.tokensLength, { node, error: failState.errors[oldState.errors.length], thrown: false, aborted: false, failState };
15893
15893
  }
15894
15894
  return { node, error: null, thrown: false, aborted: false, failState: null };
15895
- } catch (error2) {
15895
+ } catch (error) {
15896
15896
  const failState = this.state;
15897
- if (this.state = oldState, error2 instanceof SyntaxError) return { node: null, error: error2, thrown: true, aborted: false, failState };
15898
- if (error2 === abortSignal) return { node: abortSignal.node, error: null, thrown: false, aborted: true, failState };
15899
- throw error2;
15897
+ if (this.state = oldState, error instanceof SyntaxError) return { node: null, error, thrown: true, aborted: false, failState };
15898
+ if (error === abortSignal) return { node: abortSignal.node, error: null, thrown: false, aborted: true, failState };
15899
+ throw error;
15900
15900
  }
15901
15901
  }
15902
15902
  checkExpressionErrors(refExpressionErrors, andThrow) {
@@ -17223,9 +17223,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
17223
17223
  var _node$extra;
17224
17224
  this.toAssignableList(node.params, null == (_node$extra = node.extra) ? void 0 : _node$extra.trailingCommaLoc, false), this.scope.enter(6), super.checkParams(node, false, true), this.scope.exit();
17225
17225
  }
17226
- forwardNoArrowParamsConversionAt(node, parse5) {
17226
+ forwardNoArrowParamsConversionAt(node, parse4) {
17227
17227
  let result;
17228
- return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result = parse5(), this.state.noArrowParamsConversionAt.pop()) : result = parse5(), result;
17228
+ return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result = parse4(), this.state.noArrowParamsConversionAt.pop()) : result = parse4(), result;
17229
17229
  }
17230
17230
  parseParenItem(node, startLoc) {
17231
17231
  const newNode = super.parseParenItem(node, startLoc);
@@ -20894,8 +20894,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20894
20894
  }
20895
20895
  }
20896
20896
  if (pluginsMap2.has("asyncDoExpressions") && !pluginsMap2.has("doExpressions")) {
20897
- const error2 = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
20898
- throw error2.missingPlugins = "doExpressions", error2;
20897
+ const error = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
20898
+ throw error.missingPlugins = "doExpressions", error;
20899
20899
  }
20900
20900
  if (pluginsMap2.has("optionalChainingAssign") && "2023-07" !== pluginsMap2.get("optionalChainingAssign").version) throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");
20901
20901
  }(pluginsMap), cls = function(pluginsMap2) {
@@ -22081,8 +22081,8 @@ Please consider using \`${suggestion}\`${extra}, or add @babel/plugin-transform-
22081
22081
  let rootStack = "";
22082
22082
  try {
22083
22083
  throw new Error();
22084
- } catch (error2) {
22085
- error2.stack && (rootStack = error2.stack.split("\n").slice(3).join("\n"));
22084
+ } catch (error) {
22085
+ error.stack && (rootStack = error.stack.split("\n").slice(3).join("\n"));
22086
22086
  }
22087
22087
  return (arg) => {
22088
22088
  try {
@@ -27292,11 +27292,11 @@ ${str}
27292
27292
  exports2.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon, defineType("ClassMethod", { aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"], builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"], fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), { body: { validate: (0, _utils.assertNodeType)("BlockStatement") } }) }), defineType("ObjectPattern", { visitor: ["properties", "typeAnnotation", "decorators"], builder: ["properties"], aliases: ["Pattern", "PatternLike", "LVal"], fields: Object.assign({}, patternLikeCommon(), { properties: (0, _utils.validateArrayOfType)("RestElement", "ObjectProperty") }) }), defineType("SpreadElement", { visitor: ["argument"], aliases: ["UnaryLike"], deprecatedAlias: "SpreadProperty", fields: { argument: { validate: (0, _utils.assertNodeType)("Expression") } } }), defineType("Super", { aliases: ["Expression"] }), defineType("TaggedTemplateExpression", { visitor: ["tag", "typeParameters", "quasi"], builder: ["tag", "quasi"], aliases: ["Expression"], fields: { tag: { validate: (0, _utils.assertNodeType)("Expression") }, quasi: { validate: (0, _utils.assertNodeType)("TemplateLiteral") }, typeParameters: { validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: true } } }), defineType("TemplateElement", { builder: ["value", "tail"], fields: { value: { validate: (0, _utils.chain)((0, _utils.assertShape)({ raw: { validate: (0, _utils.assertValueType)("string") }, cooked: { validate: (0, _utils.assertValueType)("string"), optional: true } }), function(node) {
27293
27293
  const raw = node.value.raw;
27294
27294
  let unterminatedCalled = false;
27295
- const error2 = () => {
27295
+ const error = () => {
27296
27296
  throw new Error("Internal @babel/types error.");
27297
27297
  }, { str, firstInvalidLoc } = (0, _helperStringParser.readStringContents)("template", raw, 0, 0, 0, { unterminated() {
27298
27298
  unterminatedCalled = true;
27299
- }, strictNumericEscape: error2, invalidEscapeSequence: error2, numericSeparatorInEscapeSequence: error2, unexpectedNumericSeparator: error2, invalidDigit: error2, invalidCodePoint: error2 });
27299
+ }, strictNumericEscape: error, invalidEscapeSequence: error, numericSeparatorInEscapeSequence: error, unexpectedNumericSeparator: error, invalidDigit: error, invalidCodePoint: error });
27300
27300
  if (!unterminatedCalled) throw new Error("Invalid raw");
27301
27301
  node.value.cooked = firstInvalidLoc ? null : str;
27302
27302
  }) }, tail: { default: false } } }), defineType("TemplateLiteral", { visitor: ["quasis", "expressions"], aliases: ["Expression", "Literal"], fields: { quasis: (0, _utils.validateArrayOfType)("TemplateElement"), expressions: { validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "TSType")), function(node, key, val) {
@@ -27448,12 +27448,12 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
27448
27448
  const errors = [];
27449
27449
  for (const property of Object.keys(shape)) try {
27450
27450
  (0, _validate.validateField)(node, property, val[property], shape[property]);
27451
- } catch (error2) {
27452
- if (error2 instanceof TypeError) {
27453
- errors.push(error2.message);
27451
+ } catch (error) {
27452
+ if (error instanceof TypeError) {
27453
+ errors.push(error.message);
27454
27454
  continue;
27455
27455
  }
27456
- throw error2;
27456
+ throw error;
27457
27457
  }
27458
27458
  if (errors.length) throw new TypeError(`Property ${key} of ${node.type} expected to have the following:
27459
27459
  ${errors.join("\n")}`);
@@ -32701,7 +32701,7 @@ ${trace}`);
32701
32701
  function NodeError(...parameters) {
32702
32702
  const limit = Error.stackTraceLimit;
32703
32703
  isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = 0);
32704
- const error2 = new Base();
32704
+ const error = new Base();
32705
32705
  isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = limit);
32706
32706
  const message = function(key2, parameters2, self) {
32707
32707
  const message2 = messages.get(key2);
@@ -32710,10 +32710,10 @@ ${trace}`);
32710
32710
  let expectedLength = 0;
32711
32711
  for (; null !== regex.exec(message2); ) expectedLength++;
32712
32712
  return external_node_assert_namespaceObject(expectedLength === parameters2.length, `Code: ${key2}; The provided arguments length (${parameters2.length}) does not match the required ones (${expectedLength}).`), 0 === parameters2.length ? message2 : (parameters2.unshift(message2), Reflect.apply(external_node_util_namespaceObject.format, null, parameters2));
32713
- }(key, parameters, error2);
32714
- return Object.defineProperties(error2, { message: { value: message, enumerable: false, writable: true, configurable: true }, toString: { value() {
32713
+ }(key, parameters, error);
32714
+ return Object.defineProperties(error, { message: { value: message, enumerable: false, writable: true, configurable: true }, toString: { value() {
32715
32715
  return `${this.name} [${key}]: ${this.message}`;
32716
- }, enumerable: false, writable: true, configurable: true } }), captureLargerStackTrace(error2), error2.code = key, error2;
32716
+ }, enumerable: false, writable: true, configurable: true } }), captureLargerStackTrace(error), error.code = key, error;
32717
32717
  }
32718
32718
  }(constructor, sym);
32719
32719
  }
@@ -32759,9 +32759,9 @@ ${trace}`);
32759
32759
  const captureLargerStackTrace = function(wrappedFunction) {
32760
32760
  const hidden = "__node_internal_" + wrappedFunction.name;
32761
32761
  return Object.defineProperty(wrappedFunction, "name", { value: hidden }), wrappedFunction;
32762
- }(function(error2) {
32762
+ }(function(error) {
32763
32763
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
32764
- return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error2), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error2;
32764
+ return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error;
32765
32765
  });
32766
32766
  const { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
32767
32767
  /* @__PURE__ */ new Map();
@@ -32911,8 +32911,8 @@ ${trace}`);
32911
32911
  opts.jsx && _opts.plugins.push([plugin_syntax_jsx_lib.default], [plugin_transform_react_jsx_lib.A, Object.assign({}, opts.jsx)]), opts.ts && (_opts.plugins.push([plugin_transform_typescript_lib.default, { allowDeclareFields: true, isTSX: opts.jsx && /\.[cm]?tsx$/.test(opts.filename || "") }]), _opts.plugins.unshift([babel_plugin_transform_typescript_metadata], [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) && _optionalChain([_opts, 'access', _75 => _75.plugins, 'optionalAccess', _76 => _76.push, 'call', _77 => _77(...opts.babel.plugins)]);
32912
32912
  try {
32913
32913
  return { code: _optionalChain([(0, lib.transformSync), 'call', _78 => _78(opts.source, _opts), 'optionalAccess', _79 => _79.code]) || "" };
32914
- } catch (error2) {
32915
- return { error: error2, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line: _optionalChain([error2, 'access', _80 => _80.loc, 'optionalAccess', _81 => _81.line]) || 0, column: _optionalChain([error2, 'access', _82 => _82.loc, 'optionalAccess', _83 => _83.column]) || 0, code: _optionalChain([error2, 'access', _84 => _84.code, 'optionalAccess', _85 => _85.replace, 'call', _86 => _86("BABEL_", ""), 'access', _87 => _87.replace, 'call', _88 => _88("PARSE_ERROR", "ParseError")]), message: _optionalChain([error2, 'access', _89 => _89.message, 'optionalAccess', _90 => _90.replace, 'call', _91 => _91("/: ", ""), 'access', _92 => _92.replace, 'call', _93 => _93(/\(.+\)\s*$/, "")]) }) };
32914
+ } catch (error) {
32915
+ return { error, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line: _optionalChain([error, 'access', _80 => _80.loc, 'optionalAccess', _81 => _81.line]) || 0, column: _optionalChain([error, 'access', _82 => _82.loc, 'optionalAccess', _83 => _83.column]) || 0, code: _optionalChain([error, 'access', _84 => _84.code, 'optionalAccess', _85 => _85.replace, 'call', _86 => _86("BABEL_", ""), 'access', _87 => _87.replace, 'call', _88 => _88("PARSE_ERROR", "ParseError")]), message: _optionalChain([error, 'access', _89 => _89.message, 'optionalAccess', _90 => _90.replace, 'call', _91 => _91("/: ", ""), 'access', _92 => _92.replace, 'call', _93 => _93(/\(.+\)\s*$/, "")]) }) };
32916
32916
  }
32917
32917
  }
32918
32918
  })(), module.exports = __webpack_exports__.default;
@@ -32999,7 +32999,7 @@ var require_main = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
32999
32999
  var packageJson = require_package();
33000
33000
  var version2 = packageJson.version;
33001
33001
  var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
33002
- function parse5(src) {
33002
+ function parse4(src) {
33003
33003
  const obj = {};
33004
33004
  let lines = src.toString();
33005
33005
  lines = lines.replace(/\r\n?/mg, "\n");
@@ -33037,9 +33037,9 @@ var require_main = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
33037
33037
  const attrs = _instructions(result, key);
33038
33038
  decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
33039
33039
  break;
33040
- } catch (error2) {
33040
+ } catch (error) {
33041
33041
  if (i + 1 >= length) {
33042
- throw error2;
33042
+ throw error;
33043
33043
  }
33044
33044
  }
33045
33045
  }
@@ -33067,13 +33067,13 @@ var require_main = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
33067
33067
  let uri;
33068
33068
  try {
33069
33069
  uri = new URL(dotenvKey);
33070
- } catch (error2) {
33071
- if (error2.code === "ERR_INVALID_URL") {
33070
+ } catch (error) {
33071
+ if (error.code === "ERR_INVALID_URL") {
33072
33072
  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");
33073
33073
  err.code = "INVALID_DOTENV_KEY";
33074
33074
  throw err;
33075
33075
  }
33076
- throw error2;
33076
+ throw error;
33077
33077
  }
33078
33078
  const key = uri.password;
33079
33079
  if (!key) {
@@ -33217,10 +33217,10 @@ var require_main = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
33217
33217
  const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
33218
33218
  aesgcm.setAuthTag(authTag);
33219
33219
  return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
33220
- } catch (error2) {
33221
- const isRange = error2 instanceof RangeError;
33222
- const invalidKeyLength = error2.message === "Invalid key length";
33223
- const decryptionFailed = error2.message === "Unsupported state or unable to authenticate data";
33220
+ } catch (error) {
33221
+ const isRange = error instanceof RangeError;
33222
+ const invalidKeyLength = error.message === "Invalid key length";
33223
+ const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
33224
33224
  if (isRange || invalidKeyLength) {
33225
33225
  const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
33226
33226
  err.code = "INVALID_DOTENV_KEY";
@@ -33230,7 +33230,7 @@ var require_main = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
33230
33230
  err.code = "DECRYPTION_FAILED";
33231
33231
  throw err;
33232
33232
  } else {
33233
- throw error2;
33233
+ throw error;
33234
33234
  }
33235
33235
  }
33236
33236
  }
@@ -33265,7 +33265,7 @@ var require_main = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
33265
33265
  _parseVault,
33266
33266
  config: config2,
33267
33267
  decrypt,
33268
- parse: parse5,
33268
+ parse: parse4,
33269
33269
  populate
33270
33270
  };
33271
33271
  module.exports.configDotenv = DotenvModule.configDotenv;
@@ -33342,20 +33342,14 @@ _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33342
33342
  // ../config/src/schema.ts
33343
33343
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33344
33344
 
33345
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/index.js
33345
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/index.js
33346
33346
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33347
33347
 
33348
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/index.js
33349
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33350
-
33351
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/external.js
33352
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33353
-
33354
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/index.js
33355
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33356
-
33357
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/core.js
33348
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/core.js
33358
33349
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33350
+ var NEVER = Object.freeze({
33351
+ status: "aborted"
33352
+ });
33359
33353
  // @__NO_SIDE_EFFECTS__
33360
33354
  function $constructor(name, initializer3, params) {
33361
33355
  function init(inst, def) {
@@ -33412,13 +33406,13 @@ function config(newConfig) {
33412
33406
  return globalConfig;
33413
33407
  }
33414
33408
 
33415
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/parse.js
33409
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/parse.js
33416
33410
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33417
33411
 
33418
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/errors.js
33412
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/errors.js
33419
33413
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33420
33414
 
33421
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/util.js
33415
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/util.js
33422
33416
  var util_exports = {};
33423
33417
  _chunkIG6EXAQUcjs.__export.call(void 0, util_exports, {
33424
33418
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -33784,6 +33778,9 @@ function omit(schema, mask) {
33784
33778
  });
33785
33779
  }
33786
33780
  function extend(schema, shape) {
33781
+ if (!isPlainObject(shape)) {
33782
+ throw new Error("Invalid input to extend: expected a plain object");
33783
+ }
33787
33784
  const def = {
33788
33785
  ...schema._zod.def,
33789
33786
  get shape() {
@@ -33870,7 +33867,7 @@ function required(Class2, schema, mask) {
33870
33867
  }
33871
33868
  function aborted(x, startIndex = 0) {
33872
33869
  for (let i = startIndex; i < x.issues.length; i++) {
33873
- if (x.issues[i].continue !== true)
33870
+ if (_optionalChain([x, 'access', _108 => _108.issues, 'access', _109 => _109[i], 'optionalAccess', _110 => _110.continue]) !== true)
33874
33871
  return true;
33875
33872
  }
33876
33873
  return false;
@@ -33884,17 +33881,17 @@ function prefixIssues(path, issues) {
33884
33881
  });
33885
33882
  }
33886
33883
  function unwrapMessage(message) {
33887
- return typeof message === "string" ? message : _optionalChain([message, 'optionalAccess', _108 => _108.message]);
33884
+ return typeof message === "string" ? message : _optionalChain([message, 'optionalAccess', _111 => _111.message]);
33888
33885
  }
33889
33886
  function finalizeIssue(iss, ctx, config2) {
33890
33887
  const full = { ...iss, path: _nullishCoalesce(iss.path, () => ( [])) };
33891
33888
  if (!iss.message) {
33892
- const message = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(unwrapMessage(_optionalChain([iss, 'access', _109 => _109.inst, 'optionalAccess', _110 => _110._zod, 'access', _111 => _111.def, 'optionalAccess', _112 => _112.error, 'optionalCall', _113 => _113(iss)])), () => ( unwrapMessage(_optionalChain([ctx, 'optionalAccess', _114 => _114.error, 'optionalCall', _115 => _115(iss)])))), () => ( unwrapMessage(_optionalChain([config2, 'access', _116 => _116.customError, 'optionalCall', _117 => _117(iss)])))), () => ( unwrapMessage(_optionalChain([config2, 'access', _118 => _118.localeError, 'optionalCall', _119 => _119(iss)])))), () => ( "Invalid input"));
33889
+ const message = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(unwrapMessage(_optionalChain([iss, 'access', _112 => _112.inst, 'optionalAccess', _113 => _113._zod, 'access', _114 => _114.def, 'optionalAccess', _115 => _115.error, 'optionalCall', _116 => _116(iss)])), () => ( unwrapMessage(_optionalChain([ctx, 'optionalAccess', _117 => _117.error, 'optionalCall', _118 => _118(iss)])))), () => ( unwrapMessage(_optionalChain([config2, 'access', _119 => _119.customError, 'optionalCall', _120 => _120(iss)])))), () => ( unwrapMessage(_optionalChain([config2, 'access', _121 => _121.localeError, 'optionalCall', _122 => _122(iss)])))), () => ( "Invalid input"));
33893
33890
  full.message = message;
33894
33891
  }
33895
33892
  delete full.inst;
33896
33893
  delete full.continue;
33897
- if (!_optionalChain([ctx, 'optionalAccess', _120 => _120.reportInput])) {
33894
+ if (!_optionalChain([ctx, 'optionalAccess', _123 => _123.reportInput])) {
33898
33895
  delete full.input;
33899
33896
  }
33900
33897
  return full;
@@ -33937,7 +33934,7 @@ var Class = class {
33937
33934
  }
33938
33935
  };
33939
33936
 
33940
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/errors.js
33937
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/errors.js
33941
33938
  var initializer = (inst, def) => {
33942
33939
  inst.name = "$ZodError";
33943
33940
  Object.defineProperty(inst, "_zod", {
@@ -33955,13 +33952,17 @@ var initializer = (inst, def) => {
33955
33952
  enumerable: true
33956
33953
  // configurable: false,
33957
33954
  });
33955
+ Object.defineProperty(inst, "toString", {
33956
+ value: () => inst.message,
33957
+ enumerable: false
33958
+ });
33958
33959
  };
33959
33960
  var $ZodError = $constructor("$ZodError", initializer);
33960
33961
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
33961
- function flattenError(error2, mapper = (issue2) => issue2.message) {
33962
+ function flattenError(error, mapper = (issue2) => issue2.message) {
33962
33963
  const fieldErrors = {};
33963
33964
  const formErrors = [];
33964
- for (const sub of error2.issues) {
33965
+ for (const sub of error.issues) {
33965
33966
  if (sub.path.length > 0) {
33966
33967
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
33967
33968
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -33971,13 +33972,13 @@ function flattenError(error2, mapper = (issue2) => issue2.message) {
33971
33972
  }
33972
33973
  return { formErrors, fieldErrors };
33973
33974
  }
33974
- function formatError(error2, _mapper) {
33975
+ function formatError(error, _mapper) {
33975
33976
  const mapper = _mapper || function(issue2) {
33976
33977
  return issue2.message;
33977
33978
  };
33978
33979
  const fieldErrors = { _errors: [] };
33979
- const processError = (error3) => {
33980
- for (const issue2 of error3.issues) {
33980
+ const processError = (error2) => {
33981
+ for (const issue2 of error2.issues) {
33981
33982
  if (issue2.code === "invalid_union" && issue2.errors.length) {
33982
33983
  issue2.errors.map((issues) => processError({ issues }));
33983
33984
  } else if (issue2.code === "invalid_key") {
@@ -34004,11 +34005,11 @@ function formatError(error2, _mapper) {
34004
34005
  }
34005
34006
  }
34006
34007
  };
34007
- processError(error2);
34008
+ processError(error);
34008
34009
  return fieldErrors;
34009
34010
  }
34010
34011
 
34011
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/parse.js
34012
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/parse.js
34012
34013
  var _parse = (_Err) => (schema, value2, _ctx, _params) => {
34013
34014
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
34014
34015
  const result = schema._zod.run({ value: value2, issues: [] }, ctx);
@@ -34016,8 +34017,8 @@ var _parse = (_Err) => (schema, value2, _ctx, _params) => {
34016
34017
  throw new $ZodAsyncError();
34017
34018
  }
34018
34019
  if (result.issues.length) {
34019
- const e = new (_nullishCoalesce(_optionalChain([_params, 'optionalAccess', _121 => _121.Err]), () => ( _Err)))(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
34020
- captureStackTrace(e, _optionalChain([_params, 'optionalAccess', _122 => _122.callee]));
34020
+ const e = new (_nullishCoalesce(_optionalChain([_params, 'optionalAccess', _124 => _124.Err]), () => ( _Err)))(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
34021
+ captureStackTrace(e, _optionalChain([_params, 'optionalAccess', _125 => _125.callee]));
34021
34022
  throw e;
34022
34023
  }
34023
34024
  return result.value;
@@ -34028,8 +34029,8 @@ var _parseAsync = (_Err) => async (schema, value2, _ctx, params) => {
34028
34029
  if (result instanceof Promise)
34029
34030
  result = await result;
34030
34031
  if (result.issues.length) {
34031
- const e = new (_nullishCoalesce(_optionalChain([params, 'optionalAccess', _123 => _123.Err]), () => ( _Err)))(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
34032
- captureStackTrace(e, _optionalChain([params, 'optionalAccess', _124 => _124.callee]));
34032
+ const e = new (_nullishCoalesce(_optionalChain([params, 'optionalAccess', _126 => _126.Err]), () => ( _Err)))(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
34033
+ captureStackTrace(e, _optionalChain([params, 'optionalAccess', _127 => _127.callee]));
34033
34034
  throw e;
34034
34035
  }
34035
34036
  return result.value;
@@ -34058,13 +34059,13 @@ var _safeParseAsync = (_Err) => async (schema, value2, _ctx) => {
34058
34059
  };
34059
34060
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
34060
34061
 
34061
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/schemas.js
34062
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/schemas.js
34062
34063
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34063
34064
 
34064
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/checks.js
34065
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/checks.js
34065
34066
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34066
34067
 
34067
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/regexes.js
34068
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/regexes.js
34068
34069
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34069
34070
  var cuid = /^[cC][^\s-]{8,}$/;
34070
34071
  var cuid2 = /^[0-9a-z]+$/;
@@ -34113,14 +34114,14 @@ function datetime(args) {
34113
34114
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
34114
34115
  }
34115
34116
  var string = (params) => {
34116
- const regex = params ? `[\\s\\S]{${_nullishCoalesce(_optionalChain([params, 'optionalAccess', _125 => _125.minimum]), () => ( 0))},${_nullishCoalesce(_optionalChain([params, 'optionalAccess', _126 => _126.maximum]), () => ( ""))}}` : `[\\s\\S]*`;
34117
+ const regex = params ? `[\\s\\S]{${_nullishCoalesce(_optionalChain([params, 'optionalAccess', _128 => _128.minimum]), () => ( 0))},${_nullishCoalesce(_optionalChain([params, 'optionalAccess', _129 => _129.maximum]), () => ( ""))}}` : `[\\s\\S]*`;
34117
34118
  return new RegExp(`^${regex}$`);
34118
34119
  };
34119
34120
  var boolean = /true|false/i;
34120
34121
  var lowercase = /^[^A-Z]*$/;
34121
34122
  var uppercase = /^[^a-z]*$/;
34122
34123
 
34123
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/checks.js
34124
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/checks.js
34124
34125
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
34125
34126
  var _a;
34126
34127
  _nullishCoalesce(inst._zod, () => ( (inst._zod = {})));
@@ -34128,11 +34129,12 @@ var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
34128
34129
  _nullishCoalesce((_a = inst._zod).onattach, () => ( (_a.onattach = [])));
34129
34130
  });
34130
34131
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
34132
+ var _a;
34131
34133
  $ZodCheck.init(inst, def);
34132
- inst._zod.when = (payload) => {
34134
+ _nullishCoalesce((_a = inst._zod.def).when, () => ( (_a.when = (payload) => {
34133
34135
  const val = payload.value;
34134
34136
  return !nullish(val) && val.length !== void 0;
34135
- };
34137
+ })));
34136
34138
  inst._zod.onattach.push((inst2) => {
34137
34139
  const curr = _nullishCoalesce(inst2._zod.bag.maximum, () => ( Number.POSITIVE_INFINITY));
34138
34140
  if (def.maximum < curr)
@@ -34156,11 +34158,12 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
34156
34158
  };
34157
34159
  });
34158
34160
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
34161
+ var _a;
34159
34162
  $ZodCheck.init(inst, def);
34160
- inst._zod.when = (payload) => {
34163
+ _nullishCoalesce((_a = inst._zod.def).when, () => ( (_a.when = (payload) => {
34161
34164
  const val = payload.value;
34162
34165
  return !nullish(val) && val.length !== void 0;
34163
- };
34166
+ })));
34164
34167
  inst._zod.onattach.push((inst2) => {
34165
34168
  const curr = _nullishCoalesce(inst2._zod.bag.minimum, () => ( Number.NEGATIVE_INFINITY));
34166
34169
  if (def.minimum > curr)
@@ -34184,11 +34187,12 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
34184
34187
  };
34185
34188
  });
34186
34189
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
34190
+ var _a;
34187
34191
  $ZodCheck.init(inst, def);
34188
- inst._zod.when = (payload) => {
34192
+ _nullishCoalesce((_a = inst._zod.def).when, () => ( (_a.when = (payload) => {
34189
34193
  const val = payload.value;
34190
34194
  return !nullish(val) && val.length !== void 0;
34191
- };
34195
+ })));
34192
34196
  inst._zod.onattach.push((inst2) => {
34193
34197
  const bag = inst2._zod.bag;
34194
34198
  bag.minimum = def.length;
@@ -34205,6 +34209,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
34205
34209
  payload.issues.push({
34206
34210
  origin,
34207
34211
  ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },
34212
+ inclusive: true,
34213
+ exact: true,
34208
34214
  input: payload.value,
34209
34215
  inst,
34210
34216
  continue: !def.abort
@@ -34212,7 +34218,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
34212
34218
  };
34213
34219
  });
34214
34220
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
34215
- var _a;
34221
+ var _a, _b;
34216
34222
  $ZodCheck.init(inst, def);
34217
34223
  inst._zod.onattach.push((inst2) => {
34218
34224
  const bag = inst2._zod.bag;
@@ -34222,22 +34228,24 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
34222
34228
  bag.patterns.add(def.pattern);
34223
34229
  }
34224
34230
  });
34225
- _nullishCoalesce((_a = inst._zod).check, () => ( (_a.check = (payload) => {
34226
- if (!def.pattern)
34227
- throw new Error("Not implemented.");
34228
- def.pattern.lastIndex = 0;
34229
- if (def.pattern.test(payload.value))
34230
- return;
34231
- payload.issues.push({
34232
- origin: "string",
34233
- code: "invalid_format",
34234
- format: def.format,
34235
- input: payload.value,
34236
- ...def.pattern ? { pattern: def.pattern.toString() } : {},
34237
- inst,
34238
- continue: !def.abort
34239
- });
34240
- })));
34231
+ if (def.pattern)
34232
+ _nullishCoalesce((_a = inst._zod).check, () => ( (_a.check = (payload) => {
34233
+ def.pattern.lastIndex = 0;
34234
+ if (def.pattern.test(payload.value))
34235
+ return;
34236
+ payload.issues.push({
34237
+ origin: "string",
34238
+ code: "invalid_format",
34239
+ format: def.format,
34240
+ input: payload.value,
34241
+ ...def.pattern ? { pattern: def.pattern.toString() } : {},
34242
+ inst,
34243
+ continue: !def.abort
34244
+ });
34245
+ })));
34246
+ else
34247
+ _nullishCoalesce((_b = inst._zod).check, () => ( (_b.check = () => {
34248
+ })));
34241
34249
  });
34242
34250
  var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
34243
34251
  $ZodCheckStringFormat.init(inst, def);
@@ -34341,7 +34349,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
34341
34349
  };
34342
34350
  });
34343
34351
 
34344
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/doc.js
34352
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/doc.js
34345
34353
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34346
34354
  var Doc = class {
34347
34355
  constructor(args = []) {
@@ -34371,26 +34379,25 @@ var Doc = class {
34371
34379
  }
34372
34380
  compile() {
34373
34381
  const F = Function;
34374
- const args = _optionalChain([this, 'optionalAccess', _127 => _127.args]);
34375
- const content = _nullishCoalesce(_optionalChain([this, 'optionalAccess', _128 => _128.content]), () => ( [``]));
34382
+ const args = _optionalChain([this, 'optionalAccess', _130 => _130.args]);
34383
+ const content = _nullishCoalesce(_optionalChain([this, 'optionalAccess', _131 => _131.content]), () => ( [``]));
34376
34384
  const lines = [...content.map((x) => ` ${x}`)];
34377
34385
  return new F(...args, lines.join("\n"));
34378
34386
  }
34379
34387
  };
34380
34388
 
34381
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/versions.js
34389
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/versions.js
34382
34390
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34383
34391
  var version = {
34384
34392
  major: 4,
34385
34393
  minor: 0,
34386
- patch: 0
34394
+ patch: 2
34387
34395
  };
34388
34396
 
34389
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/schemas.js
34397
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/schemas.js
34390
34398
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34391
34399
  var _a;
34392
34400
  _nullishCoalesce(inst, () => ( (inst = {})));
34393
- defineLazy(inst._zod, "id", () => def.type + "_" + randomString(10));
34394
34401
  inst._zod.def = def;
34395
34402
  inst._zod.bag = inst._zod.bag || {};
34396
34403
  inst._zod.version = version;
@@ -34405,7 +34412,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34405
34412
  }
34406
34413
  if (checks.length === 0) {
34407
34414
  _nullishCoalesce((_a = inst._zod).deferred, () => ( (_a.deferred = [])));
34408
- _optionalChain([inst, 'access', _129 => _129._zod, 'access', _130 => _130.deferred, 'optionalAccess', _131 => _131.push, 'call', _132 => _132(() => {
34415
+ _optionalChain([inst, 'access', _132 => _132._zod, 'access', _133 => _133.deferred, 'optionalAccess', _134 => _134.push, 'call', _135 => _135(() => {
34409
34416
  inst._zod.run = inst._zod.parse;
34410
34417
  })]);
34411
34418
  } else {
@@ -34413,8 +34420,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34413
34420
  let isAborted = aborted(payload);
34414
34421
  let asyncResult;
34415
34422
  for (const ch of checks2) {
34416
- if (ch._zod.when) {
34417
- const shouldRun = ch._zod.when(payload);
34423
+ if (ch._zod.def.when) {
34424
+ const shouldRun = ch._zod.def.when(payload);
34418
34425
  if (!shouldRun)
34419
34426
  continue;
34420
34427
  } else if (isAborted) {
@@ -34422,7 +34429,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34422
34429
  }
34423
34430
  const currLen = payload.issues.length;
34424
34431
  const _ = ch._zod.check(payload);
34425
- if (_ instanceof Promise && _optionalChain([ctx, 'optionalAccess', _133 => _133.async]) === false) {
34432
+ if (_ instanceof Promise && _optionalChain([ctx, 'optionalAccess', _136 => _136.async]) === false) {
34426
34433
  throw new $ZodAsyncError();
34427
34434
  }
34428
34435
  if (asyncResult || _ instanceof Promise) {
@@ -34463,9 +34470,9 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34463
34470
  validate: (value2) => {
34464
34471
  try {
34465
34472
  const r = safeParse(inst, value2);
34466
- return r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _134 => _134.error, 'optionalAccess', _135 => _135.issues]) };
34473
+ return r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _137 => _137.error, 'optionalAccess', _138 => _138.issues]) };
34467
34474
  } catch (_) {
34468
- return safeParseAsync(inst, value2).then((r) => r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _136 => _136.error, 'optionalAccess', _137 => _137.issues]) });
34475
+ return safeParseAsync(inst, value2).then((r) => r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _139 => _139.error, 'optionalAccess', _140 => _140.issues]) });
34469
34476
  }
34470
34477
  },
34471
34478
  vendor: "zod",
@@ -34474,7 +34481,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34474
34481
  });
34475
34482
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
34476
34483
  $ZodType.init(inst, def);
34477
- inst._zod.pattern = _nullishCoalesce([..._nullishCoalesce(_optionalChain([inst, 'optionalAccess', _138 => _138._zod, 'access', _139 => _139.bag, 'optionalAccess', _140 => _140.patterns]), () => ( []))].pop(), () => ( string(inst._zod.bag)));
34484
+ inst._zod.pattern = _nullishCoalesce([..._nullishCoalesce(_optionalChain([inst, 'optionalAccess', _141 => _141._zod, 'access', _142 => _142.bag, 'optionalAccess', _143 => _143.patterns]), () => ( []))].pop(), () => ( string(inst._zod.bag)));
34478
34485
  inst._zod.parse = (payload, _) => {
34479
34486
  if (def.coerce)
34480
34487
  try {
@@ -34528,7 +34535,9 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
34528
34535
  $ZodStringFormat.init(inst, def);
34529
34536
  inst._zod.check = (payload) => {
34530
34537
  try {
34531
- const url = new URL(payload.value);
34538
+ const orig = payload.value;
34539
+ const url = new URL(orig);
34540
+ const href = url.href;
34532
34541
  if (def.hostname) {
34533
34542
  def.hostname.lastIndex = 0;
34534
34543
  if (!def.hostname.test(url.hostname)) {
@@ -34557,6 +34566,11 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
34557
34566
  });
34558
34567
  }
34559
34568
  }
34569
+ if (!orig.endsWith("/") && href.endsWith("/")) {
34570
+ payload.value = href.slice(0, -1);
34571
+ } else {
34572
+ payload.value = href;
34573
+ }
34560
34574
  return;
34561
34575
  } catch (_) {
34562
34576
  payload.issues.push({
@@ -34600,7 +34614,6 @@ var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
34600
34614
  var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
34601
34615
  _nullishCoalesce(def.pattern, () => ( (def.pattern = datetime(def))));
34602
34616
  $ZodStringFormat.init(inst, def);
34603
- const _super = inst._zod.check;
34604
34617
  });
34605
34618
  var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
34606
34619
  _nullishCoalesce(def.pattern, () => ( (def.pattern = date)));
@@ -34609,7 +34622,6 @@ var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
34609
34622
  var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
34610
34623
  _nullishCoalesce(def.pattern, () => ( (def.pattern = time(def))));
34611
34624
  $ZodStringFormat.init(inst, def);
34612
- const _super = inst._zod.check;
34613
34625
  });
34614
34626
  var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
34615
34627
  _nullishCoalesce(def.pattern, () => ( (def.pattern = duration)));
@@ -34738,8 +34750,10 @@ function isValidJWT(token, algorithm = null) {
34738
34750
  if (tokensParts.length !== 3)
34739
34751
  return false;
34740
34752
  const [header] = tokensParts;
34753
+ if (!header)
34754
+ return false;
34741
34755
  const parsedHeader = JSON.parse(atob(header));
34742
- if ("typ" in parsedHeader && _optionalChain([parsedHeader, 'optionalAccess', _141 => _141.typ]) !== "JWT")
34756
+ if ("typ" in parsedHeader && _optionalChain([parsedHeader, 'optionalAccess', _144 => _144.typ]) !== "JWT")
34743
34757
  return false;
34744
34758
  if (!parsedHeader.alg)
34745
34759
  return false;
@@ -34901,19 +34915,20 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34901
34915
  });
34902
34916
  const generateFastpass = (shape) => {
34903
34917
  const doc = new Doc(["shape", "payload", "ctx"]);
34904
- const { keys, optionalKeys: optionalKeys2 } = _normalized.value;
34918
+ const normalized = _normalized.value;
34905
34919
  const parseStr = (key) => {
34906
34920
  const k = esc(key);
34907
34921
  return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
34908
34922
  };
34909
34923
  doc.write(`const input = payload.value;`);
34910
34924
  const ids = /* @__PURE__ */ Object.create(null);
34911
- for (const key of keys) {
34912
- ids[key] = randomString(15);
34925
+ let counter = 0;
34926
+ for (const key of normalized.keys) {
34927
+ ids[key] = `key_${counter++}`;
34913
34928
  }
34914
34929
  doc.write(`const newResult = {}`);
34915
- for (const key of keys) {
34916
- if (optionalKeys2.has(key)) {
34930
+ for (const key of normalized.keys) {
34931
+ if (normalized.optionalKeys.has(key)) {
34917
34932
  const id = ids[key];
34918
34933
  doc.write(`const ${id} = ${parseStr(key)};`);
34919
34934
  const k = esc(key);
@@ -34958,7 +34973,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34958
34973
  const jit = !globalConfig.jitless;
34959
34974
  const allowsEval2 = allowsEval;
34960
34975
  const fastEnabled = jit && allowsEval2.value;
34961
- const { catchall } = def;
34976
+ const catchall = def.catchall;
34962
34977
  let value2;
34963
34978
  inst._zod.parse = (payload, ctx) => {
34964
34979
  _nullishCoalesce(value2, () => ( (value2 = _normalized.value)));
@@ -34973,7 +34988,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34973
34988
  return payload;
34974
34989
  }
34975
34990
  const proms = [];
34976
- if (jit && fastEnabled && _optionalChain([ctx, 'optionalAccess', _142 => _142.async]) === false && ctx.jitless !== true) {
34991
+ if (jit && fastEnabled && _optionalChain([ctx, 'optionalAccess', _145 => _145.async]) === false && ctx.jitless !== true) {
34977
34992
  if (!fastpass)
34978
34993
  fastpass = generateFastpass(def.shape);
34979
34994
  payload = fastpass(payload, ctx);
@@ -35046,6 +35061,8 @@ function handleUnionResults(results, final, inst, ctx) {
35046
35061
  }
35047
35062
  var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
35048
35063
  $ZodType.init(inst, def);
35064
+ defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
35065
+ defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
35049
35066
  defineLazy(inst._zod, "values", () => {
35050
35067
  if (def.options.every((o) => o._zod.values)) {
35051
35068
  return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
@@ -35086,7 +35103,7 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
35086
35103
  var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
35087
35104
  $ZodType.init(inst, def);
35088
35105
  inst._zod.parse = (payload, ctx) => {
35089
- const { value: input } = payload;
35106
+ const input = payload.value;
35090
35107
  const left = def.left._zod.run({ value: input, issues: [] }, ctx);
35091
35108
  const right = def.right._zod.run({ value: input, issues: [] }, ctx);
35092
35109
  const async = left instanceof Promise || right instanceof Promise;
@@ -35318,6 +35335,9 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
35318
35335
  return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
35319
35336
  });
35320
35337
  inst._zod.parse = (payload, ctx) => {
35338
+ if (def.innerType._zod.optin === "optional") {
35339
+ return def.innerType._zod.run(payload, ctx);
35340
+ }
35321
35341
  if (payload.value === void 0) {
35322
35342
  return payload;
35323
35343
  }
@@ -35401,7 +35421,7 @@ function handleNonOptionalResult(payload, inst) {
35401
35421
  }
35402
35422
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
35403
35423
  $ZodType.init(inst, def);
35404
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
35424
+ inst._zod.optin = "optional";
35405
35425
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
35406
35426
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
35407
35427
  inst._zod.parse = (payload, ctx) => {
@@ -35458,6 +35478,7 @@ function handlePipeResult(left, def, ctx) {
35458
35478
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
35459
35479
  $ZodType.init(inst, def);
35460
35480
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
35481
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
35461
35482
  defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
35462
35483
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
35463
35484
  inst._zod.parse = (payload, ctx) => {
@@ -35506,246 +35527,13 @@ function handleRefineResult(result, payload, input, inst) {
35506
35527
  }
35507
35528
  }
35508
35529
 
35509
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/index.js
35510
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35511
-
35512
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ar.js
35513
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35514
-
35515
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/az.js
35516
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35517
-
35518
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/be.js
35519
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35520
-
35521
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ca.js
35522
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35523
-
35524
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/cs.js
35525
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35526
-
35527
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/de.js
35528
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35529
-
35530
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/en.js
35531
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35532
- var parsedType = (data) => {
35533
- const t = typeof data;
35534
- switch (t) {
35535
- case "number": {
35536
- return Number.isNaN(data) ? "NaN" : "number";
35537
- }
35538
- case "object": {
35539
- if (Array.isArray(data)) {
35540
- return "array";
35541
- }
35542
- if (data === null) {
35543
- return "null";
35544
- }
35545
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
35546
- return data.constructor.name;
35547
- }
35548
- }
35549
- }
35550
- return t;
35551
- };
35552
- var error = () => {
35553
- const Sizable = {
35554
- string: { unit: "characters", verb: "to have" },
35555
- file: { unit: "bytes", verb: "to have" },
35556
- array: { unit: "items", verb: "to have" },
35557
- set: { unit: "items", verb: "to have" }
35558
- };
35559
- function getSizing(origin) {
35560
- return _nullishCoalesce(Sizable[origin], () => ( null));
35561
- }
35562
- const Nouns = {
35563
- regex: "input",
35564
- email: "email address",
35565
- url: "URL",
35566
- emoji: "emoji",
35567
- uuid: "UUID",
35568
- uuidv4: "UUIDv4",
35569
- uuidv6: "UUIDv6",
35570
- nanoid: "nanoid",
35571
- guid: "GUID",
35572
- cuid: "cuid",
35573
- cuid2: "cuid2",
35574
- ulid: "ULID",
35575
- xid: "XID",
35576
- ksuid: "KSUID",
35577
- datetime: "ISO datetime",
35578
- date: "ISO date",
35579
- time: "ISO time",
35580
- duration: "ISO duration",
35581
- ipv4: "IPv4 address",
35582
- ipv6: "IPv6 address",
35583
- cidrv4: "IPv4 range",
35584
- cidrv6: "IPv6 range",
35585
- base64: "base64-encoded string",
35586
- base64url: "base64url-encoded string",
35587
- json_string: "JSON string",
35588
- e164: "E.164 number",
35589
- jwt: "JWT",
35590
- template_literal: "input"
35591
- };
35592
- return (issue2) => {
35593
- switch (issue2.code) {
35594
- case "invalid_type":
35595
- return `Invalid input: expected ${issue2.expected}, received ${parsedType(issue2.input)}`;
35596
- case "invalid_value":
35597
- if (issue2.values.length === 1)
35598
- return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
35599
- return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;
35600
- case "too_big": {
35601
- const adj = issue2.inclusive ? "<=" : "<";
35602
- const sizing = getSizing(issue2.origin);
35603
- if (sizing)
35604
- return `Too big: expected ${_nullishCoalesce(issue2.origin, () => ( "value"))} to have ${adj}${issue2.maximum.toString()} ${_nullishCoalesce(sizing.unit, () => ( "elements"))}`;
35605
- return `Too big: expected ${_nullishCoalesce(issue2.origin, () => ( "value"))} to be ${adj}${issue2.maximum.toString()}`;
35606
- }
35607
- case "too_small": {
35608
- const adj = issue2.inclusive ? ">=" : ">";
35609
- const sizing = getSizing(issue2.origin);
35610
- if (sizing) {
35611
- return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
35612
- }
35613
- return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;
35614
- }
35615
- case "invalid_format": {
35616
- const _issue = issue2;
35617
- if (_issue.format === "starts_with") {
35618
- return `Invalid string: must start with "${_issue.prefix}"`;
35619
- }
35620
- if (_issue.format === "ends_with")
35621
- return `Invalid string: must end with "${_issue.suffix}"`;
35622
- if (_issue.format === "includes")
35623
- return `Invalid string: must include "${_issue.includes}"`;
35624
- if (_issue.format === "regex")
35625
- return `Invalid string: must match pattern ${_issue.pattern}`;
35626
- return `Invalid ${_nullishCoalesce(Nouns[_issue.format], () => ( issue2.format))}`;
35627
- }
35628
- case "not_multiple_of":
35629
- return `Invalid number: must be a multiple of ${issue2.divisor}`;
35630
- case "unrecognized_keys":
35631
- return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
35632
- case "invalid_key":
35633
- return `Invalid key in ${issue2.origin}`;
35634
- case "invalid_union":
35635
- return "Invalid input";
35636
- case "invalid_element":
35637
- return `Invalid value in ${issue2.origin}`;
35638
- default:
35639
- return `Invalid input`;
35640
- }
35641
- };
35642
- };
35643
- function en_default() {
35644
- return {
35645
- localeError: error()
35646
- };
35647
- }
35648
-
35649
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/es.js
35650
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35651
-
35652
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/fa.js
35653
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35654
-
35655
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/fi.js
35656
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35657
-
35658
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/fr.js
35659
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35660
-
35661
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/fr-CA.js
35662
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35663
-
35664
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/he.js
35665
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35666
-
35667
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/hu.js
35668
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35669
-
35670
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/id.js
35671
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35672
-
35673
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/it.js
35674
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35675
-
35676
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ja.js
35677
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35678
-
35679
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/kh.js
35680
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35681
-
35682
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ko.js
35683
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35684
-
35685
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/mk.js
35686
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35687
-
35688
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ms.js
35689
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35690
-
35691
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/nl.js
35692
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35693
-
35694
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/no.js
35695
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35696
-
35697
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ota.js
35698
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35699
-
35700
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ps.js
35701
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35702
-
35703
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/pl.js
35704
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35705
-
35706
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/pt.js
35707
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35708
-
35709
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ru.js
35710
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35711
-
35712
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/sl.js
35713
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35714
-
35715
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/sv.js
35716
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35717
-
35718
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ta.js
35719
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35720
-
35721
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/th.js
35722
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35723
-
35724
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/tr.js
35725
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35726
-
35727
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ua.js
35728
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35729
-
35730
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/ur.js
35731
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35732
-
35733
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/vi.js
35734
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35735
-
35736
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/zh-CN.js
35737
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35738
-
35739
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/locales/zh-TW.js
35740
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35741
-
35742
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/registries.js
35530
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/registries.js
35743
35531
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35744
35532
  var $output = Symbol("ZodOutput");
35745
35533
  var $input = Symbol("ZodInput");
35746
35534
  var $ZodRegistry = class {
35747
35535
  constructor() {
35748
- this._map = /* @__PURE__ */ new WeakMap();
35536
+ this._map = /* @__PURE__ */ new Map();
35749
35537
  this._idmap = /* @__PURE__ */ new Map();
35750
35538
  }
35751
35539
  add(schema, ..._meta) {
@@ -35759,7 +35547,16 @@ var $ZodRegistry = class {
35759
35547
  }
35760
35548
  return this;
35761
35549
  }
35550
+ clear() {
35551
+ this._map = /* @__PURE__ */ new Map();
35552
+ this._idmap = /* @__PURE__ */ new Map();
35553
+ return this;
35554
+ }
35762
35555
  remove(schema) {
35556
+ const meta = this._map.get(schema);
35557
+ if (meta && typeof meta === "object" && "id" in meta) {
35558
+ this._idmap.delete(meta.id);
35559
+ }
35763
35560
  this._map.delete(schema);
35764
35561
  return this;
35765
35562
  }
@@ -35781,10 +35578,7 @@ function registry() {
35781
35578
  }
35782
35579
  var globalRegistry = /* @__PURE__ */ registry();
35783
35580
 
35784
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/function.js
35785
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35786
-
35787
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/api.js
35581
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/api.js
35788
35582
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35789
35583
  function _string(Class2, params) {
35790
35584
  return new Class2({
@@ -36157,19 +35951,13 @@ function _refine(Class2, fn, _params) {
36157
35951
  return schema;
36158
35952
  }
36159
35953
 
36160
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/to-json-schema.js
35954
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/schemas.js
36161
35955
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36162
35956
 
36163
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/json-schema.js
35957
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/checks.js
36164
35958
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36165
35959
 
36166
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/schemas.js
36167
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36168
-
36169
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/checks.js
36170
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36171
-
36172
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/iso.js
35960
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/iso.js
36173
35961
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36174
35962
  var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
36175
35963
  $ZodISODateTime.init(inst, def);
@@ -36200,10 +35988,10 @@ function duration2(params) {
36200
35988
  return _isoDuration(ZodISODuration, params);
36201
35989
  }
36202
35990
 
36203
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/parse.js
35991
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/parse.js
36204
35992
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36205
35993
 
36206
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/errors.js
35994
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/errors.js
36207
35995
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36208
35996
  var initializer2 = (inst, issues) => {
36209
35997
  $ZodError.init(inst, issues);
@@ -36238,13 +36026,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
36238
36026
  Parent: Error
36239
36027
  });
36240
36028
 
36241
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/parse.js
36242
- var parse2 = /* @__PURE__ */ _parse(ZodRealError);
36243
- var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
36029
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/parse.js
36030
+ var parse = /* @__PURE__ */ _parse(ZodRealError);
36031
+ var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
36244
36032
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
36245
36033
  var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
36246
36034
 
36247
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/schemas.js
36035
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/schemas.js
36248
36036
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36249
36037
  $ZodType.init(inst, def);
36250
36038
  inst.def = def;
@@ -36267,9 +36055,9 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36267
36055
  reg.add(inst, meta);
36268
36056
  return inst;
36269
36057
  };
36270
- inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
36058
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
36271
36059
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
36272
- inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
36060
+ inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
36273
36061
  inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params);
36274
36062
  inst.spa = inst.safeParseAsync;
36275
36063
  inst.refine = (check2, params) => inst.check(refine(check2, params));
@@ -36295,7 +36083,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36295
36083
  };
36296
36084
  Object.defineProperty(inst, "description", {
36297
36085
  get() {
36298
- return _optionalChain([globalRegistry, 'access', _143 => _143.get, 'call', _144 => _144(inst), 'optionalAccess', _145 => _145.description]);
36086
+ return _optionalChain([globalRegistry, 'access', _146 => _146.get, 'call', _147 => _147(inst), 'optionalAccess', _148 => _148.description]);
36299
36087
  },
36300
36088
  configurable: true
36301
36089
  });
@@ -36759,10 +36547,10 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
36759
36547
  $ZodCustom.init(inst, def);
36760
36548
  ZodType.init(inst, def);
36761
36549
  });
36762
- function check(fn, params) {
36550
+ function check(fn) {
36763
36551
  const ch = new $ZodCheck({
36764
- check: "custom",
36765
- ...util_exports.normalizeParams(params)
36552
+ check: "custom"
36553
+ // ...util.normalizeParams(params),
36766
36554
  });
36767
36555
  ch._zod.check = fn;
36768
36556
  return ch;
@@ -36770,7 +36558,7 @@ function check(fn, params) {
36770
36558
  function refine(fn, _params = {}) {
36771
36559
  return _refine(ZodCustom, fn, _params);
36772
36560
  }
36773
- function superRefine(fn, params) {
36561
+ function superRefine(fn) {
36774
36562
  const ch = check((payload) => {
36775
36563
  payload.addIssue = (issue2) => {
36776
36564
  if (typeof issue2 === "string") {
@@ -36787,22 +36575,10 @@ function superRefine(fn, params) {
36787
36575
  }
36788
36576
  };
36789
36577
  return fn(payload.value, payload);
36790
- }, params);
36578
+ });
36791
36579
  return ch;
36792
36580
  }
36793
36581
 
36794
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/compat.js
36795
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36796
- var INVALID = Object.freeze({
36797
- status: "aborted"
36798
- });
36799
-
36800
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/coerce.js
36801
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36802
-
36803
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/external.js
36804
- config(en_default());
36805
-
36806
36582
  // ../config/src/schema.ts
36807
36583
  var DarkColorSchema = string2().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
36808
36584
  var LightColorSchema = string2().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
@@ -37373,7 +37149,7 @@ function applyDefaultConfig(config2) {
37373
37149
  if (!config2.contact) {
37374
37150
  config2.contact = `${config2.homepage}/contact`;
37375
37151
  }
37376
- if (!_optionalChain([config2, 'access', _146 => _146.error, 'optionalAccess', _147 => _147.codesFile]) || !_optionalChain([config2, 'optionalAccess', _148 => _148.error, 'optionalAccess', _149 => _149.url])) {
37152
+ if (!_optionalChain([config2, 'access', _149 => _149.error, 'optionalAccess', _150 => _150.codesFile]) || !_optionalChain([config2, 'optionalAccess', _151 => _151.error, 'optionalAccess', _152 => _152.url])) {
37377
37153
  config2.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
37378
37154
  if (config2.homepage) {
37379
37155
  config2.error.url ??= `${config2.homepage}/errors`;
@@ -37407,7 +37183,7 @@ var chalkDefault = {
37407
37183
  };
37408
37184
  var getChalk = () => {
37409
37185
  let _chalk = import_chalk.default;
37410
- if (!_optionalChain([_chalk, 'optionalAccess', _150 => _150.hex]) || !_optionalChain([_chalk, 'optionalAccess', _151 => _151.bold, 'optionalAccess', _152 => _152.hex]) || !_optionalChain([_chalk, 'optionalAccess', _153 => _153.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _154 => _154.whiteBright])) {
37186
+ if (!_optionalChain([_chalk, 'optionalAccess', _153 => _153.hex]) || !_optionalChain([_chalk, 'optionalAccess', _154 => _154.bold, 'optionalAccess', _155 => _155.hex]) || !_optionalChain([_chalk, 'optionalAccess', _156 => _156.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _157 => _157.whiteBright])) {
37411
37187
  _chalk = chalkDefault;
37412
37188
  }
37413
37189
  return _chalk;
@@ -37505,7 +37281,7 @@ var isVerbose = (label = LogLevelLabel.SILENT) => {
37505
37281
 
37506
37282
  // ../config-tools/src/logger/console.ts
37507
37283
  var getLogFn = (logLevel = LogLevel.INFO, config2 = {}, _chalk = getChalk()) => {
37508
- const colors = !_optionalChain([config2, 'access', _155 => _155.colors, 'optionalAccess', _156 => _156.dark]) && !_optionalChain([config2, 'access', _157 => _157.colors, 'optionalAccess', _158 => _158["base"]]) && !_optionalChain([config2, 'access', _159 => _159.colors, 'optionalAccess', _160 => _160["base"], 'optionalAccess', _161 => _161.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config2, 'access', _162 => _162.colors, 'optionalAccess', _163 => _163.dark]) && typeof config2.colors.dark === "string" ? config2.colors : _optionalChain([config2, 'access', _164 => _164.colors, 'optionalAccess', _165 => _165["base"], 'optionalAccess', _166 => _166.dark]) && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : _optionalChain([config2, 'access', _167 => _167.colors, 'optionalAccess', _168 => _168["base"]]) ? _optionalChain([config2, 'access', _169 => _169.colors, 'optionalAccess', _170 => _170["base"]]) : DEFAULT_COLOR_CONFIG;
37284
+ const colors = !_optionalChain([config2, 'access', _158 => _158.colors, 'optionalAccess', _159 => _159.dark]) && !_optionalChain([config2, 'access', _160 => _160.colors, 'optionalAccess', _161 => _161["base"]]) && !_optionalChain([config2, 'access', _162 => _162.colors, 'optionalAccess', _163 => _163["base"], 'optionalAccess', _164 => _164.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config2, 'access', _165 => _165.colors, 'optionalAccess', _166 => _166.dark]) && typeof config2.colors.dark === "string" ? config2.colors : _optionalChain([config2, 'access', _167 => _167.colors, 'optionalAccess', _168 => _168["base"], 'optionalAccess', _169 => _169.dark]) && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : _optionalChain([config2, 'access', _170 => _170.colors, 'optionalAccess', _171 => _171["base"]]) ? _optionalChain([config2, 'access', _172 => _172.colors, 'optionalAccess', _173 => _173["base"]]) : DEFAULT_COLOR_CONFIG;
37509
37285
  const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
37510
37286
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
37511
37287
  return (_) => {
@@ -37608,7 +37384,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
37608
37384
  };
37609
37385
  var _isFunction = (value2) => {
37610
37386
  try {
37611
- return value2 instanceof Function || typeof value2 === "function" || !!(_optionalChain([value2, 'optionalAccess', _171 => _171.constructor]) && _optionalChain([value2, 'optionalAccess', _172 => _172.call]) && _optionalChain([value2, 'optionalAccess', _173 => _173.apply]));
37387
+ return value2 instanceof Function || typeof value2 === "function" || !!(_optionalChain([value2, 'optionalAccess', _174 => _174.constructor]) && _optionalChain([value2, 'optionalAccess', _175 => _175.call]) && _optionalChain([value2, 'optionalAccess', _176 => _176.apply]));
37612
37388
  } catch (e) {
37613
37389
  return false;
37614
37390
  }
@@ -37629,17 +37405,17 @@ var handleProcess = (config2) => {
37629
37405
  `Using the following arguments to process the script: ${process.argv.join(", ")}`,
37630
37406
  config2
37631
37407
  );
37632
- process.on("unhandledRejection", (error2) => {
37408
+ process.on("unhandledRejection", (error) => {
37633
37409
  writeError(
37634
- `An Unhandled Rejection occurred while running the program: ${error2}`,
37410
+ `An Unhandled Rejection occurred while running the program: ${error}`,
37635
37411
  config2
37636
37412
  );
37637
37413
  exitWithError(config2);
37638
37414
  });
37639
- process.on("uncaughtException", (error2) => {
37415
+ process.on("uncaughtException", (error) => {
37640
37416
  writeError(
37641
- `An Uncaught Exception occurred while running the program: ${error2.message}
37642
- Stacktrace: ${error2.stack}`,
37417
+ `An Uncaught Exception occurred while running the program: ${error.message}
37418
+ Stacktrace: ${error.stack}`,
37643
37419
  config2
37644
37420
  );
37645
37421
  exitWithError(config2);
@@ -37764,9 +37540,9 @@ function destr(value2, options = {}) {
37764
37540
  return JSON.parse(value2, jsonParseTransform);
37765
37541
  }
37766
37542
  return JSON.parse(value2);
37767
- } catch (error2) {
37543
+ } catch (error) {
37768
37544
  if (options.strict) {
37769
- throw error2;
37545
+ throw error;
37770
37546
  }
37771
37547
  return value2;
37772
37548
  }
@@ -37889,7 +37665,7 @@ function withDefaults(options) {
37889
37665
  }
37890
37666
  return { ...defaults, ...options };
37891
37667
  }
37892
- function parse3(contents, options = {}) {
37668
+ function parse2(contents, options = {}) {
37893
37669
  const config2 = {};
37894
37670
  const lines = contents.split(RE_LINES);
37895
37671
  for (const line of lines) {
@@ -37918,7 +37694,7 @@ function parseFile(path, options) {
37918
37694
  if (!_fs3.existsSync.call(void 0, path)) {
37919
37695
  return {};
37920
37696
  }
37921
- return parse3(_fs3.readFileSync.call(void 0, path, "utf8"), options);
37697
+ return parse2(_fs3.readFileSync.call(void 0, path, "utf8"), options);
37922
37698
  }
37923
37699
  function read(options) {
37924
37700
  options = withDefaults(options);
@@ -37954,7 +37730,7 @@ async function loadDotenv(options) {
37954
37730
  const parsed = dotenv.parse(await _fs3.promises.readFile(dotenvFile, "utf8"));
37955
37731
  Object.assign(environment, parsed);
37956
37732
  }
37957
- if (!_optionalChain([options, 'access', _174 => _174.env, 'optionalAccess', _175 => _175._applied])) {
37733
+ if (!_optionalChain([options, 'access', _177 => _177.env, 'optionalAccess', _178 => _178._applied])) {
37958
37734
  Object.assign(environment, options.env);
37959
37735
  environment._applied = true;
37960
37736
  }
@@ -37963,7 +37739,7 @@ async function loadDotenv(options) {
37963
37739
  }
37964
37740
  return environment;
37965
37741
  }
37966
- function interpolate(target, source = {}, parse5 = (v) => v) {
37742
+ function interpolate(target, source = {}, parse4 = (v) => v) {
37967
37743
  function getValue(key) {
37968
37744
  return source[key] === void 0 ? target[key] : source[key];
37969
37745
  }
@@ -37972,7 +37748,7 @@ function interpolate(target, source = {}, parse5 = (v) => v) {
37972
37748
  return value2;
37973
37749
  }
37974
37750
  const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
37975
- return parse5(
37751
+ return parse4(
37976
37752
  // eslint-disable-next-line unicorn/no-array-reduce
37977
37753
  matches.reduce((newValue, match) => {
37978
37754
  const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
@@ -38003,7 +37779,7 @@ function interpolate(target, source = {}, parse5 = (v) => v) {
38003
37779
  target[key] = interpolate2(getValue(key));
38004
37780
  }
38005
37781
  }
38006
- var _normalize2 = (p) => _optionalChain([p, 'optionalAccess', _176 => _176.replace, 'call', _177 => _177(/\\/g, "/")]);
37782
+ var _normalize2 = (p) => _optionalChain([p, 'optionalAccess', _179 => _179.replace, 'call', _180 => _180(/\\/g, "/")]);
38007
37783
  var ASYNC_LOADERS = {
38008
37784
  ".yaml": () => Promise.resolve().then(() => _interopRequireWildcard2(require("./yaml-WPTJ2ZU5.cjs"))).then((r) => r.parseYAML),
38009
37785
  ".yml": () => Promise.resolve().then(() => _interopRequireWildcard2(require("./yaml-WPTJ2ZU5.cjs"))).then((r) => r.parseYAML),
@@ -38092,7 +37868,7 @@ async function loadConfig(options) {
38092
37868
  ]).filter((t) => t && typeof t === "string");
38093
37869
  const pkgJsonFile = await _chunkFMYKTN2Zcjs.readPackageJSON.call(void 0, options.cwd).catch(() => {
38094
37870
  });
38095
- const values = keys.map((key) => _optionalChain([pkgJsonFile, 'optionalAccess', _178 => _178[key]]));
37871
+ const values = keys.map((key) => _optionalChain([pkgJsonFile, 'optionalAccess', _181 => _181[key]]));
38096
37872
  _configs.packageJson = _merger({}, ...values);
38097
37873
  }
38098
37874
  const configs = {};
@@ -38275,7 +38051,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
38275
38051
  if (options.envName) {
38276
38052
  const envConfig = {
38277
38053
  ...res.config["$" + options.envName],
38278
- ..._optionalChain([res, 'access', _179 => _179.config, 'access', _180 => _180.$env, 'optionalAccess', _181 => _181[options.envName]])
38054
+ ..._optionalChain([res, 'access', _182 => _182.config, 'access', _183 => _183.$env, 'optionalAccess', _184 => _184[options.envName]])
38279
38055
  };
38280
38056
  if (Object.keys(envConfig).length > 0) {
38281
38057
  res.config = _merger(envConfig, res.config);
@@ -38305,7 +38081,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
38305
38081
  cwd: workspacePath,
38306
38082
  packageJson: true,
38307
38083
  name: fileName,
38308
- envName: _optionalChain([fileName, 'optionalAccess', _182 => _182.toUpperCase, 'call', _183 => _183()]),
38084
+ envName: _optionalChain([fileName, 'optionalAccess', _185 => _185.toUpperCase, 'call', _186 => _186()]),
38309
38085
  jitiOptions: {
38310
38086
  debug: false,
38311
38087
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -38319,7 +38095,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
38319
38095
  cwd: workspacePath,
38320
38096
  packageJson: true,
38321
38097
  name: fileName,
38322
- envName: _optionalChain([fileName, 'optionalAccess', _184 => _184.toUpperCase, 'call', _185 => _185()]),
38098
+ envName: _optionalChain([fileName, 'optionalAccess', _187 => _187.toUpperCase, 'call', _188 => _188()]),
38323
38099
  jitiOptions: {
38324
38100
  debug: false,
38325
38101
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -38353,7 +38129,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
38353
38129
  )
38354
38130
  );
38355
38131
  for (const result2 of results) {
38356
- if (_optionalChain([result2, 'optionalAccess', _186 => _186.config]) && _optionalChain([result2, 'optionalAccess', _187 => _187.configFile]) && Object.keys(result2.config).length > 0) {
38132
+ if (_optionalChain([result2, 'optionalAccess', _189 => _189.config]) && _optionalChain([result2, 'optionalAccess', _190 => _190.configFile]) && Object.keys(result2.config).length > 0) {
38357
38133
  if (!config2.skipConfigLogging && !result2.config.skipConfigLogging) {
38358
38134
  writeTrace(
38359
38135
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
@@ -38561,16 +38337,16 @@ _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
38561
38337
  var setExtensionEnv = (extensionName, extension) => {
38562
38338
  for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
38563
38339
  if (extension[key]) {
38564
- const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _188 => _188.replace, 'call', _189 => _189(
38340
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _191 => _191.replace, 'call', _192 => _192(
38565
38341
  /([A-Z])+/g,
38566
- (input) => input ? _optionalChain([input, 'access', _190 => _190[0], 'optionalAccess', _191 => _191.toUpperCase, 'call', _192 => _192()]) + input.slice(1) : ""
38567
- ), 'access', _193 => _193.split, 'call', _194 => _194(/(?=[A-Z])|[.\-\s_]/), 'access', _195 => _195.map, 'call', _196 => _196((x) => x.toLowerCase())]), () => ( []));
38342
+ (input) => input ? _optionalChain([input, 'access', _193 => _193[0], 'optionalAccess', _194 => _194.toUpperCase, 'call', _195 => _195()]) + input.slice(1) : ""
38343
+ ), 'access', _196 => _196.split, 'call', _197 => _197(/(?=[A-Z])|[.\-\s_]/), 'access', _198 => _198.map, 'call', _199 => _199((x) => x.toLowerCase())]), () => ( []));
38568
38344
  let extensionKey;
38569
38345
  if (result.length === 0) {
38570
38346
  return;
38571
38347
  }
38572
38348
  if (result.length === 1) {
38573
- extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _197 => _197[0], 'optionalAccess', _198 => _198.toUpperCase, 'call', _199 => _199()]), () => ( ""));
38349
+ extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _200 => _200[0], 'optionalAccess', _201 => _201.toUpperCase, 'call', _202 => _202()]), () => ( ""));
38574
38350
  } else {
38575
38351
  extensionKey = result.reduce((ret, part) => {
38576
38352
  return `${ret}_${part.toLowerCase()}`;
@@ -38743,7 +38519,7 @@ var setConfigEnv = (config2) => {
38743
38519
  process.env.NODE_ENV = config2.mode;
38744
38520
  process.env.ENVIRONMENT = config2.mode;
38745
38521
  }
38746
- if (_optionalChain([config2, 'access', _200 => _200.colors, 'optionalAccess', _201 => _201.base, 'optionalAccess', _202 => _202.light]) || _optionalChain([config2, 'access', _203 => _203.colors, 'optionalAccess', _204 => _204.base, 'optionalAccess', _205 => _205.dark])) {
38522
+ if (_optionalChain([config2, 'access', _203 => _203.colors, 'optionalAccess', _204 => _204.base, 'optionalAccess', _205 => _205.light]) || _optionalChain([config2, 'access', _206 => _206.colors, 'optionalAccess', _207 => _207.base, 'optionalAccess', _208 => _208.dark])) {
38747
38523
  for (const key of Object.keys(config2.colors)) {
38748
38524
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config2.colors[key]);
38749
38525
  }
@@ -38804,7 +38580,7 @@ var setConfigEnv = (config2) => {
38804
38580
  }
38805
38581
  };
38806
38582
  var setThemeColorConfigEnv = (prefix, config2) => {
38807
- return _optionalChain([config2, 'optionalAccess', _206 => _206.light, 'optionalAccess', _207 => _207.brand]) || _optionalChain([config2, 'optionalAccess', _208 => _208.dark, 'optionalAccess', _209 => _209.brand]) ? setMultiThemeColorConfigEnv(prefix, config2) : setSingleThemeColorConfigEnv(prefix, config2);
38583
+ return _optionalChain([config2, 'optionalAccess', _209 => _209.light, 'optionalAccess', _210 => _210.brand]) || _optionalChain([config2, 'optionalAccess', _211 => _211.dark, 'optionalAccess', _212 => _212.brand]) ? setMultiThemeColorConfigEnv(prefix, config2) : setSingleThemeColorConfigEnv(prefix, config2);
38808
38584
  };
38809
38585
  var setSingleThemeColorConfigEnv = (prefix, config2) => {
38810
38586
  if (config2.dark) {
@@ -38906,7 +38682,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
38906
38682
  var _static_cache = void 0;
38907
38683
  var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
38908
38684
  let result;
38909
- if (!_optionalChain([_static_cache, 'optionalAccess', _210 => _210.data]) || !_optionalChain([_static_cache, 'optionalAccess', _211 => _211.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
38685
+ if (!_optionalChain([_static_cache, 'optionalAccess', _213 => _213.data]) || !_optionalChain([_static_cache, 'optionalAccess', _214 => _214.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
38910
38686
  let _workspaceRoot = workspaceRoot;
38911
38687
  if (!_workspaceRoot) {
38912
38688
  _workspaceRoot = findWorkspaceRoot();
@@ -38925,21 +38701,25 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
38925
38701
  }
38926
38702
  }
38927
38703
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
38928
- const configInput = _chunkFMYKTN2Zcjs.defu.call(void 0, configEnv, configFile, defaultConfig);
38704
+ const configInput = _chunkFMYKTN2Zcjs.defu.call(void 0,
38705
+ configEnv,
38706
+ configFile,
38707
+ defaultConfig
38708
+ );
38929
38709
  try {
38930
38710
  result = applyDefaultConfig(
38931
38711
  await stormWorkspaceConfigSchema.parseAsync(configInput)
38932
38712
  );
38933
38713
  result.workspaceRoot ??= _workspaceRoot;
38934
- } catch (error2) {
38714
+ } catch (error) {
38935
38715
  throw new Error(
38936
- `Failed to parse Storm Workspace configuration${_optionalChain([error2, 'optionalAccess', _212 => _212.message]) ? `: ${error2.message}` : ""}
38716
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _215 => _215.message]) ? `: ${error.message}` : ""}
38937
38717
 
38938
38718
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
38939
38719
  configInput
38940
38720
  )}`,
38941
38721
  {
38942
- cause: error2
38722
+ cause: error
38943
38723
  }
38944
38724
  );
38945
38725
  }