@storm-software/git-tools 2.113.7 → 2.113.9

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;
@@ -33320,7 +33320,6 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
33320
33320
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
33321
33321
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
33322
33322
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
33323
- var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
33324
33323
  var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
33325
33324
  var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
33326
33325
  var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
@@ -33342,20 +33341,14 @@ _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33342
33341
  // ../config/src/schema.ts
33343
33342
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33344
33343
 
33345
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/index.js
33344
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/index.js
33346
33345
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33347
33346
 
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
33347
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/core.js
33358
33348
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33349
+ var NEVER = Object.freeze({
33350
+ status: "aborted"
33351
+ });
33359
33352
  // @__NO_SIDE_EFFECTS__
33360
33353
  function $constructor(name, initializer3, params) {
33361
33354
  function init(inst, def) {
@@ -33412,13 +33405,13 @@ function config(newConfig) {
33412
33405
  return globalConfig;
33413
33406
  }
33414
33407
 
33415
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/parse.js
33408
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/parse.js
33416
33409
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33417
33410
 
33418
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/errors.js
33411
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/errors.js
33419
33412
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
33420
33413
 
33421
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/util.js
33414
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/util.js
33422
33415
  var util_exports = {};
33423
33416
  _chunkIG6EXAQUcjs.__export.call(void 0, util_exports, {
33424
33417
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -33784,6 +33777,9 @@ function omit(schema, mask) {
33784
33777
  });
33785
33778
  }
33786
33779
  function extend(schema, shape) {
33780
+ if (!isPlainObject(shape)) {
33781
+ throw new Error("Invalid input to extend: expected a plain object");
33782
+ }
33787
33783
  const def = {
33788
33784
  ...schema._zod.def,
33789
33785
  get shape() {
@@ -33870,7 +33866,7 @@ function required(Class2, schema, mask) {
33870
33866
  }
33871
33867
  function aborted(x, startIndex = 0) {
33872
33868
  for (let i = startIndex; i < x.issues.length; i++) {
33873
- if (x.issues[i].continue !== true)
33869
+ if (_optionalChain([x, 'access', _108 => _108.issues, 'access', _109 => _109[i], 'optionalAccess', _110 => _110.continue]) !== true)
33874
33870
  return true;
33875
33871
  }
33876
33872
  return false;
@@ -33884,17 +33880,17 @@ function prefixIssues(path, issues) {
33884
33880
  });
33885
33881
  }
33886
33882
  function unwrapMessage(message) {
33887
- return typeof message === "string" ? message : _optionalChain([message, 'optionalAccess', _108 => _108.message]);
33883
+ return typeof message === "string" ? message : _optionalChain([message, 'optionalAccess', _111 => _111.message]);
33888
33884
  }
33889
33885
  function finalizeIssue(iss, ctx, config2) {
33890
33886
  const full = { ...iss, path: _nullishCoalesce(iss.path, () => ( [])) };
33891
33887
  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"));
33888
+ 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
33889
  full.message = message;
33894
33890
  }
33895
33891
  delete full.inst;
33896
33892
  delete full.continue;
33897
- if (!_optionalChain([ctx, 'optionalAccess', _120 => _120.reportInput])) {
33893
+ if (!_optionalChain([ctx, 'optionalAccess', _123 => _123.reportInput])) {
33898
33894
  delete full.input;
33899
33895
  }
33900
33896
  return full;
@@ -33937,7 +33933,7 @@ var Class = class {
33937
33933
  }
33938
33934
  };
33939
33935
 
33940
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/errors.js
33936
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/errors.js
33941
33937
  var initializer = (inst, def) => {
33942
33938
  inst.name = "$ZodError";
33943
33939
  Object.defineProperty(inst, "_zod", {
@@ -33955,13 +33951,17 @@ var initializer = (inst, def) => {
33955
33951
  enumerable: true
33956
33952
  // configurable: false,
33957
33953
  });
33954
+ Object.defineProperty(inst, "toString", {
33955
+ value: () => inst.message,
33956
+ enumerable: false
33957
+ });
33958
33958
  };
33959
33959
  var $ZodError = $constructor("$ZodError", initializer);
33960
33960
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
33961
- function flattenError(error2, mapper = (issue2) => issue2.message) {
33961
+ function flattenError(error, mapper = (issue2) => issue2.message) {
33962
33962
  const fieldErrors = {};
33963
33963
  const formErrors = [];
33964
- for (const sub of error2.issues) {
33964
+ for (const sub of error.issues) {
33965
33965
  if (sub.path.length > 0) {
33966
33966
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
33967
33967
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -33971,13 +33971,13 @@ function flattenError(error2, mapper = (issue2) => issue2.message) {
33971
33971
  }
33972
33972
  return { formErrors, fieldErrors };
33973
33973
  }
33974
- function formatError(error2, _mapper) {
33974
+ function formatError(error, _mapper) {
33975
33975
  const mapper = _mapper || function(issue2) {
33976
33976
  return issue2.message;
33977
33977
  };
33978
33978
  const fieldErrors = { _errors: [] };
33979
- const processError = (error3) => {
33980
- for (const issue2 of error3.issues) {
33979
+ const processError = (error2) => {
33980
+ for (const issue2 of error2.issues) {
33981
33981
  if (issue2.code === "invalid_union" && issue2.errors.length) {
33982
33982
  issue2.errors.map((issues) => processError({ issues }));
33983
33983
  } else if (issue2.code === "invalid_key") {
@@ -34004,11 +34004,11 @@ function formatError(error2, _mapper) {
34004
34004
  }
34005
34005
  }
34006
34006
  };
34007
- processError(error2);
34007
+ processError(error);
34008
34008
  return fieldErrors;
34009
34009
  }
34010
34010
 
34011
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/parse.js
34011
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/parse.js
34012
34012
  var _parse = (_Err) => (schema, value2, _ctx, _params) => {
34013
34013
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
34014
34014
  const result = schema._zod.run({ value: value2, issues: [] }, ctx);
@@ -34016,8 +34016,8 @@ var _parse = (_Err) => (schema, value2, _ctx, _params) => {
34016
34016
  throw new $ZodAsyncError();
34017
34017
  }
34018
34018
  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]));
34019
+ const e = new (_nullishCoalesce(_optionalChain([_params, 'optionalAccess', _124 => _124.Err]), () => ( _Err)))(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
34020
+ captureStackTrace(e, _optionalChain([_params, 'optionalAccess', _125 => _125.callee]));
34021
34021
  throw e;
34022
34022
  }
34023
34023
  return result.value;
@@ -34028,8 +34028,8 @@ var _parseAsync = (_Err) => async (schema, value2, _ctx, params) => {
34028
34028
  if (result instanceof Promise)
34029
34029
  result = await result;
34030
34030
  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]));
34031
+ const e = new (_nullishCoalesce(_optionalChain([params, 'optionalAccess', _126 => _126.Err]), () => ( _Err)))(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
34032
+ captureStackTrace(e, _optionalChain([params, 'optionalAccess', _127 => _127.callee]));
34033
34033
  throw e;
34034
34034
  }
34035
34035
  return result.value;
@@ -34058,13 +34058,13 @@ var _safeParseAsync = (_Err) => async (schema, value2, _ctx) => {
34058
34058
  };
34059
34059
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
34060
34060
 
34061
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/schemas.js
34061
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/schemas.js
34062
34062
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34063
34063
 
34064
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/checks.js
34064
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/checks.js
34065
34065
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34066
34066
 
34067
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/regexes.js
34067
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/regexes.js
34068
34068
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34069
34069
  var cuid = /^[cC][^\s-]{8,}$/;
34070
34070
  var cuid2 = /^[0-9a-z]+$/;
@@ -34113,14 +34113,14 @@ function datetime(args) {
34113
34113
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
34114
34114
  }
34115
34115
  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]*`;
34116
+ const regex = params ? `[\\s\\S]{${_nullishCoalesce(_optionalChain([params, 'optionalAccess', _128 => _128.minimum]), () => ( 0))},${_nullishCoalesce(_optionalChain([params, 'optionalAccess', _129 => _129.maximum]), () => ( ""))}}` : `[\\s\\S]*`;
34117
34117
  return new RegExp(`^${regex}$`);
34118
34118
  };
34119
34119
  var boolean = /true|false/i;
34120
34120
  var lowercase = /^[^A-Z]*$/;
34121
34121
  var uppercase = /^[^a-z]*$/;
34122
34122
 
34123
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/checks.js
34123
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/checks.js
34124
34124
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
34125
34125
  var _a;
34126
34126
  _nullishCoalesce(inst._zod, () => ( (inst._zod = {})));
@@ -34128,11 +34128,12 @@ var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
34128
34128
  _nullishCoalesce((_a = inst._zod).onattach, () => ( (_a.onattach = [])));
34129
34129
  });
34130
34130
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
34131
+ var _a;
34131
34132
  $ZodCheck.init(inst, def);
34132
- inst._zod.when = (payload) => {
34133
+ _nullishCoalesce((_a = inst._zod.def).when, () => ( (_a.when = (payload) => {
34133
34134
  const val = payload.value;
34134
34135
  return !nullish(val) && val.length !== void 0;
34135
- };
34136
+ })));
34136
34137
  inst._zod.onattach.push((inst2) => {
34137
34138
  const curr = _nullishCoalesce(inst2._zod.bag.maximum, () => ( Number.POSITIVE_INFINITY));
34138
34139
  if (def.maximum < curr)
@@ -34156,11 +34157,12 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
34156
34157
  };
34157
34158
  });
34158
34159
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
34160
+ var _a;
34159
34161
  $ZodCheck.init(inst, def);
34160
- inst._zod.when = (payload) => {
34162
+ _nullishCoalesce((_a = inst._zod.def).when, () => ( (_a.when = (payload) => {
34161
34163
  const val = payload.value;
34162
34164
  return !nullish(val) && val.length !== void 0;
34163
- };
34165
+ })));
34164
34166
  inst._zod.onattach.push((inst2) => {
34165
34167
  const curr = _nullishCoalesce(inst2._zod.bag.minimum, () => ( Number.NEGATIVE_INFINITY));
34166
34168
  if (def.minimum > curr)
@@ -34184,11 +34186,12 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
34184
34186
  };
34185
34187
  });
34186
34188
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
34189
+ var _a;
34187
34190
  $ZodCheck.init(inst, def);
34188
- inst._zod.when = (payload) => {
34191
+ _nullishCoalesce((_a = inst._zod.def).when, () => ( (_a.when = (payload) => {
34189
34192
  const val = payload.value;
34190
34193
  return !nullish(val) && val.length !== void 0;
34191
- };
34194
+ })));
34192
34195
  inst._zod.onattach.push((inst2) => {
34193
34196
  const bag = inst2._zod.bag;
34194
34197
  bag.minimum = def.length;
@@ -34205,6 +34208,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
34205
34208
  payload.issues.push({
34206
34209
  origin,
34207
34210
  ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },
34211
+ inclusive: true,
34212
+ exact: true,
34208
34213
  input: payload.value,
34209
34214
  inst,
34210
34215
  continue: !def.abort
@@ -34212,7 +34217,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
34212
34217
  };
34213
34218
  });
34214
34219
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
34215
- var _a;
34220
+ var _a, _b;
34216
34221
  $ZodCheck.init(inst, def);
34217
34222
  inst._zod.onattach.push((inst2) => {
34218
34223
  const bag = inst2._zod.bag;
@@ -34222,22 +34227,24 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
34222
34227
  bag.patterns.add(def.pattern);
34223
34228
  }
34224
34229
  });
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
- })));
34230
+ if (def.pattern)
34231
+ _nullishCoalesce((_a = inst._zod).check, () => ( (_a.check = (payload) => {
34232
+ def.pattern.lastIndex = 0;
34233
+ if (def.pattern.test(payload.value))
34234
+ return;
34235
+ payload.issues.push({
34236
+ origin: "string",
34237
+ code: "invalid_format",
34238
+ format: def.format,
34239
+ input: payload.value,
34240
+ ...def.pattern ? { pattern: def.pattern.toString() } : {},
34241
+ inst,
34242
+ continue: !def.abort
34243
+ });
34244
+ })));
34245
+ else
34246
+ _nullishCoalesce((_b = inst._zod).check, () => ( (_b.check = () => {
34247
+ })));
34241
34248
  });
34242
34249
  var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
34243
34250
  $ZodCheckStringFormat.init(inst, def);
@@ -34341,7 +34348,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
34341
34348
  };
34342
34349
  });
34343
34350
 
34344
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/doc.js
34351
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/doc.js
34345
34352
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34346
34353
  var Doc = class {
34347
34354
  constructor(args = []) {
@@ -34371,26 +34378,25 @@ var Doc = class {
34371
34378
  }
34372
34379
  compile() {
34373
34380
  const F = Function;
34374
- const args = _optionalChain([this, 'optionalAccess', _127 => _127.args]);
34375
- const content = _nullishCoalesce(_optionalChain([this, 'optionalAccess', _128 => _128.content]), () => ( [``]));
34381
+ const args = _optionalChain([this, 'optionalAccess', _130 => _130.args]);
34382
+ const content = _nullishCoalesce(_optionalChain([this, 'optionalAccess', _131 => _131.content]), () => ( [``]));
34376
34383
  const lines = [...content.map((x) => ` ${x}`)];
34377
34384
  return new F(...args, lines.join("\n"));
34378
34385
  }
34379
34386
  };
34380
34387
 
34381
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/versions.js
34388
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/versions.js
34382
34389
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
34383
34390
  var version = {
34384
34391
  major: 4,
34385
34392
  minor: 0,
34386
- patch: 0
34393
+ patch: 2
34387
34394
  };
34388
34395
 
34389
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/schemas.js
34396
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/schemas.js
34390
34397
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34391
34398
  var _a;
34392
34399
  _nullishCoalesce(inst, () => ( (inst = {})));
34393
- defineLazy(inst._zod, "id", () => def.type + "_" + randomString(10));
34394
34400
  inst._zod.def = def;
34395
34401
  inst._zod.bag = inst._zod.bag || {};
34396
34402
  inst._zod.version = version;
@@ -34405,7 +34411,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34405
34411
  }
34406
34412
  if (checks.length === 0) {
34407
34413
  _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(() => {
34414
+ _optionalChain([inst, 'access', _132 => _132._zod, 'access', _133 => _133.deferred, 'optionalAccess', _134 => _134.push, 'call', _135 => _135(() => {
34409
34415
  inst._zod.run = inst._zod.parse;
34410
34416
  })]);
34411
34417
  } else {
@@ -34413,8 +34419,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34413
34419
  let isAborted = aborted(payload);
34414
34420
  let asyncResult;
34415
34421
  for (const ch of checks2) {
34416
- if (ch._zod.when) {
34417
- const shouldRun = ch._zod.when(payload);
34422
+ if (ch._zod.def.when) {
34423
+ const shouldRun = ch._zod.def.when(payload);
34418
34424
  if (!shouldRun)
34419
34425
  continue;
34420
34426
  } else if (isAborted) {
@@ -34422,7 +34428,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34422
34428
  }
34423
34429
  const currLen = payload.issues.length;
34424
34430
  const _ = ch._zod.check(payload);
34425
- if (_ instanceof Promise && _optionalChain([ctx, 'optionalAccess', _133 => _133.async]) === false) {
34431
+ if (_ instanceof Promise && _optionalChain([ctx, 'optionalAccess', _136 => _136.async]) === false) {
34426
34432
  throw new $ZodAsyncError();
34427
34433
  }
34428
34434
  if (asyncResult || _ instanceof Promise) {
@@ -34463,9 +34469,9 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34463
34469
  validate: (value2) => {
34464
34470
  try {
34465
34471
  const r = safeParse(inst, value2);
34466
- return r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _134 => _134.error, 'optionalAccess', _135 => _135.issues]) };
34472
+ return r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _137 => _137.error, 'optionalAccess', _138 => _138.issues]) };
34467
34473
  } catch (_) {
34468
- return safeParseAsync(inst, value2).then((r) => r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _136 => _136.error, 'optionalAccess', _137 => _137.issues]) });
34474
+ return safeParseAsync(inst, value2).then((r) => r.success ? { value: r.data } : { issues: _optionalChain([r, 'access', _139 => _139.error, 'optionalAccess', _140 => _140.issues]) });
34469
34475
  }
34470
34476
  },
34471
34477
  vendor: "zod",
@@ -34474,7 +34480,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
34474
34480
  });
34475
34481
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
34476
34482
  $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)));
34483
+ 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
34484
  inst._zod.parse = (payload, _) => {
34479
34485
  if (def.coerce)
34480
34486
  try {
@@ -34528,7 +34534,9 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
34528
34534
  $ZodStringFormat.init(inst, def);
34529
34535
  inst._zod.check = (payload) => {
34530
34536
  try {
34531
- const url = new URL(payload.value);
34537
+ const orig = payload.value;
34538
+ const url = new URL(orig);
34539
+ const href = url.href;
34532
34540
  if (def.hostname) {
34533
34541
  def.hostname.lastIndex = 0;
34534
34542
  if (!def.hostname.test(url.hostname)) {
@@ -34557,6 +34565,11 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
34557
34565
  });
34558
34566
  }
34559
34567
  }
34568
+ if (!orig.endsWith("/") && href.endsWith("/")) {
34569
+ payload.value = href.slice(0, -1);
34570
+ } else {
34571
+ payload.value = href;
34572
+ }
34560
34573
  return;
34561
34574
  } catch (_) {
34562
34575
  payload.issues.push({
@@ -34600,7 +34613,6 @@ var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
34600
34613
  var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
34601
34614
  _nullishCoalesce(def.pattern, () => ( (def.pattern = datetime(def))));
34602
34615
  $ZodStringFormat.init(inst, def);
34603
- const _super = inst._zod.check;
34604
34616
  });
34605
34617
  var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
34606
34618
  _nullishCoalesce(def.pattern, () => ( (def.pattern = date)));
@@ -34609,7 +34621,6 @@ var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
34609
34621
  var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
34610
34622
  _nullishCoalesce(def.pattern, () => ( (def.pattern = time(def))));
34611
34623
  $ZodStringFormat.init(inst, def);
34612
- const _super = inst._zod.check;
34613
34624
  });
34614
34625
  var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
34615
34626
  _nullishCoalesce(def.pattern, () => ( (def.pattern = duration)));
@@ -34738,8 +34749,10 @@ function isValidJWT(token, algorithm = null) {
34738
34749
  if (tokensParts.length !== 3)
34739
34750
  return false;
34740
34751
  const [header] = tokensParts;
34752
+ if (!header)
34753
+ return false;
34741
34754
  const parsedHeader = JSON.parse(atob(header));
34742
- if ("typ" in parsedHeader && _optionalChain([parsedHeader, 'optionalAccess', _141 => _141.typ]) !== "JWT")
34755
+ if ("typ" in parsedHeader && _optionalChain([parsedHeader, 'optionalAccess', _144 => _144.typ]) !== "JWT")
34743
34756
  return false;
34744
34757
  if (!parsedHeader.alg)
34745
34758
  return false;
@@ -34901,19 +34914,20 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34901
34914
  });
34902
34915
  const generateFastpass = (shape) => {
34903
34916
  const doc = new Doc(["shape", "payload", "ctx"]);
34904
- const { keys, optionalKeys: optionalKeys2 } = _normalized.value;
34917
+ const normalized = _normalized.value;
34905
34918
  const parseStr = (key) => {
34906
34919
  const k = esc(key);
34907
34920
  return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
34908
34921
  };
34909
34922
  doc.write(`const input = payload.value;`);
34910
34923
  const ids = /* @__PURE__ */ Object.create(null);
34911
- for (const key of keys) {
34912
- ids[key] = randomString(15);
34924
+ let counter = 0;
34925
+ for (const key of normalized.keys) {
34926
+ ids[key] = `key_${counter++}`;
34913
34927
  }
34914
34928
  doc.write(`const newResult = {}`);
34915
- for (const key of keys) {
34916
- if (optionalKeys2.has(key)) {
34929
+ for (const key of normalized.keys) {
34930
+ if (normalized.optionalKeys.has(key)) {
34917
34931
  const id = ids[key];
34918
34932
  doc.write(`const ${id} = ${parseStr(key)};`);
34919
34933
  const k = esc(key);
@@ -34958,7 +34972,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34958
34972
  const jit = !globalConfig.jitless;
34959
34973
  const allowsEval2 = allowsEval;
34960
34974
  const fastEnabled = jit && allowsEval2.value;
34961
- const { catchall } = def;
34975
+ const catchall = def.catchall;
34962
34976
  let value2;
34963
34977
  inst._zod.parse = (payload, ctx) => {
34964
34978
  _nullishCoalesce(value2, () => ( (value2 = _normalized.value)));
@@ -34973,7 +34987,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
34973
34987
  return payload;
34974
34988
  }
34975
34989
  const proms = [];
34976
- if (jit && fastEnabled && _optionalChain([ctx, 'optionalAccess', _142 => _142.async]) === false && ctx.jitless !== true) {
34990
+ if (jit && fastEnabled && _optionalChain([ctx, 'optionalAccess', _145 => _145.async]) === false && ctx.jitless !== true) {
34977
34991
  if (!fastpass)
34978
34992
  fastpass = generateFastpass(def.shape);
34979
34993
  payload = fastpass(payload, ctx);
@@ -35046,6 +35060,8 @@ function handleUnionResults(results, final, inst, ctx) {
35046
35060
  }
35047
35061
  var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
35048
35062
  $ZodType.init(inst, def);
35063
+ defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
35064
+ defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
35049
35065
  defineLazy(inst._zod, "values", () => {
35050
35066
  if (def.options.every((o) => o._zod.values)) {
35051
35067
  return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
@@ -35086,7 +35102,7 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
35086
35102
  var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
35087
35103
  $ZodType.init(inst, def);
35088
35104
  inst._zod.parse = (payload, ctx) => {
35089
- const { value: input } = payload;
35105
+ const input = payload.value;
35090
35106
  const left = def.left._zod.run({ value: input, issues: [] }, ctx);
35091
35107
  const right = def.right._zod.run({ value: input, issues: [] }, ctx);
35092
35108
  const async = left instanceof Promise || right instanceof Promise;
@@ -35318,6 +35334,9 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
35318
35334
  return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
35319
35335
  });
35320
35336
  inst._zod.parse = (payload, ctx) => {
35337
+ if (def.innerType._zod.optin === "optional") {
35338
+ return def.innerType._zod.run(payload, ctx);
35339
+ }
35321
35340
  if (payload.value === void 0) {
35322
35341
  return payload;
35323
35342
  }
@@ -35401,7 +35420,7 @@ function handleNonOptionalResult(payload, inst) {
35401
35420
  }
35402
35421
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
35403
35422
  $ZodType.init(inst, def);
35404
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
35423
+ inst._zod.optin = "optional";
35405
35424
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
35406
35425
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
35407
35426
  inst._zod.parse = (payload, ctx) => {
@@ -35458,6 +35477,7 @@ function handlePipeResult(left, def, ctx) {
35458
35477
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
35459
35478
  $ZodType.init(inst, def);
35460
35479
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
35480
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
35461
35481
  defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
35462
35482
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
35463
35483
  inst._zod.parse = (payload, ctx) => {
@@ -35506,246 +35526,13 @@ function handleRefineResult(result, payload, input, inst) {
35506
35526
  }
35507
35527
  }
35508
35528
 
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
35529
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/registries.js
35743
35530
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35744
35531
  var $output = Symbol("ZodOutput");
35745
35532
  var $input = Symbol("ZodInput");
35746
35533
  var $ZodRegistry = class {
35747
35534
  constructor() {
35748
- this._map = /* @__PURE__ */ new WeakMap();
35535
+ this._map = /* @__PURE__ */ new Map();
35749
35536
  this._idmap = /* @__PURE__ */ new Map();
35750
35537
  }
35751
35538
  add(schema, ..._meta) {
@@ -35759,7 +35546,16 @@ var $ZodRegistry = class {
35759
35546
  }
35760
35547
  return this;
35761
35548
  }
35549
+ clear() {
35550
+ this._map = /* @__PURE__ */ new Map();
35551
+ this._idmap = /* @__PURE__ */ new Map();
35552
+ return this;
35553
+ }
35762
35554
  remove(schema) {
35555
+ const meta = this._map.get(schema);
35556
+ if (meta && typeof meta === "object" && "id" in meta) {
35557
+ this._idmap.delete(meta.id);
35558
+ }
35763
35559
  this._map.delete(schema);
35764
35560
  return this;
35765
35561
  }
@@ -35781,10 +35577,7 @@ function registry() {
35781
35577
  }
35782
35578
  var globalRegistry = /* @__PURE__ */ registry();
35783
35579
 
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
35580
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/core/api.js
35788
35581
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
35789
35582
  function _string(Class2, params) {
35790
35583
  return new Class2({
@@ -36157,19 +35950,13 @@ function _refine(Class2, fn, _params) {
36157
35950
  return schema;
36158
35951
  }
36159
35952
 
36160
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/to-json-schema.js
35953
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/schemas.js
36161
35954
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36162
35955
 
36163
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/core/json-schema.js
35956
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/checks.js
36164
35957
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36165
35958
 
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
35959
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/iso.js
36173
35960
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36174
35961
  var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
36175
35962
  $ZodISODateTime.init(inst, def);
@@ -36200,10 +35987,10 @@ function duration2(params) {
36200
35987
  return _isoDuration(ZodISODuration, params);
36201
35988
  }
36202
35989
 
36203
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/parse.js
35990
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/parse.js
36204
35991
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36205
35992
 
36206
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/errors.js
35993
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/errors.js
36207
35994
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
36208
35995
  var initializer2 = (inst, issues) => {
36209
35996
  $ZodError.init(inst, issues);
@@ -36238,13 +36025,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
36238
36025
  Parent: Error
36239
36026
  });
36240
36027
 
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);
36028
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/parse.js
36029
+ var parse = /* @__PURE__ */ _parse(ZodRealError);
36030
+ var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
36244
36031
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
36245
36032
  var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
36246
36033
 
36247
- // ../../node_modules/.pnpm/zod@3.25.67/node_modules/zod/dist/esm/v4/classic/schemas.js
36034
+ // ../../node_modules/.pnpm/zod@4.0.2/node_modules/zod/v4/classic/schemas.js
36248
36035
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36249
36036
  $ZodType.init(inst, def);
36250
36037
  inst.def = def;
@@ -36267,9 +36054,9 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36267
36054
  reg.add(inst, meta);
36268
36055
  return inst;
36269
36056
  };
36270
- inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
36057
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
36271
36058
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
36272
- inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
36059
+ inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
36273
36060
  inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params);
36274
36061
  inst.spa = inst.safeParseAsync;
36275
36062
  inst.refine = (check2, params) => inst.check(refine(check2, params));
@@ -36295,7 +36082,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
36295
36082
  };
36296
36083
  Object.defineProperty(inst, "description", {
36297
36084
  get() {
36298
- return _optionalChain([globalRegistry, 'access', _143 => _143.get, 'call', _144 => _144(inst), 'optionalAccess', _145 => _145.description]);
36085
+ return _optionalChain([globalRegistry, 'access', _146 => _146.get, 'call', _147 => _147(inst), 'optionalAccess', _148 => _148.description]);
36299
36086
  },
36300
36087
  configurable: true
36301
36088
  });
@@ -36759,10 +36546,10 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
36759
36546
  $ZodCustom.init(inst, def);
36760
36547
  ZodType.init(inst, def);
36761
36548
  });
36762
- function check(fn, params) {
36549
+ function check(fn) {
36763
36550
  const ch = new $ZodCheck({
36764
- check: "custom",
36765
- ...util_exports.normalizeParams(params)
36551
+ check: "custom"
36552
+ // ...util.normalizeParams(params),
36766
36553
  });
36767
36554
  ch._zod.check = fn;
36768
36555
  return ch;
@@ -36770,7 +36557,7 @@ function check(fn, params) {
36770
36557
  function refine(fn, _params = {}) {
36771
36558
  return _refine(ZodCustom, fn, _params);
36772
36559
  }
36773
- function superRefine(fn, params) {
36560
+ function superRefine(fn) {
36774
36561
  const ch = check((payload) => {
36775
36562
  payload.addIssue = (issue2) => {
36776
36563
  if (typeof issue2 === "string") {
@@ -36787,22 +36574,10 @@ function superRefine(fn, params) {
36787
36574
  }
36788
36575
  };
36789
36576
  return fn(payload.value, payload);
36790
- }, params);
36577
+ });
36791
36578
  return ch;
36792
36579
  }
36793
36580
 
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
36581
  // ../config/src/schema.ts
36807
36582
  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
36583
  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");
@@ -36902,13 +36677,13 @@ var WorkspaceBotConfigSchema = object({
36902
36677
  "The workspace's bot user's config used to automated various operations tasks"
36903
36678
  );
36904
36679
  var WorkspaceReleaseConfigSchema = object({
36905
- banner: string2().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
36680
+ banner: string2().trim().optional().describe(
36906
36681
  "A URL to a banner image used to display the workspace's release"
36907
36682
  ),
36908
36683
  header: string2().trim().optional().describe(
36909
36684
  "A header message appended to the start of the workspace's release notes"
36910
36685
  ),
36911
- footer: string2().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
36686
+ footer: string2().trim().optional().describe(
36912
36687
  "A footer message appended to the end of the workspace's release notes"
36913
36688
  )
36914
36689
  }).describe("The workspace's release config used during the release process");
@@ -37373,7 +37148,7 @@ function applyDefaultConfig(config2) {
37373
37148
  if (!config2.contact) {
37374
37149
  config2.contact = `${config2.homepage}/contact`;
37375
37150
  }
37376
- if (!_optionalChain([config2, 'access', _146 => _146.error, 'optionalAccess', _147 => _147.codesFile]) || !_optionalChain([config2, 'optionalAccess', _148 => _148.error, 'optionalAccess', _149 => _149.url])) {
37151
+ if (!_optionalChain([config2, 'access', _149 => _149.error, 'optionalAccess', _150 => _150.codesFile]) || !_optionalChain([config2, 'optionalAccess', _151 => _151.error, 'optionalAccess', _152 => _152.url])) {
37377
37152
  config2.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
37378
37153
  if (config2.homepage) {
37379
37154
  config2.error.url ??= `${config2.homepage}/errors`;
@@ -37407,7 +37182,7 @@ var chalkDefault = {
37407
37182
  };
37408
37183
  var getChalk = () => {
37409
37184
  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])) {
37185
+ 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
37186
  _chalk = chalkDefault;
37412
37187
  }
37413
37188
  return _chalk;
@@ -37505,7 +37280,7 @@ var isVerbose = (label = LogLevelLabel.SILENT) => {
37505
37280
 
37506
37281
  // ../config-tools/src/logger/console.ts
37507
37282
  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;
37283
+ 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
37284
  const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
37510
37285
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
37511
37286
  return (_) => {
@@ -37608,7 +37383,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
37608
37383
  };
37609
37384
  var _isFunction = (value2) => {
37610
37385
  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]));
37386
+ 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
37387
  } catch (e) {
37613
37388
  return false;
37614
37389
  }
@@ -37629,17 +37404,17 @@ var handleProcess = (config2) => {
37629
37404
  `Using the following arguments to process the script: ${process.argv.join(", ")}`,
37630
37405
  config2
37631
37406
  );
37632
- process.on("unhandledRejection", (error2) => {
37407
+ process.on("unhandledRejection", (error) => {
37633
37408
  writeError(
37634
- `An Unhandled Rejection occurred while running the program: ${error2}`,
37409
+ `An Unhandled Rejection occurred while running the program: ${error}`,
37635
37410
  config2
37636
37411
  );
37637
37412
  exitWithError(config2);
37638
37413
  });
37639
- process.on("uncaughtException", (error2) => {
37414
+ process.on("uncaughtException", (error) => {
37640
37415
  writeError(
37641
- `An Uncaught Exception occurred while running the program: ${error2.message}
37642
- Stacktrace: ${error2.stack}`,
37416
+ `An Uncaught Exception occurred while running the program: ${error.message}
37417
+ Stacktrace: ${error.stack}`,
37643
37418
  config2
37644
37419
  );
37645
37420
  exitWithError(config2);
@@ -37764,9 +37539,9 @@ function destr(value2, options = {}) {
37764
37539
  return JSON.parse(value2, jsonParseTransform);
37765
37540
  }
37766
37541
  return JSON.parse(value2);
37767
- } catch (error2) {
37542
+ } catch (error) {
37768
37543
  if (options.strict) {
37769
- throw error2;
37544
+ throw error;
37770
37545
  }
37771
37546
  return value2;
37772
37547
  }
@@ -37889,7 +37664,7 @@ function withDefaults(options) {
37889
37664
  }
37890
37665
  return { ...defaults, ...options };
37891
37666
  }
37892
- function parse3(contents, options = {}) {
37667
+ function parse2(contents, options = {}) {
37893
37668
  const config2 = {};
37894
37669
  const lines = contents.split(RE_LINES);
37895
37670
  for (const line of lines) {
@@ -37918,7 +37693,7 @@ function parseFile(path, options) {
37918
37693
  if (!_fs3.existsSync.call(void 0, path)) {
37919
37694
  return {};
37920
37695
  }
37921
- return parse3(_fs3.readFileSync.call(void 0, path, "utf8"), options);
37696
+ return parse2(_fs3.readFileSync.call(void 0, path, "utf8"), options);
37922
37697
  }
37923
37698
  function read(options) {
37924
37699
  options = withDefaults(options);
@@ -37954,7 +37729,7 @@ async function loadDotenv(options) {
37954
37729
  const parsed = dotenv.parse(await _fs3.promises.readFile(dotenvFile, "utf8"));
37955
37730
  Object.assign(environment, parsed);
37956
37731
  }
37957
- if (!_optionalChain([options, 'access', _174 => _174.env, 'optionalAccess', _175 => _175._applied])) {
37732
+ if (!_optionalChain([options, 'access', _177 => _177.env, 'optionalAccess', _178 => _178._applied])) {
37958
37733
  Object.assign(environment, options.env);
37959
37734
  environment._applied = true;
37960
37735
  }
@@ -37963,7 +37738,7 @@ async function loadDotenv(options) {
37963
37738
  }
37964
37739
  return environment;
37965
37740
  }
37966
- function interpolate(target, source = {}, parse5 = (v) => v) {
37741
+ function interpolate(target, source = {}, parse4 = (v) => v) {
37967
37742
  function getValue(key) {
37968
37743
  return source[key] === void 0 ? target[key] : source[key];
37969
37744
  }
@@ -37972,7 +37747,7 @@ function interpolate(target, source = {}, parse5 = (v) => v) {
37972
37747
  return value2;
37973
37748
  }
37974
37749
  const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
37975
- return parse5(
37750
+ return parse4(
37976
37751
  // eslint-disable-next-line unicorn/no-array-reduce
37977
37752
  matches.reduce((newValue, match) => {
37978
37753
  const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
@@ -38003,7 +37778,7 @@ function interpolate(target, source = {}, parse5 = (v) => v) {
38003
37778
  target[key] = interpolate2(getValue(key));
38004
37779
  }
38005
37780
  }
38006
- var _normalize2 = (p) => _optionalChain([p, 'optionalAccess', _176 => _176.replace, 'call', _177 => _177(/\\/g, "/")]);
37781
+ var _normalize2 = (p) => _optionalChain([p, 'optionalAccess', _179 => _179.replace, 'call', _180 => _180(/\\/g, "/")]);
38007
37782
  var ASYNC_LOADERS = {
38008
37783
  ".yaml": () => Promise.resolve().then(() => _interopRequireWildcard2(require("./yaml-WPTJ2ZU5.cjs"))).then((r) => r.parseYAML),
38009
37784
  ".yml": () => Promise.resolve().then(() => _interopRequireWildcard2(require("./yaml-WPTJ2ZU5.cjs"))).then((r) => r.parseYAML),
@@ -38092,7 +37867,7 @@ async function loadConfig(options) {
38092
37867
  ]).filter((t) => t && typeof t === "string");
38093
37868
  const pkgJsonFile = await _chunkFMYKTN2Zcjs.readPackageJSON.call(void 0, options.cwd).catch(() => {
38094
37869
  });
38095
- const values = keys.map((key) => _optionalChain([pkgJsonFile, 'optionalAccess', _178 => _178[key]]));
37870
+ const values = keys.map((key) => _optionalChain([pkgJsonFile, 'optionalAccess', _181 => _181[key]]));
38096
37871
  _configs.packageJson = _merger({}, ...values);
38097
37872
  }
38098
37873
  const configs = {};
@@ -38275,7 +38050,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
38275
38050
  if (options.envName) {
38276
38051
  const envConfig = {
38277
38052
  ...res.config["$" + options.envName],
38278
- ..._optionalChain([res, 'access', _179 => _179.config, 'access', _180 => _180.$env, 'optionalAccess', _181 => _181[options.envName]])
38053
+ ..._optionalChain([res, 'access', _182 => _182.config, 'access', _183 => _183.$env, 'optionalAccess', _184 => _184[options.envName]])
38279
38054
  };
38280
38055
  if (Object.keys(envConfig).length > 0) {
38281
38056
  res.config = _merger(envConfig, res.config);
@@ -38305,7 +38080,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
38305
38080
  cwd: workspacePath,
38306
38081
  packageJson: true,
38307
38082
  name: fileName,
38308
- envName: _optionalChain([fileName, 'optionalAccess', _182 => _182.toUpperCase, 'call', _183 => _183()]),
38083
+ envName: _optionalChain([fileName, 'optionalAccess', _185 => _185.toUpperCase, 'call', _186 => _186()]),
38309
38084
  jitiOptions: {
38310
38085
  debug: false,
38311
38086
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -38319,7 +38094,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
38319
38094
  cwd: workspacePath,
38320
38095
  packageJson: true,
38321
38096
  name: fileName,
38322
- envName: _optionalChain([fileName, 'optionalAccess', _184 => _184.toUpperCase, 'call', _185 => _185()]),
38097
+ envName: _optionalChain([fileName, 'optionalAccess', _187 => _187.toUpperCase, 'call', _188 => _188()]),
38323
38098
  jitiOptions: {
38324
38099
  debug: false,
38325
38100
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -38353,7 +38128,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
38353
38128
  )
38354
38129
  );
38355
38130
  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) {
38131
+ if (_optionalChain([result2, 'optionalAccess', _189 => _189.config]) && _optionalChain([result2, 'optionalAccess', _190 => _190.configFile]) && Object.keys(result2.config).length > 0) {
38357
38132
  if (!config2.skipConfigLogging && !result2.config.skipConfigLogging) {
38358
38133
  writeTrace(
38359
38134
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
@@ -38561,16 +38336,16 @@ _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
38561
38336
  var setExtensionEnv = (extensionName, extension) => {
38562
38337
  for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
38563
38338
  if (extension[key]) {
38564
- const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _188 => _188.replace, 'call', _189 => _189(
38339
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _191 => _191.replace, 'call', _192 => _192(
38565
38340
  /([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())]), () => ( []));
38341
+ (input) => input ? _optionalChain([input, 'access', _193 => _193[0], 'optionalAccess', _194 => _194.toUpperCase, 'call', _195 => _195()]) + input.slice(1) : ""
38342
+ ), 'access', _196 => _196.split, 'call', _197 => _197(/(?=[A-Z])|[.\-\s_]/), 'access', _198 => _198.map, 'call', _199 => _199((x) => x.toLowerCase())]), () => ( []));
38568
38343
  let extensionKey;
38569
38344
  if (result.length === 0) {
38570
38345
  return;
38571
38346
  }
38572
38347
  if (result.length === 1) {
38573
- extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _197 => _197[0], 'optionalAccess', _198 => _198.toUpperCase, 'call', _199 => _199()]), () => ( ""));
38348
+ extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _200 => _200[0], 'optionalAccess', _201 => _201.toUpperCase, 'call', _202 => _202()]), () => ( ""));
38574
38349
  } else {
38575
38350
  extensionKey = result.reduce((ret, part) => {
38576
38351
  return `${ret}_${part.toLowerCase()}`;
@@ -38743,7 +38518,7 @@ var setConfigEnv = (config2) => {
38743
38518
  process.env.NODE_ENV = config2.mode;
38744
38519
  process.env.ENVIRONMENT = config2.mode;
38745
38520
  }
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])) {
38521
+ 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
38522
  for (const key of Object.keys(config2.colors)) {
38748
38523
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config2.colors[key]);
38749
38524
  }
@@ -38804,7 +38579,7 @@ var setConfigEnv = (config2) => {
38804
38579
  }
38805
38580
  };
38806
38581
  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);
38582
+ 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
38583
  };
38809
38584
  var setSingleThemeColorConfigEnv = (prefix, config2) => {
38810
38585
  if (config2.dark) {
@@ -38906,7 +38681,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
38906
38681
  var _static_cache = void 0;
38907
38682
  var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
38908
38683
  let result;
38909
- if (!_optionalChain([_static_cache, 'optionalAccess', _210 => _210.data]) || !_optionalChain([_static_cache, 'optionalAccess', _211 => _211.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
38684
+ if (!_optionalChain([_static_cache, 'optionalAccess', _213 => _213.data]) || !_optionalChain([_static_cache, 'optionalAccess', _214 => _214.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
38910
38685
  let _workspaceRoot = workspaceRoot;
38911
38686
  if (!_workspaceRoot) {
38912
38687
  _workspaceRoot = findWorkspaceRoot();
@@ -38925,21 +38700,25 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
38925
38700
  }
38926
38701
  }
38927
38702
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
38928
- const configInput = _chunkFMYKTN2Zcjs.defu.call(void 0, configEnv, configFile, defaultConfig);
38703
+ const configInput = _chunkFMYKTN2Zcjs.defu.call(void 0,
38704
+ configEnv,
38705
+ configFile,
38706
+ defaultConfig
38707
+ );
38929
38708
  try {
38930
38709
  result = applyDefaultConfig(
38931
38710
  await stormWorkspaceConfigSchema.parseAsync(configInput)
38932
38711
  );
38933
38712
  result.workspaceRoot ??= _workspaceRoot;
38934
- } catch (error2) {
38713
+ } catch (error) {
38935
38714
  throw new Error(
38936
- `Failed to parse Storm Workspace configuration${_optionalChain([error2, 'optionalAccess', _212 => _212.message]) ? `: ${error2.message}` : ""}
38715
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _215 => _215.message]) ? `: ${error.message}` : ""}
38937
38716
 
38938
38717
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
38939
38718
  configInput
38940
38719
  )}`,
38941
38720
  {
38942
- cause: error2
38721
+ cause: error
38943
38722
  }
38944
38723
  );
38945
38724
  }