solace-agent-mesh 1.5.0__py3-none-any.whl → 1.5.1__py3-none-any.whl

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.

Potentially problematic release.


This version of solace-agent-mesh might be problematic. Click here for more details.

Files changed (257) hide show
  1. solace_agent_mesh/agent/adk/callbacks.py +14 -12
  2. solace_agent_mesh/agent/adk/embed_resolving_mcp_toolset.py +3 -1
  3. solace_agent_mesh/agent/adk/intelligent_mcp_callbacks.py +2 -1
  4. solace_agent_mesh/agent/adk/mcp_content_processor.py +2 -1
  5. solace_agent_mesh/agent/adk/runner.py +3 -1
  6. solace_agent_mesh/agent/adk/services.py +4 -1
  7. solace_agent_mesh/agent/adk/setup.py +3 -1
  8. solace_agent_mesh/agent/adk/tool_wrapper.py +2 -2
  9. solace_agent_mesh/agent/protocol/event_handlers.py +2 -1
  10. solace_agent_mesh/agent/sac/app.py +3 -1
  11. solace_agent_mesh/agent/sac/component.py +4 -1
  12. solace_agent_mesh/agent/tools/audio_tools.py +2 -1
  13. solace_agent_mesh/agent/tools/builtin_artifact_tools.py +3 -1
  14. solace_agent_mesh/agent/tools/builtin_data_analysis_tools.py +3 -1
  15. solace_agent_mesh/agent/tools/dynamic_tool.py +2 -1
  16. solace_agent_mesh/agent/tools/general_agent_tools.py +2 -1
  17. solace_agent_mesh/agent/tools/image_tools.py +2 -1
  18. solace_agent_mesh/agent/tools/peer_agent_tool.py +2 -1
  19. solace_agent_mesh/agent/tools/registry.py +3 -1
  20. solace_agent_mesh/agent/tools/test_tools.py +2 -1
  21. solace_agent_mesh/agent/tools/web_tools.py +2 -1
  22. solace_agent_mesh/agent/utils/artifact_helpers.py +3 -1
  23. solace_agent_mesh/agent/utils/config_parser.py +3 -1
  24. solace_agent_mesh/assets/docs/404.html +3 -3
  25. solace_agent_mesh/assets/docs/assets/js/{b7006a3a.73a79653.js → 032c2d61.f3d37824.js} +1 -1
  26. solace_agent_mesh/assets/docs/assets/js/0bcf40b7.c019ad46.js +1 -0
  27. solace_agent_mesh/assets/docs/assets/js/15ba94aa.932dd2db.js +1 -0
  28. solace_agent_mesh/assets/docs/assets/js/2131ec11.5c7a1f6e.js +1 -0
  29. solace_agent_mesh/assets/docs/assets/js/{2334.622a6395.js → 2334.1cf50a20.js} +1 -1
  30. solace_agent_mesh/assets/docs/assets/js/240a0364.7eac6021.js +1 -0
  31. solace_agent_mesh/assets/docs/assets/js/2e32b5e0.33f5d75b.js +1 -0
  32. solace_agent_mesh/assets/docs/assets/js/341393d4.0fac2613.js +1 -0
  33. solace_agent_mesh/assets/docs/assets/js/{3624.b524e433.js → 3624.0eaa1fd0.js} +1 -1
  34. solace_agent_mesh/assets/docs/assets/js/3a6c6137.f5940cfa.js +1 -0
  35. solace_agent_mesh/assets/docs/assets/js/3ac1795d.76654dd9.js +1 -0
  36. solace_agent_mesh/assets/docs/assets/js/3ff0015d.2be20244.js +1 -0
  37. solace_agent_mesh/assets/docs/assets/js/509e993c.4c7a1a6d.js +1 -0
  38. solace_agent_mesh/assets/docs/assets/js/547e15cc.2cbb060a.js +1 -0
  39. solace_agent_mesh/assets/docs/assets/js/55b7b518.f2b1d1ba.js +1 -0
  40. solace_agent_mesh/assets/docs/assets/js/5c2bd65f.e49689dd.js +1 -0
  41. solace_agent_mesh/assets/docs/assets/js/6063ff4c.ef84f702.js +1 -0
  42. solace_agent_mesh/assets/docs/assets/js/631738c7.a8b1ef8b.js +1 -0
  43. solace_agent_mesh/assets/docs/assets/js/6a520c9d.ba015d81.js +1 -0
  44. solace_agent_mesh/assets/docs/assets/js/6ad8f0bd.39d5851d.js +1 -0
  45. solace_agent_mesh/assets/docs/assets/js/6d84eae0.4a5fbf39.js +1 -0
  46. solace_agent_mesh/assets/docs/assets/js/6fdfefc7.99de744e.js +1 -0
  47. solace_agent_mesh/assets/docs/assets/js/71da7b71.804d6567.js +1 -0
  48. solace_agent_mesh/assets/docs/assets/js/722f809d.965da774.js +1 -0
  49. solace_agent_mesh/assets/docs/assets/js/742f027b.46c07808.js +1 -0
  50. solace_agent_mesh/assets/docs/assets/js/77cf947d.64c9bd6c.js +1 -0
  51. solace_agent_mesh/assets/docs/assets/js/8024126c.56e59919.js +1 -0
  52. solace_agent_mesh/assets/docs/assets/js/81a99df0.07034dd9.js +1 -0
  53. solace_agent_mesh/assets/docs/assets/js/82fbfb93.139a1a1f.js +1 -0
  54. solace_agent_mesh/assets/docs/assets/js/{8591.d7c16be6.js → 8591.5d015485.js} +2 -2
  55. solace_agent_mesh/assets/docs/assets/js/{8731.49e930c2.js → 8731.6c1dbf0c.js} +1 -1
  56. solace_agent_mesh/assets/docs/assets/js/945fb41e.6f4cdffd.js +1 -0
  57. solace_agent_mesh/assets/docs/assets/js/94e8668d.b5ddb7a1.js +1 -0
  58. solace_agent_mesh/assets/docs/assets/js/9bb13469.dd1c9b54.js +1 -0
  59. solace_agent_mesh/assets/docs/assets/js/9e9d0a82.dd810042.js +1 -0
  60. solace_agent_mesh/assets/docs/assets/js/ab9708a8.3e6dd091.js +1 -0
  61. solace_agent_mesh/assets/docs/assets/js/ad71b5ed.60668e9e.js +1 -0
  62. solace_agent_mesh/assets/docs/assets/js/c198a0dc.8f31f867.js +1 -0
  63. solace_agent_mesh/assets/docs/assets/js/c93cbaa0.eaff365e.js +1 -0
  64. solace_agent_mesh/assets/docs/assets/js/da0b5bad.9d369087.js +1 -0
  65. solace_agent_mesh/assets/docs/assets/js/db924877.cbc66f02.js +1 -0
  66. solace_agent_mesh/assets/docs/assets/js/dd817ffc.0aa9630a.js +1 -0
  67. solace_agent_mesh/assets/docs/assets/js/dd81e2b8.d590bc9e.js +1 -0
  68. solace_agent_mesh/assets/docs/assets/js/de5f4c65.e8241890.js +1 -0
  69. solace_agent_mesh/assets/docs/assets/js/de915948.139b4b9c.js +1 -0
  70. solace_agent_mesh/assets/docs/assets/js/e3d9abda.2b916f9e.js +1 -0
  71. solace_agent_mesh/assets/docs/assets/js/e6f9706b.582a78ca.js +1 -0
  72. solace_agent_mesh/assets/docs/assets/js/e92d0134.cf6d6522.js +1 -0
  73. solace_agent_mesh/assets/docs/assets/js/f284c35a.5766a13d.js +1 -0
  74. solace_agent_mesh/assets/docs/assets/js/ff4d71f2.9c0297a6.js +1 -0
  75. solace_agent_mesh/assets/docs/assets/js/main.bd3c34f3.js +2 -0
  76. solace_agent_mesh/assets/docs/assets/js/runtime~main.18dc45dd.js +1 -0
  77. solace_agent_mesh/assets/docs/docs/documentation/components/agents/index.html +143 -0
  78. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → components}/builtin-tools/artifact-management/index.html +7 -7
  79. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → components}/builtin-tools/audio-tools/index.html +7 -7
  80. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → components}/builtin-tools/data-analysis-tools/index.html +8 -8
  81. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → components}/builtin-tools/embeds/index.html +6 -6
  82. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → components}/builtin-tools/index.html +11 -11
  83. solace_agent_mesh/assets/docs/docs/documentation/{concepts → components}/cli/index.html +25 -25
  84. solace_agent_mesh/assets/docs/docs/documentation/components/gateways/index.html +91 -0
  85. solace_agent_mesh/assets/docs/docs/documentation/components/index.html +29 -0
  86. solace_agent_mesh/assets/docs/docs/documentation/components/orchestrator/index.html +55 -0
  87. solace_agent_mesh/assets/docs/docs/documentation/components/plugins/index.html +110 -0
  88. solace_agent_mesh/assets/docs/docs/documentation/deploying/debugging/index.html +104 -0
  89. solace_agent_mesh/assets/docs/docs/documentation/deploying/deployment-options/index.html +57 -0
  90. solace_agent_mesh/assets/docs/docs/documentation/deploying/index.html +25 -0
  91. solace_agent_mesh/assets/docs/docs/documentation/deploying/observability/index.html +59 -0
  92. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → developing}/create-agents/index.html +113 -152
  93. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → developing}/create-gateways/index.html +9 -9
  94. solace_agent_mesh/assets/docs/docs/documentation/{user-guide → developing}/creating-python-tools/index.html +12 -12
  95. solace_agent_mesh/assets/docs/docs/documentation/developing/creating-service-providers/index.html +54 -0
  96. solace_agent_mesh/assets/docs/docs/documentation/developing/index.html +32 -0
  97. solace_agent_mesh/assets/docs/docs/documentation/developing/structure/index.html +55 -0
  98. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/bedrock-agents/index.html +25 -25
  99. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/custom-agent/index.html +13 -13
  100. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/event-mesh-gateway/index.html +11 -11
  101. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/mcp-integration/index.html +10 -10
  102. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/mongodb-integration/index.html +13 -13
  103. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/rag-integration/index.html +13 -13
  104. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/rest-gateway/index.html +10 -10
  105. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/slack-integration/index.html +72 -0
  106. solace_agent_mesh/assets/docs/docs/documentation/{tutorials → developing/tutorials}/sql-database/index.html +14 -14
  107. solace_agent_mesh/assets/docs/docs/documentation/enterprise/index.html +33 -0
  108. solace_agent_mesh/assets/docs/docs/documentation/enterprise/installation/index.html +83 -0
  109. solace_agent_mesh/assets/docs/docs/documentation/enterprise/rbac-setup-guide/index.html +222 -0
  110. solace_agent_mesh/assets/docs/docs/documentation/enterprise/single-sign-on/index.html +161 -0
  111. solace_agent_mesh/assets/docs/docs/documentation/getting-started/architecture/index.html +75 -0
  112. solace_agent_mesh/assets/docs/docs/documentation/getting-started/index.html +53 -0
  113. solace_agent_mesh/assets/docs/docs/documentation/getting-started/introduction/index.html +35 -100
  114. solace_agent_mesh/assets/docs/docs/documentation/getting-started/try-agent-mesh/index.html +41 -0
  115. solace_agent_mesh/assets/docs/docs/documentation/{getting-started → installing-and-configuring}/configurations/index.html +56 -50
  116. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/index.html +25 -0
  117. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/installation/index.html +76 -0
  118. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/large_language_models/index.html +63 -0
  119. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/run-project/index.html +142 -0
  120. solace_agent_mesh/assets/docs/docs/documentation/migrations/a2a-upgrade/a2a-gateway-upgrade-to-0.3.0/index.html +100 -0
  121. solace_agent_mesh/assets/docs/docs/documentation/{Migrations/A2A Upgrade To 0.3.0/a2a-technical-migration-map/index.html → migrations/a2a-upgrade/a2a-technical-migration-map/index.html} +10 -11
  122. solace_agent_mesh/assets/docs/img/solace-logo.png +0 -0
  123. solace_agent_mesh/assets/docs/lunr-index-1760121512891.json +1 -0
  124. solace_agent_mesh/assets/docs/lunr-index.json +1 -1
  125. solace_agent_mesh/assets/docs/search-doc-1760121512891.json +1 -0
  126. solace_agent_mesh/assets/docs/search-doc.json +1 -1
  127. solace_agent_mesh/assets/docs/sitemap.xml +1 -1
  128. solace_agent_mesh/cli/__init__.py +1 -1
  129. solace_agent_mesh/client/webui/frontend/static/assets/{main-C__uuUkB.js → main-2nd1gbaH.js} +1 -1
  130. solace_agent_mesh/client/webui/frontend/static/assets/{main-CZbpmwfA.css → main-DoKXctCM.css} +1 -1
  131. solace_agent_mesh/client/webui/frontend/static/index.html +2 -2
  132. solace_agent_mesh/common/a2a/artifact.py +2 -1
  133. solace_agent_mesh/common/a2a/protocol.py +3 -2
  134. solace_agent_mesh/common/a2a/translation.py +3 -1
  135. solace_agent_mesh/common/middleware/config_resolver.py +3 -1
  136. solace_agent_mesh/common/middleware/registry.py +3 -1
  137. solace_agent_mesh/common/sac/sam_component_base.py +2 -1
  138. solace_agent_mesh/common/sam_events/event_service.py +3 -2
  139. solace_agent_mesh/common/services/employee_service.py +3 -1
  140. solace_agent_mesh/common/services/identity_service.py +2 -1
  141. solace_agent_mesh/common/services/providers/local_file_identity_service.py +2 -1
  142. solace_agent_mesh/common/utils/artifact_utils.py +3 -1
  143. solace_agent_mesh/common/utils/asyncio_macos_fix.py +3 -1
  144. solace_agent_mesh/common/utils/embeds/converter.py +3 -1
  145. solace_agent_mesh/common/utils/embeds/evaluators.py +2 -1
  146. solace_agent_mesh/common/utils/embeds/modifiers.py +3 -2
  147. solace_agent_mesh/common/utils/embeds/resolver.py +2 -1
  148. solace_agent_mesh/common/utils/initializer.py +3 -1
  149. solace_agent_mesh/common/utils/message_utils.py +2 -1
  150. solace_agent_mesh/common/utils/push_notification_auth.py +3 -2
  151. solace_agent_mesh/core_a2a/service.py +2 -2
  152. solace_agent_mesh/gateway/base/app.py +2 -1
  153. solace_agent_mesh/gateway/base/component.py +3 -1
  154. solace_agent_mesh/gateway/base/task_context.py +2 -1
  155. solace_agent_mesh/gateway/http_sse/app.py +2 -1
  156. solace_agent_mesh/gateway/http_sse/component.py +4 -1
  157. solace_agent_mesh/gateway/http_sse/components/task_logger_forwarder.py +3 -2
  158. solace_agent_mesh/gateway/http_sse/components/visualization_forwarder_component.py +3 -1
  159. solace_agent_mesh/gateway/http_sse/dependencies.py +3 -1
  160. solace_agent_mesh/gateway/http_sse/main.py +3 -1
  161. solace_agent_mesh/gateway/http_sse/routers/agent_cards.py +3 -2
  162. solace_agent_mesh/gateway/http_sse/routers/artifacts.py +2 -2
  163. solace_agent_mesh/gateway/http_sse/routers/auth.py +3 -1
  164. solace_agent_mesh/gateway/http_sse/routers/config.py +3 -2
  165. solace_agent_mesh/gateway/http_sse/routers/people.py +3 -1
  166. solace_agent_mesh/gateway/http_sse/routers/sessions.py +3 -1
  167. solace_agent_mesh/gateway/http_sse/routers/sse.py +3 -2
  168. solace_agent_mesh/gateway/http_sse/routers/tasks.py +2 -1
  169. solace_agent_mesh/gateway/http_sse/routers/users.py +3 -1
  170. solace_agent_mesh/gateway/http_sse/routers/visualization.py +2 -1
  171. solace_agent_mesh/gateway/http_sse/services/agent_card_service.py +3 -1
  172. solace_agent_mesh/gateway/http_sse/services/data_retention_service.py +2 -1
  173. solace_agent_mesh/gateway/http_sse/services/feedback_service.py +2 -1
  174. solace_agent_mesh/gateway/http_sse/services/people_service.py +2 -2
  175. solace_agent_mesh/gateway/http_sse/services/session_service.py +3 -1
  176. solace_agent_mesh/gateway/http_sse/services/task_logger_service.py +2 -1
  177. solace_agent_mesh/gateway/http_sse/services/task_service.py +3 -2
  178. solace_agent_mesh/gateway/http_sse/session_manager.py +2 -1
  179. solace_agent_mesh/gateway/http_sse/sse_event_buffer.py +2 -1
  180. solace_agent_mesh/gateway/http_sse/sse_manager.py +2 -2
  181. solace_agent_mesh/templates/gateway_app_template.py +4 -2
  182. solace_agent_mesh/templates/gateway_component_template.py +3 -1
  183. solace_agent_mesh/templates/logging_config_template.ini +22 -45
  184. solace_agent_mesh/templates/plugin_tools_template.py +2 -2
  185. {solace_agent_mesh-1.5.0.dist-info → solace_agent_mesh-1.5.1.dist-info}/METADATA +2 -2
  186. {solace_agent_mesh-1.5.0.dist-info → solace_agent_mesh-1.5.1.dist-info}/RECORD +191 -183
  187. solace_agent_mesh/assets/docs/assets/images/sac-flows-80d5b603c6aafd33e87945680ce0abf3.png +0 -0
  188. solace_agent_mesh/assets/docs/assets/images/sac_parts_of_a_component-cb3d0424b1d0c17734c5435cca6b4082.png +0 -0
  189. solace_agent_mesh/assets/docs/assets/js/04989206.a248f00c.js +0 -1
  190. solace_agent_mesh/assets/docs/assets/js/0e682baa.d54b8668.js +0 -1
  191. solace_agent_mesh/assets/docs/assets/js/1023fc19.8a8a9309.js +0 -1
  192. solace_agent_mesh/assets/docs/assets/js/1523c6b4.2645ef68.js +0 -1
  193. solace_agent_mesh/assets/docs/assets/js/166ab619.e27886d9.js +0 -1
  194. solace_agent_mesh/assets/docs/assets/js/1c6e87d2.e056b7e0.js +0 -1
  195. solace_agent_mesh/assets/docs/assets/js/21ceee5f.3bf39250.js +0 -1
  196. solace_agent_mesh/assets/docs/assets/js/2a9cab12.2afaee76.js +0 -1
  197. solace_agent_mesh/assets/docs/assets/js/332e10b5.f7629851.js +0 -1
  198. solace_agent_mesh/assets/docs/assets/js/3d406171.5560fdf9.js +0 -1
  199. solace_agent_mesh/assets/docs/assets/js/42b3f8d8.508ae8db.js +0 -1
  200. solace_agent_mesh/assets/docs/assets/js/442a8107.b5c2532a.js +0 -1
  201. solace_agent_mesh/assets/docs/assets/js/453a82a6.3c6bb61d.js +0 -1
  202. solace_agent_mesh/assets/docs/assets/js/483cef9a.bf9398af.js +0 -1
  203. solace_agent_mesh/assets/docs/assets/js/4c2787c2.c1290a40.js +0 -1
  204. solace_agent_mesh/assets/docs/assets/js/55f47984.bcd00a86.js +0 -1
  205. solace_agent_mesh/assets/docs/assets/js/5b4258a4.fdfd2325.js +0 -1
  206. solace_agent_mesh/assets/docs/assets/js/664b740a.ba305a89.js +0 -1
  207. solace_agent_mesh/assets/docs/assets/js/75384d09.c19e8b51.js +0 -1
  208. solace_agent_mesh/assets/docs/assets/js/768e31b0.9abcdc48.js +0 -1
  209. solace_agent_mesh/assets/docs/assets/js/85387663.be2bc838.js +0 -1
  210. solace_agent_mesh/assets/docs/assets/js/945fb41e.16e00776.js +0 -1
  211. solace_agent_mesh/assets/docs/assets/js/9a09e75d.92de8cf5.js +0 -1
  212. solace_agent_mesh/assets/docs/assets/js/9eff14a2.d62aad71.js +0 -1
  213. solace_agent_mesh/assets/docs/assets/js/a12a4955.25fbed32.js +0 -1
  214. solace_agent_mesh/assets/docs/assets/js/a3a92b25.af35e313.js +0 -1
  215. solace_agent_mesh/assets/docs/assets/js/aba87c2f.4ddf32f2.js +0 -1
  216. solace_agent_mesh/assets/docs/assets/js/ae0e903d.5fe5203f.js +0 -1
  217. solace_agent_mesh/assets/docs/assets/js/ae4415af.16cc58d3.js +0 -1
  218. solace_agent_mesh/assets/docs/assets/js/bac0be12.17de4316.js +0 -1
  219. solace_agent_mesh/assets/docs/assets/js/c2c06897.87cb1f47.js +0 -1
  220. solace_agent_mesh/assets/docs/assets/js/c835a94d.ce21f0bf.js +0 -1
  221. solace_agent_mesh/assets/docs/assets/js/cc969b05.feef7dcc.js +0 -1
  222. solace_agent_mesh/assets/docs/assets/js/cd3d4052.a19e7d78.js +0 -1
  223. solace_agent_mesh/assets/docs/assets/js/ced92a13.fb92e7ca.js +0 -1
  224. solace_agent_mesh/assets/docs/assets/js/cee5d587.47904f5e.js +0 -1
  225. solace_agent_mesh/assets/docs/assets/js/d6a81ee7.829198f1.js +0 -1
  226. solace_agent_mesh/assets/docs/assets/js/f284c35a.ed8dd236.js +0 -1
  227. solace_agent_mesh/assets/docs/assets/js/f897a61a.126663fe.js +0 -1
  228. solace_agent_mesh/assets/docs/assets/js/fbfa3e75.e144b16c.js +0 -1
  229. solace_agent_mesh/assets/docs/assets/js/main.0c149855.js +0 -2
  230. solace_agent_mesh/assets/docs/assets/js/runtime~main.c66557e4.js +0 -1
  231. solace_agent_mesh/assets/docs/docs/documentation/Enterprise/installation/index.html +0 -46
  232. solace_agent_mesh/assets/docs/docs/documentation/Enterprise/rbac-setup-guilde/index.html +0 -201
  233. solace_agent_mesh/assets/docs/docs/documentation/Enterprise/single-sign-on/index.html +0 -29
  234. solace_agent_mesh/assets/docs/docs/documentation/Migrations/A2A Upgrade To 0.3.0/a2a-gateway-upgrade-to-0.3.0/index.html +0 -105
  235. solace_agent_mesh/assets/docs/docs/documentation/concepts/agents/index.html +0 -144
  236. solace_agent_mesh/assets/docs/docs/documentation/concepts/architecture/index.html +0 -91
  237. solace_agent_mesh/assets/docs/docs/documentation/concepts/gateways/index.html +0 -91
  238. solace_agent_mesh/assets/docs/docs/documentation/concepts/orchestrator/index.html +0 -55
  239. solace_agent_mesh/assets/docs/docs/documentation/concepts/plugins/index.html +0 -111
  240. solace_agent_mesh/assets/docs/docs/documentation/deployment/debugging/index.html +0 -77
  241. solace_agent_mesh/assets/docs/docs/documentation/deployment/deploy/index.html +0 -48
  242. solace_agent_mesh/assets/docs/docs/documentation/deployment/observability/index.html +0 -54
  243. solace_agent_mesh/assets/docs/docs/documentation/getting-started/component-overview/index.html +0 -45
  244. solace_agent_mesh/assets/docs/docs/documentation/getting-started/configurations/litellm_models/index.html +0 -49
  245. solace_agent_mesh/assets/docs/docs/documentation/getting-started/installation/index.html +0 -76
  246. solace_agent_mesh/assets/docs/docs/documentation/getting-started/quick-start/index.html +0 -73
  247. solace_agent_mesh/assets/docs/docs/documentation/tutorials/slack-integration/index.html +0 -72
  248. solace_agent_mesh/assets/docs/docs/documentation/user-guide/creating-service-providers/index.html +0 -54
  249. solace_agent_mesh/assets/docs/docs/documentation/user-guide/solace-ai-connector/index.html +0 -69
  250. solace_agent_mesh/assets/docs/docs/documentation/user-guide/structure/index.html +0 -59
  251. solace_agent_mesh/assets/docs/lunr-index-1760032255022.json +0 -1
  252. solace_agent_mesh/assets/docs/search-doc-1760032255022.json +0 -1
  253. /solace_agent_mesh/assets/docs/assets/js/{8591.d7c16be6.js.LICENSE.txt → 8591.5d015485.js.LICENSE.txt} +0 -0
  254. /solace_agent_mesh/assets/docs/assets/js/{main.0c149855.js.LICENSE.txt → main.bd3c34f3.js.LICENSE.txt} +0 -0
  255. {solace_agent_mesh-1.5.0.dist-info → solace_agent_mesh-1.5.1.dist-info}/WHEEL +0 -0
  256. {solace_agent_mesh-1.5.0.dist-info → solace_agent_mesh-1.5.1.dist-info}/entry_points.txt +0 -0
  257. {solace_agent_mesh-1.5.0.dist-info → solace_agent_mesh-1.5.1.dist-info}/licenses/LICENSE +0 -0
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/concepts/agents</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/concepts/architecture</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/concepts/cli</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/concepts/gateways</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/concepts/orchestrator</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/concepts/plugins</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/deployment/debugging</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/deployment/deploy</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/deployment/observability</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/Enterprise/installation</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/Enterprise/rbac-setup-guilde</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/Enterprise/single-sign-on</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/component-overview</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/configurations/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/configurations/litellm_models</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/installation</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/introduction</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/quick-start</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/Migrations/A2A%20Upgrade%20To%200.3.0/a2a-gateway-upgrade-to-0.3.0</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/Migrations/A2A%20Upgrade%20To%200.3.0/a2a-technical-migration-map</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/bedrock-agents</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/custom-agent</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/event-mesh-gateway</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/mcp-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/mongodb-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/rag-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/rest-gateway</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/slack-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/tutorials/sql-database</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/builtin-tools/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/builtin-tools/artifact-management</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/builtin-tools/audio-tools</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/builtin-tools/data-analysis-tools</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/builtin-tools/embeds</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/create-agents</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/create-gateways</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/creating-python-tools</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/creating-service-providers</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/solace-ai-connector</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/user-guide/structure</loc><changefreq>weekly</changefreq><priority>0.5</priority></url></urlset>
1
+ <?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/agents</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/builtin-tools/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/builtin-tools/artifact-management</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/builtin-tools/audio-tools</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/builtin-tools/data-analysis-tools</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/builtin-tools/embeds</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/cli</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/gateways</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/orchestrator</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/components/plugins</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/deploying/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/deploying/debugging</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/deploying/deployment-options</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/deploying/observability</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/create-agents</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/create-gateways</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/creating-python-tools</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/creating-service-providers</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/structure</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/bedrock-agents</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/custom-agent</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/event-mesh-gateway</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/mcp-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/mongodb-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/rag-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/rest-gateway</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/slack-integration</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/developing/tutorials/sql-database</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/enterprise/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/enterprise/installation</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/enterprise/rbac-setup-guide</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/enterprise/single-sign-on</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/architecture</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/introduction</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/getting-started/try-agent-mesh</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/installing-and-configuring/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/installing-and-configuring/configurations</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/installing-and-configuring/installation</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/installing-and-configuring/large_language_models</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/installing-and-configuring/run-project</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/migrations/a2a-upgrade/a2a-gateway-upgrade-to-0.3.0</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://solacelabs.github.io/solace-agent-mesh/docs/documentation/migrations/a2a-upgrade/a2a-technical-migration-map</loc><changefreq>weekly</changefreq><priority>0.5</priority></url></urlset>
@@ -1 +1 @@
1
- __version__ = "1.5.0"
1
+ __version__ = "1.5.1"
@@ -69,7 +69,7 @@ var zp=Object.defineProperty;var $p=(e,t,n)=>t in e?zp(e,t,{enumerable:!0,config
69
69
  [&>button]:dark:!border-[var(--color-secondary-w70)]
70
70
 
71
71
  ${e}
72
- `.trim().replace(/\s+/g," ");function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Sh(e,t){const n=u.createContext(t),r=s=>{const{children:i,...l}=s,c=u.useMemo(()=>l,Object.values(l));return a.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Pn(e,t=[]){let n=[];function r(s,i){const l=u.createContext(i),c=n.length;n=[...n,i];const d=p=>{var b;const{scope:m,children:h,...x}=p,g=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,v=u.useMemo(()=>x,Object.values(x));return a.jsx(g.Provider,{value:v,children:h})};d.displayName=s+"Provider";function f(p,m){var g;const h=((g=m==null?void 0:m[e])==null?void 0:g[c])||l,x=u.useContext(h);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(l){const c=(l==null?void 0:l[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Ch(o,...t)]}function Ch(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:c,scopeName:d})=>{const p=c(s)[`__scope${d}`];return{...l,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Eh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_e=Eh.reduce((e,t)=>{const n=Un(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Th(e,t){e&&Kr.flushSync(()=>e.dispatchEvent(t))}function _n(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ah(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var kh="DismissableLayer",qs="dismissableLayer.update",Nh="dismissableLayer.pointerDownOutside",_h="dismissableLayer.focusOutside",Ra,Tc=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qr=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,d=u.useContext(Tc),[f,p]=u.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=u.useState({}),x=ze(t,k=>p(k)),g=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=f?g.indexOf(f):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,T=Mh(k=>{const _=k.target,G=[...d.branches].some(U=>U.contains(_));!E||G||(o==null||o(k),i==null||i(k),k.defaultPrevented||l==null||l())},m),j=Rh(k=>{const _=k.target;[...d.branches].some(U=>U.contains(_))||(s==null||s(k),i==null||i(k),k.defaultPrevented||l==null||l())},m);return Ah(k=>{w===d.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ra=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Pa(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ra)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Pa())},[f,d]),u.useEffect(()=>{const k=()=>h({});return document.addEventListener(qs,k),()=>document.removeEventListener(qs,k)},[]),a.jsx(_e.div,{...c,ref:x,style:{pointerEvents:y?E?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,j.onFocusCapture),onBlurCapture:he(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,T.onPointerDownCapture)})});qr.displayName=kh;var Ih="DismissableLayerBranch",jh=u.forwardRef((e,t)=>{const n=u.useContext(Tc),r=u.useRef(null),o=ze(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(_e.div,{...e,ref:o})});jh.displayName=Ih;function Mh(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){Ac(Nh,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Rh(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ac(_h,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pa(){const e=new CustomEvent(qs);document.dispatchEvent(e)}function Ac(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Th(o,s):o.dispatchEvent(s)}var dt=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},Ph=Ci[" useId ".trim().toString()]||(()=>{}),Lh=0;function an(e){const[t,n]=u.useState(Ph());return dt(()=>{n(r=>r??String(Lh++))},[e]),t?`radix-${t}`:""}const Dh=["top","right","bottom","left"],In=Math.min,Mt=Math.max,Mo=Math.round,uo=Math.floor,ln=e=>({x:e,y:e}),Oh={left:"right",right:"left",bottom:"top",top:"bottom"},Fh={start:"end",end:"start"};function Xs(e,t,n){return Mt(e,In(t,n))}function bn(e,t){return typeof e=="function"?e(t):e}function yn(e){return e.split("-")[0]}function Cr(e){return e.split("-")[1]}function Ii(e){return e==="x"?"y":"x"}function ji(e){return e==="y"?"height":"width"}const zh=new Set(["top","bottom"]);function on(e){return zh.has(yn(e))?"y":"x"}function Mi(e){return Ii(on(e))}function $h(e,t,n){n===void 0&&(n=!1);const r=Cr(e),o=Mi(e),s=ji(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ro(i)),[i,Ro(i)]}function Bh(e){const t=Ro(e);return[Zs(e),t,Zs(t)]}function Zs(e){return e.replace(/start|end/g,t=>Fh[t])}const La=["left","right"],Da=["right","left"],Uh=["top","bottom"],Hh=["bottom","top"];function Wh(e,t,n){switch(e){case"top":case"bottom":return n?t?Da:La:t?La:Da;case"left":case"right":return t?Uh:Hh;default:return[]}}function Gh(e,t,n,r){const o=Cr(e);let s=Wh(yn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Zs)))),s}function Ro(e){return e.replace(/left|right|bottom|top/g,t=>Oh[t])}function Vh(e){return{top:0,right:0,bottom:0,left:0,...e}}function kc(e){return typeof e!="number"?Vh(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Oa(e,t,n){let{reference:r,floating:o}=e;const s=on(t),i=Mi(t),l=ji(i),c=yn(t),d=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let h;switch(c){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Cr(t)){case"start":h[i]-=m*(n&&d?-1:1);break;case"end":h[i]+=m*(n&&d?-1:1);break}return h}const Yh=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Oa(d,r,c),m=r,h={},x=0;for(let g=0;g<l.length;g++){const{name:v,fn:b}=l[g],{x:w,y,data:E,reset:T}=await b({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:d,platform:i,elements:{reference:e,floating:t}});f=w??f,p=y??p,h={...h,[v]:{...h[v],...E}},T&&x<=50&&(x++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(d=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:f,y:p}=Oa(d,m,c)),g=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:h}};async function zr(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=bn(t,e),x=kc(h),v=l[m?p==="floating"?"reference":"floating":p],b=Po(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},T=Po(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:y,strategy:c}):w);return{top:(b.top-T.top+x.top)/E.y,bottom:(T.bottom-b.bottom+x.bottom)/E.y,left:(b.left-T.left+x.left)/E.x,right:(T.right-b.right+x.right)/E.x}}const Kh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=bn(e,t)||{};if(d==null)return{};const p=kc(f),m={x:n,y:r},h=Mi(o),x=ji(h),g=await i.getDimensions(d),v=h==="y",b=v?"top":"left",w=v?"bottom":"right",y=v?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[h]-m[h]-s.floating[x],T=m[h]-s.reference[h],j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let k=j?j[y]:0;(!k||!await(i.isElement==null?void 0:i.isElement(j)))&&(k=l.floating[y]||s.floating[x]);const _=E/2-T/2,G=k/2-g[x]/2-1,U=In(p[b],G),B=In(p[w],G),Z=U,J=k-g[x]-B,D=k/2-g[x]/2+_,X=Xs(Z,D,J),A=!c.arrow&&Cr(o)!=null&&D!==X&&s.reference[x]/2-(D<Z?U:B)-g[x]/2<0,Y=A?D<Z?D-Z:D-J:0;return{[h]:m[h]+Y,data:{[h]:X,centerOffset:D-X-Y,...A&&{alignmentOffset:Y}},reset:A}}}),qh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...v}=bn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=yn(o),w=on(l),y=yn(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=m||(y||!g?[Ro(l)]:Bh(l)),j=x!=="none";!m&&j&&T.push(...Gh(l,g,x,E));const k=[l,...T],_=await zr(t,v),G=[];let U=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&G.push(_[b]),p){const D=$h(o,i,E);G.push(_[D[0]],_[D[1]])}if(U=[...U,{placement:o,overflows:G}],!G.every(D=>D<=0)){var B,Z;const D=(((B=s.flip)==null?void 0:B.index)||0)+1,X=k[D];if(X&&(!(p==="alignment"?w!==on(X):!1)||U.every(C=>on(C.placement)===w?C.overflows[0]>0:!0)))return{data:{index:D,overflows:U},reset:{placement:X}};let A=(Z=U.filter(Y=>Y.overflows[0]<=0).sort((Y,C)=>Y.overflows[1]-C.overflows[1])[0])==null?void 0:Z.placement;if(!A)switch(h){case"bestFit":{var J;const Y=(J=U.filter(C=>{if(j){const I=on(C.placement);return I===w||I==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(I=>I>0).reduce((I,F)=>I+F,0)]).sort((C,I)=>C[1]-I[1])[0])==null?void 0:J[0];Y&&(A=Y);break}case"initialPlacement":A=l;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Fa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function za(e){return Dh.some(t=>e[t]>=0)}const Xh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=bn(e,t);switch(r){case"referenceHidden":{const s=await zr(t,{...o,elementContext:"reference"}),i=Fa(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:za(i)}}}case"escaped":{const s=await zr(t,{...o,altBoundary:!0}),i=Fa(s,n.floating);return{data:{escapedOffsets:i,escaped:za(i)}}}default:return{}}}}},Nc=new Set(["left","top"]);async function Zh(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=yn(n),l=Cr(n),c=on(n)==="y",d=Nc.has(i)?-1:1,f=s&&c?-1:1,p=bn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(h=l==="end"?x*-1:x),c?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Jh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,c=await Zh(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Qh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}},...c}=bn(e,t),d={x:n,y:r},f=await zr(t,c),p=on(yn(o)),m=Ii(p);let h=d[m],x=d[p];if(s){const v=m==="y"?"top":"left",b=m==="y"?"bottom":"right",w=h+f[v],y=h-f[b];h=Xs(w,h,y)}if(i){const v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",w=x+f[v],y=x-f[b];x=Xs(w,x,y)}const g=l.fn({...t,[m]:h,[p]:x});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:s,[p]:i}}}}}},eg=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=bn(e,t),f={x:n,y:r},p=on(o),m=Ii(p);let h=f[m],x=f[p];const g=bn(l,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const y=m==="y"?"height":"width",E=s.reference[m]-s.floating[y]+v.mainAxis,T=s.reference[m]+s.reference[y]-v.mainAxis;h<E?h=E:h>T&&(h=T)}if(d){var b,w;const y=m==="y"?"width":"height",E=Nc.has(yn(o)),T=s.reference[p]-s.floating[y]+(E&&((b=i.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),j=s.reference[p]+s.reference[y]+(E?0:((w=i.offset)==null?void 0:w[p])||0)-(E?v.crossAxis:0);x<T?x=T:x>j&&(x=j)}return{[m]:h,[p]:x}}}},tg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:c=()=>{},...d}=bn(e,t),f=await zr(t,d),p=yn(o),m=Cr(o),h=on(o)==="y",{width:x,height:g}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=m===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=p,v=m==="end"?"top":"bottom");const w=g-f.top-f.bottom,y=x-f.left-f.right,E=In(g-f[v],w),T=In(x-f[b],y),j=!t.middlewareData.shift;let k=E,_=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),j&&!m){const U=Mt(f.left,0),B=Mt(f.right,0),Z=Mt(f.top,0),J=Mt(f.bottom,0);h?_=x-2*(U!==0||B!==0?U+B:Mt(f.left,f.right)):k=g-2*(Z!==0||J!==0?Z+J:Mt(f.top,f.bottom))}await c({...t,availableWidth:_,availableHeight:k});const G=await i.getDimensions(l.floating);return x!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Ko(){return typeof window<"u"}function Er(e){return _c(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(_c(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _c(e){return Ko()?e instanceof Node||e instanceof Pt(e).Node:!1}function qt(e){return Ko()?e instanceof Element||e instanceof Pt(e).Element:!1}function un(e){return Ko()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function $a(e){return!Ko()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}const ng=new Set(["inline","contents"]);function Xr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ng.has(o)}const rg=new Set(["table","td","th"]);function og(e){return rg.has(Er(e))}const sg=[":popover-open",":modal"];function qo(e){return sg.some(t=>{try{return e.matches(t)}catch{return!1}})}const ig=["transform","translate","scale","rotate","perspective"],ag=["transform","translate","scale","rotate","perspective","filter"],lg=["paint","layout","strict","content"];function Ri(e){const t=Pi(),n=qt(e)?Xt(e):e;return ig.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ag.some(r=>(n.willChange||"").includes(r))||lg.some(r=>(n.contain||"").includes(r))}function cg(e){let t=jn(e);for(;un(t)&&!mr(t);){if(Ri(t))return t;if(qo(t))return null;t=jn(t)}return null}function Pi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ug=new Set(["html","body","#document"]);function mr(e){return ug.has(Er(e))}function Xt(e){return Pt(e).getComputedStyle(e)}function Xo(e){return qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jn(e){if(Er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$a(e)&&e.host||dn(e);return $a(t)?t.host:t}function Ic(e){const t=jn(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:un(t)&&Xr(t)?t:Ic(t)}function $r(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ic(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Pt(o);if(s){const l=Js(i);return t.concat(i,i.visualViewport||[],Xr(o)?o:[],l&&n?$r(l):[])}return t.concat(o,$r(o,[],n))}function Js(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jc(e){const t=Xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=un(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Mo(n)!==s||Mo(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function Li(e){return qt(e)?e:e.contextElement}function cr(e){const t=Li(e);if(!un(t))return ln(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=jc(t);let i=(s?Mo(n.width):n.width)/r,l=(s?Mo(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const dg=ln(0);function Mc(e){const t=Pt(e);return!Pi()||!t.visualViewport?dg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pt(e)?!1:t}function Hn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Li(e);let i=ln(1);t&&(r?qt(r)&&(i=cr(r)):i=cr(e));const l=fg(s,n,r)?Mc(s):ln(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const m=Pt(s),h=r&&qt(r)?Pt(r):r;let x=m,g=Js(x);for(;g&&r&&h!==x;){const v=cr(g),b=g.getBoundingClientRect(),w=Xt(g),y=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,E=b.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,d*=v.y,f*=v.x,p*=v.y,c+=y,d+=E,x=Pt(g),g=Js(x)}}return Po({width:f,height:p,x:c,y:d})}function Zo(e,t){const n=Xo(e).scrollLeft;return t?t.left+n:Hn(dn(e)).left+n}function Rc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Zo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function pg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=dn(r),l=t?qo(t.floating):!1;if(r===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=ln(1);const f=ln(0),p=un(r);if((p||!p&&!s)&&((Er(r)!=="body"||Xr(i))&&(c=Xo(r)),un(r))){const h=Hn(r);d=cr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=i&&!p&&!s?Rc(i,c):ln(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function mg(e){return Array.from(e.getClientRects())}function hg(e){const t=dn(e),n=Xo(e),r=e.ownerDocument.body,o=Mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Zo(e);const l=-n.scrollTop;return Xt(r).direction==="rtl"&&(i+=Mt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}const Ba=25;function gg(e,t){const n=Pt(e),r=dn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const f=Pi();(!f||f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=Zo(r);if(d<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-h);x<=Ba&&(s-=x)}else d<=Ba&&(s+=d);return{width:s,height:i,x:l,y:c}}const xg=new Set(["absolute","fixed"]);function vg(e,t){const n=Hn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=un(e)?cr(e):ln(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:i,height:l,x:c,y:d}}function Ua(e,t,n){let r;if(t==="viewport")r=gg(e,n);else if(t==="document")r=hg(dn(e));else if(qt(t))r=vg(t,n);else{const o=Mc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Po(r)}function Pc(e,t){const n=jn(e);return n===t||!qt(n)||mr(n)?!1:Xt(n).position==="fixed"||Pc(n,t)}function wg(e,t){const n=t.get(e);if(n)return n;let r=$r(e,[],!1).filter(l=>qt(l)&&Er(l)!=="body"),o=null;const s=Xt(e).position==="fixed";let i=s?jn(e):e;for(;qt(i)&&!mr(i);){const l=Xt(i),c=Ri(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&xg.has(o.position)||Xr(i)&&!c&&Pc(e,i))?r=r.filter(f=>f!==i):o=l,i=jn(i)}return t.set(e,r),r}function bg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?qo(t)?[]:wg(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,f)=>{const p=Ua(t,f,o);return d.top=Mt(p.top,d.top),d.right=In(p.right,d.right),d.bottom=In(p.bottom,d.bottom),d.left=Mt(p.left,d.left),d},Ua(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yg(e){const{width:t,height:n}=jc(e);return{width:t,height:n}}function Sg(e,t,n){const r=un(t),o=dn(t),s=n==="fixed",i=Hn(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=ln(0);function d(){c.x=Zo(o)}if(r||!r&&!s)if((Er(t)!=="body"||Xr(o))&&(l=Xo(t)),r){const h=Hn(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Rc(o,l):ln(0),p=i.left+l.scrollLeft-c.x-f.x,m=i.top+l.scrollTop-c.y-f.y;return{x:p,y:m,width:i.width,height:i.height}}function bs(e){return Xt(e).position==="static"}function Ha(e,t){if(!un(e)||Xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function Lc(e,t){const n=Pt(e);if(qo(e))return n;if(!un(e)){let o=jn(e);for(;o&&!mr(o);){if(qt(o)&&!bs(o))return o;o=jn(o)}return n}let r=Ha(e,t);for(;r&&og(r)&&bs(r);)r=Ha(r,t);return r&&mr(r)&&bs(r)&&!Ri(r)?n:r||cg(e)||n}const Cg=async function(e){const t=this.getOffsetParent||Lc,n=this.getDimensions,r=await n(e.floating);return{reference:Sg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eg(e){return Xt(e).direction==="rtl"}const Tg={convertOffsetParentRelativeRectToViewportRelativeRect:pg,getDocumentElement:dn,getClippingRect:bg,getOffsetParent:Lc,getElementRects:Cg,getClientRects:mg,getDimensions:yg,getScale:cr,isElement:qt,isRTL:Eg};function Dc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ag(e,t){let n=null,r;const o=dn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:h}=d;if(l||t(),!m||!h)return;const x=uo(p),g=uo(o.clientWidth-(f+m)),v=uo(o.clientHeight-(p+h)),b=uo(f),y={rootMargin:-x+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Mt(0,In(1,c))||1};let E=!0;function T(j){const k=j[0].intersectionRatio;if(k!==c){if(!E)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Dc(d,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(T,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,y)}n.observe(e)}return i(!0),s}function kg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Li(e),f=o||s?[...d?$r(d):[],...$r(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=d&&l?Ag(d,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(b=>{let[w]=b;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),d&&!c&&h.observe(d),h.observe(t));let x,g=c?Hn(e):null;c&&v();function v(){const b=Hn(e);g&&!Dc(g,b)&&n(),g=b,x=requestAnimationFrame(v)}return n(),()=>{var b;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p==null||p(),(b=h)==null||b.disconnect(),h=null,c&&cancelAnimationFrame(x)}}const Ng=Jh,_g=Qh,Ig=qh,jg=tg,Mg=Xh,Wa=Kh,Rg=eg,Pg=(e,t,n)=>{const r=new Map,o={platform:Tg,...n},s={...o.platform,_c:r};return Yh(e,t,{...o,platform:s})};var Lg=typeof document<"u",Dg=function(){},ko=Lg?u.useLayoutEffect:Dg;function Lo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Lo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Oc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ga(e,t){const n=Oc(e);return Math.round(t*n)/n}function ys(e){const t=u.useRef(e);return ko(()=>{t.current=e}),t}function Og(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);Lo(m,r)||h(r);const[x,g]=u.useState(null),[v,b]=u.useState(null),w=u.useCallback(C=>{C!==j.current&&(j.current=C,g(C))},[]),y=u.useCallback(C=>{C!==k.current&&(k.current=C,b(C))},[]),E=s||x,T=i||v,j=u.useRef(null),k=u.useRef(null),_=u.useRef(f),G=c!=null,U=ys(c),B=ys(o),Z=ys(d),J=u.useCallback(()=>{if(!j.current||!k.current)return;const C={placement:t,strategy:n,middleware:m};B.current&&(C.platform=B.current),Pg(j.current,k.current,C).then(I=>{const F={...I,isPositioned:Z.current!==!1};D.current&&!Lo(_.current,F)&&(_.current=F,Kr.flushSync(()=>{p(F)}))})},[m,t,n,B,Z]);ko(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,p(C=>({...C,isPositioned:!1})))},[d]);const D=u.useRef(!1);ko(()=>(D.current=!0,()=>{D.current=!1}),[]),ko(()=>{if(E&&(j.current=E),T&&(k.current=T),E&&T){if(U.current)return U.current(E,T,J);J()}},[E,T,J,U,G]);const X=u.useMemo(()=>({reference:j,floating:k,setReference:w,setFloating:y}),[w,y]),A=u.useMemo(()=>({reference:E,floating:T}),[E,T]),Y=u.useMemo(()=>{const C={position:n,left:0,top:0};if(!A.floating)return C;const I=Ga(A.floating,f.x),F=Ga(A.floating,f.y);return l?{...C,transform:"translate("+I+"px, "+F+"px)",...Oc(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:F}},[n,l,A.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:J,refs:X,elements:A,floatingStyles:Y}),[f,J,X,A,Y])}const Fg=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Wa({element:r.current,padding:o}).fn(n):{}:r?Wa({element:r,padding:o}).fn(n):{}}}},zg=(e,t)=>({...Ng(e),options:[e,t]}),$g=(e,t)=>({..._g(e),options:[e,t]}),Bg=(e,t)=>({...Rg(e),options:[e,t]}),Ug=(e,t)=>({...Ig(e),options:[e,t]}),Hg=(e,t)=>({...jg(e),options:[e,t]}),Wg=(e,t)=>({...Mg(e),options:[e,t]}),Gg=(e,t)=>({...Fg(e),options:[e,t]});var Vg="Arrow",Fc=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(_e.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fc.displayName=Vg;var Yg=Fc;function Kg(e){const[t,n]=u.useState(void 0);return dt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Di="Popper",[zc,Tr]=Pn(Di),[qg,$c]=zc(Di),Bc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return a.jsx(qg,{scope:t,anchor:r,onAnchorChange:o,children:n})};Bc.displayName=Di;var Uc="PopperAnchor",Hc=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=$c(Uc,n),i=u.useRef(null),l=ze(t,i),c=u.useRef(null);return u.useEffect(()=>{const d=c.current;c.current=(r==null?void 0:r.current)||i.current,d!==c.current&&s.onAnchorChange(c.current)}),r?null:a.jsx(_e.div,{...o,ref:l})});Hc.displayName=Uc;var Oi="PopperContent",[Xg,Zg]=zc(Oi),Wc=u.forwardRef((e,t)=>{var N,K,ee,te,le,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:x,...g}=e,v=$c(Oi,n),[b,w]=u.useState(null),y=ze(t,de=>w(de)),[E,T]=u.useState(null),j=Kg(E),k=(j==null?void 0:j.width)??0,_=(j==null?void 0:j.height)??0,G=r+(s!=="center"?"-"+s:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(d)?d:[d],Z=B.length>0,J={padding:U,boundary:B.filter(Qg),altBoundary:Z},{refs:D,floatingStyles:X,placement:A,isPositioned:Y,middlewareData:C}=Og({strategy:"fixed",placement:G,whileElementsMounted:(...de)=>kg(...de,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[zg({mainAxis:o+_,alignmentAxis:i}),c&&$g({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Bg():void 0,...J}),c&&Ug({...J}),Hg({...J,apply:({elements:de,rects:we,availableWidth:je,availableHeight:Re})=>{const{width:Le,height:Me}=we.reference,We=de.floating.style;We.setProperty("--radix-popper-available-width",`${je}px`),We.setProperty("--radix-popper-available-height",`${Re}px`),We.setProperty("--radix-popper-anchor-width",`${Le}px`),We.setProperty("--radix-popper-anchor-height",`${Me}px`)}}),E&&Gg({element:E,padding:l}),ex({arrowWidth:k,arrowHeight:_}),m&&Wg({strategy:"referenceHidden",...J})]}),[I,F]=Yc(A),R=_n(x);dt(()=>{Y&&(R==null||R())},[Y,R]);const Q=(N=C.arrow)==null?void 0:N.x,O=(K=C.arrow)==null?void 0:K.y,W=((ee=C.arrow)==null?void 0:ee.centerOffset)!==0,[z,q]=u.useState();return dt(()=>{b&&q(window.getComputedStyle(b).zIndex)},[b]),a.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Y?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(te=C.transformOrigin)==null?void 0:te.x,(le=C.transformOrigin)==null?void 0:le.y].join(" "),...((ne=C.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(Xg,{scope:n,placedSide:I,onArrowChange:T,arrowX:Q,arrowY:O,shouldHideArrow:W,children:a.jsx(_e.div,{"data-side":I,"data-align":F,...g,ref:y,style:{...g.style,animation:Y?void 0:"none"}})})})});Wc.displayName=Oi;var Gc="PopperArrow",Jg={top:"bottom",right:"left",bottom:"top",left:"right"},Vc=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Zg(Gc,r),i=Jg[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(Yg,{...o,ref:n,style:{...o.style,display:"block"}})})});Vc.displayName=Gc;function Qg(e){return e!==null}var ex=e=>({name:"transformOrigin",options:e,fn(t){var v,b,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=Yc(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((b=o.arrow)==null?void 0:b.x)??0)+l/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let x="",g="";return d==="bottom"?(x=i?p:`${m}px`,g=`${-c}px`):d==="top"?(x=i?p:`${m}px`,g=`${r.floating.height+c}px`):d==="right"?(x=`${-c}px`,g=i?p:`${h}px`):d==="left"&&(x=`${r.floating.width+c}px`,g=i?p:`${h}px`),{data:{x,y:g}}}});function Yc(e){const[t,n="center"]=e.split("-");return[t,n]}var Fi=Bc,Jo=Hc,zi=Wc,$i=Vc,tx="Portal",Zr=u.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=u.useState(!1);dt(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Up.createPortal(a.jsx(_e.div,{...r,ref:t}),i):null});Zr.displayName=tx;function nx(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Cn=e=>{const{present:t,children:n}=e,r=rx(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=ze(r.ref,ox(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};Cn.displayName="Presence";function rx(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[l,c]=nx(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=fo(r.current);s.current=l==="mounted"?d:"none"},[l]),dt(()=>{const d=r.current,f=o.current;if(f!==e){const m=s.current,h=fo(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),dt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const g=fo(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=h=>{h.target===t&&(s.current=fo(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function fo(e){return(e==null?void 0:e.animationName)||"none"}function ox(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;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)}var sx=Ci[" useInsertionEffect ".trim().toString()]||dt;function Wn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=ix({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const d=u.useCallback(f=>{var p;if(l){const m=ax(f)?f(e):f;m!==e&&((p=i.current)==null||p.call(i,m))}else s(f)},[l,e,s,i]);return[c,d]}function ix({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return sx(()=>{s.current=t},[t]),u.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function ax(e){return typeof e=="function"}var Kc=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),lx="VisuallyHidden",qc=u.forwardRef((e,t)=>a.jsx(_e.span,{...e,ref:t,style:{...Kc,...e.style}}));qc.displayName=lx;var cx=qc,[Qo]=Pn("Tooltip",[Tr]),es=Tr(),Xc="TooltipProvider",ux=700,Qs="tooltip.open",[dx,Bi]=Qo(Xc),Zc=e=>{const{__scopeTooltip:t,delayDuration:n=ux,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=u.useRef(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),a.jsx(dx,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:s})};Zc.displayName=Xc;var Br="Tooltip",[fx,Jr]=Qo(Br),Jc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=e,c=Bi(Br,e.__scopeTooltip),d=es(t),[f,p]=u.useState(null),m=an(),h=u.useRef(0),x=i??c.disableHoverableContent,g=l??c.delayDuration,v=u.useRef(!1),[b,w]=Wn({prop:r,defaultProp:o??!1,onChange:k=>{k?(c.onOpen(),document.dispatchEvent(new CustomEvent(Qs))):c.onClose(),s==null||s(k)},caller:Br}),y=u.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),E=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,w(!0)},[w]),T=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),j=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,w(!0),h.current=0},g)},[g,w]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),a.jsx(Fi,{...d,children:a.jsx(fx,{scope:t,contentId:m,open:b,stateAttribute:y,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?j():E()},[c.isOpenDelayedRef,j,E]),onTriggerLeave:u.useCallback(()=>{x?T():(window.clearTimeout(h.current),h.current=0)},[T,x]),onOpen:E,onClose:T,disableHoverableContent:x,children:n})})};Jc.displayName=Br;var ei="TooltipTrigger",Qc=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Jr(ei,n),s=Bi(ei,n),i=es(n),l=u.useRef(null),c=ze(t,l,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),p=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),a.jsx(Jo,{asChild:!0,...i,children:a.jsx(_e.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:he(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:he(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:he(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:he(e.onBlur,o.onClose),onClick:he(e.onClick,o.onClose)})})});Qc.displayName=ei;var Ui="TooltipPortal",[px,mx]=Qo(Ui,{forceMount:void 0}),eu=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Jr(Ui,t);return a.jsx(px,{scope:t,forceMount:n,children:a.jsx(Cn,{present:n||s.open,children:a.jsx(Zr,{asChild:!0,container:o,children:r})})})};eu.displayName=Ui;var hr="TooltipContent",tu=u.forwardRef((e,t)=>{const n=mx(hr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Jr(hr,e.__scopeTooltip);return a.jsx(Cn,{present:r||i.open,children:i.disableHoverableContent?a.jsx(nu,{side:o,...s,ref:t}):a.jsx(hx,{side:o,...s,ref:t})})}),hx=u.forwardRef((e,t)=>{const n=Jr(hr,e.__scopeTooltip),r=Bi(hr,e.__scopeTooltip),o=u.useRef(null),s=ze(t,o),[i,l]=u.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,m=u.useCallback(()=>{l(null),p(!1)},[p]),h=u.useCallback((x,g)=>{const v=x.currentTarget,b={x:x.clientX,y:x.clientY},w=wx(b,v.getBoundingClientRect()),y=bx(b,w),E=yx(g.getBoundingClientRect()),T=Cx([...y,...E]);l(T),p(!0)},[p]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(c&&f){const x=v=>h(v,f),g=v=>h(v,c);return c.addEventListener("pointerleave",x),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",g)}}},[c,f,h,m]),u.useEffect(()=>{if(i){const x=g=>{const v=g.target,b={x:g.clientX,y:g.clientY},w=(c==null?void 0:c.contains(v))||(f==null?void 0:f.contains(v)),y=!Sx(b,i);w?m():y&&(m(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,f,i,d,m]),a.jsx(nu,{...e,ref:s})}),[gx,xx]=Qo(Br,{isInside:!1}),vx=_m("TooltipContent"),nu=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,c=Jr(hr,n),d=es(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Qs,f),()=>document.removeEventListener(Qs,f)),[f]),u.useEffect(()=>{if(c.trigger){const p=m=>{const h=m.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),a.jsx(qr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:a.jsxs(zi,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(vx,{children:r}),a.jsx(gx,{scope:n,isInside:!0,children:a.jsx(cx,{id:c.contentId,role:"tooltip",children:o||r})})]})})});tu.displayName=hr;var ru="TooltipArrow",ou=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=es(n);return xx(ru,n).isInside?null:a.jsx($i,{...o,...r,ref:t})});ou.displayName=ru;function wx(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function bx(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function yx(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Sx(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s],c=t[i],d=l.x,f=l.y,p=c.x,m=c.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function Cx(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ex(t)}function Ex(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Tx=Zc,Ax=Jc,kx=Qc,Nx=eu,_x=tu,Ix=ou;function jx({delayDuration:e=0,...t}){return a.jsx(Tx,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Hi({...e}){return a.jsx(jx,{delayDuration:500,children:a.jsx(Ax,{"data-slot":"tooltip",...e})})}function Wi({...e}){return a.jsx(kx,{"data-slot":"tooltip-trigger",...e})}function Gi({className:e,sideOffset:t=0,children:n,...r}){return a.jsx(Nx,{children:a.jsxs(_x,{"data-slot":"tooltip-content",sideOffset:t,className:ve("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,a.jsx(Ix,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const su="text-[var(--color-primary-wMain)] hover:text-[var(--color-primary-text-w60)] dark:text-[var(--color-primary-wMain)] dark:hover:text-[var(--color-primary-text-w10)]",Ss=su+" hover:bg-[var(--color-primary-w10)] dark:hover:bg-[var(--color-primary-w60)]",Mx=Rn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm font-semibold transition-all disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 cursor-pointer disabled:cursor-not-allowed disabled:hover:bg-transparent dark:disabled:hover:bg-transparent",{variants:{variant:{default:"text-[var(--color-primary-text-w10)] bg-[var(--color-primary-wMain)] hover:bg-[var(--color-primary-w100)] dark:hover:bg-[var(--color-primary-w60)]",destructive:"text-[var(--color-primary-text-w10)] bg-[var(--color-error-wMain)] hover:bg-[var(--color-error-w70)]",outline:Ss+" border border-1 border-[var(--color-primary-wMain)]",secondary:Ss,ghost:Ss,link:su+" underline-offset-4 hover:underline"},size:{default:"h-9 px-5 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function me({className:e,variant:t,size:n,asChild:r=!1,tooltip:o="",testid:s="",...i}){const l=r?dc:"button",c=o?{...i,"aria-label":o}:i,d=a.jsx(l,{"data-slot":"button","data-testid":s||o||i.title,className:ve(Mx({variant:t,size:n,className:e})),...c});return o?a.jsxs(Hi,{children:[a.jsx(Wi,{asChild:!0,children:d}),a.jsx(Gi,{children:o})]}):d}const iu=({onClick:e,text:t="View Agent Workflow"})=>a.jsx(me,{variant:"ghost",size:"sm",onClick:e,tooltip:t,children:a.jsx(Ao,{className:"h-4 w-4"})}),Vi=u.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ve("flex min-h-[80px] w-full rounded-md border px-3 py-2 placeholder:opacity-75 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Vi.displayName="Textarea";var Cs="focusScope.autoFocusOnMount",Es="focusScope.autoFocusOnUnmount",Va={bubbles:!1,cancelable:!0},Rx="FocusScope",ts=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[l,c]=u.useState(null),d=_n(o),f=_n(s),p=u.useRef(null),m=ze(t,g=>c(g)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let g=function(y){if(h.paused||!l)return;const E=y.target;l.contains(E)?p.current=E:Tn(p.current,{select:!0})},v=function(y){if(h.paused||!l)return;const E=y.relatedTarget;E!==null&&(l.contains(E)||Tn(p.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const T of y)T.removedNodes.length>0&&Tn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const w=new MutationObserver(b);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),w.disconnect()}}},[r,l,h.paused]),u.useEffect(()=>{if(l){Ka.add(h);const g=document.activeElement;if(!l.contains(g)){const b=new CustomEvent(Cs,Va);l.addEventListener(Cs,d),l.dispatchEvent(b),b.defaultPrevented||(Px(zx(au(l)),{select:!0}),document.activeElement===g&&Tn(l))}return()=>{l.removeEventListener(Cs,d),setTimeout(()=>{const b=new CustomEvent(Es,Va);l.addEventListener(Es,f),l.dispatchEvent(b),b.defaultPrevented||Tn(g??document.body,{select:!0}),l.removeEventListener(Es,f),Ka.remove(h)},0)}}},[l,d,f,h]);const x=u.useCallback(g=>{if(!n&&!r||h.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const w=g.currentTarget,[y,E]=Lx(w);y&&E?!g.shiftKey&&b===E?(g.preventDefault(),n&&Tn(y,{select:!0})):g.shiftKey&&b===y&&(g.preventDefault(),n&&Tn(E,{select:!0})):b===w&&g.preventDefault()}},[n,r,h.paused]);return a.jsx(_e.div,{tabIndex:-1,...i,ref:m,onKeyDown:x})});ts.displayName=Rx;function Px(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tn(r,{select:t}),document.activeElement!==n)return}function Lx(e){const t=au(e),n=Ya(t,e),r=Ya(t.reverse(),e);return[n,r]}function au(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ya(e,t){for(const n of e)if(!Dx(n,{upTo:t}))return n}function Dx(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ox(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ox(e)&&t&&e.select()}}var Ka=Fx();function Fx(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qa(e,t),e.unshift(t)},remove(t){var n;e=qa(e,t),(n=e[0])==null||n.resume()}}}function qa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zx(e){return e.filter(t=>t.tagName!=="A")}var Ts=0;function Yi(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xa()),document.body.insertAdjacentElement("beforeend",e[1]??Xa()),Ts++,()=>{Ts===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ts--}},[])}function Xa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var rn=function(){return rn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},rn.apply(this,arguments)};function lu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function $x(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var No="right-scroll-bar-position",_o="width-before-scroll-bar",Bx="with-scroll-bars-hidden",Ux="--removed-body-scroll-bar-size";function As(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hx(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Wx=typeof window<"u"?u.useLayoutEffect:u.useEffect,Za=new WeakMap;function Gx(e,t){var n=Hx(null,function(r){return e.forEach(function(o){return As(o,r)})});return Wx(function(){var r=Za.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(l){s.has(l)||As(l,null)}),s.forEach(function(l){o.has(l)||As(l,i)})}Za.set(n,e)},[e]),n}function Vx(e){return e}function Yx(e,t){t===void 0&&(t=Vx);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Kx(e){e===void 0&&(e={});var t=Yx(null);return t.options=rn({async:!0,ssr:!1},e),t}var cu=function(e){var t=e.sideCar,n=lu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,rn({},n))};cu.isSideCarExport=!0;function qx(e,t){return e.useMedium(t),cu}var uu=Kx(),ks=function(){},ns=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:ks,onWheelCapture:ks,onTouchMoveCapture:ks}),o=r[0],s=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,h=e.noRelative,x=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,y=e.gapMode,E=lu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=m,j=Gx([n,t]),k=rn(rn({},E),o);return u.createElement(u.Fragment,null,f&&u.createElement(T,{sideCar:uu,removeScrollBar:d,shards:p,noRelative:h,noIsolation:x,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:y}),i?u.cloneElement(u.Children.only(l),rn(rn({},k),{ref:j})):u.createElement(w,rn({},k,{className:c,ref:j}),l))});ns.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ns.classNames={fullWidth:_o,zeroRight:No};var Xx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xx();return t&&e.setAttribute("nonce",t),e}function Jx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qx(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ev=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Zx())&&(Jx(t,n),Qx(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tv=function(){var e=ev();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},du=function(){var e=tv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},nv={left:0,top:0,right:0,gap:0},Ns=function(e){return parseInt(e||"",10)||0},rv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ns(n),Ns(r),Ns(o)]},ov=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nv;var t=rv(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sv=du(),ur="data-scroll-locked",iv=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
72
+ `.trim().replace(/\s+/g," ");function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Sh(e,t){const n=u.createContext(t),r=s=>{const{children:i,...l}=s,c=u.useMemo(()=>l,Object.values(l));return a.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Pn(e,t=[]){let n=[];function r(s,i){const l=u.createContext(i),c=n.length;n=[...n,i];const d=p=>{var b;const{scope:m,children:h,...x}=p,g=((b=m==null?void 0:m[e])==null?void 0:b[c])||l,v=u.useMemo(()=>x,Object.values(x));return a.jsx(g.Provider,{value:v,children:h})};d.displayName=s+"Provider";function f(p,m){var g;const h=((g=m==null?void 0:m[e])==null?void 0:g[c])||l,x=u.useContext(h);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(l){const c=(l==null?void 0:l[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Ch(o,...t)]}function Ch(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:c,scopeName:d})=>{const p=c(s)[`__scope${d}`];return{...l,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Eh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_e=Eh.reduce((e,t)=>{const n=Un(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Th(e,t){e&&Kr.flushSync(()=>e.dispatchEvent(t))}function _n(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ah(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var kh="DismissableLayer",qs="dismissableLayer.update",Nh="dismissableLayer.pointerDownOutside",_h="dismissableLayer.focusOutside",Ra,Tc=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qr=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,d=u.useContext(Tc),[f,p]=u.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=u.useState({}),x=ze(t,k=>p(k)),g=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=f?g.indexOf(f):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,T=Mh(k=>{const _=k.target,G=[...d.branches].some(U=>U.contains(_));!E||G||(o==null||o(k),i==null||i(k),k.defaultPrevented||l==null||l())},m),j=Rh(k=>{const _=k.target;[...d.branches].some(U=>U.contains(_))||(s==null||s(k),i==null||i(k),k.defaultPrevented||l==null||l())},m);return Ah(k=>{w===d.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ra=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Pa(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ra)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Pa())},[f,d]),u.useEffect(()=>{const k=()=>h({});return document.addEventListener(qs,k),()=>document.removeEventListener(qs,k)},[]),a.jsx(_e.div,{...c,ref:x,style:{pointerEvents:y?E?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,j.onFocusCapture),onBlurCapture:he(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,T.onPointerDownCapture)})});qr.displayName=kh;var Ih="DismissableLayerBranch",jh=u.forwardRef((e,t)=>{const n=u.useContext(Tc),r=u.useRef(null),o=ze(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(_e.div,{...e,ref:o})});jh.displayName=Ih;function Mh(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){Ac(Nh,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Rh(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ac(_h,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pa(){const e=new CustomEvent(qs);document.dispatchEvent(e)}function Ac(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Th(o,s):o.dispatchEvent(s)}var dt=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},Ph=Ci[" useId ".trim().toString()]||(()=>{}),Lh=0;function an(e){const[t,n]=u.useState(Ph());return dt(()=>{n(r=>r??String(Lh++))},[e]),t?`radix-${t}`:""}const Dh=["top","right","bottom","left"],In=Math.min,Mt=Math.max,Mo=Math.round,uo=Math.floor,ln=e=>({x:e,y:e}),Oh={left:"right",right:"left",bottom:"top",top:"bottom"},Fh={start:"end",end:"start"};function Xs(e,t,n){return Mt(e,In(t,n))}function bn(e,t){return typeof e=="function"?e(t):e}function yn(e){return e.split("-")[0]}function Cr(e){return e.split("-")[1]}function Ii(e){return e==="x"?"y":"x"}function ji(e){return e==="y"?"height":"width"}const zh=new Set(["top","bottom"]);function on(e){return zh.has(yn(e))?"y":"x"}function Mi(e){return Ii(on(e))}function $h(e,t,n){n===void 0&&(n=!1);const r=Cr(e),o=Mi(e),s=ji(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ro(i)),[i,Ro(i)]}function Bh(e){const t=Ro(e);return[Zs(e),t,Zs(t)]}function Zs(e){return e.replace(/start|end/g,t=>Fh[t])}const La=["left","right"],Da=["right","left"],Uh=["top","bottom"],Hh=["bottom","top"];function Wh(e,t,n){switch(e){case"top":case"bottom":return n?t?Da:La:t?La:Da;case"left":case"right":return t?Uh:Hh;default:return[]}}function Gh(e,t,n,r){const o=Cr(e);let s=Wh(yn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Zs)))),s}function Ro(e){return e.replace(/left|right|bottom|top/g,t=>Oh[t])}function Vh(e){return{top:0,right:0,bottom:0,left:0,...e}}function kc(e){return typeof e!="number"?Vh(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Oa(e,t,n){let{reference:r,floating:o}=e;const s=on(t),i=Mi(t),l=ji(i),c=yn(t),d=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let h;switch(c){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Cr(t)){case"start":h[i]-=m*(n&&d?-1:1);break;case"end":h[i]+=m*(n&&d?-1:1);break}return h}const Yh=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Oa(d,r,c),m=r,h={},x=0;for(let g=0;g<l.length;g++){const{name:v,fn:b}=l[g],{x:w,y,data:E,reset:T}=await b({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:d,platform:i,elements:{reference:e,floating:t}});f=w??f,p=y??p,h={...h,[v]:{...h[v],...E}},T&&x<=50&&(x++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(d=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:f,y:p}=Oa(d,m,c)),g=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:h}};async function zr(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=bn(t,e),x=kc(h),v=l[m?p==="floating"?"reference":"floating":p],b=Po(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},T=Po(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:y,strategy:c}):w);return{top:(b.top-T.top+x.top)/E.y,bottom:(T.bottom-b.bottom+x.bottom)/E.y,left:(b.left-T.left+x.left)/E.x,right:(T.right-b.right+x.right)/E.x}}const Kh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=bn(e,t)||{};if(d==null)return{};const p=kc(f),m={x:n,y:r},h=Mi(o),x=ji(h),g=await i.getDimensions(d),v=h==="y",b=v?"top":"left",w=v?"bottom":"right",y=v?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[h]-m[h]-s.floating[x],T=m[h]-s.reference[h],j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let k=j?j[y]:0;(!k||!await(i.isElement==null?void 0:i.isElement(j)))&&(k=l.floating[y]||s.floating[x]);const _=E/2-T/2,G=k/2-g[x]/2-1,U=In(p[b],G),B=In(p[w],G),Z=U,J=k-g[x]-B,D=k/2-g[x]/2+_,X=Xs(Z,D,J),A=!c.arrow&&Cr(o)!=null&&D!==X&&s.reference[x]/2-(D<Z?U:B)-g[x]/2<0,Y=A?D<Z?D-Z:D-J:0;return{[h]:m[h]+Y,data:{[h]:X,centerOffset:D-X-Y,...A&&{alignmentOffset:Y}},reset:A}}}),qh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...v}=bn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=yn(o),w=on(l),y=yn(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=m||(y||!g?[Ro(l)]:Bh(l)),j=x!=="none";!m&&j&&T.push(...Gh(l,g,x,E));const k=[l,...T],_=await zr(t,v),G=[];let U=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&G.push(_[b]),p){const D=$h(o,i,E);G.push(_[D[0]],_[D[1]])}if(U=[...U,{placement:o,overflows:G}],!G.every(D=>D<=0)){var B,Z;const D=(((B=s.flip)==null?void 0:B.index)||0)+1,X=k[D];if(X&&(!(p==="alignment"?w!==on(X):!1)||U.every(C=>on(C.placement)===w?C.overflows[0]>0:!0)))return{data:{index:D,overflows:U},reset:{placement:X}};let A=(Z=U.filter(Y=>Y.overflows[0]<=0).sort((Y,C)=>Y.overflows[1]-C.overflows[1])[0])==null?void 0:Z.placement;if(!A)switch(h){case"bestFit":{var J;const Y=(J=U.filter(C=>{if(j){const I=on(C.placement);return I===w||I==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(I=>I>0).reduce((I,F)=>I+F,0)]).sort((C,I)=>C[1]-I[1])[0])==null?void 0:J[0];Y&&(A=Y);break}case"initialPlacement":A=l;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Fa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function za(e){return Dh.some(t=>e[t]>=0)}const Xh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=bn(e,t);switch(r){case"referenceHidden":{const s=await zr(t,{...o,elementContext:"reference"}),i=Fa(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:za(i)}}}case"escaped":{const s=await zr(t,{...o,altBoundary:!0}),i=Fa(s,n.floating);return{data:{escapedOffsets:i,escaped:za(i)}}}default:return{}}}}},Nc=new Set(["left","top"]);async function Zh(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=yn(n),l=Cr(n),c=on(n)==="y",d=Nc.has(i)?-1:1,f=s&&c?-1:1,p=bn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(h=l==="end"?x*-1:x),c?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Jh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,c=await Zh(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Qh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}},...c}=bn(e,t),d={x:n,y:r},f=await zr(t,c),p=on(yn(o)),m=Ii(p);let h=d[m],x=d[p];if(s){const v=m==="y"?"top":"left",b=m==="y"?"bottom":"right",w=h+f[v],y=h-f[b];h=Xs(w,h,y)}if(i){const v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",w=x+f[v],y=x-f[b];x=Xs(w,x,y)}const g=l.fn({...t,[m]:h,[p]:x});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:s,[p]:i}}}}}},eg=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=bn(e,t),f={x:n,y:r},p=on(o),m=Ii(p);let h=f[m],x=f[p];const g=bn(l,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const y=m==="y"?"height":"width",E=s.reference[m]-s.floating[y]+v.mainAxis,T=s.reference[m]+s.reference[y]-v.mainAxis;h<E?h=E:h>T&&(h=T)}if(d){var b,w;const y=m==="y"?"width":"height",E=Nc.has(yn(o)),T=s.reference[p]-s.floating[y]+(E&&((b=i.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),j=s.reference[p]+s.reference[y]+(E?0:((w=i.offset)==null?void 0:w[p])||0)-(E?v.crossAxis:0);x<T?x=T:x>j&&(x=j)}return{[m]:h,[p]:x}}}},tg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:c=()=>{},...d}=bn(e,t),f=await zr(t,d),p=yn(o),m=Cr(o),h=on(o)==="y",{width:x,height:g}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=m===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=p,v=m==="end"?"top":"bottom");const w=g-f.top-f.bottom,y=x-f.left-f.right,E=In(g-f[v],w),T=In(x-f[b],y),j=!t.middlewareData.shift;let k=E,_=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),j&&!m){const U=Mt(f.left,0),B=Mt(f.right,0),Z=Mt(f.top,0),J=Mt(f.bottom,0);h?_=x-2*(U!==0||B!==0?U+B:Mt(f.left,f.right)):k=g-2*(Z!==0||J!==0?Z+J:Mt(f.top,f.bottom))}await c({...t,availableWidth:_,availableHeight:k});const G=await i.getDimensions(l.floating);return x!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Ko(){return typeof window<"u"}function Er(e){return _c(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(_c(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _c(e){return Ko()?e instanceof Node||e instanceof Pt(e).Node:!1}function qt(e){return Ko()?e instanceof Element||e instanceof Pt(e).Element:!1}function un(e){return Ko()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function $a(e){return!Ko()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}const ng=new Set(["inline","contents"]);function Xr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ng.has(o)}const rg=new Set(["table","td","th"]);function og(e){return rg.has(Er(e))}const sg=[":popover-open",":modal"];function qo(e){return sg.some(t=>{try{return e.matches(t)}catch{return!1}})}const ig=["transform","translate","scale","rotate","perspective"],ag=["transform","translate","scale","rotate","perspective","filter"],lg=["paint","layout","strict","content"];function Ri(e){const t=Pi(),n=qt(e)?Xt(e):e;return ig.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ag.some(r=>(n.willChange||"").includes(r))||lg.some(r=>(n.contain||"").includes(r))}function cg(e){let t=jn(e);for(;un(t)&&!mr(t);){if(Ri(t))return t;if(qo(t))return null;t=jn(t)}return null}function Pi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ug=new Set(["html","body","#document"]);function mr(e){return ug.has(Er(e))}function Xt(e){return Pt(e).getComputedStyle(e)}function Xo(e){return qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jn(e){if(Er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$a(e)&&e.host||dn(e);return $a(t)?t.host:t}function Ic(e){const t=jn(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:un(t)&&Xr(t)?t:Ic(t)}function $r(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ic(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Pt(o);if(s){const l=Js(i);return t.concat(i,i.visualViewport||[],Xr(o)?o:[],l&&n?$r(l):[])}return t.concat(o,$r(o,[],n))}function Js(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jc(e){const t=Xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=un(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Mo(n)!==s||Mo(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function Li(e){return qt(e)?e:e.contextElement}function cr(e){const t=Li(e);if(!un(t))return ln(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=jc(t);let i=(s?Mo(n.width):n.width)/r,l=(s?Mo(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const dg=ln(0);function Mc(e){const t=Pt(e);return!Pi()||!t.visualViewport?dg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pt(e)?!1:t}function Hn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Li(e);let i=ln(1);t&&(r?qt(r)&&(i=cr(r)):i=cr(e));const l=fg(s,n,r)?Mc(s):ln(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const m=Pt(s),h=r&&qt(r)?Pt(r):r;let x=m,g=Js(x);for(;g&&r&&h!==x;){const v=cr(g),b=g.getBoundingClientRect(),w=Xt(g),y=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,E=b.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,d*=v.y,f*=v.x,p*=v.y,c+=y,d+=E,x=Pt(g),g=Js(x)}}return Po({width:f,height:p,x:c,y:d})}function Zo(e,t){const n=Xo(e).scrollLeft;return t?t.left+n:Hn(dn(e)).left+n}function Rc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Zo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function pg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=dn(r),l=t?qo(t.floating):!1;if(r===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=ln(1);const f=ln(0),p=un(r);if((p||!p&&!s)&&((Er(r)!=="body"||Xr(i))&&(c=Xo(r)),un(r))){const h=Hn(r);d=cr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=i&&!p&&!s?Rc(i,c):ln(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function mg(e){return Array.from(e.getClientRects())}function hg(e){const t=dn(e),n=Xo(e),r=e.ownerDocument.body,o=Mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Zo(e);const l=-n.scrollTop;return Xt(r).direction==="rtl"&&(i+=Mt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}const Ba=25;function gg(e,t){const n=Pt(e),r=dn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const f=Pi();(!f||f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=Zo(r);if(d<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-h);x<=Ba&&(s-=x)}else d<=Ba&&(s+=d);return{width:s,height:i,x:l,y:c}}const xg=new Set(["absolute","fixed"]);function vg(e,t){const n=Hn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=un(e)?cr(e):ln(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:i,height:l,x:c,y:d}}function Ua(e,t,n){let r;if(t==="viewport")r=gg(e,n);else if(t==="document")r=hg(dn(e));else if(qt(t))r=vg(t,n);else{const o=Mc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Po(r)}function Pc(e,t){const n=jn(e);return n===t||!qt(n)||mr(n)?!1:Xt(n).position==="fixed"||Pc(n,t)}function wg(e,t){const n=t.get(e);if(n)return n;let r=$r(e,[],!1).filter(l=>qt(l)&&Er(l)!=="body"),o=null;const s=Xt(e).position==="fixed";let i=s?jn(e):e;for(;qt(i)&&!mr(i);){const l=Xt(i),c=Ri(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&xg.has(o.position)||Xr(i)&&!c&&Pc(e,i))?r=r.filter(f=>f!==i):o=l,i=jn(i)}return t.set(e,r),r}function bg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?qo(t)?[]:wg(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,f)=>{const p=Ua(t,f,o);return d.top=Mt(p.top,d.top),d.right=In(p.right,d.right),d.bottom=In(p.bottom,d.bottom),d.left=Mt(p.left,d.left),d},Ua(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yg(e){const{width:t,height:n}=jc(e);return{width:t,height:n}}function Sg(e,t,n){const r=un(t),o=dn(t),s=n==="fixed",i=Hn(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=ln(0);function d(){c.x=Zo(o)}if(r||!r&&!s)if((Er(t)!=="body"||Xr(o))&&(l=Xo(t)),r){const h=Hn(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Rc(o,l):ln(0),p=i.left+l.scrollLeft-c.x-f.x,m=i.top+l.scrollTop-c.y-f.y;return{x:p,y:m,width:i.width,height:i.height}}function bs(e){return Xt(e).position==="static"}function Ha(e,t){if(!un(e)||Xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function Lc(e,t){const n=Pt(e);if(qo(e))return n;if(!un(e)){let o=jn(e);for(;o&&!mr(o);){if(qt(o)&&!bs(o))return o;o=jn(o)}return n}let r=Ha(e,t);for(;r&&og(r)&&bs(r);)r=Ha(r,t);return r&&mr(r)&&bs(r)&&!Ri(r)?n:r||cg(e)||n}const Cg=async function(e){const t=this.getOffsetParent||Lc,n=this.getDimensions,r=await n(e.floating);return{reference:Sg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eg(e){return Xt(e).direction==="rtl"}const Tg={convertOffsetParentRelativeRectToViewportRelativeRect:pg,getDocumentElement:dn,getClippingRect:bg,getOffsetParent:Lc,getElementRects:Cg,getClientRects:mg,getDimensions:yg,getScale:cr,isElement:qt,isRTL:Eg};function Dc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ag(e,t){let n=null,r;const o=dn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:h}=d;if(l||t(),!m||!h)return;const x=uo(p),g=uo(o.clientWidth-(f+m)),v=uo(o.clientHeight-(p+h)),b=uo(f),y={rootMargin:-x+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Mt(0,In(1,c))||1};let E=!0;function T(j){const k=j[0].intersectionRatio;if(k!==c){if(!E)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Dc(d,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(T,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,y)}n.observe(e)}return i(!0),s}function kg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Li(e),f=o||s?[...d?$r(d):[],...$r(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=d&&l?Ag(d,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(b=>{let[w]=b;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),d&&!c&&h.observe(d),h.observe(t));let x,g=c?Hn(e):null;c&&v();function v(){const b=Hn(e);g&&!Dc(g,b)&&n(),g=b,x=requestAnimationFrame(v)}return n(),()=>{var b;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p==null||p(),(b=h)==null||b.disconnect(),h=null,c&&cancelAnimationFrame(x)}}const Ng=Jh,_g=Qh,Ig=qh,jg=tg,Mg=Xh,Wa=Kh,Rg=eg,Pg=(e,t,n)=>{const r=new Map,o={platform:Tg,...n},s={...o.platform,_c:r};return Yh(e,t,{...o,platform:s})};var Lg=typeof document<"u",Dg=function(){},ko=Lg?u.useLayoutEffect:Dg;function Lo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Lo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Oc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ga(e,t){const n=Oc(e);return Math.round(t*n)/n}function ys(e){const t=u.useRef(e);return ko(()=>{t.current=e}),t}function Og(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);Lo(m,r)||h(r);const[x,g]=u.useState(null),[v,b]=u.useState(null),w=u.useCallback(C=>{C!==j.current&&(j.current=C,g(C))},[]),y=u.useCallback(C=>{C!==k.current&&(k.current=C,b(C))},[]),E=s||x,T=i||v,j=u.useRef(null),k=u.useRef(null),_=u.useRef(f),G=c!=null,U=ys(c),B=ys(o),Z=ys(d),J=u.useCallback(()=>{if(!j.current||!k.current)return;const C={placement:t,strategy:n,middleware:m};B.current&&(C.platform=B.current),Pg(j.current,k.current,C).then(I=>{const F={...I,isPositioned:Z.current!==!1};D.current&&!Lo(_.current,F)&&(_.current=F,Kr.flushSync(()=>{p(F)}))})},[m,t,n,B,Z]);ko(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,p(C=>({...C,isPositioned:!1})))},[d]);const D=u.useRef(!1);ko(()=>(D.current=!0,()=>{D.current=!1}),[]),ko(()=>{if(E&&(j.current=E),T&&(k.current=T),E&&T){if(U.current)return U.current(E,T,J);J()}},[E,T,J,U,G]);const X=u.useMemo(()=>({reference:j,floating:k,setReference:w,setFloating:y}),[w,y]),A=u.useMemo(()=>({reference:E,floating:T}),[E,T]),Y=u.useMemo(()=>{const C={position:n,left:0,top:0};if(!A.floating)return C;const I=Ga(A.floating,f.x),F=Ga(A.floating,f.y);return l?{...C,transform:"translate("+I+"px, "+F+"px)",...Oc(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:F}},[n,l,A.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:J,refs:X,elements:A,floatingStyles:Y}),[f,J,X,A,Y])}const Fg=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Wa({element:r.current,padding:o}).fn(n):{}:r?Wa({element:r,padding:o}).fn(n):{}}}},zg=(e,t)=>({...Ng(e),options:[e,t]}),$g=(e,t)=>({..._g(e),options:[e,t]}),Bg=(e,t)=>({...Rg(e),options:[e,t]}),Ug=(e,t)=>({...Ig(e),options:[e,t]}),Hg=(e,t)=>({...jg(e),options:[e,t]}),Wg=(e,t)=>({...Mg(e),options:[e,t]}),Gg=(e,t)=>({...Fg(e),options:[e,t]});var Vg="Arrow",Fc=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(_e.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fc.displayName=Vg;var Yg=Fc;function Kg(e){const[t,n]=u.useState(void 0);return dt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Di="Popper",[zc,Tr]=Pn(Di),[qg,$c]=zc(Di),Bc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return a.jsx(qg,{scope:t,anchor:r,onAnchorChange:o,children:n})};Bc.displayName=Di;var Uc="PopperAnchor",Hc=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=$c(Uc,n),i=u.useRef(null),l=ze(t,i),c=u.useRef(null);return u.useEffect(()=>{const d=c.current;c.current=(r==null?void 0:r.current)||i.current,d!==c.current&&s.onAnchorChange(c.current)}),r?null:a.jsx(_e.div,{...o,ref:l})});Hc.displayName=Uc;var Oi="PopperContent",[Xg,Zg]=zc(Oi),Wc=u.forwardRef((e,t)=>{var N,K,ee,te,le,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:x,...g}=e,v=$c(Oi,n),[b,w]=u.useState(null),y=ze(t,de=>w(de)),[E,T]=u.useState(null),j=Kg(E),k=(j==null?void 0:j.width)??0,_=(j==null?void 0:j.height)??0,G=r+(s!=="center"?"-"+s:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(d)?d:[d],Z=B.length>0,J={padding:U,boundary:B.filter(Qg),altBoundary:Z},{refs:D,floatingStyles:X,placement:A,isPositioned:Y,middlewareData:C}=Og({strategy:"fixed",placement:G,whileElementsMounted:(...de)=>kg(...de,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[zg({mainAxis:o+_,alignmentAxis:i}),c&&$g({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Bg():void 0,...J}),c&&Ug({...J}),Hg({...J,apply:({elements:de,rects:we,availableWidth:je,availableHeight:Re})=>{const{width:Le,height:Me}=we.reference,We=de.floating.style;We.setProperty("--radix-popper-available-width",`${je}px`),We.setProperty("--radix-popper-available-height",`${Re}px`),We.setProperty("--radix-popper-anchor-width",`${Le}px`),We.setProperty("--radix-popper-anchor-height",`${Me}px`)}}),E&&Gg({element:E,padding:l}),ex({arrowWidth:k,arrowHeight:_}),m&&Wg({strategy:"referenceHidden",...J})]}),[I,F]=Yc(A),R=_n(x);dt(()=>{Y&&(R==null||R())},[Y,R]);const Q=(N=C.arrow)==null?void 0:N.x,O=(K=C.arrow)==null?void 0:K.y,W=((ee=C.arrow)==null?void 0:ee.centerOffset)!==0,[z,q]=u.useState();return dt(()=>{b&&q(window.getComputedStyle(b).zIndex)},[b]),a.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Y?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(te=C.transformOrigin)==null?void 0:te.x,(le=C.transformOrigin)==null?void 0:le.y].join(" "),...((ne=C.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(Xg,{scope:n,placedSide:I,onArrowChange:T,arrowX:Q,arrowY:O,shouldHideArrow:W,children:a.jsx(_e.div,{"data-side":I,"data-align":F,...g,ref:y,style:{...g.style,animation:Y?void 0:"none"}})})})});Wc.displayName=Oi;var Gc="PopperArrow",Jg={top:"bottom",right:"left",bottom:"top",left:"right"},Vc=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Zg(Gc,r),i=Jg[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(Yg,{...o,ref:n,style:{...o.style,display:"block"}})})});Vc.displayName=Gc;function Qg(e){return e!==null}var ex=e=>({name:"transformOrigin",options:e,fn(t){var v,b,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=Yc(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((b=o.arrow)==null?void 0:b.x)??0)+l/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let x="",g="";return d==="bottom"?(x=i?p:`${m}px`,g=`${-c}px`):d==="top"?(x=i?p:`${m}px`,g=`${r.floating.height+c}px`):d==="right"?(x=`${-c}px`,g=i?p:`${h}px`):d==="left"&&(x=`${r.floating.width+c}px`,g=i?p:`${h}px`),{data:{x,y:g}}}});function Yc(e){const[t,n="center"]=e.split("-");return[t,n]}var Fi=Bc,Jo=Hc,zi=Wc,$i=Vc,tx="Portal",Zr=u.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=u.useState(!1);dt(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Up.createPortal(a.jsx(_e.div,{...r,ref:t}),i):null});Zr.displayName=tx;function nx(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Cn=e=>{const{present:t,children:n}=e,r=rx(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=ze(r.ref,ox(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};Cn.displayName="Presence";function rx(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[l,c]=nx(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=fo(r.current);s.current=l==="mounted"?d:"none"},[l]),dt(()=>{const d=r.current,f=o.current;if(f!==e){const m=s.current,h=fo(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),dt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const g=fo(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=h=>{h.target===t&&(s.current=fo(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function fo(e){return(e==null?void 0:e.animationName)||"none"}function ox(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;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)}var sx=Ci[" useInsertionEffect ".trim().toString()]||dt;function Wn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=ix({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const d=u.useCallback(f=>{var p;if(l){const m=ax(f)?f(e):f;m!==e&&((p=i.current)==null||p.call(i,m))}else s(f)},[l,e,s,i]);return[c,d]}function ix({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return sx(()=>{s.current=t},[t]),u.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function ax(e){return typeof e=="function"}var Kc=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),lx="VisuallyHidden",qc=u.forwardRef((e,t)=>a.jsx(_e.span,{...e,ref:t,style:{...Kc,...e.style}}));qc.displayName=lx;var cx=qc,[Qo]=Pn("Tooltip",[Tr]),es=Tr(),Xc="TooltipProvider",ux=700,Qs="tooltip.open",[dx,Bi]=Qo(Xc),Zc=e=>{const{__scopeTooltip:t,delayDuration:n=ux,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=u.useRef(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),a.jsx(dx,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:s})};Zc.displayName=Xc;var Br="Tooltip",[fx,Jr]=Qo(Br),Jc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=e,c=Bi(Br,e.__scopeTooltip),d=es(t),[f,p]=u.useState(null),m=an(),h=u.useRef(0),x=i??c.disableHoverableContent,g=l??c.delayDuration,v=u.useRef(!1),[b,w]=Wn({prop:r,defaultProp:o??!1,onChange:k=>{k?(c.onOpen(),document.dispatchEvent(new CustomEvent(Qs))):c.onClose(),s==null||s(k)},caller:Br}),y=u.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),E=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,w(!0)},[w]),T=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),j=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,w(!0),h.current=0},g)},[g,w]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),a.jsx(Fi,{...d,children:a.jsx(fx,{scope:t,contentId:m,open:b,stateAttribute:y,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?j():E()},[c.isOpenDelayedRef,j,E]),onTriggerLeave:u.useCallback(()=>{x?T():(window.clearTimeout(h.current),h.current=0)},[T,x]),onOpen:E,onClose:T,disableHoverableContent:x,children:n})})};Jc.displayName=Br;var ei="TooltipTrigger",Qc=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Jr(ei,n),s=Bi(ei,n),i=es(n),l=u.useRef(null),c=ze(t,l,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),p=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),a.jsx(Jo,{asChild:!0,...i,children:a.jsx(_e.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:he(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:he(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:he(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:he(e.onBlur,o.onClose),onClick:he(e.onClick,o.onClose)})})});Qc.displayName=ei;var Ui="TooltipPortal",[px,mx]=Qo(Ui,{forceMount:void 0}),eu=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Jr(Ui,t);return a.jsx(px,{scope:t,forceMount:n,children:a.jsx(Cn,{present:n||s.open,children:a.jsx(Zr,{asChild:!0,container:o,children:r})})})};eu.displayName=Ui;var hr="TooltipContent",tu=u.forwardRef((e,t)=>{const n=mx(hr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Jr(hr,e.__scopeTooltip);return a.jsx(Cn,{present:r||i.open,children:i.disableHoverableContent?a.jsx(nu,{side:o,...s,ref:t}):a.jsx(hx,{side:o,...s,ref:t})})}),hx=u.forwardRef((e,t)=>{const n=Jr(hr,e.__scopeTooltip),r=Bi(hr,e.__scopeTooltip),o=u.useRef(null),s=ze(t,o),[i,l]=u.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,m=u.useCallback(()=>{l(null),p(!1)},[p]),h=u.useCallback((x,g)=>{const v=x.currentTarget,b={x:x.clientX,y:x.clientY},w=wx(b,v.getBoundingClientRect()),y=bx(b,w),E=yx(g.getBoundingClientRect()),T=Cx([...y,...E]);l(T),p(!0)},[p]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(c&&f){const x=v=>h(v,f),g=v=>h(v,c);return c.addEventListener("pointerleave",x),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",g)}}},[c,f,h,m]),u.useEffect(()=>{if(i){const x=g=>{const v=g.target,b={x:g.clientX,y:g.clientY},w=(c==null?void 0:c.contains(v))||(f==null?void 0:f.contains(v)),y=!Sx(b,i);w?m():y&&(m(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,f,i,d,m]),a.jsx(nu,{...e,ref:s})}),[gx,xx]=Qo(Br,{isInside:!1}),vx=_m("TooltipContent"),nu=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,c=Jr(hr,n),d=es(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Qs,f),()=>document.removeEventListener(Qs,f)),[f]),u.useEffect(()=>{if(c.trigger){const p=m=>{const h=m.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),a.jsx(qr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:a.jsxs(zi,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(vx,{children:r}),a.jsx(gx,{scope:n,isInside:!0,children:a.jsx(cx,{id:c.contentId,role:"tooltip",children:o||r})})]})})});tu.displayName=hr;var ru="TooltipArrow",ou=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=es(n);return xx(ru,n).isInside?null:a.jsx($i,{...o,...r,ref:t})});ou.displayName=ru;function wx(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function bx(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function yx(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Sx(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s],c=t[i],d=l.x,f=l.y,p=c.x,m=c.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function Cx(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ex(t)}function Ex(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Tx=Zc,Ax=Jc,kx=Qc,Nx=eu,_x=tu,Ix=ou;function jx({delayDuration:e=0,...t}){return a.jsx(Tx,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Hi({...e}){return a.jsx(jx,{delayDuration:500,children:a.jsx(Ax,{"data-slot":"tooltip",...e})})}function Wi({...e}){return a.jsx(kx,{"data-slot":"tooltip-trigger",...e})}function Gi({className:e,sideOffset:t=0,children:n,...r}){return a.jsx(Nx,{children:a.jsxs(_x,{"data-slot":"tooltip-content",sideOffset:t,className:ve("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,a.jsx(Ix,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const su="text-[var(--color-primary-wMain)] hover:text-[var(--color-primary-text-w60)] dark:text-[var(--color-primary-w20)] dark:hover:text-[var(--color-primary-text-w10)]",Ss=su+" hover:bg-[var(--color-primary-w10)] dark:hover:bg-[var(--color-primary-w60)]",Mx=Rn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm font-semibold transition-all disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 cursor-pointer disabled:cursor-not-allowed disabled:hover:bg-transparent dark:disabled:hover:bg-transparent",{variants:{variant:{default:"text-[var(--color-primary-text-w10)] bg-[var(--color-primary-wMain)] hover:bg-[var(--color-primary-w100)] dark:hover:bg-[var(--color-primary-w60)]",destructive:"text-[var(--color-primary-text-w10)] bg-[var(--color-error-wMain)] hover:bg-[var(--color-error-w70)]",outline:Ss+" border border-1 border-[var(--color-primary-wMain)]",secondary:Ss,ghost:Ss,link:su+" underline-offset-4 hover:underline"},size:{default:"h-9 px-5 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function me({className:e,variant:t,size:n,asChild:r=!1,tooltip:o="",testid:s="",...i}){const l=r?dc:"button",c=o?{...i,"aria-label":o}:i,d=a.jsx(l,{"data-slot":"button","data-testid":s||o||i.title,className:ve(Mx({variant:t,size:n,className:e})),...c});return o?a.jsxs(Hi,{children:[a.jsx(Wi,{asChild:!0,children:d}),a.jsx(Gi,{children:o})]}):d}const iu=({onClick:e,text:t="View Agent Workflow"})=>a.jsx(me,{variant:"ghost",size:"sm",onClick:e,tooltip:t,children:a.jsx(Ao,{className:"h-4 w-4"})}),Vi=u.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ve("flex min-h-[80px] w-full rounded-md border px-3 py-2 placeholder:opacity-75 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Vi.displayName="Textarea";var Cs="focusScope.autoFocusOnMount",Es="focusScope.autoFocusOnUnmount",Va={bubbles:!1,cancelable:!0},Rx="FocusScope",ts=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[l,c]=u.useState(null),d=_n(o),f=_n(s),p=u.useRef(null),m=ze(t,g=>c(g)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let g=function(y){if(h.paused||!l)return;const E=y.target;l.contains(E)?p.current=E:Tn(p.current,{select:!0})},v=function(y){if(h.paused||!l)return;const E=y.relatedTarget;E!==null&&(l.contains(E)||Tn(p.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const T of y)T.removedNodes.length>0&&Tn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const w=new MutationObserver(b);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),w.disconnect()}}},[r,l,h.paused]),u.useEffect(()=>{if(l){Ka.add(h);const g=document.activeElement;if(!l.contains(g)){const b=new CustomEvent(Cs,Va);l.addEventListener(Cs,d),l.dispatchEvent(b),b.defaultPrevented||(Px(zx(au(l)),{select:!0}),document.activeElement===g&&Tn(l))}return()=>{l.removeEventListener(Cs,d),setTimeout(()=>{const b=new CustomEvent(Es,Va);l.addEventListener(Es,f),l.dispatchEvent(b),b.defaultPrevented||Tn(g??document.body,{select:!0}),l.removeEventListener(Es,f),Ka.remove(h)},0)}}},[l,d,f,h]);const x=u.useCallback(g=>{if(!n&&!r||h.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const w=g.currentTarget,[y,E]=Lx(w);y&&E?!g.shiftKey&&b===E?(g.preventDefault(),n&&Tn(y,{select:!0})):g.shiftKey&&b===y&&(g.preventDefault(),n&&Tn(E,{select:!0})):b===w&&g.preventDefault()}},[n,r,h.paused]);return a.jsx(_e.div,{tabIndex:-1,...i,ref:m,onKeyDown:x})});ts.displayName=Rx;function Px(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tn(r,{select:t}),document.activeElement!==n)return}function Lx(e){const t=au(e),n=Ya(t,e),r=Ya(t.reverse(),e);return[n,r]}function au(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ya(e,t){for(const n of e)if(!Dx(n,{upTo:t}))return n}function Dx(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ox(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ox(e)&&t&&e.select()}}var Ka=Fx();function Fx(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qa(e,t),e.unshift(t)},remove(t){var n;e=qa(e,t),(n=e[0])==null||n.resume()}}}function qa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zx(e){return e.filter(t=>t.tagName!=="A")}var Ts=0;function Yi(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xa()),document.body.insertAdjacentElement("beforeend",e[1]??Xa()),Ts++,()=>{Ts===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ts--}},[])}function Xa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var rn=function(){return rn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},rn.apply(this,arguments)};function lu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function $x(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var No="right-scroll-bar-position",_o="width-before-scroll-bar",Bx="with-scroll-bars-hidden",Ux="--removed-body-scroll-bar-size";function As(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hx(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Wx=typeof window<"u"?u.useLayoutEffect:u.useEffect,Za=new WeakMap;function Gx(e,t){var n=Hx(null,function(r){return e.forEach(function(o){return As(o,r)})});return Wx(function(){var r=Za.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(l){s.has(l)||As(l,null)}),s.forEach(function(l){o.has(l)||As(l,i)})}Za.set(n,e)},[e]),n}function Vx(e){return e}function Yx(e,t){t===void 0&&(t=Vx);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Kx(e){e===void 0&&(e={});var t=Yx(null);return t.options=rn({async:!0,ssr:!1},e),t}var cu=function(e){var t=e.sideCar,n=lu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,rn({},n))};cu.isSideCarExport=!0;function qx(e,t){return e.useMedium(t),cu}var uu=Kx(),ks=function(){},ns=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:ks,onWheelCapture:ks,onTouchMoveCapture:ks}),o=r[0],s=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,h=e.noRelative,x=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,y=e.gapMode,E=lu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=m,j=Gx([n,t]),k=rn(rn({},E),o);return u.createElement(u.Fragment,null,f&&u.createElement(T,{sideCar:uu,removeScrollBar:d,shards:p,noRelative:h,noIsolation:x,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:y}),i?u.cloneElement(u.Children.only(l),rn(rn({},k),{ref:j})):u.createElement(w,rn({},k,{className:c,ref:j}),l))});ns.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ns.classNames={fullWidth:_o,zeroRight:No};var Xx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xx();return t&&e.setAttribute("nonce",t),e}function Jx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qx(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ev=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Zx())&&(Jx(t,n),Qx(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tv=function(){var e=ev();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},du=function(){var e=tv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},nv={left:0,top:0,right:0,gap:0},Ns=function(e){return parseInt(e||"",10)||0},rv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ns(n),Ns(r),Ns(o)]},ov=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nv;var t=rv(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sv=du(),ur="data-scroll-locked",iv=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
73
73
  .`.concat(Bx,` {
74
74
  overflow: hidden `).concat(r,`;
75
75
  padding-right: `).concat(l,"px ").concat(r,`;