zudoku 0.0.0-fix-image-base-path.c9e0e61c → 0.0.0-fix-create-zudoku-copy-templates.1ca222e6

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 (682) hide show
  1. package/cli.js +1 -0
  2. package/dist/app/ZuploBuildConfig.d.ts +1 -1
  3. package/dist/app/ZuploBuildConfig.js +1 -1
  4. package/dist/app/ZuploBuildConfig.js.map +1 -1
  5. package/dist/app/demo.js +1 -1
  6. package/dist/app/entry.client.js +6 -5
  7. package/dist/app/entry.client.js.map +1 -1
  8. package/dist/app/entry.server.js +3 -3
  9. package/dist/app/entry.server.js.map +1 -1
  10. package/dist/app/env.js +6 -6
  11. package/dist/app/env.js.map +1 -1
  12. package/dist/app/main.js +12 -4
  13. package/dist/app/main.js.map +1 -1
  14. package/dist/app/standalone.js +5 -2
  15. package/dist/app/standalone.js.map +1 -1
  16. package/dist/cli/cli.js +2 -1
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/cmds/build.d.ts +1 -1
  19. package/dist/cli/cmds/dev.d.ts +1 -1
  20. package/dist/cli/cmds/preview.d.ts +1 -1
  21. package/dist/cli/common/analytics/lib.js +1 -1
  22. package/dist/cli/common/analytics/lib.js.map +1 -1
  23. package/dist/cli/common/logger.js +0 -1
  24. package/dist/cli/common/logger.js.map +1 -1
  25. package/dist/cli/common/machine-id/lib.js +3 -2
  26. package/dist/cli/common/machine-id/lib.js.map +1 -1
  27. package/dist/cli/common/outdated.js +2 -1
  28. package/dist/cli/common/outdated.js.map +1 -1
  29. package/dist/cli/common/output.js +2 -3
  30. package/dist/cli/common/output.js.map +1 -1
  31. package/dist/cli/common/utils/box.js +2 -2
  32. package/dist/cli/common/utils/box.js.map +1 -1
  33. package/dist/cli/common/validators/lib.js +1 -1
  34. package/dist/cli/common/validators/lib.js.map +1 -1
  35. package/dist/cli/dev/handler.js +0 -4
  36. package/dist/cli/dev/handler.js.map +1 -1
  37. package/dist/codegen.js +2 -2
  38. package/dist/codegen.js.map +1 -1
  39. package/dist/config/loader.js.map +1 -1
  40. package/dist/config/validators/BuildSchema.d.ts +1 -1
  41. package/dist/config/validators/BuildSchema.js +3 -3
  42. package/dist/config/validators/BuildSchema.js.map +1 -1
  43. package/dist/config/validators/InputNavigationSchema.d.ts +27 -1
  44. package/dist/config/validators/InputNavigationSchema.js +5 -2
  45. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  46. package/dist/config/validators/InputNavigationSchema.test-d.js +2 -1
  47. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
  48. package/dist/config/validators/NavigationSchema.d.ts +1 -1
  49. package/dist/config/validators/NavigationSchema.js +2 -2
  50. package/dist/config/validators/NavigationSchema.js.map +1 -1
  51. package/dist/config/validators/ProtectedRoutesSchema.d.ts +6 -5
  52. package/dist/config/validators/ProtectedRoutesSchema.js +5 -14
  53. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -1
  54. package/dist/config/validators/auth.d.ts +2 -2
  55. package/dist/config/validators/auth.js +1 -1
  56. package/dist/config/validators/auth.js.map +1 -1
  57. package/dist/config/validators/icon-types.d.ts +1 -1
  58. package/dist/config/validators/icon-types.js +4 -0
  59. package/dist/config/validators/icon-types.js.map +1 -1
  60. package/dist/config/validators/validate.d.ts +3 -14
  61. package/dist/config/validators/validate.js +4 -3
  62. package/dist/config/validators/validate.js.map +1 -1
  63. package/dist/config/validators/validate.test.js +1 -2
  64. package/dist/config/validators/validate.test.js.map +1 -1
  65. package/dist/flat-config.d.ts +331 -0
  66. package/dist/index.d.ts +6 -5
  67. package/dist/index.js +2 -1
  68. package/dist/index.js.map +1 -1
  69. package/dist/lib/MissingIcon.d.ts +1 -1
  70. package/dist/lib/MissingIcon.js.map +1 -1
  71. package/dist/lib/auth/issuer.test.js +1 -0
  72. package/dist/lib/auth/issuer.test.js.map +1 -1
  73. package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
  74. package/dist/lib/authentication/authentication.d.ts +1 -3
  75. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +1 -1
  76. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
  77. package/dist/lib/authentication/components/SignOut.js +1 -1
  78. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  79. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  80. package/dist/lib/authentication/providers/auth0.js +1 -1
  81. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  82. package/dist/lib/authentication/providers/azureb2c.d.ts +2 -2
  83. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  84. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  85. package/dist/lib/authentication/providers/openid.d.ts +2 -2
  86. package/dist/lib/authentication/providers/openid.js.map +1 -1
  87. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  88. package/dist/lib/authentication/providers/supabase.js +1 -0
  89. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  90. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  91. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  92. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  93. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  94. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  95. package/dist/lib/components/Autocomplete.js.map +1 -1
  96. package/dist/lib/components/Bootstrap.js.map +1 -1
  97. package/dist/lib/components/BuildCheck.js +9 -1
  98. package/dist/lib/components/BuildCheck.js.map +1 -1
  99. package/dist/lib/components/Header.js +2 -4
  100. package/dist/lib/components/Header.js.map +1 -1
  101. package/dist/lib/components/Heading.d.ts +1 -1
  102. package/dist/lib/components/Heading.js +1 -1
  103. package/dist/lib/components/Heading.js.map +1 -1
  104. package/dist/lib/components/Layout.js +4 -7
  105. package/dist/lib/components/Layout.js.map +1 -1
  106. package/dist/lib/components/Markdown.js +2 -2
  107. package/dist/lib/components/Markdown.js.map +1 -1
  108. package/dist/lib/components/Meta.d.ts +2 -0
  109. package/dist/lib/components/Meta.js +11 -0
  110. package/dist/lib/components/Meta.js.map +1 -0
  111. package/dist/lib/components/MobileTopNavigation.js +4 -4
  112. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  113. package/dist/lib/components/PathRenderer.js +1 -1
  114. package/dist/lib/components/PathRenderer.js.map +1 -1
  115. package/dist/lib/components/Search.js +1 -1
  116. package/dist/lib/components/Search.js.map +1 -1
  117. package/dist/lib/components/Slot.js.map +1 -1
  118. package/dist/lib/components/Slot.test.js +7 -3
  119. package/dist/lib/components/Slot.test.js.map +1 -1
  120. package/dist/lib/components/TopNavigation.d.ts +1 -1
  121. package/dist/lib/components/TopNavigation.js +2 -2
  122. package/dist/lib/components/TopNavigation.js.map +1 -1
  123. package/dist/lib/components/Zudoku.js +2 -2
  124. package/dist/lib/components/Zudoku.js.map +1 -1
  125. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  126. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  127. package/dist/lib/components/context/SlotProvider.js.map +1 -1
  128. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  129. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  130. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  131. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  132. package/dist/lib/components/index.d.ts +0 -28
  133. package/dist/lib/components/index.js +1 -16
  134. package/dist/lib/components/index.js.map +1 -1
  135. package/dist/lib/components/navigation/NavigationCategory.js +6 -1
  136. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  137. package/dist/lib/components/navigation/NavigationItem.js +2 -2
  138. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  139. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
  140. package/dist/lib/components/navigation/Toc.js.map +1 -1
  141. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  142. package/dist/lib/components/navigation/utils.d.ts +3 -3
  143. package/dist/lib/components/navigation/utils.js +1 -2
  144. package/dist/lib/components/navigation/utils.js.map +1 -1
  145. package/dist/lib/core/ZudokuContext.d.ts +4 -2
  146. package/dist/lib/core/ZudokuContext.js +14 -3
  147. package/dist/lib/core/ZudokuContext.js.map +1 -1
  148. package/dist/lib/core/__internal.d.ts +37 -0
  149. package/dist/lib/core/__internal.js +26 -0
  150. package/dist/lib/core/__internal.js.map +1 -0
  151. package/dist/lib/core/router.d.ts +1 -0
  152. package/dist/lib/core/router.js +2 -0
  153. package/dist/lib/core/router.js.map +1 -0
  154. package/dist/lib/errors/ErrorAlert.js +0 -1
  155. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  156. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  157. package/dist/lib/errors/TopLevelError.js +1 -2
  158. package/dist/lib/errors/TopLevelError.js.map +1 -1
  159. package/dist/lib/oas/graphql/circular.js +2 -2
  160. package/dist/lib/oas/graphql/circular.js.map +1 -1
  161. package/dist/lib/oas/graphql/index.js +2 -1
  162. package/dist/lib/oas/graphql/index.js.map +1 -1
  163. package/dist/lib/oas/parser/dereference/index.js +2 -1
  164. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  165. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  166. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  167. package/dist/lib/oas/parser/index.js +1 -1
  168. package/dist/lib/oas/parser/index.js.map +1 -1
  169. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  170. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  171. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
  172. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  173. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +5 -6
  174. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  175. package/dist/lib/plugins/api-keys/index.d.ts +3 -3
  176. package/dist/lib/plugins/api-keys/index.js +1 -1
  177. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  178. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  179. package/dist/lib/plugins/custom-pages/index.js +3 -0
  180. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  181. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  182. package/dist/lib/plugins/markdown/MdxPage.js +3 -3
  183. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  184. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  185. package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
  186. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  187. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  188. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  189. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  190. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  191. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  192. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  193. package/dist/lib/plugins/openapi/OperationList.js +8 -4
  194. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  195. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  196. package/dist/lib/plugins/openapi/OperationListItem.js +6 -4
  197. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  198. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  199. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  200. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  201. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  202. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  203. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  204. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
  205. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  206. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  207. package/dist/lib/plugins/openapi/Sidecar.js +4 -2
  208. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  209. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  210. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  211. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  212. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  213. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  214. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  215. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  216. package/dist/lib/plugins/openapi/graphql/gql.js +0 -1
  217. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  218. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  219. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  220. package/dist/lib/plugins/openapi/index.js +2 -1
  221. package/dist/lib/plugins/openapi/index.js.map +1 -1
  222. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
  223. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +1 -1
  224. package/dist/lib/plugins/openapi/playground/Headers.d.ts +1 -1
  225. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  226. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  227. package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -1
  228. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  229. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  230. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  231. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +3 -1
  232. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
  233. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +2 -2
  234. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  235. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  236. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  237. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  238. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  239. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  240. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  241. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  242. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  243. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  244. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  245. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  246. package/dist/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.d.ts → AllOfGroup/AllOfGroupItem.d.ts} +1 -3
  247. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  248. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  249. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +4 -0
  250. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  251. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  252. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  253. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +7 -15
  254. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  255. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
  256. package/dist/lib/plugins/openapi/schema/SchemaView.js +13 -8
  257. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  258. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +4 -0
  259. package/dist/lib/plugins/openapi/schema/UnionView.js +30 -0
  260. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  261. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  262. package/dist/lib/plugins/openapi/schema/union-helpers.js +48 -0
  263. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  264. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  265. package/dist/lib/plugins/openapi/schema/utils.js +0 -6
  266. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  267. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
  268. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
  269. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  270. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +1 -0
  271. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -1
  272. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  273. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +1 -2
  274. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  275. package/dist/lib/plugins/openapi/util/getRoutes.js +1 -1
  276. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  277. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  278. package/dist/lib/plugins/search-inkeep/index.js +1 -1
  279. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  280. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
  281. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  282. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
  283. package/dist/lib/plugins/search-pagefind/ResultList.js +4 -1
  284. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  285. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  286. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  287. package/dist/lib/shiki.d.ts +2 -5
  288. package/dist/lib/shiki.js +3 -6
  289. package/dist/lib/shiki.js.map +1 -1
  290. package/dist/lib/ui/Breadcrumb.js +1 -1
  291. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  292. package/dist/lib/ui/Carousel.js.map +1 -1
  293. package/dist/lib/ui/CodeBlock.js +3 -3
  294. package/dist/lib/ui/CodeBlock.js.map +1 -1
  295. package/dist/lib/ui/Command.d.ts +2 -2
  296. package/dist/lib/ui/Command.js +2 -6
  297. package/dist/lib/ui/Command.js.map +1 -1
  298. package/dist/lib/ui/Dialog.js +2 -2
  299. package/dist/lib/ui/Dialog.js.map +1 -1
  300. package/dist/lib/ui/Form.d.ts +2 -2
  301. package/dist/lib/ui/Pagination.d.ts +1 -1
  302. package/dist/lib/ui/Pagination.js +1 -1
  303. package/dist/lib/ui/Pagination.js.map +1 -1
  304. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  305. package/dist/lib/util/MdxComponents.d.ts +1 -1
  306. package/dist/lib/util/MdxComponents.js +4 -2
  307. package/dist/lib/util/MdxComponents.js.map +1 -1
  308. package/dist/lib/util/cn.js.map +1 -1
  309. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  310. package/dist/lib/util/createVariantComponent.js.map +1 -1
  311. package/dist/lib/util/groupBy.js +1 -0
  312. package/dist/lib/util/groupBy.js.map +1 -1
  313. package/dist/lib/util/humanFileSize.js +1 -1
  314. package/dist/lib/util/humanFileSize.js.map +1 -1
  315. package/dist/lib/util/invariant.js +3 -1
  316. package/dist/lib/util/invariant.js.map +1 -1
  317. package/dist/lib/util/pastellize.js +2 -2
  318. package/dist/lib/util/pastellize.js.map +1 -1
  319. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  320. package/dist/lib/util/useScrollToAnchor.js +2 -0
  321. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  322. package/dist/ts.js +3 -3
  323. package/dist/ts.js.map +1 -1
  324. package/dist/vite/api/SchemaManager.js +6 -6
  325. package/dist/vite/api/SchemaManager.js.map +1 -1
  326. package/dist/vite/api/schema-codegen.js +1 -2
  327. package/dist/vite/api/schema-codegen.js.map +1 -1
  328. package/dist/vite/api/schema-codegen.test.js +1 -1
  329. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  330. package/dist/vite/build.js +1 -1
  331. package/dist/vite/build.js.map +1 -1
  332. package/dist/vite/dev-server.js +2 -2
  333. package/dist/vite/dev-server.js.map +1 -1
  334. package/dist/vite/error-handler.d.ts +2 -2
  335. package/dist/vite/error-handler.js.map +1 -1
  336. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  337. package/dist/vite/mdx/remark-last-modified.js +0 -1
  338. package/dist/vite/mdx/remark-last-modified.js.map +1 -1
  339. package/dist/vite/mdx/remark-link-rewrite.js +1 -1
  340. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  341. package/dist/vite/mdx/remark-static-generation.js +1 -1
  342. package/dist/vite/mdx/remark-static-generation.js.map +1 -1
  343. package/dist/vite/output.d.ts +1 -1
  344. package/dist/vite/output.js +1 -1
  345. package/dist/vite/output.js.map +1 -1
  346. package/dist/vite/plugin-api-keys.d.ts +1 -1
  347. package/dist/vite/plugin-api-keys.js +1 -1
  348. package/dist/vite/plugin-api-keys.js.map +1 -1
  349. package/dist/vite/plugin-api.js +4 -4
  350. package/dist/vite/plugin-api.js.map +1 -1
  351. package/dist/vite/plugin-auth.d.ts +1 -1
  352. package/dist/vite/plugin-auth.js +1 -1
  353. package/dist/vite/plugin-auth.js.map +1 -1
  354. package/dist/vite/plugin-component.d.ts +1 -1
  355. package/dist/vite/plugin-config-reload.d.ts +1 -1
  356. package/dist/vite/plugin-custom-pages.d.ts +1 -1
  357. package/dist/vite/plugin-custom-pages.js +1 -1
  358. package/dist/vite/plugin-custom-pages.js.map +1 -1
  359. package/dist/vite/plugin-docs.js +2 -2
  360. package/dist/vite/plugin-docs.js.map +1 -1
  361. package/dist/vite/plugin-frontmatter.js +1 -1
  362. package/dist/vite/plugin-frontmatter.js.map +1 -1
  363. package/dist/vite/plugin-mdx.d.ts +1 -1
  364. package/dist/vite/plugin-mdx.js +3 -2
  365. package/dist/vite/plugin-mdx.js.map +1 -1
  366. package/dist/vite/plugin-metadata.d.ts +1 -1
  367. package/dist/vite/plugin-navigation.d.ts +2 -2
  368. package/dist/vite/plugin-navigation.js +34 -35
  369. package/dist/vite/plugin-navigation.js.map +1 -1
  370. package/dist/vite/plugin-redirect.d.ts +1 -1
  371. package/dist/vite/plugin-redirect.js +1 -1
  372. package/dist/vite/plugin-redirect.js.map +1 -1
  373. package/dist/vite/plugin-search.d.ts +1 -1
  374. package/dist/vite/plugin-search.js +1 -1
  375. package/dist/vite/plugin-search.js.map +1 -1
  376. package/dist/vite/plugin-shiki-register.js +1 -1
  377. package/dist/vite/plugin-shiki-register.js.map +1 -1
  378. package/dist/vite/plugin-theme.js +6 -6
  379. package/dist/vite/plugin-theme.js.map +1 -1
  380. package/dist/vite/plugin-theme.test.js +2 -0
  381. package/dist/vite/plugin-theme.test.js.map +1 -1
  382. package/dist/vite/plugin.d.ts +1 -1
  383. package/dist/vite/plugin.js +2 -2
  384. package/dist/vite/plugin.js.map +1 -1
  385. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  386. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  387. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  388. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  389. package/dist/vite/prerender/prerender.js +1 -1
  390. package/dist/vite/prerender/prerender.js.map +1 -1
  391. package/dist/vite/prerender/worker.d.ts +1 -1
  392. package/dist/vite/prerender/worker.js.map +1 -1
  393. package/dist/vite/reporter.js +2 -2
  394. package/dist/vite/reporter.js.map +1 -1
  395. package/dist/vite/shadcn-registry.d.ts +8 -33
  396. package/dist/vite/sitemap.js +14 -13
  397. package/dist/vite/sitemap.js.map +1 -1
  398. package/dist/zuplo/enrich-with-zuplo.js +3 -3
  399. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  400. package/dist/zuplo/policy-types.js +0 -1
  401. package/dist/zuplo/policy-types.js.map +1 -1
  402. package/dist/zuplo/with-zuplo.js +1 -1
  403. package/dist/zuplo/with-zuplo.js.map +1 -1
  404. package/lib/CategoryHeading-DCpZu3yG.js +17 -0
  405. package/lib/CategoryHeading-DCpZu3yG.js.map +1 -0
  406. package/lib/{CodeBlock-CVT6z0PP.js → CodeBlock-CX_J17Hf.js} +12 -12
  407. package/lib/CodeBlock-CX_J17Hf.js.map +1 -0
  408. package/lib/{Command-BYukybsa.js → Command-CUSlH0gJ.js} +21 -27
  409. package/lib/Command-CUSlH0gJ.js.map +1 -0
  410. package/lib/Dialog-BmgXWOaz.js +114 -0
  411. package/lib/Dialog-BmgXWOaz.js.map +1 -0
  412. package/lib/{MdxPage-plD-n8fm.js → MdxPage-yXbTtcWf.js} +19 -18
  413. package/lib/MdxPage-yXbTtcWf.js.map +1 -0
  414. package/lib/{OAuthErrorPage-BTP-t8Fq.js → OAuthErrorPage-rAKHHveX.js} +7 -7
  415. package/lib/OAuthErrorPage-rAKHHveX.js.map +1 -0
  416. package/lib/{OasProvider-CYf5xe1a.js → OasProvider-BW4OzAuR.js} +4 -3
  417. package/lib/OasProvider-BW4OzAuR.js.map +1 -0
  418. package/lib/{OperationList-C_-vAmhs.js → OperationList-CWxpdIbO.js} +309 -312
  419. package/lib/OperationList-CWxpdIbO.js.map +1 -0
  420. package/lib/{Pagination-BAO0V4os.js → Pagination-ZI2yyuxj.js} +3 -3
  421. package/lib/{Pagination-BAO0V4os.js.map → Pagination-ZI2yyuxj.js.map} +1 -1
  422. package/lib/RouteGuard-BIksrt_C.js +56 -0
  423. package/lib/RouteGuard-BIksrt_C.js.map +1 -0
  424. package/lib/RouterError-BYHrbLtD.js +41 -0
  425. package/lib/RouterError-BYHrbLtD.js.map +1 -0
  426. package/lib/{SchemaList-B8Ws7y1f.js → SchemaList-C4Sk-tLI.js} +15 -14
  427. package/lib/{SchemaList-B8Ws7y1f.js.map → SchemaList-C4Sk-tLI.js.map} +1 -1
  428. package/lib/SchemaView-B2BeAuci.js +429 -0
  429. package/lib/SchemaView-B2BeAuci.js.map +1 -0
  430. package/lib/{Select-ByPbK6BU.js → Select-DWh0wSay.js} +8 -8
  431. package/lib/{Select-ByPbK6BU.js.map → Select-DWh0wSay.js.map} +1 -1
  432. package/lib/{SignUp-BXxkBCGy.js → SignUp-CznaQsRx.js} +12 -12
  433. package/lib/SignUp-CznaQsRx.js.map +1 -0
  434. package/lib/{Slot-DDNiyFIv.js → Slot-BbdqiRXo.js} +1923 -2129
  435. package/lib/{Slot-DDNiyFIv.js.map → Slot-BbdqiRXo.js.map} +1 -1
  436. package/lib/{SyntaxHighlight-jSFm3PeK.js → SyntaxHighlight-CvzJ7DNa.js} +6 -9
  437. package/lib/{SyntaxHighlight-jSFm3PeK.js.map → SyntaxHighlight-CvzJ7DNa.js.map} +1 -1
  438. package/lib/{Toc-CKEI04R5.js → Toc-BAa-kpqN.js} +2 -2
  439. package/lib/{Toc-CKEI04R5.js.map → Toc-BAa-kpqN.js.map} +1 -1
  440. package/lib/{ZudokuContext-mDDq1hft.js → ZudokuContext-BR-lnR7O.js} +42 -43
  441. package/lib/{ZudokuContext-mDDq1hft.js.map → ZudokuContext-BR-lnR7O.js.map} +1 -1
  442. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  443. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  444. package/lib/{circular-CyP38iiX.js → circular-BFte5TUt.js} +2 -2
  445. package/lib/{circular-CyP38iiX.js.map → circular-BFte5TUt.js.map} +1 -1
  446. package/lib/cn-dYga0KKN.js.map +1 -1
  447. package/lib/{createServer-B4w9HCV7.js → createServer-B4giw6jv.js} +12 -27
  448. package/lib/createServer-B4giw6jv.js.map +1 -0
  449. package/lib/{errors-v4zc7txj.js → errors-CjmCml50.js} +2 -2
  450. package/lib/errors-CjmCml50.js.map +1 -0
  451. package/lib/{hook-CGx8MPrU.js → hook-B4Q30zMI.js} +2 -2
  452. package/lib/{hook-CGx8MPrU.js.map → hook-B4Q30zMI.js.map} +1 -1
  453. package/lib/index-BuKx9nrj.js +1057 -0
  454. package/lib/index-BuKx9nrj.js.map +1 -0
  455. package/lib/{index-C5fXNRSh.js → index-CQGi1b3U.js} +2 -2
  456. package/lib/{index-C5fXNRSh.js.map → index-CQGi1b3U.js.map} +1 -1
  457. package/lib/{index-DnkZAg98.js → index-Dp3Fmnfq.js} +58 -55
  458. package/lib/index-Dp3Fmnfq.js.map +1 -0
  459. package/lib/{RouteGuard-gznKADdm.js → index.esm-BnYHxCYC.js} +226 -281
  460. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  461. package/lib/invariant-Bm-FVUQE.js.map +1 -1
  462. package/lib/mutation-CiMUdKRU.js +196 -0
  463. package/lib/mutation-CiMUdKRU.js.map +1 -0
  464. package/lib/ui/Breadcrumb.js +22 -21
  465. package/lib/ui/Breadcrumb.js.map +1 -1
  466. package/lib/ui/Carousel.js.map +1 -1
  467. package/lib/ui/CodeBlock.js +1 -1
  468. package/lib/ui/Command.js +20 -26
  469. package/lib/ui/Command.js.map +1 -1
  470. package/lib/ui/Dialog.js +56 -41
  471. package/lib/ui/Dialog.js.map +1 -1
  472. package/lib/ui/Form.js.map +1 -1
  473. package/lib/ui/Pagination.js +28 -29
  474. package/lib/ui/Pagination.js.map +1 -1
  475. package/lib/ui/SyntaxHighlight.js +3 -3
  476. package/lib/ui/ToggleGroup.js.map +1 -1
  477. package/lib/{useExposedProps-DUoV7MCU.js → useExposedProps-BH9aq4MD.js} +32 -32
  478. package/lib/{useExposedProps-DUoV7MCU.js.map → useExposedProps-BH9aq4MD.js.map} +1 -1
  479. package/lib/useLatest-hmRS46UF.js +11 -0
  480. package/lib/useLatest-hmRS46UF.js.map +1 -0
  481. package/lib/zudoku.__internal.js +2974 -0
  482. package/lib/zudoku.__internal.js.map +1 -0
  483. package/lib/zudoku.auth-auth0.js +1 -1
  484. package/lib/zudoku.auth-auth0.js.map +1 -1
  485. package/lib/zudoku.auth-azureb2c.js +5 -5
  486. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  487. package/lib/zudoku.auth-clerk.js +2 -2
  488. package/lib/zudoku.auth-clerk.js.map +1 -1
  489. package/lib/zudoku.auth-openid.js +5 -5
  490. package/lib/zudoku.auth-openid.js.map +1 -1
  491. package/lib/zudoku.auth-supabase.js +3 -2
  492. package/lib/zudoku.auth-supabase.js.map +1 -1
  493. package/lib/zudoku.components.js +20 -28
  494. package/lib/zudoku.hooks.js +4 -4
  495. package/lib/zudoku.icons.js.map +1 -1
  496. package/lib/zudoku.plugin-api-catalog.js +18 -18
  497. package/lib/zudoku.plugin-api-keys.js +60 -59
  498. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  499. package/lib/zudoku.plugin-custom-pages.js +8 -5
  500. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  501. package/lib/zudoku.plugin-markdown.js +1 -1
  502. package/lib/zudoku.plugin-markdown.js.map +1 -1
  503. package/lib/zudoku.plugin-openapi.js +4 -4
  504. package/lib/zudoku.plugin-redirect.js +3 -3
  505. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  506. package/lib/zudoku.plugin-search-pagefind.js +15 -15
  507. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  508. package/lib/zudoku.router.js +123 -0
  509. package/lib/zudoku.router.js.map +1 -0
  510. package/package.json +17 -24
  511. package/src/app/ZuploBuildConfig.ts +1 -1
  512. package/src/app/demo.tsx +1 -1
  513. package/src/app/entry.client.tsx +7 -6
  514. package/src/app/entry.server.tsx +4 -4
  515. package/src/app/env.ts +6 -6
  516. package/src/app/main.tsx +22 -7
  517. package/src/app/standalone.tsx +8 -3
  518. package/src/lib/MissingIcon.tsx +1 -1
  519. package/src/lib/auth/issuer.test.ts +1 -0
  520. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  521. package/src/lib/authentication/authentication.ts +3 -3
  522. package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
  523. package/src/lib/authentication/components/SignOut.tsx +1 -1
  524. package/src/lib/authentication/providers/auth0.tsx +5 -5
  525. package/src/lib/authentication/providers/azureb2c.tsx +5 -5
  526. package/src/lib/authentication/providers/clerk.tsx +5 -5
  527. package/src/lib/authentication/providers/openid.tsx +6 -6
  528. package/src/lib/authentication/providers/supabase.tsx +7 -6
  529. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  530. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  531. package/src/lib/components/AnchorLink.tsx +1 -1
  532. package/src/lib/components/Autocomplete.tsx +1 -1
  533. package/src/lib/components/Bootstrap.tsx +1 -0
  534. package/src/lib/components/BuildCheck.tsx +12 -1
  535. package/src/lib/components/Header.tsx +5 -5
  536. package/src/lib/components/Heading.tsx +2 -3
  537. package/src/lib/components/Layout.tsx +3 -22
  538. package/src/lib/components/Markdown.tsx +5 -2
  539. package/src/lib/components/Meta.tsx +32 -0
  540. package/src/lib/components/MobileTopNavigation.tsx +11 -13
  541. package/src/lib/components/PathRenderer.tsx +2 -2
  542. package/src/lib/components/Search.tsx +1 -1
  543. package/src/lib/components/Slot.test.tsx +8 -8
  544. package/src/lib/components/Slot.tsx +2 -2
  545. package/src/lib/components/TopNavigation.tsx +3 -3
  546. package/src/lib/components/Zudoku.tsx +2 -2
  547. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  548. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  549. package/src/lib/components/context/SlotProvider.tsx +4 -4
  550. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  551. package/src/lib/components/context/ZudokuContext.ts +1 -1
  552. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  553. package/src/lib/components/index.ts +1 -19
  554. package/src/lib/components/navigation/NavigationCategory.tsx +8 -1
  555. package/src/lib/components/navigation/NavigationItem.tsx +2 -2
  556. package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
  557. package/src/lib/components/navigation/Toc.tsx +2 -2
  558. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  559. package/src/lib/components/navigation/utils.ts +5 -6
  560. package/src/lib/core/ZudokuContext.ts +25 -6
  561. package/src/lib/core/__internal.tsx +30 -0
  562. package/src/lib/core/router.ts +1 -0
  563. package/src/lib/errors/ErrorAlert.tsx +0 -1
  564. package/src/lib/errors/TopLevelError.tsx +2 -4
  565. package/src/lib/hooks/useEvent.test.tsx +2 -2
  566. package/src/lib/oas/graphql/circular.ts +3 -3
  567. package/src/lib/oas/graphql/index.ts +2 -1
  568. package/src/lib/oas/parser/dereference/index.ts +2 -1
  569. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  570. package/src/lib/oas/parser/index.ts +2 -2
  571. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  572. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  573. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +5 -6
  574. package/src/lib/plugins/api-keys/index.tsx +8 -8
  575. package/src/lib/plugins/custom-pages/index.tsx +4 -1
  576. package/src/lib/plugins/markdown/MdxPage.tsx +5 -5
  577. package/src/lib/plugins/markdown/index.tsx +1 -1
  578. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
  579. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  580. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  581. package/src/lib/plugins/openapi/OperationList.tsx +5 -4
  582. package/src/lib/plugins/openapi/OperationListItem.tsx +18 -20
  583. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  584. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -3
  585. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -3
  586. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +1 -1
  587. package/src/lib/plugins/openapi/Sidecar.tsx +2 -1
  588. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
  589. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  590. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  591. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  592. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  593. package/src/lib/plugins/openapi/context.tsx +1 -1
  594. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +0 -1
  595. package/src/lib/plugins/openapi/graphql/gql.ts +0 -1
  596. package/src/lib/plugins/openapi/graphql/graphql.ts +0 -1
  597. package/src/lib/plugins/openapi/index.tsx +5 -4
  598. package/src/lib/plugins/openapi/interfaces.ts +5 -3
  599. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +2 -2
  600. package/src/lib/plugins/openapi/playground/Headers.tsx +1 -1
  601. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +1 -1
  602. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +1 -1
  603. package/src/lib/plugins/openapi/playground/Playground.tsx +2 -2
  604. package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
  605. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +1 -1
  606. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +1 -1
  607. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +3 -1
  608. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +3 -3
  609. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  610. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  611. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  612. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  613. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupConnector.tsx → AllOfGroup/AllOfGroupConnector.tsx} +4 -25
  614. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.tsx → AllOfGroup/AllOfGroupItem.tsx} +3 -11
  615. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +35 -0
  616. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +9 -27
  617. package/src/lib/plugins/openapi/schema/SchemaView.tsx +19 -13
  618. package/src/lib/plugins/openapi/schema/UnionView.tsx +123 -0
  619. package/src/lib/plugins/openapi/schema/union-helpers.ts +96 -0
  620. package/src/lib/plugins/openapi/schema/utils.ts +0 -11
  621. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
  622. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +1 -0
  623. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +3 -4
  624. package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
  625. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  626. package/src/lib/plugins/search-inkeep/index.tsx +3 -3
  627. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +2 -4
  628. package/src/lib/plugins/search-pagefind/ResultList.tsx +3 -4
  629. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  630. package/src/lib/shiki.ts +6 -6
  631. package/src/lib/ui/Breadcrumb.tsx +1 -0
  632. package/src/lib/ui/Carousel.tsx +1 -0
  633. package/src/lib/ui/CodeBlock.tsx +5 -3
  634. package/src/lib/ui/Command.tsx +2 -4
  635. package/src/lib/ui/Dialog.tsx +12 -4
  636. package/src/lib/ui/Form.tsx +4 -4
  637. package/src/lib/ui/Pagination.tsx +1 -2
  638. package/src/lib/ui/ToggleGroup.tsx +1 -1
  639. package/src/lib/util/MdxComponents.tsx +9 -2
  640. package/src/lib/util/cn.ts +1 -1
  641. package/src/lib/util/createVariantComponent.tsx +2 -2
  642. package/src/lib/util/groupBy.ts +1 -0
  643. package/src/lib/util/humanFileSize.ts +2 -3
  644. package/src/lib/util/invariant.ts +1 -0
  645. package/src/lib/util/pastellize.ts +2 -2
  646. package/src/lib/util/types.ts +1 -1
  647. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  648. package/src/lib/util/useScrollToAnchor.ts +3 -1
  649. package/src/shiki/langs/vue-vine.js +1 -0
  650. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  651. package/dist/lib/components/ReactMarkdown.js +0 -182
  652. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  653. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  654. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  655. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  656. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  657. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  658. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  659. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  660. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  661. package/lib/CodeBlock-CVT6z0PP.js.map +0 -1
  662. package/lib/Command-BYukybsa.js.map +0 -1
  663. package/lib/Dialog-u9Uz9sTt.js +0 -99
  664. package/lib/Dialog-u9Uz9sTt.js.map +0 -1
  665. package/lib/MdxPage-plD-n8fm.js.map +0 -1
  666. package/lib/OAuthErrorPage-BTP-t8Fq.js.map +0 -1
  667. package/lib/OasProvider-CYf5xe1a.js.map +0 -1
  668. package/lib/OperationList-C_-vAmhs.js.map +0 -1
  669. package/lib/RouteGuard-gznKADdm.js.map +0 -1
  670. package/lib/SchemaView-CHb3DJ6D.js +0 -366
  671. package/lib/SchemaView-CHb3DJ6D.js.map +0 -1
  672. package/lib/SignUp-BXxkBCGy.js.map +0 -1
  673. package/lib/chunk-QMGIS6GS-CdEm9pzB.js +0 -1839
  674. package/lib/chunk-QMGIS6GS-CdEm9pzB.js.map +0 -1
  675. package/lib/createServer-B4w9HCV7.js.map +0 -1
  676. package/lib/errors-v4zc7txj.js.map +0 -1
  677. package/lib/index-D1LmO5Bn.js +0 -4082
  678. package/lib/index-D1LmO5Bn.js.map +0 -1
  679. package/lib/index-DnkZAg98.js.map +0 -1
  680. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  681. package/src/lib/components/ReactMarkdown.tsx +0 -264
  682. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
@@ -1,26 +1,27 @@
1
1
  import { j as b } from "./jsx-runtime-C5mzlN2N.js";
2
- import { b as gr, i as Ia, l as Ua } from "./ZudokuContext-mDDq1hft.js";
3
- import { H as La } from "./RouteGuard-gznKADdm.js";
2
+ import { b as gr, e as Ia, I as Ua } from "./ZudokuContext-BR-lnR7O.js";
3
+ import { H as La } from "./index.esm-BnYHxCYC.js";
4
4
  import { ChevronsUpDownIcon as Zn, CheckIcon as Fa, CopyIcon as _a, MinusIcon as Ba, PlusIcon as Ha, UnfoldVerticalIcon as Ma, FoldVerticalIcon as za, ChevronsDownUpIcon as Wa } from "lucide-react";
5
- import { a as Ja, d as Va, b as Ga } from "./chunk-QMGIS6GS-CdEm9pzB.js";
6
- import { u as et, a as Ke, g as Me, e as vr, f as ea, C as ta, c as ra, b as dr, P as Da, h as Qa, U as Ka } from "./index-DnkZAg98.js";
7
- import { S as na, c as aa, d as oa, e as ia, g as sa } from "./Select-ByPbK6BU.js";
8
- import { I as Ya, S as la, M as _e, H as Fe, C as Xa } from "./Slot-DDNiyFIv.js";
9
- import { P as Za } from "./Pagination-BAO0V4os.js";
5
+ import { a_ as Ja, aU as Va, aP as Ga } from "./chunk-QMGIS6GS-DqecZ6nq.js";
6
+ import { u as et, a as Ke, g as Me, e as vr, f as ea, C as ta, c as ra, b as dr, P as Da, h as Qa, U as Ka } from "./index-Dp3Fmnfq.js";
7
+ import { S as na, c as aa, d as oa, e as ia, g as sa } from "./Select-DWh0wSay.js";
8
+ import { C as Ya } from "./CategoryHeading-DCpZu3yG.js";
9
+ import { I as Xa, S as la, M as _e, H as Fe } from "./Slot-BbdqiRXo.js";
10
+ import { P as Za } from "./Pagination-ZI2yyuxj.js";
10
11
  import { useTransition as ca, useState as ge, useRef as ua, useEffect as br, useLayoutEffect as eo, useMemo as fa } from "react";
11
12
  import { Button as pa } from "./ui/Button.js";
12
13
  import { c as pe } from "./cn-dYga0KKN.js";
13
14
  import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
14
15
  import { c as to } from "./index-DI5SPFK9.js";
15
- import { i as ro, P as no, E as Ur, a as ao, S as xr, b as oo, g as io } from "./SchemaView-CHb3DJ6D.js";
16
- import { Card as so } from "./ui/Card.js";
16
+ import { S as xr, i as ro, P as no, E as Ur, a as ao, b as oo, g as io } from "./SchemaView-B2BeAuci.js";
17
+ import * as je from "@radix-ui/react-tabs";
18
+ import { M as so, c as lo } from "./index-BuKx9nrj.js";
19
+ import { Card as co } from "./ui/Card.js";
17
20
  import * as dt from "@radix-ui/react-collapsible";
18
- import { useZudoku as lo } from "./zudoku.hooks.js";
19
- import { u as co } from "./hook-CGx8MPrU.js";
20
- import { S as da } from "./SyntaxHighlight-jSFm3PeK.js";
21
+ import { useZudoku as uo } from "./zudoku.hooks.js";
22
+ import { u as fo } from "./hook-B4Q30zMI.js";
23
+ import { S as da } from "./SyntaxHighlight-CvzJ7DNa.js";
21
24
  import { B as Lr } from "./Button-B3o-2Xdf.js";
22
- import { b as uo, M as fo } from "./index-D1LmO5Bn.js";
23
- import * as je from "@radix-ui/react-tabs";
24
25
  import { g as po, c as Ye, a as ho } from "./invariant-Bm-FVUQE.js";
25
26
  function yo(e, n) {
26
27
  return n;
@@ -85,12 +86,10 @@ const Xe = ({
85
86
  }, go = () => {
86
87
  const { input: e, type: n } = et(), t = Ke(mo, { input: e, type: n }), a = gr(t), [, c] = ca(), { selectedServer: s, setSelectedServer: r } = vr(
87
88
  a.data.schema.servers
88
- ), { servers: o } = a.data.schema;
89
- if (o.length === 0) return null;
90
- const i = o.at(0);
91
- return o.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
89
+ ), { servers: o } = a.data.schema, i = o.at(0);
90
+ return i ? o.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
92
91
  /* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
93
- /* @__PURE__ */ b.jsx(Ya, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
92
+ /* @__PURE__ */ b.jsx(Xa, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
94
93
  /* @__PURE__ */ b.jsx(Fr, { url: i.url })
95
94
  ] }) : /* @__PURE__ */ b.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
96
95
  /* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
@@ -108,7 +107,7 @@ const Xe = ({
108
107
  }
109
108
  ),
110
109
  /* @__PURE__ */ b.jsx(Fr, { url: s })
111
- ] });
110
+ ] }) : null;
112
111
  }, vo = to(
113
112
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
114
113
  {
@@ -129,14 +128,73 @@ const Xe = ({
129
128
  function _r({ className: e, variant: n, ...t }) {
130
129
  return /* @__PURE__ */ b.jsx("div", { className: pe(vo({ variant: n }), e), ...t });
131
130
  }
132
- const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
131
+ const Br = (e, n) => e ? n(e) : void 0, bo = pe, xo = ({
132
+ responses: e,
133
+ selectedResponse: n,
134
+ onSelectResponse: t
135
+ }) => {
136
+ const [a, c] = ge(
137
+ e[0]?.content?.[0]?.mediaType ?? ""
138
+ ), s = e.find((o) => o.statusCode === n) ?? e[0], r = /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col bg-muted text-muted-foreground", children: [
139
+ /* @__PURE__ */ b.jsxs("div", { className: "flex flex-row items-center gap-2 justify-between px-4 py-2", children: [
140
+ /* @__PURE__ */ b.jsx(je.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((o) => /* @__PURE__ */ b.jsx(
141
+ je.Trigger,
142
+ {
143
+ value: o.statusCode,
144
+ className: bo(
145
+ "py-1 -mx-2 px-2 rounded-md",
146
+ "data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
147
+ "data-[state=active]:font-semibold data-[state=active]:text-foreground"
148
+ ),
149
+ children: o.statusCode
150
+ },
151
+ o.statusCode
152
+ )) }),
153
+ s?.content && s.content.length > 1 && /* @__PURE__ */ b.jsxs(
154
+ na,
155
+ {
156
+ value: a,
157
+ onValueChange: c,
158
+ children: [
159
+ /* @__PURE__ */ b.jsx(aa, { className: "h-8 mt-0 max-w-48 text-xs truncate", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select a type" }) }),
160
+ /* @__PURE__ */ b.jsx(ia, { children: s.content.map((o) => /* @__PURE__ */ b.jsx(sa, { value: o.mediaType, children: o.mediaType }, o.mediaType)) })
161
+ ]
162
+ }
163
+ )
164
+ ] }),
165
+ s?.description && /* @__PURE__ */ b.jsx(
166
+ so,
167
+ {
168
+ className: "text-sm border-t px-4 py-2 text-muted-foreground",
169
+ content: s.description
170
+ }
171
+ )
172
+ ] });
173
+ return /* @__PURE__ */ b.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ b.jsx(
174
+ je.Root,
175
+ {
176
+ value: n,
177
+ onValueChange: (o) => {
178
+ t?.(o);
179
+ const i = e.find((l) => l.statusCode === o);
180
+ c(i?.content?.[0]?.mediaType ?? "");
181
+ },
182
+ children: e.map((o) => {
183
+ const i = o.content?.find(
184
+ (l) => l.mediaType === a
185
+ );
186
+ return /* @__PURE__ */ b.jsx(je.Content, { value: o.statusCode, children: /* @__PURE__ */ b.jsx(xr, { schema: i?.schema, cardHeader: r }) }, o.statusCode);
187
+ })
188
+ }
189
+ ) });
190
+ }, $o = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
133
191
  type: "string"
134
- }, xo = ({
192
+ }, wo = ({
135
193
  parameter: e,
136
194
  group: n,
137
195
  id: t
138
196
  }) => {
139
- const a = bo(e), [c, s] = ge(!1);
197
+ const a = $o(e), [c, s] = ge(!1);
140
198
  return /* @__PURE__ */ b.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1.5", children: [
141
199
  /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
142
200
  /* @__PURE__ */ b.jsx(la, { asChild: !0, children: /* @__PURE__ */ b.jsx("code", { children: n === "path" ? /* @__PURE__ */ b.jsx(
@@ -197,7 +255,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
197
255
  }
198
256
  )
199
257
  ] });
200
- }, $o = ({
258
+ }, jo = ({
201
259
  summary: e,
202
260
  group: n,
203
261
  parameters: t,
@@ -210,8 +268,8 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
210
268
  ] }),
211
269
  n === "header" ? "Headers" : `${n} Parameters`
212
270
  ] }),
213
- /* @__PURE__ */ b.jsx(so, { children: /* @__PURE__ */ b.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((c, s) => c.required === s.required ? 0 : c.required ? -1 : 1).map((c) => /* @__PURE__ */ b.jsx(
214
- xo,
271
+ /* @__PURE__ */ b.jsx(co, { children: /* @__PURE__ */ b.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((c, s) => c.required === s.required ? 0 : c.required ? -1 : 1).map((c) => /* @__PURE__ */ b.jsx(
272
+ wo,
215
273
  {
216
274
  parameter: c,
217
275
  id: a,
@@ -219,7 +277,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
219
277
  },
220
278
  `${c.name}-${c.in}`
221
279
  )) }) })
222
- ] }), wo = ({
280
+ ] }), So = ({
223
281
  rootMargin: e = "0px",
224
282
  threshold: n,
225
283
  root: t
@@ -235,12 +293,12 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
235
293
  if (o)
236
294
  return r.observe(o), () => r.unobserve(o);
237
295
  }, [t, e, n]), [s, a];
238
- }, jo = typeof window < "u" ? eo : br, ha = ({
296
+ }, Oo = typeof window < "u" ? eo : br, ha = ({
239
297
  children: e,
240
298
  maxHeight: n = 250
241
299
  }) => {
242
300
  const t = ua(null), [a, c] = ge(!1), [s, r] = ge(!1);
243
- return jo(() => {
301
+ return Oo(() => {
244
302
  const o = t.current;
245
303
  if (!o) return;
246
304
  c(o.scrollHeight > n);
@@ -297,24 +355,24 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
297
355
  ]
298
356
  }
299
357
  );
300
- }, So = ({
358
+ }, To = ({
301
359
  server: e,
302
360
  servers: n,
303
361
  operation: t,
304
362
  examples: a
305
363
  }) => {
306
- const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = uo(), l = t.parameters?.filter((f) => f.in === "header").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
364
+ const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = lo(), l = t.parameters?.filter((f) => f.in === "header").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
307
365
  name: f.name,
308
366
  defaultValue: f.schema?.default ?? f.examples?.find((h) => h.value)?.value ?? "",
309
367
  defaultActive: f.required ?? !1,
310
368
  isRequired: f.required ?? !1,
311
- enum: f.schema?.type == "array" ? f.schema?.items?.enum : f.schema?.enum,
369
+ enum: f.schema?.type === "array" ? f.schema?.items?.enum : f.schema?.enum,
312
370
  type: f.schema?.type ?? "string"
313
371
  })), d = t.parameters?.filter((f) => f.in === "query").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
314
372
  name: f.name,
315
373
  defaultActive: f.required ?? !1,
316
374
  isRequired: f.required ?? !1,
317
- enum: f.schema?.type == "array" ? f.schema?.items?.enum : f.schema?.enum,
375
+ enum: f.schema?.type === "array" ? f.schema?.items?.enum : f.schema?.enum,
318
376
  type: f.schema?.type ?? "string",
319
377
  defaultValue: f.schema?.default
320
378
  })), y = t.parameters?.filter((f) => f.in === "path").map((f) => ({
@@ -415,11 +473,10 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
415
473
  return null;
416
474
  case "object":
417
475
  return {};
418
- case void 0:
419
476
  default:
420
477
  return {};
421
478
  }
422
- }, Oo = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), To = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
479
+ }, Po = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Co = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
423
480
  "text/html": "html",
424
481
  "application/x-ndjson": "json",
425
482
  "application/json": "json",
@@ -442,7 +499,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
442
499
  br(() => {
443
500
  d && t?.(d);
444
501
  }, [d, t]);
445
- const y = Oo(d), f = To(o?.mediaType);
502
+ const y = Po(d), f = Co(o?.mediaType);
446
503
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
447
504
  /* @__PURE__ */ b.jsxs(ya, { className: "p-0", children: [
448
505
  l?.externalValue ? /* @__PURE__ */ b.jsx("div", { className: "p-2", children: /* @__PURE__ */ b.jsx(
@@ -496,13 +553,13 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
496
553
  ] })
497
554
  ] })
498
555
  ] });
499
- }, Po = ({
556
+ }, qo = ({
500
557
  content: e,
501
558
  onExampleChange: n
502
559
  }) => e.length === 0 ? null : /* @__PURE__ */ b.jsxs($r, { children: [
503
560
  /* @__PURE__ */ b.jsx(wr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
504
561
  /* @__PURE__ */ b.jsx(ga, { content: e, onExampleChange: n })
505
- ] }), Co = ({
562
+ ] }), Eo = ({
506
563
  responses: e,
507
564
  selectedResponse: n,
508
565
  onSelectResponse: t
@@ -559,27 +616,27 @@ var Hr = (e, n) => {
559
616
  }, this.indentationCharacter = e || Mr, this.lineJoin = n ?? zr;
560
617
  }
561
618
  }, ht, Wr;
562
- function qo() {
619
+ function Ro() {
563
620
  return Wr || (Wr = 1, ht = function(e) {
564
621
  return Object.prototype.toString.call(e) === "[object RegExp]";
565
622
  }), ht;
566
623
  }
567
624
  var yt, Jr;
568
- function Eo() {
625
+ function ko() {
569
626
  return Jr || (Jr = 1, yt = function(e) {
570
627
  var n = typeof e;
571
628
  return e !== null && (n === "object" || n === "function");
572
629
  }), yt;
573
630
  }
574
631
  var De = {}, Vr;
575
- function Ro() {
632
+ function No() {
576
633
  return Vr || (Vr = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), De;
577
634
  }
578
635
  var mt, Gr;
579
- function ko() {
636
+ function Ao() {
580
637
  if (Gr) return mt;
581
638
  Gr = 1;
582
- const e = qo(), n = Eo(), t = Ro().default;
639
+ const e = Ro(), n = ko(), t = No().default;
583
640
  return mt = (a, c, s) => {
584
641
  const r = [];
585
642
  return function o(i, l, d) {
@@ -639,14 +696,14 @@ function ko() {
639
696
  }(a, c, s);
640
697
  }, mt;
641
698
  }
642
- var No = ko();
643
- const ue = /* @__PURE__ */ po(No);
699
+ var Io = Ao();
700
+ const ue = /* @__PURE__ */ po(Io);
644
701
  function Be(e, n = {}) {
645
702
  const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
646
703
  return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
647
704
  ` ? c ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? c ? `${a}r` : r : r === a ? a + a : r === t ? a + t : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
648
705
  }
649
- var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' }), Ao = {
706
+ var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' }), Uo = {
650
707
  info: {
651
708
  key: "libcurl",
652
709
  title: "Libcurl",
@@ -662,7 +719,7 @@ var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' })
662
719
  s(`headers = curl_slist_append(headers, "${l}: ${le(t[l])}");`);
663
720
  }), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (r(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), r(), s("CURLcode ret = curl_easy_perform(hnd);"), o();
664
721
  }
665
- }, Io = {
722
+ }, Lo = {
666
723
  info: {
667
724
  key: "c",
668
725
  title: "C",
@@ -670,19 +727,19 @@ var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' })
670
727
  cli: "c"
671
728
  },
672
729
  clientsById: {
673
- libcurl: Ao
730
+ libcurl: Uo
674
731
  }
675
732
  }, fe = (e, n) => Object.keys(e).find((t) => t.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
676
733
  const t = fe(e, n);
677
734
  if (t)
678
735
  return e[t];
679
- }, tt = (e, n) => !!fe(e, n), Uo = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
736
+ }, tt = (e, n) => !!fe(e, n), Fo = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
680
737
  (n) => e.indexOf(n) > -1
681
738
  ), Dr = class {
682
739
  constructor(e) {
683
740
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
684
741
  }
685
- }, Lo = class {
742
+ }, _o = class {
686
743
  constructor(e) {
687
744
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
688
745
  }
@@ -719,7 +776,7 @@ ${t}`);
719
776
  default:
720
777
  return e.toString();
721
778
  }
722
- }, Fo = {
779
+ }, Bo = {
723
780
  info: {
724
781
  key: "clj_http",
725
782
  title: "clj-http",
@@ -761,7 +818,7 @@ ${t}`);
761
818
  if (t.params) {
762
819
  l.multipart = t.params.map((y) => y.fileName && !y.value ? {
763
820
  name: y.name,
764
- content: new Lo(y.fileName)
821
+ content: new _o(y.fileName)
765
822
  } : {
766
823
  name: y.name,
767
824
  content: y.value
@@ -790,16 +847,16 @@ ${t}`);
790
847
  }
791
848
  return o();
792
849
  }
793
- }, _o = {
850
+ }, Ho = {
794
851
  info: {
795
852
  key: "clojure",
796
853
  title: "Clojure",
797
854
  default: "clj_http"
798
855
  },
799
856
  clientsById: {
800
- clj_http: Fo
857
+ clj_http: Bo
801
858
  }
802
- }, Bo = (e) => {
859
+ }, Mo = (e) => {
803
860
  let n = ve(e, "accept-encoding");
804
861
  if (!n)
805
862
  return [];
@@ -816,7 +873,7 @@ ${t}`);
816
873
  }
817
874
  });
818
875
  }), a;
819
- }, Ho = {
876
+ }, zo = {
820
877
  info: {
821
878
  key: "httpclient",
822
879
  title: "HttpClient",
@@ -831,7 +888,7 @@ ${t}`);
831
888
  }, { push: r, join: o } = new G({ indent: s.indent });
832
889
  r("using System.Net.Http.Headers;");
833
890
  let i = "";
834
- const l = !!e.cookie, d = Bo(e);
891
+ const l = !!e.cookie, d = Mo(e);
835
892
  (l || d.length) && (i = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), l && r("UseCookies = false,", 1), d.length && r(`AutomaticDecompression = ${d.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${i});`), r("var request = new HttpRequestMessage"), r("{");
836
893
  const y = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
837
894
  t = t.toUpperCase(), t && y.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, r(`Method = ${t},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
@@ -868,10 +925,10 @@ ${t}`);
868
925
  return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), o();
869
926
  }
870
927
  };
871
- function Mo(e) {
928
+ function Wo(e) {
872
929
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
873
930
  }
874
- var zo = {
931
+ var Jo = {
875
932
  info: {
876
933
  key: "restsharp",
877
934
  title: "RestSharp",
@@ -921,11 +978,11 @@ var zo = {
921
978
  if (!c.text) break;
922
979
  r(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
923
980
  }
924
- return r(`var response = await client.${Mo(e)}Async(request);
981
+ return r(`var response = await client.${Wo(e)}Async(request);
925
982
  `), r(`Console.WriteLine("{0}", response.Content);
926
983
  `), o();
927
984
  }
928
- }, Wo = {
985
+ }, Vo = {
929
986
  info: {
930
987
  key: "csharp",
931
988
  title: "C#",
@@ -933,10 +990,10 @@ var zo = {
933
990
  cli: "dotnet"
934
991
  },
935
992
  clientsById: {
936
- httpclient: Ho,
937
- restsharp: zo
993
+ httpclient: zo,
994
+ restsharp: Jo
938
995
  }
939
- }, Jo = {
996
+ }, Go = {
940
997
  info: {
941
998
  key: "native",
942
999
  title: "NewRequest",
@@ -954,7 +1011,7 @@ var zo = {
954
1011
  r(`req.Header.Add("${v}", "${le(t[v])}")`, h);
955
1012
  }), s()), r(`res, ${f} := ${m}.Do(req)`, h), x(), d && (s(), r("defer res.Body.Close()", h), r(`body, ${f} := io.ReadAll(res.Body)`, h), x()), s(), d && r("fmt.Println(string(body))", h), i && (s(), r("}")), o();
956
1013
  }
957
- }, Vo = {
1014
+ }, Do = {
958
1015
  info: {
959
1016
  key: "go",
960
1017
  title: "Go",
@@ -962,10 +1019,10 @@ var zo = {
962
1019
  cli: "go"
963
1020
  },
964
1021
  clientsById: {
965
- native: Jo
1022
+ native: Go
966
1023
  }
967
1024
  }, Kr = `\r
968
- `, Go = {
1025
+ `, Qo = {
969
1026
  info: {
970
1027
  key: "http1.1",
971
1028
  title: "HTTP/1.1",
@@ -993,16 +1050,16 @@ var zo = {
993
1050
  const h = d(), x = s.text || "";
994
1051
  return `${h}${Kr}${x}`;
995
1052
  }
996
- }, Do = {
1053
+ }, Ko = {
997
1054
  info: {
998
1055
  key: "http",
999
1056
  title: "HTTP",
1000
1057
  default: "http1.1"
1001
1058
  },
1002
1059
  clientsById: {
1003
- "http1.1": Go
1060
+ "http1.1": Qo
1004
1061
  }
1005
- }, Qo = {
1062
+ }, Yo = {
1006
1063
  info: {
1007
1064
  key: "asynchttp",
1008
1065
  title: "AsyncHttp",
@@ -1019,7 +1076,7 @@ var zo = {
1019
1076
  o(`.setHeader("${l}", "${le(n[l])}")`, 1);
1020
1077
  }), t.text && o(`.setBody(${JSON.stringify(t.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), r(), o("client.close();"), i();
1021
1078
  }
1022
- }, Ko = {
1079
+ }, Xo = {
1023
1080
  info: {
1024
1081
  key: "nethttp",
1025
1082
  title: "java.net.http",
@@ -1041,7 +1098,7 @@ var zo = {
1041
1098
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
1042
1099
  ), r("System.out.println(response.body());"), o();
1043
1100
  }
1044
- }, Yo = {
1101
+ }, Zo = {
1045
1102
  info: {
1046
1103
  key: "okhttp",
1047
1104
  title: "OkHttp",
@@ -1058,7 +1115,7 @@ var zo = {
1058
1115
  r(`.addHeader("${y}", "${le(a[y])}")`, 1);
1059
1116
  }), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), i();
1060
1117
  }
1061
- }, Xo = {
1118
+ }, ei = {
1062
1119
  info: {
1063
1120
  key: "unirest",
1064
1121
  title: "Unirest",
@@ -1075,19 +1132,19 @@ var zo = {
1075
1132
  o(`.header("${l}", "${le(n[l])}")`, 1);
1076
1133
  }), t.text && o(`.body(${JSON.stringify(t.text)})`, 1), o(".asString();", 1), r();
1077
1134
  }
1078
- }, Zo = {
1135
+ }, ti = {
1079
1136
  info: {
1080
1137
  key: "java",
1081
1138
  title: "Java",
1082
1139
  default: "unirest"
1083
1140
  },
1084
1141
  clientsById: {
1085
- asynchttp: Qo,
1086
- nethttp: Ko,
1087
- okhttp: Yo,
1088
- unirest: Xo
1142
+ asynchttp: Yo,
1143
+ nethttp: Xo,
1144
+ okhttp: Zo,
1145
+ unirest: ei
1089
1146
  }
1090
- }, ei = {
1147
+ }, ri = {
1091
1148
  info: {
1092
1149
  key: "axios",
1093
1150
  title: "Axios",
@@ -1131,7 +1188,7 @@ var zo = {
1131
1188
  }).replace('"[form]"', "form");
1132
1189
  return i(`const options = ${f};`), o(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), l();
1133
1190
  }
1134
- }, ti = {
1191
+ }, ni = {
1135
1192
  info: {
1136
1193
  key: "fetch",
1137
1194
  title: "fetch",
@@ -1184,7 +1241,7 @@ var zo = {
1184
1241
  })};`
1185
1242
  ), r(), t.params && t.mimeType === "multipart/form-data" && (i("options.body = form;"), r()), i(`fetch('${a}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), o();
1186
1243
  }
1187
- }, ri = {
1244
+ }, ai = {
1188
1245
  info: {
1189
1246
  key: "jquery",
1190
1247
  title: "jQuery",
@@ -1227,7 +1284,7 @@ var zo = {
1227
1284
  const d = ue(l, { indent: s.indent }).replace("'[form]'", "form");
1228
1285
  return o(`const settings = ${d};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), i();
1229
1286
  }
1230
- }, ni = {
1287
+ }, oi = {
1231
1288
  info: {
1232
1289
  key: "xhr",
1233
1290
  title: "XMLHttpRequest",
@@ -1267,19 +1324,19 @@ var zo = {
1267
1324
  o(`xhr.setRequestHeader('${l}', '${He(n[l])}');`);
1268
1325
  }), r(), o("xhr.send(data);"), i();
1269
1326
  }
1270
- }, ai = {
1327
+ }, ii = {
1271
1328
  info: {
1272
1329
  key: "javascript",
1273
1330
  title: "JavaScript",
1274
1331
  default: "xhr"
1275
1332
  },
1276
1333
  clientsById: {
1277
- xhr: ni,
1278
- axios: ei,
1279
- fetch: ti,
1280
- jquery: ri
1334
+ xhr: oi,
1335
+ axios: ri,
1336
+ fetch: ni,
1337
+ jquery: ai
1281
1338
  }
1282
- }, oi = {
1339
+ }, si = {
1283
1340
  info: {
1284
1341
  key: "native",
1285
1342
  title: "Native JSON",
@@ -1313,16 +1370,16 @@ var zo = {
1313
1370
  }
1314
1371
  return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, t.indent);
1315
1372
  }
1316
- }, ii = {
1373
+ }, li = {
1317
1374
  info: {
1318
1375
  key: "json",
1319
1376
  title: "JSON",
1320
1377
  default: "native"
1321
1378
  },
1322
1379
  clientsById: {
1323
- native: oi
1380
+ native: si
1324
1381
  }
1325
- }, si = {
1382
+ }, ci = {
1326
1383
  info: {
1327
1384
  key: "okhttp",
1328
1385
  title: "OkHttp",
@@ -1339,16 +1396,16 @@ var zo = {
1339
1396
  i(`.addHeader("${y}", "${le(a[y])}")`, 1);
1340
1397
  }), i(".build()", 1), r(), i("val response = client.newCall(request).execute()"), o();
1341
1398
  }
1342
- }, li = {
1399
+ }, ui = {
1343
1400
  info: {
1344
1401
  key: "kotlin",
1345
1402
  title: "Kotlin",
1346
1403
  default: "okhttp"
1347
1404
  },
1348
1405
  clientsById: {
1349
- okhttp: si
1406
+ okhttp: ci
1350
1407
  }
1351
- }, ci = {
1408
+ }, fi = {
1352
1409
  info: {
1353
1410
  key: "axios",
1354
1411
  title: "Axios",
@@ -1382,7 +1439,7 @@ var zo = {
1382
1439
  const y = ue(d, { indent: " ", inlineCharacterLimit: 80 });
1383
1440
  return i(`const options = ${y};`), r(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), o();
1384
1441
  }
1385
- }, ui = {
1442
+ }, pi = {
1386
1443
  info: {
1387
1444
  key: "fetch",
1388
1445
  title: "Fetch",
@@ -1441,7 +1498,7 @@ var zo = {
1441
1498
  });
1442
1499
  return l(`const options = ${x};`), i(), o && y("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (l("options.body = formData;"), i()), l("fetch(url, options)"), l(".then(res => res.json())", 1), l(".then(json => console.log(json))", 1), l(".catch(err => console.error('error:' + err));", 1), d().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1443
1500
  }
1444
- }, fi = {
1501
+ }, di = {
1445
1502
  info: {
1446
1503
  key: "native",
1447
1504
  title: "HTTP",
@@ -1479,7 +1536,7 @@ var zo = {
1479
1536
  }
1480
1537
  return i("req.end();"), o();
1481
1538
  }
1482
- }, pi = {
1539
+ }, hi = {
1483
1540
  info: {
1484
1541
  key: "request",
1485
1542
  title: "Request",
@@ -1532,7 +1589,7 @@ var zo = {
1532
1589
  l(`jar.setCookie(request.cookie('${encodeURIComponent($)}=${encodeURIComponent(u)}'), '${n}');`);
1533
1590
  }), d(), h(($) => $.replace(/'JAR'/, "jar"))), i && f("const fs = require('fs');"), l(`const options = ${ue(x, { indent: " ", inlineCharacterLimit: 80 })};`), d(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), d(), l("console.log(body);", 1), l("});"), y();
1534
1591
  }
1535
- }, di = {
1592
+ }, yi = {
1536
1593
  info: {
1537
1594
  key: "unirest",
1538
1595
  title: "Unirest",
@@ -1573,7 +1630,7 @@ var zo = {
1573
1630
  }
1574
1631
  return i && h("const fs = require('fs');"), f("req.end(function (res) {"), f("if (res.error) throw new Error(res.error);", 1), d(), f("console.log(res.body);", 1), f("});"), y();
1575
1632
  }
1576
- }, hi = {
1633
+ }, mi = {
1577
1634
  info: {
1578
1635
  key: "node",
1579
1636
  title: "Node.js",
@@ -1581,11 +1638,11 @@ var zo = {
1581
1638
  cli: "node %s"
1582
1639
  },
1583
1640
  clientsById: {
1584
- native: fi,
1585
- request: pi,
1586
- unirest: di,
1587
- axios: ci,
1588
- fetch: ui
1641
+ native: di,
1642
+ request: hi,
1643
+ unirest: yi,
1644
+ axios: fi,
1645
+ fetch: pi
1589
1646
  }
1590
1647
  }, gt = (e, n, t, a) => {
1591
1648
  const c = `${e} *${n} = `, s = mr(t, a ? c.length : void 0);
@@ -1609,7 +1666,7 @@ var zo = {
1609
1666
  default:
1610
1667
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
1611
1668
  }
1612
- }, yi = {
1669
+ }, gi = {
1613
1670
  info: {
1614
1671
  key: "nsurlsession",
1615
1672
  title: "NSURLSession",
@@ -1665,16 +1722,16 @@ var zo = {
1665
1722
  2
1666
1723
  ), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
1667
1724
  }
1668
- }, mi = {
1725
+ }, vi = {
1669
1726
  info: {
1670
1727
  key: "objc",
1671
1728
  title: "Objective-C",
1672
1729
  default: "nsurlsession"
1673
1730
  },
1674
1731
  clientsById: {
1675
- nsurlsession: yi
1732
+ nsurlsession: gi
1676
1733
  }
1677
- }, gi = {
1734
+ }, bi = {
1678
1735
  info: {
1679
1736
  key: "cohttp",
1680
1737
  title: "CoHTTP",
@@ -1700,14 +1757,14 @@ var zo = {
1700
1757
  const y = d.length ? "~headers " : "", f = t.text ? "~body " : "", h = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
1701
1758
  return o(`Client.call ${y}${f}${h} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), l();
1702
1759
  }
1703
- }, vi = {
1760
+ }, xi = {
1704
1761
  info: {
1705
1762
  key: "ocaml",
1706
1763
  title: "OCaml",
1707
1764
  default: "cohttp"
1708
1765
  },
1709
1766
  clientsById: {
1710
- cohttp: gi
1767
+ cohttp: bi
1711
1768
  }
1712
1769
  }, te = (e, n, t) => {
1713
1770
  switch (t = t || "", n = n || "", Object.prototype.toString.call(e)) {
@@ -1768,7 +1825,7 @@ ${t}]`;
1768
1825
  "UNLOCK",
1769
1826
  "UPDATE",
1770
1827
  "VERSION_CONTROL"
1771
- ], bi = {
1828
+ ], $i = {
1772
1829
  info: {
1773
1830
  key: "curl",
1774
1831
  title: "cURL",
@@ -1846,7 +1903,7 @@ ${l}` });
1846
1903
  return p.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(p.join(`,
1847
1904
  ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = curl_exec($curl);"), $("$err = curl_error($curl);"), u(), $("curl_close($curl);"), u(), $("if ($err) {"), $(y ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), $("} else {"), $("echo $response;", 1), $("}"), !f && i && (u(), $("?>")), m();
1848
1905
  }
1849
- }, xi = {
1906
+ }, wi = {
1850
1907
  info: {
1851
1908
  key: "guzzle",
1852
1909
  title: "Guzzle",
@@ -1896,7 +1953,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
1896
1953
  return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${He(x)}',`), h.length && (y("'headers' => [", 1), y(h.join(`
1897
1954
  `)), y("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), i(), d.length ? (o(`$response = $client->request('${t}', '${n}', [`), o(f()), o("]);")) : o(`$response = $client->request('${t}', '${n}');`), i(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (i(), o("?>")), l();
1898
1955
  }
1899
- }, $i = {
1956
+ }, ji = {
1900
1957
  info: {
1901
1958
  key: "http1",
1902
1959
  title: "HTTP v1",
@@ -1918,7 +1975,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
1918
1975
  }
1919
1976
  return y("try {"), y("$response = $request->send();", 1), f(), y("echo $response->getBody();", 1), y("} catch (HttpException $ex) {"), y("echo $ex;", 1), y("}"), !l && o && (f(), y("?>")), h();
1920
1977
  }
1921
- }, wi = {
1978
+ }, Si = {
1922
1979
  info: {
1923
1980
  key: "http2",
1924
1981
  title: "HTTP v2",
@@ -1965,7 +2022,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
1965
2022
  }
1966
2023
  return y(`$request->setRequestUrl(${te(s)});`), y(`$request->setRequestMethod(${te(t)});`), x && (y("$request->setBody($body);"), f()), Object.keys(a).length && (y(`$request->setQuery(new http\\QueryString(${te(a, i)}));`), f()), Object.keys(n).length && (y(`$request->setHeaders(${te(n, i)});`), f()), Object.keys(c).length && (f(), y(`$client->setCookies(${te(c, i)});`), f()), y("$client->enqueue($request)->send();"), y("$response = $client->getResponse();"), f(), y("echo $response->getBody();"), !l && o && (f(), y("?>")), h();
1967
2024
  }
1968
- }, ji = {
2025
+ }, Oi = {
1969
2026
  info: {
1970
2027
  key: "php",
1971
2028
  title: "PHP",
@@ -1973,10 +2030,10 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
1973
2030
  cli: "php %s"
1974
2031
  },
1975
2032
  clientsById: {
1976
- curl: bi,
1977
- guzzle: xi,
1978
- http1: $i,
1979
- http2: wi
2033
+ curl: $i,
2034
+ guzzle: wi,
2035
+ http1: ji,
2036
+ http2: Si
1980
2037
  }
1981
2038
  }, xa = (e) => ({ method: t, headersObj: a, cookies: c, uriObj: s, fullUrl: r, postData: o, allHeaders: i }) => {
1982
2039
  const { push: l, join: d } = new G();
@@ -1990,7 +2047,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
1990
2047
  }), f.push("-WebSession $session")), o.text && (f.push(
1991
2048
  `-ContentType '${Be(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1992
2049
  ), f.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${f.join(" ")}`.trim()), d();
1993
- }, Si = {
2050
+ }, Ti = {
1994
2051
  info: {
1995
2052
  key: "restmethod",
1996
2053
  title: "Invoke-RestMethod",
@@ -1999,7 +2056,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
1999
2056
  extname: ".ps1"
2000
2057
  },
2001
2058
  convert: xa("Invoke-RestMethod")
2002
- }, Oi = {
2059
+ }, Pi = {
2003
2060
  info: {
2004
2061
  key: "webrequest",
2005
2062
  title: "Invoke-WebRequest",
@@ -2008,15 +2065,15 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
2008
2065
  extname: ".ps1"
2009
2066
  },
2010
2067
  convert: xa("Invoke-WebRequest")
2011
- }, Ti = {
2068
+ }, Ci = {
2012
2069
  info: {
2013
2070
  key: "powershell",
2014
2071
  title: "Powershell",
2015
2072
  default: "webrequest"
2016
2073
  },
2017
2074
  clientsById: {
2018
- webrequest: Oi,
2019
- restmethod: Si
2075
+ webrequest: Pi,
2076
+ restmethod: Ti
2020
2077
  }
2021
2078
  };
2022
2079
  function Xr(e, n, t, a, c) {
@@ -2048,7 +2105,7 @@ var Ae = (e, n, t) => {
2048
2105
  default:
2049
2106
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
2050
2107
  }
2051
- }, Pi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ci = {
2108
+ }, qi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ei = {
2052
2109
  info: {
2053
2110
  key: "requests",
2054
2111
  title: "Requests",
@@ -2111,10 +2168,10 @@ var Ae = (e, n, t) => {
2111
2168
  r(v !== u ? `"${S}": "${le(d[S])}",` : `"${S}": "${le(d[S])}"`, 1), v += 1;
2112
2169
  }), r("}"), o();
2113
2170
  }
2114
- let m = Pi.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
2171
+ let m = qi.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
2115
2172
  return x && ($ ? m += ", json=payload" : m += ", data=payload"), h && (m += ", files=files"), u > 0 && (m += ", headers=headers"), m += ")", r(m), o(), r("print(response.text)"), i();
2116
2173
  }
2117
- }, qi = {
2174
+ }, Ri = {
2118
2175
  info: {
2119
2176
  key: "python",
2120
2177
  title: "Python",
@@ -2122,9 +2179,9 @@ var Ae = (e, n, t) => {
2122
2179
  cli: "python3 %s"
2123
2180
  },
2124
2181
  clientsById: {
2125
- requests: Ci
2182
+ requests: Ei
2126
2183
  }
2127
- }, Ei = {
2184
+ }, ki = {
2128
2185
  info: {
2129
2186
  key: "httr",
2130
2187
  title: "httr",
@@ -2163,16 +2220,16 @@ var Ae = (e, n, t) => {
2163
2220
  const T = [v, u, $, x].filter((p) => !!p).join(", ");
2164
2221
  return T && (S += `, ${T}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", r(S), o(), r('content(response, "text")'), i();
2165
2222
  }
2166
- }, Ri = {
2223
+ }, Ni = {
2167
2224
  info: {
2168
2225
  key: "r",
2169
2226
  title: "R",
2170
2227
  default: "httr"
2171
2228
  },
2172
2229
  clientsById: {
2173
- httr: Ei
2230
+ httr: ki
2174
2231
  }
2175
- }, ki = {
2232
+ }, Ai = {
2176
2233
  info: {
2177
2234
  key: "native",
2178
2235
  title: "net::http",
@@ -2203,16 +2260,16 @@ var Ae = (e, n, t) => {
2203
2260
  s(`request["${f}"] = '${He(c[f])}'`);
2204
2261
  }), a.text && s(`request.body = ${JSON.stringify(a.text)}`), r(), s("response = http.request(request)"), s("puts response.read_body"), o();
2205
2262
  }
2206
- }, Ni = {
2263
+ }, Ii = {
2207
2264
  info: {
2208
2265
  key: "ruby",
2209
2266
  title: "Ruby",
2210
2267
  default: "native"
2211
2268
  },
2212
2269
  clientsById: {
2213
- native: ki
2270
+ native: Ai
2214
2271
  }
2215
- }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Ai = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Ii = {
2272
+ }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Ui = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Li = {
2216
2273
  "http1.0": "0",
2217
2274
  "url ": "",
2218
2275
  cookie: "b",
@@ -2222,13 +2279,13 @@ var Ae = (e, n, t) => {
2222
2279
  header: "H",
2223
2280
  insecure: "k",
2224
2281
  request: "X"
2225
- }, Ui = (e) => (n) => {
2282
+ }, Fi = (e) => (n) => {
2226
2283
  if (e) {
2227
- const t = Ii[n];
2284
+ const t = Li[n];
2228
2285
  return t ? `-${t}` : "";
2229
2286
  }
2230
2287
  return `--${n}`;
2231
- }, Li = {
2288
+ }, _i = {
2232
2289
  info: {
2233
2290
  key: "curl",
2234
2291
  title: "cURL",
@@ -2241,7 +2298,7 @@ var Ae = (e, n, t) => {
2241
2298
  ...typeof o == "string" ? { indent: o } : {},
2242
2299
  join: o !== !1 ? ` \\
2243
2300
  ${o}` : " "
2244
- }), x = Ui(i);
2301
+ }), x = Fi(i);
2245
2302
  let $ = ce(e);
2246
2303
  if (f(`curl ${x("request")} ${n}`), d && ($ = unescape($), f(x("globoff"))), f(`${x("url ")}${$}`), t === "HTTP/1.0" && f(x("http1.0")), ve(c, "accept-encoding") && f("--compressed"), s.mimeType === "multipart/form-data") {
2247
2304
  const u = fe(a, "content-type");
@@ -2273,7 +2330,7 @@ ${o}` : " "
2273
2330
  if (!s.text)
2274
2331
  break;
2275
2332
  let u = !1;
2276
- if (Uo(s.mimeType) && s.text.length > 20)
2333
+ if (Fo(s.mimeType) && s.text.length > 20)
2277
2334
  try {
2278
2335
  const m = JSON.parse(s.text);
2279
2336
  u = !0, s.text.indexOf("'") > 0 ? f(
@@ -2295,7 +2352,7 @@ ${JSON.stringify(m, null, y)}
2295
2352
  }
2296
2353
  return h();
2297
2354
  }
2298
- }, Fi = {
2355
+ }, Bi = {
2299
2356
  info: {
2300
2357
  key: "httpie",
2301
2358
  title: "HTTPie",
@@ -2344,7 +2401,7 @@ ${o.indent}` : " "
2344
2401
  }
2345
2402
  return l();
2346
2403
  }
2347
- }, _i = {
2404
+ }, Hi = {
2348
2405
  info: {
2349
2406
  key: "wget",
2350
2407
  title: "Wget",
@@ -2366,9 +2423,9 @@ ${s.indent}` : " "
2366
2423
  return s.verbose ? r(`wget ${s.short ? "-v" : "--verbose"}`) : r(`wget ${s.short ? "-q" : "--quiet"}`), r(`--method ${ce(e)}`), Object.keys(t).forEach((i) => {
2367
2424
  const l = `${i}: ${t[i]}`;
2368
2425
  r(`--header ${ce(l)}`);
2369
- }), n.text && r(`--body-data ${Ai(ce(n.text))}`), r(s.short ? "-O" : "--output-document"), r(`- ${ce(a)}`), o();
2426
+ }), n.text && r(`--body-data ${Ui(ce(n.text))}`), r(s.short ? "-O" : "--output-document"), r(`- ${ce(a)}`), o();
2370
2427
  }
2371
- }, Bi = {
2428
+ }, Mi = {
2372
2429
  info: {
2373
2430
  key: "shell",
2374
2431
  title: "Shell",
@@ -2376,9 +2433,9 @@ ${s.indent}` : " "
2376
2433
  cli: "%s"
2377
2434
  },
2378
2435
  clientsById: {
2379
- curl: Li,
2380
- httpie: Fi,
2381
- wget: _i
2436
+ curl: _i,
2437
+ httpie: Bi,
2438
+ wget: Hi
2382
2439
  }
2383
2440
  }, Zr = (e, n) => n.repeat(e), en = (e, n, t, a) => {
2384
2441
  const c = Zr(a, t), s = Zr(a - 1, t), r = n ? `,
@@ -2413,7 +2470,7 @@ ${s}]` : `[${e.join(r)}]`;
2413
2470
  default:
2414
2471
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
2415
2472
  }
2416
- }, Hi = {
2473
+ }, zi = {
2417
2474
  info: {
2418
2475
  key: "urlsession",
2419
2476
  title: "URLSession",
@@ -2463,39 +2520,39 @@ ${s}]` : `[${e.join(r)}]`;
2463
2520
  }
2464
2521
  }), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${Ze(e, r)}`), d && o("request.httpBody = postData"), i(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), l();
2465
2522
  }
2466
- }, Mi = {
2523
+ }, Wi = {
2467
2524
  info: {
2468
2525
  key: "swift",
2469
2526
  title: "Swift",
2470
2527
  default: "urlsession"
2471
2528
  },
2472
2529
  clientsById: {
2473
- urlsession: Hi
2530
+ urlsession: zi
2474
2531
  }
2475
- }, zi = {
2476
- c: Io,
2477
- clojure: _o,
2478
- csharp: Wo,
2479
- go: Vo,
2480
- http: Do,
2481
- java: Zo,
2482
- javascript: ai,
2483
- json: ii,
2484
- kotlin: li,
2485
- node: hi,
2486
- objc: mi,
2487
- ocaml: vi,
2488
- php: ji,
2489
- powershell: Ti,
2490
- python: qi,
2491
- r: Ri,
2492
- ruby: Ni,
2493
- shell: Bi,
2494
- swift: Mi
2532
+ }, Ji = {
2533
+ c: Lo,
2534
+ clojure: Ho,
2535
+ csharp: Vo,
2536
+ go: Do,
2537
+ http: Ko,
2538
+ java: ti,
2539
+ javascript: ii,
2540
+ json: li,
2541
+ kotlin: ui,
2542
+ node: mi,
2543
+ objc: vi,
2544
+ ocaml: xi,
2545
+ php: Oi,
2546
+ powershell: Ci,
2547
+ python: Ri,
2548
+ r: Ni,
2549
+ ruby: Ii,
2550
+ shell: Mi,
2551
+ swift: Wi
2495
2552
  }, Ce = {}, Le = { exports: {} };
2496
2553
  /*! https://mths.be/punycode v1.4.1 by @mathias */
2497
- var Wi = Le.exports, rn;
2498
- function Ji() {
2554
+ var Vi = Le.exports, rn;
2555
+ function Gi() {
2499
2556
  return rn || (rn = 1, function(e, n) {
2500
2557
  (function(t) {
2501
2558
  var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof Ye == "object" && Ye;
@@ -2612,7 +2669,7 @@ function Ji() {
2612
2669
  r.hasOwnProperty(g) && (a[g] = r[g]);
2613
2670
  else
2614
2671
  t.punycode = r;
2615
- })(Wi);
2672
+ })(Vi);
2616
2673
  }(Le, Le.exports)), Le.exports;
2617
2674
  }
2618
2675
  var vt, nn;
@@ -2620,19 +2677,19 @@ function $a() {
2620
2677
  return nn || (nn = 1, vt = Object), vt;
2621
2678
  }
2622
2679
  var bt, an;
2623
- function Vi() {
2680
+ function Di() {
2624
2681
  return an || (an = 1, bt = Error), bt;
2625
2682
  }
2626
2683
  var xt, on;
2627
- function Gi() {
2684
+ function Qi() {
2628
2685
  return on || (on = 1, xt = EvalError), xt;
2629
2686
  }
2630
2687
  var $t, sn;
2631
- function Di() {
2688
+ function Ki() {
2632
2689
  return sn || (sn = 1, $t = RangeError), $t;
2633
2690
  }
2634
2691
  var wt, ln;
2635
- function Qi() {
2692
+ function Yi() {
2636
2693
  return ln || (ln = 1, wt = ReferenceError), wt;
2637
2694
  }
2638
2695
  var jt, cn;
@@ -2644,57 +2701,57 @@ function ze() {
2644
2701
  return un || (un = 1, St = TypeError), St;
2645
2702
  }
2646
2703
  var Ot, fn;
2647
- function Ki() {
2704
+ function Xi() {
2648
2705
  return fn || (fn = 1, Ot = URIError), Ot;
2649
2706
  }
2650
2707
  var Tt, pn;
2651
- function Yi() {
2708
+ function Zi() {
2652
2709
  return pn || (pn = 1, Tt = Math.abs), Tt;
2653
2710
  }
2654
2711
  var Pt, dn;
2655
- function Xi() {
2712
+ function es() {
2656
2713
  return dn || (dn = 1, Pt = Math.floor), Pt;
2657
2714
  }
2658
2715
  var Ct, hn;
2659
- function Zi() {
2716
+ function ts() {
2660
2717
  return hn || (hn = 1, Ct = Math.max), Ct;
2661
2718
  }
2662
2719
  var qt, yn;
2663
- function es() {
2720
+ function rs() {
2664
2721
  return yn || (yn = 1, qt = Math.min), qt;
2665
2722
  }
2666
2723
  var Et, mn;
2667
- function ts() {
2724
+ function ns() {
2668
2725
  return mn || (mn = 1, Et = Math.pow), Et;
2669
2726
  }
2670
2727
  var Rt, gn;
2671
- function rs() {
2728
+ function as() {
2672
2729
  return gn || (gn = 1, Rt = Math.round), Rt;
2673
2730
  }
2674
2731
  var kt, vn;
2675
- function ns() {
2732
+ function os() {
2676
2733
  return vn || (vn = 1, kt = Number.isNaN || function(n) {
2677
2734
  return n !== n;
2678
2735
  }), kt;
2679
2736
  }
2680
2737
  var Nt, bn;
2681
- function as() {
2738
+ function is() {
2682
2739
  if (bn) return Nt;
2683
2740
  bn = 1;
2684
- var e = /* @__PURE__ */ ns();
2741
+ var e = /* @__PURE__ */ os();
2685
2742
  return Nt = function(t) {
2686
2743
  return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
2687
2744
  }, Nt;
2688
2745
  }
2689
2746
  var At, xn;
2690
- function os() {
2747
+ function ss() {
2691
2748
  return xn || (xn = 1, At = Object.getOwnPropertyDescriptor), At;
2692
2749
  }
2693
2750
  var It, $n;
2694
2751
  function rt() {
2695
2752
  if ($n) return It;
2696
2753
  $n = 1;
2697
- var e = /* @__PURE__ */ os();
2754
+ var e = /* @__PURE__ */ ss();
2698
2755
  if (e)
2699
2756
  try {
2700
2757
  e([], "length");
@@ -2717,7 +2774,7 @@ function nt() {
2717
2774
  return Ut = e, Ut;
2718
2775
  }
2719
2776
  var Lt, jn;
2720
- function is() {
2777
+ function ls() {
2721
2778
  return jn || (jn = 1, Lt = function() {
2722
2779
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2723
2780
  return !1;
@@ -2747,10 +2804,10 @@ function is() {
2747
2804
  }), Lt;
2748
2805
  }
2749
2806
  var Ft, Sn;
2750
- function ss() {
2807
+ function cs() {
2751
2808
  if (Sn) return Ft;
2752
2809
  Sn = 1;
2753
- var e = typeof Symbol < "u" && Symbol, n = is();
2810
+ var e = typeof Symbol < "u" && Symbol, n = ls();
2754
2811
  return Ft = function() {
2755
2812
  return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
2756
2813
  }, Ft;
@@ -2767,7 +2824,7 @@ function Sa() {
2767
2824
  return Bt = e.getPrototypeOf || null, Bt;
2768
2825
  }
2769
2826
  var Ht, Pn;
2770
- function ls() {
2827
+ function us() {
2771
2828
  if (Pn) return Ht;
2772
2829
  Pn = 1;
2773
2830
  var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(i, l) {
@@ -2815,7 +2872,7 @@ var Mt, Cn;
2815
2872
  function We() {
2816
2873
  if (Cn) return Mt;
2817
2874
  Cn = 1;
2818
- var e = ls();
2875
+ var e = us();
2819
2876
  return Mt = Function.prototype.bind || e, Mt;
2820
2877
  }
2821
2878
  var zt, qn;
@@ -2827,14 +2884,14 @@ function Sr() {
2827
2884
  return En || (En = 1, Wt = Function.prototype.apply), Wt;
2828
2885
  }
2829
2886
  var Jt, Rn;
2830
- function cs() {
2887
+ function fs() {
2831
2888
  return Rn || (Rn = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
2832
2889
  }
2833
2890
  var Vt, kn;
2834
2891
  function Oa() {
2835
2892
  if (kn) return Vt;
2836
2893
  kn = 1;
2837
- var e = We(), n = Sr(), t = jr(), a = cs();
2894
+ var e = We(), n = Sr(), t = jr(), a = fs();
2838
2895
  return Vt = a || e.call(t, n), Vt;
2839
2896
  }
2840
2897
  var Gt, Nn;
@@ -2849,7 +2906,7 @@ function Ta() {
2849
2906
  }, Gt;
2850
2907
  }
2851
2908
  var Dt, An;
2852
- function us() {
2909
+ function ps() {
2853
2910
  if (An) return Dt;
2854
2911
  An = 1;
2855
2912
  var e = Ta(), n = /* @__PURE__ */ rt(), t;
@@ -2873,10 +2930,10 @@ function us() {
2873
2930
  ) : !1, Dt;
2874
2931
  }
2875
2932
  var Qt, In;
2876
- function fs() {
2933
+ function ds() {
2877
2934
  if (In) return Qt;
2878
2935
  In = 1;
2879
- var e = ja(), n = Sa(), t = /* @__PURE__ */ us();
2936
+ var e = ja(), n = Sa(), t = /* @__PURE__ */ ps();
2880
2937
  return Qt = e ? function(c) {
2881
2938
  return e(c);
2882
2939
  } : n ? function(c) {
@@ -2888,7 +2945,7 @@ function fs() {
2888
2945
  } : null, Qt;
2889
2946
  }
2890
2947
  var Kt, Un;
2891
- function ps() {
2948
+ function hs() {
2892
2949
  if (Un) return Kt;
2893
2950
  Un = 1;
2894
2951
  var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = We();
@@ -2898,7 +2955,7 @@ var Yt, Ln;
2898
2955
  function Or() {
2899
2956
  if (Ln) return Yt;
2900
2957
  Ln = 1;
2901
- var e, n = /* @__PURE__ */ $a(), t = /* @__PURE__ */ Vi(), a = /* @__PURE__ */ Gi(), c = /* @__PURE__ */ Di(), s = /* @__PURE__ */ Qi(), r = /* @__PURE__ */ wa(), o = /* @__PURE__ */ ze(), i = /* @__PURE__ */ Ki(), l = /* @__PURE__ */ Yi(), d = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), f = /* @__PURE__ */ es(), h = /* @__PURE__ */ ts(), x = /* @__PURE__ */ rs(), $ = /* @__PURE__ */ as(), u = Function, m = function(V) {
2958
+ var e, n = /* @__PURE__ */ $a(), t = /* @__PURE__ */ Di(), a = /* @__PURE__ */ Qi(), c = /* @__PURE__ */ Ki(), s = /* @__PURE__ */ Yi(), r = /* @__PURE__ */ wa(), o = /* @__PURE__ */ ze(), i = /* @__PURE__ */ Xi(), l = /* @__PURE__ */ Zi(), d = /* @__PURE__ */ es(), y = /* @__PURE__ */ ts(), f = /* @__PURE__ */ rs(), h = /* @__PURE__ */ ns(), x = /* @__PURE__ */ as(), $ = /* @__PURE__ */ is(), u = Function, m = function(V) {
2902
2959
  try {
2903
2960
  return u('"use strict"; return (' + V + ").constructor;")();
2904
2961
  } catch {
@@ -2915,7 +2972,7 @@ function Or() {
2915
2972
  return T;
2916
2973
  }
2917
2974
  }
2918
- }() : T, O = ss()(), g = fs(), k = Sa(), R = ja(), q = Sr(), B = jr(), P = {}, oe = typeof Uint8Array > "u" || !g ? e : g(Uint8Array), H = {
2975
+ }() : T, O = cs()(), g = ds(), k = Sa(), R = ja(), q = Sr(), B = jr(), P = {}, oe = typeof Uint8Array > "u" || !g ? e : g(Uint8Array), H = {
2919
2976
  __proto__: null,
2920
2977
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
2921
2978
  "%Array%": Array,
@@ -3075,7 +3132,7 @@ function Or() {
3075
3132
  "%URIErrorPrototype%": ["URIError", "prototype"],
3076
3133
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3077
3134
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3078
- }, A = We(), re = /* @__PURE__ */ ps(), E = A.call(B, Array.prototype.concat), N = A.call(q, Array.prototype.splice), L = A.call(B, String.prototype.replace), C = A.call(B, String.prototype.slice), U = A.call(B, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
3135
+ }, A = We(), re = /* @__PURE__ */ hs(), E = A.call(B, Array.prototype.concat), N = A.call(q, Array.prototype.splice), L = A.call(B, String.prototype.replace), C = A.call(B, String.prototype.slice), U = A.call(B, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
3079
3136
  var F = C(I, 0, 1), _ = C(I, -1);
3080
3137
  if (F === "%" && _ !== "%")
3081
3138
  throw new r("invalid intrinsic syntax, expected closing `%`");
@@ -3132,7 +3189,7 @@ function Or() {
3132
3189
  }, Yt;
3133
3190
  }
3134
3191
  var Xt = { exports: {} }, Zt, Fn;
3135
- function ds() {
3192
+ function ys() {
3136
3193
  if (Fn) return Zt;
3137
3194
  Fn = 1;
3138
3195
  var e = /* @__PURE__ */ nt(), n = /* @__PURE__ */ wa(), t = /* @__PURE__ */ ze(), a = /* @__PURE__ */ rt();
@@ -3164,7 +3221,7 @@ function ds() {
3164
3221
  }, Zt;
3165
3222
  }
3166
3223
  var er, _n;
3167
- function hs() {
3224
+ function ms() {
3168
3225
  if (_n) return er;
3169
3226
  _n = 1;
3170
3227
  var e = /* @__PURE__ */ nt(), n = function() {
@@ -3181,10 +3238,10 @@ function hs() {
3181
3238
  }, er = n, er;
3182
3239
  }
3183
3240
  var tr, Bn;
3184
- function ys() {
3241
+ function gs() {
3185
3242
  if (Bn) return tr;
3186
3243
  Bn = 1;
3187
- var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ds(), t = /* @__PURE__ */ hs()(), a = /* @__PURE__ */ rt(), c = /* @__PURE__ */ ze(), s = e("%Math.floor%");
3244
+ var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ys(), t = /* @__PURE__ */ ms()(), a = /* @__PURE__ */ rt(), c = /* @__PURE__ */ ze(), s = e("%Math.floor%");
3188
3245
  return tr = function(o, i) {
3189
3246
  if (typeof o != "function")
3190
3247
  throw new c("`fn` is not a function");
@@ -3211,7 +3268,7 @@ function ys() {
3211
3268
  }, tr;
3212
3269
  }
3213
3270
  var rr, Hn;
3214
- function ms() {
3271
+ function vs() {
3215
3272
  if (Hn) return rr;
3216
3273
  Hn = 1;
3217
3274
  var e = We(), n = Sr(), t = Oa();
@@ -3220,9 +3277,9 @@ function ms() {
3220
3277
  }, rr;
3221
3278
  }
3222
3279
  var Mn;
3223
- function gs() {
3280
+ function bs() {
3224
3281
  return Mn || (Mn = 1, function(e) {
3225
- var n = /* @__PURE__ */ ys(), t = /* @__PURE__ */ nt(), a = Ta(), c = ms();
3282
+ var n = /* @__PURE__ */ gs(), t = /* @__PURE__ */ nt(), a = Ta(), c = vs();
3226
3283
  e.exports = function(r) {
3227
3284
  var o = a(arguments), i = r.length - (arguments.length - 1);
3228
3285
  return n(
@@ -3234,21 +3291,21 @@ function gs() {
3234
3291
  }(Xt)), Xt.exports;
3235
3292
  }
3236
3293
  var nr, zn;
3237
- function vs() {
3294
+ function xs() {
3238
3295
  if (zn) return nr;
3239
3296
  zn = 1;
3240
- var e = /* @__PURE__ */ Or(), n = gs(), t = n(e("String.prototype.indexOf"));
3297
+ var e = /* @__PURE__ */ Or(), n = bs(), t = n(e("String.prototype.indexOf"));
3241
3298
  return nr = function(c, s) {
3242
3299
  var r = e(c, !!s);
3243
3300
  return typeof r == "function" && t(c, ".prototype.") > -1 ? n(r) : r;
3244
3301
  }, nr;
3245
3302
  }
3246
- const bs = {}, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3303
+ const $s = {}, ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3247
3304
  __proto__: null,
3248
- default: bs
3249
- }, Symbol.toStringTag, { value: "Module" })), $s = /* @__PURE__ */ ho(xs);
3305
+ default: $s
3306
+ }, Symbol.toStringTag, { value: "Module" })), js = /* @__PURE__ */ ho(ws);
3250
3307
  var ar, Wn;
3251
- function ws() {
3308
+ function Ss() {
3252
3309
  if (Wn) return ar;
3253
3310
  Wn = 1;
3254
3311
  var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype, h = f ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, u = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, g = Array.prototype.concat, k = Array.prototype.join, R = Array.prototype.slice, q = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(w) {
@@ -3267,7 +3324,7 @@ function ws() {
3267
3324
  }
3268
3325
  return S.call(j, X, "$&_");
3269
3326
  }
3270
- var re = $s, E = re.custom, N = F(E) ? E : null;
3327
+ var re = js, E = re.custom, N = F(E) ? E : null;
3271
3328
  ar = function w(j, X, ee, ie) {
3272
3329
  var M = X || {};
3273
3330
  if (W(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
@@ -3606,10 +3663,10 @@ function ws() {
3606
3663
  return ar;
3607
3664
  }
3608
3665
  var or, Jn;
3609
- function js() {
3666
+ function Os() {
3610
3667
  if (Jn) return or;
3611
3668
  Jn = 1;
3612
- var e = /* @__PURE__ */ Or(), n = vs(), t = /* @__PURE__ */ ws(), a = /* @__PURE__ */ ze(), c = e("%WeakMap%", !0), s = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), d = n("Map.prototype.set", !0), y = n("Map.prototype.has", !0), f = function(u, m) {
3669
+ var e = /* @__PURE__ */ Or(), n = xs(), t = /* @__PURE__ */ Ss(), a = /* @__PURE__ */ ze(), c = e("%WeakMap%", !0), s = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), d = n("Map.prototype.set", !0), y = n("Map.prototype.has", !0), f = function(u, m) {
3613
3670
  for (var v = u, S; (S = v.next) !== null; v = S)
3614
3671
  if (S.key === m)
3615
3672
  return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
@@ -3811,10 +3868,10 @@ function Pa() {
3811
3868
  }, sr;
3812
3869
  }
3813
3870
  var lr, Dn;
3814
- function Ss() {
3871
+ function Ts() {
3815
3872
  if (Dn) return lr;
3816
3873
  Dn = 1;
3817
- var e = js(), n = /* @__PURE__ */ Pa(), t = /* @__PURE__ */ Tr(), a = Object.prototype.hasOwnProperty, c = {
3874
+ var e = Os(), n = /* @__PURE__ */ Pa(), t = /* @__PURE__ */ Tr(), a = Object.prototype.hasOwnProperty, c = {
3818
3875
  brackets: function(u) {
3819
3876
  return u + "[]";
3820
3877
  },
@@ -4000,7 +4057,7 @@ function Ss() {
4000
4057
  }, lr;
4001
4058
  }
4002
4059
  var cr, Qn;
4003
- function Os() {
4060
+ function Ps() {
4004
4061
  if (Qn) return cr;
4005
4062
  Qn = 1;
4006
4063
  var e = /* @__PURE__ */ Pa(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
@@ -4137,7 +4194,7 @@ var ur, Kn;
4137
4194
  function Ca() {
4138
4195
  if (Kn) return ur;
4139
4196
  Kn = 1;
4140
- var e = /* @__PURE__ */ Ss(), n = /* @__PURE__ */ Os(), t = /* @__PURE__ */ Tr();
4197
+ var e = /* @__PURE__ */ Ts(), n = /* @__PURE__ */ Ps(), t = /* @__PURE__ */ Tr();
4141
4198
  return ur = {
4142
4199
  formats: t,
4143
4200
  parse: n,
@@ -4145,10 +4202,10 @@ function Ca() {
4145
4202
  }, ur;
4146
4203
  }
4147
4204
  var Yn;
4148
- function Ts() {
4205
+ function Cs() {
4149
4206
  if (Yn) return Ce;
4150
4207
  Yn = 1;
4151
- var e = Ji();
4208
+ var e = Gi();
4152
4209
  function n() {
4153
4210
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
4154
4211
  }
@@ -4367,12 +4424,12 @@ function Ts() {
4367
4424
  O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
4368
4425
  }, Ce.parse = m, Ce.resolve = S, Ce.resolveObject = T, Ce.format = v, Ce.Url = n, Ce;
4369
4426
  }
4370
- var fr = Ts(), pr = /* @__PURE__ */ Ca(), Ps = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Cs = class {
4427
+ var fr = Cs(), pr = /* @__PURE__ */ Ca(), qs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Es = class {
4371
4428
  constructor(e, n = {}) {
4372
4429
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
4373
4430
  harIsAlreadyEncoded: !1,
4374
4431
  ...n
4375
- }, this.requests = [], Ps(e) ? this.entries = e.log.entries : this.entries = [
4432
+ }, this.requests = [], qs(e) ? this.entries = e.log.entries : this.entries = [
4376
4433
  {
4377
4434
  request: e
4378
4435
  }
@@ -4495,21 +4552,20 @@ var fr = Ts(), pr = /* @__PURE__ */ Ca(), Ps = (e) => typeof e == "object" && "l
4495
4552
  }
4496
4553
  convert(e, n, t) {
4497
4554
  this.initCalled || this.init(), !t && n && (t = n);
4498
- const a = zi[e];
4555
+ const a = Ji[e];
4499
4556
  if (!a)
4500
4557
  return !1;
4501
4558
  const { convert: c } = a.clientsById[n || a.info.default];
4502
4559
  return this.requests.map((r) => c(r, t));
4503
4560
  }
4504
4561
  };
4505
- const qs = ({
4562
+ const Rs = ({
4506
4563
  operation: e,
4507
4564
  selectedServer: n,
4508
4565
  exampleBody: t
4509
- }) => new Cs({
4566
+ }) => new Es({
4510
4567
  method: e.method.toUpperCase(),
4511
4568
  url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
4512
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
4513
4569
  postData: t,
4514
4570
  headers: [
4515
4571
  ...t.text ? [{ name: "Content-Type", value: t.mimeType }] : [],
@@ -4526,7 +4582,7 @@ const qs = ({
4526
4582
  cookies: [],
4527
4583
  headersSize: 0,
4528
4584
  bodySize: 0
4529
- }), Es = (e, n) => {
4585
+ }), ks = (e, n) => {
4530
4586
  let t;
4531
4587
  switch (n) {
4532
4588
  case "shell":
@@ -4575,7 +4631,7 @@ const qs = ({
4575
4631
  purple: "text-purple-600",
4576
4632
  indigo: "text-indigo-600",
4577
4633
  gray: "text-gray-600"
4578
- }, Rs = {
4634
+ }, Ns = {
4579
4635
  get: be.green,
4580
4636
  post: be.blue,
4581
4637
  put: be.yellow,
@@ -4584,7 +4640,7 @@ const qs = ({
4584
4640
  options: be.indigo,
4585
4641
  head: be.gray,
4586
4642
  trace: be.gray
4587
- }, qa = (e) => Rs[e.toLocaleLowerCase()] ?? be.gray, ks = Me(
4643
+ }, qa = (e) => Ns[e.toLocaleLowerCase()] ?? be.gray, As = Me(
4588
4644
  /* GraphQL */
4589
4645
  `
4590
4646
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -4596,7 +4652,7 @@ const qs = ({
4596
4652
  }
4597
4653
  }
4598
4654
  `
4599
- ), Ns = [
4655
+ ), Is = [
4600
4656
  { value: "shell", label: "cURL" },
4601
4657
  { value: "js", label: "JavaScript" },
4602
4658
  { value: "python", label: "Python" },
@@ -4608,12 +4664,12 @@ const qs = ({
4608
4664
  { value: "php", label: "PHP" },
4609
4665
  { value: "ruby", label: "Ruby" },
4610
4666
  { value: "swift", label: "Swift" }
4611
- ], As = ({
4667
+ ], Us = ({
4612
4668
  operation: e,
4613
4669
  selectedResponse: n,
4614
4670
  onSelectResponse: t
4615
4671
  }) => {
4616
- const { input: a, type: c, options: s } = et(), r = co(), o = Ke(ks, { input: a, type: c }), i = gr(o), l = lo(), d = qa(e.method), [y, f] = Ja(), [, h] = ca(), [x, $] = ge(), u = y.get("lang") ?? s?.examplesLanguage ?? "shell", m = e.requestBody?.content, v = m && s?.transformExamples ? s.transformExamples({
4672
+ const { input: a, type: c, options: s } = et(), r = fo(), o = Ke(As, { input: a, type: c }), i = gr(o), l = uo(), d = qa(e.method), [y, f] = Ja(), [, h] = ca(), [x, $] = ge(), u = y.get("lang") ?? s?.examplesLanguage ?? "shell", m = e.requestBody?.content, v = m && s?.transformExamples ? s.transformExamples({
4617
4673
  auth: r,
4618
4674
  type: "request",
4619
4675
  operation: e,
@@ -4636,7 +4692,7 @@ const qs = ({
4636
4692
  ), { selectedServer: T } = vr(i.data.schema.servers), p = fa(() => {
4637
4693
  const R = x ?? (v?.[0]?.schema ? we(
4638
4694
  v[0].schema
4639
- ) : void 0), q = qs({
4695
+ ) : void 0), q = Rs({
4640
4696
  operation: e,
4641
4697
  selectedServer: T,
4642
4698
  exampleBody: R ? {
@@ -4644,14 +4700,14 @@ const qs = ({
4644
4700
  text: JSON.stringify(R, null, 2)
4645
4701
  } : { mimeType: "application/json" }
4646
4702
  });
4647
- return Es(q, u);
4703
+ return ks(q, u);
4648
4704
  }, [
4649
4705
  x,
4650
4706
  v,
4651
4707
  e,
4652
4708
  T,
4653
4709
  u
4654
- ]), [O, g] = wo({ rootMargin: "200px 0px 200px 0px" }), k = g && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !s?.disablePlayground);
4710
+ ]), [O, g] = So({ rootMargin: "200px 0px 200px 0px" }), k = g && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !s?.disablePlayground);
4655
4711
  return /* @__PURE__ */ b.jsxs(
4656
4712
  "aside",
4657
4713
  {
@@ -4667,7 +4723,7 @@ const qs = ({
4667
4723
  S
4668
4724
  ] }),
4669
4725
  k && /* @__PURE__ */ b.jsx(
4670
- So,
4726
+ To,
4671
4727
  {
4672
4728
  servers: i.data.schema.servers.map((R) => R.url),
4673
4729
  operation: e,
@@ -4698,21 +4754,21 @@ const qs = ({
4698
4754
  f((q) => (q.set("lang", R.target.value), q));
4699
4755
  });
4700
4756
  },
4701
- options: Ns
4757
+ options: Is
4702
4758
  }
4703
4759
  )
4704
4760
  ] })
4705
4761
  ] })
4706
4762
  ] }),
4707
4763
  g && v && /* @__PURE__ */ b.jsx(
4708
- Po,
4764
+ qo,
4709
4765
  {
4710
4766
  content: v,
4711
4767
  onExampleChange: $
4712
4768
  }
4713
4769
  ),
4714
4770
  g && e.responses.length > 0 && /* @__PURE__ */ b.jsx(
4715
- Co,
4771
+ Eo,
4716
4772
  {
4717
4773
  selectedResponse: n,
4718
4774
  onSelectResponse: t,
@@ -4731,65 +4787,6 @@ const qs = ({
4731
4787
  ]
4732
4788
  }
4733
4789
  );
4734
- }, Is = pe, Us = ({
4735
- responses: e,
4736
- selectedResponse: n,
4737
- onSelectResponse: t
4738
- }) => {
4739
- const [a, c] = ge(
4740
- e[0]?.content?.[0]?.mediaType ?? ""
4741
- ), s = e.find((o) => o.statusCode === n) ?? e[0], r = /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col bg-muted text-muted-foreground", children: [
4742
- /* @__PURE__ */ b.jsxs("div", { className: "flex flex-row items-center gap-2 justify-between px-4 py-2", children: [
4743
- /* @__PURE__ */ b.jsx(je.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((o) => /* @__PURE__ */ b.jsx(
4744
- je.Trigger,
4745
- {
4746
- value: o.statusCode,
4747
- className: Is(
4748
- "py-1 -mx-2 px-2 rounded-md",
4749
- "data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
4750
- "data-[state=active]:font-semibold data-[state=active]:text-foreground"
4751
- ),
4752
- children: o.statusCode
4753
- },
4754
- o.statusCode
4755
- )) }),
4756
- s?.content && s.content.length > 1 && /* @__PURE__ */ b.jsxs(
4757
- na,
4758
- {
4759
- value: a,
4760
- onValueChange: c,
4761
- children: [
4762
- /* @__PURE__ */ b.jsx(aa, { className: "h-8 mt-0 max-w-48 text-xs truncate", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select a type" }) }),
4763
- /* @__PURE__ */ b.jsx(ia, { children: s.content.map((o) => /* @__PURE__ */ b.jsx(sa, { value: o.mediaType, children: o.mediaType }, o.mediaType)) })
4764
- ]
4765
- }
4766
- )
4767
- ] }),
4768
- s?.description && /* @__PURE__ */ b.jsx(
4769
- fo,
4770
- {
4771
- className: "text-sm border-t px-4 py-2 text-muted-foreground",
4772
- content: s.description
4773
- }
4774
- )
4775
- ] });
4776
- return /* @__PURE__ */ b.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ b.jsx(
4777
- je.Root,
4778
- {
4779
- value: n,
4780
- onValueChange: (o) => {
4781
- t?.(o);
4782
- const i = e.find((l) => l.statusCode === o);
4783
- c(i?.content?.[0]?.mediaType ?? "");
4784
- },
4785
- children: e.map((o) => {
4786
- const i = o.content?.find(
4787
- (l) => l.mediaType === a
4788
- );
4789
- return /* @__PURE__ */ b.jsx(je.Content, { value: o.statusCode, children: /* @__PURE__ */ b.jsx(xr, { schema: i?.schema, cardHeader: r }) }, o.statusCode);
4790
- })
4791
- }
4792
- ) });
4793
4790
  }, Ls = ["path", "query", "header", "cookie"], Fs = ({
4794
4791
  operationFragment: e,
4795
4792
  serverUrl: n
@@ -4840,9 +4837,9 @@ const qs = ({
4840
4837
  content: t.description
4841
4838
  }
4842
4839
  ),
4843
- t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children: Ls.flatMap(
4840
+ t.parameters && t.parameters.length > 0 && Ls.flatMap(
4844
4841
  (i) => a[i]?.length ? /* @__PURE__ */ b.jsx(
4845
- $o,
4842
+ jo,
4846
4843
  {
4847
4844
  summary: t.summary ?? void 0,
4848
4845
  id: t.slug,
@@ -4851,7 +4848,7 @@ const qs = ({
4851
4848
  },
4852
4849
  i
4853
4850
  ) : []
4854
- ) }),
4851
+ ),
4855
4852
  Br(t.requestBody?.content?.at(0)?.schema, (i) => /* @__PURE__ */ b.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4856
4853
  /* @__PURE__ */ b.jsxs(
4857
4854
  Fe,
@@ -4889,7 +4886,7 @@ const qs = ({
4889
4886
  }
4890
4887
  ),
4891
4888
  /* @__PURE__ */ b.jsx(
4892
- Us,
4889
+ xo,
4893
4890
  {
4894
4891
  responses: t.responses,
4895
4892
  selectedResponse: r,
@@ -4901,7 +4898,7 @@ const qs = ({
4901
4898
  }
4902
4899
  ),
4903
4900
  Br(!c?.disableSidecar, () => /* @__PURE__ */ b.jsx(
4904
- As,
4901
+ Us,
4905
4902
  {
4906
4903
  selectedResponse: r,
4907
4904
  onSelectResponse: o,
@@ -5031,7 +5028,7 @@ const _s = Me(
5031
5028
  }
5032
5029
  }
5033
5030
  `
5034
- ), ul = ({
5031
+ ), fl = ({
5035
5032
  tag: e,
5036
5033
  untagged: n
5037
5034
  }) => {
@@ -5074,7 +5071,7 @@ const _s = Me(
5074
5071
  /* @__PURE__ */ b.jsxs(ta, { className: "w-full", children: [
5075
5072
  /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
5076
5073
  /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
5077
- /* @__PURE__ */ b.jsx(Xa, { children: f }),
5074
+ /* @__PURE__ */ b.jsx(Ya, { children: f }),
5078
5075
  /* @__PURE__ */ b.jsxs(
5079
5076
  Fe,
5080
5077
  {
@@ -5162,7 +5159,7 @@ const _s = Me(
5162
5159
  );
5163
5160
  };
5164
5161
  export {
5165
- ul as OperationList,
5162
+ fl as OperationList,
5166
5163
  _s as OperationsFragment
5167
5164
  };
5168
- //# sourceMappingURL=OperationList-C_-vAmhs.js.map
5165
+ //# sourceMappingURL=OperationList-CWxpdIbO.js.map