@storm-software/eslint 0.168.14 → 0.168.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/preset.js CHANGED
@@ -5,16 +5,16 @@ import {
5
5
  isPackageInScope,
6
6
  parserPlain,
7
7
  renameRules
8
- } from "./chunk-CDXEKDNU.js";
8
+ } from "./chunk-AMLK5Y7B.js";
9
9
  import {
10
10
  getTsConfigPath
11
- } from "./chunk-KBURJRYI.js";
11
+ } from "./chunk-66BPLIOQ.js";
12
12
  import {
13
13
  banner_plugin_default
14
- } from "./chunk-AW4SHEZD.js";
14
+ } from "./chunk-334HVEBF.js";
15
15
  import {
16
16
  getFileBanner
17
- } from "./chunk-SBLLHB56.js";
17
+ } from "./chunk-67HS7NRN.js";
18
18
  import {
19
19
  GLOB_ASTRO,
20
20
  GLOB_ASTRO_TS,
@@ -41,19 +41,19 @@ import {
41
41
  GLOB_TSX,
42
42
  GLOB_XML,
43
43
  GLOB_YAML
44
- } from "./chunk-Y7QTOLBJ.js";
44
+ } from "./chunk-KAO6TMK6.js";
45
45
  import {
46
46
  findWorkspaceRoot
47
- } from "./chunk-DRPCP64F.js";
47
+ } from "./chunk-TH744OJJ.js";
48
48
  import {
49
49
  joinPaths
50
- } from "./chunk-CGF4D7KX.js";
50
+ } from "./chunk-VJODRWHA.js";
51
51
  import {
52
52
  __commonJS,
53
53
  __export,
54
54
  __toESM,
55
55
  init_esm_shims
56
- } from "./chunk-SE52KXJN.js";
56
+ } from "./chunk-I4XCKXVG.js";
57
57
 
58
58
  // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/Debug.js
59
59
  import * as __import_process from "process";
@@ -1249,7 +1249,7 @@ import { default as default5 } from "eslint-plugin-n";
1249
1249
  import { default as default6 } from "eslint-plugin-no-secrets";
1250
1250
  import { default as default7 } from "eslint-plugin-perfectionist";
1251
1251
 
1252
- // ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_03ca27619a704313630286000c7bc63e/node_modules/eslint-plugin-pnpm/dist/index.mjs
1252
+ // ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_a3316d67ac1e7c8ed797bfee35d96afb/node_modules/eslint-plugin-pnpm/dist/index.mjs
1253
1253
  init_esm_shims();
1254
1254
  import * as jsoncParser from "jsonc-eslint-parser";
1255
1255
  import * as yamlParser from "yaml-eslint-parser";
@@ -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 = (date2 = /* @__PURE__ */ new Date()) => {
2109
- return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
2108
+ var formatTimestamp = (date3 = /* @__PURE__ */ new Date()) => {
2109
+ return `${date3.toLocaleDateString()} ${date3.toLocaleTimeString()}`;
2110
2110
  };
2111
2111
 
2112
2112
  // ../config-tools/src/logger/get-log-level.ts
@@ -2523,13 +2523,7 @@ 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/mini/index.js
2527
- init_esm_shims();
2528
-
2529
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/mini/index.js
2530
- init_esm_shims();
2531
-
2532
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/mini/external.js
2526
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/external.js
2533
2527
  init_esm_shims();
2534
2528
 
2535
2529
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/index.js
@@ -2541,7 +2535,7 @@ var NEVER = Object.freeze({
2541
2535
  status: "aborted"
2542
2536
  });
2543
2537
  // @__NO_SIDE_EFFECTS__
2544
- function $constructor(name2, initializer2, params) {
2538
+ function $constructor(name2, initializer3, params) {
2545
2539
  function init(inst, def) {
2546
2540
  var _a;
2547
2541
  Object.defineProperty(inst, "_zod", {
@@ -2550,7 +2544,7 @@ function $constructor(name2, initializer2, params) {
2550
2544
  });
2551
2545
  (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
2552
2546
  inst._zod.traits.add(name2);
2553
- initializer2(inst, def);
2547
+ initializer3(inst, def);
2554
2548
  for (const k in _.prototype) {
2555
2549
  if (!(k in inst))
2556
2550
  Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
@@ -2589,6 +2583,12 @@ var $ZodAsyncError = class extends Error {
2589
2583
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
2590
2584
  }
2591
2585
  };
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)
@@ -3256,6 +3256,55 @@ 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
+ }
3259
3308
 
3260
3309
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/parse.js
3261
3310
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
@@ -3271,7 +3320,6 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
3271
3320
  }
3272
3321
  return result.value;
3273
3322
  };
3274
- var parse = /* @__PURE__ */ _parse($ZodRealError);
3275
3323
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
3276
3324
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
3277
3325
  let result = schema._zod.run({ value, issues: [] }, ctx);
@@ -3284,7 +3332,6 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
3284
3332
  }
3285
3333
  return result.value;
3286
3334
  };
3287
- var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
3288
3335
  var _safeParse = (_Err) => (schema, value, _ctx) => {
3289
3336
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
3290
3337
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -3308,6 +3355,34 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
3308
3355
  } : { success: true, data: result.value };
3309
3356
  };
3310
3357
  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
+ };
3311
3386
 
3312
3387
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/schemas.js
3313
3388
  init_esm_shims();
@@ -3317,14 +3392,59 @@ init_esm_shims();
3317
3392
 
3318
3393
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/regexes.js
3319
3394
  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_-]*$/;
3320
3419
  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]$/;
3321
3421
  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])))`;
3322
3422
  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
+ }
3323
3441
  var string = (params) => {
3324
3442
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
3325
3443
  return new RegExp(`^${regex}$`);
3326
3444
  };
3327
3445
  var boolean = /^(?:true|false)$/i;
3446
+ var lowercase = /^[^A-Z]*$/;
3447
+ var uppercase = /^[^a-z]*$/;
3328
3448
 
3329
3449
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/checks.js
3330
3450
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
@@ -3333,6 +3453,64 @@ var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
3333
3453
  inst._zod.def = def;
3334
3454
  (_a = inst._zod).onattach ?? (_a.onattach = []);
3335
3455
  });
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
+ });
3336
3514
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
3337
3515
  var _a;
3338
3516
  $ZodCheck.init(inst, def);
@@ -3411,6 +3589,84 @@ var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def)
3411
3589
  });
3412
3590
  };
3413
3591
  });
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
+ });
3414
3670
  var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
3415
3671
  $ZodCheck.init(inst, def);
3416
3672
  inst._zod.check = (payload) => {
@@ -3420,6 +3676,40 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3420
3676
 
3421
3677
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/doc.js
3422
3678
  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
+ };
3423
3713
 
3424
3714
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/versions.js
3425
3715
  init_esm_shims();
@@ -3563,6 +3853,34 @@ var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, d
3563
3853
  $ZodCheckStringFormat.init(inst, def);
3564
3854
  $ZodString.init(inst, def);
3565
3855
  });
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
+ });
3566
3884
  var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3567
3885
  $ZodStringFormat.init(inst, def);
3568
3886
  inst._zod.check = (payload) => {
@@ -3614,6 +3932,204 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3614
3932
  }
3615
3933
  };
3616
3934
  });
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
+ });
3617
4133
  var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
3618
4134
  $ZodType.init(inst, def);
3619
4135
  inst._zod.pattern = boolean;
@@ -3639,13 +4155,29 @@ var $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
3639
4155
  $ZodType.init(inst, def);
3640
4156
  inst._zod.parse = (payload) => payload;
3641
4157
  });
3642
- function handleArrayResult(result, final, index) {
3643
- if (result.issues.length) {
3644
- final.issues.push(...prefixIssues(index, result.issues));
3645
- }
3646
- final.value[index] = result.value;
3647
- }
3648
- var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
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
+ function handleArrayResult(result, final, index) {
4175
+ if (result.issues.length) {
4176
+ final.issues.push(...prefixIssues(index, result.issues));
4177
+ }
4178
+ final.value[index] = result.value;
4179
+ }
4180
+ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3649
4181
  $ZodType.init(inst, def);
3650
4182
  inst._zod.parse = (payload, ctx) => {
3651
4183
  const input = payload.value;
@@ -3788,6 +4320,82 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3788
4320
  return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
3789
4321
  };
3790
4322
  });
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
+ });
3791
4399
  function handleUnionResults(results, final, inst, ctx) {
3792
4400
  for (const result of results) {
3793
4401
  if (result.issues.length === 0) {
@@ -3854,6 +4462,81 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
3854
4462
  });
3855
4463
  };
3856
4464
  });
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
+ }
3857
4540
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3858
4541
  $ZodType.init(inst, def);
3859
4542
  inst._zod.parse = (payload, ctx) => {
@@ -3988,6 +4671,27 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
3988
4671
  return payload;
3989
4672
  };
3990
4673
  });
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
+ });
3991
4695
  function handleOptionalResult(result, input) {
3992
4696
  if (result.issues.length && input === void 0) {
3993
4697
  return { issues: [], value: void 0 };
@@ -4060,6 +4764,167 @@ function handleDefaultResult(payload, def) {
4060
4764
  }
4061
4765
  return payload;
4062
4766
  }
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
+ }
4063
4928
 
4064
4929
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/index.js
4065
4930
  init_esm_shims();
@@ -4087,6 +4952,122 @@ init_esm_shims();
4087
4952
 
4088
4953
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/en.js
4089
4954
  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
+ }
4090
5071
 
4091
5072
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/eo.js
4092
5073
  init_esm_shims();
@@ -4252,6 +5233,7 @@ var $ZodRegistry = class {
4252
5233
  function registry() {
4253
5234
  return new $ZodRegistry();
4254
5235
  }
5236
+ var globalRegistry = /* @__PURE__ */ registry();
4255
5237
 
4256
5238
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/api.js
4257
5239
  init_esm_shims();
@@ -4261,75 +5243,506 @@ function _string(Class2, params) {
4261
5243
  ...normalizeParams(params)
4262
5244
  });
4263
5245
  }
4264
- function _url(Class2, params) {
5246
+ function _email(Class2, params) {
4265
5247
  return new Class2({
4266
5248
  type: "string",
4267
- format: "url",
5249
+ format: "email",
4268
5250
  check: "string_format",
4269
5251
  abort: false,
4270
5252
  ...normalizeParams(params)
4271
5253
  });
4272
5254
  }
4273
- function _boolean(Class2, params) {
5255
+ function _guid(Class2, params) {
4274
5256
  return new Class2({
4275
- type: "boolean",
5257
+ type: "string",
5258
+ format: "guid",
5259
+ check: "string_format",
5260
+ abort: false,
4276
5261
  ...normalizeParams(params)
4277
5262
  });
4278
5263
  }
4279
- function _any(Class2) {
5264
+ function _uuid(Class2, params) {
4280
5265
  return new Class2({
4281
- type: "any"
5266
+ type: "string",
5267
+ format: "uuid",
5268
+ check: "string_format",
5269
+ abort: false,
5270
+ ...normalizeParams(params)
4282
5271
  });
4283
5272
  }
4284
- function _length(length, params) {
4285
- return new $ZodCheckLengthEquals({
4286
- check: "length_equals",
4287
- ...normalizeParams(params),
4288
- length
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)
4289
5281
  });
4290
5282
  }
4291
- function _regex(pattern, params) {
4292
- return new $ZodCheckRegex({
5283
+ function _uuidv6(Class2, params) {
5284
+ return new Class2({
5285
+ type: "string",
5286
+ format: "uuid",
4293
5287
  check: "string_format",
4294
- format: "regex",
4295
- ...normalizeParams(params),
4296
- pattern
5288
+ abort: false,
5289
+ version: "v6",
5290
+ ...normalizeParams(params)
4297
5291
  });
4298
5292
  }
4299
- function _overwrite(tx) {
4300
- return new $ZodCheckOverwrite({
4301
- check: "overwrite",
4302
- tx
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)
4303
5301
  });
4304
5302
  }
4305
- function _trim() {
4306
- return _overwrite((input) => input.trim());
4307
- }
4308
- function _toLowerCase() {
4309
- return _overwrite((input) => input.toLowerCase());
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
+ });
4310
5311
  }
4311
-
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
+ });
5320
+ }
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
+
4312
5639
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/to-json-schema.js
4313
5640
  init_esm_shims();
4314
5641
 
4315
5642
  // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/json-schema.js
4316
5643
  init_esm_shims();
4317
5644
 
4318
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/mini/parse.js
5645
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/schemas.js
4319
5646
  init_esm_shims();
4320
5647
 
4321
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/mini/schemas.js
5648
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/checks.js
4322
5649
  init_esm_shims();
4323
- var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
4324
- if (!inst._zod)
4325
- throw new Error("Uninitialized schema in ZodMiniType.");
5650
+
5651
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/iso.js
5652
+ 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
+
5682
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/parse.js
5683
+ init_esm_shims();
5684
+
5685
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/errors.js
5686
+ 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) => {
4326
5742
  $ZodType.init(inst, def);
4327
5743
  inst.def = def;
4328
5744
  inst.type = def.type;
4329
- inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
4330
- inst.safeParse = (data, params) => safeParse(inst, data, params);
4331
- inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
4332
- inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
5745
+ Object.defineProperty(inst, "_def", { value: def });
4333
5746
  inst.check = (...checks) => {
4334
5747
  return inst.clone(
4335
5748
  {
@@ -4342,145 +5755,446 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
4342
5755
  // { parent: true }
4343
5756
  );
4344
5757
  };
4345
- inst.clone = (_def, params) => clone(inst, _def, params);
5758
+ inst.clone = (def2, params) => clone(inst, def2, params);
4346
5759
  inst.brand = () => inst;
4347
5760
  inst.register = ((reg, meta) => {
4348
5761
  reg.add(inst, meta);
4349
5762
  return inst;
4350
5763
  });
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;
4351
5815
  });
4352
- var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
5816
+ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
4353
5817
  $ZodString.init(inst, def);
4354
- ZodMiniType.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));
4355
5868
  });
4356
5869
  function string2(params) {
4357
- return _string(ZodMiniString, params);
5870
+ return _string(ZodString, params);
4358
5871
  }
4359
- var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
5872
+ var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
4360
5873
  $ZodStringFormat.init(inst, def);
4361
- ZodMiniString.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);
5879
+ });
5880
+ var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
5881
+ $ZodGUID.init(inst, def);
5882
+ ZodStringFormat.init(inst, def);
4362
5883
  });
4363
- var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
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) => {
4364
5889
  $ZodURL.init(inst, def);
4365
- ZodMiniStringFormat.init(inst, def);
5890
+ ZodStringFormat.init(inst, def);
4366
5891
  });
4367
5892
  function url(params) {
4368
- return _url(ZodMiniURL, params);
5893
+ return _url(ZodURL, params);
4369
5894
  }
4370
- var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
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) => {
4371
5956
  $ZodBoolean.init(inst, def);
4372
- ZodMiniType.init(inst, def);
5957
+ ZodType.init(inst, def);
4373
5958
  });
4374
5959
  function boolean2(params) {
4375
- return _boolean(ZodMiniBoolean, params);
5960
+ return _boolean(ZodBoolean, params);
4376
5961
  }
4377
- var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
5962
+ var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
4378
5963
  $ZodAny.init(inst, def);
4379
- ZodMiniType.init(inst, def);
5964
+ ZodType.init(inst, def);
4380
5965
  });
4381
5966
  function any() {
4382
- return _any(ZodMiniAny);
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);
4383
5982
  }
4384
- var ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
5983
+ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
4385
5984
  $ZodArray.init(inst, def);
4386
- ZodMiniType.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;
4387
5992
  });
4388
5993
  function array(element, params) {
4389
- return new ZodMiniArray({
4390
- type: "array",
4391
- element,
4392
- ...util_exports.normalizeParams(params)
4393
- });
5994
+ return _array(ZodArray, element, params);
4394
5995
  }
4395
- var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
4396
- $ZodObject.init(inst, def);
4397
- ZodMiniType.init(inst, def);
5996
+ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
5997
+ $ZodObjectJIT.init(inst, def);
5998
+ ZodType.init(inst, def);
4398
5999
  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]);
4399
6017
  });
4400
6018
  function object(shape, params) {
4401
6019
  const def = {
4402
6020
  type: "object",
4403
6021
  get shape() {
4404
- util_exports.assignProp(this, "shape", { ...shape });
6022
+ util_exports.assignProp(this, "shape", shape ? util_exports.objectClone(shape) : {});
4405
6023
  return this.shape;
4406
6024
  },
4407
6025
  ...util_exports.normalizeParams(params)
4408
6026
  };
4409
- return new ZodMiniObject(def);
6027
+ return new ZodObject(def);
4410
6028
  }
4411
- var ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
6029
+ var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
4412
6030
  $ZodUnion.init(inst, def);
4413
- ZodMiniType.init(inst, def);
6031
+ ZodType.init(inst, def);
6032
+ inst.options = def.options;
4414
6033
  });
4415
6034
  function union(options, params) {
4416
- return new ZodMiniUnion({
6035
+ return new ZodUnion({
4417
6036
  type: "union",
4418
6037
  options,
4419
6038
  ...util_exports.normalizeParams(params)
4420
6039
  });
4421
6040
  }
4422
- var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
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) => {
4423
6053
  $ZodRecord.init(inst, def);
4424
- ZodMiniType.init(inst, def);
6054
+ ZodType.init(inst, def);
6055
+ inst.keyType = def.keyType;
6056
+ inst.valueType = def.valueType;
4425
6057
  });
4426
6058
  function record(keyType, valueType, params) {
4427
- return new ZodMiniRecord({
6059
+ return new ZodRecord({
4428
6060
  type: "record",
4429
6061
  keyType,
4430
6062
  valueType,
4431
6063
  ...util_exports.normalizeParams(params)
4432
6064
  });
4433
6065
  }
4434
- var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
6066
+ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
4435
6067
  $ZodEnum.init(inst, def);
4436
- ZodMiniType.init(inst, def);
6068
+ ZodType.init(inst, def);
6069
+ inst.enum = def.entries;
4437
6070
  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
+ };
4438
6102
  });
4439
6103
  function _enum(values, params) {
4440
6104
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
4441
- return new ZodMiniEnum({
6105
+ return new ZodEnum({
4442
6106
  type: "enum",
4443
6107
  entries,
4444
6108
  ...util_exports.normalizeParams(params)
4445
6109
  });
4446
6110
  }
4447
- var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
6111
+ var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
4448
6112
  $ZodLiteral.init(inst, def);
4449
- ZodMiniType.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
+ });
4450
6123
  });
4451
6124
  function literal(value, params) {
4452
- return new ZodMiniLiteral({
6125
+ return new ZodLiteral({
4453
6126
  type: "literal",
4454
6127
  values: Array.isArray(value) ? value : [value],
4455
6128
  ...util_exports.normalizeParams(params)
4456
6129
  });
4457
6130
  }
4458
- var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
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) => {
4459
6169
  $ZodOptional.init(inst, def);
4460
- ZodMiniType.init(inst, def);
6170
+ ZodType.init(inst, def);
6171
+ inst.unwrap = () => inst._zod.def.innerType;
4461
6172
  });
4462
6173
  function optional(innerType) {
4463
- return new ZodMiniOptional({
6174
+ return new ZodOptional({
4464
6175
  type: "optional",
4465
6176
  innerType
4466
6177
  });
4467
6178
  }
4468
- var ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def) => {
6179
+ var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
4469
6180
  $ZodNullable.init(inst, def);
4470
- ZodMiniType.init(inst, def);
6181
+ ZodType.init(inst, def);
6182
+ inst.unwrap = () => inst._zod.def.innerType;
4471
6183
  });
4472
6184
  function nullable(innerType) {
4473
- return new ZodMiniNullable({
6185
+ return new ZodNullable({
4474
6186
  type: "nullable",
4475
6187
  innerType
4476
6188
  });
4477
6189
  }
4478
- var ZodMiniDefault = /* @__PURE__ */ $constructor("ZodMiniDefault", (inst, def) => {
6190
+ var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
4479
6191
  $ZodDefault.init(inst, def);
4480
- ZodMiniType.init(inst, def);
6192
+ ZodType.init(inst, def);
6193
+ inst.unwrap = () => inst._zod.def.innerType;
6194
+ inst.removeDefault = inst.unwrap;
4481
6195
  });
4482
6196
  function _default(innerType, defaultValue) {
4483
- return new ZodMiniDefault({
6197
+ return new ZodDefault({
4484
6198
  type: "default",
4485
6199
  innerType,
4486
6200
  get defaultValue() {
@@ -4488,15 +6202,92 @@ function _default(innerType, defaultValue) {
4488
6202
  }
4489
6203
  });
4490
6204
  }
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
+ }
4491
6279
 
4492
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/mini/checks.js
6280
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/compat.js
4493
6281
  init_esm_shims();
6282
+ var ZodFirstPartyTypeKind;
6283
+ /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
6284
+ })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
4494
6285
 
4495
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/mini/iso.js
6286
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/coerce.js
4496
6287
  init_esm_shims();
4497
6288
 
4498
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/mini/coerce.js
4499
- init_esm_shims();
6289
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/external.js
6290
+ config(en_default());
4500
6291
 
4501
6292
  // ../config/src/schema.ts
4502
6293
  var schemaRegistry = registry();
@@ -5859,15 +7650,15 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
5859
7650
  await workspaceConfigSchema.parseAsync(configInput)
5860
7651
  );
5861
7652
  result.workspaceRoot ??= _workspaceRoot;
5862
- } catch (error) {
7653
+ } catch (error2) {
5863
7654
  throw new Error(
5864
- `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
7655
+ `Failed to parse Storm Workspace configuration${error2?.message ? `: ${error2.message}` : ""}
5865
7656
 
5866
7657
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
5867
7658
  configInput
5868
7659
  )}`,
5869
7660
  {
5870
- cause: error
7661
+ cause: error2
5871
7662
  }
5872
7663
  );
5873
7664
  }
@@ -5919,10 +7710,10 @@ ${formatLogMessage(config3)}`,
5919
7710
  );
5920
7711
  }
5921
7712
  return config3;
5922
- } catch (error) {
7713
+ } catch (error2) {
5923
7714
  if (!skipLogs) {
5924
7715
  writeWarning(
5925
- `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
7716
+ `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error2}`,
5926
7717
  { logLevel: "all" }
5927
7718
  );
5928
7719
  }