zudoku 0.0.0-zce59fc03 → 0.0.0-zd57c18df

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 (232) hide show
  1. package/dist/app/main.js +1 -1
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/create-plugin.d.ts +2 -0
  4. package/dist/config/create-plugin.js +55 -0
  5. package/dist/config/create-plugin.js.map +1 -0
  6. package/dist/config/loader.js +2 -2
  7. package/dist/config/loader.js.map +1 -1
  8. package/dist/config/validators/InputNavigationSchema.d.ts +118 -68
  9. package/dist/config/validators/InputNavigationSchema.js +17 -0
  10. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  11. package/dist/config/validators/NavigationSchema.d.ts +10 -2
  12. package/dist/config/validators/NavigationSchema.js +7 -0
  13. package/dist/config/validators/NavigationSchema.js.map +1 -1
  14. package/dist/config/validators/validate.d.ts +5 -4
  15. package/dist/config/validators/validate.js +2 -0
  16. package/dist/config/validators/validate.js.map +1 -1
  17. package/dist/flat-config.d.ts +12 -0
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/lib/components/Bootstrap.js +1 -2
  22. package/dist/lib/components/Bootstrap.js.map +1 -1
  23. package/dist/lib/components/MobileTopNavigation.js +2 -1
  24. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  25. package/dist/lib/components/Slot.test.js +1 -1
  26. package/dist/lib/components/Slot.test.js.map +1 -1
  27. package/dist/lib/components/TopNavigation.d.ts +7 -1
  28. package/dist/lib/components/TopNavigation.js +7 -2
  29. package/dist/lib/components/TopNavigation.js.map +1 -1
  30. package/dist/lib/components/Zudoku.d.ts +4 -1
  31. package/dist/lib/components/Zudoku.js +4 -7
  32. package/dist/lib/components/Zudoku.js.map +1 -1
  33. package/dist/lib/components/context/ZudokuContext.d.ts +9 -4
  34. package/dist/lib/components/context/ZudokuContext.js +4 -2
  35. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  36. package/dist/lib/components/context/ZudokuProvider.js +1 -1
  37. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  38. package/dist/lib/components/context/ZudokuReactContext.d.ts +11 -0
  39. package/dist/lib/components/context/ZudokuReactContext.js +4 -0
  40. package/dist/lib/components/context/ZudokuReactContext.js.map +1 -0
  41. package/dist/lib/components/navigation/Navigation.js +4 -3
  42. package/dist/lib/components/navigation/Navigation.js.map +1 -1
  43. package/dist/lib/components/navigation/NavigationCategory.js +8 -0
  44. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  45. package/dist/lib/components/navigation/NavigationFilterContext.d.ts +8 -0
  46. package/dist/lib/components/navigation/NavigationFilterContext.js +12 -0
  47. package/dist/lib/components/navigation/NavigationFilterContext.js.map +1 -0
  48. package/dist/lib/components/navigation/NavigationFilterInput.d.ts +3 -0
  49. package/dist/lib/components/navigation/NavigationFilterInput.js +9 -0
  50. package/dist/lib/components/navigation/NavigationFilterInput.js.map +1 -0
  51. package/dist/lib/components/navigation/NavigationItem.js +11 -1
  52. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  53. package/dist/lib/components/navigation/utils.d.ts +2 -1
  54. package/dist/lib/components/navigation/utils.js +22 -1
  55. package/dist/lib/components/navigation/utils.js.map +1 -1
  56. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  57. package/dist/lib/core/ZudokuContext.js +3 -1
  58. package/dist/lib/core/ZudokuContext.js.map +1 -1
  59. package/dist/lib/core/__internal.d.ts +1 -0
  60. package/dist/lib/core/__internal.js +2 -0
  61. package/dist/lib/core/__internal.js.map +1 -1
  62. package/dist/lib/core/plugins.d.ts +5 -1
  63. package/dist/lib/core/plugins.js.map +1 -1
  64. package/dist/lib/core/transform-config.d.ts +4 -2
  65. package/dist/lib/core/transform-config.js +33 -13
  66. package/dist/lib/core/transform-config.js.map +1 -1
  67. package/dist/lib/core/transform-config.test.d.ts +1 -0
  68. package/dist/lib/core/transform-config.test.js +83 -0
  69. package/dist/lib/core/transform-config.test.js.map +1 -0
  70. package/dist/lib/errors/ErrorAlert.js +1 -2
  71. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  72. package/dist/lib/hooks/useEvent.test.js +1 -1
  73. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  74. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +1 -0
  75. package/dist/lib/plugins/openapi/playground/fileUtils.js +3 -0
  76. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
  77. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.d.ts +6 -0
  78. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js +20 -0
  79. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js.map +1 -0
  80. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +7 -2
  81. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  82. package/dist/lib/ui/Alert.d.ts +3 -2
  83. package/dist/lib/ui/Alert.js +9 -5
  84. package/dist/lib/ui/Alert.js.map +1 -1
  85. package/dist/lib/ui/InputGroup.d.ts +16 -0
  86. package/dist/lib/ui/InputGroup.js +65 -0
  87. package/dist/lib/ui/InputGroup.js.map +1 -0
  88. package/dist/lib/ui/Secret.js +2 -2
  89. package/dist/lib/ui/Secret.js.map +1 -1
  90. package/dist/vite/config.js +5 -2
  91. package/dist/vite/config.js.map +1 -1
  92. package/dist/vite/plugin-config.js +16 -4
  93. package/dist/vite/plugin-config.js.map +1 -1
  94. package/dist/vite/plugin-theme.js +2 -1
  95. package/dist/vite/plugin-theme.js.map +1 -1
  96. package/dist/vite/prerender/prerender.js +3 -1
  97. package/dist/vite/prerender/prerender.js.map +1 -1
  98. package/dist/vite/prerender/worker.js +3 -1
  99. package/dist/vite/prerender/worker.js.map +1 -1
  100. package/lib/{ClaudeLogo-C6q-Xn_l.js → ClaudeLogo-Br8C_vTq.js} +3 -3
  101. package/lib/{ClaudeLogo-C6q-Xn_l.js.map → ClaudeLogo-Br8C_vTq.js.map} +1 -1
  102. package/lib/{HydrationBoundary-CNF2ZV3E.js → HydrationBoundary-CJu4vUlG.js} +6 -6
  103. package/lib/{HydrationBoundary-CNF2ZV3E.js.map → HydrationBoundary-CJu4vUlG.js.map} +1 -1
  104. package/lib/{MdxPage-B1G4W1TK.js → MdxPage-C0QFAsgv.js} +6 -6
  105. package/lib/{MdxPage-B1G4W1TK.js.map → MdxPage-C0QFAsgv.js.map} +1 -1
  106. package/lib/Mermaid-Chx5BPHn.js +104 -0
  107. package/lib/Mermaid-Chx5BPHn.js.map +1 -0
  108. package/lib/{OAuthErrorPage-01Ke086W.js → OAuthErrorPage-CFz_gBFx.js} +11 -10
  109. package/lib/{OAuthErrorPage-01Ke086W.js.map → OAuthErrorPage-CFz_gBFx.js.map} +1 -1
  110. package/lib/{OasProvider-oHPiMJZg.js → OasProvider-BQ60YgAd.js} +3 -3
  111. package/lib/{OasProvider-oHPiMJZg.js.map → OasProvider-BQ60YgAd.js.map} +1 -1
  112. package/lib/{OperationList-CZ4OK8Pm.js → OperationList-D31urxqy.js} +40 -39
  113. package/lib/{OperationList-CZ4OK8Pm.js.map → OperationList-D31urxqy.js.map} +1 -1
  114. package/lib/{RouteGuard-B1lCR0C_.js → RouteGuard-CVs3yvEs.js} +3 -3
  115. package/lib/{RouteGuard-B1lCR0C_.js.map → RouteGuard-CVs3yvEs.js.map} +1 -1
  116. package/lib/{SchemaList-DoQFkJgM.js → SchemaList-CSVFH585.js} +7 -7
  117. package/lib/{SchemaList-DoQFkJgM.js.map → SchemaList-CSVFH585.js.map} +1 -1
  118. package/lib/{SchemaView-D2k6ZJck.js → SchemaView-D4marpgk.js} +3 -3
  119. package/lib/{SchemaView-D2k6ZJck.js.map → SchemaView-D4marpgk.js.map} +1 -1
  120. package/lib/{Secret-BDBqq4p3.js → Secret-DUpgv4V3.js} +92 -72
  121. package/lib/Secret-DUpgv4V3.js.map +1 -0
  122. package/lib/{SignUp-8kDBaLbO.js → SignUp-Dug1jAGC.js} +4 -4
  123. package/lib/{SignUp-8kDBaLbO.js.map → SignUp-Dug1jAGC.js.map} +1 -1
  124. package/lib/{SyntaxHighlight-hZOFnYl0.js → SyntaxHighlight-BMu0b_hF.js} +8 -8
  125. package/lib/{SyntaxHighlight-hZOFnYl0.js.map → SyntaxHighlight-BMu0b_hF.js.map} +1 -1
  126. package/lib/{Toc-qEIii_-W.js → Toc-BiJ2YL0O.js} +2 -2
  127. package/lib/{Toc-qEIii_-W.js.map → Toc-BiJ2YL0O.js.map} +1 -1
  128. package/lib/{Zudoku-DUsdmPME.js → Zudoku-iyiXgWFY.js} +2777 -2622
  129. package/lib/Zudoku-iyiXgWFY.js.map +1 -0
  130. package/lib/ZudokuContext-CYyb_PB_.js +175 -0
  131. package/lib/ZudokuContext-CYyb_PB_.js.map +1 -0
  132. package/lib/ZudokuReactContext-DGJAP1sN.js +222 -0
  133. package/lib/ZudokuReactContext-DGJAP1sN.js.map +1 -0
  134. package/lib/{circular-D9tSKG2c.js → circular-cPOX8BVJ.js} +2 -2
  135. package/lib/{circular-D9tSKG2c.js.map → circular-cPOX8BVJ.js.map} +1 -1
  136. package/lib/{createServer-BprC4n85.js → createServer-SJT25uZH.js} +4 -4
  137. package/lib/{createServer-BprC4n85.js.map → createServer-SJT25uZH.js.map} +1 -1
  138. package/lib/{errors-7hgPDs1h.js → errors-B77S9iOc.js} +2 -2
  139. package/lib/{errors-7hgPDs1h.js.map → errors-B77S9iOc.js.map} +1 -1
  140. package/lib/{firebase-Dwn-2ju-.js → firebase-C7XKRGLf.js} +25 -24
  141. package/lib/{firebase-Dwn-2ju-.js.map → firebase-C7XKRGLf.js.map} +1 -1
  142. package/lib/{hook-ZEd1Es7D.js → hook-Dz_n9SoE.js} +16 -15
  143. package/lib/{hook-ZEd1Es7D.js.map → hook-Dz_n9SoE.js.map} +1 -1
  144. package/lib/{index-Dxdhrp-I.js → index-BDp2MTiq.js} +2 -2
  145. package/lib/{index-Dxdhrp-I.js.map → index-BDp2MTiq.js.map} +1 -1
  146. package/lib/{index-CyIW9rHv.js → index-Bc2mE-53.js} +642 -606
  147. package/lib/index-Bc2mE-53.js.map +1 -0
  148. package/lib/{index.esm-DG4KaDKR.js → index.esm-Cth49JBv.js} +2 -2
  149. package/lib/index.esm-Cth49JBv.js.map +1 -0
  150. package/lib/{mutation-BISOc7OM.js → mutation-B7eFBLZY.js} +2 -2
  151. package/lib/{mutation-BISOc7OM.js.map → mutation-B7eFBLZY.js.map} +1 -1
  152. package/lib/ui/Alert.js +32 -20
  153. package/lib/ui/Alert.js.map +1 -1
  154. package/lib/ui/InputGroup.js +155 -0
  155. package/lib/ui/InputGroup.js.map +1 -0
  156. package/lib/ui/Secret.js +2 -2
  157. package/lib/ui/Secret.js.map +1 -1
  158. package/lib/ui/SyntaxHighlight.js +2 -2
  159. package/lib/{useMutation-CFMGlAMW.js → useMutation-CErliDZ9.js} +5 -5
  160. package/lib/{useMutation-CFMGlAMW.js.map → useMutation-CErliDZ9.js.map} +1 -1
  161. package/lib/{useSuspenseQuery-CSB_rVek.js → useQuery-ht7aWJ3S.js} +432 -446
  162. package/lib/useQuery-ht7aWJ3S.js.map +1 -0
  163. package/lib/useSuspenseQuery-DQH4Bmc2.js +18 -0
  164. package/lib/useSuspenseQuery-DQH4Bmc2.js.map +1 -0
  165. package/lib/zudoku.__internal.js +524 -500
  166. package/lib/zudoku.__internal.js.map +1 -1
  167. package/lib/zudoku.auth-auth0.js +6 -5
  168. package/lib/zudoku.auth-auth0.js.map +1 -1
  169. package/lib/zudoku.auth-azureb2c.js +14 -13
  170. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  171. package/lib/zudoku.auth-clerk.js +2 -2
  172. package/lib/zudoku.auth-firebase.js +4 -4
  173. package/lib/zudoku.auth-openid.js +7 -6
  174. package/lib/zudoku.auth-openid.js.map +1 -1
  175. package/lib/zudoku.auth-supabase.js +4 -4
  176. package/lib/zudoku.components.js +3 -3
  177. package/lib/zudoku.hooks.js +3 -3
  178. package/lib/zudoku.mermaid.js +3 -3
  179. package/lib/zudoku.plugin-api-catalog.js +28 -27
  180. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  181. package/lib/zudoku.plugin-api-keys.js +98 -96
  182. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  183. package/lib/zudoku.plugin-custom-pages.js +1 -1
  184. package/lib/zudoku.plugin-markdown.js +1 -1
  185. package/lib/zudoku.plugin-openapi.js +2 -2
  186. package/lib/zudoku.plugin-search-pagefind.js +19 -18
  187. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  188. package/lib/zudoku.plugins.js.map +1 -1
  189. package/lib/zudoku.react-query.js +26 -25
  190. package/lib/zudoku.react-query.js.map +1 -1
  191. package/package.json +10 -4
  192. package/src/app/defaultTheme.css +4 -0
  193. package/src/app/main.css +2 -0
  194. package/src/app/main.tsx +1 -1
  195. package/src/lib/components/Bootstrap.tsx +1 -4
  196. package/src/lib/components/MobileTopNavigation.tsx +13 -8
  197. package/src/lib/components/Slot.test.tsx +1 -1
  198. package/src/lib/components/TopNavigation.tsx +25 -7
  199. package/src/lib/components/Zudoku.tsx +18 -14
  200. package/src/lib/components/context/ZudokuContext.ts +3 -6
  201. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  202. package/src/lib/components/context/ZudokuReactContext.tsx +17 -0
  203. package/src/lib/components/navigation/Navigation.tsx +4 -3
  204. package/src/lib/components/navigation/NavigationCategory.tsx +9 -0
  205. package/src/lib/components/navigation/NavigationFilterContext.tsx +28 -0
  206. package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -0
  207. package/src/lib/components/navigation/NavigationItem.tsx +17 -1
  208. package/src/lib/components/navigation/utils.ts +32 -1
  209. package/src/lib/core/ZudokuContext.ts +7 -1
  210. package/src/lib/core/__internal.tsx +2 -0
  211. package/src/lib/core/plugins.ts +7 -3
  212. package/src/lib/core/transform-config.test.tsx +99 -0
  213. package/src/lib/core/transform-config.ts +57 -19
  214. package/src/lib/errors/ErrorAlert.tsx +1 -6
  215. package/src/lib/hooks/useEvent.test.tsx +1 -1
  216. package/src/lib/plugins/openapi/playground/fileUtils.ts +4 -0
  217. package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -0
  218. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +33 -17
  219. package/src/lib/ui/Alert.tsx +17 -5
  220. package/src/lib/ui/InputGroup.tsx +168 -0
  221. package/src/lib/ui/Secret.tsx +2 -2
  222. package/lib/Mermaid-B1xNo-pf.js +0 -103
  223. package/lib/Mermaid-B1xNo-pf.js.map +0 -1
  224. package/lib/Secret-BDBqq4p3.js.map +0 -1
  225. package/lib/Separator-BXt1LYnm.js +0 -27
  226. package/lib/Separator-BXt1LYnm.js.map +0 -1
  227. package/lib/Zudoku-DUsdmPME.js.map +0 -1
  228. package/lib/ZudokuContext-BBI06sOx.js +0 -387
  229. package/lib/ZudokuContext-BBI06sOx.js.map +0 -1
  230. package/lib/index-CyIW9rHv.js.map +0 -1
  231. package/lib/index.esm-DG4KaDKR.js.map +0 -1
  232. package/lib/useSuspenseQuery-CSB_rVek.js.map +0 -1
@@ -1,39 +1,41 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
- import { ChevronsDownUpIcon as On, ChevronsUpDownIcon as Ln, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as me, TrashIcon as En, FileInput as kn, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Rn, TableOfContentsIcon as In, LockIcon as Dn, CircleAlertIcon as Fn, Circle as zn, Unlink2Icon as Vn, CornerDownRightIcon as Bn, MinusCircleIcon as bt, CornerDownLeftIcon as _n, SquareCodeIcon as qn, DownloadIcon as Mn, EyeOffIcon as Un, EyeIcon as Gn, UnplugIcon as Hn, SendIcon as Qn, CopyIcon as Jn, IdCardLanyardIcon as Wn, ShapesIcon as Xn, PlayIcon as Kn, CirclePlayIcon as Zn } from "lucide-react";
3
- import { r as Yn, d as es, a as ts, N as ns, aL as ss, m as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
2
+ import { ChevronsDownUpIcon as kn, ChevronsUpDownIcon as En, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as me, TrashIcon as Rn, FileInput as In, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Dn, TableOfContentsIcon as Fn, LockIcon as zn, CircleAlertIcon as Vn, Circle as Bn, Unlink2Icon as _n, DownloadIcon as Ft, CornerDownRightIcon as qn, MinusCircleIcon as bt, CornerDownLeftIcon as Un, SquareCodeIcon as Mn, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Xn, ShapesIcon as Kn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
3
+ import { r as es, d as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
4
4
  import { Button as K } from "./ui/Button.js";
5
- import { f as Ze, p as Ye, g as Ft, s as rs, h as as, j as V } from "./ZudokuContext-BBI06sOx.js";
5
+ import { e as as, j as V } from "./ZudokuContext-CYyb_PB_.js";
6
6
  import { Z as os } from "./invariant-B_t_F2s_.js";
7
7
  import * as xe from "react";
8
- import { createContext as zt, use as is, useRef as E, useEffect as G, useMemo as Vt, useCallback as D, startTransition as ls, useState as k, Fragment as le, useLayoutEffect as cs, useTransition as ds, useContext as us } from "react";
8
+ import { createContext as zt, use as is, useRef as E, useEffect as U, useMemo as Vt, useCallback as D, startTransition as ls, useState as k, Fragment as le, useLayoutEffect as cs, useTransition as ds, useContext as us } from "react";
9
9
  import { VisuallyHidden as ms } from "@radix-ui/react-visually-hidden";
10
10
  import { z as ps } from "./index-DAWHN3cH.js";
11
- import { u as hs } from "./hook-ZEd1Es7D.js";
12
- import { B as q } from "./Button-GUVe7pmt.js";
13
- import { D as et, a as tt, c as nt, d as Bt, e as _t, g as fs } from "./Dialog-hlvmmQ_c.js";
14
- import { j as Ct, k as Nt, l as St, c as gs, m as xs, g as ys } from "./Zudoku-DUsdmPME.js";
15
- import { u as vs } from "./useMutation-CFMGlAMW.js";
16
- import { u as oe, b as qt, C as wt, a as bs, F as js } from "./index.esm-BYObtETB.js";
11
+ import { u as hs } from "./hook-Dz_n9SoE.js";
12
+ import { c as Ze, p as Ye, a as Bt, s as fs } from "./ZudokuReactContext-DGJAP1sN.js";
13
+ import { B } from "./Button-GUVe7pmt.js";
14
+ import { D as et, a as tt, c as nt, d as _t, e as qt, g as gs } from "./Dialog-hlvmmQ_c.js";
15
+ import { j as Ct, k as Nt, l as wt, m as xs, g as ys } from "./Zudoku-iyiXgWFY.js";
16
+ import { u as vs } from "./useMutation-CErliDZ9.js";
17
+ import { u as oe, b as Ut, C as St, a as bs, F as js } from "./index.esm-BYObtETB.js";
17
18
  import * as st from "@radix-ui/react-collapsible";
18
- import { S as Mt, a as Ut, b as Gt, c as Ht, e as Te, g as Cs } from "./Secret-BDBqq4p3.js";
19
- import { c as w } from "./cn-5-Gd1Dss.js";
20
- import { u as Ns } from "./useCopyToClipboard-B_085nfO.js";
19
+ import { a as Mt, b as Gt, c as Ht, d as Qt, f as Ae, S as Cs, h as Ns } from "./Secret-DUpgv4V3.js";
20
+ import { c as S } from "./cn-5-Gd1Dss.js";
21
+ import { u as ws } from "./useCopyToClipboard-B_085nfO.js";
21
22
  import { u as Ss } from "./useLatest-hmRS46UF.js";
22
- import { D as Qt, a as Jt, b as Wt, d as ws, e as Ts, f as As, c as Ae } from "./DropdownMenu-DN0jNrjj.js";
23
- import { I as $s } from "./Input-Cx-GeKoF.js";
23
+ import { D as Jt, a as Wt, b as Xt, d as Ts, e as As, f as Os, c as Oe } from "./DropdownMenu-DN0jNrjj.js";
24
+ import { I as Ps } from "./Input-Cx-GeKoF.js";
24
25
  import { c as ye } from "./createVariantComponent-Dc0vtOvr.js";
25
26
  import * as Tt from "@radix-ui/react-checkbox";
26
- import * as $e from "@radix-ui/react-popover";
27
- import { PopoverAnchor as Ps } from "@radix-ui/react-popover";
28
- import { P as Os } from "./index-CrcNWbel.js";
29
- import { f as Ls, g as Es, C as ks, b as Rs } from "./Command-N6VujV30.js";
30
- import { C as Is } from "./Card-DCdq37aA.js";
31
- import * as Xt from "@radix-ui/react-label";
32
- import { c as Ds } from "./index-DI5SPFK9.js";
27
+ import * as Pe from "@radix-ui/react-popover";
28
+ import { PopoverAnchor as $s } from "@radix-ui/react-popover";
29
+ import { P as Ls } from "./index-CrcNWbel.js";
30
+ import { f as ks, g as Es, C as Rs, b as Is } from "./Command-N6VujV30.js";
31
+ import { C as Ds } from "./Card-DCdq37aA.js";
32
+ import * as Kt from "@radix-ui/react-label";
33
+ import { c as Fs } from "./index-DI5SPFK9.js";
33
34
  import * as he from "@radix-ui/react-radio-group";
34
- import { S as Fs } from "./Spinner-CI6bRyZw.js";
35
- import { A as zs, a as Vs, b as Bs } from "./Mermaid-B1xNo-pf.js";
36
- import { e as _s, u as qs } from "./useSuspenseQuery-CSB_rVek.js";
35
+ import { S as zs } from "./Spinner-CI6bRyZw.js";
36
+ import { A as Vs, a as Bs, b as _s } from "./Mermaid-Chx5BPHn.js";
37
+ import { g as qs } from "./useQuery-ht7aWJ3S.js";
38
+ import { u as Us } from "./useSuspenseQuery-DQH4Bmc2.js";
37
39
  let _e;
38
40
  const Ms = (e) => {
39
41
  if (e.errors?.[0])
@@ -41,11 +43,11 @@ const Ms = (e) => {
41
43
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
42
44
  });
43
45
  };
44
- class Us {
46
+ class Gs {
45
47
  constructor(n) {
46
48
  this.config = n;
47
49
  }
48
- #e = async () => (_e || (_e = import("./createServer-BprC4n85.js").then(
50
+ #e = async () => (_e || (_e = import("./createServer-SJT25uZH.js").then(
49
51
  (n) => n.createServer(this.config)
50
52
  )), _e);
51
53
  #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
@@ -65,20 +67,20 @@ function qe(e, n) {
65
67
  if (!!!e)
66
68
  throw new Error(n);
67
69
  }
68
- function Gs(e) {
70
+ function Hs(e) {
69
71
  return typeof e == "object" && e !== null;
70
72
  }
71
- function Hs(e, n) {
73
+ function Qs(e, n) {
72
74
  if (!!!e)
73
75
  throw new Error(
74
76
  n ?? "Unexpected invariant triggered."
75
77
  );
76
78
  }
77
- const Qs = /\r\n|[\n\r]/g;
79
+ const Js = /\r\n|[\n\r]/g;
78
80
  function We(e, n) {
79
81
  let s = 0, a = 1;
80
- for (const r of e.body.matchAll(Qs)) {
81
- if (typeof r.index == "number" || Hs(!1), r.index >= n)
82
+ for (const r of e.body.matchAll(Js)) {
83
+ if (typeof r.index == "number" || Qs(!1), r.index >= n)
82
84
  break;
83
85
  s = r.index + r[0].length, a += 1;
84
86
  }
@@ -87,23 +89,23 @@ function We(e, n) {
87
89
  column: n + 1 - s
88
90
  };
89
91
  }
90
- function Js(e) {
91
- return Kt(
92
+ function Ws(e) {
93
+ return Zt(
92
94
  e.source,
93
95
  We(e.source, e.start)
94
96
  );
95
97
  }
96
- function Kt(e, n) {
98
+ function Zt(e, n) {
97
99
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = n.line - 1, o = e.locationOffset.line - 1, i = n.line + o, c = n.line === 1 ? s : 0, l = n.column + c, m = `${e.name}:${i}:${l}
98
100
  `, d = a.split(/\r\n|[\n\r]/g), f = d[r];
99
101
  if (f.length > 120) {
100
- const x = Math.floor(l / 80), h = l % 80, v = [];
102
+ const x = Math.floor(l / 80), p = l % 80, v = [];
101
103
  for (let u = 0; u < f.length; u += 80)
102
104
  v.push(f.slice(u, u + 80));
103
105
  return m + At([
104
106
  [`${i} |`, v[0]],
105
107
  ...v.slice(1, x + 1).map((u) => ["|", u]),
106
- ["|", "^".padStart(h)],
108
+ ["|", "^".padStart(p)],
107
109
  ["|", v[x + 1]]
108
110
  ]);
109
111
  }
@@ -120,7 +122,7 @@ function At(e) {
120
122
  return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
121
123
  `);
122
124
  }
123
- function Ws(e) {
125
+ function Xs(e) {
124
126
  const n = e[0];
125
127
  return n == null || "kind" in n || "length" in n ? {
126
128
  nodes: n,
@@ -172,18 +174,18 @@ class rt extends Error {
172
174
  */
173
175
  constructor(n, ...s) {
174
176
  var a, r, o;
175
- const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Ws(s);
176
- super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = $t(
177
+ const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Xs(s);
178
+ super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = Ot(
177
179
  Array.isArray(i) ? i : i ? [i] : void 0
178
180
  );
179
- const x = $t(
181
+ const x = Ot(
180
182
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
181
183
  );
182
184
  this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((v) => v.start), this.locations = l && c ? l.map((v) => We(c, v)) : x?.map((v) => We(v.source, v.start));
183
- const h = Gs(
185
+ const p = Hs(
184
186
  d?.extensions
185
187
  ) ? d?.extensions : void 0;
186
- this.extensions = (o = f ?? h) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
188
+ this.extensions = (o = f ?? p) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
187
189
  message: {
188
190
  writable: !0,
189
191
  enumerable: !0
@@ -222,12 +224,12 @@ class rt extends Error {
222
224
  for (const s of this.nodes)
223
225
  s.loc && (n += `
224
226
 
225
- ` + Js(s.loc));
227
+ ` + Ws(s.loc));
226
228
  else if (this.source && this.locations)
227
229
  for (const s of this.locations)
228
230
  n += `
229
231
 
230
- ` + Kt(this.source, s);
232
+ ` + Zt(this.source, s);
231
233
  return n;
232
234
  }
233
235
  toJSON() {
@@ -237,7 +239,7 @@ class rt extends Error {
237
239
  return this.locations != null && (n.locations = this.locations), this.path != null && (n.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (n.extensions = this.extensions), n;
238
240
  }
239
241
  }
240
- function $t(e) {
242
+ function Ot(e) {
241
243
  return e === void 0 || e.length === 0 ? void 0 : e;
242
244
  }
243
245
  function F(e, n, s) {
@@ -246,7 +248,7 @@ function F(e, n, s) {
246
248
  positions: [n]
247
249
  });
248
250
  }
249
- class Za {
251
+ class so {
250
252
  /**
251
253
  * The character offset at which this Node begins.
252
254
  */
@@ -275,7 +277,7 @@ class Za {
275
277
  };
276
278
  }
277
279
  }
278
- class Zt {
280
+ class Yt {
279
281
  /**
280
282
  * The kind of Token.
281
283
  */
@@ -317,7 +319,7 @@ class Zt {
317
319
  };
318
320
  }
319
321
  }
320
- const Xs = {
322
+ const Ks = {
321
323
  Name: [],
322
324
  Document: ["definitions"],
323
325
  OperationDefinition: [
@@ -404,10 +406,10 @@ const Xs = {
404
406
  ArgumentCoordinate: ["name", "fieldName", "argumentName"],
405
407
  DirectiveCoordinate: ["name"],
406
408
  DirectiveArgumentCoordinate: ["name", "argumentName"]
407
- }, Ks = new Set(Object.keys(Xs));
408
- function Ya(e) {
409
+ }, Zs = new Set(Object.keys(Ks));
410
+ function ro(e) {
409
411
  const n = e?.kind;
410
- return typeof n == "string" && Ks.has(n);
412
+ return typeof n == "string" && Zs.has(n);
411
413
  }
412
414
  var Pt;
413
415
  (function(e) {
@@ -419,22 +421,22 @@ function Xe(e) {
419
421
  function fe(e) {
420
422
  return e >= 48 && e <= 57;
421
423
  }
422
- function Yt(e) {
424
+ function en(e) {
423
425
  return e >= 97 && e <= 122 || // A-Z
424
426
  e >= 65 && e <= 90;
425
427
  }
426
- function en(e) {
427
- return Yt(e) || e === 95;
428
- }
429
- function Zs(e) {
430
- return Yt(e) || fe(e) || e === 95;
428
+ function tn(e) {
429
+ return en(e) || e === 95;
431
430
  }
432
431
  function Ys(e) {
432
+ return en(e) || fe(e) || e === 95;
433
+ }
434
+ function er(e) {
433
435
  var n;
434
436
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
435
437
  for (let i = 0; i < e.length; ++i) {
436
438
  var o;
437
- const c = e[i], l = er(c);
439
+ const c = e[i], l = tr(c);
438
440
  l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
439
441
  }
440
442
  return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
@@ -442,14 +444,14 @@ function Ys(e) {
442
444
  r + 1
443
445
  );
444
446
  }
445
- function er(e) {
447
+ function tr(e) {
446
448
  let n = 0;
447
449
  for (; n < e.length && Xe(e.charCodeAt(n)); )
448
450
  ++n;
449
451
  return n;
450
452
  }
451
- function tr(e, n) {
452
- 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((h) => h.length === 0 || Xe(h.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), m = c || l, d = !(n != null && n.minimize) && // add leading and trailing new lines only if it improves readability
453
+ function nr(e, n) {
454
+ 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((p) => p.length === 0 || Xe(p.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), m = c || l, d = !(n != null && n.minimize) && // add leading and trailing new lines only if it improves readability
453
455
  (!r || e.length > 70 || m || o || i);
454
456
  let f = "";
455
457
  const x = r && Xe(e.charCodeAt(0));
@@ -461,7 +463,7 @@ var b;
461
463
  (function(e) {
462
464
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", 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";
463
465
  })(b || (b = {}));
464
- class nr {
466
+ class sr {
465
467
  /**
466
468
  * The previously focused non-ignored token.
467
469
  */
@@ -475,7 +477,7 @@ class nr {
475
477
  * The character offset at which the current line begins.
476
478
  */
477
479
  constructor(n) {
478
- const s = new Zt(b.SOF, 0, 0, 0, 0);
480
+ const s = new Yt(b.SOF, 0, 0, 0, 0);
479
481
  this.source = n, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
480
482
  }
481
483
  get [Symbol.toStringTag]() {
@@ -498,26 +500,26 @@ class nr {
498
500
  if (n.next)
499
501
  n = n.next;
500
502
  else {
501
- const s = rr(this, n.end);
503
+ const s = ar(this, n.end);
502
504
  n.next = s, s.prev = n, n = s;
503
505
  }
504
506
  while (n.kind === b.COMMENT);
505
507
  return n;
506
508
  }
507
509
  }
508
- function sr(e) {
510
+ function rr(e) {
509
511
  return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || e === b.DOT || e === b.SPREAD || e === b.COLON || e === b.EQUALS || e === b.AT || e === b.BRACKET_L || e === b.BRACKET_R || e === b.BRACE_L || e === b.PIPE || e === b.BRACE_R;
510
512
  }
511
513
  function ie(e) {
512
514
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
513
515
  }
514
- function Oe(e, n) {
515
- return tn(e.charCodeAt(n)) && nn(e.charCodeAt(n + 1));
516
+ function Le(e, n) {
517
+ return nn(e.charCodeAt(n)) && sn(e.charCodeAt(n + 1));
516
518
  }
517
- function tn(e) {
519
+ function nn(e) {
518
520
  return e >= 55296 && e <= 56319;
519
521
  }
520
- function nn(e) {
522
+ function sn(e) {
521
523
  return e >= 56320 && e <= 57343;
522
524
  }
523
525
  function Z(e, n) {
@@ -532,9 +534,9 @@ function Z(e, n) {
532
534
  }
533
535
  function P(e, n, s, a, r) {
534
536
  const o = e.line, i = 1 + s - e.lineStart;
535
- return new Zt(n, s, a, o, i, r);
537
+ return new Yt(n, s, a, o, i, r);
536
538
  }
537
- function rr(e, n) {
539
+ function ar(e, n) {
538
540
  const s = e.source.body, a = s.length;
539
541
  let r = n;
540
542
  for (; r < a; ) {
@@ -575,7 +577,7 @@ function rr(e, n) {
575
577
  continue;
576
578
  // Comment
577
579
  case 35:
578
- return ar(e, r);
580
+ return or(e, r);
579
581
  // Token ::
580
582
  // - Punctuator
581
583
  // - Name
@@ -616,21 +618,21 @@ function rr(e, n) {
616
618
  return P(e, b.BRACE_R, r, r + 1);
617
619
  // StringValue
618
620
  case 34:
619
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? ur(e, r) : ir(e, r);
621
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? mr(e, r) : lr(e, r);
620
622
  }
621
623
  if (fe(o) || o === 45)
622
- return or(e, r, o);
623
- if (en(o))
624
- return mr(e, r);
624
+ return ir(e, r, o);
625
+ if (tn(o))
626
+ return pr(e, r);
625
627
  throw F(
626
628
  e.source,
627
629
  r,
628
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ie(o) || Oe(s, r) ? `Unexpected character: ${Z(e, r)}.` : `Invalid character: ${Z(e, r)}.`
630
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ie(o) || Le(s, r) ? `Unexpected character: ${Z(e, r)}.` : `Invalid character: ${Z(e, r)}.`
629
631
  );
630
632
  }
631
633
  return P(e, b.EOF, a, a);
632
634
  }
633
- function ar(e, n) {
635
+ function or(e, n) {
634
636
  const s = e.source.body, a = s.length;
635
637
  let r = n + 1;
636
638
  for (; r < a; ) {
@@ -639,7 +641,7 @@ function ar(e, n) {
639
641
  break;
640
642
  if (ie(o))
641
643
  ++r;
642
- else if (Oe(s, r))
644
+ else if (Le(s, r))
643
645
  r += 2;
644
646
  else
645
647
  break;
@@ -652,7 +654,7 @@ function ar(e, n) {
652
654
  s.slice(n + 1, r)
653
655
  );
654
656
  }
655
- function or(e, n, s) {
657
+ function ir(e, n, s) {
656
658
  const a = e.source.body;
657
659
  let r = n, o = s, i = !1;
658
660
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
@@ -666,8 +668,8 @@ function or(e, n, s) {
666
668
  )}.`
667
669
  );
668
670
  } else
669
- r = Me(e, r, o), o = a.charCodeAt(r);
670
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Me(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 = Me(e, r, o), o = a.charCodeAt(r)), o === 46 || en(o))
671
+ r = Ue(e, r, o), o = a.charCodeAt(r);
672
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ue(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 = Ue(e, r, o), o = a.charCodeAt(r)), o === 46 || tn(o))
671
673
  throw F(
672
674
  e.source,
673
675
  r,
@@ -684,7 +686,7 @@ function or(e, n, s) {
684
686
  a.slice(n, r)
685
687
  );
686
688
  }
687
- function Me(e, n, s) {
689
+ function Ue(e, n, s) {
688
690
  if (!fe(s))
689
691
  throw F(
690
692
  e.source,
@@ -700,7 +702,7 @@ function Me(e, n, s) {
700
702
  ++r;
701
703
  return r;
702
704
  }
703
- function ir(e, n) {
705
+ function lr(e, n) {
704
706
  const s = e.source.body, a = s.length;
705
707
  let r = n + 1, o = r, i = "";
706
708
  for (; r < a; ) {
@@ -709,7 +711,7 @@ function ir(e, n) {
709
711
  return i += s.slice(o, r), P(e, b.STRING, n, r + 1, i);
710
712
  if (c === 92) {
711
713
  i += s.slice(o, r);
712
- const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? lr(e, r) : cr(e, r) : dr(e, r);
714
+ const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? cr(e, r) : dr(e, r) : ur(e, r);
713
715
  i += l.value, r += l.size, o = r;
714
716
  continue;
715
717
  }
@@ -717,7 +719,7 @@ function ir(e, n) {
717
719
  break;
718
720
  if (ie(c))
719
721
  ++r;
720
- else if (Oe(s, r))
722
+ else if (Le(s, r))
721
723
  r += 2;
722
724
  else
723
725
  throw F(
@@ -731,7 +733,7 @@ function ir(e, n) {
731
733
  }
732
734
  throw F(e.source, r, "Unterminated string.");
733
735
  }
734
- function lr(e, n) {
736
+ function cr(e, n) {
735
737
  const s = e.source.body;
736
738
  let a = 0, r = 3;
737
739
  for (; r < 12; ) {
@@ -756,16 +758,16 @@ function lr(e, n) {
756
758
  )}".`
757
759
  );
758
760
  }
759
- function cr(e, n) {
760
- const s = e.source.body, a = Ot(s, n + 2);
761
+ function dr(e, n) {
762
+ const s = e.source.body, a = $t(s, n + 2);
761
763
  if (ie(a))
762
764
  return {
763
765
  value: String.fromCodePoint(a),
764
766
  size: 6
765
767
  };
766
- if (tn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
767
- const r = Ot(s, n + 8);
768
- if (nn(r))
768
+ if (nn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
769
+ const r = $t(s, n + 8);
770
+ if (sn(r))
769
771
  return {
770
772
  value: String.fromCodePoint(a, r),
771
773
  size: 12
@@ -777,13 +779,13 @@ function cr(e, n) {
777
779
  `Invalid Unicode escape sequence: "${s.slice(n, n + 6)}".`
778
780
  );
779
781
  }
780
- function Ot(e, n) {
782
+ function $t(e, n) {
781
783
  return ce(e.charCodeAt(n)) << 12 | ce(e.charCodeAt(n + 1)) << 8 | ce(e.charCodeAt(n + 2)) << 4 | ce(e.charCodeAt(n + 3));
782
784
  }
783
785
  function ce(e) {
784
786
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
785
787
  }
786
- function dr(e, n) {
788
+ function ur(e, n) {
787
789
  const s = e.source.body;
788
790
  switch (s.charCodeAt(n + 1)) {
789
791
  case 34:
@@ -837,7 +839,7 @@ function dr(e, n) {
837
839
  )}".`
838
840
  );
839
841
  }
840
- function ur(e, n) {
842
+ function mr(e, n) {
841
843
  const s = e.source.body, a = s.length;
842
844
  let r = e.lineStart, o = n + 3, i = o, c = "";
843
845
  const l = [];
@@ -851,7 +853,7 @@ function ur(e, n) {
851
853
  n,
852
854
  o + 3,
853
855
  // Return a string of the lines joined with U+000A.
854
- Ys(l).join(`
856
+ er(l).join(`
855
857
  `)
856
858
  );
857
859
  return e.line += l.length - 1, e.lineStart = r, d;
@@ -866,7 +868,7 @@ function ur(e, n) {
866
868
  }
867
869
  if (ie(m))
868
870
  ++o;
869
- else if (Oe(s, o))
871
+ else if (Le(s, o))
870
872
  o += 2;
871
873
  else
872
874
  throw F(
@@ -880,12 +882,12 @@ function ur(e, n) {
880
882
  }
881
883
  throw F(e.source, o, "Unterminated string.");
882
884
  }
883
- function mr(e, n) {
885
+ function pr(e, n) {
884
886
  const s = e.source.body, a = s.length;
885
887
  let r = n + 1;
886
888
  for (; r < a; ) {
887
889
  const o = s.charCodeAt(r);
888
- if (Zs(o))
890
+ if (Ys(o))
889
891
  ++r;
890
892
  else
891
893
  break;
@@ -898,56 +900,56 @@ function mr(e, n) {
898
900
  s.slice(n, r)
899
901
  );
900
902
  }
901
- const pr = 10, sn = 2;
902
- function rn(e) {
903
- return Le(e, []);
903
+ const hr = 10, rn = 2;
904
+ function an(e) {
905
+ return ke(e, []);
904
906
  }
905
- function Le(e, n) {
907
+ function ke(e, n) {
906
908
  switch (typeof e) {
907
909
  case "string":
908
910
  return JSON.stringify(e);
909
911
  case "function":
910
912
  return e.name ? `[function ${e.name}]` : "[function]";
911
913
  case "object":
912
- return hr(e, n);
914
+ return fr(e, n);
913
915
  default:
914
916
  return String(e);
915
917
  }
916
918
  }
917
- function hr(e, n) {
919
+ function fr(e, n) {
918
920
  if (e === null)
919
921
  return "null";
920
922
  if (n.includes(e))
921
923
  return "[Circular]";
922
924
  const s = [...n, e];
923
- if (fr(e)) {
925
+ if (gr(e)) {
924
926
  const a = e.toJSON();
925
927
  if (a !== e)
926
- return typeof a == "string" ? a : Le(a, s);
928
+ return typeof a == "string" ? a : ke(a, s);
927
929
  } else if (Array.isArray(e))
928
- return xr(e, s);
929
- return gr(e, s);
930
+ return yr(e, s);
931
+ return xr(e, s);
930
932
  }
931
- function fr(e) {
933
+ function gr(e) {
932
934
  return typeof e.toJSON == "function";
933
935
  }
934
- function gr(e, n) {
936
+ function xr(e, n) {
935
937
  const s = Object.entries(e);
936
- return s.length === 0 ? "{}" : n.length > sn ? "[" + yr(e) + "]" : "{ " + s.map(
937
- ([r, o]) => r + ": " + Le(o, n)
938
+ return s.length === 0 ? "{}" : n.length > rn ? "[" + vr(e) + "]" : "{ " + s.map(
939
+ ([r, o]) => r + ": " + ke(o, n)
938
940
  ).join(", ") + " }";
939
941
  }
940
- function xr(e, n) {
942
+ function yr(e, n) {
941
943
  if (e.length === 0)
942
944
  return "[]";
943
- if (n.length > sn)
945
+ if (n.length > rn)
944
946
  return "[Array]";
945
- const s = Math.min(pr, e.length), a = e.length - s, r = [];
947
+ const s = Math.min(hr, e.length), a = e.length - s, r = [];
946
948
  for (let o = 0; o < s; ++o)
947
- r.push(Le(e[o], n));
949
+ r.push(ke(e[o], n));
948
950
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
949
951
  }
950
- function yr(e) {
952
+ function vr(e) {
951
953
  const n = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
952
954
  if (n === "Object" && typeof e.constructor == "function") {
953
955
  const s = e.constructor.name;
@@ -956,11 +958,11 @@ function yr(e) {
956
958
  }
957
959
  return n;
958
960
  }
959
- const vr = globalThis.process && // eslint-disable-next-line no-undef
960
- process.env.NODE_ENV === "production", br = (
961
+ const br = globalThis.process && // eslint-disable-next-line no-undef
962
+ process.env.NODE_ENV === "production", jr = (
961
963
  /* c8 ignore next 6 */
962
964
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
963
- vr ? function(n, s) {
965
+ br ? function(n, s) {
964
966
  return n instanceof s;
965
967
  } : function(n, s) {
966
968
  if (n instanceof s)
@@ -972,7 +974,7 @@ process.env.NODE_ENV === "production", br = (
972
974
  Symbol.toStringTag in n ? n[Symbol.toStringTag] : (a = n.constructor) === null || a === void 0 ? void 0 : a.name
973
975
  );
974
976
  if (r === o) {
975
- const i = rn(n);
977
+ const i = an(n);
976
978
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
977
979
 
978
980
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -990,12 +992,12 @@ spurious results.`);
990
992
  return !1;
991
993
  }
992
994
  );
993
- class an {
995
+ class on {
994
996
  constructor(n, s = "GraphQL request", a = {
995
997
  line: 1,
996
998
  column: 1
997
999
  }) {
998
- typeof n == "string" || qe(!1, `Body must be a string. Received: ${rn(n)}.`), this.body = n, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || qe(
1000
+ typeof n == "string" || qe(!1, `Body must be a string. Received: ${an(n)}.`), this.body = n, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || qe(
999
1001
  !1,
1000
1002
  "line in locationOffset is 1-indexed and must be positive."
1001
1003
  ), this.locationOffset.column > 0 || qe(
@@ -1007,35 +1009,35 @@ class an {
1007
1009
  return "Source";
1008
1010
  }
1009
1011
  }
1010
- function jr(e) {
1011
- return br(e, an);
1012
- }
1013
1012
  function Cr(e) {
1014
- const n = jr(e) ? e : new an(e), s = n.body, a = new nr(n);
1013
+ return jr(e, on);
1014
+ }
1015
+ function Nr(e) {
1016
+ const n = Cr(e) ? e : new on(e), s = n.body, a = new sr(n);
1015
1017
  let r = "", o = !1;
1016
1018
  for (; a.advance().kind !== b.EOF; ) {
1017
- const i = a.token, c = i.kind, l = !sr(i.kind);
1019
+ const i = a.token, c = i.kind, l = !rr(i.kind);
1018
1020
  o && (l || i.kind === b.SPREAD) && (r += " ");
1019
1021
  const m = s.slice(i.start, i.end);
1020
- c === b.BLOCK_STRING ? r += tr(i.value, {
1022
+ c === b.BLOCK_STRING ? r += nr(i.value, {
1021
1023
  minimize: !0
1022
1024
  }) : r += m, o = l;
1023
1025
  }
1024
1026
  return r;
1025
1027
  }
1026
- const on = zt(
1028
+ const ln = zt(
1027
1029
  void 0
1028
- ), eo = ({
1030
+ ), ao = ({
1029
1031
  children: e,
1030
1032
  client: n
1031
- }) => /* @__PURE__ */ t.jsx(on.Provider, { value: n, children: e }), ln = (e, n, ...[s]) => ({
1033
+ }) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
1032
1034
  queryFn: () => e.fetch(n, s),
1033
- queryKey: [Cr(n.toString()), s]
1034
- }), Nr = (e, ...[n]) => {
1035
- const s = is(on);
1035
+ queryKey: [Nr(n.toString()), s]
1036
+ }), wr = (e, ...[n]) => {
1037
+ const s = is(ln);
1036
1038
  if (s === void 0)
1037
1039
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1038
- return ln(s, e, ...n === void 0 ? [] : [n]);
1040
+ return cn(s, e, ...n === void 0 ? [] : [n]);
1039
1041
  };
1040
1042
  class ee extends String {
1041
1043
  __apiType;
@@ -1120,7 +1122,7 @@ const Sr = new ee(
1120
1122
  }
1121
1123
  `,
1122
1124
  { fragmentName: "OperationsFragment" }
1123
- ), wr = new ee(`
1125
+ ), Tr = new ee(`
1124
1126
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1125
1127
  schema(input: $input, type: $type) {
1126
1128
  url
@@ -1129,13 +1131,13 @@ const Sr = new ee(
1129
1131
  }
1130
1132
  }
1131
1133
  }
1132
- `), Tr = new ee(`
1134
+ `), Ar = new ee(`
1133
1135
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1134
1136
  schema(input: $input, type: $type) {
1135
1137
  openapi
1136
1138
  }
1137
1139
  }
1138
- `), Ar = new ee(`
1140
+ `), Or = new ee(`
1139
1141
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1140
1142
  schema(input: $input, type: $type) {
1141
1143
  servers {
@@ -1234,7 +1236,7 @@ const Sr = new ee(
1234
1236
  schema
1235
1237
  }
1236
1238
  }
1237
- }`), $r = new ee(`
1239
+ }`), Pr = new ee(`
1238
1240
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1239
1241
  schema(input: $input, type: $type) {
1240
1242
  title
@@ -1249,7 +1251,7 @@ const Sr = new ee(
1249
1251
  }
1250
1252
  }
1251
1253
  }
1252
- `), Pr = new ee(`
1254
+ `), $r = new ee(`
1253
1255
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1254
1256
  schema(input: $input, type: $type) {
1255
1257
  url
@@ -1258,7 +1260,7 @@ const Sr = new ee(
1258
1260
  }
1259
1261
  }
1260
1262
  }
1261
- `), Or = new ee(`
1263
+ `), Lr = new ee(`
1262
1264
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1263
1265
  schema(input: $input, type: $type) {
1264
1266
  extensions
@@ -1281,19 +1283,19 @@ const Sr = new ee(
1281
1283
  }
1282
1284
  }
1283
1285
  }
1284
- `), Lr = {
1285
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": wr,
1286
+ `), kr = {
1287
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
1286
1288
  "\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": Sr,
1287
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Tr,
1288
- "\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": Ar,
1289
- "\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": $r,
1290
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Pr,
1291
- "\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": Or
1289
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
1290
+ "\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": Or,
1291
+ "\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": Pr,
1292
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": $r,
1293
+ "\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": Lr
1292
1294
  };
1293
1295
  function Er(e) {
1294
- return Lr[e] ?? {};
1296
+ return kr[e] ?? {};
1295
1297
  }
1296
- function B({
1298
+ function _({
1297
1299
  ...e
1298
1300
  }) {
1299
1301
  return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
@@ -1309,7 +1311,7 @@ function de({
1309
1311
  }
1310
1312
  );
1311
1313
  }
1312
- function _({
1314
+ function q({
1313
1315
  ...e
1314
1316
  }) {
1315
1317
  return /* @__PURE__ */ t.jsx(
@@ -1320,7 +1322,7 @@ function _({
1320
1322
  }
1321
1323
  );
1322
1324
  }
1323
- function kr() {
1325
+ function Rr() {
1324
1326
  const n = navigator.userAgent.toLowerCase();
1325
1327
  if (n.indexOf("win") !== -1)
1326
1328
  return "windows";
@@ -1331,10 +1333,10 @@ function kr() {
1331
1333
  if (n.indexOf("x11") !== -1)
1332
1334
  return "unix";
1333
1335
  }
1334
- function Rr() {
1335
- return kr() === "apple";
1336
+ function Ir() {
1337
+ return Rr() === "apple";
1336
1338
  }
1337
- const Ir = {
1339
+ const Dr = {
1338
1340
  other: {
1339
1341
  alt: "Alt",
1340
1342
  meta: "Ctrl",
@@ -1349,11 +1351,11 @@ const Ir = {
1349
1351
  shift: "⇧",
1350
1352
  option: "⌥"
1351
1353
  }
1352
- }, Dr = (e, n) => {
1354
+ }, Fr = (e, n) => {
1353
1355
  const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = E(n);
1354
- return G(() => {
1356
+ return U(() => {
1355
1357
  l.current = n;
1356
- }, [n]), G(() => {
1358
+ }, [n]), U(() => {
1357
1359
  const m = (d) => {
1358
1360
  (d.code === `Key${c?.toUpperCase()}` || d.code.toLowerCase() === c?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), l.current());
1359
1361
  };
@@ -1363,10 +1365,10 @@ const Ir = {
1363
1365
  }, [c, a, r, o, i]), {
1364
1366
  trigger: () => l.current(),
1365
1367
  label: s.map(
1366
- (m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Ir[Rr() ? "apple" : "other"][m] : m
1368
+ (m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[Ir() ? "apple" : "other"][m] : m
1367
1369
  )
1368
1370
  };
1369
- }, Fr = Ze()(
1371
+ }, zr = Ze()(
1370
1372
  Ye(
1371
1373
  (e) => ({
1372
1374
  selectedServer: void 0,
@@ -1374,17 +1376,17 @@ const Ir = {
1374
1376
  }),
1375
1377
  { name: "zudoku-selected-server" }
1376
1378
  )
1377
- ), zr = (e) => {
1378
- const { selectedServer: n, setSelectedServer: s } = Fr();
1379
+ ), Vr = (e) => {
1380
+ const { selectedServer: n, setSelectedServer: s } = zr();
1379
1381
  return { selectedServer: Vt(
1380
1382
  () => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
1381
1383
  [n, e]
1382
1384
  ), setSelectedServer: s };
1383
- }, cn = xe.forwardRef(
1385
+ }, dn = xe.forwardRef(
1384
1386
  ({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
1385
1387
  "textarea",
1386
1388
  {
1387
- className: w(
1389
+ className: S(
1388
1390
  "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1389
1391
  e
1390
1392
  ),
@@ -1393,8 +1395,8 @@ const Ir = {
1393
1395
  }
1394
1396
  )
1395
1397
  );
1396
- cn.displayName = "Textarea";
1397
- const Ee = (e = 0) => {
1398
+ dn.displayName = "Textarea";
1399
+ const ve = (e = 0) => {
1398
1400
  if (e === 0)
1399
1401
  return "0 B";
1400
1402
  const n = Math.floor(Math.log(e) / Math.log(1e3));
@@ -1405,7 +1407,7 @@ const Ee = (e = 0) => {
1405
1407
  }) => /* @__PURE__ */ t.jsxs(
1406
1408
  "div",
1407
1409
  {
1408
- className: w(
1410
+ className: S(
1409
1411
  "grid grid-cols-[max-content_1fr_max-content] items-center gap-2 group bg-muted w-full h-10 ps-4 pe-2 border-b",
1410
1412
  n
1411
1413
  ),
@@ -1414,20 +1416,20 @@ const Ee = (e = 0) => {
1414
1416
  /* @__PURE__ */ t.jsxs(
1415
1417
  de,
1416
1418
  {
1417
- className: w(
1419
+ className: S(
1418
1420
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",
1419
1421
  n
1420
1422
  ),
1421
1423
  children: [
1422
1424
  /* @__PURE__ */ t.jsx(
1423
- On,
1425
+ kn,
1424
1426
  {
1425
1427
  className: "group-data-[state=closed]:hidden shrink-0",
1426
1428
  size: 14
1427
1429
  }
1428
1430
  ),
1429
1431
  /* @__PURE__ */ t.jsx(
1430
- Ln,
1432
+ En,
1431
1433
  {
1432
1434
  className: "group-data-[state=open]:hidden shrink-0",
1433
1435
  size: 14
@@ -1441,12 +1443,12 @@ const Ee = (e = 0) => {
1441
1443
  ), H = ({
1442
1444
  children: e,
1443
1445
  className: n
1444
- }) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }), Vr = ({
1446
+ }) => /* @__PURE__ */ t.jsx("span", { className: S("font-semibold w-full text-start", n), children: e }), Br = ({
1445
1447
  examples: e,
1446
1448
  onSelect: n
1447
- }) => /* @__PURE__ */ t.jsxs(Qt, { children: [
1448
- /* @__PURE__ */ t.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1449
- q,
1449
+ }) => /* @__PURE__ */ t.jsxs(Jt, { children: [
1450
+ /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1451
+ B,
1450
1452
  {
1451
1453
  variant: "ghost",
1452
1454
  size: "sm",
@@ -1457,11 +1459,11 @@ const Ee = (e = 0) => {
1457
1459
  ]
1458
1460
  }
1459
1461
  ) }),
1460
- /* @__PURE__ */ t.jsx(Wt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1461
- /* @__PURE__ */ t.jsx(ws, { children: s.mediaType }),
1462
- /* @__PURE__ */ t.jsx(Ts, {}),
1463
- /* @__PURE__ */ t.jsx(As, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1464
- Ae,
1462
+ /* @__PURE__ */ t.jsx(Xt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
1463
+ /* @__PURE__ */ t.jsx(Ts, { children: s.mediaType }),
1464
+ /* @__PURE__ */ t.jsx(As, {}),
1465
+ /* @__PURE__ */ t.jsx(Os, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
1466
+ Oe,
1465
1467
  {
1466
1468
  onSelect: () => n(a, s.mediaType),
1467
1469
  children: /* @__PURE__ */ t.jsx(
@@ -1476,14 +1478,14 @@ const Ee = (e = 0) => {
1476
1478
  a.name
1477
1479
  )) })
1478
1480
  ] }, s.mediaType)) })
1479
- ] }), ke = ye(
1481
+ ] }), Ee = ye(
1480
1482
  "div",
1481
1483
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
1482
1484
  ), ge = ye(
1483
1485
  "div",
1484
1486
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1485
1487
  ), I = ye(
1486
- $s,
1488
+ Ps,
1487
1489
  "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
1488
1490
  ), at = ({
1489
1491
  onClick: e,
@@ -1493,7 +1495,7 @@ const Ee = (e = 0) => {
1493
1495
  {
1494
1496
  size: "icon-xs",
1495
1497
  variant: "ghost",
1496
- className: w(
1498
+ className: S(
1497
1499
  "text-muted-foreground opacity-0 group-hover:brightness-95 focus-visible:opacity-100 group-hover:opacity-100",
1498
1500
  n
1499
1501
  ),
@@ -1503,7 +1505,7 @@ const Ee = (e = 0) => {
1503
1505
  children: /* @__PURE__ */ t.jsx(It, { size: 14 })
1504
1506
  }
1505
1507
  );
1506
- function ve({
1508
+ function be({
1507
1509
  className: e,
1508
1510
  ...n
1509
1511
  }) {
@@ -1511,7 +1513,7 @@ function ve({
1511
1513
  Tt.Root,
1512
1514
  {
1513
1515
  "data-slot": "checkbox",
1514
- className: w(
1516
+ className: S(
1515
1517
  "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
1516
1518
  e
1517
1519
  ),
@@ -1527,11 +1529,11 @@ function ve({
1527
1529
  }
1528
1530
  );
1529
1531
  }
1530
- const Br = ({ index: e, manager: n }) => {
1532
+ const _r = ({ index: e, manager: n }) => {
1531
1533
  const s = E(null), a = n.getValue(e, "value");
1532
1534
  return /* @__PURE__ */ t.jsxs(ge, { children: [
1533
1535
  /* @__PURE__ */ t.jsx(
1534
- ve,
1536
+ be,
1535
1537
  {
1536
1538
  ...n.getCheckboxProps(e),
1537
1539
  disabled: !n.getValue(e, "name")
@@ -1552,7 +1554,7 @@ const Br = ({ index: e, manager: n }) => {
1552
1554
  "span",
1553
1555
  {
1554
1556
  className: "text-xs truncate",
1555
- title: `${a.name} (${Ee(a.size)})`,
1557
+ title: `${a.name} (${ve(a.size)})`,
1556
1558
  children: a.name
1557
1559
  }
1558
1560
  )
@@ -1565,7 +1567,7 @@ const Br = ({ index: e, manager: n }) => {
1565
1567
  size: "icon-xs",
1566
1568
  className: "opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",
1567
1569
  onClick: () => n.setValue(e, "value", ""),
1568
- children: /* @__PURE__ */ t.jsx(En, { size: 13 })
1570
+ children: /* @__PURE__ */ t.jsx(Rn, { size: 13 })
1569
1571
  }
1570
1572
  )
1571
1573
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -1616,7 +1618,7 @@ const Br = ({ index: e, manager: n }) => {
1616
1618
  watch: c,
1617
1619
  setFocus: l,
1618
1620
  register: m
1619
- } = oe(), { fields: d, append: f, remove: x } = qt({ control: n, name: s }), h = c(s), v = E(-1), u = E(-1), y = D(
1621
+ } = oe(), { fields: d, append: f, remove: x } = Ut({ control: n, name: s }), p = c(s), v = E(-1), u = E(-1), y = D(
1620
1622
  (g, C, T, A) => {
1621
1623
  (C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
1622
1624
  C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
@@ -1625,32 +1627,32 @@ const Br = ({ index: e, manager: n }) => {
1625
1627
  );
1626
1628
  },
1627
1629
  [s, i, l]
1628
- ), S = D(
1630
+ ), w = D(
1629
1631
  (g) => r ? r(g) : !g.name && !g.value,
1630
1632
  [r]
1631
1633
  ), R = D(
1632
1634
  (g) => o ? o(g) : !!(g.name || g.value),
1633
1635
  [o]
1634
1636
  );
1635
- G(() => {
1636
- if (!h) return;
1637
+ U(() => {
1638
+ if (!p) return;
1637
1639
  if (u.current === -1) {
1638
- u.current = h.length, h.length === 0 && f(a, {
1640
+ u.current = p.length, p.length === 0 && f(a, {
1639
1641
  shouldFocus: !1
1640
1642
  });
1641
1643
  return;
1642
1644
  }
1643
- if (u.current = h.length, h.length === 0) {
1645
+ if (u.current = p.length, p.length === 0) {
1644
1646
  f(a, {
1645
1647
  shouldFocus: !1
1646
1648
  });
1647
1649
  return;
1648
1650
  }
1649
- if (h.length > 1) {
1651
+ if (p.length > 1) {
1650
1652
  const C = [];
1651
- for (let T = 0; T < h.length - 1; T++) {
1652
- const A = h[T];
1653
- A && S(A) && !R(A) && C.push(T);
1653
+ for (let T = 0; T < p.length - 1; T++) {
1654
+ const A = p[T];
1655
+ A && w(A) && !R(A) && C.push(T);
1654
1656
  }
1655
1657
  if (C.length > 0) {
1656
1658
  const T = C[0];
@@ -1660,53 +1662,53 @@ const Br = ({ index: e, manager: n }) => {
1660
1662
  M !== void 0 && x(M);
1661
1663
  }
1662
1664
  if (v.current === T) {
1663
- const A = h.length - C.length;
1665
+ const A = p.length - C.length;
1664
1666
  T < A ? l(`${s}.${T}.name`) : T > 0 ? l(`${s}.${T - 1}.name`) : l(`${s}.0.name`);
1665
1667
  }
1666
1668
  v.current = -1;
1667
1669
  }
1668
1670
  }
1669
- const g = h[h.length - 1];
1670
- g && !S(g) && f(a, {
1671
+ const g = p[p.length - 1];
1672
+ g && !w(g) && f(a, {
1671
1673
  shouldFocus: !1
1672
1674
  });
1673
1675
  }, [
1674
- h,
1676
+ p,
1675
1677
  f,
1676
1678
  x,
1677
1679
  a,
1678
- S,
1680
+ w,
1679
1681
  s,
1680
1682
  l,
1681
1683
  R
1682
- ]), G(() => {
1683
- if (!h) return;
1684
+ ]), U(() => {
1685
+ if (!p) return;
1684
1686
  const g = [];
1685
- for (let C = 0; C < h.length; C++) {
1686
- const T = h[C];
1687
+ for (let C = 0; C < p.length; C++) {
1688
+ const T = p[C];
1687
1689
  if (!T) continue;
1688
1690
  const A = R(T);
1689
1691
  T.active !== A && g.push(() => y(C, "active", A));
1690
1692
  }
1691
1693
  g.length !== 0 && ls(() => g.forEach((C) => C()));
1692
- }, [h, R, y]);
1694
+ }, [p, R, y]);
1693
1695
  const N = D(
1694
1696
  (g) => {
1695
- const C = h?.[g];
1696
- return C ? S(C) : !0;
1697
+ const C = p?.[g];
1698
+ return C ? w(C) : !0;
1697
1699
  },
1698
- [h, S]
1700
+ [p, w]
1699
1701
  ), j = D(
1700
1702
  (g, C) => {
1701
1703
  const T = C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`, A = C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`, M = C === "value" || g > 0;
1702
1704
  return (L) => {
1703
1705
  if (!(L.target instanceof HTMLInputElement)) return;
1704
- const De = L.target.selectionStart === 0, ne = L.target.selectionStart === L.target.value.length, je = !L.target.value;
1705
- L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && ne && (L.preventDefault(), l(T));
1706
+ const De = L.target.selectionStart === 0, ne = L.target.selectionStart === L.target.value.length, Ce = !L.target.value;
1707
+ L.key === "Enter" ? l(T) : L.key === "Backspace" && Ce && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && ne && (L.preventDefault(), l(T));
1706
1708
  };
1707
1709
  },
1708
1710
  [s, l]
1709
- ), O = D(
1711
+ ), $ = D(
1710
1712
  (g) => ({
1711
1713
  ...m(`${s}.${g}.name`),
1712
1714
  onChange: (C) => y(g, "name", C.target.value),
@@ -1720,7 +1722,7 @@ const Br = ({ index: e, manager: n }) => {
1720
1722
  onKeyDown: j(g, "value")
1721
1723
  }),
1722
1724
  [m, s, y, j]
1723
- ), be = D(
1725
+ ), je = D(
1724
1726
  (g) => ({
1725
1727
  ...m(`${s}.${g}.active`),
1726
1728
  checked: c(`${s}.${g}.active`) ?? !1,
@@ -1731,8 +1733,8 @@ const Br = ({ index: e, manager: n }) => {
1731
1733
  }),
1732
1734
  [s, m, N, c, y]
1733
1735
  ), Ie = D(
1734
- (g, C) => h?.[g]?.[C],
1735
- [h]
1736
+ (g, C) => p?.[g]?.[C],
1737
+ [p]
1736
1738
  ), te = D(
1737
1739
  (g) => ({
1738
1740
  onClick: () => x(g),
@@ -1742,52 +1744,52 @@ const Br = ({ index: e, manager: n }) => {
1742
1744
  );
1743
1745
  return {
1744
1746
  fields: d,
1745
- getNameInputProps: O,
1747
+ getNameInputProps: $,
1746
1748
  getValueInputProps: Q,
1747
- getCheckboxProps: be,
1749
+ getCheckboxProps: je,
1748
1750
  getRemoveButtonProps: te,
1749
1751
  setValue: y,
1750
1752
  getValue: Ie
1751
1753
  };
1752
- }, _r = ({ content: e }) => {
1754
+ }, qr = ({ content: e }) => {
1753
1755
  const { register: n, setValue: s, watch: a, control: r } = oe(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
1754
1756
  "headers",
1755
1757
  "file",
1756
1758
  "bodyMode",
1757
1759
  "body",
1758
1760
  "multipartFormFields"
1759
- ]), f = E(null), [x, h] = k(!1), v = (j) => {
1761
+ ]), f = E(null), [x, p] = k(!1), v = (j) => {
1760
1762
  s("file", j), j && s(
1761
1763
  "headers",
1762
1764
  i.filter(
1763
- (O) => O.name.toLowerCase() !== "content-type" || !O.active
1765
+ ($) => $.name.toLowerCase() !== "content-type" || !$.active
1764
1766
  )
1765
1767
  );
1766
1768
  }, u = (j) => {
1767
- const O = j.target.files?.[0] ?? null;
1768
- v(O);
1769
+ const $ = j.target.files?.[0] ?? null;
1770
+ v($);
1769
1771
  }, y = (j) => {
1770
- j.preventDefault(), j.stopPropagation(), h(!0);
1771
- }, S = (j) => {
1772
- j.preventDefault(), j.stopPropagation(), h(!1);
1772
+ j.preventDefault(), j.stopPropagation(), p(!0);
1773
+ }, w = (j) => {
1774
+ j.preventDefault(), j.stopPropagation(), p(!1);
1773
1775
  }, R = (j) => {
1774
- j.preventDefault(), j.stopPropagation(), h(!1);
1775
- const O = j.dataTransfer.files?.[0] ?? null;
1776
- v(O);
1776
+ j.preventDefault(), j.stopPropagation(), p(!1);
1777
+ const $ = j.dataTransfer.files?.[0] ?? null;
1778
+ v($);
1777
1779
  }, N = ot({
1778
1780
  control: r,
1779
1781
  name: "multipartFormFields",
1780
1782
  defaultValue: { name: "", value: "", active: !1 },
1781
1783
  isEmpty: (j) => j.value instanceof File ? !1 : !j.name && !j.value
1782
1784
  });
1783
- return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
1785
+ return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
1784
1786
  /* @__PURE__ */ t.jsxs(Y, { className: "items-center", children: [
1785
- /* @__PURE__ */ t.jsx(kn, { size: 16 }),
1787
+ /* @__PURE__ */ t.jsx(In, { size: 16 }),
1786
1788
  /* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
1787
1789
  "Body",
1788
1790
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
1789
- /* @__PURE__ */ t.jsxs(Qt, { children: [
1790
- /* @__PURE__ */ t.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1791
+ /* @__PURE__ */ t.jsxs(Jt, { children: [
1792
+ /* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1791
1793
  K,
1792
1794
  {
1793
1795
  variant: "ghost",
@@ -1804,13 +1806,13 @@ const Br = ({ index: e, manager: n }) => {
1804
1806
  /* @__PURE__ */ t.jsx(vt, { size: 14 }),
1805
1807
  "Multipart"
1806
1808
  ] }),
1807
- /* @__PURE__ */ t.jsx(Rn, { size: 14 })
1809
+ /* @__PURE__ */ t.jsx(Dn, { size: 14 })
1808
1810
  ]
1809
1811
  }
1810
1812
  ) }),
1811
- /* @__PURE__ */ t.jsxs(Wt, { className: "min-w-40", children: [
1813
+ /* @__PURE__ */ t.jsxs(Xt, { className: "min-w-40", children: [
1812
1814
  /* @__PURE__ */ t.jsxs(
1813
- Ae,
1815
+ Oe,
1814
1816
  {
1815
1817
  onSelect: () => s("bodyMode", "text"),
1816
1818
  className: "gap-2",
@@ -1822,7 +1824,7 @@ const Br = ({ index: e, manager: n }) => {
1822
1824
  }
1823
1825
  ),
1824
1826
  /* @__PURE__ */ t.jsxs(
1825
- Ae,
1827
+ Oe,
1826
1828
  {
1827
1829
  onSelect: () => s("bodyMode", "file"),
1828
1830
  className: "gap-2",
@@ -1834,7 +1836,7 @@ const Br = ({ index: e, manager: n }) => {
1834
1836
  }
1835
1837
  ),
1836
1838
  /* @__PURE__ */ t.jsxs(
1837
- Ae,
1839
+ Oe,
1838
1840
  {
1839
1841
  onSelect: () => s("bodyMode", "multipart"),
1840
1842
  className: "gap-2",
@@ -1858,15 +1860,15 @@ const Br = ({ index: e, manager: n }) => {
1858
1860
  ),
1859
1861
  /* @__PURE__ */ t.jsx("div", { className: "w-px mx-1 h-5 bg-border" }),
1860
1862
  e && o.length > 0 ? /* @__PURE__ */ t.jsx(
1861
- Vr,
1863
+ Br,
1862
1864
  {
1863
1865
  examples: e,
1864
- onSelect: (j, O) => {
1866
+ onSelect: (j, $) => {
1865
1867
  s("body", JSON.stringify(j.value, null, 2)), s("headers", [
1866
1868
  ...i.filter((Q) => Q.name !== "Content-Type"),
1867
1869
  {
1868
1870
  name: "Content-Type",
1869
- value: O,
1871
+ value: $,
1870
1872
  active: !0
1871
1873
  }
1872
1874
  ]);
@@ -1876,12 +1878,12 @@ const Br = ({ index: e, manager: n }) => {
1876
1878
  ] })
1877
1879
  ] })
1878
1880
  ] }),
1879
- /* @__PURE__ */ t.jsxs(_, { className: "CollapsibleContent flex flex-col gap-2", children: [
1881
+ /* @__PURE__ */ t.jsxs(q, { className: "CollapsibleContent flex flex-col gap-2", children: [
1880
1882
  l === "text" && /* @__PURE__ */ t.jsx(
1881
- cn,
1883
+ dn,
1882
1884
  {
1883
1885
  ...n("body"),
1884
- className: w(
1886
+ className: S(
1885
1887
  "w-full px-4 py-2.5 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0 transition-colors"
1886
1888
  ),
1887
1889
  placeholder: "Body content"
@@ -1892,11 +1894,11 @@ const Br = ({ index: e, manager: n }) => {
1892
1894
  {
1893
1895
  role: "region",
1894
1896
  "aria-label": "File upload drop zone",
1895
- className: w(
1897
+ className: S(
1896
1898
  "flex flex-col items-center justify-center gap-4 min-h-[300px]"
1897
1899
  ),
1898
1900
  onDragOver: y,
1899
- onDragLeave: S,
1901
+ onDragLeave: w,
1900
1902
  onDrop: R,
1901
1903
  children: [
1902
1904
  /* @__PURE__ */ t.jsx(
@@ -1904,7 +1906,7 @@ const Br = ({ index: e, manager: n }) => {
1904
1906
  {
1905
1907
  type: "button",
1906
1908
  onClick: () => f.current?.click(),
1907
- className: w(
1909
+ className: S(
1908
1910
  "flex items-center justify-center gap-2 rounded-full size-20 p-0 border border-dashed border-muted-foreground/50 hover:bg-accent/75 transition-colors",
1909
1911
  (c || x) && "border-solid",
1910
1912
  x && "bg-accent border-primary"
@@ -1912,7 +1914,7 @@ const Br = ({ index: e, manager: n }) => {
1912
1914
  children: /* @__PURE__ */ t.jsx(
1913
1915
  me,
1914
1916
  {
1915
- className: w(
1917
+ className: S(
1916
1918
  "text-muted-foreground",
1917
1919
  x && "text-primary"
1918
1920
  ),
@@ -1927,7 +1929,7 @@ const Br = ({ index: e, manager: n }) => {
1927
1929
  " ",
1928
1930
  /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
1929
1931
  "(",
1930
- Ee(c.size),
1932
+ ve(c.size),
1931
1933
  ")"
1932
1934
  ] })
1933
1935
  ] }),
@@ -1945,7 +1947,7 @@ const Br = ({ index: e, manager: n }) => {
1945
1947
  ]
1946
1948
  }
1947
1949
  ),
1948
- l === "multipart" && /* @__PURE__ */ t.jsx(ke, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(Br, { index: O, manager: N }, j.id)) })
1950
+ l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, $) => /* @__PURE__ */ t.jsx(_r, { index: $, manager: N }, j.id)) })
1949
1951
  ] })
1950
1952
  ] });
1951
1953
  }, Lt = (e, n, s) => {
@@ -1960,12 +1962,15 @@ const Br = ({ index: e, manager: n }) => {
1960
1962
  r.searchParams.set(o.name, o.value);
1961
1963
  }), r;
1962
1964
  };
1963
- function qr(e) {
1965
+ function Ur(e) {
1964
1966
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1965
1967
  e
1966
1968
  );
1967
1969
  }
1968
- const Mr = (e, n) => {
1970
+ function Mr(e) {
1971
+ return /^audio\//i.test(e);
1972
+ }
1973
+ const Gr = (e, n) => {
1969
1974
  const s = e.find(
1970
1975
  ([a]) => a.toLowerCase() === "content-disposition"
1971
1976
  )?.[1];
@@ -1982,21 +1987,21 @@ const Mr = (e, n) => {
1982
1987
  } catch {
1983
1988
  return "download";
1984
1989
  }
1985
- }, Ur = $e.Root, dn = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx($e.Portal, { children: /* @__PURE__ */ t.jsx(
1986
- $e.Content,
1990
+ }, Hr = Pe.Root, un = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx(Pe.Portal, { children: /* @__PURE__ */ t.jsx(
1991
+ Pe.Content,
1987
1992
  {
1988
1993
  ref: r,
1989
1994
  align: n,
1990
1995
  sideOffset: s,
1991
- className: w(
1996
+ className: S(
1992
1997
  "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1993
1998
  e
1994
1999
  ),
1995
2000
  ...a
1996
2001
  }
1997
2002
  ) }));
1998
- dn.displayName = $e.Content.displayName;
1999
- const Gr = ({
2003
+ un.displayName = Pe.Content.displayName;
2004
+ const Qr = ({
2000
2005
  value: e,
2001
2006
  options: n,
2002
2007
  onChange: s,
@@ -2007,9 +2012,9 @@ const Gr = ({
2007
2012
  ref: c,
2008
2013
  onSelect: l
2009
2014
  }) => {
2010
- const [m, d] = k(!1), [f, x] = k(!1), h = Os((u) => u.filtered.count), v = E(null);
2011
- return /* @__PURE__ */ t.jsxs(Ur, { open: m, children: [
2012
- /* @__PURE__ */ t.jsx(Ps, { children: /* @__PURE__ */ t.jsx(
2015
+ const [m, d] = k(!1), [f, x] = k(!1), p = Ls((u) => u.filtered.count), v = E(null);
2016
+ return /* @__PURE__ */ t.jsxs(Hr, { open: m, children: [
2017
+ /* @__PURE__ */ t.jsx($s, { children: /* @__PURE__ */ t.jsx(
2013
2018
  Es,
2014
2019
  {
2015
2020
  autoComplete: "off",
@@ -2018,7 +2023,7 @@ const Gr = ({
2018
2023
  },
2019
2024
  value: e ? String(e) : void 0,
2020
2025
  placeholder: r,
2021
- className: w("h-9 bg-transparent", a),
2026
+ className: S("h-9 bg-transparent", a),
2022
2027
  onFocus: () => d(!0),
2023
2028
  onBlur: () => {
2024
2029
  f || d(!1);
@@ -2030,13 +2035,13 @@ const Gr = ({
2030
2035
  }
2031
2036
  ) }),
2032
2037
  /* @__PURE__ */ t.jsx(
2033
- dn,
2038
+ un,
2034
2039
  {
2035
2040
  onMouseEnter: () => x(!0),
2036
2041
  onMouseLeave: () => x(!1),
2037
2042
  onOpenAutoFocus: (u) => u.preventDefault(),
2038
- className: w("p-0 w-(--radix-popover-trigger-width)", {
2039
- "border-0": h === 0
2043
+ className: S("p-0 w-(--radix-popover-trigger-width)", {
2044
+ "border-0": p === 0
2040
2045
  }),
2041
2046
  align: "start",
2042
2047
  side: "bottom",
@@ -2046,8 +2051,8 @@ const Gr = ({
2046
2051
  onTouchMove: (u) => {
2047
2052
  u.stopPropagation();
2048
2053
  },
2049
- children: /* @__PURE__ */ t.jsx(ks, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2050
- Rs,
2054
+ children: /* @__PURE__ */ t.jsx(Rs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
2055
+ Is,
2051
2056
  {
2052
2057
  value: u,
2053
2058
  onSelect: (y) => {
@@ -2061,7 +2066,7 @@ const Gr = ({
2061
2066
  }
2062
2067
  )
2063
2068
  ] });
2064
- }, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Ls, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Gr, { ...n }) }), Hr = Object.freeze([
2069
+ }, $e = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(ks, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Qr, { ...n }) }), Jr = Object.freeze([
2065
2070
  "Accept",
2066
2071
  "Accept-Encoding",
2067
2072
  "Accept-Language",
@@ -2088,7 +2093,7 @@ const Gr = ({
2088
2093
  "Set-Cookie",
2089
2094
  "User-Agent",
2090
2095
  "X-Requested-With"
2091
- ]), Qr = ({
2096
+ ]), Wr = ({
2092
2097
  control: e,
2093
2098
  schemaHeaders: n,
2094
2099
  lockedHeaders: s
@@ -2097,58 +2102,58 @@ const Gr = ({
2097
2102
  control: e,
2098
2103
  name: "headers",
2099
2104
  defaultValue: { name: "", value: "", active: !1 }
2100
- }), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((h) => h.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [f]), m = s?.map((d) => ({
2105
+ }), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((p) => p.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [f]), m = s?.map((d) => ({
2101
2106
  name: d,
2102
2107
  id: `locked-${d}`,
2103
2108
  value: "••••••••••",
2104
2109
  active: !0,
2105
2110
  locked: !0
2106
2111
  })) ?? [];
2107
- return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2112
+ return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2108
2113
  /* @__PURE__ */ t.jsxs(Y, { children: [
2109
- /* @__PURE__ */ t.jsx(In, { size: 14 }),
2114
+ /* @__PURE__ */ t.jsx(Fn, { size: 14 }),
2110
2115
  /* @__PURE__ */ t.jsx(H, { children: "Headers" })
2111
2116
  ] }),
2112
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(ke, { children: [
2117
+ /* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(Ee, { children: [
2113
2118
  m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
2114
2119
  /* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2115
2120
  ge,
2116
2121
  {
2117
2122
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
2118
2123
  children: [
2119
- /* @__PURE__ */ t.jsx(Dn, { size: 16 }),
2124
+ /* @__PURE__ */ t.jsx(zn, { size: 16 }),
2120
2125
  /* @__PURE__ */ t.jsx(I, { value: d.name, disabled: !0 }),
2121
2126
  /* @__PURE__ */ t.jsx("div", { children: d.value })
2122
2127
  ]
2123
2128
  },
2124
2129
  d.id
2125
2130
  ) }),
2126
- /* @__PURE__ */ t.jsx(St, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
2131
+ /* @__PURE__ */ t.jsx(wt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
2127
2132
  ] }, d.id)),
2128
2133
  i.fields.map((d, f) => {
2129
2134
  const x = n.find(
2130
- (S) => S.name === o.at(f)?.name
2131
- ), h = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
2135
+ (w) => w.name === o.at(f)?.name
2136
+ ), p = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
2132
2137
  return /* @__PURE__ */ t.jsxs(
2133
2138
  ge,
2134
2139
  {
2135
- className: w(
2140
+ className: S(
2136
2141
  v && "text-amber-600",
2137
2142
  v && !r.dirtyFields.headers?.[f]?.value && "hidden"
2138
2143
  ),
2139
2144
  children: [
2140
2145
  /* @__PURE__ */ t.jsx(
2141
- ve,
2146
+ be,
2142
2147
  {
2143
- className: w(v && "hidden"),
2148
+ className: S(v && "hidden"),
2144
2149
  ...i.getCheckboxProps(f)
2145
2150
  }
2146
2151
  ),
2147
2152
  /* @__PURE__ */ t.jsxs(Ct, { children: [
2148
2153
  /* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2149
- Fn,
2154
+ Vn,
2150
2155
  {
2151
- className: w(
2156
+ className: S(
2152
2157
  "text-amber-600",
2153
2158
  !v && "hidden"
2154
2159
  ),
@@ -2156,7 +2161,7 @@ const Gr = ({
2156
2161
  }
2157
2162
  ) }),
2158
2163
  /* @__PURE__ */ t.jsx(
2159
- St,
2164
+ wt,
2160
2165
  {
2161
2166
  alignOffset: 10,
2162
2167
  side: "bottom",
@@ -2166,26 +2171,26 @@ const Gr = ({
2166
2171
  )
2167
2172
  ] }),
2168
2173
  /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2169
- Pe,
2174
+ $e,
2170
2175
  {
2171
2176
  ...u,
2172
2177
  value: String(i.getValue(f, "name")),
2173
2178
  placeholder: "Name",
2174
- options: [...c, ...Hr],
2175
- onChange: (S) => i.setValue(f, "name", S),
2176
- onSelect: (S) => i.setValue(f, "name", S, { focus: "next" })
2179
+ options: [...c, ...Jr],
2180
+ onChange: (w) => i.setValue(f, "name", w),
2181
+ onSelect: (w) => i.setValue(f, "name", w, { focus: "next" })
2177
2182
  }
2178
2183
  ) }),
2179
2184
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2180
- h ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2181
- Pe,
2185
+ p ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2186
+ $e,
2182
2187
  {
2183
2188
  ...y,
2184
2189
  value: String(i.getValue(f, "value")),
2185
2190
  shouldFilter: !1,
2186
2191
  options: x.enum ?? [],
2187
- onChange: (S) => i.setValue(f, "value", S),
2188
- onSelect: (S) => i.setValue(f, "value", S, { focus: "next" })
2192
+ onChange: (w) => i.setValue(f, "value", w),
2193
+ onSelect: (w) => i.setValue(f, "value", w, { focus: "next" })
2189
2194
  }
2190
2195
  ) }) : /* @__PURE__ */ t.jsx(
2191
2196
  I,
@@ -2209,45 +2214,45 @@ const Gr = ({
2209
2214
  })
2210
2215
  ] }) }) }) })
2211
2216
  ] });
2212
- }, Jr = Ds(
2217
+ }, Xr = Fs(
2213
2218
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2214
2219
  ), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2215
- Xt.Root,
2220
+ Kt.Root,
2216
2221
  {
2217
2222
  ref: s,
2218
- className: w(Jr(), e),
2223
+ className: S(Xr(), e),
2219
2224
  ...n
2220
2225
  }
2221
2226
  ));
2222
- Re.displayName = Xt.Root.displayName;
2223
- const un = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2227
+ Re.displayName = Kt.Root.displayName;
2228
+ const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2224
2229
  he.Root,
2225
2230
  {
2226
- className: w("grid gap-2", e),
2231
+ className: S("grid gap-2", e),
2227
2232
  ...n,
2228
2233
  ref: s
2229
2234
  }
2230
2235
  ));
2231
- un.displayName = he.Root.displayName;
2232
- const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2236
+ mn.displayName = he.Root.displayName;
2237
+ const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
2233
2238
  he.Item,
2234
2239
  {
2235
2240
  ref: s,
2236
- className: w(
2241
+ className: S(
2237
2242
  "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
2238
2243
  e
2239
2244
  ),
2240
2245
  ...n,
2241
- children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(zn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2246
+ children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Bn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2242
2247
  }
2243
2248
  ));
2244
- mn.displayName = he.Item.displayName;
2245
- const pn = ({
2249
+ pn.displayName = he.Item.displayName;
2250
+ const hn = ({
2246
2251
  identities: e,
2247
2252
  setValue: n,
2248
2253
  value: s
2249
2254
  }) => /* @__PURE__ */ t.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ t.jsx(
2250
- un,
2255
+ mn,
2251
2256
  {
2252
2257
  onValueChange: (a) => n(a),
2253
2258
  value: s,
@@ -2260,7 +2265,7 @@ const pn = ({
2260
2265
  {
2261
2266
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
2262
2267
  children: [
2263
- /* @__PURE__ */ t.jsx(mn, { value: a.id, id: a.id }),
2268
+ /* @__PURE__ */ t.jsx(pn, { value: a.id, id: a.id }),
2264
2269
  /* @__PURE__ */ t.jsx("span", { children: a.label })
2265
2270
  ]
2266
2271
  },
@@ -2268,7 +2273,7 @@ const pn = ({
2268
2273
  )
2269
2274
  )
2270
2275
  }
2271
- ) }), Wr = ({
2276
+ ) }), Kr = ({
2272
2277
  onSubmit: e,
2273
2278
  identities: n,
2274
2279
  open: s,
@@ -2277,19 +2282,19 @@ const pn = ({
2277
2282
  const [r, o] = k(void 0), [i, c] = k(!1);
2278
2283
  return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2279
2284
  /* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
2280
- /* @__PURE__ */ t.jsx(Bt, { children: "Please select an identity for this request." }),
2281
- /* @__PURE__ */ t.jsx(Is, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2282
- pn,
2285
+ /* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
2286
+ /* @__PURE__ */ t.jsx(Ds, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
2287
+ hn,
2283
2288
  {
2284
2289
  identities: n,
2285
2290
  setValue: o,
2286
2291
  value: r
2287
2292
  }
2288
2293
  ) }),
2289
- /* @__PURE__ */ t.jsxs(_t, { className: "flex flex-col gap-2", children: [
2294
+ /* @__PURE__ */ t.jsxs(qt, { className: "flex flex-col gap-2", children: [
2290
2295
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2291
2296
  /* @__PURE__ */ t.jsx(
2292
- ve,
2297
+ be,
2293
2298
  {
2294
2299
  id: "remember",
2295
2300
  checked: i,
@@ -2301,7 +2306,7 @@ const pn = ({
2301
2306
  /* @__PURE__ */ t.jsx(Re, { htmlFor: "remember", children: "Remember my choice" })
2302
2307
  ] }),
2303
2308
  /* @__PURE__ */ t.jsx(
2304
- q,
2309
+ B,
2305
2310
  {
2306
2311
  onClick: () => e({ identity: r, rememberedIdentity: i }),
2307
2312
  children: "Send"
@@ -2309,24 +2314,24 @@ const pn = ({
2309
2314
  )
2310
2315
  ] })
2311
2316
  ] }) });
2312
- }, Ue = (e) => Math.abs(
2317
+ }, Me = (e) => Math.abs(
2313
2318
  Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
2314
- ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), Et = (e, n = {}) => {
2319
+ ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Me(n) + Me(s)}`)) : Me(e), kt = (e, n = {}) => {
2315
2320
  const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
2316
2321
  return `${s}deg ${a}% ${r}%`;
2317
- }, He = "data-linked-param", Xr = (e) => {
2322
+ }, He = "data-linked-param", Zr = (e) => {
2318
2323
  const { resolvedTheme: n } = ps();
2319
2324
  return {
2320
- text: Et(
2325
+ text: kt(
2321
2326
  e,
2322
2327
  n === "light" ? { saturation: 95, lightness: 38 } : {}
2323
2328
  ),
2324
- background: Et(
2329
+ background: kt(
2325
2330
  e,
2326
2331
  n === "light" ? { saturation: 85, lightness: 40 } : {}
2327
2332
  )
2328
2333
  };
2329
- }, hn = ({
2334
+ }, fn = ({
2330
2335
  name: e,
2331
2336
  className: n,
2332
2337
  slug: s,
@@ -2334,16 +2339,16 @@ const pn = ({
2334
2339
  children: r,
2335
2340
  onClick: o
2336
2341
  }) => {
2337
- const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Xr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
2338
- return G(() => {
2342
+ const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Zr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, p = `hsl(${d} / 50%)`;
2343
+ return U(() => {
2339
2344
  if (!c || !i.current) return;
2340
2345
  const v = () => {
2341
- document.querySelectorAll(`[${He}="${c}"]`).forEach((S) => {
2342
- S instanceof HTMLElement && (S.dataset.active = "true");
2346
+ document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
2347
+ w instanceof HTMLElement && (w.dataset.active = "true");
2343
2348
  });
2344
2349
  }, u = () => {
2345
- document.querySelectorAll(`[${He}="${c}"]`).forEach((S) => {
2346
- S instanceof HTMLElement && (S.dataset.active = "false");
2350
+ document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
2351
+ w instanceof HTMLElement && (w.dataset.active = "false");
2347
2352
  });
2348
2353
  }, y = i.current;
2349
2354
  return y.addEventListener("mouseenter", v), y.addEventListener("mouseleave", u), () => {
@@ -2355,7 +2360,7 @@ const pn = ({
2355
2360
  "span",
2356
2361
  {
2357
2362
  [He]: c,
2358
- className: w(
2363
+ className: S(
2359
2364
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
2360
2365
  "relative transition-all duration-100 rounded-lg",
2361
2366
  "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
@@ -2368,30 +2373,30 @@ const pn = ({
2368
2373
  onClick: o,
2369
2374
  style: {
2370
2375
  "--param-color": f,
2371
- "--border-color": h,
2376
+ "--border-color": p,
2372
2377
  "--background-color": x
2373
2378
  },
2374
2379
  children: r ?? e
2375
2380
  }
2376
2381
  );
2377
- }, Kr = ({
2382
+ }, Yr = ({
2378
2383
  control: e,
2379
2384
  url: n
2380
2385
  }) => {
2381
- const { fields: s } = qt({
2386
+ const { fields: s } = Ut({
2382
2387
  control: e,
2383
2388
  name: "pathParams"
2384
2389
  }), a = [...s].sort(
2385
2390
  (r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
2386
2391
  );
2387
- return /* @__PURE__ */ t.jsx(ke, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2392
+ return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2388
2393
  /* @__PURE__ */ t.jsx(
2389
- wt,
2394
+ St,
2390
2395
  {
2391
2396
  control: e,
2392
2397
  name: `pathParams.${o}.name`,
2393
2398
  render: () => /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsx(
2394
- hn,
2399
+ fn,
2395
2400
  {
2396
2401
  slug: r.name,
2397
2402
  name: r.name,
@@ -2401,7 +2406,7 @@ const pn = ({
2401
2406
  }
2402
2407
  ),
2403
2408
  /* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
2404
- wt,
2409
+ St,
2405
2410
  {
2406
2411
  control: e,
2407
2412
  name: `pathParams.${o}.value`,
@@ -2409,7 +2414,7 @@ const pn = ({
2409
2414
  }
2410
2415
  ) })
2411
2416
  ] }, r.id)) });
2412
- }, Zr = ({
2417
+ }, ea = ({
2413
2418
  control: e,
2414
2419
  schemaQueryParams: n
2415
2420
  }) => {
@@ -2420,17 +2425,17 @@ const pn = ({
2420
2425
  }), o = n.map(
2421
2426
  (c) => !!c.isRequired
2422
2427
  ), i = n.length > 0;
2423
- return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2428
+ return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2424
2429
  /* @__PURE__ */ t.jsxs(Y, { children: [
2425
- /* @__PURE__ */ t.jsx(Vn, { size: 16 }),
2430
+ /* @__PURE__ */ t.jsx(_n, { size: 16 }),
2426
2431
  /* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
2427
2432
  ] }),
2428
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(ke, { children: r.fields.map((c, l) => {
2433
+ /* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
2429
2434
  const m = n.find(
2430
- (h) => h.name === a.at(l)?.name
2435
+ (p) => p.name === a.at(l)?.name
2431
2436
  ), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
2432
2437
  return /* @__PURE__ */ t.jsxs(ge, { children: [
2433
- /* @__PURE__ */ t.jsx(ve, { ...r.getCheckboxProps(l) }),
2438
+ /* @__PURE__ */ t.jsx(be, { ...r.getCheckboxProps(l) }),
2434
2439
  o[l] ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2435
2440
  "label",
2436
2441
  {
@@ -2443,26 +2448,26 @@ const pn = ({
2443
2448
  ]
2444
2449
  }
2445
2450
  ) }) : i ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2446
- Pe,
2451
+ $e,
2447
2452
  {
2448
2453
  ...f,
2449
2454
  value: String(r.getValue(l, "name")),
2450
2455
  placeholder: "Name",
2451
- options: n.map((h) => h.name),
2452
- onChange: (h) => r.setValue(l, "name", h),
2453
- onSelect: (h) => r.setValue(l, "name", h, { focus: "next" })
2456
+ options: n.map((p) => p.name),
2457
+ onChange: (p) => r.setValue(l, "name", p),
2458
+ onSelect: (p) => r.setValue(l, "name", p, { focus: "next" })
2454
2459
  }
2455
2460
  ) }) : /* @__PURE__ */ t.jsx(I, { ...f, placeholder: "Name" }),
2456
2461
  /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
2457
2462
  d ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2458
- Pe,
2463
+ $e,
2459
2464
  {
2460
2465
  ...x,
2461
2466
  value: String(r.getValue(l, "value")),
2462
2467
  shouldFilter: !1,
2463
2468
  options: m.enum ?? [],
2464
- onChange: (h) => r.setValue(l, "value", h),
2465
- onSelect: (h) => r.setValue(l, "value", h, { focus: "next" })
2469
+ onChange: (p) => r.setValue(l, "value", p),
2470
+ onSelect: (p) => r.setValue(l, "value", p, { focus: "next" })
2466
2471
  }
2467
2472
  ) }) : /* @__PURE__ */ t.jsx(
2468
2473
  I,
@@ -2482,7 +2487,7 @@ const pn = ({
2482
2487
  ] }, c.id);
2483
2488
  }) }) })
2484
2489
  ] });
2485
- }, Yr = ({
2490
+ }, ta = ({
2486
2491
  open: e,
2487
2492
  setOpen: n,
2488
2493
  onSignUp: s,
@@ -2494,10 +2499,10 @@ const pn = ({
2494
2499
  };
2495
2500
  return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2496
2501
  /* @__PURE__ */ t.jsx(nt, { children: "Welcome to the Playground!" }),
2497
- /* @__PURE__ */ t.jsx(Bt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2502
+ /* @__PURE__ */ t.jsx(_t, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2498
2503
  /* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
2499
2504
  /* @__PURE__ */ t.jsx(
2500
- ve,
2505
+ be,
2501
2506
  {
2502
2507
  checked: o,
2503
2508
  onCheckedChange: (l) => i(l === !0)
@@ -2505,15 +2510,15 @@ const pn = ({
2505
2510
  ),
2506
2511
  "Don't show this again"
2507
2512
  ] }),
2508
- /* @__PURE__ */ t.jsxs(_t, { className: "flex gap-2 sm:justify-between", children: [
2509
- /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
2513
+ /* @__PURE__ */ t.jsxs(qt, { className: "flex gap-2 sm:justify-between", children: [
2514
+ /* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
2510
2515
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2", children: [
2511
- s && /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2512
- a && /* @__PURE__ */ t.jsx(q, { type: "button", variant: "default", onClick: a, children: "Login" })
2516
+ s && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2517
+ a && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "default", onClick: a, children: "Login" })
2513
2518
  ] })
2514
2519
  ] })
2515
2520
  ] }) });
2516
- }, ea = Ze()(
2521
+ }, na = Ze()(
2517
2522
  Ye(
2518
2523
  (e, n) => ({
2519
2524
  rememberedIdentity: null,
@@ -2524,10 +2529,10 @@ const pn = ({
2524
2529
  }),
2525
2530
  {
2526
2531
  name: "identity-storage",
2527
- storage: Ft(() => sessionStorage)
2532
+ storage: Bt(() => sessionStorage)
2528
2533
  }
2529
2534
  )
2530
- ), ta = ({
2535
+ ), sa = ({
2531
2536
  path: e,
2532
2537
  renderParam: n
2533
2538
  }) => {
@@ -2553,10 +2558,10 @@ const pn = ({
2553
2558
  /* @__PURE__ */ t.jsx("wbr", {})
2554
2559
  ] }, `${a}-${r}`);
2555
2560
  });
2556
- }, na = ({ url: e }) => {
2561
+ }, ra = ({ url: e }) => {
2557
2562
  const { watch: n, setFocus: s } = oe(), [a] = n(["pathParams"]);
2558
2563
  return /* @__PURE__ */ t.jsx(
2559
- ta,
2564
+ sa,
2560
2565
  {
2561
2566
  path: e,
2562
2567
  renderParam: ({ name: r, originalValue: o, index: i }) => {
@@ -2564,7 +2569,7 @@ const pn = ({
2564
2569
  (l) => l.name === r
2565
2570
  )?.value;
2566
2571
  return /* @__PURE__ */ t.jsx(
2567
- hn,
2572
+ fn,
2568
2573
  {
2569
2574
  name: r,
2570
2575
  backgroundOpacity: "0",
@@ -2576,7 +2581,7 @@ const pn = ({
2576
2581
  }
2577
2582
  }
2578
2583
  );
2579
- }, sa = () => {
2584
+ }, aa = () => {
2580
2585
  const { watch: e } = oe(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
2581
2586
  a.name,
2582
2587
  "=",
@@ -2588,7 +2593,7 @@ const pn = ({
2588
2593
  s.length > 0 ? "?" : "",
2589
2594
  s
2590
2595
  ] });
2591
- }, ra = ({ status: e }) => {
2596
+ }, oa = ({ status: e }) => {
2592
2597
  if (!e) return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2593
2598
  switch (Number(e.toString().slice(0, 1))) {
2594
2599
  case 2:
@@ -2600,7 +2605,7 @@ const pn = ({
2600
2605
  default:
2601
2606
  return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2602
2607
  }
2603
- }, aa = () => {
2608
+ }, ia = () => {
2604
2609
  const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
2605
2610
  if (n.current) {
2606
2611
  const o = Date.now() - s.current;
@@ -2616,7 +2621,7 @@ const pn = ({
2616
2621
  a.current && cancelAnimationFrame(a.current), n.current && o.contains(i) && o.removeChild(i);
2617
2622
  };
2618
2623
  }, [r]), /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2619
- }, oa = ({
2624
+ }, la = ({
2620
2625
  status: e,
2621
2626
  time: n,
2622
2627
  size: s,
@@ -2637,7 +2642,7 @@ const pn = ({
2637
2642
  };
2638
2643
  return /* @__PURE__ */ t.jsxs("div", { className: "relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2639
2644
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
2640
- /* @__PURE__ */ t.jsx(ra, { status: e }),
2645
+ /* @__PURE__ */ t.jsx(oa, { status: e }),
2641
2646
  " ",
2642
2647
  e ?? "Sending Request...",
2643
2648
  e ? ` ${o[e]}` : ""
@@ -2646,12 +2651,12 @@ const pn = ({
2646
2651
  /* @__PURE__ */ t.jsxs("div", { children: [
2647
2652
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2648
2653
  " ",
2649
- /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Ee(s) : "- B" })
2654
+ /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ve(s) : "- B" })
2650
2655
  ] }),
2651
2656
  /* @__PURE__ */ t.jsxs("div", { children: [
2652
2657
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2653
2658
  " ",
2654
- n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(aa, {}),
2659
+ n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(ia, {}),
2655
2660
  "ms"
2656
2661
  ] })
2657
2662
  ] }),
@@ -2666,6 +2671,29 @@ const pn = ({
2666
2671
  }
2667
2672
  )
2668
2673
  ] });
2674
+ }, ca = ({
2675
+ blob: e,
2676
+ fileName: n,
2677
+ size: s,
2678
+ onDownload: a
2679
+ }) => {
2680
+ const [r, o] = k(null);
2681
+ return U(() => {
2682
+ const i = URL.createObjectURL(e);
2683
+ return o(i), () => {
2684
+ URL.revokeObjectURL(i);
2685
+ };
2686
+ }, [e]), r ? /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2687
+ /* @__PURE__ */ t.jsx("audio", { controls: !0, src: r, className: "w-full max-w-md", children: "Your browser does not support the audio element." }),
2688
+ /* @__PURE__ */ t.jsxs(B, { onClick: a, className: "flex items-center gap-2", children: [
2689
+ /* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
2690
+ "Download ",
2691
+ n,
2692
+ " (",
2693
+ ve(s),
2694
+ ")"
2695
+ ] })
2696
+ ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading audio..." }) });
2669
2697
  };
2670
2698
  function it(e) {
2671
2699
  if (e === null) return "null";
@@ -2674,9 +2702,9 @@ function it(e) {
2674
2702
  const n = e[0];
2675
2703
  return n === void 0 ? "any[]" : `${it(n)}[]`;
2676
2704
  }
2677
- return typeof e == "object" ? ia(e) : typeof e;
2705
+ return typeof e == "object" ? da(e) : typeof e;
2678
2706
  }
2679
- function ia(e, n = "") {
2707
+ function da(e, n = "") {
2680
2708
  const s = ["{"];
2681
2709
  for (const [a, r] of Object.entries(e)) {
2682
2710
  const o = it(r);
@@ -2685,10 +2713,10 @@ function ia(e, n = "") {
2685
2713
  return s.push("}"), s.join(`
2686
2714
  `);
2687
2715
  }
2688
- function la(e) {
2716
+ function ua(e) {
2689
2717
  return { lines: [`type GeneratedType = ${it(e)};`] };
2690
2718
  }
2691
- const ca = (e) => Object.entries({
2719
+ const ma = (e) => Object.entries({
2692
2720
  "application/json": "json",
2693
2721
  "text/json": "json",
2694
2722
  "text/html": "html",
@@ -2698,16 +2726,16 @@ const ca = (e) => Object.entries({
2698
2726
  "application/xhtml+xml": "xhtml"
2699
2727
  }).find(
2700
2728
  ([s]) => e.includes(s)
2701
- )?.[1], da = (e) => {
2702
- const n = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2703
- return ca(n);
2704
- }, ua = (e) => {
2729
+ )?.[1], gn = (e) => e.find(([n]) => n.toLowerCase() === "content-type")?.[1] || "", pa = (e) => {
2730
+ const n = gn(e);
2731
+ return ma(n);
2732
+ }, ha = (e) => {
2705
2733
  try {
2706
2734
  return JSON.stringify(JSON.parse(e), null, 2);
2707
2735
  } catch {
2708
2736
  return null;
2709
2737
  }
2710
- }, ma = (e) => {
2738
+ }, fa = (e) => {
2711
2739
  const n = [
2712
2740
  "Content-Type",
2713
2741
  "Content-Length",
@@ -2724,12 +2752,12 @@ const ca = (e) => Object.entries({
2724
2752
  }, z = 3, Se = ye(
2725
2753
  "div",
2726
2754
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2727
- ), ue = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
2755
+ ), ue = ye("div", "py-1 break-words"), Te = ({ value: e, header: n }) => {
2728
2756
  const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
2729
2757
  return /* @__PURE__ */ t.jsx(
2730
2758
  ue,
2731
2759
  {
2732
- className: w(
2760
+ className: S(
2733
2761
  "max-h-28 overflow-auto",
2734
2762
  a && "cursor-pointer flex group"
2735
2763
  ),
@@ -2737,12 +2765,12 @@ const ca = (e) => Object.entries({
2737
2765
  a && o((i) => !i);
2738
2766
  },
2739
2767
  children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2740
- /* @__PURE__ */ t.jsx(Cs, { secret: e, previewChars: 0, revealed: r }),
2741
- r ? /* @__PURE__ */ t.jsx(Un, { size: 14, className: w("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Gn, { size: 14, className: w("hidden group-hover:block") })
2768
+ /* @__PURE__ */ t.jsx(Ns, { secret: e, previewChars: 0, revealed: r }),
2769
+ r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className: S("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Hn, { size: 14, className: S("hidden group-hover:block") })
2742
2770
  ] }) : e
2743
2771
  }
2744
2772
  );
2745
- }, pa = ({
2773
+ }, ga = ({
2746
2774
  body: e = "",
2747
2775
  headers: n,
2748
2776
  request: s,
@@ -2751,40 +2779,40 @@ const ca = (e) => Object.entries({
2751
2779
  fileName: o,
2752
2780
  blob: i
2753
2781
  }) => {
2754
- const c = da(n), l = ua(e), m = l || e, [d, f] = k(
2782
+ const c = pa(n), l = ha(e), m = l || e, [d, f] = k(
2755
2783
  l ? "formatted" : "raw"
2756
- ), x = _s({
2784
+ ), x = qs({
2757
2785
  queryKey: ["types", m],
2758
- queryFn: async () => la(JSON.parse(m)),
2786
+ queryFn: async () => ua(JSON.parse(m)),
2759
2787
  enabled: d === "types" && !r
2760
- }), h = () => {
2788
+ }), p = () => {
2761
2789
  if (i && o) {
2762
2790
  const u = URL.createObjectURL(i), y = document.createElement("a");
2763
2791
  y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
2764
2792
  }
2765
- }, v = ma([...n]);
2793
+ }, v = fa([...n]);
2766
2794
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2767
- /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2795
+ /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2768
2796
  /* @__PURE__ */ t.jsxs(Y, { children: [
2769
- /* @__PURE__ */ t.jsx(Bn, { size: 14 }),
2797
+ /* @__PURE__ */ t.jsx(qn, { size: 14 }),
2770
2798
  /* @__PURE__ */ t.jsx(H, { children: "Request Headers" })
2771
2799
  ] }),
2772
- /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2800
+ /* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2773
2801
  s.headers.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2774
2802
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2775
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2803
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2776
2804
  ] }, u)),
2777
- s.headers.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2805
+ s.headers.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
2778
2806
  /* @__PURE__ */ t.jsxs(de, { 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: [
2779
2807
  "Show ",
2780
2808
  s.headers.length - z,
2781
2809
  " more headers",
2782
2810
  /* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
2783
2811
  ] }),
2784
- /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2812
+ /* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
2785
2813
  s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2786
2814
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2787
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2815
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2788
2816
  ] }, u)),
2789
2817
  /* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2790
2818
  "Hide ",
@@ -2802,27 +2830,27 @@ const ca = (e) => Object.entries({
2802
2830
  ] })
2803
2831
  ] }) })
2804
2832
  ] }),
2805
- /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
2833
+ /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
2806
2834
  /* @__PURE__ */ t.jsxs(Y, { children: [
2807
- /* @__PURE__ */ t.jsx(_n, { size: 14 }),
2835
+ /* @__PURE__ */ t.jsx(Un, { size: 14 }),
2808
2836
  /* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
2809
2837
  ] }),
2810
- /* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2838
+ /* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
2811
2839
  v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2812
2840
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2813
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2841
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2814
2842
  ] }, u)),
2815
- v.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
2843
+ v.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
2816
2844
  /* @__PURE__ */ t.jsxs(de, { 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: [
2817
2845
  "Show ",
2818
2846
  v.length - z,
2819
2847
  " more headers",
2820
2848
  /* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
2821
2849
  ] }),
2822
- /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
2850
+ /* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
2823
2851
  v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
2824
2852
  /* @__PURE__ */ t.jsx(ue, { children: u }),
2825
- /* @__PURE__ */ t.jsx(we, { value: y, header: u })
2853
+ /* @__PURE__ */ t.jsx(Te, { value: y, header: u })
2826
2854
  ] }, u)),
2827
2855
  /* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2828
2856
  "Hide ",
@@ -2842,7 +2870,7 @@ const ca = (e) => Object.entries({
2842
2870
  ] }),
2843
2871
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 justify-between items-center border-b px-2 flex-0", children: [
2844
2872
  /* @__PURE__ */ t.jsxs(H, { className: "flex items-center gap-2", children: [
2845
- /* @__PURE__ */ t.jsx(qn, { size: 14 }),
2873
+ /* @__PURE__ */ t.jsx(Mn, { size: 14 }),
2846
2874
  "Response body"
2847
2875
  ] }),
2848
2876
  l && !r && /* @__PURE__ */ t.jsxs(
@@ -2851,37 +2879,45 @@ const ca = (e) => Object.entries({
2851
2879
  value: d,
2852
2880
  onValueChange: (u) => f(u),
2853
2881
  children: [
2854
- /* @__PURE__ */ t.jsx(Ut, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Gt, { placeholder: "View" }) }),
2855
- /* @__PURE__ */ t.jsxs(Ht, { children: [
2856
- /* @__PURE__ */ t.jsx(Te, { value: "formatted", children: "Formatted" }),
2857
- /* @__PURE__ */ t.jsx(Te, { value: "raw", children: "Raw" }),
2858
- /* @__PURE__ */ t.jsx(Te, { value: "types", children: "Types" })
2882
+ /* @__PURE__ */ t.jsx(Gt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Ht, { placeholder: "View" }) }),
2883
+ /* @__PURE__ */ t.jsxs(Qt, { children: [
2884
+ /* @__PURE__ */ t.jsx(Ae, { value: "formatted", children: "Formatted" }),
2885
+ /* @__PURE__ */ t.jsx(Ae, { value: "raw", children: "Raw" }),
2886
+ /* @__PURE__ */ t.jsx(Ae, { value: "types", children: "Types" })
2859
2887
  ] })
2860
2888
  ]
2861
2889
  }
2862
2890
  )
2863
2891
  ] }),
2864
- /* @__PURE__ */ t.jsx("div", { className: "flex-1", children: r ? /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2892
+ /* @__PURE__ */ t.jsx("div", { className: "flex-1", children: r ? i && Mr(gn(n)) ? /* @__PURE__ */ t.jsx(
2893
+ ca,
2894
+ {
2895
+ blob: i,
2896
+ fileName: o ?? "audio",
2897
+ size: a,
2898
+ onDownload: p
2899
+ }
2900
+ ) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2865
2901
  /* @__PURE__ */ t.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
2866
2902
  /* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
2867
2903
  /* @__PURE__ */ t.jsxs(
2868
- q,
2904
+ B,
2869
2905
  {
2870
- onClick: h,
2906
+ onClick: p,
2871
2907
  className: "flex items-center gap-2",
2872
2908
  disabled: !i,
2873
2909
  children: [
2874
- /* @__PURE__ */ t.jsx(Mn, { className: "h-4 w-4" }),
2910
+ /* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
2875
2911
  "Download ",
2876
2912
  o || "file",
2877
2913
  " (",
2878
- Ee(a),
2914
+ ve(a),
2879
2915
  ")"
2880
2916
  ]
2881
2917
  }
2882
2918
  )
2883
2919
  ] }) }) : /* @__PURE__ */ t.jsx(
2884
- gs,
2920
+ Cs,
2885
2921
  {
2886
2922
  className: "text-xs flex-1",
2887
2923
  embedded: !0,
@@ -2892,7 +2928,7 @@ const ca = (e) => Object.entries({
2892
2928
  }
2893
2929
  ) })
2894
2930
  ] });
2895
- }, ha = ({
2931
+ }, xa = ({
2896
2932
  queryMutation: e,
2897
2933
  showLongRunningWarning: n,
2898
2934
  onCancel: s,
@@ -2901,7 +2937,7 @@ const ca = (e) => Object.entries({
2901
2937
  progress: o
2902
2938
  }) => /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
2903
2939
  (e.isPending || e.data) && /* @__PURE__ */ t.jsx(
2904
- oa,
2940
+ la,
2905
2941
  {
2906
2942
  status: e.data?.status,
2907
2943
  time: e.data?.time,
@@ -2910,12 +2946,12 @@ const ca = (e) => Object.entries({
2910
2946
  progress: o
2911
2947
  }
2912
2948
  ),
2913
- e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(zs, { children: [
2914
- /* @__PURE__ */ t.jsx(Hn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2915
- /* @__PURE__ */ t.jsx(Vs, { children: "Request failed" }),
2916
- /* @__PURE__ */ t.jsx(Bs, { children: e.error.message || String(e.error) || "Unexpected error" })
2949
+ e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(Vs, { children: [
2950
+ /* @__PURE__ */ t.jsx(Qn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2951
+ /* @__PURE__ */ t.jsx(Bs, { children: "Request failed" }),
2952
+ /* @__PURE__ */ t.jsx(_s, { children: e.error.message || String(e.error) || "Unexpected error" })
2917
2953
  ] }) }) : e.data ? /* @__PURE__ */ t.jsx(
2918
- pa,
2954
+ ga,
2919
2955
  {
2920
2956
  request: e.data.request,
2921
2957
  size: e.data.size,
@@ -2926,11 +2962,11 @@ const ca = (e) => Object.entries({
2926
2962
  blob: e.data.blob
2927
2963
  }
2928
2964
  ) : e.isPending ? /* @__PURE__ */ t.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2929
- /* @__PURE__ */ t.jsx(Fs, {}),
2965
+ /* @__PURE__ */ t.jsx(zs, {}),
2930
2966
  /* @__PURE__ */ t.jsxs(
2931
2967
  "div",
2932
2968
  {
2933
- className: w(
2969
+ className: S(
2934
2970
  "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2935
2971
  n && "opacity-100 pointer-events-auto"
2936
2972
  ),
@@ -2952,7 +2988,7 @@ const ca = (e) => Object.entries({
2952
2988
  )
2953
2989
  ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2954
2990
  /* @__PURE__ */ t.jsx(
2955
- Qn,
2991
+ Jn,
2956
2992
  {
2957
2993
  size: 64,
2958
2994
  className: "text-muted-foreground",
@@ -2962,7 +2998,7 @@ const ca = (e) => Object.entries({
2962
2998
  /* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2963
2999
  a
2964
3000
  ] }) })
2965
- ] }), fn = Ze()(
3001
+ ] }), xn = Ze()(
2966
3002
  Ye(
2967
3003
  (e) => ({
2968
3004
  skipLogin: !1,
@@ -2970,12 +3006,12 @@ const ca = (e) => Object.entries({
2970
3006
  }),
2971
3007
  {
2972
3008
  name: "remember-skip-login",
2973
- storage: Ft(() => sessionStorage)
3009
+ storage: Bt(() => sessionStorage)
2974
3010
  }
2975
3011
  )
2976
3012
  );
2977
- rs(fn);
2978
- const pe = "__none", fa = ({
3013
+ fs(xn);
3014
+ const pe = "__none", ya = ({
2979
3015
  server: e,
2980
3016
  servers: n = [],
2981
3017
  url: s,
@@ -2989,74 +3025,74 @@ const pe = "__none", fa = ({
2989
3025
  onLogin: d,
2990
3026
  onSignUp: f
2991
3027
  }) => {
2992
- const { selectedServer: x, setSelectedServer: h } = zr(
2993
- n.map((p) => ({ url: p }))
2994
- ), [v, u] = k(!1), y = as(), { setRememberedIdentity: S, getRememberedIdentity: R } = ea(), [, N] = ds(), { skipLogin: j, setSkipLogin: O } = fn(), [Q, be] = k(!1), [Ie, te] = k(!1), g = E(void 0), C = Ss(S), T = E(null), { label: A } = Dr("meta+enter", () => {
3028
+ const { selectedServer: x, setSelectedServer: p } = Vr(
3029
+ n.map((h) => ({ url: h }))
3030
+ ), [v, u] = k(!1), y = as(), { setRememberedIdentity: w, getRememberedIdentity: R } = na(), [, N] = ds(), { skipLogin: j, setSkipLogin: $ } = xn(), [Q, je] = k(!1), [Ie, te] = k(!1), g = E(void 0), C = Ss(w), T = E(null), { label: A } = Fr("meta+enter", () => {
2995
3031
  T.current?.requestSubmit();
2996
- }), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
2997
- (p, re) => M.indexOf(p.name) - M.indexOf(re.name)
2998
- ), { register: De, control: ne, handleSubmit: je, watch: ct, setValue: Fe, ...ze } = bs({
3032
+ }), M = s.match(/\{([^}]+)\}/g)?.map((h) => h.slice(1, -1)) ?? [], L = [...i].sort(
3033
+ (h, re) => M.indexOf(h.name) - M.indexOf(re.name)
3034
+ ), { register: De, control: ne, handleSubmit: Ce, watch: ct, setValue: Fe, ...ze } = bs({
2999
3035
  defaultValues: {
3000
3036
  body: c,
3001
3037
  bodyMode: "text",
3002
3038
  file: null,
3003
3039
  multipartFormFields: [],
3004
- queryParams: o.length > 0 ? o.map((p) => ({
3005
- name: p.name,
3006
- value: p.defaultValue ?? "",
3007
- active: p.defaultActive ?? !1,
3008
- enum: p.enum ?? []
3040
+ queryParams: o.length > 0 ? o.map((h) => ({
3041
+ name: h.name,
3042
+ value: h.defaultValue ?? "",
3043
+ active: h.defaultActive ?? !1,
3044
+ enum: h.enum ?? []
3009
3045
  })) : [{ name: "", value: "", active: !1, enum: [] }],
3010
- pathParams: L.map((p) => ({
3011
- name: p.name,
3012
- value: p.defaultValue ?? ""
3046
+ pathParams: L.map((h) => ({
3047
+ name: h.name,
3048
+ value: h.defaultValue ?? ""
3013
3049
  })),
3014
- headers: r.length > 0 ? r.map((p) => ({
3015
- name: p.name,
3016
- value: p.defaultValue ?? "",
3017
- active: p.defaultActive ?? !1
3050
+ headers: r.length > 0 ? r.map((h) => ({
3051
+ name: h.name,
3052
+ value: h.defaultValue ?? "",
3053
+ active: h.defaultActive ?? !1
3018
3054
  })) : [{ name: "", value: "", active: !1 }],
3019
3055
  identity: R([
3020
3056
  pe,
3021
- ...y.data?.map((p) => p.id) ?? []
3057
+ ...y.data?.map((h) => h.id) ?? []
3022
3058
  ])
3023
3059
  }
3024
- }), se = ct("identity"), bn = Vt(
3025
- () => y.data?.find((p) => p.id === se)?.authorizationFields,
3060
+ }), se = ct("identity"), Cn = Vt(
3061
+ () => y.data?.find((h) => h.id === se)?.authorizationFields,
3026
3062
  [y.data, se]
3027
3063
  );
3028
- G(() => {
3064
+ U(() => {
3029
3065
  se && C.current(se);
3030
3066
  }, [C, se]);
3031
3067
  const J = vs({
3032
3068
  gcTime: 0,
3033
- mutationFn: async (p) => {
3069
+ mutationFn: async (h) => {
3034
3070
  const re = performance.now(), Ve = new window.Headers(
3035
- p.headers.filter(($) => $.name && $.active).map(($) => [$.name, $.value])
3071
+ h.headers.filter((O) => O.name && O.active).map((O) => [O.name, O.value])
3036
3072
  );
3037
- let Ce;
3038
- switch (p.bodyMode) {
3073
+ let Ne;
3074
+ switch (h.bodyMode) {
3039
3075
  case "file":
3040
- Ce = p.file || void 0, Ve.delete("Content-Type");
3076
+ Ne = h.file || void 0, Ve.delete("Content-Type");
3041
3077
  break;
3042
3078
  case "multipart": {
3043
- const $ = new FormData();
3044
- p.multipartFormFields?.filter((X) => X.name && X.active).forEach((X) => $.append(X.name, X.value)), Ce = $, Ve.delete("Content-Type");
3079
+ const O = new FormData();
3080
+ h.multipartFormFields?.filter((X) => X.name && X.active).forEach((X) => O.append(X.name, X.value)), Ne = O, Ve.delete("Content-Type");
3045
3081
  break;
3046
3082
  }
3047
3083
  default:
3048
- Ce = p.body || void 0;
3084
+ Ne = h.body || void 0;
3049
3085
  break;
3050
3086
  }
3051
3087
  const W = new Request(
3052
- Lt(e ?? x, s, p),
3088
+ Lt(e ?? x, s, h),
3053
3089
  {
3054
3090
  method: a,
3055
3091
  headers: Ve,
3056
- body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ce
3092
+ body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ne
3057
3093
  }
3058
3094
  );
3059
- p.identity !== pe && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(W);
3095
+ h.identity !== pe && await y.data?.find((O) => O.id === h.identity)?.authorizeRequest(W);
3060
3096
  const Be = setTimeout(
3061
3097
  () => te(!0),
3062
3098
  3210
@@ -3065,39 +3101,39 @@ const pe = "__none", fa = ({
3065
3101
  clearTimeout(Be);
3066
3102
  });
3067
3103
  try {
3068
- const $ = await fetch(W, {
3104
+ const O = await fetch(W, {
3069
3105
  cache: "no-store",
3070
3106
  signal: g.current.signal
3071
3107
  });
3072
3108
  clearTimeout(Be), te(!1);
3073
- const X = performance.now() - re, Pn = new URL(W.url), mt = Array.from($.headers.entries()), pt = $.headers.get("content-type") || "", ht = qr(pt);
3074
- let Ne = "", ft, gt;
3075
- ht ? (ft = await $.blob(), gt = Mr(mt, W.url), Ne = `Binary content (${pt})`) : Ne = await $.text();
3076
- const xt = $.headers.get("content-length");
3109
+ const X = performance.now() - re, Ln = new URL(W.url), mt = Array.from(O.headers.entries()), pt = O.headers.get("content-type") || "", ht = Ur(pt);
3110
+ let we = "", ft, gt;
3111
+ ht ? (ft = await O.blob(), gt = Gr(mt, W.url), we = `Binary content (${pt})`) : we = await O.text();
3112
+ const xt = O.headers.get("content-length");
3077
3113
  let ae = "";
3078
- switch (p.bodyMode) {
3114
+ switch (h.bodyMode) {
3079
3115
  case "text":
3080
- ae = p.body;
3116
+ ae = h.body;
3081
3117
  break;
3082
3118
  case "file":
3083
- ae = `[File: ${p.file?.name ?? "Unknown"}]`;
3119
+ ae = `[File: ${h.file?.name ?? "Unknown"}]`;
3084
3120
  break;
3085
3121
  case "multipart":
3086
3122
  ae = `[Multipart Form Data]
3087
- `, ae += p.multipartFormFields?.filter((U) => U.name && U.active).map(
3088
- (U) => U.value instanceof File ? `${U.name}: [File: ${U.value.name}]` : `${U.name}: ${U.value}`
3123
+ `, ae += h.multipartFormFields?.filter((G) => G.name && G.active).map(
3124
+ (G) => G.value instanceof File ? `${G.name}: [File: ${G.value.name}]` : `${G.name}: ${G.value}`
3089
3125
  ).join(`
3090
3126
  `);
3091
3127
  break;
3092
3128
  default:
3093
- ae = p.body;
3129
+ ae = h.body;
3094
3130
  break;
3095
3131
  }
3096
3132
  return {
3097
- status: $.status,
3133
+ status: O.status,
3098
3134
  headers: mt,
3099
- size: xt ? Number(xt) : Ne.length,
3100
- body: Ne,
3135
+ size: xt ? Number(xt) : we.length,
3136
+ body: we,
3101
3137
  time: X,
3102
3138
  isBinary: ht,
3103
3139
  fileName: gt,
@@ -3106,50 +3142,50 @@ const pe = "__none", fa = ({
3106
3142
  method: W.method.toUpperCase(),
3107
3143
  url: W.url,
3108
3144
  headers: [
3109
- ["Host", Pn.host],
3145
+ ["Host", Ln.host],
3110
3146
  ["User-Agent", "Zudoku Playground"],
3111
3147
  ...Array.from(W.headers.entries())
3112
3148
  ],
3113
3149
  body: ae
3114
3150
  }
3115
3151
  };
3116
- } catch ($) {
3117
- throw clearTimeout(Be), te(!1), $ instanceof TypeError ? new Error(
3152
+ } catch (O) {
3153
+ throw clearTimeout(Be), te(!1), O instanceof TypeError ? new Error(
3118
3154
  "The request failed, possibly due to network issues or CORS policy."
3119
- ) : $;
3155
+ ) : O;
3120
3156
  }
3121
3157
  }
3122
- }), dt = J.isPending, [jn, Cn] = k(!1);
3123
- G(() => {
3124
- const p = setTimeout(() => Cn(dt), 100);
3125
- return () => clearTimeout(p);
3158
+ }), dt = J.isPending, [Nn, wn] = k(!1);
3159
+ U(() => {
3160
+ const h = setTimeout(() => wn(dt), 100);
3161
+ return () => clearTimeout(h);
3126
3162
  }, [dt]);
3127
- const { isFinished: Nn, progress: Sn } = xs({ isAnimating: jn });
3128
- G(() => () => {
3163
+ const { isFinished: Sn, progress: Tn } = xs({ isAnimating: Nn });
3164
+ U(() => () => {
3129
3165
  g.current?.abort();
3130
3166
  }, []);
3131
- const wn = /* @__PURE__ */ t.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ t.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ t.jsxs(
3167
+ const An = /* @__PURE__ */ t.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ t.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ t.jsxs(
3132
3168
  Mt,
3133
3169
  {
3134
- onValueChange: (p) => {
3135
- N(() => h(p));
3170
+ onValueChange: (h) => {
3171
+ N(() => p(h));
3136
3172
  },
3137
3173
  value: x,
3138
3174
  defaultValue: x,
3139
3175
  children: [
3140
- /* @__PURE__ */ t.jsx(Ut, { className: "p-0 h-fit shadow-none border-none flex-row-reverse bg-transparent text-xs gap-0.5 translate-y-[4px]", children: /* @__PURE__ */ t.jsx(Gt, {}) }),
3141
- /* @__PURE__ */ t.jsx(Ht, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
3176
+ /* @__PURE__ */ t.jsx(Gt, { className: "p-0 h-fit shadow-none border-none flex-row-reverse bg-transparent text-xs gap-0.5 translate-y-[4px]", children: /* @__PURE__ */ t.jsx(Ht, {}) }),
3177
+ /* @__PURE__ */ t.jsx(Qt, { children: n.map((h) => /* @__PURE__ */ t.jsx(Ae, { value: h, children: h.replace(/^https?:\/\//, "").replace(/\/$/, "") }, h)) })
3142
3178
  ]
3143
3179
  }
3144
- ) }), Tn = m && !j && !Q, An = ["POST", "PUT", "PATCH", "DELETE"].includes(
3180
+ ) }), On = m && !j && !Q, Pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
3145
3181
  a.toUpperCase()
3146
- ), [ut, $n] = Ns();
3182
+ ), [ut, $n] = ws();
3147
3183
  return /* @__PURE__ */ t.jsx(
3148
3184
  js,
3149
3185
  {
3150
3186
  register: De,
3151
3187
  control: ne,
3152
- handleSubmit: je,
3188
+ handleSubmit: Ce,
3153
3189
  watch: ct,
3154
3190
  setValue: Fe,
3155
3191
  ...ze,
@@ -3157,34 +3193,34 @@ const pe = "__none", fa = ({
3157
3193
  "form",
3158
3194
  {
3159
3195
  ref: T,
3160
- onKeyDown: (p) => {
3161
- p.key === "Enter" && p.target instanceof HTMLInputElement && p.preventDefault();
3196
+ onKeyDown: (h) => {
3197
+ h.key === "Enter" && h.target instanceof HTMLInputElement && h.preventDefault();
3162
3198
  },
3163
- onSubmit: je((p) => {
3164
- y.data?.length === 0 || p.identity ? J.mutate(p) : u(!0);
3199
+ onSubmit: Ce((h) => {
3200
+ y.data?.length === 0 || h.identity ? J.mutate(h) : u(!0);
3165
3201
  }),
3166
3202
  className: "relative",
3167
3203
  children: [
3168
3204
  /* @__PURE__ */ t.jsx(
3169
- Wr,
3205
+ Kr,
3170
3206
  {
3171
3207
  identities: y.data ?? [],
3172
3208
  open: v,
3173
3209
  onOpenChange: u,
3174
- onSubmit: ({ rememberedIdentity: p, identity: re }) => {
3175
- p && Fe("identity", re ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: re });
3210
+ onSubmit: ({ rememberedIdentity: h, identity: re }) => {
3211
+ h && Fe("identity", re ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: re });
3176
3212
  }
3177
3213
  }
3178
3214
  ),
3179
3215
  /* @__PURE__ */ t.jsx(
3180
- Yr,
3216
+ ta,
3181
3217
  {
3182
- open: Tn,
3183
- setOpen: (p) => {
3184
- p || be(!0);
3218
+ open: On,
3219
+ setOpen: (h) => {
3220
+ h || je(!0);
3185
3221
  },
3186
- onSkip: (p) => {
3187
- be(!0), p && O(!0);
3222
+ onSkip: (h) => {
3223
+ je(!0), h && $(!0);
3188
3224
  },
3189
3225
  onSignUp: f,
3190
3226
  onLogin: d
@@ -3195,12 +3231,12 @@ const pe = "__none", fa = ({
3195
3231
  /* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
3196
3232
  /* @__PURE__ */ t.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
3197
3233
  /* @__PURE__ */ t.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ t.jsxs("div", { className: "h-full py-1.5", children: [
3198
- wn,
3199
- /* @__PURE__ */ t.jsx(na, { url: s }),
3200
- /* @__PURE__ */ t.jsx(sa, {})
3234
+ An,
3235
+ /* @__PURE__ */ t.jsx(ra, { url: s }),
3236
+ /* @__PURE__ */ t.jsx(aa, {})
3201
3237
  ] }) }),
3202
3238
  /* @__PURE__ */ t.jsx("div", { className: "px-1", children: /* @__PURE__ */ t.jsx(
3203
- q,
3239
+ B,
3204
3240
  {
3205
3241
  type: "button",
3206
3242
  onClick: () => {
@@ -3214,23 +3250,23 @@ const pe = "__none", fa = ({
3214
3250
  },
3215
3251
  variant: "ghost",
3216
3252
  size: "icon-xs",
3217
- className: w(
3253
+ className: S(
3218
3254
  "hover:opacity-100 transition",
3219
3255
  ut ? "text-emerald-600 opacity-100" : "opacity-50"
3220
3256
  ),
3221
- children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Jn, { size: 14 })
3257
+ children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
3222
3258
  }
3223
3259
  ) })
3224
3260
  ] }),
3225
3261
  /* @__PURE__ */ t.jsx(
3226
- q,
3262
+ B,
3227
3263
  {
3228
3264
  type: "submit",
3229
3265
  variant: J.isPending ? "destructive" : "default",
3230
- onClick: (p) => {
3266
+ onClick: (h) => {
3231
3267
  J.isPending && (g.current?.abort(
3232
3268
  "Request cancelled by user"
3233
- ), p.preventDefault());
3269
+ ), h.preventDefault());
3234
3270
  },
3235
3271
  className: "w-18",
3236
3272
  children: J.isPending ? "Cancel" : "Send"
@@ -3238,46 +3274,46 @@ const pe = "__none", fa = ({
3238
3274
  )
3239
3275
  ] }),
3240
3276
  /* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
3241
- y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
3277
+ y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
3242
3278
  /* @__PURE__ */ t.jsxs(Y, { children: [
3243
- /* @__PURE__ */ t.jsx(Wn, { size: 16 }),
3279
+ /* @__PURE__ */ t.jsx(Xn, { size: 16 }),
3244
3280
  /* @__PURE__ */ t.jsx(H, { children: "Authentication" })
3245
3281
  ] }),
3246
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
3247
- pn,
3282
+ /* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
3283
+ hn,
3248
3284
  {
3249
3285
  value: se,
3250
3286
  identities: y.data ?? [],
3251
- setValue: (p) => Fe("identity", p)
3287
+ setValue: (h) => Fe("identity", h)
3252
3288
  }
3253
3289
  ) })
3254
3290
  ] }),
3255
- L.length > 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
3291
+ L.length > 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
3256
3292
  /* @__PURE__ */ t.jsxs(Y, { children: [
3257
- /* @__PURE__ */ t.jsx(Xn, { size: 16 }),
3293
+ /* @__PURE__ */ t.jsx(Kn, { size: 16 }),
3258
3294
  /* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
3259
3295
  ] }),
3260
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Kr, { url: s, control: ne }) })
3296
+ /* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Yr, { url: s, control: ne }) })
3261
3297
  ] }),
3262
- /* @__PURE__ */ t.jsx(Zr, { control: ne, schemaQueryParams: o }),
3298
+ /* @__PURE__ */ t.jsx(ea, { control: ne, schemaQueryParams: o }),
3263
3299
  /* @__PURE__ */ t.jsx(
3264
- Qr,
3300
+ Wr,
3265
3301
  {
3266
3302
  control: ne,
3267
3303
  schemaHeaders: r,
3268
- lockedHeaders: bn?.headers
3304
+ lockedHeaders: Cn?.headers
3269
3305
  }
3270
3306
  ),
3271
- An && /* @__PURE__ */ t.jsx(_r, { content: l })
3307
+ Pn && /* @__PURE__ */ t.jsx(qr, { content: l })
3272
3308
  ] }),
3273
3309
  /* @__PURE__ */ t.jsx("div", { className: "w-full bg-muted-foreground/20" }),
3274
3310
  /* @__PURE__ */ t.jsx(
3275
- ha,
3311
+ xa,
3276
3312
  {
3277
3313
  queryMutation: J,
3278
3314
  showLongRunningWarning: Ie,
3279
- isFinished: Nn,
3280
- progress: Sn,
3315
+ isFinished: Sn,
3316
+ progress: Tn,
3281
3317
  tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
3282
3318
  "Press",
3283
3319
  " ",
@@ -3298,11 +3334,11 @@ const pe = "__none", fa = ({
3298
3334
  ) })
3299
3335
  }
3300
3336
  );
3301
- }, ga = (e) => {
3337
+ }, va = (e) => {
3302
3338
  const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = hs();
3303
3339
  return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
3304
- /* @__PURE__ */ t.jsx(fs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3305
- Kn,
3340
+ /* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(B, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3341
+ Zn,
3306
3342
  {
3307
3343
  className: "fill-muted-foreground group-hover:fill-foreground transition",
3308
3344
  size: 16,
@@ -3318,7 +3354,7 @@ const pe = "__none", fa = ({
3318
3354
  children: [
3319
3355
  /* @__PURE__ */ t.jsx(ms, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
3320
3356
  n && /* @__PURE__ */ t.jsx(
3321
- fa,
3357
+ ya,
3322
3358
  {
3323
3359
  requiresLogin: a && !c && !i,
3324
3360
  onLogin: () => r(),
@@ -3330,7 +3366,7 @@ const pe = "__none", fa = ({
3330
3366
  }
3331
3367
  )
3332
3368
  ] });
3333
- }, xa = {
3369
+ }, ba = {
3334
3370
  get: "green",
3335
3371
  post: "blue",
3336
3372
  put: "yellow",
@@ -3338,7 +3374,7 @@ const pe = "__none", fa = ({
3338
3374
  patch: "purple",
3339
3375
  options: "gray",
3340
3376
  head: "gray"
3341
- }, kt = ({
3377
+ }, Et = ({
3342
3378
  label: e,
3343
3379
  path: n,
3344
3380
  operations: s,
@@ -3362,21 +3398,21 @@ const pe = "__none", fa = ({
3362
3398
  badge: {
3363
3399
  label: o.method,
3364
3400
  // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
3365
- color: xa[o.method.toLowerCase()],
3401
+ color: ba[o.method.toLowerCase()],
3366
3402
  invert: !0
3367
3403
  }
3368
3404
  }))
3369
- }), gn = zt(
3405
+ }), yn = zt(
3370
3406
  void 0
3371
- ), to = gn.Provider, ya = () => {
3372
- const e = us(gn);
3407
+ ), oo = yn.Provider, ja = () => {
3408
+ const e = us(yn);
3373
3409
  if (!e)
3374
3410
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3375
3411
  return e.config;
3376
3412
  }, Qe = (e) => ({
3377
3413
  path: e.routePath,
3378
3414
  async lazy() {
3379
- const { OasProvider: n } = await import("./OasProvider-oHPiMJZg.js");
3415
+ const { OasProvider: n } = await import("./OasProvider-BQ60YgAd.js");
3380
3416
  return {
3381
3417
  element: /* @__PURE__ */ t.jsx(
3382
3418
  n,
@@ -3390,28 +3426,28 @@ const pe = "__none", fa = ({
3390
3426
  };
3391
3427
  },
3392
3428
  children: e.routes
3393
- }), xn = ({
3429
+ }), vn = ({
3394
3430
  path: e,
3395
3431
  tag: n,
3396
3432
  untagged: s
3397
3433
  }) => ({
3398
3434
  path: e,
3399
3435
  async lazy() {
3400
- const { OperationList: a } = await import("./OperationList-CZ4OK8Pm.js");
3436
+ const { OperationList: a } = await import("./OperationList-D31urxqy.js");
3401
3437
  return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
3402
3438
  }
3403
- }), va = ({
3439
+ }), Ca = ({
3404
3440
  render: e,
3405
3441
  path: n
3406
3442
  }) => {
3407
- const { type: s, input: a } = ya(), { tag: r } = es(), o = ts(), i = Nr(vn, { type: s, input: a }), {
3443
+ const { type: s, input: a } = ja(), { tag: r } = ts(), o = ns(), i = wr(jn, { type: s, input: a }), {
3408
3444
  data: { schema: c }
3409
- } = qs(i), l = c.tags.at(0);
3445
+ } = Us(i), l = c.tags.at(0);
3410
3446
  return !r && l?.slug ? /* @__PURE__ */ t.jsx(
3411
- ns,
3447
+ ss,
3412
3448
  {
3413
3449
  to: {
3414
- pathname: ss(n, { tag: l.slug }),
3450
+ pathname: rs(n, { tag: l.slug }),
3415
3451
  search: o.search
3416
3452
  }
3417
3453
  }
@@ -3419,10 +3455,10 @@ const pe = "__none", fa = ({
3419
3455
  }, Rt = ({ path: e }) => ({
3420
3456
  path: e,
3421
3457
  async lazy() {
3422
- const { OperationList: n } = await import("./OperationList-CZ4OK8Pm.js");
3458
+ const { OperationList: n } = await import("./OperationList-D31urxqy.js");
3423
3459
  return {
3424
3460
  element: /* @__PURE__ */ t.jsx(
3425
- va,
3461
+ Ca,
3426
3462
  {
3427
3463
  path: e,
3428
3464
  render: (s) => /* @__PURE__ */ t.jsx(n, { tag: s })
@@ -3432,7 +3468,7 @@ const pe = "__none", fa = ({
3432
3468
  }
3433
3469
  }), Ke = (e) => [
3434
3470
  // Category without tagged operations
3435
- xn({
3471
+ vn({
3436
3472
  path: V(e, lt),
3437
3473
  untagged: !0
3438
3474
  }),
@@ -3440,25 +3476,25 @@ const pe = "__none", fa = ({
3440
3476
  {
3441
3477
  path: V(e, "~schemas"),
3442
3478
  lazy: async () => {
3443
- const { SchemaList: n } = await import("./SchemaList-DoQFkJgM.js");
3479
+ const { SchemaList: n } = await import("./SchemaList-CSVFH585.js");
3444
3480
  return { element: /* @__PURE__ */ t.jsx(n, {}) };
3445
3481
  }
3446
3482
  }
3447
- ], ba = (e, n) => {
3483
+ ], Na = (e, n) => {
3448
3484
  const s = V(e, n.at(0) ?? lt);
3449
3485
  return [
3450
3486
  // Redirect to first tag on the index route
3451
- { index: !0, loader: () => Yn(s) },
3487
+ { index: !0, loader: () => es(s) },
3452
3488
  // Create routes for each tag
3453
3489
  ...n.map(
3454
- (a) => xn({
3490
+ (a) => vn({
3455
3491
  path: V(e, a),
3456
3492
  tag: a
3457
3493
  })
3458
3494
  ),
3459
3495
  ...Ke(e)
3460
3496
  ];
3461
- }, yn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
3497
+ }, bn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
3462
3498
  versions: e.input.map((n) => n.path),
3463
3499
  labels: Object.fromEntries(
3464
3500
  e.input.map((n) => [n.path, n.label ?? n.path])
@@ -3466,19 +3502,19 @@ const pe = "__none", fa = ({
3466
3502
  downloadUrls: Object.fromEntries(
3467
3503
  e.input.map((n) => [n.path, n.downloadUrl])
3468
3504
  )
3469
- }, ja = ({
3505
+ }, wa = ({
3470
3506
  basePath: e,
3471
3507
  config: n,
3472
3508
  client: s
3473
3509
  }) => {
3474
- const a = n.tagPages, { versions: r } = yn(n);
3510
+ const a = n.tagPages, { versions: r } = bn(n);
3475
3511
  return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3476
3512
  const c = V(e, i);
3477
3513
  return Qe({
3478
3514
  basePath: e,
3479
3515
  version: i,
3480
3516
  routePath: c,
3481
- routes: ba(c, a),
3517
+ routes: Na(c, a),
3482
3518
  client: s,
3483
3519
  config: n
3484
3520
  });
@@ -3507,7 +3543,7 @@ const pe = "__none", fa = ({
3507
3543
  config: n
3508
3544
  })
3509
3545
  ];
3510
- }, vn = Er(`
3546
+ }, jn = Er(`
3511
3547
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3512
3548
  schema(input: $input, type: $type) {
3513
3549
  extensions
@@ -3530,8 +3566,8 @@ const pe = "__none", fa = ({
3530
3566
  }
3531
3567
  }
3532
3568
  }
3533
- `), lt = "~endpoints", no = (e) => {
3534
- const n = V(e.path), s = new Us(e);
3569
+ `), lt = "~endpoints", io = (e) => {
3570
+ const n = V(e.path), s = new Gs(e);
3535
3571
  return {
3536
3572
  getHead: () => {
3537
3573
  if (e.type === "url" && !e.skipPreload)
@@ -3559,7 +3595,7 @@ const pe = "__none", fa = ({
3559
3595
  if (!a)
3560
3596
  throw new Error("Server is required");
3561
3597
  return /* @__PURE__ */ t.jsx(
3562
- ga,
3598
+ va,
3563
3599
  {
3564
3600
  url: o,
3565
3601
  method: r,
@@ -3567,7 +3603,7 @@ const pe = "__none", fa = ({
3567
3603
  ...c,
3568
3604
  children: /* @__PURE__ */ t.jsx(K, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3569
3605
  "Open in Playground",
3570
- /* @__PURE__ */ t.jsx(Zn, { size: 16 })
3606
+ /* @__PURE__ */ t.jsx(Yn, { size: 16 })
3571
3607
  ] }) })
3572
3608
  }
3573
3609
  );
@@ -3581,33 +3617,33 @@ const pe = "__none", fa = ({
3581
3617
  a
3582
3618
  );
3583
3619
  try {
3584
- const i = o?.params.version, { versions: c } = yn(e), l = i ?? c.at(0), { type: m } = e, d = Array.isArray(e.input) ? e.input.find((N) => N.path === l)?.input ?? e.input[0]?.input : e.input, f = ln(s, vn, {
3620
+ const i = o?.params.version, { versions: c } = bn(e), l = i ?? c.at(0), { type: m } = e, d = Array.isArray(e.input) ? e.input.find((N) => N.path === l)?.input ?? e.input[0]?.input : e.input, f = cn(s, jn, {
3585
3621
  type: m,
3586
3622
  input: d
3587
- }), x = await r.queryClient.ensureQueryData(f), h = new Map(
3623
+ }), x = await r.queryClient.ensureQueryData(f), p = new Map(
3588
3624
  x.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
3589
3625
  if (!N.name)
3590
3626
  throw new Error(`Tag ${N.slug} has no name`);
3591
- const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3627
+ const j = V(n, i, N.slug), $ = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3592
3628
  return [
3593
3629
  N.name,
3594
- kt({
3630
+ Et({
3595
3631
  label: N.extensions?.["x-displayName"] ?? N.name,
3596
3632
  path: j,
3597
3633
  operations: N.operations,
3598
- collapsed: O,
3634
+ collapsed: $,
3599
3635
  collapsible: Q
3600
3636
  })
3601
3637
  ];
3602
3638
  })
3603
3639
  ), v = x.schema.extensions?.["x-tagGroups"] ?? [], u = new Set(
3604
3640
  v.flatMap(
3605
- (N) => N.tags.filter((j) => h.has(j))
3641
+ (N) => N.tags.filter((j) => p.has(j))
3606
3642
  )
3607
- ), S = [
3643
+ ), w = [
3608
3644
  ...v.flatMap(
3609
3645
  (N) => {
3610
- const j = N.tags.map((O) => h.get(O)).filter(Boolean);
3646
+ const j = N.tags.map(($) => p.get($)).filter(Boolean);
3611
3647
  return j.length === 0 ? [] : [
3612
3648
  {
3613
3649
  type: "category",
@@ -3619,64 +3655,64 @@ const pe = "__none", fa = ({
3619
3655
  ];
3620
3656
  }
3621
3657
  ),
3622
- ...Array.from(h.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
3658
+ ...Array.from(p.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
3623
3659
  ], R = x.schema.tags.find(
3624
3660
  (N) => !N.name
3625
3661
  )?.operations;
3626
- return R && R.length > 0 && S.push(
3627
- kt({
3628
- label: S.length === 0 ? "Endpoints" : "Other endpoints",
3662
+ return R && R.length > 0 && w.push(
3663
+ Et({
3664
+ label: w.length === 0 ? "Endpoints" : "Other endpoints",
3629
3665
  path: V(n, i, lt),
3630
3666
  operations: R,
3631
3667
  collapsed: !e.options?.expandAllTags
3632
3668
  })
3633
- ), x.schema.components?.schemas?.length && S.push({
3669
+ ), x.schema.components?.schemas?.length && w.push({
3634
3670
  type: "link",
3635
3671
  label: "Schemas",
3636
3672
  to: V(n, i, "~schemas")
3637
- }), S;
3673
+ }), w;
3638
3674
  } catch {
3639
3675
  return [];
3640
3676
  }
3641
3677
  },
3642
- getRoutes: () => ja({ basePath: n, config: e, client: s })
3678
+ getRoutes: () => wa({ basePath: n, config: e, client: s })
3643
3679
  };
3644
3680
  };
3645
3681
  export {
3646
- B as C,
3647
- eo as G,
3648
- nr as L,
3649
- to as O,
3650
- ga as P,
3651
- Xs as Q,
3652
- an as S,
3682
+ _ as C,
3683
+ ao as G,
3684
+ sr as L,
3685
+ oo as O,
3686
+ va as P,
3687
+ Ks as Q,
3688
+ on as S,
3653
3689
  b as T,
3654
3690
  lt as U,
3655
- Nr as a,
3691
+ wr as a,
3656
3692
  de as b,
3657
- _ as c,
3693
+ q as c,
3658
3694
  Er as d,
3659
- zr as e,
3660
- hn as f,
3661
- yn as g,
3662
- ta as h,
3663
- jr as i,
3695
+ Vr as e,
3696
+ fn as f,
3697
+ bn as g,
3698
+ sa as h,
3699
+ Cr as i,
3664
3700
  Pt as j,
3665
- Za as k,
3666
- sr as l,
3701
+ so as k,
3702
+ rr as l,
3667
3703
  rt as m,
3668
- rn as n,
3669
- Gs as o,
3670
- br as p,
3704
+ an as n,
3705
+ Hs as o,
3706
+ jr as p,
3671
3707
  qe as q,
3672
- Hs as r,
3708
+ Qs as r,
3673
3709
  F as s,
3674
- Ya as t,
3675
- ya as u,
3676
- tr as v,
3677
- Zs as w,
3678
- en as x,
3679
- vn as y,
3680
- no as z
3710
+ ro as t,
3711
+ ja as u,
3712
+ nr as v,
3713
+ Ys as w,
3714
+ tn as x,
3715
+ jn as y,
3716
+ io as z
3681
3717
  };
3682
- //# sourceMappingURL=index-CyIW9rHv.js.map
3718
+ //# sourceMappingURL=index-Bc2mE-53.js.map