@storm-software/eslint 0.168.16 → 0.168.17

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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/dist/preset.js +182 -1963
  3. package/package.json +5 -5
package/dist/preset.js CHANGED
@@ -2105,8 +2105,8 @@ var CONSOLE_ICONS = {
2105
2105
 
2106
2106
  // ../config-tools/src/logger/format-timestamp.ts
2107
2107
  init_esm_shims();
2108
- var formatTimestamp = (date3 = /* @__PURE__ */ new Date()) => {
2109
- return `${date3.toLocaleDateString()} ${date3.toLocaleTimeString()}`;
2108
+ var formatTimestamp = (date2 = /* @__PURE__ */ new Date()) => {
2109
+ return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
2110
2110
  };
2111
2111
 
2112
2112
  // ../config-tools/src/logger/get-log-level.ts
@@ -2523,19 +2523,25 @@ init_esm_shims();
2523
2523
  // ../config/src/schema.ts
2524
2524
  init_esm_shims();
2525
2525
 
2526
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/external.js
2526
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/mini/index.js
2527
2527
  init_esm_shims();
2528
2528
 
2529
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/index.js
2529
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/index.js
2530
2530
  init_esm_shims();
2531
2531
 
2532
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/core.js
2532
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/external.js
2533
+ init_esm_shims();
2534
+
2535
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/index.js
2536
+ init_esm_shims();
2537
+
2538
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/core.js
2533
2539
  init_esm_shims();
2534
2540
  var NEVER = Object.freeze({
2535
2541
  status: "aborted"
2536
2542
  });
2537
2543
  // @__NO_SIDE_EFFECTS__
2538
- function $constructor(name2, initializer3, params) {
2544
+ function $constructor(name2, initializer2, params) {
2539
2545
  function init(inst, def) {
2540
2546
  var _a;
2541
2547
  Object.defineProperty(inst, "_zod", {
@@ -2544,7 +2550,7 @@ function $constructor(name2, initializer3, params) {
2544
2550
  });
2545
2551
  (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
2546
2552
  inst._zod.traits.add(name2);
2547
- initializer3(inst, def);
2553
+ initializer2(inst, def);
2548
2554
  for (const k in _.prototype) {
2549
2555
  if (!(k in inst))
2550
2556
  Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
@@ -2583,12 +2589,6 @@ var $ZodAsyncError = class extends Error {
2583
2589
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
2584
2590
  }
2585
2591
  };
2586
- var $ZodEncodeError = class extends Error {
2587
- constructor(name2) {
2588
- super(`Encountered unidirectional transform during encode: ${name2}`);
2589
- this.name = "ZodEncodeError";
2590
- }
2591
- };
2592
2592
  var globalConfig = {};
2593
2593
  function config(newConfig) {
2594
2594
  if (newConfig)
@@ -2596,13 +2596,13 @@ function config(newConfig) {
2596
2596
  return globalConfig;
2597
2597
  }
2598
2598
 
2599
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/parse.js
2599
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js
2600
2600
  init_esm_shims();
2601
2601
 
2602
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/errors.js
2602
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js
2603
2603
  init_esm_shims();
2604
2604
 
2605
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/util.js
2605
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js
2606
2606
  var util_exports = {};
2607
2607
  __export(util_exports, {
2608
2608
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -3237,7 +3237,7 @@ var Class = class {
3237
3237
  }
3238
3238
  };
3239
3239
 
3240
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/errors.js
3240
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js
3241
3241
  var initializer = (inst, def) => {
3242
3242
  inst.name = "$ZodError";
3243
3243
  Object.defineProperty(inst, "_zod", {
@@ -3256,57 +3256,8 @@ var initializer = (inst, def) => {
3256
3256
  };
3257
3257
  var $ZodError = $constructor("$ZodError", initializer);
3258
3258
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
3259
- function flattenError(error2, mapper = (issue2) => issue2.message) {
3260
- const fieldErrors = {};
3261
- const formErrors = [];
3262
- for (const sub of error2.issues) {
3263
- if (sub.path.length > 0) {
3264
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
3265
- fieldErrors[sub.path[0]].push(mapper(sub));
3266
- } else {
3267
- formErrors.push(mapper(sub));
3268
- }
3269
- }
3270
- return { formErrors, fieldErrors };
3271
- }
3272
- function formatError(error2, _mapper) {
3273
- const mapper = _mapper || function(issue2) {
3274
- return issue2.message;
3275
- };
3276
- const fieldErrors = { _errors: [] };
3277
- const processError = (error3) => {
3278
- for (const issue2 of error3.issues) {
3279
- if (issue2.code === "invalid_union" && issue2.errors.length) {
3280
- issue2.errors.map((issues) => processError({ issues }));
3281
- } else if (issue2.code === "invalid_key") {
3282
- processError({ issues: issue2.issues });
3283
- } else if (issue2.code === "invalid_element") {
3284
- processError({ issues: issue2.issues });
3285
- } else if (issue2.path.length === 0) {
3286
- fieldErrors._errors.push(mapper(issue2));
3287
- } else {
3288
- let curr = fieldErrors;
3289
- let i = 0;
3290
- while (i < issue2.path.length) {
3291
- const el = issue2.path[i];
3292
- const terminal = i === issue2.path.length - 1;
3293
- if (!terminal) {
3294
- curr[el] = curr[el] || { _errors: [] };
3295
- } else {
3296
- curr[el] = curr[el] || { _errors: [] };
3297
- curr[el]._errors.push(mapper(issue2));
3298
- }
3299
- curr = curr[el];
3300
- i++;
3301
- }
3302
- }
3303
- }
3304
- };
3305
- processError(error2);
3306
- return fieldErrors;
3307
- }
3308
3259
 
3309
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/parse.js
3260
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js
3310
3261
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
3311
3262
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
3312
3263
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -3320,6 +3271,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
3320
3271
  }
3321
3272
  return result.value;
3322
3273
  };
3274
+ var parse = /* @__PURE__ */ _parse($ZodRealError);
3323
3275
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
3324
3276
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
3325
3277
  let result = schema._zod.run({ value, issues: [] }, ctx);
@@ -3332,6 +3284,7 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
3332
3284
  }
3333
3285
  return result.value;
3334
3286
  };
3287
+ var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
3335
3288
  var _safeParse = (_Err) => (schema, value, _ctx) => {
3336
3289
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
3337
3290
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -3355,162 +3308,31 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
3355
3308
  } : { success: true, data: result.value };
3356
3309
  };
3357
3310
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
3358
- var _encode = (_Err) => (schema, value, _ctx) => {
3359
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
3360
- return _parse(_Err)(schema, value, ctx);
3361
- };
3362
- var _decode = (_Err) => (schema, value, _ctx) => {
3363
- return _parse(_Err)(schema, value, _ctx);
3364
- };
3365
- var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
3366
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
3367
- return _parseAsync(_Err)(schema, value, ctx);
3368
- };
3369
- var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
3370
- return _parseAsync(_Err)(schema, value, _ctx);
3371
- };
3372
- var _safeEncode = (_Err) => (schema, value, _ctx) => {
3373
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
3374
- return _safeParse(_Err)(schema, value, ctx);
3375
- };
3376
- var _safeDecode = (_Err) => (schema, value, _ctx) => {
3377
- return _safeParse(_Err)(schema, value, _ctx);
3378
- };
3379
- var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
3380
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
3381
- return _safeParseAsync(_Err)(schema, value, ctx);
3382
- };
3383
- var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
3384
- return _safeParseAsync(_Err)(schema, value, _ctx);
3385
- };
3386
3311
 
3387
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/schemas.js
3312
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js
3388
3313
  init_esm_shims();
3389
3314
 
3390
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/checks.js
3315
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/checks.js
3391
3316
  init_esm_shims();
3392
3317
 
3393
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/regexes.js
3318
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js
3394
3319
  init_esm_shims();
3395
- var cuid = /^[cC][^\s-]{8,}$/;
3396
- var cuid2 = /^[0-9a-z]+$/;
3397
- var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
3398
- var xid = /^[0-9a-vA-V]{20}$/;
3399
- var ksuid = /^[A-Za-z0-9]{27}$/;
3400
- var nanoid = /^[a-zA-Z0-9_-]{21}$/;
3401
- var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
3402
- 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})$/;
3403
- var uuid = (version3) => {
3404
- if (!version3)
3405
- 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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
3406
- return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version3}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
3407
- };
3408
- var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
3409
- var _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
3410
- function emoji() {
3411
- return new RegExp(_emoji, "u");
3412
- }
3413
- 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])$/;
3414
- var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
3415
- 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])$/;
3416
- 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])$/;
3417
- var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
3418
- var base64url = /^[A-Za-z0-9_-]*$/;
3419
3320
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
3420
- var e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
3421
3321
  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])))`;
3422
3322
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
3423
- function timeSource(args) {
3424
- const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
3425
- 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+)?)?`;
3426
- return regex;
3427
- }
3428
- function time(args) {
3429
- return new RegExp(`^${timeSource(args)}$`);
3430
- }
3431
- function datetime(args) {
3432
- const time3 = timeSource({ precision: args.precision });
3433
- const opts = ["Z"];
3434
- if (args.local)
3435
- opts.push("");
3436
- if (args.offset)
3437
- opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
3438
- const timeRegex = `${time3}(?:${opts.join("|")})`;
3439
- return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
3440
- }
3441
3323
  var string = (params) => {
3442
3324
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
3443
3325
  return new RegExp(`^${regex}$`);
3444
3326
  };
3445
3327
  var boolean = /^(?:true|false)$/i;
3446
- var lowercase = /^[^A-Z]*$/;
3447
- var uppercase = /^[^a-z]*$/;
3448
3328
 
3449
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/checks.js
3329
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/checks.js
3450
3330
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
3451
3331
  var _a;
3452
3332
  inst._zod ?? (inst._zod = {});
3453
3333
  inst._zod.def = def;
3454
3334
  (_a = inst._zod).onattach ?? (_a.onattach = []);
3455
3335
  });
3456
- var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
3457
- var _a;
3458
- $ZodCheck.init(inst, def);
3459
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3460
- const val = payload.value;
3461
- return !nullish(val) && val.length !== void 0;
3462
- });
3463
- inst._zod.onattach.push((inst2) => {
3464
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
3465
- if (def.maximum < curr)
3466
- inst2._zod.bag.maximum = def.maximum;
3467
- });
3468
- inst._zod.check = (payload) => {
3469
- const input = payload.value;
3470
- const length = input.length;
3471
- if (length <= def.maximum)
3472
- return;
3473
- const origin = getLengthableOrigin(input);
3474
- payload.issues.push({
3475
- origin,
3476
- code: "too_big",
3477
- maximum: def.maximum,
3478
- inclusive: true,
3479
- input,
3480
- inst,
3481
- continue: !def.abort
3482
- });
3483
- };
3484
- });
3485
- var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
3486
- var _a;
3487
- $ZodCheck.init(inst, def);
3488
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3489
- const val = payload.value;
3490
- return !nullish(val) && val.length !== void 0;
3491
- });
3492
- inst._zod.onattach.push((inst2) => {
3493
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
3494
- if (def.minimum > curr)
3495
- inst2._zod.bag.minimum = def.minimum;
3496
- });
3497
- inst._zod.check = (payload) => {
3498
- const input = payload.value;
3499
- const length = input.length;
3500
- if (length >= def.minimum)
3501
- return;
3502
- const origin = getLengthableOrigin(input);
3503
- payload.issues.push({
3504
- origin,
3505
- code: "too_small",
3506
- minimum: def.minimum,
3507
- inclusive: true,
3508
- input,
3509
- inst,
3510
- continue: !def.abort
3511
- });
3512
- };
3513
- });
3514
3336
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
3515
3337
  var _a;
3516
3338
  $ZodCheck.init(inst, def);
@@ -3589,84 +3411,6 @@ var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def)
3589
3411
  });
3590
3412
  };
3591
3413
  });
3592
- var $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
3593
- def.pattern ?? (def.pattern = lowercase);
3594
- $ZodCheckStringFormat.init(inst, def);
3595
- });
3596
- var $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
3597
- def.pattern ?? (def.pattern = uppercase);
3598
- $ZodCheckStringFormat.init(inst, def);
3599
- });
3600
- var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
3601
- $ZodCheck.init(inst, def);
3602
- const escapedRegex = escapeRegex(def.includes);
3603
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
3604
- def.pattern = pattern;
3605
- inst._zod.onattach.push((inst2) => {
3606
- const bag = inst2._zod.bag;
3607
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
3608
- bag.patterns.add(pattern);
3609
- });
3610
- inst._zod.check = (payload) => {
3611
- if (payload.value.includes(def.includes, def.position))
3612
- return;
3613
- payload.issues.push({
3614
- origin: "string",
3615
- code: "invalid_format",
3616
- format: "includes",
3617
- includes: def.includes,
3618
- input: payload.value,
3619
- inst,
3620
- continue: !def.abort
3621
- });
3622
- };
3623
- });
3624
- var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
3625
- $ZodCheck.init(inst, def);
3626
- const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
3627
- def.pattern ?? (def.pattern = pattern);
3628
- inst._zod.onattach.push((inst2) => {
3629
- const bag = inst2._zod.bag;
3630
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
3631
- bag.patterns.add(pattern);
3632
- });
3633
- inst._zod.check = (payload) => {
3634
- if (payload.value.startsWith(def.prefix))
3635
- return;
3636
- payload.issues.push({
3637
- origin: "string",
3638
- code: "invalid_format",
3639
- format: "starts_with",
3640
- prefix: def.prefix,
3641
- input: payload.value,
3642
- inst,
3643
- continue: !def.abort
3644
- });
3645
- };
3646
- });
3647
- var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
3648
- $ZodCheck.init(inst, def);
3649
- const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
3650
- def.pattern ?? (def.pattern = pattern);
3651
- inst._zod.onattach.push((inst2) => {
3652
- const bag = inst2._zod.bag;
3653
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
3654
- bag.patterns.add(pattern);
3655
- });
3656
- inst._zod.check = (payload) => {
3657
- if (payload.value.endsWith(def.suffix))
3658
- return;
3659
- payload.issues.push({
3660
- origin: "string",
3661
- code: "invalid_format",
3662
- format: "ends_with",
3663
- suffix: def.suffix,
3664
- input: payload.value,
3665
- inst,
3666
- continue: !def.abort
3667
- });
3668
- };
3669
- });
3670
3414
  var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
3671
3415
  $ZodCheck.init(inst, def);
3672
3416
  inst._zod.check = (payload) => {
@@ -3674,52 +3418,18 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3674
3418
  };
3675
3419
  });
3676
3420
 
3677
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/doc.js
3421
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/doc.js
3678
3422
  init_esm_shims();
3679
- var Doc = class {
3680
- constructor(args = []) {
3681
- this.content = [];
3682
- this.indent = 0;
3683
- if (this)
3684
- this.args = args;
3685
- }
3686
- indented(fn) {
3687
- this.indent += 1;
3688
- fn(this);
3689
- this.indent -= 1;
3690
- }
3691
- write(arg) {
3692
- if (typeof arg === "function") {
3693
- arg(this, { execution: "sync" });
3694
- arg(this, { execution: "async" });
3695
- return;
3696
- }
3697
- const content = arg;
3698
- const lines = content.split("\n").filter((x) => x);
3699
- const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
3700
- const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
3701
- for (const line of dedented) {
3702
- this.content.push(line);
3703
- }
3704
- }
3705
- compile() {
3706
- const F = Function;
3707
- const args = this?.args;
3708
- const content = this?.content ?? [``];
3709
- const lines = [...content.map((x) => ` ${x}`)];
3710
- return new F(...args, lines.join("\n"));
3711
- }
3712
- };
3713
3423
 
3714
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/versions.js
3424
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js
3715
3425
  init_esm_shims();
3716
3426
  var version2 = {
3717
3427
  major: 4,
3718
3428
  minor: 1,
3719
- patch: 9
3429
+ patch: 11
3720
3430
  };
3721
3431
 
3722
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/schemas.js
3432
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js
3723
3433
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3724
3434
  var _a;
3725
3435
  inst ?? (inst = {});
@@ -3853,34 +3563,6 @@ var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, d
3853
3563
  $ZodCheckStringFormat.init(inst, def);
3854
3564
  $ZodString.init(inst, def);
3855
3565
  });
3856
- var $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
3857
- def.pattern ?? (def.pattern = guid);
3858
- $ZodStringFormat.init(inst, def);
3859
- });
3860
- var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
3861
- if (def.version) {
3862
- const versionMap = {
3863
- v1: 1,
3864
- v2: 2,
3865
- v3: 3,
3866
- v4: 4,
3867
- v5: 5,
3868
- v6: 6,
3869
- v7: 7,
3870
- v8: 8
3871
- };
3872
- const v = versionMap[def.version];
3873
- if (v === void 0)
3874
- throw new Error(`Invalid UUID version: "${def.version}"`);
3875
- def.pattern ?? (def.pattern = uuid(v));
3876
- } else
3877
- def.pattern ?? (def.pattern = uuid());
3878
- $ZodStringFormat.init(inst, def);
3879
- });
3880
- var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
3881
- def.pattern ?? (def.pattern = email);
3882
- $ZodStringFormat.init(inst, def);
3883
- });
3884
3566
  var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3885
3567
  $ZodStringFormat.init(inst, def);
3886
3568
  inst._zod.check = (payload) => {
@@ -3932,204 +3614,6 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3932
3614
  }
3933
3615
  };
3934
3616
  });
3935
- var $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
3936
- def.pattern ?? (def.pattern = emoji());
3937
- $ZodStringFormat.init(inst, def);
3938
- });
3939
- var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
3940
- def.pattern ?? (def.pattern = nanoid);
3941
- $ZodStringFormat.init(inst, def);
3942
- });
3943
- var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
3944
- def.pattern ?? (def.pattern = cuid);
3945
- $ZodStringFormat.init(inst, def);
3946
- });
3947
- var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
3948
- def.pattern ?? (def.pattern = cuid2);
3949
- $ZodStringFormat.init(inst, def);
3950
- });
3951
- var $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
3952
- def.pattern ?? (def.pattern = ulid);
3953
- $ZodStringFormat.init(inst, def);
3954
- });
3955
- var $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
3956
- def.pattern ?? (def.pattern = xid);
3957
- $ZodStringFormat.init(inst, def);
3958
- });
3959
- var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
3960
- def.pattern ?? (def.pattern = ksuid);
3961
- $ZodStringFormat.init(inst, def);
3962
- });
3963
- var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
3964
- def.pattern ?? (def.pattern = datetime(def));
3965
- $ZodStringFormat.init(inst, def);
3966
- });
3967
- var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
3968
- def.pattern ?? (def.pattern = date);
3969
- $ZodStringFormat.init(inst, def);
3970
- });
3971
- var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
3972
- def.pattern ?? (def.pattern = time(def));
3973
- $ZodStringFormat.init(inst, def);
3974
- });
3975
- var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
3976
- def.pattern ?? (def.pattern = duration);
3977
- $ZodStringFormat.init(inst, def);
3978
- });
3979
- var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
3980
- def.pattern ?? (def.pattern = ipv4);
3981
- $ZodStringFormat.init(inst, def);
3982
- inst._zod.onattach.push((inst2) => {
3983
- const bag = inst2._zod.bag;
3984
- bag.format = `ipv4`;
3985
- });
3986
- });
3987
- var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
3988
- def.pattern ?? (def.pattern = ipv6);
3989
- $ZodStringFormat.init(inst, def);
3990
- inst._zod.onattach.push((inst2) => {
3991
- const bag = inst2._zod.bag;
3992
- bag.format = `ipv6`;
3993
- });
3994
- inst._zod.check = (payload) => {
3995
- try {
3996
- new URL(`http://[${payload.value}]`);
3997
- } catch {
3998
- payload.issues.push({
3999
- code: "invalid_format",
4000
- format: "ipv6",
4001
- input: payload.value,
4002
- inst,
4003
- continue: !def.abort
4004
- });
4005
- }
4006
- };
4007
- });
4008
- var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
4009
- def.pattern ?? (def.pattern = cidrv4);
4010
- $ZodStringFormat.init(inst, def);
4011
- });
4012
- var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
4013
- def.pattern ?? (def.pattern = cidrv6);
4014
- $ZodStringFormat.init(inst, def);
4015
- inst._zod.check = (payload) => {
4016
- const parts = payload.value.split("/");
4017
- try {
4018
- if (parts.length !== 2)
4019
- throw new Error();
4020
- const [address, prefix] = parts;
4021
- if (!prefix)
4022
- throw new Error();
4023
- const prefixNum = Number(prefix);
4024
- if (`${prefixNum}` !== prefix)
4025
- throw new Error();
4026
- if (prefixNum < 0 || prefixNum > 128)
4027
- throw new Error();
4028
- new URL(`http://[${address}]`);
4029
- } catch {
4030
- payload.issues.push({
4031
- code: "invalid_format",
4032
- format: "cidrv6",
4033
- input: payload.value,
4034
- inst,
4035
- continue: !def.abort
4036
- });
4037
- }
4038
- };
4039
- });
4040
- function isValidBase64(data) {
4041
- if (data === "")
4042
- return true;
4043
- if (data.length % 4 !== 0)
4044
- return false;
4045
- try {
4046
- atob(data);
4047
- return true;
4048
- } catch {
4049
- return false;
4050
- }
4051
- }
4052
- var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
4053
- def.pattern ?? (def.pattern = base64);
4054
- $ZodStringFormat.init(inst, def);
4055
- inst._zod.onattach.push((inst2) => {
4056
- inst2._zod.bag.contentEncoding = "base64";
4057
- });
4058
- inst._zod.check = (payload) => {
4059
- if (isValidBase64(payload.value))
4060
- return;
4061
- payload.issues.push({
4062
- code: "invalid_format",
4063
- format: "base64",
4064
- input: payload.value,
4065
- inst,
4066
- continue: !def.abort
4067
- });
4068
- };
4069
- });
4070
- function isValidBase64URL(data) {
4071
- if (!base64url.test(data))
4072
- return false;
4073
- const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
4074
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
4075
- return isValidBase64(padded);
4076
- }
4077
- var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
4078
- def.pattern ?? (def.pattern = base64url);
4079
- $ZodStringFormat.init(inst, def);
4080
- inst._zod.onattach.push((inst2) => {
4081
- inst2._zod.bag.contentEncoding = "base64url";
4082
- });
4083
- inst._zod.check = (payload) => {
4084
- if (isValidBase64URL(payload.value))
4085
- return;
4086
- payload.issues.push({
4087
- code: "invalid_format",
4088
- format: "base64url",
4089
- input: payload.value,
4090
- inst,
4091
- continue: !def.abort
4092
- });
4093
- };
4094
- });
4095
- var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
4096
- def.pattern ?? (def.pattern = e164);
4097
- $ZodStringFormat.init(inst, def);
4098
- });
4099
- function isValidJWT(token, algorithm = null) {
4100
- try {
4101
- const tokensParts = token.split(".");
4102
- if (tokensParts.length !== 3)
4103
- return false;
4104
- const [header] = tokensParts;
4105
- if (!header)
4106
- return false;
4107
- const parsedHeader = JSON.parse(atob(header));
4108
- if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
4109
- return false;
4110
- if (!parsedHeader.alg)
4111
- return false;
4112
- if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
4113
- return false;
4114
- return true;
4115
- } catch {
4116
- return false;
4117
- }
4118
- }
4119
- var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
4120
- $ZodStringFormat.init(inst, def);
4121
- inst._zod.check = (payload) => {
4122
- if (isValidJWT(payload.value, def.alg))
4123
- return;
4124
- payload.issues.push({
4125
- code: "invalid_format",
4126
- format: "jwt",
4127
- input: payload.value,
4128
- inst,
4129
- continue: !def.abort
4130
- });
4131
- };
4132
- });
4133
3617
  var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
4134
3618
  $ZodType.init(inst, def);
4135
3619
  inst._zod.pattern = boolean;
@@ -4155,22 +3639,6 @@ var $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
4155
3639
  $ZodType.init(inst, def);
4156
3640
  inst._zod.parse = (payload) => payload;
4157
3641
  });
4158
- var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
4159
- $ZodType.init(inst, def);
4160
- inst._zod.parse = (payload) => payload;
4161
- });
4162
- var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
4163
- $ZodType.init(inst, def);
4164
- inst._zod.parse = (payload, _ctx) => {
4165
- payload.issues.push({
4166
- expected: "never",
4167
- code: "invalid_type",
4168
- input: payload.value,
4169
- inst
4170
- });
4171
- return payload;
4172
- };
4173
- });
4174
3642
  function handleArrayResult(result, final, index) {
4175
3643
  if (result.issues.length) {
4176
3644
  final.issues.push(...prefixIssues(index, result.issues));
@@ -4273,6 +3741,19 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
4273
3741
  }
4274
3742
  var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
4275
3743
  $ZodType.init(inst, def);
3744
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
3745
+ if (!desc?.get) {
3746
+ const sh = def.shape;
3747
+ Object.defineProperty(def, "shape", {
3748
+ get: () => {
3749
+ const newSh = { ...sh };
3750
+ Object.defineProperty(def, "shape", {
3751
+ value: newSh
3752
+ });
3753
+ return newSh;
3754
+ }
3755
+ });
3756
+ }
4276
3757
  const _normalized = cached(() => normalizeDef(def));
4277
3758
  defineLazy(inst._zod, "propValues", () => {
4278
3759
  const shape = def.shape;
@@ -4320,82 +3801,6 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
4320
3801
  return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
4321
3802
  };
4322
3803
  });
4323
- var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
4324
- $ZodObject.init(inst, def);
4325
- const superParse = inst._zod.parse;
4326
- const _normalized = cached(() => normalizeDef(def));
4327
- const generateFastpass = (shape) => {
4328
- const doc = new Doc(["shape", "payload", "ctx"]);
4329
- const normalized = _normalized.value;
4330
- const parseStr = (key) => {
4331
- const k = esc(key);
4332
- return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
4333
- };
4334
- doc.write(`const input = payload.value;`);
4335
- const ids = /* @__PURE__ */ Object.create(null);
4336
- let counter = 0;
4337
- for (const key of normalized.keys) {
4338
- ids[key] = `key_${counter++}`;
4339
- }
4340
- doc.write(`const newResult = {};`);
4341
- for (const key of normalized.keys) {
4342
- const id = ids[key];
4343
- const k = esc(key);
4344
- doc.write(`const ${id} = ${parseStr(key)};`);
4345
- doc.write(`
4346
- if (${id}.issues.length) {
4347
- payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
4348
- ...iss,
4349
- path: iss.path ? [${k}, ...iss.path] : [${k}]
4350
- })));
4351
- }
4352
-
4353
-
4354
- if (${id}.value === undefined) {
4355
- if (${k} in input) {
4356
- newResult[${k}] = undefined;
4357
- }
4358
- } else {
4359
- newResult[${k}] = ${id}.value;
4360
- }
4361
-
4362
- `);
4363
- }
4364
- doc.write(`payload.value = newResult;`);
4365
- doc.write(`return payload;`);
4366
- const fn = doc.compile();
4367
- return (payload, ctx) => fn(shape, payload, ctx);
4368
- };
4369
- let fastpass;
4370
- const isObject2 = isObject;
4371
- const jit = !globalConfig.jitless;
4372
- const allowsEval2 = allowsEval;
4373
- const fastEnabled = jit && allowsEval2.value;
4374
- const catchall = def.catchall;
4375
- let value;
4376
- inst._zod.parse = (payload, ctx) => {
4377
- value ?? (value = _normalized.value);
4378
- const input = payload.value;
4379
- if (!isObject2(input)) {
4380
- payload.issues.push({
4381
- expected: "object",
4382
- code: "invalid_type",
4383
- input,
4384
- inst
4385
- });
4386
- return payload;
4387
- }
4388
- if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
4389
- if (!fastpass)
4390
- fastpass = generateFastpass(def.shape);
4391
- payload = fastpass(payload, ctx);
4392
- if (!catchall)
4393
- return payload;
4394
- return handleCatchall([], input, payload, ctx, value, inst);
4395
- }
4396
- return superParse(payload, ctx);
4397
- };
4398
- });
4399
3804
  function handleUnionResults(results, final, inst, ctx) {
4400
3805
  for (const result of results) {
4401
3806
  if (result.issues.length === 0) {
@@ -4462,81 +3867,6 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
4462
3867
  });
4463
3868
  };
4464
3869
  });
4465
- var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
4466
- $ZodType.init(inst, def);
4467
- inst._zod.parse = (payload, ctx) => {
4468
- const input = payload.value;
4469
- const left = def.left._zod.run({ value: input, issues: [] }, ctx);
4470
- const right = def.right._zod.run({ value: input, issues: [] }, ctx);
4471
- const async = left instanceof Promise || right instanceof Promise;
4472
- if (async) {
4473
- return Promise.all([left, right]).then(([left2, right2]) => {
4474
- return handleIntersectionResults(payload, left2, right2);
4475
- });
4476
- }
4477
- return handleIntersectionResults(payload, left, right);
4478
- };
4479
- });
4480
- function mergeValues(a, b) {
4481
- if (a === b) {
4482
- return { valid: true, data: a };
4483
- }
4484
- if (a instanceof Date && b instanceof Date && +a === +b) {
4485
- return { valid: true, data: a };
4486
- }
4487
- if (isPlainObject(a) && isPlainObject(b)) {
4488
- const bKeys = Object.keys(b);
4489
- const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
4490
- const newObj = { ...a, ...b };
4491
- for (const key of sharedKeys) {
4492
- const sharedValue = mergeValues(a[key], b[key]);
4493
- if (!sharedValue.valid) {
4494
- return {
4495
- valid: false,
4496
- mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
4497
- };
4498
- }
4499
- newObj[key] = sharedValue.data;
4500
- }
4501
- return { valid: true, data: newObj };
4502
- }
4503
- if (Array.isArray(a) && Array.isArray(b)) {
4504
- if (a.length !== b.length) {
4505
- return { valid: false, mergeErrorPath: [] };
4506
- }
4507
- const newArray = [];
4508
- for (let index = 0; index < a.length; index++) {
4509
- const itemA = a[index];
4510
- const itemB = b[index];
4511
- const sharedValue = mergeValues(itemA, itemB);
4512
- if (!sharedValue.valid) {
4513
- return {
4514
- valid: false,
4515
- mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
4516
- };
4517
- }
4518
- newArray.push(sharedValue.data);
4519
- }
4520
- return { valid: true, data: newArray };
4521
- }
4522
- return { valid: false, mergeErrorPath: [] };
4523
- }
4524
- function handleIntersectionResults(result, left, right) {
4525
- if (left.issues.length) {
4526
- result.issues.push(...left.issues);
4527
- }
4528
- if (right.issues.length) {
4529
- result.issues.push(...right.issues);
4530
- }
4531
- if (aborted(result))
4532
- return result;
4533
- const merged = mergeValues(left.value, right.value);
4534
- if (!merged.valid) {
4535
- throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
4536
- }
4537
- result.value = merged.data;
4538
- return result;
4539
- }
4540
3870
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
4541
3871
  $ZodType.init(inst, def);
4542
3872
  inst._zod.parse = (payload, ctx) => {
@@ -4671,27 +4001,6 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
4671
4001
  return payload;
4672
4002
  };
4673
4003
  });
4674
- var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
4675
- $ZodType.init(inst, def);
4676
- inst._zod.parse = (payload, ctx) => {
4677
- if (ctx.direction === "backward") {
4678
- throw new $ZodEncodeError(inst.constructor.name);
4679
- }
4680
- const _out = def.transform(payload.value, payload);
4681
- if (ctx.async) {
4682
- const output = _out instanceof Promise ? _out : Promise.resolve(_out);
4683
- return output.then((output2) => {
4684
- payload.value = output2;
4685
- return payload;
4686
- });
4687
- }
4688
- if (_out instanceof Promise) {
4689
- throw new $ZodAsyncError();
4690
- }
4691
- payload.value = _out;
4692
- return payload;
4693
- };
4694
- });
4695
4004
  function handleOptionalResult(result, input) {
4696
4005
  if (result.issues.length && input === void 0) {
4697
4006
  return { issues: [], value: void 0 };
@@ -4764,426 +4073,149 @@ function handleDefaultResult(payload, def) {
4764
4073
  }
4765
4074
  return payload;
4766
4075
  }
4767
- var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
4768
- $ZodType.init(inst, def);
4769
- inst._zod.optin = "optional";
4770
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
4771
- inst._zod.parse = (payload, ctx) => {
4772
- if (ctx.direction === "backward") {
4773
- return def.innerType._zod.run(payload, ctx);
4774
- }
4775
- if (payload.value === void 0) {
4776
- payload.value = def.defaultValue;
4777
- }
4778
- return def.innerType._zod.run(payload, ctx);
4779
- };
4780
- });
4781
- var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
4782
- $ZodType.init(inst, def);
4783
- defineLazy(inst._zod, "values", () => {
4784
- const v = def.innerType._zod.values;
4785
- return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
4786
- });
4787
- inst._zod.parse = (payload, ctx) => {
4788
- const result = def.innerType._zod.run(payload, ctx);
4789
- if (result instanceof Promise) {
4790
- return result.then((result2) => handleNonOptionalResult(result2, inst));
4791
- }
4792
- return handleNonOptionalResult(result, inst);
4793
- };
4794
- });
4795
- function handleNonOptionalResult(payload, inst) {
4796
- if (!payload.issues.length && payload.value === void 0) {
4797
- payload.issues.push({
4798
- code: "invalid_type",
4799
- expected: "nonoptional",
4800
- input: payload.value,
4801
- inst
4802
- });
4803
- }
4804
- return payload;
4805
- }
4806
- var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4807
- $ZodType.init(inst, def);
4808
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
4809
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
4810
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
4811
- inst._zod.parse = (payload, ctx) => {
4812
- if (ctx.direction === "backward") {
4813
- return def.innerType._zod.run(payload, ctx);
4814
- }
4815
- const result = def.innerType._zod.run(payload, ctx);
4816
- if (result instanceof Promise) {
4817
- return result.then((result2) => {
4818
- payload.value = result2.value;
4819
- if (result2.issues.length) {
4820
- payload.value = def.catchValue({
4821
- ...payload,
4822
- error: {
4823
- issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
4824
- },
4825
- input: payload.value
4826
- });
4827
- payload.issues = [];
4828
- }
4829
- return payload;
4830
- });
4831
- }
4832
- payload.value = result.value;
4833
- if (result.issues.length) {
4834
- payload.value = def.catchValue({
4835
- ...payload,
4836
- error: {
4837
- issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
4838
- },
4839
- input: payload.value
4840
- });
4841
- payload.issues = [];
4842
- }
4843
- return payload;
4844
- };
4845
- });
4846
- var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
4847
- $ZodType.init(inst, def);
4848
- defineLazy(inst._zod, "values", () => def.in._zod.values);
4849
- defineLazy(inst._zod, "optin", () => def.in._zod.optin);
4850
- defineLazy(inst._zod, "optout", () => def.out._zod.optout);
4851
- defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
4852
- inst._zod.parse = (payload, ctx) => {
4853
- if (ctx.direction === "backward") {
4854
- const right = def.out._zod.run(payload, ctx);
4855
- if (right instanceof Promise) {
4856
- return right.then((right2) => handlePipeResult(right2, def.in, ctx));
4857
- }
4858
- return handlePipeResult(right, def.in, ctx);
4859
- }
4860
- const left = def.in._zod.run(payload, ctx);
4861
- if (left instanceof Promise) {
4862
- return left.then((left2) => handlePipeResult(left2, def.out, ctx));
4863
- }
4864
- return handlePipeResult(left, def.out, ctx);
4865
- };
4866
- });
4867
- function handlePipeResult(left, next2, ctx) {
4868
- if (left.issues.length) {
4869
- left.aborted = true;
4870
- return left;
4871
- }
4872
- return next2._zod.run({ value: left.value, issues: left.issues }, ctx);
4873
- }
4874
- var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
4875
- $ZodType.init(inst, def);
4876
- defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
4877
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
4878
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
4879
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
4880
- inst._zod.parse = (payload, ctx) => {
4881
- if (ctx.direction === "backward") {
4882
- return def.innerType._zod.run(payload, ctx);
4883
- }
4884
- const result = def.innerType._zod.run(payload, ctx);
4885
- if (result instanceof Promise) {
4886
- return result.then(handleReadonlyResult);
4887
- }
4888
- return handleReadonlyResult(result);
4889
- };
4890
- });
4891
- function handleReadonlyResult(payload) {
4892
- payload.value = Object.freeze(payload.value);
4893
- return payload;
4894
- }
4895
- var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
4896
- $ZodCheck.init(inst, def);
4897
- $ZodType.init(inst, def);
4898
- inst._zod.parse = (payload, _) => {
4899
- return payload;
4900
- };
4901
- inst._zod.check = (payload) => {
4902
- const input = payload.value;
4903
- const r = def.fn(input);
4904
- if (r instanceof Promise) {
4905
- return r.then((r2) => handleRefineResult(r2, payload, input, inst));
4906
- }
4907
- handleRefineResult(r, payload, input, inst);
4908
- return;
4909
- };
4910
- });
4911
- function handleRefineResult(result, payload, input, inst) {
4912
- if (!result) {
4913
- const _iss = {
4914
- code: "custom",
4915
- input,
4916
- inst,
4917
- // incorporates params.error into issue reporting
4918
- path: [...inst._zod.def.path ?? []],
4919
- // incorporates params.error into issue reporting
4920
- continue: !inst._zod.def.abort
4921
- // params: inst._zod.def.params,
4922
- };
4923
- if (inst._zod.def.params)
4924
- _iss.params = inst._zod.def.params;
4925
- payload.issues.push(issue(_iss));
4926
- }
4927
- }
4928
4076
 
4929
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/index.js
4077
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/index.js
4930
4078
  init_esm_shims();
4931
4079
 
4932
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ar.js
4080
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ar.js
4933
4081
  init_esm_shims();
4934
4082
 
4935
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/az.js
4083
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/az.js
4936
4084
  init_esm_shims();
4937
4085
 
4938
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/be.js
4086
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/be.js
4939
4087
  init_esm_shims();
4940
4088
 
4941
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ca.js
4089
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ca.js
4942
4090
  init_esm_shims();
4943
4091
 
4944
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/cs.js
4092
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/cs.js
4945
4093
  init_esm_shims();
4946
4094
 
4947
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/da.js
4095
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/da.js
4948
4096
  init_esm_shims();
4949
4097
 
4950
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/de.js
4098
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/de.js
4951
4099
  init_esm_shims();
4952
4100
 
4953
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/en.js
4101
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/en.js
4954
4102
  init_esm_shims();
4955
- var parsedType = (data) => {
4956
- const t = typeof data;
4957
- switch (t) {
4958
- case "number": {
4959
- return Number.isNaN(data) ? "NaN" : "number";
4960
- }
4961
- case "object": {
4962
- if (Array.isArray(data)) {
4963
- return "array";
4964
- }
4965
- if (data === null) {
4966
- return "null";
4967
- }
4968
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4969
- return data.constructor.name;
4970
- }
4971
- }
4972
- }
4973
- return t;
4974
- };
4975
- var error = () => {
4976
- const Sizable = {
4977
- string: { unit: "characters", verb: "to have" },
4978
- file: { unit: "bytes", verb: "to have" },
4979
- array: { unit: "items", verb: "to have" },
4980
- set: { unit: "items", verb: "to have" }
4981
- };
4982
- function getSizing(origin) {
4983
- return Sizable[origin] ?? null;
4984
- }
4985
- const Nouns = {
4986
- regex: "input",
4987
- email: "email address",
4988
- url: "URL",
4989
- emoji: "emoji",
4990
- uuid: "UUID",
4991
- uuidv4: "UUIDv4",
4992
- uuidv6: "UUIDv6",
4993
- nanoid: "nanoid",
4994
- guid: "GUID",
4995
- cuid: "cuid",
4996
- cuid2: "cuid2",
4997
- ulid: "ULID",
4998
- xid: "XID",
4999
- ksuid: "KSUID",
5000
- datetime: "ISO datetime",
5001
- date: "ISO date",
5002
- time: "ISO time",
5003
- duration: "ISO duration",
5004
- ipv4: "IPv4 address",
5005
- ipv6: "IPv6 address",
5006
- cidrv4: "IPv4 range",
5007
- cidrv6: "IPv6 range",
5008
- base64: "base64-encoded string",
5009
- base64url: "base64url-encoded string",
5010
- json_string: "JSON string",
5011
- e164: "E.164 number",
5012
- jwt: "JWT",
5013
- template_literal: "input"
5014
- };
5015
- return (issue2) => {
5016
- switch (issue2.code) {
5017
- case "invalid_type":
5018
- return `Invalid input: expected ${issue2.expected}, received ${parsedType(issue2.input)}`;
5019
- case "invalid_value":
5020
- if (issue2.values.length === 1)
5021
- return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
5022
- return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;
5023
- case "too_big": {
5024
- const adj = issue2.inclusive ? "<=" : "<";
5025
- const sizing = getSizing(issue2.origin);
5026
- if (sizing)
5027
- return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
5028
- return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`;
5029
- }
5030
- case "too_small": {
5031
- const adj = issue2.inclusive ? ">=" : ">";
5032
- const sizing = getSizing(issue2.origin);
5033
- if (sizing) {
5034
- return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5035
- }
5036
- return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;
5037
- }
5038
- case "invalid_format": {
5039
- const _issue = issue2;
5040
- if (_issue.format === "starts_with") {
5041
- return `Invalid string: must start with "${_issue.prefix}"`;
5042
- }
5043
- if (_issue.format === "ends_with")
5044
- return `Invalid string: must end with "${_issue.suffix}"`;
5045
- if (_issue.format === "includes")
5046
- return `Invalid string: must include "${_issue.includes}"`;
5047
- if (_issue.format === "regex")
5048
- return `Invalid string: must match pattern ${_issue.pattern}`;
5049
- return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
5050
- }
5051
- case "not_multiple_of":
5052
- return `Invalid number: must be a multiple of ${issue2.divisor}`;
5053
- case "unrecognized_keys":
5054
- return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
5055
- case "invalid_key":
5056
- return `Invalid key in ${issue2.origin}`;
5057
- case "invalid_union":
5058
- return "Invalid input";
5059
- case "invalid_element":
5060
- return `Invalid value in ${issue2.origin}`;
5061
- default:
5062
- return `Invalid input`;
5063
- }
5064
- };
5065
- };
5066
- function en_default() {
5067
- return {
5068
- localeError: error()
5069
- };
5070
- }
5071
4103
 
5072
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/eo.js
4104
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/eo.js
5073
4105
  init_esm_shims();
5074
4106
 
5075
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/es.js
4107
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/es.js
5076
4108
  init_esm_shims();
5077
4109
 
5078
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fa.js
4110
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/fa.js
5079
4111
  init_esm_shims();
5080
4112
 
5081
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fi.js
4113
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/fi.js
5082
4114
  init_esm_shims();
5083
4115
 
5084
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fr.js
4116
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/fr.js
5085
4117
  init_esm_shims();
5086
4118
 
5087
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fr-CA.js
4119
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/fr-CA.js
5088
4120
  init_esm_shims();
5089
4121
 
5090
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/he.js
4122
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/he.js
5091
4123
  init_esm_shims();
5092
4124
 
5093
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/hu.js
4125
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/hu.js
5094
4126
  init_esm_shims();
5095
4127
 
5096
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/id.js
4128
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/id.js
5097
4129
  init_esm_shims();
5098
4130
 
5099
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/is.js
4131
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/is.js
5100
4132
  init_esm_shims();
5101
4133
 
5102
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/it.js
4134
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/it.js
5103
4135
  init_esm_shims();
5104
4136
 
5105
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ja.js
4137
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ja.js
5106
4138
  init_esm_shims();
5107
4139
 
5108
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ka.js
4140
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ka.js
5109
4141
  init_esm_shims();
5110
4142
 
5111
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/kh.js
4143
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/kh.js
5112
4144
  init_esm_shims();
5113
4145
 
5114
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/km.js
4146
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/km.js
5115
4147
  init_esm_shims();
5116
4148
 
5117
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ko.js
4149
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ko.js
5118
4150
  init_esm_shims();
5119
4151
 
5120
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/lt.js
4152
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/lt.js
5121
4153
  init_esm_shims();
5122
4154
 
5123
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/mk.js
4155
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/mk.js
5124
4156
  init_esm_shims();
5125
4157
 
5126
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ms.js
4158
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ms.js
5127
4159
  init_esm_shims();
5128
4160
 
5129
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/nl.js
4161
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/nl.js
5130
4162
  init_esm_shims();
5131
4163
 
5132
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/no.js
4164
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/no.js
5133
4165
  init_esm_shims();
5134
4166
 
5135
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ota.js
4167
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ota.js
5136
4168
  init_esm_shims();
5137
4169
 
5138
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ps.js
4170
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ps.js
5139
4171
  init_esm_shims();
5140
4172
 
5141
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/pl.js
4173
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/pl.js
5142
4174
  init_esm_shims();
5143
4175
 
5144
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/pt.js
4176
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/pt.js
5145
4177
  init_esm_shims();
5146
4178
 
5147
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ru.js
4179
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ru.js
5148
4180
  init_esm_shims();
5149
4181
 
5150
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/sl.js
4182
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/sl.js
5151
4183
  init_esm_shims();
5152
4184
 
5153
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/sv.js
4185
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/sv.js
5154
4186
  init_esm_shims();
5155
4187
 
5156
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ta.js
4188
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ta.js
5157
4189
  init_esm_shims();
5158
4190
 
5159
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/th.js
4191
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/th.js
5160
4192
  init_esm_shims();
5161
4193
 
5162
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/tr.js
4194
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/tr.js
5163
4195
  init_esm_shims();
5164
4196
 
5165
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ua.js
4197
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ua.js
5166
4198
  init_esm_shims();
5167
4199
 
5168
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/uk.js
4200
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/uk.js
5169
4201
  init_esm_shims();
5170
4202
 
5171
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ur.js
4203
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/ur.js
5172
4204
  init_esm_shims();
5173
4205
 
5174
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/vi.js
4206
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/vi.js
5175
4207
  init_esm_shims();
5176
4208
 
5177
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/zh-CN.js
4209
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/zh-CN.js
5178
4210
  init_esm_shims();
5179
4211
 
5180
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/zh-TW.js
4212
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/zh-TW.js
5181
4213
  init_esm_shims();
5182
4214
 
5183
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/yo.js
4215
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/locales/yo.js
5184
4216
  init_esm_shims();
5185
4217
 
5186
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/registries.js
4218
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/registries.js
5187
4219
  init_esm_shims();
5188
4220
  var $output = Symbol("ZodOutput");
5189
4221
  var $input = Symbol("ZodInput");
@@ -5233,9 +4265,8 @@ var $ZodRegistry = class {
5233
4265
  function registry() {
5234
4266
  return new $ZodRegistry();
5235
4267
  }
5236
- var globalRegistry = /* @__PURE__ */ registry();
5237
4268
 
5238
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/api.js
4269
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js
5239
4270
  init_esm_shims();
5240
4271
  function _string(Class2, params) {
5241
4272
  return new Class2({
@@ -5243,506 +4274,75 @@ function _string(Class2, params) {
5243
4274
  ...normalizeParams(params)
5244
4275
  });
5245
4276
  }
5246
- function _email(Class2, params) {
4277
+ function _url(Class2, params) {
5247
4278
  return new Class2({
5248
4279
  type: "string",
5249
- format: "email",
4280
+ format: "url",
5250
4281
  check: "string_format",
5251
4282
  abort: false,
5252
4283
  ...normalizeParams(params)
5253
4284
  });
5254
4285
  }
5255
- function _guid(Class2, params) {
4286
+ function _boolean(Class2, params) {
5256
4287
  return new Class2({
5257
- type: "string",
5258
- format: "guid",
5259
- check: "string_format",
5260
- abort: false,
4288
+ type: "boolean",
5261
4289
  ...normalizeParams(params)
5262
4290
  });
5263
4291
  }
5264
- function _uuid(Class2, params) {
4292
+ function _any(Class2) {
5265
4293
  return new Class2({
5266
- type: "string",
5267
- format: "uuid",
5268
- check: "string_format",
5269
- abort: false,
5270
- ...normalizeParams(params)
4294
+ type: "any"
5271
4295
  });
5272
4296
  }
5273
- function _uuidv4(Class2, params) {
5274
- return new Class2({
5275
- type: "string",
5276
- format: "uuid",
5277
- check: "string_format",
5278
- abort: false,
5279
- version: "v4",
5280
- ...normalizeParams(params)
4297
+ function _length(length, params) {
4298
+ return new $ZodCheckLengthEquals({
4299
+ check: "length_equals",
4300
+ ...normalizeParams(params),
4301
+ length
5281
4302
  });
5282
4303
  }
5283
- function _uuidv6(Class2, params) {
5284
- return new Class2({
5285
- type: "string",
5286
- format: "uuid",
4304
+ function _regex(pattern, params) {
4305
+ return new $ZodCheckRegex({
5287
4306
  check: "string_format",
5288
- abort: false,
5289
- version: "v6",
5290
- ...normalizeParams(params)
4307
+ format: "regex",
4308
+ ...normalizeParams(params),
4309
+ pattern
5291
4310
  });
5292
4311
  }
5293
- function _uuidv7(Class2, params) {
5294
- return new Class2({
5295
- type: "string",
5296
- format: "uuid",
5297
- check: "string_format",
5298
- abort: false,
5299
- version: "v7",
5300
- ...normalizeParams(params)
4312
+ function _overwrite(tx) {
4313
+ return new $ZodCheckOverwrite({
4314
+ check: "overwrite",
4315
+ tx
5301
4316
  });
5302
4317
  }
5303
- function _url(Class2, params) {
5304
- return new Class2({
5305
- type: "string",
5306
- format: "url",
5307
- check: "string_format",
5308
- abort: false,
5309
- ...normalizeParams(params)
5310
- });
4318
+ function _trim() {
4319
+ return _overwrite((input) => input.trim());
5311
4320
  }
5312
- function _emoji2(Class2, params) {
5313
- return new Class2({
5314
- type: "string",
5315
- format: "emoji",
5316
- check: "string_format",
5317
- abort: false,
5318
- ...normalizeParams(params)
5319
- });
4321
+ function _toLowerCase() {
4322
+ return _overwrite((input) => input.toLowerCase());
5320
4323
  }
5321
- function _nanoid(Class2, params) {
5322
- return new Class2({
5323
- type: "string",
5324
- format: "nanoid",
5325
- check: "string_format",
5326
- abort: false,
5327
- ...normalizeParams(params)
5328
- });
5329
- }
5330
- function _cuid(Class2, params) {
5331
- return new Class2({
5332
- type: "string",
5333
- format: "cuid",
5334
- check: "string_format",
5335
- abort: false,
5336
- ...normalizeParams(params)
5337
- });
5338
- }
5339
- function _cuid2(Class2, params) {
5340
- return new Class2({
5341
- type: "string",
5342
- format: "cuid2",
5343
- check: "string_format",
5344
- abort: false,
5345
- ...normalizeParams(params)
5346
- });
5347
- }
5348
- function _ulid(Class2, params) {
5349
- return new Class2({
5350
- type: "string",
5351
- format: "ulid",
5352
- check: "string_format",
5353
- abort: false,
5354
- ...normalizeParams(params)
5355
- });
5356
- }
5357
- function _xid(Class2, params) {
5358
- return new Class2({
5359
- type: "string",
5360
- format: "xid",
5361
- check: "string_format",
5362
- abort: false,
5363
- ...normalizeParams(params)
5364
- });
5365
- }
5366
- function _ksuid(Class2, params) {
5367
- return new Class2({
5368
- type: "string",
5369
- format: "ksuid",
5370
- check: "string_format",
5371
- abort: false,
5372
- ...normalizeParams(params)
5373
- });
5374
- }
5375
- function _ipv4(Class2, params) {
5376
- return new Class2({
5377
- type: "string",
5378
- format: "ipv4",
5379
- check: "string_format",
5380
- abort: false,
5381
- ...normalizeParams(params)
5382
- });
5383
- }
5384
- function _ipv6(Class2, params) {
5385
- return new Class2({
5386
- type: "string",
5387
- format: "ipv6",
5388
- check: "string_format",
5389
- abort: false,
5390
- ...normalizeParams(params)
5391
- });
5392
- }
5393
- function _cidrv4(Class2, params) {
5394
- return new Class2({
5395
- type: "string",
5396
- format: "cidrv4",
5397
- check: "string_format",
5398
- abort: false,
5399
- ...normalizeParams(params)
5400
- });
5401
- }
5402
- function _cidrv6(Class2, params) {
5403
- return new Class2({
5404
- type: "string",
5405
- format: "cidrv6",
5406
- check: "string_format",
5407
- abort: false,
5408
- ...normalizeParams(params)
5409
- });
5410
- }
5411
- function _base64(Class2, params) {
5412
- return new Class2({
5413
- type: "string",
5414
- format: "base64",
5415
- check: "string_format",
5416
- abort: false,
5417
- ...normalizeParams(params)
5418
- });
5419
- }
5420
- function _base64url(Class2, params) {
5421
- return new Class2({
5422
- type: "string",
5423
- format: "base64url",
5424
- check: "string_format",
5425
- abort: false,
5426
- ...normalizeParams(params)
5427
- });
5428
- }
5429
- function _e164(Class2, params) {
5430
- return new Class2({
5431
- type: "string",
5432
- format: "e164",
5433
- check: "string_format",
5434
- abort: false,
5435
- ...normalizeParams(params)
5436
- });
5437
- }
5438
- function _jwt(Class2, params) {
5439
- return new Class2({
5440
- type: "string",
5441
- format: "jwt",
5442
- check: "string_format",
5443
- abort: false,
5444
- ...normalizeParams(params)
5445
- });
5446
- }
5447
- function _isoDateTime(Class2, params) {
5448
- return new Class2({
5449
- type: "string",
5450
- format: "datetime",
5451
- check: "string_format",
5452
- offset: false,
5453
- local: false,
5454
- precision: null,
5455
- ...normalizeParams(params)
5456
- });
5457
- }
5458
- function _isoDate(Class2, params) {
5459
- return new Class2({
5460
- type: "string",
5461
- format: "date",
5462
- check: "string_format",
5463
- ...normalizeParams(params)
5464
- });
5465
- }
5466
- function _isoTime(Class2, params) {
5467
- return new Class2({
5468
- type: "string",
5469
- format: "time",
5470
- check: "string_format",
5471
- precision: null,
5472
- ...normalizeParams(params)
5473
- });
5474
- }
5475
- function _isoDuration(Class2, params) {
5476
- return new Class2({
5477
- type: "string",
5478
- format: "duration",
5479
- check: "string_format",
5480
- ...normalizeParams(params)
5481
- });
5482
- }
5483
- function _boolean(Class2, params) {
5484
- return new Class2({
5485
- type: "boolean",
5486
- ...normalizeParams(params)
5487
- });
5488
- }
5489
- function _any(Class2) {
5490
- return new Class2({
5491
- type: "any"
5492
- });
5493
- }
5494
- function _unknown(Class2) {
5495
- return new Class2({
5496
- type: "unknown"
5497
- });
5498
- }
5499
- function _never(Class2, params) {
5500
- return new Class2({
5501
- type: "never",
5502
- ...normalizeParams(params)
5503
- });
5504
- }
5505
- function _maxLength(maximum, params) {
5506
- const ch = new $ZodCheckMaxLength({
5507
- check: "max_length",
5508
- ...normalizeParams(params),
5509
- maximum
5510
- });
5511
- return ch;
5512
- }
5513
- function _minLength(minimum, params) {
5514
- return new $ZodCheckMinLength({
5515
- check: "min_length",
5516
- ...normalizeParams(params),
5517
- minimum
5518
- });
5519
- }
5520
- function _length(length, params) {
5521
- return new $ZodCheckLengthEquals({
5522
- check: "length_equals",
5523
- ...normalizeParams(params),
5524
- length
5525
- });
5526
- }
5527
- function _regex(pattern, params) {
5528
- return new $ZodCheckRegex({
5529
- check: "string_format",
5530
- format: "regex",
5531
- ...normalizeParams(params),
5532
- pattern
5533
- });
5534
- }
5535
- function _lowercase(params) {
5536
- return new $ZodCheckLowerCase({
5537
- check: "string_format",
5538
- format: "lowercase",
5539
- ...normalizeParams(params)
5540
- });
5541
- }
5542
- function _uppercase(params) {
5543
- return new $ZodCheckUpperCase({
5544
- check: "string_format",
5545
- format: "uppercase",
5546
- ...normalizeParams(params)
5547
- });
5548
- }
5549
- function _includes(includes, params) {
5550
- return new $ZodCheckIncludes({
5551
- check: "string_format",
5552
- format: "includes",
5553
- ...normalizeParams(params),
5554
- includes
5555
- });
5556
- }
5557
- function _startsWith(prefix, params) {
5558
- return new $ZodCheckStartsWith({
5559
- check: "string_format",
5560
- format: "starts_with",
5561
- ...normalizeParams(params),
5562
- prefix
5563
- });
5564
- }
5565
- function _endsWith(suffix, params) {
5566
- return new $ZodCheckEndsWith({
5567
- check: "string_format",
5568
- format: "ends_with",
5569
- ...normalizeParams(params),
5570
- suffix
5571
- });
5572
- }
5573
- function _overwrite(tx) {
5574
- return new $ZodCheckOverwrite({
5575
- check: "overwrite",
5576
- tx
5577
- });
5578
- }
5579
- function _normalize(form) {
5580
- return _overwrite((input) => input.normalize(form));
5581
- }
5582
- function _trim() {
5583
- return _overwrite((input) => input.trim());
5584
- }
5585
- function _toLowerCase() {
5586
- return _overwrite((input) => input.toLowerCase());
5587
- }
5588
- function _toUpperCase() {
5589
- return _overwrite((input) => input.toUpperCase());
5590
- }
5591
- function _array(Class2, element, params) {
5592
- return new Class2({
5593
- type: "array",
5594
- element,
5595
- // get element() {
5596
- // return element;
5597
- // },
5598
- ...normalizeParams(params)
5599
- });
5600
- }
5601
- function _refine(Class2, fn, _params) {
5602
- const schema = new Class2({
5603
- type: "custom",
5604
- check: "custom",
5605
- fn,
5606
- ...normalizeParams(_params)
5607
- });
5608
- return schema;
5609
- }
5610
- function _superRefine(fn) {
5611
- const ch = _check((payload) => {
5612
- payload.addIssue = (issue2) => {
5613
- if (typeof issue2 === "string") {
5614
- payload.issues.push(issue(issue2, payload.value, ch._zod.def));
5615
- } else {
5616
- const _issue = issue2;
5617
- if (_issue.fatal)
5618
- _issue.continue = false;
5619
- _issue.code ?? (_issue.code = "custom");
5620
- _issue.input ?? (_issue.input = payload.value);
5621
- _issue.inst ?? (_issue.inst = ch);
5622
- _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
5623
- payload.issues.push(issue(_issue));
5624
- }
5625
- };
5626
- return fn(payload.value, payload);
5627
- });
5628
- return ch;
5629
- }
5630
- function _check(fn, params) {
5631
- const ch = new $ZodCheck({
5632
- check: "custom",
5633
- ...normalizeParams(params)
5634
- });
5635
- ch._zod.check = fn;
5636
- return ch;
5637
- }
5638
-
5639
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/to-json-schema.js
5640
- init_esm_shims();
5641
-
5642
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/json-schema.js
5643
- init_esm_shims();
5644
-
5645
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/schemas.js
5646
- init_esm_shims();
5647
4324
 
5648
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/checks.js
4325
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/to-json-schema.js
5649
4326
  init_esm_shims();
5650
4327
 
5651
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/iso.js
4328
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/json-schema.js
5652
4329
  init_esm_shims();
5653
- var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
5654
- $ZodISODateTime.init(inst, def);
5655
- ZodStringFormat.init(inst, def);
5656
- });
5657
- function datetime2(params) {
5658
- return _isoDateTime(ZodISODateTime, params);
5659
- }
5660
- var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
5661
- $ZodISODate.init(inst, def);
5662
- ZodStringFormat.init(inst, def);
5663
- });
5664
- function date2(params) {
5665
- return _isoDate(ZodISODate, params);
5666
- }
5667
- var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
5668
- $ZodISOTime.init(inst, def);
5669
- ZodStringFormat.init(inst, def);
5670
- });
5671
- function time2(params) {
5672
- return _isoTime(ZodISOTime, params);
5673
- }
5674
- var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
5675
- $ZodISODuration.init(inst, def);
5676
- ZodStringFormat.init(inst, def);
5677
- });
5678
- function duration2(params) {
5679
- return _isoDuration(ZodISODuration, params);
5680
- }
5681
4330
 
5682
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/parse.js
4331
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/parse.js
5683
4332
  init_esm_shims();
5684
4333
 
5685
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/errors.js
4334
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js
5686
4335
  init_esm_shims();
5687
- var initializer2 = (inst, issues) => {
5688
- $ZodError.init(inst, issues);
5689
- inst.name = "ZodError";
5690
- Object.defineProperties(inst, {
5691
- format: {
5692
- value: (mapper) => formatError(inst, mapper)
5693
- // enumerable: false,
5694
- },
5695
- flatten: {
5696
- value: (mapper) => flattenError(inst, mapper)
5697
- // enumerable: false,
5698
- },
5699
- addIssue: {
5700
- value: (issue2) => {
5701
- inst.issues.push(issue2);
5702
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
5703
- }
5704
- // enumerable: false,
5705
- },
5706
- addIssues: {
5707
- value: (issues2) => {
5708
- inst.issues.push(...issues2);
5709
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
5710
- }
5711
- // enumerable: false,
5712
- },
5713
- isEmpty: {
5714
- get() {
5715
- return inst.issues.length === 0;
5716
- }
5717
- // enumerable: false,
5718
- }
5719
- });
5720
- };
5721
- var ZodError = $constructor("ZodError", initializer2);
5722
- var ZodRealError = $constructor("ZodError", initializer2, {
5723
- Parent: Error
5724
- });
5725
-
5726
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/parse.js
5727
- var parse2 = /* @__PURE__ */ _parse(ZodRealError);
5728
- var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
5729
- var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
5730
- var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
5731
- var encode = /* @__PURE__ */ _encode(ZodRealError);
5732
- var decode = /* @__PURE__ */ _decode(ZodRealError);
5733
- var encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
5734
- var decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
5735
- var safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
5736
- var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
5737
- var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
5738
- var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
5739
-
5740
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/schemas.js
5741
- var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
4336
+ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
4337
+ if (!inst._zod)
4338
+ throw new Error("Uninitialized schema in ZodMiniType.");
5742
4339
  $ZodType.init(inst, def);
5743
4340
  inst.def = def;
5744
4341
  inst.type = def.type;
5745
- Object.defineProperty(inst, "_def", { value: def });
4342
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
4343
+ inst.safeParse = (data, params) => safeParse(inst, data, params);
4344
+ inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
4345
+ inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
5746
4346
  inst.check = (...checks) => {
5747
4347
  return inst.clone(
5748
4348
  {
@@ -5755,446 +4355,142 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
5755
4355
  // { parent: true }
5756
4356
  );
5757
4357
  };
5758
- inst.clone = (def2, params) => clone(inst, def2, params);
4358
+ inst.clone = (_def, params) => clone(inst, _def, params);
5759
4359
  inst.brand = () => inst;
5760
4360
  inst.register = ((reg, meta) => {
5761
4361
  reg.add(inst, meta);
5762
4362
  return inst;
5763
4363
  });
5764
- inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
5765
- inst.safeParse = (data, params) => safeParse2(inst, data, params);
5766
- inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
5767
- inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params);
5768
- inst.spa = inst.safeParseAsync;
5769
- inst.encode = (data, params) => encode(inst, data, params);
5770
- inst.decode = (data, params) => decode(inst, data, params);
5771
- inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
5772
- inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
5773
- inst.safeEncode = (data, params) => safeEncode(inst, data, params);
5774
- inst.safeDecode = (data, params) => safeDecode(inst, data, params);
5775
- inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
5776
- inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
5777
- inst.refine = (check, params) => inst.check(refine(check, params));
5778
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
5779
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
5780
- inst.optional = () => optional(inst);
5781
- inst.nullable = () => nullable(inst);
5782
- inst.nullish = () => optional(nullable(inst));
5783
- inst.nonoptional = (params) => nonoptional(inst, params);
5784
- inst.array = () => array(inst);
5785
- inst.or = (arg) => union([inst, arg]);
5786
- inst.and = (arg) => intersection(inst, arg);
5787
- inst.transform = (tx) => pipe(inst, transform(tx));
5788
- inst.default = (def2) => _default(inst, def2);
5789
- inst.prefault = (def2) => prefault(inst, def2);
5790
- inst.catch = (params) => _catch(inst, params);
5791
- inst.pipe = (target) => pipe(inst, target);
5792
- inst.readonly = () => readonly(inst);
5793
- inst.describe = (description) => {
5794
- const cl = inst.clone();
5795
- globalRegistry.add(cl, { description });
5796
- return cl;
5797
- };
5798
- Object.defineProperty(inst, "description", {
5799
- get() {
5800
- return globalRegistry.get(inst)?.description;
5801
- },
5802
- configurable: true
5803
- });
5804
- inst.meta = (...args) => {
5805
- if (args.length === 0) {
5806
- return globalRegistry.get(inst);
5807
- }
5808
- const cl = inst.clone();
5809
- globalRegistry.add(cl, args[0]);
5810
- return cl;
5811
- };
5812
- inst.isOptional = () => inst.safeParse(void 0).success;
5813
- inst.isNullable = () => inst.safeParse(null).success;
5814
- return inst;
5815
4364
  });
5816
- var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
4365
+ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
5817
4366
  $ZodString.init(inst, def);
5818
- ZodType.init(inst, def);
5819
- const bag = inst._zod.bag;
5820
- inst.format = bag.format ?? null;
5821
- inst.minLength = bag.minimum ?? null;
5822
- inst.maxLength = bag.maximum ?? null;
5823
- inst.regex = (...args) => inst.check(_regex(...args));
5824
- inst.includes = (...args) => inst.check(_includes(...args));
5825
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
5826
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
5827
- inst.min = (...args) => inst.check(_minLength(...args));
5828
- inst.max = (...args) => inst.check(_maxLength(...args));
5829
- inst.length = (...args) => inst.check(_length(...args));
5830
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
5831
- inst.lowercase = (params) => inst.check(_lowercase(params));
5832
- inst.uppercase = (params) => inst.check(_uppercase(params));
5833
- inst.trim = () => inst.check(_trim());
5834
- inst.normalize = (...args) => inst.check(_normalize(...args));
5835
- inst.toLowerCase = () => inst.check(_toLowerCase());
5836
- inst.toUpperCase = () => inst.check(_toUpperCase());
5837
- });
5838
- var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
5839
- $ZodString.init(inst, def);
5840
- _ZodString.init(inst, def);
5841
- inst.email = (params) => inst.check(_email(ZodEmail, params));
5842
- inst.url = (params) => inst.check(_url(ZodURL, params));
5843
- inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
5844
- inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params));
5845
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
5846
- inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
5847
- inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
5848
- inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
5849
- inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
5850
- inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
5851
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
5852
- inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
5853
- inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
5854
- inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
5855
- inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
5856
- inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
5857
- inst.xid = (params) => inst.check(_xid(ZodXID, params));
5858
- inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
5859
- inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
5860
- inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
5861
- inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
5862
- inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
5863
- inst.e164 = (params) => inst.check(_e164(ZodE164, params));
5864
- inst.datetime = (params) => inst.check(datetime2(params));
5865
- inst.date = (params) => inst.check(date2(params));
5866
- inst.time = (params) => inst.check(time2(params));
5867
- inst.duration = (params) => inst.check(duration2(params));
4367
+ ZodMiniType.init(inst, def);
5868
4368
  });
5869
4369
  function string2(params) {
5870
- return _string(ZodString, params);
4370
+ return _string(ZodMiniString, params);
5871
4371
  }
5872
- var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
4372
+ var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
5873
4373
  $ZodStringFormat.init(inst, def);
5874
- _ZodString.init(inst, def);
5875
- });
5876
- var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
5877
- $ZodEmail.init(inst, def);
5878
- ZodStringFormat.init(inst, def);
4374
+ ZodMiniString.init(inst, def);
5879
4375
  });
5880
- var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
5881
- $ZodGUID.init(inst, def);
5882
- ZodStringFormat.init(inst, def);
5883
- });
5884
- var ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
5885
- $ZodUUID.init(inst, def);
5886
- ZodStringFormat.init(inst, def);
5887
- });
5888
- var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
4376
+ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
5889
4377
  $ZodURL.init(inst, def);
5890
- ZodStringFormat.init(inst, def);
4378
+ ZodMiniStringFormat.init(inst, def);
5891
4379
  });
5892
4380
  function url(params) {
5893
- return _url(ZodURL, params);
4381
+ return _url(ZodMiniURL, params);
5894
4382
  }
5895
- var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
5896
- $ZodEmoji.init(inst, def);
5897
- ZodStringFormat.init(inst, def);
5898
- });
5899
- var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
5900
- $ZodNanoID.init(inst, def);
5901
- ZodStringFormat.init(inst, def);
5902
- });
5903
- var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
5904
- $ZodCUID.init(inst, def);
5905
- ZodStringFormat.init(inst, def);
5906
- });
5907
- var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
5908
- $ZodCUID2.init(inst, def);
5909
- ZodStringFormat.init(inst, def);
5910
- });
5911
- var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
5912
- $ZodULID.init(inst, def);
5913
- ZodStringFormat.init(inst, def);
5914
- });
5915
- var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
5916
- $ZodXID.init(inst, def);
5917
- ZodStringFormat.init(inst, def);
5918
- });
5919
- var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
5920
- $ZodKSUID.init(inst, def);
5921
- ZodStringFormat.init(inst, def);
5922
- });
5923
- var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
5924
- $ZodIPv4.init(inst, def);
5925
- ZodStringFormat.init(inst, def);
5926
- });
5927
- var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
5928
- $ZodIPv6.init(inst, def);
5929
- ZodStringFormat.init(inst, def);
5930
- });
5931
- var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
5932
- $ZodCIDRv4.init(inst, def);
5933
- ZodStringFormat.init(inst, def);
5934
- });
5935
- var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
5936
- $ZodCIDRv6.init(inst, def);
5937
- ZodStringFormat.init(inst, def);
5938
- });
5939
- var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
5940
- $ZodBase64.init(inst, def);
5941
- ZodStringFormat.init(inst, def);
5942
- });
5943
- var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
5944
- $ZodBase64URL.init(inst, def);
5945
- ZodStringFormat.init(inst, def);
5946
- });
5947
- var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
5948
- $ZodE164.init(inst, def);
5949
- ZodStringFormat.init(inst, def);
5950
- });
5951
- var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
5952
- $ZodJWT.init(inst, def);
5953
- ZodStringFormat.init(inst, def);
5954
- });
5955
- var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
4383
+ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
5956
4384
  $ZodBoolean.init(inst, def);
5957
- ZodType.init(inst, def);
4385
+ ZodMiniType.init(inst, def);
5958
4386
  });
5959
4387
  function boolean2(params) {
5960
- return _boolean(ZodBoolean, params);
4388
+ return _boolean(ZodMiniBoolean, params);
5961
4389
  }
5962
- var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
4390
+ var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
5963
4391
  $ZodAny.init(inst, def);
5964
- ZodType.init(inst, def);
4392
+ ZodMiniType.init(inst, def);
5965
4393
  });
5966
4394
  function any() {
5967
- return _any(ZodAny);
5968
- }
5969
- var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
5970
- $ZodUnknown.init(inst, def);
5971
- ZodType.init(inst, def);
5972
- });
5973
- function unknown() {
5974
- return _unknown(ZodUnknown);
5975
- }
5976
- var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
5977
- $ZodNever.init(inst, def);
5978
- ZodType.init(inst, def);
5979
- });
5980
- function never(params) {
5981
- return _never(ZodNever, params);
4395
+ return _any(ZodMiniAny);
5982
4396
  }
5983
- var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
4397
+ var ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
5984
4398
  $ZodArray.init(inst, def);
5985
- ZodType.init(inst, def);
5986
- inst.element = def.element;
5987
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
5988
- inst.nonempty = (params) => inst.check(_minLength(1, params));
5989
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
5990
- inst.length = (len, params) => inst.check(_length(len, params));
5991
- inst.unwrap = () => inst.element;
4399
+ ZodMiniType.init(inst, def);
5992
4400
  });
5993
4401
  function array(element, params) {
5994
- return _array(ZodArray, element, params);
4402
+ return new ZodMiniArray({
4403
+ type: "array",
4404
+ element,
4405
+ ...util_exports.normalizeParams(params)
4406
+ });
5995
4407
  }
5996
- var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
5997
- $ZodObjectJIT.init(inst, def);
5998
- ZodType.init(inst, def);
4408
+ var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
4409
+ $ZodObject.init(inst, def);
4410
+ ZodMiniType.init(inst, def);
5999
4411
  util_exports.defineLazy(inst, "shape", () => def.shape);
6000
- inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
6001
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
6002
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
6003
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
6004
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
6005
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
6006
- inst.extend = (incoming) => {
6007
- return util_exports.extend(inst, incoming);
6008
- };
6009
- inst.safeExtend = (incoming) => {
6010
- return util_exports.safeExtend(inst, incoming);
6011
- };
6012
- inst.merge = (other) => util_exports.merge(inst, other);
6013
- inst.pick = (mask) => util_exports.pick(inst, mask);
6014
- inst.omit = (mask) => util_exports.omit(inst, mask);
6015
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
6016
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
6017
4412
  });
6018
4413
  function object(shape, params) {
6019
4414
  const def = {
6020
4415
  type: "object",
6021
- get shape() {
6022
- util_exports.assignProp(this, "shape", shape ? util_exports.objectClone(shape) : {});
6023
- return this.shape;
6024
- },
4416
+ shape: shape ?? {},
6025
4417
  ...util_exports.normalizeParams(params)
6026
4418
  };
6027
- return new ZodObject(def);
4419
+ return new ZodMiniObject(def);
6028
4420
  }
6029
- var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
4421
+ var ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
6030
4422
  $ZodUnion.init(inst, def);
6031
- ZodType.init(inst, def);
6032
- inst.options = def.options;
4423
+ ZodMiniType.init(inst, def);
6033
4424
  });
6034
4425
  function union(options, params) {
6035
- return new ZodUnion({
4426
+ return new ZodMiniUnion({
6036
4427
  type: "union",
6037
4428
  options,
6038
4429
  ...util_exports.normalizeParams(params)
6039
4430
  });
6040
4431
  }
6041
- var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
6042
- $ZodIntersection.init(inst, def);
6043
- ZodType.init(inst, def);
6044
- });
6045
- function intersection(left, right) {
6046
- return new ZodIntersection({
6047
- type: "intersection",
6048
- left,
6049
- right
6050
- });
6051
- }
6052
- var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
4432
+ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
6053
4433
  $ZodRecord.init(inst, def);
6054
- ZodType.init(inst, def);
6055
- inst.keyType = def.keyType;
6056
- inst.valueType = def.valueType;
4434
+ ZodMiniType.init(inst, def);
6057
4435
  });
6058
4436
  function record(keyType, valueType, params) {
6059
- return new ZodRecord({
4437
+ return new ZodMiniRecord({
6060
4438
  type: "record",
6061
4439
  keyType,
6062
4440
  valueType,
6063
4441
  ...util_exports.normalizeParams(params)
6064
4442
  });
6065
4443
  }
6066
- var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
4444
+ var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
6067
4445
  $ZodEnum.init(inst, def);
6068
- ZodType.init(inst, def);
6069
- inst.enum = def.entries;
4446
+ ZodMiniType.init(inst, def);
6070
4447
  inst.options = Object.values(def.entries);
6071
- const keys = new Set(Object.keys(def.entries));
6072
- inst.extract = (values, params) => {
6073
- const newEntries = {};
6074
- for (const value of values) {
6075
- if (keys.has(value)) {
6076
- newEntries[value] = def.entries[value];
6077
- } else
6078
- throw new Error(`Key ${value} not found in enum`);
6079
- }
6080
- return new ZodEnum({
6081
- ...def,
6082
- checks: [],
6083
- ...util_exports.normalizeParams(params),
6084
- entries: newEntries
6085
- });
6086
- };
6087
- inst.exclude = (values, params) => {
6088
- const newEntries = { ...def.entries };
6089
- for (const value of values) {
6090
- if (keys.has(value)) {
6091
- delete newEntries[value];
6092
- } else
6093
- throw new Error(`Key ${value} not found in enum`);
6094
- }
6095
- return new ZodEnum({
6096
- ...def,
6097
- checks: [],
6098
- ...util_exports.normalizeParams(params),
6099
- entries: newEntries
6100
- });
6101
- };
6102
4448
  });
6103
4449
  function _enum(values, params) {
6104
4450
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
6105
- return new ZodEnum({
4451
+ return new ZodMiniEnum({
6106
4452
  type: "enum",
6107
4453
  entries,
6108
4454
  ...util_exports.normalizeParams(params)
6109
4455
  });
6110
4456
  }
6111
- var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
4457
+ var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
6112
4458
  $ZodLiteral.init(inst, def);
6113
- ZodType.init(inst, def);
6114
- inst.values = new Set(def.values);
6115
- Object.defineProperty(inst, "value", {
6116
- get() {
6117
- if (def.values.length > 1) {
6118
- throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
6119
- }
6120
- return def.values[0];
6121
- }
6122
- });
4459
+ ZodMiniType.init(inst, def);
6123
4460
  });
6124
4461
  function literal(value, params) {
6125
- return new ZodLiteral({
4462
+ return new ZodMiniLiteral({
6126
4463
  type: "literal",
6127
4464
  values: Array.isArray(value) ? value : [value],
6128
4465
  ...util_exports.normalizeParams(params)
6129
4466
  });
6130
4467
  }
6131
- var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
6132
- $ZodTransform.init(inst, def);
6133
- ZodType.init(inst, def);
6134
- inst._zod.parse = (payload, _ctx) => {
6135
- if (_ctx.direction === "backward") {
6136
- throw new $ZodEncodeError(inst.constructor.name);
6137
- }
6138
- payload.addIssue = (issue2) => {
6139
- if (typeof issue2 === "string") {
6140
- payload.issues.push(util_exports.issue(issue2, payload.value, def));
6141
- } else {
6142
- const _issue = issue2;
6143
- if (_issue.fatal)
6144
- _issue.continue = false;
6145
- _issue.code ?? (_issue.code = "custom");
6146
- _issue.input ?? (_issue.input = payload.value);
6147
- _issue.inst ?? (_issue.inst = inst);
6148
- payload.issues.push(util_exports.issue(_issue));
6149
- }
6150
- };
6151
- const output = def.transform(payload.value, payload);
6152
- if (output instanceof Promise) {
6153
- return output.then((output2) => {
6154
- payload.value = output2;
6155
- return payload;
6156
- });
6157
- }
6158
- payload.value = output;
6159
- return payload;
6160
- };
6161
- });
6162
- function transform(fn) {
6163
- return new ZodTransform({
6164
- type: "transform",
6165
- transform: fn
6166
- });
6167
- }
6168
- var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
4468
+ var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
6169
4469
  $ZodOptional.init(inst, def);
6170
- ZodType.init(inst, def);
6171
- inst.unwrap = () => inst._zod.def.innerType;
4470
+ ZodMiniType.init(inst, def);
6172
4471
  });
6173
4472
  function optional(innerType) {
6174
- return new ZodOptional({
4473
+ return new ZodMiniOptional({
6175
4474
  type: "optional",
6176
4475
  innerType
6177
4476
  });
6178
4477
  }
6179
- var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
4478
+ var ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def) => {
6180
4479
  $ZodNullable.init(inst, def);
6181
- ZodType.init(inst, def);
6182
- inst.unwrap = () => inst._zod.def.innerType;
4480
+ ZodMiniType.init(inst, def);
6183
4481
  });
6184
4482
  function nullable(innerType) {
6185
- return new ZodNullable({
4483
+ return new ZodMiniNullable({
6186
4484
  type: "nullable",
6187
4485
  innerType
6188
4486
  });
6189
4487
  }
6190
- var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
4488
+ var ZodMiniDefault = /* @__PURE__ */ $constructor("ZodMiniDefault", (inst, def) => {
6191
4489
  $ZodDefault.init(inst, def);
6192
- ZodType.init(inst, def);
6193
- inst.unwrap = () => inst._zod.def.innerType;
6194
- inst.removeDefault = inst.unwrap;
4490
+ ZodMiniType.init(inst, def);
6195
4491
  });
6196
4492
  function _default(innerType, defaultValue) {
6197
- return new ZodDefault({
4493
+ return new ZodMiniDefault({
6198
4494
  type: "default",
6199
4495
  innerType,
6200
4496
  get defaultValue() {
@@ -6202,92 +4498,15 @@ function _default(innerType, defaultValue) {
6202
4498
  }
6203
4499
  });
6204
4500
  }
6205
- var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
6206
- $ZodPrefault.init(inst, def);
6207
- ZodType.init(inst, def);
6208
- inst.unwrap = () => inst._zod.def.innerType;
6209
- });
6210
- function prefault(innerType, defaultValue) {
6211
- return new ZodPrefault({
6212
- type: "prefault",
6213
- innerType,
6214
- get defaultValue() {
6215
- return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
6216
- }
6217
- });
6218
- }
6219
- var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
6220
- $ZodNonOptional.init(inst, def);
6221
- ZodType.init(inst, def);
6222
- inst.unwrap = () => inst._zod.def.innerType;
6223
- });
6224
- function nonoptional(innerType, params) {
6225
- return new ZodNonOptional({
6226
- type: "nonoptional",
6227
- innerType,
6228
- ...util_exports.normalizeParams(params)
6229
- });
6230
- }
6231
- var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
6232
- $ZodCatch.init(inst, def);
6233
- ZodType.init(inst, def);
6234
- inst.unwrap = () => inst._zod.def.innerType;
6235
- inst.removeCatch = inst.unwrap;
6236
- });
6237
- function _catch(innerType, catchValue) {
6238
- return new ZodCatch({
6239
- type: "catch",
6240
- innerType,
6241
- catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
6242
- });
6243
- }
6244
- var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
6245
- $ZodPipe.init(inst, def);
6246
- ZodType.init(inst, def);
6247
- inst.in = def.in;
6248
- inst.out = def.out;
6249
- });
6250
- function pipe(in_, out) {
6251
- return new ZodPipe({
6252
- type: "pipe",
6253
- in: in_,
6254
- out
6255
- // ...util.normalizeParams(params),
6256
- });
6257
- }
6258
- var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
6259
- $ZodReadonly.init(inst, def);
6260
- ZodType.init(inst, def);
6261
- inst.unwrap = () => inst._zod.def.innerType;
6262
- });
6263
- function readonly(innerType) {
6264
- return new ZodReadonly({
6265
- type: "readonly",
6266
- innerType
6267
- });
6268
- }
6269
- var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
6270
- $ZodCustom.init(inst, def);
6271
- ZodType.init(inst, def);
6272
- });
6273
- function refine(fn, _params = {}) {
6274
- return _refine(ZodCustom, fn, _params);
6275
- }
6276
- function superRefine(fn) {
6277
- return _superRefine(fn);
6278
- }
6279
4501
 
6280
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/compat.js
4502
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/checks.js
6281
4503
  init_esm_shims();
6282
- var ZodFirstPartyTypeKind;
6283
- /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
6284
- })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
6285
4504
 
6286
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/coerce.js
4505
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/iso.js
6287
4506
  init_esm_shims();
6288
4507
 
6289
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/external.js
6290
- config(en_default());
4508
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/coerce.js
4509
+ init_esm_shims();
6291
4510
 
6292
4511
  // ../config/src/schema.ts
6293
4512
  var schemaRegistry = registry();
@@ -7650,15 +5869,15 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
7650
5869
  await workspaceConfigSchema.parseAsync(configInput)
7651
5870
  );
7652
5871
  result.workspaceRoot ??= _workspaceRoot;
7653
- } catch (error2) {
5872
+ } catch (error) {
7654
5873
  throw new Error(
7655
- `Failed to parse Storm Workspace configuration${error2?.message ? `: ${error2.message}` : ""}
5874
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
7656
5875
 
7657
5876
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
7658
5877
  configInput
7659
5878
  )}`,
7660
5879
  {
7661
- cause: error2
5880
+ cause: error
7662
5881
  }
7663
5882
  );
7664
5883
  }
@@ -7710,10 +5929,10 @@ ${formatLogMessage(config3)}`,
7710
5929
  );
7711
5930
  }
7712
5931
  return config3;
7713
- } catch (error2) {
5932
+ } catch (error) {
7714
5933
  if (!skipLogs) {
7715
5934
  writeWarning(
7716
- `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error2}`,
5935
+ `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
7717
5936
  { logLevel: "all" }
7718
5937
  );
7719
5938
  }