@object-ui/plugin-timeline 3.1.5 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +20 -0
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.js +1041 -751
  5. package/dist/index.umd.cjs +31 -6
  6. package/dist/packages/plugin-timeline/src/ObjectTimeline.d.ts.map +1 -0
  7. package/dist/packages/plugin-timeline/src/ObjectTimeline.stories.d.ts.map +1 -0
  8. package/dist/packages/plugin-timeline/src/index.d.ts.map +1 -0
  9. package/dist/packages/plugin-timeline/src/renderer.d.ts.map +1 -0
  10. package/package.json +36 -13
  11. package/.turbo/turbo-build.log +0 -22
  12. package/dist/src/ObjectTimeline.d.ts.map +0 -1
  13. package/dist/src/ObjectTimeline.stories.d.ts.map +0 -1
  14. package/dist/src/index.d.ts.map +0 -1
  15. package/dist/src/renderer.d.ts.map +0 -1
  16. package/src/ObjectTimeline.msw.test.tsx +0 -80
  17. package/src/ObjectTimeline.stories.tsx +0 -113
  18. package/src/ObjectTimeline.test.tsx +0 -138
  19. package/src/ObjectTimeline.tsx +0 -241
  20. package/src/__tests__/ObjectTimeline.spec-config.test.tsx +0 -232
  21. package/src/__tests__/renderer.test.tsx +0 -295
  22. package/src/__tests__/timeline-variants.test.tsx +0 -150
  23. package/src/index.test.tsx +0 -24
  24. package/src/index.tsx +0 -334
  25. package/src/renderer.tsx +0 -477
  26. package/tsconfig.json +0 -18
  27. package/vite.config.ts +0 -63
  28. package/vitest.config.ts +0 -13
  29. package/vitest.setup.ts +0 -1
  30. /package/dist/{src → packages/plugin-timeline/src}/ObjectTimeline.d.ts +0 -0
  31. /package/dist/{src → packages/plugin-timeline/src}/ObjectTimeline.stories.d.ts +0 -0
  32. /package/dist/{src → packages/plugin-timeline/src}/index.d.ts +0 -0
  33. /package/dist/{src → packages/plugin-timeline/src}/renderer.d.ts +0 -0
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { ComponentRegistry as c, buildExpandFields as l, extractRecords as u } f
5
5
  import { useDataScope as d, useNavigationOverlay as f, useSchemaContext as p } from "@object-ui/react";
6
6
  import { usePullToRefresh as m } from "@object-ui/mobile";
7
7
  //#region \0rolldown/runtime.js
8
- var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), ee = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
8
+ var h = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ee = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
9
9
  if (typeof require < "u") return require.apply(this, arguments);
10
10
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
11
11
  }), te = /* @__PURE__ */ h(((e) => {
@@ -31,17 +31,17 @@ var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), e
31
31
  if (typeof e == "string") return e;
32
32
  switch (e) {
33
33
  case g: return "Fragment";
34
- case ne: return "Profiler";
34
+ case v: return "Profiler";
35
35
  case _: return "StrictMode";
36
- case y: return "Suspense";
36
+ case ie: return "Suspense";
37
37
  case b: return "SuspenseList";
38
38
  case C: return "Activity";
39
39
  }
40
40
  if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
41
41
  case te: return "Portal";
42
- case ie: return e.displayName || "Context";
43
- case re: return (e._context.displayName || "Context") + ".Consumer";
44
- case v:
42
+ case re: return e.displayName || "Context";
43
+ case ne: return (e._context.displayName || "Context") + ".Consumer";
44
+ case y:
45
45
  var n = e.render;
46
46
  return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
47
47
  case x: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
@@ -166,7 +166,7 @@ var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), e
166
166
  function p(e) {
167
167
  return typeof e == "object" && !!e && e.$$typeof === h;
168
168
  }
169
- var m = ee("react"), h = Symbol.for("react.transitional.element"), te = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), ne = Symbol.for("react.profiler"), re = Symbol.for("react.consumer"), ie = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), C = Symbol.for("react.activity"), w = Symbol.for("react.client.reference"), T = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, D = Array.isArray, O = console.createTask ? console.createTask : function() {
169
+ var m = ee("react"), h = Symbol.for("react.transitional.element"), te = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), ne = Symbol.for("react.consumer"), re = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), C = Symbol.for("react.activity"), w = Symbol.for("react.client.reference"), T = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, D = Array.isArray, O = console.createTask ? console.createTask : function() {
170
170
  return null;
171
171
  };
172
172
  m = { react_stack_bottom_frame: function(e) {
@@ -183,22 +183,22 @@ var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), e
183
183
  })();
184
184
  })), _ = (/* @__PURE__ */ h(((e, t) => {
185
185
  process.env.NODE_ENV === "production" ? t.exports = te() : t.exports = g();
186
- })))(), ne = 10080 * 60 * 1e3;
187
- function re(e) {
186
+ })))(), v = 10080 * 60 * 1e3;
187
+ function ne(e) {
188
188
  let t = e.flatMap((e) => (e.items || []).flatMap((e) => [e.startDate, e.endDate])), n = Math.min(...t.map((e) => new Date(e).getTime())), r = Math.max(...t.map((e) => new Date(e).getTime()));
189
189
  return {
190
190
  minDate: new Date(n).toISOString().split("T")[0],
191
191
  maxDate: new Date(r).toISOString().split("T")[0]
192
192
  };
193
193
  }
194
- function ie(e, t, n, r) {
194
+ function re(e, t, n, r) {
195
195
  let i = new Date(e).getTime(), a = new Date(t).getTime(), o = new Date(n).getTime(), s = new Date(r).getTime() - o, c = i - o, l = a - i;
196
196
  return {
197
197
  start: c / s * 100,
198
198
  width: l / s * 100
199
199
  };
200
200
  }
201
- function v(e, t) {
201
+ function y(e, t) {
202
202
  let n = new Date(e);
203
203
  return t === "short" ? n.toLocaleDateString() : t === "long" ? n.toLocaleDateString("en-US", {
204
204
  year: "numeric",
@@ -206,27 +206,27 @@ function v(e, t) {
206
206
  day: "numeric"
207
207
  }) : n.toISOString().split("T")[0];
208
208
  }
209
- var y = ({ schema: e, className: t, ...n }) => {
209
+ var ie = ({ schema: e, className: t, ...n }) => {
210
210
  let { variant: r = "vertical", items: i = [], dateFormat: o = "short", onItemClick: c } = e;
211
- if (r === "vertical") return /* @__PURE__ */ (0, _.jsx)(Ta, {
211
+ if (r === "vertical") return /* @__PURE__ */ (0, _.jsx)(ka, {
212
212
  className: t,
213
213
  ...n,
214
- children: i.map((e, t) => /* @__PURE__ */ (0, _.jsxs)(Da, {
214
+ children: i.map((e, t) => /* @__PURE__ */ (0, _.jsxs)(ja, {
215
215
  className: a(e.className, c && "cursor-pointer"),
216
216
  onClick: () => c?.(e),
217
- children: [/* @__PURE__ */ (0, _.jsx)(ka, {
217
+ children: [/* @__PURE__ */ (0, _.jsx)(Na, {
218
218
  variant: e.variant || "default",
219
219
  children: e.icon && /* @__PURE__ */ (0, _.jsx)("span", {
220
220
  className: "text-xs",
221
221
  children: e.icon
222
222
  })
223
- }), /* @__PURE__ */ (0, _.jsxs)(Aa, { children: [
224
- e.time && /* @__PURE__ */ (0, _.jsx)(Ma, {
223
+ }), /* @__PURE__ */ (0, _.jsxs)(Pa, { children: [
224
+ e.time && /* @__PURE__ */ (0, _.jsx)(Ia, {
225
225
  dateTime: e.time,
226
- children: v(e.time, o)
226
+ children: y(e.time, o)
227
227
  }),
228
- e.title && /* @__PURE__ */ (0, _.jsx)(ja, { children: e.title }),
229
- e.description && /* @__PURE__ */ (0, _.jsx)($, {
228
+ e.title && /* @__PURE__ */ (0, _.jsx)(Fa, { children: e.title }),
229
+ e.description && /* @__PURE__ */ (0, _.jsx)(La, {
230
230
  className: "line-clamp-2 sm:line-clamp-none",
231
231
  children: e.description
232
232
  }),
@@ -234,15 +234,15 @@ var y = ({ schema: e, className: t, ...n }) => {
234
234
  ] })]
235
235
  }, t))
236
236
  });
237
- if (r === "horizontal") return /* @__PURE__ */ (0, _.jsx)(Na, {
237
+ if (r === "horizontal") return /* @__PURE__ */ (0, _.jsx)(Ra, {
238
238
  className: a("overflow-x-auto [-webkit-overflow-scrolling:touch]", t),
239
239
  ...n,
240
- children: i.map((e, t) => /* @__PURE__ */ (0, _.jsxs)(Pa, {
240
+ children: i.map((e, t) => /* @__PURE__ */ (0, _.jsxs)(za, {
241
241
  className: a(e.className, c && "cursor-pointer"),
242
242
  onClick: () => c?.(e),
243
243
  children: [/* @__PURE__ */ (0, _.jsxs)("div", {
244
244
  className: "flex flex-col items-center",
245
- children: [/* @__PURE__ */ (0, _.jsx)(ka, {
245
+ children: [/* @__PURE__ */ (0, _.jsx)(Na, {
246
246
  variant: e.variant || "default",
247
247
  children: e.icon && /* @__PURE__ */ (0, _.jsx)("span", {
248
248
  className: "text-xs",
@@ -251,12 +251,12 @@ var y = ({ schema: e, className: t, ...n }) => {
251
251
  }), /* @__PURE__ */ (0, _.jsxs)("div", {
252
252
  className: "mt-4 text-center",
253
253
  children: [
254
- e.time && /* @__PURE__ */ (0, _.jsx)(Ma, {
254
+ e.time && /* @__PURE__ */ (0, _.jsx)(Ia, {
255
255
  dateTime: e.time,
256
- children: v(e.time, o)
256
+ children: y(e.time, o)
257
257
  }),
258
- e.title && /* @__PURE__ */ (0, _.jsx)(ja, { children: e.title }),
259
- e.description && /* @__PURE__ */ (0, _.jsx)($, {
258
+ e.title && /* @__PURE__ */ (0, _.jsx)(Fa, { children: e.title }),
259
+ e.description && /* @__PURE__ */ (0, _.jsx)(La, {
260
260
  className: "text-center line-clamp-2 sm:line-clamp-none",
261
261
  children: e.description
262
262
  }),
@@ -267,7 +267,7 @@ var y = ({ schema: e, className: t, ...n }) => {
267
267
  }, t))
268
268
  });
269
269
  if (r === "gantt") {
270
- let r = re(i), s = e.minDate || r.minDate, l = e.maxDate || r.maxDate, u = e.timeScale || "month", d = (() => {
270
+ let r = ne(i), s = e.minDate || r.minDate, l = e.maxDate || r.maxDate, u = e.timeScale || "month", d = (() => {
271
271
  let e = [], t = new Date(s), n = new Date(l);
272
272
  if (u === "month") {
273
273
  let r = new Date(t);
@@ -277,7 +277,7 @@ var y = ({ schema: e, className: t, ...n }) => {
277
277
  })), r.setMonth(r.getMonth() + 1);
278
278
  } else if (u === "week") {
279
279
  let r = new Date(t);
280
- for (; r <= n;) e.push(`Week ${Math.ceil((r.getTime() - t.getTime()) / ne) + 1}`), r.setDate(r.getDate() + 7);
280
+ for (; r <= n;) e.push(`Week ${Math.ceil((r.getTime() - t.getTime()) / v) + 1}`), r.setDate(r.getDate() + 7);
281
281
  } else if (u === "day") {
282
282
  let r = new Date(t);
283
283
  for (; r <= n;) e.push(r.toLocaleDateString("en-US", {
@@ -287,16 +287,16 @@ var y = ({ schema: e, className: t, ...n }) => {
287
287
  }
288
288
  return e;
289
289
  })();
290
- return /* @__PURE__ */ (0, _.jsxs)(Fa, {
290
+ return /* @__PURE__ */ (0, _.jsxs)(Ba, {
291
291
  className: a("overflow-x-auto [-webkit-overflow-scrolling:touch]", t),
292
292
  ...n,
293
- children: [/* @__PURE__ */ (0, _.jsxs)(Ia, { children: [/* @__PURE__ */ (0, _.jsx)(La, {
293
+ children: [/* @__PURE__ */ (0, _.jsxs)(Va, { children: [/* @__PURE__ */ (0, _.jsx)(Ha, {
294
294
  className: "flex items-center px-2 sm:px-4 py-2 sm:py-3",
295
295
  children: /* @__PURE__ */ (0, _.jsx)("span", {
296
296
  className: "font-semibold text-xs sm:text-sm",
297
297
  children: e.rowLabel || "Items"
298
298
  })
299
- }), /* @__PURE__ */ (0, _.jsx)(Ra, { children: /* @__PURE__ */ (0, _.jsx)("div", {
299
+ }), /* @__PURE__ */ (0, _.jsx)($, { children: /* @__PURE__ */ (0, _.jsx)("div", {
300
300
  className: "flex h-full",
301
301
  children: d.map((e, t) => /* @__PURE__ */ (0, _.jsx)("div", {
302
302
  className: "flex-1 px-1 sm:px-2 py-2 sm:py-3 border-r text-xs font-medium text-center",
@@ -304,23 +304,23 @@ var y = ({ schema: e, className: t, ...n }) => {
304
304
  }, t))
305
305
  }) })] }), /* @__PURE__ */ (0, _.jsx)("div", { children: /* @__PURE__ */ (0, _.jsxs)("div", {
306
306
  className: "flex",
307
- children: [/* @__PURE__ */ (0, _.jsx)(La, { children: i.map((e, t) => /* @__PURE__ */ (0, _.jsx)(za, { children: /* @__PURE__ */ (0, _.jsx)(Ba, {
307
+ children: [/* @__PURE__ */ (0, _.jsx)(Ha, { children: i.map((e, t) => /* @__PURE__ */ (0, _.jsx)(Ua, { children: /* @__PURE__ */ (0, _.jsx)(Wa, {
308
308
  title: e.label,
309
309
  className: "truncate",
310
310
  children: e.label
311
- }) }, t)) }), /* @__PURE__ */ (0, _.jsx)(Ra, {
311
+ }) }, t)) }), /* @__PURE__ */ (0, _.jsx)($, {
312
312
  className: "relative",
313
- children: i.map((e, t) => /* @__PURE__ */ (0, _.jsx)(za, {
313
+ children: i.map((e, t) => /* @__PURE__ */ (0, _.jsx)(Ua, {
314
314
  className: "relative",
315
315
  children: (e.items || []).map((n, r) => {
316
- let i = ie(n.startDate, n.endDate, s, l);
317
- return /* @__PURE__ */ (0, _.jsx)(Va, {
316
+ let i = re(n.startDate, n.endDate, s, l);
317
+ return /* @__PURE__ */ (0, _.jsx)(Ga, {
318
318
  start: i.start,
319
319
  width: i.width,
320
320
  variant: n.variant || "default",
321
321
  onClick: () => c?.(n, e, t, r),
322
- title: `${n.title || ""}\n${v(n.startDate, o)} - ${v(n.endDate, o)}`,
323
- children: /* @__PURE__ */ (0, _.jsx)(Ha, { children: n.title })
322
+ title: `${n.title || ""}\n${y(n.startDate, o)} - ${y(n.endDate, o)}`,
323
+ children: /* @__PURE__ */ (0, _.jsx)(Ka, { children: n.title })
324
324
  }, r);
325
325
  })
326
326
  }, t))
@@ -330,7 +330,7 @@ var y = ({ schema: e, className: t, ...n }) => {
330
330
  }
331
331
  return null;
332
332
  };
333
- c.register("timeline", y, {
333
+ c.register("timeline", ie, {
334
334
  namespace: "plugin-timeline",
335
335
  label: "Timeline",
336
336
  category: "data-display",
@@ -524,8 +524,11 @@ c.register("timeline", y, {
524
524
  ]
525
525
  }
526
526
  }
527
- }), Object.freeze({ status: "aborted" });
528
- function b(e, t, n) {
527
+ });
528
+ //#endregion
529
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
530
+ var b;
531
+ function x(e, t, n) {
529
532
  function r(n, r) {
530
533
  if (n._zod || Object.defineProperty(n, "_zod", {
531
534
  value: {
@@ -554,28 +557,30 @@ function b(e, t, n) {
554
557
  }
555
558
  return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
556
559
  }
557
- var x = class extends Error {
560
+ var S = class extends Error {
558
561
  constructor() {
559
562
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
560
563
  }
561
- }, S = class extends Error {
564
+ }, C = class extends Error {
562
565
  constructor(e) {
563
566
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
564
567
  }
565
- }, C = {};
566
- function w(e) {
567
- return e && Object.assign(C, e), C;
568
+ };
569
+ (b = globalThis).__zod_globalConfig ?? (b.__zod_globalConfig = {});
570
+ var w = globalThis.__zod_globalConfig;
571
+ function T(e) {
572
+ return e && Object.assign(w, e), w;
568
573
  }
569
574
  //#endregion
570
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
571
- function T(e) {
575
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
576
+ function E(e) {
572
577
  let t = Object.values(e).filter((e) => typeof e == "number");
573
578
  return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
574
579
  }
575
- function E(e, t) {
580
+ function D(e, t) {
576
581
  return typeof t == "bigint" ? t.toString() : t;
577
582
  }
578
- function D(e) {
583
+ function O(e) {
579
584
  return { get value() {
580
585
  {
581
586
  let t = e();
@@ -584,19 +589,19 @@ function D(e) {
584
589
  throw Error("cached value already set");
585
590
  } };
586
591
  }
587
- function O(e) {
592
+ function k(e) {
588
593
  return e == null;
589
594
  }
590
- function k(e) {
591
- let t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
595
+ function A(e) {
596
+ let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
592
597
  return e.slice(t, n);
593
598
  }
594
- var A = Symbol("evaluating");
595
- function j(e, t, n) {
599
+ var j = /* @__PURE__ */ Symbol("evaluating");
600
+ function M(e, t, n) {
596
601
  let r;
597
602
  Object.defineProperty(e, t, {
598
603
  get() {
599
- if (r !== A) return r === void 0 && (r = A, r = n()), r;
604
+ if (r !== j) return r === void 0 && (r = j, r = n()), r;
600
605
  },
601
606
  set(n) {
602
607
  Object.defineProperty(e, t, { value: n });
@@ -604,7 +609,7 @@ function j(e, t, n) {
604
609
  configurable: !0
605
610
  });
606
611
  }
607
- function M(e, t, n) {
612
+ function N(e, t, n) {
608
613
  Object.defineProperty(e, t, {
609
614
  value: n,
610
615
  writable: !0,
@@ -612,7 +617,7 @@ function M(e, t, n) {
612
617
  configurable: !0
613
618
  });
614
619
  }
615
- function N(...e) {
620
+ function P(...e) {
616
621
  let t = {};
617
622
  for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
618
623
  return Object.defineProperties({}, t);
@@ -627,15 +632,15 @@ var se = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
627
632
  function ce(e) {
628
633
  return typeof e == "object" && !!e && !Array.isArray(e);
629
634
  }
630
- var le = D(() => {
631
- if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
635
+ var le = /* @__PURE__ */ O(() => {
636
+ if (w.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
632
637
  try {
633
638
  return Function(""), !0;
634
639
  } catch {
635
640
  return !1;
636
641
  }
637
642
  });
638
- function P(e) {
643
+ function F(e) {
639
644
  if (ce(e) === !1) return !1;
640
645
  let t = e.constructor;
641
646
  if (t === void 0 || typeof t != "function") return !0;
@@ -643,9 +648,9 @@ function P(e) {
643
648
  return !(ce(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
644
649
  }
645
650
  function ue(e) {
646
- return P(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
651
+ return F(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
647
652
  }
648
- var de = new Set([
653
+ var de = /* @__PURE__ */ new Set([
649
654
  "string",
650
655
  "number",
651
656
  "symbol"
@@ -653,11 +658,11 @@ var de = new Set([
653
658
  function fe(e) {
654
659
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
655
660
  }
656
- function F(e, t, n) {
661
+ function I(e, t, n) {
657
662
  let r = new e._zod.constr(t ?? e._zod.def);
658
663
  return (!t || n?.parent) && (r._zod.parent = e), r;
659
664
  }
660
- function I(e) {
665
+ function L(e) {
661
666
  let t = e;
662
667
  if (!t) return {};
663
668
  if (typeof t == "string") return { error: () => t };
@@ -677,14 +682,14 @@ function pe(e) {
677
682
  function me(e, t) {
678
683
  let n = e._zod.def, r = n.checks;
679
684
  if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
680
- return F(e, N(e._zod.def, {
685
+ return I(e, P(e._zod.def, {
681
686
  get shape() {
682
687
  let e = {};
683
688
  for (let r in t) {
684
689
  if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
685
690
  t[r] && (e[r] = n.shape[r]);
686
691
  }
687
- return M(this, "shape", e), e;
692
+ return N(this, "shape", e), e;
688
693
  },
689
694
  checks: []
690
695
  }));
@@ -692,62 +697,63 @@ function me(e, t) {
692
697
  function he(e, t) {
693
698
  let n = e._zod.def, r = n.checks;
694
699
  if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
695
- return F(e, N(e._zod.def, {
700
+ return I(e, P(e._zod.def, {
696
701
  get shape() {
697
702
  let r = { ...e._zod.def.shape };
698
703
  for (let e in t) {
699
704
  if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
700
705
  t[e] && delete r[e];
701
706
  }
702
- return M(this, "shape", r), r;
707
+ return N(this, "shape", r), r;
703
708
  },
704
709
  checks: []
705
710
  }));
706
711
  }
707
712
  function ge(e, t) {
708
- if (!P(t)) throw Error("Invalid input to extend: expected a plain object");
713
+ if (!F(t)) throw Error("Invalid input to extend: expected a plain object");
709
714
  let n = e._zod.def.checks;
710
715
  if (n && n.length > 0) {
711
716
  let n = e._zod.def.shape;
712
717
  for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
713
718
  }
714
- return F(e, N(e._zod.def, { get shape() {
719
+ return I(e, P(e._zod.def, { get shape() {
715
720
  let n = {
716
721
  ...e._zod.def.shape,
717
722
  ...t
718
723
  };
719
- return M(this, "shape", n), n;
724
+ return N(this, "shape", n), n;
720
725
  } }));
721
726
  }
722
727
  function _e(e, t) {
723
- if (!P(t)) throw Error("Invalid input to safeExtend: expected a plain object");
724
- return F(e, N(e._zod.def, { get shape() {
728
+ if (!F(t)) throw Error("Invalid input to safeExtend: expected a plain object");
729
+ return I(e, P(e._zod.def, { get shape() {
725
730
  let n = {
726
731
  ...e._zod.def.shape,
727
732
  ...t
728
733
  };
729
- return M(this, "shape", n), n;
734
+ return N(this, "shape", n), n;
730
735
  } }));
731
736
  }
732
737
  function ve(e, t) {
733
- return F(e, N(e._zod.def, {
738
+ if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
739
+ return I(e, P(e._zod.def, {
734
740
  get shape() {
735
741
  let n = {
736
742
  ...e._zod.def.shape,
737
743
  ...t._zod.def.shape
738
744
  };
739
- return M(this, "shape", n), n;
745
+ return N(this, "shape", n), n;
740
746
  },
741
747
  get catchall() {
742
748
  return t._zod.def.catchall;
743
749
  },
744
- checks: []
750
+ checks: t._zod.def.checks ?? []
745
751
  }));
746
752
  }
747
753
  function ye(e, t, n) {
748
754
  let r = t._zod.def.checks;
749
755
  if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
750
- return F(t, N(t._zod.def, {
756
+ return I(t, P(t._zod.def, {
751
757
  get shape() {
752
758
  let r = t._zod.def.shape, i = { ...r };
753
759
  if (n) for (let t in n) {
@@ -761,13 +767,13 @@ function ye(e, t, n) {
761
767
  type: "optional",
762
768
  innerType: r[t]
763
769
  }) : r[t];
764
- return M(this, "shape", i), i;
770
+ return N(this, "shape", i), i;
765
771
  },
766
772
  checks: []
767
773
  }));
768
774
  }
769
775
  function be(e, t, n) {
770
- return F(t, N(t._zod.def, { get shape() {
776
+ return I(t, P(t._zod.def, { get shape() {
771
777
  let r = t._zod.def.shape, i = { ...r };
772
778
  if (n) for (let t in n) {
773
779
  if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
@@ -780,34 +786,36 @@ function be(e, t, n) {
780
786
  type: "nonoptional",
781
787
  innerType: r[t]
782
788
  });
783
- return M(this, "shape", i), i;
789
+ return N(this, "shape", i), i;
784
790
  } }));
785
791
  }
786
- function L(e, t = 0) {
792
+ function R(e, t = 0) {
787
793
  if (e.aborted === !0) return !0;
788
794
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
789
795
  return !1;
790
796
  }
791
- function xe(e, t) {
797
+ function xe(e, t = 0) {
798
+ if (e.aborted === !0) return !0;
799
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
800
+ return !1;
801
+ }
802
+ function Se(e, t) {
792
803
  return t.map((t) => {
793
804
  var n;
794
805
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
795
806
  });
796
807
  }
797
- function Se(e) {
808
+ function Ce(e) {
798
809
  return typeof e == "string" ? e : e?.message;
799
810
  }
800
- function R(e, t, n) {
801
- let r = {
802
- ...e,
803
- path: e.path ?? []
804
- };
805
- return e.message || (r.message = Se(e.inst?._zod.def?.error?.(e)) ?? Se(t?.error?.(e)) ?? Se(n.customError?.(e)) ?? Se(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
811
+ function z(e, t, n) {
812
+ let r = e.message ? e.message : Ce(e.inst?._zod.def?.error?.(e)) ?? Ce(t?.error?.(e)) ?? Ce(n.customError?.(e)) ?? Ce(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
813
+ return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
806
814
  }
807
- function Ce(e) {
815
+ function we(e) {
808
816
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
809
817
  }
810
- function z(...e) {
818
+ function B(...e) {
811
819
  let [t, n, r] = e;
812
820
  return typeof t == "string" ? {
813
821
  message: t,
@@ -817,20 +825,20 @@ function z(...e) {
817
825
  } : { ...t };
818
826
  }
819
827
  //#endregion
820
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
821
- var we = (e, t) => {
828
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
829
+ var Te = (e, t) => {
822
830
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
823
831
  value: e._zod,
824
832
  enumerable: !1
825
833
  }), Object.defineProperty(e, "issues", {
826
834
  value: t,
827
835
  enumerable: !1
828
- }), e.message = JSON.stringify(t, E, 2), Object.defineProperty(e, "toString", {
836
+ }), e.message = JSON.stringify(t, D, 2), Object.defineProperty(e, "toString", {
829
837
  value: () => e.message,
830
838
  enumerable: !1
831
839
  });
832
- }, Te = b("$ZodError", we), Ee = b("$ZodError", we, { Parent: Error });
833
- function De(e, t = (e) => e.message) {
840
+ }, Ee = x("$ZodError", Te), De = x("$ZodError", Te, { Parent: Error });
841
+ function Oe(e, t = (e) => e.message) {
834
842
  let n = {}, r = [];
835
843
  for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
836
844
  return {
@@ -838,46 +846,55 @@ function De(e, t = (e) => e.message) {
838
846
  fieldErrors: n
839
847
  };
840
848
  }
841
- function Oe(e, t = (e) => e.message) {
842
- let n = { _errors: [] }, r = (e) => {
843
- for (let i of e.issues) if (i.code === "invalid_union" && i.errors.length) i.errors.map((e) => r({ issues: e }));
844
- else if (i.code === "invalid_key") r({ issues: i.issues });
845
- else if (i.code === "invalid_element") r({ issues: i.issues });
846
- else if (i.path.length === 0) n._errors.push(t(i));
849
+ function ke(e, t = (e) => e.message) {
850
+ let n = { _errors: [] }, r = (e, i = []) => {
851
+ for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
852
+ else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
853
+ else if (a.code === "invalid_element") r({ issues: a.issues }, [...i, ...a.path]);
847
854
  else {
848
- let e = n, r = 0;
849
- for (; r < i.path.length;) {
850
- let n = i.path[r];
851
- r === i.path.length - 1 ? (e[n] = e[n] || { _errors: [] }, e[n]._errors.push(t(i))) : e[n] = e[n] || { _errors: [] }, e = e[n], r++;
855
+ let e = [...i, ...a.path];
856
+ if (e.length === 0) n._errors.push(t(a));
857
+ else {
858
+ let r = n, i = 0;
859
+ for (; i < e.length;) {
860
+ let n = e[i];
861
+ i === e.length - 1 ? (r[n] = r[n] || { _errors: [] }, r[n]._errors.push(t(a))) : r[n] = r[n] || { _errors: [] }, r = r[n], i++;
862
+ }
852
863
  }
853
864
  }
854
865
  };
855
866
  return r(e), n;
856
867
  }
857
868
  //#endregion
858
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
859
- var ke = (e) => (t, n, r, i) => {
860
- let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
869
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
870
+ var Ae = (e) => (t, n, r, i) => {
871
+ let a = r ? {
872
+ ...r,
873
+ async: !1
874
+ } : { async: !1 }, o = t._zod.run({
861
875
  value: n,
862
876
  issues: []
863
877
  }, a);
864
- if (o instanceof Promise) throw new x();
878
+ if (o instanceof Promise) throw new S();
865
879
  if (o.issues.length) {
866
- let t = new (i?.Err ?? e)(o.issues.map((e) => R(e, a, w())));
880
+ let t = new (i?.Err ?? e)(o.issues.map((e) => z(e, a, T())));
867
881
  throw se(t, i?.callee), t;
868
882
  }
869
883
  return o.value;
870
- }, Ae = (e) => async (t, n, r, i) => {
871
- let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
884
+ }, je = (e) => async (t, n, r, i) => {
885
+ let a = r ? {
886
+ ...r,
887
+ async: !0
888
+ } : { async: !0 }, o = t._zod.run({
872
889
  value: n,
873
890
  issues: []
874
891
  }, a);
875
892
  if (o instanceof Promise && (o = await o), o.issues.length) {
876
- let t = new (i?.Err ?? e)(o.issues.map((e) => R(e, a, w())));
893
+ let t = new (i?.Err ?? e)(o.issues.map((e) => z(e, a, T())));
877
894
  throw se(t, i?.callee), t;
878
895
  }
879
896
  return o.value;
880
- }, je = (e) => (t, n, r) => {
897
+ }, Me = (e) => (t, n, r) => {
881
898
  let i = r ? {
882
899
  ...r,
883
900
  async: !1
@@ -885,74 +902,89 @@ var ke = (e) => (t, n, r, i) => {
885
902
  value: n,
886
903
  issues: []
887
904
  }, i);
888
- if (a instanceof Promise) throw new x();
905
+ if (a instanceof Promise) throw new S();
889
906
  return a.issues.length ? {
890
907
  success: !1,
891
- error: new (e ?? Te)(a.issues.map((e) => R(e, i, w())))
908
+ error: new (e ?? Ee)(a.issues.map((e) => z(e, i, T())))
892
909
  } : {
893
910
  success: !0,
894
911
  data: a.value
895
912
  };
896
- }, Me = /* @__PURE__ */ je(Ee), Ne = (e) => async (t, n, r) => {
897
- let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
913
+ }, Ne = /* @__PURE__ */ Me(De), Pe = (e) => async (t, n, r) => {
914
+ let i = r ? {
915
+ ...r,
916
+ async: !0
917
+ } : { async: !0 }, a = t._zod.run({
898
918
  value: n,
899
919
  issues: []
900
920
  }, i);
901
921
  return a instanceof Promise && (a = await a), a.issues.length ? {
902
922
  success: !1,
903
- error: new e(a.issues.map((e) => R(e, i, w())))
923
+ error: new e(a.issues.map((e) => z(e, i, T())))
904
924
  } : {
905
925
  success: !0,
906
926
  data: a.value
907
927
  };
908
- }, Pe = /* @__PURE__ */ Ne(Ee), Fe = (e) => (t, n, r) => {
909
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
910
- return ke(e)(t, n, i);
911
- }, Ie = (e) => (t, n, r) => ke(e)(t, n, r), Le = (e) => async (t, n, r) => {
912
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
928
+ }, Fe = /* @__PURE__ */ Pe(De), Ie = (e) => (t, n, r) => {
929
+ let i = r ? {
930
+ ...r,
931
+ direction: "backward"
932
+ } : { direction: "backward" };
913
933
  return Ae(e)(t, n, i);
914
- }, Re = (e) => async (t, n, r) => Ae(e)(t, n, r), ze = (e) => (t, n, r) => {
915
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
934
+ }, Le = (e) => (t, n, r) => Ae(e)(t, n, r), Re = (e) => async (t, n, r) => {
935
+ let i = r ? {
936
+ ...r,
937
+ direction: "backward"
938
+ } : { direction: "backward" };
916
939
  return je(e)(t, n, i);
917
- }, Be = (e) => (t, n, r) => je(e)(t, n, r), Ve = (e) => async (t, n, r) => {
918
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
919
- return Ne(e)(t, n, i);
920
- }, He = (e) => async (t, n, r) => Ne(e)(t, n, r), Ue = /^[cC][^\s-]{8,}$/, We = /^[0-9a-z]+$/, Ge = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ke = /^[0-9a-vA-V]{20}$/, qe = /^[A-Za-z0-9]{27}$/, Je = /^[a-zA-Z0-9_-]{21}$/, Ye = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Xe = /^([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})$/, Ze = (e) => e ? 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)$/, Qe = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, $e = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
921
- function et() {
922
- return new RegExp($e, "u");
923
- }
924
- var tt = /^(?:(?: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])$/, nt = /^(([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}|:))$/, rt = /^((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])$/, it = /^(([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])$/, at = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ot = /^[A-Za-z0-9_-]*$/, st = /^\+[1-9]\d{6,14}$/, ct = "(?:(?:\\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])))", lt = /* @__PURE__ */ RegExp(`^${ct}$`);
925
- function ut(e) {
940
+ }, ze = (e) => async (t, n, r) => je(e)(t, n, r), Be = (e) => (t, n, r) => {
941
+ let i = r ? {
942
+ ...r,
943
+ direction: "backward"
944
+ } : { direction: "backward" };
945
+ return Me(e)(t, n, i);
946
+ }, Ve = (e) => (t, n, r) => Me(e)(t, n, r), He = (e) => async (t, n, r) => {
947
+ let i = r ? {
948
+ ...r,
949
+ direction: "backward"
950
+ } : { direction: "backward" };
951
+ return Pe(e)(t, n, i);
952
+ }, Ue = (e) => async (t, n, r) => Pe(e)(t, n, r), We = /^[cC][0-9a-z]{6,}$/, Ge = /^[0-9a-z]+$/, Ke = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, qe = /^[0-9a-vA-V]{20}$/, Je = /^[A-Za-z0-9]{27}$/, Ye = /^[a-zA-Z0-9_-]{21}$/, Xe = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ze = /^([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})$/, Qe = (e) => e ? 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)$/, $e = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, et = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
953
+ function tt() {
954
+ return new RegExp(et, "u");
955
+ }
956
+ var nt = /^(?:(?: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])$/, rt = /^(([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}|:))$/, it = /^((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])$/, at = /^(([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])$/, ot = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, st = /^[A-Za-z0-9_-]*$/, ct = /^https?$/, lt = /^\+[1-9]\d{6,14}$/, ut = "(?:(?:\\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])))", dt = /* @__PURE__ */ RegExp(`^${ut}$`);
957
+ function ft(e) {
926
958
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
927
959
  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+)?)?`;
928
960
  }
929
- function dt(e) {
930
- return RegExp(`^${ut(e)}$`);
961
+ function pt(e) {
962
+ return RegExp(`^${ft(e)}$`);
931
963
  }
932
- function ft(e) {
933
- let t = ut({ precision: e.precision }), n = ["Z"];
964
+ function mt(e) {
965
+ let t = ft({ precision: e.precision }), n = ["Z"];
934
966
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
935
967
  let r = `${t}(?:${n.join("|")})`;
936
- return RegExp(`^${ct}T(?:${r})$`);
968
+ return RegExp(`^${ut}T(?:${r})$`);
937
969
  }
938
- var pt = (e) => {
970
+ var ht = (e) => {
939
971
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
940
972
  return RegExp(`^${t}$`);
941
- }, mt = /^[^A-Z]*$/, ht = /^[^a-z]*$/, B = /* @__PURE__ */ b("$ZodCheck", (e, t) => {
973
+ }, gt = /^[^A-Z]*$/, _t = /^[^a-z]*$/, V = /* @__PURE__ */ x("$ZodCheck", (e, t) => {
942
974
  var n;
943
975
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
944
- }), gt = /* @__PURE__ */ b("$ZodCheckMaxLength", (e, t) => {
976
+ }), vt = /* @__PURE__ */ x("$ZodCheckMaxLength", (e, t) => {
945
977
  var n;
946
- B.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
978
+ V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
947
979
  let t = e.value;
948
- return !O(t) && t.length !== void 0;
980
+ return !k(t) && t.length !== void 0;
949
981
  }), e._zod.onattach.push((e) => {
950
982
  let n = e._zod.bag.maximum ?? Infinity;
951
983
  t.maximum < n && (e._zod.bag.maximum = t.maximum);
952
984
  }), e._zod.check = (n) => {
953
985
  let r = n.value;
954
986
  if (r.length <= t.maximum) return;
955
- let i = Ce(r);
987
+ let i = we(r);
956
988
  n.issues.push({
957
989
  origin: i,
958
990
  code: "too_big",
@@ -963,18 +995,18 @@ var pt = (e) => {
963
995
  continue: !t.abort
964
996
  });
965
997
  };
966
- }), _t = /* @__PURE__ */ b("$ZodCheckMinLength", (e, t) => {
998
+ }), yt = /* @__PURE__ */ x("$ZodCheckMinLength", (e, t) => {
967
999
  var n;
968
- B.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
1000
+ V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
969
1001
  let t = e.value;
970
- return !O(t) && t.length !== void 0;
1002
+ return !k(t) && t.length !== void 0;
971
1003
  }), e._zod.onattach.push((e) => {
972
1004
  let n = e._zod.bag.minimum ?? -Infinity;
973
1005
  t.minimum > n && (e._zod.bag.minimum = t.minimum);
974
1006
  }), e._zod.check = (n) => {
975
1007
  let r = n.value;
976
1008
  if (r.length >= t.minimum) return;
977
- let i = Ce(r);
1009
+ let i = we(r);
978
1010
  n.issues.push({
979
1011
  origin: i,
980
1012
  code: "too_small",
@@ -985,18 +1017,18 @@ var pt = (e) => {
985
1017
  continue: !t.abort
986
1018
  });
987
1019
  };
988
- }), vt = /* @__PURE__ */ b("$ZodCheckLengthEquals", (e, t) => {
1020
+ }), bt = /* @__PURE__ */ x("$ZodCheckLengthEquals", (e, t) => {
989
1021
  var n;
990
- B.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
1022
+ V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
991
1023
  let t = e.value;
992
- return !O(t) && t.length !== void 0;
1024
+ return !k(t) && t.length !== void 0;
993
1025
  }), e._zod.onattach.push((e) => {
994
1026
  let n = e._zod.bag;
995
1027
  n.minimum = t.length, n.maximum = t.length, n.length = t.length;
996
1028
  }), e._zod.check = (n) => {
997
1029
  let r = n.value, i = r.length;
998
1030
  if (i === t.length) return;
999
- let a = Ce(r), o = i > t.length;
1031
+ let a = we(r), o = i > t.length;
1000
1032
  n.issues.push({
1001
1033
  origin: a,
1002
1034
  ...o ? {
@@ -1013,9 +1045,9 @@ var pt = (e) => {
1013
1045
  continue: !t.abort
1014
1046
  });
1015
1047
  };
1016
- }), yt = /* @__PURE__ */ b("$ZodCheckStringFormat", (e, t) => {
1048
+ }), xt = /* @__PURE__ */ x("$ZodCheckStringFormat", (e, t) => {
1017
1049
  var n, r;
1018
- B.init(e, t), e._zod.onattach.push((e) => {
1050
+ V.init(e, t), e._zod.onattach.push((e) => {
1019
1051
  let n = e._zod.bag;
1020
1052
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
1021
1053
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -1029,8 +1061,8 @@ var pt = (e) => {
1029
1061
  continue: !t.abort
1030
1062
  });
1031
1063
  }) : (r = e._zod).check ?? (r.check = () => {});
1032
- }), bt = /* @__PURE__ */ b("$ZodCheckRegex", (e, t) => {
1033
- yt.init(e, t), e._zod.check = (n) => {
1064
+ }), St = /* @__PURE__ */ x("$ZodCheckRegex", (e, t) => {
1065
+ xt.init(e, t), e._zod.check = (n) => {
1034
1066
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
1035
1067
  origin: "string",
1036
1068
  code: "invalid_format",
@@ -1041,12 +1073,12 @@ var pt = (e) => {
1041
1073
  continue: !t.abort
1042
1074
  });
1043
1075
  };
1044
- }), xt = /* @__PURE__ */ b("$ZodCheckLowerCase", (e, t) => {
1045
- t.pattern ??= mt, yt.init(e, t);
1046
- }), St = /* @__PURE__ */ b("$ZodCheckUpperCase", (e, t) => {
1047
- t.pattern ??= ht, yt.init(e, t);
1048
- }), Ct = /* @__PURE__ */ b("$ZodCheckIncludes", (e, t) => {
1049
- B.init(e, t);
1076
+ }), Ct = /* @__PURE__ */ x("$ZodCheckLowerCase", (e, t) => {
1077
+ t.pattern ??= gt, xt.init(e, t);
1078
+ }), wt = /* @__PURE__ */ x("$ZodCheckUpperCase", (e, t) => {
1079
+ t.pattern ??= _t, xt.init(e, t);
1080
+ }), Tt = /* @__PURE__ */ x("$ZodCheckIncludes", (e, t) => {
1081
+ V.init(e, t);
1050
1082
  let n = fe(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1051
1083
  t.pattern = r, e._zod.onattach.push((e) => {
1052
1084
  let t = e._zod.bag;
@@ -1062,8 +1094,8 @@ var pt = (e) => {
1062
1094
  continue: !t.abort
1063
1095
  });
1064
1096
  };
1065
- }), wt = /* @__PURE__ */ b("$ZodCheckStartsWith", (e, t) => {
1066
- B.init(e, t);
1097
+ }), Et = /* @__PURE__ */ x("$ZodCheckStartsWith", (e, t) => {
1098
+ V.init(e, t);
1067
1099
  let n = RegExp(`^${fe(t.prefix)}.*`);
1068
1100
  t.pattern ??= n, e._zod.onattach.push((e) => {
1069
1101
  let t = e._zod.bag;
@@ -1079,8 +1111,8 @@ var pt = (e) => {
1079
1111
  continue: !t.abort
1080
1112
  });
1081
1113
  };
1082
- }), Tt = /* @__PURE__ */ b("$ZodCheckEndsWith", (e, t) => {
1083
- B.init(e, t);
1114
+ }), Dt = /* @__PURE__ */ x("$ZodCheckEndsWith", (e, t) => {
1115
+ V.init(e, t);
1084
1116
  let n = RegExp(`.*${fe(t.suffix)}$`);
1085
1117
  t.pattern ??= n, e._zod.onattach.push((e) => {
1086
1118
  let t = e._zod.bag;
@@ -1096,11 +1128,11 @@ var pt = (e) => {
1096
1128
  continue: !t.abort
1097
1129
  });
1098
1130
  };
1099
- }), Et = /* @__PURE__ */ b("$ZodCheckOverwrite", (e, t) => {
1100
- B.init(e, t), e._zod.check = (e) => {
1131
+ }), Ot = /* @__PURE__ */ x("$ZodCheckOverwrite", (e, t) => {
1132
+ V.init(e, t), e._zod.check = (e) => {
1101
1133
  e.value = t.tx(e.value);
1102
1134
  };
1103
- }), Dt = class {
1135
+ }), kt = class {
1104
1136
  constructor(e = []) {
1105
1137
  this.content = [], this.indent = 0, this && (this.args = e);
1106
1138
  }
@@ -1119,13 +1151,13 @@ var pt = (e) => {
1119
1151
  let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
1120
1152
  return new e(...t, n.join("\n"));
1121
1153
  }
1122
- }, Ot = {
1154
+ }, At = {
1123
1155
  major: 4,
1124
- minor: 3,
1125
- patch: 6
1126
- }, V = /* @__PURE__ */ b("$ZodType", (e, t) => {
1156
+ minor: 4,
1157
+ patch: 3
1158
+ }, H = /* @__PURE__ */ x("$ZodType", (e, t) => {
1127
1159
  var n;
1128
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ot;
1160
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = At;
1129
1161
  let r = [...e._zod.def.checks ?? []];
1130
1162
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
1131
1163
  for (let t of r) for (let n of t._zod.onattach) n(e);
@@ -1134,27 +1166,27 @@ var pt = (e) => {
1134
1166
  });
1135
1167
  else {
1136
1168
  let t = (e, t, n) => {
1137
- let r = L(e), i;
1169
+ let r = R(e), i;
1138
1170
  for (let a of t) {
1139
1171
  if (a._zod.def.when) {
1140
- if (!a._zod.def.when(e)) continue;
1172
+ if (xe(e) || !a._zod.def.when(e)) continue;
1141
1173
  } else if (r) continue;
1142
1174
  let t = e.issues.length, o = a._zod.check(e);
1143
- if (o instanceof Promise && n?.async === !1) throw new x();
1175
+ if (o instanceof Promise && n?.async === !1) throw new S();
1144
1176
  if (i || o instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
1145
- await o, e.issues.length !== t && (r ||= L(e, t));
1177
+ await o, e.issues.length !== t && (r ||= R(e, t));
1146
1178
  });
1147
1179
  else {
1148
1180
  if (e.issues.length === t) continue;
1149
- r ||= L(e, t);
1181
+ r ||= R(e, t);
1150
1182
  }
1151
1183
  }
1152
1184
  return i ? i.then(() => e) : e;
1153
1185
  }, n = (n, i, a) => {
1154
- if (L(n)) return n.aborted = !0, n;
1186
+ if (R(n)) return n.aborted = !0, n;
1155
1187
  let o = t(i, r, a);
1156
1188
  if (o instanceof Promise) {
1157
- if (a.async === !1) throw new x();
1189
+ if (a.async === !1) throw new S();
1158
1190
  return o.then((t) => e._zod.parse(t, a));
1159
1191
  }
1160
1192
  return e._zod.parse(o, a);
@@ -1173,26 +1205,26 @@ var pt = (e) => {
1173
1205
  }
1174
1206
  let o = e._zod.parse(i, a);
1175
1207
  if (o instanceof Promise) {
1176
- if (a.async === !1) throw new x();
1208
+ if (a.async === !1) throw new S();
1177
1209
  return o.then((e) => t(e, r, a));
1178
1210
  }
1179
1211
  return t(o, r, a);
1180
1212
  };
1181
1213
  }
1182
- j(e, "~standard", () => ({
1214
+ M(e, "~standard", () => ({
1183
1215
  validate: (t) => {
1184
1216
  try {
1185
- let n = Me(e, t);
1217
+ let n = Ne(e, t);
1186
1218
  return n.success ? { value: n.data } : { issues: n.error?.issues };
1187
1219
  } catch {
1188
- return Pe(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
1220
+ return Fe(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
1189
1221
  }
1190
1222
  },
1191
1223
  vendor: "zod",
1192
1224
  version: 1
1193
1225
  }));
1194
- }), kt = /* @__PURE__ */ b("$ZodString", (e, t) => {
1195
- V.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? pt(e._zod.bag), e._zod.parse = (n, r) => {
1226
+ }), jt = /* @__PURE__ */ x("$ZodString", (e, t) => {
1227
+ H.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ht(e._zod.bag), e._zod.parse = (n, r) => {
1196
1228
  if (t.coerce) try {
1197
1229
  n.value = String(n.value);
1198
1230
  } catch {}
@@ -1203,11 +1235,11 @@ var pt = (e) => {
1203
1235
  inst: e
1204
1236
  }), n;
1205
1237
  };
1206
- }), H = /* @__PURE__ */ b("$ZodStringFormat", (e, t) => {
1207
- yt.init(e, t), kt.init(e, t);
1208
- }), At = /* @__PURE__ */ b("$ZodGUID", (e, t) => {
1209
- t.pattern ??= Xe, H.init(e, t);
1210
- }), jt = /* @__PURE__ */ b("$ZodUUID", (e, t) => {
1238
+ }), U = /* @__PURE__ */ x("$ZodStringFormat", (e, t) => {
1239
+ xt.init(e, t), jt.init(e, t);
1240
+ }), Mt = /* @__PURE__ */ x("$ZodGUID", (e, t) => {
1241
+ t.pattern ??= Ze, U.init(e, t);
1242
+ }), Nt = /* @__PURE__ */ x("$ZodUUID", (e, t) => {
1211
1243
  if (t.version) {
1212
1244
  let e = {
1213
1245
  v1: 1,
@@ -1220,15 +1252,27 @@ var pt = (e) => {
1220
1252
  v8: 8
1221
1253
  }[t.version];
1222
1254
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
1223
- t.pattern ??= Ze(e);
1224
- } else t.pattern ??= Ze();
1225
- H.init(e, t);
1226
- }), Mt = /* @__PURE__ */ b("$ZodEmail", (e, t) => {
1227
- t.pattern ??= Qe, H.init(e, t);
1228
- }), Nt = /* @__PURE__ */ b("$ZodURL", (e, t) => {
1229
- H.init(e, t), e._zod.check = (n) => {
1255
+ t.pattern ??= Qe(e);
1256
+ } else t.pattern ??= Qe();
1257
+ U.init(e, t);
1258
+ }), Pt = /* @__PURE__ */ x("$ZodEmail", (e, t) => {
1259
+ t.pattern ??= $e, U.init(e, t);
1260
+ }), Ft = /* @__PURE__ */ x("$ZodURL", (e, t) => {
1261
+ U.init(e, t), e._zod.check = (n) => {
1230
1262
  try {
1231
- let r = n.value.trim(), i = new URL(r);
1263
+ let r = n.value.trim();
1264
+ if (!t.normalize && t.protocol?.source === ct.source && !/^https?:\/\//i.test(r)) {
1265
+ n.issues.push({
1266
+ code: "invalid_format",
1267
+ format: "url",
1268
+ note: "Invalid URL format",
1269
+ input: n.value,
1270
+ inst: e,
1271
+ continue: !t.abort
1272
+ });
1273
+ return;
1274
+ }
1275
+ let i = new URL(r);
1232
1276
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
1233
1277
  code: "invalid_format",
1234
1278
  format: "url",
@@ -1257,32 +1301,32 @@ var pt = (e) => {
1257
1301
  });
1258
1302
  }
1259
1303
  };
1260
- }), Pt = /* @__PURE__ */ b("$ZodEmoji", (e, t) => {
1261
- t.pattern ??= et(), H.init(e, t);
1262
- }), Ft = /* @__PURE__ */ b("$ZodNanoID", (e, t) => {
1263
- t.pattern ??= Je, H.init(e, t);
1264
- }), It = /* @__PURE__ */ b("$ZodCUID", (e, t) => {
1265
- t.pattern ??= Ue, H.init(e, t);
1266
- }), Lt = /* @__PURE__ */ b("$ZodCUID2", (e, t) => {
1267
- t.pattern ??= We, H.init(e, t);
1268
- }), Rt = /* @__PURE__ */ b("$ZodULID", (e, t) => {
1269
- t.pattern ??= Ge, H.init(e, t);
1270
- }), zt = /* @__PURE__ */ b("$ZodXID", (e, t) => {
1271
- t.pattern ??= Ke, H.init(e, t);
1272
- }), Bt = /* @__PURE__ */ b("$ZodKSUID", (e, t) => {
1273
- t.pattern ??= qe, H.init(e, t);
1274
- }), Vt = /* @__PURE__ */ b("$ZodISODateTime", (e, t) => {
1275
- t.pattern ??= ft(t), H.init(e, t);
1276
- }), Ht = /* @__PURE__ */ b("$ZodISODate", (e, t) => {
1277
- t.pattern ??= lt, H.init(e, t);
1278
- }), Ut = /* @__PURE__ */ b("$ZodISOTime", (e, t) => {
1279
- t.pattern ??= dt(t), H.init(e, t);
1280
- }), Wt = /* @__PURE__ */ b("$ZodISODuration", (e, t) => {
1281
- t.pattern ??= Ye, H.init(e, t);
1282
- }), Gt = /* @__PURE__ */ b("$ZodIPv4", (e, t) => {
1283
- t.pattern ??= tt, H.init(e, t), e._zod.bag.format = "ipv4";
1284
- }), Kt = /* @__PURE__ */ b("$ZodIPv6", (e, t) => {
1285
- t.pattern ??= nt, H.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
1304
+ }), It = /* @__PURE__ */ x("$ZodEmoji", (e, t) => {
1305
+ t.pattern ??= tt(), U.init(e, t);
1306
+ }), Lt = /* @__PURE__ */ x("$ZodNanoID", (e, t) => {
1307
+ t.pattern ??= Ye, U.init(e, t);
1308
+ }), Rt = /* @__PURE__ */ x("$ZodCUID", (e, t) => {
1309
+ t.pattern ??= We, U.init(e, t);
1310
+ }), zt = /* @__PURE__ */ x("$ZodCUID2", (e, t) => {
1311
+ t.pattern ??= Ge, U.init(e, t);
1312
+ }), Bt = /* @__PURE__ */ x("$ZodULID", (e, t) => {
1313
+ t.pattern ??= Ke, U.init(e, t);
1314
+ }), Vt = /* @__PURE__ */ x("$ZodXID", (e, t) => {
1315
+ t.pattern ??= qe, U.init(e, t);
1316
+ }), Ht = /* @__PURE__ */ x("$ZodKSUID", (e, t) => {
1317
+ t.pattern ??= Je, U.init(e, t);
1318
+ }), Ut = /* @__PURE__ */ x("$ZodISODateTime", (e, t) => {
1319
+ t.pattern ??= mt(t), U.init(e, t);
1320
+ }), Wt = /* @__PURE__ */ x("$ZodISODate", (e, t) => {
1321
+ t.pattern ??= dt, U.init(e, t);
1322
+ }), Gt = /* @__PURE__ */ x("$ZodISOTime", (e, t) => {
1323
+ t.pattern ??= pt(t), U.init(e, t);
1324
+ }), Kt = /* @__PURE__ */ x("$ZodISODuration", (e, t) => {
1325
+ t.pattern ??= Xe, U.init(e, t);
1326
+ }), qt = /* @__PURE__ */ x("$ZodIPv4", (e, t) => {
1327
+ t.pattern ??= nt, U.init(e, t), e._zod.bag.format = "ipv4";
1328
+ }), Jt = /* @__PURE__ */ x("$ZodIPv6", (e, t) => {
1329
+ t.pattern ??= rt, U.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
1286
1330
  try {
1287
1331
  new URL(`http://[${n.value}]`);
1288
1332
  } catch {
@@ -1295,10 +1339,10 @@ var pt = (e) => {
1295
1339
  });
1296
1340
  }
1297
1341
  };
1298
- }), qt = /* @__PURE__ */ b("$ZodCIDRv4", (e, t) => {
1299
- t.pattern ??= rt, H.init(e, t);
1300
- }), Jt = /* @__PURE__ */ b("$ZodCIDRv6", (e, t) => {
1301
- t.pattern ??= it, H.init(e, t), e._zod.check = (n) => {
1342
+ }), Yt = /* @__PURE__ */ x("$ZodCIDRv4", (e, t) => {
1343
+ t.pattern ??= it, U.init(e, t);
1344
+ }), Xt = /* @__PURE__ */ x("$ZodCIDRv6", (e, t) => {
1345
+ t.pattern ??= at, U.init(e, t), e._zod.check = (n) => {
1302
1346
  let r = n.value.split("/");
1303
1347
  try {
1304
1348
  if (r.length !== 2) throw Error();
@@ -1318,18 +1362,18 @@ var pt = (e) => {
1318
1362
  }
1319
1363
  };
1320
1364
  });
1321
- function Yt(e) {
1365
+ function Zt(e) {
1322
1366
  if (e === "") return !0;
1323
- if (e.length % 4 != 0) return !1;
1367
+ if (/\s/.test(e) || e.length % 4 != 0) return !1;
1324
1368
  try {
1325
1369
  return atob(e), !0;
1326
1370
  } catch {
1327
1371
  return !1;
1328
1372
  }
1329
1373
  }
1330
- var Xt = /* @__PURE__ */ b("$ZodBase64", (e, t) => {
1331
- t.pattern ??= at, H.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
1332
- Yt(n.value) || n.issues.push({
1374
+ var Qt = /* @__PURE__ */ x("$ZodBase64", (e, t) => {
1375
+ t.pattern ??= ot, U.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
1376
+ Zt(n.value) || n.issues.push({
1333
1377
  code: "invalid_format",
1334
1378
  format: "base64",
1335
1379
  input: n.value,
@@ -1338,14 +1382,14 @@ var Xt = /* @__PURE__ */ b("$ZodBase64", (e, t) => {
1338
1382
  });
1339
1383
  };
1340
1384
  });
1341
- function Zt(e) {
1342
- if (!ot.test(e)) return !1;
1385
+ function $t(e) {
1386
+ if (!st.test(e)) return !1;
1343
1387
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
1344
- return Yt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1388
+ return Zt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1345
1389
  }
1346
- var Qt = /* @__PURE__ */ b("$ZodBase64URL", (e, t) => {
1347
- t.pattern ??= ot, H.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1348
- Zt(n.value) || n.issues.push({
1390
+ var en = /* @__PURE__ */ x("$ZodBase64URL", (e, t) => {
1391
+ t.pattern ??= st, U.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1392
+ $t(n.value) || n.issues.push({
1349
1393
  code: "invalid_format",
1350
1394
  format: "base64url",
1351
1395
  input: n.value,
@@ -1353,10 +1397,10 @@ var Qt = /* @__PURE__ */ b("$ZodBase64URL", (e, t) => {
1353
1397
  continue: !t.abort
1354
1398
  });
1355
1399
  };
1356
- }), $t = /* @__PURE__ */ b("$ZodE164", (e, t) => {
1357
- t.pattern ??= st, H.init(e, t);
1400
+ }), tn = /* @__PURE__ */ x("$ZodE164", (e, t) => {
1401
+ t.pattern ??= lt, U.init(e, t);
1358
1402
  });
1359
- function en(e, t = null) {
1403
+ function nn(e, t = null) {
1360
1404
  try {
1361
1405
  let n = e.split(".");
1362
1406
  if (n.length !== 3) return !1;
@@ -1368,9 +1412,9 @@ function en(e, t = null) {
1368
1412
  return !1;
1369
1413
  }
1370
1414
  }
1371
- var tn = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
1372
- H.init(e, t), e._zod.check = (n) => {
1373
- en(n.value, t.alg) || n.issues.push({
1415
+ var rn = /* @__PURE__ */ x("$ZodJWT", (e, t) => {
1416
+ U.init(e, t), e._zod.check = (n) => {
1417
+ nn(n.value, t.alg) || n.issues.push({
1374
1418
  code: "invalid_format",
1375
1419
  format: "jwt",
1376
1420
  input: n.value,
@@ -1378,21 +1422,21 @@ var tn = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
1378
1422
  continue: !t.abort
1379
1423
  });
1380
1424
  };
1381
- }), nn = /* @__PURE__ */ b("$ZodUnknown", (e, t) => {
1382
- V.init(e, t), e._zod.parse = (e) => e;
1383
- }), rn = /* @__PURE__ */ b("$ZodNever", (e, t) => {
1384
- V.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1425
+ }), an = /* @__PURE__ */ x("$ZodUnknown", (e, t) => {
1426
+ H.init(e, t), e._zod.parse = (e) => e;
1427
+ }), on = /* @__PURE__ */ x("$ZodNever", (e, t) => {
1428
+ H.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1385
1429
  expected: "never",
1386
1430
  code: "invalid_type",
1387
1431
  input: t.value,
1388
1432
  inst: e
1389
1433
  }), t);
1390
1434
  });
1391
- function an(e, t, n) {
1392
- e.issues.length && t.issues.push(...xe(n, e.issues)), t.value[n] = e.value;
1435
+ function sn(e, t, n) {
1436
+ e.issues.length && t.issues.push(...Se(n, e.issues)), t.value[n] = e.value;
1393
1437
  }
1394
- var on = /* @__PURE__ */ b("$ZodArray", (e, t) => {
1395
- V.init(e, t), e._zod.parse = (n, r) => {
1438
+ var cn = /* @__PURE__ */ x("$ZodArray", (e, t) => {
1439
+ H.init(e, t), e._zod.parse = (n, r) => {
1396
1440
  let i = n.value;
1397
1441
  if (!Array.isArray(i)) return n.issues.push({
1398
1442
  expected: "array",
@@ -1407,19 +1451,29 @@ var on = /* @__PURE__ */ b("$ZodArray", (e, t) => {
1407
1451
  value: o,
1408
1452
  issues: []
1409
1453
  }, r);
1410
- s instanceof Promise ? a.push(s.then((t) => an(t, n, e))) : an(s, n, e);
1454
+ s instanceof Promise ? a.push(s.then((t) => sn(t, n, e))) : sn(s, n, e);
1411
1455
  }
1412
1456
  return a.length ? Promise.all(a).then(() => n) : n;
1413
1457
  };
1414
1458
  });
1415
- function U(e, t, n, r, i) {
1459
+ function ln(e, t, n, r, i, a) {
1460
+ let o = n in r;
1416
1461
  if (e.issues.length) {
1417
- if (i && !(n in r)) return;
1418
- t.issues.push(...xe(n, e.issues));
1462
+ if (i && a && !o) return;
1463
+ t.issues.push(...Se(n, e.issues));
1464
+ }
1465
+ if (!o && !i) {
1466
+ e.issues.length || t.issues.push({
1467
+ code: "invalid_type",
1468
+ expected: "nonoptional",
1469
+ input: void 0,
1470
+ path: [n]
1471
+ });
1472
+ return;
1419
1473
  }
1420
- e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1474
+ e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
1421
1475
  }
1422
- function sn(e) {
1476
+ function un(e) {
1423
1477
  let t = Object.keys(e.shape);
1424
1478
  for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
1425
1479
  let n = pe(e.shape);
@@ -1431,10 +1485,10 @@ function sn(e) {
1431
1485
  optionalKeys: new Set(n)
1432
1486
  };
1433
1487
  }
1434
- function cn(e, t, n, r, i, a) {
1435
- let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
1488
+ function dn(e, t, n, r, i, a) {
1489
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
1436
1490
  for (let i in t) {
1437
- if (s.has(i)) continue;
1491
+ if (i === "__proto__" || s.has(i)) continue;
1438
1492
  if (l === "never") {
1439
1493
  o.push(i);
1440
1494
  continue;
@@ -1443,7 +1497,7 @@ function cn(e, t, n, r, i, a) {
1443
1497
  value: t[i],
1444
1498
  issues: []
1445
1499
  }, r);
1446
- a instanceof Promise ? e.push(a.then((e) => U(e, n, i, t, u))) : U(a, n, i, t, u);
1500
+ a instanceof Promise ? e.push(a.then((e) => ln(e, n, i, t, u, d))) : ln(a, n, i, t, u, d);
1447
1501
  }
1448
1502
  return o.length && n.issues.push({
1449
1503
  code: "unrecognized_keys",
@@ -1452,16 +1506,16 @@ function cn(e, t, n, r, i, a) {
1452
1506
  inst: a
1453
1507
  }), e.length ? Promise.all(e).then(() => n) : n;
1454
1508
  }
1455
- var ln = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1456
- if (V.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1509
+ var fn = /* @__PURE__ */ x("$ZodObject", (e, t) => {
1510
+ if (H.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1457
1511
  let e = t.shape;
1458
1512
  Object.defineProperty(t, "shape", { get: () => {
1459
1513
  let n = { ...e };
1460
1514
  return Object.defineProperty(t, "shape", { value: n }), n;
1461
1515
  } });
1462
1516
  }
1463
- let n = D(() => sn(t));
1464
- j(e._zod, "propValues", () => {
1517
+ let n = O(() => un(t));
1518
+ M(e._zod, "propValues", () => {
1465
1519
  let e = t.shape, n = {};
1466
1520
  for (let t in e) {
1467
1521
  let r = e[t]._zod;
@@ -1485,18 +1539,18 @@ var ln = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1485
1539
  t.value = {};
1486
1540
  let c = [], l = a.shape;
1487
1541
  for (let e of a.keys) {
1488
- let n = l[e], r = n._zod.optout === "optional", i = n._zod.run({
1542
+ let n = l[e], r = n._zod.optin === "optional", i = n._zod.optout === "optional", a = n._zod.run({
1489
1543
  value: s[e],
1490
1544
  issues: []
1491
1545
  }, o);
1492
- i instanceof Promise ? c.push(i.then((n) => U(n, t, e, s, r))) : U(i, t, e, s, r);
1546
+ a instanceof Promise ? c.push(a.then((n) => ln(n, t, e, s, r, i))) : ln(a, t, e, s, r, i);
1493
1547
  }
1494
- return i ? cn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1548
+ return i ? dn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1495
1549
  };
1496
- }), un = /* @__PURE__ */ b("$ZodObjectJIT", (e, t) => {
1497
- ln.init(e, t);
1498
- let n = e._zod.parse, r = D(() => sn(t)), i = (e) => {
1499
- let t = new Dt([
1550
+ }), pn = /* @__PURE__ */ x("$ZodObjectJIT", (e, t) => {
1551
+ fn.init(e, t);
1552
+ let n = e._zod.parse, r = O(() => un(t)), i = (e) => {
1553
+ let t = new kt([
1500
1554
  "shape",
1501
1555
  "payload",
1502
1556
  "ctx"
@@ -1509,8 +1563,8 @@ var ln = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1509
1563
  for (let e of n.keys) a[e] = `key_${o++}`;
1510
1564
  t.write("const newResult = {};");
1511
1565
  for (let r of n.keys) {
1512
- let n = a[r], o = ae(r), s = e[r]?._zod?.optout === "optional";
1513
- t.write(`const ${n} = ${i(r)};`), s ? t.write(`
1566
+ let n = a[r], o = ae(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
1567
+ t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
1514
1568
  if (${n}.issues.length) {
1515
1569
  if (${o} in input) {
1516
1570
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
@@ -1528,7 +1582,7 @@ var ln = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1528
1582
  newResult[${o}] = ${n}.value;
1529
1583
  }
1530
1584
 
1531
- `) : t.write(`
1585
+ `) : c ? t.write(`
1532
1586
  if (${n}.issues.length) {
1533
1587
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1534
1588
  ...iss,
@@ -1544,16 +1598,41 @@ var ln = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1544
1598
  newResult[${o}] = ${n}.value;
1545
1599
  }
1546
1600
 
1601
+ `) : t.write(`
1602
+ const ${n}_present = ${o} in input;
1603
+ if (${n}.issues.length) {
1604
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1605
+ ...iss,
1606
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1607
+ })));
1608
+ }
1609
+ if (!${n}_present && !${n}.issues.length) {
1610
+ payload.issues.push({
1611
+ code: "invalid_type",
1612
+ expected: "nonoptional",
1613
+ input: undefined,
1614
+ path: [${o}]
1615
+ });
1616
+ }
1617
+
1618
+ if (${n}_present) {
1619
+ if (${n}.value === undefined) {
1620
+ newResult[${o}] = undefined;
1621
+ } else {
1622
+ newResult[${o}] = ${n}.value;
1623
+ }
1624
+ }
1625
+
1547
1626
  `);
1548
1627
  }
1549
1628
  t.write("payload.value = newResult;"), t.write("return payload;");
1550
1629
  let s = t.compile();
1551
1630
  return (t, n) => s(e, t, n);
1552
- }, a, o = ce, s = !C.jitless, c = s && le.value, l = t.catchall, u;
1631
+ }, a, o = ce, s = !w.jitless, c = s && le.value, l = t.catchall, u;
1553
1632
  e._zod.parse = (d, f) => {
1554
1633
  u ??= r.value;
1555
1634
  let p = d.value;
1556
- return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? cn([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
1635
+ return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? dn([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
1557
1636
  expected: "object",
1558
1637
  code: "invalid_type",
1559
1638
  input: p,
@@ -1561,44 +1640,44 @@ var ln = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1561
1640
  }), d);
1562
1641
  };
1563
1642
  });
1564
- function dn(e, t, n, r) {
1643
+ function mn(e, t, n, r) {
1565
1644
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1566
- let i = e.filter((e) => !L(e));
1645
+ let i = e.filter((e) => !R(e));
1567
1646
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1568
1647
  code: "invalid_union",
1569
1648
  input: t.value,
1570
1649
  inst: n,
1571
- errors: e.map((e) => e.issues.map((e) => R(e, r, w())))
1650
+ errors: e.map((e) => e.issues.map((e) => z(e, r, T())))
1572
1651
  }), t);
1573
1652
  }
1574
- var fn = /* @__PURE__ */ b("$ZodUnion", (e, t) => {
1575
- V.init(e, t), j(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), j(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), j(e._zod, "values", () => {
1653
+ var hn = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1654
+ H.init(e, t), M(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), M(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), M(e._zod, "values", () => {
1576
1655
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1577
- }), j(e._zod, "pattern", () => {
1656
+ }), M(e._zod, "pattern", () => {
1578
1657
  if (t.options.every((e) => e._zod.pattern)) {
1579
1658
  let e = t.options.map((e) => e._zod.pattern);
1580
- return RegExp(`^(${e.map((e) => k(e.source)).join("|")})$`);
1659
+ return RegExp(`^(${e.map((e) => A(e.source)).join("|")})$`);
1581
1660
  }
1582
1661
  });
1583
- let n = t.options.length === 1, r = t.options[0]._zod.run;
1584
- e._zod.parse = (i, a) => {
1585
- if (n) return r(i, a);
1586
- let o = !1, s = [];
1662
+ let n = t.options.length === 1 ? t.options[0]._zod.run : null;
1663
+ e._zod.parse = (r, i) => {
1664
+ if (n) return n(r, i);
1665
+ let a = !1, o = [];
1587
1666
  for (let e of t.options) {
1588
1667
  let t = e._zod.run({
1589
- value: i.value,
1668
+ value: r.value,
1590
1669
  issues: []
1591
- }, a);
1592
- if (t instanceof Promise) s.push(t), o = !0;
1670
+ }, i);
1671
+ if (t instanceof Promise) o.push(t), a = !0;
1593
1672
  else {
1594
1673
  if (t.issues.length === 0) return t;
1595
- s.push(t);
1674
+ o.push(t);
1596
1675
  }
1597
1676
  }
1598
- return o ? Promise.all(s).then((t) => dn(t, i, e, a)) : dn(s, i, e, a);
1677
+ return a ? Promise.all(o).then((t) => mn(t, r, e, i)) : mn(o, r, e, i);
1599
1678
  };
1600
- }), pn = /* @__PURE__ */ b("$ZodIntersection", (e, t) => {
1601
- V.init(e, t), e._zod.parse = (e, n) => {
1679
+ }), gn = /* @__PURE__ */ x("$ZodIntersection", (e, t) => {
1680
+ H.init(e, t), e._zod.parse = (e, n) => {
1602
1681
  let r = e.value, i = t.left._zod.run({
1603
1682
  value: r,
1604
1683
  issues: []
@@ -1606,21 +1685,21 @@ var fn = /* @__PURE__ */ b("$ZodUnion", (e, t) => {
1606
1685
  value: r,
1607
1686
  issues: []
1608
1687
  }, n);
1609
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => hn(e, t, n)) : hn(e, i, a);
1688
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => vn(e, t, n)) : vn(e, i, a);
1610
1689
  };
1611
1690
  });
1612
- function mn(e, t) {
1691
+ function _n(e, t) {
1613
1692
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1614
1693
  valid: !0,
1615
1694
  data: e
1616
1695
  };
1617
- if (P(e) && P(t)) {
1696
+ if (F(e) && F(t)) {
1618
1697
  let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1619
1698
  ...e,
1620
1699
  ...t
1621
1700
  };
1622
1701
  for (let n of r) {
1623
- let r = mn(e[n], t[n]);
1702
+ let r = _n(e[n], t[n]);
1624
1703
  if (!r.valid) return {
1625
1704
  valid: !1,
1626
1705
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1639,7 +1718,7 @@ function mn(e, t) {
1639
1718
  };
1640
1719
  let n = [];
1641
1720
  for (let r = 0; r < e.length; r++) {
1642
- let i = e[r], a = t[r], o = mn(i, a);
1721
+ let i = e[r], a = t[r], o = _n(i, a);
1643
1722
  if (!o.valid) return {
1644
1723
  valid: !1,
1645
1724
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1656,7 +1735,7 @@ function mn(e, t) {
1656
1735
  mergeErrorPath: []
1657
1736
  };
1658
1737
  }
1659
- function hn(e, t, n) {
1738
+ function vn(e, t, n) {
1660
1739
  let r = /* @__PURE__ */ new Map(), i;
1661
1740
  for (let n of t.issues) if (n.code === "unrecognized_keys") {
1662
1741
  i ??= n;
@@ -1668,14 +1747,14 @@ function hn(e, t, n) {
1668
1747
  if (a.length && i && e.issues.push({
1669
1748
  ...i,
1670
1749
  keys: a
1671
- }), L(e)) return e;
1672
- let o = mn(t.value, n.value);
1750
+ }), R(e)) return e;
1751
+ let o = _n(t.value, n.value);
1673
1752
  if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1674
1753
  return e.value = o.data, e;
1675
1754
  }
1676
- var gn = /* @__PURE__ */ b("$ZodEnum", (e, t) => {
1677
- V.init(e, t);
1678
- let n = T(t.entries), r = new Set(n);
1755
+ var yn = /* @__PURE__ */ x("$ZodEnum", (e, t) => {
1756
+ H.init(e, t);
1757
+ let n = E(t.entries), r = new Set(n);
1679
1758
  e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => de.has(typeof e)).map((e) => typeof e == "string" ? fe(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1680
1759
  let a = t.value;
1681
1760
  return r.has(a) || t.issues.push({
@@ -1685,62 +1764,62 @@ var gn = /* @__PURE__ */ b("$ZodEnum", (e, t) => {
1685
1764
  inst: e
1686
1765
  }), t;
1687
1766
  };
1688
- }), _n = /* @__PURE__ */ b("$ZodTransform", (e, t) => {
1689
- V.init(e, t), e._zod.parse = (n, r) => {
1690
- if (r.direction === "backward") throw new S(e.constructor.name);
1767
+ }), bn = /* @__PURE__ */ x("$ZodTransform", (e, t) => {
1768
+ H.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1769
+ if (r.direction === "backward") throw new C(e.constructor.name);
1691
1770
  let i = t.transform(n.value, n);
1692
- if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
1693
- if (i instanceof Promise) throw new x();
1694
- return n.value = i, n;
1771
+ if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
1772
+ if (i instanceof Promise) throw new S();
1773
+ return n.value = i, n.fallback = !0, n;
1695
1774
  };
1696
1775
  });
1697
- function vn(e, t) {
1698
- return e.issues.length && t === void 0 ? {
1776
+ function xn(e, t) {
1777
+ return t === void 0 && (e.issues.length || e.fallback) ? {
1699
1778
  issues: [],
1700
1779
  value: void 0
1701
1780
  } : e;
1702
1781
  }
1703
- var yn = /* @__PURE__ */ b("$ZodOptional", (e, t) => {
1704
- V.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", j(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), j(e._zod, "pattern", () => {
1782
+ var Sn = /* @__PURE__ */ x("$ZodOptional", (e, t) => {
1783
+ H.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", M(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), M(e._zod, "pattern", () => {
1705
1784
  let e = t.innerType._zod.pattern;
1706
- return e ? RegExp(`^(${k(e.source)})?$`) : void 0;
1785
+ return e ? RegExp(`^(${A(e.source)})?$`) : void 0;
1707
1786
  }), e._zod.parse = (e, n) => {
1708
1787
  if (t.innerType._zod.optin === "optional") {
1709
- let r = t.innerType._zod.run(e, n);
1710
- return r instanceof Promise ? r.then((t) => vn(t, e.value)) : vn(r, e.value);
1788
+ let r = e.value, i = t.innerType._zod.run(e, n);
1789
+ return i instanceof Promise ? i.then((e) => xn(e, r)) : xn(i, r);
1711
1790
  }
1712
1791
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1713
1792
  };
1714
- }), bn = /* @__PURE__ */ b("$ZodExactOptional", (e, t) => {
1715
- yn.init(e, t), j(e._zod, "values", () => t.innerType._zod.values), j(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1716
- }), xn = /* @__PURE__ */ b("$ZodNullable", (e, t) => {
1717
- V.init(e, t), j(e._zod, "optin", () => t.innerType._zod.optin), j(e._zod, "optout", () => t.innerType._zod.optout), j(e._zod, "pattern", () => {
1793
+ }), Cn = /* @__PURE__ */ x("$ZodExactOptional", (e, t) => {
1794
+ Sn.init(e, t), M(e._zod, "values", () => t.innerType._zod.values), M(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1795
+ }), wn = /* @__PURE__ */ x("$ZodNullable", (e, t) => {
1796
+ H.init(e, t), M(e._zod, "optin", () => t.innerType._zod.optin), M(e._zod, "optout", () => t.innerType._zod.optout), M(e._zod, "pattern", () => {
1718
1797
  let e = t.innerType._zod.pattern;
1719
- return e ? RegExp(`^(${k(e.source)}|null)$`) : void 0;
1720
- }), j(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1721
- }), Sn = /* @__PURE__ */ b("$ZodDefault", (e, t) => {
1722
- V.init(e, t), e._zod.optin = "optional", j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1798
+ return e ? RegExp(`^(${A(e.source)}|null)$`) : void 0;
1799
+ }), M(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1800
+ }), Tn = /* @__PURE__ */ x("$ZodDefault", (e, t) => {
1801
+ H.init(e, t), e._zod.optin = "optional", M(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1723
1802
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1724
1803
  if (e.value === void 0) return e.value = t.defaultValue, e;
1725
1804
  let r = t.innerType._zod.run(e, n);
1726
- return r instanceof Promise ? r.then((e) => Cn(e, t)) : Cn(r, t);
1805
+ return r instanceof Promise ? r.then((e) => En(e, t)) : En(r, t);
1727
1806
  };
1728
1807
  });
1729
- function Cn(e, t) {
1808
+ function En(e, t) {
1730
1809
  return e.value === void 0 && (e.value = t.defaultValue), e;
1731
1810
  }
1732
- var wn = /* @__PURE__ */ b("$ZodPrefault", (e, t) => {
1733
- V.init(e, t), e._zod.optin = "optional", j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1734
- }), Tn = /* @__PURE__ */ b("$ZodNonOptional", (e, t) => {
1735
- V.init(e, t), j(e._zod, "values", () => {
1811
+ var Dn = /* @__PURE__ */ x("$ZodPrefault", (e, t) => {
1812
+ H.init(e, t), e._zod.optin = "optional", M(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1813
+ }), On = /* @__PURE__ */ x("$ZodNonOptional", (e, t) => {
1814
+ H.init(e, t), M(e._zod, "values", () => {
1736
1815
  let e = t.innerType._zod.values;
1737
1816
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1738
1817
  }), e._zod.parse = (n, r) => {
1739
1818
  let i = t.innerType._zod.run(n, r);
1740
- return i instanceof Promise ? i.then((t) => En(t, e)) : En(i, e);
1819
+ return i instanceof Promise ? i.then((t) => kn(t, e)) : kn(i, e);
1741
1820
  };
1742
1821
  });
1743
- function En(e, t) {
1822
+ function kn(e, t) {
1744
1823
  return !e.issues.length && e.value === void 0 && e.issues.push({
1745
1824
  code: "invalid_type",
1746
1825
  expected: "nonoptional",
@@ -1748,54 +1827,55 @@ function En(e, t) {
1748
1827
  inst: t
1749
1828
  }), e;
1750
1829
  }
1751
- var Dn = /* @__PURE__ */ b("$ZodCatch", (e, t) => {
1752
- V.init(e, t), j(e._zod, "optin", () => t.innerType._zod.optin), j(e._zod, "optout", () => t.innerType._zod.optout), j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1830
+ var An = /* @__PURE__ */ x("$ZodCatch", (e, t) => {
1831
+ H.init(e, t), e._zod.optin = "optional", M(e._zod, "optout", () => t.innerType._zod.optout), M(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1753
1832
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1754
1833
  let r = t.innerType._zod.run(e, n);
1755
1834
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1756
1835
  ...e,
1757
- error: { issues: r.issues.map((e) => R(e, n, w())) },
1836
+ error: { issues: r.issues.map((e) => z(e, n, T())) },
1758
1837
  input: e.value
1759
- }), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1838
+ }), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1760
1839
  ...e,
1761
- error: { issues: r.issues.map((e) => R(e, n, w())) },
1840
+ error: { issues: r.issues.map((e) => z(e, n, T())) },
1762
1841
  input: e.value
1763
- }), e.issues = []), e);
1842
+ }), e.issues = [], e.fallback = !0), e);
1764
1843
  };
1765
- }), On = /* @__PURE__ */ b("$ZodPipe", (e, t) => {
1766
- V.init(e, t), j(e._zod, "values", () => t.in._zod.values), j(e._zod, "optin", () => t.in._zod.optin), j(e._zod, "optout", () => t.out._zod.optout), j(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1844
+ }), jn = /* @__PURE__ */ x("$ZodPipe", (e, t) => {
1845
+ H.init(e, t), M(e._zod, "values", () => t.in._zod.values), M(e._zod, "optin", () => t.in._zod.optin), M(e._zod, "optout", () => t.out._zod.optout), M(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1767
1846
  if (n.direction === "backward") {
1768
1847
  let r = t.out._zod.run(e, n);
1769
- return r instanceof Promise ? r.then((e) => W(e, t.in, n)) : W(r, t.in, n);
1848
+ return r instanceof Promise ? r.then((e) => Mn(e, t.in, n)) : Mn(r, t.in, n);
1770
1849
  }
1771
1850
  let r = t.in._zod.run(e, n);
1772
- return r instanceof Promise ? r.then((e) => W(e, t.out, n)) : W(r, t.out, n);
1851
+ return r instanceof Promise ? r.then((e) => Mn(e, t.out, n)) : Mn(r, t.out, n);
1773
1852
  };
1774
1853
  });
1775
- function W(e, t, n) {
1854
+ function Mn(e, t, n) {
1776
1855
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1777
1856
  value: e.value,
1778
- issues: e.issues
1857
+ issues: e.issues,
1858
+ fallback: e.fallback
1779
1859
  }, n);
1780
1860
  }
1781
- var kn = /* @__PURE__ */ b("$ZodReadonly", (e, t) => {
1782
- V.init(e, t), j(e._zod, "propValues", () => t.innerType._zod.propValues), j(e._zod, "values", () => t.innerType._zod.values), j(e._zod, "optin", () => t.innerType?._zod?.optin), j(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1861
+ var Nn = /* @__PURE__ */ x("$ZodReadonly", (e, t) => {
1862
+ H.init(e, t), M(e._zod, "propValues", () => t.innerType._zod.propValues), M(e._zod, "values", () => t.innerType._zod.values), M(e._zod, "optin", () => t.innerType?._zod?.optin), M(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1783
1863
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1784
1864
  let r = t.innerType._zod.run(e, n);
1785
- return r instanceof Promise ? r.then(An) : An(r);
1865
+ return r instanceof Promise ? r.then(Pn) : Pn(r);
1786
1866
  };
1787
1867
  });
1788
- function An(e) {
1868
+ function Pn(e) {
1789
1869
  return e.value = Object.freeze(e.value), e;
1790
1870
  }
1791
- var jn = /* @__PURE__ */ b("$ZodCustom", (e, t) => {
1792
- B.init(e, t), V.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1871
+ var Fn = /* @__PURE__ */ x("$ZodCustom", (e, t) => {
1872
+ V.init(e, t), H.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1793
1873
  let r = n.value, i = t.fn(r);
1794
- if (i instanceof Promise) return i.then((t) => Mn(t, n, r, e));
1795
- Mn(i, n, r, e);
1874
+ if (i instanceof Promise) return i.then((t) => In(t, n, r, e));
1875
+ In(i, n, r, e);
1796
1876
  };
1797
1877
  });
1798
- function Mn(e, t, n, r) {
1878
+ function In(e, t, n, r) {
1799
1879
  if (!e) {
1800
1880
  let e = {
1801
1881
  code: "custom",
@@ -1804,12 +1884,12 @@ function Mn(e, t, n, r) {
1804
1884
  path: [...r._zod.def.path ?? []],
1805
1885
  continue: !r._zod.def.abort
1806
1886
  };
1807
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(z(e));
1887
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(B(e));
1808
1888
  }
1809
1889
  }
1810
1890
  //#endregion
1811
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1812
- var Nn, Pn = class {
1891
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1892
+ var Ln, Rn = class {
1813
1893
  constructor() {
1814
1894
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1815
1895
  }
@@ -1841,245 +1921,245 @@ var Nn, Pn = class {
1841
1921
  return this._map.has(e);
1842
1922
  }
1843
1923
  };
1844
- function Fn() {
1845
- return new Pn();
1924
+ function zn() {
1925
+ return new Rn();
1846
1926
  }
1847
- (Nn = globalThis).__zod_globalRegistry ?? (Nn.__zod_globalRegistry = Fn());
1848
- var G = globalThis.__zod_globalRegistry;
1927
+ (Ln = globalThis).__zod_globalRegistry ?? (Ln.__zod_globalRegistry = zn());
1928
+ var W = globalThis.__zod_globalRegistry;
1849
1929
  //#endregion
1850
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1930
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1851
1931
  /* @__NO_SIDE_EFFECTS__ */
1852
- function In(e, t) {
1932
+ function Bn(e, t) {
1853
1933
  return new e({
1854
1934
  type: "string",
1855
- ...I(t)
1935
+ ...L(t)
1856
1936
  });
1857
1937
  }
1858
1938
  /* @__NO_SIDE_EFFECTS__ */
1859
- function Ln(e, t) {
1939
+ function Vn(e, t) {
1860
1940
  return new e({
1861
1941
  type: "string",
1862
1942
  format: "email",
1863
1943
  check: "string_format",
1864
1944
  abort: !1,
1865
- ...I(t)
1945
+ ...L(t)
1866
1946
  });
1867
1947
  }
1868
1948
  /* @__NO_SIDE_EFFECTS__ */
1869
- function Rn(e, t) {
1949
+ function Hn(e, t) {
1870
1950
  return new e({
1871
1951
  type: "string",
1872
1952
  format: "guid",
1873
1953
  check: "string_format",
1874
1954
  abort: !1,
1875
- ...I(t)
1955
+ ...L(t)
1876
1956
  });
1877
1957
  }
1878
1958
  /* @__NO_SIDE_EFFECTS__ */
1879
- function zn(e, t) {
1959
+ function Un(e, t) {
1880
1960
  return new e({
1881
1961
  type: "string",
1882
1962
  format: "uuid",
1883
1963
  check: "string_format",
1884
1964
  abort: !1,
1885
- ...I(t)
1965
+ ...L(t)
1886
1966
  });
1887
1967
  }
1888
1968
  /* @__NO_SIDE_EFFECTS__ */
1889
- function Bn(e, t) {
1969
+ function Wn(e, t) {
1890
1970
  return new e({
1891
1971
  type: "string",
1892
1972
  format: "uuid",
1893
1973
  check: "string_format",
1894
1974
  abort: !1,
1895
1975
  version: "v4",
1896
- ...I(t)
1976
+ ...L(t)
1897
1977
  });
1898
1978
  }
1899
1979
  /* @__NO_SIDE_EFFECTS__ */
1900
- function Vn(e, t) {
1980
+ function Gn(e, t) {
1901
1981
  return new e({
1902
1982
  type: "string",
1903
1983
  format: "uuid",
1904
1984
  check: "string_format",
1905
1985
  abort: !1,
1906
1986
  version: "v6",
1907
- ...I(t)
1987
+ ...L(t)
1908
1988
  });
1909
1989
  }
1910
1990
  /* @__NO_SIDE_EFFECTS__ */
1911
- function Hn(e, t) {
1991
+ function Kn(e, t) {
1912
1992
  return new e({
1913
1993
  type: "string",
1914
1994
  format: "uuid",
1915
1995
  check: "string_format",
1916
1996
  abort: !1,
1917
1997
  version: "v7",
1918
- ...I(t)
1998
+ ...L(t)
1919
1999
  });
1920
2000
  }
1921
2001
  /* @__NO_SIDE_EFFECTS__ */
1922
- function Un(e, t) {
2002
+ function qn(e, t) {
1923
2003
  return new e({
1924
2004
  type: "string",
1925
2005
  format: "url",
1926
2006
  check: "string_format",
1927
2007
  abort: !1,
1928
- ...I(t)
2008
+ ...L(t)
1929
2009
  });
1930
2010
  }
1931
2011
  /* @__NO_SIDE_EFFECTS__ */
1932
- function Wn(e, t) {
2012
+ function Jn(e, t) {
1933
2013
  return new e({
1934
2014
  type: "string",
1935
2015
  format: "emoji",
1936
2016
  check: "string_format",
1937
2017
  abort: !1,
1938
- ...I(t)
2018
+ ...L(t)
1939
2019
  });
1940
2020
  }
1941
2021
  /* @__NO_SIDE_EFFECTS__ */
1942
- function Gn(e, t) {
2022
+ function Yn(e, t) {
1943
2023
  return new e({
1944
2024
  type: "string",
1945
2025
  format: "nanoid",
1946
2026
  check: "string_format",
1947
2027
  abort: !1,
1948
- ...I(t)
2028
+ ...L(t)
1949
2029
  });
1950
2030
  }
1951
2031
  /* @__NO_SIDE_EFFECTS__ */
1952
- function Kn(e, t) {
2032
+ function Xn(e, t) {
1953
2033
  return new e({
1954
2034
  type: "string",
1955
2035
  format: "cuid",
1956
2036
  check: "string_format",
1957
2037
  abort: !1,
1958
- ...I(t)
2038
+ ...L(t)
1959
2039
  });
1960
2040
  }
1961
2041
  /* @__NO_SIDE_EFFECTS__ */
1962
- function qn(e, t) {
2042
+ function Zn(e, t) {
1963
2043
  return new e({
1964
2044
  type: "string",
1965
2045
  format: "cuid2",
1966
2046
  check: "string_format",
1967
2047
  abort: !1,
1968
- ...I(t)
2048
+ ...L(t)
1969
2049
  });
1970
2050
  }
1971
2051
  /* @__NO_SIDE_EFFECTS__ */
1972
- function Jn(e, t) {
2052
+ function Qn(e, t) {
1973
2053
  return new e({
1974
2054
  type: "string",
1975
2055
  format: "ulid",
1976
2056
  check: "string_format",
1977
2057
  abort: !1,
1978
- ...I(t)
2058
+ ...L(t)
1979
2059
  });
1980
2060
  }
1981
2061
  /* @__NO_SIDE_EFFECTS__ */
1982
- function Yn(e, t) {
2062
+ function $n(e, t) {
1983
2063
  return new e({
1984
2064
  type: "string",
1985
2065
  format: "xid",
1986
2066
  check: "string_format",
1987
2067
  abort: !1,
1988
- ...I(t)
2068
+ ...L(t)
1989
2069
  });
1990
2070
  }
1991
2071
  /* @__NO_SIDE_EFFECTS__ */
1992
- function Xn(e, t) {
2072
+ function er(e, t) {
1993
2073
  return new e({
1994
2074
  type: "string",
1995
2075
  format: "ksuid",
1996
2076
  check: "string_format",
1997
2077
  abort: !1,
1998
- ...I(t)
2078
+ ...L(t)
1999
2079
  });
2000
2080
  }
2001
2081
  /* @__NO_SIDE_EFFECTS__ */
2002
- function Zn(e, t) {
2082
+ function tr(e, t) {
2003
2083
  return new e({
2004
2084
  type: "string",
2005
2085
  format: "ipv4",
2006
2086
  check: "string_format",
2007
2087
  abort: !1,
2008
- ...I(t)
2088
+ ...L(t)
2009
2089
  });
2010
2090
  }
2011
2091
  /* @__NO_SIDE_EFFECTS__ */
2012
- function Qn(e, t) {
2092
+ function nr(e, t) {
2013
2093
  return new e({
2014
2094
  type: "string",
2015
2095
  format: "ipv6",
2016
2096
  check: "string_format",
2017
2097
  abort: !1,
2018
- ...I(t)
2098
+ ...L(t)
2019
2099
  });
2020
2100
  }
2021
2101
  /* @__NO_SIDE_EFFECTS__ */
2022
- function $n(e, t) {
2102
+ function rr(e, t) {
2023
2103
  return new e({
2024
2104
  type: "string",
2025
2105
  format: "cidrv4",
2026
2106
  check: "string_format",
2027
2107
  abort: !1,
2028
- ...I(t)
2108
+ ...L(t)
2029
2109
  });
2030
2110
  }
2031
2111
  /* @__NO_SIDE_EFFECTS__ */
2032
- function er(e, t) {
2112
+ function ir(e, t) {
2033
2113
  return new e({
2034
2114
  type: "string",
2035
2115
  format: "cidrv6",
2036
2116
  check: "string_format",
2037
2117
  abort: !1,
2038
- ...I(t)
2118
+ ...L(t)
2039
2119
  });
2040
2120
  }
2041
2121
  /* @__NO_SIDE_EFFECTS__ */
2042
- function tr(e, t) {
2122
+ function ar(e, t) {
2043
2123
  return new e({
2044
2124
  type: "string",
2045
2125
  format: "base64",
2046
2126
  check: "string_format",
2047
2127
  abort: !1,
2048
- ...I(t)
2128
+ ...L(t)
2049
2129
  });
2050
2130
  }
2051
2131
  /* @__NO_SIDE_EFFECTS__ */
2052
- function nr(e, t) {
2132
+ function or(e, t) {
2053
2133
  return new e({
2054
2134
  type: "string",
2055
2135
  format: "base64url",
2056
2136
  check: "string_format",
2057
2137
  abort: !1,
2058
- ...I(t)
2138
+ ...L(t)
2059
2139
  });
2060
2140
  }
2061
2141
  /* @__NO_SIDE_EFFECTS__ */
2062
- function rr(e, t) {
2142
+ function sr(e, t) {
2063
2143
  return new e({
2064
2144
  type: "string",
2065
2145
  format: "e164",
2066
2146
  check: "string_format",
2067
2147
  abort: !1,
2068
- ...I(t)
2148
+ ...L(t)
2069
2149
  });
2070
2150
  }
2071
2151
  /* @__NO_SIDE_EFFECTS__ */
2072
- function ir(e, t) {
2152
+ function cr(e, t) {
2073
2153
  return new e({
2074
2154
  type: "string",
2075
2155
  format: "jwt",
2076
2156
  check: "string_format",
2077
2157
  abort: !1,
2078
- ...I(t)
2158
+ ...L(t)
2079
2159
  });
2080
2160
  }
2081
2161
  /* @__NO_SIDE_EFFECTS__ */
2082
- function ar(e, t) {
2162
+ function lr(e, t) {
2083
2163
  return new e({
2084
2164
  type: "string",
2085
2165
  format: "datetime",
@@ -2087,194 +2167,194 @@ function ar(e, t) {
2087
2167
  offset: !1,
2088
2168
  local: !1,
2089
2169
  precision: null,
2090
- ...I(t)
2170
+ ...L(t)
2091
2171
  });
2092
2172
  }
2093
2173
  /* @__NO_SIDE_EFFECTS__ */
2094
- function or(e, t) {
2174
+ function ur(e, t) {
2095
2175
  return new e({
2096
2176
  type: "string",
2097
2177
  format: "date",
2098
2178
  check: "string_format",
2099
- ...I(t)
2179
+ ...L(t)
2100
2180
  });
2101
2181
  }
2102
2182
  /* @__NO_SIDE_EFFECTS__ */
2103
- function sr(e, t) {
2183
+ function dr(e, t) {
2104
2184
  return new e({
2105
2185
  type: "string",
2106
2186
  format: "time",
2107
2187
  check: "string_format",
2108
2188
  precision: null,
2109
- ...I(t)
2189
+ ...L(t)
2110
2190
  });
2111
2191
  }
2112
2192
  /* @__NO_SIDE_EFFECTS__ */
2113
- function cr(e, t) {
2193
+ function fr(e, t) {
2114
2194
  return new e({
2115
2195
  type: "string",
2116
2196
  format: "duration",
2117
2197
  check: "string_format",
2118
- ...I(t)
2198
+ ...L(t)
2119
2199
  });
2120
2200
  }
2121
2201
  /* @__NO_SIDE_EFFECTS__ */
2122
- function lr(e) {
2202
+ function pr(e) {
2123
2203
  return new e({ type: "unknown" });
2124
2204
  }
2125
2205
  /* @__NO_SIDE_EFFECTS__ */
2126
- function ur(e, t) {
2206
+ function mr(e, t) {
2127
2207
  return new e({
2128
2208
  type: "never",
2129
- ...I(t)
2209
+ ...L(t)
2130
2210
  });
2131
2211
  }
2132
2212
  /* @__NO_SIDE_EFFECTS__ */
2133
- function dr(e, t) {
2134
- return new gt({
2213
+ function hr(e, t) {
2214
+ return new vt({
2135
2215
  check: "max_length",
2136
- ...I(t),
2216
+ ...L(t),
2137
2217
  maximum: e
2138
2218
  });
2139
2219
  }
2140
2220
  /* @__NO_SIDE_EFFECTS__ */
2141
- function fr(e, t) {
2142
- return new _t({
2221
+ function G(e, t) {
2222
+ return new yt({
2143
2223
  check: "min_length",
2144
- ...I(t),
2224
+ ...L(t),
2145
2225
  minimum: e
2146
2226
  });
2147
2227
  }
2148
2228
  /* @__NO_SIDE_EFFECTS__ */
2149
- function pr(e, t) {
2150
- return new vt({
2229
+ function gr(e, t) {
2230
+ return new bt({
2151
2231
  check: "length_equals",
2152
- ...I(t),
2232
+ ...L(t),
2153
2233
  length: e
2154
2234
  });
2155
2235
  }
2156
2236
  /* @__NO_SIDE_EFFECTS__ */
2157
- function mr(e, t) {
2158
- return new bt({
2237
+ function _r(e, t) {
2238
+ return new St({
2159
2239
  check: "string_format",
2160
2240
  format: "regex",
2161
- ...I(t),
2241
+ ...L(t),
2162
2242
  pattern: e
2163
2243
  });
2164
2244
  }
2165
2245
  /* @__NO_SIDE_EFFECTS__ */
2166
- function hr(e) {
2167
- return new xt({
2246
+ function vr(e) {
2247
+ return new Ct({
2168
2248
  check: "string_format",
2169
2249
  format: "lowercase",
2170
- ...I(e)
2250
+ ...L(e)
2171
2251
  });
2172
2252
  }
2173
2253
  /* @__NO_SIDE_EFFECTS__ */
2174
- function gr(e) {
2175
- return new St({
2254
+ function yr(e) {
2255
+ return new wt({
2176
2256
  check: "string_format",
2177
2257
  format: "uppercase",
2178
- ...I(e)
2258
+ ...L(e)
2179
2259
  });
2180
2260
  }
2181
2261
  /* @__NO_SIDE_EFFECTS__ */
2182
- function _r(e, t) {
2183
- return new Ct({
2262
+ function br(e, t) {
2263
+ return new Tt({
2184
2264
  check: "string_format",
2185
2265
  format: "includes",
2186
- ...I(t),
2266
+ ...L(t),
2187
2267
  includes: e
2188
2268
  });
2189
2269
  }
2190
2270
  /* @__NO_SIDE_EFFECTS__ */
2191
- function vr(e, t) {
2192
- return new wt({
2271
+ function xr(e, t) {
2272
+ return new Et({
2193
2273
  check: "string_format",
2194
2274
  format: "starts_with",
2195
- ...I(t),
2275
+ ...L(t),
2196
2276
  prefix: e
2197
2277
  });
2198
2278
  }
2199
2279
  /* @__NO_SIDE_EFFECTS__ */
2200
- function yr(e, t) {
2201
- return new Tt({
2280
+ function Sr(e, t) {
2281
+ return new Dt({
2202
2282
  check: "string_format",
2203
2283
  format: "ends_with",
2204
- ...I(t),
2284
+ ...L(t),
2205
2285
  suffix: e
2206
2286
  });
2207
2287
  }
2208
2288
  /* @__NO_SIDE_EFFECTS__ */
2209
2289
  function K(e) {
2210
- return new Et({
2290
+ return new Ot({
2211
2291
  check: "overwrite",
2212
2292
  tx: e
2213
2293
  });
2214
2294
  }
2215
2295
  /* @__NO_SIDE_EFFECTS__ */
2216
- function br(e) {
2296
+ function Cr(e) {
2217
2297
  return /* @__PURE__ */ K((t) => t.normalize(e));
2218
2298
  }
2219
2299
  /* @__NO_SIDE_EFFECTS__ */
2220
- function xr() {
2300
+ function wr() {
2221
2301
  return /* @__PURE__ */ K((e) => e.trim());
2222
2302
  }
2223
2303
  /* @__NO_SIDE_EFFECTS__ */
2224
- function Sr() {
2304
+ function Tr() {
2225
2305
  return /* @__PURE__ */ K((e) => e.toLowerCase());
2226
2306
  }
2227
2307
  /* @__NO_SIDE_EFFECTS__ */
2228
- function Cr() {
2308
+ function Er() {
2229
2309
  return /* @__PURE__ */ K((e) => e.toUpperCase());
2230
2310
  }
2231
2311
  /* @__NO_SIDE_EFFECTS__ */
2232
- function wr() {
2312
+ function Dr() {
2233
2313
  return /* @__PURE__ */ K((e) => oe(e));
2234
2314
  }
2235
2315
  /* @__NO_SIDE_EFFECTS__ */
2236
- function Tr(e, t, n) {
2316
+ function Or(e, t, n) {
2237
2317
  return new e({
2238
2318
  type: "array",
2239
2319
  element: t,
2240
- ...I(n)
2320
+ ...L(n)
2241
2321
  });
2242
2322
  }
2243
2323
  /* @__NO_SIDE_EFFECTS__ */
2244
- function Er(e, t, n) {
2324
+ function kr(e, t, n) {
2245
2325
  return new e({
2246
2326
  type: "custom",
2247
2327
  check: "custom",
2248
2328
  fn: t,
2249
- ...I(n)
2329
+ ...L(n)
2250
2330
  });
2251
2331
  }
2252
2332
  /* @__NO_SIDE_EFFECTS__ */
2253
- function Dr(e) {
2254
- let t = /* @__PURE__ */ Or((n) => (n.addIssue = (e) => {
2255
- if (typeof e == "string") n.issues.push(z(e, n.value, t._zod.def));
2333
+ function Ar(e, t) {
2334
+ let n = /* @__PURE__ */ jr((t) => (t.addIssue = (e) => {
2335
+ if (typeof e == "string") t.issues.push(B(e, t.value, n._zod.def));
2256
2336
  else {
2257
2337
  let r = e;
2258
- r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(z(r));
2338
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(B(r));
2259
2339
  }
2260
- }, e(n.value, n)));
2261
- return t;
2340
+ }, e(t.value, t)), t);
2341
+ return n;
2262
2342
  }
2263
2343
  /* @__NO_SIDE_EFFECTS__ */
2264
- function Or(e, t) {
2265
- let n = new B({
2344
+ function jr(e, t) {
2345
+ let n = new V({
2266
2346
  check: "custom",
2267
- ...I(t)
2347
+ ...L(t)
2268
2348
  });
2269
2349
  return n._zod.check = e, n;
2270
2350
  }
2271
2351
  //#endregion
2272
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
2273
- function kr(e) {
2352
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
2353
+ function Mr(e) {
2274
2354
  let t = e?.target ?? "draft-2020-12";
2275
2355
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2276
2356
  processors: e.processors ?? {},
2277
- metadataRegistry: e?.metadata ?? G,
2357
+ metadataRegistry: e?.metadata ?? W,
2278
2358
  target: t,
2279
2359
  unrepresentable: e?.unrepresentable ?? "throw",
2280
2360
  override: e?.override ?? (() => {}),
@@ -2318,9 +2398,9 @@ function q(e, t, n = {
2318
2398
  a && (o.ref ||= a, q(a, t, r), t.seen.get(a).isParent = !0);
2319
2399
  }
2320
2400
  let c = t.metadataRegistry.get(e);
2321
- return c && Object.assign(o.schema, c), t.io === "input" && J(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && o.schema._prefault && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2401
+ return c && Object.assign(o.schema, c), t.io === "input" && J(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2322
2402
  }
2323
- function Ar(e, t) {
2403
+ function Nr(e, t) {
2324
2404
  let n = e.seen.get(t);
2325
2405
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2326
2406
  let r = /* @__PURE__ */ new Map();
@@ -2390,7 +2470,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2390
2470
  }
2391
2471
  }
2392
2472
  }
2393
- function jr(e, t) {
2473
+ function Pr(e, t) {
2394
2474
  let n = e.seen.get(t);
2395
2475
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2396
2476
  let r = (t) => {
@@ -2423,20 +2503,22 @@ function jr(e, t) {
2423
2503
  i.$id = e.external.uri(n);
2424
2504
  }
2425
2505
  Object.assign(i, n.def ?? n.schema);
2426
- let a = e.external?.defs ?? {};
2506
+ let a = e.metadataRegistry.get(t)?.id;
2507
+ a !== void 0 && i.id === a && delete i.id;
2508
+ let o = e.external?.defs ?? {};
2427
2509
  for (let t of e.seen.entries()) {
2428
2510
  let e = t[1];
2429
- e.def && e.defId && (a[e.defId] = e.def);
2511
+ e.def && e.defId && (e.def.id === e.defId && delete e.def.id, o[e.defId] = e.def);
2430
2512
  }
2431
- e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? i.$defs = a : i.definitions = a);
2513
+ e.external || Object.keys(o).length > 0 && (e.target === "draft-2020-12" ? i.$defs = o : i.definitions = o);
2432
2514
  try {
2433
2515
  let n = JSON.parse(JSON.stringify(i));
2434
2516
  return Object.defineProperty(n, "~standard", {
2435
2517
  value: {
2436
2518
  ...t["~standard"],
2437
2519
  jsonSchema: {
2438
- input: Nr(t, "input", e.processors),
2439
- output: Nr(t, "output", e.processors)
2520
+ input: Ir(t, "input", e.processors),
2521
+ output: Ir(t, "output", e.processors)
2440
2522
  }
2441
2523
  },
2442
2524
  enumerable: !1,
@@ -2458,7 +2540,7 @@ function J(e, t) {
2458
2540
  if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return J(r.innerType, n);
2459
2541
  if (r.type === "intersection") return J(r.left, n) || J(r.right, n);
2460
2542
  if (r.type === "record" || r.type === "map") return J(r.keyType, n) || J(r.valueType, n);
2461
- if (r.type === "pipe") return J(r.in, n) || J(r.out, n);
2543
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : J(r.in, n) || J(r.out, n);
2462
2544
  if (r.type === "object") {
2463
2545
  for (let e in r.shape) if (J(r.shape[e], n)) return !0;
2464
2546
  return !1;
@@ -2473,53 +2555,53 @@ function J(e, t) {
2473
2555
  }
2474
2556
  return !1;
2475
2557
  }
2476
- var Mr = (e, t = {}) => (n) => {
2477
- let r = kr({
2558
+ var Fr = (e, t = {}) => (n) => {
2559
+ let r = Mr({
2478
2560
  ...n,
2479
2561
  processors: t
2480
2562
  });
2481
- return q(e, r), Ar(r, e), jr(r, e);
2482
- }, Nr = (e, t, n = {}) => (r) => {
2483
- let { libraryOptions: i, target: a } = r ?? {}, o = kr({
2563
+ return q(e, r), Nr(r, e), Pr(r, e);
2564
+ }, Ir = (e, t, n = {}) => (r) => {
2565
+ let { libraryOptions: i, target: a } = r ?? {}, o = Mr({
2484
2566
  ...i ?? {},
2485
2567
  target: a,
2486
2568
  io: t,
2487
2569
  processors: n
2488
2570
  });
2489
- return q(e, o), Ar(o, e), jr(o, e);
2490
- }, Pr = {
2571
+ return q(e, o), Nr(o, e), Pr(o, e);
2572
+ }, Lr = {
2491
2573
  guid: "uuid",
2492
2574
  url: "uri",
2493
2575
  datetime: "date-time",
2494
2576
  json_string: "json-string",
2495
2577
  regex: ""
2496
- }, Fr = (e, t, n, r) => {
2578
+ }, Rr = (e, t, n, r) => {
2497
2579
  let i = n;
2498
2580
  i.type = "string";
2499
2581
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
2500
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Pr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2582
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Lr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2501
2583
  let e = [...c];
2502
2584
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2503
2585
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
2504
2586
  pattern: e.source
2505
2587
  }))]);
2506
2588
  }
2507
- }, Ir = (e, t, n, r) => {
2589
+ }, zr = (e, t, n, r) => {
2508
2590
  n.not = {};
2509
- }, Lr = (e, t, n, r) => {
2510
- let i = e._zod.def, a = T(i.entries);
2591
+ }, Br = (e, t, n, r) => {
2592
+ let i = e._zod.def, a = E(i.entries);
2511
2593
  a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
2512
- }, Rr = (e, t, n, r) => {
2594
+ }, Vr = (e, t, n, r) => {
2513
2595
  if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
2514
- }, zr = (e, t, n, r) => {
2596
+ }, Hr = (e, t, n, r) => {
2515
2597
  if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2516
- }, Br = (e, t, n, r) => {
2598
+ }, Ur = (e, t, n, r) => {
2517
2599
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2518
2600
  typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = q(a.element, t, {
2519
2601
  ...r,
2520
2602
  path: [...r.path, "items"]
2521
2603
  });
2522
- }, Vr = (e, t, n, r) => {
2604
+ }, Wr = (e, t, n, r) => {
2523
2605
  let i = n, a = e._zod.def;
2524
2606
  i.type = "object", i.properties = {};
2525
2607
  let o = a.shape;
@@ -2539,7 +2621,7 @@ var Mr = (e, t = {}) => (n) => {
2539
2621
  ...r,
2540
2622
  path: [...r.path, "additionalProperties"]
2541
2623
  })) : t.io === "output" && (i.additionalProperties = !1);
2542
- }, Hr = (e, t, n, r) => {
2624
+ }, Gr = (e, t, n, r) => {
2543
2625
  let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => q(e, t, {
2544
2626
  ...r,
2545
2627
  path: [
@@ -2549,7 +2631,7 @@ var Mr = (e, t = {}) => (n) => {
2549
2631
  ]
2550
2632
  }));
2551
2633
  a ? n.oneOf = o : n.anyOf = o;
2552
- }, Ur = (e, t, n, r) => {
2634
+ }, Kr = (e, t, n, r) => {
2553
2635
  let i = e._zod.def, a = q(i.left, t, {
2554
2636
  ...r,
2555
2637
  path: [
@@ -2566,25 +2648,25 @@ var Mr = (e, t = {}) => (n) => {
2566
2648
  ]
2567
2649
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2568
2650
  n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2569
- }, Wr = (e, t, n, r) => {
2651
+ }, qr = (e, t, n, r) => {
2570
2652
  let i = e._zod.def, a = q(i.innerType, t, r), o = t.seen.get(e);
2571
2653
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2572
- }, Gr = (e, t, n, r) => {
2654
+ }, Jr = (e, t, n, r) => {
2573
2655
  let i = e._zod.def;
2574
2656
  q(i.innerType, t, r);
2575
2657
  let a = t.seen.get(e);
2576
2658
  a.ref = i.innerType;
2577
- }, Kr = (e, t, n, r) => {
2659
+ }, Yr = (e, t, n, r) => {
2578
2660
  let i = e._zod.def;
2579
2661
  q(i.innerType, t, r);
2580
2662
  let a = t.seen.get(e);
2581
2663
  a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2582
- }, qr = (e, t, n, r) => {
2664
+ }, Xr = (e, t, n, r) => {
2583
2665
  let i = e._zod.def;
2584
2666
  q(i.innerType, t, r);
2585
2667
  let a = t.seen.get(e);
2586
2668
  a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2587
- }, Jr = (e, t, n, r) => {
2669
+ }, Zr = (e, t, n, r) => {
2588
2670
  let i = e._zod.def;
2589
2671
  q(i.innerType, t, r);
2590
2672
  let a = t.seen.get(e);
@@ -2596,279 +2678,487 @@ var Mr = (e, t = {}) => (n) => {
2596
2678
  throw Error("Dynamic catch values are not supported in JSON Schema");
2597
2679
  }
2598
2680
  n.default = o;
2599
- }, Yr = (e, t, n, r) => {
2600
- let i = e._zod.def, a = t.io === "input" ? i.in._zod.def.type === "transform" ? i.out : i.in : i.out;
2601
- q(a, t, r);
2602
- let o = t.seen.get(e);
2603
- o.ref = a;
2604
- }, Xr = (e, t, n, r) => {
2681
+ }, Qr = (e, t, n, r) => {
2682
+ let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
2683
+ q(o, t, r);
2684
+ let s = t.seen.get(e);
2685
+ s.ref = o;
2686
+ }, $r = (e, t, n, r) => {
2605
2687
  let i = e._zod.def;
2606
2688
  q(i.innerType, t, r);
2607
2689
  let a = t.seen.get(e);
2608
2690
  a.ref = i.innerType, n.readOnly = !0;
2609
- }, Zr = (e, t, n, r) => {
2691
+ }, ei = (e, t, n, r) => {
2610
2692
  let i = e._zod.def;
2611
2693
  q(i.innerType, t, r);
2612
2694
  let a = t.seen.get(e);
2613
2695
  a.ref = i.innerType;
2614
- }, Qr = /* @__PURE__ */ b("ZodISODateTime", (e, t) => {
2615
- Vt.init(e, t), Q.init(e, t);
2696
+ }, ti = /* @__PURE__ */ x("ZodISODateTime", (e, t) => {
2697
+ Ut.init(e, t), Q.init(e, t);
2616
2698
  });
2617
- function $r(e) {
2618
- return /* @__PURE__ */ ar(Qr, e);
2699
+ function ni(e) {
2700
+ return /* @__PURE__ */ lr(ti, e);
2619
2701
  }
2620
- var ei = /* @__PURE__ */ b("ZodISODate", (e, t) => {
2621
- Ht.init(e, t), Q.init(e, t);
2702
+ var ri = /* @__PURE__ */ x("ZodISODate", (e, t) => {
2703
+ Wt.init(e, t), Q.init(e, t);
2622
2704
  });
2623
- function ti(e) {
2624
- return /* @__PURE__ */ or(ei, e);
2705
+ function ii(e) {
2706
+ return /* @__PURE__ */ ur(ri, e);
2625
2707
  }
2626
- var ni = /* @__PURE__ */ b("ZodISOTime", (e, t) => {
2627
- Ut.init(e, t), Q.init(e, t);
2708
+ var ai = /* @__PURE__ */ x("ZodISOTime", (e, t) => {
2709
+ Gt.init(e, t), Q.init(e, t);
2628
2710
  });
2629
- function ri(e) {
2630
- return /* @__PURE__ */ sr(ni, e);
2711
+ function oi(e) {
2712
+ return /* @__PURE__ */ dr(ai, e);
2631
2713
  }
2632
- var ii = /* @__PURE__ */ b("ZodISODuration", (e, t) => {
2633
- Wt.init(e, t), Q.init(e, t);
2714
+ var si = /* @__PURE__ */ x("ZodISODuration", (e, t) => {
2715
+ Kt.init(e, t), Q.init(e, t);
2634
2716
  });
2635
- function ai(e) {
2636
- return /* @__PURE__ */ cr(ii, e);
2717
+ function ci(e) {
2718
+ return /* @__PURE__ */ fr(si, e);
2637
2719
  }
2638
- //#endregion
2639
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
2640
- var oi = (e, t) => {
2641
- Te.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2642
- format: { value: (t) => Oe(e, t) },
2643
- flatten: { value: (t) => De(e, t) },
2720
+ var Y = /* @__PURE__ */ x("ZodError", (e, t) => {
2721
+ Ee.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2722
+ format: { value: (t) => ke(e, t) },
2723
+ flatten: { value: (t) => Oe(e, t) },
2644
2724
  addIssue: { value: (t) => {
2645
- e.issues.push(t), e.message = JSON.stringify(e.issues, E, 2);
2725
+ e.issues.push(t), e.message = JSON.stringify(e.issues, D, 2);
2646
2726
  } },
2647
2727
  addIssues: { value: (t) => {
2648
- e.issues.push(...t), e.message = JSON.stringify(e.issues, E, 2);
2728
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, D, 2);
2649
2729
  } },
2650
2730
  isEmpty: { get() {
2651
2731
  return e.issues.length === 0;
2652
2732
  } }
2653
2733
  });
2654
- };
2655
- b("ZodError", oi);
2656
- var Y = b("ZodError", oi, { Parent: Error }), si = /* @__PURE__ */ ke(Y), ci = /* @__PURE__ */ Ae(Y), li = /* @__PURE__ */ je(Y), ui = /* @__PURE__ */ Ne(Y), di = /* @__PURE__ */ Fe(Y), fi = /* @__PURE__ */ Ie(Y), pi = /* @__PURE__ */ Le(Y), mi = /* @__PURE__ */ Re(Y), hi = /* @__PURE__ */ ze(Y), gi = /* @__PURE__ */ Be(Y), _i = /* @__PURE__ */ Ve(Y), vi = /* @__PURE__ */ He(Y), X = /* @__PURE__ */ b("ZodType", (e, t) => (V.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2657
- input: Nr(e, "input"),
2658
- output: Nr(e, "output")
2659
- } }), e.toJSONSchema = Mr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(N(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
2660
- check: e,
2661
- def: { check: "custom" },
2662
- onattach: []
2663
- } } : e)] }), { parent: !0 }), e.with = e.check, e.clone = (t, n) => F(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => si(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => li(e, t, n), e.parseAsync = async (t, n) => ci(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ui(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => di(e, t, n), e.decode = (t, n) => fi(e, t, n), e.encodeAsync = async (t, n) => pi(e, t, n), e.decodeAsync = async (t, n) => mi(e, t, n), e.safeEncode = (t, n) => hi(e, t, n), e.safeDecode = (t, n) => gi(e, t, n), e.safeEncodeAsync = async (t, n) => _i(e, t, n), e.safeDecodeAsync = async (t, n) => vi(e, t, n), e.refine = (t, n) => e.check(xa(t, n)), e.superRefine = (t) => e.check(Sa(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ K(t)), e.optional = () => ra(e), e.exactOptional = () => aa(e), e.nullable = () => sa(e), e.nullish = () => ra(sa(e)), e.nonoptional = (t) => pa(e, t), e.array = () => Gi(e), e.or = (t) => Yi([e, t]), e.and = (t) => Zi(e, t), e.transform = (t) => _a(e, ta(t)), e.default = (t) => la(e, t), e.prefault = (t) => da(e, t), e.catch = (t) => ha(e, t), e.pipe = (t) => _a(e, t), e.readonly = () => ya(e), e.describe = (t) => {
2664
- let n = e.clone();
2665
- return G.add(n, { description: t }), n;
2666
- }, Object.defineProperty(e, "description", {
2734
+ }, { Parent: Error }), li = /* @__PURE__ */ Ae(Y), ui = /* @__PURE__ */ je(Y), di = /* @__PURE__ */ Me(Y), fi = /* @__PURE__ */ Pe(Y), pi = /* @__PURE__ */ Ie(Y), mi = /* @__PURE__ */ Le(Y), hi = /* @__PURE__ */ Re(Y), gi = /* @__PURE__ */ ze(Y), _i = /* @__PURE__ */ Be(Y), vi = /* @__PURE__ */ Ve(Y), yi = /* @__PURE__ */ He(Y), bi = /* @__PURE__ */ Ue(Y), xi = /* @__PURE__ */ new WeakMap();
2735
+ function Si(e, t, n) {
2736
+ let r = Object.getPrototypeOf(e), i = xi.get(r);
2737
+ if (i || (i = /* @__PURE__ */ new Set(), xi.set(r, i)), !i.has(t)) {
2738
+ i.add(t);
2739
+ for (let e in n) {
2740
+ let t = n[e];
2741
+ Object.defineProperty(r, e, {
2742
+ configurable: !0,
2743
+ enumerable: !1,
2744
+ get() {
2745
+ let n = t.bind(this);
2746
+ return Object.defineProperty(this, e, {
2747
+ configurable: !0,
2748
+ writable: !0,
2749
+ enumerable: !0,
2750
+ value: n
2751
+ }), n;
2752
+ },
2753
+ set(t) {
2754
+ Object.defineProperty(this, e, {
2755
+ configurable: !0,
2756
+ writable: !0,
2757
+ enumerable: !0,
2758
+ value: t
2759
+ });
2760
+ }
2761
+ });
2762
+ }
2763
+ }
2764
+ }
2765
+ var X = /* @__PURE__ */ x("ZodType", (e, t) => (H.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2766
+ input: Ir(e, "input"),
2767
+ output: Ir(e, "output")
2768
+ } }), e.toJSONSchema = Fr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => li(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => di(e, t, n), e.parseAsync = async (t, n) => ui(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => fi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => pi(e, t, n), e.decode = (t, n) => mi(e, t, n), e.encodeAsync = async (t, n) => hi(e, t, n), e.decodeAsync = async (t, n) => gi(e, t, n), e.safeEncode = (t, n) => _i(e, t, n), e.safeDecode = (t, n) => vi(e, t, n), e.safeEncodeAsync = async (t, n) => yi(e, t, n), e.safeDecodeAsync = async (t, n) => bi(e, t, n), Si(e, "ZodType", {
2769
+ check(...e) {
2770
+ let t = this.def;
2771
+ return this.clone(P(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
2772
+ check: e,
2773
+ def: { check: "custom" },
2774
+ onattach: []
2775
+ } } : e)] }), { parent: !0 });
2776
+ },
2777
+ with(...e) {
2778
+ return this.check(...e);
2779
+ },
2780
+ clone(e, t) {
2781
+ return I(this, e, t);
2782
+ },
2783
+ brand() {
2784
+ return this;
2785
+ },
2786
+ register(e, t) {
2787
+ return e.add(this, t), this;
2788
+ },
2789
+ refine(e, t) {
2790
+ return this.check(Ta(e, t));
2791
+ },
2792
+ superRefine(e, t) {
2793
+ return this.check(Ea(e, t));
2794
+ },
2795
+ overwrite(e) {
2796
+ return this.check(/* @__PURE__ */ K(e));
2797
+ },
2798
+ optional() {
2799
+ return sa(this);
2800
+ },
2801
+ exactOptional() {
2802
+ return la(this);
2803
+ },
2804
+ nullable() {
2805
+ return da(this);
2806
+ },
2807
+ nullish() {
2808
+ return sa(da(this));
2809
+ },
2810
+ nonoptional(e) {
2811
+ return _a(this, e);
2812
+ },
2813
+ array() {
2814
+ return Yi(this);
2815
+ },
2816
+ or(e) {
2817
+ return $i([this, e]);
2818
+ },
2819
+ and(e) {
2820
+ return ta(this, e);
2821
+ },
2822
+ transform(e) {
2823
+ return xa(this, aa(e));
2824
+ },
2825
+ default(e) {
2826
+ return pa(this, e);
2827
+ },
2828
+ prefault(e) {
2829
+ return ha(this, e);
2830
+ },
2831
+ catch(e) {
2832
+ return ya(this, e);
2833
+ },
2834
+ pipe(e) {
2835
+ return xa(this, e);
2836
+ },
2837
+ readonly() {
2838
+ return Ca(this);
2839
+ },
2840
+ describe(e) {
2841
+ let t = this.clone();
2842
+ return W.add(t, { description: e }), t;
2843
+ },
2844
+ meta(...e) {
2845
+ if (e.length === 0) return W.get(this);
2846
+ let t = this.clone();
2847
+ return W.add(t, e[0]), t;
2848
+ },
2849
+ isOptional() {
2850
+ return this.safeParse(void 0).success;
2851
+ },
2852
+ isNullable() {
2853
+ return this.safeParse(null).success;
2854
+ },
2855
+ apply(e) {
2856
+ return e(this);
2857
+ }
2858
+ }), Object.defineProperty(e, "description", {
2667
2859
  get() {
2668
- return G.get(e)?.description;
2860
+ return W.get(e)?.description;
2669
2861
  },
2670
2862
  configurable: !0
2671
- }), e.meta = (...t) => {
2672
- if (t.length === 0) return G.get(e);
2673
- let n = e.clone();
2674
- return G.add(n, t[0]), n;
2675
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), yi = /* @__PURE__ */ b("_ZodString", (e, t) => {
2676
- kt.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fr(e, t, n, r);
2863
+ }), e)), Ci = /* @__PURE__ */ x("_ZodString", (e, t) => {
2864
+ jt.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Rr(e, t, n, r);
2677
2865
  let n = e._zod.bag;
2678
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(/* @__PURE__ */ mr(...t)), e.includes = (...t) => e.check(/* @__PURE__ */ _r(...t)), e.startsWith = (...t) => e.check(/* @__PURE__ */ vr(...t)), e.endsWith = (...t) => e.check(/* @__PURE__ */ yr(...t)), e.min = (...t) => e.check(/* @__PURE__ */ fr(...t)), e.max = (...t) => e.check(/* @__PURE__ */ dr(...t)), e.length = (...t) => e.check(/* @__PURE__ */ pr(...t)), e.nonempty = (...t) => e.check(/* @__PURE__ */ fr(1, ...t)), e.lowercase = (t) => e.check(/* @__PURE__ */ hr(t)), e.uppercase = (t) => e.check(/* @__PURE__ */ gr(t)), e.trim = () => e.check(/* @__PURE__ */ xr()), e.normalize = (...t) => e.check(/* @__PURE__ */ br(...t)), e.toLowerCase = () => e.check(/* @__PURE__ */ Sr()), e.toUpperCase = () => e.check(/* @__PURE__ */ Cr()), e.slugify = () => e.check(/* @__PURE__ */ wr());
2679
- }), bi = /* @__PURE__ */ b("ZodString", (e, t) => {
2680
- kt.init(e, t), yi.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Ln(xi, t)), e.url = (t) => e.check(/* @__PURE__ */ Un(wi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ ir(zi, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Wn(Ti, t)), e.guid = (t) => e.check(/* @__PURE__ */ Rn(Si, t)), e.uuid = (t) => e.check(/* @__PURE__ */ zn(Ci, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Bn(Ci, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Vn(Ci, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Hn(Ci, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Gn(Ei, t)), e.guid = (t) => e.check(/* @__PURE__ */ Rn(Si, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Kn(Di, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ qn(Oi, t)), e.ulid = (t) => e.check(/* @__PURE__ */ Jn(ki, t)), e.base64 = (t) => e.check(/* @__PURE__ */ tr(Ii, t)), e.base64url = (t) => e.check(/* @__PURE__ */ nr(Li, t)), e.xid = (t) => e.check(/* @__PURE__ */ Yn(Ai, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Xn(ji, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Zn(Mi, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Qn(Ni, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ $n(Pi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ er(Fi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ rr(Ri, t)), e.datetime = (t) => e.check($r(t)), e.date = (t) => e.check(ti(t)), e.time = (t) => e.check(ri(t)), e.duration = (t) => e.check(ai(t));
2866
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, Si(e, "_ZodString", {
2867
+ regex(...e) {
2868
+ return this.check(/* @__PURE__ */ _r(...e));
2869
+ },
2870
+ includes(...e) {
2871
+ return this.check(/* @__PURE__ */ br(...e));
2872
+ },
2873
+ startsWith(...e) {
2874
+ return this.check(/* @__PURE__ */ xr(...e));
2875
+ },
2876
+ endsWith(...e) {
2877
+ return this.check(/* @__PURE__ */ Sr(...e));
2878
+ },
2879
+ min(...e) {
2880
+ return this.check(/* @__PURE__ */ G(...e));
2881
+ },
2882
+ max(...e) {
2883
+ return this.check(/* @__PURE__ */ hr(...e));
2884
+ },
2885
+ length(...e) {
2886
+ return this.check(/* @__PURE__ */ gr(...e));
2887
+ },
2888
+ nonempty(...e) {
2889
+ return this.check(/* @__PURE__ */ G(1, ...e));
2890
+ },
2891
+ lowercase(e) {
2892
+ return this.check(/* @__PURE__ */ vr(e));
2893
+ },
2894
+ uppercase(e) {
2895
+ return this.check(/* @__PURE__ */ yr(e));
2896
+ },
2897
+ trim() {
2898
+ return this.check(/* @__PURE__ */ wr());
2899
+ },
2900
+ normalize(...e) {
2901
+ return this.check(/* @__PURE__ */ Cr(...e));
2902
+ },
2903
+ toLowerCase() {
2904
+ return this.check(/* @__PURE__ */ Tr());
2905
+ },
2906
+ toUpperCase() {
2907
+ return this.check(/* @__PURE__ */ Er());
2908
+ },
2909
+ slugify() {
2910
+ return this.check(/* @__PURE__ */ Dr());
2911
+ }
2912
+ });
2913
+ }), wi = /* @__PURE__ */ x("ZodString", (e, t) => {
2914
+ jt.init(e, t), Ci.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Vn(Ti, t)), e.url = (t) => e.check(/* @__PURE__ */ qn(Oi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ cr(Ui, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Jn(ki, t)), e.guid = (t) => e.check(/* @__PURE__ */ Hn(Ei, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Un(Di, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Wn(Di, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Gn(Di, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Kn(Di, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Yn(Ai, t)), e.guid = (t) => e.check(/* @__PURE__ */ Hn(Ei, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Xn(ji, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ Zn(Mi, t)), e.ulid = (t) => e.check(/* @__PURE__ */ Qn(Ni, t)), e.base64 = (t) => e.check(/* @__PURE__ */ ar(Bi, t)), e.base64url = (t) => e.check(/* @__PURE__ */ or(Vi, t)), e.xid = (t) => e.check(/* @__PURE__ */ $n(Pi, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ er(Fi, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ tr(Ii, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ nr(Li, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ rr(Ri, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ ir(zi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ sr(Hi, t)), e.datetime = (t) => e.check(ni(t)), e.date = (t) => e.check(ii(t)), e.time = (t) => e.check(oi(t)), e.duration = (t) => e.check(ci(t));
2681
2915
  });
2682
2916
  function Z(e) {
2683
- return /* @__PURE__ */ In(bi, e);
2917
+ return /* @__PURE__ */ Bn(wi, e);
2684
2918
  }
2685
- var Q = /* @__PURE__ */ b("ZodStringFormat", (e, t) => {
2686
- H.init(e, t), yi.init(e, t);
2687
- }), xi = /* @__PURE__ */ b("ZodEmail", (e, t) => {
2919
+ var Q = /* @__PURE__ */ x("ZodStringFormat", (e, t) => {
2920
+ U.init(e, t), Ci.init(e, t);
2921
+ }), Ti = /* @__PURE__ */ x("ZodEmail", (e, t) => {
2922
+ Pt.init(e, t), Q.init(e, t);
2923
+ }), Ei = /* @__PURE__ */ x("ZodGUID", (e, t) => {
2688
2924
  Mt.init(e, t), Q.init(e, t);
2689
- }), Si = /* @__PURE__ */ b("ZodGUID", (e, t) => {
2690
- At.init(e, t), Q.init(e, t);
2691
- }), Ci = /* @__PURE__ */ b("ZodUUID", (e, t) => {
2692
- jt.init(e, t), Q.init(e, t);
2693
- }), wi = /* @__PURE__ */ b("ZodURL", (e, t) => {
2925
+ }), Di = /* @__PURE__ */ x("ZodUUID", (e, t) => {
2694
2926
  Nt.init(e, t), Q.init(e, t);
2695
- }), Ti = /* @__PURE__ */ b("ZodEmoji", (e, t) => {
2696
- Pt.init(e, t), Q.init(e, t);
2697
- }), Ei = /* @__PURE__ */ b("ZodNanoID", (e, t) => {
2927
+ }), Oi = /* @__PURE__ */ x("ZodURL", (e, t) => {
2698
2928
  Ft.init(e, t), Q.init(e, t);
2699
- }), Di = /* @__PURE__ */ b("ZodCUID", (e, t) => {
2929
+ }), ki = /* @__PURE__ */ x("ZodEmoji", (e, t) => {
2700
2930
  It.init(e, t), Q.init(e, t);
2701
- }), Oi = /* @__PURE__ */ b("ZodCUID2", (e, t) => {
2931
+ }), Ai = /* @__PURE__ */ x("ZodNanoID", (e, t) => {
2702
2932
  Lt.init(e, t), Q.init(e, t);
2703
- }), ki = /* @__PURE__ */ b("ZodULID", (e, t) => {
2933
+ }), ji = /* @__PURE__ */ x("ZodCUID", (e, t) => {
2704
2934
  Rt.init(e, t), Q.init(e, t);
2705
- }), Ai = /* @__PURE__ */ b("ZodXID", (e, t) => {
2935
+ }), Mi = /* @__PURE__ */ x("ZodCUID2", (e, t) => {
2706
2936
  zt.init(e, t), Q.init(e, t);
2707
- }), ji = /* @__PURE__ */ b("ZodKSUID", (e, t) => {
2937
+ }), Ni = /* @__PURE__ */ x("ZodULID", (e, t) => {
2708
2938
  Bt.init(e, t), Q.init(e, t);
2709
- }), Mi = /* @__PURE__ */ b("ZodIPv4", (e, t) => {
2710
- Gt.init(e, t), Q.init(e, t);
2711
- }), Ni = /* @__PURE__ */ b("ZodIPv6", (e, t) => {
2712
- Kt.init(e, t), Q.init(e, t);
2713
- }), Pi = /* @__PURE__ */ b("ZodCIDRv4", (e, t) => {
2939
+ }), Pi = /* @__PURE__ */ x("ZodXID", (e, t) => {
2940
+ Vt.init(e, t), Q.init(e, t);
2941
+ }), Fi = /* @__PURE__ */ x("ZodKSUID", (e, t) => {
2942
+ Ht.init(e, t), Q.init(e, t);
2943
+ }), Ii = /* @__PURE__ */ x("ZodIPv4", (e, t) => {
2714
2944
  qt.init(e, t), Q.init(e, t);
2715
- }), Fi = /* @__PURE__ */ b("ZodCIDRv6", (e, t) => {
2945
+ }), Li = /* @__PURE__ */ x("ZodIPv6", (e, t) => {
2716
2946
  Jt.init(e, t), Q.init(e, t);
2717
- }), Ii = /* @__PURE__ */ b("ZodBase64", (e, t) => {
2947
+ }), Ri = /* @__PURE__ */ x("ZodCIDRv4", (e, t) => {
2948
+ Yt.init(e, t), Q.init(e, t);
2949
+ }), zi = /* @__PURE__ */ x("ZodCIDRv6", (e, t) => {
2718
2950
  Xt.init(e, t), Q.init(e, t);
2719
- }), Li = /* @__PURE__ */ b("ZodBase64URL", (e, t) => {
2951
+ }), Bi = /* @__PURE__ */ x("ZodBase64", (e, t) => {
2720
2952
  Qt.init(e, t), Q.init(e, t);
2721
- }), Ri = /* @__PURE__ */ b("ZodE164", (e, t) => {
2722
- $t.init(e, t), Q.init(e, t);
2723
- }), zi = /* @__PURE__ */ b("ZodJWT", (e, t) => {
2953
+ }), Vi = /* @__PURE__ */ x("ZodBase64URL", (e, t) => {
2954
+ en.init(e, t), Q.init(e, t);
2955
+ }), Hi = /* @__PURE__ */ x("ZodE164", (e, t) => {
2724
2956
  tn.init(e, t), Q.init(e, t);
2725
- }), Bi = /* @__PURE__ */ b("ZodUnknown", (e, t) => {
2726
- nn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2957
+ }), Ui = /* @__PURE__ */ x("ZodJWT", (e, t) => {
2958
+ rn.init(e, t), Q.init(e, t);
2959
+ }), Wi = /* @__PURE__ */ x("ZodUnknown", (e, t) => {
2960
+ an.init(e, t), X.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2727
2961
  });
2728
- function Vi() {
2729
- return /* @__PURE__ */ lr(Bi);
2962
+ function Gi() {
2963
+ return /* @__PURE__ */ pr(Wi);
2730
2964
  }
2731
- var Hi = /* @__PURE__ */ b("ZodNever", (e, t) => {
2732
- rn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ir(e, t, n, r);
2965
+ var Ki = /* @__PURE__ */ x("ZodNever", (e, t) => {
2966
+ on.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => zr(e, t, n, r);
2733
2967
  });
2734
- function Ui(e) {
2735
- return /* @__PURE__ */ ur(Hi, e);
2968
+ function qi(e) {
2969
+ return /* @__PURE__ */ mr(Ki, e);
2736
2970
  }
2737
- var Wi = /* @__PURE__ */ b("ZodArray", (e, t) => {
2738
- on.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Br(e, t, n, r), e.element = t.element, e.min = (t, n) => e.check(/* @__PURE__ */ fr(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ fr(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ dr(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ pr(t, n)), e.unwrap = () => e.element;
2971
+ var Ji = /* @__PURE__ */ x("ZodArray", (e, t) => {
2972
+ cn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ur(e, t, n, r), e.element = t.element, Si(e, "ZodArray", {
2973
+ min(e, t) {
2974
+ return this.check(/* @__PURE__ */ G(e, t));
2975
+ },
2976
+ nonempty(e) {
2977
+ return this.check(/* @__PURE__ */ G(1, e));
2978
+ },
2979
+ max(e, t) {
2980
+ return this.check(/* @__PURE__ */ hr(e, t));
2981
+ },
2982
+ length(e, t) {
2983
+ return this.check(/* @__PURE__ */ gr(e, t));
2984
+ },
2985
+ unwrap() {
2986
+ return this.element;
2987
+ }
2988
+ });
2739
2989
  });
2740
- function Gi(e, t) {
2741
- return /* @__PURE__ */ Tr(Wi, e, t);
2742
- }
2743
- var Ki = /* @__PURE__ */ b("ZodObject", (e, t) => {
2744
- un.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vr(e, t, n, r), j(e, "shape", () => t.shape), e.keyof = () => $i(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
2745
- ...e._zod.def,
2746
- catchall: t
2747
- }), e.passthrough = () => e.clone({
2748
- ...e._zod.def,
2749
- catchall: Vi()
2750
- }), e.loose = () => e.clone({
2751
- ...e._zod.def,
2752
- catchall: Vi()
2753
- }), e.strict = () => e.clone({
2754
- ...e._zod.def,
2755
- catchall: Ui()
2756
- }), e.strip = () => e.clone({
2757
- ...e._zod.def,
2758
- catchall: void 0
2759
- }), e.extend = (t) => ge(e, t), e.safeExtend = (t) => _e(e, t), e.merge = (t) => ve(e, t), e.pick = (t) => me(e, t), e.omit = (t) => he(e, t), e.partial = (...t) => ye(na, e, t[0]), e.required = (...t) => be(fa, e, t[0]);
2990
+ function Yi(e, t) {
2991
+ return /* @__PURE__ */ Or(Ji, e, t);
2992
+ }
2993
+ var Xi = /* @__PURE__ */ x("ZodObject", (e, t) => {
2994
+ pn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wr(e, t, n, r), M(e, "shape", () => t.shape), Si(e, "ZodObject", {
2995
+ keyof() {
2996
+ return ra(Object.keys(this._zod.def.shape));
2997
+ },
2998
+ catchall(e) {
2999
+ return this.clone({
3000
+ ...this._zod.def,
3001
+ catchall: e
3002
+ });
3003
+ },
3004
+ passthrough() {
3005
+ return this.clone({
3006
+ ...this._zod.def,
3007
+ catchall: Gi()
3008
+ });
3009
+ },
3010
+ loose() {
3011
+ return this.clone({
3012
+ ...this._zod.def,
3013
+ catchall: Gi()
3014
+ });
3015
+ },
3016
+ strict() {
3017
+ return this.clone({
3018
+ ...this._zod.def,
3019
+ catchall: qi()
3020
+ });
3021
+ },
3022
+ strip() {
3023
+ return this.clone({
3024
+ ...this._zod.def,
3025
+ catchall: void 0
3026
+ });
3027
+ },
3028
+ extend(e) {
3029
+ return ge(this, e);
3030
+ },
3031
+ safeExtend(e) {
3032
+ return _e(this, e);
3033
+ },
3034
+ merge(e) {
3035
+ return ve(this, e);
3036
+ },
3037
+ pick(e) {
3038
+ return me(this, e);
3039
+ },
3040
+ omit(e) {
3041
+ return he(this, e);
3042
+ },
3043
+ partial(...e) {
3044
+ return ye(oa, this, e[0]);
3045
+ },
3046
+ required(...e) {
3047
+ return be(ga, this, e[0]);
3048
+ }
3049
+ });
2760
3050
  });
2761
- function qi(e, t) {
2762
- return new Ki({
3051
+ function Zi(e, t) {
3052
+ return new Xi({
2763
3053
  type: "object",
2764
3054
  shape: e ?? {},
2765
- ...I(t)
3055
+ ...L(t)
2766
3056
  });
2767
3057
  }
2768
- var Ji = /* @__PURE__ */ b("ZodUnion", (e, t) => {
2769
- fn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Hr(e, t, n, r), e.options = t.options;
3058
+ var Qi = /* @__PURE__ */ x("ZodUnion", (e, t) => {
3059
+ hn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Gr(e, t, n, r), e.options = t.options;
2770
3060
  });
2771
- function Yi(e, t) {
2772
- return new Ji({
3061
+ function $i(e, t) {
3062
+ return new Qi({
2773
3063
  type: "union",
2774
3064
  options: e,
2775
- ...I(t)
3065
+ ...L(t)
2776
3066
  });
2777
3067
  }
2778
- var Xi = /* @__PURE__ */ b("ZodIntersection", (e, t) => {
2779
- pn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ur(e, t, n, r);
3068
+ var ea = /* @__PURE__ */ x("ZodIntersection", (e, t) => {
3069
+ gn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Kr(e, t, n, r);
2780
3070
  });
2781
- function Zi(e, t) {
2782
- return new Xi({
3071
+ function ta(e, t) {
3072
+ return new ea({
2783
3073
  type: "intersection",
2784
3074
  left: e,
2785
3075
  right: t
2786
3076
  });
2787
3077
  }
2788
- var Qi = /* @__PURE__ */ b("ZodEnum", (e, t) => {
2789
- gn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Lr(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
3078
+ var na = /* @__PURE__ */ x("ZodEnum", (e, t) => {
3079
+ yn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Br(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2790
3080
  let n = new Set(Object.keys(t.entries));
2791
3081
  e.extract = (e, r) => {
2792
3082
  let i = {};
2793
3083
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
2794
3084
  else throw Error(`Key ${r} not found in enum`);
2795
- return new Qi({
3085
+ return new na({
2796
3086
  ...t,
2797
3087
  checks: [],
2798
- ...I(r),
3088
+ ...L(r),
2799
3089
  entries: i
2800
3090
  });
2801
3091
  }, e.exclude = (e, r) => {
2802
3092
  let i = { ...t.entries };
2803
3093
  for (let t of e) if (n.has(t)) delete i[t];
2804
3094
  else throw Error(`Key ${t} not found in enum`);
2805
- return new Qi({
3095
+ return new na({
2806
3096
  ...t,
2807
3097
  checks: [],
2808
- ...I(r),
3098
+ ...L(r),
2809
3099
  entries: i
2810
3100
  });
2811
3101
  };
2812
3102
  });
2813
- function $i(e, t) {
2814
- return new Qi({
3103
+ function ra(e, t) {
3104
+ return new na({
2815
3105
  type: "enum",
2816
3106
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2817
- ...I(t)
3107
+ ...L(t)
2818
3108
  });
2819
3109
  }
2820
- var ea = /* @__PURE__ */ b("ZodTransform", (e, t) => {
2821
- _n.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => zr(e, t, n, r), e._zod.parse = (n, r) => {
2822
- if (r.direction === "backward") throw new S(e.constructor.name);
3110
+ var ia = /* @__PURE__ */ x("ZodTransform", (e, t) => {
3111
+ bn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Hr(e, t, n, r), e._zod.parse = (n, r) => {
3112
+ if (r.direction === "backward") throw new C(e.constructor.name);
2823
3113
  n.addIssue = (r) => {
2824
- if (typeof r == "string") n.issues.push(z(r, n.value, t));
3114
+ if (typeof r == "string") n.issues.push(B(r, n.value, t));
2825
3115
  else {
2826
3116
  let t = r;
2827
- t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(z(t));
3117
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(B(t));
2828
3118
  }
2829
3119
  };
2830
3120
  let i = t.transform(n.value, n);
2831
- return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
3121
+ return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
2832
3122
  };
2833
3123
  });
2834
- function ta(e) {
2835
- return new ea({
3124
+ function aa(e) {
3125
+ return new ia({
2836
3126
  type: "transform",
2837
3127
  transform: e
2838
3128
  });
2839
3129
  }
2840
- var na = /* @__PURE__ */ b("ZodOptional", (e, t) => {
2841
- yn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3130
+ var oa = /* @__PURE__ */ x("ZodOptional", (e, t) => {
3131
+ Sn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => ei(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2842
3132
  });
2843
- function ra(e) {
2844
- return new na({
3133
+ function sa(e) {
3134
+ return new oa({
2845
3135
  type: "optional",
2846
3136
  innerType: e
2847
3137
  });
2848
3138
  }
2849
- var ia = /* @__PURE__ */ b("ZodExactOptional", (e, t) => {
2850
- bn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3139
+ var ca = /* @__PURE__ */ x("ZodExactOptional", (e, t) => {
3140
+ Cn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => ei(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2851
3141
  });
2852
- function aa(e) {
2853
- return new ia({
3142
+ function la(e) {
3143
+ return new ca({
2854
3144
  type: "optional",
2855
3145
  innerType: e
2856
3146
  });
2857
3147
  }
2858
- var oa = /* @__PURE__ */ b("ZodNullable", (e, t) => {
2859
- xn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3148
+ var ua = /* @__PURE__ */ x("ZodNullable", (e, t) => {
3149
+ wn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2860
3150
  });
2861
- function sa(e) {
2862
- return new oa({
3151
+ function da(e) {
3152
+ return new ua({
2863
3153
  type: "nullable",
2864
3154
  innerType: e
2865
3155
  });
2866
3156
  }
2867
- var ca = /* @__PURE__ */ b("ZodDefault", (e, t) => {
2868
- Sn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Kr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3157
+ var fa = /* @__PURE__ */ x("ZodDefault", (e, t) => {
3158
+ Tn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2869
3159
  });
2870
- function la(e, t) {
2871
- return new ca({
3160
+ function pa(e, t) {
3161
+ return new fa({
2872
3162
  type: "default",
2873
3163
  innerType: e,
2874
3164
  get defaultValue() {
@@ -2876,11 +3166,11 @@ function la(e, t) {
2876
3166
  }
2877
3167
  });
2878
3168
  }
2879
- var ua = /* @__PURE__ */ b("ZodPrefault", (e, t) => {
2880
- wn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3169
+ var ma = /* @__PURE__ */ x("ZodPrefault", (e, t) => {
3170
+ Dn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2881
3171
  });
2882
- function da(e, t) {
2883
- return new ua({
3172
+ function ha(e, t) {
3173
+ return new ma({
2884
3174
  type: "prefault",
2885
3175
  innerType: e,
2886
3176
  get defaultValue() {
@@ -2888,56 +3178,56 @@ function da(e, t) {
2888
3178
  }
2889
3179
  });
2890
3180
  }
2891
- var fa = /* @__PURE__ */ b("ZodNonOptional", (e, t) => {
2892
- Tn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Gr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3181
+ var ga = /* @__PURE__ */ x("ZodNonOptional", (e, t) => {
3182
+ On.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Jr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2893
3183
  });
2894
- function pa(e, t) {
2895
- return new fa({
3184
+ function _a(e, t) {
3185
+ return new ga({
2896
3186
  type: "nonoptional",
2897
3187
  innerType: e,
2898
- ...I(t)
3188
+ ...L(t)
2899
3189
  });
2900
3190
  }
2901
- var ma = /* @__PURE__ */ b("ZodCatch", (e, t) => {
2902
- Dn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Jr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3191
+ var va = /* @__PURE__ */ x("ZodCatch", (e, t) => {
3192
+ An.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2903
3193
  });
2904
- function ha(e, t) {
2905
- return new ma({
3194
+ function ya(e, t) {
3195
+ return new va({
2906
3196
  type: "catch",
2907
3197
  innerType: e,
2908
3198
  catchValue: typeof t == "function" ? t : () => t
2909
3199
  });
2910
3200
  }
2911
- var ga = /* @__PURE__ */ b("ZodPipe", (e, t) => {
2912
- On.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yr(e, t, n, r), e.in = t.in, e.out = t.out;
3201
+ var ba = /* @__PURE__ */ x("ZodPipe", (e, t) => {
3202
+ jn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qr(e, t, n, r), e.in = t.in, e.out = t.out;
2913
3203
  });
2914
- function _a(e, t) {
2915
- return new ga({
3204
+ function xa(e, t) {
3205
+ return new ba({
2916
3206
  type: "pipe",
2917
3207
  in: e,
2918
3208
  out: t
2919
3209
  });
2920
3210
  }
2921
- var va = /* @__PURE__ */ b("ZodReadonly", (e, t) => {
2922
- kn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3211
+ var Sa = /* @__PURE__ */ x("ZodReadonly", (e, t) => {
3212
+ Nn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => $r(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2923
3213
  });
2924
- function ya(e) {
2925
- return new va({
3214
+ function Ca(e) {
3215
+ return new Sa({
2926
3216
  type: "readonly",
2927
3217
  innerType: e
2928
3218
  });
2929
3219
  }
2930
- var ba = /* @__PURE__ */ b("ZodCustom", (e, t) => {
2931
- jn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Rr(e, t, n, r);
3220
+ var wa = /* @__PURE__ */ x("ZodCustom", (e, t) => {
3221
+ Fn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vr(e, t, n, r);
2932
3222
  });
2933
- function xa(e, t = {}) {
2934
- return /* @__PURE__ */ Er(ba, e, t);
3223
+ function Ta(e, t = {}) {
3224
+ return /* @__PURE__ */ kr(wa, e, t);
2935
3225
  }
2936
- function Sa(e) {
2937
- return /* @__PURE__ */ Dr(e);
3226
+ function Ea(e, t) {
3227
+ return /* @__PURE__ */ Ar(e, t);
2938
3228
  }
2939
- var Ca = qi({
2940
- mapping: qi({
3229
+ var Da = Zi({
3230
+ mapping: Zi({
2941
3231
  title: Z().optional(),
2942
3232
  date: Z().optional(),
2943
3233
  description: Z().optional(),
@@ -2951,7 +3241,7 @@ var Ca = qi({
2951
3241
  descriptionField: Z().optional(),
2952
3242
  groupByField: Z().optional(),
2953
3243
  colorField: Z().optional(),
2954
- scale: $i([
3244
+ scale: ra([
2955
3245
  "hour",
2956
3246
  "day",
2957
3247
  "week",
@@ -2959,10 +3249,10 @@ var Ca = qi({
2959
3249
  "quarter",
2960
3250
  "year"
2961
3251
  ]).optional()
2962
- }), wa = ({ schema: e, dataSource: a, className: o, onRowClick: s, onItemClick: c, ...p }) => {
2963
- let [h, ee] = r([]), [te, g] = r(!1), [ne, re] = r(null), [ie, v] = r(0), [b, x] = r(null), S = e.timeline;
3252
+ }), Oa = ({ schema: e, dataSource: a, className: o, onRowClick: s, onItemClick: c, ...p }) => {
3253
+ let [h, ee] = r([]), [te, g] = r(!1), [v, ne] = r(null), [re, y] = r(0), [b, x] = r(null), S = e.timeline;
2964
3254
  n(() => {
2965
- let t = Ca.safeParse(e);
3255
+ let t = Da.safeParse(e);
2966
3256
  t.success || console.warn("[ObjectTimeline] Invalid timeline configuration:", t.error.format());
2967
3257
  }, [e]);
2968
3258
  let C = d(e.bind);
@@ -2989,7 +3279,7 @@ var Ca = qi({
2989
3279
  ...t.length > 0 ? { $expand: t } : {}
2990
3280
  })));
2991
3281
  } catch (e) {
2992
- console.error(e), re(e);
3282
+ console.error(e), ne(e);
2993
3283
  } finally {
2994
3284
  g(!1);
2995
3285
  }
@@ -3001,7 +3291,7 @@ var Ca = qi({
3001
3291
  C,
3002
3292
  e.items,
3003
3293
  p.data,
3004
- ie,
3294
+ re,
3005
3295
  b
3006
3296
  ]);
3007
3297
  let w = p.data || C || h, T = e.items;
@@ -3021,7 +3311,7 @@ var Ca = qi({
3021
3311
  }
3022
3312
  let { ref: E, isRefreshing: D, pullDistance: O } = m({
3023
3313
  onRefresh: t(async () => {
3024
- v((e) => e + 1);
3314
+ y((e) => e + 1);
3025
3315
  }, []),
3026
3316
  enabled: !!e.objectName && !!a
3027
3317
  }), k = f({
@@ -3038,9 +3328,9 @@ var Ca = qi({
3038
3328
  k.handleClick(t), c?.(t);
3039
3329
  }
3040
3330
  };
3041
- return ne ? /* @__PURE__ */ (0, _.jsxs)("div", {
3331
+ return v ? /* @__PURE__ */ (0, _.jsxs)("div", {
3042
3332
  className: "p-4 text-red-500",
3043
- children: ["Error loading timeline: ", ne.message]
3333
+ children: ["Error loading timeline: ", v.message]
3044
3334
  }) : /* @__PURE__ */ (0, _.jsxs)("div", {
3045
3335
  ref: E,
3046
3336
  className: "relative overflow-auto h-full min-w-0",
@@ -3050,7 +3340,7 @@ var Ca = qi({
3050
3340
  style: { height: O },
3051
3341
  children: D ? "Refreshing…" : "Pull to refresh"
3052
3342
  }),
3053
- /* @__PURE__ */ (0, _.jsx)(y, { schema: j }),
3343
+ /* @__PURE__ */ (0, _.jsx)(ie, { schema: j }),
3054
3344
  k.isOverlay && /* @__PURE__ */ (0, _.jsx)(i, {
3055
3345
  ...k,
3056
3346
  title: "Timeline Item",
@@ -3070,26 +3360,26 @@ var Ca = qi({
3070
3360
  })
3071
3361
  ]
3072
3362
  });
3073
- }, Ta = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("ol", {
3363
+ }, ka = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("ol", {
3074
3364
  ref: n,
3075
3365
  className: a("relative border-l border-gray-200", e),
3076
3366
  ...t
3077
3367
  }));
3078
- Ta.displayName = "Timeline";
3079
- var Ea = o("ml-6", {
3368
+ ka.displayName = "Timeline";
3369
+ var Aa = o("ml-6", {
3080
3370
  variants: { density: {
3081
3371
  default: "mb-10",
3082
3372
  compact: "mb-3",
3083
3373
  comfortable: "mb-6"
3084
3374
  } },
3085
3375
  defaultVariants: { density: "default" }
3086
- }), Da = e.forwardRef(({ className: e, density: t, ...n }, r) => /* @__PURE__ */ (0, _.jsx)("li", {
3376
+ }), ja = e.forwardRef(({ className: e, density: t, ...n }, r) => /* @__PURE__ */ (0, _.jsx)("li", {
3087
3377
  ref: r,
3088
- className: a(Ea({ density: t }), e),
3378
+ className: a(Aa({ density: t }), e),
3089
3379
  ...n
3090
3380
  }));
3091
- Da.displayName = "TimelineItem";
3092
- var Oa = o("absolute -left-3 w-6 h-6 rounded-full border-2 flex items-center justify-center", {
3381
+ ja.displayName = "TimelineItem";
3382
+ var Ma = o("absolute -left-3 w-6 h-6 rounded-full border-2 flex items-center justify-center", {
3093
3383
  variants: { variant: {
3094
3384
  default: "bg-blue-200 border-blue-400",
3095
3385
  success: "bg-emerald-200 border-emerald-500",
@@ -3101,85 +3391,85 @@ var Oa = o("absolute -left-3 w-6 h-6 rounded-full border-2 flex items-center jus
3101
3391
  done: "bg-emerald-200 border-emerald-500"
3102
3392
  } },
3103
3393
  defaultVariants: { variant: "default" }
3104
- }), ka = e.forwardRef(({ className: e, variant: t = "default", ...n }, r) => /* @__PURE__ */ (0, _.jsx)("div", {
3394
+ }), Na = e.forwardRef(({ className: e, variant: t = "default", ...n }, r) => /* @__PURE__ */ (0, _.jsx)("div", {
3105
3395
  ref: r,
3106
- className: a(Oa({ variant: t }), e),
3396
+ className: a(Ma({ variant: t }), e),
3107
3397
  ...n
3108
3398
  }));
3109
- ka.displayName = "TimelineMarker";
3110
- var Aa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3399
+ Na.displayName = "TimelineMarker";
3400
+ var Pa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3111
3401
  ref: n,
3112
3402
  className: e,
3113
3403
  ...t
3114
3404
  }));
3115
- Aa.displayName = "TimelineContent";
3116
- var ja = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("h3", {
3405
+ Pa.displayName = "TimelineContent";
3406
+ var Fa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("h3", {
3117
3407
  ref: n,
3118
3408
  className: a("font-semibold text-lg mb-1", e),
3119
3409
  ...t
3120
3410
  }));
3121
- ja.displayName = "TimelineTitle";
3122
- var Ma = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("time", {
3411
+ Fa.displayName = "TimelineTitle";
3412
+ var Ia = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("time", {
3123
3413
  ref: n,
3124
3414
  className: a("text-sm font-normal text-gray-500 mb-2 block", e),
3125
3415
  ...t
3126
3416
  }));
3127
- Ma.displayName = "TimelineTime";
3128
- var $ = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("p", {
3417
+ Ia.displayName = "TimelineTime";
3418
+ var La = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("p", {
3129
3419
  ref: n,
3130
3420
  className: a("text-base text-gray-700", e),
3131
3421
  ...t
3132
3422
  }));
3133
- $.displayName = "TimelineDescription";
3134
- var Na = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3423
+ La.displayName = "TimelineDescription";
3424
+ var Ra = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3135
3425
  ref: n,
3136
3426
  className: a("relative flex overflow-x-auto py-8", e),
3137
3427
  ...t
3138
3428
  }));
3139
- Na.displayName = "TimelineHorizontal";
3140
- var Pa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3429
+ Ra.displayName = "TimelineHorizontal";
3430
+ var za = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3141
3431
  ref: n,
3142
3432
  className: a("flex-shrink-0 w-64 relative", e),
3143
3433
  ...t
3144
3434
  }));
3145
- Pa.displayName = "TimelineHorizontalItem";
3146
- var Fa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3435
+ za.displayName = "TimelineHorizontalItem";
3436
+ var Ba = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3147
3437
  ref: n,
3148
3438
  className: a("relative w-full border rounded-lg overflow-hidden", e),
3149
3439
  ...t
3150
3440
  }));
3151
- Fa.displayName = "TimelineGantt";
3152
- var Ia = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3441
+ Ba.displayName = "TimelineGantt";
3442
+ var Va = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3153
3443
  ref: n,
3154
3444
  className: a("flex border-b bg-gray-50", e),
3155
3445
  ...t
3156
3446
  }));
3157
- Ia.displayName = "TimelineGanttHeader";
3158
- var La = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3447
+ Va.displayName = "TimelineGanttHeader";
3448
+ var Ha = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3159
3449
  ref: n,
3160
3450
  className: a("w-48 border-r bg-white", e),
3161
3451
  ...t
3162
3452
  }));
3163
- La.displayName = "TimelineGanttRowLabels";
3164
- var Ra = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3453
+ Ha.displayName = "TimelineGanttRowLabels";
3454
+ var $ = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3165
3455
  ref: n,
3166
3456
  className: a("flex-1 overflow-x-auto", e),
3167
3457
  ...t
3168
3458
  }));
3169
- Ra.displayName = "TimelineGanttGrid";
3170
- var za = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3459
+ $.displayName = "TimelineGanttGrid";
3460
+ var Ua = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3171
3461
  ref: n,
3172
3462
  className: a("flex items-center border-b min-h-12", e),
3173
3463
  ...t
3174
3464
  }));
3175
- za.displayName = "TimelineGanttRow";
3176
- var Ba = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3465
+ Ua.displayName = "TimelineGanttRow";
3466
+ var Wa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3177
3467
  ref: n,
3178
3468
  className: a("px-4 py-2 font-medium text-sm truncate", e),
3179
3469
  ...t
3180
3470
  }));
3181
- Ba.displayName = "TimelineGanttLabel";
3182
- var Va = e.forwardRef(({ className: e, start: t = 0, width: n = 100, variant: r = "default", ...i }, o) => /* @__PURE__ */ (0, _.jsx)("div", {
3471
+ Wa.displayName = "TimelineGanttLabel";
3472
+ var Ga = e.forwardRef(({ className: e, start: t = 0, width: n = 100, variant: r = "default", ...i }, o) => /* @__PURE__ */ (0, _.jsx)("div", {
3183
3473
  ref: o,
3184
3474
  className: a("absolute h-8 rounded-md transition-colors cursor-pointer", {
3185
3475
  default: "bg-blue-500 hover:bg-blue-600",
@@ -3194,22 +3484,22 @@ var Va = e.forwardRef(({ className: e, start: t = 0, width: n = 100, variant: r
3194
3484
  },
3195
3485
  ...i
3196
3486
  }));
3197
- Va.displayName = "TimelineGanttBar";
3198
- var Ha = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3487
+ Ga.displayName = "TimelineGanttBar";
3488
+ var Ka = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, _.jsx)("div", {
3199
3489
  ref: n,
3200
3490
  className: a("px-2 py-1 text-white text-xs font-medium truncate", e),
3201
3491
  ...t
3202
3492
  }));
3203
- Ha.displayName = "TimelineGanttBarContent";
3204
- var Ua = ({ schema: e, ...t }) => {
3493
+ Ka.displayName = "TimelineGanttBarContent";
3494
+ var qa = ({ schema: e, ...t }) => {
3205
3495
  let { dataSource: n } = p() || {};
3206
- return /* @__PURE__ */ (0, _.jsx)(wa, {
3496
+ return /* @__PURE__ */ (0, _.jsx)(Oa, {
3207
3497
  schema: e,
3208
3498
  dataSource: n,
3209
3499
  ...t
3210
3500
  });
3211
3501
  };
3212
- c.register("object-timeline", Ua, {
3502
+ c.register("object-timeline", qa, {
3213
3503
  namespace: "plugin-timeline",
3214
3504
  label: "Object Timeline",
3215
3505
  category: "view",
@@ -3228,7 +3518,7 @@ c.register("object-timeline", Ua, {
3228
3518
  ],
3229
3519
  defaultValue: "vertical"
3230
3520
  }]
3231
- }), c.register("timeline", Ua, {
3521
+ }), c.register("timeline", qa, {
3232
3522
  namespace: "view",
3233
3523
  label: "Timeline View",
3234
3524
  category: "view",
@@ -3249,4 +3539,4 @@ c.register("object-timeline", Ua, {
3249
3539
  }]
3250
3540
  });
3251
3541
  //#endregion
3252
- export { wa as ObjectTimeline, Ua as ObjectTimelineRenderer, Ta as Timeline, Aa as TimelineContent, $ as TimelineDescription, Fa as TimelineGantt, Va as TimelineGanttBar, Ha as TimelineGanttBarContent, Ra as TimelineGanttGrid, Ia as TimelineGanttHeader, Ba as TimelineGanttLabel, za as TimelineGanttRow, La as TimelineGanttRowLabels, Na as TimelineHorizontal, Pa as TimelineHorizontalItem, Da as TimelineItem, ka as TimelineMarker, y as TimelineRenderer, Ma as TimelineTime, ja as TimelineTitle, Ea as timelineItemVariants, Oa as timelineMarkerVariants };
3542
+ export { Oa as ObjectTimeline, qa as ObjectTimelineRenderer, ka as Timeline, Pa as TimelineContent, La as TimelineDescription, Ba as TimelineGantt, Ga as TimelineGanttBar, Ka as TimelineGanttBarContent, $ as TimelineGanttGrid, Va as TimelineGanttHeader, Wa as TimelineGanttLabel, Ua as TimelineGanttRow, Ha as TimelineGanttRowLabels, Ra as TimelineHorizontal, za as TimelineHorizontalItem, ja as TimelineItem, Na as TimelineMarker, ie as TimelineRenderer, Ia as TimelineTime, Fa as TimelineTitle, Aa as timelineItemVariants, Ma as timelineMarkerVariants };