@storm-software/untyped 0.18.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/untyped.js CHANGED
@@ -3183,7 +3183,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3183
3183
  debug2(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error), ctx.opts.fsCache = false;
3184
3184
  }
3185
3185
  }
3186
- function transform3(ctx, topts) {
3186
+ function transform2(ctx, topts) {
3187
3187
  let code = getCache(ctx, topts, () => {
3188
3188
  const res = ctx.opts.transform({ ...ctx.opts.transformOptions, babel: { ...ctx.opts.sourceMaps ? { sourceFileName: topts.filename, sourceMaps: "inline" } : {}, ...ctx.opts.transformOptions?.babel }, interopDefault: ctx.opts.interopDefault, ...topts });
3189
3189
  return res.error && ctx.opts.debug && debug2(ctx, res.error), res.code;
@@ -3206,15 +3206,15 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3206
3206
  }
3207
3207
  }(filename)?.type, isCommonJS = ".cjs" === ext, needsTranspile = evalOptions.forceTranspile ?? (!isCommonJS && !(isESM && evalOptions.async) && (isTypescript || isESM || ctx.isTransformRe.test(filename) || hasESMSyntax(source))), start = external_node_perf_hooks_namespaceObject.performance.now();
3208
3208
  if (needsTranspile) {
3209
- source = transform3(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false, jsx: ctx.opts.jsx });
3210
- const time3 = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start)) / 1e3;
3211
- debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time3}ms)`);
3209
+ source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false, jsx: ctx.opts.jsx });
3210
+ const time2 = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start)) / 1e3;
3211
+ debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time2}ms)`);
3212
3212
  } else {
3213
3213
  if (debug2(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), evalOptions.async) return Promise.resolve(nativeImportOrRequire(ctx, filename, evalOptions.async)).catch((error) => (debug2(ctx, "Native import error:", error), debug2(ctx, "[fallback]", filename), eval_evalModule(ctx, source, { ...evalOptions, forceTranspile: true })));
3214
3214
  try {
3215
3215
  return nativeImportOrRequire(ctx, filename, evalOptions.async);
3216
3216
  } catch (error) {
3217
- debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source = transform3(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false, jsx: ctx.opts.jsx });
3217
+ debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false, jsx: ctx.opts.jsx });
3218
3218
  }
3219
3219
  }
3220
3220
  const mod = new external_node_module_namespaceObject.Module(filename);
@@ -3266,7 +3266,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3266
3266
  return jitiRequire(ctx, id, { async: false });
3267
3267
  }, { cache: opts.moduleCache ? nativeRequire.cache : /* @__PURE__ */ Object.create(null), extensions: nativeRequire.extensions, main: nativeRequire.main, options: opts, resolve: Object.assign(function(path2) {
3268
3268
  return jitiResolve(ctx, path2, { async: false });
3269
- }, { paths: nativeRequire.resolve.paths }), transform: (opts2) => transform3(ctx, opts2), evalModule: (source, options) => eval_evalModule(ctx, source, options), async import(id, opts2) {
3269
+ }, { paths: nativeRequire.resolve.paths }), transform: (opts2) => transform2(ctx, opts2), evalModule: (source, options) => eval_evalModule(ctx, source, options), async import(id, opts2) {
3270
3270
  const mod = await jitiRequire(ctx, id, { ...opts2, async: true });
3271
3271
  return opts2?.default ? mod?.default ?? mod : mod;
3272
3272
  }, esmResolve(id, opts2) {
@@ -3628,11 +3628,11 @@ Did you specify these with the most recent transformation maps first?`);
3628
3628
  intToChar[i2] = c3, charToInt[c3] = i2;
3629
3629
  }
3630
3630
  function decodeInteger(reader, relative2) {
3631
- let value2 = 0, shift = 0, integer2 = 0;
3631
+ let value2 = 0, shift = 0, integer = 0;
3632
3632
  do {
3633
3633
  const c3 = reader.next();
3634
- integer2 = charToInt[c3], value2 |= (31 & integer2) << shift, shift += 5;
3635
- } while (32 & integer2);
3634
+ integer = charToInt[c3], value2 |= (31 & integer) << shift, shift += 5;
3635
+ } while (32 & integer);
3636
3636
  const shouldNegate = 1 & value2;
3637
3637
  return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative2 + value2;
3638
3638
  }
@@ -4647,9 +4647,9 @@ Did you specify these with the most recent transformation maps first?`);
4647
4647
  "use strict";
4648
4648
  const object2 = {}, hasOwnProperty4 = object2.hasOwnProperty, forOwn = (object3, callback) => {
4649
4649
  for (const key in object3) hasOwnProperty4.call(object3, key) && callback(key, object3[key]);
4650
- }, fourHexEscape = (hex) => "\\u" + ("0000" + hex).slice(-4), hexadecimal = (code, lowercase2) => {
4650
+ }, fourHexEscape = (hex) => "\\u" + ("0000" + hex).slice(-4), hexadecimal = (code, lowercase) => {
4651
4651
  let hexadecimal2 = code.toString(16);
4652
- return lowercase2 ? hexadecimal2 : hexadecimal2.toUpperCase();
4652
+ return lowercase ? hexadecimal2 : hexadecimal2.toUpperCase();
4653
4653
  }, toString2 = object2.toString, isArray2 = Array.isArray, isBigInt = (value2) => "bigint" == typeof value2, singleEscapes = { "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t" }, regexSingleEscape = /[\\\b\f\n\r\t]/, regexDigit = /[0-9]/, regexWhitespace = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, escapeEverythingRegex = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g, escapeNonAsciiRegex = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, jsesc = (argument, options) => {
4654
4654
  const increaseIndentation = () => {
4655
4655
  oldIndent = indent, ++options.indentLevel, indent = options.indent.repeat(options.indentLevel);
@@ -9556,8 +9556,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9556
9556
  return this.printList(members, null == (_this$shouldPrintTrai = this.shouldPrintTrailingComma("}")) || _this$shouldPrintTrai, true, true);
9557
9557
  });
9558
9558
  }, exports3.TSEnumMember = function(node) {
9559
- const { id, initializer: initializer3 } = node;
9560
- this.print(id), initializer3 && (this.space(), this.tokenChar(61), this.space(), this.print(initializer3));
9559
+ const { id, initializer: initializer2 } = node;
9560
+ this.print(id), initializer2 && (this.space(), this.tokenChar(61), this.space(), this.print(initializer2));
9561
9561
  }, exports3.TSExportAssignment = function(node) {
9562
9562
  this.word("export"), this.space(), this.tokenChar(61), this.space(), this.print(node.expression), this.semicolon();
9563
9563
  }, exports3.TSExternalModuleReference = function(node) {
@@ -9573,9 +9573,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9573
9573
  this.word("import"), this.tokenChar(40), this.print(argument), this.tokenChar(41), qualifier && (this.tokenChar(46), this.print(qualifier));
9574
9574
  typeParameters && this.print(typeParameters);
9575
9575
  }, exports3.TSIndexSignature = function(node) {
9576
- const { readonly: readonly2, static: isStatic } = node;
9576
+ const { readonly, static: isStatic } = node;
9577
9577
  isStatic && (this.word("static"), this.space());
9578
- readonly2 && (this.word("readonly"), this.space());
9578
+ readonly && (this.word("readonly"), this.space());
9579
9579
  this.tokenChar(91), this._parameters(node.parameters, "]"), this.print(node.typeAnnotation), maybePrintTrailingCommaOrSemicolon(this, node);
9580
9580
  }, exports3.TSIndexedAccessType = function(node) {
9581
9581
  this.print(node.objectType, true), this.tokenChar(91), this.print(node.indexType), this.tokenChar(93);
@@ -9597,10 +9597,10 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9597
9597
  }, exports3.TSLiteralType = function(node) {
9598
9598
  this.print(node.literal);
9599
9599
  }, exports3.TSMappedType = function(node) {
9600
- const { nameType, optional: optional2, readonly: readonly2, typeAnnotation } = node;
9600
+ const { nameType, optional: optional2, readonly, typeAnnotation } = node;
9601
9601
  this.tokenChar(123);
9602
9602
  const exit = this.enterDelimited();
9603
- this.space(), readonly2 && (tokenIfPlusMinus(this, readonly2), this.word("readonly"), this.space());
9603
+ this.space(), readonly && (tokenIfPlusMinus(this, readonly), this.word("readonly"), this.space());
9604
9604
  this.tokenChar(91), this.word(node.typeParameter.name), this.space(), this.word("in"), this.space(), this.print(node.typeParameter.constraint), nameType && (this.space(), this.word("as"), this.space(), this.print(nameType));
9605
9605
  this.tokenChar(93), optional2 && (tokenIfPlusMinus(this, optional2), this.tokenChar(63));
9606
9606
  typeAnnotation && (this.tokenChar(58), this.space(), this.print(typeAnnotation));
@@ -9644,8 +9644,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9644
9644
  }, exports3.TSParenthesizedType = function(node) {
9645
9645
  this.tokenChar(40), this.print(node.typeAnnotation), this.tokenChar(41);
9646
9646
  }, exports3.TSPropertySignature = function(node) {
9647
- const { readonly: readonly2 } = node;
9648
- readonly2 && (this.word("readonly"), this.space());
9647
+ const { readonly } = node;
9648
+ readonly && (this.word("readonly"), this.space());
9649
9649
  this.tsPrintPropertyOrMethodName(node), this.print(node.typeAnnotation), maybePrintTrailingCommaOrSemicolon(this, node);
9650
9650
  }, exports3.TSQualifiedName = function(node) {
9651
9651
  this.print(node.left), this.tokenChar(46), this.print(node.right);
@@ -10626,76 +10626,76 @@ ${" ".repeat(indentSize)}`);
10626
10626
  return { VariableDeclarator(path2, state) {
10627
10627
  const id = path2.node.id;
10628
10628
  if ("Identifier" === id.type) {
10629
- const initializer3 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("init"));
10630
- if (isAnonymous(initializer3)) {
10629
+ const initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("init"));
10630
+ if (isAnonymous(initializer2)) {
10631
10631
  const name2 = id.name;
10632
- visitor(initializer3, state, name2);
10632
+ visitor(initializer2, state, name2);
10633
10633
  }
10634
10634
  }
10635
10635
  }, AssignmentExpression(path2, state) {
10636
10636
  const id = path2.node.left;
10637
10637
  if ("Identifier" === id.type) {
10638
- const initializer3 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("right"));
10639
- if (isAnonymous(initializer3)) switch (path2.node.operator) {
10638
+ const initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("right"));
10639
+ if (isAnonymous(initializer2)) switch (path2.node.operator) {
10640
10640
  case "=":
10641
10641
  case "&&=":
10642
10642
  case "||=":
10643
10643
  case "??=":
10644
- visitor(initializer3, state, id.name);
10644
+ visitor(initializer2, state, id.name);
10645
10645
  }
10646
10646
  }
10647
10647
  }, AssignmentPattern(path2, state) {
10648
10648
  const id = path2.node.left;
10649
10649
  if ("Identifier" === id.type) {
10650
- const initializer3 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("right"));
10651
- if (isAnonymous(initializer3)) {
10650
+ const initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("right"));
10651
+ if (isAnonymous(initializer2)) {
10652
10652
  const name2 = id.name;
10653
- visitor(initializer3, state, name2);
10653
+ visitor(initializer2, state, name2);
10654
10654
  }
10655
10655
  }
10656
10656
  }, ObjectExpression(path2, state) {
10657
10657
  for (const propertyPath of path2.get("properties")) {
10658
10658
  if (!propertyPath.isObjectProperty()) continue;
10659
- const { node } = propertyPath, id = node.key, initializer3 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(propertyPath.get("value"));
10660
- if (isAnonymous(initializer3)) {
10659
+ const { node } = propertyPath, id = node.key, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(propertyPath.get("value"));
10660
+ if (isAnonymous(initializer2)) {
10661
10661
  if (node.computed) {
10662
10662
  const ref2 = handleComputedProperty(propertyPath, id, state);
10663
- visitor(initializer3, state, ref2);
10664
- } else if (!isProtoKey(id)) if ("Identifier" === id.type) visitor(initializer3, state, id.name);
10663
+ visitor(initializer2, state, ref2);
10664
+ } else if (!isProtoKey(id)) if ("Identifier" === id.type) visitor(initializer2, state, id.name);
10665
10665
  else {
10666
10666
  const className = _core.types.stringLiteral(id.value + "");
10667
- visitor(initializer3, state, className);
10667
+ visitor(initializer2, state, className);
10668
10668
  }
10669
10669
  }
10670
10670
  }
10671
10671
  }, ClassPrivateProperty(path2, state) {
10672
- const { node } = path2, initializer3 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
10673
- if (isAnonymous(initializer3)) {
10672
+ const { node } = path2, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
10673
+ if (isAnonymous(initializer2)) {
10674
10674
  const className = _core.types.stringLiteral("#" + node.key.id.name);
10675
- visitor(initializer3, state, className);
10675
+ visitor(initializer2, state, className);
10676
10676
  }
10677
10677
  }, ClassAccessorProperty(path2, state) {
10678
- const { node } = path2, id = node.key, initializer3 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
10679
- if (isAnonymous(initializer3)) if (node.computed) {
10678
+ const { node } = path2, id = node.key, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
10679
+ if (isAnonymous(initializer2)) if (node.computed) {
10680
10680
  const ref2 = handleComputedProperty(path2, id, state);
10681
- visitor(initializer3, state, ref2);
10682
- } else if ("Identifier" === id.type) visitor(initializer3, state, id.name);
10681
+ visitor(initializer2, state, ref2);
10682
+ } else if ("Identifier" === id.type) visitor(initializer2, state, id.name);
10683
10683
  else if ("PrivateName" === id.type) {
10684
10684
  const className = _core.types.stringLiteral("#" + id.id.name);
10685
- visitor(initializer3, state, className);
10685
+ visitor(initializer2, state, className);
10686
10686
  } else {
10687
10687
  const className = _core.types.stringLiteral(id.value + "");
10688
- visitor(initializer3, state, className);
10688
+ visitor(initializer2, state, className);
10689
10689
  }
10690
10690
  }, ClassProperty(path2, state) {
10691
- const { node } = path2, id = node.key, initializer3 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
10692
- if (isAnonymous(initializer3)) if (node.computed) {
10691
+ const { node } = path2, id = node.key, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
10692
+ if (isAnonymous(initializer2)) if (node.computed) {
10693
10693
  const ref2 = handleComputedProperty(path2, id, state);
10694
- visitor(initializer3, state, ref2);
10695
- } else if ("Identifier" === id.type) visitor(initializer3, state, id.name);
10694
+ visitor(initializer2, state, ref2);
10695
+ } else if ("Identifier" === id.type) visitor(initializer2, state, id.name);
10696
10696
  else {
10697
10697
  const className = _core.types.stringLiteral(id.value + "");
10698
- visitor(initializer3, state, className);
10698
+ visitor(initializer2, state, className);
10699
10699
  }
10700
10700
  } };
10701
10701
  }(isDecoratedAnonymousClassExpression, visitClass);
@@ -11093,8 +11093,8 @@ ${" ".repeat(indentSize)}`);
11093
11093
  key.isSequenceExpression() ? expressions.push(...key.node.expressions) : expressions.push(key.node), key.replaceWith(maybeSequenceExpression(expressions));
11094
11094
  }
11095
11095
  function prependExpressionsToFieldInitializer(expressions, fieldPath) {
11096
- const initializer3 = fieldPath.get("value");
11097
- initializer3.node ? expressions.push(initializer3.node) : expressions.length > 0 && (expressions[expressions.length - 1] = _core.types.unaryExpression("void", expressions[expressions.length - 1])), initializer3.replaceWith(maybeSequenceExpression(expressions));
11096
+ const initializer2 = fieldPath.get("value");
11097
+ initializer2.node ? expressions.push(initializer2.node) : expressions.length > 0 && (expressions[expressions.length - 1] = _core.types.unaryExpression("void", expressions[expressions.length - 1])), initializer2.replaceWith(maybeSequenceExpression(expressions));
11098
11098
  }
11099
11099
  function prependExpressionsToStaticBlock(expressions, blockPath) {
11100
11100
  blockPath.unshiftContainer("body", _core.types.expressionStatement(maybeSequenceExpression(expressions)));
@@ -14355,12 +14355,12 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
14355
14355
  startsWithDot || null !== this.readInt(10) || this.raise(Errors.InvalidNumber, this.state.curPosition());
14356
14356
  const hasLeadingZero = this.state.pos - start >= 2 && 48 === this.input.charCodeAt(start);
14357
14357
  if (hasLeadingZero) {
14358
- const integer2 = this.input.slice(start, this.state.pos);
14358
+ const integer = this.input.slice(start, this.state.pos);
14359
14359
  if (this.recordStrictModeErrors(Errors.StrictOctalLiteral, startLoc), !this.state.strict) {
14360
- const underscorePos = integer2.indexOf("_");
14360
+ const underscorePos = integer.indexOf("_");
14361
14361
  underscorePos > 0 && this.raise(Errors.ZeroDigitNumericSeparator, createPositionWithColumnOffset(startLoc, underscorePos));
14362
14362
  }
14363
- isOctal = hasLeadingZero && !/[89]/.test(integer2);
14363
+ isOctal = hasLeadingZero && !/[89]/.test(integer);
14364
14364
  }
14365
14365
  let next = this.input.charCodeAt(this.state.pos);
14366
14366
  if (46 !== next || isOctal || (++this.state.pos, this.readInt(10), isFloat = true, next = this.input.charCodeAt(this.state.pos)), 69 !== next && 101 !== next || isOctal || (next = this.input.charCodeAt(++this.state.pos), 43 !== next && 45 !== next || ++this.state.pos, null === this.readInt(10) && this.raise(Errors.InvalidOrMissingExponent, startLoc), isFloat = true, hasExponent = true, next = this.input.charCodeAt(this.state.pos)), 110 === next && ((isFloat || hasLeadingZero) && this.raise(Errors.InvalidBigIntLiteral, startLoc), ++this.state.pos, isBigInt = true), 109 === next) {
@@ -16637,11 +16637,11 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
16637
16637
  const type = this.tsTryParseTypeAnnotation();
16638
16638
  return type && (node.typeAnnotation = type), this.tsParseTypeMemberSemicolon(), this.finishNode(node, "TSIndexSignature");
16639
16639
  }
16640
- tsParsePropertyOrMethodSignature(node, readonly2) {
16640
+ tsParsePropertyOrMethodSignature(node, readonly) {
16641
16641
  this.eat(17) && (node.optional = true);
16642
16642
  const nodeAny = node;
16643
16643
  if (this.match(10) || this.match(47)) {
16644
- readonly2 && this.raise(TSErrors.ReadonlyForMethodSignature, node);
16644
+ readonly && this.raise(TSErrors.ReadonlyForMethodSignature, node);
16645
16645
  const method = nodeAny;
16646
16646
  method.kind && this.match(47) && this.raise(TSErrors.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, method), this.tsParseTypeMemberSemicolon();
16647
16647
  const paramsKey = "parameters", returnTypeKey = "typeAnnotation";
@@ -16658,7 +16658,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
16658
16658
  }
16659
16659
  {
16660
16660
  const property = nodeAny;
16661
- readonly2 && (property.readonly = true);
16661
+ readonly && (property.readonly = true);
16662
16662
  const type = this.tsTryParseTypeAnnotation();
16663
16663
  return type && (property.typeAnnotation = type), this.tsParseTypeMemberSemicolon(), this.finishNode(property, "TSPropertySignature");
16664
16664
  }
@@ -17179,14 +17179,14 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
17179
17179
  parseAssignableListItem(flags, decorators) {
17180
17180
  const startLoc = this.state.startLoc, modified = {};
17181
17181
  this.tsParseModifiers({ allowedModifiers: ["public", "private", "protected", "override", "readonly"] }, modified);
17182
- const accessibility = modified.accessibility, override = modified.override, readonly2 = modified.readonly;
17183
- 4 & flags || !(accessibility || readonly2 || override) || this.raise(TSErrors.UnexpectedParameterModifier, startLoc);
17182
+ const accessibility = modified.accessibility, override = modified.override, readonly = modified.readonly;
17183
+ 4 & flags || !(accessibility || readonly || override) || this.raise(TSErrors.UnexpectedParameterModifier, startLoc);
17184
17184
  const left = this.parseMaybeDefault();
17185
17185
  2 & flags && this.parseFunctionParamType(left);
17186
17186
  const elt = this.parseMaybeDefault(left.loc.start, left);
17187
- if (accessibility || readonly2 || override) {
17187
+ if (accessibility || readonly || override) {
17188
17188
  const pp2 = this.startNodeAt(startLoc);
17189
- return decorators.length && (pp2.decorators = decorators), accessibility && (pp2.accessibility = accessibility), readonly2 && (pp2.readonly = readonly2), override && (pp2.override = override), "Identifier" !== elt.type && "AssignmentPattern" !== elt.type && this.raise(TSErrors.UnsupportedParameterPropertyKind, pp2), pp2.parameter = elt, this.finishNode(pp2, "TSParameterProperty");
17189
+ return decorators.length && (pp2.decorators = decorators), accessibility && (pp2.accessibility = accessibility), readonly && (pp2.readonly = readonly), override && (pp2.override = override), "Identifier" !== elt.type && "AssignmentPattern" !== elt.type && this.raise(TSErrors.UnsupportedParameterPropertyKind, pp2), pp2.parameter = elt, this.finishNode(pp2, "TSParameterProperty");
17190
17190
  }
17191
17191
  return decorators.length && (left.decorators = decorators), elt;
17192
17192
  }
@@ -19740,8 +19740,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
19740
19740
  if (node.computed) throw path2.buildCodeFrameError("Computed method/property decorators are not yet supported.");
19741
19741
  const property = _core.types.isLiteral(node.key) ? node.key : _core.types.stringLiteral(node.key.name), target = path2.isClass() && !node.static ? buildClassPrototype({ CLASS_REF: name2 }).expression : name2;
19742
19742
  if (_core.types.isClassProperty(node, { static: false })) {
19743
- const descriptor = path2.scope.generateDeclaredUidIdentifier("descriptor"), initializer3 = node.value ? _core.types.functionExpression(null, [], _core.types.blockStatement([_core.types.returnStatement(node.value)])) : _core.types.nullLiteral();
19744
- node.value = _core.types.callExpression(state.addHelper("initializerWarningHelper"), [descriptor, _core.types.thisExpression()]), WARNING_CALLS.add(node.value), acc.push(_core.types.assignmentExpression("=", _core.types.cloneNode(descriptor), _core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map((dec) => _core.types.cloneNode(dec.expression))), _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("enumerable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("writable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("initializer"), initializer3)])])));
19743
+ const descriptor = path2.scope.generateDeclaredUidIdentifier("descriptor"), initializer2 = node.value ? _core.types.functionExpression(null, [], _core.types.blockStatement([_core.types.returnStatement(node.value)])) : _core.types.nullLiteral();
19744
+ node.value = _core.types.callExpression(state.addHelper("initializerWarningHelper"), [descriptor, _core.types.thisExpression()]), WARNING_CALLS.add(node.value), acc.push(_core.types.assignmentExpression("=", _core.types.cloneNode(descriptor), _core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map((dec) => _core.types.cloneNode(dec.expression))), _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("enumerable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("writable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("initializer"), initializer2)])])));
19745
19745
  } else acc.push(_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map((dec) => _core.types.cloneNode(dec.expression))), _core.types.isObjectProperty(node) || _core.types.isClassProperty(node, { static: true }) ? buildGetObjectInitializer({ TEMP: path2.scope.generateDeclaredUidIdentifier("init"), TARGET: _core.types.cloneNode(target), PROPERTY: _core.types.cloneNode(property) }).expression : buildGetDescriptor({ TARGET: _core.types.cloneNode(target), PROPERTY: _core.types.cloneNode(property) }).expression, _core.types.cloneNode(target)]));
19746
19746
  return acc;
19747
19747
  }, []);
@@ -24872,9 +24872,9 @@ ${str}
24872
24872
  }, exports3.tSEnumDeclaration = exports3.tsEnumDeclaration = function(id, members) {
24873
24873
  const node = { type: "TSEnumDeclaration", id, members }, defs = NODE_FIELDS.TSEnumDeclaration;
24874
24874
  return validate(defs.id, node, "id", id, 1), validate(defs.members, node, "members", members, 1), node;
24875
- }, exports3.tSEnumMember = exports3.tsEnumMember = function(id, initializer3 = null) {
24876
- const node = { type: "TSEnumMember", id, initializer: initializer3 }, defs = NODE_FIELDS.TSEnumMember;
24877
- return validate(defs.id, node, "id", id, 1), validate(defs.initializer, node, "initializer", initializer3, 1), node;
24875
+ }, exports3.tSEnumMember = exports3.tsEnumMember = function(id, initializer2 = null) {
24876
+ const node = { type: "TSEnumMember", id, initializer: initializer2 }, defs = NODE_FIELDS.TSEnumMember;
24877
+ return validate(defs.id, node, "id", id, 1), validate(defs.initializer, node, "initializer", initializer2, 1), node;
24878
24878
  }, exports3.tSExportAssignment = exports3.tsExportAssignment = function(expression) {
24879
24879
  const node = { type: "TSExportAssignment", expression }, defs = NODE_FIELDS.TSExportAssignment;
24880
24880
  return validate(defs.expression, node, "expression", expression, 1), node;
@@ -29251,7 +29251,7 @@ ${trace}`);
29251
29251
  var __webpack_exports__ = {};
29252
29252
  (() => {
29253
29253
  "use strict";
29254
- __webpack_require__.d(__webpack_exports__, { default: () => transform3 });
29254
+ __webpack_require__.d(__webpack_exports__, { default: () => transform2 });
29255
29255
  var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js"), plugin_proposal_decorators_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-proposal-decorators/lib/index.js"), plugin_syntax_class_properties_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.26.0/node_modules/@babel/plugin-syntax-class-properties/lib/index.js"), plugin_syntax_import_assertions_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-import-assertions@7.26.0_@babel+core@7.26.0/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js"), plugin_syntax_jsx_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-jsx@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-syntax-jsx/lib/index.js"), plugin_transform_export_namespace_from_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-export-namespace-from@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js"), plugin_transform_react_jsx_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-react-jsx@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-transform-react-jsx/lib/index.js"), plugin_transform_typescript_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.26.3_@babel+core@7.26.0/node_modules/@babel/plugin-transform-typescript/lib/index.js"), babel_plugin_parameter_decorator_lib = __webpack_require__("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js"), babel_plugin_parameter_decorator_lib_default = __webpack_require__.n(babel_plugin_parameter_decorator_lib), helper_plugin_utils_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.25.9/node_modules/@babel/helper-plugin-utils/lib/index.js");
29256
29256
  function createParamDecorator(paramIndex, decoratorExpression, isConstructor = false) {
29257
29257
  return lib.types.decorator(lib.types.functionExpression(null, [lib.types.identifier("target"), lib.types.identifier("key")], lib.types.blockStatement([lib.types.returnStatement(lib.types.callExpression(decoratorExpression, [lib.types.identifier("target"), lib.types.identifier(isConstructor ? "undefined" : "key"), lib.types.numericLiteral(paramIndex)]))])));
@@ -31666,7 +31666,7 @@ ${trace}`);
31666
31666
  });
31667
31667
  } } } };
31668
31668
  });
31669
- function transform3(opts) {
31669
+ function transform2(opts) {
31670
31670
  const _opts = { babelrc: false, configFile: false, compact: false, retainLines: "boolean" != typeof opts.retainLines || opts.retainLines, filename: "", cwd: "/", ...opts.babel, plugins: [[transform_module, { allowTopLevelThis: true, noInterop: !opts.interopDefault, async: opts.async }], [importMetaPathsPlugin, { filename: opts.filename }], [importMetaEnvPlugin], [importMetaResolvePlugin], [plugin_syntax_class_properties_lib.A], [plugin_transform_export_namespace_from_lib.A]] };
31671
31671
  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) && _opts.plugins?.push(...opts.babel.plugins);
31672
31672
  try {
@@ -43849,7 +43849,7 @@ var require_header = __commonJS({
43849
43849
  var encSmallNumber = (buf, off, size, number2) => buf.write(octalString(number2, size), off, size, "ascii");
43850
43850
  var octalString = (number2, size) => padOctal(Math.floor(number2).toString(8), size);
43851
43851
  var padOctal = (string3, size) => (string3.length === size - 1 ? string3 : new Array(size - string3.length - 1).join("0") + string3 + " ") + "\0";
43852
- var encDate = (buf, off, size, date3) => date3 === null ? false : encNumber(buf, off, size, date3.getTime() / 1e3);
43852
+ var encDate = (buf, off, size, date2) => date2 === null ? false : encNumber(buf, off, size, date2.getTime() / 1e3);
43853
43853
  var NULLS = new Array(156).join("\0");
43854
43854
  var encString = (buf, off, size, string3) => string3 === null ? false : (buf.write(string3 + NULLS, off, size, "utf8"), string3.length !== Buffer.byteLength(string3) || string3.length > size);
43855
43855
  module.exports = Header;
@@ -47228,12 +47228,12 @@ var require_path_reservations = __commonJS({
47228
47228
  dirs: [...res.dirs].map((path2) => queues.get(path2))
47229
47229
  };
47230
47230
  };
47231
- const check2 = (fn2) => {
47231
+ const check = (fn2) => {
47232
47232
  const { paths, dirs } = getQueues(fn2);
47233
47233
  return paths.every((q6) => q6[0] === fn2) && dirs.every((q6) => q6[0] instanceof Set && q6[0].has(fn2));
47234
47234
  };
47235
47235
  const run = (fn2) => {
47236
- if (running.has(fn2) || !check2(fn2)) {
47236
+ if (running.has(fn2) || !check(fn2)) {
47237
47237
  return false;
47238
47238
  }
47239
47239
  running.add(fn2);
@@ -47304,7 +47304,7 @@ var require_path_reservations = __commonJS({
47304
47304
  });
47305
47305
  return run(fn2);
47306
47306
  };
47307
- return { check: check2, reserve };
47307
+ return { check, reserve };
47308
47308
  };
47309
47309
  }
47310
47310
  });
@@ -63028,8 +63028,8 @@ var require_conversions = __commonJS({
63028
63028
  return [r6, g5, b6];
63029
63029
  };
63030
63030
  convert.rgb.hex = function(args) {
63031
- const integer2 = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
63032
- const string3 = integer2.toString(16).toUpperCase();
63031
+ const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
63032
+ const string3 = integer.toString(16).toUpperCase();
63033
63033
  return "000000".substring(string3.length) + string3;
63034
63034
  };
63035
63035
  convert.hex.rgb = function(args) {
@@ -63043,10 +63043,10 @@ var require_conversions = __commonJS({
63043
63043
  return char + char;
63044
63044
  }).join("");
63045
63045
  }
63046
- const integer2 = parseInt(colorString, 16);
63047
- const r6 = integer2 >> 16 & 255;
63048
- const g5 = integer2 >> 8 & 255;
63049
- const b6 = integer2 & 255;
63046
+ const integer = parseInt(colorString, 16);
63047
+ const r6 = integer >> 16 & 255;
63048
+ const g5 = integer >> 8 & 255;
63049
+ const b6 = integer & 255;
63050
63050
  return [r6, g5, b6];
63051
63051
  };
63052
63052
  convert.rgb.hcg = function(rgb) {
@@ -63209,8 +63209,8 @@ var require_conversions = __commonJS({
63209
63209
  };
63210
63210
  convert.gray.hex = function(gray) {
63211
63211
  const val = Math.round(gray[0] / 100 * 255) & 255;
63212
- const integer2 = (val << 16) + (val << 8) + val;
63213
- const string3 = integer2.toString(16).toUpperCase();
63212
+ const integer = (val << 16) + (val << 8) + val;
63213
+ const string3 = integer.toString(16).toUpperCase();
63214
63214
  return "000000".substring(string3.length) + string3;
63215
63215
  };
63216
63216
  convert.rgb.gray = function(rgb) {
@@ -63967,6 +63967,9 @@ init_esm_shims();
63967
63967
  // ../config/src/schema.ts
63968
63968
  init_esm_shims();
63969
63969
 
63970
+ // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/external.js
63971
+ init_esm_shims();
63972
+
63970
63973
  // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/index.js
63971
63974
  init_esm_shims();
63972
63975
 
@@ -63976,7 +63979,7 @@ var NEVER = Object.freeze({
63976
63979
  status: "aborted"
63977
63980
  });
63978
63981
  // @__NO_SIDE_EFFECTS__
63979
- function $constructor(name2, initializer3, params) {
63982
+ function $constructor(name2, initializer2, params) {
63980
63983
  function init(inst, def) {
63981
63984
  var _a;
63982
63985
  Object.defineProperty(inst, "_zod", {
@@ -63985,7 +63988,7 @@ function $constructor(name2, initializer3, params) {
63985
63988
  });
63986
63989
  (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
63987
63990
  inst._zod.traits.add(name2);
63988
- initializer3(inst, def);
63991
+ initializer2(inst, def);
63989
63992
  for (const k5 in _5.prototype) {
63990
63993
  if (!(k5 in inst))
63991
63994
  Object.defineProperty(inst, k5, { value: _5.prototype[k5].bind(inst) });
@@ -64584,55 +64587,6 @@ var initializer = (inst, def) => {
64584
64587
  };
64585
64588
  var $ZodError = $constructor("$ZodError", initializer);
64586
64589
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
64587
- function flattenError(error, mapper = (issue2) => issue2.message) {
64588
- const fieldErrors = {};
64589
- const formErrors = [];
64590
- for (const sub of error.issues) {
64591
- if (sub.path.length > 0) {
64592
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
64593
- fieldErrors[sub.path[0]].push(mapper(sub));
64594
- } else {
64595
- formErrors.push(mapper(sub));
64596
- }
64597
- }
64598
- return { formErrors, fieldErrors };
64599
- }
64600
- function formatError(error, _mapper) {
64601
- const mapper = _mapper || function(issue2) {
64602
- return issue2.message;
64603
- };
64604
- const fieldErrors = { _errors: [] };
64605
- const processError = (error2) => {
64606
- for (const issue2 of error2.issues) {
64607
- if (issue2.code === "invalid_union" && issue2.errors.length) {
64608
- issue2.errors.map((issues) => processError({ issues }));
64609
- } else if (issue2.code === "invalid_key") {
64610
- processError({ issues: issue2.issues });
64611
- } else if (issue2.code === "invalid_element") {
64612
- processError({ issues: issue2.issues });
64613
- } else if (issue2.path.length === 0) {
64614
- fieldErrors._errors.push(mapper(issue2));
64615
- } else {
64616
- let curr = fieldErrors;
64617
- let i2 = 0;
64618
- while (i2 < issue2.path.length) {
64619
- const el2 = issue2.path[i2];
64620
- const terminal = i2 === issue2.path.length - 1;
64621
- if (!terminal) {
64622
- curr[el2] = curr[el2] || { _errors: [] };
64623
- } else {
64624
- curr[el2] = curr[el2] || { _errors: [] };
64625
- curr[el2]._errors.push(mapper(issue2));
64626
- }
64627
- curr = curr[el2];
64628
- i2++;
64629
- }
64630
- }
64631
- }
64632
- };
64633
- processError(error);
64634
- return fieldErrors;
64635
- }
64636
64590
 
64637
64591
  // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/parse.js
64638
64592
  var _parse = (_Err) => (schema, value2, _ctx, _params) => {
@@ -64648,6 +64602,7 @@ var _parse = (_Err) => (schema, value2, _ctx, _params) => {
64648
64602
  }
64649
64603
  return result.value;
64650
64604
  };
64605
+ var parse = /* @__PURE__ */ _parse($ZodRealError);
64651
64606
  var _parseAsync = (_Err) => async (schema, value2, _ctx, params) => {
64652
64607
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
64653
64608
  let result = schema._zod.run({ value: value2, issues: [] }, ctx);
@@ -64660,6 +64615,7 @@ var _parseAsync = (_Err) => async (schema, value2, _ctx, params) => {
64660
64615
  }
64661
64616
  return result.value;
64662
64617
  };
64618
+ var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
64663
64619
  var _safeParse = (_Err) => (schema, value2, _ctx) => {
64664
64620
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
64665
64621
  const result = schema._zod.run({ value: value2, issues: [] }, ctx);
@@ -64692,59 +64648,14 @@ init_esm_shims();
64692
64648
 
64693
64649
  // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/regexes.js
64694
64650
  init_esm_shims();
64695
- var cuid = /^[cC][^\s-]{8,}$/;
64696
- var cuid2 = /^[0-9a-z]+$/;
64697
- var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
64698
- var xid = /^[0-9a-vA-V]{20}$/;
64699
- var ksuid = /^[A-Za-z0-9]{27}$/;
64700
- var nanoid = /^[a-zA-Z0-9_-]{21}$/;
64701
- var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
64702
- var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
64703
- var uuid = (version4) => {
64704
- if (!version4)
64705
- return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;
64706
- return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version4}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
64707
- };
64708
- var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
64709
- var _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
64710
- function emoji() {
64711
- return new RegExp(_emoji, "u");
64712
- }
64713
- var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
64714
- var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;
64715
- var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
64716
- var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
64717
- var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
64718
- var base64url = /^[A-Za-z0-9_-]*$/;
64719
64651
  var hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
64720
- var e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
64721
64652
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
64722
64653
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
64723
- function timeSource(args) {
64724
- const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
64725
- const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
64726
- return regex;
64727
- }
64728
- function time(args) {
64729
- return new RegExp(`^${timeSource(args)}$`);
64730
- }
64731
- function datetime(args) {
64732
- const time3 = timeSource({ precision: args.precision });
64733
- const opts = ["Z"];
64734
- if (args.local)
64735
- opts.push("");
64736
- if (args.offset)
64737
- opts.push(`([+-]\\d{2}:\\d{2})`);
64738
- const timeRegex = `${time3}(?:${opts.join("|")})`;
64739
- return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
64740
- }
64741
64654
  var string = (params) => {
64742
64655
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
64743
64656
  return new RegExp(`^${regex}$`);
64744
64657
  };
64745
64658
  var boolean = /true|false/i;
64746
- var lowercase = /^[^A-Z]*$/;
64747
- var uppercase = /^[^a-z]*$/;
64748
64659
 
64749
64660
  // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/checks.js
64750
64661
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
@@ -64753,64 +64664,6 @@ var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
64753
64664
  inst._zod.def = def;
64754
64665
  (_a = inst._zod).onattach ?? (_a.onattach = []);
64755
64666
  });
64756
- var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
64757
- var _a;
64758
- $ZodCheck.init(inst, def);
64759
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
64760
- const val = payload.value;
64761
- return !nullish(val) && val.length !== void 0;
64762
- });
64763
- inst._zod.onattach.push((inst2) => {
64764
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
64765
- if (def.maximum < curr)
64766
- inst2._zod.bag.maximum = def.maximum;
64767
- });
64768
- inst._zod.check = (payload) => {
64769
- const input = payload.value;
64770
- const length = input.length;
64771
- if (length <= def.maximum)
64772
- return;
64773
- const origin = getLengthableOrigin(input);
64774
- payload.issues.push({
64775
- origin,
64776
- code: "too_big",
64777
- maximum: def.maximum,
64778
- inclusive: true,
64779
- input,
64780
- inst,
64781
- continue: !def.abort
64782
- });
64783
- };
64784
- });
64785
- var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
64786
- var _a;
64787
- $ZodCheck.init(inst, def);
64788
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
64789
- const val = payload.value;
64790
- return !nullish(val) && val.length !== void 0;
64791
- });
64792
- inst._zod.onattach.push((inst2) => {
64793
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
64794
- if (def.minimum > curr)
64795
- inst2._zod.bag.minimum = def.minimum;
64796
- });
64797
- inst._zod.check = (payload) => {
64798
- const input = payload.value;
64799
- const length = input.length;
64800
- if (length >= def.minimum)
64801
- return;
64802
- const origin = getLengthableOrigin(input);
64803
- payload.issues.push({
64804
- origin,
64805
- code: "too_small",
64806
- minimum: def.minimum,
64807
- inclusive: true,
64808
- input,
64809
- inst,
64810
- continue: !def.abort
64811
- });
64812
- };
64813
- });
64814
64667
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
64815
64668
  var _a;
64816
64669
  $ZodCheck.init(inst, def);
@@ -64889,84 +64742,6 @@ var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def)
64889
64742
  });
64890
64743
  };
64891
64744
  });
64892
- var $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
64893
- def.pattern ?? (def.pattern = lowercase);
64894
- $ZodCheckStringFormat.init(inst, def);
64895
- });
64896
- var $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
64897
- def.pattern ?? (def.pattern = uppercase);
64898
- $ZodCheckStringFormat.init(inst, def);
64899
- });
64900
- var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
64901
- $ZodCheck.init(inst, def);
64902
- const escapedRegex = escapeRegex(def.includes);
64903
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
64904
- def.pattern = pattern;
64905
- inst._zod.onattach.push((inst2) => {
64906
- const bag = inst2._zod.bag;
64907
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
64908
- bag.patterns.add(pattern);
64909
- });
64910
- inst._zod.check = (payload) => {
64911
- if (payload.value.includes(def.includes, def.position))
64912
- return;
64913
- payload.issues.push({
64914
- origin: "string",
64915
- code: "invalid_format",
64916
- format: "includes",
64917
- includes: def.includes,
64918
- input: payload.value,
64919
- inst,
64920
- continue: !def.abort
64921
- });
64922
- };
64923
- });
64924
- var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
64925
- $ZodCheck.init(inst, def);
64926
- const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
64927
- def.pattern ?? (def.pattern = pattern);
64928
- inst._zod.onattach.push((inst2) => {
64929
- const bag = inst2._zod.bag;
64930
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
64931
- bag.patterns.add(pattern);
64932
- });
64933
- inst._zod.check = (payload) => {
64934
- if (payload.value.startsWith(def.prefix))
64935
- return;
64936
- payload.issues.push({
64937
- origin: "string",
64938
- code: "invalid_format",
64939
- format: "starts_with",
64940
- prefix: def.prefix,
64941
- input: payload.value,
64942
- inst,
64943
- continue: !def.abort
64944
- });
64945
- };
64946
- });
64947
- var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
64948
- $ZodCheck.init(inst, def);
64949
- const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
64950
- def.pattern ?? (def.pattern = pattern);
64951
- inst._zod.onattach.push((inst2) => {
64952
- const bag = inst2._zod.bag;
64953
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
64954
- bag.patterns.add(pattern);
64955
- });
64956
- inst._zod.check = (payload) => {
64957
- if (payload.value.endsWith(def.suffix))
64958
- return;
64959
- payload.issues.push({
64960
- origin: "string",
64961
- code: "invalid_format",
64962
- format: "ends_with",
64963
- suffix: def.suffix,
64964
- input: payload.value,
64965
- inst,
64966
- continue: !def.abort
64967
- });
64968
- };
64969
- });
64970
64745
  var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
64971
64746
  $ZodCheck.init(inst, def);
64972
64747
  inst._zod.check = (payload) => {
@@ -65128,34 +64903,6 @@ var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, d
65128
64903
  $ZodCheckStringFormat.init(inst, def);
65129
64904
  $ZodString.init(inst, def);
65130
64905
  });
65131
- var $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
65132
- def.pattern ?? (def.pattern = guid);
65133
- $ZodStringFormat.init(inst, def);
65134
- });
65135
- var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
65136
- if (def.version) {
65137
- const versionMap = {
65138
- v1: 1,
65139
- v2: 2,
65140
- v3: 3,
65141
- v4: 4,
65142
- v5: 5,
65143
- v6: 6,
65144
- v7: 7,
65145
- v8: 8
65146
- };
65147
- const v5 = versionMap[def.version];
65148
- if (v5 === void 0)
65149
- throw new Error(`Invalid UUID version: "${def.version}"`);
65150
- def.pattern ?? (def.pattern = uuid(v5));
65151
- } else
65152
- def.pattern ?? (def.pattern = uuid());
65153
- $ZodStringFormat.init(inst, def);
65154
- });
65155
- var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
65156
- def.pattern ?? (def.pattern = email);
65157
- $ZodStringFormat.init(inst, def);
65158
- });
65159
64906
  var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
65160
64907
  $ZodStringFormat.init(inst, def);
65161
64908
  inst._zod.check = (payload) => {
@@ -65208,201 +64955,6 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
65208
64955
  }
65209
64956
  };
65210
64957
  });
65211
- var $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
65212
- def.pattern ?? (def.pattern = emoji());
65213
- $ZodStringFormat.init(inst, def);
65214
- });
65215
- var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
65216
- def.pattern ?? (def.pattern = nanoid);
65217
- $ZodStringFormat.init(inst, def);
65218
- });
65219
- var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
65220
- def.pattern ?? (def.pattern = cuid);
65221
- $ZodStringFormat.init(inst, def);
65222
- });
65223
- var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
65224
- def.pattern ?? (def.pattern = cuid2);
65225
- $ZodStringFormat.init(inst, def);
65226
- });
65227
- var $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
65228
- def.pattern ?? (def.pattern = ulid);
65229
- $ZodStringFormat.init(inst, def);
65230
- });
65231
- var $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
65232
- def.pattern ?? (def.pattern = xid);
65233
- $ZodStringFormat.init(inst, def);
65234
- });
65235
- var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
65236
- def.pattern ?? (def.pattern = ksuid);
65237
- $ZodStringFormat.init(inst, def);
65238
- });
65239
- var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
65240
- def.pattern ?? (def.pattern = datetime(def));
65241
- $ZodStringFormat.init(inst, def);
65242
- });
65243
- var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
65244
- def.pattern ?? (def.pattern = date);
65245
- $ZodStringFormat.init(inst, def);
65246
- });
65247
- var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
65248
- def.pattern ?? (def.pattern = time(def));
65249
- $ZodStringFormat.init(inst, def);
65250
- });
65251
- var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
65252
- def.pattern ?? (def.pattern = duration);
65253
- $ZodStringFormat.init(inst, def);
65254
- });
65255
- var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
65256
- def.pattern ?? (def.pattern = ipv4);
65257
- $ZodStringFormat.init(inst, def);
65258
- inst._zod.onattach.push((inst2) => {
65259
- const bag = inst2._zod.bag;
65260
- bag.format = `ipv4`;
65261
- });
65262
- });
65263
- var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
65264
- def.pattern ?? (def.pattern = ipv6);
65265
- $ZodStringFormat.init(inst, def);
65266
- inst._zod.onattach.push((inst2) => {
65267
- const bag = inst2._zod.bag;
65268
- bag.format = `ipv6`;
65269
- });
65270
- inst._zod.check = (payload) => {
65271
- try {
65272
- new URL(`http://[${payload.value}]`);
65273
- } catch {
65274
- payload.issues.push({
65275
- code: "invalid_format",
65276
- format: "ipv6",
65277
- input: payload.value,
65278
- inst,
65279
- continue: !def.abort
65280
- });
65281
- }
65282
- };
65283
- });
65284
- var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
65285
- def.pattern ?? (def.pattern = cidrv4);
65286
- $ZodStringFormat.init(inst, def);
65287
- });
65288
- var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
65289
- def.pattern ?? (def.pattern = cidrv6);
65290
- $ZodStringFormat.init(inst, def);
65291
- inst._zod.check = (payload) => {
65292
- const [address, prefix] = payload.value.split("/");
65293
- try {
65294
- if (!prefix)
65295
- throw new Error();
65296
- const prefixNum = Number(prefix);
65297
- if (`${prefixNum}` !== prefix)
65298
- throw new Error();
65299
- if (prefixNum < 0 || prefixNum > 128)
65300
- throw new Error();
65301
- new URL(`http://[${address}]`);
65302
- } catch {
65303
- payload.issues.push({
65304
- code: "invalid_format",
65305
- format: "cidrv6",
65306
- input: payload.value,
65307
- inst,
65308
- continue: !def.abort
65309
- });
65310
- }
65311
- };
65312
- });
65313
- function isValidBase64(data2) {
65314
- if (data2 === "")
65315
- return true;
65316
- if (data2.length % 4 !== 0)
65317
- return false;
65318
- try {
65319
- atob(data2);
65320
- return true;
65321
- } catch {
65322
- return false;
65323
- }
65324
- }
65325
- var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
65326
- def.pattern ?? (def.pattern = base64);
65327
- $ZodStringFormat.init(inst, def);
65328
- inst._zod.onattach.push((inst2) => {
65329
- inst2._zod.bag.contentEncoding = "base64";
65330
- });
65331
- inst._zod.check = (payload) => {
65332
- if (isValidBase64(payload.value))
65333
- return;
65334
- payload.issues.push({
65335
- code: "invalid_format",
65336
- format: "base64",
65337
- input: payload.value,
65338
- inst,
65339
- continue: !def.abort
65340
- });
65341
- };
65342
- });
65343
- function isValidBase64URL(data2) {
65344
- if (!base64url.test(data2))
65345
- return false;
65346
- const base642 = data2.replace(/[-_]/g, (c3) => c3 === "-" ? "+" : "/");
65347
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
65348
- return isValidBase64(padded);
65349
- }
65350
- var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
65351
- def.pattern ?? (def.pattern = base64url);
65352
- $ZodStringFormat.init(inst, def);
65353
- inst._zod.onattach.push((inst2) => {
65354
- inst2._zod.bag.contentEncoding = "base64url";
65355
- });
65356
- inst._zod.check = (payload) => {
65357
- if (isValidBase64URL(payload.value))
65358
- return;
65359
- payload.issues.push({
65360
- code: "invalid_format",
65361
- format: "base64url",
65362
- input: payload.value,
65363
- inst,
65364
- continue: !def.abort
65365
- });
65366
- };
65367
- });
65368
- var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
65369
- def.pattern ?? (def.pattern = e164);
65370
- $ZodStringFormat.init(inst, def);
65371
- });
65372
- function isValidJWT(token, algorithm = null) {
65373
- try {
65374
- const tokensParts = token.split(".");
65375
- if (tokensParts.length !== 3)
65376
- return false;
65377
- const [header] = tokensParts;
65378
- if (!header)
65379
- return false;
65380
- const parsedHeader = JSON.parse(atob(header));
65381
- if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
65382
- return false;
65383
- if (!parsedHeader.alg)
65384
- return false;
65385
- if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
65386
- return false;
65387
- return true;
65388
- } catch {
65389
- return false;
65390
- }
65391
- }
65392
- var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
65393
- $ZodStringFormat.init(inst, def);
65394
- inst._zod.check = (payload) => {
65395
- if (isValidJWT(payload.value, def.alg))
65396
- return;
65397
- payload.issues.push({
65398
- code: "invalid_format",
65399
- format: "jwt",
65400
- input: payload.value,
65401
- inst,
65402
- continue: !def.abort
65403
- });
65404
- };
65405
- });
65406
64958
  var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
65407
64959
  $ZodType.init(inst, def);
65408
64960
  inst._zod.pattern = boolean;
@@ -65428,22 +64980,6 @@ var $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
65428
64980
  $ZodType.init(inst, def);
65429
64981
  inst._zod.parse = (payload) => payload;
65430
64982
  });
65431
- var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
65432
- $ZodType.init(inst, def);
65433
- inst._zod.parse = (payload) => payload;
65434
- });
65435
- var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
65436
- $ZodType.init(inst, def);
65437
- inst._zod.parse = (payload, _ctx) => {
65438
- payload.issues.push({
65439
- expected: "never",
65440
- code: "invalid_type",
65441
- input: payload.value,
65442
- inst
65443
- });
65444
- return payload;
65445
- };
65446
- });
65447
64983
  function handleArrayResult(result, final, index) {
65448
64984
  if (result.issues.length) {
65449
64985
  final.issues.push(...prefixIssues(index, result.issues));
@@ -65725,81 +65261,6 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
65725
65261
  });
65726
65262
  };
65727
65263
  });
65728
- var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
65729
- $ZodType.init(inst, def);
65730
- inst._zod.parse = (payload, ctx) => {
65731
- const input = payload.value;
65732
- const left = def.left._zod.run({ value: input, issues: [] }, ctx);
65733
- const right = def.right._zod.run({ value: input, issues: [] }, ctx);
65734
- const async = left instanceof Promise || right instanceof Promise;
65735
- if (async) {
65736
- return Promise.all([left, right]).then(([left2, right2]) => {
65737
- return handleIntersectionResults(payload, left2, right2);
65738
- });
65739
- }
65740
- return handleIntersectionResults(payload, left, right);
65741
- };
65742
- });
65743
- function mergeValues(a2, b6) {
65744
- if (a2 === b6) {
65745
- return { valid: true, data: a2 };
65746
- }
65747
- if (a2 instanceof Date && b6 instanceof Date && +a2 === +b6) {
65748
- return { valid: true, data: a2 };
65749
- }
65750
- if (isPlainObject(a2) && isPlainObject(b6)) {
65751
- const bKeys = Object.keys(b6);
65752
- const sharedKeys = Object.keys(a2).filter((key) => bKeys.indexOf(key) !== -1);
65753
- const newObj = { ...a2, ...b6 };
65754
- for (const key of sharedKeys) {
65755
- const sharedValue = mergeValues(a2[key], b6[key]);
65756
- if (!sharedValue.valid) {
65757
- return {
65758
- valid: false,
65759
- mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
65760
- };
65761
- }
65762
- newObj[key] = sharedValue.data;
65763
- }
65764
- return { valid: true, data: newObj };
65765
- }
65766
- if (Array.isArray(a2) && Array.isArray(b6)) {
65767
- if (a2.length !== b6.length) {
65768
- return { valid: false, mergeErrorPath: [] };
65769
- }
65770
- const newArray = [];
65771
- for (let index = 0; index < a2.length; index++) {
65772
- const itemA = a2[index];
65773
- const itemB = b6[index];
65774
- const sharedValue = mergeValues(itemA, itemB);
65775
- if (!sharedValue.valid) {
65776
- return {
65777
- valid: false,
65778
- mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
65779
- };
65780
- }
65781
- newArray.push(sharedValue.data);
65782
- }
65783
- return { valid: true, data: newArray };
65784
- }
65785
- return { valid: false, mergeErrorPath: [] };
65786
- }
65787
- function handleIntersectionResults(result, left, right) {
65788
- if (left.issues.length) {
65789
- result.issues.push(...left.issues);
65790
- }
65791
- if (right.issues.length) {
65792
- result.issues.push(...right.issues);
65793
- }
65794
- if (aborted(result))
65795
- return result;
65796
- const merged = mergeValues(left.value, right.value);
65797
- if (!merged.valid) {
65798
- throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
65799
- }
65800
- result.value = merged.data;
65801
- return result;
65802
- }
65803
65264
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
65804
65265
  $ZodType.init(inst, def);
65805
65266
  inst._zod.parse = (payload, ctx) => {
@@ -65930,24 +65391,6 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
65930
65391
  return payload;
65931
65392
  };
65932
65393
  });
65933
- var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
65934
- $ZodType.init(inst, def);
65935
- inst._zod.parse = (payload, _ctx) => {
65936
- const _out = def.transform(payload.value, payload);
65937
- if (_ctx.async) {
65938
- const output = _out instanceof Promise ? _out : Promise.resolve(_out);
65939
- return output.then((output2) => {
65940
- payload.value = output2;
65941
- return payload;
65942
- });
65943
- }
65944
- if (_out instanceof Promise) {
65945
- throw new $ZodAsyncError();
65946
- }
65947
- payload.value = _out;
65948
- return payload;
65949
- };
65950
- });
65951
65394
  var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
65952
65395
  $ZodType.init(inst, def);
65953
65396
  inst._zod.optin = "optional";
@@ -66008,150 +65451,6 @@ function handleDefaultResult(payload, def) {
66008
65451
  }
66009
65452
  return payload;
66010
65453
  }
66011
- var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
66012
- $ZodType.init(inst, def);
66013
- inst._zod.optin = "optional";
66014
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
66015
- inst._zod.parse = (payload, ctx) => {
66016
- if (payload.value === void 0) {
66017
- payload.value = def.defaultValue;
66018
- }
66019
- return def.innerType._zod.run(payload, ctx);
66020
- };
66021
- });
66022
- var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
66023
- $ZodType.init(inst, def);
66024
- defineLazy(inst._zod, "values", () => {
66025
- const v5 = def.innerType._zod.values;
66026
- return v5 ? new Set([...v5].filter((x6) => x6 !== void 0)) : void 0;
66027
- });
66028
- inst._zod.parse = (payload, ctx) => {
66029
- const result = def.innerType._zod.run(payload, ctx);
66030
- if (result instanceof Promise) {
66031
- return result.then((result2) => handleNonOptionalResult(result2, inst));
66032
- }
66033
- return handleNonOptionalResult(result, inst);
66034
- };
66035
- });
66036
- function handleNonOptionalResult(payload, inst) {
66037
- if (!payload.issues.length && payload.value === void 0) {
66038
- payload.issues.push({
66039
- code: "invalid_type",
66040
- expected: "nonoptional",
66041
- input: payload.value,
66042
- inst
66043
- });
66044
- }
66045
- return payload;
66046
- }
66047
- var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
66048
- $ZodType.init(inst, def);
66049
- inst._zod.optin = "optional";
66050
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
66051
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
66052
- inst._zod.parse = (payload, ctx) => {
66053
- const result = def.innerType._zod.run(payload, ctx);
66054
- if (result instanceof Promise) {
66055
- return result.then((result2) => {
66056
- payload.value = result2.value;
66057
- if (result2.issues.length) {
66058
- payload.value = def.catchValue({
66059
- ...payload,
66060
- error: {
66061
- issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
66062
- },
66063
- input: payload.value
66064
- });
66065
- payload.issues = [];
66066
- }
66067
- return payload;
66068
- });
66069
- }
66070
- payload.value = result.value;
66071
- if (result.issues.length) {
66072
- payload.value = def.catchValue({
66073
- ...payload,
66074
- error: {
66075
- issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
66076
- },
66077
- input: payload.value
66078
- });
66079
- payload.issues = [];
66080
- }
66081
- return payload;
66082
- };
66083
- });
66084
- var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
66085
- $ZodType.init(inst, def);
66086
- defineLazy(inst._zod, "values", () => def.in._zod.values);
66087
- defineLazy(inst._zod, "optin", () => def.in._zod.optin);
66088
- defineLazy(inst._zod, "optout", () => def.out._zod.optout);
66089
- defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
66090
- inst._zod.parse = (payload, ctx) => {
66091
- const left = def.in._zod.run(payload, ctx);
66092
- if (left instanceof Promise) {
66093
- return left.then((left2) => handlePipeResult(left2, def, ctx));
66094
- }
66095
- return handlePipeResult(left, def, ctx);
66096
- };
66097
- });
66098
- function handlePipeResult(left, def, ctx) {
66099
- if (aborted(left)) {
66100
- return left;
66101
- }
66102
- return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
66103
- }
66104
- var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
66105
- $ZodType.init(inst, def);
66106
- defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
66107
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
66108
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
66109
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
66110
- inst._zod.parse = (payload, ctx) => {
66111
- const result = def.innerType._zod.run(payload, ctx);
66112
- if (result instanceof Promise) {
66113
- return result.then(handleReadonlyResult);
66114
- }
66115
- return handleReadonlyResult(result);
66116
- };
66117
- });
66118
- function handleReadonlyResult(payload) {
66119
- payload.value = Object.freeze(payload.value);
66120
- return payload;
66121
- }
66122
- var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
66123
- $ZodCheck.init(inst, def);
66124
- $ZodType.init(inst, def);
66125
- inst._zod.parse = (payload, _5) => {
66126
- return payload;
66127
- };
66128
- inst._zod.check = (payload) => {
66129
- const input = payload.value;
66130
- const r6 = def.fn(input);
66131
- if (r6 instanceof Promise) {
66132
- return r6.then((r7) => handleRefineResult(r7, payload, input, inst));
66133
- }
66134
- handleRefineResult(r6, payload, input, inst);
66135
- return;
66136
- };
66137
- });
66138
- function handleRefineResult(result, payload, input, inst) {
66139
- if (!result) {
66140
- const _iss = {
66141
- code: "custom",
66142
- input,
66143
- inst,
66144
- // incorporates params.error into issue reporting
66145
- path: [...inst._zod.def.path ?? []],
66146
- // incorporates params.error into issue reporting
66147
- continue: !inst._zod.def.abort
66148
- // params: inst._zod.def.params,
66149
- };
66150
- if (inst._zod.def.params)
66151
- _iss.params = inst._zod.def.params;
66152
- payload.issues.push(issue(_iss));
66153
- }
66154
- }
66155
65454
 
66156
65455
  // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/registries.js
66157
65456
  init_esm_shims();
@@ -66202,7 +65501,6 @@ var $ZodRegistry = class {
66202
65501
  function registry() {
66203
65502
  return new $ZodRegistry();
66204
65503
  }
66205
- var globalRegistry = /* @__PURE__ */ registry();
66206
65504
 
66207
65505
  // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/api.js
66208
65506
  init_esm_shims();
@@ -66212,63 +65510,6 @@ function _string(Class2, params) {
66212
65510
  ...normalizeParams(params)
66213
65511
  });
66214
65512
  }
66215
- function _email(Class2, params) {
66216
- return new Class2({
66217
- type: "string",
66218
- format: "email",
66219
- check: "string_format",
66220
- abort: false,
66221
- ...normalizeParams(params)
66222
- });
66223
- }
66224
- function _guid(Class2, params) {
66225
- return new Class2({
66226
- type: "string",
66227
- format: "guid",
66228
- check: "string_format",
66229
- abort: false,
66230
- ...normalizeParams(params)
66231
- });
66232
- }
66233
- function _uuid(Class2, params) {
66234
- return new Class2({
66235
- type: "string",
66236
- format: "uuid",
66237
- check: "string_format",
66238
- abort: false,
66239
- ...normalizeParams(params)
66240
- });
66241
- }
66242
- function _uuidv4(Class2, params) {
66243
- return new Class2({
66244
- type: "string",
66245
- format: "uuid",
66246
- check: "string_format",
66247
- abort: false,
66248
- version: "v4",
66249
- ...normalizeParams(params)
66250
- });
66251
- }
66252
- function _uuidv6(Class2, params) {
66253
- return new Class2({
66254
- type: "string",
66255
- format: "uuid",
66256
- check: "string_format",
66257
- abort: false,
66258
- version: "v6",
66259
- ...normalizeParams(params)
66260
- });
66261
- }
66262
- function _uuidv7(Class2, params) {
66263
- return new Class2({
66264
- type: "string",
66265
- format: "uuid",
66266
- check: "string_format",
66267
- abort: false,
66268
- version: "v7",
66269
- ...normalizeParams(params)
66270
- });
66271
- }
66272
65513
  function _url(Class2, params) {
66273
65514
  return new Class2({
66274
65515
  type: "string",
@@ -66278,177 +65519,6 @@ function _url(Class2, params) {
66278
65519
  ...normalizeParams(params)
66279
65520
  });
66280
65521
  }
66281
- function _emoji2(Class2, params) {
66282
- return new Class2({
66283
- type: "string",
66284
- format: "emoji",
66285
- check: "string_format",
66286
- abort: false,
66287
- ...normalizeParams(params)
66288
- });
66289
- }
66290
- function _nanoid(Class2, params) {
66291
- return new Class2({
66292
- type: "string",
66293
- format: "nanoid",
66294
- check: "string_format",
66295
- abort: false,
66296
- ...normalizeParams(params)
66297
- });
66298
- }
66299
- function _cuid(Class2, params) {
66300
- return new Class2({
66301
- type: "string",
66302
- format: "cuid",
66303
- check: "string_format",
66304
- abort: false,
66305
- ...normalizeParams(params)
66306
- });
66307
- }
66308
- function _cuid2(Class2, params) {
66309
- return new Class2({
66310
- type: "string",
66311
- format: "cuid2",
66312
- check: "string_format",
66313
- abort: false,
66314
- ...normalizeParams(params)
66315
- });
66316
- }
66317
- function _ulid(Class2, params) {
66318
- return new Class2({
66319
- type: "string",
66320
- format: "ulid",
66321
- check: "string_format",
66322
- abort: false,
66323
- ...normalizeParams(params)
66324
- });
66325
- }
66326
- function _xid(Class2, params) {
66327
- return new Class2({
66328
- type: "string",
66329
- format: "xid",
66330
- check: "string_format",
66331
- abort: false,
66332
- ...normalizeParams(params)
66333
- });
66334
- }
66335
- function _ksuid(Class2, params) {
66336
- return new Class2({
66337
- type: "string",
66338
- format: "ksuid",
66339
- check: "string_format",
66340
- abort: false,
66341
- ...normalizeParams(params)
66342
- });
66343
- }
66344
- function _ipv4(Class2, params) {
66345
- return new Class2({
66346
- type: "string",
66347
- format: "ipv4",
66348
- check: "string_format",
66349
- abort: false,
66350
- ...normalizeParams(params)
66351
- });
66352
- }
66353
- function _ipv6(Class2, params) {
66354
- return new Class2({
66355
- type: "string",
66356
- format: "ipv6",
66357
- check: "string_format",
66358
- abort: false,
66359
- ...normalizeParams(params)
66360
- });
66361
- }
66362
- function _cidrv4(Class2, params) {
66363
- return new Class2({
66364
- type: "string",
66365
- format: "cidrv4",
66366
- check: "string_format",
66367
- abort: false,
66368
- ...normalizeParams(params)
66369
- });
66370
- }
66371
- function _cidrv6(Class2, params) {
66372
- return new Class2({
66373
- type: "string",
66374
- format: "cidrv6",
66375
- check: "string_format",
66376
- abort: false,
66377
- ...normalizeParams(params)
66378
- });
66379
- }
66380
- function _base64(Class2, params) {
66381
- return new Class2({
66382
- type: "string",
66383
- format: "base64",
66384
- check: "string_format",
66385
- abort: false,
66386
- ...normalizeParams(params)
66387
- });
66388
- }
66389
- function _base64url(Class2, params) {
66390
- return new Class2({
66391
- type: "string",
66392
- format: "base64url",
66393
- check: "string_format",
66394
- abort: false,
66395
- ...normalizeParams(params)
66396
- });
66397
- }
66398
- function _e164(Class2, params) {
66399
- return new Class2({
66400
- type: "string",
66401
- format: "e164",
66402
- check: "string_format",
66403
- abort: false,
66404
- ...normalizeParams(params)
66405
- });
66406
- }
66407
- function _jwt(Class2, params) {
66408
- return new Class2({
66409
- type: "string",
66410
- format: "jwt",
66411
- check: "string_format",
66412
- abort: false,
66413
- ...normalizeParams(params)
66414
- });
66415
- }
66416
- function _isoDateTime(Class2, params) {
66417
- return new Class2({
66418
- type: "string",
66419
- format: "datetime",
66420
- check: "string_format",
66421
- offset: false,
66422
- local: false,
66423
- precision: null,
66424
- ...normalizeParams(params)
66425
- });
66426
- }
66427
- function _isoDate(Class2, params) {
66428
- return new Class2({
66429
- type: "string",
66430
- format: "date",
66431
- check: "string_format",
66432
- ...normalizeParams(params)
66433
- });
66434
- }
66435
- function _isoTime(Class2, params) {
66436
- return new Class2({
66437
- type: "string",
66438
- format: "time",
66439
- check: "string_format",
66440
- precision: null,
66441
- ...normalizeParams(params)
66442
- });
66443
- }
66444
- function _isoDuration(Class2, params) {
66445
- return new Class2({
66446
- type: "string",
66447
- format: "duration",
66448
- check: "string_format",
66449
- ...normalizeParams(params)
66450
- });
66451
- }
66452
65522
  function _boolean(Class2, params) {
66453
65523
  return new Class2({
66454
65524
  type: "boolean",
@@ -66460,32 +65530,6 @@ function _any(Class2) {
66460
65530
  type: "any"
66461
65531
  });
66462
65532
  }
66463
- function _unknown(Class2) {
66464
- return new Class2({
66465
- type: "unknown"
66466
- });
66467
- }
66468
- function _never(Class2, params) {
66469
- return new Class2({
66470
- type: "never",
66471
- ...normalizeParams(params)
66472
- });
66473
- }
66474
- function _maxLength(maximum, params) {
66475
- const ch = new $ZodCheckMaxLength({
66476
- check: "max_length",
66477
- ...normalizeParams(params),
66478
- maximum
66479
- });
66480
- return ch;
66481
- }
66482
- function _minLength(minimum, params) {
66483
- return new $ZodCheckMinLength({
66484
- check: "min_length",
66485
- ...normalizeParams(params),
66486
- minimum
66487
- });
66488
- }
66489
65533
  function _length(length, params) {
66490
65534
  return new $ZodCheckLengthEquals({
66491
65535
  check: "length_equals",
@@ -66501,168 +65545,33 @@ function _regex(pattern, params) {
66501
65545
  pattern
66502
65546
  });
66503
65547
  }
66504
- function _lowercase(params) {
66505
- return new $ZodCheckLowerCase({
66506
- check: "string_format",
66507
- format: "lowercase",
66508
- ...normalizeParams(params)
66509
- });
66510
- }
66511
- function _uppercase(params) {
66512
- return new $ZodCheckUpperCase({
66513
- check: "string_format",
66514
- format: "uppercase",
66515
- ...normalizeParams(params)
66516
- });
66517
- }
66518
- function _includes(includes, params) {
66519
- return new $ZodCheckIncludes({
66520
- check: "string_format",
66521
- format: "includes",
66522
- ...normalizeParams(params),
66523
- includes
66524
- });
66525
- }
66526
- function _startsWith(prefix, params) {
66527
- return new $ZodCheckStartsWith({
66528
- check: "string_format",
66529
- format: "starts_with",
66530
- ...normalizeParams(params),
66531
- prefix
66532
- });
66533
- }
66534
- function _endsWith(suffix, params) {
66535
- return new $ZodCheckEndsWith({
66536
- check: "string_format",
66537
- format: "ends_with",
66538
- ...normalizeParams(params),
66539
- suffix
66540
- });
66541
- }
66542
65548
  function _overwrite(tx) {
66543
65549
  return new $ZodCheckOverwrite({
66544
65550
  check: "overwrite",
66545
65551
  tx
66546
65552
  });
66547
65553
  }
66548
- function _normalize(form) {
66549
- return _overwrite((input) => input.normalize(form));
66550
- }
66551
65554
  function _trim() {
66552
65555
  return _overwrite((input) => input.trim());
66553
65556
  }
66554
65557
  function _toLowerCase() {
66555
65558
  return _overwrite((input) => input.toLowerCase());
66556
65559
  }
66557
- function _toUpperCase() {
66558
- return _overwrite((input) => input.toUpperCase());
66559
- }
66560
- function _array(Class2, element, params) {
66561
- return new Class2({
66562
- type: "array",
66563
- element,
66564
- // get element() {
66565
- // return element;
66566
- // },
66567
- ...normalizeParams(params)
66568
- });
66569
- }
66570
- function _refine(Class2, fn2, _params) {
66571
- const schema = new Class2({
66572
- type: "custom",
66573
- check: "custom",
66574
- fn: fn2,
66575
- ...normalizeParams(_params)
66576
- });
66577
- return schema;
66578
- }
66579
65560
 
66580
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/schemas.js
65561
+ // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/parse.js
66581
65562
  init_esm_shims();
66582
65563
 
66583
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/checks.js
65564
+ // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/schemas.js
66584
65565
  init_esm_shims();
66585
-
66586
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/iso.js
66587
- init_esm_shims();
66588
- var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
66589
- $ZodISODateTime.init(inst, def);
66590
- ZodStringFormat.init(inst, def);
66591
- });
66592
- function datetime2(params) {
66593
- return _isoDateTime(ZodISODateTime, params);
66594
- }
66595
- var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
66596
- $ZodISODate.init(inst, def);
66597
- ZodStringFormat.init(inst, def);
66598
- });
66599
- function date2(params) {
66600
- return _isoDate(ZodISODate, params);
66601
- }
66602
- var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
66603
- $ZodISOTime.init(inst, def);
66604
- ZodStringFormat.init(inst, def);
66605
- });
66606
- function time2(params) {
66607
- return _isoTime(ZodISOTime, params);
66608
- }
66609
- var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
66610
- $ZodISODuration.init(inst, def);
66611
- ZodStringFormat.init(inst, def);
66612
- });
66613
- function duration2(params) {
66614
- return _isoDuration(ZodISODuration, params);
66615
- }
66616
-
66617
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/parse.js
66618
- init_esm_shims();
66619
-
66620
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/errors.js
66621
- init_esm_shims();
66622
- var initializer2 = (inst, issues) => {
66623
- $ZodError.init(inst, issues);
66624
- inst.name = "ZodError";
66625
- Object.defineProperties(inst, {
66626
- format: {
66627
- value: (mapper) => formatError(inst, mapper)
66628
- // enumerable: false,
66629
- },
66630
- flatten: {
66631
- value: (mapper) => flattenError(inst, mapper)
66632
- // enumerable: false,
66633
- },
66634
- addIssue: {
66635
- value: (issue2) => inst.issues.push(issue2)
66636
- // enumerable: false,
66637
- },
66638
- addIssues: {
66639
- value: (issues2) => inst.issues.push(...issues2)
66640
- // enumerable: false,
66641
- },
66642
- isEmpty: {
66643
- get() {
66644
- return inst.issues.length === 0;
66645
- }
66646
- // enumerable: false,
66647
- }
66648
- });
66649
- };
66650
- var ZodError = $constructor("ZodError", initializer2);
66651
- var ZodRealError = $constructor("ZodError", initializer2, {
66652
- Parent: Error
66653
- });
66654
-
66655
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/parse.js
66656
- var parse = /* @__PURE__ */ _parse(ZodRealError);
66657
- var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
66658
- var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
66659
- var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
66660
-
66661
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/schemas.js
66662
- var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
65566
+ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
65567
+ if (!inst._zod)
65568
+ throw new Error("Uninitialized schema in ZodMiniType.");
66663
65569
  $ZodType.init(inst, def);
66664
65570
  inst.def = def;
66665
- Object.defineProperty(inst, "_def", { value: def });
65571
+ inst.parse = (data2, params) => parse(inst, data2, params, { callee: inst.parse });
65572
+ inst.safeParse = (data2, params) => safeParse(inst, data2, params);
65573
+ inst.parseAsync = async (data2, params) => parseAsync(inst, data2, params, { callee: inst.parseAsync });
65574
+ inst.safeParseAsync = async (data2, params) => safeParseAsync(inst, data2, params);
66666
65575
  inst.check = (...checks) => {
66667
65576
  return inst.clone(
66668
65577
  {
@@ -66675,257 +65584,60 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
66675
65584
  // { parent: true }
66676
65585
  );
66677
65586
  };
66678
- inst.clone = (def2, params) => clone(inst, def2, params);
65587
+ inst.clone = (_def, params) => clone(inst, _def, params);
66679
65588
  inst.brand = () => inst;
66680
65589
  inst.register = (reg, meta) => {
66681
65590
  reg.add(inst, meta);
66682
65591
  return inst;
66683
65592
  };
66684
- inst.parse = (data2, params) => parse(inst, data2, params, { callee: inst.parse });
66685
- inst.safeParse = (data2, params) => safeParse2(inst, data2, params);
66686
- inst.parseAsync = async (data2, params) => parseAsync(inst, data2, params, { callee: inst.parseAsync });
66687
- inst.safeParseAsync = async (data2, params) => safeParseAsync2(inst, data2, params);
66688
- inst.spa = inst.safeParseAsync;
66689
- inst.refine = (check2, params) => inst.check(refine(check2, params));
66690
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
66691
- inst.overwrite = (fn2) => inst.check(_overwrite(fn2));
66692
- inst.optional = () => optional(inst);
66693
- inst.nullable = () => nullable(inst);
66694
- inst.nullish = () => optional(nullable(inst));
66695
- inst.nonoptional = (params) => nonoptional(inst, params);
66696
- inst.array = () => array(inst);
66697
- inst.or = (arg) => union([inst, arg]);
66698
- inst.and = (arg) => intersection(inst, arg);
66699
- inst.transform = (tx) => pipe(inst, transform(tx));
66700
- inst.default = (def2) => _default(inst, def2);
66701
- inst.prefault = (def2) => prefault(inst, def2);
66702
- inst.catch = (params) => _catch(inst, params);
66703
- inst.pipe = (target) => pipe(inst, target);
66704
- inst.readonly = () => readonly(inst);
66705
- inst.describe = (description2) => {
66706
- const cl2 = inst.clone();
66707
- globalRegistry.add(cl2, { description: description2 });
66708
- return cl2;
66709
- };
66710
- Object.defineProperty(inst, "description", {
66711
- get() {
66712
- return globalRegistry.get(inst)?.description;
66713
- },
66714
- configurable: true
66715
- });
66716
- inst.meta = (...args) => {
66717
- if (args.length === 0) {
66718
- return globalRegistry.get(inst);
66719
- }
66720
- const cl2 = inst.clone();
66721
- globalRegistry.add(cl2, args[0]);
66722
- return cl2;
66723
- };
66724
- inst.isOptional = () => inst.safeParse(void 0).success;
66725
- inst.isNullable = () => inst.safeParse(null).success;
66726
- return inst;
66727
65593
  });
66728
- var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
65594
+ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
66729
65595
  $ZodString.init(inst, def);
66730
- ZodType.init(inst, def);
66731
- const bag = inst._zod.bag;
66732
- inst.format = bag.format ?? null;
66733
- inst.minLength = bag.minimum ?? null;
66734
- inst.maxLength = bag.maximum ?? null;
66735
- inst.regex = (...args) => inst.check(_regex(...args));
66736
- inst.includes = (...args) => inst.check(_includes(...args));
66737
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
66738
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
66739
- inst.min = (...args) => inst.check(_minLength(...args));
66740
- inst.max = (...args) => inst.check(_maxLength(...args));
66741
- inst.length = (...args) => inst.check(_length(...args));
66742
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
66743
- inst.lowercase = (params) => inst.check(_lowercase(params));
66744
- inst.uppercase = (params) => inst.check(_uppercase(params));
66745
- inst.trim = () => inst.check(_trim());
66746
- inst.normalize = (...args) => inst.check(_normalize(...args));
66747
- inst.toLowerCase = () => inst.check(_toLowerCase());
66748
- inst.toUpperCase = () => inst.check(_toUpperCase());
66749
- });
66750
- var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
66751
- $ZodString.init(inst, def);
66752
- _ZodString.init(inst, def);
66753
- inst.email = (params) => inst.check(_email(ZodEmail, params));
66754
- inst.url = (params) => inst.check(_url(ZodURL, params));
66755
- inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
66756
- inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params));
66757
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
66758
- inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
66759
- inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
66760
- inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
66761
- inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
66762
- inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
66763
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
66764
- inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
66765
- inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
66766
- inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
66767
- inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
66768
- inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
66769
- inst.xid = (params) => inst.check(_xid(ZodXID, params));
66770
- inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
66771
- inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
66772
- inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
66773
- inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
66774
- inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
66775
- inst.e164 = (params) => inst.check(_e164(ZodE164, params));
66776
- inst.datetime = (params) => inst.check(datetime2(params));
66777
- inst.date = (params) => inst.check(date2(params));
66778
- inst.time = (params) => inst.check(time2(params));
66779
- inst.duration = (params) => inst.check(duration2(params));
65596
+ ZodMiniType.init(inst, def);
66780
65597
  });
66781
65598
  function string2(params) {
66782
- return _string(ZodString, params);
65599
+ return _string(ZodMiniString, params);
66783
65600
  }
66784
- var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
65601
+ var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
66785
65602
  $ZodStringFormat.init(inst, def);
66786
- _ZodString.init(inst, def);
66787
- });
66788
- var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
66789
- $ZodEmail.init(inst, def);
66790
- ZodStringFormat.init(inst, def);
66791
- });
66792
- function email2(params) {
66793
- return _email(ZodEmail, params);
66794
- }
66795
- var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
66796
- $ZodGUID.init(inst, def);
66797
- ZodStringFormat.init(inst, def);
65603
+ ZodMiniString.init(inst, def);
66798
65604
  });
66799
- var ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
66800
- $ZodUUID.init(inst, def);
66801
- ZodStringFormat.init(inst, def);
66802
- });
66803
- var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
65605
+ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
66804
65606
  $ZodURL.init(inst, def);
66805
- ZodStringFormat.init(inst, def);
65607
+ ZodMiniStringFormat.init(inst, def);
66806
65608
  });
66807
65609
  function url(params) {
66808
- return _url(ZodURL, params);
65610
+ return _url(ZodMiniURL, params);
66809
65611
  }
66810
- var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
66811
- $ZodEmoji.init(inst, def);
66812
- ZodStringFormat.init(inst, def);
66813
- });
66814
- var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
66815
- $ZodNanoID.init(inst, def);
66816
- ZodStringFormat.init(inst, def);
66817
- });
66818
- var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
66819
- $ZodCUID.init(inst, def);
66820
- ZodStringFormat.init(inst, def);
66821
- });
66822
- var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
66823
- $ZodCUID2.init(inst, def);
66824
- ZodStringFormat.init(inst, def);
66825
- });
66826
- var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
66827
- $ZodULID.init(inst, def);
66828
- ZodStringFormat.init(inst, def);
66829
- });
66830
- var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
66831
- $ZodXID.init(inst, def);
66832
- ZodStringFormat.init(inst, def);
66833
- });
66834
- var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
66835
- $ZodKSUID.init(inst, def);
66836
- ZodStringFormat.init(inst, def);
66837
- });
66838
- var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
66839
- $ZodIPv4.init(inst, def);
66840
- ZodStringFormat.init(inst, def);
66841
- });
66842
- var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
66843
- $ZodIPv6.init(inst, def);
66844
- ZodStringFormat.init(inst, def);
66845
- });
66846
- var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
66847
- $ZodCIDRv4.init(inst, def);
66848
- ZodStringFormat.init(inst, def);
66849
- });
66850
- var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
66851
- $ZodCIDRv6.init(inst, def);
66852
- ZodStringFormat.init(inst, def);
66853
- });
66854
- var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
66855
- $ZodBase64.init(inst, def);
66856
- ZodStringFormat.init(inst, def);
66857
- });
66858
- var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
66859
- $ZodBase64URL.init(inst, def);
66860
- ZodStringFormat.init(inst, def);
66861
- });
66862
- var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
66863
- $ZodE164.init(inst, def);
66864
- ZodStringFormat.init(inst, def);
66865
- });
66866
- var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
66867
- $ZodJWT.init(inst, def);
66868
- ZodStringFormat.init(inst, def);
66869
- });
66870
- var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
65612
+ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
66871
65613
  $ZodBoolean.init(inst, def);
66872
- ZodType.init(inst, def);
65614
+ ZodMiniType.init(inst, def);
66873
65615
  });
66874
65616
  function boolean2(params) {
66875
- return _boolean(ZodBoolean, params);
65617
+ return _boolean(ZodMiniBoolean, params);
66876
65618
  }
66877
- var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
65619
+ var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
66878
65620
  $ZodAny.init(inst, def);
66879
- ZodType.init(inst, def);
65621
+ ZodMiniType.init(inst, def);
66880
65622
  });
66881
65623
  function any() {
66882
- return _any(ZodAny);
66883
- }
66884
- var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
66885
- $ZodUnknown.init(inst, def);
66886
- ZodType.init(inst, def);
66887
- });
66888
- function unknown() {
66889
- return _unknown(ZodUnknown);
66890
- }
66891
- var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
66892
- $ZodNever.init(inst, def);
66893
- ZodType.init(inst, def);
66894
- });
66895
- function never(params) {
66896
- return _never(ZodNever, params);
65624
+ return _any(ZodMiniAny);
66897
65625
  }
66898
- var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
65626
+ var ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
66899
65627
  $ZodArray.init(inst, def);
66900
- ZodType.init(inst, def);
66901
- inst.element = def.element;
66902
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
66903
- inst.nonempty = (params) => inst.check(_minLength(1, params));
66904
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
66905
- inst.length = (len, params) => inst.check(_length(len, params));
66906
- inst.unwrap = () => inst.element;
65628
+ ZodMiniType.init(inst, def);
66907
65629
  });
66908
65630
  function array(element, params) {
66909
- return _array(ZodArray, element, params);
65631
+ return new ZodMiniArray({
65632
+ type: "array",
65633
+ element,
65634
+ ...util_exports.normalizeParams(params)
65635
+ });
66910
65636
  }
66911
- var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
65637
+ var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
66912
65638
  $ZodObject.init(inst, def);
66913
- ZodType.init(inst, def);
65639
+ ZodMiniType.init(inst, def);
66914
65640
  util_exports.defineLazy(inst, "shape", () => def.shape);
66915
- inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
66916
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
66917
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
66918
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
66919
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
66920
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
66921
- inst.extend = (incoming) => {
66922
- return util_exports.extend(inst, incoming);
66923
- };
66924
- inst.merge = (other) => util_exports.merge(inst, other);
66925
- inst.pick = (mask) => util_exports.pick(inst, mask);
66926
- inst.omit = (mask) => util_exports.omit(inst, mask);
66927
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
66928
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
66929
65641
  });
66930
65642
  function object(shape, params) {
66931
65643
  const def = {
@@ -66936,175 +65648,80 @@ function object(shape, params) {
66936
65648
  },
66937
65649
  ...util_exports.normalizeParams(params)
66938
65650
  };
66939
- return new ZodObject(def);
65651
+ return new ZodMiniObject(def);
66940
65652
  }
66941
- var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
65653
+ var ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
66942
65654
  $ZodUnion.init(inst, def);
66943
- ZodType.init(inst, def);
66944
- inst.options = def.options;
65655
+ ZodMiniType.init(inst, def);
66945
65656
  });
66946
65657
  function union(options, params) {
66947
- return new ZodUnion({
65658
+ return new ZodMiniUnion({
66948
65659
  type: "union",
66949
65660
  options,
66950
65661
  ...util_exports.normalizeParams(params)
66951
65662
  });
66952
65663
  }
66953
- var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
66954
- $ZodIntersection.init(inst, def);
66955
- ZodType.init(inst, def);
66956
- });
66957
- function intersection(left, right) {
66958
- return new ZodIntersection({
66959
- type: "intersection",
66960
- left,
66961
- right
66962
- });
66963
- }
66964
- var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
65664
+ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
66965
65665
  $ZodRecord.init(inst, def);
66966
- ZodType.init(inst, def);
66967
- inst.keyType = def.keyType;
66968
- inst.valueType = def.valueType;
65666
+ ZodMiniType.init(inst, def);
66969
65667
  });
66970
65668
  function record(keyType, valueType, params) {
66971
- return new ZodRecord({
65669
+ return new ZodMiniRecord({
66972
65670
  type: "record",
66973
65671
  keyType,
66974
65672
  valueType,
66975
65673
  ...util_exports.normalizeParams(params)
66976
65674
  });
66977
65675
  }
66978
- var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
65676
+ var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
66979
65677
  $ZodEnum.init(inst, def);
66980
- ZodType.init(inst, def);
66981
- inst.enum = def.entries;
66982
- inst.options = Object.values(def.entries);
66983
- const keys = new Set(Object.keys(def.entries));
66984
- inst.extract = (values, params) => {
66985
- const newEntries = {};
66986
- for (const value2 of values) {
66987
- if (keys.has(value2)) {
66988
- newEntries[value2] = def.entries[value2];
66989
- } else
66990
- throw new Error(`Key ${value2} not found in enum`);
66991
- }
66992
- return new ZodEnum({
66993
- ...def,
66994
- checks: [],
66995
- ...util_exports.normalizeParams(params),
66996
- entries: newEntries
66997
- });
66998
- };
66999
- inst.exclude = (values, params) => {
67000
- const newEntries = { ...def.entries };
67001
- for (const value2 of values) {
67002
- if (keys.has(value2)) {
67003
- delete newEntries[value2];
67004
- } else
67005
- throw new Error(`Key ${value2} not found in enum`);
67006
- }
67007
- return new ZodEnum({
67008
- ...def,
67009
- checks: [],
67010
- ...util_exports.normalizeParams(params),
67011
- entries: newEntries
67012
- });
67013
- };
65678
+ ZodMiniType.init(inst, def);
67014
65679
  });
67015
65680
  function _enum(values, params) {
67016
65681
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v5) => [v5, v5])) : values;
67017
- return new ZodEnum({
65682
+ return new ZodMiniEnum({
67018
65683
  type: "enum",
67019
65684
  entries,
67020
65685
  ...util_exports.normalizeParams(params)
67021
65686
  });
67022
65687
  }
67023
- var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
65688
+ var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
67024
65689
  $ZodLiteral.init(inst, def);
67025
- ZodType.init(inst, def);
67026
- inst.values = new Set(def.values);
67027
- Object.defineProperty(inst, "value", {
67028
- get() {
67029
- if (def.values.length > 1) {
67030
- throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
67031
- }
67032
- return def.values[0];
67033
- }
67034
- });
65690
+ ZodMiniType.init(inst, def);
67035
65691
  });
67036
65692
  function literal(value2, params) {
67037
- return new ZodLiteral({
65693
+ return new ZodMiniLiteral({
67038
65694
  type: "literal",
67039
65695
  values: Array.isArray(value2) ? value2 : [value2],
67040
65696
  ...util_exports.normalizeParams(params)
67041
65697
  });
67042
65698
  }
67043
- var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
67044
- $ZodTransform.init(inst, def);
67045
- ZodType.init(inst, def);
67046
- inst._zod.parse = (payload, _ctx) => {
67047
- payload.addIssue = (issue2) => {
67048
- if (typeof issue2 === "string") {
67049
- payload.issues.push(util_exports.issue(issue2, payload.value, def));
67050
- } else {
67051
- const _issue = issue2;
67052
- if (_issue.fatal)
67053
- _issue.continue = false;
67054
- _issue.code ?? (_issue.code = "custom");
67055
- _issue.input ?? (_issue.input = payload.value);
67056
- _issue.inst ?? (_issue.inst = inst);
67057
- _issue.continue ?? (_issue.continue = true);
67058
- payload.issues.push(util_exports.issue(_issue));
67059
- }
67060
- };
67061
- const output = def.transform(payload.value, payload);
67062
- if (output instanceof Promise) {
67063
- return output.then((output2) => {
67064
- payload.value = output2;
67065
- return payload;
67066
- });
67067
- }
67068
- payload.value = output;
67069
- return payload;
67070
- };
67071
- });
67072
- function transform(fn2) {
67073
- return new ZodTransform({
67074
- type: "transform",
67075
- transform: fn2
67076
- });
67077
- }
67078
- var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
65699
+ var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
67079
65700
  $ZodOptional.init(inst, def);
67080
- ZodType.init(inst, def);
67081
- inst.unwrap = () => inst._zod.def.innerType;
65701
+ ZodMiniType.init(inst, def);
67082
65702
  });
67083
65703
  function optional(innerType) {
67084
- return new ZodOptional({
65704
+ return new ZodMiniOptional({
67085
65705
  type: "optional",
67086
65706
  innerType
67087
65707
  });
67088
65708
  }
67089
- var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
65709
+ var ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def) => {
67090
65710
  $ZodNullable.init(inst, def);
67091
- ZodType.init(inst, def);
67092
- inst.unwrap = () => inst._zod.def.innerType;
65711
+ ZodMiniType.init(inst, def);
67093
65712
  });
67094
65713
  function nullable(innerType) {
67095
- return new ZodNullable({
65714
+ return new ZodMiniNullable({
67096
65715
  type: "nullable",
67097
65716
  innerType
67098
65717
  });
67099
65718
  }
67100
- var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
65719
+ var ZodMiniDefault = /* @__PURE__ */ $constructor("ZodMiniDefault", (inst, def) => {
67101
65720
  $ZodDefault.init(inst, def);
67102
- ZodType.init(inst, def);
67103
- inst.unwrap = () => inst._zod.def.innerType;
67104
- inst.removeDefault = inst.unwrap;
65721
+ ZodMiniType.init(inst, def);
67105
65722
  });
67106
65723
  function _default(innerType, defaultValue) {
67107
- return new ZodDefault({
65724
+ return new ZodMiniDefault({
67108
65725
  type: "default",
67109
65726
  innerType,
67110
65727
  get defaultValue() {
@@ -67112,104 +65729,9 @@ function _default(innerType, defaultValue) {
67112
65729
  }
67113
65730
  });
67114
65731
  }
67115
- var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
67116
- $ZodPrefault.init(inst, def);
67117
- ZodType.init(inst, def);
67118
- inst.unwrap = () => inst._zod.def.innerType;
67119
- });
67120
- function prefault(innerType, defaultValue) {
67121
- return new ZodPrefault({
67122
- type: "prefault",
67123
- innerType,
67124
- get defaultValue() {
67125
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
67126
- }
67127
- });
67128
- }
67129
- var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
67130
- $ZodNonOptional.init(inst, def);
67131
- ZodType.init(inst, def);
67132
- inst.unwrap = () => inst._zod.def.innerType;
67133
- });
67134
- function nonoptional(innerType, params) {
67135
- return new ZodNonOptional({
67136
- type: "nonoptional",
67137
- innerType,
67138
- ...util_exports.normalizeParams(params)
67139
- });
67140
- }
67141
- var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
67142
- $ZodCatch.init(inst, def);
67143
- ZodType.init(inst, def);
67144
- inst.unwrap = () => inst._zod.def.innerType;
67145
- inst.removeCatch = inst.unwrap;
67146
- });
67147
- function _catch(innerType, catchValue) {
67148
- return new ZodCatch({
67149
- type: "catch",
67150
- innerType,
67151
- catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
67152
- });
67153
- }
67154
- var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
67155
- $ZodPipe.init(inst, def);
67156
- ZodType.init(inst, def);
67157
- inst.in = def.in;
67158
- inst.out = def.out;
67159
- });
67160
- function pipe(in_, out) {
67161
- return new ZodPipe({
67162
- type: "pipe",
67163
- in: in_,
67164
- out
67165
- // ...util.normalizeParams(params),
67166
- });
67167
- }
67168
- var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
67169
- $ZodReadonly.init(inst, def);
67170
- ZodType.init(inst, def);
67171
- });
67172
- function readonly(innerType) {
67173
- return new ZodReadonly({
67174
- type: "readonly",
67175
- innerType
67176
- });
67177
- }
67178
- var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
67179
- $ZodCustom.init(inst, def);
67180
- ZodType.init(inst, def);
67181
- });
67182
- function check(fn2) {
67183
- const ch = new $ZodCheck({
67184
- check: "custom"
67185
- // ...util.normalizeParams(params),
67186
- });
67187
- ch._zod.check = fn2;
67188
- return ch;
67189
- }
67190
- function refine(fn2, _params = {}) {
67191
- return _refine(ZodCustom, fn2, _params);
67192
- }
67193
- function superRefine(fn2) {
67194
- const ch = check((payload) => {
67195
- payload.addIssue = (issue2) => {
67196
- if (typeof issue2 === "string") {
67197
- payload.issues.push(util_exports.issue(issue2, payload.value, ch._zod.def));
67198
- } else {
67199
- const _issue = issue2;
67200
- if (_issue.fatal)
67201
- _issue.continue = false;
67202
- _issue.code ?? (_issue.code = "custom");
67203
- _issue.input ?? (_issue.input = payload.value);
67204
- _issue.inst ?? (_issue.inst = ch);
67205
- _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
67206
- payload.issues.push(util_exports.issue(_issue));
67207
- }
67208
- };
67209
- return fn2(payload.value, payload);
67210
- });
67211
- return ch;
67212
- }
65732
+
65733
+ // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/checks.js
65734
+ init_esm_shims();
67213
65735
 
67214
65736
  // ../config/src/constants.ts
67215
65737
  init_esm_shims();
@@ -67218,12 +65740,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
67218
65740
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
67219
65741
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
67220
65742
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
67221
- var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
67222
65743
  var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
67223
- var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
67224
65744
  var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
67225
- var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
67226
- var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
67227
65745
  var STORM_DEFAULT_RELEASE_FOOTER = `
67228
65746
  Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
67229
65747
 
@@ -67232,233 +65750,487 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
67232
65750
  If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_SOCIAL_SLACK}) channel!
67233
65751
  `;
67234
65752
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
65753
+ var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
67235
65754
 
67236
65755
  // ../config/src/schema.ts
67237
- var ColorSchema = string2().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7);
67238
- var DarkColorSchema = ColorSchema.default("#151718").describe(
67239
- "The dark background color of the workspace"
65756
+ var schemaRegistry = registry();
65757
+ var colorSchema = string2().check(
65758
+ _length(7),
65759
+ _toLowerCase(),
65760
+ _regex(/^#([0-9a-f]{3}){1,2}$/i),
65761
+ _trim()
65762
+ );
65763
+ schemaRegistry.add(colorSchema, {
65764
+ description: "A base schema for describing the format of colors"
65765
+ });
65766
+ var darkColorSchema = _default(colorSchema, "#151718");
65767
+ schemaRegistry.add(darkColorSchema, {
65768
+ description: "The dark background color of the workspace"
65769
+ });
65770
+ var lightColorSchema = _default(colorSchema, "#cbd5e1");
65771
+ schemaRegistry.add(lightColorSchema, {
65772
+ description: "The light background color of the workspace"
65773
+ });
65774
+ var brandColorSchema = _default(colorSchema, "#1fb2a6");
65775
+ schemaRegistry.add(brandColorSchema, {
65776
+ description: "The primary brand specific color of the workspace"
65777
+ });
65778
+ var alternateColorSchema = optional(colorSchema);
65779
+ schemaRegistry.add(alternateColorSchema, {
65780
+ description: "The alternate brand specific color of the workspace"
65781
+ });
65782
+ var accentColorSchema = optional(colorSchema);
65783
+ schemaRegistry.add(accentColorSchema, {
65784
+ description: "The secondary brand specific color of the workspace"
65785
+ });
65786
+ var linkColorSchema = _default(colorSchema, "#3fa6ff");
65787
+ schemaRegistry.add(linkColorSchema, {
65788
+ description: "The color used to display hyperlink text"
65789
+ });
65790
+ var helpColorSchema = _default(colorSchema, "#818cf8");
65791
+ schemaRegistry.add(helpColorSchema, {
65792
+ description: "The second brand specific color of the workspace"
65793
+ });
65794
+ var successColorSchema = _default(colorSchema, "#45b27e");
65795
+ schemaRegistry.add(successColorSchema, {
65796
+ description: "The success color of the workspace"
65797
+ });
65798
+ var infoColorSchema = _default(colorSchema, "#38bdf8");
65799
+ schemaRegistry.add(infoColorSchema, {
65800
+ description: "The informational color of the workspace"
65801
+ });
65802
+ var warningColorSchema = _default(colorSchema, "#f3d371");
65803
+ schemaRegistry.add(warningColorSchema, {
65804
+ description: "The warning color of the workspace"
65805
+ });
65806
+ var dangerColorSchema = _default(colorSchema, "#d8314a");
65807
+ schemaRegistry.add(dangerColorSchema, {
65808
+ description: "The danger color of the workspace"
65809
+ });
65810
+ var fatalColorSchema = optional(colorSchema);
65811
+ schemaRegistry.add(fatalColorSchema, {
65812
+ description: "The fatal color of the workspace"
65813
+ });
65814
+ var positiveColorSchema = _default(colorSchema, "#4ade80");
65815
+ schemaRegistry.add(positiveColorSchema, {
65816
+ description: "The positive number color of the workspace"
65817
+ });
65818
+ var negativeColorSchema = _default(colorSchema, "#ef4444");
65819
+ schemaRegistry.add(negativeColorSchema, {
65820
+ description: "The negative number color of the workspace"
65821
+ });
65822
+ var gradientStopsSchema = optional(array(colorSchema));
65823
+ schemaRegistry.add(gradientStopsSchema, {
65824
+ description: "The color stops for the base gradient color pattern used in the workspace"
65825
+ });
65826
+ var darkColorsSchema = object({
65827
+ foreground: lightColorSchema,
65828
+ background: darkColorSchema,
65829
+ brand: brandColorSchema,
65830
+ alternate: alternateColorSchema,
65831
+ accent: accentColorSchema,
65832
+ link: linkColorSchema,
65833
+ help: helpColorSchema,
65834
+ success: successColorSchema,
65835
+ info: infoColorSchema,
65836
+ warning: warningColorSchema,
65837
+ danger: dangerColorSchema,
65838
+ fatal: fatalColorSchema,
65839
+ positive: positiveColorSchema,
65840
+ negative: negativeColorSchema,
65841
+ gradient: gradientStopsSchema
65842
+ });
65843
+ var lightColorsSchema = object({
65844
+ foreground: darkColorSchema,
65845
+ background: lightColorSchema,
65846
+ brand: brandColorSchema,
65847
+ alternate: alternateColorSchema,
65848
+ accent: accentColorSchema,
65849
+ link: linkColorSchema,
65850
+ help: helpColorSchema,
65851
+ success: successColorSchema,
65852
+ info: infoColorSchema,
65853
+ warning: warningColorSchema,
65854
+ danger: dangerColorSchema,
65855
+ fatal: fatalColorSchema,
65856
+ positive: positiveColorSchema,
65857
+ negative: negativeColorSchema,
65858
+ gradient: gradientStopsSchema
65859
+ });
65860
+ var multiColorsSchema = object({
65861
+ dark: darkColorsSchema,
65862
+ light: lightColorsSchema
65863
+ });
65864
+ var singleColorsSchema = object({
65865
+ dark: darkColorSchema,
65866
+ light: lightColorSchema,
65867
+ brand: brandColorSchema,
65868
+ alternate: alternateColorSchema,
65869
+ accent: accentColorSchema,
65870
+ link: linkColorSchema,
65871
+ help: helpColorSchema,
65872
+ success: successColorSchema,
65873
+ info: infoColorSchema,
65874
+ warning: warningColorSchema,
65875
+ danger: dangerColorSchema,
65876
+ fatal: fatalColorSchema,
65877
+ positive: positiveColorSchema,
65878
+ negative: negativeColorSchema,
65879
+ gradient: gradientStopsSchema
65880
+ });
65881
+ var registryUrlConfigSchema = optional(url());
65882
+ schemaRegistry.add(registryUrlConfigSchema, {
65883
+ description: "A remote registry URL used to publish distributable packages"
65884
+ });
65885
+ var registrySchema = _default(
65886
+ object({
65887
+ github: registryUrlConfigSchema,
65888
+ npm: registryUrlConfigSchema,
65889
+ cargo: registryUrlConfigSchema,
65890
+ cyclone: registryUrlConfigSchema,
65891
+ container: registryUrlConfigSchema
65892
+ }),
65893
+ {}
65894
+ );
65895
+ schemaRegistry.add(registrySchema, {
65896
+ description: "A list of remote registry URLs used by Storm Software"
65897
+ });
65898
+ var colorsSchema = union([singleColorsSchema, multiColorsSchema]);
65899
+ schemaRegistry.add(colorsSchema, {
65900
+ description: "Colors used for various workspace elements"
65901
+ });
65902
+ var themeColorsSchema = record(
65903
+ union([union([literal("base"), string2()]), string2()]),
65904
+ colorsSchema
65905
+ );
65906
+ schemaRegistry.add(themeColorsSchema, {
65907
+ description: "Storm theme config values used for styling various package elements"
65908
+ });
65909
+ var extendsSchema = optional(
65910
+ union([string2().check(_trim()), array(string2().check(_trim()))])
65911
+ );
65912
+ schemaRegistry.add(extendsSchema, {
65913
+ description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
65914
+ });
65915
+ var workspaceBotNameSchema = string2().check(_trim());
65916
+ schemaRegistry.add(workspaceBotNameSchema, {
65917
+ description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
65918
+ });
65919
+ var workspaceBotEmailSchema = string2().check(_trim());
65920
+ schemaRegistry.add(workspaceBotEmailSchema, {
65921
+ description: "The email of the workspace bot"
65922
+ });
65923
+ var workspaceBotSchema = object({
65924
+ name: workspaceBotNameSchema,
65925
+ email: workspaceBotEmailSchema
65926
+ });
65927
+ schemaRegistry.add(workspaceBotSchema, {
65928
+ description: "The workspace's bot user's config used to automated various operations tasks"
65929
+ });
65930
+ var workspaceReleaseBannerUrlSchema = optional(
65931
+ string2().check(_trim(), url())
65932
+ );
65933
+ schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
65934
+ description: "A URL to a banner image used to display the workspace's release"
65935
+ });
65936
+ var workspaceReleaseBannerAltSchema = _default(
65937
+ string2().check(_trim()),
65938
+ STORM_DEFAULT_BANNER_ALT
65939
+ );
65940
+ schemaRegistry.add(workspaceReleaseBannerAltSchema, {
65941
+ description: "The alt text for the workspace's release banner image"
65942
+ });
65943
+ var workspaceReleaseBannerSchema = object({
65944
+ url: workspaceReleaseBannerUrlSchema,
65945
+ alt: workspaceReleaseBannerAltSchema
65946
+ });
65947
+ schemaRegistry.add(workspaceReleaseBannerSchema, {
65948
+ description: "The workspace's banner image used during the release process"
65949
+ });
65950
+ var workspaceReleaseHeaderSchema = optional(
65951
+ string2().check(_trim())
67240
65952
  );
67241
- var LightColorSchema = ColorSchema.default("#cbd5e1").describe(
67242
- "The light background color of the workspace"
65953
+ schemaRegistry.add(workspaceReleaseHeaderSchema, {
65954
+ description: "A header message appended to the start of the workspace's release notes"
65955
+ });
65956
+ var workspaceReleaseFooterSchema = optional(
65957
+ string2().check(_trim())
67243
65958
  );
67244
- var BrandColorSchema = ColorSchema.default("#1fb2a6").describe(
67245
- "The primary brand specific color of the workspace"
65959
+ schemaRegistry.add(workspaceReleaseFooterSchema, {
65960
+ description: "A footer message appended to the end of the workspace's release notes"
65961
+ });
65962
+ var workspaceReleaseSchema = object({
65963
+ banner: union([
65964
+ workspaceReleaseBannerSchema,
65965
+ string2().check(_trim(), url())
65966
+ ]),
65967
+ header: workspaceReleaseHeaderSchema,
65968
+ footer: workspaceReleaseFooterSchema
65969
+ });
65970
+ schemaRegistry.add(workspaceReleaseSchema, {
65971
+ description: "The workspace's release config used during the release process"
65972
+ });
65973
+ var workspaceSocialsTwitterSchema = optional(
65974
+ string2().check(_trim())
67246
65975
  );
67247
- var AlternateColorSchema = ColorSchema.optional().describe(
67248
- "The alternate brand specific color of the workspace"
65976
+ schemaRegistry.add(workspaceSocialsTwitterSchema, {
65977
+ description: "A Twitter/X account associated with the organization/project"
65978
+ });
65979
+ var workspaceSocialsDiscordSchema = optional(
65980
+ string2().check(_trim())
67249
65981
  );
67250
- var AccentColorSchema = ColorSchema.optional().describe(
67251
- "The secondary brand specific color of the workspace"
65982
+ schemaRegistry.add(workspaceSocialsDiscordSchema, {
65983
+ description: "A Discord account associated with the organization/project"
65984
+ });
65985
+ var workspaceSocialsTelegramSchema = optional(
65986
+ string2().check(_trim())
67252
65987
  );
67253
- var LinkColorSchema = ColorSchema.default("#3fa6ff").describe(
67254
- "The color used to display hyperlink text"
65988
+ schemaRegistry.add(workspaceSocialsTelegramSchema, {
65989
+ description: "A Telegram account associated with the organization/project"
65990
+ });
65991
+ var workspaceSocialsSlackSchema = optional(
65992
+ string2().check(_trim())
67255
65993
  );
67256
- var HelpColorSchema = ColorSchema.default("#818cf8").describe(
67257
- "The second brand specific color of the workspace"
65994
+ schemaRegistry.add(workspaceSocialsSlackSchema, {
65995
+ description: "A Slack account associated with the organization/project"
65996
+ });
65997
+ var workspaceSocialsMediumSchema = optional(
65998
+ string2().check(_trim())
67258
65999
  );
67259
- var SuccessColorSchema = ColorSchema.default("#45b27e").describe(
67260
- "The success color of the workspace"
66000
+ schemaRegistry.add(workspaceSocialsMediumSchema, {
66001
+ description: "A Medium account associated with the organization/project"
66002
+ });
66003
+ var workspaceSocialsGithubSchema = optional(
66004
+ string2().check(_trim())
67261
66005
  );
67262
- var InfoColorSchema = ColorSchema.default("#38bdf8").describe(
67263
- "The informational color of the workspace"
66006
+ schemaRegistry.add(workspaceSocialsGithubSchema, {
66007
+ description: "A GitHub account associated with the organization/project"
66008
+ });
66009
+ var workspaceSocialsSchema = object({
66010
+ twitter: workspaceSocialsTwitterSchema,
66011
+ discord: workspaceSocialsDiscordSchema,
66012
+ telegram: workspaceSocialsTelegramSchema,
66013
+ slack: workspaceSocialsSlackSchema,
66014
+ medium: workspaceSocialsMediumSchema,
66015
+ github: workspaceSocialsGithubSchema
66016
+ });
66017
+ schemaRegistry.add(workspaceSocialsSchema, {
66018
+ description: "The workspace's account config used to store various social media links"
66019
+ });
66020
+ var workspaceDirectoryCacheSchema = optional(
66021
+ string2().check(_trim())
67264
66022
  );
67265
- var WarningColorSchema = ColorSchema.default("#f3d371").describe(
67266
- "The warning color of the workspace"
66023
+ schemaRegistry.add(workspaceDirectoryCacheSchema, {
66024
+ description: "The directory used to store the environment's cached file data"
66025
+ });
66026
+ var workspaceDirectoryDataSchema = optional(
66027
+ string2().check(_trim())
67267
66028
  );
67268
- var DangerColorSchema = ColorSchema.default("#d8314a").describe(
67269
- "The danger color of the workspace"
66029
+ schemaRegistry.add(workspaceDirectoryDataSchema, {
66030
+ description: "The directory used to store the environment's data files"
66031
+ });
66032
+ var workspaceDirectoryConfigSchema = optional(
66033
+ string2().check(_trim())
67270
66034
  );
67271
- var FatalColorSchema = ColorSchema.optional().describe(
67272
- "The fatal color of the workspace"
66035
+ schemaRegistry.add(workspaceDirectoryConfigSchema, {
66036
+ description: "The directory used to store the environment's configuration files"
66037
+ });
66038
+ var workspaceDirectoryTempSchema = optional(
66039
+ string2().check(_trim())
67273
66040
  );
67274
- var PositiveColorSchema = ColorSchema.default("#4ade80").describe(
67275
- "The positive number color of the workspace"
66041
+ schemaRegistry.add(workspaceDirectoryTempSchema, {
66042
+ description: "The directory used to store the environment's temp files"
66043
+ });
66044
+ var workspaceDirectoryLogSchema = optional(
66045
+ string2().check(_trim())
66046
+ );
66047
+ schemaRegistry.add(workspaceDirectoryLogSchema, {
66048
+ description: "The directory used to store the environment's log files"
66049
+ });
66050
+ var workspaceDirectoryBuildSchema = _default(
66051
+ string2().check(_trim()),
66052
+ "dist"
66053
+ );
66054
+ schemaRegistry.add(workspaceDirectoryBuildSchema, {
66055
+ description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
66056
+ });
66057
+ var workspaceDirectorySchema = object({
66058
+ cache: workspaceDirectoryCacheSchema,
66059
+ data: workspaceDirectoryDataSchema,
66060
+ config: workspaceDirectoryConfigSchema,
66061
+ temp: workspaceDirectoryTempSchema,
66062
+ log: workspaceDirectoryLogSchema,
66063
+ build: workspaceDirectoryBuildSchema
66064
+ });
66065
+ schemaRegistry.add(workspaceDirectorySchema, {
66066
+ description: "Various directories used by the workspace to store data, cache, and configuration files"
66067
+ });
66068
+ var errorCodesFileSchema = _default(
66069
+ string2().check(_trim()),
66070
+ STORM_DEFAULT_ERROR_CODES_FILE
66071
+ );
66072
+ schemaRegistry.add(errorCodesFileSchema, {
66073
+ description: "The path to the workspace's error codes JSON file"
66074
+ });
66075
+ var errorUrlSchema = optional(url());
66076
+ schemaRegistry.add(errorUrlSchema, {
66077
+ description: "A URL to a page that looks up the workspace's error messages given a specific error code"
66078
+ });
66079
+ var errorSchema = object({
66080
+ codesFile: errorCodesFileSchema,
66081
+ url: errorUrlSchema
66082
+ });
66083
+ schemaRegistry.add(errorSchema, {
66084
+ description: "The workspace's error config used when creating error details during a system error"
66085
+ });
66086
+ var organizationNameSchema = optional(
66087
+ string2().check(_trim(), _toLowerCase())
67276
66088
  );
67277
- var NegativeColorSchema = ColorSchema.default("#ef4444").describe(
67278
- "The negative number color of the workspace"
66089
+ schemaRegistry.add(organizationNameSchema, {
66090
+ description: "The name of the organization"
66091
+ });
66092
+ var organizationDescriptionSchema = optional(
66093
+ string2().check(_trim())
66094
+ );
66095
+ schemaRegistry.add(organizationDescriptionSchema, {
66096
+ description: "A description of the organization"
66097
+ });
66098
+ var organizationLogoSchema = optional(url());
66099
+ schemaRegistry.add(organizationLogoSchema, {
66100
+ description: "A URL to the organization's logo image"
66101
+ });
66102
+ var organizationIconSchema = optional(url());
66103
+ schemaRegistry.add(organizationIconSchema, {
66104
+ description: "A URL to the organization's icon image"
66105
+ });
66106
+ var organizationUrlSchema = optional(url());
66107
+ schemaRegistry.add(organizationUrlSchema, {
66108
+ description: "A URL to a page that provides more information about the organization"
66109
+ });
66110
+ var organizationSchema = object({
66111
+ name: organizationNameSchema,
66112
+ description: organizationDescriptionSchema,
66113
+ logo: organizationLogoSchema,
66114
+ icon: organizationIconSchema,
66115
+ url: organizationUrlSchema
66116
+ });
66117
+ schemaRegistry.add(organizationSchema, {
66118
+ description: "The workspace's organization details"
66119
+ });
66120
+ var schemaNameSchema = _default(
66121
+ string2().check(_trim(), _toLowerCase()),
66122
+ "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
67279
66123
  );
67280
- var GradientStopsSchema = array(ColorSchema).optional().describe(
67281
- "The color stops for the base gradient color pattern used in the workspace"
66124
+ schemaRegistry.add(schemaNameSchema, {
66125
+ description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
66126
+ });
66127
+ var nameSchema = string2().check(_trim(), _toLowerCase());
66128
+ schemaRegistry.add(nameSchema, {
66129
+ description: "The name of the workspace/project/service/package/scope using this configuration"
66130
+ });
66131
+ var namespaceSchema = string2().check(_trim(), _toLowerCase());
66132
+ schemaRegistry.add(namespaceSchema, {
66133
+ description: "The namespace of the workspace/project/service/package/scope using this configuration"
66134
+ });
66135
+ var orgSchema = union([
66136
+ organizationSchema,
66137
+ string2().check(_trim(), _toLowerCase())
66138
+ ]);
66139
+ schemaRegistry.add(orgSchema, {
66140
+ description: "The organization of the workspace. This can be a string or an object containing the organization's details"
66141
+ });
66142
+ var repositorySchema = string2().check(_trim(), _toLowerCase());
66143
+ schemaRegistry.add(repositorySchema, {
66144
+ description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
66145
+ });
66146
+ var licenseSchema = _default(
66147
+ string2().check(_trim()),
66148
+ "Apache-2.0"
67282
66149
  );
67283
- var DarkThemeColorConfigSchema = object({
67284
- foreground: LightColorSchema,
67285
- background: DarkColorSchema,
67286
- brand: BrandColorSchema,
67287
- alternate: AlternateColorSchema,
67288
- accent: AccentColorSchema,
67289
- link: LinkColorSchema,
67290
- help: HelpColorSchema,
67291
- success: SuccessColorSchema,
67292
- info: InfoColorSchema,
67293
- warning: WarningColorSchema,
67294
- danger: DangerColorSchema,
67295
- fatal: FatalColorSchema,
67296
- positive: PositiveColorSchema,
67297
- negative: NegativeColorSchema,
67298
- gradient: GradientStopsSchema
66150
+ schemaRegistry.add(licenseSchema, {
66151
+ description: "The license type of the package"
67299
66152
  });
67300
- var LightThemeColorConfigSchema = object({
67301
- foreground: DarkColorSchema,
67302
- background: LightColorSchema,
67303
- brand: BrandColorSchema,
67304
- alternate: AlternateColorSchema,
67305
- accent: AccentColorSchema,
67306
- link: LinkColorSchema,
67307
- help: HelpColorSchema,
67308
- success: SuccessColorSchema,
67309
- info: InfoColorSchema,
67310
- warning: WarningColorSchema,
67311
- danger: DangerColorSchema,
67312
- fatal: FatalColorSchema,
67313
- positive: PositiveColorSchema,
67314
- negative: NegativeColorSchema,
67315
- gradient: GradientStopsSchema
66153
+ var homepageSchema = optional(url());
66154
+ schemaRegistry.add(homepageSchema, {
66155
+ description: "The homepage of the workspace"
67316
66156
  });
67317
- var MultiThemeColorConfigSchema = object({
67318
- dark: DarkThemeColorConfigSchema,
67319
- light: LightThemeColorConfigSchema
66157
+ var docsSchema = optional(url());
66158
+ schemaRegistry.add(docsSchema, {
66159
+ description: "The documentation site for the workspace"
67320
66160
  });
67321
- var SingleThemeColorConfigSchema = object({
67322
- dark: DarkColorSchema,
67323
- light: LightColorSchema,
67324
- brand: BrandColorSchema,
67325
- alternate: AlternateColorSchema,
67326
- accent: AccentColorSchema,
67327
- link: LinkColorSchema,
67328
- help: HelpColorSchema,
67329
- success: SuccessColorSchema,
67330
- info: InfoColorSchema,
67331
- warning: WarningColorSchema,
67332
- danger: DangerColorSchema,
67333
- fatal: FatalColorSchema,
67334
- positive: PositiveColorSchema,
67335
- negative: NegativeColorSchema,
67336
- gradient: GradientStopsSchema
66161
+ var portalSchema = optional(url());
66162
+ schemaRegistry.add(portalSchema, {
66163
+ description: "The development portal site for the workspace"
67337
66164
  });
67338
- var RegistryUrlConfigSchema = url().optional().describe("A remote registry URL used to publish distributable packages");
67339
- var RegistryConfigSchema = object({
67340
- github: RegistryUrlConfigSchema,
67341
- npm: RegistryUrlConfigSchema,
67342
- cargo: RegistryUrlConfigSchema,
67343
- cyclone: RegistryUrlConfigSchema,
67344
- container: RegistryUrlConfigSchema
67345
- }).default({}).describe("A list of remote registry URLs used by Storm Software");
67346
- var ColorConfigSchema = SingleThemeColorConfigSchema.or(
67347
- MultiThemeColorConfigSchema
67348
- ).describe("Colors used for various workspace elements");
67349
- var ColorConfigMapSchema = record(
67350
- union([literal("base"), string2()]),
67351
- ColorConfigSchema
66165
+ var licensingSchema = optional(url());
66166
+ schemaRegistry.add(licensingSchema, {
66167
+ description: "The licensing site for the workspace"
66168
+ });
66169
+ var contactSchema = optional(url());
66170
+ schemaRegistry.add(contactSchema, {
66171
+ description: "The contact site for the workspace"
66172
+ });
66173
+ var supportSchema = optional(url());
66174
+ schemaRegistry.add(supportSchema, {
66175
+ description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
66176
+ });
66177
+ var branchSchema = _default(
66178
+ string2().check(_trim(), _toLowerCase()),
66179
+ "main"
67352
66180
  );
67353
- var ExtendsItemSchema = string2().trim().describe(
67354
- "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
66181
+ schemaRegistry.add(branchSchema, {
66182
+ description: "The branch of the workspace"
66183
+ });
66184
+ var preidSchema = optional(
66185
+ string2().check(_trim(), _toLowerCase())
67355
66186
  );
67356
- var ExtendsSchema = ExtendsItemSchema.or(
67357
- array(ExtendsItemSchema)
67358
- ).describe(
67359
- "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
66187
+ schemaRegistry.add(preidSchema, {
66188
+ description: "A tag specifying the version pre-release identifier"
66189
+ });
66190
+ var ownerSchema = optional(
66191
+ string2().check(_trim(), _toLowerCase())
67360
66192
  );
67361
- var WorkspaceBotConfigSchema = object({
67362
- name: string2().trim().default("stormie-bot").describe(
67363
- "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
67364
- ),
67365
- email: email2().default("bot@stormsoftware.com").describe("The email of the workspace bot")
67366
- }).describe(
67367
- "The workspace's bot user's config used to automated various operations tasks"
66193
+ schemaRegistry.add(ownerSchema, {
66194
+ description: "The owner of the package"
66195
+ });
66196
+ var modeSchema = _default(
66197
+ _enum(["development", "staging", "production"]).check(_trim(), _toLowerCase()),
66198
+ "production"
67368
66199
  );
67369
- var WorkspaceReleaseConfigSchema = object({
67370
- banner: string2().trim().optional().describe(
67371
- "A URL to a banner image used to display the workspace's release"
67372
- ),
67373
- header: string2().trim().optional().describe(
67374
- "A header message appended to the start of the workspace's release notes"
67375
- ),
67376
- footer: string2().trim().optional().describe(
67377
- "A footer message appended to the end of the workspace's release notes"
67378
- )
67379
- }).describe("The workspace's release config used during the release process");
67380
- var WorkspaceSocialsConfigSchema = object({
67381
- twitter: string2().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
67382
- discord: string2().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
67383
- telegram: string2().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
67384
- slack: string2().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
67385
- medium: string2().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
67386
- github: string2().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
67387
- }).describe(
67388
- "The workspace's account config used to store various social media links"
66200
+ schemaRegistry.add(modeSchema, {
66201
+ description: "The current runtime environment mode for the package"
66202
+ });
66203
+ var workspaceRootSchema = string2().check(_trim(), _toLowerCase());
66204
+ schemaRegistry.add(workspaceRootSchema, {
66205
+ description: "The root directory of the workspace"
66206
+ });
66207
+ var skipCacheSchema = _default(boolean2(), false);
66208
+ schemaRegistry.add(skipCacheSchema, {
66209
+ description: "Should all known types of workspace caching be skipped?"
66210
+ });
66211
+ var packageManagerSchema = _default(
66212
+ _enum(["npm", "yarn", "pnpm", "bun"]),
66213
+ "npm"
66214
+ );
66215
+ schemaRegistry.add(packageManagerSchema, {
66216
+ description: "The JavaScript/TypeScript package manager used by the repository"
66217
+ });
66218
+ var timezoneSchema = _default(
66219
+ string2().check(_trim(), _toLowerCase()),
66220
+ "America/New_York"
67389
66221
  );
67390
- var WorkspaceDirectoryConfigSchema = object({
67391
- cache: string2().trim().optional().describe(
67392
- "The directory used to store the environment's cached file data"
67393
- ),
67394
- data: string2().trim().optional().describe("The directory used to store the environment's data files"),
67395
- config: string2().trim().optional().describe(
67396
- "The directory used to store the environment's configuration files"
67397
- ),
67398
- temp: string2().trim().optional().describe("The directory used to store the environment's temp files"),
67399
- log: string2().trim().optional().describe("The directory used to store the environment's temp files"),
67400
- build: string2().trim().default("dist").describe(
67401
- "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
67402
- )
67403
- }).describe(
67404
- "Various directories used by the workspace to store data, cache, and configuration files"
66222
+ schemaRegistry.add(timezoneSchema, {
66223
+ description: "The default timezone of the workspace"
66224
+ });
66225
+ var localeSchema = _default(
66226
+ string2().check(_trim(), _toLowerCase()),
66227
+ "en-US"
67405
66228
  );
67406
- var errorConfigSchema = object({
67407
- codesFile: string2().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
67408
- url: url().optional().describe(
67409
- "A URL to a page that looks up the workspace's error messages given a specific error code"
67410
- )
67411
- }).describe("The workspace's error config used during the error process");
67412
- var organizationConfigSchema = object({
67413
- name: string2().trim().describe("The name of the organization"),
67414
- description: string2().trim().optional().describe("A description of the organization"),
67415
- logo: url().optional().describe("A URL to the organization's logo image"),
67416
- icon: url().optional().describe("A URL to the organization's icon image"),
67417
- url: url().optional().describe(
67418
- "A URL to a page that provides more information about the organization"
67419
- )
67420
- }).describe("The workspace's organization details");
67421
- var stormWorkspaceConfigSchema = object({
67422
- $schema: string2().trim().default(
67423
- "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
67424
- ).describe(
67425
- "The URL or file path to the JSON schema file that describes the Storm configuration file"
67426
- ),
67427
- extends: ExtendsSchema.optional(),
67428
- name: string2().trim().toLowerCase().optional().describe(
67429
- "The name of the service/package/scope using this configuration"
67430
- ),
67431
- namespace: string2().trim().toLowerCase().optional().describe("The namespace of the package"),
67432
- organization: organizationConfigSchema.or(string2().trim().describe("The organization of the workspace")).optional().describe(
67433
- "The organization of the workspace. This can be a string or an object containing the organization's details"
67434
- ),
67435
- repository: string2().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
67436
- license: string2().trim().default("Apache-2.0").describe("The license type of the package"),
67437
- homepage: url().optional().describe("The homepage of the workspace"),
67438
- docs: url().optional().describe("The documentation site for the workspace"),
67439
- portal: url().optional().describe("The development portal site for the workspace"),
67440
- licensing: url().optional().describe("The licensing site for the workspace"),
67441
- contact: url().optional().describe("The contact site for the workspace"),
67442
- support: url().optional().describe(
67443
- "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
67444
- ),
67445
- branch: string2().trim().default("main").describe("The branch of the workspace"),
67446
- preid: string2().optional().describe("A tag specifying the version pre-release identifier"),
67447
- owner: string2().trim().default("@storm-software/admin").describe("The owner of the package"),
67448
- bot: WorkspaceBotConfigSchema,
67449
- release: WorkspaceReleaseConfigSchema,
67450
- socials: WorkspaceSocialsConfigSchema,
67451
- error: errorConfigSchema,
67452
- mode: string2().trim().default("production").describe("The current runtime environment mode for the package"),
67453
- workspaceRoot: string2().trim().describe("The root directory of the workspace"),
67454
- skipCache: boolean2().default(false).describe("Should all known types of workspace caching be skipped?"),
67455
- directories: WorkspaceDirectoryConfigSchema,
67456
- packageManager: _enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
67457
- "The JavaScript/TypeScript package manager used by the repository"
67458
- ),
67459
- timezone: string2().trim().default("America/New_York").describe("The default timezone of the workspace"),
67460
- locale: string2().trim().default("en-US").describe("The default locale of the workspace"),
67461
- logLevel: _enum([
66229
+ schemaRegistry.add(localeSchema, {
66230
+ description: "The default locale of the workspace"
66231
+ });
66232
+ var logLevelSchema = _default(
66233
+ _enum([
67462
66234
  "silent",
67463
66235
  "fatal",
67464
66236
  "error",
@@ -67468,23 +66240,65 @@ var stormWorkspaceConfigSchema = object({
67468
66240
  "debug",
67469
66241
  "trace",
67470
66242
  "all"
67471
- ]).default("info").describe(
67472
- "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
67473
- ),
67474
- skipConfigLogging: boolean2().optional().describe(
67475
- "Should the logging of the current Storm Workspace configuration be skipped?"
67476
- ),
67477
- registry: RegistryConfigSchema,
67478
- configFile: string2().trim().nullable().default(null).describe(
67479
- "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
67480
- ),
67481
- colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
67482
- "Storm theme config values used for styling various package elements"
67483
- ),
67484
- extensions: record(string2(), any()).optional().default({}).describe("Configuration of each used extension")
67485
- }).describe(
67486
- "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
66243
+ ]),
66244
+ "info"
66245
+ );
66246
+ schemaRegistry.add(logLevelSchema, {
66247
+ description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66248
+ });
66249
+ var skipConfigLoggingSchema = _default(boolean2(), true);
66250
+ schemaRegistry.add(skipConfigLoggingSchema, {
66251
+ description: "Should the logging of the current Storm Workspace configuration be skipped?"
66252
+ });
66253
+ var configFileSchema = _default(
66254
+ nullable(string2().check(_trim())),
66255
+ null
67487
66256
  );
66257
+ schemaRegistry.add(configFileSchema, {
66258
+ description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66259
+ });
66260
+ var extensionsSchema = _default(record(string2(), any()), {});
66261
+ schemaRegistry.add(extensionsSchema, {
66262
+ description: "Configuration of each used extension"
66263
+ });
66264
+ var workspaceConfigSchema = object({
66265
+ $schema: schemaNameSchema,
66266
+ extends: extendsSchema,
66267
+ name: nameSchema,
66268
+ namespace: namespaceSchema,
66269
+ organization: orgSchema,
66270
+ repository: repositorySchema,
66271
+ license: licenseSchema,
66272
+ homepage: homepageSchema,
66273
+ docs: docsSchema,
66274
+ portal: portalSchema,
66275
+ licensing: licensingSchema,
66276
+ contact: contactSchema,
66277
+ support: supportSchema,
66278
+ branch: branchSchema,
66279
+ preid: preidSchema,
66280
+ owner: ownerSchema,
66281
+ bot: workspaceBotSchema,
66282
+ release: workspaceReleaseSchema,
66283
+ socials: workspaceSocialsSchema,
66284
+ error: errorSchema,
66285
+ mode: modeSchema,
66286
+ workspaceRoot: workspaceRootSchema,
66287
+ skipCache: skipCacheSchema,
66288
+ directories: workspaceDirectorySchema,
66289
+ packageManager: packageManagerSchema,
66290
+ timezone: timezoneSchema,
66291
+ locale: localeSchema,
66292
+ logLevel: logLevelSchema,
66293
+ skipConfigLogging: skipConfigLoggingSchema,
66294
+ registry: registrySchema,
66295
+ configFile: configFileSchema,
66296
+ colors: union([colorsSchema, themeColorsSchema]),
66297
+ extensions: extensionsSchema
66298
+ });
66299
+ schemaRegistry.add(extensionsSchema, {
66300
+ description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
66301
+ });
67488
66302
 
67489
66303
  // ../config-tools/src/create-storm-config.ts
67490
66304
  init_defu();
@@ -68259,8 +67073,8 @@ var CONSOLE_ICONS = {
68259
67073
 
68260
67074
  // ../config-tools/src/logger/format-timestamp.ts
68261
67075
  init_esm_shims();
68262
- var formatTimestamp = (date3 = /* @__PURE__ */ new Date()) => {
68263
- return `${date3.toLocaleDateString()} ${date3.toLocaleTimeString()}`;
67076
+ var formatTimestamp = (date2 = /* @__PURE__ */ new Date()) => {
67077
+ return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
68264
67078
  };
68265
67079
 
68266
67080
  // ../config-tools/src/logger/get-log-level.ts
@@ -68924,7 +67738,10 @@ var getConfigEnv = () => {
68924
67738
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
68925
67739
  },
68926
67740
  release: {
68927
- banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
67741
+ banner: {
67742
+ url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
67743
+ alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
67744
+ },
68928
67745
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
68929
67746
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
68930
67747
  },
@@ -69001,11 +67818,11 @@ var getConfigEnv = () => {
69001
67818
  );
69002
67819
  config2.colors = themeNames.length > 0 ? themeNames.reduce(
69003
67820
  (ret, themeName) => {
69004
- ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
67821
+ ret[themeName] = getThemeColorsEnv(prefix, themeName);
69005
67822
  return ret;
69006
67823
  },
69007
67824
  {}
69008
- ) : getThemeColorConfigEnv(prefix);
67825
+ ) : getThemeColorsEnv(prefix);
69009
67826
  if (config2.docs === STORM_DEFAULT_DOCS) {
69010
67827
  if (config2.homepage === STORM_DEFAULT_HOMEPAGE) {
69011
67828
  config2.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config2.name}/docs`;
@@ -69032,11 +67849,11 @@ var getConfigEnv = () => {
69032
67849
  }
69033
67850
  return config2;
69034
67851
  };
69035
- var getThemeColorConfigEnv = (prefix, theme) => {
67852
+ var getThemeColorsEnv = (prefix, theme) => {
69036
67853
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
69037
- return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
67854
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
69038
67855
  };
69039
- var getSingleThemeColorConfigEnv = (prefix) => {
67856
+ var getSingleThemeColorsEnv = (prefix) => {
69040
67857
  const gradient = [];
69041
67858
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
69042
67859
  gradient.push(
@@ -69068,15 +67885,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
69068
67885
  gradient
69069
67886
  };
69070
67887
  };
69071
- var getMultiThemeColorConfigEnv = (prefix) => {
67888
+ var getMultiThemeColorsEnv = (prefix) => {
69072
67889
  return {
69073
- light: getBaseThemeColorConfigEnv(
69074
- `${prefix}_LIGHT_`
69075
- ),
69076
- dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
67890
+ light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
67891
+ dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
69077
67892
  };
69078
67893
  };
69079
- var getBaseThemeColorConfigEnv = (prefix) => {
67894
+ var getBaseThemeColorsEnv = (prefix) => {
69080
67895
  const gradient = [];
69081
67896
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
69082
67897
  gradient.push(
@@ -69156,7 +67971,16 @@ var setConfigEnv = (config2) => {
69156
67971
  process.env[`${prefix}ERROR_URL`] = config2.error.url;
69157
67972
  }
69158
67973
  if (config2.release) {
69159
- process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner;
67974
+ if (config2.release.banner) {
67975
+ if (typeof config2.release.banner === "string") {
67976
+ process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner;
67977
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config2.release.banner;
67978
+ } else {
67979
+ process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner.url;
67980
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config2.release.banner.url;
67981
+ process.env[`${prefix}RELEASE_BANNER_ALT`] = config2.release.banner.alt;
67982
+ }
67983
+ }
69160
67984
  process.env[`${prefix}RELEASE_HEADER`] = config2.release.header;
69161
67985
  process.env[`${prefix}RELEASE_FOOTER`] = config2.release.footer;
69162
67986
  }
@@ -69299,10 +68123,10 @@ var setConfigEnv = (config2) => {
69299
68123
  }
69300
68124
  if (config2.colors?.base?.light || config2.colors?.base?.dark) {
69301
68125
  for (const key of Object.keys(config2.colors)) {
69302
- setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config2.colors[key]);
68126
+ setThemeColorsEnv(`${prefix}COLOR_${key}_`, config2.colors[key]);
69303
68127
  }
69304
68128
  } else {
69305
- setThemeColorConfigEnv(
68129
+ setThemeColorsEnv(
69306
68130
  `${prefix}COLOR_`,
69307
68131
  config2.colors
69308
68132
  );
@@ -69357,10 +68181,10 @@ var setConfigEnv = (config2) => {
69357
68181
  }
69358
68182
  }
69359
68183
  };
69360
- var setThemeColorConfigEnv = (prefix, config2) => {
69361
- return config2?.light?.brand || config2?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config2) : setSingleThemeColorConfigEnv(prefix, config2);
68184
+ var setThemeColorsEnv = (prefix, config2) => {
68185
+ return config2?.light?.brand || config2?.dark?.brand ? setMultiThemeColorsEnv(prefix, config2) : setSingleThemeColorsEnv(prefix, config2);
69362
68186
  };
69363
- var setSingleThemeColorConfigEnv = (prefix, config2) => {
68187
+ var setSingleThemeColorsEnv = (prefix, config2) => {
69364
68188
  if (config2.dark) {
69365
68189
  process.env[`${prefix}DARK`] = config2.dark;
69366
68190
  }
@@ -69409,13 +68233,13 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
69409
68233
  }
69410
68234
  }
69411
68235
  };
69412
- var setMultiThemeColorConfigEnv = (prefix, config2) => {
68236
+ var setMultiThemeColorsEnv = (prefix, config2) => {
69413
68237
  return {
69414
- light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config2.light),
69415
- dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config2.dark)
68238
+ light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config2.light),
68239
+ dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config2.dark)
69416
68240
  };
69417
68241
  };
69418
- var setBaseThemeColorConfigEnv = (prefix, config2) => {
68242
+ var setBaseThemeColorsEnv = (prefix, config2) => {
69419
68243
  if (config2.foreground) {
69420
68244
  process.env[`${prefix}FOREGROUND`] = config2.foreground;
69421
68245
  }
@@ -69496,7 +68320,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
69496
68320
  );
69497
68321
  try {
69498
68322
  result = applyDefaultConfig(
69499
- await stormWorkspaceConfigSchema.parseAsync(configInput)
68323
+ await workspaceConfigSchema.parseAsync(configInput)
69500
68324
  );
69501
68325
  result.workspaceRoot ??= _workspaceRoot;
69502
68326
  } catch (error) {