zudoku 0.63.1 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/client.d.ts +8 -0
  2. package/dist/config/config.d.ts +3 -1
  3. package/dist/config/validators/BuildSchema.d.ts +5 -4
  4. package/dist/config/validators/BuildSchema.js +5 -2
  5. package/dist/config/validators/BuildSchema.js.map +1 -1
  6. package/dist/config/validators/InputNavigationSchema.d.ts +20 -20
  7. package/dist/config/validators/validate.d.ts +10 -12
  8. package/dist/config/validators/validate.js +8 -8
  9. package/dist/config/validators/validate.js.map +1 -1
  10. package/dist/flat-config.d.ts +6 -1
  11. package/dist/lib/authentication/authentication.d.ts +14 -9
  12. package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
  13. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
  14. package/dist/lib/authentication/components/SignIn.js +6 -5
  15. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  16. package/dist/lib/authentication/components/SignOut.js +6 -6
  17. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  18. package/dist/lib/authentication/components/SignUp.js +5 -5
  19. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  20. package/dist/lib/authentication/hook.d.ts +3 -2
  21. package/dist/lib/authentication/hook.js +12 -8
  22. package/dist/lib/authentication/hook.js.map +1 -1
  23. package/dist/lib/authentication/providers/auth0.js +1 -1
  24. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  25. package/dist/lib/authentication/providers/azureb2c.d.ts +4 -4
  26. package/dist/lib/authentication/providers/azureb2c.js +3 -3
  27. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  28. package/dist/lib/authentication/providers/clerk.js +2 -2
  29. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  30. package/dist/lib/authentication/providers/openid.d.ts +7 -7
  31. package/dist/lib/authentication/providers/openid.js +5 -3
  32. package/dist/lib/authentication/providers/openid.js.map +1 -1
  33. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  34. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  35. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  36. package/dist/lib/authentication/providers/supabase.js +35 -31
  37. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  38. package/dist/lib/authentication/state.d.ts +1 -5
  39. package/dist/lib/authentication/state.js +2 -14
  40. package/dist/lib/authentication/state.js.map +1 -1
  41. package/dist/lib/components/Zudoku.js +3 -3
  42. package/dist/lib/components/index.d.ts +2 -2
  43. package/dist/lib/components/navigation/Toc.js +1 -1
  44. package/dist/lib/components/navigation/Toc.js.map +1 -1
  45. package/dist/lib/core/RouteGuard.d.ts +1 -1
  46. package/dist/lib/core/RouteGuard.js +6 -14
  47. package/dist/lib/core/RouteGuard.js.map +1 -1
  48. package/dist/lib/core/__internal.d.ts +1 -1
  49. package/dist/lib/hooks/index.d.ts +2 -2
  50. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +1 -1
  51. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
  52. package/dist/lib/plugins/openapi/playground/Playground.js +12 -2
  53. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  54. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  55. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  56. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  57. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
  58. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +1 -1
  59. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
  60. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +23 -21
  61. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  62. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
  63. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  64. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
  65. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
  66. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +7 -0
  67. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  68. package/dist/lib/shiki.d.ts +1 -1
  69. package/dist/lib/shiki.js +13 -2
  70. package/dist/lib/shiki.js.map +1 -1
  71. package/dist/lib/ui/Callout.d.ts +5 -5
  72. package/dist/lib/ui/Callout.js +5 -5
  73. package/dist/lib/ui/Callout.js.map +1 -1
  74. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -1
  75. package/dist/lib/ui/EmbeddedCodeBlock.js +2 -2
  76. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  77. package/dist/lib/ui/ReactComponentDoc.d.ts +1 -1
  78. package/dist/lib/ui/ReactComponentDoc.js +2 -2
  79. package/dist/lib/ui/ReactComponentDoc.js.map +1 -1
  80. package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
  81. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  82. package/dist/lib/util/MdxComponents.d.ts +2 -1
  83. package/dist/lib/util/MdxComponents.js +3 -2
  84. package/dist/lib/util/MdxComponents.js.map +1 -1
  85. package/dist/lib/util/syncZustandState.d.ts +5 -0
  86. package/dist/lib/util/syncZustandState.js +14 -0
  87. package/dist/lib/util/syncZustandState.js.map +1 -0
  88. package/dist/vite/api/SchemaManager.d.ts +3 -1
  89. package/dist/vite/api/SchemaManager.js +22 -3
  90. package/dist/vite/api/SchemaManager.js.map +1 -1
  91. package/dist/vite/api/SchemaManager.test.js +2 -2
  92. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  93. package/dist/vite/plugin-api.js +14 -5
  94. package/dist/vite/plugin-api.js.map +1 -1
  95. package/dist/vite/plugin-mdx.js +36 -30
  96. package/dist/vite/plugin-mdx.js.map +1 -1
  97. package/lib/{ErrorAlert-VBJ8aHH7.js → ErrorAlert-DE3Sf66a.js} +1711 -1772
  98. package/lib/ErrorAlert-DE3Sf66a.js.map +1 -0
  99. package/lib/{MdxPage-1xaNI6q_.js → MdxPage-DZfeC0QY.js} +8 -8
  100. package/lib/{MdxPage-1xaNI6q_.js.map → MdxPage-DZfeC0QY.js.map} +1 -1
  101. package/lib/{OAuthErrorPage-Du_4sFER.js → OAuthErrorPage-BycMozgn.js} +8 -8
  102. package/lib/{OAuthErrorPage-Du_4sFER.js.map → OAuthErrorPage-BycMozgn.js.map} +1 -1
  103. package/lib/{OasProvider-0xiB5cKH.js → OasProvider-1XEOsIiW.js} +3 -3
  104. package/lib/{OasProvider-0xiB5cKH.js.map → OasProvider-1XEOsIiW.js.map} +1 -1
  105. package/lib/{OperationList-BzWKTkNq.js → OperationList-DCJw6wXL.js} +113 -109
  106. package/lib/OperationList-DCJw6wXL.js.map +1 -0
  107. package/lib/{Pagination-DOcPyfy_.js → Pagination-CJszmeSA.js} +3 -3
  108. package/lib/{Pagination-DOcPyfy_.js.map → Pagination-CJszmeSA.js.map} +1 -1
  109. package/lib/RouteGuard-DhU3LRr1.js +81 -0
  110. package/lib/RouteGuard-DhU3LRr1.js.map +1 -0
  111. package/lib/{RouterError-fm21cqlj.js → RouterError-VDLnrFqF.js} +5 -5
  112. package/lib/{RouterError-fm21cqlj.js.map → RouterError-VDLnrFqF.js.map} +1 -1
  113. package/lib/{SchemaList-Dea2Skqv.js → SchemaList-qOHkDzSz.js} +7 -7
  114. package/lib/{SchemaList-Dea2Skqv.js.map → SchemaList-qOHkDzSz.js.map} +1 -1
  115. package/lib/{SchemaView-H9glU5P7.js → SchemaView-D3hm65cc.js} +3 -3
  116. package/lib/{SchemaView-H9glU5P7.js.map → SchemaView-D3hm65cc.js.map} +1 -1
  117. package/lib/{Select-CPoGZU_V.js → Select-C1DeCqKv.js} +3 -3
  118. package/lib/{Select-CPoGZU_V.js.map → Select-C1DeCqKv.js.map} +1 -1
  119. package/lib/SignUp-6SGx9Yyq.js +50 -0
  120. package/lib/SignUp-6SGx9Yyq.js.map +1 -0
  121. package/lib/{SyntaxHighlight-B0laqAqK.js → SyntaxHighlight-zvlnSnHB.js} +789 -778
  122. package/lib/{SyntaxHighlight-B0laqAqK.js.map → SyntaxHighlight-zvlnSnHB.js.map} +1 -1
  123. package/lib/{Toc-KzXCRqrX.js → Toc-Da9yp7lo.js} +5 -5
  124. package/lib/Toc-Da9yp7lo.js.map +1 -0
  125. package/lib/{ZudokuContext-BXTZApgy.js → ZudokuContext-BUZ5hkWB.js} +33 -31
  126. package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
  127. package/lib/{chunk-PVWAREVJ-BO6B-RAk.js → chunk-PVWAREVJ-BMhpCH5D.js} +7 -7
  128. package/lib/{chunk-PVWAREVJ-BO6B-RAk.js.map → chunk-PVWAREVJ-BMhpCH5D.js.map} +1 -1
  129. package/lib/{circular-OGtD_zFg.js → circular-CSSuz-LS.js} +2 -2
  130. package/lib/{circular-OGtD_zFg.js.map → circular-CSSuz-LS.js.map} +1 -1
  131. package/lib/{createServer-DyUc5BPr.js → createServer-CLbcVLbK.js} +4 -4
  132. package/lib/{createServer-DyUc5BPr.js.map → createServer-CLbcVLbK.js.map} +1 -1
  133. package/lib/{errors-7_i0Oyw4.js → errors-CuGgh3hf.js} +2 -2
  134. package/lib/{errors-7_i0Oyw4.js.map → errors-CuGgh3hf.js.map} +1 -1
  135. package/lib/hook-CMeoxziF.js +40 -0
  136. package/lib/hook-CMeoxziF.js.map +1 -0
  137. package/lib/{index-CLJGtw_S.js → index-B1rmok4X.js} +7 -7
  138. package/lib/{index-CLJGtw_S.js.map → index-B1rmok4X.js.map} +1 -1
  139. package/lib/{index-PdgTSEkk.js → index-RNAxx6IF.js} +853 -793
  140. package/lib/index-RNAxx6IF.js.map +1 -0
  141. package/lib/{index-C5L4favO.js → index-rYHsvtTo.js} +2 -2
  142. package/lib/{index-C5L4favO.js.map → index-rYHsvtTo.js.map} +1 -1
  143. package/lib/{mutation-CdGPxHNX.js → mutation-BSU0xu4m.js} +2 -2
  144. package/lib/{mutation-CdGPxHNX.js.map → mutation-BSU0xu4m.js.map} +1 -1
  145. package/lib/ui/Callout.js +18 -18
  146. package/lib/ui/Callout.js.map +1 -1
  147. package/lib/ui/CodeBlock.js +217 -7
  148. package/lib/ui/CodeBlock.js.map +1 -1
  149. package/lib/ui/EmbeddedCodeBlock.js +22 -19
  150. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  151. package/lib/ui/ReactComponentDoc.js +13 -13
  152. package/lib/ui/ReactComponentDoc.js.map +1 -1
  153. package/lib/ui/SyntaxHighlight.js +3 -3
  154. package/lib/{useExposedProps-Cd7Yg_uG.js → useExposedProps-U3pmsHaG.js} +2 -2
  155. package/lib/{useExposedProps-Cd7Yg_uG.js.map → useExposedProps-U3pmsHaG.js.map} +1 -1
  156. package/lib/zudoku.__internal.js +7 -7
  157. package/lib/zudoku.auth-auth0.js +13 -13
  158. package/lib/zudoku.auth-auth0.js.map +1 -1
  159. package/lib/zudoku.auth-azureb2c.js +28 -28
  160. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  161. package/lib/zudoku.auth-clerk.js +40 -40
  162. package/lib/zudoku.auth-clerk.js.map +1 -1
  163. package/lib/zudoku.auth-openid.js +53 -56
  164. package/lib/zudoku.auth-openid.js.map +1 -1
  165. package/lib/zudoku.auth-supabase.js +111 -52
  166. package/lib/zudoku.auth-supabase.js.map +1 -1
  167. package/lib/zudoku.components.js +6 -6
  168. package/lib/zudoku.hooks.js +4 -4
  169. package/lib/zudoku.plugin-api-catalog.js +5 -5
  170. package/lib/zudoku.plugin-api-keys.js +99 -99
  171. package/lib/zudoku.plugin-custom-pages.js +1 -1
  172. package/lib/zudoku.plugin-markdown.js +1 -1
  173. package/lib/zudoku.plugin-openapi.js +3 -3
  174. package/lib/zudoku.plugin-redirect.js +1 -1
  175. package/lib/zudoku.plugin-search-pagefind.js +38 -38
  176. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  177. package/lib/zudoku.router.js +2 -2
  178. package/package.json +16 -8
  179. package/src/app/main.css +19 -9
  180. package/src/lib/authentication/authentication.ts +19 -3
  181. package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
  182. package/src/lib/authentication/components/SignIn.tsx +7 -5
  183. package/src/lib/authentication/components/SignOut.tsx +7 -6
  184. package/src/lib/authentication/components/SignUp.tsx +5 -8
  185. package/src/lib/authentication/hook.ts +21 -10
  186. package/src/lib/authentication/providers/auth0.tsx +2 -1
  187. package/src/lib/authentication/providers/azureb2c.tsx +10 -3
  188. package/src/lib/authentication/providers/clerk.tsx +9 -2
  189. package/src/lib/authentication/providers/openid.tsx +20 -15
  190. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  191. package/src/lib/authentication/providers/supabase.tsx +59 -43
  192. package/src/lib/authentication/state.ts +3 -23
  193. package/src/lib/components/Zudoku.tsx +3 -3
  194. package/src/lib/components/navigation/Toc.tsx +3 -3
  195. package/src/lib/core/RouteGuard.tsx +33 -13
  196. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +2 -2
  197. package/src/lib/plugins/openapi/playground/Playground.tsx +13 -2
  198. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  199. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +2 -2
  200. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +102 -58
  201. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +1 -1
  202. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
  203. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +10 -0
  204. package/src/lib/shiki.ts +16 -2
  205. package/src/lib/ui/Callout.tsx +10 -5
  206. package/src/lib/ui/EmbeddedCodeBlock.tsx +6 -3
  207. package/src/lib/ui/ReactComponentDoc.tsx +17 -17
  208. package/src/lib/ui/SyntaxHighlight.tsx +6 -1
  209. package/src/lib/util/MdxComponents.tsx +3 -5
  210. package/src/lib/util/syncZustandState.ts +22 -0
  211. package/lib/CodeBlock-CanTUJLl.js +0 -221
  212. package/lib/CodeBlock-CanTUJLl.js.map +0 -1
  213. package/lib/ErrorAlert-VBJ8aHH7.js.map +0 -1
  214. package/lib/OperationList-BzWKTkNq.js.map +0 -1
  215. package/lib/RouteGuard-Bg0Lu0OU.js +0 -56
  216. package/lib/RouteGuard-Bg0Lu0OU.js.map +0 -1
  217. package/lib/SignUp-DUZ4yUmQ.js +0 -56
  218. package/lib/SignUp-DUZ4yUmQ.js.map +0 -1
  219. package/lib/Toc-KzXCRqrX.js.map +0 -1
  220. package/lib/ZudokuContext-BXTZApgy.js.map +0 -1
  221. package/lib/hook-CAebs2rv.js +0 -31
  222. package/lib/hook-CAebs2rv.js.map +0 -1
  223. package/lib/index-PdgTSEkk.js.map +0 -1
@@ -1,51 +1,50 @@
1
1
  import { j as n } from "./jsx-runtime-BzflLqGi.js";
2
- import { ChevronUpIcon as pn, PlusCircleIcon as pe, FileInput as hn, Check as fn, TableOfContentsIcon as gn, LockIcon as xn, CircleAlertIcon as yn, XIcon as ft, Circle as vn, Unlink2Icon as bn, CornerDownRightIcon as jn, CornerDownLeftIcon as Cn, DownloadIcon as wn, EyeOffIcon as Nn, EyeIcon as Sn, UnplugIcon as Tn, SendIcon as An, CheckIcon as On, CopyIcon as Pn, IdCardLanyardIcon as Ln, ShapesIcon as $n, CirclePlayIcon as En } from "lucide-react";
3
- import { r as Rn, u as kn, c as In, N as Dn, aL as Fn, m as st } from "./chunk-PVWAREVJ-BO6B-RAk.js";
4
- import { Button as ce } from "./ui/Button.js";
5
- import { J as $e, K as Ee, L as gt, a as zn, e as qn, M as Vn, j as R, b as Bn } from "./ZudokuContext-BXTZApgy.js";
6
- import { Z as _n, i as Un } from "./invariant-Bm-FVUQE.js";
7
- import * as q from "react";
8
- import { createContext as xt, use as Mn, useRef as O, useEffect as I, useMemo as yt, useState as $, useCallback as vt, Fragment as Z, useLayoutEffect as Gn, useTransition as Hn, useContext as Qn } from "react";
9
- import { VisuallyHidden as Jn } from "@radix-ui/react-visually-hidden";
10
- import { useAuth as Wn } from "./zudoku.hooks.js";
11
- import { D as Re, a as ke, c as Ie, d as bt, e as jt, g as Xn } from "./Dialog-BQciPiHN.js";
12
- import { S as Zn, b as Yn } from "./index-CLJGtw_S.js";
13
- import { S as Ct, c as wt, d as Nt, e as St, g as oe, i as Kn, A as es, a as ts, b as ns, u as ss } from "./Select-CPoGZU_V.js";
14
- import { u as ne, b as De, C as D, a as rs, F as as } from "./index.esm-BYObtETB.js";
15
- import { B as E } from "./Button-DmS4u8Lj.js";
16
- import * as Fe from "@radix-ui/react-collapsible";
17
- import { g as rt, h as at, i as ot, j as os } from "./ErrorAlert-VBJ8aHH7.js";
2
+ import { ChevronUpIcon as xn, PlusCircleIcon as ne, FileInput as gn, Check as yn, TableOfContentsIcon as vn, LockIcon as bn, CircleAlertIcon as jn, XIcon as yt, Circle as Cn, Unlink2Icon as Nn, CornerDownRightIcon as wn, MinusCircleIcon as at, CornerDownLeftIcon as Sn, SquareCodeIcon as Tn, DownloadIcon as An, EyeOffIcon as On, EyeIcon as Pn, UnplugIcon as Ln, SendIcon as $n, CheckIcon as Rn, CopyIcon as En, IdCardLanyardIcon as kn, ShapesIcon as In, CirclePlayIcon as Dn } from "lucide-react";
3
+ import { r as zn, b as Fn, d as qn, N as Vn, aL as _n, m as ot } from "./chunk-PVWAREVJ-BMhpCH5D.js";
4
+ import { Button as he } from "./ui/Button.js";
5
+ import { J as ke, K as Ie, L as vt, l as Bn, M as Un, O as Mn, j as k, b as Gn } from "./ZudokuContext-BUZ5hkWB.js";
6
+ import { Z as Hn } from "./invariant-Bm-FVUQE.js";
7
+ import * as _ from "react";
8
+ import { createContext as bt, use as Qn, useRef as O, useEffect as F, useMemo as jt, useState as A, useCallback as Ct, Fragment as Z, useLayoutEffect as Jn, useTransition as Wn, useContext as Xn } from "react";
9
+ import { VisuallyHidden as Zn } from "@radix-ui/react-visually-hidden";
10
+ import { useAuth as Yn } from "./zudoku.hooks.js";
11
+ import { D as De, a as ze, c as Fe, d as Nt, e as wt, g as Kn } from "./Dialog-BQciPiHN.js";
12
+ import { S as es, b as ts } from "./index-B1rmok4X.js";
13
+ import { S as St, c as Tt, d as At, e as Ot, g as pe, i as ns, A as ss, a as rs, b as as, u as os } from "./Select-C1DeCqKv.js";
14
+ import { u as ae, b as qe, C as q, a as is, F as cs } from "./index.esm-BYObtETB.js";
15
+ import { B as R } from "./Button-DmS4u8Lj.js";
16
+ import * as Ve from "@radix-ui/react-collapsible";
17
+ import { g as it, h as ct, i as lt, j as ls, k as ds } from "./ErrorAlert-DE3Sf66a.js";
18
18
  import { c as C } from "./cn-dYga0KKN.js";
19
- import { u as is } from "./useCopyToClipboard-B_085nfO.js";
20
- import { u as cs } from "./useLatest-hmRS46UF.js";
21
- import { D as ls, a as ds, b as us, d as ms, e as ps, f as hs, c as fs } from "./DropdownMenu-BZ2NKQ3K.js";
22
- import * as Oe from "@radix-ui/react-checkbox";
23
- import * as le from "@radix-ui/react-popover";
24
- import { PopoverAnchor as gs } from "@radix-ui/react-popover";
25
- import { P as xs } from "./index-CrcNWbel.js";
26
- import { f as ys, g as vs, C as bs, b as js } from "./Command-CUcrW3qs.js";
27
- import { Input as de } from "./ui/Input.js";
28
- import { Slot as Cs } from "@radix-ui/react-slot";
29
- import { C as ws } from "./Card-KFniaZn5.js";
30
- import * as Tt from "@radix-ui/react-label";
31
- import { c as Ns } from "./index-DI5SPFK9.js";
32
- import * as ee from "@radix-ui/react-radio-group";
33
- import { z as Ss } from "./useExposedProps-Cd7Yg_uG.js";
34
- import { h as Ts } from "./SyntaxHighlight-B0laqAqK.js";
35
- let be;
36
- const As = (e) => {
19
+ import { u as us } from "./useCopyToClipboard-B_085nfO.js";
20
+ import { u as ms } from "./useLatest-hmRS46UF.js";
21
+ import { D as ps, a as hs, b as fs, d as xs, e as gs, f as ys, c as vs } from "./DropdownMenu-BZ2NKQ3K.js";
22
+ import * as $e from "@radix-ui/react-checkbox";
23
+ import * as fe from "@radix-ui/react-popover";
24
+ import { PopoverAnchor as bs } from "@radix-ui/react-popover";
25
+ import { P as js } from "./index-CrcNWbel.js";
26
+ import { f as Cs, g as Ns, C as ws, b as Ss } from "./Command-CUcrW3qs.js";
27
+ import { Input as xe } from "./ui/Input.js";
28
+ import { Slot as Ts } from "@radix-ui/react-slot";
29
+ import { C as As } from "./Card-KFniaZn5.js";
30
+ import * as Pt from "@radix-ui/react-label";
31
+ import { c as Os } from "./index-DI5SPFK9.js";
32
+ import * as se from "@radix-ui/react-radio-group";
33
+ import { z as Ps } from "./useExposedProps-U3pmsHaG.js";
34
+ let Se;
35
+ const Ls = (e) => {
37
36
  if (e.errors?.[0])
38
- throw new _n(e.errors[0].message, {
37
+ throw new Hn(e.errors[0].message, {
39
38
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
40
39
  });
41
40
  };
42
- class Os {
41
+ class $s {
43
42
  constructor(t) {
44
43
  this.config = t;
45
44
  }
46
- #e = async () => (be || (be = import("./createServer-DyUc5BPr.js").then(
45
+ #e = async () => (Se || (Se = import("./createServer-CLbcVLbK.js").then(
47
46
  (t) => t.createServer(this.config)
48
- )), be);
47
+ )), Se);
49
48
  #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
50
49
  fetch = async (t, s) => {
51
50
  const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
@@ -56,27 +55,27 @@ class Os {
56
55
  if (!r.ok)
57
56
  throw new Error("Network response was not ok");
58
57
  const o = await r.json();
59
- return As(o), o.data;
58
+ return Ls(o), o.data;
60
59
  };
61
60
  }
62
- function je(e, t) {
61
+ function Te(e, t) {
63
62
  if (!!!e)
64
63
  throw new Error(t);
65
64
  }
66
- function Ps(e) {
65
+ function Rs(e) {
67
66
  return typeof e == "object" && e !== null;
68
67
  }
69
- function Ls(e, t) {
68
+ function Es(e, t) {
70
69
  if (!!!e)
71
70
  throw new Error(
72
71
  t ?? "Unexpected invariant triggered."
73
72
  );
74
73
  }
75
- const $s = /\r\n|[\n\r]/g;
76
- function Pe(e, t) {
74
+ const ks = /\r\n|[\n\r]/g;
75
+ function Re(e, t) {
77
76
  let s = 0, a = 1;
78
- for (const r of e.body.matchAll($s)) {
79
- if (typeof r.index == "number" || Ls(!1), r.index >= t)
77
+ for (const r of e.body.matchAll(ks)) {
78
+ if (typeof r.index == "number" || Es(!1), r.index >= t)
80
79
  break;
81
80
  s = r.index + r[0].length, a += 1;
82
81
  }
@@ -85,27 +84,27 @@ function Pe(e, t) {
85
84
  column: t + 1 - s
86
85
  };
87
86
  }
88
- function Es(e) {
89
- return At(
87
+ function Is(e) {
88
+ return Lt(
90
89
  e.source,
91
- Pe(e.source, e.start)
90
+ Re(e.source, e.start)
92
91
  );
93
92
  }
94
- function At(e, t) {
93
+ function Lt(e, t) {
95
94
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
96
95
  `, d = a.split(/\r\n|[\n\r]/g), h = d[r];
97
96
  if (h.length > 120) {
98
- const g = Math.floor(c / 80), m = c % 80, v = [];
97
+ const x = Math.floor(c / 80), m = c % 80, v = [];
99
98
  for (let y = 0; y < h.length; y += 80)
100
99
  v.push(h.slice(y, y + 80));
101
- return u + it([
100
+ return u + dt([
102
101
  [`${i} |`, v[0]],
103
- ...v.slice(1, g + 1).map((y) => ["|", y]),
102
+ ...v.slice(1, x + 1).map((y) => ["|", y]),
104
103
  ["|", "^".padStart(m)],
105
- ["|", v[g + 1]]
104
+ ["|", v[x + 1]]
106
105
  ]);
107
106
  }
108
- return u + it([
107
+ return u + dt([
109
108
  // Lines specified like this: ["prefix", "string"],
110
109
  [`${i - 1} |`, d[r - 1]],
111
110
  [`${i} |`, h],
@@ -113,12 +112,12 @@ function At(e, t) {
113
112
  [`${i + 1} |`, d[r + 1]]
114
113
  ]);
115
114
  }
116
- function it(e) {
115
+ function dt(e) {
117
116
  const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
118
117
  return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
119
118
  `);
120
119
  }
121
- function Rs(e) {
120
+ function Ds(e) {
122
121
  const t = e[0];
123
122
  return t == null || "kind" in t || "length" in t ? {
124
123
  nodes: t,
@@ -129,7 +128,7 @@ function Rs(e) {
129
128
  extensions: e[5]
130
129
  } : t;
131
130
  }
132
- class ze extends Error {
131
+ class _e extends Error {
133
132
  /**
134
133
  * An array of `{ line, column }` locations within the source GraphQL document
135
134
  * which correspond to this error.
@@ -170,15 +169,15 @@ class ze extends Error {
170
169
  */
171
170
  constructor(t, ...s) {
172
171
  var a, r, o;
173
- const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Rs(s);
174
- super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
172
+ const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Ds(s);
173
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ut(
175
174
  Array.isArray(i) ? i : i ? [i] : void 0
176
175
  );
177
- const g = ct(
176
+ const x = ut(
178
177
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
179
178
  );
180
- this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((v) => v.start), this.locations = c && l ? c.map((v) => Pe(l, v)) : g?.map((v) => Pe(v.source, v.start));
181
- const m = Ps(
179
+ this.source = l ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? x?.map((v) => v.start), this.locations = c && l ? c.map((v) => Re(l, v)) : x?.map((v) => Re(v.source, v.start));
180
+ const m = Rs(
182
181
  d?.extensions
183
182
  ) ? d?.extensions : void 0;
184
183
  this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
@@ -205,7 +204,7 @@ class ze extends Error {
205
204
  value: d.stack,
206
205
  writable: !0,
207
206
  configurable: !0
208
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, ze) : Object.defineProperty(this, "stack", {
207
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, _e) : Object.defineProperty(this, "stack", {
209
208
  value: Error().stack,
210
209
  writable: !0,
211
210
  configurable: !0
@@ -220,12 +219,12 @@ class ze extends Error {
220
219
  for (const s of this.nodes)
221
220
  s.loc && (t += `
222
221
 
223
- ` + Es(s.loc));
222
+ ` + Is(s.loc));
224
223
  else if (this.source && this.locations)
225
224
  for (const s of this.locations)
226
225
  t += `
227
226
 
228
- ` + At(this.source, s);
227
+ ` + Lt(this.source, s);
229
228
  return t;
230
229
  }
231
230
  toJSON() {
@@ -235,11 +234,11 @@ class ze extends Error {
235
234
  return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
236
235
  }
237
236
  }
238
- function ct(e) {
237
+ function ut(e) {
239
238
  return e === void 0 || e.length === 0 ? void 0 : e;
240
239
  }
241
240
  function P(e, t, s) {
242
- return new ze(`Syntax Error: ${s}`, {
241
+ return new _e(`Syntax Error: ${s}`, {
243
242
  source: e,
244
243
  positions: [t]
245
244
  });
@@ -273,7 +272,7 @@ class Fa {
273
272
  };
274
273
  }
275
274
  }
276
- class Ot {
275
+ class $t {
277
276
  /**
278
277
  * The kind of Token.
279
278
  */
@@ -315,7 +314,7 @@ class Ot {
315
314
  };
316
315
  }
317
316
  }
318
- const ks = {
317
+ const zs = {
319
318
  Name: [],
320
319
  Document: ["definitions"],
321
320
  OperationDefinition: [
@@ -389,37 +388,37 @@ const ks = {
389
388
  UnionTypeExtension: ["name", "directives", "types"],
390
389
  EnumTypeExtension: ["name", "directives", "values"],
391
390
  InputObjectTypeExtension: ["name", "directives", "fields"]
392
- }, Is = new Set(Object.keys(ks));
393
- function za(e) {
391
+ }, Fs = new Set(Object.keys(zs));
392
+ function qa(e) {
394
393
  const t = e?.kind;
395
- return typeof t == "string" && Is.has(t);
394
+ return typeof t == "string" && Fs.has(t);
396
395
  }
397
- var lt;
396
+ var mt;
398
397
  (function(e) {
399
398
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
400
- })(lt || (lt = {}));
401
- function Le(e) {
399
+ })(mt || (mt = {}));
400
+ function Ee(e) {
402
401
  return e === 9 || e === 32;
403
402
  }
404
- function te(e) {
403
+ function re(e) {
405
404
  return e >= 48 && e <= 57;
406
405
  }
407
- function Pt(e) {
406
+ function Rt(e) {
408
407
  return e >= 97 && e <= 122 || // A-Z
409
408
  e >= 65 && e <= 90;
410
409
  }
411
- function Lt(e) {
412
- return Pt(e) || e === 95;
410
+ function Et(e) {
411
+ return Rt(e) || e === 95;
413
412
  }
414
- function Ds(e) {
415
- return Pt(e) || te(e) || e === 95;
413
+ function qs(e) {
414
+ return Rt(e) || re(e) || e === 95;
416
415
  }
417
- function Fs(e) {
416
+ function Vs(e) {
418
417
  var t;
419
418
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
420
419
  for (let i = 0; i < e.length; ++i) {
421
420
  var o;
422
- const l = e[i], c = zs(l);
421
+ const l = e[i], c = _s(l);
423
422
  c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
424
423
  }
425
424
  return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
@@ -427,26 +426,26 @@ function Fs(e) {
427
426
  r + 1
428
427
  );
429
428
  }
430
- function zs(e) {
429
+ function _s(e) {
431
430
  let t = 0;
432
- for (; t < e.length && Le(e.charCodeAt(t)); )
431
+ for (; t < e.length && Ee(e.charCodeAt(t)); )
433
432
  ++t;
434
433
  return t;
435
434
  }
436
- function qs(e, t) {
437
- const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
435
+ function Bs(e, t) {
436
+ const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Ee(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
438
437
  (!r || e.length > 70 || u || o || i);
439
438
  let h = "";
440
- const g = r && Le(e.charCodeAt(0));
441
- return (d && !g || o) && (h += `
439
+ const x = r && Ee(e.charCodeAt(0));
440
+ return (d && !x || o) && (h += `
442
441
  `), h += s, (d || u) && (h += `
443
442
  `), '"""' + h + '"""';
444
443
  }
445
- var x;
444
+ var g;
446
445
  (function(e) {
447
446
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
448
- })(x || (x = {}));
449
- class Vs {
447
+ })(g || (g = {}));
448
+ class Us {
450
449
  /**
451
450
  * The previously focused non-ignored token.
452
451
  */
@@ -460,7 +459,7 @@ class Vs {
460
459
  * The character offset at which the current line begins.
461
460
  */
462
461
  constructor(t) {
463
- const s = new Ot(x.SOF, 0, 0, 0, 0);
462
+ const s = new $t(g.SOF, 0, 0, 0, 0);
464
463
  this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
465
464
  }
466
465
  get [Symbol.toStringTag]() {
@@ -478,48 +477,48 @@ class Vs {
478
477
  */
479
478
  lookahead() {
480
479
  let t = this.token;
481
- if (t.kind !== x.EOF)
480
+ if (t.kind !== g.EOF)
482
481
  do
483
482
  if (t.next)
484
483
  t = t.next;
485
484
  else {
486
- const s = _s(this, t.end);
485
+ const s = Gs(this, t.end);
487
486
  t.next = s, s.prev = t, t = s;
488
487
  }
489
- while (t.kind === x.COMMENT);
488
+ while (t.kind === g.COMMENT);
490
489
  return t;
491
490
  }
492
491
  }
493
- function Bs(e) {
494
- return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
492
+ function Ms(e) {
493
+ return e === g.BANG || e === g.DOLLAR || e === g.AMP || e === g.PAREN_L || e === g.PAREN_R || e === g.SPREAD || e === g.COLON || e === g.EQUALS || e === g.AT || e === g.BRACKET_L || e === g.BRACKET_R || e === g.BRACE_L || e === g.PIPE || e === g.BRACE_R;
495
494
  }
496
- function W(e) {
495
+ function X(e) {
497
496
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
498
497
  }
499
- function he(e, t) {
500
- return $t(e.charCodeAt(t)) && Et(e.charCodeAt(t + 1));
498
+ function ve(e, t) {
499
+ return kt(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
501
500
  }
502
- function $t(e) {
501
+ function kt(e) {
503
502
  return e >= 55296 && e <= 56319;
504
503
  }
505
- function Et(e) {
504
+ function It(e) {
506
505
  return e >= 56320 && e <= 57343;
507
506
  }
508
- function _(e, t) {
507
+ function M(e, t) {
509
508
  const s = e.source.body.codePointAt(t);
510
509
  if (s === void 0)
511
- return x.EOF;
510
+ return g.EOF;
512
511
  if (s >= 32 && s <= 126) {
513
512
  const a = String.fromCodePoint(s);
514
513
  return a === '"' ? `'"'` : `"${a}"`;
515
514
  }
516
515
  return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
517
516
  }
518
- function w(e, t, s, a, r) {
517
+ function N(e, t, s, a, r) {
519
518
  const o = e.line, i = 1 + s - e.lineStart;
520
- return new Ot(t, s, a, o, i, r);
519
+ return new $t(t, s, a, o, i, r);
521
520
  }
522
- function _s(e, t) {
521
+ function Gs(e, t) {
523
522
  const s = e.source.body, a = s.length;
524
523
  let r = t;
525
524
  for (; r < a; ) {
@@ -560,7 +559,7 @@ function _s(e, t) {
560
559
  continue;
561
560
  // Comment
562
561
  case 35:
563
- return Us(e, r);
562
+ return Hs(e, r);
564
563
  // Token ::
565
564
  // - Punctuator
566
565
  // - Name
@@ -570,145 +569,145 @@ function _s(e, t) {
570
569
  //
571
570
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
572
571
  case 33:
573
- return w(e, x.BANG, r, r + 1);
572
+ return N(e, g.BANG, r, r + 1);
574
573
  case 36:
575
- return w(e, x.DOLLAR, r, r + 1);
574
+ return N(e, g.DOLLAR, r, r + 1);
576
575
  case 38:
577
- return w(e, x.AMP, r, r + 1);
576
+ return N(e, g.AMP, r, r + 1);
578
577
  case 40:
579
- return w(e, x.PAREN_L, r, r + 1);
578
+ return N(e, g.PAREN_L, r, r + 1);
580
579
  case 41:
581
- return w(e, x.PAREN_R, r, r + 1);
580
+ return N(e, g.PAREN_R, r, r + 1);
582
581
  case 46:
583
582
  if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
584
- return w(e, x.SPREAD, r, r + 3);
583
+ return N(e, g.SPREAD, r, r + 3);
585
584
  break;
586
585
  case 58:
587
- return w(e, x.COLON, r, r + 1);
586
+ return N(e, g.COLON, r, r + 1);
588
587
  case 61:
589
- return w(e, x.EQUALS, r, r + 1);
588
+ return N(e, g.EQUALS, r, r + 1);
590
589
  case 64:
591
- return w(e, x.AT, r, r + 1);
590
+ return N(e, g.AT, r, r + 1);
592
591
  case 91:
593
- return w(e, x.BRACKET_L, r, r + 1);
592
+ return N(e, g.BRACKET_L, r, r + 1);
594
593
  case 93:
595
- return w(e, x.BRACKET_R, r, r + 1);
594
+ return N(e, g.BRACKET_R, r, r + 1);
596
595
  case 123:
597
- return w(e, x.BRACE_L, r, r + 1);
596
+ return N(e, g.BRACE_L, r, r + 1);
598
597
  case 124:
599
- return w(e, x.PIPE, r, r + 1);
598
+ return N(e, g.PIPE, r, r + 1);
600
599
  case 125:
601
- return w(e, x.BRACE_R, r, r + 1);
600
+ return N(e, g.BRACE_R, r, r + 1);
602
601
  // StringValue
603
602
  case 34:
604
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ws(e, r) : Gs(e, r);
603
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ys(e, r) : Js(e, r);
605
604
  }
606
- if (te(o) || o === 45)
607
- return Ms(e, r, o);
608
- if (Lt(o))
609
- return Xs(e, r);
605
+ if (re(o) || o === 45)
606
+ return Qs(e, r, o);
607
+ if (Et(o))
608
+ return Ks(e, r);
610
609
  throw P(
611
610
  e.source,
612
611
  r,
613
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : W(o) || he(s, r) ? `Unexpected character: ${_(e, r)}.` : `Invalid character: ${_(e, r)}.`
612
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : X(o) || ve(s, r) ? `Unexpected character: ${M(e, r)}.` : `Invalid character: ${M(e, r)}.`
614
613
  );
615
614
  }
616
- return w(e, x.EOF, a, a);
615
+ return N(e, g.EOF, a, a);
617
616
  }
618
- function Us(e, t) {
617
+ function Hs(e, t) {
619
618
  const s = e.source.body, a = s.length;
620
619
  let r = t + 1;
621
620
  for (; r < a; ) {
622
621
  const o = s.charCodeAt(r);
623
622
  if (o === 10 || o === 13)
624
623
  break;
625
- if (W(o))
624
+ if (X(o))
626
625
  ++r;
627
- else if (he(s, r))
626
+ else if (ve(s, r))
628
627
  r += 2;
629
628
  else
630
629
  break;
631
630
  }
632
- return w(
631
+ return N(
633
632
  e,
634
- x.COMMENT,
633
+ g.COMMENT,
635
634
  t,
636
635
  r,
637
636
  s.slice(t + 1, r)
638
637
  );
639
638
  }
640
- function Ms(e, t, s) {
639
+ function Qs(e, t, s) {
641
640
  const a = e.source.body;
642
641
  let r = t, o = s, i = !1;
643
642
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
644
- if (o = a.charCodeAt(++r), te(o))
643
+ if (o = a.charCodeAt(++r), re(o))
645
644
  throw P(
646
645
  e.source,
647
646
  r,
648
- `Invalid number, unexpected digit after 0: ${_(
647
+ `Invalid number, unexpected digit after 0: ${M(
649
648
  e,
650
649
  r
651
650
  )}.`
652
651
  );
653
652
  } else
654
- r = Ce(e, r, o), o = a.charCodeAt(r);
655
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ce(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ce(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
653
+ r = Ae(e, r, o), o = a.charCodeAt(r);
654
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ae(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ae(e, r, o), o = a.charCodeAt(r)), o === 46 || Et(o))
656
655
  throw P(
657
656
  e.source,
658
657
  r,
659
- `Invalid number, expected digit but got: ${_(
658
+ `Invalid number, expected digit but got: ${M(
660
659
  e,
661
660
  r
662
661
  )}.`
663
662
  );
664
- return w(
663
+ return N(
665
664
  e,
666
- i ? x.FLOAT : x.INT,
665
+ i ? g.FLOAT : g.INT,
667
666
  t,
668
667
  r,
669
668
  a.slice(t, r)
670
669
  );
671
670
  }
672
- function Ce(e, t, s) {
673
- if (!te(s))
671
+ function Ae(e, t, s) {
672
+ if (!re(s))
674
673
  throw P(
675
674
  e.source,
676
675
  t,
677
- `Invalid number, expected digit but got: ${_(
676
+ `Invalid number, expected digit but got: ${M(
678
677
  e,
679
678
  t
680
679
  )}.`
681
680
  );
682
681
  const a = e.source.body;
683
682
  let r = t + 1;
684
- for (; te(a.charCodeAt(r)); )
683
+ for (; re(a.charCodeAt(r)); )
685
684
  ++r;
686
685
  return r;
687
686
  }
688
- function Gs(e, t) {
687
+ function Js(e, t) {
689
688
  const s = e.source.body, a = s.length;
690
689
  let r = t + 1, o = r, i = "";
691
690
  for (; r < a; ) {
692
691
  const l = s.charCodeAt(r);
693
692
  if (l === 34)
694
- return i += s.slice(o, r), w(e, x.STRING, t, r + 1, i);
693
+ return i += s.slice(o, r), N(e, g.STRING, t, r + 1, i);
695
694
  if (l === 92) {
696
695
  i += s.slice(o, r);
697
- const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Hs(e, r) : Qs(e, r) : Js(e, r);
696
+ const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Ws(e, r) : Xs(e, r) : Zs(e, r);
698
697
  i += c.value, r += c.size, o = r;
699
698
  continue;
700
699
  }
701
700
  if (l === 10 || l === 13)
702
701
  break;
703
- if (W(l))
702
+ if (X(l))
704
703
  ++r;
705
- else if (he(s, r))
704
+ else if (ve(s, r))
706
705
  r += 2;
707
706
  else
708
707
  throw P(
709
708
  e.source,
710
709
  r,
711
- `Invalid character within String: ${_(
710
+ `Invalid character within String: ${M(
712
711
  e,
713
712
  r
714
713
  )}.`
@@ -716,13 +715,13 @@ function Gs(e, t) {
716
715
  }
717
716
  throw P(e.source, r, "Unterminated string.");
718
717
  }
719
- function Hs(e, t) {
718
+ function Ws(e, t) {
720
719
  const s = e.source.body;
721
720
  let a = 0, r = 3;
722
721
  for (; r < 12; ) {
723
722
  const o = s.charCodeAt(t + r++);
724
723
  if (o === 125) {
725
- if (r < 5 || !W(a))
724
+ if (r < 5 || !X(a))
726
725
  break;
727
726
  return {
728
727
  value: String.fromCodePoint(a),
@@ -741,16 +740,16 @@ function Hs(e, t) {
741
740
  )}".`
742
741
  );
743
742
  }
744
- function Qs(e, t) {
745
- const s = e.source.body, a = dt(s, t + 2);
746
- if (W(a))
743
+ function Xs(e, t) {
744
+ const s = e.source.body, a = pt(s, t + 2);
745
+ if (X(a))
747
746
  return {
748
747
  value: String.fromCodePoint(a),
749
748
  size: 6
750
749
  };
751
- if ($t(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
- const r = dt(s, t + 8);
753
- if (Et(r))
750
+ if (kt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
751
+ const r = pt(s, t + 8);
752
+ if (It(r))
754
753
  return {
755
754
  value: String.fromCodePoint(a, r),
756
755
  size: 12
@@ -762,13 +761,13 @@ function Qs(e, t) {
762
761
  `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
763
762
  );
764
763
  }
765
- function dt(e, t) {
764
+ function pt(e, t) {
766
765
  return Y(e.charCodeAt(t)) << 12 | Y(e.charCodeAt(t + 1)) << 8 | Y(e.charCodeAt(t + 2)) << 4 | Y(e.charCodeAt(t + 3));
767
766
  }
768
767
  function Y(e) {
769
768
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
770
769
  }
771
- function Js(e, t) {
770
+ function Zs(e, t) {
772
771
  const s = e.source.body;
773
772
  switch (s.charCodeAt(t + 1)) {
774
773
  case 34:
@@ -822,7 +821,7 @@ function Js(e, t) {
822
821
  )}".`
823
822
  );
824
823
  }
825
- function Ws(e, t) {
824
+ function Ys(e, t) {
826
825
  const s = e.source.body, a = s.length;
827
826
  let r = e.lineStart, o = t + 3, i = o, l = "";
828
827
  const c = [];
@@ -830,13 +829,13 @@ function Ws(e, t) {
830
829
  const u = s.charCodeAt(o);
831
830
  if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
832
831
  l += s.slice(i, o), c.push(l);
833
- const d = w(
832
+ const d = N(
834
833
  e,
835
- x.BLOCK_STRING,
834
+ g.BLOCK_STRING,
836
835
  t,
837
836
  o + 3,
838
837
  // Return a string of the lines joined with U+000A.
839
- Fs(c).join(`
838
+ Vs(c).join(`
840
839
  `)
841
840
  );
842
841
  return e.line += c.length - 1, e.lineStart = r, d;
@@ -849,15 +848,15 @@ function Ws(e, t) {
849
848
  l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
850
849
  continue;
851
850
  }
852
- if (W(u))
851
+ if (X(u))
853
852
  ++o;
854
- else if (he(s, o))
853
+ else if (ve(s, o))
855
854
  o += 2;
856
855
  else
857
856
  throw P(
858
857
  e.source,
859
858
  o,
860
- `Invalid character within String: ${_(
859
+ `Invalid character within String: ${M(
861
860
  e,
862
861
  o
863
862
  )}.`
@@ -865,74 +864,74 @@ function Ws(e, t) {
865
864
  }
866
865
  throw P(e.source, o, "Unterminated string.");
867
866
  }
868
- function Xs(e, t) {
867
+ function Ks(e, t) {
869
868
  const s = e.source.body, a = s.length;
870
869
  let r = t + 1;
871
870
  for (; r < a; ) {
872
871
  const o = s.charCodeAt(r);
873
- if (Ds(o))
872
+ if (qs(o))
874
873
  ++r;
875
874
  else
876
875
  break;
877
876
  }
878
- return w(
877
+ return N(
879
878
  e,
880
- x.NAME,
879
+ g.NAME,
881
880
  t,
882
881
  r,
883
882
  s.slice(t, r)
884
883
  );
885
884
  }
886
- const Zs = 10, Rt = 2;
887
- function kt(e) {
888
- return fe(e, []);
885
+ const er = 10, Dt = 2;
886
+ function zt(e) {
887
+ return be(e, []);
889
888
  }
890
- function fe(e, t) {
889
+ function be(e, t) {
891
890
  switch (typeof e) {
892
891
  case "string":
893
892
  return JSON.stringify(e);
894
893
  case "function":
895
894
  return e.name ? `[function ${e.name}]` : "[function]";
896
895
  case "object":
897
- return Ys(e, t);
896
+ return tr(e, t);
898
897
  default:
899
898
  return String(e);
900
899
  }
901
900
  }
902
- function Ys(e, t) {
901
+ function tr(e, t) {
903
902
  if (e === null)
904
903
  return "null";
905
904
  if (t.includes(e))
906
905
  return "[Circular]";
907
906
  const s = [...t, e];
908
- if (Ks(e)) {
907
+ if (nr(e)) {
909
908
  const a = e.toJSON();
910
909
  if (a !== e)
911
- return typeof a == "string" ? a : fe(a, s);
910
+ return typeof a == "string" ? a : be(a, s);
912
911
  } else if (Array.isArray(e))
913
- return tr(e, s);
914
- return er(e, s);
912
+ return rr(e, s);
913
+ return sr(e, s);
915
914
  }
916
- function Ks(e) {
915
+ function nr(e) {
917
916
  return typeof e.toJSON == "function";
918
917
  }
919
- function er(e, t) {
918
+ function sr(e, t) {
920
919
  const s = Object.entries(e);
921
- return s.length === 0 ? "{}" : t.length > Rt ? "[" + nr(e) + "]" : "{ " + s.map(
922
- ([r, o]) => r + ": " + fe(o, t)
920
+ return s.length === 0 ? "{}" : t.length > Dt ? "[" + ar(e) + "]" : "{ " + s.map(
921
+ ([r, o]) => r + ": " + be(o, t)
923
922
  ).join(", ") + " }";
924
923
  }
925
- function tr(e, t) {
924
+ function rr(e, t) {
926
925
  if (e.length === 0)
927
926
  return "[]";
928
- if (t.length > Rt)
927
+ if (t.length > Dt)
929
928
  return "[Array]";
930
- const s = Math.min(Zs, e.length), a = e.length - s, r = [];
929
+ const s = Math.min(er, e.length), a = e.length - s, r = [];
931
930
  for (let o = 0; o < s; ++o)
932
- r.push(fe(e[o], t));
931
+ r.push(be(e[o], t));
933
932
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
934
933
  }
935
- function nr(e) {
934
+ function ar(e) {
936
935
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
937
936
  if (t === "Object" && typeof e.constructor == "function") {
938
937
  const s = e.constructor.name;
@@ -941,11 +940,11 @@ function nr(e) {
941
940
  }
942
941
  return t;
943
942
  }
944
- const sr = globalThis.process && // eslint-disable-next-line no-undef
945
- process.env.NODE_ENV === "production", rr = (
943
+ const or = globalThis.process && // eslint-disable-next-line no-undef
944
+ process.env.NODE_ENV === "production", ir = (
946
945
  /* c8 ignore next 6 */
947
946
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
948
- sr ? function(t, s) {
947
+ or ? function(t, s) {
949
948
  return t instanceof s;
950
949
  } : function(t, s) {
951
950
  if (t instanceof s)
@@ -957,7 +956,7 @@ process.env.NODE_ENV === "production", rr = (
957
956
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
958
957
  );
959
958
  if (r === o) {
960
- const i = kt(t);
959
+ const i = zt(t);
961
960
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
962
961
 
963
962
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -975,15 +974,15 @@ spurious results.`);
975
974
  return !1;
976
975
  }
977
976
  );
978
- class It {
977
+ class Ft {
979
978
  constructor(t, s = "GraphQL request", a = {
980
979
  line: 1,
981
980
  column: 1
982
981
  }) {
983
- typeof t == "string" || je(!1, `Body must be a string. Received: ${kt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || je(
982
+ typeof t == "string" || Te(!1, `Body must be a string. Received: ${zt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || Te(
984
983
  !1,
985
984
  "line in locationOffset is 1-indexed and must be positive."
986
- ), this.locationOffset.column > 0 || je(
985
+ ), this.locationOffset.column > 0 || Te(
987
986
  !1,
988
987
  "column in locationOffset is 1-indexed and must be positive."
989
988
  );
@@ -992,37 +991,37 @@ class It {
992
991
  return "Source";
993
992
  }
994
993
  }
995
- function ar(e) {
996
- return rr(e, It);
994
+ function cr(e) {
995
+ return ir(e, Ft);
997
996
  }
998
- function or(e) {
999
- const t = ar(e) ? e : new It(e), s = t.body, a = new Vs(t);
997
+ function lr(e) {
998
+ const t = cr(e) ? e : new Ft(e), s = t.body, a = new Us(t);
1000
999
  let r = "", o = !1;
1001
- for (; a.advance().kind !== x.EOF; ) {
1002
- const i = a.token, l = i.kind, c = !Bs(i.kind);
1003
- o && (c || i.kind === x.SPREAD) && (r += " ");
1000
+ for (; a.advance().kind !== g.EOF; ) {
1001
+ const i = a.token, l = i.kind, c = !Ms(i.kind);
1002
+ o && (c || i.kind === g.SPREAD) && (r += " ");
1004
1003
  const u = s.slice(i.start, i.end);
1005
- l === x.BLOCK_STRING ? r += qs(i.value, {
1004
+ l === g.BLOCK_STRING ? r += Bs(i.value, {
1006
1005
  minimize: !0
1007
1006
  }) : r += u, o = c;
1008
1007
  }
1009
1008
  return r;
1010
1009
  }
1011
- const Dt = xt(
1010
+ const qt = bt(
1012
1011
  void 0
1013
- ), qa = ({
1012
+ ), Va = ({
1014
1013
  children: e,
1015
1014
  client: t
1016
- }) => /* @__PURE__ */ n.jsx(Dt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1015
+ }) => /* @__PURE__ */ n.jsx(qt.Provider, { value: t, children: e }), Vt = (e, t, ...[s]) => ({
1017
1016
  queryFn: () => e.fetch(t, s),
1018
- queryKey: [or(t.toString()), s]
1019
- }), ir = (e, ...[t]) => {
1020
- const s = Mn(Dt);
1017
+ queryKey: [lr(t.toString()), s]
1018
+ }), dr = (e, ...[t]) => {
1019
+ const s = Qn(qt);
1021
1020
  if (s === void 0)
1022
1021
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1023
- return Ft(s, e, ...t === void 0 ? [] : [t]);
1022
+ return Vt(s, e, ...t === void 0 ? [] : [t]);
1024
1023
  };
1025
- class G extends String {
1024
+ class H extends String {
1026
1025
  __apiType;
1027
1026
  value;
1028
1027
  __meta__;
@@ -1033,7 +1032,7 @@ class G extends String {
1033
1032
  return this.value;
1034
1033
  }
1035
1034
  }
1036
- const cr = new G(
1035
+ const ur = new H(
1037
1036
  `
1038
1037
  fragment OperationsFragment on OperationItem {
1039
1038
  slug
@@ -1105,7 +1104,7 @@ const cr = new G(
1105
1104
  }
1106
1105
  `,
1107
1106
  { fragmentName: "OperationsFragment" }
1108
- ), lr = new G(`
1107
+ ), mr = new H(`
1109
1108
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1110
1109
  schema(input: $input, type: $type) {
1111
1110
  url
@@ -1114,13 +1113,13 @@ const cr = new G(
1114
1113
  }
1115
1114
  }
1116
1115
  }
1117
- `), dr = new G(`
1116
+ `), pr = new H(`
1118
1117
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1119
1118
  schema(input: $input, type: $type) {
1120
1119
  openapi
1121
1120
  }
1122
1121
  }
1123
- `), ur = new G(`
1122
+ `), hr = new H(`
1124
1123
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1125
1124
  schema(input: $input, type: $type) {
1126
1125
  servers {
@@ -1219,7 +1218,7 @@ const cr = new G(
1219
1218
  schema
1220
1219
  }
1221
1220
  }
1222
- }`), mr = new G(`
1221
+ }`), fr = new H(`
1223
1222
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1224
1223
  schema(input: $input, type: $type) {
1225
1224
  title
@@ -1234,7 +1233,7 @@ const cr = new G(
1234
1233
  }
1235
1234
  }
1236
1235
  }
1237
- `), pr = new G(`
1236
+ `), xr = new H(`
1238
1237
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1239
1238
  schema(input: $input, type: $type) {
1240
1239
  url
@@ -1243,7 +1242,7 @@ const cr = new G(
1243
1242
  }
1244
1243
  }
1245
1244
  }
1246
- `), hr = new G(`
1245
+ `), gr = new H(`
1247
1246
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1248
1247
  schema(input: $input, type: $type) {
1249
1248
  extensions
@@ -1266,20 +1265,20 @@ const cr = new G(
1266
1265
  }
1267
1266
  }
1268
1267
  }
1269
- `), fr = {
1270
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": lr,
1271
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": cr,
1272
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": dr,
1273
- "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": ur,
1274
- "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": mr,
1275
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": pr,
1276
- "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": hr
1268
+ `), yr = {
1269
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": mr,
1270
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": ur,
1271
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": pr,
1272
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": hr,
1273
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": fr,
1274
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": xr,
1275
+ "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": gr
1277
1276
  };
1278
- function gr(e) {
1279
- return fr[e] ?? {};
1277
+ function vr(e) {
1278
+ return yr[e] ?? {};
1280
1279
  }
1281
- const F = Fe.Root, zt = Fe.CollapsibleTrigger, z = Fe.CollapsibleContent;
1282
- function xr() {
1280
+ const I = Ve.Root, K = Ve.CollapsibleTrigger, D = Ve.CollapsibleContent;
1281
+ function br() {
1283
1282
  const t = navigator.userAgent.toLowerCase();
1284
1283
  if (t.indexOf("win") !== -1)
1285
1284
  return "windows";
@@ -1290,10 +1289,10 @@ function xr() {
1290
1289
  if (t.indexOf("x11") !== -1)
1291
1290
  return "unix";
1292
1291
  }
1293
- function yr() {
1294
- return xr() === "apple";
1292
+ function jr() {
1293
+ return br() === "apple";
1295
1294
  }
1296
- const vr = {
1295
+ const Cr = {
1297
1296
  other: {
1298
1297
  alt: "Alt",
1299
1298
  meta: "Ctrl",
@@ -1308,11 +1307,11 @@ const vr = {
1308
1307
  shift: "⇧",
1309
1308
  option: "⌥"
1310
1309
  }
1311
- }, br = (e, t) => {
1310
+ }, Nr = (e, t) => {
1312
1311
  const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = O(t);
1313
- return I(() => {
1312
+ return F(() => {
1314
1313
  c.current = t;
1315
- }, [t]), I(() => {
1314
+ }, [t]), F(() => {
1316
1315
  const u = (d) => {
1317
1316
  (d.code === `Key${l?.toUpperCase()}` || d.code.toLowerCase() === l?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), c.current());
1318
1317
  };
@@ -1322,24 +1321,24 @@ const vr = {
1322
1321
  }, [l, a, r, o, i]), {
1323
1322
  trigger: () => c.current(),
1324
1323
  label: s.map(
1325
- (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? vr[yr() ? "apple" : "other"][u] : u
1324
+ (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? Cr[jr() ? "apple" : "other"][u] : u
1326
1325
  )
1327
1326
  };
1328
- }, jr = $e()(
1329
- Ee(
1327
+ }, wr = ke()(
1328
+ Ie(
1330
1329
  (e) => ({
1331
1330
  selectedServer: void 0,
1332
1331
  setSelectedServer: (t) => e({ selectedServer: t })
1333
1332
  }),
1334
1333
  { name: "zudoku-selected-server" }
1335
1334
  )
1336
- ), Cr = (e) => {
1337
- const { selectedServer: t, setSelectedServer: s } = jr();
1338
- return { selectedServer: yt(
1335
+ ), Sr = (e) => {
1336
+ const { selectedServer: t, setSelectedServer: s } = wr();
1337
+ return { selectedServer: jt(
1339
1338
  () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1340
1339
  [t, e]
1341
1340
  ), setSelectedServer: s };
1342
- }, qt = q.forwardRef(
1341
+ }, _t = _.forwardRef(
1343
1342
  ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1344
1343
  "textarea",
1345
1344
  {
@@ -1352,30 +1351,30 @@ const vr = {
1352
1351
  }
1353
1352
  )
1354
1353
  );
1355
- qt.displayName = "Textarea";
1356
- const U = ({
1354
+ _t.displayName = "Textarea";
1355
+ const G = ({
1357
1356
  children: e,
1358
1357
  className: t
1359
1358
  }) => /* @__PURE__ */ n.jsxs(
1360
1359
  "div",
1361
1360
  {
1362
1361
  className: C(
1363
- "grid grid-cols-[max-content_1fr_min-content_max-content] items-center gap-4 group bg-muted w-full h-10 ps-4 pe-2 border-b",
1362
+ "grid grid-cols-[max-content_1fr_min-content_max-content] items-center gap-2 group bg-muted w-full h-10 ps-4 pe-2 border-b",
1364
1363
  t
1365
1364
  ),
1366
1365
  children: [
1367
1366
  e,
1368
1367
  /* @__PURE__ */ n.jsx(
1369
- zt,
1368
+ K,
1370
1369
  {
1371
1370
  className: C(
1372
1371
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
1373
1372
  t
1374
1373
  ),
1375
1374
  children: /* @__PURE__ */ n.jsx(
1376
- pn,
1375
+ xn,
1377
1376
  {
1378
- className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
1377
+ className: "group-data-[state=open]:rotate-180 transition-transform shrink-0",
1379
1378
  size: 16
1380
1379
  }
1381
1380
  )
@@ -1383,30 +1382,30 @@ const U = ({
1383
1382
  )
1384
1383
  ]
1385
1384
  }
1386
- ), M = ({
1385
+ ), V = ({
1387
1386
  children: e,
1388
1387
  className: t
1389
- }) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), wr = ({
1388
+ }) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), Tr = ({
1390
1389
  examples: e,
1391
1390
  onSelect: t
1392
- }) => /* @__PURE__ */ n.jsxs(ls, { children: [
1393
- /* @__PURE__ */ n.jsx(ds, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1394
- E,
1391
+ }) => /* @__PURE__ */ n.jsxs(ps, { children: [
1392
+ /* @__PURE__ */ n.jsx(hs, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1393
+ R,
1395
1394
  {
1396
1395
  variant: "ghost",
1397
1396
  size: "sm",
1398
1397
  className: "hover:bg-accent hover:brightness-95",
1399
1398
  children: [
1400
1399
  "Use Example ",
1401
- /* @__PURE__ */ n.jsx(pe, { size: 16, className: "ml-2" })
1400
+ /* @__PURE__ */ n.jsx(ne, { size: 16, className: "ml-2" })
1402
1401
  ]
1403
1402
  }
1404
1403
  ) }),
1405
- /* @__PURE__ */ n.jsx(us, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1406
- /* @__PURE__ */ n.jsx(ms, { children: s.mediaType }),
1407
- /* @__PURE__ */ n.jsx(ps, {}),
1408
- /* @__PURE__ */ n.jsx(hs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1409
- fs,
1404
+ /* @__PURE__ */ n.jsx(fs, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1405
+ /* @__PURE__ */ n.jsx(xs, { children: s.mediaType }),
1406
+ /* @__PURE__ */ n.jsx(gs, {}),
1407
+ /* @__PURE__ */ n.jsx(ys, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1408
+ vs,
1410
1409
  {
1411
1410
  onSelect: () => t(a, s.mediaType),
1412
1411
  children: /* @__PURE__ */ n.jsx(
@@ -1421,14 +1420,14 @@ const U = ({
1421
1420
  a.name
1422
1421
  )) })
1423
1422
  ] }, s.mediaType)) })
1424
- ] }), Nr = ({ content: e }) => {
1425
- const { register: t, setValue: s, watch: a } = ne(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1426
- return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
1427
- /* @__PURE__ */ n.jsxs(U, { children: [
1428
- /* @__PURE__ */ n.jsx(hn, { size: 16 }),
1429
- /* @__PURE__ */ n.jsx(M, { children: "Body" }),
1423
+ ] }), Ar = ({ content: e }) => {
1424
+ const { register: t, setValue: s, watch: a } = ae(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1425
+ return /* @__PURE__ */ n.jsxs(I, { defaultOpen: !0, children: [
1426
+ /* @__PURE__ */ n.jsxs(G, { children: [
1427
+ /* @__PURE__ */ n.jsx(gn, { size: 16 }),
1428
+ /* @__PURE__ */ n.jsx(V, { children: "Body" }),
1430
1429
  e && r.length > 0 ? /* @__PURE__ */ n.jsx(
1431
- wr,
1430
+ Tr,
1432
1431
  {
1433
1432
  examples: e,
1434
1433
  onSelect: (i, l) => {
@@ -1444,8 +1443,8 @@ const U = ({
1444
1443
  }
1445
1444
  ) : /* @__PURE__ */ n.jsx("div", {})
1446
1445
  ] }),
1447
- /* @__PURE__ */ n.jsx(z, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1448
- qt,
1446
+ /* @__PURE__ */ n.jsx(D, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1447
+ _t,
1449
1448
  {
1450
1449
  ...t("body"),
1451
1450
  className: C(
@@ -1455,7 +1454,7 @@ const U = ({
1455
1454
  }
1456
1455
  ) })
1457
1456
  ] });
1458
- }, ut = (e, t, s) => {
1457
+ }, ht = (e, t, s) => {
1459
1458
  const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1460
1459
  const i = o.replace(/[:{}]/g, "");
1461
1460
  return s.pathParams.find((c) => c.name === i)?.value ?? o;
@@ -1467,12 +1466,12 @@ const U = ({
1467
1466
  r.searchParams.set(o.name, o.value);
1468
1467
  }), r;
1469
1468
  };
1470
- function Sr(e) {
1469
+ function Or(e) {
1471
1470
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1472
1471
  e
1473
1472
  );
1474
1473
  }
1475
- const Tr = (e, t) => {
1474
+ const Pr = (e, t) => {
1476
1475
  const s = e.find(
1477
1476
  ([a]) => a.toLowerCase() === "content-disposition"
1478
1477
  )?.[1];
@@ -1489,8 +1488,8 @@ const Tr = (e, t) => {
1489
1488
  } catch {
1490
1489
  return "download";
1491
1490
  }
1492
- }, ge = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1493
- Oe.Root,
1491
+ }, oe = _.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1492
+ $e.Root,
1494
1493
  {
1495
1494
  ref: s,
1496
1495
  className: C(
@@ -1500,17 +1499,17 @@ const Tr = (e, t) => {
1500
1499
  ),
1501
1500
  ...t,
1502
1501
  children: /* @__PURE__ */ n.jsx(
1503
- Oe.Indicator,
1502
+ $e.Indicator,
1504
1503
  {
1505
1504
  className: C("flex items-center justify-center text-current"),
1506
- children: /* @__PURE__ */ n.jsx(fn, { className: "h-4 w-4" })
1505
+ children: /* @__PURE__ */ n.jsx(yn, { className: "h-4 w-4" })
1507
1506
  }
1508
1507
  )
1509
1508
  }
1510
1509
  ));
1511
- ge.displayName = Oe.Root.displayName;
1512
- const Ar = le.Root, Vt = q.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(le.Portal, { children: /* @__PURE__ */ n.jsx(
1513
- le.Content,
1510
+ oe.displayName = $e.Root.displayName;
1511
+ const Lr = fe.Root, Bt = _.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(fe.Portal, { children: /* @__PURE__ */ n.jsx(
1512
+ fe.Content,
1514
1513
  {
1515
1514
  ref: r,
1516
1515
  align: t,
@@ -1522,8 +1521,8 @@ const Ar = le.Root, Vt = q.forwardRef(({ className: e, align: t = "center", side
1522
1521
  ...a
1523
1522
  }
1524
1523
  ) }));
1525
- Vt.displayName = le.Content.displayName;
1526
- const Or = ({
1524
+ Bt.displayName = fe.Content.displayName;
1525
+ const $r = ({
1527
1526
  value: e,
1528
1527
  options: t,
1529
1528
  onChange: s,
@@ -1532,14 +1531,14 @@ const Or = ({
1532
1531
  onEnterPress: o,
1533
1532
  ref: i
1534
1533
  }) => {
1535
- const [l, c] = $(!1), [u, d] = $(!1), h = xs((m) => m.filtered.count), g = O(null);
1536
- return /* @__PURE__ */ n.jsxs(Ar, { open: l, children: [
1537
- /* @__PURE__ */ n.jsx(gs, { children: /* @__PURE__ */ n.jsx(
1538
- vs,
1534
+ const [l, c] = A(!1), [u, d] = A(!1), h = js((m) => m.filtered.count), x = O(null);
1535
+ return /* @__PURE__ */ n.jsxs(Lr, { open: l, children: [
1536
+ /* @__PURE__ */ n.jsx(bs, { children: /* @__PURE__ */ n.jsx(
1537
+ Ns,
1539
1538
  {
1540
1539
  autoComplete: "off",
1541
1540
  ref: (m) => {
1542
- g.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1541
+ x.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1543
1542
  },
1544
1543
  value: e,
1545
1544
  placeholder: r,
@@ -1549,13 +1548,13 @@ const Or = ({
1549
1548
  u || c(!1);
1550
1549
  },
1551
1550
  onKeyDown: (m) => {
1552
- m.key === "Enter" && (c(!1), g.current?.blur(), o?.(m));
1551
+ m.key === "Enter" && (c(!1), x.current?.blur(), o?.(m));
1553
1552
  },
1554
1553
  onValueChange: (m) => s(m)
1555
1554
  }
1556
1555
  ) }),
1557
1556
  /* @__PURE__ */ n.jsx(
1558
- Vt,
1557
+ Bt,
1559
1558
  {
1560
1559
  onMouseEnter: () => d(!0),
1561
1560
  onMouseLeave: () => d(!1),
@@ -1571,8 +1570,8 @@ const Or = ({
1571
1570
  onTouchMove: (m) => {
1572
1571
  m.stopPropagation();
1573
1572
  },
1574
- children: /* @__PURE__ */ n.jsx(bs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1575
- js,
1573
+ children: /* @__PURE__ */ n.jsx(ws, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1574
+ Ss,
1576
1575
  {
1577
1576
  value: m,
1578
1577
  onSelect: (v) => {
@@ -1586,23 +1585,23 @@ const Or = ({
1586
1585
  }
1587
1586
  )
1588
1587
  ] });
1589
- }, ue = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(ys, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(Or, { ...t }) }), se = (e, t) => {
1590
- const s = q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1591
- const l = r ? Cs : e;
1592
- return q.createElement(l, {
1588
+ }, ge = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(Cs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx($r, { ...t }) }), ie = (e, t) => {
1589
+ const s = _.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1590
+ const l = r ? Ts : e;
1591
+ return _.createElement(l, {
1593
1592
  ...o,
1594
1593
  ref: i,
1595
1594
  className: typeof t == "function" ? t({ className: a }) : C(t, a)
1596
1595
  });
1597
1596
  });
1598
1597
  return s.displayName = `VariantComponent(${e})`, s;
1599
- }, qe = se(
1598
+ }, Be = ie(
1600
1599
  "div",
1601
1600
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
1602
- ), me = se(
1601
+ ), ye = ie(
1603
1602
  "div",
1604
1603
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1605
- ), Pr = Object.freeze([
1604
+ ), Rr = Object.freeze([
1606
1605
  "Accept",
1607
1606
  "Accept-Encoding",
1608
1607
  "Accept-Language",
@@ -1629,63 +1628,63 @@ const Or = ({
1629
1628
  "Set-Cookie",
1630
1629
  "User-Agent",
1631
1630
  "X-Requested-With"
1632
- ]), Lr = ({
1631
+ ]), Er = ({
1633
1632
  control: e,
1634
1633
  schemaHeaders: t,
1635
1634
  lockedHeaders: s
1636
1635
  }) => {
1637
- const { fields: a, append: r, remove: o } = De({
1636
+ const { fields: a, append: r, remove: o } = qe({
1638
1637
  control: e,
1639
1638
  name: "headers"
1640
- }), { setValue: i, watch: l, formState: c } = ne(), u = O([]), d = O([]), h = l("headers"), g = vt(
1639
+ }), { setValue: i, watch: l, formState: c } = ae(), u = O([]), d = O([]), h = l("headers"), x = Ct(
1641
1640
  (f) => {
1642
1641
  f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1643
1642
  },
1644
1643
  [r]
1645
1644
  );
1646
- I(() => {
1647
- h.length === 0 && g();
1648
- }, [h, g]);
1645
+ F(() => {
1646
+ h.length === 0 && x();
1647
+ }, [h, x]);
1649
1648
  const m = (f) => {
1650
1649
  u.current[f]?.focus();
1651
1650
  }, v = (f) => {
1652
- g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
1653
- }, y = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((N) => N.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), T = s?.map((f) => ({
1651
+ x(), requestAnimationFrame(() => d.current[f + 1]?.focus());
1652
+ }, y = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((w) => w.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), T = s?.map((f) => ({
1654
1653
  name: f,
1655
1654
  id: `locked-${f}`,
1656
1655
  value: "••••••••••",
1657
1656
  active: !0,
1658
1657
  locked: !0
1659
1658
  })) ?? [];
1660
- return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
1661
- /* @__PURE__ */ n.jsxs(U, { children: [
1662
- /* @__PURE__ */ n.jsx(gn, { size: 16 }),
1663
- /* @__PURE__ */ n.jsx(M, { children: "Headers" }),
1659
+ return /* @__PURE__ */ n.jsxs(I, { defaultOpen: !0, children: [
1660
+ /* @__PURE__ */ n.jsxs(G, { children: [
1661
+ /* @__PURE__ */ n.jsx(vn, { size: 16 }),
1662
+ /* @__PURE__ */ n.jsx(V, { children: "Headers" }),
1664
1663
  /* @__PURE__ */ n.jsxs(
1665
- ce,
1664
+ he,
1666
1665
  {
1667
- onClick: g,
1666
+ onClick: x,
1668
1667
  type: "button",
1669
1668
  size: "sm",
1670
1669
  variant: "ghost",
1671
1670
  className: "hover:bg-accent hover:brightness-95 flex gap-2",
1672
1671
  children: [
1673
1672
  "Add header ",
1674
- /* @__PURE__ */ n.jsx(pe, { size: 16 })
1673
+ /* @__PURE__ */ n.jsx(ne, { size: 16 })
1675
1674
  ]
1676
1675
  }
1677
1676
  )
1678
1677
  ] }),
1679
- /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
1680
- T.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
1681
- /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1682
- me,
1678
+ /* @__PURE__ */ n.jsx(D, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(Be, { children: [
1679
+ T.map((f) => /* @__PURE__ */ n.jsxs(it, { children: [
1680
+ /* @__PURE__ */ n.jsx(ct, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1681
+ ye,
1683
1682
  {
1684
1683
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
1685
1684
  children: [
1686
- /* @__PURE__ */ n.jsx(xn, { size: 16 }),
1685
+ /* @__PURE__ */ n.jsx(bn, { size: 16 }),
1687
1686
  /* @__PURE__ */ n.jsx(
1688
- de,
1687
+ xe,
1689
1688
  {
1690
1689
  value: f.name,
1691
1690
  disabled: !0,
@@ -1698,7 +1697,7 @@ const Or = ({
1698
1697
  f.id
1699
1698
  ) }),
1700
1699
  /* @__PURE__ */ n.jsx(
1701
- ot,
1700
+ lt,
1702
1701
  {
1703
1702
  alignOffset: 10,
1704
1703
  side: "bottom",
@@ -1709,10 +1708,10 @@ const Or = ({
1709
1708
  ] }, f.id)),
1710
1709
  a.map((f, j) => {
1711
1710
  const L = t.find(
1712
- (N) => N.name === h.at(j)?.name
1711
+ (w) => w.name === h.at(j)?.name
1713
1712
  );
1714
1713
  return /* @__PURE__ */ n.jsxs(
1715
- me,
1714
+ ye,
1716
1715
  {
1717
1716
  className: C(
1718
1717
  b.includes(j) && "text-amber-600",
@@ -1720,27 +1719,27 @@ const Or = ({
1720
1719
  ),
1721
1720
  children: [
1722
1721
  /* @__PURE__ */ n.jsx(
1723
- D,
1722
+ q,
1724
1723
  {
1725
1724
  control: e,
1726
1725
  name: `headers.${j}.active`,
1727
- render: ({ field: N }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1726
+ render: ({ field: w }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1728
1727
  /* @__PURE__ */ n.jsx(
1729
- ge,
1728
+ oe,
1730
1729
  {
1731
1730
  id: `headers.${j}.active`,
1732
1731
  className: C(
1733
1732
  b.includes(j) && "hidden"
1734
1733
  ),
1735
- checked: N.value,
1736
- onCheckedChange: (k) => {
1737
- N.onChange(k);
1734
+ checked: w.value,
1735
+ onCheckedChange: (z) => {
1736
+ w.onChange(z);
1738
1737
  }
1739
1738
  }
1740
1739
  ),
1741
- /* @__PURE__ */ n.jsxs(rt, { children: [
1742
- /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1743
- yn,
1740
+ /* @__PURE__ */ n.jsxs(it, { children: [
1741
+ /* @__PURE__ */ n.jsx(ct, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1742
+ jn,
1744
1743
  {
1745
1744
  className: C(
1746
1745
  "text-amber-600",
@@ -1750,7 +1749,7 @@ const Or = ({
1750
1749
  }
1751
1750
  ) }),
1752
1751
  /* @__PURE__ */ n.jsx(
1753
- ot,
1752
+ lt,
1754
1753
  {
1755
1754
  alignOffset: 10,
1756
1755
  side: "bottom",
@@ -1763,23 +1762,23 @@ const Or = ({
1763
1762
  }
1764
1763
  ),
1765
1764
  /* @__PURE__ */ n.jsx(
1766
- D,
1765
+ q,
1767
1766
  {
1768
1767
  control: e,
1769
1768
  name: `headers.${j}.name`,
1770
- render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1771
- ue,
1769
+ render: ({ field: w }) => /* @__PURE__ */ n.jsx(
1770
+ ge,
1772
1771
  {
1773
- ...N,
1772
+ ...w,
1774
1773
  placeholder: "Name",
1775
1774
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1776
- options: [...y, ...Pr],
1775
+ options: [...y, ...Rr],
1777
1776
  onEnterPress: () => m(j),
1778
- onChange: (k) => {
1779
- N.onChange(k), i(`headers.${j}.active`, !0);
1777
+ onChange: (z) => {
1778
+ w.onChange(z), i(`headers.${j}.active`, !0);
1780
1779
  },
1781
- ref: (k) => {
1782
- d.current[j] = k;
1780
+ ref: (z) => {
1781
+ d.current[j] = z;
1783
1782
  }
1784
1783
  }
1785
1784
  )
@@ -1787,47 +1786,47 @@ const Or = ({
1787
1786
  ),
1788
1787
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1789
1788
  /* @__PURE__ */ n.jsx(
1790
- D,
1789
+ q,
1791
1790
  {
1792
1791
  control: e,
1793
1792
  name: `headers.${j}.value`,
1794
- render: ({ field: N }) => L?.enum && L.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1795
- ue,
1793
+ render: ({ field: w }) => L?.enum && L.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1794
+ ge,
1796
1795
  {
1797
1796
  shouldFilter: !1,
1798
- value: N.value,
1797
+ value: w.value,
1799
1798
  options: L.enum ?? [],
1800
- onChange: (A) => {
1801
- N.onChange(A), i(`headers.${j}.active`, !0);
1799
+ onChange: (E) => {
1800
+ w.onChange(E), i(`headers.${j}.active`, !0);
1802
1801
  },
1803
1802
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1804
1803
  }
1805
1804
  ) : /* @__PURE__ */ n.jsx(
1806
- de,
1805
+ xe,
1807
1806
  {
1808
1807
  placeholder: "Value",
1809
1808
  className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
1810
1809
  autoComplete: "off",
1811
- ...N,
1812
- ref: (A) => {
1813
- u.current[j] = A;
1810
+ ...w,
1811
+ ref: (E) => {
1812
+ u.current[j] = E;
1814
1813
  },
1815
- onKeyDown: (A) => {
1816
- A.key === "Enter" && A.currentTarget.value.trim() && v(j);
1814
+ onKeyDown: (E) => {
1815
+ E.key === "Enter" && E.currentTarget.value.trim() && v(j);
1817
1816
  }
1818
1817
  }
1819
1818
  )
1820
1819
  }
1821
1820
  ),
1822
1821
  /* @__PURE__ */ n.jsx(
1823
- ce,
1822
+ he,
1824
1823
  {
1825
1824
  size: "icon-xs",
1826
1825
  variant: "ghost",
1827
1826
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
1828
1827
  onClick: () => o(j),
1829
1828
  type: "button",
1830
- children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
1829
+ children: /* @__PURE__ */ n.jsx(yt, { size: 16 })
1831
1830
  }
1832
1831
  )
1833
1832
  ] })
@@ -1838,28 +1837,28 @@ const Or = ({
1838
1837
  })
1839
1838
  ] }) }) }) })
1840
1839
  ] });
1841
- }, $r = Ns(
1840
+ }, kr = Os(
1842
1841
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1843
- ), Ve = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1844
- Tt.Root,
1842
+ ), je = _.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1843
+ Pt.Root,
1845
1844
  {
1846
1845
  ref: s,
1847
- className: C($r(), e),
1846
+ className: C(kr(), e),
1848
1847
  ...t
1849
1848
  }
1850
1849
  ));
1851
- Ve.displayName = Tt.Root.displayName;
1852
- const Bt = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1853
- ee.Root,
1850
+ je.displayName = Pt.Root.displayName;
1851
+ const Ut = _.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1852
+ se.Root,
1854
1853
  {
1855
1854
  className: C("grid gap-2", e),
1856
1855
  ...t,
1857
1856
  ref: s
1858
1857
  }
1859
1858
  ));
1860
- Bt.displayName = ee.Root.displayName;
1861
- const _t = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1862
- ee.Item,
1859
+ Ut.displayName = se.Root.displayName;
1860
+ const Mt = _.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1861
+ se.Item,
1863
1862
  {
1864
1863
  ref: s,
1865
1864
  className: C(
@@ -1867,29 +1866,29 @@ const _t = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1867
1866
  e
1868
1867
  ),
1869
1868
  ...t,
1870
- children: /* @__PURE__ */ n.jsx(ee.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1869
+ children: /* @__PURE__ */ n.jsx(se.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Cn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1871
1870
  }
1872
1871
  ));
1873
- _t.displayName = ee.Item.displayName;
1874
- const Ut = ({
1872
+ Mt.displayName = se.Item.displayName;
1873
+ const Gt = ({
1875
1874
  identities: e,
1876
1875
  setValue: t,
1877
1876
  value: s
1878
1877
  }) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
1879
- Bt,
1878
+ Ut,
1880
1879
  {
1881
1880
  onValueChange: (a) => t(a),
1882
1881
  value: s,
1883
- defaultValue: K,
1882
+ defaultValue: te,
1884
1883
  className: "gap-0",
1885
1884
  disabled: e?.length === 0,
1886
- children: [{ id: K, label: "None" }, ...e ?? []].map(
1885
+ children: [{ id: te, label: "None" }, ...e ?? []].map(
1887
1886
  (a) => /* @__PURE__ */ n.jsxs(
1888
- Ve,
1887
+ je,
1889
1888
  {
1890
1889
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
1891
1890
  children: [
1892
- /* @__PURE__ */ n.jsx(_t, { value: a.id, id: a.id }),
1891
+ /* @__PURE__ */ n.jsx(Mt, { value: a.id, id: a.id }),
1893
1892
  /* @__PURE__ */ n.jsx("span", { children: a.label })
1894
1893
  ]
1895
1894
  },
@@ -1897,28 +1896,28 @@ const Ut = ({
1897
1896
  )
1898
1897
  )
1899
1898
  }
1900
- ) }), Er = ({
1899
+ ) }), Ir = ({
1901
1900
  onSubmit: e,
1902
1901
  identities: t,
1903
1902
  open: s,
1904
1903
  onOpenChange: a
1905
1904
  }) => {
1906
- const [r, o] = $(void 0), [i, l] = $(!1);
1907
- return /* @__PURE__ */ n.jsx(Re, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
1908
- /* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
1909
- /* @__PURE__ */ n.jsx(bt, { children: "Please select an identity for this request." }),
1910
- /* @__PURE__ */ n.jsx(ws, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
1911
- Ut,
1905
+ const [r, o] = A(void 0), [i, l] = A(!1);
1906
+ return /* @__PURE__ */ n.jsx(De, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ze, { children: [
1907
+ /* @__PURE__ */ n.jsx(Fe, { children: "Select an auth identity" }),
1908
+ /* @__PURE__ */ n.jsx(Nt, { children: "Please select an identity for this request." }),
1909
+ /* @__PURE__ */ n.jsx(As, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
1910
+ Gt,
1912
1911
  {
1913
1912
  identities: t,
1914
1913
  setValue: o,
1915
1914
  value: r
1916
1915
  }
1917
1916
  ) }),
1918
- /* @__PURE__ */ n.jsxs(jt, { className: "flex flex-col gap-2", children: [
1917
+ /* @__PURE__ */ n.jsxs(wt, { className: "flex flex-col gap-2", children: [
1919
1918
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1920
1919
  /* @__PURE__ */ n.jsx(
1921
- ge,
1920
+ oe,
1922
1921
  {
1923
1922
  id: "remember",
1924
1923
  checked: i,
@@ -1927,10 +1926,10 @@ const Ut = ({
1927
1926
  )
1928
1927
  }
1929
1928
  ),
1930
- /* @__PURE__ */ n.jsx(Ve, { htmlFor: "remember", children: "Remember my choice" })
1929
+ /* @__PURE__ */ n.jsx(je, { htmlFor: "remember", children: "Remember my choice" })
1931
1930
  ] }),
1932
1931
  /* @__PURE__ */ n.jsx(
1933
- E,
1932
+ R,
1934
1933
  {
1935
1934
  onClick: () => e({ identity: r, rememberedIdentity: i }),
1936
1935
  children: "Send"
@@ -1938,24 +1937,24 @@ const Ut = ({
1938
1937
  )
1939
1938
  ] })
1940
1939
  ] }) });
1941
- }, we = (e) => Math.abs(
1940
+ }, Oe = (e) => Math.abs(
1942
1941
  Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
1943
- ), Ne = (e) => e.length > 1 ? Number(e.split("").reduce((t, s) => `${we(t) + we(s)}`)) : we(e), mt = (e, t = {}) => {
1944
- const s = (3 * Ne(e) + 2 * Ne(e) + Ne(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1942
+ ), Pe = (e) => e.length > 1 ? Number(e.split("").reduce((t, s) => `${Oe(t) + Oe(s)}`)) : Oe(e), ft = (e, t = {}) => {
1943
+ const s = (3 * Pe(e) + 2 * Pe(e) + Pe(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1945
1944
  return `${s}deg ${a}% ${r}%`;
1946
- }, Se = "data-linked-param", Rr = (e) => {
1947
- const { resolvedTheme: t } = Ss();
1945
+ }, Le = "data-linked-param", Dr = (e) => {
1946
+ const { resolvedTheme: t } = Ps();
1948
1947
  return {
1949
- text: mt(
1948
+ text: ft(
1950
1949
  e,
1951
1950
  t === "light" ? { saturation: 95, lightness: 38 } : {}
1952
1951
  ),
1953
- background: mt(
1952
+ background: ft(
1954
1953
  e,
1955
1954
  t === "light" ? { saturation: 85, lightness: 40 } : {}
1956
1955
  )
1957
1956
  };
1958
- }, Mt = ({
1957
+ }, Ht = ({
1959
1958
  name: e,
1960
1959
  className: t,
1961
1960
  slug: s,
@@ -1963,15 +1962,15 @@ const Ut = ({
1963
1962
  children: r,
1964
1963
  onClick: o
1965
1964
  }) => {
1966
- const i = O(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Rr(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
1967
- return I(() => {
1965
+ const i = O(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Dr(c), h = `hsl(${u} / 100%)`, x = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
1966
+ return F(() => {
1968
1967
  if (!l || !i.current) return;
1969
1968
  const v = () => {
1970
- document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
1969
+ document.querySelectorAll(`[${Le}="${l}"]`).forEach((T) => {
1971
1970
  T instanceof HTMLElement && (T.dataset.active = "true");
1972
1971
  });
1973
1972
  }, y = () => {
1974
- document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
1973
+ document.querySelectorAll(`[${Le}="${l}"]`).forEach((T) => {
1975
1974
  T instanceof HTMLElement && (T.dataset.active = "false");
1976
1975
  });
1977
1976
  }, b = i.current;
@@ -1983,7 +1982,7 @@ const Ut = ({
1983
1982
  /* @__PURE__ */ n.jsx(
1984
1983
  "span",
1985
1984
  {
1986
- [Se]: l,
1985
+ [Le]: l,
1987
1986
  className: C(
1988
1987
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
1989
1988
  "relative transition-all duration-100 rounded-lg",
@@ -1998,29 +1997,29 @@ const Ut = ({
1998
1997
  style: {
1999
1998
  "--param-color": h,
2000
1999
  "--border-color": m,
2001
- "--background-color": g
2000
+ "--background-color": x
2002
2001
  },
2003
2002
  children: r ?? e
2004
2003
  }
2005
2004
  );
2006
- }, kr = ({
2005
+ }, zr = ({
2007
2006
  control: e,
2008
2007
  url: t
2009
2008
  }) => {
2010
- const { fields: s } = De({
2009
+ const { fields: s } = qe({
2011
2010
  control: e,
2012
2011
  name: "pathParams"
2013
2012
  }), a = [...s].sort(
2014
2013
  (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
2015
2014
  );
2016
- return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(me, { children: [
2015
+ return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Be, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(ye, { children: [
2017
2016
  /* @__PURE__ */ n.jsx(
2018
- D,
2017
+ q,
2019
2018
  {
2020
2019
  control: e,
2021
2020
  name: `pathParams.${o}.name`,
2022
2021
  render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2023
- Mt,
2022
+ Ht,
2024
2023
  {
2025
2024
  slug: r.name,
2026
2025
  name: r.name,
@@ -2030,12 +2029,12 @@ const Ut = ({
2030
2029
  }
2031
2030
  ),
2032
2031
  /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ n.jsx(
2033
- D,
2032
+ q,
2034
2033
  {
2035
2034
  control: e,
2036
2035
  name: `pathParams.${o}.value`,
2037
2036
  render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2038
- de,
2037
+ xe,
2039
2038
  {
2040
2039
  ...i,
2041
2040
  required: !0,
@@ -2046,29 +2045,29 @@ const Ut = ({
2046
2045
  }
2047
2046
  ) })
2048
2047
  ] }, r.id)) }) });
2049
- }, Ir = se(
2048
+ }, Fr = ie(
2050
2049
  "input",
2051
2050
  "bg-transparent h-9 font-mono text-xs"
2052
- ), Dr = ({
2051
+ ), qr = ({
2053
2052
  control: e,
2054
2053
  schemaQueryParams: t
2055
2054
  }) => {
2056
- const { fields: s, remove: a, append: r } = De({
2055
+ const { fields: s, remove: a, append: r } = qe({
2057
2056
  control: e,
2058
2057
  name: "queryParams"
2059
- }), { setValue: o, getValues: i, watch: l } = ne(), c = l("queryParams");
2060
- I(() => {
2058
+ }), { setValue: o, getValues: i, watch: l } = ae(), c = l("queryParams");
2059
+ F(() => {
2061
2060
  c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
2062
2061
  }, [c, r]);
2063
2062
  const u = t.map(
2064
2063
  (d) => !!d.isRequired
2065
2064
  );
2066
- return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2067
- /* @__PURE__ */ n.jsxs(U, { children: [
2068
- /* @__PURE__ */ n.jsx(bn, { size: 16 }),
2069
- /* @__PURE__ */ n.jsx(M, { children: "Query Parameters" }),
2065
+ return /* @__PURE__ */ n.jsxs(I, { defaultOpen: !0, children: [
2066
+ /* @__PURE__ */ n.jsxs(G, { children: [
2067
+ /* @__PURE__ */ n.jsx(Nn, { size: 16 }),
2068
+ /* @__PURE__ */ n.jsx(V, { children: "Query Parameters" }),
2070
2069
  /* @__PURE__ */ n.jsxs(
2071
- E,
2070
+ R,
2072
2071
  {
2073
2072
  onClick: () => {
2074
2073
  o("queryParams", [
@@ -2082,23 +2081,23 @@ const Ut = ({
2082
2081
  className: "hover:bg-accent hover:brightness-95 flex gap-2",
2083
2082
  children: [
2084
2083
  "Add parameter ",
2085
- /* @__PURE__ */ n.jsx(pe, { size: 16 })
2084
+ /* @__PURE__ */ n.jsx(ne, { size: 16 })
2086
2085
  ]
2087
2086
  }
2088
2087
  )
2089
2088
  ] }),
2090
- /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
2091
- const g = t.find(
2089
+ /* @__PURE__ */ n.jsx(D, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(Be, { children: s.map((d, h) => {
2090
+ const x = t.find(
2092
2091
  (m) => m.name === c.at(h)?.name
2093
2092
  );
2094
- return /* @__PURE__ */ n.jsxs(me, { children: [
2093
+ return /* @__PURE__ */ n.jsxs(ye, { children: [
2095
2094
  /* @__PURE__ */ n.jsx(
2096
- D,
2095
+ q,
2097
2096
  {
2098
2097
  control: e,
2099
2098
  name: `queryParams.${h}.active`,
2100
2099
  render: ({ field: m }) => /* @__PURE__ */ n.jsx(
2101
- ge,
2100
+ oe,
2102
2101
  {
2103
2102
  id: `queryParams.${h}.active`,
2104
2103
  checked: m.value,
@@ -2108,10 +2107,10 @@ const Ut = ({
2108
2107
  }
2109
2108
  ),
2110
2109
  /* @__PURE__ */ n.jsx(
2111
- D,
2110
+ q,
2112
2111
  {
2113
2112
  control: e,
2114
- render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Ir, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2113
+ render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Fr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2115
2114
  "label",
2116
2115
  {
2117
2116
  className: "flex items-center cursor-pointer gap-1",
@@ -2123,7 +2122,7 @@ const Ut = ({
2123
2122
  ]
2124
2123
  }
2125
2124
  ) }) : /* @__PURE__ */ n.jsx(
2126
- ue,
2125
+ ge,
2127
2126
  {
2128
2127
  placeholder: "Name",
2129
2128
  value: m.value,
@@ -2139,21 +2138,21 @@ const Ut = ({
2139
2138
  ),
2140
2139
  /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center", children: [
2141
2140
  /* @__PURE__ */ n.jsx(
2142
- D,
2141
+ q,
2143
2142
  {
2144
2143
  control: e,
2145
- render: ({ field: m }) => g?.enum && g.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2146
- ue,
2144
+ render: ({ field: m }) => x?.enum && x.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2145
+ ge,
2147
2146
  {
2148
2147
  value: m.value,
2149
- options: g.enum ?? [],
2148
+ options: x.enum ?? [],
2150
2149
  onChange: (y) => {
2151
2150
  m.onChange(y), o(`queryParams.${h}.active`, !0);
2152
2151
  },
2153
2152
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2154
2153
  }
2155
2154
  ) : /* @__PURE__ */ n.jsx(
2156
- de,
2155
+ xe,
2157
2156
  {
2158
2157
  ...m,
2159
2158
  onChange: (y) => {
@@ -2168,37 +2167,53 @@ const Ut = ({
2168
2167
  }
2169
2168
  ),
2170
2169
  /* @__PURE__ */ n.jsx(
2171
- E,
2170
+ R,
2172
2171
  {
2173
2172
  size: "icon-xs",
2174
2173
  variant: "ghost",
2175
2174
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2176
2175
  onClick: () => a(h),
2177
2176
  type: "button",
2178
- children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
2177
+ children: /* @__PURE__ */ n.jsx(yt, { size: 16 })
2179
2178
  }
2180
2179
  )
2181
2180
  ] })
2182
2181
  ] }, d.id);
2183
2182
  }) }) }) })
2184
2183
  ] });
2185
- }, Fr = ({
2184
+ }, Vr = ({
2186
2185
  open: e,
2187
2186
  setOpen: t,
2188
2187
  onSignUp: s,
2189
- onLogin: a
2190
- }) => /* @__PURE__ */ n.jsx(Re, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2191
- /* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
2192
- /* @__PURE__ */ n.jsx(bt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2193
- /* @__PURE__ */ n.jsxs(jt, { className: "flex gap-2 sm:justify-between", children: [
2194
- /* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2195
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2196
- s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2197
- a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
2188
+ onLogin: a,
2189
+ onSkip: r
2190
+ }) => {
2191
+ const [o, i] = A(!1), l = () => {
2192
+ r?.(o), t(!1);
2193
+ };
2194
+ return /* @__PURE__ */ n.jsx(De, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ze, { children: [
2195
+ /* @__PURE__ */ n.jsx(Fe, { children: "Welcome to the Playground!" }),
2196
+ /* @__PURE__ */ n.jsx(Nt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2197
+ /* @__PURE__ */ n.jsxs(je, { className: "flex items-center gap-2 font-normal", children: [
2198
+ /* @__PURE__ */ n.jsx(
2199
+ oe,
2200
+ {
2201
+ checked: o,
2202
+ onCheckedChange: (c) => i(c === !0)
2203
+ }
2204
+ ),
2205
+ "Don't show this again"
2206
+ ] }),
2207
+ /* @__PURE__ */ n.jsxs(wt, { className: "flex gap-2 sm:justify-between", children: [
2208
+ /* @__PURE__ */ n.jsx(R, { type: "button", variant: "outline", onClick: l, children: "Skip" }),
2209
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2210
+ s && /* @__PURE__ */ n.jsx(R, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2211
+ a && /* @__PURE__ */ n.jsx(R, { type: "button", variant: "default", onClick: a, children: "Login" })
2212
+ ] })
2198
2213
  ] })
2199
- ] })
2200
- ] }) }), zr = $e()(
2201
- Ee(
2214
+ ] }) });
2215
+ }, _r = ke()(
2216
+ Ie(
2202
2217
  (e, t) => ({
2203
2218
  rememberedIdentity: null,
2204
2219
  setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
@@ -2208,10 +2223,10 @@ const Ut = ({
2208
2223
  }),
2209
2224
  {
2210
2225
  name: "identity-storage",
2211
- storage: gt(() => sessionStorage)
2226
+ storage: vt(() => sessionStorage)
2212
2227
  }
2213
2228
  )
2214
- ), qr = ({
2229
+ ), Br = ({
2215
2230
  path: e,
2216
2231
  renderParam: t
2217
2232
  }) => {
@@ -2222,12 +2237,12 @@ const Ut = ({
2222
2237
  return i.forEach((u) => {
2223
2238
  const [d, h] = u;
2224
2239
  if (!h) return;
2225
- const g = u.index;
2226
- g > c && l.push(
2227
- /* @__PURE__ */ n.jsx(Z, { children: a.slice(c, g) }, `text-${c}-${g}`)
2240
+ const x = u.index;
2241
+ x > c && l.push(
2242
+ /* @__PURE__ */ n.jsx(Z, { children: a.slice(c, x) }, `text-${c}-${x}`)
2228
2243
  ), l.push(
2229
2244
  /* @__PURE__ */ n.jsx(Z, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2230
- ), c = g + d.length;
2245
+ ), c = x + d.length;
2231
2246
  }), c < a.length && l.push(
2232
2247
  /* @__PURE__ */ n.jsx(Z, { children: a.slice(c) }, `text-${c}-${a.length}`)
2233
2248
  ), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
@@ -2237,10 +2252,10 @@ const Ut = ({
2237
2252
  /* @__PURE__ */ n.jsx("wbr", {})
2238
2253
  ] }, `${a}-${r}`);
2239
2254
  });
2240
- }, Vr = ({ url: e }) => {
2241
- const { watch: t, setFocus: s } = ne(), [a] = t(["pathParams"]);
2255
+ }, Ur = ({ url: e }) => {
2256
+ const { watch: t, setFocus: s } = ae(), [a] = t(["pathParams"]);
2242
2257
  return /* @__PURE__ */ n.jsx(
2243
- qr,
2258
+ Br,
2244
2259
  {
2245
2260
  path: e,
2246
2261
  renderParam: ({ name: r, originalValue: o, index: i }) => {
@@ -2248,7 +2263,7 @@ const Ut = ({
2248
2263
  (c) => c.name === r
2249
2264
  )?.value;
2250
2265
  return /* @__PURE__ */ n.jsx(
2251
- Mt,
2266
+ Ht,
2252
2267
  {
2253
2268
  name: r,
2254
2269
  backgroundOpacity: "0",
@@ -2260,8 +2275,8 @@ const Ut = ({
2260
2275
  }
2261
2276
  }
2262
2277
  );
2263
- }, Br = () => {
2264
- const { watch: e } = ne(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(Z, { children: [
2278
+ }, Mr = () => {
2279
+ const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(Z, { children: [
2265
2280
  a.name,
2266
2281
  "=",
2267
2282
  encodeURIComponent(a.value).replaceAll("%20", "+"),
@@ -2272,12 +2287,12 @@ const Ut = ({
2272
2287
  s.length > 0 ? "?" : "",
2273
2288
  s
2274
2289
  ] });
2275
- }, Gt = (e = 0) => {
2290
+ }, Qt = (e = 0) => {
2276
2291
  if (e === 0)
2277
2292
  return "0 B";
2278
2293
  const t = Math.floor(Math.log(e) / Math.log(1e3));
2279
2294
  return `${(e / 1e3 ** t).toFixed(t ? 2 : 0)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2280
- }, _r = ({ status: e }) => {
2295
+ }, Gr = ({ status: e }) => {
2281
2296
  if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2282
2297
  switch (Number(e.toString().slice(0, 1))) {
2283
2298
  case 2:
@@ -2289,15 +2304,15 @@ const Ut = ({
2289
2304
  default:
2290
2305
  return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2291
2306
  }
2292
- }, Ur = () => {
2293
- const e = O(null), t = O(null), s = O(Date.now()), a = O(null), r = vt(() => {
2307
+ }, Hr = () => {
2308
+ const e = O(null), t = O(null), s = O(Date.now()), a = O(null), r = Ct(() => {
2294
2309
  if (t.current) {
2295
2310
  const o = Date.now() - s.current;
2296
2311
  t.current.nodeValue = o.toFixed();
2297
2312
  }
2298
2313
  a.current = requestAnimationFrame(r);
2299
2314
  }, []);
2300
- return Gn(() => {
2315
+ return Jn(() => {
2301
2316
  const o = e.current;
2302
2317
  if (!o) return;
2303
2318
  const i = document.createTextNode("0");
@@ -2305,7 +2320,7 @@ const Ut = ({
2305
2320
  a.current && cancelAnimationFrame(a.current), t.current && o.contains(i) && o.removeChild(i);
2306
2321
  };
2307
2322
  }, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2308
- }, Mr = ({
2323
+ }, Qr = ({
2309
2324
  status: e,
2310
2325
  time: t,
2311
2326
  size: s,
@@ -2324,9 +2339,9 @@ const Ut = ({
2324
2339
  405: "Method Not Allowed",
2325
2340
  500: "Internal Server Error"
2326
2341
  };
2327
- return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2342
+ return /* @__PURE__ */ n.jsxs("div", { className: "relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2328
2343
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2329
- /* @__PURE__ */ n.jsx(_r, { status: e }),
2344
+ /* @__PURE__ */ n.jsx(Gr, { status: e }),
2330
2345
  " ",
2331
2346
  e ?? "Sending Request...",
2332
2347
  e ? ` ${o[e]}` : ""
@@ -2335,19 +2350,19 @@ const Ut = ({
2335
2350
  /* @__PURE__ */ n.jsxs("div", { children: [
2336
2351
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2337
2352
  " ",
2338
- /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Gt(s) : "- B" })
2353
+ /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Qt(s) : "- B" })
2339
2354
  ] }),
2340
2355
  /* @__PURE__ */ n.jsxs("div", { children: [
2341
2356
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2342
2357
  " ",
2343
- t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Ur, {}),
2358
+ t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Hr, {}),
2344
2359
  "ms"
2345
2360
  ] })
2346
2361
  ] }),
2347
2362
  /* @__PURE__ */ n.jsx(
2348
2363
  "div",
2349
2364
  {
2350
- className: "h-full bg-neutral-500/10 absolute left-0 -bottom-0 z-10 transition-all duration-200 ease-in-out",
2365
+ className: "h-full bg-neutral-500/10 absolute left-0 bottom-0 z-10 transition-all duration-200 ease-in-out",
2351
2366
  style: {
2352
2367
  opacity: a ? 0 : 1,
2353
2368
  width: a ? 0 : `${r * 100}%`
@@ -2356,42 +2371,28 @@ const Ut = ({
2356
2371
  )
2357
2372
  ] });
2358
2373
  };
2359
- function Be(e) {
2374
+ function Ue(e) {
2360
2375
  if (e === null) return "null";
2361
2376
  if (Array.isArray(e)) {
2362
2377
  if (e.length === 0) return "any[]";
2363
2378
  const t = e[0];
2364
- return t === void 0 ? "any[]" : `${Be(t)}[]`;
2379
+ return t === void 0 ? "any[]" : `${Ue(t)}[]`;
2365
2380
  }
2366
- return typeof e == "object" ? Gr(e) : typeof e;
2381
+ return typeof e == "object" ? Jr(e) : typeof e;
2367
2382
  }
2368
- function Gr(e, t = "") {
2383
+ function Jr(e, t = "") {
2369
2384
  const s = ["{"];
2370
2385
  for (const [a, r] of Object.entries(e)) {
2371
- const o = Be(r);
2386
+ const o = Ue(r);
2372
2387
  s.push(` ${a}: ${o};`);
2373
2388
  }
2374
2389
  return s.push("}"), s.join(`
2375
2390
  `);
2376
2391
  }
2377
- function Hr(e) {
2378
- return { lines: [`type GeneratedType = ${Be(e)};`] };
2392
+ function Wr(e) {
2393
+ return { lines: [`type GeneratedType = ${Ue(e)};`] };
2379
2394
  }
2380
- const Ht = ({
2381
- code: e,
2382
- language: t,
2383
- children: s
2384
- }) => {
2385
- const { syntaxHighlighting: a } = zn().options;
2386
- return Un(a?.highlighter, "Highlighter not found"), Ts(
2387
- a.highlighter,
2388
- e ?? s ?? "",
2389
- t,
2390
- a.themes
2391
- );
2392
- };
2393
- Ht.displayName = "Highlight";
2394
- const Qr = (e) => Object.entries({
2395
+ const Xr = (e) => Object.entries({
2395
2396
  "application/json": "json",
2396
2397
  "text/json": "json",
2397
2398
  "text/html": "html",
@@ -2401,16 +2402,16 @@ const Qr = (e) => Object.entries({
2401
2402
  "application/xhtml+xml": "xhtml"
2402
2403
  }).find(
2403
2404
  ([s]) => e.includes(s)
2404
- )?.[1], Jr = (e) => {
2405
+ )?.[1], Zr = (e) => {
2405
2406
  const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2406
- return Qr(t);
2407
- }, Wr = (e) => {
2407
+ return Xr(t);
2408
+ }, Yr = (e) => {
2408
2409
  try {
2409
2410
  return JSON.stringify(JSON.parse(e), null, 2);
2410
2411
  } catch {
2411
2412
  return null;
2412
2413
  }
2413
- }, Xr = (e) => {
2414
+ }, Kr = (e) => {
2414
2415
  const t = [
2415
2416
  "Content-Type",
2416
2417
  "Content-Length",
@@ -2424,25 +2425,28 @@ const Qr = (e) => Object.entries({
2424
2425
  const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2425
2426
  return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2426
2427
  });
2427
- }, X = 3, Te = se(
2428
+ }, $ = 3, ue = ie(
2428
2429
  "div",
2429
2430
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2430
- ), ie = se("div", "py-1 break-all"), Ae = ({ value: e, header: t }) => {
2431
- const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] = $(!a);
2432
- return /* @__PURE__ */ n.jsxs(
2433
- ie,
2431
+ ), ee = ie("div", "py-1 break-words"), me = ({ value: e, header: t }) => {
2432
+ const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] = A(!a);
2433
+ return /* @__PURE__ */ n.jsx(
2434
+ ee,
2434
2435
  {
2435
- className: C(a && "cursor-pointer flex group"),
2436
+ className: C(
2437
+ "max-h-28 overflow-auto",
2438
+ a && "cursor-pointer flex group"
2439
+ ),
2436
2440
  onClick: () => {
2437
2441
  a && o((i) => !i);
2438
2442
  },
2439
- children: [
2440
- /* @__PURE__ */ n.jsx(Kn, { secret: e, previewChars: 0, revealed: r }),
2441
- a ? r ? /* @__PURE__ */ n.jsx(Nn, { size: 14, className: C("hidden group-hover:block") }) : /* @__PURE__ */ n.jsx(Sn, { size: 14, className: C("hidden group-hover:block") }) : null
2442
- ]
2443
+ children: a ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2444
+ /* @__PURE__ */ n.jsx(ns, { secret: e, previewChars: 0, revealed: r }),
2445
+ r ? /* @__PURE__ */ n.jsx(On, { size: 14, className: C("hidden group-hover:block") }) : /* @__PURE__ */ n.jsx(Pn, { size: 14, className: C("hidden group-hover:block") })
2446
+ ] }) : e
2443
2447
  }
2444
2448
  );
2445
- }, Zr = ({
2449
+ }, ea = ({
2446
2450
  body: e = "",
2447
2451
  headers: t,
2448
2452
  request: s,
@@ -2451,108 +2455,157 @@ const Qr = (e) => Object.entries({
2451
2455
  fileName: o,
2452
2456
  blob: i
2453
2457
  }) => {
2454
- const l = Jr(t), c = Wr(e), u = c || e, [d, h] = $(
2458
+ const l = Zr(t), c = Yr(e), u = c || e, [d, h] = A(
2455
2459
  c ? "formatted" : "raw"
2456
- ), g = qn({
2460
+ ), x = Bn({
2457
2461
  queryKey: ["types", u],
2458
- queryFn: async () => Hr(JSON.parse(u)),
2462
+ queryFn: async () => Wr(JSON.parse(u)),
2459
2463
  enabled: d === "types" && !r
2460
2464
  }), m = () => {
2461
2465
  if (i && o) {
2462
2466
  const y = URL.createObjectURL(i), b = document.createElement("a");
2463
2467
  b.href = y, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(y);
2464
2468
  }
2465
- }, v = Xr([...t]);
2469
+ }, v = Kr([...t]);
2466
2470
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2467
- /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2468
- /* @__PURE__ */ n.jsxs(U, { children: [
2469
- /* @__PURE__ */ n.jsx(jn, { size: 16 }),
2470
- /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Request" })
2471
+ /* @__PURE__ */ n.jsxs(I, { defaultOpen: !0, children: [
2472
+ /* @__PURE__ */ n.jsxs(G, { children: [
2473
+ /* @__PURE__ */ n.jsx(wn, { size: 14 }),
2474
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-2", children: "Request Headers" })
2471
2475
  ] }),
2472
- /* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
2473
- /* @__PURE__ */ n.jsx(ie, { children: y }),
2474
- /* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
2475
- ] }, y)) }) })
2476
+ /* @__PURE__ */ n.jsx(D, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2477
+ s.headers.slice(0, $).map(([y, b]) => /* @__PURE__ */ n.jsxs(ue, { children: [
2478
+ /* @__PURE__ */ n.jsx(ee, { children: y }),
2479
+ /* @__PURE__ */ n.jsx(me, { value: b, header: y })
2480
+ ] }, y)),
2481
+ s.headers.length > $ && /* @__PURE__ */ n.jsxs(I, { className: "col-span-full grid-cols-subgrid grid group", children: [
2482
+ /* @__PURE__ */ n.jsxs(K, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2483
+ "Show ",
2484
+ s.headers.length - $,
2485
+ " more headers",
2486
+ /* @__PURE__ */ n.jsx(ne, { size: 12, className: "text-muted-foreground" })
2487
+ ] }),
2488
+ /* @__PURE__ */ n.jsxs(D, { className: "col-span-full grid grid-cols-subgrid", children: [
2489
+ s.headers.slice($).map(([y, b]) => /* @__PURE__ */ n.jsxs(ue, { children: [
2490
+ /* @__PURE__ */ n.jsx(ee, { children: y }),
2491
+ /* @__PURE__ */ n.jsx(me, { value: b, header: y })
2492
+ ] }, y)),
2493
+ /* @__PURE__ */ n.jsxs(K, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2494
+ "Hide ",
2495
+ s.headers.length - $,
2496
+ " headers",
2497
+ /* @__PURE__ */ n.jsx(
2498
+ at,
2499
+ {
2500
+ size: 12,
2501
+ className: "text-muted-foreground"
2502
+ }
2503
+ )
2504
+ ] })
2505
+ ] })
2506
+ ] })
2507
+ ] }) })
2476
2508
  ] }),
2477
- /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2478
- /* @__PURE__ */ n.jsxs(U, { children: [
2479
- /* @__PURE__ */ n.jsx(Cn, { size: 16 }),
2480
- /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Response" })
2509
+ /* @__PURE__ */ n.jsxs(I, { defaultOpen: !0, children: [
2510
+ /* @__PURE__ */ n.jsxs(G, { children: [
2511
+ /* @__PURE__ */ n.jsx(Sn, { size: 14 }),
2512
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-2", children: "Response Headers" })
2481
2513
  ] }),
2482
- /* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
2483
- v.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
2484
- /* @__PURE__ */ n.jsx(ie, { children: y }),
2485
- /* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
2514
+ /* @__PURE__ */ n.jsx(D, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2515
+ v.slice(0, $).map(([y, b]) => /* @__PURE__ */ n.jsxs(ue, { children: [
2516
+ /* @__PURE__ */ n.jsx(ee, { children: y }),
2517
+ /* @__PURE__ */ n.jsx(me, { value: b, header: y })
2486
2518
  ] }, y)),
2487
- v.length > X && /* @__PURE__ */ n.jsxs(F, { className: "col-span-full grid-cols-subgrid grid group", children: [
2488
- /* @__PURE__ */ n.jsxs(zt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2489
- /* @__PURE__ */ n.jsxs("span", { children: [
2490
- "Show ",
2491
- v.length - X,
2492
- " more headers"
2493
- ] }),
2494
- /* @__PURE__ */ n.jsx(pe, { size: 12, className: "text-muted-foreground" })
2519
+ v.length > $ && /* @__PURE__ */ n.jsxs(I, { className: "col-span-full grid-cols-subgrid grid group", children: [
2520
+ /* @__PURE__ */ n.jsxs(K, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2521
+ "Show ",
2522
+ v.length - $,
2523
+ " more headers",
2524
+ /* @__PURE__ */ n.jsx(ne, { size: 12, className: "text-muted-foreground" })
2495
2525
  ] }),
2496
- /* @__PURE__ */ n.jsx(z, { className: "col-span-full grid grid-cols-subgrid", children: v.slice(X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
2497
- /* @__PURE__ */ n.jsx(ie, { children: y }),
2498
- /* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
2499
- ] }, y)) })
2526
+ /* @__PURE__ */ n.jsxs(D, { className: "col-span-full grid grid-cols-subgrid", children: [
2527
+ v.slice($).map(([y, b]) => /* @__PURE__ */ n.jsxs(ue, { children: [
2528
+ /* @__PURE__ */ n.jsx(ee, { children: y }),
2529
+ /* @__PURE__ */ n.jsx(me, { value: b, header: y })
2530
+ ] }, y)),
2531
+ /* @__PURE__ */ n.jsxs(K, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2532
+ "Hide ",
2533
+ v.length - $,
2534
+ " headers",
2535
+ /* @__PURE__ */ n.jsx(
2536
+ at,
2537
+ {
2538
+ size: 12,
2539
+ className: "text-muted-foreground"
2540
+ }
2541
+ )
2542
+ ] })
2543
+ ] })
2500
2544
  ] })
2501
2545
  ] }) })
2502
2546
  ] }),
2503
- /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
2504
- Ct,
2505
- {
2506
- value: d,
2507
- onValueChange: (y) => h(y),
2508
- children: [
2509
- /* @__PURE__ */ n.jsx(wt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(Nt, { placeholder: "View" }) }),
2510
- /* @__PURE__ */ n.jsxs(St, { children: [
2511
- /* @__PURE__ */ n.jsx(oe, { value: "formatted", children: "Formatted" }),
2512
- /* @__PURE__ */ n.jsx(oe, { value: "raw", children: "Raw" }),
2513
- /* @__PURE__ */ n.jsx(oe, { value: "types", children: "Types" })
2514
- ] })
2515
- ]
2516
- }
2517
- ) }) }),
2518
- /* @__PURE__ */ n.jsx("div", { children: r ? /* @__PURE__ */ n.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2547
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2 justify-between items-center border-b px-2 flex-0", children: [
2548
+ /* @__PURE__ */ n.jsxs(V, { className: "flex items-center gap-2", children: [
2549
+ /* @__PURE__ */ n.jsx(Tn, { size: 14 }),
2550
+ "Response body"
2551
+ ] }),
2552
+ c && !r && /* @__PURE__ */ n.jsxs(
2553
+ St,
2554
+ {
2555
+ value: d,
2556
+ onValueChange: (y) => h(y),
2557
+ children: [
2558
+ /* @__PURE__ */ n.jsx(Tt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ n.jsx(At, { placeholder: "View" }) }),
2559
+ /* @__PURE__ */ n.jsxs(Ot, { children: [
2560
+ /* @__PURE__ */ n.jsx(pe, { value: "formatted", children: "Formatted" }),
2561
+ /* @__PURE__ */ n.jsx(pe, { value: "raw", children: "Raw" }),
2562
+ /* @__PURE__ */ n.jsx(pe, { value: "types", children: "Types" })
2563
+ ] })
2564
+ ]
2565
+ }
2566
+ )
2567
+ ] }),
2568
+ /* @__PURE__ */ n.jsx("div", { className: "flex-1", children: r ? /* @__PURE__ */ n.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2519
2569
  /* @__PURE__ */ n.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
2520
2570
  /* @__PURE__ */ n.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
2521
2571
  /* @__PURE__ */ n.jsxs(
2522
- E,
2572
+ R,
2523
2573
  {
2524
2574
  onClick: m,
2525
2575
  className: "flex items-center gap-2",
2526
2576
  disabled: !i,
2527
2577
  children: [
2528
- /* @__PURE__ */ n.jsx(wn, { className: "h-4 w-4" }),
2578
+ /* @__PURE__ */ n.jsx(An, { className: "h-4 w-4" }),
2529
2579
  "Download ",
2530
2580
  o || "file",
2531
2581
  " (",
2532
- Gt(a),
2582
+ Qt(a),
2533
2583
  ")"
2534
2584
  ]
2535
2585
  }
2536
2586
  )
2537
- ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
2538
- Ht,
2587
+ ] }) }) : /* @__PURE__ */ n.jsx(
2588
+ ls,
2539
2589
  {
2590
+ className: "text-xs flex-1",
2591
+ embedded: !0,
2592
+ fullHeight: !0,
2540
2593
  language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
2541
- code: (d === "raw" ? e : d === "types" ? g.data?.lines.join(`
2594
+ code: (d === "raw" ? e : d === "types" ? x.data?.lines.join(`
2542
2595
  `) : u) ?? ""
2543
2596
  }
2544
- ) }) })
2597
+ ) })
2545
2598
  ] });
2546
- }, Yr = ({
2599
+ }, ta = ({
2547
2600
  queryMutation: e,
2548
2601
  showLongRunningWarning: t,
2549
2602
  onCancel: s,
2550
2603
  tip: a,
2551
2604
  isFinished: r,
2552
2605
  progress: o
2553
- }) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
2606
+ }) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
2554
2607
  (e.isPending || e.data) && /* @__PURE__ */ n.jsx(
2555
- Mr,
2608
+ Qr,
2556
2609
  {
2557
2610
  status: e.data?.status,
2558
2611
  time: e.data?.time,
@@ -2561,12 +2614,12 @@ const Qr = (e) => Object.entries({
2561
2614
  progress: o
2562
2615
  }
2563
2616
  ),
2564
- e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(es, { children: [
2565
- /* @__PURE__ */ n.jsx(Tn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2566
- /* @__PURE__ */ n.jsx(ts, { children: "Request failed" }),
2567
- /* @__PURE__ */ n.jsx(ns, { children: e.error.message || String(e.error) || "Unexpected error" })
2617
+ e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(ss, { children: [
2618
+ /* @__PURE__ */ n.jsx(Ln, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2619
+ /* @__PURE__ */ n.jsx(rs, { children: "Request failed" }),
2620
+ /* @__PURE__ */ n.jsx(as, { children: e.error.message || String(e.error) || "Unexpected error" })
2568
2621
  ] }) }) : e.data ? /* @__PURE__ */ n.jsx(
2569
- Zr,
2622
+ ea,
2570
2623
  {
2571
2624
  request: e.data.request,
2572
2625
  size: e.data.size,
@@ -2577,7 +2630,7 @@ const Qr = (e) => Object.entries({
2577
2630
  blob: e.data.blob
2578
2631
  }
2579
2632
  ) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2580
- /* @__PURE__ */ n.jsx(Zn, {}),
2633
+ /* @__PURE__ */ n.jsx(es, {}),
2581
2634
  /* @__PURE__ */ n.jsxs(
2582
2635
  "div",
2583
2636
  {
@@ -2588,7 +2641,7 @@ const Qr = (e) => Object.entries({
2588
2641
  children: [
2589
2642
  "Looks like the request is taking longer than expected.",
2590
2643
  /* @__PURE__ */ n.jsx(
2591
- ce,
2644
+ he,
2592
2645
  {
2593
2646
  type: "button",
2594
2647
  onClick: s,
@@ -2603,7 +2656,7 @@ const Qr = (e) => Object.entries({
2603
2656
  )
2604
2657
  ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2605
2658
  /* @__PURE__ */ n.jsx(
2606
- An,
2659
+ $n,
2607
2660
  {
2608
2661
  size: 64,
2609
2662
  className: "text-muted-foreground",
@@ -2613,18 +2666,20 @@ const Qr = (e) => Object.entries({
2613
2666
  /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2614
2667
  a
2615
2668
  ] }) })
2616
- ] }), Kr = $e()(
2617
- Ee(
2669
+ ] }), Jt = ke()(
2670
+ Ie(
2618
2671
  (e) => ({
2619
2672
  skipLogin: !1,
2620
2673
  setSkipLogin: (t) => e({ skipLogin: t })
2621
2674
  }),
2622
2675
  {
2623
2676
  name: "remember-skip-login",
2624
- storage: gt(() => sessionStorage)
2677
+ storage: vt(() => sessionStorage)
2625
2678
  }
2626
2679
  )
2627
- ), K = "__none", ea = ({
2680
+ );
2681
+ Un(Jt);
2682
+ const te = "__none", na = ({
2628
2683
  server: e,
2629
2684
  servers: t = [],
2630
2685
  url: s,
@@ -2638,13 +2693,13 @@ const Qr = (e) => Object.entries({
2638
2693
  onLogin: d,
2639
2694
  onSignUp: h
2640
2695
  }) => {
2641
- const { selectedServer: g, setSelectedServer: m } = Cr(
2696
+ const { selectedServer: x, setSelectedServer: m } = Sr(
2642
2697
  t.map((p) => ({ url: p }))
2643
- ), [v, y] = $(!1), b = Vn(), { setRememberedIdentity: T, getRememberedIdentity: f } = zr(), [, j] = Hn(), { skipLogin: L, setSkipLogin: N } = Kr(), [k, A] = $(!1), H = O(void 0), Ue = cs(T), Me = O(null), { label: Yt } = br("meta+enter", () => {
2644
- Me.current?.requestSubmit();
2645
- }), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
2646
- (p, J) => Ge.indexOf(p.name) - Ge.indexOf(J.name)
2647
- ), { register: Kt, control: re, handleSubmit: Qe, watch: Je, setValue: xe, ...ye } = rs({
2698
+ ), [v, y] = A(!1), b = Mn(), { setRememberedIdentity: T, getRememberedIdentity: f } = _r(), [, j] = Wn(), { skipLogin: L, setSkipLogin: w } = Jt(), [z, E] = A(!1), [en, ce] = A(!1), Q = O(void 0), Ge = ms(T), He = O(null), { label: tn } = Nr("meta+enter", () => {
2699
+ He.current?.requestSubmit();
2700
+ }), Qe = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], Je = [...i].sort(
2701
+ (p, W) => Qe.indexOf(p.name) - Qe.indexOf(W.name)
2702
+ ), { register: nn, control: le, handleSubmit: We, watch: Xe, setValue: Ce, ...Ne } = is({
2648
2703
  defaultValues: {
2649
2704
  body: l,
2650
2705
  queryParams: o.length > 0 ? o.map((p) => ({
@@ -2660,7 +2715,7 @@ const Qr = (e) => Object.entries({
2660
2715
  enum: []
2661
2716
  }
2662
2717
  ],
2663
- pathParams: He.map((p) => ({
2718
+ pathParams: Je.map((p) => ({
2664
2719
  name: p.name,
2665
2720
  value: p.defaultValue ?? ""
2666
2721
  })),
@@ -2676,133 +2731,138 @@ const Qr = (e) => Object.entries({
2676
2731
  }
2677
2732
  ],
2678
2733
  identity: f([
2679
- K,
2734
+ te,
2680
2735
  ...b.data?.map((p) => p.id) ?? []
2681
2736
  ])
2682
2737
  }
2683
- }), Q = Je("identity"), en = yt(
2684
- () => b.data?.find((p) => p.id === Q)?.authorizationFields,
2685
- [b.data, Q]
2738
+ }), J = Xe("identity"), sn = jt(
2739
+ () => b.data?.find((p) => p.id === J)?.authorizationFields,
2740
+ [b.data, J]
2686
2741
  );
2687
- I(() => {
2688
- Q && Ue.current(Q);
2689
- }, [Ue, Q]);
2690
- const V = ss({
2742
+ F(() => {
2743
+ J && Ge.current(J);
2744
+ }, [Ge, J]);
2745
+ const B = os({
2691
2746
  gcTime: 0,
2692
2747
  mutationFn: async (p) => {
2693
- const J = performance.now(), dn = Object.fromEntries([
2748
+ const W = performance.now(), pn = Object.fromEntries([
2694
2749
  ...p.headers.filter((S) => S.name && S.active).map((S) => [S.name, S.value])
2695
- ]), B = new Request(
2696
- ut(e ?? g, s, p),
2750
+ ]), U = new Request(
2751
+ ht(e ?? x, s, p),
2697
2752
  {
2698
2753
  method: a.toUpperCase(),
2699
- headers: dn,
2754
+ headers: pn,
2700
2755
  body: p.body ? p.body : void 0
2701
2756
  }
2702
2757
  );
2703
- p.identity !== K && await b.data?.find((S) => S.id === p.identity)?.authorizeRequest(B);
2704
- const ve = setTimeout(
2705
- () => A(!0),
2758
+ p.identity !== te && await b.data?.find((S) => S.id === p.identity)?.authorizeRequest(U);
2759
+ const we = setTimeout(
2760
+ () => ce(!0),
2706
2761
  3210
2707
2762
  );
2708
- H.current = new AbortController(), H.current.signal.addEventListener("abort", () => {
2709
- clearTimeout(ve);
2763
+ Q.current = new AbortController(), Q.current.signal.addEventListener("abort", () => {
2764
+ clearTimeout(we);
2710
2765
  });
2711
2766
  try {
2712
- const S = await fetch(B, {
2767
+ const S = await fetch(U, {
2713
2768
  cache: "no-store",
2714
- signal: H.current.signal
2769
+ signal: Q.current.signal
2715
2770
  });
2716
- clearTimeout(ve), A(!1);
2717
- const un = performance.now() - J, mn = new URL(B.url), Ze = Array.from(S.headers.entries()), Ye = S.headers.get("content-type") || "", Ke = Sr(Ye);
2718
- let ae = "", et, tt;
2719
- Ke ? (et = await S.blob(), tt = Tr(Ze, B.url), ae = `Binary content (${Ye})`) : ae = await S.text();
2720
- const nt = S.headers.get("content-length");
2771
+ clearTimeout(we), ce(!1);
2772
+ const hn = performance.now() - W, fn = new URL(U.url), Ke = Array.from(S.headers.entries()), et = S.headers.get("content-type") || "", tt = Or(et);
2773
+ let de = "", nt, st;
2774
+ tt ? (nt = await S.blob(), st = Pr(Ke, U.url), de = `Binary content (${et})`) : de = await S.text();
2775
+ const rt = S.headers.get("content-length");
2721
2776
  return {
2722
2777
  status: S.status,
2723
- headers: Ze,
2724
- size: nt ? Number(nt) : ae.length,
2725
- body: ae,
2726
- time: un,
2727
- isBinary: Ke,
2728
- fileName: tt,
2729
- blob: et,
2778
+ headers: Ke,
2779
+ size: rt ? Number(rt) : de.length,
2780
+ body: de,
2781
+ time: hn,
2782
+ isBinary: tt,
2783
+ fileName: st,
2784
+ blob: nt,
2730
2785
  request: {
2731
- method: B.method.toUpperCase(),
2732
- url: B.url,
2786
+ method: U.method.toUpperCase(),
2787
+ url: U.url,
2733
2788
  headers: [
2734
- ["Host", mn.host],
2789
+ ["Host", fn.host],
2735
2790
  ["User-Agent", "Zudoku Playground"],
2736
- ...Array.from(B.headers.entries())
2791
+ ...Array.from(U.headers.entries())
2737
2792
  ],
2738
2793
  body: p.body ? p.body : void 0
2739
2794
  }
2740
2795
  };
2741
2796
  } catch (S) {
2742
- throw clearTimeout(ve), A(!1), S instanceof TypeError ? new Error(
2797
+ throw clearTimeout(we), ce(!1), S instanceof TypeError ? new Error(
2743
2798
  "The request failed, possibly due to network issues or CORS policy."
2744
2799
  ) : S;
2745
2800
  }
2746
2801
  }
2747
- }), We = V.isPending, [tn, nn] = $(!1);
2748
- I(() => {
2749
- const p = setTimeout(() => nn(We), 100);
2802
+ }), Ze = B.isPending, [rn, an] = A(!1);
2803
+ F(() => {
2804
+ const p = setTimeout(() => an(Ze), 100);
2750
2805
  return () => clearTimeout(p);
2751
- }, [We]);
2752
- const { isFinished: sn, progress: rn } = Yn({ isAnimating: tn });
2753
- I(() => () => {
2754
- H.current?.abort();
2806
+ }, [Ze]);
2807
+ const { isFinished: on, progress: cn } = ts({ isAnimating: rn });
2808
+ F(() => () => {
2809
+ Q.current?.abort();
2755
2810
  }, []);
2756
- const an = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2757
- Ct,
2811
+ const ln = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2812
+ St,
2758
2813
  {
2759
2814
  onValueChange: (p) => {
2760
2815
  j(() => m(p));
2761
2816
  },
2762
- value: g,
2763
- defaultValue: g,
2817
+ value: x,
2818
+ defaultValue: x,
2764
2819
  children: [
2765
- /* @__PURE__ */ n.jsx(wt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Nt, {}) }),
2766
- /* @__PURE__ */ n.jsx(St, { children: t.map((p) => /* @__PURE__ */ n.jsx(oe, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2820
+ /* @__PURE__ */ n.jsx(Tt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(At, {}) }),
2821
+ /* @__PURE__ */ n.jsx(Ot, { children: t.map((p) => /* @__PURE__ */ n.jsx(pe, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2767
2822
  ]
2768
2823
  }
2769
- ) }), on = u && !L, cn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2824
+ ) }), dn = u && !L && !z, un = ["POST", "PUT", "PATCH", "DELETE"].includes(
2770
2825
  a.toUpperCase()
2771
- ), [Xe, ln] = is();
2826
+ ), [Ye, mn] = us();
2772
2827
  return /* @__PURE__ */ n.jsx(
2773
- as,
2828
+ cs,
2774
2829
  {
2775
- register: Kt,
2776
- control: re,
2777
- handleSubmit: Qe,
2778
- watch: Je,
2779
- setValue: xe,
2780
- ...ye,
2781
- children: /* @__PURE__ */ n.jsx(os, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2830
+ register: nn,
2831
+ control: le,
2832
+ handleSubmit: We,
2833
+ watch: Xe,
2834
+ setValue: Ce,
2835
+ ...Ne,
2836
+ children: /* @__PURE__ */ n.jsx(ds, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2782
2837
  "form",
2783
2838
  {
2784
- ref: Me,
2785
- onSubmit: Qe((p) => {
2786
- b.data?.length === 0 || p.identity ? V.mutate(p) : y(!0);
2839
+ ref: He,
2840
+ onSubmit: We((p) => {
2841
+ b.data?.length === 0 || p.identity ? B.mutate(p) : y(!0);
2787
2842
  }),
2788
2843
  className: "relative",
2789
2844
  children: [
2790
2845
  /* @__PURE__ */ n.jsx(
2791
- Er,
2846
+ Ir,
2792
2847
  {
2793
2848
  identities: b.data ?? [],
2794
2849
  open: v,
2795
2850
  onOpenChange: y,
2796
- onSubmit: ({ rememberedIdentity: p, identity: J }) => {
2797
- p && xe("identity", J ?? K), y(!1), V.mutate({ ...ye.getValues(), identity: J });
2851
+ onSubmit: ({ rememberedIdentity: p, identity: W }) => {
2852
+ p && Ce("identity", W ?? te), y(!1), B.mutate({ ...Ne.getValues(), identity: W });
2798
2853
  }
2799
2854
  }
2800
2855
  ),
2801
2856
  /* @__PURE__ */ n.jsx(
2802
- Fr,
2857
+ Vr,
2803
2858
  {
2804
- open: on,
2805
- setOpen: (p) => N(!p),
2859
+ open: dn,
2860
+ setOpen: (p) => {
2861
+ p || E(!0);
2862
+ },
2863
+ onSkip: (p) => {
2864
+ E(!0), p && w(!0);
2865
+ },
2806
2866
  onSignUp: h,
2807
2867
  onLogin: d
2808
2868
  }
@@ -2812,20 +2872,20 @@ const Qr = (e) => Object.entries({
2812
2872
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
2813
2873
  /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2814
2874
  /* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
2815
- an,
2816
- /* @__PURE__ */ n.jsx(Vr, { url: s }),
2817
- /* @__PURE__ */ n.jsx(Br, {})
2875
+ ln,
2876
+ /* @__PURE__ */ n.jsx(Ur, { url: s }),
2877
+ /* @__PURE__ */ n.jsx(Mr, {})
2818
2878
  ] }) }),
2819
2879
  /* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
2820
- E,
2880
+ R,
2821
2881
  {
2822
2882
  type: "button",
2823
2883
  onClick: () => {
2824
- ln(
2825
- ut(
2826
- e ?? g,
2884
+ mn(
2885
+ ht(
2886
+ e ?? x,
2827
2887
  s,
2828
- ye.getValues()
2888
+ Ne.getValues()
2829
2889
  ).toString()
2830
2890
  );
2831
2891
  },
@@ -2833,79 +2893,79 @@ const Qr = (e) => Object.entries({
2833
2893
  size: "icon-xs",
2834
2894
  className: C(
2835
2895
  "hover:opacity-100 transition",
2836
- Xe ? "text-emerald-600 opacity-100" : "opacity-50"
2896
+ Ye ? "text-emerald-600 opacity-100" : "opacity-50"
2837
2897
  ),
2838
- children: Xe ? /* @__PURE__ */ n.jsx(On, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Pn, { size: 14 })
2898
+ children: Ye ? /* @__PURE__ */ n.jsx(Rn, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(En, { size: 14 })
2839
2899
  }
2840
2900
  ) })
2841
2901
  ] }),
2842
2902
  /* @__PURE__ */ n.jsx(
2843
- E,
2903
+ R,
2844
2904
  {
2845
2905
  type: "submit",
2846
- variant: V.isPending ? "destructive" : "default",
2906
+ variant: B.isPending ? "destructive" : "default",
2847
2907
  onClick: (p) => {
2848
- V.isPending && (H.current?.abort(
2908
+ B.isPending && (Q.current?.abort(
2849
2909
  "Request cancelled by user"
2850
2910
  ), p.preventDefault());
2851
2911
  },
2852
2912
  className: "w-18",
2853
- children: V.isPending ? "Cancel" : "Send"
2913
+ children: B.isPending ? "Cancel" : "Send"
2854
2914
  }
2855
2915
  )
2856
2916
  ] }),
2857
2917
  /* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
2858
- b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2859
- /* @__PURE__ */ n.jsxs(U, { children: [
2860
- /* @__PURE__ */ n.jsx(Ln, { size: 16 }),
2861
- /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Authentication" })
2918
+ b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(I, { defaultOpen: !0, children: [
2919
+ /* @__PURE__ */ n.jsxs(G, { children: [
2920
+ /* @__PURE__ */ n.jsx(kn, { size: 16 }),
2921
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-2", children: "Authentication" })
2862
2922
  ] }),
2863
- /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
2864
- Ut,
2923
+ /* @__PURE__ */ n.jsx(D, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
2924
+ Gt,
2865
2925
  {
2866
- value: Q,
2926
+ value: J,
2867
2927
  identities: b.data ?? [],
2868
- setValue: (p) => xe("identity", p)
2928
+ setValue: (p) => Ce("identity", p)
2869
2929
  }
2870
2930
  ) })
2871
2931
  ] }),
2872
- He.length > 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2873
- /* @__PURE__ */ n.jsxs(U, { children: [
2874
- /* @__PURE__ */ n.jsx($n, { size: 16 }),
2875
- /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Path Parameters" })
2932
+ Je.length > 0 && /* @__PURE__ */ n.jsxs(I, { defaultOpen: !0, children: [
2933
+ /* @__PURE__ */ n.jsxs(G, { children: [
2934
+ /* @__PURE__ */ n.jsx(In, { size: 16 }),
2935
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-2", children: "Path Parameters" })
2876
2936
  ] }),
2877
- /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(kr, { url: s, control: re }) })
2937
+ /* @__PURE__ */ n.jsx(D, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(zr, { url: s, control: le }) })
2878
2938
  ] }),
2879
- /* @__PURE__ */ n.jsx(Dr, { control: re, schemaQueryParams: o }),
2939
+ /* @__PURE__ */ n.jsx(qr, { control: le, schemaQueryParams: o }),
2880
2940
  /* @__PURE__ */ n.jsx(
2881
- Lr,
2941
+ Er,
2882
2942
  {
2883
- control: re,
2943
+ control: le,
2884
2944
  schemaHeaders: r,
2885
- lockedHeaders: en?.headers
2945
+ lockedHeaders: sn?.headers
2886
2946
  }
2887
2947
  ),
2888
- cn && /* @__PURE__ */ n.jsx(Nr, { content: c })
2948
+ un && /* @__PURE__ */ n.jsx(Ar, { content: c })
2889
2949
  ] }),
2890
2950
  /* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
2891
2951
  /* @__PURE__ */ n.jsx(
2892
- Yr,
2952
+ ta,
2893
2953
  {
2894
- queryMutation: V,
2895
- showLongRunningWarning: k,
2896
- isFinished: sn,
2897
- progress: rn,
2954
+ queryMutation: B,
2955
+ showLongRunningWarning: en,
2956
+ isFinished: on,
2957
+ progress: cn,
2898
2958
  tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
2899
2959
  "Press",
2900
2960
  " ",
2901
- /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: Yt.join(" + ") }),
2961
+ /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: tn.join(" + ") }),
2902
2962
  " ",
2903
2963
  "to send a request"
2904
2964
  ] }) }),
2905
2965
  onCancel: () => {
2906
- H.current?.abort(
2966
+ Q.current?.abort(
2907
2967
  "Request cancelled by the user"
2908
- ), A(!1);
2968
+ ), ce(!1);
2909
2969
  }
2910
2970
  }
2911
2971
  )
@@ -2915,7 +2975,7 @@ const Qr = (e) => Object.entries({
2915
2975
  ) })
2916
2976
  }
2917
2977
  );
2918
- }, ta = ({
2978
+ }, sa = ({
2919
2979
  className: e,
2920
2980
  size: t = 16
2921
2981
  }) => /* @__PURE__ */ n.jsx(
@@ -2936,30 +2996,30 @@ const Qr = (e) => Object.entries({
2936
2996
  }
2937
2997
  )
2938
2998
  }
2939
- ), na = (e) => {
2940
- const [t, s] = $(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } = Wn();
2941
- return /* @__PURE__ */ n.jsxs(Re, { onOpenChange: (c) => s(c), children: [
2942
- /* @__PURE__ */ n.jsx(Xn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2999
+ ), ra = (e) => {
3000
+ const [t, s] = A(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } = Yn();
3001
+ return /* @__PURE__ */ n.jsxs(De, { onOpenChange: (c) => s(c), children: [
3002
+ /* @__PURE__ */ n.jsx(Kn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2943
3003
  "button",
2944
3004
  {
2945
3005
  type: "button",
2946
3006
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
2947
3007
  children: [
2948
3008
  "Test",
2949
- /* @__PURE__ */ n.jsx(ta, { size: 14 })
3009
+ /* @__PURE__ */ n.jsx(sa, { size: 14 })
2950
3010
  ]
2951
3011
  }
2952
3012
  ) }),
2953
3013
  /* @__PURE__ */ n.jsxs(
2954
- ke,
3014
+ ze,
2955
3015
  {
2956
3016
  className: "max-w-screen-xl! w-full overflow-hidden p-0",
2957
3017
  "aria-describedby": void 0,
2958
3018
  showCloseButton: !0,
2959
3019
  children: [
2960
- /* @__PURE__ */ n.jsx(Jn, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
3020
+ /* @__PURE__ */ n.jsx(Zn, { children: /* @__PURE__ */ n.jsx(Fe, { children: "Playground" }) }),
2961
3021
  t && /* @__PURE__ */ n.jsx(
2962
- ea,
3022
+ na,
2963
3023
  {
2964
3024
  requiresLogin: a && !l && !i,
2965
3025
  onLogin: () => r(),
@@ -2971,7 +3031,7 @@ const Qr = (e) => Object.entries({
2971
3031
  }
2972
3032
  )
2973
3033
  ] });
2974
- }, sa = {
3034
+ }, aa = {
2975
3035
  get: "green",
2976
3036
  post: "blue",
2977
3037
  put: "yellow",
@@ -2979,7 +3039,7 @@ const Qr = (e) => Object.entries({
2979
3039
  patch: "purple",
2980
3040
  options: "gray",
2981
3041
  head: "gray"
2982
- }, pt = ({
3042
+ }, xt = ({
2983
3043
  label: e,
2984
3044
  path: t,
2985
3045
  operations: s,
@@ -3003,21 +3063,21 @@ const Qr = (e) => Object.entries({
3003
3063
  badge: {
3004
3064
  label: o.method,
3005
3065
  // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
3006
- color: sa[o.method.toLowerCase()],
3066
+ color: aa[o.method.toLowerCase()],
3007
3067
  invert: !0
3008
3068
  }
3009
3069
  }))
3010
- }), Qt = xt(
3070
+ }), Wt = bt(
3011
3071
  void 0
3012
- ), Va = Qt.Provider, ra = () => {
3013
- const e = Qn(Qt);
3072
+ ), _a = Wt.Provider, oa = () => {
3073
+ const e = Xn(Wt);
3014
3074
  if (!e)
3015
3075
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3016
3076
  return e.config;
3017
- }, ht = (e) => ({
3077
+ }, gt = (e) => ({
3018
3078
  path: e.routePath,
3019
3079
  async lazy() {
3020
- const { OasProvider: t } = await import("./OasProvider-0xiB5cKH.js");
3080
+ const { OasProvider: t } = await import("./OasProvider-1XEOsIiW.js");
3021
3081
  return {
3022
3082
  element: /* @__PURE__ */ n.jsx(
3023
3083
  t,
@@ -3031,39 +3091,39 @@ const Qr = (e) => Object.entries({
3031
3091
  };
3032
3092
  },
3033
3093
  children: e.routes
3034
- }), Jt = ({
3094
+ }), Xt = ({
3035
3095
  path: e,
3036
3096
  tag: t,
3037
3097
  untagged: s
3038
3098
  }) => ({
3039
3099
  path: e,
3040
3100
  async lazy() {
3041
- const { OperationList: a } = await import("./OperationList-BzWKTkNq.js");
3101
+ const { OperationList: a } = await import("./OperationList-DCJw6wXL.js");
3042
3102
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3043
3103
  }
3044
- }), aa = ({
3104
+ }), ia = ({
3045
3105
  render: e,
3046
3106
  path: t
3047
3107
  }) => {
3048
- const { type: s, input: a } = ra(), { tag: r } = kn(), o = In(), i = ir(Zt, { type: s, input: a }), {
3108
+ const { type: s, input: a } = oa(), { tag: r } = Fn(), o = qn(), i = dr(Kt, { type: s, input: a }), {
3049
3109
  data: { schema: l }
3050
- } = Bn(i), c = l.tags.at(0);
3110
+ } = Gn(i), c = l.tags.at(0);
3051
3111
  return !r && c?.slug ? /* @__PURE__ */ n.jsx(
3052
- Dn,
3112
+ Vn,
3053
3113
  {
3054
3114
  to: {
3055
- pathname: Fn(t, { tag: c.slug }),
3115
+ pathname: _n(t, { tag: c.slug }),
3056
3116
  search: o.search
3057
3117
  }
3058
3118
  }
3059
3119
  ) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
3060
- }, oa = ({ path: e }) => ({
3120
+ }, ca = ({ path: e }) => ({
3061
3121
  path: e,
3062
3122
  async lazy() {
3063
- const { OperationList: t } = await import("./OperationList-BzWKTkNq.js");
3123
+ const { OperationList: t } = await import("./OperationList-DCJw6wXL.js");
3064
3124
  return {
3065
3125
  element: /* @__PURE__ */ n.jsx(
3066
- aa,
3126
+ ia,
3067
3127
  {
3068
3128
  path: e,
3069
3129
  render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
@@ -3071,35 +3131,35 @@ const Qr = (e) => Object.entries({
3071
3131
  )
3072
3132
  };
3073
3133
  }
3074
- }), Wt = (e) => [
3134
+ }), Zt = (e) => [
3075
3135
  // Category without tagged operations
3076
- Jt({
3077
- path: R(e, _e),
3136
+ Xt({
3137
+ path: k(e, Me),
3078
3138
  untagged: !0
3079
3139
  }),
3080
3140
  // Schema list route
3081
3141
  {
3082
- path: R(e, "~schemas"),
3142
+ path: k(e, "~schemas"),
3083
3143
  lazy: async () => {
3084
- const { SchemaList: t } = await import("./SchemaList-Dea2Skqv.js");
3144
+ const { SchemaList: t } = await import("./SchemaList-qOHkDzSz.js");
3085
3145
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
3086
3146
  }
3087
3147
  }
3088
- ], ia = (e, t) => {
3089
- const s = R(e, t.at(0) ?? _e);
3148
+ ], la = (e, t) => {
3149
+ const s = k(e, t.at(0) ?? Me);
3090
3150
  return [
3091
3151
  // Redirect to first tag on the index route
3092
- { index: !0, loader: () => Rn(s) },
3152
+ { index: !0, loader: () => zn(s) },
3093
3153
  // Create routes for each tag
3094
3154
  ...t.map(
3095
- (a) => Jt({
3096
- path: R(e, a),
3155
+ (a) => Xt({
3156
+ path: k(e, a),
3097
3157
  tag: a
3098
3158
  })
3099
3159
  ),
3100
- ...Wt(e)
3160
+ ...Zt(e)
3101
3161
  ];
3102
- }, Xt = (e) => e.type === "file" ? Object.keys(e.input) : [], ca = ({
3162
+ }, Yt = (e) => e.type === "file" ? Object.keys(e.input) : [], da = ({
3103
3163
  basePath: e,
3104
3164
  config: t,
3105
3165
  client: s
@@ -3107,30 +3167,30 @@ const Qr = (e) => Object.entries({
3107
3167
  const a = t.tagPages;
3108
3168
  if (!a)
3109
3169
  return [
3110
- ht({
3170
+ gt({
3111
3171
  basePath: e,
3112
3172
  routePath: e,
3113
3173
  routes: [
3114
- oa({ path: `${e}/:tag?` }),
3115
- ...Wt(e)
3174
+ ca({ path: `${e}/:tag?` }),
3175
+ ...Zt(e)
3116
3176
  ],
3117
3177
  client: s,
3118
3178
  config: t
3119
3179
  })
3120
3180
  ];
3121
- const r = Xt(t);
3181
+ const r = Yt(t);
3122
3182
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3123
- const l = R(e, i);
3124
- return ht({
3183
+ const l = k(e, i);
3184
+ return gt({
3125
3185
  basePath: e,
3126
3186
  version: i,
3127
3187
  routePath: l,
3128
- routes: ia(l, a),
3188
+ routes: la(l, a),
3129
3189
  client: s,
3130
3190
  config: t
3131
3191
  });
3132
3192
  });
3133
- }, Zt = gr(`
3193
+ }, Kt = vr(`
3134
3194
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3135
3195
  schema(input: $input, type: $type) {
3136
3196
  extensions
@@ -3153,8 +3213,8 @@ const Qr = (e) => Object.entries({
3153
3213
  }
3154
3214
  }
3155
3215
  }
3156
- `), _e = "~endpoints", Ba = (e) => {
3157
- const t = R(e.path), s = new Os(e);
3216
+ `), Me = "~endpoints", Ba = (e) => {
3217
+ const t = k(e.path), s = new $s(e);
3158
3218
  return {
3159
3219
  getHead: () => {
3160
3220
  if (e.type === "url" && !e.skipPreload)
@@ -3181,55 +3241,55 @@ const Qr = (e) => Object.entries({
3181
3241
  if (!a)
3182
3242
  throw new Error("Server is required");
3183
3243
  return /* @__PURE__ */ n.jsx(
3184
- na,
3244
+ ra,
3185
3245
  {
3186
3246
  url: o,
3187
3247
  method: r,
3188
3248
  server: a,
3189
3249
  ...l,
3190
- children: /* @__PURE__ */ n.jsx(ce, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3250
+ children: /* @__PURE__ */ n.jsx(he, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3191
3251
  "Open in Playground",
3192
- /* @__PURE__ */ n.jsx(En, { size: 16 })
3252
+ /* @__PURE__ */ n.jsx(Dn, { size: 16 })
3193
3253
  ] }) })
3194
3254
  }
3195
3255
  );
3196
3256
  }
3197
3257
  }),
3198
3258
  getNavigation: async (a, r) => {
3199
- if (!st({ path: t, end: !1 }, a))
3259
+ if (!ot({ path: t, end: !1 }, a))
3200
3260
  return [];
3201
- const o = st(
3261
+ const o = ot(
3202
3262
  { path: `${t}/:version?/:tag`, end: !0 },
3203
3263
  a
3204
3264
  );
3205
3265
  try {
3206
- const i = o?.params.version, l = i ?? Xt(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Ft(s, Zt, {
3266
+ const i = o?.params.version, l = i ?? Yt(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Vt(s, Kt, {
3207
3267
  type: c,
3208
3268
  input: u
3209
- }), h = await r.queryClient.ensureQueryData(d), g = new Map(
3269
+ }), h = await r.queryClient.ensureQueryData(d), x = new Map(
3210
3270
  h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
3211
3271
  if (!f.name)
3212
3272
  throw new Error(`Tag ${f.slug} has no name`);
3213
- const j = R(t, i, f.slug), L = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, N = f.extensions?.["x-zudoku-collapsible"] ?? !0;
3273
+ const j = k(t, i, f.slug), L = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, w = f.extensions?.["x-zudoku-collapsible"] ?? !0;
3214
3274
  return [
3215
3275
  f.name,
3216
- pt({
3276
+ xt({
3217
3277
  label: f.extensions?.["x-displayName"] ?? f.name,
3218
3278
  path: j,
3219
3279
  operations: f.operations,
3220
3280
  collapsed: L,
3221
- collapsible: N
3281
+ collapsible: w
3222
3282
  })
3223
3283
  ];
3224
3284
  })
3225
3285
  ), m = h.schema.extensions?.["x-tagGroups"] ?? [], v = new Set(
3226
3286
  m.flatMap(
3227
- (f) => f.tags.filter((j) => g.has(j))
3287
+ (f) => f.tags.filter((j) => x.has(j))
3228
3288
  )
3229
3289
  ), b = [
3230
3290
  ...m.flatMap(
3231
3291
  (f) => {
3232
- const j = f.tags.map((L) => g.get(L)).filter(Boolean);
3292
+ const j = f.tags.map((L) => x.get(L)).filter(Boolean);
3233
3293
  return j.length === 0 ? [] : [
3234
3294
  {
3235
3295
  type: "category",
@@ -3241,64 +3301,64 @@ const Qr = (e) => Object.entries({
3241
3301
  ];
3242
3302
  }
3243
3303
  ),
3244
- ...Array.from(g.entries()).filter(([f]) => !v.has(f)).map(([, f]) => f)
3304
+ ...Array.from(x.entries()).filter(([f]) => !v.has(f)).map(([, f]) => f)
3245
3305
  ], T = h.schema.tags.find(
3246
3306
  (f) => !f.name
3247
3307
  )?.operations;
3248
3308
  return T && T.length > 0 && b.push(
3249
- pt({
3309
+ xt({
3250
3310
  label: b.length === 0 ? "Endpoints" : "Other endpoints",
3251
- path: R(t, i, _e),
3311
+ path: k(t, i, Me),
3252
3312
  operations: T,
3253
3313
  collapsed: !e.options?.expandAllTags
3254
3314
  })
3255
3315
  ), h.schema.components?.schemas?.length && b.push({
3256
3316
  type: "link",
3257
3317
  label: "Schemas",
3258
- to: R(t, i, "~schemas")
3318
+ to: k(t, i, "~schemas")
3259
3319
  }), b;
3260
3320
  } catch {
3261
3321
  return [];
3262
3322
  }
3263
3323
  },
3264
- getRoutes: () => ca({ basePath: t, config: e, client: s })
3324
+ getRoutes: () => da({ basePath: t, config: e, client: s })
3265
3325
  };
3266
3326
  };
3267
3327
  export {
3268
- F as C,
3269
- qa as G,
3270
- Vs as L,
3271
- Va as O,
3272
- na as P,
3273
- ks as Q,
3274
- It as S,
3275
- x as T,
3276
- _e as U,
3277
- ir as a,
3278
- zt as b,
3279
- z as c,
3280
- Xt as d,
3281
- Cr as e,
3282
- Mt as f,
3283
- gr as g,
3284
- qr as h,
3285
- ar as i,
3286
- lt as j,
3328
+ I as C,
3329
+ Va as G,
3330
+ Us as L,
3331
+ _a as O,
3332
+ ra as P,
3333
+ zs as Q,
3334
+ Ft as S,
3335
+ g as T,
3336
+ Me as U,
3337
+ dr as a,
3338
+ K as b,
3339
+ D as c,
3340
+ Yt as d,
3341
+ Sr as e,
3342
+ Ht as f,
3343
+ vr as g,
3344
+ Br as h,
3345
+ cr as i,
3346
+ mt as j,
3287
3347
  Fa as k,
3288
- Bs as l,
3289
- ze as m,
3290
- kt as n,
3291
- Ps as o,
3292
- rr as p,
3293
- je as q,
3294
- Ls as r,
3348
+ Ms as l,
3349
+ _e as m,
3350
+ zt as n,
3351
+ Rs as o,
3352
+ ir as p,
3353
+ Te as q,
3354
+ Es as r,
3295
3355
  P as s,
3296
- za as t,
3297
- ra as u,
3298
- qs as v,
3299
- Ds as w,
3300
- Lt as x,
3301
- Zt as y,
3356
+ qa as t,
3357
+ oa as u,
3358
+ Bs as v,
3359
+ qs as w,
3360
+ Et as x,
3361
+ Kt as y,
3302
3362
  Ba as z
3303
3363
  };
3304
- //# sourceMappingURL=index-PdgTSEkk.js.map
3364
+ //# sourceMappingURL=index-RNAxx6IF.js.map