@storm-software/eslint 0.170.21 → 0.170.23

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/dist/preset.cjs CHANGED
@@ -112,10 +112,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
112
112
  mod
113
113
  ));
114
114
 
115
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/cjs_shims.js
115
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__89bd8bfa776d251dbd20e938db1c740e/node_modules/tsup/assets/cjs_shims.js
116
116
  var getImportMetaUrl, importMetaUrl;
117
117
  var init_cjs_shims = __esm({
118
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/cjs_shims.js"() {
118
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__89bd8bfa776d251dbd20e938db1c740e/node_modules/tsup/assets/cjs_shims.js"() {
119
119
  getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
120
120
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
121
121
  }
@@ -123,24 +123,24 @@ var init_cjs_shims = __esm({
123
123
 
124
124
  // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
125
125
  var require_Debug = __commonJS({
126
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports$1) {
126
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
127
127
  init_cjs_shims();
128
- Object.defineProperty(exports$1, "__esModule", { value: true });
129
- exports$1.Debug = void 0;
128
+ Object.defineProperty(exports, "__esModule", { value: true });
129
+ exports.Debug = void 0;
130
130
  var Debug = class {
131
131
  // To debug the plugin, temporarily uncomment the body of this function
132
132
  static log(message) {
133
133
  }
134
134
  };
135
- exports$1.Debug = Debug;
135
+ exports.Debug = Debug;
136
136
  }
137
137
  });
138
138
 
139
139
  // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
140
140
  var require_ConfigCache = __commonJS({
141
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports$1) {
141
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
142
142
  init_cjs_shims();
143
- var __createBinding = exports$1 && exports$1.__createBinding || (Object.create ? (function(o, m, k, k2) {
143
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
144
144
  if (k2 === void 0) k2 = k;
145
145
  var desc = Object.getOwnPropertyDescriptor(m, k);
146
146
  if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
@@ -153,12 +153,12 @@ var require_ConfigCache = __commonJS({
153
153
  if (k2 === void 0) k2 = k;
154
154
  o[k2] = m[k];
155
155
  }));
156
- var __setModuleDefault = exports$1 && exports$1.__setModuleDefault || (Object.create ? (function(o, v) {
156
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
157
157
  Object.defineProperty(o, "default", { enumerable: true, value: v });
158
158
  }) : function(o, v) {
159
159
  o["default"] = v;
160
160
  });
161
- var __importStar = exports$1 && exports$1.__importStar || function(mod) {
161
+ var __importStar = exports && exports.__importStar || function(mod) {
162
162
  if (mod && mod.__esModule) return mod;
163
163
  var result = {};
164
164
  if (mod != null) {
@@ -167,8 +167,8 @@ var require_ConfigCache = __commonJS({
167
167
  __setModuleDefault(result, mod);
168
168
  return result;
169
169
  };
170
- Object.defineProperty(exports$1, "__esModule", { value: true });
171
- exports$1.ConfigCache = void 0;
170
+ Object.defineProperty(exports, "__esModule", { value: true });
171
+ exports.ConfigCache = void 0;
172
172
  var tsdoc_config_1 = __require("@microsoft/tsdoc-config");
173
173
  var path = __importStar(__require("path"));
174
174
  var Debug_1 = require_Debug();
@@ -464,7 +464,7 @@ var require_ConfigCache = __commonJS({
464
464
  return cachedConfig.configFile;
465
465
  }
466
466
  };
467
- exports$1.ConfigCache = ConfigCache;
467
+ exports.ConfigCache = ConfigCache;
468
468
  ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
469
469
  ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
470
470
  }
@@ -472,7 +472,7 @@ var require_ConfigCache = __commonJS({
472
472
 
473
473
  // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js
474
474
  var require_lib = __commonJS({
475
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports$1, module) {
475
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
476
476
  init_cjs_shims();
477
477
  var tsdoc_1 = __require("@microsoft/tsdoc");
478
478
  var Debug_1 = require_Debug();
@@ -1787,7 +1787,7 @@ init_cjs_shims();
1787
1787
  // src/plugins.ts
1788
1788
  init_cjs_shims();
1789
1789
 
1790
- // ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_c2c306fcdcc71ec0ba6c6725efcbe1ee/node_modules/eslint-plugin-pnpm/dist/index.mjs
1790
+ // ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_9a83dbe288d598de72c3e754ec4675de/node_modules/eslint-plugin-pnpm/dist/index.mjs
1791
1791
  init_cjs_shims();
1792
1792
  var name = "eslint-plugin-pnpm";
1793
1793
  var version = "0.3.0";
@@ -3047,17 +3047,12 @@ init_cjs_shims();
3047
3047
  // ../config/src/schema.ts
3048
3048
  init_cjs_shims();
3049
3049
 
3050
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/index.js
3050
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/external.js
3051
3051
  init_cjs_shims();
3052
3052
 
3053
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/external.js
3054
- init_cjs_shims();
3055
-
3056
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
3057
- init_cjs_shims();
3058
-
3059
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
3053
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
3060
3054
  init_cjs_shims();
3055
+ var _a;
3061
3056
  // @__NO_SIDE_EFFECTS__
3062
3057
  function $constructor(name2, initializer2, params) {
3063
3058
  function init(inst, def) {
@@ -3090,10 +3085,10 @@ function $constructor(name2, initializer2, params) {
3090
3085
  }
3091
3086
  Object.defineProperty(Definition, "name", { value: name2 });
3092
3087
  function _(def) {
3093
- var _a2;
3088
+ var _a3;
3094
3089
  const inst = params?.Parent ? new Definition() : this;
3095
3090
  init(inst, def);
3096
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
3091
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
3097
3092
  for (const fn of inst._zod.deferred) {
3098
3093
  fn();
3099
3094
  }
@@ -3115,18 +3110,19 @@ var $ZodAsyncError = class extends Error {
3115
3110
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
3116
3111
  }
3117
3112
  };
3118
- var globalConfig = {};
3113
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
3114
+ var globalConfig = globalThis.__zod_globalConfig;
3119
3115
  function config(newConfig) {
3120
3116
  return globalConfig;
3121
3117
  }
3122
3118
 
3123
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
3119
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
3124
3120
  init_cjs_shims();
3125
3121
 
3126
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
3122
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
3127
3123
  init_cjs_shims();
3128
3124
 
3129
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
3125
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
3130
3126
  init_cjs_shims();
3131
3127
  function getEnumValues(entries) {
3132
3128
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
@@ -3157,7 +3153,7 @@ function cleanRegex(source) {
3157
3153
  const end = source.endsWith("$") ? source.length - 1 : source.length;
3158
3154
  return source.slice(start, end);
3159
3155
  }
3160
- var EVALUATING = Symbol("evaluating");
3156
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
3161
3157
  function defineLazy(object2, key, getter) {
3162
3158
  let value = void 0;
3163
3159
  Object.defineProperty(object2, key, {
@@ -3206,6 +3202,10 @@ function shallowClone(o) {
3206
3202
  return { ...o };
3207
3203
  if (Array.isArray(o))
3208
3204
  return [...o];
3205
+ if (o instanceof Map)
3206
+ return new Map(o);
3207
+ if (o instanceof Set)
3208
+ return new Set(o);
3209
3209
  return o;
3210
3210
  }
3211
3211
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
@@ -3219,7 +3219,20 @@ function clone(inst, def, params) {
3219
3219
  return cl;
3220
3220
  }
3221
3221
  function normalizeParams(_params) {
3222
- return {};
3222
+ const params = _params;
3223
+ if (!params)
3224
+ return {};
3225
+ if (typeof params === "string")
3226
+ return { error: () => params };
3227
+ if (params?.message !== void 0) {
3228
+ if (params?.error !== void 0)
3229
+ throw new Error("Cannot specify both `message` and `error` params");
3230
+ params.error = params.message;
3231
+ }
3232
+ delete params.message;
3233
+ if (typeof params.error === "string")
3234
+ return { ...params, error: () => params.error };
3235
+ return params;
3223
3236
  }
3224
3237
  function optionalKeys(shape) {
3225
3238
  return Object.keys(shape).filter((k) => {
@@ -3236,10 +3249,20 @@ function aborted(x, startIndex = 0) {
3236
3249
  }
3237
3250
  return false;
3238
3251
  }
3252
+ function explicitlyAborted(x, startIndex = 0) {
3253
+ if (x.aborted === true)
3254
+ return true;
3255
+ for (let i = startIndex; i < x.issues.length; i++) {
3256
+ if (x.issues[i]?.continue === false) {
3257
+ return true;
3258
+ }
3259
+ }
3260
+ return false;
3261
+ }
3239
3262
  function prefixIssues(path, issues) {
3240
3263
  return issues.map((iss) => {
3241
- var _a2;
3242
- (_a2 = iss).path ?? (_a2.path = []);
3264
+ var _a3;
3265
+ (_a3 = iss).path ?? (_a3.path = []);
3243
3266
  iss.path.unshift(path);
3244
3267
  return iss;
3245
3268
  });
@@ -3248,17 +3271,14 @@ function unwrapMessage(message) {
3248
3271
  return typeof message === "string" ? message : message?.message;
3249
3272
  }
3250
3273
  function finalizeIssue(iss, ctx, config3) {
3251
- const full = { ...iss, path: iss.path ?? [] };
3252
- if (!iss.message) {
3253
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config3.customError?.(iss)) ?? unwrapMessage(config3.localeError?.(iss)) ?? "Invalid input";
3254
- full.message = message;
3274
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config3.customError?.(iss)) ?? unwrapMessage(config3.localeError?.(iss)) ?? "Invalid input";
3275
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
3276
+ rest.path ?? (rest.path = []);
3277
+ rest.message = message;
3278
+ if (ctx?.reportInput) {
3279
+ rest.input = _input;
3255
3280
  }
3256
- delete full.inst;
3257
- delete full.continue;
3258
- if (!ctx?.reportInput) {
3259
- delete full.input;
3260
- }
3261
- return full;
3281
+ return rest;
3262
3282
  }
3263
3283
  function getLengthableOrigin(input) {
3264
3284
  if (Array.isArray(input))
@@ -3268,7 +3288,7 @@ function getLengthableOrigin(input) {
3268
3288
  return "unknown";
3269
3289
  }
3270
3290
 
3271
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
3291
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
3272
3292
  var initializer = (inst, def) => {
3273
3293
  inst.name = "$ZodError";
3274
3294
  Object.defineProperty(inst, "_zod", {
@@ -3288,9 +3308,9 @@ var initializer = (inst, def) => {
3288
3308
  var $ZodError = $constructor("$ZodError", initializer);
3289
3309
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
3290
3310
 
3291
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
3311
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
3292
3312
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
3293
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
3313
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
3294
3314
  const result = schema._zod.run({ value, issues: [] }, ctx);
3295
3315
  if (result instanceof Promise) {
3296
3316
  throw new $ZodAsyncError();
@@ -3304,7 +3324,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
3304
3324
  };
3305
3325
  var parse = /* @__PURE__ */ _parse($ZodRealError);
3306
3326
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
3307
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
3327
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
3308
3328
  let result = schema._zod.run({ value, issues: [] }, ctx);
3309
3329
  if (result instanceof Promise)
3310
3330
  result = await result;
@@ -3329,7 +3349,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
3329
3349
  };
3330
3350
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
3331
3351
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
3332
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
3352
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
3333
3353
  let result = schema._zod.run({ value, issues: [] }, ctx);
3334
3354
  if (result instanceof Promise)
3335
3355
  result = await result;
@@ -3340,14 +3360,15 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
3340
3360
  };
3341
3361
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
3342
3362
 
3343
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
3363
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
3344
3364
  init_cjs_shims();
3345
3365
 
3346
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
3366
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
3347
3367
  init_cjs_shims();
3348
3368
 
3349
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
3369
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
3350
3370
  init_cjs_shims();
3371
+ var httpProtocol = /^https?$/;
3351
3372
  var string = (params) => {
3352
3373
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
3353
3374
  return new RegExp(`^${regex}$`);
@@ -3355,17 +3376,17 @@ var string = (params) => {
3355
3376
  var number = /^-?\d+(?:\.\d+)?$/;
3356
3377
  var boolean = /^(?:true|false)$/i;
3357
3378
 
3358
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
3379
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
3359
3380
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
3360
- var _a2;
3381
+ var _a3;
3361
3382
  inst._zod ?? (inst._zod = {});
3362
3383
  inst._zod.def = def;
3363
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
3384
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
3364
3385
  });
3365
3386
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
3366
- var _a2;
3387
+ var _a3;
3367
3388
  $ZodCheck.init(inst, def);
3368
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
3389
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
3369
3390
  const val = payload.value;
3370
3391
  return !nullish(val) && val.length !== void 0;
3371
3392
  });
@@ -3394,7 +3415,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
3394
3415
  };
3395
3416
  });
3396
3417
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
3397
- var _a2, _b;
3418
+ var _a3, _b;
3398
3419
  $ZodCheck.init(inst, def);
3399
3420
  inst._zod.onattach.push((inst2) => {
3400
3421
  const bag = inst2._zod.bag;
@@ -3405,7 +3426,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
3405
3426
  }
3406
3427
  });
3407
3428
  if (def.pattern)
3408
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
3429
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
3409
3430
  def.pattern.lastIndex = 0;
3410
3431
  if (def.pattern.test(payload.value))
3411
3432
  return;
@@ -3447,20 +3468,17 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3447
3468
  };
3448
3469
  });
3449
3470
 
3450
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
3451
- init_cjs_shims();
3452
-
3453
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
3471
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
3454
3472
  init_cjs_shims();
3455
3473
  var version2 = {
3456
3474
  major: 4,
3457
- minor: 3,
3458
- patch: 6
3475
+ minor: 4,
3476
+ patch: 3
3459
3477
  };
3460
3478
 
3461
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
3479
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
3462
3480
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3463
- var _a2;
3481
+ var _a3;
3464
3482
  inst ?? (inst = {});
3465
3483
  inst._zod.def = def;
3466
3484
  inst._zod.bag = inst._zod.bag || {};
@@ -3475,7 +3493,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3475
3493
  }
3476
3494
  }
3477
3495
  if (checks.length === 0) {
3478
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
3496
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
3479
3497
  inst._zod.deferred?.push(() => {
3480
3498
  inst._zod.run = inst._zod.parse;
3481
3499
  });
@@ -3485,6 +3503,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3485
3503
  let asyncResult;
3486
3504
  for (const ch of checks2) {
3487
3505
  if (ch._zod.def.when) {
3506
+ if (explicitlyAborted(payload))
3507
+ continue;
3488
3508
  const shouldRun = ch._zod.def.when(payload);
3489
3509
  if (!shouldRun)
3490
3510
  continue;
@@ -3597,6 +3617,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3597
3617
  inst._zod.check = (payload) => {
3598
3618
  try {
3599
3619
  const trimmed = payload.value.trim();
3620
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
3621
+ if (!/^https?:\/\//i.test(trimmed)) {
3622
+ payload.issues.push({
3623
+ code: "invalid_format",
3624
+ format: "url",
3625
+ note: "Invalid URL format",
3626
+ input: payload.value,
3627
+ inst,
3628
+ continue: !def.abort
3629
+ });
3630
+ return;
3631
+ }
3632
+ }
3600
3633
  const url2 = new URL(trimmed);
3601
3634
  if (def.hostname) {
3602
3635
  def.hostname.lastIndex = 0;
@@ -3707,15 +3740,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3707
3740
  return payload;
3708
3741
  };
3709
3742
  });
3710
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
3743
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
3744
+ const isPresent = key in input;
3711
3745
  if (result.issues.length) {
3712
- if (isOptionalOut && !(key in input)) {
3746
+ if (isOptionalIn && isOptionalOut && !isPresent) {
3713
3747
  return;
3714
3748
  }
3715
3749
  final.issues.push(...prefixIssues(key, result.issues));
3716
3750
  }
3751
+ if (!isPresent && !isOptionalIn) {
3752
+ if (!result.issues.length) {
3753
+ final.issues.push({
3754
+ code: "invalid_type",
3755
+ expected: "nonoptional",
3756
+ input: void 0,
3757
+ path: [key]
3758
+ });
3759
+ }
3760
+ return;
3761
+ }
3717
3762
  if (result.value === void 0) {
3718
- if (key in input) {
3763
+ if (isPresent) {
3719
3764
  final.value[key] = void 0;
3720
3765
  }
3721
3766
  } else {
@@ -3743,8 +3788,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3743
3788
  const keySet = def.keySet;
3744
3789
  const _catchall = def.catchall._zod;
3745
3790
  const t = _catchall.def.type;
3791
+ const isOptionalIn = _catchall.optin === "optional";
3746
3792
  const isOptionalOut = _catchall.optout === "optional";
3747
3793
  for (const key in input) {
3794
+ if (key === "__proto__")
3795
+ continue;
3748
3796
  if (keySet.has(key))
3749
3797
  continue;
3750
3798
  if (t === "never") {
@@ -3753,9 +3801,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3753
3801
  }
3754
3802
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3755
3803
  if (r instanceof Promise) {
3756
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3804
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3757
3805
  } else {
3758
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3806
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3759
3807
  }
3760
3808
  }
3761
3809
  if (unrecognized.length) {
@@ -3821,12 +3869,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3821
3869
  const shape = value.shape;
3822
3870
  for (const key of value.keys) {
3823
3871
  const el = shape[key];
3872
+ const isOptionalIn = el._zod.optin === "optional";
3824
3873
  const isOptionalOut = el._zod.optout === "optional";
3825
3874
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3826
3875
  if (r instanceof Promise) {
3827
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3876
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3828
3877
  } else {
3829
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3878
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3830
3879
  }
3831
3880
  }
3832
3881
  if (!catchall) {
@@ -3872,10 +3921,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
3872
3921
  }
3873
3922
  return void 0;
3874
3923
  });
3875
- const single = def.options.length === 1;
3876
- const first = def.options[0]._zod.run;
3924
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3877
3925
  inst._zod.parse = (payload, ctx) => {
3878
- if (single) {
3926
+ if (first) {
3879
3927
  return first(payload, ctx);
3880
3928
  }
3881
3929
  let async = false;
@@ -3922,19 +3970,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3922
3970
  for (const key of values) {
3923
3971
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
3924
3972
  recordKeys.add(typeof key === "number" ? key.toString() : key);
3973
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3974
+ if (keyResult instanceof Promise) {
3975
+ throw new Error("Async schemas not supported in object keys currently");
3976
+ }
3977
+ if (keyResult.issues.length) {
3978
+ payload.issues.push({
3979
+ code: "invalid_key",
3980
+ origin: "record",
3981
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
3982
+ input: key,
3983
+ path: [key],
3984
+ inst
3985
+ });
3986
+ continue;
3987
+ }
3988
+ const outKey = keyResult.value;
3925
3989
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
3926
3990
  if (result instanceof Promise) {
3927
3991
  proms.push(result.then((result2) => {
3928
3992
  if (result2.issues.length) {
3929
3993
  payload.issues.push(...prefixIssues(key, result2.issues));
3930
3994
  }
3931
- payload.value[key] = result2.value;
3995
+ payload.value[outKey] = result2.value;
3932
3996
  }));
3933
3997
  } else {
3934
3998
  if (result.issues.length) {
3935
3999
  payload.issues.push(...prefixIssues(key, result.issues));
3936
4000
  }
3937
- payload.value[key] = result.value;
4001
+ payload.value[outKey] = result.value;
3938
4002
  }
3939
4003
  }
3940
4004
  }
@@ -3958,6 +4022,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3958
4022
  for (const key of Reflect.ownKeys(input)) {
3959
4023
  if (key === "__proto__")
3960
4024
  continue;
4025
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
4026
+ continue;
3961
4027
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3962
4028
  if (keyResult instanceof Promise) {
3963
4029
  throw new Error("Async schemas not supported in object keys currently");
@@ -4052,7 +4118,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
4052
4118
  };
4053
4119
  });
4054
4120
  function handleOptionalResult(result, input) {
4055
- if (result.issues.length && input === void 0) {
4121
+ if (input === void 0 && (result.issues.length || result.fallback)) {
4056
4122
  return { issues: [], value: void 0 };
4057
4123
  }
4058
4124
  return result;
@@ -4070,10 +4136,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
4070
4136
  });
4071
4137
  inst._zod.parse = (payload, ctx) => {
4072
4138
  if (def.innerType._zod.optin === "optional") {
4139
+ const input = payload.value;
4073
4140
  const result = def.innerType._zod.run(payload, ctx);
4074
4141
  if (result instanceof Promise)
4075
- return result.then((r) => handleOptionalResult(r, payload.value));
4076
- return handleOptionalResult(result, payload.value);
4142
+ return result.then((r) => handleOptionalResult(r, input));
4143
+ return handleOptionalResult(result, input);
4077
4144
  }
4078
4145
  if (payload.value === void 0) {
4079
4146
  return payload;
@@ -4124,159 +4191,9 @@ function handleDefaultResult(payload, def) {
4124
4191
  return payload;
4125
4192
  }
4126
4193
 
4127
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
4128
- init_cjs_shims();
4129
-
4130
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
4131
- init_cjs_shims();
4132
-
4133
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
4134
- init_cjs_shims();
4135
-
4136
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
4137
- init_cjs_shims();
4138
-
4139
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
4140
- init_cjs_shims();
4141
-
4142
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
4143
- init_cjs_shims();
4144
-
4145
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
4146
- init_cjs_shims();
4147
-
4148
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
4149
- init_cjs_shims();
4150
-
4151
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
4152
- init_cjs_shims();
4153
-
4154
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
4155
- init_cjs_shims();
4156
-
4157
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
4158
- init_cjs_shims();
4159
-
4160
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
4161
- init_cjs_shims();
4162
-
4163
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
4164
- init_cjs_shims();
4165
-
4166
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
4167
- init_cjs_shims();
4168
-
4169
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
4170
- init_cjs_shims();
4171
-
4172
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
4173
- init_cjs_shims();
4174
-
4175
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
4176
- init_cjs_shims();
4177
-
4178
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
4194
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
4179
4195
  init_cjs_shims();
4180
-
4181
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
4182
- init_cjs_shims();
4183
-
4184
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
4185
- init_cjs_shims();
4186
-
4187
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
4188
- init_cjs_shims();
4189
-
4190
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
4191
- init_cjs_shims();
4192
-
4193
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
4194
- init_cjs_shims();
4195
-
4196
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
4197
- init_cjs_shims();
4198
-
4199
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
4200
- init_cjs_shims();
4201
-
4202
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
4203
- init_cjs_shims();
4204
-
4205
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
4206
- init_cjs_shims();
4207
-
4208
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
4209
- init_cjs_shims();
4210
-
4211
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
4212
- init_cjs_shims();
4213
-
4214
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
4215
- init_cjs_shims();
4216
-
4217
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
4218
- init_cjs_shims();
4219
-
4220
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
4221
- init_cjs_shims();
4222
-
4223
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
4224
- init_cjs_shims();
4225
-
4226
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
4227
- init_cjs_shims();
4228
-
4229
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
4230
- init_cjs_shims();
4231
-
4232
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
4233
- init_cjs_shims();
4234
-
4235
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
4236
- init_cjs_shims();
4237
-
4238
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
4239
- init_cjs_shims();
4240
-
4241
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
4242
- init_cjs_shims();
4243
-
4244
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
4245
- init_cjs_shims();
4246
-
4247
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
4248
- init_cjs_shims();
4249
-
4250
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
4251
- init_cjs_shims();
4252
-
4253
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
4254
- init_cjs_shims();
4255
-
4256
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
4257
- init_cjs_shims();
4258
-
4259
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
4260
- init_cjs_shims();
4261
-
4262
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
4263
- init_cjs_shims();
4264
-
4265
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
4266
- init_cjs_shims();
4267
-
4268
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
4269
- init_cjs_shims();
4270
-
4271
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
4272
- init_cjs_shims();
4273
-
4274
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
4275
- init_cjs_shims();
4276
-
4277
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
4278
- init_cjs_shims();
4279
- var _a;
4196
+ var _a2;
4280
4197
  var $ZodRegistry = class {
4281
4198
  constructor() {
4282
4199
  this._map = /* @__PURE__ */ new WeakMap();
@@ -4320,15 +4237,15 @@ var $ZodRegistry = class {
4320
4237
  function registry() {
4321
4238
  return new $ZodRegistry();
4322
4239
  }
4323
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
4240
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
4324
4241
 
4325
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
4242
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
4326
4243
  init_cjs_shims();
4327
4244
  // @__NO_SIDE_EFFECTS__
4328
4245
  function _string(Class, params) {
4329
4246
  return new Class({
4330
4247
  type: "string",
4331
- ...normalizeParams()
4248
+ ...normalizeParams(params)
4332
4249
  });
4333
4250
  }
4334
4251
  // @__NO_SIDE_EFFECTS__
@@ -4338,14 +4255,14 @@ function _url(Class, params) {
4338
4255
  format: "url",
4339
4256
  check: "string_format",
4340
4257
  abort: false,
4341
- ...normalizeParams()
4258
+ ...normalizeParams(params)
4342
4259
  });
4343
4260
  }
4344
4261
  // @__NO_SIDE_EFFECTS__
4345
4262
  function _boolean(Class, params) {
4346
4263
  return new Class({
4347
4264
  type: "boolean",
4348
- ...normalizeParams()
4265
+ ...normalizeParams(params)
4349
4266
  });
4350
4267
  }
4351
4268
  // @__NO_SIDE_EFFECTS__
@@ -4358,7 +4275,7 @@ function _any(Class) {
4358
4275
  function _length(length, params) {
4359
4276
  return new $ZodCheckLengthEquals({
4360
4277
  check: "length_equals",
4361
- ...normalizeParams(),
4278
+ ...normalizeParams(params),
4362
4279
  length
4363
4280
  });
4364
4281
  }
@@ -4367,7 +4284,7 @@ function _regex(pattern, params) {
4367
4284
  return new $ZodCheckRegex({
4368
4285
  check: "string_format",
4369
4286
  format: "regex",
4370
- ...normalizeParams(),
4287
+ ...normalizeParams(params),
4371
4288
  pattern
4372
4289
  });
4373
4290
  }
@@ -4387,22 +4304,10 @@ function _toLowerCase() {
4387
4304
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
4388
4305
  }
4389
4306
 
4390
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
4391
- init_cjs_shims();
4392
-
4393
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
4394
- init_cjs_shims();
4395
-
4396
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
4307
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/parse.js
4397
4308
  init_cjs_shims();
4398
4309
 
4399
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
4400
- init_cjs_shims();
4401
-
4402
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/parse.js
4403
- init_cjs_shims();
4404
-
4405
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
4310
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
4406
4311
  init_cjs_shims();
4407
4312
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
4408
4313
  if (!inst._zod)
@@ -4419,7 +4324,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
4419
4324
  ...def,
4420
4325
  checks: [
4421
4326
  ...def.checks ?? [],
4422
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
4327
+ ...checks.map((ch) => typeof ch === "function" ? {
4328
+ _zod: { check: ch, def: { check: "custom" }, onattach: [] }
4329
+ } : ch)
4423
4330
  ]
4424
4331
  }, { parent: true });
4425
4332
  };
@@ -4438,7 +4345,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
4438
4345
  });
4439
4346
  // @__NO_SIDE_EFFECTS__
4440
4347
  function string2(params) {
4441
- return _string(ZodMiniString);
4348
+ return _string(ZodMiniString, params);
4442
4349
  }
4443
4350
  var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
4444
4351
  $ZodStringFormat.init(inst, def);
@@ -4450,7 +4357,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
4450
4357
  });
4451
4358
  // @__NO_SIDE_EFFECTS__
4452
4359
  function url(params) {
4453
- return _url(ZodMiniURL);
4360
+ return _url(ZodMiniURL, params);
4454
4361
  }
4455
4362
  var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
4456
4363
  $ZodBoolean.init(inst, def);
@@ -4458,7 +4365,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
4458
4365
  });
4459
4366
  // @__NO_SIDE_EFFECTS__
4460
4367
  function boolean2(params) {
4461
- return _boolean(ZodMiniBoolean);
4368
+ return _boolean(ZodMiniBoolean, params);
4462
4369
  }
4463
4370
  var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
4464
4371
  $ZodAny.init(inst, def);
@@ -4477,7 +4384,7 @@ function array(element, params) {
4477
4384
  return new ZodMiniArray({
4478
4385
  type: "array",
4479
4386
  element,
4480
- ...normalizeParams()
4387
+ ...normalizeParams(params)
4481
4388
  });
4482
4389
  }
4483
4390
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
@@ -4490,7 +4397,7 @@ function object(shape, params) {
4490
4397
  const def = {
4491
4398
  type: "object",
4492
4399
  shape: shape ?? {},
4493
- ...normalizeParams()
4400
+ ...normalizeParams(params)
4494
4401
  };
4495
4402
  return new ZodMiniObject(def);
4496
4403
  }
@@ -4503,7 +4410,7 @@ function union(options, params) {
4503
4410
  return new ZodMiniUnion({
4504
4411
  type: "union",
4505
4412
  options,
4506
- ...normalizeParams()
4413
+ ...normalizeParams(params)
4507
4414
  });
4508
4415
  }
4509
4416
  var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
@@ -4512,11 +4419,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
4512
4419
  });
4513
4420
  // @__NO_SIDE_EFFECTS__
4514
4421
  function record(keyType, valueType, params) {
4422
+ if (!valueType || !valueType._zod) {
4423
+ return new ZodMiniRecord({
4424
+ type: "record",
4425
+ keyType: /* @__PURE__ */ string2(),
4426
+ valueType: keyType,
4427
+ ...normalizeParams(valueType)
4428
+ });
4429
+ }
4515
4430
  return new ZodMiniRecord({
4516
4431
  type: "record",
4517
4432
  keyType,
4518
4433
  valueType,
4519
- ...normalizeParams()
4434
+ ...normalizeParams(params)
4520
4435
  });
4521
4436
  }
4522
4437
  var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
@@ -4530,7 +4445,7 @@ function _enum(values, params) {
4530
4445
  return new ZodMiniEnum({
4531
4446
  type: "enum",
4532
4447
  entries,
4533
- ...normalizeParams()
4448
+ ...normalizeParams(params)
4534
4449
  });
4535
4450
  }
4536
4451
  var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
@@ -4542,7 +4457,7 @@ function literal(value, params) {
4542
4457
  return new ZodMiniLiteral({
4543
4458
  type: "literal",
4544
4459
  values: Array.isArray(value) ? value : [value],
4545
- ...normalizeParams()
4460
+ ...normalizeParams(params)
4546
4461
  });
4547
4462
  }
4548
4463
  var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
@@ -4582,13 +4497,7 @@ function _default(innerType, defaultValue) {
4582
4497
  });
4583
4498
  }
4584
4499
 
4585
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/checks.js
4586
- init_cjs_shims();
4587
-
4588
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/iso.js
4589
- init_cjs_shims();
4590
-
4591
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/coerce.js
4500
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/checks.js
4592
4501
  init_cjs_shims();
4593
4502
 
4594
4503
  // ../config/src/schema.ts