zudoku 0.53.3 → 0.53.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/dist/config/validators/InputNavigationSchema.d.ts +0 -5
  2. package/dist/config/validators/InputNavigationSchema.js +0 -3
  3. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  4. package/dist/config/validators/InputNavigationSchema.test-d.js +0 -1
  5. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
  6. package/dist/config/validators/NavigationSchema.js +3 -2
  7. package/dist/config/validators/NavigationSchema.js.map +1 -1
  8. package/dist/config/validators/validate.d.ts +3 -0
  9. package/dist/config/validators/validate.js +1 -0
  10. package/dist/config/validators/validate.js.map +1 -1
  11. package/dist/lib/components/Header.js +1 -1
  12. package/dist/lib/components/Header.js.map +1 -1
  13. package/dist/lib/components/Markdown.js +2 -2
  14. package/dist/lib/components/Markdown.js.map +1 -1
  15. package/dist/lib/components/NotFoundPage.js +1 -1
  16. package/dist/lib/components/NotFoundPage.js.map +1 -1
  17. package/dist/lib/components/Typography.d.ts +1 -1
  18. package/dist/lib/components/Typography.js +1 -1
  19. package/dist/lib/components/Typography.js.map +1 -1
  20. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  21. package/dist/lib/core/ZudokuContext.js.map +1 -1
  22. package/dist/lib/errors/ErrorAlert.js +1 -1
  23. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  24. package/dist/lib/plugins/openapi/OperationList.js +2 -1
  25. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  26. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  27. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  28. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  29. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  30. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  31. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  32. package/dist/lib/plugins/openapi/playground/Playground.js +4 -2
  33. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  34. package/dist/lib/ui/CodeBlock.js +1 -1
  35. package/dist/lib/ui/CodeBlock.js.map +1 -1
  36. package/dist/lib/ui/EmbeddedCodeBlock.js +1 -1
  37. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  38. package/dist/vite/dev-server.js +9 -1
  39. package/dist/vite/dev-server.js.map +1 -1
  40. package/dist/vite/plugin-docs.js +11 -9
  41. package/dist/vite/plugin-docs.js.map +1 -1
  42. package/dist/vite/plugin-theme.js +88 -49
  43. package/dist/vite/plugin-theme.js.map +1 -1
  44. package/dist/vite/plugin-theme.test.js +25 -4
  45. package/dist/vite/plugin-theme.test.js.map +1 -1
  46. package/lib/{Alert-FYKbqjIt.js → Alert-CWApD0CL.js} +4 -4
  47. package/lib/Alert-CWApD0CL.js.map +1 -0
  48. package/lib/{Button-BE9IVkWV.js → Button-B3o-2Xdf.js} +2 -2
  49. package/lib/{Button-BE9IVkWV.js.map → Button-B3o-2Xdf.js.map} +1 -1
  50. package/lib/CallbackHandler-Dr5Lva9x.js +38 -0
  51. package/lib/CallbackHandler-Dr5Lva9x.js.map +1 -0
  52. package/lib/{Card-DPhGbYUM.js → Card-CMDQUPM4.js} +2 -2
  53. package/lib/{Card-DPhGbYUM.js.map → Card-CMDQUPM4.js.map} +1 -1
  54. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  55. package/lib/{CodeBlock-DAKxs_Tu.js → CodeBlock-B-G0eKtw.js} +3 -3
  56. package/lib/{CodeBlock-DAKxs_Tu.js.map → CodeBlock-B-G0eKtw.js.map} +1 -1
  57. package/lib/{Command-xsbs2uhf.js → Command-C9AC5cf-.js} +3 -3
  58. package/lib/{Command-xsbs2uhf.js.map → Command-C9AC5cf-.js.map} +1 -1
  59. package/lib/{Dialog-CiIdyz6a.js → Dialog-DMWw1doX.js} +2 -2
  60. package/lib/{Dialog-CiIdyz6a.js.map → Dialog-DMWw1doX.js.map} +1 -1
  61. package/lib/{Drawer-BzkOKwgC.js → Drawer-DJ05s2pH.js} +86 -86
  62. package/lib/{Drawer-BzkOKwgC.js.map → Drawer-DJ05s2pH.js.map} +1 -1
  63. package/lib/{MdxPage-DyRuoE_F.js → MdxPage-DVI4iYgW.js} +9 -9
  64. package/lib/{MdxPage-DyRuoE_F.js.map → MdxPage-DVI4iYgW.js.map} +1 -1
  65. package/lib/{OasProvider-CUA-DFGE.js → OasProvider-CbwsKPNc.js} +2 -2
  66. package/lib/{OasProvider-CUA-DFGE.js.map → OasProvider-CbwsKPNc.js.map} +1 -1
  67. package/lib/{OperationList-CRMvWoTv.js → OperationList-Bn9ggxw8.js} +176 -176
  68. package/lib/OperationList-Bn9ggxw8.js.map +1 -0
  69. package/lib/{Pagination-HZKe5ncg.js → Pagination-bavPec-z.js} +3 -3
  70. package/lib/{Pagination-HZKe5ncg.js.map → Pagination-bavPec-z.js.map} +1 -1
  71. package/lib/{RouteGuard-CbKd7_9h.js → RouteGuard-Vnlz_t51.js} +3 -3
  72. package/lib/{RouteGuard-CbKd7_9h.js.map → RouteGuard-Vnlz_t51.js.map} +1 -1
  73. package/lib/{SchemaList-B792ORza.js → SchemaList-DETyCVqu.js} +9 -9
  74. package/lib/{SchemaList-B792ORza.js.map → SchemaList-DETyCVqu.js.map} +1 -1
  75. package/lib/{SchemaView-Bo53TeMb.js → SchemaView-Dvxo2RNe.js} +6 -6
  76. package/lib/{SchemaView-Bo53TeMb.js.map → SchemaView-Dvxo2RNe.js.map} +1 -1
  77. package/lib/{SignUp-DfVvOCYB.js → SignUp-ClYhZq9H.js} +4 -4
  78. package/lib/{SignUp-DfVvOCYB.js.map → SignUp-ClYhZq9H.js.map} +1 -1
  79. package/lib/{Slot-BpO_AGKJ.js → Slot-B31yZlfB.js} +316 -336
  80. package/lib/{Slot-BpO_AGKJ.js.map → Slot-B31yZlfB.js.map} +1 -1
  81. package/lib/Spinner-mNLZ6awP.js.map +1 -1
  82. package/lib/{SyntaxHighlight-CZgjJ7-f.js → SyntaxHighlight-bm761HDo.js} +4 -4
  83. package/lib/{SyntaxHighlight-CZgjJ7-f.js.map → SyntaxHighlight-bm761HDo.js.map} +1 -1
  84. package/lib/{Toc-DYMzDvOa.js → Toc-D4oBWE8D.js} +3 -3
  85. package/lib/{Toc-DYMzDvOa.js.map → Toc-D4oBWE8D.js.map} +1 -1
  86. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -1
  87. package/lib/{circular-CLdQ0oUd.js → circular-CRbFI6Zl.js} +2 -2
  88. package/lib/{circular-CLdQ0oUd.js.map → circular-CRbFI6Zl.js.map} +1 -1
  89. package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
  90. package/lib/cn-dYga0KKN.js.map +1 -0
  91. package/lib/{createServer-Co4BBP-i.js → createServer-DNyGJJNX.js} +3398 -3552
  92. package/lib/createServer-DNyGJJNX.js.map +1 -0
  93. package/lib/errors-C1GlNcV3.js +44 -0
  94. package/lib/errors-C1GlNcV3.js.map +1 -0
  95. package/lib/{hook-Bd0yS8M0.js → hook-CZjW2buS.js} +420 -413
  96. package/lib/hook-CZjW2buS.js.map +1 -0
  97. package/lib/index-Bm35Tkgf.js +107 -0
  98. package/lib/index-Bm35Tkgf.js.map +1 -0
  99. package/lib/{index-DLzZDv8_.js → index-CZTEgYDd.js} +2 -2
  100. package/lib/{index-DLzZDv8_.js.map → index-CZTEgYDd.js.map} +1 -1
  101. package/lib/{index-DYP-V0jG.js → index-C_PXQ8Bx.js} +612 -610
  102. package/lib/{index-DYP-V0jG.js.map → index-C_PXQ8Bx.js.map} +1 -1
  103. package/lib/index-CrcNWbel.js.map +1 -1
  104. package/lib/{index-DLshv89l.js → index-D09PbNex.js} +1261 -1260
  105. package/lib/index-D09PbNex.js.map +1 -0
  106. package/lib/index-DI5SPFK9.js.map +1 -1
  107. package/lib/index-DmNq2fbN.js.map +1 -1
  108. package/lib/index.esm-Cp4wkyud.js.map +1 -1
  109. package/lib/invariant-DAFpPywt.js.map +1 -1
  110. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -1
  111. package/lib/processors/removeExtensions.js.map +1 -1
  112. package/lib/processors/removeParameters.js.map +1 -1
  113. package/lib/processors/removePaths.js.map +1 -1
  114. package/lib/processors/traverse.js.map +1 -1
  115. package/lib/ui/Accordion.js +1 -1
  116. package/lib/ui/Accordion.js.map +1 -1
  117. package/lib/ui/ActionButton.js +2 -2
  118. package/lib/ui/ActionButton.js.map +1 -1
  119. package/lib/ui/Alert.js +1 -1
  120. package/lib/ui/Alert.js.map +1 -1
  121. package/lib/ui/AlertDialog.js +1 -1
  122. package/lib/ui/AlertDialog.js.map +1 -1
  123. package/lib/ui/Badge.js +1 -1
  124. package/lib/ui/Badge.js.map +1 -1
  125. package/lib/ui/Breadcrumb.js +1 -1
  126. package/lib/ui/Breadcrumb.js.map +1 -1
  127. package/lib/ui/Button.js +1 -1
  128. package/lib/ui/Button.js.map +1 -1
  129. package/lib/ui/Callout.js +1 -1
  130. package/lib/ui/Callout.js.map +1 -1
  131. package/lib/ui/Card.js +1 -1
  132. package/lib/ui/Card.js.map +1 -1
  133. package/lib/ui/Carousel.js +1 -1
  134. package/lib/ui/Carousel.js.map +1 -1
  135. package/lib/ui/Checkbox.js +1 -1
  136. package/lib/ui/Checkbox.js.map +1 -1
  137. package/lib/ui/CodeBlock.js +2 -2
  138. package/lib/ui/Command.js +2 -2
  139. package/lib/ui/Command.js.map +1 -1
  140. package/lib/ui/Dialog.js +1 -1
  141. package/lib/ui/Dialog.js.map +1 -1
  142. package/lib/ui/Drawer.js +2 -2
  143. package/lib/ui/DropdownMenu.js +1 -1
  144. package/lib/ui/DropdownMenu.js.map +1 -1
  145. package/lib/ui/EmbeddedCodeBlock.js +2 -2
  146. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  147. package/lib/ui/Form.js +1 -1
  148. package/lib/ui/Form.js.map +1 -1
  149. package/lib/ui/HoverCard.js +1 -1
  150. package/lib/ui/HoverCard.js.map +1 -1
  151. package/lib/ui/Input.js +1 -1
  152. package/lib/ui/Input.js.map +1 -1
  153. package/lib/ui/Label.js +1 -1
  154. package/lib/ui/Label.js.map +1 -1
  155. package/lib/ui/Pagination.js +1 -1
  156. package/lib/ui/Pagination.js.map +1 -1
  157. package/lib/ui/Popover.js +1 -1
  158. package/lib/ui/Popover.js.map +1 -1
  159. package/lib/ui/Progress.js +1 -1
  160. package/lib/ui/Progress.js.map +1 -1
  161. package/lib/ui/RadioGroup.js +1 -1
  162. package/lib/ui/RadioGroup.js.map +1 -1
  163. package/lib/ui/ScrollArea.js +1 -1
  164. package/lib/ui/ScrollArea.js.map +1 -1
  165. package/lib/ui/Select.js +1 -1
  166. package/lib/ui/Select.js.map +1 -1
  167. package/lib/ui/Skeleton.js +1 -1
  168. package/lib/ui/Skeleton.js.map +1 -1
  169. package/lib/ui/Slider.js +1 -1
  170. package/lib/ui/Slider.js.map +1 -1
  171. package/lib/ui/Stepper.js.map +1 -1
  172. package/lib/ui/Switch.js +1 -1
  173. package/lib/ui/Switch.js.map +1 -1
  174. package/lib/ui/SyntaxHighlight.js +3 -3
  175. package/lib/ui/Tabs.js +1 -1
  176. package/lib/ui/Tabs.js.map +1 -1
  177. package/lib/ui/Textarea.js +1 -1
  178. package/lib/ui/Textarea.js.map +1 -1
  179. package/lib/ui/Toggle.js +1 -1
  180. package/lib/ui/Toggle.js.map +1 -1
  181. package/lib/ui/ToggleGroup.js +1 -1
  182. package/lib/ui/ToggleGroup.js.map +1 -1
  183. package/lib/ui/Tooltip.js +1 -1
  184. package/lib/ui/Tooltip.js.map +1 -1
  185. package/lib/ui/util.js +1 -1
  186. package/lib/useExposedProps-BIYjecPD.js.map +1 -1
  187. package/lib/zudoku.auth-auth0.js +1 -1
  188. package/lib/zudoku.auth-auth0.js.map +1 -1
  189. package/lib/zudoku.auth-azureb2c.js +40 -9882
  190. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  191. package/lib/zudoku.auth-clerk.js +3 -3
  192. package/lib/zudoku.auth-clerk.js.map +1 -1
  193. package/lib/zudoku.auth-openid.js +20 -19
  194. package/lib/zudoku.auth-openid.js.map +1 -1
  195. package/lib/zudoku.auth-supabase.js +97 -0
  196. package/lib/zudoku.auth-supabase.js.map +1 -0
  197. package/lib/zudoku.components.js +5 -5
  198. package/lib/zudoku.hooks.js +3 -3
  199. package/lib/zudoku.hooks.js.map +1 -1
  200. package/lib/zudoku.icons.js.map +1 -1
  201. package/lib/zudoku.plugin-api-catalog.js +5 -5
  202. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  203. package/lib/zudoku.plugin-api-keys.js +7 -7
  204. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  205. package/lib/zudoku.plugin-custom-pages.js +1 -1
  206. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  207. package/lib/zudoku.plugin-markdown.js +1 -1
  208. package/lib/zudoku.plugin-markdown.js.map +1 -1
  209. package/lib/zudoku.plugin-openapi.js +2 -2
  210. package/lib/zudoku.plugin-redirect.js.map +1 -1
  211. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  212. package/lib/zudoku.plugin-search-pagefind.js +6 -6
  213. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  214. package/lib/zudoku.plugins.js.map +1 -1
  215. package/package.json +20 -20
  216. package/src/app/main.css +26 -5
  217. package/src/lib/components/Header.tsx +1 -1
  218. package/src/lib/components/Markdown.tsx +3 -3
  219. package/src/lib/components/NotFoundPage.tsx +3 -2
  220. package/src/lib/components/Typography.tsx +1 -1
  221. package/src/lib/core/ZudokuContext.ts +1 -0
  222. package/src/lib/errors/ErrorAlert.tsx +5 -7
  223. package/src/lib/plugins/openapi/OperationList.tsx +3 -1
  224. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  225. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
  226. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  227. package/src/lib/plugins/openapi/playground/Playground.tsx +8 -2
  228. package/src/lib/ui/CodeBlock.tsx +1 -1
  229. package/src/lib/ui/EmbeddedCodeBlock.tsx +1 -1
  230. package/dist/flat-config.d.ts +0 -325
  231. package/lib/Alert-FYKbqjIt.js.map +0 -1
  232. package/lib/OperationList-CRMvWoTv.js.map +0 -1
  233. package/lib/clerk-BDZ31hjU.js +0 -25190
  234. package/lib/clerk-BDZ31hjU.js.map +0 -1
  235. package/lib/cn-wvCW-ho6.js.map +0 -1
  236. package/lib/createServer-Co4BBP-i.js.map +0 -1
  237. package/lib/errors-DE1gK7ms.js +0 -78
  238. package/lib/errors-DE1gK7ms.js.map +0 -1
  239. package/lib/hook-Bd0yS8M0.js.map +0 -1
  240. package/lib/index-ClhS5TxS.js +0 -107
  241. package/lib/index-ClhS5TxS.js.map +0 -1
  242. package/lib/index-DLshv89l.js.map +0 -1
@@ -1,40 +1,40 @@
1
- import { B as It, a as Rt, H as Ie, R as en } from "./RouteGuard-CbKd7_9h.js";
2
- import { z as Dt, M as tn, J as rn, u as nn } from "./index-ClhS5TxS.js";
3
- import { R as on, S as sn, u as xe, e as Re, f as an, L as De, O as Mt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
- import { S as Ft, v as qt, Q as cn, n as R, w as Ye, x as Ge, y as L, z as un, A as ln, B as dn, D as fn, E as Je, F as Xe, G as hn, h as et, H as tt, I as pn, g as Ut, J as Lt, l as mn, d as M, e as oe, K as Qt, L as Bt, j as ee, M as gn, u as vn, c as yn, N as xn, Z as _n, f as bn, C as wn } from "./hook-Bd0yS8M0.js";
5
- import { h as jn, E as Ht, a as A, A as kn, i as $n, s as zn, N as rt, j as Pn, T as Kt, C as En, H as Sn, k as Zn, l as Tn, m as Cn, V as On, R as Nn, M as An } from "./Slot-BpO_AGKJ.js";
1
+ import { B as At, a as It, H as Re, R as Jr } from "./RouteGuard-Vnlz_t51.js";
2
+ import { z as Rt, M as Xr, J as en, u as tn } from "./index-Bm35Tkgf.js";
3
+ import { R as rn, S as nn, u as xe, e as De, f as on, L as Me, O as Dt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
+ import { S as Mt, v as Ft, Q as sn, n as R, w as Ge, x as Je, i as L, y as an, z as cn, A as un, B as ln, D as Xe, E as et, F as dn, h as tt, G as rt, H as fn, I as hn, g as qt, J as Ut, l as pn, d as M, e as oe, K as Lt, L as Qt, j as ee, M as mn, u as gn, c as vn, N as yn, Z as xn, f as _n, C as bn } from "./hook-CZjW2buS.js";
5
+ import { h as wn, E as Bt, a as A, A as jn, i as kn, s as $n, N as nt, j as zn, T as Kt, C as Pn, H as En, k as Sn, l as Zn, m as Cn, V as Tn, R as Nn, M as On } from "./Slot-B31yZlfB.js";
6
6
  import { j as s } from "./jsx-runtime-C5mzlN2N.js";
7
- import { Button as Wt } from "./ui/Button.js";
8
- import { Callout as In } from "./ui/Callout.js";
9
- import * as Q from "react";
10
- import { createContext as Me, StrictMode as Vt, useRef as K, useEffect as F, useState as G, useCallback as H, Suspense as Fe, Fragment as Rn, memo as Yt, Component as Dn, createElement as nt, useMemo as $e, useContext as Mn } from "react";
11
- import * as Fn from "react-dom";
12
- import { CircleFadingArrowUpIcon as qn, LoaderCircleIcon as Un, ExternalLink as Ln, CircleXIcon as Qn, ChevronRightIcon as Bn, SearchIcon as Hn, SunIcon as Kn, MoonIcon as Wn, MenuIcon as Vn, PanelLeftIcon as Yn } from "lucide-react";
7
+ import { Button as Ht } from "./ui/Button.js";
8
+ import { Callout as An } from "./ui/Callout.js";
9
+ import * as K from "react";
10
+ import { createContext as Fe, StrictMode as Wt, useRef as H, useEffect as F, useState as G, useCallback as B, Suspense as qe, Fragment as In, memo as Vt, Component as Rn, createElement as ot, useMemo as $e, useContext as Dn } from "react";
11
+ import * as Mn from "react-dom";
12
+ import { CircleFadingArrowUpIcon as Fn, LoaderCircleIcon as qn, ExternalLink as Un, CircleXIcon as Ln, ChevronRightIcon as Qn, SearchIcon as Bn, SunIcon as Kn, MoonIcon as Hn, MenuIcon as Wn, PanelLeftIcon as Vn } from "lucide-react";
13
13
  import { C as te } from "./ClientOnly-E7hGysn1.js";
14
- import { c as N } from "./cn-wvCW-ho6.js";
15
- import { S as Gt } from "./Spinner-mNLZ6awP.js";
16
- import { isSearchPlugin as Gn, isProfileMenuPlugin as Jt, isNavigationPlugin as ot, isAuthenticationPlugin as Jn, isEventConsumerPlugin as Xn, needsInitialization as eo, isApiIdentityPlugin as to, isMdxProviderPlugin as ro, hasHead as no } from "./zudoku.plugins.js";
17
- import { B as Se } from "./Button-BE9IVkWV.js";
18
- import { DropdownMenu as oo, DropdownMenuTrigger as so, DropdownMenuContent as ao, DropdownMenuLabel as io, DropdownMenuSeparator as ze, DropdownMenuSub as co, DropdownMenuSubTrigger as uo, DropdownMenuPortal as lo, DropdownMenuSubContent as fo, DropdownMenuItem as ho } from "./ui/DropdownMenu.js";
19
- import { VisuallyHidden as Xt } from "@radix-ui/react-visually-hidden";
20
- import { D as po, a as mo, b as er, c as tr, d as q } from "./Drawer-BzkOKwgC.js";
21
- import { a as go } from "./index-DI5SPFK9.js";
22
- var vo = class extends Ft {
14
+ import { c as O } from "./cn-dYga0KKN.js";
15
+ import { S as Yt } from "./Spinner-mNLZ6awP.js";
16
+ import { isSearchPlugin as Yn, isProfileMenuPlugin as Gt, isNavigationPlugin as st, isAuthenticationPlugin as Gn, isEventConsumerPlugin as Jn, needsInitialization as Xn, isApiIdentityPlugin as eo, isMdxProviderPlugin as to, hasHead as ro } from "./zudoku.plugins.js";
17
+ import { B as Se } from "./Button-B3o-2Xdf.js";
18
+ import { DropdownMenu as no, DropdownMenuTrigger as oo, DropdownMenuContent as so, DropdownMenuLabel as io, DropdownMenuSeparator as ze, DropdownMenuSub as ao, DropdownMenuSubTrigger as co, DropdownMenuPortal as uo, DropdownMenuSubContent as lo, DropdownMenuItem as fo } from "./ui/DropdownMenu.js";
19
+ import { VisuallyHidden as Jt } from "@radix-ui/react-visually-hidden";
20
+ import { D as ho, a as po, b as Xt, c as er, d as q } from "./Drawer-DJ05s2pH.js";
21
+ import { a as mo } from "./index-DI5SPFK9.js";
22
+ var go = class extends Mt {
23
23
  constructor(e = {}) {
24
24
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
25
25
  }
26
26
  #e;
27
27
  build(e, t, r) {
28
- const n = t.queryKey, o = t.queryHash ?? qt(n, t);
29
- let a = this.get(o);
30
- return a || (a = new cn({
28
+ const n = t.queryKey, o = t.queryHash ?? Ft(n, t);
29
+ let i = this.get(o);
30
+ return i || (i = new sn({
31
31
  client: e,
32
32
  queryKey: n,
33
33
  queryHash: o,
34
34
  options: e.defaultQueryOptions(t),
35
35
  state: r,
36
36
  defaultOptions: e.getQueryDefaults(n)
37
- }), this.add(a)), a;
37
+ }), this.add(i)), i;
38
38
  }
39
39
  add(e) {
40
40
  this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
@@ -62,12 +62,12 @@ var vo = class extends Ft {
62
62
  find(e) {
63
63
  const t = { exact: !0, ...e };
64
64
  return this.getAll().find(
65
- (r) => Ye(t, r)
65
+ (r) => Ge(t, r)
66
66
  );
67
67
  }
68
68
  findAll(e = {}) {
69
69
  const t = this.getAll();
70
- return Object.keys(e).length > 0 ? t.filter((r) => Ye(e, r)) : t;
70
+ return Object.keys(e).length > 0 ? t.filter((r) => Ge(e, r)) : t;
71
71
  }
72
72
  notify(e) {
73
73
  R.batch(() => {
@@ -90,7 +90,7 @@ var vo = class extends Ft {
90
90
  });
91
91
  });
92
92
  }
93
- }, yo = class extends Ft {
93
+ }, vo = class extends Mt {
94
94
  constructor(e = {}) {
95
95
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
96
96
  }
@@ -98,7 +98,7 @@ var vo = class extends Ft {
98
98
  #t;
99
99
  #r;
100
100
  build(e, t, r) {
101
- const n = new jn({
101
+ const n = new wn({
102
102
  mutationCache: this,
103
103
  mutationId: ++this.#r,
104
104
  options: e.defaultMutationOptions(t),
@@ -156,11 +156,11 @@ var vo = class extends Ft {
156
156
  find(e) {
157
157
  const t = { exact: !0, ...e };
158
158
  return this.getAll().find(
159
- (r) => Ge(t, r)
159
+ (r) => Je(t, r)
160
160
  );
161
161
  }
162
162
  findAll(e = {}) {
163
- return this.getAll().filter((t) => Ge(e, t));
163
+ return this.getAll().filter((t) => Je(e, t));
164
164
  }
165
165
  notify(e) {
166
166
  R.batch(() => {
@@ -181,55 +181,54 @@ var vo = class extends Ft {
181
181
  function ue(e) {
182
182
  return e.options.scope?.id;
183
183
  }
184
- function st(e) {
184
+ function it(e) {
185
185
  return {
186
186
  onFetch: (t, r) => {
187
- const n = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
188
- let u = { pages: [], pageParams: [] }, h = 0;
187
+ const n = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, i = t.state.data?.pages || [], a = t.state.data?.pageParams || [];
188
+ let u = { pages: [], pageParams: [] }, p = 0;
189
189
  const f = async () => {
190
- let y = !1;
191
- const p = (g) => {
190
+ let x = !1;
191
+ const h = (g) => {
192
192
  Object.defineProperty(g, "signal", {
193
193
  enumerable: !0,
194
- get: () => (t.signal.aborted ? y = !0 : t.signal.addEventListener("abort", () => {
195
- y = !0;
194
+ get: () => (t.signal.aborted ? x = !0 : t.signal.addEventListener("abort", () => {
195
+ x = !0;
196
196
  }), t.signal)
197
197
  });
198
- }, m = un(t.options, t.fetchOptions), l = async (g, w, P) => {
199
- if (y)
198
+ }, m = an(t.options, t.fetchOptions), l = async (g, w, E) => {
199
+ if (x)
200
200
  return Promise.reject();
201
201
  if (w == null && g.pages.length)
202
202
  return Promise.resolve(g);
203
- const T = {
204
- client: t.client,
205
- queryKey: t.queryKey,
206
- pageParam: w,
207
- direction: P ? "backward" : "forward",
208
- meta: t.options.meta
209
- };
210
- p(T);
211
- const j = await m(
212
- T
213
- ), { maxPages: x } = t.options, b = P ? ln : dn;
203
+ const j = (() => {
204
+ const k = {
205
+ client: t.client,
206
+ queryKey: t.queryKey,
207
+ pageParam: w,
208
+ direction: E ? "backward" : "forward",
209
+ meta: t.options.meta
210
+ };
211
+ return h(k), k;
212
+ })(), y = await m(j), { maxPages: _ } = t.options, d = E ? cn : un;
214
213
  return {
215
- pages: b(g.pages, j, x),
216
- pageParams: b(g.pageParams, w, x)
214
+ pages: d(g.pages, y, _),
215
+ pageParams: d(g.pageParams, w, _)
217
216
  };
218
217
  };
219
- if (o && a.length) {
220
- const g = o === "backward", w = g ? xo : at, P = {
221
- pages: a,
222
- pageParams: i
223
- }, T = w(n, P);
224
- u = await l(P, T, g);
218
+ if (o && i.length) {
219
+ const g = o === "backward", w = g ? yo : at, E = {
220
+ pages: i,
221
+ pageParams: a
222
+ }, $ = w(n, E);
223
+ u = await l(E, $, g);
225
224
  } else {
226
- const g = e ?? a.length;
225
+ const g = e ?? i.length;
227
226
  do {
228
- const w = h === 0 ? i[0] ?? n.initialPageParam : at(n, u);
229
- if (h > 0 && w == null)
227
+ const w = p === 0 ? a[0] ?? n.initialPageParam : at(n, u);
228
+ if (p > 0 && w == null)
230
229
  break;
231
- u = await l(u, w), h++;
232
- } while (h < g);
230
+ u = await l(u, w), p++;
231
+ } while (p < g);
233
232
  }
234
233
  return u;
235
234
  };
@@ -255,30 +254,30 @@ function at(e, { pages: t, pageParams: r }) {
255
254
  r
256
255
  ) : void 0;
257
256
  }
258
- function xo(e, { pages: t, pageParams: r }) {
257
+ function yo(e, { pages: t, pageParams: r }) {
259
258
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
260
259
  }
261
- var _o = class {
260
+ var xo = class {
262
261
  #e;
263
262
  #t;
264
263
  #r;
265
264
  #o;
266
265
  #s;
267
266
  #n;
268
- #a;
269
267
  #i;
268
+ #a;
270
269
  constructor(e = {}) {
271
- this.#e = e.queryCache || new vo(), this.#t = e.mutationCache || new yo(), this.#r = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#n = 0;
270
+ this.#e = e.queryCache || new go(), this.#t = e.mutationCache || new vo(), this.#r = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#n = 0;
272
271
  }
273
272
  mount() {
274
- this.#n++, this.#n === 1 && (this.#a = fn.subscribe(async (e) => {
273
+ this.#n++, this.#n === 1 && (this.#i = ln.subscribe(async (e) => {
275
274
  e && (await this.resumePausedMutations(), this.#e.onFocus());
276
- }), this.#i = Je.subscribe(async (e) => {
275
+ }), this.#a = Xe.subscribe(async (e) => {
277
276
  e && (await this.resumePausedMutations(), this.#e.onOnline());
278
277
  }));
279
278
  }
280
279
  unmount() {
281
- this.#n--, this.#n === 0 && (this.#a?.(), this.#a = void 0, this.#i?.(), this.#i = void 0);
280
+ this.#n--, this.#n === 0 && (this.#i?.(), this.#i = void 0, this.#a?.(), this.#a = void 0);
282
281
  }
283
282
  isFetching(e) {
284
283
  return this.#e.findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -299,7 +298,7 @@ var _o = class {
299
298
  }
300
299
  ensureQueryData(e) {
301
300
  const t = this.defaultQueryOptions(e), r = this.#e.build(this, t), n = r.state.data;
302
- return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Xe(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
301
+ return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(et(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
303
302
  }
304
303
  getQueriesData(e) {
305
304
  return this.#e.findAll(e).map(({ queryKey: t, state: r }) => {
@@ -308,11 +307,11 @@ var _o = class {
308
307
  });
309
308
  }
310
309
  setQueryData(e, t, r) {
311
- const n = this.defaultQueryOptions({ queryKey: e }), a = this.#e.get(
310
+ const n = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(
312
311
  n.queryHash
313
- )?.state.data, i = hn(t, a);
314
- if (i !== void 0)
315
- return this.#e.build(this, n).setData(i, { ...r, manual: !0 });
312
+ )?.state.data, a = dn(t, i);
313
+ if (a !== void 0)
314
+ return this.#e.build(this, n).setData(a, { ...r, manual: !0 });
316
315
  }
317
316
  setQueriesData(e, t, r) {
318
317
  return R.batch(
@@ -370,9 +369,9 @@ var _o = class {
370
369
  ...t,
371
370
  cancelRefetch: t.cancelRefetch ?? !0
372
371
  }, n = R.batch(
373
- () => this.#e.findAll(e).filter((o) => !o.isDisabled()).map((o) => {
374
- let a = o.fetch(void 0, r);
375
- return r.throwOnError || (a = a.catch(L)), o.state.fetchStatus === "paused" ? Promise.resolve() : a;
372
+ () => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
373
+ let i = o.fetch(void 0, r);
374
+ return r.throwOnError || (i = i.catch(L)), o.state.fetchStatus === "paused" ? Promise.resolve() : i;
376
375
  })
377
376
  );
378
377
  return Promise.all(n).then(L);
@@ -382,23 +381,23 @@ var _o = class {
382
381
  t.retry === void 0 && (t.retry = !1);
383
382
  const r = this.#e.build(this, t);
384
383
  return r.isStaleByTime(
385
- Xe(t.staleTime, r)
384
+ et(t.staleTime, r)
386
385
  ) ? r.fetch(t) : Promise.resolve(r.state.data);
387
386
  }
388
387
  prefetchQuery(e) {
389
388
  return this.fetchQuery(e).then(L).catch(L);
390
389
  }
391
390
  fetchInfiniteQuery(e) {
392
- return e.behavior = st(e.pages), this.fetchQuery(e);
391
+ return e.behavior = it(e.pages), this.fetchQuery(e);
393
392
  }
394
393
  prefetchInfiniteQuery(e) {
395
394
  return this.fetchInfiniteQuery(e).then(L).catch(L);
396
395
  }
397
396
  ensureInfiniteQueryData(e) {
398
- return e.behavior = st(e.pages), this.ensureQueryData(e);
397
+ return e.behavior = it(e.pages), this.ensureQueryData(e);
399
398
  }
400
399
  resumePausedMutations() {
401
- return Je.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
400
+ return Xe.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
402
401
  }
403
402
  getQueryCache() {
404
403
  return this.#e;
@@ -413,7 +412,7 @@ var _o = class {
413
412
  this.#r = e;
414
413
  }
415
414
  setQueryDefaults(e, t) {
416
- this.#o.set(et(e), {
415
+ this.#o.set(tt(e), {
417
416
  queryKey: e,
418
417
  defaultOptions: t
419
418
  });
@@ -421,11 +420,11 @@ var _o = class {
421
420
  getQueryDefaults(e) {
422
421
  const t = [...this.#o.values()], r = {};
423
422
  return t.forEach((n) => {
424
- tt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
423
+ rt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
425
424
  }), r;
426
425
  }
427
426
  setMutationDefaults(e, t) {
428
- this.#s.set(et(e), {
427
+ this.#s.set(tt(e), {
429
428
  mutationKey: e,
430
429
  defaultOptions: t
431
430
  });
@@ -433,7 +432,7 @@ var _o = class {
433
432
  getMutationDefaults(e) {
434
433
  const t = [...this.#s.values()], r = {};
435
434
  return t.forEach((n) => {
436
- tt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
435
+ rt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
437
436
  }), r;
438
437
  }
439
438
  defaultQueryOptions(e) {
@@ -445,10 +444,10 @@ var _o = class {
445
444
  ...e,
446
445
  _defaulted: !0
447
446
  };
448
- return t.queryHash || (t.queryHash = qt(
447
+ return t.queryHash || (t.queryHash = Ft(
449
448
  t.queryKey,
450
449
  t
451
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === pn && (t.enabled = !1), t;
450
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === fn && (t.enabled = !1), t;
452
451
  }
453
452
  defaultMutationOptions(e) {
454
453
  return e?._defaulted ? e : {
@@ -462,14 +461,14 @@ var _o = class {
462
461
  this.#e.clear(), this.#t.clear();
463
462
  }
464
463
  };
465
- function bo(e) {
464
+ function _o(e) {
466
465
  return e;
467
466
  }
468
- function it(e, t, r) {
467
+ function ct(e, t, r) {
469
468
  if (typeof t != "object" || t === null)
470
469
  return;
471
- const n = e.getMutationCache(), o = e.getQueryCache(), a = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? bo, i = t.mutations || [], u = t.queries || [];
472
- i.forEach(({ state: h, ...f }) => {
470
+ const n = e.getMutationCache(), o = e.getQueryCache(), i = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? _o, a = t.mutations || [], u = t.queries || [];
471
+ a.forEach(({ state: p, ...f }) => {
473
472
  n.build(
474
473
  e,
475
474
  {
@@ -477,77 +476,79 @@ function it(e, t, r) {
477
476
  ...r?.defaultOptions?.mutations,
478
477
  ...f
479
478
  },
480
- h
479
+ p
481
480
  );
482
- }), u.forEach(({ queryKey: h, state: f, queryHash: y, meta: p, promise: m }) => {
483
- let l = o.get(y);
484
- const g = f.data === void 0 ? f.data : a(f.data);
485
- if (l) {
486
- if (l.state.dataUpdatedAt < f.dataUpdatedAt) {
487
- const { fetchStatus: w, ...P } = f;
488
- l.setState({
489
- ...P,
490
- data: g
491
- });
492
- }
493
- } else
494
- l = o.build(
495
- e,
496
- {
497
- ...e.getDefaultOptions().hydrate?.queries,
498
- ...r?.defaultOptions?.queries,
499
- queryKey: h,
500
- queryHash: y,
501
- meta: p
502
- },
503
- // Reset fetch status to idle to avoid
504
- // query being stuck in fetching state upon hydration
505
- {
506
- ...f,
507
- data: g,
508
- fetchStatus: "idle"
481
+ }), u.forEach(
482
+ ({ queryKey: p, state: f, queryHash: x, meta: h, promise: m, dehydratedAt: l }) => {
483
+ const g = m ? hn(m) : void 0, w = f.data === void 0 ? g?.data : f.data, E = w === void 0 ? w : i(w);
484
+ let $ = o.get(x);
485
+ const j = $?.state.status === "pending", y = $?.state.fetchStatus === "fetching";
486
+ if ($) {
487
+ const _ = g && // We only need this undefined check to handle older dehydration
488
+ // payloads that might not have dehydratedAt
489
+ l !== void 0 && l > $.state.dataUpdatedAt;
490
+ if (f.dataUpdatedAt > $.state.dataUpdatedAt || _) {
491
+ const { fetchStatus: d, ...k } = f;
492
+ $.setState({
493
+ ...k,
494
+ data: E
495
+ });
509
496
  }
510
- );
511
- if (m) {
512
- const w = Promise.resolve(m).then(a);
513
- l.fetch(void 0, { initialPromise: w });
497
+ } else
498
+ $ = o.build(
499
+ e,
500
+ {
501
+ ...e.getDefaultOptions().hydrate?.queries,
502
+ ...r?.defaultOptions?.queries,
503
+ queryKey: p,
504
+ queryHash: x,
505
+ meta: h
506
+ },
507
+ // Reset fetch status to idle to avoid
508
+ // query being stuck in fetching state upon hydration
509
+ {
510
+ ...f,
511
+ data: E,
512
+ fetchStatus: "idle",
513
+ status: E !== void 0 ? "success" : f.status
514
+ }
515
+ );
516
+ m && !j && !y && // Only hydrate if dehydration is newer than any existing data,
517
+ // this is always true for new queries
518
+ (l === void 0 || l > $.state.dataUpdatedAt) && $.fetch(void 0, {
519
+ // RSC transformed promises are not thenable
520
+ initialPromise: Promise.resolve(m).then(i)
521
+ });
514
522
  }
515
- });
523
+ );
516
524
  }
517
- var ct = (e, t) => typeof e == "object" && e !== null && t in e, wo = ({
525
+ var bo = ({
518
526
  children: e,
519
527
  options: t = {},
520
528
  state: r,
521
529
  queryClient: n
522
530
  }) => {
523
- const o = Ut(n), [a, i] = Q.useState(), u = Q.useRef(t);
524
- return u.current = t, Q.useMemo(() => {
531
+ const o = qt(n), i = K.useRef(t);
532
+ i.current = t;
533
+ const a = K.useMemo(() => {
525
534
  if (r) {
526
535
  if (typeof r != "object")
527
536
  return;
528
- const h = o.getQueryCache(), f = r.queries || [], y = [], p = [];
529
- for (const m of f) {
530
- const l = h.get(m.queryHash);
531
- if (!l)
532
- y.push(m);
533
- else {
534
- const g = m.state.dataUpdatedAt > l.state.dataUpdatedAt || // RSC special serialized then-able chunks
535
- ct(m.promise, "status") && ct(l.promise, "status") && m.promise.status !== l.promise.status, w = a?.find(
536
- (P) => P.queryHash === m.queryHash
537
- );
538
- g && (!w || m.state.dataUpdatedAt > w.state.dataUpdatedAt) && p.push(m);
539
- }
537
+ const u = o.getQueryCache(), p = r.queries || [], f = [], x = [];
538
+ for (const h of p) {
539
+ const m = u.get(h.queryHash);
540
+ m ? (h.state.dataUpdatedAt > m.state.dataUpdatedAt || h.promise && m.state.status !== "pending" && m.state.fetchStatus !== "fetching" && h.dehydratedAt !== void 0 && h.dehydratedAt > m.state.dataUpdatedAt) && x.push(h) : f.push(h);
540
541
  }
541
- y.length > 0 && it(o, { queries: y }, u.current), p.length > 0 && i(
542
- (m) => m ? [...m, ...p] : p
543
- );
542
+ if (f.length > 0 && ct(o, { queries: f }, i.current), x.length > 0)
543
+ return x;
544
544
  }
545
- }, [o, a, r]), Q.useEffect(() => {
546
- a && (it(o, { queries: a }, u.current), i(void 0));
545
+ }, [o, r]);
546
+ return K.useEffect(() => {
547
+ a && ct(o, { queries: a }, i.current);
547
548
  }, [o, a]), e;
548
549
  };
549
- function jo({ error: e }) {
550
- return /* @__PURE__ */ s.jsx(Ht, { error: e });
550
+ function wo({ error: e }) {
551
+ return /* @__PURE__ */ s.jsx(Bt, { error: e });
551
552
  }
552
553
  /**
553
554
  * react-router v7.6.1
@@ -559,69 +560,69 @@ function jo({ error: e }) {
559
560
  *
560
561
  * @license MIT
561
562
  */
562
- function ko(e) {
563
- return /* @__PURE__ */ Q.createElement(on, { flushSync: Fn.flushSync, ...e });
563
+ function jo(e) {
564
+ return /* @__PURE__ */ K.createElement(rn, { flushSync: Mn.flushSync, ...e });
564
565
  }
565
- const Ze = Me({ stagger: !1 }), $o = new _o({
566
+ const Ze = Fe({ stagger: !1 }), ko = new xo({
566
567
  defaultOptions: {
567
568
  queries: {
568
569
  staleTime: 1e3 * 60 * 5
569
570
  }
570
571
  }
571
- }), zo = ({
572
+ }), $o = ({
572
573
  router: e,
573
574
  hydrate: t = !1
574
- }) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client: $o, children: /* @__PURE__ */ s.jsx(wo, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(It, { value: !1, children: /* @__PURE__ */ s.jsx(Rt, { children: /* @__PURE__ */ s.jsx(Ze.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ s.jsx(ko, { router: e }) }) }) }) }) }) }), Po = ({
575
+ }) => /* @__PURE__ */ s.jsx(Wt, { children: /* @__PURE__ */ s.jsx(Ut, { client: ko, children: /* @__PURE__ */ s.jsx(bo, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(At, { value: !1, children: /* @__PURE__ */ s.jsx(It, { children: /* @__PURE__ */ s.jsx(Ze.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ s.jsx(jo, { router: e }) }) }) }) }) }) }), zo = ({
575
576
  router: e,
576
577
  context: t,
577
578
  queryClient: r,
578
579
  helmetContext: n,
579
580
  bypassProtection: o = !1
580
- }) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client: r, children: /* @__PURE__ */ s.jsx(Rt, { context: n, children: /* @__PURE__ */ s.jsx(It, { value: o, children: /* @__PURE__ */ s.jsx(sn, { router: e, context: t }) }) }) }) });
581
+ }) => /* @__PURE__ */ s.jsx(Wt, { children: /* @__PURE__ */ s.jsx(Ut, { client: r, children: /* @__PURE__ */ s.jsx(It, { context: n, children: /* @__PURE__ */ s.jsx(At, { value: o, children: /* @__PURE__ */ s.jsx(nn, { router: e, context: t }) }) }) }) });
581
582
  function c(e, t, r) {
582
- function n(u, h) {
583
+ function n(u, p) {
583
584
  var f;
584
585
  Object.defineProperty(u, "_zod", {
585
586
  value: u._zod ?? {},
586
587
  enumerable: !1
587
- }), (f = u._zod).traits ?? (f.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, h);
588
- for (const y in i.prototype)
589
- y in u || Object.defineProperty(u, y, { value: i.prototype[y].bind(u) });
590
- u._zod.constr = i, u._zod.def = h;
588
+ }), (f = u._zod).traits ?? (f.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, p);
589
+ for (const x in a.prototype)
590
+ x in u || Object.defineProperty(u, x, { value: a.prototype[x].bind(u) });
591
+ u._zod.constr = a, u._zod.def = p;
591
592
  }
592
593
  const o = r?.Parent ?? Object;
593
- class a extends o {
594
- }
595
- Object.defineProperty(a, "name", { value: e });
596
- function i(u) {
597
- var h;
598
- const f = r?.Parent ? new a() : this;
599
- n(f, u), (h = f._zod).deferred ?? (h.deferred = []);
600
- for (const y of f._zod.deferred)
601
- y();
594
+ class i extends o {
595
+ }
596
+ Object.defineProperty(i, "name", { value: e });
597
+ function a(u) {
598
+ var p;
599
+ const f = r?.Parent ? new i() : this;
600
+ n(f, u), (p = f._zod).deferred ?? (p.deferred = []);
601
+ for (const x of f._zod.deferred)
602
+ x();
602
603
  return f;
603
604
  }
604
- return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
605
+ return Object.defineProperty(a, "init", { value: n }), Object.defineProperty(a, Symbol.hasInstance, {
605
606
  value: (u) => r?.Parent && u instanceof r.Parent ? !0 : u?._zod?.traits?.has(e)
606
- }), Object.defineProperty(i, "name", { value: e }), i;
607
+ }), Object.defineProperty(a, "name", { value: e }), a;
607
608
  }
608
609
  class se extends Error {
609
610
  constructor() {
610
611
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
611
612
  }
612
613
  }
613
- const rr = {};
614
+ const tr = {};
614
615
  function V(e) {
615
- return rr;
616
+ return tr;
616
617
  }
617
- function Eo(e) {
618
+ function Po(e) {
618
619
  const t = Object.values(e).filter((n) => typeof n == "number");
619
620
  return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
620
621
  }
621
- function So(e, t) {
622
+ function Eo(e, t) {
622
623
  return typeof t == "bigint" ? t.toString() : t;
623
624
  }
624
- function nr(e) {
625
+ function rr(e) {
625
626
  return {
626
627
  get value() {
627
628
  {
@@ -631,10 +632,10 @@ function nr(e) {
631
632
  }
632
633
  };
633
634
  }
634
- function qe(e) {
635
+ function Ue(e) {
635
636
  return e == null;
636
637
  }
637
- function Ue(e) {
638
+ function Le(e) {
638
639
  const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
639
640
  return e.slice(t, r);
640
641
  }
@@ -655,7 +656,7 @@ function S(e, t, r) {
655
656
  configurable: !0
656
657
  });
657
658
  }
658
- function Le(e, t, r) {
659
+ function Qe(e, t, r) {
659
660
  Object.defineProperty(e, t, {
660
661
  value: r,
661
662
  writable: !0,
@@ -663,22 +664,15 @@ function Le(e, t, r) {
663
664
  configurable: !0
664
665
  });
665
666
  }
666
- function or(e = 10) {
667
- const t = "abcdefghijklmnopqrstuvwxyz";
668
- let r = "";
669
- for (let n = 0; n < e; n++)
670
- r += t[Math.floor(Math.random() * t.length)];
671
- return r;
672
- }
673
667
  function re(e) {
674
668
  return JSON.stringify(e);
675
669
  }
676
- const sr = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
670
+ const nr = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
677
671
  };
678
- function Te(e) {
672
+ function Ce(e) {
679
673
  return typeof e == "object" && e !== null && !Array.isArray(e);
680
674
  }
681
- const Zo = nr(() => {
675
+ const So = rr(() => {
682
676
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
683
677
  return !1;
684
678
  try {
@@ -688,16 +682,16 @@ const Zo = nr(() => {
688
682
  return !1;
689
683
  }
690
684
  });
691
- function ut(e) {
692
- if (Te(e) === !1)
685
+ function Te(e) {
686
+ if (Ce(e) === !1)
693
687
  return !1;
694
688
  const t = e.constructor;
695
689
  if (t === void 0)
696
690
  return !0;
697
691
  const r = t.prototype;
698
- return !(Te(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
692
+ return !(Ce(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
699
693
  }
700
- const To = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
694
+ const Zo = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
701
695
  function _e(e) {
702
696
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
703
697
  }
@@ -705,7 +699,7 @@ function J(e, t, r) {
705
699
  const n = new e._zod.constr(t ?? e._zod.def);
706
700
  return (!t || r?.parent) && (n._zod.parent = e), n;
707
701
  }
708
- function _(e) {
702
+ function b(e) {
709
703
  const t = e;
710
704
  if (!t)
711
705
  return {};
@@ -721,7 +715,7 @@ function _(e) {
721
715
  function Co(e) {
722
716
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
723
717
  }
724
- function Oo(e, t) {
718
+ function To(e, t) {
725
719
  const r = {}, n = e._zod.def;
726
720
  for (const o in t) {
727
721
  if (!(o in n.shape))
@@ -747,69 +741,71 @@ function No(e, t) {
747
741
  checks: []
748
742
  });
749
743
  }
750
- function Ao(e, t) {
744
+ function Oo(e, t) {
745
+ if (!Te(t))
746
+ throw new Error("Invalid input to extend: expected a plain object");
751
747
  const r = {
752
748
  ...e._zod.def,
753
749
  get shape() {
754
750
  const n = { ...e._zod.def.shape, ...t };
755
- return Le(this, "shape", n), n;
751
+ return Qe(this, "shape", n), n;
756
752
  },
757
753
  checks: []
758
754
  // delete existing checks
759
755
  };
760
756
  return J(e, r);
761
757
  }
762
- function Io(e, t) {
758
+ function Ao(e, t) {
763
759
  return J(e, {
764
760
  ...e._zod.def,
765
761
  get shape() {
766
762
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
767
- return Le(this, "shape", r), r;
763
+ return Qe(this, "shape", r), r;
768
764
  },
769
765
  catchall: t._zod.def.catchall,
770
766
  checks: []
771
767
  // delete existing checks
772
768
  });
773
769
  }
774
- function Ro(e, t, r) {
770
+ function Io(e, t, r) {
775
771
  const n = t._zod.def.shape, o = { ...n };
776
772
  if (r)
777
- for (const a in r) {
778
- if (!(a in n))
779
- throw new Error(`Unrecognized key: "${a}"`);
780
- r[a] && (o[a] = e ? new e({
773
+ for (const i in r) {
774
+ if (!(i in n))
775
+ throw new Error(`Unrecognized key: "${i}"`);
776
+ r[i] && (o[i] = e ? new e({
781
777
  type: "optional",
782
- innerType: n[a]
783
- }) : n[a]);
778
+ innerType: n[i]
779
+ }) : n[i]);
784
780
  }
785
781
  else
786
- for (const a in n)
787
- o[a] = e ? new e({
782
+ for (const i in n)
783
+ o[i] = e ? new e({
788
784
  type: "optional",
789
- innerType: n[a]
790
- }) : n[a];
785
+ innerType: n[i]
786
+ }) : n[i];
791
787
  return J(t, {
792
788
  ...t._zod.def,
793
789
  shape: o,
794
790
  checks: []
795
791
  });
796
792
  }
797
- function Do(e, t, r) {
793
+ function Ro(e, t, r) {
798
794
  const n = t._zod.def.shape, o = { ...n };
799
795
  if (r)
800
- for (const a in r) {
801
- if (!(a in o))
802
- throw new Error(`Unrecognized key: "${a}"`);
803
- r[a] && (o[a] = new e({
796
+ for (const i in r) {
797
+ if (!(i in o))
798
+ throw new Error(`Unrecognized key: "${i}"`);
799
+ r[i] && (o[i] = new e({
804
800
  type: "nonoptional",
805
- innerType: n[a]
801
+ innerType: n[i]
806
802
  }));
807
803
  }
808
804
  else
809
- for (const a in n)
810
- o[a] = new e({
805
+ for (const i in n)
806
+ o[i] = new e({
811
807
  type: "nonoptional",
812
- innerType: n[a]
808
+ innerType: n[i]
813
809
  });
814
810
  return J(t, {
815
811
  ...t._zod.def,
@@ -820,11 +816,11 @@ function Do(e, t, r) {
820
816
  }
821
817
  function ne(e, t = 0) {
822
818
  for (let r = t; r < e.issues.length; r++)
823
- if (e.issues[r].continue !== !0)
819
+ if (e.issues[r]?.continue !== !0)
824
820
  return !0;
825
821
  return !1;
826
822
  }
827
- function Qe(e, t) {
823
+ function Be(e, t) {
828
824
  return t.map((r) => {
829
825
  var n;
830
826
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
@@ -841,10 +837,10 @@ function Y(e, t, r) {
841
837
  }
842
838
  return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
843
839
  }
844
- function Be(e) {
840
+ function Ke(e) {
845
841
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
846
842
  }
847
- function ae(...e) {
843
+ function ie(...e) {
848
844
  const [t, r, n] = e;
849
845
  return typeof t == "string" ? {
850
846
  message: t,
@@ -853,7 +849,7 @@ function ae(...e) {
853
849
  inst: n
854
850
  } : { ...t };
855
851
  }
856
- const ar = (e, t) => {
852
+ const or = (e, t) => {
857
853
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
858
854
  value: e._zod,
859
855
  enumerable: !1
@@ -862,101 +858,101 @@ const ar = (e, t) => {
862
858
  enumerable: !1
863
859
  }), Object.defineProperty(e, "message", {
864
860
  get() {
865
- return JSON.stringify(t, So, 2);
861
+ return JSON.stringify(t, Eo, 2);
866
862
  },
867
863
  enumerable: !0
868
864
  // configurable: false,
869
865
  });
870
- }, ir = c("$ZodError", ar), cr = c("$ZodError", ar, { Parent: Error });
871
- function Mo(e, t = (r) => r.message) {
866
+ }, sr = c("$ZodError", or), ir = c("$ZodError", or, { Parent: Error });
867
+ function Do(e, t = (r) => r.message) {
872
868
  const r = {}, n = [];
873
869
  for (const o of e.issues)
874
870
  o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
875
871
  return { formErrors: n, fieldErrors: r };
876
872
  }
877
- function Fo(e, t) {
878
- const r = t || function(a) {
879
- return a.message;
880
- }, n = { _errors: [] }, o = (a) => {
881
- for (const i of a.issues)
882
- if (i.code === "invalid_union" && i.errors.length)
883
- i.errors.map((u) => o({ issues: u }));
884
- else if (i.code === "invalid_key")
885
- o({ issues: i.issues });
886
- else if (i.code === "invalid_element")
887
- o({ issues: i.issues });
888
- else if (i.path.length === 0)
889
- n._errors.push(r(i));
873
+ function Mo(e, t) {
874
+ const r = t || function(i) {
875
+ return i.message;
876
+ }, n = { _errors: [] }, o = (i) => {
877
+ for (const a of i.issues)
878
+ if (a.code === "invalid_union" && a.errors.length)
879
+ a.errors.map((u) => o({ issues: u }));
880
+ else if (a.code === "invalid_key")
881
+ o({ issues: a.issues });
882
+ else if (a.code === "invalid_element")
883
+ o({ issues: a.issues });
884
+ else if (a.path.length === 0)
885
+ n._errors.push(r(a));
890
886
  else {
891
- let u = n, h = 0;
892
- for (; h < i.path.length; ) {
893
- const f = i.path[h];
894
- h === i.path.length - 1 ? (u[f] = u[f] || { _errors: [] }, u[f]._errors.push(r(i))) : u[f] = u[f] || { _errors: [] }, u = u[f], h++;
887
+ let u = n, p = 0;
888
+ for (; p < a.path.length; ) {
889
+ const f = a.path[p];
890
+ p === a.path.length - 1 ? (u[f] = u[f] || { _errors: [] }, u[f]._errors.push(r(a))) : u[f] = u[f] || { _errors: [] }, u = u[f], p++;
895
891
  }
896
892
  }
897
893
  };
898
894
  return o(e), n;
899
895
  }
900
- const qo = (e) => (t, r, n, o) => {
901
- const a = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, a);
902
- if (i instanceof Promise)
903
- throw new se();
904
- if (i.issues.length) {
905
- const u = new (o?.Err ?? e)(i.issues.map((h) => Y(h, a, V())));
906
- throw sr(u, o?.callee), u;
907
- }
908
- return i.value;
909
- }, Uo = (e) => async (t, r, n, o) => {
910
- const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
911
- let i = t._zod.run({ value: r, issues: [] }, a);
912
- if (i instanceof Promise && (i = await i), i.issues.length) {
913
- const u = new (o?.Err ?? e)(i.issues.map((h) => Y(h, a, V())));
914
- throw sr(u, o?.callee), u;
915
- }
916
- return i.value;
917
- }, ur = (e) => (t, r, n) => {
918
- const o = n ? { ...n, async: !1 } : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, o);
896
+ const Fo = (e) => (t, r, n, o) => {
897
+ const i = n ? Object.assign(n, { async: !1 }) : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, i);
919
898
  if (a instanceof Promise)
920
899
  throw new se();
921
- return a.issues.length ? {
900
+ if (a.issues.length) {
901
+ const u = new (o?.Err ?? e)(a.issues.map((p) => Y(p, i, V())));
902
+ throw nr(u, o?.callee), u;
903
+ }
904
+ return a.value;
905
+ }, qo = (e) => async (t, r, n, o) => {
906
+ const i = n ? Object.assign(n, { async: !0 }) : { async: !0 };
907
+ let a = t._zod.run({ value: r, issues: [] }, i);
908
+ if (a instanceof Promise && (a = await a), a.issues.length) {
909
+ const u = new (o?.Err ?? e)(a.issues.map((p) => Y(p, i, V())));
910
+ throw nr(u, o?.callee), u;
911
+ }
912
+ return a.value;
913
+ }, ar = (e) => (t, r, n) => {
914
+ const o = n ? { ...n, async: !1 } : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, o);
915
+ if (i instanceof Promise)
916
+ throw new se();
917
+ return i.issues.length ? {
922
918
  success: !1,
923
- error: new (e ?? ir)(a.issues.map((i) => Y(i, o, V())))
924
- } : { success: !0, data: a.value };
925
- }, Lo = /* @__PURE__ */ ur(cr), lr = (e) => async (t, r, n) => {
919
+ error: new (e ?? sr)(i.issues.map((a) => Y(a, o, V())))
920
+ } : { success: !0, data: i.value };
921
+ }, Uo = /* @__PURE__ */ ar(ir), cr = (e) => async (t, r, n) => {
926
922
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
927
- let a = t._zod.run({ value: r, issues: [] }, o);
928
- return a instanceof Promise && (a = await a), a.issues.length ? {
923
+ let i = t._zod.run({ value: r, issues: [] }, o);
924
+ return i instanceof Promise && (i = await i), i.issues.length ? {
929
925
  success: !1,
930
- error: new e(a.issues.map((i) => Y(i, o, V())))
931
- } : { success: !0, data: a.value };
932
- }, Qo = /* @__PURE__ */ lr(cr), Bo = /^[cC][^\s-]{8,}$/, Ho = /^[0-9a-z]+$/, Ko = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Wo = /^[0-9a-vA-V]{20}$/, Vo = /^[A-Za-z0-9]{27}$/, Yo = /^[a-zA-Z0-9_-]{21}$/, Go = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Jo = /^([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})$/, lt = (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)$/, Xo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, es = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
933
- function ts() {
934
- return new RegExp(es, "u");
935
- }
936
- const rs = /^(?:(?: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])$/, ns = /^(([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})$/, os = /^((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])$/, ss = /^(([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])$/, as = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, dr = /^[A-Za-z0-9_-]*$/, is = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, cs = /^\+(?:[0-9]){6,14}[0-9]$/, fr = "(?:(?:\\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])))", us = /* @__PURE__ */ new RegExp(`^${fr}$`);
937
- function hr(e) {
926
+ error: new e(i.issues.map((a) => Y(a, o, V())))
927
+ } : { success: !0, data: i.value };
928
+ }, Lo = /* @__PURE__ */ cr(ir), Qo = /^[cC][^\s-]{8,}$/, Bo = /^[0-9a-z]+$/, Ko = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ho = /^[0-9a-vA-V]{20}$/, Wo = /^[A-Za-z0-9]{27}$/, Vo = /^[a-zA-Z0-9_-]{21}$/, Yo = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Go = /^([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})$/, ut = (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)$/, Jo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Xo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
929
+ function es() {
930
+ return new RegExp(Xo, "u");
931
+ }
932
+ const ts = /^(?:(?: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])$/, rs = /^(([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})$/, ns = /^((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])$/, os = /^(([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])$/, ss = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ur = /^[A-Za-z0-9_-]*$/, is = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, as = /^\+(?:[0-9]){6,14}[0-9]$/, lr = "(?:(?:\\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])))", cs = /* @__PURE__ */ new RegExp(`^${lr}$`);
933
+ function dr(e) {
938
934
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
939
935
  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+)?)?`;
940
936
  }
941
- function ls(e) {
942
- return new RegExp(`^${hr(e)}$`);
937
+ function us(e) {
938
+ return new RegExp(`^${dr(e)}$`);
943
939
  }
944
- function ds(e) {
945
- const t = hr({ precision: e.precision }), r = ["Z"];
940
+ function ls(e) {
941
+ const t = dr({ precision: e.precision }), r = ["Z"];
946
942
  e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
947
943
  const n = `${t}(?:${r.join("|")})`;
948
- return new RegExp(`^${fr}T(?:${n})$`);
944
+ return new RegExp(`^${lr}T(?:${n})$`);
949
945
  }
950
- const fs = (e) => {
946
+ const ds = (e) => {
951
947
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
952
948
  return new RegExp(`^${t}$`);
953
- }, hs = /^[^A-Z]*$/, ps = /^[^a-z]*$/, U = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
949
+ }, fs = /^[^A-Z]*$/, hs = /^[^a-z]*$/, U = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
954
950
  var r;
955
951
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
956
- }), ms = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
952
+ }), ps = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
957
953
  U.init(e, t), e._zod.when = (r) => {
958
954
  const n = r.value;
959
- return !qe(n) && n.length !== void 0;
955
+ return !Ue(n) && n.length !== void 0;
960
956
  }, e._zod.onattach.push((r) => {
961
957
  const n = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
962
958
  t.maximum < n && (r._zod.bag.maximum = t.maximum);
@@ -964,9 +960,9 @@ const fs = (e) => {
964
960
  const n = r.value;
965
961
  if (n.length <= t.maximum)
966
962
  return;
967
- const a = Be(n);
963
+ const i = Ke(n);
968
964
  r.issues.push({
969
- origin: a,
965
+ origin: i,
970
966
  code: "too_big",
971
967
  maximum: t.maximum,
972
968
  inclusive: !0,
@@ -975,10 +971,10 @@ const fs = (e) => {
975
971
  continue: !t.abort
976
972
  });
977
973
  };
978
- }), gs = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
974
+ }), ms = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
979
975
  U.init(e, t), e._zod.when = (r) => {
980
976
  const n = r.value;
981
- return !qe(n) && n.length !== void 0;
977
+ return !Ue(n) && n.length !== void 0;
982
978
  }, e._zod.onattach.push((r) => {
983
979
  const n = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
984
980
  t.minimum > n && (r._zod.bag.minimum = t.minimum);
@@ -986,9 +982,9 @@ const fs = (e) => {
986
982
  const n = r.value;
987
983
  if (n.length >= t.minimum)
988
984
  return;
989
- const a = Be(n);
985
+ const i = Ke(n);
990
986
  r.issues.push({
991
- origin: a,
987
+ origin: i,
992
988
  code: "too_small",
993
989
  minimum: t.minimum,
994
990
  inclusive: !0,
@@ -997,10 +993,10 @@ const fs = (e) => {
997
993
  continue: !t.abort
998
994
  });
999
995
  };
1000
- }), vs = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
996
+ }), gs = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
1001
997
  U.init(e, t), e._zod.when = (r) => {
1002
998
  const n = r.value;
1003
- return !qe(n) && n.length !== void 0;
999
+ return !Ue(n) && n.length !== void 0;
1004
1000
  }, e._zod.onattach.push((r) => {
1005
1001
  const n = r._zod.bag;
1006
1002
  n.minimum = t.length, n.maximum = t.length, n.length = t.length;
@@ -1008,34 +1004,35 @@ const fs = (e) => {
1008
1004
  const n = r.value, o = n.length;
1009
1005
  if (o === t.length)
1010
1006
  return;
1011
- const a = Be(n), i = o > t.length;
1007
+ const i = Ke(n), a = o > t.length;
1012
1008
  r.issues.push({
1013
- origin: a,
1014
- ...i ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1009
+ origin: i,
1010
+ ...a ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1011
+ inclusive: !0,
1012
+ exact: !0,
1015
1013
  input: r.value,
1016
1014
  inst: e,
1017
1015
  continue: !t.abort
1018
1016
  });
1019
1017
  };
1020
1018
  }), be = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
1021
- var r;
1022
- U.init(e, t), e._zod.onattach.push((n) => {
1023
- const o = n._zod.bag;
1024
- o.format = t.format, t.pattern && (o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(t.pattern));
1025
- }), (r = e._zod).check ?? (r.check = (n) => {
1026
- if (!t.pattern)
1027
- throw new Error("Not implemented.");
1028
- t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
1019
+ var r, n;
1020
+ U.init(e, t), e._zod.onattach.push((o) => {
1021
+ const i = o._zod.bag;
1022
+ i.format = t.format, t.pattern && (i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(t.pattern));
1023
+ }), t.pattern ? (r = e._zod).check ?? (r.check = (o) => {
1024
+ t.pattern.lastIndex = 0, !t.pattern.test(o.value) && o.issues.push({
1029
1025
  origin: "string",
1030
1026
  code: "invalid_format",
1031
1027
  format: t.format,
1032
- input: n.value,
1028
+ input: o.value,
1033
1029
  ...t.pattern ? { pattern: t.pattern.toString() } : {},
1034
1030
  inst: e,
1035
1031
  continue: !t.abort
1036
1032
  });
1033
+ }) : (n = e._zod).check ?? (n.check = () => {
1037
1034
  });
1038
- }), ys = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
1035
+ }), vs = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
1039
1036
  be.init(e, t), e._zod.check = (r) => {
1040
1037
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
1041
1038
  origin: "string",
@@ -1047,16 +1044,16 @@ const fs = (e) => {
1047
1044
  continue: !t.abort
1048
1045
  });
1049
1046
  };
1050
- }), xs = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
1047
+ }), ys = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
1048
+ t.pattern ?? (t.pattern = fs), be.init(e, t);
1049
+ }), xs = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
1051
1050
  t.pattern ?? (t.pattern = hs), be.init(e, t);
1052
- }), _s = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
1053
- t.pattern ?? (t.pattern = ps), be.init(e, t);
1054
- }), bs = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
1051
+ }), _s = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
1055
1052
  U.init(e, t);
1056
1053
  const r = _e(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
1057
1054
  t.pattern = n, e._zod.onattach.push((o) => {
1058
- const a = o._zod.bag;
1059
- a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(n);
1055
+ const i = o._zod.bag;
1056
+ i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(n);
1060
1057
  }), e._zod.check = (o) => {
1061
1058
  o.value.includes(t.includes, t.position) || o.issues.push({
1062
1059
  origin: "string",
@@ -1068,7 +1065,7 @@ const fs = (e) => {
1068
1065
  continue: !t.abort
1069
1066
  });
1070
1067
  };
1071
- }), ws = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
1068
+ }), bs = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
1072
1069
  U.init(e, t);
1073
1070
  const r = new RegExp(`^${_e(t.prefix)}.*`);
1074
1071
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -1085,7 +1082,7 @@ const fs = (e) => {
1085
1082
  continue: !t.abort
1086
1083
  });
1087
1084
  };
1088
- }), js = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
1085
+ }), ws = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
1089
1086
  U.init(e, t);
1090
1087
  const r = new RegExp(`.*${_e(t.suffix)}$`);
1091
1088
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -1102,12 +1099,12 @@ const fs = (e) => {
1102
1099
  continue: !t.abort
1103
1100
  });
1104
1101
  };
1105
- }), ks = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
1102
+ }), js = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
1106
1103
  U.init(e, t), e._zod.check = (r) => {
1107
1104
  r.value = t.tx(r.value);
1108
1105
  };
1109
1106
  });
1110
- class $s {
1107
+ class ks {
1111
1108
  constructor(t = []) {
1112
1109
  this.content = [], this.indent = 0, this && (this.args = t);
1113
1110
  }
@@ -1120,80 +1117,80 @@ class $s {
1120
1117
  return;
1121
1118
  }
1122
1119
  const n = t.split(`
1123
- `).filter((i) => i), o = Math.min(...n.map((i) => i.length - i.trimStart().length)), a = n.map((i) => i.slice(o)).map((i) => " ".repeat(this.indent * 2) + i);
1124
- for (const i of a)
1125
- this.content.push(i);
1120
+ `).filter((a) => a), o = Math.min(...n.map((a) => a.length - a.trimStart().length)), i = n.map((a) => a.slice(o)).map((a) => " ".repeat(this.indent * 2) + a);
1121
+ for (const a of i)
1122
+ this.content.push(a);
1126
1123
  }
1127
1124
  compile() {
1128
- const t = Function, r = this?.args, o = [...(this?.content ?? [""]).map((a) => ` ${a}`)];
1125
+ const t = Function, r = this?.args, o = [...(this?.content ?? [""]).map((i) => ` ${i}`)];
1129
1126
  return new t(...r, o.join(`
1130
1127
  `));
1131
1128
  }
1132
1129
  }
1133
- const zs = {
1130
+ const $s = {
1134
1131
  major: 4,
1135
1132
  minor: 0,
1136
1133
  patch: 0
1137
- }, C = /* @__PURE__ */ c("$ZodType", (e, t) => {
1134
+ }, T = /* @__PURE__ */ c("$ZodType", (e, t) => {
1138
1135
  var r;
1139
- e ?? (e = {}), S(e._zod, "id", () => t.type + "_" + or(10)), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = zs;
1136
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = $s;
1140
1137
  const n = [...e._zod.def.checks ?? []];
1141
1138
  e._zod.traits.has("$ZodCheck") && n.unshift(e);
1142
1139
  for (const o of n)
1143
- for (const a of o._zod.onattach)
1144
- a(e);
1140
+ for (const i of o._zod.onattach)
1141
+ i(e);
1145
1142
  if (n.length === 0)
1146
1143
  (r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
1147
1144
  e._zod.run = e._zod.parse;
1148
1145
  });
1149
1146
  else {
1150
- const o = (a, i, u) => {
1151
- let h = ne(a), f;
1152
- for (const y of i) {
1153
- if (y._zod.when) {
1154
- if (!y._zod.when(a))
1147
+ const o = (i, a, u) => {
1148
+ let p = ne(i), f;
1149
+ for (const x of a) {
1150
+ if (x._zod.when) {
1151
+ if (!x._zod.when(i))
1155
1152
  continue;
1156
- } else if (h)
1153
+ } else if (p)
1157
1154
  continue;
1158
- const p = a.issues.length, m = y._zod.check(a);
1155
+ const h = i.issues.length, m = x._zod.check(i);
1159
1156
  if (m instanceof Promise && u?.async === !1)
1160
1157
  throw new se();
1161
1158
  if (f || m instanceof Promise)
1162
1159
  f = (f ?? Promise.resolve()).then(async () => {
1163
- await m, a.issues.length !== p && (h || (h = ne(a, p)));
1160
+ await m, i.issues.length !== h && (p || (p = ne(i, h)));
1164
1161
  });
1165
1162
  else {
1166
- if (a.issues.length === p)
1163
+ if (i.issues.length === h)
1167
1164
  continue;
1168
- h || (h = ne(a, p));
1165
+ p || (p = ne(i, h));
1169
1166
  }
1170
1167
  }
1171
- return f ? f.then(() => a) : a;
1168
+ return f ? f.then(() => i) : i;
1172
1169
  };
1173
- e._zod.run = (a, i) => {
1174
- const u = e._zod.parse(a, i);
1170
+ e._zod.run = (i, a) => {
1171
+ const u = e._zod.parse(i, a);
1175
1172
  if (u instanceof Promise) {
1176
- if (i.async === !1)
1173
+ if (a.async === !1)
1177
1174
  throw new se();
1178
- return u.then((h) => o(h, n, i));
1175
+ return u.then((p) => o(p, n, a));
1179
1176
  }
1180
- return o(u, n, i);
1177
+ return o(u, n, a);
1181
1178
  };
1182
1179
  }
1183
1180
  e["~standard"] = {
1184
1181
  validate: (o) => {
1185
1182
  try {
1186
- const a = Lo(e, o);
1187
- return a.success ? { value: a.data } : { issues: a.error?.issues };
1183
+ const i = Uo(e, o);
1184
+ return i.success ? { value: i.data } : { issues: i.error?.issues };
1188
1185
  } catch {
1189
- return Qo(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
1186
+ return Lo(e, o).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
1190
1187
  }
1191
1188
  },
1192
1189
  vendor: "zod",
1193
1190
  version: 1
1194
1191
  };
1195
1192
  }), He = /* @__PURE__ */ c("$ZodString", (e, t) => {
1196
- C.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fs(e._zod.bag), e._zod.parse = (r, n) => {
1193
+ T.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ds(e._zod.bag), e._zod.parse = (r, n) => {
1197
1194
  if (t.coerce)
1198
1195
  try {
1199
1196
  r.value = String(r.value);
@@ -1206,11 +1203,11 @@ const zs = {
1206
1203
  inst: e
1207
1204
  }), r;
1208
1205
  };
1209
- }), E = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
1206
+ }), Z = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
1210
1207
  be.init(e, t), He.init(e, t);
1211
- }), Ps = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
1212
- t.pattern ?? (t.pattern = Jo), E.init(e, t);
1213
- }), Es = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
1208
+ }), zs = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
1209
+ t.pattern ?? (t.pattern = Go), Z.init(e, t);
1210
+ }), Ps = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
1214
1211
  if (t.version) {
1215
1212
  const n = {
1216
1213
  v1: 1,
@@ -1224,17 +1221,17 @@ const zs = {
1224
1221
  }[t.version];
1225
1222
  if (n === void 0)
1226
1223
  throw new Error(`Invalid UUID version: "${t.version}"`);
1227
- t.pattern ?? (t.pattern = lt(n));
1224
+ t.pattern ?? (t.pattern = ut(n));
1228
1225
  } else
1229
- t.pattern ?? (t.pattern = lt());
1230
- E.init(e, t);
1231
- }), Ss = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
1232
- t.pattern ?? (t.pattern = Xo), E.init(e, t);
1233
- }), Zs = /* @__PURE__ */ c("$ZodURL", (e, t) => {
1234
- E.init(e, t), e._zod.check = (r) => {
1226
+ t.pattern ?? (t.pattern = ut());
1227
+ Z.init(e, t);
1228
+ }), Es = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
1229
+ t.pattern ?? (t.pattern = Jo), Z.init(e, t);
1230
+ }), Ss = /* @__PURE__ */ c("$ZodURL", (e, t) => {
1231
+ Z.init(e, t), e._zod.check = (r) => {
1235
1232
  try {
1236
- const n = new URL(r.value);
1237
- t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(n.hostname) || r.issues.push({
1233
+ const n = r.value, o = new URL(n), i = o.href;
1234
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || r.issues.push({
1238
1235
  code: "invalid_format",
1239
1236
  format: "url",
1240
1237
  note: "Invalid hostname",
@@ -1242,7 +1239,7 @@ const zs = {
1242
1239
  input: r.value,
1243
1240
  inst: e,
1244
1241
  continue: !t.abort
1245
- })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(n.protocol.endsWith(":") ? n.protocol.slice(0, -1) : n.protocol) || r.issues.push({
1242
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(o.protocol.endsWith(":") ? o.protocol.slice(0, -1) : o.protocol) || r.issues.push({
1246
1243
  code: "invalid_format",
1247
1244
  format: "url",
1248
1245
  note: "Invalid protocol",
@@ -1250,7 +1247,7 @@ const zs = {
1250
1247
  input: r.value,
1251
1248
  inst: e,
1252
1249
  continue: !t.abort
1253
- }));
1250
+ })), !n.endsWith("/") && i.endsWith("/") ? r.value = i.slice(0, -1) : r.value = i;
1254
1251
  return;
1255
1252
  } catch {
1256
1253
  r.issues.push({
@@ -1262,35 +1259,35 @@ const zs = {
1262
1259
  });
1263
1260
  }
1264
1261
  };
1265
- }), Ts = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
1266
- t.pattern ?? (t.pattern = ts()), E.init(e, t);
1262
+ }), Zs = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
1263
+ t.pattern ?? (t.pattern = es()), Z.init(e, t);
1267
1264
  }), Cs = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
1268
- t.pattern ?? (t.pattern = Yo), E.init(e, t);
1269
- }), Os = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
1270
- t.pattern ?? (t.pattern = Bo), E.init(e, t);
1265
+ t.pattern ?? (t.pattern = Vo), Z.init(e, t);
1266
+ }), Ts = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
1267
+ t.pattern ?? (t.pattern = Qo), Z.init(e, t);
1271
1268
  }), Ns = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
1272
- t.pattern ?? (t.pattern = Ho), E.init(e, t);
1273
- }), As = /* @__PURE__ */ c("$ZodULID", (e, t) => {
1274
- t.pattern ?? (t.pattern = Ko), E.init(e, t);
1275
- }), Is = /* @__PURE__ */ c("$ZodXID", (e, t) => {
1276
- t.pattern ?? (t.pattern = Wo), E.init(e, t);
1277
- }), Rs = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
1278
- t.pattern ?? (t.pattern = Vo), E.init(e, t);
1279
- }), Ds = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
1280
- t.pattern ?? (t.pattern = ds(t)), E.init(e, t), e._zod.check;
1281
- }), Ms = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
1282
- t.pattern ?? (t.pattern = us), E.init(e, t);
1283
- }), Fs = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
1284
- t.pattern ?? (t.pattern = ls(t)), E.init(e, t), e._zod.check;
1285
- }), qs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
1286
- t.pattern ?? (t.pattern = Go), E.init(e, t);
1287
- }), Us = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
1288
- t.pattern ?? (t.pattern = rs), E.init(e, t), e._zod.onattach.push((r) => {
1269
+ t.pattern ?? (t.pattern = Bo), Z.init(e, t);
1270
+ }), Os = /* @__PURE__ */ c("$ZodULID", (e, t) => {
1271
+ t.pattern ?? (t.pattern = Ko), Z.init(e, t);
1272
+ }), As = /* @__PURE__ */ c("$ZodXID", (e, t) => {
1273
+ t.pattern ?? (t.pattern = Ho), Z.init(e, t);
1274
+ }), Is = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
1275
+ t.pattern ?? (t.pattern = Wo), Z.init(e, t);
1276
+ }), Rs = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
1277
+ t.pattern ?? (t.pattern = ls(t)), Z.init(e, t);
1278
+ }), Ds = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
1279
+ t.pattern ?? (t.pattern = cs), Z.init(e, t);
1280
+ }), Ms = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
1281
+ t.pattern ?? (t.pattern = us(t)), Z.init(e, t);
1282
+ }), Fs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
1283
+ t.pattern ?? (t.pattern = Yo), Z.init(e, t);
1284
+ }), qs = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
1285
+ t.pattern ?? (t.pattern = ts), Z.init(e, t), e._zod.onattach.push((r) => {
1289
1286
  const n = r._zod.bag;
1290
1287
  n.format = "ipv4";
1291
1288
  });
1292
- }), Ls = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
1293
- t.pattern ?? (t.pattern = ns), E.init(e, t), e._zod.onattach.push((r) => {
1289
+ }), Us = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
1290
+ t.pattern ?? (t.pattern = rs), Z.init(e, t), e._zod.onattach.push((r) => {
1294
1291
  const n = r._zod.bag;
1295
1292
  n.format = "ipv6";
1296
1293
  }), e._zod.check = (r) => {
@@ -1306,18 +1303,18 @@ const zs = {
1306
1303
  });
1307
1304
  }
1308
1305
  };
1309
- }), Qs = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
1310
- t.pattern ?? (t.pattern = os), E.init(e, t);
1311
- }), Bs = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
1312
- t.pattern ?? (t.pattern = ss), E.init(e, t), e._zod.check = (r) => {
1306
+ }), Ls = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
1307
+ t.pattern ?? (t.pattern = ns), Z.init(e, t);
1308
+ }), Qs = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
1309
+ t.pattern ?? (t.pattern = os), Z.init(e, t), e._zod.check = (r) => {
1313
1310
  const [n, o] = r.value.split("/");
1314
1311
  try {
1315
1312
  if (!o)
1316
1313
  throw new Error();
1317
- const a = Number(o);
1318
- if (`${a}` !== o)
1314
+ const i = Number(o);
1315
+ if (`${i}` !== o)
1319
1316
  throw new Error();
1320
- if (a < 0 || a > 128)
1317
+ if (i < 0 || i > 128)
1321
1318
  throw new Error();
1322
1319
  new URL(`http://[${n}]`);
1323
1320
  } catch {
@@ -1331,7 +1328,7 @@ const zs = {
1331
1328
  }
1332
1329
  };
1333
1330
  });
1334
- function pr(e) {
1331
+ function fr(e) {
1335
1332
  if (e === "")
1336
1333
  return !0;
1337
1334
  if (e.length % 4 !== 0)
@@ -1342,11 +1339,11 @@ function pr(e) {
1342
1339
  return !1;
1343
1340
  }
1344
1341
  }
1345
- const Hs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1346
- t.pattern ?? (t.pattern = as), E.init(e, t), e._zod.onattach.push((r) => {
1342
+ const Bs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1343
+ t.pattern ?? (t.pattern = ss), Z.init(e, t), e._zod.onattach.push((r) => {
1347
1344
  r._zod.bag.contentEncoding = "base64";
1348
1345
  }), e._zod.check = (r) => {
1349
- pr(r.value) || r.issues.push({
1346
+ fr(r.value) || r.issues.push({
1350
1347
  code: "invalid_format",
1351
1348
  format: "base64",
1352
1349
  input: r.value,
@@ -1356,13 +1353,13 @@ const Hs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1356
1353
  };
1357
1354
  });
1358
1355
  function Ks(e) {
1359
- if (!dr.test(e))
1356
+ if (!ur.test(e))
1360
1357
  return !1;
1361
1358
  const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1362
- return pr(r);
1359
+ return fr(r);
1363
1360
  }
1364
- const Ws = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1365
- t.pattern ?? (t.pattern = dr), E.init(e, t), e._zod.onattach.push((r) => {
1361
+ const Hs = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1362
+ t.pattern ?? (t.pattern = ur), Z.init(e, t), e._zod.onattach.push((r) => {
1366
1363
  r._zod.bag.contentEncoding = "base64url";
1367
1364
  }), e._zod.check = (r) => {
1368
1365
  Ks(r.value) || r.issues.push({
@@ -1373,23 +1370,26 @@ const Ws = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1373
1370
  continue: !t.abort
1374
1371
  });
1375
1372
  };
1376
- }), Vs = /* @__PURE__ */ c("$ZodE164", (e, t) => {
1377
- t.pattern ?? (t.pattern = cs), E.init(e, t);
1373
+ }), Ws = /* @__PURE__ */ c("$ZodE164", (e, t) => {
1374
+ t.pattern ?? (t.pattern = as), Z.init(e, t);
1378
1375
  });
1379
- function Ys(e, t = null) {
1376
+ function Vs(e, t = null) {
1380
1377
  try {
1381
1378
  const r = e.split(".");
1382
1379
  if (r.length !== 3)
1383
1380
  return !1;
1384
- const [n] = r, o = JSON.parse(atob(n));
1381
+ const [n] = r;
1382
+ if (!n)
1383
+ return !1;
1384
+ const o = JSON.parse(atob(n));
1385
1385
  return !("typ" in o && o?.typ !== "JWT" || !o.alg || t && (!("alg" in o) || o.alg !== t));
1386
1386
  } catch {
1387
1387
  return !1;
1388
1388
  }
1389
1389
  }
1390
- const Gs = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1391
- E.init(e, t), e._zod.check = (r) => {
1392
- Ys(r.value, t.alg) || r.issues.push({
1390
+ const Ys = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1391
+ Z.init(e, t), e._zod.check = (r) => {
1392
+ Vs(r.value, t.alg) || r.issues.push({
1393
1393
  code: "invalid_format",
1394
1394
  format: "jwt",
1395
1395
  input: r.value,
@@ -1397,21 +1397,21 @@ const Gs = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1397
1397
  continue: !t.abort
1398
1398
  });
1399
1399
  };
1400
- }), Js = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
1401
- C.init(e, t), e._zod.parse = (r) => r;
1402
- }), Xs = /* @__PURE__ */ c("$ZodNever", (e, t) => {
1403
- C.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1400
+ }), Gs = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
1401
+ T.init(e, t), e._zod.parse = (r) => r;
1402
+ }), Js = /* @__PURE__ */ c("$ZodNever", (e, t) => {
1403
+ T.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1404
1404
  expected: "never",
1405
1405
  code: "invalid_type",
1406
1406
  input: r.value,
1407
1407
  inst: e
1408
1408
  }), r);
1409
1409
  });
1410
- function dt(e, t, r) {
1411
- e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
1410
+ function lt(e, t, r) {
1411
+ e.issues.length && t.issues.push(...Be(r, e.issues)), t.value[r] = e.value;
1412
1412
  }
1413
- const ea = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1414
- C.init(e, t), e._zod.parse = (r, n) => {
1413
+ const Xs = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1414
+ T.init(e, t), e._zod.parse = (r, n) => {
1415
1415
  const o = r.value;
1416
1416
  if (!Array.isArray(o))
1417
1417
  return r.issues.push({
@@ -1421,43 +1421,43 @@ const ea = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1421
1421
  inst: e
1422
1422
  }), r;
1423
1423
  r.value = Array(o.length);
1424
- const a = [];
1425
- for (let i = 0; i < o.length; i++) {
1426
- const u = o[i], h = t.element._zod.run({
1424
+ const i = [];
1425
+ for (let a = 0; a < o.length; a++) {
1426
+ const u = o[a], p = t.element._zod.run({
1427
1427
  value: u,
1428
1428
  issues: []
1429
1429
  }, n);
1430
- h instanceof Promise ? a.push(h.then((f) => dt(f, r, i))) : dt(h, r, i);
1430
+ p instanceof Promise ? i.push(p.then((f) => lt(f, r, a))) : lt(p, r, a);
1431
1431
  }
1432
- return a.length ? Promise.all(a).then(() => r) : r;
1432
+ return i.length ? Promise.all(i).then(() => r) : r;
1433
1433
  };
1434
1434
  });
1435
1435
  function de(e, t, r) {
1436
- e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
1436
+ e.issues.length && t.issues.push(...Be(r, e.issues)), t.value[r] = e.value;
1437
1437
  }
1438
- function ft(e, t, r, n) {
1439
- e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...Qe(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1440
- }
1441
- const ta = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1442
- C.init(e, t);
1443
- const r = nr(() => {
1444
- const p = Object.keys(t.shape);
1445
- for (const l of p)
1446
- if (!(t.shape[l] instanceof C))
1438
+ function dt(e, t, r, n) {
1439
+ e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...Be(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1440
+ }
1441
+ const ei = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1442
+ T.init(e, t);
1443
+ const r = rr(() => {
1444
+ const h = Object.keys(t.shape);
1445
+ for (const l of h)
1446
+ if (!(t.shape[l] instanceof T))
1447
1447
  throw new Error(`Invalid element at key "${l}": expected a Zod schema`);
1448
1448
  const m = Co(t.shape);
1449
1449
  return {
1450
1450
  shape: t.shape,
1451
- keys: p,
1452
- keySet: new Set(p),
1453
- numKeys: p.length,
1451
+ keys: h,
1452
+ keySet: new Set(h),
1453
+ numKeys: h.length,
1454
1454
  optionalKeys: new Set(m)
1455
1455
  };
1456
1456
  });
1457
1457
  S(e._zod, "propValues", () => {
1458
- const p = t.shape, m = {};
1459
- for (const l in p) {
1460
- const g = p[l]._zod;
1458
+ const h = t.shape, m = {};
1459
+ for (const l in h) {
1460
+ const g = h[l]._zod;
1461
1461
  if (g.values) {
1462
1462
  m[l] ?? (m[l] = /* @__PURE__ */ new Set());
1463
1463
  for (const w of g.values)
@@ -1466,99 +1466,100 @@ const ta = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1466
1466
  }
1467
1467
  return m;
1468
1468
  });
1469
- const n = (p) => {
1470
- const m = new $s(["shape", "payload", "ctx"]), { keys: l, optionalKeys: g } = r.value, w = (j) => {
1471
- const x = re(j);
1472
- return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
1469
+ const n = (h) => {
1470
+ const m = new ks(["shape", "payload", "ctx"]), l = r.value, g = (j) => {
1471
+ const y = re(j);
1472
+ return `shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`;
1473
1473
  };
1474
1474
  m.write("const input = payload.value;");
1475
- const P = /* @__PURE__ */ Object.create(null);
1476
- for (const j of l)
1477
- P[j] = or(15);
1475
+ const w = /* @__PURE__ */ Object.create(null);
1476
+ let E = 0;
1477
+ for (const j of l.keys)
1478
+ w[j] = `key_${E++}`;
1478
1479
  m.write("const newResult = {}");
1479
- for (const j of l)
1480
- if (g.has(j)) {
1481
- const x = P[j];
1482
- m.write(`const ${x} = ${w(j)};`);
1483
- const b = re(j);
1480
+ for (const j of l.keys)
1481
+ if (l.optionalKeys.has(j)) {
1482
+ const y = w[j];
1483
+ m.write(`const ${y} = ${g(j)};`);
1484
+ const _ = re(j);
1484
1485
  m.write(`
1485
- if (${x}.issues.length) {
1486
- if (input[${b}] === undefined) {
1487
- if (${b} in input) {
1488
- newResult[${b}] = undefined;
1486
+ if (${y}.issues.length) {
1487
+ if (input[${_}] === undefined) {
1488
+ if (${_} in input) {
1489
+ newResult[${_}] = undefined;
1489
1490
  }
1490
1491
  } else {
1491
1492
  payload.issues = payload.issues.concat(
1492
- ${x}.issues.map((iss) => ({
1493
+ ${y}.issues.map((iss) => ({
1493
1494
  ...iss,
1494
- path: iss.path ? [${b}, ...iss.path] : [${b}],
1495
+ path: iss.path ? [${_}, ...iss.path] : [${_}],
1495
1496
  }))
1496
1497
  );
1497
1498
  }
1498
- } else if (${x}.value === undefined) {
1499
- if (${b} in input) newResult[${b}] = undefined;
1499
+ } else if (${y}.value === undefined) {
1500
+ if (${_} in input) newResult[${_}] = undefined;
1500
1501
  } else {
1501
- newResult[${b}] = ${x}.value;
1502
+ newResult[${_}] = ${y}.value;
1502
1503
  }
1503
1504
  `);
1504
1505
  } else {
1505
- const x = P[j];
1506
- m.write(`const ${x} = ${w(j)};`), m.write(`
1507
- if (${x}.issues.length) payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
1506
+ const y = w[j];
1507
+ m.write(`const ${y} = ${g(j)};`), m.write(`
1508
+ if (${y}.issues.length) payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
1508
1509
  ...iss,
1509
1510
  path: iss.path ? [${re(j)}, ...iss.path] : [${re(j)}]
1510
- })));`), m.write(`newResult[${re(j)}] = ${x}.value`);
1511
+ })));`), m.write(`newResult[${re(j)}] = ${y}.value`);
1511
1512
  }
1512
1513
  m.write("payload.value = newResult;"), m.write("return payload;");
1513
- const T = m.compile();
1514
- return (j, x) => T(p, j, x);
1514
+ const $ = m.compile();
1515
+ return (j, y) => $(h, j, y);
1515
1516
  };
1516
1517
  let o;
1517
- const a = Te, i = !rr.jitless, h = i && Zo.value, { catchall: f } = t;
1518
- let y;
1519
- e._zod.parse = (p, m) => {
1520
- y ?? (y = r.value);
1521
- const l = p.value;
1522
- if (!a(l))
1523
- return p.issues.push({
1518
+ const i = Ce, a = !tr.jitless, p = a && So.value, f = t.catchall;
1519
+ let x;
1520
+ e._zod.parse = (h, m) => {
1521
+ x ?? (x = r.value);
1522
+ const l = h.value;
1523
+ if (!i(l))
1524
+ return h.issues.push({
1524
1525
  expected: "object",
1525
1526
  code: "invalid_type",
1526
1527
  input: l,
1527
1528
  inst: e
1528
- }), p;
1529
+ }), h;
1529
1530
  const g = [];
1530
- if (i && h && m?.async === !1 && m.jitless !== !0)
1531
- o || (o = n(t.shape)), p = o(p, m);
1531
+ if (a && p && m?.async === !1 && m.jitless !== !0)
1532
+ o || (o = n(t.shape)), h = o(h, m);
1532
1533
  else {
1533
- p.value = {};
1534
- const x = y.shape;
1535
- for (const b of y.keys) {
1536
- const d = x[b], z = d._zod.run({ value: l[b], issues: [] }, m), I = d._zod.optin === "optional" && d._zod.optout === "optional";
1537
- z instanceof Promise ? g.push(z.then((D) => I ? ft(D, p, b, l) : de(D, p, b))) : I ? ft(z, p, b, l) : de(z, p, b);
1534
+ h.value = {};
1535
+ const y = x.shape;
1536
+ for (const _ of x.keys) {
1537
+ const d = y[_], k = d._zod.run({ value: l[_], issues: [] }, m), I = d._zod.optin === "optional" && d._zod.optout === "optional";
1538
+ k instanceof Promise ? g.push(k.then((D) => I ? dt(D, h, _, l) : de(D, h, _))) : I ? dt(k, h, _, l) : de(k, h, _);
1538
1539
  }
1539
1540
  }
1540
1541
  if (!f)
1541
- return g.length ? Promise.all(g).then(() => p) : p;
1542
- const w = [], P = y.keySet, T = f._zod, j = T.def.type;
1543
- for (const x of Object.keys(l)) {
1544
- if (P.has(x))
1542
+ return g.length ? Promise.all(g).then(() => h) : h;
1543
+ const w = [], E = x.keySet, $ = f._zod, j = $.def.type;
1544
+ for (const y of Object.keys(l)) {
1545
+ if (E.has(y))
1545
1546
  continue;
1546
1547
  if (j === "never") {
1547
- w.push(x);
1548
+ w.push(y);
1548
1549
  continue;
1549
1550
  }
1550
- const b = T.run({ value: l[x], issues: [] }, m);
1551
- b instanceof Promise ? g.push(b.then((d) => de(d, p, x))) : de(b, p, x);
1551
+ const _ = $.run({ value: l[y], issues: [] }, m);
1552
+ _ instanceof Promise ? g.push(_.then((d) => de(d, h, y))) : de(_, h, y);
1552
1553
  }
1553
- return w.length && p.issues.push({
1554
+ return w.length && h.issues.push({
1554
1555
  code: "unrecognized_keys",
1555
1556
  keys: w,
1556
1557
  input: l,
1557
1558
  inst: e
1558
- }), g.length ? Promise.all(g).then(() => p) : p;
1559
+ }), g.length ? Promise.all(g).then(() => h) : h;
1559
1560
  };
1560
1561
  });
1561
- function ht(e, t, r, n) {
1562
+ function ft(e, t, r, n) {
1562
1563
  for (const o of e)
1563
1564
  if (o.issues.length === 0)
1564
1565
  return t.value = o.value, t;
@@ -1566,57 +1567,57 @@ function ht(e, t, r, n) {
1566
1567
  code: "invalid_union",
1567
1568
  input: t.value,
1568
1569
  inst: r,
1569
- errors: e.map((o) => o.issues.map((a) => Y(a, n, V())))
1570
+ errors: e.map((o) => o.issues.map((i) => Y(i, n, V())))
1570
1571
  }), t;
1571
1572
  }
1572
- const ra = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1573
- C.init(e, t), S(e._zod, "values", () => {
1573
+ const ti = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1574
+ T.init(e, t), S(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), S(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), S(e._zod, "values", () => {
1574
1575
  if (t.options.every((r) => r._zod.values))
1575
1576
  return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
1576
1577
  }), S(e._zod, "pattern", () => {
1577
1578
  if (t.options.every((r) => r._zod.pattern)) {
1578
1579
  const r = t.options.map((n) => n._zod.pattern);
1579
- return new RegExp(`^(${r.map((n) => Ue(n.source)).join("|")})$`);
1580
+ return new RegExp(`^(${r.map((n) => Le(n.source)).join("|")})$`);
1580
1581
  }
1581
1582
  }), e._zod.parse = (r, n) => {
1582
1583
  let o = !1;
1583
- const a = [];
1584
- for (const i of t.options) {
1585
- const u = i._zod.run({
1584
+ const i = [];
1585
+ for (const a of t.options) {
1586
+ const u = a._zod.run({
1586
1587
  value: r.value,
1587
1588
  issues: []
1588
1589
  }, n);
1589
1590
  if (u instanceof Promise)
1590
- a.push(u), o = !0;
1591
+ i.push(u), o = !0;
1591
1592
  else {
1592
1593
  if (u.issues.length === 0)
1593
1594
  return u;
1594
- a.push(u);
1595
+ i.push(u);
1595
1596
  }
1596
1597
  }
1597
- return o ? Promise.all(a).then((i) => ht(i, r, e, n)) : ht(a, r, e, n);
1598
+ return o ? Promise.all(i).then((a) => ft(a, r, e, n)) : ft(i, r, e, n);
1598
1599
  };
1599
- }), na = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1600
- C.init(e, t), e._zod.parse = (r, n) => {
1601
- const { value: o } = r, a = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1602
- return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([h, f]) => pt(r, h, f)) : pt(r, a, i);
1600
+ }), ri = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1601
+ T.init(e, t), e._zod.parse = (r, n) => {
1602
+ const o = r.value, i = t.left._zod.run({ value: o, issues: [] }, n), a = t.right._zod.run({ value: o, issues: [] }, n);
1603
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([p, f]) => ht(r, p, f)) : ht(r, i, a);
1603
1604
  };
1604
1605
  });
1605
- function Ce(e, t) {
1606
+ function Ne(e, t) {
1606
1607
  if (e === t)
1607
1608
  return { valid: !0, data: e };
1608
1609
  if (e instanceof Date && t instanceof Date && +e == +t)
1609
1610
  return { valid: !0, data: e };
1610
- if (ut(e) && ut(t)) {
1611
- const r = Object.keys(t), n = Object.keys(e).filter((a) => r.indexOf(a) !== -1), o = { ...e, ...t };
1612
- for (const a of n) {
1613
- const i = Ce(e[a], t[a]);
1614
- if (!i.valid)
1611
+ if (Te(e) && Te(t)) {
1612
+ const r = Object.keys(t), n = Object.keys(e).filter((i) => r.indexOf(i) !== -1), o = { ...e, ...t };
1613
+ for (const i of n) {
1614
+ const a = Ne(e[i], t[i]);
1615
+ if (!a.valid)
1615
1616
  return {
1616
1617
  valid: !1,
1617
- mergeErrorPath: [a, ...i.mergeErrorPath]
1618
+ mergeErrorPath: [i, ...a.mergeErrorPath]
1618
1619
  };
1619
- o[a] = i.data;
1620
+ o[i] = a.data;
1620
1621
  }
1621
1622
  return { valid: !0, data: o };
1622
1623
  }
@@ -1625,80 +1626,80 @@ function Ce(e, t) {
1625
1626
  return { valid: !1, mergeErrorPath: [] };
1626
1627
  const r = [];
1627
1628
  for (let n = 0; n < e.length; n++) {
1628
- const o = e[n], a = t[n], i = Ce(o, a);
1629
- if (!i.valid)
1629
+ const o = e[n], i = t[n], a = Ne(o, i);
1630
+ if (!a.valid)
1630
1631
  return {
1631
1632
  valid: !1,
1632
- mergeErrorPath: [n, ...i.mergeErrorPath]
1633
+ mergeErrorPath: [n, ...a.mergeErrorPath]
1633
1634
  };
1634
- r.push(i.data);
1635
+ r.push(a.data);
1635
1636
  }
1636
1637
  return { valid: !0, data: r };
1637
1638
  }
1638
1639
  return { valid: !1, mergeErrorPath: [] };
1639
1640
  }
1640
- function pt(e, t, r) {
1641
+ function ht(e, t, r) {
1641
1642
  if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), ne(e))
1642
1643
  return e;
1643
- const n = Ce(t.value, r.value);
1644
+ const n = Ne(t.value, r.value);
1644
1645
  if (!n.valid)
1645
1646
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
1646
1647
  return e.value = n.data, e;
1647
1648
  }
1648
- const oa = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1649
- C.init(e, t);
1650
- const r = Eo(t.entries);
1651
- e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => To.has(typeof n)).map((n) => typeof n == "string" ? _e(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1652
- const a = n.value;
1653
- return e._zod.values.has(a) || n.issues.push({
1649
+ const ni = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1650
+ T.init(e, t);
1651
+ const r = Po(t.entries);
1652
+ e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Zo.has(typeof n)).map((n) => typeof n == "string" ? _e(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1653
+ const i = n.value;
1654
+ return e._zod.values.has(i) || n.issues.push({
1654
1655
  code: "invalid_value",
1655
1656
  values: r,
1656
- input: a,
1657
+ input: i,
1657
1658
  inst: e
1658
1659
  }), n;
1659
1660
  };
1660
- }), sa = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1661
- C.init(e, t), e._zod.parse = (r, n) => {
1661
+ }), oi = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1662
+ T.init(e, t), e._zod.parse = (r, n) => {
1662
1663
  const o = t.transform(r.value, r);
1663
1664
  if (n.async)
1664
- return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
1665
+ return (o instanceof Promise ? o : Promise.resolve(o)).then((a) => (r.value = a, r));
1665
1666
  if (o instanceof Promise)
1666
1667
  throw new se();
1667
1668
  return r.value = o, r;
1668
1669
  };
1669
- }), aa = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1670
- C.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
1670
+ }), si = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1671
+ T.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
1671
1672
  const r = t.innerType._zod.pattern;
1672
- return r ? new RegExp(`^(${Ue(r.source)})?$`) : void 0;
1673
- }), e._zod.parse = (r, n) => r.value === void 0 ? r : t.innerType._zod.run(r, n);
1674
- }), ia = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1675
- C.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
1673
+ return r ? new RegExp(`^(${Le(r.source)})?$`) : void 0;
1674
+ }), e._zod.parse = (r, n) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(r, n) : r.value === void 0 ? r : t.innerType._zod.run(r, n);
1675
+ }), ii = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1676
+ T.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
1676
1677
  const r = t.innerType._zod.pattern;
1677
- return r ? new RegExp(`^(${Ue(r.source)}|null)$`) : void 0;
1678
+ return r ? new RegExp(`^(${Le(r.source)}|null)$`) : void 0;
1678
1679
  }), S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1679
- }), ca = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1680
- C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1680
+ }), ai = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1681
+ T.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1681
1682
  if (r.value === void 0)
1682
1683
  return r.value = t.defaultValue, r;
1683
1684
  const o = t.innerType._zod.run(r, n);
1684
- return o instanceof Promise ? o.then((a) => mt(a, t)) : mt(o, t);
1685
+ return o instanceof Promise ? o.then((i) => pt(i, t)) : pt(o, t);
1685
1686
  };
1686
1687
  });
1687
- function mt(e, t) {
1688
+ function pt(e, t) {
1688
1689
  return e.value === void 0 && (e.value = t.defaultValue), e;
1689
1690
  }
1690
- const ua = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1691
- C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1692
- }), la = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1693
- C.init(e, t), S(e._zod, "values", () => {
1691
+ const ci = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1692
+ T.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1693
+ }), ui = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1694
+ T.init(e, t), S(e._zod, "values", () => {
1694
1695
  const r = t.innerType._zod.values;
1695
1696
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
1696
1697
  }), e._zod.parse = (r, n) => {
1697
1698
  const o = t.innerType._zod.run(r, n);
1698
- return o instanceof Promise ? o.then((a) => gt(a, e)) : gt(o, e);
1699
+ return o instanceof Promise ? o.then((i) => mt(i, e)) : mt(o, e);
1699
1700
  };
1700
1701
  });
1701
- function gt(e, t) {
1702
+ function mt(e, t) {
1702
1703
  return !e.issues.length && e.value === void 0 && e.issues.push({
1703
1704
  code: "invalid_type",
1704
1705
  expected: "nonoptional",
@@ -1706,50 +1707,50 @@ function gt(e, t) {
1706
1707
  inst: t
1707
1708
  }), e;
1708
1709
  }
1709
- const da = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1710
- C.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1710
+ const li = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1711
+ T.init(e, t), e._zod.optin = "optional", S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1711
1712
  const o = t.innerType._zod.run(r, n);
1712
- return o instanceof Promise ? o.then((a) => (r.value = a.value, a.issues.length && (r.value = t.catchValue({
1713
+ return o instanceof Promise ? o.then((i) => (r.value = i.value, i.issues.length && (r.value = t.catchValue({
1713
1714
  ...r,
1714
1715
  error: {
1715
- issues: a.issues.map((i) => Y(i, n, V()))
1716
+ issues: i.issues.map((a) => Y(a, n, V()))
1716
1717
  },
1717
1718
  input: r.value
1718
1719
  }), r.issues = []), r)) : (r.value = o.value, o.issues.length && (r.value = t.catchValue({
1719
1720
  ...r,
1720
1721
  error: {
1721
- issues: o.issues.map((a) => Y(a, n, V()))
1722
+ issues: o.issues.map((i) => Y(i, n, V()))
1722
1723
  },
1723
1724
  input: r.value
1724
1725
  }), r.issues = []), r);
1725
1726
  };
1726
- }), fa = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1727
- C.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1727
+ }), di = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1728
+ T.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1728
1729
  const o = t.in._zod.run(r, n);
1729
- return o instanceof Promise ? o.then((a) => vt(a, t, n)) : vt(o, t, n);
1730
+ return o instanceof Promise ? o.then((i) => gt(i, t, n)) : gt(o, t, n);
1730
1731
  };
1731
1732
  });
1732
- function vt(e, t, r) {
1733
+ function gt(e, t, r) {
1733
1734
  return ne(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1734
1735
  }
1735
- const ha = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1736
- C.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1736
+ const fi = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1737
+ T.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "values", () => t.innerType._zod.values), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1737
1738
  const o = t.innerType._zod.run(r, n);
1738
- return o instanceof Promise ? o.then(yt) : yt(o);
1739
+ return o instanceof Promise ? o.then(vt) : vt(o);
1739
1740
  };
1740
1741
  });
1741
- function yt(e) {
1742
+ function vt(e) {
1742
1743
  return e.value = Object.freeze(e.value), e;
1743
1744
  }
1744
- const pa = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1745
- U.init(e, t), C.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1745
+ const hi = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1746
+ U.init(e, t), T.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1746
1747
  const n = r.value, o = t.fn(n);
1747
1748
  if (o instanceof Promise)
1748
- return o.then((a) => xt(a, r, n, e));
1749
- xt(o, r, n, e);
1749
+ return o.then((i) => yt(i, r, n, e));
1750
+ yt(o, r, n, e);
1750
1751
  };
1751
1752
  });
1752
- function xt(e, t, r, n) {
1753
+ function yt(e, t, r, n) {
1753
1754
  if (!e) {
1754
1755
  const o = {
1755
1756
  code: "custom",
@@ -1761,10 +1762,10 @@ function xt(e, t, r, n) {
1761
1762
  continue: !n._zod.def.abort
1762
1763
  // params: inst._zod.def.params,
1763
1764
  };
1764
- n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(ae(o));
1765
+ n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(ie(o));
1765
1766
  }
1766
1767
  }
1767
- class ma {
1768
+ class pi {
1768
1769
  constructor() {
1769
1770
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1770
1771
  }
@@ -1792,218 +1793,218 @@ class ma {
1792
1793
  return this._map.has(t);
1793
1794
  }
1794
1795
  }
1795
- function ga() {
1796
- return new ma();
1796
+ function mi() {
1797
+ return new pi();
1797
1798
  }
1798
- const fe = /* @__PURE__ */ ga();
1799
- function va(e, t) {
1799
+ const fe = /* @__PURE__ */ mi();
1800
+ function gi(e, t) {
1800
1801
  return new e({
1801
1802
  type: "string",
1802
- ..._(t)
1803
+ ...b(t)
1803
1804
  });
1804
1805
  }
1805
- function ya(e, t) {
1806
+ function vi(e, t) {
1806
1807
  return new e({
1807
1808
  type: "string",
1808
1809
  format: "email",
1809
1810
  check: "string_format",
1810
1811
  abort: !1,
1811
- ..._(t)
1812
+ ...b(t)
1812
1813
  });
1813
1814
  }
1814
- function _t(e, t) {
1815
+ function xt(e, t) {
1815
1816
  return new e({
1816
1817
  type: "string",
1817
1818
  format: "guid",
1818
1819
  check: "string_format",
1819
1820
  abort: !1,
1820
- ..._(t)
1821
+ ...b(t)
1821
1822
  });
1822
1823
  }
1823
- function xa(e, t) {
1824
+ function yi(e, t) {
1824
1825
  return new e({
1825
1826
  type: "string",
1826
1827
  format: "uuid",
1827
1828
  check: "string_format",
1828
1829
  abort: !1,
1829
- ..._(t)
1830
+ ...b(t)
1830
1831
  });
1831
1832
  }
1832
- function _a(e, t) {
1833
+ function xi(e, t) {
1833
1834
  return new e({
1834
1835
  type: "string",
1835
1836
  format: "uuid",
1836
1837
  check: "string_format",
1837
1838
  abort: !1,
1838
1839
  version: "v4",
1839
- ..._(t)
1840
+ ...b(t)
1840
1841
  });
1841
1842
  }
1842
- function ba(e, t) {
1843
+ function _i(e, t) {
1843
1844
  return new e({
1844
1845
  type: "string",
1845
1846
  format: "uuid",
1846
1847
  check: "string_format",
1847
1848
  abort: !1,
1848
1849
  version: "v6",
1849
- ..._(t)
1850
+ ...b(t)
1850
1851
  });
1851
1852
  }
1852
- function wa(e, t) {
1853
+ function bi(e, t) {
1853
1854
  return new e({
1854
1855
  type: "string",
1855
1856
  format: "uuid",
1856
1857
  check: "string_format",
1857
1858
  abort: !1,
1858
1859
  version: "v7",
1859
- ..._(t)
1860
+ ...b(t)
1860
1861
  });
1861
1862
  }
1862
- function ja(e, t) {
1863
+ function wi(e, t) {
1863
1864
  return new e({
1864
1865
  type: "string",
1865
1866
  format: "url",
1866
1867
  check: "string_format",
1867
1868
  abort: !1,
1868
- ..._(t)
1869
+ ...b(t)
1869
1870
  });
1870
1871
  }
1871
- function ka(e, t) {
1872
+ function ji(e, t) {
1872
1873
  return new e({
1873
1874
  type: "string",
1874
1875
  format: "emoji",
1875
1876
  check: "string_format",
1876
1877
  abort: !1,
1877
- ..._(t)
1878
+ ...b(t)
1878
1879
  });
1879
1880
  }
1880
- function $a(e, t) {
1881
+ function ki(e, t) {
1881
1882
  return new e({
1882
1883
  type: "string",
1883
1884
  format: "nanoid",
1884
1885
  check: "string_format",
1885
1886
  abort: !1,
1886
- ..._(t)
1887
+ ...b(t)
1887
1888
  });
1888
1889
  }
1889
- function za(e, t) {
1890
+ function $i(e, t) {
1890
1891
  return new e({
1891
1892
  type: "string",
1892
1893
  format: "cuid",
1893
1894
  check: "string_format",
1894
1895
  abort: !1,
1895
- ..._(t)
1896
+ ...b(t)
1896
1897
  });
1897
1898
  }
1898
- function Pa(e, t) {
1899
+ function zi(e, t) {
1899
1900
  return new e({
1900
1901
  type: "string",
1901
1902
  format: "cuid2",
1902
1903
  check: "string_format",
1903
1904
  abort: !1,
1904
- ..._(t)
1905
+ ...b(t)
1905
1906
  });
1906
1907
  }
1907
- function Ea(e, t) {
1908
+ function Pi(e, t) {
1908
1909
  return new e({
1909
1910
  type: "string",
1910
1911
  format: "ulid",
1911
1912
  check: "string_format",
1912
1913
  abort: !1,
1913
- ..._(t)
1914
+ ...b(t)
1914
1915
  });
1915
1916
  }
1916
- function Sa(e, t) {
1917
+ function Ei(e, t) {
1917
1918
  return new e({
1918
1919
  type: "string",
1919
1920
  format: "xid",
1920
1921
  check: "string_format",
1921
1922
  abort: !1,
1922
- ..._(t)
1923
+ ...b(t)
1923
1924
  });
1924
1925
  }
1925
- function Za(e, t) {
1926
+ function Si(e, t) {
1926
1927
  return new e({
1927
1928
  type: "string",
1928
1929
  format: "ksuid",
1929
1930
  check: "string_format",
1930
1931
  abort: !1,
1931
- ..._(t)
1932
+ ...b(t)
1932
1933
  });
1933
1934
  }
1934
- function Ta(e, t) {
1935
+ function Zi(e, t) {
1935
1936
  return new e({
1936
1937
  type: "string",
1937
1938
  format: "ipv4",
1938
1939
  check: "string_format",
1939
1940
  abort: !1,
1940
- ..._(t)
1941
+ ...b(t)
1941
1942
  });
1942
1943
  }
1943
- function Ca(e, t) {
1944
+ function Ci(e, t) {
1944
1945
  return new e({
1945
1946
  type: "string",
1946
1947
  format: "ipv6",
1947
1948
  check: "string_format",
1948
1949
  abort: !1,
1949
- ..._(t)
1950
+ ...b(t)
1950
1951
  });
1951
1952
  }
1952
- function Oa(e, t) {
1953
+ function Ti(e, t) {
1953
1954
  return new e({
1954
1955
  type: "string",
1955
1956
  format: "cidrv4",
1956
1957
  check: "string_format",
1957
1958
  abort: !1,
1958
- ..._(t)
1959
+ ...b(t)
1959
1960
  });
1960
1961
  }
1961
- function Na(e, t) {
1962
+ function Ni(e, t) {
1962
1963
  return new e({
1963
1964
  type: "string",
1964
1965
  format: "cidrv6",
1965
1966
  check: "string_format",
1966
1967
  abort: !1,
1967
- ..._(t)
1968
+ ...b(t)
1968
1969
  });
1969
1970
  }
1970
- function Aa(e, t) {
1971
+ function Oi(e, t) {
1971
1972
  return new e({
1972
1973
  type: "string",
1973
1974
  format: "base64",
1974
1975
  check: "string_format",
1975
1976
  abort: !1,
1976
- ..._(t)
1977
+ ...b(t)
1977
1978
  });
1978
1979
  }
1979
- function Ia(e, t) {
1980
+ function Ai(e, t) {
1980
1981
  return new e({
1981
1982
  type: "string",
1982
1983
  format: "base64url",
1983
1984
  check: "string_format",
1984
1985
  abort: !1,
1985
- ..._(t)
1986
+ ...b(t)
1986
1987
  });
1987
1988
  }
1988
- function Ra(e, t) {
1989
+ function Ii(e, t) {
1989
1990
  return new e({
1990
1991
  type: "string",
1991
1992
  format: "e164",
1992
1993
  check: "string_format",
1993
1994
  abort: !1,
1994
- ..._(t)
1995
+ ...b(t)
1995
1996
  });
1996
1997
  }
1997
- function Da(e, t) {
1998
+ function Ri(e, t) {
1998
1999
  return new e({
1999
2000
  type: "string",
2000
2001
  format: "jwt",
2001
2002
  check: "string_format",
2002
2003
  abort: !1,
2003
- ..._(t)
2004
+ ...b(t)
2004
2005
  });
2005
2006
  }
2006
- function Ma(e, t) {
2007
+ function Di(e, t) {
2007
2008
  return new e({
2008
2009
  type: "string",
2009
2010
  format: "datetime",
@@ -2011,180 +2012,180 @@ function Ma(e, t) {
2011
2012
  offset: !1,
2012
2013
  local: !1,
2013
2014
  precision: null,
2014
- ..._(t)
2015
+ ...b(t)
2015
2016
  });
2016
2017
  }
2017
- function Fa(e, t) {
2018
+ function Mi(e, t) {
2018
2019
  return new e({
2019
2020
  type: "string",
2020
2021
  format: "date",
2021
2022
  check: "string_format",
2022
- ..._(t)
2023
+ ...b(t)
2023
2024
  });
2024
2025
  }
2025
- function qa(e, t) {
2026
+ function Fi(e, t) {
2026
2027
  return new e({
2027
2028
  type: "string",
2028
2029
  format: "time",
2029
2030
  check: "string_format",
2030
2031
  precision: null,
2031
- ..._(t)
2032
+ ...b(t)
2032
2033
  });
2033
2034
  }
2034
- function Ua(e, t) {
2035
+ function qi(e, t) {
2035
2036
  return new e({
2036
2037
  type: "string",
2037
2038
  format: "duration",
2038
2039
  check: "string_format",
2039
- ..._(t)
2040
+ ...b(t)
2040
2041
  });
2041
2042
  }
2042
- function La(e) {
2043
+ function Ui(e) {
2043
2044
  return new e({
2044
2045
  type: "unknown"
2045
2046
  });
2046
2047
  }
2047
- function Qa(e, t) {
2048
+ function Li(e, t) {
2048
2049
  return new e({
2049
2050
  type: "never",
2050
- ..._(t)
2051
+ ...b(t)
2051
2052
  });
2052
2053
  }
2053
- function mr(e, t) {
2054
- return new ms({
2054
+ function hr(e, t) {
2055
+ return new ps({
2055
2056
  check: "max_length",
2056
- ..._(t),
2057
+ ...b(t),
2057
2058
  maximum: e
2058
2059
  });
2059
2060
  }
2060
2061
  function ve(e, t) {
2061
- return new gs({
2062
+ return new ms({
2062
2063
  check: "min_length",
2063
- ..._(t),
2064
+ ...b(t),
2064
2065
  minimum: e
2065
2066
  });
2066
2067
  }
2067
- function gr(e, t) {
2068
- return new vs({
2068
+ function pr(e, t) {
2069
+ return new gs({
2069
2070
  check: "length_equals",
2070
- ..._(t),
2071
+ ...b(t),
2071
2072
  length: e
2072
2073
  });
2073
2074
  }
2074
- function Ba(e, t) {
2075
- return new ys({
2075
+ function Qi(e, t) {
2076
+ return new vs({
2076
2077
  check: "string_format",
2077
2078
  format: "regex",
2078
- ..._(t),
2079
+ ...b(t),
2079
2080
  pattern: e
2080
2081
  });
2081
2082
  }
2082
- function Ha(e) {
2083
- return new xs({
2083
+ function Bi(e) {
2084
+ return new ys({
2084
2085
  check: "string_format",
2085
2086
  format: "lowercase",
2086
- ..._(e)
2087
+ ...b(e)
2087
2088
  });
2088
2089
  }
2089
- function Ka(e) {
2090
- return new _s({
2090
+ function Ki(e) {
2091
+ return new xs({
2091
2092
  check: "string_format",
2092
2093
  format: "uppercase",
2093
- ..._(e)
2094
+ ...b(e)
2094
2095
  });
2095
2096
  }
2096
- function Wa(e, t) {
2097
- return new bs({
2097
+ function Hi(e, t) {
2098
+ return new _s({
2098
2099
  check: "string_format",
2099
2100
  format: "includes",
2100
- ..._(t),
2101
+ ...b(t),
2101
2102
  includes: e
2102
2103
  });
2103
2104
  }
2104
- function Va(e, t) {
2105
- return new ws({
2105
+ function Wi(e, t) {
2106
+ return new bs({
2106
2107
  check: "string_format",
2107
2108
  format: "starts_with",
2108
- ..._(t),
2109
+ ...b(t),
2109
2110
  prefix: e
2110
2111
  });
2111
2112
  }
2112
- function Ya(e, t) {
2113
- return new js({
2113
+ function Vi(e, t) {
2114
+ return new ws({
2114
2115
  check: "string_format",
2115
2116
  format: "ends_with",
2116
- ..._(t),
2117
+ ...b(t),
2117
2118
  suffix: e
2118
2119
  });
2119
2120
  }
2120
- function ie(e) {
2121
- return new ks({
2121
+ function ae(e) {
2122
+ return new js({
2122
2123
  check: "overwrite",
2123
2124
  tx: e
2124
2125
  });
2125
2126
  }
2126
- function Ga(e) {
2127
- return ie((t) => t.normalize(e));
2127
+ function Yi(e) {
2128
+ return ae((t) => t.normalize(e));
2128
2129
  }
2129
- function Ja() {
2130
- return ie((e) => e.trim());
2130
+ function Gi() {
2131
+ return ae((e) => e.trim());
2131
2132
  }
2132
- function Xa() {
2133
- return ie((e) => e.toLowerCase());
2133
+ function Ji() {
2134
+ return ae((e) => e.toLowerCase());
2134
2135
  }
2135
- function ei() {
2136
- return ie((e) => e.toUpperCase());
2136
+ function Xi() {
2137
+ return ae((e) => e.toUpperCase());
2137
2138
  }
2138
- function ti(e, t, r) {
2139
+ function ea(e, t, r) {
2139
2140
  return new e({
2140
2141
  type: "array",
2141
2142
  element: t,
2142
2143
  // get element() {
2143
2144
  // return element;
2144
2145
  // },
2145
- ..._(r)
2146
+ ...b(r)
2146
2147
  });
2147
2148
  }
2148
- function ri(e, t, r) {
2149
+ function ta(e, t, r) {
2149
2150
  return new e({
2150
2151
  type: "custom",
2151
2152
  check: "custom",
2152
2153
  fn: t,
2153
- ..._(r)
2154
+ ...b(r)
2154
2155
  });
2155
2156
  }
2156
- const ni = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
2157
- Ds.init(e, t), Z.init(e, t);
2157
+ const ra = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
2158
+ Rs.init(e, t), C.init(e, t);
2158
2159
  });
2159
- function oi(e) {
2160
- return Ma(ni, e);
2160
+ function na(e) {
2161
+ return Di(ra, e);
2161
2162
  }
2162
- const si = /* @__PURE__ */ c("ZodISODate", (e, t) => {
2163
- Ms.init(e, t), Z.init(e, t);
2163
+ const oa = /* @__PURE__ */ c("ZodISODate", (e, t) => {
2164
+ Ds.init(e, t), C.init(e, t);
2164
2165
  });
2165
- function ai(e) {
2166
- return Fa(si, e);
2166
+ function sa(e) {
2167
+ return Mi(oa, e);
2167
2168
  }
2168
- const ii = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
2169
- Fs.init(e, t), Z.init(e, t);
2169
+ const ia = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
2170
+ Ms.init(e, t), C.init(e, t);
2170
2171
  });
2171
- function ci(e) {
2172
- return qa(ii, e);
2172
+ function aa(e) {
2173
+ return Fi(ia, e);
2173
2174
  }
2174
- const ui = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
2175
- qs.init(e, t), Z.init(e, t);
2175
+ const ca = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
2176
+ Fs.init(e, t), C.init(e, t);
2176
2177
  });
2177
- function li(e) {
2178
- return Ua(ui, e);
2178
+ function ua(e) {
2179
+ return qi(ca, e);
2179
2180
  }
2180
- const di = (e, t) => {
2181
- ir.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2181
+ const la = (e, t) => {
2182
+ sr.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2182
2183
  format: {
2183
- value: (r) => Fo(e, r)
2184
+ value: (r) => Mo(e, r)
2184
2185
  // enumerable: false,
2185
2186
  },
2186
2187
  flatten: {
2187
- value: (r) => Mo(e, r)
2188
+ value: (r) => Do(e, r)
2188
2189
  // enumerable: false,
2189
2190
  },
2190
2191
  addIssue: {
@@ -2202,9 +2203,9 @@ const di = (e, t) => {
2202
2203
  // enumerable: false,
2203
2204
  }
2204
2205
  });
2205
- }, we = c("ZodError", di, {
2206
+ }, we = c("ZodError", la, {
2206
2207
  Parent: Error
2207
- }), fi = /* @__PURE__ */ qo(we), hi = /* @__PURE__ */ Uo(we), pi = /* @__PURE__ */ ur(we), mi = /* @__PURE__ */ lr(we), O = /* @__PURE__ */ c("ZodType", (e, t) => (C.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2208
+ }), da = /* @__PURE__ */ Fo(we), fa = /* @__PURE__ */ qo(we), ha = /* @__PURE__ */ ar(we), pa = /* @__PURE__ */ cr(we), N = /* @__PURE__ */ c("ZodType", (e, t) => (T.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2208
2209
  {
2209
2210
  ...t,
2210
2211
  checks: [
@@ -2213,7 +2214,7 @@ const di = (e, t) => {
2213
2214
  ]
2214
2215
  }
2215
2216
  // { parent: true }
2216
- ), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => fi(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => pi(e, r, n), e.parseAsync = async (r, n) => hi(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => mi(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(ac(r, n)), e.superRefine = (r) => e.check(ic(r)), e.overwrite = (r) => e.check(ie(r)), e.optional = () => kt(e), e.nullable = () => $t(e), e.nullish = () => kt($t(e)), e.nonoptional = (r) => Ji(e, r), e.array = () => Di(e), e.or = (r) => Ui([e, r]), e.and = (r) => Qi(e, r), e.transform = (r) => zt(e, Hi(r)), e.default = (r) => Vi(e, r), e.prefault = (r) => Gi(e, r), e.catch = (r) => ec(e, r), e.pipe = (r) => zt(e, r), e.readonly = () => nc(e), e.describe = (r) => {
2217
+ ), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => da(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => ha(e, r, n), e.parseAsync = async (r, n) => fa(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => pa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(sc(r, n)), e.superRefine = (r) => e.check(ic(r)), e.overwrite = (r) => e.check(ae(r)), e.optional = () => jt(e), e.nullable = () => kt(e), e.nullish = () => jt(kt(e)), e.nonoptional = (r) => Ga(e, r), e.array = () => Ra(e), e.or = (r) => qa([e, r]), e.and = (r) => La(e, r), e.transform = (r) => $t(e, Ba(r)), e.default = (r) => Wa(e, r), e.prefault = (r) => Ya(e, r), e.catch = (r) => Xa(e, r), e.pipe = (r) => $t(e, r), e.readonly = () => rc(e), e.describe = (r) => {
2217
2218
  const n = e.clone();
2218
2219
  return fe.add(n, { description: r }), n;
2219
2220
  }, Object.defineProperty(e, "description", {
@@ -2226,189 +2227,189 @@ const di = (e, t) => {
2226
2227
  return fe.get(e);
2227
2228
  const n = e.clone();
2228
2229
  return fe.add(n, r[0]), n;
2229
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), vr = /* @__PURE__ */ c("_ZodString", (e, t) => {
2230
- He.init(e, t), O.init(e, t);
2230
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), mr = /* @__PURE__ */ c("_ZodString", (e, t) => {
2231
+ He.init(e, t), N.init(e, t);
2231
2232
  const r = e._zod.bag;
2232
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Ba(...n)), e.includes = (...n) => e.check(Wa(...n)), e.startsWith = (...n) => e.check(Va(...n)), e.endsWith = (...n) => e.check(Ya(...n)), e.min = (...n) => e.check(ve(...n)), e.max = (...n) => e.check(mr(...n)), e.length = (...n) => e.check(gr(...n)), e.nonempty = (...n) => e.check(ve(1, ...n)), e.lowercase = (n) => e.check(Ha(n)), e.uppercase = (n) => e.check(Ka(n)), e.trim = () => e.check(Ja()), e.normalize = (...n) => e.check(Ga(...n)), e.toLowerCase = () => e.check(Xa()), e.toUpperCase = () => e.check(ei());
2233
- }), gi = /* @__PURE__ */ c("ZodString", (e, t) => {
2234
- He.init(e, t), vr.init(e, t), e.email = (r) => e.check(ya(vi, r)), e.url = (r) => e.check(ja(yi, r)), e.jwt = (r) => e.check(Da(Oi, r)), e.emoji = (r) => e.check(ka(xi, r)), e.guid = (r) => e.check(_t(wt, r)), e.uuid = (r) => e.check(xa(he, r)), e.uuidv4 = (r) => e.check(_a(he, r)), e.uuidv6 = (r) => e.check(ba(he, r)), e.uuidv7 = (r) => e.check(wa(he, r)), e.nanoid = (r) => e.check($a(_i, r)), e.guid = (r) => e.check(_t(wt, r)), e.cuid = (r) => e.check(za(bi, r)), e.cuid2 = (r) => e.check(Pa(wi, r)), e.ulid = (r) => e.check(Ea(ji, r)), e.base64 = (r) => e.check(Aa(Zi, r)), e.base64url = (r) => e.check(Ia(Ti, r)), e.xid = (r) => e.check(Sa(ki, r)), e.ksuid = (r) => e.check(Za($i, r)), e.ipv4 = (r) => e.check(Ta(zi, r)), e.ipv6 = (r) => e.check(Ca(Pi, r)), e.cidrv4 = (r) => e.check(Oa(Ei, r)), e.cidrv6 = (r) => e.check(Na(Si, r)), e.e164 = (r) => e.check(Ra(Ci, r)), e.datetime = (r) => e.check(oi(r)), e.date = (r) => e.check(ai(r)), e.time = (r) => e.check(ci(r)), e.duration = (r) => e.check(li(r));
2233
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Qi(...n)), e.includes = (...n) => e.check(Hi(...n)), e.startsWith = (...n) => e.check(Wi(...n)), e.endsWith = (...n) => e.check(Vi(...n)), e.min = (...n) => e.check(ve(...n)), e.max = (...n) => e.check(hr(...n)), e.length = (...n) => e.check(pr(...n)), e.nonempty = (...n) => e.check(ve(1, ...n)), e.lowercase = (n) => e.check(Bi(n)), e.uppercase = (n) => e.check(Ki(n)), e.trim = () => e.check(Gi()), e.normalize = (...n) => e.check(Yi(...n)), e.toLowerCase = () => e.check(Ji()), e.toUpperCase = () => e.check(Xi());
2234
+ }), ma = /* @__PURE__ */ c("ZodString", (e, t) => {
2235
+ He.init(e, t), mr.init(e, t), e.email = (r) => e.check(vi(ga, r)), e.url = (r) => e.check(wi(va, r)), e.jwt = (r) => e.check(Ri(Ta, r)), e.emoji = (r) => e.check(ji(ya, r)), e.guid = (r) => e.check(xt(bt, r)), e.uuid = (r) => e.check(yi(he, r)), e.uuidv4 = (r) => e.check(xi(he, r)), e.uuidv6 = (r) => e.check(_i(he, r)), e.uuidv7 = (r) => e.check(bi(he, r)), e.nanoid = (r) => e.check(ki(xa, r)), e.guid = (r) => e.check(xt(bt, r)), e.cuid = (r) => e.check($i(_a, r)), e.cuid2 = (r) => e.check(zi(ba, r)), e.ulid = (r) => e.check(Pi(wa, r)), e.base64 = (r) => e.check(Oi(Sa, r)), e.base64url = (r) => e.check(Ai(Za, r)), e.xid = (r) => e.check(Ei(ja, r)), e.ksuid = (r) => e.check(Si(ka, r)), e.ipv4 = (r) => e.check(Zi($a, r)), e.ipv6 = (r) => e.check(Ci(za, r)), e.cidrv4 = (r) => e.check(Ti(Pa, r)), e.cidrv6 = (r) => e.check(Ni(Ea, r)), e.e164 = (r) => e.check(Ii(Ca, r)), e.datetime = (r) => e.check(na(r)), e.date = (r) => e.check(sa(r)), e.time = (r) => e.check(aa(r)), e.duration = (r) => e.check(ua(r));
2235
2236
  });
2236
- function bt(e) {
2237
- return va(gi, e);
2238
- }
2239
- const Z = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
2240
- E.init(e, t), vr.init(e, t);
2241
- }), vi = /* @__PURE__ */ c("ZodEmail", (e, t) => {
2242
- Ss.init(e, t), Z.init(e, t);
2243
- }), wt = /* @__PURE__ */ c("ZodGUID", (e, t) => {
2244
- Ps.init(e, t), Z.init(e, t);
2237
+ function _t(e) {
2238
+ return gi(ma, e);
2239
+ }
2240
+ const C = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
2241
+ Z.init(e, t), mr.init(e, t);
2242
+ }), ga = /* @__PURE__ */ c("ZodEmail", (e, t) => {
2243
+ Es.init(e, t), C.init(e, t);
2244
+ }), bt = /* @__PURE__ */ c("ZodGUID", (e, t) => {
2245
+ zs.init(e, t), C.init(e, t);
2245
2246
  }), he = /* @__PURE__ */ c("ZodUUID", (e, t) => {
2246
- Es.init(e, t), Z.init(e, t);
2247
- }), yi = /* @__PURE__ */ c("ZodURL", (e, t) => {
2248
- Zs.init(e, t), Z.init(e, t);
2249
- }), xi = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
2250
- Ts.init(e, t), Z.init(e, t);
2251
- }), _i = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
2252
- Cs.init(e, t), Z.init(e, t);
2253
- }), bi = /* @__PURE__ */ c("ZodCUID", (e, t) => {
2254
- Os.init(e, t), Z.init(e, t);
2255
- }), wi = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
2256
- Ns.init(e, t), Z.init(e, t);
2257
- }), ji = /* @__PURE__ */ c("ZodULID", (e, t) => {
2258
- As.init(e, t), Z.init(e, t);
2259
- }), ki = /* @__PURE__ */ c("ZodXID", (e, t) => {
2260
- Is.init(e, t), Z.init(e, t);
2261
- }), $i = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
2262
- Rs.init(e, t), Z.init(e, t);
2263
- }), zi = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
2264
- Us.init(e, t), Z.init(e, t);
2265
- }), Pi = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
2266
- Ls.init(e, t), Z.init(e, t);
2267
- }), Ei = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
2268
- Qs.init(e, t), Z.init(e, t);
2269
- }), Si = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
2270
- Bs.init(e, t), Z.init(e, t);
2271
- }), Zi = /* @__PURE__ */ c("ZodBase64", (e, t) => {
2272
- Hs.init(e, t), Z.init(e, t);
2273
- }), Ti = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
2274
- Ws.init(e, t), Z.init(e, t);
2275
- }), Ci = /* @__PURE__ */ c("ZodE164", (e, t) => {
2276
- Vs.init(e, t), Z.init(e, t);
2277
- }), Oi = /* @__PURE__ */ c("ZodJWT", (e, t) => {
2278
- Gs.init(e, t), Z.init(e, t);
2279
- }), Ni = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
2280
- Js.init(e, t), O.init(e, t);
2247
+ Ps.init(e, t), C.init(e, t);
2248
+ }), va = /* @__PURE__ */ c("ZodURL", (e, t) => {
2249
+ Ss.init(e, t), C.init(e, t);
2250
+ }), ya = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
2251
+ Zs.init(e, t), C.init(e, t);
2252
+ }), xa = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
2253
+ Cs.init(e, t), C.init(e, t);
2254
+ }), _a = /* @__PURE__ */ c("ZodCUID", (e, t) => {
2255
+ Ts.init(e, t), C.init(e, t);
2256
+ }), ba = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
2257
+ Ns.init(e, t), C.init(e, t);
2258
+ }), wa = /* @__PURE__ */ c("ZodULID", (e, t) => {
2259
+ Os.init(e, t), C.init(e, t);
2260
+ }), ja = /* @__PURE__ */ c("ZodXID", (e, t) => {
2261
+ As.init(e, t), C.init(e, t);
2262
+ }), ka = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
2263
+ Is.init(e, t), C.init(e, t);
2264
+ }), $a = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
2265
+ qs.init(e, t), C.init(e, t);
2266
+ }), za = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
2267
+ Us.init(e, t), C.init(e, t);
2268
+ }), Pa = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
2269
+ Ls.init(e, t), C.init(e, t);
2270
+ }), Ea = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
2271
+ Qs.init(e, t), C.init(e, t);
2272
+ }), Sa = /* @__PURE__ */ c("ZodBase64", (e, t) => {
2273
+ Bs.init(e, t), C.init(e, t);
2274
+ }), Za = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
2275
+ Hs.init(e, t), C.init(e, t);
2276
+ }), Ca = /* @__PURE__ */ c("ZodE164", (e, t) => {
2277
+ Ws.init(e, t), C.init(e, t);
2278
+ }), Ta = /* @__PURE__ */ c("ZodJWT", (e, t) => {
2279
+ Ys.init(e, t), C.init(e, t);
2280
+ }), Na = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
2281
+ Gs.init(e, t), N.init(e, t);
2281
2282
  });
2282
- function jt() {
2283
- return La(Ni);
2283
+ function wt() {
2284
+ return Ui(Na);
2284
2285
  }
2285
- const Ai = /* @__PURE__ */ c("ZodNever", (e, t) => {
2286
- Xs.init(e, t), O.init(e, t);
2286
+ const Oa = /* @__PURE__ */ c("ZodNever", (e, t) => {
2287
+ Js.init(e, t), N.init(e, t);
2287
2288
  });
2288
- function Ii(e) {
2289
- return Qa(Ai, e);
2289
+ function Aa(e) {
2290
+ return Li(Oa, e);
2290
2291
  }
2291
- const Ri = /* @__PURE__ */ c("ZodArray", (e, t) => {
2292
- ea.init(e, t), O.init(e, t), e.element = t.element, e.min = (r, n) => e.check(ve(r, n)), e.nonempty = (r) => e.check(ve(1, r)), e.max = (r, n) => e.check(mr(r, n)), e.length = (r, n) => e.check(gr(r, n)), e.unwrap = () => e.element;
2292
+ const Ia = /* @__PURE__ */ c("ZodArray", (e, t) => {
2293
+ Xs.init(e, t), N.init(e, t), e.element = t.element, e.min = (r, n) => e.check(ve(r, n)), e.nonempty = (r) => e.check(ve(1, r)), e.max = (r, n) => e.check(hr(r, n)), e.length = (r, n) => e.check(pr(r, n)), e.unwrap = () => e.element;
2293
2294
  });
2294
- function Di(e, t) {
2295
- return ti(Ri, e, t);
2295
+ function Ra(e, t) {
2296
+ return ea(Ia, e, t);
2296
2297
  }
2297
- const Mi = /* @__PURE__ */ c("ZodObject", (e, t) => {
2298
- ta.init(e, t), O.init(e, t), S(e, "shape", () => t.shape), e.keyof = () => yr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: jt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: jt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ii() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ao(e, r), e.merge = (r) => Io(e, r), e.pick = (r) => Oo(e, r), e.omit = (r) => No(e, r), e.partial = (...r) => Ro(xr, e, r[0]), e.required = (...r) => Do(_r, e, r[0]);
2298
+ const Da = /* @__PURE__ */ c("ZodObject", (e, t) => {
2299
+ ei.init(e, t), N.init(e, t), S(e, "shape", () => t.shape), e.keyof = () => gr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: wt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: wt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Aa() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Oo(e, r), e.merge = (r) => Ao(e, r), e.pick = (r) => To(e, r), e.omit = (r) => No(e, r), e.partial = (...r) => Io(vr, e, r[0]), e.required = (...r) => Ro(yr, e, r[0]);
2299
2300
  });
2300
- function Fi(e, t) {
2301
+ function Ma(e, t) {
2301
2302
  const r = {
2302
2303
  type: "object",
2303
2304
  get shape() {
2304
- return Le(this, "shape", { ...e }), this.shape;
2305
+ return Qe(this, "shape", { ...e }), this.shape;
2305
2306
  },
2306
- ..._(t)
2307
+ ...b(t)
2307
2308
  };
2308
- return new Mi(r);
2309
+ return new Da(r);
2309
2310
  }
2310
- const qi = /* @__PURE__ */ c("ZodUnion", (e, t) => {
2311
- ra.init(e, t), O.init(e, t), e.options = t.options;
2311
+ const Fa = /* @__PURE__ */ c("ZodUnion", (e, t) => {
2312
+ ti.init(e, t), N.init(e, t), e.options = t.options;
2312
2313
  });
2313
- function Ui(e, t) {
2314
- return new qi({
2314
+ function qa(e, t) {
2315
+ return new Fa({
2315
2316
  type: "union",
2316
2317
  options: e,
2317
- ..._(t)
2318
+ ...b(t)
2318
2319
  });
2319
2320
  }
2320
- const Li = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
2321
- na.init(e, t), O.init(e, t);
2321
+ const Ua = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
2322
+ ri.init(e, t), N.init(e, t);
2322
2323
  });
2323
- function Qi(e, t) {
2324
- return new Li({
2324
+ function La(e, t) {
2325
+ return new Ua({
2325
2326
  type: "intersection",
2326
2327
  left: e,
2327
2328
  right: t
2328
2329
  });
2329
2330
  }
2330
2331
  const Oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2331
- oa.init(e, t), O.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2332
+ ni.init(e, t), N.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2332
2333
  const r = new Set(Object.keys(t.entries));
2333
2334
  e.extract = (n, o) => {
2334
- const a = {};
2335
- for (const i of n)
2336
- if (r.has(i))
2337
- a[i] = t.entries[i];
2335
+ const i = {};
2336
+ for (const a of n)
2337
+ if (r.has(a))
2338
+ i[a] = t.entries[a];
2338
2339
  else
2339
- throw new Error(`Key ${i} not found in enum`);
2340
+ throw new Error(`Key ${a} not found in enum`);
2340
2341
  return new Oe({
2341
2342
  ...t,
2342
2343
  checks: [],
2343
- ..._(o),
2344
- entries: a
2344
+ ...b(o),
2345
+ entries: i
2345
2346
  });
2346
2347
  }, e.exclude = (n, o) => {
2347
- const a = { ...t.entries };
2348
- for (const i of n)
2349
- if (r.has(i))
2350
- delete a[i];
2348
+ const i = { ...t.entries };
2349
+ for (const a of n)
2350
+ if (r.has(a))
2351
+ delete i[a];
2351
2352
  else
2352
- throw new Error(`Key ${i} not found in enum`);
2353
+ throw new Error(`Key ${a} not found in enum`);
2353
2354
  return new Oe({
2354
2355
  ...t,
2355
2356
  checks: [],
2356
- ..._(o),
2357
- entries: a
2357
+ ...b(o),
2358
+ entries: i
2358
2359
  });
2359
2360
  };
2360
2361
  });
2361
- function yr(e, t) {
2362
+ function gr(e, t) {
2362
2363
  const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
2363
2364
  return new Oe({
2364
2365
  type: "enum",
2365
2366
  entries: r,
2366
- ..._(t)
2367
+ ...b(t)
2367
2368
  });
2368
2369
  }
2369
- const Bi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
2370
- sa.init(e, t), O.init(e, t), e._zod.parse = (r, n) => {
2371
- r.addIssue = (a) => {
2372
- if (typeof a == "string")
2373
- r.issues.push(ae(a, r.value, t));
2370
+ const Qa = /* @__PURE__ */ c("ZodTransform", (e, t) => {
2371
+ oi.init(e, t), N.init(e, t), e._zod.parse = (r, n) => {
2372
+ r.addIssue = (i) => {
2373
+ if (typeof i == "string")
2374
+ r.issues.push(ie(i, r.value, t));
2374
2375
  else {
2375
- const i = a;
2376
- i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), i.continue ?? (i.continue = !0), r.issues.push(ae(i));
2376
+ const a = i;
2377
+ a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), a.continue ?? (a.continue = !0), r.issues.push(ie(a));
2377
2378
  }
2378
2379
  };
2379
2380
  const o = t.transform(r.value, r);
2380
- return o instanceof Promise ? o.then((a) => (r.value = a, r)) : (r.value = o, r);
2381
+ return o instanceof Promise ? o.then((i) => (r.value = i, r)) : (r.value = o, r);
2381
2382
  };
2382
2383
  });
2383
- function Hi(e) {
2384
- return new Bi({
2384
+ function Ba(e) {
2385
+ return new Qa({
2385
2386
  type: "transform",
2386
2387
  transform: e
2387
2388
  });
2388
2389
  }
2389
- const xr = /* @__PURE__ */ c("ZodOptional", (e, t) => {
2390
- aa.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2390
+ const vr = /* @__PURE__ */ c("ZodOptional", (e, t) => {
2391
+ si.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
2391
2392
  });
2392
- function kt(e) {
2393
- return new xr({
2393
+ function jt(e) {
2394
+ return new vr({
2394
2395
  type: "optional",
2395
2396
  innerType: e
2396
2397
  });
2397
2398
  }
2398
- const Ki = /* @__PURE__ */ c("ZodNullable", (e, t) => {
2399
- ia.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2399
+ const Ka = /* @__PURE__ */ c("ZodNullable", (e, t) => {
2400
+ ii.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
2400
2401
  });
2401
- function $t(e) {
2402
- return new Ki({
2402
+ function kt(e) {
2403
+ return new Ka({
2403
2404
  type: "nullable",
2404
2405
  innerType: e
2405
2406
  });
2406
2407
  }
2407
- const Wi = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2408
- ca.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2408
+ const Ha = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2409
+ ai.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2409
2410
  });
2410
- function Vi(e, t) {
2411
- return new Wi({
2411
+ function Wa(e, t) {
2412
+ return new Ha({
2412
2413
  type: "default",
2413
2414
  innerType: e,
2414
2415
  get defaultValue() {
@@ -2416,11 +2417,11 @@ function Vi(e, t) {
2416
2417
  }
2417
2418
  });
2418
2419
  }
2419
- const Yi = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2420
- ua.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2420
+ const Va = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2421
+ ci.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
2421
2422
  });
2422
- function Gi(e, t) {
2423
- return new Yi({
2423
+ function Ya(e, t) {
2424
+ return new Va({
2424
2425
  type: "prefault",
2425
2426
  innerType: e,
2426
2427
  get defaultValue() {
@@ -2428,79 +2429,79 @@ function Gi(e, t) {
2428
2429
  }
2429
2430
  });
2430
2431
  }
2431
- const _r = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2432
- la.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2432
+ const yr = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2433
+ ui.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
2433
2434
  });
2434
- function Ji(e, t) {
2435
- return new _r({
2435
+ function Ga(e, t) {
2436
+ return new yr({
2436
2437
  type: "nonoptional",
2437
2438
  innerType: e,
2438
- ..._(t)
2439
+ ...b(t)
2439
2440
  });
2440
2441
  }
2441
- const Xi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2442
- da.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2442
+ const Ja = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2443
+ li.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2443
2444
  });
2444
- function ec(e, t) {
2445
- return new Xi({
2445
+ function Xa(e, t) {
2446
+ return new Ja({
2446
2447
  type: "catch",
2447
2448
  innerType: e,
2448
2449
  catchValue: typeof t == "function" ? t : () => t
2449
2450
  });
2450
2451
  }
2451
- const tc = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2452
- fa.init(e, t), O.init(e, t), e.in = t.in, e.out = t.out;
2452
+ const ec = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2453
+ di.init(e, t), N.init(e, t), e.in = t.in, e.out = t.out;
2453
2454
  });
2454
- function zt(e, t) {
2455
- return new tc({
2455
+ function $t(e, t) {
2456
+ return new ec({
2456
2457
  type: "pipe",
2457
2458
  in: e,
2458
2459
  out: t
2459
2460
  // ...util.normalizeParams(params),
2460
2461
  });
2461
2462
  }
2462
- const rc = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2463
- ha.init(e, t), O.init(e, t);
2463
+ const tc = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2464
+ fi.init(e, t), N.init(e, t);
2464
2465
  });
2465
- function nc(e) {
2466
- return new rc({
2466
+ function rc(e) {
2467
+ return new tc({
2467
2468
  type: "readonly",
2468
2469
  innerType: e
2469
2470
  });
2470
2471
  }
2471
- const oc = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2472
- pa.init(e, t), O.init(e, t);
2472
+ const nc = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2473
+ hi.init(e, t), N.init(e, t);
2473
2474
  });
2474
- function sc(e, t) {
2475
+ function oc(e, t) {
2475
2476
  const r = new U({
2476
2477
  check: "custom",
2477
- ..._(t)
2478
+ ...b(t)
2478
2479
  });
2479
2480
  return r._zod.check = e, r;
2480
2481
  }
2481
- function ac(e, t = {}) {
2482
- return ri(oc, e, t);
2482
+ function sc(e, t = {}) {
2483
+ return ta(nc, e, t);
2483
2484
  }
2484
2485
  function ic(e, t) {
2485
- const r = sc((n) => (n.addIssue = (o) => {
2486
+ const r = oc((n) => (n.addIssue = (o) => {
2486
2487
  if (typeof o == "string")
2487
- n.issues.push(ae(o, n.value, r._zod.def));
2488
+ n.issues.push(ie(o, n.value, r._zod.def));
2488
2489
  else {
2489
- const a = o;
2490
- a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = r), a.continue ?? (a.continue = !r._zod.def.abort), n.issues.push(ae(a));
2490
+ const i = o;
2491
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = r), i.continue ?? (i.continue = !r._zod.def.abort), n.issues.push(ie(i));
2491
2492
  }
2492
2493
  }, e(n.value, n)), t);
2493
2494
  return r;
2494
2495
  }
2495
- const cc = Fi({
2496
- buildId: bt(),
2497
- timestamp: bt(),
2498
- status: yr(["in-progress", "success", "failed"])
2499
- }), uc = ({
2496
+ const ac = Ma({
2497
+ buildId: _t(),
2498
+ timestamp: _t(),
2499
+ status: gr(["in-progress", "success", "failed"])
2500
+ }), cc = ({
2500
2501
  buildId: e,
2501
2502
  endpoint: t = "/__zuplo/docs"
2502
2503
  }) => {
2503
- const r = mn({
2504
+ const r = pn({
2504
2505
  queryKey: ["zuplo-build-check", e, t],
2505
2506
  refetchInterval: 3e3,
2506
2507
  enabled: typeof e < "u" && !1,
@@ -2508,22 +2509,22 @@ const cc = Fi({
2508
2509
  queryFn: () => fetch(t, { signal: AbortSignal.timeout(2e3) }).then((o) => {
2509
2510
  if (!o.ok) throw new Error("Failed to fetch build status");
2510
2511
  return o.json();
2511
- }).then((o) => cc.parse(o))
2512
+ }).then((o) => ac.parse(o))
2512
2513
  });
2513
2514
  if (r.isError || !r.data || r.data.buildId === e)
2514
2515
  return null;
2515
2516
  const n = r.data.status === "success";
2516
2517
  return /* @__PURE__ */ s.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: [
2517
2518
  n ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2518
- /* @__PURE__ */ s.jsx(qn, { size: 16 }),
2519
+ /* @__PURE__ */ s.jsx(Fn, { size: 16 }),
2519
2520
  /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "New version available" })
2520
2521
  ] }) : /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2521
- /* @__PURE__ */ s.jsx(Un, { size: 16, className: "animate-spin" }),
2522
+ /* @__PURE__ */ s.jsx(qn, { size: 16, className: "animate-spin" }),
2522
2523
  /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Building new version..." })
2523
2524
  ] }),
2524
2525
  /* @__PURE__ */ s.jsx("span", { className: "text-xs", children: n ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
2525
2526
  /* @__PURE__ */ s.jsx(
2526
- Wt,
2527
+ Ht,
2527
2528
  {
2528
2529
  variant: "outline",
2529
2530
  size: "sm",
@@ -2535,13 +2536,13 @@ const cc = Fi({
2535
2536
  }
2536
2537
  )
2537
2538
  ] });
2538
- }, lc = () => {
2539
- const e = xe(), t = K(e.pathname);
2539
+ }, uc = () => {
2540
+ const e = xe(), t = H(e.pathname);
2540
2541
  F(() => {
2541
2542
  const r = t.current !== e.pathname, n = e.hash !== "";
2542
2543
  r && !n && window.scrollTo(0, 0), t.current = e.pathname;
2543
2544
  }, [e.pathname, e.hash]);
2544
- }, dc = ({
2545
+ }, lc = ({
2545
2546
  icon: e
2546
2547
  }) => typeof e == "string" ? /* @__PURE__ */ s.jsx(
2547
2548
  "img",
@@ -2550,13 +2551,13 @@ const cc = Fi({
2550
2551
  className: "size-5",
2551
2552
  alt: e
2552
2553
  }
2553
- ) : e, fc = (e) => /^https?:/.test(e), hc = () => {
2554
- const { site: e } = tu(), t = e?.footer;
2554
+ ) : e, dc = (e) => /^https?:/.test(e), fc = () => {
2555
+ const { site: e } = eu(), t = e?.footer;
2555
2556
  return t ? /* @__PURE__ */ s.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ s.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2556
2557
  /* @__PURE__ */ s.jsxs(
2557
2558
  "div",
2558
2559
  {
2559
- className: N("flex flex-row gap-8", {
2560
+ className: O("flex flex-row gap-8", {
2560
2561
  "justify-center": !t.position || t.position === "center",
2561
2562
  "justify-start": t.position === "start",
2562
2563
  "justify-end": t.position === "end"
@@ -2571,7 +2572,7 @@ const cc = Fi({
2571
2572
  children: t.columns.map((r) => /* @__PURE__ */ s.jsxs(
2572
2573
  "div",
2573
2574
  {
2574
- className: N({
2575
+ className: O({
2575
2576
  "justify-self-center": !r.position || r.position === "center",
2576
2577
  "justify-self-start": r.position === "start",
2577
2578
  "justify-self-end": r.position === "end"
@@ -2580,7 +2581,7 @@ const cc = Fi({
2580
2581
  /* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: r.title }),
2581
2582
  /* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: r.links.map((n) => {
2582
2583
  const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2583
- return /* @__PURE__ */ s.jsx("li", { children: fc(n.href) ? /* @__PURE__ */ s.jsxs(
2584
+ return /* @__PURE__ */ s.jsx("li", { children: dc(n.href) ? /* @__PURE__ */ s.jsxs(
2584
2585
  "a",
2585
2586
  {
2586
2587
  href: n.href,
@@ -2589,10 +2590,10 @@ const cc = Fi({
2589
2590
  className: o,
2590
2591
  children: [
2591
2592
  /* @__PURE__ */ s.jsx("span", { children: n.label }),
2592
- /* @__PURE__ */ s.jsx(Ln, { size: 12 })
2593
+ /* @__PURE__ */ s.jsx(Un, { size: 12 })
2593
2594
  ]
2594
2595
  }
2595
- ) : /* @__PURE__ */ s.jsx(kn, { to: n.href, className: o, children: /* @__PURE__ */ s.jsx("span", { children: n.label }) }) }, n.href + n.label);
2596
+ ) : /* @__PURE__ */ s.jsx(jn, { to: n.href, className: o, children: /* @__PURE__ */ s.jsx("span", { children: n.label }) }) }, n.href + n.label);
2596
2597
  }) })
2597
2598
  ]
2598
2599
  },
@@ -2607,7 +2608,7 @@ const cc = Fi({
2607
2608
  /* @__PURE__ */ s.jsxs(
2608
2609
  "div",
2609
2610
  {
2610
- className: N(
2611
+ className: O(
2611
2612
  "flex items-center justify-between",
2612
2613
  t.columns && "border-t mt-8 pt-8"
2613
2614
  ),
@@ -2641,7 +2642,7 @@ const cc = Fi({
2641
2642
  rel: "noopener noreferrer",
2642
2643
  className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2643
2644
  children: [
2644
- /* @__PURE__ */ s.jsx(dc, { icon: r.icon }),
2645
+ /* @__PURE__ */ s.jsx(lc, { icon: r.icon }),
2645
2646
  r.label
2646
2647
  ]
2647
2648
  },
@@ -2652,33 +2653,33 @@ const cc = Fi({
2652
2653
  )
2653
2654
  ] }) }) : null;
2654
2655
  };
2655
- function Ne({
2656
+ function Ae({
2656
2657
  className: e,
2657
2658
  ...t
2658
2659
  }) {
2659
2660
  return /* @__PURE__ */ s.jsx(
2660
2661
  "div",
2661
2662
  {
2662
- className: N("animate-pulse rounded-md bg-muted", e),
2663
+ className: O("animate-pulse rounded-md bg-muted", e),
2663
2664
  ...t
2664
2665
  }
2665
2666
  );
2666
2667
  }
2667
- const Pt = {
2668
+ const zt = {
2668
2669
  info: "bg-blue-500",
2669
2670
  note: "bg-gray-500",
2670
2671
  tip: "bg-green-600",
2671
2672
  caution: "bg-orange-500",
2672
2673
  danger: "bg-rose-500"
2673
- }, pc = () => {
2674
+ }, hc = () => {
2674
2675
  const { site: e } = M(), [t, r] = G(!0);
2675
2676
  if (!e?.banner || !t)
2676
2677
  return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
2677
- const n = e.banner.color && e.banner.color in Pt ? Pt[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = n ? {} : { backgroundColor: e.banner.color };
2678
+ const n = e.banner.color && e.banner.color in zt ? zt[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = n ? {} : { backgroundColor: e.banner.color };
2678
2679
  return /* @__PURE__ */ s.jsxs(
2679
2680
  "div",
2680
2681
  {
2681
- className: N(
2682
+ className: O(
2682
2683
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center lg:h-(--banner-height)",
2683
2684
  n
2684
2685
  ),
@@ -2691,13 +2692,13 @@ const Pt = {
2691
2692
  type: "button",
2692
2693
  className: "md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
2693
2694
  onClick: () => r(!1),
2694
- children: /* @__PURE__ */ s.jsx(Qn, { size: 16 })
2695
+ children: /* @__PURE__ */ s.jsx(Ln, { size: 16 })
2695
2696
  }
2696
2697
  )
2697
2698
  ]
2698
2699
  }
2699
2700
  );
2700
- }, br = (e) => /* @__PURE__ */ s.jsxs(
2701
+ }, xr = (e) => /* @__PURE__ */ s.jsxs(
2701
2702
  "svg",
2702
2703
  {
2703
2704
  xmlns: "http://www.w3.org/2000/svg",
@@ -2724,25 +2725,25 @@ const Pt = {
2724
2725
  ]
2725
2726
  }
2726
2727
  );
2727
- br.displayName = "ZudokuLogo";
2728
- const wr = ({ className: e }) => /* @__PURE__ */ s.jsxs(
2728
+ xr.displayName = "ZudokuLogo";
2729
+ const _r = ({ className: e }) => /* @__PURE__ */ s.jsxs(
2729
2730
  "a",
2730
2731
  {
2731
2732
  href: "https://zudoku.dev",
2732
2733
  target: "_blank",
2733
2734
  rel: "noopener noreferrer",
2734
- className: N(
2735
+ className: O(
2735
2736
  "flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-xs h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
2736
2737
  e
2737
2738
  ),
2738
2739
  children: [
2739
2740
  /* @__PURE__ */ s.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
2740
- /* @__PURE__ */ s.jsx(br, { className: "w-3.5 h-3.5 dark:fill-white" }),
2741
+ /* @__PURE__ */ s.jsx(xr, { className: "w-3.5 h-3.5 dark:fill-white" }),
2741
2742
  "powered by ",
2742
2743
  "Zudoku"
2743
2744
  ] }),
2744
2745
  /* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx(
2745
- Bn,
2746
+ Qn,
2746
2747
  {
2747
2748
  size: 12,
2748
2749
  absoluteStrokeWidth: !0,
@@ -2762,7 +2763,7 @@ function ye() {
2762
2763
  return e;
2763
2764
  }, ye.apply(null, arguments);
2764
2765
  }
2765
- var pe = { exports: {} }, k = {};
2766
+ var pe = { exports: {} }, z = {};
2766
2767
  /** @license React v16.13.1
2767
2768
  * react-is.production.min.js
2768
2769
  *
@@ -2771,73 +2772,73 @@ var pe = { exports: {} }, k = {};
2771
2772
  * This source code is licensed under the MIT license found in the
2772
2773
  * LICENSE file in the root directory of this source tree.
2773
2774
  */
2774
- var Et;
2775
- function mc() {
2776
- if (Et) return k;
2777
- Et = 1;
2778
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2779
- function x(d) {
2775
+ var Pt;
2776
+ function pc() {
2777
+ if (Pt) return z;
2778
+ Pt = 1;
2779
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, x = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2780
+ function y(d) {
2780
2781
  if (typeof d == "object" && d !== null) {
2781
- var z = d.$$typeof;
2782
- switch (z) {
2782
+ var k = d.$$typeof;
2783
+ switch (k) {
2783
2784
  case t:
2784
2785
  switch (d = d.type, d) {
2785
- case h:
2786
+ case p:
2786
2787
  case f:
2787
2788
  case n:
2788
- case a:
2789
+ case i:
2789
2790
  case o:
2790
- case p:
2791
+ case h:
2791
2792
  return d;
2792
2793
  default:
2793
2794
  switch (d = d && d.$$typeof, d) {
2794
2795
  case u:
2795
- case y:
2796
+ case x:
2796
2797
  case g:
2797
2798
  case l:
2798
- case i:
2799
+ case a:
2799
2800
  return d;
2800
2801
  default:
2801
- return z;
2802
+ return k;
2802
2803
  }
2803
2804
  }
2804
2805
  case r:
2805
- return z;
2806
+ return k;
2806
2807
  }
2807
2808
  }
2808
2809
  }
2809
- function b(d) {
2810
- return x(d) === f;
2810
+ function _(d) {
2811
+ return y(d) === f;
2811
2812
  }
2812
- return k.AsyncMode = h, k.ConcurrentMode = f, k.ContextConsumer = u, k.ContextProvider = i, k.Element = t, k.ForwardRef = y, k.Fragment = n, k.Lazy = g, k.Memo = l, k.Portal = r, k.Profiler = a, k.StrictMode = o, k.Suspense = p, k.isAsyncMode = function(d) {
2813
- return b(d) || x(d) === h;
2814
- }, k.isConcurrentMode = b, k.isContextConsumer = function(d) {
2815
- return x(d) === u;
2816
- }, k.isContextProvider = function(d) {
2817
- return x(d) === i;
2818
- }, k.isElement = function(d) {
2813
+ return z.AsyncMode = p, z.ConcurrentMode = f, z.ContextConsumer = u, z.ContextProvider = a, z.Element = t, z.ForwardRef = x, z.Fragment = n, z.Lazy = g, z.Memo = l, z.Portal = r, z.Profiler = i, z.StrictMode = o, z.Suspense = h, z.isAsyncMode = function(d) {
2814
+ return _(d) || y(d) === p;
2815
+ }, z.isConcurrentMode = _, z.isContextConsumer = function(d) {
2816
+ return y(d) === u;
2817
+ }, z.isContextProvider = function(d) {
2818
+ return y(d) === a;
2819
+ }, z.isElement = function(d) {
2819
2820
  return typeof d == "object" && d !== null && d.$$typeof === t;
2820
- }, k.isForwardRef = function(d) {
2821
- return x(d) === y;
2822
- }, k.isFragment = function(d) {
2823
- return x(d) === n;
2824
- }, k.isLazy = function(d) {
2825
- return x(d) === g;
2826
- }, k.isMemo = function(d) {
2827
- return x(d) === l;
2828
- }, k.isPortal = function(d) {
2829
- return x(d) === r;
2830
- }, k.isProfiler = function(d) {
2831
- return x(d) === a;
2832
- }, k.isStrictMode = function(d) {
2833
- return x(d) === o;
2834
- }, k.isSuspense = function(d) {
2835
- return x(d) === p;
2836
- }, k.isValidElementType = function(d) {
2837
- return typeof d == "string" || typeof d == "function" || d === n || d === f || d === a || d === o || d === p || d === m || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === l || d.$$typeof === i || d.$$typeof === u || d.$$typeof === y || d.$$typeof === P || d.$$typeof === T || d.$$typeof === j || d.$$typeof === w);
2838
- }, k.typeOf = x, k;
2839
- }
2840
- var $ = {};
2821
+ }, z.isForwardRef = function(d) {
2822
+ return y(d) === x;
2823
+ }, z.isFragment = function(d) {
2824
+ return y(d) === n;
2825
+ }, z.isLazy = function(d) {
2826
+ return y(d) === g;
2827
+ }, z.isMemo = function(d) {
2828
+ return y(d) === l;
2829
+ }, z.isPortal = function(d) {
2830
+ return y(d) === r;
2831
+ }, z.isProfiler = function(d) {
2832
+ return y(d) === i;
2833
+ }, z.isStrictMode = function(d) {
2834
+ return y(d) === o;
2835
+ }, z.isSuspense = function(d) {
2836
+ return y(d) === h;
2837
+ }, z.isValidElementType = function(d) {
2838
+ return typeof d == "string" || typeof d == "function" || d === n || d === f || d === i || d === o || d === h || d === m || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === l || d.$$typeof === a || d.$$typeof === u || d.$$typeof === x || d.$$typeof === E || d.$$typeof === $ || d.$$typeof === j || d.$$typeof === w);
2839
+ }, z.typeOf = y, z;
2840
+ }
2841
+ var P = {};
2841
2842
  /** @license React v16.13.1
2842
2843
  * react-is.development.js
2843
2844
  *
@@ -2846,37 +2847,37 @@ var $ = {};
2846
2847
  * This source code is licensed under the MIT license found in the
2847
2848
  * LICENSE file in the root directory of this source tree.
2848
2849
  */
2849
- var St;
2850
- function gc() {
2851
- return St || (St = 1, process.env.NODE_ENV !== "production" && function() {
2852
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2853
- function x(v) {
2850
+ var Et;
2851
+ function mc() {
2852
+ return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
2853
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, x = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2854
+ function y(v) {
2854
2855
  return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2855
- v === n || v === f || v === a || v === o || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === l || v.$$typeof === i || v.$$typeof === u || v.$$typeof === y || v.$$typeof === P || v.$$typeof === T || v.$$typeof === j || v.$$typeof === w);
2856
+ v === n || v === f || v === i || v === o || v === h || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === l || v.$$typeof === a || v.$$typeof === u || v.$$typeof === x || v.$$typeof === E || v.$$typeof === $ || v.$$typeof === j || v.$$typeof === w);
2856
2857
  }
2857
- function b(v) {
2858
+ function _(v) {
2858
2859
  if (typeof v == "object" && v !== null) {
2859
2860
  var ke = v.$$typeof;
2860
2861
  switch (ke) {
2861
2862
  case t:
2862
2863
  var ce = v.type;
2863
2864
  switch (ce) {
2864
- case h:
2865
+ case p:
2865
2866
  case f:
2866
2867
  case n:
2867
- case a:
2868
+ case i:
2868
2869
  case o:
2869
- case p:
2870
+ case h:
2870
2871
  return ce;
2871
2872
  default:
2872
- var Ve = ce && ce.$$typeof;
2873
- switch (Ve) {
2873
+ var Ye = ce && ce.$$typeof;
2874
+ switch (Ye) {
2874
2875
  case u:
2875
- case y:
2876
+ case x:
2876
2877
  case g:
2877
2878
  case l:
2878
- case i:
2879
- return Ve;
2879
+ case a:
2880
+ return Ye;
2880
2881
  default:
2881
2882
  return ke;
2882
2883
  }
@@ -2886,58 +2887,58 @@ function gc() {
2886
2887
  }
2887
2888
  }
2888
2889
  }
2889
- var d = h, z = f, I = u, D = i, X = t, B = y, je = n, W = g, Rr = l, Dr = r, Mr = a, Fr = o, qr = p, Ke = !1;
2890
- function Ur(v) {
2891
- return Ke || (Ke = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), We(v) || b(v) === h;
2890
+ var d = p, k = f, I = u, D = a, X = t, Q = x, je = n, W = g, Ar = l, Ir = r, Rr = i, Dr = o, Mr = h, We = !1;
2891
+ function Fr(v) {
2892
+ return We || (We = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Ve(v) || _(v) === p;
2892
2893
  }
2893
- function We(v) {
2894
- return b(v) === f;
2894
+ function Ve(v) {
2895
+ return _(v) === f;
2896
+ }
2897
+ function qr(v) {
2898
+ return _(v) === u;
2899
+ }
2900
+ function Ur(v) {
2901
+ return _(v) === a;
2895
2902
  }
2896
2903
  function Lr(v) {
2897
- return b(v) === u;
2904
+ return typeof v == "object" && v !== null && v.$$typeof === t;
2898
2905
  }
2899
2906
  function Qr(v) {
2900
- return b(v) === i;
2907
+ return _(v) === x;
2901
2908
  }
2902
2909
  function Br(v) {
2903
- return typeof v == "object" && v !== null && v.$$typeof === t;
2904
- }
2905
- function Hr(v) {
2906
- return b(v) === y;
2910
+ return _(v) === n;
2907
2911
  }
2908
2912
  function Kr(v) {
2909
- return b(v) === n;
2913
+ return _(v) === g;
2914
+ }
2915
+ function Hr(v) {
2916
+ return _(v) === l;
2910
2917
  }
2911
2918
  function Wr(v) {
2912
- return b(v) === g;
2919
+ return _(v) === r;
2913
2920
  }
2914
2921
  function Vr(v) {
2915
- return b(v) === l;
2922
+ return _(v) === i;
2916
2923
  }
2917
2924
  function Yr(v) {
2918
- return b(v) === r;
2925
+ return _(v) === o;
2919
2926
  }
2920
2927
  function Gr(v) {
2921
- return b(v) === a;
2922
- }
2923
- function Jr(v) {
2924
- return b(v) === o;
2925
- }
2926
- function Xr(v) {
2927
- return b(v) === p;
2928
+ return _(v) === h;
2928
2929
  }
2929
- $.AsyncMode = d, $.ConcurrentMode = z, $.ContextConsumer = I, $.ContextProvider = D, $.Element = X, $.ForwardRef = B, $.Fragment = je, $.Lazy = W, $.Memo = Rr, $.Portal = Dr, $.Profiler = Mr, $.StrictMode = Fr, $.Suspense = qr, $.isAsyncMode = Ur, $.isConcurrentMode = We, $.isContextConsumer = Lr, $.isContextProvider = Qr, $.isElement = Br, $.isForwardRef = Hr, $.isFragment = Kr, $.isLazy = Wr, $.isMemo = Vr, $.isPortal = Yr, $.isProfiler = Gr, $.isStrictMode = Jr, $.isSuspense = Xr, $.isValidElementType = x, $.typeOf = b;
2930
- }()), $;
2930
+ P.AsyncMode = d, P.ConcurrentMode = k, P.ContextConsumer = I, P.ContextProvider = D, P.Element = X, P.ForwardRef = Q, P.Fragment = je, P.Lazy = W, P.Memo = Ar, P.Portal = Ir, P.Profiler = Rr, P.StrictMode = Dr, P.Suspense = Mr, P.isAsyncMode = Fr, P.isConcurrentMode = Ve, P.isContextConsumer = qr, P.isContextProvider = Ur, P.isElement = Lr, P.isForwardRef = Qr, P.isFragment = Br, P.isLazy = Kr, P.isMemo = Hr, P.isPortal = Wr, P.isProfiler = Vr, P.isStrictMode = Yr, P.isSuspense = Gr, P.isValidElementType = y, P.typeOf = _;
2931
+ }()), P;
2931
2932
  }
2932
- var Zt;
2933
- function vc() {
2934
- return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? pe.exports = mc() : pe.exports = gc()), pe.exports;
2933
+ var St;
2934
+ function gc() {
2935
+ return St || (St = 1, process.env.NODE_ENV === "production" ? pe.exports = pc() : pe.exports = mc()), pe.exports;
2935
2936
  }
2936
- var Pe, Tt;
2937
- function yc() {
2938
- if (Tt) return Pe;
2939
- Tt = 1;
2940
- var e = vc(), t = {
2937
+ var Pe, Zt;
2938
+ function vc() {
2939
+ if (Zt) return Pe;
2940
+ Zt = 1;
2941
+ var e = gc(), t = {
2941
2942
  childContextTypes: !0,
2942
2943
  contextType: !0,
2943
2944
  contextTypes: !0,
@@ -2970,26 +2971,26 @@ function yc() {
2970
2971
  displayName: !0,
2971
2972
  propTypes: !0,
2972
2973
  type: !0
2973
- }, a = {};
2974
- a[e.ForwardRef] = n, a[e.Memo] = o;
2975
- function i(g) {
2976
- return e.isMemo(g) ? o : a[g.$$typeof] || t;
2974
+ }, i = {};
2975
+ i[e.ForwardRef] = n, i[e.Memo] = o;
2976
+ function a(g) {
2977
+ return e.isMemo(g) ? o : i[g.$$typeof] || t;
2977
2978
  }
2978
- var u = Object.defineProperty, h = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, y = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, m = Object.prototype;
2979
- function l(g, w, P) {
2979
+ var u = Object.defineProperty, p = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, x = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, m = Object.prototype;
2980
+ function l(g, w, E) {
2980
2981
  if (typeof w != "string") {
2981
2982
  if (m) {
2982
- var T = p(w);
2983
- T && T !== m && l(g, T, P);
2983
+ var $ = h(w);
2984
+ $ && $ !== m && l(g, $, E);
2984
2985
  }
2985
- var j = h(w);
2986
+ var j = p(w);
2986
2987
  f && (j = j.concat(f(w)));
2987
- for (var x = i(g), b = i(w), d = 0; d < j.length; ++d) {
2988
- var z = j[d];
2989
- if (!r[z] && !(P && P[z]) && !(b && b[z]) && !(x && x[z])) {
2990
- var I = y(w, z);
2988
+ for (var y = a(g), _ = a(w), d = 0; d < j.length; ++d) {
2989
+ var k = j[d];
2990
+ if (!r[k] && !(E && E[k]) && !(_ && _[k]) && !(y && y[k])) {
2991
+ var I = x(w, k);
2991
2992
  try {
2992
- u(g, z, I);
2993
+ u(g, k, I);
2993
2994
  } catch {
2994
2995
  }
2995
2996
  }
@@ -2999,10 +3000,10 @@ function yc() {
2999
3000
  }
3000
3001
  return Pe = l, Pe;
3001
3002
  }
3002
- yc();
3003
- var jr = function(t, r, n) {
3003
+ vc();
3004
+ var br = function(t, r, n) {
3004
3005
  return t = t <= n ? t : n, t = t >= r ? t : r, t;
3005
- }, xc = function() {
3006
+ }, yc = function() {
3006
3007
  var t = !1, r = [], n = function() {
3007
3008
  t = !0;
3008
3009
  var u = r.shift();
@@ -3011,20 +3012,20 @@ var jr = function(t, r, n) {
3011
3012
  t = !1;
3012
3013
  }, o = function() {
3013
3014
  t = !1, r = [];
3014
- }, a = function(u) {
3015
+ }, i = function(u) {
3015
3016
  r.push(u), !t && r.length === 1 && n();
3016
3017
  };
3017
3018
  return {
3018
3019
  clear: o,
3019
- enqueue: a
3020
+ enqueue: i
3020
3021
  };
3021
- }, _c = function() {
3022
+ }, xc = function() {
3022
3023
  var t, r = function() {
3023
3024
  t && window.cancelAnimationFrame(t);
3024
- }, n = function(a, i) {
3025
- var u, h, f = function(p) {
3026
- if (h = h || p, u = p - h, u > i) {
3027
- a();
3025
+ }, n = function(i, a) {
3026
+ var u, p, f = function(h) {
3027
+ if (p = p || h, u = h - p, u > a) {
3028
+ i();
3028
3029
  return;
3029
3030
  }
3030
3031
  t = window.requestAnimationFrame(f);
@@ -3035,146 +3036,146 @@ var jr = function(t, r, n) {
3035
3036
  cancel: r,
3036
3037
  schedule: n
3037
3038
  };
3038
- }, bc = function(t) {
3039
+ }, _c = function(t) {
3039
3040
  var r = 0;
3040
- return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3), jr(t + r, 0, 0.994);
3041
+ return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3), br(t + r, 0, 0.994);
3041
3042
  }, Ct = function(t) {
3042
3043
  F(t, []);
3043
- }, wc = function(t) {
3044
+ }, bc = function(t) {
3044
3045
  return ++t % 1e6;
3045
- }, jc = function() {
3046
+ }, wc = function() {
3046
3047
  var t = G(0), r = t[1];
3047
- return H(function() {
3048
- return r(wc);
3048
+ return B(function() {
3049
+ return r(bc);
3049
3050
  }, []);
3050
- }, kc = function(t) {
3051
+ }, jc = function(t) {
3051
3052
  t === void 0 && (t = {});
3052
- var r = jc(), n = K(ye({}, t)), o = H(function() {
3053
+ var r = wc(), n = H(ye({}, t)), o = B(function() {
3053
3054
  return n.current;
3054
- }, []), a = H(function(i) {
3055
- i && (Object.assign(n.current, i), r());
3055
+ }, []), i = B(function(a) {
3056
+ a && (Object.assign(n.current, a), r());
3056
3057
  }, []);
3057
- return [o, a];
3058
- }, $c = function() {
3059
- var t = K(!0);
3058
+ return [o, i];
3059
+ }, kc = function() {
3060
+ var t = H(!0);
3060
3061
  return t.current ? (t.current = !1, !0) : t.current;
3061
- }, Ot = function(t, r) {
3062
- var n = $c();
3062
+ }, Tt = function(t, r) {
3063
+ var n = kc();
3063
3064
  F(function() {
3064
3065
  if (!n)
3065
3066
  return t();
3066
3067
  }, r);
3067
- }, kr = function() {
3068
+ }, wr = function() {
3068
3069
  }, Nt = {
3069
3070
  isFinished: !0,
3070
3071
  progress: 0,
3071
- sideEffect: kr
3072
- }, zc = function(t) {
3073
- var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, a = r.incrementDuration, i = a === void 0 ? 800 : a, u = r.isAnimating, h = u === void 0 ? !1 : u, f = r.minimum, y = f === void 0 ? 0.08 : f, p = kc(Nt), m = p[0], l = p[1], g = K(null), w = K(null);
3072
+ sideEffect: wr
3073
+ }, $c = function(t) {
3074
+ var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, i = r.incrementDuration, a = i === void 0 ? 800 : i, u = r.isAnimating, p = u === void 0 ? !1 : u, f = r.minimum, x = f === void 0 ? 0.08 : f, h = jc(Nt), m = h[0], l = h[1], g = H(null), w = H(null);
3074
3075
  Ct(function() {
3075
- g.current = xc(), w.current = _c();
3076
+ g.current = yc(), w.current = xc();
3076
3077
  });
3077
- var P = H(function() {
3078
- var z, I;
3079
- (z = w.current) == null || z.cancel(), (I = g.current) == null || I.clear();
3080
- }, []), T = H(function(z) {
3078
+ var E = B(function() {
3079
+ var k, I;
3080
+ (k = w.current) == null || k.cancel(), (I = g.current) == null || I.clear();
3081
+ }, []), $ = B(function(k) {
3081
3082
  var I;
3082
- if (z = jr(z, y, 1), z === 1) {
3083
+ if (k = br(k, x, 1), k === 1) {
3083
3084
  var D, X;
3084
- P(), (D = g.current) == null || D.enqueue(function(B) {
3085
+ E(), (D = g.current) == null || D.enqueue(function(Q) {
3085
3086
  l({
3086
- progress: z,
3087
+ progress: k,
3087
3088
  sideEffect: function() {
3088
3089
  var W;
3089
- return (W = w.current) == null ? void 0 : W.schedule(B, o);
3090
+ return (W = w.current) == null ? void 0 : W.schedule(Q, o);
3090
3091
  }
3091
3092
  });
3092
3093
  }), (X = g.current) == null || X.enqueue(function() {
3093
3094
  l({
3094
3095
  isFinished: !0,
3095
- sideEffect: P
3096
+ sideEffect: E
3096
3097
  });
3097
3098
  });
3098
3099
  return;
3099
3100
  }
3100
- (I = g.current) == null || I.enqueue(function(B) {
3101
+ (I = g.current) == null || I.enqueue(function(Q) {
3101
3102
  l({
3102
3103
  isFinished: !1,
3103
- progress: z,
3104
+ progress: k,
3104
3105
  sideEffect: function() {
3105
3106
  var W;
3106
- return (W = w.current) == null ? void 0 : W.schedule(B, o);
3107
+ return (W = w.current) == null ? void 0 : W.schedule(Q, o);
3107
3108
  }
3108
3109
  });
3109
3110
  });
3110
- }, [o, P, y, g, l, w]), j = H(function() {
3111
- T(bc(m().progress));
3112
- }, [m, T]), x = H(function() {
3113
- var z = function() {
3111
+ }, [o, E, x, g, l, w]), j = B(function() {
3112
+ $(_c(m().progress));
3113
+ }, [m, $]), y = B(function() {
3114
+ var k = function() {
3114
3115
  var D;
3115
3116
  j(), (D = g.current) == null || D.enqueue(function(X) {
3116
- var B;
3117
- (B = w.current) == null || B.schedule(function() {
3118
- z(), X();
3119
- }, i);
3117
+ var Q;
3118
+ (Q = w.current) == null || Q.schedule(function() {
3119
+ k(), X();
3120
+ }, a);
3120
3121
  });
3121
3122
  };
3122
- z();
3123
- }, [i, g, w, j]), b = K(kr), d = m().sideEffect;
3123
+ k();
3124
+ }, [a, g, w, j]), _ = H(wr), d = m().sideEffect;
3124
3125
  return F(function() {
3125
- b.current = j;
3126
+ _.current = j;
3126
3127
  }), Ct(function() {
3127
- return h && x(), P;
3128
- }), Ot(function() {
3128
+ return p && y(), E;
3129
+ }), Tt(function() {
3129
3130
  m().sideEffect();
3130
- }, [m, d]), Ot(function() {
3131
- h ? l(ye({}, Nt, {
3132
- sideEffect: x
3133
- })) : T(1);
3134
- }, [h, T, l, x]), {
3131
+ }, [m, d]), Tt(function() {
3132
+ p ? l(ye({}, Nt, {
3133
+ sideEffect: y
3134
+ })) : $(1);
3135
+ }, [p, $, l, y]), {
3135
3136
  animationDuration: o,
3136
3137
  isFinished: m().isFinished,
3137
3138
  progress: m().progress
3138
3139
  };
3139
3140
  };
3140
- const $r = () => {
3141
- const t = Re().state === "loading", [r, n] = G(!1);
3141
+ const jr = () => {
3142
+ const t = De().state === "loading", [r, n] = G(!1);
3142
3143
  F(() => {
3143
- const i = setTimeout(() => n(t), 200);
3144
- return () => clearTimeout(i);
3144
+ const a = setTimeout(() => n(t), 200);
3145
+ return () => clearTimeout(a);
3145
3146
  }, [t]);
3146
- const { isFinished: o, progress: a } = zc({ isAnimating: r });
3147
+ const { isFinished: o, progress: i } = $c({ isAnimating: r });
3147
3148
  return /* @__PURE__ */ s.jsx(
3148
3149
  "div",
3149
3150
  {
3150
3151
  className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
3151
3152
  style: {
3152
3153
  opacity: o ? 0 : 1,
3153
- width: o ? 0 : `${a * 100}%`
3154
+ width: o ? 0 : `${i * 100}%`
3154
3155
  }
3155
3156
  }
3156
3157
  );
3157
3158
  };
3158
- function Pc() {
3159
+ function zc() {
3159
3160
  const e = navigator.userAgent.toLowerCase();
3160
3161
  if (e.includes("win")) return "Windows";
3161
3162
  if (e.includes("mac")) return "macOS";
3162
3163
  if (e.includes("linux")) return "Linux";
3163
3164
  }
3164
- const zr = ({ className: e }) => {
3165
- const t = M(), [r, n] = G(!1), o = H(() => n(!1), []);
3165
+ const kr = ({ className: e }) => {
3166
+ const t = M(), [r, n] = G(!1), o = B(() => n(!1), []);
3166
3167
  F(() => {
3167
3168
  if (r)
3168
3169
  return;
3169
- function i(u) {
3170
+ function a(u) {
3170
3171
  u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
3171
3172
  }
3172
- return window.addEventListener("keydown", i), () => {
3173
- window.removeEventListener("keydown", i);
3173
+ return window.addEventListener("keydown", a), () => {
3174
+ window.removeEventListener("keydown", a);
3174
3175
  };
3175
3176
  }, [r, n]);
3176
- const a = t.plugins.find(Gn);
3177
- return a ? /* @__PURE__ */ s.jsxs("div", { className: e, children: [
3177
+ const i = t.plugins.find(Yn);
3178
+ return i ? /* @__PURE__ */ s.jsxs("div", { className: e, children: [
3178
3179
  /* @__PURE__ */ s.jsxs(
3179
3180
  "button",
3180
3181
  {
@@ -3183,26 +3184,26 @@ const zr = ({ className: e }) => {
3183
3184
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
3184
3185
  children: [
3185
3186
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 grow", children: [
3186
- /* @__PURE__ */ s.jsx(Hn, { size: 14 }),
3187
+ /* @__PURE__ */ s.jsx(Bn, { size: 14 }),
3187
3188
  "Search"
3188
3189
  ] }),
3189
- /* @__PURE__ */ s.jsx(te, { children: /* @__PURE__ */ s.jsx(Ec, {}) })
3190
+ /* @__PURE__ */ s.jsx(te, { children: /* @__PURE__ */ s.jsx(Pc, {}) })
3190
3191
  ]
3191
3192
  }
3192
3193
  ),
3193
- /* @__PURE__ */ s.jsx(Fe, { fallback: null, children: a.renderSearch({
3194
+ /* @__PURE__ */ s.jsx(qe, { fallback: null, children: i.renderSearch({
3194
3195
  isOpen: r,
3195
3196
  onClose: o
3196
3197
  }) })
3197
3198
  ] }) : null;
3198
- }, Ec = () => {
3199
- const e = Pc();
3199
+ }, Pc = () => {
3200
+ const e = zc();
3200
3201
  return /* @__PURE__ */ s.jsxs("kbd", { className: "absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
3201
3202
  e === "macOS" ? "⌘" : "Ctrl",
3202
3203
  "+K"
3203
3204
  ] });
3204
- }, Pr = () => {
3205
- const { resolvedTheme: e, setTheme: t } = Dt();
3205
+ }, $r = () => {
3206
+ const { resolvedTheme: e, setTheme: t } = Rt();
3206
3207
  return /* @__PURE__ */ s.jsx(te, { fallback: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
3207
3208
  "button",
3208
3209
  {
@@ -3214,7 +3215,7 @@ const zr = ({ className: e }) => {
3214
3215
  /* @__PURE__ */ s.jsx(
3215
3216
  "div",
3216
3217
  {
3217
- className: N(
3218
+ className: O(
3218
3219
  "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
3219
3220
  e === "light" && "border-border bg-muted",
3220
3221
  e === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
@@ -3225,55 +3226,55 @@ const zr = ({ className: e }) => {
3225
3226
  /* @__PURE__ */ s.jsx(
3226
3227
  "div",
3227
3228
  {
3228
- className: N(
3229
+ className: O(
3229
3230
  "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
3230
3231
  e === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
3231
3232
  e === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
3232
3233
  ),
3233
- children: /* @__PURE__ */ s.jsx(Wn, { size: 16 })
3234
+ children: /* @__PURE__ */ s.jsx(Hn, { size: 16 })
3234
3235
  }
3235
3236
  )
3236
3237
  ]
3237
3238
  }
3238
3239
  ) });
3239
- }, Sc = () => {
3240
- const { navigation: e } = M(), { isAuthenticated: t } = oe(), r = e.filter(Qt(t));
3241
- return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
3242
- /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Sr, { ...n }) }, n.label + n.type)) }) }),
3240
+ }, Ec = () => {
3241
+ const { navigation: e } = M(), { isAuthenticated: t } = oe(), r = e.filter(Lt(t));
3242
+ return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(qe, { children: /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
3243
+ /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Pr, { ...n }) }, n.label + n.type)) }) }),
3243
3244
  /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" })
3244
3245
  ] }) });
3245
- }, Er = (e) => {
3246
+ }, zr = (e) => {
3246
3247
  switch (e.type) {
3247
3248
  case "doc":
3248
3249
  return ee(e.path);
3249
3250
  case "link":
3250
3251
  return e.to;
3251
3252
  case "category":
3252
- return e.link?.path ? ee(e.link.path) : gn(e, (t) => {
3253
+ return e.link?.path ? ee(e.link.path) : mn(e, (t) => {
3253
3254
  if (t.type !== "category")
3254
- return Er(t);
3255
+ return zr(t);
3255
3256
  }) ?? "";
3256
3257
  case "custom-page":
3257
3258
  return e.path;
3258
3259
  }
3259
- }, Ae = ({
3260
+ }, Ie = ({
3260
3261
  isActive: e,
3261
3262
  children: t,
3262
3263
  ...r
3263
3264
  }) => /* @__PURE__ */ s.jsx(
3264
- an,
3265
+ on,
3265
3266
  {
3266
3267
  viewTransition: !0,
3267
3268
  className: ({ isActive: n, isPending: o }) => {
3268
- const a = n || e;
3269
- return go(
3269
+ const i = n || e;
3270
+ return mo(
3270
3271
  "flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
3271
- a || o ? [
3272
+ i || o ? [
3272
3273
  "text-foreground",
3273
3274
  // underline with view transition animation
3274
3275
  "after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0",
3275
3276
  "after:h-0.5 after:bg-primary",
3276
- a && "after:[view-transition-name:top-nav-underline]",
3277
+ i && "after:[view-transition-name:top-nav-underline]",
3277
3278
  o && "after:bg-primary/25"
3278
3279
  ] : "text-foreground/75 hover:text-foreground"
3279
3280
  );
@@ -3281,111 +3282,111 @@ const zr = ({ className: e }) => {
3281
3282
  ...r,
3282
3283
  children: t
3283
3284
  }
3284
- ), Sr = (e) => {
3285
- const t = Bt(), r = $n(t.topNavItem, e), n = Er(e);
3285
+ ), Pr = (e) => {
3286
+ const t = Qt(), r = kn(t.topNavItem, e), n = zr(e);
3286
3287
  return (
3287
3288
  // We don't use isActive here because it has to be inside the navigation,
3288
3289
  // the top nav id doesn't necessarily start with the navigation id
3289
- /* @__PURE__ */ s.jsxs(Ae, { to: n, isActive: r, children: [
3290
+ /* @__PURE__ */ s.jsxs(Ie, { to: n, isActive: r, children: [
3290
3291
  e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3291
3292
  e.label
3292
3293
  ] })
3293
3294
  );
3294
- }, Zc = () => {
3295
- const { navigation: e, options: t, getProfileMenuItems: r } = M(), { isAuthenticated: n, profile: o, isAuthEnabled: a, login: i } = oe(), [u, h] = G(!1), f = r(), y = e.filter(Qt(n));
3295
+ }, Sc = () => {
3296
+ const { navigation: e, options: t, getProfileMenuItems: r } = M(), { isAuthenticated: n, profile: o, isAuthEnabled: i, login: a } = oe(), [u, p] = G(!1), f = r(), x = e.filter(Lt(n));
3296
3297
  return /* @__PURE__ */ s.jsxs(
3297
- po,
3298
+ ho,
3298
3299
  {
3299
3300
  direction: t.site?.dir === "rtl" ? "left" : "right",
3300
3301
  open: u,
3301
- onOpenChange: (p) => h(p),
3302
+ onOpenChange: (h) => p(h),
3302
3303
  children: [
3303
3304
  /* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
3304
- /* @__PURE__ */ s.jsx(mo, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Vn, { size: 22 }) }),
3305
- /* @__PURE__ */ s.jsx($r, {})
3305
+ /* @__PURE__ */ s.jsx(po, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Wn, { size: 22 }) }),
3306
+ /* @__PURE__ */ s.jsx(jr, {})
3306
3307
  ] }),
3307
3308
  /* @__PURE__ */ s.jsx(
3308
- er,
3309
+ Xt,
3309
3310
  {
3310
3311
  className: "lg:hidden h-[100dvh] end-0 start-auto w-[320px] rounded-none",
3311
3312
  "aria-describedby": void 0,
3312
3313
  children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
3313
3314
  /* @__PURE__ */ s.jsxs("div", { children: [
3314
- /* @__PURE__ */ s.jsx(Xt, { children: /* @__PURE__ */ s.jsx(tr, { children: "Navigation" }) }),
3315
- /* @__PURE__ */ s.jsx(zr, { className: "flex p-4" }),
3315
+ /* @__PURE__ */ s.jsx(Jt, { children: /* @__PURE__ */ s.jsx(er, { children: "Navigation" }) }),
3316
+ /* @__PURE__ */ s.jsx(kr, { className: "flex p-4" }),
3316
3317
  /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
3317
3318
  /* @__PURE__ */ s.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" }) }),
3318
- a && /* @__PURE__ */ s.jsx(
3319
+ i && /* @__PURE__ */ s.jsx(
3319
3320
  te,
3320
3321
  {
3321
- fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
3322
- children: n ? Object.values(r()).length > 0 && /* @__PURE__ */ s.jsx(Rn, { children: /* @__PURE__ */ s.jsxs("li", { children: [
3322
+ fallback: /* @__PURE__ */ s.jsx(Ae, { className: "rounded-sm h-5 w-24 mr-4" }),
3323
+ children: n ? Object.values(r()).length > 0 && /* @__PURE__ */ s.jsx(In, { children: /* @__PURE__ */ s.jsxs("li", { children: [
3323
3324
  o?.name ? `${o.name}` : "My Account",
3324
3325
  o?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: o.email })
3325
3326
  ] }) }) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
3326
- Ae,
3327
+ Ie,
3327
3328
  {
3328
3329
  to: "/signin",
3329
- onClick: () => h(!1),
3330
+ onClick: () => p(!1),
3330
3331
  children: "Login"
3331
3332
  }
3332
3333
  ) })
3333
3334
  }
3334
3335
  ),
3335
- y.map((p) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => h(!1), children: /* @__PURE__ */ s.jsx(Sr, { ...p }) }) }, p.label)),
3336
- a && n && f.length > 0 && /* @__PURE__ */ s.jsx(
3336
+ x.map((h) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => p(!1), children: /* @__PURE__ */ s.jsx(Pr, { ...h }) }) }, h.label)),
3337
+ i && n && f.length > 0 && /* @__PURE__ */ s.jsx(
3337
3338
  te,
3338
3339
  {
3339
- fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
3340
- children: f.map((p) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
3341
- Ae,
3340
+ fallback: /* @__PURE__ */ s.jsx(Ae, { className: "rounded-sm h-5 w-24 mr-4" }),
3341
+ children: f.map((h) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
3342
+ Ie,
3342
3343
  {
3343
- to: p.path ?? "",
3344
- onClick: () => h(!1),
3345
- children: p.label
3344
+ to: h.path ?? "",
3345
+ onClick: () => p(!1),
3346
+ children: h.label
3346
3347
  }
3347
- ) }, p.label))
3348
+ ) }, h.label))
3348
3349
  }
3349
3350
  ),
3350
- /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Pr, {}) })
3351
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx($r, {}) })
3351
3352
  ] })
3352
3353
  ] }),
3353
- t.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, { className: "grow-0 justify-center gap-1" })
3354
+ t.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(_r, { className: "grow-0 justify-center gap-1" })
3354
3355
  ] })
3355
3356
  }
3356
3357
  )
3357
3358
  ]
3358
3359
  }
3359
3360
  );
3360
- }, ge = ({ item: e }) => e.children ? /* @__PURE__ */ s.jsxs(co, { children: [
3361
- /* @__PURE__ */ s.jsx(uo, { children: e.label }),
3362
- /* @__PURE__ */ s.jsx(lo, { children: /* @__PURE__ */ s.jsx(fo, { children: e.children.map((t, r) => (
3361
+ }, ge = ({ item: e }) => e.children ? /* @__PURE__ */ s.jsxs(ao, { children: [
3362
+ /* @__PURE__ */ s.jsx(co, { children: e.label }),
3363
+ /* @__PURE__ */ s.jsx(uo, { children: /* @__PURE__ */ s.jsx(lo, { children: e.children.map((t, r) => (
3363
3364
  // eslint-disable-next-line react/no-array-index-key
3364
3365
  /* @__PURE__ */ s.jsx(ge, { item: t }, r)
3365
3366
  )) }) })
3366
- ] }, e.label) : /* @__PURE__ */ s.jsx(De, { to: e.path ?? "", children: /* @__PURE__ */ s.jsxs(ho, { className: "flex gap-2", children: [
3367
+ ] }, e.label) : /* @__PURE__ */ s.jsx(Me, { to: e.path ?? "", children: /* @__PURE__ */ s.jsxs(fo, { className: "flex gap-2", children: [
3367
3368
  e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
3368
3369
  e.label
3369
- ] }, e.label) }), Zr = Yt(function() {
3370
- const t = oe(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = oe(), a = M(), { site: i, plugins: u, options: h } = a, f = u.filter((l) => Jt(l)).flatMap((l) => l.getProfileMenuItems(a)).sort((l) => l.weight ?? 0), y = i?.logo ? /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : ee(h.basePath, i.logo.src.light) : void 0, p = i?.logo ? /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : ee(h.basePath, i.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
3370
+ ] }, e.label) }), Er = Vt(function() {
3371
+ const t = oe(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = oe(), i = M(), { site: a, plugins: u, options: p } = i, f = u.filter((l) => Gt(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0), x = a?.logo ? /https?:\/\//.test(a.logo.src.light) ? a.logo.src.light : ee(p.basePath, a.logo.src.light) : void 0, h = a?.logo ? /https?:\/\//.test(a.logo.src.dark) ? a.logo.src.dark : ee(p.basePath, a.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
3371
3372
  return /* @__PURE__ */ s.jsxs(
3372
3373
  "header",
3373
3374
  {
3374
3375
  className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full",
3375
3376
  "data-pagefind-ignore": "all",
3376
3377
  children: [
3377
- /* @__PURE__ */ s.jsx(pc, {}),
3378
- /* @__PURE__ */ s.jsxs("div", { className: N(m, "relative"), children: [
3379
- /* @__PURE__ */ s.jsx($r, {}),
3378
+ /* @__PURE__ */ s.jsx(hc, {}),
3379
+ /* @__PURE__ */ s.jsxs("div", { className: O(m, "relative"), children: [
3380
+ /* @__PURE__ */ s.jsx(jr, {}),
3380
3381
  /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
3381
- /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(De, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
3382
- i?.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3382
+ /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(Me, { to: a?.logo?.href ?? "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
3383
+ a?.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3383
3384
  /* @__PURE__ */ s.jsx(
3384
3385
  "img",
3385
3386
  {
3386
- src: y,
3387
- alt: i.logo.alt ?? i.title,
3388
- style: { width: i.logo.width },
3387
+ src: x,
3388
+ alt: a.logo.alt ?? a.title,
3389
+ style: { width: a.logo.width },
3389
3390
  className: "max-h-(--top-header-height) dark:hidden",
3390
3391
  loading: "lazy"
3391
3392
  }
@@ -3393,28 +3394,28 @@ const zr = ({ className: e }) => {
3393
3394
  /* @__PURE__ */ s.jsx(
3394
3395
  "img",
3395
3396
  {
3396
- src: p,
3397
- alt: i.logo.alt ?? i.title,
3398
- style: { width: i.logo.width },
3397
+ src: h,
3398
+ alt: a.logo.alt ?? a.title,
3399
+ style: { width: a.logo.width },
3399
3400
  className: "max-h-(--top-header-height) hidden dark:block",
3400
3401
  loading: "lazy"
3401
3402
  }
3402
3403
  )
3403
3404
  ] }),
3404
- /* @__PURE__ */ s.jsx("span", { className: "font-semibold text-2xl", children: i?.title })
3405
+ /* @__PURE__ */ s.jsx("span", { className: "font-semibold text-2xl", children: a?.title })
3405
3406
  ] }) }) }),
3406
- /* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(zr, { className: "pointer-events-auto" }) }),
3407
+ /* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(kr, { className: "pointer-events-auto" }) }),
3407
3408
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
3408
- /* @__PURE__ */ s.jsx(Zc, {}),
3409
+ /* @__PURE__ */ s.jsx(Sc, {}),
3409
3410
  /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3410
3411
  /* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-start" }),
3411
3412
  o && /* @__PURE__ */ s.jsx(
3412
3413
  te,
3413
3414
  {
3414
- fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
3415
- children: r ? Object.values(f).length > 0 && /* @__PURE__ */ s.jsxs(oo, { modal: !1, children: [
3416
- /* @__PURE__ */ s.jsx(so, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n?.name ?? "My Account" }) }),
3417
- /* @__PURE__ */ s.jsxs(ao, { className: "w-56", children: [
3415
+ fallback: /* @__PURE__ */ s.jsx(Ae, { className: "rounded-sm h-5 w-24 mr-4" }),
3416
+ children: r ? Object.values(f).length > 0 && /* @__PURE__ */ s.jsxs(no, { modal: !1, children: [
3417
+ /* @__PURE__ */ s.jsx(oo, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n?.name ?? "My Account" }) }),
3418
+ /* @__PURE__ */ s.jsxs(so, { className: "w-56", children: [
3418
3419
  /* @__PURE__ */ s.jsxs(io, { children: [
3419
3420
  n?.name ? `${n.name}` : "My Account",
3420
3421
  n?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
@@ -3434,20 +3435,20 @@ const zr = ({ className: e }) => {
3434
3435
  }
3435
3436
  ),
3436
3437
  /* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-end" }),
3437
- /* @__PURE__ */ s.jsx(Pr, {})
3438
+ /* @__PURE__ */ s.jsx($r, {})
3438
3439
  ] })
3439
3440
  ] })
3440
3441
  ] })
3441
3442
  ] }),
3442
- /* @__PURE__ */ s.jsx("div", { className: N("hidden lg:block", m), children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
3443
+ /* @__PURE__ */ s.jsx("div", { className: O("hidden lg:block", m), children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
3443
3444
  /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-before" }),
3444
- /* @__PURE__ */ s.jsx(Sc, {}),
3445
+ /* @__PURE__ */ s.jsx(Ec, {}),
3445
3446
  /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-after" })
3446
3447
  ] }) })
3447
3448
  ]
3448
3449
  }
3449
3450
  );
3450
- }), Tr = ({
3451
+ }), Sr = ({
3451
3452
  shouldScaleBackground: e = !0,
3452
3453
  ...t
3453
3454
  }) => /* @__PURE__ */ s.jsx(
@@ -3457,24 +3458,24 @@ const zr = ({ className: e }) => {
3457
3458
  ...t
3458
3459
  }
3459
3460
  );
3460
- Tr.displayName = "Drawer";
3461
- const Tc = q.Trigger, Cc = q.Portal, Cr = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3461
+ Sr.displayName = "Drawer";
3462
+ const Zc = q.Trigger, Cc = q.Portal, Zr = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3462
3463
  q.Overlay,
3463
3464
  {
3464
3465
  ref: r,
3465
- className: N("fixed inset-0 z-50 bg-black/80", e),
3466
+ className: O("fixed inset-0 z-50 bg-black/80", e),
3466
3467
  ...t
3467
3468
  }
3468
3469
  ));
3469
- Cr.displayName = q.Overlay.displayName;
3470
- const Oc = Q.forwardRef(
3470
+ Zr.displayName = q.Overlay.displayName;
3471
+ const Tc = K.forwardRef(
3471
3472
  ({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */ s.jsxs(Cc, { children: [
3472
- /* @__PURE__ */ s.jsx(Cr, {}),
3473
+ /* @__PURE__ */ s.jsx(Zr, {}),
3473
3474
  /* @__PURE__ */ s.jsxs(
3474
3475
  q.Content,
3475
3476
  {
3476
3477
  ref: o,
3477
- className: N(
3478
+ className: O(
3478
3479
  "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
3479
3480
  e
3480
3481
  ),
@@ -3487,12 +3488,12 @@ const Oc = Q.forwardRef(
3487
3488
  )
3488
3489
  ] })
3489
3490
  );
3490
- Oc.displayName = "DrawerContent";
3491
- const Nc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3491
+ Tc.displayName = "DrawerContent";
3492
+ const Nc = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3492
3493
  q.Title,
3493
3494
  {
3494
3495
  ref: r,
3495
- className: N(
3496
+ className: O(
3496
3497
  "text-lg font-semibold leading-none tracking-tight",
3497
3498
  e
3498
3499
  ),
@@ -3500,23 +3501,23 @@ const Nc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3500
3501
  }
3501
3502
  ));
3502
3503
  Nc.displayName = q.Title.displayName;
3503
- const Ac = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3504
+ const Oc = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3504
3505
  q.Description,
3505
3506
  {
3506
3507
  ref: r,
3507
- className: N("text-sm text-muted-foreground", e),
3508
+ className: O("text-sm text-muted-foreground", e),
3508
3509
  ...t
3509
3510
  }
3510
3511
  ));
3511
- Ac.displayName = q.Description.displayName;
3512
- const Or = ({
3512
+ Oc.displayName = q.Description.displayName;
3513
+ const Cr = ({
3513
3514
  children: e,
3514
3515
  className: t
3515
3516
  }) => {
3516
- const { options: r } = M(), n = K(null);
3517
+ const { options: r } = M(), n = H(null);
3517
3518
  return F(() => {
3518
3519
  const o = n.current?.querySelector('[aria-current="page"]');
3519
- zn(o ?? null);
3520
+ $n(o ?? null);
3520
3521
  }, []), /* @__PURE__ */ s.jsxs(
3521
3522
  "div",
3522
3523
  {
@@ -3527,7 +3528,7 @@ const Or = ({
3527
3528
  "nav",
3528
3529
  {
3529
3530
  ref: n,
3530
- className: N(
3531
+ className: O(
3531
3532
  "hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
3532
3533
  "-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
3533
3534
  // Revert the padding/margin on the first child
@@ -3540,20 +3541,20 @@ const Or = ({
3540
3541
  children: e
3541
3542
  }
3542
3543
  ),
3543
- /* @__PURE__ */ s.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: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, {}) })
3544
+ /* @__PURE__ */ s.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: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(_r, {}) })
3544
3545
  ]
3545
3546
  }
3546
3547
  );
3547
3548
  };
3548
- Or.displayName = "NavigationWrapper";
3549
- const Ic = ({
3549
+ Cr.displayName = "NavigationWrapper";
3550
+ const Ac = ({
3550
3551
  onRequestClose: e,
3551
3552
  navigation: t
3552
3553
  }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3553
- /* @__PURE__ */ s.jsxs(Or, { children: [
3554
+ /* @__PURE__ */ s.jsxs(Cr, { children: [
3554
3555
  /* @__PURE__ */ s.jsx(A.Target, { name: "navigation-before" }),
3555
3556
  t.map((r) => /* @__PURE__ */ s.jsx(
3556
- rt,
3557
+ nt,
3557
3558
  {
3558
3559
  item: r
3559
3560
  },
@@ -3562,14 +3563,14 @@ const Ic = ({
3562
3563
  /* @__PURE__ */ s.jsx(A.Target, { name: "navigation-after" })
3563
3564
  ] }),
3564
3565
  /* @__PURE__ */ s.jsx(
3565
- er,
3566
+ Xt,
3566
3567
  {
3567
3568
  className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
3568
3569
  "aria-describedby": void 0,
3569
3570
  children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
3570
- /* @__PURE__ */ s.jsx(Xt, { children: /* @__PURE__ */ s.jsx(tr, { children: "Navigation" }) }),
3571
+ /* @__PURE__ */ s.jsx(Jt, { children: /* @__PURE__ */ s.jsx(er, { children: "Navigation" }) }),
3571
3572
  t.map((r) => /* @__PURE__ */ s.jsx(
3572
- rt,
3573
+ nt,
3573
3574
  {
3574
3575
  item: r,
3575
3576
  onRequestClose: e
@@ -3579,34 +3580,34 @@ const Ic = ({
3579
3580
  ] })
3580
3581
  }
3581
3582
  )
3582
- ] }), Rc = ({ children: e }) => {
3583
- const [t, r] = G(!1), { navigation: n } = Bt(), o = n.length > 0, a = Re().state === "loading", { options: i } = M();
3583
+ ] }), Ic = ({ children: e }) => {
3584
+ const [t, r] = G(!1), { navigation: n } = Qt(), o = n.length > 0, i = De().state === "loading", { options: a } = M();
3584
3585
  return /* @__PURE__ */ s.jsxs(
3585
- Tr,
3586
+ Sr,
3586
3587
  {
3587
- direction: i.site?.dir === "rtl" ? "right" : "left",
3588
+ direction: a.site?.dir === "rtl" ? "right" : "left",
3588
3589
  open: t,
3589
3590
  onOpenChange: (u) => r(u),
3590
3591
  children: [
3591
3592
  o && /* @__PURE__ */ s.jsx(
3592
- Ic,
3593
+ Ac,
3593
3594
  {
3594
3595
  onRequestClose: () => r(!1),
3595
3596
  navigation: n
3596
3597
  }
3597
3598
  ),
3598
- o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(Tc, { className: "flex items-center gap-2 px-4", children: [
3599
- /* @__PURE__ */ s.jsx(Yn, { size: 16, strokeWidth: 1.5 }),
3599
+ o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(Zc, { className: "flex items-center gap-2 px-4", children: [
3600
+ /* @__PURE__ */ s.jsx(Vn, { size: 16, strokeWidth: 1.5 }),
3600
3601
  /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
3601
3602
  ] }) }),
3602
3603
  /* @__PURE__ */ s.jsxs(
3603
3604
  "main",
3604
3605
  {
3605
3606
  "data-pagefind-body": !0,
3606
- className: N(
3607
+ className: O(
3607
3608
  "px-4 lg:pe-8 lg:px-8",
3608
3609
  !o && "col-span-full",
3609
- a && "animate-pulse"
3610
+ i && "animate-pulse"
3610
3611
  ),
3611
3612
  children: [
3612
3613
  /* @__PURE__ */ s.jsx(A.Target, { name: "content-before" }),
@@ -3618,12 +3619,12 @@ const Ic = ({
3618
3619
  ]
3619
3620
  }
3620
3621
  );
3621
- }, Dc = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(Gt, {}) }), Mc = ({ children: e }) => {
3622
+ }, Rc = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(Yt, {}) }), Dc = ({ children: e }) => {
3622
3623
  const { meta: t, authentication: r, options: n } = M(), o = xe();
3623
- return Pn(), lc(), F(() => {
3624
+ return zn(), uc(), F(() => {
3624
3625
  r?.onPageLoad?.();
3625
3626
  }, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3626
- /* @__PURE__ */ s.jsxs(Ie, { titleTemplate: t?.title, children: [
3627
+ /* @__PURE__ */ s.jsxs(Re, { titleTemplate: t?.title, children: [
3627
3628
  n.canonicalUrlOrigin && /* @__PURE__ */ s.jsx(
3628
3629
  "link",
3629
3630
  {
@@ -3639,30 +3640,30 @@ const Ic = ({
3639
3640
  t?.favicon && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: t.favicon })
3640
3641
  ] }),
3641
3642
  /* @__PURE__ */ s.jsx(A.Target, { name: "layout-before-head" }),
3642
- /* @__PURE__ */ s.jsx(Zr, {}),
3643
+ /* @__PURE__ */ s.jsx(Er, {}),
3643
3644
  /* @__PURE__ */ s.jsx(A.Target, { name: "layout-after-head" }),
3644
3645
  /* @__PURE__ */ s.jsx(
3645
3646
  "div",
3646
3647
  {
3647
- className: N(
3648
+ className: O(
3648
3649
  "grid max-w-screen-2xl w-full lg:mx-auto",
3649
3650
  "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
3650
3651
  "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
3651
3652
  ),
3652
- children: /* @__PURE__ */ s.jsx(Fe, { fallback: /* @__PURE__ */ s.jsx(Dc, {}), children: /* @__PURE__ */ s.jsx(Rc, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) })
3653
+ children: /* @__PURE__ */ s.jsx(qe, { fallback: /* @__PURE__ */ s.jsx(Rc, {}), children: /* @__PURE__ */ s.jsx(Ic, { children: e ?? /* @__PURE__ */ s.jsx(Dt, {}) }) })
3653
3654
  }
3654
3655
  ),
3655
- /* @__PURE__ */ s.jsx(hc, {})
3656
+ /* @__PURE__ */ s.jsx(fc, {})
3656
3657
  ] });
3657
- }, Fc = ({
3658
+ }, Mc = ({
3658
3659
  title: e = "An error occurred",
3659
3660
  message: t,
3660
3661
  category: r
3661
3662
  }) => /* @__PURE__ */ s.jsxs(Kt, { className: "h-full pt-(--padding-content-top)", children: [
3662
- r && /* @__PURE__ */ s.jsx(En, { children: r }),
3663
- e && /* @__PURE__ */ s.jsx(Sn, { level: 1, className: "flex gap-3.5 items-center", children: e }),
3663
+ r && /* @__PURE__ */ s.jsx(Pn, { children: r }),
3664
+ e && /* @__PURE__ */ s.jsx(En, { level: 1, className: "flex gap-3.5 items-center", children: e }),
3664
3665
  /* @__PURE__ */ s.jsx("p", { children: t })
3665
- ] }), qc = (e) => {
3666
+ ] }), Fc = (e) => {
3666
3667
  switch (e) {
3667
3668
  case 400:
3668
3669
  return {
@@ -3725,23 +3726,23 @@ const Ic = ({
3725
3726
  message: "Something went wrong while processing your request."
3726
3727
  };
3727
3728
  }
3728
- }, Uc = ({ statusCode: e, message: t }) => {
3729
+ }, qc = ({ statusCode: e, message: t }) => {
3729
3730
  if (e === 404)
3730
- return /* @__PURE__ */ s.jsx(Zn, {});
3731
- const r = qc(e);
3731
+ return /* @__PURE__ */ s.jsx(Sn, {});
3732
+ const r = Fc(e);
3732
3733
  return /* @__PURE__ */ s.jsx(
3733
- Fc,
3734
+ Mc,
3734
3735
  {
3735
3736
  title: r.title,
3736
3737
  message: t ?? r.message,
3737
3738
  category: e
3738
3739
  }
3739
3740
  );
3740
- }, Lc = Me(null), Ee = {
3741
+ }, Uc = Fe(null), Ee = {
3741
3742
  didCatch: !1,
3742
3743
  error: null
3743
3744
  };
3744
- class Qc extends Dn {
3745
+ class Lc extends Rn {
3745
3746
  constructor(t) {
3746
3747
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ee;
3747
3748
  }
@@ -3756,10 +3757,10 @@ class Qc extends Dn {
3756
3757
  error: t
3757
3758
  } = this.state;
3758
3759
  if (t !== null) {
3759
- for (var r, n, o = arguments.length, a = new Array(o), i = 0; i < o; i++)
3760
- a[i] = arguments[i];
3760
+ for (var r, n, o = arguments.length, i = new Array(o), a = 0; a < o; a++)
3761
+ i[a] = arguments[a];
3761
3762
  (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
3762
- args: a,
3763
+ args: i,
3763
3764
  reason: "imperative-api"
3764
3765
  }), this.setState(Ee);
3765
3766
  }
@@ -3774,9 +3775,9 @@ class Qc extends Dn {
3774
3775
  } = this.state, {
3775
3776
  resetKeys: o
3776
3777
  } = this.props;
3777
- if (n && r.error !== null && Bc(t.resetKeys, o)) {
3778
- var a, i;
3779
- (a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
3778
+ if (n && r.error !== null && Qc(t.resetKeys, o)) {
3779
+ var i, a;
3780
+ (i = (a = this.props).onReset) === null || i === void 0 || i.call(a, {
3780
3781
  next: o,
3781
3782
  prev: t.resetKeys,
3782
3783
  reason: "keys"
@@ -3790,38 +3791,38 @@ class Qc extends Dn {
3790
3791
  FallbackComponent: n,
3791
3792
  fallback: o
3792
3793
  } = this.props, {
3793
- didCatch: a,
3794
- error: i
3794
+ didCatch: i,
3795
+ error: a
3795
3796
  } = this.state;
3796
3797
  let u = t;
3797
- if (a) {
3798
- const h = {
3799
- error: i,
3798
+ if (i) {
3799
+ const p = {
3800
+ error: a,
3800
3801
  resetErrorBoundary: this.resetErrorBoundary
3801
3802
  };
3802
3803
  if (typeof r == "function")
3803
- u = r(h);
3804
+ u = r(p);
3804
3805
  else if (n)
3805
- u = nt(n, h);
3806
+ u = ot(n, p);
3806
3807
  else if (o !== void 0)
3807
3808
  u = o;
3808
3809
  else
3809
- throw i;
3810
+ throw a;
3810
3811
  }
3811
- return nt(Lc.Provider, {
3812
+ return ot(Uc.Provider, {
3812
3813
  value: {
3813
- didCatch: a,
3814
- error: i,
3814
+ didCatch: i,
3815
+ error: a,
3815
3816
  resetErrorBoundary: this.resetErrorBoundary
3816
3817
  }
3817
3818
  }, u);
3818
3819
  }
3819
3820
  }
3820
- function Bc() {
3821
+ function Qc() {
3821
3822
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
3822
3823
  return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
3823
3824
  }
3824
- let Hc = () => ({
3825
+ let Bc = () => ({
3825
3826
  emit(e, ...t) {
3826
3827
  for (let r = this.events[e] || [], n = 0, o = r.length; n < o; n++)
3827
3828
  r[n](...t);
@@ -3834,7 +3835,7 @@ let Hc = () => ({
3834
3835
  }
3835
3836
  });
3836
3837
  const Kc = (e) => Object.entries(e);
3837
- class Wc {
3838
+ class Hc {
3838
3839
  plugins;
3839
3840
  navigation;
3840
3841
  meta;
@@ -3843,31 +3844,31 @@ class Wc {
3843
3844
  queryClient;
3844
3845
  options;
3845
3846
  navigationPlugins;
3846
- emitter = Hc();
3847
+ emitter = Bc();
3847
3848
  constructor(t, r) {
3848
3849
  const n = (t.protectedRoutes ?? []).concat(
3849
3850
  t.plugins?.flatMap(
3850
- (o) => ot(o) ? o.getProtectedRoutes?.() ?? [] : []
3851
+ (o) => st(o) ? o.getProtectedRoutes?.() ?? [] : []
3851
3852
  ) ?? []
3852
3853
  );
3853
- this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ot), this.authentication = this.plugins.find(Jn), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((o) => {
3854
- Xn(o) && Kc(o.events).forEach(([a, i]) => {
3855
- this.emitter.on(a, i);
3854
+ this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(st), this.authentication = this.plugins.find(Gn), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((o) => {
3855
+ Jn(o) && Kc(o.events).forEach(([i, a]) => {
3856
+ this.emitter.on(i, a);
3856
3857
  });
3857
- }), vn.subscribe((o, a) => {
3858
+ }), gn.subscribe((o, i) => {
3858
3859
  this.emitEvent("auth", {
3859
- prev: a,
3860
+ prev: i,
3860
3861
  next: o
3861
3862
  });
3862
3863
  });
3863
3864
  }
3864
3865
  initialize = async () => {
3865
3866
  await Promise.all(
3866
- this.plugins.filter(eo).map((t) => t.initialize?.(this))
3867
+ this.plugins.filter(Xn).map((t) => t.initialize?.(this))
3867
3868
  );
3868
3869
  };
3869
3870
  getApiIdentities = async () => (await Promise.all(
3870
- this.plugins.filter(to).map((r) => r.getIdentities(this))
3871
+ this.plugins.filter(eo).map((r) => r.getIdentities(this))
3871
3872
  )).flat();
3872
3873
  addEventListener(t, r) {
3873
3874
  return this.emitter.on(t, r);
@@ -3878,102 +3879,102 @@ class Wc {
3878
3879
  (n) => n.getNavigation?.(ee(t), this)
3879
3880
  )
3880
3881
  )).flatMap((n) => n ?? []);
3881
- getProfileMenuItems = () => this.plugins.filter((r) => Jt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(Vc(["top", "middle", "bottom"])).sort((r) => r.weight ?? 0);
3882
+ getProfileMenuItems = () => this.plugins.filter((r) => Gt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(Wc(["top", "middle", "bottom"])).sort((r) => r.weight ?? 0);
3882
3883
  signRequest = async (t) => {
3883
3884
  if (!this.authentication)
3884
3885
  throw new Error("No authentication provider configured");
3885
3886
  return await this.authentication.signRequest(t);
3886
3887
  };
3887
3888
  }
3888
- const Vc = (e) => (t, r) => {
3889
+ const Wc = (e) => (t, r) => {
3889
3890
  const n = e.indexOf(t.category ?? "middle"), o = e.indexOf(r.category ?? "middle");
3890
3891
  return n - o;
3891
3892
  };
3892
- function Yc({ error: e, resetErrorBoundary: t }) {
3893
- return /* @__PURE__ */ s.jsx(Ht, { error: e });
3893
+ function Vc({ error: e, resetErrorBoundary: t }) {
3894
+ return /* @__PURE__ */ s.jsx(Bt, { error: e });
3894
3895
  }
3895
3896
  const me = globalThis;
3896
3897
  (!me.requestIdleCallback || !me.cancelIdleCallback) && (me.requestIdleCallback = (e) => setTimeout(e, 1), me.cancelIdleCallback = clearTimeout);
3897
- const Nr = {
3898
- Header: Zr
3899
- }, Gc = Me(Nr), Jc = Gc.Provider, Xc = () => {
3900
- const e = xe(), t = M(), r = K(void 0);
3898
+ const Tr = {
3899
+ Header: Er
3900
+ }, Yc = Fe(Tr), Gc = Yc.Provider, Jc = () => {
3901
+ const e = xe(), t = M(), r = H(void 0);
3901
3902
  return F(() => {
3902
3903
  t.emitEvent("location", {
3903
3904
  from: r.current,
3904
3905
  to: e
3905
3906
  }), r.current = e;
3906
3907
  }, [t, e]), null;
3907
- }, eu = ({
3908
+ }, Xc = ({
3908
3909
  children: e,
3909
3910
  context: t
3910
- }) => (yn({
3911
+ }) => (vn({
3911
3912
  queryFn: async () => (await t.initialize(), !0),
3912
- queryKey: ["zudoku-initialize", xn]
3913
- }), /* @__PURE__ */ s.jsx(_n.Provider, { value: t, children: e }));
3914
- let At;
3915
- const Ar = Yt(
3913
+ queryKey: ["zudoku-initialize", yn]
3914
+ }), /* @__PURE__ */ s.jsx(xn.Provider, { value: t, children: e }));
3915
+ let Ot;
3916
+ const Nr = Vt(
3916
3917
  ({ children: e, ...t }) => {
3917
3918
  const r = $e(
3918
- () => ({ ...Nr, ...t.overrides }),
3919
+ () => ({ ...Tr, ...t.overrides }),
3919
3920
  [t.overrides]
3920
3921
  ), n = xe(), o = $e(() => ({
3921
- ...(t.plugins ?? []).filter(ro).flatMap(
3922
+ ...(t.plugins ?? []).filter(to).flatMap(
3922
3923
  (l) => l.getMdxComponents ? [l.getMdxComponents()] : []
3923
3924
  ).reduce(
3924
3925
  (l, g) => ({ ...l, ...g }),
3925
3926
  {}
3926
3927
  ),
3927
- ...Tn,
3928
+ ...Zn,
3928
3929
  ...t.mdx?.components
3929
- }), [t.mdx?.components, t.plugins]), { stagger: a } = Mn(Ze), [i, u] = G(!1), h = $e(
3930
- () => i ? { stagger: !0 } : { stagger: a },
3931
- [a, i]
3932
- ), f = Re(), y = Ut();
3930
+ }), [t.mdx?.components, t.plugins]), { stagger: i } = Dn(Ze), [a, u] = G(!1), p = $e(
3931
+ () => a ? { stagger: !0 } : { stagger: i },
3932
+ [i, a]
3933
+ ), f = De(), x = qt();
3933
3934
  F(() => {
3934
- i || u(!0);
3935
- }, [i, f.location]), At ??= new Wc(t, y);
3936
- const p = t.plugins?.flatMap(
3937
- (m) => no(m) ? m.getHead?.({ location: n }) ?? [] : []
3938
- ).map((m, l) => /* @__PURE__ */ s.jsx(Ie, { children: m }, l));
3935
+ a || u(!0);
3936
+ }, [a, f.location]), Ot ??= new Hc(t, x);
3937
+ const h = t.plugins?.flatMap(
3938
+ (m) => ro(m) ? m.getHead?.({ location: n }) ?? [] : []
3939
+ ).map((m, l) => /* @__PURE__ */ s.jsx(Re, { children: m }, l));
3939
3940
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3940
- p,
3941
- /* @__PURE__ */ s.jsx(Ze.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(eu, { context: At, children: [
3942
- /* @__PURE__ */ s.jsx(Xc, {}),
3943
- /* @__PURE__ */ s.jsx(Cn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ s.jsx(tn, { components: o, children: /* @__PURE__ */ s.jsx(rn, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(Jc, { value: r, children: /* @__PURE__ */ s.jsx(On, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) }) }) }) })
3941
+ h,
3942
+ /* @__PURE__ */ s.jsx(Ze.Provider, { value: p, children: /* @__PURE__ */ s.jsxs(Xc, { context: Ot, children: [
3943
+ /* @__PURE__ */ s.jsx(Jc, {}),
3944
+ /* @__PURE__ */ s.jsx(Cn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ s.jsx(Xr, { components: o, children: /* @__PURE__ */ s.jsx(en, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(Gc, { value: r, children: /* @__PURE__ */ s.jsx(Tn, { children: e ?? /* @__PURE__ */ s.jsx(Dt, {}) }) }) }) }) })
3944
3945
  ] }) })
3945
3946
  ] });
3946
3947
  }
3947
3948
  );
3948
- Ar.displayName = "ZudokoInner";
3949
- const Ir = (e) => /* @__PURE__ */ s.jsx(Qc, { FallbackComponent: Yc, children: /* @__PURE__ */ s.jsx(Ar, { ...e }) });
3950
- Ir.displayName = "Zudoku";
3951
- const bu = Mc, wu = Nn, ju = jo, ku = zo, $u = Po, zu = en, Pu = Ie, Eu = Uc, Su = In, Zu = An, Tu = Gt, Cu = te, Ou = Wt, Nu = De, Au = uc, Iu = Ir, Ru = Kt, Du = nn, tu = M, Mu = oe, Fu = bn, qu = wn, Uu = Dt;
3949
+ Nr.displayName = "ZudokoInner";
3950
+ const Or = (e) => /* @__PURE__ */ s.jsx(Lc, { FallbackComponent: Vc, children: /* @__PURE__ */ s.jsx(Nr, { ...e }) });
3951
+ Or.displayName = "Zudoku";
3952
+ const _u = Dc, bu = Nn, wu = wo, ju = $o, ku = zo, $u = Jr, zu = Re, Pu = qc, Eu = An, Su = On, Zu = Yt, Cu = te, Tu = Ht, Nu = Me, Ou = cc, Au = Or, Iu = Kt, Ru = tn, eu = M, Du = oe, Mu = _n, Fu = bn, qu = Rt;
3952
3953
  export {
3953
- Ou as B,
3954
- Su as C,
3955
- Pu as H,
3954
+ Tu as B,
3955
+ Eu as C,
3956
+ zu as H,
3956
3957
  Nu as L,
3957
- Zu as M,
3958
- wu as R,
3959
- Tu as S,
3960
- Ru as T,
3961
- Iu as Z,
3962
- zc as a,
3963
- Mu as b,
3964
- bu as c,
3965
- ju as d,
3966
- ku as e,
3967
- $u as f,
3968
- zu as g,
3969
- Eu as h,
3958
+ Su as M,
3959
+ bu as R,
3960
+ Zu as S,
3961
+ Iu as T,
3962
+ Au as Z,
3963
+ $c as a,
3964
+ Du as b,
3965
+ _u as c,
3966
+ wu as d,
3967
+ ju as e,
3968
+ ku as f,
3969
+ $u as g,
3970
+ Pu as h,
3970
3971
  Cu as i,
3971
- Au as j,
3972
- Du as k,
3973
- Fu as l,
3974
- qu as m,
3975
- Uu as n,
3972
+ Ou as j,
3973
+ Ru as k,
3974
+ Mu as l,
3975
+ Fu as m,
3976
+ qu as n,
3976
3977
  Kc as o,
3977
- tu as u
3978
+ eu as u
3978
3979
  };
3979
- //# sourceMappingURL=index-DLshv89l.js.map
3980
+ //# sourceMappingURL=index-D09PbNex.js.map