@ht-rnd/json-schema-editor 2.0.4 → 2.0.5

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.
@@ -1,5 +1,5 @@
1
- import fe, { useRef as vs, useMemo as Gi, useCallback as Je, useState as gn, useEffect as _n } from "react";
2
- const Hi = ["string", "integer", "number", "boolean", "object", "array"], iv = [...Hi, "ref"], cv = ["int-32", "int-64"], uv = ["float", "double", "big-decimal"], dv = [
1
+ import fe, { useRef as vs, useMemo as Hi, useCallback as Je, useState as gn, useEffect as _n } from "react";
2
+ const Bi = ["string", "integer", "number", "boolean", "object", "array"], cv = [...Bi, "ref"], uv = ["int-32", "int-64"], dv = ["float", "double", "big-decimal"], lv = [
3
3
  "date",
4
4
  "date-time",
5
5
  "local-date-time",
@@ -20,34 +20,34 @@ const Hi = ["string", "integer", "number", "boolean", "object", "array"], iv = [
20
20
  "json-pointer",
21
21
  "regex",
22
22
  "uuid"
23
- ], Va = "http://json-schema.org/draft/2020-12/schema", lv = () => ({
23
+ ], Va = "http://json-schema.org/draft/2020-12/schema", fv = () => ({
24
24
  type: "object",
25
25
  $schema: Va,
26
26
  additionalProperties: !0
27
- }), fv = () => ({
27
+ }), mv = () => ({
28
28
  type: "array",
29
29
  $schema: Va,
30
30
  items: { type: "string" }
31
- }), mv = (e) => ({
31
+ }), hv = (e) => ({
32
32
  id: e,
33
33
  key: `field_${e}`,
34
34
  isRequired: !1,
35
35
  schema: { type: "string" }
36
- }), Bi = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
36
+ }), Wi = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
37
37
  let nt = (e = 21) => {
38
38
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
39
39
  for (; e--; )
40
- t += Bi[r[e] & 63];
40
+ t += Wi[r[e] & 63];
41
41
  return t;
42
42
  };
43
- const Wi = (e) => e ? e.includes("draft-04") ? "draft04" : e.includes("draft-07") || e.includes("draft-06") ? "legacy" : "modern" : "modern", Yi = ["enumEnabled", "enumInput", "isModifiable"], Xi = (e, t) => {
43
+ const Yi = (e) => e ? e.includes("draft-04") ? "draft04" : e.includes("draft-07") || e.includes("draft-06") ? "legacy" : "modern" : "modern", Xi = ["enumEnabled", "enumInput", "isModifiable"], Qi = (e, t) => {
44
44
  const r = { ...e };
45
45
  if (r.enumEnabled && Array.isArray(r.enumInput) && r.enumInput.length > 0) {
46
46
  let n = r.enumInput;
47
47
  r.type === "number" ? n = r.enumInput.map(Number).filter((s) => !Number.isNaN(s)) : r.type === "integer" && (n = r.enumInput.map(Number).filter((s) => Number.isInteger(s))), n.length > 0 && (r.enum = n);
48
48
  }
49
49
  r.exclusiveMin != null && (t === "draft04" ? (r.minimum = r.exclusiveMin, r.exclusiveMinimum = !0) : r.exclusiveMinimum = r.exclusiveMin, delete r.exclusiveMin), r.exclusiveMax != null && (t === "draft04" ? (r.maximum = r.exclusiveMax, r.exclusiveMaximum = !0) : r.exclusiveMaximum = r.exclusiveMax, delete r.exclusiveMax), (r.format === "none" || r.format === "") && delete r.format;
50
- for (const n of Yi)
50
+ for (const n of Xi)
51
51
  delete r[n];
52
52
  return r;
53
53
  }, gs = (e) => {
@@ -64,14 +64,14 @@ const Wi = (e) => e ? e.includes("draft-04") ? "draft04" : e.includes("draft-07"
64
64
  m !== void 0 && (c[u] = m);
65
65
  }
66
66
  return c;
67
- }, r = Wi(e.root.$schema), n = (i, c) => {
67
+ }, r = Yi(e.root.$schema), n = (i, c) => {
68
68
  if (i.type === "ref" && i.$ref)
69
69
  return t({
70
70
  $ref: i.$ref,
71
71
  ...i.title && { title: i.title },
72
72
  ...i.description && { description: i.description }
73
73
  });
74
- const u = Xi({ ...i }, c);
74
+ const u = Qi({ ...i }, c);
75
75
  if (u.type === "ref" && delete u.type, Array.isArray(u.properties)) {
76
76
  const m = {}, v = [];
77
77
  u.properties.forEach((l) => {
@@ -89,7 +89,16 @@ const Wi = (e) => e ? e.includes("draft-04") ? "draft04" : e.includes("draft-07"
89
89
  }), r !== "modern" ? s.definitions = i : s.$defs = i;
90
90
  }
91
91
  return s;
92
- }, Qi = (e) => {
92
+ }, qa = (e) => {
93
+ if (!e || typeof e != "object" || Array.isArray(e)) return e;
94
+ const t = { ...e };
95
+ for (const r of ["properties", "$defs", "definitions"])
96
+ t[r] === null ? delete t[r] : t[r] && typeof t[r] == "object" && !Array.isArray(t[r]) && (t[r] = Object.fromEntries(
97
+ Object.entries(t[r]).map(([n, s]) => [n, qa(s)])
98
+ ));
99
+ return t.items === null && delete t.items, t;
100
+ }, ec = (e) => {
101
+ e = qa(e);
93
102
  const t = (v) => {
94
103
  const l = { ...v };
95
104
  if (l.$ref && (l.type = "ref"), Array.isArray(l.enum) && l.enum.length > 0 && (l.enumEnabled = !0, l.enumInput = l.enum.map((h) => String(h))), l.exclusiveMinimum != null && (typeof l.exclusiveMinimum == "boolean" ? l.exclusiveMinimum === !0 && l.minimum != null && (l.exclusiveMin = l.minimum, delete l.minimum) : l.exclusiveMin = l.exclusiveMinimum, delete l.exclusiveMinimum), l.exclusiveMaximum != null && (typeof l.exclusiveMaximum == "boolean" ? l.exclusiveMaximum === !0 && l.maximum != null && (l.exclusiveMax = l.maximum, delete l.maximum) : l.exclusiveMax = l.exclusiveMaximum, delete l.exclusiveMaximum), typeof l.properties == "object" && !Array.isArray(l.properties)) {
@@ -161,21 +170,21 @@ function D(e, t, r) {
161
170
  value: (i) => r?.Parent && i instanceof r.Parent ? !0 : i?._zod?.traits?.has(e)
162
171
  }), Object.defineProperty(a, "name", { value: e }), a;
163
172
  }
164
- class jt extends Error {
173
+ class Ot extends Error {
165
174
  constructor() {
166
175
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
167
176
  }
168
177
  }
169
- class qa extends Error {
178
+ class Fa extends Error {
170
179
  constructor(t) {
171
180
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
172
181
  }
173
182
  }
174
- const Fa = {};
183
+ const Za = {};
175
184
  function ut(e) {
176
- return Fa;
185
+ return Za;
177
186
  }
178
- function Za(e) {
187
+ function Ua(e) {
179
188
  const t = Object.values(e).filter((n) => typeof n == "number");
180
189
  return Object.entries(e).filter(([n, s]) => t.indexOf(+n) === -1).map(([n, s]) => s);
181
190
  }
@@ -199,7 +208,7 @@ function es(e) {
199
208
  const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
200
209
  return e.slice(t, r);
201
210
  }
202
- function ec(e, t) {
211
+ function tc(e, t) {
203
212
  const r = (e.toString().split(".")[1] || "").length, n = t.toString();
204
213
  let s = (n.split(".")[1] || "").length;
205
214
  if (s === 0 && /\d?e-\d?/.test(n)) {
@@ -245,15 +254,15 @@ function lt(...e) {
245
254
  function $s(e) {
246
255
  return JSON.stringify(e);
247
256
  }
248
- function tc(e) {
257
+ function rc(e) {
249
258
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
250
259
  }
251
- const Ua = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
260
+ const xa = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
252
261
  };
253
262
  function Gr(e) {
254
263
  return typeof e == "object" && e !== null && !Array.isArray(e);
255
264
  }
256
- const rc = Xn(() => {
265
+ const nc = Xn(() => {
257
266
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
258
267
  return !1;
259
268
  try {
@@ -272,10 +281,10 @@ function Rt(e) {
272
281
  const r = t.prototype;
273
282
  return !(Gr(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
274
283
  }
275
- function xa(e) {
284
+ function La(e) {
276
285
  return Rt(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
277
286
  }
278
- const nc = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
287
+ const sc = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
279
288
  function rn(e) {
280
289
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
281
290
  }
@@ -296,17 +305,17 @@ function ee(e) {
296
305
  }
297
306
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
298
307
  }
299
- function sc(e) {
308
+ function oc(e) {
300
309
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
301
310
  }
302
- const oc = {
311
+ const ac = {
303
312
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
304
313
  int32: [-2147483648, 2147483647],
305
314
  uint32: [0, 4294967295],
306
315
  float32: [-34028234663852886e22, 34028234663852886e22],
307
316
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
308
317
  };
309
- function ac(e, t) {
318
+ function ic(e, t) {
310
319
  const r = e._zod.def, n = r.checks;
311
320
  if (n && n.length > 0)
312
321
  throw new Error(".pick() cannot be used on object schemas containing refinements");
@@ -324,7 +333,7 @@ function ac(e, t) {
324
333
  });
325
334
  return ft(e, o);
326
335
  }
327
- function ic(e, t) {
336
+ function cc(e, t) {
328
337
  const r = e._zod.def, n = r.checks;
329
338
  if (n && n.length > 0)
330
339
  throw new Error(".omit() cannot be used on object schemas containing refinements");
@@ -342,7 +351,7 @@ function ic(e, t) {
342
351
  });
343
352
  return ft(e, o);
344
353
  }
345
- function cc(e, t) {
354
+ function uc(e, t) {
346
355
  if (!Rt(t))
347
356
  throw new Error("Invalid input to extend: expected a plain object");
348
357
  const r = e._zod.def.checks;
@@ -360,7 +369,7 @@ function cc(e, t) {
360
369
  });
361
370
  return ft(e, s);
362
371
  }
363
- function uc(e, t) {
372
+ function dc(e, t) {
364
373
  if (!Rt(t))
365
374
  throw new Error("Invalid input to safeExtend: expected a plain object");
366
375
  const r = lt(e._zod.def, {
@@ -371,7 +380,7 @@ function uc(e, t) {
371
380
  });
372
381
  return ft(e, r);
373
382
  }
374
- function dc(e, t) {
383
+ function lc(e, t) {
375
384
  const r = lt(e._zod.def, {
376
385
  get shape() {
377
386
  const n = { ...e._zod.def.shape, ...t._zod.def.shape };
@@ -385,7 +394,7 @@ function dc(e, t) {
385
394
  });
386
395
  return ft(e, r);
387
396
  }
388
- function lc(e, t, r) {
397
+ function fc(e, t, r) {
389
398
  const s = t._zod.def.checks;
390
399
  if (s && s.length > 0)
391
400
  throw new Error(".partial() cannot be used on object schemas containing refinements");
@@ -413,7 +422,7 @@ function lc(e, t, r) {
413
422
  });
414
423
  return ft(t, a);
415
424
  }
416
- function fc(e, t, r) {
425
+ function mc(e, t, r) {
417
426
  const n = lt(t._zod.def, {
418
427
  get shape() {
419
428
  const s = t._zod.def.shape, o = { ...s };
@@ -474,7 +483,7 @@ function Ft(...e) {
474
483
  inst: n
475
484
  } : { ...t };
476
485
  }
477
- const La = (e, t) => {
486
+ const Ka = (e, t) => {
478
487
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
479
488
  value: e._zod,
480
489
  enumerable: !1
@@ -485,14 +494,14 @@ const La = (e, t) => {
485
494
  value: () => e.message,
486
495
  enumerable: !1
487
496
  });
488
- }, rs = D("$ZodError", La), nn = D("$ZodError", La, { Parent: Error });
489
- function mc(e, t = (r) => r.message) {
497
+ }, rs = D("$ZodError", Ka), nn = D("$ZodError", Ka, { Parent: Error });
498
+ function hc(e, t = (r) => r.message) {
490
499
  const r = {}, n = [];
491
500
  for (const s of e.issues)
492
501
  s.path.length > 0 ? (r[s.path[0]] = r[s.path[0]] || [], r[s.path[0]].push(t(s))) : n.push(t(s));
493
502
  return { formErrors: n, fieldErrors: r };
494
503
  }
495
- function hc(e, t = (r) => r.message) {
504
+ function pc(e, t = (r) => r.message) {
496
505
  const r = { _errors: [] }, n = (s) => {
497
506
  for (const o of s.issues)
498
507
  if (o.code === "invalid_union" && o.errors.length)
@@ -516,78 +525,78 @@ function hc(e, t = (r) => r.message) {
516
525
  const sn = (e) => (t, r, n, s) => {
517
526
  const o = n ? Object.assign(n, { async: !1 }) : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, o);
518
527
  if (a instanceof Promise)
519
- throw new jt();
528
+ throw new Ot();
520
529
  if (a.issues.length) {
521
530
  const i = new (s?.Err ?? e)(a.issues.map((c) => dt(c, o, ut())));
522
- throw Ua(i, s?.callee), i;
531
+ throw xa(i, s?.callee), i;
523
532
  }
524
533
  return a.value;
525
- }, pc = /* @__PURE__ */ sn(nn), on = (e) => async (t, r, n, s) => {
534
+ }, yc = /* @__PURE__ */ sn(nn), on = (e) => async (t, r, n, s) => {
526
535
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
527
536
  let a = t._zod.run({ value: r, issues: [] }, o);
528
537
  if (a instanceof Promise && (a = await a), a.issues.length) {
529
538
  const i = new (s?.Err ?? e)(a.issues.map((c) => dt(c, o, ut())));
530
- throw Ua(i, s?.callee), i;
539
+ throw xa(i, s?.callee), i;
531
540
  }
532
541
  return a.value;
533
- }, yc = /* @__PURE__ */ on(nn), an = (e) => (t, r, n) => {
542
+ }, vc = /* @__PURE__ */ on(nn), an = (e) => (t, r, n) => {
534
543
  const s = n ? { ...n, async: !1 } : { async: !1 }, o = t._zod.run({ value: r, issues: [] }, s);
535
544
  if (o instanceof Promise)
536
- throw new jt();
545
+ throw new Ot();
537
546
  return o.issues.length ? {
538
547
  success: !1,
539
548
  error: new (e ?? rs)(o.issues.map((a) => dt(a, s, ut())))
540
549
  } : { success: !0, data: o.value };
541
- }, vc = /* @__PURE__ */ an(nn), cn = (e) => async (t, r, n) => {
550
+ }, gc = /* @__PURE__ */ an(nn), cn = (e) => async (t, r, n) => {
542
551
  const s = n ? Object.assign(n, { async: !0 }) : { async: !0 };
543
552
  let o = t._zod.run({ value: r, issues: [] }, s);
544
553
  return o instanceof Promise && (o = await o), o.issues.length ? {
545
554
  success: !1,
546
555
  error: new e(o.issues.map((a) => dt(a, s, ut())))
547
556
  } : { success: !0, data: o.value };
548
- }, gc = /* @__PURE__ */ cn(nn), _c = (e) => (t, r, n) => {
557
+ }, _c = /* @__PURE__ */ cn(nn), $c = (e) => (t, r, n) => {
549
558
  const s = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
550
559
  return sn(e)(t, r, s);
551
- }, $c = (e) => (t, r, n) => sn(e)(t, r, n), bc = (e) => async (t, r, n) => {
560
+ }, bc = (e) => (t, r, n) => sn(e)(t, r, n), wc = (e) => async (t, r, n) => {
552
561
  const s = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
553
562
  return on(e)(t, r, s);
554
- }, wc = (e) => async (t, r, n) => on(e)(t, r, n), Sc = (e) => (t, r, n) => {
563
+ }, Sc = (e) => async (t, r, n) => on(e)(t, r, n), Ec = (e) => (t, r, n) => {
555
564
  const s = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
556
565
  return an(e)(t, r, s);
557
- }, Ec = (e) => (t, r, n) => an(e)(t, r, n), kc = (e) => async (t, r, n) => {
566
+ }, kc = (e) => (t, r, n) => an(e)(t, r, n), Pc = (e) => async (t, r, n) => {
558
567
  const s = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
559
568
  return cn(e)(t, r, s);
560
- }, Pc = (e) => async (t, r, n) => cn(e)(t, r, n), Oc = /^[cC][^\s-]{8,}$/, jc = /^[0-9a-z]+$/, Ac = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Rc = /^[0-9a-vA-V]{20}$/, Nc = /^[A-Za-z0-9]{27}$/, zc = /^[a-zA-Z0-9_-]{21}$/, Ic = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Tc = /^([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})$/, bs = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([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)$/, Cc = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Mc = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
561
- function Dc() {
562
- return new RegExp(Mc, "u");
569
+ }, jc = (e) => async (t, r, n) => cn(e)(t, r, n), Oc = /^[cC][^\s-]{8,}$/, Ac = /^[0-9a-z]+$/, Rc = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Nc = /^[0-9a-vA-V]{20}$/, zc = /^[A-Za-z0-9]{27}$/, Ic = /^[a-zA-Z0-9_-]{21}$/, Tc = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Cc = /^([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})$/, bs = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([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)$/, Mc = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Dc = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
570
+ function Vc() {
571
+ return new RegExp(Dc, "u");
563
572
  }
564
- const Vc = /^(?:(?: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])$/, qc = /^(([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}|:))$/, Fc = /^((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])$/, Zc = /^(([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])$/, Uc = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ka = /^[A-Za-z0-9_-]*$/, xc = /^\+[1-9]\d{6,14}$/, Ja = "(?:(?:\\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])))", Lc = /* @__PURE__ */ new RegExp(`^${Ja}$`);
565
- function Ga(e) {
573
+ const qc = /^(?:(?: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])$/, Fc = /^(([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}|:))$/, Zc = /^((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])$/, Uc = /^(([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])$/, xc = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ja = /^[A-Za-z0-9_-]*$/, Lc = /^\+[1-9]\d{6,14}$/, Ga = "(?:(?:\\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])))", Kc = /* @__PURE__ */ new RegExp(`^${Ga}$`);
574
+ function Ha(e) {
566
575
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
567
576
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
568
577
  }
569
- function Kc(e) {
570
- return new RegExp(`^${Ga(e)}$`);
571
- }
572
578
  function Jc(e) {
573
- const t = Ga({ precision: e.precision }), r = ["Z"];
579
+ return new RegExp(`^${Ha(e)}$`);
580
+ }
581
+ function Gc(e) {
582
+ const t = Ha({ precision: e.precision }), r = ["Z"];
574
583
  e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
575
584
  const n = `${t}(?:${r.join("|")})`;
576
- return new RegExp(`^${Ja}T(?:${n})$`);
585
+ return new RegExp(`^${Ga}T(?:${n})$`);
577
586
  }
578
- const Gc = (e) => {
587
+ const Hc = (e) => {
579
588
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
580
589
  return new RegExp(`^${t}$`);
581
- }, Hc = /^-?\d+$/, Ha = /^-?\d+(?:\.\d+)?$/, Bc = /^(?:true|false)$/i, Wc = /^[^A-Z]*$/, Yc = /^[^a-z]*$/, Ve = /* @__PURE__ */ D("$ZodCheck", (e, t) => {
590
+ }, Bc = /^-?\d+$/, Ba = /^-?\d+(?:\.\d+)?$/, Wc = /^(?:true|false)$/i, Yc = /^[^A-Z]*$/, Xc = /^[^a-z]*$/, Ve = /* @__PURE__ */ D("$ZodCheck", (e, t) => {
582
591
  var r;
583
592
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
584
- }), Ba = {
593
+ }), Wa = {
585
594
  number: "number",
586
595
  bigint: "bigint",
587
596
  object: "date"
588
- }, Wa = /* @__PURE__ */ D("$ZodCheckLessThan", (e, t) => {
597
+ }, Ya = /* @__PURE__ */ D("$ZodCheckLessThan", (e, t) => {
589
598
  Ve.init(e, t);
590
- const r = Ba[typeof t.value];
599
+ const r = Wa[typeof t.value];
591
600
  e._zod.onattach.push((n) => {
592
601
  const s = n._zod.bag, o = (t.inclusive ? s.maximum : s.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
593
602
  t.value < o && (t.inclusive ? s.maximum = t.value : s.exclusiveMaximum = t.value);
@@ -602,9 +611,9 @@ const Gc = (e) => {
602
611
  continue: !t.abort
603
612
  });
604
613
  };
605
- }), Ya = /* @__PURE__ */ D("$ZodCheckGreaterThan", (e, t) => {
614
+ }), Xa = /* @__PURE__ */ D("$ZodCheckGreaterThan", (e, t) => {
606
615
  Ve.init(e, t);
607
- const r = Ba[typeof t.value];
616
+ const r = Wa[typeof t.value];
608
617
  e._zod.onattach.push((n) => {
609
618
  const s = n._zod.bag, o = (t.inclusive ? s.minimum : s.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
610
619
  t.value > o && (t.inclusive ? s.minimum = t.value : s.exclusiveMinimum = t.value);
@@ -619,14 +628,14 @@ const Gc = (e) => {
619
628
  continue: !t.abort
620
629
  });
621
630
  };
622
- }), Xc = /* @__PURE__ */ D("$ZodCheckMultipleOf", (e, t) => {
631
+ }), Qc = /* @__PURE__ */ D("$ZodCheckMultipleOf", (e, t) => {
623
632
  Ve.init(e, t), e._zod.onattach.push((r) => {
624
633
  var n;
625
634
  (n = r._zod.bag).multipleOf ?? (n.multipleOf = t.value);
626
635
  }), e._zod.check = (r) => {
627
636
  if (typeof r.value != typeof t.value)
628
637
  throw new Error("Cannot mix number and bigint in multiple_of check.");
629
- (typeof r.value == "bigint" ? r.value % t.value === BigInt(0) : ec(r.value, t.value) === 0) || r.issues.push({
638
+ (typeof r.value == "bigint" ? r.value % t.value === BigInt(0) : tc(r.value, t.value) === 0) || r.issues.push({
630
639
  origin: typeof r.value,
631
640
  code: "not_multiple_of",
632
641
  divisor: t.value,
@@ -635,12 +644,12 @@ const Gc = (e) => {
635
644
  continue: !t.abort
636
645
  });
637
646
  };
638
- }), Qc = /* @__PURE__ */ D("$ZodCheckNumberFormat", (e, t) => {
647
+ }), eu = /* @__PURE__ */ D("$ZodCheckNumberFormat", (e, t) => {
639
648
  Ve.init(e, t), t.format = t.format || "float64";
640
- const r = t.format?.includes("int"), n = r ? "int" : "number", [s, o] = oc[t.format];
649
+ const r = t.format?.includes("int"), n = r ? "int" : "number", [s, o] = ac[t.format];
641
650
  e._zod.onattach.push((a) => {
642
651
  const i = a._zod.bag;
643
- i.format = t.format, i.minimum = s, i.maximum = o, r && (i.pattern = Hc);
652
+ i.format = t.format, i.minimum = s, i.maximum = o, r && (i.pattern = Bc);
644
653
  }), e._zod.check = (a) => {
645
654
  const i = a.value;
646
655
  if (r) {
@@ -696,7 +705,7 @@ const Gc = (e) => {
696
705
  continue: !t.abort
697
706
  });
698
707
  };
699
- }), eu = /* @__PURE__ */ D("$ZodCheckMaxLength", (e, t) => {
708
+ }), tu = /* @__PURE__ */ D("$ZodCheckMaxLength", (e, t) => {
700
709
  var r;
701
710
  Ve.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
702
711
  const s = n.value;
@@ -719,7 +728,7 @@ const Gc = (e) => {
719
728
  continue: !t.abort
720
729
  });
721
730
  };
722
- }), tu = /* @__PURE__ */ D("$ZodCheckMinLength", (e, t) => {
731
+ }), ru = /* @__PURE__ */ D("$ZodCheckMinLength", (e, t) => {
723
732
  var r;
724
733
  Ve.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
725
734
  const s = n.value;
@@ -742,7 +751,7 @@ const Gc = (e) => {
742
751
  continue: !t.abort
743
752
  });
744
753
  };
745
- }), ru = /* @__PURE__ */ D("$ZodCheckLengthEquals", (e, t) => {
754
+ }), nu = /* @__PURE__ */ D("$ZodCheckLengthEquals", (e, t) => {
746
755
  var r;
747
756
  Ve.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
748
757
  const s = n.value;
@@ -782,7 +791,7 @@ const Gc = (e) => {
782
791
  });
783
792
  }) : (n = e._zod).check ?? (n.check = () => {
784
793
  });
785
- }), nu = /* @__PURE__ */ D("$ZodCheckRegex", (e, t) => {
794
+ }), su = /* @__PURE__ */ D("$ZodCheckRegex", (e, t) => {
786
795
  un.init(e, t), e._zod.check = (r) => {
787
796
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
788
797
  origin: "string",
@@ -794,11 +803,11 @@ const Gc = (e) => {
794
803
  continue: !t.abort
795
804
  });
796
805
  };
797
- }), su = /* @__PURE__ */ D("$ZodCheckLowerCase", (e, t) => {
798
- t.pattern ?? (t.pattern = Wc), un.init(e, t);
799
- }), ou = /* @__PURE__ */ D("$ZodCheckUpperCase", (e, t) => {
806
+ }), ou = /* @__PURE__ */ D("$ZodCheckLowerCase", (e, t) => {
800
807
  t.pattern ?? (t.pattern = Yc), un.init(e, t);
801
- }), au = /* @__PURE__ */ D("$ZodCheckIncludes", (e, t) => {
808
+ }), au = /* @__PURE__ */ D("$ZodCheckUpperCase", (e, t) => {
809
+ t.pattern ?? (t.pattern = Xc), un.init(e, t);
810
+ }), iu = /* @__PURE__ */ D("$ZodCheckIncludes", (e, t) => {
802
811
  Ve.init(e, t);
803
812
  const r = rn(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
804
813
  t.pattern = n, e._zod.onattach.push((s) => {
@@ -815,7 +824,7 @@ const Gc = (e) => {
815
824
  continue: !t.abort
816
825
  });
817
826
  };
818
- }), iu = /* @__PURE__ */ D("$ZodCheckStartsWith", (e, t) => {
827
+ }), cu = /* @__PURE__ */ D("$ZodCheckStartsWith", (e, t) => {
819
828
  Ve.init(e, t);
820
829
  const r = new RegExp(`^${rn(t.prefix)}.*`);
821
830
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -832,7 +841,7 @@ const Gc = (e) => {
832
841
  continue: !t.abort
833
842
  });
834
843
  };
835
- }), cu = /* @__PURE__ */ D("$ZodCheckEndsWith", (e, t) => {
844
+ }), uu = /* @__PURE__ */ D("$ZodCheckEndsWith", (e, t) => {
836
845
  Ve.init(e, t);
837
846
  const r = new RegExp(`.*${rn(t.suffix)}$`);
838
847
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -849,12 +858,12 @@ const Gc = (e) => {
849
858
  continue: !t.abort
850
859
  });
851
860
  };
852
- }), uu = /* @__PURE__ */ D("$ZodCheckOverwrite", (e, t) => {
861
+ }), du = /* @__PURE__ */ D("$ZodCheckOverwrite", (e, t) => {
853
862
  Ve.init(e, t), e._zod.check = (r) => {
854
863
  r.value = t.tx(r.value);
855
864
  };
856
865
  });
857
- class du {
866
+ class lu {
858
867
  constructor(t = []) {
859
868
  this.content = [], this.indent = 0, this && (this.args = t);
860
869
  }
@@ -877,13 +886,13 @@ class du {
877
886
  `));
878
887
  }
879
888
  }
880
- const lu = {
889
+ const fu = {
881
890
  major: 4,
882
891
  minor: 3,
883
892
  patch: 6
884
893
  }, _e = /* @__PURE__ */ D("$ZodType", (e, t) => {
885
894
  var r;
886
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = lu;
895
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = fu;
887
896
  const n = [...e._zod.def.checks ?? []];
888
897
  e._zod.traits.has("$ZodCheck") && n.unshift(e);
889
898
  for (const s of n)
@@ -904,7 +913,7 @@ const lu = {
904
913
  continue;
905
914
  const l = a.issues.length, h = v._zod.check(a);
906
915
  if (h instanceof Promise && c?.async === !1)
907
- throw new jt();
916
+ throw new Ot();
908
917
  if (m || h instanceof Promise)
909
918
  m = (m ?? Promise.resolve()).then(async () => {
910
919
  await h, a.issues.length !== l && (u || (u = kt(a, l)));
@@ -922,7 +931,7 @@ const lu = {
922
931
  const u = s(i, n, c);
923
932
  if (u instanceof Promise) {
924
933
  if (c.async === !1)
925
- throw new jt();
934
+ throw new Ot();
926
935
  return u.then((m) => e._zod.parse(m, c));
927
936
  }
928
937
  return e._zod.parse(u, c);
@@ -937,7 +946,7 @@ const lu = {
937
946
  const c = e._zod.parse(a, i);
938
947
  if (c instanceof Promise) {
939
948
  if (i.async === !1)
940
- throw new jt();
949
+ throw new Ot();
941
950
  return c.then((u) => s(u, n, i));
942
951
  }
943
952
  return s(c, n, i);
@@ -946,17 +955,17 @@ const lu = {
946
955
  ue(e, "~standard", () => ({
947
956
  validate: (s) => {
948
957
  try {
949
- const o = vc(e, s);
958
+ const o = gc(e, s);
950
959
  return o.success ? { value: o.data } : { issues: o.error?.issues };
951
960
  } catch {
952
- return gc(e, s).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
961
+ return _c(e, s).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
953
962
  }
954
963
  },
955
964
  vendor: "zod",
956
965
  version: 1
957
966
  }));
958
967
  }), ns = /* @__PURE__ */ D("$ZodString", (e, t) => {
959
- _e.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Gc(e._zod.bag), e._zod.parse = (r, n) => {
968
+ _e.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Hc(e._zod.bag), e._zod.parse = (r, n) => {
960
969
  if (t.coerce)
961
970
  try {
962
971
  r.value = String(r.value);
@@ -971,9 +980,9 @@ const lu = {
971
980
  };
972
981
  }), $e = /* @__PURE__ */ D("$ZodStringFormat", (e, t) => {
973
982
  un.init(e, t), ns.init(e, t);
974
- }), fu = /* @__PURE__ */ D("$ZodGUID", (e, t) => {
975
- t.pattern ?? (t.pattern = Tc), $e.init(e, t);
976
- }), mu = /* @__PURE__ */ D("$ZodUUID", (e, t) => {
983
+ }), mu = /* @__PURE__ */ D("$ZodGUID", (e, t) => {
984
+ t.pattern ?? (t.pattern = Cc), $e.init(e, t);
985
+ }), hu = /* @__PURE__ */ D("$ZodUUID", (e, t) => {
977
986
  if (t.version) {
978
987
  const n = {
979
988
  v1: 1,
@@ -991,9 +1000,9 @@ const lu = {
991
1000
  } else
992
1001
  t.pattern ?? (t.pattern = bs());
993
1002
  $e.init(e, t);
994
- }), hu = /* @__PURE__ */ D("$ZodEmail", (e, t) => {
995
- t.pattern ?? (t.pattern = Cc), $e.init(e, t);
996
- }), pu = /* @__PURE__ */ D("$ZodURL", (e, t) => {
1003
+ }), pu = /* @__PURE__ */ D("$ZodEmail", (e, t) => {
1004
+ t.pattern ?? (t.pattern = Mc), $e.init(e, t);
1005
+ }), yu = /* @__PURE__ */ D("$ZodURL", (e, t) => {
997
1006
  $e.init(e, t), e._zod.check = (r) => {
998
1007
  try {
999
1008
  const n = r.value.trim(), s = new URL(n);
@@ -1025,32 +1034,32 @@ const lu = {
1025
1034
  });
1026
1035
  }
1027
1036
  };
1028
- }), yu = /* @__PURE__ */ D("$ZodEmoji", (e, t) => {
1029
- t.pattern ?? (t.pattern = Dc()), $e.init(e, t);
1030
- }), vu = /* @__PURE__ */ D("$ZodNanoID", (e, t) => {
1031
- t.pattern ?? (t.pattern = zc), $e.init(e, t);
1032
- }), gu = /* @__PURE__ */ D("$ZodCUID", (e, t) => {
1037
+ }), vu = /* @__PURE__ */ D("$ZodEmoji", (e, t) => {
1038
+ t.pattern ?? (t.pattern = Vc()), $e.init(e, t);
1039
+ }), gu = /* @__PURE__ */ D("$ZodNanoID", (e, t) => {
1040
+ t.pattern ?? (t.pattern = Ic), $e.init(e, t);
1041
+ }), _u = /* @__PURE__ */ D("$ZodCUID", (e, t) => {
1033
1042
  t.pattern ?? (t.pattern = Oc), $e.init(e, t);
1034
- }), _u = /* @__PURE__ */ D("$ZodCUID2", (e, t) => {
1035
- t.pattern ?? (t.pattern = jc), $e.init(e, t);
1036
- }), $u = /* @__PURE__ */ D("$ZodULID", (e, t) => {
1043
+ }), $u = /* @__PURE__ */ D("$ZodCUID2", (e, t) => {
1037
1044
  t.pattern ?? (t.pattern = Ac), $e.init(e, t);
1038
- }), bu = /* @__PURE__ */ D("$ZodXID", (e, t) => {
1045
+ }), bu = /* @__PURE__ */ D("$ZodULID", (e, t) => {
1039
1046
  t.pattern ?? (t.pattern = Rc), $e.init(e, t);
1040
- }), wu = /* @__PURE__ */ D("$ZodKSUID", (e, t) => {
1047
+ }), wu = /* @__PURE__ */ D("$ZodXID", (e, t) => {
1041
1048
  t.pattern ?? (t.pattern = Nc), $e.init(e, t);
1042
- }), Su = /* @__PURE__ */ D("$ZodISODateTime", (e, t) => {
1049
+ }), Su = /* @__PURE__ */ D("$ZodKSUID", (e, t) => {
1050
+ t.pattern ?? (t.pattern = zc), $e.init(e, t);
1051
+ }), Eu = /* @__PURE__ */ D("$ZodISODateTime", (e, t) => {
1052
+ t.pattern ?? (t.pattern = Gc(t)), $e.init(e, t);
1053
+ }), ku = /* @__PURE__ */ D("$ZodISODate", (e, t) => {
1054
+ t.pattern ?? (t.pattern = Kc), $e.init(e, t);
1055
+ }), Pu = /* @__PURE__ */ D("$ZodISOTime", (e, t) => {
1043
1056
  t.pattern ?? (t.pattern = Jc(t)), $e.init(e, t);
1044
- }), Eu = /* @__PURE__ */ D("$ZodISODate", (e, t) => {
1045
- t.pattern ?? (t.pattern = Lc), $e.init(e, t);
1046
- }), ku = /* @__PURE__ */ D("$ZodISOTime", (e, t) => {
1047
- t.pattern ?? (t.pattern = Kc(t)), $e.init(e, t);
1048
- }), Pu = /* @__PURE__ */ D("$ZodISODuration", (e, t) => {
1049
- t.pattern ?? (t.pattern = Ic), $e.init(e, t);
1057
+ }), ju = /* @__PURE__ */ D("$ZodISODuration", (e, t) => {
1058
+ t.pattern ?? (t.pattern = Tc), $e.init(e, t);
1050
1059
  }), Ou = /* @__PURE__ */ D("$ZodIPv4", (e, t) => {
1051
- t.pattern ?? (t.pattern = Vc), $e.init(e, t), e._zod.bag.format = "ipv4";
1052
- }), ju = /* @__PURE__ */ D("$ZodIPv6", (e, t) => {
1053
- t.pattern ?? (t.pattern = qc), $e.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (r) => {
1060
+ t.pattern ?? (t.pattern = qc), $e.init(e, t), e._zod.bag.format = "ipv4";
1061
+ }), Au = /* @__PURE__ */ D("$ZodIPv6", (e, t) => {
1062
+ t.pattern ?? (t.pattern = Fc), $e.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (r) => {
1054
1063
  try {
1055
1064
  new URL(`http://[${r.value}]`);
1056
1065
  } catch {
@@ -1063,10 +1072,10 @@ const lu = {
1063
1072
  });
1064
1073
  }
1065
1074
  };
1066
- }), Au = /* @__PURE__ */ D("$ZodCIDRv4", (e, t) => {
1067
- t.pattern ?? (t.pattern = Fc), $e.init(e, t);
1068
- }), Ru = /* @__PURE__ */ D("$ZodCIDRv6", (e, t) => {
1069
- t.pattern ?? (t.pattern = Zc), $e.init(e, t), e._zod.check = (r) => {
1075
+ }), Ru = /* @__PURE__ */ D("$ZodCIDRv4", (e, t) => {
1076
+ t.pattern ?? (t.pattern = Zc), $e.init(e, t);
1077
+ }), Nu = /* @__PURE__ */ D("$ZodCIDRv6", (e, t) => {
1078
+ t.pattern ?? (t.pattern = Uc), $e.init(e, t), e._zod.check = (r) => {
1070
1079
  const n = r.value.split("/");
1071
1080
  try {
1072
1081
  if (n.length !== 2)
@@ -1091,7 +1100,7 @@ const lu = {
1091
1100
  }
1092
1101
  };
1093
1102
  });
1094
- function Xa(e) {
1103
+ function Qa(e) {
1095
1104
  if (e === "")
1096
1105
  return !0;
1097
1106
  if (e.length % 4 !== 0)
@@ -1102,9 +1111,9 @@ function Xa(e) {
1102
1111
  return !1;
1103
1112
  }
1104
1113
  }
1105
- const Nu = /* @__PURE__ */ D("$ZodBase64", (e, t) => {
1106
- t.pattern ?? (t.pattern = Uc), $e.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => {
1107
- Xa(r.value) || r.issues.push({
1114
+ const zu = /* @__PURE__ */ D("$ZodBase64", (e, t) => {
1115
+ t.pattern ?? (t.pattern = xc), $e.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => {
1116
+ Qa(r.value) || r.issues.push({
1108
1117
  code: "invalid_format",
1109
1118
  format: "base64",
1110
1119
  input: r.value,
@@ -1113,15 +1122,15 @@ const Nu = /* @__PURE__ */ D("$ZodBase64", (e, t) => {
1113
1122
  });
1114
1123
  };
1115
1124
  });
1116
- function zu(e) {
1117
- if (!Ka.test(e))
1125
+ function Iu(e) {
1126
+ if (!Ja.test(e))
1118
1127
  return !1;
1119
1128
  const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1120
- return Xa(r);
1129
+ return Qa(r);
1121
1130
  }
1122
- const Iu = /* @__PURE__ */ D("$ZodBase64URL", (e, t) => {
1123
- t.pattern ?? (t.pattern = Ka), $e.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => {
1124
- zu(r.value) || r.issues.push({
1131
+ const Tu = /* @__PURE__ */ D("$ZodBase64URL", (e, t) => {
1132
+ t.pattern ?? (t.pattern = Ja), $e.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => {
1133
+ Iu(r.value) || r.issues.push({
1125
1134
  code: "invalid_format",
1126
1135
  format: "base64url",
1127
1136
  input: r.value,
@@ -1129,10 +1138,10 @@ const Iu = /* @__PURE__ */ D("$ZodBase64URL", (e, t) => {
1129
1138
  continue: !t.abort
1130
1139
  });
1131
1140
  };
1132
- }), Tu = /* @__PURE__ */ D("$ZodE164", (e, t) => {
1133
- t.pattern ?? (t.pattern = xc), $e.init(e, t);
1141
+ }), Cu = /* @__PURE__ */ D("$ZodE164", (e, t) => {
1142
+ t.pattern ?? (t.pattern = Lc), $e.init(e, t);
1134
1143
  });
1135
- function Cu(e, t = null) {
1144
+ function Mu(e, t = null) {
1136
1145
  try {
1137
1146
  const r = e.split(".");
1138
1147
  if (r.length !== 3)
@@ -1146,9 +1155,9 @@ function Cu(e, t = null) {
1146
1155
  return !1;
1147
1156
  }
1148
1157
  }
1149
- const Mu = /* @__PURE__ */ D("$ZodJWT", (e, t) => {
1158
+ const Du = /* @__PURE__ */ D("$ZodJWT", (e, t) => {
1150
1159
  $e.init(e, t), e._zod.check = (r) => {
1151
- Cu(r.value, t.alg) || r.issues.push({
1160
+ Mu(r.value, t.alg) || r.issues.push({
1152
1161
  code: "invalid_format",
1153
1162
  format: "jwt",
1154
1163
  input: r.value,
@@ -1156,8 +1165,8 @@ const Mu = /* @__PURE__ */ D("$ZodJWT", (e, t) => {
1156
1165
  continue: !t.abort
1157
1166
  });
1158
1167
  };
1159
- }), Qa = /* @__PURE__ */ D("$ZodNumber", (e, t) => {
1160
- _e.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Ha, e._zod.parse = (r, n) => {
1168
+ }), ei = /* @__PURE__ */ D("$ZodNumber", (e, t) => {
1169
+ _e.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Ba, e._zod.parse = (r, n) => {
1161
1170
  if (t.coerce)
1162
1171
  try {
1163
1172
  r.value = Number(r.value);
@@ -1175,10 +1184,10 @@ const Mu = /* @__PURE__ */ D("$ZodJWT", (e, t) => {
1175
1184
  ...o ? { received: o } : {}
1176
1185
  }), r;
1177
1186
  };
1178
- }), Du = /* @__PURE__ */ D("$ZodNumberFormat", (e, t) => {
1179
- Qc.init(e, t), Qa.init(e, t);
1180
- }), Vu = /* @__PURE__ */ D("$ZodBoolean", (e, t) => {
1181
- _e.init(e, t), e._zod.pattern = Bc, e._zod.parse = (r, n) => {
1187
+ }), Vu = /* @__PURE__ */ D("$ZodNumberFormat", (e, t) => {
1188
+ eu.init(e, t), ei.init(e, t);
1189
+ }), qu = /* @__PURE__ */ D("$ZodBoolean", (e, t) => {
1190
+ _e.init(e, t), e._zod.pattern = Wc, e._zod.parse = (r, n) => {
1182
1191
  if (t.coerce)
1183
1192
  try {
1184
1193
  r.value = !!r.value;
@@ -1192,11 +1201,11 @@ const Mu = /* @__PURE__ */ D("$ZodJWT", (e, t) => {
1192
1201
  inst: e
1193
1202
  }), r;
1194
1203
  };
1195
- }), qu = /* @__PURE__ */ D("$ZodAny", (e, t) => {
1204
+ }), Fu = /* @__PURE__ */ D("$ZodAny", (e, t) => {
1196
1205
  _e.init(e, t), e._zod.parse = (r) => r;
1197
- }), Fu = /* @__PURE__ */ D("$ZodUnknown", (e, t) => {
1206
+ }), Zu = /* @__PURE__ */ D("$ZodUnknown", (e, t) => {
1198
1207
  _e.init(e, t), e._zod.parse = (r) => r;
1199
- }), Zu = /* @__PURE__ */ D("$ZodNever", (e, t) => {
1208
+ }), Uu = /* @__PURE__ */ D("$ZodNever", (e, t) => {
1200
1209
  _e.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1201
1210
  expected: "never",
1202
1211
  code: "invalid_type",
@@ -1207,7 +1216,7 @@ const Mu = /* @__PURE__ */ D("$ZodJWT", (e, t) => {
1207
1216
  function ws(e, t, r) {
1208
1217
  e.issues.length && t.issues.push(...Pt(r, e.issues)), t.value[r] = e.value;
1209
1218
  }
1210
- const Uu = /* @__PURE__ */ D("$ZodArray", (e, t) => {
1219
+ const xu = /* @__PURE__ */ D("$ZodArray", (e, t) => {
1211
1220
  _e.init(e, t), e._zod.parse = (r, n) => {
1212
1221
  const s = r.value;
1213
1222
  if (!Array.isArray(s))
@@ -1237,12 +1246,12 @@ function Hr(e, t, r, n, s) {
1237
1246
  }
1238
1247
  e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1239
1248
  }
1240
- function ei(e) {
1249
+ function ti(e) {
1241
1250
  const t = Object.keys(e.shape);
1242
1251
  for (const n of t)
1243
1252
  if (!e.shape?.[n]?._zod?.traits?.has("$ZodType"))
1244
1253
  throw new Error(`Invalid element at key "${n}": expected a Zod schema`);
1245
- const r = sc(e.shape);
1254
+ const r = oc(e.shape);
1246
1255
  return {
1247
1256
  ...e,
1248
1257
  keys: t,
@@ -1251,7 +1260,7 @@ function ei(e) {
1251
1260
  optionalKeys: new Set(r)
1252
1261
  };
1253
1262
  }
1254
- function ti(e, t, r, n, s, o) {
1263
+ function ri(e, t, r, n, s, o) {
1255
1264
  const a = [], i = s.keySet, c = s.catchall._zod, u = c.def.type, m = c.optout === "optional";
1256
1265
  for (const v in t) {
1257
1266
  if (i.has(v))
@@ -1270,7 +1279,7 @@ function ti(e, t, r, n, s, o) {
1270
1279
  inst: o
1271
1280
  }), e.length ? Promise.all(e).then(() => r) : r;
1272
1281
  }
1273
- const xu = /* @__PURE__ */ D("$ZodObject", (e, t) => {
1282
+ const Lu = /* @__PURE__ */ D("$ZodObject", (e, t) => {
1274
1283
  if (_e.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1275
1284
  const i = t.shape;
1276
1285
  Object.defineProperty(t, "shape", {
@@ -1282,7 +1291,7 @@ const xu = /* @__PURE__ */ D("$ZodObject", (e, t) => {
1282
1291
  }
1283
1292
  });
1284
1293
  }
1285
- const n = Xn(() => ei(t));
1294
+ const n = Xn(() => ti(t));
1286
1295
  ue(e._zod, "propValues", () => {
1287
1296
  const i = t.shape, c = {};
1288
1297
  for (const u in i) {
@@ -1313,12 +1322,12 @@ const xu = /* @__PURE__ */ D("$ZodObject", (e, t) => {
1313
1322
  const h = v[l], w = h._zod.optout === "optional", S = h._zod.run({ value: u[l], issues: [] }, c);
1314
1323
  S instanceof Promise ? m.push(S.then((p) => Hr(p, i, l, u, w))) : Hr(S, i, l, u, w);
1315
1324
  }
1316
- return o ? ti(m, u, i, c, n.value, e) : m.length ? Promise.all(m).then(() => i) : i;
1325
+ return o ? ri(m, u, i, c, n.value, e) : m.length ? Promise.all(m).then(() => i) : i;
1317
1326
  };
1318
- }), Lu = /* @__PURE__ */ D("$ZodObjectJIT", (e, t) => {
1319
- xu.init(e, t);
1320
- const r = e._zod.parse, n = Xn(() => ei(t)), s = (l) => {
1321
- const h = new du(["shape", "payload", "ctx"]), w = n.value, S = (y) => {
1327
+ }), Ku = /* @__PURE__ */ D("$ZodObjectJIT", (e, t) => {
1328
+ Lu.init(e, t);
1329
+ const r = e._zod.parse, n = Xn(() => ti(t)), s = (l) => {
1330
+ const h = new lu(["shape", "payload", "ctx"]), w = n.value, S = (y) => {
1322
1331
  const g = $s(y);
1323
1332
  return `shape[${g}]._zod.run({ value: input[${g}], issues: [] }, ctx)`;
1324
1333
  };
@@ -1371,12 +1380,12 @@ const xu = /* @__PURE__ */ D("$ZodObject", (e, t) => {
1371
1380
  return (y, g) => f(l, y, g);
1372
1381
  };
1373
1382
  let o;
1374
- const a = Gr, i = !Fa.jitless, u = i && rc.value, m = t.catchall;
1383
+ const a = Gr, i = !Za.jitless, u = i && nc.value, m = t.catchall;
1375
1384
  let v;
1376
1385
  e._zod.parse = (l, h) => {
1377
1386
  v ?? (v = n.value);
1378
1387
  const w = l.value;
1379
- return a(w) ? i && u && h?.async === !1 && h.jitless !== !0 ? (o || (o = s(t.shape)), l = o(l, h), m ? ti([], w, l, h, v, e) : l) : r(l, h) : (l.issues.push({
1388
+ return a(w) ? i && u && h?.async === !1 && h.jitless !== !0 ? (o || (o = s(t.shape)), l = o(l, h), m ? ri([], w, l, h, v, e) : l) : r(l, h) : (l.issues.push({
1380
1389
  expected: "object",
1381
1390
  code: "invalid_type",
1382
1391
  input: w,
@@ -1396,7 +1405,7 @@ function Ss(e, t, r, n) {
1396
1405
  errors: e.map((o) => o.issues.map((a) => dt(a, n, ut())))
1397
1406
  }), t);
1398
1407
  }
1399
- const Ku = /* @__PURE__ */ D("$ZodUnion", (e, t) => {
1408
+ const Ju = /* @__PURE__ */ D("$ZodUnion", (e, t) => {
1400
1409
  _e.init(e, t), ue(e._zod, "optin", () => t.options.some((s) => s._zod.optin === "optional") ? "optional" : void 0), ue(e._zod, "optout", () => t.options.some((s) => s._zod.optout === "optional") ? "optional" : void 0), ue(e._zod, "values", () => {
1401
1410
  if (t.options.every((s) => s._zod.values))
1402
1411
  return new Set(t.options.flatMap((s) => Array.from(s._zod.values)));
@@ -1427,7 +1436,7 @@ const Ku = /* @__PURE__ */ D("$ZodUnion", (e, t) => {
1427
1436
  }
1428
1437
  return a ? Promise.all(i).then((c) => Ss(c, s, e, o)) : Ss(i, s, e, o);
1429
1438
  };
1430
- }), Ju = /* @__PURE__ */ D("$ZodIntersection", (e, t) => {
1439
+ }), Gu = /* @__PURE__ */ D("$ZodIntersection", (e, t) => {
1431
1440
  _e.init(e, t), e._zod.parse = (r, n) => {
1432
1441
  const s = r.value, o = t.left._zod.run({ value: s, issues: [] }, n), a = t.right._zod.run({ value: s, issues: [] }, n);
1433
1442
  return o instanceof Promise || a instanceof Promise ? Promise.all([o, a]).then(([c, u]) => Es(r, c, u)) : Es(r, o, a);
@@ -1492,7 +1501,7 @@ function Es(e, t, r) {
1492
1501
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);
1493
1502
  return e.value = a.data, e;
1494
1503
  }
1495
- const Gu = /* @__PURE__ */ D("$ZodRecord", (e, t) => {
1504
+ const Hu = /* @__PURE__ */ D("$ZodRecord", (e, t) => {
1496
1505
  _e.init(e, t), e._zod.parse = (r, n) => {
1497
1506
  const s = r.value;
1498
1507
  if (!Rt(s))
@@ -1531,7 +1540,7 @@ const Gu = /* @__PURE__ */ D("$ZodRecord", (e, t) => {
1531
1540
  let c = t.keyType._zod.run({ value: i, issues: [] }, n);
1532
1541
  if (c instanceof Promise)
1533
1542
  throw new Error("Async schemas not supported in object keys currently");
1534
- if (typeof i == "string" && Ha.test(i) && c.issues.length) {
1543
+ if (typeof i == "string" && Ba.test(i) && c.issues.length) {
1535
1544
  const v = t.keyType._zod.run({ value: Number(i), issues: [] }, n);
1536
1545
  if (v instanceof Promise)
1537
1546
  throw new Error("Async schemas not supported in object keys currently");
@@ -1556,10 +1565,10 @@ const Gu = /* @__PURE__ */ D("$ZodRecord", (e, t) => {
1556
1565
  }
1557
1566
  return o.length ? Promise.all(o).then(() => r) : r;
1558
1567
  };
1559
- }), Hu = /* @__PURE__ */ D("$ZodEnum", (e, t) => {
1568
+ }), Bu = /* @__PURE__ */ D("$ZodEnum", (e, t) => {
1560
1569
  _e.init(e, t);
1561
- const r = Za(t.entries), n = new Set(r);
1562
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((s) => nc.has(typeof s)).map((s) => typeof s == "string" ? rn(s) : s.toString()).join("|")})$`), e._zod.parse = (s, o) => {
1570
+ const r = Ua(t.entries), n = new Set(r);
1571
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((s) => sc.has(typeof s)).map((s) => typeof s == "string" ? rn(s) : s.toString()).join("|")})$`), e._zod.parse = (s, o) => {
1563
1572
  const a = s.value;
1564
1573
  return n.has(a) || s.issues.push({
1565
1574
  code: "invalid_value",
@@ -1568,22 +1577,22 @@ const Gu = /* @__PURE__ */ D("$ZodRecord", (e, t) => {
1568
1577
  inst: e
1569
1578
  }), s;
1570
1579
  };
1571
- }), Bu = /* @__PURE__ */ D("$ZodTransform", (e, t) => {
1580
+ }), Wu = /* @__PURE__ */ D("$ZodTransform", (e, t) => {
1572
1581
  _e.init(e, t), e._zod.parse = (r, n) => {
1573
1582
  if (n.direction === "backward")
1574
- throw new qa(e.constructor.name);
1583
+ throw new Fa(e.constructor.name);
1575
1584
  const s = t.transform(r.value, r);
1576
1585
  if (n.async)
1577
1586
  return (s instanceof Promise ? s : Promise.resolve(s)).then((a) => (r.value = a, r));
1578
1587
  if (s instanceof Promise)
1579
- throw new jt();
1588
+ throw new Ot();
1580
1589
  return r.value = s, r;
1581
1590
  };
1582
1591
  });
1583
1592
  function ks(e, t) {
1584
1593
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1585
1594
  }
1586
- const ri = /* @__PURE__ */ D("$ZodOptional", (e, t) => {
1595
+ const ni = /* @__PURE__ */ D("$ZodOptional", (e, t) => {
1587
1596
  _e.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", ue(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), ue(e._zod, "pattern", () => {
1588
1597
  const r = t.innerType._zod.pattern;
1589
1598
  return r ? new RegExp(`^(${es(r.source)})?$`) : void 0;
@@ -1594,14 +1603,14 @@ const ri = /* @__PURE__ */ D("$ZodOptional", (e, t) => {
1594
1603
  }
1595
1604
  return r.value === void 0 ? r : t.innerType._zod.run(r, n);
1596
1605
  };
1597
- }), Wu = /* @__PURE__ */ D("$ZodExactOptional", (e, t) => {
1598
- ri.init(e, t), ue(e._zod, "values", () => t.innerType._zod.values), ue(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (r, n) => t.innerType._zod.run(r, n);
1599
- }), Yu = /* @__PURE__ */ D("$ZodNullable", (e, t) => {
1606
+ }), Yu = /* @__PURE__ */ D("$ZodExactOptional", (e, t) => {
1607
+ ni.init(e, t), ue(e._zod, "values", () => t.innerType._zod.values), ue(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (r, n) => t.innerType._zod.run(r, n);
1608
+ }), Xu = /* @__PURE__ */ D("$ZodNullable", (e, t) => {
1600
1609
  _e.init(e, t), ue(e._zod, "optin", () => t.innerType._zod.optin), ue(e._zod, "optout", () => t.innerType._zod.optout), ue(e._zod, "pattern", () => {
1601
1610
  const r = t.innerType._zod.pattern;
1602
1611
  return r ? new RegExp(`^(${es(r.source)}|null)$`) : void 0;
1603
1612
  }), ue(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1604
- }), Xu = /* @__PURE__ */ D("$ZodDefault", (e, t) => {
1613
+ }), Qu = /* @__PURE__ */ D("$ZodDefault", (e, t) => {
1605
1614
  _e.init(e, t), e._zod.optin = "optional", ue(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1606
1615
  if (n.direction === "backward")
1607
1616
  return t.innerType._zod.run(r, n);
@@ -1614,18 +1623,18 @@ const ri = /* @__PURE__ */ D("$ZodOptional", (e, t) => {
1614
1623
  function Ps(e, t) {
1615
1624
  return e.value === void 0 && (e.value = t.defaultValue), e;
1616
1625
  }
1617
- const Qu = /* @__PURE__ */ D("$ZodPrefault", (e, t) => {
1626
+ const ed = /* @__PURE__ */ D("$ZodPrefault", (e, t) => {
1618
1627
  _e.init(e, t), e._zod.optin = "optional", ue(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1619
- }), ed = /* @__PURE__ */ D("$ZodNonOptional", (e, t) => {
1628
+ }), td = /* @__PURE__ */ D("$ZodNonOptional", (e, t) => {
1620
1629
  _e.init(e, t), ue(e._zod, "values", () => {
1621
1630
  const r = t.innerType._zod.values;
1622
1631
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
1623
1632
  }), e._zod.parse = (r, n) => {
1624
1633
  const s = t.innerType._zod.run(r, n);
1625
- return s instanceof Promise ? s.then((o) => Os(o, e)) : Os(s, e);
1634
+ return s instanceof Promise ? s.then((o) => js(o, e)) : js(s, e);
1626
1635
  };
1627
1636
  });
1628
- function Os(e, t) {
1637
+ function js(e, t) {
1629
1638
  return !e.issues.length && e.value === void 0 && e.issues.push({
1630
1639
  code: "invalid_type",
1631
1640
  expected: "nonoptional",
@@ -1633,7 +1642,7 @@ function Os(e, t) {
1633
1642
  inst: t
1634
1643
  }), e;
1635
1644
  }
1636
- const td = /* @__PURE__ */ D("$ZodCatch", (e, t) => {
1645
+ const rd = /* @__PURE__ */ D("$ZodCatch", (e, t) => {
1637
1646
  _e.init(e, t), ue(e._zod, "optin", () => t.innerType._zod.optin), ue(e._zod, "optout", () => t.innerType._zod.optout), ue(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1638
1647
  if (n.direction === "backward")
1639
1648
  return t.innerType._zod.run(r, n);
@@ -1652,7 +1661,7 @@ const td = /* @__PURE__ */ D("$ZodCatch", (e, t) => {
1652
1661
  input: r.value
1653
1662
  }), r.issues = []), r);
1654
1663
  };
1655
- }), rd = /* @__PURE__ */ D("$ZodPipe", (e, t) => {
1664
+ }), nd = /* @__PURE__ */ D("$ZodPipe", (e, t) => {
1656
1665
  _e.init(e, t), ue(e._zod, "values", () => t.in._zod.values), ue(e._zod, "optin", () => t.in._zod.optin), ue(e._zod, "optout", () => t.out._zod.optout), ue(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, n) => {
1657
1666
  if (n.direction === "backward") {
1658
1667
  const o = t.out._zod.run(r, n);
@@ -1665,20 +1674,20 @@ const td = /* @__PURE__ */ D("$ZodCatch", (e, t) => {
1665
1674
  function Lt(e, t, r) {
1666
1675
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, r);
1667
1676
  }
1668
- const nd = /* @__PURE__ */ D("$ZodReadonly", (e, t) => {
1677
+ const sd = /* @__PURE__ */ D("$ZodReadonly", (e, t) => {
1669
1678
  _e.init(e, t), ue(e._zod, "propValues", () => t.innerType._zod.propValues), ue(e._zod, "values", () => t.innerType._zod.values), ue(e._zod, "optin", () => t.innerType?._zod?.optin), ue(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (r, n) => {
1670
1679
  if (n.direction === "backward")
1671
1680
  return t.innerType._zod.run(r, n);
1672
1681
  const s = t.innerType._zod.run(r, n);
1673
- return s instanceof Promise ? s.then(js) : js(s);
1682
+ return s instanceof Promise ? s.then(Os) : Os(s);
1674
1683
  };
1675
1684
  });
1676
- function js(e) {
1685
+ function Os(e) {
1677
1686
  return e.value = Object.freeze(e.value), e;
1678
1687
  }
1679
- const sd = /* @__PURE__ */ D("$ZodLazy", (e, t) => {
1688
+ const od = /* @__PURE__ */ D("$ZodLazy", (e, t) => {
1680
1689
  _e.init(e, t), ue(e._zod, "innerType", () => t.getter()), ue(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), ue(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), ue(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), ue(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1681
- }), od = /* @__PURE__ */ D("$ZodCustom", (e, t) => {
1690
+ }), ad = /* @__PURE__ */ D("$ZodCustom", (e, t) => {
1682
1691
  Ve.init(e, t), _e.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1683
1692
  const n = r.value, s = t.fn(n);
1684
1693
  if (s instanceof Promise)
@@ -1702,7 +1711,7 @@ function As(e, t, r, n) {
1702
1711
  }
1703
1712
  }
1704
1713
  var Rs;
1705
- class ad {
1714
+ class id {
1706
1715
  constructor() {
1707
1716
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1708
1717
  }
@@ -1731,20 +1740,20 @@ class ad {
1731
1740
  return this._map.has(t);
1732
1741
  }
1733
1742
  }
1734
- function id() {
1735
- return new ad();
1743
+ function cd() {
1744
+ return new id();
1736
1745
  }
1737
- (Rs = globalThis).__zod_globalRegistry ?? (Rs.__zod_globalRegistry = id());
1746
+ (Rs = globalThis).__zod_globalRegistry ?? (Rs.__zod_globalRegistry = cd());
1738
1747
  const Vt = globalThis.__zod_globalRegistry;
1739
1748
  // @__NO_SIDE_EFFECTS__
1740
- function cd(e, t) {
1749
+ function ud(e, t) {
1741
1750
  return new e({
1742
1751
  type: "string",
1743
1752
  ...ee(t)
1744
1753
  });
1745
1754
  }
1746
1755
  // @__NO_SIDE_EFFECTS__
1747
- function ud(e, t) {
1756
+ function dd(e, t) {
1748
1757
  return new e({
1749
1758
  type: "string",
1750
1759
  format: "email",
@@ -1764,7 +1773,7 @@ function Ns(e, t) {
1764
1773
  });
1765
1774
  }
1766
1775
  // @__NO_SIDE_EFFECTS__
1767
- function dd(e, t) {
1776
+ function ld(e, t) {
1768
1777
  return new e({
1769
1778
  type: "string",
1770
1779
  format: "uuid",
@@ -1774,7 +1783,7 @@ function dd(e, t) {
1774
1783
  });
1775
1784
  }
1776
1785
  // @__NO_SIDE_EFFECTS__
1777
- function ld(e, t) {
1786
+ function fd(e, t) {
1778
1787
  return new e({
1779
1788
  type: "string",
1780
1789
  format: "uuid",
@@ -1785,7 +1794,7 @@ function ld(e, t) {
1785
1794
  });
1786
1795
  }
1787
1796
  // @__NO_SIDE_EFFECTS__
1788
- function fd(e, t) {
1797
+ function md(e, t) {
1789
1798
  return new e({
1790
1799
  type: "string",
1791
1800
  format: "uuid",
@@ -1796,7 +1805,7 @@ function fd(e, t) {
1796
1805
  });
1797
1806
  }
1798
1807
  // @__NO_SIDE_EFFECTS__
1799
- function md(e, t) {
1808
+ function hd(e, t) {
1800
1809
  return new e({
1801
1810
  type: "string",
1802
1811
  format: "uuid",
@@ -1807,7 +1816,7 @@ function md(e, t) {
1807
1816
  });
1808
1817
  }
1809
1818
  // @__NO_SIDE_EFFECTS__
1810
- function hd(e, t) {
1819
+ function pd(e, t) {
1811
1820
  return new e({
1812
1821
  type: "string",
1813
1822
  format: "url",
@@ -1817,7 +1826,7 @@ function hd(e, t) {
1817
1826
  });
1818
1827
  }
1819
1828
  // @__NO_SIDE_EFFECTS__
1820
- function pd(e, t) {
1829
+ function yd(e, t) {
1821
1830
  return new e({
1822
1831
  type: "string",
1823
1832
  format: "emoji",
@@ -1827,7 +1836,7 @@ function pd(e, t) {
1827
1836
  });
1828
1837
  }
1829
1838
  // @__NO_SIDE_EFFECTS__
1830
- function yd(e, t) {
1839
+ function vd(e, t) {
1831
1840
  return new e({
1832
1841
  type: "string",
1833
1842
  format: "nanoid",
@@ -1837,7 +1846,7 @@ function yd(e, t) {
1837
1846
  });
1838
1847
  }
1839
1848
  // @__NO_SIDE_EFFECTS__
1840
- function vd(e, t) {
1849
+ function gd(e, t) {
1841
1850
  return new e({
1842
1851
  type: "string",
1843
1852
  format: "cuid",
@@ -1847,7 +1856,7 @@ function vd(e, t) {
1847
1856
  });
1848
1857
  }
1849
1858
  // @__NO_SIDE_EFFECTS__
1850
- function gd(e, t) {
1859
+ function _d(e, t) {
1851
1860
  return new e({
1852
1861
  type: "string",
1853
1862
  format: "cuid2",
@@ -1857,7 +1866,7 @@ function gd(e, t) {
1857
1866
  });
1858
1867
  }
1859
1868
  // @__NO_SIDE_EFFECTS__
1860
- function _d(e, t) {
1869
+ function $d(e, t) {
1861
1870
  return new e({
1862
1871
  type: "string",
1863
1872
  format: "ulid",
@@ -1867,7 +1876,7 @@ function _d(e, t) {
1867
1876
  });
1868
1877
  }
1869
1878
  // @__NO_SIDE_EFFECTS__
1870
- function $d(e, t) {
1879
+ function bd(e, t) {
1871
1880
  return new e({
1872
1881
  type: "string",
1873
1882
  format: "xid",
@@ -1877,7 +1886,7 @@ function $d(e, t) {
1877
1886
  });
1878
1887
  }
1879
1888
  // @__NO_SIDE_EFFECTS__
1880
- function bd(e, t) {
1889
+ function wd(e, t) {
1881
1890
  return new e({
1882
1891
  type: "string",
1883
1892
  format: "ksuid",
@@ -1887,7 +1896,7 @@ function bd(e, t) {
1887
1896
  });
1888
1897
  }
1889
1898
  // @__NO_SIDE_EFFECTS__
1890
- function wd(e, t) {
1899
+ function Sd(e, t) {
1891
1900
  return new e({
1892
1901
  type: "string",
1893
1902
  format: "ipv4",
@@ -1897,7 +1906,7 @@ function wd(e, t) {
1897
1906
  });
1898
1907
  }
1899
1908
  // @__NO_SIDE_EFFECTS__
1900
- function Sd(e, t) {
1909
+ function Ed(e, t) {
1901
1910
  return new e({
1902
1911
  type: "string",
1903
1912
  format: "ipv6",
@@ -1907,7 +1916,7 @@ function Sd(e, t) {
1907
1916
  });
1908
1917
  }
1909
1918
  // @__NO_SIDE_EFFECTS__
1910
- function Ed(e, t) {
1919
+ function kd(e, t) {
1911
1920
  return new e({
1912
1921
  type: "string",
1913
1922
  format: "cidrv4",
@@ -1917,7 +1926,7 @@ function Ed(e, t) {
1917
1926
  });
1918
1927
  }
1919
1928
  // @__NO_SIDE_EFFECTS__
1920
- function kd(e, t) {
1929
+ function Pd(e, t) {
1921
1930
  return new e({
1922
1931
  type: "string",
1923
1932
  format: "cidrv6",
@@ -1927,7 +1936,7 @@ function kd(e, t) {
1927
1936
  });
1928
1937
  }
1929
1938
  // @__NO_SIDE_EFFECTS__
1930
- function Pd(e, t) {
1939
+ function jd(e, t) {
1931
1940
  return new e({
1932
1941
  type: "string",
1933
1942
  format: "base64",
@@ -1947,7 +1956,7 @@ function Od(e, t) {
1947
1956
  });
1948
1957
  }
1949
1958
  // @__NO_SIDE_EFFECTS__
1950
- function jd(e, t) {
1959
+ function Ad(e, t) {
1951
1960
  return new e({
1952
1961
  type: "string",
1953
1962
  format: "e164",
@@ -1957,7 +1966,7 @@ function jd(e, t) {
1957
1966
  });
1958
1967
  }
1959
1968
  // @__NO_SIDE_EFFECTS__
1960
- function Ad(e, t) {
1969
+ function Rd(e, t) {
1961
1970
  return new e({
1962
1971
  type: "string",
1963
1972
  format: "jwt",
@@ -1967,7 +1976,7 @@ function Ad(e, t) {
1967
1976
  });
1968
1977
  }
1969
1978
  // @__NO_SIDE_EFFECTS__
1970
- function Rd(e, t) {
1979
+ function Nd(e, t) {
1971
1980
  return new e({
1972
1981
  type: "string",
1973
1982
  format: "datetime",
@@ -1979,7 +1988,7 @@ function Rd(e, t) {
1979
1988
  });
1980
1989
  }
1981
1990
  // @__NO_SIDE_EFFECTS__
1982
- function Nd(e, t) {
1991
+ function zd(e, t) {
1983
1992
  return new e({
1984
1993
  type: "string",
1985
1994
  format: "date",
@@ -1988,7 +1997,7 @@ function Nd(e, t) {
1988
1997
  });
1989
1998
  }
1990
1999
  // @__NO_SIDE_EFFECTS__
1991
- function zd(e, t) {
2000
+ function Id(e, t) {
1992
2001
  return new e({
1993
2002
  type: "string",
1994
2003
  format: "time",
@@ -1998,7 +2007,7 @@ function zd(e, t) {
1998
2007
  });
1999
2008
  }
2000
2009
  // @__NO_SIDE_EFFECTS__
2001
- function Id(e, t) {
2010
+ function Td(e, t) {
2002
2011
  return new e({
2003
2012
  type: "string",
2004
2013
  format: "duration",
@@ -2007,7 +2016,7 @@ function Id(e, t) {
2007
2016
  });
2008
2017
  }
2009
2018
  // @__NO_SIDE_EFFECTS__
2010
- function Td(e, t) {
2019
+ function Cd(e, t) {
2011
2020
  return new e({
2012
2021
  type: "number",
2013
2022
  checks: [],
@@ -2015,7 +2024,7 @@ function Td(e, t) {
2015
2024
  });
2016
2025
  }
2017
2026
  // @__NO_SIDE_EFFECTS__
2018
- function Cd(e, t) {
2027
+ function Md(e, t) {
2019
2028
  return new e({
2020
2029
  type: "number",
2021
2030
  check: "number_format",
@@ -2025,26 +2034,26 @@ function Cd(e, t) {
2025
2034
  });
2026
2035
  }
2027
2036
  // @__NO_SIDE_EFFECTS__
2028
- function Md(e, t) {
2037
+ function Dd(e, t) {
2029
2038
  return new e({
2030
2039
  type: "boolean",
2031
2040
  ...ee(t)
2032
2041
  });
2033
2042
  }
2034
2043
  // @__NO_SIDE_EFFECTS__
2035
- function Dd(e) {
2044
+ function Vd(e) {
2036
2045
  return new e({
2037
2046
  type: "any"
2038
2047
  });
2039
2048
  }
2040
2049
  // @__NO_SIDE_EFFECTS__
2041
- function Vd(e) {
2050
+ function qd(e) {
2042
2051
  return new e({
2043
2052
  type: "unknown"
2044
2053
  });
2045
2054
  }
2046
2055
  // @__NO_SIDE_EFFECTS__
2047
- function qd(e, t) {
2056
+ function Fd(e, t) {
2048
2057
  return new e({
2049
2058
  type: "never",
2050
2059
  ...ee(t)
@@ -2052,7 +2061,7 @@ function qd(e, t) {
2052
2061
  }
2053
2062
  // @__NO_SIDE_EFFECTS__
2054
2063
  function zs(e, t) {
2055
- return new Wa({
2064
+ return new Ya({
2056
2065
  check: "less_than",
2057
2066
  ...ee(t),
2058
2067
  value: e,
@@ -2061,7 +2070,7 @@ function zs(e, t) {
2061
2070
  }
2062
2071
  // @__NO_SIDE_EFFECTS__
2063
2072
  function $n(e, t) {
2064
- return new Wa({
2073
+ return new Ya({
2065
2074
  check: "less_than",
2066
2075
  ...ee(t),
2067
2076
  value: e,
@@ -2070,7 +2079,7 @@ function $n(e, t) {
2070
2079
  }
2071
2080
  // @__NO_SIDE_EFFECTS__
2072
2081
  function Is(e, t) {
2073
- return new Ya({
2082
+ return new Xa({
2074
2083
  check: "greater_than",
2075
2084
  ...ee(t),
2076
2085
  value: e,
@@ -2079,7 +2088,7 @@ function Is(e, t) {
2079
2088
  }
2080
2089
  // @__NO_SIDE_EFFECTS__
2081
2090
  function bn(e, t) {
2082
- return new Ya({
2091
+ return new Xa({
2083
2092
  check: "greater_than",
2084
2093
  ...ee(t),
2085
2094
  value: e,
@@ -2088,15 +2097,15 @@ function bn(e, t) {
2088
2097
  }
2089
2098
  // @__NO_SIDE_EFFECTS__
2090
2099
  function Ts(e, t) {
2091
- return new Xc({
2100
+ return new Qc({
2092
2101
  check: "multiple_of",
2093
2102
  ...ee(t),
2094
2103
  value: e
2095
2104
  });
2096
2105
  }
2097
2106
  // @__NO_SIDE_EFFECTS__
2098
- function ni(e, t) {
2099
- return new eu({
2107
+ function si(e, t) {
2108
+ return new tu({
2100
2109
  check: "max_length",
2101
2110
  ...ee(t),
2102
2111
  maximum: e
@@ -2104,23 +2113,23 @@ function ni(e, t) {
2104
2113
  }
2105
2114
  // @__NO_SIDE_EFFECTS__
2106
2115
  function Br(e, t) {
2107
- return new tu({
2116
+ return new ru({
2108
2117
  check: "min_length",
2109
2118
  ...ee(t),
2110
2119
  minimum: e
2111
2120
  });
2112
2121
  }
2113
2122
  // @__NO_SIDE_EFFECTS__
2114
- function si(e, t) {
2115
- return new ru({
2123
+ function oi(e, t) {
2124
+ return new nu({
2116
2125
  check: "length_equals",
2117
2126
  ...ee(t),
2118
2127
  length: e
2119
2128
  });
2120
2129
  }
2121
2130
  // @__NO_SIDE_EFFECTS__
2122
- function Fd(e, t) {
2123
- return new nu({
2131
+ function Zd(e, t) {
2132
+ return new su({
2124
2133
  check: "string_format",
2125
2134
  format: "regex",
2126
2135
  ...ee(t),
@@ -2128,24 +2137,24 @@ function Fd(e, t) {
2128
2137
  });
2129
2138
  }
2130
2139
  // @__NO_SIDE_EFFECTS__
2131
- function Zd(e) {
2132
- return new su({
2140
+ function Ud(e) {
2141
+ return new ou({
2133
2142
  check: "string_format",
2134
2143
  format: "lowercase",
2135
2144
  ...ee(e)
2136
2145
  });
2137
2146
  }
2138
2147
  // @__NO_SIDE_EFFECTS__
2139
- function Ud(e) {
2140
- return new ou({
2148
+ function xd(e) {
2149
+ return new au({
2141
2150
  check: "string_format",
2142
2151
  format: "uppercase",
2143
2152
  ...ee(e)
2144
2153
  });
2145
2154
  }
2146
2155
  // @__NO_SIDE_EFFECTS__
2147
- function xd(e, t) {
2148
- return new au({
2156
+ function Ld(e, t) {
2157
+ return new iu({
2149
2158
  check: "string_format",
2150
2159
  format: "includes",
2151
2160
  ...ee(t),
@@ -2153,8 +2162,8 @@ function xd(e, t) {
2153
2162
  });
2154
2163
  }
2155
2164
  // @__NO_SIDE_EFFECTS__
2156
- function Ld(e, t) {
2157
- return new iu({
2165
+ function Kd(e, t) {
2166
+ return new cu({
2158
2167
  check: "string_format",
2159
2168
  format: "starts_with",
2160
2169
  ...ee(t),
@@ -2162,8 +2171,8 @@ function Ld(e, t) {
2162
2171
  });
2163
2172
  }
2164
2173
  // @__NO_SIDE_EFFECTS__
2165
- function Kd(e, t) {
2166
- return new cu({
2174
+ function Jd(e, t) {
2175
+ return new uu({
2167
2176
  check: "string_format",
2168
2177
  format: "ends_with",
2169
2178
  ...ee(t),
@@ -2172,33 +2181,33 @@ function Kd(e, t) {
2172
2181
  }
2173
2182
  // @__NO_SIDE_EFFECTS__
2174
2183
  function Nt(e) {
2175
- return new uu({
2184
+ return new du({
2176
2185
  check: "overwrite",
2177
2186
  tx: e
2178
2187
  });
2179
2188
  }
2180
2189
  // @__NO_SIDE_EFFECTS__
2181
- function Jd(e) {
2190
+ function Gd(e) {
2182
2191
  return /* @__PURE__ */ Nt((t) => t.normalize(e));
2183
2192
  }
2184
2193
  // @__NO_SIDE_EFFECTS__
2185
- function Gd() {
2194
+ function Hd() {
2186
2195
  return /* @__PURE__ */ Nt((e) => e.trim());
2187
2196
  }
2188
2197
  // @__NO_SIDE_EFFECTS__
2189
- function Hd() {
2198
+ function Bd() {
2190
2199
  return /* @__PURE__ */ Nt((e) => e.toLowerCase());
2191
2200
  }
2192
2201
  // @__NO_SIDE_EFFECTS__
2193
- function Bd() {
2202
+ function Wd() {
2194
2203
  return /* @__PURE__ */ Nt((e) => e.toUpperCase());
2195
2204
  }
2196
2205
  // @__NO_SIDE_EFFECTS__
2197
- function Wd() {
2198
- return /* @__PURE__ */ Nt((e) => tc(e));
2206
+ function Yd() {
2207
+ return /* @__PURE__ */ Nt((e) => rc(e));
2199
2208
  }
2200
2209
  // @__NO_SIDE_EFFECTS__
2201
- function Yd(e, t, r) {
2210
+ function Xd(e, t, r) {
2202
2211
  return new e({
2203
2212
  type: "array",
2204
2213
  element: t,
@@ -2209,7 +2218,7 @@ function Yd(e, t, r) {
2209
2218
  });
2210
2219
  }
2211
2220
  // @__NO_SIDE_EFFECTS__
2212
- function Xd(e, t, r) {
2221
+ function Qd(e, t, r) {
2213
2222
  return new e({
2214
2223
  type: "custom",
2215
2224
  check: "custom",
@@ -2218,8 +2227,8 @@ function Xd(e, t, r) {
2218
2227
  });
2219
2228
  }
2220
2229
  // @__NO_SIDE_EFFECTS__
2221
- function Qd(e) {
2222
- const t = /* @__PURE__ */ el((r) => (r.addIssue = (n) => {
2230
+ function el(e) {
2231
+ const t = /* @__PURE__ */ tl((r) => (r.addIssue = (n) => {
2223
2232
  if (typeof n == "string")
2224
2233
  r.issues.push(Ft(n, r.value, t._zod.def));
2225
2234
  else {
@@ -2230,14 +2239,14 @@ function Qd(e) {
2230
2239
  return t;
2231
2240
  }
2232
2241
  // @__NO_SIDE_EFFECTS__
2233
- function el(e, t) {
2242
+ function tl(e, t) {
2234
2243
  const r = new Ve({
2235
2244
  check: "custom",
2236
2245
  ...ee(t)
2237
2246
  });
2238
2247
  return r._zod.check = e, r;
2239
2248
  }
2240
- function oi(e) {
2249
+ function ai(e) {
2241
2250
  let t = e?.target ?? "draft-2020-12";
2242
2251
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2243
2252
  processors: e.processors ?? {},
@@ -2284,7 +2293,7 @@ function Ee(e, t, r = { path: [], schemaPath: [] }) {
2284
2293
  const c = t.metadataRegistry.get(e);
2285
2294
  return c && Object.assign(a.schema, c), t.io === "input" && Te(e) && (delete a.schema.examples, delete a.schema.default), t.io === "input" && a.schema._prefault && ((n = a.schema).default ?? (n.default = a.schema._prefault)), delete a.schema._prefault, t.seen.get(e).schema;
2286
2295
  }
2287
- function ai(e, t) {
2296
+ function ii(e, t) {
2288
2297
  const r = e.seen.get(t);
2289
2298
  if (!r)
2290
2299
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -2356,7 +2365,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2356
2365
  }
2357
2366
  }
2358
2367
  }
2359
- function ii(e, t) {
2368
+ function ci(e, t) {
2360
2369
  const r = e.seen.get(t);
2361
2370
  if (!r)
2362
2371
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -2464,24 +2473,24 @@ function Te(e, t) {
2464
2473
  }
2465
2474
  return !1;
2466
2475
  }
2467
- const tl = (e, t = {}) => (r) => {
2468
- const n = oi({ ...r, processors: t });
2469
- return Ee(e, n), ai(n, e), ii(n, e);
2476
+ const rl = (e, t = {}) => (r) => {
2477
+ const n = ai({ ...r, processors: t });
2478
+ return Ee(e, n), ii(n, e), ci(n, e);
2470
2479
  }, Wr = (e, t, r = {}) => (n) => {
2471
- const { libraryOptions: s, target: o } = n ?? {}, a = oi({ ...s ?? {}, target: o, io: t, processors: r });
2472
- return Ee(e, a), ai(a, e), ii(a, e);
2473
- }, rl = {
2480
+ const { libraryOptions: s, target: o } = n ?? {}, a = ai({ ...s ?? {}, target: o, io: t, processors: r });
2481
+ return Ee(e, a), ii(a, e), ci(a, e);
2482
+ }, nl = {
2474
2483
  guid: "uuid",
2475
2484
  url: "uri",
2476
2485
  datetime: "date-time",
2477
2486
  json_string: "json-string",
2478
2487
  regex: ""
2479
2488
  // do not set
2480
- }, nl = (e, t, r, n) => {
2489
+ }, sl = (e, t, r, n) => {
2481
2490
  const s = r;
2482
2491
  s.type = "string";
2483
2492
  const { minimum: o, maximum: a, format: i, patterns: c, contentEncoding: u } = e._zod.bag;
2484
- if (typeof o == "number" && (s.minLength = o), typeof a == "number" && (s.maxLength = a), i && (s.format = rl[i] ?? i, s.format === "" && delete s.format, i === "time" && delete s.format), u && (s.contentEncoding = u), c && c.size > 0) {
2493
+ if (typeof o == "number" && (s.minLength = o), typeof a == "number" && (s.maxLength = a), i && (s.format = nl[i] ?? i, s.format === "" && delete s.format, i === "time" && delete s.format), u && (s.contentEncoding = u), c && c.size > 0) {
2485
2494
  const m = [...c];
2486
2495
  m.length === 1 ? s.pattern = m[0].source : m.length > 1 && (s.allOf = [
2487
2496
  ...m.map((v) => ({
@@ -2490,28 +2499,28 @@ const tl = (e, t = {}) => (r) => {
2490
2499
  }))
2491
2500
  ]);
2492
2501
  }
2493
- }, sl = (e, t, r, n) => {
2502
+ }, ol = (e, t, r, n) => {
2494
2503
  const s = r, { minimum: o, maximum: a, format: i, multipleOf: c, exclusiveMaximum: u, exclusiveMinimum: m } = e._zod.bag;
2495
2504
  typeof i == "string" && i.includes("int") ? s.type = "integer" : s.type = "number", typeof m == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (s.minimum = m, s.exclusiveMinimum = !0) : s.exclusiveMinimum = m), typeof o == "number" && (s.minimum = o, typeof m == "number" && t.target !== "draft-04" && (m >= o ? delete s.minimum : delete s.exclusiveMinimum)), typeof u == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (s.maximum = u, s.exclusiveMaximum = !0) : s.exclusiveMaximum = u), typeof a == "number" && (s.maximum = a, typeof u == "number" && t.target !== "draft-04" && (u <= a ? delete s.maximum : delete s.exclusiveMaximum)), typeof c == "number" && (s.multipleOf = c);
2496
- }, ol = (e, t, r, n) => {
2497
- r.type = "boolean";
2498
2505
  }, al = (e, t, r, n) => {
2499
- r.not = {};
2506
+ r.type = "boolean";
2500
2507
  }, il = (e, t, r, n) => {
2508
+ r.not = {};
2501
2509
  }, cl = (e, t, r, n) => {
2502
2510
  }, ul = (e, t, r, n) => {
2503
- const s = e._zod.def, o = Za(s.entries);
2504
- o.every((a) => typeof a == "number") && (r.type = "number"), o.every((a) => typeof a == "string") && (r.type = "string"), r.enum = o;
2505
2511
  }, dl = (e, t, r, n) => {
2512
+ const s = e._zod.def, o = Ua(s.entries);
2513
+ o.every((a) => typeof a == "number") && (r.type = "number"), o.every((a) => typeof a == "string") && (r.type = "string"), r.enum = o;
2514
+ }, ll = (e, t, r, n) => {
2506
2515
  if (t.unrepresentable === "throw")
2507
2516
  throw new Error("Custom types cannot be represented in JSON Schema");
2508
- }, ll = (e, t, r, n) => {
2517
+ }, fl = (e, t, r, n) => {
2509
2518
  if (t.unrepresentable === "throw")
2510
2519
  throw new Error("Transforms cannot be represented in JSON Schema");
2511
- }, fl = (e, t, r, n) => {
2520
+ }, ml = (e, t, r, n) => {
2512
2521
  const s = r, o = e._zod.def, { minimum: a, maximum: i } = e._zod.bag;
2513
2522
  typeof a == "number" && (s.minItems = a), typeof i == "number" && (s.maxItems = i), s.type = "array", s.items = Ee(o.element, t, { ...n, path: [...n.path, "items"] });
2514
- }, ml = (e, t, r, n) => {
2523
+ }, hl = (e, t, r, n) => {
2515
2524
  const s = r, o = e._zod.def;
2516
2525
  s.type = "object", s.properties = {};
2517
2526
  const a = o.shape;
@@ -2528,13 +2537,13 @@ const tl = (e, t = {}) => (r) => {
2528
2537
  ...n,
2529
2538
  path: [...n.path, "additionalProperties"]
2530
2539
  })) : t.io === "output" && (s.additionalProperties = !1);
2531
- }, hl = (e, t, r, n) => {
2540
+ }, pl = (e, t, r, n) => {
2532
2541
  const s = e._zod.def, o = s.inclusive === !1, a = s.options.map((i, c) => Ee(i, t, {
2533
2542
  ...n,
2534
2543
  path: [...n.path, o ? "oneOf" : "anyOf", c]
2535
2544
  }));
2536
2545
  o ? r.oneOf = a : r.anyOf = a;
2537
- }, pl = (e, t, r, n) => {
2546
+ }, yl = (e, t, r, n) => {
2538
2547
  const s = e._zod.def, o = Ee(s.left, t, {
2539
2548
  ...n,
2540
2549
  path: [...n.path, "allOf", 0]
@@ -2546,7 +2555,7 @@ const tl = (e, t = {}) => (r) => {
2546
2555
  ...i(a) ? a.allOf : [a]
2547
2556
  ];
2548
2557
  r.allOf = c;
2549
- }, yl = (e, t, r, n) => {
2558
+ }, vl = (e, t, r, n) => {
2550
2559
  const s = r, o = e._zod.def;
2551
2560
  s.type = "object";
2552
2561
  const a = o.keyType, c = a._zod.bag?.patterns;
@@ -2571,25 +2580,25 @@ const tl = (e, t = {}) => (r) => {
2571
2580
  const m = [...u].filter((v) => typeof v == "string" || typeof v == "number");
2572
2581
  m.length > 0 && (s.required = m);
2573
2582
  }
2574
- }, vl = (e, t, r, n) => {
2583
+ }, gl = (e, t, r, n) => {
2575
2584
  const s = e._zod.def, o = Ee(s.innerType, t, n), a = t.seen.get(e);
2576
2585
  t.target === "openapi-3.0" ? (a.ref = s.innerType, r.nullable = !0) : r.anyOf = [o, { type: "null" }];
2577
- }, gl = (e, t, r, n) => {
2586
+ }, _l = (e, t, r, n) => {
2578
2587
  const s = e._zod.def;
2579
2588
  Ee(s.innerType, t, n);
2580
2589
  const o = t.seen.get(e);
2581
2590
  o.ref = s.innerType;
2582
- }, _l = (e, t, r, n) => {
2591
+ }, $l = (e, t, r, n) => {
2583
2592
  const s = e._zod.def;
2584
2593
  Ee(s.innerType, t, n);
2585
2594
  const o = t.seen.get(e);
2586
2595
  o.ref = s.innerType, r.default = JSON.parse(JSON.stringify(s.defaultValue));
2587
- }, $l = (e, t, r, n) => {
2596
+ }, bl = (e, t, r, n) => {
2588
2597
  const s = e._zod.def;
2589
2598
  Ee(s.innerType, t, n);
2590
2599
  const o = t.seen.get(e);
2591
2600
  o.ref = s.innerType, t.io === "input" && (r._prefault = JSON.parse(JSON.stringify(s.defaultValue)));
2592
- }, bl = (e, t, r, n) => {
2601
+ }, wl = (e, t, r, n) => {
2593
2602
  const s = e._zod.def;
2594
2603
  Ee(s.innerType, t, n);
2595
2604
  const o = t.seen.get(e);
@@ -2601,58 +2610,58 @@ const tl = (e, t = {}) => (r) => {
2601
2610
  throw new Error("Dynamic catch values are not supported in JSON Schema");
2602
2611
  }
2603
2612
  r.default = a;
2604
- }, wl = (e, t, r, n) => {
2613
+ }, Sl = (e, t, r, n) => {
2605
2614
  const s = e._zod.def, o = t.io === "input" ? s.in._zod.def.type === "transform" ? s.out : s.in : s.out;
2606
2615
  Ee(o, t, n);
2607
2616
  const a = t.seen.get(e);
2608
2617
  a.ref = o;
2609
- }, Sl = (e, t, r, n) => {
2618
+ }, El = (e, t, r, n) => {
2610
2619
  const s = e._zod.def;
2611
2620
  Ee(s.innerType, t, n);
2612
2621
  const o = t.seen.get(e);
2613
2622
  o.ref = s.innerType, r.readOnly = !0;
2614
- }, ci = (e, t, r, n) => {
2623
+ }, ui = (e, t, r, n) => {
2615
2624
  const s = e._zod.def;
2616
2625
  Ee(s.innerType, t, n);
2617
2626
  const o = t.seen.get(e);
2618
2627
  o.ref = s.innerType;
2619
- }, El = (e, t, r, n) => {
2628
+ }, kl = (e, t, r, n) => {
2620
2629
  const s = e._zod.innerType;
2621
2630
  Ee(s, t, n);
2622
2631
  const o = t.seen.get(e);
2623
2632
  o.ref = s;
2624
- }, kl = /* @__PURE__ */ D("ZodISODateTime", (e, t) => {
2625
- Su.init(e, t), we.init(e, t);
2626
- });
2627
- function Pl(e) {
2628
- return /* @__PURE__ */ Rd(kl, e);
2629
- }
2630
- const Ol = /* @__PURE__ */ D("ZodISODate", (e, t) => {
2633
+ }, Pl = /* @__PURE__ */ D("ZodISODateTime", (e, t) => {
2631
2634
  Eu.init(e, t), we.init(e, t);
2632
2635
  });
2633
2636
  function jl(e) {
2634
- return /* @__PURE__ */ Nd(Ol, e);
2637
+ return /* @__PURE__ */ Nd(Pl, e);
2635
2638
  }
2636
- const Al = /* @__PURE__ */ D("ZodISOTime", (e, t) => {
2639
+ const Ol = /* @__PURE__ */ D("ZodISODate", (e, t) => {
2637
2640
  ku.init(e, t), we.init(e, t);
2638
2641
  });
2639
- function Rl(e) {
2640
- return /* @__PURE__ */ zd(Al, e);
2642
+ function Al(e) {
2643
+ return /* @__PURE__ */ zd(Ol, e);
2641
2644
  }
2642
- const Nl = /* @__PURE__ */ D("ZodISODuration", (e, t) => {
2645
+ const Rl = /* @__PURE__ */ D("ZodISOTime", (e, t) => {
2643
2646
  Pu.init(e, t), we.init(e, t);
2644
2647
  });
2645
- function zl(e) {
2646
- return /* @__PURE__ */ Id(Nl, e);
2648
+ function Nl(e) {
2649
+ return /* @__PURE__ */ Id(Rl, e);
2647
2650
  }
2648
- const Il = (e, t) => {
2651
+ const zl = /* @__PURE__ */ D("ZodISODuration", (e, t) => {
2652
+ ju.init(e, t), we.init(e, t);
2653
+ });
2654
+ function Il(e) {
2655
+ return /* @__PURE__ */ Td(zl, e);
2656
+ }
2657
+ const Tl = (e, t) => {
2649
2658
  rs.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2650
2659
  format: {
2651
- value: (r) => hc(e, r)
2660
+ value: (r) => pc(e, r)
2652
2661
  // enumerable: false,
2653
2662
  },
2654
2663
  flatten: {
2655
- value: (r) => mc(e, r)
2664
+ value: (r) => hc(e, r)
2656
2665
  // enumerable: false,
2657
2666
  },
2658
2667
  addIssue: {
@@ -2674,21 +2683,21 @@ const Il = (e, t) => {
2674
2683
  // enumerable: false,
2675
2684
  }
2676
2685
  });
2677
- }, Ke = D("ZodError", Il, {
2686
+ }, Ke = D("ZodError", Tl, {
2678
2687
  Parent: Error
2679
- }), Tl = /* @__PURE__ */ sn(Ke), Cl = /* @__PURE__ */ on(Ke), Ml = /* @__PURE__ */ an(Ke), Dl = /* @__PURE__ */ cn(Ke), Vl = /* @__PURE__ */ _c(Ke), ql = /* @__PURE__ */ $c(Ke), Fl = /* @__PURE__ */ bc(Ke), Zl = /* @__PURE__ */ wc(Ke), Ul = /* @__PURE__ */ Sc(Ke), xl = /* @__PURE__ */ Ec(Ke), Ll = /* @__PURE__ */ kc(Ke), Kl = /* @__PURE__ */ Pc(Ke), be = /* @__PURE__ */ D("ZodType", (e, t) => (_e.init(e, t), Object.assign(e["~standard"], {
2688
+ }), Cl = /* @__PURE__ */ sn(Ke), Ml = /* @__PURE__ */ on(Ke), Dl = /* @__PURE__ */ an(Ke), Vl = /* @__PURE__ */ cn(Ke), ql = /* @__PURE__ */ $c(Ke), Fl = /* @__PURE__ */ bc(Ke), Zl = /* @__PURE__ */ wc(Ke), Ul = /* @__PURE__ */ Sc(Ke), xl = /* @__PURE__ */ Ec(Ke), Ll = /* @__PURE__ */ kc(Ke), Kl = /* @__PURE__ */ Pc(Ke), Jl = /* @__PURE__ */ jc(Ke), be = /* @__PURE__ */ D("ZodType", (e, t) => (_e.init(e, t), Object.assign(e["~standard"], {
2680
2689
  jsonSchema: {
2681
2690
  input: Wr(e, "input"),
2682
2691
  output: Wr(e, "output")
2683
2692
  }
2684
- }), e.toJSONSchema = tl(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(lt(t, {
2693
+ }), e.toJSONSchema = rl(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(lt(t, {
2685
2694
  checks: [
2686
2695
  ...t.checks ?? [],
2687
2696
  ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
2688
2697
  ]
2689
2698
  }), {
2690
2699
  parent: !0
2691
- }), e.with = e.check, e.clone = (r, n) => ft(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Tl(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ml(e, r, n), e.parseAsync = async (r, n) => Cl(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Dl(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => Vl(e, r, n), e.decode = (r, n) => ql(e, r, n), e.encodeAsync = async (r, n) => Fl(e, r, n), e.decodeAsync = async (r, n) => Zl(e, r, n), e.safeEncode = (r, n) => Ul(e, r, n), e.safeDecode = (r, n) => xl(e, r, n), e.safeEncodeAsync = async (r, n) => Ll(e, r, n), e.safeDecodeAsync = async (r, n) => Kl(e, r, n), e.refine = (r, n) => e.check(Ff(r, n)), e.superRefine = (r) => e.check(Zf(r)), e.overwrite = (r) => e.check(/* @__PURE__ */ Nt(r)), e.optional = () => Fs(e), e.exactOptional = () => Pf(e), e.nullable = () => Zs(e), e.nullish = () => Fs(Zs(e)), e.nonoptional = (r) => zf(e, r), e.array = () => Xe(e), e.or = (r) => Kn([e, r]), e.and = (r) => bf(e, r), e.transform = (r) => Us(e, Ef(r)), e.default = (r) => Af(e, r), e.prefault = (r) => Nf(e, r), e.catch = (r) => Tf(e, r), e.pipe = (r) => Us(e, r), e.readonly = () => Df(e), e.describe = (r) => {
2700
+ }), e.with = e.check, e.clone = (r, n) => ft(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Cl(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Dl(e, r, n), e.parseAsync = async (r, n) => Ml(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Vl(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => ql(e, r, n), e.decode = (r, n) => Fl(e, r, n), e.encodeAsync = async (r, n) => Zl(e, r, n), e.decodeAsync = async (r, n) => Ul(e, r, n), e.safeEncode = (r, n) => xl(e, r, n), e.safeDecode = (r, n) => Ll(e, r, n), e.safeEncodeAsync = async (r, n) => Kl(e, r, n), e.safeDecodeAsync = async (r, n) => Jl(e, r, n), e.refine = (r, n) => e.check(Zf(r, n)), e.superRefine = (r) => e.check(Uf(r)), e.overwrite = (r) => e.check(/* @__PURE__ */ Nt(r)), e.optional = () => Fs(e), e.exactOptional = () => jf(e), e.nullable = () => Zs(e), e.nullish = () => Fs(Zs(e)), e.nonoptional = (r) => If(e, r), e.array = () => Xe(e), e.or = (r) => Kn([e, r]), e.and = (r) => wf(e, r), e.transform = (r) => Us(e, kf(r)), e.default = (r) => Rf(e, r), e.prefault = (r) => zf(e, r), e.catch = (r) => Cf(e, r), e.pipe = (r) => Us(e, r), e.readonly = () => Vf(e), e.describe = (r) => {
2692
2701
  const n = e.clone();
2693
2702
  return Vt.add(n, { description: r }), n;
2694
2703
  }, Object.defineProperty(e, "description", {
@@ -2701,102 +2710,102 @@ const Il = (e, t) => {
2701
2710
  return Vt.get(e);
2702
2711
  const n = e.clone();
2703
2712
  return Vt.add(n, r[0]), n;
2704
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), ui = /* @__PURE__ */ D("_ZodString", (e, t) => {
2705
- ns.init(e, t), be.init(e, t), e._zod.processJSONSchema = (n, s, o) => nl(e, n, s);
2713
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), di = /* @__PURE__ */ D("_ZodString", (e, t) => {
2714
+ ns.init(e, t), be.init(e, t), e._zod.processJSONSchema = (n, s, o) => sl(e, n, s);
2706
2715
  const r = e._zod.bag;
2707
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ Fd(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ xd(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ Ld(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ Kd(...n)), e.min = (...n) => e.check(/* @__PURE__ */ Br(...n)), e.max = (...n) => e.check(/* @__PURE__ */ ni(...n)), e.length = (...n) => e.check(/* @__PURE__ */ si(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ Br(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ Zd(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ Ud(n)), e.trim = () => e.check(/* @__PURE__ */ Gd()), e.normalize = (...n) => e.check(/* @__PURE__ */ Jd(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ Hd()), e.toUpperCase = () => e.check(/* @__PURE__ */ Bd()), e.slugify = () => e.check(/* @__PURE__ */ Wd());
2708
- }), Jl = /* @__PURE__ */ D("ZodString", (e, t) => {
2709
- ns.init(e, t), ui.init(e, t), e.email = (r) => e.check(/* @__PURE__ */ ud(Gl, r)), e.url = (r) => e.check(/* @__PURE__ */ hd(Hl, r)), e.jwt = (r) => e.check(/* @__PURE__ */ Ad(df, r)), e.emoji = (r) => e.check(/* @__PURE__ */ pd(Bl, r)), e.guid = (r) => e.check(/* @__PURE__ */ Ns(Cs, r)), e.uuid = (r) => e.check(/* @__PURE__ */ dd(Kt, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ ld(Kt, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ fd(Kt, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ md(Kt, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ yd(Wl, r)), e.guid = (r) => e.check(/* @__PURE__ */ Ns(Cs, r)), e.cuid = (r) => e.check(/* @__PURE__ */ vd(Yl, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ gd(Xl, r)), e.ulid = (r) => e.check(/* @__PURE__ */ _d(Ql, r)), e.base64 = (r) => e.check(/* @__PURE__ */ Pd(af, r)), e.base64url = (r) => e.check(/* @__PURE__ */ Od(cf, r)), e.xid = (r) => e.check(/* @__PURE__ */ $d(ef, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ bd(tf, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ wd(rf, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ Sd(nf, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ Ed(sf, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ kd(of, r)), e.e164 = (r) => e.check(/* @__PURE__ */ jd(uf, r)), e.datetime = (r) => e.check(Pl(r)), e.date = (r) => e.check(jl(r)), e.time = (r) => e.check(Rl(r)), e.duration = (r) => e.check(zl(r));
2716
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ Zd(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ Ld(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ Kd(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ Jd(...n)), e.min = (...n) => e.check(/* @__PURE__ */ Br(...n)), e.max = (...n) => e.check(/* @__PURE__ */ si(...n)), e.length = (...n) => e.check(/* @__PURE__ */ oi(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ Br(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ Ud(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ xd(n)), e.trim = () => e.check(/* @__PURE__ */ Hd()), e.normalize = (...n) => e.check(/* @__PURE__ */ Gd(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ Bd()), e.toUpperCase = () => e.check(/* @__PURE__ */ Wd()), e.slugify = () => e.check(/* @__PURE__ */ Yd());
2717
+ }), Gl = /* @__PURE__ */ D("ZodString", (e, t) => {
2718
+ ns.init(e, t), di.init(e, t), e.email = (r) => e.check(/* @__PURE__ */ dd(Hl, r)), e.url = (r) => e.check(/* @__PURE__ */ pd(Bl, r)), e.jwt = (r) => e.check(/* @__PURE__ */ Rd(lf, r)), e.emoji = (r) => e.check(/* @__PURE__ */ yd(Wl, r)), e.guid = (r) => e.check(/* @__PURE__ */ Ns(Cs, r)), e.uuid = (r) => e.check(/* @__PURE__ */ ld(Kt, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ fd(Kt, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ md(Kt, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ hd(Kt, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ vd(Yl, r)), e.guid = (r) => e.check(/* @__PURE__ */ Ns(Cs, r)), e.cuid = (r) => e.check(/* @__PURE__ */ gd(Xl, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ _d(Ql, r)), e.ulid = (r) => e.check(/* @__PURE__ */ $d(ef, r)), e.base64 = (r) => e.check(/* @__PURE__ */ jd(cf, r)), e.base64url = (r) => e.check(/* @__PURE__ */ Od(uf, r)), e.xid = (r) => e.check(/* @__PURE__ */ bd(tf, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ wd(rf, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ Sd(nf, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ Ed(sf, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ kd(of, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ Pd(af, r)), e.e164 = (r) => e.check(/* @__PURE__ */ Ad(df, r)), e.datetime = (r) => e.check(jl(r)), e.date = (r) => e.check(Al(r)), e.time = (r) => e.check(Nl(r)), e.duration = (r) => e.check(Il(r));
2710
2719
  });
2711
2720
  function Ce(e) {
2712
- return /* @__PURE__ */ cd(Jl, e);
2721
+ return /* @__PURE__ */ ud(Gl, e);
2713
2722
  }
2714
2723
  const we = /* @__PURE__ */ D("ZodStringFormat", (e, t) => {
2715
- $e.init(e, t), ui.init(e, t);
2716
- }), Gl = /* @__PURE__ */ D("ZodEmail", (e, t) => {
2717
- hu.init(e, t), we.init(e, t);
2724
+ $e.init(e, t), di.init(e, t);
2725
+ }), Hl = /* @__PURE__ */ D("ZodEmail", (e, t) => {
2726
+ pu.init(e, t), we.init(e, t);
2718
2727
  }), Cs = /* @__PURE__ */ D("ZodGUID", (e, t) => {
2719
- fu.init(e, t), we.init(e, t);
2720
- }), Kt = /* @__PURE__ */ D("ZodUUID", (e, t) => {
2721
2728
  mu.init(e, t), we.init(e, t);
2722
- }), Hl = /* @__PURE__ */ D("ZodURL", (e, t) => {
2723
- pu.init(e, t), we.init(e, t);
2724
- }), Bl = /* @__PURE__ */ D("ZodEmoji", (e, t) => {
2729
+ }), Kt = /* @__PURE__ */ D("ZodUUID", (e, t) => {
2730
+ hu.init(e, t), we.init(e, t);
2731
+ }), Bl = /* @__PURE__ */ D("ZodURL", (e, t) => {
2725
2732
  yu.init(e, t), we.init(e, t);
2726
- }), Wl = /* @__PURE__ */ D("ZodNanoID", (e, t) => {
2733
+ }), Wl = /* @__PURE__ */ D("ZodEmoji", (e, t) => {
2727
2734
  vu.init(e, t), we.init(e, t);
2728
- }), Yl = /* @__PURE__ */ D("ZodCUID", (e, t) => {
2735
+ }), Yl = /* @__PURE__ */ D("ZodNanoID", (e, t) => {
2729
2736
  gu.init(e, t), we.init(e, t);
2730
- }), Xl = /* @__PURE__ */ D("ZodCUID2", (e, t) => {
2737
+ }), Xl = /* @__PURE__ */ D("ZodCUID", (e, t) => {
2731
2738
  _u.init(e, t), we.init(e, t);
2732
- }), Ql = /* @__PURE__ */ D("ZodULID", (e, t) => {
2739
+ }), Ql = /* @__PURE__ */ D("ZodCUID2", (e, t) => {
2733
2740
  $u.init(e, t), we.init(e, t);
2734
- }), ef = /* @__PURE__ */ D("ZodXID", (e, t) => {
2741
+ }), ef = /* @__PURE__ */ D("ZodULID", (e, t) => {
2735
2742
  bu.init(e, t), we.init(e, t);
2736
- }), tf = /* @__PURE__ */ D("ZodKSUID", (e, t) => {
2743
+ }), tf = /* @__PURE__ */ D("ZodXID", (e, t) => {
2737
2744
  wu.init(e, t), we.init(e, t);
2738
- }), rf = /* @__PURE__ */ D("ZodIPv4", (e, t) => {
2745
+ }), rf = /* @__PURE__ */ D("ZodKSUID", (e, t) => {
2746
+ Su.init(e, t), we.init(e, t);
2747
+ }), nf = /* @__PURE__ */ D("ZodIPv4", (e, t) => {
2739
2748
  Ou.init(e, t), we.init(e, t);
2740
- }), nf = /* @__PURE__ */ D("ZodIPv6", (e, t) => {
2741
- ju.init(e, t), we.init(e, t);
2742
- }), sf = /* @__PURE__ */ D("ZodCIDRv4", (e, t) => {
2749
+ }), sf = /* @__PURE__ */ D("ZodIPv6", (e, t) => {
2743
2750
  Au.init(e, t), we.init(e, t);
2744
- }), of = /* @__PURE__ */ D("ZodCIDRv6", (e, t) => {
2751
+ }), of = /* @__PURE__ */ D("ZodCIDRv4", (e, t) => {
2745
2752
  Ru.init(e, t), we.init(e, t);
2746
- }), af = /* @__PURE__ */ D("ZodBase64", (e, t) => {
2753
+ }), af = /* @__PURE__ */ D("ZodCIDRv6", (e, t) => {
2747
2754
  Nu.init(e, t), we.init(e, t);
2748
- }), cf = /* @__PURE__ */ D("ZodBase64URL", (e, t) => {
2749
- Iu.init(e, t), we.init(e, t);
2750
- }), uf = /* @__PURE__ */ D("ZodE164", (e, t) => {
2755
+ }), cf = /* @__PURE__ */ D("ZodBase64", (e, t) => {
2756
+ zu.init(e, t), we.init(e, t);
2757
+ }), uf = /* @__PURE__ */ D("ZodBase64URL", (e, t) => {
2751
2758
  Tu.init(e, t), we.init(e, t);
2752
- }), df = /* @__PURE__ */ D("ZodJWT", (e, t) => {
2753
- Mu.init(e, t), we.init(e, t);
2754
- }), di = /* @__PURE__ */ D("ZodNumber", (e, t) => {
2755
- Qa.init(e, t), be.init(e, t), e._zod.processJSONSchema = (n, s, o) => sl(e, n, s), e.gt = (n, s) => e.check(/* @__PURE__ */ Is(n, s)), e.gte = (n, s) => e.check(/* @__PURE__ */ bn(n, s)), e.min = (n, s) => e.check(/* @__PURE__ */ bn(n, s)), e.lt = (n, s) => e.check(/* @__PURE__ */ zs(n, s)), e.lte = (n, s) => e.check(/* @__PURE__ */ $n(n, s)), e.max = (n, s) => e.check(/* @__PURE__ */ $n(n, s)), e.int = (n) => e.check(Ms(n)), e.safe = (n) => e.check(Ms(n)), e.positive = (n) => e.check(/* @__PURE__ */ Is(0, n)), e.nonnegative = (n) => e.check(/* @__PURE__ */ bn(0, n)), e.negative = (n) => e.check(/* @__PURE__ */ zs(0, n)), e.nonpositive = (n) => e.check(/* @__PURE__ */ $n(0, n)), e.multipleOf = (n, s) => e.check(/* @__PURE__ */ Ts(n, s)), e.step = (n, s) => e.check(/* @__PURE__ */ Ts(n, s)), e.finite = () => e;
2759
+ }), df = /* @__PURE__ */ D("ZodE164", (e, t) => {
2760
+ Cu.init(e, t), we.init(e, t);
2761
+ }), lf = /* @__PURE__ */ D("ZodJWT", (e, t) => {
2762
+ Du.init(e, t), we.init(e, t);
2763
+ }), li = /* @__PURE__ */ D("ZodNumber", (e, t) => {
2764
+ ei.init(e, t), be.init(e, t), e._zod.processJSONSchema = (n, s, o) => ol(e, n, s), e.gt = (n, s) => e.check(/* @__PURE__ */ Is(n, s)), e.gte = (n, s) => e.check(/* @__PURE__ */ bn(n, s)), e.min = (n, s) => e.check(/* @__PURE__ */ bn(n, s)), e.lt = (n, s) => e.check(/* @__PURE__ */ zs(n, s)), e.lte = (n, s) => e.check(/* @__PURE__ */ $n(n, s)), e.max = (n, s) => e.check(/* @__PURE__ */ $n(n, s)), e.int = (n) => e.check(Ms(n)), e.safe = (n) => e.check(Ms(n)), e.positive = (n) => e.check(/* @__PURE__ */ Is(0, n)), e.nonnegative = (n) => e.check(/* @__PURE__ */ bn(0, n)), e.negative = (n) => e.check(/* @__PURE__ */ zs(0, n)), e.nonpositive = (n) => e.check(/* @__PURE__ */ $n(0, n)), e.multipleOf = (n, s) => e.check(/* @__PURE__ */ Ts(n, s)), e.step = (n, s) => e.check(/* @__PURE__ */ Ts(n, s)), e.finite = () => e;
2756
2765
  const r = e._zod.bag;
2757
2766
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
2758
2767
  });
2759
2768
  function Fe(e) {
2760
- return /* @__PURE__ */ Td(di, e);
2769
+ return /* @__PURE__ */ Cd(li, e);
2761
2770
  }
2762
- const lf = /* @__PURE__ */ D("ZodNumberFormat", (e, t) => {
2763
- Du.init(e, t), di.init(e, t);
2771
+ const ff = /* @__PURE__ */ D("ZodNumberFormat", (e, t) => {
2772
+ Vu.init(e, t), li.init(e, t);
2764
2773
  });
2765
2774
  function Ms(e) {
2766
- return /* @__PURE__ */ Cd(lf, e);
2775
+ return /* @__PURE__ */ Md(ff, e);
2767
2776
  }
2768
- const ff = /* @__PURE__ */ D("ZodBoolean", (e, t) => {
2769
- Vu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ol(e, r, n);
2777
+ const mf = /* @__PURE__ */ D("ZodBoolean", (e, t) => {
2778
+ qu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => al(e, r, n);
2770
2779
  });
2771
2780
  function Yr(e) {
2772
- return /* @__PURE__ */ Md(ff, e);
2781
+ return /* @__PURE__ */ Dd(mf, e);
2773
2782
  }
2774
- const mf = /* @__PURE__ */ D("ZodAny", (e, t) => {
2775
- qu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => il();
2783
+ const hf = /* @__PURE__ */ D("ZodAny", (e, t) => {
2784
+ Fu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => cl();
2776
2785
  });
2777
2786
  function Ds() {
2778
- return /* @__PURE__ */ Dd(mf);
2787
+ return /* @__PURE__ */ Vd(hf);
2779
2788
  }
2780
- const hf = /* @__PURE__ */ D("ZodUnknown", (e, t) => {
2781
- Fu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => cl();
2789
+ const pf = /* @__PURE__ */ D("ZodUnknown", (e, t) => {
2790
+ Zu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ul();
2782
2791
  });
2783
2792
  function Vs() {
2784
- return /* @__PURE__ */ Vd(hf);
2793
+ return /* @__PURE__ */ qd(pf);
2785
2794
  }
2786
- const pf = /* @__PURE__ */ D("ZodNever", (e, t) => {
2787
- Zu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => al(e, r, n);
2795
+ const yf = /* @__PURE__ */ D("ZodNever", (e, t) => {
2796
+ Uu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => il(e, r, n);
2788
2797
  });
2789
- function yf(e) {
2790
- return /* @__PURE__ */ qd(pf, e);
2798
+ function vf(e) {
2799
+ return /* @__PURE__ */ Fd(yf, e);
2791
2800
  }
2792
- const vf = /* @__PURE__ */ D("ZodArray", (e, t) => {
2793
- Uu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => fl(e, r, n, s), e.element = t.element, e.min = (r, n) => e.check(/* @__PURE__ */ Br(r, n)), e.nonempty = (r) => e.check(/* @__PURE__ */ Br(1, r)), e.max = (r, n) => e.check(/* @__PURE__ */ ni(r, n)), e.length = (r, n) => e.check(/* @__PURE__ */ si(r, n)), e.unwrap = () => e.element;
2801
+ const gf = /* @__PURE__ */ D("ZodArray", (e, t) => {
2802
+ xu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ml(e, r, n, s), e.element = t.element, e.min = (r, n) => e.check(/* @__PURE__ */ Br(r, n)), e.nonempty = (r) => e.check(/* @__PURE__ */ Br(1, r)), e.max = (r, n) => e.check(/* @__PURE__ */ si(r, n)), e.length = (r, n) => e.check(/* @__PURE__ */ oi(r, n)), e.unwrap = () => e.element;
2794
2803
  });
2795
2804
  function Xe(e, t) {
2796
- return /* @__PURE__ */ Yd(vf, e, t);
2805
+ return /* @__PURE__ */ Xd(gf, e, t);
2797
2806
  }
2798
- const gf = /* @__PURE__ */ D("ZodObject", (e, t) => {
2799
- Lu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ml(e, r, n, s), ue(e, "shape", () => t.shape), e.keyof = () => li(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Vs() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Vs() }), e.strict = () => e.clone({ ...e._zod.def, catchall: yf() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => cc(e, r), e.safeExtend = (r) => uc(e, r), e.merge = (r) => dc(e, r), e.pick = (r) => ac(e, r), e.omit = (r) => ic(e, r), e.partial = (...r) => lc(fi, e, r[0]), e.required = (...r) => fc(mi, e, r[0]);
2807
+ const _f = /* @__PURE__ */ D("ZodObject", (e, t) => {
2808
+ Ku.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => hl(e, r, n, s), ue(e, "shape", () => t.shape), e.keyof = () => fi(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Vs() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Vs() }), e.strict = () => e.clone({ ...e._zod.def, catchall: vf() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => uc(e, r), e.safeExtend = (r) => dc(e, r), e.merge = (r) => lc(e, r), e.pick = (r) => ic(e, r), e.omit = (r) => cc(e, r), e.partial = (...r) => fc(mi, e, r[0]), e.required = (...r) => mc(hi, e, r[0]);
2800
2809
  });
2801
2810
  function Jr(e, t) {
2802
2811
  const r = {
@@ -2804,33 +2813,33 @@ function Jr(e, t) {
2804
2813
  shape: e ?? {},
2805
2814
  ...ee(t)
2806
2815
  };
2807
- return new gf(r);
2816
+ return new _f(r);
2808
2817
  }
2809
- const _f = /* @__PURE__ */ D("ZodUnion", (e, t) => {
2810
- Ku.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => hl(e, r, n, s), e.options = t.options;
2818
+ const $f = /* @__PURE__ */ D("ZodUnion", (e, t) => {
2819
+ Ju.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => pl(e, r, n, s), e.options = t.options;
2811
2820
  });
2812
2821
  function Kn(e, t) {
2813
- return new _f({
2822
+ return new $f({
2814
2823
  type: "union",
2815
2824
  options: e,
2816
2825
  ...ee(t)
2817
2826
  });
2818
2827
  }
2819
- const $f = /* @__PURE__ */ D("ZodIntersection", (e, t) => {
2820
- Ju.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => pl(e, r, n, s);
2828
+ const bf = /* @__PURE__ */ D("ZodIntersection", (e, t) => {
2829
+ Gu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => yl(e, r, n, s);
2821
2830
  });
2822
- function bf(e, t) {
2823
- return new $f({
2831
+ function wf(e, t) {
2832
+ return new bf({
2824
2833
  type: "intersection",
2825
2834
  left: e,
2826
2835
  right: t
2827
2836
  });
2828
2837
  }
2829
- const wf = /* @__PURE__ */ D("ZodRecord", (e, t) => {
2830
- Gu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => yl(e, r, n, s), e.keyType = t.keyType, e.valueType = t.valueType;
2838
+ const Sf = /* @__PURE__ */ D("ZodRecord", (e, t) => {
2839
+ Hu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => vl(e, r, n, s), e.keyType = t.keyType, e.valueType = t.valueType;
2831
2840
  });
2832
2841
  function qs(e, t, r) {
2833
- return new wf({
2842
+ return new Sf({
2834
2843
  type: "record",
2835
2844
  keyType: e,
2836
2845
  valueType: t,
@@ -2838,7 +2847,7 @@ function qs(e, t, r) {
2838
2847
  });
2839
2848
  }
2840
2849
  const Jn = /* @__PURE__ */ D("ZodEnum", (e, t) => {
2841
- Hu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (n, s, o) => ul(e, n, s), e.enum = t.entries, e.options = Object.values(t.entries);
2850
+ Bu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (n, s, o) => dl(e, n, s), e.enum = t.entries, e.options = Object.values(t.entries);
2842
2851
  const r = new Set(Object.keys(t.entries));
2843
2852
  e.extract = (n, s) => {
2844
2853
  const o = {};
@@ -2868,7 +2877,7 @@ const Jn = /* @__PURE__ */ D("ZodEnum", (e, t) => {
2868
2877
  });
2869
2878
  };
2870
2879
  });
2871
- function li(e, t) {
2880
+ function fi(e, t) {
2872
2881
  const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
2873
2882
  return new Jn({
2874
2883
  type: "enum",
@@ -2876,10 +2885,10 @@ function li(e, t) {
2876
2885
  ...ee(t)
2877
2886
  });
2878
2887
  }
2879
- const Sf = /* @__PURE__ */ D("ZodTransform", (e, t) => {
2880
- Bu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ll(e, r), e._zod.parse = (r, n) => {
2888
+ const Ef = /* @__PURE__ */ D("ZodTransform", (e, t) => {
2889
+ Wu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => fl(e, r), e._zod.parse = (r, n) => {
2881
2890
  if (n.direction === "backward")
2882
- throw new qa(e.constructor.name);
2891
+ throw new Fa(e.constructor.name);
2883
2892
  r.addIssue = (o) => {
2884
2893
  if (typeof o == "string")
2885
2894
  r.issues.push(Ft(o, r.value, t));
@@ -2892,32 +2901,32 @@ const Sf = /* @__PURE__ */ D("ZodTransform", (e, t) => {
2892
2901
  return s instanceof Promise ? s.then((o) => (r.value = o, r)) : (r.value = s, r);
2893
2902
  };
2894
2903
  });
2895
- function Ef(e) {
2896
- return new Sf({
2904
+ function kf(e) {
2905
+ return new Ef({
2897
2906
  type: "transform",
2898
2907
  transform: e
2899
2908
  });
2900
2909
  }
2901
- const fi = /* @__PURE__ */ D("ZodOptional", (e, t) => {
2902
- ri.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ci(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2910
+ const mi = /* @__PURE__ */ D("ZodOptional", (e, t) => {
2911
+ ni.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ui(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2903
2912
  });
2904
2913
  function Fs(e) {
2905
- return new fi({
2914
+ return new mi({
2906
2915
  type: "optional",
2907
2916
  innerType: e
2908
2917
  });
2909
2918
  }
2910
- const kf = /* @__PURE__ */ D("ZodExactOptional", (e, t) => {
2911
- Wu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ci(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2919
+ const Pf = /* @__PURE__ */ D("ZodExactOptional", (e, t) => {
2920
+ Yu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ui(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2912
2921
  });
2913
- function Pf(e) {
2914
- return new kf({
2922
+ function jf(e) {
2923
+ return new Pf({
2915
2924
  type: "optional",
2916
2925
  innerType: e
2917
2926
  });
2918
2927
  }
2919
2928
  const Of = /* @__PURE__ */ D("ZodNullable", (e, t) => {
2920
- Yu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => vl(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2929
+ Xu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => gl(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2921
2930
  });
2922
2931
  function Zs(e) {
2923
2932
  return new Of({
@@ -2925,90 +2934,90 @@ function Zs(e) {
2925
2934
  innerType: e
2926
2935
  });
2927
2936
  }
2928
- const jf = /* @__PURE__ */ D("ZodDefault", (e, t) => {
2929
- Xu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => _l(e, r, n, s), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2937
+ const Af = /* @__PURE__ */ D("ZodDefault", (e, t) => {
2938
+ Qu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => $l(e, r, n, s), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2930
2939
  });
2931
- function Af(e, t) {
2932
- return new jf({
2940
+ function Rf(e, t) {
2941
+ return new Af({
2933
2942
  type: "default",
2934
2943
  innerType: e,
2935
2944
  get defaultValue() {
2936
- return typeof t == "function" ? t() : xa(t);
2945
+ return typeof t == "function" ? t() : La(t);
2937
2946
  }
2938
2947
  });
2939
2948
  }
2940
- const Rf = /* @__PURE__ */ D("ZodPrefault", (e, t) => {
2941
- Qu.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => $l(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2949
+ const Nf = /* @__PURE__ */ D("ZodPrefault", (e, t) => {
2950
+ ed.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => bl(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2942
2951
  });
2943
- function Nf(e, t) {
2944
- return new Rf({
2952
+ function zf(e, t) {
2953
+ return new Nf({
2945
2954
  type: "prefault",
2946
2955
  innerType: e,
2947
2956
  get defaultValue() {
2948
- return typeof t == "function" ? t() : xa(t);
2957
+ return typeof t == "function" ? t() : La(t);
2949
2958
  }
2950
2959
  });
2951
2960
  }
2952
- const mi = /* @__PURE__ */ D("ZodNonOptional", (e, t) => {
2953
- ed.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => gl(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2961
+ const hi = /* @__PURE__ */ D("ZodNonOptional", (e, t) => {
2962
+ td.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => _l(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2954
2963
  });
2955
- function zf(e, t) {
2956
- return new mi({
2964
+ function If(e, t) {
2965
+ return new hi({
2957
2966
  type: "nonoptional",
2958
2967
  innerType: e,
2959
2968
  ...ee(t)
2960
2969
  });
2961
2970
  }
2962
- const If = /* @__PURE__ */ D("ZodCatch", (e, t) => {
2963
- td.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => bl(e, r, n, s), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2971
+ const Tf = /* @__PURE__ */ D("ZodCatch", (e, t) => {
2972
+ rd.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => wl(e, r, n, s), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2964
2973
  });
2965
- function Tf(e, t) {
2966
- return new If({
2974
+ function Cf(e, t) {
2975
+ return new Tf({
2967
2976
  type: "catch",
2968
2977
  innerType: e,
2969
2978
  catchValue: typeof t == "function" ? t : () => t
2970
2979
  });
2971
2980
  }
2972
- const Cf = /* @__PURE__ */ D("ZodPipe", (e, t) => {
2973
- rd.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => wl(e, r, n, s), e.in = t.in, e.out = t.out;
2981
+ const Mf = /* @__PURE__ */ D("ZodPipe", (e, t) => {
2982
+ nd.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => Sl(e, r, n, s), e.in = t.in, e.out = t.out;
2974
2983
  });
2975
2984
  function Us(e, t) {
2976
- return new Cf({
2985
+ return new Mf({
2977
2986
  type: "pipe",
2978
2987
  in: e,
2979
2988
  out: t
2980
2989
  // ...util.normalizeParams(params),
2981
2990
  });
2982
2991
  }
2983
- const Mf = /* @__PURE__ */ D("ZodReadonly", (e, t) => {
2984
- nd.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => Sl(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2992
+ const Df = /* @__PURE__ */ D("ZodReadonly", (e, t) => {
2993
+ sd.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => El(e, r, n, s), e.unwrap = () => e._zod.def.innerType;
2985
2994
  });
2986
- function Df(e) {
2987
- return new Mf({
2995
+ function Vf(e) {
2996
+ return new Df({
2988
2997
  type: "readonly",
2989
2998
  innerType: e
2990
2999
  });
2991
3000
  }
2992
- const Vf = /* @__PURE__ */ D("ZodLazy", (e, t) => {
2993
- sd.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => El(e, r, n, s), e.unwrap = () => e._zod.def.getter();
3001
+ const qf = /* @__PURE__ */ D("ZodLazy", (e, t) => {
3002
+ od.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => kl(e, r, n, s), e.unwrap = () => e._zod.def.getter();
2994
3003
  });
2995
3004
  function ot(e) {
2996
- return new Vf({
3005
+ return new qf({
2997
3006
  type: "lazy",
2998
3007
  getter: e
2999
3008
  });
3000
3009
  }
3001
- const qf = /* @__PURE__ */ D("ZodCustom", (e, t) => {
3002
- od.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => dl(e, r);
3010
+ const Ff = /* @__PURE__ */ D("ZodCustom", (e, t) => {
3011
+ ad.init(e, t), be.init(e, t), e._zod.processJSONSchema = (r, n, s) => ll(e, r);
3003
3012
  });
3004
- function Ff(e, t = {}) {
3005
- return /* @__PURE__ */ Xd(qf, e, t);
3013
+ function Zf(e, t = {}) {
3014
+ return /* @__PURE__ */ Qd(Ff, e, t);
3006
3015
  }
3007
- function Zf(e) {
3008
- return /* @__PURE__ */ Qd(e);
3016
+ function Uf(e) {
3017
+ return /* @__PURE__ */ el(e);
3009
3018
  }
3010
- const Uf = Jr({
3011
- type: li(["string", "number", "integer", "boolean", "object", "array", "ref"]).optional(),
3019
+ const xf = Jr({
3020
+ type: fi(["string", "number", "integer", "boolean", "object", "array", "ref"]).optional(),
3012
3021
  title: Ce().optional(),
3013
3022
  description: Ce().optional(),
3014
3023
  default: Ds().optional(),
@@ -3034,7 +3043,7 @@ const Uf = Jr({
3034
3043
  $id: Ce().optional(),
3035
3044
  $schema: Ce().optional(),
3036
3045
  $ref: Ce().optional()
3037
- }), xe = Uf.extend({
3046
+ }), xe = xf.extend({
3038
3047
  properties: ot(() => qs(Ce(), xe)).optional(),
3039
3048
  items: ot(() => Kn([xe, Xe(xe)])).optional(),
3040
3049
  required: Xe(Ce()).optional(),
@@ -3044,7 +3053,7 @@ const Uf = Jr({
3044
3053
  oneOf: ot(() => Xe(xe)).optional(),
3045
3054
  not: ot(() => xe).optional(),
3046
3055
  $defs: ot(() => qs(Ce(), xe)).optional()
3047
- }), xf = Jr({
3056
+ }), Lf = Jr({
3048
3057
  root: xe,
3049
3058
  properties: Xe(
3050
3059
  Jr({
@@ -3063,8 +3072,8 @@ const Uf = Jr({
3063
3072
  )
3064
3073
  });
3065
3074
  var Zt = (e) => e.type === "checkbox", vt = (e) => e instanceof Date, Me = (e) => e == null;
3066
- const hi = (e) => typeof e == "object";
3067
- var ke = (e) => !Me(e) && !Array.isArray(e) && hi(e) && !vt(e), Lf = (e) => ke(e) && e.target ? Zt(e.target) ? e.target.checked : e.target.value : e, Kf = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Jf = (e, t) => e.has(Kf(t)), Gf = (e) => {
3075
+ const pi = (e) => typeof e == "object";
3076
+ var ke = (e) => !Me(e) && !Array.isArray(e) && pi(e) && !vt(e), Kf = (e) => ke(e) && e.target ? Zt(e.target) ? e.target.checked : e.target.value : e, Jf = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Gf = (e, t) => e.has(Jf(t)), Hf = (e) => {
3068
3077
  const t = e.constructor && e.constructor.prototype;
3069
3078
  return ke(t) && t.hasOwnProperty("isPrototypeOf");
3070
3079
  }, ss = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -3075,7 +3084,7 @@ function ge(e) {
3075
3084
  if (ss && (e instanceof Blob || t))
3076
3085
  return e;
3077
3086
  const r = Array.isArray(e);
3078
- if (!r && !(ke(e) && Gf(e)))
3087
+ if (!r && !(ke(e) && Hf(e)))
3079
3088
  return e;
3080
3089
  const n = r ? [] : Object.create(Object.getPrototypeOf(e));
3081
3090
  for (const s in e)
@@ -3119,10 +3128,10 @@ const xs = {
3119
3128
  pattern: "pattern",
3120
3129
  required: "required",
3121
3130
  validate: "validate"
3122
- }, pi = fe.createContext(null);
3123
- pi.displayName = "HookFormControlContext";
3124
- const Hf = () => fe.useContext(pi);
3125
- var Bf = (e, t, r, n = !0) => {
3131
+ }, yi = fe.createContext(null);
3132
+ yi.displayName = "HookFormControlContext";
3133
+ const Bf = () => fe.useContext(yi);
3134
+ var Wf = (e, t, r, n = !0) => {
3126
3135
  const s = {
3127
3136
  defaultValues: t._defaultValues
3128
3137
  };
@@ -3135,8 +3144,8 @@ var Bf = (e, t, r, n = !0) => {
3135
3144
  });
3136
3145
  return s;
3137
3146
  };
3138
- const yi = typeof window < "u" ? fe.useLayoutEffect : fe.useEffect;
3139
- var Ue = (e) => typeof e == "string", Wf = (e, t, r, n, s) => Ue(e) ? (n && t.watch.add(e), W(r, e, s)) : Array.isArray(e) ? e.map((o) => (n && t.watch.add(o), W(r, o))) : (n && (t.watchAll = !0), r), Gn = (e) => Me(e) || !hi(e);
3147
+ const vi = typeof window < "u" ? fe.useLayoutEffect : fe.useEffect;
3148
+ var Ue = (e) => typeof e == "string", Yf = (e, t, r, n, s) => Ue(e) ? (n && t.watch.add(e), W(r, e, s)) : Array.isArray(e) ? e.map((o) => (n && t.watch.add(o), W(r, o))) : (n && (t.watchAll = !0), r), Gn = (e) => Me(e) || !pi(e);
3140
3149
  function ct(e, t, r = /* @__PURE__ */ new WeakSet()) {
3141
3150
  if (Gn(e) || Gn(t))
3142
3151
  return Object.is(e, t);
@@ -3160,8 +3169,8 @@ function ct(e, t, r = /* @__PURE__ */ new WeakSet()) {
3160
3169
  }
3161
3170
  return !0;
3162
3171
  }
3163
- const Yf = fe.createContext(null);
3164
- Yf.displayName = "HookFormContext";
3172
+ const Xf = fe.createContext(null);
3173
+ Xf.displayName = "HookFormContext";
3165
3174
  var as = (e, t, r, n, s) => t ? {
3166
3175
  ...r[e],
3167
3176
  types: {
@@ -3188,13 +3197,13 @@ var as = (e, t, r, n, s) => t ? {
3188
3197
  }
3189
3198
  };
3190
3199
  };
3191
- function vi(e, t) {
3200
+ function gi(e, t) {
3192
3201
  const r = {};
3193
3202
  for (const n in e)
3194
3203
  if (e.hasOwnProperty(n)) {
3195
3204
  const s = e[n], o = t[n];
3196
3205
  if (s && ke(s) && o) {
3197
- const a = vi(s, o);
3206
+ const a = gi(s, o);
3198
3207
  ke(a) && (r[n] = a);
3199
3208
  } else e[n] && (r[n] = o);
3200
3209
  }
@@ -3205,37 +3214,37 @@ var Ne = (e) => ke(e) && !Object.keys(e).length, is = (e) => e.type === "file",
3205
3214
  return !1;
3206
3215
  const t = e ? e.ownerDocument : 0;
3207
3216
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
3208
- }, gi = (e) => e.type === "select-multiple", cs = (e) => e.type === "radio", Xf = (e) => cs(e) || Zt(e), wn = (e) => Xr(e) && e.isConnected;
3209
- function Qf(e, t) {
3217
+ }, _i = (e) => e.type === "select-multiple", cs = (e) => e.type === "radio", Qf = (e) => cs(e) || Zt(e), wn = (e) => Xr(e) && e.isConnected;
3218
+ function em(e, t) {
3210
3219
  const r = t.slice(0, -1).length;
3211
3220
  let n = 0;
3212
3221
  for (; n < r; )
3213
3222
  e = ve(e) ? n++ : e[t[n++]];
3214
3223
  return e;
3215
3224
  }
3216
- function em(e) {
3225
+ function tm(e) {
3217
3226
  for (const t in e)
3218
3227
  if (e.hasOwnProperty(t) && !ve(e[t]))
3219
3228
  return !1;
3220
3229
  return !0;
3221
3230
  }
3222
3231
  function Se(e, t) {
3223
- const r = Array.isArray(t) ? t : dn(t) ? [t] : os(t), n = r.length === 1 ? e : Qf(e, r), s = r.length - 1, o = r[s];
3224
- return n && delete n[o], s !== 0 && (ke(n) && Ne(n) || Array.isArray(n) && em(n)) && Se(e, r.slice(0, -1)), e;
3232
+ const r = Array.isArray(t) ? t : dn(t) ? [t] : os(t), n = r.length === 1 ? e : em(e, r), s = r.length - 1, o = r[s];
3233
+ return n && delete n[o], s !== 0 && (ke(n) && Ne(n) || Array.isArray(n) && tm(n)) && Se(e, r.slice(0, -1)), e;
3225
3234
  }
3226
- var tm = (e) => {
3235
+ var rm = (e) => {
3227
3236
  for (const t in e)
3228
3237
  if (He(e[t]))
3229
3238
  return !0;
3230
3239
  return !1;
3231
3240
  };
3232
- function _i(e) {
3233
- return Array.isArray(e) || ke(e) && !tm(e);
3241
+ function $i(e) {
3242
+ return Array.isArray(e) || ke(e) && !rm(e);
3234
3243
  }
3235
3244
  function Hn(e, t = {}) {
3236
3245
  for (const r in e) {
3237
3246
  const n = e[r];
3238
- _i(n) ? (t[r] = Array.isArray(n) ? [] : {}, Hn(n, t[r])) : ve(n) || (t[r] = !0);
3247
+ $i(n) ? (t[r] = Array.isArray(n) ? [] : {}, Hn(n, t[r])) : ve(n) || (t[r] = !0);
3239
3248
  }
3240
3249
  return t;
3241
3250
  }
@@ -3243,7 +3252,7 @@ function Et(e, t, r) {
3243
3252
  r || (r = Hn(t));
3244
3253
  for (const n in e) {
3245
3254
  const s = e[n];
3246
- if (_i(s))
3255
+ if ($i(s))
3247
3256
  ve(t) || Gn(r[n]) ? r[n] = Hn(s, Array.isArray(s) ? [] : {}) : Et(s, Me(t) ? {} : t[n], r[n]);
3248
3257
  else {
3249
3258
  const o = t[n];
@@ -3256,7 +3265,7 @@ const Ks = {
3256
3265
  value: !1,
3257
3266
  isValid: !1
3258
3267
  }, Js = { value: !0, isValid: !0 };
3259
- var $i = (e) => {
3268
+ var bi = (e) => {
3260
3269
  if (Array.isArray(e)) {
3261
3270
  if (e.length > 1) {
3262
3271
  const t = e.filter((r) => r && r.checked && !r.disabled).map((r) => r.value);
@@ -3268,20 +3277,20 @@ var $i = (e) => {
3268
3277
  ) : Ks;
3269
3278
  }
3270
3279
  return Ks;
3271
- }, bi = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => ve(e) ? e : t ? e === "" ? NaN : e && +e : r && Ue(e) ? new Date(e) : n ? n(e) : e;
3280
+ }, wi = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => ve(e) ? e : t ? e === "" ? NaN : e && +e : r && Ue(e) ? new Date(e) : n ? n(e) : e;
3272
3281
  const Gs = {
3273
3282
  isValid: !1,
3274
3283
  value: null
3275
3284
  };
3276
- var wi = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disabled ? {
3285
+ var Si = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disabled ? {
3277
3286
  isValid: !0,
3278
3287
  value: r.value
3279
3288
  } : t, Gs) : Gs;
3280
3289
  function Hs(e) {
3281
3290
  const t = e.ref;
3282
- return is(t) ? t.files : cs(t) ? wi(e.refs).value : gi(t) ? [...t.selectedOptions].map(({ value: r }) => r) : Zt(t) ? $i(e.refs).value : bi(ve(t.value) ? e.ref.value : t.value, e);
3291
+ return is(t) ? t.files : cs(t) ? Si(e.refs).value : _i(t) ? [...t.selectedOptions].map(({ value: r }) => r) : Zt(t) ? bi(e.refs).value : wi(ve(t.value) ? e.ref.value : t.value, e);
3283
3292
  }
3284
- var rm = (e, t, r, n) => {
3293
+ var nm = (e, t, r, n) => {
3285
3294
  const s = {};
3286
3295
  for (const o of e) {
3287
3296
  const a = W(t, o);
@@ -3293,7 +3302,7 @@ var rm = (e, t, r, n) => {
3293
3302
  fields: s,
3294
3303
  shouldUseNativeValidation: n
3295
3304
  };
3296
- }, Qr = (e) => e instanceof RegExp, Tt = (e) => ve(e) ? e : Qr(e) ? e.source : ke(e) ? Qr(e.value) ? e.value.source : e.value : e, Ot = (e) => ({
3305
+ }, Qr = (e) => e instanceof RegExp, Tt = (e) => ve(e) ? e : Qr(e) ? e.source : ke(e) ? Qr(e.value) ? e.value.source : e.value : e, jt = (e) => ({
3297
3306
  isOnSubmit: !e || e === Le.onSubmit,
3298
3307
  isOnBlur: e === Le.onBlur,
3299
3308
  isOnChange: e === Le.onChange,
@@ -3301,7 +3310,7 @@ var rm = (e, t, r, n) => {
3301
3310
  isOnTouch: e === Le.onTouched
3302
3311
  });
3303
3312
  const Bs = "AsyncFunction";
3304
- var nm = (e) => !!e && !!e.validate && !!(He(e.validate) && e.validate.constructor.name === Bs || ke(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Bs)), sm = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Bn = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
3313
+ var sm = (e) => !!e && !!e.validate && !!(He(e.validate) && e.validate.constructor.name === Bs || ke(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Bs)), om = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Bn = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
3305
3314
  const At = (e, t, r, n) => {
3306
3315
  for (const s of r || Object.keys(e)) {
3307
3316
  const o = W(e, s);
@@ -3347,11 +3356,11 @@ function Ws(e, t, r) {
3347
3356
  name: r
3348
3357
  };
3349
3358
  }
3350
- var om = (e, t, r, n) => {
3359
+ var am = (e, t, r, n) => {
3351
3360
  r(e);
3352
3361
  const { name: s, ...o } = e;
3353
3362
  return Ne(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((a) => t[a] === (!n || Le.all));
3354
- }, am = (e, t, r) => !e || !t || e === t || De(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), im = (e, t, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(t || e) : (r ? n.isOnBlur : s.isOnBlur) ? !e : (r ? n.isOnChange : s.isOnChange) ? e : !0, cm = (e, t) => !ln(W(e, t)).length && Se(e, t), Si = (e, t, r) => {
3363
+ }, im = (e, t, r) => !e || !t || e === t || De(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), cm = (e, t, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(t || e) : (r ? n.isOnBlur : s.isOnBlur) ? !e : (r ? n.isOnChange : s.isOnChange) ? e : !0, um = (e, t) => !ln(W(e, t)).length && Se(e, t), Ei = (e, t, r) => {
3355
3364
  const n = De(W(e, r));
3356
3365
  return ye(n, "root", t[r]), ye(e, r, n), e;
3357
3366
  };
@@ -3381,7 +3390,7 @@ var _t = (e) => ke(e) && !Qr(e) ? e : {
3381
3390
  ...L(V ? te : he, me)
3382
3391
  };
3383
3392
  };
3384
- if (o ? !Array.isArray(f) || !f.length : c && (!z && (Z || Me(f)) || Ye(f) && !f || E && !$i(i).isValid || $ && !wi(i).isValid)) {
3393
+ if (o ? !Array.isArray(f) || !f.length : c && (!z && (Z || Me(f)) || Ye(f) && !f || E && !bi(i).isValid || $ && !Si(i).isValid)) {
3385
3394
  const { value: V, message: U } = Ue(c) ? { value: !!c, message: c } : _t(c);
3386
3395
  if (V && (d[S] = {
3387
3396
  type: Qe.required,
@@ -3447,14 +3456,14 @@ var _t = (e) => ke(e) && !Qr(e) ? e : {
3447
3456
  }
3448
3457
  return g(!0), d;
3449
3458
  };
3450
- const um = {
3459
+ const dm = {
3451
3460
  mode: Le.onSubmit,
3452
3461
  reValidateMode: Le.onChange,
3453
3462
  shouldFocusError: !0
3454
3463
  };
3455
- function dm(e = {}) {
3464
+ function lm(e = {}) {
3456
3465
  let t = {
3457
- ...um,
3466
+ ...dm,
3458
3467
  ...e
3459
3468
  }, r = {
3460
3469
  submitCount: 0,
@@ -3524,7 +3533,7 @@ function dm(e = {}) {
3524
3533
  }
3525
3534
  if (x && Array.isArray(W(r.errors, k))) {
3526
3535
  const Q = I(W(r.errors, k), B.argA, B.argB);
3527
- J && ye(r.errors, k, Q), cm(r.errors, k);
3536
+ J && ye(r.errors, k, Q), um(r.errors, k);
3528
3537
  }
3529
3538
  if ((v.touchedFields || l.touchedFields) && x && Array.isArray(W(r.touchedFields, k))) {
3530
3539
  const Q = I(W(r.touchedFields, k), B.argA, B.argB);
@@ -3586,7 +3595,7 @@ function dm(e = {}) {
3586
3595
  ...Q
3587
3596
  }, h.state.next(Q);
3588
3597
  }
3589
- }, z = async (k) => (_(k, !0), await t.resolver(o, t.context, rm(k || i.mount, n, t.criteriaMode, t.shouldUseNativeValidation))), Z = async (k) => {
3598
+ }, z = async (k) => (_(k, !0), await t.resolver(o, t.context, nm(k || i.mount, n, t.criteriaMode, t.shouldUseNativeValidation))), Z = async (k) => {
3590
3599
  const { errors: R } = await z(k);
3591
3600
  if (_(k), k)
3592
3601
  for (const I of k) {
@@ -3604,12 +3613,12 @@ function dm(e = {}) {
3604
3613
  if (J) {
3605
3614
  const { _f: x, ...Q } = J;
3606
3615
  if (x) {
3607
- const de = i.array.has(x.name), le = J._f && nm(J._f);
3616
+ const de = i.array.has(x.name), le = J._f && sm(J._f);
3608
3617
  le && v.validatingFields && _([x.name], !0);
3609
3618
  const Ae = await Wn(J, i.disabled, o, w, t.shouldUseNativeValidation && !R, de);
3610
3619
  if (le && v.validatingFields && _([x.name]), Ae[x.name] && (I.valid = !1, R || e.shouldUseNativeValidation))
3611
3620
  break;
3612
- !R && (W(Ae, x.name) ? de ? Si(r.errors, Ae, x.name) : ye(r.errors, x.name, Ae[x.name]) : Se(r.errors, x.name));
3621
+ !R && (W(Ae, x.name) ? de ? Ei(r.errors, Ae, x.name) : ye(r.errors, x.name, Ae[x.name]) : Se(r.errors, x.name));
3613
3622
  }
3614
3623
  !Ne(Q) && await L(Q, R, I);
3615
3624
  }
@@ -3621,14 +3630,14 @@ function dm(e = {}) {
3621
3630
  R && (R._f.refs ? R._f.refs.every((I) => !wn(I)) : !wn(R._f.ref)) && Y(k);
3622
3631
  }
3623
3632
  i.unMount = /* @__PURE__ */ new Set();
3624
- }, V = (k, R) => !t.disabled && (k && R && ye(o, k, R), !ct(O(), s)), U = (k, R, I) => Wf(k, i, {
3633
+ }, V = (k, R) => !t.disabled && (k && R && ye(o, k, R), !ct(j(), s)), U = (k, R, I) => Yf(k, i, {
3625
3634
  ...a.mount ? o : ve(R) ? s : Ue(k) ? { [k]: R } : R
3626
3635
  }, I, R), K = (k) => ln(W(a.mount ? o : s, k, t.shouldUnregister ? W(s, k, []) : [])), te = (k, R, I = {}) => {
3627
3636
  const B = W(n, k);
3628
3637
  let J = R;
3629
3638
  if (B) {
3630
3639
  const x = B._f;
3631
- x && (!x.disabled && ye(o, k, bi(R, x)), J = Xr(x.ref) && Me(R) ? "" : R, gi(x.ref) ? [...x.ref.options].forEach((Q) => Q.selected = J.includes(Q.value)) : x.refs ? Zt(x.ref) ? x.refs.forEach((Q) => {
3640
+ x && (!x.disabled && ye(o, k, wi(R, x)), J = Xr(x.ref) && Me(R) ? "" : R, _i(x.ref) ? [...x.ref.options].forEach((Q) => Q.selected = J.includes(Q.value)) : x.refs ? Zt(x.ref) ? x.refs.forEach((Q) => {
3632
3641
  (!Q.defaultChecked || !Q.disabled) && (Array.isArray(J) ? Q.checked = !!J.find((de) => de === Q.value) : Q.checked = J === Q.value || !!J);
3633
3642
  }) : x.refs.forEach((Q) => Q.checked = Q.value === J) : is(x.ref) ? x.ref.value = "" : (x.ref.value = J, x.ref.type || h.state.next({
3634
3643
  name: k,
@@ -3666,22 +3675,22 @@ function dm(e = {}) {
3666
3675
  let I = R.name, B = !0;
3667
3676
  const J = W(n, I), x = (le) => {
3668
3677
  B = Number.isNaN(le) || vt(le) && isNaN(le.getTime()) || ct(le, W(o, I, le));
3669
- }, Q = Ot(t.mode), de = Ot(t.reValidateMode);
3678
+ }, Q = jt(t.mode), de = jt(t.reValidateMode);
3670
3679
  if (J) {
3671
3680
  let le, Ae;
3672
- const mt = R.type ? Hs(J._f) : Lf(k), st = k.type === xs.BLUR || k.type === xs.FOCUS_OUT, Li = !sm(J._f) && !t.resolver && !W(r.errors, I) && !J._f.deps || im(st, W(r.touchedFields, I), r.isSubmitted, de, Q), yn = Bn(I, i, st);
3681
+ const mt = R.type ? Hs(J._f) : Kf(k), st = k.type === xs.BLUR || k.type === xs.FOCUS_OUT, Ki = !om(J._f) && !t.resolver && !W(r.errors, I) && !J._f.deps || cm(st, W(r.touchedFields, I), r.isSubmitted, de, Q), yn = Bn(I, i, st);
3673
3682
  ye(o, I, mt), st ? (!R || !R.readOnly) && (J._f.onBlur && J._f.onBlur(k), c && c(0)) : J._f.onChange && J._f.onChange(k);
3674
- const vn = $(I, mt, st), Ki = !Ne(vn) || yn;
3683
+ const vn = $(I, mt, st), Ji = !Ne(vn) || yn;
3675
3684
  if (!st && h.state.next({
3676
3685
  name: I,
3677
3686
  type: k.type,
3678
3687
  values: ge(o)
3679
- }), Li)
3680
- return (v.isValid || l.isValid) && (t.mode === "onBlur" ? st && p() : st || p()), Ki && h.state.next({ name: I, ...yn ? {} : vn });
3688
+ }), Ki)
3689
+ return (v.isValid || l.isValid) && (t.mode === "onBlur" ? st && p() : st || p()), Ji && h.state.next({ name: I, ...yn ? {} : vn });
3681
3690
  if (!st && yn && h.state.next({ ...r }), t.resolver) {
3682
3691
  const { errors: ps } = await z([I]);
3683
3692
  if (_([I]), x(mt), B) {
3684
- const Ji = Ws(r.errors, n, I), ys = Ws(ps, n, Ji.name || I);
3693
+ const Gi = Ws(r.errors, n, I), ys = Ws(ps, n, Gi.name || I);
3685
3694
  le = ys.error, I = ys.name, Ae = Ne(ps);
3686
3695
  }
3687
3696
  } else
@@ -3706,11 +3715,11 @@ function dm(e = {}) {
3706
3715
  ...t.resolver || !k ? { isValid: I } : {},
3707
3716
  errors: r.errors
3708
3717
  }), R.shouldFocus && !B && At(n, Pe, k ? J : i.mount), B;
3709
- }, O = (k, R) => {
3718
+ }, j = (k, R) => {
3710
3719
  let I = {
3711
3720
  ...a.mount ? o : s
3712
3721
  };
3713
- return R && (I = vi(R.dirtyFields ? r.dirtyFields : r.touchedFields, I)), ve(k) ? I : Ue(k) ? W(I, k) : k.map((B) => W(I, B));
3722
+ return R && (I = gi(R.dirtyFields ? r.dirtyFields : r.touchedFields, I)), ve(k) ? I : Ue(k) ? W(I, k) : k.map((B) => W(I, B));
3714
3723
  }, C = (k, R) => ({
3715
3724
  invalid: !!W((R || r).errors, k),
3716
3725
  isDirty: !!W((R || r).dirtyFields, k),
@@ -3736,7 +3745,7 @@ function dm(e = {}) {
3736
3745
  next: (I) => "values" in I && k(U(void 0, R), I)
3737
3746
  }) : U(k, R, !0), T = (k) => h.state.subscribe({
3738
3747
  next: (R) => {
3739
- am(k.name, R.name, k.exact) && om(R, k.formState || v, qe, k.reRenderRoot) && k.callback({
3748
+ im(k.name, R.name, k.exact) && am(R, k.formState || v, qe, k.reRenderRoot) && k.callback({
3740
3749
  values: { ...o },
3741
3750
  ...r,
3742
3751
  ...R,
@@ -3796,7 +3805,7 @@ function dm(e = {}) {
3796
3805
  ref: (J) => {
3797
3806
  if (J) {
3798
3807
  ae(k, R), I = W(n, k);
3799
- const x = ve(J.value) && J.querySelectorAll && J.querySelectorAll("input,select,textarea")[0] || J, Q = Xf(x), de = I._f.refs || [];
3808
+ const x = ve(J.value) && J.querySelectorAll && J.querySelectorAll("input,select,textarea")[0] || J, Q = Qf(x), de = I._f.refs || [];
3800
3809
  if (Q ? de.find((le) => le === x) : x === I._f.ref)
3801
3810
  return;
3802
3811
  ye(n, k, {
@@ -3813,10 +3822,10 @@ function dm(e = {}) {
3813
3822
  }
3814
3823
  }), d(k, !1, void 0, x);
3815
3824
  } else
3816
- I = W(n, k, {}), I._f && (I._f.mount = !1), (t.shouldUnregister || R.shouldUnregister) && !(Jf(i.array, k) && a.action) && i.unMount.add(k);
3825
+ I = W(n, k, {}), I._f && (I._f.mount = !1), (t.shouldUnregister || R.shouldUnregister) && !(Gf(i.array, k) && a.action) && i.unMount.add(k);
3817
3826
  }
3818
3827
  };
3819
- }, j = () => t.shouldFocusError && At(n, Pe, i.mount), N = (k) => {
3828
+ }, O = () => t.shouldFocusError && At(n, Pe, i.mount), N = (k) => {
3820
3829
  Ye(k) && (h.state.next({ disabled: k }), At(n, (R, I) => {
3821
3830
  const B = W(n, I);
3822
3831
  B && (R.disabled = B._f.disabled || k, Array.isArray(B._f.refs) && B._f.refs.forEach((J) => {
@@ -3847,7 +3856,7 @@ function dm(e = {}) {
3847
3856
  B = x;
3848
3857
  }
3849
3858
  } else
3850
- R && await R({ ...r.errors }, I), j(), setTimeout(j);
3859
+ R && await R({ ...r.errors }, I), O(), setTimeout(O);
3851
3860
  if (h.state.next({
3852
3861
  isSubmitted: !0,
3853
3862
  isSubmitting: !1,
@@ -3916,7 +3925,7 @@ function dm(e = {}) {
3916
3925
  isSubmitting: !1,
3917
3926
  defaultValues: s
3918
3927
  });
3919
- }, ne = (k, R) => X(He(k) ? k(o) : k, { ...t.resetOptions, ...R }), Oe = (k, R = {}) => {
3928
+ }, ne = (k, R) => X(He(k) ? k(o) : k, { ...t.resetOptions, ...R }), je = (k, R = {}) => {
3920
3929
  const I = W(n, k), B = I && I._f;
3921
3930
  if (B) {
3922
3931
  const J = B.refs ? B.refs[0] : B.ref;
@@ -3929,7 +3938,7 @@ function dm(e = {}) {
3929
3938
  ...r,
3930
3939
  ...k
3931
3940
  };
3932
- }, je = {
3941
+ }, Oe = {
3933
3942
  control: {
3934
3943
  register: ae,
3935
3944
  unregister: Y,
@@ -3939,7 +3948,7 @@ function dm(e = {}) {
3939
3948
  _subscribe: T,
3940
3949
  _runSchema: z,
3941
3950
  _updateIsValidating: _,
3942
- _focusError: j,
3951
+ _focusError: O,
3943
3952
  _getWatch: U,
3944
3953
  _getDirty: V,
3945
3954
  _setValid: p,
@@ -3997,18 +4006,18 @@ function dm(e = {}) {
3997
4006
  handleSubmit: F,
3998
4007
  watch: P,
3999
4008
  setValue: me,
4000
- getValues: O,
4009
+ getValues: j,
4001
4010
  reset: ne,
4002
4011
  resetField: G,
4003
4012
  clearErrors: A,
4004
4013
  unregister: Y,
4005
4014
  setError: b,
4006
- setFocus: Oe,
4015
+ setFocus: je,
4007
4016
  getFieldState: C
4008
4017
  };
4009
4018
  return {
4010
- ...je,
4011
- formControl: je
4019
+ ...Oe,
4020
+ formControl: Oe
4012
4021
  };
4013
4022
  }
4014
4023
  var at = () => {
@@ -4031,23 +4040,23 @@ function Pn(e, t, r) {
4031
4040
  ...e.slice(t)
4032
4041
  ];
4033
4042
  }
4034
- var On = (e, t, r) => Array.isArray(e) ? (ve(e[r]) && (e[r] = void 0), e.splice(r, 0, e.splice(t, 1)[0]), e) : [], jn = (e, t) => [
4043
+ var jn = (e, t, r) => Array.isArray(e) ? (ve(e[r]) && (e[r] = void 0), e.splice(r, 0, e.splice(t, 1)[0]), e) : [], On = (e, t) => [
4035
4044
  ...De(t),
4036
4045
  ...De(e)
4037
4046
  ];
4038
- function lm(e, t) {
4047
+ function fm(e, t) {
4039
4048
  let r = 0;
4040
4049
  const n = [...e];
4041
4050
  for (const s of t)
4042
4051
  n.splice(s - r, 1), r++;
4043
4052
  return ln(n).length ? n : [];
4044
4053
  }
4045
- var An = (e, t) => ve(t) ? [] : lm(e, De(t).sort((r, n) => r - n)), Rn = (e, t, r) => {
4054
+ var An = (e, t) => ve(t) ? [] : fm(e, De(t).sort((r, n) => r - n)), Rn = (e, t, r) => {
4046
4055
  [e[t], e[r]] = [e[r], e[t]];
4047
4056
  }, Xs = (e, t, r) => (e[t] = r, e);
4048
4057
  function Qs(e) {
4049
- const t = Hf(), { control: r = t, name: n, keyName: s = "id", shouldUnregister: o, rules: a } = e, [i, c] = fe.useState(r._getFieldArray(n)), u = fe.useRef(r._getFieldArray(n).map(at)), m = fe.useRef(!1);
4050
- r._names.array.add(n), fe.useMemo(() => a && i.length >= 0 && r.register(n, a), [r, n, i.length, a]), yi(() => r._subjects.array.subscribe({
4058
+ const t = Bf(), { control: r = t, name: n, keyName: s = "id", shouldUnregister: o, rules: a } = e, [i, c] = fe.useState(r._getFieldArray(n)), u = fe.useRef(r._getFieldArray(n).map(at)), m = fe.useRef(!1);
4059
+ r._names.array.add(n), fe.useMemo(() => a && i.length >= 0 && r.register(n, a), [r, n, i.length, a]), vi(() => r._subjects.array.subscribe({
4051
4060
  next: ({ values: g, name: d }) => {
4052
4061
  if (d === n || !d) {
4053
4062
  const $ = W(g, n);
@@ -4063,8 +4072,8 @@ function Qs(e) {
4063
4072
  argA: kn(g)
4064
4073
  });
4065
4074
  }, h = (g, d) => {
4066
- const $ = De(ge(g)), E = jn(r._getFieldArray(n), $);
4067
- r._names.focus = Sn(n, 0, d), u.current = jn(u.current, $.map(at)), v(E), c(E), r._setFieldArray(n, E, jn, {
4075
+ const $ = De(ge(g)), E = On(r._getFieldArray(n), $);
4076
+ r._names.focus = Sn(n, 0, d), u.current = On(u.current, $.map(at)), v(E), c(E), r._setFieldArray(n, E, On, {
4068
4077
  argA: kn(g)
4069
4078
  });
4070
4079
  }, w = (g) => {
@@ -4086,7 +4095,7 @@ function Qs(e) {
4086
4095
  }, !1);
4087
4096
  }, _ = (g, d) => {
4088
4097
  const $ = r._getFieldArray(n);
4089
- On($, g, d), On(u.current, g, d), v($), c($), r._setFieldArray(n, $, On, {
4098
+ jn($, g, d), jn(u.current, g, d), v($), c($), r._setFieldArray(n, $, jn, {
4090
4099
  argA: g,
4091
4100
  argB: d
4092
4101
  }, !1);
@@ -4103,7 +4112,7 @@ function Qs(e) {
4103
4112
  return fe.useEffect(() => {
4104
4113
  if (r._state.action = !1, Bn(n, r._names) && r._subjects.state.next({
4105
4114
  ...r._formState
4106
- }), m.current && (!Ot(r._options.mode).isOnSubmit || r._formState.isSubmitted) && !Ot(r._options.reValidateMode).isOnSubmit)
4115
+ }), m.current && (!jt(r._options.mode).isOnSubmit || r._formState.isSubmitted) && !jt(r._options.reValidateMode).isOnSubmit)
4107
4116
  if (r._options.resolver)
4108
4117
  r._runSchema([n]).then((g) => {
4109
4118
  r._updateIsValidating([n]);
@@ -4114,8 +4123,8 @@ function Qs(e) {
4114
4123
  });
4115
4124
  else {
4116
4125
  const g = W(r._fields, n);
4117
- g && g._f && !(Ot(r._options.reValidateMode).isOnSubmit && Ot(r._options.mode).isOnSubmit) && Wn(g, r._names.disabled, r._formValues, r._options.criteriaMode === Le.all, r._options.shouldUseNativeValidation, !0).then((d) => !Ne(d) && r._subjects.state.next({
4118
- errors: Si(r._formState.errors, d, n)
4126
+ g && g._f && !(jt(r._options.reValidateMode).isOnSubmit && jt(r._options.mode).isOnSubmit) && Wn(g, r._names.disabled, r._formValues, r._options.criteriaMode === Le.all, r._options.shouldUseNativeValidation, !0).then((d) => !Ne(d) && r._subjects.state.next({
4127
+ errors: Ei(r._formState.errors, d, n)
4119
4128
  }));
4120
4129
  }
4121
4130
  r._subjects.state.next({
@@ -4146,7 +4155,7 @@ function Qs(e) {
4146
4155
  })), [i, s])
4147
4156
  };
4148
4157
  }
4149
- function fm(e = {}) {
4158
+ function mm(e = {}) {
4150
4159
  const t = fe.useRef(void 0), r = fe.useRef(void 0), [n, s] = fe.useState({
4151
4160
  isDirty: !1,
4152
4161
  isValidating: !1,
@@ -4171,14 +4180,14 @@ function fm(e = {}) {
4171
4180
  formState: n
4172
4181
  }, e.defaultValues && !He(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
4173
4182
  else {
4174
- const { formControl: a, ...i } = dm(e);
4183
+ const { formControl: a, ...i } = lm(e);
4175
4184
  t.current = {
4176
4185
  ...i,
4177
4186
  formState: n
4178
4187
  };
4179
4188
  }
4180
4189
  const o = t.current.control;
4181
- return o._options = e, yi(() => {
4190
+ return o._options = e, vi(() => {
4182
4191
  const a = o._subscribe({
4183
4192
  formState: o._proxyFormState,
4184
4193
  callback: () => s({ ...o._formState }),
@@ -4211,7 +4220,7 @@ function fm(e = {}) {
4211
4220
  }), !((a = o._options.resetOptions) === null || a === void 0) && a.keepIsValid || o._setValid(), r.current = e.values, s((i) => ({ ...i }))) : o._resetDefaultValues();
4212
4221
  }, [o, e.values]), fe.useEffect(() => {
4213
4222
  o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
4214
- }), t.current.formState = fe.useMemo(() => Bf(n, o), [o, n]), t.current;
4223
+ }), t.current.formState = fe.useMemo(() => Wf(n, o), [o, n]), t.current;
4215
4224
  }
4216
4225
  const eo = (e, t, r) => {
4217
4226
  if (e && "reportValidity" in e) {
@@ -4228,13 +4237,13 @@ const eo = (e, t, r) => {
4228
4237
  const r = {};
4229
4238
  for (const n in e) {
4230
4239
  const s = W(t.fields, n), o = Object.assign(e[n] || {}, { ref: s && s.ref });
4231
- if (mm(t.names || Object.keys(e), n)) {
4240
+ if (hm(t.names || Object.keys(e), n)) {
4232
4241
  const a = Object.assign({}, W(r, n));
4233
4242
  ye(a, "root", o), ye(r, n, a);
4234
4243
  } else ye(r, n, o);
4235
4244
  }
4236
4245
  return r;
4237
- }, mm = (e, t) => {
4246
+ }, hm = (e, t) => {
4238
4247
  const r = ro(t);
4239
4248
  return e.some((n) => ro(n).match(`^${r}\\.\\d+`));
4240
4249
  };
@@ -4249,7 +4258,7 @@ function no(e, t) {
4249
4258
  }
4250
4259
  return r && r.then ? r.then(void 0, t) : r;
4251
4260
  }
4252
- function hm(e, t) {
4261
+ function pm(e, t) {
4253
4262
  for (var r = {}; e.length; ) {
4254
4263
  var n = e[0], s = n.code, o = n.message, a = n.path.join(".");
4255
4264
  if (!r[a]) if ("unionErrors" in n) {
@@ -4268,7 +4277,7 @@ function hm(e, t) {
4268
4277
  }
4269
4278
  return r;
4270
4279
  }
4271
- function pm(e, t) {
4280
+ function ym(e, t) {
4272
4281
  for (var r = {}; e.length; ) {
4273
4282
  var n = e[0], s = n.code, o = n.message, a = n.path.join(".");
4274
4283
  if (!r[a]) if (n.code === "invalid_union" && n.errors.length > 0) {
@@ -4287,7 +4296,7 @@ function pm(e, t) {
4287
4296
  }
4288
4297
  return r;
4289
4298
  }
4290
- function ym(e, t, r) {
4299
+ function vm(e, t, r) {
4291
4300
  if (r === void 0 && (r = {}), (function(n) {
4292
4301
  return "_def" in n && typeof n._def == "object" && "typeName" in n._def;
4293
4302
  })(e)) return function(n, s, o) {
@@ -4299,7 +4308,7 @@ function ym(e, t, r) {
4299
4308
  }, function(a) {
4300
4309
  if ((function(i) {
4301
4310
  return Array.isArray(i?.issues);
4302
- })(a)) return { values: {}, errors: to(hm(a.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
4311
+ })(a)) return { values: {}, errors: to(pm(a.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
4303
4312
  throw a;
4304
4313
  }));
4305
4314
  } catch (a) {
@@ -4311,13 +4320,13 @@ function ym(e, t, r) {
4311
4320
  })(e)) return function(n, s, o) {
4312
4321
  try {
4313
4322
  return Promise.resolve(no(function() {
4314
- return Promise.resolve((r.mode === "sync" ? pc : yc)(e, n, t)).then(function(a) {
4323
+ return Promise.resolve((r.mode === "sync" ? yc : vc)(e, n, t)).then(function(a) {
4315
4324
  return o.shouldUseNativeValidation && Yn({}, o), { errors: {}, values: r.raw ? Object.assign({}, n) : a };
4316
4325
  });
4317
4326
  }, function(a) {
4318
4327
  if ((function(i) {
4319
4328
  return i instanceof rs;
4320
- })(a)) return { values: {}, errors: to(pm(a.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
4329
+ })(a)) return { values: {}, errors: to(ym(a.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
4321
4330
  throw a;
4322
4331
  }));
4323
4332
  } catch (a) {
@@ -5119,17 +5128,17 @@ function re() {
5119
5128
  return typeof A == "boolean" || typeof A == "number" || A === null ? !A : (0, t._)`!${C(A)}`;
5120
5129
  }
5121
5130
  e.not = he;
5122
- const me = O(e.operators.AND);
5131
+ const me = j(e.operators.AND);
5123
5132
  function ce(...A) {
5124
5133
  return A.reduce(me);
5125
5134
  }
5126
5135
  e.and = ce;
5127
- const Pe = O(e.operators.OR);
5136
+ const Pe = j(e.operators.OR);
5128
5137
  function M(...A) {
5129
5138
  return A.reduce(Pe);
5130
5139
  }
5131
5140
  e.or = M;
5132
- function O(A) {
5141
+ function j(A) {
5133
5142
  return (b, P) => b === t.nil ? P : P === t.nil ? b : (0, t._)`${C(b)} ${A} ${C(P)}`;
5134
5143
  }
5135
5144
  function C(A) {
@@ -5390,7 +5399,7 @@ function mn() {
5390
5399
  })(zn)), zn;
5391
5400
  }
5392
5401
  var fo;
5393
- function vm() {
5402
+ function gm() {
5394
5403
  if (fo) return ht;
5395
5404
  fo = 1, Object.defineProperty(ht, "__esModule", { value: !0 }), ht.boolOrEmptySchema = ht.topBoolOrEmptySchema = void 0;
5396
5405
  const e = /* @__PURE__ */ mn(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ Be(), n = {
@@ -5422,7 +5431,7 @@ function vm() {
5422
5431
  return ht;
5423
5432
  }
5424
5433
  var Re = {}, pt = {}, mo;
5425
- function Ei() {
5434
+ function ki() {
5426
5435
  if (mo) return pt;
5427
5436
  mo = 1, Object.defineProperty(pt, "__esModule", { value: !0 }), pt.getRules = pt.isJSONType = void 0;
5428
5437
  const e = ["string", "number", "integer", "boolean", "null", "object", "array"], t = new Set(e);
@@ -5448,7 +5457,7 @@ function Ei() {
5448
5457
  return pt.getRules = n, pt;
5449
5458
  }
5450
5459
  var tt = {}, ho;
5451
- function ki() {
5460
+ function Pi() {
5452
5461
  if (ho) return tt;
5453
5462
  ho = 1, Object.defineProperty(tt, "__esModule", { value: !0 }), tt.shouldUseRule = tt.shouldUseGroup = tt.schemaHasRulesForType = void 0;
5454
5463
  function e({ schema: n, self: s }, o) {
@@ -5470,7 +5479,7 @@ var po;
5470
5479
  function tn() {
5471
5480
  if (po) return Re;
5472
5481
  po = 1, Object.defineProperty(Re, "__esModule", { value: !0 }), Re.reportTypeError = Re.checkDataTypes = Re.checkDataType = Re.coerceAndCheckDataType = Re.getJSONTypes = Re.getSchemaTypes = Re.DataType = void 0;
5473
- const e = /* @__PURE__ */ Ei(), t = /* @__PURE__ */ ki(), r = /* @__PURE__ */ mn(), n = /* @__PURE__ */ re(), s = /* @__PURE__ */ ie();
5482
+ const e = /* @__PURE__ */ ki(), t = /* @__PURE__ */ Pi(), r = /* @__PURE__ */ mn(), n = /* @__PURE__ */ re(), s = /* @__PURE__ */ ie();
5474
5483
  var o;
5475
5484
  (function(f) {
5476
5485
  f[f.Correct = 0] = "Correct", f[f.Wrong = 1] = "Wrong";
@@ -5615,7 +5624,7 @@ function tn() {
5615
5624
  return Re;
5616
5625
  }
5617
5626
  var Ct = {}, yo;
5618
- function gm() {
5627
+ function _m() {
5619
5628
  if (yo) return Ct;
5620
5629
  yo = 1, Object.defineProperty(Ct, "__esModule", { value: !0 }), Ct.assignDefaults = void 0;
5621
5630
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie();
@@ -5751,7 +5760,7 @@ function We() {
5751
5760
  return pe.validateUnion = _, pe;
5752
5761
  }
5753
5762
  var go;
5754
- function _m() {
5763
+ function $m() {
5755
5764
  if (go) return Ge;
5756
5765
  go = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.validateKeywordUsage = Ge.validSchemaType = Ge.funcKeywordCode = Ge.macroKeywordCode = void 0;
5757
5766
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ Be(), r = /* @__PURE__ */ We(), n = /* @__PURE__ */ mn();
@@ -5840,7 +5849,7 @@ function _m() {
5840
5849
  return Ge.validateKeywordUsage = v, Ge;
5841
5850
  }
5842
5851
  var rt = {}, _o;
5843
- function $m() {
5852
+ function bm() {
5844
5853
  if (_o) return rt;
5845
5854
  _o = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.extendSubschemaMode = rt.extendSubschemaData = rt.getSubschema = void 0;
5846
5855
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie();
@@ -5896,7 +5905,7 @@ function $m() {
5896
5905
  return rt.extendSubschemaMode = s, rt;
5897
5906
  }
5898
5907
  var Ie = {}, Mn, $o;
5899
- function Pi() {
5908
+ function ji() {
5900
5909
  return $o || ($o = 1, Mn = function e(t, r) {
5901
5910
  if (t === r) return !0;
5902
5911
  if (t && r && typeof t == "object" && typeof r == "object") {
@@ -5924,7 +5933,7 @@ function Pi() {
5924
5933
  }), Mn;
5925
5934
  }
5926
5935
  var Dn = { exports: {} }, bo;
5927
- function bm() {
5936
+ function wm() {
5928
5937
  if (bo) return Dn.exports;
5929
5938
  bo = 1;
5930
5939
  var e = Dn.exports = function(n, s, o) {
@@ -6002,7 +6011,7 @@ var wo;
6002
6011
  function hn() {
6003
6012
  if (wo) return Ie;
6004
6013
  wo = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.getSchemaRefs = Ie.resolveUrl = Ie.normalizeId = Ie._getFullPath = Ie.getFullPath = Ie.inlineRef = void 0;
6005
- const e = /* @__PURE__ */ ie(), t = Pi(), r = bm(), n = /* @__PURE__ */ new Set([
6014
+ const e = /* @__PURE__ */ ie(), t = ji(), r = wm(), n = /* @__PURE__ */ new Set([
6006
6015
  "type",
6007
6016
  "format",
6008
6017
  "pattern",
@@ -6111,173 +6120,173 @@ var So;
6111
6120
  function zt() {
6112
6121
  if (So) return et;
6113
6122
  So = 1, Object.defineProperty(et, "__esModule", { value: !0 }), et.getData = et.KeywordCxt = et.validateFunctionCode = void 0;
6114
- const e = /* @__PURE__ */ vm(), t = /* @__PURE__ */ tn(), r = /* @__PURE__ */ ki(), n = /* @__PURE__ */ tn(), s = /* @__PURE__ */ gm(), o = /* @__PURE__ */ _m(), a = /* @__PURE__ */ $m(), i = /* @__PURE__ */ re(), c = /* @__PURE__ */ Be(), u = /* @__PURE__ */ hn(), m = /* @__PURE__ */ ie(), v = /* @__PURE__ */ mn();
6115
- function l(j) {
6116
- if (d(j) && (E(j), g(j))) {
6117
- p(j);
6123
+ const e = /* @__PURE__ */ gm(), t = /* @__PURE__ */ tn(), r = /* @__PURE__ */ Pi(), n = /* @__PURE__ */ tn(), s = /* @__PURE__ */ _m(), o = /* @__PURE__ */ $m(), a = /* @__PURE__ */ bm(), i = /* @__PURE__ */ re(), c = /* @__PURE__ */ Be(), u = /* @__PURE__ */ hn(), m = /* @__PURE__ */ ie(), v = /* @__PURE__ */ mn();
6124
+ function l(O) {
6125
+ if (d(O) && (E(O), g(O))) {
6126
+ p(O);
6118
6127
  return;
6119
6128
  }
6120
- h(j, () => (0, e.topBoolOrEmptySchema)(j));
6129
+ h(O, () => (0, e.topBoolOrEmptySchema)(O));
6121
6130
  }
6122
6131
  et.validateFunctionCode = l;
6123
- function h({ gen: j, validateName: N, schema: F, schemaEnv: G, opts: X }, ne) {
6124
- X.code.es5 ? j.func(N, (0, i._)`${c.default.data}, ${c.default.valCxt}`, G.$async, () => {
6125
- j.code((0, i._)`"use strict"; ${f(F, X)}`), S(j, X), j.code(ne);
6126
- }) : j.func(N, (0, i._)`${c.default.data}, ${w(X)}`, G.$async, () => j.code(f(F, X)).code(ne));
6132
+ function h({ gen: O, validateName: N, schema: F, schemaEnv: G, opts: X }, ne) {
6133
+ X.code.es5 ? O.func(N, (0, i._)`${c.default.data}, ${c.default.valCxt}`, G.$async, () => {
6134
+ O.code((0, i._)`"use strict"; ${f(F, X)}`), S(O, X), O.code(ne);
6135
+ }) : O.func(N, (0, i._)`${c.default.data}, ${w(X)}`, G.$async, () => O.code(f(F, X)).code(ne));
6127
6136
  }
6128
- function w(j) {
6129
- return (0, i._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${j.dynamicRef ? (0, i._)`, ${c.default.dynamicAnchors}={}` : i.nil}}={}`;
6137
+ function w(O) {
6138
+ return (0, i._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${O.dynamicRef ? (0, i._)`, ${c.default.dynamicAnchors}={}` : i.nil}}={}`;
6130
6139
  }
6131
- function S(j, N) {
6132
- j.if(c.default.valCxt, () => {
6133
- j.var(c.default.instancePath, (0, i._)`${c.default.valCxt}.${c.default.instancePath}`), j.var(c.default.parentData, (0, i._)`${c.default.valCxt}.${c.default.parentData}`), j.var(c.default.parentDataProperty, (0, i._)`${c.default.valCxt}.${c.default.parentDataProperty}`), j.var(c.default.rootData, (0, i._)`${c.default.valCxt}.${c.default.rootData}`), N.dynamicRef && j.var(c.default.dynamicAnchors, (0, i._)`${c.default.valCxt}.${c.default.dynamicAnchors}`);
6140
+ function S(O, N) {
6141
+ O.if(c.default.valCxt, () => {
6142
+ O.var(c.default.instancePath, (0, i._)`${c.default.valCxt}.${c.default.instancePath}`), O.var(c.default.parentData, (0, i._)`${c.default.valCxt}.${c.default.parentData}`), O.var(c.default.parentDataProperty, (0, i._)`${c.default.valCxt}.${c.default.parentDataProperty}`), O.var(c.default.rootData, (0, i._)`${c.default.valCxt}.${c.default.rootData}`), N.dynamicRef && O.var(c.default.dynamicAnchors, (0, i._)`${c.default.valCxt}.${c.default.dynamicAnchors}`);
6134
6143
  }, () => {
6135
- j.var(c.default.instancePath, (0, i._)`""`), j.var(c.default.parentData, (0, i._)`undefined`), j.var(c.default.parentDataProperty, (0, i._)`undefined`), j.var(c.default.rootData, c.default.data), N.dynamicRef && j.var(c.default.dynamicAnchors, (0, i._)`{}`);
6144
+ O.var(c.default.instancePath, (0, i._)`""`), O.var(c.default.parentData, (0, i._)`undefined`), O.var(c.default.parentDataProperty, (0, i._)`undefined`), O.var(c.default.rootData, c.default.data), N.dynamicRef && O.var(c.default.dynamicAnchors, (0, i._)`{}`);
6136
6145
  });
6137
6146
  }
6138
- function p(j) {
6139
- const { schema: N, opts: F, gen: G } = j;
6140
- h(j, () => {
6141
- F.$comment && N.$comment && U(j), L(j), G.let(c.default.vErrors, null), G.let(c.default.errors, 0), F.unevaluated && _(j), z(j), K(j);
6147
+ function p(O) {
6148
+ const { schema: N, opts: F, gen: G } = O;
6149
+ h(O, () => {
6150
+ F.$comment && N.$comment && U(O), L(O), G.let(c.default.vErrors, null), G.let(c.default.errors, 0), F.unevaluated && _(O), z(O), K(O);
6142
6151
  });
6143
6152
  }
6144
- function _(j) {
6145
- const { gen: N, validateName: F } = j;
6146
- j.evaluated = N.const("evaluated", (0, i._)`${F}.evaluated`), N.if((0, i._)`${j.evaluated}.dynamicProps`, () => N.assign((0, i._)`${j.evaluated}.props`, (0, i._)`undefined`)), N.if((0, i._)`${j.evaluated}.dynamicItems`, () => N.assign((0, i._)`${j.evaluated}.items`, (0, i._)`undefined`));
6153
+ function _(O) {
6154
+ const { gen: N, validateName: F } = O;
6155
+ O.evaluated = N.const("evaluated", (0, i._)`${F}.evaluated`), N.if((0, i._)`${O.evaluated}.dynamicProps`, () => N.assign((0, i._)`${O.evaluated}.props`, (0, i._)`undefined`)), N.if((0, i._)`${O.evaluated}.dynamicItems`, () => N.assign((0, i._)`${O.evaluated}.items`, (0, i._)`undefined`));
6147
6156
  }
6148
- function f(j, N) {
6149
- const F = typeof j == "object" && j[N.schemaId];
6157
+ function f(O, N) {
6158
+ const F = typeof O == "object" && O[N.schemaId];
6150
6159
  return F && (N.code.source || N.code.process) ? (0, i._)`/*# sourceURL=${F} */` : i.nil;
6151
6160
  }
6152
- function y(j, N) {
6153
- if (d(j) && (E(j), g(j))) {
6154
- $(j, N);
6161
+ function y(O, N) {
6162
+ if (d(O) && (E(O), g(O))) {
6163
+ $(O, N);
6155
6164
  return;
6156
6165
  }
6157
- (0, e.boolOrEmptySchema)(j, N);
6166
+ (0, e.boolOrEmptySchema)(O, N);
6158
6167
  }
6159
- function g({ schema: j, self: N }) {
6160
- if (typeof j == "boolean")
6161
- return !j;
6162
- for (const F in j)
6168
+ function g({ schema: O, self: N }) {
6169
+ if (typeof O == "boolean")
6170
+ return !O;
6171
+ for (const F in O)
6163
6172
  if (N.RULES.all[F])
6164
6173
  return !0;
6165
6174
  return !1;
6166
6175
  }
6167
- function d(j) {
6168
- return typeof j.schema != "boolean";
6176
+ function d(O) {
6177
+ return typeof O.schema != "boolean";
6169
6178
  }
6170
- function $(j, N) {
6171
- const { schema: F, gen: G, opts: X } = j;
6172
- X.$comment && F.$comment && U(j), q(j), V(j);
6179
+ function $(O, N) {
6180
+ const { schema: F, gen: G, opts: X } = O;
6181
+ X.$comment && F.$comment && U(O), q(O), V(O);
6173
6182
  const ne = G.const("_errs", c.default.errors);
6174
- z(j, ne), G.var(N, (0, i._)`${ne} === ${c.default.errors}`);
6183
+ z(O, ne), G.var(N, (0, i._)`${ne} === ${c.default.errors}`);
6175
6184
  }
6176
- function E(j) {
6177
- (0, m.checkUnknownRules)(j), Z(j);
6185
+ function E(O) {
6186
+ (0, m.checkUnknownRules)(O), Z(O);
6178
6187
  }
6179
- function z(j, N) {
6180
- if (j.opts.jtd)
6181
- return he(j, [], !1, N);
6182
- const F = (0, t.getSchemaTypes)(j.schema), G = (0, t.coerceAndCheckDataType)(j, F);
6183
- he(j, F, !G, N);
6188
+ function z(O, N) {
6189
+ if (O.opts.jtd)
6190
+ return he(O, [], !1, N);
6191
+ const F = (0, t.getSchemaTypes)(O.schema), G = (0, t.coerceAndCheckDataType)(O, F);
6192
+ he(O, F, !G, N);
6184
6193
  }
6185
- function Z(j) {
6186
- const { schema: N, errSchemaPath: F, opts: G, self: X } = j;
6194
+ function Z(O) {
6195
+ const { schema: N, errSchemaPath: F, opts: G, self: X } = O;
6187
6196
  N.$ref && G.ignoreKeywordsWithRef && (0, m.schemaHasRulesButRef)(N, X.RULES) && X.logger.warn(`$ref: keywords ignored in schema at path "${F}"`);
6188
6197
  }
6189
- function L(j) {
6190
- const { schema: N, opts: F } = j;
6191
- N.default !== void 0 && F.useDefaults && F.strictSchema && (0, m.checkStrictMode)(j, "default is ignored in the schema root");
6198
+ function L(O) {
6199
+ const { schema: N, opts: F } = O;
6200
+ N.default !== void 0 && F.useDefaults && F.strictSchema && (0, m.checkStrictMode)(O, "default is ignored in the schema root");
6192
6201
  }
6193
- function q(j) {
6194
- const N = j.schema[j.opts.schemaId];
6195
- N && (j.baseId = (0, u.resolveUrl)(j.opts.uriResolver, j.baseId, N));
6202
+ function q(O) {
6203
+ const N = O.schema[O.opts.schemaId];
6204
+ N && (O.baseId = (0, u.resolveUrl)(O.opts.uriResolver, O.baseId, N));
6196
6205
  }
6197
- function V(j) {
6198
- if (j.schema.$async && !j.schemaEnv.$async)
6206
+ function V(O) {
6207
+ if (O.schema.$async && !O.schemaEnv.$async)
6199
6208
  throw new Error("async schema in sync schema");
6200
6209
  }
6201
- function U({ gen: j, schemaEnv: N, schema: F, errSchemaPath: G, opts: X }) {
6210
+ function U({ gen: O, schemaEnv: N, schema: F, errSchemaPath: G, opts: X }) {
6202
6211
  const ne = F.$comment;
6203
6212
  if (X.$comment === !0)
6204
- j.code((0, i._)`${c.default.self}.logger.log(${ne})`);
6213
+ O.code((0, i._)`${c.default.self}.logger.log(${ne})`);
6205
6214
  else if (typeof X.$comment == "function") {
6206
- const Oe = (0, i.str)`${G}/$comment`, qe = j.scopeValue("root", { ref: N.root });
6207
- j.code((0, i._)`${c.default.self}.opts.$comment(${ne}, ${Oe}, ${qe}.schema)`);
6215
+ const je = (0, i.str)`${G}/$comment`, qe = O.scopeValue("root", { ref: N.root });
6216
+ O.code((0, i._)`${c.default.self}.opts.$comment(${ne}, ${je}, ${qe}.schema)`);
6208
6217
  }
6209
6218
  }
6210
- function K(j) {
6211
- const { gen: N, schemaEnv: F, validateName: G, ValidationError: X, opts: ne } = j;
6212
- F.$async ? N.if((0, i._)`${c.default.errors} === 0`, () => N.return(c.default.data), () => N.throw((0, i._)`new ${X}(${c.default.vErrors})`)) : (N.assign((0, i._)`${G}.errors`, c.default.vErrors), ne.unevaluated && te(j), N.return((0, i._)`${c.default.errors} === 0`));
6219
+ function K(O) {
6220
+ const { gen: N, schemaEnv: F, validateName: G, ValidationError: X, opts: ne } = O;
6221
+ F.$async ? N.if((0, i._)`${c.default.errors} === 0`, () => N.return(c.default.data), () => N.throw((0, i._)`new ${X}(${c.default.vErrors})`)) : (N.assign((0, i._)`${G}.errors`, c.default.vErrors), ne.unevaluated && te(O), N.return((0, i._)`${c.default.errors} === 0`));
6213
6222
  }
6214
- function te({ gen: j, evaluated: N, props: F, items: G }) {
6215
- F instanceof i.Name && j.assign((0, i._)`${N}.props`, F), G instanceof i.Name && j.assign((0, i._)`${N}.items`, G);
6223
+ function te({ gen: O, evaluated: N, props: F, items: G }) {
6224
+ F instanceof i.Name && O.assign((0, i._)`${N}.props`, F), G instanceof i.Name && O.assign((0, i._)`${N}.items`, G);
6216
6225
  }
6217
- function he(j, N, F, G) {
6218
- const { gen: X, schema: ne, data: Oe, allErrors: qe, opts: ze, self: je } = j, { RULES: k } = je;
6226
+ function he(O, N, F, G) {
6227
+ const { gen: X, schema: ne, data: je, allErrors: qe, opts: ze, self: Oe } = O, { RULES: k } = Oe;
6219
6228
  if (ne.$ref && (ze.ignoreKeywordsWithRef || !(0, m.schemaHasRulesButRef)(ne, k))) {
6220
- X.block(() => H(j, "$ref", k.all.$ref.definition));
6229
+ X.block(() => H(O, "$ref", k.all.$ref.definition));
6221
6230
  return;
6222
6231
  }
6223
- ze.jtd || ce(j, N), X.block(() => {
6232
+ ze.jtd || ce(O, N), X.block(() => {
6224
6233
  for (const I of k.rules)
6225
6234
  R(I);
6226
6235
  R(k.post);
6227
6236
  });
6228
6237
  function R(I) {
6229
- (0, r.shouldUseGroup)(ne, I) && (I.type ? (X.if((0, n.checkDataType)(I.type, Oe, ze.strictNumbers)), me(j, I), N.length === 1 && N[0] === I.type && F && (X.else(), (0, n.reportTypeError)(j)), X.endIf()) : me(j, I), qe || X.if((0, i._)`${c.default.errors} === ${G || 0}`));
6238
+ (0, r.shouldUseGroup)(ne, I) && (I.type ? (X.if((0, n.checkDataType)(I.type, je, ze.strictNumbers)), me(O, I), N.length === 1 && N[0] === I.type && F && (X.else(), (0, n.reportTypeError)(O)), X.endIf()) : me(O, I), qe || X.if((0, i._)`${c.default.errors} === ${G || 0}`));
6230
6239
  }
6231
6240
  }
6232
- function me(j, N) {
6233
- const { gen: F, schema: G, opts: { useDefaults: X } } = j;
6234
- X && (0, s.assignDefaults)(j, N.type), F.block(() => {
6241
+ function me(O, N) {
6242
+ const { gen: F, schema: G, opts: { useDefaults: X } } = O;
6243
+ X && (0, s.assignDefaults)(O, N.type), F.block(() => {
6235
6244
  for (const ne of N.rules)
6236
- (0, r.shouldUseRule)(G, ne) && H(j, ne.keyword, ne.definition, N.type);
6245
+ (0, r.shouldUseRule)(G, ne) && H(O, ne.keyword, ne.definition, N.type);
6237
6246
  });
6238
6247
  }
6239
- function ce(j, N) {
6240
- j.schemaEnv.meta || !j.opts.strictTypes || (Pe(j, N), j.opts.allowUnionTypes || M(j, N), O(j, j.dataTypes));
6248
+ function ce(O, N) {
6249
+ O.schemaEnv.meta || !O.opts.strictTypes || (Pe(O, N), O.opts.allowUnionTypes || M(O, N), j(O, O.dataTypes));
6241
6250
  }
6242
- function Pe(j, N) {
6251
+ function Pe(O, N) {
6243
6252
  if (N.length) {
6244
- if (!j.dataTypes.length) {
6245
- j.dataTypes = N;
6253
+ if (!O.dataTypes.length) {
6254
+ O.dataTypes = N;
6246
6255
  return;
6247
6256
  }
6248
6257
  N.forEach((F) => {
6249
- A(j.dataTypes, F) || P(j, `type "${F}" not allowed by context "${j.dataTypes.join(",")}"`);
6250
- }), b(j, N);
6258
+ A(O.dataTypes, F) || P(O, `type "${F}" not allowed by context "${O.dataTypes.join(",")}"`);
6259
+ }), b(O, N);
6251
6260
  }
6252
6261
  }
6253
- function M(j, N) {
6254
- N.length > 1 && !(N.length === 2 && N.includes("null")) && P(j, "use allowUnionTypes to allow union type keyword");
6262
+ function M(O, N) {
6263
+ N.length > 1 && !(N.length === 2 && N.includes("null")) && P(O, "use allowUnionTypes to allow union type keyword");
6255
6264
  }
6256
- function O(j, N) {
6257
- const F = j.self.RULES.all;
6265
+ function j(O, N) {
6266
+ const F = O.self.RULES.all;
6258
6267
  for (const G in F) {
6259
6268
  const X = F[G];
6260
- if (typeof X == "object" && (0, r.shouldUseRule)(j.schema, X)) {
6269
+ if (typeof X == "object" && (0, r.shouldUseRule)(O.schema, X)) {
6261
6270
  const { type: ne } = X.definition;
6262
- ne.length && !ne.some((Oe) => C(N, Oe)) && P(j, `missing type "${ne.join(",")}" for keyword "${G}"`);
6271
+ ne.length && !ne.some((je) => C(N, je)) && P(O, `missing type "${ne.join(",")}" for keyword "${G}"`);
6263
6272
  }
6264
6273
  }
6265
6274
  }
6266
- function C(j, N) {
6267
- return j.includes(N) || N === "number" && j.includes("integer");
6275
+ function C(O, N) {
6276
+ return O.includes(N) || N === "number" && O.includes("integer");
6268
6277
  }
6269
- function A(j, N) {
6270
- return j.includes(N) || N === "integer" && j.includes("number");
6278
+ function A(O, N) {
6279
+ return O.includes(N) || N === "integer" && O.includes("number");
6271
6280
  }
6272
- function b(j, N) {
6281
+ function b(O, N) {
6273
6282
  const F = [];
6274
- for (const G of j.dataTypes)
6283
+ for (const G of O.dataTypes)
6275
6284
  A(N, G) ? F.push(G) : N.includes("integer") && G === "number" && F.push("integer");
6276
- j.dataTypes = F;
6285
+ O.dataTypes = F;
6277
6286
  }
6278
- function P(j, N) {
6279
- const F = j.schemaEnv.baseId + j.errSchemaPath;
6280
- N += ` at "${F}" (strictTypes)`, (0, m.checkStrictMode)(j, N, j.opts.strictTypes);
6287
+ function P(O, N) {
6288
+ const F = O.schemaEnv.baseId + O.errSchemaPath;
6289
+ N += ` at "${F}" (strictTypes)`, (0, m.checkStrictMode)(O, N, O.opts.strictTypes);
6281
6290
  }
6282
6291
  class T {
6283
6292
  constructor(N, F, G) {
@@ -6341,13 +6350,13 @@ function zt() {
6341
6350
  check$data(N = i.nil, F = i.nil) {
6342
6351
  if (!this.$data)
6343
6352
  return;
6344
- const { gen: G, schemaCode: X, schemaType: ne, def: Oe } = this;
6345
- G.if((0, i.or)((0, i._)`${X} === undefined`, F)), N !== i.nil && G.assign(N, !0), (ne.length || Oe.validateSchema) && (G.elseIf(this.invalid$data()), this.$dataError(), N !== i.nil && G.assign(N, !1)), G.else();
6353
+ const { gen: G, schemaCode: X, schemaType: ne, def: je } = this;
6354
+ G.if((0, i.or)((0, i._)`${X} === undefined`, F)), N !== i.nil && G.assign(N, !0), (ne.length || je.validateSchema) && (G.elseIf(this.invalid$data()), this.$dataError(), N !== i.nil && G.assign(N, !1)), G.else();
6346
6355
  }
6347
6356
  invalid$data() {
6348
6357
  const { gen: N, schemaCode: F, schemaType: G, def: X, it: ne } = this;
6349
- return (0, i.or)(Oe(), qe());
6350
- function Oe() {
6358
+ return (0, i.or)(je(), qe());
6359
+ function je() {
6351
6360
  if (G.length) {
6352
6361
  if (!(F instanceof i.Name))
6353
6362
  throw new Error("ajv implementation error");
@@ -6381,25 +6390,25 @@ function zt() {
6381
6390
  }
6382
6391
  }
6383
6392
  et.KeywordCxt = T;
6384
- function H(j, N, F, G) {
6385
- const X = new T(j, F, N);
6393
+ function H(O, N, F, G) {
6394
+ const X = new T(O, F, N);
6386
6395
  "code" in F ? F.code(X, G) : X.$data && F.validate ? (0, o.funcKeywordCode)(X, F) : "macro" in F ? (0, o.macroKeywordCode)(X, F) : (F.compile || F.validate) && (0, o.funcKeywordCode)(X, F);
6387
6396
  }
6388
6397
  const Y = /^\/(?:[^~]|~0|~1)*$/, oe = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
6389
- function ae(j, { dataLevel: N, dataNames: F, dataPathArr: G }) {
6398
+ function ae(O, { dataLevel: N, dataNames: F, dataPathArr: G }) {
6390
6399
  let X, ne;
6391
- if (j === "")
6400
+ if (O === "")
6392
6401
  return c.default.rootData;
6393
- if (j[0] === "/") {
6394
- if (!Y.test(j))
6395
- throw new Error(`Invalid JSON-pointer: ${j}`);
6396
- X = j, ne = c.default.rootData;
6402
+ if (O[0] === "/") {
6403
+ if (!Y.test(O))
6404
+ throw new Error(`Invalid JSON-pointer: ${O}`);
6405
+ X = O, ne = c.default.rootData;
6397
6406
  } else {
6398
- const je = oe.exec(j);
6399
- if (!je)
6400
- throw new Error(`Invalid JSON-pointer: ${j}`);
6401
- const k = +je[1];
6402
- if (X = je[2], X === "#") {
6407
+ const Oe = oe.exec(O);
6408
+ if (!Oe)
6409
+ throw new Error(`Invalid JSON-pointer: ${O}`);
6410
+ const k = +Oe[1];
6411
+ if (X = Oe[2], X === "#") {
6403
6412
  if (k >= N)
6404
6413
  throw new Error(ze("property/index", k));
6405
6414
  return G[N - k];
@@ -6409,13 +6418,13 @@ function zt() {
6409
6418
  if (ne = F[N - k], !X)
6410
6419
  return ne;
6411
6420
  }
6412
- let Oe = ne;
6421
+ let je = ne;
6413
6422
  const qe = X.split("/");
6414
- for (const je of qe)
6415
- je && (ne = (0, i._)`${ne}${(0, i.getProperty)((0, m.unescapeJsonPointer)(je))}`, Oe = (0, i._)`${Oe} && ${ne}`);
6416
- return Oe;
6417
- function ze(je, k) {
6418
- return `Cannot access ${je} ${k} levels up, current level is ${N}`;
6423
+ for (const Oe of qe)
6424
+ Oe && (ne = (0, i._)`${ne}${(0, i.getProperty)((0, m.unescapeJsonPointer)(Oe))}`, je = (0, i._)`${je} && ${ne}`);
6425
+ return je;
6426
+ function ze(Oe, k) {
6427
+ return `Cannot access ${Oe} ${k} levels up, current level is ${N}`;
6419
6428
  }
6420
6429
  }
6421
6430
  return et.getData = ae, et;
@@ -6601,18 +6610,18 @@ function pn() {
6601
6610
  }
6602
6611
  return Ze;
6603
6612
  }
6604
- const wm = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Sm = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Em = "object", km = ["$data"], Pm = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Om = !1, jm = {
6605
- $id: wm,
6606
- description: Sm,
6607
- type: Em,
6608
- required: km,
6609
- properties: Pm,
6613
+ const Sm = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Em = "Meta-schema for $data reference (JSON AnySchema extension proposal)", km = "object", Pm = ["$data"], jm = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Om = !1, Am = {
6614
+ $id: Sm,
6615
+ description: Em,
6616
+ type: km,
6617
+ required: Pm,
6618
+ properties: jm,
6610
6619
  additionalProperties: Om
6611
6620
  };
6612
- var Wt = {}, Mt = { exports: {} }, Vn, Oo;
6621
+ var Wt = {}, Mt = { exports: {} }, Vn, jo;
6613
6622
  function Oi() {
6614
- if (Oo) return Vn;
6615
- Oo = 1;
6623
+ if (jo) return Vn;
6624
+ jo = 1;
6616
6625
  const e = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), t = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
6617
6626
  function r(l) {
6618
6627
  let h = "", w = 0, S = 0;
@@ -6774,10 +6783,10 @@ function Oi() {
6774
6783
  stringArrayToHexStripped: r
6775
6784
  }, Vn;
6776
6785
  }
6777
- var qn, jo;
6778
- function Am() {
6779
- if (jo) return qn;
6780
- jo = 1;
6786
+ var qn, Oo;
6787
+ function Rm() {
6788
+ if (Oo) return qn;
6789
+ Oo = 1;
6781
6790
  const { isUUID: e } = Oi(), t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, r = (
6782
6791
  /** @type {const} */
6783
6792
  [
@@ -6921,10 +6930,10 @@ function Am() {
6921
6930
  }, qn;
6922
6931
  }
6923
6932
  var Ao;
6924
- function Rm() {
6933
+ function Nm() {
6925
6934
  if (Ao) return Mt.exports;
6926
6935
  Ao = 1;
6927
- const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: r, normalizeComponentEncoding: n, isIPv4: s, nonSimpleDomain: o } = Oi(), { SCHEMES: a, getSchemeHandler: i } = Am();
6936
+ const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: r, normalizeComponentEncoding: n, isIPv4: s, nonSimpleDomain: o } = Oi(), { SCHEMES: a, getSchemeHandler: i } = Rm();
6928
6937
  function c(p, _) {
6929
6938
  return typeof p == "string" ? p = /** @type {T} */
6930
6939
  l(w(p, _), _) : typeof p == "object" && (p = /** @type {T} */
@@ -7012,10 +7021,10 @@ function Rm() {
7012
7021
  return Mt.exports = S, Mt.exports.default = S, Mt.exports.fastUri = S, Mt.exports;
7013
7022
  }
7014
7023
  var Ro;
7015
- function Nm() {
7024
+ function zm() {
7016
7025
  if (Ro) return Wt;
7017
7026
  Ro = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
7018
- const e = Rm();
7027
+ const e = Nm();
7019
7028
  return e.code = 'require("ajv/dist/runtime/uri").default', Wt.default = e, Wt;
7020
7029
  }
7021
7030
  var No;
@@ -7040,7 +7049,7 @@ function us() {
7040
7049
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
7041
7050
  return r.CodeGen;
7042
7051
  } });
7043
- const n = /* @__PURE__ */ Ut(), s = /* @__PURE__ */ It(), o = /* @__PURE__ */ Ei(), a = /* @__PURE__ */ pn(), i = /* @__PURE__ */ re(), c = /* @__PURE__ */ hn(), u = /* @__PURE__ */ tn(), m = /* @__PURE__ */ ie(), v = jm, l = /* @__PURE__ */ Nm(), h = (M, O) => new RegExp(M, O);
7052
+ const n = /* @__PURE__ */ Ut(), s = /* @__PURE__ */ It(), o = /* @__PURE__ */ ki(), a = /* @__PURE__ */ pn(), i = /* @__PURE__ */ re(), c = /* @__PURE__ */ hn(), u = /* @__PURE__ */ tn(), m = /* @__PURE__ */ ie(), v = Am, l = /* @__PURE__ */ zm(), h = (M, j) => new RegExp(M, j);
7044
7053
  h.code = "new RegExp";
7045
7054
  const w = ["removeAdditional", "useDefaults", "coerceTypes"], S = /* @__PURE__ */ new Set([
7046
7055
  "validate",
@@ -7078,21 +7087,21 @@ function us() {
7078
7087
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
7079
7088
  }, f = 200;
7080
7089
  function y(M) {
7081
- var O, C, A, b, P, T, H, Y, oe, ae, j, N, F, G, X, ne, Oe, qe, ze, je, k, R, I, B, J;
7082
- const x = M.strict, Q = (O = M.code) === null || O === void 0 ? void 0 : O.optimize, de = Q === !0 || Q === void 0 ? 1 : Q || 0, le = (A = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && A !== void 0 ? A : h, Ae = (b = M.uriResolver) !== null && b !== void 0 ? b : l.default;
7090
+ var j, C, A, b, P, T, H, Y, oe, ae, O, N, F, G, X, ne, je, qe, ze, Oe, k, R, I, B, J;
7091
+ const x = M.strict, Q = (j = M.code) === null || j === void 0 ? void 0 : j.optimize, de = Q === !0 || Q === void 0 ? 1 : Q || 0, le = (A = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && A !== void 0 ? A : h, Ae = (b = M.uriResolver) !== null && b !== void 0 ? b : l.default;
7083
7092
  return {
7084
7093
  strictSchema: (T = (P = M.strictSchema) !== null && P !== void 0 ? P : x) !== null && T !== void 0 ? T : !0,
7085
7094
  strictNumbers: (Y = (H = M.strictNumbers) !== null && H !== void 0 ? H : x) !== null && Y !== void 0 ? Y : !0,
7086
7095
  strictTypes: (ae = (oe = M.strictTypes) !== null && oe !== void 0 ? oe : x) !== null && ae !== void 0 ? ae : "log",
7087
- strictTuples: (N = (j = M.strictTuples) !== null && j !== void 0 ? j : x) !== null && N !== void 0 ? N : "log",
7096
+ strictTuples: (N = (O = M.strictTuples) !== null && O !== void 0 ? O : x) !== null && N !== void 0 ? N : "log",
7088
7097
  strictRequired: (G = (F = M.strictRequired) !== null && F !== void 0 ? F : x) !== null && G !== void 0 ? G : !1,
7089
7098
  code: M.code ? { ...M.code, optimize: de, regExp: le } : { optimize: de, regExp: le },
7090
7099
  loopRequired: (X = M.loopRequired) !== null && X !== void 0 ? X : f,
7091
7100
  loopEnum: (ne = M.loopEnum) !== null && ne !== void 0 ? ne : f,
7092
- meta: (Oe = M.meta) !== null && Oe !== void 0 ? Oe : !0,
7101
+ meta: (je = M.meta) !== null && je !== void 0 ? je : !0,
7093
7102
  messages: (qe = M.messages) !== null && qe !== void 0 ? qe : !0,
7094
7103
  inlineRefs: (ze = M.inlineRefs) !== null && ze !== void 0 ? ze : !0,
7095
- schemaId: (je = M.schemaId) !== null && je !== void 0 ? je : "$id",
7104
+ schemaId: (Oe = M.schemaId) !== null && Oe !== void 0 ? Oe : "$id",
7096
7105
  addUsedSchema: (k = M.addUsedSchema) !== null && k !== void 0 ? k : !0,
7097
7106
  validateSchema: (R = M.validateSchema) !== null && R !== void 0 ? R : !0,
7098
7107
  validateFormats: (I = M.validateFormats) !== null && I !== void 0 ? I : !0,
@@ -7102,47 +7111,47 @@ function us() {
7102
7111
  };
7103
7112
  }
7104
7113
  class g {
7105
- constructor(O = {}) {
7106
- this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), O = this.opts = { ...O, ...y(O) };
7114
+ constructor(j = {}) {
7115
+ this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), j = this.opts = { ...j, ...y(j) };
7107
7116
  const { es5: C, lines: A } = this.opts.code;
7108
- this.scope = new i.ValueScope({ scope: {}, prefixes: S, es5: C, lines: A }), this.logger = V(O.logger);
7109
- const b = O.validateFormats;
7110
- O.validateFormats = !1, this.RULES = (0, o.getRules)(), d.call(this, p, O, "NOT SUPPORTED"), d.call(this, _, O, "DEPRECATED", "warn"), this._metaOpts = L.call(this), O.formats && z.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), O.keywords && Z.call(this, O.keywords), typeof O.meta == "object" && this.addMetaSchema(O.meta), E.call(this), O.validateFormats = b;
7117
+ this.scope = new i.ValueScope({ scope: {}, prefixes: S, es5: C, lines: A }), this.logger = V(j.logger);
7118
+ const b = j.validateFormats;
7119
+ j.validateFormats = !1, this.RULES = (0, o.getRules)(), d.call(this, p, j, "NOT SUPPORTED"), d.call(this, _, j, "DEPRECATED", "warn"), this._metaOpts = L.call(this), j.formats && z.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), j.keywords && Z.call(this, j.keywords), typeof j.meta == "object" && this.addMetaSchema(j.meta), E.call(this), j.validateFormats = b;
7111
7120
  }
7112
7121
  _addVocabularies() {
7113
7122
  this.addKeyword("$async");
7114
7123
  }
7115
7124
  _addDefaultMetaSchema() {
7116
- const { $data: O, meta: C, schemaId: A } = this.opts;
7125
+ const { $data: j, meta: C, schemaId: A } = this.opts;
7117
7126
  let b = v;
7118
- A === "id" && (b = { ...v }, b.id = b.$id, delete b.$id), C && O && this.addMetaSchema(b, b[A], !1);
7127
+ A === "id" && (b = { ...v }, b.id = b.$id, delete b.$id), C && j && this.addMetaSchema(b, b[A], !1);
7119
7128
  }
7120
7129
  defaultMeta() {
7121
- const { meta: O, schemaId: C } = this.opts;
7122
- return this.opts.defaultMeta = typeof O == "object" ? O[C] || O : void 0;
7130
+ const { meta: j, schemaId: C } = this.opts;
7131
+ return this.opts.defaultMeta = typeof j == "object" ? j[C] || j : void 0;
7123
7132
  }
7124
- validate(O, C) {
7133
+ validate(j, C) {
7125
7134
  let A;
7126
- if (typeof O == "string") {
7127
- if (A = this.getSchema(O), !A)
7128
- throw new Error(`no schema with key or ref "${O}"`);
7135
+ if (typeof j == "string") {
7136
+ if (A = this.getSchema(j), !A)
7137
+ throw new Error(`no schema with key or ref "${j}"`);
7129
7138
  } else
7130
- A = this.compile(O);
7139
+ A = this.compile(j);
7131
7140
  const b = A(C);
7132
7141
  return "$async" in A || (this.errors = A.errors), b;
7133
7142
  }
7134
- compile(O, C) {
7135
- const A = this._addSchema(O, C);
7143
+ compile(j, C) {
7144
+ const A = this._addSchema(j, C);
7136
7145
  return A.validate || this._compileSchemaEnv(A);
7137
7146
  }
7138
- compileAsync(O, C) {
7147
+ compileAsync(j, C) {
7139
7148
  if (typeof this.opts.loadSchema != "function")
7140
7149
  throw new Error("options.loadSchema should be a function");
7141
7150
  const { loadSchema: A } = this.opts;
7142
- return b.call(this, O, C);
7143
- async function b(ae, j) {
7151
+ return b.call(this, j, C);
7152
+ async function b(ae, O) {
7144
7153
  await P.call(this, ae.$schema);
7145
- const N = this._addSchema(ae, j);
7154
+ const N = this._addSchema(ae, O);
7146
7155
  return N.validate || T.call(this, N);
7147
7156
  }
7148
7157
  async function P(ae) {
@@ -7151,24 +7160,24 @@ function us() {
7151
7160
  async function T(ae) {
7152
7161
  try {
7153
7162
  return this._compileSchemaEnv(ae);
7154
- } catch (j) {
7155
- if (!(j instanceof s.default))
7156
- throw j;
7157
- return H.call(this, j), await Y.call(this, j.missingSchema), T.call(this, ae);
7163
+ } catch (O) {
7164
+ if (!(O instanceof s.default))
7165
+ throw O;
7166
+ return H.call(this, O), await Y.call(this, O.missingSchema), T.call(this, ae);
7158
7167
  }
7159
7168
  }
7160
- function H({ missingSchema: ae, missingRef: j }) {
7169
+ function H({ missingSchema: ae, missingRef: O }) {
7161
7170
  if (this.refs[ae])
7162
- throw new Error(`AnySchema ${ae} is loaded but ${j} cannot be resolved`);
7171
+ throw new Error(`AnySchema ${ae} is loaded but ${O} cannot be resolved`);
7163
7172
  }
7164
7173
  async function Y(ae) {
7165
- const j = await oe.call(this, ae);
7166
- this.refs[ae] || await P.call(this, j.$schema), this.refs[ae] || this.addSchema(j, ae, C);
7174
+ const O = await oe.call(this, ae);
7175
+ this.refs[ae] || await P.call(this, O.$schema), this.refs[ae] || this.addSchema(O, ae, C);
7167
7176
  }
7168
7177
  async function oe(ae) {
7169
- const j = this._loading[ae];
7170
- if (j)
7171
- return j;
7178
+ const O = this._loading[ae];
7179
+ if (O)
7180
+ return O;
7172
7181
  try {
7173
7182
  return await (this._loading[ae] = A(ae));
7174
7183
  } finally {
@@ -7177,35 +7186,35 @@ function us() {
7177
7186
  }
7178
7187
  }
7179
7188
  // Adds schema to the instance
7180
- addSchema(O, C, A, b = this.opts.validateSchema) {
7181
- if (Array.isArray(O)) {
7182
- for (const T of O)
7189
+ addSchema(j, C, A, b = this.opts.validateSchema) {
7190
+ if (Array.isArray(j)) {
7191
+ for (const T of j)
7183
7192
  this.addSchema(T, void 0, A, b);
7184
7193
  return this;
7185
7194
  }
7186
7195
  let P;
7187
- if (typeof O == "object") {
7196
+ if (typeof j == "object") {
7188
7197
  const { schemaId: T } = this.opts;
7189
- if (P = O[T], P !== void 0 && typeof P != "string")
7198
+ if (P = j[T], P !== void 0 && typeof P != "string")
7190
7199
  throw new Error(`schema ${T} must be string`);
7191
7200
  }
7192
- return C = (0, c.normalizeId)(C || P), this._checkUnique(C), this.schemas[C] = this._addSchema(O, A, C, b, !0), this;
7201
+ return C = (0, c.normalizeId)(C || P), this._checkUnique(C), this.schemas[C] = this._addSchema(j, A, C, b, !0), this;
7193
7202
  }
7194
7203
  // Add schema that will be used to validate other schemas
7195
7204
  // options in META_IGNORE_OPTIONS are alway set to false
7196
- addMetaSchema(O, C, A = this.opts.validateSchema) {
7197
- return this.addSchema(O, C, !0, A), this;
7205
+ addMetaSchema(j, C, A = this.opts.validateSchema) {
7206
+ return this.addSchema(j, C, !0, A), this;
7198
7207
  }
7199
7208
  // Validate schema against its meta-schema
7200
- validateSchema(O, C) {
7201
- if (typeof O == "boolean")
7209
+ validateSchema(j, C) {
7210
+ if (typeof j == "boolean")
7202
7211
  return !0;
7203
7212
  let A;
7204
- if (A = O.$schema, A !== void 0 && typeof A != "string")
7213
+ if (A = j.$schema, A !== void 0 && typeof A != "string")
7205
7214
  throw new Error("$schema must be a string");
7206
7215
  if (A = A || this.opts.defaultMeta || this.defaultMeta(), !A)
7207
7216
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
7208
- const b = this.validate(A, O);
7217
+ const b = this.validate(A, j);
7209
7218
  if (!b && C) {
7210
7219
  const P = "schema is invalid: " + this.errorsText();
7211
7220
  if (this.opts.validateSchema === "log")
@@ -7217,15 +7226,15 @@ function us() {
7217
7226
  }
7218
7227
  // Get compiled schema by `key` or `ref`.
7219
7228
  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
7220
- getSchema(O) {
7229
+ getSchema(j) {
7221
7230
  let C;
7222
- for (; typeof (C = $.call(this, O)) == "string"; )
7223
- O = C;
7231
+ for (; typeof (C = $.call(this, j)) == "string"; )
7232
+ j = C;
7224
7233
  if (C === void 0) {
7225
7234
  const { schemaId: A } = this.opts, b = new a.SchemaEnv({ schema: {}, schemaId: A });
7226
- if (C = a.resolveSchema.call(this, b, O), !C)
7235
+ if (C = a.resolveSchema.call(this, b, j), !C)
7227
7236
  return;
7228
- this.refs[O] = C;
7237
+ this.refs[j] = C;
7229
7238
  }
7230
7239
  return C.validate || this._compileSchemaEnv(C);
7231
7240
  }
@@ -7233,20 +7242,20 @@ function us() {
7233
7242
  // If no parameter is passed all schemas but meta-schemas are removed.
7234
7243
  // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
7235
7244
  // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
7236
- removeSchema(O) {
7237
- if (O instanceof RegExp)
7238
- return this._removeAllSchemas(this.schemas, O), this._removeAllSchemas(this.refs, O), this;
7239
- switch (typeof O) {
7245
+ removeSchema(j) {
7246
+ if (j instanceof RegExp)
7247
+ return this._removeAllSchemas(this.schemas, j), this._removeAllSchemas(this.refs, j), this;
7248
+ switch (typeof j) {
7240
7249
  case "undefined":
7241
7250
  return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
7242
7251
  case "string": {
7243
- const C = $.call(this, O);
7244
- return typeof C == "object" && this._cache.delete(C.schema), delete this.schemas[O], delete this.refs[O], this;
7252
+ const C = $.call(this, j);
7253
+ return typeof C == "object" && this._cache.delete(C.schema), delete this.schemas[j], delete this.refs[j], this;
7245
7254
  }
7246
7255
  case "object": {
7247
- const C = O;
7256
+ const C = j;
7248
7257
  this._cache.delete(C);
7249
- let A = O[this.opts.schemaId];
7258
+ let A = j[this.opts.schemaId];
7250
7259
  return A && (A = (0, c.normalizeId)(A), delete this.schemas[A], delete this.refs[A]), this;
7251
7260
  }
7252
7261
  default:
@@ -7254,17 +7263,17 @@ function us() {
7254
7263
  }
7255
7264
  }
7256
7265
  // add "vocabulary" - a collection of keywords
7257
- addVocabulary(O) {
7258
- for (const C of O)
7266
+ addVocabulary(j) {
7267
+ for (const C of j)
7259
7268
  this.addKeyword(C);
7260
7269
  return this;
7261
7270
  }
7262
- addKeyword(O, C) {
7271
+ addKeyword(j, C) {
7263
7272
  let A;
7264
- if (typeof O == "string")
7265
- A = O, typeof C == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), C.keyword = A);
7266
- else if (typeof O == "object" && C === void 0) {
7267
- if (C = O, A = C.keyword, Array.isArray(A) && !A.length)
7273
+ if (typeof j == "string")
7274
+ A = j, typeof C == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), C.keyword = A);
7275
+ else if (typeof j == "object" && C === void 0) {
7276
+ if (C = j, A = C.keyword, Array.isArray(A) && !A.length)
7268
7277
  throw new Error("addKeywords: keyword must be string or non-empty array");
7269
7278
  } else
7270
7279
  throw new Error("invalid addKeywords parameters");
@@ -7278,33 +7287,33 @@ function us() {
7278
7287
  };
7279
7288
  return (0, m.eachItem)(A, b.type.length === 0 ? (P) => te.call(this, P, b) : (P) => b.type.forEach((T) => te.call(this, P, b, T))), this;
7280
7289
  }
7281
- getKeyword(O) {
7282
- const C = this.RULES.all[O];
7290
+ getKeyword(j) {
7291
+ const C = this.RULES.all[j];
7283
7292
  return typeof C == "object" ? C.definition : !!C;
7284
7293
  }
7285
7294
  // Remove keyword
7286
- removeKeyword(O) {
7295
+ removeKeyword(j) {
7287
7296
  const { RULES: C } = this;
7288
- delete C.keywords[O], delete C.all[O];
7297
+ delete C.keywords[j], delete C.all[j];
7289
7298
  for (const A of C.rules) {
7290
- const b = A.rules.findIndex((P) => P.keyword === O);
7299
+ const b = A.rules.findIndex((P) => P.keyword === j);
7291
7300
  b >= 0 && A.rules.splice(b, 1);
7292
7301
  }
7293
7302
  return this;
7294
7303
  }
7295
7304
  // Add format
7296
- addFormat(O, C) {
7297
- return typeof C == "string" && (C = new RegExp(C)), this.formats[O] = C, this;
7305
+ addFormat(j, C) {
7306
+ return typeof C == "string" && (C = new RegExp(C)), this.formats[j] = C, this;
7298
7307
  }
7299
- errorsText(O = this.errors, { separator: C = ", ", dataVar: A = "data" } = {}) {
7300
- return !O || O.length === 0 ? "No errors" : O.map((b) => `${A}${b.instancePath} ${b.message}`).reduce((b, P) => b + C + P);
7308
+ errorsText(j = this.errors, { separator: C = ", ", dataVar: A = "data" } = {}) {
7309
+ return !j || j.length === 0 ? "No errors" : j.map((b) => `${A}${b.instancePath} ${b.message}`).reduce((b, P) => b + C + P);
7301
7310
  }
7302
- $dataMetaSchema(O, C) {
7311
+ $dataMetaSchema(j, C) {
7303
7312
  const A = this.RULES.all;
7304
- O = JSON.parse(JSON.stringify(O));
7313
+ j = JSON.parse(JSON.stringify(j));
7305
7314
  for (const b of C) {
7306
7315
  const P = b.split("/").slice(1);
7307
- let T = O;
7316
+ let T = j;
7308
7317
  for (const H of P)
7309
7318
  T = T[H];
7310
7319
  for (const H in A) {
@@ -7315,56 +7324,56 @@ function us() {
7315
7324
  oe && ae && (T[H] = Pe(ae));
7316
7325
  }
7317
7326
  }
7318
- return O;
7327
+ return j;
7319
7328
  }
7320
- _removeAllSchemas(O, C) {
7321
- for (const A in O) {
7322
- const b = O[A];
7323
- (!C || C.test(A)) && (typeof b == "string" ? delete O[A] : b && !b.meta && (this._cache.delete(b.schema), delete O[A]));
7329
+ _removeAllSchemas(j, C) {
7330
+ for (const A in j) {
7331
+ const b = j[A];
7332
+ (!C || C.test(A)) && (typeof b == "string" ? delete j[A] : b && !b.meta && (this._cache.delete(b.schema), delete j[A]));
7324
7333
  }
7325
7334
  }
7326
- _addSchema(O, C, A, b = this.opts.validateSchema, P = this.opts.addUsedSchema) {
7335
+ _addSchema(j, C, A, b = this.opts.validateSchema, P = this.opts.addUsedSchema) {
7327
7336
  let T;
7328
7337
  const { schemaId: H } = this.opts;
7329
- if (typeof O == "object")
7330
- T = O[H];
7338
+ if (typeof j == "object")
7339
+ T = j[H];
7331
7340
  else {
7332
7341
  if (this.opts.jtd)
7333
7342
  throw new Error("schema must be object");
7334
- if (typeof O != "boolean")
7343
+ if (typeof j != "boolean")
7335
7344
  throw new Error("schema must be object or boolean");
7336
7345
  }
7337
- let Y = this._cache.get(O);
7346
+ let Y = this._cache.get(j);
7338
7347
  if (Y !== void 0)
7339
7348
  return Y;
7340
7349
  A = (0, c.normalizeId)(T || A);
7341
- const oe = c.getSchemaRefs.call(this, O, A);
7342
- return Y = new a.SchemaEnv({ schema: O, schemaId: H, meta: C, baseId: A, localRefs: oe }), this._cache.set(Y.schema, Y), P && !A.startsWith("#") && (A && this._checkUnique(A), this.refs[A] = Y), b && this.validateSchema(O, !0), Y;
7350
+ const oe = c.getSchemaRefs.call(this, j, A);
7351
+ return Y = new a.SchemaEnv({ schema: j, schemaId: H, meta: C, baseId: A, localRefs: oe }), this._cache.set(Y.schema, Y), P && !A.startsWith("#") && (A && this._checkUnique(A), this.refs[A] = Y), b && this.validateSchema(j, !0), Y;
7343
7352
  }
7344
- _checkUnique(O) {
7345
- if (this.schemas[O] || this.refs[O])
7346
- throw new Error(`schema with key or id "${O}" already exists`);
7353
+ _checkUnique(j) {
7354
+ if (this.schemas[j] || this.refs[j])
7355
+ throw new Error(`schema with key or id "${j}" already exists`);
7347
7356
  }
7348
- _compileSchemaEnv(O) {
7349
- if (O.meta ? this._compileMetaSchema(O) : a.compileSchema.call(this, O), !O.validate)
7357
+ _compileSchemaEnv(j) {
7358
+ if (j.meta ? this._compileMetaSchema(j) : a.compileSchema.call(this, j), !j.validate)
7350
7359
  throw new Error("ajv implementation error");
7351
- return O.validate;
7360
+ return j.validate;
7352
7361
  }
7353
- _compileMetaSchema(O) {
7362
+ _compileMetaSchema(j) {
7354
7363
  const C = this.opts;
7355
7364
  this.opts = this._metaOpts;
7356
7365
  try {
7357
- a.compileSchema.call(this, O);
7366
+ a.compileSchema.call(this, j);
7358
7367
  } finally {
7359
7368
  this.opts = C;
7360
7369
  }
7361
7370
  }
7362
7371
  }
7363
7372
  g.ValidationError = n.default, g.MissingRefError = s.default, e.default = g;
7364
- function d(M, O, C, A = "error") {
7373
+ function d(M, j, C, A = "error") {
7365
7374
  for (const b in M) {
7366
7375
  const P = b;
7367
- P in O && this.logger[A](`${C}: option ${b}. ${M[P]}`);
7376
+ P in j && this.logger[A](`${C}: option ${b}. ${M[P]}`);
7368
7377
  }
7369
7378
  }
7370
7379
  function $(M) {
@@ -7376,13 +7385,13 @@ function us() {
7376
7385
  if (Array.isArray(M))
7377
7386
  this.addSchema(M);
7378
7387
  else
7379
- for (const O in M)
7380
- this.addSchema(M[O], O);
7388
+ for (const j in M)
7389
+ this.addSchema(M[j], j);
7381
7390
  }
7382
7391
  function z() {
7383
7392
  for (const M in this.opts.formats) {
7384
- const O = this.opts.formats[M];
7385
- O && this.addFormat(M, O);
7393
+ const j = this.opts.formats[M];
7394
+ j && this.addFormat(M, j);
7386
7395
  }
7387
7396
  }
7388
7397
  function Z(M) {
@@ -7391,15 +7400,15 @@ function us() {
7391
7400
  return;
7392
7401
  }
7393
7402
  this.logger.warn("keywords option as map is deprecated, pass array");
7394
- for (const O in M) {
7395
- const C = M[O];
7396
- C.keyword || (C.keyword = O), this.addKeyword(C);
7403
+ for (const j in M) {
7404
+ const C = M[j];
7405
+ C.keyword || (C.keyword = j), this.addKeyword(C);
7397
7406
  }
7398
7407
  }
7399
7408
  function L() {
7400
7409
  const M = { ...this.opts };
7401
- for (const O of w)
7402
- delete M[O];
7410
+ for (const j of w)
7411
+ delete M[j];
7403
7412
  return M;
7404
7413
  }
7405
7414
  const q = { log() {
@@ -7416,42 +7425,42 @@ function us() {
7416
7425
  throw new Error("logger must implement log, warn and error methods");
7417
7426
  }
7418
7427
  const U = /^[a-z_$][a-z0-9_$:-]*$/i;
7419
- function K(M, O) {
7428
+ function K(M, j) {
7420
7429
  const { RULES: C } = this;
7421
7430
  if ((0, m.eachItem)(M, (A) => {
7422
7431
  if (C.keywords[A])
7423
7432
  throw new Error(`Keyword ${A} is already defined`);
7424
7433
  if (!U.test(A))
7425
7434
  throw new Error(`Keyword ${A} has invalid name`);
7426
- }), !!O && O.$data && !("code" in O || "validate" in O))
7435
+ }), !!j && j.$data && !("code" in j || "validate" in j))
7427
7436
  throw new Error('$data keyword must have "code" or "validate" function');
7428
7437
  }
7429
- function te(M, O, C) {
7438
+ function te(M, j, C) {
7430
7439
  var A;
7431
- const b = O?.post;
7440
+ const b = j?.post;
7432
7441
  if (C && b)
7433
7442
  throw new Error('keyword with "post" flag cannot have "type"');
7434
7443
  const { RULES: P } = this;
7435
7444
  let T = b ? P.post : P.rules.find(({ type: Y }) => Y === C);
7436
- if (T || (T = { type: C, rules: [] }, P.rules.push(T)), P.keywords[M] = !0, !O)
7445
+ if (T || (T = { type: C, rules: [] }, P.rules.push(T)), P.keywords[M] = !0, !j)
7437
7446
  return;
7438
7447
  const H = {
7439
7448
  keyword: M,
7440
7449
  definition: {
7441
- ...O,
7442
- type: (0, u.getJSONTypes)(O.type),
7443
- schemaType: (0, u.getJSONTypes)(O.schemaType)
7450
+ ...j,
7451
+ type: (0, u.getJSONTypes)(j.type),
7452
+ schemaType: (0, u.getJSONTypes)(j.schemaType)
7444
7453
  }
7445
7454
  };
7446
- O.before ? he.call(this, T, H, O.before) : T.rules.push(H), P.all[M] = H, (A = O.implements) === null || A === void 0 || A.forEach((Y) => this.addKeyword(Y));
7455
+ j.before ? he.call(this, T, H, j.before) : T.rules.push(H), P.all[M] = H, (A = j.implements) === null || A === void 0 || A.forEach((Y) => this.addKeyword(Y));
7447
7456
  }
7448
- function he(M, O, C) {
7457
+ function he(M, j, C) {
7449
7458
  const A = M.rules.findIndex((b) => b.keyword === C);
7450
- A >= 0 ? M.rules.splice(A, 0, O) : (M.rules.push(O), this.logger.warn(`rule ${C} is not defined`));
7459
+ A >= 0 ? M.rules.splice(A, 0, j) : (M.rules.push(j), this.logger.warn(`rule ${C} is not defined`));
7451
7460
  }
7452
7461
  function me(M) {
7453
- let { metaSchema: O } = M;
7454
- O !== void 0 && (M.$data && this.opts.$data && (O = Pe(O)), M.validateSchema = this.compile(O, !0));
7462
+ let { metaSchema: j } = M;
7463
+ j !== void 0 && (M.$data && this.opts.$data && (j = Pe(j)), M.validateSchema = this.compile(j, !0));
7455
7464
  }
7456
7465
  const ce = {
7457
7466
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
@@ -7462,7 +7471,7 @@ function us() {
7462
7471
  })(Nn)), Nn;
7463
7472
  }
7464
7473
  var Yt = {}, Xt = {}, Qt = {}, zo;
7465
- function zm() {
7474
+ function Im() {
7466
7475
  if (zo) return Qt;
7467
7476
  zo = 1, Object.defineProperty(Qt, "__esModule", { value: !0 });
7468
7477
  const e = {
@@ -7561,10 +7570,10 @@ function ds() {
7561
7570
  return it.callRef = c, it.default = a, it;
7562
7571
  }
7563
7572
  var To;
7564
- function ji() {
7573
+ function Ai() {
7565
7574
  if (To) return Xt;
7566
7575
  To = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
7567
- const e = /* @__PURE__ */ zm(), t = /* @__PURE__ */ ds(), r = [
7576
+ const e = /* @__PURE__ */ Im(), t = /* @__PURE__ */ ds(), r = [
7568
7577
  "$schema",
7569
7578
  "$id",
7570
7579
  "$defs",
@@ -7577,7 +7586,7 @@ function ji() {
7577
7586
  return Xt.default = r, Xt;
7578
7587
  }
7579
7588
  var er = {}, tr = {}, Co;
7580
- function Im() {
7589
+ function Tm() {
7581
7590
  if (Co) return tr;
7582
7591
  Co = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
7583
7592
  const e = /* @__PURE__ */ re(), t = e.operators, r = {
@@ -7602,7 +7611,7 @@ function Im() {
7602
7611
  return tr.default = s, tr;
7603
7612
  }
7604
7613
  var rr = {}, Mo;
7605
- function Tm() {
7614
+ function Cm() {
7606
7615
  if (Mo) return rr;
7607
7616
  Mo = 1, Object.defineProperty(rr, "__esModule", { value: !0 });
7608
7617
  const e = /* @__PURE__ */ re(), r = {
@@ -7622,7 +7631,7 @@ function Tm() {
7622
7631
  return rr.default = r, rr;
7623
7632
  }
7624
7633
  var nr = {}, sr = {}, Do;
7625
- function Cm() {
7634
+ function Mm() {
7626
7635
  if (Do) return sr;
7627
7636
  Do = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
7628
7637
  function e(t) {
@@ -7635,10 +7644,10 @@ function Cm() {
7635
7644
  return sr.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', sr;
7636
7645
  }
7637
7646
  var Vo;
7638
- function Mm() {
7647
+ function Dm() {
7639
7648
  if (Vo) return nr;
7640
7649
  Vo = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
7641
- const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ Cm(), s = {
7650
+ const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ Mm(), s = {
7642
7651
  keyword: ["maxLength", "minLength"],
7643
7652
  type: "string",
7644
7653
  schemaType: "number",
@@ -7658,7 +7667,7 @@ function Mm() {
7658
7667
  return nr.default = s, nr;
7659
7668
  }
7660
7669
  var or = {}, qo;
7661
- function Dm() {
7670
+ function Vm() {
7662
7671
  if (qo) return or;
7663
7672
  qo = 1, Object.defineProperty(or, "__esModule", { value: !0 });
7664
7673
  const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ re(), s = {
@@ -7684,7 +7693,7 @@ function Dm() {
7684
7693
  return or.default = s, or;
7685
7694
  }
7686
7695
  var ar = {}, Fo;
7687
- function Vm() {
7696
+ function qm() {
7688
7697
  if (Fo) return ar;
7689
7698
  Fo = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
7690
7699
  const e = /* @__PURE__ */ re(), r = {
@@ -7707,7 +7716,7 @@ function Vm() {
7707
7716
  return ar.default = r, ar;
7708
7717
  }
7709
7718
  var ir = {}, Zo;
7710
- function qm() {
7719
+ function Fm() {
7711
7720
  if (Zo) return ir;
7712
7721
  Zo = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
7713
7722
  const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), s = {
@@ -7764,7 +7773,7 @@ function qm() {
7764
7773
  return ir.default = s, ir;
7765
7774
  }
7766
7775
  var cr = {}, Uo;
7767
- function Fm() {
7776
+ function Zm() {
7768
7777
  if (Uo) return cr;
7769
7778
  Uo = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
7770
7779
  const e = /* @__PURE__ */ re(), r = {
@@ -7790,11 +7799,11 @@ var ur = {}, dr = {}, xo;
7790
7799
  function ls() {
7791
7800
  if (xo) return dr;
7792
7801
  xo = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
7793
- const e = Pi();
7802
+ const e = ji();
7794
7803
  return e.code = 'require("ajv/dist/runtime/equal").default', dr.default = e, dr;
7795
7804
  }
7796
7805
  var Lo;
7797
- function Zm() {
7806
+ function Um() {
7798
7807
  if (Lo) return ur;
7799
7808
  Lo = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
7800
7809
  const e = /* @__PURE__ */ tn(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ ls(), o = {
@@ -7838,7 +7847,7 @@ function Zm() {
7838
7847
  return ur.default = o, ur;
7839
7848
  }
7840
7849
  var lr = {}, Ko;
7841
- function Um() {
7850
+ function xm() {
7842
7851
  if (Ko) return lr;
7843
7852
  Ko = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
7844
7853
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ ls(), s = {
@@ -7856,7 +7865,7 @@ function Um() {
7856
7865
  return lr.default = s, lr;
7857
7866
  }
7858
7867
  var fr = {}, Jo;
7859
- function xm() {
7868
+ function Lm() {
7860
7869
  if (Jo) return fr;
7861
7870
  Jo = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
7862
7871
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ ls(), s = {
@@ -7896,10 +7905,10 @@ function xm() {
7896
7905
  return fr.default = s, fr;
7897
7906
  }
7898
7907
  var Go;
7899
- function Ai() {
7908
+ function Ri() {
7900
7909
  if (Go) return er;
7901
7910
  Go = 1, Object.defineProperty(er, "__esModule", { value: !0 });
7902
- const e = /* @__PURE__ */ Im(), t = /* @__PURE__ */ Tm(), r = /* @__PURE__ */ Mm(), n = /* @__PURE__ */ Dm(), s = /* @__PURE__ */ Vm(), o = /* @__PURE__ */ qm(), a = /* @__PURE__ */ Fm(), i = /* @__PURE__ */ Zm(), c = /* @__PURE__ */ Um(), u = /* @__PURE__ */ xm(), m = [
7911
+ const e = /* @__PURE__ */ Tm(), t = /* @__PURE__ */ Cm(), r = /* @__PURE__ */ Dm(), n = /* @__PURE__ */ Vm(), s = /* @__PURE__ */ qm(), o = /* @__PURE__ */ Fm(), a = /* @__PURE__ */ Zm(), i = /* @__PURE__ */ Um(), c = /* @__PURE__ */ xm(), u = /* @__PURE__ */ Lm(), m = [
7903
7912
  // number
7904
7913
  e.default,
7905
7914
  t.default,
@@ -7921,7 +7930,7 @@ function Ai() {
7921
7930
  return er.default = m, er;
7922
7931
  }
7923
7932
  var mr = {}, $t = {}, Ho;
7924
- function Ri() {
7933
+ function Ni() {
7925
7934
  if (Ho) return $t;
7926
7935
  Ho = 1, Object.defineProperty($t, "__esModule", { value: !0 }), $t.validateAdditionalItems = void 0;
7927
7936
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
@@ -7961,7 +7970,7 @@ function Ri() {
7961
7970
  return $t.validateAdditionalItems = s, $t.default = n, $t;
7962
7971
  }
7963
7972
  var hr = {}, bt = {}, Bo;
7964
- function Ni() {
7973
+ function zi() {
7965
7974
  if (Bo) return bt;
7966
7975
  Bo = 1, Object.defineProperty(bt, "__esModule", { value: !0 }), bt.validateTuple = void 0;
7967
7976
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ We(), n = {
@@ -7998,10 +8007,10 @@ function Ni() {
7998
8007
  return bt.validateTuple = s, bt.default = n, bt;
7999
8008
  }
8000
8009
  var Wo;
8001
- function Lm() {
8010
+ function Km() {
8002
8011
  if (Wo) return hr;
8003
8012
  Wo = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
8004
- const e = /* @__PURE__ */ Ni(), t = {
8013
+ const e = /* @__PURE__ */ zi(), t = {
8005
8014
  keyword: "prefixItems",
8006
8015
  type: "array",
8007
8016
  schemaType: ["array"],
@@ -8011,10 +8020,10 @@ function Lm() {
8011
8020
  return hr.default = t, hr;
8012
8021
  }
8013
8022
  var pr = {}, Yo;
8014
- function Km() {
8023
+ function Jm() {
8015
8024
  if (Yo) return pr;
8016
8025
  Yo = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
8017
- const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ We(), n = /* @__PURE__ */ Ri(), o = {
8026
+ const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ We(), n = /* @__PURE__ */ Ni(), o = {
8018
8027
  keyword: "items",
8019
8028
  type: "array",
8020
8029
  schemaType: ["object", "boolean"],
@@ -8031,7 +8040,7 @@ function Km() {
8031
8040
  return pr.default = o, pr;
8032
8041
  }
8033
8042
  var yr = {}, Xo;
8034
- function Jm() {
8043
+ function Gm() {
8035
8044
  if (Xo) return yr;
8036
8045
  Xo = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
8037
8046
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
@@ -8161,7 +8170,7 @@ function fs() {
8161
8170
  })(Fn)), Fn;
8162
8171
  }
8163
8172
  var vr = {}, ea;
8164
- function Gm() {
8173
+ function Hm() {
8165
8174
  if (ea) return vr;
8166
8175
  ea = 1, Object.defineProperty(vr, "__esModule", { value: !0 });
8167
8176
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
@@ -8193,7 +8202,7 @@ function Gm() {
8193
8202
  return vr.default = n, vr;
8194
8203
  }
8195
8204
  var gr = {}, ta;
8196
- function zi() {
8205
+ function Ii() {
8197
8206
  if (ta) return gr;
8198
8207
  ta = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
8199
8208
  const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ Be(), n = /* @__PURE__ */ ie(), o = {
@@ -8264,10 +8273,10 @@ function zi() {
8264
8273
  return gr.default = o, gr;
8265
8274
  }
8266
8275
  var _r = {}, ra;
8267
- function Hm() {
8276
+ function Bm() {
8268
8277
  if (ra) return _r;
8269
8278
  ra = 1, Object.defineProperty(_r, "__esModule", { value: !0 });
8270
- const e = /* @__PURE__ */ zt(), t = /* @__PURE__ */ We(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ zi(), s = {
8279
+ const e = /* @__PURE__ */ zt(), t = /* @__PURE__ */ We(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ Ii(), s = {
8271
8280
  keyword: "properties",
8272
8281
  type: "object",
8273
8282
  schemaType: "object",
@@ -8299,7 +8308,7 @@ function Hm() {
8299
8308
  return _r.default = s, _r;
8300
8309
  }
8301
8310
  var $r = {}, na;
8302
- function Bm() {
8311
+ function Wm() {
8303
8312
  if (na) return $r;
8304
8313
  na = 1, Object.defineProperty($r, "__esModule", { value: !0 });
8305
8314
  const e = /* @__PURE__ */ We(), t = /* @__PURE__ */ re(), r = /* @__PURE__ */ ie(), n = /* @__PURE__ */ ie(), s = {
@@ -8340,7 +8349,7 @@ function Bm() {
8340
8349
  return $r.default = s, $r;
8341
8350
  }
8342
8351
  var br = {}, sa;
8343
- function Wm() {
8352
+ function Ym() {
8344
8353
  if (sa) return br;
8345
8354
  sa = 1, Object.defineProperty(br, "__esModule", { value: !0 });
8346
8355
  const e = /* @__PURE__ */ ie(), t = {
@@ -8366,7 +8375,7 @@ function Wm() {
8366
8375
  return br.default = t, br;
8367
8376
  }
8368
8377
  var wr = {}, oa;
8369
- function Ym() {
8378
+ function Xm() {
8370
8379
  if (oa) return wr;
8371
8380
  oa = 1, Object.defineProperty(wr, "__esModule", { value: !0 });
8372
8381
  const t = {
@@ -8379,7 +8388,7 @@ function Ym() {
8379
8388
  return wr.default = t, wr;
8380
8389
  }
8381
8390
  var Sr = {}, aa;
8382
- function Xm() {
8391
+ function Qm() {
8383
8392
  if (aa) return Sr;
8384
8393
  aa = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
8385
8394
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
@@ -8415,7 +8424,7 @@ function Xm() {
8415
8424
  return Sr.default = n, Sr;
8416
8425
  }
8417
8426
  var Er = {}, ia;
8418
- function Qm() {
8427
+ function eh() {
8419
8428
  if (ia) return Er;
8420
8429
  ia = 1, Object.defineProperty(Er, "__esModule", { value: !0 });
8421
8430
  const e = /* @__PURE__ */ ie(), t = {
@@ -8437,7 +8446,7 @@ function Qm() {
8437
8446
  return Er.default = t, Er;
8438
8447
  }
8439
8448
  var kr = {}, ca;
8440
- function eh() {
8449
+ function th() {
8441
8450
  if (ca) return kr;
8442
8451
  ca = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
8443
8452
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
@@ -8484,7 +8493,7 @@ function eh() {
8484
8493
  return kr.default = n, kr;
8485
8494
  }
8486
8495
  var Pr = {}, ua;
8487
- function th() {
8496
+ function rh() {
8488
8497
  if (ua) return Pr;
8489
8498
  ua = 1, Object.defineProperty(Pr, "__esModule", { value: !0 });
8490
8499
  const e = /* @__PURE__ */ ie(), t = {
@@ -8497,10 +8506,10 @@ function th() {
8497
8506
  return Pr.default = t, Pr;
8498
8507
  }
8499
8508
  var da;
8500
- function Ii() {
8509
+ function Ti() {
8501
8510
  if (da) return mr;
8502
8511
  da = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
8503
- const e = /* @__PURE__ */ Ri(), t = /* @__PURE__ */ Lm(), r = /* @__PURE__ */ Ni(), n = /* @__PURE__ */ Km(), s = /* @__PURE__ */ Jm(), o = /* @__PURE__ */ fs(), a = /* @__PURE__ */ Gm(), i = /* @__PURE__ */ zi(), c = /* @__PURE__ */ Hm(), u = /* @__PURE__ */ Bm(), m = /* @__PURE__ */ Wm(), v = /* @__PURE__ */ Ym(), l = /* @__PURE__ */ Xm(), h = /* @__PURE__ */ Qm(), w = /* @__PURE__ */ eh(), S = /* @__PURE__ */ th();
8512
+ const e = /* @__PURE__ */ Ni(), t = /* @__PURE__ */ Km(), r = /* @__PURE__ */ zi(), n = /* @__PURE__ */ Jm(), s = /* @__PURE__ */ Gm(), o = /* @__PURE__ */ fs(), a = /* @__PURE__ */ Hm(), i = /* @__PURE__ */ Ii(), c = /* @__PURE__ */ Bm(), u = /* @__PURE__ */ Wm(), m = /* @__PURE__ */ Ym(), v = /* @__PURE__ */ Xm(), l = /* @__PURE__ */ Qm(), h = /* @__PURE__ */ eh(), w = /* @__PURE__ */ th(), S = /* @__PURE__ */ rh();
8504
8513
  function p(_ = !1) {
8505
8514
  const f = [
8506
8515
  // any
@@ -8521,10 +8530,10 @@ function Ii() {
8521
8530
  }
8522
8531
  return mr.default = p, mr;
8523
8532
  }
8524
- var Or = {}, jr = {}, la;
8525
- function rh() {
8526
- if (la) return jr;
8527
- la = 1, Object.defineProperty(jr, "__esModule", { value: !0 });
8533
+ var jr = {}, Or = {}, la;
8534
+ function nh() {
8535
+ if (la) return Or;
8536
+ la = 1, Object.defineProperty(Or, "__esModule", { value: !0 });
8528
8537
  const e = /* @__PURE__ */ re(), r = {
8529
8538
  keyword: "format",
8530
8539
  type: ["number", "string"],
@@ -8588,17 +8597,17 @@ function rh() {
8588
8597
  }
8589
8598
  }
8590
8599
  };
8591
- return jr.default = r, jr;
8600
+ return Or.default = r, Or;
8592
8601
  }
8593
8602
  var fa;
8594
- function Ti() {
8595
- if (fa) return Or;
8596
- fa = 1, Object.defineProperty(Or, "__esModule", { value: !0 });
8597
- const t = [(/* @__PURE__ */ rh()).default];
8598
- return Or.default = t, Or;
8603
+ function Ci() {
8604
+ if (fa) return jr;
8605
+ fa = 1, Object.defineProperty(jr, "__esModule", { value: !0 });
8606
+ const t = [(/* @__PURE__ */ nh()).default];
8607
+ return jr.default = t, jr;
8599
8608
  }
8600
8609
  var yt = {}, ma;
8601
- function Ci() {
8610
+ function Mi() {
8602
8611
  return ma || (ma = 1, Object.defineProperty(yt, "__esModule", { value: !0 }), yt.contentVocabulary = yt.metadataVocabulary = void 0, yt.metadataVocabulary = [
8603
8612
  "title",
8604
8613
  "description",
@@ -8614,10 +8623,10 @@ function Ci() {
8614
8623
  ]), yt;
8615
8624
  }
8616
8625
  var ha;
8617
- function Mi() {
8626
+ function Di() {
8618
8627
  if (ha) return Yt;
8619
8628
  ha = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
8620
- const e = /* @__PURE__ */ ji(), t = /* @__PURE__ */ Ai(), r = /* @__PURE__ */ Ii(), n = /* @__PURE__ */ Ti(), s = /* @__PURE__ */ Ci(), o = [
8629
+ const e = /* @__PURE__ */ Ai(), t = /* @__PURE__ */ Ri(), r = /* @__PURE__ */ Ti(), n = /* @__PURE__ */ Ci(), s = /* @__PURE__ */ Mi(), o = [
8621
8630
  e.default,
8622
8631
  t.default,
8623
8632
  (0, r.default)(),
@@ -8628,7 +8637,7 @@ function Mi() {
8628
8637
  return Yt.default = o, Yt;
8629
8638
  }
8630
8639
  var Ar = {}, Dt = {}, pa;
8631
- function nh() {
8640
+ function sh() {
8632
8641
  if (pa) return Dt;
8633
8642
  pa = 1, Object.defineProperty(Dt, "__esModule", { value: !0 }), Dt.DiscrError = void 0;
8634
8643
  var e;
@@ -8640,7 +8649,7 @@ var ya;
8640
8649
  function ms() {
8641
8650
  if (ya) return Ar;
8642
8651
  ya = 1, Object.defineProperty(Ar, "__esModule", { value: !0 });
8643
- const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ nh(), r = /* @__PURE__ */ pn(), n = /* @__PURE__ */ It(), s = /* @__PURE__ */ ie(), a = {
8652
+ const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ sh(), r = /* @__PURE__ */ pn(), n = /* @__PURE__ */ It(), s = /* @__PURE__ */ ie(), a = {
8644
8653
  keyword: "discriminator",
8645
8654
  type: "object",
8646
8655
  schemaType: "object",
@@ -8713,20 +8722,20 @@ function ms() {
8713
8722
  };
8714
8723
  return Ar.default = a, Ar;
8715
8724
  }
8716
- const sh = "http://json-schema.org/draft-07/schema#", oh = "http://json-schema.org/draft-07/schema#", ah = "Core schema meta-schema", ih = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, ch = ["object", "boolean"], uh = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, dh = {
8717
- $schema: sh,
8718
- $id: oh,
8719
- title: ah,
8720
- definitions: ih,
8721
- type: ch,
8722
- properties: uh,
8725
+ const oh = "http://json-schema.org/draft-07/schema#", ah = "http://json-schema.org/draft-07/schema#", ih = "Core schema meta-schema", ch = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, uh = ["object", "boolean"], dh = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, lh = {
8726
+ $schema: oh,
8727
+ $id: ah,
8728
+ title: ih,
8729
+ definitions: ch,
8730
+ type: uh,
8731
+ properties: dh,
8723
8732
  default: !0
8724
8733
  };
8725
8734
  var va;
8726
- function Di() {
8735
+ function Vi() {
8727
8736
  return va || (va = 1, (function(e, t) {
8728
8737
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
8729
- const r = /* @__PURE__ */ us(), n = /* @__PURE__ */ Mi(), s = /* @__PURE__ */ ms(), o = dh, a = ["/properties"], i = "http://json-schema.org/draft-07/schema";
8738
+ const r = /* @__PURE__ */ us(), n = /* @__PURE__ */ Di(), s = /* @__PURE__ */ ms(), o = lh, a = ["/properties"], i = "http://json-schema.org/draft-07/schema";
8730
8739
  class c extends r.default {
8731
8740
  _addVocabularies() {
8732
8741
  super._addVocabularies(), n.default.forEach((w) => this.addVocabulary(w)), this.opts.discriminator && this.addKeyword(s.default);
@@ -8770,10 +8779,10 @@ function Di() {
8770
8779
  } });
8771
8780
  })(Jt, Jt.exports)), Jt.exports;
8772
8781
  }
8773
- var lh = /* @__PURE__ */ Di();
8774
- const fh = /* @__PURE__ */ fn(lh);
8782
+ var fh = /* @__PURE__ */ Vi();
8783
+ const mh = /* @__PURE__ */ fn(fh);
8775
8784
  var Rr = { exports: {} }, Nr = {}, wt = {}, ga;
8776
- function Vi() {
8785
+ function qi() {
8777
8786
  if (ga) return wt;
8778
8787
  ga = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.dynamicAnchor = void 0;
8779
8788
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ Be(), r = /* @__PURE__ */ pn(), n = /* @__PURE__ */ ds(), s = {
@@ -8795,7 +8804,7 @@ function Vi() {
8795
8804
  return wt.default = s, wt;
8796
8805
  }
8797
8806
  var St = {}, _a;
8798
- function qi() {
8807
+ function Fi() {
8799
8808
  if (_a) return St;
8800
8809
  _a = 1, Object.defineProperty(St, "__esModule", { value: !0 }), St.dynamicRef = void 0;
8801
8810
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ Be(), r = /* @__PURE__ */ ds(), n = {
@@ -8830,10 +8839,10 @@ function qi() {
8830
8839
  return St.dynamicRef = s, St.default = n, St;
8831
8840
  }
8832
8841
  var zr = {}, $a;
8833
- function mh() {
8842
+ function hh() {
8834
8843
  if ($a) return zr;
8835
8844
  $a = 1, Object.defineProperty(zr, "__esModule", { value: !0 });
8836
- const e = /* @__PURE__ */ Vi(), t = /* @__PURE__ */ ie(), r = {
8845
+ const e = /* @__PURE__ */ qi(), t = /* @__PURE__ */ ie(), r = {
8837
8846
  keyword: "$recursiveAnchor",
8838
8847
  schemaType: "boolean",
8839
8848
  code(n) {
@@ -8843,10 +8852,10 @@ function mh() {
8843
8852
  return zr.default = r, zr;
8844
8853
  }
8845
8854
  var Ir = {}, ba;
8846
- function hh() {
8855
+ function ph() {
8847
8856
  if (ba) return Ir;
8848
8857
  ba = 1, Object.defineProperty(Ir, "__esModule", { value: !0 });
8849
- const e = /* @__PURE__ */ qi(), t = {
8858
+ const e = /* @__PURE__ */ Fi(), t = {
8850
8859
  keyword: "$recursiveRef",
8851
8860
  schemaType: "string",
8852
8861
  code: (r) => (0, e.dynamicRef)(r, r.schema)
@@ -8854,14 +8863,14 @@ function hh() {
8854
8863
  return Ir.default = t, Ir;
8855
8864
  }
8856
8865
  var wa;
8857
- function Fi() {
8866
+ function Zi() {
8858
8867
  if (wa) return Nr;
8859
8868
  wa = 1, Object.defineProperty(Nr, "__esModule", { value: !0 });
8860
- const e = /* @__PURE__ */ Vi(), t = /* @__PURE__ */ qi(), r = /* @__PURE__ */ mh(), n = /* @__PURE__ */ hh(), s = [e.default, t.default, r.default, n.default];
8869
+ const e = /* @__PURE__ */ qi(), t = /* @__PURE__ */ Fi(), r = /* @__PURE__ */ hh(), n = /* @__PURE__ */ ph(), s = [e.default, t.default, r.default, n.default];
8861
8870
  return Nr.default = s, Nr;
8862
8871
  }
8863
8872
  var Tr = {}, Cr = {}, Sa;
8864
- function ph() {
8873
+ function yh() {
8865
8874
  if (Sa) return Cr;
8866
8875
  Sa = 1, Object.defineProperty(Cr, "__esModule", { value: !0 });
8867
8876
  const e = /* @__PURE__ */ fs(), t = {
@@ -8874,7 +8883,7 @@ function ph() {
8874
8883
  return Cr.default = t, Cr;
8875
8884
  }
8876
8885
  var Mr = {}, Ea;
8877
- function yh() {
8886
+ function vh() {
8878
8887
  if (Ea) return Mr;
8879
8888
  Ea = 1, Object.defineProperty(Mr, "__esModule", { value: !0 });
8880
8889
  const e = /* @__PURE__ */ fs(), t = {
@@ -8886,7 +8895,7 @@ function yh() {
8886
8895
  return Mr.default = t, Mr;
8887
8896
  }
8888
8897
  var Dr = {}, ka;
8889
- function vh() {
8898
+ function gh() {
8890
8899
  if (ka) return Dr;
8891
8900
  ka = 1, Object.defineProperty(Dr, "__esModule", { value: !0 });
8892
8901
  const e = /* @__PURE__ */ ie(), t = {
@@ -8900,16 +8909,16 @@ function vh() {
8900
8909
  return Dr.default = t, Dr;
8901
8910
  }
8902
8911
  var Pa;
8903
- function Zi() {
8912
+ function Ui() {
8904
8913
  if (Pa) return Tr;
8905
8914
  Pa = 1, Object.defineProperty(Tr, "__esModule", { value: !0 });
8906
- const e = /* @__PURE__ */ ph(), t = /* @__PURE__ */ yh(), r = /* @__PURE__ */ vh(), n = [e.default, t.default, r.default];
8915
+ const e = /* @__PURE__ */ yh(), t = /* @__PURE__ */ vh(), r = /* @__PURE__ */ gh(), n = [e.default, t.default, r.default];
8907
8916
  return Tr.default = n, Tr;
8908
8917
  }
8909
- var Vr = {}, qr = {}, Oa;
8910
- function gh() {
8911
- if (Oa) return qr;
8912
- Oa = 1, Object.defineProperty(qr, "__esModule", { value: !0 });
8918
+ var Vr = {}, qr = {}, ja;
8919
+ function _h() {
8920
+ if (ja) return qr;
8921
+ ja = 1, Object.defineProperty(qr, "__esModule", { value: !0 });
8913
8922
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), r = /* @__PURE__ */ Be(), s = {
8914
8923
  keyword: "unevaluatedProperties",
8915
8924
  type: "object",
@@ -8952,10 +8961,10 @@ function gh() {
8952
8961
  };
8953
8962
  return qr.default = s, qr;
8954
8963
  }
8955
- var Fr = {}, ja;
8956
- function _h() {
8957
- if (ja) return Fr;
8958
- ja = 1, Object.defineProperty(Fr, "__esModule", { value: !0 });
8964
+ var Fr = {}, Oa;
8965
+ function $h() {
8966
+ if (Oa) return Fr;
8967
+ Oa = 1, Object.defineProperty(Fr, "__esModule", { value: !0 });
8959
8968
  const e = /* @__PURE__ */ re(), t = /* @__PURE__ */ ie(), n = {
8960
8969
  keyword: "unevaluatedItems",
8961
8970
  type: "array",
@@ -8986,78 +8995,78 @@ function _h() {
8986
8995
  return Fr.default = n, Fr;
8987
8996
  }
8988
8997
  var Aa;
8989
- function Ui() {
8998
+ function xi() {
8990
8999
  if (Aa) return Vr;
8991
9000
  Aa = 1, Object.defineProperty(Vr, "__esModule", { value: !0 });
8992
- const e = /* @__PURE__ */ gh(), t = /* @__PURE__ */ _h(), r = [e.default, t.default];
9001
+ const e = /* @__PURE__ */ _h(), t = /* @__PURE__ */ $h(), r = [e.default, t.default];
8993
9002
  return Vr.default = r, Vr;
8994
9003
  }
8995
9004
  var Zr = {};
8996
- const $h = "https://json-schema.org/draft/2019-09/schema", bh = "https://json-schema.org/draft/2019-09/schema", wh = { "https://json-schema.org/draft/2019-09/vocab/core": !0, "https://json-schema.org/draft/2019-09/vocab/applicator": !0, "https://json-schema.org/draft/2019-09/vocab/validation": !0, "https://json-schema.org/draft/2019-09/vocab/meta-data": !0, "https://json-schema.org/draft/2019-09/vocab/format": !1, "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Sh = !0, Eh = "Core and Validation specifications meta-schema", kh = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format" }, { $ref: "meta/content" }], Ph = ["object", "boolean"], Oh = { definitions: { $comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, dependencies: { $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"', type: "object", additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] } } }, jh = {
8997
- $schema: $h,
8998
- $id: bh,
8999
- $vocabulary: wh,
9000
- $recursiveAnchor: Sh,
9001
- title: Eh,
9002
- allOf: kh,
9003
- type: Ph,
9005
+ const bh = "https://json-schema.org/draft/2019-09/schema", wh = "https://json-schema.org/draft/2019-09/schema", Sh = { "https://json-schema.org/draft/2019-09/vocab/core": !0, "https://json-schema.org/draft/2019-09/vocab/applicator": !0, "https://json-schema.org/draft/2019-09/vocab/validation": !0, "https://json-schema.org/draft/2019-09/vocab/meta-data": !0, "https://json-schema.org/draft/2019-09/vocab/format": !1, "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Eh = !0, kh = "Core and Validation specifications meta-schema", Ph = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format" }, { $ref: "meta/content" }], jh = ["object", "boolean"], Oh = { definitions: { $comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, dependencies: { $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"', type: "object", additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] } } }, Ah = {
9006
+ $schema: bh,
9007
+ $id: wh,
9008
+ $vocabulary: Sh,
9009
+ $recursiveAnchor: Eh,
9010
+ title: kh,
9011
+ allOf: Ph,
9012
+ type: jh,
9004
9013
  properties: Oh
9005
- }, Ah = "https://json-schema.org/draft/2019-09/schema", Rh = "https://json-schema.org/draft/2019-09/meta/applicator", Nh = { "https://json-schema.org/draft/2019-09/vocab/applicator": !0 }, zh = !0, Ih = "Applicator vocabulary meta-schema", Th = ["object", "boolean"], Ch = { additionalItems: { $recursiveRef: "#" }, unevaluatedItems: { $recursiveRef: "#" }, items: { anyOf: [{ $recursiveRef: "#" }, { $ref: "#/$defs/schemaArray" }] }, contains: { $recursiveRef: "#" }, additionalProperties: { $recursiveRef: "#" }, unevaluatedProperties: { $recursiveRef: "#" }, properties: { type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $recursiveRef: "#" }, propertyNames: { format: "regex" }, default: {} }, dependentSchemas: { type: "object", additionalProperties: { $recursiveRef: "#" } }, propertyNames: { $recursiveRef: "#" }, if: { $recursiveRef: "#" }, then: { $recursiveRef: "#" }, else: { $recursiveRef: "#" }, allOf: { $ref: "#/$defs/schemaArray" }, anyOf: { $ref: "#/$defs/schemaArray" }, oneOf: { $ref: "#/$defs/schemaArray" }, not: { $recursiveRef: "#" } }, Mh = { schemaArray: { type: "array", minItems: 1, items: { $recursiveRef: "#" } } }, Dh = {
9006
- $schema: Ah,
9007
- $id: Rh,
9008
- $vocabulary: Nh,
9009
- $recursiveAnchor: zh,
9010
- title: Ih,
9011
- type: Th,
9012
- properties: Ch,
9013
- $defs: Mh
9014
- }, Vh = "https://json-schema.org/draft/2019-09/schema", qh = "https://json-schema.org/draft/2019-09/meta/content", Fh = { "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Zh = !0, Uh = "Content vocabulary meta-schema", xh = ["object", "boolean"], Lh = { contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, contentSchema: { $recursiveRef: "#" } }, Kh = {
9015
- $schema: Vh,
9016
- $id: qh,
9017
- $vocabulary: Fh,
9018
- $recursiveAnchor: Zh,
9019
- title: Uh,
9020
- type: xh,
9021
- properties: Lh
9022
- }, Jh = "https://json-schema.org/draft/2019-09/schema", Gh = "https://json-schema.org/draft/2019-09/meta/core", Hh = { "https://json-schema.org/draft/2019-09/vocab/core": !0 }, Bh = !0, Wh = "Core vocabulary meta-schema", Yh = ["object", "boolean"], Xh = { $id: { type: "string", format: "uri-reference", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { type: "string", format: "uri" }, $anchor: { type: "string", pattern: "^[A-Za-z][-A-Za-z0-9.:_]*$" }, $ref: { type: "string", format: "uri-reference" }, $recursiveRef: { type: "string", format: "uri-reference" }, $recursiveAnchor: { type: "boolean", default: !1 }, $vocabulary: { type: "object", propertyNames: { type: "string", format: "uri" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} } }, Qh = {
9023
- $schema: Jh,
9024
- $id: Gh,
9025
- $vocabulary: Hh,
9026
- $recursiveAnchor: Bh,
9027
- title: Wh,
9028
- type: Yh,
9029
- properties: Xh
9030
- }, ep = "https://json-schema.org/draft/2019-09/schema", tp = "https://json-schema.org/draft/2019-09/meta/format", rp = { "https://json-schema.org/draft/2019-09/vocab/format": !0 }, np = !0, sp = "Format vocabulary meta-schema", op = ["object", "boolean"], ap = { format: { type: "string" } }, ip = {
9031
- $schema: ep,
9032
- $id: tp,
9033
- $vocabulary: rp,
9034
- $recursiveAnchor: np,
9035
- title: sp,
9036
- type: op,
9037
- properties: ap
9038
- }, cp = "https://json-schema.org/draft/2019-09/schema", up = "https://json-schema.org/draft/2019-09/meta/meta-data", dp = { "https://json-schema.org/draft/2019-09/vocab/meta-data": !0 }, lp = !0, fp = "Meta-data vocabulary meta-schema", mp = ["object", "boolean"], hp = { title: { type: "string" }, description: { type: "string" }, default: !0, deprecated: { type: "boolean", default: !1 }, readOnly: { type: "boolean", default: !1 }, writeOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 } }, pp = {
9039
- $schema: cp,
9040
- $id: up,
9041
- $vocabulary: dp,
9042
- $recursiveAnchor: lp,
9043
- title: fp,
9044
- type: mp,
9045
- properties: hp
9046
- }, yp = "https://json-schema.org/draft/2019-09/schema", vp = "https://json-schema.org/draft/2019-09/meta/validation", gp = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, _p = !0, $p = "Validation vocabulary meta-schema", bp = ["object", "boolean"], wp = { multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } }, const: !0, enum: { type: "array", items: !0 }, type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] } }, Sp = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Ep = {
9047
- $schema: yp,
9048
- $id: vp,
9049
- $vocabulary: gp,
9050
- $recursiveAnchor: _p,
9051
- title: $p,
9052
- type: bp,
9053
- properties: wp,
9054
- $defs: Sp
9014
+ }, Rh = "https://json-schema.org/draft/2019-09/schema", Nh = "https://json-schema.org/draft/2019-09/meta/applicator", zh = { "https://json-schema.org/draft/2019-09/vocab/applicator": !0 }, Ih = !0, Th = "Applicator vocabulary meta-schema", Ch = ["object", "boolean"], Mh = { additionalItems: { $recursiveRef: "#" }, unevaluatedItems: { $recursiveRef: "#" }, items: { anyOf: [{ $recursiveRef: "#" }, { $ref: "#/$defs/schemaArray" }] }, contains: { $recursiveRef: "#" }, additionalProperties: { $recursiveRef: "#" }, unevaluatedProperties: { $recursiveRef: "#" }, properties: { type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $recursiveRef: "#" }, propertyNames: { format: "regex" }, default: {} }, dependentSchemas: { type: "object", additionalProperties: { $recursiveRef: "#" } }, propertyNames: { $recursiveRef: "#" }, if: { $recursiveRef: "#" }, then: { $recursiveRef: "#" }, else: { $recursiveRef: "#" }, allOf: { $ref: "#/$defs/schemaArray" }, anyOf: { $ref: "#/$defs/schemaArray" }, oneOf: { $ref: "#/$defs/schemaArray" }, not: { $recursiveRef: "#" } }, Dh = { schemaArray: { type: "array", minItems: 1, items: { $recursiveRef: "#" } } }, Vh = {
9015
+ $schema: Rh,
9016
+ $id: Nh,
9017
+ $vocabulary: zh,
9018
+ $recursiveAnchor: Ih,
9019
+ title: Th,
9020
+ type: Ch,
9021
+ properties: Mh,
9022
+ $defs: Dh
9023
+ }, qh = "https://json-schema.org/draft/2019-09/schema", Fh = "https://json-schema.org/draft/2019-09/meta/content", Zh = { "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Uh = !0, xh = "Content vocabulary meta-schema", Lh = ["object", "boolean"], Kh = { contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, contentSchema: { $recursiveRef: "#" } }, Jh = {
9024
+ $schema: qh,
9025
+ $id: Fh,
9026
+ $vocabulary: Zh,
9027
+ $recursiveAnchor: Uh,
9028
+ title: xh,
9029
+ type: Lh,
9030
+ properties: Kh
9031
+ }, Gh = "https://json-schema.org/draft/2019-09/schema", Hh = "https://json-schema.org/draft/2019-09/meta/core", Bh = { "https://json-schema.org/draft/2019-09/vocab/core": !0 }, Wh = !0, Yh = "Core vocabulary meta-schema", Xh = ["object", "boolean"], Qh = { $id: { type: "string", format: "uri-reference", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { type: "string", format: "uri" }, $anchor: { type: "string", pattern: "^[A-Za-z][-A-Za-z0-9.:_]*$" }, $ref: { type: "string", format: "uri-reference" }, $recursiveRef: { type: "string", format: "uri-reference" }, $recursiveAnchor: { type: "boolean", default: !1 }, $vocabulary: { type: "object", propertyNames: { type: "string", format: "uri" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} } }, ep = {
9032
+ $schema: Gh,
9033
+ $id: Hh,
9034
+ $vocabulary: Bh,
9035
+ $recursiveAnchor: Wh,
9036
+ title: Yh,
9037
+ type: Xh,
9038
+ properties: Qh
9039
+ }, tp = "https://json-schema.org/draft/2019-09/schema", rp = "https://json-schema.org/draft/2019-09/meta/format", np = { "https://json-schema.org/draft/2019-09/vocab/format": !0 }, sp = !0, op = "Format vocabulary meta-schema", ap = ["object", "boolean"], ip = { format: { type: "string" } }, cp = {
9040
+ $schema: tp,
9041
+ $id: rp,
9042
+ $vocabulary: np,
9043
+ $recursiveAnchor: sp,
9044
+ title: op,
9045
+ type: ap,
9046
+ properties: ip
9047
+ }, up = "https://json-schema.org/draft/2019-09/schema", dp = "https://json-schema.org/draft/2019-09/meta/meta-data", lp = { "https://json-schema.org/draft/2019-09/vocab/meta-data": !0 }, fp = !0, mp = "Meta-data vocabulary meta-schema", hp = ["object", "boolean"], pp = { title: { type: "string" }, description: { type: "string" }, default: !0, deprecated: { type: "boolean", default: !1 }, readOnly: { type: "boolean", default: !1 }, writeOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 } }, yp = {
9048
+ $schema: up,
9049
+ $id: dp,
9050
+ $vocabulary: lp,
9051
+ $recursiveAnchor: fp,
9052
+ title: mp,
9053
+ type: hp,
9054
+ properties: pp
9055
+ }, vp = "https://json-schema.org/draft/2019-09/schema", gp = "https://json-schema.org/draft/2019-09/meta/validation", _p = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, $p = !0, bp = "Validation vocabulary meta-schema", wp = ["object", "boolean"], Sp = { multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } }, const: !0, enum: { type: "array", items: !0 }, type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] } }, Ep = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, kp = {
9056
+ $schema: vp,
9057
+ $id: gp,
9058
+ $vocabulary: _p,
9059
+ $recursiveAnchor: $p,
9060
+ title: bp,
9061
+ type: wp,
9062
+ properties: Sp,
9063
+ $defs: Ep
9055
9064
  };
9056
9065
  var Ra;
9057
- function kp() {
9066
+ function Pp() {
9058
9067
  if (Ra) return Zr;
9059
9068
  Ra = 1, Object.defineProperty(Zr, "__esModule", { value: !0 });
9060
- const e = jh, t = Dh, r = Kh, n = Qh, s = ip, o = pp, a = Ep, i = ["/properties"];
9069
+ const e = Ah, t = Vh, r = Jh, n = ep, s = cp, o = yp, a = kp, i = ["/properties"];
9061
9070
  function c(u) {
9062
9071
  return [
9063
9072
  e,
@@ -9075,10 +9084,10 @@ function kp() {
9075
9084
  return Zr.default = c, Zr;
9076
9085
  }
9077
9086
  var Na;
9078
- function Pp() {
9087
+ function jp() {
9079
9088
  return Na || (Na = 1, (function(e, t) {
9080
9089
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv2019 = void 0;
9081
- const r = /* @__PURE__ */ us(), n = /* @__PURE__ */ Mi(), s = /* @__PURE__ */ Fi(), o = /* @__PURE__ */ Zi(), a = /* @__PURE__ */ Ui(), i = /* @__PURE__ */ ms(), c = /* @__PURE__ */ kp(), u = "https://json-schema.org/draft/2019-09/schema";
9090
+ const r = /* @__PURE__ */ us(), n = /* @__PURE__ */ Di(), s = /* @__PURE__ */ Zi(), o = /* @__PURE__ */ Ui(), a = /* @__PURE__ */ xi(), i = /* @__PURE__ */ ms(), c = /* @__PURE__ */ Pp(), u = "https://json-schema.org/draft/2019-09/schema";
9082
9091
  class m extends r.default {
9083
9092
  constructor(p = {}) {
9084
9093
  super({
@@ -9129,13 +9138,13 @@ function Pp() {
9129
9138
  } });
9130
9139
  })(Rr, Rr.exports)), Rr.exports;
9131
9140
  }
9132
- var Op = /* @__PURE__ */ Pp();
9133
- const jp = /* @__PURE__ */ fn(Op);
9141
+ var Op = /* @__PURE__ */ jp();
9142
+ const Ap = /* @__PURE__ */ fn(Op);
9134
9143
  var Ur = { exports: {} }, xr = {}, za;
9135
- function Ap() {
9144
+ function Rp() {
9136
9145
  if (za) return xr;
9137
9146
  za = 1, Object.defineProperty(xr, "__esModule", { value: !0 });
9138
- const e = /* @__PURE__ */ ji(), t = /* @__PURE__ */ Ai(), r = /* @__PURE__ */ Ii(), n = /* @__PURE__ */ Fi(), s = /* @__PURE__ */ Zi(), o = /* @__PURE__ */ Ui(), a = /* @__PURE__ */ Ti(), i = /* @__PURE__ */ Ci(), c = [
9147
+ const e = /* @__PURE__ */ Ai(), t = /* @__PURE__ */ Ri(), r = /* @__PURE__ */ Ti(), n = /* @__PURE__ */ Zi(), s = /* @__PURE__ */ Ui(), o = /* @__PURE__ */ xi(), a = /* @__PURE__ */ Ci(), i = /* @__PURE__ */ Mi(), c = [
9139
9148
  n.default,
9140
9149
  e.default,
9141
9150
  t.default,
@@ -9149,81 +9158,81 @@ function Ap() {
9149
9158
  return xr.default = c, xr;
9150
9159
  }
9151
9160
  var Lr = {};
9152
- const Rp = "https://json-schema.org/draft/2020-12/schema", Np = "https://json-schema.org/draft/2020-12/schema", zp = { "https://json-schema.org/draft/2020-12/vocab/core": !0, "https://json-schema.org/draft/2020-12/vocab/applicator": !0, "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0, "https://json-schema.org/draft/2020-12/vocab/validation": !0, "https://json-schema.org/draft/2020-12/vocab/meta-data": !0, "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0, "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Ip = "meta", Tp = "Core and Validation specifications meta-schema", Cp = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/unevaluated" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format-annotation" }, { $ref: "meta/content" }], Mp = ["object", "boolean"], Dp = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", Vp = { definitions: { $comment: '"definitions" has been replaced by "$defs".', type: "object", additionalProperties: { $dynamicRef: "#meta" }, deprecated: !0, default: {} }, dependencies: { $comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', type: "object", additionalProperties: { anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }] }, deprecated: !0, default: {} }, $recursiveAnchor: { $comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', $ref: "meta/core#/$defs/anchorString", deprecated: !0 }, $recursiveRef: { $comment: '"$recursiveRef" has been replaced by "$dynamicRef".', $ref: "meta/core#/$defs/uriReferenceString", deprecated: !0 } }, qp = {
9153
- $schema: Rp,
9154
- $id: Np,
9155
- $vocabulary: zp,
9156
- $dynamicAnchor: Ip,
9157
- title: Tp,
9158
- allOf: Cp,
9159
- type: Mp,
9160
- $comment: Dp,
9161
- properties: Vp
9162
- }, Fp = "https://json-schema.org/draft/2020-12/schema", Zp = "https://json-schema.org/draft/2020-12/meta/applicator", Up = { "https://json-schema.org/draft/2020-12/vocab/applicator": !0 }, xp = "meta", Lp = "Applicator vocabulary meta-schema", Kp = ["object", "boolean"], Jp = { prefixItems: { $ref: "#/$defs/schemaArray" }, items: { $dynamicRef: "#meta" }, contains: { $dynamicRef: "#meta" }, additionalProperties: { $dynamicRef: "#meta" }, properties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, propertyNames: { format: "regex" }, default: {} }, dependentSchemas: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, propertyNames: { $dynamicRef: "#meta" }, if: { $dynamicRef: "#meta" }, then: { $dynamicRef: "#meta" }, else: { $dynamicRef: "#meta" }, allOf: { $ref: "#/$defs/schemaArray" }, anyOf: { $ref: "#/$defs/schemaArray" }, oneOf: { $ref: "#/$defs/schemaArray" }, not: { $dynamicRef: "#meta" } }, Gp = { schemaArray: { type: "array", minItems: 1, items: { $dynamicRef: "#meta" } } }, Hp = {
9163
- $schema: Fp,
9164
- $id: Zp,
9165
- $vocabulary: Up,
9166
- $dynamicAnchor: xp,
9167
- title: Lp,
9168
- type: Kp,
9169
- properties: Jp,
9170
- $defs: Gp
9171
- }, Bp = "https://json-schema.org/draft/2020-12/schema", Wp = "https://json-schema.org/draft/2020-12/meta/unevaluated", Yp = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, Xp = "meta", Qp = "Unevaluated applicator vocabulary meta-schema", ey = ["object", "boolean"], ty = { unevaluatedItems: { $dynamicRef: "#meta" }, unevaluatedProperties: { $dynamicRef: "#meta" } }, ry = {
9172
- $schema: Bp,
9173
- $id: Wp,
9174
- $vocabulary: Yp,
9175
- $dynamicAnchor: Xp,
9176
- title: Qp,
9177
- type: ey,
9178
- properties: ty
9179
- }, ny = "https://json-schema.org/draft/2020-12/schema", sy = "https://json-schema.org/draft/2020-12/meta/content", oy = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, ay = "meta", iy = "Content vocabulary meta-schema", cy = ["object", "boolean"], uy = { contentEncoding: { type: "string" }, contentMediaType: { type: "string" }, contentSchema: { $dynamicRef: "#meta" } }, dy = {
9180
- $schema: ny,
9181
- $id: sy,
9182
- $vocabulary: oy,
9183
- $dynamicAnchor: ay,
9184
- title: iy,
9185
- type: cy,
9186
- properties: uy
9187
- }, ly = "https://json-schema.org/draft/2020-12/schema", fy = "https://json-schema.org/draft/2020-12/meta/core", my = { "https://json-schema.org/draft/2020-12/vocab/core": !0 }, hy = "meta", py = "Core vocabulary meta-schema", yy = ["object", "boolean"], vy = { $id: { $ref: "#/$defs/uriReferenceString", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { $ref: "#/$defs/uriString" }, $ref: { $ref: "#/$defs/uriReferenceString" }, $anchor: { $ref: "#/$defs/anchorString" }, $dynamicRef: { $ref: "#/$defs/uriReferenceString" }, $dynamicAnchor: { $ref: "#/$defs/anchorString" }, $vocabulary: { type: "object", propertyNames: { $ref: "#/$defs/uriString" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $dynamicRef: "#meta" } } }, gy = { anchorString: { type: "string", pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, uriString: { type: "string", format: "uri" }, uriReferenceString: { type: "string", format: "uri-reference" } }, _y = {
9188
- $schema: ly,
9189
- $id: fy,
9190
- $vocabulary: my,
9191
- $dynamicAnchor: hy,
9192
- title: py,
9193
- type: yy,
9194
- properties: vy,
9195
- $defs: gy
9196
- }, $y = "https://json-schema.org/draft/2020-12/schema", by = "https://json-schema.org/draft/2020-12/meta/format-annotation", wy = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, Sy = "meta", Ey = "Format vocabulary meta-schema for annotation results", ky = ["object", "boolean"], Py = { format: { type: "string" } }, Oy = {
9197
- $schema: $y,
9198
- $id: by,
9199
- $vocabulary: wy,
9200
- $dynamicAnchor: Sy,
9201
- title: Ey,
9202
- type: ky,
9203
- properties: Py
9204
- }, jy = "https://json-schema.org/draft/2020-12/schema", Ay = "https://json-schema.org/draft/2020-12/meta/meta-data", Ry = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, Ny = "meta", zy = "Meta-data vocabulary meta-schema", Iy = ["object", "boolean"], Ty = { title: { type: "string" }, description: { type: "string" }, default: !0, deprecated: { type: "boolean", default: !1 }, readOnly: { type: "boolean", default: !1 }, writeOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 } }, Cy = {
9205
- $schema: jy,
9206
- $id: Ay,
9207
- $vocabulary: Ry,
9208
- $dynamicAnchor: Ny,
9209
- title: zy,
9210
- type: Iy,
9211
- properties: Ty
9212
- }, My = "https://json-schema.org/draft/2020-12/schema", Dy = "https://json-schema.org/draft/2020-12/meta/validation", Vy = { "https://json-schema.org/draft/2020-12/vocab/validation": !0 }, qy = "meta", Fy = "Validation vocabulary meta-schema", Zy = ["object", "boolean"], Uy = { type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, const: !0, enum: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } } }, xy = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Ly = {
9213
- $schema: My,
9214
- $id: Dy,
9215
- $vocabulary: Vy,
9216
- $dynamicAnchor: qy,
9217
- title: Fy,
9218
- type: Zy,
9219
- properties: Uy,
9220
- $defs: xy
9161
+ const Np = "https://json-schema.org/draft/2020-12/schema", zp = "https://json-schema.org/draft/2020-12/schema", Ip = { "https://json-schema.org/draft/2020-12/vocab/core": !0, "https://json-schema.org/draft/2020-12/vocab/applicator": !0, "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0, "https://json-schema.org/draft/2020-12/vocab/validation": !0, "https://json-schema.org/draft/2020-12/vocab/meta-data": !0, "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0, "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Tp = "meta", Cp = "Core and Validation specifications meta-schema", Mp = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/unevaluated" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format-annotation" }, { $ref: "meta/content" }], Dp = ["object", "boolean"], Vp = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", qp = { definitions: { $comment: '"definitions" has been replaced by "$defs".', type: "object", additionalProperties: { $dynamicRef: "#meta" }, deprecated: !0, default: {} }, dependencies: { $comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', type: "object", additionalProperties: { anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }] }, deprecated: !0, default: {} }, $recursiveAnchor: { $comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', $ref: "meta/core#/$defs/anchorString", deprecated: !0 }, $recursiveRef: { $comment: '"$recursiveRef" has been replaced by "$dynamicRef".', $ref: "meta/core#/$defs/uriReferenceString", deprecated: !0 } }, Fp = {
9162
+ $schema: Np,
9163
+ $id: zp,
9164
+ $vocabulary: Ip,
9165
+ $dynamicAnchor: Tp,
9166
+ title: Cp,
9167
+ allOf: Mp,
9168
+ type: Dp,
9169
+ $comment: Vp,
9170
+ properties: qp
9171
+ }, Zp = "https://json-schema.org/draft/2020-12/schema", Up = "https://json-schema.org/draft/2020-12/meta/applicator", xp = { "https://json-schema.org/draft/2020-12/vocab/applicator": !0 }, Lp = "meta", Kp = "Applicator vocabulary meta-schema", Jp = ["object", "boolean"], Gp = { prefixItems: { $ref: "#/$defs/schemaArray" }, items: { $dynamicRef: "#meta" }, contains: { $dynamicRef: "#meta" }, additionalProperties: { $dynamicRef: "#meta" }, properties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, propertyNames: { format: "regex" }, default: {} }, dependentSchemas: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, propertyNames: { $dynamicRef: "#meta" }, if: { $dynamicRef: "#meta" }, then: { $dynamicRef: "#meta" }, else: { $dynamicRef: "#meta" }, allOf: { $ref: "#/$defs/schemaArray" }, anyOf: { $ref: "#/$defs/schemaArray" }, oneOf: { $ref: "#/$defs/schemaArray" }, not: { $dynamicRef: "#meta" } }, Hp = { schemaArray: { type: "array", minItems: 1, items: { $dynamicRef: "#meta" } } }, Bp = {
9172
+ $schema: Zp,
9173
+ $id: Up,
9174
+ $vocabulary: xp,
9175
+ $dynamicAnchor: Lp,
9176
+ title: Kp,
9177
+ type: Jp,
9178
+ properties: Gp,
9179
+ $defs: Hp
9180
+ }, Wp = "https://json-schema.org/draft/2020-12/schema", Yp = "https://json-schema.org/draft/2020-12/meta/unevaluated", Xp = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, Qp = "meta", ey = "Unevaluated applicator vocabulary meta-schema", ty = ["object", "boolean"], ry = { unevaluatedItems: { $dynamicRef: "#meta" }, unevaluatedProperties: { $dynamicRef: "#meta" } }, ny = {
9181
+ $schema: Wp,
9182
+ $id: Yp,
9183
+ $vocabulary: Xp,
9184
+ $dynamicAnchor: Qp,
9185
+ title: ey,
9186
+ type: ty,
9187
+ properties: ry
9188
+ }, sy = "https://json-schema.org/draft/2020-12/schema", oy = "https://json-schema.org/draft/2020-12/meta/content", ay = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, iy = "meta", cy = "Content vocabulary meta-schema", uy = ["object", "boolean"], dy = { contentEncoding: { type: "string" }, contentMediaType: { type: "string" }, contentSchema: { $dynamicRef: "#meta" } }, ly = {
9189
+ $schema: sy,
9190
+ $id: oy,
9191
+ $vocabulary: ay,
9192
+ $dynamicAnchor: iy,
9193
+ title: cy,
9194
+ type: uy,
9195
+ properties: dy
9196
+ }, fy = "https://json-schema.org/draft/2020-12/schema", my = "https://json-schema.org/draft/2020-12/meta/core", hy = { "https://json-schema.org/draft/2020-12/vocab/core": !0 }, py = "meta", yy = "Core vocabulary meta-schema", vy = ["object", "boolean"], gy = { $id: { $ref: "#/$defs/uriReferenceString", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { $ref: "#/$defs/uriString" }, $ref: { $ref: "#/$defs/uriReferenceString" }, $anchor: { $ref: "#/$defs/anchorString" }, $dynamicRef: { $ref: "#/$defs/uriReferenceString" }, $dynamicAnchor: { $ref: "#/$defs/anchorString" }, $vocabulary: { type: "object", propertyNames: { $ref: "#/$defs/uriString" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $dynamicRef: "#meta" } } }, _y = { anchorString: { type: "string", pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, uriString: { type: "string", format: "uri" }, uriReferenceString: { type: "string", format: "uri-reference" } }, $y = {
9197
+ $schema: fy,
9198
+ $id: my,
9199
+ $vocabulary: hy,
9200
+ $dynamicAnchor: py,
9201
+ title: yy,
9202
+ type: vy,
9203
+ properties: gy,
9204
+ $defs: _y
9205
+ }, by = "https://json-schema.org/draft/2020-12/schema", wy = "https://json-schema.org/draft/2020-12/meta/format-annotation", Sy = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, Ey = "meta", ky = "Format vocabulary meta-schema for annotation results", Py = ["object", "boolean"], jy = { format: { type: "string" } }, Oy = {
9206
+ $schema: by,
9207
+ $id: wy,
9208
+ $vocabulary: Sy,
9209
+ $dynamicAnchor: Ey,
9210
+ title: ky,
9211
+ type: Py,
9212
+ properties: jy
9213
+ }, Ay = "https://json-schema.org/draft/2020-12/schema", Ry = "https://json-schema.org/draft/2020-12/meta/meta-data", Ny = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, zy = "meta", Iy = "Meta-data vocabulary meta-schema", Ty = ["object", "boolean"], Cy = { title: { type: "string" }, description: { type: "string" }, default: !0, deprecated: { type: "boolean", default: !1 }, readOnly: { type: "boolean", default: !1 }, writeOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 } }, My = {
9214
+ $schema: Ay,
9215
+ $id: Ry,
9216
+ $vocabulary: Ny,
9217
+ $dynamicAnchor: zy,
9218
+ title: Iy,
9219
+ type: Ty,
9220
+ properties: Cy
9221
+ }, Dy = "https://json-schema.org/draft/2020-12/schema", Vy = "https://json-schema.org/draft/2020-12/meta/validation", qy = { "https://json-schema.org/draft/2020-12/vocab/validation": !0 }, Fy = "meta", Zy = "Validation vocabulary meta-schema", Uy = ["object", "boolean"], xy = { type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, const: !0, enum: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } } }, Ly = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Ky = {
9222
+ $schema: Dy,
9223
+ $id: Vy,
9224
+ $vocabulary: qy,
9225
+ $dynamicAnchor: Fy,
9226
+ title: Zy,
9227
+ type: Uy,
9228
+ properties: xy,
9229
+ $defs: Ly
9221
9230
  };
9222
9231
  var Ia;
9223
- function Ky() {
9232
+ function Jy() {
9224
9233
  if (Ia) return Lr;
9225
9234
  Ia = 1, Object.defineProperty(Lr, "__esModule", { value: !0 });
9226
- const e = qp, t = Hp, r = ry, n = dy, s = _y, o = Oy, a = Cy, i = Ly, c = ["/properties"];
9235
+ const e = Fp, t = Bp, r = ny, n = ly, s = $y, o = Oy, a = My, i = Ky, c = ["/properties"];
9227
9236
  function u(m) {
9228
9237
  return [
9229
9238
  e,
@@ -9242,10 +9251,10 @@ function Ky() {
9242
9251
  return Lr.default = u, Lr;
9243
9252
  }
9244
9253
  var Ta;
9245
- function Jy() {
9254
+ function Gy() {
9246
9255
  return Ta || (Ta = 1, (function(e, t) {
9247
9256
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv2020 = void 0;
9248
- const r = /* @__PURE__ */ us(), n = /* @__PURE__ */ Ap(), s = /* @__PURE__ */ ms(), o = /* @__PURE__ */ Ky(), a = "https://json-schema.org/draft/2020-12/schema";
9257
+ const r = /* @__PURE__ */ us(), n = /* @__PURE__ */ Rp(), s = /* @__PURE__ */ ms(), o = /* @__PURE__ */ Jy(), a = "https://json-schema.org/draft/2020-12/schema";
9249
9258
  class i extends r.default {
9250
9259
  constructor(h = {}) {
9251
9260
  super({
@@ -9296,10 +9305,10 @@ function Jy() {
9296
9305
  } });
9297
9306
  })(Ur, Ur.exports)), Ur.exports;
9298
9307
  }
9299
- var Gy = /* @__PURE__ */ Jy();
9300
- const Hy = /* @__PURE__ */ fn(Gy);
9308
+ var Hy = /* @__PURE__ */ Gy();
9309
+ const By = /* @__PURE__ */ fn(Hy);
9301
9310
  var Kr = { exports: {} }, Zn = {}, Ca;
9302
- function By() {
9311
+ function Wy() {
9303
9312
  return Ca || (Ca = 1, (function(e) {
9304
9313
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
9305
9314
  function t(q, V) {
@@ -9387,12 +9396,12 @@ function By() {
9387
9396
  const K = i.exec(U);
9388
9397
  if (!K)
9389
9398
  return !1;
9390
- const te = +K[1], he = +K[2], me = +K[3], ce = K[4], Pe = K[5] === "-" ? -1 : 1, M = +(K[6] || 0), O = +(K[7] || 0);
9391
- if (M > 23 || O > 59 || q && !ce)
9399
+ const te = +K[1], he = +K[2], me = +K[3], ce = K[4], Pe = K[5] === "-" ? -1 : 1, M = +(K[6] || 0), j = +(K[7] || 0);
9400
+ if (M > 23 || j > 59 || q && !ce)
9392
9401
  return !1;
9393
9402
  if (te <= 23 && he <= 59 && me < 60)
9394
9403
  return !0;
9395
- const C = he - O * Pe, A = te - M * Pe - (C < 0 ? 1 : 0);
9404
+ const C = he - j * Pe, A = te - M * Pe - (C < 0 ? 1 : 0);
9396
9405
  return (A === 23 || A === -1) && (C === 59 || C === -1) && me < 61;
9397
9406
  };
9398
9407
  }
@@ -9463,10 +9472,10 @@ function By() {
9463
9472
  })(Zn)), Zn;
9464
9473
  }
9465
9474
  var Un = {}, Ma;
9466
- function Wy() {
9475
+ function Yy() {
9467
9476
  return Ma || (Ma = 1, (function(e) {
9468
9477
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
9469
- const t = /* @__PURE__ */ Di(), r = /* @__PURE__ */ re(), n = r.operators, s = {
9478
+ const t = /* @__PURE__ */ Vi(), r = /* @__PURE__ */ re(), n = r.operators, s = {
9470
9479
  formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
9471
9480
  formatMinimum: { okStr: ">=", ok: n.GTE, fail: n.LT },
9472
9481
  formatExclusiveMaximum: { okStr: "<", ok: n.LT, fail: n.GTE },
@@ -9518,10 +9527,10 @@ function Wy() {
9518
9527
  })(Un)), Un;
9519
9528
  }
9520
9529
  var Da;
9521
- function Yy() {
9530
+ function Xy() {
9522
9531
  return Da || (Da = 1, (function(e, t) {
9523
9532
  Object.defineProperty(t, "__esModule", { value: !0 });
9524
- const r = By(), n = Wy(), s = /* @__PURE__ */ re(), o = new s.Name("fullFormats"), a = new s.Name("fastFormats"), i = (u, m = { keywords: !0 }) => {
9533
+ const r = Wy(), n = Yy(), s = /* @__PURE__ */ re(), o = new s.Name("fullFormats"), a = new s.Name("fastFormats"), i = (u, m = { keywords: !0 }) => {
9525
9534
  if (Array.isArray(m))
9526
9535
  return c(u, m, r.fullFormats, o), u;
9527
9536
  const [v, l] = m.mode === "fast" ? [r.fastFormats, a] : [r.fullFormats, o], h = m.formats || r.formatNames;
@@ -9542,30 +9551,30 @@ function Yy() {
9542
9551
  e.exports = t = i, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = i;
9543
9552
  })(Kr, Kr.exports)), Kr.exports;
9544
9553
  }
9545
- var Xy = Yy();
9546
- const hs = /* @__PURE__ */ fn(Xy), Qy = hs(new fh({ strict: !1 })), ev = hs(new jp()), xi = hs(new Hy()), tv = [
9554
+ var Qy = Xy();
9555
+ const hs = /* @__PURE__ */ fn(Qy), ev = hs(new mh({ strict: !1 })), tv = hs(new Ap()), Li = hs(new By()), rv = [
9547
9556
  {
9548
9557
  patterns: ["draft-07", "draft-06", "draft-04"],
9549
- ajv: Qy,
9558
+ ajv: ev,
9550
9559
  metaUri: "http://json-schema.org/draft-07/schema"
9551
9560
  },
9552
9561
  {
9553
9562
  patterns: ["draft/2019-09"],
9554
- ajv: ev,
9563
+ ajv: tv,
9555
9564
  metaUri: "https://json-schema.org/draft/2019-09/schema"
9556
9565
  },
9557
9566
  {
9558
9567
  patterns: ["draft/2020-12"],
9559
- ajv: xi,
9568
+ ajv: Li,
9560
9569
  metaUri: "https://json-schema.org/draft/2020-12/schema"
9561
9570
  }
9562
- ], rv = xi, nv = "https://json-schema.org/draft/2020-12/schema";
9563
- function sv(e) {
9571
+ ], nv = Li, sv = "https://json-schema.org/draft/2020-12/schema";
9572
+ function ov(e) {
9564
9573
  const t = e.$schema ?? "";
9565
- for (const r of tv)
9574
+ for (const r of rv)
9566
9575
  if (r.patterns.some((n) => t.includes(n)))
9567
9576
  return { ajv: r.ajv, metaUri: r.metaUri };
9568
- return { ajv: rv, metaUri: nv };
9577
+ return { ajv: nv, metaUri: sv };
9569
9578
  }
9570
9579
  function qt(e, t = "") {
9571
9580
  const r = [];
@@ -9616,14 +9625,14 @@ function qt(e, t = "") {
9616
9625
  );
9617
9626
  return r;
9618
9627
  }
9619
- function ov(e) {
9620
- const { ajv: t, metaUri: r } = sv(e), s = t.validate(r, e) ? [] : t.errors ?? [], o = qt(e), a = [...s, ...o];
9628
+ function av(e) {
9629
+ const { ajv: t, metaUri: r } = ov(e), s = t.validate(r, e) ? [] : t.errors ?? [], o = qt(e), a = [...s, ...o];
9621
9630
  return a.length > 0 ? a : null;
9622
9631
  }
9623
- function hv(e = {}) {
9632
+ function pv(e = {}) {
9624
9633
  const { rootType: t = "object", defaultValue: r, onChange: n } = e, s = vs(n);
9625
9634
  s.current = n;
9626
- const o = Gi(() => nt(6), []), a = Je(
9635
+ const o = Hi(() => nt(6), []), a = Je(
9627
9636
  (M) => ({
9628
9637
  root: {
9629
9638
  type: t,
@@ -9642,9 +9651,9 @@ function hv(e = {}) {
9642
9651
  definitions: []
9643
9652
  }),
9644
9653
  [t]
9645
- ), i = fm({
9646
- resolver: ym(xf),
9647
- defaultValues: r ? Qi(r) : a(o)
9654
+ ), i = mm({
9655
+ resolver: vm(Lf),
9656
+ defaultValues: r ? ec(r) : a(o)
9648
9657
  }), { setError: c, clearErrors: u, setValue: m, reset: v, getValues: l } = i, { fields: h, append: w, remove: S } = Qs({
9649
9658
  control: i.control,
9650
9659
  name: "properties",
@@ -9662,11 +9671,11 @@ function hv(e = {}) {
9662
9671
  fieldPath: null
9663
9672
  }), Z = vs("");
9664
9673
  _n(() => {
9665
- const M = i.watch((O) => {
9666
- const C = gs(O), A = JSON.stringify(C);
9674
+ const M = i.watch((j) => {
9675
+ const C = gs(j), A = JSON.stringify(C);
9667
9676
  if (A !== Z.current) {
9668
9677
  Z.current = A, g(C), s.current?.(C);
9669
- const b = ov(C);
9678
+ const b = av(C);
9670
9679
  $((P) => JSON.stringify(b) !== JSON.stringify(P) ? b : P);
9671
9680
  }
9672
9681
  });
@@ -9677,11 +9686,11 @@ function hv(e = {}) {
9677
9686
  exclusiveMaximum: "exclusiveMax"
9678
9687
  };
9679
9688
  if (u(), d) {
9680
- const O = l("properties");
9689
+ const j = l("properties");
9681
9690
  d.forEach((C) => {
9682
9691
  const A = C.instancePath.split("/").filter(Boolean);
9683
9692
  if (A[0] === "properties" && A.length >= 3) {
9684
- const b = O?.findIndex((P) => P.key === A[1]) ?? -1;
9693
+ const b = j?.findIndex((P) => P.key === A[1]) ?? -1;
9685
9694
  if (b !== -1) {
9686
9695
  const P = A[2], T = M[P] ?? P;
9687
9696
  c(`properties.${b}.schema.${T}`, {
@@ -9726,13 +9735,13 @@ function hv(e = {}) {
9726
9735
  });
9727
9736
  }, [_]), U = Je(
9728
9737
  (M) => {
9729
- const O = l(`definitions.${M}.key`);
9730
- K(O, null), f(M);
9738
+ const j = l(`definitions.${M}.key`);
9739
+ K(j, null), f(M);
9731
9740
  },
9732
9741
  [l, f]
9733
9742
  ), K = Je(
9734
- (M, O) => {
9735
- const C = `#/$defs/${M}`, A = O ? `#/$defs/${O}` : "", b = l(), P = (T, H) => {
9743
+ (M, j) => {
9744
+ const C = `#/$defs/${M}`, A = j ? `#/$defs/${j}` : "", b = l(), P = (T, H) => {
9736
9745
  H && (H.schema && H.schema.$ref === C && m(`${T}.schema.$ref`, A), H.$ref === C && m(`${T}.$ref`, A), H.schema?.properties && Array.isArray(H.schema.properties) && H.schema.properties.forEach((Y, oe) => {
9737
9746
  P(`${T}.schema.properties.${oe}`, Y);
9738
9747
  }), H.properties && Array.isArray(H.properties) && H.properties.forEach((Y, oe) => {
@@ -9751,23 +9760,23 @@ function hv(e = {}) {
9751
9760
  }, []), he = Je(() => {
9752
9761
  z({ isOpen: !1, fieldPath: null });
9753
9762
  }, []), me = Je(
9754
- (M, O) => {
9763
+ (M, j) => {
9755
9764
  let C = {};
9756
- O === "object" ? C = {
9765
+ j === "object" ? C = {
9757
9766
  type: "object",
9758
9767
  properties: [],
9759
9768
  additionalProperties: !0
9760
- } : O === "array" ? C = { type: "array" } : O === "ref" ? C = { type: "ref", $ref: "" } : C = { type: O }, m(`${M}.schema`, C);
9769
+ } : j === "array" ? C = { type: "array" } : j === "ref" ? C = { type: "ref", $ref: "" } : C = { type: j }, m(`${M}.schema`, C);
9761
9770
  },
9762
9771
  [m]
9763
9772
  ), ce = Je(
9764
9773
  (M) => {
9765
- const O = nt(6), C = l(`${M}.schema.properties`) || [];
9774
+ const j = nt(6), C = l(`${M}.schema.properties`) || [];
9766
9775
  m(`${M}.schema.properties`, [
9767
9776
  ...C,
9768
9777
  {
9769
- id: O,
9770
- key: `field_${O}`,
9778
+ id: j,
9779
+ key: `field_${j}`,
9771
9780
  isRequired: !1,
9772
9781
  schema: { type: "string" }
9773
9782
  }
@@ -9799,18 +9808,18 @@ function hv(e = {}) {
9799
9808
  }
9800
9809
  export {
9801
9810
  Va as DEFAULT_SCHEMA_URI,
9802
- cv as INTEGER_FORMATS,
9803
- uv as NUMBER_FORMATS,
9804
- Hi as SCHEMA_TYPES,
9805
- iv as SCHEMA_TYPES_WITH_REF,
9806
- dv as STRING_FORMATS,
9807
- fv as createDefaultArraySchema,
9808
- mv as createDefaultField,
9809
- lv as createDefaultObjectSchema,
9810
- xf as formSchema,
9811
+ uv as INTEGER_FORMATS,
9812
+ dv as NUMBER_FORMATS,
9813
+ Bi as SCHEMA_TYPES,
9814
+ cv as SCHEMA_TYPES_WITH_REF,
9815
+ lv as STRING_FORMATS,
9816
+ mv as createDefaultArraySchema,
9817
+ hv as createDefaultField,
9818
+ fv as createDefaultObjectSchema,
9819
+ Lf as formSchema,
9811
9820
  gs as formToSchema,
9812
9821
  xe as jsonSchemaZod,
9813
- Qi as schemaToForm,
9814
- hv as useJsonSchemaEditor,
9815
- ov as validateSchema
9822
+ ec as schemaToForm,
9823
+ pv as useJsonSchemaEditor,
9824
+ av as validateSchema
9816
9825
  };