zudoku 0.3.0-dev.7 → 0.3.0-dev.70

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 (559) hide show
  1. package/dist/app/App.d.ts +1 -2
  2. package/dist/app/App.js +1 -29
  3. package/dist/app/App.js.map +1 -1
  4. package/dist/app/demo.d.ts +2 -0
  5. package/dist/app/demo.js +32 -0
  6. package/dist/app/demo.js.map +1 -0
  7. package/dist/app/entry.client.d.ts +2 -0
  8. package/dist/app/entry.client.js +35 -0
  9. package/dist/app/entry.client.js.map +1 -0
  10. package/dist/app/entry.server.d.ts +14 -0
  11. package/dist/app/entry.server.js +105 -0
  12. package/dist/app/entry.server.js.map +1 -0
  13. package/dist/app/main.d.ts +6 -1
  14. package/dist/app/main.js +68 -12
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.d.ts +2 -0
  17. package/dist/app/standalone.js +37 -0
  18. package/dist/app/standalone.js.map +1 -0
  19. package/dist/app/tailwind.d.ts +1 -1
  20. package/dist/app/tailwind.js +0 -4
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/cli/cmds/dev.js +5 -0
  23. package/dist/cli/cmds/dev.js.map +1 -1
  24. package/dist/cli/dev/handler.d.ts +1 -0
  25. package/dist/cli/dev/handler.js +3 -1
  26. package/dist/cli/dev/handler.js.map +1 -1
  27. package/dist/config/config.d.ts +19 -45
  28. package/dist/config/validators/validate.d.ts +911 -2
  29. package/dist/config/validators/validate.js +151 -1
  30. package/dist/config/validators/validate.js.map +1 -1
  31. package/dist/internal.d.ts +1 -0
  32. package/dist/internal.js +2 -0
  33. package/dist/internal.js.map +1 -0
  34. package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
  35. package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
  36. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
  37. package/dist/lib/authentication/Callback.d.ts +1 -1
  38. package/dist/lib/authentication/Callback.js +3 -3
  39. package/dist/lib/authentication/Callback.js.map +1 -1
  40. package/dist/lib/authentication/authentication.d.ts +6 -9
  41. package/dist/lib/authentication/components/SignIn.d.ts +1 -0
  42. package/dist/lib/authentication/components/SignIn.js +10 -0
  43. package/dist/lib/authentication/components/SignIn.js.map +1 -0
  44. package/dist/lib/authentication/components/SignOut.d.ts +1 -0
  45. package/dist/lib/authentication/components/SignOut.js +10 -0
  46. package/dist/lib/authentication/components/SignOut.js.map +1 -0
  47. package/dist/lib/authentication/components/SignUp.d.ts +1 -0
  48. package/dist/lib/authentication/components/SignUp.js +10 -0
  49. package/dist/lib/authentication/components/SignUp.js.map +1 -0
  50. package/dist/lib/authentication/hook.js +2 -2
  51. package/dist/lib/authentication/hook.js.map +1 -1
  52. package/dist/lib/authentication/providers/auth0.js +4 -5
  53. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  54. package/dist/lib/authentication/providers/clerk.js +59 -30
  55. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  56. package/dist/lib/authentication/providers/openid.d.ts +20 -7
  57. package/dist/lib/authentication/providers/openid.js +58 -17
  58. package/dist/lib/authentication/providers/openid.js.map +1 -1
  59. package/dist/lib/components/Bootstrap.d.ts +13 -0
  60. package/dist/lib/components/Bootstrap.js +12 -0
  61. package/dist/lib/components/Bootstrap.js.map +1 -0
  62. package/dist/lib/components/DevPortal.d.ts +5 -19
  63. package/dist/lib/components/DevPortal.js +32 -12
  64. package/dist/lib/components/DevPortal.js.map +1 -1
  65. package/dist/lib/components/DeveloperHint.d.ts +5 -0
  66. package/dist/lib/components/DeveloperHint.js +10 -0
  67. package/dist/lib/components/DeveloperHint.js.map +1 -0
  68. package/dist/lib/components/ErrorPage.d.ts +6 -0
  69. package/dist/lib/components/ErrorPage.js +9 -0
  70. package/dist/lib/components/ErrorPage.js.map +1 -0
  71. package/dist/lib/components/Header.js +17 -3
  72. package/dist/lib/components/Header.js.map +1 -1
  73. package/dist/lib/components/Heading.d.ts +9 -4
  74. package/dist/lib/components/Heading.js +17 -2
  75. package/dist/lib/components/Heading.js.map +1 -1
  76. package/dist/lib/components/InlineCode.d.ts +5 -0
  77. package/dist/lib/components/InlineCode.js +4 -0
  78. package/dist/lib/components/InlineCode.js.map +1 -0
  79. package/dist/lib/components/Layout.js +4 -2
  80. package/dist/lib/components/Layout.js.map +1 -1
  81. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  82. package/dist/lib/components/NotFoundPage.js +12 -0
  83. package/dist/lib/components/NotFoundPage.js.map +1 -0
  84. package/dist/lib/components/SlotletProvider.d.ts +9 -0
  85. package/dist/lib/components/SlotletProvider.js +11 -0
  86. package/dist/lib/components/SlotletProvider.js.map +1 -0
  87. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  88. package/dist/lib/components/SyntaxHighlight.js +24 -22
  89. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  90. package/dist/lib/components/TopNavigation.d.ts +1 -1
  91. package/dist/lib/components/TopNavigation.js +5 -1
  92. package/dist/lib/components/TopNavigation.js.map +1 -1
  93. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  94. package/dist/lib/components/context/DevPortalProvider.js +20 -3
  95. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  96. package/dist/lib/components/index.d.ts +32 -3
  97. package/dist/lib/components/index.js +21 -3
  98. package/dist/lib/components/index.js.map +1 -1
  99. package/dist/lib/components/navigation/SideNavigation.js +3 -2
  100. package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
  101. package/dist/lib/components/navigation/SideNavigationCategory.js +3 -3
  102. package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
  103. package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -4
  104. package/dist/lib/components/navigation/SideNavigationItem.js +4 -4
  105. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
  106. package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +4 -1
  107. package/dist/lib/components/navigation/useNavigationCollapsibleState.js +17 -5
  108. package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +1 -1
  109. package/dist/lib/core/DevPortalContext.d.ts +48 -12
  110. package/dist/lib/core/DevPortalContext.js +7 -9
  111. package/dist/lib/core/DevPortalContext.js.map +1 -1
  112. package/dist/lib/core/plugins.d.ts +16 -4
  113. package/dist/lib/core/plugins.js +2 -0
  114. package/dist/lib/core/plugins.js.map +1 -1
  115. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  116. package/dist/lib/errors/ErrorAlert.js +8 -0
  117. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  118. package/dist/lib/errors/RouterError.d.ts +1 -0
  119. package/dist/lib/errors/RouterError.js +12 -0
  120. package/dist/lib/errors/RouterError.js.map +1 -0
  121. package/dist/lib/errors/ServerError.d.ts +3 -0
  122. package/dist/lib/errors/ServerError.js +6 -0
  123. package/dist/lib/errors/ServerError.js.map +1 -0
  124. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  125. package/dist/lib/errors/TopLevelError.js +7 -0
  126. package/dist/lib/errors/TopLevelError.js.map +1 -0
  127. package/dist/lib/oas/graphql/index.js +6 -4
  128. package/dist/lib/oas/graphql/index.js.map +1 -1
  129. package/dist/lib/oas/parser/index.d.ts +1 -1
  130. package/dist/lib/oas/parser/index.js +38 -12
  131. package/dist/lib/oas/parser/index.js.map +1 -1
  132. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +2 -2
  133. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  134. package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
  135. package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
  136. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
  137. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +40 -0
  138. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  139. package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +4 -5
  140. package/dist/lib/plugins/{api-key → api-keys}/index.js +12 -20
  141. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  142. package/dist/lib/plugins/custom-page/index.d.ts +8 -0
  143. package/dist/lib/plugins/custom-page/index.js +12 -0
  144. package/dist/lib/plugins/custom-page/index.js.map +1 -0
  145. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  146. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  147. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  148. package/dist/lib/plugins/markdown/Toc.js +17 -9
  149. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  150. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  151. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  152. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  153. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  154. package/dist/lib/plugins/markdown/index.js +3 -7
  155. package/dist/lib/plugins/markdown/index.js.map +1 -1
  156. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +2 -1
  157. package/dist/lib/plugins/openapi/ColorizedParam.js +14 -9
  158. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  159. package/dist/lib/plugins/openapi/OperationList.js +17 -5
  160. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  161. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  162. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  163. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  164. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  165. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  166. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  167. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  168. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +4 -16
  169. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  170. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
  171. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  172. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  173. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  174. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  175. package/dist/lib/plugins/openapi/Route.js +8 -0
  176. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  177. package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
  178. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  179. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  180. package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
  181. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  182. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  183. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  184. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  185. package/dist/lib/plugins/openapi/Sidecar.js +26 -19
  186. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  187. package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
  188. package/dist/lib/plugins/openapi/SidecarBox.js +3 -2
  189. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  190. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  191. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  192. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  193. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
  194. package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
  195. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
  196. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  197. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  198. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  199. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  200. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  201. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  202. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  203. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  204. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  205. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  206. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  207. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  208. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  209. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  210. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  211. package/dist/lib/plugins/openapi/context.js +11 -0
  212. package/dist/lib/plugins/openapi/context.js.map +1 -0
  213. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  214. package/dist/lib/plugins/openapi/index.js +35 -20
  215. package/dist/lib/plugins/openapi/index.js.map +1 -1
  216. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  217. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  218. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  219. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +2 -2
  220. package/dist/lib/plugins/openapi/playground/PathParams.js +9 -12
  221. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  222. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -5
  223. package/dist/lib/plugins/openapi/playground/Playground.js +31 -15
  224. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  225. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  226. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +12 -0
  227. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  228. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
  229. package/dist/lib/plugins/openapi/playground/QueryParams.js +13 -9
  230. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  231. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  232. package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
  233. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  234. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  235. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  236. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  237. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  238. package/dist/lib/plugins/openapi-worker.js +1 -1
  239. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  240. package/dist/lib/plugins/redirect/index.d.ts +0 -1
  241. package/dist/lib/plugins/redirect/index.js +3 -4
  242. package/dist/lib/plugins/redirect/index.js.map +1 -1
  243. package/dist/lib/ui/Callout.js +2 -2
  244. package/dist/lib/ui/Callout.js.map +1 -1
  245. package/dist/lib/ui/Card.js +1 -1
  246. package/dist/lib/ui/Card.js.map +1 -1
  247. package/dist/lib/ui/DropdownMenu.d.ts +27 -0
  248. package/dist/lib/ui/DropdownMenu.js +36 -0
  249. package/dist/lib/ui/DropdownMenu.js.map +1 -0
  250. package/dist/lib/ui/Input.js.map +1 -0
  251. package/dist/lib/ui/button-variants.d.ts +2 -2
  252. package/dist/lib/ui/button-variants.js +1 -0
  253. package/dist/lib/ui/button-variants.js.map +1 -1
  254. package/dist/lib/util/MdxComponents.d.ts +2 -2
  255. package/dist/lib/util/MdxComponents.js +7 -5
  256. package/dist/lib/util/MdxComponents.js.map +1 -1
  257. package/dist/lib/util/groupBy.d.ts +1 -6
  258. package/dist/lib/util/groupBy.js +10 -8
  259. package/dist/lib/util/groupBy.js.map +1 -1
  260. package/dist/lib/util/invariant.d.ts +6 -0
  261. package/dist/lib/util/invariant.js +21 -0
  262. package/dist/lib/util/invariant.js.map +1 -0
  263. package/dist/lib/util/joinPath.js +2 -1
  264. package/dist/lib/util/joinPath.js.map +1 -1
  265. package/dist/lib/util/logInit.d.ts +1 -0
  266. package/dist/lib/util/logInit.js +9 -0
  267. package/dist/lib/util/logInit.js.map +1 -0
  268. package/dist/lib/util/objectEntries.d.ts +4 -0
  269. package/dist/lib/util/objectEntries.js +2 -0
  270. package/dist/lib/util/objectEntries.js.map +1 -0
  271. package/dist/lib/util/renderIf.d.ts +1 -0
  272. package/dist/lib/util/renderIf.js +2 -0
  273. package/dist/lib/util/renderIf.js.map +1 -0
  274. package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
  275. package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
  276. package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
  277. package/dist/vite/build.js +30 -7
  278. package/dist/vite/build.js.map +1 -1
  279. package/dist/vite/config.d.ts +21 -12
  280. package/dist/vite/config.js +107 -55
  281. package/dist/vite/config.js.map +1 -1
  282. package/dist/vite/config.test.js +6 -3
  283. package/dist/vite/config.test.js.map +1 -1
  284. package/dist/vite/dev-server.d.ts +2 -1
  285. package/dist/vite/dev-server.js +44 -15
  286. package/dist/vite/dev-server.js.map +1 -1
  287. package/dist/vite/html.js +18 -5
  288. package/dist/vite/html.js.map +1 -1
  289. package/dist/vite/plugin-api-keys.js +7 -8
  290. package/dist/vite/plugin-api-keys.js.map +1 -1
  291. package/dist/vite/plugin-api.js +9 -20
  292. package/dist/vite/plugin-api.js.map +1 -1
  293. package/dist/vite/plugin-auth.js +5 -6
  294. package/dist/vite/plugin-auth.js.map +1 -1
  295. package/dist/vite/plugin-component.js +5 -2
  296. package/dist/vite/plugin-component.js.map +1 -1
  297. package/dist/vite/plugin-config.d.ts +0 -2
  298. package/dist/vite/plugin-config.js +2 -13
  299. package/dist/vite/plugin-config.js.map +1 -1
  300. package/dist/vite/plugin-custom-css.d.ts +6 -0
  301. package/dist/vite/plugin-custom-css.js +54 -0
  302. package/dist/vite/plugin-custom-css.js.map +1 -0
  303. package/dist/vite/plugin-docs.js +15 -5
  304. package/dist/vite/plugin-docs.js.map +1 -1
  305. package/dist/vite/plugin-mdx.d.ts +3 -1
  306. package/dist/vite/plugin-mdx.js +5 -5
  307. package/dist/vite/plugin-mdx.js.map +1 -1
  308. package/dist/vite/plugin-metadata.js +1 -1
  309. package/dist/vite/plugin-metadata.js.map +1 -1
  310. package/dist/vite/plugin-redirect.js +10 -10
  311. package/dist/vite/plugin-redirect.js.map +1 -1
  312. package/dist/vite/plugin.js +3 -5
  313. package/dist/vite/plugin.js.map +1 -1
  314. package/dist/vite/prerender.d.ts +17 -0
  315. package/dist/vite/prerender.js +79 -0
  316. package/dist/vite/prerender.js.map +1 -0
  317. package/lib/AnchorLink-C_pYhuZi.js +705 -0
  318. package/lib/AnchorLink-C_pYhuZi.js.map +1 -0
  319. package/lib/AuthenticationPlugin-RvXALgvS.js +52 -0
  320. package/lib/AuthenticationPlugin-RvXALgvS.js.map +1 -0
  321. package/lib/CategoryHeading-D5Q-X6lE.js +10 -0
  322. package/lib/CategoryHeading-D5Q-X6lE.js.map +1 -0
  323. package/lib/Combination-Cq0UkOXq.js +2774 -0
  324. package/lib/Combination-Cq0UkOXq.js.map +1 -0
  325. package/lib/DevPortalProvider-BBhQ8kgI.js +1125 -0
  326. package/lib/DevPortalProvider-BBhQ8kgI.js.map +1 -0
  327. package/lib/Input-DdAxw3vC.js +2239 -0
  328. package/lib/Input-DdAxw3vC.js.map +1 -0
  329. package/lib/Markdown-DsCvZnhw.js +15035 -0
  330. package/lib/Markdown-DsCvZnhw.js.map +1 -0
  331. package/lib/MdxPage-B_7x36CA.js +200 -0
  332. package/lib/MdxPage-B_7x36CA.js.map +1 -0
  333. package/lib/OperationList-i6FGZUu4.js +5467 -0
  334. package/lib/OperationList-i6FGZUu4.js.map +1 -0
  335. package/lib/Route-Bsrd0acQ.js +13 -0
  336. package/lib/Route-Bsrd0acQ.js.map +1 -0
  337. package/lib/SlotletProvider-CpNYmq6S.js +102 -0
  338. package/lib/SlotletProvider-CpNYmq6S.js.map +1 -0
  339. package/lib/Spinner-BBPlEab_.js +359 -0
  340. package/lib/Spinner-BBPlEab_.js.map +1 -0
  341. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  342. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  343. package/lib/assets/index-BPdJm2ty.js +1 -0
  344. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  345. package/lib/assets/{worker-BCcpCNJ7.js → worker-BWwCA-wk.js} +10727 -10300
  346. package/lib/assets/worker-BWwCA-wk.js.map +1 -0
  347. package/lib/context-_fYfJFgk.js +14 -0
  348. package/lib/context-_fYfJFgk.js.map +1 -0
  349. package/lib/index-DT-cf5tv.js +726 -0
  350. package/lib/index-DT-cf5tv.js.map +1 -0
  351. package/lib/index-pI9JkN46.js +4765 -0
  352. package/lib/index-pI9JkN46.js.map +1 -0
  353. package/lib/jsx-runtime-BIr0WBt_.js +1526 -0
  354. package/lib/jsx-runtime-BIr0WBt_.js.map +1 -0
  355. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  356. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  357. package/lib/prism-csharp.min-Yizuc34Y.js +1 -0
  358. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  359. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  360. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  361. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  362. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  363. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  364. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  365. package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
  366. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  367. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  368. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  369. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  370. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  371. package/lib/router-BiRCp01d.js +2971 -0
  372. package/lib/router-BiRCp01d.js.map +1 -0
  373. package/lib/slugify-CiPVjteN.js +28 -0
  374. package/lib/slugify-CiPVjteN.js.map +1 -0
  375. package/lib/state-DKdaQzvh.js +288 -0
  376. package/lib/state-DKdaQzvh.js.map +1 -0
  377. package/lib/urql-DMlBWUKL.js +1 -0
  378. package/lib/urql-DMlBWUKL.js.map +1 -0
  379. package/lib/zudoku.auth-auth0.js +15 -13
  380. package/lib/zudoku.auth-auth0.js.map +1 -0
  381. package/lib/zudoku.auth-clerk.js +59 -29
  382. package/lib/zudoku.auth-clerk.js.map +1 -0
  383. package/lib/zudoku.auth-openid.js +715 -539
  384. package/lib/zudoku.auth-openid.js.map +1 -0
  385. package/lib/zudoku.components.js +1835 -550
  386. package/lib/zudoku.components.js.map +1 -0
  387. package/lib/zudoku.openapi-worker.js +15035 -146
  388. package/lib/zudoku.openapi-worker.js.map +1 -0
  389. package/lib/zudoku.plugin-api-keys.js +300 -0
  390. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  391. package/lib/zudoku.plugin-custom-page.js +13 -0
  392. package/lib/zudoku.plugin-custom-page.js.map +1 -0
  393. package/lib/zudoku.plugin-markdown.js +48 -0
  394. package/lib/zudoku.plugin-markdown.js.map +1 -0
  395. package/lib/zudoku.plugin-openapi.js +10 -0
  396. package/lib/zudoku.plugin-openapi.js.map +1 -0
  397. package/lib/zudoku.plugin-redirect.js +11 -0
  398. package/lib/zudoku.plugin-redirect.js.map +1 -0
  399. package/package.json +60 -25
  400. package/src/app/App.tsx +0 -41
  401. package/src/app/demo-cdn.html +26 -0
  402. package/src/app/demo.html +18 -0
  403. package/src/app/demo.tsx +45 -0
  404. package/src/app/entry.client.tsx +47 -0
  405. package/src/app/entry.server.tsx +160 -0
  406. package/src/app/main.css +84 -4
  407. package/src/app/main.tsx +87 -15
  408. package/src/app/standalone.html +20 -0
  409. package/src/app/standalone.tsx +51 -0
  410. package/src/app/tailwind.ts +2 -6
  411. package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
  412. package/src/lib/authentication/Callback.tsx +4 -4
  413. package/src/lib/authentication/authentication.ts +6 -12
  414. package/src/lib/authentication/components/SignIn.tsx +11 -0
  415. package/src/lib/authentication/components/SignOut.tsx +11 -0
  416. package/src/lib/authentication/components/SignUp.tsx +11 -0
  417. package/src/lib/authentication/hook.ts +2 -2
  418. package/src/lib/authentication/providers/auth0.tsx +6 -5
  419. package/src/lib/authentication/providers/clerk.tsx +63 -31
  420. package/src/lib/authentication/providers/openid.tsx +69 -18
  421. package/src/lib/components/Bootstrap.tsx +44 -0
  422. package/src/lib/components/DevPortal.tsx +59 -49
  423. package/src/lib/components/DeveloperHint.tsx +25 -0
  424. package/src/lib/components/ErrorPage.tsx +28 -0
  425. package/src/lib/components/Header.tsx +97 -32
  426. package/src/lib/components/Heading.tsx +26 -7
  427. package/src/lib/components/InlineCode.tsx +19 -0
  428. package/src/lib/components/Layout.tsx +12 -7
  429. package/src/lib/components/NotFoundPage.tsx +33 -0
  430. package/src/lib/components/SlotletProvider.tsx +25 -0
  431. package/src/lib/components/SyntaxHighlight.tsx +53 -44
  432. package/src/lib/components/TopNavigation.tsx +6 -1
  433. package/src/lib/components/context/DevPortalProvider.ts +24 -4
  434. package/src/lib/components/index.ts +25 -3
  435. package/src/lib/components/navigation/SideNavigation.tsx +3 -0
  436. package/src/lib/components/navigation/SideNavigationCategory.tsx +5 -9
  437. package/src/lib/components/navigation/SideNavigationItem.tsx +5 -9
  438. package/src/lib/components/navigation/useNavigationCollapsibleState.ts +21 -6
  439. package/src/lib/core/DevPortalContext.ts +56 -25
  440. package/src/lib/core/plugins.ts +26 -5
  441. package/src/lib/errors/ErrorAlert.tsx +21 -0
  442. package/src/lib/errors/RouterError.tsx +13 -0
  443. package/src/lib/errors/ServerError.tsx +5 -0
  444. package/src/lib/errors/TopLevelError.tsx +8 -0
  445. package/src/lib/oas/graphql/index.ts +9 -5
  446. package/src/lib/oas/parser/index.ts +41 -20
  447. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -2
  448. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
  449. package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +19 -9
  450. package/src/lib/plugins/{api-key → api-keys}/index.tsx +17 -41
  451. package/src/lib/plugins/custom-page/index.tsx +22 -0
  452. package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
  453. package/src/lib/plugins/markdown/Toc.tsx +53 -40
  454. package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
  455. package/src/lib/plugins/markdown/index.tsx +10 -7
  456. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -16
  457. package/src/lib/plugins/openapi/OperationList.tsx +46 -10
  458. package/src/lib/plugins/openapi/OperationListItem.tsx +68 -42
  459. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  460. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  461. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +3 -19
  462. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
  463. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -2
  464. package/src/lib/plugins/openapi/Route.tsx +21 -0
  465. package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
  466. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
  467. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  468. package/src/lib/plugins/openapi/Sidecar.tsx +40 -28
  469. package/src/lib/plugins/openapi/SidecarBox.tsx +13 -2
  470. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  471. package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
  472. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  473. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  474. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
  475. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  476. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  477. package/src/lib/plugins/openapi/context.tsx +16 -0
  478. package/src/lib/plugins/openapi/index.tsx +59 -52
  479. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  480. package/src/lib/plugins/openapi/playground/PathParams.tsx +80 -48
  481. package/src/lib/plugins/openapi/playground/Playground.tsx +200 -210
  482. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +36 -0
  483. package/src/lib/plugins/openapi/playground/QueryParams.tsx +92 -65
  484. package/src/lib/plugins/openapi/playground/createUrl.ts +12 -15
  485. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  486. package/src/lib/plugins/openapi-worker.ts +1 -1
  487. package/src/lib/plugins/redirect/index.tsx +3 -4
  488. package/src/lib/ui/Callout.tsx +4 -4
  489. package/src/lib/ui/Card.tsx +1 -1
  490. package/src/lib/ui/DropdownMenu.tsx +199 -0
  491. package/src/lib/ui/button-variants.ts +1 -0
  492. package/src/lib/util/MdxComponents.tsx +7 -15
  493. package/src/lib/util/groupBy.ts +7 -12
  494. package/src/lib/util/invariant.ts +26 -0
  495. package/src/lib/util/joinPath.tsx +2 -1
  496. package/src/lib/util/logInit.ts +9 -0
  497. package/src/lib/util/objectEntries.ts +5 -0
  498. package/src/lib/util/renderIf.ts +4 -0
  499. package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
  500. package/dist/lib/components/Input.js.map +0 -1
  501. package/dist/lib/components/Link.d.ts +0 -1
  502. package/dist/lib/components/Link.js +0 -2
  503. package/dist/lib/components/Link.js.map +0 -1
  504. package/dist/lib/components/Router.d.ts +0 -4
  505. package/dist/lib/components/Router.js +0 -20
  506. package/dist/lib/components/Router.js.map +0 -1
  507. package/dist/lib/core/helmet.d.ts +0 -4
  508. package/dist/lib/core/helmet.js +0 -5
  509. package/dist/lib/core/helmet.js.map +0 -1
  510. package/dist/lib/core/icons.d.ts +0 -1
  511. package/dist/lib/core/icons.js +0 -2
  512. package/dist/lib/core/icons.js.map +0 -1
  513. package/dist/lib/core/router.d.ts +0 -1
  514. package/dist/lib/core/router.js +0 -2
  515. package/dist/lib/core/router.js.map +0 -1
  516. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  517. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
  518. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  519. package/dist/lib/plugins/api-key/index.js.map +0 -1
  520. package/dist/lib/plugins/index.d.ts +0 -4
  521. package/dist/lib/plugins/index.js +0 -5
  522. package/dist/lib/plugins/index.js.map +0 -1
  523. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  524. package/dist/lib/plugins/openapi/Select.js +0 -5
  525. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  526. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  527. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  528. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  529. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  530. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  531. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  532. package/dist/vite/common.d.ts +0 -1
  533. package/dist/vite/common.js +0 -5
  534. package/dist/vite/common.js.map +0 -1
  535. package/dist/vite/plugin-html.d.ts +0 -3
  536. package/dist/vite/plugin-html.js +0 -47
  537. package/dist/vite/plugin-html.js.map +0 -1
  538. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  539. package/dist/vite/plugin-openapi-worker.js +0 -28
  540. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  541. package/lib/Spinner-BewqqUU-.js +0 -8413
  542. package/lib/clerk-Wslx_mPo.js +0 -19685
  543. package/lib/index-PyGcnQFX.js +0 -3462
  544. package/lib/loglevel-CoH7VSwE.js +0 -152
  545. package/lib/state-2Hu1renZ.js +0 -313
  546. package/lib/zudoku.plugins.js +0 -19902
  547. package/src/lib/components/Link.tsx +0 -1
  548. package/src/lib/components/Router.tsx +0 -28
  549. package/src/lib/core/helmet.ts +0 -5
  550. package/src/lib/core/icons.tsx +0 -1
  551. package/src/lib/core/router.tsx +0 -1
  552. package/src/lib/plugins/index.ts +0 -4
  553. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  554. /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
  555. /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
  556. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
  557. /package/dist/lib/{components → ui}/Input.d.ts +0 -0
  558. /package/dist/lib/{components → ui}/Input.js +0 -0
  559. /package/src/lib/{components → ui}/Input.tsx +0 -0
@@ -0,0 +1,2774 @@
1
+ var wt = (e) => {
2
+ throw TypeError(e);
3
+ };
4
+ var He = (e, t, n) => t.has(e) || wt("Cannot " + n);
5
+ var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), Z = (e, t, n) => (He(e, t, "access private method"), n);
6
+ import { j as P } from "./jsx-runtime-BIr0WBt_.js";
7
+ import * as f from "react";
8
+ import oe, { useLayoutEffect as Nn, useEffect as Dn, useState as kn } from "react";
9
+ import { f as Fn, a as In } from "./Markdown-DsCvZnhw.js";
10
+ import { R as Wn, F as _n, n as Bn } from "./DevPortalProvider-BBhQ8kgI.js";
11
+ import * as Ht from "react-dom";
12
+ import jn from "react-dom";
13
+ const mi = ({
14
+ children: e,
15
+ className: t
16
+ }) => {
17
+ };
18
+ function $n(e, t) {
19
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
20
+ }
21
+ function Vt(...e) {
22
+ return (t) => e.forEach((n) => $n(n, t));
23
+ }
24
+ function se(...e) {
25
+ return f.useCallback(Vt(...e), e);
26
+ }
27
+ var be = f.forwardRef((e, t) => {
28
+ const { children: n, ...r } = e, o = f.Children.toArray(n), i = o.find(Vn);
29
+ if (i) {
30
+ const s = i.props.children, c = o.map((a) => a === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : a);
31
+ return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
32
+ }
33
+ return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: n });
34
+ });
35
+ be.displayName = "Slot";
36
+ var Qe = f.forwardRef((e, t) => {
37
+ const { children: n, ...r } = e;
38
+ if (f.isValidElement(n)) {
39
+ const o = Un(n);
40
+ return f.cloneElement(n, {
41
+ ...zn(r, n.props),
42
+ // @ts-ignore
43
+ ref: t ? Vt(t, o) : o
44
+ });
45
+ }
46
+ return f.Children.count(n) > 1 ? f.Children.only(null) : null;
47
+ });
48
+ Qe.displayName = "SlotClone";
49
+ var Hn = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
50
+ function Vn(e) {
51
+ return f.isValidElement(e) && e.type === Hn;
52
+ }
53
+ function zn(e, t) {
54
+ const n = { ...t };
55
+ for (const r in t) {
56
+ const o = e[r], i = t[r];
57
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...c) => {
58
+ i(...c), o(...c);
59
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
60
+ }
61
+ return { ...e, ...n };
62
+ }
63
+ function Un(e) {
64
+ var r, o;
65
+ let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
66
+ return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
67
+ }
68
+ const Yn = Fn(
69
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
70
+ {
71
+ variants: {
72
+ variant: {
73
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
74
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
75
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
76
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
77
+ ghost: "hover:bg-accent hover:text-accent-foreground",
78
+ link: "text-primary underline-offset-4 hover:underline"
79
+ },
80
+ size: {
81
+ default: "h-9 px-4 py-2",
82
+ sm: "h-8 rounded-md px-3 text-xs",
83
+ lg: "h-10 rounded-md px-8",
84
+ xl: "h-14 rounded-lg px-10 text-lg",
85
+ icon: "h-9 w-9"
86
+ }
87
+ },
88
+ defaultVariants: {
89
+ variant: "default",
90
+ size: "default"
91
+ }
92
+ }
93
+ ), Xn = f.forwardRef(
94
+ ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => {
95
+ const s = r ? be : "button";
96
+ return /* @__PURE__ */ P.jsx(
97
+ s,
98
+ {
99
+ className: In(Yn({ variant: t, size: n, className: e })),
100
+ ref: i,
101
+ ...o
102
+ }
103
+ );
104
+ }
105
+ );
106
+ Xn.displayName = "Button";
107
+ var H, F, ie, V, Q, $t, pi = ($t = class extends Wn {
108
+ constructor(t) {
109
+ super();
110
+ we(this, V);
111
+ we(this, H);
112
+ we(this, F);
113
+ we(this, ie);
114
+ this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state || Kn(), this.setOptions(t.options), this.scheduleGc();
115
+ }
116
+ setOptions(t) {
117
+ this.options = t, this.updateGcTime(this.options.gcTime);
118
+ }
119
+ get meta() {
120
+ return this.options.meta;
121
+ }
122
+ addObserver(t) {
123
+ L(this, H).includes(t) || (L(this, H).push(t), this.clearGcTimeout(), L(this, F).notify({
124
+ type: "observerAdded",
125
+ mutation: this,
126
+ observer: t
127
+ }));
128
+ }
129
+ removeObserver(t) {
130
+ xe(this, H, L(this, H).filter((n) => n !== t)), this.scheduleGc(), L(this, F).notify({
131
+ type: "observerRemoved",
132
+ mutation: this,
133
+ observer: t
134
+ });
135
+ }
136
+ optionalRemove() {
137
+ L(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : L(this, F).remove(this));
138
+ }
139
+ continue() {
140
+ var t;
141
+ return ((t = L(this, ie)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
142
+ this.execute(this.state.variables);
143
+ }
144
+ async execute(t) {
145
+ var o, i, s, c, a, l, h, d, p, m, g, u, v, y, w, b, x, E, C, S;
146
+ xe(this, ie, _n({
147
+ fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
148
+ onFail: (R, O) => {
149
+ Z(this, V, Q).call(this, { type: "failed", failureCount: R, error: O });
150
+ },
151
+ onPause: () => {
152
+ Z(this, V, Q).call(this, { type: "pause" });
153
+ },
154
+ onContinue: () => {
155
+ Z(this, V, Q).call(this, { type: "continue" });
156
+ },
157
+ retry: this.options.retry ?? 0,
158
+ retryDelay: this.options.retryDelay,
159
+ networkMode: this.options.networkMode,
160
+ canRun: () => L(this, F).canRun(this)
161
+ }));
162
+ const n = this.state.status === "pending", r = !L(this, ie).canStart();
163
+ try {
164
+ if (!n) {
165
+ Z(this, V, Q).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, F).config).onMutate) == null ? void 0 : i.call(
166
+ o,
167
+ t,
168
+ this
169
+ ));
170
+ const O = await ((c = (s = this.options).onMutate) == null ? void 0 : c.call(s, t));
171
+ O !== this.state.context && Z(this, V, Q).call(this, {
172
+ type: "pending",
173
+ context: O,
174
+ variables: t,
175
+ isPaused: r
176
+ });
177
+ }
178
+ const R = await L(this, ie).start();
179
+ return await ((l = (a = L(this, F).config).onSuccess) == null ? void 0 : l.call(
180
+ a,
181
+ R,
182
+ t,
183
+ this.state.context,
184
+ this
185
+ )), await ((d = (h = this.options).onSuccess) == null ? void 0 : d.call(h, R, t, this.state.context)), await ((m = (p = L(this, F).config).onSettled) == null ? void 0 : m.call(
186
+ p,
187
+ R,
188
+ null,
189
+ this.state.variables,
190
+ this.state.context,
191
+ this
192
+ )), await ((u = (g = this.options).onSettled) == null ? void 0 : u.call(g, R, null, t, this.state.context)), Z(this, V, Q).call(this, { type: "success", data: R }), R;
193
+ } catch (R) {
194
+ try {
195
+ throw await ((y = (v = L(this, F).config).onError) == null ? void 0 : y.call(
196
+ v,
197
+ R,
198
+ t,
199
+ this.state.context,
200
+ this
201
+ )), await ((b = (w = this.options).onError) == null ? void 0 : b.call(
202
+ w,
203
+ R,
204
+ t,
205
+ this.state.context
206
+ )), await ((E = (x = L(this, F).config).onSettled) == null ? void 0 : E.call(
207
+ x,
208
+ void 0,
209
+ R,
210
+ this.state.variables,
211
+ this.state.context,
212
+ this
213
+ )), await ((S = (C = this.options).onSettled) == null ? void 0 : S.call(
214
+ C,
215
+ void 0,
216
+ R,
217
+ t,
218
+ this.state.context
219
+ )), R;
220
+ } finally {
221
+ Z(this, V, Q).call(this, { type: "error", error: R });
222
+ }
223
+ } finally {
224
+ L(this, F).runNext(this);
225
+ }
226
+ }
227
+ }, H = new WeakMap(), F = new WeakMap(), ie = new WeakMap(), V = new WeakSet(), Q = function(t) {
228
+ const n = (r) => {
229
+ switch (t.type) {
230
+ case "failed":
231
+ return {
232
+ ...r,
233
+ failureCount: t.failureCount,
234
+ failureReason: t.error
235
+ };
236
+ case "pause":
237
+ return {
238
+ ...r,
239
+ isPaused: !0
240
+ };
241
+ case "continue":
242
+ return {
243
+ ...r,
244
+ isPaused: !1
245
+ };
246
+ case "pending":
247
+ return {
248
+ ...r,
249
+ context: t.context,
250
+ data: void 0,
251
+ failureCount: 0,
252
+ failureReason: null,
253
+ error: null,
254
+ isPaused: t.isPaused,
255
+ status: "pending",
256
+ variables: t.variables,
257
+ submittedAt: Date.now()
258
+ };
259
+ case "success":
260
+ return {
261
+ ...r,
262
+ data: t.data,
263
+ failureCount: 0,
264
+ failureReason: null,
265
+ error: null,
266
+ status: "success",
267
+ isPaused: !1
268
+ };
269
+ case "error":
270
+ return {
271
+ ...r,
272
+ data: void 0,
273
+ error: t.error,
274
+ failureCount: r.failureCount + 1,
275
+ failureReason: t.error,
276
+ isPaused: !1,
277
+ status: "error"
278
+ };
279
+ }
280
+ };
281
+ this.state = n(this.state), Bn.batch(() => {
282
+ L(this, H).forEach((r) => {
283
+ r.onMutationUpdate(t);
284
+ }), L(this, F).notify({
285
+ mutation: this,
286
+ type: "updated",
287
+ action: t
288
+ });
289
+ });
290
+ }, $t);
291
+ function Kn() {
292
+ return {
293
+ context: void 0,
294
+ data: void 0,
295
+ error: null,
296
+ failureCount: 0,
297
+ failureReason: null,
298
+ isPaused: !1,
299
+ status: "idle",
300
+ variables: void 0,
301
+ submittedAt: 0
302
+ };
303
+ }
304
+ function Ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
305
+ return function(o) {
306
+ if (e == null || e(o), n === !1 || !o.defaultPrevented)
307
+ return t == null ? void 0 : t(o);
308
+ };
309
+ }
310
+ function vi(e, t) {
311
+ const n = f.createContext(t);
312
+ function r(i) {
313
+ const { children: s, ...c } = i, a = f.useMemo(() => c, Object.values(c));
314
+ return /* @__PURE__ */ P.jsx(n.Provider, { value: a, children: s });
315
+ }
316
+ function o(i) {
317
+ const s = f.useContext(n);
318
+ if (s) return s;
319
+ if (t !== void 0) return t;
320
+ throw new Error(`\`${i}\` must be used within \`${e}\``);
321
+ }
322
+ return r.displayName = e + "Provider", [r, o];
323
+ }
324
+ function zt(e, t = []) {
325
+ let n = [];
326
+ function r(i, s) {
327
+ const c = f.createContext(s), a = n.length;
328
+ n = [...n, s];
329
+ function l(d) {
330
+ const { scope: p, children: m, ...g } = d, u = (p == null ? void 0 : p[e][a]) || c, v = f.useMemo(() => g, Object.values(g));
331
+ return /* @__PURE__ */ P.jsx(u.Provider, { value: v, children: m });
332
+ }
333
+ function h(d, p) {
334
+ const m = (p == null ? void 0 : p[e][a]) || c, g = f.useContext(m);
335
+ if (g) return g;
336
+ if (s !== void 0) return s;
337
+ throw new Error(`\`${d}\` must be used within \`${i}\``);
338
+ }
339
+ return l.displayName = i + "Provider", [l, h];
340
+ }
341
+ const o = () => {
342
+ const i = n.map((s) => f.createContext(s));
343
+ return function(c) {
344
+ const a = (c == null ? void 0 : c[e]) || i;
345
+ return f.useMemo(
346
+ () => ({ [`__scope${e}`]: { ...c, [e]: a } }),
347
+ [c, a]
348
+ );
349
+ };
350
+ };
351
+ return o.scopeName = e, [r, Gn(o, ...t)];
352
+ }
353
+ function Gn(...e) {
354
+ const t = e[0];
355
+ if (e.length === 1) return t;
356
+ const n = () => {
357
+ const r = e.map((o) => ({
358
+ useScope: o(),
359
+ scopeName: o.scopeName
360
+ }));
361
+ return function(i) {
362
+ const s = r.reduce((c, { useScope: a, scopeName: l }) => {
363
+ const d = a(i)[`__scope${l}`];
364
+ return { ...c, ...d };
365
+ }, {});
366
+ return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
367
+ };
368
+ };
369
+ return n.scopeName = t.scopeName, n;
370
+ }
371
+ function ee(e) {
372
+ const t = f.useRef(e);
373
+ return f.useEffect(() => {
374
+ t.current = e;
375
+ }), f.useMemo(() => (...n) => {
376
+ var r;
377
+ return (r = t.current) == null ? void 0 : r.call(t, ...n);
378
+ }, []);
379
+ }
380
+ function gi({
381
+ prop: e,
382
+ defaultProp: t,
383
+ onChange: n = () => {
384
+ }
385
+ }) {
386
+ const [r, o] = qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = f.useCallback(
387
+ (l) => {
388
+ if (i) {
389
+ const d = typeof l == "function" ? l(e) : l;
390
+ d !== e && c(d);
391
+ } else
392
+ o(l);
393
+ },
394
+ [i, e, o, c]
395
+ );
396
+ return [s, a];
397
+ }
398
+ function qn({
399
+ defaultProp: e,
400
+ onChange: t
401
+ }) {
402
+ const n = f.useState(e), [r] = n, o = f.useRef(r), i = ee(t);
403
+ return f.useEffect(() => {
404
+ o.current !== r && (i(r), o.current = r);
405
+ }, [r, o, i]), n;
406
+ }
407
+ var Zn = [
408
+ "a",
409
+ "button",
410
+ "div",
411
+ "form",
412
+ "h2",
413
+ "h3",
414
+ "img",
415
+ "input",
416
+ "label",
417
+ "li",
418
+ "nav",
419
+ "ol",
420
+ "p",
421
+ "span",
422
+ "svg",
423
+ "ul"
424
+ ], ae = Zn.reduce((e, t) => {
425
+ const n = f.forwardRef((r, o) => {
426
+ const { asChild: i, ...s } = r, c = i ? be : t;
427
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(c, { ...s, ref: o });
428
+ });
429
+ return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
430
+ }, {});
431
+ function Qn(e, t) {
432
+ e && Ht.flushSync(() => e.dispatchEvent(t));
433
+ }
434
+ function yi(e) {
435
+ const t = e + "CollectionProvider", [n, r] = zt(t), [o, i] = n(
436
+ t,
437
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
438
+ ), s = (m) => {
439
+ const { scope: g, children: u } = m, v = oe.useRef(null), y = oe.useRef(/* @__PURE__ */ new Map()).current;
440
+ return /* @__PURE__ */ P.jsx(o, { scope: g, itemMap: y, collectionRef: v, children: u });
441
+ };
442
+ s.displayName = t;
443
+ const c = e + "CollectionSlot", a = oe.forwardRef(
444
+ (m, g) => {
445
+ const { scope: u, children: v } = m, y = i(c, u), w = se(g, y.collectionRef);
446
+ return /* @__PURE__ */ P.jsx(be, { ref: w, children: v });
447
+ }
448
+ );
449
+ a.displayName = c;
450
+ const l = e + "CollectionItemSlot", h = "data-radix-collection-item", d = oe.forwardRef(
451
+ (m, g) => {
452
+ const { scope: u, children: v, ...y } = m, w = oe.useRef(null), b = se(g, w), x = i(l, u);
453
+ return oe.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */ P.jsx(be, { [h]: "", ref: b, children: v });
454
+ }
455
+ );
456
+ d.displayName = l;
457
+ function p(m) {
458
+ const g = i(e + "CollectionConsumer", m);
459
+ return oe.useCallback(() => {
460
+ const v = g.collectionRef.current;
461
+ if (!v) return [];
462
+ const y = Array.from(v.querySelectorAll(`[${h}]`));
463
+ return Array.from(g.itemMap.values()).sort(
464
+ (x, E) => y.indexOf(x.ref.current) - y.indexOf(E.ref.current)
465
+ );
466
+ }, [g.collectionRef, g.itemMap]);
467
+ }
468
+ return [
469
+ { Provider: s, Slot: a, ItemSlot: d },
470
+ p,
471
+ r
472
+ ];
473
+ }
474
+ var Jn = f.createContext(void 0);
475
+ function wi(e) {
476
+ const t = f.useContext(Jn);
477
+ return e || t || "ltr";
478
+ }
479
+ function er(e, t = globalThis == null ? void 0 : globalThis.document) {
480
+ const n = ee(e);
481
+ f.useEffect(() => {
482
+ const r = (o) => {
483
+ o.key === "Escape" && n(o);
484
+ };
485
+ return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
486
+ }, [n, t]);
487
+ }
488
+ var tr = "DismissableLayer", Je = "dismissableLayer.update", nr = "dismissableLayer.pointerDownOutside", rr = "dismissableLayer.focusOutside", xt, Ut = f.createContext({
489
+ layers: /* @__PURE__ */ new Set(),
490
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
491
+ branches: /* @__PURE__ */ new Set()
492
+ }), or = f.forwardRef(
493
+ (e, t) => {
494
+ const {
495
+ disableOutsidePointerEvents: n = !1,
496
+ onEscapeKeyDown: r,
497
+ onPointerDownOutside: o,
498
+ onFocusOutside: i,
499
+ onInteractOutside: s,
500
+ onDismiss: c,
501
+ ...a
502
+ } = e, l = f.useContext(Ut), [h, d] = f.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = f.useState({}), g = se(t, (S) => d(S)), u = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(v), w = h ? u.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = cr((S) => {
503
+ const R = S.target, O = [...l.branches].some((D) => D.contains(R));
504
+ !x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
505
+ }, p), C = ar((S) => {
506
+ const R = S.target;
507
+ [...l.branches].some((D) => D.contains(R)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
508
+ }, p);
509
+ return er((S) => {
510
+ w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
511
+ }, p), f.useEffect(() => {
512
+ if (h)
513
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (xt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(h)), l.layers.add(h), bt(), () => {
514
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = xt);
515
+ };
516
+ }, [h, p, n, l]), f.useEffect(() => () => {
517
+ h && (l.layers.delete(h), l.layersWithOutsidePointerEventsDisabled.delete(h), bt());
518
+ }, [h, l]), f.useEffect(() => {
519
+ const S = () => m({});
520
+ return document.addEventListener(Je, S), () => document.removeEventListener(Je, S);
521
+ }, []), /* @__PURE__ */ P.jsx(
522
+ ae.div,
523
+ {
524
+ ...a,
525
+ ref: g,
526
+ style: {
527
+ pointerEvents: b ? x ? "auto" : "none" : void 0,
528
+ ...e.style
529
+ },
530
+ onFocusCapture: Ve(e.onFocusCapture, C.onFocusCapture),
531
+ onBlurCapture: Ve(e.onBlurCapture, C.onBlurCapture),
532
+ onPointerDownCapture: Ve(
533
+ e.onPointerDownCapture,
534
+ E.onPointerDownCapture
535
+ )
536
+ }
537
+ );
538
+ }
539
+ );
540
+ or.displayName = tr;
541
+ var ir = "DismissableLayerBranch", sr = f.forwardRef((e, t) => {
542
+ const n = f.useContext(Ut), r = f.useRef(null), o = se(t, r);
543
+ return f.useEffect(() => {
544
+ const i = r.current;
545
+ if (i)
546
+ return n.branches.add(i), () => {
547
+ n.branches.delete(i);
548
+ };
549
+ }, [n.branches]), /* @__PURE__ */ P.jsx(ae.div, { ...e, ref: o });
550
+ });
551
+ sr.displayName = ir;
552
+ function cr(e, t = globalThis == null ? void 0 : globalThis.document) {
553
+ const n = ee(e), r = f.useRef(!1), o = f.useRef(() => {
554
+ });
555
+ return f.useEffect(() => {
556
+ const i = (c) => {
557
+ if (c.target && !r.current) {
558
+ let a = function() {
559
+ Yt(
560
+ nr,
561
+ n,
562
+ l,
563
+ { discrete: !0 }
564
+ );
565
+ };
566
+ const l = { originalEvent: c };
567
+ c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { once: !0 })) : a();
568
+ } else
569
+ t.removeEventListener("click", o.current);
570
+ r.current = !1;
571
+ }, s = window.setTimeout(() => {
572
+ t.addEventListener("pointerdown", i);
573
+ }, 0);
574
+ return () => {
575
+ window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
576
+ };
577
+ }, [t, n]), {
578
+ // ensures we check React component tree (not just DOM tree)
579
+ onPointerDownCapture: () => r.current = !0
580
+ };
581
+ }
582
+ function ar(e, t = globalThis == null ? void 0 : globalThis.document) {
583
+ const n = ee(e), r = f.useRef(!1);
584
+ return f.useEffect(() => {
585
+ const o = (i) => {
586
+ i.target && !r.current && Yt(rr, n, { originalEvent: i }, {
587
+ discrete: !1
588
+ });
589
+ };
590
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
591
+ }, [t, n]), {
592
+ onFocusCapture: () => r.current = !0,
593
+ onBlurCapture: () => r.current = !1
594
+ };
595
+ }
596
+ function bt() {
597
+ const e = new CustomEvent(Je);
598
+ document.dispatchEvent(e);
599
+ }
600
+ function Yt(e, t, n, { discrete: r }) {
601
+ const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
602
+ t && o.addEventListener(e, t, { once: !0 }), r ? Qn(o, i) : o.dispatchEvent(i);
603
+ }
604
+ var ze = 0;
605
+ function xi() {
606
+ f.useEffect(() => {
607
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
608
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Et()), document.body.insertAdjacentElement("beforeend", e[1] ?? Et()), ze++, () => {
609
+ ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
610
+ };
611
+ }, []);
612
+ }
613
+ function Et() {
614
+ const e = document.createElement("span");
615
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
616
+ }
617
+ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, lr = "FocusScope", ur = f.forwardRef((e, t) => {
618
+ const {
619
+ loop: n = !1,
620
+ trapped: r = !1,
621
+ onMountAutoFocus: o,
622
+ onUnmountAutoFocus: i,
623
+ ...s
624
+ } = e, [c, a] = f.useState(null), l = ee(o), h = ee(i), d = f.useRef(null), p = se(t, (u) => a(u)), m = f.useRef({
625
+ paused: !1,
626
+ pause() {
627
+ this.paused = !0;
628
+ },
629
+ resume() {
630
+ this.paused = !1;
631
+ }
632
+ }).current;
633
+ f.useEffect(() => {
634
+ if (r) {
635
+ let u = function(b) {
636
+ if (m.paused || !c) return;
637
+ const x = b.target;
638
+ c.contains(x) ? d.current = x : J(d.current, { select: !0 });
639
+ }, v = function(b) {
640
+ if (m.paused || !c) return;
641
+ const x = b.relatedTarget;
642
+ x !== null && (c.contains(x) || J(d.current, { select: !0 }));
643
+ }, y = function(b) {
644
+ if (document.activeElement === document.body)
645
+ for (const E of b)
646
+ E.removedNodes.length > 0 && J(c);
647
+ };
648
+ document.addEventListener("focusin", u), document.addEventListener("focusout", v);
649
+ const w = new MutationObserver(y);
650
+ return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
651
+ document.removeEventListener("focusin", u), document.removeEventListener("focusout", v), w.disconnect();
652
+ };
653
+ }
654
+ }, [r, c, m.paused]), f.useEffect(() => {
655
+ if (c) {
656
+ Rt.add(m);
657
+ const u = document.activeElement;
658
+ if (!c.contains(u)) {
659
+ const y = new CustomEvent(Ue, Ct);
660
+ c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (fr(vr(Xt(c)), { select: !0 }), document.activeElement === u && J(c));
661
+ }
662
+ return () => {
663
+ c.removeEventListener(Ue, l), setTimeout(() => {
664
+ const y = new CustomEvent(Ye, Ct);
665
+ c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(u ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), Rt.remove(m);
666
+ }, 0);
667
+ };
668
+ }
669
+ }, [c, l, h, m]);
670
+ const g = f.useCallback(
671
+ (u) => {
672
+ if (!n && !r || m.paused) return;
673
+ const v = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, y = document.activeElement;
674
+ if (v && y) {
675
+ const w = u.currentTarget, [b, x] = dr(w);
676
+ b && x ? !u.shiftKey && y === x ? (u.preventDefault(), n && J(b, { select: !0 })) : u.shiftKey && y === b && (u.preventDefault(), n && J(x, { select: !0 })) : y === w && u.preventDefault();
677
+ }
678
+ },
679
+ [n, r, m.paused]
680
+ );
681
+ return /* @__PURE__ */ P.jsx(ae.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
682
+ });
683
+ ur.displayName = lr;
684
+ function fr(e, { select: t = !1 } = {}) {
685
+ const n = document.activeElement;
686
+ for (const r of e)
687
+ if (J(r, { select: t }), document.activeElement !== n) return;
688
+ }
689
+ function dr(e) {
690
+ const t = Xt(e), n = St(t, e), r = St(t.reverse(), e);
691
+ return [n, r];
692
+ }
693
+ function Xt(e) {
694
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
695
+ acceptNode: (r) => {
696
+ const o = r.tagName === "INPUT" && r.type === "hidden";
697
+ return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
698
+ }
699
+ });
700
+ for (; n.nextNode(); ) t.push(n.currentNode);
701
+ return t;
702
+ }
703
+ function St(e, t) {
704
+ for (const n of e)
705
+ if (!hr(n, { upTo: t })) return n;
706
+ }
707
+ function hr(e, { upTo: t }) {
708
+ if (getComputedStyle(e).visibility === "hidden") return !0;
709
+ for (; e; ) {
710
+ if (t !== void 0 && e === t) return !1;
711
+ if (getComputedStyle(e).display === "none") return !0;
712
+ e = e.parentElement;
713
+ }
714
+ return !1;
715
+ }
716
+ function mr(e) {
717
+ return e instanceof HTMLInputElement && "select" in e;
718
+ }
719
+ function J(e, { select: t = !1 } = {}) {
720
+ if (e && e.focus) {
721
+ const n = document.activeElement;
722
+ e.focus({ preventScroll: !0 }), e !== n && mr(e) && t && e.select();
723
+ }
724
+ }
725
+ var Rt = pr();
726
+ function pr() {
727
+ let e = [];
728
+ return {
729
+ add(t) {
730
+ const n = e[0];
731
+ t !== n && (n == null || n.pause()), e = At(e, t), e.unshift(t);
732
+ },
733
+ remove(t) {
734
+ var n;
735
+ e = At(e, t), (n = e[0]) == null || n.resume();
736
+ }
737
+ };
738
+ }
739
+ function At(e, t) {
740
+ const n = [...e], r = n.indexOf(t);
741
+ return r !== -1 && n.splice(r, 1), n;
742
+ }
743
+ function vr(e) {
744
+ return e.filter((t) => t.tagName !== "A");
745
+ }
746
+ var Ee = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
747
+ }, gr = f.useId || (() => {
748
+ }), yr = 0;
749
+ function bi(e) {
750
+ const [t, n] = f.useState(gr());
751
+ return Ee(() => {
752
+ n((r) => r ?? String(yr++));
753
+ }, [e]), t ? `radix-${t}` : "";
754
+ }
755
+ const wr = ["top", "right", "bottom", "left"], te = Math.min, _ = Math.max, Ie = Math.round, Oe = Math.floor, ne = (e) => ({
756
+ x: e,
757
+ y: e
758
+ }), xr = {
759
+ left: "right",
760
+ right: "left",
761
+ bottom: "top",
762
+ top: "bottom"
763
+ }, br = {
764
+ start: "end",
765
+ end: "start"
766
+ };
767
+ function et(e, t, n) {
768
+ return _(e, te(t, n));
769
+ }
770
+ function K(e, t) {
771
+ return typeof e == "function" ? e(t) : e;
772
+ }
773
+ function G(e) {
774
+ return e.split("-")[0];
775
+ }
776
+ function pe(e) {
777
+ return e.split("-")[1];
778
+ }
779
+ function rt(e) {
780
+ return e === "x" ? "y" : "x";
781
+ }
782
+ function ot(e) {
783
+ return e === "y" ? "height" : "width";
784
+ }
785
+ function ve(e) {
786
+ return ["top", "bottom"].includes(G(e)) ? "y" : "x";
787
+ }
788
+ function it(e) {
789
+ return rt(ve(e));
790
+ }
791
+ function Er(e, t, n) {
792
+ n === void 0 && (n = !1);
793
+ const r = pe(e), o = it(e), i = ot(o);
794
+ let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
795
+ return t.reference[i] > t.floating[i] && (s = We(s)), [s, We(s)];
796
+ }
797
+ function Cr(e) {
798
+ const t = We(e);
799
+ return [tt(e), t, tt(t)];
800
+ }
801
+ function tt(e) {
802
+ return e.replace(/start|end/g, (t) => br[t]);
803
+ }
804
+ function Sr(e, t, n) {
805
+ const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
806
+ switch (e) {
807
+ case "top":
808
+ case "bottom":
809
+ return n ? t ? o : r : t ? r : o;
810
+ case "left":
811
+ case "right":
812
+ return t ? i : s;
813
+ default:
814
+ return [];
815
+ }
816
+ }
817
+ function Rr(e, t, n, r) {
818
+ const o = pe(e);
819
+ let i = Sr(G(e), n === "start", r);
820
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
821
+ }
822
+ function We(e) {
823
+ return e.replace(/left|right|bottom|top/g, (t) => xr[t]);
824
+ }
825
+ function Ar(e) {
826
+ return {
827
+ top: 0,
828
+ right: 0,
829
+ bottom: 0,
830
+ left: 0,
831
+ ...e
832
+ };
833
+ }
834
+ function Kt(e) {
835
+ return typeof e != "number" ? Ar(e) : {
836
+ top: e,
837
+ right: e,
838
+ bottom: e,
839
+ left: e
840
+ };
841
+ }
842
+ function _e(e) {
843
+ const {
844
+ x: t,
845
+ y: n,
846
+ width: r,
847
+ height: o
848
+ } = e;
849
+ return {
850
+ width: r,
851
+ height: o,
852
+ top: n,
853
+ left: t,
854
+ right: t + r,
855
+ bottom: n + o,
856
+ x: t,
857
+ y: n
858
+ };
859
+ }
860
+ function Pt(e, t, n) {
861
+ let {
862
+ reference: r,
863
+ floating: o
864
+ } = e;
865
+ const i = ve(t), s = it(t), c = ot(s), a = G(t), l = i === "y", h = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
866
+ let m;
867
+ switch (a) {
868
+ case "top":
869
+ m = {
870
+ x: h,
871
+ y: r.y - o.height
872
+ };
873
+ break;
874
+ case "bottom":
875
+ m = {
876
+ x: h,
877
+ y: r.y + r.height
878
+ };
879
+ break;
880
+ case "right":
881
+ m = {
882
+ x: r.x + r.width,
883
+ y: d
884
+ };
885
+ break;
886
+ case "left":
887
+ m = {
888
+ x: r.x - o.width,
889
+ y: d
890
+ };
891
+ break;
892
+ default:
893
+ m = {
894
+ x: r.x,
895
+ y: r.y
896
+ };
897
+ }
898
+ switch (pe(t)) {
899
+ case "start":
900
+ m[s] -= p * (n && l ? -1 : 1);
901
+ break;
902
+ case "end":
903
+ m[s] += p * (n && l ? -1 : 1);
904
+ break;
905
+ }
906
+ return m;
907
+ }
908
+ const Pr = async (e, t, n) => {
909
+ const {
910
+ placement: r = "bottom",
911
+ strategy: o = "absolute",
912
+ middleware: i = [],
913
+ platform: s
914
+ } = n, c = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
915
+ let l = await s.getElementRects({
916
+ reference: e,
917
+ floating: t,
918
+ strategy: o
919
+ }), {
920
+ x: h,
921
+ y: d
922
+ } = Pt(l, r, a), p = r, m = {}, g = 0;
923
+ for (let u = 0; u < c.length; u++) {
924
+ const {
925
+ name: v,
926
+ fn: y
927
+ } = c[u], {
928
+ x: w,
929
+ y: b,
930
+ data: x,
931
+ reset: E
932
+ } = await y({
933
+ x: h,
934
+ y: d,
935
+ initialPlacement: r,
936
+ placement: p,
937
+ strategy: o,
938
+ middlewareData: m,
939
+ rects: l,
940
+ platform: s,
941
+ elements: {
942
+ reference: e,
943
+ floating: t
944
+ }
945
+ });
946
+ h = w ?? h, d = b ?? d, m = {
947
+ ...m,
948
+ [v]: {
949
+ ...m[v],
950
+ ...x
951
+ }
952
+ }, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
953
+ reference: e,
954
+ floating: t,
955
+ strategy: o
956
+ }) : E.rects), {
957
+ x: h,
958
+ y: d
959
+ } = Pt(l, p, a)), u = -1);
960
+ }
961
+ return {
962
+ x: h,
963
+ y: d,
964
+ placement: p,
965
+ strategy: o,
966
+ middlewareData: m
967
+ };
968
+ };
969
+ async function Ce(e, t) {
970
+ var n;
971
+ t === void 0 && (t = {});
972
+ const {
973
+ x: r,
974
+ y: o,
975
+ platform: i,
976
+ rects: s,
977
+ elements: c,
978
+ strategy: a
979
+ } = e, {
980
+ boundary: l = "clippingAncestors",
981
+ rootBoundary: h = "viewport",
982
+ elementContext: d = "floating",
983
+ altBoundary: p = !1,
984
+ padding: m = 0
985
+ } = K(t, e), g = Kt(m), v = c[p ? d === "floating" ? "reference" : "floating" : d], y = _e(await i.getClippingRect({
986
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
987
+ boundary: l,
988
+ rootBoundary: h,
989
+ strategy: a
990
+ })), w = d === "floating" ? {
991
+ x: r,
992
+ y: o,
993
+ width: s.floating.width,
994
+ height: s.floating.height
995
+ } : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), x = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
996
+ x: 1,
997
+ y: 1
998
+ } : {
999
+ x: 1,
1000
+ y: 1
1001
+ }, E = _e(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1002
+ elements: c,
1003
+ rect: w,
1004
+ offsetParent: b,
1005
+ strategy: a
1006
+ }) : w);
1007
+ return {
1008
+ top: (y.top - E.top + g.top) / x.y,
1009
+ bottom: (E.bottom - y.bottom + g.bottom) / x.y,
1010
+ left: (y.left - E.left + g.left) / x.x,
1011
+ right: (E.right - y.right + g.right) / x.x
1012
+ };
1013
+ }
1014
+ const Or = (e) => ({
1015
+ name: "arrow",
1016
+ options: e,
1017
+ async fn(t) {
1018
+ const {
1019
+ x: n,
1020
+ y: r,
1021
+ placement: o,
1022
+ rects: i,
1023
+ platform: s,
1024
+ elements: c,
1025
+ middlewareData: a
1026
+ } = t, {
1027
+ element: l,
1028
+ padding: h = 0
1029
+ } = K(e, t) || {};
1030
+ if (l == null)
1031
+ return {};
1032
+ const d = Kt(h), p = {
1033
+ x: n,
1034
+ y: r
1035
+ }, m = it(o), g = ot(m), u = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1036
+ let S = C ? C[b] : 0;
1037
+ (!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[g]);
1038
+ const R = x / 2 - E / 2, O = S / 2 - u[g] / 2 - 1, D = te(d[y], O), j = te(d[w], O), M = D, I = S - u[g] - j, N = S / 2 - u[g] / 2 + R, T = et(M, N, I), k = !a.arrow && pe(o) != null && N !== T && i.reference[g] / 2 - (N < M ? D : j) - u[g] / 2 < 0, A = k ? N < M ? N - M : N - I : 0;
1039
+ return {
1040
+ [m]: p[m] + A,
1041
+ data: {
1042
+ [m]: T,
1043
+ centerOffset: N - T - A,
1044
+ ...k && {
1045
+ alignmentOffset: A
1046
+ }
1047
+ },
1048
+ reset: k
1049
+ };
1050
+ }
1051
+ }), Tr = function(e) {
1052
+ return e === void 0 && (e = {}), {
1053
+ name: "flip",
1054
+ options: e,
1055
+ async fn(t) {
1056
+ var n, r;
1057
+ const {
1058
+ placement: o,
1059
+ middlewareData: i,
1060
+ rects: s,
1061
+ initialPlacement: c,
1062
+ platform: a,
1063
+ elements: l
1064
+ } = t, {
1065
+ mainAxis: h = !0,
1066
+ crossAxis: d = !0,
1067
+ fallbackPlacements: p,
1068
+ fallbackStrategy: m = "bestFit",
1069
+ fallbackAxisSideDirection: g = "none",
1070
+ flipAlignment: u = !0,
1071
+ ...v
1072
+ } = K(e, t);
1073
+ if ((n = i.arrow) != null && n.alignmentOffset)
1074
+ return {};
1075
+ const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !u ? [We(c)] : Cr(c));
1076
+ !p && g !== "none" && x.push(...Rr(c, u, g, b));
1077
+ const E = [c, ...x], C = await Ce(t, v), S = [];
1078
+ let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1079
+ if (h && S.push(C[y]), d) {
1080
+ const M = Er(o, s, b);
1081
+ S.push(C[M[0]], C[M[1]]);
1082
+ }
1083
+ if (R = [...R, {
1084
+ placement: o,
1085
+ overflows: S
1086
+ }], !S.every((M) => M <= 0)) {
1087
+ var O, D;
1088
+ const M = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, I = E[M];
1089
+ if (I)
1090
+ return {
1091
+ data: {
1092
+ index: M,
1093
+ overflows: R
1094
+ },
1095
+ reset: {
1096
+ placement: I
1097
+ }
1098
+ };
1099
+ let N = (D = R.filter((T) => T.overflows[0] <= 0).sort((T, k) => T.overflows[1] - k.overflows[1])[0]) == null ? void 0 : D.placement;
1100
+ if (!N)
1101
+ switch (m) {
1102
+ case "bestFit": {
1103
+ var j;
1104
+ const T = (j = R.map((k) => [k.placement, k.overflows.filter((A) => A > 0).reduce((A, W) => A + W, 0)]).sort((k, A) => k[1] - A[1])[0]) == null ? void 0 : j[0];
1105
+ T && (N = T);
1106
+ break;
1107
+ }
1108
+ case "initialPlacement":
1109
+ N = c;
1110
+ break;
1111
+ }
1112
+ if (o !== N)
1113
+ return {
1114
+ reset: {
1115
+ placement: N
1116
+ }
1117
+ };
1118
+ }
1119
+ return {};
1120
+ }
1121
+ };
1122
+ };
1123
+ function Ot(e, t) {
1124
+ return {
1125
+ top: e.top - t.height,
1126
+ right: e.right - t.width,
1127
+ bottom: e.bottom - t.height,
1128
+ left: e.left - t.width
1129
+ };
1130
+ }
1131
+ function Tt(e) {
1132
+ return wr.some((t) => e[t] >= 0);
1133
+ }
1134
+ const Mr = function(e) {
1135
+ return e === void 0 && (e = {}), {
1136
+ name: "hide",
1137
+ options: e,
1138
+ async fn(t) {
1139
+ const {
1140
+ rects: n
1141
+ } = t, {
1142
+ strategy: r = "referenceHidden",
1143
+ ...o
1144
+ } = K(e, t);
1145
+ switch (r) {
1146
+ case "referenceHidden": {
1147
+ const i = await Ce(t, {
1148
+ ...o,
1149
+ elementContext: "reference"
1150
+ }), s = Ot(i, n.reference);
1151
+ return {
1152
+ data: {
1153
+ referenceHiddenOffsets: s,
1154
+ referenceHidden: Tt(s)
1155
+ }
1156
+ };
1157
+ }
1158
+ case "escaped": {
1159
+ const i = await Ce(t, {
1160
+ ...o,
1161
+ altBoundary: !0
1162
+ }), s = Ot(i, n.floating);
1163
+ return {
1164
+ data: {
1165
+ escapedOffsets: s,
1166
+ escaped: Tt(s)
1167
+ }
1168
+ };
1169
+ }
1170
+ default:
1171
+ return {};
1172
+ }
1173
+ }
1174
+ };
1175
+ };
1176
+ async function Lr(e, t) {
1177
+ const {
1178
+ placement: n,
1179
+ platform: r,
1180
+ elements: o
1181
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = G(n), c = pe(n), a = ve(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, h = i && a ? -1 : 1, d = K(t, e);
1182
+ let {
1183
+ mainAxis: p,
1184
+ crossAxis: m,
1185
+ alignmentAxis: g
1186
+ } = typeof d == "number" ? {
1187
+ mainAxis: d,
1188
+ crossAxis: 0,
1189
+ alignmentAxis: null
1190
+ } : {
1191
+ mainAxis: 0,
1192
+ crossAxis: 0,
1193
+ alignmentAxis: null,
1194
+ ...d
1195
+ };
1196
+ return c && typeof g == "number" && (m = c === "end" ? g * -1 : g), a ? {
1197
+ x: m * h,
1198
+ y: p * l
1199
+ } : {
1200
+ x: p * l,
1201
+ y: m * h
1202
+ };
1203
+ }
1204
+ const Nr = function(e) {
1205
+ return e === void 0 && (e = 0), {
1206
+ name: "offset",
1207
+ options: e,
1208
+ async fn(t) {
1209
+ var n, r;
1210
+ const {
1211
+ x: o,
1212
+ y: i,
1213
+ placement: s,
1214
+ middlewareData: c
1215
+ } = t, a = await Lr(t, e);
1216
+ return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
1217
+ x: o + a.x,
1218
+ y: i + a.y,
1219
+ data: {
1220
+ ...a,
1221
+ placement: s
1222
+ }
1223
+ };
1224
+ }
1225
+ };
1226
+ }, Dr = function(e) {
1227
+ return e === void 0 && (e = {}), {
1228
+ name: "shift",
1229
+ options: e,
1230
+ async fn(t) {
1231
+ const {
1232
+ x: n,
1233
+ y: r,
1234
+ placement: o
1235
+ } = t, {
1236
+ mainAxis: i = !0,
1237
+ crossAxis: s = !1,
1238
+ limiter: c = {
1239
+ fn: (v) => {
1240
+ let {
1241
+ x: y,
1242
+ y: w
1243
+ } = v;
1244
+ return {
1245
+ x: y,
1246
+ y: w
1247
+ };
1248
+ }
1249
+ },
1250
+ ...a
1251
+ } = K(e, t), l = {
1252
+ x: n,
1253
+ y: r
1254
+ }, h = await Ce(t, a), d = ve(G(o)), p = rt(d);
1255
+ let m = l[p], g = l[d];
1256
+ if (i) {
1257
+ const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = m + h[v], b = m - h[y];
1258
+ m = et(w, m, b);
1259
+ }
1260
+ if (s) {
1261
+ const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = g + h[v], b = g - h[y];
1262
+ g = et(w, g, b);
1263
+ }
1264
+ const u = c.fn({
1265
+ ...t,
1266
+ [p]: m,
1267
+ [d]: g
1268
+ });
1269
+ return {
1270
+ ...u,
1271
+ data: {
1272
+ x: u.x - n,
1273
+ y: u.y - r
1274
+ }
1275
+ };
1276
+ }
1277
+ };
1278
+ }, kr = function(e) {
1279
+ return e === void 0 && (e = {}), {
1280
+ options: e,
1281
+ fn(t) {
1282
+ const {
1283
+ x: n,
1284
+ y: r,
1285
+ placement: o,
1286
+ rects: i,
1287
+ middlewareData: s
1288
+ } = t, {
1289
+ offset: c = 0,
1290
+ mainAxis: a = !0,
1291
+ crossAxis: l = !0
1292
+ } = K(e, t), h = {
1293
+ x: n,
1294
+ y: r
1295
+ }, d = ve(o), p = rt(d);
1296
+ let m = h[p], g = h[d];
1297
+ const u = K(c, t), v = typeof u == "number" ? {
1298
+ mainAxis: u,
1299
+ crossAxis: 0
1300
+ } : {
1301
+ mainAxis: 0,
1302
+ crossAxis: 0,
1303
+ ...u
1304
+ };
1305
+ if (a) {
1306
+ const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + v.mainAxis, E = i.reference[p] + i.reference[b] - v.mainAxis;
1307
+ m < x ? m = x : m > E && (m = E);
1308
+ }
1309
+ if (l) {
1310
+ var y, w;
1311
+ const b = p === "y" ? "width" : "height", x = ["top", "left"].includes(G(o)), E = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : v.crossAxis), C = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? v.crossAxis : 0);
1312
+ g < E ? g = E : g > C && (g = C);
1313
+ }
1314
+ return {
1315
+ [p]: m,
1316
+ [d]: g
1317
+ };
1318
+ }
1319
+ };
1320
+ }, Fr = function(e) {
1321
+ return e === void 0 && (e = {}), {
1322
+ name: "size",
1323
+ options: e,
1324
+ async fn(t) {
1325
+ const {
1326
+ placement: n,
1327
+ rects: r,
1328
+ platform: o,
1329
+ elements: i
1330
+ } = t, {
1331
+ apply: s = () => {
1332
+ },
1333
+ ...c
1334
+ } = K(e, t), a = await Ce(t, c), l = G(n), h = pe(n), d = ve(n) === "y", {
1335
+ width: p,
1336
+ height: m
1337
+ } = r.floating;
1338
+ let g, u;
1339
+ l === "top" || l === "bottom" ? (g = l, u = h === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (u = l, g = h === "end" ? "top" : "bottom");
1340
+ const v = m - a[g], y = p - a[u], w = !t.middlewareData.shift;
1341
+ let b = v, x = y;
1342
+ if (d) {
1343
+ const C = p - a.left - a.right;
1344
+ x = h || w ? te(y, C) : C;
1345
+ } else {
1346
+ const C = m - a.top - a.bottom;
1347
+ b = h || w ? te(v, C) : C;
1348
+ }
1349
+ if (w && !h) {
1350
+ const C = _(a.left, 0), S = _(a.right, 0), R = _(a.top, 0), O = _(a.bottom, 0);
1351
+ d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S : _(a.left, a.right)) : b = m - 2 * (R !== 0 || O !== 0 ? R + O : _(a.top, a.bottom));
1352
+ }
1353
+ await s({
1354
+ ...t,
1355
+ availableWidth: x,
1356
+ availableHeight: b
1357
+ });
1358
+ const E = await o.getDimensions(i.floating);
1359
+ return p !== E.width || m !== E.height ? {
1360
+ reset: {
1361
+ rects: !0
1362
+ }
1363
+ } : {};
1364
+ }
1365
+ };
1366
+ };
1367
+ function ge(e) {
1368
+ return Gt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1369
+ }
1370
+ function B(e) {
1371
+ var t;
1372
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1373
+ }
1374
+ function q(e) {
1375
+ var t;
1376
+ return (t = (Gt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1377
+ }
1378
+ function Gt(e) {
1379
+ return e instanceof Node || e instanceof B(e).Node;
1380
+ }
1381
+ function U(e) {
1382
+ return e instanceof Element || e instanceof B(e).Element;
1383
+ }
1384
+ function Y(e) {
1385
+ return e instanceof HTMLElement || e instanceof B(e).HTMLElement;
1386
+ }
1387
+ function Mt(e) {
1388
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
1389
+ }
1390
+ function Re(e) {
1391
+ const {
1392
+ overflow: t,
1393
+ overflowX: n,
1394
+ overflowY: r,
1395
+ display: o
1396
+ } = $(e);
1397
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1398
+ }
1399
+ function Ir(e) {
1400
+ return ["table", "td", "th"].includes(ge(e));
1401
+ }
1402
+ function st(e) {
1403
+ const t = ct(), n = $(e);
1404
+ return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1405
+ }
1406
+ function Wr(e) {
1407
+ let t = re(e);
1408
+ for (; Y(t) && !me(t); ) {
1409
+ if (st(t))
1410
+ return t;
1411
+ t = re(t);
1412
+ }
1413
+ return null;
1414
+ }
1415
+ function ct() {
1416
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1417
+ }
1418
+ function me(e) {
1419
+ return ["html", "body", "#document"].includes(ge(e));
1420
+ }
1421
+ function $(e) {
1422
+ return B(e).getComputedStyle(e);
1423
+ }
1424
+ function je(e) {
1425
+ return U(e) ? {
1426
+ scrollLeft: e.scrollLeft,
1427
+ scrollTop: e.scrollTop
1428
+ } : {
1429
+ scrollLeft: e.pageXOffset,
1430
+ scrollTop: e.pageYOffset
1431
+ };
1432
+ }
1433
+ function re(e) {
1434
+ if (ge(e) === "html")
1435
+ return e;
1436
+ const t = (
1437
+ // Step into the shadow DOM of the parent of a slotted node.
1438
+ e.assignedSlot || // DOM Element detected.
1439
+ e.parentNode || // ShadowRoot detected.
1440
+ Mt(e) && e.host || // Fallback.
1441
+ q(e)
1442
+ );
1443
+ return Mt(t) ? t.host : t;
1444
+ }
1445
+ function qt(e) {
1446
+ const t = re(e);
1447
+ return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Re(t) ? t : qt(t);
1448
+ }
1449
+ function Se(e, t, n) {
1450
+ var r;
1451
+ t === void 0 && (t = []), n === void 0 && (n = !0);
1452
+ const o = qt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
1453
+ return i ? t.concat(s, s.visualViewport || [], Re(o) ? o : [], s.frameElement && n ? Se(s.frameElement) : []) : t.concat(o, Se(o, [], n));
1454
+ }
1455
+ function Zt(e) {
1456
+ const t = $(e);
1457
+ let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1458
+ const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Ie(n) !== i || Ie(r) !== s;
1459
+ return c && (n = i, r = s), {
1460
+ width: n,
1461
+ height: r,
1462
+ $: c
1463
+ };
1464
+ }
1465
+ function at(e) {
1466
+ return U(e) ? e : e.contextElement;
1467
+ }
1468
+ function de(e) {
1469
+ const t = at(e);
1470
+ if (!Y(t))
1471
+ return ne(1);
1472
+ const n = t.getBoundingClientRect(), {
1473
+ width: r,
1474
+ height: o,
1475
+ $: i
1476
+ } = Zt(t);
1477
+ let s = (i ? Ie(n.width) : n.width) / r, c = (i ? Ie(n.height) : n.height) / o;
1478
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1479
+ x: s,
1480
+ y: c
1481
+ };
1482
+ }
1483
+ const _r = /* @__PURE__ */ ne(0);
1484
+ function Qt(e) {
1485
+ const t = B(e);
1486
+ return !ct() || !t.visualViewport ? _r : {
1487
+ x: t.visualViewport.offsetLeft,
1488
+ y: t.visualViewport.offsetTop
1489
+ };
1490
+ }
1491
+ function Br(e, t, n) {
1492
+ return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
1493
+ }
1494
+ function ce(e, t, n, r) {
1495
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
1496
+ const o = e.getBoundingClientRect(), i = at(e);
1497
+ let s = ne(1);
1498
+ t && (r ? U(r) && (s = de(r)) : s = de(e));
1499
+ const c = Br(i, n, r) ? Qt(i) : ne(0);
1500
+ let a = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, h = o.width / s.x, d = o.height / s.y;
1501
+ if (i) {
1502
+ const p = B(i), m = r && U(r) ? B(r) : r;
1503
+ let g = p, u = g.frameElement;
1504
+ for (; u && r && m !== g; ) {
1505
+ const v = de(u), y = u.getBoundingClientRect(), w = $(u), b = y.left + (u.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = y.top + (u.clientTop + parseFloat(w.paddingTop)) * v.y;
1506
+ a *= v.x, l *= v.y, h *= v.x, d *= v.y, a += b, l += x, g = B(u), u = g.frameElement;
1507
+ }
1508
+ }
1509
+ return _e({
1510
+ width: h,
1511
+ height: d,
1512
+ x: a,
1513
+ y: l
1514
+ });
1515
+ }
1516
+ const jr = [":popover-open", ":modal"];
1517
+ function lt(e) {
1518
+ return jr.some((t) => {
1519
+ try {
1520
+ return e.matches(t);
1521
+ } catch {
1522
+ return !1;
1523
+ }
1524
+ });
1525
+ }
1526
+ function $r(e) {
1527
+ let {
1528
+ elements: t,
1529
+ rect: n,
1530
+ offsetParent: r,
1531
+ strategy: o
1532
+ } = e;
1533
+ const i = o === "fixed", s = q(r), c = t ? lt(t.floating) : !1;
1534
+ if (r === s || c && i)
1535
+ return n;
1536
+ let a = {
1537
+ scrollLeft: 0,
1538
+ scrollTop: 0
1539
+ }, l = ne(1);
1540
+ const h = ne(0), d = Y(r);
1541
+ if ((d || !d && !i) && ((ge(r) !== "body" || Re(s)) && (a = je(r)), Y(r))) {
1542
+ const p = ce(r);
1543
+ l = de(r), h.x = p.x + r.clientLeft, h.y = p.y + r.clientTop;
1544
+ }
1545
+ return {
1546
+ width: n.width * l.x,
1547
+ height: n.height * l.y,
1548
+ x: n.x * l.x - a.scrollLeft * l.x + h.x,
1549
+ y: n.y * l.y - a.scrollTop * l.y + h.y
1550
+ };
1551
+ }
1552
+ function Hr(e) {
1553
+ return Array.from(e.getClientRects());
1554
+ }
1555
+ function Jt(e) {
1556
+ return ce(q(e)).left + je(e).scrollLeft;
1557
+ }
1558
+ function Vr(e) {
1559
+ const t = q(e), n = je(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1560
+ let s = -n.scrollLeft + Jt(e);
1561
+ const c = -n.scrollTop;
1562
+ return $(r).direction === "rtl" && (s += _(t.clientWidth, r.clientWidth) - o), {
1563
+ width: o,
1564
+ height: i,
1565
+ x: s,
1566
+ y: c
1567
+ };
1568
+ }
1569
+ function zr(e, t) {
1570
+ const n = B(e), r = q(e), o = n.visualViewport;
1571
+ let i = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
1572
+ if (o) {
1573
+ i = o.width, s = o.height;
1574
+ const l = ct();
1575
+ (!l || l && t === "fixed") && (c = o.offsetLeft, a = o.offsetTop);
1576
+ }
1577
+ return {
1578
+ width: i,
1579
+ height: s,
1580
+ x: c,
1581
+ y: a
1582
+ };
1583
+ }
1584
+ function Ur(e, t) {
1585
+ const n = ce(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? de(e) : ne(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, l = r * i.y;
1586
+ return {
1587
+ width: s,
1588
+ height: c,
1589
+ x: a,
1590
+ y: l
1591
+ };
1592
+ }
1593
+ function Lt(e, t, n) {
1594
+ let r;
1595
+ if (t === "viewport")
1596
+ r = zr(e, n);
1597
+ else if (t === "document")
1598
+ r = Vr(q(e));
1599
+ else if (U(t))
1600
+ r = Ur(t, n);
1601
+ else {
1602
+ const o = Qt(e);
1603
+ r = {
1604
+ ...t,
1605
+ x: t.x - o.x,
1606
+ y: t.y - o.y
1607
+ };
1608
+ }
1609
+ return _e(r);
1610
+ }
1611
+ function en(e, t) {
1612
+ const n = re(e);
1613
+ return n === t || !U(n) || me(n) ? !1 : $(n).position === "fixed" || en(n, t);
1614
+ }
1615
+ function Yr(e, t) {
1616
+ const n = t.get(e);
1617
+ if (n)
1618
+ return n;
1619
+ let r = Se(e, [], !1).filter((c) => U(c) && ge(c) !== "body"), o = null;
1620
+ const i = $(e).position === "fixed";
1621
+ let s = i ? re(e) : e;
1622
+ for (; U(s) && !me(s); ) {
1623
+ const c = $(s), a = st(s);
1624
+ !a && c.position === "fixed" && (o = null), (i ? !a && !o : !a && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Re(s) && !a && en(e, s)) ? r = r.filter((h) => h !== s) : o = c, s = re(s);
1625
+ }
1626
+ return t.set(e, r), r;
1627
+ }
1628
+ function Xr(e) {
1629
+ let {
1630
+ element: t,
1631
+ boundary: n,
1632
+ rootBoundary: r,
1633
+ strategy: o
1634
+ } = e;
1635
+ const s = [...n === "clippingAncestors" ? lt(t) ? [] : Yr(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((l, h) => {
1636
+ const d = Lt(t, h, o);
1637
+ return l.top = _(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = _(d.left, l.left), l;
1638
+ }, Lt(t, c, o));
1639
+ return {
1640
+ width: a.right - a.left,
1641
+ height: a.bottom - a.top,
1642
+ x: a.left,
1643
+ y: a.top
1644
+ };
1645
+ }
1646
+ function Kr(e) {
1647
+ const {
1648
+ width: t,
1649
+ height: n
1650
+ } = Zt(e);
1651
+ return {
1652
+ width: t,
1653
+ height: n
1654
+ };
1655
+ }
1656
+ function Gr(e, t, n) {
1657
+ const r = Y(t), o = q(t), i = n === "fixed", s = ce(e, !0, i, t);
1658
+ let c = {
1659
+ scrollLeft: 0,
1660
+ scrollTop: 0
1661
+ };
1662
+ const a = ne(0);
1663
+ if (r || !r && !i)
1664
+ if ((ge(t) !== "body" || Re(o)) && (c = je(t)), r) {
1665
+ const d = ce(t, !0, i, t);
1666
+ a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
1667
+ } else o && (a.x = Jt(o));
1668
+ const l = s.left + c.scrollLeft - a.x, h = s.top + c.scrollTop - a.y;
1669
+ return {
1670
+ x: l,
1671
+ y: h,
1672
+ width: s.width,
1673
+ height: s.height
1674
+ };
1675
+ }
1676
+ function Xe(e) {
1677
+ return $(e).position === "static";
1678
+ }
1679
+ function Nt(e, t) {
1680
+ return !Y(e) || $(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1681
+ }
1682
+ function tn(e, t) {
1683
+ const n = B(e);
1684
+ if (lt(e))
1685
+ return n;
1686
+ if (!Y(e)) {
1687
+ let o = re(e);
1688
+ for (; o && !me(o); ) {
1689
+ if (U(o) && !Xe(o))
1690
+ return o;
1691
+ o = re(o);
1692
+ }
1693
+ return n;
1694
+ }
1695
+ let r = Nt(e, t);
1696
+ for (; r && Ir(r) && Xe(r); )
1697
+ r = Nt(r, t);
1698
+ return r && me(r) && Xe(r) && !st(r) ? n : r || Wr(e) || n;
1699
+ }
1700
+ const qr = async function(e) {
1701
+ const t = this.getOffsetParent || tn, n = this.getDimensions, r = await n(e.floating);
1702
+ return {
1703
+ reference: Gr(e.reference, await t(e.floating), e.strategy),
1704
+ floating: {
1705
+ x: 0,
1706
+ y: 0,
1707
+ width: r.width,
1708
+ height: r.height
1709
+ }
1710
+ };
1711
+ };
1712
+ function Zr(e) {
1713
+ return $(e).direction === "rtl";
1714
+ }
1715
+ const Qr = {
1716
+ convertOffsetParentRelativeRectToViewportRelativeRect: $r,
1717
+ getDocumentElement: q,
1718
+ getClippingRect: Xr,
1719
+ getOffsetParent: tn,
1720
+ getElementRects: qr,
1721
+ getClientRects: Hr,
1722
+ getDimensions: Kr,
1723
+ getScale: de,
1724
+ isElement: U,
1725
+ isRTL: Zr
1726
+ };
1727
+ function Jr(e, t) {
1728
+ let n = null, r;
1729
+ const o = q(e);
1730
+ function i() {
1731
+ var c;
1732
+ clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
1733
+ }
1734
+ function s(c, a) {
1735
+ c === void 0 && (c = !1), a === void 0 && (a = 1), i();
1736
+ const {
1737
+ left: l,
1738
+ top: h,
1739
+ width: d,
1740
+ height: p
1741
+ } = e.getBoundingClientRect();
1742
+ if (c || t(), !d || !p)
1743
+ return;
1744
+ const m = Oe(h), g = Oe(o.clientWidth - (l + d)), u = Oe(o.clientHeight - (h + p)), v = Oe(l), w = {
1745
+ rootMargin: -m + "px " + -g + "px " + -u + "px " + -v + "px",
1746
+ threshold: _(0, te(1, a)) || 1
1747
+ };
1748
+ let b = !0;
1749
+ function x(E) {
1750
+ const C = E[0].intersectionRatio;
1751
+ if (C !== a) {
1752
+ if (!b)
1753
+ return s();
1754
+ C ? s(!1, C) : r = setTimeout(() => {
1755
+ s(!1, 1e-7);
1756
+ }, 1e3);
1757
+ }
1758
+ b = !1;
1759
+ }
1760
+ try {
1761
+ n = new IntersectionObserver(x, {
1762
+ ...w,
1763
+ // Handle <iframe>s
1764
+ root: o.ownerDocument
1765
+ });
1766
+ } catch {
1767
+ n = new IntersectionObserver(x, w);
1768
+ }
1769
+ n.observe(e);
1770
+ }
1771
+ return s(!0), i;
1772
+ }
1773
+ function eo(e, t, n, r) {
1774
+ r === void 0 && (r = {});
1775
+ const {
1776
+ ancestorScroll: o = !0,
1777
+ ancestorResize: i = !0,
1778
+ elementResize: s = typeof ResizeObserver == "function",
1779
+ layoutShift: c = typeof IntersectionObserver == "function",
1780
+ animationFrame: a = !1
1781
+ } = r, l = at(e), h = o || i ? [...l ? Se(l) : [], ...Se(t)] : [];
1782
+ h.forEach((y) => {
1783
+ o && y.addEventListener("scroll", n, {
1784
+ passive: !0
1785
+ }), i && y.addEventListener("resize", n);
1786
+ });
1787
+ const d = l && c ? Jr(l, n) : null;
1788
+ let p = -1, m = null;
1789
+ s && (m = new ResizeObserver((y) => {
1790
+ let [w] = y;
1791
+ w && w.target === l && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1792
+ var b;
1793
+ (b = m) == null || b.observe(t);
1794
+ })), n();
1795
+ }), l && !a && m.observe(l), m.observe(t));
1796
+ let g, u = a ? ce(e) : null;
1797
+ a && v();
1798
+ function v() {
1799
+ const y = ce(e);
1800
+ u && (y.x !== u.x || y.y !== u.y || y.width !== u.width || y.height !== u.height) && n(), u = y, g = requestAnimationFrame(v);
1801
+ }
1802
+ return n(), () => {
1803
+ var y;
1804
+ h.forEach((w) => {
1805
+ o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
1806
+ }), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(g);
1807
+ };
1808
+ }
1809
+ const to = Nr, no = Dr, ro = Tr, oo = Fr, io = Mr, Dt = Or, so = kr, co = (e, t, n) => {
1810
+ const r = /* @__PURE__ */ new Map(), o = {
1811
+ platform: Qr,
1812
+ ...n
1813
+ }, i = {
1814
+ ...o.platform,
1815
+ _c: r
1816
+ };
1817
+ return Pr(e, t, {
1818
+ ...o,
1819
+ platform: i
1820
+ });
1821
+ }, ao = (e) => {
1822
+ function t(n) {
1823
+ return {}.hasOwnProperty.call(n, "current");
1824
+ }
1825
+ return {
1826
+ name: "arrow",
1827
+ options: e,
1828
+ fn(n) {
1829
+ const {
1830
+ element: r,
1831
+ padding: o
1832
+ } = typeof e == "function" ? e(n) : e;
1833
+ return r && t(r) ? r.current != null ? Dt({
1834
+ element: r.current,
1835
+ padding: o
1836
+ }).fn(n) : {} : r ? Dt({
1837
+ element: r,
1838
+ padding: o
1839
+ }).fn(n) : {};
1840
+ }
1841
+ };
1842
+ };
1843
+ var De = typeof document < "u" ? Nn : Dn;
1844
+ function Be(e, t) {
1845
+ if (e === t)
1846
+ return !0;
1847
+ if (typeof e != typeof t)
1848
+ return !1;
1849
+ if (typeof e == "function" && e.toString() === t.toString())
1850
+ return !0;
1851
+ let n, r, o;
1852
+ if (e && t && typeof e == "object") {
1853
+ if (Array.isArray(e)) {
1854
+ if (n = e.length, n !== t.length) return !1;
1855
+ for (r = n; r-- !== 0; )
1856
+ if (!Be(e[r], t[r]))
1857
+ return !1;
1858
+ return !0;
1859
+ }
1860
+ if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
1861
+ return !1;
1862
+ for (r = n; r-- !== 0; )
1863
+ if (!{}.hasOwnProperty.call(t, o[r]))
1864
+ return !1;
1865
+ for (r = n; r-- !== 0; ) {
1866
+ const i = o[r];
1867
+ if (!(i === "_owner" && e.$$typeof) && !Be(e[i], t[i]))
1868
+ return !1;
1869
+ }
1870
+ return !0;
1871
+ }
1872
+ return e !== e && t !== t;
1873
+ }
1874
+ function nn(e) {
1875
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1876
+ }
1877
+ function kt(e, t) {
1878
+ const n = nn(e);
1879
+ return Math.round(t * n) / n;
1880
+ }
1881
+ function Ft(e) {
1882
+ const t = f.useRef(e);
1883
+ return De(() => {
1884
+ t.current = e;
1885
+ }), t;
1886
+ }
1887
+ function lo(e) {
1888
+ e === void 0 && (e = {});
1889
+ const {
1890
+ placement: t = "bottom",
1891
+ strategy: n = "absolute",
1892
+ middleware: r = [],
1893
+ platform: o,
1894
+ elements: {
1895
+ reference: i,
1896
+ floating: s
1897
+ } = {},
1898
+ transform: c = !0,
1899
+ whileElementsMounted: a,
1900
+ open: l
1901
+ } = e, [h, d] = f.useState({
1902
+ x: 0,
1903
+ y: 0,
1904
+ strategy: n,
1905
+ placement: t,
1906
+ middlewareData: {},
1907
+ isPositioned: !1
1908
+ }), [p, m] = f.useState(r);
1909
+ Be(p, r) || m(r);
1910
+ const [g, u] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((A) => {
1911
+ A !== C.current && (C.current = A, u(A));
1912
+ }, []), b = f.useCallback((A) => {
1913
+ A !== S.current && (S.current = A, y(A));
1914
+ }, []), x = i || g, E = s || v, C = f.useRef(null), S = f.useRef(null), R = f.useRef(h), O = a != null, D = Ft(a), j = Ft(o), M = f.useCallback(() => {
1915
+ if (!C.current || !S.current)
1916
+ return;
1917
+ const A = {
1918
+ placement: t,
1919
+ strategy: n,
1920
+ middleware: p
1921
+ };
1922
+ j.current && (A.platform = j.current), co(C.current, S.current, A).then((W) => {
1923
+ const X = {
1924
+ ...W,
1925
+ isPositioned: !0
1926
+ };
1927
+ I.current && !Be(R.current, X) && (R.current = X, Ht.flushSync(() => {
1928
+ d(X);
1929
+ }));
1930
+ });
1931
+ }, [p, t, n, j]);
1932
+ De(() => {
1933
+ l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, d((A) => ({
1934
+ ...A,
1935
+ isPositioned: !1
1936
+ })));
1937
+ }, [l]);
1938
+ const I = f.useRef(!1);
1939
+ De(() => (I.current = !0, () => {
1940
+ I.current = !1;
1941
+ }), []), De(() => {
1942
+ if (x && (C.current = x), E && (S.current = E), x && E) {
1943
+ if (D.current)
1944
+ return D.current(x, E, M);
1945
+ M();
1946
+ }
1947
+ }, [x, E, M, D, O]);
1948
+ const N = f.useMemo(() => ({
1949
+ reference: C,
1950
+ floating: S,
1951
+ setReference: w,
1952
+ setFloating: b
1953
+ }), [w, b]), T = f.useMemo(() => ({
1954
+ reference: x,
1955
+ floating: E
1956
+ }), [x, E]), k = f.useMemo(() => {
1957
+ const A = {
1958
+ position: n,
1959
+ left: 0,
1960
+ top: 0
1961
+ };
1962
+ if (!T.floating)
1963
+ return A;
1964
+ const W = kt(T.floating, h.x), X = kt(T.floating, h.y);
1965
+ return c ? {
1966
+ ...A,
1967
+ transform: "translate(" + W + "px, " + X + "px)",
1968
+ ...nn(T.floating) >= 1.5 && {
1969
+ willChange: "transform"
1970
+ }
1971
+ } : {
1972
+ position: n,
1973
+ left: W,
1974
+ top: X
1975
+ };
1976
+ }, [n, c, T.floating, h.x, h.y]);
1977
+ return f.useMemo(() => ({
1978
+ ...h,
1979
+ update: M,
1980
+ refs: N,
1981
+ elements: T,
1982
+ floatingStyles: k
1983
+ }), [h, M, N, T, k]);
1984
+ }
1985
+ var uo = "Arrow", rn = f.forwardRef((e, t) => {
1986
+ const { children: n, width: r = 10, height: o = 5, ...i } = e;
1987
+ return /* @__PURE__ */ P.jsx(
1988
+ ae.svg,
1989
+ {
1990
+ ...i,
1991
+ ref: t,
1992
+ width: r,
1993
+ height: o,
1994
+ viewBox: "0 0 30 10",
1995
+ preserveAspectRatio: "none",
1996
+ children: e.asChild ? n : /* @__PURE__ */ P.jsx("polygon", { points: "0,0 30,0 15,10" })
1997
+ }
1998
+ );
1999
+ });
2000
+ rn.displayName = uo;
2001
+ var fo = rn;
2002
+ function ho(e) {
2003
+ const [t, n] = f.useState(void 0);
2004
+ return Ee(() => {
2005
+ if (e) {
2006
+ n({ width: e.offsetWidth, height: e.offsetHeight });
2007
+ const r = new ResizeObserver((o) => {
2008
+ if (!Array.isArray(o) || !o.length)
2009
+ return;
2010
+ const i = o[0];
2011
+ let s, c;
2012
+ if ("borderBoxSize" in i) {
2013
+ const a = i.borderBoxSize, l = Array.isArray(a) ? a[0] : a;
2014
+ s = l.inlineSize, c = l.blockSize;
2015
+ } else
2016
+ s = e.offsetWidth, c = e.offsetHeight;
2017
+ n({ width: s, height: c });
2018
+ });
2019
+ return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2020
+ } else
2021
+ n(void 0);
2022
+ }, [e]), t;
2023
+ }
2024
+ var ut = "Popper", [on, Ei] = zt(ut), [mo, sn] = on(ut), cn = (e) => {
2025
+ const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
2026
+ return /* @__PURE__ */ P.jsx(mo, { scope: t, anchor: r, onAnchorChange: o, children: n });
2027
+ };
2028
+ cn.displayName = ut;
2029
+ var an = "PopperAnchor", ln = f.forwardRef(
2030
+ (e, t) => {
2031
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s = f.useRef(null), c = se(t, s);
2032
+ return f.useEffect(() => {
2033
+ i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
2034
+ }), r ? null : /* @__PURE__ */ P.jsx(ae.div, { ...o, ref: c });
2035
+ }
2036
+ );
2037
+ ln.displayName = an;
2038
+ var ft = "PopperContent", [po, vo] = on(ft), un = f.forwardRef(
2039
+ (e, t) => {
2040
+ var dt, ht, mt, pt, vt, gt;
2041
+ const {
2042
+ __scopePopper: n,
2043
+ side: r = "bottom",
2044
+ sideOffset: o = 0,
2045
+ align: i = "center",
2046
+ alignOffset: s = 0,
2047
+ arrowPadding: c = 0,
2048
+ avoidCollisions: a = !0,
2049
+ collisionBoundary: l = [],
2050
+ collisionPadding: h = 0,
2051
+ sticky: d = "partial",
2052
+ hideWhenDetached: p = !1,
2053
+ updatePositionStrategy: m = "optimized",
2054
+ onPlaced: g,
2055
+ ...u
2056
+ } = e, v = sn(ft, n), [y, w] = f.useState(null), b = se(t, (ye) => w(ye)), [x, E] = f.useState(null), C = ho(x), S = (C == null ? void 0 : C.width) ?? 0, R = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
2057
+ padding: D,
2058
+ boundary: j.filter(yo),
2059
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2060
+ altBoundary: M
2061
+ }, { refs: N, floatingStyles: T, placement: k, isPositioned: A, middlewareData: W } = lo({
2062
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2063
+ strategy: "fixed",
2064
+ placement: O,
2065
+ whileElementsMounted: (...ye) => eo(...ye, {
2066
+ animationFrame: m === "always"
2067
+ }),
2068
+ elements: {
2069
+ reference: v.anchor
2070
+ },
2071
+ middleware: [
2072
+ to({ mainAxis: o + R, alignmentAxis: s }),
2073
+ a && no({
2074
+ mainAxis: !0,
2075
+ crossAxis: !1,
2076
+ limiter: d === "partial" ? so() : void 0,
2077
+ ...I
2078
+ }),
2079
+ a && ro({ ...I }),
2080
+ oo({
2081
+ ...I,
2082
+ apply: ({ elements: ye, rects: yt, availableWidth: On, availableHeight: Tn }) => {
2083
+ const { width: Mn, height: Ln } = yt.reference, Pe = ye.floating.style;
2084
+ Pe.setProperty("--radix-popper-available-width", `${On}px`), Pe.setProperty("--radix-popper-available-height", `${Tn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Mn}px`), Pe.setProperty("--radix-popper-anchor-height", `${Ln}px`);
2085
+ }
2086
+ }),
2087
+ x && ao({ element: x, padding: c }),
2088
+ wo({ arrowWidth: S, arrowHeight: R }),
2089
+ p && io({ strategy: "referenceHidden", ...I })
2090
+ ]
2091
+ }), [X, En] = hn(k), Ae = ee(g);
2092
+ Ee(() => {
2093
+ A && (Ae == null || Ae());
2094
+ }, [A, Ae]);
2095
+ const Cn = (dt = W.arrow) == null ? void 0 : dt.x, Sn = (ht = W.arrow) == null ? void 0 : ht.y, Rn = ((mt = W.arrow) == null ? void 0 : mt.centerOffset) !== 0, [An, Pn] = f.useState();
2096
+ return Ee(() => {
2097
+ y && Pn(window.getComputedStyle(y).zIndex);
2098
+ }, [y]), /* @__PURE__ */ P.jsx(
2099
+ "div",
2100
+ {
2101
+ ref: N.setFloating,
2102
+ "data-radix-popper-content-wrapper": "",
2103
+ style: {
2104
+ ...T,
2105
+ transform: A ? T.transform : "translate(0, -200%)",
2106
+ // keep off the page when measuring
2107
+ minWidth: "max-content",
2108
+ zIndex: An,
2109
+ "--radix-popper-transform-origin": [
2110
+ (pt = W.transformOrigin) == null ? void 0 : pt.x,
2111
+ (vt = W.transformOrigin) == null ? void 0 : vt.y
2112
+ ].join(" "),
2113
+ // hide the content if using the hide middleware and should be hidden
2114
+ // set visibility to hidden and disable pointer events so the UI behaves
2115
+ // as if the PopperContent isn't there at all
2116
+ ...((gt = W.hide) == null ? void 0 : gt.referenceHidden) && {
2117
+ visibility: "hidden",
2118
+ pointerEvents: "none"
2119
+ }
2120
+ },
2121
+ dir: e.dir,
2122
+ children: /* @__PURE__ */ P.jsx(
2123
+ po,
2124
+ {
2125
+ scope: n,
2126
+ placedSide: X,
2127
+ onArrowChange: E,
2128
+ arrowX: Cn,
2129
+ arrowY: Sn,
2130
+ shouldHideArrow: Rn,
2131
+ children: /* @__PURE__ */ P.jsx(
2132
+ ae.div,
2133
+ {
2134
+ "data-side": X,
2135
+ "data-align": En,
2136
+ ...u,
2137
+ ref: b,
2138
+ style: {
2139
+ ...u.style,
2140
+ // if the PopperContent hasn't been placed yet (not all measurements done)
2141
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
2142
+ animation: A ? void 0 : "none"
2143
+ }
2144
+ }
2145
+ )
2146
+ }
2147
+ )
2148
+ }
2149
+ );
2150
+ }
2151
+ );
2152
+ un.displayName = ft;
2153
+ var fn = "PopperArrow", go = {
2154
+ top: "bottom",
2155
+ right: "left",
2156
+ bottom: "top",
2157
+ left: "right"
2158
+ }, dn = f.forwardRef(function(t, n) {
2159
+ const { __scopePopper: r, ...o } = t, i = vo(fn, r), s = go[i.placedSide];
2160
+ return (
2161
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2162
+ // doesn't report size as we'd expect on SVG elements.
2163
+ // it reports their bounding box which is effectively the largest path inside the SVG.
2164
+ /* @__PURE__ */ P.jsx(
2165
+ "span",
2166
+ {
2167
+ ref: i.onArrowChange,
2168
+ style: {
2169
+ position: "absolute",
2170
+ left: i.arrowX,
2171
+ top: i.arrowY,
2172
+ [s]: 0,
2173
+ transformOrigin: {
2174
+ top: "",
2175
+ right: "0 0",
2176
+ bottom: "center 0",
2177
+ left: "100% 0"
2178
+ }[i.placedSide],
2179
+ transform: {
2180
+ top: "translateY(100%)",
2181
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
2182
+ bottom: "rotate(180deg)",
2183
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
2184
+ }[i.placedSide],
2185
+ visibility: i.shouldHideArrow ? "hidden" : void 0
2186
+ },
2187
+ children: /* @__PURE__ */ P.jsx(
2188
+ fo,
2189
+ {
2190
+ ...o,
2191
+ ref: n,
2192
+ style: {
2193
+ ...o.style,
2194
+ // ensures the element can be measured correctly (mostly for if SVG)
2195
+ display: "block"
2196
+ }
2197
+ }
2198
+ )
2199
+ }
2200
+ )
2201
+ );
2202
+ });
2203
+ dn.displayName = fn;
2204
+ function yo(e) {
2205
+ return e !== null;
2206
+ }
2207
+ var wo = (e) => ({
2208
+ name: "transformOrigin",
2209
+ options: e,
2210
+ fn(t) {
2211
+ var v, y, w;
2212
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [l, h] = hn(n), d = { start: "0%", center: "50%", end: "100%" }[h], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + a / 2;
2213
+ let g = "", u = "";
2214
+ return l === "bottom" ? (g = s ? d : `${p}px`, u = `${-a}px`) : l === "top" ? (g = s ? d : `${p}px`, u = `${r.floating.height + a}px`) : l === "right" ? (g = `${-a}px`, u = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + a}px`, u = s ? d : `${m}px`), { data: { x: g, y: u } };
2215
+ }
2216
+ });
2217
+ function hn(e) {
2218
+ const [t, n = "center"] = e.split("-");
2219
+ return [t, n];
2220
+ }
2221
+ var Ci = cn, Si = ln, Ri = un, Ai = dn, xo = "Portal", bo = f.forwardRef((e, t) => {
2222
+ var c;
2223
+ const { container: n, ...r } = e, [o, i] = f.useState(!1);
2224
+ Ee(() => i(!0), []);
2225
+ const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
2226
+ return s ? jn.createPortal(/* @__PURE__ */ P.jsx(ae.div, { ...r, ref: t }), s) : null;
2227
+ });
2228
+ bo.displayName = xo;
2229
+ var Eo = function(e) {
2230
+ if (typeof document > "u")
2231
+ return null;
2232
+ var t = Array.isArray(e) ? e[0] : e;
2233
+ return t.ownerDocument.body;
2234
+ }, le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {}, Ke = 0, mn = function(e) {
2235
+ return e && (e.host || mn(e.parentNode));
2236
+ }, Co = function(e, t) {
2237
+ return t.map(function(n) {
2238
+ if (e.contains(n))
2239
+ return n;
2240
+ var r = mn(n);
2241
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2242
+ }).filter(function(n) {
2243
+ return !!n;
2244
+ });
2245
+ }, So = function(e, t, n, r) {
2246
+ var o = Co(t, Array.isArray(e) ? e : [e]);
2247
+ Me[n] || (Me[n] = /* @__PURE__ */ new WeakMap());
2248
+ var i = Me[n], s = [], c = /* @__PURE__ */ new Set(), a = new Set(o), l = function(d) {
2249
+ !d || c.has(d) || (c.add(d), l(d.parentNode));
2250
+ };
2251
+ o.forEach(l);
2252
+ var h = function(d) {
2253
+ !d || a.has(d) || Array.prototype.forEach.call(d.children, function(p) {
2254
+ if (c.has(p))
2255
+ h(p);
2256
+ else
2257
+ try {
2258
+ var m = p.getAttribute(r), g = m !== null && m !== "false", u = (le.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
2259
+ le.set(p, u), i.set(p, v), s.push(p), u === 1 && g && Te.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2260
+ } catch (y) {
2261
+ console.error("aria-hidden: cannot operate on ", p, y);
2262
+ }
2263
+ });
2264
+ };
2265
+ return h(t), c.clear(), Ke++, function() {
2266
+ s.forEach(function(d) {
2267
+ var p = le.get(d) - 1, m = i.get(d) - 1;
2268
+ le.set(d, p), i.set(d, m), p || (Te.has(d) || d.removeAttribute(r), Te.delete(d)), m || d.removeAttribute(n);
2269
+ }), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {});
2270
+ };
2271
+ }, Pi = function(e, t, n) {
2272
+ n === void 0 && (n = "data-aria-hidden");
2273
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Eo(e);
2274
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), So(r, o, n, "aria-hidden")) : function() {
2275
+ return null;
2276
+ };
2277
+ }, z = function() {
2278
+ return z = Object.assign || function(t) {
2279
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
2280
+ n = arguments[r];
2281
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
2282
+ }
2283
+ return t;
2284
+ }, z.apply(this, arguments);
2285
+ };
2286
+ function pn(e, t) {
2287
+ var n = {};
2288
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2289
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2290
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
2291
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2292
+ return n;
2293
+ }
2294
+ function Ro(e, t, n) {
2295
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
2296
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2297
+ return e.concat(i || Array.prototype.slice.call(t));
2298
+ }
2299
+ var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar", Ao = "with-scroll-bars-hidden", Po = "--removed-body-scroll-bar-size";
2300
+ function Ge(e, t) {
2301
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
2302
+ }
2303
+ function Oo(e, t) {
2304
+ var n = kn(function() {
2305
+ return {
2306
+ // value
2307
+ value: e,
2308
+ // last callback
2309
+ callback: t,
2310
+ // "memoized" public interface
2311
+ facade: {
2312
+ get current() {
2313
+ return n.value;
2314
+ },
2315
+ set current(r) {
2316
+ var o = n.value;
2317
+ o !== r && (n.value = r, n.callback(r, o));
2318
+ }
2319
+ }
2320
+ };
2321
+ })[0];
2322
+ return n.callback = t, n.facade;
2323
+ }
2324
+ var To = typeof window < "u" ? f.useLayoutEffect : f.useEffect, It = /* @__PURE__ */ new WeakMap();
2325
+ function Mo(e, t) {
2326
+ var n = Oo(null, function(r) {
2327
+ return e.forEach(function(o) {
2328
+ return Ge(o, r);
2329
+ });
2330
+ });
2331
+ return To(function() {
2332
+ var r = It.get(n);
2333
+ if (r) {
2334
+ var o = new Set(r), i = new Set(e), s = n.current;
2335
+ o.forEach(function(c) {
2336
+ i.has(c) || Ge(c, null);
2337
+ }), i.forEach(function(c) {
2338
+ o.has(c) || Ge(c, s);
2339
+ });
2340
+ }
2341
+ It.set(n, e);
2342
+ }, [e]), n;
2343
+ }
2344
+ function Lo(e) {
2345
+ return e;
2346
+ }
2347
+ function No(e, t) {
2348
+ t === void 0 && (t = Lo);
2349
+ var n = [], r = !1, o = {
2350
+ read: function() {
2351
+ if (r)
2352
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
2353
+ return n.length ? n[n.length - 1] : e;
2354
+ },
2355
+ useMedium: function(i) {
2356
+ var s = t(i, r);
2357
+ return n.push(s), function() {
2358
+ n = n.filter(function(c) {
2359
+ return c !== s;
2360
+ });
2361
+ };
2362
+ },
2363
+ assignSyncMedium: function(i) {
2364
+ for (r = !0; n.length; ) {
2365
+ var s = n;
2366
+ n = [], s.forEach(i);
2367
+ }
2368
+ n = {
2369
+ push: function(c) {
2370
+ return i(c);
2371
+ },
2372
+ filter: function() {
2373
+ return n;
2374
+ }
2375
+ };
2376
+ },
2377
+ assignMedium: function(i) {
2378
+ r = !0;
2379
+ var s = [];
2380
+ if (n.length) {
2381
+ var c = n;
2382
+ n = [], c.forEach(i), s = n;
2383
+ }
2384
+ var a = function() {
2385
+ var h = s;
2386
+ s = [], h.forEach(i);
2387
+ }, l = function() {
2388
+ return Promise.resolve().then(a);
2389
+ };
2390
+ l(), n = {
2391
+ push: function(h) {
2392
+ s.push(h), l();
2393
+ },
2394
+ filter: function(h) {
2395
+ return s = s.filter(h), n;
2396
+ }
2397
+ };
2398
+ }
2399
+ };
2400
+ return o;
2401
+ }
2402
+ function Do(e) {
2403
+ e === void 0 && (e = {});
2404
+ var t = No(null);
2405
+ return t.options = z({ async: !0, ssr: !1 }, e), t;
2406
+ }
2407
+ var vn = function(e) {
2408
+ var t = e.sideCar, n = pn(e, ["sideCar"]);
2409
+ if (!t)
2410
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2411
+ var r = t.read();
2412
+ if (!r)
2413
+ throw new Error("Sidecar medium not found");
2414
+ return f.createElement(r, z({}, n));
2415
+ };
2416
+ vn.isSideCarExport = !0;
2417
+ function ko(e, t) {
2418
+ return e.useMedium(t), vn;
2419
+ }
2420
+ var gn = Do(), qe = function() {
2421
+ }, $e = f.forwardRef(function(e, t) {
2422
+ var n = f.useRef(null), r = f.useState({
2423
+ onScrollCapture: qe,
2424
+ onWheelCapture: qe,
2425
+ onTouchMoveCapture: qe
2426
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, u = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = Mo([n, t]), C = z(z({}, b), o);
2427
+ return f.createElement(
2428
+ f.Fragment,
2429
+ null,
2430
+ h && f.createElement(x, { sideCar: gn, removeScrollBar: l, shards: d, noIsolation: m, inert: g, setCallbacks: i, allowPinchZoom: !!u, lockRef: n, gapMode: w }),
2431
+ s ? f.cloneElement(f.Children.only(c), z(z({}, C), { ref: E })) : f.createElement(y, z({}, C, { className: a, ref: E }), c)
2432
+ );
2433
+ });
2434
+ $e.defaultProps = {
2435
+ enabled: !0,
2436
+ removeScrollBar: !0,
2437
+ inert: !1
2438
+ };
2439
+ $e.classNames = {
2440
+ fullWidth: Fe,
2441
+ zeroRight: ke
2442
+ };
2443
+ var Fo = function() {
2444
+ if (typeof __webpack_nonce__ < "u")
2445
+ return __webpack_nonce__;
2446
+ };
2447
+ function Io() {
2448
+ if (!document)
2449
+ return null;
2450
+ var e = document.createElement("style");
2451
+ e.type = "text/css";
2452
+ var t = Fo();
2453
+ return t && e.setAttribute("nonce", t), e;
2454
+ }
2455
+ function Wo(e, t) {
2456
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2457
+ }
2458
+ function _o(e) {
2459
+ var t = document.head || document.getElementsByTagName("head")[0];
2460
+ t.appendChild(e);
2461
+ }
2462
+ var Bo = function() {
2463
+ var e = 0, t = null;
2464
+ return {
2465
+ add: function(n) {
2466
+ e == 0 && (t = Io()) && (Wo(t, n), _o(t)), e++;
2467
+ },
2468
+ remove: function() {
2469
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2470
+ }
2471
+ };
2472
+ }, jo = function() {
2473
+ var e = Bo();
2474
+ return function(t, n) {
2475
+ f.useEffect(function() {
2476
+ return e.add(t), function() {
2477
+ e.remove();
2478
+ };
2479
+ }, [t && n]);
2480
+ };
2481
+ }, yn = function() {
2482
+ var e = jo(), t = function(n) {
2483
+ var r = n.styles, o = n.dynamic;
2484
+ return e(r, o), null;
2485
+ };
2486
+ return t;
2487
+ }, $o = {
2488
+ left: 0,
2489
+ top: 0,
2490
+ right: 0,
2491
+ gap: 0
2492
+ }, Ze = function(e) {
2493
+ return parseInt(e || "", 10) || 0;
2494
+ }, Ho = function(e) {
2495
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2496
+ return [Ze(n), Ze(r), Ze(o)];
2497
+ }, Vo = function(e) {
2498
+ if (e === void 0 && (e = "margin"), typeof window > "u")
2499
+ return $o;
2500
+ var t = Ho(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2501
+ return {
2502
+ left: t[0],
2503
+ top: t[1],
2504
+ right: t[2],
2505
+ gap: Math.max(0, r - n + t[2] - t[0])
2506
+ };
2507
+ }, zo = yn(), he = "data-scroll-locked", Uo = function(e, t, n, r) {
2508
+ var o = e.left, i = e.top, s = e.right, c = e.gap;
2509
+ return n === void 0 && (n = "margin"), `
2510
+ .`.concat(Ao, ` {
2511
+ overflow: hidden `).concat(r, `;
2512
+ padding-right: `).concat(c, "px ").concat(r, `;
2513
+ }
2514
+ body[`).concat(he, `] {
2515
+ overflow: hidden `).concat(r, `;
2516
+ overscroll-behavior: contain;
2517
+ `).concat([
2518
+ t && "position: relative ".concat(r, ";"),
2519
+ n === "margin" && `
2520
+ padding-left: `.concat(o, `px;
2521
+ padding-top: `).concat(i, `px;
2522
+ padding-right: `).concat(s, `px;
2523
+ margin-left:0;
2524
+ margin-top:0;
2525
+ margin-right: `).concat(c, "px ").concat(r, `;
2526
+ `),
2527
+ n === "padding" && "padding-right: ".concat(c, "px ").concat(r, ";")
2528
+ ].filter(Boolean).join(""), `
2529
+ }
2530
+
2531
+ .`).concat(ke, ` {
2532
+ right: `).concat(c, "px ").concat(r, `;
2533
+ }
2534
+
2535
+ .`).concat(Fe, ` {
2536
+ margin-right: `).concat(c, "px ").concat(r, `;
2537
+ }
2538
+
2539
+ .`).concat(ke, " .").concat(ke, ` {
2540
+ right: 0 `).concat(r, `;
2541
+ }
2542
+
2543
+ .`).concat(Fe, " .").concat(Fe, ` {
2544
+ margin-right: 0 `).concat(r, `;
2545
+ }
2546
+
2547
+ body[`).concat(he, `] {
2548
+ `).concat(Po, ": ").concat(c, `px;
2549
+ }
2550
+ `);
2551
+ }, Wt = function() {
2552
+ var e = parseInt(document.body.getAttribute(he) || "0", 10);
2553
+ return isFinite(e) ? e : 0;
2554
+ }, Yo = function() {
2555
+ f.useEffect(function() {
2556
+ return document.body.setAttribute(he, (Wt() + 1).toString()), function() {
2557
+ var e = Wt() - 1;
2558
+ e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
2559
+ };
2560
+ }, []);
2561
+ }, Xo = function(e) {
2562
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2563
+ Yo();
2564
+ var i = f.useMemo(function() {
2565
+ return Vo(o);
2566
+ }, [o]);
2567
+ return f.createElement(zo, { styles: Uo(i, !t, o, n ? "" : "!important") });
2568
+ }, nt = !1;
2569
+ if (typeof window < "u")
2570
+ try {
2571
+ var Le = Object.defineProperty({}, "passive", {
2572
+ get: function() {
2573
+ return nt = !0, !0;
2574
+ }
2575
+ });
2576
+ window.addEventListener("test", Le, Le), window.removeEventListener("test", Le, Le);
2577
+ } catch {
2578
+ nt = !1;
2579
+ }
2580
+ var ue = nt ? { passive: !1 } : !1, Ko = function(e) {
2581
+ return e.tagName === "TEXTAREA";
2582
+ }, wn = function(e, t) {
2583
+ var n = window.getComputedStyle(e);
2584
+ return (
2585
+ // not-not-scrollable
2586
+ n[t] !== "hidden" && // contains scroll inside self
2587
+ !(n.overflowY === n.overflowX && !Ko(e) && n[t] === "visible")
2588
+ );
2589
+ }, Go = function(e) {
2590
+ return wn(e, "overflowY");
2591
+ }, qo = function(e) {
2592
+ return wn(e, "overflowX");
2593
+ }, _t = function(e, t) {
2594
+ var n = t.ownerDocument, r = t;
2595
+ do {
2596
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2597
+ var o = xn(e, r);
2598
+ if (o) {
2599
+ var i = bn(e, r), s = i[1], c = i[2];
2600
+ if (s > c)
2601
+ return !0;
2602
+ }
2603
+ r = r.parentNode;
2604
+ } while (r && r !== n.body);
2605
+ return !1;
2606
+ }, Zo = function(e) {
2607
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2608
+ return [
2609
+ t,
2610
+ n,
2611
+ r
2612
+ ];
2613
+ }, Qo = function(e) {
2614
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2615
+ return [
2616
+ t,
2617
+ n,
2618
+ r
2619
+ ];
2620
+ }, xn = function(e, t) {
2621
+ return e === "v" ? Go(t) : qo(t);
2622
+ }, bn = function(e, t) {
2623
+ return e === "v" ? Zo(t) : Qo(t);
2624
+ }, Jo = function(e, t) {
2625
+ return e === "h" && t === "rtl" ? -1 : 1;
2626
+ }, ei = function(e, t, n, r, o) {
2627
+ var i = Jo(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, a = t.contains(c), l = !1, h = s > 0, d = 0, p = 0;
2628
+ do {
2629
+ var m = bn(e, c), g = m[0], u = m[1], v = m[2], y = u - v - i * g;
2630
+ (g || y) && xn(e, c) && (d += y, p += g), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
2631
+ } while (
2632
+ // portaled content
2633
+ !a && c !== document.body || // self content
2634
+ a && (t.contains(c) || t === c)
2635
+ );
2636
+ return (h && (Math.abs(d) < 1 || !o) || !h && (Math.abs(p) < 1 || !o)) && (l = !0), l;
2637
+ }, Ne = function(e) {
2638
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2639
+ }, Bt = function(e) {
2640
+ return [e.deltaX, e.deltaY];
2641
+ }, jt = function(e) {
2642
+ return e && "current" in e ? e.current : e;
2643
+ }, ti = function(e, t) {
2644
+ return e[0] === t[0] && e[1] === t[1];
2645
+ }, ni = function(e) {
2646
+ return `
2647
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
2648
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2649
+ `);
2650
+ }, ri = 0, fe = [];
2651
+ function oi(e) {
2652
+ var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(ri++)[0], i = f.useState(yn)[0], s = f.useRef(e);
2653
+ f.useEffect(function() {
2654
+ s.current = e;
2655
+ }, [e]), f.useEffect(function() {
2656
+ if (e.inert) {
2657
+ document.body.classList.add("block-interactivity-".concat(o));
2658
+ var u = Ro([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
2659
+ return u.forEach(function(v) {
2660
+ return v.classList.add("allow-interactivity-".concat(o));
2661
+ }), function() {
2662
+ document.body.classList.remove("block-interactivity-".concat(o)), u.forEach(function(v) {
2663
+ return v.classList.remove("allow-interactivity-".concat(o));
2664
+ });
2665
+ };
2666
+ }
2667
+ }, [e.inert, e.lockRef.current, e.shards]);
2668
+ var c = f.useCallback(function(u, v) {
2669
+ if ("touches" in u && u.touches.length === 2)
2670
+ return !s.current.allowPinchZoom;
2671
+ var y = Ne(u), w = n.current, b = "deltaX" in u ? u.deltaX : w[0] - y[0], x = "deltaY" in u ? u.deltaY : w[1] - y[1], E, C = u.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
2672
+ if ("touches" in u && S === "h" && C.type === "range")
2673
+ return !1;
2674
+ var R = _t(S, C);
2675
+ if (!R)
2676
+ return !0;
2677
+ if (R ? E = S : (E = S === "v" ? "h" : "v", R = _t(S, C)), !R)
2678
+ return !1;
2679
+ if (!r.current && "changedTouches" in u && (b || x) && (r.current = E), !E)
2680
+ return !0;
2681
+ var O = r.current || E;
2682
+ return ei(O, v, u, O === "h" ? b : x, !0);
2683
+ }, []), a = f.useCallback(function(u) {
2684
+ var v = u;
2685
+ if (!(!fe.length || fe[fe.length - 1] !== i)) {
2686
+ var y = "deltaY" in v ? Bt(v) : Ne(v), w = t.current.filter(function(E) {
2687
+ return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && ti(E.delta, y);
2688
+ })[0];
2689
+ if (w && w.should) {
2690
+ v.cancelable && v.preventDefault();
2691
+ return;
2692
+ }
2693
+ if (!w) {
2694
+ var b = (s.current.shards || []).map(jt).filter(Boolean).filter(function(E) {
2695
+ return E.contains(v.target);
2696
+ }), x = b.length > 0 ? c(v, b[0]) : !s.current.noIsolation;
2697
+ x && v.cancelable && v.preventDefault();
2698
+ }
2699
+ }
2700
+ }, []), l = f.useCallback(function(u, v, y, w) {
2701
+ var b = { name: u, delta: v, target: y, should: w, shadowParent: ii(y) };
2702
+ t.current.push(b), setTimeout(function() {
2703
+ t.current = t.current.filter(function(x) {
2704
+ return x !== b;
2705
+ });
2706
+ }, 1);
2707
+ }, []), h = f.useCallback(function(u) {
2708
+ n.current = Ne(u), r.current = void 0;
2709
+ }, []), d = f.useCallback(function(u) {
2710
+ l(u.type, Bt(u), u.target, c(u, e.lockRef.current));
2711
+ }, []), p = f.useCallback(function(u) {
2712
+ l(u.type, Ne(u), u.target, c(u, e.lockRef.current));
2713
+ }, []);
2714
+ f.useEffect(function() {
2715
+ return fe.push(i), e.setCallbacks({
2716
+ onScrollCapture: d,
2717
+ onWheelCapture: d,
2718
+ onTouchMoveCapture: p
2719
+ }), document.addEventListener("wheel", a, ue), document.addEventListener("touchmove", a, ue), document.addEventListener("touchstart", h, ue), function() {
2720
+ fe = fe.filter(function(u) {
2721
+ return u !== i;
2722
+ }), document.removeEventListener("wheel", a, ue), document.removeEventListener("touchmove", a, ue), document.removeEventListener("touchstart", h, ue);
2723
+ };
2724
+ }, []);
2725
+ var m = e.removeScrollBar, g = e.inert;
2726
+ return f.createElement(
2727
+ f.Fragment,
2728
+ null,
2729
+ g ? f.createElement(i, { styles: ni(o) }) : null,
2730
+ m ? f.createElement(Xo, { gapMode: e.gapMode }) : null
2731
+ );
2732
+ }
2733
+ function ii(e) {
2734
+ for (var t = null; e !== null; )
2735
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
2736
+ return t;
2737
+ }
2738
+ const si = ko(gn, oi);
2739
+ var ci = f.forwardRef(function(e, t) {
2740
+ return f.createElement($e, z({}, e, { ref: t, sideCar: si }));
2741
+ });
2742
+ ci.classNames = $e.classNames;
2743
+ export {
2744
+ Si as A,
2745
+ Xn as B,
2746
+ Ri as C,
2747
+ or as D,
2748
+ ur as F,
2749
+ pi as M,
2750
+ ae as P,
2751
+ ci as R,
2752
+ be as S,
2753
+ zt as a,
2754
+ Ei as b,
2755
+ yi as c,
2756
+ Ve as d,
2757
+ xi as e,
2758
+ ee as f,
2759
+ Ai as g,
2760
+ Pi as h,
2761
+ Vt as i,
2762
+ Qn as j,
2763
+ wi as k,
2764
+ Ci as l,
2765
+ bo as m,
2766
+ bi as n,
2767
+ gi as o,
2768
+ mi as p,
2769
+ vi as q,
2770
+ Ee as r,
2771
+ Kn as s,
2772
+ se as u
2773
+ };
2774
+ //# sourceMappingURL=Combination-Cq0UkOXq.js.map