zudoku 0.0.0-f417aae → 0.0.0-f49e3ea

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 (649) hide show
  1. package/cli.js +2 -2
  2. package/dist/app/demo.js +0 -2
  3. package/dist/app/demo.js.map +1 -1
  4. package/dist/app/entry.client.js +16 -2
  5. package/dist/app/entry.client.js.map +1 -1
  6. package/dist/app/entry.server.js +9 -6
  7. package/dist/app/entry.server.js.map +1 -1
  8. package/dist/app/main.d.ts +2 -1
  9. package/dist/app/main.js +9 -24
  10. package/dist/app/main.js.map +1 -1
  11. package/dist/app/standalone.js +0 -2
  12. package/dist/app/standalone.js.map +1 -1
  13. package/dist/cli/cli.js +1 -2
  14. package/dist/cli/cli.js.map +1 -1
  15. package/dist/cli/common/machine-id/lib.js.map +1 -1
  16. package/dist/cli/common/outdated.js.map +1 -1
  17. package/dist/cli/common/utils/box.js.map +1 -1
  18. package/dist/codegen.d.ts +3 -0
  19. package/dist/codegen.js +45 -0
  20. package/dist/codegen.js.map +1 -0
  21. package/dist/config/validators/InputSidebarSchema.d.ts +12 -12
  22. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  23. package/dist/config/validators/SidebarSchema.js +76 -39
  24. package/dist/config/validators/SidebarSchema.js.map +1 -1
  25. package/dist/config/validators/validate.d.ts +335 -259
  26. package/dist/config/validators/validate.js +13 -11
  27. package/dist/config/validators/validate.js.map +1 -1
  28. package/dist/index.d.ts +4 -1
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/lib/authentication/authentication.d.ts +2 -2
  32. package/dist/lib/authentication/hook.d.ts +5 -4
  33. package/dist/lib/authentication/hook.js +1 -3
  34. package/dist/lib/authentication/hook.js.map +1 -1
  35. package/dist/lib/authentication/providers/auth0.js +12 -11
  36. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  37. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  38. package/dist/lib/authentication/providers/openid.js +11 -26
  39. package/dist/lib/authentication/providers/openid.js.map +1 -1
  40. package/dist/lib/authentication/state.d.ts +25 -4
  41. package/dist/lib/authentication/state.js +28 -3
  42. package/dist/lib/authentication/state.js.map +1 -1
  43. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  44. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  45. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  46. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  47. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  48. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  49. package/dist/lib/components/Bootstrap.d.ts +3 -1
  50. package/dist/lib/components/Bootstrap.js +11 -3
  51. package/dist/lib/components/Bootstrap.js.map +1 -1
  52. package/dist/lib/components/ClientOnly.d.ts +4 -2
  53. package/dist/lib/components/ClientOnly.js +1 -1
  54. package/dist/lib/components/ClientOnly.js.map +1 -1
  55. package/dist/lib/components/DeveloperHint.js +2 -1
  56. package/dist/lib/components/DeveloperHint.js.map +1 -1
  57. package/dist/lib/components/Header.js +10 -7
  58. package/dist/lib/components/Header.js.map +1 -1
  59. package/dist/lib/components/Heading.d.ts +1 -1
  60. package/dist/lib/components/Layout.js +6 -3
  61. package/dist/lib/components/Layout.js.map +1 -1
  62. package/dist/lib/components/MobileTopNavigation.js +6 -7
  63. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  64. package/dist/lib/components/SlotletProvider.d.ts +2 -1
  65. package/dist/lib/components/SlotletProvider.js.map +1 -1
  66. package/dist/lib/components/SyntaxHighlight.js +19 -12
  67. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  68. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  69. package/dist/lib/components/ThemeSwitch.js +13 -0
  70. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  71. package/dist/lib/components/TopNavigation.d.ts +2 -0
  72. package/dist/lib/components/TopNavigation.js +36 -5
  73. package/dist/lib/components/TopNavigation.js.map +1 -1
  74. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  75. package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
  76. package/dist/lib/components/Zudoku.js.map +1 -0
  77. package/dist/lib/components/context/ZudokuContext.d.ts +10 -16
  78. package/dist/lib/components/context/ZudokuContext.js +27 -26
  79. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  80. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  81. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  82. package/dist/lib/components/index.d.ts +18 -10
  83. package/dist/lib/components/index.js +2 -3
  84. package/dist/lib/components/index.js.map +1 -1
  85. package/dist/lib/components/navigation/Sidebar.js +3 -3
  86. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  87. package/dist/lib/components/navigation/SidebarCategory.js +2 -4
  88. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  89. package/dist/lib/components/navigation/SidebarItem.js +1 -3
  90. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  91. package/dist/lib/components/navigation/utils.js +10 -14
  92. package/dist/lib/components/navigation/utils.js.map +1 -1
  93. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +6 -14
  94. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
  95. package/dist/lib/core/ZudokuContext.js.map +1 -0
  96. package/dist/lib/core/plugins.d.ts +13 -12
  97. package/dist/lib/core/plugins.js.map +1 -1
  98. package/dist/lib/errors/ErrorAlert.js +1 -1
  99. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  100. package/dist/lib/oas/graphql/index.js +4 -4
  101. package/dist/lib/oas/graphql/index.js.map +1 -1
  102. package/dist/lib/oas/parser/upgrade/index.js +3 -1
  103. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  104. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  105. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  106. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  107. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  108. package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
  109. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  110. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  111. package/dist/lib/plugins/markdown/index.d.ts +6 -7
  112. package/dist/lib/plugins/markdown/index.js +31 -3
  113. package/dist/lib/plugins/markdown/index.js.map +1 -1
  114. package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
  115. package/dist/lib/plugins/markdown/resolver.js +75 -0
  116. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  117. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  118. package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
  119. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  120. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  121. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  122. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  123. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  124. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  125. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  126. package/dist/lib/plugins/openapi/OperationList.js +21 -22
  127. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  128. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  129. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  130. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
  131. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  132. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
  133. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  134. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  135. package/dist/lib/plugins/openapi/Route.js +2 -4
  136. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  137. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  138. package/dist/lib/plugins/openapi/Sidecar.js +35 -33
  139. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  140. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  141. package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
  142. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  143. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  144. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  145. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  146. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  147. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  148. package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
  149. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  150. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  151. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  152. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  153. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  154. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  155. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  156. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
  157. package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
  158. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  159. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
  160. package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
  161. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  162. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  163. package/dist/lib/plugins/openapi/index.js +40 -53
  164. package/dist/lib/plugins/openapi/index.js.map +1 -1
  165. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  166. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  167. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  168. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  169. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  170. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  171. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  172. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
  173. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  174. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  175. package/dist/lib/plugins/openapi-worker.js +7 -1
  176. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  177. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  178. package/dist/lib/plugins/redirect/index.js +1 -1
  179. package/dist/lib/plugins/redirect/index.js.map +1 -1
  180. package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
  181. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  182. package/dist/lib/ui/Accordion.d.ts +7 -0
  183. package/dist/lib/ui/Accordion.js +14 -0
  184. package/dist/lib/ui/Accordion.js.map +1 -0
  185. package/dist/lib/ui/ActionButton.d.ts +4 -0
  186. package/dist/lib/ui/ActionButton.js +10 -0
  187. package/dist/lib/ui/ActionButton.js.map +1 -0
  188. package/dist/lib/ui/Alert.d.ts +8 -0
  189. package/dist/lib/ui/Alert.js +23 -0
  190. package/dist/lib/ui/Alert.js.map +1 -0
  191. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  192. package/dist/lib/ui/AlertDialog.js +27 -0
  193. package/dist/lib/ui/AlertDialog.js.map +1 -0
  194. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  195. package/dist/lib/ui/AspectRatio.js +4 -0
  196. package/dist/lib/ui/AspectRatio.js.map +1 -0
  197. package/dist/lib/ui/Badge.d.ts +9 -0
  198. package/dist/lib/ui/Badge.js +21 -0
  199. package/dist/lib/ui/Badge.js.map +1 -0
  200. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  201. package/dist/lib/ui/Breadcrumb.js +24 -0
  202. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  203. package/dist/lib/ui/Button.d.ts +2 -3
  204. package/dist/lib/ui/Button.js +1 -1
  205. package/dist/lib/ui/Button.js.map +1 -1
  206. package/dist/lib/ui/Carousel.d.ts +18 -0
  207. package/dist/lib/ui/Carousel.js +99 -0
  208. package/dist/lib/ui/Carousel.js.map +1 -0
  209. package/dist/lib/ui/Checkbox.d.ts +4 -0
  210. package/dist/lib/ui/Checkbox.js +9 -0
  211. package/dist/lib/ui/Checkbox.js.map +1 -0
  212. package/dist/lib/ui/Collapsible.d.ts +5 -0
  213. package/dist/lib/ui/Collapsible.js +6 -0
  214. package/dist/lib/ui/Collapsible.js.map +1 -0
  215. package/dist/lib/ui/Command.d.ts +80 -0
  216. package/dist/lib/ui/Command.js +31 -0
  217. package/dist/lib/ui/Command.js.map +1 -0
  218. package/dist/lib/{components → ui}/Dialog.js +2 -2
  219. package/dist/lib/ui/Dialog.js.map +1 -0
  220. package/dist/lib/ui/Form.d.ts +23 -0
  221. package/dist/lib/ui/Form.js +63 -0
  222. package/dist/lib/ui/Form.js.map +1 -0
  223. package/dist/lib/ui/HoverCard.d.ts +6 -0
  224. package/dist/lib/ui/HoverCard.js +10 -0
  225. package/dist/lib/ui/HoverCard.js.map +1 -0
  226. package/dist/lib/ui/Label.d.ts +5 -0
  227. package/dist/lib/ui/Label.js +10 -0
  228. package/dist/lib/ui/Label.js.map +1 -0
  229. package/dist/lib/ui/Pagination.d.ts +28 -0
  230. package/dist/lib/ui/Pagination.js +24 -0
  231. package/dist/lib/ui/Pagination.js.map +1 -0
  232. package/dist/lib/ui/Popover.d.ts +6 -0
  233. package/dist/lib/ui/Popover.js +10 -0
  234. package/dist/lib/ui/Popover.js.map +1 -0
  235. package/dist/lib/ui/Progress.d.ts +4 -0
  236. package/dist/lib/ui/Progress.js +8 -0
  237. package/dist/lib/ui/Progress.js.map +1 -0
  238. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  239. package/dist/lib/ui/RadioGroup.js +15 -0
  240. package/dist/lib/ui/RadioGroup.js.map +1 -0
  241. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  242. package/dist/lib/ui/ScrollArea.js +12 -0
  243. package/dist/lib/ui/ScrollArea.js.map +1 -0
  244. package/dist/lib/ui/Select.js.map +1 -0
  245. package/dist/lib/ui/Skeleton.d.ts +2 -0
  246. package/dist/lib/ui/Skeleton.js +7 -0
  247. package/dist/lib/ui/Skeleton.js.map +1 -0
  248. package/dist/lib/ui/Slider.d.ts +4 -0
  249. package/dist/lib/ui/Slider.js +8 -0
  250. package/dist/lib/ui/Slider.js.map +1 -0
  251. package/dist/lib/ui/Switch.d.ts +4 -0
  252. package/dist/lib/ui/Switch.js +8 -0
  253. package/dist/lib/ui/Switch.js.map +1 -0
  254. package/dist/lib/ui/Textarea.d.ts +4 -0
  255. package/dist/lib/ui/Textarea.js +9 -0
  256. package/dist/lib/ui/Textarea.js.map +1 -0
  257. package/dist/lib/ui/Toggle.d.ts +12 -0
  258. package/dist/lib/ui/Toggle.js +26 -0
  259. package/dist/lib/ui/Toggle.js.map +1 -0
  260. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  261. package/dist/lib/ui/ToggleGroup.js +21 -0
  262. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  263. package/dist/lib/ui/Tooltip.d.ts +7 -0
  264. package/dist/lib/ui/Tooltip.js +11 -0
  265. package/dist/lib/ui/Tooltip.js.map +1 -0
  266. package/dist/lib/util/MdxComponents.d.ts +1 -1
  267. package/dist/lib/util/MdxComponents.js.map +1 -1
  268. package/dist/lib/util/useExposedProps.js +3 -2
  269. package/dist/lib/util/useExposedProps.js.map +1 -1
  270. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  271. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  272. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  273. package/dist/lib/util/useOnScreen.d.ts +4 -0
  274. package/dist/lib/util/useOnScreen.js +19 -0
  275. package/dist/lib/util/useOnScreen.js.map +1 -0
  276. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  277. package/dist/vite/build.js +12 -3
  278. package/dist/vite/build.js.map +1 -1
  279. package/dist/vite/config.d.ts +2 -8
  280. package/dist/vite/config.js +24 -60
  281. package/dist/vite/config.js.map +1 -1
  282. package/dist/vite/debug.d.ts +1 -0
  283. package/dist/vite/debug.js +10 -0
  284. package/dist/vite/debug.js.map +1 -0
  285. package/dist/vite/html.js +0 -2
  286. package/dist/vite/html.js.map +1 -1
  287. package/dist/vite/output.d.ts +101 -0
  288. package/dist/vite/output.js +33 -0
  289. package/dist/vite/output.js.map +1 -0
  290. package/dist/vite/plugin-component.js +17 -7
  291. package/dist/vite/plugin-component.js.map +1 -1
  292. package/dist/vite/plugin-config-reload.js +0 -2
  293. package/dist/vite/plugin-config-reload.js.map +1 -1
  294. package/dist/vite/plugin-config.d.ts +2 -3
  295. package/dist/vite/plugin-config.js +2 -3
  296. package/dist/vite/plugin-config.js.map +1 -1
  297. package/dist/vite/plugin-docs.js +37 -26
  298. package/dist/vite/plugin-docs.js.map +1 -1
  299. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  300. package/dist/vite/plugin-frontmatter.js +27 -24
  301. package/dist/vite/plugin-frontmatter.js.map +1 -1
  302. package/dist/vite/plugin-mdx.d.ts +0 -6
  303. package/dist/vite/plugin-mdx.js +3 -2
  304. package/dist/vite/plugin-mdx.js.map +1 -1
  305. package/dist/vite/plugin-sidebar.js +7 -6
  306. package/dist/vite/plugin-sidebar.js.map +1 -1
  307. package/dist/vite/plugin.js +2 -4
  308. package/dist/vite/plugin.js.map +1 -1
  309. package/dist/vite/prerender.d.ts +5 -1
  310. package/dist/vite/prerender.js +7 -5
  311. package/dist/vite/prerender.js.map +1 -1
  312. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  313. package/dist/vite/remarkStaticGeneration.js +125 -0
  314. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  315. package/lib/{utils-G5XSiZc9.js → AnchorLink-CDlhr8gL.js} +232 -275
  316. package/lib/AnchorLink-CDlhr8gL.js.map +1 -0
  317. package/lib/{AuthenticationPlugin-tBvLKsFg.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
  318. package/lib/{AuthenticationPlugin-tBvLKsFg.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
  319. package/lib/Button-jK0EsymC.js +48 -0
  320. package/lib/Button-jK0EsymC.js.map +1 -0
  321. package/lib/{CategoryHeading-D2WS6sRI.js → CategoryHeading-Bb9dqxD3.js} +4 -4
  322. package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
  323. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  324. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  325. package/lib/Dialog-k70Qfukb.js +67 -0
  326. package/lib/Dialog-k70Qfukb.js.map +1 -0
  327. package/lib/Markdown-ievDDhFT.js +15192 -0
  328. package/lib/Markdown-ievDDhFT.js.map +1 -0
  329. package/lib/{MdxPage-tWI_P8wP.js → MdxPage-Bwn-VSsH.js} +32 -30
  330. package/lib/{MdxPage-tWI_P8wP.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
  331. package/lib/OperationList-BwBl1xrD.js +4691 -0
  332. package/lib/OperationList-BwBl1xrD.js.map +1 -0
  333. package/lib/Route-DlG_HTMu.js +11 -0
  334. package/lib/Route-DlG_HTMu.js.map +1 -0
  335. package/lib/Select-O9ZM3ZgX.js +223 -0
  336. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  337. package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
  338. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  339. package/lib/SlotletProvider-DyomlzGx.js +252 -0
  340. package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
  341. package/lib/Spinner-3cQDBVGr.js +7 -0
  342. package/lib/Spinner-3cQDBVGr.js.map +1 -0
  343. package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
  344. package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
  345. package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
  346. package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
  347. package/lib/assets/{worker-Bf8vjASY.js → worker-CPsGZsve.js} +565 -561
  348. package/lib/assets/{worker-Bf8vjASY.js.map → worker-CPsGZsve.js.map} +1 -1
  349. package/lib/cn-BmFQLtkS.js +2279 -0
  350. package/lib/cn-BmFQLtkS.js.map +1 -0
  351. package/lib/context-D1nXWxm7.js +22 -0
  352. package/lib/context-D1nXWxm7.js.map +1 -0
  353. package/lib/createServer-DK-g7kbB.js +16089 -0
  354. package/lib/createServer-DK-g7kbB.js.map +1 -0
  355. package/lib/hook-hEqe7fPB.js +227 -0
  356. package/lib/hook-hEqe7fPB.js.map +1 -0
  357. package/lib/index-BuAyrJe3.js +46 -0
  358. package/lib/index-BuAyrJe3.js.map +1 -0
  359. package/lib/index-Czzd9rjU.js +899 -0
  360. package/lib/index-Czzd9rjU.js.map +1 -0
  361. package/lib/index-DNxQ_rCt.js +1273 -0
  362. package/lib/index-DNxQ_rCt.js.map +1 -0
  363. package/lib/index-Yn8c3UWE.js +921 -0
  364. package/lib/index-Yn8c3UWE.js.map +1 -0
  365. package/lib/index.esm-C5mr_sKO.js +1193 -0
  366. package/lib/index.esm-C5mr_sKO.js.map +1 -0
  367. package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
  368. package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
  369. package/lib/state-tsXBLONe.js +203 -0
  370. package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
  371. package/lib/ui/Accordion.js +47 -0
  372. package/lib/ui/Accordion.js.map +1 -0
  373. package/lib/ui/ActionButton.js +25 -0
  374. package/lib/ui/ActionButton.js.map +1 -0
  375. package/lib/ui/Alert.js +51 -0
  376. package/lib/ui/Alert.js.map +1 -0
  377. package/lib/ui/AlertDialog.js +114 -0
  378. package/lib/ui/AlertDialog.js.map +1 -0
  379. package/lib/ui/AspectRatio.js +6 -0
  380. package/lib/ui/AspectRatio.js.map +1 -0
  381. package/lib/ui/Badge.js +27 -0
  382. package/lib/ui/Badge.js.map +1 -0
  383. package/lib/ui/Breadcrumb.js +94 -0
  384. package/lib/ui/Breadcrumb.js.map +1 -0
  385. package/lib/ui/Button.js +49 -0
  386. package/lib/ui/Button.js.map +1 -0
  387. package/lib/ui/Callout.js +77 -0
  388. package/lib/ui/Callout.js.map +1 -0
  389. package/lib/ui/Card.js +62 -0
  390. package/lib/ui/Card.js.map +1 -0
  391. package/lib/ui/Carousel.js +1410 -0
  392. package/lib/ui/Carousel.js.map +1 -0
  393. package/lib/ui/Checkbox.js +28 -0
  394. package/lib/ui/Checkbox.js.map +1 -0
  395. package/lib/ui/Collapsible.js +8 -0
  396. package/lib/ui/Collapsible.js.map +1 -0
  397. package/lib/ui/Command.js +550 -0
  398. package/lib/ui/Command.js.map +1 -0
  399. package/lib/ui/Dialog.js +101 -0
  400. package/lib/ui/Dialog.js.map +1 -0
  401. package/lib/ui/Drawer.js +1153 -0
  402. package/lib/ui/Drawer.js.map +1 -0
  403. package/lib/ui/DropdownMenu.js +145 -0
  404. package/lib/ui/DropdownMenu.js.map +1 -0
  405. package/lib/ui/Form.js +95 -0
  406. package/lib/ui/Form.js.map +1 -0
  407. package/lib/ui/HoverCard.js +24 -0
  408. package/lib/ui/HoverCard.js.map +1 -0
  409. package/lib/ui/Input.js +22 -0
  410. package/lib/ui/Input.js.map +1 -0
  411. package/lib/ui/Label.js +20 -0
  412. package/lib/ui/Label.js.map +1 -0
  413. package/lib/ui/Pagination.js +106 -0
  414. package/lib/ui/Pagination.js.map +1 -0
  415. package/lib/ui/Popover.js +24 -0
  416. package/lib/ui/Popover.js.map +1 -0
  417. package/lib/ui/Progress.js +27 -0
  418. package/lib/ui/Progress.js.map +1 -0
  419. package/lib/ui/RadioGroup.js +32 -0
  420. package/lib/ui/RadioGroup.js.map +1 -0
  421. package/lib/ui/ScrollArea.js +39 -0
  422. package/lib/ui/ScrollArea.js.map +1 -0
  423. package/lib/ui/Select.js +122 -0
  424. package/lib/ui/Select.js.map +1 -0
  425. package/lib/ui/Skeleton.js +18 -0
  426. package/lib/ui/Skeleton.js.map +1 -0
  427. package/lib/ui/Slider.js +24 -0
  428. package/lib/ui/Slider.js.map +1 -0
  429. package/lib/ui/Switch.js +28 -0
  430. package/lib/ui/Switch.js.map +1 -0
  431. package/lib/ui/Tabs.js +47 -0
  432. package/lib/ui/Tabs.js.map +1 -0
  433. package/lib/ui/Textarea.js +21 -0
  434. package/lib/ui/Textarea.js.map +1 -0
  435. package/lib/ui/Toggle.js +38 -0
  436. package/lib/ui/Toggle.js.map +1 -0
  437. package/lib/ui/ToggleGroup.js +42 -0
  438. package/lib/ui/ToggleGroup.js.map +1 -0
  439. package/lib/ui/Tooltip.js +24 -0
  440. package/lib/ui/Tooltip.js.map +1 -0
  441. package/lib/useExposedProps-CTPtylCV.js +10 -0
  442. package/lib/useExposedProps-CTPtylCV.js.map +1 -0
  443. package/lib/{ZudokuContext-DEoP3GGJ.js → utils-DcpDOncX.js} +455 -410
  444. package/lib/utils-DcpDOncX.js.map +1 -0
  445. package/lib/zudoku.auth-auth0.js +24 -18
  446. package/lib/zudoku.auth-auth0.js.map +1 -1
  447. package/lib/zudoku.auth-clerk.js +2 -2
  448. package/lib/zudoku.auth-openid.js +124 -138
  449. package/lib/zudoku.auth-openid.js.map +1 -1
  450. package/lib/zudoku.components.js +1128 -2987
  451. package/lib/zudoku.components.js.map +1 -1
  452. package/lib/zudoku.openapi-worker.js +10 -16336
  453. package/lib/zudoku.openapi-worker.js.map +1 -1
  454. package/lib/zudoku.plugin-api-keys.js +24 -21
  455. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  456. package/lib/zudoku.plugin-custom-pages.js +9 -8
  457. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  458. package/lib/zudoku.plugin-markdown.js +93 -27
  459. package/lib/zudoku.plugin-markdown.js.map +1 -1
  460. package/lib/zudoku.plugin-openapi.js +6 -10
  461. package/lib/zudoku.plugin-openapi.js.map +1 -1
  462. package/lib/zudoku.plugin-redirect.js +2 -2
  463. package/lib/zudoku.plugin-redirect.js.map +1 -1
  464. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  465. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  466. package/package.json +43 -11
  467. package/src/app/demo.tsx +0 -3
  468. package/src/app/entry.client.tsx +18 -2
  469. package/src/app/entry.server.tsx +60 -50
  470. package/src/app/main.css +5 -1
  471. package/src/app/main.tsx +14 -30
  472. package/src/app/standalone.tsx +1 -4
  473. package/src/lib/authentication/authentication.ts +2 -2
  474. package/src/lib/authentication/hook.ts +1 -3
  475. package/src/lib/authentication/providers/auth0.tsx +17 -11
  476. package/src/lib/authentication/providers/openid.tsx +12 -30
  477. package/src/lib/authentication/state.ts +50 -9
  478. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  479. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  480. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  481. package/src/lib/components/Bootstrap.tsx +36 -9
  482. package/src/lib/components/ClientOnly.tsx +6 -3
  483. package/src/lib/components/DeveloperHint.tsx +6 -1
  484. package/src/lib/components/Header.tsx +50 -40
  485. package/src/lib/components/Layout.tsx +43 -36
  486. package/src/lib/components/MobileTopNavigation.tsx +15 -18
  487. package/src/lib/components/SlotletProvider.tsx +2 -0
  488. package/src/lib/components/SyntaxHighlight.tsx +85 -46
  489. package/src/lib/components/ThemeSwitch.tsx +26 -0
  490. package/src/lib/components/TopNavigation.tsx +66 -24
  491. package/src/lib/components/Zudoku.tsx +108 -0
  492. package/src/lib/components/context/ZudokuContext.ts +33 -30
  493. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  494. package/src/lib/components/index.ts +2 -3
  495. package/src/lib/components/navigation/Sidebar.tsx +5 -5
  496. package/src/lib/components/navigation/SidebarCategory.tsx +2 -4
  497. package/src/lib/components/navigation/SidebarItem.tsx +1 -3
  498. package/src/lib/components/navigation/utils.ts +11 -16
  499. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +6 -18
  500. package/src/lib/core/plugins.ts +14 -16
  501. package/src/lib/errors/ErrorAlert.tsx +2 -1
  502. package/src/lib/oas/graphql/index.ts +4 -4
  503. package/src/lib/oas/parser/upgrade/index.ts +3 -1
  504. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  505. package/src/lib/plugins/api-keys/index.tsx +9 -9
  506. package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
  507. package/src/lib/plugins/custom-pages/index.tsx +2 -2
  508. package/src/lib/plugins/markdown/index.tsx +50 -13
  509. package/src/lib/plugins/markdown/resolver.ts +92 -0
  510. package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
  511. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  512. package/src/lib/plugins/openapi/Endpoint.tsx +7 -12
  513. package/src/lib/plugins/openapi/OperationList.tsx +20 -40
  514. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  515. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
  516. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
  517. package/src/lib/plugins/openapi/Route.tsx +11 -12
  518. package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
  519. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
  520. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  521. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  522. package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
  523. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  524. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  525. package/src/lib/plugins/openapi/graphql/gql.ts +10 -27
  526. package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
  527. package/src/lib/plugins/openapi/index.tsx +42 -67
  528. package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
  529. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  530. package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
  531. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
  532. package/src/lib/plugins/openapi-worker.ts +11 -1
  533. package/src/lib/plugins/redirect/index.tsx +5 -9
  534. package/src/lib/plugins/search-inkeep/index.tsx +2 -2
  535. package/src/lib/ui/Accordion.tsx +56 -0
  536. package/src/lib/ui/ActionButton.tsx +28 -0
  537. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  538. package/src/lib/ui/AlertDialog.tsx +139 -0
  539. package/src/lib/ui/AspectRatio.tsx +5 -0
  540. package/src/lib/ui/Badge.tsx +36 -0
  541. package/src/lib/ui/Breadcrumb.tsx +115 -0
  542. package/src/lib/ui/Button.tsx +1 -1
  543. package/src/lib/ui/Carousel.tsx +260 -0
  544. package/src/lib/ui/Checkbox.tsx +28 -0
  545. package/src/lib/ui/Collapsible.tsx +9 -0
  546. package/src/lib/ui/Command.tsx +151 -0
  547. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  548. package/src/lib/ui/Form.tsx +177 -0
  549. package/src/lib/ui/HoverCard.tsx +27 -0
  550. package/src/lib/ui/Label.tsx +24 -0
  551. package/src/lib/ui/Pagination.tsx +117 -0
  552. package/src/lib/ui/Popover.tsx +29 -0
  553. package/src/lib/ui/Progress.tsx +26 -0
  554. package/src/lib/ui/RadioGroup.tsx +42 -0
  555. package/src/lib/ui/ScrollArea.tsx +46 -0
  556. package/src/lib/ui/Skeleton.tsx +15 -0
  557. package/src/lib/ui/Slider.tsx +26 -0
  558. package/src/lib/ui/Switch.tsx +27 -0
  559. package/src/lib/ui/Textarea.tsx +23 -0
  560. package/src/lib/ui/Toggle.tsx +43 -0
  561. package/src/lib/ui/ToggleGroup.tsx +59 -0
  562. package/src/lib/ui/Tooltip.tsx +28 -0
  563. package/src/lib/util/MdxComponents.tsx +0 -1
  564. package/src/lib/util/useExposedProps.tsx +8 -2
  565. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  566. package/src/lib/util/useOnScreen.ts +32 -0
  567. package/src/lib/util/useScrollToAnchor.ts +1 -1
  568. package/dist/internal.d.ts +0 -1
  569. package/dist/internal.js +0 -2
  570. package/dist/internal.js.map +0 -1
  571. package/dist/lib/components/DevPortal.js.map +0 -1
  572. package/dist/lib/components/Dialog.js.map +0 -1
  573. package/dist/lib/components/Select.js.map +0 -1
  574. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  575. package/dist/lib/components/context/ThemeContext.js +0 -7
  576. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  577. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  578. package/dist/lib/components/context/ThemeProvider.js +0 -23
  579. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  580. package/dist/lib/core/DevPortalContext.js.map +0 -1
  581. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  582. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  583. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  584. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  585. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  586. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  587. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  588. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  589. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  590. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  591. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  592. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  593. package/dist/lib/themeToggle.d.ts +0 -1
  594. package/dist/lib/themeToggle.js +0 -7
  595. package/dist/lib/themeToggle.js.map +0 -1
  596. package/dist/lib/ui/Note.d.ts +0 -8
  597. package/dist/lib/ui/Note.js +0 -23
  598. package/dist/lib/ui/Note.js.map +0 -1
  599. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  600. package/dist/lib/util/createWaitForNotify.js +0 -15
  601. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  602. package/dist/vite/plugin-html-transform.d.ts +0 -2
  603. package/dist/vite/plugin-html-transform.js +0 -15
  604. package/dist/vite/plugin-html-transform.js.map +0 -1
  605. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  606. package/lib/DeveloperHint-CRiZjqd2.js +0 -16
  607. package/lib/DeveloperHint-CRiZjqd2.js.map +0 -1
  608. package/lib/Input-CO-1DOZa.js +0 -2229
  609. package/lib/Input-CO-1DOZa.js.map +0 -1
  610. package/lib/Markdown-DM4zv3MA.js +0 -20442
  611. package/lib/Markdown-DM4zv3MA.js.map +0 -1
  612. package/lib/OperationList-Cd3lue0b.js +0 -600
  613. package/lib/OperationList-Cd3lue0b.js.map +0 -1
  614. package/lib/Route-DI0Y0pIV.js +0 -13
  615. package/lib/Route-DI0Y0pIV.js.map +0 -1
  616. package/lib/SlotletProvider-CBqY8mp6.js +0 -241
  617. package/lib/SlotletProvider-CBqY8mp6.js.map +0 -1
  618. package/lib/Spinner-DFQhPMBl.js +0 -505
  619. package/lib/Spinner-DFQhPMBl.js.map +0 -1
  620. package/lib/ZudokuContext-DEoP3GGJ.js.map +0 -1
  621. package/lib/index-Bs9roz8y.js +0 -5973
  622. package/lib/index-Bs9roz8y.js.map +0 -1
  623. package/lib/index-CBr6BM_4.js +0 -2867
  624. package/lib/index-CBr6BM_4.js.map +0 -1
  625. package/lib/index-CRo94sKK.js +0 -1783
  626. package/lib/index-CRo94sKK.js.map +0 -1
  627. package/lib/index-UUT9q9f9.js +0 -124
  628. package/lib/index-UUT9q9f9.js.map +0 -1
  629. package/lib/joinPath-B7kNnUX4.js +0 -8
  630. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  631. package/lib/state-CsuHT8ZO.js +0 -183
  632. package/lib/urql-core-KJnLL26g.js +0 -1455
  633. package/lib/urql-core-KJnLL26g.js.map +0 -1
  634. package/lib/useExposedProps-B9K-9GTc.js +0 -9
  635. package/lib/useExposedProps-B9K-9GTc.js.map +0 -1
  636. package/lib/utils-G5XSiZc9.js.map +0 -1
  637. package/src/lib/components/DevPortal.tsx +0 -111
  638. package/src/lib/components/context/ThemeContext.tsx +0 -8
  639. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  640. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  641. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  642. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  643. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  644. package/src/lib/themeToggle.ts +0 -7
  645. package/src/lib/util/createWaitForNotify.ts +0 -18
  646. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  647. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
  648. /package/dist/lib/{components → ui}/Select.js +0 -0
  649. /package/src/lib/{components → ui}/Select.tsx +0 -0
@@ -1,32 +1,31 @@
1
- var ce = Object.defineProperty;
2
- var le = (e, t, r) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var T = (e, t, r) => le(e, typeof t != "symbol" ? t + "" : t, r);
4
- import h, { Component as U } from "react";
5
- import { g as q } from "./_commonjsHelpers-BkfeUUK-.js";
6
- import { j as ue } from "./jsx-runtime-B6kdoens.js";
7
- import { u as $, L as fe } from "./index-CRo94sKK.js";
8
- import { j as S } from "./joinPath-B7kNnUX4.js";
9
- import { c as K, u as Q } from "./ZudokuContext-DEoP3GGJ.js";
10
- const _ = {}, N = h.createContext(_);
11
- function de(e) {
12
- const t = h.useContext(N);
13
- return h.useMemo(
1
+ var re = Object.defineProperty;
2
+ var ne = (e, t, r) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var T = (e, t, r) => ne(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import d, { Component as L } from "react";
5
+ import { g as F } from "./_commonjsHelpers-BkfeUUK-.js";
6
+ import { j as se } from "./jsx-runtime-B6kdoens.js";
7
+ import { L as oe } from "./index-Yn8c3UWE.js";
8
+ import { u as ie } from "./index-Czzd9rjU.js";
9
+ const k = {}, X = d.createContext(k);
10
+ function ae(e) {
11
+ const t = d.useContext(X);
12
+ return d.useMemo(
14
13
  function() {
15
14
  return typeof e == "function" ? e(t) : { ...t, ...e };
16
15
  },
17
16
  [t, e]
18
17
  );
19
18
  }
20
- function We(e) {
19
+ function ze(e) {
21
20
  let t;
22
- return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t = de(e.components), h.createElement(
23
- N.Provider,
21
+ return e.disableParentContext ? t = typeof e.components == "function" ? e.components(k) : e.components || k : t = ae(e.components), d.createElement(
22
+ X.Provider,
24
23
  { value: t },
25
24
  e.children
26
25
  );
27
26
  }
28
- var pe = typeof Element < "u", he = typeof Map == "function", me = typeof Set == "function", ye = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
29
- function P(e, t) {
27
+ var le = typeof Element < "u", ce = typeof Map == "function", ue = typeof Set == "function", fe = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
28
+ function x(e, t) {
30
29
  if (e === t) return !0;
31
30
  if (e && t && typeof e == "object" && typeof t == "object") {
32
31
  if (e.constructor !== t.constructor) return !1;
@@ -34,25 +33,25 @@ function P(e, t) {
34
33
  if (Array.isArray(e)) {
35
34
  if (r = e.length, r != t.length) return !1;
36
35
  for (n = r; n-- !== 0; )
37
- if (!P(e[n], t[n])) return !1;
36
+ if (!x(e[n], t[n])) return !1;
38
37
  return !0;
39
38
  }
40
39
  var o;
41
- if (he && e instanceof Map && t instanceof Map) {
40
+ if (ce && e instanceof Map && t instanceof Map) {
42
41
  if (e.size !== t.size) return !1;
43
42
  for (o = e.entries(); !(n = o.next()).done; )
44
43
  if (!t.has(n.value[0])) return !1;
45
44
  for (o = e.entries(); !(n = o.next()).done; )
46
- if (!P(n.value[1], t.get(n.value[0]))) return !1;
45
+ if (!x(n.value[1], t.get(n.value[0]))) return !1;
47
46
  return !0;
48
47
  }
49
- if (me && e instanceof Set && t instanceof Set) {
48
+ if (ue && e instanceof Set && t instanceof Set) {
50
49
  if (e.size !== t.size) return !1;
51
50
  for (o = e.entries(); !(n = o.next()).done; )
52
51
  if (!t.has(n.value[0])) return !1;
53
52
  return !0;
54
53
  }
55
- if (ye && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
54
+ if (fe && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
56
55
  if (r = e.length, r != t.length) return !1;
57
56
  for (n = r; n-- !== 0; )
58
57
  if (e[n] !== t[n]) return !1;
@@ -64,46 +63,46 @@ function P(e, t) {
64
63
  if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
65
64
  for (n = r; n-- !== 0; )
66
65
  if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
67
- if (pe && e instanceof Element) return !1;
66
+ if (le && e instanceof Element) return !1;
68
67
  for (n = r; n-- !== 0; )
69
- if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !P(e[s[n]], t[s[n]]))
68
+ if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
70
69
  return !1;
71
70
  return !0;
72
71
  }
73
72
  return e !== e && t !== t;
74
73
  }
75
- var Te = function(t, r) {
74
+ var pe = function(t, r) {
76
75
  try {
77
- return P(t, r);
76
+ return x(t, r);
78
77
  } catch (n) {
79
78
  if ((n.message || "").match(/stack|recursion/i))
80
79
  return console.warn("react-fast-compare cannot handle circular refs"), !1;
81
80
  throw n;
82
81
  }
83
82
  };
84
- const ge = /* @__PURE__ */ q(Te);
85
- var ve = function(e, t, r, n, s, o, l, i) {
83
+ const me = /* @__PURE__ */ F(pe);
84
+ var de = function(e, t, r, n, s, o, c, i) {
86
85
  if (process.env.NODE_ENV !== "production" && t === void 0)
87
86
  throw new Error("invariant requires an error message argument");
88
87
  if (!e) {
89
- var a;
88
+ var l;
90
89
  if (t === void 0)
91
- a = new Error(
90
+ l = new Error(
92
91
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
93
92
  );
94
93
  else {
95
- var c = [r, n, s, o, l, i], u = 0;
96
- a = new Error(
94
+ var a = [r, n, s, o, c, i], u = 0;
95
+ l = new Error(
97
96
  t.replace(/%s/g, function() {
98
- return c[u++];
97
+ return a[u++];
99
98
  })
100
- ), a.name = "Invariant Violation";
99
+ ), l.name = "Invariant Violation";
101
100
  }
102
- throw a.framesToPop = 1, a;
101
+ throw l.framesToPop = 1, l;
103
102
  }
104
- }, Ae = ve;
105
- const X = /* @__PURE__ */ q(Ae);
106
- var be = function(t, r, n, s) {
103
+ }, he = de;
104
+ const z = /* @__PURE__ */ F(he);
105
+ var ye = function(t, r, n, s) {
107
106
  var o = n ? n.call(s, t, r) : void 0;
108
107
  if (o !== void 0)
109
108
  return !!o;
@@ -111,21 +110,21 @@ var be = function(t, r, n, s) {
111
110
  return !0;
112
111
  if (typeof t != "object" || !t || typeof r != "object" || !r)
113
112
  return !1;
114
- var l = Object.keys(t), i = Object.keys(r);
115
- if (l.length !== i.length)
113
+ var c = Object.keys(t), i = Object.keys(r);
114
+ if (c.length !== i.length)
116
115
  return !1;
117
- for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < l.length; c++) {
118
- var u = l[c];
119
- if (!a(u))
116
+ for (var l = Object.prototype.hasOwnProperty.bind(r), a = 0; a < c.length; a++) {
117
+ var u = c[a];
118
+ if (!l(u))
120
119
  return !1;
121
- var f = t[u], m = r[u];
122
- if (o = n ? n.call(s, f, m, u) : void 0, o === !1 || o === void 0 && f !== m)
120
+ var f = t[u], h = r[u];
121
+ if (o = n ? n.call(s, f, h, u) : void 0, o === !1 || o === void 0 && f !== h)
123
122
  return !1;
124
123
  }
125
124
  return !0;
126
125
  };
127
- const Ce = /* @__PURE__ */ q(be);
128
- var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ee || {}), D = {
126
+ const Te = /* @__PURE__ */ F(ye);
127
+ var W = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(W || {}), I = {
129
128
  link: { rel: ["amphtml", "canonical", "alternate"] },
130
129
  script: { type: ["application/ld+json"] },
131
130
  meta: {
@@ -147,7 +146,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
147
146
  "twitter:site"
148
147
  ]
149
148
  }
150
- }, Z = Object.values(ee), z = {
149
+ }, N = Object.values(W), U = {
151
150
  accesskey: "accessKey",
152
151
  charset: "charSet",
153
152
  class: "className",
@@ -156,36 +155,36 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
156
155
  "http-equiv": "httpEquiv",
157
156
  itemprop: "itemProp",
158
157
  tabindex: "tabIndex"
159
- }, Ee = Object.entries(z).reduce(
158
+ }, ge = Object.entries(U).reduce(
160
159
  (e, [t, r]) => (e[r] = t, e),
161
160
  {}
162
- ), y = "data-rh", b = {
161
+ ), y = "data-rh", C = {
163
162
  DEFAULT_TITLE: "defaultTitle",
164
163
  DEFER: "defer",
165
164
  ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
166
165
  ON_CHANGE_CLIENT_STATE: "onChangeClientState",
167
166
  TITLE_TEMPLATE: "titleTemplate",
168
167
  PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
169
- }, C = (e, t) => {
168
+ }, E = (e, t) => {
170
169
  for (let r = e.length - 1; r >= 0; r -= 1) {
171
170
  const n = e[r];
172
171
  if (Object.prototype.hasOwnProperty.call(n, t))
173
172
  return n[t];
174
173
  }
175
174
  return null;
176
- }, Oe = (e) => {
177
- let t = C(
175
+ }, ve = (e) => {
176
+ let t = E(
178
177
  e,
179
178
  "title"
180
179
  /* TITLE */
181
180
  );
182
- const r = C(e, b.TITLE_TEMPLATE);
181
+ const r = E(e, C.TITLE_TEMPLATE);
183
182
  if (Array.isArray(t) && (t = t.join("")), r && t)
184
183
  return r.replace(/%s/g, () => t);
185
- const n = C(e, b.DEFAULT_TITLE);
184
+ const n = E(e, C.DEFAULT_TITLE);
186
185
  return t || n || void 0;
187
- }, Se = (e) => C(e, b.ON_CHANGE_CLIENT_STATE) || (() => {
188
- }), M = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), we = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
186
+ }, Ae = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
187
+ }), $ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), Ce = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
189
188
  if (!r.length) {
190
189
  const s = Object.keys(n);
191
190
  for (let o = 0; o < s.length; o += 1) {
@@ -195,51 +194,51 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
195
194
  }
196
195
  }
197
196
  return r;
198
- }, []), xe = (e) => console && typeof console.warn == "function" && console.warn(e), E = (e, t, r) => {
197
+ }, []), Ee = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
199
198
  const n = {};
200
- return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && xe(
199
+ return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && Ee(
201
200
  `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
202
201
  ), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
203
- const l = {};
204
- o.filter((a) => {
205
- let c;
206
- const u = Object.keys(a);
207
- for (let m = 0; m < u.length; m += 1) {
208
- const d = u[m], g = d.toLowerCase();
209
- t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(d) !== -1 && (d === "innerHTML" || d === "cssText" || d === "itemprop") && (c = d);
202
+ const c = {};
203
+ o.filter((l) => {
204
+ let a;
205
+ const u = Object.keys(l);
206
+ for (let h = 0; h < u.length; h += 1) {
207
+ const p = u[h], g = p.toLowerCase();
208
+ t.indexOf(g) !== -1 && !(a === "rel" && l[a].toLowerCase() === "canonical") && !(g === "rel" && l[g].toLowerCase() === "stylesheet") && (a = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
210
209
  }
211
- if (!c || !a[c])
210
+ if (!a || !l[a])
212
211
  return !1;
213
- const f = a[c].toLowerCase();
214
- return n[c] || (n[c] = {}), l[c] || (l[c] = {}), n[c][f] ? !1 : (l[c][f] = !0, !0);
215
- }).reverse().forEach((a) => s.push(a));
216
- const i = Object.keys(l);
217
- for (let a = 0; a < i.length; a += 1) {
218
- const c = i[a], u = {
219
- ...n[c],
220
- ...l[c]
212
+ const f = l[a].toLowerCase();
213
+ return n[a] || (n[a] = {}), c[a] || (c[a] = {}), n[a][f] ? !1 : (c[a][f] = !0, !0);
214
+ }).reverse().forEach((l) => s.push(l));
215
+ const i = Object.keys(c);
216
+ for (let l = 0; l < i.length; l += 1) {
217
+ const a = i[l], u = {
218
+ ...n[a],
219
+ ...c[a]
221
220
  };
222
- n[c] = u;
221
+ n[a] = u;
223
222
  }
224
223
  return s;
225
224
  }, []).reverse();
226
- }, Pe = (e, t) => {
225
+ }, be = (e, t) => {
227
226
  if (Array.isArray(e) && e.length) {
228
227
  for (let r = 0; r < e.length; r += 1)
229
228
  if (e[r][t])
230
229
  return !0;
231
230
  }
232
231
  return !1;
233
- }, ke = (e) => ({
234
- baseTag: we([
232
+ }, Oe = (e) => ({
233
+ baseTag: Ce([
235
234
  "href"
236
235
  /* HREF */
237
236
  ], e),
238
- bodyAttributes: M("bodyAttributes", e),
239
- defer: C(e, b.DEFER),
240
- encode: C(e, b.ENCODE_SPECIAL_CHARACTERS),
241
- htmlAttributes: M("htmlAttributes", e),
242
- linkTags: E(
237
+ bodyAttributes: $("bodyAttributes", e),
238
+ defer: E(e, C.DEFER),
239
+ encode: E(e, C.ENCODE_SPECIAL_CHARACTERS),
240
+ htmlAttributes: $("htmlAttributes", e),
241
+ linkTags: b(
243
242
  "link",
244
243
  [
245
244
  "rel",
@@ -248,7 +247,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
248
247
  ],
249
248
  e
250
249
  ),
251
- metaTags: E(
250
+ metaTags: b(
252
251
  "meta",
253
252
  [
254
253
  "name",
@@ -260,12 +259,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
260
259
  ],
261
260
  e
262
261
  ),
263
- noscriptTags: E("noscript", [
262
+ noscriptTags: b("noscript", [
264
263
  "innerHTML"
265
264
  /* INNER_HTML */
266
265
  ], e),
267
- onChangeClientState: Se(e),
268
- scriptTags: E(
266
+ onChangeClientState: Ae(e),
267
+ scriptTags: b(
269
268
  "script",
270
269
  [
271
270
  "src",
@@ -274,163 +273,163 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
274
273
  ],
275
274
  e
276
275
  ),
277
- styleTags: E("style", [
276
+ styleTags: b("style", [
278
277
  "cssText"
279
278
  /* CSS_TEXT */
280
279
  ], e),
281
- title: Oe(e),
282
- titleAttributes: M("titleAttributes", e),
283
- prioritizeSeoTags: Pe(e, b.PRIORITIZE_SEO_TAGS)
284
- }), te = (e) => Array.isArray(e) ? e.join("") : e, $e = (e, t) => {
280
+ title: ve(e),
281
+ titleAttributes: $("titleAttributes", e),
282
+ prioritizeSeoTags: be(e, C.PRIORITIZE_SEO_TAGS)
283
+ }), Z = (e) => Array.isArray(e) ? e.join("") : e, Se = (e, t) => {
285
284
  const r = Object.keys(e);
286
285
  for (let n = 0; n < r.length; n += 1)
287
286
  if (t[r[n]] && t[r[n]].includes(e[r[n]]))
288
287
  return !0;
289
288
  return !1;
290
- }, I = (e, t) => Array.isArray(e) ? e.reduce(
291
- (r, n) => ($e(n, t) ? r.priority.push(n) : r.default.push(n), r),
289
+ }, D = (e, t) => Array.isArray(e) ? e.reduce(
290
+ (r, n) => (Se(n, t) ? r.priority.push(n) : r.default.push(n), r),
292
291
  { priority: [], default: [] }
293
- ) : { default: e, priority: [] }, W = (e, t) => ({
292
+ ) : { default: e, priority: [] }, V = (e, t) => ({
294
293
  ...e,
295
294
  [t]: void 0
296
- }), De = [
295
+ }), we = [
297
296
  "noscript",
298
297
  "script",
299
298
  "style"
300
299
  /* STYLE */
301
- ], R = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), re = (e) => Object.keys(e).reduce((t, r) => {
300
+ ], H = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), G = (e) => Object.keys(e).reduce((t, r) => {
302
301
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
303
302
  return t ? `${t} ${n}` : n;
304
- }, ""), Me = (e, t, r, n) => {
305
- const s = re(r), o = te(t);
306
- return s ? `<${e} ${y}="true" ${s}>${R(
303
+ }, ""), xe = (e, t, r, n) => {
304
+ const s = G(r), o = Z(t);
305
+ return s ? `<${e} ${y}="true" ${s}>${H(
307
306
  o,
308
307
  n
309
- )}</${e}>` : `<${e} ${y}="true">${R(
308
+ )}</${e}>` : `<${e} ${y}="true">${H(
310
309
  o,
311
310
  n
312
311
  )}</${e}>`;
313
- }, Ie = (e, t, r = !0) => t.reduce((n, s) => {
314
- const o = s, l = Object.keys(o).filter(
315
- (c) => !(c === "innerHTML" || c === "cssText")
316
- ).reduce((c, u) => {
317
- const f = typeof o[u] > "u" ? u : `${u}="${R(o[u], r)}"`;
318
- return c ? `${c} ${f}` : f;
319
- }, ""), i = o.innerHTML || o.cssText || "", a = De.indexOf(e) === -1;
320
- return `${n}<${e} ${y}="true" ${l}${a ? "/>" : `>${i}</${e}>`}`;
321
- }, ""), ne = (e, t = {}) => Object.keys(e).reduce((r, n) => {
322
- const s = z[n];
312
+ }, Pe = (e, t, r = !0) => t.reduce((n, s) => {
313
+ const o = s, c = Object.keys(o).filter(
314
+ (a) => !(a === "innerHTML" || a === "cssText")
315
+ ).reduce((a, u) => {
316
+ const f = typeof o[u] > "u" ? u : `${u}="${H(o[u], r)}"`;
317
+ return a ? `${a} ${f}` : f;
318
+ }, ""), i = o.innerHTML || o.cssText || "", l = we.indexOf(e) === -1;
319
+ return `${n}<${e} ${y}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
320
+ }, ""), J = (e, t = {}) => Object.keys(e).reduce((r, n) => {
321
+ const s = U[n];
323
322
  return r[s || n] = e[n], r;
324
- }, t), He = (e, t, r) => {
323
+ }, t), Ie = (e, t, r) => {
325
324
  const n = {
326
325
  key: t,
327
326
  [y]: !0
328
- }, s = ne(r, n);
329
- return [h.createElement("title", s, t)];
330
- }, k = (e, t) => t.map((r, n) => {
327
+ }, s = J(r, n);
328
+ return [d.createElement("title", s, t)];
329
+ }, P = (e, t) => t.map((r, n) => {
331
330
  const s = {
332
331
  key: n,
333
332
  [y]: !0
334
333
  };
335
334
  return Object.keys(r).forEach((o) => {
336
- const i = z[o] || o;
335
+ const i = U[o] || o;
337
336
  if (i === "innerHTML" || i === "cssText") {
338
- const a = r.innerHTML || r.cssText;
339
- s.dangerouslySetInnerHTML = { __html: a };
337
+ const l = r.innerHTML || r.cssText;
338
+ s.dangerouslySetInnerHTML = { __html: l };
340
339
  } else
341
340
  s[i] = r[o];
342
- }), h.createElement(e, s);
343
- }), p = (e, t, r = !0) => {
341
+ }), d.createElement(e, s);
342
+ }), m = (e, t, r = !0) => {
344
343
  switch (e) {
345
344
  case "title":
346
345
  return {
347
- toComponent: () => He(e, t.title, t.titleAttributes),
348
- toString: () => Me(e, t.title, t.titleAttributes, r)
346
+ toComponent: () => Ie(e, t.title, t.titleAttributes),
347
+ toString: () => xe(e, t.title, t.titleAttributes, r)
349
348
  };
350
349
  case "bodyAttributes":
351
350
  case "htmlAttributes":
352
351
  return {
353
- toComponent: () => ne(t),
354
- toString: () => re(t)
352
+ toComponent: () => J(t),
353
+ toString: () => G(t)
355
354
  };
356
355
  default:
357
356
  return {
358
- toComponent: () => k(e, t),
359
- toString: () => Ie(e, t, r)
357
+ toComponent: () => P(e, t),
358
+ toString: () => Pe(e, t, r)
360
359
  };
361
360
  }
362
- }, _e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
363
- const s = I(e, D.meta), o = I(t, D.link), l = I(r, D.script);
361
+ }, $e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
362
+ const s = D(e, I.meta), o = D(t, I.link), c = D(r, I.script);
364
363
  return {
365
364
  priorityMethods: {
366
365
  toComponent: () => [
367
- ...k("meta", s.priority),
368
- ...k("link", o.priority),
369
- ...k("script", l.priority)
366
+ ...P("meta", s.priority),
367
+ ...P("link", o.priority),
368
+ ...P("script", c.priority)
370
369
  ],
371
370
  toString: () => (
372
371
  // generate all the tags as strings and concatenate them
373
- `${p("meta", s.priority, n)} ${p(
372
+ `${m("meta", s.priority, n)} ${m(
374
373
  "link",
375
374
  o.priority,
376
375
  n
377
- )} ${p("script", l.priority, n)}`
376
+ )} ${m("script", c.priority, n)}`
378
377
  )
379
378
  },
380
379
  metaTags: s.default,
381
380
  linkTags: o.default,
382
- scriptTags: l.default
381
+ scriptTags: c.default
383
382
  };
384
- }, Re = (e) => {
383
+ }, De = (e) => {
385
384
  const {
386
385
  baseTag: t,
387
386
  bodyAttributes: r,
388
387
  encode: n = !0,
389
388
  htmlAttributes: s,
390
389
  noscriptTags: o,
391
- styleTags: l,
390
+ styleTags: c,
392
391
  title: i = "",
393
- titleAttributes: a,
394
- prioritizeSeoTags: c
392
+ titleAttributes: l,
393
+ prioritizeSeoTags: a
395
394
  } = e;
396
- let { linkTags: u, metaTags: f, scriptTags: m } = e, d = {
395
+ let { linkTags: u, metaTags: f, scriptTags: h } = e, p = {
397
396
  toComponent: () => {
398
397
  },
399
398
  toString: () => ""
400
399
  };
401
- return c && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
402
- priority: d,
403
- base: p("base", t, n),
404
- bodyAttributes: p("bodyAttributes", r, n),
405
- htmlAttributes: p("htmlAttributes", s, n),
406
- link: p("link", u, n),
407
- meta: p("meta", f, n),
408
- noscript: p("noscript", o, n),
409
- script: p("script", m, n),
410
- style: p("style", l, n),
411
- title: p("title", { title: i, titleAttributes: a }, n)
400
+ return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = $e(e)), {
401
+ priority: p,
402
+ base: m("base", t, n),
403
+ bodyAttributes: m("bodyAttributes", r, n),
404
+ htmlAttributes: m("htmlAttributes", s, n),
405
+ link: m("link", u, n),
406
+ meta: m("meta", f, n),
407
+ noscript: m("noscript", o, n),
408
+ script: m("script", h, n),
409
+ style: m("style", c, n),
410
+ title: m("title", { title: i, titleAttributes: l }, n)
412
411
  };
413
- }, j = Re, x = [], se = !!(typeof window < "u" && window.document && window.document.createElement), L = class {
412
+ }, _ = De, w = [], Q = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
414
413
  constructor(e, t) {
415
414
  T(this, "instances", []);
416
- T(this, "canUseDOM", se);
415
+ T(this, "canUseDOM", Q);
417
416
  T(this, "context");
418
417
  T(this, "value", {
419
418
  setHelmet: (e) => {
420
419
  this.context.helmet = e;
421
420
  },
422
421
  helmetInstances: {
423
- get: () => this.canUseDOM ? x : this.instances,
422
+ get: () => this.canUseDOM ? w : this.instances,
424
423
  add: (e) => {
425
- (this.canUseDOM ? x : this.instances).push(e);
424
+ (this.canUseDOM ? w : this.instances).push(e);
426
425
  },
427
426
  remove: (e) => {
428
- const t = (this.canUseDOM ? x : this.instances).indexOf(e);
429
- (this.canUseDOM ? x : this.instances).splice(t, 1);
427
+ const t = (this.canUseDOM ? w : this.instances).indexOf(e);
428
+ (this.canUseDOM ? w : this.instances).splice(t, 1);
430
429
  }
431
430
  }
432
431
  });
433
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = j({
432
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
434
433
  baseTag: [],
435
434
  bodyAttributes: {},
436
435
  encodeSpecialCharacters: !0,
@@ -444,97 +443,97 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
444
443
  titleAttributes: {}
445
444
  }));
446
445
  }
447
- }, je = {}, oe = h.createContext(je), v, Le = (v = class extends U {
446
+ }, Me = {}, ee = d.createContext(Me), v, ke = (v = class extends L {
448
447
  constructor(r) {
449
448
  super(r);
450
449
  T(this, "helmetData");
451
- this.helmetData = new L(this.props.context || {}, v.canUseDOM);
450
+ this.helmetData = new R(this.props.context || {}, v.canUseDOM);
452
451
  }
453
452
  render() {
454
- return /* @__PURE__ */ h.createElement(oe.Provider, { value: this.helmetData.value }, this.props.children);
453
+ return /* @__PURE__ */ d.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
455
454
  }
456
- }, T(v, "canUseDOM", se), v), A = (e, t) => {
455
+ }, T(v, "canUseDOM", Q), v), A = (e, t) => {
457
456
  const r = document.head || document.querySelector(
458
457
  "head"
459
458
  /* HEAD */
460
459
  ), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
461
- let l;
460
+ let c;
462
461
  return t && t.length && t.forEach((i) => {
463
- const a = document.createElement(e);
464
- for (const c in i)
465
- if (Object.prototype.hasOwnProperty.call(i, c))
466
- if (c === "innerHTML")
467
- a.innerHTML = i.innerHTML;
468
- else if (c === "cssText")
469
- a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
462
+ const l = document.createElement(e);
463
+ for (const a in i)
464
+ if (Object.prototype.hasOwnProperty.call(i, a))
465
+ if (a === "innerHTML")
466
+ l.innerHTML = i.innerHTML;
467
+ else if (a === "cssText")
468
+ l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
470
469
  else {
471
- const u = c, f = typeof i[u] > "u" ? "" : i[u];
472
- a.setAttribute(c, f);
470
+ const u = a, f = typeof i[u] > "u" ? "" : i[u];
471
+ l.setAttribute(a, f);
473
472
  }
474
- a.setAttribute(y, "true"), s.some((c, u) => (l = u, a.isEqualNode(c))) ? s.splice(l, 1) : o.push(a);
473
+ l.setAttribute(y, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
475
474
  }), s.forEach((i) => {
476
- var a;
477
- return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
475
+ var l;
476
+ return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
478
477
  }), o.forEach((i) => r.appendChild(i)), {
479
478
  oldTags: s,
480
479
  newTags: o
481
480
  };
482
- }, F = (e, t) => {
481
+ }, j = (e, t) => {
483
482
  const r = document.getElementsByTagName(e)[0];
484
483
  if (!r)
485
484
  return;
486
- const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], l = Object.keys(t);
487
- for (const i of l) {
488
- const a = t[i] || "";
489
- r.getAttribute(i) !== a && r.setAttribute(i, a), s.indexOf(i) === -1 && s.push(i);
490
- const c = o.indexOf(i);
491
- c !== -1 && o.splice(c, 1);
485
+ const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
486
+ for (const i of c) {
487
+ const l = t[i] || "";
488
+ r.getAttribute(i) !== l && r.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
489
+ const a = o.indexOf(i);
490
+ a !== -1 && o.splice(a, 1);
492
491
  }
493
492
  for (let i = o.length - 1; i >= 0; i -= 1)
494
493
  r.removeAttribute(o[i]);
495
- s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== l.join(",") && r.setAttribute(y, l.join(","));
496
- }, Fe = (e, t) => {
497
- typeof e < "u" && document.title !== e && (document.title = te(e)), F("title", t);
498
- }, G = (e, t) => {
494
+ s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
495
+ }, He = (e, t) => {
496
+ typeof e < "u" && document.title !== e && (document.title = Z(e)), j("title", t);
497
+ }, Y = (e, t) => {
499
498
  const {
500
499
  baseTag: r,
501
500
  bodyAttributes: n,
502
501
  htmlAttributes: s,
503
502
  linkTags: o,
504
- metaTags: l,
503
+ metaTags: c,
505
504
  noscriptTags: i,
506
- onChangeClientState: a,
507
- scriptTags: c,
505
+ onChangeClientState: l,
506
+ scriptTags: a,
508
507
  styleTags: u,
509
508
  title: f,
510
- titleAttributes: m
509
+ titleAttributes: h
511
510
  } = e;
512
- F("body", n), F("html", s), Fe(f, m);
513
- const d = {
511
+ j("body", n), j("html", s), He(f, h);
512
+ const p = {
514
513
  baseTag: A("base", r),
515
514
  linkTags: A("link", o),
516
- metaTags: A("meta", l),
515
+ metaTags: A("meta", c),
517
516
  noscriptTags: A("noscript", i),
518
- scriptTags: A("script", c),
517
+ scriptTags: A("script", a),
519
518
  styleTags: A("style", u)
520
- }, g = {}, Y = {};
521
- Object.keys(d).forEach((w) => {
522
- const { newTags: B, oldTags: ae } = d[w];
523
- B.length && (g[w] = B), ae.length && (Y[w] = d[w].oldTags);
524
- }), t && t(), a(e, g, Y);
525
- }, O = null, Ue = (e) => {
519
+ }, g = {}, q = {};
520
+ Object.keys(p).forEach((S) => {
521
+ const { newTags: K, oldTags: te } = p[S];
522
+ K.length && (g[S] = K), te.length && (q[S] = p[S].oldTags);
523
+ }), t && t(), l(e, g, q);
524
+ }, O = null, _e = (e) => {
526
525
  O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
527
- G(e, () => {
526
+ Y(e, () => {
528
527
  O = null;
529
528
  });
530
- }) : (G(e), O = null);
531
- }, qe = Ue, J = class extends U {
529
+ }) : (Y(e), O = null);
530
+ }, Re = _e, B = class extends L {
532
531
  constructor() {
533
532
  super(...arguments);
534
533
  T(this, "rendered", !1);
535
534
  }
536
535
  shouldComponentUpdate(t) {
537
- return !Ce(t, this.props);
536
+ return !Te(t, this.props);
538
537
  }
539
538
  componentDidUpdate() {
540
539
  this.emitChange();
@@ -546,13 +545,13 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
546
545
  emitChange() {
547
546
  const { helmetInstances: t, setHelmet: r } = this.props.context;
548
547
  let n = null;
549
- const s = ke(
548
+ const s = Oe(
550
549
  t.get().map((o) => {
551
- const l = { ...o.props };
552
- return delete l.context, l;
550
+ const c = { ...o.props };
551
+ return delete c.context, c;
553
552
  })
554
553
  );
555
- Le.canUseDOM ? qe(s) : j && (n = j(s)), r(n);
554
+ ke.canUseDOM ? Re(s) : _ && (n = _(s)), r(n);
556
555
  }
557
556
  // componentWillMount will be deprecated
558
557
  // for SSR, initialize on first render
@@ -567,9 +566,9 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
567
566
  render() {
568
567
  return this.init(), null;
569
568
  }
570
- }, H, Ge = (H = class extends U {
569
+ }, M, Ne = (M = class extends L {
571
570
  shouldComponentUpdate(e) {
572
- return !ge(W(this.props, "helmetData"), W(e, "helmetData"));
571
+ return !me(V(this.props, "helmetData"), V(e, "helmetData"));
573
572
  }
574
573
  mapNestedChildrenToProps(e, t) {
575
574
  if (!t)
@@ -637,22 +636,22 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
637
636
  }), r;
638
637
  }
639
638
  warnOnInvalidChildren(e, t) {
640
- return X(
641
- Z.some((r) => e.type === r),
642
- typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${Z.join(
639
+ return z(
640
+ N.some((r) => e.type === r),
641
+ typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${N.join(
643
642
  ", "
644
643
  )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
645
- ), X(
644
+ ), z(
646
645
  !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
647
646
  `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
648
647
  ), !0;
649
648
  }
650
649
  mapChildrenToProps(e, t) {
651
650
  let r = {};
652
- return h.Children.forEach(e, (n) => {
651
+ return d.Children.forEach(e, (n) => {
653
652
  if (!n || !n.props)
654
653
  return;
655
- const { children: s, ...o } = n.props, l = Object.keys(o).reduce((a, c) => (a[Ee[c] || c] = o[c], a), {});
654
+ const { children: s, ...o } = n.props, c = Object.keys(o).reduce((l, a) => (l[ge[a] || a] = o[a], l), {});
656
655
  let { type: i } = n;
657
656
  switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
658
657
  case "Symbol(react.fragment)":
@@ -666,12 +665,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
666
665
  r = this.flattenArrayTypeChildren(
667
666
  n,
668
667
  r,
669
- l,
668
+ c,
670
669
  s
671
670
  );
672
671
  break;
673
672
  default:
674
- t = this.mapObjectTypeChildren(n, t, l, s);
673
+ t = this.mapObjectTypeChildren(n, t, c, s);
675
674
  break;
676
675
  }
677
676
  }), this.mapArrayTypeChildrenToProps(r, t);
@@ -679,71 +678,29 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
679
678
  render() {
680
679
  const { children: e, ...t } = this.props;
681
680
  let r = { ...t }, { helmetData: n } = t;
682
- if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof L)) {
681
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof R)) {
683
682
  const s = n;
684
- n = new L(s.context, !0), delete r.helmetData;
683
+ n = new R(s.context, !0), delete r.helmetData;
685
684
  }
686
- return n ? /* @__PURE__ */ h.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ h.createElement(oe.Consumer, null, (s) => /* @__PURE__ */ h.createElement(J, { ...r, context: s }));
685
+ return n ? /* @__PURE__ */ d.createElement(B, { ...r, context: n.value }) : /* @__PURE__ */ d.createElement(ee.Consumer, null, (s) => /* @__PURE__ */ d.createElement(B, { ...r, context: s }));
687
686
  }
688
- }, T(H, "defaultProps", {
687
+ }, T(M, "defaultProps", {
689
688
  defer: !0,
690
689
  encodeSpecialCharacters: !0,
691
690
  prioritizeSeoTags: !1
692
- }), H);
693
- const Je = (e) => {
694
- const t = $(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
691
+ }), M);
692
+ const Ve = (e) => {
693
+ const t = ie(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
695
694
  var o;
696
695
  !(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
697
696
  };
698
- return /* @__PURE__ */ ue.jsx(fe, { onClick: n, ...e });
699
- }, ie = (e, t) => {
700
- for (const r of e) {
701
- const n = V(r, t);
702
- if (n !== void 0) return n;
703
- }
704
- }, V = (e, t, r = []) => {
705
- const n = t(e, r);
706
- if (n !== void 0) return n;
707
- if (e.type === "category")
708
- for (const s of e.items) {
709
- const o = V(s, t, [
710
- ...r,
711
- e
712
- ]);
713
- if (o !== void 0) return o;
714
- }
715
- }, Qe = () => {
716
- const e = $(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
717
- return ie(n, (s) => {
718
- if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
719
- return s;
720
- });
721
- }, Ne = (e) => {
722
- const t = $(), r = K();
723
- return V(e, (n) => {
724
- if (n.type === "category" && n.link && S(r == null ? void 0 : r.id, n.link.id) === t.pathname || n.type === "doc" && S(r == null ? void 0 : r.id, n.id) === t.pathname)
725
- return !0;
726
- });
727
- }, et = () => {
728
- const e = $().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
729
- let s, o, l = !1;
730
- return ie(n, (i) => {
731
- const a = i.type === "doc" ? S(r == null ? void 0 : r.id, i.id) : i.type === "category" && i.link ? S(r == null ? void 0 : r.id, i.link.id) : void 0;
732
- if (a) {
733
- if (l)
734
- return o = { label: i.label, id: a }, !0;
735
- e === a ? l = !0 : s = { label: i.label, id: a };
736
- }
737
- }), { prev: s, next: o };
697
+ return /* @__PURE__ */ se.jsx(oe, { onClick: n, ...e });
738
698
  };
739
699
  export {
740
- Je as A,
741
- Ge as H,
742
- We as M,
743
- et as a,
744
- de as b,
745
- Le as c,
746
- Ne as d,
747
- Qe as u
700
+ Ve as A,
701
+ Ne as H,
702
+ ze as M,
703
+ ke as a,
704
+ ae as u
748
705
  };
749
- //# sourceMappingURL=utils-G5XSiZc9.js.map
706
+ //# sourceMappingURL=AnchorLink-CDlhr8gL.js.map