zudoku 0.0.0-ec30b50 → 0.0.0-edd80c1

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 (1438) hide show
  1. package/README.md +1 -1
  2. package/cli.js +9 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/entry.client.d.ts +5 -0
  7. package/dist/app/entry.client.js +37 -0
  8. package/dist/app/entry.client.js.map +1 -1
  9. package/dist/app/entry.server.d.ts +8 -6
  10. package/dist/app/entry.server.js +12 -8
  11. package/dist/app/entry.server.js.map +1 -1
  12. package/dist/app/env.d.ts +33 -0
  13. package/dist/app/env.js +29 -0
  14. package/dist/app/env.js.map +1 -0
  15. package/dist/app/main.js +23 -28
  16. package/dist/app/main.js.map +1 -1
  17. package/dist/cli/build/handler.d.ts +1 -3
  18. package/dist/cli/build/handler.js +9 -1
  19. package/dist/cli/build/handler.js.map +1 -1
  20. package/dist/cli/cli.js +17 -1
  21. package/dist/cli/cli.js.map +1 -1
  22. package/dist/cli/cmds/build.d.ts +11 -3
  23. package/dist/cli/cmds/build.js +20 -13
  24. package/dist/cli/cmds/build.js.map +1 -1
  25. package/dist/cli/cmds/dev.d.ts +1 -1
  26. package/dist/cli/cmds/dev.js.map +1 -1
  27. package/dist/cli/cmds/preview.d.ts +16 -0
  28. package/dist/cli/cmds/preview.js +25 -0
  29. package/dist/cli/cmds/preview.js.map +1 -0
  30. package/dist/cli/common/machine-id/lib.js +1 -0
  31. package/dist/cli/common/machine-id/lib.js.map +1 -1
  32. package/dist/cli/common/utils/ports.d.ts +1 -1
  33. package/dist/cli/common/utils/ports.js +16 -15
  34. package/dist/cli/common/utils/ports.js.map +1 -1
  35. package/dist/cli/dev/handler.js +10 -12
  36. package/dist/cli/dev/handler.js.map +1 -1
  37. package/dist/cli/preview/handler.d.ts +3 -0
  38. package/dist/cli/preview/handler.js +35 -0
  39. package/dist/cli/preview/handler.js.map +1 -0
  40. package/dist/config/config.d.ts +19 -17
  41. package/dist/config/file-exists.d.ts +1 -0
  42. package/dist/config/file-exists.js +5 -0
  43. package/dist/config/file-exists.js.map +1 -0
  44. package/dist/config/loader.d.ts +19 -18
  45. package/dist/config/loader.js +108 -117
  46. package/dist/config/loader.js.map +1 -1
  47. package/dist/config/validators/BuildSchema.d.ts +60 -0
  48. package/dist/config/validators/BuildSchema.js +31 -0
  49. package/dist/config/validators/BuildSchema.js.map +1 -0
  50. package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
  51. package/dist/config/validators/InputSidebarSchema.js +10 -1
  52. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  53. package/dist/config/validators/icon-types.d.ts +1 -1
  54. package/dist/config/validators/validate.d.ts +4258 -448
  55. package/dist/config/validators/validate.js +396 -11
  56. package/dist/config/validators/validate.js.map +1 -1
  57. package/dist/index.d.ts +7 -3
  58. package/dist/index.js +4 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/lib/MissingIcon.d.ts +2 -0
  61. package/dist/lib/MissingIcon.js +7 -0
  62. package/dist/lib/MissingIcon.js.map +1 -0
  63. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  64. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  65. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  66. package/dist/lib/authentication/authentication.d.ts +3 -4
  67. package/dist/lib/authentication/components/CallbackHandler.js +5 -1
  68. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  69. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  70. package/dist/lib/authentication/components/SignIn.js +5 -2
  71. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  72. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  73. package/dist/lib/authentication/components/SignUp.js +4 -1
  74. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  75. package/dist/lib/authentication/hook.d.ts +1 -0
  76. package/dist/lib/authentication/hook.js +11 -1
  77. package/dist/lib/authentication/hook.js.map +1 -1
  78. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  79. package/dist/lib/authentication/providers/auth0.js +2 -1
  80. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  81. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  82. package/dist/lib/authentication/providers/clerk.js +92 -46
  83. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  84. package/dist/lib/authentication/providers/openid.d.ts +15 -19
  85. package/dist/lib/authentication/providers/openid.js +40 -43
  86. package/dist/lib/authentication/providers/openid.js.map +1 -1
  87. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  88. package/dist/lib/authentication/providers/supabase.js +115 -0
  89. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  90. package/dist/lib/authentication/state.d.ts +0 -26
  91. package/dist/lib/authentication/state.js +9 -18
  92. package/dist/lib/authentication/state.js.map +1 -1
  93. package/dist/lib/components/AnchorLink.d.ts +2 -2
  94. package/dist/lib/components/AnchorLink.js +5 -4
  95. package/dist/lib/components/AnchorLink.js.map +1 -1
  96. package/dist/lib/components/Autocomplete.js +1 -1
  97. package/dist/lib/components/Banner.js +1 -1
  98. package/dist/lib/components/Banner.js.map +1 -1
  99. package/dist/lib/components/Bootstrap.d.ts +2 -1
  100. package/dist/lib/components/Bootstrap.js +3 -2
  101. package/dist/lib/components/Bootstrap.js.map +1 -1
  102. package/dist/lib/components/BuildCheck.d.ts +4 -0
  103. package/dist/lib/components/BuildCheck.js +38 -0
  104. package/dist/lib/components/BuildCheck.js.map +1 -0
  105. package/dist/lib/components/ErrorPage.js +1 -1
  106. package/dist/lib/components/Footer.d.ts +1 -0
  107. package/dist/lib/components/Footer.js +32 -0
  108. package/dist/lib/components/Footer.js.map +1 -0
  109. package/dist/lib/components/Header.js +17 -9
  110. package/dist/lib/components/Header.js.map +1 -1
  111. package/dist/lib/components/Heading.d.ts +3 -3
  112. package/dist/lib/components/Heading.js +6 -1
  113. package/dist/lib/components/Heading.js.map +1 -1
  114. package/dist/lib/components/InlineCode.d.ts +2 -1
  115. package/dist/lib/components/InlineCode.js +2 -9
  116. package/dist/lib/components/InlineCode.js.map +1 -1
  117. package/dist/lib/components/Layout.js +9 -29
  118. package/dist/lib/components/Layout.js.map +1 -1
  119. package/dist/lib/components/Main.d.ts +2 -0
  120. package/dist/lib/components/Main.js +18 -0
  121. package/dist/lib/components/Main.js.map +1 -0
  122. package/dist/lib/components/Markdown.d.ts +3 -1
  123. package/dist/lib/components/Markdown.js +13 -14
  124. package/dist/lib/components/Markdown.js.map +1 -1
  125. package/dist/lib/components/MobileTopNavigation.js +7 -3
  126. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  127. package/dist/lib/components/NotFoundPage.js +1 -1
  128. package/dist/lib/components/Pagination.d.ts +11 -0
  129. package/dist/lib/components/Pagination.js +10 -0
  130. package/dist/lib/components/Pagination.js.map +1 -0
  131. package/dist/lib/components/Search.js +7 -1
  132. package/dist/lib/components/Search.js.map +1 -1
  133. package/dist/lib/components/Slot.d.ts +17 -0
  134. package/dist/lib/components/Slot.js +24 -0
  135. package/dist/lib/components/Slot.js.map +1 -0
  136. package/dist/lib/components/Slot.test.js +168 -0
  137. package/dist/lib/components/Slot.test.js.map +1 -0
  138. package/dist/lib/components/ThemeSwitch.js +8 -5
  139. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  140. package/dist/lib/components/TopNavigation.d.ts +2 -4
  141. package/dist/lib/components/TopNavigation.js +26 -20
  142. package/dist/lib/components/TopNavigation.js.map +1 -1
  143. package/dist/lib/components/Zudoku.d.ts +1 -1
  144. package/dist/lib/components/Zudoku.js +14 -9
  145. package/dist/lib/components/Zudoku.js.map +1 -1
  146. package/dist/lib/components/cache.d.ts +7 -0
  147. package/dist/lib/components/cache.js +7 -0
  148. package/dist/lib/components/cache.js.map +1 -1
  149. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  150. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  151. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  152. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  153. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  154. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  155. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  156. package/dist/lib/components/context/SlotProvider.js +83 -0
  157. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  158. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  159. package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
  160. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  161. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  162. package/dist/lib/components/context/ZudokuContext.js +18 -7
  163. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  164. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  165. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  166. package/dist/lib/components/index.d.ts +40 -25
  167. package/dist/lib/components/index.js +16 -6
  168. package/dist/lib/components/index.js.map +1 -1
  169. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  170. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  171. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  172. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  173. package/dist/lib/components/navigation/Sidebar.js +4 -13
  174. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  175. package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
  176. package/dist/lib/components/navigation/SidebarBadge.js +3 -1
  177. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  178. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  179. package/dist/lib/components/navigation/SidebarCategory.js +20 -12
  180. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  181. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -4
  182. package/dist/lib/components/navigation/SidebarItem.js +28 -27
  183. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  184. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  185. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  186. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  187. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +6 -8
  188. package/dist/lib/components/navigation/Toc.js.map +1 -0
  189. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  190. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  191. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  192. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  193. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  194. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  195. package/dist/lib/components/navigation/utils.d.ts +8 -0
  196. package/dist/lib/components/navigation/utils.js +34 -6
  197. package/dist/lib/components/navigation/utils.js.map +1 -1
  198. package/dist/lib/core/RouteGuard.d.ts +2 -1
  199. package/dist/lib/core/RouteGuard.js +35 -11
  200. package/dist/lib/core/RouteGuard.js.map +1 -1
  201. package/dist/lib/core/ZudokuContext.d.ts +50 -11
  202. package/dist/lib/core/ZudokuContext.js +33 -9
  203. package/dist/lib/core/ZudokuContext.js.map +1 -1
  204. package/dist/lib/core/plugins.d.ts +21 -8
  205. package/dist/lib/core/plugins.js +4 -0
  206. package/dist/lib/core/plugins.js.map +1 -1
  207. package/dist/lib/errors/ErrorAlert.js +6 -1
  208. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  209. package/dist/lib/hooks/index.d.ts +22 -0
  210. package/dist/lib/hooks/index.js +16 -0
  211. package/dist/lib/hooks/index.js.map +1 -0
  212. package/dist/lib/hooks/useEvent.d.ts +11 -0
  213. package/dist/lib/hooks/useEvent.js +19 -0
  214. package/dist/lib/hooks/useEvent.js.map +1 -0
  215. package/dist/lib/hooks/useEvent.test.js +100 -0
  216. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  217. package/dist/lib/icons.d.ts +1 -0
  218. package/dist/lib/icons.js +1 -0
  219. package/dist/lib/icons.js.map +1 -1
  220. package/dist/lib/oas/graphql/circular.js +23 -18
  221. package/dist/lib/oas/graphql/circular.js.map +1 -1
  222. package/dist/lib/oas/graphql/index.d.ts +17 -4
  223. package/dist/lib/oas/graphql/index.js +151 -38
  224. package/dist/lib/oas/graphql/index.js.map +1 -1
  225. package/dist/lib/oas/parser/dereference/index.js +2 -0
  226. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  227. package/dist/lib/oas/parser/index.d.ts +8 -3
  228. package/dist/lib/oas/parser/index.js +7 -23
  229. package/dist/lib/oas/parser/index.js.map +1 -1
  230. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  231. package/dist/lib/oas/parser/upgrade/index.js +76 -23
  232. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  233. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
  234. package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
  235. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  236. package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
  237. package/dist/lib/plugins/api-catalog/index.js +39 -8
  238. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  239. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  240. package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
  241. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  242. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  243. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +152 -26
  244. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  245. package/dist/lib/plugins/api-keys/index.d.ts +21 -11
  246. package/dist/lib/plugins/api-keys/index.js +48 -32
  247. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  248. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  249. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  250. package/dist/lib/plugins/markdown/MdxPage.js +3 -9
  251. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  252. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  253. package/dist/lib/plugins/markdown/resolver.d.ts +1 -7
  254. package/dist/lib/plugins/markdown/resolver.js +0 -29
  255. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  256. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  257. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  258. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  259. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  260. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  261. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  262. package/dist/lib/plugins/openapi/{OpenApiRoute.d.ts → OasProvider.d.ts} +1 -2
  263. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  264. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  265. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  266. package/dist/lib/plugins/openapi/OperationList.js +67 -20
  267. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  268. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  269. package/dist/lib/plugins/openapi/OperationListItem.js +9 -13
  270. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  271. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  272. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  273. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  274. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  275. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  276. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  277. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -4
  278. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  279. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  280. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -2
  281. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  282. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  283. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  284. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  285. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  286. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  287. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  288. package/dist/lib/plugins/openapi/Sidecar.js +47 -68
  289. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  290. package/dist/lib/plugins/openapi/SidecarExamples.js +10 -2
  291. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  292. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  293. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  294. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  295. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  296. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  297. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  298. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  299. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  300. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  301. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  302. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  303. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  304. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  305. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  306. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  307. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  308. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  309. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  310. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  311. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  312. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  313. package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
  314. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  315. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  316. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  317. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  318. package/dist/lib/plugins/openapi/index.d.ts +10 -8
  319. package/dist/lib/plugins/openapi/index.js +58 -142
  320. package/dist/lib/plugins/openapi/index.js.map +1 -1
  321. package/dist/lib/plugins/openapi/interfaces.d.ts +37 -10
  322. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  323. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  324. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  325. package/dist/lib/plugins/openapi/playground/Headers.js +3 -3
  326. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  327. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  328. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  329. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  330. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  331. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  332. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  333. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  334. package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
  335. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  336. package/dist/lib/plugins/openapi/playground/Playground.d.ts +14 -3
  337. package/dist/lib/plugins/openapi/playground/Playground.js +86 -30
  338. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  339. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  340. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  341. package/dist/lib/plugins/openapi/playground/QueryParams.js +3 -3
  342. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  343. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  344. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  345. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  346. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +1 -1
  347. package/dist/lib/plugins/openapi/playground/SubmitButton.js +7 -10
  348. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -1
  349. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  350. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  351. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  352. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
  353. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -1
  354. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +20 -14
  355. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  356. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  357. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  358. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  359. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  360. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  361. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  362. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  363. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  364. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  365. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  366. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  367. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  368. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  369. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  370. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  371. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  372. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  373. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  374. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  375. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  376. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  377. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  378. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  379. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  380. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  381. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  382. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  383. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  384. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  385. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  386. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  387. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  388. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +24 -16
  389. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  390. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  391. package/dist/lib/plugins/openapi/schema/SchemaView.js +37 -49
  392. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  393. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  394. package/dist/lib/plugins/openapi/schema/utils.js +14 -5
  395. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  396. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  397. package/dist/lib/plugins/openapi/state.js +18 -0
  398. package/dist/lib/plugins/openapi/state.js.map +1 -0
  399. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  400. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  401. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  402. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  403. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  404. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  405. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  406. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  407. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  408. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  409. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  410. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  411. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  412. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  413. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  414. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  415. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  416. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  417. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  418. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  419. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  420. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  421. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  422. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  423. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  424. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  425. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  426. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  427. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  428. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  429. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  430. package/dist/lib/shiki.d.ts +35 -0
  431. package/dist/lib/shiki.js +103 -0
  432. package/dist/lib/shiki.js.map +1 -0
  433. package/dist/lib/ui/Badge.d.ts +2 -2
  434. package/dist/lib/ui/Badge.js +1 -1
  435. package/dist/lib/ui/Badge.js.map +1 -1
  436. package/dist/lib/ui/Button.d.ts +3 -3
  437. package/dist/lib/ui/Button.js +9 -6
  438. package/dist/lib/ui/Button.js.map +1 -1
  439. package/dist/lib/ui/Callout.d.ts +2 -1
  440. package/dist/lib/ui/Callout.js +3 -2
  441. package/dist/lib/ui/Callout.js.map +1 -1
  442. package/dist/lib/ui/Card.js +1 -1
  443. package/dist/lib/ui/Checkbox.d.ts +2 -8
  444. package/dist/lib/ui/Checkbox.js +1 -13
  445. package/dist/lib/ui/Checkbox.js.map +1 -1
  446. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  447. package/dist/lib/ui/CodeBlock.js +18 -0
  448. package/dist/lib/ui/CodeBlock.js.map +1 -0
  449. package/dist/lib/ui/Command.d.ts +8 -2
  450. package/dist/lib/ui/Command.js +5 -5
  451. package/dist/lib/ui/Command.js.map +1 -1
  452. package/dist/lib/ui/Dialog.js +1 -1
  453. package/dist/lib/ui/Dialog.js.map +1 -1
  454. package/dist/lib/ui/DropdownMenu.js +4 -4
  455. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  456. package/dist/lib/ui/Form.d.ts +1 -1
  457. package/dist/lib/ui/HoverCard.js +1 -1
  458. package/dist/lib/ui/HoverCard.js.map +1 -1
  459. package/dist/lib/ui/Input.js +1 -1
  460. package/dist/lib/ui/Input.js.map +1 -1
  461. package/dist/lib/ui/Popover.js +1 -1
  462. package/dist/lib/ui/Popover.js.map +1 -1
  463. package/dist/lib/ui/RadioGroup.js +1 -1
  464. package/dist/lib/ui/RadioGroup.js.map +1 -1
  465. package/dist/lib/ui/Select.js +2 -2
  466. package/dist/lib/ui/Select.js.map +1 -1
  467. package/dist/lib/ui/Slider.js +1 -1
  468. package/dist/lib/ui/Slider.js.map +1 -1
  469. package/dist/lib/ui/Stepper.d.ts +3 -0
  470. package/dist/lib/ui/Stepper.js +7 -0
  471. package/dist/lib/ui/Stepper.js.map +1 -0
  472. package/dist/lib/ui/Switch.js +1 -1
  473. package/dist/lib/ui/Switch.js.map +1 -1
  474. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
  475. package/dist/lib/ui/SyntaxHighlight.js +14 -0
  476. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  477. package/dist/lib/ui/Tabs.js +2 -2
  478. package/dist/lib/ui/Tabs.js.map +1 -1
  479. package/dist/lib/ui/Textarea.js +1 -1
  480. package/dist/lib/ui/Textarea.js.map +1 -1
  481. package/dist/lib/ui/Toggle.js +1 -1
  482. package/dist/lib/ui/Toggle.js.map +1 -1
  483. package/dist/lib/ui/Tooltip.d.ts +2 -1
  484. package/dist/lib/ui/Tooltip.js +2 -1
  485. package/dist/lib/ui/Tooltip.js.map +1 -1
  486. package/dist/lib/ui/util.d.ts +2 -0
  487. package/dist/lib/ui/util.js +3 -0
  488. package/dist/lib/ui/util.js.map +1 -0
  489. package/dist/lib/util/MdxComponents.d.ts +14 -4
  490. package/dist/lib/util/MdxComponents.js +17 -13
  491. package/dist/lib/util/MdxComponents.js.map +1 -1
  492. package/dist/lib/util/detectOS.d.ts +1 -0
  493. package/dist/lib/util/detectOS.js +11 -0
  494. package/dist/lib/util/detectOS.js.map +1 -0
  495. package/dist/lib/util/ensureArray.d.ts +1 -0
  496. package/dist/lib/util/ensureArray.js +2 -0
  497. package/dist/lib/util/ensureArray.js.map +1 -0
  498. package/dist/lib/util/joinPath.d.ts +3 -0
  499. package/dist/lib/util/joinPath.js +3 -0
  500. package/dist/lib/util/joinPath.js.map +1 -1
  501. package/dist/lib/util/traverse.d.ts +3 -9
  502. package/dist/lib/util/traverse.js +7 -6
  503. package/dist/lib/util/traverse.js.map +1 -1
  504. package/dist/lib/util/types.d.ts +7 -0
  505. package/dist/lib/util/types.js +2 -0
  506. package/dist/lib/util/types.js.map +1 -0
  507. package/dist/lib/util/url.d.ts +4 -0
  508. package/dist/lib/util/url.js +13 -0
  509. package/dist/lib/util/url.js.map +1 -0
  510. package/dist/lib/util/url.test.d.ts +1 -0
  511. package/dist/lib/util/url.test.js +26 -0
  512. package/dist/lib/util/url.test.js.map +1 -0
  513. package/dist/lib/util/useExposedProps.d.ts +8 -1
  514. package/dist/lib/util/useExposedProps.js.map +1 -1
  515. package/dist/lib/util/useLatest.d.ts +1 -0
  516. package/dist/lib/util/useLatest.js +15 -0
  517. package/dist/lib/util/useLatest.js.map +1 -0
  518. package/dist/lib/util/useOnScreen.d.ts +3 -2
  519. package/dist/lib/util/useOnScreen.js +3 -3
  520. package/dist/lib/util/useOnScreen.js.map +1 -1
  521. package/dist/lib/util/useScrollToAnchor.js +26 -20
  522. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  523. package/dist/vite/api/SchemaManager.d.ts +36 -0
  524. package/dist/vite/api/SchemaManager.js +137 -0
  525. package/dist/vite/api/SchemaManager.js.map +1 -0
  526. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  527. package/dist/vite/api/SchemaManager.test.js +106 -0
  528. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  529. package/dist/vite/api/schema-codegen.d.ts +1 -1
  530. package/dist/vite/api/schema-codegen.js +34 -11
  531. package/dist/vite/api/schema-codegen.js.map +1 -1
  532. package/dist/vite/api/schema-codegen.test.js +66 -0
  533. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  534. package/dist/vite/build.js +72 -22
  535. package/dist/vite/build.js.map +1 -1
  536. package/dist/vite/config.d.ts +2 -12
  537. package/dist/vite/config.js +90 -149
  538. package/dist/vite/config.js.map +1 -1
  539. package/dist/vite/config.test.js +2 -2
  540. package/dist/vite/config.test.js.map +1 -1
  541. package/dist/vite/create-pagefind-index.d.ts +4 -0
  542. package/dist/vite/create-pagefind-index.js +12 -0
  543. package/dist/vite/create-pagefind-index.js.map +1 -0
  544. package/dist/vite/css/plugin.d.ts +1 -2
  545. package/dist/vite/css/plugin.js +3 -2
  546. package/dist/vite/css/plugin.js.map +1 -1
  547. package/dist/vite/dev-server.d.ts +4 -3
  548. package/dist/vite/dev-server.js +53 -22
  549. package/dist/vite/dev-server.js.map +1 -1
  550. package/dist/vite/error-handler.d.ts +1 -1
  551. package/dist/vite/error-handler.js +1 -1
  552. package/dist/vite/error-handler.js.map +1 -1
  553. package/dist/vite/html.d.ts +7 -3
  554. package/dist/vite/html.js +15 -9
  555. package/dist/vite/html.js.map +1 -1
  556. package/dist/vite/output.d.ts +14 -2
  557. package/dist/vite/output.js +12 -14
  558. package/dist/vite/output.js.map +1 -1
  559. package/dist/vite/plugin-api-keys.d.ts +1 -2
  560. package/dist/vite/plugin-api-keys.js +13 -7
  561. package/dist/vite/plugin-api-keys.js.map +1 -1
  562. package/dist/vite/plugin-api.d.ts +1 -2
  563. package/dist/vite/plugin-api.js +77 -110
  564. package/dist/vite/plugin-api.js.map +1 -1
  565. package/dist/vite/plugin-auth.d.ts +1 -2
  566. package/dist/vite/plugin-auth.js +6 -5
  567. package/dist/vite/plugin-auth.js.map +1 -1
  568. package/dist/vite/plugin-component.d.ts +1 -2
  569. package/dist/vite/plugin-component.js +10 -4
  570. package/dist/vite/plugin-component.js.map +1 -1
  571. package/dist/vite/plugin-config-reload.d.ts +3 -3
  572. package/dist/vite/plugin-config-reload.js +29 -23
  573. package/dist/vite/plugin-config-reload.js.map +1 -1
  574. package/dist/vite/plugin-config.d.ts +1 -2
  575. package/dist/vite/plugin-config.js +11 -6
  576. package/dist/vite/plugin-config.js.map +1 -1
  577. package/dist/vite/plugin-configure-tailwind.d.ts +2 -0
  578. package/dist/vite/plugin-configure-tailwind.js +38 -0
  579. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  580. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  581. package/dist/vite/plugin-custom-pages.js +6 -5
  582. package/dist/vite/plugin-custom-pages.js.map +1 -1
  583. package/dist/vite/plugin-docs.d.ts +2 -3
  584. package/dist/vite/plugin-docs.js +26 -8
  585. package/dist/vite/plugin-docs.js.map +1 -1
  586. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  587. package/dist/vite/plugin-frontmatter.js +8 -6
  588. package/dist/vite/plugin-frontmatter.js.map +1 -1
  589. package/dist/vite/plugin-mdx.d.ts +1 -2
  590. package/dist/vite/plugin-mdx.js +35 -36
  591. package/dist/vite/plugin-mdx.js.map +1 -1
  592. package/dist/vite/plugin-redirect.d.ts +1 -2
  593. package/dist/vite/plugin-redirect.js +6 -5
  594. package/dist/vite/plugin-redirect.js.map +1 -1
  595. package/dist/vite/plugin-search.d.ts +1 -2
  596. package/dist/vite/plugin-search.js +8 -3
  597. package/dist/vite/plugin-search.js.map +1 -1
  598. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  599. package/dist/vite/plugin-shiki-register.js +39 -0
  600. package/dist/vite/plugin-shiki-register.js.map +1 -0
  601. package/dist/vite/plugin-sidebar.d.ts +4 -3
  602. package/dist/vite/plugin-sidebar.js +24 -8
  603. package/dist/vite/plugin-sidebar.js.map +1 -1
  604. package/dist/vite/plugin-theme-css.d.ts +1 -2
  605. package/dist/vite/plugin-theme-css.js +20 -60
  606. package/dist/vite/plugin-theme-css.js.map +1 -1
  607. package/dist/vite/plugin.d.ts +1 -2
  608. package/dist/vite/plugin.js +23 -20
  609. package/dist/vite/plugin.js.map +1 -1
  610. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  611. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  612. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  613. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  614. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  615. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  616. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  617. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  618. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  619. package/dist/vite/prerender/prerender.d.ts +15 -0
  620. package/dist/vite/prerender/prerender.js +109 -0
  621. package/dist/vite/prerender/prerender.js.map +1 -0
  622. package/dist/vite/prerender/worker.d.ts +13 -0
  623. package/dist/vite/prerender/worker.js +59 -0
  624. package/dist/vite/prerender/worker.js.map +1 -0
  625. package/dist/vite/reporter.d.ts +3 -0
  626. package/dist/vite/reporter.js +33 -0
  627. package/dist/vite/reporter.js.map +1 -0
  628. package/dist/vite/sitemap.d.ts +1 -1
  629. package/dist/vite/sitemap.js +2 -1
  630. package/dist/vite/sitemap.js.map +1 -1
  631. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  632. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  633. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  634. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  635. package/dist/zuplo/with-zuplo-processors.js +7 -7
  636. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  637. package/dist/zuplo/with-zuplo.d.ts +5 -2
  638. package/dist/zuplo/with-zuplo.js +6 -5
  639. package/dist/zuplo/with-zuplo.js.map +1 -1
  640. package/lib/Button-BE9IVkWV.js +51 -0
  641. package/lib/Button-BE9IVkWV.js.map +1 -0
  642. package/lib/Callout-CvY02DXU.js +231 -0
  643. package/lib/Callout-CvY02DXU.js.map +1 -0
  644. package/lib/Card-DPhGbYUM.js +61 -0
  645. package/lib/Card-DPhGbYUM.js.map +1 -0
  646. package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-Cu2RwgjC.js} +3 -3
  647. package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-Cu2RwgjC.js.map} +1 -1
  648. package/lib/Dialog-B53OMCvW.js +99 -0
  649. package/lib/Dialog-B53OMCvW.js.map +1 -0
  650. package/lib/Drawer-BzkOKwgC.js +1133 -0
  651. package/lib/Drawer-BzkOKwgC.js.map +1 -0
  652. package/lib/{Markdown-8mv9nhGd.js → Markdown-Shp6H9Hw.js} +14425 -14267
  653. package/lib/Markdown-Shp6H9Hw.js.map +1 -0
  654. package/lib/MdxPage-CrJSbZ47.js +84 -0
  655. package/lib/MdxPage-CrJSbZ47.js.map +1 -0
  656. package/lib/OasProvider-NUpybWqk.js +33 -0
  657. package/lib/OasProvider-NUpybWqk.js.map +1 -0
  658. package/lib/OperationList-D3bDNQLY.js +5153 -0
  659. package/lib/OperationList-D3bDNQLY.js.map +1 -0
  660. package/lib/Pagination-Cr0fWZS3.js +36 -0
  661. package/lib/Pagination-Cr0fWZS3.js.map +1 -0
  662. package/lib/RouteGuard-BYQ1LEhj.js +55 -0
  663. package/lib/RouteGuard-BYQ1LEhj.js.map +1 -0
  664. package/lib/SchemaList-BrpIIdIt.js +160 -0
  665. package/lib/SchemaList-BrpIIdIt.js.map +1 -0
  666. package/lib/SchemaView-DCf4_v-o.js +375 -0
  667. package/lib/SchemaView-DCf4_v-o.js.map +1 -0
  668. package/lib/SignUp-B7jT3koL.js +63 -0
  669. package/lib/SignUp-B7jT3koL.js.map +1 -0
  670. package/lib/Slot-CDvAt3j5.js +160 -0
  671. package/lib/Slot-CDvAt3j5.js.map +1 -0
  672. package/lib/Spinner-mNLZ6awP.js +7 -0
  673. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  674. package/lib/SyntaxHighlight-B5N00yJ7.js +9128 -0
  675. package/lib/SyntaxHighlight-B5N00yJ7.js.map +1 -0
  676. package/lib/Toc-DrAlK9wf.js +92 -0
  677. package/lib/Toc-DrAlK9wf.js.map +1 -0
  678. package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-BAXFHI7N-C9WnHsLV.js} +684 -666
  679. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  680. package/lib/{circular-DxaIIlWD.js → circular-DTUFHD88.js} +3873 -4353
  681. package/lib/circular-DTUFHD88.js.map +1 -0
  682. package/lib/clsx-OuTLNxxd.js +17 -0
  683. package/lib/clsx-OuTLNxxd.js.map +1 -0
  684. package/lib/{cn-qaFjX9_3.js → cn-wvCW-ho6.js} +1015 -563
  685. package/lib/cn-wvCW-ho6.js.map +1 -0
  686. package/lib/{createServer-E3cXjB0P.js → createServer-B3gDmKd4.js} +5682 -5792
  687. package/lib/createServer-B3gDmKd4.js.map +1 -0
  688. package/lib/hook-BXffmvNp.js +1465 -0
  689. package/lib/hook-BXffmvNp.js.map +1 -0
  690. package/lib/index--oeBayMa.js +86 -0
  691. package/lib/index--oeBayMa.js.map +1 -0
  692. package/lib/index-Bn6Lc9tq.js +9 -0
  693. package/lib/index-Bn6Lc9tq.js.map +1 -0
  694. package/lib/index-BsC7yjdG.js +3268 -0
  695. package/lib/index-BsC7yjdG.js.map +1 -0
  696. package/lib/{index-CjJS0l4l.js → index-BvvmIczU.js} +3 -3
  697. package/lib/{index-CjJS0l4l.js.map → index-BvvmIczU.js.map} +1 -1
  698. package/lib/index-CrcNWbel.js +316 -0
  699. package/lib/index-CrcNWbel.js.map +1 -0
  700. package/lib/index-DI5SPFK9.js +36 -0
  701. package/lib/{index-Djenk2Hj.js.map → index-DI5SPFK9.js.map} +1 -1
  702. package/lib/index-QzXzw_ra.js +24 -0
  703. package/lib/index-QzXzw_ra.js.map +1 -0
  704. package/lib/{index-Dl3Yl0yb.js → index-zddirpDj.js} +621 -636
  705. package/lib/index-zddirpDj.js.map +1 -0
  706. package/lib/index.esm-BFcSKCe-.js +683 -0
  707. package/lib/{index.esm-9-TF9KQB.js.map → index.esm-BFcSKCe-.js.map} +1 -1
  708. package/lib/index.esm-DSfX_eMP.js +1216 -0
  709. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  710. package/lib/invariant-DAFpPywt.js +48 -0
  711. package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
  712. package/lib/joinPath-B7kNnUX4.js +8 -0
  713. package/lib/joinPath-B7kNnUX4.js.map +1 -0
  714. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  715. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  716. package/lib/mutation-ziRtY0Hx.js +196 -0
  717. package/lib/mutation-ziRtY0Hx.js.map +1 -0
  718. package/lib/objectEntries-yMIkr2mI.js +5 -0
  719. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  720. package/lib/processors/removeExtensions.js +11 -0
  721. package/lib/processors/removeExtensions.js.map +1 -0
  722. package/lib/processors/removeParameters.js +47 -0
  723. package/lib/processors/removeParameters.js.map +1 -0
  724. package/lib/processors/removePaths.js +28 -0
  725. package/lib/processors/removePaths.js.map +1 -0
  726. package/lib/processors/traverse.js +17 -0
  727. package/lib/processors/traverse.js.map +1 -0
  728. package/lib/ui/Accordion.js +2 -2
  729. package/lib/ui/ActionButton.js +11 -10
  730. package/lib/ui/ActionButton.js.map +1 -1
  731. package/lib/ui/Alert.js +3 -3
  732. package/lib/ui/AlertDialog.js +2 -2
  733. package/lib/ui/Badge.js +4 -4
  734. package/lib/ui/Badge.js.map +1 -1
  735. package/lib/ui/Breadcrumb.js +5 -5
  736. package/lib/ui/Button.js +22 -19
  737. package/lib/ui/Button.js.map +1 -1
  738. package/lib/ui/Callout.js +40 -20
  739. package/lib/ui/Callout.js.map +1 -1
  740. package/lib/ui/Card.js +9 -9
  741. package/lib/ui/Card.js.map +1 -1
  742. package/lib/ui/Carousel.js +348 -348
  743. package/lib/ui/Carousel.js.map +1 -1
  744. package/lib/ui/Checkbox.js +16 -26
  745. package/lib/ui/Checkbox.js.map +1 -1
  746. package/lib/ui/CodeBlock.js +83 -0
  747. package/lib/ui/CodeBlock.js.map +1 -0
  748. package/lib/ui/Command.js +102 -75
  749. package/lib/ui/Command.js.map +1 -1
  750. package/lib/ui/Dialog.js +3 -3
  751. package/lib/ui/Dialog.js.map +1 -1
  752. package/lib/ui/Drawer.js +14 -1151
  753. package/lib/ui/Drawer.js.map +1 -1
  754. package/lib/ui/DropdownMenu.js +35 -35
  755. package/lib/ui/DropdownMenu.js.map +1 -1
  756. package/lib/ui/Form.js +6 -6
  757. package/lib/ui/HoverCard.js +6 -6
  758. package/lib/ui/HoverCard.js.map +1 -1
  759. package/lib/ui/Input.js +3 -3
  760. package/lib/ui/Input.js.map +1 -1
  761. package/lib/ui/Label.js +3 -3
  762. package/lib/ui/Pagination.js +11 -11
  763. package/lib/ui/Popover.js +3 -3
  764. package/lib/ui/Popover.js.map +1 -1
  765. package/lib/ui/Progress.js +2 -2
  766. package/lib/ui/RadioGroup.js +11 -11
  767. package/lib/ui/RadioGroup.js.map +1 -1
  768. package/lib/ui/ScrollArea.js +2 -2
  769. package/lib/ui/Select.js +32 -32
  770. package/lib/ui/Select.js.map +1 -1
  771. package/lib/ui/Skeleton.js +2 -2
  772. package/lib/ui/Slider.js +6 -6
  773. package/lib/ui/Slider.js.map +1 -1
  774. package/lib/ui/Stepper.js +6 -0
  775. package/lib/ui/Stepper.js.map +1 -0
  776. package/lib/ui/Switch.js +6 -6
  777. package/lib/ui/Switch.js.map +1 -1
  778. package/lib/ui/SyntaxHighlight.js +10 -0
  779. package/lib/ui/SyntaxHighlight.js.map +1 -0
  780. package/lib/ui/Tabs.js +17 -17
  781. package/lib/ui/Tabs.js.map +1 -1
  782. package/lib/ui/Textarea.js +6 -6
  783. package/lib/ui/Textarea.js.map +1 -1
  784. package/lib/ui/Toggle.js +8 -8
  785. package/lib/ui/Toggle.js.map +1 -1
  786. package/lib/ui/ToggleGroup.js +2 -2
  787. package/lib/ui/Tooltip.js +15 -8
  788. package/lib/ui/Tooltip.js.map +1 -1
  789. package/lib/ui/util.js +6 -0
  790. package/lib/ui/util.js.map +1 -0
  791. package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-DG8J6ewJ.js} +2 -2
  792. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  793. package/lib/useLatest-hmRS46UF.js +11 -0
  794. package/lib/useLatest-hmRS46UF.js.map +1 -0
  795. package/lib/useMutation-X76q5okk.js +97 -0
  796. package/lib/useMutation-X76q5okk.js.map +1 -0
  797. package/lib/zudoku.auth-auth0.js +34 -36
  798. package/lib/zudoku.auth-auth0.js.map +1 -1
  799. package/lib/zudoku.auth-clerk.js +106 -77
  800. package/lib/zudoku.auth-clerk.js.map +1 -1
  801. package/lib/zudoku.auth-openid.js +503 -518
  802. package/lib/zudoku.auth-openid.js.map +1 -1
  803. package/lib/zudoku.components.js +4595 -941
  804. package/lib/zudoku.components.js.map +1 -1
  805. package/lib/zudoku.hooks.js +28 -0
  806. package/lib/zudoku.hooks.js.map +1 -0
  807. package/lib/zudoku.icons.js +10 -0
  808. package/lib/zudoku.icons.js.map +1 -1
  809. package/lib/zudoku.plugin-api-catalog.js +106 -112
  810. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  811. package/lib/zudoku.plugin-api-keys.js +518 -205
  812. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  813. package/lib/zudoku.plugin-custom-pages.js +4 -4
  814. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  815. package/lib/zudoku.plugin-markdown.js +25 -49
  816. package/lib/zudoku.plugin-markdown.js.map +1 -1
  817. package/lib/zudoku.plugin-openapi.js +7 -7
  818. package/lib/zudoku.plugin-openapi.js.map +1 -1
  819. package/lib/zudoku.plugin-redirect.js +1 -1
  820. package/lib/zudoku.plugin-redirect.js.map +1 -1
  821. package/lib/zudoku.plugin-search-inkeep.js +25 -26
  822. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  823. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  824. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  825. package/lib/zudoku.plugins.js +15 -0
  826. package/lib/zudoku.plugins.js.map +1 -0
  827. package/package.json +120 -84
  828. package/src/app/ZuploBuildConfig.ts +33 -0
  829. package/src/app/defaultTheme.css +54 -0
  830. package/src/app/demo.html +1 -1
  831. package/src/app/entry.client.tsx +51 -0
  832. package/src/app/entry.server.tsx +23 -13
  833. package/src/app/env.ts +35 -0
  834. package/src/app/font.geist.css +73 -0
  835. package/src/app/main.css +200 -144
  836. package/src/app/main.tsx +31 -30
  837. package/src/lib/MissingIcon.tsx +22 -0
  838. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  839. package/src/lib/authentication/authentication.ts +4 -5
  840. package/src/lib/authentication/components/CallbackHandler.tsx +11 -1
  841. package/src/lib/authentication/components/SignIn.tsx +35 -2
  842. package/src/lib/authentication/components/SignUp.tsx +35 -1
  843. package/src/lib/authentication/hook.ts +12 -1
  844. package/src/lib/authentication/providers/auth0.tsx +11 -4
  845. package/src/lib/authentication/providers/clerk.tsx +105 -53
  846. package/src/lib/authentication/providers/openid.tsx +59 -57
  847. package/src/lib/authentication/providers/supabase.tsx +157 -0
  848. package/src/lib/authentication/state.ts +9 -37
  849. package/src/lib/components/AnchorLink.tsx +9 -7
  850. package/src/lib/components/Autocomplete.tsx +1 -1
  851. package/src/lib/components/Banner.tsx +3 -2
  852. package/src/lib/components/Bootstrap.tsx +13 -6
  853. package/src/lib/components/BuildCheck.tsx +75 -0
  854. package/src/lib/components/ErrorPage.tsx +1 -1
  855. package/src/lib/components/Footer.tsx +136 -0
  856. package/src/lib/components/Header.tsx +40 -36
  857. package/src/lib/components/Heading.tsx +11 -7
  858. package/src/lib/components/InlineCode.tsx +13 -16
  859. package/src/lib/components/Layout.tsx +30 -71
  860. package/src/lib/components/Main.tsx +51 -0
  861. package/src/lib/components/Markdown.tsx +39 -24
  862. package/src/lib/components/MobileTopNavigation.tsx +30 -20
  863. package/src/lib/components/NotFoundPage.tsx +1 -1
  864. package/src/lib/components/Pagination.tsx +44 -0
  865. package/src/lib/components/Search.tsx +15 -4
  866. package/src/lib/components/Slot.test.tsx +465 -0
  867. package/src/lib/components/Slot.tsx +64 -0
  868. package/src/lib/components/ThemeSwitch.tsx +28 -8
  869. package/src/lib/components/TopNavigation.tsx +49 -34
  870. package/src/lib/components/Zudoku.tsx +27 -16
  871. package/src/lib/components/cache.ts +8 -0
  872. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  873. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  874. package/src/lib/components/context/SlotProvider.tsx +149 -0
  875. package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
  876. package/src/lib/components/context/ZudokuContext.ts +27 -8
  877. package/src/lib/components/context/ZudokuProvider.tsx +2 -1
  878. package/src/lib/components/index.ts +17 -9
  879. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  880. package/src/lib/components/navigation/Sidebar.tsx +38 -45
  881. package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
  882. package/src/lib/components/navigation/SidebarCategory.tsx +26 -19
  883. package/src/lib/components/navigation/SidebarItem.tsx +73 -54
  884. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
  885. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +9 -18
  886. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  887. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  888. package/src/lib/components/navigation/utils.ts +42 -6
  889. package/src/lib/core/RouteGuard.tsx +73 -12
  890. package/src/lib/core/ZudokuContext.ts +86 -17
  891. package/src/lib/core/plugins.ts +38 -8
  892. package/src/lib/errors/ErrorAlert.tsx +24 -17
  893. package/src/lib/hooks/index.ts +16 -0
  894. package/src/lib/hooks/useEvent.test.tsx +149 -0
  895. package/src/lib/hooks/useEvent.ts +41 -0
  896. package/src/lib/icons.ts +1 -0
  897. package/src/lib/oas/graphql/circular.ts +27 -19
  898. package/src/lib/oas/graphql/index.ts +206 -54
  899. package/src/lib/oas/parser/dereference/index.ts +2 -0
  900. package/src/lib/oas/parser/index.ts +14 -30
  901. package/src/lib/oas/parser/upgrade/index.ts +97 -26
  902. package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
  903. package/src/lib/plugins/api-catalog/index.tsx +66 -15
  904. package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
  905. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +438 -113
  906. package/src/lib/plugins/api-keys/index.tsx +113 -57
  907. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  908. package/src/lib/plugins/markdown/MdxPage.tsx +15 -47
  909. package/src/lib/plugins/markdown/index.tsx +2 -2
  910. package/src/lib/plugins/markdown/resolver.ts +4 -35
  911. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  912. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  913. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  914. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  915. package/src/lib/plugins/openapi/OperationList.tsx +185 -83
  916. package/src/lib/plugins/openapi/OperationListItem.tsx +103 -108
  917. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  918. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  919. package/src/lib/plugins/openapi/ParameterListItem.tsx +65 -23
  920. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +15 -2
  921. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  922. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  923. package/src/lib/plugins/openapi/Sidecar.tsx +61 -78
  924. package/src/lib/plugins/openapi/SidecarExamples.tsx +9 -4
  925. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  926. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  927. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  928. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  929. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  930. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  931. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  932. package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
  933. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  934. package/src/lib/plugins/openapi/index.tsx +83 -177
  935. package/src/lib/plugins/openapi/interfaces.ts +45 -15
  936. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  937. package/src/lib/plugins/openapi/playground/Headers.tsx +2 -3
  938. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  939. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  940. package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
  941. package/src/lib/plugins/openapi/playground/Playground.tsx +210 -115
  942. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  943. package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -5
  944. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  945. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +25 -30
  946. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  947. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +3 -3
  948. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +26 -6
  949. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
  950. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  951. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  952. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  953. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  954. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  955. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  956. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  957. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  958. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  959. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  960. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +69 -60
  961. package/src/lib/plugins/openapi/schema/SchemaView.tsx +101 -140
  962. package/src/lib/plugins/openapi/schema/utils.ts +29 -6
  963. package/src/lib/plugins/openapi/state.ts +36 -0
  964. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  965. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  966. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  967. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  968. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  969. package/src/lib/plugins/redirect/index.tsx +1 -1
  970. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  971. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  972. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  973. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  974. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  975. package/src/lib/shiki.ts +133 -0
  976. package/src/lib/ui/Badge.tsx +2 -2
  977. package/src/lib/ui/Button.tsx +12 -7
  978. package/src/lib/ui/Callout.tsx +30 -10
  979. package/src/lib/ui/Card.tsx +1 -1
  980. package/src/lib/ui/Checkbox.tsx +8 -24
  981. package/src/lib/ui/CodeBlock.tsx +102 -0
  982. package/src/lib/ui/Command.tsx +29 -7
  983. package/src/lib/ui/Dialog.tsx +1 -1
  984. package/src/lib/ui/DropdownMenu.tsx +4 -4
  985. package/src/lib/ui/HoverCard.tsx +1 -1
  986. package/src/lib/ui/Input.tsx +1 -1
  987. package/src/lib/ui/Popover.tsx +1 -1
  988. package/src/lib/ui/RadioGroup.tsx +1 -1
  989. package/src/lib/ui/Select.tsx +3 -3
  990. package/src/lib/ui/Slider.tsx +1 -1
  991. package/src/lib/ui/Stepper.tsx +8 -0
  992. package/src/lib/ui/Switch.tsx +1 -1
  993. package/src/lib/ui/SyntaxHighlight.tsx +27 -0
  994. package/src/lib/ui/Tabs.tsx +2 -2
  995. package/src/lib/ui/Textarea.tsx +1 -1
  996. package/src/lib/ui/Toggle.tsx +1 -1
  997. package/src/lib/ui/Tooltip.tsx +16 -1
  998. package/src/lib/ui/util.tsx +3 -0
  999. package/src/lib/util/MdxComponents.tsx +36 -18
  1000. package/src/lib/util/detectOS.ts +9 -0
  1001. package/src/lib/util/ensureArray.ts +3 -0
  1002. package/src/lib/util/joinPath.tsx +3 -0
  1003. package/src/lib/util/traverse.ts +12 -13
  1004. package/src/lib/util/types.ts +7 -0
  1005. package/src/lib/util/url.test.ts +51 -0
  1006. package/src/lib/util/url.ts +18 -0
  1007. package/src/lib/util/useExposedProps.tsx +12 -1
  1008. package/src/lib/util/useLatest.ts +18 -0
  1009. package/src/lib/util/useOnScreen.ts +6 -4
  1010. package/src/lib/util/useScrollToAnchor.ts +30 -20
  1011. package/src/shiki/langs/abap.js +1 -0
  1012. package/src/shiki/langs/actionscript-3.js +1 -0
  1013. package/src/shiki/langs/ada.js +1 -0
  1014. package/src/shiki/langs/angular-expression.js +1 -0
  1015. package/src/shiki/langs/angular-html.js +1 -0
  1016. package/src/shiki/langs/angular-inline-style.js +1 -0
  1017. package/src/shiki/langs/angular-inline-template.js +1 -0
  1018. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1019. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1020. package/src/shiki/langs/angular-template.js +1 -0
  1021. package/src/shiki/langs/angular-ts.js +1 -0
  1022. package/src/shiki/langs/apache.js +1 -0
  1023. package/src/shiki/langs/apex.js +1 -0
  1024. package/src/shiki/langs/apl.js +1 -0
  1025. package/src/shiki/langs/applescript.js +1 -0
  1026. package/src/shiki/langs/ara.js +1 -0
  1027. package/src/shiki/langs/asciidoc.js +1 -0
  1028. package/src/shiki/langs/asm.js +1 -0
  1029. package/src/shiki/langs/astro.js +1 -0
  1030. package/src/shiki/langs/awk.js +1 -0
  1031. package/src/shiki/langs/ballerina.js +1 -0
  1032. package/src/shiki/langs/bat.js +1 -0
  1033. package/src/shiki/langs/beancount.js +1 -0
  1034. package/src/shiki/langs/berry.js +1 -0
  1035. package/src/shiki/langs/bibtex.js +1 -0
  1036. package/src/shiki/langs/bicep.js +1 -0
  1037. package/src/shiki/langs/blade.js +1 -0
  1038. package/src/shiki/langs/bsl.js +1 -0
  1039. package/src/shiki/langs/c.js +1 -0
  1040. package/src/shiki/langs/cadence.js +1 -0
  1041. package/src/shiki/langs/cairo.js +1 -0
  1042. package/src/shiki/langs/clarity.js +1 -0
  1043. package/src/shiki/langs/clojure.js +1 -0
  1044. package/src/shiki/langs/cmake.js +1 -0
  1045. package/src/shiki/langs/cobol.js +1 -0
  1046. package/src/shiki/langs/codeowners.js +1 -0
  1047. package/src/shiki/langs/codeql.js +1 -0
  1048. package/src/shiki/langs/coffee.js +1 -0
  1049. package/src/shiki/langs/common-lisp.js +1 -0
  1050. package/src/shiki/langs/coq.js +1 -0
  1051. package/src/shiki/langs/cpp-macro.js +1 -0
  1052. package/src/shiki/langs/cpp.js +1 -0
  1053. package/src/shiki/langs/crystal.js +1 -0
  1054. package/src/shiki/langs/csharp.js +1 -0
  1055. package/src/shiki/langs/css.js +1 -0
  1056. package/src/shiki/langs/csv.js +1 -0
  1057. package/src/shiki/langs/cue.js +1 -0
  1058. package/src/shiki/langs/cypher.js +1 -0
  1059. package/src/shiki/langs/d.js +1 -0
  1060. package/src/shiki/langs/dart.js +1 -0
  1061. package/src/shiki/langs/dax.js +1 -0
  1062. package/src/shiki/langs/desktop.js +1 -0
  1063. package/src/shiki/langs/diff.js +1 -0
  1064. package/src/shiki/langs/docker.js +1 -0
  1065. package/src/shiki/langs/dotenv.js +1 -0
  1066. package/src/shiki/langs/dream-maker.js +1 -0
  1067. package/src/shiki/langs/edge.js +1 -0
  1068. package/src/shiki/langs/elixir.js +1 -0
  1069. package/src/shiki/langs/elm.js +1 -0
  1070. package/src/shiki/langs/emacs-lisp.js +1 -0
  1071. package/src/shiki/langs/erb.js +1 -0
  1072. package/src/shiki/langs/erlang.js +1 -0
  1073. package/src/shiki/langs/es-tag-css.js +1 -0
  1074. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1075. package/src/shiki/langs/es-tag-html.js +1 -0
  1076. package/src/shiki/langs/es-tag-sql.js +1 -0
  1077. package/src/shiki/langs/es-tag-xml.js +1 -0
  1078. package/src/shiki/langs/fennel.js +1 -0
  1079. package/src/shiki/langs/fish.js +1 -0
  1080. package/src/shiki/langs/fluent.js +1 -0
  1081. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1082. package/src/shiki/langs/fortran-free-form.js +1 -0
  1083. package/src/shiki/langs/fsharp.js +1 -0
  1084. package/src/shiki/langs/gdresource.js +1 -0
  1085. package/src/shiki/langs/gdscript.js +1 -0
  1086. package/src/shiki/langs/gdshader.js +1 -0
  1087. package/src/shiki/langs/genie.js +1 -0
  1088. package/src/shiki/langs/gherkin.js +1 -0
  1089. package/src/shiki/langs/git-commit.js +1 -0
  1090. package/src/shiki/langs/git-rebase.js +1 -0
  1091. package/src/shiki/langs/gleam.js +1 -0
  1092. package/src/shiki/langs/glimmer-js.js +1 -0
  1093. package/src/shiki/langs/glimmer-ts.js +1 -0
  1094. package/src/shiki/langs/glsl.js +1 -0
  1095. package/src/shiki/langs/gnuplot.js +1 -0
  1096. package/src/shiki/langs/go.js +1 -0
  1097. package/src/shiki/langs/graphql.js +1 -0
  1098. package/src/shiki/langs/groovy.js +1 -0
  1099. package/src/shiki/langs/hack.js +1 -0
  1100. package/src/shiki/langs/haml.js +1 -0
  1101. package/src/shiki/langs/handlebars.js +1 -0
  1102. package/src/shiki/langs/haskell.js +1 -0
  1103. package/src/shiki/langs/haxe.js +1 -0
  1104. package/src/shiki/langs/hcl.js +1 -0
  1105. package/src/shiki/langs/hjson.js +1 -0
  1106. package/src/shiki/langs/hlsl.js +1 -0
  1107. package/src/shiki/langs/html-derivative.js +1 -0
  1108. package/src/shiki/langs/html.js +1 -0
  1109. package/src/shiki/langs/http.js +1 -0
  1110. package/src/shiki/langs/hxml.js +1 -0
  1111. package/src/shiki/langs/hy.js +1 -0
  1112. package/src/shiki/langs/imba.js +1 -0
  1113. package/src/shiki/langs/ini.js +1 -0
  1114. package/src/shiki/langs/java.js +1 -0
  1115. package/src/shiki/langs/javascript.js +1 -0
  1116. package/src/shiki/langs/jinja-html.js +1 -0
  1117. package/src/shiki/langs/jinja.js +1 -0
  1118. package/src/shiki/langs/jison.js +1 -0
  1119. package/src/shiki/langs/json.js +1 -0
  1120. package/src/shiki/langs/json5.js +1 -0
  1121. package/src/shiki/langs/jsonc.js +1 -0
  1122. package/src/shiki/langs/jsonl.js +1 -0
  1123. package/src/shiki/langs/jsonnet.js +1 -0
  1124. package/src/shiki/langs/jssm.js +1 -0
  1125. package/src/shiki/langs/jsx.js +1 -0
  1126. package/src/shiki/langs/julia.js +1 -0
  1127. package/src/shiki/langs/kotlin.js +1 -0
  1128. package/src/shiki/langs/kusto.js +1 -0
  1129. package/src/shiki/langs/latex.js +1 -0
  1130. package/src/shiki/langs/lean.js +1 -0
  1131. package/src/shiki/langs/less.js +1 -0
  1132. package/src/shiki/langs/liquid.js +1 -0
  1133. package/src/shiki/langs/llvm.js +1 -0
  1134. package/src/shiki/langs/log.js +1 -0
  1135. package/src/shiki/langs/logo.js +1 -0
  1136. package/src/shiki/langs/lua.js +1 -0
  1137. package/src/shiki/langs/luau.js +1 -0
  1138. package/src/shiki/langs/make.js +1 -0
  1139. package/src/shiki/langs/markdown-vue.js +1 -0
  1140. package/src/shiki/langs/markdown.js +1 -0
  1141. package/src/shiki/langs/marko.js +1 -0
  1142. package/src/shiki/langs/matlab.js +1 -0
  1143. package/src/shiki/langs/mdc.js +1 -0
  1144. package/src/shiki/langs/mdx.js +1 -0
  1145. package/src/shiki/langs/mermaid.js +1 -0
  1146. package/src/shiki/langs/mipsasm.js +1 -0
  1147. package/src/shiki/langs/mojo.js +1 -0
  1148. package/src/shiki/langs/move.js +1 -0
  1149. package/src/shiki/langs/narrat.js +1 -0
  1150. package/src/shiki/langs/nextflow.js +1 -0
  1151. package/src/shiki/langs/nginx.js +1 -0
  1152. package/src/shiki/langs/nim.js +1 -0
  1153. package/src/shiki/langs/nix.js +1 -0
  1154. package/src/shiki/langs/nushell.js +1 -0
  1155. package/src/shiki/langs/objective-c.js +1 -0
  1156. package/src/shiki/langs/objective-cpp.js +1 -0
  1157. package/src/shiki/langs/ocaml.js +1 -0
  1158. package/src/shiki/langs/pascal.js +1 -0
  1159. package/src/shiki/langs/perl.js +1 -0
  1160. package/src/shiki/langs/php.js +1 -0
  1161. package/src/shiki/langs/plsql.js +1 -0
  1162. package/src/shiki/langs/po.js +1 -0
  1163. package/src/shiki/langs/polar.js +1 -0
  1164. package/src/shiki/langs/postcss.js +1 -0
  1165. package/src/shiki/langs/powerquery.js +1 -0
  1166. package/src/shiki/langs/powershell.js +1 -0
  1167. package/src/shiki/langs/prisma.js +1 -0
  1168. package/src/shiki/langs/prolog.js +1 -0
  1169. package/src/shiki/langs/proto.js +1 -0
  1170. package/src/shiki/langs/pug.js +1 -0
  1171. package/src/shiki/langs/puppet.js +1 -0
  1172. package/src/shiki/langs/purescript.js +1 -0
  1173. package/src/shiki/langs/python.js +1 -0
  1174. package/src/shiki/langs/qml.js +1 -0
  1175. package/src/shiki/langs/qmldir.js +1 -0
  1176. package/src/shiki/langs/qss.js +1 -0
  1177. package/src/shiki/langs/r.js +1 -0
  1178. package/src/shiki/langs/racket.js +1 -0
  1179. package/src/shiki/langs/raku.js +1 -0
  1180. package/src/shiki/langs/razor.js +1 -0
  1181. package/src/shiki/langs/reg.js +1 -0
  1182. package/src/shiki/langs/regexp.js +1 -0
  1183. package/src/shiki/langs/rel.js +1 -0
  1184. package/src/shiki/langs/riscv.js +1 -0
  1185. package/src/shiki/langs/rst.js +1 -0
  1186. package/src/shiki/langs/ruby.js +1 -0
  1187. package/src/shiki/langs/rust.js +1 -0
  1188. package/src/shiki/langs/sas.js +1 -0
  1189. package/src/shiki/langs/sass.js +1 -0
  1190. package/src/shiki/langs/scala.js +1 -0
  1191. package/src/shiki/langs/scheme.js +1 -0
  1192. package/src/shiki/langs/scss.js +1 -0
  1193. package/src/shiki/langs/sdbl.js +1 -0
  1194. package/src/shiki/langs/shaderlab.js +1 -0
  1195. package/src/shiki/langs/shellscript.js +1 -0
  1196. package/src/shiki/langs/shellsession.js +1 -0
  1197. package/src/shiki/langs/smalltalk.js +1 -0
  1198. package/src/shiki/langs/solidity.js +1 -0
  1199. package/src/shiki/langs/soy.js +1 -0
  1200. package/src/shiki/langs/sparql.js +1 -0
  1201. package/src/shiki/langs/splunk.js +1 -0
  1202. package/src/shiki/langs/sql.js +1 -0
  1203. package/src/shiki/langs/ssh-config.js +1 -0
  1204. package/src/shiki/langs/stata.js +1 -0
  1205. package/src/shiki/langs/stylus.js +1 -0
  1206. package/src/shiki/langs/svelte.js +1 -0
  1207. package/src/shiki/langs/swift.js +1 -0
  1208. package/src/shiki/langs/system-verilog.js +1 -0
  1209. package/src/shiki/langs/systemd.js +1 -0
  1210. package/src/shiki/langs/talonscript.js +1 -0
  1211. package/src/shiki/langs/tasl.js +1 -0
  1212. package/src/shiki/langs/tcl.js +1 -0
  1213. package/src/shiki/langs/templ.js +1 -0
  1214. package/src/shiki/langs/terraform.js +1 -0
  1215. package/src/shiki/langs/tex.js +1 -0
  1216. package/src/shiki/langs/toml.js +1 -0
  1217. package/src/shiki/langs/ts-tags.js +1 -0
  1218. package/src/shiki/langs/tsv.js +1 -0
  1219. package/src/shiki/langs/tsx.js +1 -0
  1220. package/src/shiki/langs/turtle.js +1 -0
  1221. package/src/shiki/langs/twig.js +1 -0
  1222. package/src/shiki/langs/typescript.js +1 -0
  1223. package/src/shiki/langs/typespec.js +1 -0
  1224. package/src/shiki/langs/typst.js +1 -0
  1225. package/src/shiki/langs/v.js +1 -0
  1226. package/src/shiki/langs/vala.js +1 -0
  1227. package/src/shiki/langs/vb.js +1 -0
  1228. package/src/shiki/langs/verilog.js +1 -0
  1229. package/src/shiki/langs/vhdl.js +1 -0
  1230. package/src/shiki/langs/viml.js +1 -0
  1231. package/src/shiki/langs/vue-directives.js +1 -0
  1232. package/src/shiki/langs/vue-html.js +1 -0
  1233. package/src/shiki/langs/vue-interpolations.js +1 -0
  1234. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1235. package/src/shiki/langs/vue.js +1 -0
  1236. package/src/shiki/langs/vyper.js +1 -0
  1237. package/src/shiki/langs/wasm.js +1 -0
  1238. package/src/shiki/langs/wenyan.js +1 -0
  1239. package/src/shiki/langs/wgsl.js +1 -0
  1240. package/src/shiki/langs/wikitext.js +1 -0
  1241. package/src/shiki/langs/wit.js +1 -0
  1242. package/src/shiki/langs/wolfram.js +1 -0
  1243. package/src/shiki/langs/xml.js +1 -0
  1244. package/src/shiki/langs/xsl.js +1 -0
  1245. package/src/shiki/langs/yaml.js +1 -0
  1246. package/src/shiki/langs/zenscript.js +1 -0
  1247. package/src/shiki/langs/zig.js +1 -0
  1248. package/src/shiki/themes/andromeeda.js +1 -0
  1249. package/src/shiki/themes/aurora-x.js +1 -0
  1250. package/src/shiki/themes/ayu-dark.js +1 -0
  1251. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1252. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1253. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1254. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1255. package/src/shiki/themes/dark-plus.js +1 -0
  1256. package/src/shiki/themes/dracula-soft.js +1 -0
  1257. package/src/shiki/themes/dracula.js +1 -0
  1258. package/src/shiki/themes/everforest-dark.js +1 -0
  1259. package/src/shiki/themes/everforest-light.js +1 -0
  1260. package/src/shiki/themes/github-dark-default.js +1 -0
  1261. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1262. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1263. package/src/shiki/themes/github-dark.js +1 -0
  1264. package/src/shiki/themes/github-light-default.js +1 -0
  1265. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1266. package/src/shiki/themes/github-light.js +1 -0
  1267. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1268. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1269. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1270. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1271. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1272. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1273. package/src/shiki/themes/houston.js +1 -0
  1274. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1275. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1276. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1277. package/src/shiki/themes/laserwave.js +1 -0
  1278. package/src/shiki/themes/light-plus.js +1 -0
  1279. package/src/shiki/themes/material-theme-darker.js +1 -0
  1280. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1281. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1282. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1283. package/src/shiki/themes/material-theme.js +1 -0
  1284. package/src/shiki/themes/min-dark.js +1 -0
  1285. package/src/shiki/themes/min-light.js +1 -0
  1286. package/src/shiki/themes/monokai.js +1 -0
  1287. package/src/shiki/themes/night-owl.js +1 -0
  1288. package/src/shiki/themes/nord.js +1 -0
  1289. package/src/shiki/themes/one-dark-pro.js +1 -0
  1290. package/src/shiki/themes/one-light.js +1 -0
  1291. package/src/shiki/themes/plastic.js +1 -0
  1292. package/src/shiki/themes/poimandres.js +1 -0
  1293. package/src/shiki/themes/red.js +1 -0
  1294. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1295. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1296. package/src/shiki/themes/rose-pine.js +1 -0
  1297. package/src/shiki/themes/slack-dark.js +1 -0
  1298. package/src/shiki/themes/slack-ochin.js +1 -0
  1299. package/src/shiki/themes/snazzy-light.js +1 -0
  1300. package/src/shiki/themes/solarized-dark.js +1 -0
  1301. package/src/shiki/themes/solarized-light.js +1 -0
  1302. package/src/shiki/themes/synthwave-84.js +1 -0
  1303. package/src/shiki/themes/tokyo-night.js +1 -0
  1304. package/src/shiki/themes/vesper.js +1 -0
  1305. package/src/shiki/themes/vitesse-black.js +1 -0
  1306. package/src/shiki/themes/vitesse-dark.js +1 -0
  1307. package/src/shiki/themes/vitesse-light.js +1 -0
  1308. package/client.d.ts +0 -8
  1309. package/dist/app/tailwind.d.ts +0 -4
  1310. package/dist/app/tailwind.js +0 -77
  1311. package/dist/app/tailwind.js.map +0 -1
  1312. package/dist/config/common.d.ts +0 -8
  1313. package/dist/config/common.js +0 -2
  1314. package/dist/config/common.js.map +0 -1
  1315. package/dist/config/validators/common.d.ts +0 -5145
  1316. package/dist/config/validators/common.js +0 -290
  1317. package/dist/config/validators/common.js.map +0 -1
  1318. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1319. package/dist/lib/components/SlotletProvider.js +0 -18
  1320. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1321. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  1322. package/dist/lib/components/SyntaxHighlight.js +0 -53
  1323. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1324. package/dist/lib/components/context/PluginSystem.js +0 -2
  1325. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1326. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1327. package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
  1328. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
  1329. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1330. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1331. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1332. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1333. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1334. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1335. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1336. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1337. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1338. package/dist/vite/plugin-docs.test.js +0 -22
  1339. package/dist/vite/plugin-docs.test.js.map +0 -1
  1340. package/dist/vite/prerender.d.ts +0 -22
  1341. package/dist/vite/prerender.js +0 -89
  1342. package/dist/vite/prerender.js.map +0 -1
  1343. package/dist/zuplo/env.d.ts +0 -7
  1344. package/dist/zuplo/env.js +0 -12
  1345. package/dist/zuplo/env.js.map +0 -1
  1346. package/lib/AuthenticationPlugin-DeEA69mE.js +0 -58
  1347. package/lib/AuthenticationPlugin-DeEA69mE.js.map +0 -1
  1348. package/lib/Markdown-8mv9nhGd.js.map +0 -1
  1349. package/lib/MdxPage-BalfwlsD.js +0 -193
  1350. package/lib/MdxPage-BalfwlsD.js.map +0 -1
  1351. package/lib/OpenApiRoute-ULLXjfro.js +0 -36
  1352. package/lib/OpenApiRoute-ULLXjfro.js.map +0 -1
  1353. package/lib/OperationList-B3VX94x4.js +0 -5179
  1354. package/lib/OperationList-B3VX94x4.js.map +0 -1
  1355. package/lib/Select-BcAbBUmk.js +0 -223
  1356. package/lib/Select-BcAbBUmk.js.map +0 -1
  1357. package/lib/SlotletProvider-D0mFmGJu.js +0 -221
  1358. package/lib/SlotletProvider-D0mFmGJu.js.map +0 -1
  1359. package/lib/Spinner-BlzrEEk1.js +0 -51
  1360. package/lib/Spinner-BlzrEEk1.js.map +0 -1
  1361. package/lib/SyntaxHighlight-B0L4SC_N.js +0 -2986
  1362. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  1363. package/lib/ZudokuContext-dUyBGMap.js +0 -1229
  1364. package/lib/ZudokuContext-dUyBGMap.js.map +0 -1
  1365. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1366. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1367. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1368. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1369. package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
  1370. package/lib/circular-DxaIIlWD.js.map +0 -1
  1371. package/lib/cn-qaFjX9_3.js.map +0 -1
  1372. package/lib/context-rwLGh-6_.js +0 -22
  1373. package/lib/context-rwLGh-6_.js.map +0 -1
  1374. package/lib/createServer-E3cXjB0P.js.map +0 -1
  1375. package/lib/hook-NIpDSpau.js +0 -227
  1376. package/lib/hook-NIpDSpau.js.map +0 -1
  1377. package/lib/index-B7mqiOei.js +0 -509
  1378. package/lib/index-B7mqiOei.js.map +0 -1
  1379. package/lib/index-Djenk2Hj.js +0 -36
  1380. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1381. package/lib/index-P0YUtHIb.js +0 -2065
  1382. package/lib/index-P0YUtHIb.js.map +0 -1
  1383. package/lib/index.esm-9-TF9KQB.js +0 -692
  1384. package/lib/index.esm-CrSoEshU.js +0 -1207
  1385. package/lib/index.esm-CrSoEshU.js.map +0 -1
  1386. package/lib/invariant-Caa8-XvF.js +0 -26
  1387. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  1388. package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
  1389. package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
  1390. package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
  1391. package/lib/post-processors/removeExtensions.js +0 -11
  1392. package/lib/post-processors/removeExtensions.js.map +0 -1
  1393. package/lib/post-processors/removeParameters.js +0 -48
  1394. package/lib/post-processors/removeParameters.js.map +0 -1
  1395. package/lib/post-processors/removePaths.js +0 -28
  1396. package/lib/post-processors/removePaths.js.map +0 -1
  1397. package/lib/post-processors/traverse.js +0 -15
  1398. package/lib/post-processors/traverse.js.map +0 -1
  1399. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1400. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1401. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1402. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1403. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1404. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1405. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1406. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1407. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1408. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1409. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1410. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1411. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1412. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1413. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1414. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1415. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1416. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1417. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1418. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1419. package/lib/state-bfQxaDxU.js +0 -211
  1420. package/lib/state-bfQxaDxU.js.map +0 -1
  1421. package/lib/useExposedProps-Bbf99zic.js.map +0 -1
  1422. package/lib/useScrollToAnchor-BVCQSeKB.js +0 -286
  1423. package/lib/useScrollToAnchor-BVCQSeKB.js.map +0 -1
  1424. package/src/app/tailwind.ts +0 -83
  1425. package/src/lib/components/SlotletProvider.tsx +0 -55
  1426. package/src/lib/components/SyntaxHighlight.tsx +0 -171
  1427. package/src/lib/components/context/PluginSystem.ts +0 -0
  1428. package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
  1429. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1430. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1431. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1432. /package/dist/lib/{plugins/openapi/post-processors/removeExtensions.test.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1433. /package/dist/lib/plugins/openapi/{post-processors/removeParameters.test.d.ts → processors/removeExtensions.test.d.ts} +0 -0
  1434. /package/dist/lib/plugins/openapi/{post-processors/removePaths.test.d.ts → processors/removeParameters.test.d.ts} +0 -0
  1435. /package/dist/{vite/plugin-docs.test.d.ts → lib/plugins/openapi/processors/removePaths.test.d.ts} +0 -0
  1436. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1437. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1438. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,23 +1,19 @@
1
- var Je = Object.defineProperty;
2
- var Oe = (t, e, n) => e in t ? Je(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var b = (t, e, n) => Oe(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { j as G } from "./jsx-runtime-Bdg6XQ1m.js";
5
- import { g as ze } from "./_commonjsHelpers-BkfeUUK-.js";
6
- import { C as De } from "./ClientOnly-E7hGysn1.js";
7
- import { j as ae } from "./joinUrl-nLx9pD-Z.js";
8
- import { A as Ne } from "./AuthenticationPlugin-DeEA69mE.js";
9
- import { u as Ke } from "./ZudokuContext-dUyBGMap.js";
10
- import { N as We } from "./chunk-SYFQ2XB5-QijJrSf0.js";
11
- import { Z as He } from "./invariant-Caa8-XvF.js";
12
- import { u as x } from "./state-bfQxaDxU.js";
13
- var N = { exports: {} }, $e = N.exports, se;
14
- function Fe() {
15
- return se || (se = 1, function(t) {
1
+ import { j as L } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { g as Pe, Z as Le } from "./invariant-DAFpPywt.js";
3
+ import { C as Ue } from "./ClientOnly-E7hGysn1.js";
4
+ import { d as xe, j as fe, u as x } from "./hook-BXffmvNp.js";
5
+ import { LogOutIcon as Ce } from "lucide-react";
6
+ import { S as Ie, a as je, b as Oe } from "./SignUp-B7jT3koL.js";
7
+ import { N as ze } from "./chunk-BAXFHI7N-C9WnHsLV.js";
8
+ import { useZudoku as Je } from "./zudoku.components.js";
9
+ var J = { exports: {} }, De = J.exports, re;
10
+ function Ne() {
11
+ return re || (re = 1, function(t) {
16
12
  (function(e, n) {
17
13
  t.exports ? t.exports = n() : e.log = n();
18
- })($e, function() {
14
+ })(De, function() {
19
15
  var e = function() {
20
- }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
16
+ }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), s = [
21
17
  "trace",
22
18
  "debug",
23
19
  "info",
@@ -36,71 +32,71 @@ function Fe() {
36
32
  };
37
33
  }
38
34
  }
39
- function h() {
35
+ function f() {
40
36
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
41
37
  }
42
- function _(l) {
43
- return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? h : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
38
+ function y(l) {
39
+ return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? f : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
44
40
  }
45
41
  function p() {
46
- for (var l = this.getLevel(), m = 0; m < a.length; m++) {
47
- var u = a[m];
42
+ for (var l = this.getLevel(), m = 0; m < s.length; m++) {
43
+ var u = s[m];
48
44
  this[u] = m < l ? e : this.methodFactory(u, l, this.name);
49
45
  }
50
46
  if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
51
47
  return "No console available for logging";
52
48
  }
53
- function y(l) {
49
+ function A(l) {
54
50
  return function() {
55
51
  typeof console !== n && (p.call(this), this[l].apply(this, arguments));
56
52
  };
57
53
  }
58
- function T(l, m, u) {
59
- return _(l) || y.apply(this, arguments);
54
+ function b(l, m, u) {
55
+ return y(l) || A.apply(this, arguments);
60
56
  }
61
- function f(l, m) {
62
- var u = this, O, M, R, v = "loglevel";
63
- typeof l == "string" ? v += ":" + l : typeof l == "symbol" && (v = void 0);
64
- function Le(d) {
65
- var g = (a[d] || "silent").toUpperCase();
66
- if (!(typeof window === n || !v)) {
57
+ function h(l, m) {
58
+ var u = this, O, H, P, _ = "loglevel";
59
+ typeof l == "string" ? _ += ":" + l : typeof l == "symbol" && (_ = void 0);
60
+ function Ee(d) {
61
+ var g = (s[d] || "silent").toUpperCase();
62
+ if (!(typeof window === n || !_)) {
67
63
  try {
68
- window.localStorage[v] = g;
64
+ window.localStorage[_] = g;
69
65
  return;
70
66
  } catch {
71
67
  }
72
68
  try {
73
- window.document.cookie = encodeURIComponent(v) + "=" + g + ";";
69
+ window.document.cookie = encodeURIComponent(_) + "=" + g + ";";
74
70
  } catch {
75
71
  }
76
72
  }
77
73
  }
78
- function re() {
74
+ function ee() {
79
75
  var d;
80
- if (!(typeof window === n || !v)) {
76
+ if (!(typeof window === n || !_)) {
81
77
  try {
82
- d = window.localStorage[v];
78
+ d = window.localStorage[_];
83
79
  } catch {
84
80
  }
85
81
  if (typeof d === n)
86
82
  try {
87
- var g = window.document.cookie, z = encodeURIComponent(v), ie = g.indexOf(z + "=");
88
- ie !== -1 && (d = /^([^;]+)/.exec(
89
- g.slice(ie + z.length + 1)
83
+ var g = window.document.cookie, z = encodeURIComponent(_), ne = g.indexOf(z + "=");
84
+ ne !== -1 && (d = /^([^;]+)/.exec(
85
+ g.slice(ne + z.length + 1)
90
86
  )[1]);
91
87
  } catch {
92
88
  }
93
89
  return u.levels[d] === void 0 && (d = void 0), d;
94
90
  }
95
91
  }
96
- function je() {
97
- if (!(typeof window === n || !v)) {
92
+ function ke() {
93
+ if (!(typeof window === n || !_)) {
98
94
  try {
99
- window.localStorage.removeItem(v);
95
+ window.localStorage.removeItem(_);
100
96
  } catch {
101
97
  }
102
98
  try {
103
- window.document.cookie = encodeURIComponent(v) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
99
+ window.document.cookie = encodeURIComponent(_) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
104
100
  } catch {
105
101
  }
106
102
  }
@@ -118,14 +114,14 @@ function Fe() {
118
114
  WARN: 3,
119
115
  ERROR: 4,
120
116
  SILENT: 5
121
- }, u.methodFactory = m || T, u.getLevel = function() {
122
- return R ?? M ?? O;
117
+ }, u.methodFactory = m || b, u.getLevel = function() {
118
+ return P ?? H ?? O;
123
119
  }, u.setLevel = function(d, g) {
124
- return R = U(d), g !== !1 && Le(R), p.call(u);
120
+ return P = U(d), g !== !1 && Ee(P), p.call(u);
125
121
  }, u.setDefaultLevel = function(d) {
126
- M = U(d), re() || u.setLevel(d, !1);
122
+ H = U(d), ee() || u.setLevel(d, !1);
127
123
  }, u.resetLevel = function() {
128
- R = null, je(), p.call(u);
124
+ P = null, ke(), p.call(u);
129
125
  }, u.enableAll = function(d) {
130
126
  u.setLevel(u.levels.TRACE, d);
131
127
  }, u.disableAll = function(d) {
@@ -137,33 +133,32 @@ function Fe() {
137
133
  }, O = U(
138
134
  i ? i.getLevel() : "WARN"
139
135
  );
140
- var oe = re();
141
- oe != null && (R = U(oe)), p.call(u);
136
+ var te = ee();
137
+ te != null && (P = U(te)), p.call(u);
142
138
  }
143
- i = new f(), i.getLogger = function(m) {
139
+ i = new h(), i.getLogger = function(m) {
144
140
  if (typeof m != "symbol" && typeof m != "string" || m === "")
145
141
  throw new TypeError("You must supply a name when creating a logger.");
146
142
  var u = r[m];
147
- return u || (u = r[m] = new f(
143
+ return u || (u = r[m] = new h(
148
144
  m,
149
145
  i.methodFactory
150
146
  )), u;
151
147
  };
152
- var J = typeof window !== n ? window.log : void 0;
148
+ var R = typeof window !== n ? window.log : void 0;
153
149
  return i.noConflict = function() {
154
- return typeof window !== n && window.log === i && (window.log = J), i;
150
+ return typeof window !== n && window.log === i && (window.log = R), i;
155
151
  }, i.getLoggers = function() {
156
152
  return r;
157
153
  }, i.default = i, i;
158
154
  });
159
- }(N)), N.exports;
160
- }
161
- var Me = Fe();
162
- const ce = /* @__PURE__ */ ze(Me);
163
- let Z;
164
- var D, me;
165
- (typeof navigator > "u" || !((me = (D = navigator.userAgent) == null ? void 0 : D.startsWith) != null && me.call(D, "Mozilla/5.0 "))) && (Z = "oauth4webapi/v2.17.0");
166
- function Q(t, e) {
155
+ }(J)), J.exports;
156
+ }
157
+ var We = Ne();
158
+ const oe = /* @__PURE__ */ Pe(We);
159
+ let B;
160
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (B = "oauth4webapi/v2.17.0");
161
+ function V(t, e) {
167
162
  if (t == null)
168
163
  return !1;
169
164
  try {
@@ -172,32 +167,32 @@ function Q(t, e) {
172
167
  return !1;
173
168
  }
174
169
  }
175
- const W = Symbol(), qe = Symbol(), X = Symbol(), ge = Symbol(), Be = Symbol(), Ve = Symbol(), Ge = new TextEncoder(), Ze = new TextDecoder();
170
+ const N = Symbol(), Ke = Symbol(), G = Symbol(), He = Symbol(), $e = Symbol(), Fe = Symbol(), Me = new TextEncoder(), Be = new TextDecoder();
176
171
  function E(t) {
177
- return typeof t == "string" ? Ge.encode(t) : Ze.decode(t);
172
+ return typeof t == "string" ? Me.encode(t) : Be.decode(t);
178
173
  }
179
- const ue = 32768;
180
- function Ye(t) {
174
+ const ie = 32768;
175
+ function qe(t) {
181
176
  t instanceof ArrayBuffer && (t = new Uint8Array(t));
182
177
  const e = [];
183
- for (let n = 0; n < t.byteLength; n += ue)
184
- e.push(String.fromCharCode.apply(null, t.subarray(n, n + ue)));
178
+ for (let n = 0; n < t.byteLength; n += ie)
179
+ e.push(String.fromCharCode.apply(null, t.subarray(n, n + ie)));
185
180
  return btoa(e.join("")).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
186
181
  }
187
- function Qe(t) {
182
+ function Ve(t) {
188
183
  try {
189
184
  const e = atob(t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "")), n = new Uint8Array(e.length);
190
185
  for (let o = 0; o < e.length; o++)
191
186
  n[o] = e.charCodeAt(o);
192
187
  return n;
193
188
  } catch (e) {
194
- throw new s("The input to be decoded is not correctly encoded.", { cause: e });
189
+ throw new a("The input to be decoded is not correctly encoded.", { cause: e });
195
190
  }
196
191
  }
197
- function A(t) {
198
- return typeof t == "string" ? Qe(t) : Ye(t);
192
+ function T(t) {
193
+ return typeof t == "string" ? Ve(t) : qe(t);
199
194
  }
200
- class Xe {
195
+ class Ge {
201
196
  constructor(e) {
202
197
  this.cache = /* @__PURE__ */ new Map(), this._cache = /* @__PURE__ */ new Map(), this.maxSize = e;
203
198
  }
@@ -221,32 +216,30 @@ class Xe {
221
216
  this.cache.set(e, n), this.cache.size >= this.maxSize && (this._cache = this.cache, this.cache = /* @__PURE__ */ new Map());
222
217
  }
223
218
  }
224
- class S extends Error {
219
+ class v extends Error {
225
220
  constructor(e) {
226
- var n;
227
- super(e ?? "operation not supported"), this.name = this.constructor.name, (n = Error.captureStackTrace) == null || n.call(Error, this, this.constructor);
221
+ super(e ?? "operation not supported"), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
228
222
  }
229
223
  }
230
- class et extends Error {
224
+ class Ze extends Error {
231
225
  constructor(e, n) {
232
- var o;
233
- super(e, n), this.name = this.constructor.name, (o = Error.captureStackTrace) == null || o.call(Error, this, this.constructor);
226
+ super(e, n), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
234
227
  }
235
228
  }
236
- const s = et, ye = new Xe(100);
237
- function be(t) {
229
+ const a = Ze, pe = new Ge(100);
230
+ function we(t) {
238
231
  return t instanceof CryptoKey;
239
232
  }
240
- function _e(t) {
241
- return be(t) && t.type === "private";
233
+ function Ye(t) {
234
+ return we(t) && t.type === "private";
242
235
  }
243
- function tt(t) {
244
- return be(t) && t.type === "public";
236
+ function Qe(t) {
237
+ return we(t) && t.type === "public";
245
238
  }
246
- function ee(t) {
239
+ function Z(t) {
247
240
  try {
248
241
  const e = t.headers.get("dpop-nonce");
249
- e && ye.set(new URL(t.url).origin, e);
242
+ e && pe.set(new URL(t.url).origin, e);
250
243
  } catch {
251
244
  }
252
245
  return t;
@@ -254,27 +247,27 @@ function ee(t) {
254
247
  function C(t) {
255
248
  return !(t === null || typeof t != "object" || Array.isArray(t));
256
249
  }
257
- function H(t) {
258
- Q(t, Headers) && (t = Object.fromEntries(t.entries()));
250
+ function W(t) {
251
+ V(t, Headers) && (t = Object.fromEntries(t.entries()));
259
252
  const e = new Headers(t);
260
- if (Z && !e.has("user-agent") && e.set("user-agent", Z), e.has("authorization"))
253
+ if (B && !e.has("user-agent") && e.set("user-agent", B), e.has("authorization"))
261
254
  throw new TypeError('"options.headers" must not include the "authorization" header name');
262
255
  if (e.has("dpop"))
263
256
  throw new TypeError('"options.headers" must not include the "dpop" header name');
264
257
  return e;
265
258
  }
266
- function te(t) {
259
+ function Xe(t) {
267
260
  if (typeof t == "function" && (t = t()), !(t instanceof AbortSignal))
268
261
  throw new TypeError('"options.signal" must return or be an instance of AbortSignal');
269
262
  return t;
270
263
  }
271
- async function nt(t, e) {
264
+ async function et(t, e) {
272
265
  if (!(t instanceof URL))
273
266
  throw new TypeError('"issuerIdentifier" must be an instance of URL');
274
267
  if (t.protocol !== "https:" && t.protocol !== "http:")
275
268
  throw new TypeError('"issuer.protocol" must be "https:" or "http:"');
276
269
  const n = new URL(t.href);
277
- switch (e == null ? void 0 : e.algorithm) {
270
+ switch (e?.algorithm) {
278
271
  case void 0:
279
272
  case "oidc":
280
273
  n.pathname = `${n.pathname}/.well-known/openid-configuration`.replace("//", "/");
@@ -285,74 +278,61 @@ async function nt(t, e) {
285
278
  default:
286
279
  throw new TypeError('"options.algorithm" must be "oidc" (default), or "oauth2"');
287
280
  }
288
- const o = H(e == null ? void 0 : e.headers);
289
- return o.set("accept", "application/json"), ((e == null ? void 0 : e[X]) || fetch)(n.href, {
281
+ const o = W(e?.headers);
282
+ return o.set("accept", "application/json"), (e?.[G] || fetch)(n.href, {
290
283
  headers: Object.fromEntries(o.entries()),
291
284
  method: "GET",
292
285
  redirect: "manual",
293
- signal: e != null && e.signal ? te(e.signal) : null
294
- }).then(ee);
286
+ signal: null
287
+ }).then(Z);
295
288
  }
296
289
  function w(t) {
297
290
  return typeof t == "string" && t.length !== 0;
298
291
  }
299
- async function rt(t, e) {
292
+ async function tt(t, e) {
300
293
  if (!(t instanceof URL))
301
294
  throw new TypeError('"expectedIssuer" must be an instance of URL');
302
- if (!Q(e, Response))
295
+ if (!V(e, Response))
303
296
  throw new TypeError('"response" must be an instance of Response');
304
297
  if (e.status !== 200)
305
- throw new s('"response" is not a conform Authorization Server Metadata response');
306
- ne(e);
298
+ throw new a('"response" is not a conform Authorization Server Metadata response');
299
+ X(e);
307
300
  let n;
308
301
  try {
309
302
  n = await e.json();
310
303
  } catch (o) {
311
- throw new s('failed to parse "response" body as JSON', { cause: o });
304
+ throw new a('failed to parse "response" body as JSON', { cause: o });
312
305
  }
313
306
  if (!C(n))
314
- throw new s('"response" body must be a top level object');
307
+ throw new a('"response" body must be a top level object');
315
308
  if (!w(n.issuer))
316
- throw new s('"response" body "issuer" property must be a non-empty string');
309
+ throw new a('"response" body "issuer" property must be a non-empty string');
317
310
  if (new URL(n.issuer).href !== t.href)
318
- throw new s('"response" body "issuer" does not match "expectedIssuer"');
311
+ throw new a('"response" body "issuer" does not match "expectedIssuer"');
319
312
  return n;
320
313
  }
321
- function $() {
322
- return A(crypto.getRandomValues(new Uint8Array(32)));
314
+ function Y() {
315
+ return T(crypto.getRandomValues(new Uint8Array(32)));
323
316
  }
324
- function ot() {
325
- return $();
317
+ function nt() {
318
+ return Y();
326
319
  }
327
- function it() {
328
- return $();
320
+ function rt() {
321
+ return Y();
329
322
  }
330
- async function at(t) {
323
+ async function ot(t) {
331
324
  if (!w(t))
332
325
  throw new TypeError('"codeVerifier" must be a non-empty string');
333
- return A(await crypto.subtle.digest("SHA-256", E(t)));
326
+ return T(await crypto.subtle.digest("SHA-256", E(t)));
334
327
  }
335
- function st(t) {
336
- if (t instanceof CryptoKey)
337
- return { key: t };
338
- if (!((t == null ? void 0 : t.key) instanceof CryptoKey))
339
- return {};
340
- if (t.kid !== void 0 && !w(t.kid))
341
- throw new TypeError('"kid" must be a non-empty string');
342
- return {
343
- key: t.key,
344
- kid: t.kid,
345
- modifyAssertion: t[ge]
346
- };
347
- }
348
- function le(t) {
328
+ function se(t) {
349
329
  return encodeURIComponent(t).replace(/%20/g, "+");
350
330
  }
351
- function ct(t, e) {
352
- const n = le(t), o = le(e);
331
+ function it(t, e) {
332
+ const n = se(t), o = se(e);
353
333
  return `Basic ${btoa(`${n}:${o}`)}`;
354
334
  }
355
- function ut(t) {
335
+ function st(t) {
356
336
  switch (t.algorithm.hash.name) {
357
337
  case "SHA-256":
358
338
  return "PS256";
@@ -361,10 +341,10 @@ function ut(t) {
361
341
  case "SHA-512":
362
342
  return "PS512";
363
343
  default:
364
- throw new S("unsupported RsaHashedKeyAlgorithm hash name");
344
+ throw new v("unsupported RsaHashedKeyAlgorithm hash name");
365
345
  }
366
346
  }
367
- function lt(t) {
347
+ function at(t) {
368
348
  switch (t.algorithm.hash.name) {
369
349
  case "SHA-256":
370
350
  return "RS256";
@@ -373,10 +353,10 @@ function lt(t) {
373
353
  case "SHA-512":
374
354
  return "RS512";
375
355
  default:
376
- throw new S("unsupported RsaHashedKeyAlgorithm hash name");
356
+ throw new v("unsupported RsaHashedKeyAlgorithm hash name");
377
357
  }
378
358
  }
379
- function dt(t) {
359
+ function ct(t) {
380
360
  switch (t.algorithm.namedCurve) {
381
361
  case "P-256":
382
362
  return "ES256";
@@ -385,295 +365,267 @@ function dt(t) {
385
365
  case "P-521":
386
366
  return "ES512";
387
367
  default:
388
- throw new S("unsupported EcKeyAlgorithm namedCurve");
368
+ throw new v("unsupported EcKeyAlgorithm namedCurve");
389
369
  }
390
370
  }
391
- function ve(t) {
371
+ function ut(t) {
392
372
  switch (t.algorithm.name) {
393
373
  case "RSA-PSS":
394
- return ut(t);
374
+ return st(t);
395
375
  case "RSASSA-PKCS1-v1_5":
396
- return lt(t);
376
+ return at(t);
397
377
  case "ECDSA":
398
- return dt(t);
378
+ return ct(t);
399
379
  case "Ed25519":
400
380
  case "Ed448":
401
381
  return "EdDSA";
402
382
  default:
403
- throw new S("unsupported CryptoKey algorithm name");
383
+ throw new v("unsupported CryptoKey algorithm name");
404
384
  }
405
385
  }
406
- function L(t) {
407
- const e = t == null ? void 0 : t[W];
386
+ function K(t) {
387
+ const e = t?.[N];
408
388
  return typeof e == "number" && Number.isFinite(e) ? e : 0;
409
389
  }
410
- function Se(t) {
411
- const e = t == null ? void 0 : t[qe];
390
+ function me(t) {
391
+ const e = t?.[Ke];
412
392
  return typeof e == "number" && Number.isFinite(e) && Math.sign(e) !== -1 ? e : 30;
413
393
  }
414
- function F() {
394
+ function Q() {
415
395
  return Math.floor(Date.now() / 1e3);
416
396
  }
417
- function ht(t, e) {
418
- const n = F() + L(e);
419
- return {
420
- jti: $(),
421
- aud: [t.issuer, t.token_endpoint],
422
- exp: n + 60,
423
- iat: n,
424
- nbf: n,
425
- iss: e.client_id,
426
- sub: e.client_id
427
- };
428
- }
429
- async function ft(t, e, n, o, a) {
430
- const r = { alg: ve(n), kid: o }, i = ht(t, e);
431
- return a == null || a(r, i), Te(r, i, n);
432
- }
433
- function j(t) {
397
+ function I(t) {
434
398
  if (typeof t != "object" || t === null)
435
399
  throw new TypeError('"as" must be an object');
436
400
  if (!w(t.issuer))
437
401
  throw new TypeError('"as.issuer" property must be a non-empty string');
438
402
  return !0;
439
403
  }
440
- function I(t) {
404
+ function j(t) {
441
405
  if (typeof t != "object" || t === null)
442
406
  throw new TypeError('"client" must be an object');
443
407
  if (!w(t.client_id))
444
408
  throw new TypeError('"client.client_id" property must be a non-empty string');
445
409
  return !0;
446
410
  }
447
- function de(t) {
411
+ function ae(t) {
448
412
  if (!w(t))
449
413
  throw new TypeError('"client.client_secret" property must be a non-empty string');
450
414
  return t;
451
415
  }
452
- function q(t, e) {
453
- if (e !== void 0)
454
- throw new TypeError(`"options.clientPrivateKey" property must not be provided when ${t} client authentication method is used.`);
455
- }
456
- function he(t, e) {
416
+ function ce(t, e) {
457
417
  if (e !== void 0)
458
418
  throw new TypeError(`"client.client_secret" property must not be provided when ${t} client authentication method is used.`);
459
419
  }
460
- async function pt(t, e, n, o, a) {
420
+ async function lt(t, e, n, o, s) {
461
421
  switch (n.delete("client_secret"), n.delete("client_assertion_type"), n.delete("client_assertion"), e.token_endpoint_auth_method) {
462
422
  case void 0:
463
423
  case "client_secret_basic": {
464
- q("client_secret_basic", a), o.set("authorization", ct(e.client_id, de(e.client_secret)));
424
+ o.set("authorization", it(e.client_id, ae(e.client_secret)));
465
425
  break;
466
426
  }
467
427
  case "client_secret_post": {
468
- q("client_secret_post", a), n.set("client_id", e.client_id), n.set("client_secret", de(e.client_secret));
469
- break;
470
- }
471
- case "private_key_jwt": {
472
- if (he("private_key_jwt", e.client_secret), a === void 0)
473
- throw new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
474
- const { key: r, kid: i, modifyAssertion: c } = st(a);
475
- if (!_e(r))
476
- throw new TypeError('"options.clientPrivateKey.key" must be a private CryptoKey');
477
- n.set("client_id", e.client_id), n.set("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"), n.set("client_assertion", await ft(t, e, r, i, c));
428
+ n.set("client_id", e.client_id), n.set("client_secret", ae(e.client_secret));
478
429
  break;
479
430
  }
431
+ case "private_key_jwt":
432
+ throw ce("private_key_jwt", e.client_secret), new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
480
433
  case "tls_client_auth":
481
434
  case "self_signed_tls_client_auth":
482
435
  case "none": {
483
- he(e.token_endpoint_auth_method, e.client_secret), q(e.token_endpoint_auth_method, a), n.set("client_id", e.client_id);
436
+ ce(e.token_endpoint_auth_method, e.client_secret), e.token_endpoint_auth_method, n.set("client_id", e.client_id);
484
437
  break;
485
438
  }
486
439
  default:
487
- throw new S("unsupported client token_endpoint_auth_method");
440
+ throw new v("unsupported client token_endpoint_auth_method");
488
441
  }
489
442
  }
490
- async function Te(t, e, n) {
443
+ async function dt(t, e, n) {
491
444
  if (!n.usages.includes("sign"))
492
445
  throw new TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');
493
- const o = `${A(E(JSON.stringify(t)))}.${A(E(JSON.stringify(e)))}`, a = A(await crypto.subtle.sign(xe(n), n, E(o)));
494
- return `${o}.${a}`;
446
+ const o = `${T(E(JSON.stringify(t)))}.${T(E(JSON.stringify(e)))}`, s = T(await crypto.subtle.sign(Te(n), n, E(o)));
447
+ return `${o}.${s}`;
495
448
  }
496
- async function wt(t, e, n, o, a, r) {
497
- var T;
498
- const { privateKey: i, publicKey: c, nonce: h = ye.get(n.origin) } = e;
499
- if (!_e(i))
449
+ async function ht(t, e, n, o, s, r) {
450
+ const { privateKey: i, publicKey: c, nonce: f = pe.get(n.origin) } = e;
451
+ if (!Ye(i))
500
452
  throw new TypeError('"DPoP.privateKey" must be a private CryptoKey');
501
- if (!tt(c))
453
+ if (!Qe(c))
502
454
  throw new TypeError('"DPoP.publicKey" must be a public CryptoKey');
503
- if (h !== void 0 && !w(h))
455
+ if (f !== void 0 && !w(f))
504
456
  throw new TypeError('"DPoP.nonce" must be a non-empty string or undefined');
505
457
  if (!c.extractable)
506
458
  throw new TypeError('"DPoP.publicKey.extractable" must be true');
507
- const _ = F() + a, p = {
508
- alg: ve(i),
459
+ const y = Q() + s, p = {
460
+ alg: ut(i),
509
461
  typ: "dpop+jwt",
510
- jwk: await gt(c)
511
- }, y = {
512
- iat: _,
513
- jti: $(),
462
+ jwk: await pt(c)
463
+ }, A = {
464
+ iat: y,
465
+ jti: Y(),
514
466
  htm: o,
515
- nonce: h,
467
+ nonce: f,
516
468
  htu: `${n.origin}${n.pathname}`,
517
- ath: r ? A(await crypto.subtle.digest("SHA-256", E(r))) : void 0
469
+ ath: r ? T(await crypto.subtle.digest("SHA-256", E(r))) : void 0
518
470
  };
519
- (T = e[ge]) == null || T.call(e, p, y), t.set("dpop", await Te(p, y, i));
471
+ e[He]?.(p, A), t.set("dpop", await dt(p, A, i));
520
472
  }
521
- let K;
522
- async function mt(t) {
523
- const { kty: e, e: n, n: o, x: a, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), c = { kty: e, e: n, n: o, x: a, y: r, crv: i };
524
- return K.set(t, c), c;
473
+ let D;
474
+ async function ft(t) {
475
+ const { kty: e, e: n, n: o, x: s, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), c = { kty: e, e: n, n: o, x: s, y: r, crv: i };
476
+ return D.set(t, c), c;
525
477
  }
526
- async function gt(t) {
527
- return K || (K = /* @__PURE__ */ new WeakMap()), K.get(t) || mt(t);
478
+ async function pt(t) {
479
+ return D || (D = /* @__PURE__ */ new WeakMap()), D.get(t) || ft(t);
528
480
  }
529
- function fe(t, e, n) {
481
+ function ue(t, e, n) {
530
482
  if (typeof t != "string")
531
483
  throw n ? new TypeError(`"as.mtls_endpoint_aliases.${e}" must be a string`) : new TypeError(`"as.${e}" must be a string`);
532
484
  return new URL(t);
533
485
  }
534
- function ke(t, e, n = !1) {
535
- return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? fe(t.mtls_endpoint_aliases[e], e, n) : fe(t[e], e, n);
486
+ function ge(t, e, n = !1) {
487
+ return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? ue(t.mtls_endpoint_aliases[e], e, n) : ue(t[e], e, n);
536
488
  }
537
- function Ae(t, e) {
538
- return !!(t.use_mtls_endpoint_aliases || e != null && e[Ve]);
489
+ function ye(t, e) {
490
+ return !!(t.use_mtls_endpoint_aliases || e?.[Fe]);
539
491
  }
540
- function Y(t) {
492
+ function q(t) {
541
493
  const e = t;
542
494
  return typeof e != "object" || Array.isArray(e) || e === null ? !1 : e.error !== void 0;
543
495
  }
544
- async function yt(t, e, n, o, a, r) {
496
+ async function wt(t, e, n, o, s, r) {
545
497
  if (!w(t))
546
498
  throw new TypeError('"accessToken" must be a non-empty string');
547
499
  if (!(n instanceof URL))
548
500
  throw new TypeError('"url" must be an instance of URL');
549
- return o = H(o), (r == null ? void 0 : r.DPoP) === void 0 ? o.set("authorization", `Bearer ${t}`) : (await wt(o, r.DPoP, n, e.toUpperCase(), L({ [W]: r == null ? void 0 : r[W] }), t), o.set("authorization", `DPoP ${t}`)), ((r == null ? void 0 : r[X]) || fetch)(n.href, {
550
- body: a,
501
+ return o = W(o), r?.DPoP === void 0 ? o.set("authorization", `Bearer ${t}`) : (await ht(o, r.DPoP, n, e.toUpperCase(), K({ [N]: r?.[N] }), t), o.set("authorization", `DPoP ${t}`)), (r?.[G] || fetch)(n.href, {
502
+ body: s,
551
503
  headers: Object.fromEntries(o.entries()),
552
504
  method: e,
553
505
  redirect: "manual",
554
- signal: r != null && r.signal ? te(r.signal) : null
555
- }).then(ee);
506
+ signal: r?.signal ? Xe(r.signal) : null
507
+ }).then(Z);
556
508
  }
557
- async function bt(t, e, n, o) {
558
- j(t), I(e);
559
- const a = ke(t, "userinfo_endpoint", Ae(e, o)), r = H(o == null ? void 0 : o.headers);
560
- return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), yt(n, "GET", a, r, null, {
509
+ async function mt(t, e, n, o) {
510
+ I(t), j(e);
511
+ const s = ge(t, "userinfo_endpoint", ye(e, o)), r = W(o?.headers);
512
+ return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), wt(n, "GET", s, r, null, {
561
513
  ...o,
562
- [W]: L(e)
514
+ [N]: K(e)
563
515
  });
564
516
  }
565
- async function _t(t, e, n, o, a, r, i) {
566
- return await pt(t, e, a, r, i == null ? void 0 : i.clientPrivateKey), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), ((i == null ? void 0 : i[X]) || fetch)(o.href, {
567
- body: a,
517
+ async function gt(t, e, n, o, s, r, i) {
518
+ return await lt(t, e, s, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), (i?.[G] || fetch)(o.href, {
519
+ body: s,
568
520
  headers: Object.fromEntries(r.entries()),
569
521
  method: n,
570
522
  redirect: "manual",
571
- signal: i != null && i.signal ? te(i.signal) : null
572
- }).then(ee);
523
+ signal: null
524
+ }).then(Z);
573
525
  }
574
- async function Ee(t, e, n, o, a) {
575
- const r = ke(t, "token_endpoint", Ae(e, a));
526
+ async function be(t, e, n, o, s) {
527
+ const r = ge(t, "token_endpoint", ye(e, s));
576
528
  o.set("grant_type", n);
577
- const i = H(a == null ? void 0 : a.headers);
578
- return i.set("accept", "application/json"), _t(t, e, "POST", r, o, i, a);
529
+ const i = W(s?.headers);
530
+ return i.set("accept", "application/json"), gt(t, e, "POST", r, o, i, s);
579
531
  }
580
- async function vt(t, e, n, o) {
581
- if (j(t), I(e), !w(n))
532
+ async function yt(t, e, n, o) {
533
+ if (I(t), j(e), !w(n))
582
534
  throw new TypeError('"refreshToken" must be a non-empty string');
583
- const a = new URLSearchParams(o == null ? void 0 : o.additionalParameters);
584
- return a.set("refresh_token", n), Ee(t, e, "refresh_token", a, o);
535
+ const s = new URLSearchParams(o?.additionalParameters);
536
+ return s.set("refresh_token", n), be(t, e, "refresh_token", s, o);
585
537
  }
586
- const Re = /* @__PURE__ */ new WeakMap();
587
- function St(t) {
538
+ const _e = /* @__PURE__ */ new WeakMap();
539
+ function bt(t) {
588
540
  if (!t.id_token)
589
541
  return;
590
- const e = Re.get(t);
542
+ const e = _e.get(t);
591
543
  if (!e)
592
544
  throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources');
593
545
  return e[0];
594
546
  }
595
- async function Pe(t, e, n, o = !1, a = !1) {
596
- if (j(t), I(e), !Q(n, Response))
547
+ async function ve(t, e, n, o = !1, s = !1) {
548
+ if (I(t), j(e), !V(n, Response))
597
549
  throw new TypeError('"response" must be an instance of Response');
598
550
  if (n.status !== 200) {
599
551
  let i;
600
552
  if (i = await Lt(n))
601
553
  return i;
602
- throw new s('"response" is not a conform Token Endpoint response');
554
+ throw new a('"response" is not a conform Token Endpoint response');
603
555
  }
604
- ne(n);
556
+ X(n);
605
557
  let r;
606
558
  try {
607
559
  r = await n.json();
608
560
  } catch (i) {
609
- throw new s('failed to parse "response" body as JSON', { cause: i });
561
+ throw new a('failed to parse "response" body as JSON', { cause: i });
610
562
  }
611
563
  if (!C(r))
612
- throw new s('"response" body must be a top level object');
564
+ throw new a('"response" body must be a top level object');
613
565
  if (!w(r.access_token))
614
- throw new s('"response" body "access_token" property must be a non-empty string');
566
+ throw new a('"response" body "access_token" property must be a non-empty string');
615
567
  if (!w(r.token_type))
616
- throw new s('"response" body "token_type" property must be a non-empty string');
568
+ throw new a('"response" body "token_type" property must be a non-empty string');
617
569
  if (r.token_type = r.token_type.toLowerCase(), r.token_type !== "dpop" && r.token_type !== "bearer")
618
- throw new S("unsupported `token_type` value");
570
+ throw new v("unsupported `token_type` value");
619
571
  if (r.expires_in !== void 0 && (typeof r.expires_in != "number" || r.expires_in <= 0))
620
- throw new s('"response" body "expires_in" property must be a positive number');
621
- if (!a && r.refresh_token !== void 0 && !w(r.refresh_token))
622
- throw new s('"response" body "refresh_token" property must be a non-empty string');
572
+ throw new a('"response" body "expires_in" property must be a positive number');
573
+ if (!s && r.refresh_token !== void 0 && !w(r.refresh_token))
574
+ throw new a('"response" body "refresh_token" property must be a non-empty string');
623
575
  if (r.scope !== void 0 && typeof r.scope != "string")
624
- throw new s('"response" body "scope" property must be a string');
576
+ throw new a('"response" body "scope" property must be a string');
625
577
  if (!o) {
626
578
  if (r.id_token !== void 0 && !w(r.id_token))
627
- throw new s('"response" body "id_token" property must be a non-empty string');
579
+ throw new a('"response" body "id_token" property must be a non-empty string');
628
580
  if (r.id_token) {
629
- const { claims: i, jwt: c } = await Jt(r.id_token, Ot.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ce, L(e), Se(e), e[Be]).then(Ut.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(At.bind(void 0, t.issuer)).then(kt.bind(void 0, e.client_id));
581
+ const { claims: i, jwt: c } = await Ct(r.id_token, It.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ae, K(e), me(e), e[$e]).then(kt.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(St.bind(void 0, t.issuer)).then(vt.bind(void 0, e.client_id));
630
582
  if (Array.isArray(i.aud) && i.aud.length !== 1) {
631
583
  if (i.azp === void 0)
632
- throw new s('ID Token "aud" (audience) claim includes additional untrusted audiences');
584
+ throw new a('ID Token "aud" (audience) claim includes additional untrusted audiences');
633
585
  if (i.azp !== e.client_id)
634
- throw new s('unexpected ID Token "azp" (authorized party) claim value');
586
+ throw new a('unexpected ID Token "azp" (authorized party) claim value');
635
587
  }
636
588
  if (i.auth_time !== void 0 && (!Number.isFinite(i.auth_time) || Math.sign(i.auth_time) !== 1))
637
- throw new s('ID Token "auth_time" (authentication time) must be a positive number');
638
- Re.set(r, [i, c]);
589
+ throw new a('ID Token "auth_time" (authentication time) must be a positive number');
590
+ _e.set(r, [i, c]);
639
591
  }
640
592
  }
641
593
  return r;
642
594
  }
643
- async function Tt(t, e, n) {
644
- return Pe(t, e, n);
595
+ async function _t(t, e, n) {
596
+ return ve(t, e, n);
645
597
  }
646
- function kt(t, e) {
598
+ function vt(t, e) {
647
599
  if (Array.isArray(e.claims.aud)) {
648
600
  if (!e.claims.aud.includes(t))
649
- throw new s('unexpected JWT "aud" (audience) claim value');
601
+ throw new a('unexpected JWT "aud" (audience) claim value');
650
602
  } else if (e.claims.aud !== t)
651
- throw new s('unexpected JWT "aud" (audience) claim value');
603
+ throw new a('unexpected JWT "aud" (audience) claim value');
652
604
  return e;
653
605
  }
654
- function At(t, e) {
606
+ function St(t, e) {
655
607
  if (e.claims.iss !== t)
656
- throw new s('unexpected JWT "iss" (issuer) claim value');
608
+ throw new a('unexpected JWT "iss" (issuer) claim value');
657
609
  return e;
658
610
  }
659
- const Ue = /* @__PURE__ */ new WeakSet();
660
- function Et(t) {
661
- return Ue.add(t), t;
611
+ const Se = /* @__PURE__ */ new WeakSet();
612
+ function Tt(t) {
613
+ return Se.add(t), t;
662
614
  }
663
- async function Rt(t, e, n, o, a, r) {
664
- if (j(t), I(e), !Ue.has(n))
615
+ async function At(t, e, n, o, s, r) {
616
+ if (I(t), j(e), !Se.has(n))
665
617
  throw new TypeError('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()');
666
618
  if (!w(o))
667
619
  throw new TypeError('"redirectUri" must be a non-empty string');
668
- if (!w(a))
620
+ if (!w(s))
669
621
  throw new TypeError('"codeVerifier" must be a non-empty string');
670
- const i = k(n, "code");
622
+ const i = S(n, "code");
671
623
  if (!i)
672
- throw new s('no authorization code in "callbackParameters"');
673
- const c = new URLSearchParams(r == null ? void 0 : r.additionalParameters);
674
- return c.set("redirect_uri", o), c.set("code_verifier", a), c.set("code", i), Ee(t, e, "authorization_code", c, r);
624
+ throw new a('no authorization code in "callbackParameters"');
625
+ const c = new URLSearchParams(r?.additionalParameters);
626
+ return c.set("redirect_uri", o), c.set("code_verifier", s), c.set("code", i), be(t, e, "authorization_code", c, r);
675
627
  }
676
- const Pt = {
628
+ const Et = {
677
629
  aud: "audience",
678
630
  c_hash: "code hash",
679
631
  client_id: "client id",
@@ -689,53 +641,53 @@ const Pt = {
689
641
  htu: "http uri",
690
642
  cnf: "confirmation"
691
643
  };
692
- function Ut(t, e) {
644
+ function kt(t, e) {
693
645
  for (const n of t)
694
646
  if (e.claims[n] === void 0)
695
- throw new s(`JWT "${n}" (${Pt[n]}) claim missing`);
647
+ throw new a(`JWT "${n}" (${Et[n]}) claim missing`);
696
648
  return e;
697
649
  }
698
- const xt = Symbol(), B = Symbol();
699
- async function Ct(t, e, n, o, a) {
700
- const r = await Pe(t, e, n);
701
- if (Y(r))
650
+ const Rt = Symbol(), $ = Symbol();
651
+ async function Pt(t, e, n, o, s) {
652
+ const r = await ve(t, e, n);
653
+ if (q(r))
702
654
  return r;
703
655
  if (!w(r.id_token))
704
- throw new s('"response" body "id_token" property must be a non-empty string');
705
- a ?? (a = e.default_max_age ?? B);
706
- const i = St(r);
707
- if ((e.require_auth_time || a !== B) && i.auth_time === void 0)
708
- throw new s('ID Token "auth_time" (authentication time) claim missing');
709
- if (a !== B) {
710
- if (typeof a != "number" || a < 0)
656
+ throw new a('"response" body "id_token" property must be a non-empty string');
657
+ s ?? (s = e.default_max_age ?? $);
658
+ const i = bt(r);
659
+ if ((e.require_auth_time || s !== $) && i.auth_time === void 0)
660
+ throw new a('ID Token "auth_time" (authentication time) claim missing');
661
+ if (s !== $) {
662
+ if (typeof s != "number" || s < 0)
711
663
  throw new TypeError('"maxAge" must be a non-negative number');
712
- const c = F() + L(e), h = Se(e);
713
- if (i.auth_time + a < c - h)
714
- throw new s("too much time has elapsed since the last End-User authentication");
664
+ const c = Q() + K(e), f = me(e);
665
+ if (i.auth_time + s < c - f)
666
+ throw new a("too much time has elapsed since the last End-User authentication");
715
667
  }
716
668
  switch (o) {
717
669
  case void 0:
718
- case xt:
670
+ case Rt:
719
671
  if (i.nonce !== void 0)
720
- throw new s('unexpected ID Token "nonce" claim value');
672
+ throw new a('unexpected ID Token "nonce" claim value');
721
673
  break;
722
674
  default:
723
675
  if (!w(o))
724
676
  throw new TypeError('"expectedNonce" must be a non-empty string');
725
677
  if (i.nonce === void 0)
726
- throw new s('ID Token "nonce" claim missing');
678
+ throw new a('ID Token "nonce" claim missing');
727
679
  if (i.nonce !== o)
728
- throw new s('unexpected ID Token "nonce" claim value');
680
+ throw new a('unexpected ID Token "nonce" claim value');
729
681
  }
730
682
  return r;
731
683
  }
732
- function ne(t) {
684
+ function X(t) {
733
685
  if (t.bodyUsed)
734
686
  throw new TypeError('"response" body has been used already');
735
687
  }
736
688
  async function Lt(t) {
737
689
  if (t.status > 399 && t.status < 500) {
738
- ne(t);
690
+ X(t);
739
691
  try {
740
692
  const e = await t.json();
741
693
  if (C(e) && typeof e.error == "string" && e.error.length)
@@ -744,11 +696,11 @@ async function Lt(t) {
744
696
  }
745
697
  }
746
698
  }
747
- function pe(t) {
699
+ function le(t) {
748
700
  if (typeof t.modulusLength != "number" || t.modulusLength < 2048)
749
- throw new s(`${t.name} modulusLength must be at least 2048 bits`);
701
+ throw new a(`${t.name} modulusLength must be at least 2048 bits`);
750
702
  }
751
- function jt(t) {
703
+ function Ut(t) {
752
704
  switch (t) {
753
705
  case "P-256":
754
706
  return "SHA-256";
@@ -757,18 +709,18 @@ function jt(t) {
757
709
  case "P-521":
758
710
  return "SHA-512";
759
711
  default:
760
- throw new S();
712
+ throw new v();
761
713
  }
762
714
  }
763
- function xe(t) {
715
+ function Te(t) {
764
716
  switch (t.algorithm.name) {
765
717
  case "ECDSA":
766
718
  return {
767
719
  name: t.algorithm.name,
768
- hash: jt(t.algorithm.namedCurve)
720
+ hash: Ut(t.algorithm.namedCurve)
769
721
  };
770
722
  case "RSA-PSS":
771
- switch (pe(t.algorithm), t.algorithm.hash.name) {
723
+ switch (le(t.algorithm), t.algorithm.hash.name) {
772
724
  case "SHA-256":
773
725
  case "SHA-384":
774
726
  case "SHA-512":
@@ -777,270 +729,227 @@ function xe(t) {
777
729
  saltLength: parseInt(t.algorithm.hash.name.slice(-3), 10) >> 3
778
730
  };
779
731
  default:
780
- throw new S();
732
+ throw new v();
781
733
  }
782
734
  case "RSASSA-PKCS1-v1_5":
783
- return pe(t.algorithm), t.algorithm.name;
735
+ return le(t.algorithm), t.algorithm.name;
784
736
  case "Ed448":
785
737
  case "Ed25519":
786
738
  return t.algorithm.name;
787
739
  }
788
- throw new S();
740
+ throw new v();
789
741
  }
790
- const Ce = Symbol();
791
- async function It(t, e, n, o) {
792
- const a = `${t}.${e}`;
793
- if (!await crypto.subtle.verify(xe(n), n, o, E(a)))
794
- throw new s("JWT signature verification failed");
742
+ const Ae = Symbol();
743
+ async function xt(t, e, n, o) {
744
+ const s = `${t}.${e}`;
745
+ if (!await crypto.subtle.verify(Te(n), n, o, E(s)))
746
+ throw new a("JWT signature verification failed");
795
747
  }
796
- async function Jt(t, e, n, o, a, r) {
797
- let { 0: i, 1: c, 2: h, length: _ } = t.split(".");
798
- if (_ === 5)
748
+ async function Ct(t, e, n, o, s, r) {
749
+ let { 0: i, 1: c, 2: f, length: y } = t.split(".");
750
+ if (y === 5)
799
751
  if (r !== void 0)
800
- t = await r(t), { 0: i, 1: c, 2: h, length: _ } = t.split(".");
752
+ t = await r(t), { 0: i, 1: c, 2: f, length: y } = t.split(".");
801
753
  else
802
- throw new S("JWE structure JWTs are not supported");
803
- if (_ !== 3)
804
- throw new s("Invalid JWT");
754
+ throw new v("JWE structure JWTs are not supported");
755
+ if (y !== 3)
756
+ throw new a("Invalid JWT");
805
757
  let p;
806
758
  try {
807
- p = JSON.parse(E(A(i)));
759
+ p = JSON.parse(E(T(i)));
808
760
  } catch (l) {
809
- throw new s("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
761
+ throw new a("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
810
762
  }
811
763
  if (!C(p))
812
- throw new s("JWT Header must be a top level object");
764
+ throw new a("JWT Header must be a top level object");
813
765
  if (e(p), p.crit !== void 0)
814
- throw new s('unexpected JWT "crit" header parameter');
815
- const y = A(h);
816
- let T;
817
- n !== Ce && (T = await n(p), await It(i, c, T, y));
818
- let f;
766
+ throw new a('unexpected JWT "crit" header parameter');
767
+ const A = T(f);
768
+ let b;
769
+ n !== Ae && (b = await n(p), await xt(i, c, b, A));
770
+ let h;
819
771
  try {
820
- f = JSON.parse(E(A(c)));
772
+ h = JSON.parse(E(T(c)));
821
773
  } catch (l) {
822
- throw new s("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
774
+ throw new a("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
823
775
  }
824
- if (!C(f))
825
- throw new s("JWT Payload must be a top level object");
826
- const J = F() + o;
827
- if (f.exp !== void 0) {
828
- if (typeof f.exp != "number")
829
- throw new s('unexpected JWT "exp" (expiration time) claim type');
830
- if (f.exp <= J - a)
831
- throw new s('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
776
+ if (!C(h))
777
+ throw new a("JWT Payload must be a top level object");
778
+ const R = Q() + o;
779
+ if (h.exp !== void 0) {
780
+ if (typeof h.exp != "number")
781
+ throw new a('unexpected JWT "exp" (expiration time) claim type');
782
+ if (h.exp <= R - s)
783
+ throw new a('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
832
784
  }
833
- if (f.iat !== void 0 && typeof f.iat != "number")
834
- throw new s('unexpected JWT "iat" (issued at) claim type');
835
- if (f.iss !== void 0 && typeof f.iss != "string")
836
- throw new s('unexpected JWT "iss" (issuer) claim type');
837
- if (f.nbf !== void 0) {
838
- if (typeof f.nbf != "number")
839
- throw new s('unexpected JWT "nbf" (not before) claim type');
840
- if (f.nbf > J + a)
841
- throw new s('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
785
+ if (h.iat !== void 0 && typeof h.iat != "number")
786
+ throw new a('unexpected JWT "iat" (issued at) claim type');
787
+ if (h.iss !== void 0 && typeof h.iss != "string")
788
+ throw new a('unexpected JWT "iss" (issuer) claim type');
789
+ if (h.nbf !== void 0) {
790
+ if (typeof h.nbf != "number")
791
+ throw new a('unexpected JWT "nbf" (not before) claim type');
792
+ if (h.nbf > R + s)
793
+ throw new a('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
842
794
  }
843
- if (f.aud !== void 0 && typeof f.aud != "string" && !Array.isArray(f.aud))
844
- throw new s('unexpected JWT "aud" (audience) claim type');
845
- return { header: p, claims: f, signature: y, key: T, jwt: t };
795
+ if (h.aud !== void 0 && typeof h.aud != "string" && !Array.isArray(h.aud))
796
+ throw new a('unexpected JWT "aud" (audience) claim type');
797
+ return { header: p, claims: h, signature: A, key: b, jwt: t };
846
798
  }
847
- function Ot(t, e, n) {
799
+ function It(t, e, n) {
848
800
  if (t !== void 0) {
849
801
  if (n.alg !== t)
850
- throw new s('unexpected JWT "alg" header parameter');
802
+ throw new a('unexpected JWT "alg" header parameter');
851
803
  return;
852
804
  }
853
805
  if (Array.isArray(e)) {
854
806
  if (!e.includes(n.alg))
855
- throw new s('unexpected JWT "alg" header parameter');
807
+ throw new a('unexpected JWT "alg" header parameter');
856
808
  return;
857
809
  }
858
810
  if (n.alg !== "RS256")
859
- throw new s('unexpected JWT "alg" header parameter');
811
+ throw new a('unexpected JWT "alg" header parameter');
860
812
  }
861
- function k(t, e) {
813
+ function S(t, e) {
862
814
  const { 0: n, length: o } = t.getAll(e);
863
815
  if (o > 1)
864
- throw new s(`"${e}" parameter must be provided only once`);
816
+ throw new a(`"${e}" parameter must be provided only once`);
865
817
  return n;
866
818
  }
867
- const zt = Symbol(), Dt = Symbol();
868
- function Nt(t, e, n, o) {
869
- if (j(t), I(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
819
+ const jt = Symbol(), Ot = Symbol();
820
+ function zt(t, e, n, o) {
821
+ if (I(t), j(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
870
822
  throw new TypeError('"parameters" must be an instance of URLSearchParams, or URL');
871
- if (k(n, "response"))
872
- throw new s('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
873
- const a = k(n, "iss"), r = k(n, "state");
874
- if (!a && t.authorization_response_iss_parameter_supported)
875
- throw new s('response parameter "iss" (issuer) missing');
876
- if (a && a !== t.issuer)
877
- throw new s('unexpected "iss" (issuer) response parameter value');
823
+ if (S(n, "response"))
824
+ throw new a('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
825
+ const s = S(n, "iss"), r = S(n, "state");
826
+ if (!s && t.authorization_response_iss_parameter_supported)
827
+ throw new a('response parameter "iss" (issuer) missing');
828
+ if (s && s !== t.issuer)
829
+ throw new a('unexpected "iss" (issuer) response parameter value');
878
830
  switch (o) {
879
831
  case void 0:
880
- case Dt:
832
+ case Ot:
881
833
  if (r !== void 0)
882
- throw new s('unexpected "state" response parameter encountered');
834
+ throw new a('unexpected "state" response parameter encountered');
883
835
  break;
884
- case zt:
836
+ case jt:
885
837
  break;
886
838
  default:
887
839
  if (!w(o))
888
- throw new s('"expectedState" must be a non-empty string');
840
+ throw new a('"expectedState" must be a non-empty string');
889
841
  if (r === void 0)
890
- throw new s('response parameter "state" missing');
842
+ throw new a('response parameter "state" missing');
891
843
  if (r !== o)
892
- throw new s('unexpected "state" response parameter value');
844
+ throw new a('unexpected "state" response parameter value');
893
845
  }
894
- const i = k(n, "error");
846
+ const i = S(n, "error");
895
847
  if (i)
896
848
  return {
897
849
  error: i,
898
- error_description: k(n, "error_description"),
899
- error_uri: k(n, "error_uri")
850
+ error_description: S(n, "error_description"),
851
+ error_uri: S(n, "error_uri")
900
852
  };
901
- const c = k(n, "id_token"), h = k(n, "token");
902
- if (c !== void 0 || h !== void 0)
903
- throw new S("implicit and hybrid flows are not supported");
904
- return Et(new URLSearchParams(n));
853
+ const c = S(n, "id_token"), f = S(n, "token");
854
+ if (c !== void 0 || f !== void 0)
855
+ throw new v("implicit and hybrid flows are not supported");
856
+ return Tt(new URLSearchParams(n));
857
+ }
858
+ class Jt {
859
+ getRoutes() {
860
+ return [
861
+ {
862
+ path: "/signout",
863
+ element: /* @__PURE__ */ L.jsx(Ie, {})
864
+ },
865
+ {
866
+ path: "/signin",
867
+ element: /* @__PURE__ */ L.jsx(je, {})
868
+ },
869
+ {
870
+ path: "/signup",
871
+ element: /* @__PURE__ */ L.jsx(Oe, {})
872
+ }
873
+ ];
874
+ }
875
+ getProfileMenuItems() {
876
+ return [
877
+ {
878
+ label: "Logout",
879
+ path: "/signout",
880
+ category: "bottom",
881
+ icon: Ce
882
+ }
883
+ ];
884
+ }
885
+ }
886
+ function Dt(t, e, n = "/") {
887
+ return t.startsWith(e) ? n !== "/" && t.startsWith(e + n) ? t.slice(e.length + n.length) : t.slice(e.length) : t;
905
888
  }
906
- function Kt({
889
+ function Nt({
907
890
  handleCallback: t
908
891
  }) {
909
- const e = Ke({
892
+ const { options: e } = Je(), n = xe({
910
893
  retry: !1,
911
894
  queryKey: ["oauth-callback"],
912
895
  queryFn: async () => {
913
896
  try {
914
- return await t();
915
- } catch (n) {
916
- throw new He("Could not validate user", {
917
- cause: n,
897
+ return fe(
898
+ Dt(
899
+ await t(),
900
+ window.location.origin,
901
+ e.basePath
902
+ )
903
+ );
904
+ } catch (o) {
905
+ throw new Le("Could not validate user", {
906
+ cause: o,
918
907
  title: "Authentication Error",
919
908
  developerHint: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly."
920
909
  });
921
910
  }
922
911
  }
923
912
  });
924
- return /* @__PURE__ */ G.jsx(We, { to: e.data });
913
+ return /* @__PURE__ */ L.jsx(ze, { to: n.data });
925
914
  }
926
- class P extends Error {
915
+ class k extends Error {
927
916
  }
928
- class we extends P {
917
+ class de extends k {
929
918
  constructor(e, n, o) {
930
919
  super(e, o), this.error = n;
931
920
  }
932
921
  }
933
- const V = "code-verifier";
934
- class Wt extends Ne {
935
- constructor(e, n) {
936
- super(), this.callbackUrlPath = e, this.handleCallback = n;
937
- }
938
- getRoutes() {
939
- return [
940
- ...super.getRoutes(),
941
- {
942
- path: this.callbackUrlPath,
943
- element: /* @__PURE__ */ G.jsx(De, { children: /* @__PURE__ */ G.jsx(Kt, { handleCallback: this.handleCallback }) })
944
- }
945
- ];
946
- }
947
- }
948
- class Ht {
922
+ const F = "code-verifier", M = "oauth-state", he = "/oauth/callback";
923
+ class Wt extends Jt {
924
+ client;
925
+ issuer;
926
+ authorizationServer;
927
+ callbackUrlPath;
928
+ onAuthorizationUrl;
929
+ redirectToAfterSignUp;
930
+ redirectToAfterSignIn;
931
+ redirectToAfterSignOut;
932
+ audience;
933
+ scopes;
949
934
  constructor({
950
935
  issuer: e,
951
936
  audience: n,
952
937
  clientId: o,
953
- redirectToAfterSignUp: a,
938
+ redirectToAfterSignUp: s,
954
939
  redirectToAfterSignIn: r,
955
- redirectToAfterSignOut: i,
956
- basePath: c
940
+ redirectToAfterSignOut: i = "/",
941
+ basePath: c,
942
+ scopes: f
957
943
  }) {
958
- b(this, "client");
959
- b(this, "issuer");
960
- b(this, "authorizationServer");
961
- b(this, "callbackUrlPath");
962
- b(this, "logoutRedirectUrlPath");
963
- b(this, "onAuthorizationUrl");
964
- b(this, "redirectToAfterSignUp");
965
- b(this, "redirectToAfterSignIn");
966
- b(this, "redirectToAfterSignOut");
967
- b(this, "audience");
968
- b(this, "signOut", async () => {
969
- x.setState({
970
- isAuthenticated: !1,
971
- isPending: !1,
972
- profile: void 0,
973
- providerData: void 0
974
- });
975
- const e = await this.getAuthServer(), n = new URL(
976
- window.location.origin + this.redirectToAfterSignOut
977
- );
978
- n.pathname = this.logoutRedirectUrlPath;
979
- let o;
980
- e.end_session_endpoint ? (o = new URL(e.end_session_endpoint), o.searchParams.set(
981
- "post_logout_redirect_uri",
982
- n.toString()
983
- )) : o = n;
984
- });
985
- b(this, "handleCallback", async () => {
986
- const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(V);
987
- if (sessionStorage.removeItem(V), !o)
988
- throw new P("No code verifier found in state.");
989
- const a = await this.getAuthServer(), r = Nt(
990
- a,
991
- this.client,
992
- e.searchParams,
993
- n ?? void 0
994
- );
995
- if (Y(r))
996
- throw ce.error("Error validating OAuth response", r), new we(
997
- "Error validating OAuth response",
998
- r
999
- );
1000
- const i = new URL(e);
1001
- i.pathname = this.callbackUrlPath, i.search = "";
1002
- const c = await Rt(
1003
- a,
1004
- this.client,
1005
- r,
1006
- i.toString(),
1007
- o
1008
- ), h = await Ct(
1009
- a,
1010
- this.client,
1011
- c
1012
- );
1013
- this.setTokensFromResponse(h);
1014
- const _ = await this.getAccessToken(), y = await (await bt(
1015
- a,
1016
- this.client,
1017
- _
1018
- )).json(), T = {
1019
- sub: y.sub,
1020
- email: y.email,
1021
- name: y.name,
1022
- emailVerified: y.email_verified ?? !1,
1023
- pictureUrl: y.picture
1024
- };
1025
- x.setState({
1026
- isAuthenticated: !0,
1027
- isPending: !1,
1028
- profile: T
1029
- });
1030
- const f = sessionStorage.getItem("redirect-to") ?? "/";
1031
- return sessionStorage.removeItem("redirect-to"), f;
1032
- });
1033
- this.client = {
944
+ super(), this.client = {
1034
945
  client_id: o,
1035
946
  token_endpoint_auth_method: "none"
1036
- }, this.audience = n, this.issuer = e, this.callbackUrlPath = ae(c, "/oauth/callback");
1037
- const h = ae(c, "/");
1038
- this.logoutRedirectUrlPath = h, this.redirectToAfterSignUp = a ?? h, this.redirectToAfterSignIn = r ?? h, this.redirectToAfterSignOut = i ?? h;
947
+ }, this.audience = n, this.issuer = e, this.callbackUrlPath = fe(c, he), this.scopes = f ?? ["openid", "profile", "email"], this.redirectToAfterSignUp = s, this.redirectToAfterSignIn = r, this.redirectToAfterSignOut = i;
1039
948
  }
1040
949
  async getAuthServer() {
1041
950
  if (!this.authorizationServer) {
1042
- const e = new URL(this.issuer), n = await nt(e);
1043
- this.authorizationServer = await rt(
951
+ const e = new URL(this.issuer), n = await et(e);
952
+ this.authorizationServer = await tt(
1044
953
  e,
1045
954
  n
1046
955
  );
@@ -1052,10 +961,10 @@ class Ht {
1052
961
  * @param response
1053
962
  */
1054
963
  setTokensFromResponse(e) {
1055
- if (Y(e))
1056
- throw ce.error("Bad Token Response", e), new we("Bad Token Response", e);
964
+ if (q(e))
965
+ throw oe.error("Bad Token Response", e), new de("Bad Token Response", e);
1057
966
  if (!e.expires_in)
1058
- throw new P("No expires_in in response");
967
+ throw new k("No expires_in in response");
1059
968
  const n = {
1060
969
  accessToken: e.access_token,
1061
970
  refreshToken: e.refresh_token,
@@ -1069,46 +978,43 @@ class Ht {
1069
978
  }
1070
979
  async signUp({ redirectTo: e } = {}) {
1071
980
  return this.authorize({
1072
- redirectTo: e ?? this.redirectToAfterSignUp,
981
+ redirectTo: this.redirectToAfterSignUp ?? e ?? "/",
1073
982
  isSignUp: !0
1074
983
  });
1075
984
  }
1076
985
  async signIn({ redirectTo: e } = {}) {
1077
986
  return this.authorize({
1078
- redirectTo: e ?? this.redirectToAfterSignIn
987
+ redirectTo: this.redirectToAfterSignIn ?? e ?? "/"
1079
988
  });
1080
989
  }
1081
990
  async authorize({
1082
991
  redirectTo: e,
1083
992
  isSignUp: n = !1
1084
993
  }) {
1085
- var _, p;
1086
- const o = "S256", a = await this.getAuthServer();
1087
- if (!a.authorization_endpoint)
1088
- throw new P("No authorization endpoint");
1089
- const r = ot(), i = await at(r);
1090
- sessionStorage.setItem(V, r);
994
+ const o = "S256", s = await this.getAuthServer();
995
+ if (!s.authorization_endpoint)
996
+ throw new k("No authorization endpoint");
997
+ const r = nt(), i = await ot(r);
998
+ sessionStorage.setItem(F, r);
1091
999
  const c = new URL(
1092
- a.authorization_endpoint
1000
+ s.authorization_endpoint
1093
1001
  );
1094
1002
  sessionStorage.setItem("redirect-to", e);
1095
- const h = new URL(window.location.origin);
1096
- if (h.pathname = this.callbackUrlPath, h.search = "", c.searchParams.set("client_id", this.client.client_id), c.searchParams.set("redirect_uri", h.toString()), c.searchParams.set("response_type", "code"), c.searchParams.set("scope", "openid profile email"), c.searchParams.set("code_challenge", i), c.searchParams.set(
1003
+ const f = new URL(window.location.origin);
1004
+ f.pathname = this.callbackUrlPath, f.search = "", c.searchParams.set("client_id", this.client.client_id), c.searchParams.set("redirect_uri", f.toString()), c.searchParams.set("response_type", "code"), c.searchParams.set("scope", this.scopes.join(" ")), c.searchParams.set("code_challenge", i), c.searchParams.set(
1097
1005
  "code_challenge_method",
1098
1006
  o
1099
- ), this.audience && c.searchParams.set("audience", this.audience), (_ = this.onAuthorizationUrl) == null || _.call(this, c, {
1007
+ ), this.audience && c.searchParams.set("audience", this.audience), this.onAuthorizationUrl?.(c, {
1100
1008
  isSignIn: !n,
1101
1009
  isSignUp: n
1102
- }), ((p = a.code_challenge_methods_supported) == null ? void 0 : p.includes("S256")) !== !0) {
1103
- const y = it();
1104
- c.searchParams.set("state", y);
1105
- }
1106
- location.href = c.href;
1010
+ });
1011
+ const y = rt();
1012
+ sessionStorage.setItem(M, y), c.searchParams.set("state", y), location.href = c.href;
1107
1013
  }
1108
1014
  async getAccessToken() {
1109
1015
  const e = await this.getAuthServer(), { providerData: n } = x.getState();
1110
1016
  if (!n)
1111
- throw new P("User is not authenticated");
1017
+ throw new k("User is not authenticated");
1112
1018
  const o = n;
1113
1019
  if (new Date(o.expiresOn) < /* @__PURE__ */ new Date()) {
1114
1020
  if (!o.refreshToken)
@@ -1118,28 +1024,107 @@ class Ht {
1118
1024
  profile: null,
1119
1025
  providerData: null
1120
1026
  }), "";
1121
- const a = await vt(
1027
+ const s = await yt(
1122
1028
  e,
1123
1029
  this.client,
1124
1030
  o.refreshToken
1125
- ), r = await Tt(
1031
+ ), r = await _t(
1126
1032
  e,
1127
1033
  this.client,
1128
- a
1034
+ s
1129
1035
  );
1130
1036
  if (!r.access_token)
1131
- throw new P("No access token in response");
1037
+ throw new k("No access token in response");
1132
1038
  return this.setTokensFromResponse(r), r.access_token.toString();
1133
1039
  } else
1134
1040
  return o.accessToken;
1135
1041
  }
1136
- getAuthenticationPlugin() {
1137
- return new Wt(this.callbackUrlPath, this.handleCallback);
1042
+ signRequest = async (e) => {
1043
+ const n = await this.getAccessToken();
1044
+ return e.headers.set("Authorization", `Bearer ${n}`), e;
1045
+ };
1046
+ signOut = async () => {
1047
+ x.setState({
1048
+ isAuthenticated: !1,
1049
+ isPending: !1,
1050
+ profile: void 0,
1051
+ providerData: void 0
1052
+ });
1053
+ const e = await this.getAuthServer(), n = new URL(
1054
+ window.location.origin + this.redirectToAfterSignOut
1055
+ );
1056
+ n.pathname = this.callbackUrlPath;
1057
+ let o;
1058
+ e.end_session_endpoint ? (o = new URL(e.end_session_endpoint), o.searchParams.set(
1059
+ "post_logout_redirect_uri",
1060
+ n.toString()
1061
+ )) : o = n;
1062
+ };
1063
+ handleCallback = async () => {
1064
+ const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(M);
1065
+ if (sessionStorage.removeItem(M), n !== o)
1066
+ throw new k("Invalid state parameter");
1067
+ const s = sessionStorage.getItem(F);
1068
+ if (sessionStorage.removeItem(F), !s)
1069
+ throw new k("No code verifier found in state.");
1070
+ const r = await this.getAuthServer(), i = zt(
1071
+ r,
1072
+ this.client,
1073
+ e.searchParams,
1074
+ n ?? void 0
1075
+ );
1076
+ if (q(i))
1077
+ throw oe.error("Error validating OAuth response", i), new de(
1078
+ "Error validating OAuth response",
1079
+ i
1080
+ );
1081
+ const c = new URL(e);
1082
+ c.pathname = this.callbackUrlPath, c.search = "";
1083
+ const f = await At(
1084
+ r,
1085
+ this.client,
1086
+ i,
1087
+ c.toString(),
1088
+ s
1089
+ ), y = await Pt(
1090
+ r,
1091
+ this.client,
1092
+ f
1093
+ );
1094
+ this.setTokensFromResponse(y);
1095
+ const p = await this.getAccessToken(), b = await (await mt(
1096
+ r,
1097
+ this.client,
1098
+ p
1099
+ )).json(), h = {
1100
+ sub: b.sub,
1101
+ email: b.email,
1102
+ name: b.name,
1103
+ emailVerified: b.email_verified ?? !1,
1104
+ pictureUrl: b.picture
1105
+ };
1106
+ x.setState({
1107
+ isAuthenticated: !0,
1108
+ isPending: !1,
1109
+ profile: h
1110
+ });
1111
+ const R = sessionStorage.getItem("redirect-to") ?? "/";
1112
+ return sessionStorage.removeItem("redirect-to"), R;
1113
+ };
1114
+ getRoutes() {
1115
+ return [
1116
+ ...super.getRoutes(),
1117
+ {
1118
+ path: he,
1119
+ element: /* @__PURE__ */ L.jsx(Ue, { children: /* @__PURE__ */ L.jsx(Nt, { handleCallback: this.handleCallback }) })
1120
+ }
1121
+ ];
1138
1122
  }
1139
1123
  }
1140
- const Xt = (t) => new Ht(t);
1124
+ const Gt = (t) => new Wt(t);
1141
1125
  export {
1142
- Ht as OpenIDAuthenticationProvider,
1143
- Xt as default
1126
+ he as OPENID_CALLBACK_PATH,
1127
+ Wt as OpenIDAuthenticationProvider,
1128
+ Gt as default
1144
1129
  };
1145
1130
  //# sourceMappingURL=zudoku.auth-openid.js.map