@cloudflare/kumo 1.15.0 → 1.16.0

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 (158) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/ai/component-registry.json +317 -13
  3. package/ai/component-registry.md +507 -26
  4. package/ai/schemas.ts +18 -2
  5. package/dist/.build-complete +1 -1
  6. package/dist/ai/schemas.d.ts +57 -2
  7. package/dist/ai/schemas.d.ts.map +1 -1
  8. package/dist/ai/schemas.js +366 -341
  9. package/dist/ai/schemas.js.map +1 -1
  10. package/dist/chunks/{Legend-mkh1v83sz972e29d.js → Legend-bov5dqf08wemc2qj.js} +112 -100
  11. package/dist/chunks/Legend-bov5dqf08wemc2qj.js.map +1 -0
  12. package/dist/chunks/{checkbox-bvzuggmadtqawis4.js → checkbox-lawmt1894wr6rpgi.js} +3 -3
  13. package/dist/chunks/{checkbox-bvzuggmadtqawis4.js.map → checkbox-lawmt1894wr6rpgi.js.map} +1 -1
  14. package/dist/chunks/{clipboard-text-mwcknzn75qdvigrd.js → clipboard-text-ohx8kkpxisz382rj.js} +3 -3
  15. package/dist/chunks/{clipboard-text-mwcknzn75qdvigrd.js.map → clipboard-text-ohx8kkpxisz382rj.js.map} +1 -1
  16. package/dist/chunks/{combobox-ndbaroqh1c0u49ye.js → combobox-ft0u7rfaxawk0r0c.js} +4 -4
  17. package/dist/chunks/{combobox-ndbaroqh1c0u49ye.js.map → combobox-ft0u7rfaxawk0r0c.js.map} +1 -1
  18. package/dist/chunks/{command-palette-ejoszjfivybu9yi5.js → command-palette-b31nq4wk7o7gx4sa.js} +2 -2
  19. package/dist/chunks/{command-palette-ejoszjfivybu9yi5.js.map → command-palette-b31nq4wk7o7gx4sa.js.map} +1 -1
  20. package/dist/chunks/{dialog-gkmecnx48ge38jrr.js → dialog-l5tmwxrzp9g83jmw.js} +2 -2
  21. package/dist/chunks/{dialog-gkmecnx48ge38jrr.js.map → dialog-l5tmwxrzp9g83jmw.js.map} +1 -1
  22. package/dist/chunks/{dropdown-i8n7nv3cvkvb1x3e.js → dropdown-icy3xatdwhzr4une.js} +2 -2
  23. package/dist/chunks/{dropdown-i8n7nv3cvkvb1x3e.js.map → dropdown-icy3xatdwhzr4une.js.map} +1 -1
  24. package/dist/chunks/{field-lweivfadxgpqhuqi.js → field-csje72m7j9403fj5.js} +3 -3
  25. package/dist/chunks/{field-lweivfadxgpqhuqi.js.map → field-csje72m7j9403fj5.js.map} +1 -1
  26. package/dist/chunks/hcl-hcu7d6ja6t540ijn.js +8 -0
  27. package/dist/chunks/hcl-hcu7d6ja6t540ijn.js.map +1 -0
  28. package/dist/chunks/{input-area-obli4ufvu40bfpgp.js → input-area-jko15sbc6zeage3l.js} +4 -4
  29. package/dist/chunks/{input-area-obli4ufvu40bfpgp.js.map → input-area-jko15sbc6zeage3l.js.map} +1 -1
  30. package/dist/chunks/{input-ko2dne1givlxq7sz.js → input-c8jmidy7gdqfiky1.js} +3 -3
  31. package/dist/chunks/{input-ko2dne1givlxq7sz.js.map → input-c8jmidy7gdqfiky1.js.map} +1 -1
  32. package/dist/chunks/{input-group-dwtsd04lzf2bcsdo.js → input-group-cjsy8kh4vf9312xl.js} +2 -2
  33. package/dist/chunks/{input-group-dwtsd04lzf2bcsdo.js.map → input-group-cjsy8kh4vf9312xl.js.map} +1 -1
  34. package/dist/chunks/{label-kjahhybc191quieo.js → label-i46xnnzdh9bsxk6a.js} +2 -2
  35. package/dist/chunks/{label-kjahhybc191quieo.js.map → label-i46xnnzdh9bsxk6a.js.map} +1 -1
  36. package/dist/chunks/{link-lpzl5s47pmobk361.js → link-o7yfj4kwgl19fklp.js} +2 -2
  37. package/dist/chunks/{link-lpzl5s47pmobk361.js.map → link-o7yfj4kwgl19fklp.js.map} +1 -1
  38. package/dist/chunks/{menubar-ifxxdoa35zz79z1q.js → menubar-g1wqqjuyyfvsim83.js} +2 -2
  39. package/dist/chunks/{menubar-ifxxdoa35zz79z1q.js.map → menubar-g1wqqjuyyfvsim83.js.map} +1 -1
  40. package/dist/chunks/{meter-fbtqfg0okpwmaiju.js → meter-cqkrg5axjenbsuue.js} +2 -2
  41. package/dist/chunks/{meter-fbtqfg0okpwmaiju.js.map → meter-cqkrg5axjenbsuue.js.map} +1 -1
  42. package/dist/chunks/{pagination-eo0gzzm7v5w8niqe.js → pagination-e3dp8bd80s35f7sd.js} +3 -3
  43. package/dist/chunks/{pagination-eo0gzzm7v5w8niqe.js.map → pagination-e3dp8bd80s35f7sd.js.map} +1 -1
  44. package/dist/chunks/{popover-dd7hi5ajeoq9od1i.js → popover-jurf834u2uywluux.js} +2 -2
  45. package/dist/chunks/{popover-dd7hi5ajeoq9od1i.js.map → popover-jurf834u2uywluux.js.map} +1 -1
  46. package/dist/chunks/{radio-oi9iw7ls1t04j377.js → radio-l9dzm6sohcvvrsdc.js} +2 -2
  47. package/dist/chunks/{radio-oi9iw7ls1t04j377.js.map → radio-l9dzm6sohcvvrsdc.js.map} +1 -1
  48. package/dist/chunks/{select-0m0xklfwdlx8dwba.js → select-hnt87e3cfos48qql.js} +3 -3
  49. package/dist/chunks/{select-0m0xklfwdlx8dwba.js.map → select-hnt87e3cfos48qql.js.map} +1 -1
  50. package/dist/chunks/{sensitive-input-rjpykxn2llh0thx1.js → sensitive-input-lvtccf3iqc06lj7b.js} +4 -4
  51. package/dist/chunks/{sensitive-input-rjpykxn2llh0thx1.js.map → sensitive-input-lvtccf3iqc06lj7b.js.map} +1 -1
  52. package/dist/chunks/sidebar-l6rk9o5qf8k5vth1.js +875 -0
  53. package/dist/chunks/sidebar-l6rk9o5qf8k5vth1.js.map +1 -0
  54. package/dist/chunks/{switch-lv4mrrkfl5uc99xo.js → switch-fukrbip86khvqjn7.js} +3 -3
  55. package/dist/chunks/{switch-lv4mrrkfl5uc99xo.js.map → switch-fukrbip86khvqjn7.js.map} +1 -1
  56. package/dist/chunks/{table-fh7jmfip27vdapxm.js → table-orfgzwvxh8yr90dk.js} +2 -2
  57. package/dist/chunks/{table-fh7jmfip27vdapxm.js.map → table-orfgzwvxh8yr90dk.js.map} +1 -1
  58. package/dist/chunks/{tabs-hy6oa7xtf96d9mxt.js → tabs-n0t7iro7wr0pzgk2.js} +2 -2
  59. package/dist/chunks/{tabs-hy6oa7xtf96d9mxt.js.map → tabs-n0t7iro7wr0pzgk2.js.map} +1 -1
  60. package/dist/chunks/{toast-kswfqmjysxcrwij3.js → toast-r9ajsces7xp8l85w.js} +8 -8
  61. package/dist/chunks/{toast-kswfqmjysxcrwij3.js.map → toast-r9ajsces7xp8l85w.js.map} +1 -1
  62. package/dist/chunks/{tooltip-k68wcv9mrigb7rcb.js → tooltip-hnc71tg4gz2gpcvc.js} +2 -2
  63. package/dist/chunks/{tooltip-k68wcv9mrigb7rcb.js.map → tooltip-hnc71tg4gz2gpcvc.js.map} +1 -1
  64. package/dist/chunks/{vendor-base-ui-cpvkrhz4zgw9nw2b.js → vendor-base-ui-ccr5l0ynrievzzv3.js} +564 -563
  65. package/dist/chunks/{vendor-base-ui-cpvkrhz4zgw9nw2b.js.map → vendor-base-ui-ccr5l0ynrievzzv3.js.map} +1 -1
  66. package/dist/code/server.js +2 -1
  67. package/dist/code/server.js.map +1 -1
  68. package/dist/code.js +14 -13
  69. package/dist/code.js.map +1 -1
  70. package/dist/components/chart.js +1 -1
  71. package/dist/components/checkbox.js +1 -1
  72. package/dist/components/clipboard-text.js +1 -1
  73. package/dist/components/combobox.js +1 -1
  74. package/dist/components/command-palette.js +1 -1
  75. package/dist/components/dialog.js +1 -1
  76. package/dist/components/dropdown.js +1 -1
  77. package/dist/components/field.js +1 -1
  78. package/dist/components/flow.js +2138 -2087
  79. package/dist/components/flow.js.map +1 -1
  80. package/dist/components/input.js +3 -3
  81. package/dist/components/label.js +1 -1
  82. package/dist/components/link.js +1 -1
  83. package/dist/components/menubar.js +1 -1
  84. package/dist/components/meter.js +1 -1
  85. package/dist/components/pagination.js +1 -1
  86. package/dist/components/popover.js +1 -1
  87. package/dist/components/radio.js +1 -1
  88. package/dist/components/select.js +1 -1
  89. package/dist/components/sensitive-input.js +1 -1
  90. package/dist/components/sidebar.js +35 -0
  91. package/dist/components/sidebar.js.map +1 -0
  92. package/dist/components/switch.js +1 -1
  93. package/dist/components/table.js +1 -1
  94. package/dist/components/tabs.js +1 -1
  95. package/dist/components/toast.js +2 -2
  96. package/dist/components/tooltip.js +1 -1
  97. package/dist/index.js +194 -163
  98. package/dist/index.js.map +1 -1
  99. package/dist/primitives/accordion.js +1 -1
  100. package/dist/primitives/alert-dialog.js +1 -1
  101. package/dist/primitives/autocomplete.js +1 -1
  102. package/dist/primitives/avatar.js +1 -1
  103. package/dist/primitives/button.js +1 -1
  104. package/dist/primitives/checkbox-group.js +1 -1
  105. package/dist/primitives/checkbox.js +1 -1
  106. package/dist/primitives/collapsible.js +1 -1
  107. package/dist/primitives/combobox.js +1 -1
  108. package/dist/primitives/context-menu.js +1 -1
  109. package/dist/primitives/csp-provider.js +1 -1
  110. package/dist/primitives/dialog.js +1 -1
  111. package/dist/primitives/direction-provider.js +1 -1
  112. package/dist/primitives/drawer.js +1 -1
  113. package/dist/primitives/field.js +1 -1
  114. package/dist/primitives/fieldset.js +1 -1
  115. package/dist/primitives/form.js +1 -1
  116. package/dist/primitives/input.js +1 -1
  117. package/dist/primitives/menu.js +1 -1
  118. package/dist/primitives/menubar.js +1 -1
  119. package/dist/primitives/meter.js +1 -1
  120. package/dist/primitives/navigation-menu.js +1 -1
  121. package/dist/primitives/number-field.js +1 -1
  122. package/dist/primitives/popover.js +1 -1
  123. package/dist/primitives/preview-card.js +1 -1
  124. package/dist/primitives/progress.js +1 -1
  125. package/dist/primitives/radio-group.js +1 -1
  126. package/dist/primitives/radio.js +1 -1
  127. package/dist/primitives/scroll-area.js +1 -1
  128. package/dist/primitives/select.js +1 -1
  129. package/dist/primitives/separator.js +1 -1
  130. package/dist/primitives/slider.js +1 -1
  131. package/dist/primitives/switch.js +1 -1
  132. package/dist/primitives/tabs.js +1 -1
  133. package/dist/primitives/toast.js +1 -1
  134. package/dist/primitives/toggle-group.js +1 -1
  135. package/dist/primitives/toggle.js +1 -1
  136. package/dist/primitives/toolbar.js +1 -1
  137. package/dist/primitives/tooltip.js +1 -1
  138. package/dist/primitives.js +1 -1
  139. package/dist/src/code/provider.d.ts.map +1 -1
  140. package/dist/src/code/server.d.ts.map +1 -1
  141. package/dist/src/code/types.d.ts +1 -1
  142. package/dist/src/code/types.d.ts.map +1 -1
  143. package/dist/src/components/chart/EChart.d.ts.map +1 -1
  144. package/dist/src/components/chart/TimeseriesChart.d.ts +11 -1
  145. package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -1
  146. package/dist/src/components/flow/diagram.d.ts.map +1 -1
  147. package/dist/src/components/flow/node.d.ts.map +1 -1
  148. package/dist/src/components/flow/parallel.d.ts.map +1 -1
  149. package/dist/src/components/sidebar/index.d.ts +2 -0
  150. package/dist/src/components/sidebar/index.d.ts.map +1 -0
  151. package/dist/src/components/sidebar/sidebar.d.ts +556 -0
  152. package/dist/src/components/sidebar/sidebar.d.ts.map +1 -0
  153. package/dist/src/index.d.ts +1 -0
  154. package/dist/src/index.d.ts.map +1 -1
  155. package/dist/styles/kumo-standalone.css +1 -1
  156. package/package.json +6 -2
  157. package/scripts/component-registry/index.ts +12 -0
  158. package/dist/chunks/Legend-mkh1v83sz972e29d.js.map +0 -1
@@ -11,10 +11,10 @@ function d(e, t, o) {
11
11
  }), u._zod.traits.has(e))
12
12
  return;
13
13
  u._zod.traits.add(e), t(u, l);
14
- const p = i.prototype, f = Object.keys(p);
15
- for (let m = 0; m < f.length; m++) {
16
- const k = f[m];
17
- k in u || (u[k] = p[k].bind(u));
14
+ const p = i.prototype, h = Object.keys(p);
15
+ for (let m = 0; m < h.length; m++) {
16
+ const w = h[m];
17
+ w in u || (u[w] = p[w].bind(u));
18
18
  }
19
19
  }
20
20
  const r = o?.Parent ?? Object;
@@ -25,8 +25,8 @@ function d(e, t, o) {
25
25
  var l;
26
26
  const p = o?.Parent ? new a() : this;
27
27
  n(p, u), (l = p._zod).deferred ?? (l.deferred = []);
28
- for (const f of p._zod.deferred)
29
- f();
28
+ for (const h of p._zod.deferred)
29
+ h();
30
30
  return p;
31
31
  }
32
32
  return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
@@ -82,7 +82,7 @@ function Pt(e, t) {
82
82
  return i % u / 10 ** a;
83
83
  }
84
84
  const Ze = Symbol("evaluating");
85
- function S(e, t, o) {
85
+ function $(e, t, o) {
86
86
  let n;
87
87
  Object.defineProperty(e, t, {
88
88
  get() {
@@ -155,7 +155,7 @@ function J(e, t, o) {
155
155
  const n = new e._zod.constr(t ?? e._zod.def);
156
156
  return (!t || o?.parent) && (n._zod.parent = e), n;
157
157
  }
158
- function y(e) {
158
+ function z(e) {
159
159
  const t = e;
160
160
  if (!t)
161
161
  return {};
@@ -394,7 +394,7 @@ const we = (e) => (t, o, n, r) => {
394
394
  throw Xe(u, r?.callee), u;
395
395
  }
396
396
  return i.value;
397
- }, $e = (e) => async (t, o, n, r) => {
397
+ }, Se = (e) => async (t, o, n, r) => {
398
398
  const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
399
399
  let i = t._zod.run({ value: o, issues: [] }, a);
400
400
  if (i instanceof Promise && (i = await i), i.issues.length) {
@@ -422,8 +422,8 @@ const we = (e) => (t, o, n, r) => {
422
422
  return we(e)(t, o, r);
423
423
  }, Vt = (e) => (t, o, n) => we(e)(t, o, n), Wt = (e) => async (t, o, n) => {
424
424
  const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
425
- return $e(e)(t, o, r);
426
- }, Kt = (e) => async (t, o, n) => $e(e)(t, o, n), qt = (e) => (t, o, n) => {
425
+ return Se(e)(t, o, r);
426
+ }, Kt = (e) => async (t, o, n) => Se(e)(t, o, n), qt = (e) => (t, o, n) => {
427
427
  const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
428
428
  return pe(e)(t, o, r);
429
429
  }, Gt = (e) => (t, o, n) => pe(e)(t, o, n), Xt = (e) => async (t, o, n) => {
@@ -450,7 +450,7 @@ function vo(e) {
450
450
  const bo = (e) => {
451
451
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
452
452
  return new RegExp(`^${t}$`);
453
- }, yo = /^-?\d+$/, rt = /^-?\d+(?:\.\d+)?$/, zo = /^(?:true|false)$/i, ko = /^null$/i, wo = /^[^A-Z]*$/, $o = /^[^a-z]*$/, x = /* @__PURE__ */ d("$ZodCheck", (e, t) => {
453
+ }, yo = /^-?\d+$/, rt = /^-?\d+(?:\.\d+)?$/, zo = /^(?:true|false)$/i, ko = /^null$/i, wo = /^[^A-Z]*$/, So = /^[^a-z]*$/, x = /* @__PURE__ */ d("$ZodCheck", (e, t) => {
454
454
  var o;
455
455
  e._zod ?? (e._zod = {}), e._zod.def = t, (o = e._zod).onattach ?? (o.onattach = []);
456
456
  }), it = {
@@ -491,7 +491,7 @@ const bo = (e) => {
491
491
  continue: !t.abort
492
492
  });
493
493
  };
494
- }), So = /* @__PURE__ */ d("$ZodCheckMultipleOf", (e, t) => {
494
+ }), $o = /* @__PURE__ */ d("$ZodCheckMultipleOf", (e, t) => {
495
495
  x.init(e, t), e._zod.onattach.push((o) => {
496
496
  var n;
497
497
  (n = o._zod.bag).multipleOf ?? (n.multipleOf = t.value);
@@ -669,7 +669,7 @@ const bo = (e) => {
669
669
  }), No = /* @__PURE__ */ d("$ZodCheckLowerCase", (e, t) => {
670
670
  t.pattern ?? (t.pattern = wo), fe.init(e, t);
671
671
  }), Eo = /* @__PURE__ */ d("$ZodCheckUpperCase", (e, t) => {
672
- t.pattern ?? (t.pattern = $o), fe.init(e, t);
672
+ t.pattern ?? (t.pattern = So), fe.init(e, t);
673
673
  }), Co = /* @__PURE__ */ d("$ZodCheckIncludes", (e, t) => {
674
674
  x.init(e, t);
675
675
  const o = le(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${o}` : o);
@@ -767,27 +767,27 @@ const Do = {
767
767
  });
768
768
  else {
769
769
  const r = (i, u, l) => {
770
- let p = K(i), f;
770
+ let p = K(i), h;
771
771
  for (const m of u) {
772
772
  if (m._zod.def.when) {
773
773
  if (!m._zod.def.when(i))
774
774
  continue;
775
775
  } else if (p)
776
776
  continue;
777
- const k = i.issues.length, $ = m._zod.check(i);
778
- if ($ instanceof Promise && l?.async === !1)
777
+ const w = i.issues.length, S = m._zod.check(i);
778
+ if (S instanceof Promise && l?.async === !1)
779
779
  throw new q();
780
- if (f || $ instanceof Promise)
781
- f = (f ?? Promise.resolve()).then(async () => {
782
- await $, i.issues.length !== k && (p || (p = K(i, k)));
780
+ if (h || S instanceof Promise)
781
+ h = (h ?? Promise.resolve()).then(async () => {
782
+ await S, i.issues.length !== w && (p || (p = K(i, w)));
783
783
  });
784
784
  else {
785
- if (i.issues.length === k)
785
+ if (i.issues.length === w)
786
786
  continue;
787
- p || (p = K(i, k));
787
+ p || (p = K(i, w));
788
788
  }
789
789
  }
790
- return f ? f.then(() => i) : i;
790
+ return h ? h.then(() => i) : i;
791
791
  }, a = (i, u, l) => {
792
792
  if (K(i))
793
793
  return i.aborted = !0, i;
@@ -795,7 +795,7 @@ const Do = {
795
795
  if (p instanceof Promise) {
796
796
  if (l.async === !1)
797
797
  throw new q();
798
- return p.then((f) => e._zod.parse(f, l));
798
+ return p.then((h) => e._zod.parse(h, l));
799
799
  }
800
800
  return e._zod.parse(p, l);
801
801
  };
@@ -804,7 +804,7 @@ const Do = {
804
804
  return e._zod.parse(i, u);
805
805
  if (u.direction === "backward") {
806
806
  const p = e._zod.parse({ value: i.value, issues: [] }, { ...u, skipChecks: !0 });
807
- return p instanceof Promise ? p.then((f) => a(f, i, u)) : a(p, i, u);
807
+ return p instanceof Promise ? p.then((h) => a(h, i, u)) : a(p, i, u);
808
808
  }
809
809
  const l = e._zod.parse(i, u);
810
810
  if (l instanceof Promise) {
@@ -815,7 +815,7 @@ const Do = {
815
815
  return r(l, n, u);
816
816
  };
817
817
  }
818
- S(e, "~standard", () => ({
818
+ $(e, "~standard", () => ({
819
819
  validate: (r) => {
820
820
  try {
821
821
  const a = Mt(e, r);
@@ -827,7 +827,7 @@ const Do = {
827
827
  vendor: "zod",
828
828
  version: 1
829
829
  }));
830
- }), Se = /* @__PURE__ */ d("$ZodString", (e, t) => {
830
+ }), $e = /* @__PURE__ */ d("$ZodString", (e, t) => {
831
831
  Z.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? bo(e._zod.bag), e._zod.parse = (o, n) => {
832
832
  if (t.coerce)
833
833
  try {
@@ -842,7 +842,7 @@ const Do = {
842
842
  }), o;
843
843
  };
844
844
  }), O = /* @__PURE__ */ d("$ZodStringFormat", (e, t) => {
845
- fe.init(e, t), Se.init(e, t);
845
+ fe.init(e, t), $e.init(e, t);
846
846
  }), Uo = /* @__PURE__ */ d("$ZodGUID", (e, t) => {
847
847
  t.pattern ?? (t.pattern = io), O.init(e, t);
848
848
  }), Fo = /* @__PURE__ */ d("$ZodUUID", (e, t) => {
@@ -1132,7 +1132,7 @@ function lt(e) {
1132
1132
  };
1133
1133
  }
1134
1134
  function pt(e, t, o, n, r, a) {
1135
- const i = [], u = r.keySet, l = r.catchall._zod, p = l.def.type, f = l.optout === "optional";
1135
+ const i = [], u = r.keySet, l = r.catchall._zod, p = l.def.type, h = l.optout === "optional";
1136
1136
  for (const m in t) {
1137
1137
  if (u.has(m))
1138
1138
  continue;
@@ -1140,8 +1140,8 @@ function pt(e, t, o, n, r, a) {
1140
1140
  i.push(m);
1141
1141
  continue;
1142
1142
  }
1143
- const k = l.run({ value: t[m], issues: [] }, n);
1144
- k instanceof Promise ? e.push(k.then(($) => se($, o, m, t, f))) : se(k, o, m, t, f);
1143
+ const w = l.run({ value: t[m], issues: [] }, n);
1144
+ w instanceof Promise ? e.push(w.then((S) => se(S, o, m, t, h))) : se(w, o, m, t, h);
1145
1145
  }
1146
1146
  return i.length && o.issues.push({
1147
1147
  code: "unrecognized_keys",
@@ -1163,13 +1163,13 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1163
1163
  });
1164
1164
  }
1165
1165
  const n = be(() => lt(t));
1166
- S(e._zod, "propValues", () => {
1166
+ $(e._zod, "propValues", () => {
1167
1167
  const u = t.shape, l = {};
1168
1168
  for (const p in u) {
1169
- const f = u[p]._zod;
1170
- if (f.values) {
1169
+ const h = u[p]._zod;
1170
+ if (h.values) {
1171
1171
  l[p] ?? (l[p] = /* @__PURE__ */ new Set());
1172
- for (const m of f.values)
1172
+ for (const m of h.values)
1173
1173
  l[p].add(m);
1174
1174
  }
1175
1175
  }
@@ -1188,29 +1188,29 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1188
1188
  inst: e
1189
1189
  }), u;
1190
1190
  u.value = {};
1191
- const f = [], m = i.shape;
1192
- for (const k of i.keys) {
1193
- const $ = m[k], E = $._zod.optout === "optional", N = $._zod.run({ value: p[k], issues: [] }, l);
1194
- N instanceof Promise ? f.push(N.then((ee) => se(ee, u, k, p, E))) : se(N, u, k, p, E);
1191
+ const h = [], m = i.shape;
1192
+ for (const w of i.keys) {
1193
+ const S = m[w], E = S._zod.optout === "optional", N = S._zod.run({ value: p[w], issues: [] }, l);
1194
+ N instanceof Promise ? h.push(N.then((ee) => se(ee, u, w, p, E))) : se(N, u, w, p, E);
1195
1195
  }
1196
- return a ? pt(f, p, u, l, n.value, e) : f.length ? Promise.all(f).then(() => u) : u;
1196
+ return a ? pt(h, p, u, l, n.value, e) : h.length ? Promise.all(h).then(() => u) : u;
1197
1197
  };
1198
1198
  }), vn = /* @__PURE__ */ d("$ZodObjectJIT", (e, t) => {
1199
1199
  _n.init(e, t);
1200
- const o = e._zod.parse, n = be(() => lt(t)), r = (k) => {
1201
- const $ = new Ro(["shape", "payload", "ctx"]), E = n.value, N = (D) => {
1200
+ const o = e._zod.parse, n = be(() => lt(t)), r = (w) => {
1201
+ const S = new Ro(["shape", "payload", "ctx"]), E = n.value, N = (D) => {
1202
1202
  const A = Pe(D);
1203
1203
  return `shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`;
1204
1204
  };
1205
- $.write("const input = payload.value;");
1205
+ S.write("const input = payload.value;");
1206
1206
  const ee = /* @__PURE__ */ Object.create(null);
1207
- let $t = 0;
1207
+ let St = 0;
1208
1208
  for (const D of E.keys)
1209
- ee[D] = `key_${$t++}`;
1210
- $.write("const newResult = {};");
1209
+ ee[D] = `key_${St++}`;
1210
+ S.write("const newResult = {};");
1211
1211
  for (const D of E.keys) {
1212
- const A = ee[D], R = Pe(D), Zt = k[D]?._zod?.optout === "optional";
1213
- $.write(`const ${A} = ${N(D)};`), Zt ? $.write(`
1212
+ const A = ee[D], R = Pe(D), Zt = w[D]?._zod?.optout === "optional";
1213
+ S.write(`const ${A} = ${N(D)};`), Zt ? S.write(`
1214
1214
  if (${A}.issues.length) {
1215
1215
  if (${R} in input) {
1216
1216
  payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
@@ -1228,7 +1228,7 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1228
1228
  newResult[${R}] = ${A}.value;
1229
1229
  }
1230
1230
 
1231
- `) : $.write(`
1231
+ `) : S.write(`
1232
1232
  if (${A}.issues.length) {
1233
1233
  payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
1234
1234
  ...iss,
@@ -1246,22 +1246,22 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1246
1246
 
1247
1247
  `);
1248
1248
  }
1249
- $.write("payload.value = newResult;"), $.write("return payload;");
1250
- const St = $.compile();
1251
- return (D, A) => St(k, D, A);
1249
+ S.write("payload.value = newResult;"), S.write("return payload;");
1250
+ const $t = S.compile();
1251
+ return (D, A) => $t(w, D, A);
1252
1252
  };
1253
1253
  let a;
1254
- const i = ae, u = !qe.jitless, p = u && Tt.value, f = t.catchall;
1254
+ const i = ae, u = !qe.jitless, p = u && Tt.value, h = t.catchall;
1255
1255
  let m;
1256
- e._zod.parse = (k, $) => {
1256
+ e._zod.parse = (w, S) => {
1257
1257
  m ?? (m = n.value);
1258
- const E = k.value;
1259
- return i(E) ? u && p && $?.async === !1 && $.jitless !== !0 ? (a || (a = r(t.shape)), k = a(k, $), f ? pt([], E, k, $, m, e) : k) : o(k, $) : (k.issues.push({
1258
+ const E = w.value;
1259
+ return i(E) ? u && p && S?.async === !1 && S.jitless !== !0 ? (a || (a = r(t.shape)), w = a(w, S), h ? pt([], E, w, S, m, e) : w) : o(w, S) : (w.issues.push({
1260
1260
  expected: "object",
1261
1261
  code: "invalid_type",
1262
1262
  input: E,
1263
1263
  inst: e
1264
- }), k);
1264
+ }), w);
1265
1265
  };
1266
1266
  });
1267
1267
  function Ie(e, t, o, n) {
@@ -1277,10 +1277,10 @@ function Ie(e, t, o, n) {
1277
1277
  }), t);
1278
1278
  }
1279
1279
  const bn = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1280
- Z.init(e, t), S(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), S(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), S(e._zod, "values", () => {
1280
+ Z.init(e, t), $(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), $(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), $(e._zod, "values", () => {
1281
1281
  if (t.options.every((r) => r._zod.values))
1282
1282
  return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
1283
- }), S(e._zod, "pattern", () => {
1283
+ }), $(e._zod, "pattern", () => {
1284
1284
  if (t.options.every((r) => r._zod.pattern)) {
1285
1285
  const r = t.options.map((a) => a._zod.pattern);
1286
1286
  return new RegExp(`^(${r.map((a) => ze(a.source)).join("|")})$`);
@@ -1385,36 +1385,36 @@ const zn = /* @__PURE__ */ d("$ZodTuple", (e, t) => {
1385
1385
  code: "invalid_type"
1386
1386
  }), n;
1387
1387
  n.value = [];
1388
- const i = [], u = [...o].reverse().findIndex((f) => f._zod.optin !== "optional"), l = u === -1 ? 0 : o.length - u;
1388
+ const i = [], u = [...o].reverse().findIndex((h) => h._zod.optin !== "optional"), l = u === -1 ? 0 : o.length - u;
1389
1389
  if (!t.rest) {
1390
- const f = a.length > o.length, m = a.length < l - 1;
1391
- if (f || m)
1390
+ const h = a.length > o.length, m = a.length < l - 1;
1391
+ if (h || m)
1392
1392
  return n.issues.push({
1393
- ...f ? { code: "too_big", maximum: o.length, inclusive: !0 } : { code: "too_small", minimum: o.length },
1393
+ ...h ? { code: "too_big", maximum: o.length, inclusive: !0 } : { code: "too_small", minimum: o.length },
1394
1394
  input: a,
1395
1395
  inst: e,
1396
1396
  origin: "array"
1397
1397
  }), n;
1398
1398
  }
1399
1399
  let p = -1;
1400
- for (const f of o) {
1400
+ for (const h of o) {
1401
1401
  if (p++, p >= a.length && p >= l)
1402
1402
  continue;
1403
- const m = f._zod.run({
1403
+ const m = h._zod.run({
1404
1404
  value: a[p],
1405
1405
  issues: []
1406
1406
  }, r);
1407
- m instanceof Promise ? i.push(m.then((k) => oe(k, n, p))) : oe(m, n, p);
1407
+ m instanceof Promise ? i.push(m.then((w) => oe(w, n, p))) : oe(m, n, p);
1408
1408
  }
1409
1409
  if (t.rest) {
1410
- const f = a.slice(o.length);
1411
- for (const m of f) {
1410
+ const h = a.slice(o.length);
1411
+ for (const m of h) {
1412
1412
  p++;
1413
- const k = t.rest._zod.run({
1413
+ const w = t.rest._zod.run({
1414
1414
  value: m,
1415
1415
  issues: []
1416
1416
  }, r);
1417
- k instanceof Promise ? i.push(k.then(($) => oe($, n, p))) : oe(k, n, p);
1417
+ w instanceof Promise ? i.push(w.then((S) => oe(S, n, p))) : oe(w, n, p);
1418
1418
  }
1419
1419
  }
1420
1420
  return i.length ? Promise.all(i).then(() => n) : n;
@@ -1440,10 +1440,10 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1440
1440
  for (const p of i)
1441
1441
  if (typeof p == "string" || typeof p == "number" || typeof p == "symbol") {
1442
1442
  u.add(typeof p == "number" ? p.toString() : p);
1443
- const f = t.valueType._zod.run({ value: r[p], issues: [] }, n);
1444
- f instanceof Promise ? a.push(f.then((m) => {
1443
+ const h = t.valueType._zod.run({ value: r[p], issues: [] }, n);
1444
+ h instanceof Promise ? a.push(h.then((m) => {
1445
1445
  m.issues.length && o.issues.push(...B(p, m.issues)), o.value[p] = m.value;
1446
- })) : (f.issues.length && o.issues.push(...B(p, f.issues)), o.value[p] = f.value);
1446
+ })) : (h.issues.length && o.issues.push(...B(p, h.issues)), o.value[p] = h.value);
1447
1447
  }
1448
1448
  let l;
1449
1449
  for (const p in r)
@@ -1479,10 +1479,10 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1479
1479
  });
1480
1480
  continue;
1481
1481
  }
1482
- const f = t.valueType._zod.run({ value: r[u], issues: [] }, n);
1483
- f instanceof Promise ? a.push(f.then((m) => {
1482
+ const h = t.valueType._zod.run({ value: r[u], issues: [] }, n);
1483
+ h instanceof Promise ? a.push(h.then((m) => {
1484
1484
  m.issues.length && o.issues.push(...B(u, m.issues)), o.value[l.value] = m.value;
1485
- })) : (f.issues.length && o.issues.push(...B(u, f.issues)), o.value[l.value] = f.value);
1485
+ })) : (h.issues.length && o.issues.push(...B(u, h.issues)), o.value[l.value] = h.value);
1486
1486
  }
1487
1487
  }
1488
1488
  return a.length ? Promise.all(a).then(() => o) : o;
@@ -1499,7 +1499,7 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1499
1499
  inst: e
1500
1500
  }), r;
1501
1501
  };
1502
- }), $n = /* @__PURE__ */ d("$ZodTransform", (e, t) => {
1502
+ }), Sn = /* @__PURE__ */ d("$ZodTransform", (e, t) => {
1503
1503
  Z.init(e, t), e._zod.parse = (o, n) => {
1504
1504
  if (n.direction === "backward")
1505
1505
  throw new Ke(e.constructor.name);
@@ -1515,7 +1515,7 @@ function Ee(e, t) {
1515
1515
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1516
1516
  }
1517
1517
  const dt = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1518
- Z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
1518
+ Z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", $(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), $(e._zod, "pattern", () => {
1519
1519
  const o = t.innerType._zod.pattern;
1520
1520
  return o ? new RegExp(`^(${ze(o.source)})?$`) : void 0;
1521
1521
  }), e._zod.parse = (o, n) => {
@@ -1525,15 +1525,15 @@ const dt = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1525
1525
  }
1526
1526
  return o.value === void 0 ? o : t.innerType._zod.run(o, n);
1527
1527
  };
1528
- }), Sn = /* @__PURE__ */ d("$ZodExactOptional", (e, t) => {
1529
- dt.init(e, t), S(e._zod, "values", () => t.innerType._zod.values), S(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (o, n) => t.innerType._zod.run(o, n);
1528
+ }), $n = /* @__PURE__ */ d("$ZodExactOptional", (e, t) => {
1529
+ dt.init(e, t), $(e._zod, "values", () => t.innerType._zod.values), $(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (o, n) => t.innerType._zod.run(o, n);
1530
1530
  }), Zn = /* @__PURE__ */ d("$ZodNullable", (e, t) => {
1531
- Z.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
1531
+ Z.init(e, t), $(e._zod, "optin", () => t.innerType._zod.optin), $(e._zod, "optout", () => t.innerType._zod.optout), $(e._zod, "pattern", () => {
1532
1532
  const o = t.innerType._zod.pattern;
1533
1533
  return o ? new RegExp(`^(${ze(o.source)}|null)$`) : void 0;
1534
- }), S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (o, n) => o.value === null ? o : t.innerType._zod.run(o, n);
1534
+ }), $(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (o, n) => o.value === null ? o : t.innerType._zod.run(o, n);
1535
1535
  }), Pn = /* @__PURE__ */ d("$ZodDefault", (e, t) => {
1536
- Z.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => {
1536
+ Z.init(e, t), e._zod.optin = "optional", $(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => {
1537
1537
  if (n.direction === "backward")
1538
1538
  return t.innerType._zod.run(o, n);
1539
1539
  if (o.value === void 0)
@@ -1546,9 +1546,9 @@ function Ce(e, t) {
1546
1546
  return e.value === void 0 && (e.value = t.defaultValue), e;
1547
1547
  }
1548
1548
  const On = /* @__PURE__ */ d("$ZodPrefault", (e, t) => {
1549
- Z.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => (n.direction === "backward" || o.value === void 0 && (o.value = t.defaultValue), t.innerType._zod.run(o, n));
1549
+ Z.init(e, t), e._zod.optin = "optional", $(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => (n.direction === "backward" || o.value === void 0 && (o.value = t.defaultValue), t.innerType._zod.run(o, n));
1550
1550
  }), Tn = /* @__PURE__ */ d("$ZodNonOptional", (e, t) => {
1551
- Z.init(e, t), S(e._zod, "values", () => {
1551
+ Z.init(e, t), $(e._zod, "values", () => {
1552
1552
  const o = t.innerType._zod.values;
1553
1553
  return o ? new Set([...o].filter((n) => n !== void 0)) : void 0;
1554
1554
  }), e._zod.parse = (o, n) => {
@@ -1565,7 +1565,7 @@ function Ae(e, t) {
1565
1565
  }), e;
1566
1566
  }
1567
1567
  const In = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
1568
- Z.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => {
1568
+ Z.init(e, t), $(e._zod, "optin", () => t.innerType._zod.optin), $(e._zod, "optout", () => t.innerType._zod.optout), $(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => {
1569
1569
  if (n.direction === "backward")
1570
1570
  return t.innerType._zod.run(o, n);
1571
1571
  const r = t.innerType._zod.run(o, n);
@@ -1584,7 +1584,7 @@ const In = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
1584
1584
  }), o.issues = []), o);
1585
1585
  };
1586
1586
  }), Nn = /* @__PURE__ */ d("$ZodPipe", (e, t) => {
1587
- Z.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), S(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (o, n) => {
1587
+ Z.init(e, t), $(e._zod, "values", () => t.in._zod.values), $(e._zod, "optin", () => t.in._zod.optin), $(e._zod, "optout", () => t.out._zod.optout), $(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (o, n) => {
1588
1588
  if (n.direction === "backward") {
1589
1589
  const a = t.out._zod.run(o, n);
1590
1590
  return a instanceof Promise ? a.then((i) => ne(i, t.in, n)) : ne(a, t.in, n);
@@ -1597,7 +1597,7 @@ function ne(e, t, o) {
1597
1597
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, o);
1598
1598
  }
1599
1599
  const En = /* @__PURE__ */ d("$ZodReadonly", (e, t) => {
1600
- Z.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "values", () => t.innerType._zod.values), S(e._zod, "optin", () => t.innerType?._zod?.optin), S(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (o, n) => {
1600
+ Z.init(e, t), $(e._zod, "propValues", () => t.innerType._zod.propValues), $(e._zod, "values", () => t.innerType._zod.values), $(e._zod, "optin", () => t.innerType?._zod?.optin), $(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (o, n) => {
1601
1601
  if (n.direction === "backward")
1602
1602
  return t.innerType._zod.run(o, n);
1603
1603
  const r = t.innerType._zod.run(o, n);
@@ -1608,7 +1608,7 @@ function xe(e) {
1608
1608
  return e.value = Object.freeze(e.value), e;
1609
1609
  }
1610
1610
  const Cn = /* @__PURE__ */ d("$ZodLazy", (e, t) => {
1611
- Z.init(e, t), S(e._zod, "innerType", () => t.getter()), S(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), S(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), S(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), S(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (o, n) => e._zod.innerType._zod.run(o, n);
1611
+ Z.init(e, t), $(e._zod, "innerType", () => t.getter()), $(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), $(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), $(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), $(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (o, n) => e._zod.innerType._zod.run(o, n);
1612
1612
  }), An = /* @__PURE__ */ d("$ZodCustom", (e, t) => {
1613
1613
  x.init(e, t), Z.init(e, t), e._zod.parse = (o, n) => o, e._zod.check = (o) => {
1614
1614
  const n = o.value, r = t.fn(n);
@@ -1671,7 +1671,7 @@ const Y = globalThis.__zod_globalRegistry;
1671
1671
  function Rn(e, t) {
1672
1672
  return new e({
1673
1673
  type: "string",
1674
- ...y(t)
1674
+ ...z(t)
1675
1675
  });
1676
1676
  }
1677
1677
  // @__NO_SIDE_EFFECTS__
@@ -1681,7 +1681,7 @@ function Dn(e, t) {
1681
1681
  format: "email",
1682
1682
  check: "string_format",
1683
1683
  abort: !1,
1684
- ...y(t)
1684
+ ...z(t)
1685
1685
  });
1686
1686
  }
1687
1687
  // @__NO_SIDE_EFFECTS__
@@ -1691,7 +1691,7 @@ function De(e, t) {
1691
1691
  format: "guid",
1692
1692
  check: "string_format",
1693
1693
  abort: !1,
1694
- ...y(t)
1694
+ ...z(t)
1695
1695
  });
1696
1696
  }
1697
1697
  // @__NO_SIDE_EFFECTS__
@@ -1701,7 +1701,7 @@ function Un(e, t) {
1701
1701
  format: "uuid",
1702
1702
  check: "string_format",
1703
1703
  abort: !1,
1704
- ...y(t)
1704
+ ...z(t)
1705
1705
  });
1706
1706
  }
1707
1707
  // @__NO_SIDE_EFFECTS__
@@ -1712,7 +1712,7 @@ function Fn(e, t) {
1712
1712
  check: "string_format",
1713
1713
  abort: !1,
1714
1714
  version: "v4",
1715
- ...y(t)
1715
+ ...z(t)
1716
1716
  });
1717
1717
  }
1718
1718
  // @__NO_SIDE_EFFECTS__
@@ -1723,7 +1723,7 @@ function Ln(e, t) {
1723
1723
  check: "string_format",
1724
1724
  abort: !1,
1725
1725
  version: "v6",
1726
- ...y(t)
1726
+ ...z(t)
1727
1727
  });
1728
1728
  }
1729
1729
  // @__NO_SIDE_EFFECTS__
@@ -1734,7 +1734,7 @@ function Mn(e, t) {
1734
1734
  check: "string_format",
1735
1735
  abort: !1,
1736
1736
  version: "v7",
1737
- ...y(t)
1737
+ ...z(t)
1738
1738
  });
1739
1739
  }
1740
1740
  // @__NO_SIDE_EFFECTS__
@@ -1744,7 +1744,7 @@ function Jn(e, t) {
1744
1744
  format: "url",
1745
1745
  check: "string_format",
1746
1746
  abort: !1,
1747
- ...y(t)
1747
+ ...z(t)
1748
1748
  });
1749
1749
  }
1750
1750
  // @__NO_SIDE_EFFECTS__
@@ -1754,7 +1754,7 @@ function Bn(e, t) {
1754
1754
  format: "emoji",
1755
1755
  check: "string_format",
1756
1756
  abort: !1,
1757
- ...y(t)
1757
+ ...z(t)
1758
1758
  });
1759
1759
  }
1760
1760
  // @__NO_SIDE_EFFECTS__
@@ -1764,7 +1764,7 @@ function Vn(e, t) {
1764
1764
  format: "nanoid",
1765
1765
  check: "string_format",
1766
1766
  abort: !1,
1767
- ...y(t)
1767
+ ...z(t)
1768
1768
  });
1769
1769
  }
1770
1770
  // @__NO_SIDE_EFFECTS__
@@ -1774,7 +1774,7 @@ function Wn(e, t) {
1774
1774
  format: "cuid",
1775
1775
  check: "string_format",
1776
1776
  abort: !1,
1777
- ...y(t)
1777
+ ...z(t)
1778
1778
  });
1779
1779
  }
1780
1780
  // @__NO_SIDE_EFFECTS__
@@ -1784,7 +1784,7 @@ function Kn(e, t) {
1784
1784
  format: "cuid2",
1785
1785
  check: "string_format",
1786
1786
  abort: !1,
1787
- ...y(t)
1787
+ ...z(t)
1788
1788
  });
1789
1789
  }
1790
1790
  // @__NO_SIDE_EFFECTS__
@@ -1794,7 +1794,7 @@ function qn(e, t) {
1794
1794
  format: "ulid",
1795
1795
  check: "string_format",
1796
1796
  abort: !1,
1797
- ...y(t)
1797
+ ...z(t)
1798
1798
  });
1799
1799
  }
1800
1800
  // @__NO_SIDE_EFFECTS__
@@ -1804,7 +1804,7 @@ function Gn(e, t) {
1804
1804
  format: "xid",
1805
1805
  check: "string_format",
1806
1806
  abort: !1,
1807
- ...y(t)
1807
+ ...z(t)
1808
1808
  });
1809
1809
  }
1810
1810
  // @__NO_SIDE_EFFECTS__
@@ -1814,7 +1814,7 @@ function Xn(e, t) {
1814
1814
  format: "ksuid",
1815
1815
  check: "string_format",
1816
1816
  abort: !1,
1817
- ...y(t)
1817
+ ...z(t)
1818
1818
  });
1819
1819
  }
1820
1820
  // @__NO_SIDE_EFFECTS__
@@ -1824,7 +1824,7 @@ function Yn(e, t) {
1824
1824
  format: "ipv4",
1825
1825
  check: "string_format",
1826
1826
  abort: !1,
1827
- ...y(t)
1827
+ ...z(t)
1828
1828
  });
1829
1829
  }
1830
1830
  // @__NO_SIDE_EFFECTS__
@@ -1834,7 +1834,7 @@ function Hn(e, t) {
1834
1834
  format: "ipv6",
1835
1835
  check: "string_format",
1836
1836
  abort: !1,
1837
- ...y(t)
1837
+ ...z(t)
1838
1838
  });
1839
1839
  }
1840
1840
  // @__NO_SIDE_EFFECTS__
@@ -1844,7 +1844,7 @@ function Qn(e, t) {
1844
1844
  format: "cidrv4",
1845
1845
  check: "string_format",
1846
1846
  abort: !1,
1847
- ...y(t)
1847
+ ...z(t)
1848
1848
  });
1849
1849
  }
1850
1850
  // @__NO_SIDE_EFFECTS__
@@ -1854,7 +1854,7 @@ function er(e, t) {
1854
1854
  format: "cidrv6",
1855
1855
  check: "string_format",
1856
1856
  abort: !1,
1857
- ...y(t)
1857
+ ...z(t)
1858
1858
  });
1859
1859
  }
1860
1860
  // @__NO_SIDE_EFFECTS__
@@ -1864,7 +1864,7 @@ function tr(e, t) {
1864
1864
  format: "base64",
1865
1865
  check: "string_format",
1866
1866
  abort: !1,
1867
- ...y(t)
1867
+ ...z(t)
1868
1868
  });
1869
1869
  }
1870
1870
  // @__NO_SIDE_EFFECTS__
@@ -1874,7 +1874,7 @@ function or(e, t) {
1874
1874
  format: "base64url",
1875
1875
  check: "string_format",
1876
1876
  abort: !1,
1877
- ...y(t)
1877
+ ...z(t)
1878
1878
  });
1879
1879
  }
1880
1880
  // @__NO_SIDE_EFFECTS__
@@ -1884,7 +1884,7 @@ function nr(e, t) {
1884
1884
  format: "e164",
1885
1885
  check: "string_format",
1886
1886
  abort: !1,
1887
- ...y(t)
1887
+ ...z(t)
1888
1888
  });
1889
1889
  }
1890
1890
  // @__NO_SIDE_EFFECTS__
@@ -1894,7 +1894,7 @@ function rr(e, t) {
1894
1894
  format: "jwt",
1895
1895
  check: "string_format",
1896
1896
  abort: !1,
1897
- ...y(t)
1897
+ ...z(t)
1898
1898
  });
1899
1899
  }
1900
1900
  // @__NO_SIDE_EFFECTS__
@@ -1906,7 +1906,7 @@ function ir(e, t) {
1906
1906
  offset: !1,
1907
1907
  local: !1,
1908
1908
  precision: null,
1909
- ...y(t)
1909
+ ...z(t)
1910
1910
  });
1911
1911
  }
1912
1912
  // @__NO_SIDE_EFFECTS__
@@ -1915,7 +1915,7 @@ function ar(e, t) {
1915
1915
  type: "string",
1916
1916
  format: "date",
1917
1917
  check: "string_format",
1918
- ...y(t)
1918
+ ...z(t)
1919
1919
  });
1920
1920
  }
1921
1921
  // @__NO_SIDE_EFFECTS__
@@ -1925,7 +1925,7 @@ function sr(e, t) {
1925
1925
  format: "time",
1926
1926
  check: "string_format",
1927
1927
  precision: null,
1928
- ...y(t)
1928
+ ...z(t)
1929
1929
  });
1930
1930
  }
1931
1931
  // @__NO_SIDE_EFFECTS__
@@ -1934,7 +1934,7 @@ function cr(e, t) {
1934
1934
  type: "string",
1935
1935
  format: "duration",
1936
1936
  check: "string_format",
1937
- ...y(t)
1937
+ ...z(t)
1938
1938
  });
1939
1939
  }
1940
1940
  // @__NO_SIDE_EFFECTS__
@@ -1942,7 +1942,7 @@ function ur(e, t) {
1942
1942
  return new e({
1943
1943
  type: "number",
1944
1944
  checks: [],
1945
- ...y(t)
1945
+ ...z(t)
1946
1946
  });
1947
1947
  }
1948
1948
  // @__NO_SIDE_EFFECTS__
@@ -1952,21 +1952,21 @@ function lr(e, t) {
1952
1952
  check: "number_format",
1953
1953
  abort: !1,
1954
1954
  format: "safeint",
1955
- ...y(t)
1955
+ ...z(t)
1956
1956
  });
1957
1957
  }
1958
1958
  // @__NO_SIDE_EFFECTS__
1959
1959
  function pr(e, t) {
1960
1960
  return new e({
1961
1961
  type: "boolean",
1962
- ...y(t)
1962
+ ...z(t)
1963
1963
  });
1964
1964
  }
1965
1965
  // @__NO_SIDE_EFFECTS__
1966
1966
  function dr(e, t) {
1967
1967
  return new e({
1968
1968
  type: "null",
1969
- ...y(t)
1969
+ ...z(t)
1970
1970
  });
1971
1971
  }
1972
1972
  // @__NO_SIDE_EFFECTS__
@@ -1979,14 +1979,14 @@ function fr(e) {
1979
1979
  function hr(e, t) {
1980
1980
  return new e({
1981
1981
  type: "never",
1982
- ...y(t)
1982
+ ...z(t)
1983
1983
  });
1984
1984
  }
1985
1985
  // @__NO_SIDE_EFFECTS__
1986
1986
  function Ue(e, t) {
1987
1987
  return new at({
1988
1988
  check: "less_than",
1989
- ...y(t),
1989
+ ...z(t),
1990
1990
  value: e,
1991
1991
  inclusive: !1
1992
1992
  });
@@ -1995,7 +1995,7 @@ function Ue(e, t) {
1995
1995
  function he(e, t) {
1996
1996
  return new at({
1997
1997
  check: "less_than",
1998
- ...y(t),
1998
+ ...z(t),
1999
1999
  value: e,
2000
2000
  inclusive: !0
2001
2001
  });
@@ -2004,7 +2004,7 @@ function he(e, t) {
2004
2004
  function Fe(e, t) {
2005
2005
  return new st({
2006
2006
  check: "greater_than",
2007
- ...y(t),
2007
+ ...z(t),
2008
2008
  value: e,
2009
2009
  inclusive: !1
2010
2010
  });
@@ -2013,16 +2013,16 @@ function Fe(e, t) {
2013
2013
  function me(e, t) {
2014
2014
  return new st({
2015
2015
  check: "greater_than",
2016
- ...y(t),
2016
+ ...z(t),
2017
2017
  value: e,
2018
2018
  inclusive: !0
2019
2019
  });
2020
2020
  }
2021
2021
  // @__NO_SIDE_EFFECTS__
2022
2022
  function Le(e, t) {
2023
- return new So({
2023
+ return new $o({
2024
2024
  check: "multiple_of",
2025
- ...y(t),
2025
+ ...z(t),
2026
2026
  value: e
2027
2027
  });
2028
2028
  }
@@ -2030,7 +2030,7 @@ function Le(e, t) {
2030
2030
  function ft(e, t) {
2031
2031
  return new Po({
2032
2032
  check: "max_length",
2033
- ...y(t),
2033
+ ...z(t),
2034
2034
  maximum: e
2035
2035
  });
2036
2036
  }
@@ -2038,7 +2038,7 @@ function ft(e, t) {
2038
2038
  function ce(e, t) {
2039
2039
  return new Oo({
2040
2040
  check: "min_length",
2041
- ...y(t),
2041
+ ...z(t),
2042
2042
  minimum: e
2043
2043
  });
2044
2044
  }
@@ -2046,7 +2046,7 @@ function ce(e, t) {
2046
2046
  function ht(e, t) {
2047
2047
  return new To({
2048
2048
  check: "length_equals",
2049
- ...y(t),
2049
+ ...z(t),
2050
2050
  length: e
2051
2051
  });
2052
2052
  }
@@ -2055,7 +2055,7 @@ function mr(e, t) {
2055
2055
  return new Io({
2056
2056
  check: "string_format",
2057
2057
  format: "regex",
2058
- ...y(t),
2058
+ ...z(t),
2059
2059
  pattern: e
2060
2060
  });
2061
2061
  }
@@ -2064,7 +2064,7 @@ function gr(e) {
2064
2064
  return new No({
2065
2065
  check: "string_format",
2066
2066
  format: "lowercase",
2067
- ...y(e)
2067
+ ...z(e)
2068
2068
  });
2069
2069
  }
2070
2070
  // @__NO_SIDE_EFFECTS__
@@ -2072,7 +2072,7 @@ function _r(e) {
2072
2072
  return new Eo({
2073
2073
  check: "string_format",
2074
2074
  format: "uppercase",
2075
- ...y(e)
2075
+ ...z(e)
2076
2076
  });
2077
2077
  }
2078
2078
  // @__NO_SIDE_EFFECTS__
@@ -2080,7 +2080,7 @@ function vr(e, t) {
2080
2080
  return new Co({
2081
2081
  check: "string_format",
2082
2082
  format: "includes",
2083
- ...y(t),
2083
+ ...z(t),
2084
2084
  includes: e
2085
2085
  });
2086
2086
  }
@@ -2089,7 +2089,7 @@ function br(e, t) {
2089
2089
  return new Ao({
2090
2090
  check: "string_format",
2091
2091
  format: "starts_with",
2092
- ...y(t),
2092
+ ...z(t),
2093
2093
  prefix: e
2094
2094
  });
2095
2095
  }
@@ -2098,7 +2098,7 @@ function yr(e, t) {
2098
2098
  return new xo({
2099
2099
  check: "string_format",
2100
2100
  format: "ends_with",
2101
- ...y(t),
2101
+ ...z(t),
2102
2102
  suffix: e
2103
2103
  });
2104
2104
  }
@@ -2122,11 +2122,11 @@ function wr() {
2122
2122
  return /* @__PURE__ */ X((e) => e.toLowerCase());
2123
2123
  }
2124
2124
  // @__NO_SIDE_EFFECTS__
2125
- function $r() {
2125
+ function Sr() {
2126
2126
  return /* @__PURE__ */ X((e) => e.toUpperCase());
2127
2127
  }
2128
2128
  // @__NO_SIDE_EFFECTS__
2129
- function Sr() {
2129
+ function $r() {
2130
2130
  return /* @__PURE__ */ X((e) => Ot(e));
2131
2131
  }
2132
2132
  // @__NO_SIDE_EFFECTS__
@@ -2137,7 +2137,7 @@ function Zr(e, t, o) {
2137
2137
  // get element() {
2138
2138
  // return element;
2139
2139
  // },
2140
- ...y(o)
2140
+ ...z(o)
2141
2141
  });
2142
2142
  }
2143
2143
  // @__NO_SIDE_EFFECTS__
@@ -2146,7 +2146,7 @@ function Pr(e, t, o) {
2146
2146
  type: "custom",
2147
2147
  check: "custom",
2148
2148
  fn: t,
2149
- ...y(o)
2149
+ ...z(o)
2150
2150
  });
2151
2151
  }
2152
2152
  // @__NO_SIDE_EFFECTS__
@@ -2165,7 +2165,7 @@ function Or(e) {
2165
2165
  function Tr(e, t) {
2166
2166
  const o = new x({
2167
2167
  check: "custom",
2168
- ...y(t)
2168
+ ...z(t)
2169
2169
  });
2170
2170
  return o._zod.check = e, o;
2171
2171
  }
@@ -2197,21 +2197,21 @@ function T(e, t, o = { path: [], schemaPath: [] }) {
2197
2197
  if (u)
2198
2198
  i.schema = u;
2199
2199
  else {
2200
- const f = {
2200
+ const h = {
2201
2201
  ...o,
2202
2202
  schemaPath: [...o.schemaPath, e],
2203
2203
  path: o.path
2204
2204
  };
2205
2205
  if (e._zod.processJSONSchema)
2206
- e._zod.processJSONSchema(t, i.schema, f);
2206
+ e._zod.processJSONSchema(t, i.schema, h);
2207
2207
  else {
2208
- const k = i.schema, $ = t.processors[r.type];
2209
- if (!$)
2208
+ const w = i.schema, S = t.processors[r.type];
2209
+ if (!S)
2210
2210
  throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);
2211
- $(e, t, k, f);
2211
+ S(e, t, w, h);
2212
2212
  }
2213
2213
  const m = e._zod.parent;
2214
- m && (i.ref || (i.ref = m), T(m, t, f), t.seen.get(m).isParent = !0);
2214
+ m && (i.ref || (i.ref = m), T(m, t, h), t.seen.get(m).isParent = !0);
2215
2215
  }
2216
2216
  const l = t.metadataRegistry.get(e);
2217
2217
  return l && Object.assign(i.schema, l), t.io === "input" && C(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && i.schema._prefault && ((n = i.schema).default ?? (n.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
@@ -2233,25 +2233,25 @@ function gt(e, t) {
2233
2233
  const r = (i) => {
2234
2234
  const u = e.target === "draft-2020-12" ? "$defs" : "definitions";
2235
2235
  if (e.external) {
2236
- const m = e.external.registry.get(i[0])?.id, k = e.external.uri ?? ((E) => E);
2236
+ const m = e.external.registry.get(i[0])?.id, w = e.external.uri ?? ((E) => E);
2237
2237
  if (m)
2238
- return { ref: k(m) };
2239
- const $ = i[1].defId ?? i[1].schema.id ?? `schema${e.counter++}`;
2240
- return i[1].defId = $, { defId: $, ref: `${k("__shared")}#/${u}/${$}` };
2238
+ return { ref: w(m) };
2239
+ const S = i[1].defId ?? i[1].schema.id ?? `schema${e.counter++}`;
2240
+ return i[1].defId = S, { defId: S, ref: `${w("__shared")}#/${u}/${S}` };
2241
2241
  }
2242
2242
  if (i[1] === o)
2243
2243
  return { ref: "#" };
2244
- const p = `#/${u}/`, f = i[1].schema.id ?? `__schema${e.counter++}`;
2245
- return { defId: f, ref: p + f };
2244
+ const p = `#/${u}/`, h = i[1].schema.id ?? `__schema${e.counter++}`;
2245
+ return { defId: h, ref: p + h };
2246
2246
  }, a = (i) => {
2247
2247
  if (i[1].schema.$ref)
2248
2248
  return;
2249
2249
  const u = i[1], { ref: l, defId: p } = r(i);
2250
2250
  u.def = { ...u.schema }, p && (u.defId = p);
2251
- const f = u.schema;
2252
- for (const m in f)
2253
- delete f[m];
2254
- f.$ref = l;
2251
+ const h = u.schema;
2252
+ for (const m in h)
2253
+ delete h[m];
2254
+ h.$ref = l;
2255
2255
  };
2256
2256
  if (e.cycles === "throw")
2257
2257
  for (const i of e.seen.entries()) {
@@ -2296,24 +2296,24 @@ function _t(e, t) {
2296
2296
  const u = e.seen.get(i);
2297
2297
  if (u.ref === null)
2298
2298
  return;
2299
- const l = u.def ?? u.schema, p = { ...l }, f = u.ref;
2300
- if (u.ref = null, f) {
2301
- n(f);
2302
- const k = e.seen.get(f), $ = k.schema;
2303
- if ($.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (l.allOf = l.allOf ?? [], l.allOf.push($)) : Object.assign(l, $), Object.assign(l, p), i._zod.parent === f)
2299
+ const l = u.def ?? u.schema, p = { ...l }, h = u.ref;
2300
+ if (u.ref = null, h) {
2301
+ n(h);
2302
+ const w = e.seen.get(h), S = w.schema;
2303
+ if (S.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (l.allOf = l.allOf ?? [], l.allOf.push(S)) : Object.assign(l, S), Object.assign(l, p), i._zod.parent === h)
2304
2304
  for (const N in l)
2305
2305
  N === "$ref" || N === "allOf" || N in p || delete l[N];
2306
- if ($.$ref && k.def)
2306
+ if (S.$ref && w.def)
2307
2307
  for (const N in l)
2308
- N === "$ref" || N === "allOf" || N in k.def && JSON.stringify(l[N]) === JSON.stringify(k.def[N]) && delete l[N];
2308
+ N === "$ref" || N === "allOf" || N in w.def && JSON.stringify(l[N]) === JSON.stringify(w.def[N]) && delete l[N];
2309
2309
  }
2310
2310
  const m = i._zod.parent;
2311
- if (m && m !== f) {
2311
+ if (m && m !== h) {
2312
2312
  n(m);
2313
- const k = e.seen.get(m);
2314
- if (k?.schema.$ref && (l.$ref = k.schema.$ref, k.def))
2315
- for (const $ in l)
2316
- $ === "$ref" || $ === "allOf" || $ in k.def && JSON.stringify(l[$]) === JSON.stringify(k.def[$]) && delete l[$];
2313
+ const w = e.seen.get(m);
2314
+ if (w?.schema.$ref && (l.$ref = w.schema.$ref, w.def))
2315
+ for (const S in l)
2316
+ S === "$ref" || S === "allOf" || S in w.def && JSON.stringify(l[S]) === JSON.stringify(w.def[S]) && delete l[S];
2317
2317
  }
2318
2318
  e.override({
2319
2319
  zodSchema: i,
@@ -2414,17 +2414,17 @@ const Ir = (e, t = {}) => (o) => {
2414
2414
  r.type = "string";
2415
2415
  const { minimum: a, maximum: i, format: u, patterns: l, contentEncoding: p } = e._zod.bag;
2416
2416
  if (typeof a == "number" && (r.minLength = a), typeof i == "number" && (r.maxLength = i), u && (r.format = Nr[u] ?? u, r.format === "" && delete r.format, u === "time" && delete r.format), p && (r.contentEncoding = p), l && l.size > 0) {
2417
- const f = [...l];
2418
- f.length === 1 ? r.pattern = f[0].source : f.length > 1 && (r.allOf = [
2419
- ...f.map((m) => ({
2417
+ const h = [...l];
2418
+ h.length === 1 ? r.pattern = h[0].source : h.length > 1 && (r.allOf = [
2419
+ ...h.map((m) => ({
2420
2420
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
2421
2421
  pattern: m.source
2422
2422
  }))
2423
2423
  ]);
2424
2424
  }
2425
2425
  }, Cr = (e, t, o, n) => {
2426
- const r = o, { minimum: a, maximum: i, format: u, multipleOf: l, exclusiveMaximum: p, exclusiveMinimum: f } = e._zod.bag;
2427
- typeof u == "string" && u.includes("int") ? r.type = "integer" : r.type = "number", typeof f == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (r.minimum = f, r.exclusiveMinimum = !0) : r.exclusiveMinimum = f), typeof a == "number" && (r.minimum = a, typeof f == "number" && t.target !== "draft-04" && (f >= a ? delete r.minimum : delete r.exclusiveMinimum)), typeof p == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (r.maximum = p, r.exclusiveMaximum = !0) : r.exclusiveMaximum = p), typeof i == "number" && (r.maximum = i, typeof p == "number" && t.target !== "draft-04" && (p <= i ? delete r.maximum : delete r.exclusiveMaximum)), typeof l == "number" && (r.multipleOf = l);
2426
+ const r = o, { minimum: a, maximum: i, format: u, multipleOf: l, exclusiveMaximum: p, exclusiveMinimum: h } = e._zod.bag;
2427
+ typeof u == "string" && u.includes("int") ? r.type = "integer" : r.type = "number", typeof h == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (r.minimum = h, r.exclusiveMinimum = !0) : r.exclusiveMinimum = h), typeof a == "number" && (r.minimum = a, typeof h == "number" && t.target !== "draft-04" && (h >= a ? delete r.minimum : delete r.exclusiveMinimum)), typeof p == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (r.maximum = p, r.exclusiveMaximum = !0) : r.exclusiveMaximum = p), typeof i == "number" && (r.maximum = i, typeof p == "number" && t.target !== "draft-04" && (p <= i ? delete r.maximum : delete r.exclusiveMaximum)), typeof l == "number" && (r.multipleOf = l);
2428
2428
  }, Ar = (e, t, o, n) => {
2429
2429
  o.type = "boolean";
2430
2430
  }, xr = (e, t, o, n) => {
@@ -2454,8 +2454,8 @@ const Ir = (e, t = {}) => (o) => {
2454
2454
  path: [...n.path, "properties", p]
2455
2455
  });
2456
2456
  const u = new Set(Object.keys(i)), l = new Set([...u].filter((p) => {
2457
- const f = a.shape[p]._zod;
2458
- return t.io === "input" ? f.optin === void 0 : f.optout === void 0;
2457
+ const h = a.shape[p]._zod;
2458
+ return t.io === "input" ? h.optin === void 0 : h.optout === void 0;
2459
2459
  }));
2460
2460
  l.size > 0 && (r.required = Array.from(l)), a.catchall?._zod.def.type === "never" ? r.additionalProperties = !1 : a.catchall ? a.catchall && (r.additionalProperties = T(a.catchall, t, {
2461
2461
  ...n,
@@ -2482,9 +2482,9 @@ const Ir = (e, t = {}) => (o) => {
2482
2482
  }, Vr = (e, t, o, n) => {
2483
2483
  const r = o, a = e._zod.def;
2484
2484
  r.type = "array";
2485
- const i = t.target === "draft-2020-12" ? "prefixItems" : "items", u = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", l = a.items.map((k, $) => T(k, t, {
2485
+ const i = t.target === "draft-2020-12" ? "prefixItems" : "items", u = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", l = a.items.map((w, S) => T(w, t, {
2486
2486
  ...n,
2487
- path: [...n.path, i, $]
2487
+ path: [...n.path, i, S]
2488
2488
  })), p = a.rest ? T(a.rest, t, {
2489
2489
  ...n,
2490
2490
  path: [...n.path, u, ...t.target === "openapi-3.0" ? [a.items.length] : []]
@@ -2492,20 +2492,20 @@ const Ir = (e, t = {}) => (o) => {
2492
2492
  t.target === "draft-2020-12" ? (r.prefixItems = l, p && (r.items = p)) : t.target === "openapi-3.0" ? (r.items = {
2493
2493
  anyOf: l
2494
2494
  }, p && r.items.anyOf.push(p), r.minItems = l.length, p || (r.maxItems = l.length)) : (r.items = l, p && (r.additionalItems = p));
2495
- const { minimum: f, maximum: m } = e._zod.bag;
2496
- typeof f == "number" && (r.minItems = f), typeof m == "number" && (r.maxItems = m);
2495
+ const { minimum: h, maximum: m } = e._zod.bag;
2496
+ typeof h == "number" && (r.minItems = h), typeof m == "number" && (r.maxItems = m);
2497
2497
  }, Wr = (e, t, o, n) => {
2498
2498
  const r = o, a = e._zod.def;
2499
2499
  r.type = "object";
2500
2500
  const i = a.keyType, l = i._zod.bag?.patterns;
2501
2501
  if (a.mode === "loose" && l && l.size > 0) {
2502
- const f = T(a.valueType, t, {
2502
+ const h = T(a.valueType, t, {
2503
2503
  ...n,
2504
2504
  path: [...n.path, "patternProperties", "*"]
2505
2505
  });
2506
2506
  r.patternProperties = {};
2507
2507
  for (const m of l)
2508
- r.patternProperties[m.source] = f;
2508
+ r.patternProperties[m.source] = h;
2509
2509
  } else
2510
2510
  (t.target === "draft-07" || t.target === "draft-2020-12") && (r.propertyNames = T(a.keyType, t, {
2511
2511
  ...n,
@@ -2516,8 +2516,8 @@ const Ir = (e, t = {}) => (o) => {
2516
2516
  });
2517
2517
  const p = i._zod.values;
2518
2518
  if (p) {
2519
- const f = [...p].filter((m) => typeof m == "string" || typeof m == "number");
2520
- f.length > 0 && (r.required = f);
2519
+ const h = [...p].filter((m) => typeof m == "string" || typeof m == "number");
2520
+ h.length > 0 && (r.required = h);
2521
2521
  }
2522
2522
  }, Kr = (e, t, o, n) => {
2523
2523
  const r = e._zod.def, a = T(r.innerType, t, n), i = t.seen.get(e);
@@ -2624,7 +2624,7 @@ const bt = (e, t) => {
2624
2624
  });
2625
2625
  }, ui = d("ZodError", bt), j = d("ZodError", bt, {
2626
2626
  Parent: Error
2627
- }), li = /* @__PURE__ */ we(j), pi = /* @__PURE__ */ $e(j), di = /* @__PURE__ */ pe(j), fi = /* @__PURE__ */ de(j), hi = /* @__PURE__ */ Bt(j), mi = /* @__PURE__ */ Vt(j), gi = /* @__PURE__ */ Wt(j), _i = /* @__PURE__ */ Kt(j), vi = /* @__PURE__ */ qt(j), bi = /* @__PURE__ */ Gt(j), yi = /* @__PURE__ */ Xt(j), zi = /* @__PURE__ */ Yt(j), P = /* @__PURE__ */ d("ZodType", (e, t) => (Z.init(e, t), Object.assign(e["~standard"], {
2627
+ }), li = /* @__PURE__ */ we(j), pi = /* @__PURE__ */ Se(j), di = /* @__PURE__ */ pe(j), fi = /* @__PURE__ */ de(j), hi = /* @__PURE__ */ Bt(j), mi = /* @__PURE__ */ Vt(j), gi = /* @__PURE__ */ Wt(j), _i = /* @__PURE__ */ Kt(j), vi = /* @__PURE__ */ qt(j), bi = /* @__PURE__ */ Gt(j), yi = /* @__PURE__ */ Xt(j), zi = /* @__PURE__ */ Yt(j), P = /* @__PURE__ */ d("ZodType", (e, t) => (Z.init(e, t), Object.assign(e["~standard"], {
2628
2628
  jsonSchema: {
2629
2629
  input: ue(e, "input"),
2630
2630
  output: ue(e, "output")
@@ -2636,7 +2636,7 @@ const bt = (e, t) => {
2636
2636
  ]
2637
2637
  }), {
2638
2638
  parent: !0
2639
- }), e.with = e.check, e.clone = (o, n) => J(e, o, n), e.brand = () => e, e.register = ((o, n) => (o.add(e, n), e)), e.parse = (o, n) => li(e, o, n, { callee: e.parse }), e.safeParse = (o, n) => di(e, o, n), e.parseAsync = async (o, n) => pi(e, o, n, { callee: e.parseAsync }), e.safeParseAsync = async (o, n) => fi(e, o, n), e.spa = e.safeParseAsync, e.encode = (o, n) => hi(e, o, n), e.decode = (o, n) => mi(e, o, n), e.encodeAsync = async (o, n) => gi(e, o, n), e.decodeAsync = async (o, n) => _i(e, o, n), e.safeEncode = (o, n) => vi(e, o, n), e.safeDecode = (o, n) => bi(e, o, n), e.safeEncodeAsync = async (o, n) => yi(e, o, n), e.safeDecodeAsync = async (o, n) => zi(e, o, n), e.refine = (o, n) => e.check(_a(o, n)), e.superRefine = (o) => e.check(va(o)), e.overwrite = (o) => e.check(/* @__PURE__ */ X(o)), e.optional = () => Be(e), e.exactOptional = () => oa(e), e.nullable = () => Ve(e), e.nullish = () => Be(Ve(e)), e.nonoptional = (o) => ca(e, o), e.array = () => L(e), e.or = (o) => z([e, o]), e.and = (o) => Xi(e, o), e.transform = (o) => We(e, ea(o)), e.default = (o) => ia(e, o), e.prefault = (o) => sa(e, o), e.catch = (o) => la(e, o), e.pipe = (o) => We(e, o), e.readonly = () => fa(e), e.describe = (o) => {
2639
+ }), e.with = e.check, e.clone = (o, n) => J(e, o, n), e.brand = () => e, e.register = ((o, n) => (o.add(e, n), e)), e.parse = (o, n) => li(e, o, n, { callee: e.parse }), e.safeParse = (o, n) => di(e, o, n), e.parseAsync = async (o, n) => pi(e, o, n, { callee: e.parseAsync }), e.safeParseAsync = async (o, n) => fi(e, o, n), e.spa = e.safeParseAsync, e.encode = (o, n) => hi(e, o, n), e.decode = (o, n) => mi(e, o, n), e.encodeAsync = async (o, n) => gi(e, o, n), e.decodeAsync = async (o, n) => _i(e, o, n), e.safeEncode = (o, n) => vi(e, o, n), e.safeDecode = (o, n) => bi(e, o, n), e.safeEncodeAsync = async (o, n) => yi(e, o, n), e.safeDecodeAsync = async (o, n) => zi(e, o, n), e.refine = (o, n) => e.check(_a(o, n)), e.superRefine = (o) => e.check(va(o)), e.overwrite = (o) => e.check(/* @__PURE__ */ X(o)), e.optional = () => Be(e), e.exactOptional = () => oa(e), e.nullable = () => Ve(e), e.nullish = () => Be(Ve(e)), e.nonoptional = (o) => ca(e, o), e.array = () => L(e), e.or = (o) => y([e, o]), e.and = (o) => Xi(e, o), e.transform = (o) => We(e, ea(o)), e.default = (o) => ia(e, o), e.prefault = (o) => sa(e, o), e.catch = (o) => la(e, o), e.pipe = (o) => We(e, o), e.readonly = () => fa(e), e.describe = (o) => {
2640
2640
  const n = e.clone();
2641
2641
  return Y.add(n, { description: o }), n;
2642
2642
  }, Object.defineProperty(e, "description", {
@@ -2650,11 +2650,11 @@ const bt = (e, t) => {
2650
2650
  const n = e.clone();
2651
2651
  return Y.add(n, o[0]), n;
2652
2652
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (o) => o(e), e)), yt = /* @__PURE__ */ d("_ZodString", (e, t) => {
2653
- Se.init(e, t), P.init(e, t), e._zod.processJSONSchema = (n, r, a) => Er(e, n, r);
2653
+ $e.init(e, t), P.init(e, t), e._zod.processJSONSchema = (n, r, a) => Er(e, n, r);
2654
2654
  const o = e._zod.bag;
2655
- e.format = o.format ?? null, e.minLength = o.minimum ?? null, e.maxLength = o.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ mr(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ vr(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ br(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ yr(...n)), e.min = (...n) => e.check(/* @__PURE__ */ ce(...n)), e.max = (...n) => e.check(/* @__PURE__ */ ft(...n)), e.length = (...n) => e.check(/* @__PURE__ */ ht(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ ce(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ gr(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ _r(n)), e.trim = () => e.check(/* @__PURE__ */ kr()), e.normalize = (...n) => e.check(/* @__PURE__ */ zr(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ wr()), e.toUpperCase = () => e.check(/* @__PURE__ */ $r()), e.slugify = () => e.check(/* @__PURE__ */ Sr());
2655
+ e.format = o.format ?? null, e.minLength = o.minimum ?? null, e.maxLength = o.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ mr(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ vr(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ br(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ yr(...n)), e.min = (...n) => e.check(/* @__PURE__ */ ce(...n)), e.max = (...n) => e.check(/* @__PURE__ */ ft(...n)), e.length = (...n) => e.check(/* @__PURE__ */ ht(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ ce(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ gr(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ _r(n)), e.trim = () => e.check(/* @__PURE__ */ kr()), e.normalize = (...n) => e.check(/* @__PURE__ */ zr(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ wr()), e.toUpperCase = () => e.check(/* @__PURE__ */ Sr()), e.slugify = () => e.check(/* @__PURE__ */ $r());
2656
2656
  }), ki = /* @__PURE__ */ d("ZodString", (e, t) => {
2657
- Se.init(e, t), yt.init(e, t), e.email = (o) => e.check(/* @__PURE__ */ Dn(wi, o)), e.url = (o) => e.check(/* @__PURE__ */ Jn($i, o)), e.jwt = (o) => e.check(/* @__PURE__ */ rr(Ui, o)), e.emoji = (o) => e.check(/* @__PURE__ */ Bn(Si, o)), e.guid = (o) => e.check(/* @__PURE__ */ De(Me, o)), e.uuid = (o) => e.check(/* @__PURE__ */ Un(re, o)), e.uuidv4 = (o) => e.check(/* @__PURE__ */ Fn(re, o)), e.uuidv6 = (o) => e.check(/* @__PURE__ */ Ln(re, o)), e.uuidv7 = (o) => e.check(/* @__PURE__ */ Mn(re, o)), e.nanoid = (o) => e.check(/* @__PURE__ */ Vn(Zi, o)), e.guid = (o) => e.check(/* @__PURE__ */ De(Me, o)), e.cuid = (o) => e.check(/* @__PURE__ */ Wn(Pi, o)), e.cuid2 = (o) => e.check(/* @__PURE__ */ Kn(Oi, o)), e.ulid = (o) => e.check(/* @__PURE__ */ qn(Ti, o)), e.base64 = (o) => e.check(/* @__PURE__ */ tr(ji, o)), e.base64url = (o) => e.check(/* @__PURE__ */ or(Ri, o)), e.xid = (o) => e.check(/* @__PURE__ */ Gn(Ii, o)), e.ksuid = (o) => e.check(/* @__PURE__ */ Xn(Ni, o)), e.ipv4 = (o) => e.check(/* @__PURE__ */ Yn(Ei, o)), e.ipv6 = (o) => e.check(/* @__PURE__ */ Hn(Ci, o)), e.cidrv4 = (o) => e.check(/* @__PURE__ */ Qn(Ai, o)), e.cidrv6 = (o) => e.check(/* @__PURE__ */ er(xi, o)), e.e164 = (o) => e.check(/* @__PURE__ */ nr(Di, o)), e.datetime = (o) => e.check(oi(o)), e.date = (o) => e.check(ri(o)), e.time = (o) => e.check(ai(o)), e.duration = (o) => e.check(ci(o));
2657
+ $e.init(e, t), yt.init(e, t), e.email = (o) => e.check(/* @__PURE__ */ Dn(wi, o)), e.url = (o) => e.check(/* @__PURE__ */ Jn(Si, o)), e.jwt = (o) => e.check(/* @__PURE__ */ rr(Ui, o)), e.emoji = (o) => e.check(/* @__PURE__ */ Bn($i, o)), e.guid = (o) => e.check(/* @__PURE__ */ De(Me, o)), e.uuid = (o) => e.check(/* @__PURE__ */ Un(re, o)), e.uuidv4 = (o) => e.check(/* @__PURE__ */ Fn(re, o)), e.uuidv6 = (o) => e.check(/* @__PURE__ */ Ln(re, o)), e.uuidv7 = (o) => e.check(/* @__PURE__ */ Mn(re, o)), e.nanoid = (o) => e.check(/* @__PURE__ */ Vn(Zi, o)), e.guid = (o) => e.check(/* @__PURE__ */ De(Me, o)), e.cuid = (o) => e.check(/* @__PURE__ */ Wn(Pi, o)), e.cuid2 = (o) => e.check(/* @__PURE__ */ Kn(Oi, o)), e.ulid = (o) => e.check(/* @__PURE__ */ qn(Ti, o)), e.base64 = (o) => e.check(/* @__PURE__ */ tr(ji, o)), e.base64url = (o) => e.check(/* @__PURE__ */ or(Ri, o)), e.xid = (o) => e.check(/* @__PURE__ */ Gn(Ii, o)), e.ksuid = (o) => e.check(/* @__PURE__ */ Xn(Ni, o)), e.ipv4 = (o) => e.check(/* @__PURE__ */ Yn(Ei, o)), e.ipv6 = (o) => e.check(/* @__PURE__ */ Hn(Ci, o)), e.cidrv4 = (o) => e.check(/* @__PURE__ */ Qn(Ai, o)), e.cidrv6 = (o) => e.check(/* @__PURE__ */ er(xi, o)), e.e164 = (o) => e.check(/* @__PURE__ */ nr(Di, o)), e.datetime = (o) => e.check(oi(o)), e.date = (o) => e.check(ri(o)), e.time = (o) => e.check(ai(o)), e.duration = (o) => e.check(ci(o));
2658
2658
  });
2659
2659
  function c(e) {
2660
2660
  return /* @__PURE__ */ Rn(ki, e);
@@ -2667,9 +2667,9 @@ const I = /* @__PURE__ */ d("ZodStringFormat", (e, t) => {
2667
2667
  Uo.init(e, t), I.init(e, t);
2668
2668
  }), re = /* @__PURE__ */ d("ZodUUID", (e, t) => {
2669
2669
  Fo.init(e, t), I.init(e, t);
2670
- }), $i = /* @__PURE__ */ d("ZodURL", (e, t) => {
2670
+ }), Si = /* @__PURE__ */ d("ZodURL", (e, t) => {
2671
2671
  Mo.init(e, t), I.init(e, t);
2672
- }), Si = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
2672
+ }), $i = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
2673
2673
  Jo.init(e, t), I.init(e, t);
2674
2674
  }), Zi = /* @__PURE__ */ d("ZodNanoID", (e, t) => {
2675
2675
  Bo.init(e, t), I.init(e, t);
@@ -2716,13 +2716,13 @@ function Je(e) {
2716
2716
  const Li = /* @__PURE__ */ d("ZodBoolean", (e, t) => {
2717
2717
  dn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Ar(e, o, n);
2718
2718
  });
2719
- function h(e) {
2719
+ function f(e) {
2720
2720
  return /* @__PURE__ */ pr(Li, e);
2721
2721
  }
2722
2722
  const Mi = /* @__PURE__ */ d("ZodNull", (e, t) => {
2723
2723
  fn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => xr(e, o, n);
2724
2724
  });
2725
- function w(e) {
2725
+ function k(e) {
2726
2726
  return /* @__PURE__ */ dr(Mi, e);
2727
2727
  }
2728
2728
  const Ji = /* @__PURE__ */ d("ZodUnknown", (e, t) => {
@@ -2744,24 +2744,24 @@ function L(e, t) {
2744
2744
  return /* @__PURE__ */ Zr(Wi, e, t);
2745
2745
  }
2746
2746
  const Ki = /* @__PURE__ */ d("ZodObject", (e, t) => {
2747
- vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Mr(e, o, n, r), S(e, "shape", () => t.shape), e.keyof = () => v(Object.keys(e._zod.def.shape)), e.catchall = (o) => e.clone({ ...e._zod.def, catchall: o }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: s() }), e.loose = () => e.clone({ ...e._zod.def, catchall: s() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Vi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (o) => xt(e, o), e.safeExtend = (o) => jt(e, o), e.merge = (o) => Rt(e, o), e.pick = (o) => Ct(e, o), e.omit = (o) => At(e, o), e.partial = (...o) => Dt(kt, e, o[0]), e.required = (...o) => Ut(wt, e, o[0]);
2747
+ vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Mr(e, o, n, r), $(e, "shape", () => t.shape), e.keyof = () => v(Object.keys(e._zod.def.shape)), e.catchall = (o) => e.clone({ ...e._zod.def, catchall: o }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: s() }), e.loose = () => e.clone({ ...e._zod.def, catchall: s() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Vi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (o) => xt(e, o), e.safeExtend = (o) => jt(e, o), e.merge = (o) => Rt(e, o), e.pick = (o) => Ct(e, o), e.omit = (o) => At(e, o), e.partial = (...o) => Dt(kt, e, o[0]), e.required = (...o) => Ut(wt, e, o[0]);
2748
2748
  });
2749
2749
  function b(e, t) {
2750
2750
  const o = {
2751
2751
  type: "object",
2752
2752
  shape: e ?? {},
2753
- ...y(t)
2753
+ ...z(t)
2754
2754
  };
2755
2755
  return new Ki(o);
2756
2756
  }
2757
2757
  const qi = /* @__PURE__ */ d("ZodUnion", (e, t) => {
2758
2758
  bn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Jr(e, o, n, r), e.options = t.options;
2759
2759
  });
2760
- function z(e, t) {
2760
+ function y(e, t) {
2761
2761
  return new qi({
2762
2762
  type: "union",
2763
2763
  options: e,
2764
- ...y(t)
2764
+ ...z(t)
2765
2765
  });
2766
2766
  }
2767
2767
  const Gi = /* @__PURE__ */ d("ZodIntersection", (e, t) => {
@@ -2786,7 +2786,7 @@ function W(e, t, o) {
2786
2786
  type: "tuple",
2787
2787
  items: e,
2788
2788
  rest: a,
2789
- ...y(r)
2789
+ ...z(r)
2790
2790
  });
2791
2791
  }
2792
2792
  const Hi = /* @__PURE__ */ d("ZodRecord", (e, t) => {
@@ -2797,7 +2797,7 @@ function H(e, t, o) {
2797
2797
  type: "record",
2798
2798
  keyType: e,
2799
2799
  valueType: t,
2800
- ...y(o)
2800
+ ...z(o)
2801
2801
  });
2802
2802
  }
2803
2803
  const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
@@ -2813,7 +2813,7 @@ const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
2813
2813
  return new ve({
2814
2814
  ...t,
2815
2815
  checks: [],
2816
- ...y(r),
2816
+ ...z(r),
2817
2817
  entries: a
2818
2818
  });
2819
2819
  }, e.exclude = (n, r) => {
@@ -2826,7 +2826,7 @@ const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
2826
2826
  return new ve({
2827
2827
  ...t,
2828
2828
  checks: [],
2829
- ...y(r),
2829
+ ...z(r),
2830
2830
  entries: a
2831
2831
  });
2832
2832
  };
@@ -2836,11 +2836,11 @@ function v(e, t) {
2836
2836
  return new ve({
2837
2837
  type: "enum",
2838
2838
  entries: o,
2839
- ...y(t)
2839
+ ...z(t)
2840
2840
  });
2841
2841
  }
2842
2842
  const Qi = /* @__PURE__ */ d("ZodTransform", (e, t) => {
2843
- $n.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Fr(e, o), e._zod.parse = (o, n) => {
2843
+ Sn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Fr(e, o), e._zod.parse = (o, n) => {
2844
2844
  if (n.direction === "backward")
2845
2845
  throw new Ke(e.constructor.name);
2846
2846
  o.addIssue = (a) => {
@@ -2871,7 +2871,7 @@ function Be(e) {
2871
2871
  });
2872
2872
  }
2873
2873
  const ta = /* @__PURE__ */ d("ZodExactOptional", (e, t) => {
2874
- Sn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => vt(e, o, n, r), e.unwrap = () => e._zod.def.innerType;
2874
+ $n.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => vt(e, o, n, r), e.unwrap = () => e._zod.def.innerType;
2875
2875
  });
2876
2876
  function oa(e) {
2877
2877
  return new ta({
@@ -2919,7 +2919,7 @@ function ca(e, t) {
2919
2919
  return new wt({
2920
2920
  type: "nonoptional",
2921
2921
  innerType: e,
2922
- ...y(t)
2922
+ ...z(t)
2923
2923
  });
2924
2924
  }
2925
2925
  const ua = /* @__PURE__ */ d("ZodCatch", (e, t) => {
@@ -2970,14 +2970,14 @@ function _a(e, t = {}) {
2970
2970
  function va(e) {
2971
2971
  return /* @__PURE__ */ Or(e);
2972
2972
  }
2973
- const g = z([
2973
+ const g = y([
2974
2974
  c(),
2975
2975
  _(),
2976
- h(),
2977
- w(),
2976
+ f(),
2977
+ k(),
2978
2978
  b({ path: c() })
2979
2979
  ]), ie = ma(
2980
- () => z([
2980
+ () => y([
2981
2981
  b({ and: L(ie) }),
2982
2982
  b({ or: L(ie) }),
2983
2983
  b({ not: ie }),
@@ -2989,8 +2989,8 @@ const g = z([
2989
2989
  b({ lt: W([g, g]) }),
2990
2990
  b({ lte: W([g, g]) })
2991
2991
  ])
2992
- ), ba = z([
2993
- h(),
2992
+ ), ba = y([
2993
+ f(),
2994
2994
  b({ path: c() }),
2995
2995
  b({ auth: v(["signedIn", "signedOut"]) }),
2996
2996
  ie
@@ -3011,62 +3011,62 @@ const g = z([
3011
3011
  // Visual style of the badge. - `"primary"` — High-emphasis badge for important labels - `"secondary"` — Subtle badge for secondary information - `"destructive"` — Error or danger state indicator - `"outline"` — Bordered badge with transparent background - `"beta"` — Dashed-border badge for beta/experimental features
3012
3012
  className: c().optional(),
3013
3013
  // Additional CSS classes merged via `cn()`.
3014
- children: z([c(), _(), h(), w(), g]).optional()
3014
+ children: y([c(), _(), f(), k(), g]).optional()
3015
3015
  // Content rendered inside the badge.
3016
3016
  }), wa = b({
3017
- icon: z([c(), _(), h(), w(), g]).optional(),
3017
+ icon: y([c(), _(), f(), k(), g]).optional(),
3018
3018
  // Icon element rendered before the banner content (e.g. from `@phosphor-icons/react`).
3019
3019
  title: c().optional(),
3020
3020
  // Primary heading text for the banner. Use for i18n string injection.
3021
- description: z([c(), _(), h(), w(), g]).optional(),
3021
+ description: y([c(), _(), f(), k(), g]).optional(),
3022
3022
  // Secondary description text displayed below the title. Use for i18n string injection.
3023
3023
  text: c().optional(),
3024
- children: z([c(), _(), h(), w(), g]).optional(),
3024
+ children: y([c(), _(), f(), k(), g]).optional(),
3025
3025
  variant: v(["default", "alert", "error"]).optional(),
3026
3026
  // Visual style of the banner. - `"default"` — Informational blue banner for general messages - `"alert"` — Warning yellow banner for cautionary messages - `"error"` — Error red banner for critical issues
3027
3027
  className: c().optional()
3028
3028
  // Additional CSS classes merged via `cn()`.
3029
- }), $a = b({
3029
+ }), Sa = b({
3030
3030
  size: v(["sm", "base"]).optional(),
3031
3031
  // Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
3032
- children: z([c(), _(), h(), w(), g]).optional(),
3032
+ children: y([c(), _(), f(), k(), g]).optional(),
3033
3033
  className: c().optional()
3034
3034
  // Additional CSS classes merged via `cn()`.
3035
- }), Sa = b({
3035
+ }), $a = b({
3036
3036
  shape: v(["base", "square", "circle"]).optional(),
3037
3037
  size: v(["xs", "sm", "base", "lg"]).optional(),
3038
3038
  variant: v(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
3039
- children: z([c(), _(), h(), w(), g]).optional(),
3039
+ children: y([c(), _(), f(), k(), g]).optional(),
3040
3040
  className: c().optional(),
3041
- icon: z([c(), _(), h(), w(), g]).optional(),
3041
+ icon: y([c(), _(), f(), k(), g]).optional(),
3042
3042
  // Icon from `@phosphor-icons/react` or a React element. Rendered before children.
3043
- loading: h().optional(),
3043
+ loading: f().optional(),
3044
3044
  // Shows a loading spinner and disables interaction.
3045
3045
  id: c().optional(),
3046
3046
  lang: c().optional(),
3047
3047
  title: c().optional(),
3048
- disabled: h().optional(),
3048
+ disabled: f().optional(),
3049
3049
  name: c().optional(),
3050
3050
  type: v(["submit", "reset", "button"]).optional(),
3051
3051
  value: s().optional()
3052
3052
  }), Za = b({
3053
3053
  variant: v(["default", "error"]).optional(),
3054
3054
  // Visual variant: "default" or "error" for validation failures (visual only, no error text)
3055
- label: z([c(), _(), h(), w(), g]).optional(),
3055
+ label: y([c(), _(), f(), k(), g]).optional(),
3056
3056
  // Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
3057
- labelTooltip: z([c(), _(), h(), w(), g]).optional(),
3057
+ labelTooltip: y([c(), _(), f(), k(), g]).optional(),
3058
3058
  // Tooltip content to display next to the label via an info icon
3059
- controlFirst: h().optional(),
3059
+ controlFirst: f().optional(),
3060
3060
  // When true (default), checkbox appears before label. When false, label appears before checkbox.
3061
- checked: h().optional(),
3061
+ checked: f().optional(),
3062
3062
  // Whether the checkbox is checked (controlled)
3063
- indeterminate: h().optional(),
3063
+ indeterminate: f().optional(),
3064
3064
  // Whether the checkbox is in indeterminate state
3065
- disabled: h().optional(),
3065
+ disabled: f().optional(),
3066
3066
  // Whether the checkbox is disabled
3067
3067
  name: c().optional(),
3068
3068
  // Name for form submission
3069
- required: h().optional(),
3069
+ required: f().optional(),
3070
3070
  // Whether the field is required
3071
3071
  className: c().optional(),
3072
3072
  // Additional class name
@@ -3084,7 +3084,7 @@ const g = z([
3084
3084
  labels: s().optional()
3085
3085
  // Accessible labels for i18n.
3086
3086
  }), Oa = b({
3087
- children: z([c(), _(), h(), w(), g]).optional(),
3087
+ children: y([c(), _(), f(), k(), g]).optional(),
3088
3088
  className: c().optional(),
3089
3089
  height: s().optional(),
3090
3090
  id: c().optional(),
@@ -3349,10 +3349,10 @@ const g = z([
3349
3349
  className: c().optional()
3350
3350
  // Additional CSS classes merged via `cn()`.
3351
3351
  }), Ia = b({
3352
- children: z([c(), _(), h(), w(), g]).optional(),
3352
+ children: y([c(), _(), f(), k(), g]).optional(),
3353
3353
  label: c(),
3354
3354
  // Text label displayed in the trigger button
3355
- open: h().optional(),
3355
+ open: f().optional(),
3356
3356
  // Whether the collapsible content is visible
3357
3357
  className: c().optional(),
3358
3358
  // Additional CSS classes for the content panel
@@ -3367,35 +3367,35 @@ const g = z([
3367
3367
  // Array of items to display in the dropdown
3368
3368
  value: L(s()).optional(),
3369
3369
  // Currently selected value(s)
3370
- children: z([c(), _(), h(), w(), g]).optional(),
3370
+ children: y([c(), _(), f(), k(), g]).optional(),
3371
3371
  // Combobox content (trigger, content, items)
3372
3372
  className: c().optional(),
3373
3373
  // Additional CSS classes
3374
- label: z([c(), _(), h(), w(), g]).optional(),
3374
+ label: y([c(), _(), f(), k(), g]).optional(),
3375
3375
  // Label content for the combobox (enables Field wrapper) - can be a string or any React node
3376
- required: h().optional(),
3376
+ required: f().optional(),
3377
3377
  // Whether the combobox is required
3378
- labelTooltip: z([c(), _(), h(), w(), g]).optional(),
3378
+ labelTooltip: y([c(), _(), f(), k(), g]).optional(),
3379
3379
  // Tooltip content to display next to the label via an info icon
3380
- description: z([c(), _(), h(), w(), g]).optional(),
3380
+ description: y([c(), _(), f(), k(), g]).optional(),
3381
3381
  // Helper text displayed below the combobox
3382
3382
  error: s().optional(),
3383
3383
  // Error message or validation error object
3384
3384
  onValueChange: s().optional(),
3385
3385
  // Callback when selection changes
3386
- multiple: h().optional(),
3386
+ multiple: f().optional(),
3387
3387
  // Allow multiple selections
3388
3388
  isItemEqualToValue: s().optional()
3389
3389
  // Custom equality function for comparing items
3390
3390
  }), Ea = b({
3391
- open: h(),
3391
+ open: f(),
3392
3392
  // Whether the dialog is open
3393
- children: z([c(), _(), h(), w(), g]).optional()
3393
+ children: y([c(), _(), f(), k(), g]).optional()
3394
3394
  // Child content - typically one or more Panel components
3395
3395
  }), Ca = b({
3396
3396
  className: c().optional(),
3397
3397
  // Additional CSS classes
3398
- children: z([c(), _(), h(), w(), g]).optional()
3398
+ children: y([c(), _(), f(), k(), g]).optional()
3399
3399
  // Child elements
3400
3400
  }), Aa = b({
3401
3401
  size: v(["sm", "base", "lg"]).optional(),
@@ -3413,7 +3413,7 @@ const g = z([
3413
3413
  }), xa = b({
3414
3414
  className: c().optional(),
3415
3415
  // Additional CSS classes merged via `cn()`.
3416
- children: z([c(), _(), h(), w(), g]).optional(),
3416
+ children: y([c(), _(), f(), k(), g]).optional(),
3417
3417
  // Dialog content (typically Title, Description, Close, and action buttons).
3418
3418
  size: v(["base", "sm", "lg", "xl"]).optional()
3419
3419
  // Dialog width. - `"sm"` — Small (min 288px) for simple confirmations - `"base"` — Default (min 384px) - `"lg"` — Large (min 512px) for complex content - `"xl"` — Extra large (min 768px) for detailed views
@@ -3423,7 +3423,7 @@ const g = z([
3423
3423
  }), Ra = b({
3424
3424
  size: v(["sm", "base", "lg"]).optional(),
3425
3425
  // Size of the empty state container. - `"sm"` — Compact empty state for smaller containers - `"base"` — Default empty state size - `"lg"` — Large empty state for prominent placement
3426
- icon: z([c(), _(), h(), w(), g]).optional(),
3426
+ icon: y([c(), _(), f(), k(), g]).optional(),
3427
3427
  // Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
3428
3428
  title: c(),
3429
3429
  // Primary heading text for the empty state.
@@ -3431,45 +3431,45 @@ const g = z([
3431
3431
  // Secondary description text displayed below the title.
3432
3432
  commandLine: c().optional(),
3433
3433
  // Shell command displayed in a copyable code block.
3434
- contents: z([c(), _(), h(), w(), g]).optional(),
3434
+ contents: y([c(), _(), f(), k(), g]).optional(),
3435
3435
  // Additional content (buttons, links) rendered below the description.
3436
3436
  className: c().optional()
3437
3437
  // Additional CSS classes merged via `cn()`.
3438
3438
  }), Da = b({
3439
- controlFirst: h().optional(),
3439
+ controlFirst: f().optional(),
3440
3440
  // When `true`, places the control before the label (for checkbox/switch layouts).
3441
- children: z([c(), _(), h(), w(), g]).optional(),
3441
+ children: y([c(), _(), f(), k(), g]).optional(),
3442
3442
  // The form control element(s) to wrap (Input, Select, Checkbox, etc.).
3443
- label: z([c(), _(), h(), w(), g]).optional(),
3443
+ label: y([c(), _(), f(), k(), g]).optional(),
3444
3444
  // The label content — can be a string or any React node.
3445
- required: h().optional(),
3445
+ required: f().optional(),
3446
3446
  // When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
3447
- labelTooltip: z([c(), _(), h(), w(), g]).optional(),
3447
+ labelTooltip: y([c(), _(), f(), k(), g]).optional(),
3448
3448
  // Tooltip content displayed next to the label via an info icon.
3449
3449
  error: s().optional(),
3450
3450
  // Validation error with a message and a browser `ValidityState` match key.
3451
- description: z([c(), _(), h(), w(), g]).optional()
3451
+ description: y([c(), _(), f(), k(), g]).optional()
3452
3452
  // Helper text displayed below the control (hidden when `error` is present).
3453
3453
  }), Ua = b({
3454
- children: z([c(), _(), h(), w(), g]).optional(),
3454
+ children: y([c(), _(), f(), k(), g]).optional(),
3455
3455
  // Grid items to render.
3456
3456
  className: c().optional(),
3457
3457
  // Additional CSS classes merged via `cn()`.
3458
3458
  id: c().optional(),
3459
3459
  lang: c().optional(),
3460
3460
  title: c().optional(),
3461
- mobileDivider: h().optional(),
3461
+ mobileDivider: f().optional(),
3462
3462
  // Show dividers between grid items on mobile (only works with `"4up"` variant).
3463
3463
  gap: v(["none", "sm", "base", "lg"]).optional(),
3464
3464
  // Gap size between grid items. - `"none"` — No gap - `"sm"` — 12px gap - `"base"` — Responsive gap (8px → 24px → 32px) - `"lg"` — 32px gap
3465
3465
  variant: v(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional()
3466
3466
  // Responsive column layout variant. - `"2up"` — 1 col → 2 cols at md - `"side-by-side"` — Always 2 cols - `"2-1"` — 66%/33% split at md - `"1-2"` — 33%/66% split at md - `"3up"` — 1 → 2 → 3 cols - `"4up"` — 1 → 2 → 3 → 4 cols - `"6up"` — 2 → 3 → 4 → 6 cols - `"1-2-4up"` — 1 → 2 → 4 cols
3467
3467
  }), Fa = b({
3468
- label: z([c(), _(), h(), w(), g]).optional(),
3468
+ label: y([c(), _(), f(), k(), g]).optional(),
3469
3469
  // Label content for the input (enables Field wrapper) - can be a string or any React node
3470
- labelTooltip: z([c(), _(), h(), w(), g]).optional(),
3470
+ labelTooltip: y([c(), _(), f(), k(), g]).optional(),
3471
3471
  // Tooltip content to display next to the label via an info icon
3472
- description: z([c(), _(), h(), w(), g]).optional(),
3472
+ description: y([c(), _(), f(), k(), g]).optional(),
3473
3473
  // Helper text displayed below the input
3474
3474
  error: s().optional(),
3475
3475
  // Error message or validation error object
@@ -3478,27 +3478,27 @@ const g = z([
3478
3478
  variant: v(["default", "error"]).optional()
3479
3479
  // Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
3480
3480
  }), La = b({}), Ma = b({
3481
- children: z([c(), _(), h(), w(), g]).optional(),
3481
+ children: y([c(), _(), f(), k(), g]).optional(),
3482
3482
  // The label content — can be a string or any React node.
3483
- showOptional: h().optional(),
3483
+ showOptional: f().optional(),
3484
3484
  // When `true`, shows gray "(optional)" text after the label.
3485
- tooltip: z([c(), _(), h(), w(), g]).optional(),
3485
+ tooltip: y([c(), _(), f(), k(), g]).optional(),
3486
3486
  // Tooltip content displayed next to the label via an info icon.
3487
3487
  className: c().optional(),
3488
3488
  // Additional CSS classes merged via `cn()`.
3489
3489
  htmlFor: c().optional(),
3490
3490
  // The id of the form element this label is associated with
3491
- asContent: h().optional()
3491
+ asContent: f().optional()
3492
3492
  // When true, only renders the inline content (indicators, tooltip) without the outer label element with font styling. Useful when composed inside another label element that already provides the text styling.
3493
3493
  }), Ja = b({
3494
- children: z([c(), _(), h(), w(), g]).optional(),
3494
+ children: y([c(), _(), f(), k(), g]).optional(),
3495
3495
  className: c().optional()
3496
3496
  // Additional CSS classes merged via `cn()`.
3497
3497
  }), Ba = b({
3498
3498
  variant: v(["inline", "current", "plain"]).optional(),
3499
3499
  // Visual style of the link. - `"inline"` — Inline text link that flows with content - `"current"` — Link that inherits color from parent text - `"plain"` — Link without underline decoration
3500
3500
  to: c().optional(),
3501
- children: z([c(), _(), h(), w(), g]).optional(),
3501
+ children: y([c(), _(), f(), k(), g]).optional(),
3502
3502
  className: c().optional(),
3503
3503
  id: c().optional(),
3504
3504
  lang: c().optional(),
@@ -3511,7 +3511,7 @@ const g = z([
3511
3511
  target: s().optional(),
3512
3512
  type: c().optional(),
3513
3513
  referrerPolicy: v(["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"]).optional(),
3514
- render: z([c(), _(), h(), w(), g]).optional()
3514
+ render: y([c(), _(), f(), k(), g]).optional()
3515
3515
  // Allows you to replace the component’s HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
3516
3516
  }), Va = b({
3517
3517
  className: c().optional(),
@@ -3525,14 +3525,14 @@ const g = z([
3525
3525
  // The currently active option value — matched against option index or `id`.
3526
3526
  options: L(s()),
3527
3527
  // Array of menu option configurations.
3528
- optionIds: h().optional()
3528
+ optionIds: f().optional()
3529
3529
  // When true, each option's `id` field is used for matching instead of its array index.
3530
3530
  }), Ka = b({
3531
3531
  customValue: c().optional(),
3532
3532
  // Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage.
3533
3533
  label: c(),
3534
3534
  // Label text displayed above the meter track.
3535
- showValue: h().optional(),
3535
+ showValue: f().optional(),
3536
3536
  // Whether to display the percentage value next to the label.
3537
3537
  trackClassName: c().optional(),
3538
3538
  // Additional CSS classes for the track (background bar).
@@ -3555,7 +3555,7 @@ const g = z([
3555
3555
  // Total number of items across all pages.
3556
3556
  className: c().optional(),
3557
3557
  // Additional CSS classes for the container
3558
- children: z([c(), _(), h(), w(), g]).optional(),
3558
+ children: y([c(), _(), f(), k(), g]).optional(),
3559
3559
  // Compound component children for custom layouts. Use Pagination.Info, Pagination.PageSize, Pagination.Controls, and Pagination.Separator.
3560
3560
  controls: v(["full", "simple"]).optional(),
3561
3561
  text: s().optional()
@@ -3565,7 +3565,7 @@ const g = z([
3565
3565
  }), Xa = b({
3566
3566
  legend: c(),
3567
3567
  // Legend text for the group (required for accessibility)
3568
- children: z([c(), _(), h(), w(), g]).optional(),
3568
+ children: y([c(), _(), f(), k(), g]).optional(),
3569
3569
  // Child Radio.Item components
3570
3570
  orientation: v(["vertical", "horizontal"]).optional(),
3571
3571
  // Layout direction of the radio items
@@ -3573,11 +3573,11 @@ const g = z([
3573
3573
  // Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state Individual items can override this with their own `appearance` prop.
3574
3574
  error: c().optional(),
3575
3575
  // Error message for the group
3576
- description: z([c(), _(), h(), w(), g]).optional(),
3576
+ description: y([c(), _(), f(), k(), g]).optional(),
3577
3577
  // Helper text for the group
3578
3578
  value: c().optional(),
3579
3579
  // Value of the radio that should be selected (controlled)
3580
- disabled: h().optional(),
3580
+ disabled: f().optional(),
3581
3581
  // Whether all radios in the group are disabled
3582
3582
  controlPosition: v(["start", "end"]).optional(),
3583
3583
  // Position of radio control relative to label: "start" (default) puts radio before label, "end" puts label before radio. Note: In card appearance, the control is always positioned at the end.
@@ -3588,24 +3588,24 @@ const g = z([
3588
3588
  }), Ya = b({
3589
3589
  className: c().optional(),
3590
3590
  // Additional CSS classes merged via `cn()`.
3591
- label: z([c(), _(), h(), w(), g]).optional(),
3591
+ label: y([c(), _(), f(), k(), g]).optional(),
3592
3592
  // Label content for the select. When provided, enables the Field wrapper with a visible label above the select. For accessibility without a visible label, use `aria-label` instead.
3593
- hideLabel: h().optional(),
3593
+ hideLabel: f().optional(),
3594
3594
  placeholder: c().optional(),
3595
3595
  // Placeholder text shown when no value is selected.
3596
- loading: h().optional(),
3596
+ loading: f().optional(),
3597
3597
  // When `true`, shows a skeleton loader in place of the selected value.
3598
- disabled: h().optional(),
3598
+ disabled: f().optional(),
3599
3599
  // Whether the select is disabled.
3600
- required: h().optional(),
3600
+ required: f().optional(),
3601
3601
  // Whether the select is required. When `false`, shows "(optional)" text.
3602
- labelTooltip: z([c(), _(), h(), w(), g]).optional(),
3602
+ labelTooltip: y([c(), _(), f(), k(), g]).optional(),
3603
3603
  // Tooltip content displayed next to the label via an info icon.
3604
3604
  value: c().optional(),
3605
3605
  // Currently selected value (controlled mode).
3606
- children: z([c(), _(), h(), w(), g]).optional(),
3606
+ children: y([c(), _(), f(), k(), g]).optional(),
3607
3607
  // `Select.Option` elements to render in the dropdown.
3608
- description: z([c(), _(), h(), w(), g]).optional(),
3608
+ description: y([c(), _(), f(), k(), g]).optional(),
3609
3609
  // Helper text displayed below the select.
3610
3610
  error: s().optional(),
3611
3611
  // Error message string or validation error object with `match` key.
@@ -3616,56 +3616,78 @@ const g = z([
3616
3616
  }), Ha = b({
3617
3617
  alt: c().optional(),
3618
3618
  autoComplete: s().optional(),
3619
- checked: h().optional(),
3620
- disabled: h().optional(),
3619
+ checked: f().optional(),
3620
+ disabled: f().optional(),
3621
3621
  height: s().optional(),
3622
3622
  list: c().optional(),
3623
3623
  name: c().optional(),
3624
3624
  placeholder: c().optional(),
3625
- readOnly: h().optional(),
3626
- required: h().optional(),
3625
+ readOnly: f().optional(),
3626
+ required: f().optional(),
3627
3627
  width: s().optional(),
3628
3628
  className: c().optional(),
3629
3629
  id: c().optional(),
3630
3630
  lang: c().optional(),
3631
3631
  title: c().optional(),
3632
- children: z([c(), _(), h(), w(), g]).optional(),
3632
+ children: y([c(), _(), f(), k(), g]).optional(),
3633
3633
  value: c().optional(),
3634
3634
  // Controlled value
3635
3635
  size: v(["xs", "sm", "base", "lg"]).optional(),
3636
3636
  // Size of the input. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default input size - `"lg"` — Large for prominent fields
3637
3637
  variant: v(["default", "error"]).optional(),
3638
3638
  // Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
3639
- label: z([c(), _(), h(), w(), g]).optional(),
3639
+ label: y([c(), _(), f(), k(), g]).optional(),
3640
3640
  // Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
3641
- labelTooltip: z([c(), _(), h(), w(), g]).optional(),
3641
+ labelTooltip: y([c(), _(), f(), k(), g]).optional(),
3642
3642
  // Tooltip content to display next to the label via an info icon
3643
- description: z([c(), _(), h(), w(), g]).optional(),
3643
+ description: y([c(), _(), f(), k(), g]).optional(),
3644
3644
  // Helper text displayed below the input
3645
3645
  error: s().optional()
3646
3646
  // Error message or validation error object
3647
3647
  }), Qa = b({
3648
+ defaultOpen: f().optional(),
3649
+ // Initial open state when uncontrolled.
3650
+ open: f().optional(),
3651
+ // Controlled open state.
3652
+ variant: v(["sidebar", "floating", "inset"]).optional(),
3653
+ // Sidebar layout variant.
3654
+ side: v(["left", "right"]).optional(),
3655
+ // Which side the sidebar is on.
3656
+ collapsible: v(["icon", "offcanvas", "none"]).optional(),
3657
+ resizable: f().optional(),
3658
+ // Enable drag-to-resize on the sidebar edge.
3659
+ defaultWidth: _().optional(),
3660
+ // Initial width in pixels when resizable.
3661
+ minWidth: _().optional(),
3662
+ // Minimum width in pixels when resizing.
3663
+ maxWidth: _().optional(),
3664
+ // Maximum width in pixels when resizing.
3665
+ children: y([c(), _(), f(), k(), g]).optional(),
3666
+ // Content — typically `<Sidebar>` + main content.
3667
+ className: c().optional()
3668
+ // Additional CSS classes for the wrapper div.
3669
+ }), es = b({
3648
3670
  as: s().optional(),
3649
3671
  // The HTML element type to render as (e.g. `"div"`, `"section"`, `"article"`).
3650
3672
  className: c().optional(),
3651
3673
  // Additional CSS classes merged via `cn()`.
3652
- children: z([c(), _(), h(), w(), g]).optional()
3674
+ children: y([c(), _(), f(), k(), g]).optional()
3653
3675
  // Content rendered inside the surface.
3654
- }), es = b({
3676
+ }), ts = b({
3655
3677
  variant: v(["default", "neutral"]).optional(),
3656
3678
  // Visual variant: "default" (pill, brand color) or "neutral" (squircle, monochrome)
3657
- label: z([c(), _(), h(), w(), g]).optional(),
3679
+ label: y([c(), _(), f(), k(), g]).optional(),
3658
3680
  // Label content for the switch (Field wrapper is built-in) - can be a string or any React node. Optional when used standalone for visual-only purposes.
3659
- labelTooltip: z([c(), _(), h(), w(), g]).optional(),
3681
+ labelTooltip: y([c(), _(), f(), k(), g]).optional(),
3660
3682
  // Tooltip content to display next to the label via an info icon
3661
- required: h().optional(),
3683
+ required: f().optional(),
3662
3684
  // Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
3663
- controlFirst: h().optional(),
3685
+ controlFirst: f().optional(),
3664
3686
  // When true (default), switch appears before label. When false, label appears before switch.
3665
3687
  size: v(["sm", "base", "lg"]).optional(),
3666
- checked: h().optional(),
3667
- disabled: h().optional(),
3668
- transitioning: h().optional(),
3688
+ checked: f().optional(),
3689
+ disabled: f().optional(),
3690
+ transitioning: f().optional(),
3669
3691
  name: c().optional(),
3670
3692
  type: v(["submit", "reset", "button"]).optional(),
3671
3693
  value: s().optional(),
@@ -3675,21 +3697,21 @@ const g = z([
3675
3697
  title: c().optional(),
3676
3698
  onClick: s()
3677
3699
  // Callback when switch is clicked
3678
- }), ts = b({
3700
+ }), os = b({
3679
3701
  layout: v(["auto", "fixed"]).optional(),
3680
3702
  variant: v(["default", "selected"]).optional(),
3681
3703
  className: c().optional(),
3682
3704
  // Additional CSS classes
3683
- children: z([c(), _(), h(), w(), g]).optional()
3705
+ children: y([c(), _(), f(), k(), g]).optional()
3684
3706
  // Child elements
3685
- }), os = b({
3707
+ }), ns = b({
3686
3708
  tabs: L(s()).optional(),
3687
3709
  // Array of tab items to render.
3688
3710
  value: c().optional(),
3689
3711
  // Controlled value. When set, component becomes controlled.
3690
3712
  selectedValue: c().optional(),
3691
3713
  // Default selected value for uncontrolled mode. Ignored when `value` is set.
3692
- activateOnFocus: h().optional(),
3714
+ activateOnFocus: f().optional(),
3693
3715
  // When `true`, tabs are activated immediately upon receiving focus via arrow keys. When `false` (default), tabs receive focus but require Enter/Space to activate.
3694
3716
  className: c().optional(),
3695
3717
  // Additional CSS classes for the root element.
@@ -3701,32 +3723,32 @@ const g = z([
3701
3723
  // Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
3702
3724
  onValueChange: s().optional()
3703
3725
  // Callback when active tab changes
3704
- }), ns = b({
3726
+ }), rs = b({
3705
3727
  variant: v(["heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(),
3706
3728
  // Text style variant. Determines color, font, and weight. - `"heading1"` — Large page title (30px, semibold) - `"heading2"` — Section title (24px, semibold) - `"heading3"` — Subsection title (18px, semibold) - `"body"` — Default body text - `"secondary"` — Muted text for secondary information - `"success"` — Success state text - `"error"` — Error state text - `"mono"` — Monospace text for code - `"mono-secondary"` — Muted monospace text
3707
3729
  size: v(["xs", "sm", "base", "lg"]).optional(),
3708
3730
  // Text size (only applies to body/secondary/success/error variants). - `"xs"` — 12px - `"sm"` — 14px - `"base"` — 16px - `"lg"` — 18px
3709
- bold: h().optional(),
3731
+ bold: f().optional(),
3710
3732
  // Whether to use bold font weight (only applies to body variants).
3711
3733
  as: s().optional(),
3712
3734
  // The HTML element type to render as (e.g. `"span"`, `"p"`, `"h1"`). Auto-selected based on variant if omitted.
3713
- children: z([c(), _(), h(), w(), g]).optional()
3735
+ children: y([c(), _(), f(), k(), g]).optional()
3714
3736
  // Text content.
3715
- }), rs = b({
3737
+ }), is = b({
3716
3738
  variant: v(["default", "success", "error", "warning", "info"]).optional(),
3717
3739
  className: c().optional(),
3718
3740
  // Additional CSS classes
3719
- children: z([c(), _(), h(), w(), g]).optional()
3741
+ children: y([c(), _(), f(), k(), g]).optional()
3720
3742
  // Child elements
3721
- }), is = b({
3743
+ }), as = b({
3722
3744
  side: v(["top", "bottom", "left", "right"]).optional(),
3723
3745
  className: c().optional(),
3724
3746
  // Additional CSS classes
3725
- children: z([c(), _(), h(), w(), g]).optional(),
3747
+ children: y([c(), _(), f(), k(), g]).optional(),
3726
3748
  // Child elements
3727
- content: z([c(), _(), h(), w(), g])
3749
+ content: y([c(), _(), f(), k(), g])
3728
3750
  // Content to display in the tooltip
3729
- }), as = v([
3751
+ }), ss = v([
3730
3752
  "Badge",
3731
3753
  "Banner",
3732
3754
  "Breadcrumbs",
@@ -3758,6 +3780,7 @@ const g = z([
3758
3780
  "Radio",
3759
3781
  "Select",
3760
3782
  "SensitiveInput",
3783
+ "Sidebar",
3761
3784
  "Surface",
3762
3785
  "Switch",
3763
3786
  "Table",
@@ -3765,11 +3788,11 @@ const g = z([
3765
3788
  "Text",
3766
3789
  "Toasty",
3767
3790
  "Tooltip"
3768
- ]), ss = {
3791
+ ]), cs = {
3769
3792
  Badge: ka,
3770
3793
  Banner: wa,
3771
- Breadcrumbs: $a,
3772
- Button: Sa,
3794
+ Breadcrumbs: Sa,
3795
+ Button: $a,
3773
3796
  Checkbox: Za,
3774
3797
  ClipboardText: Pa,
3775
3798
  CloudflareLogo: Oa,
@@ -3797,40 +3820,41 @@ const g = z([
3797
3820
  Radio: Xa,
3798
3821
  Select: Ya,
3799
3822
  SensitiveInput: Ha,
3800
- Surface: Qa,
3801
- Switch: es,
3802
- Table: ts,
3803
- Tabs: os,
3804
- Text: ns,
3805
- Toasty: rs,
3806
- Tooltip: is
3807
- }, cs = b({
3823
+ Sidebar: Qa,
3824
+ Surface: es,
3825
+ Switch: ts,
3826
+ Table: os,
3827
+ Tabs: ns,
3828
+ Text: rs,
3829
+ Toasty: is,
3830
+ Tooltip: as
3831
+ }, us = b({
3808
3832
  key: c(),
3809
- type: as,
3833
+ type: ss,
3810
3834
  props: H(c(), s()),
3811
3835
  children: L(c()).optional(),
3812
3836
  parentKey: c().nullable().optional(),
3813
3837
  visible: ba.optional(),
3814
3838
  action: za.optional()
3815
- }), us = b({
3839
+ }), ls = b({
3816
3840
  root: c(),
3817
- elements: H(c(), cs)
3841
+ elements: H(c(), us)
3818
3842
  });
3819
- function ps(e) {
3820
- const t = ss[e.type];
3843
+ function ds(e) {
3844
+ const t = cs[e.type];
3821
3845
  return t ? t.safeParse(e.props) : { success: !1, error: new ui([{ code: "custom", message: `Unknown component type: ${e.type}`, path: ["type"] }]) };
3822
3846
  }
3823
- function ds(e) {
3824
- return us.safeParse(e);
3847
+ function fs(e) {
3848
+ return ls.safeParse(e);
3825
3849
  }
3826
- const fs = ["Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "Select", "SensitiveInput", "Surface", "Switch", "Table", "Tabs", "Text", "Toasty", "Tooltip"];
3850
+ const hs = ["Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "Select", "SensitiveInput", "Sidebar", "Surface", "Switch", "Table", "Tabs", "Text", "Toasty", "Tooltip"];
3827
3851
  export {
3828
3852
  ya as ActionConfirmSchema,
3829
3853
  za as ActionSchema,
3830
3854
  ka as BadgePropsSchema,
3831
3855
  wa as BannerPropsSchema,
3832
- $a as BreadcrumbsPropsSchema,
3833
- Sa as ButtonPropsSchema,
3856
+ Sa as BreadcrumbsPropsSchema,
3857
+ $a as ButtonPropsSchema,
3834
3858
  Za as CheckboxPropsSchema,
3835
3859
  Pa as ClipboardTextPropsSchema,
3836
3860
  Oa as CloudflareLogoPropsSchema,
@@ -3838,7 +3862,7 @@ export {
3838
3862
  Ia as CollapsiblePropsSchema,
3839
3863
  Na as ComboboxPropsSchema,
3840
3864
  Ea as CommandPalettePropsSchema,
3841
- ss as ComponentPropsSchemas,
3865
+ cs as ComponentPropsSchemas,
3842
3866
  Ca as DatePickerPropsSchema,
3843
3867
  Aa as DateRangePickerPropsSchema,
3844
3868
  xa as DialogPropsSchema,
@@ -3849,8 +3873,8 @@ export {
3849
3873
  Ua as GridPropsSchema,
3850
3874
  La as InputAreaPropsSchema,
3851
3875
  Fa as InputPropsSchema,
3852
- fs as KUMO_COMPONENT_NAMES,
3853
- as as KumoComponentTypeSchema,
3876
+ hs as KUMO_COMPONENT_NAMES,
3877
+ ss as KumoComponentTypeSchema,
3854
3878
  Ma as LabelPropsSchema,
3855
3879
  Ja as LayerCardPropsSchema,
3856
3880
  Ba as LinkPropsSchema,
@@ -3862,17 +3886,18 @@ export {
3862
3886
  Xa as RadioPropsSchema,
3863
3887
  Ya as SelectPropsSchema,
3864
3888
  Ha as SensitiveInputPropsSchema,
3865
- Qa as SurfacePropsSchema,
3866
- es as SwitchPropsSchema,
3867
- ts as TablePropsSchema,
3868
- os as TabsPropsSchema,
3869
- ns as TextPropsSchema,
3870
- rs as ToastyPropsSchema,
3871
- is as TooltipPropsSchema,
3872
- cs as UIElementBaseSchema,
3873
- us as UITreeSchema,
3889
+ Qa as SidebarPropsSchema,
3890
+ es as SurfacePropsSchema,
3891
+ ts as SwitchPropsSchema,
3892
+ os as TablePropsSchema,
3893
+ ns as TabsPropsSchema,
3894
+ rs as TextPropsSchema,
3895
+ is as ToastyPropsSchema,
3896
+ as as TooltipPropsSchema,
3897
+ us as UIElementBaseSchema,
3898
+ ls as UITreeSchema,
3874
3899
  ba as VisibilityConditionSchema,
3875
- ps as validateElementProps,
3876
- ds as validateUITree
3900
+ ds as validateElementProps,
3901
+ fs as validateUITree
3877
3902
  };
3878
3903
  //# sourceMappingURL=schemas.js.map