@agent-spaces/server 0.3.61 → 0.3.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/dist/adapters/agent-runtime-types.js +12 -0
  2. package/dist/adapters/claude-code-runtime/index.js +22 -0
  3. package/dist/adapters/claude-code-runtime/sdk-config.js +34 -10
  4. package/dist/adapters/codex-runtime.js +2 -2
  5. package/dist/adapters/git.js +29 -13
  6. package/dist/adapters/langchain-runtime.js +2 -2
  7. package/dist/adapters/open-agent-sdk-runtime.js +2 -2
  8. package/dist/agents/agent-message-parts.js +27 -3
  9. package/dist/agents/commit-agent.js +1 -0
  10. package/dist/agents/issue-agent-progress.js +4 -2
  11. package/dist/agents/issue-agent-runner.js +5 -5
  12. package/dist/agents/issue-task-controller.js +95 -14
  13. package/dist/app.js +74 -5
  14. package/dist/package.json +1 -1
  15. package/dist/routes/agent-sse.js +4 -2
  16. package/dist/routes/channel.js +21 -4
  17. package/dist/routes/file.js +87 -1
  18. package/dist/routes/hooks.js +88 -0
  19. package/dist/routes/issue.js +59 -1
  20. package/dist/routes/output-style.js +48 -0
  21. package/dist/routes/prompt-template.js +2 -2
  22. package/dist/routes/skill.js +97 -3
  23. package/dist/routes/task.js +13 -1
  24. package/dist/services/agent.js +45 -16
  25. package/dist/services/hook-engine.js +118 -0
  26. package/dist/services/issue.js +6 -0
  27. package/dist/services/notification-hub/bot-agent.js +1 -0
  28. package/dist/services/output-style.js +134 -0
  29. package/dist/services/persistent-agent-context.js +37 -4
  30. package/dist/services/prompt-template.js +2 -2
  31. package/dist/services/skill.js +275 -40
  32. package/dist/storage/hook-store.js +55 -0
  33. package/dist/web/404.html +1 -1
  34. package/dist/web/__next.__PAGE__.txt +4 -4
  35. package/dist/web/__next._full.txt +25 -23
  36. package/dist/web/__next._head.txt +4 -4
  37. package/dist/web/__next._index.txt +13 -13
  38. package/dist/web/__next._tree.txt +2 -2
  39. package/dist/web/_next/static/chunks/0-1bfvfwifh-m.js +1 -0
  40. package/dist/web/_next/static/chunks/0-f~0xmwl__u5.js +1 -0
  41. package/dist/web/_next/static/chunks/0.n~yfwf4~6w-.js +1 -0
  42. package/dist/web/_next/static/chunks/002_j970b9gdx.js +1 -0
  43. package/dist/web/_next/static/chunks/014x2qbuiszni.js +3 -0
  44. package/dist/web/_next/static/chunks/01iqv28_snwus.js +1 -0
  45. package/dist/web/_next/static/chunks/02c22g~xd-y30.js +19 -0
  46. package/dist/web/_next/static/chunks/02mf61htij8g0.js +31 -0
  47. package/dist/web/_next/static/chunks/03scq1-0ykve3.js +1 -0
  48. package/dist/web/_next/static/chunks/046me66nilkff.js +1 -0
  49. package/dist/web/_next/static/chunks/04v-pqqs-2lvp.css +1 -0
  50. package/dist/web/_next/static/chunks/05f8cnmzqd5wb.js +1 -0
  51. package/dist/web/_next/static/chunks/{0zd1o3u04~qvo.js → 05psi2gtx~bev.js} +7 -7
  52. package/dist/web/_next/static/chunks/{12odetnu-lyrr.js → 06whz1~s_7pva.js} +12 -12
  53. package/dist/web/_next/static/chunks/06w~.izyfylap.js +1 -0
  54. package/dist/web/_next/static/chunks/08kfx8on9oty~.js +1 -0
  55. package/dist/web/_next/static/chunks/09t62a89~jesc.js +3 -0
  56. package/dist/web/_next/static/chunks/09y_3krccdd~u.js +1 -0
  57. package/dist/web/_next/static/chunks/{0njy89g5coeyi.js → 0_8dm7bxp18xo.js} +6 -6
  58. package/dist/web/_next/static/chunks/0_e~hmntdfop9.js +1 -0
  59. package/dist/web/_next/static/chunks/0_udc.6.tueey.js +1 -0
  60. package/dist/web/_next/static/chunks/0_vi1a~g4wx46.js +3 -0
  61. package/dist/web/_next/static/chunks/{05iy4.c-1cfhd.js → 0aa6bcdmtpekn.js} +1 -1
  62. package/dist/web/_next/static/chunks/{0tvd~rxgf0oh_.js → 0bbmx45w_h5np.js} +1 -1
  63. package/dist/web/_next/static/chunks/0cke33d38fnby.js +90 -0
  64. package/dist/web/_next/static/chunks/{0w1iudd1d46sw.js → 0ctg5qmw7uu.1.js} +2 -2
  65. package/dist/web/_next/static/chunks/0cyq~8xb~r5fc.js +1 -0
  66. package/dist/web/_next/static/chunks/0ewceguykiut5.js +1 -0
  67. package/dist/web/_next/static/chunks/0fxa1edqr7dve.js +1 -0
  68. package/dist/web/_next/static/chunks/{0202ia13sijwb.js → 0h18ej5yf974e.js} +1 -1
  69. package/dist/web/_next/static/chunks/0hra80eyuu37u.js +1 -0
  70. package/dist/web/_next/static/chunks/0i39jifmxla7q.js +1 -0
  71. package/dist/web/_next/static/chunks/0ie7y4k2ncvnn.js +1 -0
  72. package/dist/web/_next/static/chunks/0igc~uli58ncw.js +2 -0
  73. package/dist/web/_next/static/chunks/0kof5qdg8c2-k.js +71 -0
  74. package/dist/web/_next/static/chunks/{08o-zmr-40r5g.js → 0m11vvph7q94-.js} +1 -1
  75. package/dist/web/_next/static/chunks/0msb2mi3hiu5_.js +67 -0
  76. package/dist/web/_next/static/chunks/0np.d~hc1-pmh.js +4 -0
  77. package/dist/web/_next/static/chunks/{0qpq0~_58fe9a.js → 0oaq67r7ix.vg.js} +1 -1
  78. package/dist/web/_next/static/chunks/0ogpc3f3keopc.js +3 -0
  79. package/dist/web/_next/static/chunks/{0d_dp_4ofz0l3.css → 0ojcao3hdm36s.css} +0 -1
  80. package/dist/web/_next/static/chunks/0p1n8bvfnpl41.js +1 -0
  81. package/dist/web/_next/static/chunks/{0gig.k.rq8d0x.js → 0ppr271hz0xoq.js} +1 -1
  82. package/dist/web/_next/static/chunks/0s_dva~eh2yhi.js +3 -0
  83. package/dist/web/_next/static/chunks/0typj55ox8d5i.js +1 -0
  84. package/dist/web/_next/static/chunks/0w2p4ldi2aymp.js +1 -0
  85. package/dist/web/_next/static/chunks/{0..g0jl-8qup7.js → 0xoo17yef_b8g.js} +1 -1
  86. package/dist/web/_next/static/chunks/0xt-8wk21gs7g.js +1 -0
  87. package/dist/web/_next/static/chunks/0y09i51u6ixq5.js +1 -0
  88. package/dist/web/_next/static/chunks/0za1r07-6az6w.js +1 -0
  89. package/dist/web/_next/static/chunks/0zc0xgp5ourcn.js +1 -0
  90. package/dist/web/_next/static/chunks/0zmhdridea1s5.js +90 -0
  91. package/dist/web/_next/static/chunks/0~u.5r3-t7179.js +1 -0
  92. package/dist/web/_next/static/chunks/10.alq.6stmld.js +1 -0
  93. package/dist/web/_next/static/chunks/11-czmcci_55y.js +1 -0
  94. package/dist/web/_next/static/chunks/11b3zgk1etlkw.js +7 -0
  95. package/dist/web/_next/static/chunks/11k-.49r~1mfm.js +1 -0
  96. package/dist/web/_next/static/chunks/11qp8r5dotf7d.js +1 -0
  97. package/dist/web/_next/static/chunks/128ugqd34tr_-.js +1 -0
  98. package/dist/web/_next/static/chunks/12mxlicp247c8.js +1 -0
  99. package/dist/web/_next/static/chunks/135w27dd8c19s.js +5 -0
  100. package/dist/web/_next/static/chunks/13~y-b.b9rrw4.js +1 -0
  101. package/dist/web/_next/static/chunks/{0jokpgh485~28.js → 14hqmid8q4apf.js} +11 -11
  102. package/dist/web/_next/static/chunks/16sg-lflc8csx.js +1 -0
  103. package/dist/web/_next/static/chunks/176dc-dtokxxi.js +16 -0
  104. package/dist/web/_next/static/chunks/17g-0pqre.anw.js +1 -0
  105. package/dist/web/_next/static/chunks/17oc2l.ekcs8b.css +1 -0
  106. package/dist/web/_next/static/chunks/{turbopack-0lrdxynxb9-1t.js → turbopack-0ndm2zc_pdptk.js} +1 -1
  107. package/dist/web/_not-found/__next._full.txt +29 -30
  108. package/dist/web/_not-found/__next._head.txt +4 -4
  109. package/dist/web/_not-found/__next._index.txt +13 -13
  110. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
  111. package/dist/web/_not-found/__next._not-found.txt +3 -3
  112. package/dist/web/_not-found/__next._tree.txt +2 -2
  113. package/dist/web/_not-found.html +1 -1
  114. package/dist/web/_not-found.txt +29 -30
  115. package/dist/web/icons/file_type_audio.svg +3 -1
  116. package/dist/web/icons/file_type_video.svg +10 -1
  117. package/dist/web/index.html +1 -1
  118. package/dist/web/index.txt +25 -23
  119. package/dist/web/login/__next._full.txt +30 -28
  120. package/dist/web/login/__next._head.txt +4 -4
  121. package/dist/web/login/__next._index.txt +13 -13
  122. package/dist/web/login/__next._tree.txt +2 -2
  123. package/dist/web/login/__next.login.__PAGE__.txt +4 -4
  124. package/dist/web/login/__next.login.txt +3 -3
  125. package/dist/web/login.html +1 -1
  126. package/dist/web/login.txt +30 -28
  127. package/dist/web/settings/__next._full.txt +32 -31
  128. package/dist/web/settings/__next._head.txt +4 -4
  129. package/dist/web/settings/__next._index.txt +13 -13
  130. package/dist/web/settings/__next._tree.txt +2 -2
  131. package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
  132. package/dist/web/settings/__next.settings.txt +5 -5
  133. package/dist/web/settings/agents/__next._full.txt +35 -34
  134. package/dist/web/settings/agents/__next._head.txt +4 -4
  135. package/dist/web/settings/agents/__next._index.txt +13 -13
  136. package/dist/web/settings/agents/__next._tree.txt +2 -2
  137. package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
  138. package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
  139. package/dist/web/settings/agents/__next.settings.txt +5 -5
  140. package/dist/web/settings/agents.html +1 -1
  141. package/dist/web/settings/agents.txt +35 -34
  142. package/dist/web/settings/mcps/__next._full.txt +35 -34
  143. package/dist/web/settings/mcps/__next._head.txt +4 -4
  144. package/dist/web/settings/mcps/__next._index.txt +13 -13
  145. package/dist/web/settings/mcps/__next._tree.txt +2 -2
  146. package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
  147. package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
  148. package/dist/web/settings/mcps/__next.settings.txt +5 -5
  149. package/dist/web/settings/mcps.html +1 -1
  150. package/dist/web/settings/mcps.txt +35 -34
  151. package/dist/web/settings/models/__next._full.txt +35 -34
  152. package/dist/web/settings/models/__next._head.txt +4 -4
  153. package/dist/web/settings/models/__next._index.txt +13 -13
  154. package/dist/web/settings/models/__next._tree.txt +2 -2
  155. package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
  156. package/dist/web/settings/models/__next.settings.models.txt +3 -3
  157. package/dist/web/settings/models/__next.settings.txt +5 -5
  158. package/dist/web/settings/models.html +1 -1
  159. package/dist/web/settings/models.txt +35 -34
  160. package/dist/web/settings/output-styles/__next._full.txt +43 -0
  161. package/dist/web/settings/output-styles/__next._head.txt +6 -0
  162. package/dist/web/settings/output-styles/__next._index.txt +15 -0
  163. package/dist/web/settings/output-styles/__next._tree.txt +8 -0
  164. package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +9 -0
  165. package/dist/web/settings/output-styles/__next.settings.output-styles.txt +5 -0
  166. package/dist/web/settings/output-styles/__next.settings.txt +7 -0
  167. package/dist/web/settings/output-styles.html +1 -0
  168. package/dist/web/settings/output-styles.txt +43 -0
  169. package/dist/web/settings/prompts/__next._full.txt +35 -34
  170. package/dist/web/settings/prompts/__next._head.txt +4 -4
  171. package/dist/web/settings/prompts/__next._index.txt +13 -13
  172. package/dist/web/settings/prompts/__next._tree.txt +2 -2
  173. package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +4 -4
  174. package/dist/web/settings/prompts/__next.settings.prompts.txt +3 -3
  175. package/dist/web/settings/prompts/__next.settings.txt +5 -5
  176. package/dist/web/settings/prompts.html +1 -1
  177. package/dist/web/settings/prompts.txt +35 -34
  178. package/dist/web/settings/providers/__next._full.txt +35 -34
  179. package/dist/web/settings/providers/__next._head.txt +4 -4
  180. package/dist/web/settings/providers/__next._index.txt +13 -13
  181. package/dist/web/settings/providers/__next._tree.txt +2 -2
  182. package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
  183. package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
  184. package/dist/web/settings/providers/__next.settings.txt +5 -5
  185. package/dist/web/settings/providers.html +1 -1
  186. package/dist/web/settings/providers.txt +35 -34
  187. package/dist/web/settings/skills/__next._full.txt +35 -34
  188. package/dist/web/settings/skills/__next._head.txt +4 -4
  189. package/dist/web/settings/skills/__next._index.txt +13 -13
  190. package/dist/web/settings/skills/__next._tree.txt +2 -2
  191. package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
  192. package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
  193. package/dist/web/settings/skills/__next.settings.txt +5 -5
  194. package/dist/web/settings/skills.html +1 -1
  195. package/dist/web/settings/skills.txt +35 -34
  196. package/dist/web/settings.html +1 -1
  197. package/dist/web/settings.txt +32 -31
  198. package/dist/web/workflows/__next._full.txt +32 -30
  199. package/dist/web/workflows/__next._head.txt +4 -4
  200. package/dist/web/workflows/__next._index.txt +13 -13
  201. package/dist/web/workflows/__next._tree.txt +2 -2
  202. package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
  203. package/dist/web/workflows/__next.workflows.txt +3 -3
  204. package/dist/web/workflows.html +1 -1
  205. package/dist/web/workflows.txt +32 -30
  206. package/dist/web/workspace/_/__next._full.txt +30 -70
  207. package/dist/web/workspace/_/__next._head.txt +4 -4
  208. package/dist/web/workspace/_/__next._index.txt +13 -13
  209. package/dist/web/workspace/_/__next._tree.txt +2 -17
  210. package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -18
  211. package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
  212. package/dist/web/workspace/_/__next.workspace.txt +3 -3
  213. package/dist/web/workspace/_.html +1 -1
  214. package/dist/web/workspace/_.txt +30 -70
  215. package/dist/web/workspaces/__next._full.txt +31 -29
  216. package/dist/web/workspaces/__next._head.txt +4 -4
  217. package/dist/web/workspaces/__next._index.txt +13 -13
  218. package/dist/web/workspaces/__next._tree.txt +2 -2
  219. package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
  220. package/dist/web/workspaces/__next.workspaces.txt +3 -3
  221. package/dist/web/workspaces.html +1 -1
  222. package/dist/web/workspaces.txt +31 -29
  223. package/dist/ws/agent-runner.js +55 -33
  224. package/dist/ws/message-parts.js +61 -2
  225. package/package.json +1 -1
  226. package/public/output-styles/carmack-mode.md +381 -0
  227. package/public/output-styles/codex-rigor-mode.md +114 -0
  228. package/public/output-styles/dhh-mode.md +265 -0
  229. package/public/output-styles/evan-you-mode.md +539 -0
  230. package/public/output-styles/index.json +37 -0
  231. package/public/output-styles/jobs-mode.md +369 -0
  232. package/public/output-styles/linus-mode.md +135 -0
  233. package/public/output-styles/uncle-bob-mode.md +221 -0
  234. package/public/prompt/andrej-karpathy-skills.md +65 -0
  235. package/public/prompt/claude-token-efficient-coding.md +35 -0
  236. package/public/prompt/index.json +12 -0
  237. package/public/skills/index.json +92 -0
  238. package/public/skills/planning-with-files/planning-with-files-zh/SKILL.md +243 -0
  239. package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.ps1 +44 -0
  240. package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.sh +46 -0
  241. package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.ps1 +124 -0
  242. package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.sh +124 -0
  243. package/public/skills/planning-with-files/planning-with-files-zh/scripts/session-catchup.py +438 -0
  244. package/public/skills/planning-with-files/planning-with-files-zh/templates/findings.md +29 -0
  245. package/public/skills/planning-with-files/planning-with-files-zh/templates/progress.md +40 -0
  246. package/public/skills/planning-with-files/planning-with-files-zh/templates/task_plan.md +58 -0
  247. package/public/skills/superpowers/brainstorming/SKILL.md +164 -0
  248. package/public/skills/superpowers/brainstorming/scripts/frame-template.html +214 -0
  249. package/public/skills/superpowers/brainstorming/scripts/helper.js +88 -0
  250. package/public/skills/superpowers/brainstorming/scripts/server.cjs +354 -0
  251. package/public/skills/superpowers/brainstorming/scripts/start-server.sh +148 -0
  252. package/public/skills/superpowers/brainstorming/scripts/stop-server.sh +56 -0
  253. package/public/skills/superpowers/brainstorming/spec-document-reviewer-prompt.md +49 -0
  254. package/public/skills/superpowers/brainstorming/visual-companion.md +287 -0
  255. package/public/skills/superpowers/dispatching-parallel-agents/SKILL.md +182 -0
  256. package/public/skills/superpowers/executing-plans/SKILL.md +70 -0
  257. package/public/skills/superpowers/finishing-a-development-branch/SKILL.md +251 -0
  258. package/public/skills/superpowers/receiving-code-review/SKILL.md +213 -0
  259. package/public/skills/superpowers/requesting-code-review/SKILL.md +103 -0
  260. package/public/skills/superpowers/requesting-code-review/code-reviewer.md +168 -0
  261. package/public/skills/superpowers/subagent-driven-development/SKILL.md +279 -0
  262. package/public/skills/superpowers/subagent-driven-development/code-quality-reviewer-prompt.md +25 -0
  263. package/public/skills/superpowers/subagent-driven-development/implementer-prompt.md +113 -0
  264. package/public/skills/superpowers/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  265. package/public/skills/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
  266. package/public/skills/superpowers/systematic-debugging/SKILL.md +296 -0
  267. package/public/skills/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
  268. package/public/skills/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
  269. package/public/skills/superpowers/systematic-debugging/defense-in-depth.md +122 -0
  270. package/public/skills/superpowers/systematic-debugging/find-polluter.sh +63 -0
  271. package/public/skills/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
  272. package/public/skills/superpowers/systematic-debugging/test-academic.md +14 -0
  273. package/public/skills/superpowers/systematic-debugging/test-pressure-1.md +58 -0
  274. package/public/skills/superpowers/systematic-debugging/test-pressure-2.md +68 -0
  275. package/public/skills/superpowers/systematic-debugging/test-pressure-3.md +69 -0
  276. package/public/skills/superpowers/test-driven-development/SKILL.md +371 -0
  277. package/public/skills/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
  278. package/public/skills/superpowers/using-git-worktrees/SKILL.md +215 -0
  279. package/public/skills/superpowers/using-superpowers/SKILL.md +117 -0
  280. package/public/skills/superpowers/using-superpowers/references/codex-tools.md +59 -0
  281. package/public/skills/superpowers/using-superpowers/references/copilot-tools.md +42 -0
  282. package/public/skills/superpowers/using-superpowers/references/gemini-tools.md +51 -0
  283. package/public/skills/superpowers/verification-before-completion/SKILL.md +139 -0
  284. package/public/skills/superpowers/writing-plans/SKILL.md +152 -0
  285. package/public/skills/superpowers/writing-plans/plan-document-reviewer-prompt.md +49 -0
  286. package/public/skills/superpowers/writing-skills/SKILL.md +655 -0
  287. package/public/skills/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
  288. package/public/skills/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  289. package/public/skills/superpowers/writing-skills/graphviz-conventions.dot +172 -0
  290. package/public/skills/superpowers/writing-skills/persuasion-principles.md +187 -0
  291. package/public/skills/superpowers/writing-skills/render-graphs.js +168 -0
  292. package/public/skills/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
  293. package/dist/web/_next/static/chunks/0-1pn22sg~67u.js +0 -2
  294. package/dist/web/_next/static/chunks/01gi~q0c6ez6..js +0 -1
  295. package/dist/web/_next/static/chunks/03me5_ir..2ix.js +0 -1
  296. package/dist/web/_next/static/chunks/05eu2fdixf7c9.js +0 -1
  297. package/dist/web/_next/static/chunks/0_-c.y2qq4ax4.js +0 -270
  298. package/dist/web/_next/static/chunks/0_g3irbniww6d.js +0 -3
  299. package/dist/web/_next/static/chunks/0cs830n97dgjy.js +0 -1
  300. package/dist/web/_next/static/chunks/0g-0n6glz_z6w.js +0 -1
  301. package/dist/web/_next/static/chunks/0gyede80jpy3n.js +0 -4
  302. package/dist/web/_next/static/chunks/0hrbuvzuxrjfl.js +0 -1
  303. package/dist/web/_next/static/chunks/0ju52ko_nh7gi.js +0 -1
  304. package/dist/web/_next/static/chunks/0mny8i81aenx3.js +0 -1
  305. package/dist/web/_next/static/chunks/0nsu~f3voe~0i.js +0 -5
  306. package/dist/web/_next/static/chunks/0sz8_nijfiz0p.js +0 -1
  307. package/dist/web/_next/static/chunks/0u7_qd9hzqwac.js +0 -1
  308. package/dist/web/_next/static/chunks/0w3o.7vi.dlm6.js +0 -1
  309. package/dist/web/_next/static/chunks/0wv0h27jafag4.js +0 -1
  310. package/dist/web/_next/static/chunks/0wwvc4zc2q6bn.js +0 -1
  311. package/dist/web/_next/static/chunks/0x4b-a2ixww6m.js +0 -1
  312. package/dist/web/_next/static/chunks/0xwqf.llmm_u2.js +0 -31
  313. package/dist/web/_next/static/chunks/0~w6ugk9s5p-h.css +0 -1
  314. package/dist/web/_next/static/chunks/125nunjfj2fj0.js +0 -1
  315. package/dist/web/_next/static/chunks/1285yqy_oirb-.js +0 -1
  316. package/dist/web/_next/static/chunks/13ess~4pdmxma.js +0 -1
  317. package/dist/web/_next/static/chunks/14n8i2xz4_y-e.js +0 -1
  318. package/public/avatars/1777813826407-bea0ja-minimax.svg +0 -1
  319. package/public/avatars/1777813967088-3xlvd0-minimax.svg +0 -1
  320. package/public/avatars/1777814041714-yp0qeq-minimax.svg +0 -1
  321. package/public/avatars/1777904986095-rg26je-icon.png +0 -0
  322. package/public/avatars/1778953228323-5je54x-user.jpg +0 -0
  323. package/public/avatars/1778954057880-g01q6y-user.jpg +0 -0
  324. /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_buildManifest.js +0 -0
  325. /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_clientMiddlewareManifest.js +0 -0
  326. /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_ssgManifest.js +0 -0
  327. /package/public/avatars/{1777815865622-08wp9m-user.jpg → user.jpg} +0 -0
@@ -1,3 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,972725,e=>{"use strict";var t,r,n,i,o,s,a=e.i(764556);function l(e,t){let r=t&&t.cache?t.cache:h,n=t&&t.serializer?t.serializer:d;return(t&&t.strategy?t.strategy:function(e,t){var r,n;let i=1===e.length?u:c;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function u(e,t,r,n){let i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function c(e,t,r){let n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}let d=function(){return JSON.stringify(arguments)};var f=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let h={create:function(){return new f}},p={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,c.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,u.bind(this,e,r,n)}};class m extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var g=((t=g||{}).MISSING_MESSAGE="MISSING_MESSAGE",t.MISSING_FORMAT="MISSING_FORMAT",t.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",t.INSUFFICIENT_PATH="INSUFFICIENT_PATH",t.INVALID_MESSAGE="INVALID_MESSAGE",t.INVALID_KEY="INVALID_KEY",t.FORMATTING_ERROR="FORMATTING_ERROR",t);function b(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function v(e,t){return l(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:p.variadic})}function E(e,t){return v((...t)=>new e(...t),t)}function y(e){return{getDateTimeFormat:E(Intl.DateTimeFormat,e.dateTime),getNumberFormat:E(Intl.NumberFormat,e.number),getPluralRules:E(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:E(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:E(Intl.ListFormat,e.list),getDisplayNames:E(Intl.DisplayNames,e.displayNames)}}let S=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,T=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,x=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,w=/^(@+)?(\+|#+)?[rs]?$/g,C=/(\*)(0+)|(#+)(0+)|(0+)/g,R=/^(0+)$/;function k(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(w,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function I(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function A(e){let t=I(e);return t||{}}let O=((r={})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",r),P=((n={})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",n),M=((i={})[i.number=0]="number",i[i.dateTime=1]="dateTime",i);function L(e){return e.type===P.literal}function N(e){return e.type===P.number}function D(e){return e.type===P.date}function H(e){return e.type===P.time}function _(e){return e.type===P.select}function B(e){return e.type===P.plural}function F(e){return e.type===P.tag}function U(e){return!!(e&&"object"==typeof e&&e.type===M.number)}function G(e){return!!(e&&"object"==typeof e&&e.type===M.dateTime)}let V=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,j={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},W=RegExp(`^${V.source}*`),z=RegExp(`${V.source}*$`);function Y(e,t){return{start:e,end:t}}let K=!!Object.fromEntries,$=!!String.prototype.trimStart,X=!!String.prototype.trimEnd,Z=K?Object.fromEntries:function(e){let t={};for(let[r,n]of e)t[r]=n;return t},q=$?function(e){return e.trimStart()}:function(e){return e.replace(W,"")},J=X?function(e){return e.trimEnd()}:function(e){return e.replace(z,"")},Q=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var ee=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let n=[];for(;!this.isEOF();){let i=this.char();if(123===i){let t=this.parseArgument(e,r);if(t.err)return t;n.push(t.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),n.push({type:P.pound,location:Y(e,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek())if(60===i&&!this.ignoreTag&&et(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;n.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;n.push(r.val)}else if(!r)return this.error(O.UNMATCHED_CLOSING_TAG,Y(this.clonePosition(),this.clonePosition()));else break}return{val:n,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:`<${n}/>`,location:Y(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(O.INVALID_TAG,Y(r,this.clonePosition()));{let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let o=i.val,s=this.clonePosition();if(!this.bumpIf("</"))return this.error(O.UNCLOSED_TAG,Y(r,this.clonePosition()));{if(this.isEOF()||!et(this.char()))return this.error(O.INVALID_TAG,Y(s,this.clonePosition()));let e=this.clonePosition();return n!==this.parseTagName()?this.error(O.UNMATCHED_CLOSING_TAG,Y(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:P.tag,value:n,children:o,location:Y(r,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,Y(s,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),n="";for(;;){let r=this.tryParseQuote(t);if(r){n+=r;continue}let i=this.tryParseUnquoted(e,t);if(i){n+=i;continue}let o=this.tryParseLeftAngleBracket();if(o){n+=o;continue}break}let i=Y(r,this.clonePosition());return{val:{type:P.literal,value:n,location:i},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(et(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(O.EMPTY_ARGUMENT,Y(r,this.clonePosition()));let n=this.parseIdentifierIfPossible().value;if(!n)return this.error(O.MALFORMED_ARGUMENT,Y(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:n,location:Y(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(O.MALFORMED_ARGUMENT,Y(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),n=(e=this.message,Q.lastIndex=r,Q.exec(e)[1]??""),i=r+n.length;return this.bumpTo(i),{value:n,location:Y(t,this.clonePosition())}}parseArgumentOptions(e,t,r,n){let i=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,Y(i,s));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let n=J(r.val);if(0===n.length)return this.error(O.EXPECT_ARGUMENT_STYLE,Y(this.clonePosition(),this.clonePosition()));e={style:n,styleLocation:Y(t,this.clonePosition())}}let t=this.tryParseArgumentClose(n);if(t.err)return t;let i=Y(n,this.clonePosition());if(e&&e.style.startsWith("::")){let t=q(e.style.slice(2));if("number"===o){let n=this.parseNumberSkeletonFromString(t,e.styleLocation);if(n.err)return n;return{val:{type:P.number,value:r,location:i,style:n.val},err:null}}{let n;if(0===t.length)return this.error(O.EXPECT_DATE_TIME_SKELETON,i);let s=t;this.locale&&(s=function(e,t){let r="";for(let n=0;n<e.length;n++){let i=e.charAt(n);if("j"===i){let o=0;for(;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;let s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let n=e.language;return"root"!==n&&(t=e.maximize().region),(j[t||""]||j[n||""]||j[`${n}-001`]||j["001"])[0]}(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(t,this.locale));let a={type:M.dateTime,pattern:s,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},s.replace(S,e=>{let t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n):{}};return{val:{type:"date"===o?P.date:P.time,value:r,location:i,style:a},err:null}}}return{val:{type:"number"===o?P.number:"date"===o?P.date:P.time,value:r,location:i,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,Y(i,{...i}));this.bumpSpace();let s=this.parseIdentifierIfPossible(),a=0;if("select"!==o&&"offset"===s.value){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),s=this.parseIdentifierIfPossible(),a=e.val}let l=this.tryParsePluralOrSelectOptions(e,o,t,s);if(l.err)return l;let u=this.tryParseArgumentClose(n);if(u.err)return u;let c=Y(n,this.clonePosition());if("select"===o)return{val:{type:P.select,value:r,options:Z(l.val),location:c},err:null};return{val:{type:P.plural,value:r,options:Z(l.val),offset:a,pluralType:"plural"===o?"cardinal":"ordinal",location:c},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,Y(i,s))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,Y(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Y(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(T).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[n,...i]=t;for(let e of i)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:n,options:i})}return r}(e)}catch{return this.error(O.INVALID_NUMBER_SKELETON,t)}return{val:{type:M.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...A(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...A(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(C,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(R.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(x.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(x,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...k(e)});continue}if(w.test(r.stem)){t={...t,...k(r.stem)};continue}let e=I(r.stem);e&&(t={...t,...e});let n=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!R.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);n&&(t={...t,...n})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,n){let i=!1,o=[],s=new Set,{value:a,location:l}=n;for(;;){if(0===a.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;l=Y(e,this.clonePosition()),a=this.message.slice(e.offset,this.offset())}else break}if(s.has(a))return this.error("select"===t?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();let n=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Y(this.clonePosition(),this.clonePosition()));let u=this.parseMessage(e+1,t,r);if(u.err)return u;let c=this.tryParseArgumentClose(n);if(c.err)return c;o.push([a,{value:u.val,location:Y(n,this.clonePosition())}]),s.add(a),this.bumpSpace(),{value:a,location:l}=this.parseIdentifierIfPossible()}return 0===o.length?this.error("select"===t?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(O.MISSING_OTHER_CLAUSE,Y(this.clonePosition(),this.clonePosition())):{val:o,err:null}}tryParseDecimalInteger(e,t){let r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let i=!1,o=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,o=10*o+(e-48),this.bump();else break}let s=Y(n,this.clonePosition());return i?Number.isSafeInteger(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function et(e){return e>=97&&e<=122||e>=65&&e<=90}function er(e,t={}){let r=new ee(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(O[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,_(t)||B(t))for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else N(t)&&U(t.style)||(D(t)||H(t))&&G(t.style)?delete t.style.location:F(t)&&e(t.children)})}(r.val),r.val}let en=((o={}).MISSING_VALUE="MISSING_VALUE",o.INVALID_VALUE="INVALID_VALUE",o.MISSING_INTL_API="MISSING_INTL_API",o);var ei=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},eo=class extends ei{constructor(e,t,r,n){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,en.INVALID_VALUE,n)}},es=class extends ei{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,en.INVALID_VALUE,r)}},ea=class extends ei{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,en.MISSING_VALUE,t)}};let el=((s={})[s.literal=0]="literal",s[s.object=1]="object",s);function eu(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var ec=class e{constructor(t,r=e.defaultLocale,n,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&t.type===el.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>(function e(t,r,n,i,o,s,a){if(1===t.length&&L(t[0]))return[{type:el.literal,value:t[0].value}];let l=[];for(let u of t){if(L(u)){l.push({type:el.literal,value:u.value});continue}if(u.type===P.pound){"number"==typeof s&&l.push({type:el.literal,value:n.getNumberFormat(r).format(s)});continue}let{value:t}=u;if(!(o&&t in o))throw new ea(t,a);let c=o[t];if(u.type===P.argument){c&&"string"!=typeof c&&"number"!=typeof c&&"bigint"!=typeof c||(c="string"==typeof c||"number"==typeof c||"bigint"==typeof c?String(c):""),l.push({type:"string"==typeof c?el.literal:el.object,value:c});continue}if(D(u)){let e="string"==typeof u.style?i.date[u.style]:G(u.style)?u.style.parsedOptions:void 0;l.push({type:el.literal,value:n.getDateTimeFormat(r,e).format(c)});continue}if(H(u)){let e="string"==typeof u.style?i.time[u.style]:G(u.style)?u.style.parsedOptions:i.time.medium;l.push({type:el.literal,value:n.getDateTimeFormat(r,e).format(c)});continue}if(N(u)){let e="string"==typeof u.style?i.number[u.style]:U(u.style)?u.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof c){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);c*=BigInt(t)}else c*=t}l.push({type:el.literal,value:n.getNumberFormat(r,e).format(c)});continue}if(F(u)){let{children:t,value:c}=u,d=o[c];if("function"!=typeof d)throw new es(c,"function",a);let f=d(e(t,r,n,i,o,s).map(e=>e.value));Array.isArray(f)||(f=[f]),l.push(...f.map(e=>({type:"string"==typeof e?el.literal:el.object,value:e})))}if(_(u)){let t=c,s=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other;if(!s)throw new eo(u.value,c,Object.keys(u.options),a);l.push(...e(s.value,r,n,i,o));continue}if(B(u)){let t=`=${c}`,s=Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0;if(!s){if(!Intl.PluralRules)throw new ei(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,en.MISSING_INTL_API,a);let e="bigint"==typeof c?Number(c):c,t=n.getPluralRules(r,{type:u.pluralType}).select(e-(u.offset||0));s=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other}if(!s)throw new eo(u.value,c,Object.keys(u.options),a);let d="bigint"==typeof c?Number(c):c;l.push(...e(s.value,r,n,i,o,d-(u.offset||0)));continue}}return l.length<2?l:l.reduce((e,t)=>{let r=e[e.length-1];return r&&r.type===el.literal&&t.type===el.literal?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...r}=i||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,n)=>{var i,o;return r[n]=(i=e[n],(o=t[n])?{...i,...o,...Object.keys(i).reduce((e,t)=>(e[t]={...i[t],...o[t]},e),{})}:i),r},{...e}):e}(e.formats,n),this.formatters=i&&i.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:l((...e)=>new Intl.NumberFormat(...e),{cache:eu(e.number),strategy:p.variadic}),getDateTimeFormat:l((...e)=>new Intl.DateTimeFormat(...e),{cache:eu(e.dateTime),strategy:p.variadic}),getPluralRules:l((...e)=>new Intl.PluralRules(...e),{cache:eu(e.pluralRules),strategy:p.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=er}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};function ed(...[e,t,r,n]){let i;if(Array.isArray(t))throw new m(g.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new m(g.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}]/.test(t)?void 0:t;if(e)return e}let{cache:o,formats:s,formatters:l,globalFormats:u,locale:c,timeZone:d}=n;l.getMessageFormat||(l.getMessageFormat=v((...e)=>new ec(e[0],e[1],e[2],{formatters:l,...e[3]}),o.message));try{let e,r,n,o;i=l.getMessageFormat(t,c,(e=ec.formats.date,r=ec.formats.time,n={...u?.dateTime,...s?.dateTime},o={date:{...e,...n},time:{...r,...n},number:{...u?.number,...s?.number}},d&&["date","time"].forEach(e=>{let t=o[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:d,...r}}),o),{formatters:{...l,getDateTimeFormat:(e,t)=>l.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??d})}})}catch(e){throw new m(g.INVALID_MESSAGE,void 0)}let f=i.format(r);return(0,a.isValidElement)(f)||Array.isArray(f)||"string"==typeof f?f:String(f)}function ef(...e){return e.filter(Boolean).join(".")}function eh(e){return ef(e.namespace,e.key)}function ep(e){console.error(e)}function em(e,t,r,n){let i=ef(n,r);if(!t)throw Error(i);let o=t;return r.split(".").forEach(t=>{let r=o[t];if(null==t||null==r)throw Error(i+` (${e})`);o=r}),o}ed.raw=!0;let eg={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var eb=e.i(344180);let ev=(0,a.createContext)(void 0);function eE(){let e=(0,a.useContext)(ev);if(!e)throw Error(void 0);return e}let ey=!1,eS="u"<typeof window;e.s(["IntlProvider",0,function({children:e,formats:t,getMessageFallback:r,locale:n,messages:i,now:o,onError:s,timeZone:l}){let u=(0,a.useContext)(ev),c=(0,a.useMemo)(()=>u?.cache||b(),[n,u?.cache]),d=(0,a.useMemo)(()=>u?.formatters||y(c),[c,u?.formatters]),f=(0,a.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:n,...i}){return{...i,formats:e||void 0,messages:r||void 0,onError:n||ep,getMessageFallback:t||eh}}({locale:n,formats:void 0===t?u?.formats:t,getMessageFallback:r||u?.getMessageFallback,messages:void 0===i?u?.messages:i,now:o||u?.now,onError:s||u?.onError,timeZone:l||u?.timeZone}),formatters:d,cache:c}),[c,t,d,r,n,i,o,s,u,l]);return(0,eb.jsx)(ev.Provider,{value:f,children:e})},"useFormatter",0,function(){let{formats:e,formatters:t,locale:r,now:n,onError:i,timeZone:o}=eE();return(0,a.useMemo)(()=>(function(e){let{_cache:t=b(),_formatters:r=y(t),formats:n,locale:i,onError:o=ep,timeZone:s}=e;function a(e){return e?.timeZone||(s?e={...e,timeZone:s}:o(new m(g.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,n,i){let s;try{s=function(e,t,r){let n;if("string"==typeof t){if(!(n=e?.[t])){let e=new m(g.MISSING_FORMAT,void 0);throw o(e),e}}else n=t;return r&&(n={...n,...r}),n}(r,e,t)}catch{return i()}try{return n(s)}catch(e){return o(new m(g.FORMATTING_ERROR,e.message)),i()}}function u(e,t,o){return l(t,o,n?.dateTime,t=>(t=a(t),r.getDateTimeFormat(i,t).format(e)),()=>String(e))}function c(){return e.now?e.now:(o(new m(g.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:function(e,t,o){return l(t,o,n?.number,t=>r.getNumberFormat(i,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var n;let o,s,a,l={};t instanceof Date||"number"==typeof t?o=new Date(t):t&&(o=null!=t.now?new Date(t.now):c(),s=t.unit,l.style=t.style,l.numberingSystem=t.numberingSystem),o||(o=c());let u=(new Date(e).getTime()-o.getTime())/1e3;s||(s=(a=Math.abs(u))<60?"second":a<3600?"minute":a<86400?"hour":a<604800?"day":a<2628e3?"week":a<31536e3?"month":"year"),l.numeric="second"===s?"auto":"always";let d=(n=s,Math.round(u/eg[n]));return r.getRelativeTimeFormat(i,l).format(d,s)}catch(t){return o(new m(g.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,o){let s=[],a=new Map,u=0;for(let t of e){let e;"object"==typeof t?(e=String(u),a.set(e,t)):e=String(t),s.push(e),u++}return l(t,o,n?.list,e=>{let t=r.getListFormat(i,e).formatToParts(s).map(e=>"literal"===e.type?e.value:a.get(e.value)||e.value);return a.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,o,s){return l(o,s,n?.dateTime,n=>(n=a(n),r.getDateTimeFormat(i,n).formatRange(e,t)),()=>[u(e),u(t)].join(" – "))},displayName:function(e,t,o){return l(t,o,n?.displayName,t=>r.getDisplayNames(i,t).of(e),()=>e)}}})({formats:e,locale:r,now:n,onError:i,timeZone:o,_formatters:t}),[e,t,n,r,i,o])},"useTranslations",0,function(e){return function(e,t){let{cache:r,formats:n,formatters:i,getMessageFallback:o,locale:s,onError:l,timeZone:u}=eE(),c=e["!"],d="!"===t?void 0:t.slice(2);return u||ey||!eS||(ey=!0,l(new m(g.ENVIRONMENT_FALLBACK,void 0))),(0,a.useMemo)(()=>{var e;let t;return t=function(e,t,r){try{if(!t)throw Error(void 0);let n=r?em(e,t,r):t;if(!n)throw Error(r);return n}catch(e){return new m(g.MISSING_MESSAGE,e.message)}}((e={cache:r,formatters:i,getMessageFallback:o,messages:c,namespace:d,onError:l,formats:n,locale:s,timeZone:u}).locale,e.messages,e.namespace),function({cache:e,formats:t,formatters:r,getMessageFallback:n=eh,locale:i,messagesOrError:o,namespace:s,onError:l,timeZone:u}){let c=o instanceof m;function d(e,t,r,i){let o=new m(t,r);return l(o),i??n({error:o,key:e,namespace:s})}function f(f,h,p,b){let v;if(c){if(!b)return l(o),n({error:o,key:f,namespace:s});v=b}else try{v=em(i,o,f,s)}catch(e){if(!b)return d(f,g.MISSING_MESSAGE,e.message,b);v=b}try{let n,o=ef(s,f);return ed(o,v,h?(n={},Object.keys(h).forEach(e=>{let t,r=0,i=h[e];t="function"==typeof i?t=>{let n=i(t);return(0,a.isValidElement)(n)?(0,a.cloneElement)(n,{key:e+r++}):n}:i,n[e]=t}),n):h,{cache:e,formatters:r,globalFormats:t,formats:p,locale:i,timeZone:u})}catch(r){let e,t;return r instanceof m?(e=r.code,t=r.originalMessage):(e=g.FORMATTING_ERROR,t=r.message),d(f,e,t,b)}}function h(e,t,r,n){let i=f(e,t,r,n);return"string"!=typeof i?d(e,g.INVALID_MESSAGE,void 0):i}return h.rich=f,h.markup=(e,t,r,n)=>f(e,t,r,n),h.raw=e=>{if(c)return l(o),n({error:o,key:e,namespace:s});try{return em(i,o,e,s)}catch(t){return d(e,g.MISSING_MESSAGE,t.message)}},h.has=e=>{if(c)return!1;try{return em(i,o,e,s),!0}catch{return!1}},h}({...e,messagesOrError:t})},[r,i,o,c,d,l,n,s,u])}({"!":eE().messages},e?`!.${e}`:"!")}],972725)},46752,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},370383,e=>{"use strict";var t=e.i(46752);let r={};function n(e){return s(e)?{...a(e,r)}:function(e){let t={...e};for(let e in t){let r=t[e];o(e,r)&&(t[e]=l(r))}return t}(e)}function i(e,r){return s(r)?a(r,e):function(e,r){if(!r)return e;for(let n in r){let i=r[n];switch(n){case"style":e[n]=(0,t.mergeObjects)(e.style,i);break;case"className":e[n]=c(e.className,i);break;default:o(n,i)?e[n]=function(e,t){return t?e?(...r)=>{let n=r[0];if(d(n)){u(n);let i=t(...r);return n.baseUIHandlerPrevented||e?.(...r),i}let i=t(...r);return e?.(...r),i}:l(t):e}(e[n],i):e[n]=i}}return e}(e,r)}function o(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2);return 111===r&&110===n&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function s(e){return"function"==typeof e}function a(e,t){return s(e)?e(t):e??r}function l(e){return e?(...t)=>{let r=t[0];return d(r)&&u(r),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function d(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,u,"mergeClassNames",0,c,"mergeProps",0,function(e,t,r,o,s){if(!r&&!o&&!s&&!e)return n(t);let a=n(e);return t&&(a=i(a,t)),r&&(a=i(a,r)),o&&(a=i(a,o)),s&&(a=i(a,s)),a},"mergePropsN",0,function(e){if(0===e.length)return r;if(1===e.length)return n(e[0]);let t=n(e[0]);for(let r=1;r<e.length;r+=1)t=i(t,e[r]);return t}])},267805,e=>{"use strict";let t=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["default",0,t])},549154,e=>{"use strict";var t=e.i(764556);let r={};e.s(["useRefWithInit",0,function(e,n){let i=t.useRef(r);return i.current===r&&(i.current=e(n)),i}])},204133,557576,287997,e=>{"use strict";var t=e.i(549154);function r(){return{callback:null,cleanup:null,refs:[]}}function n(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(r);"function"==typeof t&&(n[e]=t);break}case"object":i.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["useMergedRefs",0,function(e,i,o,s){var a,l,u,c,d;let f=(0,t.useRefWithInit)(r).current;return a=f,l=e,u=i,c=o,d=s,(a.refs[0]!==l||a.refs[1]!==u||a.refs[2]!==c||a.refs[3]!==d)&&n(f,[e,i,o,s]),f.callback},"useMergedRefsN",0,function(e){var i,o;let s=(0,t.useRefWithInit)(r).current;return i=s,o=e,(i.refs.length!==o.length||i.refs.some((e,t)=>e!==o[t]))&&n(s,e),s.callback}],204133);var i=e.i(764556);let o=parseInt(i.version,10);function s(e){return o>=e}e.s(["isReactVersionAtLeast",0,s],557576),e.s(["getReactElementRef",0,function(e){if(!i.isValidElement(e))return null;let t=e.props;return(s(19)?t?.ref:e.ref)??null}],287997)},873535,863728,662614,807719,880566,e=>{"use strict";e.i(8890),e.s(["warn",0,function(){}],873535);let t=Object.freeze([]),r=Object.freeze({});e.s(["EMPTY_ARRAY",0,t,"EMPTY_OBJECT",0,r,"NOOP",0,function(){}],863728),e.s(["getStateAttributesProps",0,function(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}],662614),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],807719),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],880566)},969490,e=>{"use strict";var t=e.i(267805),r=e.i(764556),n=e.i(204133),i=e.i(287997),o=e.i(46752);e.i(873535);var s=e.i(863728),a=e.i(662614),l=e.i(807719),u=e.i(880566),c=e.i(370383);let d=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,f,h={}){let p=f.render,m=function(e,t={}){var r;let{className:d,style:f,render:h}=e,{state:p=s.EMPTY_OBJECT,ref:m,props:g,stateAttributesMapping:b,enabled:v=!0}=t,E=v?(0,l.resolveClassName)(d,p):void 0,y=v?(0,u.resolveStyle)(f,p):void 0,S=v?(0,a.getStateAttributesProps)(p,b):s.EMPTY_OBJECT,T=v&&g?Array.isArray(r=g)?(0,c.mergePropsN)(r):(0,c.mergeProps)(void 0,r):void 0,x=v?(0,o.mergeObjects)(S,T)??{}:s.EMPTY_OBJECT;return("u">typeof document&&(v?Array.isArray(m)?x.ref=(0,n.useMergedRefsN)([x.ref,(0,i.getReactElementRef)(h),...m]):x.ref=(0,n.useMergedRefs)(x.ref,(0,i.getReactElementRef)(h),m):(0,n.useMergedRefs)(null,null)),v)?(void 0!==E&&(x.className=(0,c.mergeClassNames)(x.className,E)),void 0!==y&&(x.style=(0,o.mergeObjects)(x.style,y)),x):s.EMPTY_OBJECT}(f,h);return!1===h.enabled?null:function(e,n,i,o){if(n){if("function"==typeof n)return n(i,o);let e=(0,c.mergeProps)(i,n.props);e.ref=i.ref;let t=n;return t?.$$typeof===d&&(t=r.Children.toArray(n)[0]),r.cloneElement(t,e)}if(e&&"string"==typeof e){var s,a;return s=e,a=i,"button"===s?(0,r.createElement)("button",{type:"button",...a,key:a.key}):"img"===s?(0,r.createElement)("img",{alt:"",...a,key:a.key}):r.createElement(s,a)}throw Error((0,t.default)(8))}(e,p,m,h.state??s.EMPTY_OBJECT)}])},7284,e=>{"use strict";e.s(["clsx",0,function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}])},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>i=>{var o;if((null==t?void 0:t.variants)==null)return n(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(e=>{let t=null==i?void 0:i[e],n=null==a?void 0:a[e];if(null===t)return null;let o=r(t)||r(n);return s[e][o]}),u=i&&Object.entries(i).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,l,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...u}[t]):({...a,...u})[t]===r})?[...e,r,n]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},465458,e=>{"use strict";var t=e.i(7284);let r=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),n=[],i=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],o=r.nextPart.get(n);if(o){let r=i(e,t+1,o);if(r)return r}let s=r.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),l=s.length;for(let e=0;e<l;e++){let t=s[e];if(t.validator(a))return t.classGroupId}},o=(e,t)=>{let n=r();for(let r in e)s(e[r],n,r,t);return n},s=(e,t,r,n)=>{let i=e.length;for(let o=0;o<i;o++)a(e[o],t,r,n)},a=(e,t,r,n)=>{"string"==typeof e?l(e,t,r):"function"==typeof e?u(e,t,r,n):c(e,t,r,n)},l=(e,t,r)=>{(""===e?t:d(t,e)).classGroupId=r},u=(e,t,r,n)=>{f(e)?s(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},c=(e,t,r,n)=>{let i=Object.entries(e),o=i.length;for(let e=0;e<o;e++){let[o,a]=i[e];s(a,d(t,o),r,n)}},d=(e,t)=>{let n=e,i=t.split("-"),o=i.length;for(let e=0;e<o;e++){let t=i[e],o=n.nextPart.get(t);o||(o=r(),n.nextPart.set(t,o)),n=o}return n},f=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,h=[],p=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),m=/\s+/,g=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=g(e[n]))&&(r&&(r+=" "),r+=t);return r},b=[],v=e=>{let t=t=>t[e]||b;return t.isThemeGetter=!0,t},E=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,T=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,w=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>S.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&I(e.slice(0,-1)),P=e=>T.test(e),M=()=>!0,L=e=>x.test(e)&&!w.test(e),N=()=>!1,D=e=>C.test(e),H=e=>R.test(e),_=e=>!F(e)&&!K(e),B=e=>et(e,eo,N),F=e=>E.test(e),U=e=>et(e,es,L),G=e=>et(e,ea,I),V=e=>et(e,eu,M),j=e=>et(e,el,N),W=e=>et(e,en,N),z=e=>et(e,ei,H),Y=e=>et(e,ec,D),K=e=>y.test(e),$=e=>er(e,es),X=e=>er(e,el),Z=e=>er(e,en),q=e=>er(e,eo),J=e=>er(e,ei),Q=e=>er(e,ec,!0),ee=e=>er(e,eu,!0),et=(e,t,r)=>{let n=E.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},er=(e,t,r=!1)=>{let n=y.exec(e);return!!n&&(n[1]?t(n[1]):r)},en=e=>"position"===e||"percentage"===e,ei=e=>"image"===e||"url"===e,eo=e=>"length"===e||"size"===e||"bg-size"===e,es=e=>"length"===e,ea=e=>"number"===e,el=e=>"family-name"===e,eu=e=>"number"===e||"weight"===e,ec=e=>"shadow"===e,ed=((e,...t)=>{let r,s,a,l,u=e=>{let t=s(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(m),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let p=!!h,m=n(p?f.substring(0,h):f);if(!m){if(!p||!(m=n(f))){l=t+(l.length>0?" "+l:l);continue}p=!1}let g=0===c.length?"":1===c.length?c[0]:o(c).join(":"),b=d?g+"!":g,v=b+m;if(s.indexOf(v)>-1)continue;s.push(v);let E=i(m,p);for(let e=0;e<E.length;++e){let t=E[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return a(e,n),n};return l=c=>{var d;let f;return s=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),i=(i,o)=>{r[i]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in r?r[e]=t:i(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,i=0,o=0,s=e.length;for(let a=0;a<s;a++){let s=e[a];if(0===n&&0===i){if(":"===s){r.push(e.slice(o,a)),o=a+1;continue}if("/"===s){t=a;continue}}"["===s?n++:"]"===s?n--:"("===s?i++:")"===s&&i--}let a=0===r.length?e:e.slice(o),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),p(r,u,l,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):p(h,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(d),sortModifiers:(f=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{f.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let i=e[n],o="["===i[0],s=f.has(i);o||s?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(i)):r.push(i)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return o(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,i;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(i=t.slice(0,n))?"arbitrary.."+i:void 0)}let n=e.split("-"),o=+(""===n[0]&&n.length>1);return i(n,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=s[e],i=r[e];if(t){if(i){let e=Array(i.length+t.length);for(let t=0;t<i.length;t++)e[t]=i[t];for(let r=0;r<t.length;r++)e[i.length+r]=t[r];return e}return t}return i||n}return r[e]||n}}})(d)}).cache.get,a=r.cache.set,l=u,u(c)},(...e)=>l(((...e)=>{let t,r,n=0,i="";for(;n<e.length;)(t=e[n++])&&(r=g(t))&&(i&&(i+=" "),i+=r);return i})(...e))})(()=>{let e=v("color"),t=v("font"),r=v("text"),n=v("font-weight"),i=v("tracking"),o=v("leading"),s=v("breakpoint"),a=v("container"),l=v("spacing"),u=v("radius"),c=v("shadow"),d=v("inset-shadow"),f=v("text-shadow"),h=v("drop-shadow"),p=v("blur"),m=v("perspective"),g=v("aspect"),b=v("ease"),E=v("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...S(),K,F],x=()=>["auto","hidden","clip","visible","scroll"],w=()=>["auto","contain","none"],C=()=>[K,F,l],R=()=>[k,"full","auto",...C()],L=()=>[A,"none","subgrid",K,F],N=()=>["auto",{span:["full",A,K,F]},A,K,F],D=()=>[A,"auto",K,F],H=()=>["auto","min","max","fr",K,F],et=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",...C()],ei=()=>[k,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],eo=()=>[k,"screen","full","dvw","lvw","svw","min","max","fit",...C()],es=()=>[k,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],ea=()=>[e,K,F],el=()=>[...S(),Z,W,{position:[K,F]}],eu=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ec=()=>["auto","cover","contain",q,B,{size:[K,F]}],ed=()=>[O,$,U],ef=()=>["","none","full",u,K,F],eh=()=>["",I,$,U],ep=()=>["solid","dashed","dotted","double"],em=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eg=()=>[I,O,Z,W],eb=()=>["","none",p,K,F],ev=()=>["none",I,K,F],eE=()=>["none",I,K,F],ey=()=>[I,K,F],eS=()=>[k,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[M],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",I],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",k,F,K,g]}],container:["container"],columns:[{columns:[I,F,K,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:w()}],"overscroll-x":[{"overscroll-x":w()}],"overscroll-y":[{"overscroll-y":w()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",K,F]}],basis:[{basis:[k,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,k,"auto","initial","none",F]}],grow:[{grow:["",I,K,F]}],shrink:[{shrink:["",I,K,F]}],order:[{order:[A,"first","last","none",K,F]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...et(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...et()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":et()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:ei()}],"inline-size":[{inline:["auto",...eo()]}],"min-inline-size":[{"min-inline":["auto",...eo()]}],"max-inline-size":[{"max-inline":["none",...eo()]}],"block-size":[{block:["auto",...es()]}],"min-block-size":[{"min-block":["auto",...es()]}],"max-block-size":[{"max-block":["none",...es()]}],w:[{w:[a,"screen",...ei()]}],"min-w":[{"min-w":[a,"screen","none",...ei()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...ei()]}],h:[{h:["screen","lh",...ei()]}],"min-h":[{"min-h":["screen","lh","none",...ei()]}],"max-h":[{"max-h":["screen","lh",...ei()]}],"font-size":[{text:["base",r,$,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ee,V]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",O,F]}],"font-family":[{font:[X,j,t]}],"font-features":[{"font-features":[F]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,K,F]}],"line-clamp":[{"line-clamp":[I,"none",K,G]}],leading:[{leading:[o,...C()]}],"list-image":[{"list-image":["none",K,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ea()}],"text-color":[{text:ea()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ep(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",K,U]}],"text-decoration-color":[{decoration:ea()}],"underline-offset":[{"underline-offset":[I,"auto",K,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:el()}],"bg-repeat":[{bg:eu()}],"bg-size":[{bg:ec()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,K,F],radial:["",K,F],conic:[A,K,F]},J,z]}],"bg-color":[{bg:ea()}],"gradient-from-pos":[{from:ed()}],"gradient-via-pos":[{via:ed()}],"gradient-to-pos":[{to:ed()}],"gradient-from":[{from:ea()}],"gradient-via":[{via:ea()}],"gradient-to":[{to:ea()}],rounded:[{rounded:ef()}],"rounded-s":[{"rounded-s":ef()}],"rounded-e":[{"rounded-e":ef()}],"rounded-t":[{"rounded-t":ef()}],"rounded-r":[{"rounded-r":ef()}],"rounded-b":[{"rounded-b":ef()}],"rounded-l":[{"rounded-l":ef()}],"rounded-ss":[{"rounded-ss":ef()}],"rounded-se":[{"rounded-se":ef()}],"rounded-ee":[{"rounded-ee":ef()}],"rounded-es":[{"rounded-es":ef()}],"rounded-tl":[{"rounded-tl":ef()}],"rounded-tr":[{"rounded-tr":ef()}],"rounded-br":[{"rounded-br":ef()}],"rounded-bl":[{"rounded-bl":ef()}],"border-w":[{border:eh()}],"border-w-x":[{"border-x":eh()}],"border-w-y":[{"border-y":eh()}],"border-w-s":[{"border-s":eh()}],"border-w-e":[{"border-e":eh()}],"border-w-bs":[{"border-bs":eh()}],"border-w-be":[{"border-be":eh()}],"border-w-t":[{"border-t":eh()}],"border-w-r":[{"border-r":eh()}],"border-w-b":[{"border-b":eh()}],"border-w-l":[{"border-l":eh()}],"divide-x":[{"divide-x":eh()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eh()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ep(),"hidden","none"]}],"divide-style":[{divide:[...ep(),"hidden","none"]}],"border-color":[{border:ea()}],"border-color-x":[{"border-x":ea()}],"border-color-y":[{"border-y":ea()}],"border-color-s":[{"border-s":ea()}],"border-color-e":[{"border-e":ea()}],"border-color-bs":[{"border-bs":ea()}],"border-color-be":[{"border-be":ea()}],"border-color-t":[{"border-t":ea()}],"border-color-r":[{"border-r":ea()}],"border-color-b":[{"border-b":ea()}],"border-color-l":[{"border-l":ea()}],"divide-color":[{divide:ea()}],"outline-style":[{outline:[...ep(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,K,F]}],"outline-w":[{outline:["",I,$,U]}],"outline-color":[{outline:ea()}],shadow:[{shadow:["","none",c,Q,Y]}],"shadow-color":[{shadow:ea()}],"inset-shadow":[{"inset-shadow":["none",d,Q,Y]}],"inset-shadow-color":[{"inset-shadow":ea()}],"ring-w":[{ring:eh()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ea()}],"ring-offset-w":[{"ring-offset":[I,U]}],"ring-offset-color":[{"ring-offset":ea()}],"inset-ring-w":[{"inset-ring":eh()}],"inset-ring-color":[{"inset-ring":ea()}],"text-shadow":[{"text-shadow":["none",f,Q,Y]}],"text-shadow-color":[{"text-shadow":ea()}],opacity:[{opacity:[I,K,F]}],"mix-blend":[{"mix-blend":[...em(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":em()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":eg()}],"mask-image-linear-to-pos":[{"mask-linear-to":eg()}],"mask-image-linear-from-color":[{"mask-linear-from":ea()}],"mask-image-linear-to-color":[{"mask-linear-to":ea()}],"mask-image-t-from-pos":[{"mask-t-from":eg()}],"mask-image-t-to-pos":[{"mask-t-to":eg()}],"mask-image-t-from-color":[{"mask-t-from":ea()}],"mask-image-t-to-color":[{"mask-t-to":ea()}],"mask-image-r-from-pos":[{"mask-r-from":eg()}],"mask-image-r-to-pos":[{"mask-r-to":eg()}],"mask-image-r-from-color":[{"mask-r-from":ea()}],"mask-image-r-to-color":[{"mask-r-to":ea()}],"mask-image-b-from-pos":[{"mask-b-from":eg()}],"mask-image-b-to-pos":[{"mask-b-to":eg()}],"mask-image-b-from-color":[{"mask-b-from":ea()}],"mask-image-b-to-color":[{"mask-b-to":ea()}],"mask-image-l-from-pos":[{"mask-l-from":eg()}],"mask-image-l-to-pos":[{"mask-l-to":eg()}],"mask-image-l-from-color":[{"mask-l-from":ea()}],"mask-image-l-to-color":[{"mask-l-to":ea()}],"mask-image-x-from-pos":[{"mask-x-from":eg()}],"mask-image-x-to-pos":[{"mask-x-to":eg()}],"mask-image-x-from-color":[{"mask-x-from":ea()}],"mask-image-x-to-color":[{"mask-x-to":ea()}],"mask-image-y-from-pos":[{"mask-y-from":eg()}],"mask-image-y-to-pos":[{"mask-y-to":eg()}],"mask-image-y-from-color":[{"mask-y-from":ea()}],"mask-image-y-to-color":[{"mask-y-to":ea()}],"mask-image-radial":[{"mask-radial":[K,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":eg()}],"mask-image-radial-to-pos":[{"mask-radial-to":eg()}],"mask-image-radial-from-color":[{"mask-radial-from":ea()}],"mask-image-radial-to-color":[{"mask-radial-to":ea()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":eg()}],"mask-image-conic-to-pos":[{"mask-conic-to":eg()}],"mask-image-conic-from-color":[{"mask-conic-from":ea()}],"mask-image-conic-to-color":[{"mask-conic-to":ea()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:el()}],"mask-repeat":[{mask:eu()}],"mask-size":[{mask:ec()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,F]}],filter:[{filter:["","none",K,F]}],blur:[{blur:eb()}],brightness:[{brightness:[I,K,F]}],contrast:[{contrast:[I,K,F]}],"drop-shadow":[{"drop-shadow":["","none",h,Q,Y]}],"drop-shadow-color":[{"drop-shadow":ea()}],grayscale:[{grayscale:["",I,K,F]}],"hue-rotate":[{"hue-rotate":[I,K,F]}],invert:[{invert:["",I,K,F]}],saturate:[{saturate:[I,K,F]}],sepia:[{sepia:["",I,K,F]}],"backdrop-filter":[{"backdrop-filter":["","none",K,F]}],"backdrop-blur":[{"backdrop-blur":eb()}],"backdrop-brightness":[{"backdrop-brightness":[I,K,F]}],"backdrop-contrast":[{"backdrop-contrast":[I,K,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,K,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,K,F]}],"backdrop-invert":[{"backdrop-invert":["",I,K,F]}],"backdrop-opacity":[{"backdrop-opacity":[I,K,F]}],"backdrop-saturate":[{"backdrop-saturate":[I,K,F]}],"backdrop-sepia":[{"backdrop-sepia":["",I,K,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[I,"initial",K,F]}],ease:[{ease:["linear","initial",b,K,F]}],delay:[{delay:[I,K,F]}],animate:[{animate:["none",E,K,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,K,F]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ev()}],"rotate-x":[{"rotate-x":ev()}],"rotate-y":[{"rotate-y":ev()}],"rotate-z":[{"rotate-z":ev()}],scale:[{scale:eE()}],"scale-x":[{"scale-x":eE()}],"scale-y":[{"scale-y":eE()}],"scale-z":[{"scale-z":eE()}],"scale-3d":["scale-3d"],skew:[{skew:ey()}],"skew-x":[{"skew-x":ey()}],"skew-y":[{"skew-y":ey()}],transform:[{transform:[K,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eS()}],"translate-x":[{"translate-x":eS()}],"translate-y":[{"translate-y":eS()}],"translate-z":[{"translate-z":eS()}],"translate-none":["translate-none"],accent:[{accent:ea()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ea()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,F]}],fill:[{fill:["none",...ea()]}],"stroke-w":[{stroke:[I,$,U,G]}],stroke:[{stroke:["none",...ea()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ef=["bg-red-500/15 text-red-600 dark:text-red-400","bg-orange-500/15 text-orange-600 dark:text-orange-400","bg-amber-500/15 text-amber-600 dark:text-amber-400","bg-yellow-500/15 text-yellow-600 dark:text-yellow-400","bg-lime-500/15 text-lime-600 dark:text-lime-400","bg-green-500/15 text-green-600 dark:text-green-400","bg-emerald-500/15 text-emerald-600 dark:text-emerald-400","bg-teal-500/15 text-teal-600 dark:text-teal-400","bg-cyan-500/15 text-cyan-600 dark:text-cyan-400","bg-sky-500/15 text-sky-600 dark:text-sky-400","bg-blue-500/15 text-blue-600 dark:text-blue-400","bg-indigo-500/15 text-indigo-600 dark:text-indigo-400","bg-violet-500/15 text-violet-600 dark:text-violet-400","bg-purple-500/15 text-purple-600 dark:text-purple-400","bg-fuchsia-500/15 text-fuchsia-600 dark:text-fuchsia-400","bg-pink-500/15 text-pink-600 dark:text-pink-400","bg-rose-500/15 text-rose-600 dark:text-rose-400"],eh=["#ef4444","#f97316","#f59e0b","#eab308","#84cc16","#22c55e","#10b981","#14b8a6","#06b6d4","#0ea5e9","#3b82f6","#6366f1","#8b5cf6","#a855f7","#d946ef","#ec4899","#f43f5e"];function ep(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);return Math.abs(t)}e.s(["cn",0,function(...e){return ed((0,t.clsx)(e))},"textColorClass",0,function(e){return ef[ep(e)%ef.length]},"textToColor",0,function(e){return eh[ep(e)%eh.length]}],465458)},92615,e=>{"use strict";let t;function r(){return"u">typeof window}function n(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function a(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function l(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function d(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let f=/transform|translate|scale|rotate|perspective|filter/,h=/paint|layout|strict|content/,p=e=>!!e&&"none"!==e;function m(e){let t=a(e)?v(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!g()&&(p(t.backdropFilter)||p(t.filter))||f.test(t.willChange||"")||h.test(t.contain||"")}function g(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function b(e){return/^(html|body|#document)$/.test(n(e))}function v(e){return i(e).getComputedStyle(e)}function E(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,v,"getContainingBlock",0,function(e){let t=E(e);for(;l(t)&&!b(t);){if(m(t))return t;if(d(t))break;t=E(t)}return null},"getDocumentElement",0,o,"getFrameElement",0,y,"getNodeName",0,n,"getNodeScroll",0,function(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,r,n){var o;void 0===r&&(r=[]),void 0===n&&(n=!0);let s=function e(t){let r=E(t);return b(r)?t.ownerDocument?t.ownerDocument.body:t.body:l(r)&&c(r)?r:e(r)}(t),a=s===(null==(o=t.ownerDocument)?void 0:o.body),u=i(s);if(!a)return r.concat(s,e(s,[],n));{let t=y(u);return r.concat(u,u.visualViewport||[],c(s)?s:[],t&&n?e(t):[])}},"getParentNode",0,E,"getWindow",0,i,"isContainingBlock",0,m,"isElement",0,a,"isHTMLElement",0,l,"isLastTraversableNode",0,b,"isNode",0,s,"isOverflowElement",0,c,"isShadowRoot",0,u,"isTableElement",0,function(e){return/^(table|td|th)$/.test(n(e))},"isTopLayer",0,d,"isWebKit",0,g])},29905,e=>{"use strict";var t=e.i(764556),r=e.i(549154);let n=t[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],i=n&&n!==t.useLayoutEffect?n:e=>e();function o(){let e={next:void 0,callback:s,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function s(){}e.s(["useStableCallback",0,function(e){let t=(0,r.useRefWithInit)(o).current;return t.next=e,i(t.effect),t.trampoline}])},277642,e=>{"use strict";var t=e.i(764556);let r="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,r])},931709,352360,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(92615),n=e.i(29905),i=e.i(277642),o=e.i(370383),s=e.i(267805);let a=t.createContext(void 0);function l(e=!1){let r=t.useContext(a);if(void 0===r&&!e)throw Error((0,s.default)(16));return r}function u(e){return(0,r.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,a,"useCompositeRootContext",0,l],352360),e.s(["useButton",0,function(e={}){let{disabled:r=!1,focusableWhenDisabled:s,tabIndex:a=0,native:c=!0,composite:d}=e,f=t.useRef(null),h=l(!0),p=d??void 0!==h,{props:m}=function(e){let{focusableWhenDisabled:r,disabled:n,composite:i=!1,tabIndex:o=0,isNativeButton:s}=e,a=i&&!1!==r,l=i&&!1===r;return{props:t.useMemo(()=>{let e={onKeyDown(e){n&&r&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=o,!s&&n&&(e.tabIndex=r?o:-1)),(s&&(r||a)||!s&&n)&&(e["aria-disabled"]=n),s&&(!r||l)&&(e.disabled=n),e},[i,n,r,a,l,s,o])}}({focusableWhenDisabled:s,disabled:r,composite:p,tabIndex:a,isNativeButton:c}),g=t.useCallback(()=>{let e=f.current;u(e)&&p&&r&&void 0===m.disabled&&e.disabled&&(e.disabled=!1)},[r,m.disabled,p]);return(0,i.useIsoLayoutEffect)(g,[g]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:i,onKeyDown:s,onPointerDown:a,...l}=e,d=c?"button":void 0;return(0,o.mergeProps)({type:d,onClick(e){r?e.preventDefault():t?.(e)},onMouseDown(e){r||n?.(e)},onKeyDown(e){var n;if(r||((0,o.makeEventPreventable)(e),s?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,a=e.currentTarget,l=u(a),d=!c&&(n=a,!!(n?.tagName==="A"&&n?.href)),f=i&&(c?l:!d),h="Enter"===e.key,m=" "===e.key,g=a.getAttribute("role"),b=g?.startsWith("menuitem")||"option"===g||"gridcell"===g;if(i&&p&&m){if(e.defaultPrevented&&b)return;e.preventDefault(),d||c&&l?(a.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!c&&(m||h)&&e.preventDefault(),!c&&h&&t?.(e))},onKeyUp(e){r||(((0,o.makeEventPreventable)(e),i?.(e),e.target===e.currentTarget&&c&&p&&u(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||c||p||" "!==e.key||t?.(e)))},onPointerDown(e){r?e.preventDefault():a?.(e)}},c?void 0:{role:"button"},m,l)},[r,m,p,c]),buttonRef:(0,n.useStableCallback)(e=>{f.current=e,g()})}}],931709)},674548,e=>{"use strict";var t=e.i(764556),r=e.i(931709),n=e.i(969490);let i=t.forwardRef(function(e,t){let{render:i,className:o,disabled:s=!1,focusableWhenDisabled:a=!1,nativeButton:l=!0,style:u,...c}=e,{getButtonProps:d,buttonRef:f}=(0,r.useButton)({disabled:s,focusableWhenDisabled:a,native:l});return(0,n.useRenderElement)("button",e,{state:{disabled:s},ref:[t,f],props:[c,d]})});e.s(["Button",0,i])},260218,e=>{"use strict";var t=e.i(344180),r=e.i(674548),n=e.i(294237),i=e.i(465458);let o=(0,n.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:n="default",size:s="default",...a}){return(0,t.jsx)(r.Button,{"data-slot":"button",className:(0,i.cn)(o({variant:n,size:s,className:e})),...a})},"buttonVariants",0,o])},636707,e=>{"use strict";e.s([])},125231,438904,e=>{"use strict";e.i(8890);var t,r=e.i(267805),n=e.i(764556),i=e.i(863728);let o=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),s={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},a={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},l={disabled:!1,...a};e.s(["DEFAULT_FIELD_ROOT_STATE",0,l,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,a,"DEFAULT_VALIDITY_STATE",0,s,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[o.valid]:""}:{[o.invalid]:""}}],438904);let u=n.createContext({invalid:void 0,name:void 0,validityData:{state:s,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,touched:a.touched,setTouched:i.NOOP,dirty:a.dirty,setDirty:i.NOOP,filled:a.filled,setFilled:i.NOOP,focused:a.focused,setFocused:i.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:l,markedDirtyRef:{current:!1},registerFieldControl:i.NOOP,validation:{getValidationProps:(e=i.EMPTY_OBJECT)=>e,getInputValidationProps:(e=i.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=n.useContext(u);if(t.setValidityData===i.NOOP&&!e)throw Error((0,r.default)(28));return t}],125231)},50891,e=>{"use strict";var t=e.i(267805),r=e.i(764556);let n=r.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});e.s(["useFieldsetRootContext",0,function(e=!1){let i=r.useContext(n);if(!i&&!e)throw Error((0,t.default)(86));return i}])},380414,e=>{"use strict";var t=e.i(764556),r=e.i(863728);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}])},394822,e=>{"use strict";var t=e.i(764556);let r={...t},n=0,i=r.useId;e.s(["useId",0,function(e,r){if(void 0!==i){let t=i();return e??(r?`${r}-${t}`:t)}return function(e,r="mui"){let[i,o]=t.useState(e),s=e||i;return t.useEffect(()=>{null==i&&(n+=1,o(`${r}-${n}`))},[i,r]),s}(e,r)}],394822)},139236,e=>{"use strict";var t=e.i(394822);e.s(["useBaseUiId",0,function(e){return(0,t.useId)(e,"base-ui")}])},443124,e=>{"use strict";var t=e.i(764556),r=e.i(863728);let n=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,n,"useLabelableContext",0,function(){return t.useContext(n)}])},593947,e=>{"use strict";var t=e.i(764556),r=e.i(29905),n=e.i(549154),i=e.i(370383),o=e.i(139236),s=e.i(443124),a=e.i(344180);e.s(["LabelableProvider",0,function(e){let l=(0,o.useBaseUiId)(),u=void 0===e.controlId?l:e.controlId,[c,d]=t.useState(u),[f,h]=t.useState(e.labelId),[p,m]=t.useState([]),g=(0,n.useRefWithInit)(()=>new Map),{messageIds:b}=(0,s.useLabelableContext)(),v=(0,r.useStableCallback)((e,t)=>{let r=g.current;void 0===t?r.delete(e):(r.set(e,t),d(e=>{let t;if(0!==r.size){for(let n of r.values()){if(void 0!==e&&n===e)return e;void 0===t&&(t=n)}return t}}))}),E=t.useCallback(e=>(0,i.mergeProps)({"aria-describedby":b.concat(p).join(" ")||void 0},e),[b,p]),y=t.useMemo(()=>({controlId:c,registerControlId:v,labelId:f,setLabelId:h,messageIds:p,setMessageIds:m,getDescriptionProps:E}),[c,v,f,h,p,m,E]);return(0,a.jsx)(s.LabelableContext.Provider,{value:y,children:e.children})}])},130522,e=>{"use strict";var t=e.i(764556);let r=[];e.s(["useOnMount",0,function(e){t.useEffect(e,r)}])},232449,e=>{"use strict";var t=e.i(549154),r=e.i(130522);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},84987,2602,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(29905),n=e.i(125231),i=e.i(438904),o=e.i(50891),s=e.i(380414),a=e.i(593947),l=e.i(969490),u=e.i(863728),c=e.i(232449),d=e.i(443124),f=e.i(370383);function h(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,h],2602);let p=Object.keys(i.DEFAULT_VALIDITY_STATE);var m=e.i(106206),g=e.i(277642),b=e.i(344180);let v=t.forwardRef(function(e,a){let{errors:v,validationMode:E,submitAttemptedRef:y}=(0,s.useFormContext)(),{render:S,className:T,validate:x,validationDebounceTime:w=0,validationMode:C=E,name:R,disabled:k=!1,invalid:I,dirty:A,touched:O,actionsRef:P,style:M,...L}=e,{disabled:N}=(0,o.useFieldsetRootContext)(),D=(0,r.useStableCallback)(x||(()=>null)),H=N||k,[_,B]=t.useState(!1),[F,U]=t.useState(!1),[G,V]=t.useState(!1),[j,W]=t.useState(!1),z=A??F,Y=O??_,K=t.useRef(!1),$=(0,r.useStableCallback)(e=>{void 0===A&&(e&&(K.current=!0),U(e))}),X=(0,r.useStableCallback)(e=>{void 0===O&&B(e)}),Z=(0,r.useStableCallback)(()=>"onChange"===C||"onSubmit"===C&&y.current),q=!!R&&Object.hasOwn(v,R)&&void 0!==v[R],J=!0===I||q,[Q,ee]=t.useState({state:i.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!J&&Q.state.valid,er=t.useMemo(()=>({disabled:H,touched:Y,dirty:z,valid:et,filled:G,focused:j}),[H,Y,z,et,G,j]),en=function(e){let{formRef:n,clearErrors:o}=(0,s.useFormContext)(),{setValidityData:a,validate:l,validityData:m,validationDebounceTime:g,invalid:b,markedDirtyRef:v,state:E,name:y,shouldValidateOnChange:S}=e,{controlId:T,getDescriptionProps:x}=(0,d.useLabelableContext)(),w=(0,c.useTimeout)(),C=t.useRef(null),R=(0,r.useStableCallback)(async(e,t=!1)=>{let r,o=C.current;if(!o)return;if(t){if(!1!==E.valid)return;let t=o.validity;if(!t.valueMissing){let t={value:e,state:{...i.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:m.initialValue};if(o.setCustomValidity(""),T){let e=n.current.fields.get(T);e&&n.current.fields.set(T,{...e,...h(t,!1)})}a(t);return}let r=p.reduce((e,r)=>(e[r]=t[r],e),{});if(!r.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let r of p)"valid"!==r&&("valueMissing"===r&&(t=e[r]),e[r]&&(t=!1));return t}(r))return}w.clear();let s=null,u=[],c=function(e){let t=p.reduce((t,r)=>(t[r]=e.validity[r],t),{}),r=!1;for(let e of p)if("valid"!==e){if("valueMissing"===e&&t[e])r=!0;else if(t[e])return t}return r&&!v.current&&(t.valid=!0,t.valueMissing=!1),t}(o),d=S();if(o.validationMessage&&!d)r=o.validationMessage,u=[o.validationMessage];else{let t=l(e,Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));null!==(s="object"==typeof t&&null!==t&&"then"in t?await t:t)?(c.valid=!1,c.customError=!0,Array.isArray(s)?(u=s,o.setCustomValidity(s.join("\n"))):s&&(u=[s],o.setCustomValidity(s))):d&&(o.setCustomValidity(""),c.customError=!1,o.validationMessage?(r=o.validationMessage,u=[o.validationMessage]):o.validity.valid&&!c.valid&&(c.valid=!0))}let f={value:e,state:c,error:r??(Array.isArray(s)?s[0]:s??""),errors:u,initialValue:m.initialValue};if(T){let e=n.current.fields.get(T);e&&n.current.fields.set(T,{...e,...h(f,b)})}a(f)}),k=t.useCallback((e={})=>(0,f.mergeProps)(x,!1===E.valid?{"aria-invalid":!0}:u.EMPTY_OBJECT,e),[x,E.valid]),I=t.useCallback((e={})=>(0,f.mergeProps)({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(o(y),!S())return void R(e.currentTarget.value,!0);let t=e.currentTarget;""===t.value?R(t.value):(w.clear(),g?w.start(g,()=>{R(t.value)}):R(t.value))}},k(e)),[k,o,y,w,R,g,S]);return t.useMemo(()=>({getValidationProps:k,getInputValidationProps:I,inputRef:C,commit:R}),[k,I,R])}({setValidityData:ee,validate:D,validityData:Q,validationDebounceTime:w,invalid:J,markedDirtyRef:K,state:er,name:R,shouldValidateOnChange:Z}),ei=t.useCallback(()=>{K.current=!0,en.commit(Q.value)},[en,Q]),eo=function(e){let{commit:n,invalid:i,markedDirtyRef:o,name:a,setValidityData:l,validityData:u}=e,{formRef:c}=(0,s.useFormContext)(),d=t.useRef(null),f=t.useRef(null),p=t.useRef(null),b=(0,r.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value}),v=(0,r.useStableCallback)((e=!0)=>{let t=f.current;if(!t)return;let r=t.value;void 0===r&&(r=b()),o.current=!0,e?m.flushSync(()=>n(r)):n(r)});function E(e=f.current?.id){e&&c.current.fields.delete(e)}return(0,g.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&c.current.fields.set(e.id,{getValue:b,name:a,controlRef:e.controlRef??p,validityData:h(u,i),validate:v})},[c,b,i,a,v,u]),(0,g.useIsoLayoutEffect)(()=>{let e=c.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[c]),(0,r.useStableCallback)((e,t)=>{let r;if(!t){d.current===e&&(d.current=null,E(),f.current=null);return}let n=f.current?.id;d.current=e,f.current=t,n&&n!==t.id&&E(n),function(){let e=f.current;if(!e)return;let t=e.value;void 0===t&&(t=b()),null===u.initialValue&&null!==t&&l(e=>({...e,initialValue:t}))}(),(r=f.current)&&r.id&&c.current.fields.set(r.id,{getValue:b,name:a,controlRef:r.controlRef??p,validityData:h(u,i),validate:v})})}({commit:en.commit,invalid:J,markedDirtyRef:K,name:R,setValidityData:ee,validityData:Q});t.useImperativeHandle(P,()=>({validate:ei}),[ei]);let es=t.useMemo(()=>({invalid:J,name:R,validityData:Q,setValidityData:ee,disabled:H,touched:Y,setTouched:X,dirty:z,setDirty:$,filled:G,setFilled:V,focused:j,setFocused:W,validate:D,validationMode:C,validationDebounceTime:w,shouldValidateOnChange:Z,state:er,markedDirtyRef:K,registerFieldControl:eo,validation:en}),[J,R,Q,H,Y,X,z,$,G,V,j,W,D,C,w,Z,er,eo,en]),ea=(0,l.useRenderElement)("div",e,{ref:a,state:er,props:L,stateAttributesMapping:i.fieldValidityMapping});return(0,b.jsx)(n.FieldRootContext.Provider,{value:es,children:ea})}),E=t.forwardRef(function(e,t){return(0,b.jsx)(a.LabelableProvider,{children:(0,b.jsx)(v,{...e,ref:t})})});e.s(["FieldRoot",0,E],84987)},526850,e=>{"use strict";e.s(["ownerDocument",0,function(e){return e?.ownerDocument||document}])},410421,e=>{"use strict";var t=e.i(92615);e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,r){if(!e||!r)return!1;let n=r.getRootNode?.();if(e.contains(r))return!0;if(n&&(0,t.isShadowRoot)(n)){let t=r;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}])},262407,559713,213700,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(125231),n=e.i(438904),i=e.i(969490),o=e.i(443124),s=e.i(92615),a=e.i(526850),l=e.i(29905),u=e.i(410421),c=e.i(277642),d=e.i(139236);function f(e,t){let r=(0,d.useBaseUiId)(e);return(0,c.useIsoLayoutEffect)(()=>(t(r),()=>{t(void 0)}),[r,t]),r}function h(e={}){let{id:t,fallbackControlId:r,native:n=!1,setLabelId:i,focusControl:c}=e,{controlId:d,setLabelId:m}=(0,o.useLabelableContext)(),g=f(t,(0,l.useStableCallback)(e=>{m(e),i?.(e)})),b=d??r;function v(e){let t=(0,u.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),n||function(e){if(c)return c(e,b);if(!b)return;let t=(0,a.ownerDocument)(e.currentTarget).getElementById(b);(0,s.isHTMLElement)(t)&&p(t)}(e))}return n?{id:g,htmlFor:b??void 0,onMouseDown:v}:{id:g,onClick:v,onPointerDown(e){e.preventDefault()}}}function p(e){e.focus({focusVisible:!0})}e.s(["useRegisteredLabelId",0,f],559713),e.s(["focusElementWithVisible",0,p,"useLabel",0,h],213700);let m=t.forwardRef(function(e,s){let{render:a,className:l,style:u,id:c,nativeLabel:d=!0,...f}=e,p=(0,r.useFieldRootContext)(!1),{labelId:m}=(0,o.useLabelableContext)(),g=t.useRef(null),b=h({id:m??c,native:d});return(0,i.useRenderElement)("label",e,{ref:[s,g],state:p.state,props:[b,f],stateAttributesMapping:n.fieldValidityMapping})});e.s(["FieldLabel",0,m],262407)},859092,e=>{"use strict";var t=e.i(549154),r=e.i(130522);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class i{static create(){return new i}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,i,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(i.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},516161,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},282458,e=>{"use strict";var t;let r=((t={}).startingStyle="data-starting-style",t.endingStyle="data-ending-style",t),n={[r.startingStyle]:""},i={[r.endingStyle]:""};e.s(["TransitionStatusDataAttributes",0,r,"transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?i:null}])},427708,e=>{"use strict";var t=e.i(106206),r=e.i(859092),n=e.i(29905),i=e.i(516161),o=e.i(282458);e.s(["useAnimationsFinished",0,function(e,s=!1,a=!0){let l=(0,r.useAnimationFrame)();return(0,n.useStableCallback)((r,n=null)=>{l.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let c=()=>{t.flushSync(r)};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function d(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{n?.aborted||c()}).catch(()=>{if(a){n?.aborted||c();return}let e=u.getAnimations();!n?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&d()})}if(s){let e=o.TransitionStatusDataAttributes.startingStyle;if(!u.hasAttribute(e))return void l.request(d);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),d())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void n?.addEventListener("abort",()=>t.disconnect(),{once:!0})}l.request(d)})}])},273598,e=>{"use strict";var t=e.i(764556),r=e.i(29905),n=e.i(427708);e.s(["useOpenChangeComplete",0,function(e){let{enabled:i=!0,open:o,ref:s,onComplete:a}=e,l=(0,r.useStableCallback)(a),u=(0,n.useAnimationsFinished)(s,o,!1);t.useEffect(()=>{if(!i)return;let e=new AbortController;return u(l,e.signal),()=>{e.abort()}},[i,o,l,u])}])},254891,e=>{"use strict";var t=e.i(764556),r=e.i(277642),n=e.i(859092);e.s(["useTransitionStatus",0,function(e,i=!1,o=!1){let[s,a]=t.useState(e&&i?"idle":void 0),[l,u]=t.useState(e);return e&&!l&&(u(!0),a("starting")),e||!l||"ending"===s||o||a("ending"),e||l||"ending"!==s||a(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==s&&o){let e=n.AnimationFrame.request(()=>{a("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,s,o]),(0,r.useIsoLayoutEffect)(()=>{if(!e||i)return;let t=n.AnimationFrame.request(()=>{a(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[i,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!i)return;e&&l&&"idle"!==s&&a("starting");let t=n.AnimationFrame.request(()=>{a("idle")});return()=>{n.AnimationFrame.cancel(t)}},[i,e,l,s]),{mounted:l,setMounted:u,transitionStatus:s}}])},987854,781406,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(277642),n=e.i(125231),i=e.i(443124),o=e.i(438904),s=e.i(380414),a=e.i(969490),l=e.i(139236),u=e.i(273598),c=e.i(282458),d=e.i(254891),f=e.i(344180);let h={...o.fieldValidityMapping,...c.transitionStatusMapping},p=t.forwardRef(function(e,o){let{render:c,id:p,className:m,match:g,style:b,...v}=e,E=(0,l.useBaseUiId)(p),{validityData:y,state:S,name:T}=(0,n.useFieldRootContext)(!1),{setMessageIds:x}=(0,i.useLabelableContext)(),{errors:w}=(0,s.useFormContext)(),C=T?w[T]:null,R="string"==typeof g,k=!1;k=!0===g||(R?!!y.state[g]:!!C||!1===y.state.valid);let{mounted:I,transitionStatus:A,setMounted:O}=(0,d.useTransitionStatus)(k);(0,r.useIsoLayoutEffect)(()=>{if(k&&E)return x(e=>e.concat(E)),()=>{x(e=>e.filter(e=>e!==E))}},[k,E,x]);let P=t.useRef(null),[M,L]=t.useState(null),[N,D]=t.useState(null),H=y.errors.length>1?(0,f.jsx)("ul",{children:y.errors.map(e=>(0,f.jsx)("li",{children:e},e))}):y.error,_=R?H:C||H,B=y.error;null!=C?B=Array.isArray(C)?JSON.stringify(C):C:y.errors.length>1&&(B=JSON.stringify(y.errors)),k&&B!==N&&(D(B),L(_)),(0,u.useOpenChangeComplete)({open:k,ref:P,onComplete(){k||O(!1)}});let F={...S,transitionStatus:A},U=(0,a.useRenderElement)("div",e,{ref:[o,P],state:F,props:[{id:E,children:k?_:M},v],stateAttributesMapping:h,enabled:I});return I?U:null});e.s(["FieldError",0,p],987854);let m=t.forwardRef(function(e,t){let{render:s,id:u,className:c,style:d,...f}=e,h=(0,l.useBaseUiId)(u),p=(0,n.useFieldRootContext)(!1),{setMessageIds:m}=(0,i.useLabelableContext)();return(0,r.useIsoLayoutEffect)(()=>{if(h)return m(e=>e.concat(h)),()=>{m(e=>e.filter(e=>e!==h))}},[h,m]),(0,a.useRenderElement)("p",e,{ref:t,state:p.state,props:[{id:h},f],stateAttributesMapping:o.fieldValidityMapping})});e.s(["FieldDescription",0,m],781406)},535270,e=>{"use strict";var t=e.i(764556);e.s(["useControlled",0,function({controlled:e,default:r,name:n,state:i="value"}){let{current:o}=t.useRef(void 0!==e),[s,a]=t.useState(r),l=t.useCallback(e=>{o||a(e)},[]);return[o?e:s,l]}])},975698,e=>{"use strict";var t=e.i(764556),r=e.i(277642),n=e.i(125231);e.s(["useRegisterFieldControl",0,function(e,i){let{enabled:o=!0,getValue:s,id:a,value:l}=i,{registerFieldControl:u}=(0,n.useFieldRootContext)(),c=t.useRef(null);c.current||(c.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=c.current;if(t&&o)return u(t,{controlRef:e,getValue:s,id:a,value:l}),()=>{u(t,void 0)}},[e,o,s,a,u,l])}])},575665,e=>{"use strict";var t=e.i(764556),r=e.i(277642),n=e.i(29905),i=e.i(549154),o=e.i(92615),s=e.i(863728),a=e.i(139236),l=e.i(443124);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:c=!1,controlRef:d}=e,{controlId:f,registerControlId:h}=(0,l.useLabelableContext)(),p=(0,a.useBaseUiId)(u),m=c?f:void 0,g=(0,i.useRefWithInit)(()=>Symbol("labelable-control")),b=t.useRef(!1),v=t.useRef(null!=u),E=(0,n.useStableCallback)(()=>{b.current&&h!==s.NOOP&&(b.current=!1,h(g.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(h!==s.NOOP){if(c){let t=d?.current;e=(0,o.isElement)(t)&&null!=t.closest("label")?u??null:m??p}else if(null!=u)v.current=!0,e=u;else{if(!v.current)return void E();e=p}if(void 0===e)return void E();b.current=!0,h(g.current,e)}},[u,d,m,h,c,p,g,E]),t.useEffect(()=>E,[E]),f??p}])},602453,742665,e=>{"use strict";var t=e.i(863728);e.s(["createChangeEventDetails",0,function(e,r,n,i){let o=!1,s=!1,a=i??t.EMPTY_OBJECT;return{reason:e,event:r??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...a}},"createGenericEventDetails",0,function(e,r,n){let i=n??t.EMPTY_OBJECT;return{reason:e,event:r??new Event("base-ui"),...i}}],602453),e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],485809);var r=e.i(485809);e.s(["REASONS",0,r],742665)},681622,e=>{"use strict";var t=e.i(344180),r=e.i(764556);e.i(8890),e.i(636707);var n=e.i(84987),i=e.i(262407),o=e.i(987854),s=e.i(781406),a=e.i(535270),l=e.i(277642),u=e.i(526850),c=e.i(29905),d=e.i(125231),f=e.i(975698),h=e.i(443124),p=e.i(575665),m=e.i(438904),g=e.i(969490),b=e.i(602453),v=e.i(742665),E=e.i(410421);let y=r.forwardRef(function(e,t){let{render:n,className:i,id:o,name:s,value:y,disabled:S=!1,onValueChange:T,defaultValue:x,autoFocus:w=!1,style:C,...R}=e,{state:k,name:I,disabled:A,setTouched:O,setDirty:P,validityData:M,setFocused:L,setFilled:N,validationMode:D,validation:H}=(0,d.useFieldRootContext)(),_=A||S,B={...k,disabled:_},{labelId:F}=(0,h.useLabelableContext)(),U=(0,p.useLabelableId)({id:o});(0,l.useIsoLayoutEffect)(()=>{let e=null!=y;H.inputRef.current?.value||e&&""!==y?N(!0):e&&""===y&&N(!1)},[H.inputRef,N,y]);let G=r.useRef(null);(0,l.useIsoLayoutEffect)(()=>{w&&G.current===(0,E.activeElement)((0,u.ownerDocument)(G.current))&&L(!0)},[w,L]);let[V]=(0,a.useControlled)({controlled:y,default:x,name:"FieldControl",state:"value"}),j=void 0!==y,W=j?V:void 0,z=(0,c.useStableCallback)(()=>H.inputRef.current?.value);return(0,f.useRegisterFieldControl)(H.inputRef,{id:U,value:W,getValue:z}),(0,g.useRenderElement)("input",e,{ref:[t,G],state:B,props:[{id:U,disabled:_,name:I??s,ref:H.inputRef,"aria-labelledby":F,autoFocus:w,...j?{value:W}:{defaultValue:x},onChange(e){let t=e.currentTarget.value;T?.(t,(0,b.createChangeEventDetails)(v.REASONS.none,e.nativeEvent)),P(t!==M.initialValue),N(""!==t)},onFocus(){L(!0)},onBlur(e){O(!0),L(!1),"onBlur"===D&&H.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(O(!0),H.commit(e.currentTarget.value))}},H.getInputValidationProps(),R],stateAttributesMapping:m.fieldValidityMapping})});var S=e.i(2602),T=e.i(254891);let x=r.createContext({disabled:!1});var w=e.i(593947),C=e.i(267805);let R=r.createContext(void 0),k=r.forwardRef(function(e,n){let{render:i,className:o,style:s,disabled:a=!1,...l}=e,{state:u,disabled:c}=(0,d.useFieldRootContext)(!1),f=c||a,h=function(e=!0){let t=r.useContext(R);if(void 0===t&&!e)throw Error((0,C.default)(3));return t}(),p=h?.parent.id,b=h?.allValues!==void 0,v=r.useMemo(()=>({disabled:f}),[f]),E=(0,g.useRenderElement)("div",e,{ref:n,state:u,props:l,stateAttributesMapping:m.fieldValidityMapping});return(0,t.jsx)(w.LabelableProvider,{controlId:b?p:void 0,children:(0,t.jsx)(x.Provider,{value:v,children:E})})});e.s(["Control",0,y,"Description",()=>s.FieldDescription,"Error",()=>o.FieldError,"Item",0,k,"Label",()=>i.FieldLabel,"Root",()=>n.FieldRoot,"Validity",0,function(e){let{children:n}=e,{validityData:i,invalid:o}=(0,d.useFieldRootContext)(!1),s=r.useMemo(()=>(0,S.getCombinedFieldValidityData)(i,o),[i,o]),a=!1===s.state.valid,{transitionStatus:l}=(0,T.useTransitionStatus)(a),u=r.useMemo(()=>({...s,validity:s.state,transitionStatus:l}),[s,l]);return(0,t.jsx)(r.Fragment,{children:n(u)})}],906646);var I=e.i(906646),I=I;let A=r.forwardRef(function(e,r){return(0,t.jsx)(I.Control,{ref:r,...e})});var O=e.i(465458);e.s(["Input",0,function({className:e,type:n,onKeyDown:i,...o}){let s=r.useRef(!1),a=r.useCallback(()=>{s.current=!0},[]),l=r.useCallback(()=>{s.current=!1},[]),u=r.useCallback(e=>{if("Enter"===e.key&&s.current){e.preventDefault(),e.stopPropagation();return}i?.(e)},[i]);return(0,t.jsx)(A,{type:n,"data-slot":"input",className:(0,O.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),onCompositionStart:a,onCompositionEnd:l,onKeyDown:u,...o})}],681622)},481382,e=>{"use strict";e.s([])},530089,e=>{"use strict";var t=e.i(267805),r=e.i(764556);let n=r.createContext(void 0);e.s(["DialogRootContext",0,n,"useDialogRootContext",0,function(e){let i=r.useContext(n);if(!1===e&&void 0===i)throw Error((0,t.default)(27));return i}])},817955,e=>{"use strict";var t,r,n=e.i(282458);let i=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=n.TransitionStatusDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=n.TransitionStatusDataAttributes.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align",t),o=((r={}).popupOpen="data-popup-open",r.pressed="data-pressed",r),s={[o.popupOpen]:""},a={[o.popupOpen]:"",[o.pressed]:""},l={[i.open]:""},u={[i.closed]:""},c={[i.anchorHidden]:""};e.s(["CommonPopupDataAttributes",0,i,"CommonTriggerDataAttributes",0,o,"popupStateMapping",0,{open:e=>e?l:u,anchorHidden:e=>e?c:null},"pressableTriggerOpenStateMapping",0,{open:e=>e?a:null},"triggerOpenStateMapping",0,{open:e=>e?s:null}])},16223,e=>{"use strict";var t=e.i(764556),r=e.i(530089),n=e.i(969490),i=e.i(817955),o=e.i(282458);let s={...i.popupStateMapping,...o.transitionStatusMapping},a=t.forwardRef(function(e,t){let{render:i,className:o,style:a,forceRender:l=!1,...u}=e,{store:c}=(0,r.useDialogRootContext)(),d=c.useState("open"),f=c.useState("nested"),h=c.useState("mounted"),p=c.useState("transitionStatus");return(0,n.useRenderElement)("div",e,{state:{open:d,transitionStatus:p},ref:[c.context.backdropRef,t],stateAttributesMapping:s,props:[{role:"presentation",hidden:!h,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:l||!f})});e.s(["DialogBackdrop",0,a])},583901,e=>{"use strict";var t=e.i(764556),r=e.i(530089),n=e.i(969490),i=e.i(931709),o=e.i(602453),s=e.i(742665);let a=t.forwardRef(function(e,t){let{render:a,className:l,disabled:u=!1,nativeButton:c=!0,style:d,...f}=e,{store:h}=(0,r.useDialogRootContext)(),p=h.useState("open"),{getButtonProps:m,buttonRef:g}=(0,i.useButton)({disabled:u,native:c});return(0,n.useRenderElement)("button",e,{state:{disabled:u},ref:[t,g],props:[{onClick:function(e){p&&h.setOpen(!1,(0,o.createChangeEventDetails)(s.REASONS.closePress,e.nativeEvent))}},f,m]})});e.s(["DialogClose",0,a])},512519,e=>{"use strict";var t=e.i(764556),r=e.i(530089),n=e.i(969490),i=e.i(139236);let o=t.forwardRef(function(e,t){let{render:o,className:s,style:a,id:l,...u}=e,{store:c}=(0,r.useDialogRootContext)(),d=(0,i.useBaseUiId)(l);return c.useSyncedValueWithCleanup("descriptionElementId",d),(0,n.useRenderElement)("p",e,{ref:t,props:[{id:d},u]})});e.s(["DialogDescription",0,o])},422561,e=>{"use strict";e.s(["addEventListener",0,function(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}])},516366,e=>{"use strict";e.s(["mergeCleanups",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}])},106045,e=>{"use strict";var t=e.i(277642),r=e.i(549154);function n(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,function(e){let i=(0,r.useRefWithInit)(n,e).current;return i.next=e,(0,t.useIsoLayoutEffect)(i.effect),i}])},454889,e=>{"use strict";let t="u">typeof navigator,r=function(){if(!t)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),n=function(){if(!t)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),i=function(){if(!t)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),o="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),s="MacIntel"===r.platform&&r.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(r.platform);t&&/firefox/i.test(i);let a=t&&/apple/i.test(navigator.vendor);t&&/Edg/i.test(i);let l=t&&/android/i.test(n)||/android/i.test(i),u=t&&n.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,c=i.includes("jsdom/");e.s(["isAndroid",0,l,"isIOS",0,s,"isJSDOM",0,c,"isMac",0,u,"isSafari",0,a,"isWebKit",0,o])},285182,e=>{"use strict";var t=e.i(92615);e.s(["ownerWindow",()=>t.getWindow])},601957,236706,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(277642),n=e.i(454889);let i={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},o={...i,position:"fixed",top:0,left:0},s={...i,position:"absolute"};e.s(["visuallyHidden",0,o,"visuallyHiddenInput",0,s],236706);var a=e.i(344180);let l=t.forwardRef(function(e,i){let[s,l]=t.useState();return(0,r.useIsoLayoutEffect)(()=>{n.isSafari&&l("button")},[]),(0,a.jsx)("span",{...e,ref:i,style:o,"aria-hidden":!s||void 0,tabIndex:0,role:s,"data-base-ui-focus-guard":""})});e.s(["FocusGuard",0,l],601957)},922970,118214,150129,e=>{"use strict";var t=e.i(92615),r=e.i(454889);let n="data-base-ui-focusable",i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";e.s(["ACTIVE_KEY",0,"active","ARROW_DOWN",0,"ArrowDown","ARROW_LEFT",0,"ArrowLeft","ARROW_RIGHT",0,"ArrowRight","ARROW_UP",0,"ArrowUp","FOCUSABLE_ATTRIBUTE",0,n,"SELECTED_KEY",0,"selected","TYPEABLE_SELECTOR",0,i],118214);var o=e.i(410421);function s(e){return(0,t.isHTMLElement)(e)&&e.matches(i)}e.s(["getFloatingFocusElement",0,function(e){return e?e.hasAttribute(n)?e:e.querySelector(`[${n}]`)||e:null},"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${i}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTargetInsideEnabledTrigger",0,function(e,r){if(!(0,t.isElement)(e))return!1;if(r.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,t]of r.entries())if((0,o.contains)(t,e))return!t.hasAttribute("data-trigger-disabled");return!1},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&s(e)},"isTypeableElement",0,s,"matchesFocusVisible",0,function(e){if(!e||r.isJSDOM)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],922970),e.s(["isClickLikeEvent",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"isMouseLikePointerType",0,function(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isVirtualClick",0,function(e){return""===e.pointerType&&!!e.isTrusted||(r.isAndroid&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"isVirtualPointerEvent",0,function(e){return!r.isJSDOM&&(!r.isAndroid&&0===e.width&&0===e.height||r.isAndroid&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"stopEvent",0,function(e){e.preventDefault(),e.stopPropagation()}],150129)},878984,641645,877580,e=>{"use strict";var t=e.i(92615),r=e.i(526850),n=e.i(410421);e.i(8890);let i=["top","right","bottom","left"],o=i.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),s=Math.min,a=Math.max,l=Math.round,u=Math.floor,c={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return h(m(e))}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let v=["left","right"],E=["right","left"],y=["top","bottom"],S=["bottom","top"];function T(e){let t=d(e);return c[t]+e.slice(t.length)}e.s(["clamp",0,function(e,t,r){return a(e,s(t,r))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,u,"getAlignment",0,f,"getAlignmentAxis",0,g,"getAlignmentSides",0,function(e,t,r){void 0===r&&(r=!1);let n=f(e),i=g(e),o=p(i),s="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=T(s)),[s,T(s)]},"getAxisLength",0,p,"getExpandedPlacements",0,function(e){let t=T(e);return[b(e),t,b(t)]},"getOppositeAlignmentPlacement",0,b,"getOppositeAxis",0,h,"getOppositeAxisPlacements",0,function(e,t,r,n){let i=f(e),o=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?E:v;return t?v:E;case"left":case"right":return t?y:S;default:return[]}}(d(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(b)))),o},"getOppositePlacement",0,T,"getPaddingObject",0,function(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}},"getSide",0,d,"getSideAxis",0,m,"max",0,a,"min",0,s,"placements",0,o,"rectToClientRect",0,function(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}},"round",0,l,"sides",0,i],641645);var x=e.i(150129),w=e.i(118214);function C(e,t,r){return Math.floor(e/t)!==r}function R(e,t){return t<0||t>=e.length}function k(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:n,amount:i=1}={}){let o=t;do o+=r?-i:i;while(o>=0&&o<=e.length-1&&I(e,o,n))return o}function I(e,t,r){if("function"==typeof r?r(t):r?.includes(t)??!1)return!0;let n=e[t];return!!n&&(!A(n)||!r&&(n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")))}function A(e,r=e?(0,t.getComputedStyle)(e):null){var n;return!!e&&!!e.isConnected&&!!r&&"hidden"!==(n=r).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==r.display&&"contents"!==r.display)}function O(e){for(let r of Array.from(e.children))if("summary"===(0,t.getNodeName)(r))return r;return null}function P(e){let r=e?(0,t.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==r||null!=e.parentElement&&"details"===(0,t.getNodeName)(e.parentElement)&&O(e.parentElement)===e)&&("details"!==r||null==O(e))&&("input"!==r||"hidden"!==e.type)}function M(e){if(!P(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let r=e;r;r=function(e){let r=e.assignedSlot;if(r)return r;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return(0,t.isShadowRoot)(n)?n.host:null}(r)){let i=r!==e,o="slot"===(0,t.getNodeName)(r);if(r.hasAttribute("inert")||i&&"details"===(0,t.getNodeName)(r)&&!r.open&&!function(e,t){let r=O(t);return!!r&&(e===r||(0,n.contains)(r,e))}(e,r)||r.hasAttribute("hidden")||!o&&!function(e,r){let n=(0,t.getComputedStyle)(e);return r?"none"!==n.display:A(e,n)}(r,i))return!1}return!0}function L(e){let r=e.tabIndex;if(r<0){let r=(0,t.getNodeName)(e);if("details"===r||"audio"===r||"video"===r||(0,t.isHTMLElement)(e)&&e.isContentEditable)return 0}return r}function N(e){return"input"!==(0,t.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function D(e){if((0,t.isHTMLElement)(e)&&"slot"===(0,t.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function H(e){let t=[];return!function e(t,r){D(t).forEach(t=>{P(t)&&r.push(t),e(t,r)})}(e,t),t.filter(M)}function _(e){let t=H(e);return t.filter(e=>L(e)>=0&&function(e,t){let r=N(e);if(!r)return!0;let n=t.find(e=>{let t=N(e);return t?.name===r.name&&t.form===r.form&&t.checked});return n?n===r:t.find(e=>{let t=N(e);return t?.name===r.name&&t.form===r.form})===r}(e,t))}function B(e,t){let i=_(e),o=i.length;if(0===o)return;let s=(0,n.activeElement)((0,r.ownerDocument)(e)),a=i.indexOf(s);return i[-1===a?1===t?0:o-1:a+t]}function F(e,t){if(!e)return null;let n=_((0,r.ownerDocument)(e).body),i=n.length;if(0===i)return null;let o=n.indexOf(e);return -1===o?null:n[(o+t+i)%i]}e.s(["createGridCellMap",0,function(e,t,r){let n=[],i=0;return e.forEach(({width:e,height:o},s)=>{let a=!1;for(r&&(i=0);!a;){let r=[];for(let n=0;n<e;n+=1)for(let e=0;e<o;e+=1)r.push(i+n+e*t);i%t+e<=t&&r.every(e=>null==n[e])?(r.forEach(e=>{n[e]=s}),a=!0):i+=1}}),[...n]},"findNonDisabledListIndex",0,k,"getGridCellIndexOfCorner",0,function(e,t,r,n,i){if(-1===e)return -1;let o=r.indexOf(e),s=t[e];switch(i){case"tl":return o;case"tr":if(!s)return o;return o+s.width-1;case"bl":if(!s)return o;return o+(s.height-1)*n;case"br":return r.lastIndexOf(e);default:return -1}},"getGridCellIndices",0,function(e,t){return t.flatMap((t,r)=>e.includes(t)?[r]:[])},"getGridNavigatedIndex",0,function(e,{event:t,orientation:r,loopFocus:n,onLoop:i,rtl:o,cols:s,disabledIndices:a,minIndex:l,maxIndex:c,prevIndex:d,stopEvent:f=!1}){let h,p=d;if(t.key===w.ARROW_UP?h="up":t.key===w.ARROW_DOWN&&(h="down"),h){let r=[],o=[],m=!1,g=0;{let t=null,n=-1;e.forEach((e,i)=>{if(null==e)return;g+=1;let s=e.closest('[role="row"]');s&&(m=!0),(s!==t||-1===n)&&(t=s,r[n+=1]=[]),r[n].push(i),o[i]=n})}let b=!1,v=0;if(m)for(let e of r){let t=e.length;t>v&&(v=t),t!==s&&(b=!0)}let E=b&&g<e.length,y=v||s;f&&(0,x.stopEvent)(t);let S=(s=>{if(!b||-1===d)return;let l=o[d];if(null==l)return;let u=r[l].indexOf(d),c="up"===s?-1:1;for(let s=l+c,f=0;f<r.length;f+=1,s+=c){if(s<0||s>=r.length){if(!n||E)return;if(s=s<0?r.length-1:0,i){let e=Math.min(u,r[s].length-1);s=o[i(t,d,r[s][e]??r[s][0])]??s}}let l=r[s];for(let t=Math.min(u,l.length-1);t>=0;t-=1){let r=l[t];if(!I(e,r,a))return r}}})(h)??(t=>{if(!E||-1===d)return;let r=d%y,i="up"===t?-y:y,o=c-c%y,s=u(c/y)+1;for(let t=d-r+i,l=0;l<s;l+=1,t+=i){if(t<0||t>c){if(!n)return;t=t<0?o:0}let i=Math.min(t+y-1,c);for(let n=Math.min(t+r,i);n>=t;n-=1)if(!I(e,n,a))return n}})(h);if(void 0!==S)p=S;else if(-1===d)p="up"===h?c:l;else if(p=k(e,{startingIndex:d,amount:y,decrement:"up"===h,disabledIndices:a}),n){if("up"===h&&(d-y<l||p<0)){let e=d%y,r=c%y,n=c-(r-e);p=r===e?c:r>e?n:n-y,i&&(p=i(t,d,p))}"down"===h&&d+y>c&&(p=k(e,{startingIndex:d%y-y,amount:y,disabledIndices:a}),i&&(p=i(t,d,p)))}R(e,p)&&(p=d)}if("both"===r){let r=u(d/s);t.key===(o?w.ARROW_LEFT:w.ARROW_RIGHT)&&(f&&(0,x.stopEvent)(t),d%s!=s-1?(p=k(e,{startingIndex:d,disabledIndices:a}),n&&C(p,s,r)&&(p=k(e,{startingIndex:d-d%s-1,disabledIndices:a}),i&&(p=i(t,d,p)))):n&&(p=k(e,{startingIndex:d-d%s-1,disabledIndices:a}),i&&(p=i(t,d,p))),C(p,s,r)&&(p=d)),t.key===(o?w.ARROW_RIGHT:w.ARROW_LEFT)&&(f&&(0,x.stopEvent)(t),d%s!=0?(p=k(e,{startingIndex:d,decrement:!0,disabledIndices:a}),n&&C(p,s,r)&&(p=k(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:a}),i&&(p=i(t,d,p)))):n&&(p=k(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:a}),i&&(p=i(t,d,p))),C(p,s,r)&&(p=d));let l=u(c/s)===r;R(e,p)&&(n&&l?(p=t.key===(o?w.ARROW_RIGHT:w.ARROW_LEFT)?c:k(e,{startingIndex:d-d%s-1,disabledIndices:a}),i&&(p=i(t,d,p))):p=d)}return p},"getMaxListIndex",0,function(e,t){return k(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return k(e.current,{disabledIndices:t})},"isElementVisible",0,A,"isIndexOutOfListBounds",0,R,"isListIndexDisabled",0,I],877580),e.s(["disableFocusInside",0,function(e){_(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"enableFocusInside",0,function(e){let r=[];!function e(r,n,i){D(r).forEach(r=>{(0,t.isHTMLElement)(r)&&r.matches(n)&&i.push(r),e(r,n,i)})}(e,"[data-tabindex]",r),r.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"focusable",0,H,"getNextTabbable",0,function(e){return B((0,r.ownerDocument)(e).body,1)||e},"getPreviousTabbable",0,function(e){return B((0,r.ownerDocument)(e).body,-1)||e},"getTabbableAfterElement",0,function(e){return F(e,1)},"getTabbableBeforeElement",0,function(e){return F(e,-1)},"isOutsideEvent",0,function(e,t){let r=t||e.currentTarget,i=e.relatedTarget;return!i||!(0,n.contains)(r,i)},"isTabbable",0,function(e){return M(e)&&L(e)>=0},"tabbable",0,_],878984)},404196,e=>{"use strict";e.s(["getNodeAncestors",0,function(e,t){let r=[],n=e.find(e=>e.id===t)?.parentId;for(;n;){let t=e.find(e=>e.id===n);n=t?.parentId,t&&(r=r.concat(t))}return r},"getNodeChildren",0,function e(t,r,n=!0){return t.filter(e=>e.parentId===r).flatMap(r=>[...!n||r.context?.open?[r]:[],...e(t,r.id,n)])}])},134055,e=>{"use strict";e.s(["createAttribute",0,function(e){return`data-base-ui-${e}`}])},913652,902439,e=>{"use strict";var t=e.i(863728);let r=0;e.s(["enqueueFocus",0,function(e,n={}){let{preventScroll:i=!1,cancelPrevious:o=!0,sync:s=!1}=n;o&&cancelAnimationFrame(r);let a=()=>e?.focus({preventScroll:i});if(s)return a(),t.NOOP;let l=requestAnimationFrame(a);return r=l,()=>{r===l&&(cancelAnimationFrame(l),r=0)}}],913652);var n=e.i(92615),i=e.i(526850);let o={inert:new WeakMap,"aria-hidden":new WeakMap},s="data-base-ui-inert",a={inert:new WeakSet,"aria-hidden":new WeakSet},l=new WeakMap,u=0,c=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,n.isShadowRoot)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),d=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},f=(e,t,r)=>{let i=[],o=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,n.getNodeName)(e)&&(t.has(e)?o(e):i.push(e))})};return o(e),i};e.s(["markOthers",0,function(e,t={}){let{ariaHidden:r=!1,inert:n=!1,mark:h=!0,markerIgnoreElements:p=[]}=t,m=(0,i.ownerDocument)(e[0]).body;return function(e,t,r,n,{mark:i=!0,markerIgnoreElements:h=[]}){let p=n?"inert":r?"aria-hidden":null,m=null,g=null,b=c(t,e),v=new Set(i?c(t,h):[]),E=i?f(t,d(b),new Set(b)).filter(e=>!v.has(e)):[],y=[],S=[];if(p){let e=o[p],r=a[p];g=r,m=e;let n=c(t,Array.from(t.querySelectorAll("[aria-live]"))),i=b.concat(n);f(t,d(i),new Set(i)).forEach(t=>{let n=t.getAttribute(p),i=null!==n&&"false"!==n,o=(e.get(t)||0)+1;e.set(t,o),y.push(t),1===o&&i&&r.add(t),i||t.setAttribute(p,"inert"===p?"":"true")})}return i&&E.forEach(e=>{let t=(l.get(e)||0)+1;l.set(e,t),S.push(e),1===t&&e.setAttribute(s,"")}),u+=1,()=>{m&&y.forEach(e=>{let t=(m.get(e)||0)-1;m.set(e,t),t||(!g?.has(e)&&p&&e.removeAttribute(p),g?.delete(e))}),i&&S.forEach(e=>{let t=(l.get(e)||0)-1;l.set(e,t),t||e.removeAttribute(s)}),(u-=1)||(o.inert=new WeakMap,o["aria-hidden"]=new WeakMap,a.inert=new WeakSet,a["aria-hidden"]=new WeakSet,l=new WeakMap)}}(e,m,r,n,{mark:h,markerIgnoreElements:p})}],902439)},576487,e=>{"use strict";e.s(["CLICK_TRIGGER_IDENTIFIER",0,"data-base-ui-click-trigger","DISABLED_TRANSITIONS_STYLE",0,{style:{transition:"none"}},"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"PATIENT_CLICK_THRESHOLD",0,500,"POPUP_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"end"},"TYPEAHEAD_RESET_MS",0,500,"ownerVisuallyHidden",0,{clipPath:"inset(50%)",position:"fixed",top:0,left:0}])},128108,e=>{"use strict";var t=e.i(764556),r=e.i(106206),n=e.i(92615),i=e.i(422561),o=e.i(516366),s=e.i(394822),a=e.i(277642),l=e.i(29905),u=e.i(863728),c=e.i(601957),d=e.i(878984),f=e.i(602453),h=e.i(742665),p=e.i(134055),m=e.i(969490),g=e.i(576487),b=e.i(344180);let v=t.createContext(null),E=()=>t.useContext(v),y=(0,p.createAttribute)("portal");function S(e={}){let{ref:i,container:o,componentProps:c=u.EMPTY_OBJECT,elementProps:d}=e,f=(0,s.useId)(),h=E(),p=h?.portalNode,[g,b]=t.useState(null),[v,T]=t.useState(null),x=(0,l.useStableCallback)(e=>{null!==e&&T(e)}),w=t.useRef(null);(0,a.useIsoLayoutEffect)(()=>{if(null===o){w.current&&(w.current=null,T(null),b(null));return}if(null==f)return;let e=(o&&((0,n.isNode)(o)?o:o.current))??p??document.body;if(null==e){w.current&&(w.current=null,T(null),b(null));return}w.current!==e&&(w.current=e,T(null),b(e))},[o,p,f]);let C=(0,m.useRenderElement)("div",c,{ref:[i,x],props:[{id:f,[y]:""},d]});return{portalNode:v,portalSubtree:g&&C?r.createPortal(C,g):null}}let T=t.forwardRef(function(e,n){let{children:s,container:a,className:l,render:u,renderGuards:p,style:m,...E}=e,{portalNode:y,portalSubtree:T}=S({container:a,ref:n,componentProps:e,elementProps:E}),x=t.useRef(null),w=t.useRef(null),C=t.useRef(null),R=t.useRef(null),[k,I]=t.useState(null),A=t.useRef(!1),O=k?.modal,P=k?.open,M="boolean"==typeof p?p:!!k&&!k.modal&&k.open&&!!y;t.useEffect(()=>{if(y&&!O)return(0,o.mergeCleanups)((0,i.addEventListener)(y,"focusin",e,!0),(0,i.addEventListener)(y,"focusout",e,!0));function e(e){y&&e.relatedTarget&&(0,d.isOutsideEvent)(e)&&("focusin"===e.type?A.current&&((0,d.enableFocusInside)(y),A.current=!1):((0,d.disableFocusInside)(y),A.current=!0))}},[y,O]),t.useEffect(()=>{y&&!1===P&&((0,d.enableFocusInside)(y),A.current=!1)},[P,y]);let L=t.useMemo(()=>({beforeOutsideRef:x,afterOutsideRef:w,beforeInsideRef:C,afterInsideRef:R,portalNode:y,setFocusManagerState:I}),[y]);return(0,b.jsxs)(t.Fragment,{children:[T,(0,b.jsxs)(v.Provider,{value:L,children:[M&&y&&(0,b.jsx)(c.FocusGuard,{"data-type":"outside",ref:x,onFocus:e=>{if((0,d.isOutsideEvent)(e,y))C.current?.focus();else{let e=k?k.domReference:null,t=(0,d.getPreviousTabbable)(e);t?.focus()}}}),M&&y&&(0,b.jsx)("span",{"aria-owns":y.id,style:g.ownerVisuallyHidden}),y&&r.createPortal(s,y),M&&y&&(0,b.jsx)(c.FocusGuard,{"data-type":"outside",ref:w,onFocus:e=>{if((0,d.isOutsideEvent)(e,y))R.current?.focus();else{let t=k?k.domReference:null,r=(0,d.getNextTabbable)(t);r?.focus(),k?.closeOnFocusOut&&k?.onOpenChange(!1,(0,f.createChangeEventDetails)(h.REASONS.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,T,"useFloatingPortalNode",0,S,"usePortalContext",0,E])},389124,352430,478333,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(394822),n=e.i(277642),i=e.i(549154);function o(){let e=new Map;return{emit(t,r){e.get(t)?.forEach(e=>e(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){e.get(t)?.delete(r)}}}e.s(["createEventEmitter",0,o],352430);class s{nodesRef={current:[]};events=o();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["FloatingTreeStore",0,s],478333);var a=e.i(344180);let l=t.createContext(null),u=t.createContext(null),c=()=>t.useContext(l)?.id||null,d=e=>{let r=t.useContext(u);return e??r};e.s(["FloatingNode",0,function(e){let{children:r,id:n}=e,i=c();return(0,a.jsx)(l.Provider,{value:t.useMemo(()=>({id:n,parentId:i}),[n,i]),children:r})},"FloatingTree",0,function(e){let{children:t,externalTree:r}=e,n=(0,i.useRefWithInit)(()=>r??new s).current;return(0,a.jsx)(u.Provider,{value:n,children:t})},"useFloatingNodeId",0,function(e){let t=(0,r.useId)(),i=d(e),o=c();return(0,n.useIsoLayoutEffect)(()=>{if(!t)return;let e={id:t,parentId:o};return i?.addNode(e),()=>{i?.removeNode(e)}},[i,t,o]),t},"useFloatingParentNodeId",0,c,"useFloatingTree",0,d],389124)},583289,e=>{"use strict";var t=e.i(764556),r=e.i(92615),n=e.i(422561),i=e.i(516366),o=e.i(204133),s=e.i(106045),a=e.i(29905),l=e.i(277642),u=e.i(232449),c=e.i(454889),d=e.i(859092),f=e.i(526850),h=e.i(285182),p=e.i(601957),m=e.i(410421),g=e.i(922970),b=e.i(150129),v=e.i(878984),E=e.i(404196),y=e.i(877580),S=e.i(602453),T=e.i(742665),x=e.i(134055),w=e.i(913652),C=e.i(902439),R=e.i(128108),k=e.i(389124),I=e.i(576487),A=e.i(516161),O=e.i(344180);let P=[];function M(){P=P.filter(e=>e.deref()?.isConnected)}function L(){return M(),P[P.length-1]?.deref()}function N(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let r=(0,v.focusable)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,v.isTabbable)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");t.current.includes("floating")||0===r.length?"0"!==n&&e.setAttribute("tabindex","0"):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["FloatingFocusManager",0,function(e){let{context:D,children:H,disabled:_=!1,initialFocus:B=!0,returnFocus:F=!0,restoreFocus:U=!1,modal:G=!0,closeOnFocusOut:V=!0,openInteractionType:j="",nextFocusableElement:W,previousFocusableElement:z,beforeContentFocusGuardRef:Y,externalTree:K,getInsideElements:$}=e,X="rootStore"in D?D.rootStore:D,Z=X.useState("open"),q=X.useState("domReferenceElement"),J=X.useState("floatingElement"),{events:Q,dataRef:ee}=X.context,et=(0,a.useStableCallback)(()=>ee.current.floatingContext?.nodeId),er=!1===B,en=(0,g.isTypeableCombobox)(q)&&er,ei=t.useRef(["content"]),eo=(0,s.useValueAsRef)(B),es=(0,s.useValueAsRef)(F),ea=(0,s.useValueAsRef)(j),el=(0,k.useFloatingTree)(K),eu=(0,R.usePortalContext)(),ec=t.useRef(!1),ed=t.useRef(!1),ef=t.useRef(!1),eh=t.useRef(null),ep=t.useRef(""),em=t.useRef(""),eg=t.useRef(null),eb=t.useRef(null),ev=(0,o.useMergedRefs)(eg,Y,eu?.beforeInsideRef),eE=(0,o.useMergedRefs)(eb,eu?.afterInsideRef),ey=(0,u.useTimeout)(),eS=(0,u.useTimeout)(),eT=(0,d.useAnimationFrame)(),ex=null!=eu,ew=(0,g.getFloatingFocusElement)(J),eC=(0,a.useStableCallback)((e=ew)=>e?(0,v.tabbable)(e):[]),eR=(0,a.useStableCallback)(()=>$?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(_||!G)return;let e=(0,f.ownerDocument)(ew);return(0,n.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,m.contains)(ew,(0,m.activeElement)((0,f.ownerDocument)(ew)))&&0===eC().length&&!en&&(0,b.stopEvent)(e)})},[_,q,ew,G,ei,en,eC]),t.useEffect(()=>{if(_||!Z)return;let e=(0,f.ownerDocument)(ew);function t(){ef.current=!1}return(0,i.mergeCleanups)((0,n.addEventListener)(e,"pointerdown",function(e){let t=(0,m.getTarget)(e),r=eR();ef.current=!((0,m.contains)(J,t)||(0,m.contains)(q,t)||(0,m.contains)(eu?.portalNode,t)||r.some(e=>e===t||(0,m.contains)(e,t))),em.current=e.pointerType||"keyboard",t?.closest(`[${I.CLICK_TRIGGER_IDENTIFIER}]`)&&(ed.current=!0)},!0),(0,n.addEventListener)(e,"pointerup",t,!0),(0,n.addEventListener)(e,"pointercancel",t,!0),(0,n.addEventListener)(e,"keydown",function(){em.current="keyboard"},!0))},[_,J,q,ew,Z,eu,eR]),t.useEffect(()=>{if(_||!V)return;let e=(0,f.ownerDocument)(ew);function t(t){let n=t.relatedTarget,i=t.currentTarget,o=(0,m.getTarget)(t);queueMicrotask(()=>{let s=et(),a=X.context.triggerElements,l=eR(),u=n?.hasAttribute((0,x.createAttribute)("focus-guard"))&&[eg.current,eb.current,eu?.beforeInsideRef.current,eu?.afterInsideRef.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,(0,A.resolveRef)(z),(0,A.resolveRef)(W)].includes(n),c=!((0,m.contains)(q,n)||(0,m.contains)(J,n)||(0,m.contains)(n,J)||(0,m.contains)(eu?.portalNode,n)||l.some(e=>e===n||(0,m.contains)(e,n))||null!=n&&a.hasElement(n)||a.hasMatchingElement(e=>(0,m.contains)(e,n))||u||el&&((0,E.getNodeChildren)(el.nodesRef.current,s).find(e=>(0,m.contains)(e.context?.elements.floating,n)||(0,m.contains)(e.context?.elements.domReference,n))||(0,E.getNodeAncestors)(el.nodesRef.current,s).find(e=>[e.context?.elements.floating,(0,g.getFloatingFocusElement)(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(i===q&&ew&&N(ew,ei),U&&i!==q&&!(0,y.isElementVisible)(o)&&(0,m.activeElement)(e)===e.body){if((0,r.isHTMLElement)(ew)&&(ew.focus(),"popup"===U))return void eT.request(()=>{ew.focus()});let e=eC(),t=eh.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||ew;(0,r.isHTMLElement)(n)&&n.focus()}if(ee.current.insideReactTree){ee.current.insideReactTree=!1;return}(en||!G)&&n&&c&&!ed.current&&(en||n!==L())&&(ec.current=!0,X.setOpen(!1,(0,S.createChangeEventDetails)(T.REASONS.focusOut,t)))})}let o=(0,r.isHTMLElement)(q)?q:null;if(J||o)return(0,i.mergeCleanups)(o&&(0,n.addEventListener)(o,"focusout",t),o&&(0,n.addEventListener)(o,"pointerdown",function(){ed.current=!0,eS.start(0,()=>{ed.current=!1})}),J&&(0,n.addEventListener)(J,"focusin",function(e){let t=(0,m.getTarget)(e);(0,v.isTabbable)(t)&&(eh.current=t)}),J&&(0,n.addEventListener)(J,"focusout",t),J&&eu&&(0,n.addEventListener)(J,"focusout",function(){ef.current||(ee.current.insideReactTree=!0,ey.start(0,()=>{ee.current.insideReactTree=!1}))},!0))},[_,q,J,ew,G,el,eu,X,V,U,eC,en,et,ei,ee,ey,eS,eT,W,z,eR]),t.useEffect(()=>{if(_||!J||!Z)return;let e=Array.from(eu?.portalNode?.querySelectorAll(`[${(0,x.createAttribute)("portal")}]`)||[]),t=el?(0,E.getNodeAncestors)(el.nodesRef.current,et()):[],r=t.find(e=>(0,g.isTypeableCombobox)(e.context?.elements.domReference||null))?.context?.elements.domReference,n=[J,...e,eg.current,eb.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,...eR(),r,(0,A.resolveRef)(z),(0,A.resolveRef)(W),en?q:null].filter(e=>null!=e),i=(0,C.markOthers)(n,{ariaHidden:G||en,mark:!1}),o=[J,...e].filter(e=>null!=e),s=(0,C.markOthers)(o);return()=>{s(),i()}},[Z,_,q,J,G,ei,eu,en,el,et,W,z,eR]),(0,l.useIsoLayoutEffect)(()=>{if(!Z||_||!(0,r.isHTMLElement)(ew))return;let e=(0,f.ownerDocument)(ew),t=(0,m.activeElement)(e);queueMicrotask(()=>{let e,r=eo.current,n="function"==typeof r?r(ea.current||""):r;if(void 0===n||!1===n||(0,m.contains)(ew,t))return;let i=null,o=()=>(null==i&&(i=eC(ew)),i[0]||ew);e=(e=!0===n||null===n?o():(0,A.resolveRef)(n))||o(),(0,w.enqueueFocus)(e,{preventScroll:e===ew})})},[_,Z,ew,er,eC,eo,ea]),(0,l.useIsoLayoutEffect)(()=>{var e;if(_||!ew)return;let t=(0,f.ownerDocument)(ew);function n(e){var t,r;let n;if(e.open||(t=e.nativeEvent,r=em.current,n=(0,h.ownerWindow)((0,m.getTarget)(t)),ep.current=t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?r||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof n.MouseEvent?r||(0===t.detail?"keyboard":"mouse"):""),e.reason===T.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(ec.current=!0),e.reason===T.REASONS.outsidePress)if(e.nested)ec.current=!1;else if((0,b.isVirtualClick)(e.nativeEvent)||(0,b.isVirtualPointerEvent)(e.nativeEvent))ec.current=!1;else{let e=!1;(0,f.ownerDocument)(ew).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ec.current=!1:ec.current=!0}}return e=(0,m.activeElement)(t),M(),e&&"body"!==(0,r.getNodeName)(e)&&(P.push(new WeakRef(e)),P.length>20&&(P=P.slice(-20))),Q.on("openchange",n),()=>{Q.off("openchange",n);let e=(0,m.activeElement)(t),i=eR(),o=(0,m.contains)(J,e)||i.some(t=>t===e||(0,m.contains)(t,e))||el&&(0,E.getNodeChildren)(el.nodesRef.current,et(),!1).some(t=>(0,m.contains)(t.context?.elements.floating,e)),s=es.current,a=function(){let e=es.current,t="function"==typeof e?e(ep.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=q||L();return e&&e.isConnected?e:null}let r=q||L();return(0,A.resolveRef)(t)||r||null}();queueMicrotask(()=>{let n=a?(0,v.isTabbable)(a)?a:(0,v.tabbable)(a)[0]||a:null;s&&!ec.current&&(0,r.isHTMLElement)(n)&&("boolean"!=typeof s||n===e||e===t.body||o)&&n.focus({preventScroll:!0}),ec.current=!1})}},[_,J,ew,es,ee,Q,el,q,et,eR]),(0,l.useIsoLayoutEffect)(()=>{if(!c.isWebKit||Z||!J)return;let e=(0,m.activeElement)((0,f.ownerDocument)(J));(0,r.isHTMLElement)(e)&&(0,g.isTypeableElement)(e)&&(0,m.contains)(J,e)&&e.blur()},[Z,J]),(0,l.useIsoLayoutEffect)(()=>{if(!_&&eu)return eu.setFocusManagerState({modal:G,closeOnFocusOut:V,open:Z,onOpenChange:X.setOpen,domReference:q}),()=>{eu.setFocusManagerState(null)}},[_,eu,G,Z,X,V,q]),(0,l.useIsoLayoutEffect)(()=>{if(!_&&ew)return N(ew,ei),()=>{queueMicrotask(M)}},[_,ew,ei]);let ek=!_&&(!G||!en)&&(ex||G);return(0,O.jsxs)(t.Fragment,{children:[ek&&(0,O.jsx)(p.FocusGuard,{"data-type":"inside",ref:ev,onFocus:e=>{if(G){let e=eC();(0,w.enqueueFocus)(e[e.length-1])}else if(eu?.portalNode)if(ec.current=!1,(0,v.isOutsideEvent)(e,eu.portalNode)){let e=(0,v.getNextTabbable)(q);e?.focus()}else(0,A.resolveRef)(z??eu.beforeOutsideRef)?.focus()}}),H,ek&&(0,O.jsx)(p.FocusGuard,{"data-type":"inside",ref:eE,onFocus:e=>{if(G)(0,w.enqueueFocus)(eC()[0]);else if(eu?.portalNode)if(V&&(ec.current=!0),(0,v.isOutsideEvent)(e,eu.portalNode)){let e=(0,v.getPreviousTabbable)(q);e?.focus()}else(0,A.resolveRef)(W??eu.afterOutsideRef)?.focus()}})]})}])},14065,975624,899142,e=>{"use strict";let t=((r={}).nestedDialogs="--nested-dialogs",r);e.s(["DialogPopupCssVars",0,t],14065);var r,n,i=e.i(817955);let o=((n={})[n.open=i.CommonPopupDataAttributes.open]="open",n[n.closed=i.CommonPopupDataAttributes.closed]="closed",n[n.startingStyle=i.CommonPopupDataAttributes.startingStyle]="startingStyle",n[n.endingStyle=i.CommonPopupDataAttributes.endingStyle]="endingStyle",n.nested="data-nested",n.nestedDialogOpen="data-nested-dialog-open",n);e.s(["DialogPopupDataAttributes",0,o],975624),e.i(8890);var s=e.i(267805),a=e.i(764556);let l=a.createContext(void 0);e.s(["DialogPortalContext",0,l,"useDialogPortalContext",0,function(){let e=a.useContext(l);if(void 0===e)throw Error((0,s.default)(26));return e}],899142)},100229,e=>{"use strict";var t=e.i(92615);let r="ArrowUp",n="ArrowDown",i="ArrowLeft",o="ArrowRight",s="Home",a=new Set([i,o]),l=new Set([i,o,s,"End"]),u=new Set([r,n]),c=new Set([r,n,s,"End"]),d=new Set([...a,...u]),f=new Set([...d,s,"End"]),h=new Set([r,n,i,o,s,"End"]),p=new Set(["Shift","Control","Alt","Meta"]);function m(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);)t=t.offsetParent;return i}function g(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["ALL_KEYS",0,f,"ARROW_DOWN",0,n,"ARROW_KEYS",0,d,"ARROW_LEFT",0,i,"ARROW_RIGHT",0,o,"ARROW_UP",0,r,"COMPOSITE_KEYS",0,h,"END",0,"End","HOME",0,s,"HORIZONTAL_KEYS",0,a,"HORIZONTAL_KEYS_WITH_EXTRA_KEYS",0,l,"MODIFIER_KEYS",0,p,"PAGE_DOWN",0,"PageDown","PAGE_UP",0,"PageUp","VERTICAL_KEYS",0,u,"VERTICAL_KEYS_WITH_EXTRA_KEYS",0,c,"isNativeInput",0,function(e){return!!((0,t.isHTMLElement)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.isHTMLElement)(e)&&"TEXTAREA"===e.tagName)},"scrollIntoViewIfNeeded",0,function(e,t,r,n){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,o=e.scrollTop,s=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(s&&"vertical"!==n){let n=m(e,t,"left"),o=g(e),s=g(t);"ltr"===r&&(n+t.offsetWidth+s.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight?i=n+t.offsetWidth+s.scrollMarginRight-e.clientWidth+o.scrollPaddingRight:n-s.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft&&(i=n-s.scrollMarginLeft-o.scrollPaddingLeft)),"rtl"===r&&(n-s.scrollMarginRight<e.scrollLeft+o.scrollPaddingLeft?i=n-s.scrollMarginLeft-o.scrollPaddingLeft:n+t.offsetWidth+s.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight&&(i=n+t.offsetWidth+s.scrollMarginRight-e.clientWidth+o.scrollPaddingRight))}if(a&&"horizontal"!==n){let r=m(e,t,"top"),n=g(e),i=g(t);r-i.scrollMarginTop<e.scrollTop+n.scrollPaddingTop?o=r-i.scrollMarginTop-n.scrollPaddingTop:r+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-n.scrollPaddingBottom&&(o=r+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+n.scrollPaddingBottom)}e.scrollTo({left:i,top:o,behavior:"auto"})}])},152851,e=>{"use strict";var t=e.i(764556),r=e.i(583289),n=e.i(530089),i=e.i(969490),o=e.i(817955),s=e.i(282458),a=e.i(14065),l=e.i(975624),u=e.i(899142),c=e.i(273598),d=e.i(100229),f=e.i(344180);let h={...o.popupStateMapping,...s.transitionStatusMapping,nestedDialogOpen:e=>e?{[l.DialogPopupDataAttributes.nestedDialogOpen]:""}:null},p=t.forwardRef(function(e,t){let{className:o,finalFocus:s,initialFocus:l,render:p,style:m,...g}=e,{store:b}=(0,n.useDialogRootContext)(),v=b.useState("descriptionElementId"),E=b.useState("disablePointerDismissal"),y=b.useState("floatingRootContext"),S=b.useState("popupProps"),T=b.useState("modal"),x=b.useState("mounted"),w=b.useState("nested"),C=b.useState("nestedOpenDialogCount"),R=b.useState("open"),k=b.useState("openMethod"),I=b.useState("titleElementId"),A=b.useState("transitionStatus"),O=b.useState("role");(0,u.useDialogPortalContext)(),(0,c.useOpenChangeComplete)({open:R,ref:b.context.popupRef,onComplete(){R&&b.context.onOpenChangeComplete?.(!0)}});let P=void 0===l?function(e){return"touch"!==e||b.context.popupRef.current}:l,M=(0,i.useRenderElement)("div",e,{state:{open:R,nested:w,transitionStatus:A,nestedDialogOpen:C>0},props:[S,{"aria-labelledby":I??void 0,"aria-describedby":v??void 0,role:O,tabIndex:-1,hidden:!x,onKeyDown(e){d.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{[a.DialogPopupCssVars.nestedDialogs]:C}},g],ref:[t,b.context.popupRef,b.useStateSetter("popupElement")],stateAttributesMapping:h});return(0,f.jsx)(r.FloatingFocusManager,{context:y,openInteractionType:k,disabled:!x,closeOnFocusOut:!E,initialFocus:P,returnFocus:s,modal:!1!==T,restoreFocus:"popup",children:M})});e.s(["DialogPopup",0,p])},677822,e=>{"use strict";var t=e.i(557576);e.s(["inertValue",0,function(e){return(0,t.isReactVersionAtLeast)(19)?e:e?"true":void 0}])},251817,e=>{"use strict";var t=e.i(764556),r=e.i(344180);let n=t.forwardRef(function(e,t){let n,{cutout:i,...o}=e;if(i){let e=i.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,r.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});e.s(["InternalBackdrop",0,n])},481181,e=>{"use strict";var t=e.i(764556),r=e.i(677822),n=e.i(128108),i=e.i(530089),o=e.i(899142),s=e.i(251817),a=e.i(344180);let l=t.forwardRef(function(e,t){let{keepMounted:l=!1,...u}=e,{store:c}=(0,i.useDialogRootContext)(),d=c.useState("mounted"),f=c.useState("modal"),h=c.useState("open");return d||l?(0,a.jsx)(o.DialogPortalContext.Provider,{value:l,children:(0,a.jsxs)(n.FloatingPortal,{ref:t,...u,children:[d&&!0===f&&(0,a.jsx)(s.InternalBackdrop,{ref:c.context.internalBackdropRef,inert:(0,r.inertValue)(!h)}),e.children]})}):null});e.s(["DialogPortal",0,l])},166392,e=>{"use strict";var t=e.i(764556);e.s(["useOnFirstRender",0,function(e){let r=t.useRef(!0);r.current&&(r.current=!1,e())}])},993351,e=>{"use strict";var t=e.i(92615),r=e.i(422561),n=e.i(454889),i=e.i(526850),o=e.i(285182),s=e.i(277642),a=e.i(232449),l=e.i(859092),u=e.i(863728);let c={},d={},f="";class h{lockCount=0;restore=null;timeoutLock=a.Timeout.create();timeoutUnlock=a.Timeout.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let s,a,h,p,m;if(0===this.lockCount||null!==this.restore)return;let g=(0,i.ownerDocument)(e).documentElement,b=(0,o.ownerWindow)(g).getComputedStyle(g).overflowY;if("hidden"===b||"clip"===b){this.restore=u.NOOP;return}let v=n.isIOS||!function(e){if("u"<typeof document)return!1;let t=(0,i.ownerDocument)(e);return(0,o.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=v?(a=(s=(0,i.ownerDocument)(e)).documentElement,h=s.body,m={overflowY:(p=(0,t.isOverflowElement)(a)?a:h).style.overflowY,overflowX:p.style.overflowX},Object.assign(p.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(p.style,m)}):function(e){let s=(0,i.ownerDocument)(e),a=s.documentElement,u=s.body,h=(0,o.ownerWindow)(a),p=0,m=0,g=!1,b=l.AnimationFrame.create();if(n.isWebKit&&(h.visualViewport?.scale??1)!==1)return()=>{};function v(){let r=h.getComputedStyle(a),n=h.getComputedStyle(u),o=(r.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";p=a.scrollTop,m=a.scrollLeft,c={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},f=a.style.scrollBehavior,d={position:u.style.position,height:u.style.height,width:u.style.width,boxSizing:u.style.boxSizing,overflowY:u.style.overflowY,overflowX:u.style.overflowX,scrollBehavior:u.style.scrollBehavior};let s=a.scrollHeight>a.clientHeight,l=a.scrollWidth>a.clientWidth,b="scroll"===r.overflowY||"scroll"===n.overflowY,v="scroll"===r.overflowX||"scroll"===n.overflowX,E=Math.max(0,h.innerWidth-u.clientWidth),y=Math.max(0,h.innerHeight-u.clientHeight),S=parseFloat(n.marginTop)+parseFloat(n.marginBottom),T=parseFloat(n.marginLeft)+parseFloat(n.marginRight),x=(0,t.isOverflowElement)(a)?a:u;if(g=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let r=(0,i.ownerDocument)(e),n=r.documentElement,o=r.body,s=(0,t.isOverflowElement)(n)?n:o,a=s.style.overflowY,l=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",s.style.overflowY="scroll";let u=s.offsetWidth;s.style.overflowY="hidden";let c=s.offsetWidth;return s.style.overflowY=a,n.style.scrollbarGutter=l,u===c}(e)){a.style.scrollbarGutter=o,x.style.overflowY="hidden",x.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:o,overflowY:"hidden",overflowX:"hidden"}),(s||b)&&(a.style.overflowY="scroll"),(l||v)&&(a.style.overflowX="scroll"),Object.assign(u.style,{position:"relative",height:S||y?`calc(100dvh - ${S+y}px)`:"100dvh",width:T||E?`calc(100vw - ${T+E}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),u.scrollTop=p,u.scrollLeft=m,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function E(){Object.assign(a.style,c),Object.assign(u.style,d),g||(a.scrollTop=p,a.scrollLeft=m,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=f)}v();let y=(0,r.addEventListener)(h,"resize",function(){E(),b.request(v)});return()=>{b.cancel(),E(),"function"==typeof h.removeEventListener&&y()}}(e)}}let p=new h;e.s(["useScrollLock",0,function(e=!0,t=null){(0,s.useIsoLayoutEffect)(()=>{if(e)return p.acquire(t)},[e,t])}])},538501,427396,974578,e=>{"use strict";var t=e.i(764556),r=e.i(92615),n=e.i(422561),i=e.i(516366),o=e.i(232449),s=e.i(29905),a=e.i(526850),l=e.i(410421),u=e.i(922970),c=e.i(150129),d=e.i(404196),f=e.i(389124),h=e.i(602453),p=e.i(742665),m=e.i(134055);let g={intentional:"onClick",sloppy:"onPointerDown"};function b(){return!1}e.s(["useDismiss",0,function(e,v={}){let E="rootStore"in e?e.rootStore:e,y=E.useState("open"),S=E.useState("floatingElement"),{dataRef:T}=E.context,{enabled:x=!0,escapeKey:w=!0,outsidePress:C=!0,outsidePressEvent:R="sloppy",referencePress:k=b,referencePressEvent:I="sloppy",bubbles:A,externalTree:O}=v,P=(0,f.useFloatingTree)(O),M=(0,s.useStableCallback)("function"==typeof C?C:()=>!1),L="function"==typeof C?M:C,N=!1!==L,D=(0,s.useStableCallback)(()=>R),H=t.useRef(!1),_=t.useRef(!1),B=t.useRef(!1),{escapeKey:F,outsidePress:U}={escapeKey:"boolean"==typeof A?A:A?.escapeKey??!1,outsidePress:"boolean"==typeof A?A:A?.outsidePress??!0},G=t.useRef(null),V=(0,o.useTimeout)(),j=(0,o.useTimeout)(),W=(0,s.useStableCallback)(()=>{j.clear(),T.current.insideReactTree=!1}),z=t.useRef(!1),Y=t.useRef(""),K=(0,s.useStableCallback)(k),$=(0,s.useStableCallback)(e=>{if(!y||!x||!w||"Escape"!==e.key||z.current)return;let t=T.current.floatingContext?.nodeId,r=P?(0,d.getNodeChildren)(P.nodesRef.current,t):[];if(!F&&r.length>0){let e=!0;if(r.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let n=(0,c.isReactEvent)(e)?e.nativeEvent:e,i=(0,h.createChangeEventDetails)(p.REASONS.escapeKey,n);E.setOpen(!1,i),F||i.isPropagationAllowed||e.stopPropagation()}),X=(0,s.useStableCallback)(()=>{T.current.insideReactTree=!0,j.start(0,W)});t.useEffect(()=>{if(!y||!x)return;T.current.__escapeKeyBubbles=F,T.current.__outsidePressBubbles=U;let e=new o.Timeout,t=new o.Timeout;function s(){B.current=!0,t.start(0,()=>{B.current=!1})}function c(){H.current=!1,_.current=!1}function f(){let e=Y.current,t=D(),r="function"==typeof t?t():t;return"string"==typeof r?r:r["pen"!==e&&e?e:"mouse"]}function g(e){let t=T.current.floatingContext?.nodeId,r=P&&(0,d.getNodeChildren)(P.nodesRef.current,t).some(t=>(0,u.isEventTargetWithin)(e,t.context?.elements.floating));return(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement"))||r}function b(e){let n;if("intentional"===(n=f())&&"click"!==e.type||"sloppy"===n&&"click"===e.type||T.current.insideReactTree)return void W();let i=(0,l.getTarget)(e),o=`[${(0,m.createAttribute)("inert")}]`,s=(0,r.isElement)(i)?i.getRootNode():null,c=Array.from(((0,r.isShadowRoot)(s)?s:(0,a.ownerDocument)(E.select("floatingElement"))).querySelectorAll(o)),b=E.context.triggerElements;if(i&&(b.hasElement(i)||b.hasMatchingElement(e=>(0,l.contains)(e,i))))return;let v=(0,r.isElement)(i)?i:null;for(;v&&!(0,r.isLastTraversableNode)(v);){let e=(0,r.getParentNode)(v);if((0,r.isLastTraversableNode)(e)||!(0,r.isElement)(e))break;v=e}if(c.length&&(0,r.isElement)(i)&&!(0,u.isRootElement)(i)&&!(0,l.contains)(i,E.select("floatingElement"))&&c.every(e=>!(0,l.contains)(v,e)))return;if((0,r.isHTMLElement)(i)&&!("touches"in e)){let t=(0,r.isLastTraversableNode)(i),n=(0,r.getComputedStyle)(i),o=/auto|scroll/,s=t||o.test(n.overflowX),a=t||o.test(n.overflowY),l=s&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,u=a&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,c="rtl"===n.direction,d=u&&(c?e.offsetX<=i.offsetWidth-i.clientWidth:e.offsetX>i.clientWidth),f=l&&e.offsetY>i.clientHeight;if(d||f)return}if(g(e))return;if("intentional"===f()&&B.current){t.clear(),B.current=!1;return}if("function"==typeof L&&!L(e))return;let y=T.current.floatingContext?.nodeId,S=P?(0,d.getNodeChildren)(P.nodesRef.current,y):[];if(S.length>0){let e=!0;if(S.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}E.setOpen(!1,(0,h.createChangeEventDetails)(p.REASONS.outsidePress,e)),W()}function v(e){if("sloppy"!==f()||!E.select("open")||!x||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement")))return;let t=e.touches[0];t&&(G.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},V.start(1e3,()=>{G.current&&(G.current.dismissOnTouchEnd=!1,G.current.dismissOnMouseDown=!1)}))}function C(e,t){let r=(0,l.getTarget)(e);if(!r)return;let i=(0,n.addEventListener)(r,e.type,()=>{t(e),i()})}function R(e){V.clear(),"pointerdown"===e.type&&(Y.current=e.pointerType),("mousedown"!==e.type||!G.current||G.current.dismissOnMouseDown)&&C(e,e=>{if("pointerdown"===e.type)"sloppy"!==f()||"touch"===e.pointerType||!E.select("open")||!x||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement"))||b(e);else b(e)})}function k(e){if(!H.current)return;let r=_.current;if(c(),"intentional"===f()){if("pointercancel"===e.type){r&&s();return}g(e)||(r?s():("function"!=typeof L||L(e))&&(t.clear(),B.current=!0,W()))}}function I(e){if("sloppy"!==f()||!G.current||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-G.current.startX),n=Math.abs(t.clientY-G.current.startY),i=Math.sqrt(r*r+n*n);i>5&&(G.current.dismissOnTouchEnd=!0),i>10&&(b(e),V.clear(),G.current=null)}function A(e){"sloppy"!==f()||!G.current||(0,u.isEventTargetWithin)(e,E.select("floatingElement"))||(0,u.isEventTargetWithin)(e,E.select("domReferenceElement"))||(G.current.dismissOnTouchEnd&&b(e),V.clear(),G.current=null)}let O=(0,a.ownerDocument)(S),M=(0,i.mergeCleanups)(w&&(0,i.mergeCleanups)((0,n.addEventListener)(O,"keydown",$),(0,n.addEventListener)(O,"compositionstart",function(){e.clear(),z.current=!0}),(0,n.addEventListener)(O,"compositionend",function(){e.start(5*!!(0,r.isWebKit)(),()=>{z.current=!1})})),N&&(0,i.mergeCleanups)((0,n.addEventListener)(O,"click",R,!0),(0,n.addEventListener)(O,"pointerdown",R,!0),(0,n.addEventListener)(O,"pointerup",k,!0),(0,n.addEventListener)(O,"pointercancel",k,!0),(0,n.addEventListener)(O,"mousedown",R,!0),(0,n.addEventListener)(O,"mouseup",k,!0),(0,n.addEventListener)(O,"touchstart",function(e){Y.current="touch",C(e,v)},!0),(0,n.addEventListener)(O,"touchmove",function(e){C(e,I)},!0),(0,n.addEventListener)(O,"touchend",function(e){C(e,A)},!0)));return()=>{M(),e.clear(),t.clear(),c(),B.current=!1}},[T,S,w,N,L,y,x,F,U,$,W,D,P,E,V]),t.useEffect(W,[L,W]);let Z=t.useMemo(()=>({onKeyDown:$,[g[I]]:e=>{K()&&E.setOpen(!1,(0,h.createChangeEventDetails)(p.REASONS.triggerPress,e.nativeEvent))},..."intentional"!==I&&{onClick(e){K()&&E.setOpen(!1,(0,h.createChangeEventDetails)(p.REASONS.triggerPress,e.nativeEvent))}}}),[$,E,I,K]),q=(0,s.useStableCallback)(e=>{if(!y||!x||0!==e.button)return;let t=(0,l.getTarget)(e.nativeEvent);(0,l.contains)(E.select("floatingElement"),t)&&(H.current||(H.current=!0,_.current=!1))}),J=(0,s.useStableCallback)(e=>{!y||!x||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&H.current&&(_.current=!0)}),Q=t.useMemo(()=>({onKeyDown:$,onPointerDown:J,onMouseDown:J,onClickCapture:X,onMouseDownCapture(e){X(),q(e)},onPointerDownCapture(e){X(),q(e)},onMouseUpCapture:X,onTouchEndCapture:X,onTouchMoveCapture:X}),[$,X,q,J]);return t.useMemo(()=>x?{reference:Z,floating:Q,trigger:Z}:{},[x,Z,Q])}],538501);var v=e.i(118214);function E(e,t,r){let n=new Map,i="item"===r,o={};for(let t in"floating"===r&&(o.tabIndex=-1,o[v.FOCUSABLE_ATTRIBUTE]=""),e)i&&e&&(t===v.ACTIVE_KEY||t===v.SELECTED_KEY)||(o[t]=e[t]);for(let s=0;s<t.length;s+=1){let a,l=t[s]?.[r];(a="function"==typeof l?e?l(e):null:l)&&y(o,a,i,n)}return y(o,e,i,n),o}function y(e,t,r,n){for(let i in t){let o=t[i];r&&(i===v.ACTIVE_KEY||i===v.SELECTED_KEY)||(i.startsWith("on")?(n.has(i)||n.set(i,[]),"function"==typeof o&&(n.get(i)?.push(o),e[i]=(...e)=>n.get(i)?.map(t=>t(...e)).find(e=>void 0!==e))):e[i]=o)}}e.s(["useInteractions",0,function(e=[]){let r=e.map(e=>e?.reference),n=e.map(e=>e?.floating),i=e.map(e=>e?.item),o=e.map(e=>e?.trigger),s=t.useCallback(t=>E(t,e,"reference"),r),a=t.useCallback(t=>E(t,e,"floating"),n),l=t.useCallback(t=>E(t,e,"item"),i),u=t.useCallback(t=>E(t,e,"trigger"),o);return t.useMemo(()=>({getReferenceProps:s,getFloatingProps:a,getItemProps:l,getTriggerProps:u}),[s,a,l,u])}],427396);var S=e.i(394822),T=e.i(863728);let x=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);e.s(["useRole",0,function(e,r={}){let n="rootStore"in e?e.rootStore:e,i=n.useState("open"),o=n.useState("floatingId"),s=n.useState("domReferenceElement"),a=n.useState("floatingElement"),{role:l="dialog"}=r,c=(0,S.useId)(),d=s?.id||c,h=t.useMemo(()=>(0,u.getFloatingFocusElement)(a)?.id||o,[a,o]),p=x.get(l)??l,m=null!=(0,f.useFloatingParentNodeId)(),g=t.useMemo(()=>"tooltip"===p||"label"===l?T.EMPTY_OBJECT:{"aria-haspopup":"alertdialog"===p?"dialog":p,"aria-expanded":"false",..."listbox"===p&&{role:"combobox"},..."menu"===p&&m&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}},[p,m,l]),b=t.useMemo(()=>"tooltip"===p||"label"===l?{[`aria-${"label"===l?"labelledby":"describedby"}`]:i?h:void 0}:{...g,"aria-expanded":i?"true":"false","aria-controls":i?h:void 0,..."menu"===p&&{id:d}},[p,h,i,d,l,g]),v=t.useMemo(()=>{let e={id:h,...p&&{role:p}};return"tooltip"===p||"label"===l?e:{...e,..."menu"===p&&{"aria-labelledby":d}}},[p,h,d,l]),E=t.useCallback(({active:e,selected:t})=>{let r={role:"option",...e&&{id:`${h}-fui-option`}};switch(l){case"select":case"combobox":return{...r,"aria-selected":t}}return{}},[h,l]);return t.useMemo(()=>({reference:b,floating:v,item:E,trigger:g}),[b,v,g,E])}],974578)},325661,(e,t,r)=>{"use strict";var n=e.r(764556),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},56032,(e,t,r)=>{"use strict";t.exports=e.r(325661)},220206,(e,t,r)=>{"use strict";var n=e.r(764556),i=e.r(56032),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,a=r)}var s,a,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},596482,(e,t,r)=>{"use strict";t.exports=e.r(220206)},807323,332976,155461,493696,e=>{"use strict";let t;e.i(8890);var r=e.i(267805);let n=(e,t,n,i,o,s,...a)=>{let l;if(a.length>0)throw Error((0,r.default)(1));if(e&&t&&n&&i&&o&&s)l=(r,a,l,u)=>s(e(r,a,l,u),t(r,a,l,u),n(r,a,l,u),i(r,a,l,u),o(r,a,l,u),a,l,u);else if(e&&t&&n&&i&&o)l=(r,s,a,l)=>o(e(r,s,a,l),t(r,s,a,l),n(r,s,a,l),i(r,s,a,l),s,a,l);else if(e&&t&&n&&i)l=(r,o,s,a)=>i(e(r,o,s,a),t(r,o,s,a),n(r,o,s,a),o,s,a);else if(e&&t&&n)l=(r,i,o,s)=>n(e(r,i,o,s),t(r,i,o,s),i,o,s);else if(e&&t)l=(r,n,i,o)=>t(e(r,n,i,o),n,i,o);else if(e)l=e;else throw Error("Missing arguments");return l};e.s(["createSelector",0,n],332976);var i=e.i(764556),o=e.i(56032),s=e.i(596482),a=e.i(557576),l=e.i(549154);let u=[];function c(){return t}function d(e){u.push(e)}function f(e){let r=(r,n)=>{let i,o=(0,l.useRefWithInit)(h).current;try{for(let e of(t=o,u))e.before(o);for(let t of(i=e(r,n),u))t.after(o);o.didInitialize=!0}finally{t=void 0}return i};return r.displayName=e.displayName||e.name,r}function h(){return{didInitialize:!1}}e.s(["fastComponent",0,f,"fastComponentRef",0,function(e){return i.forwardRef(f(e))},"getInstance",0,c,"register",0,d],155461);let p=(0,a.isReactVersionAtLeast)(19)?function(e,t,r,n,s){let a,l=c();if(!l){let a;return a=i.useCallback(()=>t(e.getSnapshot(),r,n,s),[e,t,r,n,s]),(0,o.useSyncExternalStore)(e.subscribe,a,a)}let u=l.syncIndex;return l.syncIndex+=1,l.didInitialize?(a=l.syncHooks[u]).store===e&&a.selector===t&&Object.is(a.a1,r)&&Object.is(a.a2,n)&&Object.is(a.a3,s)||(a.store!==e&&(l.didChangeStore=!0),a.store=e,a.selector=t,a.a1=r,a.a2=n,a.a3=s,a.didChange=!0):(a={store:e,selector:t,a1:r,a2:n,a3:s,value:t(e.getSnapshot(),r,n,s),didChange:!1},l.syncHooks.push(a)),a.value}:function(e,t,r,n,i){return(0,s.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,r,n,i))};d({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let n=e.syncHooks[r],i=n.selector(n.store.state,n.a1,n.a2,n.a3);(n.didChange||!Object.is(n.value,i))&&(t=!0,n.value=i,n.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let t of e.syncHooks)r.add(t.store);let n=[];for(let e of r)n.push(e.subscribe(t));return()=>{for(let e of n)e()}}),(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class m{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let r of this.listeners){if(t!==this.updateTick)return;r(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,r,n){return p(this,e,t,r,n)}}var g=e.i(29905),b=e.i(277642),v=e.i(863728);class E extends m{constructor(e,t={},r){super(e),this.context=t,this.selectors=r}useSyncedValue(e,t){i.useDebugValue(e),(0,b.useIsoLayoutEffect)(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let r=this;(0,b.useIsoLayoutEffect)(()=>(r.state[e]!==t&&r.set(e,t),()=>{r.set(e,void 0)}),[r,e,t])}useSyncedValues(e){let t=this,r=Object.values(e);(0,b.useIsoLayoutEffect)(()=>{t.update(e)},[t,...r])}useControlledProp(e,t){i.useDebugValue(e);let r=void 0!==t;(0,b.useIsoLayoutEffect)(()=>{r&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,r])}select(e,t,r,n){return(0,this.selectors[e])(this.state,t,r,n)}useState(e,t,r,n){return i.useDebugValue(e),p(this,this.selectors[e],t,r,n)}useContextCallback(e,t){i.useDebugValue(e);let r=(0,g.useStableCallback)(t??v.NOOP);this.context[e]=r}useStateSetter(e){let t=i.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let r,n=(r="function"==typeof e?e:this.selectors[e])(this.state);return t(n,n,this),this.subscribe(e=>{let i=r(e);if(!Object.is(n,i)){let e=n;n=i,t(i,e,this)}})}}e.s(["ReactStore",0,E],493696);var y=e.i(352430),S=e.i(150129);let T={open:n(e=>e.open),transitionStatus:n(e=>e.transitionStatus),domReferenceElement:n(e=>e.domReferenceElement),referenceElement:n(e=>e.positionReference??e.referenceElement),floatingElement:n(e=>e.floatingElement),floatingId:n(e=>e.floatingId)};e.s(["FloatingRootStore",0,class extends E{constructor(e){const{syncOnly:t,nested:r,onOpenChange:n,triggerElements:i,...o}=e;super({...o,positionReference:o.referenceElement,domReferenceElement:o.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:(0,y.createEventEmitter)(),nested:r,triggerElements:i},T),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,S.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let r={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",r)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}],807323)},107164,e=>{"use strict";var t=e.i(394822),r=e.i(549154),n=e.i(277642),i=e.i(92615),o=e.i(389124),s=e.i(807323);e.s(["useSyncedFloatingRootContext",0,function(e){let{popupStore:a,treatPopupAsFloatingElement:l=!1,onOpenChange:u}=e,c=(0,t.useId)(),d=null!=(0,o.useFloatingParentNodeId)(),f=a.useState("open"),h=a.useState("activeTriggerElement"),p=a.useState(l?"popupElement":"positionerElement"),m=a.context.triggerElements,g=(0,r.useRefWithInit)(()=>new s.FloatingRootStore({open:f,transitionStatus:void 0,referenceElement:h,floatingElement:p,triggerElements:m,onOpenChange:u,floatingId:c,syncOnly:!0,nested:d})).current;return(0,n.useIsoLayoutEffect)(()=>{let e={open:f,floatingId:c,referenceElement:h,floatingElement:p};(0,i.isElement)(h)&&(e.domReferenceElement=h),g.state.positionReference===g.state.referenceElement&&(e.positionReference=h),g.update(e)},[f,c,h,p,g]),g.context.onOpenChange=u,g.context.nested=d,g}])},564846,638144,e=>{"use strict";var t=e.i(764556),r=e.i(29905),n=e.i(454889),i=e.i(277642);function o(e,n){let o=t.useRef(e),s=(0,r.useStableCallback)(n);(0,i.useIsoLayoutEffect)(()=>{o.current!==e&&s(o.current)},[e,s]),(0,i.useIsoLayoutEffect)(()=>{o.current=e},[e])}e.s(["useValueChanged",0,o],638144),e.s(["useOpenInteractionType",0,function(e){let i,s,[a,l]=t.useState(null),u=(0,r.useStableCallback)((t,r)=>{e||l(r||(n.isIOS?"touch":""))});o(e,t=>{t&&!e&&l(null)});let{onClick:c,onPointerDown:d}=(i=t.useRef(""),s=t.useCallback(e=>{e.defaultPrevented||(i.current=e.pointerType,u(e,e.pointerType))},[u]),{onClick:t.useCallback(e=>{0===e.detail?u(e,"keyboard"):(u(e,"pointerType"in e?e.pointerType:i.current),i.current="")},[u]),onPointerDown:s});return t.useMemo(()=>({openMethod:a,triggerProps:{onClick:c,onPointerDown:d}}),[a,c,d])}],564846)},279501,e=>{"use strict";var t=e.i(764556),r=e.i(29905),n=e.i(277642),i=e.i(254891),o=e.i(273598);function s(e,r){let n=t.useRef(null),i=t.useRef(null);return t.useCallback(t=>{if(void 0!==e){if(null!==n.current){let e=n.current,t=i.current,o=r.context.triggerElements.getById(e);t&&o===t&&r.context.triggerElements.delete(e),n.current=null,i.current=null}null!==t&&(n.current=e,i.current=t,r.context.triggerElements.add(e,t))}},[r,e])}e.s(["useImplicitActiveTrigger",0,function(e){let t=e.useState("open");(0,n.useIsoLayoutEffect)(()=>{if(t&&!e.select("activeTriggerId")&&1===e.context.triggerElements.size){let t=e.context.triggerElements.entries().next();if(!t.done){let[r,n]=t.value;e.update({activeTriggerId:r,activeTriggerElement:n})}}},[t,e])},"useOpenStateTransitions",0,function(e,t,n){let{mounted:s,setMounted:a,transitionStatus:l}=(0,i.useTransitionStatus)(e);t.useSyncedValues({mounted:s,transitionStatus:l});let u=(0,r.useStableCallback)(()=>{a(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),c=t.useState("preventUnmountingOnClose");return(0,o.useOpenChangeComplete)({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:l}},"useTriggerDataForwarding",0,function(e,t,i,o){let a=i.useState("isMountedByTrigger",e),l=s(e,i),u=(0,r.useStableCallback)(t=>{if(l(t),!t||!i.select("open"))return;let r=i.select("activeTriggerId");r===e?i.update({activeTriggerElement:t,...o}):null==r&&i.update({activeTriggerId:e,activeTriggerElement:t,...o})});return(0,n.useIsoLayoutEffect)(()=>{a&&i.update({activeTriggerElement:t.current,...o})},[a,i,t,...Object.values(o)]),{registerTrigger:u,isMountedByThisTrigger:a}},"useTriggerRegistration",0,s])},625386,e=>{"use strict";var t=e.i(764556),r=e.i(993351),n=e.i(538501),i=e.i(427396),o=e.i(974578),s=e.i(107164),a=e.i(410421),l=e.i(564846),u=e.i(602453),c=e.i(742665),d=e.i(279501);e.s(["useDialogRoot",0,function(e){let{store:f,parentContext:h,actionsRef:p,isDrawer:m}=e,g=f.useState("open"),b=f.useState("disablePointerDismissal"),v=f.useState("modal"),E=f.useState("popupElement"),{openMethod:y,triggerProps:S}=(0,l.useOpenInteractionType)(g);(0,d.useImplicitActiveTrigger)(f);let{forceUnmount:T}=(0,d.useOpenStateTransitions)(g,f),x=t.useCallback(()=>{f.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.imperativeAction))},[f]);t.useImperativeHandle(p,()=>({unmount:T,close:x}),[T,x]);let w=(0,s.useSyncedFloatingRootContext)({popupStore:f,onOpenChange:f.setOpen,treatPopupAsFloatingElement:!0}),[C,R]=t.useState(0),[k,I]=t.useState(0),A=0===C,O=(0,o.useRole)(w),P=(0,n.useDismiss)(w,{outsidePressEvent:()=>f.context.internalBackdropRef.current||f.context.backdropRef.current?"intentional":{mouse:"trap-focus"===v?"sloppy":"intentional",touch:"sloppy"},outsidePress(e){if(!f.context.outsidePressEnabledRef.current||"button"in e&&0!==e.button||"touches"in e&&1!==e.touches.length)return!1;let t=(0,a.getTarget)(e);return!!A&&!b&&(!v||!f.context.internalBackdropRef.current&&!f.context.backdropRef.current||f.context.internalBackdropRef.current===t||f.context.backdropRef.current===t||(0,a.contains)(t,E)&&!t?.hasAttribute("data-base-ui-portal"))},escapeKey:A});(0,r.useScrollLock)(g&&!0===v,E);let{getReferenceProps:M,getFloatingProps:L,getTriggerProps:N}=(0,i.useInteractions)([O,P]);f.useContextCallback("onNestedDialogOpen",(e,t)=>{R(e),I(t)}),f.useContextCallback("onNestedDialogClose",()=>{R(0),I(0)}),t.useEffect(()=>(h?.onNestedDialogOpen&&g&&h.onNestedDialogOpen(C+1,k+ +!!m),h?.onNestedDialogClose&&!g&&h.onNestedDialogClose(),()=>{h?.onNestedDialogClose&&g&&h.onNestedDialogClose()}),[m,g,C,k,h]);let D=t.useMemo(()=>M(S),[M,S]),H=t.useMemo(()=>N(S),[N,S]),_=t.useMemo(()=>L(),[L]);f.useSyncedValues({openMethod:y,activeTriggerProps:D,inactiveTriggerProps:H,popupProps:_,floatingRootContext:w,nestedOpenDialogCount:C,nestedOpenDrawerCount:k})}])},561213,e=>{"use strict";e.s(["PopupTriggerMap",0,class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let r=this.idMap.get(e);r!==t&&(void 0!==r&&this.elementsSet.delete(r),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}])},695011,e=>{"use strict";var t=e.i(332976),r=e.i(863728),n=e.i(561213),i=e.i(807323);let o=(0,t.createSelector)(e=>e.triggerIdProp??e.activeTriggerId),s={open:(0,t.createSelector)(e=>e.openProp??e.open),mounted:(0,t.createSelector)(e=>e.mounted),transitionStatus:(0,t.createSelector)(e=>e.transitionStatus),floatingRootContext:(0,t.createSelector)(e=>e.floatingRootContext),preventUnmountingOnClose:(0,t.createSelector)(e=>e.preventUnmountingOnClose),payload:(0,t.createSelector)(e=>e.payload),activeTriggerId:o,activeTriggerElement:(0,t.createSelector)(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:(0,t.createSelector)((e,t)=>void 0!==t&&o(e)===t),isOpenedByTrigger:(0,t.createSelector)((e,t)=>void 0!==t&&o(e)===t&&e.open),isMountedByTrigger:(0,t.createSelector)((e,t)=>void 0!==t&&o(e)===t&&e.mounted),triggerProps:(0,t.createSelector)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:(0,t.createSelector)(e=>e.popupProps),popupElement:(0,t.createSelector)(e=>e.popupElement),positionerElement:(0,t.createSelector)(e=>e.positionerElement)};e.s(["createInitialPopupStoreState",0,function(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new i.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new n.PopupTriggerMap,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0}),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:r.EMPTY_OBJECT,inactiveTriggerProps:r.EMPTY_OBJECT,popupProps:r.EMPTY_OBJECT}},"popupStoreSelectors",0,s],695011)},956834,975983,625144,476343,e=>{"use strict";e.i(8890);var t,r=e.i(764556),n=e.i(166392),i=e.i(625386),o=e.i(530089),s=e.i(332976),a=e.i(493696),l=e.i(549154),u=e.i(695011),c=e.i(561213);let d={...u.popupStoreSelectors,modal:(0,s.createSelector)(e=>e.modal),nested:(0,s.createSelector)(e=>e.nested),nestedOpenDialogCount:(0,s.createSelector)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,s.createSelector)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,s.createSelector)(e=>e.disablePointerDismissal),openMethod:(0,s.createSelector)(e=>e.openMethod),descriptionElementId:(0,s.createSelector)(e=>e.descriptionElementId),titleElementId:(0,s.createSelector)(e=>e.titleElementId),viewportElement:(0,s.createSelector)(e=>e.viewportElement),role:(0,s.createSelector)(e=>e.role)};class f extends a.ReactStore{constructor(e){super(function(e={}){return{...(0,u.createInitialPopupStoreState)(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e),{popupRef:r.createRef(),backdropRef:r.createRef(),internalBackdropRef:r.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new c.PopupTriggerMap,onOpenChange:void 0,onOpenChangeComplete:void 0},d)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let r={open:e},n=t.trigger?.id??null;(n||e)&&(r.activeTriggerId=n,r.activeTriggerElement=t.trigger??null),this.update(r)};static useStore(e,t){let r=(0,l.useRefWithInit)(()=>new f(t)).current;return e??r}}e.s(["DialogStore",0,f],975983);var h=e.i(344180);let p=r.createContext(!1);e.s(["DialogRoot",0,function(e){let{children:t,open:s,defaultOpen:a=!1,onOpenChange:l,onOpenChangeComplete:u,disablePointerDismissal:c=!1,modal:d=!0,actionsRef:m,handle:g,triggerId:b,defaultTriggerId:v=null}=e,E=(0,o.useDialogRootContext)(!0),y=r.useContext(p),S=!!E,T=f.useStore(g?.store,{open:a,openProp:s,activeTriggerId:v,triggerIdProp:b,modal:d,disablePointerDismissal:c,nested:S});(0,n.useOnFirstRender)(()=>{void 0===s&&!1===T.state.open&&!0===a&&T.update({open:!0,activeTriggerId:v})}),T.useControlledProp("openProp",s),T.useControlledProp("triggerIdProp",b),T.useSyncedValues({disablePointerDismissal:c,nested:S,modal:d}),T.useContextCallback("onOpenChange",l),T.useContextCallback("onOpenChangeComplete",u);let x=T.useState("payload");(0,i.useDialogRoot)({store:T,actionsRef:m,parentContext:E?.store.context,isDrawer:y,onOpenChange:l,triggerIdProp:b});let w=r.useMemo(()=>({store:T}),[T]);return(0,h.jsx)(p.Provider,{value:!1,children:(0,h.jsx)(o.DialogRootContext.Provider,{value:w,children:"function"==typeof t?t({payload:x}):t})})},"IsDrawerContext",0,p],956834);var m=e.i(969490),g=e.i(817955),b=e.i(282458),v=e.i(899142);let E=((t={})[t.open=g.CommonPopupDataAttributes.open]="open",t[t.closed=g.CommonPopupDataAttributes.closed]="closed",t[t.startingStyle=g.CommonPopupDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=g.CommonPopupDataAttributes.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t),y={...g.popupStateMapping,...b.transitionStatusMapping,nested:e=>e?{[E.nested]:""}:null,nestedDialogOpen:e=>e?{[E.nestedDialogOpen]:""}:null},S=r.forwardRef(function(e,t){let{className:r,render:n,children:i,style:s,...a}=e,l=(0,v.useDialogPortalContext)(),{store:u}=(0,o.useDialogRootContext)(),c=u.useState("open"),d=u.useState("nested"),f=u.useState("transitionStatus"),h=u.useState("nestedOpenDialogCount"),p=u.useState("mounted");return(0,m.useRenderElement)("div",e,{enabled:l||p,state:{open:c,nested:d,transitionStatus:f,nestedDialogOpen:h>0},ref:[t,u.useStateSetter("viewportElement")],stateAttributesMapping:y,props:[{role:"presentation",hidden:!p,style:{pointerEvents:c?void 0:"none"},children:i},a]})});e.s(["DialogViewport",0,S],625144);var T=e.i(139236);let x=r.forwardRef(function(e,t){let{render:r,className:n,style:i,id:s,...a}=e,{store:l}=(0,o.useDialogRootContext)(),u=(0,T.useBaseUiId)(s);return l.useSyncedValueWithCleanup("titleElementId",u),(0,m.useRenderElement)("h2",e,{ref:t,props:[{id:u},a]})});e.s(["DialogTitle",0,x],476343)},934940,e=>{"use strict";var t=e.i(764556),r=e.i(859092),n=e.i(232449),i=e.i(863728),o=e.i(410421),s=e.i(922970),a=e.i(150129),l=e.i(602453),u=e.i(742665);e.s(["useClick",0,function(e,c={}){let d="rootStore"in e?e.rootStore:e,f=d.context.dataRef,{enabled:h=!0,event:p="click",toggle:m=!0,ignoreMouse:g=!1,stickIfOpen:b=!0,touchOpenDelay:v=0,reason:E=u.REASONS.triggerPress}=c,y=t.useRef(void 0),S=(0,r.useAnimationFrame)(),T=(0,n.useTimeout)(),x=t.useMemo(()=>({onPointerDown(e){y.current=e.pointerType},onMouseDown(e){let t=y.current,r=e.nativeEvent,n=d.select("open");if(0!==e.button||"click"===p||(0,a.isMouseLikePointerType)(t,!0)&&g)return;let i=f.current.openEvent,u=i?.type,c=d.select("domReferenceElement")!==e.currentTarget,h=n&&c||!(n&&m&&(!i||!b||"click"===u||"mousedown"===u)),x=(0,o.getTarget)(r);if((0,s.isTypeableElement)(x)){let e=(0,l.createChangeEventDetails)(E,r,x);h&&"touch"===t&&v>0?T.start(v,()=>{d.setOpen(!0,e)}):d.setOpen(h,e);return}let w=e.currentTarget;S.request(()=>{let e=(0,l.createChangeEventDetails)(E,r,w);h&&"touch"===t&&v>0?T.start(v,()=>{d.setOpen(!0,e)}):d.setOpen(h,e)})},onClick(e){if("mousedown-only"===p)return;let t=y.current;if("mousedown"===p&&t){y.current=void 0;return}if((0,a.isMouseLikePointerType)(t,!0)&&g)return;let r=d.select("open"),n=f.current.openEvent,i=d.select("domReferenceElement")!==e.currentTarget,o=r&&i||!(r&&m&&(!n||!b||(0,a.isClickLikeEvent)(n))),s=(0,l.createChangeEventDetails)(E,e.nativeEvent,e.currentTarget);o&&"touch"===t&&v>0?T.start(v,()=>{d.setOpen(!0,s)}):d.setOpen(o,s)},onKeyDown(){y.current=void 0}}),[f,p,g,d,b,m,S,T,v,E]);return t.useMemo(()=>h?{reference:x}:i.EMPTY_OBJECT,[h,x])}])},724966,272248,225171,e=>{"use strict";e.i(481382);var t=e.i(16223),r=e.i(583901),n=e.i(512519),i=e.i(152851),o=e.i(481181),s=e.i(956834),a=e.i(625144),l=e.i(476343);e.i(8890);var u=e.i(267805),c=e.i(764556),d=e.i(530089),f=e.i(931709),h=e.i(969490),p=e.i(817955),m=e.i(576487),g=e.i(279501),b=e.i(139236),v=e.i(934940),E=e.i(427396);let y=c.forwardRef(function(e,t){let{render:r,className:n,disabled:i=!1,nativeButton:o=!0,id:s,payload:a,handle:l,style:y,...S}=e,T=(0,d.useDialogRootContext)(!0),x=l?.store??T?.store;if(!x)throw Error((0,u.default)(79));let w=(0,b.useBaseUiId)(s),C=x.useState("floatingRootContext"),R=x.useState("isOpenedByTrigger",w),k=c.useRef(null),{registerTrigger:I,isMountedByThisTrigger:A}=(0,g.useTriggerDataForwarding)(w,k,x,{payload:a}),{getButtonProps:O,buttonRef:P}=(0,f.useButton)({disabled:i,native:o}),M=(0,v.useClick)(C,{enabled:null!=C}),L=(0,E.useInteractions)([M]),N=x.useState("triggerProps",A);return(0,h.useRenderElement)("button",e,{state:{disabled:i,open:R},ref:[P,t,I,k],props:[L.getReferenceProps(),N,{[m.CLICK_TRIGGER_IDENTIFIER]:"",id:w},S,O],stateAttributesMapping:p.triggerOpenStateMapping})});e.s(["DialogTrigger",0,y],272248);var S=e.i(975983),T=e.i(602453),x=e.i(742665);class w{constructor(e){this.store=e??new S.DialogStore}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,(0,T.createChangeEventDetails)(x.REASONS.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,(0,T.createChangeEventDetails)(x.REASONS.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,(0,T.createChangeEventDetails)(x.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}function C(){return new w}e.s(["DialogHandle",0,w,"createDialogHandle",0,C],225171),e.s(["Backdrop",()=>t.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,w,"Popup",()=>i.DialogPopup,"Portal",()=>o.DialogPortal,"Root",()=>s.DialogRoot,"Title",()=>l.DialogTitle,"Trigger",0,y,"Viewport",()=>a.DialogViewport,"createHandle",0,C],20461);var R=e.i(20461);e.s(["Dialog",0,R],724966)},433721,e=>{"use strict";var t=e.i(764556);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:n,strokeWidth:s,absoluteStrokeWidth:a,className:l="",children:u,iconNode:c,...d},f)=>{let{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:b=""}=(0,t.useContext)(o)??{},v=a??m?24*Number(s??p)/Number(n??h):s??p;return(0,t.createElement)("svg",{ref:f,...i,width:n??h??i.width,height:n??h??i.height,stroke:e??g,strokeWidth:v,className:r("lucide",b,l),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,(e,i)=>{let o=(0,t.forwardRef)(({className:o,...a},l)=>(0,t.createElement)(s,{ref:l,iconNode:i,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...a}));return o.displayName=n(e),o}],433721)},912248,e=>{"use strict";let t=(0,e.i(433721).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",0,t])},816709,e=>{"use strict";var t=e.i(764556);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e))},s=t=e(n,i,o);return o},n=e=>{let n=e?r(e):r,i=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(i,n),i};e.s(["create",0,e=>e?n(e):n],816709)},244073,e=>{"use strict";var t=e.i(972725);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let n=r(0,t.useTranslations);r(0,t.useFormatter),e.s(["useTranslations",0,n])},209988,422373,250226,e=>{"use strict";var t=e.i(344180),r=e.i(764556),n=e.i(724966),i=e.i(465458),o=e.i(260218),s=e.i(912248);e.s(["XIcon",()=>s.default],422373);var s=s;let a=(0,e.i(816709).create)(e=>({activePanel:"channel-list",setActivePanel:t=>e({activePanel:t}),overlays:[],registerOverlay:(t,r,n)=>e(e=>{if(n?.ignoreBack)return e;let i=e.overlays.findIndex(e=>e.id===t);if(-1===i)return{overlays:[...e.overlays,{id:t,close:r}]};let o=[...e.overlays];return o[i]={id:t,close:r},{overlays:o}}),unregisterOverlay:t=>e(e=>({overlays:e.overlays.filter(e=>e.id!==t)})),handleBackAction:()=>{let{overlays:t,activePanel:r}=a.getState(),n=t[t.length-1];return n?(n.close(),!0):"issue-detail"===r?(e({activePanel:"issue-list"}),!0):"chat"===r&&(e({activePanel:"channel-list"}),!0)}}));function l({...e}){return(0,t.jsx)(n.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function u({className:e,...r}){return(0,t.jsx)(n.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}e.s(["useMobilePanelStore",0,a],250226),e.s(["Dialog",0,function({ignoreBack:e=!1,...i}){let o=r.useId(),s=a(e=>e.registerOverlay),l=a(e=>e.unregisterOverlay),u="open"in i?i.open:"defaultOpen"in i?i.defaultOpen:void 0,c=i.onOpenChange,d=r.useRef(c);return r.useEffect(()=>{d.current=c},[c]),r.useEffect(()=>u&&!e&&d.current?(s(o,()=>d.current?.(!1,{})),()=>l(o)):void l(o),[e,u,o,s,l]),(0,t.jsx)(n.Dialog.Root,{"data-slot":"dialog",...i})},"DialogClose",0,function({...e}){return(0,t.jsx)(n.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,children:r,showCloseButton:a=!0,style:c,...d}){return(0,t.jsxs)(l,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)(n.Dialog.Popup,{"data-slot":"dialog-content",className:(0,i.cn)("fixed top-[calc(var(--app-top-inset)+(var(--app-content-height)/2))] left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),style:{maxHeight:"calc(var(--app-content-height) - 2rem)",...c},...d,children:[r,a&&(0,t.jsxs)(n.Dialog.Close,{"data-slot":"dialog-close",render:(0,t.jsx)(o.Button,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,t.jsx)(s.default,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Description,{"data-slot":"dialog-description",className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:s,...a}){return(0,t.jsxs)("div",{"data-slot":"dialog-footer",className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...a,children:[s,r&&(0,t.jsx)(n.Dialog.Close,{render:(0,t.jsx)(o.Button,{variant:"outline"}),children:"Close"})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2",e),...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Title,{"data-slot":"dialog-title",className:(0,i.cn)("font-heading text-base leading-none font-medium",e),...r})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(n.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}],209988)}]);