zudoku 0.0.0-f3858d6 → 0.0.0-f3f5bb50

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 (2153) hide show
  1. package/README.md +141 -0
  2. package/cli.js +10 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +23 -10
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -2
  9. package/dist/app/entry.client.js +54 -5
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -8
  12. package/dist/app/entry.server.js +20 -18
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +4 -3
  18. package/dist/app/main.js +54 -49
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +12 -11
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +18 -2
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +20 -6
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/analytics/lib.js +1 -1
  40. package/dist/cli/common/analytics/lib.js.map +1 -1
  41. package/dist/cli/common/logger.js +8 -0
  42. package/dist/cli/common/logger.js.map +1 -1
  43. package/dist/cli/common/machine-id/lib.js +3 -1
  44. package/dist/cli/common/machine-id/lib.js.map +1 -1
  45. package/dist/cli/common/outdated.js +4 -2
  46. package/dist/cli/common/outdated.js.map +1 -1
  47. package/dist/cli/common/output.js +2 -3
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/box.js +2 -2
  50. package/dist/cli/common/utils/box.js.map +1 -1
  51. package/dist/cli/common/utils/ports.d.ts +1 -1
  52. package/dist/cli/common/utils/ports.js +16 -15
  53. package/dist/cli/common/utils/ports.js.map +1 -1
  54. package/dist/cli/common/validators/lib.js +1 -1
  55. package/dist/cli/common/validators/lib.js.map +1 -1
  56. package/dist/cli/dev/handler.d.ts +1 -0
  57. package/dist/cli/dev/handler.js +14 -15
  58. package/dist/cli/dev/handler.js.map +1 -1
  59. package/dist/cli/preview/handler.d.ts +3 -0
  60. package/dist/cli/preview/handler.js +35 -0
  61. package/dist/cli/preview/handler.js.map +1 -0
  62. package/dist/codegen.d.ts +3 -0
  63. package/dist/codegen.js +45 -0
  64. package/dist/codegen.js.map +1 -0
  65. package/dist/config/config.d.ts +29 -13
  66. package/dist/config/file-exists.d.ts +1 -0
  67. package/dist/config/file-exists.js +5 -0
  68. package/dist/config/file-exists.js.map +1 -0
  69. package/dist/config/loader.d.ts +21 -0
  70. package/dist/config/loader.js +141 -0
  71. package/dist/config/loader.js.map +1 -0
  72. package/dist/config/validators/BuildSchema.d.ts +36 -0
  73. package/dist/config/validators/BuildSchema.js +25 -0
  74. package/dist/config/validators/BuildSchema.js.map +1 -0
  75. package/dist/config/validators/InputNavigationSchema.d.ts +7486 -0
  76. package/dist/config/validators/InputNavigationSchema.js +77 -0
  77. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  78. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  79. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  80. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  81. package/dist/config/validators/NavigationSchema.js +98 -0
  82. package/dist/config/validators/NavigationSchema.js.map +1 -0
  83. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  84. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  85. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  86. package/dist/config/validators/auth.d.ts +2 -2
  87. package/dist/config/validators/auth.js +1 -1
  88. package/dist/config/validators/auth.js.map +1 -1
  89. package/dist/config/validators/icon-types.d.ts +2 -0
  90. package/dist/config/validators/icon-types.js +1834 -0
  91. package/dist/config/validators/icon-types.js.map +1 -0
  92. package/dist/config/validators/validate.d.ts +667 -1479
  93. package/dist/config/validators/validate.js +357 -136
  94. package/dist/config/validators/validate.js.map +1 -1
  95. package/dist/config/validators/validate.test.js +140 -0
  96. package/dist/config/validators/validate.test.js.map +1 -0
  97. package/dist/flat-config.d.ts +331 -0
  98. package/dist/index.d.ts +10 -5
  99. package/dist/index.js +6 -1
  100. package/dist/index.js.map +1 -1
  101. package/dist/lib/MissingIcon.d.ts +2 -0
  102. package/dist/lib/MissingIcon.js +7 -0
  103. package/dist/lib/MissingIcon.js.map +1 -0
  104. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  105. package/dist/lib/assets/language-icons/csharp.js +4 -0
  106. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  107. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  108. package/dist/lib/assets/language-icons/css.js +4 -0
  109. package/dist/lib/assets/language-icons/css.js.map +1 -0
  110. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  111. package/dist/lib/assets/language-icons/go.js +4 -0
  112. package/dist/lib/assets/language-icons/go.js.map +1 -0
  113. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  114. package/dist/lib/assets/language-icons/graphql.js +4 -0
  115. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  116. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  117. package/dist/lib/assets/language-icons/html.js +4 -0
  118. package/dist/lib/assets/language-icons/html.js.map +1 -0
  119. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  120. package/dist/lib/assets/language-icons/java.js +4 -0
  121. package/dist/lib/assets/language-icons/java.js.map +1 -0
  122. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  123. package/dist/lib/assets/language-icons/javascript.js +4 -0
  124. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  125. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  126. package/dist/lib/assets/language-icons/json.js +4 -0
  127. package/dist/lib/assets/language-icons/json.js.map +1 -0
  128. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  129. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  130. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  131. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  132. package/dist/lib/assets/language-icons/markdown.js +4 -0
  133. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  134. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  135. package/dist/lib/assets/language-icons/mdx.js +4 -0
  136. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  137. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  138. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  139. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  140. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  141. package/dist/lib/assets/language-icons/php.js +4 -0
  142. package/dist/lib/assets/language-icons/php.js.map +1 -0
  143. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  144. package/dist/lib/assets/language-icons/python.js +4 -0
  145. package/dist/lib/assets/language-icons/python.js.map +1 -0
  146. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  147. package/dist/lib/assets/language-icons/react.js +4 -0
  148. package/dist/lib/assets/language-icons/react.js.map +1 -0
  149. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  150. package/dist/lib/assets/language-icons/ruby.js +4 -0
  151. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  152. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  153. package/dist/lib/assets/language-icons/rust.js +4 -0
  154. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  155. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  156. package/dist/lib/assets/language-icons/shell.js +4 -0
  157. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  158. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  159. package/dist/lib/assets/language-icons/swift.js +4 -0
  160. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  161. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  162. package/dist/lib/assets/language-icons/toml.js +4 -0
  163. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  164. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  165. package/dist/lib/assets/language-icons/typescript.js +4 -0
  166. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  167. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  168. package/dist/lib/assets/language-icons/xml.js +4 -0
  169. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  170. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  171. package/dist/lib/assets/language-icons/yaml.js +4 -0
  172. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  173. package/dist/lib/auth/issuer.d.ts +2 -0
  174. package/dist/lib/auth/issuer.js +37 -0
  175. package/dist/lib/auth/issuer.js.map +1 -0
  176. package/dist/lib/auth/issuer.test.js +95 -0
  177. package/dist/lib/auth/issuer.test.js.map +1 -0
  178. package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
  179. package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
  180. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  181. package/dist/lib/authentication/authentication.d.ts +6 -7
  182. package/dist/lib/authentication/components/CallbackHandler.js +27 -31
  183. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  184. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  185. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  186. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  187. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  188. package/dist/lib/authentication/components/SignIn.js +6 -2
  189. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  190. package/dist/lib/authentication/components/SignOut.js +2 -2
  191. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  192. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  193. package/dist/lib/authentication/components/SignUp.js +4 -1
  194. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  195. package/dist/lib/authentication/errors.d.ts +6 -12
  196. package/dist/lib/authentication/errors.js +2 -1
  197. package/dist/lib/authentication/errors.js.map +1 -1
  198. package/dist/lib/authentication/hook.d.ts +13 -4
  199. package/dist/lib/authentication/hook.js +12 -4
  200. package/dist/lib/authentication/hook.js.map +1 -1
  201. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  202. package/dist/lib/authentication/providers/auth0.js +16 -14
  203. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  204. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  205. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  206. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  207. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  208. package/dist/lib/authentication/providers/clerk.js +111 -49
  209. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  210. package/dist/lib/authentication/providers/openid.d.ts +26 -21
  211. package/dist/lib/authentication/providers/openid.js +112 -73
  212. package/dist/lib/authentication/providers/openid.js.map +1 -1
  213. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  214. package/dist/lib/authentication/providers/supabase.js +109 -0
  215. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  216. package/dist/lib/authentication/state.d.ts +24 -19
  217. package/dist/lib/authentication/state.js +47 -7
  218. package/dist/lib/authentication/state.js.map +1 -1
  219. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  220. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  221. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  222. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  223. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  224. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  225. package/dist/lib/components/AnchorLink.d.ts +2 -2
  226. package/dist/lib/components/AnchorLink.js +9 -5
  227. package/dist/lib/components/AnchorLink.js.map +1 -1
  228. package/dist/lib/components/Autocomplete.d.ts +13 -0
  229. package/dist/lib/components/Autocomplete.js +47 -0
  230. package/dist/lib/components/Autocomplete.js.map +1 -0
  231. package/dist/lib/components/Banner.js +2 -2
  232. package/dist/lib/components/Banner.js.map +1 -1
  233. package/dist/lib/components/Bootstrap.d.ts +5 -3
  234. package/dist/lib/components/Bootstrap.js +13 -6
  235. package/dist/lib/components/Bootstrap.js.map +1 -1
  236. package/dist/lib/components/BuildCheck.d.ts +5 -0
  237. package/dist/lib/components/BuildCheck.js +45 -0
  238. package/dist/lib/components/BuildCheck.js.map +1 -0
  239. package/dist/lib/components/CategoryHeading.js +1 -1
  240. package/dist/lib/components/CategoryHeading.js.map +1 -1
  241. package/dist/lib/components/ClientOnly.d.ts +4 -2
  242. package/dist/lib/components/ClientOnly.js +1 -1
  243. package/dist/lib/components/ClientOnly.js.map +1 -1
  244. package/dist/lib/components/DeveloperHint.js +2 -1
  245. package/dist/lib/components/DeveloperHint.js.map +1 -1
  246. package/dist/lib/components/ErrorPage.js +2 -2
  247. package/dist/lib/components/ErrorPage.js.map +1 -1
  248. package/dist/lib/components/Footer.d.ts +1 -0
  249. package/dist/lib/components/Footer.js +32 -0
  250. package/dist/lib/components/Footer.js.map +1 -0
  251. package/dist/lib/components/Framed.d.ts +7 -0
  252. package/dist/lib/components/Framed.js +26 -0
  253. package/dist/lib/components/Framed.js.map +1 -0
  254. package/dist/lib/components/Header.js +32 -18
  255. package/dist/lib/components/Header.js.map +1 -1
  256. package/dist/lib/components/Heading.d.ts +10 -6
  257. package/dist/lib/components/Heading.js +8 -3
  258. package/dist/lib/components/Heading.js.map +1 -1
  259. package/dist/lib/components/InlineCode.d.ts +2 -1
  260. package/dist/lib/components/InlineCode.js +2 -9
  261. package/dist/lib/components/InlineCode.js.map +1 -1
  262. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  263. package/dist/lib/components/LanguageIcon.js +118 -0
  264. package/dist/lib/components/LanguageIcon.js.map +1 -0
  265. package/dist/lib/components/Layout.js +10 -24
  266. package/dist/lib/components/Layout.js.map +1 -1
  267. package/dist/lib/components/Main.d.ts +2 -0
  268. package/dist/lib/components/Main.js +18 -0
  269. package/dist/lib/components/Main.js.map +1 -0
  270. package/dist/lib/components/Markdown.d.ts +4 -3
  271. package/dist/lib/components/Markdown.js +14 -14
  272. package/dist/lib/components/Markdown.js.map +1 -1
  273. package/dist/lib/components/Meta.d.ts +2 -0
  274. package/dist/lib/components/Meta.js +11 -0
  275. package/dist/lib/components/Meta.js.map +1 -0
  276. package/dist/lib/components/MobileTopNavigation.js +19 -7
  277. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  278. package/dist/lib/components/NotFoundPage.js +3 -3
  279. package/dist/lib/components/NotFoundPage.js.map +1 -1
  280. package/dist/lib/components/PageProgress.d.ts +1 -0
  281. package/dist/lib/components/PageProgress.js +20 -0
  282. package/dist/lib/components/PageProgress.js.map +1 -0
  283. package/dist/lib/components/Pagination.d.ts +11 -0
  284. package/dist/lib/components/Pagination.js +10 -0
  285. package/dist/lib/components/Pagination.js.map +1 -0
  286. package/dist/lib/components/PathRenderer.d.ts +11 -0
  287. package/dist/lib/components/PathRenderer.js +28 -0
  288. package/dist/lib/components/PathRenderer.js.map +1 -0
  289. package/dist/lib/components/Search.d.ts +3 -1
  290. package/dist/lib/components/Search.js +10 -4
  291. package/dist/lib/components/Search.js.map +1 -1
  292. package/dist/lib/components/Slot.d.ts +17 -0
  293. package/dist/lib/components/Slot.js +24 -0
  294. package/dist/lib/components/Slot.js.map +1 -0
  295. package/dist/lib/components/Slot.test.d.ts +1 -0
  296. package/dist/lib/components/Slot.test.js +172 -0
  297. package/dist/lib/components/Slot.test.js.map +1 -0
  298. package/dist/lib/components/StatusPage.d.ts +7 -0
  299. package/dist/lib/components/StatusPage.js +75 -0
  300. package/dist/lib/components/StatusPage.js.map +1 -0
  301. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  302. package/dist/lib/components/ThemeSwitch.js +16 -0
  303. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  304. package/dist/lib/components/TopNavigation.d.ts +7 -0
  305. package/dist/lib/components/TopNavigation.js +56 -30
  306. package/dist/lib/components/TopNavigation.js.map +1 -1
  307. package/dist/lib/components/Typography.d.ts +5 -0
  308. package/dist/lib/components/Typography.js +8 -0
  309. package/dist/lib/components/Typography.js.map +1 -0
  310. package/dist/lib/components/Zudoku.d.ts +7 -0
  311. package/dist/lib/components/Zudoku.js +58 -0
  312. package/dist/lib/components/Zudoku.js.map +1 -0
  313. package/dist/lib/components/cache.d.ts +13 -0
  314. package/dist/lib/components/cache.js +20 -0
  315. package/dist/lib/components/cache.js.map +1 -0
  316. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  317. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  318. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  319. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  320. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  321. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  322. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  323. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  324. package/dist/lib/components/context/SlotProvider.js +83 -0
  325. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  326. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  327. package/dist/lib/components/context/ViewportAnchorContext.js +30 -24
  328. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  329. package/dist/lib/components/context/ZudokuContext.d.ts +9 -12
  330. package/dist/lib/components/context/ZudokuContext.js +64 -31
  331. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  332. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  333. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  334. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  335. package/dist/lib/components/index.d.ts +66 -24
  336. package/dist/lib/components/index.js +31 -15
  337. package/dist/lib/components/index.js.map +1 -1
  338. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  339. package/dist/lib/components/navigation/Navigation.js +12 -0
  340. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  341. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  342. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  343. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  344. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  345. package/dist/lib/components/navigation/NavigationCategory.js +66 -0
  346. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  347. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  348. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  349. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  350. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  351. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  352. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  353. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  354. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  355. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  356. package/dist/lib/components/navigation/Toc.js +46 -0
  357. package/dist/lib/components/navigation/Toc.js.map +1 -0
  358. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  359. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  360. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  361. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  362. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  363. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  364. package/dist/lib/components/navigation/utils.d.ts +16 -8
  365. package/dist/lib/components/navigation/utils.js +59 -28
  366. package/dist/lib/components/navigation/utils.js.map +1 -1
  367. package/dist/lib/core/RouteGuard.d.ts +2 -0
  368. package/dist/lib/core/RouteGuard.js +52 -0
  369. package/dist/lib/core/RouteGuard.js.map +1 -0
  370. package/dist/lib/core/ZudokuContext.d.ts +115 -0
  371. package/dist/lib/core/ZudokuContext.js +104 -0
  372. package/dist/lib/core/ZudokuContext.js.map +1 -0
  373. package/dist/lib/core/__internal.d.ts +37 -0
  374. package/dist/lib/core/__internal.js +26 -0
  375. package/dist/lib/core/__internal.js.map +1 -0
  376. package/dist/lib/core/plugins.d.ts +37 -19
  377. package/dist/lib/core/plugins.js +4 -0
  378. package/dist/lib/core/plugins.js.map +1 -1
  379. package/dist/lib/core/router.d.ts +1 -0
  380. package/dist/lib/core/router.js +2 -0
  381. package/dist/lib/core/router.js.map +1 -0
  382. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  383. package/dist/lib/errors/ErrorAlert.js +12 -4
  384. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  385. package/dist/lib/errors/RouterError.js +1 -1
  386. package/dist/lib/errors/RouterError.js.map +1 -1
  387. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  388. package/dist/lib/errors/TopLevelError.js +1 -2
  389. package/dist/lib/errors/TopLevelError.js.map +1 -1
  390. package/dist/lib/hooks/index.d.ts +28 -0
  391. package/dist/lib/hooks/index.js +16 -0
  392. package/dist/lib/hooks/index.js.map +1 -0
  393. package/dist/lib/hooks/useEvent.d.ts +11 -0
  394. package/dist/lib/hooks/useEvent.js +19 -0
  395. package/dist/lib/hooks/useEvent.js.map +1 -0
  396. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  397. package/dist/lib/hooks/useEvent.test.js +102 -0
  398. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  399. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  400. package/dist/lib/hooks/useHotkey.js +58 -0
  401. package/dist/lib/hooks/useHotkey.js.map +1 -0
  402. package/dist/lib/icons.d.ts +1 -0
  403. package/dist/lib/icons.js +1 -0
  404. package/dist/lib/icons.js.map +1 -1
  405. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  406. package/dist/lib/oas/graphql/circular.js +43 -0
  407. package/dist/lib/oas/graphql/circular.js.map +1 -0
  408. package/dist/lib/oas/graphql/index.d.ts +25 -1
  409. package/dist/lib/oas/graphql/index.js +218 -70
  410. package/dist/lib/oas/graphql/index.js.map +1 -1
  411. package/dist/lib/oas/parser/dereference/index.js +10 -4
  412. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  413. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  414. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  415. package/dist/lib/oas/parser/index.d.ts +8 -3
  416. package/dist/lib/oas/parser/index.js +8 -24
  417. package/dist/lib/oas/parser/index.js.map +1 -1
  418. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  419. package/dist/lib/oas/parser/upgrade/index.js +84 -31
  420. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  421. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  422. package/dist/lib/plugins/api-catalog/Catalog.js +32 -0
  423. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  424. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  425. package/dist/lib/plugins/api-catalog/index.js +46 -0
  426. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  427. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  428. package/dist/lib/plugins/api-keys/CreateApiKey.js +26 -8
  429. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  430. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  431. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  432. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  433. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  434. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  435. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  436. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +148 -27
  437. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  438. package/dist/lib/plugins/api-keys/index.d.ts +33 -18
  439. package/dist/lib/plugins/api-keys/index.js +65 -31
  440. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  441. package/dist/lib/plugins/custom-pages/index.d.ts +6 -6
  442. package/dist/lib/plugins/custom-pages/index.js +18 -11
  443. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  444. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -2
  445. package/dist/lib/plugins/markdown/MdxPage.js +43 -10
  446. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  447. package/dist/lib/plugins/markdown/index.d.ts +14 -4
  448. package/dist/lib/plugins/markdown/index.js +9 -26
  449. package/dist/lib/plugins/markdown/index.js.map +1 -1
  450. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  451. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  452. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  453. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  454. package/dist/lib/plugins/openapi/ColorizedParam.js +32 -14
  455. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  456. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  457. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  458. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  459. package/dist/lib/plugins/openapi/OasProvider.js +30 -0
  460. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  461. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -4
  462. package/dist/lib/plugins/openapi/OperationList.js +117 -31
  463. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  464. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  465. package/dist/lib/plugins/openapi/OperationListItem.js +16 -8
  466. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  467. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  468. package/dist/lib/plugins/openapi/ParamInfos.js +47 -0
  469. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  470. package/dist/lib/plugins/openapi/ParameterList.d.ts +4 -3
  471. package/dist/lib/plugins/openapi/ParameterList.js +4 -3
  472. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  473. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  474. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  475. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  476. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +5 -4
  477. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +17 -4
  478. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  479. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +4 -5
  480. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  481. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  482. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  483. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  484. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  485. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  486. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  487. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  488. package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -3
  489. package/dist/lib/plugins/openapi/Sidecar.js +89 -118
  490. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  491. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  492. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  493. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +7 -0
  494. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  495. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  496. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  497. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  498. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  499. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  500. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  501. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  502. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  503. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  504. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  505. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  506. package/dist/lib/plugins/openapi/client/createServer.js +6 -4
  507. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  508. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  509. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  510. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  511. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  512. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  513. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  514. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  515. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  516. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  517. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  518. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  519. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  520. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  521. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  522. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  523. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  524. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  525. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  526. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  527. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  528. package/dist/lib/plugins/openapi/graphql/gql.js +5 -13
  529. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  530. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +143 -25
  531. package/dist/lib/plugins/openapi/graphql/graphql.js +240 -662
  532. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  533. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  534. package/dist/lib/plugins/openapi/index.js +107 -104
  535. package/dist/lib/plugins/openapi/index.js.map +1 -1
  536. package/dist/lib/plugins/openapi/interfaces.d.ts +58 -4
  537. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  538. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  539. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  540. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  541. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  542. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  543. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  544. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
  545. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  546. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  547. package/dist/lib/plugins/openapi/playground/Headers.js +108 -7
  548. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  549. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  550. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  551. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  552. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  553. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  554. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  555. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  556. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  557. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  558. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  559. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  560. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  561. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
  562. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  563. package/dist/lib/plugins/openapi/playground/Playground.d.ts +32 -2
  564. package/dist/lib/plugins/openapi/playground/Playground.js +170 -85
  565. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  566. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  567. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  568. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -4
  569. package/dist/lib/plugins/openapi/playground/QueryParams.js +43 -22
  570. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  571. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  572. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  573. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  574. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  575. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  576. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  577. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  578. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  579. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  580. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  581. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  582. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  583. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  584. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  585. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  586. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  587. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  588. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  589. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  590. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  591. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  592. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  593. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  594. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  595. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
  596. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +103 -0
  597. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  598. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
  599. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
  600. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  601. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  602. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  603. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  604. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  605. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  606. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  607. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  608. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  609. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  610. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  611. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  612. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  613. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  614. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +195 -0
  615. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  616. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  617. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  618. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  619. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  620. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +160 -0
  621. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  622. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  623. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  624. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  625. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  626. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  627. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  628. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  629. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  630. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  631. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  632. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  633. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  634. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.d.ts +4 -0
  635. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  636. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  637. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +4 -0
  638. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  639. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  640. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  641. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  642. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  643. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +8 -0
  644. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +36 -0
  645. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  646. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -2
  647. package/dist/lib/plugins/openapi/schema/SchemaView.js +45 -51
  648. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  649. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +4 -0
  650. package/dist/lib/plugins/openapi/schema/UnionView.js +30 -0
  651. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  652. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  653. package/dist/lib/plugins/openapi/schema/union-helpers.js +48 -0
  654. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  655. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -7
  656. package/dist/lib/plugins/openapi/schema/utils.js +16 -10
  657. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  658. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  659. package/dist/lib/plugins/openapi/state.js +18 -0
  660. package/dist/lib/plugins/openapi/state.js.map +1 -0
  661. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  662. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  663. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  664. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  665. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
  666. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  667. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -3
  668. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +79 -39
  669. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  670. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  671. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  672. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  673. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  674. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  675. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  676. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  677. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  678. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  679. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  680. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  681. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  682. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  683. package/dist/lib/plugins/redirect/index.js +2 -2
  684. package/dist/lib/plugins/redirect/index.js.map +1 -1
  685. package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
  686. package/dist/lib/plugins/search-inkeep/index.js +49 -7
  687. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  688. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
  689. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  690. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  691. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  692. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  693. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  694. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  695. package/dist/lib/plugins/search-pagefind/ResultList.js +42 -0
  696. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  697. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  698. package/dist/lib/plugins/search-pagefind/get-results.js +41 -0
  699. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  700. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  701. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  702. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  703. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  704. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  705. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  706. package/dist/lib/shiki.d.ts +32 -0
  707. package/dist/lib/shiki.js +104 -0
  708. package/dist/lib/shiki.js.map +1 -0
  709. package/dist/lib/ui/Accordion.d.ts +7 -0
  710. package/dist/lib/ui/Accordion.js +14 -0
  711. package/dist/lib/ui/Accordion.js.map +1 -0
  712. package/dist/lib/ui/ActionButton.d.ts +4 -0
  713. package/dist/lib/ui/ActionButton.js +10 -0
  714. package/dist/lib/ui/ActionButton.js.map +1 -0
  715. package/dist/lib/ui/Alert.d.ts +9 -0
  716. package/dist/lib/ui/Alert.js +25 -0
  717. package/dist/lib/ui/Alert.js.map +1 -0
  718. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  719. package/dist/lib/ui/AlertDialog.js +27 -0
  720. package/dist/lib/ui/AlertDialog.js.map +1 -0
  721. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  722. package/dist/lib/ui/AspectRatio.js +4 -0
  723. package/dist/lib/ui/AspectRatio.js.map +1 -0
  724. package/dist/lib/ui/Badge.d.ts +9 -0
  725. package/dist/lib/ui/Badge.js +22 -0
  726. package/dist/lib/ui/Badge.js.map +1 -0
  727. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  728. package/dist/lib/ui/Breadcrumb.js +24 -0
  729. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  730. package/dist/lib/ui/Button.d.ts +4 -5
  731. package/dist/lib/ui/Button.js +9 -6
  732. package/dist/lib/ui/Button.js.map +1 -1
  733. package/dist/lib/ui/Callout.d.ts +2 -1
  734. package/dist/lib/ui/Callout.js +3 -2
  735. package/dist/lib/ui/Callout.js.map +1 -1
  736. package/dist/lib/ui/Card.js +1 -1
  737. package/dist/lib/ui/Card.js.map +1 -1
  738. package/dist/lib/ui/Carousel.d.ts +18 -0
  739. package/dist/lib/ui/Carousel.js +99 -0
  740. package/dist/lib/ui/Carousel.js.map +1 -0
  741. package/dist/lib/ui/Checkbox.d.ts +4 -0
  742. package/dist/lib/ui/Checkbox.js +9 -0
  743. package/dist/lib/ui/Checkbox.js.map +1 -0
  744. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  745. package/dist/lib/ui/CodeBlock.js +18 -0
  746. package/dist/lib/ui/CodeBlock.js.map +1 -0
  747. package/dist/lib/ui/Collapsible.d.ts +5 -0
  748. package/dist/lib/ui/Collapsible.js +6 -0
  749. package/dist/lib/ui/Collapsible.js.map +1 -0
  750. package/dist/lib/ui/Command.d.ts +94 -0
  751. package/dist/lib/ui/Command.js +31 -0
  752. package/dist/lib/ui/Command.js.map +1 -0
  753. package/dist/lib/ui/Dialog.d.ts +21 -0
  754. package/dist/lib/ui/Dialog.js +23 -0
  755. package/dist/lib/ui/Dialog.js.map +1 -0
  756. package/dist/lib/ui/DropdownMenu.js +4 -4
  757. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  758. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  759. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  760. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  761. package/dist/lib/ui/Form.d.ts +23 -0
  762. package/dist/lib/ui/Form.js +63 -0
  763. package/dist/lib/ui/Form.js.map +1 -0
  764. package/dist/lib/ui/HoverCard.d.ts +6 -0
  765. package/dist/lib/ui/HoverCard.js +10 -0
  766. package/dist/lib/ui/HoverCard.js.map +1 -0
  767. package/dist/lib/ui/Input.d.ts +1 -2
  768. package/dist/lib/ui/Input.js +1 -1
  769. package/dist/lib/ui/Input.js.map +1 -1
  770. package/dist/lib/ui/Label.d.ts +5 -0
  771. package/dist/lib/ui/Label.js +10 -0
  772. package/dist/lib/ui/Label.js.map +1 -0
  773. package/dist/lib/ui/Pagination.d.ts +28 -0
  774. package/dist/lib/ui/Pagination.js +24 -0
  775. package/dist/lib/ui/Pagination.js.map +1 -0
  776. package/dist/lib/ui/Popover.d.ts +6 -0
  777. package/dist/lib/ui/Popover.js +10 -0
  778. package/dist/lib/ui/Popover.js.map +1 -0
  779. package/dist/lib/ui/Progress.d.ts +4 -0
  780. package/dist/lib/ui/Progress.js +8 -0
  781. package/dist/lib/ui/Progress.js.map +1 -0
  782. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  783. package/dist/lib/ui/RadioGroup.js +15 -0
  784. package/dist/lib/ui/RadioGroup.js.map +1 -0
  785. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  786. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  787. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  788. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  789. package/dist/lib/ui/ScrollArea.js +12 -0
  790. package/dist/lib/ui/ScrollArea.js.map +1 -0
  791. package/dist/lib/ui/Secret.d.ts +12 -0
  792. package/dist/lib/ui/Secret.js +23 -0
  793. package/dist/lib/ui/Secret.js.map +1 -0
  794. package/dist/lib/ui/Select.js +27 -0
  795. package/dist/lib/ui/Select.js.map +1 -0
  796. package/dist/lib/ui/Skeleton.d.ts +2 -0
  797. package/dist/lib/ui/Skeleton.js +7 -0
  798. package/dist/lib/ui/Skeleton.js.map +1 -0
  799. package/dist/lib/ui/Slider.d.ts +4 -0
  800. package/dist/lib/ui/Slider.js +8 -0
  801. package/dist/lib/ui/Slider.js.map +1 -0
  802. package/dist/lib/ui/Stepper.d.ts +3 -0
  803. package/dist/lib/ui/Stepper.js +7 -0
  804. package/dist/lib/ui/Stepper.js.map +1 -0
  805. package/dist/lib/ui/Switch.d.ts +4 -0
  806. package/dist/lib/ui/Switch.js +8 -0
  807. package/dist/lib/ui/Switch.js.map +1 -0
  808. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  809. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  810. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  811. package/dist/lib/ui/Tabs.js +2 -2
  812. package/dist/lib/ui/Tabs.js.map +1 -1
  813. package/dist/lib/ui/Textarea.d.ts +4 -0
  814. package/dist/lib/ui/Textarea.js +9 -0
  815. package/dist/lib/ui/Textarea.js.map +1 -0
  816. package/dist/lib/ui/Toggle.d.ts +12 -0
  817. package/dist/lib/ui/Toggle.js +26 -0
  818. package/dist/lib/ui/Toggle.js.map +1 -0
  819. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  820. package/dist/lib/ui/ToggleGroup.js +21 -0
  821. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  822. package/dist/lib/ui/Tooltip.d.ts +8 -0
  823. package/dist/lib/ui/Tooltip.js +12 -0
  824. package/dist/lib/ui/Tooltip.js.map +1 -0
  825. package/dist/lib/ui/Value.d.ts +5 -0
  826. package/dist/lib/ui/Value.js +13 -0
  827. package/dist/lib/ui/Value.js.map +1 -0
  828. package/dist/lib/ui/util.d.ts +2 -0
  829. package/dist/lib/ui/util.js +3 -0
  830. package/dist/lib/ui/util.js.map +1 -0
  831. package/dist/lib/util/MdxComponents.d.ts +38 -21
  832. package/dist/lib/util/MdxComponents.js +23 -17
  833. package/dist/lib/util/MdxComponents.js.map +1 -1
  834. package/dist/lib/util/cn.js.map +1 -1
  835. package/dist/lib/util/createVariantComponent.d.ts +3 -3
  836. package/dist/lib/util/createVariantComponent.js.map +1 -1
  837. package/dist/lib/util/detectOS.d.ts +1 -0
  838. package/dist/lib/util/detectOS.js +11 -0
  839. package/dist/lib/util/detectOS.js.map +1 -0
  840. package/dist/lib/util/ensureArray.d.ts +1 -0
  841. package/dist/lib/util/ensureArray.js +2 -0
  842. package/dist/lib/util/ensureArray.js.map +1 -0
  843. package/dist/lib/util/groupBy.js +1 -0
  844. package/dist/lib/util/groupBy.js.map +1 -1
  845. package/dist/lib/util/humanFileSize.d.ts +6 -0
  846. package/dist/lib/util/humanFileSize.js +14 -0
  847. package/dist/lib/util/humanFileSize.js.map +1 -0
  848. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  849. package/dist/lib/util/humanFileSize.test.js +22 -0
  850. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  851. package/dist/lib/util/invariant.d.ts +10 -0
  852. package/dist/lib/util/invariant.js +10 -4
  853. package/dist/lib/util/invariant.js.map +1 -1
  854. package/dist/lib/util/joinPath.d.ts +3 -0
  855. package/dist/lib/util/joinPath.js +3 -0
  856. package/dist/lib/util/joinPath.js.map +1 -1
  857. package/dist/lib/util/joinUrl.d.ts +1 -0
  858. package/dist/lib/util/joinUrl.js +40 -0
  859. package/dist/lib/util/joinUrl.js.map +1 -0
  860. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  861. package/dist/lib/util/joinUrl.test.js +43 -0
  862. package/dist/lib/util/joinUrl.test.js.map +1 -0
  863. package/dist/lib/util/os.d.ts +2 -0
  864. package/dist/lib/util/os.js +21 -0
  865. package/dist/lib/util/os.js.map +1 -0
  866. package/dist/lib/util/pastellize.js +2 -2
  867. package/dist/lib/util/pastellize.js.map +1 -1
  868. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  869. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  870. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  871. package/dist/lib/util/traverse.d.ts +3 -0
  872. package/dist/lib/util/traverse.js +23 -0
  873. package/dist/lib/util/traverse.js.map +1 -0
  874. package/dist/lib/util/types.d.ts +7 -0
  875. package/dist/lib/util/types.js +2 -0
  876. package/dist/lib/util/types.js.map +1 -0
  877. package/dist/lib/util/url.d.ts +4 -0
  878. package/dist/lib/util/url.js +13 -0
  879. package/dist/lib/util/url.js.map +1 -0
  880. package/dist/lib/util/url.test.d.ts +1 -0
  881. package/dist/lib/util/url.test.js +26 -0
  882. package/dist/lib/util/url.test.js.map +1 -0
  883. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  884. package/dist/lib/util/useCopyToClipboard.js +11 -0
  885. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  886. package/dist/lib/util/useExposedProps.d.ts +9 -0
  887. package/dist/lib/util/useExposedProps.js +9 -0
  888. package/dist/lib/util/useExposedProps.js.map +1 -0
  889. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  890. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  891. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  892. package/dist/lib/util/useLatest.d.ts +1 -0
  893. package/dist/lib/util/useLatest.js +15 -0
  894. package/dist/lib/util/useLatest.js.map +1 -0
  895. package/dist/lib/util/useOnScreen.d.ts +5 -0
  896. package/dist/lib/util/useOnScreen.js +19 -0
  897. package/dist/lib/util/useOnScreen.js.map +1 -0
  898. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  899. package/dist/lib/util/useScrollToAnchor.js +45 -38
  900. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  901. package/dist/lib/util/useScrollToTop.js +7 -5
  902. package/dist/lib/util/useScrollToTop.js.map +1 -1
  903. package/dist/ts.js +3 -3
  904. package/dist/ts.js.map +1 -1
  905. package/dist/vite/api/SchemaManager.d.ts +36 -0
  906. package/dist/vite/api/SchemaManager.js +141 -0
  907. package/dist/vite/api/SchemaManager.js.map +1 -0
  908. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  909. package/dist/vite/api/SchemaManager.test.js +106 -0
  910. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  911. package/dist/vite/api/schema-codegen.d.ts +12 -0
  912. package/dist/vite/api/schema-codegen.js +115 -0
  913. package/dist/vite/api/schema-codegen.js.map +1 -0
  914. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  915. package/dist/vite/api/schema-codegen.test.js +395 -0
  916. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  917. package/dist/vite/build.js +59 -15
  918. package/dist/vite/build.js.map +1 -1
  919. package/dist/vite/config.d.ts +2 -16
  920. package/dist/vite/config.js +121 -148
  921. package/dist/vite/config.js.map +1 -1
  922. package/dist/vite/config.test.js +12 -6
  923. package/dist/vite/config.test.js.map +1 -1
  924. package/dist/vite/create-pagefind-index.d.ts +4 -0
  925. package/dist/vite/create-pagefind-index.js +12 -0
  926. package/dist/vite/create-pagefind-index.js.map +1 -0
  927. package/dist/vite/css/collect.d.ts +2 -0
  928. package/dist/vite/css/collect.js +27 -0
  929. package/dist/vite/css/collect.js.map +1 -0
  930. package/dist/vite/css/plugin.d.ts +4 -0
  931. package/dist/vite/css/plugin.js +91 -0
  932. package/dist/vite/css/plugin.js.map +1 -0
  933. package/dist/vite/dev-server.d.ts +5 -3
  934. package/dist/vite/dev-server.js +83 -24
  935. package/dist/vite/dev-server.js.map +1 -1
  936. package/dist/vite/error-handler.d.ts +3 -3
  937. package/dist/vite/error-handler.js +1 -1
  938. package/dist/vite/error-handler.js.map +1 -1
  939. package/dist/vite/html.d.ts +7 -3
  940. package/dist/vite/html.js +15 -11
  941. package/dist/vite/html.js.map +1 -1
  942. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  943. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  944. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  945. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  946. package/dist/vite/mdx/remark-last-modified.js +28 -0
  947. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  948. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  949. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  950. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  951. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  952. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  953. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  954. package/dist/vite/mdx/remark-static-generation.d.ts +3 -0
  955. package/dist/vite/mdx/remark-static-generation.js +125 -0
  956. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  957. package/dist/vite/mdx/utils.d.ts +2 -0
  958. package/dist/vite/mdx/utils.js +31 -0
  959. package/dist/vite/mdx/utils.js.map +1 -0
  960. package/dist/vite/output.d.ts +113 -0
  961. package/dist/vite/output.js +60 -0
  962. package/dist/vite/output.js.map +1 -0
  963. package/dist/vite/plugin-api-keys.d.ts +2 -3
  964. package/dist/vite/plugin-api-keys.js +14 -8
  965. package/dist/vite/plugin-api-keys.js.map +1 -1
  966. package/dist/vite/plugin-api.d.ts +1 -2
  967. package/dist/vite/plugin-api.js +147 -33
  968. package/dist/vite/plugin-api.js.map +1 -1
  969. package/dist/vite/plugin-auth.d.ts +2 -3
  970. package/dist/vite/plugin-auth.js +11 -7
  971. package/dist/vite/plugin-auth.js.map +1 -1
  972. package/dist/vite/plugin-component.d.ts +2 -3
  973. package/dist/vite/plugin-component.js +25 -14
  974. package/dist/vite/plugin-component.js.map +1 -1
  975. package/dist/vite/plugin-config-reload.d.ts +3 -4
  976. package/dist/vite/plugin-config-reload.js +31 -25
  977. package/dist/vite/plugin-config-reload.js.map +1 -1
  978. package/dist/vite/plugin-config.d.ts +2 -4
  979. package/dist/vite/plugin-config.js +28 -3
  980. package/dist/vite/plugin-config.js.map +1 -1
  981. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  982. package/dist/vite/plugin-custom-pages.js +8 -7
  983. package/dist/vite/plugin-custom-pages.js.map +1 -1
  984. package/dist/vite/plugin-docs.d.ts +2 -3
  985. package/dist/vite/plugin-docs.js +73 -37
  986. package/dist/vite/plugin-docs.js.map +1 -1
  987. package/dist/vite/plugin-frontmatter.js +34 -25
  988. package/dist/vite/plugin-frontmatter.js.map +1 -1
  989. package/dist/vite/plugin-mdx.d.ts +2 -9
  990. package/dist/vite/plugin-mdx.js +67 -21
  991. package/dist/vite/plugin-mdx.js.map +1 -1
  992. package/dist/vite/plugin-metadata.d.ts +1 -1
  993. package/dist/vite/plugin-navigation.d.ts +4 -0
  994. package/dist/vite/plugin-navigation.js +63 -0
  995. package/dist/vite/plugin-navigation.js.map +1 -0
  996. package/dist/vite/plugin-redirect.d.ts +2 -3
  997. package/dist/vite/plugin-redirect.js +7 -6
  998. package/dist/vite/plugin-redirect.js.map +1 -1
  999. package/dist/vite/plugin-search.d.ts +2 -0
  1000. package/dist/vite/plugin-search.js +31 -0
  1001. package/dist/vite/plugin-search.js.map +1 -0
  1002. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  1003. package/dist/vite/plugin-shiki-register.js +39 -0
  1004. package/dist/vite/plugin-shiki-register.js.map +1 -0
  1005. package/dist/vite/plugin-theme.d.ts +8 -0
  1006. package/dist/vite/plugin-theme.js +274 -0
  1007. package/dist/vite/plugin-theme.js.map +1 -0
  1008. package/dist/vite/plugin-theme.test.d.ts +1 -0
  1009. package/dist/vite/plugin-theme.test.js +314 -0
  1010. package/dist/vite/plugin-theme.test.js.map +1 -0
  1011. package/dist/vite/plugin.d.ts +2 -4
  1012. package/dist/vite/plugin.js +25 -20
  1013. package/dist/vite/plugin.js.map +1 -1
  1014. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  1015. package/dist/vite/prerender/FileWritingResponse.js +53 -0
  1016. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  1017. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  1018. package/dist/vite/prerender/InMemoryResponse.js +34 -0
  1019. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  1020. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  1021. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  1022. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  1023. package/dist/vite/prerender/prerender.d.ts +15 -0
  1024. package/dist/vite/prerender/prerender.js +109 -0
  1025. package/dist/vite/prerender/prerender.js.map +1 -0
  1026. package/dist/vite/prerender/worker.d.ts +13 -0
  1027. package/dist/vite/prerender/worker.js +63 -0
  1028. package/dist/vite/prerender/worker.js.map +1 -0
  1029. package/dist/vite/reporter.d.ts +3 -0
  1030. package/dist/vite/reporter.js +33 -0
  1031. package/dist/vite/reporter.js.map +1 -0
  1032. package/dist/vite/shadcn-registry.d.ts +20 -0
  1033. package/dist/vite/shadcn-registry.js +29 -0
  1034. package/dist/vite/shadcn-registry.js.map +1 -0
  1035. package/dist/vite/sitemap.d.ts +1 -1
  1036. package/dist/vite/sitemap.js +16 -14
  1037. package/dist/vite/sitemap.js.map +1 -1
  1038. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  1039. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  1040. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  1041. package/dist/zuplo/policy-types.d.ts +33 -0
  1042. package/dist/zuplo/policy-types.js +7 -0
  1043. package/dist/zuplo/policy-types.js.map +1 -0
  1044. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  1045. package/dist/zuplo/with-zuplo-processors.js +26 -0
  1046. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  1047. package/dist/zuplo/with-zuplo.d.ts +6 -0
  1048. package/dist/zuplo/with-zuplo.js +10 -0
  1049. package/dist/zuplo/with-zuplo.js.map +1 -0
  1050. package/lib/Button-B3o-2Xdf.js +51 -0
  1051. package/lib/Button-B3o-2Xdf.js.map +1 -0
  1052. package/lib/Card-CMDQUPM4.js +61 -0
  1053. package/lib/Card-CMDQUPM4.js.map +1 -0
  1054. package/lib/CategoryHeading-DCpZu3yG.js +17 -0
  1055. package/lib/CategoryHeading-DCpZu3yG.js.map +1 -0
  1056. package/lib/ClientOnly-E7hGysn1.js +11 -0
  1057. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  1058. package/lib/CodeBlock-q0m9kVNg.js +178 -0
  1059. package/lib/CodeBlock-q0m9kVNg.js.map +1 -0
  1060. package/lib/Command-CUSlH0gJ.js +134 -0
  1061. package/lib/Command-CUSlH0gJ.js.map +1 -0
  1062. package/lib/Dialog-BmgXWOaz.js +114 -0
  1063. package/lib/Dialog-BmgXWOaz.js.map +1 -0
  1064. package/lib/Drawer-DJ05s2pH.js +1133 -0
  1065. package/lib/Drawer-DJ05s2pH.js.map +1 -0
  1066. package/lib/ErrorAlert-B5bWlc6g.js +15524 -0
  1067. package/lib/ErrorAlert-B5bWlc6g.js.map +1 -0
  1068. package/lib/MdxPage-DfV9gO5W.js +111 -0
  1069. package/lib/MdxPage-DfV9gO5W.js.map +1 -0
  1070. package/lib/OAuthErrorPage--ME5Z5lv.js +150 -0
  1071. package/lib/OAuthErrorPage--ME5Z5lv.js.map +1 -0
  1072. package/lib/OasProvider-BzRWdNM5.js +36 -0
  1073. package/lib/OasProvider-BzRWdNM5.js.map +1 -0
  1074. package/lib/OperationList-D8ln4zHk.js +5166 -0
  1075. package/lib/OperationList-D8ln4zHk.js.map +1 -0
  1076. package/lib/Pagination-BdZkD63H.js +37 -0
  1077. package/lib/Pagination-BdZkD63H.js.map +1 -0
  1078. package/lib/RouteGuard-BIksrt_C.js +56 -0
  1079. package/lib/RouteGuard-BIksrt_C.js.map +1 -0
  1080. package/lib/RouterError-ByzmULgw.js +41 -0
  1081. package/lib/RouterError-ByzmULgw.js.map +1 -0
  1082. package/lib/SchemaList-DtQZ98Lm.js +150 -0
  1083. package/lib/SchemaList-DtQZ98Lm.js.map +1 -0
  1084. package/lib/SchemaView-OqVwN4ss.js +429 -0
  1085. package/lib/SchemaView-OqVwN4ss.js.map +1 -0
  1086. package/lib/Select-DWh0wSay.js +273 -0
  1087. package/lib/Select-DWh0wSay.js.map +1 -0
  1088. package/lib/SignUp-BT5JGYmO.js +56 -0
  1089. package/lib/SignUp-BT5JGYmO.js.map +1 -0
  1090. package/lib/Spinner-mNLZ6awP.js +7 -0
  1091. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  1092. package/lib/SyntaxHighlight-HG0uqk4-.js +10307 -0
  1093. package/lib/SyntaxHighlight-HG0uqk4-.js.map +1 -0
  1094. package/lib/Toc-DyGMFrpl.js +92 -0
  1095. package/lib/Toc-DyGMFrpl.js.map +1 -0
  1096. package/lib/ZudokuContext-BR-lnR7O.js +1285 -0
  1097. package/lib/ZudokuContext-BR-lnR7O.js.map +1 -0
  1098. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  1099. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  1100. package/lib/circular-CMUzw2Qb.js +14934 -0
  1101. package/lib/circular-CMUzw2Qb.js.map +1 -0
  1102. package/lib/clsx-OuTLNxxd.js +17 -0
  1103. package/lib/clsx-OuTLNxxd.js.map +1 -0
  1104. package/lib/cn-dYga0KKN.js +2731 -0
  1105. package/lib/cn-dYga0KKN.js.map +1 -0
  1106. package/lib/createServer-CcYGmc40.js +12490 -0
  1107. package/lib/createServer-CcYGmc40.js.map +1 -0
  1108. package/lib/csharp-CabCCCDp.js +53 -0
  1109. package/lib/csharp-CabCCCDp.js.map +1 -0
  1110. package/lib/css-CF7cXhs2.js +54 -0
  1111. package/lib/css-CF7cXhs2.js.map +1 -0
  1112. package/lib/errors-9AR8czip.js +45 -0
  1113. package/lib/errors-9AR8czip.js.map +1 -0
  1114. package/lib/go-C4nlDCdp.js +25 -0
  1115. package/lib/go-C4nlDCdp.js.map +1 -0
  1116. package/lib/graphql-CPc-jI7m.js +25 -0
  1117. package/lib/graphql-CPc-jI7m.js.map +1 -0
  1118. package/lib/hook-B4Q30zMI.js +247 -0
  1119. package/lib/hook-B4Q30zMI.js.map +1 -0
  1120. package/lib/html-_lthdH3f.js +33 -0
  1121. package/lib/html-_lthdH3f.js.map +1 -0
  1122. package/lib/index-BtvWYC68.js +2094 -0
  1123. package/lib/index-BtvWYC68.js.map +1 -0
  1124. package/lib/index-CaqZFmdz.js +1058 -0
  1125. package/lib/index-CaqZFmdz.js.map +1 -0
  1126. package/lib/index-CmREBlkc.js +3395 -0
  1127. package/lib/index-CmREBlkc.js.map +1 -0
  1128. package/lib/index-CrcNWbel.js +316 -0
  1129. package/lib/index-CrcNWbel.js.map +1 -0
  1130. package/lib/index-DI5SPFK9.js +36 -0
  1131. package/lib/index-DI5SPFK9.js.map +1 -0
  1132. package/lib/index-DmNq2fbN.js +4827 -0
  1133. package/lib/index-DmNq2fbN.js.map +1 -0
  1134. package/lib/index.esm-BnYHxCYC.js +683 -0
  1135. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  1136. package/lib/index.esm-CdzlRw50.js +1254 -0
  1137. package/lib/index.esm-CdzlRw50.js.map +1 -0
  1138. package/lib/invariant-Bm-FVUQE.js +44 -0
  1139. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  1140. package/lib/java-l3-f6PoB.js +53 -0
  1141. package/lib/java-l3-f6PoB.js.map +1 -0
  1142. package/lib/javascript-C2R9WsTw.js +10 -0
  1143. package/lib/javascript-C2R9WsTw.js.map +1 -0
  1144. package/lib/json-CJ6aS-pT.js +25 -0
  1145. package/lib/json-CJ6aS-pT.js.map +1 -0
  1146. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  1147. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  1148. package/lib/kotlin-DCMKi-U7.js +37 -0
  1149. package/lib/kotlin-DCMKi-U7.js.map +1 -0
  1150. package/lib/markdown-C4aFmlmR.js +25 -0
  1151. package/lib/markdown-C4aFmlmR.js.map +1 -0
  1152. package/lib/mdx-pWVkS1_U.js +32 -0
  1153. package/lib/mdx-pWVkS1_U.js.map +1 -0
  1154. package/lib/mutation-CiMUdKRU.js +196 -0
  1155. package/lib/mutation-CiMUdKRU.js.map +1 -0
  1156. package/lib/objectivec-J4XevKta.js +32 -0
  1157. package/lib/objectivec-J4XevKta.js.map +1 -0
  1158. package/lib/php-CThYsN0i.js +25 -0
  1159. package/lib/php-CThYsN0i.js.map +1 -0
  1160. package/lib/processors/removeExtensions.js +11 -0
  1161. package/lib/processors/removeExtensions.js.map +1 -0
  1162. package/lib/processors/removeParameters.js +47 -0
  1163. package/lib/processors/removeParameters.js.map +1 -0
  1164. package/lib/processors/removePaths.js +28 -0
  1165. package/lib/processors/removePaths.js.map +1 -0
  1166. package/lib/processors/traverse.js +17 -0
  1167. package/lib/processors/traverse.js.map +1 -0
  1168. package/lib/python-DRrVWlBo.js +32 -0
  1169. package/lib/python-DRrVWlBo.js.map +1 -0
  1170. package/lib/react-B7gnFkUi.js +24 -0
  1171. package/lib/react-B7gnFkUi.js.map +1 -0
  1172. package/lib/ruby-Cl8yMwfe.js +25 -0
  1173. package/lib/ruby-Cl8yMwfe.js.map +1 -0
  1174. package/lib/rust-BcsOJwqO.js +25 -0
  1175. package/lib/rust-BcsOJwqO.js.map +1 -0
  1176. package/lib/shell-BNUr7LQH.js +25 -0
  1177. package/lib/shell-BNUr7LQH.js.map +1 -0
  1178. package/lib/swift-DoJpb4mH.js +25 -0
  1179. package/lib/swift-DoJpb4mH.js.map +1 -0
  1180. package/lib/toml-DrOGwOUK.js +32 -0
  1181. package/lib/toml-DrOGwOUK.js.map +1 -0
  1182. package/lib/typescript-D9w2ZJcO.js +32 -0
  1183. package/lib/typescript-D9w2ZJcO.js.map +1 -0
  1184. package/lib/ui/Accordion.js +47 -0
  1185. package/lib/ui/Accordion.js.map +1 -0
  1186. package/lib/ui/ActionButton.js +25 -0
  1187. package/lib/ui/ActionButton.js.map +1 -0
  1188. package/lib/ui/Alert.js +67 -0
  1189. package/lib/ui/Alert.js.map +1 -0
  1190. package/lib/ui/AlertDialog.js +114 -0
  1191. package/lib/ui/AlertDialog.js.map +1 -0
  1192. package/lib/ui/AspectRatio.js +6 -0
  1193. package/lib/ui/AspectRatio.js.map +1 -0
  1194. package/lib/ui/Badge.js +28 -0
  1195. package/lib/ui/Badge.js.map +1 -0
  1196. package/lib/ui/Breadcrumb.js +95 -0
  1197. package/lib/ui/Breadcrumb.js.map +1 -0
  1198. package/lib/ui/Button.js +52 -0
  1199. package/lib/ui/Button.js.map +1 -0
  1200. package/lib/ui/Callout.js +97 -0
  1201. package/lib/ui/Callout.js.map +1 -0
  1202. package/lib/ui/Card.js +62 -0
  1203. package/lib/ui/Card.js.map +1 -0
  1204. package/lib/ui/Carousel.js +1416 -0
  1205. package/lib/ui/Carousel.js.map +1 -0
  1206. package/lib/ui/Checkbox.js +29 -0
  1207. package/lib/ui/Checkbox.js.map +1 -0
  1208. package/lib/ui/CodeBlock.js +10 -0
  1209. package/lib/ui/CodeBlock.js.map +1 -0
  1210. package/lib/ui/Collapsible.js +8 -0
  1211. package/lib/ui/Collapsible.js.map +1 -0
  1212. package/lib/ui/Command.js +150 -0
  1213. package/lib/ui/Command.js.map +1 -0
  1214. package/lib/ui/Dialog.js +116 -0
  1215. package/lib/ui/Dialog.js.map +1 -0
  1216. package/lib/ui/Drawer.js +17 -0
  1217. package/lib/ui/Drawer.js.map +1 -0
  1218. package/lib/ui/DropdownMenu.js +145 -0
  1219. package/lib/ui/DropdownMenu.js.map +1 -0
  1220. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  1221. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1222. package/lib/ui/Form.js +95 -0
  1223. package/lib/ui/Form.js.map +1 -0
  1224. package/lib/ui/HoverCard.js +24 -0
  1225. package/lib/ui/HoverCard.js.map +1 -0
  1226. package/lib/ui/Input.js +22 -0
  1227. package/lib/ui/Input.js.map +1 -0
  1228. package/lib/ui/Label.js +20 -0
  1229. package/lib/ui/Label.js.map +1 -0
  1230. package/lib/ui/Pagination.js +105 -0
  1231. package/lib/ui/Pagination.js.map +1 -0
  1232. package/lib/ui/Popover.js +24 -0
  1233. package/lib/ui/Popover.js.map +1 -0
  1234. package/lib/ui/Progress.js +27 -0
  1235. package/lib/ui/Progress.js.map +1 -0
  1236. package/lib/ui/RadioGroup.js +32 -0
  1237. package/lib/ui/RadioGroup.js.map +1 -0
  1238. package/lib/ui/ReactComponentDoc.js +28 -0
  1239. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1240. package/lib/ui/ScrollArea.js +39 -0
  1241. package/lib/ui/ScrollArea.js.map +1 -0
  1242. package/lib/ui/Secret.js +96 -0
  1243. package/lib/ui/Secret.js.map +1 -0
  1244. package/lib/ui/Select.js +122 -0
  1245. package/lib/ui/Select.js.map +1 -0
  1246. package/lib/ui/Skeleton.js +18 -0
  1247. package/lib/ui/Skeleton.js.map +1 -0
  1248. package/lib/ui/Slider.js +24 -0
  1249. package/lib/ui/Slider.js.map +1 -0
  1250. package/lib/ui/Stepper.js +6 -0
  1251. package/lib/ui/Stepper.js.map +1 -0
  1252. package/lib/ui/Switch.js +28 -0
  1253. package/lib/ui/Switch.js.map +1 -0
  1254. package/lib/ui/SyntaxHighlight.js +11 -0
  1255. package/lib/ui/SyntaxHighlight.js.map +1 -0
  1256. package/lib/ui/Tabs.js +47 -0
  1257. package/lib/ui/Tabs.js.map +1 -0
  1258. package/lib/ui/Textarea.js +21 -0
  1259. package/lib/ui/Textarea.js.map +1 -0
  1260. package/lib/ui/Toggle.js +38 -0
  1261. package/lib/ui/Toggle.js.map +1 -0
  1262. package/lib/ui/ToggleGroup.js +42 -0
  1263. package/lib/ui/ToggleGroup.js.map +1 -0
  1264. package/lib/ui/Tooltip.js +31 -0
  1265. package/lib/ui/Tooltip.js.map +1 -0
  1266. package/lib/ui/Value.js +39 -0
  1267. package/lib/ui/Value.js.map +1 -0
  1268. package/lib/ui/util.js +6 -0
  1269. package/lib/ui/util.js.map +1 -0
  1270. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1271. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1272. package/lib/useExposedProps-BH9aq4MD.js +113 -0
  1273. package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
  1274. package/lib/useLatest-hmRS46UF.js +11 -0
  1275. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1276. package/lib/xml-D7S4OK52.js +25 -0
  1277. package/lib/xml-D7S4OK52.js.map +1 -0
  1278. package/lib/yaml-BIWMCqHB.js +32 -0
  1279. package/lib/yaml-BIWMCqHB.js.map +1 -0
  1280. package/lib/zudoku.__internal.js +2981 -0
  1281. package/lib/zudoku.__internal.js.map +1 -0
  1282. package/lib/zudoku.auth-auth0.js +32 -30
  1283. package/lib/zudoku.auth-auth0.js.map +1 -1
  1284. package/lib/zudoku.auth-azureb2c.js +137 -0
  1285. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1286. package/lib/zudoku.auth-clerk.js +111 -60
  1287. package/lib/zudoku.auth-clerk.js.map +1 -1
  1288. package/lib/zudoku.auth-openid.js +604 -633
  1289. package/lib/zudoku.auth-openid.js.map +1 -1
  1290. package/lib/zudoku.auth-supabase.js +98 -0
  1291. package/lib/zudoku.auth-supabase.js.map +1 -0
  1292. package/lib/zudoku.components.js +27 -3443
  1293. package/lib/zudoku.components.js.map +1 -1
  1294. package/lib/zudoku.hooks.js +27 -0
  1295. package/lib/zudoku.hooks.js.map +1 -0
  1296. package/lib/zudoku.icons.js +10 -0
  1297. package/lib/zudoku.icons.js.map +1 -1
  1298. package/lib/zudoku.plugin-api-catalog.js +125 -0
  1299. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1300. package/lib/zudoku.plugin-api-keys.js +739 -200
  1301. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1302. package/lib/zudoku.plugin-custom-pages.js +15 -9
  1303. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1304. package/lib/zudoku.plugin-markdown.js +20 -93
  1305. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1306. package/lib/zudoku.plugin-openapi.js +9 -11
  1307. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1308. package/lib/zudoku.plugin-redirect.js +4 -4
  1309. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1310. package/lib/zudoku.plugin-search-inkeep.js +61 -40
  1311. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1312. package/lib/zudoku.plugin-search-pagefind.js +325 -0
  1313. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1314. package/lib/zudoku.plugins.js +15 -0
  1315. package/lib/zudoku.plugins.js.map +1 -0
  1316. package/lib/zudoku.router.js +123 -0
  1317. package/lib/zudoku.router.js.map +1 -0
  1318. package/package.json +192 -90
  1319. package/src/app/ZuploBuildConfig.ts +33 -0
  1320. package/src/app/defaultTheme.css +73 -0
  1321. package/src/app/demo-cdn.html +31 -31
  1322. package/src/app/demo.html +1 -1
  1323. package/src/app/demo.tsx +26 -12
  1324. package/src/app/entry.client.tsx +71 -6
  1325. package/src/app/entry.server.tsx +84 -69
  1326. package/src/app/env.ts +43 -0
  1327. package/src/app/font.geist.css +73 -0
  1328. package/src/app/main.css +168 -131
  1329. package/src/app/main.tsx +89 -57
  1330. package/src/app/sentry.ts +24 -0
  1331. package/src/app/standalone.tsx +15 -13
  1332. package/src/lib/MissingIcon.tsx +22 -0
  1333. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1334. package/src/lib/assets/language-icons/css.tsx +36 -0
  1335. package/src/lib/assets/language-icons/go.tsx +19 -0
  1336. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1337. package/src/lib/assets/language-icons/html.tsx +24 -0
  1338. package/src/lib/assets/language-icons/java.tsx +35 -0
  1339. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1340. package/src/lib/assets/language-icons/json.tsx +19 -0
  1341. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1342. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1343. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1344. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1345. package/src/lib/assets/language-icons/php.tsx +19 -0
  1346. package/src/lib/assets/language-icons/python.tsx +23 -0
  1347. package/src/lib/assets/language-icons/react.tsx +21 -0
  1348. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1349. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1350. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1351. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1352. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1353. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1354. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1355. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1356. package/src/lib/auth/issuer.test.ts +121 -0
  1357. package/src/lib/auth/issuer.ts +41 -0
  1358. package/src/lib/authentication/AuthenticationPlugin.tsx +6 -3
  1359. package/src/lib/authentication/authentication.ts +9 -10
  1360. package/src/lib/authentication/components/CallbackHandler.tsx +36 -50
  1361. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1362. package/src/lib/authentication/components/SignIn.tsx +28 -2
  1363. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1364. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1365. package/src/lib/authentication/errors.ts +27 -13
  1366. package/src/lib/authentication/hook.ts +15 -4
  1367. package/src/lib/authentication/providers/auth0.tsx +29 -19
  1368. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1369. package/src/lib/authentication/providers/clerk.tsx +131 -54
  1370. package/src/lib/authentication/providers/openid.tsx +169 -88
  1371. package/src/lib/authentication/providers/supabase.tsx +151 -0
  1372. package/src/lib/authentication/state.ts +86 -25
  1373. package/src/lib/authentication/use-broadcast/LICENSE.md +18 -0
  1374. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1375. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1376. package/src/lib/components/AnchorLink.tsx +13 -8
  1377. package/src/lib/components/Autocomplete.tsx +114 -0
  1378. package/src/lib/components/Banner.tsx +3 -3
  1379. package/src/lib/components/Bootstrap.tsx +44 -16
  1380. package/src/lib/components/BuildCheck.tsx +86 -0
  1381. package/src/lib/components/CategoryHeading.tsx +4 -1
  1382. package/src/lib/components/ClientOnly.tsx +6 -3
  1383. package/src/lib/components/DeveloperHint.tsx +6 -1
  1384. package/src/lib/components/ErrorPage.tsx +3 -3
  1385. package/src/lib/components/Footer.tsx +136 -0
  1386. package/src/lib/components/Framed.tsx +51 -0
  1387. package/src/lib/components/Header.tsx +122 -76
  1388. package/src/lib/components/Heading.tsx +27 -20
  1389. package/src/lib/components/InlineCode.tsx +13 -16
  1390. package/src/lib/components/LanguageIcon.tsx +136 -0
  1391. package/src/lib/components/Layout.tsx +25 -68
  1392. package/src/lib/components/Main.tsx +51 -0
  1393. package/src/lib/components/Markdown.tsx +45 -30
  1394. package/src/lib/components/Meta.tsx +45 -0
  1395. package/src/lib/components/MobileTopNavigation.tsx +97 -29
  1396. package/src/lib/components/NotFoundPage.tsx +7 -6
  1397. package/src/lib/components/PageProgress.tsx +28 -0
  1398. package/src/lib/components/Pagination.tsx +45 -0
  1399. package/src/lib/components/PathRenderer.tsx +61 -0
  1400. package/src/lib/components/Search.tsx +20 -9
  1401. package/src/lib/components/Slot.test.tsx +465 -0
  1402. package/src/lib/components/Slot.tsx +64 -0
  1403. package/src/lib/components/StatusPage.tsx +96 -0
  1404. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1405. package/src/lib/components/TopNavigation.tsx +92 -49
  1406. package/src/lib/components/Typography.tsx +14 -0
  1407. package/src/lib/components/Zudoku.tsx +119 -0
  1408. package/src/lib/components/cache.ts +23 -0
  1409. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1410. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1411. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1412. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1413. package/src/lib/components/context/ViewportAnchorContext.tsx +35 -37
  1414. package/src/lib/components/context/ZudokuContext.ts +79 -38
  1415. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1416. package/src/lib/components/index.ts +34 -17
  1417. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1418. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1419. package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
  1420. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1421. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1422. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1423. package/src/lib/components/navigation/Toc.tsx +126 -0
  1424. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1425. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1426. package/src/lib/components/navigation/utils.ts +83 -43
  1427. package/src/lib/core/RouteGuard.tsx +96 -0
  1428. package/src/lib/core/ZudokuContext.ts +246 -0
  1429. package/src/lib/core/__internal.tsx +30 -0
  1430. package/src/lib/core/plugins.ts +55 -24
  1431. package/src/lib/core/router.ts +1 -0
  1432. package/src/lib/errors/ErrorAlert.tsx +29 -17
  1433. package/src/lib/errors/RouterError.tsx +1 -1
  1434. package/src/lib/errors/TopLevelError.tsx +2 -4
  1435. package/src/lib/hooks/index.ts +16 -0
  1436. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1437. package/src/lib/hooks/useEvent.ts +41 -0
  1438. package/src/lib/hooks/useHotkey.ts +70 -0
  1439. package/src/lib/icons.ts +1 -0
  1440. package/src/lib/oas/graphql/circular.ts +58 -0
  1441. package/src/lib/oas/graphql/index.ts +300 -105
  1442. package/src/lib/oas/parser/dereference/index.ts +12 -5
  1443. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1444. package/src/lib/oas/parser/index.ts +16 -32
  1445. package/src/lib/oas/parser/upgrade/index.ts +105 -39
  1446. package/src/lib/plugins/api-catalog/Catalog.tsx +80 -0
  1447. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1448. package/src/lib/plugins/api-keys/CreateApiKey.tsx +79 -49
  1449. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1450. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1451. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +457 -119
  1452. package/src/lib/plugins/api-keys/index.tsx +150 -66
  1453. package/src/lib/plugins/custom-pages/index.tsx +27 -17
  1454. package/src/lib/plugins/markdown/MdxPage.tsx +120 -61
  1455. package/src/lib/plugins/markdown/index.tsx +33 -43
  1456. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1457. package/src/lib/plugins/openapi/ColorizedParam.tsx +51 -23
  1458. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1459. package/src/lib/plugins/openapi/OasProvider.tsx +52 -0
  1460. package/src/lib/plugins/openapi/OperationList.tsx +237 -75
  1461. package/src/lib/plugins/openapi/OperationListItem.tsx +111 -84
  1462. package/src/lib/plugins/openapi/ParamInfos.tsx +91 -0
  1463. package/src/lib/plugins/openapi/ParameterList.tsx +7 -5
  1464. package/src/lib/plugins/openapi/ParameterListItem.tsx +88 -41
  1465. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +32 -5
  1466. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +16 -33
  1467. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1468. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1469. package/src/lib/plugins/openapi/Sidecar.tsx +157 -174
  1470. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1471. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  1472. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1473. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1474. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1475. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1476. package/src/lib/plugins/openapi/client/createServer.ts +9 -4
  1477. package/src/lib/plugins/openapi/client/useCreateQuery.ts +46 -0
  1478. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1479. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1480. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1481. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1482. package/src/lib/plugins/openapi/context.tsx +2 -2
  1483. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +12 -20
  1484. package/src/lib/plugins/openapi/graphql/gql.ts +38 -31
  1485. package/src/lib/plugins/openapi/graphql/graphql.ts +390 -683
  1486. package/src/lib/plugins/openapi/index.tsx +162 -134
  1487. package/src/lib/plugins/openapi/interfaces.ts +61 -4
  1488. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1489. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1490. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +59 -0
  1491. package/src/lib/plugins/openapi/playground/Headers.tsx +284 -53
  1492. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1493. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1494. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1495. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1496. package/src/lib/plugins/openapi/playground/PathParams.tsx +38 -64
  1497. package/src/lib/plugins/openapi/playground/Playground.tsx +407 -289
  1498. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +8 -4
  1499. package/src/lib/plugins/openapi/playground/QueryParams.tsx +134 -90
  1500. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1501. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1502. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1503. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1504. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1505. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1506. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1507. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1508. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +271 -0
  1509. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
  1510. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1511. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1512. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1513. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +223 -0
  1514. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1515. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +183 -0
  1516. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1517. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1518. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1519. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1520. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.tsx +36 -0
  1521. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.tsx +25 -0
  1522. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +35 -0
  1523. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1524. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +141 -0
  1525. package/src/lib/plugins/openapi/schema/SchemaView.tsx +107 -139
  1526. package/src/lib/plugins/openapi/schema/UnionView.tsx +123 -0
  1527. package/src/lib/plugins/openapi/schema/union-helpers.ts +96 -0
  1528. package/src/lib/plugins/openapi/schema/utils.ts +30 -13
  1529. package/src/lib/plugins/openapi/state.ts +36 -0
  1530. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1531. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
  1532. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -45
  1533. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1534. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1535. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1536. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1537. package/src/lib/plugins/redirect/index.tsx +6 -10
  1538. package/src/lib/plugins/search-inkeep/index.tsx +83 -32
  1539. package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
  1540. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +163 -0
  1541. package/src/lib/plugins/search-pagefind/ResultList.tsx +113 -0
  1542. package/src/lib/plugins/search-pagefind/get-results.tsx +74 -0
  1543. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1544. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1545. package/src/lib/shiki.ts +138 -0
  1546. package/src/lib/ui/Accordion.tsx +56 -0
  1547. package/src/lib/ui/ActionButton.tsx +30 -0
  1548. package/src/lib/ui/Alert.tsx +65 -0
  1549. package/src/lib/ui/AlertDialog.tsx +139 -0
  1550. package/src/lib/ui/AspectRatio.tsx +5 -0
  1551. package/src/lib/ui/Badge.tsx +37 -0
  1552. package/src/lib/ui/Breadcrumb.tsx +116 -0
  1553. package/src/lib/ui/Button.tsx +13 -8
  1554. package/src/lib/ui/Callout.tsx +30 -10
  1555. package/src/lib/ui/Card.tsx +1 -1
  1556. package/src/lib/ui/Carousel.tsx +261 -0
  1557. package/src/lib/ui/Checkbox.tsx +29 -0
  1558. package/src/lib/ui/CodeBlock.tsx +82 -0
  1559. package/src/lib/ui/Collapsible.tsx +9 -0
  1560. package/src/lib/ui/Command.tsx +191 -0
  1561. package/src/lib/ui/Dialog.tsx +132 -0
  1562. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1563. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1564. package/src/lib/ui/Form.tsx +177 -0
  1565. package/src/lib/ui/HoverCard.tsx +27 -0
  1566. package/src/lib/ui/Input.tsx +2 -3
  1567. package/src/lib/ui/Label.tsx +24 -0
  1568. package/src/lib/ui/Pagination.tsx +116 -0
  1569. package/src/lib/ui/Popover.tsx +29 -0
  1570. package/src/lib/ui/Progress.tsx +26 -0
  1571. package/src/lib/ui/RadioGroup.tsx +42 -0
  1572. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1573. package/src/lib/ui/ScrollArea.tsx +46 -0
  1574. package/src/lib/ui/Secret.tsx +106 -0
  1575. package/src/lib/ui/Select.tsx +157 -0
  1576. package/src/lib/ui/Skeleton.tsx +15 -0
  1577. package/src/lib/ui/Slider.tsx +26 -0
  1578. package/src/lib/ui/Stepper.tsx +8 -0
  1579. package/src/lib/ui/Switch.tsx +27 -0
  1580. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1581. package/src/lib/ui/Tabs.tsx +2 -2
  1582. package/src/lib/ui/Textarea.tsx +23 -0
  1583. package/src/lib/ui/Toggle.tsx +43 -0
  1584. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1585. package/src/lib/ui/Tooltip.tsx +43 -0
  1586. package/src/lib/ui/Value.tsx +42 -0
  1587. package/src/lib/ui/util.tsx +3 -0
  1588. package/src/lib/util/MdxComponents.tsx +60 -26
  1589. package/src/lib/util/cn.ts +1 -1
  1590. package/src/lib/util/createVariantComponent.tsx +3 -3
  1591. package/src/lib/util/detectOS.ts +9 -0
  1592. package/src/lib/util/ensureArray.ts +3 -0
  1593. package/src/lib/util/groupBy.ts +1 -0
  1594. package/src/lib/util/humanFileSize.test.ts +24 -0
  1595. package/src/lib/util/humanFileSize.ts +15 -0
  1596. package/src/lib/util/invariant.ts +18 -3
  1597. package/src/lib/util/joinPath.tsx +3 -0
  1598. package/src/lib/util/joinUrl.test.ts +62 -0
  1599. package/src/lib/util/joinUrl.ts +57 -0
  1600. package/src/lib/util/os.ts +18 -0
  1601. package/src/lib/util/pastellize.ts +2 -2
  1602. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1603. package/src/lib/util/traverse.ts +34 -0
  1604. package/src/lib/util/types.ts +7 -0
  1605. package/src/lib/util/url.test.ts +51 -0
  1606. package/src/lib/util/url.ts +18 -0
  1607. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1608. package/src/lib/util/useExposedProps.tsx +27 -0
  1609. package/src/lib/util/useIsomorphicLayoutEffect.ts +6 -0
  1610. package/src/lib/util/useLatest.ts +18 -0
  1611. package/src/lib/util/useOnScreen.ts +34 -0
  1612. package/src/lib/util/useScrollToAnchor.ts +51 -40
  1613. package/src/lib/util/useScrollToTop.ts +9 -4
  1614. package/src/shiki/langs/abap.js +1 -0
  1615. package/src/shiki/langs/actionscript-3.js +1 -0
  1616. package/src/shiki/langs/ada.js +1 -0
  1617. package/src/shiki/langs/angular-expression.js +1 -0
  1618. package/src/shiki/langs/angular-html.js +1 -0
  1619. package/src/shiki/langs/angular-inline-style.js +1 -0
  1620. package/src/shiki/langs/angular-inline-template.js +1 -0
  1621. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1622. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1623. package/src/shiki/langs/angular-template.js +1 -0
  1624. package/src/shiki/langs/angular-ts.js +1 -0
  1625. package/src/shiki/langs/apache.js +1 -0
  1626. package/src/shiki/langs/apex.js +1 -0
  1627. package/src/shiki/langs/apl.js +1 -0
  1628. package/src/shiki/langs/applescript.js +1 -0
  1629. package/src/shiki/langs/ara.js +1 -0
  1630. package/src/shiki/langs/asciidoc.js +1 -0
  1631. package/src/shiki/langs/asm.js +1 -0
  1632. package/src/shiki/langs/astro.js +1 -0
  1633. package/src/shiki/langs/awk.js +1 -0
  1634. package/src/shiki/langs/ballerina.js +1 -0
  1635. package/src/shiki/langs/bat.js +1 -0
  1636. package/src/shiki/langs/beancount.js +1 -0
  1637. package/src/shiki/langs/berry.js +1 -0
  1638. package/src/shiki/langs/bibtex.js +1 -0
  1639. package/src/shiki/langs/bicep.js +1 -0
  1640. package/src/shiki/langs/blade.js +1 -0
  1641. package/src/shiki/langs/bsl.js +1 -0
  1642. package/src/shiki/langs/c.js +1 -0
  1643. package/src/shiki/langs/cadence.js +1 -0
  1644. package/src/shiki/langs/cairo.js +1 -0
  1645. package/src/shiki/langs/clarity.js +1 -0
  1646. package/src/shiki/langs/clojure.js +1 -0
  1647. package/src/shiki/langs/cmake.js +1 -0
  1648. package/src/shiki/langs/cobol.js +1 -0
  1649. package/src/shiki/langs/codeowners.js +1 -0
  1650. package/src/shiki/langs/codeql.js +1 -0
  1651. package/src/shiki/langs/coffee.js +1 -0
  1652. package/src/shiki/langs/common-lisp.js +1 -0
  1653. package/src/shiki/langs/coq.js +1 -0
  1654. package/src/shiki/langs/cpp-macro.js +1 -0
  1655. package/src/shiki/langs/cpp.js +1 -0
  1656. package/src/shiki/langs/crystal.js +1 -0
  1657. package/src/shiki/langs/csharp.js +1 -0
  1658. package/src/shiki/langs/css.js +1 -0
  1659. package/src/shiki/langs/csv.js +1 -0
  1660. package/src/shiki/langs/cue.js +1 -0
  1661. package/src/shiki/langs/cypher.js +1 -0
  1662. package/src/shiki/langs/d.js +1 -0
  1663. package/src/shiki/langs/dart.js +1 -0
  1664. package/src/shiki/langs/dax.js +1 -0
  1665. package/src/shiki/langs/desktop.js +1 -0
  1666. package/src/shiki/langs/diff.js +1 -0
  1667. package/src/shiki/langs/docker.js +1 -0
  1668. package/src/shiki/langs/dotenv.js +1 -0
  1669. package/src/shiki/langs/dream-maker.js +1 -0
  1670. package/src/shiki/langs/edge.js +1 -0
  1671. package/src/shiki/langs/elixir.js +1 -0
  1672. package/src/shiki/langs/elm.js +1 -0
  1673. package/src/shiki/langs/emacs-lisp.js +1 -0
  1674. package/src/shiki/langs/erb.js +1 -0
  1675. package/src/shiki/langs/erlang.js +1 -0
  1676. package/src/shiki/langs/es-tag-css.js +1 -0
  1677. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1678. package/src/shiki/langs/es-tag-html.js +1 -0
  1679. package/src/shiki/langs/es-tag-sql.js +1 -0
  1680. package/src/shiki/langs/es-tag-xml.js +1 -0
  1681. package/src/shiki/langs/fennel.js +1 -0
  1682. package/src/shiki/langs/fish.js +1 -0
  1683. package/src/shiki/langs/fluent.js +1 -0
  1684. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1685. package/src/shiki/langs/fortran-free-form.js +1 -0
  1686. package/src/shiki/langs/fsharp.js +1 -0
  1687. package/src/shiki/langs/gdresource.js +1 -0
  1688. package/src/shiki/langs/gdscript.js +1 -0
  1689. package/src/shiki/langs/gdshader.js +1 -0
  1690. package/src/shiki/langs/genie.js +1 -0
  1691. package/src/shiki/langs/gherkin.js +1 -0
  1692. package/src/shiki/langs/git-commit.js +1 -0
  1693. package/src/shiki/langs/git-rebase.js +1 -0
  1694. package/src/shiki/langs/gleam.js +1 -0
  1695. package/src/shiki/langs/glimmer-js.js +1 -0
  1696. package/src/shiki/langs/glimmer-ts.js +1 -0
  1697. package/src/shiki/langs/glsl.js +1 -0
  1698. package/src/shiki/langs/gnuplot.js +1 -0
  1699. package/src/shiki/langs/go.js +1 -0
  1700. package/src/shiki/langs/graphql.js +1 -0
  1701. package/src/shiki/langs/groovy.js +1 -0
  1702. package/src/shiki/langs/hack.js +1 -0
  1703. package/src/shiki/langs/haml.js +1 -0
  1704. package/src/shiki/langs/handlebars.js +1 -0
  1705. package/src/shiki/langs/haskell.js +1 -0
  1706. package/src/shiki/langs/haxe.js +1 -0
  1707. package/src/shiki/langs/hcl.js +1 -0
  1708. package/src/shiki/langs/hjson.js +1 -0
  1709. package/src/shiki/langs/hlsl.js +1 -0
  1710. package/src/shiki/langs/html-derivative.js +1 -0
  1711. package/src/shiki/langs/html.js +1 -0
  1712. package/src/shiki/langs/http.js +1 -0
  1713. package/src/shiki/langs/hxml.js +1 -0
  1714. package/src/shiki/langs/hy.js +1 -0
  1715. package/src/shiki/langs/imba.js +1 -0
  1716. package/src/shiki/langs/ini.js +1 -0
  1717. package/src/shiki/langs/java.js +1 -0
  1718. package/src/shiki/langs/javascript.js +1 -0
  1719. package/src/shiki/langs/jinja-html.js +1 -0
  1720. package/src/shiki/langs/jinja.js +1 -0
  1721. package/src/shiki/langs/jison.js +1 -0
  1722. package/src/shiki/langs/json.js +1 -0
  1723. package/src/shiki/langs/json5.js +1 -0
  1724. package/src/shiki/langs/jsonc.js +1 -0
  1725. package/src/shiki/langs/jsonl.js +1 -0
  1726. package/src/shiki/langs/jsonnet.js +1 -0
  1727. package/src/shiki/langs/jssm.js +1 -0
  1728. package/src/shiki/langs/jsx.js +1 -0
  1729. package/src/shiki/langs/julia.js +1 -0
  1730. package/src/shiki/langs/kotlin.js +1 -0
  1731. package/src/shiki/langs/kusto.js +1 -0
  1732. package/src/shiki/langs/latex.js +1 -0
  1733. package/src/shiki/langs/lean.js +1 -0
  1734. package/src/shiki/langs/less.js +1 -0
  1735. package/src/shiki/langs/liquid.js +1 -0
  1736. package/src/shiki/langs/llvm.js +1 -0
  1737. package/src/shiki/langs/log.js +1 -0
  1738. package/src/shiki/langs/logo.js +1 -0
  1739. package/src/shiki/langs/lua.js +1 -0
  1740. package/src/shiki/langs/luau.js +1 -0
  1741. package/src/shiki/langs/make.js +1 -0
  1742. package/src/shiki/langs/markdown-vue.js +1 -0
  1743. package/src/shiki/langs/markdown.js +1 -0
  1744. package/src/shiki/langs/marko.js +1 -0
  1745. package/src/shiki/langs/matlab.js +1 -0
  1746. package/src/shiki/langs/mdc.js +1 -0
  1747. package/src/shiki/langs/mdx.js +1 -0
  1748. package/src/shiki/langs/mermaid.js +1 -0
  1749. package/src/shiki/langs/mipsasm.js +1 -0
  1750. package/src/shiki/langs/mojo.js +1 -0
  1751. package/src/shiki/langs/move.js +1 -0
  1752. package/src/shiki/langs/narrat.js +1 -0
  1753. package/src/shiki/langs/nextflow.js +1 -0
  1754. package/src/shiki/langs/nginx.js +1 -0
  1755. package/src/shiki/langs/nim.js +1 -0
  1756. package/src/shiki/langs/nix.js +1 -0
  1757. package/src/shiki/langs/nushell.js +1 -0
  1758. package/src/shiki/langs/objective-c.js +1 -0
  1759. package/src/shiki/langs/objective-cpp.js +1 -0
  1760. package/src/shiki/langs/ocaml.js +1 -0
  1761. package/src/shiki/langs/pascal.js +1 -0
  1762. package/src/shiki/langs/perl.js +1 -0
  1763. package/src/shiki/langs/php.js +1 -0
  1764. package/src/shiki/langs/plsql.js +1 -0
  1765. package/src/shiki/langs/po.js +1 -0
  1766. package/src/shiki/langs/polar.js +1 -0
  1767. package/src/shiki/langs/postcss.js +1 -0
  1768. package/src/shiki/langs/powerquery.js +1 -0
  1769. package/src/shiki/langs/powershell.js +1 -0
  1770. package/src/shiki/langs/prisma.js +1 -0
  1771. package/src/shiki/langs/prolog.js +1 -0
  1772. package/src/shiki/langs/proto.js +1 -0
  1773. package/src/shiki/langs/pug.js +1 -0
  1774. package/src/shiki/langs/puppet.js +1 -0
  1775. package/src/shiki/langs/purescript.js +1 -0
  1776. package/src/shiki/langs/python.js +1 -0
  1777. package/src/shiki/langs/qml.js +1 -0
  1778. package/src/shiki/langs/qmldir.js +1 -0
  1779. package/src/shiki/langs/qss.js +1 -0
  1780. package/src/shiki/langs/r.js +1 -0
  1781. package/src/shiki/langs/racket.js +1 -0
  1782. package/src/shiki/langs/raku.js +1 -0
  1783. package/src/shiki/langs/razor.js +1 -0
  1784. package/src/shiki/langs/reg.js +1 -0
  1785. package/src/shiki/langs/regexp.js +1 -0
  1786. package/src/shiki/langs/rel.js +1 -0
  1787. package/src/shiki/langs/riscv.js +1 -0
  1788. package/src/shiki/langs/rst.js +1 -0
  1789. package/src/shiki/langs/ruby.js +1 -0
  1790. package/src/shiki/langs/rust.js +1 -0
  1791. package/src/shiki/langs/sas.js +1 -0
  1792. package/src/shiki/langs/sass.js +1 -0
  1793. package/src/shiki/langs/scala.js +1 -0
  1794. package/src/shiki/langs/scheme.js +1 -0
  1795. package/src/shiki/langs/scss.js +1 -0
  1796. package/src/shiki/langs/sdbl.js +1 -0
  1797. package/src/shiki/langs/shaderlab.js +1 -0
  1798. package/src/shiki/langs/shellscript.js +1 -0
  1799. package/src/shiki/langs/shellsession.js +1 -0
  1800. package/src/shiki/langs/smalltalk.js +1 -0
  1801. package/src/shiki/langs/solidity.js +1 -0
  1802. package/src/shiki/langs/soy.js +1 -0
  1803. package/src/shiki/langs/sparql.js +1 -0
  1804. package/src/shiki/langs/splunk.js +1 -0
  1805. package/src/shiki/langs/sql.js +1 -0
  1806. package/src/shiki/langs/ssh-config.js +1 -0
  1807. package/src/shiki/langs/stata.js +1 -0
  1808. package/src/shiki/langs/stylus.js +1 -0
  1809. package/src/shiki/langs/svelte.js +1 -0
  1810. package/src/shiki/langs/swift.js +1 -0
  1811. package/src/shiki/langs/system-verilog.js +1 -0
  1812. package/src/shiki/langs/systemd.js +1 -0
  1813. package/src/shiki/langs/talonscript.js +1 -0
  1814. package/src/shiki/langs/tasl.js +1 -0
  1815. package/src/shiki/langs/tcl.js +1 -0
  1816. package/src/shiki/langs/templ.js +1 -0
  1817. package/src/shiki/langs/terraform.js +1 -0
  1818. package/src/shiki/langs/tex.js +1 -0
  1819. package/src/shiki/langs/toml.js +1 -0
  1820. package/src/shiki/langs/ts-tags.js +1 -0
  1821. package/src/shiki/langs/tsv.js +1 -0
  1822. package/src/shiki/langs/tsx.js +1 -0
  1823. package/src/shiki/langs/turtle.js +1 -0
  1824. package/src/shiki/langs/twig.js +1 -0
  1825. package/src/shiki/langs/typescript.js +1 -0
  1826. package/src/shiki/langs/typespec.js +1 -0
  1827. package/src/shiki/langs/typst.js +1 -0
  1828. package/src/shiki/langs/v.js +1 -0
  1829. package/src/shiki/langs/vala.js +1 -0
  1830. package/src/shiki/langs/vb.js +1 -0
  1831. package/src/shiki/langs/verilog.js +1 -0
  1832. package/src/shiki/langs/vhdl.js +1 -0
  1833. package/src/shiki/langs/viml.js +1 -0
  1834. package/src/shiki/langs/vue-directives.js +1 -0
  1835. package/src/shiki/langs/vue-html.js +1 -0
  1836. package/src/shiki/langs/vue-interpolations.js +1 -0
  1837. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1838. package/src/shiki/langs/vue-vine.js +1 -0
  1839. package/src/shiki/langs/vue.js +1 -0
  1840. package/src/shiki/langs/vyper.js +1 -0
  1841. package/src/shiki/langs/wasm.js +1 -0
  1842. package/src/shiki/langs/wenyan.js +1 -0
  1843. package/src/shiki/langs/wgsl.js +1 -0
  1844. package/src/shiki/langs/wikitext.js +1 -0
  1845. package/src/shiki/langs/wit.js +1 -0
  1846. package/src/shiki/langs/wolfram.js +1 -0
  1847. package/src/shiki/langs/xml.js +1 -0
  1848. package/src/shiki/langs/xsl.js +1 -0
  1849. package/src/shiki/langs/yaml.js +1 -0
  1850. package/src/shiki/langs/zenscript.js +1 -0
  1851. package/src/shiki/langs/zig.js +1 -0
  1852. package/src/shiki/themes/andromeeda.js +1 -0
  1853. package/src/shiki/themes/aurora-x.js +1 -0
  1854. package/src/shiki/themes/ayu-dark.js +1 -0
  1855. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1856. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1857. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1858. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1859. package/src/shiki/themes/dark-plus.js +1 -0
  1860. package/src/shiki/themes/dracula-soft.js +1 -0
  1861. package/src/shiki/themes/dracula.js +1 -0
  1862. package/src/shiki/themes/everforest-dark.js +1 -0
  1863. package/src/shiki/themes/everforest-light.js +1 -0
  1864. package/src/shiki/themes/github-dark-default.js +1 -0
  1865. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1866. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1867. package/src/shiki/themes/github-dark.js +1 -0
  1868. package/src/shiki/themes/github-light-default.js +1 -0
  1869. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1870. package/src/shiki/themes/github-light.js +1 -0
  1871. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1872. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1873. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1874. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1875. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1876. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1877. package/src/shiki/themes/houston.js +1 -0
  1878. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1879. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1880. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1881. package/src/shiki/themes/laserwave.js +1 -0
  1882. package/src/shiki/themes/light-plus.js +1 -0
  1883. package/src/shiki/themes/material-theme-darker.js +1 -0
  1884. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1885. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1886. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1887. package/src/shiki/themes/material-theme.js +1 -0
  1888. package/src/shiki/themes/min-dark.js +1 -0
  1889. package/src/shiki/themes/min-light.js +1 -0
  1890. package/src/shiki/themes/monokai.js +1 -0
  1891. package/src/shiki/themes/night-owl.js +1 -0
  1892. package/src/shiki/themes/nord.js +1 -0
  1893. package/src/shiki/themes/one-dark-pro.js +1 -0
  1894. package/src/shiki/themes/one-light.js +1 -0
  1895. package/src/shiki/themes/plastic.js +1 -0
  1896. package/src/shiki/themes/poimandres.js +1 -0
  1897. package/src/shiki/themes/red.js +1 -0
  1898. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1899. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1900. package/src/shiki/themes/rose-pine.js +1 -0
  1901. package/src/shiki/themes/slack-dark.js +1 -0
  1902. package/src/shiki/themes/slack-ochin.js +1 -0
  1903. package/src/shiki/themes/snazzy-light.js +1 -0
  1904. package/src/shiki/themes/solarized-dark.js +1 -0
  1905. package/src/shiki/themes/solarized-light.js +1 -0
  1906. package/src/shiki/themes/synthwave-84.js +1 -0
  1907. package/src/shiki/themes/tokyo-night.js +1 -0
  1908. package/src/shiki/themes/vesper.js +1 -0
  1909. package/src/shiki/themes/vitesse-black.js +1 -0
  1910. package/src/shiki/themes/vitesse-dark.js +1 -0
  1911. package/src/shiki/themes/vitesse-light.js +1 -0
  1912. package/LICENSE.md +0 -9
  1913. package/client.d.ts +0 -1
  1914. package/dist/app/tailwind.d.ts +0 -3
  1915. package/dist/app/tailwind.js +0 -65
  1916. package/dist/app/tailwind.js.map +0 -1
  1917. package/dist/config/validators/InputSidebarSchema.d.ts +0 -186
  1918. package/dist/config/validators/InputSidebarSchema.js +0 -73
  1919. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1920. package/dist/config/validators/SidebarSchema.d.ts +0 -23
  1921. package/dist/config/validators/SidebarSchema.js +0 -78
  1922. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1923. package/dist/internal.d.ts +0 -1
  1924. package/dist/internal.js +0 -2
  1925. package/dist/internal.js.map +0 -1
  1926. package/dist/lib/components/DevPortal.d.ts +0 -7
  1927. package/dist/lib/components/DevPortal.js +0 -54
  1928. package/dist/lib/components/DevPortal.js.map +0 -1
  1929. package/dist/lib/components/Dialog.d.ts +0 -19
  1930. package/dist/lib/components/Dialog.js +0 -23
  1931. package/dist/lib/components/Dialog.js.map +0 -1
  1932. package/dist/lib/components/Select.js +0 -27
  1933. package/dist/lib/components/Select.js.map +0 -1
  1934. package/dist/lib/components/SlotletProvider.d.ts +0 -12
  1935. package/dist/lib/components/SlotletProvider.js +0 -20
  1936. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1937. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1938. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1939. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1940. package/dist/lib/components/context/PluginSystem.js +0 -2
  1941. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1942. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1943. package/dist/lib/components/context/ThemeContext.js +0 -7
  1944. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1945. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1946. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1947. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1948. package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
  1949. package/dist/lib/components/navigation/Sidebar.js +0 -14
  1950. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1951. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
  1952. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1953. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1954. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1955. package/dist/lib/components/navigation/SidebarCategory.js +0 -39
  1956. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1957. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
  1958. package/dist/lib/components/navigation/SidebarItem.js +0 -41
  1959. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1960. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1961. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1962. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1963. package/dist/lib/core/DevPortalContext.d.ts +0 -75
  1964. package/dist/lib/core/DevPortalContext.js +0 -49
  1965. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1966. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1967. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1968. package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
  1969. package/dist/lib/plugins/markdown/resolver.js +0 -75
  1970. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1971. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1972. package/dist/lib/plugins/openapi/Route.js +0 -8
  1973. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1974. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1975. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1976. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1977. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1978. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1979. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1980. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1981. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1982. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1983. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1984. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1985. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1986. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1987. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1988. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1989. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1990. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1991. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -9
  1992. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1993. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1994. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -6
  1995. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1996. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1997. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -7
  1998. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1999. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  2000. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  2001. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  2002. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  2003. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  2004. package/dist/lib/plugins/openapi-worker.js +0 -2
  2005. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  2006. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  2007. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  2008. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  2009. package/dist/lib/themeToggle.d.ts +0 -1
  2010. package/dist/lib/themeToggle.js +0 -7
  2011. package/dist/lib/themeToggle.js.map +0 -1
  2012. package/dist/lib/ui/Note.d.ts +0 -8
  2013. package/dist/lib/ui/Note.js +0 -23
  2014. package/dist/lib/ui/Note.js.map +0 -1
  2015. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  2016. package/dist/lib/util/createWaitForNotify.js +0 -15
  2017. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  2018. package/dist/vite/plugin-custom-css.d.ts +0 -6
  2019. package/dist/vite/plugin-custom-css.js +0 -55
  2020. package/dist/vite/plugin-custom-css.js.map +0 -1
  2021. package/dist/vite/plugin-docs.test.js +0 -30
  2022. package/dist/vite/plugin-docs.test.js.map +0 -1
  2023. package/dist/vite/plugin-html-transform.d.ts +0 -2
  2024. package/dist/vite/plugin-html-transform.js +0 -15
  2025. package/dist/vite/plugin-html-transform.js.map +0 -1
  2026. package/dist/vite/plugin-sidebar.d.ts +0 -3
  2027. package/dist/vite/plugin-sidebar.js +0 -49
  2028. package/dist/vite/plugin-sidebar.js.map +0 -1
  2029. package/dist/vite/prerender.d.ts +0 -21
  2030. package/dist/vite/prerender.js +0 -88
  2031. package/dist/vite/prerender.js.map +0 -1
  2032. package/lib/AnchorLink-DovtSBJk.js +0 -705
  2033. package/lib/AnchorLink-DovtSBJk.js.map +0 -1
  2034. package/lib/AuthenticationPlugin-Cnqy9csQ.js +0 -55
  2035. package/lib/AuthenticationPlugin-Cnqy9csQ.js.map +0 -1
  2036. package/lib/CategoryHeading-C7VfgpFZ.js +0 -10
  2037. package/lib/CategoryHeading-C7VfgpFZ.js.map +0 -1
  2038. package/lib/DeveloperHint-CNyuFROc.js +0 -16
  2039. package/lib/DeveloperHint-CNyuFROc.js.map +0 -1
  2040. package/lib/ErrorPage-CUz-Zzmx.js +0 -16
  2041. package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
  2042. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  2043. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  2044. package/lib/Input-x-t53FyR.js +0 -2229
  2045. package/lib/Input-x-t53FyR.js.map +0 -1
  2046. package/lib/Markdown-C-0TaxoY.js +0 -20441
  2047. package/lib/Markdown-C-0TaxoY.js.map +0 -1
  2048. package/lib/MdxPage-C5I9c7R1.js +0 -173
  2049. package/lib/MdxPage-C5I9c7R1.js.map +0 -1
  2050. package/lib/OperationList-qsBOguHS.js +0 -601
  2051. package/lib/OperationList-qsBOguHS.js.map +0 -1
  2052. package/lib/Route-DlKvXPAO.js +0 -13
  2053. package/lib/Route-DlKvXPAO.js.map +0 -1
  2054. package/lib/SidebarBadge-DaA0-bFW.js +0 -503
  2055. package/lib/SidebarBadge-DaA0-bFW.js.map +0 -1
  2056. package/lib/SlotletProvider-BGEs7yyu.js +0 -240
  2057. package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
  2058. package/lib/Spinner-3cQDBVGr.js +0 -7
  2059. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  2060. package/lib/ZudokuContext-DSipF8sq.js +0 -1222
  2061. package/lib/ZudokuContext-DSipF8sq.js.map +0 -1
  2062. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  2063. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  2064. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  2065. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  2066. package/lib/assets/worker-DaFlmuyf.js +0 -18111
  2067. package/lib/assets/worker-DaFlmuyf.js.map +0 -1
  2068. package/lib/index-BIl-R3aH.js +0 -5952
  2069. package/lib/index-BIl-R3aH.js.map +0 -1
  2070. package/lib/index-CKmSo0py.js +0 -124
  2071. package/lib/index-CKmSo0py.js.map +0 -1
  2072. package/lib/index-CkwDvuPt.js +0 -4820
  2073. package/lib/index-CkwDvuPt.js.map +0 -1
  2074. package/lib/index-D06ATMgg.js +0 -2094
  2075. package/lib/index-D06ATMgg.js.map +0 -1
  2076. package/lib/index-DJqnphbT.js +0 -35
  2077. package/lib/index-DJqnphbT.js.map +0 -1
  2078. package/lib/index-Dssw7Gff.js +0 -2867
  2079. package/lib/index-Dssw7Gff.js.map +0 -1
  2080. package/lib/index-SrtqdZ3j.js +0 -1781
  2081. package/lib/index-SrtqdZ3j.js.map +0 -1
  2082. package/lib/jsx-runtime-B6kdoens.js +0 -635
  2083. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  2084. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  2085. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  2086. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  2087. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  2088. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  2089. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  2090. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  2091. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  2092. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  2093. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  2094. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  2095. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  2096. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  2097. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  2098. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  2099. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  2100. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  2101. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  2102. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  2103. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  2104. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  2105. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  2106. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  2107. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  2108. package/lib/router-Oe6YmY6B.js +0 -3024
  2109. package/lib/router-Oe6YmY6B.js.map +0 -1
  2110. package/lib/state-CsuHT8ZO.js +0 -183
  2111. package/lib/state-CsuHT8ZO.js.map +0 -1
  2112. package/lib/urql-core-KJnLL26g.js +0 -1455
  2113. package/lib/urql-core-KJnLL26g.js.map +0 -1
  2114. package/lib/zudoku.openapi-worker.js +0 -16255
  2115. package/lib/zudoku.openapi-worker.js.map +0 -1
  2116. package/src/app/tailwind.ts +0 -68
  2117. package/src/lib/components/DevPortal.tsx +0 -111
  2118. package/src/lib/components/Dialog.tsx +0 -119
  2119. package/src/lib/components/Select.tsx +0 -157
  2120. package/src/lib/components/SlotletProvider.tsx +0 -46
  2121. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  2122. package/src/lib/components/context/PluginSystem.ts +0 -0
  2123. package/src/lib/components/context/ThemeContext.tsx +0 -8
  2124. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  2125. package/src/lib/components/navigation/Sidebar.tsx +0 -39
  2126. package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
  2127. package/src/lib/components/navigation/SidebarCategory.tsx +0 -129
  2128. package/src/lib/components/navigation/SidebarItem.tsx +0 -128
  2129. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
  2130. package/src/lib/core/DevPortalContext.ts +0 -136
  2131. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  2132. package/src/lib/plugins/markdown/resolver.ts +0 -92
  2133. package/src/lib/plugins/openapi/Route.tsx +0 -20
  2134. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  2135. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  2136. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  2137. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  2138. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  2139. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  2140. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -47
  2141. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -54
  2142. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -30
  2143. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  2144. package/src/lib/plugins/openapi-worker.ts +0 -1
  2145. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  2146. package/src/lib/themeToggle.ts +0 -7
  2147. package/src/lib/ui/Note.tsx +0 -58
  2148. package/src/lib/util/createWaitForNotify.ts +0 -18
  2149. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  2150. /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
  2151. /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
  2152. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  2153. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -0,0 +1,3395 @@
1
+ import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { ChevronUpIcon as yn, ChevronRightIcon as vn, CheckIcon as ft, DotIcon as bn, PlusCircleIcon as he, FileInput as jn, Check as Cn, TableOfContentsIcon as wn, LockIcon as Nn, CircleAlertIcon as Sn, XIcon as gt, Circle as Tn, Unlink2Icon as An, CornerDownRightIcon as On, CornerDownLeftIcon as Pn, DownloadIcon as Rn, UnplugIcon as Ln, SendIcon as $n, CopyIcon as En, IdCardLanyardIcon as In, ShapesIcon as kn, LogInIcon as Dn, CirclePlayIcon as zn } from "lucide-react";
3
+ import { aq as Fn, aU as qn, aM as Vn, e as Bn, ai as _n, an as st } from "./chunk-QMGIS6GS-DqecZ6nq.js";
4
+ import { c as Le, p as $e, b as xt, a as Un } from "./hook-B4Q30zMI.js";
5
+ import { Button as ne } from "./ui/Button.js";
6
+ import { d as Mn, e as Gn, I as Hn, j as I, b as Qn } from "./ZudokuContext-BR-lnR7O.js";
7
+ import { Z as Jn, i as Wn } from "./invariant-Bm-FVUQE.js";
8
+ import * as A from "react";
9
+ import { createContext as yt, use as Xn, useRef as R, useEffect as z, useMemo as vt, useState as k, useCallback as bt, Fragment as K, useLayoutEffect as Zn, useTransition as Yn, useContext as Kn } from "react";
10
+ import { VisuallyHidden as es } from "@radix-ui/react-visually-hidden";
11
+ import { D as Ee, a as Ie, c as ke, d as jt, e as Ct, g as ts } from "./Dialog-BmgXWOaz.js";
12
+ import { S as ns, b as ss } from "./index-CaqZFmdz.js";
13
+ import { S as wt, c as Nt, d as St, e as Tt, g as le, A as rs, a as as, b as os, u as is } from "./Select-DWh0wSay.js";
14
+ import { u as ae, b as De, C as F, a as cs, F as ls } from "./index.esm-CdzlRw50.js";
15
+ import { B as E } from "./Button-B3o-2Xdf.js";
16
+ import * as ze from "@radix-ui/react-collapsible";
17
+ import { g as rt, h as at, i as ot, j as ds } from "./ErrorAlert-B5bWlc6g.js";
18
+ import { c as C } from "./cn-dYga0KKN.js";
19
+ import { u as us } from "./useCopyToClipboard-B_085nfO.js";
20
+ import { u as ms } from "./useLatest-hmRS46UF.js";
21
+ import * as w from "@radix-ui/react-dropdown-menu";
22
+ import * as Oe from "@radix-ui/react-checkbox";
23
+ import * as de from "@radix-ui/react-popover";
24
+ import { PopoverAnchor as ps } from "@radix-ui/react-popover";
25
+ import { P as hs } from "./index-CrcNWbel.js";
26
+ import { f as fs, g as gs, C as xs, b as ys } from "./Command-CUSlH0gJ.js";
27
+ import { Input as ue } from "./ui/Input.js";
28
+ import { Slot as vs } from "@radix-ui/react-slot";
29
+ import { C as bs } from "./Card-CMDQUPM4.js";
30
+ import * as At from "@radix-ui/react-label";
31
+ import { c as js } from "./index-DI5SPFK9.js";
32
+ import * as se from "@radix-ui/react-radio-group";
33
+ import { z as Cs } from "./useExposedProps-BH9aq4MD.js";
34
+ import { h as ws } from "./SyntaxHighlight-HG0uqk4-.js";
35
+ let je;
36
+ const Ns = (e) => {
37
+ if (e.errors?.[0])
38
+ throw new Jn(e.errors[0].message, {
39
+ developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
40
+ });
41
+ };
42
+ class Ss {
43
+ constructor(t) {
44
+ this.config = t;
45
+ }
46
+ #e = async () => (je || (je = import("./createServer-CcYGmc40.js").then(
47
+ (t) => t.createServer(this.config)
48
+ )), je);
49
+ #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
50
+ fetch = async (t, s) => {
51
+ const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
52
+ method: "POST",
53
+ body: JSON.stringify({ query: t, variables: s, operationName: a }),
54
+ headers: { "Content-Type": "application/json" }
55
+ });
56
+ if (!r.ok)
57
+ throw new Error("Network response was not ok");
58
+ const o = await r.json();
59
+ return Ns(o), o.data;
60
+ };
61
+ }
62
+ function Ce(e, t) {
63
+ if (!!!e)
64
+ throw new Error(t);
65
+ }
66
+ function Ts(e) {
67
+ return typeof e == "object" && e !== null;
68
+ }
69
+ function As(e, t) {
70
+ if (!!!e)
71
+ throw new Error(
72
+ t ?? "Unexpected invariant triggered."
73
+ );
74
+ }
75
+ const Os = /\r\n|[\n\r]/g;
76
+ function Pe(e, t) {
77
+ let s = 0, a = 1;
78
+ for (const r of e.body.matchAll(Os)) {
79
+ if (typeof r.index == "number" || As(!1), r.index >= t)
80
+ break;
81
+ s = r.index + r[0].length, a += 1;
82
+ }
83
+ return {
84
+ line: a,
85
+ column: t + 1 - s
86
+ };
87
+ }
88
+ function Ps(e) {
89
+ return Ot(
90
+ e.source,
91
+ Pe(e.source, e.start)
92
+ );
93
+ }
94
+ function Ot(e, t) {
95
+ const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
96
+ `, d = a.split(/\r\n|[\n\r]/g), h = d[r];
97
+ if (h.length > 120) {
98
+ const g = Math.floor(c / 80), m = c % 80, y = [];
99
+ for (let v = 0; v < h.length; v += 80)
100
+ y.push(h.slice(v, v + 80));
101
+ return u + it([
102
+ [`${i} |`, y[0]],
103
+ ...y.slice(1, g + 1).map((v) => ["|", v]),
104
+ ["|", "^".padStart(m)],
105
+ ["|", y[g + 1]]
106
+ ]);
107
+ }
108
+ return u + it([
109
+ // Lines specified like this: ["prefix", "string"],
110
+ [`${i - 1} |`, d[r - 1]],
111
+ [`${i} |`, h],
112
+ ["|", "^".padStart(c)],
113
+ [`${i + 1} |`, d[r + 1]]
114
+ ]);
115
+ }
116
+ function it(e) {
117
+ const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
118
+ return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
119
+ `);
120
+ }
121
+ function Rs(e) {
122
+ const t = e[0];
123
+ return t == null || "kind" in t || "length" in t ? {
124
+ nodes: t,
125
+ source: e[1],
126
+ positions: e[2],
127
+ path: e[3],
128
+ originalError: e[4],
129
+ extensions: e[5]
130
+ } : t;
131
+ }
132
+ class Fe extends Error {
133
+ /**
134
+ * An array of `{ line, column }` locations within the source GraphQL document
135
+ * which correspond to this error.
136
+ *
137
+ * Errors during validation often contain multiple locations, for example to
138
+ * point out two things with the same name. Errors during execution include a
139
+ * single location, the field which produced the error.
140
+ *
141
+ * Enumerable, and appears in the result of JSON.stringify().
142
+ */
143
+ /**
144
+ * An array describing the JSON-path into the execution response which
145
+ * corresponds to this error. Only included for errors during execution.
146
+ *
147
+ * Enumerable, and appears in the result of JSON.stringify().
148
+ */
149
+ /**
150
+ * An array of GraphQL AST Nodes corresponding to this error.
151
+ */
152
+ /**
153
+ * The source GraphQL document for the first location of this error.
154
+ *
155
+ * Note that if this Error represents more than one node, the source may not
156
+ * represent nodes after the first node.
157
+ */
158
+ /**
159
+ * An array of character offsets within the source GraphQL document
160
+ * which correspond to this error.
161
+ */
162
+ /**
163
+ * The original error thrown from a field resolver during execution.
164
+ */
165
+ /**
166
+ * Extension fields to add to the formatted error.
167
+ */
168
+ /**
169
+ * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
170
+ */
171
+ constructor(t, ...s) {
172
+ var a, r, o;
173
+ const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Rs(s);
174
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
175
+ Array.isArray(i) ? i : i ? [i] : void 0
176
+ );
177
+ const g = ct(
178
+ (a = this.nodes) === null || a === void 0 ? void 0 : a.map((y) => y.loc).filter((y) => y != null)
179
+ );
180
+ this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((y) => y.start), this.locations = c && l ? c.map((y) => Pe(l, y)) : g?.map((y) => Pe(y.source, y.start));
181
+ const m = Ts(
182
+ d?.extensions
183
+ ) ? d?.extensions : void 0;
184
+ this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
185
+ message: {
186
+ writable: !0,
187
+ enumerable: !0
188
+ },
189
+ name: {
190
+ enumerable: !1
191
+ },
192
+ nodes: {
193
+ enumerable: !1
194
+ },
195
+ source: {
196
+ enumerable: !1
197
+ },
198
+ positions: {
199
+ enumerable: !1
200
+ },
201
+ originalError: {
202
+ enumerable: !1
203
+ }
204
+ }), d != null && d.stack ? Object.defineProperty(this, "stack", {
205
+ value: d.stack,
206
+ writable: !0,
207
+ configurable: !0
208
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Fe) : Object.defineProperty(this, "stack", {
209
+ value: Error().stack,
210
+ writable: !0,
211
+ configurable: !0
212
+ });
213
+ }
214
+ get [Symbol.toStringTag]() {
215
+ return "GraphQLError";
216
+ }
217
+ toString() {
218
+ let t = this.message;
219
+ if (this.nodes)
220
+ for (const s of this.nodes)
221
+ s.loc && (t += `
222
+
223
+ ` + Ps(s.loc));
224
+ else if (this.source && this.locations)
225
+ for (const s of this.locations)
226
+ t += `
227
+
228
+ ` + Ot(this.source, s);
229
+ return t;
230
+ }
231
+ toJSON() {
232
+ const t = {
233
+ message: this.message
234
+ };
235
+ return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
236
+ }
237
+ }
238
+ function ct(e) {
239
+ return e === void 0 || e.length === 0 ? void 0 : e;
240
+ }
241
+ function L(e, t, s) {
242
+ return new Fe(`Syntax Error: ${s}`, {
243
+ source: e,
244
+ positions: [t]
245
+ });
246
+ }
247
+ class Va {
248
+ /**
249
+ * The character offset at which this Node begins.
250
+ */
251
+ /**
252
+ * The character offset at which this Node ends.
253
+ */
254
+ /**
255
+ * The Token at which this Node begins.
256
+ */
257
+ /**
258
+ * The Token at which this Node ends.
259
+ */
260
+ /**
261
+ * The Source document the AST represents.
262
+ */
263
+ constructor(t, s, a) {
264
+ this.start = t.start, this.end = s.end, this.startToken = t, this.endToken = s, this.source = a;
265
+ }
266
+ get [Symbol.toStringTag]() {
267
+ return "Location";
268
+ }
269
+ toJSON() {
270
+ return {
271
+ start: this.start,
272
+ end: this.end
273
+ };
274
+ }
275
+ }
276
+ class Pt {
277
+ /**
278
+ * The kind of Token.
279
+ */
280
+ /**
281
+ * The character offset at which this Node begins.
282
+ */
283
+ /**
284
+ * The character offset at which this Node ends.
285
+ */
286
+ /**
287
+ * The 1-indexed line number on which this Token appears.
288
+ */
289
+ /**
290
+ * The 1-indexed column number at which this Token begins.
291
+ */
292
+ /**
293
+ * For non-punctuation tokens, represents the interpreted value of the token.
294
+ *
295
+ * Note: is undefined for punctuation tokens, but typed as string for
296
+ * convenience in the parser.
297
+ */
298
+ /**
299
+ * Tokens exist as nodes in a double-linked-list amongst all tokens
300
+ * including ignored tokens. <SOF> is always the first node and <EOF>
301
+ * the last.
302
+ */
303
+ constructor(t, s, a, r, o, i) {
304
+ this.kind = t, this.start = s, this.end = a, this.line = r, this.column = o, this.value = i, this.prev = null, this.next = null;
305
+ }
306
+ get [Symbol.toStringTag]() {
307
+ return "Token";
308
+ }
309
+ toJSON() {
310
+ return {
311
+ kind: this.kind,
312
+ value: this.value,
313
+ line: this.line,
314
+ column: this.column
315
+ };
316
+ }
317
+ }
318
+ const Ls = {
319
+ Name: [],
320
+ Document: ["definitions"],
321
+ OperationDefinition: [
322
+ "name",
323
+ "variableDefinitions",
324
+ "directives",
325
+ "selectionSet"
326
+ ],
327
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
328
+ Variable: ["name"],
329
+ SelectionSet: ["selections"],
330
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
331
+ Argument: ["name", "value"],
332
+ FragmentSpread: ["name", "directives"],
333
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
334
+ FragmentDefinition: [
335
+ "name",
336
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
337
+ "variableDefinitions",
338
+ "typeCondition",
339
+ "directives",
340
+ "selectionSet"
341
+ ],
342
+ IntValue: [],
343
+ FloatValue: [],
344
+ StringValue: [],
345
+ BooleanValue: [],
346
+ NullValue: [],
347
+ EnumValue: [],
348
+ ListValue: ["values"],
349
+ ObjectValue: ["fields"],
350
+ ObjectField: ["name", "value"],
351
+ Directive: ["name", "arguments"],
352
+ NamedType: ["name"],
353
+ ListType: ["type"],
354
+ NonNullType: ["type"],
355
+ SchemaDefinition: ["description", "directives", "operationTypes"],
356
+ OperationTypeDefinition: ["type"],
357
+ ScalarTypeDefinition: ["description", "name", "directives"],
358
+ ObjectTypeDefinition: [
359
+ "description",
360
+ "name",
361
+ "interfaces",
362
+ "directives",
363
+ "fields"
364
+ ],
365
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
366
+ InputValueDefinition: [
367
+ "description",
368
+ "name",
369
+ "type",
370
+ "defaultValue",
371
+ "directives"
372
+ ],
373
+ InterfaceTypeDefinition: [
374
+ "description",
375
+ "name",
376
+ "interfaces",
377
+ "directives",
378
+ "fields"
379
+ ],
380
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
381
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
382
+ EnumValueDefinition: ["description", "name", "directives"],
383
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
384
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
385
+ SchemaExtension: ["directives", "operationTypes"],
386
+ ScalarTypeExtension: ["name", "directives"],
387
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
388
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
389
+ UnionTypeExtension: ["name", "directives", "types"],
390
+ EnumTypeExtension: ["name", "directives", "values"],
391
+ InputObjectTypeExtension: ["name", "directives", "fields"]
392
+ }, $s = new Set(Object.keys(Ls));
393
+ function Ba(e) {
394
+ const t = e?.kind;
395
+ return typeof t == "string" && $s.has(t);
396
+ }
397
+ var lt;
398
+ (function(e) {
399
+ e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
400
+ })(lt || (lt = {}));
401
+ function Re(e) {
402
+ return e === 9 || e === 32;
403
+ }
404
+ function re(e) {
405
+ return e >= 48 && e <= 57;
406
+ }
407
+ function Rt(e) {
408
+ return e >= 97 && e <= 122 || // A-Z
409
+ e >= 65 && e <= 90;
410
+ }
411
+ function Lt(e) {
412
+ return Rt(e) || e === 95;
413
+ }
414
+ function Es(e) {
415
+ return Rt(e) || re(e) || e === 95;
416
+ }
417
+ function Is(e) {
418
+ var t;
419
+ let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
420
+ for (let i = 0; i < e.length; ++i) {
421
+ var o;
422
+ const l = e[i], c = ks(l);
423
+ c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
424
+ }
425
+ return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
426
+ (t = a) !== null && t !== void 0 ? t : 0,
427
+ r + 1
428
+ );
429
+ }
430
+ function ks(e) {
431
+ let t = 0;
432
+ for (; t < e.length && Re(e.charCodeAt(t)); )
433
+ ++t;
434
+ return t;
435
+ }
436
+ function Ds(e, t) {
437
+ const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Re(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
438
+ (!r || e.length > 70 || u || o || i);
439
+ let h = "";
440
+ const g = r && Re(e.charCodeAt(0));
441
+ return (d && !g || o) && (h += `
442
+ `), h += s, (d || u) && (h += `
443
+ `), '"""' + h + '"""';
444
+ }
445
+ var x;
446
+ (function(e) {
447
+ e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
448
+ })(x || (x = {}));
449
+ class zs {
450
+ /**
451
+ * The previously focused non-ignored token.
452
+ */
453
+ /**
454
+ * The currently focused non-ignored token.
455
+ */
456
+ /**
457
+ * The (1-indexed) line containing the current token.
458
+ */
459
+ /**
460
+ * The character offset at which the current line begins.
461
+ */
462
+ constructor(t) {
463
+ const s = new Pt(x.SOF, 0, 0, 0, 0);
464
+ this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
465
+ }
466
+ get [Symbol.toStringTag]() {
467
+ return "Lexer";
468
+ }
469
+ /**
470
+ * Advances the token stream to the next non-ignored token.
471
+ */
472
+ advance() {
473
+ return this.lastToken = this.token, this.token = this.lookahead();
474
+ }
475
+ /**
476
+ * Looks ahead and returns the next non-ignored token, but does not change
477
+ * the state of Lexer.
478
+ */
479
+ lookahead() {
480
+ let t = this.token;
481
+ if (t.kind !== x.EOF)
482
+ do
483
+ if (t.next)
484
+ t = t.next;
485
+ else {
486
+ const s = qs(this, t.end);
487
+ t.next = s, s.prev = t, t = s;
488
+ }
489
+ while (t.kind === x.COMMENT);
490
+ return t;
491
+ }
492
+ }
493
+ function Fs(e) {
494
+ return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
495
+ }
496
+ function Z(e) {
497
+ return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
498
+ }
499
+ function fe(e, t) {
500
+ return $t(e.charCodeAt(t)) && Et(e.charCodeAt(t + 1));
501
+ }
502
+ function $t(e) {
503
+ return e >= 55296 && e <= 56319;
504
+ }
505
+ function Et(e) {
506
+ return e >= 56320 && e <= 57343;
507
+ }
508
+ function U(e, t) {
509
+ const s = e.source.body.codePointAt(t);
510
+ if (s === void 0)
511
+ return x.EOF;
512
+ if (s >= 32 && s <= 126) {
513
+ const a = String.fromCodePoint(s);
514
+ return a === '"' ? `'"'` : `"${a}"`;
515
+ }
516
+ return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
517
+ }
518
+ function N(e, t, s, a, r) {
519
+ const o = e.line, i = 1 + s - e.lineStart;
520
+ return new Pt(t, s, a, o, i, r);
521
+ }
522
+ function qs(e, t) {
523
+ const s = e.source.body, a = s.length;
524
+ let r = t;
525
+ for (; r < a; ) {
526
+ const o = s.charCodeAt(r);
527
+ switch (o) {
528
+ // Ignored ::
529
+ // - UnicodeBOM
530
+ // - WhiteSpace
531
+ // - LineTerminator
532
+ // - Comment
533
+ // - Comma
534
+ //
535
+ // UnicodeBOM :: "Byte Order Mark (U+FEFF)"
536
+ //
537
+ // WhiteSpace ::
538
+ // - "Horizontal Tab (U+0009)"
539
+ // - "Space (U+0020)"
540
+ //
541
+ // Comma :: ,
542
+ case 65279:
543
+ // <BOM>
544
+ case 9:
545
+ // \t
546
+ case 32:
547
+ // <space>
548
+ case 44:
549
+ ++r;
550
+ continue;
551
+ // LineTerminator ::
552
+ // - "New Line (U+000A)"
553
+ // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
554
+ // - "Carriage Return (U+000D)" "New Line (U+000A)"
555
+ case 10:
556
+ ++r, ++e.line, e.lineStart = r;
557
+ continue;
558
+ case 13:
559
+ s.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++e.line, e.lineStart = r;
560
+ continue;
561
+ // Comment
562
+ case 35:
563
+ return Vs(e, r);
564
+ // Token ::
565
+ // - Punctuator
566
+ // - Name
567
+ // - IntValue
568
+ // - FloatValue
569
+ // - StringValue
570
+ //
571
+ // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
572
+ case 33:
573
+ return N(e, x.BANG, r, r + 1);
574
+ case 36:
575
+ return N(e, x.DOLLAR, r, r + 1);
576
+ case 38:
577
+ return N(e, x.AMP, r, r + 1);
578
+ case 40:
579
+ return N(e, x.PAREN_L, r, r + 1);
580
+ case 41:
581
+ return N(e, x.PAREN_R, r, r + 1);
582
+ case 46:
583
+ if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
584
+ return N(e, x.SPREAD, r, r + 3);
585
+ break;
586
+ case 58:
587
+ return N(e, x.COLON, r, r + 1);
588
+ case 61:
589
+ return N(e, x.EQUALS, r, r + 1);
590
+ case 64:
591
+ return N(e, x.AT, r, r + 1);
592
+ case 91:
593
+ return N(e, x.BRACKET_L, r, r + 1);
594
+ case 93:
595
+ return N(e, x.BRACKET_R, r, r + 1);
596
+ case 123:
597
+ return N(e, x.BRACE_L, r, r + 1);
598
+ case 124:
599
+ return N(e, x.PIPE, r, r + 1);
600
+ case 125:
601
+ return N(e, x.BRACE_R, r, r + 1);
602
+ // StringValue
603
+ case 34:
604
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Hs(e, r) : _s(e, r);
605
+ }
606
+ if (re(o) || o === 45)
607
+ return Bs(e, r, o);
608
+ if (Lt(o))
609
+ return Qs(e, r);
610
+ throw L(
611
+ e.source,
612
+ r,
613
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(o) || fe(s, r) ? `Unexpected character: ${U(e, r)}.` : `Invalid character: ${U(e, r)}.`
614
+ );
615
+ }
616
+ return N(e, x.EOF, a, a);
617
+ }
618
+ function Vs(e, t) {
619
+ const s = e.source.body, a = s.length;
620
+ let r = t + 1;
621
+ for (; r < a; ) {
622
+ const o = s.charCodeAt(r);
623
+ if (o === 10 || o === 13)
624
+ break;
625
+ if (Z(o))
626
+ ++r;
627
+ else if (fe(s, r))
628
+ r += 2;
629
+ else
630
+ break;
631
+ }
632
+ return N(
633
+ e,
634
+ x.COMMENT,
635
+ t,
636
+ r,
637
+ s.slice(t + 1, r)
638
+ );
639
+ }
640
+ function Bs(e, t, s) {
641
+ const a = e.source.body;
642
+ let r = t, o = s, i = !1;
643
+ if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
644
+ if (o = a.charCodeAt(++r), re(o))
645
+ throw L(
646
+ e.source,
647
+ r,
648
+ `Invalid number, unexpected digit after 0: ${U(
649
+ e,
650
+ r
651
+ )}.`
652
+ );
653
+ } else
654
+ r = we(e, r, o), o = a.charCodeAt(r);
655
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = we(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 = we(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
656
+ throw L(
657
+ e.source,
658
+ r,
659
+ `Invalid number, expected digit but got: ${U(
660
+ e,
661
+ r
662
+ )}.`
663
+ );
664
+ return N(
665
+ e,
666
+ i ? x.FLOAT : x.INT,
667
+ t,
668
+ r,
669
+ a.slice(t, r)
670
+ );
671
+ }
672
+ function we(e, t, s) {
673
+ if (!re(s))
674
+ throw L(
675
+ e.source,
676
+ t,
677
+ `Invalid number, expected digit but got: ${U(
678
+ e,
679
+ t
680
+ )}.`
681
+ );
682
+ const a = e.source.body;
683
+ let r = t + 1;
684
+ for (; re(a.charCodeAt(r)); )
685
+ ++r;
686
+ return r;
687
+ }
688
+ function _s(e, t) {
689
+ const s = e.source.body, a = s.length;
690
+ let r = t + 1, o = r, i = "";
691
+ for (; r < a; ) {
692
+ const l = s.charCodeAt(r);
693
+ if (l === 34)
694
+ return i += s.slice(o, r), N(e, x.STRING, t, r + 1, i);
695
+ if (l === 92) {
696
+ i += s.slice(o, r);
697
+ const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Us(e, r) : Ms(e, r) : Gs(e, r);
698
+ i += c.value, r += c.size, o = r;
699
+ continue;
700
+ }
701
+ if (l === 10 || l === 13)
702
+ break;
703
+ if (Z(l))
704
+ ++r;
705
+ else if (fe(s, r))
706
+ r += 2;
707
+ else
708
+ throw L(
709
+ e.source,
710
+ r,
711
+ `Invalid character within String: ${U(
712
+ e,
713
+ r
714
+ )}.`
715
+ );
716
+ }
717
+ throw L(e.source, r, "Unterminated string.");
718
+ }
719
+ function Us(e, t) {
720
+ const s = e.source.body;
721
+ let a = 0, r = 3;
722
+ for (; r < 12; ) {
723
+ const o = s.charCodeAt(t + r++);
724
+ if (o === 125) {
725
+ if (r < 5 || !Z(a))
726
+ break;
727
+ return {
728
+ value: String.fromCodePoint(a),
729
+ size: r
730
+ };
731
+ }
732
+ if (a = a << 4 | ee(o), a < 0)
733
+ break;
734
+ }
735
+ throw L(
736
+ e.source,
737
+ t,
738
+ `Invalid Unicode escape sequence: "${s.slice(
739
+ t,
740
+ t + r
741
+ )}".`
742
+ );
743
+ }
744
+ function Ms(e, t) {
745
+ const s = e.source.body, a = dt(s, t + 2);
746
+ if (Z(a))
747
+ return {
748
+ value: String.fromCodePoint(a),
749
+ size: 6
750
+ };
751
+ if ($t(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
+ const r = dt(s, t + 8);
753
+ if (Et(r))
754
+ return {
755
+ value: String.fromCodePoint(a, r),
756
+ size: 12
757
+ };
758
+ }
759
+ throw L(
760
+ e.source,
761
+ t,
762
+ `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
763
+ );
764
+ }
765
+ function dt(e, t) {
766
+ return ee(e.charCodeAt(t)) << 12 | ee(e.charCodeAt(t + 1)) << 8 | ee(e.charCodeAt(t + 2)) << 4 | ee(e.charCodeAt(t + 3));
767
+ }
768
+ function ee(e) {
769
+ return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
770
+ }
771
+ function Gs(e, t) {
772
+ const s = e.source.body;
773
+ switch (s.charCodeAt(t + 1)) {
774
+ case 34:
775
+ return {
776
+ value: '"',
777
+ size: 2
778
+ };
779
+ case 92:
780
+ return {
781
+ value: "\\",
782
+ size: 2
783
+ };
784
+ case 47:
785
+ return {
786
+ value: "/",
787
+ size: 2
788
+ };
789
+ case 98:
790
+ return {
791
+ value: "\b",
792
+ size: 2
793
+ };
794
+ case 102:
795
+ return {
796
+ value: "\f",
797
+ size: 2
798
+ };
799
+ case 110:
800
+ return {
801
+ value: `
802
+ `,
803
+ size: 2
804
+ };
805
+ case 114:
806
+ return {
807
+ value: "\r",
808
+ size: 2
809
+ };
810
+ case 116:
811
+ return {
812
+ value: " ",
813
+ size: 2
814
+ };
815
+ }
816
+ throw L(
817
+ e.source,
818
+ t,
819
+ `Invalid character escape sequence: "${s.slice(
820
+ t,
821
+ t + 2
822
+ )}".`
823
+ );
824
+ }
825
+ function Hs(e, t) {
826
+ const s = e.source.body, a = s.length;
827
+ let r = e.lineStart, o = t + 3, i = o, l = "";
828
+ const c = [];
829
+ for (; o < a; ) {
830
+ const u = s.charCodeAt(o);
831
+ if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
832
+ l += s.slice(i, o), c.push(l);
833
+ const d = N(
834
+ e,
835
+ x.BLOCK_STRING,
836
+ t,
837
+ o + 3,
838
+ // Return a string of the lines joined with U+000A.
839
+ Is(c).join(`
840
+ `)
841
+ );
842
+ return e.line += c.length - 1, e.lineStart = r, d;
843
+ }
844
+ if (u === 92 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34 && s.charCodeAt(o + 3) === 34) {
845
+ l += s.slice(i, o), i = o + 1, o += 4;
846
+ continue;
847
+ }
848
+ if (u === 10 || u === 13) {
849
+ l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
850
+ continue;
851
+ }
852
+ if (Z(u))
853
+ ++o;
854
+ else if (fe(s, o))
855
+ o += 2;
856
+ else
857
+ throw L(
858
+ e.source,
859
+ o,
860
+ `Invalid character within String: ${U(
861
+ e,
862
+ o
863
+ )}.`
864
+ );
865
+ }
866
+ throw L(e.source, o, "Unterminated string.");
867
+ }
868
+ function Qs(e, t) {
869
+ const s = e.source.body, a = s.length;
870
+ let r = t + 1;
871
+ for (; r < a; ) {
872
+ const o = s.charCodeAt(r);
873
+ if (Es(o))
874
+ ++r;
875
+ else
876
+ break;
877
+ }
878
+ return N(
879
+ e,
880
+ x.NAME,
881
+ t,
882
+ r,
883
+ s.slice(t, r)
884
+ );
885
+ }
886
+ const Js = 10, It = 2;
887
+ function kt(e) {
888
+ return ge(e, []);
889
+ }
890
+ function ge(e, t) {
891
+ switch (typeof e) {
892
+ case "string":
893
+ return JSON.stringify(e);
894
+ case "function":
895
+ return e.name ? `[function ${e.name}]` : "[function]";
896
+ case "object":
897
+ return Ws(e, t);
898
+ default:
899
+ return String(e);
900
+ }
901
+ }
902
+ function Ws(e, t) {
903
+ if (e === null)
904
+ return "null";
905
+ if (t.includes(e))
906
+ return "[Circular]";
907
+ const s = [...t, e];
908
+ if (Xs(e)) {
909
+ const a = e.toJSON();
910
+ if (a !== e)
911
+ return typeof a == "string" ? a : ge(a, s);
912
+ } else if (Array.isArray(e))
913
+ return Ys(e, s);
914
+ return Zs(e, s);
915
+ }
916
+ function Xs(e) {
917
+ return typeof e.toJSON == "function";
918
+ }
919
+ function Zs(e, t) {
920
+ const s = Object.entries(e);
921
+ return s.length === 0 ? "{}" : t.length > It ? "[" + Ks(e) + "]" : "{ " + s.map(
922
+ ([r, o]) => r + ": " + ge(o, t)
923
+ ).join(", ") + " }";
924
+ }
925
+ function Ys(e, t) {
926
+ if (e.length === 0)
927
+ return "[]";
928
+ if (t.length > It)
929
+ return "[Array]";
930
+ const s = Math.min(Js, e.length), a = e.length - s, r = [];
931
+ for (let o = 0; o < s; ++o)
932
+ r.push(ge(e[o], t));
933
+ return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
934
+ }
935
+ function Ks(e) {
936
+ const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
937
+ if (t === "Object" && typeof e.constructor == "function") {
938
+ const s = e.constructor.name;
939
+ if (typeof s == "string" && s !== "")
940
+ return s;
941
+ }
942
+ return t;
943
+ }
944
+ const er = globalThis.process && // eslint-disable-next-line no-undef
945
+ process.env.NODE_ENV === "production", tr = (
946
+ /* c8 ignore next 6 */
947
+ // FIXME: https://github.com/graphql/graphql-js/issues/2317
948
+ er ? function(t, s) {
949
+ return t instanceof s;
950
+ } : function(t, s) {
951
+ if (t instanceof s)
952
+ return !0;
953
+ if (typeof t == "object" && t !== null) {
954
+ var a;
955
+ const r = s.prototype[Symbol.toStringTag], o = (
956
+ // We still need to support constructor's name to detect conflicts with older versions of this library.
957
+ Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
958
+ );
959
+ if (r === o) {
960
+ const i = kt(t);
961
+ throw new Error(`Cannot use ${r} "${i}" from another module or realm.
962
+
963
+ Ensure that there is only one instance of "graphql" in the node_modules
964
+ directory. If different versions of "graphql" are the dependencies of other
965
+ relied on modules, use "resolutions" to ensure only one version is installed.
966
+
967
+ https://yarnpkg.com/en/docs/selective-version-resolutions
968
+
969
+ Duplicate "graphql" modules cannot be used at the same time since different
970
+ versions may have different capabilities and behavior. The data from one
971
+ version used in the function from another could produce confusing and
972
+ spurious results.`);
973
+ }
974
+ }
975
+ return !1;
976
+ }
977
+ );
978
+ class Dt {
979
+ constructor(t, s = "GraphQL request", a = {
980
+ line: 1,
981
+ column: 1
982
+ }) {
983
+ typeof t == "string" || Ce(!1, `Body must be a string. Received: ${kt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || Ce(
984
+ !1,
985
+ "line in locationOffset is 1-indexed and must be positive."
986
+ ), this.locationOffset.column > 0 || Ce(
987
+ !1,
988
+ "column in locationOffset is 1-indexed and must be positive."
989
+ );
990
+ }
991
+ get [Symbol.toStringTag]() {
992
+ return "Source";
993
+ }
994
+ }
995
+ function nr(e) {
996
+ return tr(e, Dt);
997
+ }
998
+ function sr(e) {
999
+ const t = nr(e) ? e : new Dt(e), s = t.body, a = new zs(t);
1000
+ let r = "", o = !1;
1001
+ for (; a.advance().kind !== x.EOF; ) {
1002
+ const i = a.token, l = i.kind, c = !Fs(i.kind);
1003
+ o && (c || i.kind === x.SPREAD) && (r += " ");
1004
+ const u = s.slice(i.start, i.end);
1005
+ l === x.BLOCK_STRING ? r += Ds(i.value, {
1006
+ minimize: !0
1007
+ }) : r += u, o = c;
1008
+ }
1009
+ return r;
1010
+ }
1011
+ const zt = yt(
1012
+ void 0
1013
+ ), _a = ({
1014
+ children: e,
1015
+ client: t
1016
+ }) => /* @__PURE__ */ n.jsx(zt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1017
+ queryFn: () => e.fetch(t, s),
1018
+ queryKey: [sr(t.toString()), s]
1019
+ }), rr = (e, ...[t]) => {
1020
+ const s = Xn(zt);
1021
+ if (s === void 0)
1022
+ throw new Error("useGraphQL must be used within a GraphQLProvider");
1023
+ return Ft(s, e, ...t === void 0 ? [] : [t]);
1024
+ };
1025
+ class H extends String {
1026
+ __apiType;
1027
+ value;
1028
+ __meta__;
1029
+ constructor(t, s) {
1030
+ super(t), this.value = t, this.__meta__ = s;
1031
+ }
1032
+ toString() {
1033
+ return this.value;
1034
+ }
1035
+ }
1036
+ const ar = new H(
1037
+ `
1038
+ fragment OperationsFragment on OperationItem {
1039
+ slug
1040
+ summary
1041
+ method
1042
+ description
1043
+ operationId
1044
+ contentTypes
1045
+ path
1046
+ deprecated
1047
+ extensions
1048
+ parameters {
1049
+ name
1050
+ in
1051
+ description
1052
+ required
1053
+ schema
1054
+ style
1055
+ explode
1056
+ examples {
1057
+ name
1058
+ description
1059
+ externalValue
1060
+ value
1061
+ summary
1062
+ }
1063
+ }
1064
+ requestBody {
1065
+ content {
1066
+ mediaType
1067
+ encoding {
1068
+ name
1069
+ }
1070
+ examples {
1071
+ name
1072
+ description
1073
+ externalValue
1074
+ value
1075
+ summary
1076
+ }
1077
+ schema
1078
+ }
1079
+ description
1080
+ required
1081
+ }
1082
+ responses {
1083
+ statusCode
1084
+ links
1085
+ description
1086
+ content {
1087
+ examples {
1088
+ name
1089
+ description
1090
+ externalValue
1091
+ value
1092
+ summary
1093
+ }
1094
+ mediaType
1095
+ encoding {
1096
+ name
1097
+ }
1098
+ schema
1099
+ }
1100
+ }
1101
+ }
1102
+ `,
1103
+ { fragmentName: "OperationsFragment" }
1104
+ ), or = new H(`
1105
+ query ServersQuery($input: JSON!, $type: SchemaType!) {
1106
+ schema(input: $input, type: $type) {
1107
+ url
1108
+ servers {
1109
+ url
1110
+ }
1111
+ }
1112
+ }
1113
+ `), ir = new H(`
1114
+ query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1115
+ schema(input: $input, type: $type) {
1116
+ openapi
1117
+ }
1118
+ }
1119
+ `), cr = new H(`
1120
+ query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1121
+ schema(input: $input, type: $type) {
1122
+ servers {
1123
+ url
1124
+ }
1125
+ description
1126
+ summary
1127
+ title
1128
+ url
1129
+ version
1130
+ tag(slug: $tag, untagged: $untagged) {
1131
+ name
1132
+ description
1133
+ operations {
1134
+ slug
1135
+ ...OperationsFragment
1136
+ }
1137
+ extensions
1138
+ next {
1139
+ name
1140
+ slug
1141
+ }
1142
+ prev {
1143
+ name
1144
+ slug
1145
+ }
1146
+ }
1147
+ }
1148
+ }
1149
+ fragment OperationsFragment on OperationItem {
1150
+ slug
1151
+ summary
1152
+ method
1153
+ description
1154
+ operationId
1155
+ contentTypes
1156
+ path
1157
+ deprecated
1158
+ extensions
1159
+ parameters {
1160
+ name
1161
+ in
1162
+ description
1163
+ required
1164
+ schema
1165
+ style
1166
+ explode
1167
+ examples {
1168
+ name
1169
+ description
1170
+ externalValue
1171
+ value
1172
+ summary
1173
+ }
1174
+ }
1175
+ requestBody {
1176
+ content {
1177
+ mediaType
1178
+ encoding {
1179
+ name
1180
+ }
1181
+ examples {
1182
+ name
1183
+ description
1184
+ externalValue
1185
+ value
1186
+ summary
1187
+ }
1188
+ schema
1189
+ }
1190
+ description
1191
+ required
1192
+ }
1193
+ responses {
1194
+ statusCode
1195
+ links
1196
+ description
1197
+ content {
1198
+ examples {
1199
+ name
1200
+ description
1201
+ externalValue
1202
+ value
1203
+ summary
1204
+ }
1205
+ mediaType
1206
+ encoding {
1207
+ name
1208
+ }
1209
+ schema
1210
+ }
1211
+ }
1212
+ }`), lr = new H(`
1213
+ query GetSchemas($input: JSON!, $type: SchemaType!) {
1214
+ schema(input: $input, type: $type) {
1215
+ title
1216
+ description
1217
+ summary
1218
+ components {
1219
+ schemas {
1220
+ name
1221
+ schema
1222
+ extensions
1223
+ }
1224
+ }
1225
+ }
1226
+ }
1227
+ `), dr = new H(`
1228
+ query getServerQuery($input: JSON!, $type: SchemaType!) {
1229
+ schema(input: $input, type: $type) {
1230
+ url
1231
+ servers {
1232
+ url
1233
+ }
1234
+ }
1235
+ }
1236
+ `), ur = new H(`
1237
+ query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1238
+ schema(input: $input, type: $type) {
1239
+ extensions
1240
+ tags {
1241
+ slug
1242
+ name
1243
+ extensions
1244
+ operations {
1245
+ summary
1246
+ slug
1247
+ method
1248
+ operationId
1249
+ path
1250
+ }
1251
+ }
1252
+ components {
1253
+ schemas {
1254
+ __typename
1255
+ }
1256
+ }
1257
+ }
1258
+ }
1259
+ `), mr = {
1260
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": or,
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": ar,
1262
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": ir,
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 extensions\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": cr,
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": lr,
1265
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": dr,
1266
+ "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": ur
1267
+ };
1268
+ function pr(e) {
1269
+ return mr[e] ?? {};
1270
+ }
1271
+ const q = ze.Root, qt = ze.CollapsibleTrigger, V = ze.CollapsibleContent;
1272
+ function hr() {
1273
+ const t = navigator.userAgent.toLowerCase();
1274
+ if (t.indexOf("win") !== -1)
1275
+ return "windows";
1276
+ if (t.indexOf("mac") !== -1)
1277
+ return "apple";
1278
+ if (t.indexOf("linux") !== -1)
1279
+ return "linux";
1280
+ if (t.indexOf("x11") !== -1)
1281
+ return "unix";
1282
+ }
1283
+ function fr() {
1284
+ return hr() === "apple";
1285
+ }
1286
+ const gr = {
1287
+ other: {
1288
+ alt: "Alt",
1289
+ meta: "Ctrl",
1290
+ ctrl: "Ctrl",
1291
+ shift: "⇧",
1292
+ option: "Alt"
1293
+ },
1294
+ apple: {
1295
+ alt: "⌥",
1296
+ meta: "⌘",
1297
+ ctrl: "Ctrl",
1298
+ shift: "⇧",
1299
+ option: "⌥"
1300
+ }
1301
+ }, xr = (e, t) => {
1302
+ const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = R(t);
1303
+ return z(() => {
1304
+ c.current = t;
1305
+ }, [t]), z(() => {
1306
+ const u = (d) => {
1307
+ (d.code === `Key${l?.toUpperCase()}` || d.code.toLowerCase() === l?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), c.current());
1308
+ };
1309
+ return window.addEventListener("keydown", u), () => {
1310
+ window.removeEventListener("keydown", u);
1311
+ };
1312
+ }, [l, a, r, o, i]), {
1313
+ trigger: () => c.current(),
1314
+ label: s.map(
1315
+ (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? gr[fr() ? "apple" : "other"][u] : u
1316
+ )
1317
+ };
1318
+ }, yr = Le()(
1319
+ $e(
1320
+ (e) => ({
1321
+ selectedServer: void 0,
1322
+ setSelectedServer: (t) => e({ selectedServer: t })
1323
+ }),
1324
+ { name: "zudoku-selected-server" }
1325
+ )
1326
+ ), vr = (e) => {
1327
+ const { selectedServer: t, setSelectedServer: s } = yr();
1328
+ return { selectedServer: vt(
1329
+ () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1330
+ [t, e]
1331
+ ), setSelectedServer: s };
1332
+ }, Vt = A.forwardRef(
1333
+ ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1334
+ "textarea",
1335
+ {
1336
+ className: C(
1337
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1338
+ e
1339
+ ),
1340
+ ref: s,
1341
+ ...t
1342
+ }
1343
+ )
1344
+ );
1345
+ Vt.displayName = "Textarea";
1346
+ const M = ({
1347
+ children: e,
1348
+ className: t
1349
+ }) => /* @__PURE__ */ n.jsxs(
1350
+ "div",
1351
+ {
1352
+ className: C(
1353
+ "grid grid-cols-[max-content_1fr_min-content_max-content] items-center gap-4 group bg-muted w-full h-10 ps-4 pe-2 border-b",
1354
+ t
1355
+ ),
1356
+ children: [
1357
+ e,
1358
+ /* @__PURE__ */ n.jsx(
1359
+ qt,
1360
+ {
1361
+ className: C(
1362
+ "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
1363
+ t
1364
+ ),
1365
+ children: /* @__PURE__ */ n.jsx(
1366
+ yn,
1367
+ {
1368
+ className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
1369
+ size: 16
1370
+ }
1371
+ )
1372
+ }
1373
+ )
1374
+ ]
1375
+ }
1376
+ ), G = ({
1377
+ children: e,
1378
+ className: t
1379
+ }) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), br = w.Root, jr = w.Trigger, Cr = w.Group, wr = A.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1380
+ w.SubTrigger,
1381
+ {
1382
+ ref: r,
1383
+ className: C(
1384
+ "flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
1385
+ t && "pl-8",
1386
+ e
1387
+ ),
1388
+ ...a,
1389
+ children: [
1390
+ s,
1391
+ /* @__PURE__ */ n.jsx(vn, { className: "ml-auto h-4 w-4" })
1392
+ ]
1393
+ }
1394
+ ));
1395
+ wr.displayName = w.SubTrigger.displayName;
1396
+ const Nr = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1397
+ w.SubContent,
1398
+ {
1399
+ ref: s,
1400
+ className: C(
1401
+ "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",
1402
+ e
1403
+ ),
1404
+ ...t
1405
+ }
1406
+ ));
1407
+ Nr.displayName = w.SubContent.displayName;
1408
+ const Bt = A.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(w.Portal, { children: /* @__PURE__ */ n.jsx(
1409
+ w.Content,
1410
+ {
1411
+ ref: a,
1412
+ sideOffset: t,
1413
+ className: C(
1414
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1415
+ "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",
1416
+ e
1417
+ ),
1418
+ ...s
1419
+ }
1420
+ ) }));
1421
+ Bt.displayName = w.Content.displayName;
1422
+ const _t = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1423
+ w.Item,
1424
+ {
1425
+ ref: a,
1426
+ className: C(
1427
+ "relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1428
+ t && "pl-8",
1429
+ e
1430
+ ),
1431
+ ...s
1432
+ }
1433
+ ));
1434
+ _t.displayName = w.Item.displayName;
1435
+ const Sr = A.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1436
+ w.CheckboxItem,
1437
+ {
1438
+ ref: r,
1439
+ className: C(
1440
+ "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1441
+ e
1442
+ ),
1443
+ checked: s,
1444
+ ...a,
1445
+ children: [
1446
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ft, { className: "h-4 w-4" }) }) }),
1447
+ t
1448
+ ]
1449
+ }
1450
+ ));
1451
+ Sr.displayName = w.CheckboxItem.displayName;
1452
+ const Tr = A.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1453
+ w.RadioItem,
1454
+ {
1455
+ ref: a,
1456
+ className: C(
1457
+ "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1458
+ e
1459
+ ),
1460
+ ...s,
1461
+ children: [
1462
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(bn, { className: "h-4 w-4 fill-current" }) }) }),
1463
+ t
1464
+ ]
1465
+ }
1466
+ ));
1467
+ Tr.displayName = w.RadioItem.displayName;
1468
+ const Ut = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1469
+ w.Label,
1470
+ {
1471
+ ref: a,
1472
+ className: C(
1473
+ "px-2 py-1.5 text-sm font-semibold",
1474
+ t && "pl-8",
1475
+ e
1476
+ ),
1477
+ ...s
1478
+ }
1479
+ ));
1480
+ Ut.displayName = w.Label.displayName;
1481
+ const Mt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1482
+ w.Separator,
1483
+ {
1484
+ ref: s,
1485
+ className: C("-mx-1 my-1 h-px bg-muted", e),
1486
+ ...t
1487
+ }
1488
+ ));
1489
+ Mt.displayName = w.Separator.displayName;
1490
+ const Ar = ({
1491
+ examples: e,
1492
+ onSelect: t
1493
+ }) => /* @__PURE__ */ n.jsxs(br, { children: [
1494
+ /* @__PURE__ */ n.jsx(jr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1495
+ E,
1496
+ {
1497
+ variant: "ghost",
1498
+ size: "sm",
1499
+ className: "hover:bg-accent hover:brightness-95",
1500
+ children: [
1501
+ "Use Example ",
1502
+ /* @__PURE__ */ n.jsx(he, { size: 16, className: "ml-2" })
1503
+ ]
1504
+ }
1505
+ ) }),
1506
+ /* @__PURE__ */ n.jsx(Bt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1507
+ /* @__PURE__ */ n.jsx(Ut, { children: s.mediaType }),
1508
+ /* @__PURE__ */ n.jsx(Mt, {}),
1509
+ /* @__PURE__ */ n.jsx(Cr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1510
+ _t,
1511
+ {
1512
+ onSelect: () => t(a, s.mediaType),
1513
+ children: /* @__PURE__ */ n.jsx(
1514
+ "span",
1515
+ {
1516
+ className: "line-clamp-1",
1517
+ title: a.summary ?? a.name,
1518
+ children: a.summary ?? a.name
1519
+ }
1520
+ )
1521
+ },
1522
+ a.name
1523
+ )) })
1524
+ ] }, s.mediaType)) })
1525
+ ] }), Or = ({ content: e }) => {
1526
+ const { register: t, setValue: s, watch: a } = ae(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1527
+ return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1528
+ /* @__PURE__ */ n.jsxs(M, { children: [
1529
+ /* @__PURE__ */ n.jsx(jn, { size: 16 }),
1530
+ /* @__PURE__ */ n.jsx(G, { children: "Body" }),
1531
+ e && r.length > 0 ? /* @__PURE__ */ n.jsx(
1532
+ Ar,
1533
+ {
1534
+ examples: e,
1535
+ onSelect: (i, l) => {
1536
+ s("body", JSON.stringify(i.value, null, 2)), s("headers", [
1537
+ ...o.filter((c) => c.name !== "Content-Type"),
1538
+ {
1539
+ name: "Content-Type",
1540
+ value: l,
1541
+ active: !0
1542
+ }
1543
+ ]);
1544
+ }
1545
+ }
1546
+ ) : /* @__PURE__ */ n.jsx("div", {})
1547
+ ] }),
1548
+ /* @__PURE__ */ n.jsx(V, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1549
+ Vt,
1550
+ {
1551
+ ...t("body"),
1552
+ className: C(
1553
+ "w-full p-2 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0"
1554
+ ),
1555
+ placeholder: "Your body here..."
1556
+ }
1557
+ ) })
1558
+ ] });
1559
+ }, ut = (e, t, s) => {
1560
+ const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1561
+ const i = o.replace(/[:{}]/g, "");
1562
+ return s.pathParams.find((c) => c.name === i)?.value ?? o;
1563
+ }), r = new URL(
1564
+ a.replace(/^\//, ""),
1565
+ e.endsWith("/") ? e : `${e}/`
1566
+ );
1567
+ return s.queryParams.filter((o) => o.active).forEach((o) => {
1568
+ r.searchParams.set(o.name, o.value);
1569
+ }), r;
1570
+ };
1571
+ function Pr(e) {
1572
+ return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1573
+ e
1574
+ );
1575
+ }
1576
+ const Rr = (e, t) => {
1577
+ const s = e.find(
1578
+ ([a]) => a.toLowerCase() === "content-disposition"
1579
+ )?.[1];
1580
+ if (s) {
1581
+ const a = s.match(
1582
+ /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/
1583
+ );
1584
+ if (a?.[1])
1585
+ return a[1].replace(/['"]/g, "");
1586
+ }
1587
+ try {
1588
+ const r = new URL(t).pathname.split("/").pop() || "download";
1589
+ return r.includes(".") ? r : "download";
1590
+ } catch {
1591
+ return "download";
1592
+ }
1593
+ }, xe = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1594
+ Oe.Root,
1595
+ {
1596
+ ref: s,
1597
+ className: C(
1598
+ "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-hidden 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",
1599
+ "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1600
+ e
1601
+ ),
1602
+ ...t,
1603
+ children: /* @__PURE__ */ n.jsx(
1604
+ Oe.Indicator,
1605
+ {
1606
+ className: C("flex items-center justify-center text-current"),
1607
+ children: /* @__PURE__ */ n.jsx(Cn, { className: "h-4 w-4" })
1608
+ }
1609
+ )
1610
+ }
1611
+ ));
1612
+ xe.displayName = Oe.Root.displayName;
1613
+ const Lr = de.Root, Gt = A.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(de.Portal, { children: /* @__PURE__ */ n.jsx(
1614
+ de.Content,
1615
+ {
1616
+ ref: r,
1617
+ align: t,
1618
+ sideOffset: s,
1619
+ className: C(
1620
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1621
+ e
1622
+ ),
1623
+ ...a
1624
+ }
1625
+ ) }));
1626
+ Gt.displayName = de.Content.displayName;
1627
+ const $r = ({
1628
+ value: e,
1629
+ options: t,
1630
+ onChange: s,
1631
+ className: a,
1632
+ placeholder: r = "Value",
1633
+ onEnterPress: o,
1634
+ ref: i
1635
+ }) => {
1636
+ const [l, c] = k(!1), [u, d] = k(!1), h = hs((m) => m.filtered.count), g = R(null);
1637
+ return /* @__PURE__ */ n.jsxs(Lr, { open: l, children: [
1638
+ /* @__PURE__ */ n.jsx(ps, { children: /* @__PURE__ */ n.jsx(
1639
+ gs,
1640
+ {
1641
+ autoComplete: "off",
1642
+ ref: (m) => {
1643
+ g.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1644
+ },
1645
+ value: e,
1646
+ placeholder: r,
1647
+ className: C("h-9 bg-transparent", a),
1648
+ onFocus: () => c(!0),
1649
+ onBlur: () => {
1650
+ u || c(!1);
1651
+ },
1652
+ onKeyDown: (m) => {
1653
+ m.key === "Enter" && (c(!1), g.current?.blur(), o?.(m));
1654
+ },
1655
+ onValueChange: (m) => s(m)
1656
+ }
1657
+ ) }),
1658
+ /* @__PURE__ */ n.jsx(
1659
+ Gt,
1660
+ {
1661
+ onMouseEnter: () => d(!0),
1662
+ onMouseLeave: () => d(!1),
1663
+ onOpenAutoFocus: (m) => m.preventDefault(),
1664
+ className: C("p-0 w-(--radix-popover-trigger-width)", {
1665
+ "border-0": h === 0
1666
+ }),
1667
+ align: "start",
1668
+ side: "bottom",
1669
+ onWheel: (m) => {
1670
+ m.stopPropagation();
1671
+ },
1672
+ onTouchMove: (m) => {
1673
+ m.stopPropagation();
1674
+ },
1675
+ children: /* @__PURE__ */ n.jsx(xs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1676
+ ys,
1677
+ {
1678
+ value: m,
1679
+ onSelect: (y) => {
1680
+ s(y), c(!1);
1681
+ },
1682
+ className: "cursor-pointer",
1683
+ children: m
1684
+ },
1685
+ m
1686
+ )) })
1687
+ }
1688
+ )
1689
+ ] });
1690
+ }, me = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(fs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx($r, { ...t }) }), oe = (e, t) => {
1691
+ const s = A.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1692
+ const l = r ? vs : e;
1693
+ return A.createElement(l, {
1694
+ ...o,
1695
+ ref: i,
1696
+ className: typeof t == "function" ? t({ className: a }) : C(t, a)
1697
+ });
1698
+ });
1699
+ return s.displayName = `VariantComponent(${e})`, s;
1700
+ }, qe = oe(
1701
+ "div",
1702
+ "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
1703
+ ), pe = oe(
1704
+ "div",
1705
+ "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1706
+ ), Er = Object.freeze([
1707
+ "Accept",
1708
+ "Accept-Encoding",
1709
+ "Accept-Language",
1710
+ "Authorization",
1711
+ "Cache-Control",
1712
+ "Connection",
1713
+ "Content-Disposition",
1714
+ "Content-Encoding",
1715
+ "Content-Language",
1716
+ "Content-Length",
1717
+ "Content-Range",
1718
+ "Content-Security-Policy",
1719
+ "Content-Type",
1720
+ "Cookie",
1721
+ "Date",
1722
+ "ETag",
1723
+ "Expires",
1724
+ "Host",
1725
+ "If-Modified-Since",
1726
+ "Location",
1727
+ "Origin",
1728
+ "Pragma",
1729
+ "Referer",
1730
+ "Set-Cookie",
1731
+ "User-Agent",
1732
+ "X-Requested-With"
1733
+ ]), Ir = ({
1734
+ control: e,
1735
+ schemaHeaders: t,
1736
+ lockedHeaders: s
1737
+ }) => {
1738
+ const { fields: a, append: r, remove: o } = De({
1739
+ control: e,
1740
+ name: "headers"
1741
+ }), { setValue: i, watch: l, formState: c } = ae(), u = R([]), d = R([]), h = l("headers"), g = bt(
1742
+ (f) => {
1743
+ f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1744
+ },
1745
+ [r]
1746
+ );
1747
+ z(() => {
1748
+ h.length === 0 && g();
1749
+ }, [h, g]);
1750
+ const m = (f) => {
1751
+ u.current[f]?.focus();
1752
+ }, y = (f) => {
1753
+ g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
1754
+ }, v = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((S) => S.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), O = s?.map((f) => ({
1755
+ name: f,
1756
+ id: `locked-${f}`,
1757
+ value: "••••••••••",
1758
+ active: !0,
1759
+ locked: !0
1760
+ })) ?? [];
1761
+ return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1762
+ /* @__PURE__ */ n.jsxs(M, { children: [
1763
+ /* @__PURE__ */ n.jsx(wn, { size: 16 }),
1764
+ /* @__PURE__ */ n.jsx(G, { children: "Headers" }),
1765
+ /* @__PURE__ */ n.jsxs(
1766
+ ne,
1767
+ {
1768
+ onClick: g,
1769
+ type: "button",
1770
+ size: "sm",
1771
+ variant: "ghost",
1772
+ className: "hover:bg-accent hover:brightness-95 flex gap-2",
1773
+ children: [
1774
+ "Add header ",
1775
+ /* @__PURE__ */ n.jsx(he, { size: 16 })
1776
+ ]
1777
+ }
1778
+ )
1779
+ ] }),
1780
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
1781
+ O.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
1782
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1783
+ pe,
1784
+ {
1785
+ className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
1786
+ children: [
1787
+ /* @__PURE__ */ n.jsx(Nn, { size: 16 }),
1788
+ /* @__PURE__ */ n.jsx(
1789
+ ue,
1790
+ {
1791
+ value: f.name,
1792
+ disabled: !0,
1793
+ className: "w-full border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
1794
+ }
1795
+ ),
1796
+ /* @__PURE__ */ n.jsx("div", { children: f.value })
1797
+ ]
1798
+ },
1799
+ f.id
1800
+ ) }),
1801
+ /* @__PURE__ */ n.jsx(
1802
+ ot,
1803
+ {
1804
+ alignOffset: 10,
1805
+ side: "bottom",
1806
+ align: "start",
1807
+ children: /* @__PURE__ */ n.jsx("p", { children: "This header is set by the selected authentication." })
1808
+ }
1809
+ )
1810
+ ] }, f.id)),
1811
+ a.map((f, j) => {
1812
+ const $ = t.find(
1813
+ (S) => S.name === h.at(j)?.name
1814
+ );
1815
+ return /* @__PURE__ */ n.jsxs(
1816
+ pe,
1817
+ {
1818
+ className: C(
1819
+ b.includes(j) && "text-amber-600",
1820
+ b.includes(j) && !c.dirtyFields.headers?.[j]?.value && "hidden"
1821
+ ),
1822
+ children: [
1823
+ /* @__PURE__ */ n.jsx(
1824
+ F,
1825
+ {
1826
+ control: e,
1827
+ name: `headers.${j}.active`,
1828
+ render: ({ field: S }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1829
+ /* @__PURE__ */ n.jsx(
1830
+ xe,
1831
+ {
1832
+ id: `headers.${j}.active`,
1833
+ className: C(
1834
+ b.includes(j) && "hidden"
1835
+ ),
1836
+ checked: S.value,
1837
+ onCheckedChange: (D) => {
1838
+ S.onChange(D);
1839
+ }
1840
+ }
1841
+ ),
1842
+ /* @__PURE__ */ n.jsxs(rt, { children: [
1843
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1844
+ Sn,
1845
+ {
1846
+ className: C(
1847
+ "text-amber-600",
1848
+ !b.includes(j) && "hidden"
1849
+ ),
1850
+ size: 16
1851
+ }
1852
+ ) }),
1853
+ /* @__PURE__ */ n.jsx(
1854
+ ot,
1855
+ {
1856
+ alignOffset: 10,
1857
+ side: "bottom",
1858
+ align: "start",
1859
+ children: /* @__PURE__ */ n.jsx("p", { children: "This header will be overwritten by the selected authentication." })
1860
+ }
1861
+ )
1862
+ ] })
1863
+ ] })
1864
+ }
1865
+ ),
1866
+ /* @__PURE__ */ n.jsx(
1867
+ F,
1868
+ {
1869
+ control: e,
1870
+ name: `headers.${j}.name`,
1871
+ render: ({ field: S }) => /* @__PURE__ */ n.jsx(
1872
+ me,
1873
+ {
1874
+ ...S,
1875
+ placeholder: "Name",
1876
+ className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1877
+ options: [...v, ...Er],
1878
+ onEnterPress: () => m(j),
1879
+ onChange: (D) => {
1880
+ S.onChange(D), i(`headers.${j}.active`, !0);
1881
+ },
1882
+ ref: (D) => {
1883
+ d.current[j] = D;
1884
+ }
1885
+ }
1886
+ )
1887
+ }
1888
+ ),
1889
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1890
+ /* @__PURE__ */ n.jsx(
1891
+ F,
1892
+ {
1893
+ control: e,
1894
+ name: `headers.${j}.value`,
1895
+ render: ({ field: S }) => $?.enum && $.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1896
+ me,
1897
+ {
1898
+ shouldFilter: !1,
1899
+ value: S.value,
1900
+ options: $.enum ?? [],
1901
+ onChange: (P) => {
1902
+ S.onChange(P), i(`headers.${j}.active`, !0);
1903
+ },
1904
+ className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1905
+ }
1906
+ ) : /* @__PURE__ */ n.jsx(
1907
+ ue,
1908
+ {
1909
+ placeholder: "Value",
1910
+ className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
1911
+ autoComplete: "off",
1912
+ ...S,
1913
+ ref: (P) => {
1914
+ u.current[j] = P;
1915
+ },
1916
+ onKeyDown: (P) => {
1917
+ P.key === "Enter" && P.currentTarget.value.trim() && y(j);
1918
+ }
1919
+ }
1920
+ )
1921
+ }
1922
+ ),
1923
+ /* @__PURE__ */ n.jsx(
1924
+ ne,
1925
+ {
1926
+ size: "icon-xs",
1927
+ variant: "ghost",
1928
+ className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
1929
+ onClick: () => o(j),
1930
+ type: "button",
1931
+ children: /* @__PURE__ */ n.jsx(gt, { size: 16 })
1932
+ }
1933
+ )
1934
+ ] })
1935
+ ]
1936
+ },
1937
+ f.id
1938
+ );
1939
+ })
1940
+ ] }) }) }) })
1941
+ ] });
1942
+ }, kr = js(
1943
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1944
+ ), Ve = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1945
+ At.Root,
1946
+ {
1947
+ ref: s,
1948
+ className: C(kr(), e),
1949
+ ...t
1950
+ }
1951
+ ));
1952
+ Ve.displayName = At.Root.displayName;
1953
+ const Ht = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1954
+ se.Root,
1955
+ {
1956
+ className: C("grid gap-2", e),
1957
+ ...t,
1958
+ ref: s
1959
+ }
1960
+ ));
1961
+ Ht.displayName = se.Root.displayName;
1962
+ const Qt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1963
+ se.Item,
1964
+ {
1965
+ ref: s,
1966
+ className: C(
1967
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1968
+ e
1969
+ ),
1970
+ ...t,
1971
+ children: /* @__PURE__ */ n.jsx(se.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Tn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1972
+ }
1973
+ ));
1974
+ Qt.displayName = se.Item.displayName;
1975
+ const Jt = ({
1976
+ identities: e,
1977
+ setValue: t,
1978
+ value: s
1979
+ }) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
1980
+ Ht,
1981
+ {
1982
+ onValueChange: (a) => t(a),
1983
+ value: s,
1984
+ defaultValue: te,
1985
+ className: "gap-0",
1986
+ disabled: e?.length === 0,
1987
+ children: [{ id: te, label: "None" }, ...e ?? []].map(
1988
+ (a) => /* @__PURE__ */ n.jsxs(
1989
+ Ve,
1990
+ {
1991
+ className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
1992
+ children: [
1993
+ /* @__PURE__ */ n.jsx(Qt, { value: a.id, id: a.id }),
1994
+ /* @__PURE__ */ n.jsx("span", { children: a.label })
1995
+ ]
1996
+ },
1997
+ a.id
1998
+ )
1999
+ )
2000
+ }
2001
+ ) }), Dr = ({
2002
+ onSubmit: e,
2003
+ identities: t,
2004
+ open: s,
2005
+ onOpenChange: a
2006
+ }) => {
2007
+ const [r, o] = k(void 0), [i, l] = k(!1);
2008
+ return /* @__PURE__ */ n.jsx(Ee, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2009
+ /* @__PURE__ */ n.jsx(ke, { children: "Select an auth identity" }),
2010
+ /* @__PURE__ */ n.jsx(jt, { children: "Please select an identity for this request." }),
2011
+ /* @__PURE__ */ n.jsx(bs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2012
+ Jt,
2013
+ {
2014
+ identities: t,
2015
+ setValue: o,
2016
+ value: r
2017
+ }
2018
+ ) }),
2019
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex flex-col gap-2", children: [
2020
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2021
+ /* @__PURE__ */ n.jsx(
2022
+ xe,
2023
+ {
2024
+ id: "remember",
2025
+ checked: i,
2026
+ onCheckedChange: (c) => l(
2027
+ c === "indeterminate" ? !1 : !!c
2028
+ )
2029
+ }
2030
+ ),
2031
+ /* @__PURE__ */ n.jsx(Ve, { htmlFor: "remember", children: "Remember my choice" })
2032
+ ] }),
2033
+ /* @__PURE__ */ n.jsx(
2034
+ E,
2035
+ {
2036
+ onClick: () => e({ identity: r, rememberedIdentity: i }),
2037
+ children: "Send"
2038
+ }
2039
+ )
2040
+ ] })
2041
+ ] }) });
2042
+ }, Ne = (e) => Math.abs(
2043
+ Number.isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(parseInt(e)) ? 0 : parseInt(e)
2044
+ ), Se = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${Ne(t) + Ne(s)}`)) : Ne(e), mt = (e, t = {}) => {
2045
+ const s = (3 * Se(e) + 2 * Se(e) + Se(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
2046
+ return `${s}deg ${a}% ${r}%`;
2047
+ }, Te = "data-linked-param", zr = (e) => {
2048
+ const { resolvedTheme: t } = Cs();
2049
+ return {
2050
+ text: mt(
2051
+ e,
2052
+ t === "light" ? { saturation: 95, lightness: 38 } : {}
2053
+ ),
2054
+ background: mt(
2055
+ e,
2056
+ t === "light" ? { saturation: 85, lightness: 40 } : {}
2057
+ )
2058
+ };
2059
+ }, Wt = ({
2060
+ name: e,
2061
+ className: t,
2062
+ slug: s,
2063
+ title: a,
2064
+ children: r,
2065
+ onClick: o
2066
+ }) => {
2067
+ const i = R(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = zr(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2068
+ return z(() => {
2069
+ if (!l || !i.current) return;
2070
+ const y = () => {
2071
+ document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2072
+ O instanceof HTMLElement && (O.dataset.active = "true");
2073
+ });
2074
+ }, v = () => {
2075
+ document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2076
+ O instanceof HTMLElement && (O.dataset.active = "false");
2077
+ });
2078
+ }, b = i.current;
2079
+ return b.addEventListener("mouseenter", y), b.addEventListener("mouseleave", v), () => {
2080
+ b.removeEventListener("mouseenter", y), b.removeEventListener("mouseleave", v);
2081
+ };
2082
+ }, [l]), // biome-ignore lint/a11y/noStaticElementInteractions: Just passing props through
2083
+ // biome-ignore lint/a11y/useKeyWithClickEvents: Just passing props through
2084
+ /* @__PURE__ */ n.jsx(
2085
+ "span",
2086
+ {
2087
+ [Te]: l,
2088
+ className: C(
2089
+ // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
2090
+ "relative transition-all duration-100 rounded-lg",
2091
+ "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
2092
+ "data-[active=true]:border-(--param-color) data-[active=true]:shadow-sm data-[active=true]:bottom-px",
2093
+ t
2094
+ ),
2095
+ title: a,
2096
+ suppressHydrationWarning: !0,
2097
+ ref: i,
2098
+ onClick: o,
2099
+ style: {
2100
+ "--param-color": h,
2101
+ "--border-color": m,
2102
+ "--background-color": g
2103
+ },
2104
+ children: r ?? e
2105
+ }
2106
+ );
2107
+ }, Fr = ({
2108
+ control: e,
2109
+ url: t
2110
+ }) => {
2111
+ const { fields: s } = De({
2112
+ control: e,
2113
+ name: "pathParams"
2114
+ }), a = [...s].sort(
2115
+ (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
2116
+ );
2117
+ return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(pe, { children: [
2118
+ /* @__PURE__ */ n.jsx(
2119
+ F,
2120
+ {
2121
+ control: e,
2122
+ name: `pathParams.${o}.name`,
2123
+ render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2124
+ Wt,
2125
+ {
2126
+ slug: r.name,
2127
+ name: r.name,
2128
+ className: "font-mono text-xs px-2"
2129
+ }
2130
+ ) })
2131
+ }
2132
+ ),
2133
+ /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ n.jsx(
2134
+ F,
2135
+ {
2136
+ control: e,
2137
+ name: `pathParams.${o}.value`,
2138
+ render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2139
+ ue,
2140
+ {
2141
+ ...i,
2142
+ required: !0,
2143
+ placeholder: "Value",
2144
+ className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs font-mono focus-visible:ring-0"
2145
+ }
2146
+ )
2147
+ }
2148
+ ) })
2149
+ ] }, r.id)) }) });
2150
+ }, qr = oe(
2151
+ "input",
2152
+ "bg-transparent h-9 font-mono text-xs"
2153
+ ), Vr = ({
2154
+ control: e,
2155
+ schemaQueryParams: t
2156
+ }) => {
2157
+ const { fields: s, remove: a, append: r } = De({
2158
+ control: e,
2159
+ name: "queryParams"
2160
+ }), { setValue: o, getValues: i, watch: l } = ae(), c = l("queryParams");
2161
+ z(() => {
2162
+ c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
2163
+ }, [c, r]);
2164
+ const u = t.map(
2165
+ (d) => !!d.isRequired
2166
+ );
2167
+ return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2168
+ /* @__PURE__ */ n.jsxs(M, { children: [
2169
+ /* @__PURE__ */ n.jsx(An, { size: 16 }),
2170
+ /* @__PURE__ */ n.jsx(G, { children: "Query Parameters" }),
2171
+ /* @__PURE__ */ n.jsxs(
2172
+ E,
2173
+ {
2174
+ onClick: () => {
2175
+ o("queryParams", [
2176
+ ...i("queryParams"),
2177
+ { name: "", value: "", active: !1 }
2178
+ ]);
2179
+ },
2180
+ type: "button",
2181
+ size: "sm",
2182
+ variant: "ghost",
2183
+ className: "hover:bg-accent hover:brightness-95 flex gap-2",
2184
+ children: [
2185
+ "Add parameter ",
2186
+ /* @__PURE__ */ n.jsx(he, { size: 16 })
2187
+ ]
2188
+ }
2189
+ )
2190
+ ] }),
2191
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
2192
+ const g = t.find(
2193
+ (m) => m.name === c.at(h)?.name
2194
+ );
2195
+ return /* @__PURE__ */ n.jsxs(pe, { children: [
2196
+ /* @__PURE__ */ n.jsx(
2197
+ F,
2198
+ {
2199
+ control: e,
2200
+ name: `queryParams.${h}.active`,
2201
+ render: ({ field: m }) => /* @__PURE__ */ n.jsx(
2202
+ xe,
2203
+ {
2204
+ id: `queryParams.${h}.active`,
2205
+ checked: m.value,
2206
+ onCheckedChange: m.onChange
2207
+ }
2208
+ )
2209
+ }
2210
+ ),
2211
+ /* @__PURE__ */ n.jsx(
2212
+ F,
2213
+ {
2214
+ control: e,
2215
+ render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(qr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2216
+ "label",
2217
+ {
2218
+ className: "flex items-center cursor-pointer gap-1",
2219
+ htmlFor: `queryParams.${h}.active`,
2220
+ title: u[h] ? "Required field" : void 0,
2221
+ children: [
2222
+ m.value,
2223
+ u[h] && /* @__PURE__ */ n.jsx("sup", { children: " *" })
2224
+ ]
2225
+ }
2226
+ ) }) : /* @__PURE__ */ n.jsx(
2227
+ me,
2228
+ {
2229
+ placeholder: "Name",
2230
+ value: m.value,
2231
+ options: t.map((y) => y.name),
2232
+ onChange: (y) => {
2233
+ m.onChange(y);
2234
+ },
2235
+ className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2236
+ }
2237
+ ),
2238
+ name: `queryParams.${h}.name`
2239
+ }
2240
+ ),
2241
+ /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center", children: [
2242
+ /* @__PURE__ */ n.jsx(
2243
+ F,
2244
+ {
2245
+ control: e,
2246
+ render: ({ field: m }) => g?.enum && g.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2247
+ me,
2248
+ {
2249
+ value: m.value,
2250
+ options: g.enum ?? [],
2251
+ onChange: (v) => {
2252
+ m.onChange(v), o(`queryParams.${h}.active`, !0);
2253
+ },
2254
+ className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2255
+ }
2256
+ ) : /* @__PURE__ */ n.jsx(
2257
+ ue,
2258
+ {
2259
+ ...m,
2260
+ onChange: (v) => {
2261
+ m.onChange(v.target.value), v.target.value.length > 0 && o(`queryParams.${h}.active`, !0);
2262
+ },
2263
+ placeholder: "Value",
2264
+ "aria-label": "Query parameter value",
2265
+ className: "w-full border-0 p-0 m-0 shadow-none focus-visible:ring-0 text-xs font-mono"
2266
+ }
2267
+ ),
2268
+ name: `queryParams.${h}.value`
2269
+ }
2270
+ ),
2271
+ /* @__PURE__ */ n.jsx(
2272
+ E,
2273
+ {
2274
+ size: "icon-xs",
2275
+ variant: "ghost",
2276
+ className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2277
+ onClick: () => a(h),
2278
+ type: "button",
2279
+ children: /* @__PURE__ */ n.jsx(gt, { size: 16 })
2280
+ }
2281
+ )
2282
+ ] })
2283
+ ] }, d.id);
2284
+ }) }) }) })
2285
+ ] });
2286
+ }, Br = ({
2287
+ open: e,
2288
+ setOpen: t,
2289
+ onSignUp: s,
2290
+ onLogin: a
2291
+ }) => /* @__PURE__ */ n.jsx(Ee, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2292
+ /* @__PURE__ */ n.jsx(ke, { children: "Welcome to the Playground!" }),
2293
+ /* @__PURE__ */ n.jsx(jt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2294
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex gap-2 sm:justify-between", children: [
2295
+ /* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2296
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2297
+ s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2298
+ a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
2299
+ ] })
2300
+ ] })
2301
+ ] }) }), _r = Le()(
2302
+ $e(
2303
+ (e, t) => ({
2304
+ rememberedIdentity: null,
2305
+ setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
2306
+ getRememberedIdentity: (s) => s.find(
2307
+ (a) => a === t().rememberedIdentity
2308
+ )
2309
+ }),
2310
+ {
2311
+ name: "identity-storage",
2312
+ storage: xt(() => sessionStorage)
2313
+ }
2314
+ )
2315
+ ), Ur = ({
2316
+ path: e,
2317
+ renderParam: t
2318
+ }) => {
2319
+ let s = 0;
2320
+ return e.split("/").map((a, r, o) => {
2321
+ const i = Array.from(a.matchAll(/{([^}]+)}/g)), l = [];
2322
+ let c = 0;
2323
+ return i.forEach((u) => {
2324
+ const [d, h] = u;
2325
+ if (!h) return;
2326
+ const g = u.index;
2327
+ g > c && l.push(
2328
+ /* @__PURE__ */ n.jsx(K, { children: a.slice(c, g) }, `text-${c}-${g}`)
2329
+ ), l.push(
2330
+ /* @__PURE__ */ n.jsx(K, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2331
+ ), c = g + d.length;
2332
+ }), c < a.length && l.push(
2333
+ /* @__PURE__ */ n.jsx(K, { children: a.slice(c) }, `text-${c}-${a.length}`)
2334
+ ), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
2335
+ /* @__PURE__ */ n.jsxs(K, { children: [
2336
+ l,
2337
+ r < o.length - 1 && "/",
2338
+ /* @__PURE__ */ n.jsx("wbr", {})
2339
+ ] }, `${a}-${r}`);
2340
+ });
2341
+ }, Mr = ({ url: e }) => {
2342
+ const { watch: t, setFocus: s } = ae(), [a] = t(["pathParams"]);
2343
+ return /* @__PURE__ */ n.jsx(
2344
+ Ur,
2345
+ {
2346
+ path: e,
2347
+ renderParam: ({ name: r, originalValue: o, index: i }) => {
2348
+ const l = a.find(
2349
+ (c) => c.name === r
2350
+ )?.value;
2351
+ return /* @__PURE__ */ n.jsx(
2352
+ Wt,
2353
+ {
2354
+ name: r,
2355
+ backgroundOpacity: "0",
2356
+ slug: r,
2357
+ onClick: () => s(`pathParams.${i}.value`),
2358
+ children: l || o
2359
+ }
2360
+ );
2361
+ }
2362
+ }
2363
+ );
2364
+ }, Gr = () => {
2365
+ const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(K, { children: [
2366
+ a.name,
2367
+ "=",
2368
+ encodeURIComponent(a.value).replaceAll("%20", "+"),
2369
+ r < o.length - 1 && "&",
2370
+ /* @__PURE__ */ n.jsx("wbr", {})
2371
+ ] }, a.name));
2372
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2373
+ s.length > 0 ? "?" : "",
2374
+ s
2375
+ ] });
2376
+ }, Xt = (e = 0) => {
2377
+ if (e === 0)
2378
+ return "0 B";
2379
+ const t = Math.floor(Math.log(e) / Math.log(1e3));
2380
+ return `${(e / 1e3 ** t).toFixed(t ? 2 : 0)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2381
+ }, Hr = ({ status: e }) => {
2382
+ if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2383
+ switch (Number(e.toString().slice(0, 1))) {
2384
+ case 2:
2385
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-green-500" });
2386
+ case 4:
2387
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-400" });
2388
+ case 5:
2389
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-red-500" });
2390
+ default:
2391
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2392
+ }
2393
+ }, Qr = () => {
2394
+ const e = R(null), t = R(null), s = R(Date.now()), a = R(null), r = bt(() => {
2395
+ if (t.current) {
2396
+ const o = Date.now() - s.current;
2397
+ t.current.nodeValue = o.toFixed();
2398
+ }
2399
+ a.current = requestAnimationFrame(r);
2400
+ }, []);
2401
+ return Zn(() => {
2402
+ const o = e.current;
2403
+ if (!o) return;
2404
+ const i = document.createTextNode("0");
2405
+ return o.appendChild(i), t.current = i, s.current = Date.now(), a.current = requestAnimationFrame(r), () => {
2406
+ a.current && cancelAnimationFrame(a.current), t.current && o.contains(i) && o.removeChild(i);
2407
+ };
2408
+ }, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2409
+ }, Jr = ({
2410
+ status: e,
2411
+ time: t,
2412
+ size: s,
2413
+ isFinished: a,
2414
+ progress: r
2415
+ }) => {
2416
+ const o = {
2417
+ 200: "OK",
2418
+ 201: "Created",
2419
+ 202: "Accepted",
2420
+ 204: "No Content",
2421
+ 400: "Bad Request",
2422
+ 401: "Unauthorized",
2423
+ 403: "Forbidden",
2424
+ 404: "Not Found",
2425
+ 405: "Method Not Allowed",
2426
+ 500: "Internal Server Error"
2427
+ };
2428
+ return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2429
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2430
+ /* @__PURE__ */ n.jsx(Hr, { status: e }),
2431
+ " ",
2432
+ e ?? "Sending Request...",
2433
+ e ? ` ${o[e]}` : ""
2434
+ ] }),
2435
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2436
+ /* @__PURE__ */ n.jsxs("div", { children: [
2437
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2438
+ " ",
2439
+ /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Xt(s) : "- B" })
2440
+ ] }),
2441
+ /* @__PURE__ */ n.jsxs("div", { children: [
2442
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2443
+ " ",
2444
+ t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Qr, {}),
2445
+ "ms"
2446
+ ] })
2447
+ ] }),
2448
+ /* @__PURE__ */ n.jsx(
2449
+ "div",
2450
+ {
2451
+ className: "h-full bg-neutral-500/10 absolute left-0 -bottom-0 z-10 transition-all duration-200 ease-in-out",
2452
+ style: {
2453
+ opacity: a ? 0 : 1,
2454
+ width: a ? 0 : `${r * 100}%`
2455
+ }
2456
+ }
2457
+ )
2458
+ ] });
2459
+ };
2460
+ function Be(e) {
2461
+ if (e === null) return "null";
2462
+ if (Array.isArray(e)) {
2463
+ if (e.length === 0) return "any[]";
2464
+ const t = e[0];
2465
+ return t === void 0 ? "any[]" : `${Be(t)}[]`;
2466
+ }
2467
+ return typeof e == "object" ? Wr(e) : typeof e;
2468
+ }
2469
+ function Wr(e, t = "") {
2470
+ const s = ["{"];
2471
+ for (const [a, r] of Object.entries(e)) {
2472
+ const o = Be(r);
2473
+ s.push(` ${a}: ${o};`);
2474
+ }
2475
+ return s.push("}"), s.join(`
2476
+ `);
2477
+ }
2478
+ function Xr(e) {
2479
+ return { lines: [`type GeneratedType = ${Be(e)};`] };
2480
+ }
2481
+ const Zt = ({
2482
+ code: e,
2483
+ language: t,
2484
+ children: s
2485
+ }) => {
2486
+ const { syntaxHighlighting: a } = Mn().options;
2487
+ return Wn(a?.highlighter, "Highlighter not found"), ws(
2488
+ a.highlighter,
2489
+ e ?? s ?? "",
2490
+ t,
2491
+ a.themes
2492
+ );
2493
+ };
2494
+ Zt.displayName = "Highlight";
2495
+ const Zr = (e) => Object.entries({
2496
+ "application/json": "json",
2497
+ "text/json": "json",
2498
+ "text/html": "html",
2499
+ "text/css": "css",
2500
+ "text/javascript": "javascript",
2501
+ "application/xml": "xml",
2502
+ "application/xhtml+xml": "xhtml"
2503
+ }).find(
2504
+ ([s]) => e.includes(s)
2505
+ )?.[1], Yr = (e) => {
2506
+ const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2507
+ return Zr(t);
2508
+ }, Kr = (e) => {
2509
+ try {
2510
+ return JSON.stringify(JSON.parse(e), null, 2);
2511
+ } catch {
2512
+ return null;
2513
+ }
2514
+ }, ea = (e) => {
2515
+ const t = [
2516
+ "Content-Type",
2517
+ "Content-Length",
2518
+ "Authorization",
2519
+ "X-RateLimit-Remaining",
2520
+ "X-RateLimit-Limit",
2521
+ "Cache-Control",
2522
+ "ETag"
2523
+ ].map((s) => s.toLowerCase());
2524
+ return [...e].sort(([s], [a]) => {
2525
+ const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2526
+ return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2527
+ });
2528
+ }, Y = 3, Ae = oe(
2529
+ "div",
2530
+ "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2531
+ ), X = oe("div", "py-1 break-all"), ta = ({
2532
+ body: e = "",
2533
+ headers: t,
2534
+ request: s,
2535
+ size: a,
2536
+ isBinary: r = !1,
2537
+ fileName: o,
2538
+ blob: i
2539
+ }) => {
2540
+ const l = Yr(t), c = Kr(e), u = c || e, [d, h] = k(
2541
+ c ? "formatted" : "raw"
2542
+ ), g = Gn({
2543
+ queryKey: ["types", u],
2544
+ queryFn: async () => Xr(JSON.parse(u)),
2545
+ enabled: d === "types" && !r
2546
+ }), m = () => {
2547
+ if (i && o) {
2548
+ const v = URL.createObjectURL(i), b = document.createElement("a");
2549
+ b.href = v, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(v);
2550
+ }
2551
+ }, y = ea([...t]);
2552
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2553
+ /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2554
+ /* @__PURE__ */ n.jsxs(M, { children: [
2555
+ /* @__PURE__ */ n.jsx(On, { size: 16 }),
2556
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Request" })
2557
+ ] }),
2558
+ /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2559
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2560
+ /* @__PURE__ */ n.jsx(X, { children: b })
2561
+ ] }, v)) }) })
2562
+ ] }),
2563
+ /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2564
+ /* @__PURE__ */ n.jsxs(M, { children: [
2565
+ /* @__PURE__ */ n.jsx(Pn, { size: 16 }),
2566
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Response" })
2567
+ ] }),
2568
+ /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
2569
+ y.slice(0, Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2570
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2571
+ /* @__PURE__ */ n.jsx(X, { children: b })
2572
+ ] }, v)),
2573
+ y.length > Y && /* @__PURE__ */ n.jsxs(q, { className: "col-span-full grid-cols-subgrid grid group", children: [
2574
+ /* @__PURE__ */ n.jsxs(qt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2575
+ /* @__PURE__ */ n.jsxs("span", { children: [
2576
+ "Show ",
2577
+ y.length - Y,
2578
+ " more headers"
2579
+ ] }),
2580
+ /* @__PURE__ */ n.jsx(he, { size: 12, className: "text-muted-foreground" })
2581
+ ] }),
2582
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-full grid grid-cols-subgrid", children: y.slice(Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2583
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2584
+ /* @__PURE__ */ n.jsx(X, { children: b })
2585
+ ] }, v)) })
2586
+ ] })
2587
+ ] }) })
2588
+ ] }),
2589
+ /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
2590
+ wt,
2591
+ {
2592
+ value: d,
2593
+ onValueChange: (v) => h(v),
2594
+ children: [
2595
+ /* @__PURE__ */ n.jsx(Nt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(St, { placeholder: "View" }) }),
2596
+ /* @__PURE__ */ n.jsxs(Tt, { children: [
2597
+ /* @__PURE__ */ n.jsx(le, { value: "formatted", children: "Formatted" }),
2598
+ /* @__PURE__ */ n.jsx(le, { value: "raw", children: "Raw" }),
2599
+ /* @__PURE__ */ n.jsx(le, { value: "types", children: "Types" })
2600
+ ] })
2601
+ ]
2602
+ }
2603
+ ) }) }),
2604
+ /* @__PURE__ */ n.jsx("div", { children: r ? /* @__PURE__ */ n.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2605
+ /* @__PURE__ */ n.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
2606
+ /* @__PURE__ */ n.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
2607
+ /* @__PURE__ */ n.jsxs(
2608
+ E,
2609
+ {
2610
+ onClick: m,
2611
+ className: "flex items-center gap-2",
2612
+ disabled: !i,
2613
+ children: [
2614
+ /* @__PURE__ */ n.jsx(Rn, { className: "h-4 w-4" }),
2615
+ "Download ",
2616
+ o || "file",
2617
+ " (",
2618
+ Xt(a),
2619
+ ")"
2620
+ ]
2621
+ }
2622
+ )
2623
+ ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
2624
+ Zt,
2625
+ {
2626
+ language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
2627
+ code: (d === "raw" ? e : d === "types" ? g.data?.lines.join(`
2628
+ `) : u) ?? ""
2629
+ }
2630
+ ) }) })
2631
+ ] });
2632
+ }, na = ({
2633
+ queryMutation: e,
2634
+ showLongRunningWarning: t,
2635
+ onCancel: s,
2636
+ tip: a,
2637
+ isFinished: r,
2638
+ progress: o
2639
+ }) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
2640
+ (e.isPending || e.data) && /* @__PURE__ */ n.jsx(
2641
+ Jr,
2642
+ {
2643
+ status: e.data?.status,
2644
+ time: e.data?.time,
2645
+ size: e.data?.size,
2646
+ isFinished: r,
2647
+ progress: o
2648
+ }
2649
+ ),
2650
+ e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(rs, { children: [
2651
+ /* @__PURE__ */ n.jsx(Ln, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2652
+ /* @__PURE__ */ n.jsx(as, { children: "Request failed" }),
2653
+ /* @__PURE__ */ n.jsx(os, { children: e.error.message || String(e.error) || "Unexpected error" })
2654
+ ] }) }) : e.data ? /* @__PURE__ */ n.jsx(
2655
+ ta,
2656
+ {
2657
+ request: e.data.request,
2658
+ size: e.data.size,
2659
+ headers: e.data.headers,
2660
+ body: e.data.body,
2661
+ isBinary: e.data.isBinary,
2662
+ fileName: e.data.fileName,
2663
+ blob: e.data.blob
2664
+ }
2665
+ ) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2666
+ /* @__PURE__ */ n.jsx(ns, {}),
2667
+ /* @__PURE__ */ n.jsxs(
2668
+ "div",
2669
+ {
2670
+ className: C(
2671
+ "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2672
+ t && "opacity-100 pointer-events-auto"
2673
+ ),
2674
+ children: [
2675
+ "Looks like the request is taking longer than expected.",
2676
+ /* @__PURE__ */ n.jsx(
2677
+ ne,
2678
+ {
2679
+ type: "button",
2680
+ onClick: s,
2681
+ size: "sm",
2682
+ className: "w-fit",
2683
+ variant: "outline",
2684
+ children: "Cancel"
2685
+ }
2686
+ )
2687
+ ]
2688
+ }
2689
+ )
2690
+ ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2691
+ /* @__PURE__ */ n.jsx(
2692
+ $n,
2693
+ {
2694
+ size: 64,
2695
+ className: "text-muted-foreground",
2696
+ strokeWidth: 1.2
2697
+ }
2698
+ ),
2699
+ /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2700
+ a
2701
+ ] }) })
2702
+ ] }), sa = Le()(
2703
+ $e(
2704
+ (e) => ({
2705
+ skipLogin: !1,
2706
+ setSkipLogin: (t) => e({ skipLogin: t })
2707
+ }),
2708
+ {
2709
+ name: "remember-skip-login",
2710
+ storage: xt(() => sessionStorage)
2711
+ }
2712
+ )
2713
+ ), te = "__none", ra = ({
2714
+ server: e,
2715
+ servers: t = [],
2716
+ url: s,
2717
+ method: a,
2718
+ headers: r = [],
2719
+ queryParams: o = [],
2720
+ pathParams: i = [],
2721
+ defaultBody: l = "",
2722
+ examples: c,
2723
+ requiresLogin: u = !1,
2724
+ onLogin: d,
2725
+ onSignUp: h
2726
+ }) => {
2727
+ const { selectedServer: g, setSelectedServer: m } = vr(
2728
+ t.map((p) => ({ url: p }))
2729
+ ), [y, v] = k(!1), b = Hn(), { setRememberedIdentity: O, getRememberedIdentity: f } = _r(), [, j] = Yn(), { skipLogin: $, setSkipLogin: S } = sa(), [D, P] = k(!1), Q = R(void 0), Ue = ms(O), Me = R(null), { label: sn } = xr("meta+enter", () => {
2730
+ Me.current?.requestSubmit();
2731
+ }), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
2732
+ (p, W) => Ge.indexOf(p.name) - Ge.indexOf(W.name)
2733
+ ), { register: rn, control: ie, handleSubmit: Qe, watch: Je, setValue: ye, ...ve } = cs({
2734
+ defaultValues: {
2735
+ body: l,
2736
+ queryParams: o.length > 0 ? o.map((p) => ({
2737
+ name: p.name,
2738
+ value: p.defaultValue ?? "",
2739
+ active: p.defaultActive ?? !1,
2740
+ enum: p.enum ?? []
2741
+ })) : [
2742
+ {
2743
+ name: "",
2744
+ value: "",
2745
+ active: !1,
2746
+ enum: []
2747
+ }
2748
+ ],
2749
+ pathParams: He.map((p) => ({
2750
+ name: p.name,
2751
+ value: p.defaultValue ?? ""
2752
+ })),
2753
+ headers: r.length > 0 ? r.map((p) => ({
2754
+ name: p.name,
2755
+ value: p.defaultValue ?? "",
2756
+ active: p.defaultActive ?? !1
2757
+ })) : [
2758
+ {
2759
+ name: "",
2760
+ value: "",
2761
+ active: !1
2762
+ }
2763
+ ],
2764
+ identity: f([
2765
+ te,
2766
+ ...b.data?.map((p) => p.id) ?? []
2767
+ ])
2768
+ }
2769
+ }), J = Je("identity"), an = vt(
2770
+ () => b.data?.find((p) => p.id === J)?.authorizationFields,
2771
+ [b.data, J]
2772
+ );
2773
+ z(() => {
2774
+ J && Ue.current(J);
2775
+ }, [Ue, J]);
2776
+ const B = is({
2777
+ gcTime: 0,
2778
+ mutationFn: async (p) => {
2779
+ const W = performance.now(), fn = Object.fromEntries([
2780
+ ...p.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value])
2781
+ ]), _ = new Request(
2782
+ ut(e ?? g, s, p),
2783
+ {
2784
+ method: a.toUpperCase(),
2785
+ headers: fn,
2786
+ body: p.body ? p.body : void 0
2787
+ }
2788
+ );
2789
+ p.identity !== te && await b.data?.find((T) => T.id === p.identity)?.authorizeRequest(_);
2790
+ const be = setTimeout(
2791
+ () => P(!0),
2792
+ 3210
2793
+ );
2794
+ Q.current = new AbortController(), Q.current.signal.addEventListener("abort", () => {
2795
+ clearTimeout(be);
2796
+ });
2797
+ try {
2798
+ const T = await fetch(_, {
2799
+ cache: "no-store",
2800
+ signal: Q.current.signal
2801
+ });
2802
+ clearTimeout(be), P(!1);
2803
+ const gn = performance.now() - W, xn = new URL(_.url), Ze = Array.from(T.headers.entries()), Ye = T.headers.get("content-type") || "", Ke = Pr(Ye);
2804
+ let ce = "", et, tt;
2805
+ Ke ? (et = await T.blob(), tt = Rr(Ze, _.url), ce = `Binary content (${Ye})`) : ce = await T.text();
2806
+ const nt = T.headers.get("content-length");
2807
+ return {
2808
+ status: T.status,
2809
+ headers: Ze,
2810
+ size: nt ? parseInt(nt) : ce.length,
2811
+ body: ce,
2812
+ time: gn,
2813
+ isBinary: Ke,
2814
+ fileName: tt,
2815
+ blob: et,
2816
+ request: {
2817
+ method: _.method.toUpperCase(),
2818
+ url: _.url,
2819
+ headers: [
2820
+ ["Host", xn.host],
2821
+ ["User-Agent", "Zudoku Playground"],
2822
+ ...Array.from(_.headers.entries())
2823
+ ],
2824
+ body: p.body ? p.body : void 0
2825
+ }
2826
+ };
2827
+ } catch (T) {
2828
+ throw clearTimeout(be), P(!1), T instanceof TypeError ? new Error(
2829
+ "The request failed, possibly due to network issues or CORS policy."
2830
+ ) : T;
2831
+ }
2832
+ }
2833
+ }), We = B.isPending, [on, cn] = k(!1);
2834
+ z(() => {
2835
+ const p = setTimeout(() => cn(We), 100);
2836
+ return () => clearTimeout(p);
2837
+ }, [We]);
2838
+ const { isFinished: ln, progress: dn } = ss({ isAnimating: on });
2839
+ z(() => () => {
2840
+ Q.current?.abort();
2841
+ }, []);
2842
+ const un = /* @__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(
2843
+ wt,
2844
+ {
2845
+ onValueChange: (p) => {
2846
+ j(() => m(p));
2847
+ },
2848
+ value: g,
2849
+ defaultValue: g,
2850
+ children: [
2851
+ /* @__PURE__ */ n.jsx(Nt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(St, {}) }),
2852
+ /* @__PURE__ */ n.jsx(Tt, { children: t.map((p) => /* @__PURE__ */ n.jsx(le, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2853
+ ]
2854
+ }
2855
+ ) }), mn = u && !$, pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2856
+ a.toUpperCase()
2857
+ ), [Xe, hn] = us();
2858
+ return /* @__PURE__ */ n.jsx(
2859
+ ls,
2860
+ {
2861
+ register: rn,
2862
+ control: ie,
2863
+ handleSubmit: Qe,
2864
+ watch: Je,
2865
+ setValue: ye,
2866
+ ...ve,
2867
+ children: /* @__PURE__ */ n.jsx(ds, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2868
+ "form",
2869
+ {
2870
+ ref: Me,
2871
+ onSubmit: Qe((p) => {
2872
+ b.data?.length === 0 || p.identity ? B.mutate(p) : v(!0);
2873
+ }),
2874
+ className: "relative",
2875
+ children: [
2876
+ /* @__PURE__ */ n.jsx(
2877
+ Dr,
2878
+ {
2879
+ identities: b.data ?? [],
2880
+ open: y,
2881
+ onOpenChange: v,
2882
+ onSubmit: ({ rememberedIdentity: p, identity: W }) => {
2883
+ p && ye("identity", W ?? te), v(!1), B.mutate({ ...ve.getValues(), identity: W });
2884
+ }
2885
+ }
2886
+ ),
2887
+ /* @__PURE__ */ n.jsx(
2888
+ Br,
2889
+ {
2890
+ open: mn,
2891
+ setOpen: (p) => S(!p),
2892
+ onSignUp: h,
2893
+ onLogin: d
2894
+ }
2895
+ ),
2896
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[1fr_1px_1fr] text-sm", children: [
2897
+ /* @__PURE__ */ n.jsxs("div", { className: "col-span-3 p-4 border-b flex gap-2 items-stretch", children: [
2898
+ /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
2899
+ /* @__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() }),
2900
+ /* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
2901
+ un,
2902
+ /* @__PURE__ */ n.jsx(Mr, { url: s }),
2903
+ /* @__PURE__ */ n.jsx(Gr, {})
2904
+ ] }) }),
2905
+ /* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
2906
+ E,
2907
+ {
2908
+ type: "button",
2909
+ onClick: () => {
2910
+ hn(
2911
+ ut(
2912
+ e ?? g,
2913
+ s,
2914
+ ve.getValues()
2915
+ ).toString()
2916
+ );
2917
+ },
2918
+ variant: "ghost",
2919
+ size: "icon-xs",
2920
+ className: C(
2921
+ "hover:opacity-100 transition",
2922
+ Xe ? "text-emerald-600 opacity-100" : "opacity-50"
2923
+ ),
2924
+ children: Xe ? /* @__PURE__ */ n.jsx(ft, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(En, { size: 14 })
2925
+ }
2926
+ ) })
2927
+ ] }),
2928
+ /* @__PURE__ */ n.jsx(
2929
+ E,
2930
+ {
2931
+ type: "submit",
2932
+ variant: B.isPending ? "destructive" : "default",
2933
+ onClick: (p) => {
2934
+ B.isPending && (Q.current?.abort(
2935
+ "Request cancelled by user"
2936
+ ), p.preventDefault());
2937
+ },
2938
+ className: "w-18",
2939
+ children: B.isPending ? "Cancel" : "Send"
2940
+ }
2941
+ )
2942
+ ] }),
2943
+ /* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
2944
+ b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2945
+ /* @__PURE__ */ n.jsxs(M, { children: [
2946
+ /* @__PURE__ */ n.jsx(In, { size: 16 }),
2947
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Authentication" })
2948
+ ] }),
2949
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
2950
+ Jt,
2951
+ {
2952
+ value: J,
2953
+ identities: b.data ?? [],
2954
+ setValue: (p) => ye("identity", p)
2955
+ }
2956
+ ) })
2957
+ ] }),
2958
+ He.length > 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2959
+ /* @__PURE__ */ n.jsxs(M, { children: [
2960
+ /* @__PURE__ */ n.jsx(kn, { size: 16 }),
2961
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Path Parameters" })
2962
+ ] }),
2963
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Fr, { url: s, control: ie }) })
2964
+ ] }),
2965
+ /* @__PURE__ */ n.jsx(Vr, { control: ie, schemaQueryParams: o }),
2966
+ /* @__PURE__ */ n.jsx(
2967
+ Ir,
2968
+ {
2969
+ control: ie,
2970
+ schemaHeaders: r,
2971
+ lockedHeaders: an?.headers
2972
+ }
2973
+ ),
2974
+ pn && /* @__PURE__ */ n.jsx(Or, { content: c })
2975
+ ] }),
2976
+ /* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
2977
+ /* @__PURE__ */ n.jsx(
2978
+ na,
2979
+ {
2980
+ queryMutation: B,
2981
+ showLongRunningWarning: D,
2982
+ isFinished: ln,
2983
+ progress: dn,
2984
+ tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
2985
+ "Press",
2986
+ " ",
2987
+ /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: sn.join(" + ") }),
2988
+ " ",
2989
+ "to send a request"
2990
+ ] }) }),
2991
+ onCancel: () => {
2992
+ Q.current?.abort(
2993
+ "Request cancelled by the user"
2994
+ ), P(!1);
2995
+ }
2996
+ }
2997
+ )
2998
+ ] })
2999
+ ]
3000
+ }
3001
+ ) })
3002
+ }
3003
+ );
3004
+ }, aa = ({
3005
+ className: e,
3006
+ size: t = 16
3007
+ }) => /* @__PURE__ */ n.jsx(
3008
+ "svg",
3009
+ {
3010
+ xmlns: "http://www.w3.org/2000/svg",
3011
+ viewBox: "0 0 24 24",
3012
+ fill: "currentColor",
3013
+ className: e,
3014
+ width: t,
3015
+ height: t,
3016
+ children: /* @__PURE__ */ n.jsx(
3017
+ "path",
3018
+ {
3019
+ fillRule: "evenodd",
3020
+ d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm14.024-.983a1.125 1.125 0 0 1 0 1.966l-5.603 3.113A1.125 1.125 0 0 1 9 15.113V8.887c0-.857.921-1.4 1.671-.983l5.603 3.113Z",
3021
+ clipRule: "evenodd"
3022
+ }
3023
+ )
3024
+ }
3025
+ ), oa = (e) => {
3026
+ const [t, s] = k(!1);
3027
+ return /* @__PURE__ */ n.jsxs(Ee, { onOpenChange: (a) => s(a), children: [
3028
+ /* @__PURE__ */ n.jsx(ts, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3029
+ "button",
3030
+ {
3031
+ type: "button",
3032
+ className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
3033
+ children: [
3034
+ "Test",
3035
+ /* @__PURE__ */ n.jsx(aa, { size: 14 })
3036
+ ]
3037
+ }
3038
+ ) }),
3039
+ /* @__PURE__ */ n.jsxs(
3040
+ Ie,
3041
+ {
3042
+ className: "max-w-screen-xl w-full overflow-hidden p-0",
3043
+ "aria-describedby": void 0,
3044
+ showCloseButton: !0,
3045
+ children: [
3046
+ /* @__PURE__ */ n.jsx(es, { children: /* @__PURE__ */ n.jsx(ke, { children: "Playground" }) }),
3047
+ t && /* @__PURE__ */ n.jsx(ra, { ...e })
3048
+ ]
3049
+ }
3050
+ )
3051
+ ] });
3052
+ }, ia = {
3053
+ get: "green",
3054
+ post: "blue",
3055
+ put: "yellow",
3056
+ delete: "red",
3057
+ patch: "purple",
3058
+ options: "gray",
3059
+ head: "gray"
3060
+ }, pt = ({
3061
+ label: e,
3062
+ path: t,
3063
+ operations: s,
3064
+ collapsible: a,
3065
+ collapsed: r
3066
+ }) => ({
3067
+ type: "category",
3068
+ label: e,
3069
+ link: {
3070
+ type: "doc",
3071
+ path: t,
3072
+ file: t,
3073
+ label: e
3074
+ },
3075
+ collapsible: a,
3076
+ collapsed: r,
3077
+ items: s.map((o) => ({
3078
+ type: "link",
3079
+ label: o.summary ?? o.path,
3080
+ to: `${t}#${o.slug}`,
3081
+ badge: {
3082
+ label: o.method,
3083
+ // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
3084
+ color: ia[o.method.toLowerCase()],
3085
+ invert: !0
3086
+ }
3087
+ }))
3088
+ }), Yt = yt(
3089
+ void 0
3090
+ ), Ua = Yt.Provider, ca = () => {
3091
+ const e = Kn(Yt);
3092
+ if (!e)
3093
+ throw new Error("useOasConfig must be used within a OasConfigProvider");
3094
+ return e.config;
3095
+ }, ht = (e) => ({
3096
+ path: e.routePath,
3097
+ async lazy() {
3098
+ const { OasProvider: t } = await import("./OasProvider-BzRWdNM5.js");
3099
+ return {
3100
+ element: /* @__PURE__ */ n.jsx(
3101
+ t,
3102
+ {
3103
+ basePath: e.basePath,
3104
+ version: e.version,
3105
+ client: e.client,
3106
+ config: e.config
3107
+ }
3108
+ )
3109
+ };
3110
+ },
3111
+ children: e.routes
3112
+ }), Kt = ({
3113
+ path: e,
3114
+ tag: t,
3115
+ untagged: s
3116
+ }) => ({
3117
+ path: e,
3118
+ async lazy() {
3119
+ const { OperationList: a } = await import("./OperationList-D8ln4zHk.js");
3120
+ return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3121
+ }
3122
+ }), la = ({
3123
+ render: e,
3124
+ path: t
3125
+ }) => {
3126
+ const { type: s, input: a } = ca(), { tag: r } = qn(), o = Vn(), i = rr(nn, { type: s, input: a }), {
3127
+ data: { schema: l }
3128
+ } = Qn(i), c = l.tags.at(0);
3129
+ return !r && c?.slug ? /* @__PURE__ */ n.jsx(
3130
+ Bn,
3131
+ {
3132
+ to: {
3133
+ pathname: _n(t, { tag: c.slug }),
3134
+ search: o.search
3135
+ }
3136
+ }
3137
+ ) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
3138
+ }, da = ({ path: e }) => ({
3139
+ path: e,
3140
+ async lazy() {
3141
+ const { OperationList: t } = await import("./OperationList-D8ln4zHk.js");
3142
+ return {
3143
+ element: /* @__PURE__ */ n.jsx(
3144
+ la,
3145
+ {
3146
+ path: e,
3147
+ render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
3148
+ }
3149
+ )
3150
+ };
3151
+ }
3152
+ }), en = (e) => [
3153
+ // Category without tagged operations
3154
+ Kt({
3155
+ path: I(e, _e),
3156
+ untagged: !0
3157
+ }),
3158
+ // Schema list route
3159
+ {
3160
+ path: I(e, "~schemas"),
3161
+ lazy: async () => {
3162
+ const { SchemaList: t } = await import("./SchemaList-DtQZ98Lm.js");
3163
+ return { element: /* @__PURE__ */ n.jsx(t, {}) };
3164
+ }
3165
+ }
3166
+ ], ua = (e, t) => {
3167
+ const s = I(e, t.at(0) ?? _e);
3168
+ return [
3169
+ // Redirect to first tag on the index route
3170
+ { index: !0, loader: () => Fn(s) },
3171
+ // Create routes for each tag
3172
+ ...t.map(
3173
+ (a) => Kt({
3174
+ path: I(e, a),
3175
+ tag: a
3176
+ })
3177
+ ),
3178
+ ...en(e)
3179
+ ];
3180
+ }, tn = (e) => e.type === "file" ? Object.keys(e.input) : [], ma = ({
3181
+ basePath: e,
3182
+ config: t,
3183
+ client: s
3184
+ }) => {
3185
+ const a = t.tagPages;
3186
+ if (!a)
3187
+ return [
3188
+ ht({
3189
+ basePath: e,
3190
+ routePath: e,
3191
+ routes: [
3192
+ da({ path: `${e}/:tag?` }),
3193
+ ...en(e)
3194
+ ],
3195
+ client: s,
3196
+ config: t
3197
+ })
3198
+ ];
3199
+ const r = tn(t);
3200
+ return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3201
+ const l = I(e, i);
3202
+ return ht({
3203
+ basePath: e,
3204
+ version: i,
3205
+ routePath: l,
3206
+ routes: ua(l, a),
3207
+ client: s,
3208
+ config: t
3209
+ });
3210
+ });
3211
+ }, nn = pr(`
3212
+ query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3213
+ schema(input: $input, type: $type) {
3214
+ extensions
3215
+ tags {
3216
+ slug
3217
+ name
3218
+ extensions
3219
+ operations {
3220
+ summary
3221
+ slug
3222
+ method
3223
+ operationId
3224
+ path
3225
+ }
3226
+ }
3227
+ components {
3228
+ schemas {
3229
+ __typename
3230
+ }
3231
+ }
3232
+ }
3233
+ }
3234
+ `), _e = "~endpoints", Ma = (e) => {
3235
+ const t = I(e.path), s = new Ss(e);
3236
+ return {
3237
+ getHead: () => {
3238
+ if (e.type === "url" && !e.skipPreload)
3239
+ return /* @__PURE__ */ n.jsx(
3240
+ "link",
3241
+ {
3242
+ rel: "preload",
3243
+ href: e.input,
3244
+ as: "fetch",
3245
+ crossOrigin: "anonymous"
3246
+ }
3247
+ );
3248
+ if (e.server)
3249
+ return /* @__PURE__ */ n.jsx("link", { rel: "preconnect", href: e.server });
3250
+ },
3251
+ getMdxComponents: () => ({
3252
+ OpenPlaygroundButton: ({
3253
+ requireAuth: a,
3254
+ server: r,
3255
+ method: o,
3256
+ url: i,
3257
+ children: l,
3258
+ ...c
3259
+ }) => {
3260
+ const u = Un();
3261
+ if (!r)
3262
+ throw new Error("Server is required");
3263
+ return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3264
+ ne,
3265
+ {
3266
+ className: "gap-2 items-center",
3267
+ variant: "outline",
3268
+ onClick: u.login,
3269
+ children: [
3270
+ "Login to open in Playground ",
3271
+ /* @__PURE__ */ n.jsx(Dn, { size: 16 })
3272
+ ]
3273
+ }
3274
+ ) : /* @__PURE__ */ n.jsx(
3275
+ oa,
3276
+ {
3277
+ url: i ?? "/",
3278
+ method: o ?? "get",
3279
+ server: r,
3280
+ ...c,
3281
+ children: /* @__PURE__ */ n.jsx(ne, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3282
+ "Open in Playground ",
3283
+ /* @__PURE__ */ n.jsx(zn, { size: 16 })
3284
+ ] }) })
3285
+ }
3286
+ );
3287
+ }
3288
+ }),
3289
+ getNavigation: async (a, r) => {
3290
+ if (!st({ path: t, end: !1 }, a))
3291
+ return [];
3292
+ const o = st(
3293
+ { path: `${t}/:version?/:tag`, end: !0 },
3294
+ a
3295
+ );
3296
+ try {
3297
+ const i = o?.params.version, l = i ?? tn(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Ft(s, nn, {
3298
+ type: c,
3299
+ input: u
3300
+ }), h = await r.queryClient.ensureQueryData(d), g = new Map(
3301
+ h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
3302
+ if (!f.name)
3303
+ throw new Error(`Tag ${f.slug} has no name`);
3304
+ const j = I(t, i, f.slug), $ = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, S = f.extensions?.["x-zudoku-collapsible"] ?? !0;
3305
+ return [
3306
+ f.name,
3307
+ pt({
3308
+ label: f.extensions?.["x-displayName"] ?? f.name,
3309
+ path: j,
3310
+ operations: f.operations,
3311
+ collapsed: $,
3312
+ collapsible: S
3313
+ })
3314
+ ];
3315
+ })
3316
+ ), m = h.schema.extensions?.["x-tagGroups"] ?? [], y = new Set(
3317
+ m.flatMap(
3318
+ (f) => f.tags.filter((j) => g.has(j))
3319
+ )
3320
+ ), b = [
3321
+ ...m.flatMap(
3322
+ (f) => {
3323
+ const j = f.tags.map(($) => g.get($)).filter(Boolean);
3324
+ return j.length === 0 ? [] : [
3325
+ {
3326
+ type: "category",
3327
+ label: f.name,
3328
+ items: j,
3329
+ collapsible: !0,
3330
+ collapsed: !e.options?.expandAllTags
3331
+ }
3332
+ ];
3333
+ }
3334
+ ),
3335
+ ...Array.from(g.entries()).filter(([f]) => !y.has(f)).map(([, f]) => f)
3336
+ ], O = h.schema.tags.find(
3337
+ (f) => !f.name
3338
+ )?.operations;
3339
+ return O && b.push(
3340
+ pt({
3341
+ label: b.length === 0 ? "Endpoints" : "Other endpoints",
3342
+ path: I(t, i, _e),
3343
+ operations: O,
3344
+ collapsed: !e.options?.expandAllTags
3345
+ })
3346
+ ), h.schema.components?.schemas?.length && b.push({
3347
+ type: "link",
3348
+ label: "Schemas",
3349
+ to: I(t, i, "~schemas")
3350
+ }), b;
3351
+ } catch {
3352
+ return [];
3353
+ }
3354
+ },
3355
+ getRoutes: () => ma({ basePath: t, config: e, client: s })
3356
+ };
3357
+ };
3358
+ export {
3359
+ q as C,
3360
+ _a as G,
3361
+ zs as L,
3362
+ Ua as O,
3363
+ oa as P,
3364
+ Ls as Q,
3365
+ Dt as S,
3366
+ x as T,
3367
+ _e as U,
3368
+ rr as a,
3369
+ qt as b,
3370
+ V as c,
3371
+ tn as d,
3372
+ vr as e,
3373
+ Wt as f,
3374
+ pr as g,
3375
+ Ur as h,
3376
+ nr as i,
3377
+ lt as j,
3378
+ Va as k,
3379
+ Fs as l,
3380
+ Fe as m,
3381
+ kt as n,
3382
+ Ts as o,
3383
+ tr as p,
3384
+ Ce as q,
3385
+ As as r,
3386
+ L as s,
3387
+ Ba as t,
3388
+ ca as u,
3389
+ Ds as v,
3390
+ Es as w,
3391
+ Lt as x,
3392
+ nn as y,
3393
+ Ma as z
3394
+ };
3395
+ //# sourceMappingURL=index-CmREBlkc.js.map