zudoku 0.0.0-f36627bd → 0.0.0-f370c714

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 (963) hide show
  1. package/README.md +1 -1
  2. package/client.d.ts +8 -0
  3. package/dist/app/entry.server.js +14 -1
  4. package/dist/app/entry.server.js.map +1 -1
  5. package/dist/app/main.d.ts +91 -1
  6. package/dist/app/main.js +5 -1
  7. package/dist/app/main.js.map +1 -1
  8. package/dist/app/sentry.js +1 -1
  9. package/dist/cli/cli.d.ts +9 -0
  10. package/dist/cli/cli.js +4 -10
  11. package/dist/cli/cli.js.map +1 -1
  12. package/dist/cli/common/version-check.d.ts +2 -0
  13. package/dist/cli/common/version-check.js +58 -0
  14. package/dist/cli/common/version-check.js.map +1 -0
  15. package/dist/config/config.d.ts +15 -41
  16. package/dist/config/validators/BuildSchema.d.ts +15 -7
  17. package/dist/config/validators/BuildSchema.js +34 -2
  18. package/dist/config/validators/BuildSchema.js.map +1 -1
  19. package/dist/config/validators/InputNavigationSchema.d.ts +169 -85
  20. package/dist/config/validators/InputNavigationSchema.js +1 -0
  21. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  22. package/dist/config/validators/NavigationSchema.js +2 -4
  23. package/dist/config/validators/NavigationSchema.js.map +1 -1
  24. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  25. package/dist/config/validators/icon-types.d.ts +1 -1
  26. package/dist/config/validators/icon-types.js +20 -0
  27. package/dist/config/validators/icon-types.js.map +1 -1
  28. package/dist/config/validators/validate.d.ts +278 -25
  29. package/dist/config/validators/validate.js +75 -10
  30. package/dist/config/validators/validate.js.map +1 -1
  31. package/dist/config/validators/validate.test.js +43 -0
  32. package/dist/config/validators/validate.test.js.map +1 -1
  33. package/dist/flat-config.d.ts +60 -5
  34. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  35. package/dist/lib/assets/language-icons/c.js +4 -0
  36. package/dist/lib/assets/language-icons/c.js.map +1 -0
  37. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  38. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  39. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  40. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  41. package/dist/lib/assets/language-icons/cpp.js +4 -0
  42. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  43. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  44. package/dist/lib/assets/language-icons/dart.js +4 -0
  45. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  46. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  47. package/dist/lib/assets/language-icons/elixir.js +4 -0
  48. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  49. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  50. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  51. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  52. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  53. package/dist/lib/assets/language-icons/powershell.js +4 -0
  54. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  55. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  56. package/dist/lib/assets/language-icons/scala.js +4 -0
  57. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  58. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  59. package/dist/lib/assets/language-icons/zig.js +4 -0
  60. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  61. package/dist/lib/auth/issuer.js +3 -0
  62. package/dist/lib/auth/issuer.js.map +1 -1
  63. package/dist/lib/authentication/authentication.d.ts +19 -10
  64. package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
  65. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
  66. package/dist/lib/authentication/components/SignIn.js +8 -5
  67. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  68. package/dist/lib/authentication/components/SignOut.js +6 -6
  69. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  70. package/dist/lib/authentication/components/SignUp.js +7 -5
  71. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  72. package/dist/lib/authentication/hook.d.ts +5 -2
  73. package/dist/lib/authentication/hook.js +22 -8
  74. package/dist/lib/authentication/hook.js.map +1 -1
  75. package/dist/lib/authentication/providers/auth0.js +13 -4
  76. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  77. package/dist/lib/authentication/providers/azureb2c.d.ts +4 -4
  78. package/dist/lib/authentication/providers/azureb2c.js +3 -3
  79. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  80. package/dist/lib/authentication/providers/clerk.js +2 -2
  81. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  82. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  83. package/dist/lib/authentication/providers/firebase.js +273 -0
  84. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  85. package/dist/lib/authentication/providers/openid.d.ts +7 -7
  86. package/dist/lib/authentication/providers/openid.js +5 -3
  87. package/dist/lib/authentication/providers/openid.js.map +1 -1
  88. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  89. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  90. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  91. package/dist/lib/authentication/providers/supabase.js +30 -31
  92. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  93. package/dist/lib/authentication/state.d.ts +5 -7
  94. package/dist/lib/authentication/state.js +2 -14
  95. package/dist/lib/authentication/state.js.map +1 -1
  96. package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
  97. package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
  98. package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
  99. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +29 -0
  100. package/dist/lib/authentication/ui/ZudokuAuthUi.js +160 -0
  101. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  102. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  103. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  104. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  105. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  106. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  107. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  108. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  109. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  110. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  111. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  112. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  113. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  114. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  115. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  116. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  117. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  118. package/dist/lib/authentication/ui/icons/X.js +4 -0
  119. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  120. package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
  121. package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
  122. package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
  123. package/dist/lib/components/Autocomplete.d.ts +3 -1
  124. package/dist/lib/components/Autocomplete.js +6 -2
  125. package/dist/lib/components/Autocomplete.js.map +1 -1
  126. package/dist/lib/components/BuildCheck.js +2 -2
  127. package/dist/lib/components/BuildCheck.js.map +1 -1
  128. package/dist/lib/components/Heading.d.ts +1 -1
  129. package/dist/lib/components/Heading.js +1 -5
  130. package/dist/lib/components/Heading.js.map +1 -1
  131. package/dist/lib/components/LanguageIcon.js +45 -0
  132. package/dist/lib/components/LanguageIcon.js.map +1 -1
  133. package/dist/lib/components/Layout.js +3 -2
  134. package/dist/lib/components/Layout.js.map +1 -1
  135. package/dist/lib/components/Main.js +1 -1
  136. package/dist/lib/components/Main.js.map +1 -1
  137. package/dist/lib/components/Mermaid.d.ts +7 -0
  138. package/dist/lib/components/Mermaid.js +42 -0
  139. package/dist/lib/components/Mermaid.js.map +1 -0
  140. package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
  141. package/dist/lib/components/PagefindSearchMeta.js +7 -0
  142. package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
  143. package/dist/lib/components/Zudoku.js +5 -8
  144. package/dist/lib/components/Zudoku.js.map +1 -1
  145. package/dist/lib/components/cache.d.ts +3 -1
  146. package/dist/lib/components/cache.js +3 -5
  147. package/dist/lib/components/cache.js.map +1 -1
  148. package/dist/lib/components/context/ZudokuContext.js +10 -2
  149. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  150. package/dist/lib/components/index.d.ts +5 -4
  151. package/dist/lib/components/navigation/NavigationItem.js +3 -3
  152. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  153. package/dist/lib/components/navigation/Toc.js +1 -1
  154. package/dist/lib/components/navigation/Toc.js.map +1 -1
  155. package/dist/lib/core/RouteGuard.d.ts +1 -1
  156. package/dist/lib/core/RouteGuard.js +13 -21
  157. package/dist/lib/core/RouteGuard.js.map +1 -1
  158. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  159. package/dist/lib/core/ZudokuContext.js +2 -0
  160. package/dist/lib/core/ZudokuContext.js.map +1 -1
  161. package/dist/lib/core/__internal.d.ts +1 -1
  162. package/dist/lib/core/plugins.d.ts +3 -3
  163. package/dist/lib/errors/ErrorAlert.js +1 -1
  164. package/dist/lib/errors/ErrorMessage.d.ts +3 -0
  165. package/dist/lib/errors/ErrorMessage.js +16 -0
  166. package/dist/lib/errors/ErrorMessage.js.map +1 -0
  167. package/dist/lib/errors/RouterError.d.ts +3 -1
  168. package/dist/lib/errors/RouterError.js +3 -2
  169. package/dist/lib/errors/RouterError.js.map +1 -1
  170. package/dist/lib/hooks/index.d.ts +5 -3
  171. package/dist/lib/oas/graphql/index.js +24 -3
  172. package/dist/lib/oas/graphql/index.js.map +1 -1
  173. package/dist/lib/oas/parser/index.d.ts +1 -0
  174. package/dist/lib/oas/parser/index.js +7 -3
  175. package/dist/lib/oas/parser/index.js.map +1 -1
  176. package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
  177. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  178. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +9 -172
  179. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  180. package/dist/lib/plugins/api-keys/index.d.ts +4 -1
  181. package/dist/lib/plugins/api-keys/index.js +21 -17
  182. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  183. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
  184. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
  185. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
  186. package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
  187. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +30 -0
  188. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
  189. package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
  190. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
  191. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
  192. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
  193. package/dist/lib/plugins/markdown/MdxPage.js +28 -4
  194. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  195. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  196. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  197. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  198. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  199. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  200. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  201. package/dist/lib/plugins/markdown/index.d.ts +3 -1
  202. package/dist/lib/plugins/markdown/index.js +1 -1
  203. package/dist/lib/plugins/markdown/index.js.map +1 -1
  204. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
  205. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  206. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  207. package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
  208. package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
  209. package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
  210. package/dist/lib/plugins/openapi/Endpoint.js +3 -6
  211. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  212. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  213. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  214. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  215. package/dist/lib/plugins/openapi/MCPEndpoint.js +9 -18
  216. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -1
  217. package/dist/lib/plugins/openapi/OasProvider.js +22 -13
  218. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  219. package/dist/lib/plugins/openapi/OperationList.js +22 -7
  220. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  221. package/dist/lib/plugins/openapi/OperationListItem.d.ts +3 -2
  222. package/dist/lib/plugins/openapi/OperationListItem.js +8 -4
  223. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  224. package/dist/lib/plugins/openapi/ParamInfos.js +1 -0
  225. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  226. package/dist/lib/plugins/openapi/ParameterList.js +7 -4
  227. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  228. package/dist/lib/plugins/openapi/ParameterListItem.js +17 -6
  229. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  230. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -3
  231. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  232. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +9 -2
  233. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -2
  234. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  235. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +4 -2
  236. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +26 -4
  237. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  238. package/dist/lib/plugins/openapi/SchemaList.js +2 -1
  239. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  240. package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -2
  241. package/dist/lib/plugins/openapi/Sidecar.js +68 -35
  242. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  243. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  244. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  245. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -2
  246. package/dist/lib/plugins/openapi/SidecarExamples.js +24 -43
  247. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  248. package/dist/lib/plugins/openapi/components/ConstValue.js +1 -1
  249. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -1
  250. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  251. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  252. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  253. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  254. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  255. package/dist/lib/plugins/openapi/components/ResponseContent.js +5 -6
  256. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
  257. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  258. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  259. package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
  260. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  261. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +8 -2
  262. package/dist/lib/plugins/openapi/graphql/graphql.js +8 -0
  263. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  264. package/dist/lib/plugins/openapi/index.js +16 -15
  265. package/dist/lib/plugins/openapi/index.js.map +1 -1
  266. package/dist/lib/plugins/openapi/interfaces.d.ts +30 -13
  267. package/dist/lib/plugins/openapi/playground/BodyPanel.js +67 -15
  268. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
  269. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +2 -2
  270. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
  271. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -1
  272. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  273. package/dist/lib/plugins/openapi/playground/Headers.js +23 -83
  274. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  275. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
  276. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +8 -1
  277. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  278. package/dist/lib/plugins/openapi/playground/PathParams.js +2 -3
  279. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  280. package/dist/lib/plugins/openapi/playground/Playground.d.ts +7 -0
  281. package/dist/lib/plugins/openapi/playground/Playground.js +71 -29
  282. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  283. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +5 -2
  284. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  285. package/dist/lib/plugins/openapi/playground/QueryParams.js +16 -40
  286. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  287. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  288. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  289. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  290. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
  291. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  292. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  293. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  294. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +1 -1
  295. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -1
  296. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  297. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  298. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  299. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  300. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  301. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  302. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
  303. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +1 -1
  304. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
  305. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -19
  306. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  307. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
  308. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  309. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
  310. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
  311. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
  312. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +1 -1
  313. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  314. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +17 -8
  315. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  316. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
  317. package/dist/lib/plugins/openapi/schema/SchemaView.js +31 -16
  318. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  319. package/dist/lib/plugins/openapi/schema/UnionView.js +2 -5
  320. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -1
  321. package/dist/lib/plugins/openapi/schema/union-helpers.js +0 -1
  322. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -1
  323. package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -2
  324. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  325. package/dist/lib/plugins/openapi/state.d.ts +5 -3
  326. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +24 -1
  327. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  328. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +9 -11
  329. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  330. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +6 -1
  331. package/dist/lib/plugins/openapi/util/getRoutes.js +29 -2
  332. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  333. package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
  334. package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
  335. package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
  336. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +22 -5
  337. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  338. package/dist/lib/plugins/search-pagefind/ResultList.js +5 -4
  339. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  340. package/dist/lib/shiki.d.ts +2 -2
  341. package/dist/lib/shiki.js +40 -14
  342. package/dist/lib/shiki.js.map +1 -1
  343. package/dist/lib/ui/Badge.d.ts +3 -3
  344. package/dist/lib/ui/Badge.js +9 -7
  345. package/dist/lib/ui/Badge.js.map +1 -1
  346. package/dist/lib/ui/Button.d.ts +2 -2
  347. package/dist/lib/ui/Button.js +10 -8
  348. package/dist/lib/ui/Button.js.map +1 -1
  349. package/dist/lib/ui/ButtonGroup.d.ts +11 -0
  350. package/dist/lib/ui/ButtonGroup.js +28 -0
  351. package/dist/lib/ui/ButtonGroup.js.map +1 -0
  352. package/dist/lib/ui/Callout.d.ts +5 -5
  353. package/dist/lib/ui/Callout.js +5 -5
  354. package/dist/lib/ui/Callout.js.map +1 -1
  355. package/dist/lib/ui/Carousel.js.map +1 -1
  356. package/dist/lib/ui/Checkbox.d.ts +2 -2
  357. package/dist/lib/ui/Checkbox.js +4 -4
  358. package/dist/lib/ui/Checkbox.js.map +1 -1
  359. package/dist/lib/ui/CodeBlock.d.ts +0 -1
  360. package/dist/lib/ui/CodeBlock.js +1 -1
  361. package/dist/lib/ui/CodeBlock.js.map +1 -1
  362. package/dist/lib/ui/Collapsible.d.ts +4 -4
  363. package/dist/lib/ui/Collapsible.js +11 -4
  364. package/dist/lib/ui/Collapsible.js.map +1 -1
  365. package/dist/lib/ui/Command.d.ts +3 -3
  366. package/dist/lib/ui/Command.js +2 -2
  367. package/dist/lib/ui/Command.js.map +1 -1
  368. package/dist/lib/ui/Dialog.d.ts +12 -18
  369. package/dist/lib/ui/Dialog.js +30 -17
  370. package/dist/lib/ui/Dialog.js.map +1 -1
  371. package/dist/lib/ui/DropdownMenu.d.ts +21 -23
  372. package/dist/lib/ui/DropdownMenu.js +47 -32
  373. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  374. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -2
  375. package/dist/lib/ui/EmbeddedCodeBlock.js +4 -3
  376. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  377. package/dist/lib/ui/Frame.d.ts +8 -0
  378. package/dist/lib/ui/Frame.js +22 -0
  379. package/dist/lib/ui/Frame.js.map +1 -0
  380. package/dist/lib/ui/Item.d.ts +23 -0
  381. package/dist/lib/ui/Item.js +67 -0
  382. package/dist/lib/ui/Item.js.map +1 -0
  383. package/dist/lib/ui/Kbd.d.ts +3 -0
  384. package/dist/lib/ui/Kbd.js +10 -0
  385. package/dist/lib/ui/Kbd.js.map +1 -0
  386. package/dist/lib/ui/NativeSelect.d.ts +5 -0
  387. package/dist/lib/ui/NativeSelect.js +14 -0
  388. package/dist/lib/ui/NativeSelect.js.map +1 -0
  389. package/dist/lib/ui/ReactComponentDoc.d.ts +1 -1
  390. package/dist/lib/ui/ReactComponentDoc.js +2 -2
  391. package/dist/lib/ui/ReactComponentDoc.js.map +1 -1
  392. package/dist/lib/ui/Secret.d.ts +6 -0
  393. package/dist/lib/ui/Secret.js +7 -4
  394. package/dist/lib/ui/Secret.js.map +1 -1
  395. package/dist/lib/ui/Select.d.ts +13 -11
  396. package/dist/lib/ui/Select.js +34 -23
  397. package/dist/lib/ui/Select.js.map +1 -1
  398. package/dist/lib/ui/Separator.d.ts +4 -0
  399. package/dist/lib/ui/Separator.js +8 -0
  400. package/dist/lib/ui/Separator.js.map +1 -0
  401. package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
  402. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  403. package/dist/lib/ui/Tooltip.d.ts +7 -7
  404. package/dist/lib/ui/Tooltip.js +16 -10
  405. package/dist/lib/ui/Tooltip.js.map +1 -1
  406. package/dist/lib/util/MdxComponents.d.ts +3 -1
  407. package/dist/lib/util/MdxComponents.js +5 -2
  408. package/dist/lib/util/MdxComponents.js.map +1 -1
  409. package/dist/lib/util/createVariantComponent.d.ts +5 -2
  410. package/dist/lib/util/createVariantComponent.js +5 -2
  411. package/dist/lib/util/createVariantComponent.js.map +1 -1
  412. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  413. package/dist/lib/util/flattenAllOf.js +88 -0
  414. package/dist/lib/util/flattenAllOf.js.map +1 -0
  415. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  416. package/dist/lib/util/flattenAllOf.test.js +587 -0
  417. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  418. package/dist/lib/util/pastellize.js +4 -4
  419. package/dist/lib/util/pastellize.js.map +1 -1
  420. package/dist/lib/util/readFrontmatter.d.ts +6 -0
  421. package/dist/lib/util/readFrontmatter.js +12 -0
  422. package/dist/lib/util/readFrontmatter.js.map +1 -0
  423. package/dist/lib/util/syncZustandState.d.ts +5 -0
  424. package/dist/lib/util/syncZustandState.js +14 -0
  425. package/dist/lib/util/syncZustandState.js.map +1 -0
  426. package/dist/vite/api/SchemaManager.d.ts +8 -1
  427. package/dist/vite/api/SchemaManager.js +52 -21
  428. package/dist/vite/api/SchemaManager.js.map +1 -1
  429. package/dist/vite/api/SchemaManager.test.js +69 -2
  430. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  431. package/dist/vite/config.js +11 -1
  432. package/dist/vite/config.js.map +1 -1
  433. package/dist/vite/dev-server.js +25 -0
  434. package/dist/vite/dev-server.js.map +1 -1
  435. package/dist/vite/llms.d.ts +12 -0
  436. package/dist/vite/llms.js +66 -0
  437. package/dist/vite/llms.js.map +1 -0
  438. package/dist/vite/mdx/remark-last-modified.js +57 -3
  439. package/dist/vite/mdx/remark-last-modified.js.map +1 -1
  440. package/dist/vite/pagefind-dev-index.d.ts +16 -0
  441. package/dist/vite/pagefind-dev-index.js +68 -0
  442. package/dist/vite/pagefind-dev-index.js.map +1 -0
  443. package/dist/vite/plugin-api-keys.js +4 -1
  444. package/dist/vite/plugin-api-keys.js.map +1 -1
  445. package/dist/vite/plugin-api.js +58 -19
  446. package/dist/vite/plugin-api.js.map +1 -1
  447. package/dist/vite/plugin-docs.d.ts +9 -0
  448. package/dist/vite/plugin-docs.js +68 -49
  449. package/dist/vite/plugin-docs.js.map +1 -1
  450. package/dist/vite/plugin-frontmatter.js +3 -5
  451. package/dist/vite/plugin-frontmatter.js.map +1 -1
  452. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  453. package/dist/vite/plugin-markdown-export.js +140 -0
  454. package/dist/vite/plugin-markdown-export.js.map +1 -0
  455. package/dist/vite/plugin-mdx.d.ts +1 -1
  456. package/dist/vite/plugin-mdx.js +39 -29
  457. package/dist/vite/plugin-mdx.js.map +1 -1
  458. package/dist/vite/plugin-navigation.js +4 -0
  459. package/dist/vite/plugin-navigation.js.map +1 -1
  460. package/dist/vite/plugin-theme.js +10 -1
  461. package/dist/vite/plugin-theme.js.map +1 -1
  462. package/dist/vite/plugin.js +2 -0
  463. package/dist/vite/plugin.js.map +1 -1
  464. package/dist/vite/prerender/prerender.js +38 -23
  465. package/dist/vite/prerender/prerender.js.map +1 -1
  466. package/dist/vite/prerender/utils.d.ts +2 -0
  467. package/dist/vite/prerender/utils.js +24 -0
  468. package/dist/vite/prerender/utils.js.map +1 -0
  469. package/dist/vite/prerender/worker.js +3 -0
  470. package/dist/vite/prerender/worker.js.map +1 -1
  471. package/dist/vite/zuplo.d.ts +13 -0
  472. package/dist/vite/zuplo.js +15 -0
  473. package/dist/vite/zuplo.js.map +1 -0
  474. package/lib/ActionButton-BSM2oNHF.js +25 -0
  475. package/lib/ActionButton-BSM2oNHF.js.map +1 -0
  476. package/lib/Button-IOAeVaIH.js +54 -0
  477. package/lib/Button-IOAeVaIH.js.map +1 -0
  478. package/lib/{Card-hTy9PAnh.js → Card-KFniaZn5.js} +2 -2
  479. package/lib/{Card-hTy9PAnh.js.map → Card-KFniaZn5.js.map} +1 -1
  480. package/lib/{CategoryHeading-BGCNu3VK.js → CategoryHeading-DhmodDcq.js} +2 -2
  481. package/lib/{CategoryHeading-BGCNu3VK.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
  482. package/lib/ClaudeLogo-DgjivS8A.js +69 -0
  483. package/lib/ClaudeLogo-DgjivS8A.js.map +1 -0
  484. package/lib/{Command-TEBTONf1.js → Command-BpT1iBE6.js} +26 -26
  485. package/lib/Command-BpT1iBE6.js.map +1 -0
  486. package/lib/Dialog-BQciPiHN.js +144 -0
  487. package/lib/Dialog-BQciPiHN.js.map +1 -0
  488. package/lib/{Drawer-DM9wJUC6.js → Drawer-BRMcpfuF.js} +7 -7
  489. package/lib/Drawer-BRMcpfuF.js.map +1 -0
  490. package/lib/DropdownMenu-C8SX_-S_.js +104 -0
  491. package/lib/DropdownMenu-C8SX_-S_.js.map +1 -0
  492. package/lib/Frame-DxlznfVd.js +205 -0
  493. package/lib/Frame-DxlznfVd.js.map +1 -0
  494. package/lib/IndexingDialog-DZWj_3cU.js +100 -0
  495. package/lib/IndexingDialog-DZWj_3cU.js.map +1 -0
  496. package/lib/Input-D-kqEQ5M.js +115 -0
  497. package/lib/Input-D-kqEQ5M.js.map +1 -0
  498. package/lib/MdxPage-BL-HbZrv.js +210 -0
  499. package/lib/MdxPage-BL-HbZrv.js.map +1 -0
  500. package/lib/Mermaid-BjSczjLW.js +102 -0
  501. package/lib/Mermaid-BjSczjLW.js.map +1 -0
  502. package/lib/{OAuthErrorPage-BbI9XJWR.js → OAuthErrorPage-DQtg28Go.js} +22 -23
  503. package/lib/{OAuthErrorPage-BbI9XJWR.js.map → OAuthErrorPage-DQtg28Go.js.map} +1 -1
  504. package/lib/OasProvider--qcZwrKS.js +40 -0
  505. package/lib/OasProvider--qcZwrKS.js.map +1 -0
  506. package/lib/OperationList-CSJYzxQY.js +5819 -0
  507. package/lib/OperationList-CSJYzxQY.js.map +1 -0
  508. package/lib/RouteGuard-D0f743SM.js +77 -0
  509. package/lib/RouteGuard-D0f743SM.js.map +1 -0
  510. package/lib/{SchemaList-BcJyi2sR.js → SchemaList-DtyuDrQA.js} +30 -29
  511. package/lib/SchemaList-DtyuDrQA.js.map +1 -0
  512. package/lib/SchemaView-G-SVXxAG.js +435 -0
  513. package/lib/SchemaView-G-SVXxAG.js.map +1 -0
  514. package/lib/Secret-BxGpIhDP.js +243 -0
  515. package/lib/Secret-BxGpIhDP.js.map +1 -0
  516. package/lib/Separator-CTPSeW1S.js +27 -0
  517. package/lib/Separator-CTPSeW1S.js.map +1 -0
  518. package/lib/SignUp-CDl7bQj3.js +50 -0
  519. package/lib/SignUp-CDl7bQj3.js.map +1 -0
  520. package/lib/{Spinner-Cf6E803I.js → Spinner-CI6bRyZw.js} +2 -2
  521. package/lib/{Spinner-Cf6E803I.js.map → Spinner-CI6bRyZw.js.map} +1 -1
  522. package/lib/{SyntaxHighlight-Cqh6cwC3.js → SyntaxHighlight-Dgd0AaaX.js} +1585 -1492
  523. package/lib/SyntaxHighlight-Dgd0AaaX.js.map +1 -0
  524. package/lib/{Toc-Zzozy3eB.js → Toc-D_Rj4jVx.js} +6 -6
  525. package/lib/Toc-D_Rj4jVx.js.map +1 -0
  526. package/lib/ZudokuContext-DNHMZfcP.js +1508 -0
  527. package/lib/ZudokuContext-DNHMZfcP.js.map +1 -0
  528. package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js +9 -0
  529. package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js.map +1 -0
  530. package/lib/c-B-NUhs61.js +46 -0
  531. package/lib/c-B-NUhs61.js.map +1 -0
  532. package/lib/chunk-PVWAREVJ-ClM0m2aJ.js +7965 -0
  533. package/lib/chunk-PVWAREVJ-ClM0m2aJ.js.map +1 -0
  534. package/lib/{circular-CokAagii.js → circular-BxODTa7z.js} +6365 -5958
  535. package/lib/circular-BxODTa7z.js.map +1 -0
  536. package/lib/commonlisp-De080z23.js +28 -0
  537. package/lib/commonlisp-De080z23.js.map +1 -0
  538. package/lib/cpp-79Paht7T.js +53 -0
  539. package/lib/cpp-79Paht7T.js.map +1 -0
  540. package/lib/createServer-BpreIXp6.js +16693 -0
  541. package/lib/createServer-BpreIXp6.js.map +1 -0
  542. package/lib/createVariantComponent-CQVt-H3r.js +18 -0
  543. package/lib/createVariantComponent-CQVt-H3r.js.map +1 -0
  544. package/lib/{csharp-rrJEDRrV.js → csharp-D8MIL50B.js} +2 -2
  545. package/lib/{csharp-rrJEDRrV.js.map → csharp-D8MIL50B.js.map} +1 -1
  546. package/lib/{css-Dpk9bCql.js → css-Bt6hr1td.js} +2 -2
  547. package/lib/{css-Dpk9bCql.js.map → css-Bt6hr1td.js.map} +1 -1
  548. package/lib/dart-B0vy1jWB.js +60 -0
  549. package/lib/dart-B0vy1jWB.js.map +1 -0
  550. package/lib/elixir-Ds8r0sF8.js +25 -0
  551. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  552. package/lib/{errors-CQLQ5016.js → errors-DliW1dED.js} +4 -4
  553. package/lib/{errors-CQLQ5016.js.map → errors-DliW1dED.js.map} +1 -1
  554. package/lib/firebase-D4tbaCYB.js +7612 -0
  555. package/lib/firebase-D4tbaCYB.js.map +1 -0
  556. package/lib/{go-D8SJIQ0Z.js → go-D2VsmIOS.js} +2 -2
  557. package/lib/{go-D8SJIQ0Z.js.map → go-D2VsmIOS.js.map} +1 -1
  558. package/lib/{graphql-aeVKJNa2.js → graphql-BtA6M4m5.js} +2 -2
  559. package/lib/{graphql-aeVKJNa2.js.map → graphql-BtA6M4m5.js.map} +1 -1
  560. package/lib/hook-CHw_R_xu.js +52 -0
  561. package/lib/hook-CHw_R_xu.js.map +1 -0
  562. package/lib/{html-D_7om-nA.js → html-MGnI2uzP.js} +2 -2
  563. package/lib/{html-D_7om-nA.js.map → html-MGnI2uzP.js.map} +1 -1
  564. package/lib/{index-CF3Ls1wd.js → index-1TbL0HXQ.js} +166 -50
  565. package/lib/index-1TbL0HXQ.js.map +1 -0
  566. package/lib/index-9MxNUgg4.js +3675 -0
  567. package/lib/index-9MxNUgg4.js.map +1 -0
  568. package/lib/{ErrorAlert-Diu_w5Po.js → index-CboxZOVW.js} +5432 -4439
  569. package/lib/index-CboxZOVW.js.map +1 -0
  570. package/lib/index-CrcNWbel.js.map +1 -1
  571. package/lib/index-DXXZDuSJ.js +133 -0
  572. package/lib/index-DXXZDuSJ.js.map +1 -0
  573. package/lib/index.esm-BYObtETB.js +1294 -0
  574. package/lib/index.esm-BYObtETB.js.map +1 -0
  575. package/lib/{index.esm-BnYHxCYC.js → index.esm-DtzT_KoE.js} +20 -20
  576. package/lib/{index.esm-BnYHxCYC.js.map → index.esm-DtzT_KoE.js.map} +1 -1
  577. package/lib/index.esm-ti5zvZS_.js +34 -0
  578. package/lib/index.esm-ti5zvZS_.js.map +1 -0
  579. package/lib/{invariant-Bm-FVUQE.js → invariant-CGOLuIIz.js} +3 -3
  580. package/lib/{invariant-Bm-FVUQE.js.map → invariant-CGOLuIIz.js.map} +1 -1
  581. package/lib/{java-DUh-EL8n.js → java-CVLzHfb1.js} +2 -2
  582. package/lib/{java-DUh-EL8n.js.map → java-CVLzHfb1.js.map} +1 -1
  583. package/lib/{javascript-CrY8dcGu.js → javascript-CcmIpL4G.js} +2 -2
  584. package/lib/{javascript-CrY8dcGu.js.map → javascript-CcmIpL4G.js.map} +1 -1
  585. package/lib/{json-DLK2_sdf.js → json-4AyP4uiY.js} +2 -2
  586. package/lib/{json-DLK2_sdf.js.map → json-4AyP4uiY.js.map} +1 -1
  587. package/lib/{jsx-runtime-DywqP_6a.js → jsx-runtime-BzflLqGi.js} +109 -111
  588. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  589. package/lib/{kotlin-rJMOGl7D.js → kotlin-v2plddBQ.js} +2 -2
  590. package/lib/{kotlin-rJMOGl7D.js.map → kotlin-v2plddBQ.js.map} +1 -1
  591. package/lib/{markdown-BD9bIU5J.js → markdown-DYGWCmGQ.js} +2 -2
  592. package/lib/{markdown-BD9bIU5J.js.map → markdown-DYGWCmGQ.js.map} +1 -1
  593. package/lib/{mdx-G25UCvf3.js → mdx-CHwYvXd4.js} +2 -2
  594. package/lib/{mdx-G25UCvf3.js.map → mdx-CHwYvXd4.js.map} +1 -1
  595. package/lib/{mutation-DvBlWyBr.js → mutation-DMHWqmFp.js} +2 -2
  596. package/lib/{mutation-DvBlWyBr.js.map → mutation-DMHWqmFp.js.map} +1 -1
  597. package/lib/{objectivec-DDpj0aWX.js → objectivec-HZY8shkd.js} +2 -2
  598. package/lib/{objectivec-DDpj0aWX.js.map → objectivec-HZY8shkd.js.map} +1 -1
  599. package/lib/ocaml-DqsdDdwb.js +52 -0
  600. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  601. package/lib/{php-BeG18bSy.js → php-rQXzo7K_.js} +2 -2
  602. package/lib/{php-BeG18bSy.js.map → php-rQXzo7K_.js.map} +1 -1
  603. package/lib/powershell-CQje9pm1.js +39 -0
  604. package/lib/powershell-CQje9pm1.js.map +1 -0
  605. package/lib/{python-BaF2byD-.js → python-QIQAE5Ei.js} +2 -2
  606. package/lib/{python-BaF2byD-.js.map → python-QIQAE5Ei.js.map} +1 -1
  607. package/lib/{react-CQvDN20M.js → react-DHpVpxRv.js} +2 -2
  608. package/lib/{react-CQvDN20M.js.map → react-DHpVpxRv.js.map} +1 -1
  609. package/lib/{ruby-CmxRVHMR.js → ruby-B2dU8Ny5.js} +2 -2
  610. package/lib/{ruby-CmxRVHMR.js.map → ruby-B2dU8Ny5.js.map} +1 -1
  611. package/lib/{rust-IfSC62c5.js → rust-DYnLHAi2.js} +2 -2
  612. package/lib/{rust-IfSC62c5.js.map → rust-DYnLHAi2.js.map} +1 -1
  613. package/lib/scala-CeKInBR8.js +25 -0
  614. package/lib/scala-CeKInBR8.js.map +1 -0
  615. package/lib/{shell-BFu0M6m4.js → shell-HUv9oVtp.js} +2 -2
  616. package/lib/{shell-BFu0M6m4.js.map → shell-HUv9oVtp.js.map} +1 -1
  617. package/lib/{swift-DckbsN4v.js → swift-B4z6ig1Z.js} +2 -2
  618. package/lib/{swift-DckbsN4v.js.map → swift-B4z6ig1Z.js.map} +1 -1
  619. package/lib/{toml-BJsCc8TC.js → toml-Co9mpdct.js} +2 -2
  620. package/lib/{toml-BJsCc8TC.js.map → toml-Co9mpdct.js.map} +1 -1
  621. package/lib/{typescript-7qOVMjOC.js → typescript-C26xdBDC.js} +2 -2
  622. package/lib/{typescript-7qOVMjOC.js.map → typescript-C26xdBDC.js.map} +1 -1
  623. package/lib/ui/Accordion.js +1 -1
  624. package/lib/ui/ActionButton.js +3 -3
  625. package/lib/ui/Alert.js +1 -1
  626. package/lib/ui/AlertDialog.js +1 -1
  627. package/lib/ui/Badge.js +28 -14
  628. package/lib/ui/Badge.js.map +1 -1
  629. package/lib/ui/Breadcrumb.js +1 -1
  630. package/lib/ui/Button.js +28 -25
  631. package/lib/ui/Button.js.map +1 -1
  632. package/lib/ui/ButtonGroup.js +77 -0
  633. package/lib/ui/ButtonGroup.js.map +1 -0
  634. package/lib/ui/Callout.js +19 -19
  635. package/lib/ui/Callout.js.map +1 -1
  636. package/lib/ui/Card.js +1 -1
  637. package/lib/ui/Carousel.js +1 -1
  638. package/lib/ui/Carousel.js.map +1 -1
  639. package/lib/ui/Checkbox.js +29 -26
  640. package/lib/ui/Checkbox.js.map +1 -1
  641. package/lib/ui/CodeBlock.js +217 -7
  642. package/lib/ui/CodeBlock.js.map +1 -1
  643. package/lib/ui/Collapsible.js +32 -5
  644. package/lib/ui/Collapsible.js.map +1 -1
  645. package/lib/ui/Command.js +5 -5
  646. package/lib/ui/Command.js.map +1 -1
  647. package/lib/ui/Dialog.js +135 -105
  648. package/lib/ui/Dialog.js.map +1 -1
  649. package/lib/ui/Drawer.js +3 -3
  650. package/lib/ui/DropdownMenu.js +227 -140
  651. package/lib/ui/DropdownMenu.js.map +1 -1
  652. package/lib/ui/EmbeddedCodeBlock.js +36 -32
  653. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  654. package/lib/ui/Form.js +2 -2
  655. package/lib/ui/Frame.js +81 -0
  656. package/lib/ui/Frame.js.map +1 -0
  657. package/lib/ui/HoverCard.js +1 -1
  658. package/lib/ui/Input.js +1 -1
  659. package/lib/ui/Item.js +188 -0
  660. package/lib/ui/Item.js.map +1 -0
  661. package/lib/ui/Kbd.js +32 -0
  662. package/lib/ui/Kbd.js.map +1 -0
  663. package/lib/ui/Label.js +1 -1
  664. package/lib/ui/NativeSelect.js +57 -0
  665. package/lib/ui/NativeSelect.js.map +1 -0
  666. package/lib/ui/Pagination.js +1 -1
  667. package/lib/ui/Popover.js +1 -1
  668. package/lib/ui/Progress.js +1 -1
  669. package/lib/ui/RadioGroup.js +1 -1
  670. package/lib/ui/ReactComponentDoc.js +14 -14
  671. package/lib/ui/ReactComponentDoc.js.map +1 -1
  672. package/lib/ui/ScrollArea.js +1 -1
  673. package/lib/ui/Secret.js +64 -54
  674. package/lib/ui/Secret.js.map +1 -1
  675. package/lib/ui/Select.js +166 -116
  676. package/lib/ui/Select.js.map +1 -1
  677. package/lib/ui/Separator.js +27 -0
  678. package/lib/ui/Separator.js.map +1 -0
  679. package/lib/ui/Skeleton.js +1 -1
  680. package/lib/ui/Slider.js +1 -1
  681. package/lib/ui/Stepper.js +1 -1
  682. package/lib/ui/Switch.js +1 -1
  683. package/lib/ui/SyntaxHighlight.js +5 -5
  684. package/lib/ui/Tabs.js +11 -11
  685. package/lib/ui/Textarea.js +1 -1
  686. package/lib/ui/Toggle.js +1 -1
  687. package/lib/ui/ToggleGroup.js +1 -1
  688. package/lib/ui/Tooltip.js +55 -28
  689. package/lib/ui/Tooltip.js.map +1 -1
  690. package/lib/ui/Value.js +1 -1
  691. package/lib/{xml-DAaTIkBX.js → xml-BQOOC04j.js} +2 -2
  692. package/lib/{xml-DAaTIkBX.js.map → xml-BQOOC04j.js.map} +1 -1
  693. package/lib/{yaml-DUi-dbfu.js → yaml-BGsJItKv.js} +2 -2
  694. package/lib/{yaml-DUi-dbfu.js.map → yaml-BGsJItKv.js.map} +1 -1
  695. package/lib/zig-CUV2sTct.js +35 -0
  696. package/lib/zig-CUV2sTct.js.map +1 -0
  697. package/lib/zudoku.__internal.js +1082 -951
  698. package/lib/zudoku.__internal.js.map +1 -1
  699. package/lib/zudoku.auth-auth0.js +24 -23
  700. package/lib/zudoku.auth-auth0.js.map +1 -1
  701. package/lib/zudoku.auth-azureb2c.js +34 -35
  702. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  703. package/lib/zudoku.auth-clerk.js +41 -41
  704. package/lib/zudoku.auth-clerk.js.map +1 -1
  705. package/lib/zudoku.auth-firebase.js +10 -0
  706. package/lib/zudoku.auth-firebase.js.map +1 -0
  707. package/lib/zudoku.auth-openid.js +105 -109
  708. package/lib/zudoku.auth-openid.js.map +1 -1
  709. package/lib/zudoku.auth-supabase.js +108 -52
  710. package/lib/zudoku.auth-supabase.js.map +1 -1
  711. package/lib/zudoku.components.js +22 -23
  712. package/lib/zudoku.components.js.map +1 -1
  713. package/lib/zudoku.hooks.js +11 -24
  714. package/lib/zudoku.hooks.js.map +1 -1
  715. package/lib/zudoku.icons.js +1 -1
  716. package/lib/zudoku.mermaid.js +10 -0
  717. package/lib/zudoku.mermaid.js.map +1 -0
  718. package/lib/zudoku.plugin-api-catalog.js +31 -33
  719. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  720. package/lib/zudoku.plugin-api-keys.js +573 -615
  721. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  722. package/lib/zudoku.plugin-custom-pages.js +1 -1
  723. package/lib/zudoku.plugin-markdown.js +10 -9
  724. package/lib/zudoku.plugin-markdown.js.map +1 -1
  725. package/lib/zudoku.plugin-openapi.js +7 -8
  726. package/lib/zudoku.plugin-openapi.js.map +1 -1
  727. package/lib/zudoku.plugin-redirect.js +3 -3
  728. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  729. package/lib/zudoku.plugin-search-pagefind.js +185 -228
  730. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  731. package/lib/zudoku.plugins.js.map +1 -1
  732. package/lib/zudoku.router.js +2502 -118
  733. package/lib/zudoku.router.js.map +1 -1
  734. package/package.json +94 -66
  735. package/src/app/entry.server.tsx +16 -6
  736. package/src/app/main.css +61 -9
  737. package/src/app/main.tsx +5 -1
  738. package/src/app/sentry.ts +1 -1
  739. package/src/lib/assets/language-icons/c.tsx +31 -0
  740. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  741. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  742. package/src/lib/assets/language-icons/dart.tsx +39 -0
  743. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  744. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  745. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  746. package/src/lib/assets/language-icons/scala.tsx +19 -0
  747. package/src/lib/assets/language-icons/zig.tsx +32 -0
  748. package/src/lib/auth/issuer.ts +3 -0
  749. package/src/lib/authentication/authentication.ts +29 -5
  750. package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
  751. package/src/lib/authentication/components/SignIn.tsx +10 -5
  752. package/src/lib/authentication/components/SignOut.tsx +7 -6
  753. package/src/lib/authentication/components/SignUp.tsx +8 -8
  754. package/src/lib/authentication/hook.ts +37 -10
  755. package/src/lib/authentication/providers/auth0.tsx +14 -4
  756. package/src/lib/authentication/providers/azureb2c.tsx +10 -3
  757. package/src/lib/authentication/providers/clerk.tsx +9 -2
  758. package/src/lib/authentication/providers/firebase.tsx +376 -0
  759. package/src/lib/authentication/providers/openid.tsx +20 -15
  760. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  761. package/src/lib/authentication/providers/supabase.tsx +55 -44
  762. package/src/lib/authentication/state.ts +3 -23
  763. package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
  764. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +477 -0
  765. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  766. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  767. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  768. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  769. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  770. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  771. package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
  772. package/src/lib/components/Autocomplete.tsx +11 -2
  773. package/src/lib/components/BuildCheck.tsx +12 -10
  774. package/src/lib/components/Heading.tsx +2 -6
  775. package/src/lib/components/LanguageIcon.tsx +45 -0
  776. package/src/lib/components/Layout.tsx +3 -2
  777. package/src/lib/components/Main.tsx +1 -1
  778. package/src/lib/components/Mermaid.tsx +68 -0
  779. package/src/lib/components/PagefindSearchMeta.tsx +14 -0
  780. package/src/lib/components/Zudoku.tsx +7 -10
  781. package/src/lib/components/cache.ts +9 -5
  782. package/src/lib/components/context/ZudokuContext.ts +11 -2
  783. package/src/lib/components/navigation/NavigationItem.tsx +8 -21
  784. package/src/lib/components/navigation/Toc.tsx +3 -3
  785. package/src/lib/core/RouteGuard.tsx +42 -22
  786. package/src/lib/core/ZudokuContext.ts +3 -0
  787. package/src/lib/core/plugins.ts +2 -2
  788. package/src/lib/errors/ErrorAlert.tsx +1 -1
  789. package/src/lib/errors/ErrorMessage.tsx +38 -0
  790. package/src/lib/errors/RouterError.tsx +7 -2
  791. package/src/lib/oas/graphql/index.ts +26 -3
  792. package/src/lib/oas/parser/index.ts +10 -3
  793. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
  794. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +36 -476
  795. package/src/lib/plugins/api-keys/index.tsx +35 -21
  796. package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
  797. package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +64 -0
  798. package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
  799. package/src/lib/plugins/markdown/MdxPage.tsx +125 -8
  800. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  801. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  802. package/src/lib/plugins/markdown/index.tsx +5 -7
  803. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
  804. package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
  805. package/src/lib/plugins/openapi/Endpoint.tsx +20 -27
  806. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  807. package/src/lib/plugins/openapi/MCPEndpoint.tsx +8 -28
  808. package/src/lib/plugins/openapi/OasProvider.tsx +30 -17
  809. package/src/lib/plugins/openapi/OperationList.tsx +60 -24
  810. package/src/lib/plugins/openapi/OperationListItem.tsx +25 -17
  811. package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
  812. package/src/lib/plugins/openapi/ParameterList.tsx +37 -23
  813. package/src/lib/plugins/openapi/ParameterListItem.tsx +105 -54
  814. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +0 -7
  815. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +48 -7
  816. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +101 -33
  817. package/src/lib/plugins/openapi/SchemaList.tsx +4 -0
  818. package/src/lib/plugins/openapi/Sidecar.tsx +155 -74
  819. package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
  820. package/src/lib/plugins/openapi/SidecarExamples.tsx +91 -79
  821. package/src/lib/plugins/openapi/components/ConstValue.tsx +1 -1
  822. package/src/lib/plugins/openapi/components/EnumValues.tsx +2 -2
  823. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  824. package/src/lib/plugins/openapi/components/ResponseContent.tsx +63 -53
  825. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -0
  826. package/src/lib/plugins/openapi/graphql/gql.ts +4 -3
  827. package/src/lib/plugins/openapi/graphql/graphql.ts +20 -3
  828. package/src/lib/plugins/openapi/index.tsx +26 -37
  829. package/src/lib/plugins/openapi/interfaces.ts +29 -7
  830. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +246 -30
  831. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +10 -6
  832. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +3 -2
  833. package/src/lib/plugins/openapi/playground/Headers.tsx +103 -219
  834. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +33 -1
  835. package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -34
  836. package/src/lib/plugins/openapi/playground/Playground.tsx +89 -36
  837. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +22 -32
  838. package/src/lib/plugins/openapi/playground/QueryParams.tsx +82 -136
  839. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  840. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  841. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +1 -1
  842. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  843. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  844. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +2 -2
  845. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +124 -56
  846. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +1 -1
  847. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
  848. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +1 -1
  849. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +89 -55
  850. package/src/lib/plugins/openapi/schema/SchemaView.tsx +100 -60
  851. package/src/lib/plugins/openapi/schema/UnionView.tsx +6 -17
  852. package/src/lib/plugins/openapi/schema/union-helpers.ts +0 -1
  853. package/src/lib/plugins/openapi/schema/utils.ts +5 -2
  854. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +29 -1
  855. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +11 -11
  856. package/src/lib/plugins/openapi/util/getRoutes.tsx +35 -3
  857. package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
  858. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +61 -22
  859. package/src/lib/plugins/search-pagefind/ResultList.tsx +8 -3
  860. package/src/lib/shiki.ts +46 -14
  861. package/src/lib/ui/Badge.tsx +21 -12
  862. package/src/lib/ui/Button.tsx +11 -9
  863. package/src/lib/ui/ButtonGroup.tsx +82 -0
  864. package/src/lib/ui/Callout.tsx +10 -5
  865. package/src/lib/ui/Carousel.tsx +0 -1
  866. package/src/lib/ui/Checkbox.tsx +23 -24
  867. package/src/lib/ui/CodeBlock.tsx +3 -4
  868. package/src/lib/ui/Collapsible.tsx +26 -4
  869. package/src/lib/ui/Command.tsx +3 -3
  870. package/src/lib/ui/Dialog.tsx +112 -106
  871. package/src/lib/ui/DropdownMenu.tsx +226 -170
  872. package/src/lib/ui/EmbeddedCodeBlock.tsx +24 -19
  873. package/src/lib/ui/Frame.tsx +81 -0
  874. package/src/lib/ui/Item.tsx +192 -0
  875. package/src/lib/ui/Kbd.tsx +28 -0
  876. package/src/lib/ui/NativeSelect.tsx +47 -0
  877. package/src/lib/ui/ReactComponentDoc.tsx +17 -17
  878. package/src/lib/ui/Secret.tsx +44 -27
  879. package/src/lib/ui/Select.tsx +153 -126
  880. package/src/lib/ui/Separator.tsx +25 -0
  881. package/src/lib/ui/SyntaxHighlight.tsx +6 -1
  882. package/src/lib/ui/Tooltip.tsx +54 -32
  883. package/src/lib/util/MdxComponents.tsx +5 -5
  884. package/src/lib/util/createVariantComponent.tsx +31 -5
  885. package/src/lib/util/flattenAllOf.test.ts +689 -0
  886. package/src/lib/util/flattenAllOf.ts +122 -0
  887. package/src/lib/util/pastellize.ts +4 -4
  888. package/src/lib/util/readFrontmatter.ts +13 -0
  889. package/src/lib/util/syncZustandState.ts +22 -0
  890. package/src/shiki/langs/hurl.js +1 -0
  891. package/src/shiki/langs/kdl.js +1 -0
  892. package/src/shiki/langs/markdown-nix.js +1 -0
  893. package/src/shiki/langs/openscad.js +1 -0
  894. package/src/shiki/langs/pkl.js +1 -0
  895. package/src/shiki/langs/rosmsg.js +1 -0
  896. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  897. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  898. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  899. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +0 -5
  900. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +0 -7
  901. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +0 -1
  902. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.d.ts +0 -4
  903. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +0 -10
  904. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +0 -1
  905. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +0 -5
  906. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +0 -16
  907. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +0 -1
  908. package/dist/vite/create-pagefind-index.d.ts +0 -4
  909. package/dist/vite/create-pagefind-index.js +0 -12
  910. package/dist/vite/create-pagefind-index.js.map +0 -1
  911. package/lib/Button-DTDRi4CT.js +0 -51
  912. package/lib/Button-DTDRi4CT.js.map +0 -1
  913. package/lib/CodeBlock-i0BM_QFf.js +0 -176
  914. package/lib/CodeBlock-i0BM_QFf.js.map +0 -1
  915. package/lib/Command-TEBTONf1.js.map +0 -1
  916. package/lib/Dialog-VIMic7xI.js +0 -114
  917. package/lib/Dialog-VIMic7xI.js.map +0 -1
  918. package/lib/Drawer-DM9wJUC6.js.map +0 -1
  919. package/lib/ErrorAlert-Diu_w5Po.js.map +0 -1
  920. package/lib/MdxPage-CDs_vtjC.js +0 -111
  921. package/lib/MdxPage-CDs_vtjC.js.map +0 -1
  922. package/lib/OasProvider-D3Cjaaxr.js +0 -36
  923. package/lib/OasProvider-D3Cjaaxr.js.map +0 -1
  924. package/lib/OperationList-BH4cFU-0.js +0 -5454
  925. package/lib/OperationList-BH4cFU-0.js.map +0 -1
  926. package/lib/Pagination-BKphudjx.js +0 -37
  927. package/lib/Pagination-BKphudjx.js.map +0 -1
  928. package/lib/RouteGuard-nFlgfJqk.js +0 -56
  929. package/lib/RouteGuard-nFlgfJqk.js.map +0 -1
  930. package/lib/RouterError-CnS5hYUh.js +0 -41
  931. package/lib/RouterError-CnS5hYUh.js.map +0 -1
  932. package/lib/SchemaList-BcJyi2sR.js.map +0 -1
  933. package/lib/SchemaView-DnTxmN15.js +0 -458
  934. package/lib/SchemaView-DnTxmN15.js.map +0 -1
  935. package/lib/Select-BPQp7Yqx.js +0 -273
  936. package/lib/Select-BPQp7Yqx.js.map +0 -1
  937. package/lib/SignUp-tBtnwuXL.js +0 -56
  938. package/lib/SignUp-tBtnwuXL.js.map +0 -1
  939. package/lib/SyntaxHighlight-Cqh6cwC3.js.map +0 -1
  940. package/lib/Toc-Zzozy3eB.js.map +0 -1
  941. package/lib/ZudokuContext-3cqbu21w.js +0 -1285
  942. package/lib/ZudokuContext-3cqbu21w.js.map +0 -1
  943. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +0 -9204
  944. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +0 -1
  945. package/lib/circular-CokAagii.js.map +0 -1
  946. package/lib/createServer-DW4hIUUB.js +0 -12499
  947. package/lib/createServer-DW4hIUUB.js.map +0 -1
  948. package/lib/hook-ChlxzJwv.js +0 -247
  949. package/lib/hook-ChlxzJwv.js.map +0 -1
  950. package/lib/index-7FEjMkZ_.js +0 -1058
  951. package/lib/index-7FEjMkZ_.js.map +0 -1
  952. package/lib/index-CF3Ls1wd.js.map +0 -1
  953. package/lib/index-QwGs6inR.js +0 -3397
  954. package/lib/index-QwGs6inR.js.map +0 -1
  955. package/lib/index.esm-CdzlRw50.js +0 -1254
  956. package/lib/index.esm-CdzlRw50.js.map +0 -1
  957. package/lib/jsx-runtime-DywqP_6a.js.map +0 -1
  958. package/lib/useExposedProps-BH9aq4MD.js +0 -113
  959. package/lib/useExposedProps-BH9aq4MD.js.map +0 -1
  960. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  961. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.tsx +0 -36
  962. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.tsx +0 -25
  963. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +0 -42
@@ -0,0 +1,1508 @@
1
+ import * as w from "react";
2
+ import k, { useCallback as wt, createContext as Rt, useContext as Ot, useEffect as Ct } from "react";
3
+ import { j as Et } from "./jsx-runtime-BzflLqGi.js";
4
+ import { a as q, m as Y } from "./chunk-PVWAREVJ-ClM0m2aJ.js";
5
+ import { c as Ft } from "./index-DI5SPFK9.js";
6
+ var G = class {
7
+ constructor() {
8
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
9
+ }
10
+ subscribe(t) {
11
+ return this.listeners.add(t), this.onSubscribe(), () => {
12
+ this.listeners.delete(t), this.onUnsubscribe();
13
+ };
14
+ }
15
+ hasListeners() {
16
+ return this.listeners.size > 0;
17
+ }
18
+ onSubscribe() {
19
+ }
20
+ onUnsubscribe() {
21
+ }
22
+ }, F = typeof window > "u" || "Deno" in globalThis;
23
+ function I() {
24
+ }
25
+ function Se(t, e) {
26
+ return typeof t == "function" ? t(e) : t;
27
+ }
28
+ function Q(t) {
29
+ return typeof t == "number" && t >= 0 && t !== 1 / 0;
30
+ }
31
+ function it(t, e) {
32
+ return Math.max(t + (e || 0) - Date.now(), 0);
33
+ }
34
+ function x(t, e) {
35
+ return typeof t == "function" ? t(e) : t;
36
+ }
37
+ function S(t, e) {
38
+ return typeof t == "function" ? t(e) : t;
39
+ }
40
+ function we(t, e) {
41
+ const {
42
+ type: s = "all",
43
+ exact: r,
44
+ fetchStatus: n,
45
+ predicate: a,
46
+ queryKey: o,
47
+ stale: i
48
+ } = t;
49
+ if (o) {
50
+ if (r) {
51
+ if (e.queryHash !== It(o, e.options))
52
+ return !1;
53
+ } else if (!V(e.queryKey, o))
54
+ return !1;
55
+ }
56
+ if (s !== "all") {
57
+ const u = e.isActive();
58
+ if (s === "active" && !u || s === "inactive" && u)
59
+ return !1;
60
+ }
61
+ return !(typeof i == "boolean" && e.isStale() !== i || n && n !== e.state.fetchStatus || a && !a(e));
62
+ }
63
+ function Re(t, e) {
64
+ const { exact: s, status: r, predicate: n, mutationKey: a } = t;
65
+ if (a) {
66
+ if (!e.options.mutationKey)
67
+ return !1;
68
+ if (s) {
69
+ if (U(e.options.mutationKey) !== U(a))
70
+ return !1;
71
+ } else if (!V(e.options.mutationKey, a))
72
+ return !1;
73
+ }
74
+ return !(r && e.state.status !== r || n && !n(e));
75
+ }
76
+ function It(t, e) {
77
+ return (e?.queryKeyHashFn || U)(t);
78
+ }
79
+ function U(t) {
80
+ return JSON.stringify(
81
+ t,
82
+ (e, s) => M(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
83
+ );
84
+ }
85
+ function V(t, e) {
86
+ return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((s) => V(t[s], e[s])) : !1;
87
+ }
88
+ function N(t, e) {
89
+ if (t === e)
90
+ return t;
91
+ const s = X(t) && X(e);
92
+ if (s || M(t) && M(e)) {
93
+ const r = s ? t : Object.keys(t), n = r.length, a = s ? e : Object.keys(e), o = a.length, i = s ? [] : {}, u = new Set(r);
94
+ let l = 0;
95
+ for (let h = 0; h < o; h++) {
96
+ const d = s ? h : a[h];
97
+ (!s && u.has(d) || s) && t[d] === void 0 && e[d] === void 0 ? (i[d] = void 0, l++) : (i[d] = N(t[d], e[d]), i[d] === t[d] && t[d] !== void 0 && l++);
98
+ }
99
+ return n === o && l === n ? t : i;
100
+ }
101
+ return e;
102
+ }
103
+ function L(t, e) {
104
+ if (!e || Object.keys(t).length !== Object.keys(e).length)
105
+ return !1;
106
+ for (const s in t)
107
+ if (t[s] !== e[s])
108
+ return !1;
109
+ return !0;
110
+ }
111
+ function X(t) {
112
+ return Array.isArray(t) && t.length === Object.keys(t).length;
113
+ }
114
+ function M(t) {
115
+ if (!tt(t))
116
+ return !1;
117
+ const e = t.constructor;
118
+ if (e === void 0)
119
+ return !0;
120
+ const s = e.prototype;
121
+ return !(!tt(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
122
+ }
123
+ function tt(t) {
124
+ return Object.prototype.toString.call(t) === "[object Object]";
125
+ }
126
+ function Pt(t) {
127
+ return new Promise((e) => {
128
+ setTimeout(e, t);
129
+ });
130
+ }
131
+ function _(t, e, s) {
132
+ if (typeof s.structuralSharing == "function")
133
+ return s.structuralSharing(t, e);
134
+ if (s.structuralSharing !== !1) {
135
+ if (process.env.NODE_ENV !== "production")
136
+ try {
137
+ return N(t, e);
138
+ } catch (r) {
139
+ throw console.error(
140
+ `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`
141
+ ), r;
142
+ }
143
+ return N(t, e);
144
+ }
145
+ return e;
146
+ }
147
+ function Oe(t) {
148
+ return t;
149
+ }
150
+ function Ce(t, e, s = 0) {
151
+ const r = [...t, e];
152
+ return s && r.length > s ? r.slice(1) : r;
153
+ }
154
+ function Ee(t, e, s = 0) {
155
+ const r = [e, ...t];
156
+ return s && r.length > s ? r.slice(0, -1) : r;
157
+ }
158
+ var j = Symbol();
159
+ function Tt(t, e) {
160
+ return process.env.NODE_ENV !== "production" && t.queryFn === j && console.error(
161
+ `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
162
+ ), !t.queryFn && e?.initialPromise ? () => e.initialPromise : !t.queryFn || t.queryFn === j ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
163
+ }
164
+ function xt(t, e) {
165
+ return typeof t == "function" ? t(...e) : !!t;
166
+ }
167
+ var Dt = class extends G {
168
+ #e;
169
+ #t;
170
+ #s;
171
+ constructor() {
172
+ super(), this.#s = (t) => {
173
+ if (!F && window.addEventListener) {
174
+ const e = () => t();
175
+ return window.addEventListener("visibilitychange", e, !1), () => {
176
+ window.removeEventListener("visibilitychange", e);
177
+ };
178
+ }
179
+ };
180
+ }
181
+ onSubscribe() {
182
+ this.#t || this.setEventListener(this.#s);
183
+ }
184
+ onUnsubscribe() {
185
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
186
+ }
187
+ setEventListener(t) {
188
+ this.#s = t, this.#t?.(), this.#t = t((e) => {
189
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
190
+ });
191
+ }
192
+ setFocused(t) {
193
+ this.#e !== t && (this.#e = t, this.onFocus());
194
+ }
195
+ onFocus() {
196
+ const t = this.isFocused();
197
+ this.listeners.forEach((e) => {
198
+ e(t);
199
+ });
200
+ }
201
+ isFocused() {
202
+ return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
203
+ }
204
+ }, at = new Dt(), At = class extends G {
205
+ #e = !0;
206
+ #t;
207
+ #s;
208
+ constructor() {
209
+ super(), this.#s = (t) => {
210
+ if (!F && window.addEventListener) {
211
+ const e = () => t(!0), s = () => t(!1);
212
+ return window.addEventListener("online", e, !1), window.addEventListener("offline", s, !1), () => {
213
+ window.removeEventListener("online", e), window.removeEventListener("offline", s);
214
+ };
215
+ }
216
+ };
217
+ }
218
+ onSubscribe() {
219
+ this.#t || this.setEventListener(this.#s);
220
+ }
221
+ onUnsubscribe() {
222
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
223
+ }
224
+ setEventListener(t) {
225
+ this.#s = t, this.#t?.(), this.#t = t(this.setOnline.bind(this));
226
+ }
227
+ setOnline(t) {
228
+ this.#e !== t && (this.#e = t, this.listeners.forEach((s) => {
229
+ s(t);
230
+ }));
231
+ }
232
+ isOnline() {
233
+ return this.#e;
234
+ }
235
+ }, ot = new At();
236
+ function H() {
237
+ let t, e;
238
+ const s = new Promise((n, a) => {
239
+ t = n, e = a;
240
+ });
241
+ s.status = "pending", s.catch(() => {
242
+ });
243
+ function r(n) {
244
+ Object.assign(s, n), delete s.resolve, delete s.reject;
245
+ }
246
+ return s.resolve = (n) => {
247
+ r({
248
+ status: "fulfilled",
249
+ value: n
250
+ }), t(n);
251
+ }, s.reject = (n) => {
252
+ r({
253
+ status: "rejected",
254
+ reason: n
255
+ }), e(n);
256
+ }, s;
257
+ }
258
+ function Fe(t) {
259
+ let e;
260
+ if (t.then((s) => (e = s, s), I)?.catch(I), e !== void 0)
261
+ return { data: e };
262
+ }
263
+ function kt(t) {
264
+ return Math.min(1e3 * 2 ** t, 3e4);
265
+ }
266
+ function ut(t) {
267
+ return (t ?? "online") === "online" ? ot.isOnline() : !0;
268
+ }
269
+ var ct = class extends Error {
270
+ constructor(t) {
271
+ super("CancelledError"), this.revert = t?.revert, this.silent = t?.silent;
272
+ }
273
+ };
274
+ function jt(t) {
275
+ let e = !1, s = 0, r;
276
+ const n = H(), a = () => n.status !== "pending", o = (c) => {
277
+ a() || (f(new ct(c)), t.abort?.());
278
+ }, i = () => {
279
+ e = !0;
280
+ }, u = () => {
281
+ e = !1;
282
+ }, l = () => at.isFocused() && (t.networkMode === "always" || ot.isOnline()) && t.canRun(), h = () => ut(t.networkMode) && t.canRun(), d = (c) => {
283
+ a() || (r?.(), n.resolve(c));
284
+ }, f = (c) => {
285
+ a() || (r?.(), n.reject(c));
286
+ }, m = () => new Promise((c) => {
287
+ r = (g) => {
288
+ (a() || l()) && c(g);
289
+ }, t.onPause?.();
290
+ }).then(() => {
291
+ r = void 0, a() || t.onContinue?.();
292
+ }), O = () => {
293
+ if (a())
294
+ return;
295
+ let c;
296
+ const g = s === 0 ? t.initialPromise : void 0;
297
+ try {
298
+ c = g ?? t.fn();
299
+ } catch (v) {
300
+ c = Promise.reject(v);
301
+ }
302
+ Promise.resolve(c).then(d).catch((v) => {
303
+ if (a())
304
+ return;
305
+ const p = t.retry ?? (F ? 0 : 3), y = t.retryDelay ?? kt, C = typeof y == "function" ? y(s, v) : y, P = p === !0 || typeof p == "number" && s < p || typeof p == "function" && p(s, v);
306
+ if (e || !P) {
307
+ f(v);
308
+ return;
309
+ }
310
+ s++, t.onFail?.(s, v), Pt(C).then(() => l() ? void 0 : m()).then(() => {
311
+ e ? f(v) : O();
312
+ });
313
+ });
314
+ };
315
+ return {
316
+ promise: n,
317
+ status: () => n.status,
318
+ cancel: o,
319
+ continue: () => (r?.(), n),
320
+ cancelRetry: i,
321
+ continueRetry: u,
322
+ canStart: h,
323
+ start: () => (h() ? O() : m().then(O), n)
324
+ };
325
+ }
326
+ var qt = (t) => setTimeout(t, 0);
327
+ function Qt() {
328
+ let t = [], e = 0, s = (i) => {
329
+ i();
330
+ }, r = (i) => {
331
+ i();
332
+ }, n = qt;
333
+ const a = (i) => {
334
+ e ? t.push(i) : n(() => {
335
+ s(i);
336
+ });
337
+ }, o = () => {
338
+ const i = t;
339
+ t = [], i.length && n(() => {
340
+ r(() => {
341
+ i.forEach((u) => {
342
+ s(u);
343
+ });
344
+ });
345
+ });
346
+ };
347
+ return {
348
+ batch: (i) => {
349
+ let u;
350
+ e++;
351
+ try {
352
+ u = i();
353
+ } finally {
354
+ e--, e || o();
355
+ }
356
+ return u;
357
+ },
358
+ /**
359
+ * All calls to the wrapped function will be batched.
360
+ */
361
+ batchCalls: (i) => (...u) => {
362
+ a(() => {
363
+ i(...u);
364
+ });
365
+ },
366
+ schedule: a,
367
+ /**
368
+ * Use this method to set a custom notify function.
369
+ * This can be used to for example wrap notifications with `React.act` while running tests.
370
+ */
371
+ setNotifyFunction: (i) => {
372
+ s = i;
373
+ },
374
+ /**
375
+ * Use this method to set a custom function to batch notifications together into a single tick.
376
+ * By default React Query will use the batch function provided by ReactDOM or React Native.
377
+ */
378
+ setBatchNotifyFunction: (i) => {
379
+ r = i;
380
+ },
381
+ setScheduler: (i) => {
382
+ n = i;
383
+ }
384
+ };
385
+ }
386
+ var $ = Qt(), Ut = class {
387
+ #e;
388
+ destroy() {
389
+ this.clearGcTimeout();
390
+ }
391
+ scheduleGc() {
392
+ this.clearGcTimeout(), Q(this.gcTime) && (this.#e = setTimeout(() => {
393
+ this.optionalRemove();
394
+ }, this.gcTime));
395
+ }
396
+ updateGcTime(t) {
397
+ this.gcTime = Math.max(
398
+ this.gcTime || 0,
399
+ t ?? (F ? 1 / 0 : 300 * 1e3)
400
+ );
401
+ }
402
+ clearGcTimeout() {
403
+ this.#e && (clearTimeout(this.#e), this.#e = void 0);
404
+ }
405
+ }, Ie = class extends Ut {
406
+ #e;
407
+ #t;
408
+ #s;
409
+ #n;
410
+ #r;
411
+ #o;
412
+ #a;
413
+ constructor(t) {
414
+ super(), this.#a = !1, this.#o = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.#n = t.client, this.#s = this.#n.getQueryCache(), this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.#e = Nt(this.options), this.state = t.state ?? this.#e, this.scheduleGc();
415
+ }
416
+ get meta() {
417
+ return this.options.meta;
418
+ }
419
+ get promise() {
420
+ return this.#r?.promise;
421
+ }
422
+ setOptions(t) {
423
+ this.options = { ...this.#o, ...t }, this.updateGcTime(this.options.gcTime);
424
+ }
425
+ optionalRemove() {
426
+ !this.observers.length && this.state.fetchStatus === "idle" && this.#s.remove(this);
427
+ }
428
+ setData(t, e) {
429
+ const s = _(this.state.data, t, this.options);
430
+ return this.#i({
431
+ data: s,
432
+ type: "success",
433
+ dataUpdatedAt: e?.updatedAt,
434
+ manual: e?.manual
435
+ }), s;
436
+ }
437
+ setState(t, e) {
438
+ this.#i({ type: "setState", state: t, setStateOptions: e });
439
+ }
440
+ cancel(t) {
441
+ const e = this.#r?.promise;
442
+ return this.#r?.cancel(t), e ? e.then(I).catch(I) : Promise.resolve();
443
+ }
444
+ destroy() {
445
+ super.destroy(), this.cancel({ silent: !0 });
446
+ }
447
+ reset() {
448
+ this.destroy(), this.setState(this.#e);
449
+ }
450
+ isActive() {
451
+ return this.observers.some(
452
+ (t) => S(t.options.enabled, this) !== !1
453
+ );
454
+ }
455
+ isDisabled() {
456
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === j || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
457
+ }
458
+ isStatic() {
459
+ return this.getObserversCount() > 0 ? this.observers.some(
460
+ (t) => x(t.options.staleTime, this) === "static"
461
+ ) : !1;
462
+ }
463
+ isStale() {
464
+ return this.getObserversCount() > 0 ? this.observers.some(
465
+ (t) => t.getCurrentResult().isStale
466
+ ) : this.state.data === void 0 || this.state.isInvalidated;
467
+ }
468
+ isStaleByTime(t = 0) {
469
+ return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !it(this.state.dataUpdatedAt, t);
470
+ }
471
+ onFocus() {
472
+ this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
473
+ }
474
+ onOnline() {
475
+ this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
476
+ }
477
+ addObserver(t) {
478
+ this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), this.#s.notify({ type: "observerAdded", query: this, observer: t }));
479
+ }
480
+ removeObserver(t) {
481
+ this.observers.includes(t) && (this.observers = this.observers.filter((e) => e !== t), this.observers.length || (this.#r && (this.#a ? this.#r.cancel({ revert: !0 }) : this.#r.cancelRetry()), this.scheduleGc()), this.#s.notify({ type: "observerRemoved", query: this, observer: t }));
482
+ }
483
+ getObserversCount() {
484
+ return this.observers.length;
485
+ }
486
+ invalidate() {
487
+ this.state.isInvalidated || this.#i({ type: "invalidate" });
488
+ }
489
+ async fetch(t, e) {
490
+ if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
491
+ // re-start the fetch; there is a chance that the query is still in a
492
+ // pending state when that happens
493
+ this.#r?.status() !== "rejected") {
494
+ if (this.state.data !== void 0 && e?.cancelRefetch)
495
+ this.cancel({ silent: !0 });
496
+ else if (this.#r)
497
+ return this.#r.continueRetry(), this.#r.promise;
498
+ }
499
+ if (t && this.setOptions(t), !this.options.queryFn) {
500
+ const i = this.observers.find((u) => u.options.queryFn);
501
+ i && this.setOptions(i.options);
502
+ }
503
+ process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
504
+ "As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
505
+ ));
506
+ const s = new AbortController(), r = (i) => {
507
+ Object.defineProperty(i, "signal", {
508
+ enumerable: !0,
509
+ get: () => (this.#a = !0, s.signal)
510
+ });
511
+ }, n = () => {
512
+ const i = Tt(this.options, e), l = (() => {
513
+ const h = {
514
+ client: this.#n,
515
+ queryKey: this.queryKey,
516
+ meta: this.meta
517
+ };
518
+ return r(h), h;
519
+ })();
520
+ return this.#a = !1, this.options.persister ? this.options.persister(
521
+ i,
522
+ l,
523
+ this
524
+ ) : i(l);
525
+ }, o = (() => {
526
+ const i = {
527
+ fetchOptions: e,
528
+ options: this.options,
529
+ queryKey: this.queryKey,
530
+ client: this.#n,
531
+ state: this.state,
532
+ fetchFn: n
533
+ };
534
+ return r(i), i;
535
+ })();
536
+ this.options.behavior?.onFetch(o, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== o.fetchOptions?.meta) && this.#i({ type: "fetch", meta: o.fetchOptions?.meta }), this.#r = jt({
537
+ initialPromise: e?.initialPromise,
538
+ fn: o.fetchFn,
539
+ abort: s.abort.bind(s),
540
+ onFail: (i, u) => {
541
+ this.#i({ type: "failed", failureCount: i, error: u });
542
+ },
543
+ onPause: () => {
544
+ this.#i({ type: "pause" });
545
+ },
546
+ onContinue: () => {
547
+ this.#i({ type: "continue" });
548
+ },
549
+ retry: o.options.retry,
550
+ retryDelay: o.options.retryDelay,
551
+ networkMode: o.options.networkMode,
552
+ canRun: () => !0
553
+ });
554
+ try {
555
+ const i = await this.#r.start();
556
+ if (i === void 0)
557
+ throw process.env.NODE_ENV !== "production" && console.error(
558
+ `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
559
+ ), new Error(`${this.queryHash} data is undefined`);
560
+ return this.setData(i), this.#s.config.onSuccess?.(i, this), this.#s.config.onSettled?.(
561
+ i,
562
+ this.state.error,
563
+ this
564
+ ), i;
565
+ } catch (i) {
566
+ if (i instanceof ct) {
567
+ if (i.silent)
568
+ return this.#r.promise;
569
+ if (i.revert) {
570
+ if (this.setState({
571
+ ...this.#t,
572
+ fetchStatus: "idle"
573
+ }), this.state.data === void 0)
574
+ throw i;
575
+ return this.state.data;
576
+ }
577
+ }
578
+ throw this.#i({
579
+ type: "error",
580
+ error: i
581
+ }), this.#s.config.onError?.(
582
+ i,
583
+ this
584
+ ), this.#s.config.onSettled?.(
585
+ this.state.data,
586
+ i,
587
+ this
588
+ ), i;
589
+ } finally {
590
+ this.scheduleGc();
591
+ }
592
+ }
593
+ #i(t) {
594
+ const e = (s) => {
595
+ switch (t.type) {
596
+ case "failed":
597
+ return {
598
+ ...s,
599
+ fetchFailureCount: t.failureCount,
600
+ fetchFailureReason: t.error
601
+ };
602
+ case "pause":
603
+ return {
604
+ ...s,
605
+ fetchStatus: "paused"
606
+ };
607
+ case "continue":
608
+ return {
609
+ ...s,
610
+ fetchStatus: "fetching"
611
+ };
612
+ case "fetch":
613
+ return {
614
+ ...s,
615
+ ...ht(s.data, this.options),
616
+ fetchMeta: t.meta ?? null
617
+ };
618
+ case "success":
619
+ const r = {
620
+ ...s,
621
+ data: t.data,
622
+ dataUpdateCount: s.dataUpdateCount + 1,
623
+ dataUpdatedAt: t.dataUpdatedAt ?? Date.now(),
624
+ error: null,
625
+ isInvalidated: !1,
626
+ status: "success",
627
+ ...!t.manual && {
628
+ fetchStatus: "idle",
629
+ fetchFailureCount: 0,
630
+ fetchFailureReason: null
631
+ }
632
+ };
633
+ return this.#t = t.manual ? r : void 0, r;
634
+ case "error":
635
+ const n = t.error;
636
+ return {
637
+ ...s,
638
+ error: n,
639
+ errorUpdateCount: s.errorUpdateCount + 1,
640
+ errorUpdatedAt: Date.now(),
641
+ fetchFailureCount: s.fetchFailureCount + 1,
642
+ fetchFailureReason: n,
643
+ fetchStatus: "idle",
644
+ status: "error"
645
+ };
646
+ case "invalidate":
647
+ return {
648
+ ...s,
649
+ isInvalidated: !0
650
+ };
651
+ case "setState":
652
+ return {
653
+ ...s,
654
+ ...t.state
655
+ };
656
+ }
657
+ };
658
+ this.state = e(this.state), $.batch(() => {
659
+ this.observers.forEach((s) => {
660
+ s.onQueryUpdate();
661
+ }), this.#s.notify({ query: this, type: "updated", action: t });
662
+ });
663
+ }
664
+ };
665
+ function ht(t, e) {
666
+ return {
667
+ fetchFailureCount: 0,
668
+ fetchFailureReason: null,
669
+ fetchStatus: ut(e.networkMode) ? "fetching" : "paused",
670
+ ...t === void 0 && {
671
+ error: null,
672
+ status: "pending"
673
+ }
674
+ };
675
+ }
676
+ function Nt(t) {
677
+ const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
678
+ return {
679
+ data: e,
680
+ dataUpdateCount: 0,
681
+ dataUpdatedAt: s ? r ?? Date.now() : 0,
682
+ error: null,
683
+ errorUpdateCount: 0,
684
+ errorUpdatedAt: 0,
685
+ fetchFailureCount: 0,
686
+ fetchFailureReason: null,
687
+ fetchMeta: null,
688
+ isInvalidated: !1,
689
+ status: s ? "success" : "pending",
690
+ fetchStatus: "idle"
691
+ };
692
+ }
693
+ var lt = class extends G {
694
+ constructor(t, e) {
695
+ super(), this.options = e, this.#e = t, this.#i = null, this.#a = H(), this.bindMethods(), this.setOptions(e);
696
+ }
697
+ #e;
698
+ #t = void 0;
699
+ #s = void 0;
700
+ #n = void 0;
701
+ #r;
702
+ #o;
703
+ #a;
704
+ #i;
705
+ #y;
706
+ #f;
707
+ // This property keeps track of the last query with defined data.
708
+ // It will be used to pass the previous data and query to the placeholder function between renders.
709
+ #d;
710
+ #c;
711
+ #h;
712
+ #u;
713
+ #p = /* @__PURE__ */ new Set();
714
+ bindMethods() {
715
+ this.refetch = this.refetch.bind(this);
716
+ }
717
+ onSubscribe() {
718
+ this.listeners.size === 1 && (this.#t.addObserver(this), et(this.#t, this.options) ? this.#l() : this.updateResult(), this.#b());
719
+ }
720
+ onUnsubscribe() {
721
+ this.hasListeners() || this.destroy();
722
+ }
723
+ shouldFetchOnReconnect() {
724
+ return K(
725
+ this.#t,
726
+ this.options,
727
+ this.options.refetchOnReconnect
728
+ );
729
+ }
730
+ shouldFetchOnWindowFocus() {
731
+ return K(
732
+ this.#t,
733
+ this.options,
734
+ this.options.refetchOnWindowFocus
735
+ );
736
+ }
737
+ destroy() {
738
+ this.listeners = /* @__PURE__ */ new Set(), this.#S(), this.#w(), this.#t.removeObserver(this);
739
+ }
740
+ setOptions(t) {
741
+ const e = this.options, s = this.#t;
742
+ if (this.options = this.#e.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof S(this.options.enabled, this.#t) != "boolean")
743
+ throw new Error(
744
+ "Expected enabled to be a boolean or a callback that returns a boolean"
745
+ );
746
+ this.#R(), this.#t.setOptions(this.options), e._defaulted && !L(this.options, e) && this.#e.getQueryCache().notify({
747
+ type: "observerOptionsUpdated",
748
+ query: this.#t,
749
+ observer: this
750
+ });
751
+ const r = this.hasListeners();
752
+ r && st(
753
+ this.#t,
754
+ s,
755
+ this.options,
756
+ e
757
+ ) && this.#l(), this.updateResult(), r && (this.#t !== s || S(this.options.enabled, this.#t) !== S(e.enabled, this.#t) || x(this.options.staleTime, this.#t) !== x(e.staleTime, this.#t)) && this.#v();
758
+ const n = this.#m();
759
+ r && (this.#t !== s || S(this.options.enabled, this.#t) !== S(e.enabled, this.#t) || n !== this.#u) && this.#g(n);
760
+ }
761
+ getOptimisticResult(t) {
762
+ const e = this.#e.getQueryCache().build(this.#e, t), s = this.createResult(e, t);
763
+ return Mt(this, s) && (this.#n = s, this.#o = this.options, this.#r = this.#t.state), s;
764
+ }
765
+ getCurrentResult() {
766
+ return this.#n;
767
+ }
768
+ trackResult(t, e) {
769
+ return new Proxy(t, {
770
+ get: (s, r) => (this.trackProp(r), e?.(r), r === "promise" && !this.options.experimental_prefetchInRender && this.#a.status === "pending" && this.#a.reject(
771
+ new Error(
772
+ "experimental_prefetchInRender feature flag is not enabled"
773
+ )
774
+ ), Reflect.get(s, r))
775
+ });
776
+ }
777
+ trackProp(t) {
778
+ this.#p.add(t);
779
+ }
780
+ getCurrentQuery() {
781
+ return this.#t;
782
+ }
783
+ refetch({ ...t } = {}) {
784
+ return this.fetch({
785
+ ...t
786
+ });
787
+ }
788
+ fetchOptimistic(t) {
789
+ const e = this.#e.defaultQueryOptions(t), s = this.#e.getQueryCache().build(this.#e, e);
790
+ return s.fetch().then(() => this.createResult(s, e));
791
+ }
792
+ fetch(t) {
793
+ return this.#l({
794
+ ...t,
795
+ cancelRefetch: t.cancelRefetch ?? !0
796
+ }).then(() => (this.updateResult(), this.#n));
797
+ }
798
+ #l(t) {
799
+ this.#R();
800
+ let e = this.#t.fetch(
801
+ this.options,
802
+ t
803
+ );
804
+ return t?.throwOnError || (e = e.catch(I)), e;
805
+ }
806
+ #v() {
807
+ this.#S();
808
+ const t = x(
809
+ this.options.staleTime,
810
+ this.#t
811
+ );
812
+ if (F || this.#n.isStale || !Q(t))
813
+ return;
814
+ const s = it(this.#n.dataUpdatedAt, t) + 1;
815
+ this.#c = setTimeout(() => {
816
+ this.#n.isStale || this.updateResult();
817
+ }, s);
818
+ }
819
+ #m() {
820
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
821
+ }
822
+ #g(t) {
823
+ this.#w(), this.#u = t, !(F || S(this.options.enabled, this.#t) === !1 || !Q(this.#u) || this.#u === 0) && (this.#h = setInterval(() => {
824
+ (this.options.refetchIntervalInBackground || at.isFocused()) && this.#l();
825
+ }, this.#u));
826
+ }
827
+ #b() {
828
+ this.#v(), this.#g(this.#m());
829
+ }
830
+ #S() {
831
+ this.#c && (clearTimeout(this.#c), this.#c = void 0);
832
+ }
833
+ #w() {
834
+ this.#h && (clearInterval(this.#h), this.#h = void 0);
835
+ }
836
+ createResult(t, e) {
837
+ const s = this.#t, r = this.options, n = this.#n, a = this.#r, o = this.#o, u = t !== s ? t.state : this.#s, { state: l } = t;
838
+ let h = { ...l }, d = !1, f;
839
+ if (e._optimisticResults) {
840
+ const b = this.hasListeners(), D = !b && et(t, e), T = b && st(t, s, e, r);
841
+ (D || T) && (h = {
842
+ ...h,
843
+ ...ht(l.data, t.options)
844
+ }), e._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
845
+ }
846
+ let { error: m, errorUpdatedAt: O, status: c } = h;
847
+ f = h.data;
848
+ let g = !1;
849
+ if (e.placeholderData !== void 0 && f === void 0 && c === "pending") {
850
+ let b;
851
+ n?.isPlaceholderData && e.placeholderData === o?.placeholderData ? (b = n.data, g = !0) : b = typeof e.placeholderData == "function" ? e.placeholderData(
852
+ this.#d?.state.data,
853
+ this.#d
854
+ ) : e.placeholderData, b !== void 0 && (c = "success", f = _(
855
+ n?.data,
856
+ b,
857
+ e
858
+ ), d = !0);
859
+ }
860
+ if (e.select && f !== void 0 && !g)
861
+ if (n && f === a?.data && e.select === this.#y)
862
+ f = this.#f;
863
+ else
864
+ try {
865
+ this.#y = e.select, f = e.select(f), f = _(n?.data, f, e), this.#f = f, this.#i = null;
866
+ } catch (b) {
867
+ this.#i = b;
868
+ }
869
+ this.#i && (m = this.#i, f = this.#f, O = Date.now(), c = "error");
870
+ const v = h.fetchStatus === "fetching", p = c === "pending", y = c === "error", C = p && v, P = f !== void 0, R = {
871
+ status: c,
872
+ fetchStatus: h.fetchStatus,
873
+ isPending: p,
874
+ isSuccess: c === "success",
875
+ isError: y,
876
+ isInitialLoading: C,
877
+ isLoading: C,
878
+ data: f,
879
+ dataUpdatedAt: h.dataUpdatedAt,
880
+ error: m,
881
+ errorUpdatedAt: O,
882
+ failureCount: h.fetchFailureCount,
883
+ failureReason: h.fetchFailureReason,
884
+ errorUpdateCount: h.errorUpdateCount,
885
+ isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
886
+ isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
887
+ isFetching: v,
888
+ isRefetching: v && !p,
889
+ isLoadingError: y && !P,
890
+ isPaused: h.fetchStatus === "paused",
891
+ isPlaceholderData: d,
892
+ isRefetchError: y && P,
893
+ isStale: J(t, e),
894
+ refetch: this.refetch,
895
+ promise: this.#a,
896
+ isEnabled: S(e.enabled, t) !== !1
897
+ };
898
+ if (this.options.experimental_prefetchInRender) {
899
+ const b = (A) => {
900
+ R.status === "error" ? A.reject(R.error) : R.data !== void 0 && A.resolve(R.data);
901
+ }, D = () => {
902
+ const A = this.#a = R.promise = H();
903
+ b(A);
904
+ }, T = this.#a;
905
+ switch (T.status) {
906
+ case "pending":
907
+ t.queryHash === s.queryHash && b(T);
908
+ break;
909
+ case "fulfilled":
910
+ (R.status === "error" || R.data !== T.value) && D();
911
+ break;
912
+ case "rejected":
913
+ (R.status !== "error" || R.error !== T.reason) && D();
914
+ break;
915
+ }
916
+ }
917
+ return R;
918
+ }
919
+ updateResult() {
920
+ const t = this.#n, e = this.createResult(this.#t, this.options);
921
+ if (this.#r = this.#t.state, this.#o = this.options, this.#r.data !== void 0 && (this.#d = this.#t), L(e, t))
922
+ return;
923
+ this.#n = e;
924
+ const s = () => {
925
+ if (!t)
926
+ return !0;
927
+ const { notifyOnChangeProps: r } = this.options, n = typeof r == "function" ? r() : r;
928
+ if (n === "all" || !n && !this.#p.size)
929
+ return !0;
930
+ const a = new Set(
931
+ n ?? this.#p
932
+ );
933
+ return this.options.throwOnError && a.add("error"), Object.keys(this.#n).some((o) => {
934
+ const i = o;
935
+ return this.#n[i] !== t[i] && a.has(i);
936
+ });
937
+ };
938
+ this.#O({ listeners: s() });
939
+ }
940
+ #R() {
941
+ const t = this.#e.getQueryCache().build(this.#e, this.options);
942
+ if (t === this.#t)
943
+ return;
944
+ const e = this.#t;
945
+ this.#t = t, this.#s = t.state, this.hasListeners() && (e?.removeObserver(this), t.addObserver(this));
946
+ }
947
+ onQueryUpdate() {
948
+ this.updateResult(), this.hasListeners() && this.#b();
949
+ }
950
+ #O(t) {
951
+ $.batch(() => {
952
+ t.listeners && this.listeners.forEach((e) => {
953
+ e(this.#n);
954
+ }), this.#e.getQueryCache().notify({
955
+ query: this.#t,
956
+ type: "observerResultsUpdated"
957
+ });
958
+ });
959
+ }
960
+ };
961
+ function Lt(t, e) {
962
+ return S(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
963
+ }
964
+ function et(t, e) {
965
+ return Lt(t, e) || t.state.data !== void 0 && K(t, e, e.refetchOnMount);
966
+ }
967
+ function K(t, e, s) {
968
+ if (S(e.enabled, t) !== !1 && x(e.staleTime, t) !== "static") {
969
+ const r = typeof s == "function" ? s(t) : s;
970
+ return r === "always" || r !== !1 && J(t, e);
971
+ }
972
+ return !1;
973
+ }
974
+ function st(t, e, s, r) {
975
+ return (t !== e || S(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && J(t, s);
976
+ }
977
+ function J(t, e) {
978
+ return S(e.enabled, t) !== !1 && t.isStaleByTime(x(e.staleTime, t));
979
+ }
980
+ function Mt(t, e) {
981
+ return !L(t.getCurrentResult(), e);
982
+ }
983
+ var ft = w.createContext(
984
+ void 0
985
+ ), dt = (t) => {
986
+ const e = w.useContext(ft);
987
+ if (t)
988
+ return t;
989
+ if (!e)
990
+ throw new Error("No QueryClient set, use QueryClientProvider to set one");
991
+ return e;
992
+ }, Pe = ({
993
+ client: t,
994
+ children: e
995
+ }) => (w.useEffect(() => (t.mount(), () => {
996
+ t.unmount();
997
+ }), [t]), /* @__PURE__ */ Et.jsx(ft.Provider, { value: t, children: e })), pt = w.createContext(!1), _t = () => w.useContext(pt);
998
+ pt.Provider;
999
+ function Ht() {
1000
+ let t = !1;
1001
+ return {
1002
+ clearReset: () => {
1003
+ t = !1;
1004
+ },
1005
+ reset: () => {
1006
+ t = !0;
1007
+ },
1008
+ isReset: () => t
1009
+ };
1010
+ }
1011
+ var Kt = w.createContext(Ht()), Bt = () => w.useContext(Kt), zt = (t, e) => {
1012
+ (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
1013
+ }, Gt = (t) => {
1014
+ w.useEffect(() => {
1015
+ t.clearReset();
1016
+ }, [t]);
1017
+ }, Vt = ({
1018
+ result: t,
1019
+ errorResetBoundary: e,
1020
+ throwOnError: s,
1021
+ query: r,
1022
+ suspense: n
1023
+ }) => t.isError && !e.isReset() && !t.isFetching && r && (n && t.data === void 0 || xt(s, [t.error, r])), $t = (t, e) => e.state.data === void 0, Jt = (t) => {
1024
+ if (t.suspense) {
1025
+ const e = (r) => r === "static" ? r : Math.max(r ?? 1e3, 1e3), s = t.staleTime;
1026
+ t.staleTime = typeof s == "function" ? (...r) => e(s(...r)) : e(s), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3));
1027
+ }
1028
+ }, Zt = (t, e) => t.isLoading && t.isFetching && !e, Wt = (t, e) => t?.suspense && e.isPending, rt = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1029
+ s.clearReset();
1030
+ });
1031
+ function yt(t, e, s) {
1032
+ if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
1033
+ throw new Error(
1034
+ 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1035
+ );
1036
+ const r = _t(), n = Bt(), a = dt(s), o = a.defaultQueryOptions(t);
1037
+ a.getDefaultOptions().queries?._experimental_beforeQuery?.(
1038
+ o
1039
+ ), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
1040
+ `[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1041
+ )), o._optimisticResults = r ? "isRestoring" : "optimistic", Jt(o), zt(o, n), Gt(n);
1042
+ const i = !a.getQueryCache().get(o.queryHash), [u] = w.useState(
1043
+ () => new e(
1044
+ a,
1045
+ o
1046
+ )
1047
+ ), l = u.getOptimisticResult(o), h = !r && t.subscribed !== !1;
1048
+ if (w.useSyncExternalStore(
1049
+ w.useCallback(
1050
+ (d) => {
1051
+ const f = h ? u.subscribe($.batchCalls(d)) : I;
1052
+ return u.updateResult(), f;
1053
+ },
1054
+ [u, h]
1055
+ ),
1056
+ () => u.getCurrentResult(),
1057
+ () => u.getCurrentResult()
1058
+ ), w.useEffect(() => {
1059
+ u.setOptions(o);
1060
+ }, [o, u]), Wt(o, l))
1061
+ throw rt(o, u, n);
1062
+ if (Vt({
1063
+ result: l,
1064
+ errorResetBoundary: n,
1065
+ throwOnError: o.throwOnError,
1066
+ query: a.getQueryCache().get(o.queryHash),
1067
+ suspense: o.suspense
1068
+ }))
1069
+ throw l.error;
1070
+ return a.getDefaultOptions().queries?._experimental_afterQuery?.(
1071
+ o,
1072
+ l
1073
+ ), o.experimental_prefetchInRender && !F && Zt(l, r) && (i ? (
1074
+ // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1075
+ rt(o, u, n)
1076
+ ) : (
1077
+ // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1078
+ a.getQueryCache().get(o.queryHash)?.promise
1079
+ ))?.catch(I).finally(() => {
1080
+ u.updateResult();
1081
+ }), o.notifyOnChangeProps ? l : u.trackResult(l);
1082
+ }
1083
+ function Yt(t, e) {
1084
+ return yt(t, lt, e);
1085
+ }
1086
+ function Xt(t, e) {
1087
+ return process.env.NODE_ENV !== "production" && t.queryFn === j && console.error("skipToken is not allowed for useSuspenseQuery"), yt(
1088
+ {
1089
+ ...t,
1090
+ enabled: !0,
1091
+ suspense: !0,
1092
+ throwOnError: $t,
1093
+ placeholderData: void 0
1094
+ },
1095
+ lt,
1096
+ e
1097
+ );
1098
+ }
1099
+ const nt = (t) => {
1100
+ let e;
1101
+ const s = /* @__PURE__ */ new Set(), r = (l, h) => {
1102
+ const d = typeof l == "function" ? l(e) : l;
1103
+ if (!Object.is(d, e)) {
1104
+ const f = e;
1105
+ e = h ?? (typeof d != "object" || d === null) ? d : Object.assign({}, e, d), s.forEach((m) => m(e, f));
1106
+ }
1107
+ }, n = () => e, i = { setState: r, getState: n, getInitialState: () => u, subscribe: (l) => (s.add(l), () => s.delete(l)) }, u = e = t(r, n, i);
1108
+ return i;
1109
+ }, te = ((t) => t ? nt(t) : nt), ee = (t) => t;
1110
+ function se(t, e = ee) {
1111
+ const s = k.useSyncExternalStore(
1112
+ t.subscribe,
1113
+ k.useCallback(() => e(t.getState()), [t, e]),
1114
+ k.useCallback(() => e(t.getInitialState()), [t, e])
1115
+ );
1116
+ return k.useDebugValue(s), s;
1117
+ }
1118
+ const re = (t) => {
1119
+ const e = te(t), s = (r) => se(e, r);
1120
+ return Object.assign(s, e), s;
1121
+ }, ne = ((t) => re);
1122
+ function vt(t, e) {
1123
+ let s;
1124
+ try {
1125
+ s = t();
1126
+ } catch {
1127
+ return;
1128
+ }
1129
+ return {
1130
+ getItem: (n) => {
1131
+ var a;
1132
+ const o = (u) => u === null ? null : JSON.parse(u, void 0), i = (a = s.getItem(n)) != null ? a : null;
1133
+ return i instanceof Promise ? i.then(o) : o(i);
1134
+ },
1135
+ setItem: (n, a) => s.setItem(n, JSON.stringify(a, void 0)),
1136
+ removeItem: (n) => s.removeItem(n)
1137
+ };
1138
+ }
1139
+ const B = (t) => (e) => {
1140
+ try {
1141
+ const s = t(e);
1142
+ return s instanceof Promise ? s : {
1143
+ then(r) {
1144
+ return B(r)(s);
1145
+ },
1146
+ catch(r) {
1147
+ return this;
1148
+ }
1149
+ };
1150
+ } catch (s) {
1151
+ return {
1152
+ then(r) {
1153
+ return this;
1154
+ },
1155
+ catch(r) {
1156
+ return B(r)(s);
1157
+ }
1158
+ };
1159
+ }
1160
+ }, ie = (t, e) => (s, r, n) => {
1161
+ let a = {
1162
+ storage: vt(() => localStorage),
1163
+ partialize: (c) => c,
1164
+ version: 0,
1165
+ merge: (c, g) => ({
1166
+ ...g,
1167
+ ...c
1168
+ }),
1169
+ ...e
1170
+ }, o = !1;
1171
+ const i = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
1172
+ let l = a.storage;
1173
+ if (!l)
1174
+ return t(
1175
+ (...c) => {
1176
+ console.warn(
1177
+ `[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`
1178
+ ), s(...c);
1179
+ },
1180
+ r,
1181
+ n
1182
+ );
1183
+ const h = () => {
1184
+ const c = a.partialize({ ...r() });
1185
+ return l.setItem(a.name, {
1186
+ state: c,
1187
+ version: a.version
1188
+ });
1189
+ }, d = n.setState;
1190
+ n.setState = (c, g) => (d(c, g), h());
1191
+ const f = t(
1192
+ (...c) => (s(...c), h()),
1193
+ r,
1194
+ n
1195
+ );
1196
+ n.getInitialState = () => f;
1197
+ let m;
1198
+ const O = () => {
1199
+ var c, g;
1200
+ if (!l) return;
1201
+ o = !1, i.forEach((p) => {
1202
+ var y;
1203
+ return p((y = r()) != null ? y : f);
1204
+ });
1205
+ const v = ((g = a.onRehydrateStorage) == null ? void 0 : g.call(a, (c = r()) != null ? c : f)) || void 0;
1206
+ return B(l.getItem.bind(l))(a.name).then((p) => {
1207
+ if (p)
1208
+ if (typeof p.version == "number" && p.version !== a.version) {
1209
+ if (a.migrate) {
1210
+ const y = a.migrate(
1211
+ p.state,
1212
+ p.version
1213
+ );
1214
+ return y instanceof Promise ? y.then((C) => [!0, C]) : [!0, y];
1215
+ }
1216
+ console.error(
1217
+ "State loaded from storage couldn't be migrated since no migrate function was provided"
1218
+ );
1219
+ } else
1220
+ return [!1, p.state];
1221
+ return [!1, void 0];
1222
+ }).then((p) => {
1223
+ var y;
1224
+ const [C, P] = p;
1225
+ if (m = a.merge(
1226
+ P,
1227
+ (y = r()) != null ? y : f
1228
+ ), s(m, !0), C)
1229
+ return h();
1230
+ }).then(() => {
1231
+ v?.(m, void 0), m = r(), o = !0, u.forEach((p) => p(m));
1232
+ }).catch((p) => {
1233
+ v?.(void 0, p);
1234
+ });
1235
+ };
1236
+ return n.persist = {
1237
+ setOptions: (c) => {
1238
+ a = {
1239
+ ...a,
1240
+ ...c
1241
+ }, c.storage && (l = c.storage);
1242
+ },
1243
+ clearStorage: () => {
1244
+ l?.removeItem(a.name);
1245
+ },
1246
+ getOptions: () => a,
1247
+ rehydrate: () => O(),
1248
+ hasHydrated: () => o,
1249
+ onHydrate: (c) => (i.add(c), () => {
1250
+ i.delete(c);
1251
+ }),
1252
+ onFinishHydration: (c) => (u.add(c), () => {
1253
+ u.delete(c);
1254
+ })
1255
+ }, a.skipHydration || O(), m || f;
1256
+ }, ae = ie, oe = (t) => {
1257
+ const e = (s) => {
1258
+ s.key === t.persist.getOptions().name && s.newValue && t.persist.rehydrate();
1259
+ };
1260
+ if (!(typeof window > "u"))
1261
+ return window.addEventListener("storage", e), () => {
1262
+ window.removeEventListener("storage", e);
1263
+ };
1264
+ }, mt = ne()(
1265
+ ae(
1266
+ (t) => ({
1267
+ isAuthenticated: !1,
1268
+ isPending: !0,
1269
+ profile: null,
1270
+ providerData: null,
1271
+ setAuthenticationPending: () => t(() => ({
1272
+ isAuthenticated: !1,
1273
+ isPending: !1,
1274
+ profile: null,
1275
+ providerData: null
1276
+ })),
1277
+ setLoggedOut: () => t(() => ({
1278
+ isAuthenticated: !1,
1279
+ isPending: !1,
1280
+ profile: null,
1281
+ providerData: null
1282
+ })),
1283
+ setLoggedIn: ({
1284
+ profile: e,
1285
+ providerData: s
1286
+ }) => t(() => ({
1287
+ isAuthenticated: !0,
1288
+ isPending: !1,
1289
+ profile: e,
1290
+ providerData: s
1291
+ }))
1292
+ }),
1293
+ {
1294
+ merge: (t, e) => ({
1295
+ ...e,
1296
+ isPending: !1,
1297
+ ...typeof t == "object" ? t : {}
1298
+ }),
1299
+ name: "auth-state",
1300
+ storage: vt(() => localStorage)
1301
+ }
1302
+ )
1303
+ );
1304
+ oe(mt);
1305
+ const ue = /^(\w+:\/\/[^/?]+)?([^?]*)(\?.*)?$/, ce = (t) => t.filter(
1306
+ (e) => e != null && e !== !1 && (typeof e == "string" || typeof e == "number")
1307
+ ).map((e) => `${e}`).filter((e) => e), he = (t) => {
1308
+ const e = t.join("/"), [, s = "", r = ""] = e.match(ue) ?? [];
1309
+ return {
1310
+ prefix: s,
1311
+ pathname: r.split("/").filter((n) => n !== "")
1312
+ };
1313
+ }, le = (t) => {
1314
+ const { prefix: e, pathname: s } = t;
1315
+ let r = e;
1316
+ return s.length > 0 ? (r ? r += "/" : r = "/", r += s.join("/")) : r || (r = "/"), r;
1317
+ }, E = (...t) => {
1318
+ const e = ce(t), s = he(e);
1319
+ return le(s);
1320
+ }, gt = Object.freeze({
1321
+ API_IDENTITIES: ["api-identities"]
1322
+ }), fe = () => {
1323
+ const t = dt();
1324
+ return { invalidateCache: wt(
1325
+ (s) => t.invalidateQueries({ queryKey: gt[s] }),
1326
+ [t]
1327
+ ) };
1328
+ }, Te = "no-dehydrate", Z = (t, e) => {
1329
+ for (const s of t) {
1330
+ const r = W(s, e);
1331
+ if (r !== void 0) return r;
1332
+ }
1333
+ }, W = (t, e, s = []) => {
1334
+ const r = e(t, s);
1335
+ if (r !== void 0) return r;
1336
+ if (t.type === "category")
1337
+ for (const n of t.items) {
1338
+ const a = W(n, e, [
1339
+ ...s,
1340
+ t
1341
+ ]);
1342
+ if (a !== void 0) return a;
1343
+ }
1344
+ }, xe = () => {
1345
+ const t = q(), { navigation: e } = St();
1346
+ return Z(e, (s) => {
1347
+ if (s.type === "doc" && E(s.path) === t.pathname)
1348
+ return s;
1349
+ });
1350
+ }, De = (t) => {
1351
+ const e = q();
1352
+ return W(t, (s) => {
1353
+ switch (s.type) {
1354
+ case "category":
1355
+ return s.link && E(s.link.path) === e.pathname ? !0 : void 0;
1356
+ case "custom-page":
1357
+ case "doc":
1358
+ return E(s.path) === e.pathname ? !0 : void 0;
1359
+ default:
1360
+ return;
1361
+ }
1362
+ });
1363
+ }, Ae = () => {
1364
+ const t = q().pathname, { navigation: e } = St();
1365
+ let s, r, n = !1;
1366
+ return Z(e, (a) => {
1367
+ const o = a.type === "doc" ? E(a.path) : a.type === "category" && a.link ? E(a.link.path) : void 0;
1368
+ if (o) {
1369
+ if (n)
1370
+ return r = { label: a.label, id: o }, !0;
1371
+ t === o ? n = !0 : s = { label: a.label, id: o };
1372
+ }
1373
+ }), { prev: s, next: r };
1374
+ }, ke = Ft(
1375
+ "relative flex items-center gap-2 px-(--padding-nav-item) my-0.5 py-1.5 rounded-lg hover:bg-accent tabular-nums",
1376
+ {
1377
+ variants: {
1378
+ isActive: {
1379
+ true: "bg-accent font-medium",
1380
+ false: "text-foreground/80"
1381
+ },
1382
+ isMuted: {
1383
+ true: "text-foreground/30",
1384
+ false: ""
1385
+ },
1386
+ isPending: {
1387
+ true: "bg-accent animate-pulse",
1388
+ false: ""
1389
+ }
1390
+ },
1391
+ defaultVariants: {
1392
+ isActive: !1
1393
+ }
1394
+ }
1395
+ ), je = (t, e) => (s) => typeof s.display == "function" ? s.display({ context: e, auth: t }) : s.display === "hide" || !s.label ? !1 : s.display === "auth" && t.isAuthenticated || s.display === "anon" && !t.isAuthenticated || !s.display || s.display === "always", de = Rt(
1396
+ void 0
1397
+ ), bt = () => {
1398
+ const t = Ot(de);
1399
+ if (!t)
1400
+ throw new Error("useZudoku must be used within a ZudokuProvider.");
1401
+ return t;
1402
+ }, qe = () => {
1403
+ const { getApiIdentities: t } = bt(), { isAuthenticated: e } = mt(), { invalidateCache: s } = fe();
1404
+ return Ct(() => {
1405
+ e || s("API_IDENTITIES");
1406
+ }, [e, s]), Yt({
1407
+ queryFn: t,
1408
+ queryKey: gt.API_IDENTITIES
1409
+ });
1410
+ }, z = (t) => {
1411
+ switch (t.type) {
1412
+ case "doc":
1413
+ return E(t.path);
1414
+ case "category":
1415
+ return t.link ? E(t.link.path) : void 0;
1416
+ case "link":
1417
+ return t.to;
1418
+ case "custom-page":
1419
+ return E(t.path);
1420
+ default:
1421
+ return;
1422
+ }
1423
+ }, pe = (t) => {
1424
+ const e = /* @__PURE__ */ new Set(), s = (r) => {
1425
+ for (const n of r) {
1426
+ const a = z(n)?.split("?").at(0)?.split("#").at(0);
1427
+ a && e.add(a), n.type === "category" && s(n.items);
1428
+ }
1429
+ };
1430
+ return s(t), [...e];
1431
+ }, St = () => {
1432
+ const { getPluginNavigation: t, navigation: e } = bt(), s = q(), r = Z(e, (o, i) => {
1433
+ if (z(o) === s.pathname)
1434
+ return i.at(0) ?? o;
1435
+ }), { data: n } = Xt({
1436
+ queryFn: () => t(s.pathname),
1437
+ queryKey: ["plugin-navigation", s.pathname]
1438
+ });
1439
+ let a = r;
1440
+ if (!r && n.length > 0) {
1441
+ const o = pe(n);
1442
+ a = e.flatMap((i) => {
1443
+ const u = z(i);
1444
+ return u ? [{ item: i, path: u }] : [];
1445
+ }).sort((i, u) => u.path.length - i.path.length).find(({ path: i }) => o.some(
1446
+ (u) => Y({ path: i, end: !1 }, u) ?? Y({ path: u, end: !1 }, i)
1447
+ ))?.item;
1448
+ }
1449
+ return {
1450
+ navigation: [
1451
+ ...r?.type === "category" ? r.items : [],
1452
+ ...n
1453
+ ],
1454
+ topNavItem: a
1455
+ };
1456
+ };
1457
+ export {
1458
+ Se as A,
1459
+ V as B,
1460
+ gt as C,
1461
+ j as D,
1462
+ Fe as E,
1463
+ Pe as F,
1464
+ St as G,
1465
+ ne as H,
1466
+ ae as I,
1467
+ vt as J,
1468
+ oe as K,
1469
+ qe as L,
1470
+ De as M,
1471
+ ke as N,
1472
+ je as O,
1473
+ te as P,
1474
+ Ie as Q,
1475
+ Ut as R,
1476
+ G as S,
1477
+ se as T,
1478
+ W as U,
1479
+ Te as V,
1480
+ de as Z,
1481
+ bt as a,
1482
+ xe as b,
1483
+ jt as c,
1484
+ Ae as d,
1485
+ Xt as e,
1486
+ Yt as f,
1487
+ dt as g,
1488
+ U as h,
1489
+ I as i,
1490
+ E as j,
1491
+ xt as k,
1492
+ Oe as l,
1493
+ fe as m,
1494
+ $ as n,
1495
+ It as o,
1496
+ we as p,
1497
+ Re as q,
1498
+ Tt as r,
1499
+ L as s,
1500
+ Z as t,
1501
+ mt as u,
1502
+ Ee as v,
1503
+ Ce as w,
1504
+ at as x,
1505
+ ot as y,
1506
+ x as z
1507
+ };
1508
+ //# sourceMappingURL=ZudokuContext-DNHMZfcP.js.map