zudoku 0.44.1 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (576) hide show
  1. package/cli.js +8 -2
  2. package/dist/app/entry.client.js +34 -21
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/main.js +7 -0
  5. package/dist/app/main.js.map +1 -1
  6. package/dist/config/validators/common.d.ts +420 -288
  7. package/dist/config/validators/common.js +10 -0
  8. package/dist/config/validators/common.js.map +1 -1
  9. package/dist/config/validators/validate.d.ts +161 -108
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.js +1 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/lib/components/Footer.js +2 -2
  14. package/dist/lib/components/Footer.js.map +1 -1
  15. package/dist/lib/components/Header.js +1 -1
  16. package/dist/lib/components/Header.js.map +1 -1
  17. package/dist/lib/components/Markdown.d.ts +3 -1
  18. package/dist/lib/components/Markdown.js +8 -14
  19. package/dist/lib/components/Markdown.js.map +1 -1
  20. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  21. package/dist/lib/components/context/ZudokuContext.js +2 -3
  22. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  23. package/dist/lib/components/index.d.ts +2 -1
  24. package/dist/lib/core/ZudokuContext.d.ts +8 -0
  25. package/dist/lib/core/ZudokuContext.js.map +1 -1
  26. package/dist/lib/errors/ErrorAlert.js +1 -1
  27. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  28. package/dist/lib/oas/graphql/circular.js +23 -18
  29. package/dist/lib/oas/graphql/circular.js.map +1 -1
  30. package/dist/lib/oas/parser/index.d.ts +3 -0
  31. package/dist/lib/oas/parser/index.js +6 -1
  32. package/dist/lib/oas/parser/index.js.map +1 -1
  33. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  34. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  35. package/dist/lib/plugins/openapi/ParamInfos.js +3 -1
  36. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  37. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  38. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  39. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  40. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  41. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -3
  42. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  43. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +4 -1
  44. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  45. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +11 -12
  46. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  47. package/dist/lib/plugins/openapi/schema/utils.d.ts +5 -1
  48. package/dist/lib/plugins/openapi/schema/utils.js +9 -5
  49. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  50. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  51. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +4 -0
  52. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  53. package/dist/lib/shiki.d.ts +35 -0
  54. package/dist/lib/shiki.js +103 -0
  55. package/dist/lib/shiki.js.map +1 -0
  56. package/dist/lib/ui/Callout.js +1 -1
  57. package/dist/lib/ui/Callout.js.map +1 -1
  58. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  59. package/dist/lib/ui/CodeBlock.js +18 -0
  60. package/dist/lib/ui/CodeBlock.js.map +1 -0
  61. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -15
  62. package/dist/lib/ui/SyntaxHighlight.js +12 -60
  63. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  64. package/dist/lib/util/MdxComponents.d.ts +9 -3
  65. package/dist/lib/util/MdxComponents.js +9 -10
  66. package/dist/lib/util/MdxComponents.js.map +1 -1
  67. package/dist/vite/api/SchemaManager.js +2 -0
  68. package/dist/vite/api/SchemaManager.js.map +1 -1
  69. package/dist/vite/config.js +34 -0
  70. package/dist/vite/config.js.map +1 -1
  71. package/dist/vite/plugin-mdx.js +4 -11
  72. package/dist/vite/plugin-mdx.js.map +1 -1
  73. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  74. package/dist/vite/plugin-shiki-register.js +38 -0
  75. package/dist/vite/plugin-shiki-register.js.map +1 -0
  76. package/dist/vite/plugin.js +2 -0
  77. package/dist/vite/plugin.js.map +1 -1
  78. package/lib/AuthenticationPlugin-BTJ37DKg.js +90 -0
  79. package/lib/{AuthenticationPlugin-BlJsiGuX.js.map → AuthenticationPlugin-BTJ37DKg.js.map} +1 -1
  80. package/lib/{Button-BBNrKpQd.js → Button-Bdk_Ij3U.js} +3 -3
  81. package/lib/{Button-BBNrKpQd.js.map → Button-Bdk_Ij3U.js.map} +1 -1
  82. package/lib/{Callout-D3Ja4OPX.js → Callout-XadUe37J.js} +12 -12
  83. package/lib/{Callout-D3Ja4OPX.js.map → Callout-XadUe37J.js.map} +1 -1
  84. package/lib/{Card-BtheiD7j.js → Card-BlCYNw5W.js} +2 -2
  85. package/lib/{Card-BtheiD7j.js.map → Card-BlCYNw5W.js.map} +1 -1
  86. package/lib/{CategoryHeading-D06WK_Wo.js → CategoryHeading-DZi-Szor.js} +2 -2
  87. package/lib/{CategoryHeading-D06WK_Wo.js.map → CategoryHeading-DZi-Szor.js.map} +1 -1
  88. package/lib/{Dialog-ByYz4ABw.js → Dialog-CNf2oWXG.js} +2 -2
  89. package/lib/{Dialog-ByYz4ABw.js.map → Dialog-CNf2oWXG.js.map} +1 -1
  90. package/lib/{Drawer-CEwbkLDb.js → Drawer-BPBxzel2.js} +25 -25
  91. package/lib/{Drawer-CEwbkLDb.js.map → Drawer-BPBxzel2.js.map} +1 -1
  92. package/lib/Markdown-D96AphCL.js +7691 -0
  93. package/lib/Markdown-D96AphCL.js.map +1 -0
  94. package/lib/MdxPage-tTTaDsLc.js +84 -0
  95. package/lib/{MdxPage-DlJaCSPf.js.map → MdxPage-tTTaDsLc.js.map} +1 -1
  96. package/lib/{OasProvider-CsUksaAo.js → OasProvider-DalHQixM.js} +4 -4
  97. package/lib/{OasProvider-CsUksaAo.js.map → OasProvider-DalHQixM.js.map} +1 -1
  98. package/lib/{OperationList-BlUBNsw2.js → OperationList-BB09ENaq.js} +1896 -1932
  99. package/lib/{OperationList-BlUBNsw2.js.map → OperationList-BB09ENaq.js.map} +1 -1
  100. package/lib/{Pagination-C5Fi7z_v.js → Pagination-CtmnJOJi.js} +4 -4
  101. package/lib/{Pagination-C5Fi7z_v.js.map → Pagination-CtmnJOJi.js.map} +1 -1
  102. package/lib/RouteGuard-lkdEJoDV.js +732 -0
  103. package/lib/{RouteGuard-D2gX29iI.js.map → RouteGuard-lkdEJoDV.js.map} +1 -1
  104. package/lib/{SchemaList-BQiBukIP.js → SchemaList-BH9bgMRw.js} +40 -41
  105. package/lib/{SchemaList-BQiBukIP.js.map → SchemaList-BH9bgMRw.js.map} +1 -1
  106. package/lib/{SchemaView-Bt95NiyQ.js → SchemaView-BsB7EFRl.js} +120 -115
  107. package/lib/SchemaView-BsB7EFRl.js.map +1 -0
  108. package/lib/Select-HTio1oSE.js +211 -0
  109. package/lib/{Select-CYaEBIYK.js.map → Select-HTio1oSE.js.map} +1 -1
  110. package/lib/SlotletProvider-CTgIBRWg.js +257 -0
  111. package/lib/SlotletProvider-CTgIBRWg.js.map +1 -0
  112. package/lib/SyntaxHighlight-UxOF1xNb.js +9107 -0
  113. package/lib/SyntaxHighlight-UxOF1xNb.js.map +1 -0
  114. package/lib/{Toc-BnN4zBb3.js → Toc-Ax54Pw8S.js} +3 -3
  115. package/lib/{Toc-BnN4zBb3.js.map → Toc-Ax54Pw8S.js.map} +1 -1
  116. package/lib/{chunk-BAXFHI7N-BLTsN6tl.js → chunk-BAXFHI7N-C9WnHsLV.js} +510 -517
  117. package/lib/{chunk-BAXFHI7N-BLTsN6tl.js.map → chunk-BAXFHI7N-C9WnHsLV.js.map} +1 -1
  118. package/lib/{circular-tOWjsgLZ.js → circular-CZaZtOBs.js} +1636 -1633
  119. package/lib/{circular-tOWjsgLZ.js.map → circular-CZaZtOBs.js.map} +1 -1
  120. package/lib/{cn-qaFjX9_3.js → cn-CwJPJKOE.js} +28 -29
  121. package/lib/{cn-qaFjX9_3.js.map → cn-CwJPJKOE.js.map} +1 -1
  122. package/lib/{createServer-XtO-PVox.js → createServer-DmqFeMgf.js} +3980 -3832
  123. package/lib/createServer-DmqFeMgf.js.map +1 -0
  124. package/lib/hook-BwOB_iZo.js +1442 -0
  125. package/lib/hook-BwOB_iZo.js.map +1 -0
  126. package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
  127. package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
  128. package/lib/index-BnT4-Efz.js +4975 -0
  129. package/lib/index-BnT4-Efz.js.map +1 -0
  130. package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
  131. package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
  132. package/lib/{index-CuBIgTKC.js → index-CrcNWbel.js} +9 -9
  133. package/lib/{index-CuBIgTKC.js.map → index-CrcNWbel.js.map} +1 -1
  134. package/lib/{index-CPNSgwSb.js → index-Z13x6tPX.js} +5 -5
  135. package/lib/{index-CPNSgwSb.js.map → index-Z13x6tPX.js.map} +1 -1
  136. package/lib/{index-CZnufgn5.js → index-sS7O9W-R.js} +899 -949
  137. package/lib/index-sS7O9W-R.js.map +1 -0
  138. package/lib/{index-DcHeSvkE.js → index-zddirpDj.js} +581 -609
  139. package/lib/{index-DcHeSvkE.js.map → index-zddirpDj.js.map} +1 -1
  140. package/lib/invariant-DAFpPywt.js +48 -0
  141. package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
  142. package/lib/mutation-CL2MCRQL.js +196 -0
  143. package/lib/{mutation-Bq5bn7Hf.js.map → mutation-CL2MCRQL.js.map} +1 -1
  144. package/lib/processors/removeParameters.js +27 -28
  145. package/lib/processors/removeParameters.js.map +1 -1
  146. package/lib/processors/removePaths.js +17 -17
  147. package/lib/processors/removePaths.js.map +1 -1
  148. package/lib/ui/Accordion.js +1 -1
  149. package/lib/ui/ActionButton.js +2 -2
  150. package/lib/ui/Alert.js +2 -2
  151. package/lib/ui/AlertDialog.js +1 -1
  152. package/lib/ui/Badge.js +2 -2
  153. package/lib/ui/Breadcrumb.js +1 -1
  154. package/lib/ui/Button.js +2 -2
  155. package/lib/ui/Callout.js +7 -7
  156. package/lib/ui/Callout.js.map +1 -1
  157. package/lib/ui/Card.js +1 -1
  158. package/lib/ui/Carousel.js +175 -175
  159. package/lib/ui/Carousel.js.map +1 -1
  160. package/lib/ui/Checkbox.js +1 -1
  161. package/lib/ui/CodeBlock.js +83 -0
  162. package/lib/ui/CodeBlock.js.map +1 -0
  163. package/lib/ui/Command.js +58 -58
  164. package/lib/ui/Command.js.map +1 -1
  165. package/lib/ui/Dialog.js +1 -1
  166. package/lib/ui/Drawer.js +2 -2
  167. package/lib/ui/DropdownMenu.js +1 -1
  168. package/lib/ui/Form.js +1 -1
  169. package/lib/ui/HoverCard.js +1 -1
  170. package/lib/ui/Input.js +1 -1
  171. package/lib/ui/Label.js +2 -2
  172. package/lib/ui/Pagination.js +1 -1
  173. package/lib/ui/Popover.js +1 -1
  174. package/lib/ui/Progress.js +1 -1
  175. package/lib/ui/RadioGroup.js +1 -1
  176. package/lib/ui/ScrollArea.js +1 -1
  177. package/lib/ui/Select.js +1 -1
  178. package/lib/ui/Skeleton.js +1 -1
  179. package/lib/ui/Slider.js +1 -1
  180. package/lib/ui/Switch.js +1 -1
  181. package/lib/ui/SyntaxHighlight.js +5 -6
  182. package/lib/ui/SyntaxHighlight.js.map +1 -1
  183. package/lib/ui/Tabs.js +1 -1
  184. package/lib/ui/Textarea.js +1 -1
  185. package/lib/ui/Toggle.js +2 -2
  186. package/lib/ui/ToggleGroup.js +1 -1
  187. package/lib/ui/Tooltip.js +1 -1
  188. package/lib/ui/util.js +1 -1
  189. package/lib/{useExposedProps-DmTJxEXG.js → useExposedProps-DG8J6ewJ.js} +2 -2
  190. package/lib/{useExposedProps-DmTJxEXG.js.map → useExposedProps-DG8J6ewJ.js.map} +1 -1
  191. package/lib/zudoku.auth-auth0.js +28 -31
  192. package/lib/zudoku.auth-auth0.js.map +1 -1
  193. package/lib/zudoku.auth-clerk.js +64 -70
  194. package/lib/zudoku.auth-clerk.js.map +1 -1
  195. package/lib/zudoku.auth-openid.js +373 -382
  196. package/lib/zudoku.auth-openid.js.map +1 -1
  197. package/lib/zudoku.components.js +7 -7
  198. package/lib/zudoku.hooks.js +2 -2
  199. package/lib/zudoku.plugin-api-catalog.js +45 -45
  200. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  201. package/lib/zudoku.plugin-api-keys.js +6 -6
  202. package/lib/zudoku.plugin-custom-pages.js +3 -3
  203. package/lib/zudoku.plugin-markdown.js +25 -28
  204. package/lib/zudoku.plugin-markdown.js.map +1 -1
  205. package/lib/zudoku.plugin-openapi.js +3 -3
  206. package/lib/zudoku.plugin-redirect.js +1 -1
  207. package/lib/zudoku.plugin-search-inkeep.js +26 -27
  208. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  209. package/lib/zudoku.plugin-search-pagefind.js +107 -110
  210. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  211. package/package.json +39 -29
  212. package/src/app/entry.client.tsx +40 -25
  213. package/src/app/main.css +54 -3
  214. package/src/app/main.tsx +8 -0
  215. package/src/lib/components/Footer.tsx +3 -6
  216. package/src/lib/components/Header.tsx +1 -1
  217. package/src/lib/components/Markdown.tsx +29 -24
  218. package/src/lib/components/context/ZudokuContext.ts +2 -3
  219. package/src/lib/core/ZudokuContext.ts +5 -0
  220. package/src/lib/errors/ErrorAlert.tsx +1 -1
  221. package/src/lib/oas/graphql/circular.ts +27 -19
  222. package/src/lib/oas/parser/index.ts +6 -1
  223. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -2
  224. package/src/lib/plugins/openapi/ParamInfos.tsx +3 -1
  225. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  226. package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
  227. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +22 -35
  228. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +5 -2
  229. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +23 -17
  230. package/src/lib/plugins/openapi/schema/utils.ts +18 -6
  231. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +6 -1
  232. package/src/lib/shiki.ts +133 -0
  233. package/src/lib/ui/Callout.tsx +1 -1
  234. package/src/lib/ui/CodeBlock.tsx +102 -0
  235. package/src/lib/ui/SyntaxHighlight.tsx +23 -182
  236. package/src/lib/util/MdxComponents.tsx +27 -14
  237. package/src/shiki/langs/abap.js +1 -0
  238. package/src/shiki/langs/actionscript-3.js +1 -0
  239. package/src/shiki/langs/ada.js +1 -0
  240. package/src/shiki/langs/angular-expression.js +1 -0
  241. package/src/shiki/langs/angular-html.js +1 -0
  242. package/src/shiki/langs/angular-inline-style.js +1 -0
  243. package/src/shiki/langs/angular-inline-template.js +1 -0
  244. package/src/shiki/langs/angular-let-declaration.js +1 -0
  245. package/src/shiki/langs/angular-template-blocks.js +1 -0
  246. package/src/shiki/langs/angular-template.js +1 -0
  247. package/src/shiki/langs/angular-ts.js +1 -0
  248. package/src/shiki/langs/apache.js +1 -0
  249. package/src/shiki/langs/apex.js +1 -0
  250. package/src/shiki/langs/apl.js +1 -0
  251. package/src/shiki/langs/applescript.js +1 -0
  252. package/src/shiki/langs/ara.js +1 -0
  253. package/src/shiki/langs/asciidoc.js +1 -0
  254. package/src/shiki/langs/asm.js +1 -0
  255. package/src/shiki/langs/astro.js +1 -0
  256. package/src/shiki/langs/awk.js +1 -0
  257. package/src/shiki/langs/ballerina.js +1 -0
  258. package/src/shiki/langs/bat.js +1 -0
  259. package/src/shiki/langs/beancount.js +1 -0
  260. package/src/shiki/langs/berry.js +1 -0
  261. package/src/shiki/langs/bibtex.js +1 -0
  262. package/src/shiki/langs/bicep.js +1 -0
  263. package/src/shiki/langs/blade.js +1 -0
  264. package/src/shiki/langs/bsl.js +1 -0
  265. package/src/shiki/langs/c.js +1 -0
  266. package/src/shiki/langs/cadence.js +1 -0
  267. package/src/shiki/langs/cairo.js +1 -0
  268. package/src/shiki/langs/clarity.js +1 -0
  269. package/src/shiki/langs/clojure.js +1 -0
  270. package/src/shiki/langs/cmake.js +1 -0
  271. package/src/shiki/langs/cobol.js +1 -0
  272. package/src/shiki/langs/codeowners.js +1 -0
  273. package/src/shiki/langs/codeql.js +1 -0
  274. package/src/shiki/langs/coffee.js +1 -0
  275. package/src/shiki/langs/common-lisp.js +1 -0
  276. package/src/shiki/langs/coq.js +1 -0
  277. package/src/shiki/langs/cpp-macro.js +1 -0
  278. package/src/shiki/langs/cpp.js +1 -0
  279. package/src/shiki/langs/crystal.js +1 -0
  280. package/src/shiki/langs/csharp.js +1 -0
  281. package/src/shiki/langs/css.js +1 -0
  282. package/src/shiki/langs/csv.js +1 -0
  283. package/src/shiki/langs/cue.js +1 -0
  284. package/src/shiki/langs/cypher.js +1 -0
  285. package/src/shiki/langs/d.js +1 -0
  286. package/src/shiki/langs/dart.js +1 -0
  287. package/src/shiki/langs/dax.js +1 -0
  288. package/src/shiki/langs/desktop.js +1 -0
  289. package/src/shiki/langs/diff.js +1 -0
  290. package/src/shiki/langs/docker.js +1 -0
  291. package/src/shiki/langs/dotenv.js +1 -0
  292. package/src/shiki/langs/dream-maker.js +1 -0
  293. package/src/shiki/langs/edge.js +1 -0
  294. package/src/shiki/langs/elixir.js +1 -0
  295. package/src/shiki/langs/elm.js +1 -0
  296. package/src/shiki/langs/emacs-lisp.js +1 -0
  297. package/src/shiki/langs/erb.js +1 -0
  298. package/src/shiki/langs/erlang.js +1 -0
  299. package/src/shiki/langs/es-tag-css.js +1 -0
  300. package/src/shiki/langs/es-tag-glsl.js +1 -0
  301. package/src/shiki/langs/es-tag-html.js +1 -0
  302. package/src/shiki/langs/es-tag-sql.js +1 -0
  303. package/src/shiki/langs/es-tag-xml.js +1 -0
  304. package/src/shiki/langs/fennel.js +1 -0
  305. package/src/shiki/langs/fish.js +1 -0
  306. package/src/shiki/langs/fluent.js +1 -0
  307. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  308. package/src/shiki/langs/fortran-free-form.js +1 -0
  309. package/src/shiki/langs/fsharp.js +1 -0
  310. package/src/shiki/langs/gdresource.js +1 -0
  311. package/src/shiki/langs/gdscript.js +1 -0
  312. package/src/shiki/langs/gdshader.js +1 -0
  313. package/src/shiki/langs/genie.js +1 -0
  314. package/src/shiki/langs/gherkin.js +1 -0
  315. package/src/shiki/langs/git-commit.js +1 -0
  316. package/src/shiki/langs/git-rebase.js +1 -0
  317. package/src/shiki/langs/gleam.js +1 -0
  318. package/src/shiki/langs/glimmer-js.js +1 -0
  319. package/src/shiki/langs/glimmer-ts.js +1 -0
  320. package/src/shiki/langs/glsl.js +1 -0
  321. package/src/shiki/langs/gnuplot.js +1 -0
  322. package/src/shiki/langs/go.js +1 -0
  323. package/src/shiki/langs/graphql.js +1 -0
  324. package/src/shiki/langs/groovy.js +1 -0
  325. package/src/shiki/langs/hack.js +1 -0
  326. package/src/shiki/langs/haml.js +1 -0
  327. package/src/shiki/langs/handlebars.js +1 -0
  328. package/src/shiki/langs/haskell.js +1 -0
  329. package/src/shiki/langs/haxe.js +1 -0
  330. package/src/shiki/langs/hcl.js +1 -0
  331. package/src/shiki/langs/hjson.js +1 -0
  332. package/src/shiki/langs/hlsl.js +1 -0
  333. package/src/shiki/langs/html-derivative.js +1 -0
  334. package/src/shiki/langs/html.js +1 -0
  335. package/src/shiki/langs/http.js +1 -0
  336. package/src/shiki/langs/hxml.js +1 -0
  337. package/src/shiki/langs/hy.js +1 -0
  338. package/src/shiki/langs/imba.js +1 -0
  339. package/src/shiki/langs/ini.js +1 -0
  340. package/src/shiki/langs/java.js +1 -0
  341. package/src/shiki/langs/javascript.js +1 -0
  342. package/src/shiki/langs/jinja-html.js +1 -0
  343. package/src/shiki/langs/jinja.js +1 -0
  344. package/src/shiki/langs/jison.js +1 -0
  345. package/src/shiki/langs/json.js +1 -0
  346. package/src/shiki/langs/json5.js +1 -0
  347. package/src/shiki/langs/jsonc.js +1 -0
  348. package/src/shiki/langs/jsonl.js +1 -0
  349. package/src/shiki/langs/jsonnet.js +1 -0
  350. package/src/shiki/langs/jssm.js +1 -0
  351. package/src/shiki/langs/jsx.js +1 -0
  352. package/src/shiki/langs/julia.js +1 -0
  353. package/src/shiki/langs/kotlin.js +1 -0
  354. package/src/shiki/langs/kusto.js +1 -0
  355. package/src/shiki/langs/latex.js +1 -0
  356. package/src/shiki/langs/lean.js +1 -0
  357. package/src/shiki/langs/less.js +1 -0
  358. package/src/shiki/langs/liquid.js +1 -0
  359. package/src/shiki/langs/llvm.js +1 -0
  360. package/src/shiki/langs/log.js +1 -0
  361. package/src/shiki/langs/logo.js +1 -0
  362. package/src/shiki/langs/lua.js +1 -0
  363. package/src/shiki/langs/luau.js +1 -0
  364. package/src/shiki/langs/make.js +1 -0
  365. package/src/shiki/langs/markdown-vue.js +1 -0
  366. package/src/shiki/langs/markdown.js +1 -0
  367. package/src/shiki/langs/marko.js +1 -0
  368. package/src/shiki/langs/matlab.js +1 -0
  369. package/src/shiki/langs/mdc.js +1 -0
  370. package/src/shiki/langs/mdx.js +1 -0
  371. package/src/shiki/langs/mermaid.js +1 -0
  372. package/src/shiki/langs/mipsasm.js +1 -0
  373. package/src/shiki/langs/mojo.js +1 -0
  374. package/src/shiki/langs/move.js +1 -0
  375. package/src/shiki/langs/narrat.js +1 -0
  376. package/src/shiki/langs/nextflow.js +1 -0
  377. package/src/shiki/langs/nginx.js +1 -0
  378. package/src/shiki/langs/nim.js +1 -0
  379. package/src/shiki/langs/nix.js +1 -0
  380. package/src/shiki/langs/nushell.js +1 -0
  381. package/src/shiki/langs/objective-c.js +1 -0
  382. package/src/shiki/langs/objective-cpp.js +1 -0
  383. package/src/shiki/langs/ocaml.js +1 -0
  384. package/src/shiki/langs/pascal.js +1 -0
  385. package/src/shiki/langs/perl.js +1 -0
  386. package/src/shiki/langs/php.js +1 -0
  387. package/src/shiki/langs/plsql.js +1 -0
  388. package/src/shiki/langs/po.js +1 -0
  389. package/src/shiki/langs/polar.js +1 -0
  390. package/src/shiki/langs/postcss.js +1 -0
  391. package/src/shiki/langs/powerquery.js +1 -0
  392. package/src/shiki/langs/powershell.js +1 -0
  393. package/src/shiki/langs/prisma.js +1 -0
  394. package/src/shiki/langs/prolog.js +1 -0
  395. package/src/shiki/langs/proto.js +1 -0
  396. package/src/shiki/langs/pug.js +1 -0
  397. package/src/shiki/langs/puppet.js +1 -0
  398. package/src/shiki/langs/purescript.js +1 -0
  399. package/src/shiki/langs/python.js +1 -0
  400. package/src/shiki/langs/qml.js +1 -0
  401. package/src/shiki/langs/qmldir.js +1 -0
  402. package/src/shiki/langs/qss.js +1 -0
  403. package/src/shiki/langs/r.js +1 -0
  404. package/src/shiki/langs/racket.js +1 -0
  405. package/src/shiki/langs/raku.js +1 -0
  406. package/src/shiki/langs/razor.js +1 -0
  407. package/src/shiki/langs/reg.js +1 -0
  408. package/src/shiki/langs/regexp.js +1 -0
  409. package/src/shiki/langs/rel.js +1 -0
  410. package/src/shiki/langs/riscv.js +1 -0
  411. package/src/shiki/langs/rst.js +1 -0
  412. package/src/shiki/langs/ruby.js +1 -0
  413. package/src/shiki/langs/rust.js +1 -0
  414. package/src/shiki/langs/sas.js +1 -0
  415. package/src/shiki/langs/sass.js +1 -0
  416. package/src/shiki/langs/scala.js +1 -0
  417. package/src/shiki/langs/scheme.js +1 -0
  418. package/src/shiki/langs/scss.js +1 -0
  419. package/src/shiki/langs/sdbl.js +1 -0
  420. package/src/shiki/langs/shaderlab.js +1 -0
  421. package/src/shiki/langs/shellscript.js +1 -0
  422. package/src/shiki/langs/shellsession.js +1 -0
  423. package/src/shiki/langs/smalltalk.js +1 -0
  424. package/src/shiki/langs/solidity.js +1 -0
  425. package/src/shiki/langs/soy.js +1 -0
  426. package/src/shiki/langs/sparql.js +1 -0
  427. package/src/shiki/langs/splunk.js +1 -0
  428. package/src/shiki/langs/sql.js +1 -0
  429. package/src/shiki/langs/ssh-config.js +1 -0
  430. package/src/shiki/langs/stata.js +1 -0
  431. package/src/shiki/langs/stylus.js +1 -0
  432. package/src/shiki/langs/svelte.js +1 -0
  433. package/src/shiki/langs/swift.js +1 -0
  434. package/src/shiki/langs/system-verilog.js +1 -0
  435. package/src/shiki/langs/systemd.js +1 -0
  436. package/src/shiki/langs/talonscript.js +1 -0
  437. package/src/shiki/langs/tasl.js +1 -0
  438. package/src/shiki/langs/tcl.js +1 -0
  439. package/src/shiki/langs/templ.js +1 -0
  440. package/src/shiki/langs/terraform.js +1 -0
  441. package/src/shiki/langs/tex.js +1 -0
  442. package/src/shiki/langs/toml.js +1 -0
  443. package/src/shiki/langs/ts-tags.js +1 -0
  444. package/src/shiki/langs/tsv.js +1 -0
  445. package/src/shiki/langs/tsx.js +1 -0
  446. package/src/shiki/langs/turtle.js +1 -0
  447. package/src/shiki/langs/twig.js +1 -0
  448. package/src/shiki/langs/typescript.js +1 -0
  449. package/src/shiki/langs/typespec.js +1 -0
  450. package/src/shiki/langs/typst.js +1 -0
  451. package/src/shiki/langs/v.js +1 -0
  452. package/src/shiki/langs/vala.js +1 -0
  453. package/src/shiki/langs/vb.js +1 -0
  454. package/src/shiki/langs/verilog.js +1 -0
  455. package/src/shiki/langs/vhdl.js +1 -0
  456. package/src/shiki/langs/viml.js +1 -0
  457. package/src/shiki/langs/vue-directives.js +1 -0
  458. package/src/shiki/langs/vue-html.js +1 -0
  459. package/src/shiki/langs/vue-interpolations.js +1 -0
  460. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  461. package/src/shiki/langs/vue.js +1 -0
  462. package/src/shiki/langs/vyper.js +1 -0
  463. package/src/shiki/langs/wasm.js +1 -0
  464. package/src/shiki/langs/wenyan.js +1 -0
  465. package/src/shiki/langs/wgsl.js +1 -0
  466. package/src/shiki/langs/wikitext.js +1 -0
  467. package/src/shiki/langs/wit.js +1 -0
  468. package/src/shiki/langs/wolfram.js +1 -0
  469. package/src/shiki/langs/xml.js +1 -0
  470. package/src/shiki/langs/xsl.js +1 -0
  471. package/src/shiki/langs/yaml.js +1 -0
  472. package/src/shiki/langs/zenscript.js +1 -0
  473. package/src/shiki/langs/zig.js +1 -0
  474. package/src/shiki/themes/andromeeda.js +1 -0
  475. package/src/shiki/themes/aurora-x.js +1 -0
  476. package/src/shiki/themes/ayu-dark.js +1 -0
  477. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  478. package/src/shiki/themes/catppuccin-latte.js +1 -0
  479. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  480. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  481. package/src/shiki/themes/dark-plus.js +1 -0
  482. package/src/shiki/themes/dracula-soft.js +1 -0
  483. package/src/shiki/themes/dracula.js +1 -0
  484. package/src/shiki/themes/everforest-dark.js +1 -0
  485. package/src/shiki/themes/everforest-light.js +1 -0
  486. package/src/shiki/themes/github-dark-default.js +1 -0
  487. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  488. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  489. package/src/shiki/themes/github-dark.js +1 -0
  490. package/src/shiki/themes/github-light-default.js +1 -0
  491. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  492. package/src/shiki/themes/github-light.js +1 -0
  493. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  494. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  495. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  496. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  497. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  498. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  499. package/src/shiki/themes/houston.js +1 -0
  500. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  501. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  502. package/src/shiki/themes/kanagawa-wave.js +1 -0
  503. package/src/shiki/themes/laserwave.js +1 -0
  504. package/src/shiki/themes/light-plus.js +1 -0
  505. package/src/shiki/themes/material-theme-darker.js +1 -0
  506. package/src/shiki/themes/material-theme-lighter.js +1 -0
  507. package/src/shiki/themes/material-theme-ocean.js +1 -0
  508. package/src/shiki/themes/material-theme-palenight.js +1 -0
  509. package/src/shiki/themes/material-theme.js +1 -0
  510. package/src/shiki/themes/min-dark.js +1 -0
  511. package/src/shiki/themes/min-light.js +1 -0
  512. package/src/shiki/themes/monokai.js +1 -0
  513. package/src/shiki/themes/night-owl.js +1 -0
  514. package/src/shiki/themes/nord.js +1 -0
  515. package/src/shiki/themes/one-dark-pro.js +1 -0
  516. package/src/shiki/themes/one-light.js +1 -0
  517. package/src/shiki/themes/plastic.js +1 -0
  518. package/src/shiki/themes/poimandres.js +1 -0
  519. package/src/shiki/themes/red.js +1 -0
  520. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  521. package/src/shiki/themes/rose-pine-moon.js +1 -0
  522. package/src/shiki/themes/rose-pine.js +1 -0
  523. package/src/shiki/themes/slack-dark.js +1 -0
  524. package/src/shiki/themes/slack-ochin.js +1 -0
  525. package/src/shiki/themes/snazzy-light.js +1 -0
  526. package/src/shiki/themes/solarized-dark.js +1 -0
  527. package/src/shiki/themes/solarized-light.js +1 -0
  528. package/src/shiki/themes/synthwave-84.js +1 -0
  529. package/src/shiki/themes/tokyo-night.js +1 -0
  530. package/src/shiki/themes/vesper.js +1 -0
  531. package/src/shiki/themes/vitesse-black.js +1 -0
  532. package/src/shiki/themes/vitesse-dark.js +1 -0
  533. package/src/shiki/themes/vitesse-light.js +1 -0
  534. package/lib/AuthenticationPlugin-BlJsiGuX.js +0 -99
  535. package/lib/Markdown-DvdVn1O7.js +0 -17128
  536. package/lib/Markdown-DvdVn1O7.js.map +0 -1
  537. package/lib/MdxPage-DlJaCSPf.js +0 -85
  538. package/lib/RouteGuard-D2gX29iI.js +0 -744
  539. package/lib/SchemaView-Bt95NiyQ.js.map +0 -1
  540. package/lib/Select-CYaEBIYK.js +0 -223
  541. package/lib/SlotletProvider-wWbHYqWf.js +0 -340
  542. package/lib/SlotletProvider-wWbHYqWf.js.map +0 -1
  543. package/lib/SyntaxHighlight-o7q0acut.js +0 -2890
  544. package/lib/SyntaxHighlight-o7q0acut.js.map +0 -1
  545. package/lib/_commonjsHelpers-B4e78b8K.js +0 -29
  546. package/lib/_commonjsHelpers-B4e78b8K.js.map +0 -1
  547. package/lib/createServer-XtO-PVox.js.map +0 -1
  548. package/lib/hook-8GM2HXNM.js +0 -1478
  549. package/lib/hook-8GM2HXNM.js.map +0 -1
  550. package/lib/index-CZnufgn5.js.map +0 -1
  551. package/lib/index-CzUOM_vE.js +0 -5039
  552. package/lib/index-CzUOM_vE.js.map +0 -1
  553. package/lib/invariant-Caa8-XvF.js +0 -26
  554. package/lib/mutation-Bq5bn7Hf.js +0 -211
  555. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  556. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  557. package/lib/prism-csharp.min-C43x1RY2.js +0 -63
  558. package/lib/prism-csharp.min-C43x1RY2.js.map +0 -1
  559. package/lib/prism-java.min-CQzr40NQ.js +0 -35
  560. package/lib/prism-java.min-CQzr40NQ.js.map +0 -1
  561. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  562. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  563. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  564. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  565. package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
  566. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
  567. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  568. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  569. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  570. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  571. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  572. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  573. package/lib/prism-ruby.min-L9OdQ6tU.js +0 -38
  574. package/lib/prism-ruby.min-L9OdQ6tU.js.map +0 -1
  575. package/lib/prism-typescript.min-qTySPvCh.js +0 -34
  576. package/lib/prism-typescript.min-qTySPvCh.js.map +0 -1
@@ -1,95 +1,84 @@
1
- var yn = Object.defineProperty;
2
- var ht = (e) => {
3
- throw TypeError(e);
4
- };
5
- var vn = (e, t, s) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
6
- var Y = (e, t, s) => vn(e, typeof t != "symbol" ? t + "" : t, s), bn = (e, t, s) => t.has(e) || ht("Cannot " + s);
7
- var Ne = (e, t, s) => (bn(e, t, "read from private field"), s ? s.call(e) : t.get(e)), Ce = (e, t, s) => t.has(e) ? ht("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s);
8
1
  import { j as n } from "./jsx-runtime-C5mzlN2N.js";
9
- import { ChevronRightIcon as te, CheckIcon as jn, DotIcon as Nn, Check as Cn, XIcon as Sn, Circle as wn, ChevronDownIcon as Tn, InfoIcon as ft, LogInIcon as An, CirclePlayIcon as On } from "lucide-react";
10
- import { r as $n, c as En, u as Pn, N as Ln, h as Rn, m as xt } from "./chunk-BAXFHI7N-BLTsN6tl.js";
11
- import { J as Lt, K as Rt, L as In, m as kn, M as Dn, f as I, d as qn, l as Vn } from "./hook-8GM2HXNM.js";
12
- import { Button as ne } from "./ui/Button.js";
13
- import { Z as Fn } from "./invariant-Caa8-XvF.js";
2
+ import { ChevronRightIcon as W, CheckIcon as ln, DotIcon as cn, Check as dn, XIcon as un, Circle as mn, ChevronDownIcon as pn, InfoIcon as nt, LogInIcon as hn, CirclePlayIcon as fn } from "lucide-react";
3
+ import { r as xn, c as gn, u as yn, N as vn, h as bn, m as st } from "./chunk-BAXFHI7N-C9WnHsLV.js";
4
+ import { J as vt, K as bt, L as jn, m as Nn, M as Cn, f as L, d as Sn, l as wn } from "./hook-BwOB_iZo.js";
5
+ import { Button as X } from "./ui/Button.js";
6
+ import { Z as Tn } from "./invariant-DAFpPywt.js";
14
7
  import * as S from "react";
15
- import { createContext as It, use as _n, Fragment as D, useRef as X, useEffect as le, useMemo as Bn, useState as L, useCallback as zn, useTransition as Mn, useContext as Gn } from "react";
16
- import { VisuallyHidden as Un } from "@radix-ui/react-visually-hidden";
17
- import { D as Be, a as ze, b as Me, d as kt, e as Dt, f as Hn } from "./Dialog-ByYz4ABw.js";
18
- import { S as Pe, a as Le, b as Re, c as Ie, e as ee, u as Qn } from "./Select-CYaEBIYK.js";
19
- import { b as Ge, u as Ue, C as q, a as Jn, F as Wn } from "./index.esm-D2ZUREQN.js";
20
- import { c as qt } from "./index-CPNSgwSb.js";
21
- import { c as b } from "./cn-qaFjX9_3.js";
22
- import { Tabs as Vt, TabsList as Ft, TabsTrigger as H, TabsContent as Q } from "./ui/Tabs.js";
23
- import { o as Xn } from "./objectEntries-yMIkr2mI.js";
24
- import { u as Zn } from "./useLatest-hmRS46UF.js";
25
- import { z as Yn } from "./index-DwT-v3zK.js";
26
- import { B as V } from "./Button-BBNrKpQd.js";
27
- import * as N from "@radix-ui/react-dropdown-menu";
28
- import { C as he } from "./Card-BtheiD7j.js";
29
- import * as ke from "@radix-ui/react-checkbox";
30
- import * as ce from "@radix-ui/react-popover";
31
- import { PopoverAnchor as Kn } from "@radix-ui/react-popover";
32
- import { P as es } from "./index-CuBIgTKC.js";
33
- import { g as ts, h as ns, C as ss, b as rs, f as as } from "./Callout-D3Ja4OPX.js";
34
- import { Input as He } from "./ui/Input.js";
35
- import { Slot as os } from "@radix-ui/react-slot";
36
- import * as _t from "@radix-ui/react-label";
37
- import * as se from "@radix-ui/react-radio-group";
38
- import { S as is } from "./Spinner-mNLZ6awP.js";
39
- import { Callout as ls } from "./ui/Callout.js";
40
- import { Card as Bt, CardHeader as cs, CardTitle as ds, CardContent as us } from "./ui/Card.js";
41
- import { Collapsible as gt, CollapsibleTrigger as yt, CollapsibleContent as vt } from "./ui/Collapsible.js";
42
- import * as Qe from "@radix-ui/react-collapsible";
43
- import { S as ms } from "./SyntaxHighlight-o7q0acut.js";
44
- let Se;
45
- const ps = (e) => {
46
- var t;
47
- if ((t = e.errors) != null && t[0])
48
- throw new Fn(e.errors[0].message, {
8
+ import { createContext as jt, use as An, Fragment as D, useRef as U, useEffect as re, useMemo as On, useState as P, useCallback as En, useTransition as Pn, useContext as $n } from "react";
9
+ import { VisuallyHidden as Ln } from "@radix-ui/react-visually-hidden";
10
+ import { D as Le, a as Re, b as Ie, d as Nt, e as Ct, f as Rn } from "./Dialog-CNf2oWXG.js";
11
+ import { S as Ne, a as Ce, b as Se, c as we, e as J, u as In } from "./Select-HTio1oSE.js";
12
+ import { b as ke, u as De, C as q, a as kn, F as Dn } from "./index.esm-D2ZUREQN.js";
13
+ import { c as St } from "./index-Z13x6tPX.js";
14
+ import { c as v } from "./cn-CwJPJKOE.js";
15
+ import { Tabs as wt, TabsList as Tt, TabsTrigger as z, TabsContent as M } from "./ui/Tabs.js";
16
+ import { o as qn } from "./objectEntries-yMIkr2mI.js";
17
+ import { u as Vn } from "./useLatest-hmRS46UF.js";
18
+ import { z as Fn } from "./index--oeBayMa.js";
19
+ import { B as V } from "./Button-Bdk_Ij3U.js";
20
+ import * as b from "@radix-ui/react-dropdown-menu";
21
+ import { C as ce } from "./Card-BlCYNw5W.js";
22
+ import * as Te from "@radix-ui/react-checkbox";
23
+ import * as ae from "@radix-ui/react-popover";
24
+ import { PopoverAnchor as _n } from "@radix-ui/react-popover";
25
+ import { P as Bn } from "./index-CrcNWbel.js";
26
+ import { g as zn, h as Mn, C as Gn, b as Un, f as Hn } from "./Callout-XadUe37J.js";
27
+ import { Input as qe } from "./ui/Input.js";
28
+ import { Slot as Qn } from "@radix-ui/react-slot";
29
+ import * as At from "@radix-ui/react-label";
30
+ import * as Z from "@radix-ui/react-radio-group";
31
+ import { S as Jn } from "./Spinner-mNLZ6awP.js";
32
+ import { Callout as Wn } from "./ui/Callout.js";
33
+ import { Card as Ot, CardHeader as Xn, CardTitle as Zn, CardContent as Yn } from "./ui/Card.js";
34
+ import { Collapsible as rt, CollapsibleTrigger as at, CollapsibleContent as ot } from "./ui/Collapsible.js";
35
+ import * as Ve from "@radix-ui/react-collapsible";
36
+ import { S as Kn } from "./SyntaxHighlight-UxOF1xNb.js";
37
+ let fe;
38
+ const es = (e) => {
39
+ if (e.errors?.[0])
40
+ throw new Tn(e.errors[0].message, {
49
41
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
50
42
  });
51
43
  };
52
- var me, pe;
53
- class hs {
44
+ class ts {
54
45
  constructor(t) {
55
- Ce(this, me, async () => (Se || (Se = import("./createServer-XtO-PVox.js").then(
56
- (t) => t.createServer(this.config)
57
- )), Se));
58
- Ce(this, pe, async (t) => this.config.server ? fetch(this.config.server, t) : (await Ne(this, me).call(this)).fetch("http://localhost/graphql", t));
59
- Y(this, "fetch", async (t, s) => {
60
- var i;
61
- const a = (i = t.match(/query (\w+)/)) == null ? void 0 : i[1], r = await Ne(this, pe).call(this, {
62
- method: "POST",
63
- body: JSON.stringify({ query: t, variables: s, operationName: a }),
64
- headers: { "Content-Type": "application/json" }
65
- });
66
- if (!r.ok)
67
- throw new Error("Network response was not ok");
68
- const o = await r.json();
69
- return ps(o), o.data;
70
- });
71
46
  this.config = t;
72
47
  }
48
+ #e = async () => (fe || (fe = import("./createServer-DmqFeMgf.js").then(
49
+ (t) => t.createServer(this.config)
50
+ )), fe);
51
+ #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
52
+ fetch = async (t, s) => {
53
+ const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
54
+ method: "POST",
55
+ body: JSON.stringify({ query: t, variables: s, operationName: a }),
56
+ headers: { "Content-Type": "application/json" }
57
+ });
58
+ if (!r.ok)
59
+ throw new Error("Network response was not ok");
60
+ const o = await r.json();
61
+ return es(o), o.data;
62
+ };
73
63
  }
74
- me = new WeakMap(), pe = new WeakMap();
75
- function we(e, t) {
64
+ function xe(e, t) {
76
65
  if (!!!e)
77
66
  throw new Error(t);
78
67
  }
79
- function fs(e) {
68
+ function ns(e) {
80
69
  return typeof e == "object" && e !== null;
81
70
  }
82
- function xs(e, t) {
71
+ function ss(e, t) {
83
72
  if (!!!e)
84
73
  throw new Error(
85
74
  t ?? "Unexpected invariant triggered."
86
75
  );
87
76
  }
88
- const gs = /\r\n|[\n\r]/g;
89
- function De(e, t) {
77
+ const rs = /\r\n|[\n\r]/g;
78
+ function Ae(e, t) {
90
79
  let s = 0, a = 1;
91
- for (const r of e.body.matchAll(gs)) {
92
- if (typeof r.index == "number" || xs(!1), r.index >= t)
80
+ for (const r of e.body.matchAll(rs)) {
81
+ if (typeof r.index == "number" || ss(!1), r.index >= t)
93
82
  break;
94
83
  s = r.index + r[0].length, a += 1;
95
84
  }
@@ -98,40 +87,40 @@ function De(e, t) {
98
87
  column: t + 1 - s
99
88
  };
100
89
  }
101
- function ys(e) {
102
- return zt(
90
+ function as(e) {
91
+ return Et(
103
92
  e.source,
104
- De(e.source, e.start)
93
+ Ae(e.source, e.start)
105
94
  );
106
95
  }
107
- function zt(e, t) {
96
+ function Et(e, t) {
108
97
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, c = t.line === 1 ? s : 0, l = t.column + c, u = `${e.name}:${i}:${l}
109
- `, m = a.split(/\r\n|[\n\r]/g), y = m[r];
98
+ `, p = a.split(/\r\n|[\n\r]/g), y = p[r];
110
99
  if (y.length > 120) {
111
- const x = Math.floor(l / 80), g = l % 80, f = [];
112
- for (let p = 0; p < y.length; p += 80)
113
- f.push(y.slice(p, p + 80));
114
- return u + bt([
115
- [`${i} |`, f[0]],
116
- ...f.slice(1, x + 1).map((p) => ["|", p]),
117
- ["|", "^".padStart(g)],
118
- ["|", f[x + 1]]
100
+ const f = Math.floor(l / 80), x = l % 80, m = [];
101
+ for (let g = 0; g < y.length; g += 80)
102
+ m.push(y.slice(g, g + 80));
103
+ return u + it([
104
+ [`${i} |`, m[0]],
105
+ ...m.slice(1, f + 1).map((g) => ["|", g]),
106
+ ["|", "^".padStart(x)],
107
+ ["|", m[f + 1]]
119
108
  ]);
120
109
  }
121
- return u + bt([
110
+ return u + it([
122
111
  // Lines specified like this: ["prefix", "string"],
123
- [`${i - 1} |`, m[r - 1]],
112
+ [`${i - 1} |`, p[r - 1]],
124
113
  [`${i} |`, y],
125
114
  ["|", "^".padStart(l)],
126
- [`${i + 1} |`, m[r + 1]]
115
+ [`${i + 1} |`, p[r + 1]]
127
116
  ]);
128
117
  }
129
- function bt(e) {
118
+ function it(e) {
130
119
  const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
131
120
  return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
132
121
  `);
133
122
  }
134
- function vs(e) {
123
+ function os(e) {
135
124
  const t = e[0];
136
125
  return t == null || "kind" in t || "length" in t ? {
137
126
  nodes: t,
@@ -142,7 +131,7 @@ function vs(e) {
142
131
  extensions: e[5]
143
132
  } : t;
144
133
  }
145
- class Je extends Error {
134
+ class Fe extends Error {
146
135
  /**
147
136
  * An array of `{ line, column }` locations within the source GraphQL document
148
137
  * which correspond to this error.
@@ -183,18 +172,18 @@ class Je extends Error {
183
172
  */
184
173
  constructor(t, ...s) {
185
174
  var a, r, o;
186
- const { nodes: i, source: c, positions: l, path: u, originalError: m, extensions: y } = vs(s);
187
- super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = m ?? void 0, this.nodes = jt(
175
+ const { nodes: i, source: c, positions: l, path: u, originalError: p, extensions: y } = os(s);
176
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = p ?? void 0, this.nodes = lt(
188
177
  Array.isArray(i) ? i : i ? [i] : void 0
189
178
  );
190
- const x = jt(
191
- (a = this.nodes) === null || a === void 0 ? void 0 : a.map((f) => f.loc).filter((f) => f != null)
179
+ const f = lt(
180
+ (a = this.nodes) === null || a === void 0 ? void 0 : a.map((m) => m.loc).filter((m) => m != null)
192
181
  );
193
- this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? (x == null ? void 0 : x.map((f) => f.start)), this.locations = l && c ? l.map((f) => De(c, f)) : x == null ? void 0 : x.map((f) => De(f.source, f.start));
194
- const g = fs(
195
- m == null ? void 0 : m.extensions
196
- ) ? m == null ? void 0 : m.extensions : void 0;
197
- this.extensions = (o = y ?? g) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
182
+ this.source = c ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? f?.map((m) => m.start), this.locations = l && c ? l.map((m) => Ae(c, m)) : f?.map((m) => Ae(m.source, m.start));
183
+ const x = ns(
184
+ p?.extensions
185
+ ) ? p?.extensions : void 0;
186
+ this.extensions = (o = y ?? x) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
198
187
  message: {
199
188
  writable: !0,
200
189
  enumerable: !0
@@ -214,11 +203,11 @@ class Je extends Error {
214
203
  originalError: {
215
204
  enumerable: !1
216
205
  }
217
- }), m != null && m.stack ? Object.defineProperty(this, "stack", {
218
- value: m.stack,
206
+ }), p != null && p.stack ? Object.defineProperty(this, "stack", {
207
+ value: p.stack,
219
208
  writable: !0,
220
209
  configurable: !0
221
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, Je) : Object.defineProperty(this, "stack", {
210
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Fe) : Object.defineProperty(this, "stack", {
222
211
  value: Error().stack,
223
212
  writable: !0,
224
213
  configurable: !0
@@ -233,12 +222,12 @@ class Je extends Error {
233
222
  for (const s of this.nodes)
234
223
  s.loc && (t += `
235
224
 
236
- ` + ys(s.loc));
225
+ ` + as(s.loc));
237
226
  else if (this.source && this.locations)
238
227
  for (const s of this.locations)
239
228
  t += `
240
229
 
241
- ` + zt(this.source, s);
230
+ ` + Et(this.source, s);
242
231
  return t;
243
232
  }
244
233
  toJSON() {
@@ -248,16 +237,16 @@ class Je extends Error {
248
237
  return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
249
238
  }
250
239
  }
251
- function jt(e) {
240
+ function lt(e) {
252
241
  return e === void 0 || e.length === 0 ? void 0 : e;
253
242
  }
254
- function $(e, t, s) {
255
- return new Je(`Syntax Error: ${s}`, {
243
+ function A(e, t, s) {
244
+ return new Fe(`Syntax Error: ${s}`, {
256
245
  source: e,
257
246
  positions: [t]
258
247
  });
259
248
  }
260
- class Sa {
249
+ class da {
261
250
  /**
262
251
  * The character offset at which this Node begins.
263
252
  */
@@ -286,7 +275,7 @@ class Sa {
286
275
  };
287
276
  }
288
277
  }
289
- class Mt {
278
+ class Pt {
290
279
  /**
291
280
  * The kind of Token.
292
281
  */
@@ -328,7 +317,7 @@ class Mt {
328
317
  };
329
318
  }
330
319
  }
331
- const bs = {
320
+ const is = {
332
321
  Name: [],
333
322
  Document: ["definitions"],
334
323
  OperationDefinition: [
@@ -402,37 +391,37 @@ const bs = {
402
391
  UnionTypeExtension: ["name", "directives", "types"],
403
392
  EnumTypeExtension: ["name", "directives", "values"],
404
393
  InputObjectTypeExtension: ["name", "directives", "fields"]
405
- }, js = new Set(Object.keys(bs));
406
- function wa(e) {
407
- const t = e == null ? void 0 : e.kind;
408
- return typeof t == "string" && js.has(t);
394
+ }, ls = new Set(Object.keys(is));
395
+ function ua(e) {
396
+ const t = e?.kind;
397
+ return typeof t == "string" && ls.has(t);
409
398
  }
410
- var Nt;
399
+ var ct;
411
400
  (function(e) {
412
401
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
413
- })(Nt || (Nt = {}));
414
- function qe(e) {
402
+ })(ct || (ct = {}));
403
+ function Oe(e) {
415
404
  return e === 9 || e === 32;
416
405
  }
417
- function re(e) {
406
+ function Y(e) {
418
407
  return e >= 48 && e <= 57;
419
408
  }
420
- function Gt(e) {
409
+ function $t(e) {
421
410
  return e >= 97 && e <= 122 || // A-Z
422
411
  e >= 65 && e <= 90;
423
412
  }
424
- function Ut(e) {
425
- return Gt(e) || e === 95;
413
+ function Lt(e) {
414
+ return $t(e) || e === 95;
426
415
  }
427
- function Ns(e) {
428
- return Gt(e) || re(e) || e === 95;
416
+ function cs(e) {
417
+ return $t(e) || Y(e) || e === 95;
429
418
  }
430
- function Cs(e) {
419
+ function ds(e) {
431
420
  var t;
432
421
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
433
422
  for (let i = 0; i < e.length; ++i) {
434
423
  var o;
435
- const c = e[i], l = Ss(c);
424
+ const c = e[i], l = us(c);
436
425
  l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
437
426
  }
438
427
  return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
@@ -440,26 +429,26 @@ function Cs(e) {
440
429
  r + 1
441
430
  );
442
431
  }
443
- function Ss(e) {
432
+ function us(e) {
444
433
  let t = 0;
445
- for (; t < e.length && qe(e.charCodeAt(t)); )
434
+ for (; t < e.length && Oe(e.charCodeAt(t)); )
446
435
  ++t;
447
436
  return t;
448
437
  }
449
- function ws(e, t) {
450
- 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((g) => g.length === 0 || qe(g.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, m = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
438
+ function ms(e, t) {
439
+ 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((x) => x.length === 0 || Oe(x.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, p = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
451
440
  (!r || e.length > 70 || u || o || i);
452
441
  let y = "";
453
- const x = r && qe(e.charCodeAt(0));
454
- return (m && !x || o) && (y += `
455
- `), y += s, (m || u) && (y += `
442
+ const f = r && Oe(e.charCodeAt(0));
443
+ return (p && !f || o) && (y += `
444
+ `), y += s, (p || u) && (y += `
456
445
  `), '"""' + y + '"""';
457
446
  }
458
447
  var h;
459
448
  (function(e) {
460
449
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
461
450
  })(h || (h = {}));
462
- class Ts {
451
+ class ps {
463
452
  /**
464
453
  * The previously focused non-ignored token.
465
454
  */
@@ -473,7 +462,7 @@ class Ts {
473
462
  * The character offset at which the current line begins.
474
463
  */
475
464
  constructor(t) {
476
- const s = new Mt(h.SOF, 0, 0, 0, 0);
465
+ const s = new Pt(h.SOF, 0, 0, 0, 0);
477
466
  this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
478
467
  }
479
468
  get [Symbol.toStringTag]() {
@@ -496,29 +485,29 @@ class Ts {
496
485
  if (t.next)
497
486
  t = t.next;
498
487
  else {
499
- const s = Os(this, t.end);
488
+ const s = fs(this, t.end);
500
489
  t.next = s, s.prev = t, t = s;
501
490
  }
502
491
  while (t.kind === h.COMMENT);
503
492
  return t;
504
493
  }
505
494
  }
506
- function As(e) {
495
+ function hs(e) {
507
496
  return e === h.BANG || e === h.DOLLAR || e === h.AMP || e === h.PAREN_L || e === h.PAREN_R || e === h.SPREAD || e === h.COLON || e === h.EQUALS || e === h.AT || e === h.BRACKET_L || e === h.BRACKET_R || e === h.BRACE_L || e === h.PIPE || e === h.BRACE_R;
508
497
  }
509
- function Z(e) {
498
+ function H(e) {
510
499
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
511
500
  }
512
- function fe(e, t) {
513
- return Ht(e.charCodeAt(t)) && Qt(e.charCodeAt(t + 1));
501
+ function de(e, t) {
502
+ return Rt(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
514
503
  }
515
- function Ht(e) {
504
+ function Rt(e) {
516
505
  return e >= 55296 && e <= 56319;
517
506
  }
518
- function Qt(e) {
507
+ function It(e) {
519
508
  return e >= 56320 && e <= 57343;
520
509
  }
521
- function B(e, t) {
510
+ function F(e, t) {
522
511
  const s = e.source.body.codePointAt(t);
523
512
  if (s === void 0)
524
513
  return h.EOF;
@@ -528,11 +517,11 @@ function B(e, t) {
528
517
  }
529
518
  return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
530
519
  }
531
- function C(e, t, s, a, r) {
520
+ function N(e, t, s, a, r) {
532
521
  const o = e.line, i = 1 + s - e.lineStart;
533
- return new Mt(t, s, a, o, i, r);
522
+ return new Pt(t, s, a, o, i, r);
534
523
  }
535
- function Os(e, t) {
524
+ function fs(e, t) {
536
525
  const s = e.source.body, a = s.length;
537
526
  let r = t;
538
527
  for (; r < a; ) {
@@ -573,7 +562,7 @@ function Os(e, t) {
573
562
  continue;
574
563
  // Comment
575
564
  case 35:
576
- return $s(e, r);
565
+ return xs(e, r);
577
566
  // Token ::
578
567
  // - Punctuator
579
568
  // - Name
@@ -583,66 +572,66 @@ function Os(e, t) {
583
572
  //
584
573
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
585
574
  case 33:
586
- return C(e, h.BANG, r, r + 1);
575
+ return N(e, h.BANG, r, r + 1);
587
576
  case 36:
588
- return C(e, h.DOLLAR, r, r + 1);
577
+ return N(e, h.DOLLAR, r, r + 1);
589
578
  case 38:
590
- return C(e, h.AMP, r, r + 1);
579
+ return N(e, h.AMP, r, r + 1);
591
580
  case 40:
592
- return C(e, h.PAREN_L, r, r + 1);
581
+ return N(e, h.PAREN_L, r, r + 1);
593
582
  case 41:
594
- return C(e, h.PAREN_R, r, r + 1);
583
+ return N(e, h.PAREN_R, r, r + 1);
595
584
  case 46:
596
585
  if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
597
- return C(e, h.SPREAD, r, r + 3);
586
+ return N(e, h.SPREAD, r, r + 3);
598
587
  break;
599
588
  case 58:
600
- return C(e, h.COLON, r, r + 1);
589
+ return N(e, h.COLON, r, r + 1);
601
590
  case 61:
602
- return C(e, h.EQUALS, r, r + 1);
591
+ return N(e, h.EQUALS, r, r + 1);
603
592
  case 64:
604
- return C(e, h.AT, r, r + 1);
593
+ return N(e, h.AT, r, r + 1);
605
594
  case 91:
606
- return C(e, h.BRACKET_L, r, r + 1);
595
+ return N(e, h.BRACKET_L, r, r + 1);
607
596
  case 93:
608
- return C(e, h.BRACKET_R, r, r + 1);
597
+ return N(e, h.BRACKET_R, r, r + 1);
609
598
  case 123:
610
- return C(e, h.BRACE_L, r, r + 1);
599
+ return N(e, h.BRACE_L, r, r + 1);
611
600
  case 124:
612
- return C(e, h.PIPE, r, r + 1);
601
+ return N(e, h.PIPE, r, r + 1);
613
602
  case 125:
614
- return C(e, h.BRACE_R, r, r + 1);
603
+ return N(e, h.BRACE_R, r, r + 1);
615
604
  // StringValue
616
605
  case 34:
617
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? ks(e, r) : Ps(e, r);
606
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ns(e, r) : ys(e, r);
618
607
  }
619
- if (re(o) || o === 45)
620
- return Es(e, r, o);
621
- if (Ut(o))
622
- return Ds(e, r);
623
- throw $(
608
+ if (Y(o) || o === 45)
609
+ return gs(e, r, o);
610
+ if (Lt(o))
611
+ return Cs(e, r);
612
+ throw A(
624
613
  e.source,
625
614
  r,
626
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(o) || fe(s, r) ? `Unexpected character: ${B(e, r)}.` : `Invalid character: ${B(e, r)}.`
615
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : H(o) || de(s, r) ? `Unexpected character: ${F(e, r)}.` : `Invalid character: ${F(e, r)}.`
627
616
  );
628
617
  }
629
- return C(e, h.EOF, a, a);
618
+ return N(e, h.EOF, a, a);
630
619
  }
631
- function $s(e, t) {
620
+ function xs(e, t) {
632
621
  const s = e.source.body, a = s.length;
633
622
  let r = t + 1;
634
623
  for (; r < a; ) {
635
624
  const o = s.charCodeAt(r);
636
625
  if (o === 10 || o === 13)
637
626
  break;
638
- if (Z(o))
627
+ if (H(o))
639
628
  ++r;
640
- else if (fe(s, r))
629
+ else if (de(s, r))
641
630
  r += 2;
642
631
  else
643
632
  break;
644
633
  }
645
- return C(
634
+ return N(
646
635
  e,
647
636
  h.COMMENT,
648
637
  t,
@@ -650,31 +639,31 @@ function $s(e, t) {
650
639
  s.slice(t + 1, r)
651
640
  );
652
641
  }
653
- function Es(e, t, s) {
642
+ function gs(e, t, s) {
654
643
  const a = e.source.body;
655
644
  let r = t, o = s, i = !1;
656
645
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
657
- if (o = a.charCodeAt(++r), re(o))
658
- throw $(
646
+ if (o = a.charCodeAt(++r), Y(o))
647
+ throw A(
659
648
  e.source,
660
649
  r,
661
- `Invalid number, unexpected digit after 0: ${B(
650
+ `Invalid number, unexpected digit after 0: ${F(
662
651
  e,
663
652
  r
664
653
  )}.`
665
654
  );
666
655
  } else
667
- r = Te(e, r, o), o = a.charCodeAt(r);
668
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Te(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 = Te(e, r, o), o = a.charCodeAt(r)), o === 46 || Ut(o))
669
- throw $(
656
+ r = ge(e, r, o), o = a.charCodeAt(r);
657
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = ge(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 = ge(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
658
+ throw A(
670
659
  e.source,
671
660
  r,
672
- `Invalid number, expected digit but got: ${B(
661
+ `Invalid number, expected digit but got: ${F(
673
662
  e,
674
663
  r
675
664
  )}.`
676
665
  );
677
- return C(
666
+ return N(
678
667
  e,
679
668
  i ? h.FLOAT : h.INT,
680
669
  t,
@@ -682,70 +671,70 @@ function Es(e, t, s) {
682
671
  a.slice(t, r)
683
672
  );
684
673
  }
685
- function Te(e, t, s) {
686
- if (!re(s))
687
- throw $(
674
+ function ge(e, t, s) {
675
+ if (!Y(s))
676
+ throw A(
688
677
  e.source,
689
678
  t,
690
- `Invalid number, expected digit but got: ${B(
679
+ `Invalid number, expected digit but got: ${F(
691
680
  e,
692
681
  t
693
682
  )}.`
694
683
  );
695
684
  const a = e.source.body;
696
685
  let r = t + 1;
697
- for (; re(a.charCodeAt(r)); )
686
+ for (; Y(a.charCodeAt(r)); )
698
687
  ++r;
699
688
  return r;
700
689
  }
701
- function Ps(e, t) {
690
+ function ys(e, t) {
702
691
  const s = e.source.body, a = s.length;
703
692
  let r = t + 1, o = r, i = "";
704
693
  for (; r < a; ) {
705
694
  const c = s.charCodeAt(r);
706
695
  if (c === 34)
707
- return i += s.slice(o, r), C(e, h.STRING, t, r + 1, i);
696
+ return i += s.slice(o, r), N(e, h.STRING, t, r + 1, i);
708
697
  if (c === 92) {
709
698
  i += s.slice(o, r);
710
- const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Ls(e, r) : Rs(e, r) : Is(e, r);
699
+ const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? vs(e, r) : bs(e, r) : js(e, r);
711
700
  i += l.value, r += l.size, o = r;
712
701
  continue;
713
702
  }
714
703
  if (c === 10 || c === 13)
715
704
  break;
716
- if (Z(c))
705
+ if (H(c))
717
706
  ++r;
718
- else if (fe(s, r))
707
+ else if (de(s, r))
719
708
  r += 2;
720
709
  else
721
- throw $(
710
+ throw A(
722
711
  e.source,
723
712
  r,
724
- `Invalid character within String: ${B(
713
+ `Invalid character within String: ${F(
725
714
  e,
726
715
  r
727
716
  )}.`
728
717
  );
729
718
  }
730
- throw $(e.source, r, "Unterminated string.");
719
+ throw A(e.source, r, "Unterminated string.");
731
720
  }
732
- function Ls(e, t) {
721
+ function vs(e, t) {
733
722
  const s = e.source.body;
734
723
  let a = 0, r = 3;
735
724
  for (; r < 12; ) {
736
725
  const o = s.charCodeAt(t + r++);
737
726
  if (o === 125) {
738
- if (r < 5 || !Z(a))
727
+ if (r < 5 || !H(a))
739
728
  break;
740
729
  return {
741
730
  value: String.fromCodePoint(a),
742
731
  size: r
743
732
  };
744
733
  }
745
- if (a = a << 4 | K(o), a < 0)
734
+ if (a = a << 4 | Q(o), a < 0)
746
735
  break;
747
736
  }
748
- throw $(
737
+ throw A(
749
738
  e.source,
750
739
  t,
751
740
  `Invalid Unicode escape sequence: "${s.slice(
@@ -754,34 +743,34 @@ function Ls(e, t) {
754
743
  )}".`
755
744
  );
756
745
  }
757
- function Rs(e, t) {
758
- const s = e.source.body, a = Ct(s, t + 2);
759
- if (Z(a))
746
+ function bs(e, t) {
747
+ const s = e.source.body, a = dt(s, t + 2);
748
+ if (H(a))
760
749
  return {
761
750
  value: String.fromCodePoint(a),
762
751
  size: 6
763
752
  };
764
- if (Ht(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
765
- const r = Ct(s, t + 8);
766
- if (Qt(r))
753
+ if (Rt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
754
+ const r = dt(s, t + 8);
755
+ if (It(r))
767
756
  return {
768
757
  value: String.fromCodePoint(a, r),
769
758
  size: 12
770
759
  };
771
760
  }
772
- throw $(
761
+ throw A(
773
762
  e.source,
774
763
  t,
775
764
  `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
776
765
  );
777
766
  }
778
- function Ct(e, t) {
779
- return K(e.charCodeAt(t)) << 12 | K(e.charCodeAt(t + 1)) << 8 | K(e.charCodeAt(t + 2)) << 4 | K(e.charCodeAt(t + 3));
767
+ function dt(e, t) {
768
+ return Q(e.charCodeAt(t)) << 12 | Q(e.charCodeAt(t + 1)) << 8 | Q(e.charCodeAt(t + 2)) << 4 | Q(e.charCodeAt(t + 3));
780
769
  }
781
- function K(e) {
770
+ function Q(e) {
782
771
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
783
772
  }
784
- function Is(e, t) {
773
+ function js(e, t) {
785
774
  const s = e.source.body;
786
775
  switch (s.charCodeAt(t + 1)) {
787
776
  case 34:
@@ -826,7 +815,7 @@ function Is(e, t) {
826
815
  size: 2
827
816
  };
828
817
  }
829
- throw $(
818
+ throw A(
830
819
  e.source,
831
820
  t,
832
821
  `Invalid character escape sequence: "${s.slice(
@@ -835,7 +824,7 @@ function Is(e, t) {
835
824
  )}".`
836
825
  );
837
826
  }
838
- function ks(e, t) {
827
+ function Ns(e, t) {
839
828
  const s = e.source.body, a = s.length;
840
829
  let r = e.lineStart, o = t + 3, i = o, c = "";
841
830
  const l = [];
@@ -843,16 +832,16 @@ function ks(e, t) {
843
832
  const u = s.charCodeAt(o);
844
833
  if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
845
834
  c += s.slice(i, o), l.push(c);
846
- const m = C(
835
+ const p = N(
847
836
  e,
848
837
  h.BLOCK_STRING,
849
838
  t,
850
839
  o + 3,
851
840
  // Return a string of the lines joined with U+000A.
852
- Cs(l).join(`
841
+ ds(l).join(`
853
842
  `)
854
843
  );
855
- return e.line += l.length - 1, e.lineStart = r, m;
844
+ return e.line += l.length - 1, e.lineStart = r, p;
856
845
  }
857
846
  if (u === 92 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34 && s.charCodeAt(o + 3) === 34) {
858
847
  c += s.slice(i, o), i = o + 1, o += 4;
@@ -862,33 +851,33 @@ function ks(e, t) {
862
851
  c += s.slice(i, o), l.push(c), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
863
852
  continue;
864
853
  }
865
- if (Z(u))
854
+ if (H(u))
866
855
  ++o;
867
- else if (fe(s, o))
856
+ else if (de(s, o))
868
857
  o += 2;
869
858
  else
870
- throw $(
859
+ throw A(
871
860
  e.source,
872
861
  o,
873
- `Invalid character within String: ${B(
862
+ `Invalid character within String: ${F(
874
863
  e,
875
864
  o
876
865
  )}.`
877
866
  );
878
867
  }
879
- throw $(e.source, o, "Unterminated string.");
868
+ throw A(e.source, o, "Unterminated string.");
880
869
  }
881
- function Ds(e, t) {
870
+ function Cs(e, t) {
882
871
  const s = e.source.body, a = s.length;
883
872
  let r = t + 1;
884
873
  for (; r < a; ) {
885
874
  const o = s.charCodeAt(r);
886
- if (Ns(o))
875
+ if (cs(o))
887
876
  ++r;
888
877
  else
889
878
  break;
890
879
  }
891
- return C(
880
+ return N(
892
881
  e,
893
882
  h.NAME,
894
883
  t,
@@ -896,56 +885,56 @@ function Ds(e, t) {
896
885
  s.slice(t, r)
897
886
  );
898
887
  }
899
- const qs = 10, Jt = 2;
900
- function Wt(e) {
901
- return xe(e, []);
888
+ const Ss = 10, kt = 2;
889
+ function Dt(e) {
890
+ return ue(e, []);
902
891
  }
903
- function xe(e, t) {
892
+ function ue(e, t) {
904
893
  switch (typeof e) {
905
894
  case "string":
906
895
  return JSON.stringify(e);
907
896
  case "function":
908
897
  return e.name ? `[function ${e.name}]` : "[function]";
909
898
  case "object":
910
- return Vs(e, t);
899
+ return ws(e, t);
911
900
  default:
912
901
  return String(e);
913
902
  }
914
903
  }
915
- function Vs(e, t) {
904
+ function ws(e, t) {
916
905
  if (e === null)
917
906
  return "null";
918
907
  if (t.includes(e))
919
908
  return "[Circular]";
920
909
  const s = [...t, e];
921
- if (Fs(e)) {
910
+ if (Ts(e)) {
922
911
  const a = e.toJSON();
923
912
  if (a !== e)
924
- return typeof a == "string" ? a : xe(a, s);
913
+ return typeof a == "string" ? a : ue(a, s);
925
914
  } else if (Array.isArray(e))
926
- return Bs(e, s);
927
- return _s(e, s);
915
+ return Os(e, s);
916
+ return As(e, s);
928
917
  }
929
- function Fs(e) {
918
+ function Ts(e) {
930
919
  return typeof e.toJSON == "function";
931
920
  }
932
- function _s(e, t) {
921
+ function As(e, t) {
933
922
  const s = Object.entries(e);
934
- return s.length === 0 ? "{}" : t.length > Jt ? "[" + zs(e) + "]" : "{ " + s.map(
935
- ([r, o]) => r + ": " + xe(o, t)
923
+ return s.length === 0 ? "{}" : t.length > kt ? "[" + Es(e) + "]" : "{ " + s.map(
924
+ ([r, o]) => r + ": " + ue(o, t)
936
925
  ).join(", ") + " }";
937
926
  }
938
- function Bs(e, t) {
927
+ function Os(e, t) {
939
928
  if (e.length === 0)
940
929
  return "[]";
941
- if (t.length > Jt)
930
+ if (t.length > kt)
942
931
  return "[Array]";
943
- const s = Math.min(qs, e.length), a = e.length - s, r = [];
932
+ const s = Math.min(Ss, e.length), a = e.length - s, r = [];
944
933
  for (let o = 0; o < s; ++o)
945
- r.push(xe(e[o], t));
934
+ r.push(ue(e[o], t));
946
935
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
947
936
  }
948
- function zs(e) {
937
+ function Es(e) {
949
938
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
950
939
  if (t === "Object" && typeof e.constructor == "function") {
951
940
  const s = e.constructor.name;
@@ -954,11 +943,11 @@ function zs(e) {
954
943
  }
955
944
  return t;
956
945
  }
957
- const Ms = globalThis.process && // eslint-disable-next-line no-undef
958
- process.env.NODE_ENV === "production", Gs = (
946
+ const Ps = globalThis.process && // eslint-disable-next-line no-undef
947
+ process.env.NODE_ENV === "production", $s = (
959
948
  /* c8 ignore next 6 */
960
949
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
961
- Ms ? function(t, s) {
950
+ Ps ? function(t, s) {
962
951
  return t instanceof s;
963
952
  } : function(t, s) {
964
953
  if (t instanceof s)
@@ -970,7 +959,7 @@ process.env.NODE_ENV === "production", Gs = (
970
959
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
971
960
  );
972
961
  if (r === o) {
973
- const i = Wt(t);
962
+ const i = Dt(t);
974
963
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
975
964
 
976
965
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -988,15 +977,15 @@ spurious results.`);
988
977
  return !1;
989
978
  }
990
979
  );
991
- class Xt {
980
+ class qt {
992
981
  constructor(t, s = "GraphQL request", a = {
993
982
  line: 1,
994
983
  column: 1
995
984
  }) {
996
- typeof t == "string" || we(!1, `Body must be a string. Received: ${Wt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || we(
985
+ typeof t == "string" || xe(!1, `Body must be a string. Received: ${Dt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || xe(
997
986
  !1,
998
987
  "line in locationOffset is 1-indexed and must be positive."
999
- ), this.locationOffset.column > 0 || we(
988
+ ), this.locationOffset.column > 0 || xe(
1000
989
  !1,
1001
990
  "column in locationOffset is 1-indexed and must be positive."
1002
991
  );
@@ -1005,49 +994,48 @@ class Xt {
1005
994
  return "Source";
1006
995
  }
1007
996
  }
1008
- function Us(e) {
1009
- return Gs(e, Xt);
997
+ function Ls(e) {
998
+ return $s(e, qt);
1010
999
  }
1011
- function Hs(e) {
1012
- const t = Us(e) ? e : new Xt(e), s = t.body, a = new Ts(t);
1000
+ function Rs(e) {
1001
+ const t = Ls(e) ? e : new qt(e), s = t.body, a = new ps(t);
1013
1002
  let r = "", o = !1;
1014
1003
  for (; a.advance().kind !== h.EOF; ) {
1015
- const i = a.token, c = i.kind, l = !As(i.kind);
1004
+ const i = a.token, c = i.kind, l = !hs(i.kind);
1016
1005
  o && (l || i.kind === h.SPREAD) && (r += " ");
1017
1006
  const u = s.slice(i.start, i.end);
1018
- c === h.BLOCK_STRING ? r += ws(i.value, {
1007
+ c === h.BLOCK_STRING ? r += ms(i.value, {
1019
1008
  minimize: !0
1020
1009
  }) : r += u, o = l;
1021
1010
  }
1022
1011
  return r;
1023
1012
  }
1024
- const Zt = It(
1013
+ const Vt = jt(
1025
1014
  void 0
1026
- ), Ta = ({
1015
+ ), ma = ({
1027
1016
  children: e,
1028
1017
  client: t
1029
- }) => /* @__PURE__ */ n.jsx(Zt.Provider, { value: t, children: e }), Yt = (e, t, ...[s]) => ({
1018
+ }) => /* @__PURE__ */ n.jsx(Vt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1030
1019
  queryFn: () => e.fetch(t, s),
1031
- queryKey: [Hs(t.toString()), s]
1032
- }), Qs = (e, ...[t]) => {
1033
- const s = _n(Zt);
1020
+ queryKey: [Rs(t.toString()), s]
1021
+ }), Is = (e, ...[t]) => {
1022
+ const s = An(Vt);
1034
1023
  if (s === void 0)
1035
1024
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1036
- return Yt(s, e, ...t === void 0 ? [] : [t]);
1025
+ return Ft(s, e, ...t === void 0 ? [] : [t]);
1037
1026
  };
1038
- class z extends String {
1039
- constructor(s, a) {
1040
- super(s);
1041
- Y(this, "__apiType");
1042
- Y(this, "value");
1043
- Y(this, "__meta__");
1044
- this.value = s, this.__meta__ = a;
1027
+ class _ extends String {
1028
+ __apiType;
1029
+ value;
1030
+ __meta__;
1031
+ constructor(t, s) {
1032
+ super(t), this.value = t, this.__meta__ = s;
1045
1033
  }
1046
1034
  toString() {
1047
1035
  return this.value;
1048
1036
  }
1049
1037
  }
1050
- const Js = new z(
1038
+ const ks = new _(
1051
1039
  `
1052
1040
  fragment OperationsFragment on OperationItem {
1053
1041
  slug
@@ -1115,7 +1103,7 @@ const Js = new z(
1115
1103
  }
1116
1104
  `,
1117
1105
  { fragmentName: "OperationsFragment" }
1118
- ), Ws = new z(`
1106
+ ), Ds = new _(`
1119
1107
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1120
1108
  schema(input: $input, type: $type) {
1121
1109
  url
@@ -1124,13 +1112,13 @@ const Js = new z(
1124
1112
  }
1125
1113
  }
1126
1114
  }
1127
- `), Xs = new z(`
1115
+ `), qs = new _(`
1128
1116
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1129
1117
  schema(input: $input, type: $type) {
1130
1118
  openapi
1131
1119
  }
1132
1120
  }
1133
- `), Zs = new z(`
1121
+ `), Vs = new _(`
1134
1122
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1135
1123
  schema(input: $input, type: $type) {
1136
1124
  servers {
@@ -1222,7 +1210,7 @@ const Js = new z(
1222
1210
  schema
1223
1211
  }
1224
1212
  }
1225
- }`), Ys = new z(`
1213
+ }`), Fs = new _(`
1226
1214
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1227
1215
  schema(input: $input, type: $type) {
1228
1216
  title
@@ -1237,7 +1225,7 @@ const Js = new z(
1237
1225
  }
1238
1226
  }
1239
1227
  }
1240
- `), Ks = new z(`
1228
+ `), _s = new _(`
1241
1229
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1242
1230
  schema(input: $input, type: $type) {
1243
1231
  url
@@ -1246,7 +1234,7 @@ const Js = new z(
1246
1234
  }
1247
1235
  }
1248
1236
  }
1249
- `), er = new z(`
1237
+ `), Bs = new _(`
1250
1238
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
1251
1239
  schema(input: $input, type: $type) {
1252
1240
  tags {
@@ -1268,19 +1256,19 @@ const Js = new z(
1268
1256
  }
1269
1257
  }
1270
1258
  }
1271
- `), tr = {
1272
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ws,
1273
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\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": Js,
1274
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Xs,
1275
- "\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 next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": Zs,
1276
- "\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": Ys,
1277
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ks,
1278
- "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\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": er
1259
+ `), zs = {
1260
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ds,
1261
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\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": ks,
1262
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": qs,
1263
+ "\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 next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": Vs,
1264
+ "\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": Fs,
1265
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": _s,
1266
+ "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\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": Bs
1279
1267
  };
1280
- function nr(e) {
1281
- return tr[e] ?? {};
1268
+ function Ms(e) {
1269
+ return zs[e] ?? {};
1282
1270
  }
1283
- const sr = qt(
1271
+ const Gs = St(
1284
1272
  "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1285
1273
  {
1286
1274
  variants: {
@@ -1293,35 +1281,35 @@ const sr = qt(
1293
1281
  variant: "default"
1294
1282
  }
1295
1283
  }
1296
- ), Ve = S.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1284
+ ), Ee = S.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1297
1285
  "div",
1298
1286
  {
1299
1287
  ref: a,
1300
1288
  role: "alert",
1301
- className: b(sr({ variant: t }), e),
1289
+ className: v(Gs({ variant: t }), e),
1302
1290
  ...s
1303
1291
  }
1304
1292
  ));
1305
- Ve.displayName = "Alert";
1306
- const Fe = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1293
+ Ee.displayName = "Alert";
1294
+ const Pe = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1307
1295
  "h5",
1308
1296
  {
1309
1297
  ref: s,
1310
- className: b("mb-1 font-medium leading-none tracking-tight", e),
1298
+ className: v("mb-1 font-medium leading-none tracking-tight", e),
1311
1299
  ...t
1312
1300
  }
1313
1301
  ));
1314
- Fe.displayName = "AlertTitle";
1315
- const _e = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1302
+ Pe.displayName = "AlertTitle";
1303
+ const $e = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1316
1304
  "div",
1317
1305
  {
1318
1306
  ref: s,
1319
- className: b("text-sm [&_p]:leading-relaxed", e),
1307
+ className: v("text-sm [&_p]:leading-relaxed", e),
1320
1308
  ...t
1321
1309
  }
1322
1310
  ));
1323
- _e.displayName = "AlertDescription";
1324
- const rr = ({
1311
+ $e.displayName = "AlertDescription";
1312
+ const Us = ({
1325
1313
  path: e,
1326
1314
  renderParam: t
1327
1315
  }) => {
@@ -1330,14 +1318,14 @@ const rr = ({
1330
1318
  const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
1331
1319
  let l = 0;
1332
1320
  return i.forEach((u) => {
1333
- const [m, y] = u;
1321
+ const [p, y] = u;
1334
1322
  if (!y) return;
1335
- const x = u.index;
1336
- x > l && c.push(
1337
- /* @__PURE__ */ n.jsx(D, { children: a.slice(l, x) }, `text-${l}-${x}`)
1323
+ const f = u.index;
1324
+ f > l && c.push(
1325
+ /* @__PURE__ */ n.jsx(D, { children: a.slice(l, f) }, `text-${l}-${f}`)
1338
1326
  ), c.push(
1339
- /* @__PURE__ */ n.jsx(D, { children: t({ name: y, originalValue: m, index: s++ }) }, `param-${y}`)
1340
- ), l = x + m.length;
1327
+ /* @__PURE__ */ n.jsx(D, { children: t({ name: y, originalValue: p, index: s++ }) }, `param-${y}`)
1328
+ ), l = f + p.length;
1341
1329
  }), l < a.length && c.push(
1342
1330
  /* @__PURE__ */ n.jsx(D, { children: a.slice(l) }, `text-${l}-${a.length}`)
1343
1331
  ), // eslint-disable-next-line react/no-array-index-key
@@ -1347,11 +1335,11 @@ const rr = ({
1347
1335
  /* @__PURE__ */ n.jsx("wbr", {})
1348
1336
  ] }, `${a}-${r}`);
1349
1337
  });
1350
- }, Kt = S.forwardRef(
1338
+ }, _t = S.forwardRef(
1351
1339
  ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1352
1340
  "textarea",
1353
1341
  {
1354
- className: b(
1342
+ className: v(
1355
1343
  "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-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1356
1344
  e
1357
1345
  ),
@@ -1360,25 +1348,25 @@ const rr = ({
1360
1348
  }
1361
1349
  )
1362
1350
  );
1363
- Kt.displayName = "Textarea";
1364
- const Ae = (e) => Math.abs(
1351
+ _t.displayName = "Textarea";
1352
+ const ye = (e) => Math.abs(
1365
1353
  isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
1366
- ), Oe = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${Ae(t) + Ae(s)}`)) : Ae(e), St = (e, t = {}) => {
1367
- const s = (3 * Oe(e) + 2 * Oe(e) + Oe(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1354
+ ), ve = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${ye(t) + ye(s)}`)) : ye(e), ut = (e, t = {}) => {
1355
+ const s = (3 * ve(e) + 2 * ve(e) + ve(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1368
1356
  return `${s}deg ${a}% ${r}%`;
1369
- }, $e = "data-linked-param", ar = (e) => {
1370
- const { resolvedTheme: t } = Yn();
1357
+ }, be = "data-linked-param", Hs = (e) => {
1358
+ const { resolvedTheme: t } = Fn();
1371
1359
  return {
1372
- text: St(
1360
+ text: ut(
1373
1361
  e,
1374
1362
  t === "light" ? { saturation: 95, lightness: 38 } : {}
1375
1363
  ),
1376
- background: St(
1364
+ background: ut(
1377
1365
  e,
1378
1366
  t === "light" ? { saturation: 85, lightness: 40 } : {}
1379
1367
  )
1380
1368
  };
1381
- }, en = ({
1369
+ }, Bt = ({
1382
1370
  name: e,
1383
1371
  className: t,
1384
1372
  slug: s,
@@ -1386,26 +1374,26 @@ const Ae = (e) => Math.abs(
1386
1374
  children: r,
1387
1375
  onClick: o
1388
1376
  }) => {
1389
- const i = X(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: m } = ar(l), y = `hsl(${u} / 100%)`, x = `hsl(${m} / 10%)`, g = `hsl(${m} / 50%)`;
1390
- return le(() => {
1377
+ const i = U(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: p } = Hs(l), y = `hsl(${u} / 100%)`, f = `hsl(${p} / 10%)`, x = `hsl(${p} / 50%)`;
1378
+ return re(() => {
1391
1379
  if (!c || !i.current) return;
1392
- const f = () => {
1393
- document.querySelectorAll(`[${$e}="${c}"]`).forEach((j) => {
1380
+ const m = () => {
1381
+ document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
1394
1382
  j instanceof HTMLElement && (j.dataset.active = "true");
1395
1383
  });
1396
- }, p = () => {
1397
- document.querySelectorAll(`[${$e}="${c}"]`).forEach((j) => {
1384
+ }, g = () => {
1385
+ document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
1398
1386
  j instanceof HTMLElement && (j.dataset.active = "false");
1399
1387
  });
1400
- }, v = i.current;
1401
- return v.addEventListener("mouseenter", f), v.addEventListener("mouseleave", p), () => {
1402
- v.removeEventListener("mouseenter", f), v.removeEventListener("mouseleave", p);
1388
+ }, C = i.current;
1389
+ return C.addEventListener("mouseenter", m), C.addEventListener("mouseleave", g), () => {
1390
+ C.removeEventListener("mouseenter", m), C.removeEventListener("mouseleave", g);
1403
1391
  };
1404
1392
  }, [c]), /* @__PURE__ */ n.jsx(
1405
1393
  "span",
1406
1394
  {
1407
- [$e]: c,
1408
- className: b(
1395
+ [be]: c,
1396
+ className: v(
1409
1397
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
1410
1398
  "relative transition-all duration-100 rounded-lg",
1411
1399
  "border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
@@ -1418,34 +1406,30 @@ const Ae = (e) => Math.abs(
1418
1406
  onClick: o,
1419
1407
  style: {
1420
1408
  "--param-color": y,
1421
- "--border-color": g,
1422
- "--background-color": x
1409
+ "--border-color": x,
1410
+ "--background-color": f
1423
1411
  },
1424
1412
  children: r ?? e
1425
1413
  }
1426
1414
  );
1427
- }, or = Lt()(
1428
- Rt(
1415
+ }, Qs = vt()(
1416
+ bt(
1429
1417
  (e) => ({
1430
1418
  selectedServer: void 0,
1431
1419
  setSelectedServer: (t) => e({ selectedServer: t })
1432
1420
  }),
1433
1421
  { name: "zudoku-selected-server" }
1434
1422
  )
1435
- ), ir = (e) => {
1436
- const { selectedServer: t, setSelectedServer: s } = or();
1437
- return { selectedServer: Bn(
1438
- () => {
1439
- var r;
1440
- return t && e.some((o) => o.url === t) ? t : ((r = e.at(0)) == null ? void 0 : r.url) ?? "";
1441
- },
1423
+ ), Js = (e) => {
1424
+ const { selectedServer: t, setSelectedServer: s } = Qs();
1425
+ return { selectedServer: On(
1426
+ () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1442
1427
  [t, e]
1443
1428
  ), setSelectedServer: s };
1444
- }, lr = (e, t, s) => {
1429
+ }, Ws = (e, t, s) => {
1445
1430
  const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1446
- var l;
1447
1431
  const i = o.replace(/[:{}]/g, "");
1448
- return ((l = s.pathParams.find((u) => u.name === i)) == null ? void 0 : l.value) ?? o;
1432
+ return s.pathParams.find((l) => l.name === i)?.value ?? o;
1449
1433
  }), r = new URL(
1450
1434
  a.replace(/^\//, ""),
1451
1435
  e.endsWith("/") ? e : `${e}/`
@@ -1453,11 +1437,11 @@ const Ae = (e) => Math.abs(
1453
1437
  return s.queryParams.filter((o) => o.active).forEach((o) => {
1454
1438
  r.searchParams.set(o.name, o.value);
1455
1439
  }), r;
1456
- }, tn = N.Root, nn = N.Trigger, cr = N.Group, dr = S.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1457
- N.SubTrigger,
1440
+ }, zt = b.Root, Mt = b.Trigger, Xs = b.Group, Zs = S.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1441
+ b.SubTrigger,
1458
1442
  {
1459
1443
  ref: r,
1460
- className: b(
1444
+ className: v(
1461
1445
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1462
1446
  t && "pl-8",
1463
1447
  e
@@ -1465,29 +1449,29 @@ const Ae = (e) => Math.abs(
1465
1449
  ...a,
1466
1450
  children: [
1467
1451
  s,
1468
- /* @__PURE__ */ n.jsx(te, { className: "ml-auto h-4 w-4" })
1452
+ /* @__PURE__ */ n.jsx(W, { className: "ml-auto h-4 w-4" })
1469
1453
  ]
1470
1454
  }
1471
1455
  ));
1472
- dr.displayName = N.SubTrigger.displayName;
1473
- const ur = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1474
- N.SubContent,
1456
+ Zs.displayName = b.SubTrigger.displayName;
1457
+ const Ys = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1458
+ b.SubContent,
1475
1459
  {
1476
1460
  ref: s,
1477
- className: b(
1461
+ className: v(
1478
1462
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
1479
1463
  e
1480
1464
  ),
1481
1465
  ...t
1482
1466
  }
1483
1467
  ));
1484
- ur.displayName = N.SubContent.displayName;
1485
- const We = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(N.Portal, { children: /* @__PURE__ */ n.jsx(
1486
- N.Content,
1468
+ Ys.displayName = b.SubContent.displayName;
1469
+ const _e = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(b.Portal, { children: /* @__PURE__ */ n.jsx(
1470
+ b.Content,
1487
1471
  {
1488
1472
  ref: a,
1489
1473
  sideOffset: t,
1490
- className: b(
1474
+ className: v(
1491
1475
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1492
1476
  "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",
1493
1477
  e
@@ -1495,12 +1479,12 @@ const We = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__
1495
1479
  ...s
1496
1480
  }
1497
1481
  ) }));
1498
- We.displayName = N.Content.displayName;
1499
- const Xe = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1500
- N.Item,
1482
+ _e.displayName = b.Content.displayName;
1483
+ const Be = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1484
+ b.Item,
1501
1485
  {
1502
1486
  ref: a,
1503
- className: b(
1487
+ className: v(
1504
1488
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1505
1489
  t && "pl-8",
1506
1490
  e
@@ -1508,45 +1492,45 @@ const Xe = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
1508
1492
  ...s
1509
1493
  }
1510
1494
  ));
1511
- Xe.displayName = N.Item.displayName;
1512
- const mr = S.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1513
- N.CheckboxItem,
1495
+ Be.displayName = b.Item.displayName;
1496
+ const Ks = S.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1497
+ b.CheckboxItem,
1514
1498
  {
1515
1499
  ref: r,
1516
- className: b(
1500
+ className: v(
1517
1501
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1518
1502
  e
1519
1503
  ),
1520
1504
  checked: s,
1521
1505
  ...a,
1522
1506
  children: [
1523
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(jn, { className: "h-4 w-4" }) }) }),
1507
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ln, { className: "h-4 w-4" }) }) }),
1524
1508
  t
1525
1509
  ]
1526
1510
  }
1527
1511
  ));
1528
- mr.displayName = N.CheckboxItem.displayName;
1529
- const pr = S.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1530
- N.RadioItem,
1512
+ Ks.displayName = b.CheckboxItem.displayName;
1513
+ const er = S.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1514
+ b.RadioItem,
1531
1515
  {
1532
1516
  ref: a,
1533
- className: b(
1517
+ className: v(
1534
1518
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1535
1519
  e
1536
1520
  ),
1537
1521
  ...s,
1538
1522
  children: [
1539
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(Nn, { className: "h-4 w-4 fill-current" }) }) }),
1523
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(cn, { className: "h-4 w-4 fill-current" }) }) }),
1540
1524
  t
1541
1525
  ]
1542
1526
  }
1543
1527
  ));
1544
- pr.displayName = N.RadioItem.displayName;
1545
- const sn = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1546
- N.Label,
1528
+ er.displayName = b.RadioItem.displayName;
1529
+ const Gt = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1530
+ b.Label,
1547
1531
  {
1548
1532
  ref: a,
1549
- className: b(
1533
+ className: v(
1550
1534
  "px-2 py-1.5 text-sm font-semibold",
1551
1535
  t && "pl-8",
1552
1536
  e
@@ -1554,78 +1538,75 @@ const sn = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
1554
1538
  ...s
1555
1539
  }
1556
1540
  ));
1557
- sn.displayName = N.Label.displayName;
1558
- const rn = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1559
- N.Separator,
1541
+ Gt.displayName = b.Label.displayName;
1542
+ const Ut = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1543
+ b.Separator,
1560
1544
  {
1561
1545
  ref: s,
1562
- className: b("-mx-1 my-1 h-px bg-muted", e),
1546
+ className: v("-mx-1 my-1 h-px bg-muted", e),
1563
1547
  ...t
1564
1548
  }
1565
1549
  ));
1566
- rn.displayName = N.Separator.displayName;
1567
- const hr = ({
1550
+ Ut.displayName = b.Separator.displayName;
1551
+ const tr = ({
1568
1552
  examples: e,
1569
1553
  onSelect: t
1570
- }) => /* @__PURE__ */ n.jsxs(tn, { children: [
1571
- /* @__PURE__ */ n.jsx(nn, { asChild: !0, children: /* @__PURE__ */ n.jsx(V, { variant: "outline", children: "Use Example" }) }),
1572
- /* @__PURE__ */ n.jsx(We, { className: "max-w-72", children: e.map((s) => {
1573
- var a;
1574
- return /* @__PURE__ */ n.jsxs("div", { children: [
1575
- /* @__PURE__ */ n.jsx(sn, { children: s.mediaType }),
1576
- /* @__PURE__ */ n.jsx(rn, {}),
1577
- /* @__PURE__ */ n.jsx(cr, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ n.jsx(
1578
- Xe,
1579
- {
1580
- onSelect: () => t(r, s.mediaType),
1581
- children: /* @__PURE__ */ n.jsx(
1582
- "span",
1583
- {
1584
- className: "line-clamp-1",
1585
- title: r.summary ?? r.name,
1586
- children: r.summary ?? r.name
1587
- }
1588
- )
1589
- },
1590
- r.name
1591
- )) })
1592
- ] }, s.mediaType);
1593
- }) })
1594
- ] }), ge = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1595
- ke.Root,
1554
+ }) => /* @__PURE__ */ n.jsxs(zt, { children: [
1555
+ /* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(V, { variant: "outline", children: "Use Example" }) }),
1556
+ /* @__PURE__ */ n.jsx(_e, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1557
+ /* @__PURE__ */ n.jsx(Gt, { children: s.mediaType }),
1558
+ /* @__PURE__ */ n.jsx(Ut, {}),
1559
+ /* @__PURE__ */ n.jsx(Xs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1560
+ Be,
1561
+ {
1562
+ onSelect: () => t(a, s.mediaType),
1563
+ children: /* @__PURE__ */ n.jsx(
1564
+ "span",
1565
+ {
1566
+ className: "line-clamp-1",
1567
+ title: a.summary ?? a.name,
1568
+ children: a.summary ?? a.name
1569
+ }
1570
+ )
1571
+ },
1572
+ a.name
1573
+ )) })
1574
+ ] }, s.mediaType)) })
1575
+ ] }), me = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1576
+ Te.Root,
1596
1577
  {
1597
1578
  ref: s,
1598
- className: b(
1579
+ className: v(
1599
1580
  "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
1600
1581
  "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1601
1582
  e
1602
1583
  ),
1603
1584
  ...t,
1604
1585
  children: /* @__PURE__ */ n.jsx(
1605
- ke.Indicator,
1586
+ Te.Indicator,
1606
1587
  {
1607
- className: b("flex items-center justify-center text-current"),
1608
- children: /* @__PURE__ */ n.jsx(Cn, { className: "h-4 w-4" })
1588
+ className: v("flex items-center justify-center text-current"),
1589
+ children: /* @__PURE__ */ n.jsx(dn, { className: "h-4 w-4" })
1609
1590
  }
1610
1591
  )
1611
1592
  }
1612
1593
  ));
1613
- ge.displayName = ke.Root.displayName;
1614
- const fr = ce.Root, an = S.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ce.Portal, { children: /* @__PURE__ */ n.jsx(
1615
- ce.Content,
1594
+ me.displayName = Te.Root.displayName;
1595
+ const nr = ae.Root, Ht = S.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ae.Portal, { children: /* @__PURE__ */ n.jsx(
1596
+ ae.Content,
1616
1597
  {
1617
1598
  ref: r,
1618
1599
  align: t,
1619
1600
  sideOffset: s,
1620
- className: b(
1601
+ className: v(
1621
1602
  "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
1622
1603
  e
1623
1604
  ),
1624
1605
  ...a
1625
1606
  }
1626
1607
  ) }));
1627
- an.displayName = ce.Content.displayName;
1628
- const xr = ({
1608
+ Ht.displayName = ae.Content.displayName;
1609
+ const sr = ({
1629
1610
  value: e,
1630
1611
  options: t,
1631
1612
  onChange: s,
@@ -1634,77 +1615,76 @@ const xr = ({
1634
1615
  onEnterPress: o,
1635
1616
  ref: i
1636
1617
  }) => {
1637
- const [c, l] = L(!1), [u, m] = L(!1), y = es((g) => g.filtered.count), x = X(null);
1638
- return /* @__PURE__ */ n.jsxs(fr, { open: c, children: [
1639
- /* @__PURE__ */ n.jsx(Kn, { children: /* @__PURE__ */ n.jsx(
1640
- ns,
1618
+ const [c, l] = P(!1), [u, p] = P(!1), y = Bn((x) => x.filtered.count), f = U(null);
1619
+ return /* @__PURE__ */ n.jsxs(nr, { open: c, children: [
1620
+ /* @__PURE__ */ n.jsx(_n, { children: /* @__PURE__ */ n.jsx(
1621
+ Mn,
1641
1622
  {
1642
- ref: (g) => {
1643
- x.current = g, typeof i == "function" ? i(g) : i && (i.current = g);
1623
+ ref: (x) => {
1624
+ f.current = x, typeof i == "function" ? i(x) : i && (i.current = x);
1644
1625
  },
1645
1626
  value: e,
1646
1627
  placeholder: r,
1647
- className: b("h-9 bg-transparent", a),
1628
+ className: v("h-9 bg-transparent", a),
1648
1629
  onFocus: () => l(!0),
1649
1630
  onBlur: () => {
1650
1631
  u || l(!1);
1651
1632
  },
1652
- onKeyDown: (g) => {
1653
- var f;
1654
- g.key === "Enter" && (l(!1), (f = x.current) == null || f.blur(), o == null || o(g));
1633
+ onKeyDown: (x) => {
1634
+ x.key === "Enter" && (l(!1), f.current?.blur(), o?.(x));
1655
1635
  },
1656
- onValueChange: (g) => s(g)
1636
+ onValueChange: (x) => s(x)
1657
1637
  }
1658
1638
  ) }),
1659
1639
  /* @__PURE__ */ n.jsx(
1660
- an,
1640
+ Ht,
1661
1641
  {
1662
- onMouseEnter: () => m(!0),
1663
- onMouseLeave: () => m(!1),
1664
- onOpenAutoFocus: (g) => g.preventDefault(),
1665
- className: b("p-0 w-[--radix-popover-trigger-width]", {
1642
+ onMouseEnter: () => p(!0),
1643
+ onMouseLeave: () => p(!1),
1644
+ onOpenAutoFocus: (x) => x.preventDefault(),
1645
+ className: v("p-0 w-[--radix-popover-trigger-width]", {
1666
1646
  "border-0": y === 0
1667
1647
  }),
1668
1648
  align: "start",
1669
1649
  side: "bottom",
1670
- onWheel: (g) => {
1671
- g.stopPropagation();
1650
+ onWheel: (x) => {
1651
+ x.stopPropagation();
1672
1652
  },
1673
- onTouchMove: (g) => {
1674
- g.stopPropagation();
1653
+ onTouchMove: (x) => {
1654
+ x.stopPropagation();
1675
1655
  },
1676
- children: /* @__PURE__ */ n.jsx(ss, { className: "max-h-[140px]", children: t.map((g) => /* @__PURE__ */ n.jsx(
1677
- rs,
1656
+ children: /* @__PURE__ */ n.jsx(Gn, { className: "max-h-[140px]", children: t.map((x) => /* @__PURE__ */ n.jsx(
1657
+ Un,
1678
1658
  {
1679
- value: g,
1680
- onSelect: (f) => {
1681
- s(f), l(!1);
1659
+ value: x,
1660
+ onSelect: (m) => {
1661
+ s(m), l(!1);
1682
1662
  },
1683
1663
  className: "cursor-pointer",
1684
- children: g
1664
+ children: x
1685
1665
  },
1686
- g
1666
+ x
1687
1667
  )) })
1688
1668
  }
1689
1669
  )
1690
1670
  ] });
1691
- }, de = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(ts, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(xr, { ...t }) }), Ze = (e, t) => {
1671
+ }, oe = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(zn, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(sr, { ...t }) }), ze = (e, t) => {
1692
1672
  const s = S.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1693
- const c = r ? os : e;
1673
+ const c = r ? Qn : e;
1694
1674
  return S.createElement(c, {
1695
1675
  ...o,
1696
1676
  ref: i,
1697
- className: typeof t == "function" ? t({ className: a }) : b(t, a)
1677
+ className: typeof t == "function" ? t({ className: a }) : v(t, a)
1698
1678
  });
1699
1679
  });
1700
1680
  return s.displayName = `VariantComponent(${e})`, s;
1701
- }, Ye = Ze(
1681
+ }, Me = ze(
1702
1682
  "div",
1703
1683
  "grid grid-cols-[2fr_3fr] gap-2 items-center"
1704
- ), Ke = Ze(
1684
+ ), Ge = ze(
1705
1685
  "div",
1706
1686
  "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
1707
- ), gr = Object.freeze([
1687
+ ), rr = Object.freeze([
1708
1688
  "Accept",
1709
1689
  "Accept-Encoding",
1710
1690
  "Accept-Language",
@@ -1731,47 +1711,43 @@ const xr = ({
1731
1711
  "Set-Cookie",
1732
1712
  "User-Agent",
1733
1713
  "X-Requested-With"
1734
- ]), yr = ({
1714
+ ]), ar = ({
1735
1715
  control: e,
1736
1716
  headers: t
1737
1717
  }) => {
1738
- const { fields: s, append: a, remove: r } = Ge({
1718
+ const { fields: s, append: a, remove: r } = ke({
1739
1719
  control: e,
1740
1720
  name: "headers"
1741
- }), { setValue: o, watch: i } = Ue(), c = X([]), l = X([]), u = i("headers"), m = zn(() => {
1721
+ }), { setValue: o, watch: i } = De(), c = U([]), l = U([]), u = i("headers"), p = En(() => {
1742
1722
  a({ name: "", value: "", active: !1 });
1743
1723
  }, [a]);
1744
- le(() => {
1745
- u.length === 0 && m();
1746
- }, [u, m]);
1747
- const y = (f) => {
1748
- var p;
1749
- (p = c.current[f]) == null || p.focus();
1750
- }, x = (f) => {
1751
- m(), requestAnimationFrame(() => {
1752
- var p;
1753
- return (p = l.current[f + 1]) == null ? void 0 : p.focus();
1754
- });
1755
- }, g = t.filter((f) => !u.some((p) => p.name === f.name)).map(({ name: f }) => f);
1724
+ re(() => {
1725
+ u.length === 0 && p();
1726
+ }, [u, p]);
1727
+ const y = (m) => {
1728
+ c.current[m]?.focus();
1729
+ }, f = (m) => {
1730
+ p(), requestAnimationFrame(() => l.current[m + 1]?.focus());
1731
+ }, x = t.filter((m) => !u.some((g) => g.name === m.name)).map(({ name: m }) => m);
1756
1732
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
1757
- /* @__PURE__ */ n.jsx(he, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Ye, { children: s.map((f, p) => {
1758
- const v = t.find(
1759
- (j) => j.name === i(`headers.${p}.name`)
1733
+ /* @__PURE__ */ n.jsx(ce, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((m, g) => {
1734
+ const C = t.find(
1735
+ (j) => j.name === i(`headers.${g}.name`)
1760
1736
  );
1761
- return /* @__PURE__ */ n.jsxs(Ke, { children: [
1737
+ return /* @__PURE__ */ n.jsxs(Ge, { children: [
1762
1738
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 ", children: [
1763
1739
  /* @__PURE__ */ n.jsx(
1764
1740
  q,
1765
1741
  {
1766
1742
  control: e,
1767
- name: `headers.${p}.active`,
1743
+ name: `headers.${g}.active`,
1768
1744
  render: ({ field: j }) => /* @__PURE__ */ n.jsx(
1769
- ge,
1745
+ me,
1770
1746
  {
1771
- id: `headers.${p}.active`,
1747
+ id: `headers.${g}.active`,
1772
1748
  checked: j.value,
1773
- onCheckedChange: (w) => {
1774
- j.onChange(w);
1749
+ onCheckedChange: (R) => {
1750
+ j.onChange(R);
1775
1751
  }
1776
1752
  }
1777
1753
  )
@@ -1781,20 +1757,20 @@ const xr = ({
1781
1757
  q,
1782
1758
  {
1783
1759
  control: e,
1784
- name: `headers.${p}.name`,
1760
+ name: `headers.${g}.name`,
1785
1761
  render: ({ field: j }) => /* @__PURE__ */ n.jsx(
1786
- de,
1762
+ oe,
1787
1763
  {
1788
1764
  ...j,
1789
1765
  placeholder: "Name",
1790
1766
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1791
- options: [...g, ...gr],
1792
- onEnterPress: () => y(p),
1793
- onChange: (w) => {
1794
- j.onChange(w), o(`headers.${p}.active`, !0);
1767
+ options: [...x, ...rr],
1768
+ onEnterPress: () => y(g),
1769
+ onChange: (R) => {
1770
+ j.onChange(R), o(`headers.${g}.active`, !0);
1795
1771
  },
1796
- ref: (w) => {
1797
- l.current[p] = w;
1772
+ ref: (R) => {
1773
+ l.current[g] = R;
1798
1774
  }
1799
1775
  }
1800
1776
  )
@@ -1806,29 +1782,29 @@ const xr = ({
1806
1782
  q,
1807
1783
  {
1808
1784
  control: e,
1809
- name: `headers.${p}.value`,
1810
- render: ({ field: j }) => (v == null ? void 0 : v.enum) && v.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1811
- de,
1785
+ name: `headers.${g}.value`,
1786
+ render: ({ field: j }) => C?.enum && C.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1787
+ oe,
1812
1788
  {
1813
1789
  shouldFilter: !1,
1814
1790
  value: j.value,
1815
- options: v.enum ?? [],
1816
- onChange: (E) => {
1817
- j.onChange(E), o(`headers.${p}.active`, !0);
1791
+ options: C.enum ?? [],
1792
+ onChange: (I) => {
1793
+ j.onChange(I), o(`headers.${g}.active`, !0);
1818
1794
  },
1819
1795
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1820
1796
  }
1821
1797
  ) : /* @__PURE__ */ n.jsx(
1822
- He,
1798
+ qe,
1823
1799
  {
1824
1800
  placeholder: "Value",
1825
1801
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
1826
1802
  ...j,
1827
- ref: (E) => {
1828
- c.current[p] = E;
1803
+ ref: (I) => {
1804
+ c.current[g] = I;
1829
1805
  },
1830
- onKeyDown: (E) => {
1831
- E.key === "Enter" && E.currentTarget.value.trim() && x(p);
1806
+ onKeyDown: (I) => {
1807
+ I.key === "Enter" && I.currentTarget.value.trim() && f(g);
1832
1808
  },
1833
1809
  autoComplete: "off"
1834
1810
  }
@@ -1836,122 +1812,115 @@ const xr = ({
1836
1812
  }
1837
1813
  ),
1838
1814
  /* @__PURE__ */ n.jsx(
1839
- ne,
1815
+ X,
1840
1816
  {
1841
1817
  size: "icon",
1842
1818
  variant: "ghost",
1843
1819
  className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
1844
- onClick: () => r(p),
1820
+ onClick: () => r(g),
1845
1821
  type: "button",
1846
- children: /* @__PURE__ */ n.jsx(Sn, { size: 16 })
1822
+ children: /* @__PURE__ */ n.jsx(un, { size: 16 })
1847
1823
  }
1848
1824
  )
1849
1825
  ] })
1850
- ] }, f.id);
1826
+ ] }, m.id);
1851
1827
  }) }) }),
1852
1828
  /* @__PURE__ */ n.jsx("div", { className: "text-end", children: /* @__PURE__ */ n.jsx(
1853
- ne,
1829
+ X,
1854
1830
  {
1855
1831
  className: "",
1856
- onClick: m,
1832
+ onClick: p,
1857
1833
  type: "button",
1858
1834
  variant: "secondary",
1859
1835
  children: "Add header"
1860
1836
  }
1861
1837
  ) })
1862
1838
  ] });
1863
- }, vr = qt(
1839
+ }, or = St(
1864
1840
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1865
- ), J = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1866
- _t.Root,
1841
+ ), ie = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1842
+ At.Root,
1867
1843
  {
1868
1844
  ref: s,
1869
- className: b(vr(), e),
1845
+ className: v(or(), e),
1870
1846
  ...t
1871
1847
  }
1872
1848
  ));
1873
- J.displayName = _t.Root.displayName;
1874
- const et = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1875
- se.Root,
1849
+ ie.displayName = At.Root.displayName;
1850
+ const Ue = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1851
+ Z.Root,
1876
1852
  {
1877
- className: b("grid gap-2", e),
1853
+ className: v("grid gap-2", e),
1878
1854
  ...t,
1879
1855
  ref: s
1880
1856
  }
1881
1857
  ));
1882
- et.displayName = se.Root.displayName;
1883
- const ue = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1884
- se.Item,
1858
+ Ue.displayName = Z.Root.displayName;
1859
+ const le = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1860
+ Z.Item,
1885
1861
  {
1886
1862
  ref: s,
1887
- className: b(
1863
+ className: v(
1888
1864
  "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1889
1865
  e
1890
1866
  ),
1891
1867
  ...t,
1892
- children: /* @__PURE__ */ n.jsx(se.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(wn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1868
+ children: /* @__PURE__ */ n.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(mn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1893
1869
  }
1894
1870
  ));
1895
- ue.displayName = se.Item.displayName;
1896
- const on = ({
1871
+ le.displayName = Z.Item.displayName;
1872
+ const Qt = ({
1897
1873
  identities: e,
1898
1874
  setValue: t,
1899
1875
  value: s
1900
- }) => /* @__PURE__ */ n.jsx(he, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
1901
- et,
1876
+ }) => /* @__PURE__ */ n.jsx(ce, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
1877
+ Ue,
1902
1878
  {
1903
1879
  onValueChange: (a) => t(a),
1904
1880
  value: s,
1905
- defaultValue: W,
1881
+ defaultValue: G,
1906
1882
  className: "gap-0",
1907
- disabled: (e == null ? void 0 : e.length) === 0,
1883
+ disabled: e?.length === 0,
1908
1884
  children: [
1909
- /* @__PURE__ */ n.jsxs(
1910
- J,
1911
- {
1912
- className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
1913
- htmlFor: "none",
1914
- children: [
1915
- /* @__PURE__ */ n.jsx(ue, { value: W, id: "none", children: "None" }),
1916
- /* @__PURE__ */ n.jsx(J, { htmlFor: "none", className: "ms-2", children: "None" })
1917
- ]
1918
- }
1919
- ),
1920
- e == null ? void 0 : e.map((a) => /* @__PURE__ */ n.jsxs(
1921
- J,
1885
+ /* @__PURE__ */ n.jsxs(ie, { className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent", children: [
1886
+ /* @__PURE__ */ n.jsx(le, { value: G, id: "none" }),
1887
+ /* @__PURE__ */ n.jsx("span", { children: "None" })
1888
+ ] }),
1889
+ e?.map((a) => /* @__PURE__ */ n.jsxs(
1890
+ ie,
1922
1891
  {
1923
- className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
1892
+ className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent",
1924
1893
  children: [
1925
- /* @__PURE__ */ n.jsx(ue, { value: a.id, id: a.id, children: a.label }),
1926
- /* @__PURE__ */ n.jsx(J, { htmlFor: a.id, className: "ms-2", children: a.label })
1894
+ /* @__PURE__ */ n.jsx(le, { value: a.id, id: a.id }),
1895
+ /* @__PURE__ */ n.jsx("span", { children: a.label })
1927
1896
  ]
1928
1897
  },
1929
1898
  a.id
1930
1899
  ))
1931
1900
  ]
1932
1901
  }
1933
- ) }), br = ({
1902
+ ) }), ir = ({
1934
1903
  onSubmit: e,
1935
1904
  identities: t,
1936
1905
  open: s,
1937
1906
  onOpenChange: a
1938
1907
  }) => {
1939
- const [r, o] = L(void 0), [i, c] = L(!1);
1940
- return /* @__PURE__ */ n.jsx(Be, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ze, { children: [
1941
- /* @__PURE__ */ n.jsx(Me, { children: "Select an auth identity" }),
1942
- /* @__PURE__ */ n.jsx(kt, { children: "Please select an identity for this request." }),
1908
+ const [r, o] = P(void 0), [i, c] = P(!1);
1909
+ return /* @__PURE__ */ n.jsx(Le, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Re, { children: [
1910
+ /* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
1911
+ /* @__PURE__ */ n.jsx(Nt, { children: "Please select an identity for this request." }),
1943
1912
  /* @__PURE__ */ n.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
1944
- on,
1913
+ Qt,
1945
1914
  {
1946
1915
  identities: t,
1947
1916
  setValue: o,
1948
1917
  value: r
1949
1918
  }
1950
1919
  ) }),
1951
- /* @__PURE__ */ n.jsxs(Dt, { className: "flex flex-col gap-2", children: [
1920
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex flex-col gap-2", children: [
1952
1921
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1953
1922
  /* @__PURE__ */ n.jsx(
1954
- ge,
1923
+ me,
1955
1924
  {
1956
1925
  id: "remember",
1957
1926
  checked: i,
@@ -1960,7 +1929,7 @@ const on = ({
1960
1929
  )
1961
1930
  }
1962
1931
  ),
1963
- /* @__PURE__ */ n.jsx(J, { htmlFor: "remember", children: "Remember my choice" })
1932
+ /* @__PURE__ */ n.jsx(ie, { htmlFor: "remember", children: "Remember my choice" })
1964
1933
  ] }),
1965
1934
  /* @__PURE__ */ n.jsx(
1966
1935
  V,
@@ -1971,24 +1940,24 @@ const on = ({
1971
1940
  )
1972
1941
  ] })
1973
1942
  ] }) });
1974
- }, jr = ({
1943
+ }, lr = ({
1975
1944
  control: e,
1976
1945
  url: t
1977
1946
  }) => {
1978
- const { fields: s } = Ge({
1947
+ const { fields: s } = ke({
1979
1948
  control: e,
1980
1949
  name: "pathParams"
1981
1950
  }), a = [...s].sort(
1982
1951
  (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
1983
1952
  );
1984
- return /* @__PURE__ */ n.jsx(he, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Ye, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ke, { children: [
1953
+ return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Me, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ge, { children: [
1985
1954
  /* @__PURE__ */ n.jsx(
1986
1955
  q,
1987
1956
  {
1988
1957
  control: e,
1989
1958
  name: `pathParams.${o}.name`,
1990
1959
  render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
1991
- en,
1960
+ Bt,
1992
1961
  {
1993
1962
  slug: r.name,
1994
1963
  name: r.name,
@@ -2003,7 +1972,7 @@ const on = ({
2003
1972
  control: e,
2004
1973
  name: `pathParams.${o}.value`,
2005
1974
  render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2006
- He,
1975
+ qe,
2007
1976
  {
2008
1977
  ...i,
2009
1978
  required: !0,
@@ -2014,22 +1983,22 @@ const on = ({
2014
1983
  }
2015
1984
  ) })
2016
1985
  ] }, r.id)) }) });
2017
- }, Nr = Ze(
1986
+ }, cr = ze(
2018
1987
  "input",
2019
1988
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
2020
- ), Cr = ({
1989
+ ), dr = ({
2021
1990
  control: e,
2022
1991
  queryParams: t
2023
1992
  }) => {
2024
- const { fields: s } = Ge({
1993
+ const { fields: s } = ke({
2025
1994
  control: e,
2026
1995
  name: "queryParams"
2027
- }), a = Ue(), r = t.map((o) => !!o.isRequired);
2028
- return /* @__PURE__ */ n.jsx(he, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Ye, { children: s.map((o, i) => {
1996
+ }), a = De(), r = t.map((o) => !!o.isRequired);
1997
+ return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((o, i) => {
2029
1998
  const c = t.find(
2030
1999
  (l) => l.name === a.watch(`queryParams.${i}.name`)
2031
2000
  );
2032
- return /* @__PURE__ */ n.jsxs(Ke, { children: [
2001
+ return /* @__PURE__ */ n.jsxs(Ge, { children: [
2033
2002
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2034
2003
  /* @__PURE__ */ n.jsx(
2035
2004
  q,
@@ -2037,7 +2006,7 @@ const on = ({
2037
2006
  control: e,
2038
2007
  name: `queryParams.${i}.active`,
2039
2008
  render: ({ field: l }) => /* @__PURE__ */ n.jsx(
2040
- ge,
2009
+ me,
2041
2010
  {
2042
2011
  id: `queryParams.${i}.active`,
2043
2012
  className: "me-2",
@@ -2051,7 +2020,7 @@ const on = ({
2051
2020
  q,
2052
2021
  {
2053
2022
  control: e,
2054
- render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(Nr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2023
+ render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(cr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2055
2024
  "label",
2056
2025
  {
2057
2026
  className: "flex items-center cursor-pointer gap-1",
@@ -2063,7 +2032,7 @@ const on = ({
2063
2032
  ]
2064
2033
  }
2065
2034
  ) }) : /* @__PURE__ */ n.jsx(
2066
- de,
2035
+ oe,
2067
2036
  {
2068
2037
  value: l.value,
2069
2038
  options: t.map((u) => u.name),
@@ -2081,22 +2050,22 @@ const on = ({
2081
2050
  q,
2082
2051
  {
2083
2052
  control: e,
2084
- render: ({ field: l }) => (c == null ? void 0 : c.enum) && c.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2085
- de,
2053
+ render: ({ field: l }) => c?.enum && c.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2054
+ oe,
2086
2055
  {
2087
2056
  value: l.value,
2088
2057
  options: c.enum ?? [],
2089
- onChange: (m) => {
2090
- l.onChange(m), a.setValue(`queryParams.${i}.active`, !0);
2058
+ onChange: (p) => {
2059
+ l.onChange(p), a.setValue(`queryParams.${i}.active`, !0);
2091
2060
  },
2092
2061
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2093
2062
  }
2094
2063
  ) : /* @__PURE__ */ n.jsx(
2095
- He,
2064
+ qe,
2096
2065
  {
2097
2066
  ...l,
2098
- onChange: (m) => {
2099
- l.onChange(m.target.value), m.target.value.length > 0 && a.setValue(`queryParams.${i}.active`, !0);
2067
+ onChange: (p) => {
2068
+ l.onChange(p.target.value), p.target.value.length > 0 && a.setValue(`queryParams.${i}.active`, !0);
2100
2069
  },
2101
2070
  placeholder: "Enter value",
2102
2071
  className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
@@ -2107,8 +2076,8 @@ const on = ({
2107
2076
  ) })
2108
2077
  ] }, o.id);
2109
2078
  }) }) }) });
2110
- }, Sr = Lt()(
2111
- Rt(
2079
+ }, ur = vt()(
2080
+ bt(
2112
2081
  (e, t) => ({
2113
2082
  rememberedIdentity: null,
2114
2083
  setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
@@ -2118,25 +2087,25 @@ const on = ({
2118
2087
  }),
2119
2088
  {
2120
2089
  name: "identity-storage",
2121
- storage: In(() => sessionStorage)
2090
+ storage: jn(() => sessionStorage)
2122
2091
  }
2123
2092
  )
2124
- ), wr = ({
2093
+ ), mr = ({
2125
2094
  open: e,
2126
2095
  setOpen: t,
2127
2096
  onSignUp: s,
2128
2097
  onLogin: a
2129
- }) => /* @__PURE__ */ n.jsx(Be, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ze, { children: [
2130
- /* @__PURE__ */ n.jsx(Me, { children: "Welcome to the Playground!" }),
2131
- /* @__PURE__ */ n.jsx(kt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2132
- /* @__PURE__ */ n.jsxs(Dt, { className: "flex gap-2 sm:justify-between", children: [
2098
+ }) => /* @__PURE__ */ n.jsx(Le, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Re, { children: [
2099
+ /* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
2100
+ /* @__PURE__ */ n.jsx(Nt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2101
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex gap-2 sm:justify-between", children: [
2133
2102
  /* @__PURE__ */ n.jsx(V, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2134
2103
  /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2135
2104
  s && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2136
2105
  a && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "default", onClick: a, children: "Login" })
2137
2106
  ] })
2138
2107
  ] })
2139
- ] }) }), R = {
2108
+ ] }) }), $ = {
2140
2109
  green: "text-green-600",
2141
2110
  blue: "text-sky-600",
2142
2111
  yellow: "text-yellow-600",
@@ -2144,48 +2113,48 @@ const on = ({
2144
2113
  purple: "text-purple-600",
2145
2114
  indigo: "text-indigo-600",
2146
2115
  gray: "text-gray-600"
2147
- }, Tr = {
2148
- get: R.green,
2149
- post: R.blue,
2150
- put: R.yellow,
2151
- delete: R.red,
2152
- patch: R.purple,
2153
- options: R.indigo,
2154
- head: R.gray,
2155
- trace: R.gray
2156
- }, Ar = (e) => Tr[e.toLocaleLowerCase()] ?? R.gray, Or = ({
2116
+ }, pr = {
2117
+ get: $.green,
2118
+ post: $.blue,
2119
+ put: $.yellow,
2120
+ delete: $.red,
2121
+ patch: $.purple,
2122
+ options: $.indigo,
2123
+ head: $.gray,
2124
+ trace: $.gray
2125
+ }, hr = (e) => pr[e.toLocaleLowerCase()] ?? $.gray, fr = ({
2157
2126
  method: e,
2158
2127
  url: t,
2159
2128
  headers: s,
2160
2129
  body: a
2161
2130
  }) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
2162
2131
  /* @__PURE__ */ n.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
2163
- /* @__PURE__ */ n.jsx("span", { className: b(Ar(e), "font-semibold"), children: e }),
2132
+ /* @__PURE__ */ n.jsx("span", { className: v(hr(e), "font-semibold"), children: e }),
2164
2133
  " ",
2165
2134
  /* @__PURE__ */ n.jsx("span", { className: "break-all", children: t }),
2166
2135
  " ",
2167
2136
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
2168
2137
  ] }),
2169
2138
  /* @__PURE__ */ n.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
2170
- /* @__PURE__ */ n.jsxs(gt, { defaultOpen: !0, children: [
2171
- /* @__PURE__ */ n.jsxs(yt, { className: "flex items-center gap-2 hover:text-primary group", children: [
2172
- /* @__PURE__ */ n.jsx(te, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2139
+ /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2140
+ /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2141
+ /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2173
2142
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2174
2143
  ] }),
2175
- /* @__PURE__ */ n.jsx(vt, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(D, { children: [
2144
+ /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(D, { children: [
2176
2145
  /* @__PURE__ */ n.jsx("div", { className: "text-primary", children: r }),
2177
2146
  /* @__PURE__ */ n.jsx("div", { className: "break-all", children: o })
2178
2147
  ] }, r)) }) })
2179
2148
  ] }),
2180
- /* @__PURE__ */ n.jsxs(gt, { defaultOpen: !0, children: [
2181
- /* @__PURE__ */ n.jsxs(yt, { className: "flex items-center gap-2 hover:text-primary group", children: [
2182
- /* @__PURE__ */ n.jsx(te, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2149
+ /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2150
+ /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2151
+ /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2183
2152
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Body" })
2184
2153
  ] }),
2185
- /* @__PURE__ */ n.jsx(vt, { children: /* @__PURE__ */ n.jsx("div", { className: "ps-0 pt-2", children: /* @__PURE__ */ n.jsx(
2154
+ /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "ps-0 pt-2", children: /* @__PURE__ */ n.jsx(
2186
2155
  "div",
2187
2156
  {
2188
- className: b(
2157
+ className: v(
2189
2158
  "whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
2190
2159
  !a && "text-muted-foreground"
2191
2160
  ),
@@ -2194,29 +2163,29 @@ const on = ({
2194
2163
  ) }) })
2195
2164
  ] })
2196
2165
  ] })
2197
- ] }), wt = Qe.Root, Tt = Qe.CollapsibleTrigger, At = Qe.CollapsibleContent;
2198
- function tt(e) {
2166
+ ] }), mt = Ve.Root, pt = Ve.CollapsibleTrigger, ht = Ve.CollapsibleContent;
2167
+ function He(e) {
2199
2168
  if (e === null) return "null";
2200
2169
  if (Array.isArray(e)) {
2201
2170
  if (e.length === 0) return "any[]";
2202
2171
  const t = e[0];
2203
- return t === void 0 ? "any[]" : `${tt(t)}[]`;
2172
+ return t === void 0 ? "any[]" : `${He(t)}[]`;
2204
2173
  }
2205
- return typeof e == "object" ? $r(e) : typeof e;
2174
+ return typeof e == "object" ? xr(e) : typeof e;
2206
2175
  }
2207
- function $r(e, t = "") {
2176
+ function xr(e, t = "") {
2208
2177
  const s = ["{"];
2209
2178
  for (const [a, r] of Object.entries(e)) {
2210
- const o = tt(r);
2179
+ const o = He(r);
2211
2180
  s.push(` ${a}: ${o};`);
2212
2181
  }
2213
2182
  return s.push("}"), s.join(`
2214
2183
  `);
2215
2184
  }
2216
- function Er(e) {
2217
- return { lines: [`type GeneratedType = ${tt(e)};`] };
2185
+ function gr(e) {
2186
+ return { lines: [`type GeneratedType = ${He(e)};`] };
2218
2187
  }
2219
- const Pr = {
2188
+ const yr = {
2220
2189
  200: "OK",
2221
2190
  201: "Created",
2222
2191
  202: "Accepted",
@@ -2227,35 +2196,31 @@ const Pr = {
2227
2196
  404: "Not Found",
2228
2197
  405: "Method Not Allowed",
2229
2198
  500: "Internal Server Error"
2230
- }, Ot = (e) => {
2199
+ }, ft = (e) => {
2231
2200
  const t = Math.floor(Math.log(e) / Math.log(1e3));
2232
2201
  return `${(e / Math.pow(1e3, t)).toFixed(
2233
2202
  t ? 2 : 0
2234
2203
  )} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2235
- }, Lr = (e) => {
2236
- var s;
2237
- return (s = Object.entries({
2238
- "application/json": "json",
2239
- "text/json": "json",
2240
- "text/html": "html",
2241
- "text/css": "css",
2242
- "text/javascript": "javascript",
2243
- "application/xml": "xml",
2244
- "application/xhtml+xml": "xhtml"
2245
- }).find(
2246
- ([a]) => e.includes(a)
2247
- )) == null ? void 0 : s[1];
2248
- }, Rr = (e) => {
2249
- var s;
2250
- const t = ((s = e.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
2251
- return Lr(t);
2252
- }, Ir = (e) => {
2204
+ }, vr = (e) => Object.entries({
2205
+ "application/json": "json",
2206
+ "text/json": "json",
2207
+ "text/html": "html",
2208
+ "text/css": "css",
2209
+ "text/javascript": "javascript",
2210
+ "application/xml": "xml",
2211
+ "application/xhtml+xml": "xhtml"
2212
+ }).find(
2213
+ ([s]) => e.includes(s)
2214
+ )?.[1], br = (e) => {
2215
+ const t = e.find(([s, a]) => s === "Content-Type")?.[1] || "";
2216
+ return vr(t);
2217
+ }, jr = (e) => {
2253
2218
  try {
2254
2219
  return JSON.stringify(JSON.parse(e), null, 2);
2255
2220
  } catch {
2256
2221
  return null;
2257
2222
  }
2258
- }, kr = (e) => {
2223
+ }, Nr = (e) => {
2259
2224
  const t = [
2260
2225
  "Content-Type",
2261
2226
  "Content-Length",
@@ -2269,7 +2234,7 @@ const Pr = {
2269
2234
  const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2270
2235
  return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2271
2236
  });
2272
- }, $t = 64e3, Dr = ({
2237
+ }, xt = 64e3, Cr = ({
2273
2238
  body: e = "",
2274
2239
  headers: t,
2275
2240
  status: s,
@@ -2277,54 +2242,53 @@ const Pr = {
2277
2242
  size: r,
2278
2243
  url: o
2279
2244
  }) => {
2280
- var f;
2281
- const i = Rr(t), c = Ir(e), l = c || e, [u, m] = L(
2245
+ const i = br(t), c = jr(e), l = c || e, [u, p] = P(
2282
2246
  c ? "formatted" : "raw"
2283
- ), y = kn({
2247
+ ), y = Nn({
2284
2248
  queryKey: ["types", l],
2285
- queryFn: async () => Er(JSON.parse(l)),
2249
+ queryFn: async () => gr(JSON.parse(l)),
2286
2250
  enabled: u === "types"
2287
- }), x = kr([...t]), g = r > $t;
2251
+ }), f = Nr([...t]), x = r > xt;
2288
2252
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
2289
- /* @__PURE__ */ n.jsxs(wt, { defaultOpen: !0, children: [
2290
- /* @__PURE__ */ n.jsxs(Tt, { className: "flex items-center gap-2 hover:text-primary group", children: [
2291
- /* @__PURE__ */ n.jsx(te, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2253
+ /* @__PURE__ */ n.jsxs(mt, { defaultOpen: !0, children: [
2254
+ /* @__PURE__ */ n.jsxs(pt, { className: "flex items-center gap-2 hover:text-primary group", children: [
2255
+ /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2292
2256
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2293
2257
  ] }),
2294
- /* @__PURE__ */ n.jsx(At, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2 font-mono text-xs", children: [
2295
- x.slice(0, 5).map(([p, v]) => /* @__PURE__ */ n.jsxs(D, { children: [
2296
- /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: p }),
2297
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: v })
2298
- ] }, p)),
2299
- x.length > 5 && /* @__PURE__ */ n.jsxs(wt, { className: "col-span-full grid-cols-subgrid grid", children: [
2300
- /* @__PURE__ */ n.jsxs(Tt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
2301
- /* @__PURE__ */ n.jsx(te, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2258
+ /* @__PURE__ */ n.jsx(ht, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2 font-mono text-xs", children: [
2259
+ f.slice(0, 5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
2260
+ /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2261
+ /* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
2262
+ ] }, m)),
2263
+ f.length > 5 && /* @__PURE__ */ n.jsxs(mt, { className: "col-span-full grid-cols-subgrid grid", children: [
2264
+ /* @__PURE__ */ n.jsxs(pt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
2265
+ /* @__PURE__ */ n.jsx(W, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2302
2266
  "Show ",
2303
- x.length - 5,
2267
+ f.length - 5,
2304
2268
  " more headers"
2305
2269
  ] }),
2306
- /* @__PURE__ */ n.jsx(At, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: x.slice(5).map(([p, v]) => /* @__PURE__ */ n.jsxs(D, { children: [
2307
- /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: p }),
2308
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: v })
2309
- ] }, p)) })
2270
+ /* @__PURE__ */ n.jsx(ht, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
2271
+ /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2272
+ /* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
2273
+ ] }, m)) })
2310
2274
  ] })
2311
2275
  ] }) })
2312
2276
  ] }),
2313
- /* @__PURE__ */ n.jsxs(Bt, { className: "shadow-none", children: [
2314
- g && /* @__PURE__ */ n.jsxs(as, { type: "info", className: "my-0 p-2", children: [
2277
+ /* @__PURE__ */ n.jsxs(Ot, { className: "shadow-none", children: [
2278
+ x && /* @__PURE__ */ n.jsxs(Hn, { type: "info", className: "my-0 p-2", children: [
2315
2279
  "Code highlight is disabled for responses larger than",
2316
2280
  " ",
2317
- Ot($t)
2281
+ ft(xt)
2318
2282
  ] }),
2319
2283
  /* @__PURE__ */ n.jsx(
2320
- ms,
2284
+ Kn,
2321
2285
  {
2322
2286
  language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : i : "json",
2323
2287
  showCopy: "always",
2324
- disabled: g,
2288
+ disabled: x,
2325
2289
  noBackground: !0,
2326
2290
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
2327
- code: (u === "raw" ? e : u === "types" ? (f = y.data) == null ? void 0 : f.lines.join(`
2291
+ code: (u === "raw" ? e : u === "types" ? y.data?.lines.join(`
2328
2292
  `) : l) ?? ""
2329
2293
  }
2330
2294
  )
@@ -2336,7 +2300,7 @@ const Pr = {
2336
2300
  " ",
2337
2301
  s,
2338
2302
  " ",
2339
- Pr[s] ?? ""
2303
+ yr[s] ?? ""
2340
2304
  ] }),
2341
2305
  /* @__PURE__ */ n.jsxs("div", { children: [
2342
2306
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -2347,53 +2311,52 @@ const Pr = {
2347
2311
  /* @__PURE__ */ n.jsxs("div", { children: [
2348
2312
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2349
2313
  " ",
2350
- Ot(r)
2314
+ ft(r)
2351
2315
  ] })
2352
2316
  ] }),
2353
2317
  c && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs(
2354
- Pe,
2318
+ Ne,
2355
2319
  {
2356
2320
  value: u,
2357
- onValueChange: (p) => m(p),
2321
+ onValueChange: (m) => p(m),
2358
2322
  children: [
2359
- /* @__PURE__ */ n.jsx(Le, { className: "min-w-32", children: /* @__PURE__ */ n.jsx(Re, { placeholder: "View" }) }),
2360
- /* @__PURE__ */ n.jsxs(Ie, { children: [
2361
- /* @__PURE__ */ n.jsx(ee, { value: "formatted", children: "Formatted" }),
2362
- /* @__PURE__ */ n.jsx(ee, { value: "raw", children: "Raw" }),
2363
- /* @__PURE__ */ n.jsx(ee, { value: "types", children: "Types" })
2323
+ /* @__PURE__ */ n.jsx(Ce, { className: "min-w-32", children: /* @__PURE__ */ n.jsx(Se, { placeholder: "View" }) }),
2324
+ /* @__PURE__ */ n.jsxs(we, { children: [
2325
+ /* @__PURE__ */ n.jsx(J, { value: "formatted", children: "Formatted" }),
2326
+ /* @__PURE__ */ n.jsx(J, { value: "raw", children: "Raw" }),
2327
+ /* @__PURE__ */ n.jsx(J, { value: "types", children: "Types" })
2364
2328
  ] })
2365
2329
  ]
2366
2330
  }
2367
2331
  ) })
2368
2332
  ] })
2369
2333
  ] });
2370
- }, qr = ({
2334
+ }, Sr = ({
2371
2335
  queryMutation: e,
2372
2336
  showPathParamsWarning: t,
2373
2337
  showLongRunningWarning: s,
2374
2338
  onCancel: a
2375
2339
  }) => {
2376
- var o;
2377
- const r = ((((o = e.data) == null ? void 0 : o.status) ?? 0) / 100).toFixed(0);
2340
+ const r = ((e.data?.status ?? 0) / 100).toFixed(0);
2378
2341
  return /* @__PURE__ */ n.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: e.error ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
2379
- t && /* @__PURE__ */ n.jsx(ls, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
2380
- /* @__PURE__ */ n.jsxs(Bt, { children: [
2381
- /* @__PURE__ */ n.jsx(cs, { children: /* @__PURE__ */ n.jsx(ds, { children: "Request failed" }) }),
2382
- /* @__PURE__ */ n.jsxs(us, { children: [
2342
+ t && /* @__PURE__ */ n.jsx(Wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
2343
+ /* @__PURE__ */ n.jsxs(Ot, { children: [
2344
+ /* @__PURE__ */ n.jsx(Xn, { children: /* @__PURE__ */ n.jsx(Zn, { children: "Request failed" }) }),
2345
+ /* @__PURE__ */ n.jsxs(Yn, { children: [
2383
2346
  "Error:",
2384
2347
  " ",
2385
2348
  e.error.message || String(e.error) || "Unexpected error"
2386
2349
  ] })
2387
2350
  ] })
2388
- ] }) : e.data ? /* @__PURE__ */ n.jsxs(Vt, { defaultValue: "response", children: [
2389
- /* @__PURE__ */ n.jsxs(Ft, { children: [
2390
- /* @__PURE__ */ n.jsx(H, { value: "request", children: "Request" }),
2391
- /* @__PURE__ */ n.jsxs(H, { value: "response", children: [
2351
+ ] }) : e.data ? /* @__PURE__ */ n.jsxs(wt, { defaultValue: "response", children: [
2352
+ /* @__PURE__ */ n.jsxs(Tt, { children: [
2353
+ /* @__PURE__ */ n.jsx(z, { value: "request", children: "Request" }),
2354
+ /* @__PURE__ */ n.jsxs(z, { value: "response", children: [
2392
2355
  "Response",
2393
2356
  /* @__PURE__ */ n.jsxs(
2394
2357
  "span",
2395
2358
  {
2396
- className: b(
2359
+ className: v(
2397
2360
  "text-xs font-mono ms-1",
2398
2361
  r === "2" && "text-green-500",
2399
2362
  r === "3" && "text-blue-500",
@@ -2409,9 +2372,9 @@ const Pr = {
2409
2372
  )
2410
2373
  ] })
2411
2374
  ] }),
2412
- /* @__PURE__ */ n.jsx(Q, { value: "request", children: /* @__PURE__ */ n.jsx(Or, { ...e.data.request }) }),
2413
- /* @__PURE__ */ n.jsx(Q, { value: "response", children: /* @__PURE__ */ n.jsx(
2414
- Dr,
2375
+ /* @__PURE__ */ n.jsx(M, { value: "request", children: /* @__PURE__ */ n.jsx(fr, { ...e.data.request }) }),
2376
+ /* @__PURE__ */ n.jsx(M, { value: "response", children: /* @__PURE__ */ n.jsx(
2377
+ Cr,
2415
2378
  {
2416
2379
  status: e.data.status,
2417
2380
  time: e.data.time,
@@ -2422,18 +2385,18 @@ const Pr = {
2422
2385
  }
2423
2386
  ) })
2424
2387
  ] }) : /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: e.isPending ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2425
- /* @__PURE__ */ n.jsx(is, { size: 20 }),
2388
+ /* @__PURE__ */ n.jsx(Jn, { size: 20 }),
2426
2389
  /* @__PURE__ */ n.jsxs(
2427
2390
  "div",
2428
2391
  {
2429
- className: b(
2392
+ className: v(
2430
2393
  "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2431
2394
  s && "opacity-100 pointer-events-auto"
2432
2395
  ),
2433
2396
  children: [
2434
2397
  "Looks like the request is taking longer than expected.",
2435
2398
  /* @__PURE__ */ n.jsx(
2436
- ne,
2399
+ X,
2437
2400
  {
2438
2401
  type: "button",
2439
2402
  onClick: a,
@@ -2447,47 +2410,43 @@ const Pr = {
2447
2410
  }
2448
2411
  )
2449
2412
  ] }) : /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
2450
- }, Vr = ({
2413
+ }, wr = ({
2451
2414
  identities: e,
2452
2415
  formRef: t,
2453
2416
  disabled: s
2454
2417
  }) => {
2455
- const { setValue: a } = Ue(), [r, o] = L();
2418
+ const { setValue: a } = De(), [r, o] = P();
2456
2419
  return e.length === 0 ? /* @__PURE__ */ n.jsx(V, { disabled: s, children: "Send" }) : /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
2457
2420
  /* @__PURE__ */ n.jsx(
2458
2421
  V,
2459
2422
  {
2460
2423
  className: "rounded-r-none inset-shadow-sm",
2461
2424
  disabled: s,
2462
- onClick: () => {
2463
- var i;
2464
- return (i = t == null ? void 0 : t.current) == null ? void 0 : i.requestSubmit();
2465
- },
2425
+ onClick: () => t?.current?.requestSubmit(),
2466
2426
  children: "Send"
2467
2427
  }
2468
2428
  ),
2469
- /* @__PURE__ */ n.jsxs(tn, { children: [
2470
- /* @__PURE__ */ n.jsx(nn, { asChild: !0, children: /* @__PURE__ */ n.jsx(
2429
+ /* @__PURE__ */ n.jsxs(zt, { children: [
2430
+ /* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(
2471
2431
  V,
2472
2432
  {
2473
2433
  disabled: s,
2474
2434
  className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
2475
2435
  size: "icon",
2476
- children: /* @__PURE__ */ n.jsx(Tn, { className: "w-4 h-4" })
2436
+ children: /* @__PURE__ */ n.jsx(pn, { className: "w-4 h-4" })
2477
2437
  }
2478
2438
  ) }),
2479
- /* @__PURE__ */ n.jsx(et, { value: r, children: /* @__PURE__ */ n.jsx(We, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: W, label: "None" }, ...e].map(
2439
+ /* @__PURE__ */ n.jsx(Ue, { value: r, children: /* @__PURE__ */ n.jsx(_e, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: G, label: "None" }, ...e].map(
2480
2440
  (i) => /* @__PURE__ */ n.jsxs(
2481
- Xe,
2441
+ Be,
2482
2442
  {
2483
2443
  onClick: () => {
2484
- var c;
2485
- o(i.id), a("identity", i.id), (c = t == null ? void 0 : t.current) == null || c.requestSubmit();
2444
+ o(i.id), a("identity", i.id), t?.current?.requestSubmit();
2486
2445
  },
2487
2446
  onMouseEnter: () => o(i.id),
2488
2447
  onMouseLeave: () => o(void 0),
2489
2448
  children: [
2490
- /* @__PURE__ */ n.jsx(ue, { value: i.id, className: "me-2" }),
2449
+ /* @__PURE__ */ n.jsx(le, { value: i.id, className: "me-2" }),
2491
2450
  i.label
2492
2451
  ]
2493
2452
  },
@@ -2496,13 +2455,13 @@ const Pr = {
2496
2455
  ) }) })
2497
2456
  ] })
2498
2457
  ] });
2499
- }, W = "__none", Ee = {
2458
+ }, G = "__none", je = {
2500
2459
  Plain: "text/plain",
2501
2460
  JSON: "application/json",
2502
2461
  XML: "application/xml",
2503
2462
  YAML: "application/yaml",
2504
2463
  CSV: "text/csv"
2505
- }, Fr = ({
2464
+ }, Tr = ({
2506
2465
  server: e,
2507
2466
  servers: t = [],
2508
2467
  url: s,
@@ -2513,13 +2472,12 @@ const Pr = {
2513
2472
  defaultBody: c = "",
2514
2473
  examples: l,
2515
2474
  requiresLogin: u = !1,
2516
- onLogin: m,
2475
+ onLogin: p,
2517
2476
  onSignUp: y
2518
2477
  }) => {
2519
- var ct, dt;
2520
- const { selectedServer: x, setSelectedServer: g } = ir(
2478
+ const { selectedServer: f, setSelectedServer: x } = Js(
2521
2479
  t.map((d) => ({ url: d }))
2522
- ), [f, p] = L(!1), v = Dn(), { setRememberedIdentity: j, getRememberedIdentity: w } = Sr(), [, E] = Mn(), [ye, ve] = L(!1), [ae, F] = L(!1), _ = X(void 0), st = Zn(j), { register: rt, control: oe, handleSubmit: at, watch: ot, setValue: M, ...be } = Jn({
2480
+ ), [m, g] = P(!1), C = Cn(), { setRememberedIdentity: j, getRememberedIdentity: R } = ur(), [, I] = Pn(), [Kt, en] = P(!1), [tn, K] = P(!1), ee = U(void 0), Je = Vn(j), { register: We, control: te, handleSubmit: Xe, watch: Ze, setValue: B, ...pe } = kn({
2523
2481
  defaultValues: {
2524
2482
  body: c,
2525
2483
  bodyContentType: "JSON",
@@ -2551,150 +2509,146 @@ const Pr = {
2551
2509
  active: !1
2552
2510
  }
2553
2511
  ]),
2554
- identity: w(
2555
- ((ct = v.data) == null ? void 0 : ct.map((d) => d.id)) ?? []
2512
+ identity: R(
2513
+ C.data?.map((d) => d.id) ?? []
2556
2514
  )
2557
2515
  }
2558
- }), A = ot(), it = X(null);
2559
- le(() => {
2560
- A.identity && st.current(A.identity);
2561
- }, [st, A.identity]);
2562
- const je = Qn({
2516
+ }), T = Ze(), Ye = U(null);
2517
+ re(() => {
2518
+ T.identity && Je.current(T.identity);
2519
+ }, [Je, T.identity]);
2520
+ const he = In({
2563
2521
  mutationFn: async (d) => {
2564
- var ut, mt;
2565
2522
  const O = performance.now(), k = !d.headers.some(
2566
- (T) => T.active && T.name.toLowerCase() === "content-type"
2567
- ), G = Object.fromEntries([
2568
- ...d.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value]),
2569
- ...k ? [["content-type", Ee[d.bodyContentType]]] : []
2570
- ]), P = new Request(
2571
- lr(e ?? x, s, d),
2523
+ (w) => w.active && w.name.toLowerCase() === "content-type"
2524
+ ), se = Object.fromEntries([
2525
+ ...d.headers.filter((w) => w.name && w.active).map((w) => [w.name, w.value]),
2526
+ ...k ? [["content-type", je[d.bodyContentType]]] : []
2527
+ ]), E = new Request(
2528
+ Ws(e ?? f, s, d),
2572
2529
  {
2573
2530
  method: a.toUpperCase(),
2574
- headers: G,
2531
+ headers: se,
2575
2532
  body: d.body ? d.body : void 0
2576
2533
  }
2577
2534
  );
2578
- d.identity !== W && await ((mt = (ut = v.data) == null ? void 0 : ut.find((T) => T.id === d.identity)) == null ? void 0 : mt.authorizeRequest(P));
2579
- const U = setTimeout(
2580
- () => F(!0),
2535
+ d.identity !== G && await C.data?.find((w) => w.id === d.identity)?.authorizeRequest(E);
2536
+ const et = setTimeout(
2537
+ () => K(!0),
2581
2538
  3210
2582
2539
  );
2583
- _.current = new AbortController();
2540
+ ee.current = new AbortController();
2584
2541
  try {
2585
- const T = await fetch(P, {
2586
- signal: _.current.signal
2542
+ const w = await fetch(E, {
2543
+ signal: ee.current.signal
2587
2544
  });
2588
- clearTimeout(U), F(!1);
2589
- const xn = performance.now() - O, pt = await T.text(), gn = new URL(P.url);
2545
+ clearTimeout(et), K(!1);
2546
+ const an = performance.now() - O, tt = await w.text(), on = new URL(E.url);
2590
2547
  return {
2591
- status: T.status,
2592
- headers: Array.from(T.headers.entries()),
2593
- size: pt.length,
2594
- body: pt,
2595
- time: xn,
2548
+ status: w.status,
2549
+ headers: Array.from(w.headers.entries()),
2550
+ size: tt.length,
2551
+ body: tt,
2552
+ time: an,
2596
2553
  request: {
2597
- method: P.method.toUpperCase(),
2598
- url: P.url,
2554
+ method: E.method.toUpperCase(),
2555
+ url: E.url,
2599
2556
  headers: [
2600
- ["Host", gn.host],
2557
+ ["Host", on.host],
2601
2558
  ["User-Agent", "Zudoku Playground"],
2602
- ...Array.from(P.headers.entries())
2559
+ ...Array.from(E.headers.entries())
2603
2560
  ],
2604
2561
  body: d.body ? d.body : void 0
2605
2562
  }
2606
2563
  };
2607
- } catch (T) {
2608
- throw clearTimeout(U), F(!1), T instanceof TypeError ? new Error(
2564
+ } catch (w) {
2565
+ throw clearTimeout(et), K(!1), w instanceof TypeError ? new Error(
2609
2566
  "The request failed, possibly due to network issues or CORS policy."
2610
- ) : T;
2567
+ ) : w;
2611
2568
  }
2612
2569
  }
2613
2570
  });
2614
- le(() => () => {
2615
- var d;
2616
- (d = _.current) == null || d.abort();
2571
+ re(() => () => {
2572
+ ee.current?.abort();
2617
2573
  }, []);
2618
- const pn = /* @__PURE__ */ n.jsx(
2619
- rr,
2574
+ const nn = /* @__PURE__ */ n.jsx(
2575
+ Us,
2620
2576
  {
2621
2577
  path: s,
2622
2578
  renderParam: ({ name: d, originalValue: O, index: k }) => {
2623
- var P;
2624
- const G = (P = A.pathParams.find(
2625
- (U) => U.name === d
2626
- )) == null ? void 0 : P.value;
2579
+ const se = T.pathParams.find(
2580
+ (E) => E.name === d
2581
+ )?.value;
2627
2582
  return /* @__PURE__ */ n.jsx(
2628
- en,
2583
+ Bt,
2629
2584
  {
2630
2585
  name: d,
2631
2586
  backgroundOpacity: "0",
2632
2587
  slug: d,
2633
- onClick: () => be.setFocus(`pathParams.${k}.value`),
2634
- children: G || O
2588
+ onClick: () => pe.setFocus(`pathParams.${k}.value`),
2589
+ children: se || O
2635
2590
  }
2636
2591
  );
2637
2592
  }
2638
2593
  }
2639
- ), lt = A.queryParams.filter((d) => d.active).map((d, O, k) => /* @__PURE__ */ n.jsxs(D, { children: [
2594
+ ), Ke = T.queryParams.filter((d) => d.active).map((d, O, k) => /* @__PURE__ */ n.jsxs(D, { children: [
2640
2595
  d.name,
2641
2596
  "=",
2642
2597
  encodeURIComponent(d.value).replaceAll("%20", "+"),
2643
2598
  O < k.length - 1 && "&",
2644
2599
  /* @__PURE__ */ n.jsx("wbr", {})
2645
- ] }, d.name)), hn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2646
- Pe,
2600
+ ] }, d.name)), sn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2601
+ Ne,
2647
2602
  {
2648
2603
  onValueChange: (d) => {
2649
- E(() => g(d));
2604
+ I(() => x(d));
2650
2605
  },
2651
- value: x,
2652
- defaultValue: x,
2606
+ value: f,
2607
+ defaultValue: f,
2653
2608
  children: [
2654
- /* @__PURE__ */ n.jsx(Le, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Re, {}) }),
2655
- /* @__PURE__ */ n.jsx(Ie, { children: t.map((d) => /* @__PURE__ */ n.jsx(ee, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
2609
+ /* @__PURE__ */ n.jsx(Ce, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
2610
+ /* @__PURE__ */ n.jsx(we, { children: t.map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
2656
2611
  ]
2657
2612
  }
2658
- ) }), fn = u && !ye, ie = ["POST", "PUT", "PATCH", "DELETE"].includes(
2613
+ ) }), rn = u && !Kt, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
2659
2614
  a.toUpperCase()
2660
2615
  );
2661
2616
  return /* @__PURE__ */ n.jsx(
2662
- Wn,
2617
+ Dn,
2663
2618
  {
2664
- register: rt,
2665
- control: oe,
2666
- handleSubmit: at,
2667
- watch: ot,
2668
- setValue: M,
2669
- ...be,
2619
+ register: We,
2620
+ control: te,
2621
+ handleSubmit: Xe,
2622
+ watch: Ze,
2623
+ setValue: B,
2624
+ ...pe,
2670
2625
  children: /* @__PURE__ */ n.jsxs(
2671
2626
  "form",
2672
2627
  {
2673
- onSubmit: at((d) => {
2674
- var O;
2675
- ((O = v.data) == null ? void 0 : O.length) === 0 || d.identity ? je.mutate(d) : p(!0);
2628
+ onSubmit: Xe((d) => {
2629
+ C.data?.length === 0 || d.identity ? he.mutate(d) : g(!0);
2676
2630
  }),
2677
- ref: it,
2631
+ ref: Ye,
2678
2632
  className: "relative",
2679
2633
  children: [
2680
2634
  /* @__PURE__ */ n.jsx(
2681
- br,
2635
+ ir,
2682
2636
  {
2683
- identities: v.data ?? [],
2684
- open: f,
2685
- onOpenChange: p,
2637
+ identities: C.data ?? [],
2638
+ open: m,
2639
+ onOpenChange: g,
2686
2640
  onSubmit: ({ rememberedIdentity: d, identity: O }) => {
2687
- d && M("identity", O ?? W), p(!1), je.mutate({ ...A, identity: O });
2641
+ d && B("identity", O ?? G), g(!1), he.mutate({ ...T, identity: O });
2688
2642
  }
2689
2643
  }
2690
2644
  ),
2691
2645
  /* @__PURE__ */ n.jsx(
2692
- wr,
2646
+ mr,
2693
2647
  {
2694
- open: fn,
2695
- setOpen: (d) => ve(!d),
2648
+ open: rn,
2649
+ setOpen: (d) => en(!d),
2696
2650
  onSignUp: y,
2697
- onLogin: m
2651
+ onLogin: p
2698
2652
  }
2699
2653
  ),
2700
2654
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
@@ -2703,135 +2657,133 @@ const Pr = {
2703
2657
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
2704
2658
  /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2705
2659
  /* @__PURE__ */ n.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
2706
- hn,
2707
- pn,
2708
- lt.length > 0 ? "?" : "",
2709
- lt
2660
+ sn,
2661
+ nn,
2662
+ Ke.length > 0 ? "?" : "",
2663
+ Ke
2710
2664
  ] })
2711
2665
  ] }),
2712
2666
  /* @__PURE__ */ n.jsx(
2713
- Vr,
2667
+ wr,
2714
2668
  {
2715
- identities: v.data ?? [],
2716
- formRef: it,
2717
- disabled: v.isLoading || be.formState.isSubmitting
2669
+ identities: C.data ?? [],
2670
+ formRef: Ye,
2671
+ disabled: C.isLoading || pe.formState.isSubmitting
2718
2672
  }
2719
2673
  )
2720
2674
  ] }),
2721
- /* @__PURE__ */ n.jsxs(Vt, { defaultValue: "parameters", children: [
2722
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Ft, { children: [
2723
- /* @__PURE__ */ n.jsxs(H, { value: "parameters", children: [
2675
+ /* @__PURE__ */ n.jsxs(wt, { defaultValue: "parameters", children: [
2676
+ /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Tt, { children: [
2677
+ /* @__PURE__ */ n.jsxs(z, { value: "parameters", children: [
2724
2678
  "Parameters",
2725
- (A.pathParams.some((d) => d.value !== "") || A.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2679
+ (T.pathParams.some((d) => d.value !== "") || T.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2726
2680
  ] }),
2727
- /* @__PURE__ */ n.jsxs(H, { value: "headers", children: [
2681
+ /* @__PURE__ */ n.jsxs(z, { value: "headers", children: [
2728
2682
  "Headers",
2729
- A.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2683
+ T.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2730
2684
  ] }),
2731
- /* @__PURE__ */ n.jsxs(H, { value: "auth", children: [
2685
+ /* @__PURE__ */ n.jsxs(z, { value: "auth", children: [
2732
2686
  "Auth",
2733
- A.identity !== W && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2687
+ T.identity !== G && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2734
2688
  ] }),
2735
- /* @__PURE__ */ n.jsxs(H, { value: "body", children: [
2689
+ /* @__PURE__ */ n.jsxs(z, { value: "body", children: [
2736
2690
  "Body",
2737
- A.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2691
+ T.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2738
2692
  ] })
2739
2693
  ] }) }),
2740
- /* @__PURE__ */ n.jsx(Q, { value: "headers", children: /* @__PURE__ */ n.jsx(yr, { control: oe, headers: r }) }),
2741
- /* @__PURE__ */ n.jsxs(Q, { value: "parameters", children: [
2694
+ /* @__PURE__ */ n.jsx(M, { value: "headers", children: /* @__PURE__ */ n.jsx(ar, { control: te, headers: r }) }),
2695
+ /* @__PURE__ */ n.jsxs(M, { value: "parameters", children: [
2742
2696
  i.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2743
2697
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
2744
- /* @__PURE__ */ n.jsx(jr, { url: s, control: oe })
2698
+ /* @__PURE__ */ n.jsx(lr, { url: s, control: te })
2745
2699
  ] }),
2746
2700
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2747
2701
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
2748
- /* @__PURE__ */ n.jsx(Cr, { control: oe, queryParams: o })
2702
+ /* @__PURE__ */ n.jsx(dr, { control: te, queryParams: o })
2749
2703
  ] })
2750
2704
  ] }),
2751
- /* @__PURE__ */ n.jsxs(Q, { value: "body", children: [
2705
+ /* @__PURE__ */ n.jsxs(M, { value: "body", children: [
2752
2706
  !["POST", "PUT", "PATCH", "DELETE"].includes(
2753
2707
  a.toUpperCase()
2754
- ) && /* @__PURE__ */ n.jsxs(Ve, { className: "mb-2", children: [
2755
- /* @__PURE__ */ n.jsx(ft, { className: "w-4 h-4" }),
2756
- /* @__PURE__ */ n.jsx(Fe, { children: "Body" }),
2757
- /* @__PURE__ */ n.jsx(_e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
2708
+ ) && /* @__PURE__ */ n.jsxs(Ee, { className: "mb-2", children: [
2709
+ /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2710
+ /* @__PURE__ */ n.jsx(Pe, { children: "Body" }),
2711
+ /* @__PURE__ */ n.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
2758
2712
  ] }),
2759
2713
  /* @__PURE__ */ n.jsx(
2760
- Kt,
2714
+ _t,
2761
2715
  {
2762
- ...rt("body"),
2763
- className: b(
2716
+ ...We("body"),
2717
+ className: v(
2764
2718
  "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
2765
- !ie && "h-20 bg-muted"
2719
+ !ne && "h-20 bg-muted"
2766
2720
  ),
2767
- placeholder: ie ? void 0 : "This request does not support a body",
2768
- disabled: !ie
2721
+ placeholder: ne ? void 0 : "This request does not support a body",
2722
+ disabled: !ne
2769
2723
  }
2770
2724
  ),
2771
- ie && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
2725
+ ne && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
2772
2726
  /* @__PURE__ */ n.jsxs(
2773
- Pe,
2727
+ Ne,
2774
2728
  {
2775
- value: A.bodyContentType,
2776
- onValueChange: (d) => M(
2729
+ value: T.bodyContentType,
2730
+ onValueChange: (d) => B(
2777
2731
  "bodyContentType",
2778
2732
  d
2779
2733
  ),
2780
2734
  children: [
2781
- /* @__PURE__ */ n.jsx(Le, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx(Re, {}) }),
2782
- /* @__PURE__ */ n.jsx(Ie, { children: Object.keys(Ee).map((d) => /* @__PURE__ */ n.jsx(ee, { value: d, children: d }, d)) })
2735
+ /* @__PURE__ */ n.jsx(Ce, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
2736
+ /* @__PURE__ */ n.jsx(we, { children: Object.keys(je).map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d }, d)) })
2783
2737
  ]
2784
2738
  }
2785
2739
  ),
2786
2740
  l && l.length > 0 && /* @__PURE__ */ n.jsx(
2787
- hr,
2741
+ tr,
2788
2742
  {
2789
2743
  examples: l,
2790
2744
  onSelect: (d, O) => {
2791
- var G;
2792
- M(
2745
+ B(
2793
2746
  "body",
2794
2747
  JSON.stringify(d.value, null, 2)
2795
2748
  );
2796
- const k = (G = Xn(Ee).find(
2797
- ([P, U]) => U === O
2798
- )) == null ? void 0 : G[0];
2799
- k && M("bodyContentType", k);
2749
+ const k = qn(je).find(
2750
+ ([se, E]) => E === O
2751
+ )?.[0];
2752
+ k && B("bodyContentType", k);
2800
2753
  }
2801
2754
  }
2802
2755
  )
2803
2756
  ] })
2804
2757
  ] }),
2805
- /* @__PURE__ */ n.jsx(Q, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2806
- ((dt = v.data) == null ? void 0 : dt.length) === 0 && /* @__PURE__ */ n.jsxs(Ve, { children: [
2807
- /* @__PURE__ */ n.jsx(ft, { className: "w-4 h-4" }),
2808
- /* @__PURE__ */ n.jsx(Fe, { children: "Authentication" }),
2809
- /* @__PURE__ */ n.jsx(_e, { children: "No identities found. Please create an identity first." })
2758
+ /* @__PURE__ */ n.jsx(M, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2759
+ C.data?.length === 0 && /* @__PURE__ */ n.jsxs(Ee, { children: [
2760
+ /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2761
+ /* @__PURE__ */ n.jsx(Pe, { children: "Authentication" }),
2762
+ /* @__PURE__ */ n.jsx($e, { children: "No identities found. Please create an identity first." })
2810
2763
  ] }),
2811
2764
  /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ n.jsx(
2812
- on,
2765
+ Qt,
2813
2766
  {
2814
- value: A.identity,
2815
- identities: v.data ?? [],
2816
- setValue: (d) => M("identity", d)
2767
+ value: T.identity,
2768
+ identities: C.data ?? [],
2769
+ setValue: (d) => B("identity", d)
2817
2770
  }
2818
2771
  ) })
2819
2772
  ] }) })
2820
2773
  ] })
2821
2774
  ] }),
2822
2775
  /* @__PURE__ */ n.jsx(
2823
- qr,
2776
+ Sr,
2824
2777
  {
2825
- queryMutation: je,
2826
- showPathParamsWarning: A.pathParams.some(
2778
+ queryMutation: he,
2779
+ showPathParamsWarning: T.pathParams.some(
2827
2780
  (d) => d.value === ""
2828
2781
  ),
2829
- showLongRunningWarning: ae,
2782
+ showLongRunningWarning: tn,
2830
2783
  onCancel: () => {
2831
- var d;
2832
- (d = _.current) == null || d.abort(
2784
+ ee.current?.abort(
2833
2785
  "Request cancelled by the user"
2834
- ), F(!1);
2786
+ ), K(!1);
2835
2787
  }
2836
2788
  }
2837
2789
  )
@@ -2841,7 +2793,7 @@ const Pr = {
2841
2793
  )
2842
2794
  }
2843
2795
  );
2844
- }, _r = ({
2796
+ }, Ar = ({
2845
2797
  className: e,
2846
2798
  size: t = 16
2847
2799
  }) => /* @__PURE__ */ n.jsx(
@@ -2862,33 +2814,33 @@ const Pr = {
2862
2814
  }
2863
2815
  )
2864
2816
  }
2865
- ), Br = (e) => {
2866
- const [t, s] = L(!1);
2867
- return /* @__PURE__ */ n.jsxs(Be, { onOpenChange: (a) => s(a), children: [
2868
- /* @__PURE__ */ n.jsx(Hn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2817
+ ), Or = (e) => {
2818
+ const [t, s] = P(!1);
2819
+ return /* @__PURE__ */ n.jsxs(Le, { onOpenChange: (a) => s(a), children: [
2820
+ /* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2869
2821
  "button",
2870
2822
  {
2871
2823
  type: "button",
2872
2824
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
2873
2825
  children: [
2874
2826
  "Test",
2875
- /* @__PURE__ */ n.jsx(_r, { size: 14 })
2827
+ /* @__PURE__ */ n.jsx(Ar, { size: 14 })
2876
2828
  ]
2877
2829
  }
2878
2830
  ) }),
2879
2831
  /* @__PURE__ */ n.jsxs(
2880
- ze,
2832
+ Re,
2881
2833
  {
2882
2834
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
2883
2835
  "aria-describedby": void 0,
2884
2836
  children: [
2885
- /* @__PURE__ */ n.jsx(Un, { children: /* @__PURE__ */ n.jsx(Me, { children: "Playground" }) }),
2886
- t && /* @__PURE__ */ n.jsx(Fr, { ...e })
2837
+ /* @__PURE__ */ n.jsx(Ln, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
2838
+ t && /* @__PURE__ */ n.jsx(Tr, { ...e })
2887
2839
  ]
2888
2840
  }
2889
2841
  )
2890
2842
  ] });
2891
- }, zr = {
2843
+ }, Er = {
2892
2844
  get: "green",
2893
2845
  post: "blue",
2894
2846
  put: "yellow",
@@ -2896,7 +2848,7 @@ const Pr = {
2896
2848
  patch: "purple",
2897
2849
  options: "gray",
2898
2850
  head: "gray"
2899
- }, Et = ({
2851
+ }, gt = ({
2900
2852
  label: e,
2901
2853
  path: t,
2902
2854
  operations: s,
@@ -2918,21 +2870,21 @@ const Pr = {
2918
2870
  href: `${t}#${o.slug}`,
2919
2871
  badge: {
2920
2872
  label: o.method,
2921
- color: zr[o.method.toLowerCase()],
2873
+ color: Er[o.method.toLowerCase()],
2922
2874
  invert: !0
2923
2875
  }
2924
2876
  }))
2925
- }), ln = It(
2877
+ }), Jt = jt(
2926
2878
  void 0
2927
- ), Aa = ln.Provider, Mr = () => {
2928
- const e = Gn(ln);
2879
+ ), pa = Jt.Provider, Pr = () => {
2880
+ const e = $n(Jt);
2929
2881
  if (!e)
2930
2882
  throw new Error("useOasConfig must be used within a OasConfigProvider");
2931
2883
  return e.config;
2932
- }, Pt = (e) => ({
2884
+ }, yt = (e) => ({
2933
2885
  path: e.routePath,
2934
2886
  async lazy() {
2935
- const { OasProvider: t } = await import("./OasProvider-CsUksaAo.js");
2887
+ const { OasProvider: t } = await import("./OasProvider-DalHQixM.js");
2936
2888
  return {
2937
2889
  element: /* @__PURE__ */ n.jsx(
2938
2890
  t,
@@ -2946,39 +2898,39 @@ const Pr = {
2946
2898
  };
2947
2899
  },
2948
2900
  children: e.routes
2949
- }), cn = ({
2901
+ }), Wt = ({
2950
2902
  path: e,
2951
2903
  tag: t,
2952
2904
  untagged: s
2953
2905
  }) => ({
2954
2906
  path: e,
2955
2907
  async lazy() {
2956
- const { OperationList: a } = await import("./OperationList-BlUBNsw2.js");
2908
+ const { OperationList: a } = await import("./OperationList-BB09ENaq.js");
2957
2909
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
2958
2910
  }
2959
- }), Gr = ({
2911
+ }), $r = ({
2960
2912
  render: e,
2961
2913
  path: t
2962
2914
  }) => {
2963
- const { type: s, input: a } = Mr(), { tag: r } = En(), o = Pn(), i = Qs(mn, { type: s, input: a }), {
2915
+ const { type: s, input: a } = Pr(), { tag: r } = gn(), o = yn(), i = Is(Yt, { type: s, input: a }), {
2964
2916
  data: { schema: c }
2965
- } = qn(i), l = c.tags.at(0);
2966
- return !r && (l != null && l.slug) ? /* @__PURE__ */ n.jsx(
2967
- Ln,
2917
+ } = Sn(i), l = c.tags.at(0);
2918
+ return !r && l?.slug ? /* @__PURE__ */ n.jsx(
2919
+ vn,
2968
2920
  {
2969
2921
  to: {
2970
- pathname: Rn(t, { tag: l.slug }),
2922
+ pathname: bn(t, { tag: l.slug }),
2971
2923
  search: o.search
2972
2924
  }
2973
2925
  }
2974
2926
  ) : r && c.tags.some((u) => u.slug === r) ? e(r) : null;
2975
- }, Ur = ({ path: e }) => ({
2927
+ }, Lr = ({ path: e }) => ({
2976
2928
  path: e,
2977
2929
  async lazy() {
2978
- const { OperationList: t } = await import("./OperationList-BlUBNsw2.js");
2930
+ const { OperationList: t } = await import("./OperationList-BB09ENaq.js");
2979
2931
  return {
2980
2932
  element: /* @__PURE__ */ n.jsx(
2981
- Gr,
2933
+ $r,
2982
2934
  {
2983
2935
  path: e,
2984
2936
  render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
@@ -2986,35 +2938,35 @@ const Pr = {
2986
2938
  )
2987
2939
  };
2988
2940
  }
2989
- }), dn = (e) => [
2941
+ }), Xt = (e) => [
2990
2942
  // Category without tagged operations
2991
- cn({
2992
- path: I(e, nt),
2943
+ Wt({
2944
+ path: L(e, Qe),
2993
2945
  untagged: !0
2994
2946
  }),
2995
2947
  // Schema list route
2996
2948
  {
2997
- path: I(e, "~schemas"),
2949
+ path: L(e, "~schemas"),
2998
2950
  lazy: async () => {
2999
- const { SchemaList: t } = await import("./SchemaList-BQiBukIP.js");
2951
+ const { SchemaList: t } = await import("./SchemaList-BH9bgMRw.js");
3000
2952
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
3001
2953
  }
3002
2954
  }
3003
- ], Hr = (e, t) => {
3004
- const s = I(e, t.at(0) ?? nt);
2955
+ ], Rr = (e, t) => {
2956
+ const s = L(e, t.at(0) ?? Qe);
3005
2957
  return [
3006
2958
  // Redirect to first tag on the index route
3007
- { index: !0, loader: () => $n(s) },
2959
+ { index: !0, loader: () => xn(s) },
3008
2960
  // Create routes for each tag
3009
2961
  ...t.map(
3010
- (a) => cn({
3011
- path: I(e, a),
2962
+ (a) => Wt({
2963
+ path: L(e, a),
3012
2964
  tag: a
3013
2965
  })
3014
2966
  ),
3015
- ...dn(e)
2967
+ ...Xt(e)
3016
2968
  ];
3017
- }, un = (e) => e.type === "file" ? Object.keys(e.input) : [], Qr = ({
2969
+ }, Zt = (e) => e.type === "file" ? Object.keys(e.input) : [], Ir = ({
3018
2970
  basePath: e,
3019
2971
  config: t,
3020
2972
  client: s
@@ -3022,30 +2974,30 @@ const Pr = {
3022
2974
  const a = t.tagPages;
3023
2975
  if (!a)
3024
2976
  return [
3025
- Pt({
2977
+ yt({
3026
2978
  basePath: e,
3027
2979
  routePath: e,
3028
2980
  routes: [
3029
- Ur({ path: e + "/:tag?" }),
3030
- ...dn(e)
2981
+ Lr({ path: e + "/:tag?" }),
2982
+ ...Xt(e)
3031
2983
  ],
3032
2984
  client: s,
3033
2985
  config: t
3034
2986
  })
3035
2987
  ];
3036
- const r = un(t);
2988
+ const r = Zt(t);
3037
2989
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3038
- const c = I(e, i);
3039
- return Pt({
2990
+ const c = L(e, i);
2991
+ return yt({
3040
2992
  basePath: e,
3041
2993
  version: i,
3042
2994
  routePath: c,
3043
- routes: Hr(c, a),
2995
+ routes: Rr(c, a),
3044
2996
  client: s,
3045
2997
  config: t
3046
2998
  });
3047
2999
  });
3048
- }, mn = nr(`
3000
+ }, Yt = Ms(`
3049
3001
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
3050
3002
  schema(input: $input, type: $type) {
3051
3003
  tags {
@@ -3067,8 +3019,8 @@ const Pr = {
3067
3019
  }
3068
3020
  }
3069
3021
  }
3070
- `), nt = "~endpoints", Oa = (e) => {
3071
- const t = I(e.navigationId ?? "/reference"), s = new hs(e);
3022
+ `), Qe = "~endpoints", ha = (e) => {
3023
+ const t = L(e.navigationId ?? "/reference"), s = new ts(e);
3072
3024
  return {
3073
3025
  getHead: () => {
3074
3026
  if (e.type === "url" && !e.skipPreload)
@@ -3093,116 +3045,114 @@ const Pr = {
3093
3045
  children: c,
3094
3046
  ...l
3095
3047
  }) => {
3096
- const u = Vn();
3048
+ const u = wn();
3097
3049
  if (!r)
3098
3050
  throw new Error("Server is required");
3099
3051
  return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3100
- ne,
3052
+ X,
3101
3053
  {
3102
3054
  className: "gap-2 items-center",
3103
3055
  variant: "outline",
3104
3056
  onClick: u.login,
3105
3057
  children: [
3106
3058
  "Login to open in Playground ",
3107
- /* @__PURE__ */ n.jsx(An, { size: 16 })
3059
+ /* @__PURE__ */ n.jsx(hn, { size: 16 })
3108
3060
  ]
3109
3061
  }
3110
3062
  ) : /* @__PURE__ */ n.jsx(
3111
- Br,
3063
+ Or,
3112
3064
  {
3113
3065
  url: i ?? "/",
3114
3066
  method: o ?? "get",
3115
3067
  server: r,
3116
3068
  ...l,
3117
- children: /* @__PURE__ */ n.jsx(ne, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3069
+ children: /* @__PURE__ */ n.jsx(X, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3118
3070
  "Open in Playground ",
3119
- /* @__PURE__ */ n.jsx(On, { size: 16 })
3071
+ /* @__PURE__ */ n.jsx(fn, { size: 16 })
3120
3072
  ] }) })
3121
3073
  }
3122
3074
  );
3123
3075
  }
3124
3076
  }),
3125
3077
  getSidebar: async (a, r) => {
3126
- var i, c, l, u;
3127
- if (!xt({ path: t, end: !1 }, a))
3078
+ if (!st({ path: t, end: !1 }, a))
3128
3079
  return [];
3129
- const o = xt(
3080
+ const o = st(
3130
3081
  { path: `${t}/:version?/:tag`, end: !0 },
3131
3082
  a
3132
3083
  );
3133
3084
  try {
3134
- const m = o == null ? void 0 : o.params.version, y = m ?? un(e).at(0), { type: x } = e, g = x === "file" ? e.input[y] : e.input, f = Yt(s, mn, {
3135
- type: x,
3136
- input: g
3137
- }), p = await r.queryClient.ensureQueryData(f), v = p.schema.tags.flatMap((w) => {
3138
- var ae, F, _;
3139
- if (!w.name || w.operations.length === 0) return [];
3140
- const E = I(t, m, w.slug), ye = ((ae = w.extensions) == null ? void 0 : ae["x-zudoku-collapsed"]) ?? !((F = e.options) != null && F.expandAllTags), ve = ((_ = w.extensions) == null ? void 0 : _["x-zudoku-collapsible"]) ?? !0;
3141
- return Et({
3142
- label: w.name,
3143
- path: E,
3144
- operations: w.operations,
3145
- collapsed: ye,
3146
- collapsible: ve
3085
+ const i = o?.params.version, c = i ?? Zt(e).at(0), { type: l } = e, u = l === "file" ? e.input[c] : e.input, p = Ft(s, Yt, {
3086
+ type: l,
3087
+ input: u
3088
+ }), y = await r.queryClient.ensureQueryData(p), f = y.schema.tags.flatMap((m) => {
3089
+ if (!m.name || m.operations.length === 0) return [];
3090
+ const g = L(t, i, m.slug), C = m.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, j = m.extensions?.["x-zudoku-collapsible"] ?? !0;
3091
+ return gt({
3092
+ label: m.name,
3093
+ path: g,
3094
+ operations: m.operations,
3095
+ collapsed: C,
3096
+ collapsible: j
3147
3097
  });
3148
- }), j = (i = p.schema.tags.find(
3149
- (w) => !w.name
3150
- )) == null ? void 0 : i.operations;
3151
- return j && v.push(
3152
- Et({
3098
+ }), x = y.schema.tags.find(
3099
+ (m) => !m.name
3100
+ )?.operations;
3101
+ return x && f.push(
3102
+ gt({
3153
3103
  label: "Other endpoints",
3154
- path: I(t, m, nt),
3155
- operations: j,
3156
- collapsed: !((c = e.options) != null && c.expandAllTags)
3104
+ path: L(t, i, Qe),
3105
+ operations: x,
3106
+ collapsed: !e.options?.expandAllTags
3157
3107
  })
3158
- ), (u = (l = p.schema.components) == null ? void 0 : l.schemas) != null && u.length && v.push({
3108
+ ), y.schema.components?.schemas?.length && f.push({
3159
3109
  type: "link",
3160
3110
  label: "Schemas",
3161
- href: I(t, m, "~schemas")
3162
- }), v;
3111
+ href: L(t, i, "~schemas")
3112
+ }), f;
3163
3113
  } catch {
3164
3114
  return [];
3165
3115
  }
3166
3116
  },
3167
- getRoutes: () => Qr({ basePath: t, config: e, client: s })
3117
+ getRoutes: () => Ir({ basePath: t, config: e, client: s })
3168
3118
  };
3169
3119
  };
3170
3120
  export {
3171
- Oa as A,
3172
- wt as C,
3173
- Ta as G,
3174
- Ts as L,
3175
- Aa as O,
3176
- Br as P,
3177
- bs as Q,
3178
- Xt as S,
3121
+ ha as A,
3122
+ mt as C,
3123
+ ma as G,
3124
+ ps as L,
3125
+ pa as O,
3126
+ Or as P,
3127
+ is as Q,
3128
+ qt as S,
3179
3129
  h as T,
3180
- nt as U,
3181
- Qs as a,
3182
- Tt as b,
3183
- At as c,
3184
- nr as d,
3185
- ir as e,
3186
- en as f,
3187
- un as g,
3188
- rr as h,
3189
- Us as i,
3190
- Nt as j,
3191
- Sa as k,
3192
- As as l,
3193
- Ar as m,
3194
- Je as n,
3195
- Wt as o,
3196
- fs as p,
3197
- Gs as q,
3198
- we as r,
3199
- $ as s,
3200
- xs as t,
3201
- Mr as u,
3202
- wa as v,
3203
- ws as w,
3204
- Ns as x,
3205
- Ut as y,
3206
- mn as z
3130
+ Qe as U,
3131
+ Is as a,
3132
+ pt as b,
3133
+ ht as c,
3134
+ Ms as d,
3135
+ Js as e,
3136
+ Bt as f,
3137
+ Zt as g,
3138
+ Us as h,
3139
+ Ls as i,
3140
+ ct as j,
3141
+ da as k,
3142
+ hs as l,
3143
+ hr as m,
3144
+ Fe as n,
3145
+ Dt as o,
3146
+ ns as p,
3147
+ $s as q,
3148
+ xe as r,
3149
+ A as s,
3150
+ ss as t,
3151
+ Pr as u,
3152
+ ua as v,
3153
+ ms as w,
3154
+ cs as x,
3155
+ Lt as y,
3156
+ Yt as z
3207
3157
  };
3208
- //# sourceMappingURL=index-CZnufgn5.js.map
3158
+ //# sourceMappingURL=index-sS7O9W-R.js.map