@overlordai/server 1.0.139 → 1.0.141

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 (235) hide show
  1. package/database/migrations/010-plan-review-mode.sql +11 -0
  2. package/database/migrations/012-schema-index-fixes.sql +72 -0
  3. package/dist/adapters/adapter.module.d.ts.map +1 -1
  4. package/dist/adapters/adapter.module.js +3 -0
  5. package/dist/adapters/adapter.module.js.map +1 -1
  6. package/dist/adapters/command-parser.utils.d.ts +11 -0
  7. package/dist/adapters/command-parser.utils.d.ts.map +1 -1
  8. package/dist/adapters/command-parser.utils.js +58 -1
  9. package/dist/adapters/command-parser.utils.js.map +1 -1
  10. package/dist/adapters/help-text.d.ts.map +1 -1
  11. package/dist/adapters/help-text.js +8 -6
  12. package/dist/adapters/help-text.js.map +1 -1
  13. package/dist/adapters/lark/lark-message.parser.d.ts +7 -7
  14. package/dist/adapters/lark/lark-message.parser.d.ts.map +1 -1
  15. package/dist/adapters/lark/lark-message.parser.js +11 -7
  16. package/dist/adapters/lark/lark-message.parser.js.map +1 -1
  17. package/dist/adapters/lark/lark.adapter.d.ts +3 -1
  18. package/dist/adapters/lark/lark.adapter.d.ts.map +1 -1
  19. package/dist/adapters/lark/lark.adapter.js +28 -12
  20. package/dist/adapters/lark/lark.adapter.js.map +1 -1
  21. package/dist/adapters/nlu.service.d.ts +20 -0
  22. package/dist/adapters/nlu.service.d.ts.map +1 -0
  23. package/dist/adapters/nlu.service.js +231 -0
  24. package/dist/adapters/nlu.service.js.map +1 -0
  25. package/dist/adapters/slack/slack-message.parser.d.ts.map +1 -1
  26. package/dist/adapters/slack/slack-message.parser.js +4 -0
  27. package/dist/adapters/slack/slack-message.parser.js.map +1 -1
  28. package/dist/adapters/slack/slack.adapter.d.ts +3 -1
  29. package/dist/adapters/slack/slack.adapter.d.ts.map +1 -1
  30. package/dist/adapters/slack/slack.adapter.js +43 -14
  31. package/dist/adapters/slack/slack.adapter.js.map +1 -1
  32. package/dist/adapters/slack/slack.controller.js +8 -8
  33. package/dist/adapters/slack/slack.controller.js.map +1 -1
  34. package/dist/common/project-validation.d.ts +13 -3
  35. package/dist/common/project-validation.d.ts.map +1 -1
  36. package/dist/common/project-validation.js +21 -5
  37. package/dist/common/project-validation.js.map +1 -1
  38. package/dist/database/migration-runner.d.ts.map +1 -1
  39. package/dist/database/migration-runner.js +10 -1
  40. package/dist/database/migration-runner.js.map +1 -1
  41. package/dist/database/repositories/project.repository.d.ts +2 -0
  42. package/dist/database/repositories/project.repository.d.ts.map +1 -1
  43. package/dist/database/repositories/project.repository.js +13 -0
  44. package/dist/database/repositories/project.repository.js.map +1 -1
  45. package/dist/database/repositories/task.repository.d.ts +11 -2
  46. package/dist/database/repositories/task.repository.d.ts.map +1 -1
  47. package/dist/database/repositories/task.repository.js +64 -8
  48. package/dist/database/repositories/task.repository.js.map +1 -1
  49. package/dist/dispatcher/dispatcher.service.d.ts +2 -0
  50. package/dist/dispatcher/dispatcher.service.d.ts.map +1 -1
  51. package/dist/dispatcher/dispatcher.service.js +79 -0
  52. package/dist/dispatcher/dispatcher.service.js.map +1 -1
  53. package/dist/dispatcher/scheduler.service.d.ts.map +1 -1
  54. package/dist/dispatcher/scheduler.service.js +3 -0
  55. package/dist/dispatcher/scheduler.service.js.map +1 -1
  56. package/dist/dispatcher/task-creation.service.d.ts +13 -2
  57. package/dist/dispatcher/task-creation.service.d.ts.map +1 -1
  58. package/dist/dispatcher/task-creation.service.js +207 -21
  59. package/dist/dispatcher/task-creation.service.js.map +1 -1
  60. package/dist/dispatcher/task-lifecycle.service.d.ts +5 -1
  61. package/dist/dispatcher/task-lifecycle.service.d.ts.map +1 -1
  62. package/dist/dispatcher/task-lifecycle.service.js +231 -1
  63. package/dist/dispatcher/task-lifecycle.service.js.map +1 -1
  64. package/dist/events/event-types.d.ts +8 -0
  65. package/dist/events/event-types.d.ts.map +1 -1
  66. package/dist/events/event-types.js +1 -0
  67. package/dist/events/event-types.js.map +1 -1
  68. package/dist/notifier/notification-consumer.d.ts.map +1 -1
  69. package/dist/notifier/notification-consumer.js +5 -0
  70. package/dist/notifier/notification-consumer.js.map +1 -1
  71. package/dist/notifier/notification-event-listener.d.ts +2 -1
  72. package/dist/notifier/notification-event-listener.d.ts.map +1 -1
  73. package/dist/notifier/notification-event-listener.js +14 -0
  74. package/dist/notifier/notification-event-listener.js.map +1 -1
  75. package/dist/notifier/notifier.service.d.ts +1 -0
  76. package/dist/notifier/notifier.service.d.ts.map +1 -1
  77. package/dist/notifier/notifier.service.js +8 -0
  78. package/dist/notifier/notifier.service.js.map +1 -1
  79. package/dist/notifier/template.service.d.ts +4 -0
  80. package/dist/notifier/template.service.d.ts.map +1 -1
  81. package/dist/notifier/template.service.js +32 -0
  82. package/dist/notifier/template.service.js.map +1 -1
  83. package/dist/web/admin/admin-project.controller.d.ts.map +1 -1
  84. package/dist/web/admin/admin-project.controller.js +15 -0
  85. package/dist/web/admin/admin-project.controller.js.map +1 -1
  86. package/dist/web/dashboard.service.js +3 -3
  87. package/dist/web/frame-handlers/index.d.ts +1 -0
  88. package/dist/web/frame-handlers/index.d.ts.map +1 -1
  89. package/dist/web/frame-handlers/index.js +3 -1
  90. package/dist/web/frame-handlers/index.js.map +1 -1
  91. package/dist/web/frame-handlers/progress.handler.d.ts.map +1 -1
  92. package/dist/web/frame-handlers/progress.handler.js +18 -0
  93. package/dist/web/frame-handlers/progress.handler.js.map +1 -1
  94. package/dist/web/frame-handlers/review-report.handler.d.ts +15 -0
  95. package/dist/web/frame-handlers/review-report.handler.d.ts.map +1 -0
  96. package/dist/web/frame-handlers/review-report.handler.js +140 -0
  97. package/dist/web/frame-handlers/review-report.handler.js.map +1 -0
  98. package/dist/web/frame-handlers/stage-confirm.handler.d.ts +3 -1
  99. package/dist/web/frame-handlers/stage-confirm.handler.d.ts.map +1 -1
  100. package/dist/web/frame-handlers/stage-confirm.handler.js +18 -4
  101. package/dist/web/frame-handlers/stage-confirm.handler.js.map +1 -1
  102. package/dist/web/project.controller.js +1 -1
  103. package/dist/web/project.controller.js.map +1 -1
  104. package/dist/web/task.controller.d.ts +116 -2
  105. package/dist/web/task.controller.d.ts.map +1 -1
  106. package/dist/web/task.controller.js +172 -8
  107. package/dist/web/task.controller.js.map +1 -1
  108. package/dist/web/web-event.service.d.ts +2 -1
  109. package/dist/web/web-event.service.d.ts.map +1 -1
  110. package/dist/web/web-event.service.js +13 -0
  111. package/dist/web/web-event.service.js.map +1 -1
  112. package/dist/web/worker-channel.gateway.d.ts +2 -1
  113. package/dist/web/worker-channel.gateway.d.ts.map +1 -1
  114. package/dist/web/worker-channel.gateway.js +6 -3
  115. package/dist/web/worker-channel.gateway.js.map +1 -1
  116. package/package.json +4 -4
  117. package/public/assets/AccessTokensPage-wTxicSeE.js +1 -0
  118. package/public/assets/AdminPage-CBovEOm4.js +1 -0
  119. package/public/assets/{AgentCliPage-BR2YXUlN.js → AgentCliPage-DfqlFdFN.js} +1 -1
  120. package/public/assets/{ApiReferencePage-CWGvx9sZ.js → ApiReferencePage-7TUHB8sC.js} +1 -1
  121. package/public/assets/{ArchitecturePage-CVipZPS8.js → ArchitecturePage-CycvJ1HW.js} +1 -1
  122. package/public/assets/AuditLogPage-CqqCDd8o.js +1 -0
  123. package/public/assets/{BindPlatformPage-BDisYk6H.js → BindPlatformPage-BV5wNIi2.js} +1 -1
  124. package/public/assets/{BotIntegrationPage-DoqcdqwE.js → BotIntegrationPage-B2bQytks.js} +1 -1
  125. package/public/assets/{BotManage-DRo01WBu.js → BotManage-BBBrqdT_.js} +2 -2
  126. package/public/assets/{BotSetupPage-nornZgmt.js → BotSetupPage-DdDPniAd.js} +1 -1
  127. package/public/assets/{ChangelogPage-Bd5TviZ8.js → ChangelogPage-D5YE3BFH.js} +1 -1
  128. package/public/assets/CliReferencePage-yJgtPpFn.js +17 -0
  129. package/public/assets/ConfirmStageDialog-BOGr-qSN.js +12 -0
  130. package/public/assets/{DeploymentPage-3YMjpAFo.js → DeploymentPage-C0CXq8yl.js} +1 -1
  131. package/public/assets/{DevWorkflowPage-DFQTZVP9.js → DevWorkflowPage-I4Io3nYz.js} +1 -1
  132. package/public/assets/{DeveloperManage-BnMIj_g_.js → DeveloperManage-Cy0LRyHh.js} +2 -2
  133. package/public/assets/{DeveloperSetupPage-Cw4nLpIm.js → DeveloperSetupPage-DzGCH2XG.js} +1 -1
  134. package/public/assets/{DocsIndexPage-cK28EfKj.js → DocsIndexPage-PIEcc9gX.js} +2 -2
  135. package/public/assets/DocsLayout-ChIliA9A.js +1 -0
  136. package/public/assets/{DocsPrimitives-2csfHzW_.js → DocsPrimitives-BMgSDhur.js} +1 -1
  137. package/public/assets/EditProjectPage-D0rfXGZR.js +2 -0
  138. package/public/assets/{EmptyState-ADwWEXdn.js → EmptyState-Di2nOiOt.js} +1 -1
  139. package/public/assets/{EnvVariablesPage-D7HonzNe.js → EnvVariablesPage-EmfRwttc.js} +1 -1
  140. package/public/assets/HomePage-CeOmNhkc.js +1 -0
  141. package/public/assets/{InfoRow-CmtJW4M9.js → InfoRow-5vQ-_wWv.js} +1 -1
  142. package/public/assets/{InstallationPage-CJ-YdcrX.js → InstallationPage-CUbe1AD-.js} +1 -1
  143. package/public/assets/{LandingPage-CWdPeZv-.js → LandingPage-DSHGbkXw.js} +7 -12
  144. package/public/assets/{LocalDevelopmentPage-BDl2Ktyc.js → LocalDevelopmentPage-fialPCnX.js} +1 -1
  145. package/public/assets/{LoginPage-DgF9ENzx.js → LoginPage-C4oz9yjV.js} +1 -1
  146. package/public/assets/{MetricBar-DoUTAkIk.js → MetricBar-ByQYVWVi.js} +1 -1
  147. package/public/assets/{NotFoundPage-BUrnSFza.js → NotFoundPage-BeayCSH7.js} +1 -1
  148. package/public/assets/{OnboardingGuide-E87DHNsp.js → OnboardingGuide-CqcX04SL.js} +1 -1
  149. package/public/assets/{PermissionsPage-DKhdHNDg.js → PermissionsPage-Bb2CYzMf.js} +1 -1
  150. package/public/assets/{PipelineConfigPage-Dn-fh0Ia.js → PipelineConfigPage-DwY__0Ag.js} +2 -2
  151. package/public/assets/PipelineEditorPage-FkckQpQX.js +3 -0
  152. package/public/assets/PlanPage-BOzGJd2h.js +1 -0
  153. package/public/assets/ProfilePage-CT_kk3a8.js +1 -0
  154. package/public/assets/ProjectDetailPage-B-t7L84T.js +7 -0
  155. package/public/assets/ProjectListPage-C2uStUVE.js +6 -0
  156. package/public/assets/PtyTerminal-BYXg_ahq.js +38 -0
  157. package/public/assets/QuickAuth-CohuPihd.js +1 -0
  158. package/public/assets/{RemoveMemberConfirmDialog-Brv6Th8M.js → RemoveMemberConfirmDialog-DLq9g7Td.js} +1 -1
  159. package/public/assets/ReviewAggregatePage-dWQb52Df.js +11 -0
  160. package/public/assets/ReviewPage-DtdWSBgK.js +1 -0
  161. package/public/assets/Select-BAl7H-Y0.js +1 -0
  162. package/public/assets/{SettingsPage-CZwwUAeC.js → SettingsPage-qCfF6rzU.js} +1 -1
  163. package/public/assets/{Skeleton-DQWHHk9G.js → Skeleton-DA5o8Wqi.js} +1 -1
  164. package/public/assets/{SkillPage-CKbqXAb6.js → SkillPage-C6p0dXbu.js} +1 -1
  165. package/public/assets/TaskDetailPage-D4sGfico.js +21 -0
  166. package/public/assets/TaskGuidePage-COT0chCI.js +19 -0
  167. package/public/assets/TaskListPage-Bvq5ow7r.js +1 -0
  168. package/public/assets/{TaskStatusBadge-Cd9AKReP.js → TaskStatusBadge-BdNFkrjU.js} +1 -1
  169. package/public/assets/TerminalHomePage-XJ5daAJC.js +6 -0
  170. package/public/assets/TokenManage-JLFD8xAN.js +1 -0
  171. package/public/assets/{Tooltip-1tjISJAN.js → Tooltip-Bl8LCgWr.js} +1 -1
  172. package/public/assets/{TotpSetupPage-Dme4c3tv.js → TotpSetupPage-BGE6pDdn.js} +1 -1
  173. package/public/assets/{WorkerDetailPage-CgXIs1_M.js → WorkerDetailPage-Dd-IbO6r.js} +1 -1
  174. package/public/assets/{WorkerListPage-CM1GqeN7.js → WorkerListPage-e4P55nJc.js} +2 -2
  175. package/public/assets/{WorkerOperationsPage-uArfsFAY.js → WorkerOperationsPage-ioBw_i1j.js} +1 -1
  176. package/public/assets/WorkerSetupGuidePage-CRicnVVm.js +1 -0
  177. package/public/assets/{WorkerSetupPage-DTQvCeTf.js → WorkerSetupPage-DXOlNqUZ.js} +1 -1
  178. package/public/assets/{agent-type-options-l4HLs4lb.js → agent-type-options-BVIYXf2V.js} +1 -1
  179. package/public/assets/{arrow-left-D2z6WXle.js → arrow-left-CTo0KHGY.js} +1 -1
  180. package/public/assets/{arrow-right-BBWwGkdK.js → arrow-right-C9oQyTKw.js} +1 -1
  181. package/public/assets/{bot-haRrziLf.js → bot-B301pflD.js} +1 -1
  182. package/public/assets/chevron-down-B0Leook1.js +6 -0
  183. package/public/assets/{chevron-left-B11s6IVD.js → chevron-left-59qctCaF.js} +1 -1
  184. package/public/assets/{chevron-right-CxMAZVfy.js → chevron-right-XfJqITCa.js} +1 -1
  185. package/public/assets/chevron-up-BW2PVBfH.js +6 -0
  186. package/public/assets/{copy-CukaPL3b.js → copy-DEWCNXDf.js} +1 -1
  187. package/public/assets/{download-CtBIkCC6.js → download-7d5kMwpH.js} +1 -1
  188. package/public/assets/{external-link-BYaw3Ovt.js → external-link-DjBNV7ga.js} +1 -1
  189. package/public/assets/{file-text-CwpyLWx2.js → file-text-DHEz_RFq.js} +1 -1
  190. package/public/assets/{git-fork-DjDcRdWO.js → git-fork-cRLOBM6a.js} +1 -1
  191. package/public/assets/index-eKvCyU64.js +252 -0
  192. package/public/assets/index-kJfGgL_V.css +1 -0
  193. package/public/assets/{key-D-EBAM_S.js → key-D5BbAzTj.js} +1 -1
  194. package/public/assets/{loader-circle-PEOtoIoF.js → loader-circle-B_f_h4fq.js} +1 -1
  195. package/public/assets/{pencil-BObnoNZc.js → pencil-CTTWvWuS.js} +1 -1
  196. package/public/assets/play-Cqf1Kvc7.js +6 -0
  197. package/public/assets/{plus-JnJTWOh0.js → plus-DwBKB0x6.js} +1 -1
  198. package/public/assets/{rotate-ccw-9hl77Xny.js → rotate-ccw-CZR8KOZn.js} +1 -1
  199. package/public/assets/{scroll-text-w6v00sw0.js → scroll-text-BeQeZkLb.js} +1 -1
  200. package/public/assets/{settings-DqX6KTB6.js → settings-CsdOqob5.js} +1 -1
  201. package/public/assets/skip-forward-BqiRx2ZQ.js +6 -0
  202. package/public/assets/status-colors-yfNzOmz-.js +1 -0
  203. package/public/assets/task-constants-BWLt-ivk.js +1 -0
  204. package/public/assets/task.store-BDZwafPm.js +1 -0
  205. package/public/assets/{trash-2-BH7Uy_FR.js → trash-2-CXPG2vQr.js} +1 -1
  206. package/public/assets/{useFetch-C6aoI2YR.js → useFetch-CVFGit7a.js} +1 -1
  207. package/public/assets/{users-N89uFOml.js → users-DmefWRaM.js} +1 -1
  208. package/public/assets/{wifi-B0GLkoI5.js → wifi-BJIfMBKB.js} +1 -1
  209. package/public/assets/{workflow-CPFrQB2p.js → workflow-CuZasRLA.js} +1 -1
  210. package/public/index.html +2 -2
  211. package/public/sw.js +1 -1
  212. package/public/assets/AccessTokensPage-DMsQKvGG.js +0 -1
  213. package/public/assets/AdminPage-DqZMqDDh.js +0 -1
  214. package/public/assets/AuditLogPage-CCUK_lWo.js +0 -1
  215. package/public/assets/CliReferencePage-C6NT0ynG.js +0 -16
  216. package/public/assets/DocsLayout-BVtSzaqN.js +0 -1
  217. package/public/assets/EditProjectPage-D4LeLkUK.js +0 -2
  218. package/public/assets/HomePage-CFVWSe09.js +0 -1
  219. package/public/assets/MobileTerminalShell-BSE0-T35.js +0 -49
  220. package/public/assets/PipelineEditorPage-DY945ZLB.js +0 -3
  221. package/public/assets/ProfilePage-wMwqf3xq.js +0 -1
  222. package/public/assets/ProjectDetailPage-Czbvi0xm.js +0 -7
  223. package/public/assets/ProjectListPage-qT9qvnxf.js +0 -6
  224. package/public/assets/QuickAuth-BsMxofrA.js +0 -1
  225. package/public/assets/Select-BfjWmQST.js +0 -6
  226. package/public/assets/TaskDetailPage-CskFoYAc.js +0 -26
  227. package/public/assets/TaskListPage-T7DWBtM3.js +0 -1
  228. package/public/assets/TerminalHomePage-ClJFAaTn.js +0 -11
  229. package/public/assets/TokenManage-Cj9UuqyE.js +0 -1
  230. package/public/assets/WorkerSetupGuidePage-CyW_9sIh.js +0 -6
  231. package/public/assets/index-BUjb3VF-.css +0 -1
  232. package/public/assets/index-GPUbNOkg.js +0 -242
  233. package/public/assets/status-colors-C_RhLQKM.js +0 -1
  234. package/public/assets/task-constants-LNckgIqT.js +0 -1
  235. /package/public/assets/{MobileTerminalShell-6GBZ9nXN.css → PtyTerminal-6GBZ9nXN.css} +0 -0
@@ -0,0 +1,252 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LandingPage-DSHGbkXw.js","assets/arrow-right-C9oQyTKw.js","assets/bot-B301pflD.js","assets/workflow-CuZasRLA.js","assets/users-DmefWRaM.js","assets/copy-DEWCNXDf.js","assets/HomePage-CeOmNhkc.js","assets/TaskStatusBadge-BdNFkrjU.js","assets/status-colors-yfNzOmz-.js","assets/Skeleton-DA5o8Wqi.js","assets/OnboardingGuide-CqcX04SL.js","assets/chevron-right-XfJqITCa.js","assets/date-RFA7-ZGs.js","assets/useFetch-CVFGit7a.js","assets/Tooltip-Bl8LCgWr.js","assets/TerminalHomePage-XJ5daAJC.js","assets/ConfirmStageDialog-BOGr-qSN.js","assets/loader-circle-B_f_h4fq.js","assets/rotate-ccw-CZR8KOZn.js","assets/PtyTerminal-BYXg_ahq.js","assets/PtyTerminal-6GBZ9nXN.css","assets/file-text-DHEz_RFq.js","assets/task.store-BDZwafPm.js","assets/Select-BAl7H-Y0.js","assets/chevron-down-B0Leook1.js","assets/task-constants-BWLt-ivk.js","assets/agent-type-options-BVIYXf2V.js","assets/plus-DwBKB0x6.js","assets/chevron-up-BW2PVBfH.js","assets/wifi-BJIfMBKB.js","assets/TaskListPage-Bvq5ow7r.js","assets/git-fork-cRLOBM6a.js","assets/EmptyState-Di2nOiOt.js","assets/chevron-left-59qctCaF.js","assets/TaskDetailPage-D4sGfico.js","assets/arrow-left-CTo0KHGY.js","assets/play-Cqf1Kvc7.js","assets/external-link-DjBNV7ga.js","assets/skip-forward-BqiRx2ZQ.js","assets/PlanPage-BOzGJd2h.js","assets/ReviewPage-DtdWSBgK.js","assets/ReviewAggregatePage-dWQb52Df.js","assets/WorkerListPage-e4P55nJc.js","assets/MetricBar-ByQYVWVi.js","assets/WorkerSetupGuidePage-CRicnVVm.js","assets/key-D5BbAzTj.js","assets/download-7d5kMwpH.js","assets/settings-CsdOqob5.js","assets/WorkerDetailPage-Dd-IbO6r.js","assets/InfoRow-5vQ-_wWv.js","assets/trash-2-CXPG2vQr.js","assets/ProjectListPage-C2uStUVE.js","assets/ProjectDetailPage-B-t7L84T.js","assets/RemoveMemberConfirmDialog-DLq9g7Td.js","assets/pencil-CTTWvWuS.js","assets/EditProjectPage-D0rfXGZR.js","assets/PipelineEditorPage-FkckQpQX.js","assets/ProfilePage-CT_kk3a8.js","assets/password-CHk45-jw.js","assets/AccessTokensPage-wTxicSeE.js","assets/CliReferencePage-yJgtPpFn.js","assets/DocsPrimitives-BMgSDhur.js","assets/QuickAuth-CohuPihd.js","assets/ApiReferencePage-7TUHB8sC.js","assets/SkillPage-C6p0dXbu.js","assets/DocsLayout-ChIliA9A.js","assets/InstallationPage-CUbe1AD-.js","assets/DeveloperSetupPage-DzGCH2XG.js","assets/WorkerSetupPage-DXOlNqUZ.js","assets/BotSetupPage-DdDPniAd.js","assets/LocalDevelopmentPage-fialPCnX.js","assets/DeploymentPage-C0CXq8yl.js","assets/PipelineConfigPage-DwY__0Ag.js","assets/DevWorkflowPage-I4Io3nYz.js","assets/EnvVariablesPage-EmfRwttc.js","assets/ArchitecturePage-CycvJ1HW.js","assets/AgentCliPage-DfqlFdFN.js","assets/TaskGuidePage-COT0chCI.js","assets/DocsIndexPage-PIEcc9gX.js","assets/AdminPage-CBovEOm4.js","assets/scroll-text-BeQeZkLb.js","assets/DeveloperManage-Cy0LRyHh.js","assets/BotManage-BBBrqdT_.js","assets/TokenManage-JLFD8xAN.js","assets/AuditLogPage-CqqCDd8o.js"])))=>i.map(i=>d[i]);
2
+ var a_=Object.defineProperty;var Pm=i=>{throw TypeError(i)};var n_=(i,u,s)=>u in i?a_(i,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[u]=s;var Ve=(i,u,s)=>n_(i,typeof u!="symbol"?u+"":u,s),_s=(i,u,s)=>u.has(i)||Pm("Cannot "+s);var q=(i,u,s)=>(_s(i,u,"read from private field"),s?s.call(i):u.get(i)),Pt=(i,u,s)=>u.has(i)?Pm("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(i):u.set(i,s),Kt=(i,u,s,o)=>(_s(i,u,"write to private field"),o?o.call(i,s):u.set(i,s),s),ke=(i,u,s)=>(_s(i,u,"access private method"),s);var eh=(i,u,s,o)=>({set _(f){Kt(i,u,f,s)},get _(){return q(i,u,o)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const g of m.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&o(g)}).observe(document,{childList:!0,subtree:!0});function s(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 o(f){if(f.ep)return;f.ep=!0;const m=s(f);fetch(f.href,m)}})();function l_(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var vs={exports:{}},ti={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var th;function i_(){if(th)return ti;th=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,f,m){var g=null;if(m!==void 0&&(g=""+m),f.key!==void 0&&(g=""+f.key),"key"in f){m={};for(var b in f)b!=="key"&&(m[b]=f[b])}else m=f;return f=m.ref,{$$typeof:i,type:o,key:g,ref:f!==void 0?f:null,props:m}}return ti.Fragment=u,ti.jsx=s,ti.jsxs=s,ti}var ah;function r_(){return ah||(ah=1,vs.exports=i_()),vs.exports}var h=r_(),bs={exports:{}},ne={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var nh;function u_(){if(nh)return ne;nh=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),N=Symbol.iterator;function Y(S){return S===null||typeof S!="object"?null:(S=N&&S[N]||S["@@iterator"],typeof S=="function"?S:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,B={};function U(S,M,V){this.props=S,this.context=M,this.refs=B,this.updater=V||L}U.prototype.isReactComponent={},U.prototype.setState=function(S,M){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,M,"setState")},U.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function K(){}K.prototype=U.prototype;function X(S,M,V){this.props=S,this.context=M,this.refs=B,this.updater=V||L}var ue=X.prototype=new K;ue.constructor=X,H(ue,U.prototype),ue.isPureReactComponent=!0;var ce=Array.isArray;function ge(){}var F={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function se(S,M,V){var J=V.ref;return{$$typeof:i,type:S,key:M,ref:J!==void 0?J:null,props:V}}function Pe(S,M){return se(S.type,M,S.props)}function Je(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function Ce(S){var M={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(V){return M[V]})}var At=/\/+/g;function ut(S,M){return typeof S=="object"&&S!==null&&S.key!=null?Ce(""+S.key):M.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(ge,ge):(S.status="pending",S.then(function(M){S.status==="pending"&&(S.status="fulfilled",S.value=M)},function(M){S.status==="pending"&&(S.status="rejected",S.reason=M)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function O(S,M,V,J,le){var fe=typeof S;(fe==="undefined"||fe==="boolean")&&(S=null);var Se=!1;if(S===null)Se=!0;else switch(fe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(S.$$typeof){case i:case u:Se=!0;break;case w:return Se=S._init,O(Se(S._payload),M,V,J,le)}}if(Se)return le=le(S),Se=J===""?"."+ut(S,0):J,ce(le)?(V="",Se!=null&&(V=Se.replace(At,"$&/")+"/"),O(le,M,V,"",function(ol){return ol})):le!=null&&(Je(le)&&(le=Pe(le,V+(le.key==null||S&&S.key===le.key?"":(""+le.key).replace(At,"$&/")+"/")+Se)),M.push(le)),1;Se=0;var ot=J===""?".":J+":";if(ce(S))for(var Be=0;Be<S.length;Be++)J=S[Be],fe=ot+ut(J,Be),Se+=O(J,M,V,fe,le);else if(Be=Y(S),typeof Be=="function")for(S=Be.call(S),Be=0;!(J=S.next()).done;)J=J.value,fe=ot+ut(J,Be++),Se+=O(J,M,V,fe,le);else if(fe==="object"){if(typeof S.then=="function")return O(Me(S),M,V,J,le);throw M=String(S),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return Se}function G(S,M,V){if(S==null)return S;var J=[],le=0;return O(S,J,"","",function(fe){return M.call(V,fe,le++)}),J}function te(S){if(S._status===-1){var M=S._result;M=M(),M.then(function(V){(S._status===0||S._status===-1)&&(S._status=1,S._result=V)},function(V){(S._status===0||S._status===-1)&&(S._status=2,S._result=V)}),S._status===-1&&(S._status=0,S._result=M)}if(S._status===1)return S._result.default;throw S._result}var Te=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=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(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ze={map:G,forEach:function(S,M,V){G(S,function(){M.apply(this,arguments)},V)},count:function(S){var M=0;return G(S,function(){M++}),M},toArray:function(S){return G(S,function(M){return M})||[]},only:function(S){if(!Je(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ne.Activity=k,ne.Children=ze,ne.Component=U,ne.Fragment=s,ne.Profiler=f,ne.PureComponent=X,ne.StrictMode=o,ne.Suspense=_,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ne.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},ne.cache=function(S){return function(){return S.apply(null,arguments)}},ne.cacheSignal=function(){return null},ne.cloneElement=function(S,M,V){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var J=H({},S.props),le=S.key;if(M!=null)for(fe in M.key!==void 0&&(le=""+M.key),M)!W.call(M,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&M.ref===void 0||(J[fe]=M[fe]);var fe=arguments.length-2;if(fe===1)J.children=V;else if(1<fe){for(var Se=Array(fe),ot=0;ot<fe;ot++)Se[ot]=arguments[ot+2];J.children=Se}return se(S.type,le,J)},ne.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ne.createElement=function(S,M,V){var J,le={},fe=null;if(M!=null)for(J in M.key!==void 0&&(fe=""+M.key),M)W.call(M,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(le[J]=M[J]);var Se=arguments.length-2;if(Se===1)le.children=V;else if(1<Se){for(var ot=Array(Se),Be=0;Be<Se;Be++)ot[Be]=arguments[Be+2];le.children=ot}if(S&&S.defaultProps)for(J in Se=S.defaultProps,Se)le[J]===void 0&&(le[J]=Se[J]);return se(S,fe,le)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(S){return{$$typeof:b,render:S}},ne.isValidElement=Je,ne.lazy=function(S){return{$$typeof:w,_payload:{_status:-1,_result:S},_init:te}},ne.memo=function(S,M){return{$$typeof:p,type:S,compare:M===void 0?null:M}},ne.startTransition=function(S){var M=F.T,V={};F.T=V;try{var J=S(),le=F.S;le!==null&&le(V,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ge,Te)}catch(fe){Te(fe)}finally{M!==null&&V.types!==null&&(M.types=V.types),F.T=M}},ne.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ne.use=function(S){return F.H.use(S)},ne.useActionState=function(S,M,V){return F.H.useActionState(S,M,V)},ne.useCallback=function(S,M){return F.H.useCallback(S,M)},ne.useContext=function(S){return F.H.useContext(S)},ne.useDebugValue=function(){},ne.useDeferredValue=function(S,M){return F.H.useDeferredValue(S,M)},ne.useEffect=function(S,M){return F.H.useEffect(S,M)},ne.useEffectEvent=function(S){return F.H.useEffectEvent(S)},ne.useId=function(){return F.H.useId()},ne.useImperativeHandle=function(S,M,V){return F.H.useImperativeHandle(S,M,V)},ne.useInsertionEffect=function(S,M){return F.H.useInsertionEffect(S,M)},ne.useLayoutEffect=function(S,M){return F.H.useLayoutEffect(S,M)},ne.useMemo=function(S,M){return F.H.useMemo(S,M)},ne.useOptimistic=function(S,M){return F.H.useOptimistic(S,M)},ne.useReducer=function(S,M,V){return F.H.useReducer(S,M,V)},ne.useRef=function(S){return F.H.useRef(S)},ne.useState=function(S){return F.H.useState(S)},ne.useSyncExternalStore=function(S,M,V){return F.H.useSyncExternalStore(S,M,V)},ne.useTransition=function(){return F.H.useTransition()},ne.version="19.2.4",ne}var lh;function Ys(){return lh||(lh=1,bs.exports=u_()),bs.exports}var y=Ys();const Ar=l_(y);var xs={exports:{}},ai={},Ss={exports:{}},ks={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var ih;function o_(){return ih||(ih=1,(function(i){function u(O,G){var te=O.length;O.push(G);e:for(;0<te;){var Te=te-1>>>1,ze=O[Te];if(0<f(ze,G))O[Te]=G,O[te]=ze,te=Te;else break e}}function s(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var G=O[0],te=O.pop();if(te!==G){O[0]=te;e:for(var Te=0,ze=O.length,S=ze>>>1;Te<S;){var M=2*(Te+1)-1,V=O[M],J=M+1,le=O[J];if(0>f(V,te))J<ze&&0>f(le,V)?(O[Te]=le,O[J]=te,Te=J):(O[Te]=V,O[M]=te,Te=M);else if(J<ze&&0>f(le,te))O[Te]=le,O[J]=te,Te=J;else break e}}return G}function f(O,G){var te=O.sortIndex-G.sortIndex;return te!==0?te:O.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var g=Date,b=g.now();i.unstable_now=function(){return g.now()-b}}var _=[],p=[],w=1,k=null,N=3,Y=!1,L=!1,H=!1,B=!1,U=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ue(O){for(var G=s(p);G!==null;){if(G.callback===null)o(p);else if(G.startTime<=O)o(p),G.sortIndex=G.expirationTime,u(_,G);else break;G=s(p)}}function ce(O){if(H=!1,ue(O),!L)if(s(_)!==null)L=!0,ge||(ge=!0,Ce());else{var G=s(p);G!==null&&Me(ce,G.startTime-O)}}var ge=!1,F=-1,W=5,se=-1;function Pe(){return B?!0:!(i.unstable_now()-se<W)}function Je(){if(B=!1,ge){var O=i.unstable_now();se=O;var G=!0;try{e:{L=!1,H&&(H=!1,K(F),F=-1),Y=!0;var te=N;try{t:{for(ue(O),k=s(_);k!==null&&!(k.expirationTime>O&&Pe());){var Te=k.callback;if(typeof Te=="function"){k.callback=null,N=k.priorityLevel;var ze=Te(k.expirationTime<=O);if(O=i.unstable_now(),typeof ze=="function"){k.callback=ze,ue(O),G=!0;break t}k===s(_)&&o(_),ue(O)}else o(_);k=s(_)}if(k!==null)G=!0;else{var S=s(p);S!==null&&Me(ce,S.startTime-O),G=!1}}break e}finally{k=null,N=te,Y=!1}G=void 0}}finally{G?Ce():ge=!1}}}var Ce;if(typeof X=="function")Ce=function(){X(Je)};else if(typeof MessageChannel<"u"){var At=new MessageChannel,ut=At.port2;At.port1.onmessage=Je,Ce=function(){ut.postMessage(null)}}else Ce=function(){U(Je,0)};function Me(O,G){F=U(function(){O(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(O){switch(N){case 1:case 2:case 3:var G=3;break;default:G=N}var te=N;N=G;try{return O()}finally{N=te}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(O,G){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var te=N;N=O;try{return G()}finally{N=te}},i.unstable_scheduleCallback=function(O,G,te){var Te=i.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Te+te:Te):te=Te,O){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=te+ze,O={id:w++,callback:G,priorityLevel:O,startTime:te,expirationTime:ze,sortIndex:-1},te>Te?(O.sortIndex=te,u(p,O),s(_)===null&&O===s(p)&&(H?(K(F),F=-1):H=!0,Me(ce,te-Te))):(O.sortIndex=ze,u(_,O),L||Y||(L=!0,ge||(ge=!0,Ce()))),O},i.unstable_shouldYield=Pe,i.unstable_wrapCallback=function(O){var G=N;return function(){var te=N;N=G;try{return O.apply(this,arguments)}finally{N=te}}}})(ks)),ks}var rh;function s_(){return rh||(rh=1,Ss.exports=o_()),Ss.exports}var Es={exports:{}},it={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var uh;function c_(){if(uh)return it;uh=1;var i=Ys();function u(_){var p="https://react.dev/errors/"+_;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)p+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+_+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(_,p,w){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:k==null?null:""+k,children:_,containerInfo:p,implementation:w}}var g=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(_,p){if(_==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(_,p){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return m(_,p,null,w)},it.flushSync=function(_){var p=g.T,w=o.p;try{if(g.T=null,o.p=2,_)return _()}finally{g.T=p,o.p=w,o.d.f()}},it.preconnect=function(_,p){typeof _=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(_,p))},it.prefetchDNS=function(_){typeof _=="string"&&o.d.D(_)},it.preinit=function(_,p){if(typeof _=="string"&&p&&typeof p.as=="string"){var w=p.as,k=b(w,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,Y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;w==="style"?o.d.S(_,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:k,integrity:N,fetchPriority:Y}):w==="script"&&o.d.X(_,{crossOrigin:k,integrity:N,fetchPriority:Y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},it.preinitModule=function(_,p){if(typeof _=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var w=b(p.as,p.crossOrigin);o.d.M(_,{crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(_)},it.preload=function(_,p){if(typeof _=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var w=p.as,k=b(w,p.crossOrigin);o.d.L(_,w,{crossOrigin:k,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},it.preloadModule=function(_,p){if(typeof _=="string")if(p){var w=b(p.as,p.crossOrigin);o.d.m(_,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(_)},it.requestFormReset=function(_){o.d.r(_)},it.unstable_batchedUpdates=function(_,p){return _(p)},it.useFormState=function(_,p,w){return g.H.useFormState(_,p,w)},it.useFormStatus=function(){return g.H.useHostTransitionStatus()},it.version="19.2.4",it}var oh;function f_(){if(oh)return Es.exports;oh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),Es.exports=c_(),Es.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var sh;function d_(){if(sh)return ai;sh=1;var i=s_(),u=Ys(),s=f_();function o(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 g(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 b(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 _(e){if(m(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var r=l.alternate;if(r===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===a)return _(l),e;if(r===n)return _(l),t;r=r.sibling}throw Error(o(188))}if(a.return!==n.return)a=l,n=r;else{for(var c=!1,d=l.child;d;){if(d===a){c=!0,a=l,n=r;break}if(d===n){c=!0,n=l,a=r;break}d=d.sibling}if(!c){for(d=r.child;d;){if(d===a){c=!0,a=r,n=l;break}if(d===n){c=!0,n=r,a=l;break}d=d.sibling}if(!c)throw Error(o(189))}}if(a.alternate!==n)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var k=Object.assign,N=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),Pe=Symbol.for("react.memo_cache_sentinel"),Je=Symbol.iterator;function Ce(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}var At=Symbol.for("react.client.reference");function ut(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===At?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case U:return"Profiler";case B:return"StrictMode";case ce:return"Suspense";case ge:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case X:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case ue:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ut(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return ut(e(t))}catch{}}return null}var Me=Array.isArray,O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Te=[],ze=-1;function S(e){return{current:e}}function M(e){0>ze||(e.current=Te[ze],Te[ze]=null,ze--)}function V(e,t){ze++,Te[ze]=e.current,e.current=t}var J=S(null),le=S(null),fe=S(null),Se=S(null);function ot(e,t){switch(V(fe,t),V(le,e),V(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sm(t),e=km(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(J),V(J,e)}function Be(){M(J),M(le),M(fe)}function ol(e){e.memoizedState!==null&&V(Se,e);var t=J.current,a=km(t,e.type);t!==a&&(V(le,e),V(J,a))}function fi(e){le.current===e&&(M(J),M(le)),Se.current===e&&(M(Se),Fl._currentValue=te)}var Pr,Fs;function Ia(e){if(Pr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Pr=t&&t[1]||"",Fs=-1<a.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Pr+e+Fs}var eu=!1;function tu(e,t){if(!e||eu)return"";eu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(A){var R=A}Reflect.construct(e,[],D)}else{try{D.call()}catch(A){R=A}e.call(D.prototype)}}else{try{throw Error()}catch(A){R=A}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(A){if(A&&R&&typeof A.stack=="string")return[A.stack,R.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),c=r[0],d=r[1];if(c&&d){var v=c.split(`
45
+ `),j=d.split(`
46
+ `);for(l=n=0;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;for(;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;if(n===v.length||l===j.length)for(n=v.length-1,l=j.length-1;1<=n&&0<=l&&v[n]!==j[l];)l--;for(;1<=n&&0<=l;n--,l--)if(v[n]!==j[l]){if(n!==1||l!==1)do if(n--,l--,0>l||v[n]!==j[l]){var z=`
47
+ `+v[n].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=n&&0<=l);break}}}finally{eu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ia(a):""}function Dp(e,t){switch(e.tag){case 26:case 27:case 5:return Ia(e.type);case 16:return Ia("Lazy");case 13:return e.child!==t&&t!==null?Ia("Suspense Fallback"):Ia("Suspense");case 19:return Ia("SuspenseList");case 0:case 15:return tu(e.type,!1);case 11:return tu(e.type.render,!1);case 1:return tu(e.type,!0);case 31:return Ia("Activity");default:return""}}function Is(e){try{var t="",a=null;do t+=Dp(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
48
+ Error generating stack: `+n.message+`
49
+ `+n.stack}}var au=Object.prototype.hasOwnProperty,nu=i.unstable_scheduleCallback,lu=i.unstable_cancelCallback,Np=i.unstable_shouldYield,Mp=i.unstable_requestPaint,_t=i.unstable_now,Up=i.unstable_getCurrentPriorityLevel,Ps=i.unstable_ImmediatePriority,ec=i.unstable_UserBlockingPriority,di=i.unstable_NormalPriority,qp=i.unstable_LowPriority,tc=i.unstable_IdlePriority,Lp=i.log,Hp=i.unstable_setDisableYieldValue,sl=null,vt=null;function ka(e){if(typeof Lp=="function"&&Hp(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Gp,Bp=Math.log,Yp=Math.LN2;function Gp(e){return e>>>=0,e===0?32:31-(Bp(e)/Yp|0)|0}var mi=256,hi=262144,pi=4194304;function Pa(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 gi(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~r,n!==0?l=Pa(n):(c&=d,c!==0?l=Pa(c):a||(a=d&~e,a!==0&&(l=Pa(a))))):(d=n&~r,d!==0?l=Pa(d):c!==0?l=Pa(c):a||(a=n&~e,a!==0&&(l=Pa(a)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:l}function cl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Vp(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 ac(){var e=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),e}function iu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xp(e,t,a,n,l,r){var c=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,v=e.expirationTimes,j=e.hiddenUpdates;for(a=c&~a;0<a;){var z=31-bt(a),D=1<<z;d[z]=0,v[z]=-1;var R=j[z];if(R!==null)for(j[z]=null,z=0;z<R.length;z++){var A=R[z];A!==null&&(A.lane&=-536870913)}a&=~D}n!==0&&nc(e,n,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(c&~t))}function nc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-bt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function lc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-bt(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function ic(e,t){var a=t&-t;return a=(a&42)!==0?1:ru(a),(a&(e.suspendedLanes|t))!==0?0:a}function ru(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 uu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Zm(e.type))}function uc(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Ea=Math.random().toString(36).slice(2),et="__reactFiber$"+Ea,ct="__reactProps$"+Ea,bn="__reactContainer$"+Ea,ou="__reactEvents$"+Ea,Qp="__reactListeners$"+Ea,Zp="__reactHandles$"+Ea,oc="__reactResources$"+Ea,dl="__reactMarker$"+Ea;function su(e){delete e[et],delete e[ct],delete e[ou],delete e[Qp],delete e[Zp]}function xn(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=zm(e);e!==null;){if(a=e[et])return a;e=zm(e)}return t}e=a,a=e.parentNode}return null}function Sn(e){if(e=e[et]||e[bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ml(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function kn(e){var t=e[oc];return t||(t=e[oc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[dl]=!0}var sc=new Set,cc={};function en(e,t){En(e,t),En(e+"Capture",t)}function En(e,t){for(cc[e]=t,e=0;e<t.length;e++)sc.add(t[e])}var Kp=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]*$"),fc={},dc={};function Jp(e){return au.call(dc,e)?!0:au.call(fc,e)?!1:Kp.test(e)?dc[e]=!0:(fc[e]=!0,!1)}function yi(e,t,a){if(Jp(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function _i(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 aa(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $p(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(c){a=""+c,r.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cu(e){if(!e._valueTracker){var t=mc(e)?"checked":"value";e._valueTracker=$p(e,t,""+e[t])}}function hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=mc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function vi(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 Wp=/[\n"\\]/g;function Ot(e){return e.replace(Wp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fu(e,t,a,n,l,r,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?du(e,c,zt(t)):a!=null?du(e,c,zt(a)):n!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+zt(d):e.removeAttribute("name")}function pc(e,t,a,n,l,r,c,d){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){cu(e);return}a=a!=null?""+zt(a):"",t=t!=null?""+zt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),cu(e)}function du(e,t,a){t==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function wn(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&n&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,n&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function gc(e,t,a){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+zt(a):""}function yc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(Me(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=zt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),cu(e)}function Tn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Fp=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 _c(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Fp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function vc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var l in t)n=t[l],t.hasOwnProperty(l)&&a[l]!==n&&_c(e,l,n)}else for(var r in t)t.hasOwnProperty(r)&&_c(e,r,t[r])}function mu(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 Ip=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"]]),Pp=/^[\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 bi(e){return Pp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var hu=null;function pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jn=null,Rn=null;function bc(e){var t=Sn(e);if(t&&(e=t.stateNode)){var a=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(fu(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="'+Ot(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var l=n[ct]||null;if(!l)throw Error(o(90));fu(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&hc(n)}break e;case"textarea":gc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&wn(e,!!a.multiple,t,!1)}}}var gu=!1;function xc(e,t,a){if(gu)return e(t,a);gu=!0;try{var n=e(t);return n}finally{if(gu=!1,(jn!==null||Rn!==null)&&(ur(),jn&&(t=jn,e=Rn,Rn=jn=null,bc(t),e)))for(t=0;t<e.length;t++)bc(e[t])}}function hl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[ct]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=!1;if(la)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){yu=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{yu=!1}var wa=null,_u=null,xi=null;function Sc(){if(xi)return xi;var e,t=_u,a=t.length,n,l="value"in wa?wa.value:wa.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var c=a-e;for(n=1;n<=c&&t[a-n]===l[r-n];n++);return xi=l.slice(e,1<n?1-n:void 0)}function Si(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 ki(){return!0}function kc(){return!1}function ft(e){function t(a,n,l,r,c){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=r,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(r):r[d]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ki:kc,this.isPropagationStopped=kc,this}return k(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=ki)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),t}var tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ei=ft(tn),gl=k({},tn,{view:0,detail:0}),eg=ft(gl),vu,bu,yl,wi=k({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Su,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!==yl&&(yl&&e.type==="mousemove"?(vu=e.screenX-yl.screenX,bu=e.screenY-yl.screenY):bu=vu=0,yl=e),vu)},movementY:function(e){return"movementY"in e?e.movementY:bu}}),Ec=ft(wi),tg=k({},wi,{dataTransfer:0}),ag=ft(tg),ng=k({},gl,{relatedTarget:0}),xu=ft(ng),lg=k({},tn,{animationName:0,elapsedTime:0,pseudoElement:0}),ig=ft(lg),rg=k({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ug=ft(rg),og=k({},tn,{data:0}),wc=ft(og),sg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cg={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"},fg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fg[e])?!!t[e]:!1}function Su(){return dg}var mg=k({},gl,{key:function(e){if(e.key){var t=sg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Su,charCode:function(e){return e.type==="keypress"?Si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hg=ft(mg),pg=k({},wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tc=ft(pg),gg=k({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Su}),yg=ft(gg),_g=k({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),vg=ft(_g),bg=k({},wi,{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}),xg=ft(bg),Sg=k({},tn,{newState:0,oldState:0}),kg=ft(Sg),Eg=[9,13,27,32],ku=la&&"CompositionEvent"in window,_l=null;la&&"documentMode"in document&&(_l=document.documentMode);var wg=la&&"TextEvent"in window&&!_l,jc=la&&(!ku||_l&&8<_l&&11>=_l),Rc=" ",Ac=!1;function zc(e,t){switch(e){case"keyup":return Eg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var An=!1;function Tg(e,t){switch(e){case"compositionend":return Oc(t);case"keypress":return t.which!==32?null:(Ac=!0,Rc);case"textInput":return e=t.data,e===Rc&&Ac?null:e;default:return null}}function jg(e,t){if(An)return e==="compositionend"||!ku&&zc(e,t)?(e=Sc(),xi=_u=wa=null,An=!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 jc&&t.locale!=="ko"?null:t.data;default:return null}}var Rg={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 Cc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rg[e.type]:t==="textarea"}function Dc(e,t,a,n){jn?Rn?Rn.push(n):Rn=[n]:jn=n,t=hr(t,"onChange"),0<t.length&&(a=new Ei("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var vl=null,bl=null;function Ag(e){gm(e,0)}function Ti(e){var t=ml(e);if(hc(t))return e}function Nc(e,t){if(e==="change")return t}var Mc=!1;if(la){var Eu;if(la){var wu="oninput"in document;if(!wu){var Uc=document.createElement("div");Uc.setAttribute("oninput","return;"),wu=typeof Uc.oninput=="function"}Eu=wu}else Eu=!1;Mc=Eu&&(!document.documentMode||9<document.documentMode)}function qc(){vl&&(vl.detachEvent("onpropertychange",Lc),bl=vl=null)}function Lc(e){if(e.propertyName==="value"&&Ti(bl)){var t=[];Dc(t,bl,e,pu(e)),xc(Ag,t)}}function zg(e,t,a){e==="focusin"?(qc(),vl=t,bl=a,vl.attachEvent("onpropertychange",Lc)):e==="focusout"&&qc()}function Og(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ti(bl)}function Cg(e,t){if(e==="click")return Ti(t)}function Dg(e,t){if(e==="input"||e==="change")return Ti(t)}function Ng(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:Ng;function xl(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!au.call(t,l)||!xt(e[l],t[l]))return!1}return!0}function Hc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bc(e,t){var a=Hc(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hc(a)}}function Yc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vi(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=vi(e.document)}return t}function Tu(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 Mg=la&&"documentMode"in document&&11>=document.documentMode,zn=null,ju=null,Sl=null,Ru=!1;function Vc(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ru||zn==null||zn!==vi(n)||(n=zn,"selectionStart"in n&&Tu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Sl&&xl(Sl,n)||(Sl=n,n=hr(ju,"onSelect"),0<n.length&&(t=new Ei("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=zn)))}function an(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var On={animationend:an("Animation","AnimationEnd"),animationiteration:an("Animation","AnimationIteration"),animationstart:an("Animation","AnimationStart"),transitionrun:an("Transition","TransitionRun"),transitionstart:an("Transition","TransitionStart"),transitioncancel:an("Transition","TransitionCancel"),transitionend:an("Transition","TransitionEnd")},Au={},Xc={};la&&(Xc=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function nn(e){if(Au[e])return Au[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Xc)return Au[e]=t[a];return e}var Qc=nn("animationend"),Zc=nn("animationiteration"),Kc=nn("animationstart"),Ug=nn("transitionrun"),qg=nn("transitionstart"),Lg=nn("transitioncancel"),Jc=nn("transitionend"),$c=new Map,zu="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(" ");zu.push("scrollEnd");function Xt(e,t){$c.set(e,t),en(t,[e])}var ji=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)},Ct=[],Cn=0,Ou=0;function Ri(){for(var e=Cn,t=Ou=Cn=0;t<e;){var a=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var l=Ct[t];Ct[t++]=null;var r=Ct[t];if(Ct[t++]=null,n!==null&&l!==null){var c=n.pending;c===null?l.next=l:(l.next=c.next,c.next=l),n.pending=l}r!==0&&Wc(a,l,r)}}function Ai(e,t,a,n){Ct[Cn++]=e,Ct[Cn++]=t,Ct[Cn++]=a,Ct[Cn++]=n,Ou|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Cu(e,t,a,n){return Ai(e,t,a,n),zi(e)}function ln(e,t){return Ai(e,null,null,t),zi(e)}function Wc(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&t!==null&&(l=31-bt(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function zi(e){if(50<Xl)throw Xl=0,Go=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dn={};function Hg(e,t,a,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,a,n){return new Hg(e,t,a,n)}function Du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=St(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 Fc(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 Oi(e,t,a,n,l,r){var c=0;if(n=e,typeof e=="function")Du(e)&&(c=1);else if(typeof e=="string")c=Xy(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=St(31,a,t,l),e.elementType=se,e.lanes=r,e;case H:return rn(a.children,l,r,t);case B:c=8,l|=24;break;case U:return e=St(12,a,t,l|2),e.elementType=U,e.lanes=r,e;case ce:return e=St(13,a,t,l),e.elementType=ce,e.lanes=r,e;case ge:return e=St(19,a,t,l),e.elementType=ge,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:c=10;break e;case K:c=9;break e;case ue:c=11;break e;case F:c=14;break e;case W:c=16,n=null;break e}c=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=St(c,a,t,l),t.elementType=e,t.type=n,t.lanes=r,t}function rn(e,t,a,n){return e=St(7,e,n,t),e.lanes=a,e}function Nu(e,t,a){return e=St(6,e,null,t),e.lanes=a,e}function Ic(e){var t=St(18,null,null,0);return t.stateNode=e,t}function Mu(e,t,a){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pc=new WeakMap;function Dt(e,t){if(typeof e=="object"&&e!==null){var a=Pc.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Is(t)},Pc.set(e,t),t)}return{value:e,source:t,stack:Is(t)}}var Nn=[],Mn=0,Ci=null,kl=0,Nt=[],Mt=0,Ta=null,$t=1,Wt="";function ra(e,t){Nn[Mn++]=kl,Nn[Mn++]=Ci,Ci=e,kl=t}function ef(e,t,a){Nt[Mt++]=$t,Nt[Mt++]=Wt,Nt[Mt++]=Ta,Ta=e;var n=$t;e=Wt;var l=32-bt(n)-1;n&=~(1<<l),a+=1;var r=32-bt(t)+l;if(30<r){var c=l-l%5;r=(n&(1<<c)-1).toString(32),n>>=c,l-=c,$t=1<<32-bt(t)+l|a<<l|n,Wt=r+e}else $t=1<<r|a<<l|n,Wt=e}function Uu(e){e.return!==null&&(ra(e,1),ef(e,1,0))}function qu(e){for(;e===Ci;)Ci=Nn[--Mn],Nn[Mn]=null,kl=Nn[--Mn],Nn[Mn]=null;for(;e===Ta;)Ta=Nt[--Mt],Nt[Mt]=null,Wt=Nt[--Mt],Nt[Mt]=null,$t=Nt[--Mt],Nt[Mt]=null}function tf(e,t){Nt[Mt++]=$t,Nt[Mt++]=Wt,Nt[Mt++]=Ta,$t=t.id,Wt=t.overflow,Ta=e}var tt=null,De=null,ye=!1,ja=null,Ut=!1,Lu=Error(o(519));function Ra(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw El(Dt(t,e)),Lu}function af(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[et]=e,t[ct]=n,a){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(a=0;a<Zl.length;a++)me(Zl[a],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),pc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),yc(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||bm(t.textContent,a)?(n.popover!=null&&(me("beforetoggle",t),me("toggle",t)),n.onScroll!=null&&me("scroll",t),n.onScrollEnd!=null&&me("scrollend",t),n.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Ra(e,!0)}function nf(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:tt=tt.return}}function Un(e){if(e!==tt)return!1;if(!ye)return nf(e),ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ns(e.type,e.memoizedProps)),a=!a),a&&De&&Ra(e),nf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));De=Am(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));De=Am(e)}else t===27?(t=De,Ga(e.type)?(e=os,os=null,De=e):De=t):De=tt?Lt(e.stateNode.nextSibling):null;return!0}function un(){De=tt=null,ye=!1}function Hu(){var e=ja;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),ja=null),e}function El(e){ja===null?ja=[e]:ja.push(e)}var Bu=S(null),on=null,ua=null;function Aa(e,t,a){V(Bu,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=Bu.current,M(Bu)}function Yu(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Gu(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var c=l.child;r=r.firstContext;e:for(;r!==null;){var d=r;r=l;for(var v=0;v<t.length;v++)if(d.context===t[v]){r.lanes|=a,d=r.alternate,d!==null&&(d.lanes|=a),Yu(r.return,a,e),n||(c=null);break e}r=d.next}}else if(l.tag===18){if(c=l.return,c===null)throw Error(o(341));c.lanes|=a,r=c.alternate,r!==null&&(r.lanes|=a),Yu(c,a,e),c=null}else c=l.child;if(c!==null)c.return=l;else for(c=l;c!==null;){if(c===e){c=null;break}if(l=c.sibling,l!==null){l.return=c.return,c=l;break}c=c.return}l=c}}function qn(e,t,a,n){e=null;for(var l=t,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var c=l.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var d=l.type;xt(l.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(l===Se.current){if(c=l.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Fl):e=[Fl])}l=l.return}e!==null&&Gu(t,e,a,n),t.flags|=262144}function Di(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sn(e){on=e,ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return lf(on,e)}function Ni(e,t){return on===null&&sn(e),lf(e,t)}function lf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ua===null){if(e===null)throw Error(o(308));ua=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ua=ua.next=t;return a}var Bg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Yg=i.unstable_scheduleCallback,Gg=i.unstable_NormalPriority,Xe={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vu(){return{controller:new Bg,data:new Map,refCount:0}}function wl(e){e.refCount--,e.refCount===0&&Yg(Gg,function(){e.controller.abort()})}var Tl=null,Xu=0,Ln=0,Hn=null;function Vg(e,t){if(Tl===null){var a=Tl=[];Xu=0,Ln=Jo(),Hn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Xu++,t.then(rf,rf),t}function rf(){if(--Xu===0&&Tl!==null){Hn!==null&&(Hn.status="fulfilled");var e=Tl;Tl=null,Ln=0,Hn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Xg(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var uf=O.S;O.S=function(e,t){Xd=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Vg(e,t),uf!==null&&uf(e,t)};var cn=S(null);function Qu(){var e=cn.current;return e!==null?e:Oe.pooledCache}function Mi(e,t){t===null?V(cn,cn.current):V(cn,t.pool)}function of(){var e=Qu();return e===null?null:{parent:Xe._currentValue,pool:e}}var Bn=Error(o(460)),Zu=Error(o(474)),Ui=Error(o(542)),qi={then:function(){}};function sf(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(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,df(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=n}},function(n){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,df(e),e}throw dn=t,Bn}}function fn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dn=a,Bn):a}}var dn=null;function ff(){if(dn===null)throw Error(o(459));var e=dn;return dn=null,e}function df(e){if(e===Bn||e===Ui)throw Error(o(483))}var Yn=null,jl=0;function Li(e){var t=jl;return jl+=1,Yn===null&&(Yn=[]),cf(Yn,e,t)}function Rl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function mf(e){function t(E,x){if(e){var T=E.deletions;T===null?(E.deletions=[x],E.flags|=16):T.push(x)}}function a(E,x){if(!e)return null;for(;x!==null;)t(E,x),x=x.sibling;return null}function n(E){for(var x=new Map;E!==null;)E.key!==null?x.set(E.key,E):x.set(E.index,E),E=E.sibling;return x}function l(E,x){return E=ia(E,x),E.index=0,E.sibling=null,E}function r(E,x,T){return E.index=T,e?(T=E.alternate,T!==null?(T=T.index,T<x?(E.flags|=67108866,x):T):(E.flags|=67108866,x)):(E.flags|=1048576,x)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function d(E,x,T,C){return x===null||x.tag!==6?(x=Nu(T,E.mode,C),x.return=E,x):(x=l(x,T),x.return=E,x)}function v(E,x,T,C){var I=T.type;return I===H?z(E,x,T.props.children,C,T.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===W&&fn(I)===x.type)?(x=l(x,T.props),Rl(x,T),x.return=E,x):(x=Oi(T.type,T.key,T.props,null,E.mode,C),Rl(x,T),x.return=E,x)}function j(E,x,T,C){return x===null||x.tag!==4||x.stateNode.containerInfo!==T.containerInfo||x.stateNode.implementation!==T.implementation?(x=Mu(T,E.mode,C),x.return=E,x):(x=l(x,T.children||[]),x.return=E,x)}function z(E,x,T,C,I){return x===null||x.tag!==7?(x=rn(T,E.mode,C,I),x.return=E,x):(x=l(x,T),x.return=E,x)}function D(E,x,T){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Nu(""+x,E.mode,T),x.return=E,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:return T=Oi(x.type,x.key,x.props,null,E.mode,T),Rl(T,x),T.return=E,T;case L:return x=Mu(x,E.mode,T),x.return=E,x;case W:return x=fn(x),D(E,x,T)}if(Me(x)||Ce(x))return x=rn(x,E.mode,T,null),x.return=E,x;if(typeof x.then=="function")return D(E,Li(x),T);if(x.$$typeof===X)return D(E,Ni(E,x),T);Hi(E,x)}return null}function R(E,x,T,C){var I=x!==null?x.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return I!==null?null:d(E,x,""+T,C);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Y:return T.key===I?v(E,x,T,C):null;case L:return T.key===I?j(E,x,T,C):null;case W:return T=fn(T),R(E,x,T,C)}if(Me(T)||Ce(T))return I!==null?null:z(E,x,T,C,null);if(typeof T.then=="function")return R(E,x,Li(T),C);if(T.$$typeof===X)return R(E,x,Ni(E,T),C);Hi(E,T)}return null}function A(E,x,T,C,I){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return E=E.get(T)||null,d(x,E,""+C,I);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Y:return E=E.get(C.key===null?T:C.key)||null,v(x,E,C,I);case L:return E=E.get(C.key===null?T:C.key)||null,j(x,E,C,I);case W:return C=fn(C),A(E,x,T,C,I)}if(Me(C)||Ce(C))return E=E.get(T)||null,z(x,E,C,I,null);if(typeof C.then=="function")return A(E,x,T,Li(C),I);if(C.$$typeof===X)return A(E,x,T,Ni(x,C),I);Hi(x,C)}return null}function Z(E,x,T,C){for(var I=null,ve=null,$=x,re=x=0,pe=null;$!==null&&re<T.length;re++){$.index>re?(pe=$,$=null):pe=$.sibling;var be=R(E,$,T[re],C);if(be===null){$===null&&($=pe);break}e&&$&&be.alternate===null&&t(E,$),x=r(be,x,re),ve===null?I=be:ve.sibling=be,ve=be,$=pe}if(re===T.length)return a(E,$),ye&&ra(E,re),I;if($===null){for(;re<T.length;re++)$=D(E,T[re],C),$!==null&&(x=r($,x,re),ve===null?I=$:ve.sibling=$,ve=$);return ye&&ra(E,re),I}for($=n($);re<T.length;re++)pe=A($,E,re,T[re],C),pe!==null&&(e&&pe.alternate!==null&&$.delete(pe.key===null?re:pe.key),x=r(pe,x,re),ve===null?I=pe:ve.sibling=pe,ve=pe);return e&&$.forEach(function(Ka){return t(E,Ka)}),ye&&ra(E,re),I}function ee(E,x,T,C){if(T==null)throw Error(o(151));for(var I=null,ve=null,$=x,re=x=0,pe=null,be=T.next();$!==null&&!be.done;re++,be=T.next()){$.index>re?(pe=$,$=null):pe=$.sibling;var Ka=R(E,$,be.value,C);if(Ka===null){$===null&&($=pe);break}e&&$&&Ka.alternate===null&&t(E,$),x=r(Ka,x,re),ve===null?I=Ka:ve.sibling=Ka,ve=Ka,$=pe}if(be.done)return a(E,$),ye&&ra(E,re),I;if($===null){for(;!be.done;re++,be=T.next())be=D(E,be.value,C),be!==null&&(x=r(be,x,re),ve===null?I=be:ve.sibling=be,ve=be);return ye&&ra(E,re),I}for($=n($);!be.done;re++,be=T.next())be=A($,E,re,be.value,C),be!==null&&(e&&be.alternate!==null&&$.delete(be.key===null?re:be.key),x=r(be,x,re),ve===null?I=be:ve.sibling=be,ve=be);return e&&$.forEach(function(t_){return t(E,t_)}),ye&&ra(E,re),I}function Ae(E,x,T,C){if(typeof T=="object"&&T!==null&&T.type===H&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case Y:e:{for(var I=T.key;x!==null;){if(x.key===I){if(I=T.type,I===H){if(x.tag===7){a(E,x.sibling),C=l(x,T.props.children),C.return=E,E=C;break e}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===W&&fn(I)===x.type){a(E,x.sibling),C=l(x,T.props),Rl(C,T),C.return=E,E=C;break e}a(E,x);break}else t(E,x);x=x.sibling}T.type===H?(C=rn(T.props.children,E.mode,C,T.key),C.return=E,E=C):(C=Oi(T.type,T.key,T.props,null,E.mode,C),Rl(C,T),C.return=E,E=C)}return c(E);case L:e:{for(I=T.key;x!==null;){if(x.key===I)if(x.tag===4&&x.stateNode.containerInfo===T.containerInfo&&x.stateNode.implementation===T.implementation){a(E,x.sibling),C=l(x,T.children||[]),C.return=E,E=C;break e}else{a(E,x);break}else t(E,x);x=x.sibling}C=Mu(T,E.mode,C),C.return=E,E=C}return c(E);case W:return T=fn(T),Ae(E,x,T,C)}if(Me(T))return Z(E,x,T,C);if(Ce(T)){if(I=Ce(T),typeof I!="function")throw Error(o(150));return T=I.call(T),ee(E,x,T,C)}if(typeof T.then=="function")return Ae(E,x,Li(T),C);if(T.$$typeof===X)return Ae(E,x,Ni(E,T),C);Hi(E,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,x!==null&&x.tag===6?(a(E,x.sibling),C=l(x,T),C.return=E,E=C):(a(E,x),C=Nu(T,E.mode,C),C.return=E,E=C),c(E)):a(E,x)}return function(E,x,T,C){try{jl=0;var I=Ae(E,x,T,C);return Yn=null,I}catch($){if($===Bn||$===Ui)throw $;var ve=St(29,$,null,E.mode);return ve.lanes=C,ve.return=E,ve}finally{}}}var mn=mf(!0),hf=mf(!1),za=!1;function Ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ju(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 Oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(xe&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=zi(e),Wc(e,null,a),t}return Ai(e,n,t,a),zi(e)}function Al(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,lc(e,a)}}function $u(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=c:r=r.next=c,a=a.next}while(a!==null);r===null?l=r=t:r=r.next=t}else l=r=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Wu=!1;function zl(){if(Wu){var e=Hn;if(e!==null)throw e}}function Ol(e,t,a,n){Wu=!1;var l=e.updateQueue;za=!1;var r=l.firstBaseUpdate,c=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var v=d,j=v.next;v.next=null,c===null?r=j:c.next=j,c=v;var z=e.alternate;z!==null&&(z=z.updateQueue,d=z.lastBaseUpdate,d!==c&&(d===null?z.firstBaseUpdate=j:d.next=j,z.lastBaseUpdate=v))}if(r!==null){var D=l.baseState;c=0,z=j=v=null,d=r;do{var R=d.lane&-536870913,A=R!==d.lane;if(A?(he&R)===R:(n&R)===R){R!==0&&R===Ln&&(Wu=!0),z!==null&&(z=z.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Z=e,ee=d;R=t;var Ae=a;switch(ee.tag){case 1:if(Z=ee.payload,typeof Z=="function"){D=Z.call(Ae,D,R);break e}D=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=ee.payload,R=typeof Z=="function"?Z.call(Ae,D,R):Z,R==null)break e;D=k({},D,R);break e;case 2:za=!0}}R=d.callback,R!==null&&(e.flags|=64,A&&(e.flags|=8192),A=l.callbacks,A===null?l.callbacks=[R]:A.push(R))}else A={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},z===null?(j=z=A,v=D):z=z.next=A,c|=R;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;A=d,d=A.next,A.next=null,l.lastBaseUpdate=A,l.shared.pending=null}}while(!0);z===null&&(v=D),l.baseState=v,l.firstBaseUpdate=j,l.lastBaseUpdate=z,r===null&&(l.shared.lanes=0),qa|=c,e.lanes=c,e.memoizedState=D}}function pf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function gf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)pf(a[e],t)}var Gn=S(null),Bi=S(0);function yf(e,t){e=ya,V(Bi,e),V(Gn,t),ya=e|t.baseLanes}function Fu(){V(Bi,ya),V(Gn,Gn.current)}function Iu(){ya=Bi.current,M(Gn),M(Bi)}var kt=S(null),qt=null;function Da(e){var t=e.alternate;V(Ye,Ye.current&1),V(kt,e),qt===null&&(t===null||Gn.current!==null||t.memoizedState!==null)&&(qt=e)}function Pu(e){V(Ye,Ye.current),V(kt,e),qt===null&&(qt=e)}function _f(e){e.tag===22?(V(Ye,Ye.current),V(kt,e),qt===null&&(qt=e)):Na()}function Na(){V(Ye,Ye.current),V(kt,kt.current)}function Et(e){M(kt),qt===e&&(qt=null),M(Ye)}var Ye=S(0);function Yi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||rs(a)||us(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 sa=0,ie=null,je=null,Qe=null,Gi=!1,Vn=!1,hn=!1,Vi=0,Cl=0,Xn=null,Qg=0;function Le(){throw Error(o(321))}function eo(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function to(e,t,a,n,l,r){return sa=r,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?td:yo,hn=!1,r=a(n,l),hn=!1,Vn&&(r=bf(t,a,n,l)),vf(e),r}function vf(e){O.H=Ml;var t=je!==null&&je.next!==null;if(sa=0,Qe=je=ie=null,Gi=!1,Cl=0,Xn=null,t)throw Error(o(300));e===null||Ze||(e=e.dependencies,e!==null&&Di(e)&&(Ze=!0))}function bf(e,t,a,n){ie=e;var l=0;do{if(Vn&&(Xn=null),Cl=0,Vn=!1,25<=l)throw Error(o(301));if(l+=1,Qe=je=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}O.H=ad,r=t(a,n)}while(Vn);return r}function Zg(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Dl(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ie.flags|=1024),t}function ao(){var e=Vi!==0;return Vi=0,e}function no(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function lo(e){if(Gi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Gi=!1}sa=0,Qe=je=ie=null,Vn=!1,Cl=Vi=0,Xn=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ie.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(je===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Qe===null?ie.memoizedState:Qe.next;if(t!==null)Qe=t,je=e;else{if(e===null)throw ie.alternate===null?Error(o(467)):Error(o(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Qe===null?ie.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dl(e){var t=Cl;return Cl+=1,Xn===null&&(Xn=[]),e=cf(Xn,e,t),t=ie,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?td:yo),e}function Qi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Dl(e);if(e.$$typeof===X)return at(e)}throw Error(o(438,String(e)))}function io(e){var t=null,a=ie.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ie.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xi(),ie.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Pe;return t.index++,a}function ca(e,t){return typeof t=="function"?t(e):t}function Zi(e){var t=Ge();return ro(t,je,e)}function ro(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var l=e.baseQueue,r=n.pending;if(r!==null){if(l!==null){var c=l.next;l.next=r.next,r.next=c}t.baseQueue=l=r,n.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var d=c=null,v=null,j=t,z=!1;do{var D=j.lane&-536870913;if(D!==j.lane?(he&D)===D:(sa&D)===D){var R=j.revertLane;if(R===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),D===Ln&&(z=!0);else if((sa&R)===R){j=j.next,R===Ln&&(z=!0);continue}else D={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},v===null?(d=v=D,c=r):v=v.next=D,ie.lanes|=R,qa|=R;D=j.action,hn&&a(r,D),r=j.hasEagerState?j.eagerState:a(r,D)}else R={lane:D,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},v===null?(d=v=R,c=r):v=v.next=R,ie.lanes|=D,qa|=D;j=j.next}while(j!==null&&j!==t);if(v===null?c=r:v.next=d,!xt(r,e.memoizedState)&&(Ze=!0,z&&(a=Hn,a!==null)))throw a;e.memoizedState=r,e.baseState=c,e.baseQueue=v,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function uo(e){var t=Ge(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,l=a.pending,r=t.memoizedState;if(l!==null){a.pending=null;var c=l=l.next;do r=e(r,c.action),c=c.next;while(c!==l);xt(r,t.memoizedState)||(Ze=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function xf(e,t,a){var n=ie,l=Ge(),r=ye;if(r){if(a===void 0)throw Error(o(407));a=a()}else a=t();var c=!xt((je||l).memoizedState,a);if(c&&(l.memoizedState=a,Ze=!0),l=l.queue,co(Ef.bind(null,n,l,e),[e]),l.getSnapshot!==t||c||Qe!==null&&Qe.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},kf.bind(null,n,l,a,t),null),Oe===null)throw Error(o(349));r||(sa&127)!==0||Sf(n,t,a)}return a}function Sf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ie.updateQueue,t===null?(t=Xi(),ie.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function kf(e,t,a,n){t.value=a,t.getSnapshot=n,wf(t)&&Tf(e)}function Ef(e,t,a){return a(function(){wf(t)&&Tf(e)})}function wf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Tf(e){var t=ln(e,2);t!==null&&gt(t,e,2)}function oo(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),hn){ka(!0);try{a()}finally{ka(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function jf(e,t,a,n){return e.baseState=a,ro(e,je,typeof n=="function"?n:ca)}function Kg(e,t,a,n,l){if($i(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){r.listeners.push(c)}};O.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Rf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Rf(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var r=O.T,c={};O.T=c;try{var d=a(l,n),v=O.S;v!==null&&v(c,d),Af(e,t,d)}catch(j){so(e,t,j)}finally{r!==null&&c.types!==null&&(r.types=c.types),O.T=r}}else try{r=a(l,n),Af(e,t,r)}catch(j){so(e,t,j)}}function Af(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){zf(e,t,n)},function(n){return so(e,t,n)}):zf(e,t,a)}function zf(e,t,a){t.status="fulfilled",t.value=a,Of(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Rf(e,a)))}function so(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Of(t),t=t.next;while(t!==n)}e.action=null}function Of(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cf(e,t){return t}function Df(e,t){if(ye){var a=Oe.formState;if(a!==null){e:{var n=ie;if(ye){if(De){t:{for(var l=De,r=Ut;l.nodeType!==8;){if(!r){l=null;break t}if(l=Lt(l.nextSibling),l===null){l=null;break t}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){De=Lt(l.nextSibling),n=l.data==="F!";break e}}Ra(n)}n=!1}n&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:t},a.queue=n,a=If.bind(null,ie,n),n.dispatch=a,n=oo(!1),r=go.bind(null,ie,!1,n.queue),n=st(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=Kg.bind(null,ie,l,r,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function Nf(e){var t=Ge();return Mf(t,je,e)}function Mf(e,t,a){if(t=ro(e,t,Cf)[0],e=Zi(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Dl(t)}catch(c){throw c===Bn?Ui:c}else n=t;t=Ge();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(ie.flags|=2048,Qn(9,{destroy:void 0},Jg.bind(null,l,a),null)),[n,r,e]}function Jg(e,t){e.action=t}function Uf(e){var t=Ge(),a=je;if(a!==null)return Mf(t,a,e);Ge(),t=t.memoizedState,a=Ge();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Qn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ie.updateQueue,t===null&&(t=Xi(),ie.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function qf(){return Ge().memoizedState}function Ki(e,t,a,n){var l=st();ie.flags|=e,l.memoizedState=Qn(1|t,{destroy:void 0},a,n===void 0?null:n)}function Ji(e,t,a,n){var l=Ge();n=n===void 0?null:n;var r=l.memoizedState.inst;je!==null&&n!==null&&eo(n,je.memoizedState.deps)?l.memoizedState=Qn(t,r,a,n):(ie.flags|=e,l.memoizedState=Qn(1|t,r,a,n))}function Lf(e,t){Ki(8390656,8,e,t)}function co(e,t){Ji(2048,8,e,t)}function $g(e){ie.flags|=4;var t=ie.updateQueue;if(t===null)t=Xi(),ie.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Hf(e){var t=Ge().memoizedState;return $g({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Bf(e,t){return Ji(4,2,e,t)}function Yf(e,t){return Ji(4,4,e,t)}function Gf(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 Vf(e,t,a){a=a!=null?a.concat([e]):null,Ji(4,4,Gf.bind(null,t,e),a)}function fo(){}function Xf(e,t){var a=Ge();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&eo(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Qf(e,t){var a=Ge();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&eo(t,n[1]))return n[0];if(n=e(),hn){ka(!0);try{e()}finally{ka(!1)}}return a.memoizedState=[n,t],n}function mo(e,t,a){return a===void 0||(sa&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Zd(),ie.lanes|=e,qa|=e,a)}function Zf(e,t,a,n){return xt(a,t)?a:Gn.current!==null?(e=mo(e,a,n),xt(e,t)||(Ze=!0),e):(sa&42)===0||(sa&1073741824)!==0&&(he&261930)===0?(Ze=!0,e.memoizedState=a):(e=Zd(),ie.lanes|=e,qa|=e,t)}function Kf(e,t,a,n,l){var r=G.p;G.p=r!==0&&8>r?r:8;var c=O.T,d={};O.T=d,go(e,!1,t,a);try{var v=l(),j=O.S;if(j!==null&&j(d,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var z=Xg(v,n);Nl(e,t,z,jt(e))}else Nl(e,t,n,jt(e))}catch(D){Nl(e,t,{then:function(){},status:"rejected",reason:D},jt())}finally{G.p=r,c!==null&&d.types!==null&&(c.types=d.types),O.T=c}}function Wg(){}function ho(e,t,a,n){if(e.tag!==5)throw Error(o(476));var l=Jf(e).queue;Kf(e,l,t,te,a===null?Wg:function(){return $f(e),a(n)})}function Jf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:te},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $f(e){var t=Jf(e);t.next===null&&(t=e.alternate.memoizedState),Nl(e,t.next.queue,{},jt())}function po(){return at(Fl)}function Wf(){return Ge().memoizedState}function Ff(){return Ge().memoizedState}function Fg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=Oa(a);var n=Ca(t,e,a);n!==null&&(gt(n,t,a),Al(n,t,a)),t={cache:Vu()},e.payload=t;return}t=t.return}}function Ig(e,t,a){var n=jt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$i(e)?Pf(t,a):(a=Cu(e,t,a,n),a!==null&&(gt(a,e,n),ed(a,t,n)))}function If(e,t,a){var n=jt();Nl(e,t,a,n)}function Nl(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($i(e))Pf(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var c=t.lastRenderedState,d=r(c,a);if(l.hasEagerState=!0,l.eagerState=d,xt(d,c))return Ai(e,t,l,0),Oe===null&&Ri(),!1}catch{}finally{}if(a=Cu(e,t,l,n),a!==null)return gt(a,e,n),ed(a,t,n),!0}return!1}function go(e,t,a,n){if(n={lane:2,revertLane:Jo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},$i(e)){if(t)throw Error(o(479))}else t=Cu(e,a,n,2),t!==null&&gt(t,e,2)}function $i(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function Pf(e,t){Vn=Gi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ed(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,lc(e,a)}}var Ml={readContext:at,use:Qi,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};Ml.useEffectEvent=Le;var td={readContext:at,use:Qi,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Lf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ki(4194308,4,Gf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){Ki(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var n=e();if(hn){ka(!0);try{e()}finally{ka(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=st();if(a!==void 0){var l=a(t);if(hn){ka(!0);try{a(t)}finally{ka(!1)}}}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=Ig.bind(null,ie,e),[n.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=oo(e);var t=e.queue,a=If.bind(null,ie,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:fo,useDeferredValue:function(e,t){var a=st();return mo(a,e,t)},useTransition:function(){var e=oo(!1);return e=Kf.bind(null,ie,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ie,l=st();if(ye){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Oe===null)throw Error(o(349));(he&127)!==0||Sf(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,Lf(Ef.bind(null,n,r,e),[e]),n.flags|=2048,Qn(9,{destroy:void 0},kf.bind(null,n,r,a,t),null),a},useId:function(){var e=st(),t=Oe.identifierPrefix;if(ye){var a=Wt,n=$t;a=(n&~(1<<32-bt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Vi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Qg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:po,useFormState:Df,useActionState:Df,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=go.bind(null,ie,!0,a),a.dispatch=t,[e,t]},useMemoCache:io,useCacheRefresh:function(){return st().memoizedState=Fg.bind(null,ie)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((xe&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},yo={readContext:at,use:Qi,useCallback:Xf,useContext:at,useEffect:co,useImperativeHandle:Vf,useInsertionEffect:Bf,useLayoutEffect:Yf,useMemo:Qf,useReducer:Zi,useRef:qf,useState:function(){return Zi(ca)},useDebugValue:fo,useDeferredValue:function(e,t){var a=Ge();return Zf(a,je.memoizedState,e,t)},useTransition:function(){var e=Zi(ca)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:xf,useId:Wf,useHostTransitionStatus:po,useFormState:Nf,useActionState:Nf,useOptimistic:function(e,t){var a=Ge();return jf(a,je,e,t)},useMemoCache:io,useCacheRefresh:Ff};yo.useEffectEvent=Hf;var ad={readContext:at,use:Qi,useCallback:Xf,useContext:at,useEffect:co,useImperativeHandle:Vf,useInsertionEffect:Bf,useLayoutEffect:Yf,useMemo:Qf,useReducer:uo,useRef:qf,useState:function(){return uo(ca)},useDebugValue:fo,useDeferredValue:function(e,t){var a=Ge();return je===null?mo(a,e,t):Zf(a,je.memoizedState,e,t)},useTransition:function(){var e=uo(ca)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:xf,useId:Wf,useHostTransitionStatus:po,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var a=Ge();return je!==null?jf(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:io,useCacheRefresh:Ff};ad.useEffectEvent=Hf;function _o(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:k({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var vo={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=jt(),l=Oa(n);l.payload=t,a!=null&&(l.callback=a),t=Ca(e,l,n),t!==null&&(gt(t,e,n),Al(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=jt(),l=Oa(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Ca(e,l,n),t!==null&&(gt(t,e,n),Al(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),n=Oa(a);n.tag=2,t!=null&&(n.callback=t),t=Ca(e,n,a),t!==null&&(gt(t,e,a),Al(t,e,a))}};function nd(e,t,a,n,l,r,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,c):t.prototype&&t.prototype.isPureReactComponent?!xl(a,n)||!xl(l,r):!0}function ld(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&vo.enqueueReplaceState(t,t.state,null)}function pn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=k({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function id(e){ji(e)}function rd(e){console.error(e)}function ud(e){ji(e)}function Wi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function od(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function bo(e,t,a){return a=Oa(a),a.tag=3,a.payload={element:null},a.callback=function(){Wi(e,t)},a}function sd(e){return e=Oa(e),e.tag=3,e}function cd(e,t,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var r=n.value;e.payload=function(){return l(r)},e.callback=function(){od(t,a,n)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){od(t,a,n),typeof l!="function"&&(La===null?La=new Set([this]):La.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function Pg(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&qn(t,a,l,!0),a=kt.current,a!==null){switch(a.tag){case 31:case 13:return qt===null?or():a.alternate===null&&He===0&&(He=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===qi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Qo(e,n,l)),!1;case 22:return a.flags|=65536,n===qi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Qo(e,n,l)),!1}throw Error(o(435,a.tag))}return Qo(e,n,l),or(),!1}if(ye)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Lu&&(e=Error(o(422),{cause:n}),El(Dt(e,a)))):(n!==Lu&&(t=Error(o(423),{cause:n}),El(Dt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Dt(n,a),l=bo(e.stateNode,n,l),$u(e,l),He!==4&&(He=2)),!1;var r=Error(o(520),{cause:n});if(r=Dt(r,a),Vl===null?Vl=[r]:Vl.push(r),He!==4&&(He=2),t===null)return!0;n=Dt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=bo(a.stateNode,n,e),$u(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(La===null||!La.has(r))))return a.flags|=65536,l&=-l,a.lanes|=l,l=sd(l),cd(l,e,a,n),$u(a,l),!1}a=a.return}while(a!==null);return!1}var xo=Error(o(461)),Ze=!1;function nt(e,t,a,n){t.child=e===null?hf(t,null,a,n):mn(t,e.child,a,n)}function fd(e,t,a,n,l){a=a.render;var r=t.ref;if("ref"in n){var c={};for(var d in n)d!=="ref"&&(c[d]=n[d])}else c=n;return sn(t),n=to(e,t,a,c,r,l),d=ao(),e!==null&&!Ze?(no(e,t,l),fa(e,t,l)):(ye&&d&&Uu(t),t.flags|=1,nt(e,t,n,l),t.child)}function dd(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Du(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,md(e,t,r,n,l)):(e=Oi(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Ao(e,l)){var c=r.memoizedProps;if(a=a.compare,a=a!==null?a:xl,a(c,n)&&e.ref===t.ref)return fa(e,t,l)}return t.flags|=1,e=ia(r,n),e.ref=t.ref,e.return=t,t.child=e}function md(e,t,a,n,l){if(e!==null){var r=e.memoizedProps;if(xl(r,n)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=n=r,Ao(e,l))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,fa(e,t,l)}return So(e,t,a,n,l)}function hd(e,t,a,n){var l=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~r}else n=0,t.child=null;return pd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mi(t,r!==null?r.cachePool:null),r!==null?yf(t,r):Fu(),_f(t);else return n=t.lanes=536870912,pd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Mi(t,r.cachePool),yf(t,r),Na(),t.memoizedState=null):(e!==null&&Mi(t,null),Fu(),Na());return nt(e,t,l,a),t.child}function Ul(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pd(e,t,a,n,l){var r=Qu();return r=r===null?null:{parent:Xe._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Mi(t,null),Fu(),_f(t),e!==null&&qn(e,t,n,!0),t.childLanes=l,null}function Fi(e,t){return t=Pi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gd(e,t,a){return mn(t,e.child,null,a),e=Fi(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function ey(e,t,a){var n=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(n.mode==="hidden")return e=Fi(t,n),t.lanes=536870912,Ul(null,e);if(Pu(t),(e=De)?(e=Rm(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=Ic(e),a.return=t,t.child=a,tt=t,De=null)):e=null,e===null)throw Ra(t);return t.lanes=536870912,null}return Fi(t,n)}var r=e.memoizedState;if(r!==null){var c=r.dehydrated;if(Pu(t),l)if(t.flags&256)t.flags&=-257,t=gd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ze||qn(e,t,a,!1),l=(a&e.childLanes)!==0,Ze||l){if(n=Oe,n!==null&&(c=ic(n,a),c!==0&&c!==r.retryLane))throw r.retryLane=c,ln(e,c),gt(n,e,c),xo;or(),t=gd(e,t,a)}else e=r.treeContext,De=Lt(c.nextSibling),tt=t,ye=!0,ja=null,Ut=!1,e!==null&&tf(t,e),t=Fi(t,n),t.flags|=4096;return t}return e=ia(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ii(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(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function So(e,t,a,n,l){return sn(t),a=to(e,t,a,n,void 0,l),n=ao(),e!==null&&!Ze?(no(e,t,l),fa(e,t,l)):(ye&&n&&Uu(t),t.flags|=1,nt(e,t,a,l),t.child)}function yd(e,t,a,n,l,r){return sn(t),t.updateQueue=null,a=bf(t,n,a,l),vf(e),n=ao(),e!==null&&!Ze?(no(e,t,r),fa(e,t,r)):(ye&&n&&Uu(t),t.flags|=1,nt(e,t,a,r),t.child)}function _d(e,t,a,n,l){if(sn(t),t.stateNode===null){var r=Dn,c=a.contextType;typeof c=="object"&&c!==null&&(r=at(c)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=vo,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},Ku(t),c=a.contextType,r.context=typeof c=="object"&&c!==null?at(c):Dn,r.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(_o(t,a,c,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(c=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),c!==r.state&&vo.enqueueReplaceState(r,r.state,null),Ol(t,n,r,l),zl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var d=t.memoizedProps,v=pn(a,d);r.props=v;var j=r.context,z=a.contextType;c=Dn,typeof z=="object"&&z!==null&&(c=at(z));var D=a.getDerivedStateFromProps;z=typeof D=="function"||typeof r.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,z||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d||j!==c)&&ld(t,r,n,c),za=!1;var R=t.memoizedState;r.state=R,Ol(t,n,r,l),zl(),j=t.memoizedState,d||R!==j||za?(typeof D=="function"&&(_o(t,a,D,n),j=t.memoizedState),(v=za||nd(t,a,v,n,R,j,c))?(z||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=j),r.props=n,r.state=j,r.context=c,n=v):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,Ju(e,t),c=t.memoizedProps,z=pn(a,c),r.props=z,D=t.pendingProps,R=r.context,j=a.contextType,v=Dn,typeof j=="object"&&j!==null&&(v=at(j)),d=a.getDerivedStateFromProps,(j=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(c!==D||R!==v)&&ld(t,r,n,v),za=!1,R=t.memoizedState,r.state=R,Ol(t,n,r,l),zl();var A=t.memoizedState;c!==D||R!==A||za||e!==null&&e.dependencies!==null&&Di(e.dependencies)?(typeof d=="function"&&(_o(t,a,d,n),A=t.memoizedState),(z=za||nd(t,a,z,n,R,A,v)||e!==null&&e.dependencies!==null&&Di(e.dependencies))?(j||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,A,v),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,A,v)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=A),r.props=n,r.state=A,r.context=v,n=z):(typeof r.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,Ii(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=mn(t,e.child,null,l),t.child=mn(t,null,a,l)):nt(e,t,a,l),t.memoizedState=r.state,e=t.child):e=fa(e,t,l),e}function vd(e,t,a,n){return un(),t.flags|=256,nt(e,t,a,n),t.child}var ko={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Eo(e){return{baseLanes:e,cachePool:of()}}function wo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function bd(e,t,a){var n=t.pendingProps,l=!1,r=(t.flags&128)!==0,c;if((c=r)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(l=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(l?Da(t):Na(),(e=De)?(e=Rm(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=Ic(e),a.return=t,t.child=a,tt=t,De=null)):e=null,e===null)throw Ra(t);return us(e)?t.lanes=32:t.lanes=536870912,null}var d=n.children;return n=n.fallback,l?(Na(),l=t.mode,d=Pi({mode:"hidden",children:d},l),n=rn(n,l,a,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=Eo(a),n.childLanes=wo(e,c,a),t.memoizedState=ko,Ul(null,n)):(Da(t),To(t,d))}var v=e.memoizedState;if(v!==null&&(d=v.dehydrated,d!==null)){if(r)t.flags&256?(Da(t),t.flags&=-257,t=jo(e,t,a)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),d=n.fallback,l=t.mode,n=Pi({mode:"visible",children:n.children},l),d=rn(d,l,a,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,mn(t,e.child,null,a),n=t.child,n.memoizedState=Eo(a),n.childLanes=wo(e,c,a),t.memoizedState=ko,t=Ul(null,n));else if(Da(t),us(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var j=c.dgst;c=j,n=Error(o(419)),n.stack="",n.digest=c,El({value:n,source:null,stack:null}),t=jo(e,t,a)}else if(Ze||qn(e,t,a,!1),c=(a&e.childLanes)!==0,Ze||c){if(c=Oe,c!==null&&(n=ic(c,a),n!==0&&n!==v.retryLane))throw v.retryLane=n,ln(e,n),gt(c,e,n),xo;rs(d)||or(),t=jo(e,t,a)}else rs(d)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,De=Lt(d.nextSibling),tt=t,ye=!0,ja=null,Ut=!1,e!==null&&tf(t,e),t=To(t,n.children),t.flags|=4096);return t}return l?(Na(),d=n.fallback,l=t.mode,v=e.child,j=v.sibling,n=ia(v,{mode:"hidden",children:n.children}),n.subtreeFlags=v.subtreeFlags&65011712,j!==null?d=ia(j,d):(d=rn(d,l,a,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,Ul(null,n),n=t.child,d=e.child.memoizedState,d===null?d=Eo(a):(l=d.cachePool,l!==null?(v=Xe._currentValue,l=l.parent!==v?{parent:v,pool:v}:l):l=of(),d={baseLanes:d.baseLanes|a,cachePool:l}),n.memoizedState=d,n.childLanes=wo(e,c,a),t.memoizedState=ko,Ul(e.child,n)):(Da(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function To(e,t){return t=Pi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pi(e,t){return e=St(22,e,null,t),e.lanes=0,e}function jo(e,t,a){return mn(t,e.child,null,a),e=To(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Yu(e.return,t,a)}function Ro(e,t,a,n,l,r){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:r}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=a,c.tailMode=l,c.treeForkCount=r)}function Sd(e,t,a){var n=t.pendingProps,l=n.revealOrder,r=n.tail;n=n.children;var c=Ye.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,V(Ye,c),nt(e,t,n,a),n=ye?kl:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xd(e,a,t);else if(e.tag===19)xd(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(l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&Yi(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Ro(t,!1,l,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Yi(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Ro(t,!0,a,null,r,n);break;case"together":Ro(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(qn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ao(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Di(e)))}function ty(e,t,a){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),Aa(t,Xe,e.memoizedState.cache),un();break;case 27:case 5:ol(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pu(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Da(t),t.flags|=128,null):(a&t.child.childLanes)!==0?bd(e,t,a):(Da(t),e=fa(e,t,a),e!==null?e.sibling:null);Da(t);break;case 19:var l=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(qn(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return Sd(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),V(Ye,Ye.current),n)break;return null;case 22:return t.lanes=0,hd(e,t,a,t.pendingProps);case 24:Aa(t,Xe,e.memoizedState.cache)}return fa(e,t,a)}function kd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!Ao(e,a)&&(t.flags&128)===0)return Ze=!1,ty(e,t,a);Ze=(e.flags&131072)!==0}else Ze=!1,ye&&(t.flags&1048576)!==0&&ef(t,kl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=fn(t.elementType),t.type=e,typeof e=="function")Du(e)?(n=pn(e,n),t.tag=1,t=_d(null,t,e,n,a)):(t.tag=0,t=So(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===ue){t.tag=11,t=fd(null,t,e,n,a);break e}else if(l===F){t.tag=14,t=dd(null,t,e,n,a);break e}}throw t=ut(e)||e,Error(o(306,t,""))}}return t;case 0:return So(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=pn(n,t.pendingProps),_d(e,t,n,l,a);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var r=t.memoizedState;l=r.element,Ju(e,t),Ol(t,n,null,a);var c=t.memoizedState;if(n=c.cache,Aa(t,Xe,n),n!==r.cache&&Gu(t,[Xe],a,!0),zl(),n=c.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=vd(e,t,n,a);break e}else if(n!==l){l=Dt(Error(o(424)),t),El(l),t=vd(e,t,n,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(De=Lt(e.firstChild),tt=t,ye=!0,ja=null,Ut=!0,a=hf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(un(),n===l){t=fa(e,t,a);break e}nt(e,t,n,a)}t=t.child}return t;case 26:return Ii(e,t),e===null?(a=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=a:ye||(a=t.type,e=t.pendingProps,n=pr(fe.current).createElement(a),n[et]=t,n[ct]=e,lt(n,a,e),Fe(n),t.stateNode=n):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ol(t),e===null&&ye&&(n=t.stateNode=Om(t.type,t.pendingProps,fe.current),tt=t,Ut=!0,l=De,Ga(t.type)?(os=l,De=Lt(n.firstChild)):De=l),nt(e,t,t.pendingProps.children,a),Ii(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((l=n=De)&&(n=Oy(n,t.type,t.pendingProps,Ut),n!==null?(t.stateNode=n,tt=t,De=Lt(n.firstChild),Ut=!1,l=!0):l=!1),l||Ra(t)),ol(t),l=t.type,r=t.pendingProps,c=e!==null?e.memoizedProps:null,n=r.children,ns(l,r)?n=null:c!==null&&ns(l,c)&&(t.flags|=32),t.memoizedState!==null&&(l=to(e,t,Zg,null,null,a),Fl._currentValue=l),Ii(e,t),nt(e,t,n,a),t.child;case 6:return e===null&&ye&&((e=a=De)&&(a=Cy(a,t.pendingProps,Ut),a!==null?(t.stateNode=a,tt=t,De=null,e=!0):e=!1),e||Ra(t)),null;case 13:return bd(e,t,a);case 4:return ot(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=mn(t,null,n,a):nt(e,t,n,a),t.child;case 11:return fd(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Aa(t,t.type,n.value),nt(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,sn(t),l=at(l),n=n(l),t.flags|=1,nt(e,t,n,a),t.child;case 14:return dd(e,t,t.type,t.pendingProps,a);case 15:return md(e,t,t.type,t.pendingProps,a);case 19:return Sd(e,t,a);case 31:return ey(e,t,a);case 22:return hd(e,t,a,t.pendingProps);case 24:return sn(t),n=at(Xe),e===null?(l=Qu(),l===null&&(l=Oe,r=Vu(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},Ku(t),Aa(t,Xe,l)):((e.lanes&a)!==0&&(Ju(e,t),Ol(t,null,null,a),zl()),l=e.memoizedState,r=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Aa(t,Xe,n)):(n=r.cache,Aa(t,Xe,n),n!==l.cache&&Gu(t,[Xe],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function da(e){e.flags|=4}function zo(e,t,a,n,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw dn=qi,Zu}else e.flags&=-16777217}function Ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hm(t))if(Wd())e.flags|=8192;else throw dn=qi,Zu}function er(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ac():536870912,e.lanes|=t,$n|=t)}function ql(e,t){if(!ye)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 n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function ay(e,t,a){var n=t.pendingProps;switch(qu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oa(Xe),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Un(t)?da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hu())),Ne(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(da(t),r!==null?(Ne(t),Ed(t,r)):(Ne(t),zo(t,l,null,n,a))):r?r!==e.memoizedState?(da(t),Ne(t),Ed(t,r)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&da(t),Ne(t),zo(t,l,e,n,a)),null;case 27:if(fi(t),a=fe.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&da(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}e=J.current,Un(t)?af(t):(e=Om(l,n,a),t.stateNode=e,da(t))}return Ne(t),null;case 5:if(fi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&da(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}if(r=J.current,Un(t))af(t);else{var c=pr(fe.current);switch(r){case 1:r=c.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=c.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=c.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?c.createElement(l,{is:n.is}):c.createElement(l)}}r[et]=t,r[ct]=n;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)r.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=r;e:switch(lt(r,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&da(t)}}return Ne(t),zo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&da(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=fe.current,Un(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=tt,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[et]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||bm(e.nodeValue,a)),e||Ra(t,!0)}else e=pr(e).createTextNode(n),e[et]=t,t.stateNode=e}return Ne(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Un(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[et]=t}else un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else a=Hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ne(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Un(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));l[et]=t}else un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),l=!1}else l=Hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==l&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),er(t,t.updateQueue),Ne(t),null);case 4:return Be(),e===null&&Io(t.stateNode.containerInfo),Ne(t),null;case 10:return oa(t.type),Ne(t),null;case 19:if(M(Ye),n=t.memoizedState,n===null)return Ne(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)ql(n,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Yi(e),r!==null){for(t.flags|=128,ql(n,!1),e=r.updateQueue,t.updateQueue=e,er(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Fc(a,e),a=a.sibling;return V(Ye,Ye.current&1|2),ye&&ra(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&_t()>ir&&(t.flags|=128,l=!0,ql(n,!1),t.lanes=4194304)}else{if(!l)if(e=Yi(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,er(t,e),ql(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!ye)return Ne(t),null}else 2*_t()-n.renderingStartTime>ir&&a!==536870912&&(t.flags|=128,l=!0,ql(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=_t(),e.sibling=null,a=Ye.current,V(Ye,l?a&1|2:a&1),ye&&ra(t,n.treeForkCount),e):(Ne(t),null);case 22:case 23:return Et(t),Iu(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),a=t.updateQueue,a!==null&&er(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&M(cn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),oa(Xe),Ne(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function ny(e,t){switch(qu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(Xe),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fi(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(o(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(Ye),null;case 4:return Be(),null;case 10:return oa(t.type),null;case 22:case 23:return Et(t),Iu(),e!==null&&M(cn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(Xe),null;case 25:return null;default:return null}}function wd(e,t){switch(qu(t),t.tag){case 3:oa(Xe),Be();break;case 26:case 27:case 5:fi(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:M(Ye);break;case 10:oa(t.type);break;case 22:case 23:Et(t),Iu(),e!==null&&M(cn);break;case 24:oa(Xe)}}function Ll(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&e)===e){n=void 0;var r=a.create,c=a.inst;n=r(),c.destroy=n}a=a.next}while(a!==l)}}catch(d){we(t,t.return,d)}}function Ma(e,t,a){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){var c=n.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,l=t;var v=a,j=d;try{j()}catch(z){we(l,v,z)}}}n=n.next}while(n!==r)}}catch(z){we(t,t.return,z)}}function Td(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{gf(t,a)}catch(n){we(e,e.return,n)}}}function jd(e,t,a){a.props=pn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){we(e,t,n)}}function Hl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(l){we(e,t,l)}}function Ft(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){we(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){we(e,t,l)}else a.current=null}function Rd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){we(e,e.return,l)}}function Oo(e,t,a){try{var n=e.stateNode;wy(n,e.type,a,t),n[ct]=t}catch(l){we(e,e.return,l)}}function Ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ga(e.type)||e.tag===4}function Co(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(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&&Ga(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 Do(e,t,a){var n=e.tag;if(n===5||n===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=na));else if(n!==4&&(n===27&&Ga(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Do(e,t,a),e=e.sibling;e!==null;)Do(e,t,a),e=e.sibling}function tr(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Ga(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tr(e,t,a),e=e.sibling;e!==null;)tr(e,t,a),e=e.sibling}function zd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);lt(t,n,a),t[et]=e,t[ct]=a}catch(r){we(e,e.return,r)}}var ma=!1,Ke=!1,No=!1,Od=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function ly(e,t){if(e=e.containerInfo,ts=Sr,e=Gc(e),Tu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var c=0,d=-1,v=-1,j=0,z=0,D=e,R=null;t:for(;;){for(var A;D!==a||l!==0&&D.nodeType!==3||(d=c+l),D!==r||n!==0&&D.nodeType!==3||(v=c+n),D.nodeType===3&&(c+=D.nodeValue.length),(A=D.firstChild)!==null;)R=D,D=A;for(;;){if(D===e)break t;if(R===a&&++j===l&&(d=c),R===r&&++z===n&&(v=c),(A=D.nextSibling)!==null)break;D=R,R=D.parentNode}D=A}a=d===-1||v===-1?null:{start:d,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(as={focusedElem:e,selectionRange:a},Sr=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,r=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++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,l=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var Z=pn(a.type,l);e=n.getSnapshotBeforeUpdate(Z,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(ee){we(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)is(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":is(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Cd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),n&4&&Ll(5,a);break;case 1:if(pa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){we(a,a.return,c)}else{var l=pn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){we(a,a.return,c)}}n&64&&Td(a),n&512&&Hl(a,a.return);break;case 3:if(pa(e,a),n&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{gf(e,t)}catch(c){we(a,a.return,c)}}break;case 27:t===null&&n&4&&zd(a);case 26:case 5:pa(e,a),t===null&&n&4&&Rd(a),n&512&&Hl(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),n&4&&Md(e,a);break;case 13:pa(e,a),n&4&&Ud(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=my.bind(null,a),Dy(e,a))));break;case 22:if(n=a.memoizedState!==null||ma,!n){t=t!==null&&t.memoizedState!==null||Ke,l=ma;var r=Ke;ma=n,(Ke=t)&&!r?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=l,Ke=r}break;case 30:break;default:pa(e,a)}}function Dd(e){var t=e.alternate;t!==null&&(e.alternate=null,Dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&su(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 Ue=null,dt=!1;function ha(e,t,a){for(a=a.child;a!==null;)Nd(e,t,a),a=a.sibling}function Nd(e,t,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(sl,a)}catch{}switch(a.tag){case 26:Ke||Ft(a,t),ha(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||Ft(a,t);var n=Ue,l=dt;Ga(a.type)&&(Ue=a.stateNode,dt=!1),ha(e,t,a),Jl(a.stateNode),Ue=n,dt=l;break;case 5:Ke||Ft(a,t);case 6:if(n=Ue,l=dt,Ue=null,ha(e,t,a),Ue=n,dt=l,Ue!==null)if(dt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(a.stateNode)}catch(r){we(a,t,r)}else try{Ue.removeChild(a.stateNode)}catch(r){we(a,t,r)}break;case 18:Ue!==null&&(dt?(e=Ue,Tm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nl(e)):Tm(Ue,a.stateNode));break;case 4:n=Ue,l=dt,Ue=a.stateNode.containerInfo,dt=!0,ha(e,t,a),Ue=n,dt=l;break;case 0:case 11:case 14:case 15:Ma(2,a,t),Ke||Ma(4,a,t),ha(e,t,a);break;case 1:Ke||(Ft(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&jd(a,t,n)),ha(e,t,a);break;case 21:ha(e,t,a);break;case 22:Ke=(n=Ke)||a.memoizedState!==null,ha(e,t,a),Ke=n;break;default:ha(e,t,a)}}function Md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nl(e)}catch(a){we(t,t.return,a)}}}function Ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nl(e)}catch(a){we(t,t.return,a)}}function iy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Od),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Od),t;default:throw Error(o(435,e.tag))}}function ar(e,t){var a=iy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=hy.bind(null,e,n);n.then(l,l)}})}function mt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],r=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Ga(d.type)){Ue=d.stateNode,dt=!1;break e}break;case 5:Ue=d.stateNode,dt=!1;break e;case 3:case 4:Ue=d.stateNode.containerInfo,dt=!0;break e}d=d.return}if(Ue===null)throw Error(o(160));Nd(r,c,l),Ue=null,dt=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}var Qt=null;function qd(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),ht(e),n&4&&(Ma(3,e,e.return),Ll(3,e),Ma(5,e,e.return));break;case 1:mt(t,e),ht(e),n&512&&(Ke||a===null||Ft(a,a.return)),n&64&&ma&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=Qt;if(mt(t,e),ht(e),n&512&&(Ke||a===null||Ft(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(n){case"title":r=l.getElementsByTagName("title")[0],(!r||r[dl]||r[et]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(n),l.head.insertBefore(r,l.querySelector("head > title"))),lt(r,n,a),r[et]=e,Fe(r),n=r;break e;case"link":var c=qm("link","href",l).get(n+(a.href||""));if(c){for(var d=0;d<c.length;d++)if(r=c[d],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(d,1);break t}}r=l.createElement(n),lt(r,n,a),l.head.appendChild(r);break;case"meta":if(c=qm("meta","content",l).get(n+(a.content||""))){for(d=0;d<c.length;d++)if(r=c[d],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(d,1);break t}}r=l.createElement(n),lt(r,n,a),l.head.appendChild(r);break;default:throw Error(o(468,n))}r[et]=e,Fe(r),n=r}e.stateNode=n}else Lm(l,e.type,e.stateNode);else e.stateNode=Um(l,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?Lm(l,e.type,e.stateNode):Um(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Oo(e,e.memoizedProps,a.memoizedProps)}break;case 27:mt(t,e),ht(e),n&512&&(Ke||a===null||Ft(a,a.return)),a!==null&&n&4&&Oo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(mt(t,e),ht(e),n&512&&(Ke||a===null||Ft(a,a.return)),e.flags&32){l=e.stateNode;try{Tn(l,"")}catch(Z){we(e,e.return,Z)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,Oo(e,l,a!==null?a.memoizedProps:l)),n&1024&&(No=!0);break;case 6:if(mt(t,e),ht(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(Z){we(e,e.return,Z)}}break;case 3:if(_r=null,l=Qt,Qt=gr(t.containerInfo),mt(t,e),Qt=l,ht(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(Z){we(e,e.return,Z)}No&&(No=!1,Ld(e));break;case 4:n=Qt,Qt=gr(e.stateNode.containerInfo),mt(t,e),ht(e),Qt=n;break;case 12:mt(t,e),ht(e);break;case 31:mt(t,e),ht(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ar(e,n)));break;case 13:mt(t,e),ht(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lr=_t()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ar(e,n)));break;case 22:l=e.memoizedState!==null;var v=a!==null&&a.memoizedState!==null,j=ma,z=Ke;if(ma=j||l,Ke=z||v,mt(t,e),Ke=z,ma=j,ht(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||v||ma||Ke||gn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){v=a=t;try{if(r=v.stateNode,l)c=r.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=v.stateNode;var D=v.memoizedProps.style,R=D!=null&&D.hasOwnProperty("display")?D.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(Z){we(v,v.return,Z)}}}else if(t.tag===6){if(a===null){v=t;try{v.stateNode.nodeValue=l?"":v.memoizedProps}catch(Z){we(v,v.return,Z)}}}else if(t.tag===18){if(a===null){v=t;try{var A=v.stateNode;l?jm(A,!0):jm(v.stateNode,!1)}catch(Z){we(v,v.return,Z)}}}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}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,ar(e,a))));break;case 19:mt(t,e),ht(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ar(e,n)));break;case 30:break;case 21:break;default:mt(t,e),ht(e)}}function ht(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Ad(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var l=a.stateNode,r=Co(e);tr(e,r,l);break;case 5:var c=a.stateNode;a.flags&32&&(Tn(c,""),a.flags&=-33);var d=Co(e);tr(e,d,c);break;case 3:case 4:var v=a.stateNode.containerInfo,j=Co(e);Do(e,j,v);break;default:throw Error(o(161))}}catch(z){we(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ld(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ld(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function gn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ma(4,t,t.return),gn(t);break;case 1:Ft(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&jd(t,t.return,a),gn(t);break;case 27:Jl(t.stateNode);case 26:case 5:Ft(t,t.return),gn(t);break;case 22:t.memoizedState===null&&gn(t);break;case 30:gn(t);break;default:gn(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,r=t,c=r.flags;switch(r.tag){case 0:case 11:case 15:ga(l,r,a),Ll(4,r);break;case 1:if(ga(l,r,a),n=r,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(j){we(n,n.return,j)}if(n=r,l=n.updateQueue,l!==null){var d=n.stateNode;try{var v=l.shared.hiddenCallbacks;if(v!==null)for(l.shared.hiddenCallbacks=null,l=0;l<v.length;l++)pf(v[l],d)}catch(j){we(n,n.return,j)}}a&&c&64&&Td(r),Hl(r,r.return);break;case 27:zd(r);case 26:case 5:ga(l,r,a),a&&n===null&&c&4&&Rd(r),Hl(r,r.return);break;case 12:ga(l,r,a);break;case 31:ga(l,r,a),a&&c&4&&Md(l,r);break;case 13:ga(l,r,a),a&&c&4&&Ud(l,r);break;case 22:r.memoizedState===null&&ga(l,r,a),Hl(r,r.return);break;case 30:break;default:ga(l,r,a)}t=t.sibling}}function Mo(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&&wl(a))}function Uo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wl(e))}function Zt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hd(e,t,a,n),t=t.sibling}function Hd(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,a,n),l&2048&&Ll(9,t);break;case 1:Zt(e,t,a,n);break;case 3:Zt(e,t,a,n),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wl(e)));break;case 12:if(l&2048){Zt(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,c=r.id,d=r.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){we(t,t.return,v)}}else Zt(e,t,a,n);break;case 31:Zt(e,t,a,n);break;case 13:Zt(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,c=t.alternate,t.memoizedState!==null?r._visibility&2?Zt(e,t,a,n):Bl(e,t):r._visibility&2?Zt(e,t,a,n):(r._visibility|=2,Zn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),l&2048&&Mo(c,t);break;case 24:Zt(e,t,a,n),l&2048&&Uo(t.alternate,t);break;default:Zt(e,t,a,n)}}function Zn(e,t,a,n,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,c=t,d=a,v=n,j=c.flags;switch(c.tag){case 0:case 11:case 15:Zn(r,c,d,v,l),Ll(8,c);break;case 23:break;case 22:var z=c.stateNode;c.memoizedState!==null?z._visibility&2?Zn(r,c,d,v,l):Bl(r,c):(z._visibility|=2,Zn(r,c,d,v,l)),l&&j&2048&&Mo(c.alternate,c);break;case 24:Zn(r,c,d,v,l),l&&j&2048&&Uo(c.alternate,c);break;default:Zn(r,c,d,v,l)}t=t.sibling}}function Bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,l=n.flags;switch(n.tag){case 22:Bl(a,n),l&2048&&Mo(n.alternate,n);break;case 24:Bl(a,n),l&2048&&Uo(n.alternate,n);break;default:Bl(a,n)}t=t.sibling}}var Yl=8192;function Kn(e,t,a){if(e.subtreeFlags&Yl)for(e=e.child;e!==null;)Bd(e,t,a),e=e.sibling}function Bd(e,t,a){switch(e.tag){case 26:Kn(e,t,a),e.flags&Yl&&e.memoizedState!==null&&Qy(a,Qt,e.memoizedState,e.memoizedProps);break;case 5:Kn(e,t,a);break;case 3:case 4:var n=Qt;Qt=gr(e.stateNode.containerInfo),Kn(e,t,a),Qt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Yl,Yl=16777216,Kn(e,t,a),Yl=n):Kn(e,t,a));break;default:Kn(e,t,a)}}function Yd(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 Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Ie=n,Vd(n,e)}Yd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gd(e),e=e.sibling}function Gd(e){switch(e.tag){case 0:case 11:case 15:Gl(e),e.flags&2048&&Ma(9,e,e.return);break;case 3:Gl(e);break;case 12:Gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nr(e)):Gl(e);break;default:Gl(e)}}function nr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Ie=n,Vd(n,e)}Yd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ma(8,t,t.return),nr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nr(t));break;default:nr(t)}e=e.sibling}}function Vd(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:Ma(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:wl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Ie=n;else e:for(a=e;Ie!==null;){n=Ie;var l=n.sibling,r=n.return;if(Dd(n),n===a){Ie=null;break e}if(l!==null){l.return=r,Ie=l;break e}Ie=r}}}var ry={getCacheForType:function(e){var t=at(Xe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return at(Xe).controller.signal}},uy=typeof WeakMap=="function"?WeakMap:Map,xe=0,Oe=null,de=null,he=0,Ee=0,wt=null,Ua=!1,Jn=!1,qo=!1,ya=0,He=0,qa=0,yn=0,Lo=0,Tt=0,$n=0,Vl=null,pt=null,Ho=!1,lr=0,Xd=0,ir=1/0,rr=null,La=null,$e=0,Ha=null,Wn=null,_a=0,Bo=0,Yo=null,Qd=null,Xl=0,Go=null;function jt(){return(xe&2)!==0&&he!==0?he&-he:O.T!==null?Jo():rc()}function Zd(){if(Tt===0)if((he&536870912)===0||ye){var e=hi;hi<<=1,(hi&3932160)===0&&(hi=262144),Tt=e}else Tt=536870912;return e=kt.current,e!==null&&(e.flags|=32),Tt}function gt(e,t,a){(e===Oe&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Fn(e,0),Ba(e,he,Tt,!1)),fl(e,a),((xe&2)===0||e!==Oe)&&(e===Oe&&((xe&2)===0&&(yn|=a),He===4&&Ba(e,he,Tt,!1)),It(e))}function Kd(e,t,a){if((xe&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||cl(e,t),l=n?cy(e,t):Xo(e,t,!0),r=n;do{if(l===0){Jn&&!n&&Ba(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!oy(a)){l=Xo(e,t,!1),r=!1;continue}if(l===2){if(r=t,e.errorRecoveryDisabledLanes&r)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;l=Vl;var v=d.current.memoizedState.isDehydrated;if(v&&(Fn(d,c).flags|=256),c=Xo(d,c,!1),c!==2){if(qo&&!v){d.errorRecoveryDisabledLanes|=r,yn|=r,l=4;break e}r=pt,pt=l,r!==null&&(pt===null?pt=r:pt.push.apply(pt,r))}l=c}if(r=!1,l!==2)continue}}if(l===1){Fn(e,0),Ba(e,t,0,!0);break}e:{switch(n=e,r=l,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ba(n,t,Tt,!Ua);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(l=lr+300-_t(),10<l)){if(Ba(n,t,Tt,!Ua),gi(n,0,!0)!==0)break e;_a=t,n.timeoutHandle=Em(Jd.bind(null,n,a,pt,rr,Ho,t,Tt,yn,$n,Ua,r,"Throttled",-0,0),l);break e}Jd(n,a,pt,rr,Ho,t,Tt,yn,$n,Ua,r,null,-0,0)}}break}while(!0);It(e)}function Jd(e,t,a,n,l,r,c,d,v,j,z,D,R,A){if(e.timeoutHandle=-1,D=t.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},Bd(t,r,D);var Z=(r&62914560)===r?lr-_t():(r&4194048)===r?Xd-_t():0;if(Z=Zy(D,Z),Z!==null){_a=r,e.cancelPendingCommit=Z(am.bind(null,e,t,r,a,n,l,c,d,v,z,D,null,R,A)),Ba(e,r,c,!j);return}}am(e,t,r,a,n,l,c,d,v)}function oy(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 n=0;n<a.length;n++){var l=a[n],r=l.getSnapshot;l=l.value;try{if(!xt(r(),l))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 Ba(e,t,a,n){t&=~Lo,t&=~yn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-bt(l),c=1<<r;n[r]=-1,l&=~c}a!==0&&nc(e,a,t)}function ur(){return(xe&6)===0?(Ql(0),!1):!0}function Vo(){if(de!==null){if(Ee===0)var e=de.return;else e=de,ua=on=null,lo(e),Yn=null,jl=0,e=de;for(;e!==null;)wd(e.alternate,e),e=e.return;de=null}}function Fn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ry(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),_a=0,Vo(),Oe=e,de=a=ia(e.current,null),he=t,Ee=0,wt=null,Ua=!1,Jn=cl(e,t),qo=!1,$n=Tt=Lo=yn=qa=He=0,pt=Vl=null,Ho=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-bt(n),r=1<<l;t|=e[l],n&=~r}return ya=t,Ri(),a}function $d(e,t){ie=null,O.H=Ml,t===Bn||t===Ui?(t=ff(),Ee=3):t===Zu?(t=ff(),Ee=4):Ee=t===xo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,de===null&&(He=1,Wi(e,Dt(t,e.current)))}function Wd(){var e=kt.current;return e===null?!0:(he&4194048)===he?qt===null:(he&62914560)===he||(he&536870912)!==0?e===qt:!1}function Fd(){var e=O.H;return O.H=Ml,e===null?Ml:e}function Id(){var e=O.A;return O.A=ry,e}function or(){He=4,Ua||(he&4194048)!==he&&kt.current!==null||(Jn=!0),(qa&134217727)===0&&(yn&134217727)===0||Oe===null||Ba(Oe,he,Tt,!1)}function Xo(e,t,a){var n=xe;xe|=2;var l=Fd(),r=Id();(Oe!==e||he!==t)&&(rr=null,Fn(e,t)),t=!1;var c=He;e:do try{if(Ee!==0&&de!==null){var d=de,v=wt;switch(Ee){case 8:Vo(),c=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var j=Ee;if(Ee=0,wt=null,In(e,d,v,j),a&&Jn){c=0;break e}break;default:j=Ee,Ee=0,wt=null,In(e,d,v,j)}}sy(),c=He;break}catch(z){$d(e,z)}while(!0);return t&&e.shellSuspendCounter++,ua=on=null,xe=n,O.H=l,O.A=r,de===null&&(Oe=null,he=0,Ri()),c}function sy(){for(;de!==null;)Pd(de)}function cy(e,t){var a=xe;xe|=2;var n=Fd(),l=Id();Oe!==e||he!==t?(rr=null,ir=_t()+500,Fn(e,t)):Jn=cl(e,t);e:do try{if(Ee!==0&&de!==null){t=de;var r=wt;t:switch(Ee){case 1:Ee=0,wt=null,In(e,t,r,1);break;case 2:case 9:if(sf(r)){Ee=0,wt=null,em(t);break}t=function(){Ee!==2&&Ee!==9||Oe!==e||(Ee=7),It(e)},r.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:sf(r)?(Ee=0,wt=null,em(t)):(Ee=0,wt=null,In(e,t,r,7));break;case 5:var c=null;switch(de.tag){case 26:c=de.memoizedState;case 5:case 27:var d=de;if(c?Hm(c):d.stateNode.complete){Ee=0,wt=null;var v=d.sibling;if(v!==null)de=v;else{var j=d.return;j!==null?(de=j,sr(j)):de=null}break t}}Ee=0,wt=null,In(e,t,r,5);break;case 6:Ee=0,wt=null,In(e,t,r,6);break;case 8:Vo(),He=6;break e;default:throw Error(o(462))}}fy();break}catch(z){$d(e,z)}while(!0);return ua=on=null,O.H=n,O.A=l,xe=a,de!==null?0:(Oe=null,he=0,Ri(),He)}function fy(){for(;de!==null&&!Np();)Pd(de)}function Pd(e){var t=kd(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?sr(e):de=t}function em(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=yd(a,t,t.pendingProps,t.type,void 0,he);break;case 11:t=yd(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:lo(t);default:wd(a,t),t=de=Fc(t,ya),t=kd(a,t,ya)}e.memoizedProps=e.pendingProps,t===null?sr(e):de=t}function In(e,t,a,n){ua=on=null,lo(t),Yn=null,jl=0;var l=t.return;try{if(Pg(e,l,t,a,he)){He=1,Wi(e,Dt(a,e.current)),de=null;return}}catch(r){if(l!==null)throw de=l,r;He=1,Wi(e,Dt(a,e.current)),de=null;return}t.flags&32768?(ye||n===1?e=!0:Jn||(he&536870912)!==0?e=!1:(Ua=e=!0,(n===2||n===9||n===3||n===6)&&(n=kt.current,n!==null&&n.tag===13&&(n.flags|=16384))),tm(t,e)):sr(t)}function sr(e){var t=e;do{if((t.flags&32768)!==0){tm(t,Ua);return}e=t.return;var a=ay(t.alternate,t,ya);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);He===0&&(He=5)}function tm(e,t){do{var a=ny(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);He=6,de=null}function am(e,t,a,n,l,r,c,d,v){e.cancelPendingCommit=null;do cr();while($e!==0);if((xe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(r=t.lanes|t.childLanes,r|=Ou,Xp(e,a,r,c,d,v),e===Oe&&(de=Oe=null,he=0),Wn=t,Ha=e,_a=a,Bo=r,Yo=l,Qd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,py(di,function(){return um(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null,l=G.p,G.p=2,c=xe,xe|=4;try{ly(e,t,a)}finally{xe=c,G.p=l,O.T=n}}$e=1,nm(),lm(),im()}}function nm(){if($e===1){$e=0;var e=Ha,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var n=G.p;G.p=2;var l=xe;xe|=4;try{qd(t,e);var r=as,c=Gc(e.containerInfo),d=r.focusedElem,v=r.selectionRange;if(c!==d&&d&&d.ownerDocument&&Yc(d.ownerDocument.documentElement,d)){if(v!==null&&Tu(d)){var j=v.start,z=v.end;if(z===void 0&&(z=j),"selectionStart"in d)d.selectionStart=j,d.selectionEnd=Math.min(z,d.value.length);else{var D=d.ownerDocument||document,R=D&&D.defaultView||window;if(R.getSelection){var A=R.getSelection(),Z=d.textContent.length,ee=Math.min(v.start,Z),Ae=v.end===void 0?ee:Math.min(v.end,Z);!A.extend&&ee>Ae&&(c=Ae,Ae=ee,ee=c);var E=Bc(d,ee),x=Bc(d,Ae);if(E&&x&&(A.rangeCount!==1||A.anchorNode!==E.node||A.anchorOffset!==E.offset||A.focusNode!==x.node||A.focusOffset!==x.offset)){var T=D.createRange();T.setStart(E.node,E.offset),A.removeAllRanges(),ee>Ae?(A.addRange(T),A.extend(x.node,x.offset)):(T.setEnd(x.node,x.offset),A.addRange(T))}}}}for(D=[],A=d;A=A.parentNode;)A.nodeType===1&&D.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<D.length;d++){var C=D[d];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}Sr=!!ts,as=ts=null}finally{xe=l,G.p=n,O.T=a}}e.current=t,$e=2}}function lm(){if($e===2){$e=0;var e=Ha,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var n=G.p;G.p=2;var l=xe;xe|=4;try{Cd(e,t.alternate,t)}finally{xe=l,G.p=n,O.T=a}}$e=3}}function im(){if($e===4||$e===3){$e=0,Mp();var e=Ha,t=Wn,a=_a,n=Qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,Wn=Ha=null,rm(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(La=null),uu(a),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=O.T,l=G.p,G.p=2,O.T=null;try{for(var r=e.onRecoverableError,c=0;c<n.length;c++){var d=n[c];r(d.value,{componentStack:d.stack})}}finally{O.T=t,G.p=l}}(_a&3)!==0&&cr(),It(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===Go?Xl++:(Xl=0,Go=e):Xl=0,Ql(0)}}function rm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wl(t)))}function cr(){return nm(),lm(),im(),um()}function um(){if($e!==5)return!1;var e=Ha,t=Bo;Bo=0;var a=uu(_a),n=O.T,l=G.p;try{G.p=32>a?32:a,O.T=null,a=Yo,Yo=null;var r=Ha,c=_a;if($e=0,Wn=Ha=null,_a=0,(xe&6)!==0)throw Error(o(331));var d=xe;if(xe|=4,Gd(r.current),Hd(r,r.current,c,a),xe=d,Ql(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(sl,r)}catch{}return!0}finally{G.p=l,O.T=n,rm(e,t)}}function om(e,t,a){t=Dt(a,t),t=bo(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(fl(e,2),It(e))}function we(e,t,a){if(e.tag===3)om(e,e,a);else for(;t!==null;){if(t.tag===3){om(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(La===null||!La.has(n))){e=Dt(a,e),a=sd(2),n=Ca(t,a,2),n!==null&&(cd(a,n,t,e),fl(n,2),It(n));break}}t=t.return}}function Qo(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new uy;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(qo=!0,l.add(a),e=dy.bind(null,e,t,a),t.then(e,e))}function dy(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Oe===e&&(he&a)===a&&(He===4||He===3&&(he&62914560)===he&&300>_t()-lr?(xe&2)===0&&Fn(e,0):Lo|=a,$n===he&&($n=0)),It(e)}function sm(e,t){t===0&&(t=ac()),e=ln(e,t),e!==null&&(fl(e,t),It(e))}function my(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),sm(e,a)}function hy(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),sm(e,a)}function py(e,t){return nu(e,t)}var fr=null,Pn=null,Zo=!1,dr=!1,Ko=!1,Ya=0;function It(e){e!==Pn&&e.next===null&&(Pn===null?fr=Pn=e:Pn=Pn.next=e),dr=!0,Zo||(Zo=!0,yy())}function Ql(e,t){if(!Ko&&dr){Ko=!0;do for(var a=!1,n=fr;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var r=0;else{var c=n.suspendedLanes,d=n.pingedLanes;r=(1<<31-bt(42|e)+1)-1,r&=l&~(c&~d),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,mm(n,r))}else r=he,r=gi(n,n===Oe?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||cl(n,r)||(a=!0,mm(n,r));n=n.next}while(a);Ko=!1}}function gy(){cm()}function cm(){dr=Zo=!1;var e=0;Ya!==0&&jy()&&(e=Ya);for(var t=_t(),a=null,n=fr;n!==null;){var l=n.next,r=fm(n,t);r===0?(n.next=null,a===null?fr=l:a.next=l,l===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(dr=!0)),n=l}$e!==0&&$e!==5||Ql(e),Ya!==0&&(Ya=0)}function fm(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var c=31-bt(r),d=1<<c,v=l[c];v===-1?((d&a)===0||(d&n)!==0)&&(l[c]=Vp(d,t)):v<=t&&(e.expiredLanes|=d),r&=~d}if(t=Oe,a=he,a=gi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&lu(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||cl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&lu(n),uu(a)){case 2:case 8:a=ec;break;case 32:a=di;break;case 268435456:a=tc;break;default:a=di}return n=dm.bind(null,e),a=nu(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&lu(n),e.callbackPriority=2,e.callbackNode=null,2}function dm(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(cr()&&e.callbackNode!==a)return null;var n=he;return n=gi(e,e===Oe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Kd(e,n,t),fm(e,_t()),e.callbackNode!=null&&e.callbackNode===a?dm.bind(null,e):null)}function mm(e,t){if(cr())return null;Kd(e,t,!0)}function yy(){Ay(function(){(xe&6)!==0?nu(Ps,gy):cm()})}function Jo(){if(Ya===0){var e=Ln;e===0&&(e=mi,mi<<=1,(mi&261888)===0&&(mi=256)),Ya=e}return Ya}function hm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bi(""+e)}function pm(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 _y(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var r=hm((l[ct]||null).action),c=n.submitter;c&&(t=(t=c[ct]||null)?hm(t.formAction):c.getAttribute("formAction"),t!==null&&(r=t,c=null));var d=new Ei("action","action",null,n,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ya!==0){var v=c?pm(l,c):new FormData(l);ho(a,{pending:!0,data:v,method:l.method,action:r},null,v)}}else typeof r=="function"&&(d.preventDefault(),v=c?pm(l,c):new FormData(l),ho(a,{pending:!0,data:v,method:l.method,action:r},r,v))},currentTarget:l}]})}}for(var $o=0;$o<zu.length;$o++){var Wo=zu[$o],vy=Wo.toLowerCase(),by=Wo[0].toUpperCase()+Wo.slice(1);Xt(vy,"on"+by)}Xt(Qc,"onAnimationEnd"),Xt(Zc,"onAnimationIteration"),Xt(Kc,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(Ug,"onTransitionRun"),Xt(qg,"onTransitionStart"),Xt(Lg,"onTransitionCancel"),Xt(Jc,"onTransitionEnd"),En("onMouseEnter",["mouseout","mouseover"]),En("onMouseLeave",["mouseout","mouseover"]),En("onPointerEnter",["pointerout","pointerover"]),En("onPointerLeave",["pointerout","pointerover"]),en("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),en("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),en("onBeforeInput",["compositionend","keypress","textInput","paste"]),en("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),en("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),en("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function gm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var c=n.length-1;0<=c;c--){var d=n[c],v=d.instance,j=d.currentTarget;if(d=d.listener,v!==r&&l.isPropagationStopped())break e;r=d,l.currentTarget=j;try{r(l)}catch(z){ji(z)}l.currentTarget=null,r=v}else for(c=0;c<n.length;c++){if(d=n[c],v=d.instance,j=d.currentTarget,d=d.listener,v!==r&&l.isPropagationStopped())break e;r=d,l.currentTarget=j;try{r(l)}catch(z){ji(z)}l.currentTarget=null,r=v}}}}function me(e,t){var a=t[ou];a===void 0&&(a=t[ou]=new Set);var n=e+"__bubble";a.has(n)||(ym(t,e,2,!1),a.add(n))}function Fo(e,t,a){var n=0;t&&(n|=4),ym(a,e,n,t)}var mr="_reactListening"+Math.random().toString(36).slice(2);function Io(e){if(!e[mr]){e[mr]=!0,sc.forEach(function(a){a!=="selectionchange"&&(xy.has(a)||Fo(a,!1,e),Fo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mr]||(t[mr]=!0,Fo("selectionchange",!1,t))}}function ym(e,t,a,n){switch(Zm(t)){case 2:var l=$y;break;case 8:l=Wy;break;default:l=ms}a=l.bind(null,t,a,e),l=void 0,!yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),n?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function Po(e,t,a,n,l){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var d=n.stateNode.containerInfo;if(d===l)break;if(c===4)for(c=n.return;c!==null;){var v=c.tag;if((v===3||v===4)&&c.stateNode.containerInfo===l)return;c=c.return}for(;d!==null;){if(c=xn(d),c===null)return;if(v=c.tag,v===5||v===6||v===26||v===27){n=r=c;continue e}d=d.parentNode}}n=n.return}xc(function(){var j=r,z=pu(a),D=[];e:{var R=$c.get(e);if(R!==void 0){var A=Ei,Z=e;switch(e){case"keypress":if(Si(a)===0)break e;case"keydown":case"keyup":A=hg;break;case"focusin":Z="focus",A=xu;break;case"focusout":Z="blur",A=xu;break;case"beforeblur":case"afterblur":A=xu;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":A=Ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=yg;break;case Qc:case Zc:case Kc:A=ig;break;case Jc:A=vg;break;case"scroll":case"scrollend":A=eg;break;case"wheel":A=xg;break;case"copy":case"cut":case"paste":A=ug;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Tc;break;case"toggle":case"beforetoggle":A=kg}var ee=(t&4)!==0,Ae=!ee&&(e==="scroll"||e==="scrollend"),E=ee?R!==null?R+"Capture":null:R;ee=[];for(var x=j,T;x!==null;){var C=x;if(T=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||T===null||E===null||(C=hl(x,E),C!=null&&ee.push(Kl(x,C,T))),Ae)break;x=x.return}0<ee.length&&(R=new A(R,Z,null,a,z),D.push({event:R,listeners:ee}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",R&&a!==hu&&(Z=a.relatedTarget||a.fromElement)&&(xn(Z)||Z[bn]))break e;if((A||R)&&(R=z.window===z?z:(R=z.ownerDocument)?R.defaultView||R.parentWindow:window,A?(Z=a.relatedTarget||a.toElement,A=j,Z=Z?xn(Z):null,Z!==null&&(Ae=m(Z),ee=Z.tag,Z!==Ae||ee!==5&&ee!==27&&ee!==6)&&(Z=null)):(A=null,Z=j),A!==Z)){if(ee=Ec,C="onMouseLeave",E="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Tc,C="onPointerLeave",E="onPointerEnter",x="pointer"),Ae=A==null?R:ml(A),T=Z==null?R:ml(Z),R=new ee(C,x+"leave",A,a,z),R.target=Ae,R.relatedTarget=T,C=null,xn(z)===j&&(ee=new ee(E,x+"enter",Z,a,z),ee.target=T,ee.relatedTarget=Ae,C=ee),Ae=C,A&&Z)t:{for(ee=Sy,E=A,x=Z,T=0,C=E;C;C=ee(C))T++;C=0;for(var I=x;I;I=ee(I))C++;for(;0<T-C;)E=ee(E),T--;for(;0<C-T;)x=ee(x),C--;for(;T--;){if(E===x||x!==null&&E===x.alternate){ee=E;break t}E=ee(E),x=ee(x)}ee=null}else ee=null;A!==null&&_m(D,R,A,ee,!1),Z!==null&&Ae!==null&&_m(D,Ae,Z,ee,!0)}}e:{if(R=j?ml(j):window,A=R.nodeName&&R.nodeName.toLowerCase(),A==="select"||A==="input"&&R.type==="file")var ve=Nc;else if(Cc(R))if(Mc)ve=Dg;else{ve=Og;var $=zg}else A=R.nodeName,!A||A.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?j&&mu(j.elementType)&&(ve=Nc):ve=Cg;if(ve&&(ve=ve(e,j))){Dc(D,ve,a,z);break e}$&&$(e,R,j),e==="focusout"&&j&&R.type==="number"&&j.memoizedProps.value!=null&&du(R,"number",R.value)}switch($=j?ml(j):window,e){case"focusin":(Cc($)||$.contentEditable==="true")&&(zn=$,ju=j,Sl=null);break;case"focusout":Sl=ju=zn=null;break;case"mousedown":Ru=!0;break;case"contextmenu":case"mouseup":case"dragend":Ru=!1,Vc(D,a,z);break;case"selectionchange":if(Mg)break;case"keydown":case"keyup":Vc(D,a,z)}var re;if(ku)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else An?zc(e,a)&&(pe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(pe="onCompositionStart");pe&&(jc&&a.locale!=="ko"&&(An||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&An&&(re=Sc()):(wa=z,_u="value"in wa?wa.value:wa.textContent,An=!0)),$=hr(j,pe),0<$.length&&(pe=new wc(pe,e,null,a,z),D.push({event:pe,listeners:$}),re?pe.data=re:(re=Oc(a),re!==null&&(pe.data=re)))),(re=wg?Tg(e,a):jg(e,a))&&(pe=hr(j,"onBeforeInput"),0<pe.length&&($=new wc("onBeforeInput","beforeinput",null,a,z),D.push({event:$,listeners:pe}),$.data=re)),_y(D,e,j,a,z)}gm(D,t)})}function Kl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function hr(e,t){for(var a=t+"Capture",n=[];e!==null;){var l=e,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=hl(e,a),l!=null&&n.unshift(Kl(e,l,r)),l=hl(e,t),l!=null&&n.push(Kl(e,l,r))),e.tag===3)return n;e=e.return}return[]}function Sy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _m(e,t,a,n,l){for(var r=t._reactName,c=[];a!==null&&a!==n;){var d=a,v=d.alternate,j=d.stateNode;if(d=d.tag,v!==null&&v===n)break;d!==5&&d!==26&&d!==27||j===null||(v=j,l?(j=hl(a,r),j!=null&&c.unshift(Kl(a,j,v))):l||(j=hl(a,r),j!=null&&c.push(Kl(a,j,v)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var ky=/\r\n?/g,Ey=/\u0000|\uFFFD/g;function vm(e){return(typeof e=="string"?e:""+e).replace(ky,`
50
+ `).replace(Ey,"")}function bm(e,t){return t=vm(t),vm(e)===t}function Re(e,t,a,n,l,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Tn(e,""+n);break;case"className":_i(e,"class",n);break;case"tabIndex":_i(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":_i(e,a,n);break;case"style":vc(e,n,r);break;case"data":if(t!=="object"){_i(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=bi(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="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 r=="function"&&(a==="formAction"?(t!=="input"&&Re(e,t,"name",l.name,l,null),Re(e,t,"formEncType",l.formEncType,l,null),Re(e,t,"formMethod",l.formMethod,l,null),Re(e,t,"formTarget",l.formTarget,l,null)):(Re(e,t,"encType",l.encType,l,null),Re(e,t,"method",l.method,l,null),Re(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=bi(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=na);break;case"onScroll":n!=null&&me("scroll",e);break;case"onScrollEnd":n!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=bi(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":me("beforetoggle",e),me("toggle",e),yi(e,"popover",n);break;case"xlinkActuate":aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":aa(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":aa(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":aa(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":aa(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":yi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ip.get(a)||a,yi(e,a,n))}}function es(e,t,a,n,l,r){switch(a){case"style":vc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&Tn(e,""+n);break;case"onScroll":n!=null&&me("scroll",e);break;case"onScrollEnd":n!=null&&me("scrollend",e);break;case"onClick":n!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),r=e[ct]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,l),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,l);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):yi(e,a,n)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var n=!1,l=!1,r;for(r in a)if(a.hasOwnProperty(r)){var c=a[r];if(c!=null)switch(r){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,r,c,a,null)}}l&&Re(e,t,"srcSet",a.srcSet,a,null),n&&Re(e,t,"src",a.src,a,null);return;case"input":me("invalid",e);var d=r=c=l=null,v=null,j=null;for(n in a)if(a.hasOwnProperty(n)){var z=a[n];if(z!=null)switch(n){case"name":l=z;break;case"type":c=z;break;case"checked":v=z;break;case"defaultChecked":j=z;break;case"value":r=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Re(e,t,n,z,a,null)}}pc(e,r,d,v,j,c,l,!1);return;case"select":me("invalid",e),n=c=r=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":r=d;break;case"defaultValue":c=d;break;case"multiple":n=d;default:Re(e,t,l,d,a,null)}t=r,a=c,e.multiple=!!n,t!=null?wn(e,!!n,t,!1):a!=null&&wn(e,!!n,a,!0);return;case"textarea":me("invalid",e),r=l=n=null;for(c in a)if(a.hasOwnProperty(c)&&(d=a[c],d!=null))switch(c){case"value":n=d;break;case"defaultValue":l=d;break;case"children":r=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Re(e,t,c,d,a,null)}yc(e,n,l,r);return;case"option":for(v in a)if(a.hasOwnProperty(v)&&(n=a[v],n!=null))switch(v){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Re(e,t,v,n,a,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(n=0;n<Zl.length;n++)me(Zl[n],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("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(j in a)if(a.hasOwnProperty(j)&&(n=a[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,j,n,a,null)}return;default:if(mu(t)){for(z in a)a.hasOwnProperty(z)&&(n=a[z],n!==void 0&&es(e,t,z,n,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(n=a[d],n!=null&&Re(e,t,d,n,a,null))}function wy(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,c=null,d=null,v=null,j=null,z=null;for(A in a){var D=a[A];if(a.hasOwnProperty(A)&&D!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":v=D;default:n.hasOwnProperty(A)||Re(e,t,A,null,n,D)}}for(var R in n){var A=n[R];if(D=a[R],n.hasOwnProperty(R)&&(A!=null||D!=null))switch(R){case"type":r=A;break;case"name":l=A;break;case"checked":j=A;break;case"defaultChecked":z=A;break;case"value":c=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==D&&Re(e,t,R,A,n,D)}}fu(e,c,d,v,j,z,r,l);return;case"select":A=c=d=R=null;for(r in a)if(v=a[r],a.hasOwnProperty(r)&&v!=null)switch(r){case"value":break;case"multiple":A=v;default:n.hasOwnProperty(r)||Re(e,t,r,null,n,v)}for(l in n)if(r=n[l],v=a[l],n.hasOwnProperty(l)&&(r!=null||v!=null))switch(l){case"value":R=r;break;case"defaultValue":d=r;break;case"multiple":c=r;default:r!==v&&Re(e,t,l,r,n,v)}t=d,a=c,n=A,R!=null?wn(e,!!a,R,!1):!!n!=!!a&&(t!=null?wn(e,!!a,t,!0):wn(e,!!a,a?[]:"",!1));return;case"textarea":A=R=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Re(e,t,d,null,n,l)}for(c in n)if(l=n[c],r=a[c],n.hasOwnProperty(c)&&(l!=null||r!=null))switch(c){case"value":R=l;break;case"defaultValue":A=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(o(91));break;default:l!==r&&Re(e,t,c,l,n,r)}gc(e,R,A);return;case"option":for(var Z in a)if(R=a[Z],a.hasOwnProperty(Z)&&R!=null&&!n.hasOwnProperty(Z))switch(Z){case"selected":e.selected=!1;break;default:Re(e,t,Z,null,n,R)}for(v in n)if(R=n[v],A=a[v],n.hasOwnProperty(v)&&R!==A&&(R!=null||A!=null))switch(v){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Re(e,t,v,R,n,A)}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 ee in a)R=a[ee],a.hasOwnProperty(ee)&&R!=null&&!n.hasOwnProperty(ee)&&Re(e,t,ee,null,n,R);for(j in n)if(R=n[j],A=a[j],n.hasOwnProperty(j)&&R!==A&&(R!=null||A!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Re(e,t,j,R,n,A)}return;default:if(mu(t)){for(var Ae in a)R=a[Ae],a.hasOwnProperty(Ae)&&R!==void 0&&!n.hasOwnProperty(Ae)&&es(e,t,Ae,void 0,n,R);for(z in n)R=n[z],A=a[z],!n.hasOwnProperty(z)||R===A||R===void 0&&A===void 0||es(e,t,z,R,n,A);return}}for(var E in a)R=a[E],a.hasOwnProperty(E)&&R!=null&&!n.hasOwnProperty(E)&&Re(e,t,E,null,n,R);for(D in n)R=n[D],A=a[D],!n.hasOwnProperty(D)||R===A||R==null&&A==null||Re(e,t,D,R,n,A)}function xm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ty(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],r=l.transferSize,c=l.initiatorType,d=l.duration;if(r&&d&&xm(c)){for(c=0,d=l.responseEnd,n+=1;n<a.length;n++){var v=a[n],j=v.startTime;if(j>d)break;var z=v.transferSize,D=v.initiatorType;z&&xm(D)&&(v=v.responseEnd,c+=z*(v<d?1:(d-j)/(v-j)))}if(--n,t+=8*(r+c)/(l.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 ts=null,as=null;function pr(e){return e.nodeType===9?e:e.ownerDocument}function Sm(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 km(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 ns(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 ls=null;function jy(){var e=window.event;return e&&e.type==="popstate"?e===ls?!1:(ls=e,!0):(ls=null,!1)}var Em=typeof setTimeout=="function"?setTimeout:void 0,Ry=typeof clearTimeout=="function"?clearTimeout:void 0,wm=typeof Promise=="function"?Promise:void 0,Ay=typeof queueMicrotask=="function"?queueMicrotask:typeof wm<"u"?function(e){return wm.resolve(null).then(e).catch(zy)}:Em;function zy(e){setTimeout(function(){throw e})}function Ga(e){return e==="head"}function Tm(e,t){var a=t,n=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(l),nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Jl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Jl(a);for(var r=a.firstChild;r;){var c=r.nextSibling,d=r.nodeName;r[dl]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=c}}else a==="body"&&Jl(e.ownerDocument.body);a=l}while(a);nl(t)}function jm(e,t){var a=e;e=0;do{var n=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||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function is(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":is(a),su(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Oy(e,t,a,n){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[dl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function Cy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Lt(e.nextSibling),e===null))return null;return e}function Rm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function rs(e){return e.data==="$?"||e.data==="$~"}function us(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Dy(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Lt(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 os=null;function Am(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Lt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function zm(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 Om(e,t,a){switch(t=pr(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Jl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);su(e)}var Ht=new Map,Cm=new Set;function gr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=G.d;G.d={f:Ny,r:My,D:Uy,C:qy,L:Ly,m:Hy,X:Yy,S:By,M:Gy};function Ny(){var e=va.f(),t=ur();return e||t}function My(e){var t=Sn(e);t!==null&&t.tag===5&&t.type==="form"?$f(t):va.r(e)}var el=typeof document>"u"?null:document;function Dm(e,t,a){var n=el;if(n&&typeof t=="string"&&t){var l=Ot(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Cm.has(l)||(Cm.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),lt(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Uy(e){va.D(e),Dm("dns-prefetch",e,null)}function qy(e,t){va.C(e,t),Dm("preconnect",e,t)}function Ly(e,t,a){va.L(e,t,a);var n=el;if(n&&e&&t){var l='link[rel="preload"][as="'+Ot(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Ot(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Ot(a.imageSizes)+'"]')):l+='[href="'+Ot(e)+'"]';var r=l;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Ht.has(r)||(e=k({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ht.set(r,e),n.querySelector(l)!==null||t==="style"&&n.querySelector($l(r))||t==="script"&&n.querySelector(Wl(r))||(t=n.createElement("link"),lt(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Hy(e,t){va.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ot(n)+'"][href="'+Ot(e)+'"]',r=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=al(e)}if(!Ht.has(r)&&(e=k({rel:"modulepreload",href:e},t),Ht.set(r,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wl(r)))return}n=a.createElement("link"),lt(n,"link",e),Fe(n),a.head.appendChild(n)}}}function By(e,t,a){va.S(e,t,a);var n=el;if(n&&e){var l=kn(n).hoistableStyles,r=tl(e);t=t||"default";var c=l.get(r);if(!c){var d={loading:0,preload:null};if(c=n.querySelector($l(r)))d.loading=5;else{e=k({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ht.get(r))&&ss(e,a);var v=c=n.createElement("link");Fe(v),lt(v,"link",e),v._p=new Promise(function(j,z){v.onload=j,v.onerror=z}),v.addEventListener("load",function(){d.loading|=1}),v.addEventListener("error",function(){d.loading|=2}),d.loading|=4,yr(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:d},l.set(r,c)}}}function Yy(e,t){va.X(e,t);var a=el;if(a&&e){var n=kn(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Wl(l)),r||(e=k({src:e,async:!0},t),(t=Ht.get(l))&&cs(e,t),r=a.createElement("script"),Fe(r),lt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function Gy(e,t){va.M(e,t);var a=el;if(a&&e){var n=kn(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Wl(l)),r||(e=k({src:e,async:!0,type:"module"},t),(t=Ht.get(l))&&cs(e,t),r=a.createElement("script"),Fe(r),lt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function Nm(e,t,a,n){var l=(l=fe.current)?gr(l):null;if(!l)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=tl(a.href),a=kn(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tl(a.href);var r=kn(l).hoistableStyles,c=r.get(e);if(c||(l=l.ownerDocument||l,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,c),(r=l.querySelector($l(e)))&&!r._p&&(c.instance=r,c.state.loading=5),Ht.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},Ht.set(e,a),r||Vy(l,e,a,c.state))),t&&n===null)throw Error(o(528,""));return c}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=al(a),a=kn(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function tl(e){return'href="'+Ot(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function Mm(e){return k({},e,{"data-precedence":e.precedence,precedence:null})}function Vy(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),lt(t,"link",a),Fe(t),e.head.appendChild(t))}function al(e){return'[src="'+Ot(e)+'"]'}function Wl(e){return"script[async]"+e}function Um(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Ot(a.href)+'"]');if(n)return t.instance=n,Fe(n),n;var l=k({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Fe(n),lt(n,"style",l),yr(n,a.precedence,e),t.instance=n;case"stylesheet":l=tl(a.href);var r=e.querySelector($l(l));if(r)return t.state.loading|=4,t.instance=r,Fe(r),r;n=Mm(a),(l=Ht.get(l))&&ss(n,l),r=(e.ownerDocument||e).createElement("link"),Fe(r);var c=r;return c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),lt(r,"link",n),t.state.loading|=4,yr(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(l=e.querySelector(Wl(r)))?(t.instance=l,Fe(l),l):(n=a,(l=Ht.get(r))&&(n=k({},a),cs(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),Fe(l),lt(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,yr(n,a.precedence,e));return t.instance}function yr(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,r=l,c=0;c<n.length;c++){var d=n[c];if(d.dataset.precedence===t)r=d;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function cs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _r=null;function qm(e,t,a){if(_r===null){var n=new Map,l=_r=new Map;l.set(a,n)}else l=_r,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var r=a[l];if(!(r[dl]||r[et]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var c=r.getAttribute(t)||"";c=e+c;var d=n.get(c);d?d.push(r):n.set(c,[r])}}return n}function Lm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Xy(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 Hm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Qy(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=tl(n.href),r=t.querySelector($l(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,Fe(r);return}r=t.ownerDocument||t,n=Mm(n),(l=Ht.get(l))&&ss(n,l),r=r.createElement("link"),Fe(r);var c=r;c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),lt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=vr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var fs=0;function Zy(e,t){return e.stylesheets&&e.count===0&&xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&xr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&fs===0&&(fs=62500*Ty());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>fs?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var br=null;function xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,br=new Map,t.forEach(Ky,e),br=null,vr.call(e))}function Ky(e,t){if(!(t.state.loading&4)){var a=br.get(e);if(a)var n=a.get(null);else{a=new Map,br.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var c=l[r];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),n=c)}n&&a.set(null,n)}l=t.instance,c=l.getAttribute("data-precedence"),r=a.get(c)||n,r===n&&a.set(null,l),a.set(c,l),this.count++,n=vr.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),r?r.parentNode.insertBefore(l,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Fl={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Jy(e,t,a,n,l,r,c,d,v){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=iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iu(0),this.hiddenUpdates=iu(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Bm(e,t,a,n,l,r,c,d,v,j,z,D){return e=new Jy(e,t,a,c,v,j,z,D,d),t=1,r===!0&&(t|=24),r=St(3,null,null,t),e.current=r,r.stateNode=e,t=Vu(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},Ku(r),e}function Ym(e){return e?(e=Dn,e):Dn}function Gm(e,t,a,n,l,r){l=Ym(l),n.context===null?n.context=l:n.pendingContext=l,n=Oa(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Ca(e,n,t),a!==null&&(gt(a,e,t),Al(a,e,t))}function Vm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ds(e,t){Vm(e,t),(e=e.alternate)&&Vm(e,t)}function Xm(e){if(e.tag===13||e.tag===31){var t=ln(e,67108864);t!==null&&gt(t,e,67108864),ds(e,67108864)}}function Qm(e){if(e.tag===13||e.tag===31){var t=jt();t=ru(t);var a=ln(e,t);a!==null&&gt(a,e,t),ds(e,t)}}var Sr=!0;function $y(e,t,a,n){var l=O.T;O.T=null;var r=G.p;try{G.p=2,ms(e,t,a,n)}finally{G.p=r,O.T=l}}function Wy(e,t,a,n){var l=O.T;O.T=null;var r=G.p;try{G.p=8,ms(e,t,a,n)}finally{G.p=r,O.T=l}}function ms(e,t,a,n){if(Sr){var l=hs(n);if(l===null)Po(e,t,n,kr,a),Km(e,n);else if(Iy(l,e,t,a,n))n.stopPropagation();else if(Km(e,n),t&4&&-1<Fy.indexOf(e)){for(;l!==null;){var r=Sn(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var c=Pa(r.pendingLanes);if(c!==0){var d=r;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var v=1<<31-bt(c);d.entanglements[1]|=v,c&=~v}It(r),(xe&6)===0&&(ir=_t()+500,Ql(0))}}break;case 31:case 13:d=ln(r,2),d!==null&&gt(d,r,2),ur(),ds(r,2)}if(r=hs(n),r===null&&Po(e,t,n,kr,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else Po(e,t,n,null,a)}}function hs(e){return e=pu(e),ps(e)}var kr=null;function ps(e){if(kr=null,e=xn(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=g(t),e!==null)return e;e=null}else if(a===31){if(e=b(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 kr=e,null}function Zm(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(Up()){case Ps:return 2;case ec:return 8;case di:case qp:return 32;case tc:return 268435456;default:return 32}default:return 32}}var gs=!1,Va=null,Xa=null,Qa=null,Il=new Map,Pl=new Map,Za=[],Fy="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 Km(e,t){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Xa=null;break;case"mouseover":case"mouseout":Qa=null;break;case"pointerover":case"pointerout":Il.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(t.pointerId)}}function ei(e,t,a,n,l,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[l]},t!==null&&(t=Sn(t),t!==null&&Xm(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Iy(e,t,a,n,l){switch(t){case"focusin":return Va=ei(Va,e,t,a,n,l),!0;case"dragenter":return Xa=ei(Xa,e,t,a,n,l),!0;case"mouseover":return Qa=ei(Qa,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return Il.set(r,ei(Il.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,Pl.set(r,ei(Pl.get(r)||null,e,t,a,n,l)),!0}return!1}function Jm(e){var t=xn(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=g(a),t!==null){e.blockedOn=t,uc(e.priority,function(){Qm(a)});return}}else if(t===31){if(t=b(a),t!==null){e.blockedOn=t,uc(e.priority,function(){Qm(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 Er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=hs(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);hu=n,a.target.dispatchEvent(n),hu=null}else return t=Sn(a),t!==null&&Xm(t),e.blockedOn=a,!1;t.shift()}return!0}function $m(e,t,a){Er(e)&&a.delete(t)}function Py(){gs=!1,Va!==null&&Er(Va)&&(Va=null),Xa!==null&&Er(Xa)&&(Xa=null),Qa!==null&&Er(Qa)&&(Qa=null),Il.forEach($m),Pl.forEach($m)}function wr(e,t){e.blockedOn===t&&(e.blockedOn=null,gs||(gs=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Py)))}var Tr=null;function Wm(e){Tr!==e&&(Tr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Tr===e&&(Tr=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],l=e[t+2];if(typeof n!="function"){if(ps(n||a)===null)continue;break}var r=Sn(a);r!==null&&(e.splice(t,3),t-=3,ho(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function nl(e){function t(v){return wr(v,e)}Va!==null&&wr(Va,e),Xa!==null&&wr(Xa,e),Qa!==null&&wr(Qa,e),Il.forEach(t),Pl.forEach(t);for(var a=0;a<Za.length;a++){var n=Za[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Za.length&&(a=Za[0],a.blockedOn===null);)Jm(a),a.blockedOn===null&&Za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],r=a[n+1],c=l[ct]||null;if(typeof r=="function")c||Wm(a);else if(c){var d=null;if(r&&r.hasAttribute("formAction")){if(l=r,c=r[ct]||null)d=c.formAction;else if(ps(l)!==null)continue}else d=c.action;typeof d=="function"?a[n+1]=d:(a.splice(n,3),n-=3),Wm(a)}}}function Fm(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(c){return l=c})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function ys(e){this._internalRoot=e}jr.prototype.render=ys.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=jt();Gm(a,n,e,t,null,null)},jr.prototype.unmount=ys.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gm(e.current,2,null,e,null,null),ur(),t[bn]=null}};function jr(e){this._internalRoot=e}jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Za.length&&t!==0&&t<Za[a].priority;a++);Za.splice(a,0,e),a===0&&Jm(e)}};var Im=u.version;if(Im!=="19.2.4")throw Error(o(527,Im,"19.2.4"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var e_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rr.isDisabled&&Rr.supportsFiber)try{sl=Rr.inject(e_),vt=Rr}catch{}}return ai.createRoot=function(e,t){if(!f(e))throw Error(o(299));var a=!1,n="",l=id,r=rd,c=ud;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Bm(e,1,!1,null,null,a,n,null,l,r,c,Fm),e[bn]=t.current,Io(e),new ys(t)},ai.hydrateRoot=function(e,t,a){if(!f(e))throw Error(o(299));var n=!1,l="",r=id,c=rd,d=ud,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),t=Bm(e,1,!0,t,a??null,n,l,v,r,c,d,Fm),t.context=Ym(null),a=t.current,n=jt(),n=ru(n),l=Oa(n),l.callback=null,Ca(a,l,n),a=n,t.current.lanes=a,fl(t,a),It(t),e[bn]=t.current,Io(e),new jr(t)},ai.version="19.2.4",ai}var ch;function m_(){if(ch)return xs.exports;ch=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),xs.exports=d_(),xs.exports}var h_=m_();const p_="modulepreload",g_=function(i){return"/"+i},fh={},ae=function(u,s,o){let f=Promise.resolve();if(s&&s.length>0){let g=function(p){return Promise.all(p.map(w=>Promise.resolve(w).then(k=>({status:"fulfilled",value:k}),k=>({status:"rejected",reason:k}))))};document.getElementsByTagName("link");const b=document.querySelector("meta[property=csp-nonce]"),_=(b==null?void 0:b.nonce)||(b==null?void 0:b.getAttribute("nonce"));f=g(s.map(p=>{if(p=g_(p),p in fh)return;fh[p]=!0;const w=p.endsWith(".css"),k=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${k}`))return;const N=document.createElement("link");if(N.rel=w?"stylesheet":p_,w||(N.as="script"),N.crossOrigin="",N.href=p,_&&N.setAttribute("nonce",_),document.head.appendChild(N),w)return new Promise((Y,L)=>{N.addEventListener("load",Y),N.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${p}`)))})}))}function m(g){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=g,window.dispatchEvent(b),!b.defaultPrevented)throw g}return f.then(g=>{for(const b of g||[])b.status==="rejected"&&m(b.reason);return u().catch(m)})};/**
51
+ * react-router v7.13.1
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var dh="popstate";function mh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function y_(i={}){function u(o,f){var p;let m=(p=f.state)==null?void 0:p.masked,{pathname:g,search:b,hash:_}=m||o.location;return Os("",{pathname:g,search:b,hash:_},f.state&&f.state.usr||null,f.state&&f.state.key||"default",m?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function s(o,f){return typeof f=="string"?f:oi(f)}return v_(u,s,null,i)}function qe(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Yt(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function __(){return Math.random().toString(36).substring(2,10)}function hh(i,u){return{usr:i.state,key:i.key,idx:u,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Os(i,u,s=null,o,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?il(u):u,state:s,key:u&&u.key||o||__(),unstable_mask:f}}function oi({pathname:i="/",search:u="",hash:s=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function il(i){let u={};if(i){let s=i.indexOf("#");s>=0&&(u.hash=i.substring(s),i=i.substring(0,s));let o=i.indexOf("?");o>=0&&(u.search=i.substring(o),i=i.substring(0,o)),i&&(u.pathname=i)}return u}function v_(i,u,s,o={}){let{window:f=document.defaultView,v5Compat:m=!1}=o,g=f.history,b="POP",_=null,p=w();p==null&&(p=0,g.replaceState({...g.state,idx:p},""));function w(){return(g.state||{idx:null}).idx}function k(){b="POP";let B=w(),U=B==null?null:B-p;p=B,_&&_({action:b,location:H.location,delta:U})}function N(B,U){b="PUSH";let K=mh(B)?B:Os(H.location,B,U);p=w()+1;let X=hh(K,p),ue=H.createHref(K.unstable_mask||K);try{g.pushState(X,"",ue)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;f.location.assign(ue)}m&&_&&_({action:b,location:H.location,delta:1})}function Y(B,U){b="REPLACE";let K=mh(B)?B:Os(H.location,B,U);p=w();let X=hh(K,p),ue=H.createHref(K.unstable_mask||K);g.replaceState(X,"",ue),m&&_&&_({action:b,location:H.location,delta:0})}function L(B){return b_(B)}let H={get action(){return b},get location(){return i(f,g)},listen(B){if(_)throw new Error("A history only accepts one active listener");return f.addEventListener(dh,k),_=B,()=>{f.removeEventListener(dh,k),_=null}},createHref(B){return u(f,B)},createURL:L,encodeLocation(B){let U=L(B);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:N,replace:Y,go(B){return g.go(B)}};return H}function b_(i,u=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),qe(s,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:oi(i);return o=o.replace(/ $/,"%20"),!u&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function Ch(i,u,s="/"){return x_(i,u,s,!1)}function x_(i,u,s,o){let f=typeof u=="string"?il(u):u,m=Sa(f.pathname||"/",s);if(m==null)return null;let g=Dh(i);S_(g);let b=null;for(let _=0;b==null&&_<g.length;++_){let p=D_(m);b=O_(g[_],p,o)}return b}function Dh(i,u=[],s=[],o="",f=!1){let m=(g,b,_=f,p)=>{let w={relativePath:p===void 0?g.path||"":p,caseSensitive:g.caseSensitive===!0,childrenIndex:b,route:g};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(o)&&_)return;qe(w.relativePath.startsWith(o),`Absolute route path "${w.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(o.length)}let k=ta([o,w.relativePath]),N=s.concat(w);g.children&&g.children.length>0&&(qe(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${k}".`),Dh(g.children,u,N,k,_)),!(g.path==null&&!g.index)&&u.push({path:k,score:A_(k,g.index),routesMeta:N})};return i.forEach((g,b)=>{var _;if(g.path===""||!((_=g.path)!=null&&_.includes("?")))m(g,b);else for(let p of Nh(g.path))m(g,b,!0,p)}),u}function Nh(i){let u=i.split("/");if(u.length===0)return[];let[s,...o]=u,f=s.endsWith("?"),m=s.replace(/\?$/,"");if(o.length===0)return f?[m,""]:[m];let g=Nh(o.join("/")),b=[];return b.push(...g.map(_=>_===""?m:[m,_].join("/"))),f&&b.push(...g),b.map(_=>i.startsWith("/")&&_===""?"/":_)}function S_(i){i.sort((u,s)=>u.score!==s.score?s.score-u.score:z_(u.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var k_=/^:[\w-]+$/,E_=3,w_=2,T_=1,j_=10,R_=-2,ph=i=>i==="*";function A_(i,u){let s=i.split("/"),o=s.length;return s.some(ph)&&(o+=R_),u&&(o+=w_),s.filter(f=>!ph(f)).reduce((f,m)=>f+(k_.test(m)?E_:m===""?T_:j_),o)}function z_(i,u){return i.length===u.length&&i.slice(0,-1).every((o,f)=>o===u[f])?i[i.length-1]-u[u.length-1]:0}function O_(i,u,s=!1){let{routesMeta:o}=i,f={},m="/",g=[];for(let b=0;b<o.length;++b){let _=o[b],p=b===o.length-1,w=m==="/"?u:u.slice(m.length)||"/",k=Zr({path:_.relativePath,caseSensitive:_.caseSensitive,end:p},w),N=_.route;if(!k&&p&&s&&!o[o.length-1].route.index&&(k=Zr({path:_.relativePath,caseSensitive:_.caseSensitive,end:!1},w)),!k)return null;Object.assign(f,k.params),g.push({params:f,pathname:ta([m,k.pathname]),pathnameBase:q_(ta([m,k.pathnameBase])),route:N}),k.pathnameBase!=="/"&&(m=ta([m,k.pathnameBase]))}return g}function Zr(i,u){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,o]=C_(i.path,i.caseSensitive,i.end),f=u.match(s);if(!f)return null;let m=f[0],g=m.replace(/(.)\/+$/,"$1"),b=f.slice(1);return{params:o.reduce((p,{paramName:w,isOptional:k},N)=>{if(w==="*"){let L=b[N]||"";g=m.slice(0,m.length-L.length).replace(/(.)\/+$/,"$1")}const Y=b[N];return k&&!Y?p[w]=void 0:p[w]=(Y||"").replace(/%2F/g,"/"),p},{}),pathname:m,pathnameBase:g,pattern:i}}function C_(i,u=!1,s=!0){Yt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,b,_,p,w)=>{if(o.push({paramName:b,isOptional:_!=null}),_){let k=w.charAt(p+g.length);return k&&k!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),o]}function D_(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Yt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),i}}function Sa(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let s=u.endsWith("/")?u.length-1:u.length,o=i.charAt(s);return o&&o!=="/"?null:i.slice(s)||"/"}var N_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function M_(i,u="/"){let{pathname:s,search:o="",hash:f=""}=typeof i=="string"?il(i):i,m;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?m=gh(s.substring(1),"/"):m=gh(s,u)):m=u,{pathname:m,search:L_(o),hash:H_(f)}}function gh(i,u){let s=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function ws(i,u,s,o){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function U_(i){return i.filter((u,s)=>s===0||u.route.path&&u.route.path.length>0)}function Gs(i){let u=U_(i);return u.map((s,o)=>o===u.length-1?s.pathname:s.pathnameBase)}function $r(i,u,s,o=!1){let f;typeof i=="string"?f=il(i):(f={...i},qe(!f.pathname||!f.pathname.includes("?"),ws("?","pathname","search",f)),qe(!f.pathname||!f.pathname.includes("#"),ws("#","pathname","hash",f)),qe(!f.search||!f.search.includes("#"),ws("#","search","hash",f)));let m=i===""||f.pathname==="",g=m?"/":f.pathname,b;if(g==null)b=s;else{let k=u.length-1;if(!o&&g.startsWith("..")){let N=g.split("/");for(;N[0]==="..";)N.shift(),k-=1;f.pathname=N.join("/")}b=k>=0?u[k]:"/"}let _=M_(f,b),p=g&&g!=="/"&&g.endsWith("/"),w=(m||g===".")&&s.endsWith("/");return!_.pathname.endsWith("/")&&(p||w)&&(_.pathname+="/"),_}var ta=i=>i.join("/").replace(/\/\/+/g,"/"),q_=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),L_=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,H_=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,B_=class{constructor(i,u,s,o=!1){this.status=i,this.statusText=u||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Y_(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function G_(i){return i.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uh(i,u){let s=i;if(typeof s!="string"||!N_.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,f=!1;if(Mh)try{let m=new URL(window.location.href),g=s.startsWith("//")?new URL(m.protocol+s):new URL(s),b=Sa(g.pathname,u);g.origin===m.origin&&b!=null?s=b+g.search+g.hash:f=!0}catch{Yt(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qh=["POST","PUT","PATCH","DELETE"];new Set(qh);var V_=["GET",...qh];new Set(V_);var rl=y.createContext(null);rl.displayName="DataRouter";var Wr=y.createContext(null);Wr.displayName="DataRouterState";var X_=y.createContext(!1),Lh=y.createContext({isTransitioning:!1});Lh.displayName="ViewTransition";var Q_=y.createContext(new Map);Q_.displayName="Fetchers";var Z_=y.createContext(null);Z_.displayName="Await";var Rt=y.createContext(null);Rt.displayName="Navigation";var si=y.createContext(null);si.displayName="Location";var Gt=y.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Vs=y.createContext(null);Vs.displayName="RouteError";var Hh="REACT_ROUTER_ERROR",K_="REDIRECT",J_="ROUTE_ERROR_RESPONSE";function $_(i){if(i.startsWith(`${Hh}:${K_}:{`))try{let u=JSON.parse(i.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 W_(i){if(i.startsWith(`${Hh}:${J_}:{`))try{let u=JSON.parse(i.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new B_(u.status,u.statusText,u.data)}catch{}}function F_(i,{relative:u}={}){qe(ul(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=y.useContext(Rt),{hash:f,pathname:m,search:g}=ci(i,{relative:u}),b=m;return s!=="/"&&(b=m==="/"?s:ta([s,m])),o.createHref({pathname:b,search:g,hash:f})}function ul(){return y.useContext(si)!=null}function yt(){return qe(ul(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(si).location}var Bh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yh(i){y.useContext(Rt).static||y.useLayoutEffect(i)}function Fa(){let{isDataRoute:i}=y.useContext(Gt);return i?dv():I_()}function I_(){qe(ul(),"useNavigate() may be used only in the context of a <Router> component.");let i=y.useContext(rl),{basename:u,navigator:s}=y.useContext(Rt),{matches:o}=y.useContext(Gt),{pathname:f}=yt(),m=JSON.stringify(Gs(o)),g=y.useRef(!1);return Yh(()=>{g.current=!0}),y.useCallback((_,p={})=>{if(Yt(g.current,Bh),!g.current)return;if(typeof _=="number"){s.go(_);return}let w=$r(_,JSON.parse(m),f,p.relative==="path");i==null&&u!=="/"&&(w.pathname=w.pathname==="/"?u:ta([u,w.pathname])),(p.replace?s.replace:s.push)(w,p.state,p)},[u,s,m,f,i])}var P_=y.createContext(null);function ev(i){let u=y.useContext(Gt).outlet;return y.useMemo(()=>u&&y.createElement(P_.Provider,{value:i},u),[u,i])}function V1(){let{matches:i}=y.useContext(Gt),u=i[i.length-1];return u?u.params:{}}function ci(i,{relative:u}={}){let{matches:s}=y.useContext(Gt),{pathname:o}=yt(),f=JSON.stringify(Gs(s));return y.useMemo(()=>$r(i,JSON.parse(f),o,u==="path"),[i,f,o,u])}function tv(i,u){return Gh(i,u)}function Gh(i,u,s){var B;qe(ul(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=y.useContext(Rt),{matches:f}=y.useContext(Gt),m=f[f.length-1],g=m?m.params:{},b=m?m.pathname:"/",_=m?m.pathnameBase:"/",p=m&&m.route;{let U=p&&p.path||"";Xh(b,!p||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${b}" (under <Route path="${U}">) 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
+
61
+ Please change the parent <Route path="${U}"> to <Route path="${U==="/"?"*":`${U}/*`}">.`)}let w=yt(),k;if(u){let U=typeof u=="string"?il(u):u;qe(_==="/"||((B=U.pathname)==null?void 0:B.startsWith(_)),`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 "${_}" but pathname "${U.pathname}" was given in the \`location\` prop.`),k=U}else k=w;let N=k.pathname||"/",Y=N;if(_!=="/"){let U=_.replace(/^\//,"").split("/");Y="/"+N.replace(/^\//,"").split("/").slice(U.length).join("/")}let L=Ch(i,{pathname:Y});Yt(p||L!=null,`No routes matched location "${k.pathname}${k.search}${k.hash}" `),Yt(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${k.pathname}${k.search}${k.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 H=rv(L&&L.map(U=>Object.assign({},U,{params:Object.assign({},g,U.params),pathname:ta([_,o.encodeLocation?o.encodeLocation(U.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?_:ta([_,o.encodeLocation?o.encodeLocation(U.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathnameBase])})),f,s);return u&&H?y.createElement(si.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...k},navigationType:"POP"}},H):H}function av(){let i=fv(),u=Y_(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},m={padding:"2px 4px",backgroundColor:o},g=null;return console.error("Error handled by React Router default ErrorBoundary:",i),g=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:m},"ErrorBoundary")," or"," ",y.createElement("code",{style:m},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},u),s?y.createElement("pre",{style:f},s):null,g)}var nv=y.createElement(av,null),Vh=class extends y.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){this.props.onError?this.props.onError(i,u):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const s=W_(i.digest);s&&(i=s)}let u=i!==void 0?y.createElement(Gt.Provider,{value:this.props.routeContext},y.createElement(Vs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?y.createElement(lv,{error:i},u):u}};Vh.contextType=X_;var Ts=new WeakMap;function lv({children:i,error:u}){let{basename:s}=y.useContext(Rt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let o=$_(u.digest);if(o){let f=Ts.get(u);if(f)throw f;let m=Uh(o.location,s);if(Mh&&!Ts.get(u))if(m.isExternal||o.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:o.replace}));throw Ts.set(u,g),g}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function iv({routeContext:i,match:u,children:s}){let o=y.useContext(rl);return o&&o.static&&o.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=u.route.id),y.createElement(Gt.Provider,{value:i},s)}function rv(i,u=[],s){let o=s==null?void 0:s.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(u.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let f=i,m=o==null?void 0:o.errors;if(m!=null){let w=f.findIndex(k=>k.route.id&&(m==null?void 0:m[k.route.id])!==void 0);qe(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,w+1))}let g=!1,b=-1;if(s&&o){g=o.renderFallback;for(let w=0;w<f.length;w++){let k=f[w];if((k.route.HydrateFallback||k.route.hydrateFallbackElement)&&(b=w),k.route.id){let{loaderData:N,errors:Y}=o,L=k.route.loader&&!N.hasOwnProperty(k.route.id)&&(!Y||Y[k.route.id]===void 0);if(k.route.lazy||L){s.isStatic&&(g=!0),b>=0?f=f.slice(0,b+1):f=[f[0]];break}}}}let _=s==null?void 0:s.onError,p=o&&_?(w,k)=>{var N,Y;_(w,{location:o.location,params:((Y=(N=o.matches)==null?void 0:N[0])==null?void 0:Y.params)??{},unstable_pattern:G_(o.matches),errorInfo:k})}:void 0;return f.reduceRight((w,k,N)=>{let Y,L=!1,H=null,B=null;o&&(Y=m&&k.route.id?m[k.route.id]:void 0,H=k.route.errorElement||nv,g&&(b<0&&N===0?(Xh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,B=null):b===N&&(L=!0,B=k.route.hydrateFallbackElement||null)));let U=u.concat(f.slice(0,N+1)),K=()=>{let X;return Y?X=H:L?X=B:k.route.Component?X=y.createElement(k.route.Component,null):k.route.element?X=k.route.element:X=w,y.createElement(iv,{match:k,routeContext:{outlet:w,matches:U,isDataRoute:o!=null},children:X})};return o&&(k.route.ErrorBoundary||k.route.errorElement||N===0)?y.createElement(Vh,{location:o.location,revalidation:o.revalidation,component:H,error:Y,children:K(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:p}):K()},null)}function Xs(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uv(i){let u=y.useContext(rl);return qe(u,Xs(i)),u}function ov(i){let u=y.useContext(Wr);return qe(u,Xs(i)),u}function sv(i){let u=y.useContext(Gt);return qe(u,Xs(i)),u}function Qs(i){let u=sv(i),s=u.matches[u.matches.length-1];return qe(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function cv(){return Qs("useRouteId")}function fv(){var o;let i=y.useContext(Vs),u=ov("useRouteError"),s=Qs("useRouteError");return i!==void 0?i:(o=u.errors)==null?void 0:o[s]}function dv(){let{router:i}=uv("useNavigate"),u=Qs("useNavigate"),s=y.useRef(!1);return Yh(()=>{s.current=!0}),y.useCallback(async(f,m={})=>{Yt(s.current,Bh),s.current&&(typeof f=="number"?await i.navigate(f):await i.navigate(f,{fromRouteId:u,...m}))},[i,u])}var yh={};function Xh(i,u,s){!u&&!yh[i]&&(yh[i]=!0,Yt(!1,s))}y.memo(mv);function mv({routes:i,future:u,state:s,isStatic:o,onError:f}){return Gh(i,void 0,{state:s,isStatic:o,onError:f})}function ll({to:i,replace:u,state:s,relative:o}){qe(ul(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=y.useContext(Rt);Yt(!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}=y.useContext(Gt),{pathname:g}=yt(),b=Fa(),_=$r(i,Gs(m),g,o==="path"),p=JSON.stringify(_);return y.useEffect(()=>{b(JSON.parse(p),{replace:u,state:s,relative:o})},[b,p,o,u,s]),null}function hv(i){return ev(i.context)}function P(i){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 pv({basename:i="/",children:u=null,location:s,navigationType:o="POP",navigator:f,static:m=!1,unstable_useTransitions:g}){qe(!ul(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=i.replace(/^\/*/,"/"),_=y.useMemo(()=>({basename:b,navigator:f,static:m,unstable_useTransitions:g,future:{}}),[b,f,m,g]);typeof s=="string"&&(s=il(s));let{pathname:p="/",search:w="",hash:k="",state:N=null,key:Y="default",unstable_mask:L}=s,H=y.useMemo(()=>{let B=Sa(p,b);return B==null?null:{location:{pathname:B,search:w,hash:k,state:N,key:Y,unstable_mask:L},navigationType:o}},[b,p,w,k,N,Y,o,L]);return Yt(H!=null,`<Router basename="${b}"> is not able to match the URL "${p}${w}${k}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:y.createElement(Rt.Provider,{value:_},y.createElement(si.Provider,{children:u,value:H}))}function gv({children:i,location:u}){return tv(Cs(i),u)}function Cs(i,u=[]){let s=[];return y.Children.forEach(i,(o,f)=>{if(!y.isValidElement(o))return;let m=[...u,f];if(o.type===y.Fragment){s.push.apply(s,Cs(o.props.children,m));return}qe(o.type===P,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),qe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let g={id:o.props.id||m.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(g.children=Cs(o.props.children,m)),s.push(g)}),s}var Hr="get",Br="application/x-www-form-urlencoded";function Fr(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function yv(i){return Fr(i)&&i.tagName.toLowerCase()==="button"}function _v(i){return Fr(i)&&i.tagName.toLowerCase()==="form"}function vv(i){return Fr(i)&&i.tagName.toLowerCase()==="input"}function bv(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function xv(i,u){return i.button===0&&(!u||u==="_self")&&!bv(i)}function Ds(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((u,s)=>{let o=i[s];return u.concat(Array.isArray(o)?o.map(f=>[s,f]):[[s,o]])},[]))}function Sv(i,u){let s=Ds(i);return u&&u.forEach((o,f)=>{s.has(f)||u.getAll(f).forEach(m=>{s.append(f,m)})}),s}var zr=null;function kv(){if(zr===null)try{new FormData(document.createElement("form"),0),zr=!1}catch{zr=!0}return zr}var Ev=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function js(i){return i!=null&&!Ev.has(i)?(Yt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Br}"`),null):i}function wv(i,u){let s,o,f,m,g;if(_v(i)){let b=i.getAttribute("action");o=b?Sa(b,u):null,s=i.getAttribute("method")||Hr,f=js(i.getAttribute("enctype"))||Br,m=new FormData(i)}else if(yv(i)||vv(i)&&(i.type==="submit"||i.type==="image")){let b=i.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let _=i.getAttribute("formaction")||b.getAttribute("action");if(o=_?Sa(_,u):null,s=i.getAttribute("formmethod")||b.getAttribute("method")||Hr,f=js(i.getAttribute("formenctype"))||js(b.getAttribute("enctype"))||Br,m=new FormData(b,i),!kv()){let{name:p,type:w,value:k}=i;if(w==="image"){let N=p?`${p}.`:"";m.append(`${N}x`,"0"),m.append(`${N}y`,"0")}else p&&m.append(p,k)}}else{if(Fr(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Hr,o=null,f=Br,g=i}return m&&f==="text/plain"&&(g=m,m=void 0),{action:o,method:s.toLowerCase(),encType:f,formData:m,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Zs(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Tv(i,u,s,o){let f=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${o}`:f.pathname=`${f.pathname}.${o}`:f.pathname==="/"?f.pathname=`_root.${o}`:u&&Sa(f.pathname,u)==="/"?f.pathname=`${u.replace(/\/$/,"")}/_root.${o}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${o}`,f}async function jv(i,u){if(i.id in u)return u[i.id];try{let s=await import(i.module);return u[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rv(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Av(i,u,s){let o=await Promise.all(i.map(async f=>{let m=u.routes[f.route.id];if(m){let g=await jv(m,s);return g.links?g.links():[]}return[]}));return Dv(o.flat(1).filter(Rv).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function _h(i,u,s,o,f,m){let g=(_,p)=>s[p]?_.route.id!==s[p].route.id:!0,b=(_,p)=>{var w;return s[p].pathname!==_.pathname||((w=s[p].route.path)==null?void 0:w.endsWith("*"))&&s[p].params["*"]!==_.params["*"]};return m==="assets"?u.filter((_,p)=>g(_,p)||b(_,p)):m==="data"?u.filter((_,p)=>{var k;let w=o.routes[_.route.id];if(!w||!w.hasLoader)return!1;if(g(_,p)||b(_,p))return!0;if(_.route.shouldRevalidate){let N=_.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((k=s[0])==null?void 0:k.params)||{},nextUrl:new URL(i,window.origin),nextParams:_.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function zv(i,u,{includeHydrateFallback:s}={}){return Ov(i.map(o=>{let f=u.routes[o.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function Ov(i){return[...new Set(i)]}function Cv(i){let u={},s=Object.keys(i).sort();for(let o of s)u[o]=i[o];return u}function Dv(i,u){let s=new Set;return new Set(u),i.reduce((o,f)=>{let m=JSON.stringify(Cv(f));return s.has(m)||(s.add(m),o.push({key:m,link:f})),o},[])}function Qh(){let i=y.useContext(rl);return Zs(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Nv(){let i=y.useContext(Wr);return Zs(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ks=y.createContext(void 0);Ks.displayName="FrameworkContext";function Zh(){let i=y.useContext(Ks);return Zs(i,"You must render this element inside a <HydratedRouter> element"),i}function Mv(i,u){let s=y.useContext(Ks),[o,f]=y.useState(!1),[m,g]=y.useState(!1),{onFocus:b,onBlur:_,onMouseEnter:p,onMouseLeave:w,onTouchStart:k}=u,N=y.useRef(null);y.useEffect(()=>{if(i==="render"&&g(!0),i==="viewport"){let H=U=>{U.forEach(K=>{g(K.isIntersecting)})},B=new IntersectionObserver(H,{threshold:.5});return N.current&&B.observe(N.current),()=>{B.disconnect()}}},[i]),y.useEffect(()=>{if(o){let H=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(H)}}},[o]);let Y=()=>{f(!0)},L=()=>{f(!1),g(!1)};return s?i!=="intent"?[m,N,{}]:[m,N,{onFocus:ni(b,Y),onBlur:ni(_,L),onMouseEnter:ni(p,Y),onMouseLeave:ni(w,L),onTouchStart:ni(k,Y)}]:[!1,N,{}]}function ni(i,u){return s=>{i&&i(s),s.defaultPrevented||u(s)}}function Uv({page:i,...u}){let{router:s}=Qh(),o=y.useMemo(()=>Ch(s.routes,i,s.basename),[s.routes,i,s.basename]);return o?y.createElement(Lv,{page:i,matches:o,...u}):null}function qv(i){let{manifest:u,routeModules:s}=Zh(),[o,f]=y.useState([]);return y.useEffect(()=>{let m=!1;return Av(i,u,s).then(g=>{m||f(g)}),()=>{m=!0}},[i,u,s]),o}function Lv({page:i,matches:u,...s}){let o=yt(),{future:f,manifest:m,routeModules:g}=Zh(),{basename:b}=Qh(),{loaderData:_,matches:p}=Nv(),w=y.useMemo(()=>_h(i,u,p,m,o,"data"),[i,u,p,m,o]),k=y.useMemo(()=>_h(i,u,p,m,o,"assets"),[i,u,p,m,o]),N=y.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let H=new Set,B=!1;if(u.forEach(K=>{var ue;let X=m.routes[K.route.id];!X||!X.hasLoader||(!w.some(ce=>ce.route.id===K.route.id)&&K.route.id in _&&((ue=g[K.route.id])!=null&&ue.shouldRevalidate)||X.hasClientLoader?B=!0:H.add(K.route.id))}),H.size===0)return[];let U=Tv(i,b,f.unstable_trailingSlashAwareDataRequests,"data");return B&&H.size>0&&U.searchParams.set("_routes",u.filter(K=>H.has(K.route.id)).map(K=>K.route.id).join(",")),[U.pathname+U.search]},[b,f.unstable_trailingSlashAwareDataRequests,_,o,m,w,u,i,g]),Y=y.useMemo(()=>zv(k,m),[k,m]),L=qv(k);return y.createElement(y.Fragment,null,N.map(H=>y.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...s})),Y.map(H=>y.createElement("link",{key:H,rel:"modulepreload",href:H,...s})),L.map(({key:H,link:B})=>y.createElement("link",{key:H,nonce:s.nonce,...B,crossOrigin:B.crossOrigin??s.crossOrigin})))}function Hv(...i){return u=>{i.forEach(s=>{typeof s=="function"?s(u):s!=null&&(s.current=u)})}}var Bv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Bv&&(window.__reactRouterVersion="7.13.1")}catch{}function Yv({basename:i,children:u,unstable_useTransitions:s,window:o}){let f=y.useRef();f.current==null&&(f.current=y_({window:o,v5Compat:!0}));let m=f.current,[g,b]=y.useState({action:m.action,location:m.location}),_=y.useCallback(p=>{s===!1?b(p):y.startTransition(()=>b(p))},[s]);return y.useLayoutEffect(()=>m.listen(_),[m,_]),y.createElement(pv,{basename:i,children:u,location:g.location,navigationType:g.action,navigator:m,unstable_useTransitions:s})}var Kh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jh=y.forwardRef(function({onClick:u,discover:s="render",prefetch:o="none",relative:f,reloadDocument:m,replace:g,unstable_mask:b,state:_,target:p,to:w,preventScrollReset:k,viewTransition:N,unstable_defaultShouldRevalidate:Y,...L},H){let{basename:B,navigator:U,unstable_useTransitions:K}=y.useContext(Rt),X=typeof w=="string"&&Kh.test(w),ue=Uh(w,B);w=ue.to;let ce=F_(w,{relative:f}),ge=yt(),F=null;if(b){let Me=$r(b,[],ge.unstable_mask?ge.unstable_mask.pathname:"/",!0);B!=="/"&&(Me.pathname=Me.pathname==="/"?B:ta([B,Me.pathname])),F=U.createHref(Me)}let[W,se,Pe]=Mv(o,L),Je=Xv(w,{replace:g,unstable_mask:b,state:_,target:p,preventScrollReset:k,relative:f,viewTransition:N,unstable_defaultShouldRevalidate:Y,unstable_useTransitions:K});function Ce(Me){u&&u(Me),Me.defaultPrevented||Je(Me)}let At=!(ue.isExternal||m),ut=y.createElement("a",{...L,...Pe,href:(At?F:void 0)||ue.absoluteURL||ce,onClick:At?Ce:u,ref:Hv(H,se),target:p,"data-discover":!X&&s==="render"?"true":void 0});return W&&!X?y.createElement(y.Fragment,null,ut,y.createElement(Uv,{page:ce})):ut});Jh.displayName="Link";var Js=y.forwardRef(function({"aria-current":u="page",caseSensitive:s=!1,className:o="",end:f=!1,style:m,to:g,viewTransition:b,children:_,...p},w){let k=ci(g,{relative:p.relative}),N=yt(),Y=y.useContext(Wr),{navigator:L,basename:H}=y.useContext(Rt),B=Y!=null&&$v(k)&&b===!0,U=L.encodeLocation?L.encodeLocation(k).pathname:k.pathname,K=N.pathname,X=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;s||(K=K.toLowerCase(),X=X?X.toLowerCase():null,U=U.toLowerCase()),X&&H&&(X=Sa(X,H)||X);const ue=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let ce=K===U||!f&&K.startsWith(U)&&K.charAt(ue)==="/",ge=X!=null&&(X===U||!f&&X.startsWith(U)&&X.charAt(U.length)==="/"),F={isActive:ce,isPending:ge,isTransitioning:B},W=ce?u:void 0,se;typeof o=="function"?se=o(F):se=[o,ce?"active":null,ge?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let Pe=typeof m=="function"?m(F):m;return y.createElement(Jh,{...p,"aria-current":W,className:se,ref:w,style:Pe,to:g,viewTransition:b},typeof _=="function"?_(F):_)});Js.displayName="NavLink";var Gv=y.forwardRef(({discover:i="render",fetcherKey:u,navigate:s,reloadDocument:o,replace:f,state:m,method:g=Hr,action:b,onSubmit:_,relative:p,preventScrollReset:w,viewTransition:k,unstable_defaultShouldRevalidate:N,...Y},L)=>{let{unstable_useTransitions:H}=y.useContext(Rt),B=Kv(),U=Jv(b,{relative:p}),K=g.toLowerCase()==="get"?"get":"post",X=typeof b=="string"&&Kh.test(b),ue=ce=>{if(_&&_(ce),ce.defaultPrevented)return;ce.preventDefault();let ge=ce.nativeEvent.submitter,F=(ge==null?void 0:ge.getAttribute("formmethod"))||g,W=()=>B(ge||ce.currentTarget,{fetcherKey:u,method:F,navigate:s,replace:f,state:m,relative:p,preventScrollReset:w,viewTransition:k,unstable_defaultShouldRevalidate:N});H&&s!==!1?y.startTransition(()=>W()):W()};return y.createElement("form",{ref:L,method:K,action:U,onSubmit:o?_:ue,...Y,"data-discover":!X&&i==="render"?"true":void 0})});Gv.displayName="Form";function Vv(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $h(i){let u=y.useContext(rl);return qe(u,Vv(i)),u}function Xv(i,{target:u,replace:s,unstable_mask:o,state:f,preventScrollReset:m,relative:g,viewTransition:b,unstable_defaultShouldRevalidate:_,unstable_useTransitions:p}={}){let w=Fa(),k=yt(),N=ci(i,{relative:g});return y.useCallback(Y=>{if(xv(Y,u)){Y.preventDefault();let L=s!==void 0?s:oi(k)===oi(N),H=()=>w(i,{replace:L,unstable_mask:o,state:f,preventScrollReset:m,relative:g,viewTransition:b,unstable_defaultShouldRevalidate:_});p?y.startTransition(()=>H()):H()}},[k,w,N,s,o,f,u,i,m,g,b,_,p])}function X1(i){Yt(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=y.useRef(Ds(i)),s=y.useRef(!1),o=yt(),f=y.useMemo(()=>Sv(o.search,s.current?null:u.current),[o.search]),m=Fa(),g=y.useCallback((b,_)=>{const p=Ds(typeof b=="function"?b(new URLSearchParams(f)):b);s.current=!0,m("?"+p,_)},[m,f]);return[f,g]}var Qv=0,Zv=()=>`__${String(++Qv)}__`;function Kv(){let{router:i}=$h("useSubmit"),{basename:u}=y.useContext(Rt),s=cv(),o=i.fetch,f=i.navigate;return y.useCallback(async(m,g={})=>{let{action:b,method:_,encType:p,formData:w,body:k}=wv(m,u);if(g.navigate===!1){let N=g.fetcherKey||Zv();await o(N,s,g.action||b,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:w,body:k,formMethod:g.method||_,formEncType:g.encType||p,flushSync:g.flushSync})}else await f(g.action||b,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:w,body:k,formMethod:g.method||_,formEncType:g.encType||p,replace:g.replace,state:g.state,fromRouteId:s,flushSync:g.flushSync,viewTransition:g.viewTransition})},[o,f,u,s])}function Jv(i,{relative:u}={}){let{basename:s}=y.useContext(Rt),o=y.useContext(Gt);qe(o,"useFormAction must be used inside a RouteContext");let[f]=o.matches.slice(-1),m={...ci(i||".",{relative:u})},g=yt();if(i==null){m.search=g.search;let b=new URLSearchParams(m.search),_=b.getAll("index");if(_.some(w=>w==="")){b.delete("index"),_.filter(k=>k).forEach(k=>b.append("index",k));let w=b.toString();m.search=w?`?${w}`:""}}return(!i||i===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(m.pathname=m.pathname==="/"?s:ta([s,m.pathname])),oi(m)}function $v(i,{relative:u}={}){let s=y.useContext(Lh);qe(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=$h("useViewTransitionState"),f=ci(i,{relative:u});if(!s.isTransitioning)return!1;let m=Sa(s.currentLocation.pathname,o)||s.currentLocation.pathname,g=Sa(s.nextLocation.pathname,o)||s.nextLocation.pathname;return Zr(f.pathname,g)!=null||Zr(f.pathname,m)!=null}function Wh(i,u){return i?i.length<=u?i:i.slice(0,u)+"...":""}/**
62
+ * @license lucide-react v0.469.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const Wv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fh=(...i)=>i.filter((u,s,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===s).join(" ").trim();/**
67
+ * @license lucide-react v0.469.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */var Fv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
+ * @license lucide-react v0.469.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const Iv=y.forwardRef(({color:i="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:f="",children:m,iconNode:g,...b},_)=>y.createElement("svg",{ref:_,...Fv,width:u,height:u,stroke:i,strokeWidth:o?Number(s)*24/Number(u):s,className:Fh("lucide",f),...b},[...g.map(([p,w])=>y.createElement(p,w)),...Array.isArray(m)?m:[m]]));/**
77
+ * @license lucide-react v0.469.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const _e=(i,u)=>{const s=y.forwardRef(({className:o,...f},m)=>y.createElement(Iv,{ref:m,iconNode:u,className:Fh(`lucide-${Wv(i)}`,o),...f}));return s.displayName=`${i}`,s};/**
82
+ * @license lucide-react v0.469.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Pv=_e("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
87
+ * @license lucide-react v0.469.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const eb=_e("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
92
+ * @license lucide-react v0.469.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const tb=_e("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
97
+ * @license lucide-react v0.469.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const ab=_e("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);/**
102
+ * @license lucide-react v0.469.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const nb=_e("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);/**
107
+ * @license lucide-react v0.469.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const lb=_e("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
112
+ * @license lucide-react v0.469.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const ib=_e("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
117
+ * @license lucide-react v0.469.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Ih=_e("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
122
+ * @license lucide-react v0.469.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const rb=_e("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
127
+ * @license lucide-react v0.469.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const Ph=_e("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
132
+ * @license lucide-react v0.469.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const ub=_e("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/**
137
+ * @license lucide-react v0.469.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const ob=_e("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/**
142
+ * @license lucide-react v0.469.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const sb=_e("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
147
+ * @license lucide-react v0.469.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const cb=_e("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
152
+ * @license lucide-react v0.469.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const ep=_e("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
157
+ * @license lucide-react v0.469.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const fb=_e("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
162
+ * @license lucide-react v0.469.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const tp=_e("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
167
+ * @license lucide-react v0.469.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const db=_e("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
172
+ * @license lucide-react v0.469.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const mb=_e("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
177
+ * @license lucide-react v0.469.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const hb=_e("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
182
+ * @license lucide-react v0.469.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const pb=_e("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
187
+ * @license lucide-react v0.469.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const ap=_e("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
192
+ * @license lucide-react v0.469.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const np=_e("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
197
+ * @license lucide-react v0.469.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const lp=_e("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
202
+ * @license lucide-react v0.469.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const gb=_e("Share",[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]]);/**
207
+ * @license lucide-react v0.469.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const yb=_e("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
212
+ * @license lucide-react v0.469.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const _b=_e("Sparkles",[["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"}]]);/**
217
+ * @license lucide-react v0.469.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const vb=_e("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
222
+ * @license lucide-react v0.469.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const bb=_e("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
227
+ * @license lucide-react v0.469.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const $s=_e("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
232
+ * @license lucide-react v0.469.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const ip=_e("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
237
+ * @license lucide-react v0.469.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const xb=_e("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
242
+ * @license lucide-react v0.469.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const rp=_e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),vh=i=>{let u;const s=new Set,o=(p,w)=>{const k=typeof p=="function"?p(u):p;if(!Object.is(k,u)){const N=u;u=w??(typeof k!="object"||k===null)?k:Object.assign({},u,k),s.forEach(Y=>Y(u,N))}},f=()=>u,b={setState:o,getState:f,getInitialState:()=>_,subscribe:p=>(s.add(p),()=>s.delete(p))},_=u=i(o,f,b);return b},Sb=(i=>i?vh(i):vh),kb=i=>i;function Eb(i,u=kb){const s=Ar.useSyncExternalStore(i.subscribe,Ar.useCallback(()=>u(i.getState()),[i,u]),Ar.useCallback(()=>u(i.getInitialState()),[i,u]));return Ar.useDebugValue(s),s}const bh=i=>{const u=Sb(i),s=o=>Eb(u,o);return Object.assign(s,u),s},Ir=(i=>i?bh(i):bh),Or="overlord-access-token",Cr="overlord-refresh-token",We={getAccessToken(){return localStorage.getItem(Or)},setAccessToken(i){localStorage.setItem(Or,i)},getRefreshToken(){return localStorage.getItem(Cr)},setRefreshToken(i){localStorage.setItem(Cr,i)},setTokens(i,u){localStorage.setItem(Or,i),localStorage.setItem(Cr,u)},clearTokens(){localStorage.removeItem(Or),localStorage.removeItem(Cr)},parseToken(i){try{const u=i.split(".")[1];return JSON.parse(atob(u))}catch{return null}},hasScope(i,u){const s=We.parseToken(i);return s?s.scope===u:!1},isExpired(i){const u=We.parseToken(i);return!u||typeof u.exp!="number"?!0:Date.now()/1e3>u.exp-30}};function Rs(i){const u=We.parseToken(i);if(!u)return null;const s=u.name??"";return{id:u.sub,username:s,display_name:s,role:u.role}}const xa=Ir((i,u)=>({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!1,initializing:!0,initialize:()=>{const s=We.getAccessToken();s&&!We.isExpired(s)?i({accessToken:s,user:Rs(s),requireTotpSetup:We.hasScope(s,"totp_setup"),initializing:!1}):We.getRefreshToken()?u().refresh().catch(()=>{We.clearTokens()}).finally(()=>{i({initializing:!1})}):i({initializing:!1})},login:async s=>{var m;const o=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok){const g=await o.json().catch(()=>({message:"Login failed"})),b=((m=g.error)==null?void 0:m.message)??g.message??"Login failed";throw new Error(b)}const f=await o.json();if(f.totpSetup){We.setAccessToken(f.accessToken),i({accessToken:f.accessToken,user:null,requireTotpSetup:!0});return}We.setTokens(f.accessToken,f.refreshToken),i({accessToken:f.accessToken,user:Rs(f.accessToken),requireTotpSetup:!1,sessionExpired:!1})},logout:()=>{const s=We.getRefreshToken();s&&fetch("/api/auth/logout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:s})}).catch(()=>{}),We.clearTokens(),i({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!1})},refresh:(()=>{let s=null;return async()=>s||(s=(async()=>{const o=We.getRefreshToken();if(!o)throw We.clearTokens(),i({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!0}),new Error("No refresh token");const f=await fetch("/api/auth/refresh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:o})});if(!f.ok)throw We.clearTokens(),i({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!0}),new Error("Refresh failed");const m=await f.json();We.setTokens(m.accessToken,m.refreshToken),i({accessToken:m.accessToken,user:Rs(m.accessToken)})})().finally(()=>{s=null}),s)})(),setSessionExpired:s=>{i({sessionExpired:s})}})),Q1={QUEUED:"QUEUED",ASSIGNED:"ASSIGNED",RUNNING:"RUNNING",SUSPENDED:"SUSPENDED",COMPLETED:"COMPLETED",FAILED:"FAILED",CANCELLED:"CANCELLED"},Z1={ONLINE:"online",OFFLINE:"offline",DRAINING:"draining",DECOMMISSIONED:"decommissioned"},up={DEVELOPER:"developer",LEAD:"lead",ADMIN:"admin"},K1={MAINTAINER:"maintainer",MEMBER:"member"},J1={CLAUDE:"claude",CURSOR:"cursor",CODEX:"codex"},$1={ACTIVE:"active",USED:"used",REVOKED:"revoked",EXPIRED:"expired"},W1={GITLAB:"gitlab",GITHUB:"github",GITEA:"gitea"},F1={ACTIVE:"active",DISABLED:"disabled"},I1={ACTIVE:"active"},P1={IDLE:"IDLE",STARTING:"STARTING",CONNECTED:"CONNECTED",EXPIRED:"EXPIRED",CLOSING:"CLOSING",CLOSED:"CLOSED"};function wb(){return xa(i=>{var u;return((u=i.user)==null?void 0:u.role)===up.ADMIN})??!1}const op="overlord-sidebar-collapsed";function Tb(){try{return localStorage.getItem(op)==="true"}catch{return!1}}const jb=Ir((i,u)=>({sidebarCollapsed:Tb(),toggleSidebar:()=>{const s=!u().sidebarCollapsed;try{localStorage.setItem(op,String(s))}catch{}i({sidebarCollapsed:s})}}));class Rb{constructor(){Ve(this,"ws",null);Ve(this,"reconnectAttempts",0);Ve(this,"maxReconnectAttempts",15);Ve(this,"reconnectTimer",null);Ve(this,"disposed",!1);Ve(this,"authenticated",!1);Ve(this,"eventHandlers",new Set);Ve(this,"statusHandlers",new Set)}onEvent(u){return this.eventHandlers.add(u),()=>this.eventHandlers.delete(u)}onStatus(u){return this.statusHandlers.add(u),()=>this.statusHandlers.delete(u)}get isConnected(){var u;return this.authenticated&&((u=this.ws)==null?void 0:u.readyState)===WebSocket.OPEN}connect(){var f,m;if(this.disposed||((f=this.ws)==null?void 0:f.readyState)===WebSocket.OPEN||((m=this.ws)==null?void 0:m.readyState)===WebSocket.CONNECTING)return;const u=We.getAccessToken();if(!u||We.isExpired(u))return;const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/events`;this.notifyStatus("connecting"),this.authenticated=!1,this.ws=new WebSocket(o),this.ws.onopen=()=>{var b,_;const g=We.getAccessToken();g?(b=this.ws)==null||b.send(JSON.stringify({type:"auth",token:g})):(_=this.ws)==null||_.close()},this.ws.onmessage=g=>{var b;if(typeof g.data=="string")try{const _=JSON.parse(g.data);if(_.type==="auth_ok"){this.authenticated=!0,this.reconnectAttempts=0,this.notifyStatus("connected");return}if(_.type==="auth_error"){(b=this.ws)==null||b.close();return}if(_.type==="event")for(const p of this.eventHandlers)try{p(_)}catch{}}catch{}},this.ws.onclose=()=>{this.authenticated=!1,this.notifyStatus("disconnected"),this.scheduleReconnect()},this.ws.onerror=()=>{var g;(g=this.ws)==null||g.close()}}disconnect(){var u;this.clearReconnectTimer(),this.authenticated=!1,(u=this.ws)==null||u.close(),this.ws=null}dispose(){this.disposed=!0,this.disconnect(),this.eventHandlers.clear(),this.statusHandlers.clear()}reconnect(){this.disconnect(),this.reconnectAttempts=0,this.connect()}scheduleReconnect(){if(this.disposed||this.reconnectAttempts>=this.maxReconnectAttempts)return;const u=Math.min(1e3*2**this.reconnectAttempts,3e4);this.reconnectAttempts++,this.reconnectTimer=setTimeout(()=>{this.disposed||this.connect()},u)}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}notifyStatus(u){for(const s of this.statusHandlers)try{s(u)}catch{}}}const Dr=new Rb,sp=Ir(i=>({status:"disconnected",lastEvent:null,eventSeq:0,taskSeq:0,workerSeq:0,init:()=>{const u=Dr.onEvent(o=>{const f=o.event==="task_status_changed"||o.event==="task_created"||o.event==="review_round_complete",m=o.event==="worker_status_changed";i(g=>({lastEvent:o,eventSeq:g.eventSeq+1,...f&&{taskSeq:g.taskSeq+1},...m&&{workerSeq:g.workerSeq+1}}))}),s=Dr.onStatus(o=>{const f=sp.getState().status;i({status:o}),f==="disconnected"&&o==="connected"&&i(m=>({eventSeq:m.eventSeq+1,taskSeq:m.taskSeq+1,workerSeq:m.workerSeq+1}))});return Dr.connect(),()=>{u(),s(),Dr.disconnect()}}})),cp="overlord-theme";function Ab(){try{const i=localStorage.getItem(cp);if(i==="light"||i==="dark"||i==="system")return i}catch{}return"dark"}function xh(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const fp=Ir(i=>{const u=Ab(),s=u==="system"?xh():u;return{theme:u,resolved:s,setTheme:o=>{localStorage.setItem(cp,o);const f=o==="system"?xh():o;i({theme:o,resolved:f})},setResolved:o=>{i({resolved:o})}}}),zb={common:{cancel:"cancel",confirm:"confirm",save:"save",delete:"delete",edit:"edit",create:"create",copy:"copy",copied:"copied",close:"close",back:"back",go_back:"go back",go_home:"go home",dismiss:"dismiss",retry:"retry",loading:"// thinking...",processing:"processing...",creating:"creating...",saving:"saving...",updating:"updating...",verifying:"verifying...",signing_in:"signing in...",just_now:"just now",never:"never",previous:"previous",next:"next",enabled:"enabled",disabled:"disabled",runtime_error:"// runtime error",an_unexpected_error_occurred:"an unexpected error occurred",reload:"reload",not_found:"404",page_not_found:"// page not found",the_page_does_not_exist:"the page you are looking for does not exist or has been moved.",not_found_terminal_error:"error: requested not found - page does not exist",not_set:"not set",view_all:"view all",discard:"discard",save_changes:"save changes",remove:"remove",actions:"actions",name:"name",status:"status",role:"role",created_at:"created at",m_ago:"{n}m ago",h_ago:"{n}h ago",d_ago:"{n}d ago",loop_section:"// loop",tasks_section:"// tasks",fleet_section:"// fleet",docs_section:"// docs",admin_section:"// admin",overlord:"overlord",logout:"logout",logout_title:"// logout",logout_message:"are you sure you want to log out?",log_out:"log out",profile:"profile",search_placeholder:"search",search_input_placeholder:"search tasks, workers, projects...",no_search_results:'// no results for "{query}"',navigate_hint:"navigate",select_hint:"select",close_hint:"close",notifications:"notifications",mark_all_read:"mark all read",no_notifications:"// no notifications",mark_as_read:"mark as read",switch_to_light:"switch to light mode",switch_to_dark:"switch to dark mode",light_mode:"light mode",dark_mode:"dark mode",dismiss_notification:"dismiss",breadcrumb_terminal:"terminal",breadcrumb_terminal_sub:"active sessions",breadcrumb_dashboard:"dashboard",breadcrumb_dashboard_sub:"active overview",breadcrumb_tasks:"tasks",breadcrumb_tasks_sub:"queue management",breadcrumb_workers:"workers",breadcrumb_workers_sub:"fleet status",breadcrumb_projects:"projects",breadcrumb_projects_sub:"repository index",breadcrumb_admin:"admin",breadcrumb_admin_sub:"system control",breadcrumb_profile:"profile",breadcrumb_profile_sub:"user settings",breadcrumb_tokens:"tokens",breadcrumb_tokens_sub:"personal api tokens",breadcrumb_docs:"docs",breadcrumb_docs_sub:"documentation",breadcrumb_docs_cli:"docs",breadcrumb_docs_cli_sub:"cli",breadcrumb_docs_api:"docs",breadcrumb_docs_api_sub:"api",breadcrumb_docs_skill:"docs",breadcrumb_docs_skill_sub:"skill",breadcrumb_docs_bot_sub:"bot",breadcrumb_docs_all_sub:"all"},auth:{sign_in:"sign in",username:"username",enter_username:"enter username",password:"password",enter_password:"enter password",ai_powered_development_system:"// ai-powered development system",username_and_password_required:"username and password are required.",login_failed:"login failed",invalid_totp_code:"invalid totp code",two_factor_verification:"// 2fa verification",enter_totp_code:"enter your totp code",please_enter_valid_6_digit_code:"please enter a valid 6-digit code.",session_expired:"session expired",session_expired_message:"// your session has expired. please log in again.",go_to_login:"go to login",totp_setup_subtitle:"// scan the qr code with your authenticator app",verification_code:"verification code",verify_and_enable:"verify and enable",totp_setup_complete_login_again:"2fa setup complete! please log in again.",totp_setup_failed:"verification failed. please try again.",totp_setup_footer:"// you must complete this setup before accessing the application",totp_manual_entry:"// or enter this key manually",verify:"verify",initializing:"// initializing...",failed_to_init_totp:"failed to initialize totp setup"},dashboard:{title:"dashboard",tasks_active_queued:"active / queued",online_workers:"online workers",completed_all_today:"completed all today",completed_by_you_today:"completed by you today",task_count:"> task count",success_rate:"success rate",last_7_days:"last 7 days",recent_tasks:"> recent tasks",no_tasks_yet:"// no tasks yet",workers:"> workers",no_workers_registered:"// no workers registered",projects:"> projects",recent_activity:"> recent activity",no_recent_activity:"// no recent activity",daily_breakdown_not_available:"// daily breakdown not available",task_total:"task",tasks_total:"tasks",slots:"slots",online:"online",idle:"idle",offline:"offline"},tasks:{title:"tasks",create_task:"create task",new_task:"new task",task_description:"task description",describe_task_placeholder:"describe the development task in detail...",project:"project",select_project:"select project...",task_type:"type",branch_slug:"branch name (optional)",branch_slug_placeholder:"auto-generated from description",target_branch:"target branch (optional)",target_branch_placeholder:"defaults to project default branch",target_worker:"target worker (optional)",any_able:"any able",assign_developer:"assign developer (admin only)",select_developer:"select developer...",search_tasks:"search tasks...",filter_project:"all projects",filter_developer:"all developers",id:"id",description_col:"description",status_col:"status",project_col:"project",assignee:"assignee",worker:"worker",time:"time",stage:"stage",no_tasks_found:"no tasks found",try_adjusting_search:"try adjusting your search query",create_first_task:"create your first task to get started",tab_all:"all",tab_running:"running",tab_queued:"queued",tab_completed:"completed",tab_failed:"failed",tab_cancelled:"cancelled",status_queued:"queued",status_assigned:"assigned",status_running:"running",status_suspended:"suspended",status_completed:"completed",status_failed:"failed",status_cancelled:"cancelled",similar_task_exists:"a similar task already exists.",view_existing:"view existing",cancel_task:"cancel",retry_task:"retry",cursor_tunnel:"IDE tunnel",skip_stage:"skip stage",take_over:"take over",connected:"connected",disconnected:"disconnected",connecting:"connecting",terminal:"terminal",pipeline_tab:"pipeline",logs:"logs",task_not_found:"// task not found",back_to_tasks:"back to tasks",cancel_task_title:"cancel task",fork_task:"fork task",fork_task_desc:"create a new task based on this one. new text appends to the original detail by default.",fork_description_placeholder:"enter extra detail to append (leave empty to reuse original)",fork_agent_type_placeholder:"same as source ({agent})",fork_replace_description:"replace original detail instead of appending",fork_append_hint:"without replace enabled, your input is appended after the original detail",fork_success:"task forked successfully",fork_error:"failed to fork task",activity_log:"> activity log",no_activity:"// no activity yet",confirm_stage_message:'confirm execution of stage "{name}"? this will proceed with the pipeline.',plan_review_message:'review the implementation plan for stage "{name}". approve to proceed or provide feedback.',plan_decompose_message:"spec document has been generated and pushed. would you like to decompose it into development tasks?",code_review_message:'review the changes for stage "{name}". approve to proceed or provide feedback.',feedback_placeholder:"provide feedback (optional)...",approve_plan:"approve plan",approve_plan_decompose:"decompose into tasks",reject_plan_decompose:"save spec only",approve_review:"approve changes",request_changes:"request changes",loading_task:"// thinking...",task_suspended_banner:"// task suspended — waiting for user confirmation",pending_confirmation:"> pending confirmation",pipeline_requires_confirmation:"the pipeline requires confirmation before proceeding.",confirm_and_proceed:"confirm and proceed",confirm_failed:"failed to confirm stage",reject:"reject",pty_terminal:"// pty terminal",view_terminal:"switch to terminal tab",restore_auto:"restore auto",requesting_takeover:"requesting...",pipeline_stages:"// pipeline stages",task_info:"> task info",stage_timeline:"> stage timeline",workspace_section:"> workspace",mr_link:"MR link",queue_position:"queue position: #{position} of {total}",queue_ahead:"{count} task(s) ahead",queue_next:"next to be processed",queue_position_banner:"// queued — position #{position} of {total}",no_worker_assigned:"// no worker assigned",no_output:"// no output",pty_output:"> PTY output",stage_progress:"> stage progress",task_logs:"> task logs",full_terminal:"open full terminal",return_to_companion:"return to companion",complex_terminal_hint:"complex terminal detected. use the full terminal for the best view.",search_logs:"search logs...",no_log_entries:"// no log entries",prev:"prev",cursor_tunnel_section:"> IDE tunnel",auto_pipeline:"auto pipeline",manual_takeover:"manual takeover",takeover_denied:"takeover denied",form_project_label:"project",form_description_label:"description",form_description_placeholder:"describe the task for the ai agent...",form_worker_preference:"worker preference",form_worker_placeholder:"optional: worker id or name (--on)",form_worker_hint:"leave empty for automatic worker selection.",form_agent_type:"agent",form_agent_type_placeholder:"default",form_select_project:"select a project",form_create_task:"create task",project_and_description_required:"project and description are required.",failed_to_create_task:"failed to create task.",tunnel_idle:"idle",tunnel_starting:"starting...",tunnel_connected:"connected",tunnel_expired:"expired",tunnel_closing:"closing...",tunnel_start:"start",tunnel_open_in_cursor:"open in IDE",tunnel_header:"> IDE tunnel",tunnel_copied:"// copied to clipboard",tunnel_waiting:"// waiting for connection url...",tunnel_start_button:"> start tunnel",tunnel_starting_button:"// starting...",tunnel_stopping:"// stopping...",tunnel_cancel:"> cancel",tunnel_open_cursor:"> open in IDE",tunnel_open_vscode:"> open in vscode",tunnel_stop:"> stop tunnel",tunnel_restart:"> restart tunnel",tunnel_copy_url:"copy url",tunnel_expires_hm:"expires in {h}h {m}m",tunnel_expires_m:"expires in {m}m",tunnel_start_failed:"failed to start tunnel",tunnel_install_code_hint:'install the VS Code CLI ("code" command) to enable tunnels',dedup_title:"> similar task exists",dedup_description:"// a similar task was found that may already address your request",dedup_create_anyway:"create anyway",stage_submitting:"submitting...",cancel_task_message:"are you sure you want to cancel task #{id}? this will terminate the running agent and cannot be undone.",cancel_task_confirm_label:"cancel task",retry_title:"retry task",retry_confirm_label:"retry",retry_message_with_mr:"task #{id} has an existing mr ({url}). retrying will create a new attempt on the same branch. continue?",retry_message_without_mr:"are you sure you want to retry task #{id}? this will create a new execution attempt.",reuse_workspace_label:"reuse existing workspace (skip worktree recreation, continue on current branch)",detail_tab:"detail",detail_basic_info:"> basic info",detail_creator:"creator",detail_project:"project",detail_worker:"worker",detail_time_cost:"time cost",detail_branch:"branch",detail_task_name:"> task name & description",detail_ai_name:"ai-generated name",detail_task_id:"task id",detail_source:"source platform",detail_description:"> description"},workers:{title:"workers",fleet:"fleet",setup_guide:"setup guide",all_statuses:"all",register_worker:"register worker",no_workers_found:"no workers found",no_workers_registered:"no workers have registered yet",try_changing_status_filter:"try changing the status filter",view_setup_guide:"view setup guide",online:"online",offline:"offline",draining:"draining",cpu:"cpu",mem:"mem",disk:"disk",tasks_slots:"tasks: {active}/{max} slots",back_to_workers:"back to workers",drain:"drain",undrain:"undrain",last_heartbeat:"last heartbeat: {time}",resource_usage:"> resource usage",connection_info:"> connection info",capabilities:"> capabilities",current_tasks:"> current tasks",host:"host",os:"os",cpu_model:"CPU model",cpu_cores:"CPU cores",memory:"memory",loading_worker:"// thinking...",worker_not_found:"// worker not found",draining_warning:"// this worker is draining — no new tasks will be assigned",draining_active_tasks:"active tasks will continue to run until completion",active_tasks:"> active tasks",no_active_tasks:"// no active tasks on this worker",worker_info:"> worker info",unknown:"unknown",n_a:"n/a",id:"id",description:"description",stage:"stage",no_capabilities_short:"// no capabilities",slots:"slots",status_label:"status",undrain_worker_title:"> undrain worker",drain_worker_title:"> drain worker",undrain_confirm:"are you sure you want to undrain {name}? the worker will start accepting new tasks again.",drain_confirm:"are you sure you want to drain {name}? running tasks will complete, but no new tasks will be assigned until the worker is undrained.",decommission:"decommission",decommission_title:"> decommission worker",decommission_confirm:'permanently decommission "{name}"? active tasks will be failed or re-queued, and the worker will be disconnected. this cannot be undone.',restore_capability:"restore capability",restore_capability_title:"> restore capability",restore_capability_confirm:"restore {capability} on {name}? this only clears the degradation flag. it does not fix the underlying issue.",awaiting_auto_recovery:"awaiting auto-recovery",manual_restore_required:"manual restore required",worker_id:"worker ID",setup_header_desc:"// follow these steps to add a new worker to your overlord cluster.",prerequisites:"// prerequisites",prereq_machine:"linux or macos machine with at least 2 cpu cores and 4gb ram",prereq_node:"node.js 18+ and pnpm installed",prereq_git:"git installed (2.25+)",prereq_network:"network access to the overlord server",prereq_token:"admin-generated worker registration token",step_generate_token:"generate worker token",step_generate_token_desc:"// create a one-time registration token from the admin panel. each token can register exactly one worker.",go_to_token_management:"go to token management",step_install_worker:"install worker package",step_install_worker_desc:"// install the overlord worker package globally via npm.",step_configure_env:"configure environment",step_configure_env_desc:"// create a .env file in ~/.overlord-worker/ or set environment variables.",env_host:"overlord server address (required)",env_worker_token:"one-time registration token (required for first run)",env_worker_name:"display name (defaults to hostname)",env_workspace_root:"task workspace directory (defaults to ~/.overlord-worker/workspaces)",env_max_slots:"max concurrent tasks (defaults to 2)",step_start_worker:"start worker",step_start_worker_desc:"// start the worker process. it will register with the server and begin accepting tasks.",setup_wizard_option:"// option a: interactive setup wizard (recommended)",manual_config_option:"// option b: manual configuration",start_note_setup_wizard:"// if you used the setup wizard, the worker may already be running.",step_verify_connection:"verify connection",step_verify_connection_desc:'// once the worker connects, it will appear in the workers list with a "healthy" status.',verify_how_to:"// how to verify:",verify_check_workers:"check the workers page for your new worker",verify_status:'status should show "healthy" within 30 seconds',verify_capabilities:"worker capabilities are auto-detected on first heartbeat",last_heartbeat_label:"last heartbeat",worker_version:"worker version",reg_title:"// worker registration",reg_subtitle:"> register a new worker node",reg_step_generate_token:"generate token",reg_step_install_worker:"install worker",reg_step_waiting_activation:"waiting activation",reg_step_activated:"activated",reg_click_to_generate:"// click to generate a one-time registration token",reg_token_generated:"// token generated successfully",reg_running_installation:"// running installation on target worker",reg_installed_wait:"i've installed → wait for activation",reg_listening_for_worker:"listening for worker connection...",reg_worker_connected:"// worker connected",reg_waiting_for_worker:"// waiting for worker to connect...",reg_worker_activated:"worker {name} activated!",reg_worker_registered:"// worker successfully registered",reg_done:"done",reg_completed:"// completed"},projects:{title:"projects",create_project:"create project",no_projects_yet:"no projects yet",create_first_project:"create your first project to get started",key:"key",name:"name",project_info:"> project info",repo_url:"repo URL",default_branch:"default branch",git_platform:"git platform",agent_type:"agent type",max_turns:"max turns",allowed_tools:"allowed tools",default_project:"default project",tasks_count:"tasks",last_activity:"last activity",members:"> members",developer:"developer",role:"role",added_at:"added at",add_member:"add member",remove_member:"remove member",remove_member_confirm:"remove {name} from this project?",failed_to_add_member:"failed to add member.",member_already_exists:"this developer is already a member of this project.",pipeline:"> pipeline",add_stage:"+ add stage",recent_tasks:"> recent tasks",edit_project:"edit project",delete_project:"delete project",delete_project_confirm:'delete project "{name}"? this cannot be undone.',project_name:"project name",project_name_placeholder:"my awesome project",project_key:"project key",project_key_placeholder:"my-project",project_key_hint:"// unique identifier (lowercase, alphanumeric, hyphens)",ssh_url:"SSH URL",ssh_url_placeholder:"git@github.com:org/repo.git",ssh_url_hint:"// optional — workers prefer ssh for git operations",repo_url_placeholder:"https://github.com/org/repo.git",main:"main",github:"github",gitlab:"gitlab",gitea:"gitea",tools_placeholder:"tool1, tool2, ...",add_project_desc:"// add a new project to overlord",failed_to_create_project:"failed to create project.",update_project_desc:"// update project configuration",save_changes:"save changes",basic_info:"> basic info",agent_config:"> agent config",security:"> security",git_token:"> git token",git_token_label:"current token",git_token_hint:"// personal access token for git operations (push, clone, etc.)",git_token_set:"set token",git_token_clear:"clear token",git_token_saved:"git token saved.",git_token_cleared:"git token cleared.",git_token_failed:"failed to update git token.",pipeline_section:"> pipeline",edit_pipeline:"> edit pipeline",pty_output_filter:"PTY output filter",workspace_root:"workspace root",member_role:"member",maintainer_role:"maintainer",select_developer:"select developer...",adding:"adding...",project_not_found:"// project not found",back_to_projects:"back to projects",no_members_yet:"// no members yet",no_tasks_for_project:"// no tasks for this project yet",no_pipeline_configured:"// no pipeline configured",confirm_label:"confirm",id:"id",description:"description",status:"status",created:"created",project_saved:"project saved",failed_to_save_project:"failed to save project",invalid_pipeline_json:"invalid pipeline json",setup_commands:"setup commands",post_command:"post command",environment:"> environment",add_member_title:"// add member",edit_project_title:"edit project"},pipeline:{title:"pipeline editor",subtitle:"-- {key}",save:"save",cancel:"cancel",json_toggle:"json",add_stage:"add stage",stage_properties:"> stage properties",stage_name:"stage name",timeout:"timeout",confirm_required:"confirm required",on_failure:"on failure",goto:"goto",max_loops:"max loops",stop:"stop",select_stage:"// select a stage to edit properties",saved:"pipeline saved",failed_to_save:"failed to save pipeline",loading_pipeline:"// thinking...",unnamed:"unnamed",editing:"// editing: {name}",name:"name",on_failure_section:"// on failure",goto_stage:"goto stage",up:"up",down:"down",failed_to_load_project:"failed to load project",delete_stage:"delete stage"},profile:{title:"profile",profile_info:"> profile info",username:"username",git_name:"git name",git_email:"git email",status:"status",created_at:"created at",change_password:"> change password",current_password:"current password",new_password:"new password",confirm_password:"confirm password",current_password_required:"current password is required.",new_password_required:"new password is required.",passwords_do_not_match:"new passwords do not match.",password_changed:"password changed successfully.",failed_to_change_password:"failed to change password.",update_password:"update password",two_factor_auth:"> two-factor authentication",two_fa_enabled:"2fa is enabled",two_fa_not_setup:"2fa is not set up",regenerate_2fa_warning:`// regenerating 2fa will invalidate your current authenticator app setup.
247
+ you will need to set up 2fa again on your next login.`,regenerate_2fa:"regenerate 2FA",regenerating:"regenerating...",access_tokens:"access tokens",access_tokens_desc:"// manage personal access tokens for cli & api",unable_to_load_profile:"// unable to load profile information",personal_settings:"// personal settings",password_hint_10_20:"// 10-20 characters, letters, numbers, and special characters",current_totp_code:"current TOTP code",totp_code_placeholder:"6-digit code",totp_code_required:"please enter your current 6-digit totp code to regenerate 2fa.",two_fa_regenerated:"2fa regenerated. you will need to set it up again on next login.",totp_code_invalid:"invalid totp code or failed to regenerate 2fa.",platform_accounts:"platform accounts",not_linked:"not linked",bind_hint:'send "bind" to the bot in lark or slack to link your account.'},access_tokens:{create_token:"create token",no_tokens:"no personal access tokens",create_token_desc:"create a token to authenticate with the cli or api",copy_token_warning:"// copy your token now. you will not be able to see it again.",token_name:"token name",token_name_placeholder:"my-cli-token",days_30:"30 days",days_90:"90 days",days_365:"365 days",no_expiry:"no expiry",failed_to_create_token:"failed to create token.",token_revoked:"token revoked.",failed_to_revoke_token:"failed to revoke token.",revoke:"revoke",last_used:"last used",created:"created",expires:"expires",revoke_confirm:'are you sure you want to revoke "{name}"? this action cannot be undone.',create_personal_access_token:"// create personal access token",tokens_authenticate_desc:"// tokens authenticate the ov cli and api requests",revoke_token_title:"// revoke token",token_label_required:"token label is required."},admin:{tab_developers:"developers",tab_bots:"bots",tab_tokens:"worker tokens",tab_audit_logs:"audit logs",tab_settings:"settings",developers_title:"admin / developers",developers_subtitle:"// developer account management",create_developer:"create developer",search_developers:"search developers...",no_matching_developers:"no matching developers",no_developers_found:"no developers found",try_adjusting_search:"try adjusting your search query",username:"username",role:"role",status:"status",totp:"totp",reset_2fa:"reset 2fa",deactivate:"deactivate",activate:"activate",create_developer_title:"create developer",edit_developer_title:"edit developer",failed_to_create_developer:"failed to create developer",failed_to_update_developer:"failed to update developer",failed_to_reset_2fa:"failed to reset 2fa",create_first_developer:"create your first developer to get started",all_fields_required:"all fields are required.",password_length_error:"password must be between 10 and 20 characters.",password_complexity_error:"password must contain at least one letter, one digit, and one special character.",password_hint:"// must be 10-20 characters with letters, digits, and special characters.",demote_self_warning:"you are about to demote yourself from admin. the system must have at least one admin. please verify another admin exists before proceeding.",demote_self_inline_warning:"// warning: you are demoting yourself from admin. ensure at least one other admin exists.",lark_uid:"lark open ID",slack_uid:"slack user ID",platform_accounts:"platform accounts",reset_2fa_confirm_message:"are you sure you want to reset two-factor authentication for",reset_2fa_audit_note:"// the user will be required to set up 2fa again on their next login. this action is recorded in the audit log.",resetting:"resetting...",bots_title:"admin / bots",bots_subtitle:"// bot instance management",create_bot:"create bot",no_bots_configured:"no bots configured",add_bot_desc:"add a bot instance to enable chat integrations with lark or slack",bot_name:"bot name",platform:"platform",app_id:"app ID",delete_bot:"delete bot",delete_bot_confirm:'delete bot "{name}"? this cannot be undone.',failed_to_delete_bot:"failed to delete bot.",failed_to_create_bot:"failed to create bot",chat_bindings:"group bindings",chat_bindings_subtitle:"// all integrations",no_chat_bindings:"// no group bindings configured",chat_id:"chat ID",chat_name:"chat name",project:"project",bot:"bot",edit_bot:"edit bot",name_and_app_id_required:"name and app id are required.",app_secret_required:"app secret is required for new bots.",app_secret:"app secret",app_secret_keep_current:"app secret (leave empty to keep current)",failed_to_update_bot:"failed to update bot",bot_token:"bot token",bot_token_keep_current:"bot token (leave empty to keep current)",bot_token_placeholder:"xoxb-...",bot_token_hint:"// OAuth & Permissions → Bot User OAuth Token",signing_secret:"signing secret",signing_secret_keep_current:"signing secret (leave empty to keep current)",signing_secret_placeholder:"your signing secret",signing_secret_hint:"// Basic Information → App Credentials → Signing Secret",app_secret_hint_lark:"// lark open platform → app credentials → app secret",encrypt_key:"encrypt key",encrypt_key_keep_current:"encrypt key (leave empty to keep current)",encrypt_key_hint:"events & callbacks → encryption strategy → encrypt key",encrypt_key_placeholder:"encrypt key from encryption strategy",app_id_hint_slack:"// Basic Information → App ID",app_id_hint_lark:"// lark open platform → app id",webhook_config:"// webhook configuration",webhook_config_hint_slack:"// copy these URLs to your Slack app settings",webhook_config_hint_lark:"// copy this URL to event subscriptions → request url",webhook_events_url:"events url",webhook_interact_url:"interactivity url",webhook_commands_url:"slash commands url",webhook_request_url:"request url",slack_events_hint:"// paste in Event Subscriptions → Request URL",slack_interact_hint:"// paste in Interactivity & Shortcuts → Request URL",slack_commands_hint:"// paste in Slash Commands → Request URL",invalid_bot_token:"// bot token must start with xoxb-",signing_secret_required:"// signing secret is required for Slack bots",add_binding:"add binding",failed_to_add_binding:"failed to add binding",failed_to_delete_binding:"failed to delete binding",tokens_title:"admin / worker tokens",tokens_subtitle:"// worker registration token management",generate_token:"generate token",no_worker_tokens:"no worker tokens",generate_token_desc:"generate a token to register a new worker",label:"label",purpose:"purpose",expires_at:"expires at",revoke_token:"revoke token",revoke_token_confirm:'revoke token "{label}"? this cannot be undone.',show_revoked:"show revoked",hide_revoked:"hide revoked",audit_title:"admin / audit logs",audit_subtitle:"// system activity audit trail",all_actions:"all actions",filter_by_user:"filter by user...",no_audit_entries:"no audit log entries",audit_logs_appear:"audit logs will appear here as actions are performed in the system",timestamp:"timestamp",user_id:"user ID",action:"action",resource:"resource",detail:"detail",ip:"ip",action_login:"login",action_logout:"logout",action_create:"create",action_update:"update",action_delete:"delete",action_revoke:"revoke",action_reset_2fa:"reset 2FA",action_generate_token:"generate token",showing_entries:"showing {count} entries",revoke:"revoke",generate_worker_token_title:"> generate worker token",create_one_time_token:"// create a one-time registration token",label_identifies_worker:"// identifies which worker this token is for",generating:"generating...",generate:"generate",worker_registered:"> worker registered",worker_token_generated:"> worker token generated",run_command_desc:"// run this command on the target machine to register the worker",token_shown_once:"// this token will only be shown once. copy the command before closing.",setup_command:"setup command",waiting_for_worker:"// waiting for worker to register...",token_not_yet_used:"// token not yet used. the worker can still register later using this token.",worker_registered_success:"// worker registered successfully",worker:"worker",copied_wait_for_worker:"copied — wait for worker",close_worker_can_register:"close // worker can still register",view_worker:"view worker",settings_title:"admin / settings",settings_subtitle:"// global system configuration",save_settings:"save settings",settings_saved:"settings saved",failed_to_save_settings:"failed to save settings",loading_settings:"// thinking...",scheduling:"> scheduling",heartbeat:"> heartbeat",output:"> output",defaults:"> defaults",max_concurrent_tasks:"max concurrent tasks per worker",max_concurrent_tasks_desc:"// maximum number of tasks a single worker can run simultaneously",task_timeout:"task timeout minutes",task_timeout_desc:"// auto-cancel tasks after this many minutes of inactivity",heartbeat_interval:"heartbeat interval seconds",heartbeat_interval_desc:"// expected interval between worker heartbeats",worker_offline_threshold:"worker offline threshold seconds",worker_offline_threshold_desc:"// mark worker offline after missing heartbeats for this duration",default_agent_type:"default agent type",default_agent_type_desc:"// default agent type for new projects",chat_binding_title:"// group bindings — {name}",chat_binding_no_bindings:"// no group bindings configured for this bot.",chat_binding_add:"// add group binding",chat_binding_id_placeholder:"platform chat/group id",chat_binding_name_placeholder:"display name for the chat",chat_binding_select_project:"select project...",chat_binding_all_fields_required:"all fields are required.",chat_binding_adding:"adding...",chat_binding_projects:"projects",chat_binding_default_project:"default project",chat_binding_set_default:"set default",chat_binding_default_badge:"default",chat_binding_set_default_failed:"failed to set default project",pat_label_required:"label is required.",pat_failed_to_generate:"failed to generate token",pat_label_placeholder:"e.g. build-server-03"},landing:{overlord:"overlord",version_badge:"self-hosted · bring your own subscriptions and machines",hero_turn_your:"turn your",hero_into:"into",hero_word_subscriptions:"subscriptions",hero_word_machines:"machines",hero_highlight:"a dev team that never sleeps.",hero_desc:"dispatch coding tasks across your machine fleet. ai agents execute in parallel — you watch, jump in, or come back to finished pull requests.",get_started:"get started",read_docs:"read docs",how_it_works:"how it works",three_steps:"from task description to merged pull request.",step_n:"step {n}",step_define:"connect your fleet",step_define_desc:"register your machines as workers. each one runs ai agents — claude code, cursor, codex — using your existing subscriptions.",step_dispatch:"send a task",step_dispatch_desc:"describe what you want from slack, lark, cli, or the web dashboard. overlord finds the best available machine and starts the ai agent automatically.",step_monitor:"watch or walk away",step_monitor_desc:"live terminal streams agent output to your browser. jump in to guide the agent, or come back later to a finished pull request.",everything_you_need:"everything you need",complete_platform:"self-hosted. your machines, your ai subscriptions, your control.",feature_terminal:"real-time pty terminal",feature_terminal_desc:"stream live agent output directly in the browser. full xterm.js integration with scrollback and search.",feature_multi_agent:"multi-agent support",feature_multi_agent_desc:"first-class support for claude code, cursor, and codex. route tasks to the right agent automatically.",feature_routing:"smart task routing",feature_routing_desc:"intelligent scheduling across your machine fleet. tasks land on the best available worker every time.",feature_pipeline:"pipeline automation",feature_pipeline_desc:"chain tasks into multi-stage pipelines. build, test, and deploy in one continuous flow.",feature_collab:"team collaboration",feature_collab_desc:"project-level permissions, audit logs, and shared dashboards. keep your whole team in sync.",feature_pool:"pool subscriptions, maximize value",feature_pool_desc:"every team member's ai subscription goes into a shared pool — everyone can use any seat. no idle subscriptions, no duplicate costs. the bigger your team, the more you save.",feature_trigger:"trigger from everywhere",feature_trigger_desc:"slack message, lark bot, cli command, or web dashboard — create tasks from whatever tool you already use. phone, laptop, tablet, it all works.",feature_remote:"code from anywhere",feature_remote_desc:"on the bus, at a café, or away from your desk — dispatch tasks from your phone or laptop and your fleet keeps coding. come back to finished pull requests.",feature_security:"secure by design",feature_security_desc:"totp two-factor auth, scoped api tokens, and full audit trail. enterprise-ready from day one.",install_title:"get up and running",install_desc:"three components, three commands. deploy in minutes.",setup_step_1_title:"deploy the server",setup_step_1_desc:"install overlord and start the central server. it manages all tasks, authentication, and real-time communication.",setup_step_1_command:`npm install -g @overlordai/cli @overlordai/server
248
+ overlord install`,setup_step_1_link:"installation guide",setup_step_2_title:"register workers",setup_step_2_desc:"set up worker machines that execute tasks. each worker runs ai agents in isolated workspaces with full git integration.",setup_step_2_command:`npm install -g @overlordai/cli @overlordai/worker
249
+ overlord setup worker`,setup_step_2_link:"worker setup guide",setup_step_3_title:"connect as developer",setup_step_3_desc:"install the developer cli to create tasks, attach to running sessions, and monitor progress from your terminal.",setup_step_3_command:`npm install -g @overlordai/developer-cli
250
+ ov login https://overlord.yourdomain.com`,setup_step_3_link:"development workflow",go_to_app:"open app",documentation:"documentation",api:"api",copy_install_command:"copy install command"},docs:{quick_start:"// quick start",developer_cli:"developer cli (ov)",admin_cli:"admin cli (overlord)",authentication:"// authentication",usage:"usage",flags:"flags",example:"example",request_body:"request body",response:"response",quick_start_with_token:"// quick start with your token",replace_token_hint:"// replace <your-token> with the actual token value from your access tokens page",cli_tools_desc:"// overlord provides two cli tools: {ov} (developer cli) and {overlord} (admin/ops cli)",api_base_url_desc:"// base url: {url} · all endpoints return json · auth via bearer token in authorization header",docs_nav_getting_started:"// getting started",docs_nav_guides:"// guides",docs_nav_reference:"// reference",docs_nav_other:"// other",docs_installation:"installation",docs_developer_setup:"developer setup",docs_worker_setup:"worker setup",docs_bot_setup:"bot setup",docs_local_dev:"local development",docs_worker_ops:"worker operations",docs_deployment:"deployment",docs_bot_integration:"bot integration",docs_pipeline:"pipeline config",docs_dev_workflow:"dev workflow",docs_cli:"cli reference",docs_api:"api reference",docs_task_guide:"task guide",docs_skill:"skill reference",docs_permissions:"permissions & roles",docs_env_vars:"environment variables",docs_architecture:"architecture",docs_changelog:"changelog",docs_back:"< back",docs_all_title:"// all documentation",docs_all_subtitle:"browse all guides, references, and resources",docs_desc_installation:"install overlord server and cli tools",docs_desc_developer_setup:"set up your local development environment",docs_desc_worker_setup:"register and configure worker machines",docs_desc_bot_setup:"connect lark or slack bots to overlord",docs_desc_local_dev:"run and debug overlord locally",docs_desc_worker_ops:"manage worker lifecycle and monitoring",docs_desc_deployment:"deploy overlord to production servers",docs_desc_bot_integration:"interactive cards, adapter pattern, troubleshooting",docs_desc_pipeline:"define multi-stage task pipelines",docs_desc_dev_workflow:"git workflow, branching, and merge requests",docs_desc_cli:"cli command reference",docs_desc_api:"http api endpoint reference",docs_desc_task_guide:"task modes, task types, forks, and task relationships",docs_desc_skill:"custom skill definitions and configuration",docs_desc_permissions:"roles, access control, and authorization",docs_desc_env_vars:"environment variables for server and worker",docs_desc_architecture:"system architecture and component overview",docs_desc_changelog:"version history and release notes",docs_agent_cli:"agent cli",docs_desc_agent_cli:"claude, cursor, and codex cli integration and flag mapping"},onboarding:{getting_started:"// getting started",dismiss:"dismiss",all_done:"all set! you're ready to go.",admin_create_project_title:"create your first project",admin_create_project_desc:"set up a project with a git repo and pipeline",admin_register_worker_title:"register a worker",admin_register_worker_desc:"generate a token and set up a worker to run tasks",admin_create_developer_title:"create a developer account",admin_create_developer_desc:"add team members who can create and monitor tasks",admin_configure_bot_title:"configure a chat bot",admin_configure_bot_desc:"register a Lark or Slack bot to enable task management via chat",admin_first_task_title:"create your first task",admin_first_task_desc:"verify the full pipeline works end-to-end",lead_view_projects_title:"view your projects",lead_view_projects_desc:"check the projects assigned to you",lead_configure_pipeline_title:"configure a pipeline",lead_configure_pipeline_desc:"set up stages for your project workflow",lead_add_member_title:"add a team member",lead_add_member_desc:"invite developers to your project",lead_first_task_title:"create your first task",lead_first_task_desc:"submit a task and watch it execute",dev_install_cli_title:"install the ov cli",dev_install_cli_desc:"npm install -g @overlordai/developer-cli",dev_setup_cli_title:"run ov setup",dev_setup_cli_desc:"connect to the server and authenticate",dev_link_chat_title:"link your chat account",dev_link_chat_desc:'send "bind" to the bot in Lark or Slack to connect your account',dev_view_projects_title:"explore projects",dev_view_projects_desc:"browse available projects and their pipelines",dev_first_task_title:"create your first task",dev_first_task_desc:"submit a task via web or cli",go_to_projects:"go to projects",go_to_workers:"go to workers",go_to_tasks:"go to tasks",go_to_bots:"manage bots",manage_developers:"manage developers",cli:"cli",setup_guide:"setup guide"},bind:{title:"// link platform account",linking:"linking your account...",success:"account linked successfully!",success_detail:"your {platform} account has been connected. you can now use bot commands.",error:"failed to link account",invalid_token:'this link is invalid or has expired. send "bind" to the bot again to get a new link.',back_to_home:"go to dashboard",no_token:"no bind token provided."},pwa_install:{title:"overlord://install",command:"overlord --install",desc_1:"add to home screen for standalone app experience",desc_2:"works offline · full-screen · instant launch",install:"y — install",skip:"n — skip",ios_command:"install --manual",ios_step_1:"tap share button in safari toolbar",ios_step_2:'scroll down → tap "add to home screen"',ios_step_3:'tap "add" to confirm'},pwa_update:{message:"new version available",reload:"reload"},terminal_home:{title:"terminal",select_project:"project...",all_projects:"all projects",task_description_placeholder:"describe the task...",new_task:"new task",no_active_tasks:"no active tasks",create_task_hint:"create a task using the bar above to get started",confirm_create_title:"create task",confirm_create_message:`create a [{taskType}] task in project [{projectKey}]?
251
+
252
+ "{description}"`},plan:{title:"plan",create:"create plan",description_placeholder:"describe what you want to build...",spec_generated:"spec generated",decompose:"decompose into tasks",save_only:"save spec only",no_plans:"no plan tasks yet",view_spec:"view spec"},review:{title:"review",pending:"pending review",in_progress:"in progress",history:"history",launch:"launch review",select_agents:"select review agents",approve_fix:"fix issues",skip_fix:"no fix needed",review_again:"review again",round:"round",no_reviews:"no reviews yet",issues_summary:"{critical} critical · {warning} warning · {suggestion} suggestion",description_placeholder:"review instructions (optional)...",empty_report_warning:"review completed but no structured report was produced. check the terminal output for details.",fix_push_info:"selected agent will push fixes to the source branch",waiting_agents:"waiting for review agents to finish...",skip_fix_label:"review only (skip fix stage)"}};function Ob(i,u){const s=u.split(".");let o=i;for(const f of s){if(o==null||typeof o!="object")return u;o=o[f]}return typeof o=="string"?o:u}function Cb(i,u){return u?i.replace(/\{(\w+)\}/g,(s,o)=>u[o]!=null?String(u[o]):`{${o}}`):i}function Yr(i,u){return Cb(Ob(zb,i),u)}function Vt(){return{t:y.useCallback((u,s)=>Yr(u,s),[])}}function dp(){const{theme:i,setTheme:u}=fp(),{t:s}=Vt(),o=i==="dark"||i==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;function f(){u(o?"light":"dark")}return h.jsx("button",{onClick:f,className:"flex items-center gap-1.5 rounded-[4px] p-2 text-[var(--text-secondary)] transition-colors hover:bg-[var(--border)] hover:text-[var(--text-primary)]","aria-label":s(o?"common.switch_to_light":"common.switch_to_dark"),title:s(o?"common.light_mode":"common.dark_mode"),children:o?h.jsx(bb,{size:16}):h.jsx(pb,{size:16})})}class Ns extends Error{constructor(s,o,f){const m=s.status||s.status===0?s.status:"",g=s.statusText??"",b=`${m} ${g}`.trim(),_=b?`status code ${b}`:"an unknown error";super(`Request failed with ${_}: ${o.method} ${o.url}`);Ve(this,"response");Ve(this,"request");Ve(this,"options");this.name="HTTPError",this.response=s,this.request=o,this.options=f}}class mp extends Error{constructor(s){let o="Non-error value was thrown";try{typeof s=="string"?o=s:s&&typeof s=="object"&&"message"in s&&typeof s.message=="string"&&(o=s.message)}catch{}super(o);Ve(this,"name","NonError");Ve(this,"value");this.value=s}}class As extends Error{constructor(s){const o=s!=null&&s.cause?s.cause instanceof Error?s.cause:new mp(s.cause):void 0;super(s!=null&&s.code?`Forced retry: ${s.code}`:"Forced retry",o?{cause:o}:void 0);Ve(this,"name","ForceRetryError");Ve(this,"customDelay");Ve(this,"code");Ve(this,"customRequest");this.customDelay=s==null?void 0:s.delay,this.code=s==null?void 0:s.code,this.customRequest=s==null?void 0:s.request}}const Sh=(()=>{let i=!1,u=!1;const s=typeof globalThis.ReadableStream=="function",o=typeof globalThis.Request=="function";if(s&&o)try{u=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type")}catch(f){if(f instanceof Error&&f.message==="unsupported BodyInit type")return!1;throw f}return i&&!u})(),Db=typeof globalThis.AbortController=="function",hp=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",Nb=typeof globalThis.ReadableStream=="function",Mb=typeof globalThis.FormData=="function",pp=["get","post","put","patch","head","delete"],Ub={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},zs=2147483647,qb=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,gp=Symbol("stop");class yp{constructor(u){Ve(this,"options");this.options=u}}const Lb=i=>new yp(i),Hb={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Bb={next:!0},Yb={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Gb=i=>{if(!i)return 0;if(i instanceof FormData){let u=0;for(const[s,o]of i)u+=qb,u+=new TextEncoder().encode(`Content-Disposition: form-data; name="${s}"`).length,u+=typeof o=="string"?new TextEncoder().encode(o).length:o.size;return u}if(i instanceof Blob)return i.size;if(i instanceof ArrayBuffer)return i.byteLength;if(typeof i=="string")return new TextEncoder().encode(i).length;if(i instanceof URLSearchParams)return new TextEncoder().encode(i.toString()).length;if("byteLength"in i)return i.byteLength;if(typeof i=="object"&&i!==null)try{const u=JSON.stringify(i);return new TextEncoder().encode(u).length}catch{return 0}return 0},_p=(i,u,s)=>{let o,f=0;return i.pipeThrough(new TransformStream({transform(m,g){if(g.enqueue(m),o){f+=o.byteLength;let b=u===0?0:f/u;b>=1&&(b=1-Number.EPSILON),s==null||s({percent:b,totalBytes:Math.max(u,f),transferredBytes:f},o)}o=m},flush(){o&&(f+=o.byteLength,s==null||s({percent:1,totalBytes:Math.max(u,f),transferredBytes:f},o))}}))},Vb=(i,u)=>{if(!i.body)return i;if(i.status===204)return new Response(null,{status:i.status,statusText:i.statusText,headers:i.headers});const s=Math.max(0,Number(i.headers.get("content-length"))||0);return new Response(_p(i.body,s,u),{status:i.status,statusText:i.statusText,headers:i.headers})},Xb=(i,u,s)=>{if(!i.body)return i;const o=Gb(s??i.body);return new Request(i,{duplex:"half",body:_p(i.body,o,u)})},_n=i=>i!==null&&typeof i=="object",Nr=(...i)=>{for(const u of i)if((!_n(u)||Array.isArray(u))&&u!==void 0)throw new TypeError("The `options` argument must be an object");return Ws({},...i)},vp=(i={},u={})=>{const s=new globalThis.Headers(i),o=u instanceof globalThis.Headers,f=new globalThis.Headers(u);for(const[m,g]of f.entries())o&&g==="undefined"||g===void 0?s.delete(m):s.set(m,g);return s};function Mr(i,u,s){return Object.hasOwn(u,s)&&u[s]===void 0?[]:Ws(i[s]??[],u[s]??[])}const bp=(i={},u={})=>({beforeRequest:Mr(i,u,"beforeRequest"),beforeRetry:Mr(i,u,"beforeRetry"),afterResponse:Mr(i,u,"afterResponse"),beforeError:Mr(i,u,"beforeError")}),Qb=(i,u)=>{const s=new URLSearchParams;for(const o of[i,u])if(o!==void 0)if(o instanceof URLSearchParams)for(const[f,m]of o.entries())s.append(f,m);else if(Array.isArray(o))for(const f of o){if(!Array.isArray(f)||f.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");s.append(String(f[0]),String(f[1]))}else if(_n(o))for(const[f,m]of Object.entries(o))m!==void 0&&s.append(f,String(m));else{const f=new URLSearchParams(o);for(const[m,g]of f.entries())s.append(m,g)}return s},Ws=(...i)=>{let u={},s={},o={},f;const m=[];for(const g of i)if(Array.isArray(g))Array.isArray(u)||(u=[]),u=[...u,...g];else if(_n(g)){for(let[b,_]of Object.entries(g)){if(b==="signal"&&_ instanceof globalThis.AbortSignal){m.push(_);continue}if(b==="context"){if(_!=null&&(!_n(_)||Array.isArray(_)))throw new TypeError("The `context` option must be an object");u={...u,context:_==null?{}:{...u.context,..._}};continue}if(b==="searchParams"){_==null?f=void 0:f=f===void 0?_:Qb(f,_);continue}_n(_)&&b in u&&(_=Ws(u[b],_)),u={...u,[b]:_}}_n(g.hooks)&&(o=bp(o,g.hooks),u.hooks=o),_n(g.headers)&&(s=vp(s,g.headers),u.headers=s)}return f!==void 0&&(u.searchParams=f),m.length>0&&(m.length===1?u.signal=m[0]:hp?u.signal=AbortSignal.any(m):u.signal=m.at(-1)),u},Zb=i=>pp.includes(i)?i.toUpperCase():i,Kb=["get","put","head","delete","options","trace"],Jb=[408,413,429,500,502,503,504],$b=[413,429,503],kh={limit:2,methods:Kb,statusCodes:Jb,afterStatusCodes:$b,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:i=>.3*2**(i-1)*1e3,jitter:void 0,retryOnTimeout:!1},Wb=(i={})=>{if(typeof i=="number")return{...kh,limit:i};if(i.methods&&!Array.isArray(i.methods))throw new Error("retry.methods must be an array");if(i.methods&&(i.methods=i.methods.map(s=>s.toLowerCase())),i.statusCodes&&!Array.isArray(i.statusCodes))throw new Error("retry.statusCodes must be an array");const u=Object.fromEntries(Object.entries(i).filter(([,s])=>s!==void 0));return{...kh,...u}};class Ms extends Error{constructor(s){super(`Request timed out: ${s.method} ${s.url}`);Ve(this,"request");this.name="TimeoutError",this.request=s}}async function Fb(i,u,s,o){return new Promise((f,m)=>{const g=setTimeout(()=>{s&&s.abort(),m(new Ms(i))},o.timeout);o.fetch(i,u).then(f).catch(m).then(()=>{clearTimeout(g)})})}async function Ib(i,{signal:u}){return new Promise((s,o)=>{u&&(u.throwIfAborted(),u.addEventListener("abort",f,{once:!0}));function f(){clearTimeout(m),o(u.reason)}const m=setTimeout(()=>{u==null||u.removeEventListener("abort",f),s()},i)})}const Pb=(i,u)=>{const s={};for(const o in u)Object.hasOwn(u,o)&&!(o in Yb)&&!(o in Hb)&&(!(o in i)||o in Bb)&&(s[o]=u[o]);return s},e0=i=>i===void 0?!1:Array.isArray(i)?i.length>0:i instanceof URLSearchParams?i.size>0:typeof i=="object"?Object.keys(i).length>0:typeof i=="string"?i.trim().length>0:!!i;function t0(i){return i instanceof Ns||(i==null?void 0:i.name)===Ns.name}function a0(i){return i instanceof Ms||(i==null?void 0:i.name)===Ms.name}var Jr,xp,Jt,Bt,rt,Q,$a,ea,vn,oe,Gr,Sp,Us,Vr,Ja,qs,kp,ri,Xr,Ls;const ui=class ui{constructor(u,s={}){Pt(this,oe);Ve(this,"request");Pt(this,Jt);Pt(this,Bt,0);Pt(this,rt);Pt(this,Q);Pt(this,$a);Pt(this,ea);Pt(this,vn);var f,m,g;if(Kt(this,rt,u),Kt(this,Q,{...s,headers:vp(q(this,rt).headers,s.headers),hooks:bp({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},s.hooks),method:Zb(s.method??q(this,rt).method??"GET"),prefixUrl:String(s.prefixUrl||""),retry:Wb(s.retry),throwHttpErrors:s.throwHttpErrors??!0,timeout:s.timeout??1e4,fetch:s.fetch??globalThis.fetch.bind(globalThis),context:s.context??{}}),typeof q(this,rt)!="string"&&!(q(this,rt)instanceof URL||q(this,rt)instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(q(this,Q).prefixUrl&&typeof q(this,rt)=="string"){if(q(this,rt).startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");q(this,Q).prefixUrl.endsWith("/")||(q(this,Q).prefixUrl+="/"),Kt(this,rt,q(this,Q).prefixUrl+q(this,rt))}Db&&hp&&(Kt(this,ea,q(this,Q).signal??q(this,rt).signal),Kt(this,Jt,new globalThis.AbortController),q(this,Q).signal=q(this,ea)?AbortSignal.any([q(this,ea),q(this,Jt).signal]):q(this,Jt).signal),Sh&&(q(this,Q).duplex="half"),q(this,Q).json!==void 0&&(q(this,Q).body=((m=(f=q(this,Q)).stringifyJson)==null?void 0:m.call(f,q(this,Q).json))??JSON.stringify(q(this,Q).json),q(this,Q).headers.set("content-type",q(this,Q).headers.get("content-type")??"application/json"));const o=s.headers&&new globalThis.Headers(s.headers).has("content-type");if(q(this,rt)instanceof globalThis.Request&&(Mb&&q(this,Q).body instanceof globalThis.FormData||q(this,Q).body instanceof URLSearchParams)&&!o&&q(this,Q).headers.delete("content-type"),this.request=new globalThis.Request(q(this,rt),q(this,Q)),e0(q(this,Q).searchParams)){const _="?"+(typeof q(this,Q).searchParams=="string"?q(this,Q).searchParams.replace(/^\?/,""):new URLSearchParams(ke(g=ui,Jr,xp).call(g,q(this,Q).searchParams)).toString()),p=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,_);this.request=new globalThis.Request(p,q(this,Q))}if(q(this,Q).onUploadProgress){if(typeof q(this,Q).onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!Sh)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=ke(this,oe,Ls).call(this,this.request,q(this,Q).body??void 0)}}static create(u,s){var g,b,_;const o=new ui(u,s),f=async()=>{var w,k,N,Y,L,H,B,U,K,X,ue,ce;if(typeof q(o,Q).timeout=="number"&&q(o,Q).timeout>zs)throw new RangeError(`The \`timeout\` option cannot be greater than ${zs}`);await Promise.resolve();let p=await ke(w=o,oe,kp).call(w);for(const ge of q(o,Q).hooks.afterResponse){const F=ke(k=o,oe,Us).call(k,p.clone());let W;try{W=await ge(o.request,ke(N=o,oe,ri).call(N),F,{retryCount:q(o,Bt)})}catch(Pe){throw ke(Y=o,oe,Ja).call(Y,F),ke(L=o,oe,Ja).call(L,p),Pe}if(W instanceof yp)throw ke(H=o,oe,Ja).call(H,F),ke(B=o,oe,Ja).call(B,p),new As(W.options);const se=W instanceof globalThis.Response?W:p;F!==se&&ke(U=o,oe,Ja).call(U,F),p!==se&&ke(K=o,oe,Ja).call(K,p),p=se}if(ke(X=o,oe,Us).call(X,p),!p.ok&&(typeof q(o,Q).throwHttpErrors=="function"?q(o,Q).throwHttpErrors(p.status):q(o,Q).throwHttpErrors)){let ge=new Ns(p,o.request,ke(ue=o,oe,ri).call(ue));for(const F of q(o,Q).hooks.beforeError)ge=await F(ge,{retryCount:q(o,Bt)});throw ge}if(q(o,Q).onDownloadProgress){if(typeof q(o,Q).onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Nb)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const ge=p.clone();return ke(ce=o,oe,Ja).call(ce,p),Vb(ge,q(o,Q).onDownloadProgress)}return p},m=ke(g=o,oe,qs).call(g,f).finally(()=>{var w,k;const p=q(o,$a);ke(w=o,oe,Vr).call(w,(p==null?void 0:p.body)??void 0),ke(k=o,oe,Vr).call(k,o.request.body??void 0)});for(const[p,w]of Object.entries(Ub))p==="bytes"&&typeof((_=(b=globalThis.Response)==null?void 0:b.prototype)==null?void 0:_.bytes)!="function"||(m[p]=async()=>{o.request.headers.set("accept",o.request.headers.get("accept")||w);const k=await m;if(p==="json"){if(k.status===204)return"";const N=await k.text();return N===""?"":s.parseJson?s.parseJson(N):JSON.parse(N)}return k[p]()});return m}};Jr=new WeakSet,xp=function(u){return u&&typeof u=="object"&&!Array.isArray(u)&&!(u instanceof URLSearchParams)?Object.fromEntries(Object.entries(u).filter(([,s])=>s!==void 0)):u},Jt=new WeakMap,Bt=new WeakMap,rt=new WeakMap,Q=new WeakMap,$a=new WeakMap,ea=new WeakMap,vn=new WeakMap,oe=new WeakSet,Gr=function(){const u=q(this,Q).retry.delay(q(this,Bt));let s=u;q(this,Q).retry.jitter===!0?s=Math.random()*u:typeof q(this,Q).retry.jitter=="function"&&(s=q(this,Q).retry.jitter(u),(!Number.isFinite(s)||s<0)&&(s=u));const o=q(this,Q).retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(o,s)},Sp=async function(u){if(eh(this,Bt)._++,q(this,Bt)>q(this,Q).retry.limit)throw u;const s=u instanceof Error?u:new mp(u);if(s instanceof As)return s.customDelay??ke(this,oe,Gr).call(this);if(!q(this,Q).retry.methods.includes(this.request.method.toLowerCase()))throw u;if(q(this,Q).retry.shouldRetry!==void 0){const o=await q(this,Q).retry.shouldRetry({error:s,retryCount:q(this,Bt)});if(o===!1)throw u;if(o===!0)return ke(this,oe,Gr).call(this)}if(a0(u)&&!q(this,Q).retry.retryOnTimeout)throw u;if(t0(u)){if(!q(this,Q).retry.statusCodes.includes(u.response.status))throw u;const o=u.response.headers.get("Retry-After")??u.response.headers.get("RateLimit-Reset")??u.response.headers.get("X-RateLimit-Retry-After")??u.response.headers.get("X-RateLimit-Reset")??u.response.headers.get("X-Rate-Limit-Reset");if(o&&q(this,Q).retry.afterStatusCodes.includes(u.response.status)){let f=Number(o)*1e3;Number.isNaN(f)?f=Date.parse(o)-Date.now():f>=Date.parse("2024-01-01")&&(f-=Date.now());const m=q(this,Q).retry.maxRetryAfter??f;return f<m?f:m}if(u.response.status===413)throw u}return ke(this,oe,Gr).call(this)},Us=function(u){return q(this,Q).parseJson&&(u.json=async()=>q(this,Q).parseJson(await u.text())),u},Vr=function(u){u&&u.cancel().catch(()=>{})},Ja=function(u){ke(this,oe,Vr).call(this,u.body??void 0)},qs=async function(u){try{return await u()}catch(s){const o=Math.min(await ke(this,oe,Sp).call(this,s),zs);if(q(this,Bt)<1)throw s;if(await Ib(o,q(this,ea)?{signal:q(this,ea)}:{}),s instanceof As&&s.customRequest){const f=q(this,Q).signal?new globalThis.Request(s.customRequest,{signal:q(this,Q).signal}):new globalThis.Request(s.customRequest);ke(this,oe,Xr).call(this,f)}for(const f of q(this,Q).hooks.beforeRetry){const m=await f({request:this.request,options:ke(this,oe,ri).call(this),error:s,retryCount:q(this,Bt)});if(m instanceof globalThis.Request){ke(this,oe,Xr).call(this,m);break}if(m instanceof globalThis.Response)return m;if(m===gp)return}return ke(this,oe,qs).call(this,u)}},kp=async function(){var s;(s=q(this,Jt))!=null&&s.signal.aborted&&(Kt(this,Jt,new globalThis.AbortController),q(this,Q).signal=q(this,ea)?AbortSignal.any([q(this,ea),q(this,Jt).signal]):q(this,Jt).signal,this.request=new globalThis.Request(this.request,{signal:q(this,Q).signal}));for(const o of q(this,Q).hooks.beforeRequest){const f=await o(this.request,ke(this,oe,ri).call(this),{retryCount:q(this,Bt)});if(f instanceof Response)return f;if(f instanceof globalThis.Request){ke(this,oe,Xr).call(this,f);break}}const u=Pb(this.request,q(this,Q));return Kt(this,$a,this.request),this.request=q(this,$a).clone(),q(this,Q).timeout===!1?q(this,Q).fetch(q(this,$a),u):Fb(q(this,$a),u,q(this,Jt),q(this,Q))},ri=function(){if(!q(this,vn)){const{hooks:u,...s}=q(this,Q);Kt(this,vn,Object.freeze(s))}return q(this,vn)},Xr=function(u){Kt(this,vn,void 0),this.request=ke(this,oe,Ls).call(this,u)},Ls=function(u,s){return!q(this,Q).onUploadProgress||!u.body?u:Xb(u,q(this,Q).onUploadProgress,s??q(this,Q).body??void 0)},Pt(ui,Jr);let Kr=ui;/*! MIT License © Sindre Sorhus */const Hs=i=>{const u=(s,o)=>Kr.create(s,Nr(i,o));for(const s of pp)u[s]=(o,f)=>Kr.create(o,Nr(i,f,{method:s}));return u.create=s=>Hs(Nr(s)),u.extend=s=>(typeof s=="function"&&(s=s(i??{})),Hs(Nr(i,s))),u.stop=gp,u.retry=Lb,u},Eh=Hs();let Ur=null;const Qr=Eh.create({prefixUrl:"/api",timeout:3e4,hooks:{beforeRequest:[i=>{const u=xa.getState().accessToken;u&&i.headers.set("Authorization",`Bearer ${u}`)}],afterResponse:[async(i,u,s)=>{if(s.status===401&&!i.headers.has("X-Retry-After-Refresh")){Ur||(Ur=xa.getState().refresh().finally(()=>{Ur=null}));try{await Ur}catch{throw s}const o=xa.getState().accessToken;return o&&i.headers.set("Authorization",`Bearer ${o}`),i.headers.set("X-Retry-After-Refresh","1"),Eh(i,u)}}]}}),n0=3e4;function l0(i){if(i.link)return i.link;const u=(i.title+" "+i.body).match(/task\s*#?(\d+)/i);if(u)return`/tasks/${u[1]}`;const s=(i.title+" "+i.body).match(/worker\s+(\S+)/i);return s?`/workers/${s[1]}`:null}function Ep(){const i=Fa(),[u,s]=y.useState([]),[o,f]=y.useState(0),[m,g]=y.useState(!1),[b,_]=y.useState(!1),p=y.useRef(null),{t:w}=Vt(),k=y.useRef(async()=>{try{_(!0);const H=(await Qr.get("web/notifications",{searchParams:{limit:"20"}}).json()).data,B=H.filter(U=>!U.isRead).length;s(U=>U.length===H.length&&U.every((K,X)=>K.id===H[X].id&&K.isRead===H[X].isRead)?U:H),f(U=>U===B?U:B)}catch{}finally{_(!1)}});y.useEffect(()=>{k.current();const L=setInterval(()=>k.current(),n0);return()=>clearInterval(L)},[]),y.useEffect(()=>{function L(H){p.current&&!p.current.contains(H.target)&&g(!1)}return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);async function N(L){try{await Qr.post(`web/notifications/${L}/read`),s(H=>H.map(B=>B.id===L?{...B,isRead:!0}:B)),f(H=>Math.max(0,H-1))}catch{}}async function Y(){try{await Qr.post("web/notifications/read-all"),s(L=>L.map(H=>({...H,isRead:!0}))),f(0)}catch{}}return h.jsxs("div",{className:"relative",ref:p,children:[h.jsxs("button",{type:"button",onClick:()=>g(L=>!L),"aria-label":w("common.notifications"),className:"relative inline-flex items-center justify-center rounded-[4px] p-2 text-[var(--text-secondary)] transition-colors hover:bg-[var(--border)] hover:text-[var(--text-primary)]",children:[h.jsx(Pv,{size:16}),o>0&&h.jsx("span",{className:"absolute right-0 top-0 flex h-3 min-w-3 items-center justify-center rounded-full bg-[var(--destructive)] px-0.5 text-[8px] font-semibold leading-none text-white",children:o})]}),m&&h.jsxs("div",{className:"absolute right-0 top-full z-50 mt-2 w-[min(320px,calc(100vw-2rem))] rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] shadow-lg",children:[h.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--border)] px-4 py-3",children:[h.jsx("span",{className:"text-sm font-semibold",children:w("common.notifications")}),o>0&&h.jsxs("button",{type:"button",onClick:Y,"aria-label":w("common.mark_all_read"),className:"inline-flex items-center gap-1.5 text-xs text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:[h.jsx(eb,{className:"h-3.5 w-3.5"}),w("common.mark_all_read")]})]}),h.jsx("div",{className:"max-h-80 overflow-y-auto",children:b&&u.length===0?h.jsx("div",{className:"flex justify-center py-8",children:h.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-[var(--border)] border-t-[var(--accent)]"})}):u.length===0?h.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[h.jsx("span",{className:"text-xl font-bold text-[var(--border)]",children:"[ ]"}),h.jsx("span",{className:"text-xs text-[var(--text-muted)]",children:w("common.no_notifications")})]}):u.map(L=>{const H=l0(L);return h.jsxs("div",{className:`flex items-start gap-3 border-b border-[var(--border)] px-4 py-3 last:border-b-0 transition-colors ${H?"cursor-pointer hover:bg-[var(--bg-input)]":""} ${L.isRead?"opacity-60":"bg-[var(--accent)]/5"}`,onClick:()=>{H&&(L.isRead||N(L.id),g(!1),i(H))},children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("p",{className:"truncate text-sm font-medium",title:L.title,children:L.title}),h.jsx("p",{className:"truncate text-xs text-[var(--text-secondary)]",title:L.body,children:L.body}),h.jsx("p",{className:"mt-1 text-xs text-[var(--text-secondary)] opacity-60",children:new Date(L.createdAt).toLocaleString()})]}),!L.isRead&&h.jsx("button",{type:"button",onClick:B=>{B.stopPropagation(),N(L.id)},"aria-label":w("common.mark_as_read"),className:"shrink-0 rounded-[4px] p-1 text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:h.jsx(tb,{className:"h-3.5 w-3.5"})})]},L.id)})})]})]})}function i0(i){return i&&i.trim().length>0?i:null}function wp(i,u=50){return i0(i.name)??Wh(i.description,u)}function r0(i){return i.description}function Tp(i){return`#${i.id} ${r0(i)}`}function ex(i,u=100){return{text:`#${i.id} ${wp(i,u)}`,title:Tp(i)}}function u0(i){return{tasks:i.tasks.map(u=>({type:"task",id:u.id,title:`#${u.id} ${wp(u)}`,subtitle:`${u.status} · ${u.project_key}`,hoverTitle:Tp(u)})),workers:(i.workers??[]).map(u=>({type:"worker",id:u.id,title:u.name,subtitle:`${u.hostname} · ${u.status}`})),projects:i.projects.map(u=>({type:"project",id:u.key,title:u.name,subtitle:u.repository}))}}const o0=300,wh={tasks:vb,workers:lp,projects:ub},s0={tasks:"tasks",workers:"workers",projects:"projects"};function jp({renderTrigger:i}={}){const[u,s]=y.useState(""),[o,f]=y.useState({tasks:[],workers:[],projects:[]}),[m,g]=y.useState(!1),[b,_]=y.useState(!1),[p,w]=y.useState(0),k=y.useRef(null),N=y.useRef(null),Y=y.useRef(void 0),L=y.useRef(void 0),H=Fa(),{t:B}=Vt(),U=y.useMemo(()=>[...o.tasks,...o.workers,...o.projects],[o]),K=y.useCallback(async W=>{var Pe;if(!W.trim()){f({tasks:[],workers:[],projects:[]});return}(Pe=L.current)==null||Pe.abort();const se=new AbortController;L.current=se;try{g(!0);const Je=await Qr.get("web/search",{searchParams:{q:W},signal:se.signal}).json();f(u0(Je)),w(0)}catch(Je){if(Je instanceof DOMException&&Je.name==="AbortError")return}finally{se.signal.aborted||g(!1)}},[]);y.useEffect(()=>(Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>K(u),o0),()=>{Y.current&&clearTimeout(Y.current)}),[u,K]),y.useEffect(()=>{function W(se){se.key==="/"&&!b&&!(se.target instanceof HTMLInputElement||se.target instanceof HTMLTextAreaElement)&&(se.preventDefault(),_(!0)),se.key==="Escape"&&b&&(se.preventDefault(),X())}return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[b]),y.useEffect(()=>{b&&setTimeout(()=>{var W;return(W=N.current)==null?void 0:W.focus()},50)},[b]);function X(){_(!1),s(""),f({tasks:[],workers:[],projects:[]}),w(0)}function ue(W){switch(X(),W.type){case"task":H(`/tasks/${W.id}`);break;case"worker":H(`/workers/${W.id}`);break;case"project":H(`/projects/${W.id}`);break}}function ce(W){W.key==="ArrowDown"?(W.preventDefault(),w(se=>Math.min(se+1,U.length-1))):W.key==="ArrowUp"?(W.preventDefault(),w(se=>Math.max(se-1,0))):W.key==="Enter"&&U[p]&&(W.preventDefault(),ue(U[p]))}const ge=U.length>0;let F=0;return h.jsxs(h.Fragment,{children:[i?i(()=>_(!0)):h.jsxs("button",{type:"button",onClick:()=>_(!0),className:"flex items-center gap-2 rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-1.5 text-xs text-[var(--text-muted)] transition-colors hover:border-[var(--text-muted)]",children:[h.jsx(np,{className:"h-3.5 w-3.5"}),h.jsx("span",{children:B("common.search_placeholder")}),h.jsx("kbd",{className:"ml-2 rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] px-1.5 py-0.5 text-[11px] text-[var(--text-muted)]",children:"/"})]}),b&&h.jsx("div",{ref:k,className:"fixed inset-0 z-[100] flex items-start justify-center pt-[calc(var(--safe-area-top,0px)+16px)] md:pt-[15vh]",style:{backgroundColor:"rgba(0, 0, 0, 0.6)"},onClick:W=>{W.target===k.current&&X()},children:h.jsxs("div",{className:"mx-3 w-full max-w-[640px] rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] shadow-2xl sm:mx-4 md:mx-0",children:[h.jsxs("div",{className:"flex items-center gap-3 border-b border-[var(--border)] px-4 py-3",children:[h.jsx("span",{className:"text-sm text-[var(--accent)]",children:"/"}),h.jsx("input",{ref:N,type:"text",placeholder:B("common.search_input_placeholder"),value:u,onChange:W=>s(W.target.value),onKeyDown:ce,className:"flex-1 bg-transparent text-sm text-[var(--text-primary)] placeholder:text-[var(--text-muted)] outline-none"}),m&&h.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-[var(--border)] border-t-[var(--accent)]"})]}),h.jsx("div",{className:"max-h-[50vh] overflow-y-auto sm:max-h-[60vh] md:max-h-[400px]",children:u.trim()&&!ge&&!m?h.jsx("div",{className:"py-10 text-center text-xs text-[var(--text-muted)]",children:B("common.no_search_results",{query:u})}):Object.keys(wh).map(W=>{const se=o[W];if(se.length===0)return null;const Pe=wh[W],Je=F;return F+=se.length,h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 text-[var(--text-muted)]",children:[h.jsx(Pe,{className:"h-3 w-3"}),h.jsx("span",{className:"text-[11px] lowercase tracking-wider",children:s0[W]})]}),se.map((Ce,At)=>{const ut=Je+At,Me=ut===p;return h.jsxs("button",{type:"button",className:`flex w-full items-center gap-3 px-4 py-2.5 text-left transition-colors ${Me?"bg-[var(--accent)]/10 text-[var(--accent)]":"hover:bg-[var(--bg-input)]"}`,onClick:()=>ue(Ce),onMouseEnter:()=>w(ut),children:[h.jsx("span",{className:`text-xs ${Me?"text-[var(--accent)]":"text-[var(--text-muted)]"}`,children:Me?">":" "}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("p",{className:"truncate text-sm",title:Ce.hoverTitle??Ce.title,children:Ce.title}),Ce.subtitle&&h.jsx("p",{className:"truncate text-xs text-[var(--text-muted)]",title:Ce.subtitle,children:Ce.subtitle})]})]},`${Ce.type}-${Ce.id}`)})]},W)})}),h.jsxs("div",{className:"hidden items-center gap-4 border-t border-[var(--border)] px-4 py-2 md:flex",children:[h.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-[var(--text-muted)]",children:[h.jsx("kbd",{className:"rounded-[4px] border border-[var(--border)] px-1",children:"↑↓"})," ",B("common.navigate_hint")]}),h.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-[var(--text-muted)]",children:[h.jsx("kbd",{className:"rounded-[4px] border border-[var(--border)] px-1",children:"↵"})," ",B("common.select_hint")]}),h.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-[var(--text-muted)]",children:[h.jsx("kbd",{className:"rounded-[4px] border border-[var(--border)] px-1",children:"esc"})," ",B("common.close_hint")]})]})]})})]})}const c0={danger:"var(--destructive)",warning:"var(--warning)",accent:"var(--accent)"};function Th(i){return Array.from(i.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'))}function f0({isOpen:i,onClose:u,onConfirm:s,title:o,message:f,confirmLabel:m,cancelLabel:g,confirmVariant:b="danger",isLoading:_,children:p}){const{t:w}=Vt(),k=y.useId(),N=m??w("common.confirm"),Y=g??w("common.cancel"),L=y.useRef(null),H=y.useRef(null),B=c0[b];y.useEffect(()=>{if(!i)return;H.current=document.activeElement;const K=requestAnimationFrame(()=>{if(L.current){const X=Th(L.current);X.length>0&&X[0].focus()}});return()=>{var X;cancelAnimationFrame(K),(X=H.current)==null||X.focus()}},[i]);const U=y.useCallback(K=>{if(K.key==="Escape"){u();return}if(K.key==="Tab"&&L.current){const X=Th(L.current);if(X.length===0)return;const ue=X[0],ce=X[X.length-1];K.shiftKey?document.activeElement===ue&&(K.preventDefault(),ce.focus()):document.activeElement===ce&&(K.preventDefault(),ue.focus())}},[u]);return i?h.jsx("div",{onClick:u,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"max(1rem, 10vh)",paddingLeft:"1rem",paddingRight:"1rem",backgroundColor:"var(--modal-backdrop, rgba(12,12,12,0.6))"},children:h.jsxs("div",{ref:L,role:"dialog","aria-modal":"true","aria-labelledby":k,onClick:K=>K.stopPropagation(),onKeyDown:U,style:{width:"100%",maxWidth:"480px",backgroundColor:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:"4px",padding:"1.5rem"},children:[h.jsx("div",{style:{marginBottom:"1.25rem"},children:h.jsxs("div",{id:k,style:{color:"var(--accent)",fontSize:"0.875rem",fontWeight:600,display:"flex",alignItems:"center",gap:"0.5rem"},children:[h.jsx(ip,{style:{width:"1rem",height:"1rem"}}),o]})}),h.jsxs("div",{style:{marginBottom:"1.25rem"},children:[h.jsx("p",{style:{color:"var(--text-muted)",fontSize:"0.75rem",lineHeight:"1.5"},children:f}),p]}),h.jsxs("div",{style:{display:"flex",gap:"0.75rem"},children:[h.jsx("button",{type:"button",onClick:u,disabled:_,className:"text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:border-[var(--text-muted)]",style:{flex:1,padding:"0.5rem",backgroundColor:"transparent",border:"1px solid var(--border)",borderRadius:"4px",fontSize:"0.75rem",cursor:_?"not-allowed":"pointer",opacity:_?.7:1,transition:"color 0.15s, border-color 0.15s"},children:Y}),h.jsx("button",{type:"button",onClick:s,disabled:_,style:{flex:1,padding:"0.5rem",backgroundColor:B,color:"#0C0C0C",border:"none",borderRadius:"4px",fontSize:"0.75rem",fontWeight:600,cursor:_?"not-allowed":"pointer",opacity:_?.7:1},children:_?w("common.processing"):N})]})]})}):null}const jh="overlord-pwa-install-dismissed";function d0(){const i=navigator.userAgent;return/iP(hone|od|ad)/.test(i)&&/WebKit/.test(i)&&!/(CriOS|FxiOS|OPiOS|mercury)/.test(i)}function m0(){return navigator.standalone===!0||window.matchMedia("(display-mode: standalone)").matches}function h0(){const{t:i}=Vt(),[u,s]=y.useState("hidden"),[o,f]=y.useState(!1),m=y.useRef(null),g=y.useRef(void 0);y.useEffect(()=>{if(m0()||localStorage.getItem(jh)||window.innerWidth>=768)return;const p=k=>{k.preventDefault(),m.current=k};window.addEventListener("beforeinstallprompt",p);const w=setTimeout(()=>s("visible"),1e3);return()=>{window.removeEventListener("beforeinstallprompt",p),clearTimeout(w),clearTimeout(g.current)}},[]);function b(){localStorage.setItem(jh,"1"),s("dismissing"),g.current=setTimeout(()=>s("hidden"),200)}async function _(){if(m.current){await m.current.prompt();const{outcome:p}=await m.current.userChoice;p==="accepted"&&b(),m.current=null}else d0()&&f(!0)}return u==="hidden"?null:h.jsx("div",{className:`fixed bottom-4 left-4 right-4 z-40 md:hidden ${u==="dismissing"?"animate-slide-down":"animate-slide-up"}`,role:"dialog","aria-label":i("pwa_install.title"),children:h.jsxs("div",{className:"overflow-hidden rounded-[4px] border border-[var(--accent)]/40 bg-[var(--bg-card)] shadow-[0_8px_32px_rgba(0,0,0,0.2)]",children:[h.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--accent)]/20 bg-[var(--accent)]/[0.06] px-3 py-1.5",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-[var(--accent)]"}),h.jsx("span",{className:"text-[9px] font-medium text-[var(--accent)]",children:i("pwa_install.title")})]}),h.jsx("button",{onClick:b,className:"p-1 text-[var(--text-muted)] transition-colors hover:text-[var(--text-primary)]",children:h.jsx(rp,{size:14})})]}),h.jsx("div",{className:"px-3.5 py-3",children:o?h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"text-[10px] text-[var(--text-muted)]",children:[h.jsx("span",{className:"text-[var(--accent)]",children:"$"})," ",i("pwa_install.ios_command")]}),h.jsx("div",{className:"mt-2.5 flex flex-col gap-2.5",children:[i("pwa_install.ios_step_1"),i("pwa_install.ios_step_2"),i("pwa_install.ios_step_3")].map((p,w)=>h.jsxs("div",{className:"flex items-center gap-2.5",children:[h.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-[4px] bg-[var(--accent)]/[0.08]",children:h.jsx("span",{className:"text-xs font-semibold text-[var(--accent)]",children:w+1})}),h.jsxs("span",{className:"text-[10px] leading-snug text-[var(--text-secondary)]",children:[w===0&&h.jsx(gb,{size:12,className:"mr-1 inline-block align-text-bottom text-[var(--text-muted)]"}),p]})]},w))})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"text-[10px] text-[var(--text-muted)]",children:[h.jsx("span",{className:"text-[var(--accent)]",children:"$"})," ",i("pwa_install.command")]}),h.jsxs("div",{className:"mt-1.5 text-[10px] leading-relaxed text-[var(--text-secondary)]",children:["→ ",i("pwa_install.desc_1"),h.jsx("br",{}),"→ ",i("pwa_install.desc_2")]}),h.jsxs("div",{className:"mt-2.5 flex gap-2",children:[h.jsx("button",{onClick:_,className:"rounded-[4px] bg-[var(--accent)] px-4 py-1.5 text-[10px] font-semibold text-black transition-all hover:brightness-110",children:i("pwa_install.install")}),h.jsx("button",{onClick:b,className:"rounded-[4px] border border-[var(--border)] px-3 py-1.5 text-[10px] text-[var(--text-muted)] transition-colors hover:border-[var(--text-muted)]",children:i("pwa_install.skip")})]})]})})]})})}function p0(){const{t:i}=Vt(),[u,s]=y.useState(!1);return y.useEffect(()=>{if(!("serviceWorker"in navigator))return;let o=!1,f=null,m=null,g=null,b=null;function _(){o||s(!0)}navigator.serviceWorker.addEventListener("controllerchange",_);function p(k){if(f=k,k.waiting){s(!0);return}g=()=>{const N=k.installing;N&&(m=N,b=()=>{N.state==="installed"&&navigator.serviceWorker.controller&&(o||s(!0))},N.addEventListener("statechange",b))},k.addEventListener("updatefound",g)}navigator.serviceWorker.getRegistration().then(k=>{k&&!o&&p(k)});const w=setInterval(()=>{navigator.serviceWorker.getRegistration().then(k=>{!k||o||(k.update().catch(()=>{}),k.waiting&&s(!0))})},3e4);return()=>{o=!0,clearInterval(w),navigator.serviceWorker.removeEventListener("controllerchange",_),f&&g&&f.removeEventListener("updatefound",g),m&&b&&m.removeEventListener("statechange",b)}},[]),u?h.jsx("div",{className:"animate-slide-up fixed bottom-20 left-4 right-4 z-50 md:bottom-4 md:left-auto md:right-4 md:w-80",children:h.jsxs("div",{className:"flex items-center gap-3 rounded-[4px] border border-[var(--accent)]/40 bg-[var(--bg-card)] px-3.5 py-3 shadow-[0_8px_32px_rgba(0,0,0,0.2)]",children:[h.jsx(ap,{size:14,className:"shrink-0 text-[var(--accent)]"}),h.jsx("span",{className:"flex-1 text-[10px] text-[var(--text-secondary)]",children:i("pwa_update.message")}),h.jsx("button",{onClick:()=>window.location.reload(),className:"shrink-0 rounded-[4px] bg-[var(--accent)] px-3 py-1 text-[10px] font-semibold text-black transition-all hover:brightness-110",children:i("pwa_update.reload")})]})}):null}const qr=64,g0=96,Rh=32;function y0({children:i,className:u}){const s=y.useRef(null),o=y.useRef(0),f=y.useRef("idle"),[m,g]=y.useState(0),[b,_]=y.useState("idle"),p=y.useCallback(U=>{f.current=U,_(U)},[]),w=y.useCallback(()=>{const U=s.current;return U?U.scrollTop<=0:!0},[]),k=y.useCallback(U=>{if(!w()){o.current=0;return}o.current=U.touches[0].clientY},[w]),N=y.useCallback(U=>{if(f.current==="refreshing"||o.current===0)return;const X=U.touches[0].clientY-o.current;if(X<=0){f.current!=="idle"&&(g(0),p("idle"));return}if(!w())return;U.preventDefault();const ue=Math.min(X*.5,g0);g(ue),p(ue>=qr?"ready":"pulling")},[w,p]),Y=y.useCallback(()=>{f.current!=="refreshing"&&(f.current==="ready"?(p("refreshing"),g(qr),setTimeout(()=>{window.location.reload()},300)):(g(0),p("idle")),o.current=0)},[p]);y.useEffect(()=>{const U=s.current;if(U)return U.addEventListener("touchstart",k,{passive:!0}),U.addEventListener("touchmove",N,{passive:!1}),U.addEventListener("touchend",Y,{passive:!0}),()=>{U.removeEventListener("touchstart",k),U.removeEventListener("touchmove",N),U.removeEventListener("touchend",Y)}},[k,N,Y]);const L=Math.min(m/qr,1),H=b==="refreshing"?0:m/qr*180,B=m>0||b==="refreshing";return h.jsxs("div",{ref:s,className:u,style:{overscrollBehaviorY:"contain"},children:[B&&h.jsx("div",{className:"pointer-events-none flex items-center justify-center md:hidden",style:{height:m,transition:b==="idle"?"height 200ms ease-out":void 0},children:h.jsx("div",{className:"flex items-center justify-center rounded-full bg-[var(--bg-card)] border border-[var(--border)]",style:{width:Rh,height:Rh,opacity:L,transition:b==="idle"?"opacity 200ms ease-out":void 0},children:b==="refreshing"?h.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",className:"animate-spin",style:{color:"var(--accent)"},children:[h.jsx("circle",{cx:"8",cy:"8",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"2",opacity:"0.3"}),h.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}):h.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",style:{color:b==="ready"?"var(--accent)":"var(--text-muted)",transform:`rotate(${H}deg)`,transition:"color 150ms"},children:h.jsx("path",{d:"M8 3v8M5 8l3 3 3-3",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),i]})}const Rp=y.createContext({setActions:()=>{}});function tx(i){const{setActions:u}=y.useContext(Rp);y.useEffect(()=>(u(i),()=>u(null)),[i,u])}const Ap=y.createContext({setSubtitle:()=>{}});function ax(i){const{setSubtitle:u}=y.useContext(Ap),s=typeof i=="string"?i:(i==null?void 0:i.text)??null,o=typeof i=="string"?i:(i==null?void 0:i.title)??(i==null?void 0:i.text)??null;y.useEffect(()=>s?(u(o&&o!==s?{text:s,title:o}:s),()=>u(null)):(u(null),()=>u(null)),[s,o,u])}const _0=[{to:"/plan",label:"plan",icon:Ih},{to:"/review",label:"review",icon:Ph}],v0=[{to:"/home",label:"terminal",icon:$s},{to:"/tasks",label:"tasks",icon:tp},{to:"/dashboard",label:"dashboard",icon:ep}],b0=[{to:"/workers",label:"workers",icon:lp},{to:"/projects",label:"projects",icon:ob},{to:"/access-tokens",label:"tokens",icon:cb}],x0=[{to:"/docs/cli",label:"cli",icon:$s},{to:"/docs/api",label:"api",icon:rb},{to:"/docs/bot",label:"bot",icon:hb},{to:"/docs/skill",label:"skill",icon:_b},{to:"/docs/all",label:"all",icon:fb}],S0=[{to:"/admin",label:"admin",icon:yb}],k0=[{to:"/home",label:"terminal",icon:$s},{to:"/tasks",label:"tasks",icon:tp},{to:"/plan",label:"plan",icon:Ih},{to:"/review",label:"review",icon:Ph},{to:"/dashboard",label:"dashboard",icon:ep}],Lr={"/home":{title:"common.breadcrumb_terminal",subtitle:"common.breadcrumb_terminal_sub"},"/dashboard":{title:"common.breadcrumb_dashboard",subtitle:"common.breadcrumb_dashboard_sub"},"/tasks":{title:"common.breadcrumb_tasks",subtitle:"common.breadcrumb_tasks_sub"},"/plan":{title:"plan.title",subtitle:"plan.title"},"/review":{title:"review.title",subtitle:"review.title"},"/workers":{title:"common.breadcrumb_workers",subtitle:"common.breadcrumb_workers_sub"},"/projects":{title:"common.breadcrumb_projects",subtitle:"common.breadcrumb_projects_sub"},"/admin":{title:"common.breadcrumb_admin",subtitle:"common.breadcrumb_admin_sub"},"/profile":{title:"common.breadcrumb_profile",subtitle:"common.breadcrumb_profile_sub"},"/access-tokens":{title:"common.breadcrumb_tokens",subtitle:"common.breadcrumb_tokens_sub"},"/docs":{title:"common.breadcrumb_docs",subtitle:"common.breadcrumb_docs_sub"},"/docs/cli":{title:"common.breadcrumb_docs_cli",subtitle:"common.breadcrumb_docs_cli_sub"},"/docs/api":{title:"common.breadcrumb_docs_api",subtitle:"common.breadcrumb_docs_api_sub"},"/docs/skill":{title:"common.breadcrumb_docs_skill",subtitle:"common.breadcrumb_docs_skill_sub"},"/docs/bot":{title:"common.breadcrumb_docs",subtitle:"common.breadcrumb_docs_bot_sub"},"/docs/all":{title:"common.breadcrumb_docs",subtitle:"common.breadcrumb_docs_all_sub"}};function E0(i){const{t:u}=Vt();if(Lr[i]){const o=Lr[i];return{title:u(o.title),subtitle:u(o.subtitle)}}const s="/"+i.split("/").filter(Boolean)[0];if(Lr[s]){const o=Lr[s],f=i.split("/").filter(Boolean).slice(1).join(" / ");return{title:u(o.title),subtitle:f||u(o.subtitle)}}return{title:i.slice(1).replace(/\//g," // ")||"home"}}function w0(i,u){return i==="/home"?u==="/home":i==="/dashboard"?u==="/dashboard":u.startsWith(i)}function T0(){const i=yt(),{t:u}=Vt(),s={terminal:u("terminal_home.title"),dashboard:u("dashboard.title"),tasks:u("tasks.title"),workers:u("workers.title"),plan:u("plan.title"),review:u("review.title")};return h.jsxs("nav",{className:"flex items-center justify-around border-t border-[var(--border)] bg-[var(--bg-card)]",style:{height:48,paddingTop:4},children:[k0.map(({to:o,label:f,icon:m})=>{const g=w0(o,i.pathname);return h.jsxs(Js,{to:o,className:"flex flex-1 flex-col items-center gap-1",children:[h.jsx(m,{size:18,className:g?"text-[var(--accent)]":"text-[var(--text-muted)]"}),h.jsx("span",{className:`text-[11px] lowercase ${g?"font-bold text-[var(--accent)]":"text-[var(--text-muted)]"}`,children:s[f]??f})]},o)}),h.jsx(jp,{renderTrigger:o=>h.jsxs("button",{type:"button",onClick:o,className:"flex flex-1 flex-col items-center gap-1",children:[h.jsx(np,{size:18,className:"text-[var(--text-muted)]"}),h.jsx("span",{className:"text-[11px] lowercase text-[var(--text-muted)]",children:u("common.search_placeholder")})]})})]})}function j0(){const i=Fa(),{t:u}=Vt();return h.jsxs("header",{className:"flex items-center justify-between border-b border-[var(--border)] bg-[var(--bg-card)] px-4 md:hidden",style:{height:"calc(56px + env(safe-area-inset-top, 0px))",minHeight:"calc(56px + env(safe-area-inset-top, 0px))",paddingTop:"env(safe-area-inset-top, 0px)"},children:[h.jsxs("button",{onClick:()=>i("/home"),className:"flex items-center gap-2",style:{background:"none",border:"none",padding:0},children:[h.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-[4px] bg-[var(--accent)]",children:h.jsx("span",{className:"text-sm font-semibold",style:{color:"#0C0C0C"},children:"~"})}),h.jsx("span",{className:"text-sm font-bold lowercase text-[var(--text-primary)]",children:u("common.overlord")})]}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("button",{onClick:()=>i("/profile"),className:"p-2 text-[var(--text-secondary)] transition-colors hover:text-[var(--text-primary)]","aria-label":u("common.profile"),children:h.jsx(xb,{size:18})}),h.jsx(Ep,{}),h.jsx(dp,{})]})]})}function li({label:i,items:u,collapsed:s}){return h.jsxs("div",{className:"mt-4 first:mt-0",children:[h.jsx("div",{className:`overflow-hidden transition-all duration-300 ${s?"max-h-0 mb-0 opacity-0":"max-h-6 mb-2 opacity-100"}`,children:h.jsx("div",{className:"px-3 text-xs lowercase",style:{color:"var(--text-muted)"},children:i})}),u.map(({to:o,label:f,icon:m})=>h.jsx(Js,{to:o,className:({isActive:g})=>`flex items-center text-sm lowercase transition-all duration-300 ${s?"justify-center py-3":"gap-2.5 px-3 py-1.5"} ${g?"text-[var(--accent)] bg-[var(--accent)]/5":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:({isActive:g})=>h.jsxs(h.Fragment,{children:[h.jsx(m,{size:14,style:{flexShrink:0}}),!s&&h.jsx("span",{children:g?`> ${f}`:` ${f}`})]})},o))]})}function R0(){const{user:i,logout:u}=xa(),s=Fa(),[o,f]=y.useState(!1),m=wb(),{t:g}=Vt(),{sidebarCollapsed:b,toggleSidebar:_}=jb();function p(){u(),s("/login")}return h.jsxs("aside",{className:"hidden md:flex flex-col border-r border-[var(--border)] transition-[width,min-width] duration-300 overflow-hidden",style:{width:b?56:240,minWidth:b?56:240,backgroundColor:"var(--bg-card)"},children:[h.jsx("div",{className:"flex items-center px-5",style:{height:48},children:h.jsxs("button",{onClick:()=>s("/home"),className:"flex items-center gap-2.5",style:{background:"none",border:"none",padding:0},children:[h.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-[4px] bg-[var(--accent)]",style:{flexShrink:0},children:h.jsx("span",{className:"text-lg font-semibold",style:{color:"#0C0C0C"},children:"~"})}),!b&&h.jsx("span",{className:"text-base font-bold lowercase tracking-tight",style:{color:"var(--text-primary)"},children:g("common.overlord")})]})}),h.jsxs("nav",{className:"flex-1 px-3 pt-2",children:[h.jsx(li,{label:g("common.loop_section"),items:_0,collapsed:b}),h.jsx(li,{label:g("common.tasks_section"),items:v0,collapsed:b}),h.jsx(li,{label:g("common.fleet_section"),items:b0,collapsed:b}),h.jsx(li,{label:g("common.docs_section"),items:x0,collapsed:b}),m&&h.jsx(li,{label:g("common.admin_section"),items:S0,collapsed:b})]}),h.jsx("div",{className:"flex px-3 py-1",children:h.jsx("button",{onClick:_,className:"flex items-center justify-center w-full py-1.5 rounded-[4px] text-[var(--text-secondary)] transition-colors hover:text-[var(--accent)] hover:bg-[var(--accent)]/5","aria-label":b?"expand sidebar":"collapse sidebar",children:b?h.jsx(nb,{size:14}):h.jsx(ab,{size:14})})}),h.jsx("div",{className:"border-t border-[var(--border)] p-3",children:h.jsxs("div",{className:`flex min-h-[44px] items-center px-3 transition-[gap] duration-300 ${b?"gap-0":"gap-3"}`,children:[h.jsx("button",{onClick:()=>s("/profile"),className:"flex h-7 w-7 items-center justify-center text-xs font-bold text-black transition-opacity hover:opacity-80",style:{backgroundColor:"var(--accent)",borderRadius:4,flexShrink:0},title:g("common.profile"),children:((i==null?void 0:i.username)??"u")[0].toUpperCase()}),h.jsxs("div",{className:`flex min-w-0 flex-1 items-center overflow-hidden transition-[max-width,opacity] duration-300 ${b?"pointer-events-none max-w-0 opacity-0":"max-w-[calc(100%-28px)] opacity-100"}`,"aria-hidden":b,children:[h.jsxs("button",{onClick:()=>s("/profile"),className:"min-w-0 flex-1 text-left transition-colors hover:opacity-80",title:g("common.profile"),tabIndex:b?-1:void 0,children:[h.jsx("div",{className:"truncate text-sm lowercase",style:{color:"var(--text-primary)"},children:(i==null?void 0:i.username)??"user"}),h.jsx("div",{className:"truncate text-xs lowercase",style:{color:"var(--text-muted)"},children:(i==null?void 0:i.role)??"user"})]}),h.jsx("button",{onClick:()=>f(!0),className:"ml-2 p-1 text-[var(--text-secondary)] transition-colors hover:text-[var(--accent)]","aria-label":g("common.log_out"),tabIndex:b?-1:void 0,children:h.jsx(mb,{size:14})})]})]})}),h.jsx(f0,{isOpen:o,onClose:()=>f(!1),onConfirm:p,title:g("common.logout_title"),message:g("common.logout_message"),confirmLabel:g("common.logout"),confirmVariant:"warning"})]})}function A0({headerActions:i,subtitleOverride:u}){const s=yt(),{title:o,subtitle:f}=E0(s.pathname),m=u??f,g=typeof m=="string"?m:m==null?void 0:m.text,b=typeof m=="string"?m:(m==null?void 0:m.title)??(m==null?void 0:m.text);return h.jsxs("header",{className:"hidden md:flex items-center justify-between border-b border-[var(--border)] px-5",style:{height:48,minHeight:48,backgroundColor:"var(--bg-card)"},children:[h.jsxs("div",{className:"text-sm lowercase",children:[h.jsx("span",{style:{color:"var(--text-primary)"},children:o}),g&&h.jsxs("span",{style:{color:"var(--text-muted)"},title:b,children:[" ","// ",Wh(g,40)]})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[i,h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx(jp,{}),h.jsx(Ep,{}),h.jsx(dp,{})]})]})]})}function z0(){const[i,u]=y.useState(null),[s,o]=y.useState(null),f=yt(),m=f.pathname==="/home",g=/^\/tasks\/\d+$/.test(f.pathname),b=f.pathname.startsWith("/docs");return y.useEffect(()=>sp.getState().init(),[]),h.jsxs("div",{className:"fixed inset-x-0 top-0 flex w-full overflow-hidden font-mono md:flex-row",style:{height:"var(--app-height, 100dvh)",minHeight:"var(--app-height, 100dvh)"},children:[h.jsx(R0,{}),h.jsxs("div",{"data-testid":"app-main-column",className:"flex min-h-0 flex-1 flex-col overflow-hidden pb-[calc(48px+var(--safe-area-bottom,0px))] md:pb-0",children:[h.jsx(j0,{}),!b&&h.jsx(A0,{headerActions:i,subtitleOverride:s}),h.jsx(y0,{className:m||g?"min-h-0 flex-1 overflow-hidden bg-[var(--bg-primary)]":"min-h-0 flex-1 overflow-auto bg-[var(--bg-primary)] p-4 pb-6 md:p-6 md:pb-6",children:h.jsx(Rp.Provider,{value:{setActions:u},children:h.jsx(Ap.Provider,{value:{setSubtitle:o},children:h.jsx(hv,{})})})}),h.jsx(h0,{}),h.jsx(p0,{}),h.jsx("div",{className:"safe-area-bottom-fill fixed inset-x-0 bottom-0 z-30 bg-[var(--bg-card)] md:hidden",children:h.jsx(T0,{})})]})]})}function Ah(i){var s;const u=(s=i.state)==null?void 0:s.from;return u?{from:u}:{from:{pathname:i.pathname,search:i.search}}}function ii({children:i,requireAdmin:u=!1}){const{accessToken:s,user:o,requireTotpSetup:f,initializing:m}=xa(),g=yt();if(m)return h.jsx("div",{className:"flex h-screen items-center justify-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-[var(--border)] border-t-[var(--accent)]"})});if(!s)return h.jsx(ll,{to:"/login",state:Ah(g),replace:!0});if(f){const b=Ah(g);return g.pathname!=="/totp-setup"&&g.pathname!=="/bind"?h.jsx(ll,{to:"/totp-setup",state:b,replace:!0}):g.pathname==="/bind"?(sessionStorage.setItem("overlord_bind_redirect",JSON.stringify(b.from)),h.jsx(ll,{to:"/totp-setup",state:b,replace:!0})):h.jsx(h.Fragment,{children:i})}return u&&(o==null?void 0:o.role)!==up.ADMIN?h.jsx(ll,{to:"/home",replace:!0}):h.jsx(h.Fragment,{children:i})}function O0({children:i}){const{theme:u,resolved:s,setResolved:o}=fp();return y.useEffect(()=>{if(u!=="system"){o(u);return}const f=window.matchMedia("(prefers-color-scheme: dark)");o(f.matches?"dark":"light");const m=g=>o(g.matches?"dark":"light");return f.addEventListener("change",m),()=>f.removeEventListener("change",m)},[u,o]),y.useEffect(()=>{document.documentElement.classList.toggle("dark",s==="dark")},[s]),h.jsx(h.Fragment,{children:i})}class C0 extends y.Component{constructor(u){super(u),this.state={hasError:!1,error:null}}static getDerivedStateFromError(u){return{hasError:!0,error:u}}render(){var u;return this.state.hasError?h.jsxs("div",{className:"flex h-full min-h-[300px] flex-col items-center justify-center gap-4 p-8 font-mono",children:[h.jsx("span",{className:"text-lg font-bold text-[var(--destructive)]",children:Yr("common.runtime_error")}),h.jsx("p",{className:"max-w-md text-center text-xs text-[var(--text-muted)]",children:((u=this.state.error)==null?void 0:u.message)||Yr("common.an_unexpected_error_occurred")}),h.jsxs("button",{onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},className:"flex items-center gap-1.5 rounded-[4px] border border-[var(--border)] px-4 py-2 text-xs text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:[h.jsx(ap,{className:"h-3.5 w-3.5"}),Yr("common.reload")]})]}):this.props.children}}function D0({isOpen:i}){const u=Fa(),{logout:s,setSessionExpired:o}=xa(),{t:f}=Vt();function m(){s(),o(!1),u("/login")}return i?h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"fixed inset-0 bg-[var(--modal-backdrop)]"}),h.jsx("div",{className:"relative z-10 w-full max-w-[480px] rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)]",children:h.jsxs("div",{className:"flex flex-col items-center px-8 py-10",children:[h.jsx("div",{className:"mb-5 flex h-14 w-14 items-center justify-center rounded-full bg-[var(--warning)]/10",children:h.jsx(db,{className:"h-7 w-7 text-[var(--warning)]"})}),h.jsx("h3",{className:"mb-2 text-base font-bold text-[var(--text-primary)]",children:f("auth.session_expired")}),h.jsx("p",{className:"mb-8 text-center text-xs text-[var(--text-secondary)]",children:f("auth.session_expired_message")}),h.jsx("button",{type:"button",className:"w-full rounded-[4px] bg-[var(--accent)] px-3 py-2.5 text-xs font-medium text-black hover:opacity-90 transition-opacity",onClick:m,children:f("auth.go_to_login")})]})})]}):null}const zh=5;let ba=[];const Bs=new Set;function zp(){Bs.forEach(i=>i())}function N0(){return`${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function Wa(i,u,s=4e3){const o=N0();return ba=[...ba,{id:o,variant:i,message:u,duration:s}],ba.length>zh&&(ba=ba.slice(ba.length-zh)),zp(),o}Wa.success=(i,u)=>Wa("success",i,u);Wa.error=(i,u)=>Wa("error",i,u);Wa.warning=(i,u)=>Wa("warning",i,u);Wa.info=(i,u)=>Wa("info",i,u);function M0(i){ba=ba.filter(u=>u.id!==i),zp()}function U0(){const[,i]=y.useState(0);return y.useEffect(()=>{const u=()=>i(s=>s+1);return Bs.add(u),()=>{Bs.delete(u)}},[]),ba}const q0={success:{icon:lb,borderColor:"var(--accent)"},error:{icon:ib,borderColor:"var(--destructive)"},warning:{icon:ip,borderColor:"var(--warning)"},info:{icon:sb,borderColor:"var(--info)"}};function L0({item:i}){const u=q0[i.variant],s=u.icon,{t:o}=Vt(),f=y.useCallback(()=>M0(i.id),[i.id]);return y.useEffect(()=>{if(!i.duration)return;const m=setTimeout(f,i.duration);return()=>clearTimeout(m)},[i.duration,f]),h.jsxs("div",{className:"flex items-center gap-3 rounded-[4px] bg-[var(--bg-card)] px-4 py-3 shadow-lg",style:{borderLeft:`3px solid ${u.borderColor}`},role:"alert",children:[h.jsx(s,{className:"h-4 w-4 shrink-0",style:{color:u.borderColor}}),h.jsx("p",{className:"flex-1 text-xs text-[var(--text-primary)]",children:i.message}),h.jsx("button",{onClick:f,className:"shrink-0 rounded-[4px] p-0.5 text-[var(--text-muted)] transition-colors hover:text-[var(--text-primary)]","aria-label":o("common.dismiss_notification"),children:h.jsx(rp,{className:"h-3.5 w-3.5"})})]})}function H0(){const i=U0();return i.length===0?null:h.jsx("div",{className:"pointer-events-none fixed right-4 top-4 z-[9999] flex w-80 max-w-[calc(100vw-2rem)] flex-col gap-2",children:i.map(u=>h.jsx("div",{className:"pointer-events-auto",children:h.jsx(L0,{item:u})},u.id))})}const B0=y.lazy(()=>ae(()=>import("./LandingPage-DSHGbkXw.js"),__vite__mapDeps([0,1,2,3,4,5]))),Y0=y.lazy(()=>ae(()=>import("./LoginPage-C4oz9yjV.js"),[])),G0=y.lazy(()=>ae(()=>import("./TotpSetupPage-BGE6pDdn.js"),[])),V0=y.lazy(()=>ae(()=>import("./NotFoundPage-BeayCSH7.js"),[])),X0=y.lazy(()=>ae(()=>import("./HomePage-CeOmNhkc.js"),__vite__mapDeps([6,7,8,9,10,11,12,13,14,1]))),Q0=y.lazy(()=>ae(()=>import("./TerminalHomePage-XJ5daAJC.js"),__vite__mapDeps([15,16,17,18,19,20,12,21,22,10,11,23,24,8,25,26,13,27,28,29]))),Z0=y.lazy(()=>ae(()=>import("./TaskListPage-Bvq5ow7r.js"),__vite__mapDeps([30,22,7,8,12,14,31,23,24,25,26,5,32,9,27,33,11]))),K0=y.lazy(()=>ae(()=>import("./TaskDetailPage-D4sGfico.js"),__vite__mapDeps([34,22,16,17,18,19,20,12,21,23,24,8,26,25,14,35,31,36,37,38]))),J0=y.lazy(()=>ae(()=>import("./PlanPage-BOzGJd2h.js"),__vite__mapDeps([39,32,9,12,23,24,27,37,33,11]))),$0=y.lazy(()=>ae(()=>import("./ReviewPage-DtdWSBgK.js"),__vite__mapDeps([40,32,9,12,26,25,36]))),W0=y.lazy(()=>ae(()=>import("./ReviewAggregatePage-dWQb52Df.js"),__vite__mapDeps([41,19,20,9,12,26,25,35,17,36,38,18,28,24]))),F0=y.lazy(()=>ae(()=>import("./WorkerListPage-e4P55nJc.js"),__vite__mapDeps([42,8,43,44,45,46,47,36,29,5,17,23,24,32,9,13,27,35]))),I0=y.lazy(()=>ae(()=>import("./WorkerDetailPage-Dd-IbO6r.js"),__vite__mapDeps([48,12,8,49,43,13,14,50,35]))),P0=y.lazy(()=>ae(()=>import("./WorkerSetupGuidePage-CRicnVVm.js"),__vite__mapDeps([44,45,46,47,36,29]))),e1=y.lazy(()=>ae(()=>import("./ProjectListPage-C2uStUVE.js"),__vite__mapDeps([51,23,24,26,32,9,12,13,27,35]))),t1=y.lazy(()=>ae(()=>import("./ProjectDetailPage-B-t7L84T.js"),__vite__mapDeps([52,53,23,24,14,12,8,49,13,54,50,35,27]))),a1=y.lazy(()=>ae(()=>import("./EditProjectPage-D0rfXGZR.js"),__vite__mapDeps([55,23,24,53,26,27]))),n1=y.lazy(()=>ae(()=>import("./PipelineEditorPage-FkckQpQX.js"),__vite__mapDeps([56,23,24]))),l1=y.lazy(()=>ae(()=>import("./ProfilePage-CT_kk3a8.js"),__vite__mapDeps([57,58,49,13]))),i1=y.lazy(()=>ae(()=>import("./BindPlatformPage-BV5wNIi2.js"),[])),r1=y.lazy(()=>ae(()=>import("./AccessTokensPage-wTxicSeE.js"),__vite__mapDeps([59,23,24,32,9,12,13,27,5,50]))),u1=y.lazy(()=>ae(()=>import("./CliReferencePage-yJgtPpFn.js"),__vite__mapDeps([60,61,5,62,27]))),o1=y.lazy(()=>ae(()=>import("./ApiReferencePage-7TUHB8sC.js"),__vite__mapDeps([63,62,5,27]))),s1=y.lazy(()=>ae(()=>import("./SkillPage-C6p0dXbu.js"),__vite__mapDeps([64,61,5,37]))),c1=y.lazy(()=>ae(()=>import("./DocsLayout-ChIliA9A.js"),__vite__mapDeps([65,35]))),f1=y.lazy(()=>ae(()=>import("./InstallationPage-CUbe1AD-.js"),__vite__mapDeps([66,61,5]))),d1=y.lazy(()=>ae(()=>import("./DeveloperSetupPage-DzGCH2XG.js"),__vite__mapDeps([67,61,5]))),m1=y.lazy(()=>ae(()=>import("./WorkerSetupPage-DXOlNqUZ.js"),__vite__mapDeps([68,61,5]))),h1=y.lazy(()=>ae(()=>import("./BotSetupPage-DdDPniAd.js"),__vite__mapDeps([69,61,5]))),p1=y.lazy(()=>ae(()=>import("./LocalDevelopmentPage-fialPCnX.js"),__vite__mapDeps([70,61,5]))),g1=y.lazy(()=>ae(()=>import("./WorkerOperationsPage-ioBw_i1j.js"),[])),y1=y.lazy(()=>ae(()=>import("./DeploymentPage-C0CXq8yl.js"),__vite__mapDeps([71,61,5]))),Oh=y.lazy(()=>ae(()=>import("./BotIntegrationPage-B2bQytks.js"),[])),_1=y.lazy(()=>ae(()=>import("./PipelineConfigPage-DwY__0Ag.js"),__vite__mapDeps([72,61,5]))),v1=y.lazy(()=>ae(()=>import("./DevWorkflowPage-I4Io3nYz.js"),__vite__mapDeps([73,61,5]))),b1=y.lazy(()=>ae(()=>import("./PermissionsPage-Bb2CYzMf.js"),[])),x1=y.lazy(()=>ae(()=>import("./EnvVariablesPage-EmfRwttc.js"),__vite__mapDeps([74,61,5]))),S1=y.lazy(()=>ae(()=>import("./ArchitecturePage-CycvJ1HW.js"),__vite__mapDeps([75,61,5]))),k1=y.lazy(()=>ae(()=>import("./ChangelogPage-D5YE3BFH.js"),[])),E1=y.lazy(()=>ae(()=>import("./AgentCliPage-DfqlFdFN.js"),__vite__mapDeps([76,61,5]))),w1=y.lazy(()=>ae(()=>import("./TaskGuidePage-COT0chCI.js"),__vite__mapDeps([77,61,5]))),T1=y.lazy(()=>ae(()=>import("./DocsIndexPage-PIEcc9gX.js"),__vite__mapDeps([78,46,2,3,47,21]))),j1=y.lazy(()=>ae(()=>import("./AdminPage-CBovEOm4.js"),__vite__mapDeps([79,4,2,80,47]))),R1=y.lazy(()=>ae(()=>import("./DeveloperManage-Cy0LRyHh.js"),__vite__mapDeps([81,23,24,58,32,9,13,8,27,4,54,18]))),A1=y.lazy(()=>ae(()=>import("./BotManage-BBBrqdT_.js"),__vite__mapDeps([82,23,24,61,5,50,27,32,9,13,8,2,54]))),z1=y.lazy(()=>ae(()=>import("./TokenManage-JLFD8xAN.js"),__vite__mapDeps([83,45,5,37,32,9,13,8,27]))),O1=y.lazy(()=>ae(()=>import("./AuditLogPage-CqqCDd8o.js"),__vite__mapDeps([84,23,24,32,9,80,33,11]))),C1=y.lazy(()=>ae(()=>import("./SettingsPage-qCfF6rzU.js"),[]));function D1(){return h.jsx("div",{className:"flex h-full items-center justify-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-[var(--border)] border-t-[var(--accent)]"})})}function N1(){const i=xa(u=>u.sessionExpired);return h.jsxs(O0,{children:[h.jsx(H0,{}),h.jsx(C0,{children:h.jsxs(Yv,{children:[h.jsx(D0,{isOpen:i}),h.jsx(y.Suspense,{fallback:h.jsx(D1,{}),children:h.jsxs(gv,{children:[h.jsx(P,{path:"/",element:h.jsx(B0,{})}),h.jsx(P,{path:"/login",element:h.jsx(Y0,{})}),h.jsx(P,{path:"/totp-setup",element:h.jsx(ii,{children:h.jsx(G0,{})})}),h.jsx(P,{path:"/bind",element:h.jsx(ii,{children:h.jsx(i1,{})})}),h.jsxs(P,{element:h.jsx(ii,{children:h.jsx(z0,{})}),children:[h.jsx(P,{path:"/home",element:h.jsx(Q0,{})}),h.jsx(P,{path:"/dashboard",element:h.jsx(X0,{})}),h.jsx(P,{path:"/tasks",element:h.jsx(Z0,{})}),h.jsx(P,{path:"/tasks/:id",element:h.jsx(K0,{})}),h.jsx(P,{path:"/plan",element:h.jsx(J0,{})}),h.jsx(P,{path:"/review",element:h.jsx($0,{})}),h.jsx(P,{path:"/review/:sourceTaskId",element:h.jsx(W0,{})}),h.jsx(P,{path:"/workers",element:h.jsx(F0,{})}),h.jsx(P,{path:"/workers/setup",element:h.jsx(ii,{requireAdmin:!0,children:h.jsx(P0,{})})}),h.jsx(P,{path:"/workers/:id",element:h.jsx(I0,{})}),h.jsx(P,{path:"/projects",element:h.jsx(e1,{})}),h.jsx(P,{path:"/projects/:key",element:h.jsx(t1,{})}),h.jsx(P,{path:"/projects/:key/edit",element:h.jsx(a1,{})}),h.jsx(P,{path:"/projects/:key/pipeline",element:h.jsx(n1,{})}),h.jsx(P,{path:"/profile",element:h.jsx(l1,{})}),h.jsx(P,{path:"/access-tokens",element:h.jsx(r1,{})}),h.jsxs(P,{path:"/docs",element:h.jsx(c1,{}),children:[h.jsx(P,{index:!0,element:h.jsx(ll,{to:"cli",replace:!0})}),h.jsx(P,{path:"cli",element:h.jsx(u1,{})}),h.jsx(P,{path:"api",element:h.jsx(o1,{})}),h.jsx(P,{path:"bot",element:h.jsx(Oh,{})}),h.jsx(P,{path:"all",element:h.jsx(T1,{})}),h.jsx(P,{path:"skill",element:h.jsx(s1,{})}),h.jsx(P,{path:"installation",element:h.jsx(f1,{})}),h.jsx(P,{path:"developer-setup",element:h.jsx(d1,{})}),h.jsx(P,{path:"worker-setup",element:h.jsx(m1,{})}),h.jsx(P,{path:"bot-setup",element:h.jsx(h1,{})}),h.jsx(P,{path:"local-development",element:h.jsx(p1,{})}),h.jsx(P,{path:"worker-operations",element:h.jsx(g1,{})}),h.jsx(P,{path:"deployment",element:h.jsx(y1,{})}),h.jsx(P,{path:"bot-integration",element:h.jsx(Oh,{})}),h.jsx(P,{path:"pipeline-config",element:h.jsx(_1,{})}),h.jsx(P,{path:"dev-workflow",element:h.jsx(v1,{})}),h.jsx(P,{path:"permissions",element:h.jsx(b1,{})}),h.jsx(P,{path:"env-variables",element:h.jsx(x1,{})}),h.jsx(P,{path:"architecture",element:h.jsx(S1,{})}),h.jsx(P,{path:"task-guide",element:h.jsx(w1,{})}),h.jsx(P,{path:"agent-cli",element:h.jsx(E1,{})}),h.jsx(P,{path:"changelog",element:h.jsx(k1,{})})]}),h.jsxs(P,{path:"/admin",element:h.jsx(ii,{requireAdmin:!0,children:h.jsx(j1,{})}),children:[h.jsx(P,{index:!0,element:h.jsx(ll,{to:"developers",replace:!0})}),h.jsx(P,{path:"developers",element:h.jsx(R1,{})}),h.jsx(P,{path:"bots",element:h.jsx(A1,{})}),h.jsx(P,{path:"tokens",element:h.jsx(z1,{})}),h.jsx(P,{path:"audit-logs",element:h.jsx(O1,{})}),h.jsx(P,{path:"settings",element:h.jsx(C1,{})})]})]}),h.jsx(P,{path:"*",element:h.jsx(V0,{})})]})})]})})]})}function Op(i=window){var u,s;return((u=i.matchMedia)==null?void 0:u.call(i,"(display-mode: standalone)").matches)===!0||((s=i.navigator)==null?void 0:s.standalone)===!0}async function M1(i=window,u="portrait"){var o,f;if(!Op(i))return!1;const s=(f=(o=i.screen)==null?void 0:o.orientation)==null?void 0:f.lock;if(typeof s!="function")return!1;try{return await s.call(i.screen.orientation,u),!0}catch{return!1}}function U1(i){var u,s;return((u=i.matchMedia)==null?void 0:u.call(i,"(display-mode: standalone)").matches)===!0||((s=i.navigator)==null?void 0:s.standalone)===!0}function q1(i){var s,o;const u=((s=i.navigator)==null?void 0:s.userAgent)??"";return/iPhone|iPad|iPod/i.test(u)||/Macintosh/i.test(u)&&(((o=i.navigator)==null?void 0:o.maxTouchPoints)??0)>1}function L1(i){const u=i.activeElement;if(!(u instanceof HTMLElement))return!1;const s=u.tagName;return u.isContentEditable||s==="INPUT"||s==="TEXTAREA"||s==="SELECT"}function H1(i){const u=i.screen;if(!u)return null;const s=Math.round(u.width),o=Math.round(u.height);return i.innerHeight>=i.innerWidth?Math.max(s,o):Math.min(s,o)}function B1(i=window,u=document){const s=u.documentElement,o=i.visualViewport??null;let f=-1;const m=()=>{const g=Math.round((o==null?void 0:o.height)??0),b=Math.round(i.innerHeight);let _=g>0?g:b;if(U1(i)&&q1(i)&&!L1(u)){const p=H1(i);p!==null&&(_=Math.max(_,b,p))}_!==f&&(f=_,s.style.setProperty("--app-height",`${_}px`))};return m(),i.addEventListener("resize",m),i.addEventListener("orientationchange",m),o==null||o.addEventListener("resize",m),()=>{i.removeEventListener("resize",m),i.removeEventListener("orientationchange",m),o==null||o.removeEventListener("resize",m)}}xa.getState().initialize();B1(window,document);const Cp=window,Y1=Op(Cp);M1(Cp);if(Y1){document.documentElement.classList.add("pwa-standalone");const i=window.matchMedia("(prefers-color-scheme: dark)").matches,u=localStorage.getItem("overlord-theme"),s=u==="dark"||u!=="light"&&i;document.body.style.backgroundColor=s?"#171717":"#FFFFFF",new MutationObserver(()=>{const o=document.documentElement.classList.contains("dark");document.body.style.backgroundColor=o?"#171717":"#FFFFFF"}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}h_.createRoot(document.getElementById("root")).render(h.jsx(y.StrictMode,{children:h.jsx(N1,{})}));export{f_ as $,V1 as A,X1 as B,tb as C,up as D,Ph as E,lb as F,W1 as G,Ns as H,db as I,ib as J,rb as K,Jh as L,hb as M,ll as N,Ih as O,h0 as P,J1 as Q,Ar as R,lp as S,dp as T,xb as U,ip as V,Z1 as W,rp as X,sb as Y,K1 as Z,ap as _,Vt as a,Wh as a0,cb as a1,mb as a2,$1 as a3,_b as a4,Js as a5,hv as a6,F1 as a7,I1 as a8,$s as b,_e as c,yb as d,fb as e,Fa as f,yt as g,Qr as h,wb as i,h as j,sp as k,wp as l,Tp as m,r0 as n,Ir as o,Q1 as p,ax as q,y as r,ex as s,Wa as t,xa as u,f0 as v,tx as w,np as x,tp as y,P1 as z};