zudoku 0.0.0-fix-circular-ref-false-positives.zbe02c6a6 → 0.0.0-fix-warnings.z053d4e27

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 (141) hide show
  1. package/dist/config/validators/InputNavigationSchema.d.ts +56 -56
  2. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  3. package/dist/config/validators/validate.d.ts +1 -1
  4. package/dist/lib/components/Heading.d.ts +1 -1
  5. package/dist/lib/components/index.d.ts +18 -74
  6. package/dist/lib/components/index.js +19 -36
  7. package/dist/lib/components/index.js.map +1 -1
  8. package/dist/lib/hooks/index.d.ts +7 -30
  9. package/dist/lib/hooks/index.js +7 -15
  10. package/dist/lib/hooks/index.js.map +1 -1
  11. package/dist/lib/oas/graphql/circular.d.ts +1 -1
  12. package/dist/lib/oas/graphql/circular.js +35 -18
  13. package/dist/lib/oas/graphql/circular.js.map +1 -1
  14. package/dist/lib/oas/graphql/circular.test.js +2 -33
  15. package/dist/lib/oas/graphql/circular.test.js.map +1 -1
  16. package/dist/lib/oas/parser/index.js +14 -5
  17. package/dist/lib/oas/parser/index.js.map +1 -1
  18. package/dist/lib/util/flattenAllOf.d.ts +0 -2
  19. package/dist/lib/util/flattenAllOf.js +0 -46
  20. package/dist/lib/util/flattenAllOf.js.map +1 -1
  21. package/dist/lib/util/flattenAllOf.test.js +2 -1
  22. package/dist/lib/util/flattenAllOf.test.js.map +1 -1
  23. package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
  24. package/dist/lib/util/flattenAllOfProcessor.js +48 -0
  25. package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
  26. package/dist/lib/util/readFrontmatter.js +2 -1
  27. package/dist/lib/util/readFrontmatter.js.map +1 -1
  28. package/dist/vite/api/SchemaManager.js +1 -1
  29. package/dist/vite/api/SchemaManager.js.map +1 -1
  30. package/dist/vite/api/SchemaManager.test.js +1 -1
  31. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  32. package/dist/vite/build.js +91 -73
  33. package/dist/vite/build.js.map +1 -1
  34. package/dist/vite/mdx/remark-inject-filepath.js +5 -1
  35. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  36. package/dist/vite/mdx/remark-link-rewrite.js +3 -2
  37. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  38. package/dist/vite/plugin-docs.js +9 -7
  39. package/dist/vite/plugin-docs.js.map +1 -1
  40. package/dist/vite/plugin-markdown-export.js +4 -2
  41. package/dist/vite/plugin-markdown-export.js.map +1 -1
  42. package/lib/{ClaudeLogo-DJ9bU-sO.js → ClaudeLogo-C6q-Xn_l.js} +26 -22
  43. package/lib/{ClaudeLogo-DJ9bU-sO.js.map → ClaudeLogo-C6q-Xn_l.js.map} +1 -1
  44. package/lib/{MdxPage-stpAoBtx.js → MdxPage-B1G4W1TK.js} +8 -8
  45. package/lib/{MdxPage-stpAoBtx.js.map → MdxPage-B1G4W1TK.js.map} +1 -1
  46. package/lib/{Mermaid-Koc3z8mU.js → Mermaid-B1xNo-pf.js} +3 -2
  47. package/lib/{Mermaid-Koc3z8mU.js.map → Mermaid-B1xNo-pf.js.map} +1 -1
  48. package/lib/{OAuthErrorPage-DJ811Bn_.js → OAuthErrorPage-01Ke086W.js} +20 -18
  49. package/lib/{OAuthErrorPage-DJ811Bn_.js.map → OAuthErrorPage-01Ke086W.js.map} +1 -1
  50. package/lib/{OasProvider-B2KxIBsI.js → OasProvider-BG-FWDIq.js} +3 -3
  51. package/lib/{OasProvider-B2KxIBsI.js.map → OasProvider-BG-FWDIq.js.map} +1 -1
  52. package/lib/{OperationList-C2tAfThO.js → OperationList-GGkJ1vac.js} +948 -945
  53. package/lib/OperationList-GGkJ1vac.js.map +1 -0
  54. package/lib/{RouteGuard--A04ESy8.js → RouteGuard-B1lCR0C_.js} +5 -5
  55. package/lib/{RouteGuard--A04ESy8.js.map → RouteGuard-B1lCR0C_.js.map} +1 -1
  56. package/lib/{SchemaList-Ep8DleP_.js → SchemaList-CNVdC9f-.js} +7 -7
  57. package/lib/{SchemaList-Ep8DleP_.js.map → SchemaList-CNVdC9f-.js.map} +1 -1
  58. package/lib/{SchemaView-BpaEKRYx.js → SchemaView-CrV0yIwR.js} +3 -3
  59. package/lib/{SchemaView-BpaEKRYx.js.map → SchemaView-CrV0yIwR.js.map} +1 -1
  60. package/lib/{SignUp-DCBViNUi.js → SignUp-8kDBaLbO.js} +31 -26
  61. package/lib/{SignUp-DCBViNUi.js.map → SignUp-8kDBaLbO.js.map} +1 -1
  62. package/lib/{SyntaxHighlight-Dshjn3Zf.js → SyntaxHighlight-hZOFnYl0.js} +3 -3
  63. package/lib/{SyntaxHighlight-Dshjn3Zf.js.map → SyntaxHighlight-hZOFnYl0.js.map} +1 -1
  64. package/lib/{Toc-Cgz6CPiE.js → Toc-qEIii_-W.js} +2 -2
  65. package/lib/{Toc-Cgz6CPiE.js.map → Toc-qEIii_-W.js.map} +1 -1
  66. package/lib/{index-CL8eDnQW.js → Zudoku-DUsdmPME.js} +2250 -2268
  67. package/lib/Zudoku-DUsdmPME.js.map +1 -0
  68. package/lib/{ZudokuContext-BZB1TWdT.js → ZudokuContext-BBI06sOx.js} +5 -5
  69. package/lib/{ZudokuContext-BZB1TWdT.js.map → ZudokuContext-BBI06sOx.js.map} +1 -1
  70. package/lib/{circular-CG3e0_Uz.js → circular-bbWO95zs.js} +1346 -1327
  71. package/lib/{circular-CG3e0_Uz.js.map → circular-bbWO95zs.js.map} +1 -1
  72. package/lib/createServer-B7POuwZp.js +13036 -0
  73. package/lib/createServer-B7POuwZp.js.map +1 -0
  74. package/lib/{errors-b9I-fAOY.js → errors-7hgPDs1h.js} +3 -3
  75. package/lib/{errors-b9I-fAOY.js.map → errors-7hgPDs1h.js.map} +1 -1
  76. package/lib/{firebase-BCXX7Qv5.js → firebase-Dwn-2ju-.js} +13 -13
  77. package/lib/firebase-Dwn-2ju-.js.map +1 -0
  78. package/lib/{hook-BGlHBdET.js → hook-ZEd1Es7D.js} +2 -2
  79. package/lib/{hook-BGlHBdET.js.map → hook-ZEd1Es7D.js.map} +1 -1
  80. package/lib/{index-I3kmZ7tG.js → index-CTCT4jlW.js} +463 -461
  81. package/lib/{index-I3kmZ7tG.js.map → index-CTCT4jlW.js.map} +1 -1
  82. package/lib/index-DAWHN3cH.js +86 -0
  83. package/lib/index-DAWHN3cH.js.map +1 -0
  84. package/lib/{index-UOLtazB8.js → index-Dxdhrp-I.js} +2 -2
  85. package/lib/{index-UOLtazB8.js.map → index-Dxdhrp-I.js.map} +1 -1
  86. package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
  87. package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
  88. package/lib/{index.esm-C5CBsVzN.js → index.esm-DG4KaDKR.js} +2 -2
  89. package/lib/index.esm-DG4KaDKR.js.map +1 -0
  90. package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
  91. package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
  92. package/lib/ui/SyntaxHighlight.js +3 -3
  93. package/lib/useExposedProps-CzTDfXfq.js +30 -0
  94. package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
  95. package/lib/zudoku.__internal.js +366 -365
  96. package/lib/zudoku.__internal.js.map +1 -1
  97. package/lib/zudoku.auth-auth0.js +1 -1
  98. package/lib/zudoku.auth-azureb2c.js +4 -4
  99. package/lib/zudoku.auth-clerk.js +2 -2
  100. package/lib/zudoku.auth-firebase.js +5 -5
  101. package/lib/zudoku.auth-openid.js +5 -5
  102. package/lib/zudoku.auth-supabase.js +4 -4
  103. package/lib/zudoku.components.js +31 -29
  104. package/lib/zudoku.components.js.map +1 -1
  105. package/lib/zudoku.hooks.js +24 -11
  106. package/lib/zudoku.hooks.js.map +1 -1
  107. package/lib/zudoku.mermaid.js +4 -3
  108. package/lib/zudoku.mermaid.js.map +1 -1
  109. package/lib/zudoku.plugin-api-catalog.js +36 -32
  110. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  111. package/lib/zudoku.plugin-api-keys.js +131 -130
  112. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  113. package/lib/zudoku.plugin-custom-pages.js +1 -1
  114. package/lib/zudoku.plugin-markdown.js +1 -1
  115. package/lib/zudoku.plugin-openapi.js +2 -2
  116. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  117. package/package.json +3 -2
  118. package/src/lib/components/index.ts +19 -39
  119. package/src/lib/hooks/index.ts +7 -16
  120. package/src/lib/oas/graphql/circular.test.ts +2 -37
  121. package/src/lib/oas/graphql/circular.ts +51 -25
  122. package/src/lib/oas/parser/index.ts +17 -6
  123. package/src/lib/util/flattenAllOf.test.ts +2 -1
  124. package/src/lib/util/flattenAllOf.ts +0 -57
  125. package/src/lib/util/flattenAllOfProcessor.ts +58 -0
  126. package/src/lib/util/readFrontmatter.ts +2 -1
  127. package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
  128. package/src/zuplo/enrich-with-zuplo.ts +254 -0
  129. package/src/zuplo/policy-types.ts +46 -0
  130. package/src/zuplo/with-zuplo-processors.ts +35 -0
  131. package/src/zuplo/with-zuplo.ts +14 -0
  132. package/lib/OperationList-C2tAfThO.js.map +0 -1
  133. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
  134. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
  135. package/lib/createServer-CNeRqj98.js +0 -16693
  136. package/lib/createServer-CNeRqj98.js.map +0 -1
  137. package/lib/firebase-BCXX7Qv5.js.map +0 -1
  138. package/lib/index-CL8eDnQW.js.map +0 -1
  139. package/lib/index-DBjOT2H1.js +0 -133
  140. package/lib/index-DBjOT2H1.js.map +0 -1
  141. package/lib/index.esm-C5CBsVzN.js.map +0 -1
@@ -1,20 +1,21 @@
1
- import { a as Ae, H as Oe } from "./index.esm-B_0dvNjB.js";
1
+ import { a as Ae, H as Oe } from "./index.esm-Ca5zvoff.js";
2
2
  import { j as a } from "./jsx-runtime-BzflLqGi.js";
3
3
  import { b as mt, H as gt } from "./HydrationBoundary-CNF2ZV3E.js";
4
4
  import { M as Se, e as _t } from "./useSuspenseQuery-CSB_rVek.js";
5
5
  import * as F from "react";
6
- import { StrictMode as Ne, useEffect as K, useRef as De, useState as vt, Suspense as wt } from "react";
6
+ import { StrictMode as Ne, useEffect as G, useRef as De, useState as vt, Suspense as wt } from "react";
7
7
  import { n as zt, S as bt, a as Re, b3 as yt, O as kt, d as xt, L as Zt, h as $t, w as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
8
8
  import * as Et from "react-dom";
9
- import { f as Pt, a as Tt, d as P, A as It, s as At, P as Ot, N as pe, g as St, h as Nt, i as Dt, T as Ce, H as Ue, D as Rt, j as Fe } from "./index-CL8eDnQW.js";
10
- import { B as Le, R as Ct } from "./RouteGuard--A04ESy8.js";
11
- import { CircleFadingArrowUpIcon as Ut, LoaderCircleIcon as Ft, ExternalLink as Lt, PanelLeftIcon as Bt, UnlinkIcon as Mt } from "lucide-react";
12
- import { Button as Wt } from "./ui/Button.js";
9
+ import { d as Pt, a as P, A as Tt, s as It, P as At, N as pe, f as Ot, g as St, h as Nt, T as Ce, H as Ue, D as Dt, i as Fe } from "./Zudoku-DUsdmPME.js";
10
+ import { B as Le, R as Rt } from "./RouteGuard-B1lCR0C_.js";
11
+ import { CircleFadingArrowUpIcon as Ct, LoaderCircleIcon as Ut, ExternalLink as Ft, PanelLeftIcon as Lt, UnlinkIcon as Bt } from "lucide-react";
12
+ import { Button as Mt } from "./ui/Button.js";
13
13
  import { c as x } from "./cn-5-Gd1Dss.js";
14
- import { a as G, e as qt, j as Vt } from "./ZudokuContext-BZB1TWdT.js";
15
- import { D as $, a as Ht, b as Jt } from "./Drawer-Ch7927PF.js";
16
- import { VisuallyHidden as Kt } from "@radix-ui/react-visually-hidden";
17
- import { S as Gt } from "./Spinner-CI6bRyZw.js";
14
+ import { a as L, e as Wt, j as qt } from "./ZudokuContext-BBI06sOx.js";
15
+ import "./index-DAWHN3cH.js";
16
+ import { D as $, a as Vt, b as Ht } from "./Drawer-Ch7927PF.js";
17
+ import { VisuallyHidden as Jt } from "@radix-ui/react-visually-hidden";
18
+ import { S as Kt } from "./Spinner-CI6bRyZw.js";
18
19
  import { C as Be } from "./CategoryHeading-DhmodDcq.js";
19
20
  /**
20
21
  * react-router v7.12.0
@@ -26,19 +27,19 @@ import { C as Be } from "./CategoryHeading-DhmodDcq.js";
26
27
  *
27
28
  * @license MIT
28
29
  */
29
- function Yt(e) {
30
+ function Gt(e) {
30
31
  return /* @__PURE__ */ F.createElement(zt, { flushSync: Et.flushSync, ...e });
31
32
  }
32
- const Qt = new mt({
33
+ const Yt = new mt({
33
34
  defaultOptions: {
34
35
  queries: {
35
36
  staleTime: 1e3 * 60 * 5
36
37
  }
37
38
  }
38
- }), Xt = ({
39
+ }), Qt = ({
39
40
  router: e,
40
41
  hydrate: t = !1
41
- }) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client: Qt, children: /* @__PURE__ */ a.jsx(gt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Le, { value: !1, children: /* @__PURE__ */ a.jsx(Ae, { children: /* @__PURE__ */ a.jsx(Pt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Yt, { router: e }) }) }) }) }) }) }), en = ({
42
+ }) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client: Yt, children: /* @__PURE__ */ a.jsx(gt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Le, { value: !1, children: /* @__PURE__ */ a.jsx(Ae, { children: /* @__PURE__ */ a.jsx(Pt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Gt, { router: e }) }) }) }) }) }) }), Xt = ({
42
43
  router: e,
43
44
  context: t,
44
45
  queryClient: n,
@@ -86,7 +87,7 @@ const We = {};
86
87
  function I(e) {
87
88
  return We;
88
89
  }
89
- function tn(e) {
90
+ function en(e) {
90
91
  const t = Object.values(e).filter((r) => typeof r == "number");
91
92
  return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
92
93
  }
@@ -148,10 +149,10 @@ function me(e) {
148
149
  }
149
150
  const qe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
150
151
  };
151
- function V(e) {
152
+ function H(e) {
152
153
  return typeof e == "object" && e !== null && !Array.isArray(e);
153
154
  }
154
- const nn = se(() => {
155
+ const tn = se(() => {
155
156
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
156
157
  return !1;
157
158
  try {
@@ -162,18 +163,18 @@ const nn = se(() => {
162
163
  }
163
164
  });
164
165
  function C(e) {
165
- if (V(e) === !1)
166
+ if (H(e) === !1)
166
167
  return !1;
167
168
  const t = e.constructor;
168
169
  if (t === void 0)
169
170
  return !0;
170
171
  const n = t.prototype;
171
- return !(V(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
172
+ return !(H(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
172
173
  }
173
174
  function Ve(e) {
174
175
  return C(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
175
176
  }
176
- const rn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
177
+ const nn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
177
178
  function Y(e) {
178
179
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
179
180
  }
@@ -194,10 +195,10 @@ function f(e) {
194
195
  }
195
196
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
196
197
  }
197
- function on(e) {
198
+ function rn(e) {
198
199
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
199
200
  }
200
- function sn(e, t) {
201
+ function on(e, t) {
201
202
  const n = e._zod.def, r = S(e._zod.def, {
202
203
  get shape() {
203
204
  const o = {};
@@ -212,7 +213,7 @@ function sn(e, t) {
212
213
  });
213
214
  return T(e, r);
214
215
  }
215
- function an(e, t) {
216
+ function sn(e, t) {
216
217
  const n = e._zod.def, r = S(e._zod.def, {
217
218
  get shape() {
218
219
  const o = { ...e._zod.def.shape };
@@ -227,7 +228,7 @@ function an(e, t) {
227
228
  });
228
229
  return T(e, r);
229
230
  }
230
- function cn(e, t) {
231
+ function an(e, t) {
231
232
  if (!C(t))
232
233
  throw new Error("Invalid input to extend: expected a plain object");
233
234
  const n = e._zod.def.checks;
@@ -242,7 +243,7 @@ function cn(e, t) {
242
243
  });
243
244
  return T(e, o);
244
245
  }
245
- function un(e, t) {
246
+ function cn(e, t) {
246
247
  if (!C(t))
247
248
  throw new Error("Invalid input to safeExtend: expected a plain object");
248
249
  const n = {
@@ -255,7 +256,7 @@ function un(e, t) {
255
256
  };
256
257
  return T(e, n);
257
258
  }
258
- function ln(e, t) {
259
+ function un(e, t) {
259
260
  const n = S(e._zod.def, {
260
261
  get shape() {
261
262
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
@@ -269,7 +270,7 @@ function ln(e, t) {
269
270
  });
270
271
  return T(e, n);
271
272
  }
272
- function dn(e, t, n) {
273
+ function ln(e, t, n) {
273
274
  const r = S(t._zod.def, {
274
275
  get shape() {
275
276
  const o = t._zod.def.shape, s = { ...o };
@@ -294,7 +295,7 @@ function dn(e, t, n) {
294
295
  });
295
296
  return T(t, r);
296
297
  }
297
- function fn(e, t, n) {
298
+ function dn(e, t, n) {
298
299
  const r = S(t._zod.def, {
299
300
  get shape() {
300
301
  const o = t._zod.def.shape, s = { ...o };
@@ -333,13 +334,13 @@ function He(e, t) {
333
334
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
334
335
  });
335
336
  }
336
- function B(e) {
337
+ function M(e) {
337
338
  return typeof e == "string" ? e : e?.message;
338
339
  }
339
340
  function A(e, t, n) {
340
341
  const r = { ...e, path: e.path ?? [] };
341
342
  if (!e.message) {
342
- const o = B(e.inst?._zod.def?.error?.(e)) ?? B(t?.error?.(e)) ?? B(n.customError?.(e)) ?? B(n.localeError?.(e)) ?? "Invalid input";
343
+ const o = M(e.inst?._zod.def?.error?.(e)) ?? M(t?.error?.(e)) ?? M(n.customError?.(e)) ?? M(n.localeError?.(e)) ?? "Invalid input";
343
344
  r.message = o;
344
345
  }
345
346
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
@@ -368,13 +369,13 @@ const Je = (e, t) => {
368
369
  enumerable: !1
369
370
  });
370
371
  }, Ke = c("$ZodError", Je), Ge = c("$ZodError", Je, { Parent: Error });
371
- function pn(e, t = (n) => n.message) {
372
+ function fn(e, t = (n) => n.message) {
372
373
  const n = {}, r = [];
373
374
  for (const o of e.issues)
374
375
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
375
376
  return { formErrors: r, fieldErrors: n };
376
377
  }
377
- function hn(e, t = (n) => n.message) {
378
+ function pn(e, t = (n) => n.message) {
378
379
  const n = { _errors: [] }, r = (o) => {
379
380
  for (const s of o.issues)
380
381
  if (s.code === "invalid_union" && s.errors.length)
@@ -420,50 +421,50 @@ const ue = (e) => (t, n, r, o) => {
420
421
  success: !1,
421
422
  error: new (e ?? Ke)(s.issues.map((i) => A(i, o, I())))
422
423
  } : { success: !0, data: s.value };
423
- }, mn = /* @__PURE__ */ Q(Ge), X = (e) => async (t, n, r) => {
424
+ }, hn = /* @__PURE__ */ Q(Ge), X = (e) => async (t, n, r) => {
424
425
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
425
426
  let s = t._zod.run({ value: n, issues: [] }, o);
426
427
  return s instanceof Promise && (s = await s), s.issues.length ? {
427
428
  success: !1,
428
429
  error: new e(s.issues.map((i) => A(i, o, I())))
429
430
  } : { success: !0, data: s.value };
430
- }, gn = /* @__PURE__ */ X(Ge), _n = (e) => (t, n, r) => {
431
+ }, mn = /* @__PURE__ */ X(Ge), gn = (e) => (t, n, r) => {
431
432
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
432
433
  return ue(e)(t, n, o);
433
- }, vn = (e) => (t, n, r) => ue(e)(t, n, r), wn = (e) => async (t, n, r) => {
434
+ }, _n = (e) => (t, n, r) => ue(e)(t, n, r), vn = (e) => async (t, n, r) => {
434
435
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
435
436
  return le(e)(t, n, o);
436
- }, zn = (e) => async (t, n, r) => le(e)(t, n, r), bn = (e) => (t, n, r) => {
437
+ }, wn = (e) => async (t, n, r) => le(e)(t, n, r), zn = (e) => (t, n, r) => {
437
438
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
438
439
  return Q(e)(t, n, o);
439
- }, yn = (e) => (t, n, r) => Q(e)(t, n, r), kn = (e) => async (t, n, r) => {
440
+ }, bn = (e) => (t, n, r) => Q(e)(t, n, r), yn = (e) => async (t, n, r) => {
440
441
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
441
442
  return X(e)(t, n, o);
442
- }, xn = (e) => async (t, n, r) => X(e)(t, n, r), Zn = /^[cC][^\s-]{8,}$/, $n = /^[0-9a-z]+$/, jn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, En = /^[0-9a-vA-V]{20}$/, Pn = /^[A-Za-z0-9]{27}$/, Tn = /^[a-zA-Z0-9_-]{21}$/, In = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, An = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, ge = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, On = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Sn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
443
- function Nn() {
444
- return new RegExp(Sn, "u");
443
+ }, kn = (e) => async (t, n, r) => X(e)(t, n, r), xn = /^[cC][^\s-]{8,}$/, Zn = /^[0-9a-z]+$/, $n = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, jn = /^[0-9a-vA-V]{20}$/, En = /^[A-Za-z0-9]{27}$/, Pn = /^[a-zA-Z0-9_-]{21}$/, Tn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, In = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, ge = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, An = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, On = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
444
+ function Sn() {
445
+ return new RegExp(On, "u");
445
446
  }
446
- const Dn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Rn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Cn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Un = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Fn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Ln = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Bn = /^\+(?:[0-9]){6,14}[0-9]$/, Qe = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Mn = /* @__PURE__ */ new RegExp(`^${Qe}$`);
447
+ const Nn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Dn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Rn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Cn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Un = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Fn = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Ln = /^\+(?:[0-9]){6,14}[0-9]$/, Qe = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Bn = /* @__PURE__ */ new RegExp(`^${Qe}$`);
447
448
  function Xe(e) {
448
449
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
449
450
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
450
451
  }
451
- function Wn(e) {
452
+ function Mn(e) {
452
453
  return new RegExp(`^${Xe(e)}$`);
453
454
  }
454
- function qn(e) {
455
+ function Wn(e) {
455
456
  const t = Xe({ precision: e.precision }), n = ["Z"];
456
457
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
457
458
  const r = `${t}(?:${n.join("|")})`;
458
459
  return new RegExp(`^${Qe}T(?:${r})$`);
459
460
  }
460
- const Vn = (e) => {
461
+ const qn = (e) => {
461
462
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
462
463
  return new RegExp(`^${t}$`);
463
- }, Hn = /^[^A-Z]*$/, Jn = /^[^a-z]*$/, j = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
464
+ }, Vn = /^[^A-Z]*$/, Hn = /^[^a-z]*$/, j = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
464
465
  var n;
465
466
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
466
- }), Kn = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
467
+ }), Jn = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
467
468
  var n;
468
469
  j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
469
470
  const o = r.value;
@@ -486,7 +487,7 @@ const Vn = (e) => {
486
487
  continue: !t.abort
487
488
  });
488
489
  };
489
- }), Gn = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
490
+ }), Kn = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
490
491
  var n;
491
492
  j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
492
493
  const o = r.value;
@@ -509,7 +510,7 @@ const Vn = (e) => {
509
510
  continue: !t.abort
510
511
  });
511
512
  };
512
- }), Yn = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
513
+ }), Gn = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
513
514
  var n;
514
515
  j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
515
516
  const o = r.value;
@@ -549,7 +550,7 @@ const Vn = (e) => {
549
550
  });
550
551
  }) : (r = e._zod).check ?? (r.check = () => {
551
552
  });
552
- }), Qn = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
553
+ }), Yn = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
553
554
  ee.init(e, t), e._zod.check = (n) => {
554
555
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
555
556
  origin: "string",
@@ -561,11 +562,11 @@ const Vn = (e) => {
561
562
  continue: !t.abort
562
563
  });
563
564
  };
564
- }), Xn = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
565
+ }), Qn = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
566
+ t.pattern ?? (t.pattern = Vn), ee.init(e, t);
567
+ }), Xn = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
565
568
  t.pattern ?? (t.pattern = Hn), ee.init(e, t);
566
- }), er = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
567
- t.pattern ?? (t.pattern = Jn), ee.init(e, t);
568
- }), tr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
569
+ }), er = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
569
570
  j.init(e, t);
570
571
  const n = Y(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
571
572
  t.pattern = r, e._zod.onattach.push((o) => {
@@ -582,7 +583,7 @@ const Vn = (e) => {
582
583
  continue: !t.abort
583
584
  });
584
585
  };
585
- }), nr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
586
+ }), tr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
586
587
  j.init(e, t);
587
588
  const n = new RegExp(`^${Y(t.prefix)}.*`);
588
589
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -599,7 +600,7 @@ const Vn = (e) => {
599
600
  continue: !t.abort
600
601
  });
601
602
  };
602
- }), rr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
603
+ }), nr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
603
604
  j.init(e, t);
604
605
  const n = new RegExp(`.*${Y(t.suffix)}$`);
605
606
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -616,12 +617,12 @@ const Vn = (e) => {
616
617
  continue: !t.abort
617
618
  });
618
619
  };
619
- }), or = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
620
+ }), rr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
620
621
  j.init(e, t), e._zod.check = (n) => {
621
622
  n.value = t.tx(n.value);
622
623
  };
623
624
  });
624
- class sr {
625
+ class or {
625
626
  constructor(t = []) {
626
627
  this.content = [], this.indent = 0, this && (this.args = t);
627
628
  }
@@ -644,13 +645,13 @@ class sr {
644
645
  `));
645
646
  }
646
647
  }
647
- const ir = {
648
+ const sr = {
648
649
  major: 4,
649
650
  minor: 1,
650
651
  patch: 12
651
652
  }, v = /* @__PURE__ */ c("$ZodType", (e, t) => {
652
653
  var n;
653
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = ir;
654
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = sr;
654
655
  const r = [...e._zod.def.checks ?? []];
655
656
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
656
657
  for (const o of r)
@@ -713,17 +714,17 @@ const ir = {
713
714
  e["~standard"] = {
714
715
  validate: (o) => {
715
716
  try {
716
- const s = mn(e, o);
717
+ const s = hn(e, o);
717
718
  return s.success ? { value: s.data } : { issues: s.error?.issues };
718
719
  } catch {
719
- return gn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
720
+ return mn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
720
721
  }
721
722
  },
722
723
  vendor: "zod",
723
724
  version: 1
724
725
  };
725
726
  }), de = /* @__PURE__ */ c("$ZodString", (e, t) => {
726
- v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Vn(e._zod.bag), e._zod.parse = (n, r) => {
727
+ v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? qn(e._zod.bag), e._zod.parse = (n, r) => {
727
728
  if (t.coerce)
728
729
  try {
729
730
  n.value = String(n.value);
@@ -738,9 +739,9 @@ const ir = {
738
739
  };
739
740
  }), m = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
740
741
  ee.init(e, t), de.init(e, t);
741
- }), ar = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
742
- t.pattern ?? (t.pattern = An), m.init(e, t);
743
- }), cr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
742
+ }), ir = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
743
+ t.pattern ?? (t.pattern = In), m.init(e, t);
744
+ }), ar = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
744
745
  if (t.version) {
745
746
  const r = {
746
747
  v1: 1,
@@ -758,9 +759,9 @@ const ir = {
758
759
  } else
759
760
  t.pattern ?? (t.pattern = ge());
760
761
  m.init(e, t);
761
- }), ur = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
762
- t.pattern ?? (t.pattern = On), m.init(e, t);
763
- }), lr = /* @__PURE__ */ c("$ZodURL", (e, t) => {
762
+ }), cr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
763
+ t.pattern ?? (t.pattern = An), m.init(e, t);
764
+ }), ur = /* @__PURE__ */ c("$ZodURL", (e, t) => {
764
765
  m.init(e, t), e._zod.check = (n) => {
765
766
  try {
766
767
  const r = n.value.trim(), o = new URL(r);
@@ -768,7 +769,7 @@ const ir = {
768
769
  code: "invalid_format",
769
770
  format: "url",
770
771
  note: "Invalid hostname",
771
- pattern: Ln.source,
772
+ pattern: Fn.source,
772
773
  input: n.value,
773
774
  inst: e,
774
775
  continue: !t.abort
@@ -792,35 +793,35 @@ const ir = {
792
793
  });
793
794
  }
794
795
  };
795
- }), dr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
796
- t.pattern ?? (t.pattern = Nn()), m.init(e, t);
797
- }), fr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
798
- t.pattern ?? (t.pattern = Tn), m.init(e, t);
799
- }), pr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
796
+ }), lr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
797
+ t.pattern ?? (t.pattern = Sn()), m.init(e, t);
798
+ }), dr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
799
+ t.pattern ?? (t.pattern = Pn), m.init(e, t);
800
+ }), fr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
801
+ t.pattern ?? (t.pattern = xn), m.init(e, t);
802
+ }), pr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
800
803
  t.pattern ?? (t.pattern = Zn), m.init(e, t);
801
- }), hr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
804
+ }), hr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
802
805
  t.pattern ?? (t.pattern = $n), m.init(e, t);
803
- }), mr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
806
+ }), mr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
804
807
  t.pattern ?? (t.pattern = jn), m.init(e, t);
805
- }), gr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
808
+ }), gr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
806
809
  t.pattern ?? (t.pattern = En), m.init(e, t);
807
- }), _r = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
808
- t.pattern ?? (t.pattern = Pn), m.init(e, t);
809
- }), vr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
810
- t.pattern ?? (t.pattern = qn(t)), m.init(e, t);
811
- }), wr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
812
- t.pattern ?? (t.pattern = Mn), m.init(e, t);
813
- }), zr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
810
+ }), _r = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
814
811
  t.pattern ?? (t.pattern = Wn(t)), m.init(e, t);
815
- }), br = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
816
- t.pattern ?? (t.pattern = In), m.init(e, t);
817
- }), yr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
818
- t.pattern ?? (t.pattern = Dn), m.init(e, t), e._zod.onattach.push((n) => {
812
+ }), vr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
813
+ t.pattern ?? (t.pattern = Bn), m.init(e, t);
814
+ }), wr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
815
+ t.pattern ?? (t.pattern = Mn(t)), m.init(e, t);
816
+ }), zr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
817
+ t.pattern ?? (t.pattern = Tn), m.init(e, t);
818
+ }), br = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
819
+ t.pattern ?? (t.pattern = Nn), m.init(e, t), e._zod.onattach.push((n) => {
819
820
  const r = n._zod.bag;
820
821
  r.format = "ipv4";
821
822
  });
822
- }), kr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
823
- t.pattern ?? (t.pattern = Rn), m.init(e, t), e._zod.onattach.push((n) => {
823
+ }), yr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
824
+ t.pattern ?? (t.pattern = Dn), m.init(e, t), e._zod.onattach.push((n) => {
824
825
  const r = n._zod.bag;
825
826
  r.format = "ipv6";
826
827
  }), e._zod.check = (n) => {
@@ -836,10 +837,10 @@ const ir = {
836
837
  });
837
838
  }
838
839
  };
839
- }), xr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
840
- t.pattern ?? (t.pattern = Cn), m.init(e, t);
841
- }), Zr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
842
- t.pattern ?? (t.pattern = Un), m.init(e, t), e._zod.check = (n) => {
840
+ }), kr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
841
+ t.pattern ?? (t.pattern = Rn), m.init(e, t);
842
+ }), xr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
843
+ t.pattern ?? (t.pattern = Cn), m.init(e, t), e._zod.check = (n) => {
843
844
  const r = n.value.split("/");
844
845
  try {
845
846
  if (r.length !== 2)
@@ -875,8 +876,8 @@ function et(e) {
875
876
  return !1;
876
877
  }
877
878
  }
878
- const $r = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
879
- t.pattern ?? (t.pattern = Fn), m.init(e, t), e._zod.onattach.push((n) => {
879
+ const Zr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
880
+ t.pattern ?? (t.pattern = Un), m.init(e, t), e._zod.onattach.push((n) => {
880
881
  n._zod.bag.contentEncoding = "base64";
881
882
  }), e._zod.check = (n) => {
882
883
  et(n.value) || n.issues.push({
@@ -888,17 +889,17 @@ const $r = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
888
889
  });
889
890
  };
890
891
  });
891
- function jr(e) {
892
+ function $r(e) {
892
893
  if (!Ye.test(e))
893
894
  return !1;
894
895
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
895
896
  return et(n);
896
897
  }
897
- const Er = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
898
+ const jr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
898
899
  t.pattern ?? (t.pattern = Ye), m.init(e, t), e._zod.onattach.push((n) => {
899
900
  n._zod.bag.contentEncoding = "base64url";
900
901
  }), e._zod.check = (n) => {
901
- jr(n.value) || n.issues.push({
902
+ $r(n.value) || n.issues.push({
902
903
  code: "invalid_format",
903
904
  format: "base64url",
904
905
  input: n.value,
@@ -906,10 +907,10 @@ const Er = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
906
907
  continue: !t.abort
907
908
  });
908
909
  };
909
- }), Pr = /* @__PURE__ */ c("$ZodE164", (e, t) => {
910
- t.pattern ?? (t.pattern = Bn), m.init(e, t);
910
+ }), Er = /* @__PURE__ */ c("$ZodE164", (e, t) => {
911
+ t.pattern ?? (t.pattern = Ln), m.init(e, t);
911
912
  });
912
- function Tr(e, t = null) {
913
+ function Pr(e, t = null) {
913
914
  try {
914
915
  const n = e.split(".");
915
916
  if (n.length !== 3)
@@ -923,9 +924,9 @@ function Tr(e, t = null) {
923
924
  return !1;
924
925
  }
925
926
  }
926
- const Ir = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
927
+ const Tr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
927
928
  m.init(e, t), e._zod.check = (n) => {
928
- Tr(n.value, t.alg) || n.issues.push({
929
+ Pr(n.value, t.alg) || n.issues.push({
929
930
  code: "invalid_format",
930
931
  format: "jwt",
931
932
  input: n.value,
@@ -933,9 +934,9 @@ const Ir = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
933
934
  continue: !t.abort
934
935
  });
935
936
  };
936
- }), Ar = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
937
+ }), Ir = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
937
938
  v.init(e, t), e._zod.parse = (n) => n;
938
- }), Or = /* @__PURE__ */ c("$ZodNever", (e, t) => {
939
+ }), Ar = /* @__PURE__ */ c("$ZodNever", (e, t) => {
939
940
  v.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
940
941
  expected: "never",
941
942
  code: "invalid_type",
@@ -946,7 +947,7 @@ const Ir = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
946
947
  function _e(e, t, n) {
947
948
  e.issues.length && t.issues.push(...He(n, e.issues)), t.value[n] = e.value;
948
949
  }
949
- const Sr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
950
+ const Or = /* @__PURE__ */ c("$ZodArray", (e, t) => {
950
951
  v.init(e, t), e._zod.parse = (n, r) => {
951
952
  const o = n.value;
952
953
  if (!Array.isArray(o))
@@ -968,7 +969,7 @@ const Sr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
968
969
  return s.length ? Promise.all(s).then(() => n) : n;
969
970
  };
970
971
  });
971
- function H(e, t, n, r) {
972
+ function J(e, t, n, r) {
972
973
  e.issues.length && t.issues.push(...He(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
973
974
  }
974
975
  function tt(e) {
@@ -976,7 +977,7 @@ function tt(e) {
976
977
  for (const r of t)
977
978
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
978
979
  throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
979
- const n = on(e.shape);
980
+ const n = rn(e.shape);
980
981
  return {
981
982
  ...e,
982
983
  keys: t,
@@ -995,7 +996,7 @@ function nt(e, t, n, r, o, s) {
995
996
  continue;
996
997
  }
997
998
  const b = l.run({ value: t[p], issues: [] }, r);
998
- b instanceof Promise ? e.push(b.then((_) => H(_, n, p, t))) : H(b, n, p, t);
999
+ b instanceof Promise ? e.push(b.then((_) => J(_, n, p, t))) : J(b, n, p, t);
999
1000
  }
1000
1001
  return i.length && n.issues.push({
1001
1002
  code: "unrecognized_keys",
@@ -1004,7 +1005,7 @@ function nt(e, t, n, r, o, s) {
1004
1005
  inst: s
1005
1006
  }), e.length ? Promise.all(e).then(() => n) : n;
1006
1007
  }
1007
- const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1008
+ const Sr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1008
1009
  if (v.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1009
1010
  const u = t.shape;
1010
1011
  Object.defineProperty(t, "shape", {
@@ -1029,7 +1030,7 @@ const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1029
1030
  }
1030
1031
  return l;
1031
1032
  });
1032
- const o = V, s = t.catchall;
1033
+ const o = H, s = t.catchall;
1033
1034
  let i;
1034
1035
  e._zod.parse = (u, l) => {
1035
1036
  i ?? (i = r.value);
@@ -1045,14 +1046,14 @@ const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1045
1046
  const p = [], b = i.shape;
1046
1047
  for (const _ of i.keys) {
1047
1048
  const y = b[_]._zod.run({ value: d[_], issues: [] }, l);
1048
- y instanceof Promise ? p.push(y.then((te) => H(te, u, _, d))) : H(y, u, _, d);
1049
+ y instanceof Promise ? p.push(y.then((te) => J(te, u, _, d))) : J(y, u, _, d);
1049
1050
  }
1050
1051
  return s ? nt(p, d, u, l, r.value, e) : p.length ? Promise.all(p).then(() => u) : u;
1051
1052
  };
1052
- }), Dr = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
1053
- Nr.init(e, t);
1053
+ }), Nr = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
1054
+ Sr.init(e, t);
1054
1055
  const n = e._zod.parse, r = se(() => tt(t)), o = (_) => {
1055
- const w = new sr(["shape", "payload", "ctx"]), y = r.value, te = (E) => {
1056
+ const w = new or(["shape", "payload", "ctx"]), y = r.value, te = (E) => {
1056
1057
  const Z = me(E);
1057
1058
  return `shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`;
1058
1059
  };
@@ -1088,7 +1089,7 @@ const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1088
1089
  return (E, Z) => ht(_, E, Z);
1089
1090
  };
1090
1091
  let s;
1091
- const i = V, u = !We.jitless, d = u && nn.value, p = t.catchall;
1092
+ const i = H, u = !We.jitless, d = u && tn.value, p = t.catchall;
1092
1093
  let b;
1093
1094
  e._zod.parse = (_, w) => {
1094
1095
  b ?? (b = r.value);
@@ -1113,7 +1114,7 @@ function ve(e, t, n, r) {
1113
1114
  errors: e.map((s) => s.issues.map((i) => A(i, r, I())))
1114
1115
  }), t);
1115
1116
  }
1116
- const Rr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1117
+ const Dr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1117
1118
  v.init(e, t), h(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), h(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), h(e._zod, "values", () => {
1118
1119
  if (t.options.every((o) => o._zod.values))
1119
1120
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
@@ -1144,7 +1145,7 @@ const Rr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1144
1145
  }
1145
1146
  return i ? Promise.all(u).then((l) => ve(l, o, e, s)) : ve(u, o, e, s);
1146
1147
  };
1147
- }), Cr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1148
+ }), Rr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1148
1149
  v.init(e, t), e._zod.parse = (n, r) => {
1149
1150
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
1150
1151
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([l, d]) => we(n, l, d)) : we(n, s, i);
@@ -1193,10 +1194,10 @@ function we(e, t, n) {
1193
1194
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
1194
1195
  return e.value = r.data, e;
1195
1196
  }
1196
- const Ur = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1197
+ const Cr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1197
1198
  v.init(e, t);
1198
- const n = tn(t.entries), r = new Set(n);
1199
- e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => rn.has(typeof o)).map((o) => typeof o == "string" ? Y(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1199
+ const n = en(t.entries), r = new Set(n);
1200
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => nn.has(typeof o)).map((o) => typeof o == "string" ? Y(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1200
1201
  const i = o.value;
1201
1202
  return r.has(i) || o.issues.push({
1202
1203
  code: "invalid_value",
@@ -1205,7 +1206,7 @@ const Ur = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1205
1206
  inst: e
1206
1207
  }), o;
1207
1208
  };
1208
- }), Fr = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1209
+ }), Ur = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1209
1210
  v.init(e, t), e._zod.parse = (n, r) => {
1210
1211
  if (r.direction === "backward")
1211
1212
  throw new Me(e.constructor.name);
@@ -1220,7 +1221,7 @@ const Ur = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1220
1221
  function ze(e, t) {
1221
1222
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1222
1223
  }
1223
- const Lr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1224
+ const Fr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1224
1225
  v.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", h(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), h(e._zod, "pattern", () => {
1225
1226
  const n = t.innerType._zod.pattern;
1226
1227
  return n ? new RegExp(`^(${ae(n.source)})?$`) : void 0;
@@ -1231,12 +1232,12 @@ const Lr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1231
1232
  }
1232
1233
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1233
1234
  };
1234
- }), Br = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1235
+ }), Lr = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1235
1236
  v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "pattern", () => {
1236
1237
  const n = t.innerType._zod.pattern;
1237
1238
  return n ? new RegExp(`^(${ae(n.source)}|null)$`) : void 0;
1238
1239
  }), h(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1239
- }), Mr = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1240
+ }), Br = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1240
1241
  v.init(e, t), e._zod.optin = "optional", h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1241
1242
  if (r.direction === "backward")
1242
1243
  return t.innerType._zod.run(n, r);
@@ -1249,9 +1250,9 @@ const Lr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1249
1250
  function be(e, t) {
1250
1251
  return e.value === void 0 && (e.value = t.defaultValue), e;
1251
1252
  }
1252
- const Wr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1253
+ const Mr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1253
1254
  v.init(e, t), e._zod.optin = "optional", h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1254
- }), qr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1255
+ }), Wr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1255
1256
  v.init(e, t), h(e._zod, "values", () => {
1256
1257
  const n = t.innerType._zod.values;
1257
1258
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
@@ -1268,7 +1269,7 @@ function ye(e, t) {
1268
1269
  inst: t
1269
1270
  }), e;
1270
1271
  }
1271
- const Vr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1272
+ const qr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1272
1273
  v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1273
1274
  if (r.direction === "backward")
1274
1275
  return t.innerType._zod.run(n, r);
@@ -1287,20 +1288,20 @@ const Vr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1287
1288
  input: n.value
1288
1289
  }), n.issues = []), n);
1289
1290
  };
1290
- }), Hr = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1291
+ }), Vr = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1291
1292
  v.init(e, t), h(e._zod, "values", () => t.in._zod.values), h(e._zod, "optin", () => t.in._zod.optin), h(e._zod, "optout", () => t.out._zod.optout), h(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1292
1293
  if (r.direction === "backward") {
1293
1294
  const s = t.out._zod.run(n, r);
1294
- return s instanceof Promise ? s.then((i) => M(i, t.in, r)) : M(s, t.in, r);
1295
+ return s instanceof Promise ? s.then((i) => W(i, t.in, r)) : W(s, t.in, r);
1295
1296
  }
1296
1297
  const o = t.in._zod.run(n, r);
1297
- return o instanceof Promise ? o.then((s) => M(s, t.out, r)) : M(o, t.out, r);
1298
+ return o instanceof Promise ? o.then((s) => W(s, t.out, r)) : W(o, t.out, r);
1298
1299
  };
1299
1300
  });
1300
- function M(e, t, n) {
1301
+ function W(e, t, n) {
1301
1302
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
1302
1303
  }
1303
- const Jr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1304
+ const Hr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1304
1305
  v.init(e, t), h(e._zod, "propValues", () => t.innerType._zod.propValues), h(e._zod, "values", () => t.innerType._zod.values), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1305
1306
  if (r.direction === "backward")
1306
1307
  return t.innerType._zod.run(n, r);
@@ -1311,7 +1312,7 @@ const Jr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1311
1312
  function ke(e) {
1312
1313
  return e.value = Object.freeze(e.value), e;
1313
1314
  }
1314
- const Kr = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1315
+ const Jr = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1315
1316
  j.init(e, t), v.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1316
1317
  const r = n.value, o = t.fn(r);
1317
1318
  if (o instanceof Promise)
@@ -1334,7 +1335,7 @@ function xe(e, t, n, r) {
1334
1335
  r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(U(o));
1335
1336
  }
1336
1337
  }
1337
- class Gr {
1338
+ class Kr {
1338
1339
  constructor() {
1339
1340
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1340
1341
  }
@@ -1368,17 +1369,17 @@ class Gr {
1368
1369
  return this._map.has(t);
1369
1370
  }
1370
1371
  }
1371
- function Yr() {
1372
- return new Gr();
1372
+ function Gr() {
1373
+ return new Kr();
1373
1374
  }
1374
- const W = /* @__PURE__ */ Yr();
1375
- function Qr(e, t) {
1375
+ const q = /* @__PURE__ */ Gr();
1376
+ function Yr(e, t) {
1376
1377
  return new e({
1377
1378
  type: "string",
1378
1379
  ...f(t)
1379
1380
  });
1380
1381
  }
1381
- function Xr(e, t) {
1382
+ function Qr(e, t) {
1382
1383
  return new e({
1383
1384
  type: "string",
1384
1385
  format: "email",
@@ -1396,7 +1397,7 @@ function Ze(e, t) {
1396
1397
  ...f(t)
1397
1398
  });
1398
1399
  }
1399
- function eo(e, t) {
1400
+ function Xr(e, t) {
1400
1401
  return new e({
1401
1402
  type: "string",
1402
1403
  format: "uuid",
@@ -1405,7 +1406,7 @@ function eo(e, t) {
1405
1406
  ...f(t)
1406
1407
  });
1407
1408
  }
1408
- function to(e, t) {
1409
+ function eo(e, t) {
1409
1410
  return new e({
1410
1411
  type: "string",
1411
1412
  format: "uuid",
@@ -1415,7 +1416,7 @@ function to(e, t) {
1415
1416
  ...f(t)
1416
1417
  });
1417
1418
  }
1418
- function no(e, t) {
1419
+ function to(e, t) {
1419
1420
  return new e({
1420
1421
  type: "string",
1421
1422
  format: "uuid",
@@ -1425,7 +1426,7 @@ function no(e, t) {
1425
1426
  ...f(t)
1426
1427
  });
1427
1428
  }
1428
- function ro(e, t) {
1429
+ function no(e, t) {
1429
1430
  return new e({
1430
1431
  type: "string",
1431
1432
  format: "uuid",
@@ -1435,7 +1436,7 @@ function ro(e, t) {
1435
1436
  ...f(t)
1436
1437
  });
1437
1438
  }
1438
- function oo(e, t) {
1439
+ function ro(e, t) {
1439
1440
  return new e({
1440
1441
  type: "string",
1441
1442
  format: "url",
@@ -1444,7 +1445,7 @@ function oo(e, t) {
1444
1445
  ...f(t)
1445
1446
  });
1446
1447
  }
1447
- function so(e, t) {
1448
+ function oo(e, t) {
1448
1449
  return new e({
1449
1450
  type: "string",
1450
1451
  format: "emoji",
@@ -1453,7 +1454,7 @@ function so(e, t) {
1453
1454
  ...f(t)
1454
1455
  });
1455
1456
  }
1456
- function io(e, t) {
1457
+ function so(e, t) {
1457
1458
  return new e({
1458
1459
  type: "string",
1459
1460
  format: "nanoid",
@@ -1462,7 +1463,7 @@ function io(e, t) {
1462
1463
  ...f(t)
1463
1464
  });
1464
1465
  }
1465
- function ao(e, t) {
1466
+ function io(e, t) {
1466
1467
  return new e({
1467
1468
  type: "string",
1468
1469
  format: "cuid",
@@ -1471,7 +1472,7 @@ function ao(e, t) {
1471
1472
  ...f(t)
1472
1473
  });
1473
1474
  }
1474
- function co(e, t) {
1475
+ function ao(e, t) {
1475
1476
  return new e({
1476
1477
  type: "string",
1477
1478
  format: "cuid2",
@@ -1480,7 +1481,7 @@ function co(e, t) {
1480
1481
  ...f(t)
1481
1482
  });
1482
1483
  }
1483
- function uo(e, t) {
1484
+ function co(e, t) {
1484
1485
  return new e({
1485
1486
  type: "string",
1486
1487
  format: "ulid",
@@ -1489,7 +1490,7 @@ function uo(e, t) {
1489
1490
  ...f(t)
1490
1491
  });
1491
1492
  }
1492
- function lo(e, t) {
1493
+ function uo(e, t) {
1493
1494
  return new e({
1494
1495
  type: "string",
1495
1496
  format: "xid",
@@ -1498,7 +1499,7 @@ function lo(e, t) {
1498
1499
  ...f(t)
1499
1500
  });
1500
1501
  }
1501
- function fo(e, t) {
1502
+ function lo(e, t) {
1502
1503
  return new e({
1503
1504
  type: "string",
1504
1505
  format: "ksuid",
@@ -1507,7 +1508,7 @@ function fo(e, t) {
1507
1508
  ...f(t)
1508
1509
  });
1509
1510
  }
1510
- function po(e, t) {
1511
+ function fo(e, t) {
1511
1512
  return new e({
1512
1513
  type: "string",
1513
1514
  format: "ipv4",
@@ -1516,7 +1517,7 @@ function po(e, t) {
1516
1517
  ...f(t)
1517
1518
  });
1518
1519
  }
1519
- function ho(e, t) {
1520
+ function po(e, t) {
1520
1521
  return new e({
1521
1522
  type: "string",
1522
1523
  format: "ipv6",
@@ -1525,7 +1526,7 @@ function ho(e, t) {
1525
1526
  ...f(t)
1526
1527
  });
1527
1528
  }
1528
- function mo(e, t) {
1529
+ function ho(e, t) {
1529
1530
  return new e({
1530
1531
  type: "string",
1531
1532
  format: "cidrv4",
@@ -1534,7 +1535,7 @@ function mo(e, t) {
1534
1535
  ...f(t)
1535
1536
  });
1536
1537
  }
1537
- function go(e, t) {
1538
+ function mo(e, t) {
1538
1539
  return new e({
1539
1540
  type: "string",
1540
1541
  format: "cidrv6",
@@ -1543,7 +1544,7 @@ function go(e, t) {
1543
1544
  ...f(t)
1544
1545
  });
1545
1546
  }
1546
- function _o(e, t) {
1547
+ function go(e, t) {
1547
1548
  return new e({
1548
1549
  type: "string",
1549
1550
  format: "base64",
@@ -1552,7 +1553,7 @@ function _o(e, t) {
1552
1553
  ...f(t)
1553
1554
  });
1554
1555
  }
1555
- function vo(e, t) {
1556
+ function _o(e, t) {
1556
1557
  return new e({
1557
1558
  type: "string",
1558
1559
  format: "base64url",
@@ -1561,7 +1562,7 @@ function vo(e, t) {
1561
1562
  ...f(t)
1562
1563
  });
1563
1564
  }
1564
- function wo(e, t) {
1565
+ function vo(e, t) {
1565
1566
  return new e({
1566
1567
  type: "string",
1567
1568
  format: "e164",
@@ -1570,7 +1571,7 @@ function wo(e, t) {
1570
1571
  ...f(t)
1571
1572
  });
1572
1573
  }
1573
- function zo(e, t) {
1574
+ function wo(e, t) {
1574
1575
  return new e({
1575
1576
  type: "string",
1576
1577
  format: "jwt",
@@ -1579,7 +1580,7 @@ function zo(e, t) {
1579
1580
  ...f(t)
1580
1581
  });
1581
1582
  }
1582
- function bo(e, t) {
1583
+ function zo(e, t) {
1583
1584
  return new e({
1584
1585
  type: "string",
1585
1586
  format: "datetime",
@@ -1590,7 +1591,7 @@ function bo(e, t) {
1590
1591
  ...f(t)
1591
1592
  });
1592
1593
  }
1593
- function yo(e, t) {
1594
+ function bo(e, t) {
1594
1595
  return new e({
1595
1596
  type: "string",
1596
1597
  format: "date",
@@ -1598,7 +1599,7 @@ function yo(e, t) {
1598
1599
  ...f(t)
1599
1600
  });
1600
1601
  }
1601
- function ko(e, t) {
1602
+ function yo(e, t) {
1602
1603
  return new e({
1603
1604
  type: "string",
1604
1605
  format: "time",
@@ -1607,7 +1608,7 @@ function ko(e, t) {
1607
1608
  ...f(t)
1608
1609
  });
1609
1610
  }
1610
- function xo(e, t) {
1611
+ function ko(e, t) {
1611
1612
  return new e({
1612
1613
  type: "string",
1613
1614
  format: "duration",
@@ -1615,103 +1616,103 @@ function xo(e, t) {
1615
1616
  ...f(t)
1616
1617
  });
1617
1618
  }
1618
- function Zo(e) {
1619
+ function xo(e) {
1619
1620
  return new e({
1620
1621
  type: "unknown"
1621
1622
  });
1622
1623
  }
1623
- function $o(e, t) {
1624
+ function Zo(e, t) {
1624
1625
  return new e({
1625
1626
  type: "never",
1626
1627
  ...f(t)
1627
1628
  });
1628
1629
  }
1629
1630
  function rt(e, t) {
1630
- return new Kn({
1631
+ return new Jn({
1631
1632
  check: "max_length",
1632
1633
  ...f(t),
1633
1634
  maximum: e
1634
1635
  });
1635
1636
  }
1636
- function J(e, t) {
1637
- return new Gn({
1637
+ function K(e, t) {
1638
+ return new Kn({
1638
1639
  check: "min_length",
1639
1640
  ...f(t),
1640
1641
  minimum: e
1641
1642
  });
1642
1643
  }
1643
1644
  function ot(e, t) {
1644
- return new Yn({
1645
+ return new Gn({
1645
1646
  check: "length_equals",
1646
1647
  ...f(t),
1647
1648
  length: e
1648
1649
  });
1649
1650
  }
1650
- function jo(e, t) {
1651
- return new Qn({
1651
+ function $o(e, t) {
1652
+ return new Yn({
1652
1653
  check: "string_format",
1653
1654
  format: "regex",
1654
1655
  ...f(t),
1655
1656
  pattern: e
1656
1657
  });
1657
1658
  }
1658
- function Eo(e) {
1659
- return new Xn({
1659
+ function jo(e) {
1660
+ return new Qn({
1660
1661
  check: "string_format",
1661
1662
  format: "lowercase",
1662
1663
  ...f(e)
1663
1664
  });
1664
1665
  }
1665
- function Po(e) {
1666
- return new er({
1666
+ function Eo(e) {
1667
+ return new Xn({
1667
1668
  check: "string_format",
1668
1669
  format: "uppercase",
1669
1670
  ...f(e)
1670
1671
  });
1671
1672
  }
1672
- function To(e, t) {
1673
- return new tr({
1673
+ function Po(e, t) {
1674
+ return new er({
1674
1675
  check: "string_format",
1675
1676
  format: "includes",
1676
1677
  ...f(t),
1677
1678
  includes: e
1678
1679
  });
1679
1680
  }
1680
- function Io(e, t) {
1681
- return new nr({
1681
+ function To(e, t) {
1682
+ return new tr({
1682
1683
  check: "string_format",
1683
1684
  format: "starts_with",
1684
1685
  ...f(t),
1685
1686
  prefix: e
1686
1687
  });
1687
1688
  }
1688
- function Ao(e, t) {
1689
- return new rr({
1689
+ function Io(e, t) {
1690
+ return new nr({
1690
1691
  check: "string_format",
1691
1692
  format: "ends_with",
1692
1693
  ...f(t),
1693
1694
  suffix: e
1694
1695
  });
1695
1696
  }
1696
- function L(e) {
1697
- return new or({
1697
+ function B(e) {
1698
+ return new rr({
1698
1699
  check: "overwrite",
1699
1700
  tx: e
1700
1701
  });
1701
1702
  }
1702
- function Oo(e) {
1703
- return L((t) => t.normalize(e));
1703
+ function Ao(e) {
1704
+ return B((t) => t.normalize(e));
1705
+ }
1706
+ function Oo() {
1707
+ return B((e) => e.trim());
1704
1708
  }
1705
1709
  function So() {
1706
- return L((e) => e.trim());
1710
+ return B((e) => e.toLowerCase());
1707
1711
  }
1708
1712
  function No() {
1709
- return L((e) => e.toLowerCase());
1713
+ return B((e) => e.toUpperCase());
1710
1714
  }
1711
- function Do() {
1712
- return L((e) => e.toUpperCase());
1713
- }
1714
- function Ro(e, t, n) {
1715
+ function Do(e, t, n) {
1715
1716
  return new e({
1716
1717
  type: "array",
1717
1718
  element: t,
@@ -1721,7 +1722,7 @@ function Ro(e, t, n) {
1721
1722
  ...f(n)
1722
1723
  });
1723
1724
  }
1724
- function Co(e, t, n) {
1725
+ function Ro(e, t, n) {
1725
1726
  return new e({
1726
1727
  type: "custom",
1727
1728
  check: "custom",
@@ -1729,8 +1730,8 @@ function Co(e, t, n) {
1729
1730
  ...f(n)
1730
1731
  });
1731
1732
  }
1732
- function Uo(e) {
1733
- const t = Fo((n) => (n.addIssue = (r) => {
1733
+ function Co(e) {
1734
+ const t = Uo((n) => (n.addIssue = (r) => {
1734
1735
  if (typeof r == "string")
1735
1736
  n.issues.push(U(r, n.value, t._zod.def));
1736
1737
  else {
@@ -1740,45 +1741,45 @@ function Uo(e) {
1740
1741
  }, e(n.value, n)));
1741
1742
  return t;
1742
1743
  }
1743
- function Fo(e, t) {
1744
+ function Uo(e, t) {
1744
1745
  const n = new j({
1745
1746
  check: "custom",
1746
1747
  ...f(t)
1747
1748
  });
1748
1749
  return n._zod.check = e, n;
1749
1750
  }
1750
- const Lo = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
1751
+ const Fo = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
1752
+ _r.init(e, t), g.init(e, t);
1753
+ });
1754
+ function Lo(e) {
1755
+ return zo(Fo, e);
1756
+ }
1757
+ const Bo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
1751
1758
  vr.init(e, t), g.init(e, t);
1752
1759
  });
1753
- function Bo(e) {
1754
- return bo(Lo, e);
1760
+ function Mo(e) {
1761
+ return bo(Bo, e);
1755
1762
  }
1756
- const Mo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
1763
+ const Wo = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
1757
1764
  wr.init(e, t), g.init(e, t);
1758
1765
  });
1759
- function Wo(e) {
1760
- return yo(Mo, e);
1766
+ function qo(e) {
1767
+ return yo(Wo, e);
1761
1768
  }
1762
- const qo = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
1769
+ const Vo = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
1763
1770
  zr.init(e, t), g.init(e, t);
1764
1771
  });
1765
- function Vo(e) {
1766
- return ko(qo, e);
1772
+ function Ho(e) {
1773
+ return ko(Vo, e);
1767
1774
  }
1768
- const Ho = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
1769
- br.init(e, t), g.init(e, t);
1770
- });
1771
- function Jo(e) {
1772
- return xo(Ho, e);
1773
- }
1774
- const Ko = (e, t) => {
1775
+ const Jo = (e, t) => {
1775
1776
  Ke.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1776
1777
  format: {
1777
- value: (n) => hn(e, n)
1778
+ value: (n) => pn(e, n)
1778
1779
  // enumerable: false,
1779
1780
  },
1780
1781
  flatten: {
1781
- value: (n) => pn(e, n)
1782
+ value: (n) => fn(e, n)
1782
1783
  // enumerable: false,
1783
1784
  },
1784
1785
  addIssue: {
@@ -1800,127 +1801,127 @@ const Ko = (e, t) => {
1800
1801
  // enumerable: false,
1801
1802
  }
1802
1803
  });
1803
- }, k = c("ZodError", Ko, {
1804
+ }, k = c("ZodError", Jo, {
1804
1805
  Parent: Error
1805
- }), Go = /* @__PURE__ */ ue(k), Yo = /* @__PURE__ */ le(k), Qo = /* @__PURE__ */ Q(k), Xo = /* @__PURE__ */ X(k), es = /* @__PURE__ */ _n(k), ts = /* @__PURE__ */ vn(k), ns = /* @__PURE__ */ wn(k), rs = /* @__PURE__ */ zn(k), os = /* @__PURE__ */ bn(k), ss = /* @__PURE__ */ yn(k), is = /* @__PURE__ */ kn(k), as = /* @__PURE__ */ xn(k), z = /* @__PURE__ */ c("ZodType", (e, t) => (v.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(S(t, {
1806
+ }), Ko = /* @__PURE__ */ ue(k), Go = /* @__PURE__ */ le(k), Yo = /* @__PURE__ */ Q(k), Qo = /* @__PURE__ */ X(k), Xo = /* @__PURE__ */ gn(k), es = /* @__PURE__ */ _n(k), ts = /* @__PURE__ */ vn(k), ns = /* @__PURE__ */ wn(k), rs = /* @__PURE__ */ zn(k), os = /* @__PURE__ */ bn(k), ss = /* @__PURE__ */ yn(k), is = /* @__PURE__ */ kn(k), z = /* @__PURE__ */ c("ZodType", (e, t) => (v.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(S(t, {
1806
1807
  checks: [
1807
1808
  ...t.checks ?? [],
1808
1809
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
1809
1810
  ]
1810
- })), e.clone = (n, r) => T(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Go(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Qo(e, n, r), e.parseAsync = async (n, r) => Yo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Xo(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => es(e, n, r), e.decode = (n, r) => ts(e, n, r), e.encodeAsync = async (n, r) => ns(e, n, r), e.decodeAsync = async (n, r) => rs(e, n, r), e.safeEncode = (n, r) => os(e, n, r), e.safeDecode = (n, r) => ss(e, n, r), e.safeEncodeAsync = async (n, r) => is(e, n, r), e.safeDecodeAsync = async (n, r) => as(e, n, r), e.refine = (n, r) => e.check(Ys(n, r)), e.superRefine = (n) => e.check(Qs(n)), e.overwrite = (n) => e.check(L(n)), e.optional = () => Pe(e), e.nullable = () => Te(e), e.nullish = () => Pe(Te(e)), e.nonoptional = (n) => Ws(e, n), e.array = () => Ts(e), e.or = (n) => Ss([e, n]), e.and = (n) => Ds(e, n), e.transform = (n) => Ie(e, Cs(n)), e.default = (n) => Ls(e, n), e.prefault = (n) => Ms(e, n), e.catch = (n) => Vs(e, n), e.pipe = (n) => Ie(e, n), e.readonly = () => Ks(e), e.describe = (n) => {
1811
+ })), e.clone = (n, r) => T(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Ko(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Yo(e, n, r), e.parseAsync = async (n, r) => Go(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Qo(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Xo(e, n, r), e.decode = (n, r) => es(e, n, r), e.encodeAsync = async (n, r) => ts(e, n, r), e.decodeAsync = async (n, r) => ns(e, n, r), e.safeEncode = (n, r) => rs(e, n, r), e.safeDecode = (n, r) => os(e, n, r), e.safeEncodeAsync = async (n, r) => ss(e, n, r), e.safeDecodeAsync = async (n, r) => is(e, n, r), e.refine = (n, r) => e.check(Gs(n, r)), e.superRefine = (n) => e.check(Ys(n)), e.overwrite = (n) => e.check(B(n)), e.optional = () => Pe(e), e.nullable = () => Te(e), e.nullish = () => Pe(Te(e)), e.nonoptional = (n) => Ms(e, n), e.array = () => Ps(e), e.or = (n) => Os([e, n]), e.and = (n) => Ns(e, n), e.transform = (n) => Ie(e, Rs(n)), e.default = (n) => Fs(e, n), e.prefault = (n) => Bs(e, n), e.catch = (n) => qs(e, n), e.pipe = (n) => Ie(e, n), e.readonly = () => Js(e), e.describe = (n) => {
1811
1812
  const r = e.clone();
1812
- return W.add(r, { description: n }), r;
1813
+ return q.add(r, { description: n }), r;
1813
1814
  }, Object.defineProperty(e, "description", {
1814
1815
  get() {
1815
- return W.get(e)?.description;
1816
+ return q.get(e)?.description;
1816
1817
  },
1817
1818
  configurable: !0
1818
1819
  }), e.meta = (...n) => {
1819
1820
  if (n.length === 0)
1820
- return W.get(e);
1821
+ return q.get(e);
1821
1822
  const r = e.clone();
1822
- return W.add(r, n[0]), r;
1823
+ return q.add(r, n[0]), r;
1823
1824
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), st = /* @__PURE__ */ c("_ZodString", (e, t) => {
1824
1825
  de.init(e, t), z.init(e, t);
1825
1826
  const n = e._zod.bag;
1826
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(jo(...r)), e.includes = (...r) => e.check(To(...r)), e.startsWith = (...r) => e.check(Io(...r)), e.endsWith = (...r) => e.check(Ao(...r)), e.min = (...r) => e.check(J(...r)), e.max = (...r) => e.check(rt(...r)), e.length = (...r) => e.check(ot(...r)), e.nonempty = (...r) => e.check(J(1, ...r)), e.lowercase = (r) => e.check(Eo(r)), e.uppercase = (r) => e.check(Po(r)), e.trim = () => e.check(So()), e.normalize = (...r) => e.check(Oo(...r)), e.toLowerCase = () => e.check(No()), e.toUpperCase = () => e.check(Do());
1827
- }), cs = /* @__PURE__ */ c("ZodString", (e, t) => {
1828
- de.init(e, t), st.init(e, t), e.email = (n) => e.check(Xr(us, n)), e.url = (n) => e.check(oo(ls, n)), e.jwt = (n) => e.check(zo(Zs, n)), e.emoji = (n) => e.check(so(ds, n)), e.guid = (n) => e.check(Ze(je, n)), e.uuid = (n) => e.check(eo(q, n)), e.uuidv4 = (n) => e.check(to(q, n)), e.uuidv6 = (n) => e.check(no(q, n)), e.uuidv7 = (n) => e.check(ro(q, n)), e.nanoid = (n) => e.check(io(fs, n)), e.guid = (n) => e.check(Ze(je, n)), e.cuid = (n) => e.check(ao(ps, n)), e.cuid2 = (n) => e.check(co(hs, n)), e.ulid = (n) => e.check(uo(ms, n)), e.base64 = (n) => e.check(_o(ys, n)), e.base64url = (n) => e.check(vo(ks, n)), e.xid = (n) => e.check(lo(gs, n)), e.ksuid = (n) => e.check(fo(_s, n)), e.ipv4 = (n) => e.check(po(vs, n)), e.ipv6 = (n) => e.check(ho(ws, n)), e.cidrv4 = (n) => e.check(mo(zs, n)), e.cidrv6 = (n) => e.check(go(bs, n)), e.e164 = (n) => e.check(wo(xs, n)), e.datetime = (n) => e.check(Bo(n)), e.date = (n) => e.check(Wo(n)), e.time = (n) => e.check(Vo(n)), e.duration = (n) => e.check(Jo(n));
1827
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check($o(...r)), e.includes = (...r) => e.check(Po(...r)), e.startsWith = (...r) => e.check(To(...r)), e.endsWith = (...r) => e.check(Io(...r)), e.min = (...r) => e.check(K(...r)), e.max = (...r) => e.check(rt(...r)), e.length = (...r) => e.check(ot(...r)), e.nonempty = (...r) => e.check(K(1, ...r)), e.lowercase = (r) => e.check(jo(r)), e.uppercase = (r) => e.check(Eo(r)), e.trim = () => e.check(Oo()), e.normalize = (...r) => e.check(Ao(...r)), e.toLowerCase = () => e.check(So()), e.toUpperCase = () => e.check(No());
1828
+ }), as = /* @__PURE__ */ c("ZodString", (e, t) => {
1829
+ de.init(e, t), st.init(e, t), e.email = (n) => e.check(Qr(cs, n)), e.url = (n) => e.check(ro(us, n)), e.jwt = (n) => e.check(wo(xs, n)), e.emoji = (n) => e.check(oo(ls, n)), e.guid = (n) => e.check(Ze(je, n)), e.uuid = (n) => e.check(Xr(V, n)), e.uuidv4 = (n) => e.check(eo(V, n)), e.uuidv6 = (n) => e.check(to(V, n)), e.uuidv7 = (n) => e.check(no(V, n)), e.nanoid = (n) => e.check(so(ds, n)), e.guid = (n) => e.check(Ze(je, n)), e.cuid = (n) => e.check(io(fs, n)), e.cuid2 = (n) => e.check(ao(ps, n)), e.ulid = (n) => e.check(co(hs, n)), e.base64 = (n) => e.check(go(bs, n)), e.base64url = (n) => e.check(_o(ys, n)), e.xid = (n) => e.check(uo(ms, n)), e.ksuid = (n) => e.check(lo(gs, n)), e.ipv4 = (n) => e.check(fo(_s, n)), e.ipv6 = (n) => e.check(po(vs, n)), e.cidrv4 = (n) => e.check(ho(ws, n)), e.cidrv6 = (n) => e.check(mo(zs, n)), e.e164 = (n) => e.check(vo(ks, n)), e.datetime = (n) => e.check(Lo(n)), e.date = (n) => e.check(Mo(n)), e.time = (n) => e.check(qo(n)), e.duration = (n) => e.check(Ho(n));
1829
1830
  });
1830
1831
  function $e(e) {
1831
- return Qr(cs, e);
1832
+ return Yr(as, e);
1832
1833
  }
1833
1834
  const g = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
1834
1835
  m.init(e, t), st.init(e, t);
1835
- }), us = /* @__PURE__ */ c("ZodEmail", (e, t) => {
1836
- ur.init(e, t), g.init(e, t);
1836
+ }), cs = /* @__PURE__ */ c("ZodEmail", (e, t) => {
1837
+ cr.init(e, t), g.init(e, t);
1837
1838
  }), je = /* @__PURE__ */ c("ZodGUID", (e, t) => {
1839
+ ir.init(e, t), g.init(e, t);
1840
+ }), V = /* @__PURE__ */ c("ZodUUID", (e, t) => {
1838
1841
  ar.init(e, t), g.init(e, t);
1839
- }), q = /* @__PURE__ */ c("ZodUUID", (e, t) => {
1840
- cr.init(e, t), g.init(e, t);
1841
- }), ls = /* @__PURE__ */ c("ZodURL", (e, t) => {
1842
+ }), us = /* @__PURE__ */ c("ZodURL", (e, t) => {
1843
+ ur.init(e, t), g.init(e, t);
1844
+ }), ls = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
1842
1845
  lr.init(e, t), g.init(e, t);
1843
- }), ds = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
1846
+ }), ds = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
1844
1847
  dr.init(e, t), g.init(e, t);
1845
- }), fs = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
1848
+ }), fs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
1846
1849
  fr.init(e, t), g.init(e, t);
1847
- }), ps = /* @__PURE__ */ c("ZodCUID", (e, t) => {
1850
+ }), ps = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
1848
1851
  pr.init(e, t), g.init(e, t);
1849
- }), hs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
1852
+ }), hs = /* @__PURE__ */ c("ZodULID", (e, t) => {
1850
1853
  hr.init(e, t), g.init(e, t);
1851
- }), ms = /* @__PURE__ */ c("ZodULID", (e, t) => {
1854
+ }), ms = /* @__PURE__ */ c("ZodXID", (e, t) => {
1852
1855
  mr.init(e, t), g.init(e, t);
1853
- }), gs = /* @__PURE__ */ c("ZodXID", (e, t) => {
1856
+ }), gs = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
1854
1857
  gr.init(e, t), g.init(e, t);
1855
- }), _s = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
1856
- _r.init(e, t), g.init(e, t);
1857
- }), vs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
1858
+ }), _s = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
1859
+ br.init(e, t), g.init(e, t);
1860
+ }), vs = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
1858
1861
  yr.init(e, t), g.init(e, t);
1859
- }), ws = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
1862
+ }), ws = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
1860
1863
  kr.init(e, t), g.init(e, t);
1861
- }), zs = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
1864
+ }), zs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
1862
1865
  xr.init(e, t), g.init(e, t);
1863
- }), bs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
1866
+ }), bs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
1864
1867
  Zr.init(e, t), g.init(e, t);
1865
- }), ys = /* @__PURE__ */ c("ZodBase64", (e, t) => {
1866
- $r.init(e, t), g.init(e, t);
1867
- }), ks = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
1868
+ }), ys = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
1869
+ jr.init(e, t), g.init(e, t);
1870
+ }), ks = /* @__PURE__ */ c("ZodE164", (e, t) => {
1868
1871
  Er.init(e, t), g.init(e, t);
1869
- }), xs = /* @__PURE__ */ c("ZodE164", (e, t) => {
1870
- Pr.init(e, t), g.init(e, t);
1871
- }), Zs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
1872
- Ir.init(e, t), g.init(e, t);
1873
- }), $s = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
1874
- Ar.init(e, t), z.init(e, t);
1872
+ }), xs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
1873
+ Tr.init(e, t), g.init(e, t);
1874
+ }), Zs = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
1875
+ Ir.init(e, t), z.init(e, t);
1875
1876
  });
1876
1877
  function Ee() {
1877
- return Zo($s);
1878
+ return xo(Zs);
1878
1879
  }
1879
- const js = /* @__PURE__ */ c("ZodNever", (e, t) => {
1880
- Or.init(e, t), z.init(e, t);
1880
+ const $s = /* @__PURE__ */ c("ZodNever", (e, t) => {
1881
+ Ar.init(e, t), z.init(e, t);
1881
1882
  });
1882
- function Es(e) {
1883
- return $o(js, e);
1883
+ function js(e) {
1884
+ return Zo($s, e);
1884
1885
  }
1885
- const Ps = /* @__PURE__ */ c("ZodArray", (e, t) => {
1886
- Sr.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(J(n, r)), e.nonempty = (n) => e.check(J(1, n)), e.max = (n, r) => e.check(rt(n, r)), e.length = (n, r) => e.check(ot(n, r)), e.unwrap = () => e.element;
1886
+ const Es = /* @__PURE__ */ c("ZodArray", (e, t) => {
1887
+ Or.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(K(n, r)), e.nonempty = (n) => e.check(K(1, n)), e.max = (n, r) => e.check(rt(n, r)), e.length = (n, r) => e.check(ot(n, r)), e.unwrap = () => e.element;
1887
1888
  });
1888
- function Ts(e, t) {
1889
- return Ro(Ps, e, t);
1889
+ function Ps(e, t) {
1890
+ return Do(Es, e, t);
1890
1891
  }
1891
- const Is = /* @__PURE__ */ c("ZodObject", (e, t) => {
1892
- Dr.init(e, t), z.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => it(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Es() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => cn(e, n), e.safeExtend = (n) => un(e, n), e.merge = (n) => ln(e, n), e.pick = (n) => sn(e, n), e.omit = (n) => an(e, n), e.partial = (...n) => dn(at, e, n[0]), e.required = (...n) => fn(ct, e, n[0]);
1892
+ const Ts = /* @__PURE__ */ c("ZodObject", (e, t) => {
1893
+ Nr.init(e, t), z.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => it(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.strict = () => e.clone({ ...e._zod.def, catchall: js() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => an(e, n), e.safeExtend = (n) => cn(e, n), e.merge = (n) => un(e, n), e.pick = (n) => on(e, n), e.omit = (n) => sn(e, n), e.partial = (...n) => ln(at, e, n[0]), e.required = (...n) => dn(ct, e, n[0]);
1893
1894
  });
1894
- function As(e, t) {
1895
+ function Is(e, t) {
1895
1896
  const n = {
1896
1897
  type: "object",
1897
1898
  shape: e ?? {},
1898
1899
  ...f(t)
1899
1900
  };
1900
- return new Is(n);
1901
+ return new Ts(n);
1901
1902
  }
1902
- const Os = /* @__PURE__ */ c("ZodUnion", (e, t) => {
1903
- Rr.init(e, t), z.init(e, t), e.options = t.options;
1903
+ const As = /* @__PURE__ */ c("ZodUnion", (e, t) => {
1904
+ Dr.init(e, t), z.init(e, t), e.options = t.options;
1904
1905
  });
1905
- function Ss(e, t) {
1906
- return new Os({
1906
+ function Os(e, t) {
1907
+ return new As({
1907
1908
  type: "union",
1908
1909
  options: e,
1909
1910
  ...f(t)
1910
1911
  });
1911
1912
  }
1912
- const Ns = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
1913
- Cr.init(e, t), z.init(e, t);
1913
+ const Ss = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
1914
+ Rr.init(e, t), z.init(e, t);
1914
1915
  });
1915
- function Ds(e, t) {
1916
- return new Ns({
1916
+ function Ns(e, t) {
1917
+ return new Ss({
1917
1918
  type: "intersection",
1918
1919
  left: e,
1919
1920
  right: t
1920
1921
  });
1921
1922
  }
1922
1923
  const oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
1923
- Ur.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
1924
+ Cr.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
1924
1925
  const n = new Set(Object.keys(t.entries));
1925
1926
  e.extract = (r, o) => {
1926
1927
  const s = {};
@@ -1958,8 +1959,8 @@ function it(e, t) {
1958
1959
  ...f(t)
1959
1960
  });
1960
1961
  }
1961
- const Rs = /* @__PURE__ */ c("ZodTransform", (e, t) => {
1962
- Fr.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
1962
+ const Ds = /* @__PURE__ */ c("ZodTransform", (e, t) => {
1963
+ Ur.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
1963
1964
  if (r.direction === "backward")
1964
1965
  throw new Me(e.constructor.name);
1965
1966
  n.addIssue = (s) => {
@@ -1974,14 +1975,14 @@ const Rs = /* @__PURE__ */ c("ZodTransform", (e, t) => {
1974
1975
  return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
1975
1976
  };
1976
1977
  });
1977
- function Cs(e) {
1978
- return new Rs({
1978
+ function Rs(e) {
1979
+ return new Ds({
1979
1980
  type: "transform",
1980
1981
  transform: e
1981
1982
  });
1982
1983
  }
1983
1984
  const at = /* @__PURE__ */ c("ZodOptional", (e, t) => {
1984
- Lr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1985
+ Fr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1985
1986
  });
1986
1987
  function Pe(e) {
1987
1988
  return new at({
@@ -1989,20 +1990,20 @@ function Pe(e) {
1989
1990
  innerType: e
1990
1991
  });
1991
1992
  }
1992
- const Us = /* @__PURE__ */ c("ZodNullable", (e, t) => {
1993
- Br.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1993
+ const Cs = /* @__PURE__ */ c("ZodNullable", (e, t) => {
1994
+ Lr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1994
1995
  });
1995
1996
  function Te(e) {
1996
- return new Us({
1997
+ return new Cs({
1997
1998
  type: "nullable",
1998
1999
  innerType: e
1999
2000
  });
2000
2001
  }
2001
- const Fs = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2002
- Mr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2002
+ const Us = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2003
+ Br.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2003
2004
  });
2004
- function Ls(e, t) {
2005
- return new Fs({
2005
+ function Fs(e, t) {
2006
+ return new Us({
2006
2007
  type: "default",
2007
2008
  innerType: e,
2008
2009
  get defaultValue() {
@@ -2010,11 +2011,11 @@ function Ls(e, t) {
2010
2011
  }
2011
2012
  });
2012
2013
  }
2013
- const Bs = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2014
- Wr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2014
+ const Ls = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2015
+ Mr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2015
2016
  });
2016
- function Ms(e, t) {
2017
- return new Bs({
2017
+ function Bs(e, t) {
2018
+ return new Ls({
2018
2019
  type: "prefault",
2019
2020
  innerType: e,
2020
2021
  get defaultValue() {
@@ -2023,59 +2024,59 @@ function Ms(e, t) {
2023
2024
  });
2024
2025
  }
2025
2026
  const ct = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2026
- qr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2027
+ Wr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2027
2028
  });
2028
- function Ws(e, t) {
2029
+ function Ms(e, t) {
2029
2030
  return new ct({
2030
2031
  type: "nonoptional",
2031
2032
  innerType: e,
2032
2033
  ...f(t)
2033
2034
  });
2034
2035
  }
2035
- const qs = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2036
- Vr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2036
+ const Ws = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2037
+ qr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2037
2038
  });
2038
- function Vs(e, t) {
2039
- return new qs({
2039
+ function qs(e, t) {
2040
+ return new Ws({
2040
2041
  type: "catch",
2041
2042
  innerType: e,
2042
2043
  catchValue: typeof t == "function" ? t : () => t
2043
2044
  });
2044
2045
  }
2045
- const Hs = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2046
- Hr.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
2046
+ const Vs = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2047
+ Vr.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
2047
2048
  });
2048
2049
  function Ie(e, t) {
2049
- return new Hs({
2050
+ return new Vs({
2050
2051
  type: "pipe",
2051
2052
  in: e,
2052
2053
  out: t
2053
2054
  // ...util.normalizeParams(params),
2054
2055
  });
2055
2056
  }
2056
- const Js = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2057
- Jr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2057
+ const Hs = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2058
+ Hr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2058
2059
  });
2059
- function Ks(e) {
2060
- return new Js({
2060
+ function Js(e) {
2061
+ return new Hs({
2061
2062
  type: "readonly",
2062
2063
  innerType: e
2063
2064
  });
2064
2065
  }
2065
- const Gs = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2066
- Kr.init(e, t), z.init(e, t);
2066
+ const Ks = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2067
+ Jr.init(e, t), z.init(e, t);
2067
2068
  });
2068
- function Ys(e, t = {}) {
2069
- return Co(Gs, e, t);
2069
+ function Gs(e, t = {}) {
2070
+ return Ro(Ks, e, t);
2070
2071
  }
2071
- function Qs(e) {
2072
- return Uo(e);
2072
+ function Ys(e) {
2073
+ return Co(e);
2073
2074
  }
2074
- const Xs = As({
2075
+ const Qs = Is({
2075
2076
  buildId: $e(),
2076
2077
  timestamp: $e(),
2077
2078
  status: it(["in-progress", "success", "failed"])
2078
- }), ei = ({
2079
+ }), Xs = ({
2079
2080
  buildId: e,
2080
2081
  environmentType: t,
2081
2082
  endpoint: n = "/__zuplo/docs"
@@ -2088,24 +2089,24 @@ const Xs = As({
2088
2089
  queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
2089
2090
  if (!s.ok) throw new Error("Failed to fetch build status");
2090
2091
  return s.json();
2091
- }).then((s) => Xs.parse(s))
2092
+ }).then((s) => Qs.parse(s))
2092
2093
  });
2093
- if (K(() => {
2094
+ if (G(() => {
2094
2095
  r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
2095
2096
  }, [r.data]), r.isError || !r.data || r.data.buildId === e)
2096
2097
  return null;
2097
2098
  const o = r.data.status === "success";
2098
2099
  return /* @__PURE__ */ a.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
2099
2100
  o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2100
- /* @__PURE__ */ a.jsx(Ut, { size: 16 }),
2101
+ /* @__PURE__ */ a.jsx(Ct, { size: 16 }),
2101
2102
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
2102
2103
  ] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2103
- /* @__PURE__ */ a.jsx(Ft, { size: 16, className: "animate-spin" }),
2104
+ /* @__PURE__ */ a.jsx(Ut, { size: 16, className: "animate-spin" }),
2104
2105
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
2105
2106
  ] }),
2106
2107
  /* @__PURE__ */ a.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
2107
2108
  o && /* @__PURE__ */ a.jsx(
2108
- Wt,
2109
+ Mt,
2109
2110
  {
2110
2111
  variant: "outline",
2111
2112
  size: "sm",
@@ -2117,13 +2118,13 @@ const Xs = As({
2117
2118
  }
2118
2119
  )
2119
2120
  ] });
2120
- }, ti = () => {
2121
+ }, ei = () => {
2121
2122
  const e = Re(), t = De(e.pathname);
2122
- K(() => {
2123
+ G(() => {
2123
2124
  const n = t.current !== e.pathname, r = e.hash !== "";
2124
2125
  n && !r && window.scrollTo(0, 0), t.current = e.pathname;
2125
2126
  }, [e.pathname, e.hash]);
2126
- }, ni = ({
2127
+ }, ti = ({
2127
2128
  icon: e
2128
2129
  }) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
2129
2130
  "img",
@@ -2132,8 +2133,8 @@ const Xs = As({
2132
2133
  className: "size-5",
2133
2134
  alt: e
2134
2135
  }
2135
- ) : e, ri = (e) => /^https?:/.test(e), oi = () => {
2136
- const { site: e } = Tt(), t = e?.footer;
2136
+ ) : e, ni = (e) => /^https?:/.test(e), ri = () => {
2137
+ const { site: e } = L(), t = e?.footer;
2137
2138
  return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2138
2139
  /* @__PURE__ */ a.jsxs(
2139
2140
  "div",
@@ -2162,7 +2163,7 @@ const Xs = As({
2162
2163
  /* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
2163
2164
  /* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
2164
2165
  const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2165
- return /* @__PURE__ */ a.jsx("li", { children: ri(r.href) ? /* @__PURE__ */ a.jsxs(
2166
+ return /* @__PURE__ */ a.jsx("li", { children: ni(r.href) ? /* @__PURE__ */ a.jsxs(
2166
2167
  "a",
2167
2168
  {
2168
2169
  href: r.href,
@@ -2171,10 +2172,10 @@ const Xs = As({
2171
2172
  className: o,
2172
2173
  children: [
2173
2174
  /* @__PURE__ */ a.jsx("span", { children: r.label }),
2174
- /* @__PURE__ */ a.jsx(Lt, { size: 12 })
2175
+ /* @__PURE__ */ a.jsx(Ft, { size: 12 })
2175
2176
  ]
2176
2177
  }
2177
- ) : /* @__PURE__ */ a.jsx(It, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2178
+ ) : /* @__PURE__ */ a.jsx(Tt, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2178
2179
  }) })
2179
2180
  ]
2180
2181
  },
@@ -2223,7 +2224,7 @@ const Xs = As({
2223
2224
  rel: "noopener noreferrer",
2224
2225
  className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2225
2226
  children: [
2226
- /* @__PURE__ */ a.jsx(ni, { icon: n.icon }),
2227
+ /* @__PURE__ */ a.jsx(ti, { icon: n.icon }),
2227
2228
  n.label
2228
2229
  ]
2229
2230
  },
@@ -2244,7 +2245,7 @@ const Xs = As({
2244
2245
  }
2245
2246
  );
2246
2247
  ut.displayName = "Drawer";
2247
- const si = $.Trigger, ii = $.Portal, lt = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2248
+ const oi = $.Trigger, si = $.Portal, lt = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2248
2249
  $.Overlay,
2249
2250
  {
2250
2251
  ref: n,
@@ -2253,8 +2254,8 @@ const si = $.Trigger, ii = $.Portal, lt = F.forwardRef(({ className: e, ...t },
2253
2254
  }
2254
2255
  ));
2255
2256
  lt.displayName = $.Overlay.displayName;
2256
- const ai = F.forwardRef(
2257
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(ii, { children: [
2257
+ const ii = F.forwardRef(
2258
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(si, { children: [
2258
2259
  /* @__PURE__ */ a.jsx(lt, {}),
2259
2260
  /* @__PURE__ */ a.jsxs(
2260
2261
  $.Content,
@@ -2273,8 +2274,8 @@ const ai = F.forwardRef(
2273
2274
  )
2274
2275
  ] })
2275
2276
  );
2276
- ai.displayName = "DrawerContent";
2277
- const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2277
+ ii.displayName = "DrawerContent";
2278
+ const ai = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2278
2279
  $.Title,
2279
2280
  {
2280
2281
  ref: n,
@@ -2285,8 +2286,8 @@ const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2285
2286
  ...t
2286
2287
  }
2287
2288
  ));
2288
- ci.displayName = $.Title.displayName;
2289
- const ui = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2289
+ ai.displayName = $.Title.displayName;
2290
+ const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2290
2291
  $.Description,
2291
2292
  {
2292
2293
  ref: n,
@@ -2294,15 +2295,15 @@ const ui = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2294
2295
  ...t
2295
2296
  }
2296
2297
  ));
2297
- ui.displayName = $.Description.displayName;
2298
+ ci.displayName = $.Description.displayName;
2298
2299
  const dt = ({
2299
2300
  children: e,
2300
2301
  className: t
2301
2302
  }) => {
2302
- const { options: n } = G(), r = De(null);
2303
- return K(() => {
2303
+ const { options: n } = L(), r = De(null);
2304
+ return G(() => {
2304
2305
  const o = r.current?.querySelector('[aria-current="page"]');
2305
- At(o ?? null);
2306
+ It(o ?? null);
2306
2307
  }, []), /* @__PURE__ */ a.jsxs(
2307
2308
  "div",
2308
2309
  {
@@ -2326,13 +2327,13 @@ const dt = ({
2326
2327
  children: e
2327
2328
  }
2328
2329
  ),
2329
- /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Ot, {}) })
2330
+ /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(At, {}) })
2330
2331
  ]
2331
2332
  }
2332
2333
  );
2333
2334
  };
2334
2335
  dt.displayName = "NavigationWrapper";
2335
- const li = ({
2336
+ const ui = ({
2336
2337
  onRequestClose: e,
2337
2338
  navigation: t
2338
2339
  }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -2348,12 +2349,12 @@ const li = ({
2348
2349
  /* @__PURE__ */ a.jsx(P.Target, { name: "navigation-after" })
2349
2350
  ] }),
2350
2351
  /* @__PURE__ */ a.jsx(
2351
- Ht,
2352
+ Vt,
2352
2353
  {
2353
2354
  className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
2354
2355
  "aria-describedby": void 0,
2355
2356
  children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
2356
- /* @__PURE__ */ a.jsx(Kt, { children: /* @__PURE__ */ a.jsx(Jt, { children: "Navigation" }) }),
2357
+ /* @__PURE__ */ a.jsx(Jt, { children: /* @__PURE__ */ a.jsx(Ht, { children: "Navigation" }) }),
2357
2358
  t.map((n) => /* @__PURE__ */ a.jsx(
2358
2359
  pe,
2359
2360
  {
@@ -2365,8 +2366,8 @@ const li = ({
2365
2366
  ] })
2366
2367
  }
2367
2368
  )
2368
- ] }), di = ({ children: e }) => {
2369
- const [t, n] = vt(!1), { navigation: r } = qt(), o = r.length > 0, s = yt().state === "loading", { options: i } = G();
2369
+ ] }), li = ({ children: e }) => {
2370
+ const [t, n] = vt(!1), { navigation: r } = Wt(), o = r.length > 0, s = yt().state === "loading", { options: i } = L();
2370
2371
  return /* @__PURE__ */ a.jsxs(
2371
2372
  ut,
2372
2373
  {
@@ -2375,14 +2376,14 @@ const li = ({
2375
2376
  onOpenChange: (u) => n(u),
2376
2377
  children: [
2377
2378
  o && /* @__PURE__ */ a.jsx(
2378
- li,
2379
+ ui,
2379
2380
  {
2380
2381
  onRequestClose: () => n(!1),
2381
2382
  navigation: r
2382
2383
  }
2383
2384
  ),
2384
- o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(si, { className: "flex items-center gap-2 px-4", children: [
2385
- /* @__PURE__ */ a.jsx(Bt, { size: 16, strokeWidth: 1.5 }),
2385
+ o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(oi, { className: "flex items-center gap-2 px-4", children: [
2386
+ /* @__PURE__ */ a.jsx(Lt, { size: 16, strokeWidth: 1.5 }),
2386
2387
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
2387
2388
  ] }) }),
2388
2389
  /* @__PURE__ */ a.jsxs(
@@ -2404,13 +2405,13 @@ const li = ({
2404
2405
  ]
2405
2406
  }
2406
2407
  );
2407
- }, fi = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(Gt, {}) }), pi = ({ children: e }) => {
2408
- const { authentication: t } = G();
2409
- return St(), ti(), K(() => {
2408
+ }, di = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(Kt, {}) }), fi = ({ children: e }) => {
2409
+ const { authentication: t } = L();
2410
+ return Ot(), ei(), G(() => {
2410
2411
  t?.onPageLoad?.();
2411
- }, [t]), /* @__PURE__ */ a.jsxs(Nt, { children: [
2412
+ }, [t]), /* @__PURE__ */ a.jsxs(St, { children: [
2412
2413
  /* @__PURE__ */ a.jsx(P.Target, { name: "layout-before-head" }),
2413
- /* @__PURE__ */ a.jsx(Dt, {}),
2414
+ /* @__PURE__ */ a.jsx(Nt, {}),
2414
2415
  /* @__PURE__ */ a.jsx(P.Target, { name: "layout-after-head" }),
2415
2416
  /* @__PURE__ */ a.jsx(
2416
2417
  "div",
@@ -2420,20 +2421,20 @@ const li = ({
2420
2421
  "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
2421
2422
  "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
2422
2423
  ),
2423
- children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx(fi, {}), children: /* @__PURE__ */ a.jsx(di, { children: e ?? /* @__PURE__ */ a.jsx(kt, {}) }) })
2424
+ children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx(di, {}), children: /* @__PURE__ */ a.jsx(li, { children: e ?? /* @__PURE__ */ a.jsx(kt, {}) }) })
2424
2425
  }
2425
2426
  ),
2426
- /* @__PURE__ */ a.jsx(oi, {})
2427
+ /* @__PURE__ */ a.jsx(ri, {})
2427
2428
  ] });
2428
- }, hi = ({ children: e }) => {
2429
- const { meta: t, options: n } = G(), r = Re();
2429
+ }, pi = ({ children: e }) => {
2430
+ const { meta: t, options: n } = L(), r = Re();
2430
2431
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2431
2432
  /* @__PURE__ */ a.jsxs(Oe, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2432
2433
  n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
2433
2434
  "link",
2434
2435
  {
2435
2436
  rel: "canonical",
2436
- href: Vt(
2437
+ href: qt(
2437
2438
  n.canonicalUrlOrigin,
2438
2439
  n.basePath,
2439
2440
  r.pathname
@@ -2452,7 +2453,7 @@ const li = ({
2452
2453
  ] }),
2453
2454
  e
2454
2455
  ] });
2455
- }, mi = ({
2456
+ }, hi = ({
2456
2457
  title: e = "An error occurred",
2457
2458
  message: t,
2458
2459
  category: n
@@ -2466,9 +2467,9 @@ const li = ({
2466
2467
  /* @__PURE__ */ a.jsx(Be, { children: "404" }),
2467
2468
  /* @__PURE__ */ a.jsxs(Ue, { level: 1, className: "flex gap-3.5 items-center", children: [
2468
2469
  "Page not found",
2469
- /* @__PURE__ */ a.jsx(Mt, { size: 24 })
2470
+ /* @__PURE__ */ a.jsx(Bt, { size: 24 })
2470
2471
  ] }),
2471
- /* @__PURE__ */ a.jsxs(Rt, { children: [
2472
+ /* @__PURE__ */ a.jsxs(Dt, { children: [
2472
2473
  "Start by adding a file at",
2473
2474
  " ",
2474
2475
  /* @__PURE__ */ a.jsxs("code", { children: [
@@ -2486,7 +2487,7 @@ const li = ({
2486
2487
  /* @__PURE__ */ a.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
2487
2488
  /* @__PURE__ */ a.jsx(Zt, { to: "/", children: "Go back home" })
2488
2489
  ] });
2489
- }, gi = (e) => {
2490
+ }, mi = (e) => {
2490
2491
  switch (e) {
2491
2492
  case 400:
2492
2493
  return {
@@ -2549,12 +2550,12 @@ const li = ({
2549
2550
  message: "Something went wrong while processing your request."
2550
2551
  };
2551
2552
  }
2552
- }, _i = ({ statusCode: e, message: t }) => {
2553
+ }, gi = ({ statusCode: e, message: t }) => {
2553
2554
  if (e === 404)
2554
2555
  return /* @__PURE__ */ a.jsx(ft, {});
2555
- const n = gi(e);
2556
+ const n = mi(e);
2556
2557
  return /* @__PURE__ */ a.jsx(
2557
- mi,
2558
+ hi,
2558
2559
  {
2559
2560
  title: n.title,
2560
2561
  message: t ?? n.message,
@@ -2562,14 +2563,14 @@ const li = ({
2562
2563
  }
2563
2564
  );
2564
2565
  };
2565
- function vi({ className: e }) {
2566
+ function _i({ className: e }) {
2566
2567
  const t = $t();
2567
2568
  return jt(t) && t.status === 404 ? /* @__PURE__ */ a.jsx(ft, {}) : /* @__PURE__ */ a.jsx("div", { className: x("mx-4 max-w-2xl", e), children: /* @__PURE__ */ a.jsx(Fe, { error: t }) });
2568
2569
  }
2569
- function wi({ error: e }) {
2570
+ function vi({ error: e }) {
2570
2571
  return /* @__PURE__ */ a.jsx(Fe, { error: e });
2571
2572
  }
2572
- const Di = pi, Ri = vi, Ci = wi, Ui = Xt, Fi = en, Li = Ct, Bi = Oe, Mi = _i, Wi = ei, qi = hi;
2573
+ const Di = fi, Ri = _i, Ci = vi, Ui = Qt, Fi = Xt, Li = Rt, Bi = Oe, Mi = gi, Wi = Xs, qi = pi;
2573
2574
  export {
2574
2575
  Ui as Bootstrap,
2575
2576
  Fi as BootstrapStatic,