titan-agent 5.4.2 → 5.5.6

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 (302) hide show
  1. package/README.md +1 -1
  2. package/dist/agent/agent.js +9 -5
  3. package/dist/agent/agent.js.map +1 -1
  4. package/dist/agent/agentLoop.js +7 -3
  5. package/dist/agent/agentLoop.js.map +1 -1
  6. package/dist/agent/checkpoint.js +2 -2
  7. package/dist/agent/checkpoint.js.map +1 -1
  8. package/dist/agent/commandPost.js +3 -3
  9. package/dist/agent/commandPost.js.map +1 -1
  10. package/dist/agent/goalProposer.js +2 -2
  11. package/dist/agent/goalProposer.js.map +1 -1
  12. package/dist/agent/goals.js +3 -3
  13. package/dist/agent/goals.js.map +1 -1
  14. package/dist/agent/peerAdvise.js +1 -1
  15. package/dist/agent/peerAdvise.js.map +1 -1
  16. package/dist/agent/planner.js +4 -4
  17. package/dist/agent/planner.js.map +1 -1
  18. package/dist/agent/userProfile.js +2 -2
  19. package/dist/agent/userProfile.js.map +1 -1
  20. package/dist/cli/doctor.js +33 -0
  21. package/dist/cli/doctor.js.map +1 -1
  22. package/dist/cli/onboard.js +4 -4
  23. package/dist/cli/onboard.js.map +1 -1
  24. package/dist/config/config.js +3 -3
  25. package/dist/config/config.js.map +1 -1
  26. package/dist/config/schema.js +8 -1
  27. package/dist/config/schema.js.map +1 -1
  28. package/dist/gateway/routes/adminRouter.js +500 -0
  29. package/dist/gateway/routes/adminRouter.js.map +1 -0
  30. package/dist/gateway/routes/agents.js +231 -0
  31. package/dist/gateway/routes/agents.js.map +1 -0
  32. package/dist/gateway/routes/agentsRouter.js +32 -0
  33. package/dist/gateway/routes/agentsRouter.js.map +1 -0
  34. package/dist/gateway/routes/checkpoints.js +41 -0
  35. package/dist/gateway/routes/checkpoints.js.map +1 -0
  36. package/dist/gateway/routes/commandPost.js +755 -0
  37. package/dist/gateway/routes/commandPost.js.map +1 -0
  38. package/dist/gateway/routes/companies.js +166 -0
  39. package/dist/gateway/routes/companies.js.map +1 -0
  40. package/dist/gateway/routes/files.js +295 -0
  41. package/dist/gateway/routes/files.js.map +1 -0
  42. package/dist/gateway/routes/hardwareRouter.js +151 -0
  43. package/dist/gateway/routes/hardwareRouter.js.map +1 -0
  44. package/dist/gateway/routes/mcpRouter.js +88 -0
  45. package/dist/gateway/routes/mcpRouter.js.map +1 -0
  46. package/dist/gateway/routes/mesh.js +464 -0
  47. package/dist/gateway/routes/mesh.js.map +1 -0
  48. package/dist/gateway/routes/metricsRouter.js +131 -0
  49. package/dist/gateway/routes/metricsRouter.js.map +1 -0
  50. package/dist/gateway/routes/organism.js +82 -0
  51. package/dist/gateway/routes/organism.js.map +1 -0
  52. package/dist/gateway/routes/paperclip.js +101 -0
  53. package/dist/gateway/routes/paperclip.js.map +1 -0
  54. package/dist/gateway/routes/sessions.js +227 -0
  55. package/dist/gateway/routes/sessions.js.map +1 -0
  56. package/dist/gateway/routes/skills.js +295 -0
  57. package/dist/gateway/routes/skills.js.map +1 -0
  58. package/dist/gateway/routes/socialRouter.js +145 -0
  59. package/dist/gateway/routes/socialRouter.js.map +1 -0
  60. package/dist/gateway/routes/systemRouter.js +220 -0
  61. package/dist/gateway/routes/systemRouter.js.map +1 -0
  62. package/dist/gateway/routes/teamsRecipes.js +297 -0
  63. package/dist/gateway/routes/teamsRecipes.js.map +1 -0
  64. package/dist/gateway/routes/tests.js +401 -0
  65. package/dist/gateway/routes/tests.js.map +1 -0
  66. package/dist/gateway/routes/traces.js +33 -0
  67. package/dist/gateway/routes/traces.js.map +1 -0
  68. package/dist/gateway/routes/voiceRouter.js +770 -0
  69. package/dist/gateway/routes/voiceRouter.js.map +1 -0
  70. package/dist/gateway/routes/watchRouter.js +131 -0
  71. package/dist/gateway/routes/watchRouter.js.map +1 -0
  72. package/dist/gateway/server.js +1179 -7379
  73. package/dist/gateway/server.js.map +1 -1
  74. package/dist/mcp/registry.js +2 -2
  75. package/dist/mcp/registry.js.map +1 -1
  76. package/dist/memory/episodic.js +2 -2
  77. package/dist/memory/episodic.js.map +1 -1
  78. package/dist/memory/learning.js +3 -3
  79. package/dist/memory/learning.js.map +1 -1
  80. package/dist/memory/memory.js +3 -3
  81. package/dist/memory/memory.js.map +1 -1
  82. package/dist/organism/drives.js +2 -2
  83. package/dist/organism/drives.js.map +1 -1
  84. package/dist/providers/errorTaxonomy.js +13 -0
  85. package/dist/providers/errorTaxonomy.js.map +1 -1
  86. package/dist/providers/ollama.js +3 -1
  87. package/dist/providers/ollama.js.map +1 -1
  88. package/dist/providers/openai_compat.js +4 -3
  89. package/dist/providers/openai_compat.js.map +1 -1
  90. package/dist/providers/router.js +13 -0
  91. package/dist/providers/router.js.map +1 -1
  92. package/dist/safety/fixOscillation.js +15 -0
  93. package/dist/safety/fixOscillation.js.map +1 -1
  94. package/dist/safety/killSwitch.js +2 -2
  95. package/dist/safety/killSwitch.js.map +1 -1
  96. package/dist/safety/selfRepair.js +7 -3
  97. package/dist/safety/selfRepair.js.map +1 -1
  98. package/dist/skills/builtin/agent_debate.js +2 -2
  99. package/dist/skills/builtin/agent_debate.js.map +1 -1
  100. package/dist/skills/builtin/apply_patch.js +3 -3
  101. package/dist/skills/builtin/apply_patch.js.map +1 -1
  102. package/dist/skills/builtin/shell.js +2 -2
  103. package/dist/skills/builtin/shell.js.map +1 -1
  104. package/dist/skills/builtin/voice_control.js +49 -0
  105. package/dist/skills/builtin/voice_control.js.map +1 -0
  106. package/dist/skills/builtin/widget_gallery.js +6 -1
  107. package/dist/skills/builtin/widget_gallery.js.map +1 -1
  108. package/dist/skills/registry.js +15 -4
  109. package/dist/skills/registry.js.map +1 -1
  110. package/dist/storage/JsonStorage.js +4 -4
  111. package/dist/storage/JsonStorage.js.map +1 -1
  112. package/dist/utils/constants.js +1 -1
  113. package/dist/utils/constants.js.map +1 -1
  114. package/dist/utils/helpers.js +3 -1
  115. package/dist/utils/helpers.js.map +1 -1
  116. package/dist/utils/lifecycle.js +86 -0
  117. package/dist/utils/lifecycle.js.map +1 -0
  118. package/dist/voice/bridge.js +136 -0
  119. package/dist/voice/bridge.js.map +1 -0
  120. package/docs/COO-MASTER-PLAN-2026-05-02.md +474 -0
  121. package/docs/HANDOFF/2026-04-29.md +141 -0
  122. package/docs/HANDOFF-2026-04-30.md +144 -0
  123. package/docs/HANDOFF-2026-05-03.md +114 -0
  124. package/docs/adr/2026-04-29-widget-pipeline-traceability.md +49 -0
  125. package/docs/agent-memory/README.md +45 -0
  126. package/docs/agent-memory/commands.md +100 -0
  127. package/docs/agent-memory/context-tree.md +101 -0
  128. package/docs/agent-memory/current-state.md +54 -0
  129. package/docs/agent-memory/decisions.md +78 -0
  130. package/docs/agent-memory/known-issues.md +76 -0
  131. package/docs/agent-memory/reflections.md +52 -0
  132. package/docs/agent-memory/skills-candidates.md +80 -0
  133. package/docs/superpowers/plans/2026-04-29-comprehensive-audit.md +256 -0
  134. package/docs/superpowers/plans/2026-04-29-comprehensive-test-plan.md +396 -0
  135. package/docs/superpowers/plans/2026-04-29-fix-all-prs.md +251 -0
  136. package/docs/superpowers/plans/2026-04-29-gitnexus-gap-remediation.md +969 -0
  137. package/package.json +5 -2
  138. package/ui/dist/assets/{AuditPanel-CM6Wg9hO.js → AuditPanel-VzSndmDN.js} +2 -2
  139. package/ui/dist/assets/{AutonomyPanel-CESx3ANg.js → AutonomyPanel-BiFouzAV.js} +2 -2
  140. package/ui/dist/assets/AutopilotPanel-fjOfM668.js +1 -0
  141. package/ui/dist/assets/{AutoresearchPanel-DR47NqT5.js → AutoresearchPanel-CVCxzAH3.js} +2 -2
  142. package/ui/dist/assets/BackupPanel-CHVTG--q.js +1 -0
  143. package/ui/dist/assets/{BrowserPanel-C15x9bLn.js → BrowserPanel-D5mvMKFU.js} +2 -2
  144. package/ui/dist/assets/CPActivity-B12mt35m.js +1 -0
  145. package/ui/dist/assets/CPAgentDetail-DsdShc-1.js +1 -0
  146. package/ui/dist/assets/CPAgents-j_7C-oQV.js +1 -0
  147. package/ui/dist/assets/CPApprovals-BShKSX9X.js +1 -0
  148. package/ui/dist/assets/CPCosts-CKPlhBDs.js +1 -0
  149. package/ui/dist/assets/CPDashboard-11c0nkxK.js +1 -0
  150. package/ui/dist/assets/CPFiles-BhLEOnXy.js +1 -0
  151. package/ui/dist/assets/CPGoals-Bi3t1b2P.js +1 -0
  152. package/ui/dist/assets/CPInbox-Bbr7khp6.js +11 -0
  153. package/ui/dist/assets/CPIssueDetail-DSdgNK8r.js +1 -0
  154. package/ui/dist/assets/CPIssues-DDEVKhX6.js +1 -0
  155. package/ui/dist/assets/CPLayout-DgPOfyGv.js +17 -0
  156. package/ui/dist/assets/CPOrg-Df73RrRJ.js +8 -0
  157. package/ui/dist/assets/CPRuns-ByioAz8w.js +1 -0
  158. package/ui/dist/assets/{CPSocial-nb-j7sOE.js → CPSocial-Dlnr_w1X.js} +2 -2
  159. package/ui/dist/assets/ChannelsPanel-DQjQCTK5.js +1 -0
  160. package/ui/dist/assets/CheckpointsPanel-C4vKjlAJ.js +1 -0
  161. package/ui/dist/assets/CommandPostHub-C9pp5Giq.js +24 -0
  162. package/ui/dist/assets/CronPanel-C6bzUfrD.js +1 -0
  163. package/ui/dist/assets/DaemonPanel-BA5Tb_UO.js +1 -0
  164. package/ui/dist/assets/{DataTable-B2Ma8hfi.js → DataTable-CH7IYJJh.js} +1 -1
  165. package/ui/dist/assets/{EmptyState-CcKyk5Yn.js → EmptyState-jU6yNDnF.js} +1 -1
  166. package/ui/dist/assets/{EvalHarnessPanel-BqtMc1ZM.js → EvalHarnessPanel-DnYqredY.js} +2 -2
  167. package/ui/dist/assets/EvalPanel-ChO7CD1r.js +1 -0
  168. package/ui/dist/assets/{FilesPanel-3QKvrWPo.js → FilesPanel-CaUkv2is.js} +2 -2
  169. package/ui/dist/assets/FleetPanel-DC_5uj0N.js +1 -0
  170. package/ui/dist/assets/{HomelabPanel-DhrjTX9m.js → HomelabPanel-CE5PGRpL.js} +2 -2
  171. package/ui/dist/assets/InfraView-C-uSlvb9.js +2 -0
  172. package/ui/dist/assets/InlineEditableField-BMQjiE6-.js +1 -0
  173. package/ui/dist/assets/Input-Bu_b3qmY.js +1 -0
  174. package/ui/dist/assets/IntegrationsPanel-DsYpAq43.js +1 -0
  175. package/ui/dist/assets/IntelligenceView-DUdIO1K7.js +2 -0
  176. package/ui/dist/assets/LearningPanel-UpQZC-mA.js +1 -0
  177. package/ui/dist/assets/LogsPanel-ClXJ4fcr.js +1 -0
  178. package/ui/dist/assets/McpPanel-JKgtIERQ.js +1 -0
  179. package/ui/dist/assets/{MemoryGraphPanel-Bzvjmzvk.js → MemoryGraphPanel-Bo2OrvA6.js} +2 -2
  180. package/ui/dist/assets/MemoryWikiPanel-BqJ1AmYm.js +11 -0
  181. package/ui/dist/assets/{MeshPanel-C3LJSlht.js → MeshPanel-BJVGYvwk.js} +2 -2
  182. package/ui/dist/assets/Modal-CAAooiZU.js +1 -0
  183. package/ui/dist/assets/NvidiaPanel-BtCg3G4w.js +1 -0
  184. package/ui/dist/assets/OrganismPanel-DgrTTzcF.js +1 -0
  185. package/ui/dist/assets/OverviewPanel-rVav1Hox.js +1 -0
  186. package/ui/dist/assets/{PageHeader-BimceqQo.js → PageHeader-CnZtP8ek.js} +1 -1
  187. package/ui/dist/assets/PaperclipPanel-C-FKdhiF.js +1 -0
  188. package/ui/dist/assets/{PersonasPanel-L1j78p6H.js → PersonasPanel-BmlxokfB.js} +1 -1
  189. package/ui/dist/assets/RecipesPanel-BNKKChis.js +1 -0
  190. package/ui/dist/assets/SecurityPanel-I7JRHiNy.js +1 -0
  191. package/ui/dist/assets/SelfImprovePanel-u9h0Lt3p.js +1 -0
  192. package/ui/dist/assets/{SelfProposalsPanel-lNmiDThB.js → SelfProposalsPanel-DKl9iBjM.js} +2 -2
  193. package/ui/dist/assets/SessionsPanel-BhRiWI_g.js +1 -0
  194. package/ui/dist/assets/{SessionsTab-JQbltWww.js → SessionsTab-Bk08wyeY.js} +1 -1
  195. package/ui/dist/assets/SettingsPanel-haLfmG2k.js +1 -0
  196. package/ui/dist/assets/SettingsView--gi3fxI8.js +2 -0
  197. package/ui/dist/assets/{SkeletonLoader-atQtpcF5.js → SkeletonLoader-B5v09EF_.js} +1 -1
  198. package/ui/dist/assets/{SkillsPanel-DlFs2ih7.js → SkillsPanel-BlAHFLcQ.js} +1 -1
  199. package/ui/dist/assets/SomaView-CExtS3zw.js +5 -0
  200. package/ui/dist/assets/{StatCard-DciE_Iqc.js → StatCard-BIsyMybM.js} +1 -1
  201. package/ui/dist/assets/{StatusBadge-BtfSPoW2.js → StatusBadge-D5nU7El8.js} +1 -1
  202. package/ui/dist/assets/Tabs-BBYZrBI8.js +1 -0
  203. package/ui/dist/assets/TeamsPanel-LPXJg823.js +1 -0
  204. package/ui/dist/assets/TelemetryPanel-EqpRBmOI.js +1 -0
  205. package/ui/dist/assets/TitanCanvas-BCbWnLMd.js +985 -0
  206. package/ui/dist/assets/ToolsView-CeP0Zz-N.js +2 -0
  207. package/ui/dist/assets/{Tooltip-70UK0E2I.js → Tooltip-BSO2XVpF.js} +1 -1
  208. package/ui/dist/assets/TraceViewer-BKI7o5B0.js +1 -0
  209. package/ui/dist/assets/TrainingPanel-c-RhjdE1.js +1 -0
  210. package/ui/dist/assets/VoiceOverlay-D-gc58b0.js +27 -0
  211. package/ui/dist/assets/VramPanel-C6xc7zgd.js +1 -0
  212. package/ui/dist/assets/{WatchView-C-sGFpVy.js → WatchView-dqBVCVH0.js} +1 -1
  213. package/ui/dist/assets/WorkTab-CBoLNrTM.js +1 -0
  214. package/ui/dist/assets/{WorkflowsPanel-CvgQU1xI.js → WorkflowsPanel-BAnSTOYe.js} +2 -2
  215. package/ui/dist/assets/approvalHeadline-DB9SgR-9.js +1 -0
  216. package/ui/dist/assets/{arrow-left-DwqHtJiU.js → arrow-left-5chqas7J.js} +1 -1
  217. package/ui/dist/assets/briefcase-D4vLzudp.js +6 -0
  218. package/ui/dist/assets/{chart-column-BtNO6sRy.js → chart-column-CdFlBpoP.js} +1 -1
  219. package/ui/dist/assets/check-Bpm1IONe.js +6 -0
  220. package/ui/dist/assets/chevron-down-D7OLjvuD.js +6 -0
  221. package/ui/dist/assets/chevron-right-aQEw2mUW.js +6 -0
  222. package/ui/dist/assets/chevron-up-C5g6pEj8.js +6 -0
  223. package/ui/dist/assets/{circle-check-big-DZRE_MbN.js → circle-check-big-fPhEdP88.js} +1 -1
  224. package/ui/dist/assets/clock-CTsgP_Sn.js +6 -0
  225. package/ui/dist/assets/{dollar-sign-aVG3a5eL.js → dollar-sign-CudFVYFc.js} +1 -1
  226. package/ui/dist/assets/{download-BxiWJU4G.js → download-DZRxDn67.js} +1 -1
  227. package/ui/dist/assets/external-link-BZ0y_Ahx.js +6 -0
  228. package/ui/dist/assets/{eye-off-CkgfFYhm.js → eye-off-BmJF0YYx.js} +1 -1
  229. package/ui/dist/assets/folder-DA43TRCm.js +11 -0
  230. package/ui/dist/assets/{funnel-PkLdxKyC.js → funnel-J3mULzrz.js} +1 -1
  231. package/ui/dist/assets/{git-branch-BM-Gw95X.js → git-branch-oHibJqDq.js} +1 -1
  232. package/ui/dist/assets/{index-D0RJ8701.css → index-BR0vfkIi.css} +1 -1
  233. package/ui/dist/assets/{index-CahJbWSR.js → index-DzwowwSI.js} +20 -20
  234. package/ui/dist/assets/{layers-BuGf4FIJ.js → layers-DsyEyu7z.js} +1 -1
  235. package/ui/dist/assets/{legacy-CR6o4t-y.js → legacy-8ITl64sV.js} +1 -1
  236. package/ui/dist/assets/{lightbulb-n8gc_XAL.js → lightbulb-C54Ske-p.js} +1 -1
  237. package/ui/dist/assets/list-todo-Cnd4rdoK.js +6 -0
  238. package/ui/dist/assets/loader-circle-1YOBsoQp.js +6 -0
  239. package/ui/dist/assets/network-DbGDAdrn.js +6 -0
  240. package/ui/dist/assets/{pause-DCV52koX.js → pause-CYhO_uQo.js} +1 -1
  241. package/ui/dist/assets/{play-CcJ9BnCh.js → play-DVY9c5Ck.js} +1 -1
  242. package/ui/dist/assets/{plug-CfWBXfCl.js → plug-BcXjlPUL.js} +1 -1
  243. package/ui/dist/assets/plus-Csu2v9GN.js +6 -0
  244. package/ui/dist/assets/{proxy-CzZDfLmm.js → proxy-DxS2_9D7.js} +1 -1
  245. package/ui/dist/assets/rotate-ccw-Co-_W04j.js +6 -0
  246. package/ui/dist/assets/save-Btx-kpoW.js +6 -0
  247. package/ui/dist/assets/search-0hXTwEZR.js +6 -0
  248. package/ui/dist/assets/send-TEpapzQR.js +6 -0
  249. package/ui/dist/assets/shield-check-DjBJXZUr.js +6 -0
  250. package/ui/dist/assets/{square-DJpUhlxi.js → square-OweUvjP-.js} +1 -1
  251. package/ui/dist/assets/{target-DWcmM_9m.js → target-BRW80Xer.js} +1 -1
  252. package/ui/dist/assets/terminal-BtiqJ628.js +16 -0
  253. package/ui/dist/assets/{toggle-right-YusFQ69L.js → toggle-right-CKtSrl28.js} +1 -1
  254. package/ui/dist/assets/{trash-2-CK7yQ55V.js → trash-2-DgWrHVax.js} +1 -1
  255. package/ui/dist/assets/{trending-up-DGjFyubC.js → trending-up-MpIrE4j6.js} +1 -1
  256. package/ui/dist/assets/{trophy-uQv_NgDB.js → trophy-CECuZNhX.js} +1 -1
  257. package/ui/dist/assets/users-dZgv4ePG.js +16 -0
  258. package/ui/dist/assets/wrench-CDz3xYve.js +11 -0
  259. package/ui/dist/index.html +2 -2
  260. package/ui/dist/assets/AutopilotPanel-DtEet1hJ.js +0 -1
  261. package/ui/dist/assets/BackupPanel-BGP8p3l3.js +0 -1
  262. package/ui/dist/assets/CPAgents-DYUtPzSq.js +0 -1
  263. package/ui/dist/assets/CPDashboard-Bf0-SyCh.js +0 -6
  264. package/ui/dist/assets/CPFiles-CxgxjQcO.js +0 -1
  265. package/ui/dist/assets/CPGoals-BsmCMTvT.js +0 -1
  266. package/ui/dist/assets/CPInbox-tMSbmQ9H.js +0 -11
  267. package/ui/dist/assets/ChannelsPanel-DP5C2OKd.js +0 -1
  268. package/ui/dist/assets/CheckpointsPanel-DlranVLZ.js +0 -1
  269. package/ui/dist/assets/CommandPostHub-BgxIa4Ev.js +0 -29
  270. package/ui/dist/assets/CronPanel-LoT5yKwJ.js +0 -1
  271. package/ui/dist/assets/DaemonPanel-DBGMqaE_.js +0 -1
  272. package/ui/dist/assets/EvalPanel-Bc33j0pN.js +0 -1
  273. package/ui/dist/assets/FleetPanel-CSsXuQYj.js +0 -1
  274. package/ui/dist/assets/InfraView-CR6HyrL6.js +0 -2
  275. package/ui/dist/assets/InlineEditableField-CnvF-yFR.js +0 -1
  276. package/ui/dist/assets/Input-GTHp2Rkr.js +0 -1
  277. package/ui/dist/assets/IntegrationsPanel-CymCRE3T.js +0 -1
  278. package/ui/dist/assets/IntelligenceView-C1IHxJRC.js +0 -2
  279. package/ui/dist/assets/LearningPanel-DOCES3lH.js +0 -1
  280. package/ui/dist/assets/LogsPanel-BLnAqEaZ.js +0 -1
  281. package/ui/dist/assets/McpPanel-ChUzmr3z.js +0 -1
  282. package/ui/dist/assets/MemoryWikiPanel-Dwk3Aqwd.js +0 -11
  283. package/ui/dist/assets/NvidiaPanel-CeZK_-CV.js +0 -1
  284. package/ui/dist/assets/OrganismPanel-BB6YOiQV.js +0 -1
  285. package/ui/dist/assets/OverviewPanel-BmtBhQnv.js +0 -1
  286. package/ui/dist/assets/PaperclipPanel-C-brgwA3.js +0 -1
  287. package/ui/dist/assets/RecipesPanel-34lCfynJ.js +0 -1
  288. package/ui/dist/assets/SecurityPanel-CBTPWLj6.js +0 -1
  289. package/ui/dist/assets/SelfImprovePanel-BrPbFHhG.js +0 -1
  290. package/ui/dist/assets/SessionsPanel-DAEYIn83.js +0 -1
  291. package/ui/dist/assets/SettingsPanel-CzRROAYQ.js +0 -1
  292. package/ui/dist/assets/SettingsView-CN7ii2uw.js +0 -2
  293. package/ui/dist/assets/SomaView-Ba642Oqb.js +0 -5
  294. package/ui/dist/assets/TeamsPanel-DKQ5z2Qe.js +0 -1
  295. package/ui/dist/assets/TelemetryPanel-B6KAc55Q.js +0 -1
  296. package/ui/dist/assets/TitanCanvas-C-s0A-lv.js +0 -1092
  297. package/ui/dist/assets/ToolsView-Dei0KMP0.js +0 -2
  298. package/ui/dist/assets/TraceViewer-BniolyBx.js +0 -1
  299. package/ui/dist/assets/TrainingPanel-Bz4CTPGW.js +0 -1
  300. package/ui/dist/assets/VoiceOverlay-CmNCrLcd.js +0 -37
  301. package/ui/dist/assets/VramPanel-Xh_OtRDR.js +0 -1
  302. package/ui/dist/assets/WorkTab-BjLNmgIK.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TitanCanvas-C-s0A-lv.js","assets/VoiceOverlay-CmNCrLcd.js","assets/TitanCanvas-BfitWg9R.css"])))=>i.map(i=>d[i]);
2
- var cg=Object.defineProperty;var ym=n=>{throw TypeError(n)};var rg=(n,u,c)=>u in n?cg(n,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[u]=c;var pm=(n,u,c)=>rg(n,typeof u!="symbol"?u+"":u,c),Dr=(n,u,c)=>u.has(n)||ym("Cannot "+c);var U=(n,u,c)=>(Dr(n,u,"read from private field"),c?c.call(n):u.get(n)),xe=(n,u,c)=>u.has(n)?ym("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(n):u.set(n,c),se=(n,u,c,r)=>(Dr(n,u,"write to private field"),r?r.call(n,c):u.set(n,c),c),ot=(n,u,c)=>(Dr(n,u,"access private method"),c);var cs=(n,u,c,r)=>({set _(f){se(n,u,f,c)},get _(){return U(n,u,r)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function c(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(f){if(f.ep)return;f.ep=!0;const m=c(f);fetch(f.href,m)}})();var l2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function og(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ur={exports:{}},_i={};/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TitanCanvas-BCbWnLMd.js","assets/chevron-up-C5g6pEj8.js","assets/plus-Csu2v9GN.js","assets/users-dZgv4ePG.js","assets/wrench-CDz3xYve.js","assets/network-DbGDAdrn.js","assets/terminal-BtiqJ628.js","assets/save-Btx-kpoW.js","assets/rotate-ccw-Co-_W04j.js","assets/search-0hXTwEZR.js","assets/send-TEpapzQR.js","assets/VoiceOverlay-D-gc58b0.js","assets/chevron-right-aQEw2mUW.js","assets/chevron-down-D7OLjvuD.js","assets/folder-DA43TRCm.js","assets/clock-CTsgP_Sn.js","assets/check-Bpm1IONe.js","assets/shield-check-DjBJXZUr.js","assets/external-link-BZ0y_Ahx.js","assets/loader-circle-1YOBsoQp.js","assets/TitanCanvas-BfitWg9R.css","assets/CPLayout-DgPOfyGv.js","assets/target-BRW80Xer.js","assets/briefcase-D4vLzudp.js","assets/dollar-sign-CudFVYFc.js","assets/git-branch-oHibJqDq.js"])))=>i.map(i=>d[i]);
2
+ var cg=Object.defineProperty;var pm=n=>{throw TypeError(n)};var rg=(n,u,c)=>u in n?cg(n,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[u]=c;var gm=(n,u,c)=>rg(n,typeof u!="symbol"?u+"":u,c),Dr=(n,u,c)=>u.has(n)||pm("Cannot "+c);var U=(n,u,c)=>(Dr(n,u,"read from private field"),c?c.call(n):u.get(n)),xe=(n,u,c)=>u.has(n)?pm("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(n):u.set(n,c),se=(n,u,c,r)=>(Dr(n,u,"write to private field"),r?r.call(n,c):u.set(n,c),c),ot=(n,u,c)=>(Dr(n,u,"access private method"),c);var cs=(n,u,c,r)=>({set _(f){se(n,u,f,c)},get _(){return U(n,u,r)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function c(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(f){if(f.ep)return;f.ep=!0;const m=c(f);fetch(f.href,m)}})();var n2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function og(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ur={exports:{}},_i={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
5
5
  *
@@ -7,7 +7,7 @@ var cg=Object.defineProperty;var ym=n=>{throw TypeError(n)};var rg=(n,u,c)=>u in
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var gm;function fg(){if(gm)return _i;gm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(r,f,m){var v=null;if(m!==void 0&&(v=""+m),f.key!==void 0&&(v=""+f.key),"key"in f){m={};for(var g in f)g!=="key"&&(m[g]=f[g])}else m=f;return f=m.ref,{$$typeof:n,type:r,key:v,ref:f!==void 0?f:null,props:m}}return _i.Fragment=u,_i.jsx=c,_i.jsxs=c,_i}var vm;function dg(){return vm||(vm=1,Ur.exports=fg()),Ur.exports}var h=dg(),Hr={exports:{}},oe={};/**
10
+ */var vm;function fg(){if(vm)return _i;vm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(r,f,m){var v=null;if(m!==void 0&&(v=""+m),f.key!==void 0&&(v=""+f.key),"key"in f){m={};for(var g in f)g!=="key"&&(m[g]=f[g])}else m=f;return f=m.ref,{$$typeof:n,type:r,key:v,ref:f!==void 0?f:null,props:m}}return _i.Fragment=u,_i.jsx=c,_i.jsxs=c,_i}var bm;function dg(){return bm||(bm=1,Ur.exports=fg()),Ur.exports}var h=dg(),Hr={exports:{}},oe={};/**
11
11
  * @license React
12
12
  * react.production.js
13
13
  *
@@ -15,7 +15,7 @@ var cg=Object.defineProperty;var ym=n=>{throw TypeError(n)};var rg=(n,u,c)=>u in
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var bm;function hg(){if(bm)return oe;bm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.iterator;function k(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,X={};function Q(S,w,Z){this.props=S,this.context=w,this.refs=X,this.updater=Z||K}Q.prototype.isReactComponent={},Q.prototype.setState=function(S,w){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,w,"setState")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=Q.prototype;function B(S,w,Z){this.props=S,this.context=w,this.refs=X,this.updater=Z||K}var V=B.prototype=new F;V.constructor=B,z(V,Q.prototype),V.isPureReactComponent=!0;var ne=Array.isArray;function ee(){}var W={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function te(S,w,Z){var $=Z.ref;return{$$typeof:n,type:S,key:w,ref:$!==void 0?$:null,props:Z}}function Le(S,w){return te(S.type,w,S.props)}function _e(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function Be(S){var w={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return w[Z]})}var Ge=/\/+/g;function Ae(S,w){return typeof S=="object"&&S!==null&&S.key!=null?Be(""+S.key):w.toString(36)}function Me(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ee,ee):(S.status="pending",S.then(function(w){S.status==="pending"&&(S.status="fulfilled",S.value=w)},function(w){S.status==="pending"&&(S.status="rejected",S.reason=w)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function R(S,w,Z,$,ae){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var ce=!1;if(S===null)ce=!0;else switch(re){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(S.$$typeof){case n:case u:ce=!0;break;case N:return ce=S._init,R(ce(S._payload),w,Z,$,ae)}}if(ce)return ae=ae(S),ce=$===""?"."+Ae(S,0):$,ne(ae)?(Z="",ce!=null&&(Z=ce.replace(Ge,"$&/")+"/"),R(ae,w,Z,"",function(ea){return ea})):ae!=null&&(_e(ae)&&(ae=Le(ae,Z+(ae.key==null||S&&S.key===ae.key?"":(""+ae.key).replace(Ge,"$&/")+"/")+ce)),w.push(ae)),1;ce=0;var Ze=$===""?".":$+":";if(ne(S))for(var De=0;De<S.length;De++)$=S[De],re=Ze+Ae($,De),ce+=R($,w,Z,re,ae);else if(De=k(S),typeof De=="function")for(S=De.call(S),De=0;!($=S.next()).done;)$=$.value,re=Ze+Ae($,De++),ce+=R($,w,Z,re,ae);else if(re==="object"){if(typeof S.then=="function")return R(Me(S),w,Z,$,ae);throw w=String(S),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return ce}function G(S,w,Z){if(S==null)return S;var $=[],ae=0;return R(S,$,"","",function(re){return w.call(Z,re,ae++)}),$}function J(S){if(S._status===-1){var w=S._result;w=w(),w.then(function(Z){(S._status===0||S._status===-1)&&(S._status=1,S._result=Z)},function(Z){(S._status===0||S._status===-1)&&(S._status=2,S._result=Z)}),S._status===-1&&(S._status=0,S._result=w)}if(S._status===1)return S._result.default;throw S._result}var ue=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},me={map:G,forEach:function(S,w,Z){G(S,function(){w.apply(this,arguments)},Z)},count:function(S){var w=0;return G(S,function(){w++}),w},toArray:function(S){return G(S,function(w){return w})||[]},only:function(S){if(!_e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return oe.Activity=E,oe.Children=me,oe.Component=Q,oe.Fragment=c,oe.Profiler=f,oe.PureComponent=B,oe.StrictMode=r,oe.Suspense=p,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,oe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return W.H.useMemoCache(S)}},oe.cache=function(S){return function(){return S.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(S,w,Z){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=z({},S.props),ae=S.key;if(w!=null)for(re in w.key!==void 0&&(ae=""+w.key),w)!fe.call(w,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&w.ref===void 0||($[re]=w[re]);var re=arguments.length-2;if(re===1)$.children=Z;else if(1<re){for(var ce=Array(re),Ze=0;Ze<re;Ze++)ce[Ze]=arguments[Ze+2];$.children=ce}return te(S.type,ae,$)},oe.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},oe.createElement=function(S,w,Z){var $,ae={},re=null;if(w!=null)for($ in w.key!==void 0&&(re=""+w.key),w)fe.call(w,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ae[$]=w[$]);var ce=arguments.length-2;if(ce===1)ae.children=Z;else if(1<ce){for(var Ze=Array(ce),De=0;De<ce;De++)Ze[De]=arguments[De+2];ae.children=Ze}if(S&&S.defaultProps)for($ in ce=S.defaultProps,ce)ae[$]===void 0&&(ae[$]=ce[$]);return te(S,re,ae)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(S){return{$$typeof:g,render:S}},oe.isValidElement=_e,oe.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:J}},oe.memo=function(S,w){return{$$typeof:y,type:S,compare:w===void 0?null:w}},oe.startTransition=function(S){var w=W.T,Z={};W.T=Z;try{var $=S(),ae=W.S;ae!==null&&ae(Z,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ee,ue)}catch(re){ue(re)}finally{w!==null&&Z.types!==null&&(w.types=Z.types),W.T=w}},oe.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},oe.use=function(S){return W.H.use(S)},oe.useActionState=function(S,w,Z){return W.H.useActionState(S,w,Z)},oe.useCallback=function(S,w){return W.H.useCallback(S,w)},oe.useContext=function(S){return W.H.useContext(S)},oe.useDebugValue=function(){},oe.useDeferredValue=function(S,w){return W.H.useDeferredValue(S,w)},oe.useEffect=function(S,w){return W.H.useEffect(S,w)},oe.useEffectEvent=function(S){return W.H.useEffectEvent(S)},oe.useId=function(){return W.H.useId()},oe.useImperativeHandle=function(S,w,Z){return W.H.useImperativeHandle(S,w,Z)},oe.useInsertionEffect=function(S,w){return W.H.useInsertionEffect(S,w)},oe.useLayoutEffect=function(S,w){return W.H.useLayoutEffect(S,w)},oe.useMemo=function(S,w){return W.H.useMemo(S,w)},oe.useOptimistic=function(S,w){return W.H.useOptimistic(S,w)},oe.useReducer=function(S,w,Z){return W.H.useReducer(S,w,Z)},oe.useRef=function(S){return W.H.useRef(S)},oe.useState=function(S){return W.H.useState(S)},oe.useSyncExternalStore=function(S,w,Z){return W.H.useSyncExternalStore(S,w,Z)},oe.useTransition=function(){return W.H.useTransition()},oe.version="19.2.4",oe}var xm;function ao(){return xm||(xm=1,Hr.exports=hg()),Hr.exports}var x=ao();const n2=og(x);var qr={exports:{}},Di={},Lr={exports:{}},Br={};/**
18
+ */var xm;function hg(){if(xm)return oe;xm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.iterator;function k(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,X={};function Q(S,w,Z){this.props=S,this.context=w,this.refs=X,this.updater=Z||K}Q.prototype.isReactComponent={},Q.prototype.setState=function(S,w){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,w,"setState")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=Q.prototype;function G(S,w,Z){this.props=S,this.context=w,this.refs=X,this.updater=Z||K}var V=G.prototype=new F;V.constructor=G,z(V,Q.prototype),V.isPureReactComponent=!0;var ne=Array.isArray;function ee(){}var W={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function te(S,w,Z){var $=Z.ref;return{$$typeof:n,type:S,key:w,ref:$!==void 0?$:null,props:Z}}function Le(S,w){return te(S.type,w,S.props)}function _e(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function Be(S){var w={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return w[Z]})}var Ge=/\/+/g;function Ae(S,w){return typeof S=="object"&&S!==null&&S.key!=null?Be(""+S.key):w.toString(36)}function Me(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ee,ee):(S.status="pending",S.then(function(w){S.status==="pending"&&(S.status="fulfilled",S.value=w)},function(w){S.status==="pending"&&(S.status="rejected",S.reason=w)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function R(S,w,Z,$,ae){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var ce=!1;if(S===null)ce=!0;else switch(re){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(S.$$typeof){case n:case u:ce=!0;break;case N:return ce=S._init,R(ce(S._payload),w,Z,$,ae)}}if(ce)return ae=ae(S),ce=$===""?"."+Ae(S,0):$,ne(ae)?(Z="",ce!=null&&(Z=ce.replace(Ge,"$&/")+"/"),R(ae,w,Z,"",function(ea){return ea})):ae!=null&&(_e(ae)&&(ae=Le(ae,Z+(ae.key==null||S&&S.key===ae.key?"":(""+ae.key).replace(Ge,"$&/")+"/")+ce)),w.push(ae)),1;ce=0;var Ze=$===""?".":$+":";if(ne(S))for(var De=0;De<S.length;De++)$=S[De],re=Ze+Ae($,De),ce+=R($,w,Z,re,ae);else if(De=k(S),typeof De=="function")for(S=De.call(S),De=0;!($=S.next()).done;)$=$.value,re=Ze+Ae($,De++),ce+=R($,w,Z,re,ae);else if(re==="object"){if(typeof S.then=="function")return R(Me(S),w,Z,$,ae);throw w=String(S),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return ce}function Y(S,w,Z){if(S==null)return S;var $=[],ae=0;return R(S,$,"","",function(re){return w.call(Z,re,ae++)}),$}function J(S){if(S._status===-1){var w=S._result;w=w(),w.then(function(Z){(S._status===0||S._status===-1)&&(S._status=1,S._result=Z)},function(Z){(S._status===0||S._status===-1)&&(S._status=2,S._result=Z)}),S._status===-1&&(S._status=0,S._result=w)}if(S._status===1)return S._result.default;throw S._result}var ue=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},me={map:Y,forEach:function(S,w,Z){Y(S,function(){w.apply(this,arguments)},Z)},count:function(S){var w=0;return Y(S,function(){w++}),w},toArray:function(S){return Y(S,function(w){return w})||[]},only:function(S){if(!_e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return oe.Activity=E,oe.Children=me,oe.Component=Q,oe.Fragment=c,oe.Profiler=f,oe.PureComponent=G,oe.StrictMode=r,oe.Suspense=p,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,oe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return W.H.useMemoCache(S)}},oe.cache=function(S){return function(){return S.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(S,w,Z){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=z({},S.props),ae=S.key;if(w!=null)for(re in w.key!==void 0&&(ae=""+w.key),w)!fe.call(w,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&w.ref===void 0||($[re]=w[re]);var re=arguments.length-2;if(re===1)$.children=Z;else if(1<re){for(var ce=Array(re),Ze=0;Ze<re;Ze++)ce[Ze]=arguments[Ze+2];$.children=ce}return te(S.type,ae,$)},oe.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},oe.createElement=function(S,w,Z){var $,ae={},re=null;if(w!=null)for($ in w.key!==void 0&&(re=""+w.key),w)fe.call(w,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ae[$]=w[$]);var ce=arguments.length-2;if(ce===1)ae.children=Z;else if(1<ce){for(var Ze=Array(ce),De=0;De<ce;De++)Ze[De]=arguments[De+2];ae.children=Ze}if(S&&S.defaultProps)for($ in ce=S.defaultProps,ce)ae[$]===void 0&&(ae[$]=ce[$]);return te(S,re,ae)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(S){return{$$typeof:g,render:S}},oe.isValidElement=_e,oe.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:J}},oe.memo=function(S,w){return{$$typeof:y,type:S,compare:w===void 0?null:w}},oe.startTransition=function(S){var w=W.T,Z={};W.T=Z;try{var $=S(),ae=W.S;ae!==null&&ae(Z,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ee,ue)}catch(re){ue(re)}finally{w!==null&&Z.types!==null&&(w.types=Z.types),W.T=w}},oe.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},oe.use=function(S){return W.H.use(S)},oe.useActionState=function(S,w,Z){return W.H.useActionState(S,w,Z)},oe.useCallback=function(S,w){return W.H.useCallback(S,w)},oe.useContext=function(S){return W.H.useContext(S)},oe.useDebugValue=function(){},oe.useDeferredValue=function(S,w){return W.H.useDeferredValue(S,w)},oe.useEffect=function(S,w){return W.H.useEffect(S,w)},oe.useEffectEvent=function(S){return W.H.useEffectEvent(S)},oe.useId=function(){return W.H.useId()},oe.useImperativeHandle=function(S,w,Z){return W.H.useImperativeHandle(S,w,Z)},oe.useInsertionEffect=function(S,w){return W.H.useInsertionEffect(S,w)},oe.useLayoutEffect=function(S,w){return W.H.useLayoutEffect(S,w)},oe.useMemo=function(S,w){return W.H.useMemo(S,w)},oe.useOptimistic=function(S,w){return W.H.useOptimistic(S,w)},oe.useReducer=function(S,w,Z){return W.H.useReducer(S,w,Z)},oe.useRef=function(S){return W.H.useRef(S)},oe.useState=function(S){return W.H.useState(S)},oe.useSyncExternalStore=function(S,w,Z){return W.H.useSyncExternalStore(S,w,Z)},oe.useTransition=function(){return W.H.useTransition()},oe.version="19.2.4",oe}var Sm;function ao(){return Sm||(Sm=1,Hr.exports=hg()),Hr.exports}var x=ao();const i2=og(x);var qr={exports:{}},Di={},Lr={exports:{}},Br={};/**
19
19
  * @license React
20
20
  * scheduler.production.js
21
21
  *
@@ -23,7 +23,7 @@ var cg=Object.defineProperty;var ym=n=>{throw TypeError(n)};var rg=(n,u,c)=>u in
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var Sm;function mg(){return Sm||(Sm=1,(function(n){function u(R,G){var J=R.length;R.push(G);e:for(;0<J;){var ue=J-1>>>1,me=R[ue];if(0<f(me,G))R[ue]=G,R[J]=me,J=ue;else break e}}function c(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var G=R[0],J=R.pop();if(J!==G){R[0]=J;e:for(var ue=0,me=R.length,S=me>>>1;ue<S;){var w=2*(ue+1)-1,Z=R[w],$=w+1,ae=R[$];if(0>f(Z,J))$<me&&0>f(ae,Z)?(R[ue]=ae,R[$]=J,ue=$):(R[ue]=Z,R[w]=J,ue=w);else if($<me&&0>f(ae,J))R[ue]=ae,R[$]=J,ue=$;else break e}}return G}function f(R,G){var J=R.sortIndex-G.sortIndex;return J!==0?J:R.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();n.unstable_now=function(){return v.now()-g}}var p=[],y=[],N=1,E=null,D=3,k=!1,K=!1,z=!1,X=!1,Q=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function V(R){for(var G=c(y);G!==null;){if(G.callback===null)r(y);else if(G.startTime<=R)r(y),G.sortIndex=G.expirationTime,u(p,G);else break;G=c(y)}}function ne(R){if(z=!1,V(R),!K)if(c(p)!==null)K=!0,ee||(ee=!0,Be());else{var G=c(y);G!==null&&Me(ne,G.startTime-R)}}var ee=!1,W=-1,fe=5,te=-1;function Le(){return X?!0:!(n.unstable_now()-te<fe)}function _e(){if(X=!1,ee){var R=n.unstable_now();te=R;var G=!0;try{e:{K=!1,z&&(z=!1,F(W),W=-1),k=!0;var J=D;try{t:{for(V(R),E=c(p);E!==null&&!(E.expirationTime>R&&Le());){var ue=E.callback;if(typeof ue=="function"){E.callback=null,D=E.priorityLevel;var me=ue(E.expirationTime<=R);if(R=n.unstable_now(),typeof me=="function"){E.callback=me,V(R),G=!0;break t}E===c(p)&&r(p),V(R)}else r(p);E=c(p)}if(E!==null)G=!0;else{var S=c(y);S!==null&&Me(ne,S.startTime-R),G=!1}}break e}finally{E=null,D=J,k=!1}G=void 0}}finally{G?Be():ee=!1}}}var Be;if(typeof B=="function")Be=function(){B(_e)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Ae=Ge.port2;Ge.port1.onmessage=_e,Be=function(){Ae.postMessage(null)}}else Be=function(){Q(_e,0)};function Me(R,G){W=Q(function(){R(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return D},n.unstable_next=function(R){switch(D){case 1:case 2:case 3:var G=3;break;default:G=D}var J=D;D=G;try{return R()}finally{D=J}},n.unstable_requestPaint=function(){X=!0},n.unstable_runWithPriority=function(R,G){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var J=D;D=R;try{return G()}finally{D=J}},n.unstable_scheduleCallback=function(R,G,J){var ue=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ue+J:ue):J=ue,R){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=J+me,R={id:N++,callback:G,priorityLevel:R,startTime:J,expirationTime:me,sortIndex:-1},J>ue?(R.sortIndex=J,u(y,R),c(p)===null&&R===c(y)&&(z?(F(W),W=-1):z=!0,Me(ne,J-ue))):(R.sortIndex=me,u(p,R),K||k||(K=!0,ee||(ee=!0,Be()))),R},n.unstable_shouldYield=Le,n.unstable_wrapCallback=function(R){var G=D;return function(){var J=D;D=G;try{return R.apply(this,arguments)}finally{D=J}}}})(Br)),Br}var Tm;function yg(){return Tm||(Tm=1,Lr.exports=mg()),Lr.exports}var Gr={exports:{}},dt={};/**
26
+ */var Tm;function mg(){return Tm||(Tm=1,(function(n){function u(R,Y){var J=R.length;R.push(Y);e:for(;0<J;){var ue=J-1>>>1,me=R[ue];if(0<f(me,Y))R[ue]=Y,R[J]=me,J=ue;else break e}}function c(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var Y=R[0],J=R.pop();if(J!==Y){R[0]=J;e:for(var ue=0,me=R.length,S=me>>>1;ue<S;){var w=2*(ue+1)-1,Z=R[w],$=w+1,ae=R[$];if(0>f(Z,J))$<me&&0>f(ae,Z)?(R[ue]=ae,R[$]=J,ue=$):(R[ue]=Z,R[w]=J,ue=w);else if($<me&&0>f(ae,J))R[ue]=ae,R[$]=J,ue=$;else break e}}return Y}function f(R,Y){var J=R.sortIndex-Y.sortIndex;return J!==0?J:R.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();n.unstable_now=function(){return v.now()-g}}var p=[],y=[],N=1,E=null,D=3,k=!1,K=!1,z=!1,X=!1,Q=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function V(R){for(var Y=c(y);Y!==null;){if(Y.callback===null)r(y);else if(Y.startTime<=R)r(y),Y.sortIndex=Y.expirationTime,u(p,Y);else break;Y=c(y)}}function ne(R){if(z=!1,V(R),!K)if(c(p)!==null)K=!0,ee||(ee=!0,Be());else{var Y=c(y);Y!==null&&Me(ne,Y.startTime-R)}}var ee=!1,W=-1,fe=5,te=-1;function Le(){return X?!0:!(n.unstable_now()-te<fe)}function _e(){if(X=!1,ee){var R=n.unstable_now();te=R;var Y=!0;try{e:{K=!1,z&&(z=!1,F(W),W=-1),k=!0;var J=D;try{t:{for(V(R),E=c(p);E!==null&&!(E.expirationTime>R&&Le());){var ue=E.callback;if(typeof ue=="function"){E.callback=null,D=E.priorityLevel;var me=ue(E.expirationTime<=R);if(R=n.unstable_now(),typeof me=="function"){E.callback=me,V(R),Y=!0;break t}E===c(p)&&r(p),V(R)}else r(p);E=c(p)}if(E!==null)Y=!0;else{var S=c(y);S!==null&&Me(ne,S.startTime-R),Y=!1}}break e}finally{E=null,D=J,k=!1}Y=void 0}}finally{Y?Be():ee=!1}}}var Be;if(typeof G=="function")Be=function(){G(_e)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Ae=Ge.port2;Ge.port1.onmessage=_e,Be=function(){Ae.postMessage(null)}}else Be=function(){Q(_e,0)};function Me(R,Y){W=Q(function(){R(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return D},n.unstable_next=function(R){switch(D){case 1:case 2:case 3:var Y=3;break;default:Y=D}var J=D;D=Y;try{return R()}finally{D=J}},n.unstable_requestPaint=function(){X=!0},n.unstable_runWithPriority=function(R,Y){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var J=D;D=R;try{return Y()}finally{D=J}},n.unstable_scheduleCallback=function(R,Y,J){var ue=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ue+J:ue):J=ue,R){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=J+me,R={id:N++,callback:Y,priorityLevel:R,startTime:J,expirationTime:me,sortIndex:-1},J>ue?(R.sortIndex=J,u(y,R),c(p)===null&&R===c(y)&&(z?(F(W),W=-1):z=!0,Me(ne,J-ue))):(R.sortIndex=me,u(p,R),K||k||(K=!0,ee||(ee=!0,Be()))),R},n.unstable_shouldYield=Le,n.unstable_wrapCallback=function(R){var Y=D;return function(){var J=D;D=Y;try{return R.apply(this,arguments)}finally{D=J}}}})(Br)),Br}var Em;function yg(){return Em||(Em=1,Lr.exports=mg()),Lr.exports}var Gr={exports:{}},ft={};/**
27
27
  * @license React
28
28
  * react-dom.production.js
29
29
  *
@@ -31,7 +31,7 @@ var cg=Object.defineProperty;var ym=n=>{throw TypeError(n)};var rg=(n,u,c)=>u in
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var Em;function pg(){if(Em)return dt;Em=1;var n=ao();function u(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)y+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(p,y,N){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:E==null?null:""+E,children:p,containerInfo:y,implementation:N}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dt.createPortal=function(p,y){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(p,y,null,N)},dt.flushSync=function(p){var y=v.T,N=r.p;try{if(v.T=null,r.p=2,p)return p()}finally{v.T=y,r.p=N,r.d.f()}},dt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},dt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},dt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var N=y.as,E=g(N,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,k=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;N==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:D,fetchPriority:k}):N==="script"&&r.d.X(p,{crossOrigin:E,integrity:D,fetchPriority:k,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var N=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},dt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var N=y.as,E=g(N,y.crossOrigin);r.d.L(p,N,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},dt.preloadModule=function(p,y){if(typeof p=="string")if(y){var N=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},dt.requestFormReset=function(p){r.d.r(p)},dt.unstable_batchedUpdates=function(p,y){return p(y)},dt.useFormState=function(p,y,N){return v.H.useFormState(p,y,N)},dt.useFormStatus=function(){return v.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var Am;function gg(){if(Am)return Gr.exports;Am=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Gr.exports=pg(),Gr.exports}/**
34
+ */var Am;function pg(){if(Am)return ft;Am=1;var n=ao();function u(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)y+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(p,y,N){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:E==null?null:""+E,children:p,containerInfo:y,implementation:N}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ft.createPortal=function(p,y){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(p,y,null,N)},ft.flushSync=function(p){var y=v.T,N=r.p;try{if(v.T=null,r.p=2,p)return p()}finally{v.T=y,r.p=N,r.d.f()}},ft.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},ft.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ft.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var N=y.as,E=g(N,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,k=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;N==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:D,fetchPriority:k}):N==="script"&&r.d.X(p,{crossOrigin:E,integrity:D,fetchPriority:k,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ft.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var N=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},ft.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var N=y.as,E=g(N,y.crossOrigin);r.d.L(p,N,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ft.preloadModule=function(p,y){if(typeof p=="string")if(y){var N=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},ft.requestFormReset=function(p){r.d.r(p)},ft.unstable_batchedUpdates=function(p,y){return p(y)},ft.useFormState=function(p,y,N){return v.H.useFormState(p,y,N)},ft.useFormStatus=function(){return v.H.useHostTransitionStatus()},ft.version="19.2.4",ft}var Nm;function gg(){if(Nm)return Gr.exports;Nm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Gr.exports=pg(),Gr.exports}/**
35
35
  * @license React
36
36
  * react-dom-client.production.js
37
37
  *
@@ -39,15 +39,15 @@ var cg=Object.defineProperty;var ym=n=>{throw TypeError(n)};var rg=(n,u,c)=>u in
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var Nm;function vg(){if(Nm)return Di;Nm=1;var n=yg(),u=ao(),c=gg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(m(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var s=i.alternate;if(s===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===a)return p(i),e;if(s===l)return p(i),t;s=s.sibling}throw Error(r(188))}if(a.return!==l.return)a=i,l=s;else{for(var o=!1,d=i.child;d;){if(d===a){o=!0,a=i,l=s;break}if(d===l){o=!0,l=i,a=s;break}d=d.sibling}if(!o){for(d=s.child;d;){if(d===a){o=!0,a=s,l=i;break}if(d===l){o=!0,l=s,a=i;break}d=d.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,D=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),B=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function Be(e){return e===null||typeof e!="object"?null:(e=_e&&e[_e]||e["@@iterator"],typeof e=="function"?e:null)}var Ge=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case Q:return"Profiler";case X:return"StrictMode";case ne:return"Suspense";case ee:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case K:return"Portal";case B:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:Ae(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var Me=Array.isArray,R=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ue=[],me=-1;function S(e){return{current:e}}function w(e){0>me||(e.current=ue[me],ue[me]=null,me--)}function Z(e,t){me++,ue[me]=e.current,e.current=t}var $=S(null),ae=S(null),re=S(null),ce=S(null);function Ze(e,t){switch(Z(re,t),Z(ae,e),Z($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lh(t),e=Bh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}w($),Z($,e)}function De(){w($),w(ae),w(re)}function ea(e){e.memoizedState!==null&&Z(ce,e);var t=$.current,a=Bh(t,e.type);t!==a&&(Z(ae,e),Z($,a))}function oa(e){ae.current===e&&(w($),w(ae)),ce.current===e&&(w(ce),Oi._currentValue=J)}var Dn,Un;function ta(e){if(Dn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Dn=t&&t[1]||"",Un=-1<a.stack.indexOf(`
42
+ */var Cm;function vg(){if(Cm)return Di;Cm=1;var n=yg(),u=ao(),c=gg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(m(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var s=i.alternate;if(s===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===a)return p(i),e;if(s===l)return p(i),t;s=s.sibling}throw Error(r(188))}if(a.return!==l.return)a=i,l=s;else{for(var o=!1,d=i.child;d;){if(d===a){o=!0,a=i,l=s;break}if(d===l){o=!0,l=i,a=s;break}d=d.sibling}if(!o){for(d=s.child;d;){if(d===a){o=!0,a=s,l=i;break}if(d===l){o=!0,l=s,a=i;break}d=d.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,D=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),G=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function Be(e){return e===null||typeof e!="object"?null:(e=_e&&e[_e]||e["@@iterator"],typeof e=="function"?e:null)}var Ge=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case Q:return"Profiler";case X:return"StrictMode";case ne:return"Suspense";case ee:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case K:return"Portal";case G:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:Ae(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var Me=Array.isArray,R=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ue=[],me=-1;function S(e){return{current:e}}function w(e){0>me||(e.current=ue[me],ue[me]=null,me--)}function Z(e,t){me++,ue[me]=e.current,e.current=t}var $=S(null),ae=S(null),re=S(null),ce=S(null);function Ze(e,t){switch(Z(re,t),Z(ae,e),Z($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bh(t),e=Gh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}w($),Z($,e)}function De(){w($),w(ae),w(re)}function ea(e){e.memoizedState!==null&&Z(ce,e);var t=$.current,a=Gh(t,e.type);t!==a&&(Z(ae,e),Z($,a))}function oa(e){ae.current===e&&(w($),w(ae)),ce.current===e&&(w(ce),ji._currentValue=J)}var Dn,Un;function ta(e){if(Dn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Dn=t&&t[1]||"",Un=-1<a.stack.indexOf(`
43
43
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+Dn+e+Un}var Hn=!1;function qn(e,t){if(!e||Hn)return"";Hn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(O){var j=O}Reflect.construct(e,[],q)}else{try{q.call()}catch(O){j=O}e.call(q.prototype)}}else{try{throw Error()}catch(O){j=O}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(O){if(O&&j&&typeof O.stack=="string")return[O.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),o=s[0],d=s[1];if(o&&d){var b=o.split(`
44
+ `+Dn+e+Un}var Hn=!1;function qn(e,t){if(!e||Hn)return"";Hn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(j){var O=j}Reflect.construct(e,[],q)}else{try{q.call()}catch(j){O=j}e.call(q.prototype)}}else{try{throw Error()}catch(j){O=j}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(j){if(j&&O&&typeof j.stack=="string")return[j.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),o=s[0],d=s[1];if(o&&d){var b=o.split(`
45
45
  `),M=d.split(`
46
46
  `);for(i=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;if(l===b.length||i===M.length)for(l=b.length-1,i=M.length-1;1<=l&&0<=i&&b[l]!==M[i];)i--;for(;1<=l&&0<=i;l--,i--)if(b[l]!==M[i]){if(l!==1||i!==1)do if(l--,i--,0>i||b[l]!==M[i]){var _=`
47
47
  `+b[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=i);break}}}finally{Hn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ta(a):""}function Ln(e,t){switch(e.tag){case 26:case 27:case 5:return ta(e.type);case 16:return ta("Lazy");case 13:return e.child!==t&&t!==null?ta("Suspense Fallback"):ta("Suspense");case 19:return ta("SuspenseList");case 0:case 15:return qn(e.type,!1);case 11:return qn(e.type.render,!1);case 1:return qn(e.type,!0);case 31:return ta("Activity");default:return""}}function Bn(e){try{var t="",a=null;do t+=Ln(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
48
48
  Error generating stack: `+l.message+`
49
- `+l.stack}}var Ul=Object.prototype.hasOwnProperty,Gn=n.unstable_scheduleCallback,Hl=n.unstable_cancelCallback,L=n.unstable_shouldYield,je=n.unstable_requestPaint,Ie=n.unstable_now,fa=n.unstable_getCurrentPriorityLevel,yo=n.unstable_ImmediatePriority,po=n.unstable_UserBlockingPriority,Vi=n.unstable_NormalPriority,ky=n.unstable_LowPriority,go=n.unstable_IdlePriority,Xy=n.log,Vy=n.unstable_setDisableYieldValue,Yn=null,Et=null;function _a(e){if(typeof Xy=="function"&&Vy(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Yn,e)}catch{}}var At=Math.clz32?Math.clz32:Jy,Zy=Math.log,Ky=Math.LN2;function Jy(e){return e>>>=0,e===0?32:31-(Zy(e)/Ky|0)|0}var Zi=256,Ki=262144,Ji=4194304;function fl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $i(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~s,l!==0?i=fl(l):(o&=d,o!==0?i=fl(o):a||(a=d&~e,a!==0&&(i=fl(a))))):(d=l&~s,d!==0?i=fl(d):o!==0?i=fl(o):a||(a=l&~e,a!==0&&(i=fl(a)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:i}function Qn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $y(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vo(){var e=Ji;return Ji<<=1,(Ji&62914560)===0&&(Ji=4194304),e}function Ts(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fy(e,t,a,l,i,s){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(a=o&~a;0<a;){var _=31-At(a),q=1<<_;d[_]=0,b[_]=-1;var j=M[_];if(j!==null)for(M[_]=null,_=0;_<j.length;_++){var O=j[_];O!==null&&(O.lane&=-536870913)}a&=~q}l!==0&&bo(e,l,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function bo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function xo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-At(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function So(e,t){var a=t&-t;return a=(a&42)!==0?1:Es(a),(a&(e.suspendedLanes|t))!==0?0:a}function Es(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function As(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function To(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:cm(e.type))}function Eo(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Da=Math.random().toString(36).slice(2),it="__reactFiber$"+Da,pt="__reactProps$"+Da,ql="__reactContainer$"+Da,Ns="__reactEvents$"+Da,Wy="__reactListeners$"+Da,Py="__reactHandles$"+Da,Ao="__reactResources$"+Da,Xn="__reactMarker$"+Da;function Cs(e){delete e[it],delete e[pt],delete e[Ns],delete e[Wy],delete e[Py]}function Ll(e){var t=e[it];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ql]||a[it]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Zh(e);e!==null;){if(a=e[it])return a;e=Zh(e)}return t}e=a,a=e.parentNode}return null}function Bl(e){if(e=e[it]||e[ql]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Gl(e){var t=e[Ao];return t||(t=e[Ao]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Xn]=!0}var No=new Set,Co={};function dl(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Co[e]=t,e=0;e<t.length;e++)No.add(t[e])}var Iy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Mo={},jo={};function ep(e){return Ul.call(jo,e)?!0:Ul.call(Mo,e)?!1:Iy.test(e)?jo[e]=!0:(Mo[e]=!0,!1)}function Fi(e,t,a){if(ep(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Wi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function da(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tp(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ms(e){if(!e._valueTracker){var t=Oo(e)?"checked":"value";e._valueTracker=tp(e,t,""+e[t])}}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Oo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Pi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ap=/[\n"\\]/g;function Ut(e){return e.replace(ap,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function js(e,t,a,l,i,s,o,d){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Os(e,o,Dt(t)):a!=null?Os(e,o,Dt(a)):l!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Dt(d):e.removeAttribute("name")}function Ro(e,t,a,l,i,s,o,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Ms(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ms(e)}function Os(e,t,a){t==="number"&&Pi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ql(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function wo(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function _o(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(Me(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ms(e)}function kl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var lp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Do(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||lp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Uo(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&Do(e,i,l)}else for(var s in t)t.hasOwnProperty(s)&&Do(e,s,t[s])}function zs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var np=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ip=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ii(e){return ip.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var Rs=null;function ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,Vl=null;function Ho(e){var t=Bl(e);if(t&&(e=t.stateNode)){var a=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(js(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[pt]||null;if(!i)throw Error(r(90));js(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&zo(l)}break e;case"textarea":wo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ql(e,!!a.multiple,t,!1)}}}var _s=!1;function qo(e,t,a){if(_s)return e(t,a);_s=!0;try{var l=e(t);return l}finally{if(_s=!1,(Xl!==null||Vl!==null)&&(Gu(),Xl&&(t=Xl,e=Vl,Vl=Xl=null,Ho(t),e)))for(t=0;t<e.length;t++)Ho(e[t])}}function Zn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[pt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=!1;if(ma)try{var Kn={};Object.defineProperty(Kn,"passive",{get:function(){Ds=!0}}),window.addEventListener("test",Kn,Kn),window.removeEventListener("test",Kn,Kn)}catch{Ds=!1}var Ua=null,Us=null,eu=null;function Lo(){if(eu)return eu;var e,t=Us,a=t.length,l,i="value"in Ua?Ua.value:Ua.textContent,s=i.length;for(e=0;e<a&&t[e]===i[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===i[s-l];l++);return eu=i.slice(e,1<l?1-l:void 0)}function tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function au(){return!0}function Bo(){return!1}function gt(e){function t(a,l,i,s,o){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?au:Bo,this.isPropagationStopped=Bo,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=au)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=au)},persist:function(){},isPersistent:au}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=gt(hl),Jn=E({},hl,{view:0,detail:0}),up=gt(Jn),Hs,qs,$n,nu=E({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$n&&($n&&e.type==="mousemove"?(Hs=e.screenX-$n.screenX,qs=e.screenY-$n.screenY):qs=Hs=0,$n=e),Hs)},movementY:function(e){return"movementY"in e?e.movementY:qs}}),Go=gt(nu),sp=E({},nu,{dataTransfer:0}),cp=gt(sp),rp=E({},Jn,{relatedTarget:0}),Ls=gt(rp),op=E({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),fp=gt(op),dp=E({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hp=gt(dp),mp=E({},hl,{data:0}),Yo=gt(mp),yp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gp[e])?!!t[e]:!1}function Bs(){return vp}var bp=E({},Jn,{key:function(e){if(e.key){var t=yp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bs,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xp=gt(bp),Sp=E({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qo=gt(Sp),Tp=E({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bs}),Ep=gt(Tp),Ap=E({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Np=gt(Ap),Cp=E({},nu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mp=gt(Cp),jp=E({},hl,{newState:0,oldState:0}),Op=gt(jp),zp=[9,13,27,32],Gs=ma&&"CompositionEvent"in window,Fn=null;ma&&"documentMode"in document&&(Fn=document.documentMode);var Rp=ma&&"TextEvent"in window&&!Fn,ko=ma&&(!Gs||Fn&&8<Fn&&11>=Fn),Xo=" ",Vo=!1;function Zo(e,t){switch(e){case"keyup":return zp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ko(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zl=!1;function wp(e,t){switch(e){case"compositionend":return Ko(t);case"keypress":return t.which!==32?null:(Vo=!0,Xo);case"textInput":return e=t.data,e===Xo&&Vo?null:e;default:return null}}function _p(e,t){if(Zl)return e==="compositionend"||!Gs&&Zo(e,t)?(e=Lo(),eu=Us=Ua=null,Zl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ko&&t.locale!=="ko"?null:t.data;default:return null}}var Dp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Jo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dp[e.type]:t==="textarea"}function $o(e,t,a,l){Xl?Vl?Vl.push(l):Vl=[l]:Xl=l,t=Ku(t,"onChange"),0<t.length&&(a=new lu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Wn=null,Pn=null;function Up(e){wh(e,0)}function iu(e){var t=Vn(e);if(zo(t))return e}function Fo(e,t){if(e==="change")return t}var Wo=!1;if(ma){var Ys;if(ma){var Qs="oninput"in document;if(!Qs){var Po=document.createElement("div");Po.setAttribute("oninput","return;"),Qs=typeof Po.oninput=="function"}Ys=Qs}else Ys=!1;Wo=Ys&&(!document.documentMode||9<document.documentMode)}function Io(){Wn&&(Wn.detachEvent("onpropertychange",ef),Pn=Wn=null)}function ef(e){if(e.propertyName==="value"&&iu(Pn)){var t=[];$o(t,Pn,e,ws(e)),qo(Up,t)}}function Hp(e,t,a){e==="focusin"?(Io(),Wn=t,Pn=a,Wn.attachEvent("onpropertychange",ef)):e==="focusout"&&Io()}function qp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Pn)}function Lp(e,t){if(e==="click")return iu(t)}function Bp(e,t){if(e==="input"||e==="change")return iu(t)}function Gp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Gp;function In(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Ul.call(t,i)||!Nt(e[i],t[i]))return!1}return!0}function tf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function af(e,t){var a=tf(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=tf(a)}}function lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Pi(e.document)}return t}function ks(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yp=ma&&"documentMode"in document&&11>=document.documentMode,Kl=null,Xs=null,ei=null,Vs=!1;function uf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vs||Kl==null||Kl!==Pi(l)||(l=Kl,"selectionStart"in l&&ks(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ei&&In(ei,l)||(ei=l,l=Ku(Xs,"onSelect"),0<l.length&&(t=new lu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Kl)))}function ml(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Jl={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionrun:ml("Transition","TransitionRun"),transitionstart:ml("Transition","TransitionStart"),transitioncancel:ml("Transition","TransitionCancel"),transitionend:ml("Transition","TransitionEnd")},Zs={},sf={};ma&&(sf=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function yl(e){if(Zs[e])return Zs[e];if(!Jl[e])return e;var t=Jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in sf)return Zs[e]=t[a];return e}var cf=yl("animationend"),rf=yl("animationiteration"),of=yl("animationstart"),Qp=yl("transitionrun"),kp=yl("transitionstart"),Xp=yl("transitioncancel"),ff=yl("transitionend"),df=new Map,Ks="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ks.push("scrollEnd");function Zt(e,t){df.set(e,t),dl(t,[e])}var uu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],$l=0,Js=0;function su(){for(var e=$l,t=Js=$l=0;t<e;){var a=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var s=Ht[t];if(Ht[t++]=null,l!==null&&i!==null){var o=l.pending;o===null?i.next=i:(i.next=o.next,o.next=i),l.pending=i}s!==0&&hf(a,i,s)}}function cu(e,t,a,l){Ht[$l++]=e,Ht[$l++]=t,Ht[$l++]=a,Ht[$l++]=l,Js|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $s(e,t,a,l){return cu(e,t,a,l),ru(e)}function pl(e,t){return cu(e,null,null,t),ru(e)}function hf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-At(a),e=s.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),s):null}function ru(e){if(50<Ti)throw Ti=0,nr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fl={};function Vp(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,l){return new Vp(e,t,a,l)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ya(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function mf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ou(e,t,a,l,i,s){var o=0;if(l=e,typeof e=="function")Fs(e)&&(o=1);else if(typeof e=="string")o=F0(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Ct(31,a,t,i),e.elementType=te,e.lanes=s,e;case z:return gl(a.children,i,s,t);case X:o=8,i|=24;break;case Q:return e=Ct(12,a,t,i|2),e.elementType=Q,e.lanes=s,e;case ne:return e=Ct(13,a,t,i),e.elementType=ne,e.lanes=s,e;case ee:return e=Ct(19,a,t,i),e.elementType=ee,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:o=10;break e;case F:o=9;break e;case V:o=11;break e;case W:o=14;break e;case fe:o=16,l=null;break e}o=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Ct(o,a,t,i),t.elementType=e,t.type=l,t.lanes=s,t}function gl(e,t,a,l){return e=Ct(7,e,l,t),e.lanes=a,e}function Ws(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function yf(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Ps(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=pf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Bn(t)},pf.set(e,t),t)}return{value:e,source:t,stack:Bn(t)}}var Wl=[],Pl=0,fu=null,ti=0,Lt=[],Bt=0,Ha=null,aa=1,la="";function pa(e,t){Wl[Pl++]=ti,Wl[Pl++]=fu,fu=e,ti=t}function gf(e,t,a){Lt[Bt++]=aa,Lt[Bt++]=la,Lt[Bt++]=Ha,Ha=e;var l=aa;e=la;var i=32-At(l)-1;l&=~(1<<i),a+=1;var s=32-At(t)+i;if(30<s){var o=i-i%5;s=(l&(1<<o)-1).toString(32),l>>=o,i-=o,aa=1<<32-At(t)+i|a<<i|l,la=s+e}else aa=1<<s|a<<i|l,la=e}function Is(e){e.return!==null&&(pa(e,1),gf(e,1,0))}function ec(e){for(;e===fu;)fu=Wl[--Pl],Wl[Pl]=null,ti=Wl[--Pl],Wl[Pl]=null;for(;e===Ha;)Ha=Lt[--Bt],Lt[Bt]=null,la=Lt[--Bt],Lt[Bt]=null,aa=Lt[--Bt],Lt[Bt]=null}function vf(e,t){Lt[Bt++]=aa,Lt[Bt++]=la,Lt[Bt++]=Ha,aa=t.id,la=t.overflow,Ha=e}var ut=null,He=null,be=!1,qa=null,Gt=!1,tc=Error(r(519));function La(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ai(qt(t,e)),tc}function bf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[it]=e,t[pt]=l,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Ai.length;a++)pe(Ai[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),Ro(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),_o(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Hh(t.textContent,a)?(l.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),l.onScroll!=null&&pe("scroll",t),l.onScrollEnd!=null&&pe("scrollend",t),l.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||La(e,!0)}function xf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:ut=ut.return}}function Il(e){if(e!==ut)return!1;if(!be)return xf(e),be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||br(e.type,e.memoizedProps)),a=!a),a&&He&&La(e),xf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=Vh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=Vh(e)}else t===27?(t=He,Pa(e.type)?(e=Ar,Ar=null,He=e):He=t):He=ut?Qt(e.stateNode.nextSibling):null;return!0}function vl(){He=ut=null,be=!1}function ac(){var e=qa;return e!==null&&(St===null?St=e:St.push.apply(St,e),qa=null),e}function ai(e){qa===null?qa=[e]:qa.push(e)}var lc=S(null),bl=null,ga=null;function Ba(e,t,a){Z(lc,t._currentValue),t._currentValue=a}function va(e){e._currentValue=lc.current,w(lc)}function nc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ic(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var b=0;b<t.length;b++)if(d.context===t[b]){s.lanes|=a,d=s.alternate,d!==null&&(d.lanes|=a),nc(s.return,a,e),l||(o=null);break e}s=d.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(r(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),nc(o,a,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function en(e,t,a,l){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var d=i.type;Nt(i.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(i===ce.current){if(o=i.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Oi):e=[Oi])}i=i.return}e!==null&&ic(t,e,a,l),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xl(e){bl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Sf(bl,e)}function hu(e,t){return bl===null&&xl(e),Sf(e,t)}function Sf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ga===null){if(e===null)throw Error(r(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return a}var Zp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Kp=n.unstable_scheduleCallback,Jp=n.unstable_NormalPriority,$e={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uc(){return{controller:new Zp,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Kp(Jp,function(){e.controller.abort()})}var ni=null,sc=0,tn=0,an=null;function $p(e,t){if(ni===null){var a=ni=[];sc=0,tn=or(),an={status:"pending",value:void 0,then:function(l){a.push(l)}}}return sc++,t.then(Tf,Tf),t}function Tf(){if(--sc===0&&ni!==null){an!==null&&(an.status="fulfilled");var e=ni;ni=null,tn=0,an=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Fp(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Ef=R.S;R.S=function(e,t){uh=Ie(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$p(e,t),Ef!==null&&Ef(e,t)};var Sl=S(null);function cc(){var e=Sl.current;return e!==null?e:Ue.pooledCache}function mu(e,t){t===null?Z(Sl,Sl.current):Z(Sl,t.pool)}function Af(){var e=cc();return e===null?null:{parent:$e._currentValue,pool:e}}var ln=Error(r(460)),rc=Error(r(474)),yu=Error(r(542)),pu={then:function(){}};function Nf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ha,ha),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e}throw El=t,ln}}function Tl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(El=a,ln):a}}var El=null;function Mf(){if(El===null)throw Error(r(459));var e=El;return El=null,e}function jf(e){if(e===ln||e===yu)throw Error(r(483))}var nn=null,ii=0;function gu(e){var t=ii;return ii+=1,nn===null&&(nn=[]),Cf(nn,e,t)}function ui(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vu(e,t){throw t.$$typeof===D?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Of(e){function t(A,T){if(e){var C=A.deletions;C===null?(A.deletions=[T],A.flags|=16):C.push(T)}}function a(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function l(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function i(A,T){return A=ya(A,T),A.index=0,A.sibling=null,A}function s(A,T,C){return A.index=C,e?(C=A.alternate,C!==null?(C=C.index,C<T?(A.flags|=67108866,T):C):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function o(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function d(A,T,C,H){return T===null||T.tag!==6?(T=Ws(C,A.mode,H),T.return=A,T):(T=i(T,C),T.return=A,T)}function b(A,T,C,H){var le=C.type;return le===z?_(A,T,C.props.children,H,C.key):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===fe&&Tl(le)===T.type)?(T=i(T,C.props),ui(T,C),T.return=A,T):(T=ou(C.type,C.key,C.props,null,A.mode,H),ui(T,C),T.return=A,T)}function M(A,T,C,H){return T===null||T.tag!==4||T.stateNode.containerInfo!==C.containerInfo||T.stateNode.implementation!==C.implementation?(T=Ps(C,A.mode,H),T.return=A,T):(T=i(T,C.children||[]),T.return=A,T)}function _(A,T,C,H,le){return T===null||T.tag!==7?(T=gl(C,A.mode,H,le),T.return=A,T):(T=i(T,C),T.return=A,T)}function q(A,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Ws(""+T,A.mode,C),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case k:return C=ou(T.type,T.key,T.props,null,A.mode,C),ui(C,T),C.return=A,C;case K:return T=Ps(T,A.mode,C),T.return=A,T;case fe:return T=Tl(T),q(A,T,C)}if(Me(T)||Be(T))return T=gl(T,A.mode,C,null),T.return=A,T;if(typeof T.then=="function")return q(A,gu(T),C);if(T.$$typeof===B)return q(A,hu(A,T),C);vu(A,T)}return null}function j(A,T,C,H){var le=T!==null?T.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return le!==null?null:d(A,T,""+C,H);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return C.key===le?b(A,T,C,H):null;case K:return C.key===le?M(A,T,C,H):null;case fe:return C=Tl(C),j(A,T,C,H)}if(Me(C)||Be(C))return le!==null?null:_(A,T,C,H,null);if(typeof C.then=="function")return j(A,T,gu(C),H);if(C.$$typeof===B)return j(A,T,hu(A,C),H);vu(A,C)}return null}function O(A,T,C,H,le){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return A=A.get(C)||null,d(T,A,""+H,le);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case k:return A=A.get(H.key===null?C:H.key)||null,b(T,A,H,le);case K:return A=A.get(H.key===null?C:H.key)||null,M(T,A,H,le);case fe:return H=Tl(H),O(A,T,C,H,le)}if(Me(H)||Be(H))return A=A.get(C)||null,_(T,A,H,le,null);if(typeof H.then=="function")return O(A,T,C,gu(H),le);if(H.$$typeof===B)return O(A,T,C,hu(T,H),le);vu(T,H)}return null}function P(A,T,C,H){for(var le=null,Se=null,I=T,he=T=0,ve=null;I!==null&&he<C.length;he++){I.index>he?(ve=I,I=null):ve=I.sibling;var Te=j(A,I,C[he],H);if(Te===null){I===null&&(I=ve);break}e&&I&&Te.alternate===null&&t(A,I),T=s(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te,I=ve}if(he===C.length)return a(A,I),be&&pa(A,he),le;if(I===null){for(;he<C.length;he++)I=q(A,C[he],H),I!==null&&(T=s(I,T,he),Se===null?le=I:Se.sibling=I,Se=I);return be&&pa(A,he),le}for(I=l(I);he<C.length;he++)ve=O(I,A,he,C[he],H),ve!==null&&(e&&ve.alternate!==null&&I.delete(ve.key===null?he:ve.key),T=s(ve,T,he),Se===null?le=ve:Se.sibling=ve,Se=ve);return e&&I.forEach(function(ll){return t(A,ll)}),be&&pa(A,he),le}function ie(A,T,C,H){if(C==null)throw Error(r(151));for(var le=null,Se=null,I=T,he=T=0,ve=null,Te=C.next();I!==null&&!Te.done;he++,Te=C.next()){I.index>he?(ve=I,I=null):ve=I.sibling;var ll=j(A,I,Te.value,H);if(ll===null){I===null&&(I=ve);break}e&&I&&ll.alternate===null&&t(A,I),T=s(ll,T,he),Se===null?le=ll:Se.sibling=ll,Se=ll,I=ve}if(Te.done)return a(A,I),be&&pa(A,he),le;if(I===null){for(;!Te.done;he++,Te=C.next())Te=q(A,Te.value,H),Te!==null&&(T=s(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te);return be&&pa(A,he),le}for(I=l(I);!Te.done;he++,Te=C.next())Te=O(I,A,he,Te.value,H),Te!==null&&(e&&Te.alternate!==null&&I.delete(Te.key===null?he:Te.key),T=s(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te);return e&&I.forEach(function(sg){return t(A,sg)}),be&&pa(A,he),le}function Re(A,T,C,H){if(typeof C=="object"&&C!==null&&C.type===z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case k:e:{for(var le=C.key;T!==null;){if(T.key===le){if(le=C.type,le===z){if(T.tag===7){a(A,T.sibling),H=i(T,C.props.children),H.return=A,A=H;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===fe&&Tl(le)===T.type){a(A,T.sibling),H=i(T,C.props),ui(H,C),H.return=A,A=H;break e}a(A,T);break}else t(A,T);T=T.sibling}C.type===z?(H=gl(C.props.children,A.mode,H,C.key),H.return=A,A=H):(H=ou(C.type,C.key,C.props,null,A.mode,H),ui(H,C),H.return=A,A=H)}return o(A);case K:e:{for(le=C.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){a(A,T.sibling),H=i(T,C.children||[]),H.return=A,A=H;break e}else{a(A,T);break}else t(A,T);T=T.sibling}H=Ps(C,A.mode,H),H.return=A,A=H}return o(A);case fe:return C=Tl(C),Re(A,T,C,H)}if(Me(C))return P(A,T,C,H);if(Be(C)){if(le=Be(C),typeof le!="function")throw Error(r(150));return C=le.call(C),ie(A,T,C,H)}if(typeof C.then=="function")return Re(A,T,gu(C),H);if(C.$$typeof===B)return Re(A,T,hu(A,C),H);vu(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(a(A,T.sibling),H=i(T,C),H.return=A,A=H):(a(A,T),H=Ws(C,A.mode,H),H.return=A,A=H),o(A)):a(A,T)}return function(A,T,C,H){try{ii=0;var le=Re(A,T,C,H);return nn=null,le}catch(I){if(I===ln||I===yu)throw I;var Se=Ct(29,I,null,A.mode);return Se.lanes=H,Se.return=A,Se}finally{}}}var Al=Of(!0),zf=Of(!1),Ga=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ee&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ru(e),hf(e,null,a),t}return cu(e,l,t,a),ru(e)}function si(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,xo(e,a)}}function dc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?i=s=t:s=s.next=t}else i=s=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var hc=!1;function ci(){if(hc){var e=an;if(e!==null)throw e}}function ri(e,t,a,l){hc=!1;var i=e.updateQueue;Ga=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var b=d,M=b.next;b.next=null,o===null?s=M:o.next=M,o=b;var _=e.alternate;_!==null&&(_=_.updateQueue,d=_.lastBaseUpdate,d!==o&&(d===null?_.firstBaseUpdate=M:d.next=M,_.lastBaseUpdate=b))}if(s!==null){var q=i.baseState;o=0,_=M=b=null,d=s;do{var j=d.lane&-536870913,O=j!==d.lane;if(O?(ge&j)===j:(l&j)===j){j!==0&&j===tn&&(hc=!0),_!==null&&(_=_.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var P=e,ie=d;j=t;var Re=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){q=P.call(Re,q,j);break e}q=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,j=typeof P=="function"?P.call(Re,q,j):P,j==null)break e;q=E({},q,j);break e;case 2:Ga=!0}}j=d.callback,j!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[j]:O.push(j))}else O={lane:j,tag:d.tag,payload:d.payload,callback:d.callback,next:null},_===null?(M=_=O,b=q):_=_.next=O,o|=j;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;O=d,d=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);_===null&&(b=q),i.baseState=b,i.firstBaseUpdate=M,i.lastBaseUpdate=_,s===null&&(i.shared.lanes=0),Ka|=o,e.lanes=o,e.memoizedState=q}}function Rf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function wf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Rf(a[e],t)}var un=S(null),bu=S(0);function _f(e,t){e=Ma,Z(bu,e),Z(un,t),Ma=e|t.baseLanes}function mc(){Z(bu,Ma),Z(un,un.current)}function yc(){Ma=bu.current,w(un),w(bu)}var Mt=S(null),Yt=null;function ka(e){var t=e.alternate;Z(Ke,Ke.current&1),Z(Mt,e),Yt===null&&(t===null||un.current!==null||t.memoizedState!==null)&&(Yt=e)}function pc(e){Z(Ke,Ke.current),Z(Mt,e),Yt===null&&(Yt=e)}function Df(e){e.tag===22?(Z(Ke,Ke.current),Z(Mt,e),Yt===null&&(Yt=e)):Xa()}function Xa(){Z(Ke,Ke.current),Z(Mt,Mt.current)}function jt(e){w(Mt),Yt===e&&(Yt=null),w(Ke)}var Ke=S(0);function xu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Tr(a)||Er(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ba=0,de=null,Oe=null,Fe=null,Su=!1,sn=!1,Nl=!1,Tu=0,oi=0,cn=null,Wp=0;function ke(){throw Error(r(321))}function gc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Nt(e[a],t[a]))return!1;return!0}function vc(e,t,a,l,i,s){return ba=s,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?gd:_c,Nl=!1,s=a(l,i),Nl=!1,sn&&(s=Hf(t,a,l,i)),Uf(e),s}function Uf(e){R.H=hi;var t=Oe!==null&&Oe.next!==null;if(ba=0,Fe=Oe=de=null,Su=!1,oi=0,cn=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&du(e)&&(We=!0))}function Hf(e,t,a,l){de=e;var i=0;do{if(sn&&(cn=null),oi=0,sn=!1,25<=i)throw Error(r(301));if(i+=1,Fe=Oe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}R.H=vd,s=t(a,l)}while(sn);return s}function Pp(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(de.flags|=1024),t}function bc(){var e=Tu!==0;return Tu=0,e}function xc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Sc(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}ba=0,Fe=Oe=de=null,sn=!1,oi=Tu=0,cn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Je(){if(Oe===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Fe===null?de.memoizedState:Fe.next;if(t!==null)Fe=t,Oe=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Eu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=oi;return oi+=1,cn===null&&(cn=[]),e=Cf(cn,e,t),t=de,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?gd:_c),e}function Au(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===B)return st(e)}throw Error(r(438,String(e)))}function Tc(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Eu(),de.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Le;return t.index++,a}function xa(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=Je();return Ec(t,Oe,e)}function Ec(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var i=e.baseQueue,s=l.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}t.baseQueue=i=s,l.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=o=null,b=null,M=t,_=!1;do{var q=M.lane&-536870913;if(q!==M.lane?(ge&q)===q:(ba&q)===q){var j=M.revertLane;if(j===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),q===tn&&(_=!0);else if((ba&j)===j){M=M.next,j===tn&&(_=!0);continue}else q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(d=b=q,o=s):b=b.next=q,de.lanes|=j,Ka|=j;q=M.action,Nl&&a(s,q),s=M.hasEagerState?M.eagerState:a(s,q)}else j={lane:q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(d=b=j,o=s):b=b.next=j,de.lanes|=q,Ka|=q;M=M.next}while(M!==null&&M!==t);if(b===null?o=s:b.next=d,!Nt(s,e.memoizedState)&&(We=!0,_&&(a=an,a!==null)))throw a;e.memoizedState=s,e.baseState=o,e.baseQueue=b,l.lastRenderedState=s}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ac(e){var t=Je(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,s=t.memoizedState;if(i!==null){a.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Nt(s,t.memoizedState)||(We=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function qf(e,t,a){var l=de,i=Je(),s=be;if(s){if(a===void 0)throw Error(r(407));a=a()}else a=t();var o=!Nt((Oe||i).memoizedState,a);if(o&&(i.memoizedState=a,We=!0),i=i.queue,Mc(Gf.bind(null,l,i,e),[e]),i.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(l.flags|=2048,rn(9,{destroy:void 0},Bf.bind(null,l,i,a,t),null),Ue===null)throw Error(r(349));s||(ba&127)!==0||Lf(l,t,a)}return a}function Lf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=Eu(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Bf(e,t,a,l){t.value=a,t.getSnapshot=l,Yf(t)&&Qf(e)}function Gf(e,t,a){return a(function(){Yf(t)&&Qf(e)})}function Yf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Nt(e,a)}catch{return!0}}function Qf(e){var t=pl(e,2);t!==null&&Tt(t,e,2)}function Nc(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),Nl){_a(!0);try{a()}finally{_a(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t}function kf(e,t,a,l){return e.baseState=a,Ec(e,Oe,typeof l=="function"?l:xa)}function Ip(e,t,a,l,i){if(ju(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};R.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,Xf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function Xf(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var s=R.T,o={};R.T=o;try{var d=a(i,l),b=R.S;b!==null&&b(o,d),Vf(e,t,d)}catch(M){Cc(e,t,M)}finally{s!==null&&o.types!==null&&(s.types=o.types),R.T=s}}else try{s=a(i,l),Vf(e,t,s)}catch(M){Cc(e,t,M)}}function Vf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Zf(e,t,l)},function(l){return Cc(e,t,l)}):Zf(e,t,a)}function Zf(e,t,a){t.status="fulfilled",t.value=a,Kf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Xf(e,a)))}function Cc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Kf(t),t=t.next;while(t!==l)}e.action=null}function Kf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jf(e,t){return t}function $f(e,t){if(be){var a=Ue.formState;if(a!==null){e:{var l=de;if(be){if(He){t:{for(var i=He,s=Gt;i.nodeType!==8;){if(!s){i=null;break t}if(i=Qt(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){He=Qt(i.nextSibling),l=i.data==="F!";break e}}La(l)}l=!1}l&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jf,lastRenderedState:t},a.queue=l,a=md.bind(null,de,l),l.dispatch=a,l=Nc(!1),s=wc.bind(null,de,!1,l.queue),l=mt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=Ip.bind(null,de,i,s,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Ff(e){var t=Je();return Wf(t,Oe,e)}function Wf(e,t,a){if(t=Ec(e,t,Jf)[0],e=Nu(xa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=fi(t)}catch(o){throw o===ln?yu:o}else l=t;t=Je();var i=t.queue,s=i.dispatch;return a!==t.memoizedState&&(de.flags|=2048,rn(9,{destroy:void 0},e0.bind(null,i,a),null)),[l,s,e]}function e0(e,t){e.action=t}function Pf(e){var t=Je(),a=Oe;if(a!==null)return Wf(t,a,e);Je(),t=t.memoizedState,a=Je();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function rn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=de.updateQueue,t===null&&(t=Eu(),de.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function If(){return Je().memoizedState}function Cu(e,t,a,l){var i=mt();de.flags|=e,i.memoizedState=rn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Mu(e,t,a,l){var i=Je();l=l===void 0?null:l;var s=i.memoizedState.inst;Oe!==null&&l!==null&&gc(l,Oe.memoizedState.deps)?i.memoizedState=rn(t,s,a,l):(de.flags|=e,i.memoizedState=rn(1|t,s,a,l))}function ed(e,t){Cu(8390656,8,e,t)}function Mc(e,t){Mu(2048,8,e,t)}function t0(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Eu(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function td(e){var t=Je().memoizedState;return t0({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function ad(e,t){return Mu(4,2,e,t)}function ld(e,t){return Mu(4,4,e,t)}function nd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function id(e,t,a){a=a!=null?a.concat([e]):null,Mu(4,4,nd.bind(null,t,e),a)}function jc(){}function ud(e,t){var a=Je();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&gc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function sd(e,t){var a=Je();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&gc(t,l[1]))return l[0];if(l=e(),Nl){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l}function Oc(e,t,a){return a===void 0||(ba&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=ch(),de.lanes|=e,Ka|=e,a)}function cd(e,t,a,l){return Nt(a,t)?a:un.current!==null?(e=Oc(e,a,l),Nt(e,t)||(We=!0),e):(ba&42)===0||(ba&1073741824)!==0&&(ge&261930)===0?(We=!0,e.memoizedState=a):(e=ch(),de.lanes|=e,Ka|=e,t)}function rd(e,t,a,l,i){var s=G.p;G.p=s!==0&&8>s?s:8;var o=R.T,d={};R.T=d,wc(e,!1,t,a);try{var b=i(),M=R.S;if(M!==null&&M(d,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=Fp(b,l);di(e,t,_,Rt(e))}else di(e,t,l,Rt(e))}catch(q){di(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{G.p=s,o!==null&&d.types!==null&&(o.types=d.types),R.T=o}}function a0(){}function zc(e,t,a,l){if(e.tag!==5)throw Error(r(476));var i=od(e).queue;rd(e,i,t,J,a===null?a0:function(){return fd(e),a(l)})}function od(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fd(e){var t=od(e);t.next===null&&(t=e.alternate.memoizedState),di(e,t.next.queue,{},Rt())}function Rc(){return st(Oi)}function dd(){return Je().memoizedState}function hd(){return Je().memoizedState}function l0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ya(a);var l=Qa(t,e,a);l!==null&&(Tt(l,t,a),si(l,t,a)),t={cache:uc()},e.payload=t;return}t=t.return}}function n0(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ju(e)?yd(t,a):(a=$s(e,t,a,l),a!==null&&(Tt(a,e,l),pd(a,t,l)))}function md(e,t,a){var l=Rt();di(e,t,a,l)}function di(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ju(e))yd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,d=s(o,a);if(i.hasEagerState=!0,i.eagerState=d,Nt(d,o))return cu(e,t,i,0),Ue===null&&su(),!1}catch{}finally{}if(a=$s(e,t,i,l),a!==null)return Tt(a,e,l),pd(a,t,l),!0}return!1}function wc(e,t,a,l){if(l={lane:2,revertLane:or(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ju(e)){if(t)throw Error(r(479))}else t=$s(e,a,l,2),t!==null&&Tt(t,e,2)}function ju(e){var t=e.alternate;return e===de||t!==null&&t===de}function yd(e,t){sn=Su=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function pd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,xo(e,a)}}var hi={readContext:st,use:Au,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};hi.useEffectEvent=ke;var gd={readContext:st,use:Au,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:ed,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Cu(4194308,4,nd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Cu(4194308,4,e,t)},useInsertionEffect:function(e,t){Cu(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var l=e();if(Nl){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=mt();if(a!==void 0){var i=a(t);if(Nl){_a(!0);try{a(t)}finally{_a(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=n0.bind(null,de,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Nc(e);var t=e.queue,a=md.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:jc,useDeferredValue:function(e,t){var a=mt();return Oc(a,e,t)},useTransition:function(){var e=Nc(!1);return e=rd.bind(null,de,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=de,i=mt();if(be){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ue===null)throw Error(r(349));(ge&127)!==0||Lf(l,t,a)}i.memoizedState=a;var s={value:a,getSnapshot:t};return i.queue=s,ed(Gf.bind(null,l,s,e),[e]),l.flags|=2048,rn(9,{destroy:void 0},Bf.bind(null,l,s,a,t),null),a},useId:function(){var e=mt(),t=Ue.identifierPrefix;if(be){var a=la,l=aa;a=(l&~(1<<32-At(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Tu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Wp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rc,useFormState:$f,useActionState:$f,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=wc.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:Tc,useCacheRefresh:function(){return mt().memoizedState=l0.bind(null,de)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((Ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},_c={readContext:st,use:Au,useCallback:ud,useContext:st,useEffect:Mc,useImperativeHandle:id,useInsertionEffect:ad,useLayoutEffect:ld,useMemo:sd,useReducer:Nu,useRef:If,useState:function(){return Nu(xa)},useDebugValue:jc,useDeferredValue:function(e,t){var a=Je();return cd(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Nu(xa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:qf,useId:dd,useHostTransitionStatus:Rc,useFormState:Ff,useActionState:Ff,useOptimistic:function(e,t){var a=Je();return kf(a,Oe,e,t)},useMemoCache:Tc,useCacheRefresh:hd};_c.useEffectEvent=td;var vd={readContext:st,use:Au,useCallback:ud,useContext:st,useEffect:Mc,useImperativeHandle:id,useInsertionEffect:ad,useLayoutEffect:ld,useMemo:sd,useReducer:Ac,useRef:If,useState:function(){return Ac(xa)},useDebugValue:jc,useDeferredValue:function(e,t){var a=Je();return Oe===null?Oc(a,e,t):cd(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ac(xa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:qf,useId:dd,useHostTransitionStatus:Rc,useFormState:Pf,useActionState:Pf,useOptimistic:function(e,t){var a=Je();return Oe!==null?kf(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:hd};vd.useEffectEvent=td;function Dc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:E({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Uc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ya(l);i.payload=t,a!=null&&(i.callback=a),t=Qa(e,i,l),t!==null&&(Tt(t,e,l),si(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ya(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Qa(e,i,l),t!==null&&(Tt(t,e,l),si(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ya(a);l.tag=2,t!=null&&(l.callback=t),t=Qa(e,l,a),t!==null&&(Tt(t,e,a),si(t,e,a))}};function bd(e,t,a,l,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,o):t.prototype&&t.prototype.isPureReactComponent?!In(a,l)||!In(i,s):!0}function xd(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Uc.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=E({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Sd(e){uu(e)}function Td(e){console.error(e)}function Ed(e){uu(e)}function Ou(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ad(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Hc(e,t,a){return a=Ya(a),a.tag=3,a.payload={element:null},a.callback=function(){Ou(e,t)},a}function Nd(e){return e=Ya(e),e.tag=3,e}function Cd(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var s=l.value;e.payload=function(){return i(s)},e.callback=function(){Ad(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Ad(t,a,l),typeof i!="function"&&(Ja===null?Ja=new Set([this]):Ja.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function i0(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&en(t,a,i,!0),a=Mt.current,a!==null){switch(a.tag){case 31:case 13:return Yt===null?Yu():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===pu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),sr(e,l,i)),!1;case 22:return a.flags|=65536,l===pu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),sr(e,l,i)),!1}throw Error(r(435,a.tag))}return sr(e,l,i),Yu(),!1}if(be)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==tc&&(e=Error(r(422),{cause:l}),ai(qt(e,a)))):(l!==tc&&(t=Error(r(423),{cause:l}),ai(qt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=qt(l,a),i=Hc(e.stateNode,l,i),dc(e,i),Xe!==4&&(Xe=2)),!1;var s=Error(r(520),{cause:l});if(s=qt(s,a),Si===null?Si=[s]:Si.push(s),Xe!==4&&(Xe=2),t===null)return!0;l=qt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Hc(a.stateNode,l,e),dc(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ja===null||!Ja.has(s))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Nd(i),Cd(i,e,a,l),dc(a,i),!1}a=a.return}while(a!==null);return!1}var qc=Error(r(461)),We=!1;function ct(e,t,a,l){t.child=e===null?zf(t,null,a,l):Al(t,e.child,a,l)}function Md(e,t,a,l,i){a=a.render;var s=t.ref;if("ref"in l){var o={};for(var d in l)d!=="ref"&&(o[d]=l[d])}else o=l;return xl(t),l=vc(e,t,a,o,s,i),d=bc(),e!==null&&!We?(xc(e,t,i),Sa(e,t,i)):(be&&d&&Is(t),t.flags|=1,ct(e,t,l,i),t.child)}function jd(e,t,a,l,i){if(e===null){var s=a.type;return typeof s=="function"&&!Fs(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,Od(e,t,s,l,i)):(e=ou(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Vc(e,i)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:In,a(o,l)&&e.ref===t.ref)return Sa(e,t,i)}return t.flags|=1,e=ya(s,l),e.ref=t.ref,e.return=t,t.child=e}function Od(e,t,a,l,i){if(e!==null){var s=e.memoizedProps;if(In(s,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=s,Vc(e,i))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Sa(e,t,i)}return Lc(e,t,a,l,i)}function zd(e,t,a,l){var i=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~s}else l=0,t.child=null;return Rd(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mu(t,s!==null?s.cachePool:null),s!==null?_f(t,s):mc(),Df(t);else return l=t.lanes=536870912,Rd(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(mu(t,s.cachePool),_f(t,s),Xa(),t.memoizedState=null):(e!==null&&mu(t,null),mc(),Xa());return ct(e,t,i,a),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rd(e,t,a,l,i){var s=cc();return s=s===null?null:{parent:$e._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&mu(t,null),mc(),Df(t),e!==null&&en(e,t,l,!0),t.childLanes=i,null}function zu(e,t){return t=wu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wd(e,t,a){return Al(t,e.child,null,a),e=zu(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function u0(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(l.mode==="hidden")return e=zu(t,l),t.lanes=536870912,mi(null,e);if(pc(t),(e=He)?(e=Xh(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:aa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw La(t);return t.lanes=536870912,null}return zu(t,l)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(pc(t),i)if(t.flags&256)t.flags&=-257,t=wd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||en(e,t,a,!1),i=(a&e.childLanes)!==0,We||i){if(l=Ue,l!==null&&(o=So(l,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,pl(e,o),Tt(l,e,o),qc;Yu(),t=wd(e,t,a)}else e=s.treeContext,He=Qt(o.nextSibling),ut=t,be=!0,qa=null,Gt=!1,e!==null&&vf(t,e),t=zu(t,l),t.flags|=4096;return t}return e=ya(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ru(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Lc(e,t,a,l,i){return xl(t),a=vc(e,t,a,l,void 0,i),l=bc(),e!==null&&!We?(xc(e,t,i),Sa(e,t,i)):(be&&l&&Is(t),t.flags|=1,ct(e,t,a,i),t.child)}function _d(e,t,a,l,i,s){return xl(t),t.updateQueue=null,a=Hf(t,l,a,i),Uf(e),l=bc(),e!==null&&!We?(xc(e,t,s),Sa(e,t,s)):(be&&l&&Is(t),t.flags|=1,ct(e,t,a,s),t.child)}function Dd(e,t,a,l,i){if(xl(t),t.stateNode===null){var s=Fl,o=a.contextType;typeof o=="object"&&o!==null&&(s=st(o)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Uc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},oc(t),o=a.contextType,s.context=typeof o=="object"&&o!==null?st(o):Fl,s.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Dc(t,a,o,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&Uc.enqueueReplaceState(s,s.state,null),ri(t,l,s,i),ci(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,b=Cl(a,d);s.props=b;var M=s.context,_=a.contextType;o=Fl,typeof _=="object"&&_!==null&&(o=st(_));var q=a.getDerivedStateFromProps;_=typeof q=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,_||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||M!==o)&&xd(t,s,l,o),Ga=!1;var j=t.memoizedState;s.state=j,ri(t,l,s,i),ci(),M=t.memoizedState,d||j!==M||Ga?(typeof q=="function"&&(Dc(t,a,q,l),M=t.memoizedState),(b=Ga||bd(t,a,b,l,j,M,o))?(_||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),s.props=l,s.state=M,s.context=o,l=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,fc(e,t),o=t.memoizedProps,_=Cl(a,o),s.props=_,q=t.pendingProps,j=s.context,M=a.contextType,b=Fl,typeof M=="object"&&M!==null&&(b=st(M)),d=a.getDerivedStateFromProps,(M=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==q||j!==b)&&xd(t,s,l,b),Ga=!1,j=t.memoizedState,s.state=j,ri(t,l,s,i),ci();var O=t.memoizedState;o!==q||j!==O||Ga||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof d=="function"&&(Dc(t,a,d,l),O=t.memoizedState),(_=Ga||bd(t,a,_,l,j,O,b)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(M||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,O,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,O,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),s.props=l,s.state=O,s.context=b,l=_):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Ru(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,i),t.child=Al(t,null,a,i)):ct(e,t,a,i),t.memoizedState=s.state,e=t.child):e=Sa(e,t,i),e}function Ud(e,t,a,l){return vl(),t.flags|=256,ct(e,t,a,l),t.child}var Bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Af()}}function Yc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function Hd(e,t,a){var l=t.pendingProps,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(i?ka(t):Xa(),(e=He)?(e=Xh(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:aa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw La(t);return Er(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,i?(Xa(),i=t.mode,d=wu({mode:"hidden",children:d},i),l=gl(l,i,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Bc,mi(null,l)):(ka(t),Qc(t,d))}var b=e.memoizedState;if(b!==null&&(d=b.dehydrated,d!==null)){if(s)t.flags&256?(ka(t),t.flags&=-257,t=kc(e,t,a)):t.memoizedState!==null?(Xa(),t.child=e.child,t.flags|=128,t=null):(Xa(),d=l.fallback,i=t.mode,l=wu({mode:"visible",children:l.children},i),d=gl(d,i,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Al(t,e.child,null,a),l=t.child,l.memoizedState=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Bc,t=mi(null,l));else if(ka(t),Er(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var M=o.dgst;o=M,l=Error(r(419)),l.stack="",l.digest=o,ai({value:l,source:null,stack:null}),t=kc(e,t,a)}else if(We||en(e,t,a,!1),o=(a&e.childLanes)!==0,We||o){if(o=Ue,o!==null&&(l=So(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,pl(e,l),Tt(o,e,l),qc;Tr(d)||Yu(),t=kc(e,t,a)}else Tr(d)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,He=Qt(d.nextSibling),ut=t,be=!0,qa=null,Gt=!1,e!==null&&vf(t,e),t=Qc(t,l.children),t.flags|=4096);return t}return i?(Xa(),d=l.fallback,i=t.mode,b=e.child,M=b.sibling,l=ya(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,M!==null?d=ya(M,d):(d=gl(d,i,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,mi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Gc(a):(i=d.cachePool,i!==null?(b=$e._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=Af(),d={baseLanes:d.baseLanes|a,cachePool:i}),l.memoizedState=d,l.childLanes=Yc(e,o,a),t.memoizedState=Bc,mi(e.child,l)):(ka(t),a=e.child,e=a.sibling,a=ya(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function Qc(e,t){return t=wu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wu(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function kc(e,t,a){return Al(t,e.child,null,a),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),nc(e.return,t,a)}function Xc(e,t,a,l,i,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=i,o.treeForkCount=s)}function Ld(e,t,a){var l=t.pendingProps,i=l.revealOrder,s=l.tail;l=l.children;var o=Ke.current,d=(o&2)!==0;if(d?(o=o&1|2,t.flags|=128):o&=1,Z(Ke,o),ct(e,t,l,a),l=be?ti:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qd(e,a,t);else if(e.tag===19)qd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&xu(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Xc(t,!1,i,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xu(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Xc(t,!0,a,null,s,l);break;case"together":Xc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Sa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(en(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=ya(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ya(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Vc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function s0(e,t,a){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),Ba(t,$e,e.memoizedState.cache),vl();break;case 27:case 5:ea(t);break;case 4:Ze(t,t.stateNode.containerInfo);break;case 10:Ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ka(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Hd(e,t,a):(ka(t),e=Sa(e,t,a),e!==null?e.sibling:null);ka(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(en(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return Ld(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Z(Ke,Ke.current),l)break;return null;case 22:return t.lanes=0,zd(e,t,a,t.pendingProps);case 24:Ba(t,$e,e.memoizedState.cache)}return Sa(e,t,a)}function Bd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Vc(e,a)&&(t.flags&128)===0)return We=!1,s0(e,t,a);We=(e.flags&131072)!==0}else We=!1,be&&(t.flags&1048576)!==0&&gf(t,ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tl(t.elementType),t.type=e,typeof e=="function")Fs(e)?(l=Cl(e,l),t.tag=1,t=Dd(null,t,e,l,a)):(t.tag=0,t=Lc(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=Md(null,t,e,l,a);break e}else if(i===W){t.tag=14,t=jd(null,t,e,l,a);break e}}throw t=Ae(e)||e,Error(r(306,t,""))}}return t;case 0:return Lc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=Cl(l,t.pendingProps),Dd(e,t,l,i,a);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var s=t.memoizedState;i=s.element,fc(e,t),ri(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Ba(t,$e,l),l!==s.cache&&ic(t,[$e],a,!0),ci(),l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Ud(e,t,l,a);break e}else if(l!==i){i=qt(Error(r(424)),t),ai(i),t=Ud(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Qt(e.firstChild),ut=t,be=!0,qa=null,Gt=!0,a=zf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),l===i){t=Sa(e,t,a);break e}ct(e,t,l,a)}t=t.child}return t;case 26:return Ru(e,t),e===null?(a=Fh(t.type,null,t.pendingProps,null))?t.memoizedState=a:be||(a=t.type,e=t.pendingProps,l=Ju(re.current).createElement(a),l[it]=t,l[pt]=e,rt(l,a,e),at(l),t.stateNode=l):t.memoizedState=Fh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ea(t),e===null&&be&&(l=t.stateNode=Kh(t.type,t.pendingProps,re.current),ut=t,Gt=!0,i=He,Pa(t.type)?(Ar=i,He=Qt(l.firstChild)):He=i),ct(e,t,t.pendingProps.children,a),Ru(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((i=l=He)&&(l=q0(l,t.type,t.pendingProps,Gt),l!==null?(t.stateNode=l,ut=t,He=Qt(l.firstChild),Gt=!1,i=!0):i=!1),i||La(t)),ea(t),i=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,br(i,s)?l=null:o!==null&&br(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=vc(e,t,Pp,null,null,a),Oi._currentValue=i),Ru(e,t),ct(e,t,l,a),t.child;case 6:return e===null&&be&&((e=a=He)&&(a=L0(a,t.pendingProps,Gt),a!==null?(t.stateNode=a,ut=t,He=null,e=!0):e=!1),e||La(t)),null;case 13:return Hd(e,t,a);case 4:return Ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,a):ct(e,t,l,a),t.child;case 11:return Md(e,t,t.type,t.pendingProps,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ba(t,t.type,l.value),ct(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,xl(t),i=st(i),l=l(i),t.flags|=1,ct(e,t,l,a),t.child;case 14:return jd(e,t,t.type,t.pendingProps,a);case 15:return Od(e,t,t.type,t.pendingProps,a);case 19:return Ld(e,t,a);case 31:return u0(e,t,a);case 22:return zd(e,t,a,t.pendingProps);case 24:return xl(t),l=st($e),e===null?(i=cc(),i===null&&(i=Ue,s=uc(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=a),i=s),t.memoizedState={parent:l,cache:i},oc(t),Ba(t,$e,i)):((e.lanes&a)!==0&&(fc(e,t),ri(t,null,null,a),ci()),i=e.memoizedState,s=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ba(t,$e,l)):(l=s.cache,Ba(t,$e,l),l!==i.cache&&ic(t,[$e],a,!0))),ct(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ta(e){e.flags|=4}function Zc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(dh())e.flags|=8192;else throw El=pu,rc}else e.flags&=-16777217}function Gd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tm(t))if(dh())e.flags|=8192;else throw El=pu,rc}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?vo():536870912,e.lanes|=t,hn|=t)}function yi(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function c0(e,t,a){var l=t.pendingProps;switch(ec(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),va($e),De(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Il(t)?Ta(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ac())),qe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(Ta(t),s!==null?(qe(t),Gd(t,s)):(qe(t),Zc(t,i,null,l,a))):s?s!==e.memoizedState?(Ta(t),qe(t),Gd(t,s)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ta(t),qe(t),Zc(t,i,e,l,a)),null;case 27:if(oa(t),a=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=$.current,Il(t)?bf(t):(e=Kh(i,l,a),t.stateNode=e,Ta(t))}return qe(t),null;case 5:if(oa(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(s=$.current,Il(t))bf(t);else{var o=Ju(re.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?o.createElement(i,{is:l.is}):o.createElement(i)}}s[it]=t,s[pt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(rt(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ta(t)}}return qe(t),Zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=re.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=ut,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[it]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Hh(e.nodeValue,a)),e||La(t,!0)}else e=Ju(e).createTextNode(l),e[it]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Il(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Il(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[it]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_u(t,t.updateQueue),qe(t),null);case 4:return De(),e===null&&mr(t.stateNode.containerInfo),qe(t),null;case 10:return va(t.type),qe(t),null;case 19:if(w(Ke),l=t.memoizedState,l===null)return qe(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)yi(l,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=xu(e),s!==null){for(t.flags|=128,yi(l,!1),e=s.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)mf(a,e),a=a.sibling;return Z(Ke,Ke.current&1|2),be&&pa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ie()>Lu&&(t.flags|=128,i=!0,yi(l,!1),t.lanes=4194304)}else{if(!i)if(e=xu(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),yi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!be)return qe(t),null}else 2*Ie()-l.renderingStartTime>Lu&&a!==536870912&&(t.flags|=128,i=!0,yi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ie(),e.sibling=null,a=Ke.current,Z(Ke,i?a&1|2:a&1),be&&pa(t,l.treeForkCount),e):(qe(t),null);case 22:case 23:return jt(t),yc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&_u(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&w(Sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),va($e),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function r0(e,t){switch(ec(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va($e),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oa(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(r(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(Ke),null;case 4:return De(),null;case 10:return va(t.type),null;case 22:case 23:return jt(t),yc(),e!==null&&w(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va($e),null;case 25:return null;default:return null}}function Yd(e,t){switch(ec(t),t.tag){case 3:va($e),De();break;case 26:case 27:case 5:oa(t);break;case 4:De();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:w(Ke);break;case 10:va(t.type);break;case 22:case 23:jt(t),yc(),e!==null&&w(Sl);break;case 24:va($e)}}function pi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var s=a.create,o=a.inst;l=s(),o.destroy=l}a=a.next}while(a!==i)}}catch(d){Ce(t,t.return,d)}}function Va(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){var o=l.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,i=t;var b=a,M=d;try{M()}catch(_){Ce(i,b,_)}}}l=l.next}while(l!==s)}}catch(_){Ce(t,t.return,_)}}function Qd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{wf(t,a)}catch(l){Ce(e,e.return,l)}}}function kd(e,t,a){a.props=Cl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function gi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ce(e,t,i)}}function na(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ce(e,t,i)}else a.current=null}function Xd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ce(e,e.return,i)}}function Kc(e,t,a){try{var l=e.stateNode;R0(l,e.type,a,t),l[pt]=t}catch(i){Ce(e,e.return,i)}}function Vd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pa(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Pa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ha));else if(l!==4&&(l===27&&Pa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,a),e=e.sibling;e!==null;)$c(e,t,a),e=e.sibling}function Du(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Pa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Du(e,t,a),e=e.sibling;e!==null;)Du(e,t,a),e=e.sibling}function Zd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rt(t,l,a),t[it]=e,t[pt]=a}catch(s){Ce(e,e.return,s)}}var Ea=!1,Pe=!1,Fc=!1,Kd=typeof WeakSet=="function"?WeakSet:Set,lt=null;function o0(e,t){if(e=e.containerInfo,gr=ts,e=nf(e),ks(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var o=0,d=-1,b=-1,M=0,_=0,q=e,j=null;t:for(;;){for(var O;q!==a||i!==0&&q.nodeType!==3||(d=o+i),q!==s||l!==0&&q.nodeType!==3||(b=o+l),q.nodeType===3&&(o+=q.nodeValue.length),(O=q.firstChild)!==null;)j=q,q=O;for(;;){if(q===e)break t;if(j===a&&++M===i&&(d=o),j===s&&++_===l&&(b=o),(O=q.nextSibling)!==null)break;q=j,j=q.parentNode}q=O}a=d===-1||b===-1?null:{start:d,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(vr={focusedElem:e,selectionRange:a},ts=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,i=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var P=Cl(a.type,i);e=l.getSnapshotBeforeUpdate(P,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ce(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Sr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function Jd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Na(e,a),l&4&&pi(5,a);break;case 1:if(Na(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Ce(a,a.return,o)}else{var i=Cl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ce(a,a.return,o)}}l&64&&Qd(a),l&512&&gi(a,a.return);break;case 3:if(Na(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{wf(e,t)}catch(o){Ce(a,a.return,o)}}break;case 27:t===null&&l&4&&Zd(a);case 26:case 5:Na(e,a),t===null&&l&4&&Xd(a),l&512&&gi(a,a.return);break;case 12:Na(e,a);break;case 31:Na(e,a),l&4&&Wd(e,a);break;case 13:Na(e,a),l&4&&Pd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=b0.bind(null,a),B0(e,a))));break;case 22:if(l=a.memoizedState!==null||Ea,!l){t=t!==null&&t.memoizedState!==null||Pe,i=Ea;var s=Pe;Ea=l,(Pe=t)&&!s?Ca(e,a,(a.subtreeFlags&8772)!==0):Na(e,a),Ea=i,Pe=s}break;case 30:break;default:Na(e,a)}}function $d(e){var t=e.alternate;t!==null&&(e.alternate=null,$d(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,vt=!1;function Aa(e,t,a){for(a=a.child;a!==null;)Fd(e,t,a),a=a.sibling}function Fd(e,t,a){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Yn,a)}catch{}switch(a.tag){case 26:Pe||na(a,t),Aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pe||na(a,t);var l=Ye,i=vt;Pa(a.type)&&(Ye=a.stateNode,vt=!1),Aa(e,t,a),Ci(a.stateNode),Ye=l,vt=i;break;case 5:Pe||na(a,t);case 6:if(l=Ye,i=vt,Ye=null,Aa(e,t,a),Ye=l,vt=i,Ye!==null)if(vt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(s){Ce(a,t,s)}else try{Ye.removeChild(a.stateNode)}catch(s){Ce(a,t,s)}break;case 18:Ye!==null&&(vt?(e=Ye,Qh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Sn(e)):Qh(Ye,a.stateNode));break;case 4:l=Ye,i=vt,Ye=a.stateNode.containerInfo,vt=!0,Aa(e,t,a),Ye=l,vt=i;break;case 0:case 11:case 14:case 15:Va(2,a,t),Pe||Va(4,a,t),Aa(e,t,a);break;case 1:Pe||(na(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&kd(a,t,l)),Aa(e,t,a);break;case 21:Aa(e,t,a);break;case 22:Pe=(l=Pe)||a.memoizedState!==null,Aa(e,t,a),Pe=l;break;default:Aa(e,t,a)}}function Wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sn(e)}catch(a){Ce(t,t.return,a)}}}function Pd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sn(e)}catch(a){Ce(t,t.return,a)}}function f0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kd),t;default:throw Error(r(435,e.tag))}}function Uu(e,t){var a=f0(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=x0.bind(null,e,l);l.then(i,i)}})}function bt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],s=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(Pa(d.type)){Ye=d.stateNode,vt=!1;break e}break;case 5:Ye=d.stateNode,vt=!1;break e;case 3:case 4:Ye=d.stateNode.containerInfo,vt=!0;break e}d=d.return}if(Ye===null)throw Error(r(160));Fd(s,o,i),Ye=null,vt=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Id(t,e),t=t.sibling}var Kt=null;function Id(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),xt(e),l&4&&(Va(3,e,e.return),pi(3,e),Va(5,e,e.return));break;case 1:bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),l&64&&Ea&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Kt;if(bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":s=i.getElementsByTagName("title")[0],(!s||s[Xn]||s[it]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(l),i.head.insertBefore(s,i.querySelector("head > title"))),rt(s,l,a),s[it]=e,at(s),l=s;break e;case"link":var o=Ih("link","href",i).get(l+(a.href||""));if(o){for(var d=0;d<o.length;d++)if(s=o[d],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(d,1);break t}}s=i.createElement(l),rt(s,l,a),i.head.appendChild(s);break;case"meta":if(o=Ih("meta","content",i).get(l+(a.content||""))){for(d=0;d<o.length;d++)if(s=o[d],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(d,1);break t}}s=i.createElement(l),rt(s,l,a),i.head.appendChild(s);break;default:throw Error(r(468,l))}s[it]=e,at(s),l=s}e.stateNode=l}else em(i,e.type,e.stateNode);else e.stateNode=Ph(i,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?em(i,e.type,e.stateNode):Ph(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,a.memoizedProps)}break;case 27:bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),a!==null&&l&4&&Kc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),e.flags&32){i=e.stateNode;try{kl(i,"")}catch(P){Ce(e,e.return,P)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Kc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(Fc=!0);break;case 6:if(bt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){Ce(e,e.return,P)}}break;case 3:if(Wu=null,i=Kt,Kt=$u(t.containerInfo),bt(t,e),Kt=i,xt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Sn(t.containerInfo)}catch(P){Ce(e,e.return,P)}Fc&&(Fc=!1,eh(e));break;case 4:l=Kt,Kt=$u(e.stateNode.containerInfo),bt(t,e),xt(e),Kt=l;break;case 12:bt(t,e),xt(e);break;case 31:bt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 13:bt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qu=Ie()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 22:i=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,M=Ea,_=Pe;if(Ea=M||i,Pe=_||b,bt(t,e),Pe=_,Ea=M,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||b||Ea||Pe||Ml(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(s=b.stateNode,i)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=b.stateNode;var q=b.memoizedProps.style,j=q!=null&&q.hasOwnProperty("display")?q.display:null;d.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(P){Ce(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(P){Ce(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var O=b.stateNode;i?kh(O,!0):kh(b.stateNode,!1)}catch(P){Ce(b,b.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Uu(e,a))));break;case 19:bt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 30:break;case 21:break;default:bt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Vd(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var i=a.stateNode,s=Jc(e);Du(e,s,i);break;case 5:var o=a.stateNode;a.flags&32&&(kl(o,""),a.flags&=-33);var d=Jc(e);Du(e,d,o);break;case 3:case 4:var b=a.stateNode.containerInfo,M=Jc(e);$c(e,M,b);break;default:throw Error(r(161))}}catch(_){Ce(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jd(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Va(4,t,t.return),Ml(t);break;case 1:na(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&kd(t,t.return,a),Ml(t);break;case 27:Ci(t.stateNode);case 26:case 5:na(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function Ca(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Ca(i,s,a),pi(4,s);break;case 1:if(Ca(i,s,a),l=s,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Ce(l,l.return,M)}if(l=s,i=l.updateQueue,i!==null){var d=l.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)Rf(b[i],d)}catch(M){Ce(l,l.return,M)}}a&&o&64&&Qd(s),gi(s,s.return);break;case 27:Zd(s);case 26:case 5:Ca(i,s,a),a&&l===null&&o&4&&Xd(s),gi(s,s.return);break;case 12:Ca(i,s,a);break;case 31:Ca(i,s,a),a&&o&4&&Wd(i,s);break;case 13:Ca(i,s,a),a&&o&4&&Pd(i,s);break;case 22:s.memoizedState===null&&Ca(i,s,a),gi(s,s.return);break;case 30:break;default:Ca(i,s,a)}t=t.sibling}}function Wc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&li(a))}function Pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)th(e,t,a,l),t=t.sibling}function th(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),i&2048&&pi(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e)));break;case 12:if(i&2048){Jt(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,d=s.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ce(t,t.return,b)}}else Jt(e,t,a,l);break;case 31:Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?Jt(e,t,a,l):vi(e,t):s._visibility&2?Jt(e,t,a,l):(s._visibility|=2,on(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Wc(o,t);break;case 24:Jt(e,t,a,l),i&2048&&Pc(t.alternate,t);break;default:Jt(e,t,a,l)}}function on(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,d=a,b=l,M=o.flags;switch(o.tag){case 0:case 11:case 15:on(s,o,d,b,i),pi(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?on(s,o,d,b,i):vi(s,o):(_._visibility|=2,on(s,o,d,b,i)),i&&M&2048&&Wc(o.alternate,o);break;case 24:on(s,o,d,b,i),i&&M&2048&&Pc(o.alternate,o);break;default:on(s,o,d,b,i)}t=t.sibling}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:vi(a,l),i&2048&&Wc(l.alternate,l);break;case 24:vi(a,l),i&2048&&Pc(l.alternate,l);break;default:vi(a,l)}t=t.sibling}}var bi=8192;function fn(e,t,a){if(e.subtreeFlags&bi)for(e=e.child;e!==null;)ah(e,t,a),e=e.sibling}function ah(e,t,a){switch(e.tag){case 26:fn(e,t,a),e.flags&bi&&e.memoizedState!==null&&W0(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:fn(e,t,a);break;case 3:case 4:var l=Kt;Kt=$u(e.stateNode.containerInfo),fn(e,t,a),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=bi,bi=16777216,fn(e,t,a),bi=l):fn(e,t,a));break;default:fn(e,t,a)}}function lh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];lt=l,ih(l,e)}lh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nh(e),e=e.sibling}function nh(e){switch(e.tag){case 0:case 11:case 15:xi(e),e.flags&2048&&Va(9,e,e.return);break;case 3:xi(e);break;case 12:xi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hu(e)):xi(e);break;default:xi(e)}}function Hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];lt=l,ih(l,e)}lh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Va(8,t,t.return),Hu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Hu(t));break;default:Hu(t)}e=e.sibling}}function ih(e,t){for(;lt!==null;){var a=lt;switch(a.tag){case 0:case 11:case 15:Va(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:li(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,lt=l;else e:for(a=e;lt!==null;){l=lt;var i=l.sibling,s=l.return;if($d(l),l===a){lt=null;break e}if(i!==null){i.return=s,lt=i;break e}lt=s}}}var d0={getCacheForType:function(e){var t=st($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return st($e).controller.signal}},h0=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Ue=null,ye=null,ge=0,Ne=0,Ot=null,Za=!1,dn=!1,Ic=!1,Ma=0,Xe=0,Ka=0,jl=0,er=0,zt=0,hn=0,Si=null,St=null,tr=!1,qu=0,uh=0,Lu=1/0,Bu=null,Ja=null,et=0,$a=null,mn=null,ja=0,ar=0,lr=null,sh=null,Ti=0,nr=null;function Rt(){return(Ee&2)!==0&&ge!==0?ge&-ge:R.T!==null?or():To()}function ch(){if(zt===0)if((ge&536870912)===0||be){var e=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),zt=e}else zt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),zt}function Tt(e,t,a){(e===Ue&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(yn(e,0),Fa(e,ge,zt,!1)),kn(e,a),((Ee&2)===0||e!==Ue)&&(e===Ue&&((Ee&2)===0&&(jl|=a),Xe===4&&Fa(e,ge,zt,!1)),ia(e))}function rh(e,t,a){if((Ee&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Qn(e,t),i=l?p0(e,t):ur(e,t,!0),s=l;do{if(i===0){dn&&!l&&Fa(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!m0(a)){i=ur(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var d=e;i=Si;var b=d.current.memoizedState.isDehydrated;if(b&&(yn(d,o).flags|=256),o=ur(d,o,!1),o!==2){if(Ic&&!b){d.errorRecoveryDisabledLanes|=s,jl|=s,i=4;break e}s=St,St=i,s!==null&&(St===null?St=s:St.push.apply(St,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){yn(e,0),Fa(e,t,0,!0);break}e:{switch(l=e,s=i,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Fa(l,t,zt,!Za);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=qu+300-Ie(),10<i)){if(Fa(l,t,zt,!Za),$i(l,0,!0)!==0)break e;ja=t,l.timeoutHandle=Gh(oh.bind(null,l,a,St,Bu,tr,t,zt,jl,hn,Za,s,"Throttled",-0,0),i);break e}oh(l,a,St,Bu,tr,t,zt,jl,hn,Za,s,null,-0,0)}}break}while(!0);ia(e)}function oh(e,t,a,l,i,s,o,d,b,M,_,q,j,O){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},ah(t,s,q);var P=(s&62914560)===s?qu-Ie():(s&4194048)===s?uh-Ie():0;if(P=P0(q,P),P!==null){ja=s,e.cancelPendingCommit=P(vh.bind(null,e,t,s,a,l,i,o,d,b,_,q,null,j,O)),Fa(e,s,o,!M);return}}vh(e,t,s,a,l,i,o,d,b)}function m0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],s=i.getSnapshot;i=i.value;try{if(!Nt(s(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fa(e,t,a,l){t&=~er,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var s=31-At(i),o=1<<s;l[s]=-1,i&=~o}a!==0&&bo(e,a,t)}function Gu(){return(Ee&6)===0?(Ei(0),!1):!0}function ir(){if(ye!==null){if(Ne===0)var e=ye.return;else e=ye,ga=bl=null,Sc(e),nn=null,ii=0,e=ye;for(;e!==null;)Yd(e.alternate,e),e=e.return;ye=null}}function yn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,D0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ja=0,ir(),Ue=e,ye=a=ya(e.current,null),ge=t,Ne=0,Ot=null,Za=!1,dn=Qn(e,t),Ic=!1,hn=zt=er=jl=Ka=Xe=0,St=Si=null,tr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-At(l),s=1<<i;t|=e[i],l&=~s}return Ma=t,su(),a}function fh(e,t){de=null,R.H=hi,t===ln||t===yu?(t=Mf(),Ne=3):t===rc?(t=Mf(),Ne=4):Ne=t===qc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,ye===null&&(Xe=1,Ou(e,qt(t,e.current)))}function dh(){var e=Mt.current;return e===null?!0:(ge&4194048)===ge?Yt===null:(ge&62914560)===ge||(ge&536870912)!==0?e===Yt:!1}function hh(){var e=R.H;return R.H=hi,e===null?hi:e}function mh(){var e=R.A;return R.A=d0,e}function Yu(){Xe=4,Za||(ge&4194048)!==ge&&Mt.current!==null||(dn=!0),(Ka&134217727)===0&&(jl&134217727)===0||Ue===null||Fa(Ue,ge,zt,!1)}function ur(e,t,a){var l=Ee;Ee|=2;var i=hh(),s=mh();(Ue!==e||ge!==t)&&(Bu=null,yn(e,t)),t=!1;var o=Xe;e:do try{if(Ne!==0&&ye!==null){var d=ye,b=Ot;switch(Ne){case 8:ir(),o=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var M=Ne;if(Ne=0,Ot=null,pn(e,d,b,M),a&&dn){o=0;break e}break;default:M=Ne,Ne=0,Ot=null,pn(e,d,b,M)}}y0(),o=Xe;break}catch(_){fh(e,_)}while(!0);return t&&e.shellSuspendCounter++,ga=bl=null,Ee=l,R.H=i,R.A=s,ye===null&&(Ue=null,ge=0,su()),o}function y0(){for(;ye!==null;)yh(ye)}function p0(e,t){var a=Ee;Ee|=2;var l=hh(),i=mh();Ue!==e||ge!==t?(Bu=null,Lu=Ie()+500,yn(e,t)):dn=Qn(e,t);e:do try{if(Ne!==0&&ye!==null){t=ye;var s=Ot;t:switch(Ne){case 1:Ne=0,Ot=null,pn(e,t,s,1);break;case 2:case 9:if(Nf(s)){Ne=0,Ot=null,ph(t);break}t=function(){Ne!==2&&Ne!==9||Ue!==e||(Ne=7),ia(e)},s.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Nf(s)?(Ne=0,Ot=null,ph(t)):(Ne=0,Ot=null,pn(e,t,s,7));break;case 5:var o=null;switch(ye.tag){case 26:o=ye.memoizedState;case 5:case 27:var d=ye;if(o?tm(o):d.stateNode.complete){Ne=0,Ot=null;var b=d.sibling;if(b!==null)ye=b;else{var M=d.return;M!==null?(ye=M,Qu(M)):ye=null}break t}}Ne=0,Ot=null,pn(e,t,s,5);break;case 6:Ne=0,Ot=null,pn(e,t,s,6);break;case 8:ir(),Xe=6;break e;default:throw Error(r(462))}}g0();break}catch(_){fh(e,_)}while(!0);return ga=bl=null,R.H=l,R.A=i,Ee=a,ye!==null?0:(Ue=null,ge=0,su(),Xe)}function g0(){for(;ye!==null&&!L();)yh(ye)}function yh(e){var t=Bd(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?Qu(e):ye=t}function ph(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=_d(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=_d(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Sc(t);default:Yd(a,t),t=ye=mf(t,Ma),t=Bd(a,t,Ma)}e.memoizedProps=e.pendingProps,t===null?Qu(e):ye=t}function pn(e,t,a,l){ga=bl=null,Sc(t),nn=null,ii=0;var i=t.return;try{if(i0(e,i,t,a,ge)){Xe=1,Ou(e,qt(a,e.current)),ye=null;return}}catch(s){if(i!==null)throw ye=i,s;Xe=1,Ou(e,qt(a,e.current)),ye=null;return}t.flags&32768?(be||l===1?e=!0:dn||(ge&536870912)!==0?e=!1:(Za=e=!0,(l===2||l===9||l===3||l===6)&&(l=Mt.current,l!==null&&l.tag===13&&(l.flags|=16384))),gh(t,e)):Qu(t)}function Qu(e){var t=e;do{if((t.flags&32768)!==0){gh(t,Za);return}e=t.return;var a=c0(t.alternate,t,Ma);if(a!==null){ye=a;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Xe===0&&(Xe=5)}function gh(e,t){do{var a=r0(e.alternate,e);if(a!==null){a.flags&=32767,ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=a}while(e!==null);Xe=6,ye=null}function vh(e,t,a,l,i,s,o,d,b){e.cancelPendingCommit=null;do ku();while(et!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=Js,Fy(e,a,s,o,d,b),e===Ue&&(ye=Ue=null,ge=0),mn=t,$a=e,ja=a,ar=s,lr=i,sh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,S0(Vi,function(){return Eh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,i=G.p,G.p=2,o=Ee,Ee|=4;try{o0(e,t,a)}finally{Ee=o,G.p=i,R.T=l}}et=1,bh(),xh(),Sh()}}function bh(){if(et===1){et=0;var e=$a,t=mn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=G.p;G.p=2;var i=Ee;Ee|=4;try{Id(t,e);var s=vr,o=nf(e.containerInfo),d=s.focusedElem,b=s.selectionRange;if(o!==d&&d&&d.ownerDocument&&lf(d.ownerDocument.documentElement,d)){if(b!==null&&ks(d)){var M=b.start,_=b.end;if(_===void 0&&(_=M),"selectionStart"in d)d.selectionStart=M,d.selectionEnd=Math.min(_,d.value.length);else{var q=d.ownerDocument||document,j=q&&q.defaultView||window;if(j.getSelection){var O=j.getSelection(),P=d.textContent.length,ie=Math.min(b.start,P),Re=b.end===void 0?ie:Math.min(b.end,P);!O.extend&&ie>Re&&(o=Re,Re=ie,ie=o);var A=af(d,ie),T=af(d,Re);if(A&&T&&(O.rangeCount!==1||O.anchorNode!==A.node||O.anchorOffset!==A.offset||O.focusNode!==T.node||O.focusOffset!==T.offset)){var C=q.createRange();C.setStart(A.node,A.offset),O.removeAllRanges(),ie>Re?(O.addRange(C),O.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),O.addRange(C))}}}}for(q=[],O=d;O=O.parentNode;)O.nodeType===1&&q.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<q.length;d++){var H=q[d];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}ts=!!gr,vr=gr=null}finally{Ee=i,G.p=l,R.T=a}}e.current=t,et=2}}function xh(){if(et===2){et=0;var e=$a,t=mn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=G.p;G.p=2;var i=Ee;Ee|=4;try{Jd(e,t.alternate,t)}finally{Ee=i,G.p=l,R.T=a}}et=3}}function Sh(){if(et===4||et===3){et=0,je();var e=$a,t=mn,a=ja,l=sh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,mn=$a=null,Th(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ja=null),As(a),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Yn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,i=G.p,G.p=2,R.T=null;try{for(var s=e.onRecoverableError,o=0;o<l.length;o++){var d=l[o];s(d.value,{componentStack:d.stack})}}finally{R.T=t,G.p=i}}(ja&3)!==0&&ku(),ia(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===nr?Ti++:(Ti=0,nr=e):Ti=0,Ei(0)}}function Th(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function ku(){return bh(),xh(),Sh(),Eh()}function Eh(){if(et!==5)return!1;var e=$a,t=ar;ar=0;var a=As(ja),l=R.T,i=G.p;try{G.p=32>a?32:a,R.T=null,a=lr,lr=null;var s=$a,o=ja;if(et=0,mn=$a=null,ja=0,(Ee&6)!==0)throw Error(r(331));var d=Ee;if(Ee|=4,nh(s.current),th(s,s.current,o,a),Ee=d,Ei(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Yn,s)}catch{}return!0}finally{G.p=i,R.T=l,Th(e,t)}}function Ah(e,t,a){t=qt(a,t),t=Hc(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(kn(e,2),ia(e))}function Ce(e,t,a){if(e.tag===3)Ah(e,e,a);else for(;t!==null;){if(t.tag===3){Ah(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ja===null||!Ja.has(l))){e=qt(a,e),a=Nd(2),l=Qa(t,a,2),l!==null&&(Cd(a,l,t,e),kn(l,2),ia(l));break}}t=t.return}}function sr(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new h0;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(Ic=!0,i.add(a),e=v0.bind(null,e,t,a),t.then(e,e))}function v0(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(ge&a)===a&&(Xe===4||Xe===3&&(ge&62914560)===ge&&300>Ie()-qu?(Ee&2)===0&&yn(e,0):er|=a,hn===ge&&(hn=0)),ia(e)}function Nh(e,t){t===0&&(t=vo()),e=pl(e,t),e!==null&&(kn(e,t),ia(e))}function b0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Nh(e,a)}function x0(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Nh(e,a)}function S0(e,t){return Gn(e,t)}var Xu=null,gn=null,cr=!1,Vu=!1,rr=!1,Wa=0;function ia(e){e!==gn&&e.next===null&&(gn===null?Xu=gn=e:gn=gn.next=e),Vu=!0,cr||(cr=!0,E0())}function Ei(e,t){if(!rr&&Vu){rr=!0;do for(var a=!1,l=Xu;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var o=l.suspendedLanes,d=l.pingedLanes;s=(1<<31-At(42|e)+1)-1,s&=i&~(o&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Oh(l,s))}else s=ge,s=$i(l,l===Ue?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Qn(l,s)||(a=!0,Oh(l,s));l=l.next}while(a);rr=!1}}function T0(){Ch()}function Ch(){Vu=cr=!1;var e=0;Wa!==0&&_0()&&(e=Wa);for(var t=Ie(),a=null,l=Xu;l!==null;){var i=l.next,s=Mh(l,t);s===0?(l.next=null,a===null?Xu=i:a.next=i,i===null&&(gn=a)):(a=l,(e!==0||(s&3)!==0)&&(Vu=!0)),l=i}et!==0&&et!==5||Ei(e),Wa!==0&&(Wa=0)}function Mh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-At(s),d=1<<o,b=i[o];b===-1?((d&a)===0||(d&l)!==0)&&(i[o]=$y(d,t)):b<=t&&(e.expiredLanes|=d),s&=~d}if(t=Ue,a=ge,a=$i(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Hl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Qn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Hl(l),As(a)){case 2:case 8:a=po;break;case 32:a=Vi;break;case 268435456:a=go;break;default:a=Vi}return l=jh.bind(null,e),a=Gn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Hl(l),e.callbackPriority=2,e.callbackNode=null,2}function jh(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ku()&&e.callbackNode!==a)return null;var l=ge;return l=$i(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(rh(e,l,t),Mh(e,Ie()),e.callbackNode!=null&&e.callbackNode===a?jh.bind(null,e):null)}function Oh(e,t){if(ku())return null;rh(e,t,!0)}function E0(){U0(function(){(Ee&6)!==0?Gn(yo,T0):Ch()})}function or(){if(Wa===0){var e=tn;e===0&&(e=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),Wa=e}return Wa}function zh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ii(""+e)}function Rh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function A0(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var s=zh((i[pt]||null).action),o=l.submitter;o&&(t=(t=o[pt]||null)?zh(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var d=new lu("action","action",null,l,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Wa!==0){var b=o?Rh(i,o):new FormData(i);zc(a,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(d.preventDefault(),b=o?Rh(i,o):new FormData(i),zc(a,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var fr=0;fr<Ks.length;fr++){var dr=Ks[fr],N0=dr.toLowerCase(),C0=dr[0].toUpperCase()+dr.slice(1);Zt(N0,"on"+C0)}Zt(cf,"onAnimationEnd"),Zt(rf,"onAnimationIteration"),Zt(of,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(Qp,"onTransitionRun"),Zt(kp,"onTransitionStart"),Zt(Xp,"onTransitionCancel"),Zt(ff,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),M0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function wh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var o=l.length-1;0<=o;o--){var d=l[o],b=d.instance,M=d.currentTarget;if(d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=M;try{s(i)}catch(_){uu(_)}i.currentTarget=null,s=b}else for(o=0;o<l.length;o++){if(d=l[o],b=d.instance,M=d.currentTarget,d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=M;try{s(i)}catch(_){uu(_)}i.currentTarget=null,s=b}}}}function pe(e,t){var a=t[Ns];a===void 0&&(a=t[Ns]=new Set);var l=e+"__bubble";a.has(l)||(_h(t,e,2,!1),a.add(l))}function hr(e,t,a){var l=0;t&&(l|=4),_h(a,e,l,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function mr(e){if(!e[Zu]){e[Zu]=!0,No.forEach(function(a){a!=="selectionchange"&&(M0.has(a)||hr(a,!1,e),hr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zu]||(t[Zu]=!0,hr("selectionchange",!1,t))}}function _h(e,t,a,l){switch(cm(t)){case 2:var i=tg;break;case 8:i=ag;break;default:i=Or}a=i.bind(null,t,a,e),i=void 0,!Ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function yr(e,t,a,l,i){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var d=l.stateNode.containerInfo;if(d===i)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;d!==null;){if(o=Ll(d),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=s=o;continue e}d=d.parentNode}}l=l.return}qo(function(){var M=s,_=ws(a),q=[];e:{var j=df.get(e);if(j!==void 0){var O=lu,P=e;switch(e){case"keypress":if(tu(a)===0)break e;case"keydown":case"keyup":O=xp;break;case"focusin":P="focus",O=Ls;break;case"focusout":P="blur",O=Ls;break;case"beforeblur":case"afterblur":O=Ls;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Go;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=cp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=Ep;break;case cf:case rf:case of:O=fp;break;case ff:O=Np;break;case"scroll":case"scrollend":O=up;break;case"wheel":O=Mp;break;case"copy":case"cut":case"paste":O=hp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Qo;break;case"toggle":case"beforetoggle":O=Op}var ie=(t&4)!==0,Re=!ie&&(e==="scroll"||e==="scrollend"),A=ie?j!==null?j+"Capture":null:j;ie=[];for(var T=M,C;T!==null;){var H=T;if(C=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||C===null||A===null||(H=Zn(T,A),H!=null&&ie.push(Ni(T,H,C))),Re)break;T=T.return}0<ie.length&&(j=new O(j,P,null,a,_),q.push({event:j,listeners:ie}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",j&&a!==Rs&&(P=a.relatedTarget||a.fromElement)&&(Ll(P)||P[ql]))break e;if((O||j)&&(j=_.window===_?_:(j=_.ownerDocument)?j.defaultView||j.parentWindow:window,O?(P=a.relatedTarget||a.toElement,O=M,P=P?Ll(P):null,P!==null&&(Re=m(P),ie=P.tag,P!==Re||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(O=null,P=M),O!==P)){if(ie=Go,H="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Qo,H="onPointerLeave",A="onPointerEnter",T="pointer"),Re=O==null?j:Vn(O),C=P==null?j:Vn(P),j=new ie(H,T+"leave",O,a,_),j.target=Re,j.relatedTarget=C,H=null,Ll(_)===M&&(ie=new ie(A,T+"enter",P,a,_),ie.target=C,ie.relatedTarget=Re,H=ie),Re=H,O&&P)t:{for(ie=j0,A=O,T=P,C=0,H=A;H;H=ie(H))C++;H=0;for(var le=T;le;le=ie(le))H++;for(;0<C-H;)A=ie(A),C--;for(;0<H-C;)T=ie(T),H--;for(;C--;){if(A===T||T!==null&&A===T.alternate){ie=A;break t}A=ie(A),T=ie(T)}ie=null}else ie=null;O!==null&&Dh(q,j,O,ie,!1),P!==null&&Re!==null&&Dh(q,Re,P,ie,!0)}}e:{if(j=M?Vn(M):window,O=j.nodeName&&j.nodeName.toLowerCase(),O==="select"||O==="input"&&j.type==="file")var Se=Fo;else if(Jo(j))if(Wo)Se=Bp;else{Se=qp;var I=Hp}else O=j.nodeName,!O||O.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?M&&zs(M.elementType)&&(Se=Fo):Se=Lp;if(Se&&(Se=Se(e,M))){$o(q,Se,a,_);break e}I&&I(e,j,M),e==="focusout"&&M&&j.type==="number"&&M.memoizedProps.value!=null&&Os(j,"number",j.value)}switch(I=M?Vn(M):window,e){case"focusin":(Jo(I)||I.contentEditable==="true")&&(Kl=I,Xs=M,ei=null);break;case"focusout":ei=Xs=Kl=null;break;case"mousedown":Vs=!0;break;case"contextmenu":case"mouseup":case"dragend":Vs=!1,uf(q,a,_);break;case"selectionchange":if(Yp)break;case"keydown":case"keyup":uf(q,a,_)}var he;if(Gs)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Zl?Zo(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(ko&&a.locale!=="ko"&&(Zl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Zl&&(he=Lo()):(Ua=_,Us="value"in Ua?Ua.value:Ua.textContent,Zl=!0)),I=Ku(M,ve),0<I.length&&(ve=new Yo(ve,e,null,a,_),q.push({event:ve,listeners:I}),he?ve.data=he:(he=Ko(a),he!==null&&(ve.data=he)))),(he=Rp?wp(e,a):_p(e,a))&&(ve=Ku(M,"onBeforeInput"),0<ve.length&&(I=new Yo("onBeforeInput","beforeinput",null,a,_),q.push({event:I,listeners:ve}),I.data=he)),A0(q,e,M,a,_)}wh(q,t)})}function Ni(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ku(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=Zn(e,a),i!=null&&l.unshift(Ni(e,i,s)),i=Zn(e,t),i!=null&&l.push(Ni(e,i,s))),e.tag===3)return l;e=e.return}return[]}function j0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dh(e,t,a,l,i){for(var s=t._reactName,o=[];a!==null&&a!==l;){var d=a,b=d.alternate,M=d.stateNode;if(d=d.tag,b!==null&&b===l)break;d!==5&&d!==26&&d!==27||M===null||(b=M,i?(M=Zn(a,s),M!=null&&o.unshift(Ni(a,M,b))):i||(M=Zn(a,s),M!=null&&o.push(Ni(a,M,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var O0=/\r\n?/g,z0=/\u0000|\uFFFD/g;function Uh(e){return(typeof e=="string"?e:""+e).replace(O0,`
50
- `).replace(z0,"")}function Hh(e,t){return t=Uh(t),Uh(e)===t}function ze(e,t,a,l,i,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||kl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&kl(e,""+l);break;case"className":Wi(e,"class",l);break;case"tabIndex":Wi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Wi(e,a,l);break;case"style":Uo(e,l,s);break;case"data":if(t!=="object"){Wi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ii(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(t!=="input"&&ze(e,t,"name",i.name,i,null),ze(e,t,"formEncType",i.formEncType,i,null),ze(e,t,"formMethod",i.formMethod,i,null),ze(e,t,"formTarget",i.formTarget,i,null)):(ze(e,t,"encType",i.encType,i,null),ze(e,t,"method",i.method,i,null),ze(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ii(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ha);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ii(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Fi(e,"popover",l);break;case"xlinkActuate":da(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":da(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":da(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":da(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":da(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":da(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":da(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":da(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":da(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Fi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=np.get(a)||a,Fi(e,a,l))}}function pr(e,t,a,l,i,s){switch(a){case"style":Uo(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?kl(e,l):(typeof l=="number"||typeof l=="bigint")&&kl(e,""+l);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Co.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),s=e[pt]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Fi(e,a,l)}}}function rt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var l=!1,i=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,s,o,a,null)}}i&&ze(e,t,"srcSet",a.srcSet,a,null),l&&ze(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var d=s=o=i=null,b=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":i=_;break;case"type":o=_;break;case"checked":b=_;break;case"defaultChecked":M=_;break;case"value":s=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:ze(e,t,l,_,a,null)}}Ro(e,s,d,b,M,o,i,!1);return;case"select":pe("invalid",e),l=o=s=null;for(i in a)if(a.hasOwnProperty(i)&&(d=a[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":o=d;break;case"multiple":l=d;default:ze(e,t,i,d,a,null)}t=s,a=o,e.multiple=!!l,t!=null?Ql(e,!!l,t,!1):a!=null&&Ql(e,!!l,a,!0);return;case"textarea":pe("invalid",e),s=i=l=null;for(o in a)if(a.hasOwnProperty(o)&&(d=a[o],d!=null))switch(o){case"value":l=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:ze(e,t,o,d,a,null)}_o(e,l,i,s);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(e,t,b,l,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(l=0;l<Ai.length;l++)pe(Ai[l],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,M,l,a,null)}return;default:if(zs(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&pr(e,t,_,l,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!=null&&ze(e,t,d,l,a,null))}function R0(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,d=null,b=null,M=null,_=null;for(O in a){var q=a[O];if(a.hasOwnProperty(O)&&q!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":b=q;default:l.hasOwnProperty(O)||ze(e,t,O,null,l,q)}}for(var j in l){var O=l[j];if(q=a[j],l.hasOwnProperty(j)&&(O!=null||q!=null))switch(j){case"type":s=O;break;case"name":i=O;break;case"checked":M=O;break;case"defaultChecked":_=O;break;case"value":o=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:O!==q&&ze(e,t,j,O,l,q)}}js(e,o,d,b,M,_,s,i);return;case"select":O=o=d=j=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":O=b;default:l.hasOwnProperty(s)||ze(e,t,s,null,l,b)}for(i in l)if(s=l[i],b=a[i],l.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":j=s;break;case"defaultValue":d=s;break;case"multiple":o=s;default:s!==b&&ze(e,t,i,s,l,b)}t=d,a=o,l=O,j!=null?Ql(e,!!a,j,!1):!!l!=!!a&&(t!=null?Ql(e,!!a,t,!0):Ql(e,!!a,a?[]:"",!1));return;case"textarea":O=j=null;for(d in a)if(i=a[d],a.hasOwnProperty(d)&&i!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ze(e,t,d,null,l,i)}for(o in l)if(i=l[o],s=a[o],l.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case"value":j=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==s&&ze(e,t,o,i,l,s)}wo(e,j,O);return;case"option":for(var P in a)if(j=a[P],a.hasOwnProperty(P)&&j!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:ze(e,t,P,null,l,j)}for(b in l)if(j=l[b],O=a[b],l.hasOwnProperty(b)&&j!==O&&(j!=null||O!=null))switch(b){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:ze(e,t,b,j,l,O)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)j=a[ie],a.hasOwnProperty(ie)&&j!=null&&!l.hasOwnProperty(ie)&&ze(e,t,ie,null,l,j);for(M in l)if(j=l[M],O=a[M],l.hasOwnProperty(M)&&j!==O&&(j!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:ze(e,t,M,j,l,O)}return;default:if(zs(t)){for(var Re in a)j=a[Re],a.hasOwnProperty(Re)&&j!==void 0&&!l.hasOwnProperty(Re)&&pr(e,t,Re,void 0,l,j);for(_ in l)j=l[_],O=a[_],!l.hasOwnProperty(_)||j===O||j===void 0&&O===void 0||pr(e,t,_,j,l,O);return}}for(var A in a)j=a[A],a.hasOwnProperty(A)&&j!=null&&!l.hasOwnProperty(A)&&ze(e,t,A,null,l,j);for(q in l)j=l[q],O=a[q],!l.hasOwnProperty(q)||j===O||j==null&&O==null||ze(e,t,q,j,l,O)}function qh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],s=i.transferSize,o=i.initiatorType,d=i.duration;if(s&&d&&qh(o)){for(o=0,d=i.responseEnd,l+=1;l<a.length;l++){var b=a[l],M=b.startTime;if(M>d)break;var _=b.transferSize,q=b.initiatorType;_&&qh(q)&&(b=b.responseEnd,o+=_*(b<d?1:(d-M)/(b-M)))}if(--l,t+=8*(s+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var gr=null,vr=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function Lh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function br(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xr=null;function _0(){var e=window.event;return e&&e.type==="popstate"?e===xr?!1:(xr=e,!0):(xr=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,D0=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,U0=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(e){return Yh.resolve(null).then(e).catch(H0)}:Gh;function H0(e){setTimeout(function(){throw e})}function Pa(e){return e==="head"}function Qh(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),Sn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ci(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ci(a);for(var s=a.firstChild;s;){var o=s.nextSibling,d=s.nodeName;s[Xn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&Ci(e.ownerDocument.body);a=i}while(a);Sn(t)}function kh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Sr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Sr(a),Cs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function q0(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Xn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function L0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Qt(e.nextSibling),e===null))return null;return e}function Xh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function Tr(e){return e.data==="$?"||e.data==="$~"}function Er(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function B0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ar=null;function Vh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Qt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Kh(e,t,a){switch(t=Ju(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cs(e)}var kt=new Map,Jh=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=G.d;G.d={f:G0,r:Y0,D:Q0,C:k0,L:X0,m:V0,X:K0,S:Z0,M:J0};function G0(){var e=Oa.f(),t=Gu();return e||t}function Y0(e){var t=Bl(e);t!==null&&t.tag===5&&t.type==="form"?fd(t):Oa.r(e)}var vn=typeof document>"u"?null:document;function $h(e,t,a){var l=vn;if(l&&typeof t=="string"&&t){var i=Ut(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),Jh.has(i)||(Jh.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),rt(t,"link",e),at(t),l.head.appendChild(t)))}}function Q0(e){Oa.D(e),$h("dns-prefetch",e,null)}function k0(e,t){Oa.C(e,t),$h("preconnect",e,t)}function X0(e,t,a){Oa.L(e,t,a);var l=vn;if(l&&e&&t){var i='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Ut(a.imageSizes)+'"]')):i+='[href="'+Ut(e)+'"]';var s=i;switch(t){case"style":s=bn(e);break;case"script":s=xn(e)}kt.has(s)||(e=E({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),kt.set(s,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Mi(s))||t==="script"&&l.querySelector(ji(s))||(t=l.createElement("link"),rt(t,"link",e),at(t),l.head.appendChild(t)))}}function V0(e,t){Oa.m(e,t);var a=vn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=xn(e)}if(!kt.has(s)&&(e=E({rel:"modulepreload",href:e},t),kt.set(s,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ji(s)))return}l=a.createElement("link"),rt(l,"link",e),at(l),a.head.appendChild(l)}}}function Z0(e,t,a){Oa.S(e,t,a);var l=vn;if(l&&e){var i=Gl(l).hoistableStyles,s=bn(e);t=t||"default";var o=i.get(s);if(!o){var d={loading:0,preload:null};if(o=l.querySelector(Mi(s)))d.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},a),(a=kt.get(s))&&Nr(e,a);var b=o=l.createElement("link");at(b),rt(b,"link",e),b._p=new Promise(function(M,_){b.onload=M,b.onerror=_}),b.addEventListener("load",function(){d.loading|=1}),b.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Fu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:d},i.set(s,o)}}}function K0(e,t){Oa.X(e,t);var a=vn;if(a&&e){var l=Gl(a).hoistableScripts,i=xn(e),s=l.get(i);s||(s=a.querySelector(ji(i)),s||(e=E({src:e,async:!0},t),(t=kt.get(i))&&Cr(e,t),s=a.createElement("script"),at(s),rt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function J0(e,t){Oa.M(e,t);var a=vn;if(a&&e){var l=Gl(a).hoistableScripts,i=xn(e),s=l.get(i);s||(s=a.querySelector(ji(i)),s||(e=E({src:e,async:!0,type:"module"},t),(t=kt.get(i))&&Cr(e,t),s=a.createElement("script"),at(s),rt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Fh(e,t,a,l){var i=(i=re.current)?$u(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=bn(a.href),a=Gl(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=bn(a.href);var s=Gl(i).hoistableStyles,o=s.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=i.querySelector(Mi(e)))&&!s._p&&(o.instance=s,o.state.loading=5),kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},kt.set(e,a),s||$0(i,e,a,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xn(a),a=Gl(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function bn(e){return'href="'+Ut(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function Wh(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function $0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),rt(t,"link",a),at(t),e.head.appendChild(t))}function xn(e){return'[src="'+Ut(e)+'"]'}function ji(e){return"script[async]"+e}function Ph(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(l)return t.instance=l,at(l),l;var i=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),at(l),rt(l,"style",i),Fu(l,a.precedence,e),t.instance=l;case"stylesheet":i=bn(a.href);var s=e.querySelector(Mi(i));if(s)return t.state.loading|=4,t.instance=s,at(s),s;l=Wh(a),(i=kt.get(i))&&Nr(l,i),s=(e.ownerDocument||e).createElement("link"),at(s);var o=s;return o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),rt(s,"link",l),t.state.loading|=4,Fu(s,a.precedence,e),t.instance=s;case"script":return s=xn(a.src),(i=e.querySelector(ji(s)))?(t.instance=i,at(i),i):(l=a,(i=kt.get(s))&&(l=E({},a),Cr(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),at(i),rt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Fu(l,a.precedence,e));return t.instance}function Fu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,o=0;o<l.length;o++){var d=l[o];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Nr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wu=null;function Ih(e,t,a){if(Wu===null){var l=new Map,i=Wu=new Map;i.set(a,l)}else i=Wu,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var s=a[i];if(!(s[Xn]||s[it]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var d=l.get(o);d?d.push(s):l.set(o,[s])}}return l}function em(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function F0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function tm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function W0(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=bn(l.href),s=t.querySelector(Mi(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,at(s);return}s=t.ownerDocument||t,l=Wh(l),(i=kt.get(i))&&Nr(l,i),s=s.createElement("link"),at(s);var o=s;o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),rt(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Pu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Mr=0;function P0(e,t){return e.stylesheets&&e.count===0&&es(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&es(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Mr===0&&(Mr=62500*w0());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&es(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Mr?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Iu=null;function es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Iu=new Map,t.forEach(I0,e),Iu=null,Pu.call(e))}function I0(e,t){if(!(t.state.loading&4)){var a=Iu.get(e);if(a)var l=a.get(null);else{a=new Map,Iu.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}i=t.instance,o=i.getAttribute("data-precedence"),s=a.get(o)||l,s===l&&a.set(null,i),a.set(o,i),this.count++,l=Pu.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Oi={$$typeof:B,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function eg(e,t,a,l,i,s,o,d,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ts(0),this.hiddenUpdates=Ts(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function am(e,t,a,l,i,s,o,d,b,M,_,q){return e=new eg(e,t,a,o,b,M,_,q,d),t=1,s===!0&&(t|=24),s=Ct(3,null,null,t),e.current=s,s.stateNode=e,t=uc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},oc(s),e}function lm(e){return e?(e=Fl,e):Fl}function nm(e,t,a,l,i,s){i=lm(i),l.context===null?l.context=i:l.pendingContext=i,l=Ya(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=Qa(e,l,t),a!==null&&(Tt(a,e,t),si(a,e,t))}function im(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function jr(e,t){im(e,t),(e=e.alternate)&&im(e,t)}function um(e){if(e.tag===13||e.tag===31){var t=pl(e,67108864);t!==null&&Tt(t,e,67108864),jr(e,67108864)}}function sm(e){if(e.tag===13||e.tag===31){var t=Rt();t=Es(t);var a=pl(e,t);a!==null&&Tt(a,e,t),jr(e,t)}}var ts=!0;function tg(e,t,a,l){var i=R.T;R.T=null;var s=G.p;try{G.p=2,Or(e,t,a,l)}finally{G.p=s,R.T=i}}function ag(e,t,a,l){var i=R.T;R.T=null;var s=G.p;try{G.p=8,Or(e,t,a,l)}finally{G.p=s,R.T=i}}function Or(e,t,a,l){if(ts){var i=zr(l);if(i===null)yr(e,t,l,as,a),rm(e,l);else if(ng(i,e,t,a,l))l.stopPropagation();else if(rm(e,l),t&4&&-1<lg.indexOf(e)){for(;i!==null;){var s=Bl(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=fl(s.pendingLanes);if(o!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var b=1<<31-At(o);d.entanglements[1]|=b,o&=~b}ia(s),(Ee&6)===0&&(Lu=Ie()+500,Ei(0))}}break;case 31:case 13:d=pl(s,2),d!==null&&Tt(d,s,2),Gu(),jr(s,2)}if(s=zr(l),s===null&&yr(e,t,l,as,a),s===i)break;i=s}i!==null&&l.stopPropagation()}else yr(e,t,l,null,a)}}function zr(e){return e=ws(e),Rr(e)}var as=null;function Rr(e){if(as=null,e=Ll(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return as=e,null}function cm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fa()){case yo:return 2;case po:return 8;case Vi:case ky:return 32;case go:return 268435456;default:return 32}default:return 32}}var wr=!1,Ia=null,el=null,tl=null,zi=new Map,Ri=new Map,al=[],lg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function rm(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ri.delete(t.pointerId)}}function wi(e,t,a,l,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Bl(t),t!==null&&um(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ng(e,t,a,l,i){switch(t){case"focusin":return Ia=wi(Ia,e,t,a,l,i),!0;case"dragenter":return el=wi(el,e,t,a,l,i),!0;case"mouseover":return tl=wi(tl,e,t,a,l,i),!0;case"pointerover":var s=i.pointerId;return zi.set(s,wi(zi.get(s)||null,e,t,a,l,i)),!0;case"gotpointercapture":return s=i.pointerId,Ri.set(s,wi(Ri.get(s)||null,e,t,a,l,i)),!0}return!1}function om(e){var t=Ll(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Eo(e.priority,function(){sm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Eo(e.priority,function(){sm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Rs=l,a.target.dispatchEvent(l),Rs=null}else return t=Bl(a),t!==null&&um(t),e.blockedOn=a,!1;t.shift()}return!0}function fm(e,t,a){ls(e)&&a.delete(t)}function ig(){wr=!1,Ia!==null&&ls(Ia)&&(Ia=null),el!==null&&ls(el)&&(el=null),tl!==null&&ls(tl)&&(tl=null),zi.forEach(fm),Ri.forEach(fm)}function ns(e,t){e.blockedOn===t&&(e.blockedOn=null,wr||(wr=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ig)))}var is=null;function dm(e){is!==e&&(is=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){is===e&&(is=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Rr(l||a)===null)continue;break}var s=Bl(a);s!==null&&(e.splice(t,3),t-=3,zc(s,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Sn(e){function t(b){return ns(b,e)}Ia!==null&&ns(Ia,e),el!==null&&ns(el,e),tl!==null&&ns(tl,e),zi.forEach(t),Ri.forEach(t);for(var a=0;a<al.length;a++){var l=al[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<al.length&&(a=al[0],a.blockedOn===null);)om(a),a.blockedOn===null&&al.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],s=a[l+1],o=i[pt]||null;if(typeof s=="function")o||dm(a);else if(o){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[pt]||null)d=o.formAction;else if(Rr(i)!==null)continue}else d=o.action;typeof d=="function"?a[l+1]=d:(a.splice(l,3),l-=3),dm(a)}}}function hm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function _r(e){this._internalRoot=e}us.prototype.render=_r.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Rt();nm(a,l,e,t,null,null)},us.prototype.unmount=_r.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nm(e.current,2,null,e,null,null),Gu(),t[ql]=null}};function us(e){this._internalRoot=e}us.prototype.unstable_scheduleHydration=function(e){if(e){var t=To();e={blockedOn:null,target:e,priority:t};for(var a=0;a<al.length&&t!==0&&t<al[a].priority;a++);al.splice(a,0,e),a===0&&om(e)}};var mm=u.version;if(mm!=="19.2.4")throw Error(r(527,mm,"19.2.4"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var ug={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{Yn=ss.inject(ug),Et=ss}catch{}}return Di.createRoot=function(e,t){if(!f(e))throw Error(r(299));var a=!1,l="",i=Sd,s=Td,o=Ed;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=am(e,1,!1,null,null,a,l,null,i,s,o,hm),e[ql]=t.current,mr(e),new _r(t)},Di.hydrateRoot=function(e,t,a){if(!f(e))throw Error(r(299));var l=!1,i="",s=Sd,o=Td,d=Ed,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=am(e,1,!0,t,a??null,l,i,b,s,o,d,hm),t.context=lm(null),a=t.current,l=Rt(),l=Es(l),i=Ya(l),i.callback=null,Qa(a,i,l),a=l,t.current.lanes=a,kn(t,a),ia(t),e[ql]=t.current,mr(e),new us(t)},Di.version="19.2.4",Di}var Cm;function bg(){if(Cm)return qr.exports;Cm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),qr.exports=vg(),qr.exports}var xg=bg();/**
49
+ `+l.stack}}var Ul=Object.prototype.hasOwnProperty,Gn=n.unstable_scheduleCallback,Hl=n.unstable_cancelCallback,L=n.unstable_shouldYield,Oe=n.unstable_requestPaint,Ie=n.unstable_now,fa=n.unstable_getCurrentPriorityLevel,po=n.unstable_ImmediatePriority,go=n.unstable_UserBlockingPriority,Vi=n.unstable_NormalPriority,ky=n.unstable_LowPriority,vo=n.unstable_IdlePriority,Xy=n.log,Vy=n.unstable_setDisableYieldValue,Yn=null,Et=null;function _a(e){if(typeof Xy=="function"&&Vy(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Yn,e)}catch{}}var At=Math.clz32?Math.clz32:Jy,Zy=Math.log,Ky=Math.LN2;function Jy(e){return e>>>=0,e===0?32:31-(Zy(e)/Ky|0)|0}var Zi=256,Ki=262144,Ji=4194304;function fl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $i(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~s,l!==0?i=fl(l):(o&=d,o!==0?i=fl(o):a||(a=d&~e,a!==0&&(i=fl(a))))):(d=l&~s,d!==0?i=fl(d):o!==0?i=fl(o):a||(a=l&~e,a!==0&&(i=fl(a)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:i}function Qn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $y(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bo(){var e=Ji;return Ji<<=1,(Ji&62914560)===0&&(Ji=4194304),e}function Ts(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fy(e,t,a,l,i,s){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(a=o&~a;0<a;){var _=31-At(a),q=1<<_;d[_]=0,b[_]=-1;var O=M[_];if(O!==null)for(M[_]=null,_=0;_<O.length;_++){var j=O[_];j!==null&&(j.lane&=-536870913)}a&=~q}l!==0&&xo(e,l,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function xo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function So(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-At(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function To(e,t){var a=t&-t;return a=(a&42)!==0?1:Es(a),(a&(e.suspendedLanes|t))!==0?0:a}function Es(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function As(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Eo(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:rm(e.type))}function Ao(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var Da=Math.random().toString(36).slice(2),it="__reactFiber$"+Da,pt="__reactProps$"+Da,ql="__reactContainer$"+Da,Ns="__reactEvents$"+Da,Wy="__reactListeners$"+Da,Py="__reactHandles$"+Da,No="__reactResources$"+Da,Xn="__reactMarker$"+Da;function Cs(e){delete e[it],delete e[pt],delete e[Ns],delete e[Wy],delete e[Py]}function Ll(e){var t=e[it];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ql]||a[it]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Kh(e);e!==null;){if(a=e[it])return a;e=Kh(e)}return t}e=a,a=e.parentNode}return null}function Bl(e){if(e=e[it]||e[ql]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Gl(e){var t=e[No];return t||(t=e[No]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[Xn]=!0}var Co=new Set,Mo={};function dl(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Mo[e]=t,e=0;e<t.length;e++)Co.add(t[e])}var Iy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Oo={},jo={};function ep(e){return Ul.call(jo,e)?!0:Ul.call(Oo,e)?!1:Iy.test(e)?jo[e]=!0:(Oo[e]=!0,!1)}function Fi(e,t,a){if(ep(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Wi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function da(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tp(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ms(e){if(!e._valueTracker){var t=zo(e)?"checked":"value";e._valueTracker=tp(e,t,""+e[t])}}function Ro(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=zo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Pi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ap=/[\n"\\]/g;function Ut(e){return e.replace(ap,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Os(e,t,a,l,i,s,o,d){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?js(e,o,Dt(t)):a!=null?js(e,o,Dt(a)):l!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Dt(d):e.removeAttribute("name")}function wo(e,t,a,l,i,s,o,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Ms(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ms(e)}function js(e,t,a){t==="number"&&Pi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ql(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _o(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function Do(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(Me(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ms(e)}function kl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var lp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Uo(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||lp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Ho(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&Uo(e,i,l)}else for(var s in t)t.hasOwnProperty(s)&&Uo(e,s,t[s])}function zs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var np=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ip=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ii(e){return ip.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var Rs=null;function ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,Vl=null;function qo(e){var t=Bl(e);if(t&&(e=t.stateNode)){var a=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Os(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[pt]||null;if(!i)throw Error(r(90));Os(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Ro(l)}break e;case"textarea":_o(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ql(e,!!a.multiple,t,!1)}}}var _s=!1;function Lo(e,t,a){if(_s)return e(t,a);_s=!0;try{var l=e(t);return l}finally{if(_s=!1,(Xl!==null||Vl!==null)&&(Gu(),Xl&&(t=Xl,e=Vl,Vl=Xl=null,qo(t),e)))for(t=0;t<e.length;t++)qo(e[t])}}function Zn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[pt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=!1;if(ma)try{var Kn={};Object.defineProperty(Kn,"passive",{get:function(){Ds=!0}}),window.addEventListener("test",Kn,Kn),window.removeEventListener("test",Kn,Kn)}catch{Ds=!1}var Ua=null,Us=null,eu=null;function Bo(){if(eu)return eu;var e,t=Us,a=t.length,l,i="value"in Ua?Ua.value:Ua.textContent,s=i.length;for(e=0;e<a&&t[e]===i[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===i[s-l];l++);return eu=i.slice(e,1<l?1-l:void 0)}function tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function au(){return!0}function Go(){return!1}function gt(e){function t(a,l,i,s,o){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?au:Go,this.isPropagationStopped=Go,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=au)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=au)},persist:function(){},isPersistent:au}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=gt(hl),Jn=E({},hl,{view:0,detail:0}),up=gt(Jn),Hs,qs,$n,nu=E({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$n&&($n&&e.type==="mousemove"?(Hs=e.screenX-$n.screenX,qs=e.screenY-$n.screenY):qs=Hs=0,$n=e),Hs)},movementY:function(e){return"movementY"in e?e.movementY:qs}}),Yo=gt(nu),sp=E({},nu,{dataTransfer:0}),cp=gt(sp),rp=E({},Jn,{relatedTarget:0}),Ls=gt(rp),op=E({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),fp=gt(op),dp=E({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hp=gt(dp),mp=E({},hl,{data:0}),Qo=gt(mp),yp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gp[e])?!!t[e]:!1}function Bs(){return vp}var bp=E({},Jn,{key:function(e){if(e.key){var t=yp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bs,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xp=gt(bp),Sp=E({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ko=gt(Sp),Tp=E({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bs}),Ep=gt(Tp),Ap=E({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Np=gt(Ap),Cp=E({},nu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mp=gt(Cp),Op=E({},hl,{newState:0,oldState:0}),jp=gt(Op),zp=[9,13,27,32],Gs=ma&&"CompositionEvent"in window,Fn=null;ma&&"documentMode"in document&&(Fn=document.documentMode);var Rp=ma&&"TextEvent"in window&&!Fn,Xo=ma&&(!Gs||Fn&&8<Fn&&11>=Fn),Vo=" ",Zo=!1;function Ko(e,t){switch(e){case"keyup":return zp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zl=!1;function wp(e,t){switch(e){case"compositionend":return Jo(t);case"keypress":return t.which!==32?null:(Zo=!0,Vo);case"textInput":return e=t.data,e===Vo&&Zo?null:e;default:return null}}function _p(e,t){if(Zl)return e==="compositionend"||!Gs&&Ko(e,t)?(e=Bo(),eu=Us=Ua=null,Zl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xo&&t.locale!=="ko"?null:t.data;default:return null}}var Dp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dp[e.type]:t==="textarea"}function Fo(e,t,a,l){Xl?Vl?Vl.push(l):Vl=[l]:Xl=l,t=Ku(t,"onChange"),0<t.length&&(a=new lu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Wn=null,Pn=null;function Up(e){_h(e,0)}function iu(e){var t=Vn(e);if(Ro(t))return e}function Wo(e,t){if(e==="change")return t}var Po=!1;if(ma){var Ys;if(ma){var Qs="oninput"in document;if(!Qs){var Io=document.createElement("div");Io.setAttribute("oninput","return;"),Qs=typeof Io.oninput=="function"}Ys=Qs}else Ys=!1;Po=Ys&&(!document.documentMode||9<document.documentMode)}function ef(){Wn&&(Wn.detachEvent("onpropertychange",tf),Pn=Wn=null)}function tf(e){if(e.propertyName==="value"&&iu(Pn)){var t=[];Fo(t,Pn,e,ws(e)),Lo(Up,t)}}function Hp(e,t,a){e==="focusin"?(ef(),Wn=t,Pn=a,Wn.attachEvent("onpropertychange",tf)):e==="focusout"&&ef()}function qp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Pn)}function Lp(e,t){if(e==="click")return iu(t)}function Bp(e,t){if(e==="input"||e==="change")return iu(t)}function Gp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Gp;function In(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Ul.call(t,i)||!Nt(e[i],t[i]))return!1}return!0}function af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lf(e,t){var a=af(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=af(a)}}function nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Pi(e.document)}return t}function ks(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yp=ma&&"documentMode"in document&&11>=document.documentMode,Kl=null,Xs=null,ei=null,Vs=!1;function sf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vs||Kl==null||Kl!==Pi(l)||(l=Kl,"selectionStart"in l&&ks(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ei&&In(ei,l)||(ei=l,l=Ku(Xs,"onSelect"),0<l.length&&(t=new lu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Kl)))}function ml(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Jl={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionrun:ml("Transition","TransitionRun"),transitionstart:ml("Transition","TransitionStart"),transitioncancel:ml("Transition","TransitionCancel"),transitionend:ml("Transition","TransitionEnd")},Zs={},cf={};ma&&(cf=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function yl(e){if(Zs[e])return Zs[e];if(!Jl[e])return e;var t=Jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in cf)return Zs[e]=t[a];return e}var rf=yl("animationend"),of=yl("animationiteration"),ff=yl("animationstart"),Qp=yl("transitionrun"),kp=yl("transitionstart"),Xp=yl("transitioncancel"),df=yl("transitionend"),hf=new Map,Ks="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ks.push("scrollEnd");function Zt(e,t){hf.set(e,t),dl(t,[e])}var uu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],$l=0,Js=0;function su(){for(var e=$l,t=Js=$l=0;t<e;){var a=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var s=Ht[t];if(Ht[t++]=null,l!==null&&i!==null){var o=l.pending;o===null?i.next=i:(i.next=o.next,o.next=i),l.pending=i}s!==0&&mf(a,i,s)}}function cu(e,t,a,l){Ht[$l++]=e,Ht[$l++]=t,Ht[$l++]=a,Ht[$l++]=l,Js|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $s(e,t,a,l){return cu(e,t,a,l),ru(e)}function pl(e,t){return cu(e,null,null,t),ru(e)}function mf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-At(a),e=s.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),s):null}function ru(e){if(50<Ti)throw Ti=0,nr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fl={};function Vp(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,l){return new Vp(e,t,a,l)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ya(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function yf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ou(e,t,a,l,i,s){var o=0;if(l=e,typeof e=="function")Fs(e)&&(o=1);else if(typeof e=="string")o=F0(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Ct(31,a,t,i),e.elementType=te,e.lanes=s,e;case z:return gl(a.children,i,s,t);case X:o=8,i|=24;break;case Q:return e=Ct(12,a,t,i|2),e.elementType=Q,e.lanes=s,e;case ne:return e=Ct(13,a,t,i),e.elementType=ne,e.lanes=s,e;case ee:return e=Ct(19,a,t,i),e.elementType=ee,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:o=10;break e;case F:o=9;break e;case V:o=11;break e;case W:o=14;break e;case fe:o=16,l=null;break e}o=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Ct(o,a,t,i),t.elementType=e,t.type=l,t.lanes=s,t}function gl(e,t,a,l){return e=Ct(7,e,l,t),e.lanes=a,e}function Ws(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function pf(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Ps(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=gf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Bn(t)},gf.set(e,t),t)}return{value:e,source:t,stack:Bn(t)}}var Wl=[],Pl=0,fu=null,ti=0,Lt=[],Bt=0,Ha=null,aa=1,la="";function pa(e,t){Wl[Pl++]=ti,Wl[Pl++]=fu,fu=e,ti=t}function vf(e,t,a){Lt[Bt++]=aa,Lt[Bt++]=la,Lt[Bt++]=Ha,Ha=e;var l=aa;e=la;var i=32-At(l)-1;l&=~(1<<i),a+=1;var s=32-At(t)+i;if(30<s){var o=i-i%5;s=(l&(1<<o)-1).toString(32),l>>=o,i-=o,aa=1<<32-At(t)+i|a<<i|l,la=s+e}else aa=1<<s|a<<i|l,la=e}function Is(e){e.return!==null&&(pa(e,1),vf(e,1,0))}function ec(e){for(;e===fu;)fu=Wl[--Pl],Wl[Pl]=null,ti=Wl[--Pl],Wl[Pl]=null;for(;e===Ha;)Ha=Lt[--Bt],Lt[Bt]=null,la=Lt[--Bt],Lt[Bt]=null,aa=Lt[--Bt],Lt[Bt]=null}function bf(e,t){Lt[Bt++]=aa,Lt[Bt++]=la,Lt[Bt++]=Ha,aa=t.id,la=t.overflow,Ha=e}var ut=null,He=null,be=!1,qa=null,Gt=!1,tc=Error(r(519));function La(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ai(qt(t,e)),tc}function xf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[it]=e,t[pt]=l,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Ai.length;a++)pe(Ai[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),wo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),Do(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||qh(t.textContent,a)?(l.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),l.onScroll!=null&&pe("scroll",t),l.onScrollEnd!=null&&pe("scrollend",t),l.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||La(e,!0)}function Sf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:ut=ut.return}}function Il(e){if(e!==ut)return!1;if(!be)return Sf(e),be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||br(e.type,e.memoizedProps)),a=!a),a&&He&&La(e),Sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=Zh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=Zh(e)}else t===27?(t=He,Pa(e.type)?(e=Ar,Ar=null,He=e):He=t):He=ut?Qt(e.stateNode.nextSibling):null;return!0}function vl(){He=ut=null,be=!1}function ac(){var e=qa;return e!==null&&(St===null?St=e:St.push.apply(St,e),qa=null),e}function ai(e){qa===null?qa=[e]:qa.push(e)}var lc=S(null),bl=null,ga=null;function Ba(e,t,a){Z(lc,t._currentValue),t._currentValue=a}function va(e){e._currentValue=lc.current,w(lc)}function nc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ic(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var b=0;b<t.length;b++)if(d.context===t[b]){s.lanes|=a,d=s.alternate,d!==null&&(d.lanes|=a),nc(s.return,a,e),l||(o=null);break e}s=d.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(r(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),nc(o,a,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function en(e,t,a,l){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var d=i.type;Nt(i.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(i===ce.current){if(o=i.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ji):e=[ji])}i=i.return}e!==null&&ic(t,e,a,l),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xl(e){bl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Tf(bl,e)}function hu(e,t){return bl===null&&xl(e),Tf(e,t)}function Tf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ga===null){if(e===null)throw Error(r(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return a}var Zp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Kp=n.unstable_scheduleCallback,Jp=n.unstable_NormalPriority,$e={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uc(){return{controller:new Zp,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Kp(Jp,function(){e.controller.abort()})}var ni=null,sc=0,tn=0,an=null;function $p(e,t){if(ni===null){var a=ni=[];sc=0,tn=or(),an={status:"pending",value:void 0,then:function(l){a.push(l)}}}return sc++,t.then(Ef,Ef),t}function Ef(){if(--sc===0&&ni!==null){an!==null&&(an.status="fulfilled");var e=ni;ni=null,tn=0,an=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Fp(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Af=R.S;R.S=function(e,t){sh=Ie(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$p(e,t),Af!==null&&Af(e,t)};var Sl=S(null);function cc(){var e=Sl.current;return e!==null?e:Ue.pooledCache}function mu(e,t){t===null?Z(Sl,Sl.current):Z(Sl,t.pool)}function Nf(){var e=cc();return e===null?null:{parent:$e._currentValue,pool:e}}var ln=Error(r(460)),rc=Error(r(474)),yu=Error(r(542)),pu={then:function(){}};function Cf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ha,ha),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e}throw El=t,ln}}function Tl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(El=a,ln):a}}var El=null;function Of(){if(El===null)throw Error(r(459));var e=El;return El=null,e}function jf(e){if(e===ln||e===yu)throw Error(r(483))}var nn=null,ii=0;function gu(e){var t=ii;return ii+=1,nn===null&&(nn=[]),Mf(nn,e,t)}function ui(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vu(e,t){throw t.$$typeof===D?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zf(e){function t(A,T){if(e){var C=A.deletions;C===null?(A.deletions=[T],A.flags|=16):C.push(T)}}function a(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function l(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function i(A,T){return A=ya(A,T),A.index=0,A.sibling=null,A}function s(A,T,C){return A.index=C,e?(C=A.alternate,C!==null?(C=C.index,C<T?(A.flags|=67108866,T):C):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function o(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function d(A,T,C,H){return T===null||T.tag!==6?(T=Ws(C,A.mode,H),T.return=A,T):(T=i(T,C),T.return=A,T)}function b(A,T,C,H){var le=C.type;return le===z?_(A,T,C.props.children,H,C.key):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===fe&&Tl(le)===T.type)?(T=i(T,C.props),ui(T,C),T.return=A,T):(T=ou(C.type,C.key,C.props,null,A.mode,H),ui(T,C),T.return=A,T)}function M(A,T,C,H){return T===null||T.tag!==4||T.stateNode.containerInfo!==C.containerInfo||T.stateNode.implementation!==C.implementation?(T=Ps(C,A.mode,H),T.return=A,T):(T=i(T,C.children||[]),T.return=A,T)}function _(A,T,C,H,le){return T===null||T.tag!==7?(T=gl(C,A.mode,H,le),T.return=A,T):(T=i(T,C),T.return=A,T)}function q(A,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Ws(""+T,A.mode,C),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case k:return C=ou(T.type,T.key,T.props,null,A.mode,C),ui(C,T),C.return=A,C;case K:return T=Ps(T,A.mode,C),T.return=A,T;case fe:return T=Tl(T),q(A,T,C)}if(Me(T)||Be(T))return T=gl(T,A.mode,C,null),T.return=A,T;if(typeof T.then=="function")return q(A,gu(T),C);if(T.$$typeof===G)return q(A,hu(A,T),C);vu(A,T)}return null}function O(A,T,C,H){var le=T!==null?T.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return le!==null?null:d(A,T,""+C,H);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return C.key===le?b(A,T,C,H):null;case K:return C.key===le?M(A,T,C,H):null;case fe:return C=Tl(C),O(A,T,C,H)}if(Me(C)||Be(C))return le!==null?null:_(A,T,C,H,null);if(typeof C.then=="function")return O(A,T,gu(C),H);if(C.$$typeof===G)return O(A,T,hu(A,C),H);vu(A,C)}return null}function j(A,T,C,H,le){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return A=A.get(C)||null,d(T,A,""+H,le);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case k:return A=A.get(H.key===null?C:H.key)||null,b(T,A,H,le);case K:return A=A.get(H.key===null?C:H.key)||null,M(T,A,H,le);case fe:return H=Tl(H),j(A,T,C,H,le)}if(Me(H)||Be(H))return A=A.get(C)||null,_(T,A,H,le,null);if(typeof H.then=="function")return j(A,T,C,gu(H),le);if(H.$$typeof===G)return j(A,T,C,hu(T,H),le);vu(T,H)}return null}function P(A,T,C,H){for(var le=null,Se=null,I=T,he=T=0,ve=null;I!==null&&he<C.length;he++){I.index>he?(ve=I,I=null):ve=I.sibling;var Te=O(A,I,C[he],H);if(Te===null){I===null&&(I=ve);break}e&&I&&Te.alternate===null&&t(A,I),T=s(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te,I=ve}if(he===C.length)return a(A,I),be&&pa(A,he),le;if(I===null){for(;he<C.length;he++)I=q(A,C[he],H),I!==null&&(T=s(I,T,he),Se===null?le=I:Se.sibling=I,Se=I);return be&&pa(A,he),le}for(I=l(I);he<C.length;he++)ve=j(I,A,he,C[he],H),ve!==null&&(e&&ve.alternate!==null&&I.delete(ve.key===null?he:ve.key),T=s(ve,T,he),Se===null?le=ve:Se.sibling=ve,Se=ve);return e&&I.forEach(function(ll){return t(A,ll)}),be&&pa(A,he),le}function ie(A,T,C,H){if(C==null)throw Error(r(151));for(var le=null,Se=null,I=T,he=T=0,ve=null,Te=C.next();I!==null&&!Te.done;he++,Te=C.next()){I.index>he?(ve=I,I=null):ve=I.sibling;var ll=O(A,I,Te.value,H);if(ll===null){I===null&&(I=ve);break}e&&I&&ll.alternate===null&&t(A,I),T=s(ll,T,he),Se===null?le=ll:Se.sibling=ll,Se=ll,I=ve}if(Te.done)return a(A,I),be&&pa(A,he),le;if(I===null){for(;!Te.done;he++,Te=C.next())Te=q(A,Te.value,H),Te!==null&&(T=s(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te);return be&&pa(A,he),le}for(I=l(I);!Te.done;he++,Te=C.next())Te=j(I,A,he,Te.value,H),Te!==null&&(e&&Te.alternate!==null&&I.delete(Te.key===null?he:Te.key),T=s(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te);return e&&I.forEach(function(sg){return t(A,sg)}),be&&pa(A,he),le}function Re(A,T,C,H){if(typeof C=="object"&&C!==null&&C.type===z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case k:e:{for(var le=C.key;T!==null;){if(T.key===le){if(le=C.type,le===z){if(T.tag===7){a(A,T.sibling),H=i(T,C.props.children),H.return=A,A=H;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===fe&&Tl(le)===T.type){a(A,T.sibling),H=i(T,C.props),ui(H,C),H.return=A,A=H;break e}a(A,T);break}else t(A,T);T=T.sibling}C.type===z?(H=gl(C.props.children,A.mode,H,C.key),H.return=A,A=H):(H=ou(C.type,C.key,C.props,null,A.mode,H),ui(H,C),H.return=A,A=H)}return o(A);case K:e:{for(le=C.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){a(A,T.sibling),H=i(T,C.children||[]),H.return=A,A=H;break e}else{a(A,T);break}else t(A,T);T=T.sibling}H=Ps(C,A.mode,H),H.return=A,A=H}return o(A);case fe:return C=Tl(C),Re(A,T,C,H)}if(Me(C))return P(A,T,C,H);if(Be(C)){if(le=Be(C),typeof le!="function")throw Error(r(150));return C=le.call(C),ie(A,T,C,H)}if(typeof C.then=="function")return Re(A,T,gu(C),H);if(C.$$typeof===G)return Re(A,T,hu(A,C),H);vu(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(a(A,T.sibling),H=i(T,C),H.return=A,A=H):(a(A,T),H=Ws(C,A.mode,H),H.return=A,A=H),o(A)):a(A,T)}return function(A,T,C,H){try{ii=0;var le=Re(A,T,C,H);return nn=null,le}catch(I){if(I===ln||I===yu)throw I;var Se=Ct(29,I,null,A.mode);return Se.lanes=H,Se.return=A,Se}finally{}}}var Al=zf(!0),Rf=zf(!1),Ga=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ee&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ru(e),mf(e,null,a),t}return cu(e,l,t,a),ru(e)}function si(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,So(e,a)}}function dc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?i=s=t:s=s.next=t}else i=s=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var hc=!1;function ci(){if(hc){var e=an;if(e!==null)throw e}}function ri(e,t,a,l){hc=!1;var i=e.updateQueue;Ga=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var b=d,M=b.next;b.next=null,o===null?s=M:o.next=M,o=b;var _=e.alternate;_!==null&&(_=_.updateQueue,d=_.lastBaseUpdate,d!==o&&(d===null?_.firstBaseUpdate=M:d.next=M,_.lastBaseUpdate=b))}if(s!==null){var q=i.baseState;o=0,_=M=b=null,d=s;do{var O=d.lane&-536870913,j=O!==d.lane;if(j?(ge&O)===O:(l&O)===O){O!==0&&O===tn&&(hc=!0),_!==null&&(_=_.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var P=e,ie=d;O=t;var Re=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){q=P.call(Re,q,O);break e}q=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,O=typeof P=="function"?P.call(Re,q,O):P,O==null)break e;q=E({},q,O);break e;case 2:Ga=!0}}O=d.callback,O!==null&&(e.flags|=64,j&&(e.flags|=8192),j=i.callbacks,j===null?i.callbacks=[O]:j.push(O))}else j={lane:O,tag:d.tag,payload:d.payload,callback:d.callback,next:null},_===null?(M=_=j,b=q):_=_.next=j,o|=O;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;j=d,d=j.next,j.next=null,i.lastBaseUpdate=j,i.shared.pending=null}}while(!0);_===null&&(b=q),i.baseState=b,i.firstBaseUpdate=M,i.lastBaseUpdate=_,s===null&&(i.shared.lanes=0),Ka|=o,e.lanes=o,e.memoizedState=q}}function wf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function _f(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wf(a[e],t)}var un=S(null),bu=S(0);function Df(e,t){e=Ma,Z(bu,e),Z(un,t),Ma=e|t.baseLanes}function mc(){Z(bu,Ma),Z(un,un.current)}function yc(){Ma=bu.current,w(un),w(bu)}var Mt=S(null),Yt=null;function ka(e){var t=e.alternate;Z(Ke,Ke.current&1),Z(Mt,e),Yt===null&&(t===null||un.current!==null||t.memoizedState!==null)&&(Yt=e)}function pc(e){Z(Ke,Ke.current),Z(Mt,e),Yt===null&&(Yt=e)}function Uf(e){e.tag===22?(Z(Ke,Ke.current),Z(Mt,e),Yt===null&&(Yt=e)):Xa()}function Xa(){Z(Ke,Ke.current),Z(Mt,Mt.current)}function Ot(e){w(Mt),Yt===e&&(Yt=null),w(Ke)}var Ke=S(0);function xu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Tr(a)||Er(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ba=0,de=null,je=null,Fe=null,Su=!1,sn=!1,Nl=!1,Tu=0,oi=0,cn=null,Wp=0;function ke(){throw Error(r(321))}function gc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Nt(e[a],t[a]))return!1;return!0}function vc(e,t,a,l,i,s){return ba=s,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?vd:_c,Nl=!1,s=a(l,i),Nl=!1,sn&&(s=qf(t,a,l,i)),Hf(e),s}function Hf(e){R.H=hi;var t=je!==null&&je.next!==null;if(ba=0,Fe=je=de=null,Su=!1,oi=0,cn=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&du(e)&&(We=!0))}function qf(e,t,a,l){de=e;var i=0;do{if(sn&&(cn=null),oi=0,sn=!1,25<=i)throw Error(r(301));if(i+=1,Fe=je=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}R.H=bd,s=t(a,l)}while(sn);return s}function Pp(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(de.flags|=1024),t}function bc(){var e=Tu!==0;return Tu=0,e}function xc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Sc(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}ba=0,Fe=je=de=null,sn=!1,oi=Tu=0,cn=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Je(){if(je===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Fe===null?de.memoizedState:Fe.next;if(t!==null)Fe=t,je=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Eu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=oi;return oi+=1,cn===null&&(cn=[]),e=Mf(cn,e,t),t=de,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?vd:_c),e}function Au(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===G)return st(e)}throw Error(r(438,String(e)))}function Tc(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Eu(),de.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Le;return t.index++,a}function xa(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=Je();return Ec(t,je,e)}function Ec(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var i=e.baseQueue,s=l.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}t.baseQueue=i=s,l.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=o=null,b=null,M=t,_=!1;do{var q=M.lane&-536870913;if(q!==M.lane?(ge&q)===q:(ba&q)===q){var O=M.revertLane;if(O===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),q===tn&&(_=!0);else if((ba&O)===O){M=M.next,O===tn&&(_=!0);continue}else q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(d=b=q,o=s):b=b.next=q,de.lanes|=O,Ka|=O;q=M.action,Nl&&a(s,q),s=M.hasEagerState?M.eagerState:a(s,q)}else O={lane:q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(d=b=O,o=s):b=b.next=O,de.lanes|=q,Ka|=q;M=M.next}while(M!==null&&M!==t);if(b===null?o=s:b.next=d,!Nt(s,e.memoizedState)&&(We=!0,_&&(a=an,a!==null)))throw a;e.memoizedState=s,e.baseState=o,e.baseQueue=b,l.lastRenderedState=s}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ac(e){var t=Je(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,s=t.memoizedState;if(i!==null){a.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Nt(s,t.memoizedState)||(We=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function Lf(e,t,a){var l=de,i=Je(),s=be;if(s){if(a===void 0)throw Error(r(407));a=a()}else a=t();var o=!Nt((je||i).memoizedState,a);if(o&&(i.memoizedState=a,We=!0),i=i.queue,Mc(Yf.bind(null,l,i,e),[e]),i.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(l.flags|=2048,rn(9,{destroy:void 0},Gf.bind(null,l,i,a,t),null),Ue===null)throw Error(r(349));s||(ba&127)!==0||Bf(l,t,a)}return a}function Bf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=Eu(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Gf(e,t,a,l){t.value=a,t.getSnapshot=l,Qf(t)&&kf(e)}function Yf(e,t,a){return a(function(){Qf(t)&&kf(e)})}function Qf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Nt(e,a)}catch{return!0}}function kf(e){var t=pl(e,2);t!==null&&Tt(t,e,2)}function Nc(e){var t=ht();if(typeof e=="function"){var a=e;if(e=a(),Nl){_a(!0);try{a()}finally{_a(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t}function Xf(e,t,a,l){return e.baseState=a,Ec(e,je,typeof l=="function"?l:xa)}function Ip(e,t,a,l,i){if(Ou(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};R.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,Vf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function Vf(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var s=R.T,o={};R.T=o;try{var d=a(i,l),b=R.S;b!==null&&b(o,d),Zf(e,t,d)}catch(M){Cc(e,t,M)}finally{s!==null&&o.types!==null&&(s.types=o.types),R.T=s}}else try{s=a(i,l),Zf(e,t,s)}catch(M){Cc(e,t,M)}}function Zf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Kf(e,t,l)},function(l){return Cc(e,t,l)}):Kf(e,t,a)}function Kf(e,t,a){t.status="fulfilled",t.value=a,Jf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Vf(e,a)))}function Cc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Jf(t),t=t.next;while(t!==l)}e.action=null}function Jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $f(e,t){return t}function Ff(e,t){if(be){var a=Ue.formState;if(a!==null){e:{var l=de;if(be){if(He){t:{for(var i=He,s=Gt;i.nodeType!==8;){if(!s){i=null;break t}if(i=Qt(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){He=Qt(i.nextSibling),l=i.data==="F!";break e}}La(l)}l=!1}l&&(t=a[0])}}return a=ht(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$f,lastRenderedState:t},a.queue=l,a=yd.bind(null,de,l),l.dispatch=a,l=Nc(!1),s=wc.bind(null,de,!1,l.queue),l=ht(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=Ip.bind(null,de,i,s,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Wf(e){var t=Je();return Pf(t,je,e)}function Pf(e,t,a){if(t=Ec(e,t,$f)[0],e=Nu(xa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=fi(t)}catch(o){throw o===ln?yu:o}else l=t;t=Je();var i=t.queue,s=i.dispatch;return a!==t.memoizedState&&(de.flags|=2048,rn(9,{destroy:void 0},e0.bind(null,i,a),null)),[l,s,e]}function e0(e,t){e.action=t}function If(e){var t=Je(),a=je;if(a!==null)return Pf(t,a,e);Je(),t=t.memoizedState,a=Je();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function rn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=de.updateQueue,t===null&&(t=Eu(),de.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function ed(){return Je().memoizedState}function Cu(e,t,a,l){var i=ht();de.flags|=e,i.memoizedState=rn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Mu(e,t,a,l){var i=Je();l=l===void 0?null:l;var s=i.memoizedState.inst;je!==null&&l!==null&&gc(l,je.memoizedState.deps)?i.memoizedState=rn(t,s,a,l):(de.flags|=e,i.memoizedState=rn(1|t,s,a,l))}function td(e,t){Cu(8390656,8,e,t)}function Mc(e,t){Mu(2048,8,e,t)}function t0(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Eu(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ad(e){var t=Je().memoizedState;return t0({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function ld(e,t){return Mu(4,2,e,t)}function nd(e,t){return Mu(4,4,e,t)}function id(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ud(e,t,a){a=a!=null?a.concat([e]):null,Mu(4,4,id.bind(null,t,e),a)}function Oc(){}function sd(e,t){var a=Je();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&gc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function cd(e,t){var a=Je();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&gc(t,l[1]))return l[0];if(l=e(),Nl){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l}function jc(e,t,a){return a===void 0||(ba&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=rh(),de.lanes|=e,Ka|=e,a)}function rd(e,t,a,l){return Nt(a,t)?a:un.current!==null?(e=jc(e,a,l),Nt(e,t)||(We=!0),e):(ba&42)===0||(ba&1073741824)!==0&&(ge&261930)===0?(We=!0,e.memoizedState=a):(e=rh(),de.lanes|=e,Ka|=e,t)}function od(e,t,a,l,i){var s=Y.p;Y.p=s!==0&&8>s?s:8;var o=R.T,d={};R.T=d,wc(e,!1,t,a);try{var b=i(),M=R.S;if(M!==null&&M(d,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=Fp(b,l);di(e,t,_,Rt(e))}else di(e,t,l,Rt(e))}catch(q){di(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{Y.p=s,o!==null&&d.types!==null&&(o.types=d.types),R.T=o}}function a0(){}function zc(e,t,a,l){if(e.tag!==5)throw Error(r(476));var i=fd(e).queue;od(e,i,t,J,a===null?a0:function(){return dd(e),a(l)})}function fd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dd(e){var t=fd(e);t.next===null&&(t=e.alternate.memoizedState),di(e,t.next.queue,{},Rt())}function Rc(){return st(ji)}function hd(){return Je().memoizedState}function md(){return Je().memoizedState}function l0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ya(a);var l=Qa(t,e,a);l!==null&&(Tt(l,t,a),si(l,t,a)),t={cache:uc()},e.payload=t;return}t=t.return}}function n0(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ou(e)?pd(t,a):(a=$s(e,t,a,l),a!==null&&(Tt(a,e,l),gd(a,t,l)))}function yd(e,t,a){var l=Rt();di(e,t,a,l)}function di(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ou(e))pd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,d=s(o,a);if(i.hasEagerState=!0,i.eagerState=d,Nt(d,o))return cu(e,t,i,0),Ue===null&&su(),!1}catch{}finally{}if(a=$s(e,t,i,l),a!==null)return Tt(a,e,l),gd(a,t,l),!0}return!1}function wc(e,t,a,l){if(l={lane:2,revertLane:or(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ou(e)){if(t)throw Error(r(479))}else t=$s(e,a,l,2),t!==null&&Tt(t,e,2)}function Ou(e){var t=e.alternate;return e===de||t!==null&&t===de}function pd(e,t){sn=Su=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function gd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,So(e,a)}}var hi={readContext:st,use:Au,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};hi.useEffectEvent=ke;var vd={readContext:st,use:Au,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:td,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Cu(4194308,4,id.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Cu(4194308,4,e,t)},useInsertionEffect:function(e,t){Cu(4,2,e,t)},useMemo:function(e,t){var a=ht();t=t===void 0?null:t;var l=e();if(Nl){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ht();if(a!==void 0){var i=a(t);if(Nl){_a(!0);try{a(t)}finally{_a(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=n0.bind(null,de,e),[l.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Nc(e);var t=e.queue,a=yd.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Oc,useDeferredValue:function(e,t){var a=ht();return jc(a,e,t)},useTransition:function(){var e=Nc(!1);return e=od.bind(null,de,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=de,i=ht();if(be){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ue===null)throw Error(r(349));(ge&127)!==0||Bf(l,t,a)}i.memoizedState=a;var s={value:a,getSnapshot:t};return i.queue=s,td(Yf.bind(null,l,s,e),[e]),l.flags|=2048,rn(9,{destroy:void 0},Gf.bind(null,l,s,a,t),null),a},useId:function(){var e=ht(),t=Ue.identifierPrefix;if(be){var a=la,l=aa;a=(l&~(1<<32-At(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Tu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Wp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rc,useFormState:Ff,useActionState:Ff,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=wc.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:Tc,useCacheRefresh:function(){return ht().memoizedState=l0.bind(null,de)},useEffectEvent:function(e){var t=ht(),a={impl:e};return t.memoizedState=a,function(){if((Ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},_c={readContext:st,use:Au,useCallback:sd,useContext:st,useEffect:Mc,useImperativeHandle:ud,useInsertionEffect:ld,useLayoutEffect:nd,useMemo:cd,useReducer:Nu,useRef:ed,useState:function(){return Nu(xa)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Je();return rd(a,je.memoizedState,e,t)},useTransition:function(){var e=Nu(xa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:Lf,useId:hd,useHostTransitionStatus:Rc,useFormState:Wf,useActionState:Wf,useOptimistic:function(e,t){var a=Je();return Xf(a,je,e,t)},useMemoCache:Tc,useCacheRefresh:md};_c.useEffectEvent=ad;var bd={readContext:st,use:Au,useCallback:sd,useContext:st,useEffect:Mc,useImperativeHandle:ud,useInsertionEffect:ld,useLayoutEffect:nd,useMemo:cd,useReducer:Ac,useRef:ed,useState:function(){return Ac(xa)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Je();return je===null?jc(a,e,t):rd(a,je.memoizedState,e,t)},useTransition:function(){var e=Ac(xa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:Lf,useId:hd,useHostTransitionStatus:Rc,useFormState:If,useActionState:If,useOptimistic:function(e,t){var a=Je();return je!==null?Xf(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:md};bd.useEffectEvent=ad;function Dc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:E({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Uc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ya(l);i.payload=t,a!=null&&(i.callback=a),t=Qa(e,i,l),t!==null&&(Tt(t,e,l),si(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ya(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Qa(e,i,l),t!==null&&(Tt(t,e,l),si(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ya(a);l.tag=2,t!=null&&(l.callback=t),t=Qa(e,l,a),t!==null&&(Tt(t,e,a),si(t,e,a))}};function xd(e,t,a,l,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,o):t.prototype&&t.prototype.isPureReactComponent?!In(a,l)||!In(i,s):!0}function Sd(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Uc.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=E({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Td(e){uu(e)}function Ed(e){console.error(e)}function Ad(e){uu(e)}function ju(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Nd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Hc(e,t,a){return a=Ya(a),a.tag=3,a.payload={element:null},a.callback=function(){ju(e,t)},a}function Cd(e){return e=Ya(e),e.tag=3,e}function Md(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var s=l.value;e.payload=function(){return i(s)},e.callback=function(){Nd(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Nd(t,a,l),typeof i!="function"&&(Ja===null?Ja=new Set([this]):Ja.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function i0(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&en(t,a,i,!0),a=Mt.current,a!==null){switch(a.tag){case 31:case 13:return Yt===null?Yu():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===pu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),sr(e,l,i)),!1;case 22:return a.flags|=65536,l===pu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),sr(e,l,i)),!1}throw Error(r(435,a.tag))}return sr(e,l,i),Yu(),!1}if(be)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==tc&&(e=Error(r(422),{cause:l}),ai(qt(e,a)))):(l!==tc&&(t=Error(r(423),{cause:l}),ai(qt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=qt(l,a),i=Hc(e.stateNode,l,i),dc(e,i),Xe!==4&&(Xe=2)),!1;var s=Error(r(520),{cause:l});if(s=qt(s,a),Si===null?Si=[s]:Si.push(s),Xe!==4&&(Xe=2),t===null)return!0;l=qt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Hc(a.stateNode,l,e),dc(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ja===null||!Ja.has(s))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Cd(i),Md(i,e,a,l),dc(a,i),!1}a=a.return}while(a!==null);return!1}var qc=Error(r(461)),We=!1;function ct(e,t,a,l){t.child=e===null?Rf(t,null,a,l):Al(t,e.child,a,l)}function Od(e,t,a,l,i){a=a.render;var s=t.ref;if("ref"in l){var o={};for(var d in l)d!=="ref"&&(o[d]=l[d])}else o=l;return xl(t),l=vc(e,t,a,o,s,i),d=bc(),e!==null&&!We?(xc(e,t,i),Sa(e,t,i)):(be&&d&&Is(t),t.flags|=1,ct(e,t,l,i),t.child)}function jd(e,t,a,l,i){if(e===null){var s=a.type;return typeof s=="function"&&!Fs(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,zd(e,t,s,l,i)):(e=ou(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Vc(e,i)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:In,a(o,l)&&e.ref===t.ref)return Sa(e,t,i)}return t.flags|=1,e=ya(s,l),e.ref=t.ref,e.return=t,t.child=e}function zd(e,t,a,l,i){if(e!==null){var s=e.memoizedProps;if(In(s,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=s,Vc(e,i))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Sa(e,t,i)}return Lc(e,t,a,l,i)}function Rd(e,t,a,l){var i=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~s}else l=0,t.child=null;return wd(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mu(t,s!==null?s.cachePool:null),s!==null?Df(t,s):mc(),Uf(t);else return l=t.lanes=536870912,wd(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(mu(t,s.cachePool),Df(t,s),Xa(),t.memoizedState=null):(e!==null&&mu(t,null),mc(),Xa());return ct(e,t,i,a),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wd(e,t,a,l,i){var s=cc();return s=s===null?null:{parent:$e._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&mu(t,null),mc(),Uf(t),e!==null&&en(e,t,l,!0),t.childLanes=i,null}function zu(e,t){return t=wu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _d(e,t,a){return Al(t,e.child,null,a),e=zu(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function u0(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(l.mode==="hidden")return e=zu(t,l),t.lanes=536870912,mi(null,e);if(pc(t),(e=He)?(e=Vh(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:aa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=pf(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw La(t);return t.lanes=536870912,null}return zu(t,l)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(pc(t),i)if(t.flags&256)t.flags&=-257,t=_d(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||en(e,t,a,!1),i=(a&e.childLanes)!==0,We||i){if(l=Ue,l!==null&&(o=To(l,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,pl(e,o),Tt(l,e,o),qc;Yu(),t=_d(e,t,a)}else e=s.treeContext,He=Qt(o.nextSibling),ut=t,be=!0,qa=null,Gt=!1,e!==null&&bf(t,e),t=zu(t,l),t.flags|=4096;return t}return e=ya(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ru(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Lc(e,t,a,l,i){return xl(t),a=vc(e,t,a,l,void 0,i),l=bc(),e!==null&&!We?(xc(e,t,i),Sa(e,t,i)):(be&&l&&Is(t),t.flags|=1,ct(e,t,a,i),t.child)}function Dd(e,t,a,l,i,s){return xl(t),t.updateQueue=null,a=qf(t,l,a,i),Hf(e),l=bc(),e!==null&&!We?(xc(e,t,s),Sa(e,t,s)):(be&&l&&Is(t),t.flags|=1,ct(e,t,a,s),t.child)}function Ud(e,t,a,l,i){if(xl(t),t.stateNode===null){var s=Fl,o=a.contextType;typeof o=="object"&&o!==null&&(s=st(o)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Uc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},oc(t),o=a.contextType,s.context=typeof o=="object"&&o!==null?st(o):Fl,s.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Dc(t,a,o,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&Uc.enqueueReplaceState(s,s.state,null),ri(t,l,s,i),ci(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,b=Cl(a,d);s.props=b;var M=s.context,_=a.contextType;o=Fl,typeof _=="object"&&_!==null&&(o=st(_));var q=a.getDerivedStateFromProps;_=typeof q=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,_||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||M!==o)&&Sd(t,s,l,o),Ga=!1;var O=t.memoizedState;s.state=O,ri(t,l,s,i),ci(),M=t.memoizedState,d||O!==M||Ga?(typeof q=="function"&&(Dc(t,a,q,l),M=t.memoizedState),(b=Ga||xd(t,a,b,l,O,M,o))?(_||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),s.props=l,s.state=M,s.context=o,l=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,fc(e,t),o=t.memoizedProps,_=Cl(a,o),s.props=_,q=t.pendingProps,O=s.context,M=a.contextType,b=Fl,typeof M=="object"&&M!==null&&(b=st(M)),d=a.getDerivedStateFromProps,(M=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==q||O!==b)&&Sd(t,s,l,b),Ga=!1,O=t.memoizedState,s.state=O,ri(t,l,s,i),ci();var j=t.memoizedState;o!==q||O!==j||Ga||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof d=="function"&&(Dc(t,a,d,l),j=t.memoizedState),(_=Ga||xd(t,a,_,l,O,j,b)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(M||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,j,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,j,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=j),s.props=l,s.state=j,s.context=b,l=_):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Ru(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,i),t.child=Al(t,null,a,i)):ct(e,t,a,i),t.memoizedState=s.state,e=t.child):e=Sa(e,t,i),e}function Hd(e,t,a,l){return vl(),t.flags|=256,ct(e,t,a,l),t.child}var Bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Nf()}}function Yc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function qd(e,t,a){var l=t.pendingProps,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(i?ka(t):Xa(),(e=He)?(e=Vh(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:aa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=pf(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw La(t);return Er(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,i?(Xa(),i=t.mode,d=wu({mode:"hidden",children:d},i),l=gl(l,i,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Bc,mi(null,l)):(ka(t),Qc(t,d))}var b=e.memoizedState;if(b!==null&&(d=b.dehydrated,d!==null)){if(s)t.flags&256?(ka(t),t.flags&=-257,t=kc(e,t,a)):t.memoizedState!==null?(Xa(),t.child=e.child,t.flags|=128,t=null):(Xa(),d=l.fallback,i=t.mode,l=wu({mode:"visible",children:l.children},i),d=gl(d,i,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Al(t,e.child,null,a),l=t.child,l.memoizedState=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Bc,t=mi(null,l));else if(ka(t),Er(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var M=o.dgst;o=M,l=Error(r(419)),l.stack="",l.digest=o,ai({value:l,source:null,stack:null}),t=kc(e,t,a)}else if(We||en(e,t,a,!1),o=(a&e.childLanes)!==0,We||o){if(o=Ue,o!==null&&(l=To(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,pl(e,l),Tt(o,e,l),qc;Tr(d)||Yu(),t=kc(e,t,a)}else Tr(d)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,He=Qt(d.nextSibling),ut=t,be=!0,qa=null,Gt=!1,e!==null&&bf(t,e),t=Qc(t,l.children),t.flags|=4096);return t}return i?(Xa(),d=l.fallback,i=t.mode,b=e.child,M=b.sibling,l=ya(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,M!==null?d=ya(M,d):(d=gl(d,i,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,mi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Gc(a):(i=d.cachePool,i!==null?(b=$e._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=Nf(),d={baseLanes:d.baseLanes|a,cachePool:i}),l.memoizedState=d,l.childLanes=Yc(e,o,a),t.memoizedState=Bc,mi(e.child,l)):(ka(t),a=e.child,e=a.sibling,a=ya(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function Qc(e,t){return t=wu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wu(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function kc(e,t,a){return Al(t,e.child,null,a),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ld(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),nc(e.return,t,a)}function Xc(e,t,a,l,i,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=i,o.treeForkCount=s)}function Bd(e,t,a){var l=t.pendingProps,i=l.revealOrder,s=l.tail;l=l.children;var o=Ke.current,d=(o&2)!==0;if(d?(o=o&1|2,t.flags|=128):o&=1,Z(Ke,o),ct(e,t,l,a),l=be?ti:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ld(e,a,t);else if(e.tag===19)Ld(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&xu(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Xc(t,!1,i,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xu(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Xc(t,!0,a,null,s,l);break;case"together":Xc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Sa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(en(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=ya(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ya(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Vc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function s0(e,t,a){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),Ba(t,$e,e.memoizedState.cache),vl();break;case 27:case 5:ea(t);break;case 4:Ze(t,t.stateNode.containerInfo);break;case 10:Ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ka(t),t.flags|=128,null):(a&t.child.childLanes)!==0?qd(e,t,a):(ka(t),e=Sa(e,t,a),e!==null?e.sibling:null);ka(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(en(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return Bd(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Z(Ke,Ke.current),l)break;return null;case 22:return t.lanes=0,Rd(e,t,a,t.pendingProps);case 24:Ba(t,$e,e.memoizedState.cache)}return Sa(e,t,a)}function Gd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Vc(e,a)&&(t.flags&128)===0)return We=!1,s0(e,t,a);We=(e.flags&131072)!==0}else We=!1,be&&(t.flags&1048576)!==0&&vf(t,ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tl(t.elementType),t.type=e,typeof e=="function")Fs(e)?(l=Cl(e,l),t.tag=1,t=Ud(null,t,e,l,a)):(t.tag=0,t=Lc(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=Od(null,t,e,l,a);break e}else if(i===W){t.tag=14,t=jd(null,t,e,l,a);break e}}throw t=Ae(e)||e,Error(r(306,t,""))}}return t;case 0:return Lc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=Cl(l,t.pendingProps),Ud(e,t,l,i,a);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var s=t.memoizedState;i=s.element,fc(e,t),ri(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Ba(t,$e,l),l!==s.cache&&ic(t,[$e],a,!0),ci(),l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Hd(e,t,l,a);break e}else if(l!==i){i=qt(Error(r(424)),t),ai(i),t=Hd(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Qt(e.firstChild),ut=t,be=!0,qa=null,Gt=!0,a=Rf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),l===i){t=Sa(e,t,a);break e}ct(e,t,l,a)}t=t.child}return t;case 26:return Ru(e,t),e===null?(a=Wh(t.type,null,t.pendingProps,null))?t.memoizedState=a:be||(a=t.type,e=t.pendingProps,l=Ju(re.current).createElement(a),l[it]=t,l[pt]=e,rt(l,a,e),tt(l),t.stateNode=l):t.memoizedState=Wh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ea(t),e===null&&be&&(l=t.stateNode=Jh(t.type,t.pendingProps,re.current),ut=t,Gt=!0,i=He,Pa(t.type)?(Ar=i,He=Qt(l.firstChild)):He=i),ct(e,t,t.pendingProps.children,a),Ru(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((i=l=He)&&(l=q0(l,t.type,t.pendingProps,Gt),l!==null?(t.stateNode=l,ut=t,He=Qt(l.firstChild),Gt=!1,i=!0):i=!1),i||La(t)),ea(t),i=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,br(i,s)?l=null:o!==null&&br(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=vc(e,t,Pp,null,null,a),ji._currentValue=i),Ru(e,t),ct(e,t,l,a),t.child;case 6:return e===null&&be&&((e=a=He)&&(a=L0(a,t.pendingProps,Gt),a!==null?(t.stateNode=a,ut=t,He=null,e=!0):e=!1),e||La(t)),null;case 13:return qd(e,t,a);case 4:return Ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,a):ct(e,t,l,a),t.child;case 11:return Od(e,t,t.type,t.pendingProps,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ba(t,t.type,l.value),ct(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,xl(t),i=st(i),l=l(i),t.flags|=1,ct(e,t,l,a),t.child;case 14:return jd(e,t,t.type,t.pendingProps,a);case 15:return zd(e,t,t.type,t.pendingProps,a);case 19:return Bd(e,t,a);case 31:return u0(e,t,a);case 22:return Rd(e,t,a,t.pendingProps);case 24:return xl(t),l=st($e),e===null?(i=cc(),i===null&&(i=Ue,s=uc(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=a),i=s),t.memoizedState={parent:l,cache:i},oc(t),Ba(t,$e,i)):((e.lanes&a)!==0&&(fc(e,t),ri(t,null,null,a),ci()),i=e.memoizedState,s=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ba(t,$e,l)):(l=s.cache,Ba(t,$e,l),l!==i.cache&&ic(t,[$e],a,!0))),ct(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ta(e){e.flags|=4}function Zc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(hh())e.flags|=8192;else throw El=pu,rc}else e.flags&=-16777217}function Yd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!am(t))if(hh())e.flags|=8192;else throw El=pu,rc}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bo():536870912,e.lanes|=t,hn|=t)}function yi(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function c0(e,t,a){var l=t.pendingProps;switch(ec(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),va($e),De(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Il(t)?Ta(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ac())),qe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(Ta(t),s!==null?(qe(t),Yd(t,s)):(qe(t),Zc(t,i,null,l,a))):s?s!==e.memoizedState?(Ta(t),qe(t),Yd(t,s)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ta(t),qe(t),Zc(t,i,e,l,a)),null;case 27:if(oa(t),a=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=$.current,Il(t)?xf(t):(e=Jh(i,l,a),t.stateNode=e,Ta(t))}return qe(t),null;case 5:if(oa(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(s=$.current,Il(t))xf(t);else{var o=Ju(re.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?o.createElement(i,{is:l.is}):o.createElement(i)}}s[it]=t,s[pt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(rt(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ta(t)}}return qe(t),Zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=re.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=ut,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[it]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||qh(e.nodeValue,a)),e||La(t,!0)}else e=Ju(e).createTextNode(l),e[it]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Il(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Il(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[it]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_u(t,t.updateQueue),qe(t),null);case 4:return De(),e===null&&mr(t.stateNode.containerInfo),qe(t),null;case 10:return va(t.type),qe(t),null;case 19:if(w(Ke),l=t.memoizedState,l===null)return qe(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)yi(l,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=xu(e),s!==null){for(t.flags|=128,yi(l,!1),e=s.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)yf(a,e),a=a.sibling;return Z(Ke,Ke.current&1|2),be&&pa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ie()>Lu&&(t.flags|=128,i=!0,yi(l,!1),t.lanes=4194304)}else{if(!i)if(e=xu(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),yi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!be)return qe(t),null}else 2*Ie()-l.renderingStartTime>Lu&&a!==536870912&&(t.flags|=128,i=!0,yi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ie(),e.sibling=null,a=Ke.current,Z(Ke,i?a&1|2:a&1),be&&pa(t,l.treeForkCount),e):(qe(t),null);case 22:case 23:return Ot(t),yc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&_u(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&w(Sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),va($e),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function r0(e,t){switch(ec(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va($e),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oa(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(r(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(Ke),null;case 4:return De(),null;case 10:return va(t.type),null;case 22:case 23:return Ot(t),yc(),e!==null&&w(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va($e),null;case 25:return null;default:return null}}function Qd(e,t){switch(ec(t),t.tag){case 3:va($e),De();break;case 26:case 27:case 5:oa(t);break;case 4:De();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:w(Ke);break;case 10:va(t.type);break;case 22:case 23:Ot(t),yc(),e!==null&&w(Sl);break;case 24:va($e)}}function pi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var s=a.create,o=a.inst;l=s(),o.destroy=l}a=a.next}while(a!==i)}}catch(d){Ce(t,t.return,d)}}function Va(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){var o=l.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,i=t;var b=a,M=d;try{M()}catch(_){Ce(i,b,_)}}}l=l.next}while(l!==s)}}catch(_){Ce(t,t.return,_)}}function kd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{_f(t,a)}catch(l){Ce(e,e.return,l)}}}function Xd(e,t,a){a.props=Cl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function gi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ce(e,t,i)}}function na(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ce(e,t,i)}else a.current=null}function Vd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ce(e,e.return,i)}}function Kc(e,t,a){try{var l=e.stateNode;R0(l,e.type,a,t),l[pt]=t}catch(i){Ce(e,e.return,i)}}function Zd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pa(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Pa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ha));else if(l!==4&&(l===27&&Pa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,a),e=e.sibling;e!==null;)$c(e,t,a),e=e.sibling}function Du(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Pa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Du(e,t,a),e=e.sibling;e!==null;)Du(e,t,a),e=e.sibling}function Kd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rt(t,l,a),t[it]=e,t[pt]=a}catch(s){Ce(e,e.return,s)}}var Ea=!1,Pe=!1,Fc=!1,Jd=typeof WeakSet=="function"?WeakSet:Set,at=null;function o0(e,t){if(e=e.containerInfo,gr=ts,e=uf(e),ks(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var o=0,d=-1,b=-1,M=0,_=0,q=e,O=null;t:for(;;){for(var j;q!==a||i!==0&&q.nodeType!==3||(d=o+i),q!==s||l!==0&&q.nodeType!==3||(b=o+l),q.nodeType===3&&(o+=q.nodeValue.length),(j=q.firstChild)!==null;)O=q,q=j;for(;;){if(q===e)break t;if(O===a&&++M===i&&(d=o),O===s&&++_===l&&(b=o),(j=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=j}a=d===-1||b===-1?null:{start:d,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(vr={focusedElem:e,selectionRange:a},ts=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,i=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var P=Cl(a.type,i);e=l.getSnapshotBeforeUpdate(P,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ce(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Sr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function $d(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Na(e,a),l&4&&pi(5,a);break;case 1:if(Na(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Ce(a,a.return,o)}else{var i=Cl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ce(a,a.return,o)}}l&64&&kd(a),l&512&&gi(a,a.return);break;case 3:if(Na(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{_f(e,t)}catch(o){Ce(a,a.return,o)}}break;case 27:t===null&&l&4&&Kd(a);case 26:case 5:Na(e,a),t===null&&l&4&&Vd(a),l&512&&gi(a,a.return);break;case 12:Na(e,a);break;case 31:Na(e,a),l&4&&Pd(e,a);break;case 13:Na(e,a),l&4&&Id(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=b0.bind(null,a),B0(e,a))));break;case 22:if(l=a.memoizedState!==null||Ea,!l){t=t!==null&&t.memoizedState!==null||Pe,i=Ea;var s=Pe;Ea=l,(Pe=t)&&!s?Ca(e,a,(a.subtreeFlags&8772)!==0):Na(e,a),Ea=i,Pe=s}break;case 30:break;default:Na(e,a)}}function Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,vt=!1;function Aa(e,t,a){for(a=a.child;a!==null;)Wd(e,t,a),a=a.sibling}function Wd(e,t,a){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Yn,a)}catch{}switch(a.tag){case 26:Pe||na(a,t),Aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pe||na(a,t);var l=Ye,i=vt;Pa(a.type)&&(Ye=a.stateNode,vt=!1),Aa(e,t,a),Ci(a.stateNode),Ye=l,vt=i;break;case 5:Pe||na(a,t);case 6:if(l=Ye,i=vt,Ye=null,Aa(e,t,a),Ye=l,vt=i,Ye!==null)if(vt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(s){Ce(a,t,s)}else try{Ye.removeChild(a.stateNode)}catch(s){Ce(a,t,s)}break;case 18:Ye!==null&&(vt?(e=Ye,kh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Sn(e)):kh(Ye,a.stateNode));break;case 4:l=Ye,i=vt,Ye=a.stateNode.containerInfo,vt=!0,Aa(e,t,a),Ye=l,vt=i;break;case 0:case 11:case 14:case 15:Va(2,a,t),Pe||Va(4,a,t),Aa(e,t,a);break;case 1:Pe||(na(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Xd(a,t,l)),Aa(e,t,a);break;case 21:Aa(e,t,a);break;case 22:Pe=(l=Pe)||a.memoizedState!==null,Aa(e,t,a),Pe=l;break;default:Aa(e,t,a)}}function Pd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sn(e)}catch(a){Ce(t,t.return,a)}}}function Id(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sn(e)}catch(a){Ce(t,t.return,a)}}function f0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jd),t;default:throw Error(r(435,e.tag))}}function Uu(e,t){var a=f0(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=x0.bind(null,e,l);l.then(i,i)}})}function bt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],s=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(Pa(d.type)){Ye=d.stateNode,vt=!1;break e}break;case 5:Ye=d.stateNode,vt=!1;break e;case 3:case 4:Ye=d.stateNode.containerInfo,vt=!0;break e}d=d.return}if(Ye===null)throw Error(r(160));Wd(s,o,i),Ye=null,vt=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)eh(t,e),t=t.sibling}var Kt=null;function eh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),xt(e),l&4&&(Va(3,e,e.return),pi(3,e),Va(5,e,e.return));break;case 1:bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),l&64&&Ea&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Kt;if(bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":s=i.getElementsByTagName("title")[0],(!s||s[Xn]||s[it]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(l),i.head.insertBefore(s,i.querySelector("head > title"))),rt(s,l,a),s[it]=e,tt(s),l=s;break e;case"link":var o=em("link","href",i).get(l+(a.href||""));if(o){for(var d=0;d<o.length;d++)if(s=o[d],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(d,1);break t}}s=i.createElement(l),rt(s,l,a),i.head.appendChild(s);break;case"meta":if(o=em("meta","content",i).get(l+(a.content||""))){for(d=0;d<o.length;d++)if(s=o[d],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(d,1);break t}}s=i.createElement(l),rt(s,l,a),i.head.appendChild(s);break;default:throw Error(r(468,l))}s[it]=e,tt(s),l=s}e.stateNode=l}else tm(i,e.type,e.stateNode);else e.stateNode=Ih(i,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?tm(i,e.type,e.stateNode):Ih(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,a.memoizedProps)}break;case 27:bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),a!==null&&l&4&&Kc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(bt(t,e),xt(e),l&512&&(Pe||a===null||na(a,a.return)),e.flags&32){i=e.stateNode;try{kl(i,"")}catch(P){Ce(e,e.return,P)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Kc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(Fc=!0);break;case 6:if(bt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){Ce(e,e.return,P)}}break;case 3:if(Wu=null,i=Kt,Kt=$u(t.containerInfo),bt(t,e),Kt=i,xt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Sn(t.containerInfo)}catch(P){Ce(e,e.return,P)}Fc&&(Fc=!1,th(e));break;case 4:l=Kt,Kt=$u(e.stateNode.containerInfo),bt(t,e),xt(e),Kt=l;break;case 12:bt(t,e),xt(e);break;case 31:bt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 13:bt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qu=Ie()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 22:i=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,M=Ea,_=Pe;if(Ea=M||i,Pe=_||b,bt(t,e),Pe=_,Ea=M,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||b||Ea||Pe||Ml(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(s=b.stateNode,i)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=b.stateNode;var q=b.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;d.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(P){Ce(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(P){Ce(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var j=b.stateNode;i?Xh(j,!0):Xh(b.stateNode,!1)}catch(P){Ce(b,b.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Uu(e,a))));break;case 19:bt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 30:break;case 21:break;default:bt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Zd(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var i=a.stateNode,s=Jc(e);Du(e,s,i);break;case 5:var o=a.stateNode;a.flags&32&&(kl(o,""),a.flags&=-33);var d=Jc(e);Du(e,d,o);break;case 3:case 4:var b=a.stateNode.containerInfo,M=Jc(e);$c(e,M,b);break;default:throw Error(r(161))}}catch(_){Ce(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;th(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$d(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Va(4,t,t.return),Ml(t);break;case 1:na(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xd(t,t.return,a),Ml(t);break;case 27:Ci(t.stateNode);case 26:case 5:na(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function Ca(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Ca(i,s,a),pi(4,s);break;case 1:if(Ca(i,s,a),l=s,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Ce(l,l.return,M)}if(l=s,i=l.updateQueue,i!==null){var d=l.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)wf(b[i],d)}catch(M){Ce(l,l.return,M)}}a&&o&64&&kd(s),gi(s,s.return);break;case 27:Kd(s);case 26:case 5:Ca(i,s,a),a&&l===null&&o&4&&Vd(s),gi(s,s.return);break;case 12:Ca(i,s,a);break;case 31:Ca(i,s,a),a&&o&4&&Pd(i,s);break;case 13:Ca(i,s,a),a&&o&4&&Id(i,s);break;case 22:s.memoizedState===null&&Ca(i,s,a),gi(s,s.return);break;case 30:break;default:Ca(i,s,a)}t=t.sibling}}function Wc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&li(a))}function Pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ah(e,t,a,l),t=t.sibling}function ah(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),i&2048&&pi(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e)));break;case 12:if(i&2048){Jt(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,d=s.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ce(t,t.return,b)}}else Jt(e,t,a,l);break;case 31:Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?Jt(e,t,a,l):vi(e,t):s._visibility&2?Jt(e,t,a,l):(s._visibility|=2,on(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Wc(o,t);break;case 24:Jt(e,t,a,l),i&2048&&Pc(t.alternate,t);break;default:Jt(e,t,a,l)}}function on(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,d=a,b=l,M=o.flags;switch(o.tag){case 0:case 11:case 15:on(s,o,d,b,i),pi(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?on(s,o,d,b,i):vi(s,o):(_._visibility|=2,on(s,o,d,b,i)),i&&M&2048&&Wc(o.alternate,o);break;case 24:on(s,o,d,b,i),i&&M&2048&&Pc(o.alternate,o);break;default:on(s,o,d,b,i)}t=t.sibling}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:vi(a,l),i&2048&&Wc(l.alternate,l);break;case 24:vi(a,l),i&2048&&Pc(l.alternate,l);break;default:vi(a,l)}t=t.sibling}}var bi=8192;function fn(e,t,a){if(e.subtreeFlags&bi)for(e=e.child;e!==null;)lh(e,t,a),e=e.sibling}function lh(e,t,a){switch(e.tag){case 26:fn(e,t,a),e.flags&bi&&e.memoizedState!==null&&W0(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:fn(e,t,a);break;case 3:case 4:var l=Kt;Kt=$u(e.stateNode.containerInfo),fn(e,t,a),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=bi,bi=16777216,fn(e,t,a),bi=l):fn(e,t,a));break;default:fn(e,t,a)}}function nh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];at=l,uh(l,e)}nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(e),e=e.sibling}function ih(e){switch(e.tag){case 0:case 11:case 15:xi(e),e.flags&2048&&Va(9,e,e.return);break;case 3:xi(e);break;case 12:xi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hu(e)):xi(e);break;default:xi(e)}}function Hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];at=l,uh(l,e)}nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Va(8,t,t.return),Hu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Hu(t));break;default:Hu(t)}e=e.sibling}}function uh(e,t){for(;at!==null;){var a=at;switch(a.tag){case 0:case 11:case 15:Va(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:li(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,at=l;else e:for(a=e;at!==null;){l=at;var i=l.sibling,s=l.return;if(Fd(l),l===a){at=null;break e}if(i!==null){i.return=s,at=i;break e}at=s}}}var d0={getCacheForType:function(e){var t=st($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return st($e).controller.signal}},h0=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Ue=null,ye=null,ge=0,Ne=0,jt=null,Za=!1,dn=!1,Ic=!1,Ma=0,Xe=0,Ka=0,Ol=0,er=0,zt=0,hn=0,Si=null,St=null,tr=!1,qu=0,sh=0,Lu=1/0,Bu=null,Ja=null,et=0,$a=null,mn=null,Oa=0,ar=0,lr=null,ch=null,Ti=0,nr=null;function Rt(){return(Ee&2)!==0&&ge!==0?ge&-ge:R.T!==null?or():Eo()}function rh(){if(zt===0)if((ge&536870912)===0||be){var e=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),zt=e}else zt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),zt}function Tt(e,t,a){(e===Ue&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(yn(e,0),Fa(e,ge,zt,!1)),kn(e,a),((Ee&2)===0||e!==Ue)&&(e===Ue&&((Ee&2)===0&&(Ol|=a),Xe===4&&Fa(e,ge,zt,!1)),ia(e))}function oh(e,t,a){if((Ee&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Qn(e,t),i=l?p0(e,t):ur(e,t,!0),s=l;do{if(i===0){dn&&!l&&Fa(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!m0(a)){i=ur(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var d=e;i=Si;var b=d.current.memoizedState.isDehydrated;if(b&&(yn(d,o).flags|=256),o=ur(d,o,!1),o!==2){if(Ic&&!b){d.errorRecoveryDisabledLanes|=s,Ol|=s,i=4;break e}s=St,St=i,s!==null&&(St===null?St=s:St.push.apply(St,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){yn(e,0),Fa(e,t,0,!0);break}e:{switch(l=e,s=i,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Fa(l,t,zt,!Za);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=qu+300-Ie(),10<i)){if(Fa(l,t,zt,!Za),$i(l,0,!0)!==0)break e;Oa=t,l.timeoutHandle=Yh(fh.bind(null,l,a,St,Bu,tr,t,zt,Ol,hn,Za,s,"Throttled",-0,0),i);break e}fh(l,a,St,Bu,tr,t,zt,Ol,hn,Za,s,null,-0,0)}}break}while(!0);ia(e)}function fh(e,t,a,l,i,s,o,d,b,M,_,q,O,j){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},lh(t,s,q);var P=(s&62914560)===s?qu-Ie():(s&4194048)===s?sh-Ie():0;if(P=P0(q,P),P!==null){Oa=s,e.cancelPendingCommit=P(bh.bind(null,e,t,s,a,l,i,o,d,b,_,q,null,O,j)),Fa(e,s,o,!M);return}}bh(e,t,s,a,l,i,o,d,b)}function m0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],s=i.getSnapshot;i=i.value;try{if(!Nt(s(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fa(e,t,a,l){t&=~er,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var s=31-At(i),o=1<<s;l[s]=-1,i&=~o}a!==0&&xo(e,a,t)}function Gu(){return(Ee&6)===0?(Ei(0),!1):!0}function ir(){if(ye!==null){if(Ne===0)var e=ye.return;else e=ye,ga=bl=null,Sc(e),nn=null,ii=0,e=ye;for(;e!==null;)Qd(e.alternate,e),e=e.return;ye=null}}function yn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,D0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Oa=0,ir(),Ue=e,ye=a=ya(e.current,null),ge=t,Ne=0,jt=null,Za=!1,dn=Qn(e,t),Ic=!1,hn=zt=er=Ol=Ka=Xe=0,St=Si=null,tr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-At(l),s=1<<i;t|=e[i],l&=~s}return Ma=t,su(),a}function dh(e,t){de=null,R.H=hi,t===ln||t===yu?(t=Of(),Ne=3):t===rc?(t=Of(),Ne=4):Ne=t===qc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,ye===null&&(Xe=1,ju(e,qt(t,e.current)))}function hh(){var e=Mt.current;return e===null?!0:(ge&4194048)===ge?Yt===null:(ge&62914560)===ge||(ge&536870912)!==0?e===Yt:!1}function mh(){var e=R.H;return R.H=hi,e===null?hi:e}function yh(){var e=R.A;return R.A=d0,e}function Yu(){Xe=4,Za||(ge&4194048)!==ge&&Mt.current!==null||(dn=!0),(Ka&134217727)===0&&(Ol&134217727)===0||Ue===null||Fa(Ue,ge,zt,!1)}function ur(e,t,a){var l=Ee;Ee|=2;var i=mh(),s=yh();(Ue!==e||ge!==t)&&(Bu=null,yn(e,t)),t=!1;var o=Xe;e:do try{if(Ne!==0&&ye!==null){var d=ye,b=jt;switch(Ne){case 8:ir(),o=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var M=Ne;if(Ne=0,jt=null,pn(e,d,b,M),a&&dn){o=0;break e}break;default:M=Ne,Ne=0,jt=null,pn(e,d,b,M)}}y0(),o=Xe;break}catch(_){dh(e,_)}while(!0);return t&&e.shellSuspendCounter++,ga=bl=null,Ee=l,R.H=i,R.A=s,ye===null&&(Ue=null,ge=0,su()),o}function y0(){for(;ye!==null;)ph(ye)}function p0(e,t){var a=Ee;Ee|=2;var l=mh(),i=yh();Ue!==e||ge!==t?(Bu=null,Lu=Ie()+500,yn(e,t)):dn=Qn(e,t);e:do try{if(Ne!==0&&ye!==null){t=ye;var s=jt;t:switch(Ne){case 1:Ne=0,jt=null,pn(e,t,s,1);break;case 2:case 9:if(Cf(s)){Ne=0,jt=null,gh(t);break}t=function(){Ne!==2&&Ne!==9||Ue!==e||(Ne=7),ia(e)},s.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Cf(s)?(Ne=0,jt=null,gh(t)):(Ne=0,jt=null,pn(e,t,s,7));break;case 5:var o=null;switch(ye.tag){case 26:o=ye.memoizedState;case 5:case 27:var d=ye;if(o?am(o):d.stateNode.complete){Ne=0,jt=null;var b=d.sibling;if(b!==null)ye=b;else{var M=d.return;M!==null?(ye=M,Qu(M)):ye=null}break t}}Ne=0,jt=null,pn(e,t,s,5);break;case 6:Ne=0,jt=null,pn(e,t,s,6);break;case 8:ir(),Xe=6;break e;default:throw Error(r(462))}}g0();break}catch(_){dh(e,_)}while(!0);return ga=bl=null,R.H=l,R.A=i,Ee=a,ye!==null?0:(Ue=null,ge=0,su(),Xe)}function g0(){for(;ye!==null&&!L();)ph(ye)}function ph(e){var t=Gd(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?Qu(e):ye=t}function gh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Dd(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=Dd(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Sc(t);default:Qd(a,t),t=ye=yf(t,Ma),t=Gd(a,t,Ma)}e.memoizedProps=e.pendingProps,t===null?Qu(e):ye=t}function pn(e,t,a,l){ga=bl=null,Sc(t),nn=null,ii=0;var i=t.return;try{if(i0(e,i,t,a,ge)){Xe=1,ju(e,qt(a,e.current)),ye=null;return}}catch(s){if(i!==null)throw ye=i,s;Xe=1,ju(e,qt(a,e.current)),ye=null;return}t.flags&32768?(be||l===1?e=!0:dn||(ge&536870912)!==0?e=!1:(Za=e=!0,(l===2||l===9||l===3||l===6)&&(l=Mt.current,l!==null&&l.tag===13&&(l.flags|=16384))),vh(t,e)):Qu(t)}function Qu(e){var t=e;do{if((t.flags&32768)!==0){vh(t,Za);return}e=t.return;var a=c0(t.alternate,t,Ma);if(a!==null){ye=a;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Xe===0&&(Xe=5)}function vh(e,t){do{var a=r0(e.alternate,e);if(a!==null){a.flags&=32767,ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=a}while(e!==null);Xe=6,ye=null}function bh(e,t,a,l,i,s,o,d,b){e.cancelPendingCommit=null;do ku();while(et!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=Js,Fy(e,a,s,o,d,b),e===Ue&&(ye=Ue=null,ge=0),mn=t,$a=e,Oa=a,ar=s,lr=i,ch=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,S0(Vi,function(){return Ah(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,i=Y.p,Y.p=2,o=Ee,Ee|=4;try{o0(e,t,a)}finally{Ee=o,Y.p=i,R.T=l}}et=1,xh(),Sh(),Th()}}function xh(){if(et===1){et=0;var e=$a,t=mn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=Y.p;Y.p=2;var i=Ee;Ee|=4;try{eh(t,e);var s=vr,o=uf(e.containerInfo),d=s.focusedElem,b=s.selectionRange;if(o!==d&&d&&d.ownerDocument&&nf(d.ownerDocument.documentElement,d)){if(b!==null&&ks(d)){var M=b.start,_=b.end;if(_===void 0&&(_=M),"selectionStart"in d)d.selectionStart=M,d.selectionEnd=Math.min(_,d.value.length);else{var q=d.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var j=O.getSelection(),P=d.textContent.length,ie=Math.min(b.start,P),Re=b.end===void 0?ie:Math.min(b.end,P);!j.extend&&ie>Re&&(o=Re,Re=ie,ie=o);var A=lf(d,ie),T=lf(d,Re);if(A&&T&&(j.rangeCount!==1||j.anchorNode!==A.node||j.anchorOffset!==A.offset||j.focusNode!==T.node||j.focusOffset!==T.offset)){var C=q.createRange();C.setStart(A.node,A.offset),j.removeAllRanges(),ie>Re?(j.addRange(C),j.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),j.addRange(C))}}}}for(q=[],j=d;j=j.parentNode;)j.nodeType===1&&q.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<q.length;d++){var H=q[d];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}ts=!!gr,vr=gr=null}finally{Ee=i,Y.p=l,R.T=a}}e.current=t,et=2}}function Sh(){if(et===2){et=0;var e=$a,t=mn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=Y.p;Y.p=2;var i=Ee;Ee|=4;try{$d(e,t.alternate,t)}finally{Ee=i,Y.p=l,R.T=a}}et=3}}function Th(){if(et===4||et===3){et=0,Oe();var e=$a,t=mn,a=Oa,l=ch;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,mn=$a=null,Eh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ja=null),As(a),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Yn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,i=Y.p,Y.p=2,R.T=null;try{for(var s=e.onRecoverableError,o=0;o<l.length;o++){var d=l[o];s(d.value,{componentStack:d.stack})}}finally{R.T=t,Y.p=i}}(Oa&3)!==0&&ku(),ia(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===nr?Ti++:(Ti=0,nr=e):Ti=0,Ei(0)}}function Eh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function ku(){return xh(),Sh(),Th(),Ah()}function Ah(){if(et!==5)return!1;var e=$a,t=ar;ar=0;var a=As(Oa),l=R.T,i=Y.p;try{Y.p=32>a?32:a,R.T=null,a=lr,lr=null;var s=$a,o=Oa;if(et=0,mn=$a=null,Oa=0,(Ee&6)!==0)throw Error(r(331));var d=Ee;if(Ee|=4,ih(s.current),ah(s,s.current,o,a),Ee=d,Ei(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Yn,s)}catch{}return!0}finally{Y.p=i,R.T=l,Eh(e,t)}}function Nh(e,t,a){t=qt(a,t),t=Hc(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(kn(e,2),ia(e))}function Ce(e,t,a){if(e.tag===3)Nh(e,e,a);else for(;t!==null;){if(t.tag===3){Nh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ja===null||!Ja.has(l))){e=qt(a,e),a=Cd(2),l=Qa(t,a,2),l!==null&&(Md(a,l,t,e),kn(l,2),ia(l));break}}t=t.return}}function sr(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new h0;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(Ic=!0,i.add(a),e=v0.bind(null,e,t,a),t.then(e,e))}function v0(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(ge&a)===a&&(Xe===4||Xe===3&&(ge&62914560)===ge&&300>Ie()-qu?(Ee&2)===0&&yn(e,0):er|=a,hn===ge&&(hn=0)),ia(e)}function Ch(e,t){t===0&&(t=bo()),e=pl(e,t),e!==null&&(kn(e,t),ia(e))}function b0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ch(e,a)}function x0(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Ch(e,a)}function S0(e,t){return Gn(e,t)}var Xu=null,gn=null,cr=!1,Vu=!1,rr=!1,Wa=0;function ia(e){e!==gn&&e.next===null&&(gn===null?Xu=gn=e:gn=gn.next=e),Vu=!0,cr||(cr=!0,E0())}function Ei(e,t){if(!rr&&Vu){rr=!0;do for(var a=!1,l=Xu;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var o=l.suspendedLanes,d=l.pingedLanes;s=(1<<31-At(42|e)+1)-1,s&=i&~(o&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,zh(l,s))}else s=ge,s=$i(l,l===Ue?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Qn(l,s)||(a=!0,zh(l,s));l=l.next}while(a);rr=!1}}function T0(){Mh()}function Mh(){Vu=cr=!1;var e=0;Wa!==0&&_0()&&(e=Wa);for(var t=Ie(),a=null,l=Xu;l!==null;){var i=l.next,s=Oh(l,t);s===0?(l.next=null,a===null?Xu=i:a.next=i,i===null&&(gn=a)):(a=l,(e!==0||(s&3)!==0)&&(Vu=!0)),l=i}et!==0&&et!==5||Ei(e),Wa!==0&&(Wa=0)}function Oh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-At(s),d=1<<o,b=i[o];b===-1?((d&a)===0||(d&l)!==0)&&(i[o]=$y(d,t)):b<=t&&(e.expiredLanes|=d),s&=~d}if(t=Ue,a=ge,a=$i(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Hl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Qn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Hl(l),As(a)){case 2:case 8:a=go;break;case 32:a=Vi;break;case 268435456:a=vo;break;default:a=Vi}return l=jh.bind(null,e),a=Gn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Hl(l),e.callbackPriority=2,e.callbackNode=null,2}function jh(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ku()&&e.callbackNode!==a)return null;var l=ge;return l=$i(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(oh(e,l,t),Oh(e,Ie()),e.callbackNode!=null&&e.callbackNode===a?jh.bind(null,e):null)}function zh(e,t){if(ku())return null;oh(e,t,!0)}function E0(){U0(function(){(Ee&6)!==0?Gn(po,T0):Mh()})}function or(){if(Wa===0){var e=tn;e===0&&(e=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),Wa=e}return Wa}function Rh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ii(""+e)}function wh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function A0(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var s=Rh((i[pt]||null).action),o=l.submitter;o&&(t=(t=o[pt]||null)?Rh(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var d=new lu("action","action",null,l,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Wa!==0){var b=o?wh(i,o):new FormData(i);zc(a,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(d.preventDefault(),b=o?wh(i,o):new FormData(i),zc(a,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var fr=0;fr<Ks.length;fr++){var dr=Ks[fr],N0=dr.toLowerCase(),C0=dr[0].toUpperCase()+dr.slice(1);Zt(N0,"on"+C0)}Zt(rf,"onAnimationEnd"),Zt(of,"onAnimationIteration"),Zt(ff,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(Qp,"onTransitionRun"),Zt(kp,"onTransitionStart"),Zt(Xp,"onTransitionCancel"),Zt(df,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),M0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function _h(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var o=l.length-1;0<=o;o--){var d=l[o],b=d.instance,M=d.currentTarget;if(d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=M;try{s(i)}catch(_){uu(_)}i.currentTarget=null,s=b}else for(o=0;o<l.length;o++){if(d=l[o],b=d.instance,M=d.currentTarget,d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=M;try{s(i)}catch(_){uu(_)}i.currentTarget=null,s=b}}}}function pe(e,t){var a=t[Ns];a===void 0&&(a=t[Ns]=new Set);var l=e+"__bubble";a.has(l)||(Dh(t,e,2,!1),a.add(l))}function hr(e,t,a){var l=0;t&&(l|=4),Dh(a,e,l,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function mr(e){if(!e[Zu]){e[Zu]=!0,Co.forEach(function(a){a!=="selectionchange"&&(M0.has(a)||hr(a,!1,e),hr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zu]||(t[Zu]=!0,hr("selectionchange",!1,t))}}function Dh(e,t,a,l){switch(rm(t)){case 2:var i=tg;break;case 8:i=ag;break;default:i=jr}a=i.bind(null,t,a,e),i=void 0,!Ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function yr(e,t,a,l,i){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var d=l.stateNode.containerInfo;if(d===i)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;d!==null;){if(o=Ll(d),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=s=o;continue e}d=d.parentNode}}l=l.return}Lo(function(){var M=s,_=ws(a),q=[];e:{var O=hf.get(e);if(O!==void 0){var j=lu,P=e;switch(e){case"keypress":if(tu(a)===0)break e;case"keydown":case"keyup":j=xp;break;case"focusin":P="focus",j=Ls;break;case"focusout":P="blur",j=Ls;break;case"beforeblur":case"afterblur":j=Ls;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Yo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=cp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Ep;break;case rf:case of:case ff:j=fp;break;case df:j=Np;break;case"scroll":case"scrollend":j=up;break;case"wheel":j=Mp;break;case"copy":case"cut":case"paste":j=hp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=ko;break;case"toggle":case"beforetoggle":j=jp}var ie=(t&4)!==0,Re=!ie&&(e==="scroll"||e==="scrollend"),A=ie?O!==null?O+"Capture":null:O;ie=[];for(var T=M,C;T!==null;){var H=T;if(C=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||C===null||A===null||(H=Zn(T,A),H!=null&&ie.push(Ni(T,H,C))),Re)break;T=T.return}0<ie.length&&(O=new j(O,P,null,a,_),q.push({event:O,listeners:ie}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",O&&a!==Rs&&(P=a.relatedTarget||a.fromElement)&&(Ll(P)||P[ql]))break e;if((j||O)&&(O=_.window===_?_:(O=_.ownerDocument)?O.defaultView||O.parentWindow:window,j?(P=a.relatedTarget||a.toElement,j=M,P=P?Ll(P):null,P!==null&&(Re=m(P),ie=P.tag,P!==Re||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(j=null,P=M),j!==P)){if(ie=Yo,H="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ie=ko,H="onPointerLeave",A="onPointerEnter",T="pointer"),Re=j==null?O:Vn(j),C=P==null?O:Vn(P),O=new ie(H,T+"leave",j,a,_),O.target=Re,O.relatedTarget=C,H=null,Ll(_)===M&&(ie=new ie(A,T+"enter",P,a,_),ie.target=C,ie.relatedTarget=Re,H=ie),Re=H,j&&P)t:{for(ie=O0,A=j,T=P,C=0,H=A;H;H=ie(H))C++;H=0;for(var le=T;le;le=ie(le))H++;for(;0<C-H;)A=ie(A),C--;for(;0<H-C;)T=ie(T),H--;for(;C--;){if(A===T||T!==null&&A===T.alternate){ie=A;break t}A=ie(A),T=ie(T)}ie=null}else ie=null;j!==null&&Uh(q,O,j,ie,!1),P!==null&&Re!==null&&Uh(q,Re,P,ie,!0)}}e:{if(O=M?Vn(M):window,j=O.nodeName&&O.nodeName.toLowerCase(),j==="select"||j==="input"&&O.type==="file")var Se=Wo;else if($o(O))if(Po)Se=Bp;else{Se=qp;var I=Hp}else j=O.nodeName,!j||j.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?M&&zs(M.elementType)&&(Se=Wo):Se=Lp;if(Se&&(Se=Se(e,M))){Fo(q,Se,a,_);break e}I&&I(e,O,M),e==="focusout"&&M&&O.type==="number"&&M.memoizedProps.value!=null&&js(O,"number",O.value)}switch(I=M?Vn(M):window,e){case"focusin":($o(I)||I.contentEditable==="true")&&(Kl=I,Xs=M,ei=null);break;case"focusout":ei=Xs=Kl=null;break;case"mousedown":Vs=!0;break;case"contextmenu":case"mouseup":case"dragend":Vs=!1,sf(q,a,_);break;case"selectionchange":if(Yp)break;case"keydown":case"keyup":sf(q,a,_)}var he;if(Gs)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Zl?Ko(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(Xo&&a.locale!=="ko"&&(Zl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Zl&&(he=Bo()):(Ua=_,Us="value"in Ua?Ua.value:Ua.textContent,Zl=!0)),I=Ku(M,ve),0<I.length&&(ve=new Qo(ve,e,null,a,_),q.push({event:ve,listeners:I}),he?ve.data=he:(he=Jo(a),he!==null&&(ve.data=he)))),(he=Rp?wp(e,a):_p(e,a))&&(ve=Ku(M,"onBeforeInput"),0<ve.length&&(I=new Qo("onBeforeInput","beforeinput",null,a,_),q.push({event:I,listeners:ve}),I.data=he)),A0(q,e,M,a,_)}_h(q,t)})}function Ni(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ku(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=Zn(e,a),i!=null&&l.unshift(Ni(e,i,s)),i=Zn(e,t),i!=null&&l.push(Ni(e,i,s))),e.tag===3)return l;e=e.return}return[]}function O0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Uh(e,t,a,l,i){for(var s=t._reactName,o=[];a!==null&&a!==l;){var d=a,b=d.alternate,M=d.stateNode;if(d=d.tag,b!==null&&b===l)break;d!==5&&d!==26&&d!==27||M===null||(b=M,i?(M=Zn(a,s),M!=null&&o.unshift(Ni(a,M,b))):i||(M=Zn(a,s),M!=null&&o.push(Ni(a,M,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var j0=/\r\n?/g,z0=/\u0000|\uFFFD/g;function Hh(e){return(typeof e=="string"?e:""+e).replace(j0,`
50
+ `).replace(z0,"")}function qh(e,t){return t=Hh(t),Hh(e)===t}function ze(e,t,a,l,i,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||kl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&kl(e,""+l);break;case"className":Wi(e,"class",l);break;case"tabIndex":Wi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Wi(e,a,l);break;case"style":Ho(e,l,s);break;case"data":if(t!=="object"){Wi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ii(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(t!=="input"&&ze(e,t,"name",i.name,i,null),ze(e,t,"formEncType",i.formEncType,i,null),ze(e,t,"formMethod",i.formMethod,i,null),ze(e,t,"formTarget",i.formTarget,i,null)):(ze(e,t,"encType",i.encType,i,null),ze(e,t,"method",i.method,i,null),ze(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ii(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ha);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ii(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Fi(e,"popover",l);break;case"xlinkActuate":da(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":da(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":da(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":da(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":da(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":da(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":da(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":da(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":da(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Fi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=np.get(a)||a,Fi(e,a,l))}}function pr(e,t,a,l,i,s){switch(a){case"style":Ho(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?kl(e,l):(typeof l=="number"||typeof l=="bigint")&&kl(e,""+l);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mo.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),s=e[pt]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Fi(e,a,l)}}}function rt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var l=!1,i=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,s,o,a,null)}}i&&ze(e,t,"srcSet",a.srcSet,a,null),l&&ze(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var d=s=o=i=null,b=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":i=_;break;case"type":o=_;break;case"checked":b=_;break;case"defaultChecked":M=_;break;case"value":s=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:ze(e,t,l,_,a,null)}}wo(e,s,d,b,M,o,i,!1);return;case"select":pe("invalid",e),l=o=s=null;for(i in a)if(a.hasOwnProperty(i)&&(d=a[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":o=d;break;case"multiple":l=d;default:ze(e,t,i,d,a,null)}t=s,a=o,e.multiple=!!l,t!=null?Ql(e,!!l,t,!1):a!=null&&Ql(e,!!l,a,!0);return;case"textarea":pe("invalid",e),s=i=l=null;for(o in a)if(a.hasOwnProperty(o)&&(d=a[o],d!=null))switch(o){case"value":l=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:ze(e,t,o,d,a,null)}Do(e,l,i,s);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(e,t,b,l,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(l=0;l<Ai.length;l++)pe(Ai[l],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,M,l,a,null)}return;default:if(zs(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&pr(e,t,_,l,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!=null&&ze(e,t,d,l,a,null))}function R0(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,d=null,b=null,M=null,_=null;for(j in a){var q=a[j];if(a.hasOwnProperty(j)&&q!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":b=q;default:l.hasOwnProperty(j)||ze(e,t,j,null,l,q)}}for(var O in l){var j=l[O];if(q=a[O],l.hasOwnProperty(O)&&(j!=null||q!=null))switch(O){case"type":s=j;break;case"name":i=j;break;case"checked":M=j;break;case"defaultChecked":_=j;break;case"value":o=j;break;case"defaultValue":d=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:j!==q&&ze(e,t,O,j,l,q)}}Os(e,o,d,b,M,_,s,i);return;case"select":j=o=d=O=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":j=b;default:l.hasOwnProperty(s)||ze(e,t,s,null,l,b)}for(i in l)if(s=l[i],b=a[i],l.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":O=s;break;case"defaultValue":d=s;break;case"multiple":o=s;default:s!==b&&ze(e,t,i,s,l,b)}t=d,a=o,l=j,O!=null?Ql(e,!!a,O,!1):!!l!=!!a&&(t!=null?Ql(e,!!a,t,!0):Ql(e,!!a,a?[]:"",!1));return;case"textarea":j=O=null;for(d in a)if(i=a[d],a.hasOwnProperty(d)&&i!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ze(e,t,d,null,l,i)}for(o in l)if(i=l[o],s=a[o],l.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case"value":O=i;break;case"defaultValue":j=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==s&&ze(e,t,o,i,l,s)}_o(e,O,j);return;case"option":for(var P in a)if(O=a[P],a.hasOwnProperty(P)&&O!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:ze(e,t,P,null,l,O)}for(b in l)if(O=l[b],j=a[b],l.hasOwnProperty(b)&&O!==j&&(O!=null||j!=null))switch(b){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:ze(e,t,b,O,l,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)O=a[ie],a.hasOwnProperty(ie)&&O!=null&&!l.hasOwnProperty(ie)&&ze(e,t,ie,null,l,O);for(M in l)if(O=l[M],j=a[M],l.hasOwnProperty(M)&&O!==j&&(O!=null||j!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:ze(e,t,M,O,l,j)}return;default:if(zs(t)){for(var Re in a)O=a[Re],a.hasOwnProperty(Re)&&O!==void 0&&!l.hasOwnProperty(Re)&&pr(e,t,Re,void 0,l,O);for(_ in l)O=l[_],j=a[_],!l.hasOwnProperty(_)||O===j||O===void 0&&j===void 0||pr(e,t,_,O,l,j);return}}for(var A in a)O=a[A],a.hasOwnProperty(A)&&O!=null&&!l.hasOwnProperty(A)&&ze(e,t,A,null,l,O);for(q in l)O=l[q],j=a[q],!l.hasOwnProperty(q)||O===j||O==null&&j==null||ze(e,t,q,O,l,j)}function Lh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],s=i.transferSize,o=i.initiatorType,d=i.duration;if(s&&d&&Lh(o)){for(o=0,d=i.responseEnd,l+=1;l<a.length;l++){var b=a[l],M=b.startTime;if(M>d)break;var _=b.transferSize,q=b.initiatorType;_&&Lh(q)&&(b=b.responseEnd,o+=_*(b<d?1:(d-M)/(b-M)))}if(--l,t+=8*(s+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var gr=null,vr=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function Bh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function br(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xr=null;function _0(){var e=window.event;return e&&e.type==="popstate"?e===xr?!1:(xr=e,!0):(xr=null,!1)}var Yh=typeof setTimeout=="function"?setTimeout:void 0,D0=typeof clearTimeout=="function"?clearTimeout:void 0,Qh=typeof Promise=="function"?Promise:void 0,U0=typeof queueMicrotask=="function"?queueMicrotask:typeof Qh<"u"?function(e){return Qh.resolve(null).then(e).catch(H0)}:Yh;function H0(e){setTimeout(function(){throw e})}function Pa(e){return e==="head"}function kh(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),Sn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ci(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ci(a);for(var s=a.firstChild;s;){var o=s.nextSibling,d=s.nodeName;s[Xn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&Ci(e.ownerDocument.body);a=i}while(a);Sn(t)}function Xh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Sr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Sr(a),Cs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function q0(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Xn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function L0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Qt(e.nextSibling),e===null))return null;return e}function Vh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function Tr(e){return e.data==="$?"||e.data==="$~"}function Er(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function B0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ar=null;function Zh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Qt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Kh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Jh(e,t,a){switch(t=Ju(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cs(e)}var kt=new Map,$h=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=Y.d;Y.d={f:G0,r:Y0,D:Q0,C:k0,L:X0,m:V0,X:K0,S:Z0,M:J0};function G0(){var e=ja.f(),t=Gu();return e||t}function Y0(e){var t=Bl(e);t!==null&&t.tag===5&&t.type==="form"?dd(t):ja.r(e)}var vn=typeof document>"u"?null:document;function Fh(e,t,a){var l=vn;if(l&&typeof t=="string"&&t){var i=Ut(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),$h.has(i)||($h.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),rt(t,"link",e),tt(t),l.head.appendChild(t)))}}function Q0(e){ja.D(e),Fh("dns-prefetch",e,null)}function k0(e,t){ja.C(e,t),Fh("preconnect",e,t)}function X0(e,t,a){ja.L(e,t,a);var l=vn;if(l&&e&&t){var i='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Ut(a.imageSizes)+'"]')):i+='[href="'+Ut(e)+'"]';var s=i;switch(t){case"style":s=bn(e);break;case"script":s=xn(e)}kt.has(s)||(e=E({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),kt.set(s,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Mi(s))||t==="script"&&l.querySelector(Oi(s))||(t=l.createElement("link"),rt(t,"link",e),tt(t),l.head.appendChild(t)))}}function V0(e,t){ja.m(e,t);var a=vn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=xn(e)}if(!kt.has(s)&&(e=E({rel:"modulepreload",href:e},t),kt.set(s,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Oi(s)))return}l=a.createElement("link"),rt(l,"link",e),tt(l),a.head.appendChild(l)}}}function Z0(e,t,a){ja.S(e,t,a);var l=vn;if(l&&e){var i=Gl(l).hoistableStyles,s=bn(e);t=t||"default";var o=i.get(s);if(!o){var d={loading:0,preload:null};if(o=l.querySelector(Mi(s)))d.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},a),(a=kt.get(s))&&Nr(e,a);var b=o=l.createElement("link");tt(b),rt(b,"link",e),b._p=new Promise(function(M,_){b.onload=M,b.onerror=_}),b.addEventListener("load",function(){d.loading|=1}),b.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Fu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:d},i.set(s,o)}}}function K0(e,t){ja.X(e,t);var a=vn;if(a&&e){var l=Gl(a).hoistableScripts,i=xn(e),s=l.get(i);s||(s=a.querySelector(Oi(i)),s||(e=E({src:e,async:!0},t),(t=kt.get(i))&&Cr(e,t),s=a.createElement("script"),tt(s),rt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function J0(e,t){ja.M(e,t);var a=vn;if(a&&e){var l=Gl(a).hoistableScripts,i=xn(e),s=l.get(i);s||(s=a.querySelector(Oi(i)),s||(e=E({src:e,async:!0,type:"module"},t),(t=kt.get(i))&&Cr(e,t),s=a.createElement("script"),tt(s),rt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Wh(e,t,a,l){var i=(i=re.current)?$u(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=bn(a.href),a=Gl(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=bn(a.href);var s=Gl(i).hoistableStyles,o=s.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=i.querySelector(Mi(e)))&&!s._p&&(o.instance=s,o.state.loading=5),kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},kt.set(e,a),s||$0(i,e,a,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xn(a),a=Gl(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function bn(e){return'href="'+Ut(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function Ph(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function $0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),rt(t,"link",a),tt(t),e.head.appendChild(t))}function xn(e){return'[src="'+Ut(e)+'"]'}function Oi(e){return"script[async]"+e}function Ih(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(l)return t.instance=l,tt(l),l;var i=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),tt(l),rt(l,"style",i),Fu(l,a.precedence,e),t.instance=l;case"stylesheet":i=bn(a.href);var s=e.querySelector(Mi(i));if(s)return t.state.loading|=4,t.instance=s,tt(s),s;l=Ph(a),(i=kt.get(i))&&Nr(l,i),s=(e.ownerDocument||e).createElement("link"),tt(s);var o=s;return o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),rt(s,"link",l),t.state.loading|=4,Fu(s,a.precedence,e),t.instance=s;case"script":return s=xn(a.src),(i=e.querySelector(Oi(s)))?(t.instance=i,tt(i),i):(l=a,(i=kt.get(s))&&(l=E({},a),Cr(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),tt(i),rt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Fu(l,a.precedence,e));return t.instance}function Fu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,o=0;o<l.length;o++){var d=l[o];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Nr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wu=null;function em(e,t,a){if(Wu===null){var l=new Map,i=Wu=new Map;i.set(a,l)}else i=Wu,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var s=a[i];if(!(s[Xn]||s[it]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var d=l.get(o);d?d.push(s):l.set(o,[s])}}return l}function tm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function F0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function W0(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=bn(l.href),s=t.querySelector(Mi(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,tt(s);return}s=t.ownerDocument||t,l=Ph(l),(i=kt.get(i))&&Nr(l,i),s=s.createElement("link"),tt(s);var o=s;o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),rt(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Pu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Mr=0;function P0(e,t){return e.stylesheets&&e.count===0&&es(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&es(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Mr===0&&(Mr=62500*w0());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&es(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Mr?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Iu=null;function es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Iu=new Map,t.forEach(I0,e),Iu=null,Pu.call(e))}function I0(e,t){if(!(t.state.loading&4)){var a=Iu.get(e);if(a)var l=a.get(null);else{a=new Map,Iu.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}i=t.instance,o=i.getAttribute("data-precedence"),s=a.get(o)||l,s===l&&a.set(null,i),a.set(o,i),this.count++,l=Pu.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ji={$$typeof:G,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function eg(e,t,a,l,i,s,o,d,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ts(0),this.hiddenUpdates=Ts(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function lm(e,t,a,l,i,s,o,d,b,M,_,q){return e=new eg(e,t,a,o,b,M,_,q,d),t=1,s===!0&&(t|=24),s=Ct(3,null,null,t),e.current=s,s.stateNode=e,t=uc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},oc(s),e}function nm(e){return e?(e=Fl,e):Fl}function im(e,t,a,l,i,s){i=nm(i),l.context===null?l.context=i:l.pendingContext=i,l=Ya(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=Qa(e,l,t),a!==null&&(Tt(a,e,t),si(a,e,t))}function um(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Or(e,t){um(e,t),(e=e.alternate)&&um(e,t)}function sm(e){if(e.tag===13||e.tag===31){var t=pl(e,67108864);t!==null&&Tt(t,e,67108864),Or(e,67108864)}}function cm(e){if(e.tag===13||e.tag===31){var t=Rt();t=Es(t);var a=pl(e,t);a!==null&&Tt(a,e,t),Or(e,t)}}var ts=!0;function tg(e,t,a,l){var i=R.T;R.T=null;var s=Y.p;try{Y.p=2,jr(e,t,a,l)}finally{Y.p=s,R.T=i}}function ag(e,t,a,l){var i=R.T;R.T=null;var s=Y.p;try{Y.p=8,jr(e,t,a,l)}finally{Y.p=s,R.T=i}}function jr(e,t,a,l){if(ts){var i=zr(l);if(i===null)yr(e,t,l,as,a),om(e,l);else if(ng(i,e,t,a,l))l.stopPropagation();else if(om(e,l),t&4&&-1<lg.indexOf(e)){for(;i!==null;){var s=Bl(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=fl(s.pendingLanes);if(o!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var b=1<<31-At(o);d.entanglements[1]|=b,o&=~b}ia(s),(Ee&6)===0&&(Lu=Ie()+500,Ei(0))}}break;case 31:case 13:d=pl(s,2),d!==null&&Tt(d,s,2),Gu(),Or(s,2)}if(s=zr(l),s===null&&yr(e,t,l,as,a),s===i)break;i=s}i!==null&&l.stopPropagation()}else yr(e,t,l,null,a)}}function zr(e){return e=ws(e),Rr(e)}var as=null;function Rr(e){if(as=null,e=Ll(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return as=e,null}function rm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fa()){case po:return 2;case go:return 8;case Vi:case ky:return 32;case vo:return 268435456;default:return 32}default:return 32}}var wr=!1,Ia=null,el=null,tl=null,zi=new Map,Ri=new Map,al=[],lg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function om(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ri.delete(t.pointerId)}}function wi(e,t,a,l,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Bl(t),t!==null&&sm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ng(e,t,a,l,i){switch(t){case"focusin":return Ia=wi(Ia,e,t,a,l,i),!0;case"dragenter":return el=wi(el,e,t,a,l,i),!0;case"mouseover":return tl=wi(tl,e,t,a,l,i),!0;case"pointerover":var s=i.pointerId;return zi.set(s,wi(zi.get(s)||null,e,t,a,l,i)),!0;case"gotpointercapture":return s=i.pointerId,Ri.set(s,wi(Ri.get(s)||null,e,t,a,l,i)),!0}return!1}function fm(e){var t=Ll(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Ao(e.priority,function(){cm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Ao(e.priority,function(){cm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Rs=l,a.target.dispatchEvent(l),Rs=null}else return t=Bl(a),t!==null&&sm(t),e.blockedOn=a,!1;t.shift()}return!0}function dm(e,t,a){ls(e)&&a.delete(t)}function ig(){wr=!1,Ia!==null&&ls(Ia)&&(Ia=null),el!==null&&ls(el)&&(el=null),tl!==null&&ls(tl)&&(tl=null),zi.forEach(dm),Ri.forEach(dm)}function ns(e,t){e.blockedOn===t&&(e.blockedOn=null,wr||(wr=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ig)))}var is=null;function hm(e){is!==e&&(is=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){is===e&&(is=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Rr(l||a)===null)continue;break}var s=Bl(a);s!==null&&(e.splice(t,3),t-=3,zc(s,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Sn(e){function t(b){return ns(b,e)}Ia!==null&&ns(Ia,e),el!==null&&ns(el,e),tl!==null&&ns(tl,e),zi.forEach(t),Ri.forEach(t);for(var a=0;a<al.length;a++){var l=al[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<al.length&&(a=al[0],a.blockedOn===null);)fm(a),a.blockedOn===null&&al.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],s=a[l+1],o=i[pt]||null;if(typeof s=="function")o||hm(a);else if(o){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[pt]||null)d=o.formAction;else if(Rr(i)!==null)continue}else d=o.action;typeof d=="function"?a[l+1]=d:(a.splice(l,3),l-=3),hm(a)}}}function mm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function _r(e){this._internalRoot=e}us.prototype.render=_r.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Rt();im(a,l,e,t,null,null)},us.prototype.unmount=_r.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;im(e.current,2,null,e,null,null),Gu(),t[ql]=null}};function us(e){this._internalRoot=e}us.prototype.unstable_scheduleHydration=function(e){if(e){var t=Eo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<al.length&&t!==0&&t<al[a].priority;a++);al.splice(a,0,e),a===0&&fm(e)}};var ym=u.version;if(ym!=="19.2.4")throw Error(r(527,ym,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var ug={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{Yn=ss.inject(ug),Et=ss}catch{}}return Di.createRoot=function(e,t){if(!f(e))throw Error(r(299));var a=!1,l="",i=Td,s=Ed,o=Ad;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lm(e,1,!1,null,null,a,l,null,i,s,o,mm),e[ql]=t.current,mr(e),new _r(t)},Di.hydrateRoot=function(e,t,a){if(!f(e))throw Error(r(299));var l=!1,i="",s=Td,o=Ed,d=Ad,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=lm(e,1,!0,t,a??null,l,i,b,s,o,d,mm),t.context=nm(null),a=t.current,l=Rt(),l=Es(l),i=Ya(l),i.callback=null,Qa(a,i,l),a=l,t.current.lanes=a,kn(t,a),ia(t),e[ql]=t.current,mr(e),new us(t)},Di.version="19.2.4",Di}var Mm;function bg(){if(Mm)return qr.exports;Mm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),qr.exports=vg(),qr.exports}var xg=bg();/**
51
51
  * react-router v7.13.1
52
52
  *
53
53
  * Copyright (c) Remix Software Inc.
@@ -56,15 +56,15 @@ Error generating stack: `+l.message+`
56
56
  * LICENSE.md file in the root directory of this source tree.
57
57
  *
58
58
  * @license MIT
59
- */var Mm="popstate";function jm(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Sg(n={}){function u(r,f){var y;let m=(y=f.state)==null?void 0:y.masked,{pathname:v,search:g,hash:p}=m||r.location;return Vr("",{pathname:v,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default",m?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,f){return typeof f=="string"?f:qi(f)}return Eg(u,c,null,n)}function Qe(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function Vt(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Tg(){return Math.random().toString(36).substring(2,10)}function Om(n,u){return{usr:n.state,key:n.key,idx:u,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Vr(n,u,c=null,r,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?Rn(u):u,state:c,key:u&&u.key||r||Tg(),unstable_mask:f}}function qi({pathname:n="/",search:u="",hash:c=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),c&&c!=="#"&&(n+=c.charAt(0)==="#"?c:"#"+c),n}function Rn(n){let u={};if(n){let c=n.indexOf("#");c>=0&&(u.hash=n.substring(c),n=n.substring(0,c));let r=n.indexOf("?");r>=0&&(u.search=n.substring(r),n=n.substring(0,r)),n&&(u.pathname=n)}return u}function Eg(n,u,c,r={}){let{window:f=document.defaultView,v5Compat:m=!1}=r,v=f.history,g="POP",p=null,y=N();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function N(){return(v.state||{idx:null}).idx}function E(){g="POP";let X=N(),Q=X==null?null:X-y;y=X,p&&p({action:g,location:z.location,delta:Q})}function D(X,Q){g="PUSH";let F=jm(X)?X:Vr(z.location,X,Q);y=N()+1;let B=Om(F,y),V=z.createHref(F.unstable_mask||F);try{v.pushState(B,"",V)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;f.location.assign(V)}m&&p&&p({action:g,location:z.location,delta:1})}function k(X,Q){g="REPLACE";let F=jm(X)?X:Vr(z.location,X,Q);y=N();let B=Om(F,y),V=z.createHref(F.unstable_mask||F);v.replaceState(B,"",V),m&&p&&p({action:g,location:z.location,delta:0})}function K(X){return Ag(X)}let z={get action(){return g},get location(){return n(f,v)},listen(X){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(Mm,E),p=X,()=>{f.removeEventListener(Mm,E),p=null}},createHref(X){return u(f,X)},createURL:K,encodeLocation(X){let Q=K(X);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:D,replace:k,go(X){return v.go(X)}};return z}function Ag(n,u=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(c,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:qi(n);return r=r.replace(/ $/,"%20"),!u&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function ny(n,u,c="/"){return Ng(n,u,c,!1)}function Ng(n,u,c,r){let f=typeof u=="string"?Rn(u):u,m=wa(f.pathname||"/",c);if(m==null)return null;let v=iy(n);Cg(v);let g=null;for(let p=0;g==null&&p<v.length;++p){let y=qg(m);g=Ug(v[p],y,r)}return g}function iy(n,u=[],c=[],r="",f=!1){let m=(v,g,p=f,y)=>{let N={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(r)&&p)return;Qe(N.relativePath.startsWith(r),`Absolute route path "${N.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(r.length)}let E=ra([r,N.relativePath]),D=c.concat(N);v.children&&v.children.length>0&&(Qe(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),iy(v.children,u,D,E,p)),!(v.path==null&&!v.index)&&u.push({path:E,score:_g(E,v.index),routesMeta:D})};return n.forEach((v,g)=>{var p;if(v.path===""||!((p=v.path)!=null&&p.includes("?")))m(v,g);else for(let y of uy(v.path))m(v,g,!0,y)}),u}function uy(n){let u=n.split("/");if(u.length===0)return[];let[c,...r]=u,f=c.endsWith("?"),m=c.replace(/\?$/,"");if(r.length===0)return f?[m,""]:[m];let v=uy(r.join("/")),g=[];return g.push(...v.map(p=>p===""?m:[m,p].join("/"))),f&&g.push(...v),g.map(p=>n.startsWith("/")&&p===""?"/":p)}function Cg(n){n.sort((u,c)=>u.score!==c.score?c.score-u.score:Dg(u.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var Mg=/^:[\w-]+$/,jg=3,Og=2,zg=1,Rg=10,wg=-2,zm=n=>n==="*";function _g(n,u){let c=n.split("/"),r=c.length;return c.some(zm)&&(r+=wg),u&&(r+=Og),c.filter(f=>!zm(f)).reduce((f,m)=>f+(Mg.test(m)?jg:m===""?zg:Rg),r)}function Dg(n,u){return n.length===u.length&&n.slice(0,-1).every((r,f)=>r===u[f])?n[n.length-1]-u[u.length-1]:0}function Ug(n,u,c=!1){let{routesMeta:r}=n,f={},m="/",v=[];for(let g=0;g<r.length;++g){let p=r[g],y=g===r.length-1,N=m==="/"?u:u.slice(m.length)||"/",E=ms({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},N),D=p.route;if(!E&&y&&c&&!r[r.length-1].route.index&&(E=ms({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},N)),!E)return null;Object.assign(f,E.params),v.push({params:f,pathname:ra([m,E.pathname]),pathnameBase:Yg(ra([m,E.pathnameBase])),route:D}),E.pathnameBase!=="/"&&(m=ra([m,E.pathnameBase]))}return v}function ms(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[c,r]=Hg(n.path,n.caseSensitive,n.end),f=u.match(c);if(!f)return null;let m=f[0],v=m.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:r.reduce((y,{paramName:N,isOptional:E},D)=>{if(N==="*"){let K=g[D]||"";v=m.slice(0,m.length-K.length).replace(/(.)\/+$/,"$1")}const k=g[D];return E&&!k?y[N]=void 0:y[N]=(k||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:v,pattern:n}}function Hg(n,u=!1,c=!0){Vt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,p,y,N)=>{if(r.push({paramName:g,isOptional:p!=null}),p){let E=N.charAt(y+v.length);return E&&E!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),r]}function qg(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Vt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),n}}function wa(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let c=u.endsWith("/")?u.length-1:u.length,r=n.charAt(c);return r&&r!=="/"?null:n.slice(c)||"/"}var Lg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Bg(n,u="/"){let{pathname:c,search:r="",hash:f=""}=typeof n=="string"?Rn(n):n,m;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?m=Rm(c.substring(1),"/"):m=Rm(c,u)):m=u,{pathname:m,search:Qg(r),hash:kg(f)}}function Rm(n,u){let c=u.replace(/\/+$/,"").split("/");return n.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function Yr(n,u,c,r){return`Cannot include a '${n}' character in a manually specified \`to.${u}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gg(n){return n.filter((u,c)=>c===0||u.route.path&&u.route.path.length>0)}function lo(n){let u=Gg(n);return u.map((c,r)=>r===u.length-1?c.pathname:c.pathnameBase)}function ps(n,u,c,r=!1){let f;typeof n=="string"?f=Rn(n):(f={...n},Qe(!f.pathname||!f.pathname.includes("?"),Yr("?","pathname","search",f)),Qe(!f.pathname||!f.pathname.includes("#"),Yr("#","pathname","hash",f)),Qe(!f.search||!f.search.includes("#"),Yr("#","search","hash",f)));let m=n===""||f.pathname==="",v=m?"/":f.pathname,g;if(v==null)g=c;else{let E=u.length-1;if(!r&&v.startsWith("..")){let D=v.split("/");for(;D[0]==="..";)D.shift(),E-=1;f.pathname=D.join("/")}g=E>=0?u[E]:"/"}let p=Bg(f,g),y=v&&v!=="/"&&v.endsWith("/"),N=(m||v===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(y||N)&&(p.pathname+="/"),p}var ra=n=>n.join("/").replace(/\/\/+/g,"/"),Yg=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Qg=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,kg=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Xg=class{constructor(n,u,c,r=!1){this.status=n,this.statusText=u||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Vg(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Zg(n){return n.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var sy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cy(n,u){let c=n;if(typeof c!="string"||!Lg.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,f=!1;if(sy)try{let m=new URL(window.location.href),v=c.startsWith("//")?new URL(m.protocol+c):new URL(c),g=wa(v.pathname,u);v.origin===m.origin&&g!=null?c=g+v.search+v.hash:f=!0}catch{Vt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ry=["POST","PUT","PATCH","DELETE"];new Set(ry);var Kg=["GET",...ry];new Set(Kg);var wn=x.createContext(null);wn.displayName="DataRouter";var gs=x.createContext(null);gs.displayName="DataRouterState";var Jg=x.createContext(!1),oy=x.createContext({isTransitioning:!1});oy.displayName="ViewTransition";var $g=x.createContext(new Map);$g.displayName="Fetchers";var Fg=x.createContext(null);Fg.displayName="Await";var _t=x.createContext(null);_t.displayName="Navigation";var ki=x.createContext(null);ki.displayName="Location";var Pt=x.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var no=x.createContext(null);no.displayName="RouteError";var fy="REACT_ROUTER_ERROR",Wg="REDIRECT",Pg="ROUTE_ERROR_RESPONSE";function Ig(n){if(n.startsWith(`${fy}:${Wg}:{`))try{let u=JSON.parse(n.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function e1(n){if(n.startsWith(`${fy}:${Pg}:{`))try{let u=JSON.parse(n.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Xg(u.status,u.statusText,u.data)}catch{}}function t1(n,{relative:u}={}){Qe(_n(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=x.useContext(_t),{hash:f,pathname:m,search:v}=Xi(n,{relative:u}),g=m;return c!=="/"&&(g=m==="/"?c:ra([c,m])),r.createHref({pathname:g,search:v,hash:f})}function _n(){return x.useContext(ki)!=null}function It(){return Qe(_n(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(ki).location}var dy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hy(n){x.useContext(_t).static||x.useLayoutEffect(n)}function io(){let{isDataRoute:n}=x.useContext(Pt);return n?m1():a1()}function a1(){Qe(_n(),"useNavigate() may be used only in the context of a <Router> component.");let n=x.useContext(wn),{basename:u,navigator:c}=x.useContext(_t),{matches:r}=x.useContext(Pt),{pathname:f}=It(),m=JSON.stringify(lo(r)),v=x.useRef(!1);return hy(()=>{v.current=!0}),x.useCallback((p,y={})=>{if(Vt(v.current,dy),!v.current)return;if(typeof p=="number"){c.go(p);return}let N=ps(p,JSON.parse(m),f,y.relative==="path");n==null&&u!=="/"&&(N.pathname=N.pathname==="/"?u:ra([u,N.pathname])),(y.replace?c.replace:c.push)(N,y.state,y)},[u,c,m,f,n])}x.createContext(null);function i2(){let{matches:n}=x.useContext(Pt),u=n[n.length-1];return u?u.params:{}}function Xi(n,{relative:u}={}){let{matches:c}=x.useContext(Pt),{pathname:r}=It(),f=JSON.stringify(lo(c));return x.useMemo(()=>ps(n,JSON.parse(f),r,u==="path"),[n,f,r,u])}function l1(n,u){return my(n,u)}function my(n,u,c){var X;Qe(_n(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=x.useContext(_t),{matches:f}=x.useContext(Pt),m=f[f.length-1],v=m?m.params:{},g=m?m.pathname:"/",p=m?m.pathnameBase:"/",y=m&&m.route;{let Q=y&&y.path||"";py(g,!y||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${Q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+ */var Om="popstate";function jm(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Sg(n={}){function u(r,f){var y;let m=(y=f.state)==null?void 0:y.masked,{pathname:v,search:g,hash:p}=m||r.location;return Vr("",{pathname:v,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default",m?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,f){return typeof f=="string"?f:qi(f)}return Eg(u,c,null,n)}function Qe(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function Vt(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Tg(){return Math.random().toString(36).substring(2,10)}function zm(n,u){return{usr:n.state,key:n.key,idx:u,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Vr(n,u,c=null,r,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?Rn(u):u,state:c,key:u&&u.key||r||Tg(),unstable_mask:f}}function qi({pathname:n="/",search:u="",hash:c=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),c&&c!=="#"&&(n+=c.charAt(0)==="#"?c:"#"+c),n}function Rn(n){let u={};if(n){let c=n.indexOf("#");c>=0&&(u.hash=n.substring(c),n=n.substring(0,c));let r=n.indexOf("?");r>=0&&(u.search=n.substring(r),n=n.substring(0,r)),n&&(u.pathname=n)}return u}function Eg(n,u,c,r={}){let{window:f=document.defaultView,v5Compat:m=!1}=r,v=f.history,g="POP",p=null,y=N();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function N(){return(v.state||{idx:null}).idx}function E(){g="POP";let X=N(),Q=X==null?null:X-y;y=X,p&&p({action:g,location:z.location,delta:Q})}function D(X,Q){g="PUSH";let F=jm(X)?X:Vr(z.location,X,Q);y=N()+1;let G=zm(F,y),V=z.createHref(F.unstable_mask||F);try{v.pushState(G,"",V)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;f.location.assign(V)}m&&p&&p({action:g,location:z.location,delta:1})}function k(X,Q){g="REPLACE";let F=jm(X)?X:Vr(z.location,X,Q);y=N();let G=zm(F,y),V=z.createHref(F.unstable_mask||F);v.replaceState(G,"",V),m&&p&&p({action:g,location:z.location,delta:0})}function K(X){return Ag(X)}let z={get action(){return g},get location(){return n(f,v)},listen(X){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(Om,E),p=X,()=>{f.removeEventListener(Om,E),p=null}},createHref(X){return u(f,X)},createURL:K,encodeLocation(X){let Q=K(X);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:D,replace:k,go(X){return v.go(X)}};return z}function Ag(n,u=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(c,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:qi(n);return r=r.replace(/ $/,"%20"),!u&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function iy(n,u,c="/"){return Ng(n,u,c,!1)}function Ng(n,u,c,r){let f=typeof u=="string"?Rn(u):u,m=wa(f.pathname||"/",c);if(m==null)return null;let v=uy(n);Cg(v);let g=null;for(let p=0;g==null&&p<v.length;++p){let y=qg(m);g=Ug(v[p],y,r)}return g}function uy(n,u=[],c=[],r="",f=!1){let m=(v,g,p=f,y)=>{let N={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(r)&&p)return;Qe(N.relativePath.startsWith(r),`Absolute route path "${N.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(r.length)}let E=ra([r,N.relativePath]),D=c.concat(N);v.children&&v.children.length>0&&(Qe(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),uy(v.children,u,D,E,p)),!(v.path==null&&!v.index)&&u.push({path:E,score:_g(E,v.index),routesMeta:D})};return n.forEach((v,g)=>{var p;if(v.path===""||!((p=v.path)!=null&&p.includes("?")))m(v,g);else for(let y of sy(v.path))m(v,g,!0,y)}),u}function sy(n){let u=n.split("/");if(u.length===0)return[];let[c,...r]=u,f=c.endsWith("?"),m=c.replace(/\?$/,"");if(r.length===0)return f?[m,""]:[m];let v=sy(r.join("/")),g=[];return g.push(...v.map(p=>p===""?m:[m,p].join("/"))),f&&g.push(...v),g.map(p=>n.startsWith("/")&&p===""?"/":p)}function Cg(n){n.sort((u,c)=>u.score!==c.score?c.score-u.score:Dg(u.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var Mg=/^:[\w-]+$/,Og=3,jg=2,zg=1,Rg=10,wg=-2,Rm=n=>n==="*";function _g(n,u){let c=n.split("/"),r=c.length;return c.some(Rm)&&(r+=wg),u&&(r+=jg),c.filter(f=>!Rm(f)).reduce((f,m)=>f+(Mg.test(m)?Og:m===""?zg:Rg),r)}function Dg(n,u){return n.length===u.length&&n.slice(0,-1).every((r,f)=>r===u[f])?n[n.length-1]-u[u.length-1]:0}function Ug(n,u,c=!1){let{routesMeta:r}=n,f={},m="/",v=[];for(let g=0;g<r.length;++g){let p=r[g],y=g===r.length-1,N=m==="/"?u:u.slice(m.length)||"/",E=ms({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},N),D=p.route;if(!E&&y&&c&&!r[r.length-1].route.index&&(E=ms({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},N)),!E)return null;Object.assign(f,E.params),v.push({params:f,pathname:ra([m,E.pathname]),pathnameBase:Yg(ra([m,E.pathnameBase])),route:D}),E.pathnameBase!=="/"&&(m=ra([m,E.pathnameBase]))}return v}function ms(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[c,r]=Hg(n.path,n.caseSensitive,n.end),f=u.match(c);if(!f)return null;let m=f[0],v=m.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:r.reduce((y,{paramName:N,isOptional:E},D)=>{if(N==="*"){let K=g[D]||"";v=m.slice(0,m.length-K.length).replace(/(.)\/+$/,"$1")}const k=g[D];return E&&!k?y[N]=void 0:y[N]=(k||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:v,pattern:n}}function Hg(n,u=!1,c=!0){Vt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,p,y,N)=>{if(r.push({paramName:g,isOptional:p!=null}),p){let E=N.charAt(y+v.length);return E&&E!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),r]}function qg(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Vt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),n}}function wa(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let c=u.endsWith("/")?u.length-1:u.length,r=n.charAt(c);return r&&r!=="/"?null:n.slice(c)||"/"}var Lg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Bg(n,u="/"){let{pathname:c,search:r="",hash:f=""}=typeof n=="string"?Rn(n):n,m;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?m=wm(c.substring(1),"/"):m=wm(c,u)):m=u,{pathname:m,search:Qg(r),hash:kg(f)}}function wm(n,u){let c=u.replace(/\/+$/,"").split("/");return n.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function Yr(n,u,c,r){return`Cannot include a '${n}' character in a manually specified \`to.${u}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gg(n){return n.filter((u,c)=>c===0||u.route.path&&u.route.path.length>0)}function lo(n){let u=Gg(n);return u.map((c,r)=>r===u.length-1?c.pathname:c.pathnameBase)}function ps(n,u,c,r=!1){let f;typeof n=="string"?f=Rn(n):(f={...n},Qe(!f.pathname||!f.pathname.includes("?"),Yr("?","pathname","search",f)),Qe(!f.pathname||!f.pathname.includes("#"),Yr("#","pathname","hash",f)),Qe(!f.search||!f.search.includes("#"),Yr("#","search","hash",f)));let m=n===""||f.pathname==="",v=m?"/":f.pathname,g;if(v==null)g=c;else{let E=u.length-1;if(!r&&v.startsWith("..")){let D=v.split("/");for(;D[0]==="..";)D.shift(),E-=1;f.pathname=D.join("/")}g=E>=0?u[E]:"/"}let p=Bg(f,g),y=v&&v!=="/"&&v.endsWith("/"),N=(m||v===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(y||N)&&(p.pathname+="/"),p}var ra=n=>n.join("/").replace(/\/\/+/g,"/"),Yg=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Qg=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,kg=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Xg=class{constructor(n,u,c,r=!1){this.status=n,this.statusText=u||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Vg(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Zg(n){return n.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ry(n,u){let c=n;if(typeof c!="string"||!Lg.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,f=!1;if(cy)try{let m=new URL(window.location.href),v=c.startsWith("//")?new URL(m.protocol+c):new URL(c),g=wa(v.pathname,u);v.origin===m.origin&&g!=null?c=g+v.search+v.hash:f=!0}catch{Vt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var oy=["POST","PUT","PATCH","DELETE"];new Set(oy);var Kg=["GET",...oy];new Set(Kg);var wn=x.createContext(null);wn.displayName="DataRouter";var gs=x.createContext(null);gs.displayName="DataRouterState";var Jg=x.createContext(!1),fy=x.createContext({isTransitioning:!1});fy.displayName="ViewTransition";var $g=x.createContext(new Map);$g.displayName="Fetchers";var Fg=x.createContext(null);Fg.displayName="Await";var _t=x.createContext(null);_t.displayName="Navigation";var ki=x.createContext(null);ki.displayName="Location";var Pt=x.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var no=x.createContext(null);no.displayName="RouteError";var dy="REACT_ROUTER_ERROR",Wg="REDIRECT",Pg="ROUTE_ERROR_RESPONSE";function Ig(n){if(n.startsWith(`${dy}:${Wg}:{`))try{let u=JSON.parse(n.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function e1(n){if(n.startsWith(`${dy}:${Pg}:{`))try{let u=JSON.parse(n.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Xg(u.status,u.statusText,u.data)}catch{}}function t1(n,{relative:u}={}){Qe(_n(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=x.useContext(_t),{hash:f,pathname:m,search:v}=Xi(n,{relative:u}),g=m;return c!=="/"&&(g=m==="/"?c:ra([c,m])),r.createHref({pathname:g,search:v,hash:f})}function _n(){return x.useContext(ki)!=null}function It(){return Qe(_n(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(ki).location}var hy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function my(n){x.useContext(_t).static||x.useLayoutEffect(n)}function io(){let{isDataRoute:n}=x.useContext(Pt);return n?m1():a1()}function a1(){Qe(_n(),"useNavigate() may be used only in the context of a <Router> component.");let n=x.useContext(wn),{basename:u,navigator:c}=x.useContext(_t),{matches:r}=x.useContext(Pt),{pathname:f}=It(),m=JSON.stringify(lo(r)),v=x.useRef(!1);return my(()=>{v.current=!0}),x.useCallback((p,y={})=>{if(Vt(v.current,hy),!v.current)return;if(typeof p=="number"){c.go(p);return}let N=ps(p,JSON.parse(m),f,y.relative==="path");n==null&&u!=="/"&&(N.pathname=N.pathname==="/"?u:ra([u,N.pathname])),(y.replace?c.replace:c.push)(N,y.state,y)},[u,c,m,f,n])}x.createContext(null);function u2(){let{matches:n}=x.useContext(Pt),u=n[n.length-1];return u?u.params:{}}function Xi(n,{relative:u}={}){let{matches:c}=x.useContext(Pt),{pathname:r}=It(),f=JSON.stringify(lo(c));return x.useMemo(()=>ps(n,JSON.parse(f),r,u==="path"),[n,f,r,u])}function l1(n,u){return yy(n,u)}function yy(n,u,c){var X;Qe(_n(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=x.useContext(_t),{matches:f}=x.useContext(Pt),m=f[f.length-1],v=m?m.params:{},g=m?m.pathname:"/",p=m?m.pathnameBase:"/",y=m&&m.route;{let Q=y&&y.path||"";gy(g,!y||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${Q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
60
 
61
- Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let N=It(),E;if(u){let Q=typeof u=="string"?Rn(u):u;Qe(p==="/"||((X=Q.pathname)==null?void 0:X.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),E=Q}else E=N;let D=E.pathname||"/",k=D;if(p!=="/"){let Q=p.replace(/^\//,"").split("/");k="/"+D.replace(/^\//,"").split("/").slice(Q.length).join("/")}let K=ny(n,{pathname:k});Vt(y||K!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Vt(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let z=c1(K&&K.map(Q=>Object.assign({},Q,{params:Object.assign({},v,Q.params),pathname:ra([p,r.encodeLocation?r.encodeLocation(Q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?p:ra([p,r.encodeLocation?r.encodeLocation(Q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),f,c);return u&&z?x.createElement(ki.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...E},navigationType:"POP"}},z):z}function n1(){let n=h1(),u=Vg(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),c=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",n),v=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:m},"ErrorBoundary")," or"," ",x.createElement("code",{style:m},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},u),c?x.createElement("pre",{style:f},c):null,v)}var i1=x.createElement(n1,null),yy=class extends x.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.onError?this.props.onError(n,u):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const c=e1(n.digest);c&&(n=c)}let u=n!==void 0?x.createElement(Pt.Provider,{value:this.props.routeContext},x.createElement(no.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?x.createElement(u1,{error:n},u):u}};yy.contextType=Jg;var Qr=new WeakMap;function u1({children:n,error:u}){let{basename:c}=x.useContext(_t);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let r=Ig(u.digest);if(r){let f=Qr.get(u);if(f)throw f;let m=cy(r.location,c);if(sy&&!Qr.get(u))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw Qr.set(u,v),v}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return n}function s1({routeContext:n,match:u,children:c}){let r=x.useContext(wn);return r&&r.static&&r.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=u.route.id),x.createElement(Pt.Provider,{value:n},c)}function c1(n,u=[],c){let r=c==null?void 0:c.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let f=n,m=r==null?void 0:r.errors;if(m!=null){let N=f.findIndex(E=>E.route.id&&(m==null?void 0:m[E.route.id])!==void 0);Qe(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,N+1))}let v=!1,g=-1;if(c&&r){v=r.renderFallback;for(let N=0;N<f.length;N++){let E=f[N];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(g=N),E.route.id){let{loaderData:D,errors:k}=r,K=E.route.loader&&!D.hasOwnProperty(E.route.id)&&(!k||k[E.route.id]===void 0);if(E.route.lazy||K){c.isStatic&&(v=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let p=c==null?void 0:c.onError,y=r&&p?(N,E)=>{var D,k;p(N,{location:r.location,params:((k=(D=r.matches)==null?void 0:D[0])==null?void 0:k.params)??{},unstable_pattern:Zg(r.matches),errorInfo:E})}:void 0;return f.reduceRight((N,E,D)=>{let k,K=!1,z=null,X=null;r&&(k=m&&E.route.id?m[E.route.id]:void 0,z=E.route.errorElement||i1,v&&(g<0&&D===0?(py("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,X=null):g===D&&(K=!0,X=E.route.hydrateFallbackElement||null)));let Q=u.concat(f.slice(0,D+1)),F=()=>{let B;return k?B=z:K?B=X:E.route.Component?B=x.createElement(E.route.Component,null):E.route.element?B=E.route.element:B=N,x.createElement(s1,{match:E,routeContext:{outlet:N,matches:Q,isDataRoute:r!=null},children:B})};return r&&(E.route.ErrorBoundary||E.route.errorElement||D===0)?x.createElement(yy,{location:r.location,revalidation:r.revalidation,component:z,error:k,children:F(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:y}):F()},null)}function uo(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function r1(n){let u=x.useContext(wn);return Qe(u,uo(n)),u}function o1(n){let u=x.useContext(gs);return Qe(u,uo(n)),u}function f1(n){let u=x.useContext(Pt);return Qe(u,uo(n)),u}function so(n){let u=f1(n),c=u.matches[u.matches.length-1];return Qe(c.route.id,`${n} can only be used on routes that contain a unique "id"`),c.route.id}function d1(){return so("useRouteId")}function h1(){var r;let n=x.useContext(no),u=o1("useRouteError"),c=so("useRouteError");return n!==void 0?n:(r=u.errors)==null?void 0:r[c]}function m1(){let{router:n}=r1("useNavigate"),u=so("useNavigate"),c=x.useRef(!1);return hy(()=>{c.current=!0}),x.useCallback(async(f,m={})=>{Vt(c.current,dy),c.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:u,...m}))},[n,u])}var wm={};function py(n,u,c){!u&&!wm[n]&&(wm[n]=!0,Vt(!1,c))}x.memo(y1);function y1({routes:n,future:u,state:c,isStatic:r,onError:f}){return my(n,void 0,{state:c,isStatic:r,onError:f})}function ft({to:n,replace:u,state:c,relative:r}){Qe(_n(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=x.useContext(_t);Vt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=x.useContext(Pt),{pathname:v}=It(),g=io(),p=ps(n,lo(m),v,r==="path"),y=JSON.stringify(p);return x.useEffect(()=>{g(JSON.parse(y),{replace:u,state:c,relative:r})},[g,y,r,u,c]),null}function tt(n){Qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function p1({basename:n="/",children:u=null,location:c,navigationType:r="POP",navigator:f,static:m=!1,unstable_useTransitions:v}){Qe(!_n(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),p=x.useMemo(()=>({basename:g,navigator:f,static:m,unstable_useTransitions:v,future:{}}),[g,f,m,v]);typeof c=="string"&&(c=Rn(c));let{pathname:y="/",search:N="",hash:E="",state:D=null,key:k="default",unstable_mask:K}=c,z=x.useMemo(()=>{let X=wa(y,g);return X==null?null:{location:{pathname:X,search:N,hash:E,state:D,key:k,unstable_mask:K},navigationType:r}},[g,y,N,E,D,k,r,K]);return Vt(z!=null,`<Router basename="${g}"> is not able to match the URL "${y}${N}${E}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:x.createElement(_t.Provider,{value:p},x.createElement(ki.Provider,{children:u,value:z}))}function g1({children:n,location:u}){return l1(Zr(n),u)}function Zr(n,u=[]){let c=[];return x.Children.forEach(n,(r,f)=>{if(!x.isValidElement(r))return;let m=[...u,f];if(r.type===x.Fragment){c.push.apply(c,Zr(r.props.children,m));return}Qe(r.type===tt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||m.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(v.children=Zr(r.props.children,m)),c.push(v)}),c}var ds="get",hs="application/x-www-form-urlencoded";function vs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function v1(n){return vs(n)&&n.tagName.toLowerCase()==="button"}function b1(n){return vs(n)&&n.tagName.toLowerCase()==="form"}function x1(n){return vs(n)&&n.tagName.toLowerCase()==="input"}function S1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function T1(n,u){return n.button===0&&(!u||u==="_self")&&!S1(n)}function Kr(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((u,c)=>{let r=n[c];return u.concat(Array.isArray(r)?r.map(f=>[c,f]):[[c,r]])},[]))}function E1(n,u){let c=Kr(n);return u&&u.forEach((r,f)=>{c.has(f)||u.getAll(f).forEach(m=>{c.append(f,m)})}),c}var rs=null;function A1(){if(rs===null)try{new FormData(document.createElement("form"),0),rs=!1}catch{rs=!0}return rs}var N1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kr(n){return n!=null&&!N1.has(n)?(Vt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hs}"`),null):n}function C1(n,u){let c,r,f,m,v;if(b1(n)){let g=n.getAttribute("action");r=g?wa(g,u):null,c=n.getAttribute("method")||ds,f=kr(n.getAttribute("enctype"))||hs,m=new FormData(n)}else if(v1(n)||x1(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||g.getAttribute("action");if(r=p?wa(p,u):null,c=n.getAttribute("formmethod")||g.getAttribute("method")||ds,f=kr(n.getAttribute("formenctype"))||kr(g.getAttribute("enctype"))||hs,m=new FormData(g,n),!A1()){let{name:y,type:N,value:E}=n;if(N==="image"){let D=y?`${y}.`:"";m.append(`${D}x`,"0"),m.append(`${D}y`,"0")}else y&&m.append(y,E)}}else{if(vs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=ds,r=null,f=hs,v=n}return m&&f==="text/plain"&&(v=m,m=void 0),{action:r,method:c.toLowerCase(),encType:f,formData:m,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function co(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function M1(n,u,c,r){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:u&&wa(f.pathname,u)==="/"?f.pathname=`${u.replace(/\/$/,"")}/_root.${r}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${r}`,f}async function j1(n,u){if(n.id in u)return u[n.id];try{let c=await import(n.module);return u[n.id]=c,c}catch(c){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function O1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function z1(n,u,c){let r=await Promise.all(n.map(async f=>{let m=u.routes[f.route.id];if(m){let v=await j1(m,c);return v.links?v.links():[]}return[]}));return D1(r.flat(1).filter(O1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function _m(n,u,c,r,f,m){let v=(p,y)=>c[y]?p.route.id!==c[y].route.id:!0,g=(p,y)=>{var N;return c[y].pathname!==p.pathname||((N=c[y].route.path)==null?void 0:N.endsWith("*"))&&c[y].params["*"]!==p.params["*"]};return m==="assets"?u.filter((p,y)=>v(p,y)||g(p,y)):m==="data"?u.filter((p,y)=>{var E;let N=r.routes[p.route.id];if(!N||!N.hasLoader)return!1;if(v(p,y)||g(p,y))return!0;if(p.route.shouldRevalidate){let D=p.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((E=c[0])==null?void 0:E.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof D=="boolean")return D}return!0}):[]}function R1(n,u,{includeHydrateFallback:c}={}){return w1(n.map(r=>{let f=u.routes[r.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function w1(n){return[...new Set(n)]}function _1(n){let u={},c=Object.keys(n).sort();for(let r of c)u[r]=n[r];return u}function D1(n,u){let c=new Set;return new Set(u),n.reduce((r,f)=>{let m=JSON.stringify(_1(f));return c.has(m)||(c.add(m),r.push({key:m,link:f})),r},[])}function gy(){let n=x.useContext(wn);return co(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function U1(){let n=x.useContext(gs);return co(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var ro=x.createContext(void 0);ro.displayName="FrameworkContext";function vy(){let n=x.useContext(ro);return co(n,"You must render this element inside a <HydratedRouter> element"),n}function H1(n,u){let c=x.useContext(ro),[r,f]=x.useState(!1),[m,v]=x.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:y,onMouseLeave:N,onTouchStart:E}=u,D=x.useRef(null);x.useEffect(()=>{if(n==="render"&&v(!0),n==="viewport"){let z=Q=>{Q.forEach(F=>{v(F.isIntersecting)})},X=new IntersectionObserver(z,{threshold:.5});return D.current&&X.observe(D.current),()=>{X.disconnect()}}},[n]),x.useEffect(()=>{if(r){let z=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(z)}}},[r]);let k=()=>{f(!0)},K=()=>{f(!1),v(!1)};return c?n!=="intent"?[m,D,{}]:[m,D,{onFocus:Ui(g,k),onBlur:Ui(p,K),onMouseEnter:Ui(y,k),onMouseLeave:Ui(N,K),onTouchStart:Ui(E,k)}]:[!1,D,{}]}function Ui(n,u){return c=>{n&&n(c),c.defaultPrevented||u(c)}}function q1({page:n,...u}){let{router:c}=gy(),r=x.useMemo(()=>ny(c.routes,n,c.basename),[c.routes,n,c.basename]);return r?x.createElement(B1,{page:n,matches:r,...u}):null}function L1(n){let{manifest:u,routeModules:c}=vy(),[r,f]=x.useState([]);return x.useEffect(()=>{let m=!1;return z1(n,u,c).then(v=>{m||f(v)}),()=>{m=!0}},[n,u,c]),r}function B1({page:n,matches:u,...c}){let r=It(),{future:f,manifest:m,routeModules:v}=vy(),{basename:g}=gy(),{loaderData:p,matches:y}=U1(),N=x.useMemo(()=>_m(n,u,y,m,r,"data"),[n,u,y,m,r]),E=x.useMemo(()=>_m(n,u,y,m,r,"assets"),[n,u,y,m,r]),D=x.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let z=new Set,X=!1;if(u.forEach(F=>{var V;let B=m.routes[F.route.id];!B||!B.hasLoader||(!N.some(ne=>ne.route.id===F.route.id)&&F.route.id in p&&((V=v[F.route.id])!=null&&V.shouldRevalidate)||B.hasClientLoader?X=!0:z.add(F.route.id))}),z.size===0)return[];let Q=M1(n,g,f.unstable_trailingSlashAwareDataRequests,"data");return X&&z.size>0&&Q.searchParams.set("_routes",u.filter(F=>z.has(F.route.id)).map(F=>F.route.id).join(",")),[Q.pathname+Q.search]},[g,f.unstable_trailingSlashAwareDataRequests,p,r,m,N,u,n,v]),k=x.useMemo(()=>R1(E,m),[E,m]),K=L1(E);return x.createElement(x.Fragment,null,D.map(z=>x.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...c})),k.map(z=>x.createElement("link",{key:z,rel:"modulepreload",href:z,...c})),K.map(({key:z,link:X})=>x.createElement("link",{key:z,nonce:c.nonce,...X,crossOrigin:X.crossOrigin??c.crossOrigin})))}function G1(...n){return u=>{n.forEach(c=>{typeof c=="function"?c(u):c!=null&&(c.current=u)})}}var Y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y1&&(window.__reactRouterVersion="7.13.1")}catch{}function Q1({basename:n,children:u,unstable_useTransitions:c,window:r}){let f=x.useRef();f.current==null&&(f.current=Sg({window:r,v5Compat:!0}));let m=f.current,[v,g]=x.useState({action:m.action,location:m.location}),p=x.useCallback(y=>{c===!1?g(y):x.startTransition(()=>g(y))},[c]);return x.useLayoutEffect(()=>m.listen(p),[m,p]),x.createElement(p1,{basename:n,children:u,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:c})}var by=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bs=x.forwardRef(function({onClick:u,discover:c="render",prefetch:r="none",relative:f,reloadDocument:m,replace:v,unstable_mask:g,state:p,target:y,to:N,preventScrollReset:E,viewTransition:D,unstable_defaultShouldRevalidate:k,...K},z){let{basename:X,navigator:Q,unstable_useTransitions:F}=x.useContext(_t),B=typeof N=="string"&&by.test(N),V=cy(N,X);N=V.to;let ne=t1(N,{relative:f}),ee=It(),W=null;if(g){let Me=ps(g,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);X!=="/"&&(Me.pathname=Me.pathname==="/"?X:ra([X,Me.pathname])),W=Q.createHref(Me)}let[fe,te,Le]=H1(r,K),_e=Z1(N,{replace:v,unstable_mask:g,state:p,target:y,preventScrollReset:E,relative:f,viewTransition:D,unstable_defaultShouldRevalidate:k,unstable_useTransitions:F});function Be(Me){u&&u(Me),Me.defaultPrevented||_e(Me)}let Ge=!(V.isExternal||m),Ae=x.createElement("a",{...K,...Le,href:(Ge?W:void 0)||V.absoluteURL||ne,onClick:Ge?Be:u,ref:G1(z,te),target:y,"data-discover":!B&&c==="render"?"true":void 0});return fe&&!B?x.createElement(x.Fragment,null,Ae,x.createElement(q1,{page:ne})):Ae});bs.displayName="Link";var k1=x.forwardRef(function({"aria-current":u="page",caseSensitive:c=!1,className:r="",end:f=!1,style:m,to:v,viewTransition:g,children:p,...y},N){let E=Xi(v,{relative:y.relative}),D=It(),k=x.useContext(gs),{navigator:K,basename:z}=x.useContext(_t),X=k!=null&&W1(E)&&g===!0,Q=K.encodeLocation?K.encodeLocation(E).pathname:E.pathname,F=D.pathname,B=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;c||(F=F.toLowerCase(),B=B?B.toLowerCase():null,Q=Q.toLowerCase()),B&&z&&(B=wa(B,z)||B);const V=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let ne=F===Q||!f&&F.startsWith(Q)&&F.charAt(V)==="/",ee=B!=null&&(B===Q||!f&&B.startsWith(Q)&&B.charAt(Q.length)==="/"),W={isActive:ne,isPending:ee,isTransitioning:X},fe=ne?u:void 0,te;typeof r=="function"?te=r(W):te=[r,ne?"active":null,ee?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let Le=typeof m=="function"?m(W):m;return x.createElement(bs,{...y,"aria-current":fe,className:te,ref:N,style:Le,to:v,viewTransition:g},typeof p=="function"?p(W):p)});k1.displayName="NavLink";var X1=x.forwardRef(({discover:n="render",fetcherKey:u,navigate:c,reloadDocument:r,replace:f,state:m,method:v=ds,action:g,onSubmit:p,relative:y,preventScrollReset:N,viewTransition:E,unstable_defaultShouldRevalidate:D,...k},K)=>{let{unstable_useTransitions:z}=x.useContext(_t),X=$1(),Q=F1(g,{relative:y}),F=v.toLowerCase()==="get"?"get":"post",B=typeof g=="string"&&by.test(g),V=ne=>{if(p&&p(ne),ne.defaultPrevented)return;ne.preventDefault();let ee=ne.nativeEvent.submitter,W=(ee==null?void 0:ee.getAttribute("formmethod"))||v,fe=()=>X(ee||ne.currentTarget,{fetcherKey:u,method:W,navigate:c,replace:f,state:m,relative:y,preventScrollReset:N,viewTransition:E,unstable_defaultShouldRevalidate:D});z&&c!==!1?x.startTransition(()=>fe()):fe()};return x.createElement("form",{ref:K,method:F,action:Q,onSubmit:r?p:V,...k,"data-discover":!B&&n==="render"?"true":void 0})});X1.displayName="Form";function V1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xy(n){let u=x.useContext(wn);return Qe(u,V1(n)),u}function Z1(n,{target:u,replace:c,unstable_mask:r,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let N=io(),E=It(),D=Xi(n,{relative:v});return x.useCallback(k=>{if(T1(k,u)){k.preventDefault();let K=c!==void 0?c:qi(E)===qi(D),z=()=>N(n,{replace:K,unstable_mask:r,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p});y?x.startTransition(()=>z()):z()}},[E,N,D,c,r,f,u,n,m,v,g,p,y])}function u2(n){Vt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=x.useRef(Kr(n)),c=x.useRef(!1),r=It(),f=x.useMemo(()=>E1(r.search,c.current?null:u.current),[r.search]),m=io(),v=x.useCallback((g,p)=>{const y=Kr(typeof g=="function"?g(new URLSearchParams(f)):g);c.current=!0,m("?"+y,p)},[m,f]);return[f,v]}var K1=0,J1=()=>`__${String(++K1)}__`;function $1(){let{router:n}=xy("useSubmit"),{basename:u}=x.useContext(_t),c=d1(),r=n.fetch,f=n.navigate;return x.useCallback(async(m,v={})=>{let{action:g,method:p,encType:y,formData:N,body:E}=C1(m,u);if(v.navigate===!1){let D=v.fetcherKey||J1();await r(D,c,v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:N,body:E,formMethod:v.method||p,formEncType:v.encType||y,flushSync:v.flushSync})}else await f(v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:N,body:E,formMethod:v.method||p,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:c,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,f,u,c])}function F1(n,{relative:u}={}){let{basename:c}=x.useContext(_t),r=x.useContext(Pt);Qe(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),m={...Xi(n||".",{relative:u})},v=It();if(n==null){m.search=v.search;let g=new URLSearchParams(m.search),p=g.getAll("index");if(p.some(N=>N==="")){g.delete("index"),p.filter(E=>E).forEach(E=>g.append("index",E));let N=g.toString();m.search=N?`?${N}`:""}}return(!n||n===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(m.pathname=m.pathname==="/"?c:ra([c,m.pathname])),qi(m)}function W1(n,{relative:u}={}){let c=x.useContext(oy);Qe(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=xy("useViewTransitionState"),f=Xi(n,{relative:u});if(!c.isTransitioning)return!1;let m=wa(c.currentLocation.pathname,r)||c.currentLocation.pathname,v=wa(c.nextLocation.pathname,r)||c.nextLocation.pathname;return ms(f.pathname,v)!=null||ms(f.pathname,m)!=null}var xs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ol,il,En,$m,P1=($m=class extends xs{constructor(){super();xe(this,Ol);xe(this,il);xe(this,En);se(this,En,u=>{if(typeof window<"u"&&window.addEventListener){const c=()=>u();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){U(this,il)||this.setEventListener(U(this,En))}onUnsubscribe(){var u;this.hasListeners()||((u=U(this,il))==null||u.call(this),se(this,il,void 0))}setEventListener(u){var c;se(this,En,u),(c=U(this,il))==null||c.call(this),se(this,il,u(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(u){U(this,Ol)!==u&&(se(this,Ol,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(c=>{c(u)})}isFocused(){var u;return typeof U(this,Ol)=="boolean"?U(this,Ol):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},Ol=new WeakMap,il=new WeakMap,En=new WeakMap,$m),Sy=new P1,I1={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},ul,to,Fm,ev=(Fm=class{constructor(){xe(this,ul,I1);xe(this,to,!1)}setTimeoutProvider(n){se(this,ul,n)}setTimeout(n,u){return U(this,ul).setTimeout(n,u)}clearTimeout(n){U(this,ul).clearTimeout(n)}setInterval(n,u){return U(this,ul).setInterval(n,u)}clearInterval(n){U(this,ul).clearInterval(n)}},ul=new WeakMap,to=new WeakMap,Fm),Jr=new ev;function tv(n){setTimeout(n,0)}var av=typeof window>"u"||"Deno"in globalThis;function $t(){}function lv(n,u){return typeof n=="function"?n(u):n}function nv(n){return typeof n=="number"&&n>=0&&n!==1/0}function iv(n,u){return Math.max(n+(u||0)-Date.now(),0)}function $r(n,u){return typeof n=="function"?n(u):n}function uv(n,u){return typeof n=="function"?n(u):n}function Dm(n,u){const{type:c="all",exact:r,fetchStatus:f,predicate:m,queryKey:v,stale:g}=n;if(v){if(r){if(u.queryHash!==oo(v,u.options))return!1}else if(!Bi(u.queryKey,v))return!1}if(c!=="all"){const p=u.isActive();if(c==="active"&&!p||c==="inactive"&&p)return!1}return!(typeof g=="boolean"&&u.isStale()!==g||f&&f!==u.state.fetchStatus||m&&!m(u))}function Um(n,u){const{exact:c,status:r,predicate:f,mutationKey:m}=n;if(m){if(!u.options.mutationKey)return!1;if(c){if(Li(u.options.mutationKey)!==Li(m))return!1}else if(!Bi(u.options.mutationKey,m))return!1}return!(r&&u.state.status!==r||f&&!f(u))}function oo(n,u){return((u==null?void 0:u.queryKeyHashFn)||Li)(n)}function Li(n){return JSON.stringify(n,(u,c)=>Fr(c)?Object.keys(c).sort().reduce((r,f)=>(r[f]=c[f],r),{}):c)}function Bi(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(c=>Bi(n[c],u[c])):!1}var sv=Object.prototype.hasOwnProperty;function Ty(n,u,c=0){if(n===u)return n;if(c>500)return u;const r=Hm(n)&&Hm(u);if(!r&&!(Fr(n)&&Fr(u)))return u;const m=(r?n:Object.keys(n)).length,v=r?u:Object.keys(u),g=v.length,p=r?new Array(g):{};let y=0;for(let N=0;N<g;N++){const E=r?N:v[N],D=n[E],k=u[E];if(D===k){p[E]=D,(r?N<m:sv.call(n,E))&&y++;continue}if(D===null||k===null||typeof D!="object"||typeof k!="object"){p[E]=k;continue}const K=Ty(D,k,c+1);p[E]=K,K===D&&y++}return m===g&&y===m?n:p}function Hm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Fr(n){if(!qm(n))return!1;const u=n.constructor;if(u===void 0)return!0;const c=u.prototype;return!(!qm(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function qm(n){return Object.prototype.toString.call(n)==="[object Object]"}function cv(n){return new Promise(u=>{Jr.setTimeout(u,n)})}function rv(n,u,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,u):c.structuralSharing!==!1?Ty(n,u):u}function ov(n,u,c=0){const r=[...n,u];return c&&r.length>c?r.slice(1):r}function fv(n,u,c=0){const r=[u,...n];return c&&r.length>c?r.slice(0,-1):r}var fo=Symbol();function Ey(n,u){return!n.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!n.queryFn||n.queryFn===fo?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function dv(n,u,c){let r=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=u()),r||(r=!0,f.aborted?c():f.addEventListener("abort",c,{once:!0})),f)}),n}var Ay=(()=>{let n=()=>av;return{isServer(){return n()},setIsServer(u){n=u}}})();function hv(){let n,u;const c=new Promise((f,m)=>{n=f,u=m});c.status="pending",c.catch(()=>{});function r(f){Object.assign(c,f),delete c.resolve,delete c.reject}return c.resolve=f=>{r({status:"fulfilled",value:f}),n(f)},c.reject=f=>{r({status:"rejected",reason:f}),u(f)},c}var mv=tv;function yv(){let n=[],u=0,c=g=>{g()},r=g=>{g()},f=mv;const m=g=>{u?n.push(g):f(()=>{c(g)})},v=()=>{const g=n;n=[],g.length&&f(()=>{r(()=>{g.forEach(p=>{c(p)})})})};return{batch:g=>{let p;u++;try{p=g()}finally{u--,u||v()}return p},batchCalls:g=>(...p)=>{m(()=>{g(...p)})},schedule:m,setNotifyFunction:g=>{c=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{f=g}}}var yt=yv(),An,sl,Nn,Wm,pv=(Wm=class extends xs{constructor(){super();xe(this,An,!0);xe(this,sl);xe(this,Nn);se(this,Nn,u=>{if(typeof window<"u"&&window.addEventListener){const c=()=>u(!0),r=()=>u(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){U(this,sl)||this.setEventListener(U(this,Nn))}onUnsubscribe(){var u;this.hasListeners()||((u=U(this,sl))==null||u.call(this),se(this,sl,void 0))}setEventListener(u){var c;se(this,Nn,u),(c=U(this,sl))==null||c.call(this),se(this,sl,u(this.setOnline.bind(this)))}setOnline(u){U(this,An)!==u&&(se(this,An,u),this.listeners.forEach(r=>{r(u)}))}isOnline(){return U(this,An)}},An=new WeakMap,sl=new WeakMap,Nn=new WeakMap,Wm),ys=new pv;function gv(n){return Math.min(1e3*2**n,3e4)}function Ny(n){return(n??"online")==="online"?ys.isOnline():!0}var Wr=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Cy(n){let u=!1,c=0,r;const f=hv(),m=()=>f.status!=="pending",v=z=>{var X;if(!m()){const Q=new Wr(z);D(Q),(X=n.onCancel)==null||X.call(n,Q)}},g=()=>{u=!0},p=()=>{u=!1},y=()=>Sy.isFocused()&&(n.networkMode==="always"||ys.isOnline())&&n.canRun(),N=()=>Ny(n.networkMode)&&n.canRun(),E=z=>{m()||(r==null||r(),f.resolve(z))},D=z=>{m()||(r==null||r(),f.reject(z))},k=()=>new Promise(z=>{var X;r=Q=>{(m()||y())&&z(Q)},(X=n.onPause)==null||X.call(n)}).then(()=>{var z;r=void 0,m()||(z=n.onContinue)==null||z.call(n)}),K=()=>{if(m())return;let z;const X=c===0?n.initialPromise:void 0;try{z=X??n.fn()}catch(Q){z=Promise.reject(Q)}Promise.resolve(z).then(E).catch(Q=>{var ee;if(m())return;const F=n.retry??(Ay.isServer()?0:3),B=n.retryDelay??gv,V=typeof B=="function"?B(c,Q):B,ne=F===!0||typeof F=="number"&&c<F||typeof F=="function"&&F(c,Q);if(u||!ne){D(Q);return}c++,(ee=n.onFail)==null||ee.call(n,c,Q),cv(V).then(()=>y()?void 0:k()).then(()=>{u?D(Q):K()})})};return{promise:f,status:()=>f.status,cancel:v,continue:()=>(r==null||r(),f),cancelRetry:g,continueRetry:p,canStart:N,start:()=>(N()?K():k().then(K),f)}}var zl,Pm,My=(Pm=class{constructor(){xe(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nv(this.gcTime)&&se(this,zl,Jr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ay.isServer()?1/0:300*1e3))}clearGcTimeout(){U(this,zl)!==void 0&&(Jr.clearTimeout(U(this,zl)),se(this,zl,void 0))}},zl=new WeakMap,Pm),Rl,Cn,Xt,wl,nt,Gi,_l,wt,jy,za,Im,vv=(Im=class extends My{constructor(u){super();xe(this,wt);xe(this,Rl);xe(this,Cn);xe(this,Xt);xe(this,wl);xe(this,nt);xe(this,Gi);xe(this,_l);se(this,_l,!1),se(this,Gi,u.defaultOptions),this.setOptions(u.options),this.observers=[],se(this,wl,u.client),se(this,Xt,U(this,wl).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,se(this,Rl,Bm(this.options)),this.state=u.state??U(this,Rl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var u;return(u=U(this,nt))==null?void 0:u.promise}setOptions(u){if(this.options={...U(this,Gi),...u},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=Bm(this.options);c.data!==void 0&&(this.setState(Lm(c.data,c.dataUpdatedAt)),se(this,Rl,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Xt).remove(this)}setData(u,c){const r=rv(this.state.data,u,this.options);return ot(this,wt,za).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(u,c){ot(this,wt,za).call(this,{type:"setState",state:u,setStateOptions:c})}cancel(u){var r,f;const c=(r=U(this,nt))==null?void 0:r.promise;return(f=U(this,nt))==null||f.cancel(u),c?c.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,Rl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(u=>uv(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>$r(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!iv(this.state.dataUpdatedAt,u)}onFocus(){var c;const u=this.observers.find(r=>r.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(c=U(this,nt))==null||c.continue()}onOnline(){var c;const u=this.observers.find(r=>r.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(c=U(this,nt))==null||c.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),U(this,Xt).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(c=>c!==u),this.observers.length||(U(this,nt)&&(U(this,_l)||ot(this,wt,jy).call(this)?U(this,nt).cancel({revert:!0}):U(this,nt).cancelRetry()),this.scheduleGc()),U(this,Xt).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,wt,za).call(this,{type:"invalidate"})}async fetch(u,c){var p,y,N,E,D,k,K,z,X,Q,F,B;if(this.state.fetchStatus!=="idle"&&((p=U(this,nt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(U(this,nt))return U(this,nt).continueRetry(),U(this,nt).promise}if(u&&this.setOptions(u),!this.options.queryFn){const V=this.observers.find(ne=>ne.options.queryFn);V&&this.setOptions(V.options)}const r=new AbortController,f=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(se(this,_l,!0),r.signal)})},m=()=>{const V=Ey(this.options,c),ee=(()=>{const W={client:U(this,wl),queryKey:this.queryKey,meta:this.meta};return f(W),W})();return se(this,_l,!1),this.options.persister?this.options.persister(V,ee,this):V(ee)},g=(()=>{const V={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:U(this,wl),state:this.state,fetchFn:m};return f(V),V})();(y=this.options.behavior)==null||y.onFetch(g,this),se(this,Cn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((N=g.fetchOptions)==null?void 0:N.meta))&&ot(this,wt,za).call(this,{type:"fetch",meta:(E=g.fetchOptions)==null?void 0:E.meta}),se(this,nt,Cy({initialPromise:c==null?void 0:c.initialPromise,fn:g.fetchFn,onCancel:V=>{V instanceof Wr&&V.revert&&this.setState({...U(this,Cn),fetchStatus:"idle"}),r.abort()},onFail:(V,ne)=>{ot(this,wt,za).call(this,{type:"failed",failureCount:V,error:ne})},onPause:()=>{ot(this,wt,za).call(this,{type:"pause"})},onContinue:()=>{ot(this,wt,za).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const V=await U(this,nt).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(k=(D=U(this,Xt).config).onSuccess)==null||k.call(D,V,this),(z=(K=U(this,Xt).config).onSettled)==null||z.call(K,V,this.state.error,this),V}catch(V){if(V instanceof Wr){if(V.silent)return U(this,nt).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw ot(this,wt,za).call(this,{type:"error",error:V}),(Q=(X=U(this,Xt).config).onError)==null||Q.call(X,V,this),(B=(F=U(this,Xt).config).onSettled)==null||B.call(F,this.state.data,V,this),V}finally{this.scheduleGc()}}},Rl=new WeakMap,Cn=new WeakMap,Xt=new WeakMap,wl=new WeakMap,nt=new WeakMap,Gi=new WeakMap,_l=new WeakMap,wt=new WeakSet,jy=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},za=function(u){const c=r=>{switch(u.type){case"failed":return{...r,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...bv(r.data,this.options),fetchMeta:u.meta??null};case"success":const f={...r,...Lm(u.data,u.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return se(this,Cn,u.manual?f:void 0),f;case"error":const m=u.error;return{...r,error:m,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...u.state}}};this.state=c(this.state),yt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),U(this,Xt).notify({query:this,type:"updated",action:u})})},Im);function bv(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ny(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Lm(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Bm(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,c=u!==void 0,r=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}function Gm(n){return{onFetch:(u,c)=>{var N,E,D,k,K;const r=u.options,f=(D=(E=(N=u.fetchOptions)==null?void 0:N.meta)==null?void 0:E.fetchMore)==null?void 0:D.direction,m=((k=u.state.data)==null?void 0:k.pages)||[],v=((K=u.state.data)==null?void 0:K.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let z=!1;const X=B=>{dv(B,()=>u.signal,()=>z=!0)},Q=Ey(u.options,u.fetchOptions),F=async(B,V,ne)=>{if(z)return Promise.reject();if(V==null&&B.pages.length)return Promise.resolve(B);const W=(()=>{const _e={client:u.client,queryKey:u.queryKey,pageParam:V,direction:ne?"backward":"forward",meta:u.options.meta};return X(_e),_e})(),fe=await Q(W),{maxPages:te}=u.options,Le=ne?fv:ov;return{pages:Le(B.pages,fe,te),pageParams:Le(B.pageParams,V,te)}};if(f&&m.length){const B=f==="backward",V=B?xv:Ym,ne={pages:m,pageParams:v},ee=V(r,ne);g=await F(ne,ee,B)}else{const B=n??m.length;do{const V=p===0?v[0]??r.initialPageParam:Ym(r,g);if(p>0&&V==null)break;g=await F(g,V),p++}while(p<B)}return g};u.options.persister?u.fetchFn=()=>{var z,X;return(X=(z=u.options).persister)==null?void 0:X.call(z,y,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},c)}:u.fetchFn=y}}}function Ym(n,{pages:u,pageParams:c}){const r=u.length-1;return u.length>0?n.getNextPageParam(u[r],u,c[r],c):void 0}function xv(n,{pages:u,pageParams:c}){var r;return u.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,u[0],u,c[0],c):void 0}var Yi,ua,ht,Dl,sa,nl,ey,Sv=(ey=class extends My{constructor(u){super();xe(this,sa);xe(this,Yi);xe(this,ua);xe(this,ht);xe(this,Dl);se(this,Yi,u.client),this.mutationId=u.mutationId,se(this,ht,u.mutationCache),se(this,ua,[]),this.state=u.state||Tv(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){U(this,ua).includes(u)||(U(this,ua).push(u),this.clearGcTimeout(),U(this,ht).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){se(this,ua,U(this,ua).filter(c=>c!==u)),this.scheduleGc(),U(this,ht).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){U(this,ua).length||(this.state.status==="pending"?this.scheduleGc():U(this,ht).remove(this))}continue(){var u;return((u=U(this,Dl))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var v,g,p,y,N,E,D,k,K,z,X,Q,F,B,V,ne,ee,W;const c=()=>{ot(this,sa,nl).call(this,{type:"continue"})},r={client:U(this,Yi),meta:this.options.meta,mutationKey:this.options.mutationKey};se(this,Dl,Cy({fn:()=>this.options.mutationFn?this.options.mutationFn(u,r):Promise.reject(new Error("No mutationFn found")),onFail:(fe,te)=>{ot(this,sa,nl).call(this,{type:"failed",failureCount:fe,error:te})},onPause:()=>{ot(this,sa,nl).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,ht).canRun(this)}));const f=this.state.status==="pending",m=!U(this,Dl).canStart();try{if(f)c();else{ot(this,sa,nl).call(this,{type:"pending",variables:u,isPaused:m}),U(this,ht).config.onMutate&&await U(this,ht).config.onMutate(u,this,r);const te=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,u,r));te!==this.state.context&&ot(this,sa,nl).call(this,{type:"pending",context:te,variables:u,isPaused:m})}const fe=await U(this,Dl).start();return await((y=(p=U(this,ht).config).onSuccess)==null?void 0:y.call(p,fe,u,this.state.context,this,r)),await((E=(N=this.options).onSuccess)==null?void 0:E.call(N,fe,u,this.state.context,r)),await((k=(D=U(this,ht).config).onSettled)==null?void 0:k.call(D,fe,null,this.state.variables,this.state.context,this,r)),await((z=(K=this.options).onSettled)==null?void 0:z.call(K,fe,null,u,this.state.context,r)),ot(this,sa,nl).call(this,{type:"success",data:fe}),fe}catch(fe){try{await((Q=(X=U(this,ht).config).onError)==null?void 0:Q.call(X,fe,u,this.state.context,this,r))}catch(te){Promise.reject(te)}try{await((B=(F=this.options).onError)==null?void 0:B.call(F,fe,u,this.state.context,r))}catch(te){Promise.reject(te)}try{await((ne=(V=U(this,ht).config).onSettled)==null?void 0:ne.call(V,void 0,fe,this.state.variables,this.state.context,this,r))}catch(te){Promise.reject(te)}try{await((W=(ee=this.options).onSettled)==null?void 0:W.call(ee,void 0,fe,u,this.state.context,r))}catch(te){Promise.reject(te)}throw ot(this,sa,nl).call(this,{type:"error",error:fe}),fe}finally{U(this,ht).runNext(this)}}},Yi=new WeakMap,ua=new WeakMap,ht=new WeakMap,Dl=new WeakMap,sa=new WeakSet,nl=function(u){const c=r=>{switch(u.type){case"failed":return{...r,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...r,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:u.error,failureCount:r.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=c(this.state),yt.batch(()=>{U(this,ua).forEach(r=>{r.onMutationUpdate(u)}),U(this,ht).notify({mutation:this,type:"updated",action:u})})},ey);function Tv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ra,Wt,Qi,ty,Ev=(ty=class extends xs{constructor(u={}){super();xe(this,Ra);xe(this,Wt);xe(this,Qi);this.config=u,se(this,Ra,new Set),se(this,Wt,new Map),se(this,Qi,0)}build(u,c,r){const f=new Sv({client:u,mutationCache:this,mutationId:++cs(this,Qi)._,options:u.defaultMutationOptions(c),state:r});return this.add(f),f}add(u){U(this,Ra).add(u);const c=os(u);if(typeof c=="string"){const r=U(this,Wt).get(c);r?r.push(u):U(this,Wt).set(c,[u])}this.notify({type:"added",mutation:u})}remove(u){if(U(this,Ra).delete(u)){const c=os(u);if(typeof c=="string"){const r=U(this,Wt).get(c);if(r)if(r.length>1){const f=r.indexOf(u);f!==-1&&r.splice(f,1)}else r[0]===u&&U(this,Wt).delete(c)}}this.notify({type:"removed",mutation:u})}canRun(u){const c=os(u);if(typeof c=="string"){const r=U(this,Wt).get(c),f=r==null?void 0:r.find(m=>m.state.status==="pending");return!f||f===u}else return!0}runNext(u){var r;const c=os(u);if(typeof c=="string"){const f=(r=U(this,Wt).get(c))==null?void 0:r.find(m=>m!==u&&m.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{U(this,Ra).forEach(u=>{this.notify({type:"removed",mutation:u})}),U(this,Ra).clear(),U(this,Wt).clear()})}getAll(){return Array.from(U(this,Ra))}find(u){const c={exact:!0,...u};return this.getAll().find(r=>Um(c,r))}findAll(u={}){return this.getAll().filter(c=>Um(u,c))}notify(u){yt.batch(()=>{this.listeners.forEach(c=>{c(u)})})}resumePausedMutations(){const u=this.getAll().filter(c=>c.state.isPaused);return yt.batch(()=>Promise.all(u.map(c=>c.continue().catch($t))))}},Ra=new WeakMap,Wt=new WeakMap,Qi=new WeakMap,ty);function os(n){var u;return(u=n.options.scope)==null?void 0:u.id}var ca,ay,Av=(ay=class extends xs{constructor(u={}){super();xe(this,ca);this.config=u,se(this,ca,new Map)}build(u,c,r){const f=c.queryKey,m=c.queryHash??oo(f,c);let v=this.get(m);return v||(v=new vv({client:u,queryKey:f,queryHash:m,options:u.defaultQueryOptions(c),state:r,defaultOptions:u.getQueryDefaults(f)}),this.add(v)),v}add(u){U(this,ca).has(u.queryHash)||(U(this,ca).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const c=U(this,ca).get(u.queryHash);c&&(u.destroy(),c===u&&U(this,ca).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){yt.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return U(this,ca).get(u)}getAll(){return[...U(this,ca).values()]}find(u){const c={exact:!0,...u};return this.getAll().find(r=>Dm(c,r))}findAll(u={}){const c=this.getAll();return Object.keys(u).length>0?c.filter(r=>Dm(u,r)):c}notify(u){yt.batch(()=>{this.listeners.forEach(c=>{c(u)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},ca=new WeakMap,ay),Ve,cl,rl,Mn,jn,ol,On,zn,ly,Nv=(ly=class{constructor(n={}){xe(this,Ve);xe(this,cl);xe(this,rl);xe(this,Mn);xe(this,jn);xe(this,ol);xe(this,On);xe(this,zn);se(this,Ve,n.queryCache||new Av),se(this,cl,n.mutationCache||new Ev),se(this,rl,n.defaultOptions||{}),se(this,Mn,new Map),se(this,jn,new Map),se(this,ol,0)}mount(){cs(this,ol)._++,U(this,ol)===1&&(se(this,On,Sy.subscribe(async n=>{n&&(await this.resumePausedMutations(),U(this,Ve).onFocus())})),se(this,zn,ys.subscribe(async n=>{n&&(await this.resumePausedMutations(),U(this,Ve).onOnline())})))}unmount(){var n,u;cs(this,ol)._--,U(this,ol)===0&&((n=U(this,On))==null||n.call(this),se(this,On,void 0),(u=U(this,zn))==null||u.call(this),se(this,zn,void 0))}isFetching(n){return U(this,Ve).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return U(this,cl).findAll({...n,status:"pending"}).length}getQueryData(n){var c;const u=this.defaultQueryOptions({queryKey:n});return(c=U(this,Ve).get(u.queryHash))==null?void 0:c.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),c=U(this,Ve).build(this,u),r=c.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime($r(u.staleTime,c))&&this.prefetchQuery(u),Promise.resolve(r))}getQueriesData(n){return U(this,Ve).findAll(n).map(({queryKey:u,state:c})=>{const r=c.data;return[u,r]})}setQueryData(n,u,c){const r=this.defaultQueryOptions({queryKey:n}),f=U(this,Ve).get(r.queryHash),m=f==null?void 0:f.state.data,v=lv(u,m);if(v!==void 0)return U(this,Ve).build(this,r).setData(v,{...c,manual:!0})}setQueriesData(n,u,c){return yt.batch(()=>U(this,Ve).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,u,c)]))}getQueryState(n){var c;const u=this.defaultQueryOptions({queryKey:n});return(c=U(this,Ve).get(u.queryHash))==null?void 0:c.state}removeQueries(n){const u=U(this,Ve);yt.batch(()=>{u.findAll(n).forEach(c=>{u.remove(c)})})}resetQueries(n,u){const c=U(this,Ve);return yt.batch(()=>(c.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const c={revert:!0,...u},r=yt.batch(()=>U(this,Ve).findAll(n).map(f=>f.cancel(c)));return Promise.all(r).then($t).catch($t)}invalidateQueries(n,u={}){return yt.batch(()=>(U(this,Ve).findAll(n).forEach(c=>{c.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},u)))}refetchQueries(n,u={}){const c={...u,cancelRefetch:u.cancelRefetch??!0},r=yt.batch(()=>U(this,Ve).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let m=f.fetch(void 0,c);return c.throwOnError||(m=m.catch($t)),f.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(r).then($t)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const c=U(this,Ve).build(this,u);return c.isStaleByTime($r(u.staleTime,c))?c.fetch(u):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then($t).catch($t)}fetchInfiniteQuery(n){return n.behavior=Gm(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then($t).catch($t)}ensureInfiniteQueryData(n){return n.behavior=Gm(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ys.isOnline()?U(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Ve)}getMutationCache(){return U(this,cl)}getDefaultOptions(){return U(this,rl)}setDefaultOptions(n){se(this,rl,n)}setQueryDefaults(n,u){U(this,Mn).set(Li(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...U(this,Mn).values()],c={};return u.forEach(r=>{Bi(n,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(n,u){U(this,jn).set(Li(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...U(this,jn).values()],c={};return u.forEach(r=>{Bi(n,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const u={...U(this,rl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=oo(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===fo&&(u.enabled=!1),u}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...U(this,rl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){U(this,Ve).clear(),U(this,cl).clear()}},Ve=new WeakMap,cl=new WeakMap,rl=new WeakMap,Mn=new WeakMap,jn=new WeakMap,ol=new WeakMap,On=new WeakMap,zn=new WeakMap,ly),Cv=x.createContext(void 0),Mv=({client:n,children:u})=>(x.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(Cv.Provider,{value:n,children:u}));const jv="modulepreload",Ov=function(n){return"/"+n},Qm={},Oy=function(u,c,r){let f=Promise.resolve();if(c&&c.length>0){let v=function(y){return Promise.all(y.map(N=>Promise.resolve(N).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=v(c.map(y=>{if(y=Ov(y),y in Qm)return;Qm[y]=!0;const N=y.endsWith(".css"),E=N?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${E}`))return;const D=document.createElement("link");if(D.rel=N?"stylesheet":jv,N||(D.as="script"),D.crossOrigin="",D.href=y,p&&D.setAttribute("nonce",p),document.head.appendChild(D),N)return new Promise((k,K)=>{D.addEventListener("load",k),D.addEventListener("error",()=>K(new Error(`Unable to preload CSS for ${y}`)))})}))}function m(v){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=v,window.dispatchEvent(g),!g.defaultPrevented)throw v}return f.then(v=>{for(const g of v||[])g.status==="rejected"&&m(g.reason);return u().catch(m)})};var zv=function(){return null};const ho="";function Ss(){const n=localStorage.getItem("titan-token");return n?{Authorization:`Bearer ${n}`}:{}}function Ft(n,u){const c={...Ss(),...u==null?void 0:u.headers};return fetch(n,{...u,headers:c})}async function Y(n,u){const c=await fetch(`${ho}${n}`,{...u,headers:{"Content-Type":"application/json",...Ss(),...u==null?void 0:u.headers}});if(!c.ok){const r=await c.text().catch(()=>"");throw new Error(`${c.status}: ${r||c.statusText}`)}return c.json()}function s2(n,u,c,r,f){return mo("chat_message_sent",{streaming:!0,hasSession:!!u}),new Promise((m,v)=>{fetch(`${ho}/api/message`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...Ss()},body:JSON.stringify({content:n,sessionId:u,...(f==null?void 0:f.agentId)&&{agentId:f.agentId},...(f==null?void 0:f.systemPromptAppendix)&&{systemPromptAppendix:f.systemPromptAppendix}}),signal:r}).then(g=>{var k;if(!g.ok){v(new Error(`${g.status}: ${g.statusText}`));return}const p=(k=g.body)==null?void 0:k.getReader();if(!p){v(new Error("No response body"));return}const y=new TextDecoder;let N="",E="";function D(){p.read().then(({done:K,value:z})=>{if(K){m();return}N+=y.decode(z,{stream:!0});const X=N.split(`
62
- `);N=X.pop()||"";for(const Q of X)if(Q.startsWith("event: "))E=Q.slice(7).trim();else if(Q.startsWith("data: ")){const F=Q.slice(6);if(F==="[DONE]"){m();return}try{const B=JSON.parse(F),V=E||B.type||"token";V==="token"?c==null||c({type:"token",data:B.text??B.data??""}):V==="tool_call"?c==null||c({type:"tool_start",data:"",toolName:B.name,toolArgs:B.args}):V==="tool_end"?c==null||c({type:"tool_end",data:"",toolName:B.name,toolResult:B.result,toolDurationMs:B.durationMs,toolSuccess:B.success,toolDiff:B.diff}):V==="thinking"?c==null||c({type:"thinking",data:""}):V==="round"?c==null||c({type:"round",data:"",round:B.round,maxRounds:B.maxRounds}):V==="done"?B.error&&!B.content?c==null||c({type:"error",data:B.message??B.error??"Unknown error",errorCode:B.error,errorMessage:B.message,errorAction:B.action}):c==null||c({type:"done",data:B.content??"",sessionId:B.sessionId,model:B.model,durationMs:B.durationMs,toolsUsed:B.toolsUsed,pendingApproval:B.pendingApproval}):V==="error"?c==null||c({type:"error",data:B.error??B.message??""}):c==null||c({type:B.type??"token",data:B.text??B.data??"",...B})}catch{c==null||c({type:"token",data:F})}E=""}else Q===""&&(E="");D()}).catch(v)}D()}).catch(v)})}async function c2(){return Y("/api/sessions")}async function r2(n){return(await Y(`/api/sessions/${n}/messages`)).map(c=>({role:c.role??"assistant",content:c.content??"",timestamp:c.createdAt??c.timestamp??void 0,model:c.model??void 0}))}async function o2(n){await Y(`/api/sessions/${n}`,{method:"DELETE"})}async function f2(n,u){await Y(`/api/sessions/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:u})})}async function zy(){return Y("/api/config")}async function Rv(n){return Y("/api/config",{method:"POST",body:JSON.stringify(n)})}async function wv(){return Y("/api/voice/health")}async function d2(){const n=await Y("/api/stats");return{uptime:n.uptime??0,totalRequests:n.totalRequests??0,activeAgents:n.activeAgents??0,activeSessions:n.activeSessions??0,memoryUsage:n.memoryUsage??{heapUsed:(n.memoryMB??0)*1024*1024,heapTotal:(n.memoryMB??0)*1024*1024*1.5,rss:0,external:0,arrayBuffers:0},version:n.version??"",model:n.model??n.activeModel??"",provider:n.provider??""}}async function h2(){return Y("/api/skills")}async function m2(){const n=await Y("/api/channels");return(Array.isArray(n)?n:[]).map(u=>{var c;return{name:u.name??"Unknown",type:u.type??((c=u.name)==null?void 0:c.toLowerCase())??"unknown",enabled:u.enabled??u.connected??!1,status:u.connected?"connected":"disconnected"}})}async function y2(){return(await zy()).channels??{}}async function p2(n,u){return Rv({channels:{[n]:u}})}async function g2(){const n=await Y("/api/mesh/peers");return Array.isArray(n)?n:n.peers??[]}async function v2(){const n=await Y("/api/mesh/pending");return Array.isArray(n)?n:n.pending??[]}async function b2(n){await Y(`/api/mesh/approve/${n}`,{method:"POST"})}async function x2(n){await Y(`/api/mesh/reject/${n}`,{method:"POST"})}async function S2(n){await Y(`/api/mesh/revoke/${n}`,{method:"POST"})}async function T2(n,u){const c=new URLSearchParams;n&&c.set("level",n),u&&c.set("limit",String(u));const r=c.toString(),f=await Y(`/api/logs${r?`?${r}`:""}`);return Array.isArray(f)?f:(f.lines??[]).map(v=>{const g=v.match(/^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s+(DEBUG|INFO|WARN|ERROR)\s+(.*)$/);return g?{timestamp:g[1],level:g[2].toLowerCase(),message:g[3]}:{timestamp:"",level:"info",message:v}})}async function E2(){const n=await Y("/api/models"),u=[];for(const[c,r]of Object.entries(n))if(Array.isArray(r))for(const f of r){const m=f.includes("/")?f.split("/").slice(1).join("/"):f;u.push({id:f,name:m,provider:c,available:!0})}return u}async function A2(n,u){await Y("/api/model/switch",{method:"POST",body:JSON.stringify({model:n,provider:u})})}async function N2(){return Y("/api/personas")}async function C2(n){return Y("/api/persona/switch",{method:"POST",body:JSON.stringify({persona:n})})}async function M2(){return Y("/api/metrics/summary")}async function j2(){return(await Y("/api/mcp/clients")).servers??[]}async function O2(n){return Y("/api/mcp/clients",{method:"POST",body:JSON.stringify(n)})}async function z2(n){await Y(`/api/mcp/clients/${n}`,{method:"DELETE"})}async function R2(n,u){await Y(`/api/mcp/clients/${n}/toggle`,{method:"POST",body:JSON.stringify({enabled:u})})}async function w2(n){return Y(`/api/mcp/clients/${n}/test`,{method:"POST"})}async function _2(){return(await Y("/api/mcp/presets")).presets??[]}async function D2(){return Y("/api/daemon/status")}async function U2(){await Y("/api/daemon/stop",{method:"POST"})}async function H2(){await Y("/api/daemon/resume",{method:"POST"})}async function q2(n){const u=new URLSearchParams;n!=null&&n.since&&u.set("since",n.since),n!=null&&n.action&&u.set("action",n.action),n!=null&&n.source&&u.set("source",n.source),u.set("limit",String(n.limit));const c=u.toString();return(await Y(`/api/audit${c?`?${c}`:""}`)).entries??[]}async function L2(n){const u=`?hours=${n}`;return Y(`/api/audit/stats${u}`)}async function B2(){return Y("/api/files/roots")}async function G2(n,u){const c=new URLSearchParams;n&&c.set("path",n),u&&c.set("root",u);const r=c.toString();return Y(`/api/files${r?`?${r}`:""}`)}async function Y2(n,u){const c=new URLSearchParams({path:n});return u&&c.set("root",u),Y(`/api/files/read?${c}`)}async function Q2(n,u,c){return Y("/api/files/write",{method:"POST",body:JSON.stringify({path:n,content:u,root:c})})}async function k2(n,u){return Y("/api/files/mkdir",{method:"POST",body:JSON.stringify({path:n,root:u})})}async function X2(n,u,c){return Y("/api/files/rename",{method:"POST",body:JSON.stringify({oldPath:n,newPath:u,root:c})})}async function V2(n,u){const c=new URLSearchParams({path:n});return u&&c.set("root",u),Y(`/api/files/delete?${c}`,{method:"DELETE"})}async function Z2(){return Y("/api/voice/f5tts/status")}async function K2(){return Y("/api/analytics/profile")}async function J2(){return Y("/api/voice/clone/voices")}async function $2(n,u,c){return Y("/api/voice/clone/upload",{method:"POST",body:JSON.stringify({name:n,audio:u,transcript:c})})}async function F2(n){return Y(`/api/voice/clone/${encodeURIComponent(n)}`,{method:"DELETE"})}async function W2(n,u){const c=JSON.stringify({text:u||"Hello, how can I help you today?",voice:n}),r=await fetch(`${ho}/api/voice/preview`,{method:"POST",headers:{"Content-Type":"application/json",...Ss()},body:c});if(!r.ok)throw new Error(`Preview failed: ${r.statusText}`);return r.arrayBuffer()}async function P2(){return Y("/api/command-post/dashboard")}async function I2(){return Y("/api/command-post/agents")}async function ex(n){return Y("/api/command-post/budgets",{method:"POST",body:JSON.stringify(n)})}async function tx(n,u){return Y(`/api/command-post/budgets/${n}`,{method:"PUT",body:JSON.stringify(u)})}async function ax(n){return Y(`/api/command-post/budgets/${n}`,{method:"DELETE"})}async function lx(n=50,u){const c=new URLSearchParams({limit:String(n)});return Y(`/api/command-post/activity?${c}`)}async function nx(){return Y("/api/command-post/goals/tree")}async function ix(){return Y("/api/command-post/org")}async function ux(n){const u=new URLSearchParams;n!=null&&n.status&&u.set("status",n.status),n!=null&&n.assignee&&u.set("assignee",n.assignee),n!=null&&n.goalId&&u.set("goalId",n.goalId);const c=u.toString();return Y(`/api/command-post/issues${c?`?${c}`:""}`)}async function sx(n){const u=`?status=${n}`;return Y(`/api/command-post/approvals${u}`)}async function cx(n,u,c){return Y(`/api/command-post/approvals/${n}/approve`,{method:"POST",body:JSON.stringify({decidedBy:u,note:c})})}async function rx(n,u,c){return Y(`/api/command-post/approvals/${n}/reject`,{method:"POST",body:JSON.stringify({decidedBy:u,note:c})})}async function ox(n,u=50){const c=new URLSearchParams({limit:String(u)});return n&&c.set("agentId",n),Y(`/api/command-post/runs?${c}`)}async function fx(n,u){return Y(`/api/command-post/agents/${n}`,{method:"PATCH",body:JSON.stringify(u)})}async function dx(n=50,u){const c=new URLSearchParams({limit:String(n)});return Y(`/api/traces?${c}`)}async function hx(n){return Y(`/api/traces/${n}`)}async function mx(n=50){return Y(`/api/alerts?limit=${n}`)}async function yx(){return Y("/api/soul/wisdom")}async function px(n=50){return Y(`/api/guardrails/violations?limit=${n}`)}async function gx(){return Y("/api/checkpoints")}async function vx(){const n=await Y("/api/companies");return Array.isArray(n)?n:n&&typeof n=="object"&&"companies"in n?n.companies:[]}async function bx(n){return Y("/api/companies",{method:"POST",body:JSON.stringify(n)})}async function xx(n,u){return Y(`/api/companies/${n}`,{method:"PATCH",body:JSON.stringify(u)})}async function Sx(n){return Y(`/api/companies/${n}`,{method:"DELETE"})}async function Tx(n,u,c){return Y(`/api/command-post/approvals/${n}/reply`,{method:"POST",body:JSON.stringify({author:u,body:c})})}async function Ex(n,u){return Y(`/api/command-post/approvals/${n}/snooze`,{method:"POST",body:JSON.stringify({until:u})})}async function Ax(n,u,c,r){return Y("/api/command-post/approvals/batch",{method:"POST",body:JSON.stringify({ids:n,action:u,decidedBy:c,note:r})})}async function Nx(){return Y("/api/social/state")}async function Cx(n){return Y("/api/social/autopilot/toggle",{method:"POST",body:JSON.stringify({enabled:n})})}async function Mx(n){return Y("/api/social/post",{method:"POST",body:JSON.stringify({content:n})})}async function jx(n){return Y(`/api/social/drafts/${n}/approve`,{method:"POST"})}async function Ox(n){return Y(`/api/social/drafts/${n}/reject`,{method:"POST"})}async function zx(){return Y("/api/social/graph-context")}async function _v(n){return Y("/api/login",{method:"POST",body:JSON.stringify({password:n})})}async function Rx(){return Y("/api/backup/create",{method:"POST"})}async function wx(){return Y("/api/backup/list")}async function _x(n){return Y("/api/backup/verify",{method:"POST",body:JSON.stringify(n?{path:n}:{})})}async function Dx(){return Y("/api/training/stats")}async function Ux(){return Y("/api/training/runs")}async function Hx(){return Y("/api/recipes")}async function qx(n){return Y(`/api/recipes/${n}`,{method:"DELETE"})}async function Lx(n,u){return Y(`/api/recipes/${n}/run`,{method:"POST",body:JSON.stringify({})})}async function Bx(){return Y("/api/vram")}async function Gx(){return Y("/api/teams")}async function Yx(n){return Y(`/api/teams/${n}`,{method:"DELETE"})}async function Qx(){return Y("/api/cron")}async function kx(n){return Y(`/api/cron/${n}/toggle`,{method:"POST"})}async function Xx(n){return Y(`/api/cron/${n}`,{method:"DELETE"})}async function Vx(n){return Y(`/api/checkpoints/${n}`,{method:"DELETE"})}async function Zx(){return Y("/api/organism/alerts")}async function Kx(){return Y("/api/organism/safety-metrics")}async function Jx(n){return Y(`/api/organism/alerts/${n}/acknowledge`,{method:"POST"})}async function $x(){return Y("/api/fleet")}async function Fx(n,u){return Y("/api/browser/solve-captcha",{method:"POST",body:JSON.stringify({imageBase64:n,provider:u})})}async function Wx(){return Y("/api/paperclip/status")}async function Px(){return Y("/api/paperclip/start",{method:"POST"})}async function Ix(){return Y("/api/paperclip/stop",{method:"POST"})}async function eS(){return Y("/api/test-health/summary")}async function tS(){return Y("/api/test-health/failing")}async function aS(){return Y("/api/test-health/flaky")}async function lS(n){return Y("/api/test-health/run",{method:"POST",body:JSON.stringify({})})}function mo(n,u){Ft("/api/telemetry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:n,properties:u,timestamp:new Date().toISOString()})}).catch(()=>{})}const Ry=x.createContext({config:null,voiceHealth:null,voiceAvailable:!1,loading:!0,refresh:async()=>{}});function Dv({children:n}){var N;const[u,c]=x.useState(null),[r,f]=x.useState(null),[m,v]=x.useState(!0),g=async()=>{var E;try{const D=await zy();if(c(D),(E=D.voice)!=null&&E.enabled)try{const k=await wv();f(k)}catch{f(null)}}catch(D){console.error("Failed to load config:",D)}finally{v(!1)}};x.useEffect(()=>{g();let E=setInterval(g,3e4);const D=()=>{document.hidden?clearInterval(E):(g(),E=setInterval(g,3e4))};return document.addEventListener("visibilitychange",D),()=>{clearInterval(E),document.removeEventListener("visibilitychange",D)}},[]);const p=!!((N=u==null?void 0:u.voice)!=null&&N.enabled),y=x.useMemo(()=>({config:u,voiceHealth:r,voiceAvailable:p,loading:m,refresh:g}),[u,r,p,m,g]);return h.jsx(Ry.Provider,{value:y,children:n})}function Uv(){return x.useContext(Ry)}const wy=x.createContext({isAuthenticated:!1,isLoading:!0,login:async()=>{},logout:()=>{}});function Hv({children:n}){const[u,c]=x.useState(!1),[r,f]=x.useState(!0);x.useEffect(()=>{const p=localStorage.getItem("titan-token"),y={};p&&(y.Authorization=`Bearer ${p}`),fetch("/api/health",{headers:y}).then(N=>{N.ok?c(!0):N.status===401?(localStorage.removeItem("titan-token"),c(!1)):c(!0)}).catch(()=>{c(!0)}).finally(()=>f(!1))},[]);const m=x.useCallback(async p=>{const{token:y}=await _v(p);localStorage.setItem("titan-token",y),c(!0)},[]),v=x.useCallback(()=>{localStorage.removeItem("titan-token"),c(!1)},[]),g=x.useMemo(()=>({isAuthenticated:u,isLoading:r,login:m,logout:v}),[u,r,m,v]);return h.jsx(wy.Provider,{value:g,children:n})}function _y(){return x.useContext(wy)}/**
61
+ Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let N=It(),E;if(u){let Q=typeof u=="string"?Rn(u):u;Qe(p==="/"||((X=Q.pathname)==null?void 0:X.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),E=Q}else E=N;let D=E.pathname||"/",k=D;if(p!=="/"){let Q=p.replace(/^\//,"").split("/");k="/"+D.replace(/^\//,"").split("/").slice(Q.length).join("/")}let K=iy(n,{pathname:k});Vt(y||K!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Vt(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let z=c1(K&&K.map(Q=>Object.assign({},Q,{params:Object.assign({},v,Q.params),pathname:ra([p,r.encodeLocation?r.encodeLocation(Q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?p:ra([p,r.encodeLocation?r.encodeLocation(Q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),f,c);return u&&z?x.createElement(ki.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...E},navigationType:"POP"}},z):z}function n1(){let n=h1(),u=Vg(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),c=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",n),v=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:m},"ErrorBoundary")," or"," ",x.createElement("code",{style:m},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},u),c?x.createElement("pre",{style:f},c):null,v)}var i1=x.createElement(n1,null),py=class extends x.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.onError?this.props.onError(n,u):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const c=e1(n.digest);c&&(n=c)}let u=n!==void 0?x.createElement(Pt.Provider,{value:this.props.routeContext},x.createElement(no.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?x.createElement(u1,{error:n},u):u}};py.contextType=Jg;var Qr=new WeakMap;function u1({children:n,error:u}){let{basename:c}=x.useContext(_t);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let r=Ig(u.digest);if(r){let f=Qr.get(u);if(f)throw f;let m=ry(r.location,c);if(cy&&!Qr.get(u))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw Qr.set(u,v),v}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return n}function s1({routeContext:n,match:u,children:c}){let r=x.useContext(wn);return r&&r.static&&r.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=u.route.id),x.createElement(Pt.Provider,{value:n},c)}function c1(n,u=[],c){let r=c==null?void 0:c.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let f=n,m=r==null?void 0:r.errors;if(m!=null){let N=f.findIndex(E=>E.route.id&&(m==null?void 0:m[E.route.id])!==void 0);Qe(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,N+1))}let v=!1,g=-1;if(c&&r){v=r.renderFallback;for(let N=0;N<f.length;N++){let E=f[N];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(g=N),E.route.id){let{loaderData:D,errors:k}=r,K=E.route.loader&&!D.hasOwnProperty(E.route.id)&&(!k||k[E.route.id]===void 0);if(E.route.lazy||K){c.isStatic&&(v=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let p=c==null?void 0:c.onError,y=r&&p?(N,E)=>{var D,k;p(N,{location:r.location,params:((k=(D=r.matches)==null?void 0:D[0])==null?void 0:k.params)??{},unstable_pattern:Zg(r.matches),errorInfo:E})}:void 0;return f.reduceRight((N,E,D)=>{let k,K=!1,z=null,X=null;r&&(k=m&&E.route.id?m[E.route.id]:void 0,z=E.route.errorElement||i1,v&&(g<0&&D===0?(gy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,X=null):g===D&&(K=!0,X=E.route.hydrateFallbackElement||null)));let Q=u.concat(f.slice(0,D+1)),F=()=>{let G;return k?G=z:K?G=X:E.route.Component?G=x.createElement(E.route.Component,null):E.route.element?G=E.route.element:G=N,x.createElement(s1,{match:E,routeContext:{outlet:N,matches:Q,isDataRoute:r!=null},children:G})};return r&&(E.route.ErrorBoundary||E.route.errorElement||D===0)?x.createElement(py,{location:r.location,revalidation:r.revalidation,component:z,error:k,children:F(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:y}):F()},null)}function uo(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function r1(n){let u=x.useContext(wn);return Qe(u,uo(n)),u}function o1(n){let u=x.useContext(gs);return Qe(u,uo(n)),u}function f1(n){let u=x.useContext(Pt);return Qe(u,uo(n)),u}function so(n){let u=f1(n),c=u.matches[u.matches.length-1];return Qe(c.route.id,`${n} can only be used on routes that contain a unique "id"`),c.route.id}function d1(){return so("useRouteId")}function h1(){var r;let n=x.useContext(no),u=o1("useRouteError"),c=so("useRouteError");return n!==void 0?n:(r=u.errors)==null?void 0:r[c]}function m1(){let{router:n}=r1("useNavigate"),u=so("useNavigate"),c=x.useRef(!1);return my(()=>{c.current=!0}),x.useCallback(async(f,m={})=>{Vt(c.current,hy),c.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:u,...m}))},[n,u])}var _m={};function gy(n,u,c){!u&&!_m[n]&&(_m[n]=!0,Vt(!1,c))}x.memo(y1);function y1({routes:n,future:u,state:c,isStatic:r,onError:f}){return yy(n,void 0,{state:c,isStatic:r,onError:f})}function mt({to:n,replace:u,state:c,relative:r}){Qe(_n(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=x.useContext(_t);Vt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=x.useContext(Pt),{pathname:v}=It(),g=io(),p=ps(n,lo(m),v,r==="path"),y=JSON.stringify(p);return x.useEffect(()=>{g(JSON.parse(y),{replace:u,state:c,relative:r})},[g,y,r,u,c]),null}function lt(n){Qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function p1({basename:n="/",children:u=null,location:c,navigationType:r="POP",navigator:f,static:m=!1,unstable_useTransitions:v}){Qe(!_n(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),p=x.useMemo(()=>({basename:g,navigator:f,static:m,unstable_useTransitions:v,future:{}}),[g,f,m,v]);typeof c=="string"&&(c=Rn(c));let{pathname:y="/",search:N="",hash:E="",state:D=null,key:k="default",unstable_mask:K}=c,z=x.useMemo(()=>{let X=wa(y,g);return X==null?null:{location:{pathname:X,search:N,hash:E,state:D,key:k,unstable_mask:K},navigationType:r}},[g,y,N,E,D,k,r,K]);return Vt(z!=null,`<Router basename="${g}"> is not able to match the URL "${y}${N}${E}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:x.createElement(_t.Provider,{value:p},x.createElement(ki.Provider,{children:u,value:z}))}function g1({children:n,location:u}){return l1(Zr(n),u)}function Zr(n,u=[]){let c=[];return x.Children.forEach(n,(r,f)=>{if(!x.isValidElement(r))return;let m=[...u,f];if(r.type===x.Fragment){c.push.apply(c,Zr(r.props.children,m));return}Qe(r.type===lt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||m.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(v.children=Zr(r.props.children,m)),c.push(v)}),c}var ds="get",hs="application/x-www-form-urlencoded";function vs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function v1(n){return vs(n)&&n.tagName.toLowerCase()==="button"}function b1(n){return vs(n)&&n.tagName.toLowerCase()==="form"}function x1(n){return vs(n)&&n.tagName.toLowerCase()==="input"}function S1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function T1(n,u){return n.button===0&&(!u||u==="_self")&&!S1(n)}function Kr(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((u,c)=>{let r=n[c];return u.concat(Array.isArray(r)?r.map(f=>[c,f]):[[c,r]])},[]))}function E1(n,u){let c=Kr(n);return u&&u.forEach((r,f)=>{c.has(f)||u.getAll(f).forEach(m=>{c.append(f,m)})}),c}var rs=null;function A1(){if(rs===null)try{new FormData(document.createElement("form"),0),rs=!1}catch{rs=!0}return rs}var N1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kr(n){return n!=null&&!N1.has(n)?(Vt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hs}"`),null):n}function C1(n,u){let c,r,f,m,v;if(b1(n)){let g=n.getAttribute("action");r=g?wa(g,u):null,c=n.getAttribute("method")||ds,f=kr(n.getAttribute("enctype"))||hs,m=new FormData(n)}else if(v1(n)||x1(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||g.getAttribute("action");if(r=p?wa(p,u):null,c=n.getAttribute("formmethod")||g.getAttribute("method")||ds,f=kr(n.getAttribute("formenctype"))||kr(g.getAttribute("enctype"))||hs,m=new FormData(g,n),!A1()){let{name:y,type:N,value:E}=n;if(N==="image"){let D=y?`${y}.`:"";m.append(`${D}x`,"0"),m.append(`${D}y`,"0")}else y&&m.append(y,E)}}else{if(vs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=ds,r=null,f=hs,v=n}return m&&f==="text/plain"&&(v=m,m=void 0),{action:r,method:c.toLowerCase(),encType:f,formData:m,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function co(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function M1(n,u,c,r){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:u&&wa(f.pathname,u)==="/"?f.pathname=`${u.replace(/\/$/,"")}/_root.${r}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${r}`,f}async function O1(n,u){if(n.id in u)return u[n.id];try{let c=await import(n.module);return u[n.id]=c,c}catch(c){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function j1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function z1(n,u,c){let r=await Promise.all(n.map(async f=>{let m=u.routes[f.route.id];if(m){let v=await O1(m,c);return v.links?v.links():[]}return[]}));return D1(r.flat(1).filter(j1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Dm(n,u,c,r,f,m){let v=(p,y)=>c[y]?p.route.id!==c[y].route.id:!0,g=(p,y)=>{var N;return c[y].pathname!==p.pathname||((N=c[y].route.path)==null?void 0:N.endsWith("*"))&&c[y].params["*"]!==p.params["*"]};return m==="assets"?u.filter((p,y)=>v(p,y)||g(p,y)):m==="data"?u.filter((p,y)=>{var E;let N=r.routes[p.route.id];if(!N||!N.hasLoader)return!1;if(v(p,y)||g(p,y))return!0;if(p.route.shouldRevalidate){let D=p.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((E=c[0])==null?void 0:E.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof D=="boolean")return D}return!0}):[]}function R1(n,u,{includeHydrateFallback:c}={}){return w1(n.map(r=>{let f=u.routes[r.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function w1(n){return[...new Set(n)]}function _1(n){let u={},c=Object.keys(n).sort();for(let r of c)u[r]=n[r];return u}function D1(n,u){let c=new Set;return new Set(u),n.reduce((r,f)=>{let m=JSON.stringify(_1(f));return c.has(m)||(c.add(m),r.push({key:m,link:f})),r},[])}function vy(){let n=x.useContext(wn);return co(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function U1(){let n=x.useContext(gs);return co(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var ro=x.createContext(void 0);ro.displayName="FrameworkContext";function by(){let n=x.useContext(ro);return co(n,"You must render this element inside a <HydratedRouter> element"),n}function H1(n,u){let c=x.useContext(ro),[r,f]=x.useState(!1),[m,v]=x.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:y,onMouseLeave:N,onTouchStart:E}=u,D=x.useRef(null);x.useEffect(()=>{if(n==="render"&&v(!0),n==="viewport"){let z=Q=>{Q.forEach(F=>{v(F.isIntersecting)})},X=new IntersectionObserver(z,{threshold:.5});return D.current&&X.observe(D.current),()=>{X.disconnect()}}},[n]),x.useEffect(()=>{if(r){let z=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(z)}}},[r]);let k=()=>{f(!0)},K=()=>{f(!1),v(!1)};return c?n!=="intent"?[m,D,{}]:[m,D,{onFocus:Ui(g,k),onBlur:Ui(p,K),onMouseEnter:Ui(y,k),onMouseLeave:Ui(N,K),onTouchStart:Ui(E,k)}]:[!1,D,{}]}function Ui(n,u){return c=>{n&&n(c),c.defaultPrevented||u(c)}}function q1({page:n,...u}){let{router:c}=vy(),r=x.useMemo(()=>iy(c.routes,n,c.basename),[c.routes,n,c.basename]);return r?x.createElement(B1,{page:n,matches:r,...u}):null}function L1(n){let{manifest:u,routeModules:c}=by(),[r,f]=x.useState([]);return x.useEffect(()=>{let m=!1;return z1(n,u,c).then(v=>{m||f(v)}),()=>{m=!0}},[n,u,c]),r}function B1({page:n,matches:u,...c}){let r=It(),{future:f,manifest:m,routeModules:v}=by(),{basename:g}=vy(),{loaderData:p,matches:y}=U1(),N=x.useMemo(()=>Dm(n,u,y,m,r,"data"),[n,u,y,m,r]),E=x.useMemo(()=>Dm(n,u,y,m,r,"assets"),[n,u,y,m,r]),D=x.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let z=new Set,X=!1;if(u.forEach(F=>{var V;let G=m.routes[F.route.id];!G||!G.hasLoader||(!N.some(ne=>ne.route.id===F.route.id)&&F.route.id in p&&((V=v[F.route.id])!=null&&V.shouldRevalidate)||G.hasClientLoader?X=!0:z.add(F.route.id))}),z.size===0)return[];let Q=M1(n,g,f.unstable_trailingSlashAwareDataRequests,"data");return X&&z.size>0&&Q.searchParams.set("_routes",u.filter(F=>z.has(F.route.id)).map(F=>F.route.id).join(",")),[Q.pathname+Q.search]},[g,f.unstable_trailingSlashAwareDataRequests,p,r,m,N,u,n,v]),k=x.useMemo(()=>R1(E,m),[E,m]),K=L1(E);return x.createElement(x.Fragment,null,D.map(z=>x.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...c})),k.map(z=>x.createElement("link",{key:z,rel:"modulepreload",href:z,...c})),K.map(({key:z,link:X})=>x.createElement("link",{key:z,nonce:c.nonce,...X,crossOrigin:X.crossOrigin??c.crossOrigin})))}function G1(...n){return u=>{n.forEach(c=>{typeof c=="function"?c(u):c!=null&&(c.current=u)})}}var Y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y1&&(window.__reactRouterVersion="7.13.1")}catch{}function Q1({basename:n,children:u,unstable_useTransitions:c,window:r}){let f=x.useRef();f.current==null&&(f.current=Sg({window:r,v5Compat:!0}));let m=f.current,[v,g]=x.useState({action:m.action,location:m.location}),p=x.useCallback(y=>{c===!1?g(y):x.startTransition(()=>g(y))},[c]);return x.useLayoutEffect(()=>m.listen(p),[m,p]),x.createElement(p1,{basename:n,children:u,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:c})}var xy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bs=x.forwardRef(function({onClick:u,discover:c="render",prefetch:r="none",relative:f,reloadDocument:m,replace:v,unstable_mask:g,state:p,target:y,to:N,preventScrollReset:E,viewTransition:D,unstable_defaultShouldRevalidate:k,...K},z){let{basename:X,navigator:Q,unstable_useTransitions:F}=x.useContext(_t),G=typeof N=="string"&&xy.test(N),V=ry(N,X);N=V.to;let ne=t1(N,{relative:f}),ee=It(),W=null;if(g){let Me=ps(g,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);X!=="/"&&(Me.pathname=Me.pathname==="/"?X:ra([X,Me.pathname])),W=Q.createHref(Me)}let[fe,te,Le]=H1(r,K),_e=Z1(N,{replace:v,unstable_mask:g,state:p,target:y,preventScrollReset:E,relative:f,viewTransition:D,unstable_defaultShouldRevalidate:k,unstable_useTransitions:F});function Be(Me){u&&u(Me),Me.defaultPrevented||_e(Me)}let Ge=!(V.isExternal||m),Ae=x.createElement("a",{...K,...Le,href:(Ge?W:void 0)||V.absoluteURL||ne,onClick:Ge?Be:u,ref:G1(z,te),target:y,"data-discover":!G&&c==="render"?"true":void 0});return fe&&!G?x.createElement(x.Fragment,null,Ae,x.createElement(q1,{page:ne})):Ae});bs.displayName="Link";var k1=x.forwardRef(function({"aria-current":u="page",caseSensitive:c=!1,className:r="",end:f=!1,style:m,to:v,viewTransition:g,children:p,...y},N){let E=Xi(v,{relative:y.relative}),D=It(),k=x.useContext(gs),{navigator:K,basename:z}=x.useContext(_t),X=k!=null&&W1(E)&&g===!0,Q=K.encodeLocation?K.encodeLocation(E).pathname:E.pathname,F=D.pathname,G=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;c||(F=F.toLowerCase(),G=G?G.toLowerCase():null,Q=Q.toLowerCase()),G&&z&&(G=wa(G,z)||G);const V=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let ne=F===Q||!f&&F.startsWith(Q)&&F.charAt(V)==="/",ee=G!=null&&(G===Q||!f&&G.startsWith(Q)&&G.charAt(Q.length)==="/"),W={isActive:ne,isPending:ee,isTransitioning:X},fe=ne?u:void 0,te;typeof r=="function"?te=r(W):te=[r,ne?"active":null,ee?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let Le=typeof m=="function"?m(W):m;return x.createElement(bs,{...y,"aria-current":fe,className:te,ref:N,style:Le,to:v,viewTransition:g},typeof p=="function"?p(W):p)});k1.displayName="NavLink";var X1=x.forwardRef(({discover:n="render",fetcherKey:u,navigate:c,reloadDocument:r,replace:f,state:m,method:v=ds,action:g,onSubmit:p,relative:y,preventScrollReset:N,viewTransition:E,unstable_defaultShouldRevalidate:D,...k},K)=>{let{unstable_useTransitions:z}=x.useContext(_t),X=$1(),Q=F1(g,{relative:y}),F=v.toLowerCase()==="get"?"get":"post",G=typeof g=="string"&&xy.test(g),V=ne=>{if(p&&p(ne),ne.defaultPrevented)return;ne.preventDefault();let ee=ne.nativeEvent.submitter,W=(ee==null?void 0:ee.getAttribute("formmethod"))||v,fe=()=>X(ee||ne.currentTarget,{fetcherKey:u,method:W,navigate:c,replace:f,state:m,relative:y,preventScrollReset:N,viewTransition:E,unstable_defaultShouldRevalidate:D});z&&c!==!1?x.startTransition(()=>fe()):fe()};return x.createElement("form",{ref:K,method:F,action:Q,onSubmit:r?p:V,...k,"data-discover":!G&&n==="render"?"true":void 0})});X1.displayName="Form";function V1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sy(n){let u=x.useContext(wn);return Qe(u,V1(n)),u}function Z1(n,{target:u,replace:c,unstable_mask:r,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let N=io(),E=It(),D=Xi(n,{relative:v});return x.useCallback(k=>{if(T1(k,u)){k.preventDefault();let K=c!==void 0?c:qi(E)===qi(D),z=()=>N(n,{replace:K,unstable_mask:r,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p});y?x.startTransition(()=>z()):z()}},[E,N,D,c,r,f,u,n,m,v,g,p,y])}function s2(n){Vt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=x.useRef(Kr(n)),c=x.useRef(!1),r=It(),f=x.useMemo(()=>E1(r.search,c.current?null:u.current),[r.search]),m=io(),v=x.useCallback((g,p)=>{const y=Kr(typeof g=="function"?g(new URLSearchParams(f)):g);c.current=!0,m("?"+y,p)},[m,f]);return[f,v]}var K1=0,J1=()=>`__${String(++K1)}__`;function $1(){let{router:n}=Sy("useSubmit"),{basename:u}=x.useContext(_t),c=d1(),r=n.fetch,f=n.navigate;return x.useCallback(async(m,v={})=>{let{action:g,method:p,encType:y,formData:N,body:E}=C1(m,u);if(v.navigate===!1){let D=v.fetcherKey||J1();await r(D,c,v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:N,body:E,formMethod:v.method||p,formEncType:v.encType||y,flushSync:v.flushSync})}else await f(v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:N,body:E,formMethod:v.method||p,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:c,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,f,u,c])}function F1(n,{relative:u}={}){let{basename:c}=x.useContext(_t),r=x.useContext(Pt);Qe(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),m={...Xi(n||".",{relative:u})},v=It();if(n==null){m.search=v.search;let g=new URLSearchParams(m.search),p=g.getAll("index");if(p.some(N=>N==="")){g.delete("index"),p.filter(E=>E).forEach(E=>g.append("index",E));let N=g.toString();m.search=N?`?${N}`:""}}return(!n||n===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(m.pathname=m.pathname==="/"?c:ra([c,m.pathname])),qi(m)}function W1(n,{relative:u}={}){let c=x.useContext(fy);Qe(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Sy("useViewTransitionState"),f=Xi(n,{relative:u});if(!c.isTransitioning)return!1;let m=wa(c.currentLocation.pathname,r)||c.currentLocation.pathname,v=wa(c.nextLocation.pathname,r)||c.nextLocation.pathname;return ms(f.pathname,v)!=null||ms(f.pathname,m)!=null}var xs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jl,il,En,Fm,P1=(Fm=class extends xs{constructor(){super();xe(this,jl);xe(this,il);xe(this,En);se(this,En,u=>{if(typeof window<"u"&&window.addEventListener){const c=()=>u();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){U(this,il)||this.setEventListener(U(this,En))}onUnsubscribe(){var u;this.hasListeners()||((u=U(this,il))==null||u.call(this),se(this,il,void 0))}setEventListener(u){var c;se(this,En,u),(c=U(this,il))==null||c.call(this),se(this,il,u(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(u){U(this,jl)!==u&&(se(this,jl,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(c=>{c(u)})}isFocused(){var u;return typeof U(this,jl)=="boolean"?U(this,jl):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},jl=new WeakMap,il=new WeakMap,En=new WeakMap,Fm),Ty=new P1,I1={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},ul,to,Wm,ev=(Wm=class{constructor(){xe(this,ul,I1);xe(this,to,!1)}setTimeoutProvider(n){se(this,ul,n)}setTimeout(n,u){return U(this,ul).setTimeout(n,u)}clearTimeout(n){U(this,ul).clearTimeout(n)}setInterval(n,u){return U(this,ul).setInterval(n,u)}clearInterval(n){U(this,ul).clearInterval(n)}},ul=new WeakMap,to=new WeakMap,Wm),Jr=new ev;function tv(n){setTimeout(n,0)}var av=typeof window>"u"||"Deno"in globalThis;function $t(){}function lv(n,u){return typeof n=="function"?n(u):n}function nv(n){return typeof n=="number"&&n>=0&&n!==1/0}function iv(n,u){return Math.max(n+(u||0)-Date.now(),0)}function $r(n,u){return typeof n=="function"?n(u):n}function uv(n,u){return typeof n=="function"?n(u):n}function Um(n,u){const{type:c="all",exact:r,fetchStatus:f,predicate:m,queryKey:v,stale:g}=n;if(v){if(r){if(u.queryHash!==oo(v,u.options))return!1}else if(!Bi(u.queryKey,v))return!1}if(c!=="all"){const p=u.isActive();if(c==="active"&&!p||c==="inactive"&&p)return!1}return!(typeof g=="boolean"&&u.isStale()!==g||f&&f!==u.state.fetchStatus||m&&!m(u))}function Hm(n,u){const{exact:c,status:r,predicate:f,mutationKey:m}=n;if(m){if(!u.options.mutationKey)return!1;if(c){if(Li(u.options.mutationKey)!==Li(m))return!1}else if(!Bi(u.options.mutationKey,m))return!1}return!(r&&u.state.status!==r||f&&!f(u))}function oo(n,u){return((u==null?void 0:u.queryKeyHashFn)||Li)(n)}function Li(n){return JSON.stringify(n,(u,c)=>Fr(c)?Object.keys(c).sort().reduce((r,f)=>(r[f]=c[f],r),{}):c)}function Bi(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(c=>Bi(n[c],u[c])):!1}var sv=Object.prototype.hasOwnProperty;function Ey(n,u,c=0){if(n===u)return n;if(c>500)return u;const r=qm(n)&&qm(u);if(!r&&!(Fr(n)&&Fr(u)))return u;const m=(r?n:Object.keys(n)).length,v=r?u:Object.keys(u),g=v.length,p=r?new Array(g):{};let y=0;for(let N=0;N<g;N++){const E=r?N:v[N],D=n[E],k=u[E];if(D===k){p[E]=D,(r?N<m:sv.call(n,E))&&y++;continue}if(D===null||k===null||typeof D!="object"||typeof k!="object"){p[E]=k;continue}const K=Ey(D,k,c+1);p[E]=K,K===D&&y++}return m===g&&y===m?n:p}function qm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Fr(n){if(!Lm(n))return!1;const u=n.constructor;if(u===void 0)return!0;const c=u.prototype;return!(!Lm(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Lm(n){return Object.prototype.toString.call(n)==="[object Object]"}function cv(n){return new Promise(u=>{Jr.setTimeout(u,n)})}function rv(n,u,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,u):c.structuralSharing!==!1?Ey(n,u):u}function ov(n,u,c=0){const r=[...n,u];return c&&r.length>c?r.slice(1):r}function fv(n,u,c=0){const r=[u,...n];return c&&r.length>c?r.slice(0,-1):r}var fo=Symbol();function Ay(n,u){return!n.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!n.queryFn||n.queryFn===fo?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function dv(n,u,c){let r=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=u()),r||(r=!0,f.aborted?c():f.addEventListener("abort",c,{once:!0})),f)}),n}var Ny=(()=>{let n=()=>av;return{isServer(){return n()},setIsServer(u){n=u}}})();function hv(){let n,u;const c=new Promise((f,m)=>{n=f,u=m});c.status="pending",c.catch(()=>{});function r(f){Object.assign(c,f),delete c.resolve,delete c.reject}return c.resolve=f=>{r({status:"fulfilled",value:f}),n(f)},c.reject=f=>{r({status:"rejected",reason:f}),u(f)},c}var mv=tv;function yv(){let n=[],u=0,c=g=>{g()},r=g=>{g()},f=mv;const m=g=>{u?n.push(g):f(()=>{c(g)})},v=()=>{const g=n;n=[],g.length&&f(()=>{r(()=>{g.forEach(p=>{c(p)})})})};return{batch:g=>{let p;u++;try{p=g()}finally{u--,u||v()}return p},batchCalls:g=>(...p)=>{m(()=>{g(...p)})},schedule:m,setNotifyFunction:g=>{c=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{f=g}}}var yt=yv(),An,sl,Nn,Pm,pv=(Pm=class extends xs{constructor(){super();xe(this,An,!0);xe(this,sl);xe(this,Nn);se(this,Nn,u=>{if(typeof window<"u"&&window.addEventListener){const c=()=>u(!0),r=()=>u(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){U(this,sl)||this.setEventListener(U(this,Nn))}onUnsubscribe(){var u;this.hasListeners()||((u=U(this,sl))==null||u.call(this),se(this,sl,void 0))}setEventListener(u){var c;se(this,Nn,u),(c=U(this,sl))==null||c.call(this),se(this,sl,u(this.setOnline.bind(this)))}setOnline(u){U(this,An)!==u&&(se(this,An,u),this.listeners.forEach(r=>{r(u)}))}isOnline(){return U(this,An)}},An=new WeakMap,sl=new WeakMap,Nn=new WeakMap,Pm),ys=new pv;function gv(n){return Math.min(1e3*2**n,3e4)}function Cy(n){return(n??"online")==="online"?ys.isOnline():!0}var Wr=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function My(n){let u=!1,c=0,r;const f=hv(),m=()=>f.status!=="pending",v=z=>{var X;if(!m()){const Q=new Wr(z);D(Q),(X=n.onCancel)==null||X.call(n,Q)}},g=()=>{u=!0},p=()=>{u=!1},y=()=>Ty.isFocused()&&(n.networkMode==="always"||ys.isOnline())&&n.canRun(),N=()=>Cy(n.networkMode)&&n.canRun(),E=z=>{m()||(r==null||r(),f.resolve(z))},D=z=>{m()||(r==null||r(),f.reject(z))},k=()=>new Promise(z=>{var X;r=Q=>{(m()||y())&&z(Q)},(X=n.onPause)==null||X.call(n)}).then(()=>{var z;r=void 0,m()||(z=n.onContinue)==null||z.call(n)}),K=()=>{if(m())return;let z;const X=c===0?n.initialPromise:void 0;try{z=X??n.fn()}catch(Q){z=Promise.reject(Q)}Promise.resolve(z).then(E).catch(Q=>{var ee;if(m())return;const F=n.retry??(Ny.isServer()?0:3),G=n.retryDelay??gv,V=typeof G=="function"?G(c,Q):G,ne=F===!0||typeof F=="number"&&c<F||typeof F=="function"&&F(c,Q);if(u||!ne){D(Q);return}c++,(ee=n.onFail)==null||ee.call(n,c,Q),cv(V).then(()=>y()?void 0:k()).then(()=>{u?D(Q):K()})})};return{promise:f,status:()=>f.status,cancel:v,continue:()=>(r==null||r(),f),cancelRetry:g,continueRetry:p,canStart:N,start:()=>(N()?K():k().then(K),f)}}var zl,Im,Oy=(Im=class{constructor(){xe(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nv(this.gcTime)&&se(this,zl,Jr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ny.isServer()?1/0:300*1e3))}clearGcTimeout(){U(this,zl)!==void 0&&(Jr.clearTimeout(U(this,zl)),se(this,zl,void 0))}},zl=new WeakMap,Im),Rl,Cn,Xt,wl,nt,Gi,_l,wt,jy,za,ey,vv=(ey=class extends Oy{constructor(u){super();xe(this,wt);xe(this,Rl);xe(this,Cn);xe(this,Xt);xe(this,wl);xe(this,nt);xe(this,Gi);xe(this,_l);se(this,_l,!1),se(this,Gi,u.defaultOptions),this.setOptions(u.options),this.observers=[],se(this,wl,u.client),se(this,Xt,U(this,wl).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,se(this,Rl,Gm(this.options)),this.state=u.state??U(this,Rl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var u;return(u=U(this,nt))==null?void 0:u.promise}setOptions(u){if(this.options={...U(this,Gi),...u},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=Gm(this.options);c.data!==void 0&&(this.setState(Bm(c.data,c.dataUpdatedAt)),se(this,Rl,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Xt).remove(this)}setData(u,c){const r=rv(this.state.data,u,this.options);return ot(this,wt,za).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(u,c){ot(this,wt,za).call(this,{type:"setState",state:u,setStateOptions:c})}cancel(u){var r,f;const c=(r=U(this,nt))==null?void 0:r.promise;return(f=U(this,nt))==null||f.cancel(u),c?c.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,Rl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(u=>uv(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>$r(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!iv(this.state.dataUpdatedAt,u)}onFocus(){var c;const u=this.observers.find(r=>r.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(c=U(this,nt))==null||c.continue()}onOnline(){var c;const u=this.observers.find(r=>r.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(c=U(this,nt))==null||c.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),U(this,Xt).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(c=>c!==u),this.observers.length||(U(this,nt)&&(U(this,_l)||ot(this,wt,jy).call(this)?U(this,nt).cancel({revert:!0}):U(this,nt).cancelRetry()),this.scheduleGc()),U(this,Xt).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,wt,za).call(this,{type:"invalidate"})}async fetch(u,c){var p,y,N,E,D,k,K,z,X,Q,F,G;if(this.state.fetchStatus!=="idle"&&((p=U(this,nt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(U(this,nt))return U(this,nt).continueRetry(),U(this,nt).promise}if(u&&this.setOptions(u),!this.options.queryFn){const V=this.observers.find(ne=>ne.options.queryFn);V&&this.setOptions(V.options)}const r=new AbortController,f=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(se(this,_l,!0),r.signal)})},m=()=>{const V=Ay(this.options,c),ee=(()=>{const W={client:U(this,wl),queryKey:this.queryKey,meta:this.meta};return f(W),W})();return se(this,_l,!1),this.options.persister?this.options.persister(V,ee,this):V(ee)},g=(()=>{const V={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:U(this,wl),state:this.state,fetchFn:m};return f(V),V})();(y=this.options.behavior)==null||y.onFetch(g,this),se(this,Cn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((N=g.fetchOptions)==null?void 0:N.meta))&&ot(this,wt,za).call(this,{type:"fetch",meta:(E=g.fetchOptions)==null?void 0:E.meta}),se(this,nt,My({initialPromise:c==null?void 0:c.initialPromise,fn:g.fetchFn,onCancel:V=>{V instanceof Wr&&V.revert&&this.setState({...U(this,Cn),fetchStatus:"idle"}),r.abort()},onFail:(V,ne)=>{ot(this,wt,za).call(this,{type:"failed",failureCount:V,error:ne})},onPause:()=>{ot(this,wt,za).call(this,{type:"pause"})},onContinue:()=>{ot(this,wt,za).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const V=await U(this,nt).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(k=(D=U(this,Xt).config).onSuccess)==null||k.call(D,V,this),(z=(K=U(this,Xt).config).onSettled)==null||z.call(K,V,this.state.error,this),V}catch(V){if(V instanceof Wr){if(V.silent)return U(this,nt).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw ot(this,wt,za).call(this,{type:"error",error:V}),(Q=(X=U(this,Xt).config).onError)==null||Q.call(X,V,this),(G=(F=U(this,Xt).config).onSettled)==null||G.call(F,this.state.data,V,this),V}finally{this.scheduleGc()}}},Rl=new WeakMap,Cn=new WeakMap,Xt=new WeakMap,wl=new WeakMap,nt=new WeakMap,Gi=new WeakMap,_l=new WeakMap,wt=new WeakSet,jy=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},za=function(u){const c=r=>{switch(u.type){case"failed":return{...r,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...bv(r.data,this.options),fetchMeta:u.meta??null};case"success":const f={...r,...Bm(u.data,u.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return se(this,Cn,u.manual?f:void 0),f;case"error":const m=u.error;return{...r,error:m,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...u.state}}};this.state=c(this.state),yt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),U(this,Xt).notify({query:this,type:"updated",action:u})})},ey);function bv(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Cy(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Bm(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Gm(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,c=u!==void 0,r=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}function Ym(n){return{onFetch:(u,c)=>{var N,E,D,k,K;const r=u.options,f=(D=(E=(N=u.fetchOptions)==null?void 0:N.meta)==null?void 0:E.fetchMore)==null?void 0:D.direction,m=((k=u.state.data)==null?void 0:k.pages)||[],v=((K=u.state.data)==null?void 0:K.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let z=!1;const X=G=>{dv(G,()=>u.signal,()=>z=!0)},Q=Ay(u.options,u.fetchOptions),F=async(G,V,ne)=>{if(z)return Promise.reject();if(V==null&&G.pages.length)return Promise.resolve(G);const W=(()=>{const _e={client:u.client,queryKey:u.queryKey,pageParam:V,direction:ne?"backward":"forward",meta:u.options.meta};return X(_e),_e})(),fe=await Q(W),{maxPages:te}=u.options,Le=ne?fv:ov;return{pages:Le(G.pages,fe,te),pageParams:Le(G.pageParams,V,te)}};if(f&&m.length){const G=f==="backward",V=G?xv:Qm,ne={pages:m,pageParams:v},ee=V(r,ne);g=await F(ne,ee,G)}else{const G=n??m.length;do{const V=p===0?v[0]??r.initialPageParam:Qm(r,g);if(p>0&&V==null)break;g=await F(g,V),p++}while(p<G)}return g};u.options.persister?u.fetchFn=()=>{var z,X;return(X=(z=u.options).persister)==null?void 0:X.call(z,y,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},c)}:u.fetchFn=y}}}function Qm(n,{pages:u,pageParams:c}){const r=u.length-1;return u.length>0?n.getNextPageParam(u[r],u,c[r],c):void 0}function xv(n,{pages:u,pageParams:c}){var r;return u.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,u[0],u,c[0],c):void 0}var Yi,ua,dt,Dl,sa,nl,ty,Sv=(ty=class extends Oy{constructor(u){super();xe(this,sa);xe(this,Yi);xe(this,ua);xe(this,dt);xe(this,Dl);se(this,Yi,u.client),this.mutationId=u.mutationId,se(this,dt,u.mutationCache),se(this,ua,[]),this.state=u.state||Tv(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){U(this,ua).includes(u)||(U(this,ua).push(u),this.clearGcTimeout(),U(this,dt).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){se(this,ua,U(this,ua).filter(c=>c!==u)),this.scheduleGc(),U(this,dt).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){U(this,ua).length||(this.state.status==="pending"?this.scheduleGc():U(this,dt).remove(this))}continue(){var u;return((u=U(this,Dl))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var v,g,p,y,N,E,D,k,K,z,X,Q,F,G,V,ne,ee,W;const c=()=>{ot(this,sa,nl).call(this,{type:"continue"})},r={client:U(this,Yi),meta:this.options.meta,mutationKey:this.options.mutationKey};se(this,Dl,My({fn:()=>this.options.mutationFn?this.options.mutationFn(u,r):Promise.reject(new Error("No mutationFn found")),onFail:(fe,te)=>{ot(this,sa,nl).call(this,{type:"failed",failureCount:fe,error:te})},onPause:()=>{ot(this,sa,nl).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,dt).canRun(this)}));const f=this.state.status==="pending",m=!U(this,Dl).canStart();try{if(f)c();else{ot(this,sa,nl).call(this,{type:"pending",variables:u,isPaused:m}),U(this,dt).config.onMutate&&await U(this,dt).config.onMutate(u,this,r);const te=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,u,r));te!==this.state.context&&ot(this,sa,nl).call(this,{type:"pending",context:te,variables:u,isPaused:m})}const fe=await U(this,Dl).start();return await((y=(p=U(this,dt).config).onSuccess)==null?void 0:y.call(p,fe,u,this.state.context,this,r)),await((E=(N=this.options).onSuccess)==null?void 0:E.call(N,fe,u,this.state.context,r)),await((k=(D=U(this,dt).config).onSettled)==null?void 0:k.call(D,fe,null,this.state.variables,this.state.context,this,r)),await((z=(K=this.options).onSettled)==null?void 0:z.call(K,fe,null,u,this.state.context,r)),ot(this,sa,nl).call(this,{type:"success",data:fe}),fe}catch(fe){try{await((Q=(X=U(this,dt).config).onError)==null?void 0:Q.call(X,fe,u,this.state.context,this,r))}catch(te){Promise.reject(te)}try{await((G=(F=this.options).onError)==null?void 0:G.call(F,fe,u,this.state.context,r))}catch(te){Promise.reject(te)}try{await((ne=(V=U(this,dt).config).onSettled)==null?void 0:ne.call(V,void 0,fe,this.state.variables,this.state.context,this,r))}catch(te){Promise.reject(te)}try{await((W=(ee=this.options).onSettled)==null?void 0:W.call(ee,void 0,fe,u,this.state.context,r))}catch(te){Promise.reject(te)}throw ot(this,sa,nl).call(this,{type:"error",error:fe}),fe}finally{U(this,dt).runNext(this)}}},Yi=new WeakMap,ua=new WeakMap,dt=new WeakMap,Dl=new WeakMap,sa=new WeakSet,nl=function(u){const c=r=>{switch(u.type){case"failed":return{...r,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...r,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:u.error,failureCount:r.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=c(this.state),yt.batch(()=>{U(this,ua).forEach(r=>{r.onMutationUpdate(u)}),U(this,dt).notify({mutation:this,type:"updated",action:u})})},ty);function Tv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ra,Wt,Qi,ay,Ev=(ay=class extends xs{constructor(u={}){super();xe(this,Ra);xe(this,Wt);xe(this,Qi);this.config=u,se(this,Ra,new Set),se(this,Wt,new Map),se(this,Qi,0)}build(u,c,r){const f=new Sv({client:u,mutationCache:this,mutationId:++cs(this,Qi)._,options:u.defaultMutationOptions(c),state:r});return this.add(f),f}add(u){U(this,Ra).add(u);const c=os(u);if(typeof c=="string"){const r=U(this,Wt).get(c);r?r.push(u):U(this,Wt).set(c,[u])}this.notify({type:"added",mutation:u})}remove(u){if(U(this,Ra).delete(u)){const c=os(u);if(typeof c=="string"){const r=U(this,Wt).get(c);if(r)if(r.length>1){const f=r.indexOf(u);f!==-1&&r.splice(f,1)}else r[0]===u&&U(this,Wt).delete(c)}}this.notify({type:"removed",mutation:u})}canRun(u){const c=os(u);if(typeof c=="string"){const r=U(this,Wt).get(c),f=r==null?void 0:r.find(m=>m.state.status==="pending");return!f||f===u}else return!0}runNext(u){var r;const c=os(u);if(typeof c=="string"){const f=(r=U(this,Wt).get(c))==null?void 0:r.find(m=>m!==u&&m.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{U(this,Ra).forEach(u=>{this.notify({type:"removed",mutation:u})}),U(this,Ra).clear(),U(this,Wt).clear()})}getAll(){return Array.from(U(this,Ra))}find(u){const c={exact:!0,...u};return this.getAll().find(r=>Hm(c,r))}findAll(u={}){return this.getAll().filter(c=>Hm(u,c))}notify(u){yt.batch(()=>{this.listeners.forEach(c=>{c(u)})})}resumePausedMutations(){const u=this.getAll().filter(c=>c.state.isPaused);return yt.batch(()=>Promise.all(u.map(c=>c.continue().catch($t))))}},Ra=new WeakMap,Wt=new WeakMap,Qi=new WeakMap,ay);function os(n){var u;return(u=n.options.scope)==null?void 0:u.id}var ca,ly,Av=(ly=class extends xs{constructor(u={}){super();xe(this,ca);this.config=u,se(this,ca,new Map)}build(u,c,r){const f=c.queryKey,m=c.queryHash??oo(f,c);let v=this.get(m);return v||(v=new vv({client:u,queryKey:f,queryHash:m,options:u.defaultQueryOptions(c),state:r,defaultOptions:u.getQueryDefaults(f)}),this.add(v)),v}add(u){U(this,ca).has(u.queryHash)||(U(this,ca).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const c=U(this,ca).get(u.queryHash);c&&(u.destroy(),c===u&&U(this,ca).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){yt.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return U(this,ca).get(u)}getAll(){return[...U(this,ca).values()]}find(u){const c={exact:!0,...u};return this.getAll().find(r=>Um(c,r))}findAll(u={}){const c=this.getAll();return Object.keys(u).length>0?c.filter(r=>Um(u,r)):c}notify(u){yt.batch(()=>{this.listeners.forEach(c=>{c(u)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},ca=new WeakMap,ly),Ve,cl,rl,Mn,On,ol,jn,zn,ny,Nv=(ny=class{constructor(n={}){xe(this,Ve);xe(this,cl);xe(this,rl);xe(this,Mn);xe(this,On);xe(this,ol);xe(this,jn);xe(this,zn);se(this,Ve,n.queryCache||new Av),se(this,cl,n.mutationCache||new Ev),se(this,rl,n.defaultOptions||{}),se(this,Mn,new Map),se(this,On,new Map),se(this,ol,0)}mount(){cs(this,ol)._++,U(this,ol)===1&&(se(this,jn,Ty.subscribe(async n=>{n&&(await this.resumePausedMutations(),U(this,Ve).onFocus())})),se(this,zn,ys.subscribe(async n=>{n&&(await this.resumePausedMutations(),U(this,Ve).onOnline())})))}unmount(){var n,u;cs(this,ol)._--,U(this,ol)===0&&((n=U(this,jn))==null||n.call(this),se(this,jn,void 0),(u=U(this,zn))==null||u.call(this),se(this,zn,void 0))}isFetching(n){return U(this,Ve).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return U(this,cl).findAll({...n,status:"pending"}).length}getQueryData(n){var c;const u=this.defaultQueryOptions({queryKey:n});return(c=U(this,Ve).get(u.queryHash))==null?void 0:c.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),c=U(this,Ve).build(this,u),r=c.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime($r(u.staleTime,c))&&this.prefetchQuery(u),Promise.resolve(r))}getQueriesData(n){return U(this,Ve).findAll(n).map(({queryKey:u,state:c})=>{const r=c.data;return[u,r]})}setQueryData(n,u,c){const r=this.defaultQueryOptions({queryKey:n}),f=U(this,Ve).get(r.queryHash),m=f==null?void 0:f.state.data,v=lv(u,m);if(v!==void 0)return U(this,Ve).build(this,r).setData(v,{...c,manual:!0})}setQueriesData(n,u,c){return yt.batch(()=>U(this,Ve).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,u,c)]))}getQueryState(n){var c;const u=this.defaultQueryOptions({queryKey:n});return(c=U(this,Ve).get(u.queryHash))==null?void 0:c.state}removeQueries(n){const u=U(this,Ve);yt.batch(()=>{u.findAll(n).forEach(c=>{u.remove(c)})})}resetQueries(n,u){const c=U(this,Ve);return yt.batch(()=>(c.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const c={revert:!0,...u},r=yt.batch(()=>U(this,Ve).findAll(n).map(f=>f.cancel(c)));return Promise.all(r).then($t).catch($t)}invalidateQueries(n,u={}){return yt.batch(()=>(U(this,Ve).findAll(n).forEach(c=>{c.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},u)))}refetchQueries(n,u={}){const c={...u,cancelRefetch:u.cancelRefetch??!0},r=yt.batch(()=>U(this,Ve).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let m=f.fetch(void 0,c);return c.throwOnError||(m=m.catch($t)),f.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(r).then($t)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const c=U(this,Ve).build(this,u);return c.isStaleByTime($r(u.staleTime,c))?c.fetch(u):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then($t).catch($t)}fetchInfiniteQuery(n){return n.behavior=Ym(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then($t).catch($t)}ensureInfiniteQueryData(n){return n.behavior=Ym(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ys.isOnline()?U(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Ve)}getMutationCache(){return U(this,cl)}getDefaultOptions(){return U(this,rl)}setDefaultOptions(n){se(this,rl,n)}setQueryDefaults(n,u){U(this,Mn).set(Li(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...U(this,Mn).values()],c={};return u.forEach(r=>{Bi(n,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(n,u){U(this,On).set(Li(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...U(this,On).values()],c={};return u.forEach(r=>{Bi(n,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const u={...U(this,rl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=oo(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===fo&&(u.enabled=!1),u}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...U(this,rl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){U(this,Ve).clear(),U(this,cl).clear()}},Ve=new WeakMap,cl=new WeakMap,rl=new WeakMap,Mn=new WeakMap,On=new WeakMap,ol=new WeakMap,jn=new WeakMap,zn=new WeakMap,ny),Cv=x.createContext(void 0),Mv=({client:n,children:u})=>(x.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(Cv.Provider,{value:n,children:u}));const Ov="modulepreload",jv=function(n){return"/"+n},km={},ho=function(u,c,r){let f=Promise.resolve();if(c&&c.length>0){let v=function(y){return Promise.all(y.map(N=>Promise.resolve(N).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=v(c.map(y=>{if(y=jv(y),y in km)return;km[y]=!0;const N=y.endsWith(".css"),E=N?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${E}`))return;const D=document.createElement("link");if(D.rel=N?"stylesheet":Ov,N||(D.as="script"),D.crossOrigin="",D.href=y,p&&D.setAttribute("nonce",p),document.head.appendChild(D),N)return new Promise((k,K)=>{D.addEventListener("load",k),D.addEventListener("error",()=>K(new Error(`Unable to preload CSS for ${y}`)))})}))}function m(v){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=v,window.dispatchEvent(g),!g.defaultPrevented)throw v}return f.then(v=>{for(const g of v||[])g.status==="rejected"&&m(g.reason);return u().catch(m)})};var zv=function(){return null};const mo="";function Ss(){const n=localStorage.getItem("titan-token");return n?{Authorization:`Bearer ${n}`}:{}}function Ft(n,u){const c={...Ss(),...u==null?void 0:u.headers};return fetch(n,{...u,headers:c})}async function B(n,u){const c=await fetch(`${mo}${n}`,{...u,headers:{"Content-Type":"application/json",...Ss(),...u==null?void 0:u.headers}});if(!c.ok){const r=await c.text().catch(()=>"");throw new Error(`${c.status}: ${r||c.statusText}`)}return c.json()}function c2(n,u,c,r,f){return yo("chat_message_sent",{streaming:!0,hasSession:!!u}),new Promise((m,v)=>{fetch(`${mo}/api/message`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...Ss()},body:JSON.stringify({content:n,sessionId:u,...(f==null?void 0:f.agentId)&&{agentId:f.agentId},...(f==null?void 0:f.systemPromptAppendix)&&{systemPromptAppendix:f.systemPromptAppendix}}),signal:r}).then(g=>{var k;if(!g.ok){v(new Error(`${g.status}: ${g.statusText}`));return}const p=(k=g.body)==null?void 0:k.getReader();if(!p){v(new Error("No response body"));return}const y=new TextDecoder;let N="",E="";function D(){p.read().then(({done:K,value:z})=>{if(K){m();return}N+=y.decode(z,{stream:!0});const X=N.split(`
62
+ `);N=X.pop()||"";for(const Q of X)if(Q.startsWith("event: "))E=Q.slice(7).trim();else if(Q.startsWith("data: ")){const F=Q.slice(6);if(F==="[DONE]"){m();return}try{const G=JSON.parse(F),V=E||G.type||"token";V==="token"?c==null||c({type:"token",data:G.text??G.data??""}):V==="tool_call"?c==null||c({type:"tool_start",data:"",toolName:G.name,toolArgs:G.args}):V==="tool_end"?c==null||c({type:"tool_end",data:"",toolName:G.name,toolResult:G.result,toolDurationMs:G.durationMs,toolSuccess:G.success,toolDiff:G.diff}):V==="thinking"?c==null||c({type:"thinking",data:""}):V==="round"?c==null||c({type:"round",data:"",round:G.round,maxRounds:G.maxRounds}):V==="done"?G.error&&!G.content?c==null||c({type:"error",data:G.message??G.error??"Unknown error",errorCode:G.error,errorMessage:G.message,errorAction:G.action}):c==null||c({type:"done",data:G.content??"",sessionId:G.sessionId,model:G.model,durationMs:G.durationMs,toolsUsed:G.toolsUsed,pendingApproval:G.pendingApproval}):V==="error"?c==null||c({type:"error",data:G.error??G.message??""}):c==null||c({type:G.type??"token",data:G.text??G.data??"",...G})}catch{c==null||c({type:"token",data:F})}E=""}else Q===""&&(E="");D()}).catch(v)}D()}).catch(v)})}async function r2(){return B("/api/sessions")}async function o2(n){return(await B(`/api/sessions/${n}/messages`)).map(c=>({role:c.role??"assistant",content:c.content??"",timestamp:c.createdAt??c.timestamp??void 0,model:c.model??void 0}))}async function f2(n){await B(`/api/sessions/${n}`,{method:"DELETE"})}async function d2(n,u){await B(`/api/sessions/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:u})})}async function zy(){return B("/api/config")}async function Rv(n){return B("/api/config",{method:"POST",body:JSON.stringify(n)})}async function wv(){return B("/api/voice/health")}async function h2(){const n=await B("/api/stats");return{uptime:n.uptime??0,totalRequests:n.totalRequests??0,activeAgents:n.activeAgents??0,activeSessions:n.activeSessions??0,memoryUsage:n.memoryUsage??{heapUsed:(n.memoryMB??0)*1024*1024,heapTotal:(n.memoryMB??0)*1024*1024*1.5,rss:0,external:0,arrayBuffers:0},version:n.version??"",model:n.model??n.activeModel??"",provider:n.provider??""}}async function m2(){return B("/api/skills")}async function y2(){const n=await B("/api/channels");return(Array.isArray(n)?n:[]).map(u=>{var c;return{name:u.name??"Unknown",type:u.type??((c=u.name)==null?void 0:c.toLowerCase())??"unknown",enabled:u.enabled??u.connected??!1,status:u.connected?"connected":"disconnected"}})}async function p2(){return(await zy()).channels??{}}async function g2(n,u){return Rv({channels:{[n]:u}})}async function v2(){const n=await B("/api/mesh/peers");return Array.isArray(n)?n:n.peers??[]}async function b2(){const n=await B("/api/mesh/pending");return Array.isArray(n)?n:n.pending??[]}async function x2(n){await B(`/api/mesh/approve/${n}`,{method:"POST"})}async function S2(n){await B(`/api/mesh/reject/${n}`,{method:"POST"})}async function T2(n){await B(`/api/mesh/revoke/${n}`,{method:"POST"})}async function E2(n,u){const c=new URLSearchParams;n&&c.set("level",n),u&&c.set("limit",String(u));const r=c.toString(),f=await B(`/api/logs${r?`?${r}`:""}`);return Array.isArray(f)?f:(f.lines??[]).map(v=>{const g=v.match(/^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s+(DEBUG|INFO|WARN|ERROR)\s+(.*)$/);return g?{timestamp:g[1],level:g[2].toLowerCase(),message:g[3]}:{timestamp:"",level:"info",message:v}})}async function A2(){const n=await B("/api/models"),u=[];for(const[c,r]of Object.entries(n))if(Array.isArray(r))for(const f of r){const m=f.includes("/")?f.split("/").slice(1).join("/"):f;u.push({id:f,name:m,provider:c,available:!0})}return u}async function N2(n,u){await B("/api/model/switch",{method:"POST",body:JSON.stringify({model:n,provider:u})})}async function C2(){return B("/api/personas")}async function M2(n){return B("/api/persona/switch",{method:"POST",body:JSON.stringify({persona:n})})}async function O2(){return B("/api/metrics/summary")}async function j2(){return(await B("/api/mcp/clients")).servers??[]}async function z2(n){return B("/api/mcp/clients",{method:"POST",body:JSON.stringify(n)})}async function R2(n){await B(`/api/mcp/clients/${n}`,{method:"DELETE"})}async function w2(n,u){await B(`/api/mcp/clients/${n}/toggle`,{method:"POST",body:JSON.stringify({enabled:u})})}async function _2(n){return B(`/api/mcp/clients/${n}/test`,{method:"POST"})}async function D2(){return(await B("/api/mcp/presets")).presets??[]}async function U2(){return B("/api/daemon/status")}async function H2(){await B("/api/daemon/stop",{method:"POST"})}async function q2(){await B("/api/daemon/resume",{method:"POST"})}async function L2(n){const u=new URLSearchParams;n!=null&&n.since&&u.set("since",n.since),n!=null&&n.action&&u.set("action",n.action),n!=null&&n.source&&u.set("source",n.source),u.set("limit",String(n.limit));const c=u.toString();return(await B(`/api/audit${c?`?${c}`:""}`)).entries??[]}async function B2(n){const u=`?hours=${n}`;return B(`/api/audit/stats${u}`)}async function G2(){return B("/api/files/roots")}async function Y2(n,u){const c=new URLSearchParams;n&&c.set("path",n),u&&c.set("root",u);const r=c.toString();return B(`/api/files${r?`?${r}`:""}`)}async function Q2(n,u){const c=new URLSearchParams({path:n});return u&&c.set("root",u),B(`/api/files/read?${c}`)}async function k2(n,u,c){return B("/api/files/write",{method:"POST",body:JSON.stringify({path:n,content:u,root:c})})}async function X2(n,u){return B("/api/files/mkdir",{method:"POST",body:JSON.stringify({path:n,root:u})})}async function V2(n,u,c){return B("/api/files/rename",{method:"POST",body:JSON.stringify({oldPath:n,newPath:u,root:c})})}async function Z2(n,u){const c=new URLSearchParams({path:n});return u&&c.set("root",u),B(`/api/files/delete?${c}`,{method:"DELETE"})}async function K2(){return B("/api/voice/f5tts/status")}async function J2(){return B("/api/analytics/profile")}async function $2(){return B("/api/voice/clone/voices")}async function F2(n,u,c){return B("/api/voice/clone/upload",{method:"POST",body:JSON.stringify({name:n,audio:u,transcript:c})})}async function W2(n){return B(`/api/voice/clone/${encodeURIComponent(n)}`,{method:"DELETE"})}async function P2(n,u){const c=JSON.stringify({text:u||"Hello, how can I help you today?",voice:n}),r=await fetch(`${mo}/api/voice/preview`,{method:"POST",headers:{"Content-Type":"application/json",...Ss()},body:c});if(!r.ok)throw new Error(`Preview failed: ${r.statusText}`);return r.arrayBuffer()}async function I2(){return B("/api/command-post/dashboard")}async function ex(){return B("/api/command-post/agents")}async function tx(){return B("/api/command-post/budgets")}async function ax(n){return B("/api/command-post/budgets",{method:"POST",body:JSON.stringify(n)})}async function lx(n,u){return B(`/api/command-post/budgets/${n}`,{method:"PUT",body:JSON.stringify(u)})}async function nx(n){return B(`/api/command-post/budgets/${n}`,{method:"DELETE"})}async function ix(){return B("/api/command-post/budgets/reservations")}async function ux(n){return B(`/api/command-post/issues/${n}/context`)}async function sx(n=50,u){const c=new URLSearchParams({limit:String(n)});return B(`/api/command-post/activity?${c}`)}async function cx(){return B("/api/command-post/goals/tree")}async function rx(){return B("/api/command-post/org")}async function ox(n){const u=new URLSearchParams;n!=null&&n.status&&u.set("status",n.status),n!=null&&n.assignee&&u.set("assignee",n.assignee),n!=null&&n.goalId&&u.set("goalId",n.goalId);const c=u.toString();return B(`/api/command-post/issues${c?`?${c}`:""}`)}async function fx(n){return B("/api/command-post/issues",{method:"POST",body:JSON.stringify(n)})}async function dx(n){return B(`/api/command-post/issues/${n}`)}async function hx(n,u){return B(`/api/command-post/issues/${n}`,{method:"PATCH",body:JSON.stringify(u)})}async function mx(n){return B(`/api/command-post/issues/${n}`,{method:"DELETE"})}async function yx(n){return B(`/api/command-post/issues/${n}`)}async function px(n,u,c={}){return B(`/api/command-post/issues/${n}/comments`,{method:"POST",body:JSON.stringify({body:u,...c})})}async function gx(n){const u=n?`?status=${n}`:"";return B(`/api/command-post/approvals${u}`)}async function vx(n,u,c){return B(`/api/command-post/approvals/${n}/approve`,{method:"POST",body:JSON.stringify({decidedBy:u,note:c})})}async function bx(n,u,c){return B(`/api/command-post/approvals/${n}/reject`,{method:"POST",body:JSON.stringify({decidedBy:u,note:c})})}async function xx(n,u=50){const c=new URLSearchParams({limit:String(u)});return n&&c.set("agentId",n),B(`/api/command-post/runs?${c}`)}async function Sx(n,u){return B(`/api/command-post/agents/${n}`,{method:"PATCH",body:JSON.stringify(u)})}async function Tx(n=50,u){const c=new URLSearchParams({limit:String(n)});return B(`/api/traces?${c}`)}async function Ex(n){return B(`/api/traces/${n}`)}async function Ax(n=50){return B(`/api/alerts?limit=${n}`)}async function Nx(){return B("/api/soul/wisdom")}async function Cx(n=50){return B(`/api/guardrails/violations?limit=${n}`)}async function Mx(){return B("/api/checkpoints")}async function Ox(){const n=await B("/api/companies");return Array.isArray(n)?n:n&&typeof n=="object"&&"companies"in n?n.companies:[]}async function jx(n){return B("/api/companies",{method:"POST",body:JSON.stringify(n)})}async function zx(n,u){return B(`/api/companies/${n}`,{method:"PATCH",body:JSON.stringify(u)})}async function Rx(n){return B(`/api/companies/${n}`,{method:"DELETE"})}async function wx(n,u,c){return B(`/api/command-post/approvals/${n}/reply`,{method:"POST",body:JSON.stringify({author:u,body:c})})}async function _x(n,u){return B(`/api/command-post/approvals/${n}/snooze`,{method:"POST",body:JSON.stringify({until:u})})}async function Dx(n,u,c,r){return B("/api/command-post/approvals/batch",{method:"POST",body:JSON.stringify({ids:n,action:u,decidedBy:c,note:r})})}async function Ux(){return B("/api/social/state")}async function Hx(n){return B("/api/social/autopilot/toggle",{method:"POST",body:JSON.stringify({enabled:n})})}async function qx(n){return B("/api/social/post",{method:"POST",body:JSON.stringify({content:n})})}async function Lx(n){return B(`/api/social/drafts/${n}/approve`,{method:"POST"})}async function Bx(n){return B(`/api/social/drafts/${n}/reject`,{method:"POST"})}async function Gx(){return B("/api/social/graph-context")}async function _v(n){return B("/api/login",{method:"POST",body:JSON.stringify({password:n})})}async function Yx(){return B("/api/backup/create",{method:"POST"})}async function Qx(){return B("/api/backup/list")}async function kx(n){return B("/api/backup/verify",{method:"POST",body:JSON.stringify(n?{path:n}:{})})}async function Xx(){return B("/api/training/stats")}async function Vx(){return B("/api/training/runs")}async function Zx(){return B("/api/recipes")}async function Kx(n){return B(`/api/recipes/${n}`,{method:"DELETE"})}async function Jx(n,u){return B(`/api/recipes/${n}/run`,{method:"POST",body:JSON.stringify({})})}async function $x(){return B("/api/vram")}async function Fx(){return B("/api/teams")}async function Wx(n){return B(`/api/teams/${n}`,{method:"DELETE"})}async function Px(){return B("/api/cron")}async function Ix(n){return B(`/api/cron/${n}/toggle`,{method:"POST"})}async function eS(n){return B(`/api/cron/${n}`,{method:"DELETE"})}async function tS(n){return B(`/api/checkpoints/${n}`,{method:"DELETE"})}async function aS(){return B("/api/organism/alerts")}async function lS(){return B("/api/organism/safety-metrics")}async function nS(n){return B(`/api/organism/alerts/${n}/acknowledge`,{method:"POST"})}async function iS(){return B("/api/fleet")}async function uS(n,u){return B("/api/browser/solve-captcha",{method:"POST",body:JSON.stringify({imageBase64:n,provider:u})})}async function sS(){return B("/api/paperclip/status")}async function cS(){return B("/api/paperclip/start",{method:"POST"})}async function rS(){return B("/api/paperclip/stop",{method:"POST"})}async function oS(){return B("/api/test-health/summary")}async function fS(){return B("/api/test-health/failing")}async function dS(){return B("/api/test-health/flaky")}async function hS(n){return B("/api/test-health/run",{method:"POST",body:JSON.stringify({})})}function yo(n,u){Ft("/api/telemetry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:n,properties:u,timestamp:new Date().toISOString()})}).catch(()=>{})}const Ry=x.createContext({config:null,voiceHealth:null,voiceAvailable:!1,loading:!0,refresh:async()=>{}});function Dv({children:n}){var N;const[u,c]=x.useState(null),[r,f]=x.useState(null),[m,v]=x.useState(!0),g=async()=>{var E;try{const D=await zy();if(c(D),(E=D.voice)!=null&&E.enabled)try{const k=await wv();f(k)}catch{f(null)}}catch(D){console.error("Failed to load config:",D)}finally{v(!1)}};x.useEffect(()=>{g();let E=setInterval(g,3e4);const D=()=>{document.hidden?clearInterval(E):(g(),E=setInterval(g,3e4))};return document.addEventListener("visibilitychange",D),()=>{clearInterval(E),document.removeEventListener("visibilitychange",D)}},[]);const p=!!((N=u==null?void 0:u.voice)!=null&&N.enabled),y=x.useMemo(()=>({config:u,voiceHealth:r,voiceAvailable:p,loading:m,refresh:g}),[u,r,p,m,g]);return h.jsx(Ry.Provider,{value:y,children:n})}function Uv(){return x.useContext(Ry)}const wy=x.createContext({isAuthenticated:!1,isLoading:!0,login:async()=>{},logout:()=>{}});function Hv({children:n}){const[u,c]=x.useState(!1),[r,f]=x.useState(!0);x.useEffect(()=>{const p=localStorage.getItem("titan-token"),y={};p&&(y.Authorization=`Bearer ${p}`),fetch("/api/health",{headers:y}).then(N=>{N.ok?c(!0):N.status===401?(localStorage.removeItem("titan-token"),c(!1)):c(!0)}).catch(()=>{c(!0)}).finally(()=>f(!1))},[]);const m=x.useCallback(async p=>{const{token:y}=await _v(p);localStorage.setItem("titan-token",y),c(!0)},[]),v=x.useCallback(()=>{localStorage.removeItem("titan-token"),c(!1)},[]),g=x.useMemo(()=>({isAuthenticated:u,isLoading:r,login:m,logout:v}),[u,r,m,v]);return h.jsx(wy.Provider,{value:g,children:n})}function _y(){return x.useContext(wy)}/**
63
63
  * @license lucide-react v0.513.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const qv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lv=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,c,r)=>r?r.toUpperCase():c.toLowerCase()),km=n=>{const u=Lv(n);return u.charAt(0).toUpperCase()+u.slice(1)},Dy=(...n)=>n.filter((u,c,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===c).join(" ").trim(),Bv=n=>{for(const u in n)if(u.startsWith("aria-")||u==="role"||u==="title")return!0};/**
67
+ */const qv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lv=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,c,r)=>r?r.toUpperCase():c.toLowerCase()),Xm=n=>{const u=Lv(n);return u.charAt(0).toUpperCase()+u.slice(1)},Dy=(...n)=>n.filter((u,c,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===c).join(" ").trim(),Bv=n=>{for(const u in n)if(u.startsWith("aria-")||u==="role"||u==="title")return!0};/**
68
68
  * @license lucide-react v0.513.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
@@ -79,7 +79,7 @@ Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}
79
79
  *
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
- */const we=(n,u)=>{const c=x.forwardRef(({className:r,...f},m)=>x.createElement(Yv,{ref:m,iconNode:u,className:Dy(`lucide-${qv(km(n))}`,`lucide-${n}`,r),...f}));return c.displayName=km(n),c};/**
82
+ */const we=(n,u)=>{const c=x.forwardRef(({className:r,...f},m)=>x.createElement(Yv,{ref:m,iconNode:u,className:Dy(`lucide-${qv(Xm(n))}`,`lucide-${n}`,r),...f}));return c.displayName=Xm(n),c};/**
83
83
  * @license lucide-react v0.513.0 - ISC
84
84
  *
85
85
  * This source code is licensed under the ISC license.
@@ -184,7 +184,7 @@ Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}
184
184
  *
185
185
  * This source code is licensed under the ISC license.
186
186
  * See the LICENSE file in the root directory of this source tree.
187
- */const Eb=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Xm=we("sparkles",Eb);/**
187
+ */const Eb=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Vm=we("sparkles",Eb);/**
188
188
  * @license lucide-react v0.513.0 - ISC
189
189
  *
190
190
  * This source code is licensed under the ISC license.
@@ -204,12 +204,12 @@ Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}
204
204
  *
205
205
  * This source code is licensed under the ISC license.
206
206
  * See the LICENSE file in the root directory of this source tree.
207
- */const jb=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],Vm=we("waves",jb);/**
207
+ */const Ob=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],Zm=we("waves",Ob);/**
208
208
  * @license lucide-react v0.513.0 - ISC
209
209
  *
210
210
  * This source code is licensed under the ISC license.
211
211
  * See the LICENSE file in the root directory of this source tree.
212
- */const Ob=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],zb=we("wifi",Ob);/**
212
+ */const jb=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],zb=we("wifi",jb);/**
213
213
  * @license lucide-react v0.513.0 - ISC
214
214
  *
215
215
  * This source code is licensed under the ISC license.
@@ -219,9 +219,9 @@ Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}
219
219
  *
220
220
  * This source code is licensed under the ISC license.
221
221
  * See the LICENSE file in the root directory of this source tree.
222
- */const wb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],By=we("zap",wb);function Gy(n){var u,c,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(u=0;u<f;u++)n[u]&&(c=Gy(n[u]))&&(r&&(r+=" "),r+=c)}else for(c in n)n[c]&&(r&&(r+=" "),r+=c);return r}function _b(){for(var n,u,c=0,r="",f=arguments.length;c<f;c++)(n=arguments[c])&&(u=Gy(n))&&(r&&(r+=" "),r+=u);return r}const Yy=x.createContext({toast:()=>{}});function nS(){return x.useContext(Yy)}const Db={success:h.jsx(Pr,{size:16,className:"text-success"}),error:h.jsx(eb,{size:16,className:"text-error"}),warning:h.jsx(Wv,{size:16,className:"text-warning"}),info:h.jsx(ob,{size:16,className:"text-info"})},Ub={success:"border-success/30",error:"border-error/30",warning:"border-warning/30",info:"border-info/30"};function Hb({children:n}){const[u,c]=x.useState([]),r=x.useCallback((m,v)=>{const g=`toast-${Date.now()}-${Math.random().toString(36).slice(2)}`;c(p=>[...p,{id:g,type:m,message:v}]),setTimeout(()=>{c(p=>p.filter(y=>y.id!==g))},4e3)},[]),f=x.useCallback(m=>{c(v=>v.filter(g=>g.id!==m))},[]);return h.jsxs(Yy.Provider,{value:{toast:r},children:[n,h.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 pointer-events-none",children:u.map(m=>h.jsxs("div",{className:_b("pointer-events-auto flex items-center gap-2.5 rounded-lg border bg-bg-secondary px-4 py-3 shadow-lg","animate-in slide-in-from-right-5 fade-in duration-200",Ub[m.type]),children:[Db[m.type],h.jsx("span",{className:"text-sm text-text",children:m.message}),h.jsx("button",{onClick:()=>f(m.id),className:"ml-2 text-text-muted hover:text-text",children:h.jsx(Ly,{size:14})})]},m.id))})]})}function qb(){const{login:n}=_y(),[u,c]=x.useState(""),[r,f]=x.useState(""),[m,v]=x.useState(!1),g=x.useCallback(async p=>{if(p.preventDefault(),!!u.trim()){f(""),v(!0);try{await n(u)}catch{f("Incorrect password. Please try again.")}finally{v(!1)}}},[u,n]);return h.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-bg overflow-hidden",children:[h.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full opacity-[0.07] blur-[120px] pointer-events-none",style:{background:"radial-gradient(circle, var(--color-accent), var(--color-accent2))"}}),h.jsxs("div",{className:"relative z-10 w-full max-w-md mx-6",children:[h.jsxs("div",{className:"text-center mb-10",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 rounded-2xl mb-6",style:{background:"linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15))",border:"1px solid rgba(99,102,241,0.25)",boxShadow:"0 0 40px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.05)"},children:h.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",className:"w-10 h-10",children:[h.jsx("path",{d:"M16 3L4 9.5v13L16 29l12-6.5v-13L16 3z",stroke:"url(#titan-grad)",strokeWidth:1.5,strokeLinejoin:"round"}),h.jsx("path",{d:"M16 3v26M4 9.5L28 22.5M28 9.5L4 22.5",stroke:"url(#titan-grad)",strokeWidth:1,opacity:.4}),h.jsx("circle",{cx:16,cy:16,r:4,fill:"url(#titan-grad)",opacity:.8}),h.jsx("defs",{children:h.jsxs("linearGradient",{id:"titan-grad",x1:"4",y1:"3",x2:"28",y2:"29",children:[h.jsx("stop",{stopColor:"#6366f1"}),h.jsx("stop",{offset:1,stopColor:"#a855f7"})]})})]})}),h.jsx("h1",{className:"text-3xl font-bold text-text tracking-tight",children:"TITAN"}),h.jsx("p",{className:"text-base text-text-muted mt-2 tracking-wide",children:"Mission Control"})]}),h.jsx("div",{className:"rounded-2xl p-8",style:{background:"linear-gradient(180deg, rgba(24,24,27,0.95), rgba(24,24,27,0.8))",border:"1px solid rgba(63,63,70,0.6)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02)",backdropFilter:"blur(20px)"},children:h.jsxs("form",{onSubmit:g,className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Gateway Password"}),h.jsx("input",{id:"password",type:"password",autoFocus:!0,autoComplete:"current-password",value:u,onChange:p=>{c(p.target.value),r&&f("")},placeholder:"Enter your password",className:"w-full px-4 py-3 rounded-xl text-text placeholder:text-text-muted focus:outline-none transition-all text-sm",style:{background:"rgba(9,9,11,0.8)",border:r?"1px solid var(--color-error)":"1px solid rgba(63,63,70,0.8)",boxShadow:"inset 0 2px 4px rgba(0,0,0,0.2)"},onFocus:p=>{r||(p.currentTarget.style.border="1px solid var(--color-accent)"),p.currentTarget.style.boxShadow="inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(99,102,241,0.15)"},onBlur:p=>{r||(p.currentTarget.style.border="1px solid rgba(63,63,70,0.8)"),p.currentTarget.style.boxShadow="inset 0 2px 4px rgba(0,0,0,0.2)"}})]}),r&&h.jsxs("div",{className:"flex items-center gap-2 text-sm text-error",children:[h.jsx("svg",{className:"w-4 h-4 shrink-0",viewBox:"0 0 20 20",fill:"currentColor",children:h.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),r]}),h.jsx("button",{type:"submit",disabled:m||!u.trim(),className:"w-full py-3 rounded-xl text-white font-semibold text-sm tracking-wide transition-all disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer",style:{background:m||!u.trim()?"rgba(99,102,241,0.3)":"linear-gradient(135deg, #6366f1, #7c3aed)",boxShadow:m||!u.trim()?"none":"0 4px 14px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.15)"},onMouseEnter:p=>{!m&&u.trim()&&(p.currentTarget.style.background="linear-gradient(135deg, #818cf8, #8b5cf6)",p.currentTarget.style.boxShadow="0 6px 20px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.15)",p.currentTarget.style.transform="translateY(-1px)")},onMouseLeave:p=>{!m&&u.trim()&&(p.currentTarget.style.background="linear-gradient(135deg, #6366f1, #7c3aed)",p.currentTarget.style.boxShadow="0 4px 14px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.15)",p.currentTarget.style.transform="translateY(0)")},children:m?h.jsxs("span",{className:"inline-flex items-center gap-2",children:[h.jsxs("svg",{className:"animate-spin w-4 h-4",viewBox:"0 0 24 24",fill:"none",children:[h.jsx("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Signing in..."]}):"Sign In"})]})}),h.jsx("p",{className:"text-center text-xs text-text-muted mt-8 opacity-60",children:"TITAN Agent Framework"})]})]})}const fs={idle:{primary:[100,100,140],secondary:[80,80,120],glow:"rgba(100, 100, 200, 0.15)"},user:{primary:[34,211,238],secondary:[6,182,212],glow:"rgba(34, 211, 238, 0.25)"},assistant:{primary:[139,92,246],secondary:[124,58,237],glow:"rgba(139, 92, 246, 0.3)"},thinking:{primary:[245,158,11],secondary:[217,119,6],glow:"rgba(245, 158, 11, 0.25)"}};function Zm({audioLevel:n,speaker:u,size:c=240}){const r=x.useRef(null),f=x.useRef(null),m=x.useRef(0),v=x.useRef(0),g=x.useRef(0),p=x.useRef(fs.idle.primary),y=x.useRef([...fs.idle.primary]),N=x.useRef(n),E=x.useRef(u),D=x.useRef(c);return N.current=n,E.current=u,D.current=c,x.useEffect(()=>{const k=new Image;k.src="/titan-logo.png",k.onload=()=>{f.current=k}},[]),x.useEffect(()=>{function k(){const K=r.current;if(!K){m.current=requestAnimationFrame(k);return}const z=K.getContext("2d");if(!z){m.current=requestAnimationFrame(k);return}const X=D.current,Q=N.current,F=E.current,B=window.devicePixelRatio||1,V=X*B,ne=X*B;(K.width!==V||K.height!==ne)&&(K.width=V,K.height=ne),z.clearRect(0,0,V,ne),v.current+=.016;const ee=v.current;g.current+=(Q-g.current)*.12;const W=g.current,fe=fs[F];p.current=fe.primary;for(let J=0;J<3;J++)y.current[J]+=(p.current[J]-y.current[J])*.04;const[te,Le,_e]=y.current.map(Math.round),Be=V/2,Ge=ne/2,Ae=V*.35;for(let J=3;J>=0;J--){const ue=1+J*.12+W*J*.08,me=.06-J*.012+W*.03;z.save(),z.translate(Be,Ge),z.beginPath();const S=120;for(let Z=0;Z<=S;Z++){const $=Z/S*Math.PI*2,ae=Math.sin($*3+ee*1.2+J)*.08,re=Math.sin($*5-ee*.8+J*2)*.05,ce=Math.sin($*7+ee*2.1)*.03*W,Ze=Math.sin($*2+ee*3)*W*.12,De=Ae*ue*(1+ae+re+ce+Ze),ea=Math.cos($)*De,oa=Math.sin($)*De;Z===0?z.moveTo(ea,oa):z.lineTo(ea,oa)}z.closePath();const w=z.createRadialGradient(0,0,0,0,0,Ae*ue*1.2);w.addColorStop(0,`rgba(${te}, ${Le}, ${_e}, ${me*2})`),w.addColorStop(.6,`rgba(${te}, ${Le}, ${_e}, ${me})`),w.addColorStop(1,`rgba(${te}, ${Le}, ${_e}, 0)`),z.fillStyle=w,z.fill(),z.restore()}z.save(),z.translate(Be,Ge),z.beginPath();const Me=150;for(let J=0;J<=Me;J++){const ue=J/Me*Math.PI*2,me=Math.sin(ue*3+ee*1.5)*.04,S=Math.sin(ue*5-ee*1)*.025,w=Math.sin(ue*4+ee*3.5)*W*.06,Z=Math.sin(ee*.8)*.02,$=F==="thinking"?Math.sin(ee*2.5)*.06:0,ae=Ae*(1+me+S+w+Z+$),re=Math.cos(ue)*ae,ce=Math.sin(ue)*ae;J===0?z.moveTo(re,ce):z.lineTo(re,ce)}z.closePath();const R=z.createRadialGradient(-Ae*.2,-Ae*.2,Ae*.1,0,0,Ae*1.1);R.addColorStop(0,`rgba(${Math.min(255,te+80)}, ${Math.min(255,Le+80)}, ${Math.min(255,_e+80)}, 0.95)`),R.addColorStop(.5,`rgba(${te}, ${Le}, ${_e}, 0.85)`),R.addColorStop(1,`rgba(${Math.max(0,te-40)}, ${Math.max(0,Le-40)}, ${Math.max(0,_e-40)}, 0.8)`),z.fillStyle=R,z.fill();const G=z.createRadialGradient(-Ae*.25,-Ae*.3,0,-Ae*.1,-Ae*.15,Ae*.5);if(G.addColorStop(0,"rgba(255, 255, 255, 0.35)"),G.addColorStop(.5,"rgba(255, 255, 255, 0.08)"),G.addColorStop(1,"rgba(255, 255, 255, 0)"),z.fillStyle=G,z.fill(),z.restore(),f.current){const J=Ae*.8,ue=Be-J/2,me=Ge-J/2,S=Math.sin(ee*1.2)*3*B,w=Math.cos(ee*.9)*2*B;z.save(),z.globalAlpha=.9+W*.1,z.shadowColor=`rgba(${te}, ${Le}, ${_e}, ${.4+W*.3})`,z.shadowBlur=20+W*30,z.beginPath(),z.arc(Be+w,Ge+S,J/2+2,0,Math.PI*2),z.closePath(),z.clip(),z.drawImage(f.current,ue+w,me+S,J,J),z.restore()}if(W>.1){const J=Math.floor(W*12);for(let ue=0;ue<J;ue++){const me=ue/J*Math.PI*2+ee*.3,S=Ae*(1.2+Math.sin(ee*2+ue*1.7)*.3+W*.2),w=Be+Math.cos(me)*S,Z=Ge+Math.sin(me)*S,$=(1.5+Math.sin(ee*3+ue)*1)*B,ae=.3+Math.sin(ee*2+ue*.5)*.2;z.beginPath(),z.arc(w,Z,$,0,Math.PI*2),z.fillStyle=`rgba(${te}, ${Le}, ${_e}, ${ae})`,z.fill()}}m.current=requestAnimationFrame(k)}return m.current=requestAnimationFrame(k),()=>cancelAnimationFrame(m.current)},[]),h.jsx("canvas",{ref:r,style:{width:c,height:c,filter:`drop-shadow(0 0 ${20+n*40}px ${fs[u].glow})`,transition:"filter 0.3s ease"}})}const Km=[{id:"ollama",name:"Ollama (Local)",desc:"Free — your own machine is the datacenter",noKey:!0,icon:Ir},{id:"anthropic",name:"Anthropic",desc:"Claude — polite, thorough, expensive taste",icon:Kv},{id:"openai",name:"OpenAI",desc:"GPT-4o, o3 — the household name",icon:By},{id:"google",name:"Google",desc:"Gemini — long context, occasional hallucinations",icon:ub},{id:"groq",name:"Groq",desc:"Ludicrous speed. Seriously, it's fast.",icon:Uy},{id:"openrouter",name:"OpenRouter",desc:"290+ models, one key. The buffet.",icon:zb},{id:"deepseek",name:"DeepSeek",desc:"DeepSeek — reasoning specialist, great value",icon:qy},{id:"xai",name:"xAI",desc:"Grok — edgy, real-time, may roast you",icon:Hy}],Lb={ollama:["ollama/llama3.3:8b","ollama/qwen3:8b","ollama/devstral-small-2","ollama/mistral:7b"],anthropic:["anthropic/claude-sonnet-4-20250514","anthropic/claude-haiku-4-5-20251001","anthropic/claude-opus-4-20250514"],openai:["openai/gpt-4o","openai/gpt-4o-mini","openai/o3-mini"],google:["google/gemini-2.5-pro","google/gemini-2.0-flash"],groq:["groq/llama-3.3-70b-versatile","groq/mixtral-8x7b-32768"],openrouter:["openrouter/anthropic/claude-sonnet-4-20250514","openrouter/openai/gpt-4o"],deepseek:["deepseek/deepseek-chat","deepseek/deepseek-reasoner"],xai:["xai/grok-3","xai/grok-3-mini"]},Bb=["ollama/qwen3:8b","ollama/llama3.3:8b","ollama/mistral:7b"],Hi={free:[{id:"openrouter/nvidia/nemotron-3-super-120b-a12b:free",name:"Nemotron 3 Super",desc:"Free 120B MoE — surprisingly capable",badge:"free"},{id:"openrouter/nvidia/nemotron-3-nano-30b-a3b:free",name:"Nemotron 3 Nano",desc:"Free 30B — quick and cheerful",badge:"free"},{id:"openrouter/z-ai/glm-4.5-air:free",name:"GLM-4.5 Air",desc:"Free versatile all-rounder",badge:"free"}],paid:[{id:"openrouter/qwen/qwen3.5-397b-a17b",name:"Qwen 3.5 397B",desc:"Flagship MoE — best quality, best value",badge:"flagship"},{id:"openrouter/openai/gpt-5.4",name:"GPT-5.4",desc:"OpenAI premium — costs a pretty penny",badge:"premium"},{id:"openrouter/anthropic/claude-sonnet-4.5",name:"Claude Sonnet 4.5",desc:"Anthropic premium — worth every cent",badge:"premium"},{id:"openrouter/google/gemini-3.1-pro",name:"Gemini 3.1 Pro",desc:"Google premium — reads War and Peace in one go",badge:"premium"},{id:"openrouter/moonshotai/kimi-k2.5",name:"Kimi K2.5",desc:"Strong reasoning — the quiet achiever",badge:"midrange"},{id:"openrouter/deepseek/deepseek-v3.2",name:"DeepSeek V3.2",desc:"Cost-effective — smart on a budget",badge:"midrange"},{id:"openrouter/z-ai/glm-4.7-flash",name:"GLM-4.7 Flash",desc:"Fast agent model — gets things done",badge:"agent"}]},Jm=["TITAN can control your lights, write your code, and remember your coffee order.",`The "Soma" system gives TITAN feelings. Don't worry, it's therapy.`,"TITAN has 248 tools. You probably only need 3. But it's nice to have options.","TITAN once summarized a 500-page PDF in 12 seconds. The PDF was mostly blank.","TITAN's voice mode uses F5-TTS. It sounds like an android from a sci-fi film.","TITAN can run 5 agents at once. It's like having a tiny dev team in your laptop."];function Gb({target:n,suffix:u=""}){const[c,r]=x.useState(0),f=x.useRef(0);return x.useEffect(()=>{const v=performance.now(),g=p=>{const y=p-v,N=Math.min(y/1200,1),E=1-Math.pow(1-N,3);r(Math.round(n*E)),N<1&&(f.current=requestAnimationFrame(g))};return f.current=requestAnimationFrame(g),()=>cancelAnimationFrame(f.current)},[n]),h.jsxs(h.Fragment,{children:[c.toLocaleString(),u]})}function Tn({children:n,icon:u}){return h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u&&h.jsx(u,{className:"w-5 h-5 text-accent"}),h.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-accent",children:n})]})}function Yb({onComplete:n}){var Hl;const[u,c]=x.useState(0),[r,f]=x.useState(""),[m,v]=x.useState(""),[g,p]=x.useState(""),[y,N]=x.useState("TITAN"),[E,D]=x.useState("default"),[k,K]=x.useState([]),[z,X]=x.useState(""),[Q,F]=x.useState(!1),[B,V]=x.useState(!1),[ne,ee]=x.useState(""),[W,fe]=x.useState(0),[te,Le]=x.useState(!1),[_e,Be]=x.useState(""),[Ge,Ae]=x.useState(!0),[Me,R]=x.useState(!1),[G,J]=x.useState(null),[ue,me]=x.useState([]),[S,w]=x.useState(!1),[Z,$]=x.useState(!1),[ae,re]=x.useState(!0),ce=Km.find(L=>L.id===r),Ze=ce&&!("noKey"in ce&&ce.noKey),De=(()=>{const L=Lb[r]||[];if(!G||te)return L;const je=G.gpuVendor!=="none"&&G.gpuVramMB>=4096,Ie=G.ramTotalMB>=16384;return!je&&!Ie&&r==="ollama"?L.filter(fa=>Bb.includes(fa)):L})(),ea=[...Hi.free,...Hi.paid];x.useEffect(()=>{Ft("/api/cloud/config").then(L=>L.json()).then(L=>{var je;L.cloud&&(Le(!0),Be(L.userEmail||""),f("openrouter"),p(((je=Hi.free[0])==null?void 0:je.id)||""))}).catch(()=>{})},[]),x.useEffect(()=>{Ft("/api/personas").then(L=>L.json()).then(L=>{L.personas&&K(L.personas),L.active&&D(L.active)}).catch(()=>{})},[]),x.useEffect(()=>{w(!0),Ft("/api/hardware/detect").then(L=>L.json()).then(L=>{L.profile&&J(L.profile),L.recommendations&&me(L.recommendations)}).catch(()=>{}).finally(()=>w(!1))},[]),x.useEffect(()=>{const L=setInterval(()=>{fe(je=>(je+1)%Jm.length)},5e3);return()=>clearInterval(L)},[]),x.useEffect(()=>{if(G&&!r&&!te){const L=G.gpuVendor!=="none"&&G.gpuVramMB>=4096,je=G.ramTotalMB>=8192;(L||je)&&f("ollama")}},[G,r,te]);const oa=()=>{if(te)switch(u){case 0:return!0;case 1:return!0;case 2:return!!g;case 3:return!!y;case 4:return!0;default:return!0}switch(u){case 0:return!0;case 1:return!0;case 2:return!!r&&(!Ze||m.length>5);case 3:return!!g;case 4:return!!y;case 5:return!0;default:return!0}},Dn=async()=>{F(!0),ee("");try{if(ae&&G&&!Z)try{await Ft("/api/hardware/apply",{method:"POST"}),$(!0)}catch{}E!=="default"&&await Ft("/api/persona/switch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:E})});const L=await Ft("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:te?"openrouter":r,apiKey:te?void 0:Ze?m:void 0,model:g,agentName:y,persona:E})});if(!L.ok){const je=await L.json();throw new Error(je.error||"Setup failed")}try{await Ft("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organism:{enabled:Ge}})})}catch{}try{await Ft("/api/telemetry/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:Me,crashReports:Me})})}catch{}mo("onboarding_completed",{provider:te?"openrouter":r,model:g,cloudMode:te}),V(!0),setTimeout(n,1800)}catch(L){ee(L instanceof Error?L.message:"Something went wrong"),F(!1)}},Un=k.filter(L=>!z||L.name.toLowerCase().includes(z.toLowerCase())||L.description.toLowerCase().includes(z.toLowerCase())||L.division.toLowerCase().includes(z.toLowerCase())),ta=te?5:6,Hn=u===0||u===ta?200:0,qn=u===ta?"assistant":"idle",Ln=L=>L>=1024?`${(L/1024).toFixed(1)} GB`:`${L} MB`,Bn=[h.jsxs("div",{className:"flex flex-col items-center text-center",children:[h.jsx("div",{className:"relative mb-8",style:{transition:"all 0.6s cubic-bezier(0.22, 1, 0.36, 1)"},children:h.jsx(Zm,{audioLevel:0,speaker:"idle",size:Hn})}),h.jsx("h1",{className:"text-5xl font-bold text-white mb-3 tracking-tight",children:"Welcome Aboard"}),h.jsxs("p",{className:"text-xl text-text-secondary mb-2 font-light",children:["TITAN v5.0 ",h.jsx("span",{className:"text-accent font-medium",children:"“Spacewalk”"})]}),h.jsx("p",{className:"text-sm text-text-muted max-w-md mb-8 leading-relaxed",children:"You're about to give your computer a brain, a personality, and a slight tendency to ask if you'd like it to organize your desktop. Let's launch."}),h.jsxs("div",{className:"px-5 py-3 rounded-2xl border border-accent/20 bg-accent/5 mb-8 max-w-md",children:[h.jsxs("p",{className:"text-xs text-accent-hover font-medium mb-1 flex items-center gap-1.5",children:[h.jsx(Xm,{size:12})," Did you know?"]}),h.jsx("p",{className:"text-xs text-text-secondary leading-relaxed transition-opacity duration-500",children:Jm[W]},W)]}),h.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["Multi-Agent Swarm","Deep Research","Soma Drives","Voice Mode","Smart Home","Code Execution"].map(L=>h.jsx("span",{className:"px-3 py-1.5 text-[11px] rounded-full border border-border text-text-secondary bg-bg-secondary",children:L},L))})]},"welcome"),h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:gb,children:"Systems Check"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Ship Diagnostic"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"TITAN is poking around your machine to see what it's working with. No judgment."}),S&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-12 gap-3",children:[h.jsx("div",{className:"w-10 h-10 border-2 border-accent border-t-transparent rounded-full animate-spin"}),h.jsx("p",{className:"text-xs text-text-muted animate-pulse",children:"Scanning subsystems…"})]}),!S&&!G&&h.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 text-sm text-text-secondary",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(eo,{className:"w-4 h-4 text-warning"}),h.jsx("span",{className:"font-medium text-warning",children:"Sensors offline"})]}),"Couldn't read hardware details. TITAN will use safe defaults and you can tweak later in Settings."]}),!S&&G&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[{icon:Ir,label:"CPU",value:`${G.cpuCores} cores`,sub:G.cpuModel},{icon:mb,label:"RAM",value:Ln(G.ramTotalMB),sub:`${Ln(G.ramFreeMB)} free`},{icon:By,label:"GPU",value:G.gpuVendor==="none"?"None":G.gpuVendor.toUpperCase(),sub:G.gpuVendor==="none"?"Cloud models recommended":`${G.gpuName} · ${Ln(G.gpuVramMB)}`},{icon:cb,label:"Storage",value:`${G.diskFreeGB} GB free`,sub:`of ${G.diskTotalGB} GB total`}].map(({icon:L,label:je,value:Ie,sub:fa})=>h.jsxs("div",{className:"p-4 rounded-2xl border border-border bg-bg-secondary hover:border-border-light transition-colors",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(L,{className:"w-4 h-4 text-accent"}),h.jsx("span",{className:"text-[10px] text-text-muted uppercase tracking-widest",children:je})]}),h.jsx("p",{className:"text-sm font-semibold text-white",children:Ie}),h.jsx("p",{className:"text-[11px] text-text-muted mt-0.5 truncate",title:fa,children:fa})]},je))}),ue.length>0&&h.jsxs("div",{className:"mb-5",children:[h.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Recommendations"}),h.jsx("div",{className:"space-y-1.5",children:ue.slice(0,6).map((L,je)=>{const[Ie,fa]=L.split(": ");return fa?h.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-xl bg-bg-secondary border border-border text-xs",children:[h.jsx("span",{className:"text-text-secondary",children:Ie.replace(/\./g," › ")}),h.jsx("span",{className:"text-white font-mono",children:fa})]},je):null})})]}),G.gpuVendor==="none"&&G.ramTotalMB<16384&&h.jsxs("div",{className:"p-4 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[h.jsxs("p",{className:"text-xs text-[#fbbf24] font-semibold flex items-center gap-2",children:[h.jsx(eo,{className:"w-3.5 h-3.5"})," No dedicated GPU detected"]}),h.jsx("p",{className:"text-xs text-text-muted mt-1.5 leading-relaxed",children:"Local models will run on CPU — slower, but perfectly fine for small 7–8B models. For speed, grab an API key from Anthropic, OpenAI, or Groq."})]}),h.jsxs("button",{onClick:()=>re(!ae),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${ae?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"text-left",children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:"Apply recommended settings"}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:ae?"TITAN will auto-tune for your hardware.":"You can change these in Settings later."})]}),h.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${ae?"bg-accent":"bg-bg-tertiary"}`,children:h.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${ae?"left-5":"left-0.5"}`})})]})]})]},"hardware"),te?h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:ab,children:"TITAN Cloud"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick Your Brain"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Included with your subscription. Upgrade or downgrade anytime."}),_e&&h.jsx("div",{className:"mb-4 p-3 rounded-xl border border-accent/30 bg-accent/5",children:h.jsxs("p",{className:"text-xs text-text-secondary",children:["Signed in as ",h.jsx("span",{className:"text-white font-semibold",children:_e})]})}),h.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Free Tier"}),h.jsx("div",{className:"space-y-2 mb-5",children:Hi.free.map(L=>h.jsx("button",{onClick:()=>p(L.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:L.desc})]}),h.jsx("span",{className:"px-2.5 py-0.5 text-[10px] font-bold rounded-full bg-success/20 text-[#4ade80] uppercase",children:"free"})]})},L.id))}),h.jsxs("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:["Premium ",h.jsx("span",{className:"normal-case font-normal opacity-60",children:"— uses credits"})]}),h.jsx("div",{className:"space-y-2",children:Hi.paid.map(L=>h.jsx("button",{onClick:()=>p(L.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:L.desc})]}),h.jsx("span",{className:`px-2.5 py-0.5 text-[10px] font-bold rounded-full uppercase ${L.badge==="premium"?"bg-warning/20 text-[#fbbf24]":L.badge==="flagship"?"bg-accent/20 text-accent-hover":"bg-border/50 text-text-secondary"}`,children:L.badge})]})},L.id))})]},"cloud-model"):h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:db,children:"AI Provider"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Choose Your Engine"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Where should TITAN's brain live? Your machine, or someone else's?"}),h.jsx("div",{className:"grid grid-cols-2 gap-3 mb-6",children:Km.map(L=>{const je=L.icon;return h.jsxs("button",{onClick:()=>{f(L.id),p("")},className:`text-left p-4 rounded-2xl border transition-all ${r===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(je,{className:"w-4 h-4 text-accent"}),h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name})]}),h.jsx("p",{className:"text-xs text-text-muted leading-relaxed",children:L.desc})]},L.id)})}),Ze&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm text-text-secondary",children:"API Key"}),h.jsx("input",{type:"password",value:m,onChange:L=>v(L.target.value),placeholder:`Paste your ${ce==null?void 0:ce.name} API key`,className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/50 transition-colors"}),h.jsx("p",{className:"text-xs text-text-muted",children:"Stored locally in ~/.titan/titan.json. Never leaves this machine except to talk to your provider."})]}),r==="ollama"&&h.jsxs("div",{className:"mt-4 p-4 rounded-2xl border border-success/30 bg-success/5",children:[h.jsxs("p",{className:"text-sm text-success font-semibold flex items-center gap-2",children:[h.jsx(Pr,{className:"w-4 h-4"})," No API key needed"]}),h.jsx("p",{className:"text-xs text-text-muted mt-1 leading-relaxed",children:"Make sure Ollama is running. TITAN will auto-detect your models. If not, grab it from ollama.com."})]}),G&&G.gpuVendor==="none"&&G.ramTotalMB<16384&&r==="ollama"&&h.jsxs("div",{className:"mt-3 p-3 rounded-2xl border border-warning/30 bg-warning/5",children:[h.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold",children:"CPU-only detected"}),h.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Large local models will be sluggish. Consider a cloud provider for daily driver work, or keep Ollama for offline tasks."})]})]},"provider"),...te?[]:[h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Ir,children:"Model"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick a Model"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"The bigger the model, the smarter — but also the hungrier. Choose wisely."}),De.length===0&&r==="ollama"&&h.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[h.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold mb-1",children:"Your machine is… modest"}),h.jsxs("p",{className:"text-xs text-text-muted leading-relaxed",children:["None of our default models fit. Try typing a tiny one manually — e.g., ",h.jsx("code",{className:"text-white",children:"ollama/tinyllama:1b"}),"."]})]}),h.jsx("div",{className:"space-y-2 mb-5",children:De.map(L=>h.jsx("button",{onClick:()=>p(L),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`w-2 h-2 rounded-full ${g===L?"bg-accent":"bg-text-muted"}`}),h.jsx("p",{className:"font-mono text-sm text-white",children:L})]})},L))}),h.jsxs("div",{children:[h.jsx("label",{className:"text-sm text-text-muted",children:"Or enter any model ID:"}),h.jsx("input",{type:"text",value:g,onChange:L=>p(L.target.value),placeholder:`${r}/any-model-you-want`,className:"w-full mt-2 px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent font-mono text-sm"}),h.jsxs("p",{className:"text-[11px] text-text-muted mt-1.5",children:["TITAN works with ",h.jsx("span",{className:"text-white",children:"any"})," LLM — local, cloud, weird, wonderful. If it speaks OpenAI-style or Ollama, it'll work."]})]})]},"model")],h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Mb,children:"Identity"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Who Is TITAN?"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Give your agent a name and a vibe. This is how TITAN introduces itself to the world."}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-sm text-text-secondary mb-2 block",children:"Agent Name"}),h.jsx("input",{type:"text",value:y,onChange:L=>N(L.target.value),placeholder:"TITAN",className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent text-lg font-semibold"}),h.jsx("p",{className:"text-[11px] text-text-muted mt-1.5",children:"This appears in chat, the Command Post, and anywhere TITAN signs its work."})]}),h.jsxs("div",{children:[h.jsxs("label",{className:"text-sm text-text-secondary mb-3 block",children:["Persona ",h.jsx("span",{className:"text-text-muted font-normal",children:"— optional"})]}),h.jsx("input",{type:"text",placeholder:"Search personas...",value:z,onChange:L=>X(L.target.value),className:"w-full mb-3 px-3 py-2 rounded-xl border border-border bg-bg-secondary text-sm text-text placeholder:text-text-muted focus:outline-none focus:border-accent"}),h.jsxs("div",{className:"grid grid-cols-2 gap-3 max-h-[280px] overflow-y-auto pr-1",children:[Un.map(L=>h.jsxs("button",{onClick:()=>D(L.id),className:`text-left p-4 rounded-2xl border transition-all ${E===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-1 line-clamp-2",children:L.description}),h.jsx("p",{className:"text-[10px] text-text-muted mt-1 capitalize",children:L.division})]},L.id)),Un.length===0&&h.jsx("p",{className:"col-span-2 text-sm text-text-muted text-center py-4",children:z?"No personas match your search.":"Loading personas…"})]})]})]})]},"profile"),h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Vm,children:"Soma Drives"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Give TITAN Feelings"}),h.jsxs("p",{className:"text-sm text-text-muted mb-6",children:["Soma is TITAN's homeostatic core. It gets curious, bored, hungry for data, and occasionally lonely. When a drive crosses a threshold, TITAN ",h.jsx("em",{children:"proposes"})," work — you always approve before it acts."]}),h.jsx("div",{className:"grid grid-cols-3 gap-2 mb-5",children:[{name:"Purpose",desc:"Wants to be useful",icon:Xr},{name:"Curiosity",desc:"Wants to learn",icon:qy},{name:"Hunger",desc:"Wants data",icon:Uy},{name:"Safety",desc:"Wants stability",icon:Tb},{name:"Social",desc:"Wants to talk",icon:Hy},{name:"Rest",desc:"Wants downtime",icon:Vm}].map(L=>h.jsxs("div",{className:"p-3 rounded-xl border border-border bg-bg-secondary text-center",children:[h.jsx(L.icon,{className:"w-4 h-4 text-accent mx-auto mb-1.5"}),h.jsx("p",{className:"text-[11px] font-semibold text-white",children:L.name}),h.jsx("p",{className:"text-[10px] text-text-muted",children:L.desc})]},L.name))}),h.jsxs("button",{onClick:()=>Ae(!Ge),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${Ge?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"text-left",children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:"Enable Soma drives"}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:Ge?"TITAN will propose work when its internal state shifts. Like a cat bringing you mice, but code.":"TITAN waits for your prompts only. Purely reactive."})]}),h.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${Ge?"bg-accent":"bg-bg-tertiary"}`,children:h.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${Ge?"left-5":"left-0.5"}`})})]})]},"soma"),h.jsxs("div",{className:"flex flex-col items-center text-center",children:[h.jsx("div",{className:"relative mb-8",children:h.jsx(Zm,{audioLevel:.15,speaker:qn,size:200})}),h.jsx("h2",{className:"text-3xl font-bold mb-2 tracking-widest",style:{background:"linear-gradient(90deg, #818cf8, #c084fc, #818cf8)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animation:"shimmer 3s ease-in-out infinite"},children:"MISSION CONTROL READY"}),h.jsxs("p",{className:"text-text-secondary mb-2 max-w-md",children:[y," is locked and loaded with"," ",h.jsx("span",{className:"text-white font-semibold",children:te&&((Hl=ea.find(L=>L.id===g))==null?void 0:Hl.name)||g}),te?h.jsxs(h.Fragment,{children:[" via ",h.jsx("span",{className:"text-white font-semibold",children:"TITAN Cloud"}),"."]}):h.jsxs(h.Fragment,{children:[" via ",h.jsx("span",{className:"text-white font-semibold",children:(ce==null?void 0:ce.name)||r}),"."]})]}),h.jsxs("p",{className:"text-xs text-text-muted mb-6 max-w-sm",children:["TITAN works with ",h.jsx("span",{className:"text-white",children:"any"})," LLM you throw at it. If something breaks, it's probably the LLM's fault. (Just kidding. Mostly.)"]}),h.jsx("div",{className:"grid grid-cols-4 gap-3 text-center max-w-lg w-full mb-8",children:[{label:"Skills",value:143},{label:"Tools",value:248},{label:"Providers",value:36},{label:"Channels",value:16}].map(({label:L,value:je})=>h.jsxs("div",{className:"p-4 rounded-2xl bg-bg-secondary border border-border",children:[h.jsx("p",{className:"text-2xl font-bold text-white",children:h.jsx(Gb,{target:je})}),h.jsx("p",{className:"text-[10px] text-text-muted mt-1 uppercase tracking-wider",children:L})]},L))}),Ge&&h.jsxs("p",{className:"text-xs text-accent-hover mb-4 flex items-center gap-2",children:[h.jsx(kv,{size:12})," Soma is online — ",y," will propose work when it gets antsy."]}),h.jsx("label",{className:`w-full max-w-lg p-4 mb-5 rounded-2xl border cursor-pointer transition-colors text-left ${Me?"border-accent/50 bg-accent/5":"border-border hover:border-accent/40 bg-bg-secondary/50"}`,children:h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("input",{type:"checkbox",checked:Me,onChange:L=>R(L.target.checked),className:"mt-1 w-4 h-4 accent-accent"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("div",{className:"text-sm font-semibold text-white mb-1",children:"Help improve TITAN with anonymous stats"}),h.jsxs("div",{className:"text-xs text-text-secondary leading-relaxed",children:["OS, Node version, CPU/GPU model, RAM size, TITAN version."," ",h.jsx("span",{className:"text-text-muted",children:"Never: prompts, files, credentials, IP, or conversations."})," ",h.jsx("a",{href:"https://github.com/Djtony707/TITAN/blob/main/PRIVACY.md",target:"_blank",rel:"noreferrer",className:"text-accent hover:underline",onClick:L=>L.stopPropagation(),children:"Privacy policy →"})]})]})]})}),ne&&h.jsx("div",{className:"mb-4 p-3 rounded-2xl border border-error/50 bg-error/10 text-error text-sm w-full max-w-sm",children:ne}),h.jsx("style",{children:`
222
+ */const wb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],By=we("zap",wb);function Gy(n){var u,c,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(u=0;u<f;u++)n[u]&&(c=Gy(n[u]))&&(r&&(r+=" "),r+=c)}else for(c in n)n[c]&&(r&&(r+=" "),r+=c);return r}function _b(){for(var n,u,c=0,r="",f=arguments.length;c<f;c++)(n=arguments[c])&&(u=Gy(n))&&(r&&(r+=" "),r+=u);return r}const Yy=x.createContext({toast:()=>{}});function mS(){return x.useContext(Yy)}const Db={success:h.jsx(Pr,{size:16,className:"text-success"}),error:h.jsx(eb,{size:16,className:"text-error"}),warning:h.jsx(Wv,{size:16,className:"text-warning"}),info:h.jsx(ob,{size:16,className:"text-info"})},Ub={success:"border-success/30",error:"border-error/30",warning:"border-warning/30",info:"border-info/30"};function Hb({children:n}){const[u,c]=x.useState([]),r=x.useCallback((m,v)=>{const g=`toast-${Date.now()}-${Math.random().toString(36).slice(2)}`;c(p=>[...p,{id:g,type:m,message:v}]),setTimeout(()=>{c(p=>p.filter(y=>y.id!==g))},4e3)},[]),f=x.useCallback(m=>{c(v=>v.filter(g=>g.id!==m))},[]);return h.jsxs(Yy.Provider,{value:{toast:r},children:[n,h.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 pointer-events-none",children:u.map(m=>h.jsxs("div",{className:_b("pointer-events-auto flex items-center gap-2.5 rounded-lg border bg-bg-secondary px-4 py-3 shadow-lg","animate-in slide-in-from-right-5 fade-in duration-200",Ub[m.type]),children:[Db[m.type],h.jsx("span",{className:"text-sm text-text",children:m.message}),h.jsx("button",{onClick:()=>f(m.id),className:"ml-2 text-text-muted hover:text-text",children:h.jsx(Ly,{size:14})})]},m.id))})]})}function qb(){const{login:n}=_y(),[u,c]=x.useState(""),[r,f]=x.useState(""),[m,v]=x.useState(!1),g=x.useCallback(async p=>{if(p.preventDefault(),!!u.trim()){f(""),v(!0);try{await n(u)}catch{f("Incorrect password. Please try again.")}finally{v(!1)}}},[u,n]);return h.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-bg overflow-hidden",children:[h.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full opacity-[0.07] blur-[120px] pointer-events-none",style:{background:"radial-gradient(circle, var(--color-accent), var(--color-accent2))"}}),h.jsxs("div",{className:"relative z-10 w-full max-w-md mx-6",children:[h.jsxs("div",{className:"text-center mb-10",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 rounded-2xl mb-6",style:{background:"linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15))",border:"1px solid rgba(99,102,241,0.25)",boxShadow:"0 0 40px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.05)"},children:h.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",className:"w-10 h-10",children:[h.jsx("path",{d:"M16 3L4 9.5v13L16 29l12-6.5v-13L16 3z",stroke:"url(#titan-grad)",strokeWidth:1.5,strokeLinejoin:"round"}),h.jsx("path",{d:"M16 3v26M4 9.5L28 22.5M28 9.5L4 22.5",stroke:"url(#titan-grad)",strokeWidth:1,opacity:.4}),h.jsx("circle",{cx:16,cy:16,r:4,fill:"url(#titan-grad)",opacity:.8}),h.jsx("defs",{children:h.jsxs("linearGradient",{id:"titan-grad",x1:"4",y1:"3",x2:"28",y2:"29",children:[h.jsx("stop",{stopColor:"#6366f1"}),h.jsx("stop",{offset:1,stopColor:"#a855f7"})]})})]})}),h.jsx("h1",{className:"text-3xl font-bold text-text tracking-tight",children:"TITAN"}),h.jsx("p",{className:"text-base text-text-muted mt-2 tracking-wide",children:"Mission Control"})]}),h.jsx("div",{className:"rounded-2xl p-8",style:{background:"linear-gradient(180deg, rgba(24,24,27,0.95), rgba(24,24,27,0.8))",border:"1px solid rgba(63,63,70,0.6)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02)",backdropFilter:"blur(20px)"},children:h.jsxs("form",{onSubmit:g,className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Gateway Password"}),h.jsx("input",{id:"password",type:"password",autoFocus:!0,autoComplete:"current-password",value:u,onChange:p=>{c(p.target.value),r&&f("")},placeholder:"Enter your password",className:"w-full px-4 py-3 rounded-xl text-text placeholder:text-text-muted focus:outline-none transition-all text-sm",style:{background:"rgba(9,9,11,0.8)",border:r?"1px solid var(--color-error)":"1px solid rgba(63,63,70,0.8)",boxShadow:"inset 0 2px 4px rgba(0,0,0,0.2)"},onFocus:p=>{r||(p.currentTarget.style.border="1px solid var(--color-accent)"),p.currentTarget.style.boxShadow="inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(99,102,241,0.15)"},onBlur:p=>{r||(p.currentTarget.style.border="1px solid rgba(63,63,70,0.8)"),p.currentTarget.style.boxShadow="inset 0 2px 4px rgba(0,0,0,0.2)"}})]}),r&&h.jsxs("div",{className:"flex items-center gap-2 text-sm text-error",children:[h.jsx("svg",{className:"w-4 h-4 shrink-0",viewBox:"0 0 20 20",fill:"currentColor",children:h.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),r]}),h.jsx("button",{type:"submit",disabled:m||!u.trim(),className:"w-full py-3 rounded-xl text-white font-semibold text-sm tracking-wide transition-all disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer",style:{background:m||!u.trim()?"rgba(99,102,241,0.3)":"linear-gradient(135deg, #6366f1, #7c3aed)",boxShadow:m||!u.trim()?"none":"0 4px 14px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.15)"},onMouseEnter:p=>{!m&&u.trim()&&(p.currentTarget.style.background="linear-gradient(135deg, #818cf8, #8b5cf6)",p.currentTarget.style.boxShadow="0 6px 20px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.15)",p.currentTarget.style.transform="translateY(-1px)")},onMouseLeave:p=>{!m&&u.trim()&&(p.currentTarget.style.background="linear-gradient(135deg, #6366f1, #7c3aed)",p.currentTarget.style.boxShadow="0 4px 14px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.15)",p.currentTarget.style.transform="translateY(0)")},children:m?h.jsxs("span",{className:"inline-flex items-center gap-2",children:[h.jsxs("svg",{className:"animate-spin w-4 h-4",viewBox:"0 0 24 24",fill:"none",children:[h.jsx("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Signing in..."]}):"Sign In"})]})}),h.jsx("p",{className:"text-center text-xs text-text-muted mt-8 opacity-60",children:"TITAN Agent Framework"})]})]})}const fs={idle:{primary:[100,100,140],secondary:[80,80,120],glow:"rgba(100, 100, 200, 0.15)"},user:{primary:[34,211,238],secondary:[6,182,212],glow:"rgba(34, 211, 238, 0.25)"},assistant:{primary:[139,92,246],secondary:[124,58,237],glow:"rgba(139, 92, 246, 0.3)"},thinking:{primary:[245,158,11],secondary:[217,119,6],glow:"rgba(245, 158, 11, 0.25)"}};function Km({audioLevel:n,speaker:u,size:c=240}){const r=x.useRef(null),f=x.useRef(null),m=x.useRef(0),v=x.useRef(0),g=x.useRef(0),p=x.useRef(fs.idle.primary),y=x.useRef([...fs.idle.primary]),N=x.useRef(n),E=x.useRef(u),D=x.useRef(c);return N.current=n,E.current=u,D.current=c,x.useEffect(()=>{const k=new Image;k.src="/titan-logo.png",k.onload=()=>{f.current=k}},[]),x.useEffect(()=>{function k(){const K=r.current;if(!K){m.current=requestAnimationFrame(k);return}const z=K.getContext("2d");if(!z){m.current=requestAnimationFrame(k);return}const X=D.current,Q=N.current,F=E.current,G=window.devicePixelRatio||1,V=X*G,ne=X*G;(K.width!==V||K.height!==ne)&&(K.width=V,K.height=ne),z.clearRect(0,0,V,ne),v.current+=.016;const ee=v.current;g.current+=(Q-g.current)*.12;const W=g.current,fe=fs[F];p.current=fe.primary;for(let J=0;J<3;J++)y.current[J]+=(p.current[J]-y.current[J])*.04;const[te,Le,_e]=y.current.map(Math.round),Be=V/2,Ge=ne/2,Ae=V*.35;for(let J=3;J>=0;J--){const ue=1+J*.12+W*J*.08,me=.06-J*.012+W*.03;z.save(),z.translate(Be,Ge),z.beginPath();const S=120;for(let Z=0;Z<=S;Z++){const $=Z/S*Math.PI*2,ae=Math.sin($*3+ee*1.2+J)*.08,re=Math.sin($*5-ee*.8+J*2)*.05,ce=Math.sin($*7+ee*2.1)*.03*W,Ze=Math.sin($*2+ee*3)*W*.12,De=Ae*ue*(1+ae+re+ce+Ze),ea=Math.cos($)*De,oa=Math.sin($)*De;Z===0?z.moveTo(ea,oa):z.lineTo(ea,oa)}z.closePath();const w=z.createRadialGradient(0,0,0,0,0,Ae*ue*1.2);w.addColorStop(0,`rgba(${te}, ${Le}, ${_e}, ${me*2})`),w.addColorStop(.6,`rgba(${te}, ${Le}, ${_e}, ${me})`),w.addColorStop(1,`rgba(${te}, ${Le}, ${_e}, 0)`),z.fillStyle=w,z.fill(),z.restore()}z.save(),z.translate(Be,Ge),z.beginPath();const Me=150;for(let J=0;J<=Me;J++){const ue=J/Me*Math.PI*2,me=Math.sin(ue*3+ee*1.5)*.04,S=Math.sin(ue*5-ee*1)*.025,w=Math.sin(ue*4+ee*3.5)*W*.06,Z=Math.sin(ee*.8)*.02,$=F==="thinking"?Math.sin(ee*2.5)*.06:0,ae=Ae*(1+me+S+w+Z+$),re=Math.cos(ue)*ae,ce=Math.sin(ue)*ae;J===0?z.moveTo(re,ce):z.lineTo(re,ce)}z.closePath();const R=z.createRadialGradient(-Ae*.2,-Ae*.2,Ae*.1,0,0,Ae*1.1);R.addColorStop(0,`rgba(${Math.min(255,te+80)}, ${Math.min(255,Le+80)}, ${Math.min(255,_e+80)}, 0.95)`),R.addColorStop(.5,`rgba(${te}, ${Le}, ${_e}, 0.85)`),R.addColorStop(1,`rgba(${Math.max(0,te-40)}, ${Math.max(0,Le-40)}, ${Math.max(0,_e-40)}, 0.8)`),z.fillStyle=R,z.fill();const Y=z.createRadialGradient(-Ae*.25,-Ae*.3,0,-Ae*.1,-Ae*.15,Ae*.5);if(Y.addColorStop(0,"rgba(255, 255, 255, 0.35)"),Y.addColorStop(.5,"rgba(255, 255, 255, 0.08)"),Y.addColorStop(1,"rgba(255, 255, 255, 0)"),z.fillStyle=Y,z.fill(),z.restore(),f.current){const J=Ae*.8,ue=Be-J/2,me=Ge-J/2,S=Math.sin(ee*1.2)*3*G,w=Math.cos(ee*.9)*2*G;z.save(),z.globalAlpha=.9+W*.1,z.shadowColor=`rgba(${te}, ${Le}, ${_e}, ${.4+W*.3})`,z.shadowBlur=20+W*30,z.beginPath(),z.arc(Be+w,Ge+S,J/2+2,0,Math.PI*2),z.closePath(),z.clip(),z.drawImage(f.current,ue+w,me+S,J,J),z.restore()}if(W>.1){const J=Math.floor(W*12);for(let ue=0;ue<J;ue++){const me=ue/J*Math.PI*2+ee*.3,S=Ae*(1.2+Math.sin(ee*2+ue*1.7)*.3+W*.2),w=Be+Math.cos(me)*S,Z=Ge+Math.sin(me)*S,$=(1.5+Math.sin(ee*3+ue)*1)*G,ae=.3+Math.sin(ee*2+ue*.5)*.2;z.beginPath(),z.arc(w,Z,$,0,Math.PI*2),z.fillStyle=`rgba(${te}, ${Le}, ${_e}, ${ae})`,z.fill()}}m.current=requestAnimationFrame(k)}return m.current=requestAnimationFrame(k),()=>cancelAnimationFrame(m.current)},[]),h.jsx("canvas",{ref:r,style:{width:c,height:c,filter:`drop-shadow(0 0 ${20+n*40}px ${fs[u].glow})`,transition:"filter 0.3s ease"}})}const Jm=[{id:"ollama",name:"Ollama (Local)",desc:"Free — your own machine is the datacenter",noKey:!0,icon:Ir},{id:"anthropic",name:"Anthropic",desc:"Claude — polite, thorough, expensive taste",icon:Kv},{id:"openai",name:"OpenAI",desc:"GPT-4o, o3 — the household name",icon:By},{id:"google",name:"Google",desc:"Gemini — long context, occasional hallucinations",icon:ub},{id:"groq",name:"Groq",desc:"Ludicrous speed. Seriously, it's fast.",icon:Uy},{id:"openrouter",name:"OpenRouter",desc:"290+ models, one key. The buffet.",icon:zb},{id:"deepseek",name:"DeepSeek",desc:"DeepSeek — reasoning specialist, great value",icon:qy},{id:"xai",name:"xAI",desc:"Grok — edgy, real-time, may roast you",icon:Hy}],Lb={ollama:["ollama/llama3.3:8b","ollama/qwen3:8b","ollama/devstral-small-2","ollama/mistral:7b"],anthropic:["anthropic/claude-sonnet-4-20250514","anthropic/claude-haiku-4-5-20251001","anthropic/claude-opus-4-20250514"],openai:["openai/gpt-4o","openai/gpt-4o-mini","openai/o3-mini"],google:["google/gemini-2.5-pro","google/gemini-2.0-flash"],groq:["groq/llama-3.3-70b-versatile","groq/mixtral-8x7b-32768"],openrouter:["openrouter/anthropic/claude-sonnet-4-20250514","openrouter/openai/gpt-4o"],deepseek:["deepseek/deepseek-chat","deepseek/deepseek-reasoner"],xai:["xai/grok-3","xai/grok-3-mini"]},Bb=["ollama/qwen3:8b","ollama/llama3.3:8b","ollama/mistral:7b"],Hi={free:[{id:"openrouter/nvidia/nemotron-3-super-120b-a12b:free",name:"Nemotron 3 Super",desc:"Free 120B MoE — surprisingly capable",badge:"free"},{id:"openrouter/nvidia/nemotron-3-nano-30b-a3b:free",name:"Nemotron 3 Nano",desc:"Free 30B — quick and cheerful",badge:"free"},{id:"openrouter/z-ai/glm-4.5-air:free",name:"GLM-4.5 Air",desc:"Free versatile all-rounder",badge:"free"}],paid:[{id:"openrouter/qwen/qwen3.5-397b-a17b",name:"Qwen 3.5 397B",desc:"Flagship MoE — best quality, best value",badge:"flagship"},{id:"openrouter/openai/gpt-5.4",name:"GPT-5.4",desc:"OpenAI premium — costs a pretty penny",badge:"premium"},{id:"openrouter/anthropic/claude-sonnet-4.5",name:"Claude Sonnet 4.5",desc:"Anthropic premium — worth every cent",badge:"premium"},{id:"openrouter/google/gemini-3.1-pro",name:"Gemini 3.1 Pro",desc:"Google premium — reads War and Peace in one go",badge:"premium"},{id:"openrouter/moonshotai/kimi-k2.5",name:"Kimi K2.5",desc:"Strong reasoning — the quiet achiever",badge:"midrange"},{id:"openrouter/deepseek/deepseek-v3.2",name:"DeepSeek V3.2",desc:"Cost-effective — smart on a budget",badge:"midrange"},{id:"openrouter/z-ai/glm-4.7-flash",name:"GLM-4.7 Flash",desc:"Fast agent model — gets things done",badge:"agent"}]},$m=["TITAN can control your lights, write your code, and remember your coffee order.",`The "Soma" system gives TITAN feelings. Don't worry, it's therapy.`,"TITAN has 248 tools. You probably only need 3. But it's nice to have options.","TITAN once summarized a 500-page PDF in 12 seconds. The PDF was mostly blank.","TITAN's voice mode uses F5-TTS. It sounds like an android from a sci-fi film.","TITAN can run 5 agents at once. It's like having a tiny dev team in your laptop."];function Gb({target:n,suffix:u=""}){const[c,r]=x.useState(0),f=x.useRef(0);return x.useEffect(()=>{const v=performance.now(),g=p=>{const y=p-v,N=Math.min(y/1200,1),E=1-Math.pow(1-N,3);r(Math.round(n*E)),N<1&&(f.current=requestAnimationFrame(g))};return f.current=requestAnimationFrame(g),()=>cancelAnimationFrame(f.current)},[n]),h.jsxs(h.Fragment,{children:[c.toLocaleString(),u]})}function Tn({children:n,icon:u}){return h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u&&h.jsx(u,{className:"w-5 h-5 text-accent"}),h.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-accent",children:n})]})}function Yb({onComplete:n}){var Hl;const[u,c]=x.useState(0),[r,f]=x.useState(""),[m,v]=x.useState(""),[g,p]=x.useState(""),[y,N]=x.useState("TITAN"),[E,D]=x.useState("default"),[k,K]=x.useState([]),[z,X]=x.useState(""),[Q,F]=x.useState(!1),[G,V]=x.useState(!1),[ne,ee]=x.useState(""),[W,fe]=x.useState(0),[te,Le]=x.useState(!1),[_e,Be]=x.useState(""),[Ge,Ae]=x.useState(!0),[Me,R]=x.useState(!1),[Y,J]=x.useState(null),[ue,me]=x.useState([]),[S,w]=x.useState(!1),[Z,$]=x.useState(!1),[ae,re]=x.useState(!0),ce=Jm.find(L=>L.id===r),Ze=ce&&!("noKey"in ce&&ce.noKey),De=(()=>{const L=Lb[r]||[];if(!Y||te)return L;const Oe=Y.gpuVendor!=="none"&&Y.gpuVramMB>=4096,Ie=Y.ramTotalMB>=16384;return!Oe&&!Ie&&r==="ollama"?L.filter(fa=>Bb.includes(fa)):L})(),ea=[...Hi.free,...Hi.paid];x.useEffect(()=>{Ft("/api/cloud/config").then(L=>L.json()).then(L=>{var Oe;L.cloud&&(Le(!0),Be(L.userEmail||""),f("openrouter"),p(((Oe=Hi.free[0])==null?void 0:Oe.id)||""))}).catch(()=>{})},[]),x.useEffect(()=>{Ft("/api/personas").then(L=>L.json()).then(L=>{L.personas&&K(L.personas),L.active&&D(L.active)}).catch(()=>{})},[]),x.useEffect(()=>{w(!0),Ft("/api/hardware/detect").then(L=>L.json()).then(L=>{L.profile&&J(L.profile),L.recommendations&&me(L.recommendations)}).catch(()=>{}).finally(()=>w(!1))},[]),x.useEffect(()=>{const L=setInterval(()=>{fe(Oe=>(Oe+1)%$m.length)},5e3);return()=>clearInterval(L)},[]),x.useEffect(()=>{if(Y&&!r&&!te){const L=Y.gpuVendor!=="none"&&Y.gpuVramMB>=4096,Oe=Y.ramTotalMB>=8192;(L||Oe)&&f("ollama")}},[Y,r,te]);const oa=()=>{if(te)switch(u){case 0:return!0;case 1:return!0;case 2:return!!g;case 3:return!!y;case 4:return!0;default:return!0}switch(u){case 0:return!0;case 1:return!0;case 2:return!!r&&(!Ze||m.length>5);case 3:return!!g;case 4:return!!y;case 5:return!0;default:return!0}},Dn=async()=>{F(!0),ee("");try{if(ae&&Y&&!Z)try{await Ft("/api/hardware/apply",{method:"POST"}),$(!0)}catch{}E!=="default"&&await Ft("/api/persona/switch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:E})});const L=await Ft("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:te?"openrouter":r,apiKey:te?void 0:Ze?m:void 0,model:g,agentName:y,persona:E})});if(!L.ok){const Oe=await L.json();throw new Error(Oe.error||"Setup failed")}try{await Ft("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organism:{enabled:Ge}})})}catch{}try{await Ft("/api/telemetry/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:Me,crashReports:Me})})}catch{}yo("onboarding_completed",{provider:te?"openrouter":r,model:g,cloudMode:te}),V(!0),setTimeout(n,1800)}catch(L){ee(L instanceof Error?L.message:"Something went wrong"),F(!1)}},Un=k.filter(L=>!z||L.name.toLowerCase().includes(z.toLowerCase())||L.description.toLowerCase().includes(z.toLowerCase())||L.division.toLowerCase().includes(z.toLowerCase())),ta=te?5:6,Hn=u===0||u===ta?200:0,qn=u===ta?"assistant":"idle",Ln=L=>L>=1024?`${(L/1024).toFixed(1)} GB`:`${L} MB`,Bn=[h.jsxs("div",{className:"flex flex-col items-center text-center",children:[h.jsx("div",{className:"relative mb-8",style:{transition:"all 0.6s cubic-bezier(0.22, 1, 0.36, 1)"},children:h.jsx(Km,{audioLevel:0,speaker:"idle",size:Hn})}),h.jsx("h1",{className:"text-5xl font-bold text-white mb-3 tracking-tight",children:"Welcome Aboard"}),h.jsxs("p",{className:"text-xl text-text-secondary mb-2 font-light",children:["TITAN v5.0 ",h.jsx("span",{className:"text-accent font-medium",children:"“Spacewalk”"})]}),h.jsx("p",{className:"text-sm text-text-muted max-w-md mb-8 leading-relaxed",children:"You're about to give your computer a brain, a personality, and a slight tendency to ask if you'd like it to organize your desktop. Let's launch."}),h.jsxs("div",{className:"px-5 py-3 rounded-2xl border border-accent/20 bg-accent/5 mb-8 max-w-md",children:[h.jsxs("p",{className:"text-xs text-accent-hover font-medium mb-1 flex items-center gap-1.5",children:[h.jsx(Vm,{size:12})," Did you know?"]}),h.jsx("p",{className:"text-xs text-text-secondary leading-relaxed transition-opacity duration-500",children:$m[W]},W)]}),h.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["Multi-Agent Swarm","Deep Research","Soma Drives","Voice Mode","Smart Home","Code Execution"].map(L=>h.jsx("span",{className:"px-3 py-1.5 text-[11px] rounded-full border border-border text-text-secondary bg-bg-secondary",children:L},L))})]},"welcome"),h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:gb,children:"Systems Check"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Ship Diagnostic"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"TITAN is poking around your machine to see what it's working with. No judgment."}),S&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-12 gap-3",children:[h.jsx("div",{className:"w-10 h-10 border-2 border-accent border-t-transparent rounded-full animate-spin"}),h.jsx("p",{className:"text-xs text-text-muted animate-pulse",children:"Scanning subsystems…"})]}),!S&&!Y&&h.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 text-sm text-text-secondary",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(eo,{className:"w-4 h-4 text-warning"}),h.jsx("span",{className:"font-medium text-warning",children:"Sensors offline"})]}),"Couldn't read hardware details. TITAN will use safe defaults and you can tweak later in Settings."]}),!S&&Y&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[{icon:Ir,label:"CPU",value:`${Y.cpuCores} cores`,sub:Y.cpuModel},{icon:mb,label:"RAM",value:Ln(Y.ramTotalMB),sub:`${Ln(Y.ramFreeMB)} free`},{icon:By,label:"GPU",value:Y.gpuVendor==="none"?"None":Y.gpuVendor.toUpperCase(),sub:Y.gpuVendor==="none"?"Cloud models recommended":`${Y.gpuName} · ${Ln(Y.gpuVramMB)}`},{icon:cb,label:"Storage",value:`${Y.diskFreeGB} GB free`,sub:`of ${Y.diskTotalGB} GB total`}].map(({icon:L,label:Oe,value:Ie,sub:fa})=>h.jsxs("div",{className:"p-4 rounded-2xl border border-border bg-bg-secondary hover:border-border-light transition-colors",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(L,{className:"w-4 h-4 text-accent"}),h.jsx("span",{className:"text-[10px] text-text-muted uppercase tracking-widest",children:Oe})]}),h.jsx("p",{className:"text-sm font-semibold text-white",children:Ie}),h.jsx("p",{className:"text-[11px] text-text-muted mt-0.5 truncate",title:fa,children:fa})]},Oe))}),ue.length>0&&h.jsxs("div",{className:"mb-5",children:[h.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Recommendations"}),h.jsx("div",{className:"space-y-1.5",children:ue.slice(0,6).map((L,Oe)=>{const[Ie,fa]=L.split(": ");return fa?h.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-xl bg-bg-secondary border border-border text-xs",children:[h.jsx("span",{className:"text-text-secondary",children:Ie.replace(/\./g," › ")}),h.jsx("span",{className:"text-white font-mono",children:fa})]},Oe):null})})]}),Y.gpuVendor==="none"&&Y.ramTotalMB<16384&&h.jsxs("div",{className:"p-4 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[h.jsxs("p",{className:"text-xs text-[#fbbf24] font-semibold flex items-center gap-2",children:[h.jsx(eo,{className:"w-3.5 h-3.5"})," No dedicated GPU detected"]}),h.jsx("p",{className:"text-xs text-text-muted mt-1.5 leading-relaxed",children:"Local models will run on CPU — slower, but perfectly fine for small 7–8B models. For speed, grab an API key from Anthropic, OpenAI, or Groq."})]}),h.jsxs("button",{onClick:()=>re(!ae),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${ae?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"text-left",children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:"Apply recommended settings"}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:ae?"TITAN will auto-tune for your hardware.":"You can change these in Settings later."})]}),h.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${ae?"bg-accent":"bg-bg-tertiary"}`,children:h.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${ae?"left-5":"left-0.5"}`})})]})]})]},"hardware"),te?h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:ab,children:"TITAN Cloud"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick Your Brain"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Included with your subscription. Upgrade or downgrade anytime."}),_e&&h.jsx("div",{className:"mb-4 p-3 rounded-xl border border-accent/30 bg-accent/5",children:h.jsxs("p",{className:"text-xs text-text-secondary",children:["Signed in as ",h.jsx("span",{className:"text-white font-semibold",children:_e})]})}),h.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Free Tier"}),h.jsx("div",{className:"space-y-2 mb-5",children:Hi.free.map(L=>h.jsx("button",{onClick:()=>p(L.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:L.desc})]}),h.jsx("span",{className:"px-2.5 py-0.5 text-[10px] font-bold rounded-full bg-success/20 text-[#4ade80] uppercase",children:"free"})]})},L.id))}),h.jsxs("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:["Premium ",h.jsx("span",{className:"normal-case font-normal opacity-60",children:"— uses credits"})]}),h.jsx("div",{className:"space-y-2",children:Hi.paid.map(L=>h.jsx("button",{onClick:()=>p(L.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:L.desc})]}),h.jsx("span",{className:`px-2.5 py-0.5 text-[10px] font-bold rounded-full uppercase ${L.badge==="premium"?"bg-warning/20 text-[#fbbf24]":L.badge==="flagship"?"bg-accent/20 text-accent-hover":"bg-border/50 text-text-secondary"}`,children:L.badge})]})},L.id))})]},"cloud-model"):h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:db,children:"AI Provider"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Choose Your Engine"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Where should TITAN's brain live? Your machine, or someone else's?"}),h.jsx("div",{className:"grid grid-cols-2 gap-3 mb-6",children:Jm.map(L=>{const Oe=L.icon;return h.jsxs("button",{onClick:()=>{f(L.id),p("")},className:`text-left p-4 rounded-2xl border transition-all ${r===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(Oe,{className:"w-4 h-4 text-accent"}),h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name})]}),h.jsx("p",{className:"text-xs text-text-muted leading-relaxed",children:L.desc})]},L.id)})}),Ze&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm text-text-secondary",children:"API Key"}),h.jsx("input",{type:"password",value:m,onChange:L=>v(L.target.value),placeholder:`Paste your ${ce==null?void 0:ce.name} API key`,className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/50 transition-colors"}),h.jsx("p",{className:"text-xs text-text-muted",children:"Stored locally in ~/.titan/titan.json. Never leaves this machine except to talk to your provider."})]}),r==="ollama"&&h.jsxs("div",{className:"mt-4 p-4 rounded-2xl border border-success/30 bg-success/5",children:[h.jsxs("p",{className:"text-sm text-success font-semibold flex items-center gap-2",children:[h.jsx(Pr,{className:"w-4 h-4"})," No API key needed"]}),h.jsx("p",{className:"text-xs text-text-muted mt-1 leading-relaxed",children:"Make sure Ollama is running. TITAN will auto-detect your models. If not, grab it from ollama.com."})]}),Y&&Y.gpuVendor==="none"&&Y.ramTotalMB<16384&&r==="ollama"&&h.jsxs("div",{className:"mt-3 p-3 rounded-2xl border border-warning/30 bg-warning/5",children:[h.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold",children:"CPU-only detected"}),h.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Large local models will be sluggish. Consider a cloud provider for daily driver work, or keep Ollama for offline tasks."})]})]},"provider"),...te?[]:[h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Ir,children:"Model"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick a Model"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"The bigger the model, the smarter — but also the hungrier. Choose wisely."}),De.length===0&&r==="ollama"&&h.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[h.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold mb-1",children:"Your machine is… modest"}),h.jsxs("p",{className:"text-xs text-text-muted leading-relaxed",children:["None of our default models fit. Try typing a tiny one manually — e.g., ",h.jsx("code",{className:"text-white",children:"ollama/tinyllama:1b"}),"."]})]}),h.jsx("div",{className:"space-y-2 mb-5",children:De.map(L=>h.jsx("button",{onClick:()=>p(L),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`w-2 h-2 rounded-full ${g===L?"bg-accent":"bg-text-muted"}`}),h.jsx("p",{className:"font-mono text-sm text-white",children:L})]})},L))}),h.jsxs("div",{children:[h.jsx("label",{className:"text-sm text-text-muted",children:"Or enter any model ID:"}),h.jsx("input",{type:"text",value:g,onChange:L=>p(L.target.value),placeholder:`${r}/any-model-you-want`,className:"w-full mt-2 px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent font-mono text-sm"}),h.jsxs("p",{className:"text-[11px] text-text-muted mt-1.5",children:["TITAN works with ",h.jsx("span",{className:"text-white",children:"any"})," LLM — local, cloud, weird, wonderful. If it speaks OpenAI-style or Ollama, it'll work."]})]})]},"model")],h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Mb,children:"Identity"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Who Is TITAN?"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Give your agent a name and a vibe. This is how TITAN introduces itself to the world."}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-sm text-text-secondary mb-2 block",children:"Agent Name"}),h.jsx("input",{type:"text",value:y,onChange:L=>N(L.target.value),placeholder:"TITAN",className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent text-lg font-semibold"}),h.jsx("p",{className:"text-[11px] text-text-muted mt-1.5",children:"This appears in chat, the Command Post, and anywhere TITAN signs its work."})]}),h.jsxs("div",{children:[h.jsxs("label",{className:"text-sm text-text-secondary mb-3 block",children:["Persona ",h.jsx("span",{className:"text-text-muted font-normal",children:"— optional"})]}),h.jsx("input",{type:"text",placeholder:"Search personas...",value:z,onChange:L=>X(L.target.value),className:"w-full mb-3 px-3 py-2 rounded-xl border border-border bg-bg-secondary text-sm text-text placeholder:text-text-muted focus:outline-none focus:border-accent"}),h.jsxs("div",{className:"grid grid-cols-2 gap-3 max-h-[280px] overflow-y-auto pr-1",children:[Un.map(L=>h.jsxs("button",{onClick:()=>D(L.id),className:`text-left p-4 rounded-2xl border transition-all ${E===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-1 line-clamp-2",children:L.description}),h.jsx("p",{className:"text-[10px] text-text-muted mt-1 capitalize",children:L.division})]},L.id)),Un.length===0&&h.jsx("p",{className:"col-span-2 text-sm text-text-muted text-center py-4",children:z?"No personas match your search.":"Loading personas…"})]})]})]})]},"profile"),h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Zm,children:"Soma Drives"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Give TITAN Feelings"}),h.jsxs("p",{className:"text-sm text-text-muted mb-6",children:["Soma is TITAN's homeostatic core. It gets curious, bored, hungry for data, and occasionally lonely. When a drive crosses a threshold, TITAN ",h.jsx("em",{children:"proposes"})," work — you always approve before it acts."]}),h.jsx("div",{className:"grid grid-cols-3 gap-2 mb-5",children:[{name:"Purpose",desc:"Wants to be useful",icon:Xr},{name:"Curiosity",desc:"Wants to learn",icon:qy},{name:"Hunger",desc:"Wants data",icon:Uy},{name:"Safety",desc:"Wants stability",icon:Tb},{name:"Social",desc:"Wants to talk",icon:Hy},{name:"Rest",desc:"Wants downtime",icon:Zm}].map(L=>h.jsxs("div",{className:"p-3 rounded-xl border border-border bg-bg-secondary text-center",children:[h.jsx(L.icon,{className:"w-4 h-4 text-accent mx-auto mb-1.5"}),h.jsx("p",{className:"text-[11px] font-semibold text-white",children:L.name}),h.jsx("p",{className:"text-[10px] text-text-muted",children:L.desc})]},L.name))}),h.jsxs("button",{onClick:()=>Ae(!Ge),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${Ge?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"text-left",children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:"Enable Soma drives"}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:Ge?"TITAN will propose work when its internal state shifts. Like a cat bringing you mice, but code.":"TITAN waits for your prompts only. Purely reactive."})]}),h.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${Ge?"bg-accent":"bg-bg-tertiary"}`,children:h.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${Ge?"left-5":"left-0.5"}`})})]})]},"soma"),h.jsxs("div",{className:"flex flex-col items-center text-center",children:[h.jsx("div",{className:"relative mb-8",children:h.jsx(Km,{audioLevel:.15,speaker:qn,size:200})}),h.jsx("h2",{className:"text-3xl font-bold mb-2 tracking-widest",style:{background:"linear-gradient(90deg, #818cf8, #c084fc, #818cf8)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animation:"shimmer 3s ease-in-out infinite"},children:"MISSION CONTROL READY"}),h.jsxs("p",{className:"text-text-secondary mb-2 max-w-md",children:[y," is locked and loaded with"," ",h.jsx("span",{className:"text-white font-semibold",children:te&&((Hl=ea.find(L=>L.id===g))==null?void 0:Hl.name)||g}),te?h.jsxs(h.Fragment,{children:[" via ",h.jsx("span",{className:"text-white font-semibold",children:"TITAN Cloud"}),"."]}):h.jsxs(h.Fragment,{children:[" via ",h.jsx("span",{className:"text-white font-semibold",children:(ce==null?void 0:ce.name)||r}),"."]})]}),h.jsxs("p",{className:"text-xs text-text-muted mb-6 max-w-sm",children:["TITAN works with ",h.jsx("span",{className:"text-white",children:"any"})," LLM you throw at it. If something breaks, it's probably the LLM's fault. (Just kidding. Mostly.)"]}),h.jsx("div",{className:"grid grid-cols-4 gap-3 text-center max-w-lg w-full mb-8",children:[{label:"Skills",value:143},{label:"Tools",value:248},{label:"Providers",value:36},{label:"Channels",value:16}].map(({label:L,value:Oe})=>h.jsxs("div",{className:"p-4 rounded-2xl bg-bg-secondary border border-border",children:[h.jsx("p",{className:"text-2xl font-bold text-white",children:h.jsx(Gb,{target:Oe})}),h.jsx("p",{className:"text-[10px] text-text-muted mt-1 uppercase tracking-wider",children:L})]},L))}),Ge&&h.jsxs("p",{className:"text-xs text-accent-hover mb-4 flex items-center gap-2",children:[h.jsx(kv,{size:12})," Soma is online — ",y," will propose work when it gets antsy."]}),h.jsx("label",{className:`w-full max-w-lg p-4 mb-5 rounded-2xl border cursor-pointer transition-colors text-left ${Me?"border-accent/50 bg-accent/5":"border-border hover:border-accent/40 bg-bg-secondary/50"}`,children:h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("input",{type:"checkbox",checked:Me,onChange:L=>R(L.target.checked),className:"mt-1 w-4 h-4 accent-accent"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("div",{className:"text-sm font-semibold text-white mb-1",children:"Help improve TITAN with anonymous stats"}),h.jsxs("div",{className:"text-xs text-text-secondary leading-relaxed",children:["OS, Node version, CPU/GPU model, RAM size, TITAN version."," ",h.jsx("span",{className:"text-text-muted",children:"Never: prompts, files, credentials, IP, or conversations."})," ",h.jsx("a",{href:"https://github.com/Djtony707/TITAN/blob/main/PRIVACY.md",target:"_blank",rel:"noreferrer",className:"text-accent hover:underline",onClick:L=>L.stopPropagation(),children:"Privacy policy →"})]})]})]})}),ne&&h.jsx("div",{className:"mb-4 p-3 rounded-2xl border border-error/50 bg-error/10 text-error text-sm w-full max-w-sm",children:ne}),h.jsx("style",{children:`
223
223
  @keyframes shimmer {
224
224
  0%, 100% { background-position: -200% center; }
225
225
  50% { background-position: 200% center; }
226
226
  }
227
- `})]},"launch")],Ul=te?["Welcome","Hardware","Model","Profile","Soma","Launch"]:["Welcome","Hardware","Provider","Model","Profile","Soma","Launch"],Gn=u===Bn.length-1;return B?h.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",role:"status","aria-live":"polite",children:[h.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),h.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-5 text-center",children:[h.jsx("div",{className:"w-20 h-20 rounded-full bg-accent/20 ring-2 ring-accent flex items-center justify-center text-accent text-4xl animate-bounce",children:h.jsx(Xr,{className:"w-10 h-10"})}),h.jsxs("div",{children:[h.jsxs("div",{className:"text-2xl font-bold text-white",children:[y," is online"]}),h.jsx("div",{className:"text-sm text-text-muted mt-1",children:"Strapping in… opening Mission Control…"})]})]})]}):h.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",children:[h.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),h.jsxs("div",{className:"relative z-10 w-full max-w-2xl mx-auto px-6",children:[h.jsx("div",{className:"flex items-center justify-center gap-2 mb-10",children:Ul.map((L,je)=>h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:`flex items-center justify-center w-8 h-8 rounded-full text-xs font-bold transition-all duration-500 ${je<u?"bg-accent text-white":je===u?"bg-accent/20 text-accent ring-2 ring-accent":"bg-bg-tertiary text-text-muted"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"},children:je<u?h.jsx(Pr,{size:14}):je+1}),je<Ul.length-1&&h.jsx("div",{className:`w-8 h-0.5 transition-colors duration-500 ${je<u?"bg-accent":"bg-bg-tertiary"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"}})]},L))}),h.jsx("div",{className:"min-h-[400px] flex items-center justify-center",style:{transition:"all 0.5s cubic-bezier(0.22, 1, 0.36, 1)"},children:Bn[u]}),h.jsxs("div",{className:"flex items-center justify-between mt-10",children:[h.jsxs("button",{onClick:()=>c(L=>L-1),disabled:u===0,className:"flex items-center gap-2 px-5 py-2.5 text-sm text-text-secondary hover:text-white disabled:opacity-0 transition-all",children:[h.jsx($v,{size:16})," Back"]}),Gn?h.jsx("button",{onClick:Dn,disabled:Q,className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-50",children:Q?h.jsxs(h.Fragment,{children:[h.jsx(Xm,{size:16,className:"animate-spin"})," Calibrating…"]}):h.jsxs(h.Fragment,{children:["Launch Mission Control ",h.jsx(Xr,{size:16})]})}):h.jsxs("button",{onClick:()=>c(L=>L+1),disabled:!oa(),className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:[u===0?"Begin Systems Check":"Continue"," ",h.jsx(Vv,{size:16})]})]})]})]})}function Qb(){const[n,u]=x.useState(null),[c,r]=x.useState(!1),[f,m]=x.useState(!1);if(x.useEffect(()=>{let g=!1;const p=async()=>{try{const N=await Ft("/api/doctor/quick");if(!N.ok)return;const E=await N.json();if(g)return;u(E),E.ready&&m(!0)}catch{}};p();const y=setInterval(p,6e4);return()=>{g=!0,clearInterval(y)}},[]),!n||n.ready||f||c)return null;const v=n.action;return h.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/40 text-amber-100 px-4 py-2.5 flex items-center gap-3 text-[13px]",children:[h.jsx(eo,{size:16,className:"text-amber-400 flex-shrink-0"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:"font-semibold",children:"TITAN isn't fully set up yet."}),n.suggestion&&h.jsxs("span",{className:"opacity-90",children:[" ",n.suggestion]})]}),v&&v.type==="open"&&h.jsx(bs,{to:v.target,className:"px-3 py-1 rounded bg-amber-500/30 hover:bg-amber-500/50 text-amber-50 font-medium transition-colors flex-shrink-0",children:v.label}),h.jsx("button",{onClick:()=>r(!0),className:"text-amber-200 hover:text-amber-50 flex-shrink-0","aria-label":"Dismiss",title:"Dismiss",children:h.jsx(Ly,{size:16})})]})}function kb(){var v;const{config:n}=Uv(),u=(v=n==null?void 0:n.gateway)==null?void 0:v.auth;if(!u||u.openAccess!==!0)return null;const c=u.mode==="token"&&u.tokenConfigured===!1,r=c?"bg-red-500/15 border-red-500/50 text-red-100":"bg-amber-500/15 border-amber-500/40 text-amber-100",f=c?"text-red-400":"text-amber-400",m=c?"Gateway auth is not configured — remote API access is denied, but this instance has no token set.":'Open access — gateway auth is disabled (auth.mode: "none").';return h.jsxs("div",{className:`${r} border-b px-4 py-2.5 flex items-center gap-3 text-[13px]`,role:"alert",children:[h.jsx(xb,{size:16,className:`${f} flex-shrink-0`}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:"font-semibold",children:m})," ",h.jsx("span",{className:"opacity-90",children:"Anyone with network access to this gateway can use it. Set a token in Settings → Security to lock it down."})]}),h.jsx(bs,{to:"/settings",className:`px-3 py-1 rounded ${c?"bg-red-500/30 hover:bg-red-500/50 text-red-50":"bg-amber-500/30 hover:bg-amber-500/50 text-amber-50"} font-medium transition-colors flex-shrink-0`,children:"Configure auth"})]})}const Qy=x.createContext(null);function Xb({children:n}){const[u,c]=x.useState(!1),r=x.useCallback(()=>c(!0),[]),f=x.useCallback(()=>c(!1),[]);return h.jsx(Qy.Provider,{value:{isOpen:u,open:r,close:f},children:n})}function Vb(){const n=x.useContext(Qy);if(!n)throw new Error("useVoice must be used inside VoiceProvider");return n}const Zb=x.lazy(()=>Oy(()=>import("./TitanCanvas-C-s0A-lv.js").then(n=>n.t),__vite__mapDeps([0,1,2]))),Kb=x.lazy(()=>Oy(()=>import("./VoiceOverlay-CmNCrLcd.js").then(n=>n.b),[]).then(n=>({default:n.VoiceOverlay})));function Jb(){return h.jsx("div",{className:"flex items-center justify-center h-full",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})})}function $b(){const{isOpen:n,close:u}=Vb(),[c,r]=x.useState(null);return x.useEffect(()=>{Ft("/api/onboarding/status").then(f=>f.json()).then(f=>r(f.onboarded!==!1)).catch(()=>r(!0))},[]),c===null?h.jsx("div",{className:"flex items-center justify-center h-screen bg-bg",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})}):c?h.jsx(Hb,{children:h.jsxs(Dv,{children:[h.jsx(Wb,{}),h.jsx(x.Suspense,{fallback:h.jsx(Jb,{}),children:h.jsxs(g1,{children:[h.jsx(tt,{path:"/space/:spaceId",element:h.jsx(Zb,{})}),h.jsx(tt,{path:"/",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/dashboard",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/space",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/soma",element:h.jsx(ft,{to:"/space/soma",replace:!0})}),h.jsx(tt,{path:"/command-post",element:h.jsx(ft,{to:"/space/command",replace:!0})}),h.jsx(tt,{path:"/command-post/*",element:h.jsx(ft,{to:"/space/command",replace:!0})}),h.jsx(tt,{path:"/intelligence",element:h.jsx(ft,{to:"/space/intelligence",replace:!0})}),h.jsx(tt,{path:"/infra",element:h.jsx(ft,{to:"/space/infra",replace:!0})}),h.jsx(tt,{path:"/tools",element:h.jsx(ft,{to:"/space/tools",replace:!0})}),h.jsx(tt,{path:"/settings",element:h.jsx(ft,{to:"/space/settings",replace:!0})}),h.jsx(tt,{path:"/watch",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/projects",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/issues",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/goals",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/approvals",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/activity",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"*",element:h.jsx(ft,{to:"/space/home",replace:!0})})]})}),h.jsx(kb,{}),h.jsx(Qb,{}),n&&h.jsx(x.Suspense,{fallback:null,children:h.jsx(Kb,{onClose:u})})]})}):h.jsx(Yb,{onComplete:()=>r(!0)})}function Fb(){return h.jsx(Xb,{children:h.jsx($b,{})})}function Wb(){const n=It();return x.useEffect(()=>{const u=n.pathname;mo("feature_opened",{feature:u})},[n.pathname]),null}function Pb(){const{isAuthenticated:n,isLoading:u}=_y();return u?h.jsx("div",{className:"flex items-center justify-center h-screen bg-bg",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})}):n?h.jsx(Fb,{}):h.jsx(qb,{})}function Ib(){return h.jsx(Hv,{children:h.jsx(Pb,{})})}const e2=new Nv({defaultOptions:{queries:{staleTime:1e3*30,gcTime:1e3*60*5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:(n,u)=>(u==null?void 0:u.status)>=400&&(u==null?void 0:u.status)<500?!1:n<2},mutations:{retry:!1}}});class t2 extends x.Component{constructor(){super(...arguments);pm(this,"state",{error:null})}static getDerivedStateFromError(c){return{error:c}}render(){return this.state.error?h.jsxs("div",{style:{padding:40,color:"var(--color-error)",fontFamily:"monospace",background:"var(--color-bg)",minHeight:"100vh"},children:[h.jsx("h1",{style:{fontSize:20,marginBottom:16},children:"TITAN UI Error"}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:13,color:"var(--color-text)"},children:this.state.error.message}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:11,color:"var(--color-text-muted)",marginTop:12},children:this.state.error.stack})]}):this.props.children}}xg.createRoot(document.getElementById("root")).render(h.jsx(x.StrictMode,{children:h.jsx(t2,{children:h.jsxs(Mv,{client:e2,children:[h.jsx(Q1,{children:h.jsx(Ib,{})}),h.jsx(zv,{initialIsOpen:!1})]})})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(()=>{});export{Rv as $,kv as A,Sx as B,Ir as C,tx as D,ex as E,Zm as F,ub as G,cb as H,fx as I,Z2 as J,zy as K,E2 as L,mb as M,gb as N,ab as O,A2 as P,$2 as Q,n2 as R,Xm as S,eo as T,J2 as U,W2 as V,zb as W,Ly as X,F2 as Y,By as Z,Oy as _,l2 as a,Fx as a$,q2 as a0,L2 as a1,N2 as a2,C2 as a3,B2 as a4,G2 as a5,X2 as a6,Y2 as a7,Q2 as a8,k2 as a9,bs as aA,d2 as aB,c2 as aC,r2 as aD,f2 as aE,o2 as aF,u2 as aG,wx as aH,Rx as aI,_x as aJ,Dx as aK,Ux as aL,Hx as aM,Lx as aN,qx as aO,Bx as aP,Gx as aQ,Yx as aR,Qx as aS,kx as aT,Xx as aU,gx as aV,Vx as aW,Zx as aX,Kx as aY,Jx as aZ,$x as a_,V2 as aa,T2 as ab,M2 as ac,yx as ad,mx as ae,px as af,K2 as ag,h2 as ah,j2 as ai,_2 as aj,O2 as ak,w2 as al,R2 as am,z2 as an,m2 as ao,y2 as ap,p2 as aq,g2 as ar,v2 as as,b2 as at,x2 as au,S2 as av,D2 as aw,U2 as ax,H2 as ay,Xr as az,Ft as b,Wx as b0,Px as b1,Ix as b2,eS as b3,tS as b4,aS as b5,lS as b6,nS as b7,Mb as b8,Tx as b9,sx as ba,I2 as bb,ux as bc,Ax as bd,cx as be,rx as bf,Ex as bg,hx as bh,Nx as bi,zx as bj,Cx as bk,Mx as bl,jx as bm,Ox as bn,lx as bo,nx as bp,xb as bq,we as c,Tb as d,Wv as e,Pr as f,og as g,eb as h,io as i,h as j,$v as k,ao as l,gg as m,_b as n,ox as o,dx as p,P2 as q,x as r,s2 as s,mo as t,i2 as u,ix as v,vx as w,ax as x,bx as y,xx as z};
227
+ `})]},"launch")],Ul=te?["Welcome","Hardware","Model","Profile","Soma","Launch"]:["Welcome","Hardware","Provider","Model","Profile","Soma","Launch"],Gn=u===Bn.length-1;return G?h.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",role:"status","aria-live":"polite",children:[h.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),h.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-5 text-center",children:[h.jsx("div",{className:"w-20 h-20 rounded-full bg-accent/20 ring-2 ring-accent flex items-center justify-center text-accent text-4xl animate-bounce",children:h.jsx(Xr,{className:"w-10 h-10"})}),h.jsxs("div",{children:[h.jsxs("div",{className:"text-2xl font-bold text-white",children:[y," is online"]}),h.jsx("div",{className:"text-sm text-text-muted mt-1",children:"Strapping in… opening Mission Control…"})]})]})]}):h.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",children:[h.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),h.jsxs("div",{className:"relative z-10 w-full max-w-2xl mx-auto px-6",children:[h.jsx("div",{className:"flex items-center justify-center gap-2 mb-10",children:Ul.map((L,Oe)=>h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:`flex items-center justify-center w-8 h-8 rounded-full text-xs font-bold transition-all duration-500 ${Oe<u?"bg-accent text-white":Oe===u?"bg-accent/20 text-accent ring-2 ring-accent":"bg-bg-tertiary text-text-muted"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"},children:Oe<u?h.jsx(Pr,{size:14}):Oe+1}),Oe<Ul.length-1&&h.jsx("div",{className:`w-8 h-0.5 transition-colors duration-500 ${Oe<u?"bg-accent":"bg-bg-tertiary"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"}})]},L))}),h.jsx("div",{className:"min-h-[400px] flex items-center justify-center",style:{transition:"all 0.5s cubic-bezier(0.22, 1, 0.36, 1)"},children:Bn[u]}),h.jsxs("div",{className:"flex items-center justify-between mt-10",children:[h.jsxs("button",{onClick:()=>c(L=>L-1),disabled:u===0,className:"flex items-center gap-2 px-5 py-2.5 text-sm text-text-secondary hover:text-white disabled:opacity-0 transition-all",children:[h.jsx($v,{size:16})," Back"]}),Gn?h.jsx("button",{onClick:Dn,disabled:Q,className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-50",children:Q?h.jsxs(h.Fragment,{children:[h.jsx(Vm,{size:16,className:"animate-spin"})," Calibrating…"]}):h.jsxs(h.Fragment,{children:["Launch Mission Control ",h.jsx(Xr,{size:16})]})}):h.jsxs("button",{onClick:()=>c(L=>L+1),disabled:!oa(),className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:[u===0?"Begin Systems Check":"Continue"," ",h.jsx(Vv,{size:16})]})]})]})]})}function Qb(){const[n,u]=x.useState(null),[c,r]=x.useState(!1),[f,m]=x.useState(!1);if(x.useEffect(()=>{let g=!1;const p=async()=>{try{const N=await Ft("/api/doctor/quick");if(!N.ok)return;const E=await N.json();if(g)return;u(E),E.ready&&m(!0)}catch{}};p();const y=setInterval(p,6e4);return()=>{g=!0,clearInterval(y)}},[]),!n||n.ready||f||c)return null;const v=n.action;return h.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/40 text-amber-100 px-4 py-2.5 flex items-center gap-3 text-[13px]",children:[h.jsx(eo,{size:16,className:"text-amber-400 flex-shrink-0"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:"font-semibold",children:"TITAN isn't fully set up yet."}),n.suggestion&&h.jsxs("span",{className:"opacity-90",children:[" ",n.suggestion]})]}),v&&v.type==="open"&&h.jsx(bs,{to:v.target,className:"px-3 py-1 rounded bg-amber-500/30 hover:bg-amber-500/50 text-amber-50 font-medium transition-colors flex-shrink-0",children:v.label}),h.jsx("button",{onClick:()=>r(!0),className:"text-amber-200 hover:text-amber-50 flex-shrink-0","aria-label":"Dismiss",title:"Dismiss",children:h.jsx(Ly,{size:16})})]})}function kb(){var v;const{config:n}=Uv(),u=(v=n==null?void 0:n.gateway)==null?void 0:v.auth;if(!u||u.openAccess!==!0)return null;const c=u.mode==="token"&&u.tokenConfigured===!1,r=c?"bg-red-500/15 border-red-500/50 text-red-100":"bg-amber-500/15 border-amber-500/40 text-amber-100",f=c?"text-red-400":"text-amber-400",m=c?"Gateway auth is not configured — remote API access is denied, but this instance has no token set.":'Open access — gateway auth is disabled (auth.mode: "none").';return h.jsxs("div",{className:`${r} border-b px-4 py-2.5 flex items-center gap-3 text-[13px]`,role:"alert",children:[h.jsx(xb,{size:16,className:`${f} flex-shrink-0`}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:"font-semibold",children:m})," ",h.jsx("span",{className:"opacity-90",children:"Anyone with network access to this gateway can use it. Set a token in Settings → Security to lock it down."})]}),h.jsx(bs,{to:"/settings",className:`px-3 py-1 rounded ${c?"bg-red-500/30 hover:bg-red-500/50 text-red-50":"bg-amber-500/30 hover:bg-amber-500/50 text-amber-50"} font-medium transition-colors flex-shrink-0`,children:"Configure auth"})]})}const Qy=x.createContext(null);function Xb({children:n}){const[u,c]=x.useState(!1),r=x.useCallback(()=>c(!0),[]),f=x.useCallback(()=>c(!1),[]);return h.jsx(Qy.Provider,{value:{isOpen:u,open:r,close:f},children:n})}function Vb(){const n=x.useContext(Qy);if(!n)throw new Error("useVoice must be used inside VoiceProvider");return n}const Zb=x.lazy(()=>ho(()=>import("./TitanCanvas-BCbWnLMd.js").then(n=>n.d),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),Kb=x.lazy(()=>ho(()=>import("./CPLayout-DgPOfyGv.js"),__vite__mapDeps([21,3,22,23,24,25]))),Jb=x.lazy(()=>ho(()=>import("./VoiceOverlay-D-gc58b0.js").then(n=>n.a),__vite__mapDeps([11,12,13])).then(n=>({default:n.VoiceOverlay})));function $b(){return h.jsx("div",{className:"flex items-center justify-center h-full",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})})}function Fb(){const{isOpen:n,close:u}=Vb(),[c,r]=x.useState(null);return x.useEffect(()=>{Ft("/api/onboarding/status").then(f=>f.json()).then(f=>r(f.onboarded!==!1)).catch(()=>r(!0))},[]),c===null?h.jsx("div",{className:"flex items-center justify-center h-screen bg-bg",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})}):c?h.jsx(Hb,{children:h.jsxs(Dv,{children:[h.jsx(Pb,{}),h.jsx(x.Suspense,{fallback:h.jsx($b,{}),children:h.jsxs(g1,{children:[h.jsx(lt,{path:"/space/:spaceId",element:h.jsx(Zb,{})}),h.jsx(lt,{path:"/",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/dashboard",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/space",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/soma",element:h.jsx(mt,{to:"/space/soma",replace:!0})}),h.jsx(lt,{path:"/intelligence",element:h.jsx(mt,{to:"/space/intelligence",replace:!0})}),h.jsx(lt,{path:"/infra",element:h.jsx(mt,{to:"/space/infra",replace:!0})}),h.jsx(lt,{path:"/tools",element:h.jsx(mt,{to:"/space/tools",replace:!0})}),h.jsx(lt,{path:"/settings",element:h.jsx(mt,{to:"/space/settings",replace:!0})}),h.jsx(lt,{path:"/watch",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/projects",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/issues",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/goals",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/approvals",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/activity",element:h.jsx(mt,{to:"/space/home",replace:!0})}),h.jsx(lt,{path:"/command-post/*",element:h.jsx(Kb,{})}),h.jsx(lt,{path:"*",element:h.jsx(mt,{to:"/space/home",replace:!0})})]})}),h.jsx(kb,{}),h.jsx(Qb,{}),n&&h.jsx(x.Suspense,{fallback:null,children:h.jsx(Jb,{onClose:u})})]})}):h.jsx(Yb,{onComplete:()=>r(!0)})}function Wb(){return h.jsx(Xb,{children:h.jsx(Fb,{})})}function Pb(){const n=It();return x.useEffect(()=>{const u=n.pathname;yo("feature_opened",{feature:u})},[n.pathname]),null}function Ib(){const{isAuthenticated:n,isLoading:u}=_y();return u?h.jsx("div",{className:"flex items-center justify-center h-screen bg-bg",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})}):n?h.jsx(Wb,{}):h.jsx(qb,{})}function e2(){return h.jsx(Hv,{children:h.jsx(Ib,{})})}const t2=new Nv({defaultOptions:{queries:{staleTime:1e3*30,gcTime:1e3*60*5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:(n,u)=>(u==null?void 0:u.status)>=400&&(u==null?void 0:u.status)<500?!1:n<2},mutations:{retry:!1}}});class a2 extends x.Component{constructor(){super(...arguments);gm(this,"state",{error:null})}static getDerivedStateFromError(c){return{error:c}}render(){return this.state.error?h.jsxs("div",{style:{padding:40,color:"var(--color-error)",fontFamily:"monospace",background:"var(--color-bg)",minHeight:"100vh"},children:[h.jsx("h1",{style:{fontSize:20,marginBottom:16},children:"TITAN UI Error"}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:13,color:"var(--color-text)"},children:this.state.error.message}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:11,color:"var(--color-text-muted)",marginTop:12},children:this.state.error.stack})]}):this.props.children}}xg.createRoot(document.getElementById("root")).render(h.jsx(x.StrictMode,{children:h.jsx(a2,{children:h.jsxs(Mv,{client:t2,children:[h.jsx(Q1,{children:h.jsx(e2,{})}),h.jsx(zv,{initialIsOpen:!1})]})})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(()=>{});export{lx as $,kv as A,gx as B,Ir as C,ox as D,nx as E,Km as F,ub as G,cb as H,jx as I,zx as J,Rx as K,bs as L,mb as M,mt as N,vx as O,bx as P,fx as Q,i2 as R,Vm as S,eo as T,hx as U,yx as V,zb as W,Ly as X,mx as Y,By as Z,ho as _,n2 as a,Kx as a$,ax as a0,Sx as a1,px as a2,K2 as a3,zy as a4,A2 as a5,gb as a6,ab as a7,N2 as a8,F2 as a9,w2 as aA,R2 as aB,y2 as aC,p2 as aD,g2 as aE,v2 as aF,b2 as aG,x2 as aH,S2 as aI,T2 as aJ,U2 as aK,H2 as aL,q2 as aM,Xr as aN,h2 as aO,r2 as aP,o2 as aQ,d2 as aR,f2 as aS,s2 as aT,Qx as aU,Yx as aV,kx as aW,Xx as aX,Vx as aY,Zx as aZ,Jx as a_,$2 as aa,P2 as ab,W2 as ac,Rv as ad,L2 as ae,B2 as af,C2 as ag,M2 as ah,G2 as ai,Y2 as aj,V2 as ak,Q2 as al,k2 as am,X2 as an,Z2 as ao,E2 as ap,O2 as aq,Nx as ar,Ax as as,Cx as at,J2 as au,m2 as av,j2 as aw,D2 as ax,z2 as ay,_2 as az,Ft as b,$x as b0,Fx as b1,Wx as b2,Px as b3,Ix as b4,eS as b5,Mx as b6,tS as b7,aS as b8,lS as b9,qx as bA,Lx as bB,Bx as bC,xb as bD,nS as ba,iS as bb,uS as bc,sS as bd,cS as be,rS as bf,oS as bg,fS as bh,dS as bi,hS as bj,dx as bk,ux as bl,ex as bm,mS as bn,sx as bo,cx as bp,tx as bq,ix as br,Mb as bs,wx as bt,Dx as bu,_x as bv,Ex as bw,Ux as bx,Gx as by,Hx as bz,we as c,Tb as d,Wv as e,Pr as f,og as g,eb as h,io as i,h as j,It as k,_b as l,$v as m,g1 as n,lt as o,ao as p,gg as q,x as r,c2 as s,yo as t,u2 as u,xx as v,Tx as w,I2 as x,rx as y,Ox as z};