agent-tower 0.5.3 → 0.5.4-beta.1

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 (312) hide show
  1. package/README.md +6 -1
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/app.js +15 -1
  4. package/dist/app.js.map +1 -1
  5. package/dist/app.test.js +12 -0
  6. package/dist/app.test.js.map +1 -1
  7. package/dist/cli.js +18 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/core/event-bus.d.ts +3 -0
  10. package/dist/core/event-bus.d.ts.map +1 -1
  11. package/dist/core/event-bus.js.map +1 -1
  12. package/dist/executors/__tests__/base.executor.test.js +29 -1
  13. package/dist/executors/__tests__/base.executor.test.js.map +1 -1
  14. package/dist/executors/__tests__/codex.executor.test.js +13 -0
  15. package/dist/executors/__tests__/codex.executor.test.js.map +1 -1
  16. package/dist/executors/base.executor.d.ts.map +1 -1
  17. package/dist/executors/base.executor.js +4 -0
  18. package/dist/executors/base.executor.js.map +1 -1
  19. package/dist/executors/execution-env.d.ts +1 -1
  20. package/dist/executors/execution-env.d.ts.map +1 -1
  21. package/dist/executors/execution-env.js +7 -0
  22. package/dist/executors/execution-env.js.map +1 -1
  23. package/dist/index.js +2 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/mcp/http-client.d.ts +33 -1
  26. package/dist/mcp/http-client.d.ts.map +1 -1
  27. package/dist/mcp/http-client.js +21 -2
  28. package/dist/mcp/http-client.js.map +1 -1
  29. package/dist/mcp/index.js +4 -1
  30. package/dist/mcp/index.js.map +1 -1
  31. package/dist/mcp/server.d.ts +3 -1
  32. package/dist/mcp/server.d.ts.map +1 -1
  33. package/dist/mcp/server.js +64 -9
  34. package/dist/mcp/server.js.map +1 -1
  35. package/dist/mcp/tools/__tests__/workspaces.test.d.ts +2 -0
  36. package/dist/mcp/tools/__tests__/workspaces.test.d.ts.map +1 -0
  37. package/dist/mcp/tools/__tests__/workspaces.test.js +72 -0
  38. package/dist/mcp/tools/__tests__/workspaces.test.js.map +1 -0
  39. package/dist/mcp/tools/workspaces.d.ts +9 -1
  40. package/dist/mcp/tools/workspaces.d.ts.map +1 -1
  41. package/dist/mcp/tools/workspaces.js +96 -2
  42. package/dist/mcp/tools/workspaces.js.map +1 -1
  43. package/dist/mcp/types.d.ts +46 -0
  44. package/dist/mcp/types.d.ts.map +1 -1
  45. package/dist/mcp/types.js +23 -0
  46. package/dist/mcp/types.js.map +1 -1
  47. package/dist/middleware/__tests__/access-auth.test.d.ts +2 -0
  48. package/dist/middleware/__tests__/access-auth.test.d.ts.map +1 -0
  49. package/dist/middleware/__tests__/access-auth.test.js +249 -0
  50. package/dist/middleware/__tests__/access-auth.test.js.map +1 -0
  51. package/dist/middleware/access-auth.d.ts +3 -0
  52. package/dist/middleware/access-auth.d.ts.map +1 -0
  53. package/dist/middleware/access-auth.js +110 -0
  54. package/dist/middleware/access-auth.js.map +1 -0
  55. package/dist/routes/__tests__/files.test.d.ts +2 -0
  56. package/dist/routes/__tests__/files.test.d.ts.map +1 -0
  57. package/dist/routes/__tests__/files.test.js +101 -0
  58. package/dist/routes/__tests__/files.test.js.map +1 -0
  59. package/dist/routes/__tests__/previews.integration.test.d.ts +2 -0
  60. package/dist/routes/__tests__/previews.integration.test.d.ts.map +1 -0
  61. package/dist/routes/__tests__/previews.integration.test.js +269 -0
  62. package/dist/routes/__tests__/previews.integration.test.js.map +1 -0
  63. package/dist/routes/__tests__/previews.test.js +103 -1
  64. package/dist/routes/__tests__/previews.test.js.map +1 -1
  65. package/dist/routes/__tests__/team-runs-merge.test.d.ts +2 -0
  66. package/dist/routes/__tests__/team-runs-merge.test.d.ts.map +1 -0
  67. package/dist/routes/__tests__/team-runs-merge.test.js +156 -0
  68. package/dist/routes/__tests__/team-runs-merge.test.js.map +1 -0
  69. package/dist/routes/__tests__/team-runs-private-messages.test.d.ts +2 -0
  70. package/dist/routes/__tests__/team-runs-private-messages.test.d.ts.map +1 -0
  71. package/dist/routes/__tests__/team-runs-private-messages.test.js +82 -0
  72. package/dist/routes/__tests__/team-runs-private-messages.test.js.map +1 -0
  73. package/dist/routes/access-auth.d.ts +3 -0
  74. package/dist/routes/access-auth.d.ts.map +1 -0
  75. package/dist/routes/access-auth.js +89 -0
  76. package/dist/routes/access-auth.js.map +1 -0
  77. package/dist/routes/files.d.ts.map +1 -1
  78. package/dist/routes/files.js +46 -0
  79. package/dist/routes/files.js.map +1 -1
  80. package/dist/routes/index.d.ts.map +1 -1
  81. package/dist/routes/index.js +3 -0
  82. package/dist/routes/index.js.map +1 -1
  83. package/dist/routes/previews.d.ts +7 -2
  84. package/dist/routes/previews.d.ts.map +1 -1
  85. package/dist/routes/previews.js +106 -32
  86. package/dist/routes/previews.js.map +1 -1
  87. package/dist/routes/projects.d.ts.map +1 -1
  88. package/dist/routes/projects.js +9 -0
  89. package/dist/routes/projects.js.map +1 -1
  90. package/dist/routes/team-runs.d.ts +2 -0
  91. package/dist/routes/team-runs.d.ts.map +1 -1
  92. package/dist/routes/team-runs.js +48 -1
  93. package/dist/routes/team-runs.js.map +1 -1
  94. package/dist/routes/workspaces.d.ts.map +1 -1
  95. package/dist/routes/workspaces.js +43 -4
  96. package/dist/routes/workspaces.js.map +1 -1
  97. package/dist/services/__tests__/access-auth.service.test.d.ts +2 -0
  98. package/dist/services/__tests__/access-auth.service.test.d.ts.map +1 -0
  99. package/dist/services/__tests__/access-auth.service.test.js +316 -0
  100. package/dist/services/__tests__/access-auth.service.test.js.map +1 -0
  101. package/dist/services/__tests__/member-heartbeat.test.d.ts +2 -0
  102. package/dist/services/__tests__/member-heartbeat.test.d.ts.map +1 -0
  103. package/dist/services/__tests__/member-heartbeat.test.js +344 -0
  104. package/dist/services/__tests__/member-heartbeat.test.js.map +1 -0
  105. package/dist/services/__tests__/project.service.test.js +29 -0
  106. package/dist/services/__tests__/project.service.test.js.map +1 -1
  107. package/dist/services/__tests__/session-manager.team-run.test.js +144 -0
  108. package/dist/services/__tests__/session-manager.team-run.test.js.map +1 -1
  109. package/dist/services/__tests__/task.service.test.js +34 -0
  110. package/dist/services/__tests__/task.service.test.js.map +1 -1
  111. package/dist/services/__tests__/team-reconciler.service.test.js +307 -11
  112. package/dist/services/__tests__/team-reconciler.service.test.js.map +1 -1
  113. package/dist/services/__tests__/team-run.service.test.js +368 -2
  114. package/dist/services/__tests__/team-run.service.test.js.map +1 -1
  115. package/dist/services/__tests__/team-scheduler.service.test.js +409 -5
  116. package/dist/services/__tests__/team-scheduler.service.test.js.map +1 -1
  117. package/dist/services/__tests__/workspace.service.test.js +991 -3
  118. package/dist/services/__tests__/workspace.service.test.js.map +1 -1
  119. package/dist/services/access-auth.service.d.ts +82 -0
  120. package/dist/services/access-auth.service.d.ts.map +1 -0
  121. package/dist/services/access-auth.service.js +385 -0
  122. package/dist/services/access-auth.service.js.map +1 -0
  123. package/dist/services/mcp-config.service.d.ts.map +1 -1
  124. package/dist/services/mcp-config.service.js +8 -2
  125. package/dist/services/mcp-config.service.js.map +1 -1
  126. package/dist/services/mcp-config.service.test.js +18 -3
  127. package/dist/services/mcp-config.service.test.js.map +1 -1
  128. package/dist/services/member-heartbeat-scheduler.d.ts +33 -0
  129. package/dist/services/member-heartbeat-scheduler.d.ts.map +1 -0
  130. package/dist/services/member-heartbeat-scheduler.js +83 -0
  131. package/dist/services/member-heartbeat-scheduler.js.map +1 -0
  132. package/dist/services/project-guards.d.ts +5 -0
  133. package/dist/services/project-guards.d.ts.map +1 -1
  134. package/dist/services/project-guards.js +47 -0
  135. package/dist/services/project-guards.js.map +1 -1
  136. package/dist/services/project.service.d.ts +6 -4
  137. package/dist/services/project.service.d.ts.map +1 -1
  138. package/dist/services/project.service.js +16 -7
  139. package/dist/services/project.service.js.map +1 -1
  140. package/dist/services/session-manager.d.ts +11 -0
  141. package/dist/services/session-manager.d.ts.map +1 -1
  142. package/dist/services/session-manager.js +76 -0
  143. package/dist/services/session-manager.js.map +1 -1
  144. package/dist/services/task.service.d.ts +11 -9
  145. package/dist/services/task.service.d.ts.map +1 -1
  146. package/dist/services/task.service.js +17 -12
  147. package/dist/services/task.service.js.map +1 -1
  148. package/dist/services/team-reconciler.service.d.ts +39 -0
  149. package/dist/services/team-reconciler.service.d.ts.map +1 -1
  150. package/dist/services/team-reconciler.service.js +234 -3
  151. package/dist/services/team-reconciler.service.js.map +1 -1
  152. package/dist/services/team-run.service.d.ts +7 -1
  153. package/dist/services/team-run.service.d.ts.map +1 -1
  154. package/dist/services/team-run.service.js +98 -9
  155. package/dist/services/team-run.service.js.map +1 -1
  156. package/dist/services/team-scheduler.service.d.ts +21 -1
  157. package/dist/services/team-scheduler.service.d.ts.map +1 -1
  158. package/dist/services/team-scheduler.service.js +252 -15
  159. package/dist/services/team-scheduler.service.js.map +1 -1
  160. package/dist/services/terminal-manager.d.ts.map +1 -1
  161. package/dist/services/terminal-manager.js +1 -0
  162. package/dist/services/terminal-manager.js.map +1 -1
  163. package/dist/services/workspace.service.d.ts +56 -1
  164. package/dist/services/workspace.service.d.ts.map +1 -1
  165. package/dist/services/workspace.service.js +841 -8
  166. package/dist/services/workspace.service.js.map +1 -1
  167. package/dist/socket/__tests__/socket-gateway.test.d.ts +2 -0
  168. package/dist/socket/__tests__/socket-gateway.test.d.ts.map +1 -0
  169. package/dist/socket/__tests__/socket-gateway.test.js +119 -0
  170. package/dist/socket/__tests__/socket-gateway.test.js.map +1 -0
  171. package/dist/socket/middleware/__tests__/auth.test.js +102 -2
  172. package/dist/socket/middleware/__tests__/auth.test.js.map +1 -1
  173. package/dist/socket/middleware/auth.d.ts +1 -0
  174. package/dist/socket/middleware/auth.d.ts.map +1 -1
  175. package/dist/socket/middleware/auth.js +22 -2
  176. package/dist/socket/middleware/auth.js.map +1 -1
  177. package/dist/socket/socket-gateway.d.ts +6 -2
  178. package/dist/socket/socket-gateway.d.ts.map +1 -1
  179. package/dist/socket/socket-gateway.js +78 -15
  180. package/dist/socket/socket-gateway.js.map +1 -1
  181. package/dist/utils/internal-api-token.d.ts +9 -0
  182. package/dist/utils/internal-api-token.d.ts.map +1 -0
  183. package/dist/utils/internal-api-token.js +74 -0
  184. package/dist/utils/internal-api-token.js.map +1 -0
  185. package/dist/utils/preview-path.d.ts +11 -0
  186. package/dist/utils/preview-path.d.ts.map +1 -0
  187. package/dist/utils/preview-path.js +46 -0
  188. package/dist/utils/preview-path.js.map +1 -0
  189. package/dist/utils/process-launch.test.js +14 -0
  190. package/dist/utils/process-launch.test.js.map +1 -1
  191. package/dist/web/assets/{AgentDemoPage-DMLw4xpg.js → AgentDemoPage-UmBBXiZq.js} +1 -1
  192. package/dist/web/assets/{AgentEnvironmentSettingsPage-NgRdouLu.js → AgentEnvironmentSettingsPage-DeMVC_O2.js} +1 -1
  193. package/dist/web/assets/{AgentLogo-ThhvSi7G.js → AgentLogo-sxp-yGLB.js} +1 -1
  194. package/dist/web/assets/{ConversationPage-B1ZcyF_h.js → ConversationPage-ykUuKcMG.js} +2 -2
  195. package/dist/web/assets/CreateTaskInput-WmNhRnVp.js +1 -0
  196. package/dist/web/assets/{DemoPage-CN2OBKzu.js → DemoPage-Cx-F46PV.js} +3 -3
  197. package/dist/web/assets/GeneralSettingsPage-DM4iy6dp.js +1 -0
  198. package/dist/web/assets/{Icons-DIZBOtuC.js → Icons-CO02_BMI.js} +1 -1
  199. package/dist/web/assets/{LoadingPreviewPage-CRBcypeY.js → LoadingPreviewPage-C58uR8H7.js} +1 -1
  200. package/dist/web/assets/McpSettingsPage-CTe-SNfY.js +1 -0
  201. package/dist/web/assets/{MemberAvatar-Y_pJlw-N.js → MemberAvatar-CZegYpYl.js} +1 -1
  202. package/dist/web/assets/NotificationSettingsPage-D17SAmMK.js +1 -0
  203. package/dist/web/assets/ProfileSettingsPage-B2rHV2eU.js +3 -0
  204. package/dist/web/assets/{ProjectKanbanPage-CBfocvKp.js → ProjectKanbanPage-SpCqpcZ0.js} +31 -32
  205. package/dist/web/assets/ProjectSettingsPage-2dD_ahm-.js +2 -0
  206. package/dist/web/assets/{ProviderSettingsPage-D-1Fyh5B.js → ProviderSettingsPage-D9vu3rO0.js} +6 -6
  207. package/dist/web/assets/{SettingsMasterDetail-CZfVaFo2.js → SettingsMasterDetail-CwRB1WBt.js} +1 -1
  208. package/dist/web/assets/{TeamSettingsPage-DysTmOGE.js → TeamSettingsPage-QXwc1AJE.js} +1 -1
  209. package/dist/web/assets/{arc-CgLBAHTH.js → arc-BRCC5BeU.js} +1 -1
  210. package/dist/web/assets/{architectureDiagram-3BPJPVTR-CP9eQfdk.js → architectureDiagram-3BPJPVTR-7lTGsSu5.js} +1 -1
  211. package/dist/web/assets/{arrow-left-y1LwO7sB.js → arrow-left-CNgpy5r6.js} +1 -1
  212. package/dist/web/assets/{blockDiagram-GPEHLZMM-BURZnUwn.js → blockDiagram-GPEHLZMM-CnscyQkX.js} +1 -1
  213. package/dist/web/assets/{c4Diagram-AAUBKEIU-Dzgp3z3S.js → c4Diagram-AAUBKEIU-DDhuPTLZ.js} +1 -1
  214. package/dist/web/assets/channel-S-3oxkZZ.js +1 -0
  215. package/dist/web/assets/check-DRdZLPss.js +1 -0
  216. package/dist/web/assets/{chevron-down--B7iZqBL.js → chevron-down-CqZBsPeR.js} +1 -1
  217. package/dist/web/assets/{chevron-right-7PShDIwg.js → chevron-right-YWciNkox.js} +1 -1
  218. package/dist/web/assets/{chevron-up-3n_vHdrD.js → chevron-up-BJ4i5iAn.js} +1 -1
  219. package/dist/web/assets/{chunk-2J33WTMH-CIpasa01.js → chunk-2J33WTMH-B96XJhZG.js} +1 -1
  220. package/dist/web/assets/{chunk-4BX2VUAB-DeSe2m1y.js → chunk-4BX2VUAB-IUZUHtbw.js} +1 -1
  221. package/dist/web/assets/{chunk-55IACEB6-BkJ6ogdn.js → chunk-55IACEB6-DcO4xSOO.js} +1 -1
  222. package/dist/web/assets/{chunk-727SXJPM-Bkbv-knP.js → chunk-727SXJPM-DuQwKkk-.js} +1 -1
  223. package/dist/web/assets/{chunk-AQP2D5EJ-BG9wGFIo.js → chunk-AQP2D5EJ-QotCqjAo.js} +1 -1
  224. package/dist/web/assets/{chunk-FMBD7UC4-Cvl_2za9.js → chunk-FMBD7UC4-C7hUbfZh.js} +1 -1
  225. package/dist/web/assets/{chunk-ND2GUHAM-B_zdzkWX.js → chunk-ND2GUHAM-B_C5eChQ.js} +1 -1
  226. package/dist/web/assets/{chunk-QZHKN3VN-Ch6dvKNw.js → chunk-QZHKN3VN-DRgZY4LJ.js} +1 -1
  227. package/dist/web/assets/{circle-alert-W13JkYj3.js → circle-alert-Ch4pQ3zT.js} +1 -1
  228. package/dist/web/assets/classDiagram-4FO5ZUOK-C00aPgpD.js +1 -0
  229. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-C00aPgpD.js +1 -0
  230. package/dist/web/assets/{code-block-OCS4YCEC-CYhJ9OPu.js → code-block-OCS4YCEC-h5zD4EvJ.js} +1 -1
  231. package/dist/web/assets/confirm-dialog-DG0L1v-9.js +1 -0
  232. package/dist/web/assets/{copy-bJ2sut_L.js → copy-JHS-5tjr.js} +1 -1
  233. package/dist/web/assets/{cose-bilkent-S5V4N54A-DWlnxyfH.js → cose-bilkent-S5V4N54A-6Gv8U8Cj.js} +1 -1
  234. package/dist/web/assets/{dagre-BM42HDAG-Bt3QI02a.js → dagre-BM42HDAG-Cf4rsmyS.js} +1 -1
  235. package/dist/web/assets/{diagram-2AECGRRQ-EaJBYSnS.js → diagram-2AECGRRQ-DW3DQ8NA.js} +1 -1
  236. package/dist/web/assets/{diagram-5GNKFQAL-BGyRb-_h.js → diagram-5GNKFQAL-C5cQ_MTX.js} +1 -1
  237. package/dist/web/assets/{diagram-KO2AKTUF-CZhDTMfm.js → diagram-KO2AKTUF-Dcs4NTfn.js} +1 -1
  238. package/dist/web/assets/{diagram-LMA3HP47-Be8BAxmL.js → diagram-LMA3HP47-lLI-OolH.js} +1 -1
  239. package/dist/web/assets/{diagram-OG6HWLK6-DEdQ7Cml.js → diagram-OG6HWLK6-BTdMG1u6.js} +1 -1
  240. package/dist/web/assets/{erDiagram-TEJ5UH35-CG9SNlbz.js → erDiagram-TEJ5UH35-BrKfSMWb.js} +1 -1
  241. package/dist/web/assets/{flowDiagram-I6XJVG4X-BUpx5PVX.js → flowDiagram-I6XJVG4X-BFT9EHqo.js} +1 -1
  242. package/dist/web/assets/folder-picker--V79noua.js +1 -0
  243. package/dist/web/assets/{ganttDiagram-6RSMTGT7-D7vRxMpE.js → ganttDiagram-6RSMTGT7-D_44EJ_y.js} +1 -1
  244. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-3lhH-RcD.js → gitGraphDiagram-PVQCEYII-COrCr27e.js} +1 -1
  245. package/dist/web/assets/index-BC5stA77.js +122 -0
  246. package/dist/web/assets/{index-CGMjRoF7.js → index-Cjaho2ST.js} +4 -4
  247. package/dist/web/assets/index-DRJLGAPR.css +1 -0
  248. package/dist/web/assets/{infoDiagram-5YYISTIA-C5SNbJpO.js → infoDiagram-5YYISTIA-Derwhgw-.js} +1 -1
  249. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-Ca7tX9_0.js → ishikawaDiagram-YF4QCWOH-Dv_SKfKy.js} +1 -1
  250. package/dist/web/assets/{journeyDiagram-JHISSGLW-B2oo6nxY.js → journeyDiagram-JHISSGLW-BvL0Myto.js} +1 -1
  251. package/dist/web/assets/{kanban-definition-UN3LZRKU-D1CzIzX9.js → kanban-definition-UN3LZRKU-D9iCCF7g.js} +1 -1
  252. package/dist/web/assets/{layers-BbLzQqyy.js → layers-D-OLv40U.js} +1 -1
  253. package/dist/web/assets/{linear-BWowtcGw.js → linear-DLebIyPZ.js} +1 -1
  254. package/dist/web/assets/{mermaid-NOHMQCX5-B42ziicV.js → mermaid-NOHMQCX5-CyA4Kmm7.js} +40 -40
  255. package/dist/web/assets/{message-square-Bd_m34OX.js → message-square-ByVmnBN0.js} +1 -1
  256. package/dist/web/assets/{mindmap-definition-RKZ34NQL-CYbO6QCk.js → mindmap-definition-RKZ34NQL-CJXkujXD.js} +1 -1
  257. package/dist/web/assets/{modal-CxOKWOjZ.js → modal-KKPLseLk.js} +1 -1
  258. package/dist/web/assets/{pencil-h5kxwbcu.js → pencil-B7ylaB7k.js} +1 -1
  259. package/dist/web/assets/{pieDiagram-4H26LBE5-DXQghKRy.js → pieDiagram-4H26LBE5-C8DfXjYu.js} +1 -1
  260. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-C6lAMMQB.js → quadrantDiagram-W4KKPZXB-BxaUhA-J.js} +1 -1
  261. package/dist/web/assets/{requirementDiagram-4Y6WPE33-Di9Le7Wy.js → requirementDiagram-4Y6WPE33-CkP381y3.js} +1 -1
  262. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-BGpnptvR.js → sankeyDiagram-5OEKKPKP-Ciot-1f1.js} +1 -1
  263. package/dist/web/assets/{select-DFuN9DX8.js → select-CLvHC1t4.js} +1 -1
  264. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-DjfkfaQL.js → sequenceDiagram-3UESZ5HK-ZrO6aulq.js} +1 -1
  265. package/dist/web/assets/{stateDiagram-AJRCARHV-DsELotm9.js → stateDiagram-AJRCARHV-BDC3J_xT.js} +1 -1
  266. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-C_4zupNH.js +1 -0
  267. package/dist/web/assets/{switch-gL7lBFj6.js → switch-DqXAu8pW.js} +1 -1
  268. package/dist/web/assets/{textarea-Lr4GZaYW.js → textarea-ByV2n54w.js} +1 -1
  269. package/dist/web/assets/{timeline-definition-PNZ67QCA-Cq1BWC0T.js → timeline-definition-PNZ67QCA-CG898aCW.js} +1 -1
  270. package/dist/web/assets/{trash-2-B7GFt5Wl.js → trash-2-D-MBxpK4.js} +1 -1
  271. package/dist/web/assets/{upload-L8hpDFoO.js → upload-CkkorsYk.js} +1 -1
  272. package/dist/web/assets/{use-profiles-zIsoigD8.js → use-profiles-B62R9Kbn.js} +1 -1
  273. package/dist/web/assets/use-projects-JMhtZFd6.js +1 -0
  274. package/dist/web/assets/{use-providers-erJ2iHLz.js → use-providers-Cg1RDnUJ.js} +1 -1
  275. package/dist/web/assets/{useNormalizedLogs-CXAn7xj_.js → useNormalizedLogs-BMa5-cCl.js} +1 -1
  276. package/dist/web/assets/{vennDiagram-CIIHVFJN-DdOfNtRo.js → vennDiagram-CIIHVFJN-CNRNbGoo.js} +1 -1
  277. package/dist/web/assets/{wardley-L42UT6IY-BeKcEIgK.js → wardley-L42UT6IY-Fm0b_w6O.js} +1 -1
  278. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-DPKOxABd.js → wardleyDiagram-YWT4CUSO-C_xf1EWg.js} +1 -1
  279. package/dist/web/assets/{xychartDiagram-2RQKCTM6-olIy_aaY.js → xychartDiagram-2RQKCTM6-D9yke6dF.js} +1 -1
  280. package/dist/web/index.html +2 -2
  281. package/node_modules/@agent-tower/shared/dist/types.d.ts +198 -1
  282. package/node_modules/@agent-tower/shared/dist/types.d.ts.map +1 -1
  283. package/node_modules/@agent-tower/shared/dist/types.js.map +1 -1
  284. package/node_modules/@prisma/client/.prisma/client/edge.js +52 -5
  285. package/node_modules/@prisma/client/.prisma/client/index-browser.js +47 -0
  286. package/node_modules/@prisma/client/.prisma/client/index.d.ts +6144 -2196
  287. package/node_modules/@prisma/client/.prisma/client/index.js +52 -5
  288. package/node_modules/@prisma/client/.prisma/client/package.json +1 -1
  289. package/node_modules/@prisma/client/.prisma/client/schema.prisma +94 -30
  290. package/node_modules/@prisma/client/.prisma/client/wasm.js +47 -0
  291. package/package.json +1 -1
  292. package/prisma/migrations/20260618010000_add_workspace_verdicts/migration.sql +27 -0
  293. package/prisma/migrations/20260701000000_add_access_auth_settings/migration.sql +9 -0
  294. package/prisma/migrations/20260702000000_add_teamrun_target_commit_fields/migration.sql +38 -0
  295. package/prisma/schema.prisma +64 -0
  296. package/dist/web/assets/CreateTaskInput-Cb3aRHr3.js +0 -1
  297. package/dist/web/assets/GeneralSettingsPage-CE7P3t_v.js +0 -1
  298. package/dist/web/assets/McpSettingsPage-gp1XDMUd.js +0 -1
  299. package/dist/web/assets/NotificationSettingsPage-BhZeHEef.js +0 -1
  300. package/dist/web/assets/ProfileSettingsPage-D_y3ePFs.js +0 -3
  301. package/dist/web/assets/ProjectSettingsPage-V38j8T61.js +0 -2
  302. package/dist/web/assets/channel-CWEYGfCJ.js +0 -1
  303. package/dist/web/assets/check-D2WWIhwV.js +0 -1
  304. package/dist/web/assets/classDiagram-4FO5ZUOK-CcU8zfK8.js +0 -1
  305. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CcU8zfK8.js +0 -1
  306. package/dist/web/assets/confirm-dialog-BAqfLDT8.js +0 -1
  307. package/dist/web/assets/folder-picker-DFB9_pv4.js +0 -1
  308. package/dist/web/assets/folder-u7fKAtz_.js +0 -1
  309. package/dist/web/assets/index-7nw4fV42.js +0 -122
  310. package/dist/web/assets/index-YCjjSSLC.css +0 -1
  311. package/dist/web/assets/input-CKwRYuUJ.js +0 -1
  312. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-CudtEyHd.js +0 -1
@@ -0,0 +1,122 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GeneralSettingsPage-DM4iy6dp.js","assets/select-CLvHC1t4.js","assets/chevron-down-CqZBsPeR.js","assets/check-DRdZLPss.js","assets/textarea-ByV2n54w.js","assets/switch-DqXAu8pW.js","assets/use-providers-Cg1RDnUJ.js","assets/ProviderSettingsPage-D9vu3rO0.js","assets/confirm-dialog-DG0L1v-9.js","assets/modal-KKPLseLk.js","assets/mermaid-NOHMQCX5-CyA4Kmm7.js","assets/chevron-right-YWciNkox.js","assets/mermaid-NOHMQCX5-lI9o3AWT.css","assets/AgentLogo-sxp-yGLB.js","assets/SettingsMasterDetail-CwRB1WBt.js","assets/arrow-left-CNgpy5r6.js","assets/upload-CkkorsYk.js","assets/trash-2-D-MBxpK4.js","assets/pencil-B7ylaB7k.js","assets/TeamSettingsPage-QXwc1AJE.js","assets/MemberAvatar-CZegYpYl.js","assets/chevron-up-BJ4i5iAn.js","assets/ProjectSettingsPage-2dD_ahm-.js","assets/use-projects-JMhtZFd6.js","assets/folder-picker--V79noua.js","assets/circle-alert-Ch4pQ3zT.js","assets/NotificationSettingsPage-D17SAmMK.js","assets/message-square-ByVmnBN0.js","assets/McpSettingsPage-CTe-SNfY.js","assets/copy-JHS-5tjr.js","assets/ProfileSettingsPage-B2rHV2eU.js","assets/use-profiles-B62R9Kbn.js","assets/layers-D-OLv40U.js","assets/ProjectKanbanPage-SpCqpcZ0.js","assets/Icons-CO02_BMI.js","assets/CreateTaskInput-WmNhRnVp.js","assets/useNormalizedLogs-BMa5-cCl.js","assets/ProjectKanbanPage-DcpNTP1B.css","assets/ConversationPage-ykUuKcMG.js","assets/AgentDemoPage-UmBBXiZq.js"])))=>i.map(i=>d[i]);
2
+ function m1(n,i){for(var r=0;r<i.length;r++){const l=i[r];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(l,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function py(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Wc={exports:{}},Us={};var Zp;function p1(){if(Zp)return Us;Zp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:n,type:l,key:d,ref:c!==void 0?c:null,props:f}}return Us.Fragment=i,Us.jsx=r,Us.jsxs=r,Us}var Ip;function g1(){return Ip||(Ip=1,Wc.exports=p1()),Wc.exports}var v=g1(),ef={exports:{}},Ne={};var Jp;function y1(){if(Jp)return Ne;Jp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),T=Symbol.iterator;function N(C){return C===null||typeof C!="object"?null:(C=T&&C[T]||C["@@iterator"],typeof C=="function"?C:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,G={};function Y(C,q,H){this.props=C,this.context=q,this.refs=G,this.updater=H||L}Y.prototype.isReactComponent={},Y.prototype.setState=function(C,q){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,q,"setState")},Y.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function K(){}K.prototype=Y.prototype;function W(C,q,H){this.props=C,this.context=q,this.refs=G,this.updater=H||L}var he=W.prototype=new K;he.constructor=W,B(he,Y.prototype),he.isPureReactComponent=!0;var de=Array.isArray;function fe(){}var A={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function ie(C,q,H){var I=H.ref;return{$$typeof:n,type:C,key:q,ref:I!==void 0?I:null,props:H}}function ke(C,q){return ie(C.type,q,C.props)}function Ae(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function Se(C){var q={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(H){return q[H]})}var Oe=/\/+/g;function ze(C,q){return typeof C=="object"&&C!==null&&C.key!=null?Se(""+C.key):q.toString(36)}function Ee(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(fe,fe):(C.status="pending",C.then(function(q){C.status==="pending"&&(C.status="fulfilled",C.value=q)},function(q){C.status==="pending"&&(C.status="rejected",C.reason=q)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function k(C,q,H,I,ee){var $=typeof C;($==="undefined"||$==="boolean")&&(C=null);var ae=!1;if(C===null)ae=!0;else switch($){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(C.$$typeof){case n:case i:ae=!0;break;case x:return ae=C._init,k(ae(C._payload),q,H,I,ee)}}if(ae)return ee=ee(C),ae=I===""?"."+ze(C,0):I,de(ee)?(H="",ae!=null&&(H=ae.replace(Oe,"$&/")+"/"),k(ee,q,H,"",function(Gt){return Gt})):ee!=null&&(Ae(ee)&&(ee=ke(ee,H+(ee.key==null||C&&C.key===ee.key?"":(""+ee.key).replace(Oe,"$&/")+"/")+ae)),q.push(ee)),1;ae=0;var Te=I===""?".":I+":";if(de(C))for(var Be=0;Be<C.length;Be++)I=C[Be],$=Te+ze(I,Be),ae+=k(I,q,H,$,ee);else if(Be=N(C),typeof Be=="function")for(C=Be.call(C),Be=0;!(I=C.next()).done;)I=I.value,$=Te+ze(I,Be++),ae+=k(I,q,H,$,ee);else if($==="object"){if(typeof C.then=="function")return k(Ee(C),q,H,I,ee);throw q=String(C),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ae}function X(C,q,H){if(C==null)return C;var I=[],ee=0;return k(C,I,"","",function($){return q.call(H,$,ee++)}),I}function Q(C){if(C._status===-1){var q=C._result;q=q(),q.then(function(H){(C._status===0||C._status===-1)&&(C._status=1,C._result=H)},function(H){(C._status===0||C._status===-1)&&(C._status=2,C._result=H)}),C._status===-1&&(C._status=0,C._result=q)}if(C._status===1)return C._result.default;throw C._result}var me=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},ye={map:X,forEach:function(C,q,H){X(C,function(){q.apply(this,arguments)},H)},count:function(C){var q=0;return X(C,function(){q++}),q},toArray:function(C){return X(C,function(q){return q})||[]},only:function(C){if(!Ae(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Ne.Activity=y,Ne.Children=ye,Ne.Component=Y,Ne.Fragment=r,Ne.Profiler=c,Ne.PureComponent=W,Ne.StrictMode=l,Ne.Suspense=g,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(C){return A.H.useMemoCache(C)}},Ne.cache=function(C){return function(){return C.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(C,q,H){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var I=B({},C.props),ee=C.key;if(q!=null)for($ in q.key!==void 0&&(ee=""+q.key),q)!P.call(q,$)||$==="key"||$==="__self"||$==="__source"||$==="ref"&&q.ref===void 0||(I[$]=q[$]);var $=arguments.length-2;if($===1)I.children=H;else if(1<$){for(var ae=Array($),Te=0;Te<$;Te++)ae[Te]=arguments[Te+2];I.children=ae}return ie(C.type,ee,I)},Ne.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:f,_context:C},C},Ne.createElement=function(C,q,H){var I,ee={},$=null;if(q!=null)for(I in q.key!==void 0&&($=""+q.key),q)P.call(q,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ee[I]=q[I]);var ae=arguments.length-2;if(ae===1)ee.children=H;else if(1<ae){for(var Te=Array(ae),Be=0;Be<ae;Be++)Te[Be]=arguments[Be+2];ee.children=Te}if(C&&C.defaultProps)for(I in ae=C.defaultProps,ae)ee[I]===void 0&&(ee[I]=ae[I]);return ie(C,$,ee)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(C){return{$$typeof:m,render:C}},Ne.isValidElement=Ae,Ne.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:Q}},Ne.memo=function(C,q){return{$$typeof:p,type:C,compare:q===void 0?null:q}},Ne.startTransition=function(C){var q=A.T,H={};A.T=H;try{var I=C(),ee=A.S;ee!==null&&ee(H,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(fe,me)}catch($){me($)}finally{q!==null&&H.types!==null&&(q.types=H.types),A.T=q}},Ne.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Ne.use=function(C){return A.H.use(C)},Ne.useActionState=function(C,q,H){return A.H.useActionState(C,q,H)},Ne.useCallback=function(C,q){return A.H.useCallback(C,q)},Ne.useContext=function(C){return A.H.useContext(C)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(C,q){return A.H.useDeferredValue(C,q)},Ne.useEffect=function(C,q){return A.H.useEffect(C,q)},Ne.useEffectEvent=function(C){return A.H.useEffectEvent(C)},Ne.useId=function(){return A.H.useId()},Ne.useImperativeHandle=function(C,q,H){return A.H.useImperativeHandle(C,q,H)},Ne.useInsertionEffect=function(C,q){return A.H.useInsertionEffect(C,q)},Ne.useLayoutEffect=function(C,q){return A.H.useLayoutEffect(C,q)},Ne.useMemo=function(C,q){return A.H.useMemo(C,q)},Ne.useOptimistic=function(C,q){return A.H.useOptimistic(C,q)},Ne.useReducer=function(C,q,H){return A.H.useReducer(C,q,H)},Ne.useRef=function(C){return A.H.useRef(C)},Ne.useState=function(C){return A.H.useState(C)},Ne.useSyncExternalStore=function(C,q,H){return A.H.useSyncExternalStore(C,q,H)},Ne.useTransition=function(){return A.H.useTransition()},Ne.version="19.2.4",Ne}var $p;function Qf(){return $p||($p=1,ef.exports=y1()),ef.exports}var S=Qf();const ne=py(S),v1=m1({__proto__:null,default:ne},[S]);var tf={exports:{}},Bs={},nf={exports:{}},af={};var Wp;function b1(){return Wp||(Wp=1,(function(n){function i(k,X){var Q=k.length;k.push(X);e:for(;0<Q;){var me=Q-1>>>1,ye=k[me];if(0<c(ye,X))k[me]=X,k[Q]=ye,Q=me;else break e}}function r(k){return k.length===0?null:k[0]}function l(k){if(k.length===0)return null;var X=k[0],Q=k.pop();if(Q!==X){k[0]=Q;e:for(var me=0,ye=k.length,C=ye>>>1;me<C;){var q=2*(me+1)-1,H=k[q],I=q+1,ee=k[I];if(0>c(H,Q))I<ye&&0>c(ee,H)?(k[me]=ee,k[I]=Q,me=I):(k[me]=H,k[q]=Q,me=q);else if(I<ye&&0>c(ee,Q))k[me]=ee,k[I]=Q,me=I;else break e}}return X}function c(k,X){var Q=k.sortIndex-X.sortIndex;return Q!==0?Q:k.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],p=[],x=1,y=null,T=3,N=!1,L=!1,B=!1,G=!1,Y=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function he(k){for(var X=r(p);X!==null;){if(X.callback===null)l(p);else if(X.startTime<=k)l(p),X.sortIndex=X.expirationTime,i(g,X);else break;X=r(p)}}function de(k){if(B=!1,he(k),!L)if(r(g)!==null)L=!0,fe||(fe=!0,Se());else{var X=r(p);X!==null&&Ee(de,X.startTime-k)}}var fe=!1,A=-1,P=5,ie=-1;function ke(){return G?!0:!(n.unstable_now()-ie<P)}function Ae(){if(G=!1,fe){var k=n.unstable_now();ie=k;var X=!0;try{e:{L=!1,B&&(B=!1,K(A),A=-1),N=!0;var Q=T;try{t:{for(he(k),y=r(g);y!==null&&!(y.expirationTime>k&&ke());){var me=y.callback;if(typeof me=="function"){y.callback=null,T=y.priorityLevel;var ye=me(y.expirationTime<=k);if(k=n.unstable_now(),typeof ye=="function"){y.callback=ye,he(k),X=!0;break t}y===r(g)&&l(g),he(k)}else l(g);y=r(g)}if(y!==null)X=!0;else{var C=r(p);C!==null&&Ee(de,C.startTime-k),X=!1}}break e}finally{y=null,T=Q,N=!1}X=void 0}}finally{X?Se():fe=!1}}}var Se;if(typeof W=="function")Se=function(){W(Ae)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,ze=Oe.port2;Oe.port1.onmessage=Ae,Se=function(){ze.postMessage(null)}}else Se=function(){Y(Ae,0)};function Ee(k,X){A=Y(function(){k(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(k){switch(T){case 1:case 2:case 3:var X=3;break;default:X=T}var Q=T;T=X;try{return k()}finally{T=Q}},n.unstable_requestPaint=function(){G=!0},n.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var Q=T;T=k;try{return X()}finally{T=Q}},n.unstable_scheduleCallback=function(k,X,Q){var me=n.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?me+Q:me):Q=me,k){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=Q+ye,k={id:x++,callback:X,priorityLevel:k,startTime:Q,expirationTime:ye,sortIndex:-1},Q>me?(k.sortIndex=Q,i(p,k),r(g)===null&&k===r(p)&&(B?(K(A),A=-1):B=!0,Ee(de,Q-me))):(k.sortIndex=ye,i(g,k),L||N||(L=!0,fe||(fe=!0,Se()))),k},n.unstable_shouldYield=ke,n.unstable_wrapCallback=function(k){var X=T;return function(){var Q=T;T=X;try{return k.apply(this,arguments)}finally{T=Q}}}})(af)),af}var eg;function x1(){return eg||(eg=1,nf.exports=b1()),nf.exports}var rf={exports:{}},$t={};var tg;function S1(){if(tg)return $t;tg=1;var n=Qf();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,p,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:p,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,$t.createPortal=function(g,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,x)},$t.flushSync=function(g){var p=d.T,x=l.p;try{if(d.T=null,l.p=2,g)return g()}finally{d.T=p,l.p=x,l.d.f()}},$t.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(g,p))},$t.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},$t.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var x=p.as,y=m(x,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?l.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:T,fetchPriority:N}):x==="script"&&l.d.X(g,{crossOrigin:y,integrity:T,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},$t.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);l.d.M(g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(g)},$t.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,y=m(x,p.crossOrigin);l.d.L(g,x,{crossOrigin:y,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})}},$t.preloadModule=function(g,p){if(typeof g=="string")if(p){var x=m(p.as,p.crossOrigin);l.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(g)},$t.requestFormReset=function(g){l.d.r(g)},$t.unstable_batchedUpdates=function(g,p){return g(p)},$t.useFormState=function(g,p,x){return d.H.useFormState(g,p,x)},$t.useFormStatus=function(){return d.H.useHostTransitionStatus()},$t.version="19.2.4",$t}var ng;function gy(){if(ng)return rf.exports;ng=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),rf.exports=S1(),rf.exports}var ag;function w1(){if(ag)return Bs;ag=1;var n=x1(),i=Qf(),r=gy();function l(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 d(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 m(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 g(e){if(f(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,s=t;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return g(o),e;if(u===s)return g(o),t;u=u.sibling}throw Error(l(188))}if(a.return!==s.return)a=o,s=u;else{for(var h=!1,b=o.child;b;){if(b===a){h=!0,a=o,s=u;break}if(b===s){h=!0,s=o,a=u;break}b=b.sibling}if(!h){for(b=u.child;b;){if(b===a){h=!0,a=u,s=o;break}if(b===s){h=!0,s=u,a=o;break}b=b.sibling}if(!h)throw Error(l(189))}}if(a.alternate!==s)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,T=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),W=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),ke=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Se(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case Y:return"Profiler";case G:return"StrictMode";case de:return"Suspense";case fe:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case W:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case he:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}var Ee=Array.isArray,k=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},me=[],ye=-1;function C(e){return{current:e}}function q(e){0>ye||(e.current=me[ye],me[ye]=null,ye--)}function H(e,t){ye++,me[ye]=e.current,e.current=t}var I=C(null),ee=C(null),$=C(null),ae=C(null);function Te(e,t){switch(H($,t),H(ee,e),H(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vp(t),e=bp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(I),H(I,e)}function Be(){q(I),q(ee),q($)}function Gt(e){e.memoizedState!==null&&H(ae,e);var t=I.current,a=bp(t,e.type);t!==a&&(H(ee,e),H(I,a))}function en(e){ee.current===e&&(q(I),q(ee)),ae.current===e&&(q(ae),Ds._currentValue=Q)}var Je,Fn;function sn(e){if(Je===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Je=t&&t[1]||"",Fn=-1<a.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Je+e+Fn}var Si=!1;function ln(e,t){if(!e||Si)return"";Si=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(U){var j=U}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(U){j=U}e.call(Z.prototype)}}else{try{throw Error()}catch(U){j=U}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(U){if(U&&j&&typeof U.stack=="string")return[U.stack,j.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var E=h.split(`
5
+ `),D=b.split(`
6
+ `);for(o=s=0;s<E.length&&!E[s].includes("DetermineComponentFrameRoot");)s++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(s===E.length||o===D.length)for(s=E.length-1,o=D.length-1;1<=s&&0<=o&&E[s]!==D[o];)o--;for(;1<=s&&0<=o;s--,o--)if(E[s]!==D[o]){if(s!==1||o!==1)do if(s--,o--,0>o||E[s]!==D[o]){var V=`
7
+ `+E[s].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=s&&0<=o);break}}}finally{Si=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?sn(a):""}function ga(e,t){switch(e.tag){case 26:case 27:case 5:return sn(e.type);case 16:return sn("Lazy");case 13:return e.child!==t&&t!==null?sn("Suspense Fallback"):sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return ln(e.type,!1);case 11:return ln(e.type.render,!1);case 1:return ln(e.type,!0);case 31:return sn("Activity");default:return""}}function wi(e){try{var t="",a=null;do t+=ga(e,a),a=e,e=e.return;while(e);return t}catch(s){return`
8
+ Error generating stack: `+s.message+`
9
+ `+s.stack}}var It=Object.prototype.hasOwnProperty,Ei=n.unstable_scheduleCallback,Ti=n.unstable_cancelCallback,Vt=n.unstable_shouldYield,ia=n.unstable_requestPaint,gt=n.unstable_now,ya=n.unstable_getCurrentPriorityLevel,ra=n.unstable_ImmediatePriority,Qa=n.unstable_UserBlockingPriority,Yt=n.unstable_NormalPriority,tn=n.unstable_LowPriority,kn=n.unstable_IdlePriority,Wi=n.log,Nn=n.unstable_setDisableYieldValue,va=null,ct=null;function on(e){if(typeof Wi=="function"&&Nn(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(va,e)}catch{}}var Lt=Math.clz32?Math.clz32:yn,er=Math.log,Ci=Math.LN2;function yn(e){return e>>>=0,e===0?32:31-(er(e)/Ci|0)|0}var Xn=256,ba=262144,Zn=4194304;function Mn(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 _e(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var o=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=s&134217727;return b!==0?(s=b&~u,s!==0?o=Mn(s):(h&=b,h!==0?o=Mn(h):a||(a=b&~e,a!==0&&(o=Mn(a))))):(b=s&~u,b!==0?o=Mn(b):h!==0?o=Mn(h):a||(a=s&~e,a!==0&&(o=Mn(a)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:o}function ot(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Et(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 Tt(){var e=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),e}function vn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ut(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jt(e,t,a,s,o,u){var h=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 b=e.entanglements,E=e.expirationTimes,D=e.hiddenUpdates;for(a=h&~a;0<a;){var V=31-Lt(a),Z=1<<V;b[V]=0,E[V]=-1;var j=D[V];if(j!==null)for(D[V]=null,V=0;V<j.length;V++){var U=j[V];U!==null&&(U.lane&=-536870913)}a&=~Z}s!==0&&xa(e,s,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function xa(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Lt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function w(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-Lt(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function _(e,t){var a=t&-t;return a=(a&42)!==0?1:z(a),(a&(e.suspendedLanes|t))!==0?0:a}function z(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 J(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function te(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Gp(e.type))}function ve(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var se=Math.random().toString(36).slice(2),re="__reactFiber$"+se,le="__reactProps$"+se,ge="__reactContainer$"+se,Ce="__reactEvents$"+se,be="__reactListeners$"+se,Ie="__reactHandles$"+se,Ye="__reactResources$"+se,yt="__reactMarker$"+se;function bt(e){delete e[re],delete e[le],delete e[Ce],delete e[be],delete e[Ie]}function xt(e){var t=e[re];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ge]||a[re]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Rp(e);e!==null;){if(a=e[re])return a;e=Rp(e)}return t}e=a,a=e.parentNode}return null}function Pe(e){if(e=e[re]||e[ge]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ht(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function un(e){var t=e[Ye];return t||(t=e[Ye]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[yt]=!0}var In=new Set,bn={};function Jn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(bn[e]=t,e=0;e<t.length;e++)In.add(t[e])}var Sa=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]*$"),Ri={},Ai={};function Ke(e){return It.call(Ai,e)?!0:It.call(Ri,e)?!1:Sa.test(e)?Ai[e]=!0:(Ri[e]=!0,!1)}function Ct(e,t,a){if(Ke(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function $n(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 Pt(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}function Fe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _i(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sl(e,t,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zr(e){if(!e._valueTracker){var t=_i(e)?"checked":"value";e._valueTracker=sl(e,t,""+e[t])}}function fd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=_i(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function ll(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 o0=/[\n"\\]/g;function Dn(e){return e.replace(o0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fo(e,t,a,s,o,u,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Fe(t)):e.value!==""+Fe(t)&&(e.value=""+Fe(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Xo(e,h,Fe(t)):a!=null?Xo(e,h,Fe(a)):s!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Fe(b):e.removeAttribute("name")}function dd(e,t,a,s,o,u,h,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Zr(e);return}a=a!=null?""+Fe(a):"",t=t!=null?""+Fe(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=b?e.checked:!!s,e.defaultChecked=!!s,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Zr(e)}function Xo(e,t,a){t==="number"&&ll(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function tr(e,t,a,s){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Fe(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function hd(e,t,a){if(t!=null&&(t=""+Fe(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Fe(a):""}function md(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(l(92));if(Ee(s)){if(1<s.length)throw Error(l(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=Fe(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),Zr(e)}function nr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var u0=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 pd(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||u0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function gd(e,t,a){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&a[o]!==s&&pd(e,o,s)}else for(var u in t)t.hasOwnProperty(u)&&pd(e,u,t[u])}function Zo(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 c0=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"]]),f0=/^[\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 ol(e){return f0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wa(){}var Io=null;function Jo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ar=null,ir=null;function yd(e){var t=Pe(e);if(t&&(e=t.stateNode)){var a=e[le]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fo(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="'+Dn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var o=s[le]||null;if(!o)throw Error(l(90));Fo(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&fd(s)}break e;case"textarea":hd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&tr(e,!!a.multiple,t,!1)}}}var $o=!1;function vd(e,t,a){if($o)return e(t,a);$o=!0;try{var s=e(t);return s}finally{if($o=!1,(ar!==null||ir!==null)&&(Zl(),ar&&(t=ar,e=ir,ir=ar=null,yd(t),e)))for(t=0;t<e.length;t++)yd(e[t])}}function Ir(e,t){var a=e.stateNode;if(a===null)return null;var s=a[le]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,t,typeof a));return a}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(Ea)try{var Jr={};Object.defineProperty(Jr,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{Wo=!1}var Ga=null,eu=null,ul=null;function bd(){if(ul)return ul;var e,t=eu,a=t.length,s,o="value"in Ga?Ga.value:Ga.textContent,u=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(s=1;s<=h&&t[a-s]===o[u-s];s++);return ul=o.slice(e,1<s?1-s:void 0)}function cl(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 fl(){return!0}function xd(){return!1}function cn(e){function t(a,s,o,u,h){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(a=e[b],this[b]=a?a(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?fl:xd,this.isPropagationStopped=xd,this}return y(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=fl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dl=cn(ki),$r=y({},ki,{view:0,detail:0}),d0=cn($r),tu,nu,Wr,hl=y({},$r,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iu,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!==Wr&&(Wr&&e.type==="mousemove"?(tu=e.screenX-Wr.screenX,nu=e.screenY-Wr.screenY):nu=tu=0,Wr=e),tu)},movementY:function(e){return"movementY"in e?e.movementY:nu}}),Sd=cn(hl),h0=y({},hl,{dataTransfer:0}),m0=cn(h0),p0=y({},$r,{relatedTarget:0}),au=cn(p0),g0=y({},ki,{animationName:0,elapsedTime:0,pseudoElement:0}),y0=cn(g0),v0=y({},ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b0=cn(v0),x0=y({},ki,{data:0}),wd=cn(x0),S0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w0={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"},E0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E0[e])?!!t[e]:!1}function iu(){return T0}var C0=y({},$r,{key:function(e){if(e.key){var t=S0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iu,charCode:function(e){return e.type==="keypress"?cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),R0=cn(C0),A0=y({},hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ed=cn(A0),_0=y({},$r,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iu}),k0=cn(_0),N0=y({},ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),M0=cn(N0),O0=y({},hl,{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}),D0=cn(O0),j0=y({},ki,{newState:0,oldState:0}),z0=cn(j0),L0=[9,13,27,32],ru=Ea&&"CompositionEvent"in window,es=null;Ea&&"documentMode"in document&&(es=document.documentMode);var U0=Ea&&"TextEvent"in window&&!es,Td=Ea&&(!ru||es&&8<es&&11>=es),Cd=" ",Rd=!1;function Ad(e,t){switch(e){case"keyup":return L0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function B0(e,t){switch(e){case"compositionend":return _d(t);case"keypress":return t.which!==32?null:(Rd=!0,Cd);case"textInput":return e=t.data,e===Cd&&Rd?null:e;default:return null}}function q0(e,t){if(rr)return e==="compositionend"||!ru&&Ad(e,t)?(e=bd(),ul=eu=Ga=null,rr=!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 Td&&t.locale!=="ko"?null:t.data;default:return null}}var H0={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 kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!H0[e.type]:t==="textarea"}function Nd(e,t,a,s){ar?ir?ir.push(s):ir=[s]:ar=s,t=no(t,"onChange"),0<t.length&&(a=new dl("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ts=null,ns=null;function Q0(e){dp(e,0)}function ml(e){var t=Ht(e);if(fd(t))return e}function Md(e,t){if(e==="change")return t}var Od=!1;if(Ea){var su;if(Ea){var lu="oninput"in document;if(!lu){var Dd=document.createElement("div");Dd.setAttribute("oninput","return;"),lu=typeof Dd.oninput=="function"}su=lu}else su=!1;Od=su&&(!document.documentMode||9<document.documentMode)}function jd(){ts&&(ts.detachEvent("onpropertychange",zd),ns=ts=null)}function zd(e){if(e.propertyName==="value"&&ml(ns)){var t=[];Nd(t,ns,e,Jo(e)),vd(Q0,t)}}function G0(e,t,a){e==="focusin"?(jd(),ts=t,ns=a,ts.attachEvent("onpropertychange",zd)):e==="focusout"&&jd()}function V0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ml(ns)}function Y0(e,t){if(e==="click")return ml(t)}function P0(e,t){if(e==="input"||e==="change")return ml(t)}function K0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xn=typeof Object.is=="function"?Object.is:K0;function as(e,t){if(xn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!It.call(t,o)||!xn(e[o],t[o]))return!1}return!0}function Ld(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ud(e,t){var a=Ld(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ld(a)}}function Bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ll(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=ll(e.document)}return t}function ou(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 F0=Ea&&"documentMode"in document&&11>=document.documentMode,sr=null,uu=null,is=null,cu=!1;function Hd(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cu||sr==null||sr!==ll(s)||(s=sr,"selectionStart"in s&&ou(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),is&&as(is,s)||(is=s,s=no(uu,"onSelect"),0<s.length&&(t=new dl("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=sr)))}function Ni(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var lr={animationend:Ni("Animation","AnimationEnd"),animationiteration:Ni("Animation","AnimationIteration"),animationstart:Ni("Animation","AnimationStart"),transitionrun:Ni("Transition","TransitionRun"),transitionstart:Ni("Transition","TransitionStart"),transitioncancel:Ni("Transition","TransitionCancel"),transitionend:Ni("Transition","TransitionEnd")},fu={},Qd={};Ea&&(Qd=document.createElement("div").style,"AnimationEvent"in window||(delete lr.animationend.animation,delete lr.animationiteration.animation,delete lr.animationstart.animation),"TransitionEvent"in window||delete lr.transitionend.transition);function Mi(e){if(fu[e])return fu[e];if(!lr[e])return e;var t=lr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Qd)return fu[e]=t[a];return e}var Gd=Mi("animationend"),Vd=Mi("animationiteration"),Yd=Mi("animationstart"),X0=Mi("transitionrun"),Z0=Mi("transitionstart"),I0=Mi("transitioncancel"),Pd=Mi("transitionend"),Kd=new Map,du="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(" ");du.push("scrollEnd");function Wn(e,t){Kd.set(e,t),Jn(t,[e])}var pl=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)},jn=[],or=0,hu=0;function gl(){for(var e=or,t=hu=or=0;t<e;){var a=jn[t];jn[t++]=null;var s=jn[t];jn[t++]=null;var o=jn[t];jn[t++]=null;var u=jn[t];if(jn[t++]=null,s!==null&&o!==null){var h=s.pending;h===null?o.next=o:(o.next=h.next,h.next=o),s.pending=o}u!==0&&Fd(a,o,u)}}function yl(e,t,a,s){jn[or++]=e,jn[or++]=t,jn[or++]=a,jn[or++]=s,hu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function mu(e,t,a,s){return yl(e,t,a,s),vl(e)}function Oi(e,t){return yl(e,null,null,t),vl(e)}function Fd(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var o=!1,u=e.return;u!==null;)u.childLanes|=a,s=u.alternate,s!==null&&(s.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-Lt(a),e=u.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),u):null}function vl(e){if(50<Rs)throw Rs=0,Ec=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ur={};function J0(e,t,a,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(e,t,a,s){return new J0(e,t,a,s)}function pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ta(e,t){var a=e.alternate;return a===null?(a=Sn(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 Xd(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 bl(e,t,a,s,o,u){var h=0;if(s=e,typeof e=="function")pu(e)&&(h=1);else if(typeof e=="string")h=n1(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=Sn(31,a,t,o),e.elementType=ie,e.lanes=u,e;case B:return Di(a.children,o,u,t);case G:h=8,o|=24;break;case Y:return e=Sn(12,a,t,o|2),e.elementType=Y,e.lanes=u,e;case de:return e=Sn(13,a,t,o),e.elementType=de,e.lanes=u,e;case fe:return e=Sn(19,a,t,o),e.elementType=fe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:h=10;break e;case K:h=9;break e;case he:h=11;break e;case A:h=14;break e;case P:h=16,s=null;break e}h=29,a=Error(l(130,e===null?"null":typeof e,"")),s=null}return t=Sn(h,a,t,o),t.elementType=e,t.type=s,t.lanes=u,t}function Di(e,t,a,s){return e=Sn(7,e,s,t),e.lanes=a,e}function gu(e,t,a){return e=Sn(6,e,null,t),e.lanes=a,e}function Zd(e){var t=Sn(18,null,null,0);return t.stateNode=e,t}function yu(e,t,a){return t=Sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Id=new WeakMap;function zn(e,t){if(typeof e=="object"&&e!==null){var a=Id.get(e);return a!==void 0?a:(t={value:e,source:t,stack:wi(t)},Id.set(e,t),t)}return{value:e,source:t,stack:wi(t)}}var cr=[],fr=0,xl=null,rs=0,Ln=[],Un=0,Va=null,sa=1,la="";function Ca(e,t){cr[fr++]=rs,cr[fr++]=xl,xl=e,rs=t}function Jd(e,t,a){Ln[Un++]=sa,Ln[Un++]=la,Ln[Un++]=Va,Va=e;var s=sa;e=la;var o=32-Lt(s)-1;s&=~(1<<o),a+=1;var u=32-Lt(t)+o;if(30<u){var h=o-o%5;u=(s&(1<<h)-1).toString(32),s>>=h,o-=h,sa=1<<32-Lt(t)+o|a<<o|s,la=u+e}else sa=1<<u|a<<o|s,la=e}function vu(e){e.return!==null&&(Ca(e,1),Jd(e,1,0))}function bu(e){for(;e===xl;)xl=cr[--fr],cr[fr]=null,rs=cr[--fr],cr[fr]=null;for(;e===Va;)Va=Ln[--Un],Ln[Un]=null,la=Ln[--Un],Ln[Un]=null,sa=Ln[--Un],Ln[Un]=null}function $d(e,t){Ln[Un++]=sa,Ln[Un++]=la,Ln[Un++]=Va,sa=t.id,la=t.overflow,Va=e}var Kt=null,ft=null,Xe=!1,Ya=null,Bn=!1,xu=Error(l(519));function Pa(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ss(zn(t,e)),xu}function Wd(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[re]=e,t[le]=s,a){case"dialog":Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":case"embed":Qe("load",t);break;case"video":case"audio":for(a=0;a<_s.length;a++)Qe(_s[a],t);break;case"source":Qe("error",t);break;case"img":case"image":case"link":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"input":Qe("invalid",t),dd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Qe("invalid",t);break;case"textarea":Qe("invalid",t),md(t,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||gp(t.textContent,a)?(s.popover!=null&&(Qe("beforetoggle",t),Qe("toggle",t)),s.onScroll!=null&&Qe("scroll",t),s.onScrollEnd!=null&&Qe("scrollend",t),s.onClick!=null&&(t.onclick=wa),t=!0):t=!1,t||Pa(e,!0)}function eh(e){for(Kt=e.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Bn=!1;return;case 27:case 3:Bn=!0;return;default:Kt=Kt.return}}function dr(e){if(e!==Kt)return!1;if(!Xe)return eh(e),Xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Bc(e.type,e.memoizedProps)),a=!a),a&&ft&&Pa(e),eh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));ft=Cp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));ft=Cp(e)}else t===27?(t=ft,ri(e.type)?(e=Vc,Vc=null,ft=e):ft=t):ft=Kt?Hn(e.stateNode.nextSibling):null;return!0}function ji(){ft=Kt=null,Xe=!1}function Su(){var e=Ya;return e!==null&&(mn===null?mn=e:mn.push.apply(mn,e),Ya=null),e}function ss(e){Ya===null?Ya=[e]:Ya.push(e)}var wu=C(null),zi=null,Ra=null;function Ka(e,t,a){H(wu,t._currentValue),t._currentValue=a}function Aa(e){e._currentValue=wu.current,q(wu)}function Eu(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function Tu(e,t,a,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=o;for(var E=0;E<t.length;E++)if(b.context===t[E]){u.lanes|=a,b=u.alternate,b!==null&&(b.lanes|=a),Eu(u.return,a,e),s||(h=null);break e}u=b.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=a,u=h.alternate,u!==null&&(u.lanes|=a),Eu(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function hr(e,t,a,s){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var b=o.type;xn(o.pendingProps.value,h.value)||(e!==null?e.push(b):e=[b])}}else if(o===ae.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ds):e=[Ds])}o=o.return}e!==null&&Tu(t,e,a,s),t.flags|=262144}function Sl(e){for(e=e.firstContext;e!==null;){if(!xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Li(e){zi=e,Ra=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return th(zi,e)}function wl(e,t){return zi===null&&Li(e),th(e,t)}function th(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ra===null){if(e===null)throw Error(l(308));Ra=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ra=Ra.next=t;return a}var $0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},W0=n.unstable_scheduleCallback,eb=n.unstable_NormalPriority,kt={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cu(){return{controller:new $0,data:new Map,refCount:0}}function ls(e){e.refCount--,e.refCount===0&&W0(eb,function(){e.controller.abort()})}var os=null,Ru=0,mr=0,pr=null;function tb(e,t){if(os===null){var a=os=[];Ru=0,mr=kc(),pr={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Ru++,t.then(nh,nh),t}function nh(){if(--Ru===0&&os!==null){pr!==null&&(pr.status="fulfilled");var e=os;os=null,mr=0,pr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nb(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var ah=k.S;k.S=function(e,t){Hm=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tb(e,t),ah!==null&&ah(e,t)};var Ui=C(null);function Au(){var e=Ui.current;return e!==null?e:lt.pooledCache}function El(e,t){t===null?H(Ui,Ui.current):H(Ui,t.pool)}function ih(){var e=Au();return e===null?null:{parent:kt._currentValue,pool:e}}var gr=Error(l(460)),_u=Error(l(474)),Tl=Error(l(542)),Cl={then:function(){}};function rh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(wa,wa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oh(e),e;default:if(typeof t.status=="string")t.then(wa,wa);else{if(e=lt,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oh(e),e}throw qi=t,gr}}function Bi(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(qi=a,gr):a}}var qi=null;function lh(){if(qi===null)throw Error(l(459));var e=qi;return qi=null,e}function oh(e){if(e===gr||e===Tl)throw Error(l(483))}var yr=null,us=0;function Rl(e){var t=us;return us+=1,yr===null&&(yr=[]),sh(yr,e,t)}function cs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Al(e,t){throw t.$$typeof===T?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function uh(e){function t(M,R){if(e){var O=M.deletions;O===null?(M.deletions=[R],M.flags|=16):O.push(R)}}function a(M,R){if(!e)return null;for(;R!==null;)t(M,R),R=R.sibling;return null}function s(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function o(M,R){return M=Ta(M,R),M.index=0,M.sibling=null,M}function u(M,R,O){return M.index=O,e?(O=M.alternate,O!==null?(O=O.index,O<R?(M.flags|=67108866,R):O):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function h(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,R,O,F){return R===null||R.tag!==6?(R=gu(O,M.mode,F),R.return=M,R):(R=o(R,O),R.return=M,R)}function E(M,R,O,F){var we=O.type;return we===B?V(M,R,O.props.children,F,O.key):R!==null&&(R.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===P&&Bi(we)===R.type)?(R=o(R,O.props),cs(R,O),R.return=M,R):(R=bl(O.type,O.key,O.props,null,M.mode,F),cs(R,O),R.return=M,R)}function D(M,R,O,F){return R===null||R.tag!==4||R.stateNode.containerInfo!==O.containerInfo||R.stateNode.implementation!==O.implementation?(R=yu(O,M.mode,F),R.return=M,R):(R=o(R,O.children||[]),R.return=M,R)}function V(M,R,O,F,we){return R===null||R.tag!==7?(R=Di(O,M.mode,F,we),R.return=M,R):(R=o(R,O),R.return=M,R)}function Z(M,R,O){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=gu(""+R,M.mode,O),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case N:return O=bl(R.type,R.key,R.props,null,M.mode,O),cs(O,R),O.return=M,O;case L:return R=yu(R,M.mode,O),R.return=M,R;case P:return R=Bi(R),Z(M,R,O)}if(Ee(R)||Se(R))return R=Di(R,M.mode,O,null),R.return=M,R;if(typeof R.then=="function")return Z(M,Rl(R),O);if(R.$$typeof===W)return Z(M,wl(M,R),O);Al(M,R)}return null}function j(M,R,O,F){var we=R!==null?R.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return we!==null?null:b(M,R,""+O,F);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case N:return O.key===we?E(M,R,O,F):null;case L:return O.key===we?D(M,R,O,F):null;case P:return O=Bi(O),j(M,R,O,F)}if(Ee(O)||Se(O))return we!==null?null:V(M,R,O,F,null);if(typeof O.then=="function")return j(M,R,Rl(O),F);if(O.$$typeof===W)return j(M,R,wl(M,O),F);Al(M,O)}return null}function U(M,R,O,F,we){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return M=M.get(O)||null,b(R,M,""+F,we);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case N:return M=M.get(F.key===null?O:F.key)||null,E(R,M,F,we);case L:return M=M.get(F.key===null?O:F.key)||null,D(R,M,F,we);case P:return F=Bi(F),U(M,R,O,F,we)}if(Ee(F)||Se(F))return M=M.get(O)||null,V(R,M,F,we,null);if(typeof F.then=="function")return U(M,R,O,Rl(F),we);if(F.$$typeof===W)return U(M,R,O,wl(R,F),we);Al(R,F)}return null}function oe(M,R,O,F){for(var we=null,$e=null,pe=R,je=R=0,Ve=null;pe!==null&&je<O.length;je++){pe.index>je?(Ve=pe,pe=null):Ve=pe.sibling;var We=j(M,pe,O[je],F);if(We===null){pe===null&&(pe=Ve);break}e&&pe&&We.alternate===null&&t(M,pe),R=u(We,R,je),$e===null?we=We:$e.sibling=We,$e=We,pe=Ve}if(je===O.length)return a(M,pe),Xe&&Ca(M,je),we;if(pe===null){for(;je<O.length;je++)pe=Z(M,O[je],F),pe!==null&&(R=u(pe,R,je),$e===null?we=pe:$e.sibling=pe,$e=pe);return Xe&&Ca(M,je),we}for(pe=s(pe);je<O.length;je++)Ve=U(pe,M,je,O[je],F),Ve!==null&&(e&&Ve.alternate!==null&&pe.delete(Ve.key===null?je:Ve.key),R=u(Ve,R,je),$e===null?we=Ve:$e.sibling=Ve,$e=Ve);return e&&pe.forEach(function(ci){return t(M,ci)}),Xe&&Ca(M,je),we}function Re(M,R,O,F){if(O==null)throw Error(l(151));for(var we=null,$e=null,pe=R,je=R=0,Ve=null,We=O.next();pe!==null&&!We.done;je++,We=O.next()){pe.index>je?(Ve=pe,pe=null):Ve=pe.sibling;var ci=j(M,pe,We.value,F);if(ci===null){pe===null&&(pe=Ve);break}e&&pe&&ci.alternate===null&&t(M,pe),R=u(ci,R,je),$e===null?we=ci:$e.sibling=ci,$e=ci,pe=Ve}if(We.done)return a(M,pe),Xe&&Ca(M,je),we;if(pe===null){for(;!We.done;je++,We=O.next())We=Z(M,We.value,F),We!==null&&(R=u(We,R,je),$e===null?we=We:$e.sibling=We,$e=We);return Xe&&Ca(M,je),we}for(pe=s(pe);!We.done;je++,We=O.next())We=U(pe,M,je,We.value,F),We!==null&&(e&&We.alternate!==null&&pe.delete(We.key===null?je:We.key),R=u(We,R,je),$e===null?we=We:$e.sibling=We,$e=We);return e&&pe.forEach(function(h1){return t(M,h1)}),Xe&&Ca(M,je),we}function st(M,R,O,F){if(typeof O=="object"&&O!==null&&O.type===B&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case N:e:{for(var we=O.key;R!==null;){if(R.key===we){if(we=O.type,we===B){if(R.tag===7){a(M,R.sibling),F=o(R,O.props.children),F.return=M,M=F;break e}}else if(R.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===P&&Bi(we)===R.type){a(M,R.sibling),F=o(R,O.props),cs(F,O),F.return=M,M=F;break e}a(M,R);break}else t(M,R);R=R.sibling}O.type===B?(F=Di(O.props.children,M.mode,F,O.key),F.return=M,M=F):(F=bl(O.type,O.key,O.props,null,M.mode,F),cs(F,O),F.return=M,M=F)}return h(M);case L:e:{for(we=O.key;R!==null;){if(R.key===we)if(R.tag===4&&R.stateNode.containerInfo===O.containerInfo&&R.stateNode.implementation===O.implementation){a(M,R.sibling),F=o(R,O.children||[]),F.return=M,M=F;break e}else{a(M,R);break}else t(M,R);R=R.sibling}F=yu(O,M.mode,F),F.return=M,M=F}return h(M);case P:return O=Bi(O),st(M,R,O,F)}if(Ee(O))return oe(M,R,O,F);if(Se(O)){if(we=Se(O),typeof we!="function")throw Error(l(150));return O=we.call(O),Re(M,R,O,F)}if(typeof O.then=="function")return st(M,R,Rl(O),F);if(O.$$typeof===W)return st(M,R,wl(M,O),F);Al(M,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,R!==null&&R.tag===6?(a(M,R.sibling),F=o(R,O),F.return=M,M=F):(a(M,R),F=gu(O,M.mode,F),F.return=M,M=F),h(M)):a(M,R)}return function(M,R,O,F){try{us=0;var we=st(M,R,O,F);return yr=null,we}catch(pe){if(pe===gr||pe===Tl)throw pe;var $e=Sn(29,pe,null,M.mode);return $e.lanes=F,$e.return=M,$e}}}var Hi=uh(!0),ch=uh(!1),Fa=!1;function ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nu(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(et&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=vl(e),Fd(e,null,a),t}return yl(e,s,t,a),vl(e)}function fs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,w(e,a)}}function Mu(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,a=a.next}while(a!==null);u===null?o=u=t:u=u.next=t}else o=u=t;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Ou=!1;function ds(){if(Ou){var e=pr;if(e!==null)throw e}}function hs(e,t,a,s){Ou=!1;var o=e.updateQueue;Fa=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var E=b,D=E.next;E.next=null,h===null?u=D:h.next=D,h=E;var V=e.alternate;V!==null&&(V=V.updateQueue,b=V.lastBaseUpdate,b!==h&&(b===null?V.firstBaseUpdate=D:b.next=D,V.lastBaseUpdate=E))}if(u!==null){var Z=o.baseState;h=0,V=D=E=null,b=u;do{var j=b.lane&-536870913,U=j!==b.lane;if(U?(Ge&j)===j:(s&j)===j){j!==0&&j===mr&&(Ou=!0),V!==null&&(V=V.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var oe=e,Re=b;j=t;var st=a;switch(Re.tag){case 1:if(oe=Re.payload,typeof oe=="function"){Z=oe.call(st,Z,j);break e}Z=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=Re.payload,j=typeof oe=="function"?oe.call(st,Z,j):oe,j==null)break e;Z=y({},Z,j);break e;case 2:Fa=!0}}j=b.callback,j!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[j]:U.push(j))}else U={lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},V===null?(D=V=U,E=Z):V=V.next=U,h|=j;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;U=b,b=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);V===null&&(E=Z),o.baseState=E,o.firstBaseUpdate=D,o.lastBaseUpdate=V,u===null&&(o.shared.lanes=0),ei|=h,e.lanes=h,e.memoizedState=Z}}function fh(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function dh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)fh(a[e],t)}var vr=C(null),_l=C(0);function hh(e,t){e=La,H(_l,e),H(vr,t),La=e|t.baseLanes}function Du(){H(_l,La),H(vr,vr.current)}function ju(){La=_l.current,q(vr),q(_l)}var wn=C(null),qn=null;function Ia(e){var t=e.alternate;H(Rt,Rt.current&1),H(wn,e),qn===null&&(t===null||vr.current!==null||t.memoizedState!==null)&&(qn=e)}function zu(e){H(Rt,Rt.current),H(wn,e),qn===null&&(qn=e)}function mh(e){e.tag===22?(H(Rt,Rt.current),H(wn,e),qn===null&&(qn=e)):Ja()}function Ja(){H(Rt,Rt.current),H(wn,wn.current)}function En(e){q(wn),qn===e&&(qn=null),q(Rt)}var Rt=C(0);function kl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Qc(a)||Gc(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 _a=0,De=null,it=null,Nt=null,Nl=!1,br=!1,Qi=!1,Ml=0,ms=0,xr=null,ab=0;function St(){throw Error(l(321))}function Lu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xn(e[a],t[a]))return!1;return!0}function Uu(e,t,a,s,o,u){return _a=u,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Jh:$u,Qi=!1,u=a(s,o),Qi=!1,br&&(u=gh(t,a,s,o)),ph(e),u}function ph(e){k.H=ys;var t=it!==null&&it.next!==null;if(_a=0,Nt=it=De=null,Nl=!1,ms=0,xr=null,t)throw Error(l(300));e===null||Mt||(e=e.dependencies,e!==null&&Sl(e)&&(Mt=!0))}function gh(e,t,a,s){De=e;var o=0;do{if(br&&(xr=null),ms=0,br=!1,25<=o)throw Error(l(301));if(o+=1,Nt=it=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}k.H=$h,u=t(a,s)}while(br);return u}function ib(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?ps(t):t,e=e.useState()[0],(it!==null?it.memoizedState:null)!==e&&(De.flags|=1024),t}function Bu(){var e=Ml!==0;return Ml=0,e}function qu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Hu(e){if(Nl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Nl=!1}_a=0,Nt=it=De=null,br=!1,ms=Ml=0,xr=null}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?De.memoizedState=Nt=e:Nt=Nt.next=e,Nt}function At(){if(it===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=it.next;var t=Nt===null?De.memoizedState:Nt.next;if(t!==null)Nt=t,it=e;else{if(e===null)throw De.alternate===null?Error(l(467)):Error(l(310));it=e,e={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},Nt===null?De.memoizedState=Nt=e:Nt=Nt.next=e}return Nt}function Ol(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ps(e){var t=ms;return ms+=1,xr===null&&(xr=[]),e=sh(xr,e,t),t=De,(Nt===null?t.memoizedState:Nt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Jh:$u),e}function Dl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ps(e);if(e.$$typeof===W)return Ft(e)}throw Error(l(438,String(e)))}function Qu(e){var t=null,a=De.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=De.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ol(),De.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=ke;return t.index++,a}function ka(e,t){return typeof t=="function"?t(e):t}function jl(e){var t=At();return Gu(t,it,e)}function Gu(e,t,a){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=a;var o=e.baseQueue,u=s.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}t.baseQueue=o=u,s.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var b=h=null,E=null,D=t,V=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(Ge&Z)===Z:(_a&Z)===Z){var j=D.revertLane;if(j===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===mr&&(V=!0);else if((_a&j)===j){D=D.next,j===mr&&(V=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(b=E=Z,h=u):E=E.next=Z,De.lanes|=j,ei|=j;Z=D.action,Qi&&a(u,Z),u=D.hasEagerState?D.eagerState:a(u,Z)}else j={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(b=E=j,h=u):E=E.next=j,De.lanes|=Z,ei|=Z;D=D.next}while(D!==null&&D!==t);if(E===null?h=u:E.next=b,!xn(u,e.memoizedState)&&(Mt=!0,V&&(a=pr,a!==null)))throw a;e.memoizedState=u,e.baseState=h,e.baseQueue=E,s.lastRenderedState=u}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Vu(e){var t=At(),a=t.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var s=a.dispatch,o=a.pending,u=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do u=e(u,h.action),h=h.next;while(h!==o);xn(u,t.memoizedState)||(Mt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,s]}function yh(e,t,a){var s=De,o=At(),u=Xe;if(u){if(a===void 0)throw Error(l(407));a=a()}else a=t();var h=!xn((it||o).memoizedState,a);if(h&&(o.memoizedState=a,Mt=!0),o=o.queue,Ku(xh.bind(null,s,o,e),[e]),o.getSnapshot!==t||h||Nt!==null&&Nt.memoizedState.tag&1){if(s.flags|=2048,Sr(9,{destroy:void 0},bh.bind(null,s,o,a,t),null),lt===null)throw Error(l(349));u||(_a&127)!==0||vh(s,t,a)}return a}function vh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=De.updateQueue,t===null?(t=Ol(),De.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function bh(e,t,a,s){t.value=a,t.getSnapshot=s,Sh(t)&&wh(e)}function xh(e,t,a){return a(function(){Sh(t)&&wh(e)})}function Sh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xn(e,a)}catch{return!0}}function wh(e){var t=Oi(e,2);t!==null&&pn(t,e,2)}function Yu(e){var t=nn();if(typeof e=="function"){var a=e;if(e=a(),Qi){on(!0);try{a()}finally{on(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:e},t}function Eh(e,t,a,s){return e.baseState=a,Gu(e,it,typeof s=="function"?s:ka)}function rb(e,t,a,s,o){if(Ul(e))throw Error(l(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};k.T!==null?a(!0):u.isTransition=!1,s(u),a=t.pending,a===null?(u.next=t.pending=u,Th(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Th(e,t){var a=t.action,s=t.payload,o=e.state;if(t.isTransition){var u=k.T,h={};k.T=h;try{var b=a(o,s),E=k.S;E!==null&&E(h,b),Ch(e,t,b)}catch(D){Pu(e,t,D)}finally{u!==null&&h.types!==null&&(u.types=h.types),k.T=u}}else try{u=a(o,s),Ch(e,t,u)}catch(D){Pu(e,t,D)}}function Ch(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Rh(e,t,s)},function(s){return Pu(e,t,s)}):Rh(e,t,a)}function Rh(e,t,a){t.status="fulfilled",t.value=a,Ah(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Th(e,a)))}function Pu(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,Ah(t),t=t.next;while(t!==s)}e.action=null}function Ah(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _h(e,t){return t}function kh(e,t){if(Xe){var a=lt.formState;if(a!==null){e:{var s=De;if(Xe){if(ft){t:{for(var o=ft,u=Bn;o.nodeType!==8;){if(!u){o=null;break t}if(o=Hn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){ft=Hn(o.nextSibling),s=o.data==="F!";break e}}Pa(s)}s=!1}s&&(t=a[0])}}return a=nn(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_h,lastRenderedState:t},a.queue=s,a=Xh.bind(null,De,s),s.dispatch=a,s=Yu(!1),u=Ju.bind(null,De,!1,s.queue),s=nn(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=rb.bind(null,De,o,u,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Nh(e){var t=At();return Mh(t,it,e)}function Mh(e,t,a){if(t=Gu(e,t,_h)[0],e=jl(ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ps(t)}catch(h){throw h===gr?Tl:h}else s=t;t=At();var o=t.queue,u=o.dispatch;return a!==t.memoizedState&&(De.flags|=2048,Sr(9,{destroy:void 0},sb.bind(null,o,a),null)),[s,u,e]}function sb(e,t){e.action=t}function Oh(e){var t=At(),a=it;if(a!==null)return Mh(t,a,e);At(),t=t.memoizedState,a=At();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Sr(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=De.updateQueue,t===null&&(t=Ol(),De.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Dh(){return At().memoizedState}function zl(e,t,a,s){var o=nn();De.flags|=e,o.memoizedState=Sr(1|t,{destroy:void 0},a,s===void 0?null:s)}function Ll(e,t,a,s){var o=At();s=s===void 0?null:s;var u=o.memoizedState.inst;it!==null&&s!==null&&Lu(s,it.memoizedState.deps)?o.memoizedState=Sr(t,u,a,s):(De.flags|=e,o.memoizedState=Sr(1|t,u,a,s))}function jh(e,t){zl(8390656,8,e,t)}function Ku(e,t){Ll(2048,8,e,t)}function lb(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=Ol(),De.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function zh(e){var t=At().memoizedState;return lb({ref:t,nextImpl:e}),function(){if((et&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Lh(e,t){return Ll(4,2,e,t)}function Uh(e,t){return Ll(4,4,e,t)}function Bh(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 qh(e,t,a){a=a!=null?a.concat([e]):null,Ll(4,4,Bh.bind(null,t,e),a)}function Fu(){}function Hh(e,t){var a=At();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Lu(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function Qh(e,t){var a=At();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Lu(t,s[1]))return s[0];if(s=e(),Qi){on(!0);try{e()}finally{on(!1)}}return a.memoizedState=[s,t],s}function Xu(e,t,a){return a===void 0||(_a&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Gm(),De.lanes|=e,ei|=e,a)}function Gh(e,t,a,s){return xn(a,t)?a:vr.current!==null?(e=Xu(e,a,s),xn(e,t)||(Mt=!0),e):(_a&42)===0||(_a&1073741824)!==0&&(Ge&261930)===0?(Mt=!0,e.memoizedState=a):(e=Gm(),De.lanes|=e,ei|=e,t)}function Vh(e,t,a,s,o){var u=X.p;X.p=u!==0&&8>u?u:8;var h=k.T,b={};k.T=b,Ju(e,!1,t,a);try{var E=o(),D=k.S;if(D!==null&&D(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var V=nb(E,s);gs(e,t,V,Rn(e))}else gs(e,t,s,Rn(e))}catch(Z){gs(e,t,{then:function(){},status:"rejected",reason:Z},Rn())}finally{X.p=u,h!==null&&b.types!==null&&(h.types=b.types),k.T=h}}function ob(){}function Zu(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=Yh(e).queue;Vh(e,o,t,Q,a===null?ob:function(){return Ph(e),a(s)})}function Yh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:Q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ph(e){var t=Yh(e);t.next===null&&(t=e.alternate.memoizedState),gs(e,t.next.queue,{},Rn())}function Iu(){return Ft(Ds)}function Kh(){return At().memoizedState}function Fh(){return At().memoizedState}function ub(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rn();e=Xa(a);var s=Za(t,e,a);s!==null&&(pn(s,t,a),fs(s,t,a)),t={cache:Cu()},e.payload=t;return}t=t.return}}function cb(e,t,a){var s=Rn();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ul(e)?Zh(t,a):(a=mu(e,t,a,s),a!==null&&(pn(a,e,s),Ih(a,t,s)))}function Xh(e,t,a){var s=Rn();gs(e,t,a,s)}function gs(e,t,a,s){var o={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ul(e))Zh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,b=u(h,a);if(o.hasEagerState=!0,o.eagerState=b,xn(b,h))return yl(e,t,o,0),lt===null&&gl(),!1}catch{}if(a=mu(e,t,o,s),a!==null)return pn(a,e,s),Ih(a,t,s),!0}return!1}function Ju(e,t,a,s){if(s={lane:2,revertLane:kc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ul(e)){if(t)throw Error(l(479))}else t=mu(e,a,s,2),t!==null&&pn(t,e,2)}function Ul(e){var t=e.alternate;return e===De||t!==null&&t===De}function Zh(e,t){br=Nl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ih(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,w(e,a)}}var ys={readContext:Ft,use:Dl,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};ys.useEffectEvent=St;var Jh={readContext:Ft,use:Dl,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:jh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,zl(4194308,4,Bh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){zl(4,2,e,t)},useMemo:function(e,t){var a=nn();t=t===void 0?null:t;var s=e();if(Qi){on(!0);try{e()}finally{on(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=nn();if(a!==void 0){var o=a(t);if(Qi){on(!0);try{a(t)}finally{on(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=cb.bind(null,De,e),[s.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:function(e){e=Yu(e);var t=e.queue,a=Xh.bind(null,De,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Fu,useDeferredValue:function(e,t){var a=nn();return Xu(a,e,t)},useTransition:function(){var e=Yu(!1);return e=Vh.bind(null,De,e.queue,!0,!1),nn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=De,o=nn();if(Xe){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),lt===null)throw Error(l(349));(Ge&127)!==0||vh(s,t,a)}o.memoizedState=a;var u={value:a,getSnapshot:t};return o.queue=u,jh(xh.bind(null,s,u,e),[e]),s.flags|=2048,Sr(9,{destroy:void 0},bh.bind(null,s,u,a,t),null),a},useId:function(){var e=nn(),t=lt.identifierPrefix;if(Xe){var a=la,s=sa;a=(s&~(1<<32-Lt(s)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ml++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ab++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Iu,useFormState:kh,useActionState:kh,useOptimistic:function(e){var t=nn();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ju.bind(null,De,!0,a),a.dispatch=t,[e,t]},useMemoCache:Qu,useCacheRefresh:function(){return nn().memoizedState=ub.bind(null,De)},useEffectEvent:function(e){var t=nn(),a={impl:e};return t.memoizedState=a,function(){if((et&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}},$u={readContext:Ft,use:Dl,useCallback:Hh,useContext:Ft,useEffect:Ku,useImperativeHandle:qh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:Qh,useReducer:jl,useRef:Dh,useState:function(){return jl(ka)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=At();return Gh(a,it.memoizedState,e,t)},useTransition:function(){var e=jl(ka)[0],t=At().memoizedState;return[typeof e=="boolean"?e:ps(e),t]},useSyncExternalStore:yh,useId:Kh,useHostTransitionStatus:Iu,useFormState:Nh,useActionState:Nh,useOptimistic:function(e,t){var a=At();return Eh(a,it,e,t)},useMemoCache:Qu,useCacheRefresh:Fh};$u.useEffectEvent=zh;var $h={readContext:Ft,use:Dl,useCallback:Hh,useContext:Ft,useEffect:Ku,useImperativeHandle:qh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:Qh,useReducer:Vu,useRef:Dh,useState:function(){return Vu(ka)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=At();return it===null?Xu(a,e,t):Gh(a,it.memoizedState,e,t)},useTransition:function(){var e=Vu(ka)[0],t=At().memoizedState;return[typeof e=="boolean"?e:ps(e),t]},useSyncExternalStore:yh,useId:Kh,useHostTransitionStatus:Iu,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var a=At();return it!==null?Eh(a,it,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Qu,useCacheRefresh:Fh};$h.useEffectEvent=zh;function Wu(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ec={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=Rn(),o=Xa(s);o.payload=t,a!=null&&(o.callback=a),t=Za(e,o,s),t!==null&&(pn(t,e,s),fs(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=Rn(),o=Xa(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Za(e,o,s),t!==null&&(pn(t,e,s),fs(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rn(),s=Xa(a);s.tag=2,t!=null&&(s.callback=t),t=Za(e,s,a),t!==null&&(pn(t,e,a),fs(t,e,a))}};function Wh(e,t,a,s,o,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,h):t.prototype&&t.prototype.isPureReactComponent?!as(a,s)||!as(o,u):!0}function em(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function Gi(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function tm(e){pl(e)}function nm(e){console.error(e)}function am(e){pl(e)}function Bl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function im(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function tc(e,t,a){return a=Xa(a),a.tag=3,a.payload={element:null},a.callback=function(){Bl(e,t)},a}function rm(e){return e=Xa(e),e.tag=3,e}function sm(e,t,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=s.value;e.payload=function(){return o(u)},e.callback=function(){im(t,a,s)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){im(t,a,s),typeof o!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function fb(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&hr(t,a,o,!0),a=wn.current,a!==null){switch(a.tag){case 31:case 13:return qn===null?Il():a.alternate===null&&wt===0&&(wt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===Cl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),Rc(e,s,o)),!1;case 22:return a.flags|=65536,s===Cl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),Rc(e,s,o)),!1}throw Error(l(435,a.tag))}return Rc(e,s,o),Il(),!1}if(Xe)return t=wn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==xu&&(e=Error(l(422),{cause:s}),ss(zn(e,a)))):(s!==xu&&(t=Error(l(423),{cause:s}),ss(zn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=zn(s,a),o=tc(e.stateNode,s,o),Mu(e,o),wt!==4&&(wt=2)),!1;var u=Error(l(520),{cause:s});if(u=zn(u,a),Cs===null?Cs=[u]:Cs.push(u),wt!==4&&(wt=2),t===null)return!0;s=zn(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=tc(a.stateNode,s,e),Mu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ti===null||!ti.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=rm(o),sm(o,e,a,s),Mu(a,o),!1}a=a.return}while(a!==null);return!1}var nc=Error(l(461)),Mt=!1;function Xt(e,t,a,s){t.child=e===null?ch(t,null,a,s):Hi(t,e.child,a,s)}function lm(e,t,a,s,o){a=a.render;var u=t.ref;if("ref"in s){var h={};for(var b in s)b!=="ref"&&(h[b]=s[b])}else h=s;return Li(t),s=Uu(e,t,a,h,u,o),b=Bu(),e!==null&&!Mt?(qu(e,t,o),Na(e,t,o)):(Xe&&b&&vu(t),t.flags|=1,Xt(e,t,s,o),t.child)}function om(e,t,a,s,o){if(e===null){var u=a.type;return typeof u=="function"&&!pu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,um(e,t,u,s,o)):(e=bl(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!cc(e,o)){var h=u.memoizedProps;if(a=a.compare,a=a!==null?a:as,a(h,s)&&e.ref===t.ref)return Na(e,t,o)}return t.flags|=1,e=Ta(u,s),e.ref=t.ref,e.return=t,t.child=e}function um(e,t,a,s,o){if(e!==null){var u=e.memoizedProps;if(as(u,s)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=s=u,cc(e,o))(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,Na(e,t,o)}return ac(e,t,a,s,o)}function cm(e,t,a,s){var o=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(s=t.child=e.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~u}else s=0,t.child=null;return fm(e,t,u,a,s)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&El(t,u!==null?u.cachePool:null),u!==null?hh(t,u):Du(),mh(t);else return s=t.lanes=536870912,fm(e,t,u!==null?u.baseLanes|a:a,a,s)}else u!==null?(El(t,u.cachePool),hh(t,u),Ja(),t.memoizedState=null):(e!==null&&El(t,null),Du(),Ja());return Xt(e,t,o,a),t.child}function vs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fm(e,t,a,s,o){var u=Au();return u=u===null?null:{parent:kt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&El(t,null),Du(),mh(t),e!==null&&hr(e,t,s,!0),t.childLanes=o,null}function ql(e,t){return t=Ql({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dm(e,t,a){return Hi(t,e.child,null,a),e=ql(t,t.pendingProps),e.flags|=2,En(t),t.memoizedState=null,e}function db(e,t,a){var s=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Xe){if(s.mode==="hidden")return e=ql(t,s),t.lanes=536870912,vs(null,e);if(zu(t),(e=ft)?(e=Tp(e,Bn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Va!==null?{id:sa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=Zd(e),a.return=t,t.child=a,Kt=t,ft=null)):e=null,e===null)throw Pa(t);return t.lanes=536870912,null}return ql(t,s)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(zu(t),o)if(t.flags&256)t.flags&=-257,t=dm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Mt||hr(e,t,a,!1),o=(a&e.childLanes)!==0,Mt||o){if(s=lt,s!==null&&(h=_(s,a),h!==0&&h!==u.retryLane))throw u.retryLane=h,Oi(e,h),pn(s,e,h),nc;Il(),t=dm(e,t,a)}else e=u.treeContext,ft=Hn(h.nextSibling),Kt=t,Xe=!0,Ya=null,Bn=!1,e!==null&&$d(t,e),t=ql(t,s),t.flags|=4096;return t}return e=Ta(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hl(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(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ac(e,t,a,s,o){return Li(t),a=Uu(e,t,a,s,void 0,o),s=Bu(),e!==null&&!Mt?(qu(e,t,o),Na(e,t,o)):(Xe&&s&&vu(t),t.flags|=1,Xt(e,t,a,o),t.child)}function hm(e,t,a,s,o,u){return Li(t),t.updateQueue=null,a=gh(t,s,a,o),ph(e),s=Bu(),e!==null&&!Mt?(qu(e,t,u),Na(e,t,u)):(Xe&&s&&vu(t),t.flags|=1,Xt(e,t,a,u),t.child)}function mm(e,t,a,s,o){if(Li(t),t.stateNode===null){var u=ur,h=a.contextType;typeof h=="object"&&h!==null&&(u=Ft(h)),u=new a(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ec,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},ku(t),h=a.contextType,u.context=typeof h=="object"&&h!==null?Ft(h):ur,u.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Wu(t,a,h,s),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&ec.enqueueReplaceState(u,u.state,null),hs(t,s,u,o),ds(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,E=Gi(a,b);u.props=E;var D=u.context,V=a.contextType;h=ur,typeof V=="object"&&V!==null&&(h=Ft(V));var Z=a.getDerivedStateFromProps;V=typeof Z=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,V||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||D!==h)&&em(t,u,s,h),Fa=!1;var j=t.memoizedState;u.state=j,hs(t,s,u,o),ds(),D=t.memoizedState,b||j!==D||Fa?(typeof Z=="function"&&(Wu(t,a,Z,s),D=t.memoizedState),(E=Fa||Wh(t,a,E,s,j,D,h))?(V||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=D),u.props=s,u.state=D,u.context=h,s=E):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,Nu(e,t),h=t.memoizedProps,V=Gi(a,h),u.props=V,Z=t.pendingProps,j=u.context,D=a.contextType,E=ur,typeof D=="object"&&D!==null&&(E=Ft(D)),b=a.getDerivedStateFromProps,(D=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==Z||j!==E)&&em(t,u,s,E),Fa=!1,j=t.memoizedState,u.state=j,hs(t,s,u,o),ds();var U=t.memoizedState;h!==Z||j!==U||Fa||e!==null&&e.dependencies!==null&&Sl(e.dependencies)?(typeof b=="function"&&(Wu(t,a,b,s),U=t.memoizedState),(V=Fa||Wh(t,a,V,s,j,U,E)||e!==null&&e.dependencies!==null&&Sl(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,U,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,U,E)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=U),u.props=s,u.state=U,u.context=E,s=V):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,Hl(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=Hi(t,e.child,null,o),t.child=Hi(t,null,a,o)):Xt(e,t,a,o),t.memoizedState=u.state,e=t.child):e=Na(e,t,o),e}function pm(e,t,a,s){return ji(),t.flags|=256,Xt(e,t,a,s),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rc(e){return{baseLanes:e,cachePool:ih()}}function sc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Cn),e}function gm(e,t,a){var s=t.pendingProps,o=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Rt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Xe){if(o?Ia(t):Ja(),(e=ft)?(e=Tp(e,Bn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Va!==null?{id:sa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=Zd(e),a.return=t,t.child=a,Kt=t,ft=null)):e=null,e===null)throw Pa(t);return Gc(e)?t.lanes=32:t.lanes=536870912,null}var b=s.children;return s=s.fallback,o?(Ja(),o=t.mode,b=Ql({mode:"hidden",children:b},o),s=Di(s,o,a,null),b.return=t,s.return=t,b.sibling=s,t.child=b,s=t.child,s.memoizedState=rc(a),s.childLanes=sc(e,h,a),t.memoizedState=ic,vs(null,s)):(Ia(t),lc(t,b))}var E=e.memoizedState;if(E!==null&&(b=E.dehydrated,b!==null)){if(u)t.flags&256?(Ia(t),t.flags&=-257,t=oc(e,t,a)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,t=null):(Ja(),b=s.fallback,o=t.mode,s=Ql({mode:"visible",children:s.children},o),b=Di(b,o,a,null),b.flags|=2,s.return=t,b.return=t,s.sibling=b,t.child=s,Hi(t,e.child,null,a),s=t.child,s.memoizedState=rc(a),s.childLanes=sc(e,h,a),t.memoizedState=ic,t=vs(null,s));else if(Ia(t),Gc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var D=h.dgst;h=D,s=Error(l(419)),s.stack="",s.digest=h,ss({value:s,source:null,stack:null}),t=oc(e,t,a)}else if(Mt||hr(e,t,a,!1),h=(a&e.childLanes)!==0,Mt||h){if(h=lt,h!==null&&(s=_(h,a),s!==0&&s!==E.retryLane))throw E.retryLane=s,Oi(e,s),pn(h,e,s),nc;Qc(b)||Il(),t=oc(e,t,a)}else Qc(b)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,ft=Hn(b.nextSibling),Kt=t,Xe=!0,Ya=null,Bn=!1,e!==null&&$d(t,e),t=lc(t,s.children),t.flags|=4096);return t}return o?(Ja(),b=s.fallback,o=t.mode,E=e.child,D=E.sibling,s=Ta(E,{mode:"hidden",children:s.children}),s.subtreeFlags=E.subtreeFlags&65011712,D!==null?b=Ta(D,b):(b=Di(b,o,a,null),b.flags|=2),b.return=t,s.return=t,s.sibling=b,t.child=s,vs(null,s),s=t.child,b=e.child.memoizedState,b===null?b=rc(a):(o=b.cachePool,o!==null?(E=kt._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=ih(),b={baseLanes:b.baseLanes|a,cachePool:o}),s.memoizedState=b,s.childLanes=sc(e,h,a),t.memoizedState=ic,vs(e.child,s)):(Ia(t),a=e.child,e=a.sibling,a=Ta(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function lc(e,t){return t=Ql({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ql(e,t){return e=Sn(22,e,null,t),e.lanes=0,e}function oc(e,t,a){return Hi(t,e.child,null,a),e=lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ym(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Eu(e.return,t,a)}function uc(e,t,a,s,o,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=s,h.tail=a,h.tailMode=o,h.treeForkCount=u)}function vm(e,t,a){var s=t.pendingProps,o=s.revealOrder,u=s.tail;s=s.children;var h=Rt.current,b=(h&2)!==0;if(b?(h=h&1|2,t.flags|=128):h&=1,H(Rt,h),Xt(e,t,s,a),s=Xe?rs:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ym(e,a,t);else if(e.tag===19)ym(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(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&kl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),uc(t,!1,o,a,u,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&kl(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}uc(t,!0,a,null,u,s);break;case"together":uc(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Na(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ei|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(hr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Ta(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ta(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Sl(e)))}function hb(e,t,a){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),Ka(t,kt,e.memoizedState.cache),ji();break;case 27:case 5:Gt(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:Ka(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zu(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Ia(t),t.flags|=128,null):(a&t.child.childLanes)!==0?gm(e,t,a):(Ia(t),e=Na(e,t,a),e!==null?e.sibling:null);Ia(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(hr(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return vm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(Rt,Rt.current),s)break;return null;case 22:return t.lanes=0,cm(e,t,a,t.pendingProps);case 24:Ka(t,kt,e.memoizedState.cache)}return Na(e,t,a)}function bm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Mt=!0;else{if(!cc(e,a)&&(t.flags&128)===0)return Mt=!1,hb(e,t,a);Mt=(e.flags&131072)!==0}else Mt=!1,Xe&&(t.flags&1048576)!==0&&Jd(t,rs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Bi(t.elementType),t.type=e,typeof e=="function")pu(e)?(s=Gi(e,s),t.tag=1,t=mm(null,t,e,s,a)):(t.tag=0,t=ac(null,t,e,s,a));else{if(e!=null){var o=e.$$typeof;if(o===he){t.tag=11,t=lm(null,t,e,s,a);break e}else if(o===A){t.tag=14,t=om(null,t,e,s,a);break e}}throw t=ze(e)||e,Error(l(306,t,""))}}return t;case 0:return ac(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=Gi(s,t.pendingProps),mm(e,t,s,o,a);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var u=t.memoizedState;o=u.element,Nu(e,t),hs(t,s,null,a);var h=t.memoizedState;if(s=h.cache,Ka(t,kt,s),s!==u.cache&&Tu(t,[kt],a,!0),ds(),s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=pm(e,t,s,a);break e}else if(s!==o){o=zn(Error(l(424)),t),ss(o),t=pm(e,t,s,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ft=Hn(e.firstChild),Kt=t,Xe=!0,Ya=null,Bn=!0,a=ch(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ji(),s===o){t=Na(e,t,a);break e}Xt(e,t,s,a)}t=t.child}return t;case 26:return Hl(e,t),e===null?(a=Np(t.type,null,t.pendingProps,null))?t.memoizedState=a:Xe||(a=t.type,e=t.pendingProps,s=ao($.current).createElement(a),s[re]=t,s[le]=e,Zt(s,a,e),mt(s),t.stateNode=s):t.memoizedState=Np(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Gt(t),e===null&&Xe&&(s=t.stateNode=Ap(t.type,t.pendingProps,$.current),Kt=t,Bn=!0,o=ft,ri(t.type)?(Vc=o,ft=Hn(s.firstChild)):ft=o),Xt(e,t,t.pendingProps.children,a),Hl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Xe&&((o=s=ft)&&(s=Vb(s,t.type,t.pendingProps,Bn),s!==null?(t.stateNode=s,Kt=t,ft=Hn(s.firstChild),Bn=!1,o=!0):o=!1),o||Pa(t)),Gt(t),o=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,s=u.children,Bc(o,u)?s=null:h!==null&&Bc(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=Uu(e,t,ib,null,null,a),Ds._currentValue=o),Hl(e,t),Xt(e,t,s,a),t.child;case 6:return e===null&&Xe&&((e=a=ft)&&(a=Yb(a,t.pendingProps,Bn),a!==null?(t.stateNode=a,Kt=t,ft=null,e=!0):e=!1),e||Pa(t)),null;case 13:return gm(e,t,a);case 4:return Te(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Hi(t,null,s,a):Xt(e,t,s,a),t.child;case 11:return lm(e,t,t.type,t.pendingProps,a);case 7:return Xt(e,t,t.pendingProps,a),t.child;case 8:return Xt(e,t,t.pendingProps.children,a),t.child;case 12:return Xt(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Ka(t,t.type,s.value),Xt(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Li(t),o=Ft(o),s=s(o),t.flags|=1,Xt(e,t,s,a),t.child;case 14:return om(e,t,t.type,t.pendingProps,a);case 15:return um(e,t,t.type,t.pendingProps,a);case 19:return vm(e,t,a);case 31:return db(e,t,a);case 22:return cm(e,t,a,t.pendingProps);case 24:return Li(t),s=Ft(kt),e===null?(o=Au(),o===null&&(o=lt,u=Cu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),t.memoizedState={parent:s,cache:o},ku(t),Ka(t,kt,o)):((e.lanes&a)!==0&&(Nu(e,t),hs(t,null,null,a),ds()),o=e.memoizedState,u=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ka(t,kt,s)):(s=u.cache,Ka(t,kt,s),s!==o.cache&&Tu(t,[kt],a,!0))),Xt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Ma(e){e.flags|=4}function fc(e,t,a,s,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Km())e.flags|=8192;else throw qi=Cl,_u}else e.flags&=-16777217}function xm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zp(t))if(Km())e.flags|=8192;else throw qi=Cl,_u}function Gl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tt():536870912,e.lanes|=t,Cr|=t)}function bs(e,t){if(!Xe)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 s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function mb(e,t,a){var s=t.pendingProps;switch(bu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(t),null;case 1:return dt(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Aa(kt),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(dr(t)?Ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Su())),dt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Ma(t),u!==null?(dt(t),xm(t,u)):(dt(t),fc(t,o,null,s,a))):u?u!==e.memoizedState?(Ma(t),dt(t),xm(t,u)):(dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Ma(t),dt(t),fc(t,o,e,s,a)),null;case 27:if(en(t),a=$.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ma(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return dt(t),null}e=I.current,dr(t)?Wd(t):(e=Ap(o,s,a),t.stateNode=e,Ma(t))}return dt(t),null;case 5:if(en(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ma(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return dt(t),null}if(u=I.current,dr(t))Wd(t);else{var h=ao($.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?h.createElement("select",{is:s.is}):h.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?h.createElement(o,{is:s.is}):h.createElement(o)}}u[re]=t,u[le]=s;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(Zt(u,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Ma(t)}}return dt(t),fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Ma(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=$.current,dr(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=Kt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[re]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||gp(e.nodeValue,a)),e||Pa(t,!0)}else e=ao(e).createTextNode(s),e[re]=t,t.stateNode=e}return dt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(s=dr(t),a!==null){if(e===null){if(!s)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[re]=t}else ji(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;dt(t),e=!1}else a=Su(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(En(t),t):(En(t),null);if((t.flags&128)!==0)throw Error(l(558))}return dt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=dr(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[re]=t}else ji(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;dt(t),o=!1}else o=Su(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(En(t),t):(En(t),null)}return En(t),(t.flags&128)!==0?(t.lanes=a,t):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==o&&(s.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Gl(t,t.updateQueue),dt(t),null);case 4:return Be(),e===null&&Dc(t.stateNode.containerInfo),dt(t),null;case 10:return Aa(t.type),dt(t),null;case 19:if(q(Rt),s=t.memoizedState,s===null)return dt(t),null;if(o=(t.flags&128)!==0,u=s.rendering,u===null)if(o)bs(s,!1);else{if(wt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=kl(e),u!==null){for(t.flags|=128,bs(s,!1),e=u.updateQueue,t.updateQueue=e,Gl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Xd(a,e),a=a.sibling;return H(Rt,Rt.current&1|2),Xe&&Ca(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&gt()>Fl&&(t.flags|=128,o=!0,bs(s,!1),t.lanes=4194304)}else{if(!o)if(e=kl(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Gl(t,e),bs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Xe)return dt(t),null}else 2*gt()-s.renderingStartTime>Fl&&a!==536870912&&(t.flags|=128,o=!0,bs(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=gt(),e.sibling=null,a=Rt.current,H(Rt,o?a&1|2:a&1),Xe&&Ca(t,s.treeForkCount),e):(dt(t),null);case 22:case 23:return En(t),ju(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(dt(t),t.subtreeFlags&6&&(t.flags|=8192)):dt(t),a=t.updateQueue,a!==null&&Gl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&q(Ui),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Aa(kt),dt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function pb(e,t){switch(bu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Aa(kt),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return en(t),null;case 31:if(t.memoizedState!==null){if(En(t),t.alternate===null)throw Error(l(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(En(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Rt),null;case 4:return Be(),null;case 10:return Aa(t.type),null;case 22:case 23:return En(t),ju(),e!==null&&q(Ui),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Aa(kt),null;case 25:return null;default:return null}}function Sm(e,t){switch(bu(t),t.tag){case 3:Aa(kt),Be();break;case 26:case 27:case 5:en(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&En(t);break;case 13:En(t);break;case 19:q(Rt);break;case 10:Aa(t.type);break;case 22:case 23:En(t),ju(),e!==null&&q(Ui);break;case 24:Aa(kt)}}function xs(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){s=void 0;var u=a.create,h=a.inst;s=u(),h.destroy=s}a=a.next}while(a!==o)}}catch(b){at(t,t.return,b)}}function $a(e,t,a){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&e)===e){var h=s.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,o=t;var E=a,D=b;try{D()}catch(V){at(o,E,V)}}}s=s.next}while(s!==u)}}catch(V){at(t,t.return,V)}}function wm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{dh(t,a)}catch(s){at(e,e.return,s)}}}function Em(e,t,a){a.props=Gi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){at(e,t,s)}}function Ss(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(o){at(e,t,o)}}function oa(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){at(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){at(e,t,o)}else a.current=null}function Tm(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){at(e,e.return,o)}}function dc(e,t,a){try{var s=e.stateNode;Ub(s,e.type,a,t),s[le]=t}catch(o){at(e,e.return,o)}}function Cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ri(e.type)||e.tag===4}function hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cm(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&&ri(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 mc(e,t,a){var s=e.tag;if(s===5||s===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=wa));else if(s!==4&&(s===27&&ri(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(mc(e,t,a),e=e.sibling;e!==null;)mc(e,t,a),e=e.sibling}function Vl(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&ri(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vl(e,t,a),e=e.sibling;e!==null;)Vl(e,t,a),e=e.sibling}function Rm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Zt(t,s,a),t[re]=e,t[le]=a}catch(u){at(e,e.return,u)}}var Oa=!1,Ot=!1,pc=!1,Am=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function gb(e,t){if(e=e.containerInfo,Lc=co,e=qd(e),ou(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var h=0,b=-1,E=-1,D=0,V=0,Z=e,j=null;t:for(;;){for(var U;Z!==a||o!==0&&Z.nodeType!==3||(b=h+o),Z!==u||s!==0&&Z.nodeType!==3||(E=h+s),Z.nodeType===3&&(h+=Z.nodeValue.length),(U=Z.firstChild)!==null;)j=Z,Z=U;for(;;){if(Z===e)break t;if(j===a&&++D===o&&(b=h),j===u&&++V===s&&(E=h),(U=Z.nextSibling)!==null)break;Z=j,j=Z.parentNode}Z=U}a=b===-1||E===-1?null:{start:b,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uc={focusedElem:e,selectionRange:a},co=!1,Qt=t;Qt!==null;)if(t=Qt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qt=e;else for(;Qt!==null;){switch(t=Qt,u=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++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,o=u.memoizedProps,u=u.memoizedState,s=a.stateNode;try{var oe=Gi(a.type,o);e=s.getSnapshotBeforeUpdate(oe,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(Re){at(a,a.return,Re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Hc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hc(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,Qt=e;break}Qt=t.return}}function _m(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ja(e,a),s&4&&xs(5,a);break;case 1:if(ja(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){at(a,a.return,h)}else{var o=Gi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){at(a,a.return,h)}}s&64&&wm(a),s&512&&Ss(a,a.return);break;case 3:if(ja(e,a),s&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{dh(e,t)}catch(h){at(a,a.return,h)}}break;case 27:t===null&&s&4&&Rm(a);case 26:case 5:ja(e,a),t===null&&s&4&&Tm(a),s&512&&Ss(a,a.return);break;case 12:ja(e,a);break;case 31:ja(e,a),s&4&&Mm(e,a);break;case 13:ja(e,a),s&4&&Om(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Cb.bind(null,a),Pb(e,a))));break;case 22:if(s=a.memoizedState!==null||Oa,!s){t=t!==null&&t.memoizedState!==null||Ot,o=Oa;var u=Ot;Oa=s,(Ot=t)&&!u?za(e,a,(a.subtreeFlags&8772)!==0):ja(e,a),Oa=o,Ot=u}break;case 30:break;default:ja(e,a)}}function km(e){var t=e.alternate;t!==null&&(e.alternate=null,km(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bt(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 pt=null,fn=!1;function Da(e,t,a){for(a=a.child;a!==null;)Nm(e,t,a),a=a.sibling}function Nm(e,t,a){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(va,a)}catch{}switch(a.tag){case 26:Ot||oa(a,t),Da(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ot||oa(a,t);var s=pt,o=fn;ri(a.type)&&(pt=a.stateNode,fn=!1),Da(e,t,a),Ns(a.stateNode),pt=s,fn=o;break;case 5:Ot||oa(a,t);case 6:if(s=pt,o=fn,pt=null,Da(e,t,a),pt=s,fn=o,pt!==null)if(fn)try{(pt.nodeType===9?pt.body:pt.nodeName==="HTML"?pt.ownerDocument.body:pt).removeChild(a.stateNode)}catch(u){at(a,t,u)}else try{pt.removeChild(a.stateNode)}catch(u){at(a,t,u)}break;case 18:pt!==null&&(fn?(e=pt,wp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Dr(e)):wp(pt,a.stateNode));break;case 4:s=pt,o=fn,pt=a.stateNode.containerInfo,fn=!0,Da(e,t,a),pt=s,fn=o;break;case 0:case 11:case 14:case 15:$a(2,a,t),Ot||$a(4,a,t),Da(e,t,a);break;case 1:Ot||(oa(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Em(a,t,s)),Da(e,t,a);break;case 21:Da(e,t,a);break;case 22:Ot=(s=Ot)||a.memoizedState!==null,Da(e,t,a),Ot=s;break;default:Da(e,t,a)}}function Mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dr(e)}catch(a){at(t,t.return,a)}}}function Om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dr(e)}catch(a){at(t,t.return,a)}}function yb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Am),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Am),t;default:throw Error(l(435,e.tag))}}function Yl(e,t){var a=yb(e);t.forEach(function(s){if(!a.has(s)){a.add(s);var o=Rb.bind(null,e,s);s.then(o,o)}})}function dn(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],u=e,h=t,b=h;e:for(;b!==null;){switch(b.tag){case 27:if(ri(b.type)){pt=b.stateNode,fn=!1;break e}break;case 5:pt=b.stateNode,fn=!1;break e;case 3:case 4:pt=b.stateNode.containerInfo,fn=!0;break e}b=b.return}if(pt===null)throw Error(l(160));Nm(u,h,o),pt=null,fn=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dm(t,e),t=t.sibling}var ea=null;function Dm(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dn(t,e),hn(e),s&4&&($a(3,e,e.return),xs(3,e),$a(5,e,e.return));break;case 1:dn(t,e),hn(e),s&512&&(Ot||a===null||oa(a,a.return)),s&64&&Oa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=ea;if(dn(t,e),hn(e),s&512&&(Ot||a===null||oa(a,a.return)),s&4){var u=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":u=o.getElementsByTagName("title")[0],(!u||u[yt]||u[re]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(s),o.head.insertBefore(u,o.querySelector("head > title"))),Zt(u,s,a),u[re]=e,mt(u),s=u;break e;case"link":var h=Dp("link","href",o).get(s+(a.href||""));if(h){for(var b=0;b<h.length;b++)if(u=h[b],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(b,1);break t}}u=o.createElement(s),Zt(u,s,a),o.head.appendChild(u);break;case"meta":if(h=Dp("meta","content",o).get(s+(a.content||""))){for(b=0;b<h.length;b++)if(u=h[b],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(b,1);break t}}u=o.createElement(s),Zt(u,s,a),o.head.appendChild(u);break;default:throw Error(l(468,s))}u[re]=e,mt(u),s=u}e.stateNode=s}else jp(o,e.type,e.stateNode);else e.stateNode=Op(o,s,e.memoizedProps);else u!==s?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,s===null?jp(o,e.type,e.stateNode):Op(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&dc(e,e.memoizedProps,a.memoizedProps)}break;case 27:dn(t,e),hn(e),s&512&&(Ot||a===null||oa(a,a.return)),a!==null&&s&4&&dc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(dn(t,e),hn(e),s&512&&(Ot||a===null||oa(a,a.return)),e.flags&32){o=e.stateNode;try{nr(o,"")}catch(oe){at(e,e.return,oe)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,dc(e,o,a!==null?a.memoizedProps:o)),s&1024&&(pc=!0);break;case 6:if(dn(t,e),hn(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(oe){at(e,e.return,oe)}}break;case 3:if(so=null,o=ea,ea=io(t.containerInfo),dn(t,e),ea=o,hn(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Dr(t.containerInfo)}catch(oe){at(e,e.return,oe)}pc&&(pc=!1,jm(e));break;case 4:s=ea,ea=io(e.stateNode.containerInfo),dn(t,e),hn(e),ea=s;break;case 12:dn(t,e),hn(e);break;case 31:dn(t,e),hn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Yl(e,s)));break;case 13:dn(t,e),hn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Kl=gt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Yl(e,s)));break;case 22:o=e.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,D=Oa,V=Ot;if(Oa=D||o,Ot=V||E,dn(t,e),Ot=V,Oa=D,hn(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||E||Oa||Ot||Vi(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){E=a=t;try{if(u=E.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=E.stateNode;var Z=E.memoizedProps.style,j=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;b.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(oe){at(E,E.return,oe)}}}else if(t.tag===6){if(a===null){E=t;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(oe){at(E,E.return,oe)}}}else if(t.tag===18){if(a===null){E=t;try{var U=E.stateNode;o?Ep(U,!0):Ep(E.stateNode,!1)}catch(oe){at(E,E.return,oe)}}}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}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Yl(e,a))));break;case 19:dn(t,e),hn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Yl(e,s)));break;case 30:break;case 21:break;default:dn(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(Cm(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,u=hc(e);Vl(e,u,o);break;case 5:var h=a.stateNode;a.flags&32&&(nr(h,""),a.flags&=-33);var b=hc(e);Vl(e,b,h);break;case 3:case 4:var E=a.stateNode.containerInfo,D=hc(e);mc(e,D,E);break;default:throw Error(l(161))}}catch(V){at(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ja(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_m(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$a(4,t,t.return),Vi(t);break;case 1:oa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Em(t,t.return,a),Vi(t);break;case 27:Ns(t.stateNode);case 26:case 5:oa(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function za(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:za(o,u,a),xs(4,u);break;case 1:if(za(o,u,a),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){at(s,s.return,D)}if(s=u,o=s.updateQueue,o!==null){var b=s.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)fh(E[o],b)}catch(D){at(s,s.return,D)}}a&&h&64&&wm(u),Ss(u,u.return);break;case 27:Rm(u);case 26:case 5:za(o,u,a),a&&s===null&&h&4&&Tm(u),Ss(u,u.return);break;case 12:za(o,u,a);break;case 31:za(o,u,a),a&&h&4&&Mm(o,u);break;case 13:za(o,u,a),a&&h&4&&Om(o,u);break;case 22:u.memoizedState===null&&za(o,u,a),Ss(u,u.return);break;case 30:break;default:za(o,u,a)}t=t.sibling}}function gc(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&&ls(a))}function yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ls(e))}function ta(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zm(e,t,a,s),t=t.sibling}function zm(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ta(e,t,a,s),o&2048&&xs(9,t);break;case 1:ta(e,t,a,s);break;case 3:ta(e,t,a,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ls(e)));break;case 12:if(o&2048){ta(e,t,a,s),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,b=u.onPostCommit;typeof b=="function"&&b(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){at(t,t.return,E)}}else ta(e,t,a,s);break;case 31:ta(e,t,a,s);break;case 13:ta(e,t,a,s);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?ta(e,t,a,s):ws(e,t):u._visibility&2?ta(e,t,a,s):(u._visibility|=2,wr(e,t,a,s,(t.subtreeFlags&10256)!==0||!1)),o&2048&&gc(h,t);break;case 24:ta(e,t,a,s),o&2048&&yc(t.alternate,t);break;default:ta(e,t,a,s)}}function wr(e,t,a,s,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,b=a,E=s,D=h.flags;switch(h.tag){case 0:case 11:case 15:wr(u,h,b,E,o),xs(8,h);break;case 23:break;case 22:var V=h.stateNode;h.memoizedState!==null?V._visibility&2?wr(u,h,b,E,o):ws(u,h):(V._visibility|=2,wr(u,h,b,E,o)),o&&D&2048&&gc(h.alternate,h);break;case 24:wr(u,h,b,E,o),o&&D&2048&&yc(h.alternate,h);break;default:wr(u,h,b,E,o)}t=t.sibling}}function ws(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,o=s.flags;switch(s.tag){case 22:ws(a,s),o&2048&&gc(s.alternate,s);break;case 24:ws(a,s),o&2048&&yc(s.alternate,s);break;default:ws(a,s)}t=t.sibling}}var Es=8192;function Er(e,t,a){if(e.subtreeFlags&Es)for(e=e.child;e!==null;)Lm(e,t,a),e=e.sibling}function Lm(e,t,a){switch(e.tag){case 26:Er(e,t,a),e.flags&Es&&e.memoizedState!==null&&a1(a,ea,e.memoizedState,e.memoizedProps);break;case 5:Er(e,t,a);break;case 3:case 4:var s=ea;ea=io(e.stateNode.containerInfo),Er(e,t,a),ea=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Es,Es=16777216,Er(e,t,a),Es=s):Er(e,t,a));break;default:Er(e,t,a)}}function Um(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 Ts(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];Qt=s,qm(s,e)}Um(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bm(e),e=e.sibling}function Bm(e){switch(e.tag){case 0:case 11:case 15:Ts(e),e.flags&2048&&$a(9,e,e.return);break;case 3:Ts(e);break;case 12:Ts(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pl(e)):Ts(e);break;default:Ts(e)}}function Pl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];Qt=s,qm(s,e)}Um(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$a(8,t,t.return),Pl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Pl(t));break;default:Pl(t)}e=e.sibling}}function qm(e,t){for(;Qt!==null;){var a=Qt;switch(a.tag){case 0:case 11:case 15:$a(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ls(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,Qt=s;else e:for(a=e;Qt!==null;){s=Qt;var o=s.sibling,u=s.return;if(km(s),s===a){Qt=null;break e}if(o!==null){o.return=u,Qt=o;break e}Qt=u}}}var vb={getCacheForType:function(e){var t=Ft(kt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ft(kt).controller.signal}},bb=typeof WeakMap=="function"?WeakMap:Map,et=0,lt=null,He=null,Ge=0,nt=0,Tn=null,Wa=!1,Tr=!1,vc=!1,La=0,wt=0,ei=0,Yi=0,bc=0,Cn=0,Cr=0,Cs=null,mn=null,xc=!1,Kl=0,Hm=0,Fl=1/0,Xl=null,ti=null,Ut=0,ni=null,Rr=null,Ua=0,Sc=0,wc=null,Qm=null,Rs=0,Ec=null;function Rn(){return(et&2)!==0&&Ge!==0?Ge&-Ge:k.T!==null?kc():te()}function Gm(){if(Cn===0)if((Ge&536870912)===0||Xe){var e=ba;ba<<=1,(ba&3932160)===0&&(ba=262144),Cn=e}else Cn=536870912;return e=wn.current,e!==null&&(e.flags|=32),Cn}function pn(e,t,a){(e===lt&&(nt===2||nt===9)||e.cancelPendingCommit!==null)&&(Ar(e,0),ai(e,Ge,Cn,!1)),ut(e,a),((et&2)===0||e!==lt)&&(e===lt&&((et&2)===0&&(Yi|=a),wt===4&&ai(e,Ge,Cn,!1)),ua(e))}function Vm(e,t,a){if((et&6)!==0)throw Error(l(327));var s=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ot(e,t),o=s?wb(e,t):Cc(e,t,!0),u=s;do{if(o===0){Tr&&!s&&ai(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!xb(a)){o=Cc(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var b=e;o=Cs;var E=b.current.memoizedState.isDehydrated;if(E&&(Ar(b,h).flags|=256),h=Cc(b,h,!1),h!==2){if(vc&&!E){b.errorRecoveryDisabledLanes|=u,Yi|=u,o=4;break e}u=mn,mn=o,u!==null&&(mn===null?mn=u:mn.push.apply(mn,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){Ar(e,0),ai(e,t,0,!0);break}e:{switch(s=e,u=o,u){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:ai(s,t,Cn,!Wa);break e;case 2:mn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Kl+300-gt(),10<o)){if(ai(s,t,Cn,!Wa),_e(s,0,!0)!==0)break e;Ua=t,s.timeoutHandle=xp(Ym.bind(null,s,a,mn,Xl,xc,t,Cn,Yi,Cr,Wa,u,"Throttled",-0,0),o);break e}Ym(s,a,mn,Xl,xc,t,Cn,Yi,Cr,Wa,u,null,-0,0)}}break}while(!0);ua(e)}function Ym(e,t,a,s,o,u,h,b,E,D,V,Z,j,U){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wa},Lm(t,u,Z);var oe=(u&62914560)===u?Kl-gt():(u&4194048)===u?Hm-gt():0;if(oe=i1(Z,oe),oe!==null){Ua=u,e.cancelPendingCommit=oe($m.bind(null,e,t,u,a,s,o,h,b,E,V,Z,null,j,U)),ai(e,u,h,!D);return}}$m(e,t,u,a,s,o,h,b,E)}function xb(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 s=0;s<a.length;s++){var o=a[s],u=o.getSnapshot;o=o.value;try{if(!xn(u(),o))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 ai(e,t,a,s){t&=~bc,t&=~Yi,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var u=31-Lt(o),h=1<<u;s[u]=-1,o&=~h}a!==0&&xa(e,a,t)}function Zl(){return(et&6)===0?(As(0),!1):!0}function Tc(){if(He!==null){if(nt===0)var e=He.return;else e=He,Ra=zi=null,Hu(e),yr=null,us=0,e=He;for(;e!==null;)Sm(e.alternate,e),e=e.return;He=null}}function Ar(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Hb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ua=0,Tc(),lt=e,He=a=Ta(e.current,null),Ge=t,nt=0,Tn=null,Wa=!1,Tr=ot(e,t),vc=!1,Cr=Cn=bc=Yi=ei=wt=0,mn=Cs=null,xc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-Lt(s),u=1<<o;t|=e[o],s&=~u}return La=t,gl(),a}function Pm(e,t){De=null,k.H=ys,t===gr||t===Tl?(t=lh(),nt=3):t===_u?(t=lh(),nt=4):nt=t===nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tn=t,He===null&&(wt=1,Bl(e,zn(t,e.current)))}function Km(){var e=wn.current;return e===null?!0:(Ge&4194048)===Ge?qn===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===qn:!1}function Fm(){var e=k.H;return k.H=ys,e===null?ys:e}function Xm(){var e=k.A;return k.A=vb,e}function Il(){wt=4,Wa||(Ge&4194048)!==Ge&&wn.current!==null||(Tr=!0),(ei&134217727)===0&&(Yi&134217727)===0||lt===null||ai(lt,Ge,Cn,!1)}function Cc(e,t,a){var s=et;et|=2;var o=Fm(),u=Xm();(lt!==e||Ge!==t)&&(Xl=null,Ar(e,t)),t=!1;var h=wt;e:do try{if(nt!==0&&He!==null){var b=He,E=Tn;switch(nt){case 8:Tc(),h=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(t=!0);var D=nt;if(nt=0,Tn=null,_r(e,b,E,D),a&&Tr){h=0;break e}break;default:D=nt,nt=0,Tn=null,_r(e,b,E,D)}}Sb(),h=wt;break}catch(V){Pm(e,V)}while(!0);return t&&e.shellSuspendCounter++,Ra=zi=null,et=s,k.H=o,k.A=u,He===null&&(lt=null,Ge=0,gl()),h}function Sb(){for(;He!==null;)Zm(He)}function wb(e,t){var a=et;et|=2;var s=Fm(),o=Xm();lt!==e||Ge!==t?(Xl=null,Fl=gt()+500,Ar(e,t)):Tr=ot(e,t);e:do try{if(nt!==0&&He!==null){t=He;var u=Tn;t:switch(nt){case 1:nt=0,Tn=null,_r(e,t,u,1);break;case 2:case 9:if(rh(u)){nt=0,Tn=null,Im(t);break}t=function(){nt!==2&&nt!==9||lt!==e||(nt=7),ua(e)},u.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:rh(u)?(nt=0,Tn=null,Im(t)):(nt=0,Tn=null,_r(e,t,u,7));break;case 5:var h=null;switch(He.tag){case 26:h=He.memoizedState;case 5:case 27:var b=He;if(h?zp(h):b.stateNode.complete){nt=0,Tn=null;var E=b.sibling;if(E!==null)He=E;else{var D=b.return;D!==null?(He=D,Jl(D)):He=null}break t}}nt=0,Tn=null,_r(e,t,u,5);break;case 6:nt=0,Tn=null,_r(e,t,u,6);break;case 8:Tc(),wt=6;break e;default:throw Error(l(462))}}Eb();break}catch(V){Pm(e,V)}while(!0);return Ra=zi=null,k.H=s,k.A=o,et=a,He!==null?0:(lt=null,Ge=0,gl(),wt)}function Eb(){for(;He!==null&&!Vt();)Zm(He)}function Zm(e){var t=bm(e.alternate,e,La);e.memoizedProps=e.pendingProps,t===null?Jl(e):He=t}function Im(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=hm(a,t,t.pendingProps,t.type,void 0,Ge);break;case 11:t=hm(a,t,t.pendingProps,t.type.render,t.ref,Ge);break;case 5:Hu(t);default:Sm(a,t),t=He=Xd(t,La),t=bm(a,t,La)}e.memoizedProps=e.pendingProps,t===null?Jl(e):He=t}function _r(e,t,a,s){Ra=zi=null,Hu(t),yr=null,us=0;var o=t.return;try{if(fb(e,o,t,a,Ge)){wt=1,Bl(e,zn(a,e.current)),He=null;return}}catch(u){if(o!==null)throw He=o,u;wt=1,Bl(e,zn(a,e.current)),He=null;return}t.flags&32768?(Xe||s===1?e=!0:Tr||(Ge&536870912)!==0?e=!1:(Wa=e=!0,(s===2||s===9||s===3||s===6)&&(s=wn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Jm(t,e)):Jl(t)}function Jl(e){var t=e;do{if((t.flags&32768)!==0){Jm(t,Wa);return}e=t.return;var a=mb(t.alternate,t,La);if(a!==null){He=a;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);wt===0&&(wt=5)}function Jm(e,t){do{var a=pb(e.alternate,e);if(a!==null){a.flags&=32767,He=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){He=e;return}He=e=a}while(e!==null);wt=6,He=null}function $m(e,t,a,s,o,u,h,b,E){e.cancelPendingCommit=null;do $l();while(Ut!==0);if((et&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(u=t.lanes|t.childLanes,u|=hu,Jt(e,a,u,h,b,E),e===lt&&(He=lt=null,Ge=0),Rr=t,ni=e,Ua=a,Sc=u,wc=o,Qm=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ab(Yt,function(){return ap(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=k.T,k.T=null,o=X.p,X.p=2,h=et,et|=4;try{gb(e,t,a)}finally{et=h,X.p=o,k.T=s}}Ut=1,Wm(),ep(),tp()}}function Wm(){if(Ut===1){Ut=0;var e=ni,t=Rr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var s=X.p;X.p=2;var o=et;et|=4;try{Dm(t,e);var u=Uc,h=qd(e.containerInfo),b=u.focusedElem,E=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&Bd(b.ownerDocument.documentElement,b)){if(E!==null&&ou(b)){var D=E.start,V=E.end;if(V===void 0&&(V=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(V,b.value.length);else{var Z=b.ownerDocument||document,j=Z&&Z.defaultView||window;if(j.getSelection){var U=j.getSelection(),oe=b.textContent.length,Re=Math.min(E.start,oe),st=E.end===void 0?Re:Math.min(E.end,oe);!U.extend&&Re>st&&(h=st,st=Re,Re=h);var M=Ud(b,Re),R=Ud(b,st);if(M&&R&&(U.rangeCount!==1||U.anchorNode!==M.node||U.anchorOffset!==M.offset||U.focusNode!==R.node||U.focusOffset!==R.offset)){var O=Z.createRange();O.setStart(M.node,M.offset),U.removeAllRanges(),Re>st?(U.addRange(O),U.extend(R.node,R.offset)):(O.setEnd(R.node,R.offset),U.addRange(O))}}}}for(Z=[],U=b;U=U.parentNode;)U.nodeType===1&&Z.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Z.length;b++){var F=Z[b];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}co=!!Lc,Uc=Lc=null}finally{et=o,X.p=s,k.T=a}}e.current=t,Ut=2}}function ep(){if(Ut===2){Ut=0;var e=ni,t=Rr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var s=X.p;X.p=2;var o=et;et|=4;try{_m(e,t.alternate,t)}finally{et=o,X.p=s,k.T=a}}Ut=3}}function tp(){if(Ut===4||Ut===3){Ut=0,ia();var e=ni,t=Rr,a=Ua,s=Qm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ut=5:(Ut=0,Rr=ni=null,np(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ti=null),J(a),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(va,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=k.T,o=X.p,X.p=2,k.T=null;try{for(var u=e.onRecoverableError,h=0;h<s.length;h++){var b=s[h];u(b.value,{componentStack:b.stack})}}finally{k.T=t,X.p=o}}(Ua&3)!==0&&$l(),ua(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Ec?Rs++:(Rs=0,Ec=e):Rs=0,As(0)}}function np(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ls(t)))}function $l(){return Wm(),ep(),tp(),ap()}function ap(){if(Ut!==5)return!1;var e=ni,t=Sc;Sc=0;var a=J(Ua),s=k.T,o=X.p;try{X.p=32>a?32:a,k.T=null,a=wc,wc=null;var u=ni,h=Ua;if(Ut=0,Rr=ni=null,Ua=0,(et&6)!==0)throw Error(l(331));var b=et;if(et|=4,Bm(u.current),zm(u,u.current,h,a),et=b,As(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(va,u)}catch{}return!0}finally{X.p=o,k.T=s,np(e,t)}}function ip(e,t,a){t=zn(a,t),t=tc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(ut(e,2),ua(e))}function at(e,t,a){if(e.tag===3)ip(e,e,a);else for(;t!==null;){if(t.tag===3){ip(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ti===null||!ti.has(s))){e=zn(a,e),a=rm(2),s=Za(t,a,2),s!==null&&(sm(a,s,t,e),ut(s,2),ua(s));break}}t=t.return}}function Rc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new bb;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(a)||(vc=!0,o.add(a),e=Tb.bind(null,e,t,a),t.then(e,e))}function Tb(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,lt===e&&(Ge&a)===a&&(wt===4||wt===3&&(Ge&62914560)===Ge&&300>gt()-Kl?(et&2)===0&&Ar(e,0):bc|=a,Cr===Ge&&(Cr=0)),ua(e)}function rp(e,t){t===0&&(t=Tt()),e=Oi(e,t),e!==null&&(ut(e,t),ua(e))}function Cb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),rp(e,a)}function Rb(e,t){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(t),rp(e,a)}function Ab(e,t){return Ei(e,t)}var Wl=null,kr=null,Ac=!1,eo=!1,_c=!1,ii=0;function ua(e){e!==kr&&e.next===null&&(kr===null?Wl=kr=e:kr=kr.next=e),eo=!0,Ac||(Ac=!0,kb())}function As(e,t){if(!_c&&eo){_c=!0;do for(var a=!1,s=Wl;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var u=0;else{var h=s.suspendedLanes,b=s.pingedLanes;u=(1<<31-Lt(42|e)+1)-1,u&=o&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,up(s,u))}else u=Ge,u=_e(s,s===lt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||ot(s,u)||(a=!0,up(s,u));s=s.next}while(a);_c=!1}}function _b(){sp()}function sp(){eo=Ac=!1;var e=0;ii!==0&&qb()&&(e=ii);for(var t=gt(),a=null,s=Wl;s!==null;){var o=s.next,u=lp(s,t);u===0?(s.next=null,a===null?Wl=o:a.next=o,o===null&&(kr=a)):(a=s,(e!==0||(u&3)!==0)&&(eo=!0)),s=o}Ut!==0&&Ut!==5||As(e),ii!==0&&(ii=0)}function lp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-Lt(u),b=1<<h,E=o[h];E===-1?((b&a)===0||(b&s)!==0)&&(o[h]=Et(b,t)):E<=t&&(e.expiredLanes|=b),u&=~b}if(t=lt,a=Ge,a=_e(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(nt===2||nt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ti(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ot(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&Ti(s),J(a)){case 2:case 8:a=Qa;break;case 32:a=Yt;break;case 268435456:a=kn;break;default:a=Yt}return s=op.bind(null,e),a=Ei(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&Ti(s),e.callbackPriority=2,e.callbackNode=null,2}function op(e,t){if(Ut!==0&&Ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if($l()&&e.callbackNode!==a)return null;var s=Ge;return s=_e(e,e===lt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Vm(e,s,t),lp(e,gt()),e.callbackNode!=null&&e.callbackNode===a?op.bind(null,e):null)}function up(e,t){if($l())return null;Vm(e,t,!0)}function kb(){Qb(function(){(et&6)!==0?Ei(ra,_b):sp()})}function kc(){if(ii===0){var e=mr;e===0&&(e=Xn,Xn<<=1,(Xn&261888)===0&&(Xn=256)),ii=e}return ii}function cp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ol(""+e)}function fp(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 Nb(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var u=cp((o[le]||null).action),h=s.submitter;h&&(t=(t=h[le]||null)?cp(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var b=new dl("action","action",null,s,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ii!==0){var E=h?fp(o,h):new FormData(o);Zu(a,{pending:!0,data:E,method:o.method,action:u},null,E)}}else typeof u=="function"&&(b.preventDefault(),E=h?fp(o,h):new FormData(o),Zu(a,{pending:!0,data:E,method:o.method,action:u},u,E))},currentTarget:o}]})}}for(var Nc=0;Nc<du.length;Nc++){var Mc=du[Nc],Mb=Mc.toLowerCase(),Ob=Mc[0].toUpperCase()+Mc.slice(1);Wn(Mb,"on"+Ob)}Wn(Gd,"onAnimationEnd"),Wn(Vd,"onAnimationIteration"),Wn(Yd,"onAnimationStart"),Wn("dblclick","onDoubleClick"),Wn("focusin","onFocus"),Wn("focusout","onBlur"),Wn(X0,"onTransitionRun"),Wn(Z0,"onTransitionStart"),Wn(I0,"onTransitionCancel"),Wn(Pd,"onTransitionEnd"),On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),Jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),Db=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function dp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],o=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var h=s.length-1;0<=h;h--){var b=s[h],E=b.instance,D=b.currentTarget;if(b=b.listener,E!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=D;try{u(o)}catch(V){pl(V)}o.currentTarget=null,u=E}else for(h=0;h<s.length;h++){if(b=s[h],E=b.instance,D=b.currentTarget,b=b.listener,E!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=D;try{u(o)}catch(V){pl(V)}o.currentTarget=null,u=E}}}}function Qe(e,t){var a=t[Ce];a===void 0&&(a=t[Ce]=new Set);var s=e+"__bubble";a.has(s)||(hp(t,e,2,!1),a.add(s))}function Oc(e,t,a){var s=0;t&&(s|=4),hp(a,e,s,t)}var to="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){if(!e[to]){e[to]=!0,In.forEach(function(a){a!=="selectionchange"&&(Db.has(a)||Oc(a,!1,e),Oc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[to]||(t[to]=!0,Oc("selectionchange",!1,t))}}function hp(e,t,a,s){switch(Gp(t)){case 2:var o=l1;break;case 8:o=o1;break;default:o=Xc}a=o.bind(null,t,a,e),o=void 0,!Wo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function jc(e,t,a,s,o){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var h=s.tag;if(h===3||h===4){var b=s.stateNode.containerInfo;if(b===o)break;if(h===4)for(h=s.return;h!==null;){var E=h.tag;if((E===3||E===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;b!==null;){if(h=xt(b),h===null)return;if(E=h.tag,E===5||E===6||E===26||E===27){s=u=h;continue e}b=b.parentNode}}s=s.return}vd(function(){var D=u,V=Jo(a),Z=[];e:{var j=Kd.get(e);if(j!==void 0){var U=dl,oe=e;switch(e){case"keypress":if(cl(a)===0)break e;case"keydown":case"keyup":U=R0;break;case"focusin":oe="focus",U=au;break;case"focusout":oe="blur",U=au;break;case"beforeblur":case"afterblur":U=au;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":U=Sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=m0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=k0;break;case Gd:case Vd:case Yd:U=y0;break;case Pd:U=M0;break;case"scroll":case"scrollend":U=d0;break;case"wheel":U=D0;break;case"copy":case"cut":case"paste":U=b0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Ed;break;case"toggle":case"beforetoggle":U=z0}var Re=(t&4)!==0,st=!Re&&(e==="scroll"||e==="scrollend"),M=Re?j!==null?j+"Capture":null:j;Re=[];for(var R=D,O;R!==null;){var F=R;if(O=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||O===null||M===null||(F=Ir(R,M),F!=null&&Re.push(ks(R,F,O))),st)break;R=R.return}0<Re.length&&(j=new U(j,oe,null,a,V),Z.push({event:j,listeners:Re}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",j&&a!==Io&&(oe=a.relatedTarget||a.fromElement)&&(xt(oe)||oe[ge]))break e;if((U||j)&&(j=V.window===V?V:(j=V.ownerDocument)?j.defaultView||j.parentWindow:window,U?(oe=a.relatedTarget||a.toElement,U=D,oe=oe?xt(oe):null,oe!==null&&(st=f(oe),Re=oe.tag,oe!==st||Re!==5&&Re!==27&&Re!==6)&&(oe=null)):(U=null,oe=D),U!==oe)){if(Re=Sd,F="onMouseLeave",M="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(Re=Ed,F="onPointerLeave",M="onPointerEnter",R="pointer"),st=U==null?j:Ht(U),O=oe==null?j:Ht(oe),j=new Re(F,R+"leave",U,a,V),j.target=st,j.relatedTarget=O,F=null,xt(V)===D&&(Re=new Re(M,R+"enter",oe,a,V),Re.target=O,Re.relatedTarget=st,F=Re),st=F,U&&oe)t:{for(Re=jb,M=U,R=oe,O=0,F=M;F;F=Re(F))O++;F=0;for(var we=R;we;we=Re(we))F++;for(;0<O-F;)M=Re(M),O--;for(;0<F-O;)R=Re(R),F--;for(;O--;){if(M===R||R!==null&&M===R.alternate){Re=M;break t}M=Re(M),R=Re(R)}Re=null}else Re=null;U!==null&&mp(Z,j,U,Re,!1),oe!==null&&st!==null&&mp(Z,st,oe,Re,!0)}}e:{if(j=D?Ht(D):window,U=j.nodeName&&j.nodeName.toLowerCase(),U==="select"||U==="input"&&j.type==="file")var $e=Md;else if(kd(j))if(Od)$e=P0;else{$e=V0;var pe=G0}else U=j.nodeName,!U||U.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?D&&Zo(D.elementType)&&($e=Md):$e=Y0;if($e&&($e=$e(e,D))){Nd(Z,$e,a,V);break e}pe&&pe(e,j,D),e==="focusout"&&D&&j.type==="number"&&D.memoizedProps.value!=null&&Xo(j,"number",j.value)}switch(pe=D?Ht(D):window,e){case"focusin":(kd(pe)||pe.contentEditable==="true")&&(sr=pe,uu=D,is=null);break;case"focusout":is=uu=sr=null;break;case"mousedown":cu=!0;break;case"contextmenu":case"mouseup":case"dragend":cu=!1,Hd(Z,a,V);break;case"selectionchange":if(F0)break;case"keydown":case"keyup":Hd(Z,a,V)}var je;if(ru)e:{switch(e){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else rr?Ad(e,a)&&(Ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ve="onCompositionStart");Ve&&(Td&&a.locale!=="ko"&&(rr||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&rr&&(je=bd()):(Ga=V,eu="value"in Ga?Ga.value:Ga.textContent,rr=!0)),pe=no(D,Ve),0<pe.length&&(Ve=new wd(Ve,e,null,a,V),Z.push({event:Ve,listeners:pe}),je?Ve.data=je:(je=_d(a),je!==null&&(Ve.data=je)))),(je=U0?B0(e,a):q0(e,a))&&(Ve=no(D,"onBeforeInput"),0<Ve.length&&(pe=new wd("onBeforeInput","beforeinput",null,a,V),Z.push({event:pe,listeners:Ve}),pe.data=je)),Nb(Z,e,D,a,V)}dp(Z,t)})}function ks(e,t,a){return{instance:e,listener:t,currentTarget:a}}function no(e,t){for(var a=t+"Capture",s=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ir(e,a),o!=null&&s.unshift(ks(e,o,u)),o=Ir(e,t),o!=null&&s.push(ks(e,o,u))),e.tag===3)return s;e=e.return}return[]}function jb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mp(e,t,a,s,o){for(var u=t._reactName,h=[];a!==null&&a!==s;){var b=a,E=b.alternate,D=b.stateNode;if(b=b.tag,E!==null&&E===s)break;b!==5&&b!==26&&b!==27||D===null||(E=D,o?(D=Ir(a,u),D!=null&&h.unshift(ks(a,D,E))):o||(D=Ir(a,u),D!=null&&h.push(ks(a,D,E)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var zb=/\r\n?/g,Lb=/\u0000|\uFFFD/g;function pp(e){return(typeof e=="string"?e:""+e).replace(zb,`
10
+ `).replace(Lb,"")}function gp(e,t){return t=pp(t),pp(e)===t}function rt(e,t,a,s,o,u){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||nr(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&nr(e,""+s);break;case"className":$n(e,"class",s);break;case"tabIndex":$n(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":$n(e,a,s);break;case"style":gd(e,s,u);break;case"data":if(t!=="object"){$n(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=ol(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="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 u=="function"&&(a==="formAction"?(t!=="input"&&rt(e,t,"name",o.name,o,null),rt(e,t,"formEncType",o.formEncType,o,null),rt(e,t,"formMethod",o.formMethod,o,null),rt(e,t,"formTarget",o.formTarget,o,null)):(rt(e,t,"encType",o.encType,o,null),rt(e,t,"method",o.method,o,null),rt(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=ol(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=wa);break;case"onScroll":s!=null&&Qe("scroll",e);break;case"onScrollEnd":s!=null&&Qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=ol(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":Qe("beforetoggle",e),Qe("toggle",e),Ct(e,"popover",s);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ct(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=c0.get(a)||a,Ct(e,a,s))}}function zc(e,t,a,s,o,u){switch(a){case"style":gd(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof s=="string"?nr(e,s):(typeof s=="number"||typeof s=="bigint")&&nr(e,""+s);break;case"onScroll":s!=null&&Qe("scroll",e);break;case"onScrollEnd":s!=null&&Qe("scrollend",e);break;case"onClick":s!=null&&(e.onclick=wa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),u=e[le]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof s=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,o);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):Ct(e,a,s)}}}function Zt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",e),Qe("load",e);var s=!1,o=!1,u;for(u in a)if(a.hasOwnProperty(u)){var h=a[u];if(h!=null)switch(u){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:rt(e,t,u,h,a,null)}}o&&rt(e,t,"srcSet",a.srcSet,a,null),s&&rt(e,t,"src",a.src,a,null);return;case"input":Qe("invalid",e);var b=u=h=o=null,E=null,D=null;for(s in a)if(a.hasOwnProperty(s)){var V=a[s];if(V!=null)switch(s){case"name":o=V;break;case"type":h=V;break;case"checked":E=V;break;case"defaultChecked":D=V;break;case"value":u=V;break;case"defaultValue":b=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,t));break;default:rt(e,t,s,V,a,null)}}dd(e,u,b,E,D,h,o,!1);return;case"select":Qe("invalid",e),s=h=u=null;for(o in a)if(a.hasOwnProperty(o)&&(b=a[o],b!=null))switch(o){case"value":u=b;break;case"defaultValue":h=b;break;case"multiple":s=b;default:rt(e,t,o,b,a,null)}t=u,a=h,e.multiple=!!s,t!=null?tr(e,!!s,t,!1):a!=null&&tr(e,!!s,a,!0);return;case"textarea":Qe("invalid",e),u=o=s=null;for(h in a)if(a.hasOwnProperty(h)&&(b=a[h],b!=null))switch(h){case"value":s=b;break;case"defaultValue":o=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:rt(e,t,h,b,a,null)}md(e,s,o,u);return;case"option":for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null)&&(E==="selected"?e.selected=s&&typeof s!="function"&&typeof s!="symbol":rt(e,t,E,s,a,null));return;case"dialog":Qe("beforetoggle",e),Qe("toggle",e),Qe("cancel",e),Qe("close",e);break;case"iframe":case"object":Qe("load",e);break;case"video":case"audio":for(s=0;s<_s.length;s++)Qe(_s[s],e);break;case"image":Qe("error",e),Qe("load",e);break;case"details":Qe("toggle",e);break;case"embed":case"source":case"link":Qe("error",e),Qe("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(D in a)if(a.hasOwnProperty(D)&&(s=a[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:rt(e,t,D,s,a,null)}return;default:if(Zo(t)){for(V in a)a.hasOwnProperty(V)&&(s=a[V],s!==void 0&&zc(e,t,V,s,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(s=a[b],s!=null&&rt(e,t,b,s,a,null))}function Ub(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,b=null,E=null,D=null,V=null;for(U in a){var Z=a[U];if(a.hasOwnProperty(U)&&Z!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":E=Z;default:s.hasOwnProperty(U)||rt(e,t,U,null,s,Z)}}for(var j in s){var U=s[j];if(Z=a[j],s.hasOwnProperty(j)&&(U!=null||Z!=null))switch(j){case"type":u=U;break;case"name":o=U;break;case"checked":D=U;break;case"defaultChecked":V=U;break;case"value":h=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(l(137,t));break;default:U!==Z&&rt(e,t,j,U,s,Z)}}Fo(e,h,b,E,D,V,u,o);return;case"select":U=h=b=j=null;for(u in a)if(E=a[u],a.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":U=E;default:s.hasOwnProperty(u)||rt(e,t,u,null,s,E)}for(o in s)if(u=s[o],E=a[o],s.hasOwnProperty(o)&&(u!=null||E!=null))switch(o){case"value":j=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==E&&rt(e,t,o,u,s,E)}t=b,a=h,s=U,j!=null?tr(e,!!a,j,!1):!!s!=!!a&&(t!=null?tr(e,!!a,t,!0):tr(e,!!a,a?[]:"",!1));return;case"textarea":U=j=null;for(b in a)if(o=a[b],a.hasOwnProperty(b)&&o!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:rt(e,t,b,null,s,o)}for(h in s)if(o=s[h],u=a[h],s.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":j=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==u&&rt(e,t,h,o,s,u)}hd(e,j,U);return;case"option":for(var oe in a)j=a[oe],a.hasOwnProperty(oe)&&j!=null&&!s.hasOwnProperty(oe)&&(oe==="selected"?e.selected=!1:rt(e,t,oe,null,s,j));for(E in s)j=s[E],U=a[E],s.hasOwnProperty(E)&&j!==U&&(j!=null||U!=null)&&(E==="selected"?e.selected=j&&typeof j!="function"&&typeof j!="symbol":rt(e,t,E,j,s,U));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 Re in a)j=a[Re],a.hasOwnProperty(Re)&&j!=null&&!s.hasOwnProperty(Re)&&rt(e,t,Re,null,s,j);for(D in s)if(j=s[D],U=a[D],s.hasOwnProperty(D)&&j!==U&&(j!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:rt(e,t,D,j,s,U)}return;default:if(Zo(t)){for(var st in a)j=a[st],a.hasOwnProperty(st)&&j!==void 0&&!s.hasOwnProperty(st)&&zc(e,t,st,void 0,s,j);for(V in s)j=s[V],U=a[V],!s.hasOwnProperty(V)||j===U||j===void 0&&U===void 0||zc(e,t,V,j,s,U);return}}for(var M in a)j=a[M],a.hasOwnProperty(M)&&j!=null&&!s.hasOwnProperty(M)&&rt(e,t,M,null,s,j);for(Z in s)j=s[Z],U=a[Z],!s.hasOwnProperty(Z)||j===U||j==null&&U==null||rt(e,t,Z,j,s,U)}function yp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var o=a[s],u=o.transferSize,h=o.initiatorType,b=o.duration;if(u&&b&&yp(h)){for(h=0,b=o.responseEnd,s+=1;s<a.length;s++){var E=a[s],D=E.startTime;if(D>b)break;var V=E.transferSize,Z=E.initiatorType;V&&yp(Z)&&(E=E.responseEnd,h+=V*(E<b?1:(b-D)/(E-D)))}if(--s,t+=8*(u+h)/(o.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 Lc=null,Uc=null;function ao(e){return e.nodeType===9?e:e.ownerDocument}function vp(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 bp(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 Bc(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 qc=null;function qb(){var e=window.event;return e&&e.type==="popstate"?e===qc?!1:(qc=e,!0):(qc=null,!1)}var xp=typeof setTimeout=="function"?setTimeout:void 0,Hb=typeof clearTimeout=="function"?clearTimeout:void 0,Sp=typeof Promise=="function"?Promise:void 0,Qb=typeof queueMicrotask=="function"?queueMicrotask:typeof Sp<"u"?function(e){return Sp.resolve(null).then(e).catch(Gb)}:xp;function Gb(e){setTimeout(function(){throw e})}function ri(e){return e==="head"}function wp(e,t){var a=t,s=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(o),Dr(t);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Ns(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ns(a);for(var u=a.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[yt]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=h}}else a==="body"&&Ns(e.ownerDocument.body);a=o}while(a);Dr(t)}function Ep(e,t){var a=e;e=0;do{var s=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||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function Hc(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":Hc(a),bt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Vb(e,t,a,s){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[yt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Hn(e.nextSibling),e===null)break}return null}function Yb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Hn(e.nextSibling),e===null))return null;return e}function Tp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Hn(e.nextSibling),e===null))return null;return e}function Qc(e){return e.data==="$?"||e.data==="$~"}function Gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Pb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Hn(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 Vc=null;function Cp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Hn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Rp(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 Ap(e,t,a){switch(t=ao(a),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bt(e)}var Qn=new Map,_p=new Set;function io(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ba=X.d;X.d={f:Kb,r:Fb,D:Xb,C:Zb,L:Ib,m:Jb,X:Wb,S:$b,M:e1};function Kb(){var e=Ba.f(),t=Zl();return e||t}function Fb(e){var t=Pe(e);t!==null&&t.tag===5&&t.type==="form"?Ph(t):Ba.r(e)}var Nr=typeof document>"u"?null:document;function kp(e,t,a){var s=Nr;if(s&&typeof t=="string"&&t){var o=Dn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),_p.has(o)||(_p.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),Zt(t,"link",e),mt(t),s.head.appendChild(t)))}}function Xb(e){Ba.D(e),kp("dns-prefetch",e,null)}function Zb(e,t){Ba.C(e,t),kp("preconnect",e,t)}function Ib(e,t,a){Ba.L(e,t,a);var s=Nr;if(s&&e&&t){var o='link[rel="preload"][as="'+Dn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Dn(a.imageSizes)+'"]')):o+='[href="'+Dn(e)+'"]';var u=o;switch(t){case"style":u=Mr(e);break;case"script":u=Or(e)}Qn.has(u)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Qn.set(u,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(Ms(u))||t==="script"&&s.querySelector(Os(u))||(t=s.createElement("link"),Zt(t,"link",e),mt(t),s.head.appendChild(t)))}}function Jb(e,t){Ba.m(e,t);var a=Nr;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Dn(s)+'"][href="'+Dn(e)+'"]',u=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Or(e)}if(!Qn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Qn.set(u,e),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Os(u)))return}s=a.createElement("link"),Zt(s,"link",e),mt(s),a.head.appendChild(s)}}}function $b(e,t,a){Ba.S(e,t,a);var s=Nr;if(s&&e){var o=un(s).hoistableStyles,u=Mr(e);t=t||"default";var h=o.get(u);if(!h){var b={loading:0,preload:null};if(h=s.querySelector(Ms(u)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qn.get(u))&&Yc(e,a);var E=h=s.createElement("link");mt(E),Zt(E,"link",e),E._p=new Promise(function(D,V){E.onload=D,E.onerror=V}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,ro(h,t,s)}h={type:"stylesheet",instance:h,count:1,state:b},o.set(u,h)}}}function Wb(e,t){Ba.X(e,t);var a=Nr;if(a&&e){var s=un(a).hoistableScripts,o=Or(e),u=s.get(o);u||(u=a.querySelector(Os(o)),u||(e=y({src:e,async:!0},t),(t=Qn.get(o))&&Pc(e,t),u=a.createElement("script"),mt(u),Zt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function e1(e,t){Ba.M(e,t);var a=Nr;if(a&&e){var s=un(a).hoistableScripts,o=Or(e),u=s.get(o);u||(u=a.querySelector(Os(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Qn.get(o))&&Pc(e,t),u=a.createElement("script"),mt(u),Zt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function Np(e,t,a,s){var o=(o=$.current)?io(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Mr(a.href),a=un(o).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Mr(a.href);var u=un(o).hoistableStyles,h=u.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=o.querySelector(Ms(e)))&&!u._p&&(h.instance=u,h.state.loading=5),Qn.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},Qn.set(e,a),u||t1(o,e,a,h.state))),t&&s===null)throw Error(l(528,""));return h}if(t&&s!==null)throw Error(l(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Or(a),a=un(o).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Mr(e){return'href="'+Dn(e)+'"'}function Ms(e){return'link[rel="stylesheet"]['+e+"]"}function Mp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function t1(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Zt(t,"link",a),mt(t),e.head.appendChild(t))}function Or(e){return'[src="'+Dn(e)+'"]'}function Os(e){return"script[async]"+e}function Op(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Dn(a.href)+'"]');if(s)return t.instance=s,mt(s),s;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),mt(s),Zt(s,"style",o),ro(s,a.precedence,e),t.instance=s;case"stylesheet":o=Mr(a.href);var u=e.querySelector(Ms(o));if(u)return t.state.loading|=4,t.instance=u,mt(u),u;s=Mp(a),(o=Qn.get(o))&&Yc(s,o),u=(e.ownerDocument||e).createElement("link"),mt(u);var h=u;return h._p=new Promise(function(b,E){h.onload=b,h.onerror=E}),Zt(u,"link",s),t.state.loading|=4,ro(u,a.precedence,e),t.instance=u;case"script":return u=Or(a.src),(o=e.querySelector(Os(u)))?(t.instance=o,mt(o),o):(s=a,(o=Qn.get(u))&&(s=y({},a),Pc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),mt(o),Zt(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,ro(s,a.precedence,e));return t.instance}function ro(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,u=o,h=0;h<s.length;h++){var b=s[h];if(b.dataset.precedence===t)u=b;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var so=null;function Dp(e,t,a){if(so===null){var s=new Map,o=so=new Map;o.set(a,s)}else o=so,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var u=a[o];if(!(u[yt]||u[re]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var b=s.get(h);b?b.push(u):s.set(h,[u])}}return s}function jp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function n1(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 zp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function a1(e,t,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Mr(s.href),u=t.querySelector(Ms(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lo.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,mt(u);return}u=t.ownerDocument||t,s=Mp(s),(o=Qn.get(o))&&Yc(s,o),u=u.createElement("link"),mt(u);var h=u;h._p=new Promise(function(b,E){h.onload=b,h.onerror=E}),Zt(u,"link",s),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=lo.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Kc=0;function i1(e,t){return e.stylesheets&&e.count===0&&uo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&uo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Kc===0&&(Kc=62500*Bb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Kc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oo=null;function uo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oo=new Map,t.forEach(r1,e),oo=null,lo.call(e))}function r1(e,t){if(!(t.state.loading&4)){var a=oo.get(e);if(a)var s=a.get(null);else{a=new Map,oo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),s=h)}s&&a.set(null,s)}o=t.instance,h=o.getAttribute("data-precedence"),u=a.get(h)||s,u===s&&a.set(null,o),a.set(h,o),this.count++,s=lo.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ds={$$typeof:W,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function s1(e,t,a,s,o,u,h,b,E){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=vn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vn(0),this.hiddenUpdates=vn(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Lp(e,t,a,s,o,u,h,b,E,D,V,Z){return e=new s1(e,t,a,h,E,D,V,Z,b),t=1,u===!0&&(t|=24),u=Sn(3,null,null,t),e.current=u,u.stateNode=e,t=Cu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:a,cache:t},ku(u),e}function Up(e){return e?(e=ur,e):ur}function Bp(e,t,a,s,o,u){o=Up(o),s.context===null?s.context=o:s.pendingContext=o,s=Xa(t),s.payload={element:a},u=u===void 0?null:u,u!==null&&(s.callback=u),a=Za(e,s,t),a!==null&&(pn(a,e,t),fs(a,e,t))}function qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fc(e,t){qp(e,t),(e=e.alternate)&&qp(e,t)}function Hp(e){if(e.tag===13||e.tag===31){var t=Oi(e,67108864);t!==null&&pn(t,e,67108864),Fc(e,67108864)}}function Qp(e){if(e.tag===13||e.tag===31){var t=Rn();t=z(t);var a=Oi(e,t);a!==null&&pn(a,e,t),Fc(e,t)}}var co=!0;function l1(e,t,a,s){var o=k.T;k.T=null;var u=X.p;try{X.p=2,Xc(e,t,a,s)}finally{X.p=u,k.T=o}}function o1(e,t,a,s){var o=k.T;k.T=null;var u=X.p;try{X.p=8,Xc(e,t,a,s)}finally{X.p=u,k.T=o}}function Xc(e,t,a,s){if(co){var o=Zc(s);if(o===null)jc(e,t,s,fo,a),Vp(e,s);else if(c1(o,e,t,a,s))s.stopPropagation();else if(Vp(e,s),t&4&&-1<u1.indexOf(e)){for(;o!==null;){var u=Pe(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=Mn(u.pendingLanes);if(h!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var E=1<<31-Lt(h);b.entanglements[1]|=E,h&=~E}ua(u),(et&6)===0&&(Fl=gt()+500,As(0))}}break;case 31:case 13:b=Oi(u,2),b!==null&&pn(b,u,2),Zl(),Fc(u,2)}if(u=Zc(s),u===null&&jc(e,t,s,fo,a),u===o)break;o=u}o!==null&&s.stopPropagation()}else jc(e,t,s,null,a)}}function Zc(e){return e=Jo(e),Ic(e)}var fo=null;function Ic(e){if(fo=null,e=xt(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(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 fo=e,null}function Gp(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(ya()){case ra:return 2;case Qa:return 8;case Yt:case tn:return 32;case kn:return 268435456;default:return 32}default:return 32}}var Jc=!1,si=null,li=null,oi=null,js=new Map,zs=new Map,ui=[],u1="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 Vp(e,t){switch(e){case"focusin":case"focusout":si=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":oi=null;break;case"pointerover":case"pointerout":js.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(t.pointerId)}}function Ls(e,t,a,s,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Pe(t),t!==null&&Hp(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function c1(e,t,a,s,o){switch(t){case"focusin":return si=Ls(si,e,t,a,s,o),!0;case"dragenter":return li=Ls(li,e,t,a,s,o),!0;case"mouseover":return oi=Ls(oi,e,t,a,s,o),!0;case"pointerover":var u=o.pointerId;return js.set(u,Ls(js.get(u)||null,e,t,a,s,o)),!0;case"gotpointercapture":return u=o.pointerId,zs.set(u,Ls(zs.get(u)||null,e,t,a,s,o)),!0}return!1}function Yp(e){var t=xt(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,ve(e.priority,function(){Qp(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,ve(e.priority,function(){Qp(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 ho(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);Io=s,a.target.dispatchEvent(s),Io=null}else return t=Pe(a),t!==null&&Hp(t),e.blockedOn=a,!1;t.shift()}return!0}function Pp(e,t,a){ho(e)&&a.delete(t)}function f1(){Jc=!1,si!==null&&ho(si)&&(si=null),li!==null&&ho(li)&&(li=null),oi!==null&&ho(oi)&&(oi=null),js.forEach(Pp),zs.forEach(Pp)}function mo(e,t){e.blockedOn===t&&(e.blockedOn=null,Jc||(Jc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,f1)))}var po=null;function Kp(e){po!==e&&(po=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){po===e&&(po=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(Ic(s||a)===null)continue;break}var u=Pe(a);u!==null&&(e.splice(t,3),t-=3,Zu(u,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Dr(e){function t(E){return mo(E,e)}si!==null&&mo(si,e),li!==null&&mo(li,e),oi!==null&&mo(oi,e),js.forEach(t),zs.forEach(t);for(var a=0;a<ui.length;a++){var s=ui[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ui.length&&(a=ui[0],a.blockedOn===null);)Yp(a),a.blockedOn===null&&ui.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],u=a[s+1],h=o[le]||null;if(typeof u=="function")h||Kp(a);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[le]||null)b=h.formAction;else if(Ic(o)!==null)continue}else b=h.action;typeof b=="function"?a[s+1]=b:(a.splice(s,3),s-=3),Kp(a)}}}function Fp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function $c(e){this._internalRoot=e}go.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=Rn();Bp(a,s,e,t,null,null)},go.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bp(e.current,2,null,e,null,null),Zl(),t[ge]=null}};function go(e){this._internalRoot=e}go.prototype.unstable_scheduleHydration=function(e){if(e){var t=te();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ui.length&&t!==0&&t<ui[a].priority;a++);ui.splice(a,0,e),a===0&&Yp(e)}};var Xp=i.version;if(Xp!=="19.2.4")throw Error(l(527,Xp,"19.2.4"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var d1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yo.isDisabled&&yo.supportsFiber)try{va=yo.inject(d1),ct=yo}catch{}}return Bs.createRoot=function(e,t){if(!c(e))throw Error(l(299));var a=!1,s="",o=tm,u=nm,h=am;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Lp(e,1,!1,null,null,a,s,null,o,u,h,Fp),e[ge]=t.current,Dc(e),new $c(t)},Bs.hydrateRoot=function(e,t,a){if(!c(e))throw Error(l(299));var s=!1,o="",u=tm,h=nm,b=am,E=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),t=Lp(e,1,!0,t,a??null,s,o,E,u,h,b,Fp),t.context=Up(null),a=t.current,s=Rn(),s=z(s),o=Xa(s),o.callback=null,Za(a,o,s),a=s,t.current.lanes=a,ut(t,a),ua(t),e[ge]=t.current,Dc(e),new go(t)},Bs.version="19.2.4",Bs}var ig;function E1(){if(ig)return tf.exports;ig=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),tf.exports=w1(),tf.exports}var T1=E1(),Yr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},C1={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},R1=class{#e=C1;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},Fi=new R1;function A1(n){setTimeout(n,0)}var Zi=typeof window>"u"||"Deno"in globalThis;function an(){}function _1(n,i){return typeof n=="function"?n(i):n}function vf(n){return typeof n=="number"&&n>=0&&n!==1/0}function yy(n,i){return Math.max(n+(i||0)-Date.now(),0)}function gi(n,i){return typeof n=="function"?n(i):n}function Vn(n,i){return typeof n=="function"?n(i):n}function rg(n,i){const{type:r="all",exact:l,fetchStatus:c,predicate:f,queryKey:d,stale:m}=n;if(d){if(l){if(i.queryHash!==Gf(d,i.options))return!1}else if(!Zs(i.queryKey,d))return!1}if(r!=="all"){const g=i.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||c&&c!==i.state.fetchStatus||f&&!f(i))}function sg(n,i){const{exact:r,status:l,predicate:c,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(r){if(Ii(i.options.mutationKey)!==Ii(f))return!1}else if(!Zs(i.options.mutationKey,f))return!1}return!(l&&i.state.status!==l||c&&!c(i))}function Gf(n,i){return(i?.queryKeyHashFn||Ii)(n)}function Ii(n){return JSON.stringify(n,(i,r)=>bf(r)?Object.keys(r).sort().reduce((l,c)=>(l[c]=r[c],l),{}):r)}function Zs(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(r=>Zs(n[r],i[r])):!1}var k1=Object.prototype.hasOwnProperty;function vy(n,i,r=0){if(n===i)return n;if(r>500)return i;const l=lg(n)&&lg(i);if(!l&&!(bf(n)&&bf(i)))return i;const f=(l?n:Object.keys(n)).length,d=l?i:Object.keys(i),m=d.length,g=l?new Array(m):{};let p=0;for(let x=0;x<m;x++){const y=l?x:d[x],T=n[y],N=i[y];if(T===N){g[y]=T,(l?x<f:k1.call(n,y))&&p++;continue}if(T===null||N===null||typeof T!="object"||typeof N!="object"){g[y]=N;continue}const L=vy(T,N,r+1);g[y]=L,L===T&&p++}return f===m&&p===f?n:g}function Bo(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function lg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function bf(n){if(!og(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!og(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function og(n){return Object.prototype.toString.call(n)==="[object Object]"}function N1(n){return new Promise(i=>{Fi.setTimeout(i,n)})}function xf(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?vy(n,i):i}function M1(n,i,r=0){const l=[...n,i];return r&&l.length>r?l.slice(1):l}function O1(n,i,r=0){const l=[i,...n];return r&&l.length>r?l.slice(0,-1):l}var Vf=Symbol();function by(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Vf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Yf(n,i){return typeof n=="function"?n(...i):!!n}function D1(n,i,r){let l=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??=i(),l||(l=!0,c.aborted?r():c.addEventListener("abort",r,{once:!0})),c)}),n}var j1=class extends Yr{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Zi&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Pf=new j1;function Sf(){let n,i;const r=new Promise((c,f)=>{n=c,i=f});r.status="pending",r.catch(()=>{});function l(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{l({status:"fulfilled",value:c}),n(c)},r.reject=c=>{l({status:"rejected",reason:c}),i(c)},r}var z1=A1;function L1(){let n=[],i=0,r=m=>{m()},l=m=>{m()},c=z1;const f=m=>{i?n.push(m):c(()=>{r(m)})},d=()=>{const m=n;n=[],m.length&&c(()=>{l(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;i++;try{g=m()}finally{i--,i||d()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{l=m},setScheduler:m=>{c=m}}}var qt=L1(),U1=class extends Yr{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Zi&&window.addEventListener){const i=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(r=>{r(n)}))}isOnline(){return this.#e}},qo=new U1;function B1(n){return Math.min(1e3*2**n,3e4)}function xy(n){return(n??"online")==="online"?qo.isOnline():!0}var wf=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Sy(n){let i=!1,r=0,l;const c=Sf(),f=()=>c.status!=="pending",d=B=>{if(!f()){const G=new wf(B);T(G),n.onCancel?.(G)}},m=()=>{i=!0},g=()=>{i=!1},p=()=>Pf.isFocused()&&(n.networkMode==="always"||qo.isOnline())&&n.canRun(),x=()=>xy(n.networkMode)&&n.canRun(),y=B=>{f()||(l?.(),c.resolve(B))},T=B=>{f()||(l?.(),c.reject(B))},N=()=>new Promise(B=>{l=G=>{(f()||p())&&B(G)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),L=()=>{if(f())return;let B;const G=r===0?n.initialPromise:void 0;try{B=G??n.fn()}catch(Y){B=Promise.reject(Y)}Promise.resolve(B).then(y).catch(Y=>{if(f())return;const K=n.retry??(Zi?0:3),W=n.retryDelay??B1,he=typeof W=="function"?W(r,Y):W,de=K===!0||typeof K=="number"&&r<K||typeof K=="function"&&K(r,Y);if(i||!de){T(Y);return}r++,n.onFail?.(r,Y),N1(he).then(()=>p()?void 0:N()).then(()=>{i?T(Y):L()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(l?.(),c),cancelRetry:m,continueRetry:g,canStart:x,start:()=>(x()?L():N().then(L),c)}}var wy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vf(this.gcTime)&&(this.#e=Fi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Zi?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Fi.clearTimeout(this.#e),this.#e=void 0)}},q1=class extends wy{#e;#t;#n;#i;#a;#s;#l;constructor(n){super(),this.#l=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=cg(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=cg(this.options);i.data!==void 0&&(this.setState(ug(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const r=xf(this.state.data,n,this.options);return this.#r({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(n,i){this.#r({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Vn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>gi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!yy(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#l?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,l=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},c=()=>{const m=by(this.options,i),p=(()=>{const x={client:this.#i,queryKey:this.queryKey,meta:this.meta};return l(x),x})();return this.#l=!1,this.options.persister?this.options.persister(m,p,this):m(p)},d=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return l(m),m})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#r({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=Sy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:m=>{m instanceof wf&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(m,g)=>{this.#r({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof wf){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#r({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#r(n){const i=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ey(r.data,this.options),fetchMeta:n.meta??null};case"success":const l={...r,...ug(n.data,n.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?l:void 0,l;case"error":const c=n.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=i(this.state),qt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function Ey(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xy(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ug(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function cg(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,l=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var H1=class extends Yr{constructor(n,i){super(),this.options=i,this.#e=n,this.#r=null,this.#l=Sf(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#s;#l;#r;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),fg(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ef(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ef(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),i._defaulted&&!Bo(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const l=this.hasListeners();l&&dg(this.#t,r,this.options,i)&&this.#f(),this.updateResult(),l&&(this.#t!==r||Vn(this.options.enabled,this.#t)!==Vn(i.enabled,this.#t)||gi(this.options.staleTime,this.#t)!==gi(i.staleTime,this.#t))&&this.#g();const c=this.#y();l&&(this.#t!==r||Vn(this.options.enabled,this.#t)!==Vn(i.enabled,this.#t)||c!==this.#o)&&this.#v(c)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),r=this.createResult(i,n);return G1(this,r)&&(this.#i=r,this.#s=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#i}trackResult(n,i){return new Proxy(n,{get:(r,l)=>(this.trackProp(l),i?.(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,l))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),r=this.#e.getQueryCache().build(this.#e,i);return r.fetch().then(()=>this.createResult(r,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#w();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(an)),i}#g(){this.#x();const n=gi(this.options.staleTime,this.#t);if(Zi||this.#i.isStale||!vf(n))return;const r=yy(this.#i.dataUpdatedAt,n)+1;this.#u=Fi.setTimeout(()=>{this.#i.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(n){this.#S(),this.#o=n,!(Zi||Vn(this.options.enabled,this.#t)===!1||!vf(this.#o)||this.#o===0)&&(this.#c=Fi.setInterval(()=>{(this.options.refetchIntervalInBackground||Pf.isFocused())&&this.#f()},this.#o))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#u&&(Fi.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(Fi.clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const r=this.#t,l=this.options,c=this.#i,f=this.#a,d=this.#s,g=n!==r?n.state:this.#n,{state:p}=n;let x={...p},y=!1,T;if(i._optimisticResults){const P=this.hasListeners(),ie=!P&&fg(n,i),ke=P&&dg(n,r,i,l);(ie||ke)&&(x={...x,...Ey(p.data,n.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:N,errorUpdatedAt:L,status:B}=x;T=x.data;let G=!1;if(i.placeholderData!==void 0&&T===void 0&&B==="pending"){let P;c?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(P=c.data,G=!0):P=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,P!==void 0&&(B="success",T=xf(c?.data,P,i),y=!0)}if(i.select&&T!==void 0&&!G)if(c&&T===f?.data&&i.select===this.#p)T=this.#d;else try{this.#p=i.select,T=i.select(T),T=xf(c?.data,T,i),this.#d=T,this.#r=null}catch(P){this.#r=P}this.#r&&(N=this.#r,T=this.#d,L=Date.now(),B="error");const Y=x.fetchStatus==="fetching",K=B==="pending",W=B==="error",he=K&&Y,de=T!==void 0,A={status:B,fetchStatus:x.fetchStatus,isPending:K,isSuccess:B==="success",isError:W,isInitialLoading:he,isLoading:he,data:T,dataUpdatedAt:x.dataUpdatedAt,error:N,errorUpdatedAt:L,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>g.dataUpdateCount||x.errorUpdateCount>g.errorUpdateCount,isFetching:Y,isRefetching:Y&&!K,isLoadingError:W&&!de,isPaused:x.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:W&&de,isStale:Kf(n,i),refetch:this.refetch,promise:this.#l,isEnabled:Vn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const P=A.data!==void 0,ie=A.status==="error"&&!P,ke=Oe=>{ie?Oe.reject(A.error):P&&Oe.resolve(A.data)},Ae=()=>{const Oe=this.#l=A.promise=Sf();ke(Oe)},Se=this.#l;switch(Se.status){case"pending":n.queryHash===r.queryHash&&ke(Se);break;case"fulfilled":(ie||A.data!==Se.value)&&Ae();break;case"rejected":(!ie||A.error!==Se.reason)&&Ae();break}}return A}updateResult(){const n=this.#i,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Bo(i,n))return;this.#i=i;const r=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,c=typeof l=="function"?l():l;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#i).some(d=>{const m=d;return this.#i[m]!==n[m]&&f.has(m)})};this.#E({listeners:r()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(n){qt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Q1(n,i){return Vn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function fg(n,i){return Q1(n,i)||n.state.data!==void 0&&Ef(n,i,i.refetchOnMount)}function Ef(n,i,r){if(Vn(i.enabled,n)!==!1&&gi(i.staleTime,n)!=="static"){const l=typeof r=="function"?r(n):r;return l==="always"||l!==!1&&Kf(n,i)}return!1}function dg(n,i,r,l){return(n!==i||Vn(l.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Kf(n,r)}function Kf(n,i){return Vn(i.enabled,n)!==!1&&n.isStaleByTime(gi(i.staleTime,n))}function G1(n,i){return!Bo(n.getCurrentResult(),i)}function hg(n){return{onFetch:(i,r)=>{const l=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let x=!1;const y=L=>{D1(L,()=>i.signal,()=>x=!0)},T=by(i.options,i.fetchOptions),N=async(L,B,G)=>{if(x)return Promise.reject();if(B==null&&L.pages.length)return Promise.resolve(L);const K=(()=>{const fe={client:i.client,queryKey:i.queryKey,pageParam:B,direction:G?"backward":"forward",meta:i.options.meta};return y(fe),fe})(),W=await T(K),{maxPages:he}=i.options,de=G?O1:M1;return{pages:de(L.pages,W,he),pageParams:de(L.pageParams,B,he)}};if(c&&f.length){const L=c==="backward",B=L?Ty:Tf,G={pages:f,pageParams:d},Y=B(l,G);m=await N(G,Y,L)}else{const L=n??f.length;do{const B=g===0?d[0]??l.initialPageParam:Tf(l,m);if(g>0&&B==null)break;m=await N(m,B),g++}while(g<L)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=p}}}function Tf(n,{pages:i,pageParams:r}){const l=i.length-1;return i.length>0?n.getNextPageParam(i[l],i,r[l],r):void 0}function Ty(n,{pages:i,pageParams:r}){return i.length>0?n.getPreviousPageParam?.(i[0],i,r[0],r):void 0}function qR(n,i){return i?Tf(n,i)!=null:!1}function HR(n,i){return!i||!n.getPreviousPageParam?!1:Ty(n,i)!=null}var V1=class extends wy{#e;#t;#n;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||Cy(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Sy({fn:()=>this.options.mutationFn?this.options.mutationFn(n,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const l=this.state.status==="pending",c=!this.#i.canStart();try{if(l)i();else{this.#a({type:"pending",variables:n,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,r);const d=await this.options.onMutate?.(n,r);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:c})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,r),await this.options.onSuccess?.(f,n,this.state.context,r),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,n,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,r)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,r)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const i=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),qt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function Cy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Y1=class extends Yr{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,r){const l=new V1({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:r});return this.add(l),l}add(n){this.#e.add(n);const i=vo(n);if(typeof i=="string"){const r=this.#t.get(i);r?r.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=vo(n);if(typeof i=="string"){const r=this.#t.get(i);if(r)if(r.length>1){const l=r.indexOf(n);l!==-1&&r.splice(l,1)}else r[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=vo(n);if(typeof i=="string"){const l=this.#t.get(i)?.find(c=>c.state.status==="pending");return!l||l===n}else return!0}runNext(n){const i=vo(n);return typeof i=="string"?this.#t.get(i)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(r=>sg(i,r))}findAll(n={}){return this.getAll().filter(i=>sg(n,i))}notify(n){qt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return qt.batch(()=>Promise.all(n.map(i=>i.continue().catch(an))))}};function vo(n){return n.options.scope?.id}var P1=class extends Yr{#e;#t=void 0;#n;#i;constructor(i,r){super(),this.#e=i,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const r=this.options;this.options=this.#e.defaultMutationOptions(i),Bo(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Ii(r.mutationKey)!==Ii(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#s(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(i,r){return this.#i=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??Cy();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#s(i){qt.batch(()=>{if(this.#i&&this.hasListeners()){const r=this.#t.variables,l=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#i.onSuccess?.(i.data,r,l,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(i.data,null,r,l,c)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#i.onError?.(i.error,r,l,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(void 0,i.error,r,l,c)}catch(f){Promise.reject(f)}}}this.listeners.forEach(r=>{r(this.#t)})})}},K1=class extends Yr{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,r){const l=i.queryKey,c=i.queryHash??Gf(l,i);let f=this.get(c);return f||(f=new q1({client:n,queryKey:l,queryHash:c,options:n.defaultQueryOptions(i),state:r,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){qt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(r=>rg(i,r))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(r=>rg(n,r)):i}notify(n){qt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){qt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){qt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},F1=class{#e;#t;#n;#i;#a;#s;#l;#r;constructor(n={}){this.#e=n.queryCache||new K1,this.#t=n.mutationCache||new Y1,this.#n=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=Pf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=qo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),r=this.#e.build(this,i),l=r.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(gi(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(l))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:r})=>{const l=r.data;return[i,l]})}setQueryData(n,i,r){const l=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(l.queryHash)?.state.data,d=_1(i,f);if(d!==void 0)return this.#e.build(this,l).setData(d,{...r,manual:!0})}setQueriesData(n,i,r){return qt.batch(()=>this.#e.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,i,r)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;qt.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(n,i){const r=this.#e;return qt.batch(()=>(r.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const r={revert:!0,...i},l=qt.batch(()=>this.#e.findAll(n).map(c=>c.cancel(r)));return Promise.all(l).then(an).catch(an)}invalidateQueries(n,i={}){return qt.batch(()=>(this.#e.findAll(n).forEach(r=>{r.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},l=qt.batch(()=>this.#e.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,r);return r.throwOnError||(f=f.catch(an)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(an)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(gi(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(an).catch(an)}fetchInfiniteQuery(n){return n.behavior=hg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(an).catch(an)}ensureInfiniteQueryData(n){return n.behavior=hg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return qo.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#i.set(Ii(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()],r={};return i.forEach(l=>{Zs(n,l.queryKey)&&Object.assign(r,l.defaultOptions)}),r}setMutationDefaults(n,i){this.#a.set(Ii(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],r={};return i.forEach(l=>{Zs(n,l.mutationKey)&&Object.assign(r,l.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Gf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Vf&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ry=S.createContext(void 0),tt=n=>{const i=S.useContext(Ry);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},X1=({client:n,children:i})=>(S.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),v.jsx(Ry.Provider,{value:n,children:i})),Ay=S.createContext(!1),Z1=()=>S.useContext(Ay);Ay.Provider;function I1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var J1=S.createContext(I1()),$1=()=>S.useContext(J1),W1=(n,i,r)=>{const l=r?.state.error&&typeof n.throwOnError=="function"?Yf(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(i.isReset()||(n.retryOnMount=!1))},ex=n=>{S.useEffect(()=>{n.clearReset()},[n])},tx=({result:n,errorResetBoundary:i,throwOnError:r,query:l,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&l&&(c&&n.data===void 0||Yf(r,[n.error,l])),nx=n=>{if(n.suspense){const r=c=>c==="static"?c:Math.max(c??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...c)=>r(l(...c)):r(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},ax=(n,i)=>n.isLoading&&n.isFetching&&!i,ix=(n,i)=>n?.suspense&&i.isPending,mg=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function rx(n,i,r){const l=Z1(),c=$1(),f=tt(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const m=f.getQueryCache().get(d.queryHash);d._optimisticResults=l?"isRestoring":"optimistic",nx(d),W1(d,c,m),ex(c);const g=!f.getQueryCache().get(d.queryHash),[p]=S.useState(()=>new i(f,d)),x=p.getOptimisticResult(d),y=!l&&n.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(T=>{const N=y?p.subscribe(qt.batchCalls(T)):an;return p.updateResult(),N},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),S.useEffect(()=>{p.setOptions(d)},[d,p]),ix(d,x))throw mg(d,p,c);if(tx({result:x,errorResetBoundary:c,throwOnError:d.throwOnError,query:m,suspense:d.suspense}))throw x.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,x),d.experimental_prefetchInRender&&!Zi&&ax(x,l)&&(g?mg(d,p,c):m?.promise)?.catch(an).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?x:p.trackResult(x)}function rn(n,i){return rx(n,H1)}function ht(n,i){const r=tt(),[l]=S.useState(()=>new P1(r,n));S.useEffect(()=>{l.setOptions(n)},[l,n]);const c=S.useSyncExternalStore(S.useCallback(d=>l.subscribe(qt.batchCalls(d)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=S.useCallback((d,m)=>{l.mutate(d,m).catch(an)},[l]);if(c.error&&Yf(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var _y=gy();const sx=py(_y);function lx(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",i.appendChild(r),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n))}const ox=n=>{switch(n){case"success":return fx;case"info":return hx;case"warning":return dx;case"error":return mx;default:return null}},ux=Array(12).fill(0),cx=({visible:n,className:i})=>ne.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},ne.createElement("div",{className:"sonner-spinner"},ux.map((r,l)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),fx=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),dx=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),hx=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),mx=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),px=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),gx=()=>{const[n,i]=ne.useState(document.hidden);return ne.useEffect(()=>{const r=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),n};let Cf=1;class yx{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const r=this.subscribers.indexOf(i);this.subscribers.splice(r,1)}),this.publish=i=>{this.subscribers.forEach(r=>r(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var r;const{message:l,...c}=i,f=typeof i?.id=="number"||((r=i.id)==null?void 0:r.length)>0?i.id:Cf++,d=this.toasts.find(g=>g.id===f),m=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:l}),{...g,...i,id:f,dismissible:m,title:l}):g):this.addToast({title:l,...c,dismissible:m,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:i,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(l=>l({id:r.id,dismiss:!0}))}),i),this.message=(i,r)=>this.create({...r,message:i}),this.error=(i,r)=>this.create({...r,message:i,type:"error"}),this.success=(i,r)=>this.create({...r,type:"success",message:i}),this.info=(i,r)=>this.create({...r,type:"info",message:i}),this.warning=(i,r)=>this.create({...r,type:"warning",message:i}),this.loading=(i,r)=>this.create({...r,type:"loading",message:i}),this.promise=(i,r)=>{if(!r)return;let l;r.loading!==void 0&&(l=this.create({...r,promise:i,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=l!==void 0,d;const m=c.then(async p=>{if(d=["resolve",p],ne.isValidElement(p))f=!1,this.create({id:l,type:"default",message:p});else if(bx(p)&&!p.ok){f=!1;const y=typeof r.error=="function"?await r.error(`HTTP error! status: ${p.status}`):r.error,T=typeof r.description=="function"?await r.description(`HTTP error! status: ${p.status}`):r.description,L=typeof y=="object"&&!ne.isValidElement(y)?y:{message:y};this.create({id:l,type:"error",description:T,...L})}else if(p instanceof Error){f=!1;const y=typeof r.error=="function"?await r.error(p):r.error,T=typeof r.description=="function"?await r.description(p):r.description,L=typeof y=="object"&&!ne.isValidElement(y)?y:{message:y};this.create({id:l,type:"error",description:T,...L})}else if(r.success!==void 0){f=!1;const y=typeof r.success=="function"?await r.success(p):r.success,T=typeof r.description=="function"?await r.description(p):r.description,L=typeof y=="object"&&!ne.isValidElement(y)?y:{message:y};this.create({id:l,type:"success",description:T,...L})}}).catch(async p=>{if(d=["reject",p],r.error!==void 0){f=!1;const x=typeof r.error=="function"?await r.error(p):r.error,y=typeof r.description=="function"?await r.description(p):r.description,N=typeof x=="object"&&!ne.isValidElement(x)?x:{message:x};this.create({id:l,type:"error",description:y,...N})}}).finally(()=>{f&&(this.dismiss(l),l=void 0),r.finally==null||r.finally.call(r)}),g=()=>new Promise((p,x)=>m.then(()=>d[0]==="reject"?x(d[1]):p(d[1])).catch(x));return typeof l!="string"&&typeof l!="number"?{unwrap:g}:Object.assign(l,{unwrap:g})},this.custom=(i,r)=>{const l=r?.id||Cf++;return this.create({jsx:i(l),id:l,...r}),l},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const gn=new yx,vx=(n,i)=>{const r=i?.id||Cf++;return gn.addToast({title:n,...i,id:r}),r},bx=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",xx=vx,Sx=()=>gn.toasts,wx=()=>gn.getActiveToasts(),Ur=Object.assign(xx,{success:gn.success,info:gn.info,warning:gn.warning,error:gn.error,custom:gn.custom,message:gn.message,promise:gn.promise,dismiss:gn.dismiss,loading:gn.loading},{getHistory:Sx,getToasts:wx});lx("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function bo(n){return n.label!==void 0}const Ex=3,Tx="24px",Cx="16px",pg=4e3,Rx=356,Ax=14,_x=45,kx=200;function ca(...n){return n.filter(Boolean).join(" ")}function Nx(n){const[i,r]=n.split("-"),l=[];return i&&l.push(i),r&&l.push(r),l}const Mx=n=>{var i,r,l,c,f,d,m,g,p;const{invert:x,toast:y,unstyled:T,interacting:N,setHeights:L,visibleToasts:B,heights:G,index:Y,toasts:K,expanded:W,removeToast:he,defaultRichColors:de,closeButton:fe,style:A,cancelButtonStyle:P,actionButtonStyle:ie,className:ke="",descriptionClassName:Ae="",duration:Se,position:Oe,gap:ze,expandByDefault:Ee,classNames:k,icons:X,closeButtonAriaLabel:Q="Close toast"}=n,[me,ye]=ne.useState(null),[C,q]=ne.useState(null),[H,I]=ne.useState(!1),[ee,$]=ne.useState(!1),[ae,Te]=ne.useState(!1),[Be,Gt]=ne.useState(!1),[en,Je]=ne.useState(!1),[Fn,sn]=ne.useState(0),[Si,ln]=ne.useState(0),ga=ne.useRef(y.duration||Se||pg),wi=ne.useRef(null),It=ne.useRef(null),Ei=Y===0,Ti=Y+1<=B,Vt=y.type,ia=y.dismissible!==!1,gt=y.className||"",ya=y.descriptionClassName||"",ra=ne.useMemo(()=>G.findIndex(_e=>_e.toastId===y.id)||0,[G,y.id]),Qa=ne.useMemo(()=>{var _e;return(_e=y.closeButton)!=null?_e:fe},[y.closeButton,fe]),Yt=ne.useMemo(()=>y.duration||Se||pg,[y.duration,Se]),tn=ne.useRef(0),kn=ne.useRef(0),Wi=ne.useRef(0),Nn=ne.useRef(null),[va,ct]=Oe.split("-"),on=ne.useMemo(()=>G.reduce((_e,ot,Et)=>Et>=ra?_e:_e+ot.height,0),[G,ra]),Lt=gx(),er=y.invert||x,Ci=Vt==="loading";kn.current=ne.useMemo(()=>ra*ze+on,[ra,on]),ne.useEffect(()=>{ga.current=Yt},[Yt]),ne.useEffect(()=>{I(!0)},[]),ne.useEffect(()=>{const _e=It.current;if(_e){const ot=_e.getBoundingClientRect().height;return ln(ot),L(Et=>[{toastId:y.id,height:ot,position:y.position},...Et]),()=>L(Et=>Et.filter(Tt=>Tt.toastId!==y.id))}},[L,y.id]),ne.useLayoutEffect(()=>{if(!H)return;const _e=It.current,ot=_e.style.height;_e.style.height="auto";const Et=_e.getBoundingClientRect().height;_e.style.height=ot,ln(Et),L(Tt=>Tt.find(ut=>ut.toastId===y.id)?Tt.map(ut=>ut.toastId===y.id?{...ut,height:Et}:ut):[{toastId:y.id,height:Et,position:y.position},...Tt])},[H,y.title,y.description,L,y.id,y.jsx,y.action,y.cancel]);const yn=ne.useCallback(()=>{$(!0),sn(kn.current),L(_e=>_e.filter(ot=>ot.toastId!==y.id)),setTimeout(()=>{he(y)},kx)},[y,he,L,kn]);ne.useEffect(()=>{if(y.promise&&Vt==="loading"||y.duration===1/0||y.type==="loading")return;let _e;return W||N||Lt?(()=>{if(Wi.current<tn.current){const Tt=new Date().getTime()-tn.current;ga.current=ga.current-Tt}Wi.current=new Date().getTime()})():ga.current!==1/0&&(tn.current=new Date().getTime(),_e=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),yn()},ga.current)),()=>clearTimeout(_e)},[W,N,y,Vt,Lt,yn]),ne.useEffect(()=>{y.delete&&(yn(),y.onDismiss==null||y.onDismiss.call(y,y))},[yn,y.delete]);function Xn(){var _e;if(X?.loading){var ot;return ne.createElement("div",{className:ca(k?.loader,y==null||(ot=y.classNames)==null?void 0:ot.loader,"sonner-loader"),"data-visible":Vt==="loading"},X.loading)}return ne.createElement(cx,{className:ca(k?.loader,y==null||(_e=y.classNames)==null?void 0:_e.loader),visible:Vt==="loading"})}const ba=y.icon||X?.[Vt]||ox(Vt);var Zn,Mn;return ne.createElement("li",{tabIndex:0,ref:It,className:ca(ke,gt,k?.toast,y==null||(i=y.classNames)==null?void 0:i.toast,k?.default,k?.[Vt],y==null||(r=y.classNames)==null?void 0:r[Vt]),"data-sonner-toast":"","data-rich-colors":(Zn=y.richColors)!=null?Zn:de,"data-styled":!(y.jsx||y.unstyled||T),"data-mounted":H,"data-promise":!!y.promise,"data-swiped":en,"data-removed":ee,"data-visible":Ti,"data-y-position":va,"data-x-position":ct,"data-index":Y,"data-front":Ei,"data-swiping":ae,"data-dismissible":ia,"data-type":Vt,"data-invert":er,"data-swipe-out":Be,"data-swipe-direction":C,"data-expanded":!!(W||Ee&&H),"data-testid":y.testId,style:{"--index":Y,"--toasts-before":Y,"--z-index":K.length-Y,"--offset":`${ee?Fn:kn.current}px`,"--initial-height":Ee?"auto":`${Si}px`,...A,...y.style},onDragEnd:()=>{Te(!1),ye(null),Nn.current=null},onPointerDown:_e=>{_e.button!==2&&(Ci||!ia||(wi.current=new Date,sn(kn.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(Te(!0),Nn.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,ot,Et;if(Be||!ia)return;Nn.current=null;const Tt=Number(((_e=It.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vn=Number(((ot=It.current)==null?void 0:ot.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ut=new Date().getTime()-((Et=wi.current)==null?void 0:Et.getTime()),Jt=me==="x"?Tt:vn,xa=Math.abs(Jt)/ut;if(Math.abs(Jt)>=_x||xa>.11){sn(kn.current),y.onDismiss==null||y.onDismiss.call(y,y),q(me==="x"?Tt>0?"right":"left":vn>0?"down":"up"),yn(),Gt(!0);return}else{var w,_;(w=It.current)==null||w.style.setProperty("--swipe-amount-x","0px"),(_=It.current)==null||_.style.setProperty("--swipe-amount-y","0px")}Je(!1),Te(!1),ye(null)},onPointerMove:_e=>{var ot,Et,Tt;if(!Nn.current||!ia||((ot=window.getSelection())==null?void 0:ot.toString().length)>0)return;const ut=_e.clientY-Nn.current.y,Jt=_e.clientX-Nn.current.x;var xa;const w=(xa=n.swipeDirections)!=null?xa:Nx(Oe);!me&&(Math.abs(Jt)>1||Math.abs(ut)>1)&&ye(Math.abs(Jt)>Math.abs(ut)?"x":"y");let _={x:0,y:0};const z=J=>1/(1.5+Math.abs(J)/20);if(me==="y"){if(w.includes("top")||w.includes("bottom"))if(w.includes("top")&&ut<0||w.includes("bottom")&&ut>0)_.y=ut;else{const J=ut*z(ut);_.y=Math.abs(J)<Math.abs(ut)?J:ut}}else if(me==="x"&&(w.includes("left")||w.includes("right")))if(w.includes("left")&&Jt<0||w.includes("right")&&Jt>0)_.x=Jt;else{const J=Jt*z(Jt);_.x=Math.abs(J)<Math.abs(Jt)?J:Jt}(Math.abs(_.x)>0||Math.abs(_.y)>0)&&Je(!0),(Et=It.current)==null||Et.style.setProperty("--swipe-amount-x",`${_.x}px`),(Tt=It.current)==null||Tt.style.setProperty("--swipe-amount-y",`${_.y}px`)}},Qa&&!y.jsx&&Vt!=="loading"?ne.createElement("button",{"aria-label":Q,"data-disabled":Ci,"data-close-button":!0,onClick:Ci||!ia?()=>{}:()=>{yn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:ca(k?.closeButton,y==null||(l=y.classNames)==null?void 0:l.closeButton)},(Mn=X?.close)!=null?Mn:px):null,(Vt||y.icon||y.promise)&&y.icon!==null&&(X?.[Vt]!==null||y.icon)?ne.createElement("div",{"data-icon":"",className:ca(k?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Xn():null,y.type!=="loading"?ba:null):null,ne.createElement("div",{"data-content":"",className:ca(k?.content,y==null||(f=y.classNames)==null?void 0:f.content)},ne.createElement("div",{"data-title":"",className:ca(k?.title,y==null||(d=y.classNames)==null?void 0:d.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?ne.createElement("div",{"data-description":"",className:ca(Ae,ya,k?.description,y==null||(m=y.classNames)==null?void 0:m.description)},typeof y.description=="function"?y.description():y.description):null),ne.isValidElement(y.cancel)?y.cancel:y.cancel&&bo(y.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||P,onClick:_e=>{bo(y.cancel)&&ia&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,_e),yn())},className:ca(k?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,ne.isValidElement(y.action)?y.action:y.action&&bo(y.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||ie,onClick:_e=>{bo(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,_e),!_e.defaultPrevented&&yn())},className:ca(k?.actionButton,y==null||(p=y.classNames)==null?void 0:p.actionButton)},y.action.label):null)};function gg(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function Ox(n,i){const r={};return[n,i].forEach((l,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",m=f?Cx:Tx;function g(p){["top","right","bottom","left"].forEach(x=>{r[`${d}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof l=="number"||typeof l=="string"?g(l):typeof l=="object"?["top","right","bottom","left"].forEach(p=>{l[p]===void 0?r[`${d}-${p}`]=m:r[`${d}-${p}`]=typeof l[p]=="number"?`${l[p]}px`:l[p]}):g(m)}),r}const Dx=ne.forwardRef(function(i,r){const{id:l,invert:c,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:m,closeButton:g,className:p,offset:x,mobileOffset:y,theme:T="light",richColors:N,duration:L,style:B,visibleToasts:G=Ex,toastOptions:Y,dir:K=gg(),gap:W=Ax,icons:he,containerAriaLabel:de="Notifications"}=i,[fe,A]=ne.useState([]),P=ne.useMemo(()=>l?fe.filter(H=>H.toasterId===l):fe.filter(H=>!H.toasterId),[fe,l]),ie=ne.useMemo(()=>Array.from(new Set([f].concat(P.filter(H=>H.position).map(H=>H.position)))),[P,f]),[ke,Ae]=ne.useState([]),[Se,Oe]=ne.useState(!1),[ze,Ee]=ne.useState(!1),[k,X]=ne.useState(T!=="system"?T:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=ne.useRef(null),me=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),ye=ne.useRef(null),C=ne.useRef(!1),q=ne.useCallback(H=>{A(I=>{var ee;return(ee=I.find($=>$.id===H.id))!=null&&ee.delete||gn.dismiss(H.id),I.filter(({id:$})=>$!==H.id)})},[]);return ne.useEffect(()=>gn.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{A(I=>I.map(ee=>ee.id===H.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{sx.flushSync(()=>{A(I=>{const ee=I.findIndex($=>$.id===H.id);return ee!==-1?[...I.slice(0,ee),{...I[ee],...H},...I.slice(ee+1)]:[H,...I]})})})}),[fe]),ne.useEffect(()=>{if(T!=="system"){X(T);return}if(T==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:I})=>{X(I?"dark":"light")})}catch{H.addListener(({matches:ee})=>{try{X(ee?"dark":"light")}catch($){console.error($)}})}},[T]),ne.useEffect(()=>{fe.length<=1&&Oe(!1)},[fe]),ne.useEffect(()=>{const H=I=>{var ee;if(d.every(Te=>I[Te]||I.code===Te)){var ae;Oe(!0),(ae=Q.current)==null||ae.focus()}I.code==="Escape"&&(document.activeElement===Q.current||(ee=Q.current)!=null&&ee.contains(document.activeElement))&&Oe(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[d]),ne.useEffect(()=>{if(Q.current)return()=>{ye.current&&(ye.current.focus({preventScroll:!0}),ye.current=null,C.current=!1)}},[Q.current]),ne.createElement("section",{ref:r,"aria-label":`${de} ${me}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((H,I)=>{var ee;const[$,ae]=H.split("-");return P.length?ne.createElement("ol",{key:H,dir:K==="auto"?gg():K,tabIndex:-1,ref:Q,className:p,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":$,"data-x-position":ae,style:{"--front-toast-height":`${((ee=ke[0])==null?void 0:ee.height)||0}px`,"--width":`${Rx}px`,"--gap":`${W}px`,...B,...Ox(x,y)},onBlur:Te=>{C.current&&!Te.currentTarget.contains(Te.relatedTarget)&&(C.current=!1,ye.current&&(ye.current.focus({preventScroll:!0}),ye.current=null))},onFocus:Te=>{Te.target instanceof HTMLElement&&Te.target.dataset.dismissible==="false"||C.current||(C.current=!0,ye.current=Te.relatedTarget)},onMouseEnter:()=>Oe(!0),onMouseMove:()=>Oe(!0),onMouseLeave:()=>{ze||Oe(!1)},onDragEnd:()=>Oe(!1),onPointerDown:Te=>{Te.target instanceof HTMLElement&&Te.target.dataset.dismissible==="false"||Ee(!0)},onPointerUp:()=>Ee(!1)},P.filter(Te=>!Te.position&&I===0||Te.position===H).map((Te,Be)=>{var Gt,en;return ne.createElement(Mx,{key:Te.id,icons:he,index:Be,toast:Te,defaultRichColors:N,duration:(Gt=Y?.duration)!=null?Gt:L,className:Y?.className,descriptionClassName:Y?.descriptionClassName,invert:c,visibleToasts:G,closeButton:(en=Y?.closeButton)!=null?en:g,interacting:ze,position:H,style:Y?.style,unstyled:Y?.unstyled,classNames:Y?.classNames,cancelButtonStyle:Y?.cancelButtonStyle,actionButtonStyle:Y?.actionButtonStyle,closeButtonAriaLabel:Y?.closeButtonAriaLabel,removeToast:q,toasts:P.filter(Je=>Je.position==Te.position),heights:ke.filter(Je=>Je.position==Te.position),setHeights:Ae,expandByDefault:m,gap:W,expanded:Se,swipeDirections:i.swipeDirections})})):null}))}),jx=new F1({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}}),zx="modulepreload",Lx=function(n){return"/"+n},yg={},_n=function(i,r,l){let c=Promise.resolve();if(r&&r.length>0){let g=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");c=g(r.map(p=>{if(p=Lx(p),p in yg)return;yg[p]=!0;const x=p.endsWith(".css"),y=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const T=document.createElement("link");if(T.rel=x?"stylesheet":zx,x||(T.as="script"),T.crossOrigin="",T.href=p,m&&T.setAttribute("nonce",m),document.head.appendChild(T),x)return new Promise((N,L)=>{T.addEventListener("load",N),T.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return c.then(d=>{for(const m of d||[])m.status==="rejected"&&f(m.reason);return i().catch(f)})};var ky=n=>{throw TypeError(n)},Ux=(n,i,r)=>i.has(n)||ky("Cannot "+r),sf=(n,i,r)=>(Ux(n,i,"read from private field"),r?r.call(n):i.get(n)),Bx=(n,i,r)=>i.has(n)?ky("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,r),vg="popstate";function qx(n={}){function i(l,c){let{pathname:f,search:d,hash:m}=l.location;return Is("",{pathname:f,search:d,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(l,c){return typeof c=="string"?c:ma(c)}return Qx(i,r,null,n)}function qe(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function zt(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Hx(){return Math.random().toString(36).substring(2,10)}function bg(n,i){return{usr:n.state,key:n.key,idx:i}}function Is(n,i,r=null,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?vi(i):i,state:r,key:i&&i.key||l||Hx()}}function ma({pathname:n="/",search:i="",hash:r=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function vi(n){let i={};if(n){let r=n.indexOf("#");r>=0&&(i.hash=n.substring(r),n=n.substring(0,r));let l=n.indexOf("?");l>=0&&(i.search=n.substring(l),n=n.substring(0,l)),n&&(i.pathname=n)}return i}function Qx(n,i,r,l={}){let{window:c=document.defaultView,v5Compat:f=!1}=l,d=c.history,m="POP",g=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function y(){m="POP";let G=x(),Y=G==null?null:G-p;p=G,g&&g({action:m,location:B.location,delta:Y})}function T(G,Y){m="PUSH";let K=Is(B.location,G,Y);p=x()+1;let W=bg(K,p),he=B.createHref(K);try{d.pushState(W,"",he)}catch(de){if(de instanceof DOMException&&de.name==="DataCloneError")throw de;c.location.assign(he)}f&&g&&g({action:m,location:B.location,delta:1})}function N(G,Y){m="REPLACE";let K=Is(B.location,G,Y);p=x();let W=bg(K,p),he=B.createHref(K);d.replaceState(W,"",he),f&&g&&g({action:m,location:B.location,delta:0})}function L(G){return Ny(G)}let B={get action(){return m},get location(){return n(c,d)},listen(G){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(vg,y),g=G,()=>{c.removeEventListener(vg,y),g=null}},createHref(G){return i(c,G)},createURL:L,encodeLocation(G){let Y=L(G);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:T,replace:N,go(G){return d.go(G)}};return B}function Ny(n,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),qe(r,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:ma(n);return l=l.replace(/ $/,"%20"),!i&&l.startsWith("//")&&(l=r+l),new URL(l,r)}var Ys,xg=class{constructor(n){if(Bx(this,Ys,new Map),n)for(let[i,r]of n)this.set(i,r)}get(n){if(sf(this,Ys).has(n))return sf(this,Ys).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,i){sf(this,Ys).set(n,i)}};Ys=new WeakMap;var Gx=new Set(["lazy","caseSensitive","path","id","index","children"]);function Vx(n){return Gx.has(n)}var Yx=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Px(n){return Yx.has(n)}function Kx(n){return n.index===!0}function Js(n,i,r=[],l={},c=!1){return n.map((f,d)=>{let m=[...r,String(d)],g=typeof f.id=="string"?f.id:m.join("-");if(qe(f.index!==!0||!f.children,"Cannot specify children on an index route"),qe(c||!l[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),Kx(f)){let p={...f,id:g};return l[g]=Sg(p,i(p)),p}else{let p={...f,id:g,children:void 0};return l[g]=Sg(p,i(p)),f.children&&(p.children=Js(f.children,i,m,l,c)),p}})}function Sg(n,i){return Object.assign(n,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...n.lazy,...i.lazy}}:{}})}function di(n,i,r="/"){return Ps(n,i,r,!1)}function Ps(n,i,r,l){let c=typeof i=="string"?vi(i):i,f=Pn(c.pathname||"/",r);if(f==null)return null;let d=My(n);Xx(d);let m=null;for(let g=0;m==null&&g<d.length;++g){let p=rS(f);m=aS(d[g],p,l)}return m}function Fx(n,i){let{route:r,pathname:l,params:c}=n;return{id:r.id,pathname:l,params:c,data:i[r.id],loaderData:i[r.id],handle:r.handle}}function My(n,i=[],r=[],l="",c=!1){let f=(d,m,g=c,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(l)&&g)return;qe(x.relativePath.startsWith(l),`Absolute route path "${x.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(l.length)}let y=da([l,x.relativePath]),T=r.concat(x);d.children&&d.children.length>0&&(qe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),My(d.children,i,T,y,g)),!(d.path==null&&!d.index)&&i.push({path:y,score:tS(y,d.index),routesMeta:T})};return n.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let g of Oy(d.path))f(d,m,!0,g)}),i}function Oy(n){let i=n.split("/");if(i.length===0)return[];let[r,...l]=i,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(l.length===0)return c?[f,""]:[f];let d=Oy(l.join("/")),m=[];return m.push(...d.map(g=>g===""?f:[f,g].join("/"))),c&&m.push(...d),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function Xx(n){n.sort((i,r)=>i.score!==r.score?r.score-i.score:nS(i.routesMeta.map(l=>l.childrenIndex),r.routesMeta.map(l=>l.childrenIndex)))}var Zx=/^:[\w-]+$/,Ix=3,Jx=2,$x=1,Wx=10,eS=-2,wg=n=>n==="*";function tS(n,i){let r=n.split("/"),l=r.length;return r.some(wg)&&(l+=eS),i&&(l+=Jx),r.filter(c=>!wg(c)).reduce((c,f)=>c+(Zx.test(f)?Ix:f===""?$x:Wx),l)}function nS(n,i){return n.length===i.length&&n.slice(0,-1).every((l,c)=>l===i[c])?n[n.length-1]-i[i.length-1]:0}function aS(n,i,r=!1){let{routesMeta:l}=n,c={},f="/",d=[];for(let m=0;m<l.length;++m){let g=l[m],p=m===l.length-1,x=f==="/"?i:i.slice(f.length)||"/",y=Ho({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},x),T=g.route;if(!y&&p&&r&&!l[l.length-1].route.index&&(y=Ho({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!y)return null;Object.assign(c,y.params),d.push({params:c,pathname:da([f,y.pathname]),pathnameBase:oS(da([f,y.pathnameBase])),route:T}),y.pathnameBase!=="/"&&(f=da([f,y.pathnameBase]))}return d}function Ho(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,l]=iS(n.path,n.caseSensitive,n.end),c=i.match(r);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:l.reduce((p,{paramName:x,isOptional:y},T)=>{if(x==="*"){let L=m[T]||"";d=f.slice(0,f.length-L.length).replace(/(.)\/+$/,"$1")}const N=m[T];return y&&!N?p[x]=void 0:p[x]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:n}}function iS(n,i=!1,r=!0){zt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let l=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,g)=>(l.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(l.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),l]}function rS(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return zt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Pn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,l=n.charAt(r);return l&&l!=="/"?null:n.slice(r)||"/"}function sS({basename:n,pathname:i}){return i==="/"?n:da([n,i])}var Dy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ff=n=>Dy.test(n);function lS(n,i="/"){let{pathname:r,search:l="",hash:c=""}=typeof n=="string"?vi(n):n,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=Eg(r.substring(1),"/"):f=Eg(r,i)):f=i,{pathname:f,search:uS(l),hash:cS(c)}}function Eg(n,i){let r=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function lf(n,i,r,l){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jy(n){return n.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Xf(n){let i=jy(n);return i.map((r,l)=>l===i.length-1?r.pathname:r.pathnameBase)}function Zf(n,i,r,l=!1){let c;typeof n=="string"?c=vi(n):(c={...n},qe(!c.pathname||!c.pathname.includes("?"),lf("?","pathname","search",c)),qe(!c.pathname||!c.pathname.includes("#"),lf("#","pathname","hash",c)),qe(!c.search||!c.search.includes("#"),lf("#","search","hash",c)));let f=n===""||c.pathname==="",d=f?"/":c.pathname,m;if(d==null)m=r;else{let y=i.length-1;if(!l&&d.startsWith("..")){let T=d.split("/");for(;T[0]==="..";)T.shift(),y-=1;c.pathname=T.join("/")}m=y>=0?i[y]:"/"}let g=lS(c,m),p=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||x)&&(g.pathname+="/"),g}var da=n=>n.join("/").replace(/\/\/+/g,"/"),oS=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),uS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,cS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,el=class{constructor(n,i,r,l=!1){this.status=n,this.statusText=i||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function $s(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function tl(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var zy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ly(n,i){let r=n;if(typeof r!="string"||!Dy.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let l=r,c=!1;if(zy)try{let f=new URL(window.location.href),d=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=Pn(d.pathname,i);d.origin===f.origin&&m!=null?r=m+d.search+d.hash:c=!0}catch{zt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:c,to:r}}var mi=Symbol("Uninstrumented");function fS(n,i){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let d=Object.keys(r);for(let m of d)f[m]&&r[m].push(f[m])}}));let l={};if(typeof i.lazy=="function"&&r.lazy.length>0){let c=qr(r.lazy,i.lazy,()=>{});c&&(l.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let d=c[f],m=r[`lazy.${f}`];if(typeof d=="function"&&m.length>0){let g=qr(m,d,()=>{});g&&(l.lazy=Object.assign(l.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&r[c].length>0){let d=f[mi]??f,m=qr(r[c],d,(...g)=>Tg(g[0]));m&&(c==="loader"&&d.hydrate===!0&&(m.hydrate=!0),m[mi]=d,l[c]=m)}}),i.middleware&&i.middleware.length>0&&r.middleware.length>0&&(l.middleware=i.middleware.map(c=>{let f=c[mi]??c,d=qr(r.middleware,f,(...m)=>Tg(m[0]));return d?(d[mi]=f,d):c})),l}function dS(n,i){let r={navigate:[],fetch:[]};if(i.forEach(l=>l({instrument(c){let f=Object.keys(c);for(let d of f)c[d]&&r[d].push(c[d])}})),r.navigate.length>0){let l=n.navigate[mi]??n.navigate,c=qr(r.navigate,l,(...f)=>{let[d,m]=f;return{to:typeof d=="number"||typeof d=="string"?d:d?ma(d):".",...Cg(n,m??{})}});c&&(c[mi]=l,n.navigate=c)}if(r.fetch.length>0){let l=n.fetch[mi]??n.fetch,c=qr(r.fetch,l,(...f)=>{let[d,,m,g]=f;return{href:m??".",fetcherKey:d,...Cg(n,g??{})}});c&&(c[mi]=l,n.fetch=c)}return n}function qr(n,i,r){return n.length===0?null:async(...l)=>{let c=await Uy(n,r(...l),()=>i(...l),n.length-1);if(c.type==="error")throw c.value;return c.value}}async function Uy(n,i,r,l){let c=n[l],f;if(c){let d,m=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=Uy(n,i,r,l-1),f=await d,qe(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(m,i)}catch(g){console.error("An instrumentation function threw an error:",g)}d||await m(),await d}else try{f={type:"success",value:await r()}}catch(d){f={type:"error",value:d}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Tg(n){let{request:i,context:r,params:l,unstable_pattern:c}=n;return{request:hS(i),params:{...l},unstable_pattern:c,context:mS(r)}}function Cg(n,i){return{currentUrl:ma(n.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function hS(n){return{method:n.method,url:n.url,headers:{get:(...i)=>n.headers.get(...i)}}}function mS(n){if(gS(n)){let i={...n};return Object.freeze(i),i}else return{get:i=>n.get(i)}}var pS=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function gS(n){if(n===null||typeof n!="object")return!1;const i=Object.getPrototypeOf(n);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===pS}var By=["POST","PUT","PATCH","DELETE"],yS=new Set(By),vS=["GET",...By],bS=new Set(vS),qy=new Set([301,302,303,307,308]),xS=new Set([307,308]),of={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},SS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},wS=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Hy="remix-router-transitions",Qy=Symbol("ResetLoaderData");function ES(n){const i=n.window?n.window:typeof window<"u"?window:void 0,r=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";qe(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let l=n.hydrationRouteProperties||[],c=n.mapRouteProperties||wS,f=c;if(n.unstable_instrumentations){let w=n.unstable_instrumentations;f=_=>({...c(_),...fS(w.map(z=>z.route).filter(Boolean),_)})}let d={},m=Js(n.routes,f,void 0,d),g,p=n.basename||"/";p.startsWith("/")||(p=`/${p}`);let x=n.dataStrategy||_S,y={...n.future},T=null,N=new Set,L=null,B=null,G=null,Y=n.hydrationData!=null,K=di(m,n.history.location,p),W=!1,he=null,de;if(K==null&&!n.patchRoutesOnNavigation){let w=Gn(404,{pathname:n.history.location.pathname}),{matches:_,route:z}=xo(m);de=!0,K=_,he={[z.id]:w}}else if(K&&!n.hydrationData&&Tt(K,m,n.history.location.pathname).active&&(K=null),K)if(K.some(w=>w.route.lazy))de=!1;else if(!K.some(w=>If(w.route)))de=!0;else{let w=n.hydrationData?n.hydrationData.loaderData:null,_=n.hydrationData?n.hydrationData.errors:null;if(_){let z=K.findIndex(J=>_[J.route.id]!==void 0);de=K.slice(0,z+1).every(J=>!Af(J.route,w,_))}else de=K.every(z=>!Af(z.route,w,_))}else{de=!1,K=[];let w=Tt(null,m,n.history.location.pathname);w.active&&w.matches&&(W=!0,K=w.matches)}let fe,A={historyAction:n.history.action,location:n.history.location,matches:K,initialized:de,navigation:of,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||he,fetchers:new Map,blockers:new Map},P="POP",ie=null,ke=!1,Ae,Se=!1,Oe=new Map,ze=null,Ee=!1,k=!1,X=new Set,Q=new Map,me=0,ye=-1,C=new Map,q=new Set,H=new Map,I=new Map,ee=new Set,$=new Map,ae,Te=null;function Be(){if(T=n.history.listen(({action:w,location:_,delta:z})=>{if(ae){ae(),ae=void 0;return}zt($.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let J=ba({currentLocation:A.location,nextLocation:_,historyAction:w});if(J&&z!=null){let te=new Promise(ve=>{ae=ve});n.history.go(z*-1),Xn(J,{state:"blocked",location:_,proceed(){Xn(J,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),te.then(()=>n.history.go(z))},reset(){let ve=new Map(A.blockers);ve.set(J,qs),Je({blockers:ve})}}),ie?.resolve(),ie=null;return}return ln(w,_)}),r){KS(i,Oe);let w=()=>FS(i,Oe);i.addEventListener("pagehide",w),ze=()=>i.removeEventListener("pagehide",w)}return A.initialized||ln("POP",A.location,{initialHydration:!0}),fe}function Gt(){T&&T(),ze&&ze(),N.clear(),Ae&&Ae.abort(),A.fetchers.forEach((w,_)=>Nn(_)),A.blockers.forEach((w,_)=>yn(_))}function en(w){return N.add(w),()=>N.delete(w)}function Je(w,_={}){w.matches&&(w.matches=w.matches.map(te=>{let ve=d[te.route.id],se=te.route;return se.element!==ve.element||se.errorElement!==ve.errorElement||se.hydrateFallbackElement!==ve.hydrateFallbackElement?{...te,route:ve}:te})),A={...A,...w};let z=[],J=[];A.fetchers.forEach((te,ve)=>{te.state==="idle"&&(ee.has(ve)?z.push(ve):J.push(ve))}),ee.forEach(te=>{!A.fetchers.has(te)&&!Q.has(te)&&z.push(te)}),[...N].forEach(te=>te(A,{deletedFetchers:z,newErrors:w.errors??null,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),z.forEach(te=>Nn(te)),J.forEach(te=>A.fetchers.delete(te))}function Fn(w,_,{flushSync:z}={}){let J=A.actionData!=null&&A.navigation.formMethod!=null&&Wt(A.navigation.formMethod)&&A.navigation.state==="loading"&&w.state?._isRedirect!==!0,te;_.actionData?Object.keys(_.actionData).length>0?te=_.actionData:te=null:J?te=A.actionData:te=null;let ve=_.loaderData?zg(A.loaderData,_.loaderData,_.matches||[],_.errors):A.loaderData,se=A.blockers;se.size>0&&(se=new Map(se),se.forEach((Ce,be)=>se.set(be,qs)));let re=Ee?!1:Et(w,_.matches||A.matches),le=ke===!0||A.navigation.formMethod!=null&&Wt(A.navigation.formMethod)&&w.state?._isRedirect!==!0;g&&(m=g,g=void 0),Ee||P==="POP"||(P==="PUSH"?n.history.push(w,w.state):P==="REPLACE"&&n.history.replace(w,w.state));let ge;if(P==="POP"){let Ce=Oe.get(A.location.pathname);Ce&&Ce.has(w.pathname)?ge={currentLocation:A.location,nextLocation:w}:Oe.has(w.pathname)&&(ge={currentLocation:w,nextLocation:A.location})}else if(Se){let Ce=Oe.get(A.location.pathname);Ce?Ce.add(w.pathname):(Ce=new Set([w.pathname]),Oe.set(A.location.pathname,Ce)),ge={currentLocation:A.location,nextLocation:w}}Je({..._,actionData:te,loaderData:ve,historyAction:P,location:w,initialized:!0,navigation:of,revalidation:"idle",restoreScrollPosition:re,preventScrollReset:le,blockers:se},{viewTransitionOpts:ge,flushSync:z===!0}),P="POP",ke=!1,Se=!1,Ee=!1,k=!1,ie?.resolve(),ie=null,Te?.resolve(),Te=null}async function sn(w,_){if(ie?.resolve(),ie=null,typeof w=="number"){ie||(ie=qg());let Ye=ie.promise;return n.history.go(w),Ye}let z=Rf(A.location,A.matches,p,w,_?.fromRouteId,_?.relative),{path:J,submission:te,error:ve}=Rg(!1,z,_),se=A.location,re=Is(A.location,J,_&&_.state);re={...re,...n.history.encodeLocation(re)};let le=_&&_.replace!=null?_.replace:void 0,ge="PUSH";le===!0?ge="REPLACE":le===!1||te!=null&&Wt(te.formMethod)&&te.formAction===A.location.pathname+A.location.search&&(ge="REPLACE");let Ce=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,be=(_&&_.flushSync)===!0,Ie=ba({currentLocation:se,nextLocation:re,historyAction:ge});if(Ie){Xn(Ie,{state:"blocked",location:re,proceed(){Xn(Ie,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),sn(w,_)},reset(){let Ye=new Map(A.blockers);Ye.set(Ie,qs),Je({blockers:Ye})}});return}await ln(ge,re,{submission:te,pendingError:ve,preventScrollReset:Ce,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:be,callSiteDefaultShouldRevalidate:_&&_.unstable_defaultShouldRevalidate})}function Si(){Te||(Te=qg()),Qa(),Je({revalidation:"loading"});let w=Te.promise;return A.navigation.state==="submitting"?w:A.navigation.state==="idle"?(ln(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),w):(ln(P||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:Se===!0}),w)}async function ln(w,_,z){Ae&&Ae.abort(),Ae=null,P=w,Ee=(z&&z.startUninterruptedRevalidation)===!0,ot(A.location,A.matches),ke=(z&&z.preventScrollReset)===!0,Se=(z&&z.enableViewTransition)===!0;let J=g||m,te=z&&z.overrideNavigation,ve=z?.initialHydration&&A.matches&&A.matches.length>0&&!W?A.matches:di(J,_,p),se=(z&&z.flushSync)===!0;if(ve&&A.initialized&&!k&&LS(A.location,_)&&!(z&&z.submission&&Wt(z.submission.formMethod))){Fn(_,{matches:ve},{flushSync:se});return}let re=Tt(ve,J,_.pathname);if(re.active&&re.matches&&(ve=re.matches),!ve){let{error:bt,notFoundMatches:xt,route:Pe}=Zn(_.pathname);Fn(_,{matches:xt,loaderData:{},errors:{[Pe.id]:bt}},{flushSync:se});return}Ae=new AbortController;let le=Br(n.history,_,Ae.signal,z&&z.submission),ge=n.getContext?await n.getContext():new xg,Ce;if(z&&z.pendingError)Ce=[hi(ve).route.id,{type:"error",error:z.pendingError}];else if(z&&z.submission&&Wt(z.submission.formMethod)){let bt=await ga(le,_,z.submission,ve,ge,re.active,z&&z.initialHydration===!0,{replace:z.replace,flushSync:se});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[xt,Pe]=bt.pendingActionResult;if(An(Pe)&&$s(Pe.error)&&Pe.error.status===404){Ae=null,Fn(_,{matches:bt.matches,loaderData:{},errors:{[xt]:Pe.error}});return}}ve=bt.matches||ve,Ce=bt.pendingActionResult,te=uf(_,z.submission),se=!1,re.active=!1,le=Br(n.history,le.url,le.signal)}let{shortCircuited:be,matches:Ie,loaderData:Ye,errors:yt}=await wi(le,_,ve,ge,re.active,te,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,se,Ce,z&&z.callSiteDefaultShouldRevalidate);be||(Ae=null,Fn(_,{matches:Ie||ve,...Lg(Ce),loaderData:Ye,errors:yt}))}async function ga(w,_,z,J,te,ve,se,re={}){Qa();let le=YS(_,z);if(Je({navigation:le},{flushSync:re.flushSync===!0}),ve){let be=await vn(J,_.pathname,w.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){if(be.partialMatches.length===0){let{matches:Ye,route:yt}=xo(m);return{matches:Ye,pendingActionResult:[yt.id,{type:"error",error:be.error}]}}let Ie=hi(be.partialMatches).route.id;return{matches:be.partialMatches,pendingActionResult:[Ie,{type:"error",error:be.error}]}}else if(be.matches)J=be.matches;else{let{notFoundMatches:Ie,error:Ye,route:yt}=Zn(_.pathname);return{matches:Ie,pendingActionResult:[yt.id,{type:"error",error:Ye}]}}}let ge,Ce=_o(J,_);if(!Ce.route.action&&!Ce.route.lazy)ge={type:"error",error:Gn(405,{method:w.method,pathname:_.pathname,routeId:Ce.route.id})};else{let be=Hr(f,d,w,J,Ce,se?[]:l,te),Ie=await ya(w,be,te,null);if(ge=Ie[Ce.route.id],!ge){for(let Ye of J)if(Ie[Ye.route.id]){ge=Ie[Ye.route.id];break}}if(w.signal.aborted)return{shortCircuited:!0}}if(Xi(ge)){let be;return re&&re.replace!=null?be=re.replace:be=Og(ge.response.headers.get("Location"),new URL(w.url),p,n.history)===A.location.pathname+A.location.search,await gt(w,ge,!0,{submission:z,replace:be}),{shortCircuited:!0}}if(An(ge)){let be=hi(J,Ce.route.id);return(re&&re.replace)!==!0&&(P="PUSH"),{matches:J,pendingActionResult:[be.route.id,ge,Ce.route.id]}}return{matches:J,pendingActionResult:[Ce.route.id,ge]}}async function wi(w,_,z,J,te,ve,se,re,le,ge,Ce,be,Ie){let Ye=ve||uf(_,se),yt=se||re||Bg(Ye),bt=!Ee&&!ge;if(te){if(bt){let Ct=It(be);Je({navigation:Ye,...Ct!==void 0?{actionData:Ct}:{}},{flushSync:Ce})}let Ke=await vn(z,_.pathname,w.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){if(Ke.partialMatches.length===0){let{matches:$n,route:Pt}=xo(m);return{matches:$n,loaderData:{},errors:{[Pt.id]:Ke.error}}}let Ct=hi(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[Ct]:Ke.error}}}else if(Ke.matches)z=Ke.matches;else{let{error:Ct,notFoundMatches:$n,route:Pt}=Zn(_.pathname);return{matches:$n,loaderData:{},errors:{[Pt.id]:Ct}}}}let xt=g||m,{dsMatches:Pe,revalidatingFetchers:Ht}=Ag(w,J,f,d,n.history,A,z,yt,_,ge?[]:l,ge===!0,k,X,ee,H,q,xt,p,n.patchRoutesOnNavigation!=null,be,Ie);if(ye=++me,!n.dataStrategy&&!Pe.some(Ke=>Ke.shouldLoad)&&!Pe.some(Ke=>Ke.route.middleware&&Ke.route.middleware.length>0)&&Ht.length===0){let Ke=Lt();return Fn(_,{matches:z,loaderData:{},errors:be&&An(be[1])?{[be[0]]:be[1].error}:null,...Lg(be),...Ke?{fetchers:new Map(A.fetchers)}:{}},{flushSync:Ce}),{shortCircuited:!0}}if(bt){let Ke={};if(!te){Ke.navigation=Ye;let Ct=It(be);Ct!==void 0&&(Ke.actionData=Ct)}Ht.length>0&&(Ke.fetchers=Ei(Ht)),Je(Ke,{flushSync:Ce})}Ht.forEach(Ke=>{ct(Ke.key),Ke.controller&&Q.set(Ke.key,Ke.controller)});let un=()=>Ht.forEach(Ke=>ct(Ke.key));Ae&&Ae.signal.addEventListener("abort",un);let{loaderResults:mt,fetcherResults:In}=await ra(Pe,Ht,w,J);if(w.signal.aborted)return{shortCircuited:!0};Ae&&Ae.signal.removeEventListener("abort",un),Ht.forEach(Ke=>Q.delete(Ke.key));let bn=So(mt);if(bn)return await gt(w,bn.result,!0,{replace:le}),{shortCircuited:!0};if(bn=So(In),bn)return q.add(bn.key),await gt(w,bn.result,!0,{replace:le}),{shortCircuited:!0};let{loaderData:Jn,errors:On}=jg(A,z,mt,be,Ht,In);ge&&A.errors&&(On={...A.errors,...On});let Sa=Lt(),Ri=er(ye),Ai=Sa||Ri||Ht.length>0;return{matches:z,loaderData:Jn,errors:On,...Ai?{fetchers:new Map(A.fetchers)}:{}}}function It(w){if(w&&!An(w[1]))return{[w[0]]:w[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Ei(w){return w.forEach(_=>{let z=A.fetchers.get(_.key),J=Hs(void 0,z?z.data:void 0);A.fetchers.set(_.key,J)}),new Map(A.fetchers)}async function Ti(w,_,z,J){ct(w);let te=(J&&J.flushSync)===!0,ve=g||m,se=Rf(A.location,A.matches,p,z,_,J?.relative),re=di(ve,se,p),le=Tt(re,ve,se);if(le.active&&le.matches&&(re=le.matches),!re){tn(w,_,Gn(404,{pathname:se}),{flushSync:te});return}let{path:ge,submission:Ce,error:be}=Rg(!0,se,J);if(be){tn(w,_,be,{flushSync:te});return}let Ie=n.getContext?await n.getContext():new xg,Ye=(J&&J.preventScrollReset)===!0;if(Ce&&Wt(Ce.formMethod)){await Vt(w,_,ge,re,Ie,le.active,te,Ye,Ce,J&&J.unstable_defaultShouldRevalidate);return}H.set(w,{routeId:_,path:ge}),await ia(w,_,ge,re,Ie,le.active,te,Ye,Ce)}async function Vt(w,_,z,J,te,ve,se,re,le,ge){Qa(),H.delete(w);let Ce=A.fetchers.get(w);Yt(w,PS(le,Ce),{flushSync:se});let be=new AbortController,Ie=Br(n.history,z,be.signal,le);if(ve){let Fe=await vn(J,new URL(Ie.url).pathname,Ie.signal,w);if(Fe.type==="aborted")return;if(Fe.type==="error"){tn(w,_,Fe.error,{flushSync:se});return}else if(Fe.matches)J=Fe.matches;else{tn(w,_,Gn(404,{pathname:z}),{flushSync:se});return}}let Ye=_o(J,z);if(!Ye.route.action&&!Ye.route.lazy){let Fe=Gn(405,{method:le.formMethod,pathname:z,routeId:_});tn(w,_,Fe,{flushSync:se});return}Q.set(w,be);let yt=me,bt=Hr(f,d,Ie,J,Ye,l,te),xt=await ya(Ie,bt,te,w),Pe=xt[Ye.route.id];if(!Pe){for(let Fe of bt)if(xt[Fe.route.id]){Pe=xt[Fe.route.id];break}}if(Ie.signal.aborted){Q.get(w)===be&&Q.delete(w);return}if(ee.has(w)){if(Xi(Pe)||An(Pe)){Yt(w,Ha(void 0));return}}else{if(Xi(Pe))if(Q.delete(w),ye>yt){Yt(w,Ha(void 0));return}else return q.add(w),Yt(w,Hs(le)),gt(Ie,Pe,!1,{fetcherSubmission:le,preventScrollReset:re});if(An(Pe)){tn(w,_,Pe.error);return}}let Ht=A.navigation.location||A.location,un=Br(n.history,Ht,be.signal),mt=g||m,In=A.navigation.state!=="idle"?di(mt,A.navigation.location,p):A.matches;qe(In,"Didn't find any matches after fetcher action");let bn=++me;C.set(w,bn);let Jn=Hs(le,Pe.data);A.fetchers.set(w,Jn);let{dsMatches:On,revalidatingFetchers:Sa}=Ag(un,te,f,d,n.history,A,In,le,Ht,l,!1,k,X,ee,H,q,mt,p,n.patchRoutesOnNavigation!=null,[Ye.route.id,Pe],ge);Sa.filter(Fe=>Fe.key!==w).forEach(Fe=>{let _i=Fe.key,sl=A.fetchers.get(_i),Zr=Hs(void 0,sl?sl.data:void 0);A.fetchers.set(_i,Zr),ct(_i),Fe.controller&&Q.set(_i,Fe.controller)}),Je({fetchers:new Map(A.fetchers)});let Ri=()=>Sa.forEach(Fe=>ct(Fe.key));be.signal.addEventListener("abort",Ri);let{loaderResults:Ai,fetcherResults:Ke}=await ra(On,Sa,un,te);if(be.signal.aborted)return;if(be.signal.removeEventListener("abort",Ri),C.delete(w),Q.delete(w),Sa.forEach(Fe=>Q.delete(Fe.key)),A.fetchers.has(w)){let Fe=Ha(Pe.data);A.fetchers.set(w,Fe)}let Ct=So(Ai);if(Ct)return gt(un,Ct.result,!1,{preventScrollReset:re});if(Ct=So(Ke),Ct)return q.add(Ct.key),gt(un,Ct.result,!1,{preventScrollReset:re});let{loaderData:$n,errors:Pt}=jg(A,In,Ai,void 0,Sa,Ke);er(bn),A.navigation.state==="loading"&&bn>ye?(qe(P,"Expected pending action"),Ae&&Ae.abort(),Fn(A.navigation.location,{matches:In,loaderData:$n,errors:Pt,fetchers:new Map(A.fetchers)})):(Je({errors:Pt,loaderData:zg(A.loaderData,$n,In,Pt),fetchers:new Map(A.fetchers)}),k=!1)}async function ia(w,_,z,J,te,ve,se,re,le){let ge=A.fetchers.get(w);Yt(w,Hs(le,ge?ge.data:void 0),{flushSync:se});let Ce=new AbortController,be=Br(n.history,z,Ce.signal);if(ve){let Pe=await vn(J,new URL(be.url).pathname,be.signal,w);if(Pe.type==="aborted")return;if(Pe.type==="error"){tn(w,_,Pe.error,{flushSync:se});return}else if(Pe.matches)J=Pe.matches;else{tn(w,_,Gn(404,{pathname:z}),{flushSync:se});return}}let Ie=_o(J,z);Q.set(w,Ce);let Ye=me,yt=Hr(f,d,be,J,Ie,l,te),xt=(await ya(be,yt,te,w))[Ie.route.id];if(Q.get(w)===Ce&&Q.delete(w),!be.signal.aborted){if(ee.has(w)){Yt(w,Ha(void 0));return}if(Xi(xt))if(ye>Ye){Yt(w,Ha(void 0));return}else{q.add(w),await gt(be,xt,!1,{preventScrollReset:re});return}if(An(xt)){tn(w,_,xt.error);return}Yt(w,Ha(xt.data))}}async function gt(w,_,z,{submission:J,fetcherSubmission:te,preventScrollReset:ve,replace:se}={}){z||(ie?.resolve(),ie=null),_.response.headers.has("X-Remix-Revalidate")&&(k=!0);let re=_.response.headers.get("Location");qe(re,"Expected a Location header on the redirect Response"),re=Og(re,new URL(w.url),p,n.history);let le=Is(A.location,re,{_isRedirect:!0});if(r){let yt=!1;if(_.response.headers.has("X-Remix-Reload-Document"))yt=!0;else if(Ff(re)){const bt=Ny(re,!0);yt=bt.origin!==i.location.origin||Pn(bt.pathname,p)==null}if(yt){se?i.location.replace(re):i.location.assign(re);return}}Ae=null;let ge=se===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ce,formAction:be,formEncType:Ie}=A.navigation;!J&&!te&&Ce&&be&&Ie&&(J=Bg(A.navigation));let Ye=J||te;if(xS.has(_.response.status)&&Ye&&Wt(Ye.formMethod))await ln(ge,le,{submission:{...Ye,formAction:re},preventScrollReset:ve||ke,enableViewTransition:z?Se:void 0});else{let yt=uf(le,J);await ln(ge,le,{overrideNavigation:yt,fetcherSubmission:te,preventScrollReset:ve||ke,enableViewTransition:z?Se:void 0})}}async function ya(w,_,z,J){let te,ve={};try{te=await NS(x,w,_,J,z,!1)}catch(se){return _.filter(re=>re.shouldLoad).forEach(re=>{ve[re.route.id]={type:"error",error:se}}),ve}if(w.signal.aborted)return ve;if(!Wt(w.method))for(let se of _){if(te[se.route.id]?.type==="error")break;!te.hasOwnProperty(se.route.id)&&!A.loaderData.hasOwnProperty(se.route.id)&&(!A.errors||!A.errors.hasOwnProperty(se.route.id))&&se.shouldCallHandler()&&(te[se.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${se.route.id}`)})}for(let[se,re]of Object.entries(te))if(HS(re)){let le=re.result;ve[se]={type:"redirect",response:jS(le,w,se,_,p)}}else ve[se]=await DS(re);return ve}async function ra(w,_,z,J){let te=ya(z,w,J,null),ve=Promise.all(_.map(async le=>{if(le.matches&&le.match&&le.request&&le.controller){let Ce=(await ya(le.request,le.matches,J,le.key))[le.match.route.id];return{[le.key]:Ce}}else return Promise.resolve({[le.key]:{type:"error",error:Gn(404,{pathname:le.path})}})})),se=await te,re=(await ve).reduce((le,ge)=>Object.assign(le,ge),{});return{loaderResults:se,fetcherResults:re}}function Qa(){k=!0,H.forEach((w,_)=>{Q.has(_)&&X.add(_),ct(_)})}function Yt(w,_,z={}){A.fetchers.set(w,_),Je({fetchers:new Map(A.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function tn(w,_,z,J={}){let te=hi(A.matches,_);Nn(w),Je({errors:{[te.route.id]:z},fetchers:new Map(A.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function kn(w){return I.set(w,(I.get(w)||0)+1),ee.has(w)&&ee.delete(w),A.fetchers.get(w)||SS}function Wi(w,_){ct(w,_?.reason),Yt(w,Ha(null))}function Nn(w){let _=A.fetchers.get(w);Q.has(w)&&!(_&&_.state==="loading"&&C.has(w))&&ct(w),H.delete(w),C.delete(w),q.delete(w),ee.delete(w),X.delete(w),A.fetchers.delete(w)}function va(w){let _=(I.get(w)||0)-1;_<=0?(I.delete(w),ee.add(w)):I.set(w,_),Je({fetchers:new Map(A.fetchers)})}function ct(w,_){let z=Q.get(w);z&&(z.abort(_),Q.delete(w))}function on(w){for(let _ of w){let z=kn(_),J=Ha(z.data);A.fetchers.set(_,J)}}function Lt(){let w=[],_=!1;for(let z of q){let J=A.fetchers.get(z);qe(J,`Expected fetcher: ${z}`),J.state==="loading"&&(q.delete(z),w.push(z),_=!0)}return on(w),_}function er(w){let _=[];for(let[z,J]of C)if(J<w){let te=A.fetchers.get(z);qe(te,`Expected fetcher: ${z}`),te.state==="loading"&&(ct(z),C.delete(z),_.push(z))}return on(_),_.length>0}function Ci(w,_){let z=A.blockers.get(w)||qs;return $.get(w)!==_&&$.set(w,_),z}function yn(w){A.blockers.delete(w),$.delete(w)}function Xn(w,_){let z=A.blockers.get(w)||qs;qe(z.state==="unblocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="proceeding"||z.state==="blocked"&&_.state==="unblocked"||z.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${z.state} -> ${_.state}`);let J=new Map(A.blockers);J.set(w,_),Je({blockers:J})}function ba({currentLocation:w,nextLocation:_,historyAction:z}){if($.size===0)return;$.size>1&&zt(!1,"A router only supports one blocker at a time");let J=Array.from($.entries()),[te,ve]=J[J.length-1],se=A.blockers.get(te);if(!(se&&se.state==="proceeding")&&ve({currentLocation:w,nextLocation:_,historyAction:z}))return te}function Zn(w){let _=Gn(404,{pathname:w}),z=g||m,{matches:J,route:te}=xo(z);return{notFoundMatches:J,route:te,error:_}}function Mn(w,_,z){if(L=w,G=_,B=z||null,!Y&&A.navigation===of){Y=!0;let J=Et(A.location,A.matches);J!=null&&Je({restoreScrollPosition:J})}return()=>{L=null,G=null,B=null}}function _e(w,_){return B&&B(w,_.map(J=>Fx(J,A.loaderData)))||w.key}function ot(w,_){if(L&&G){let z=_e(w,_);L[z]=G()}}function Et(w,_){if(L){let z=_e(w,_),J=L[z];if(typeof J=="number")return J}return null}function Tt(w,_,z){if(n.patchRoutesOnNavigation)if(w){if(Object.keys(w[0].params).length>0)return{active:!0,matches:Ps(_,z,p,!0)}}else return{active:!0,matches:Ps(_,z,p,!0)||[]};return{active:!1,matches:null}}async function vn(w,_,z,J){if(!n.patchRoutesOnNavigation)return{type:"success",matches:w};let te=w;for(;;){let ve=g==null,se=g||m,re=d;try{await n.patchRoutesOnNavigation({signal:z,path:_,matches:te,fetcherKey:J,patch:(Ce,be)=>{z.aborted||_g(Ce,be,se,re,f,!1)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:te}}finally{ve&&!z.aborted&&(m=[...m])}if(z.aborted)return{type:"aborted"};let le=di(se,_,p),ge=null;if(le){if(Object.keys(le[0].params).length===0)return{type:"success",matches:le};if(ge=Ps(se,_,p,!0),!(ge&&te.length<ge.length&&ut(te,ge.slice(0,te.length))))return{type:"success",matches:le}}if(ge||(ge=Ps(se,_,p,!0)),!ge||ut(te,ge))return{type:"success",matches:null};te=ge}}function ut(w,_){return w.length===_.length&&w.every((z,J)=>z.route.id===_[J].route.id)}function Jt(w){d={},g=Js(w,f,void 0,d)}function xa(w,_,z=!1){let J=g==null;_g(w,_,g||m,d,f,z),J&&(m=[...m],Je({}))}return fe={get basename(){return p},get future(){return y},get state(){return A},get routes(){return m},get window(){return i},initialize:Be,subscribe:en,enableScrollRestoration:Mn,navigate:sn,fetch:Ti,revalidate:Si,createHref:w=>n.history.createHref(w),encodeLocation:w=>n.history.encodeLocation(w),getFetcher:kn,resetFetcher:Wi,deleteFetcher:va,dispose:Gt,getBlocker:Ci,deleteBlocker:yn,patchRoutes:xa,_internalFetchControllers:Q,_internalSetRoutes:Jt,_internalSetStateDoNotUseOrYouWillBreakYourApp(w){Je(w)}},n.unstable_instrumentations&&(fe=dS(fe,n.unstable_instrumentations.map(w=>w.router).filter(Boolean))),fe}function TS(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Rf(n,i,r,l,c,f){let d,m;if(c){d=[];for(let p of i)if(d.push(p),p.route.id===c){m=p;break}}else d=i,m=i[i.length-1];let g=Zf(l||".",Xf(d),Pn(n.pathname,r)||n.pathname,f==="path");if(l==null&&(g.search=n.search,g.hash=n.hash),(l==null||l===""||l===".")&&m){let p=$f(g.search);if(m.route.index&&!p)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&p){let x=new URLSearchParams(g.search),y=x.getAll("index");x.delete("index"),y.filter(N=>N).forEach(N=>x.append("index",N));let T=x.toString();g.search=T?`?${T}`:""}}return r!=="/"&&(g.pathname=sS({basename:r,pathname:g.pathname})),ma(g)}function Rg(n,i,r){if(!r||!TS(r))return{path:i};if(r.formMethod&&!VS(r.formMethod))return{path:i,error:Gn(405,{method:r.formMethod})};let l=()=>({path:i,error:Gn(400,{type:"invalid-body"})}),f=(r.formMethod||"get").toUpperCase(),d=Fy(i);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Wt(f))return l();let y=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((T,[N,L])=>`${T}${N}=${L}
11
+ `,""):String(r.body);return{path:i,submission:{formMethod:f,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:y}}}else if(r.formEncType==="application/json"){if(!Wt(f))return l();try{let y=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:i,submission:{formMethod:f,formAction:d,formEncType:r.formEncType,formData:void 0,json:y,text:void 0}}}catch{return l()}}}qe(typeof FormData=="function","FormData is not available in this environment");let m,g;if(r.formData)m=kf(r.formData),g=r.formData;else if(r.body instanceof FormData)m=kf(r.body),g=r.body;else if(r.body instanceof URLSearchParams)m=r.body,g=Dg(m);else if(r.body==null)m=new URLSearchParams,g=new FormData;else try{m=new URLSearchParams(r.body),g=Dg(m)}catch{return l()}let p={formMethod:f,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Wt(p.formMethod))return{path:i,submission:p};let x=vi(i);return n&&x.search&&$f(x.search)&&m.append("index",""),x.search=`?${m}`,{path:ma(x),submission:p}}function Ag(n,i,r,l,c,f,d,m,g,p,x,y,T,N,L,B,G,Y,K,W,he){let de=W?An(W[1])?W[1].error:W[1].data:void 0,fe=c.createURL(f.location),A=c.createURL(g),P;if(x&&f.errors){let Ee=Object.keys(f.errors)[0];P=d.findIndex(k=>k.route.id===Ee)}else if(W&&An(W[1])){let Ee=W[0];P=d.findIndex(k=>k.route.id===Ee)-1}let ie=W?W[1].statusCode:void 0,ke=ie&&ie>=400,Ae={currentUrl:fe,currentParams:f.matches[0]?.params||{},nextUrl:A,nextParams:d[0].params,...m,actionResult:de,actionStatus:ie},Se=tl(d),Oe=d.map((Ee,k)=>{let{route:X}=Ee,Q=null;if(P!=null&&k>P?Q=!1:X.lazy?Q=!0:If(X)?x?Q=Af(X,f.loaderData,f.errors):CS(f.loaderData,f.matches[k],Ee)&&(Q=!0):Q=!1,Q!==null)return _f(r,l,n,Se,Ee,p,i,Q);let me=!1;typeof he=="boolean"?me=he:ke?me=!1:(y||fe.pathname+fe.search===A.pathname+A.search||fe.search!==A.search||RS(f.matches[k],Ee))&&(me=!0);let ye={...Ae,defaultShouldRevalidate:me},C=Xs(Ee,ye);return _f(r,l,n,Se,Ee,p,i,C,ye,he)}),ze=[];return L.forEach((Ee,k)=>{if(x||!d.some(I=>I.route.id===Ee.routeId)||N.has(k))return;let X=f.fetchers.get(k),Q=X&&X.state!=="idle"&&X.data===void 0,me=di(G,Ee.path,Y);if(!me){if(K&&Q)return;ze.push({key:k,routeId:Ee.routeId,path:Ee.path,matches:null,match:null,request:null,controller:null});return}if(B.has(k))return;let ye=_o(me,Ee.path),C=new AbortController,q=Br(c,Ee.path,C.signal),H=null;if(T.has(k))T.delete(k),H=Hr(r,l,q,me,ye,p,i);else if(Q)y&&(H=Hr(r,l,q,me,ye,p,i));else{let I;typeof he=="boolean"?I=he:ke?I=!1:I=y;let ee={...Ae,defaultShouldRevalidate:I};Xs(ye,ee)&&(H=Hr(r,l,q,me,ye,p,i,ee))}H&&ze.push({key:k,routeId:Ee.routeId,path:Ee.path,matches:H,match:ye,request:q,controller:C})}),{dsMatches:Oe,revalidatingFetchers:ze}}function If(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function Af(n,i,r){if(n.lazy)return!0;if(!If(n))return!1;let l=i!=null&&n.id in i,c=r!=null&&r[n.id]!==void 0;return!l&&c?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!l&&!c}function CS(n,i,r){let l=!i||r.route.id!==i.route.id,c=!n.hasOwnProperty(r.route.id);return l||c}function RS(n,i){let r=n.route.path;return n.pathname!==i.pathname||r!=null&&r.endsWith("*")&&n.params["*"]!==i.params["*"]}function Xs(n,i){if(n.route.shouldRevalidate){let r=n.route.shouldRevalidate(i);if(typeof r=="boolean")return r}return i.defaultShouldRevalidate}function _g(n,i,r,l,c,f){let d;if(n){let p=l[n];qe(p,`No route found to patch children into: routeId = ${n}`),p.children||(p.children=[]),d=p.children}else d=r;let m=[],g=[];if(i.forEach(p=>{let x=d.find(y=>Gy(p,y));x?g.push({existingRoute:x,newRoute:p}):m.push(p)}),m.length>0){let p=Js(m,c,[n||"_","patch",String(d?.length||"0")],l);d.push(...p)}if(f&&g.length>0)for(let p=0;p<g.length;p++){let{existingRoute:x,newRoute:y}=g[p],T=x,[N]=Js([y],c,[],{},!0);Object.assign(T,{element:N.element?N.element:T.element,errorElement:N.errorElement?N.errorElement:T.errorElement,hydrateFallbackElement:N.hydrateFallbackElement?N.hydrateFallbackElement:T.hydrateFallbackElement})}}function Gy(n,i){return"id"in n&&"id"in i&&n.id===i.id?!0:n.index===i.index&&n.path===i.path&&n.caseSensitive===i.caseSensitive?(!n.children||n.children.length===0)&&(!i.children||i.children.length===0)?!0:n.children.every((r,l)=>i.children?.some(c=>Gy(r,c))):!1}var kg=new WeakMap,Vy=({key:n,route:i,manifest:r,mapRouteProperties:l})=>{let c=r[i.id];if(qe(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[n];if(!f)return;let d=kg.get(c);d||(d={},kg.set(c,d));let m=d[n];if(m)return m;let g=(async()=>{let p=Vx(n),y=c[n]!==void 0&&n!=="hasErrorBoundary";if(p)zt(!p,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),d[n]=Promise.resolve();else if(y)zt(!1,`Route "${c.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let T=await f();T!=null&&(Object.assign(c,{[n]:T}),Object.assign(c,l(c)))}typeof c.lazy=="object"&&(c.lazy[n]=void 0,Object.values(c.lazy).every(T=>T===void 0)&&(c.lazy=void 0))})();return d[n]=g,g},Ng=new WeakMap;function AS(n,i,r,l,c){let f=r[n.id];if(qe(f,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let x=Ng.get(f);if(x)return{lazyRoutePromise:x,lazyHandlerPromise:x};let y=(async()=>{qe(typeof n.lazy=="function","No lazy route function found");let T=await n.lazy(),N={};for(let L in T){let B=T[L];if(B===void 0)continue;let G=Px(L),K=f[L]!==void 0&&L!=="hasErrorBoundary";G?zt(!G,"Route property "+L+" is not a supported property to be returned from a lazy route function. This property will be ignored."):K?zt(!K,`Route "${f.id}" has a static property "${L}" defined but its lazy function is also returning a value for this property. The lazy route property "${L}" will be ignored.`):N[L]=B}Object.assign(f,N),Object.assign(f,{...l(f),lazy:void 0})})();return Ng.set(f,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let d=Object.keys(n.lazy),m=[],g;for(let x of d){if(c&&c.includes(x))continue;let y=Vy({key:x,route:n,manifest:r,mapRouteProperties:l});y&&(m.push(y),x===i&&(g=y))}let p=m.length>0?Promise.all(m).then(()=>{}):void 0;return p?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:g}}async function Mg(n){let i=n.matches.filter(c=>c.shouldLoad),r={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{r[i[f].route.id]=c}),r}async function _S(n){return n.matches.some(i=>i.route.middleware)?Yy(n,()=>Mg(n)):Mg(n)}function Yy(n,i){return kS(n,i,l=>{if(GS(l))throw l;return l},BS,r);function r(l,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:l}}));{let{matches:d}=n,m=Math.min(Math.max(d.findIndex(p=>p.route.id===c),0),Math.max(d.findIndex(p=>p.shouldCallHandler()),0)),g=hi(d,d[m].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:l}})}}}async function kS(n,i,r,l,c){let{matches:f,request:d,params:m,context:g,unstable_pattern:p}=n,x=f.flatMap(T=>T.route.middleware?T.route.middleware.map(N=>[T.route.id,N]):[]);return await Py({request:d,params:m,context:g,unstable_pattern:p},x,i,r,l,c)}async function Py(n,i,r,l,c,f,d=0){let{request:m}=n;if(m.signal.aborted)throw m.signal.reason??new Error(`Request aborted: ${m.method} ${m.url}`);let g=i[d];if(!g)return await r();let[p,x]=g,y,T=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await Py(n,i,r,l,c,f,d+1)},y.value}catch(N){return y={value:await f(N,p,y)},y.value}};try{let N=await x(n,T),L=N!=null?l(N):void 0;return c(L)?L:y?L??y.value:(y={value:await T()},y.value)}catch(N){return await f(N,p,y)}}function Ky(n,i,r,l,c){let f=Vy({key:"middleware",route:l.route,manifest:i,mapRouteProperties:n}),d=AS(l.route,Wt(r.method)?"action":"loader",i,n,c);return{middleware:f,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function _f(n,i,r,l,c,f,d,m,g=null,p){let x=!1,y=Ky(n,i,r,c,f);return{...c,_lazyPromises:y,shouldLoad:m,shouldRevalidateArgs:g,shouldCallHandler(T){return x=!0,g?typeof p=="boolean"?Xs(c,{...g,defaultShouldRevalidate:p}):typeof T=="boolean"?Xs(c,{...g,defaultShouldRevalidate:T}):Xs(c,g):m},resolve(T){let{lazy:N,loader:L,middleware:B}=c.route,G=x||m||T&&!Wt(r.method)&&(N||L),Y=B&&B.length>0&&!L&&!N;return G&&(Wt(r.method)||!Y)?MS({request:r,unstable_pattern:l,match:c,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:T,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function Hr(n,i,r,l,c,f,d,m=null){return l.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:m,shouldCallHandler:()=>!1,_lazyPromises:Ky(n,i,r,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:_f(n,i,r,tl(l),g,f,d,!0,m))}async function NS(n,i,r,l,c,f){r.some(p=>p._lazyPromises?.middleware)&&await Promise.all(r.map(p=>p._lazyPromises?.middleware));let d={request:i,unstable_pattern:tl(r),params:r[0].params,context:c,matches:r},g=await n({...d,fetcherKey:l,runClientMiddleware:p=>{let x=d;return Yy(x,()=>p({...x,fetcherKey:l,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(p=>[p._lazyPromises?.handler,p._lazyPromises?.route]))}catch{}return g}async function MS({request:n,unstable_pattern:i,match:r,lazyHandlerPromise:l,lazyRoutePromise:c,handlerOverride:f,scopedContext:d}){let m,g,p=Wt(n.method),x=p?"action":"loader",y=T=>{let N,L=new Promise((Y,K)=>N=K);g=()=>N(),n.signal.addEventListener("abort",g);let B=Y=>typeof T!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${x}" [routeId: ${r.route.id}]`)):T({request:n,unstable_pattern:i,params:r.params,context:d},...Y!==void 0?[Y]:[]),G=(async()=>{try{return{type:"data",result:await(f?f(K=>B(K)):B())}}catch(Y){return{type:"error",result:Y}}})();return Promise.race([G,L])};try{let T=p?r.route.action:r.route.loader;if(l||c)if(T){let N,[L]=await Promise.all([y(T).catch(B=>{N=B}),l,c]);if(N!==void 0)throw N;m=L}else{await l;let N=p?r.route.action:r.route.loader;if(N)[m]=await Promise.all([y(N),c]);else if(x==="action"){let L=new URL(n.url),B=L.pathname+L.search;throw Gn(405,{method:n.method,pathname:B,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(T)m=await y(T);else{let N=new URL(n.url),L=N.pathname+N.search;throw Gn(404,{pathname:L})}}catch(T){return{type:"error",result:T}}finally{g&&n.signal.removeEventListener("abort",g)}return m}async function OS(n){let i=n.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?n.body==null?null:n.json():n.text()}async function DS(n){let{result:i,type:r}=n;if(Jf(i)){let l;try{l=await OS(i)}catch(c){return{type:"error",error:c}}return r==="error"?{type:"error",error:new el(i.status,i.statusText,l),statusCode:i.status,headers:i.headers}:{type:"data",data:l,statusCode:i.status,headers:i.headers}}return r==="error"?Ug(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:US(i),statusCode:$s(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:$s(i)?i.status:void 0}:Ug(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function jS(n,i,r,l,c){let f=n.headers.get("Location");if(qe(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ff(f)){let d=l.slice(0,l.findIndex(m=>m.route.id===r)+1);f=Rf(new URL(i.url),d,c,f),n.headers.set("Location",f)}return n}function Og(n,i,r,l){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Ff(n)){let f=n,d=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(d.protocol))throw new Error("Invalid redirect location");let m=Pn(d.pathname,r)!=null;if(d.origin===i.origin&&m)return d.pathname+d.search+d.hash}try{let f=l.createURL(n);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Br(n,i,r,l){let c=n.createURL(Fy(i)).toString(),f={signal:r};if(l&&Wt(l.formMethod)){let{formMethod:d,formEncType:m}=l;f.method=d.toUpperCase(),m==="application/json"?(f.headers=new Headers({"Content-Type":m}),f.body=JSON.stringify(l.json)):m==="text/plain"?f.body=l.text:m==="application/x-www-form-urlencoded"&&l.formData?f.body=kf(l.formData):f.body=l.formData}return new Request(c,f)}function kf(n){let i=new URLSearchParams;for(let[r,l]of n.entries())i.append(r,typeof l=="string"?l:l.name);return i}function Dg(n){let i=new FormData;for(let[r,l]of n.entries())i.append(r,l);return i}function zS(n,i,r,l=!1,c=!1){let f={},d=null,m,g=!1,p={},x=r&&An(r[1])?r[1].error:void 0;return n.forEach(y=>{if(!(y.route.id in i))return;let T=y.route.id,N=i[T];if(qe(!Xi(N),"Cannot handle redirect results in processLoaderData"),An(N)){let L=N.error;if(x!==void 0&&(L=x,x=void 0),d=d||{},c)d[T]=L;else{let B=hi(n,T);d[B.route.id]==null&&(d[B.route.id]=L)}l||(f[T]=Qy),g||(g=!0,m=$s(N.error)?N.error.status:500),N.headers&&(p[T]=N.headers)}else f[T]=N.data,N.statusCode&&N.statusCode!==200&&!g&&(m=N.statusCode),N.headers&&(p[T]=N.headers)}),x!==void 0&&r&&(d={[r[0]]:x},r[2]&&(f[r[2]]=void 0)),{loaderData:f,errors:d,statusCode:m||200,loaderHeaders:p}}function jg(n,i,r,l,c,f){let{loaderData:d,errors:m}=zS(i,r,l);return c.filter(g=>!g.matches||g.matches.some(p=>p.shouldLoad)).forEach(g=>{let{key:p,match:x,controller:y}=g;if(y&&y.signal.aborted)return;let T=f[p];if(qe(T,"Did not find corresponding fetcher result"),An(T)){let N=hi(n.matches,x?.route.id);m&&m[N.route.id]||(m={...m,[N.route.id]:T.error}),n.fetchers.delete(p)}else if(Xi(T))qe(!1,"Unhandled fetcher revalidation redirect");else{let N=Ha(T.data);n.fetchers.set(p,N)}}),{loaderData:d,errors:m}}function zg(n,i,r,l){let c=Object.entries(i).filter(([,f])=>f!==Qy).reduce((f,[d,m])=>(f[d]=m,f),{});for(let f of r){let d=f.route.id;if(!i.hasOwnProperty(d)&&n.hasOwnProperty(d)&&f.route.loader&&(c[d]=n[d]),l&&l.hasOwnProperty(d))break}return c}function Lg(n){return n?An(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function hi(n,i){return(i?n.slice(0,n.findIndex(l=>l.route.id===i)+1):[...n]).reverse().find(l=>l.route.hasErrorBoundary===!0)||n[0]}function xo(n){let i=n.length===1?n[0]:n.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function Gn(n,{pathname:i,routeId:r,method:l,type:c,message:f}={}){let d="Unknown Server Error",m="Unknown @remix-run/router error";return n===400?(d="Bad Request",l&&i&&r?m=`You made a ${l} request to "${i}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:c==="invalid-body"&&(m="Unable to encode submission body")):n===403?(d="Forbidden",m=`Route "${r}" does not match URL "${i}"`):n===404?(d="Not Found",m=`No route matches URL "${i}"`):n===405&&(d="Method Not Allowed",l&&i&&r?m=`You made a ${l.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:l&&(m=`Invalid request method "${l.toUpperCase()}"`)),new el(n||500,d,new Error(m),!0)}function So(n){let i=Object.entries(n);for(let r=i.length-1;r>=0;r--){let[l,c]=i[r];if(Xi(c))return{key:l,result:c}}}function Fy(n){let i=typeof n=="string"?vi(n):n;return ma({...i,hash:""})}function LS(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function US(n){return new el(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function BS(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([i,r])=>typeof i=="string"&&qS(r))}function qS(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function HS(n){return Jf(n.result)&&qy.has(n.result.status)}function An(n){return n.type==="error"}function Xi(n){return(n&&n.type)==="redirect"}function Ug(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Jf(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function QS(n){return qy.has(n)}function GS(n){return Jf(n)&&QS(n.status)&&n.headers.has("Location")}function VS(n){return bS.has(n.toUpperCase())}function Wt(n){return yS.has(n.toUpperCase())}function $f(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function _o(n,i){let r=typeof i=="string"?vi(i).search:i.search;if(n[n.length-1].route.index&&$f(r||""))return n[n.length-1];let l=jy(n);return l[l.length-1]}function Bg(n){let{formMethod:i,formAction:r,formEncType:l,text:c,formData:f,json:d}=n;if(!(!i||!r||!l)){if(c!=null)return{formMethod:i,formAction:r,formEncType:l,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:r,formEncType:l,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:i,formAction:r,formEncType:l,formData:void 0,json:d,text:void 0}}}function uf(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function YS(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Hs(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function PS(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function Ha(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function KS(n,i){try{let r=n.sessionStorage.getItem(Hy);if(r){let l=JSON.parse(r);for(let[c,f]of Object.entries(l||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function FS(n,i){if(i.size>0){let r={};for(let[l,c]of i)r[l]=[...c];try{n.sessionStorage.setItem(Hy,JSON.stringify(r))}catch(l){zt(!1,`Failed to save applied view transitions in sessionStorage (${l}).`)}}}function qg(){let n,i,r=new Promise((l,c)=>{n=async f=>{l(f);try{await r}catch{}},i=async f=>{c(f);try{await r}catch{}}});return{promise:r,resolve:n,reject:i}}var $i=S.createContext(null);$i.displayName="DataRouter";var nl=S.createContext(null);nl.displayName="DataRouterState";var Xy=S.createContext(!1);function XS(){return S.useContext(Xy)}var Wf=S.createContext({isTransitioning:!1});Wf.displayName="ViewTransition";var Zy=S.createContext(new Map);Zy.displayName="Fetchers";var ZS=S.createContext(null);ZS.displayName="Await";var Kn=S.createContext(null);Kn.displayName="Navigation";var Vo=S.createContext(null);Vo.displayName="Location";var aa=S.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var ed=S.createContext(null);ed.displayName="RouteError";var Iy="REACT_ROUTER_ERROR",IS="REDIRECT",JS="ROUTE_ERROR_RESPONSE";function $S(n){if(n.startsWith(`${Iy}:${IS}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function WS(n){if(n.startsWith(`${Iy}:${JS}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new el(i.status,i.statusText,i.data)}catch{}}function ew(n,{relative:i}={}){qe(al(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:l}=S.useContext(Kn),{hash:c,pathname:f,search:d}=il(n,{relative:i}),m=f;return r!=="/"&&(m=f==="/"?r:da([r,f])),l.createHref({pathname:m,search:d,hash:c})}function al(){return S.useContext(Vo)!=null}function bi(){return qe(al(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Vo).location}var Jy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $y(n){S.useContext(Kn).static||S.useLayoutEffect(n)}function Wy(){let{isDataRoute:n}=S.useContext(aa);return n?gw():tw()}function tw(){qe(al(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext($i),{basename:i,navigator:r}=S.useContext(Kn),{matches:l}=S.useContext(aa),{pathname:c}=bi(),f=JSON.stringify(Xf(l)),d=S.useRef(!1);return $y(()=>{d.current=!0}),S.useCallback((g,p={})=>{if(zt(d.current,Jy),!d.current)return;if(typeof g=="number"){r.go(g);return}let x=Zf(g,JSON.parse(f),c,p.relative==="path");n==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:da([i,x.pathname])),(p.replace?r.replace:r.push)(x,p.state,p)},[i,r,f,c,n])}var nw=S.createContext(null);function aw(n){let i=S.useContext(aa).outlet;return S.useMemo(()=>i&&S.createElement(nw.Provider,{value:n},i),[i,n])}function iw(){let{matches:n}=S.useContext(aa),i=n[n.length-1];return i?i.params:{}}function il(n,{relative:i}={}){let{matches:r}=S.useContext(aa),{pathname:l}=bi(),c=JSON.stringify(Xf(r));return S.useMemo(()=>Zf(n,JSON.parse(c),l,i==="path"),[n,c,l,i])}function rw(n,i,r,l,c){qe(al(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=S.useContext(Kn),{matches:d}=S.useContext(aa),m=d[d.length-1],g=m?m.params:{},p=m?m.pathname:"/",x=m?m.pathnameBase:"/",y=m&&m.route;{let K=y&&y.path||"";tv(p,!y||K.endsWith("*")||K.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${K}">) 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.
12
+
13
+ Please change the parent <Route path="${K}"> to <Route path="${K==="/"?"*":`${K}/*`}">.`)}let T=bi(),N;N=T;let L=N.pathname||"/",B=L;if(x!=="/"){let K=x.replace(/^\//,"").split("/");B="/"+L.replace(/^\//,"").split("/").slice(K.length).join("/")}let G=di(n,{pathname:B});return zt(y||G!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),zt(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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.`),cw(G&&G.map(K=>Object.assign({},K,{params:Object.assign({},g,K.params),pathname:da([x,f.encodeLocation?f.encodeLocation(K.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:K.pathname]),pathnameBase:K.pathnameBase==="/"?x:da([x,f.encodeLocation?f.encodeLocation(K.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:K.pathnameBase])})),d,r,l,c)}function sw(){let n=pw(),i=$s(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,l="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:l},f={padding:"2px 4px",backgroundColor:l},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},i),r?S.createElement("pre",{style:c},r):null,d)}var lw=S.createElement(sw,null),ev=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=WS(n.digest);r&&(n=r)}let i=n!==void 0?S.createElement(aa.Provider,{value:this.props.routeContext},S.createElement(ed.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?S.createElement(ow,{error:n},i):i}};ev.contextType=Xy;var cf=new WeakMap;function ow({children:n,error:i}){let{basename:r}=S.useContext(Kn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let l=$S(i.digest);if(l){let c=cf.get(i);if(c)throw c;let f=Ly(l.location,r);if(zy&&!cf.get(i))if(f.isExternal||l.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:l.replace}));throw cf.set(i,d),d}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function uw({routeContext:n,match:i,children:r}){let l=S.useContext($i);return l&&l.static&&l.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=i.route.id),S.createElement(aa.Provider,{value:n},r)}function cw(n,i=[],r=null,l=null,c=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let f=n,d=r?.errors;if(d!=null){let x=f.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);qe(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,x+1))}let m=!1,g=-1;if(r)for(let x=0;x<f.length;x++){let y=f[x];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=x),y.route.id){let{loaderData:T,errors:N}=r,L=y.route.loader&&!T.hasOwnProperty(y.route.id)&&(!N||N[y.route.id]===void 0);if(y.route.lazy||L){m=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let p=r&&l?(x,y)=>{l(x,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:tl(r.matches),errorInfo:y})}:void 0;return f.reduceRight((x,y,T)=>{let N,L=!1,B=null,G=null;r&&(N=d&&y.route.id?d[y.route.id]:void 0,B=y.route.errorElement||lw,m&&(g<0&&T===0?(tv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,G=null):g===T&&(L=!0,G=y.route.hydrateFallbackElement||null)));let Y=i.concat(f.slice(0,T+1)),K=()=>{let W;return N?W=B:L?W=G:y.route.Component?W=S.createElement(y.route.Component,null):y.route.element?W=y.route.element:W=x,S.createElement(uw,{match:y,routeContext:{outlet:x,matches:Y,isDataRoute:r!=null},children:W})};return r&&(y.route.ErrorBoundary||y.route.errorElement||T===0)?S.createElement(ev,{location:r.location,revalidation:r.revalidation,component:B,error:N,children:K(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:p}):K()},null)}function td(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fw(n){let i=S.useContext($i);return qe(i,td(n)),i}function dw(n){let i=S.useContext(nl);return qe(i,td(n)),i}function hw(n){let i=S.useContext(aa);return qe(i,td(n)),i}function nd(n){let i=hw(n),r=i.matches[i.matches.length-1];return qe(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function mw(){return nd("useRouteId")}function pw(){let n=S.useContext(ed),i=dw("useRouteError"),r=nd("useRouteError");return n!==void 0?n:i.errors?.[r]}function gw(){let{router:n}=fw("useNavigate"),i=nd("useNavigate"),r=S.useRef(!1);return $y(()=>{r.current=!0}),S.useCallback(async(c,f={})=>{zt(r.current,Jy),r.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:i,...f}))},[n,i])}var Hg={};function tv(n,i,r){!i&&!Hg[n]&&(Hg[n]=!0,zt(!1,r))}var Qg={};function Gg(n,i){!n&&!Qg[i]&&(Qg[i]=!0,console.warn(i))}var yw="useOptimistic",Vg=v1[yw],vw=()=>{};function bw(n){return Vg?Vg(n):[n,vw]}function xw(n){let i={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&zt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:S.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&zt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:S.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&zt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:S.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),i}var Sw=["HydrateFallback","hydrateFallbackElement"],ww=class{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",n(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",i(r))}})}};function Ew({router:n,flushSync:i,onError:r,unstable_useTransitions:l}){l=XS()||l;let[f,d]=S.useState(n.state),[m,g]=bw(f),[p,x]=S.useState(),[y,T]=S.useState({isTransitioning:!1}),[N,L]=S.useState(),[B,G]=S.useState(),[Y,K]=S.useState(),W=S.useRef(new Map),he=S.useCallback((P,{deletedFetchers:ie,newErrors:ke,flushSync:Ae,viewTransitionOpts:Se})=>{ke&&r&&Object.values(ke).forEach(ze=>r(ze,{location:P.location,params:P.matches[0]?.params??{},unstable_pattern:tl(P.matches)})),P.fetchers.forEach((ze,Ee)=>{ze.data!==void 0&&W.current.set(Ee,ze.data)}),ie.forEach(ze=>W.current.delete(ze)),Gg(Ae===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Oe=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Gg(Se==null||Oe,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Se||!Oe){i&&Ae?i(()=>d(P)):l===!1?d(P):S.startTransition(()=>{l===!0&&g(ze=>Yg(ze,P)),d(P)});return}if(i&&Ae){i(()=>{B&&(N?.resolve(),B.skipTransition()),T({isTransitioning:!0,flushSync:!0,currentLocation:Se.currentLocation,nextLocation:Se.nextLocation})});let ze=n.window.document.startViewTransition(()=>{i(()=>d(P))});ze.finished.finally(()=>{i(()=>{L(void 0),G(void 0),x(void 0),T({isTransitioning:!1})})}),i(()=>G(ze));return}B?(N?.resolve(),B.skipTransition(),K({state:P,currentLocation:Se.currentLocation,nextLocation:Se.nextLocation})):(x(P),T({isTransitioning:!0,flushSync:!1,currentLocation:Se.currentLocation,nextLocation:Se.nextLocation}))},[n.window,i,B,N,l,g,r]);S.useLayoutEffect(()=>n.subscribe(he),[n,he]),S.useEffect(()=>{y.isTransitioning&&!y.flushSync&&L(new ww)},[y]),S.useEffect(()=>{if(N&&p&&n.window){let P=p,ie=N.promise,ke=n.window.document.startViewTransition(async()=>{l===!1?d(P):S.startTransition(()=>{l===!0&&g(Ae=>Yg(Ae,P)),d(P)}),await ie});ke.finished.finally(()=>{L(void 0),G(void 0),x(void 0),T({isTransitioning:!1})}),G(ke)}},[p,N,n.window,l,g]),S.useEffect(()=>{N&&p&&m.location.key===p.location.key&&N.resolve()},[N,B,m.location,p]),S.useEffect(()=>{!y.isTransitioning&&Y&&(x(Y.state),T({isTransitioning:!0,flushSync:!1,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation}),K(void 0))},[y.isTransitioning,Y]);let de=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,ie,ke)=>n.navigate(P,{state:ie,preventScrollReset:ke?.preventScrollReset}),replace:(P,ie,ke)=>n.navigate(P,{replace:!0,state:ie,preventScrollReset:ke?.preventScrollReset})}),[n]),fe=n.basename||"/",A=S.useMemo(()=>({router:n,navigator:de,static:!1,basename:fe,onError:r}),[n,de,fe,r]);return S.createElement(S.Fragment,null,S.createElement($i.Provider,{value:A},S.createElement(nl.Provider,{value:m},S.createElement(Zy.Provider,{value:W.current},S.createElement(Wf.Provider,{value:y},S.createElement(Aw,{basename:fe,location:m.location,navigationType:m.historyAction,navigator:de,unstable_useTransitions:l},S.createElement(Tw,{routes:n.routes,future:n.future,state:m,onError:r})))))),null)}function Yg(n,i){return{...n,navigation:i.navigation.state!=="idle"?i.navigation:n.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:n.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:n.actionData,fetchers:i.fetchers}}var Tw=S.memo(Cw);function Cw({routes:n,future:i,state:r,onError:l}){return rw(n,void 0,r,l,i)}function Rw(n){return aw(n.context)}function Aw({basename:n="/",children:i=null,location:r,navigationType:l="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){qe(!al(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),g=S.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[m,c,f,d]);typeof r=="string"&&(r=vi(r));let{pathname:p="/",search:x="",hash:y="",state:T=null,key:N="default"}=r,L=S.useMemo(()=>{let B=Pn(p,m);return B==null?null:{location:{pathname:B,search:x,hash:y,state:T,key:N},navigationType:l}},[m,p,x,y,T,N,l]);return zt(L!=null,`<Router basename="${m}"> is not able to match the URL "${p}${x}${y}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:S.createElement(Kn.Provider,{value:g},S.createElement(Vo.Provider,{children:i,value:L}))}var ko="get",No="application/x-www-form-urlencoded";function Yo(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function _w(n){return Yo(n)&&n.tagName.toLowerCase()==="button"}function kw(n){return Yo(n)&&n.tagName.toLowerCase()==="form"}function Nw(n){return Yo(n)&&n.tagName.toLowerCase()==="input"}function Mw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Ow(n,i){return n.button===0&&(!i||i==="_self")&&!Mw(n)}var wo=null;function Dw(){if(wo===null)try{new FormData(document.createElement("form"),0),wo=!1}catch{wo=!0}return wo}var jw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ff(n){return n!=null&&!jw.has(n)?(zt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${No}"`),null):n}function zw(n,i){let r,l,c,f,d;if(kw(n)){let m=n.getAttribute("action");l=m?Pn(m,i):null,r=n.getAttribute("method")||ko,c=ff(n.getAttribute("enctype"))||No,f=new FormData(n)}else if(_w(n)||Nw(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(l=g?Pn(g,i):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||ko,c=ff(n.getAttribute("formenctype"))||ff(m.getAttribute("enctype"))||No,f=new FormData(m,n),!Dw()){let{name:p,type:x,value:y}=n;if(x==="image"){let T=p?`${p}.`:"";f.append(`${T}x`,"0"),f.append(`${T}y`,"0")}else p&&f.append(p,y)}}else{if(Yo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ko,l=null,c=No,d=n}return f&&c==="text/plain"&&(d=f,f=void 0),{action:l,method:r.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ad(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Lw(n,i,r,l){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${l}`:c.pathname=`${c.pathname}.${l}`:c.pathname==="/"?c.pathname=`_root.${l}`:i&&Pn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${l}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${l}`,c}async function Uw(n,i){if(n.id in i)return i[n.id];try{let r=await import(n.module);return i[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Bw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function qw(n,i,r){let l=await Promise.all(n.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await Uw(f,r);return d.links?d.links():[]}return[]}));return Vw(l.flat(1).filter(Bw).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Pg(n,i,r,l,c,f){let d=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,m=(g,p)=>r[p].pathname!==g.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,p)=>d(g,p)||m(g,p)):f==="data"?i.filter((g,p)=>{let x=l.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(d(g,p)||m(g,p))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Hw(n,i,{includeHydrateFallback:r}={}){return Qw(n.map(l=>{let c=i.routes[l.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function Qw(n){return[...new Set(n)]}function Gw(n){let i={},r=Object.keys(n).sort();for(let l of r)i[l]=n[l];return i}function Vw(n,i){let r=new Set;return new Set(i),n.reduce((l,c)=>{let f=JSON.stringify(Gw(c));return r.has(f)||(r.add(f),l.push({key:f,link:c})),l},[])}function nv(){let n=S.useContext($i);return ad(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Yw(){let n=S.useContext(nl);return ad(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var id=S.createContext(void 0);id.displayName="FrameworkContext";function av(){let n=S.useContext(id);return ad(n,"You must render this element inside a <HydratedRouter> element"),n}function Pw(n,i){let r=S.useContext(id),[l,c]=S.useState(!1),[f,d]=S.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:p,onMouseLeave:x,onTouchStart:y}=i,T=S.useRef(null);S.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let B=Y=>{Y.forEach(K=>{d(K.isIntersecting)})},G=new IntersectionObserver(B,{threshold:.5});return T.current&&G.observe(T.current),()=>{G.disconnect()}}},[n]),S.useEffect(()=>{if(l){let B=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(B)}}},[l]);let N=()=>{c(!0)},L=()=>{c(!1),d(!1)};return r?n!=="intent"?[f,T,{}]:[f,T,{onFocus:Qs(m,N),onBlur:Qs(g,L),onMouseEnter:Qs(p,N),onMouseLeave:Qs(x,L),onTouchStart:Qs(y,N)}]:[!1,T,{}]}function Qs(n,i){return r=>{n&&n(r),r.defaultPrevented||i(r)}}function Kw({page:n,...i}){let{router:r}=nv(),l=S.useMemo(()=>di(r.routes,n,r.basename),[r.routes,n,r.basename]);return l?S.createElement(Xw,{page:n,matches:l,...i}):null}function Fw(n){let{manifest:i,routeModules:r}=av(),[l,c]=S.useState([]);return S.useEffect(()=>{let f=!1;return qw(n,i,r).then(d=>{f||c(d)}),()=>{f=!0}},[n,i,r]),l}function Xw({page:n,matches:i,...r}){let l=bi(),{future:c,manifest:f,routeModules:d}=av(),{basename:m}=nv(),{loaderData:g,matches:p}=Yw(),x=S.useMemo(()=>Pg(n,i,p,f,l,"data"),[n,i,p,f,l]),y=S.useMemo(()=>Pg(n,i,p,f,l,"assets"),[n,i,p,f,l]),T=S.useMemo(()=>{if(n===l.pathname+l.search+l.hash)return[];let B=new Set,G=!1;if(i.forEach(K=>{let W=f.routes[K.route.id];!W||!W.hasLoader||(!x.some(he=>he.route.id===K.route.id)&&K.route.id in g&&d[K.route.id]?.shouldRevalidate||W.hasClientLoader?G=!0:B.add(K.route.id))}),B.size===0)return[];let Y=Lw(n,m,c.unstable_trailingSlashAwareDataRequests,"data");return G&&B.size>0&&Y.searchParams.set("_routes",i.filter(K=>B.has(K.route.id)).map(K=>K.route.id).join(",")),[Y.pathname+Y.search]},[m,c.unstable_trailingSlashAwareDataRequests,g,l,f,x,i,n,d]),N=S.useMemo(()=>Hw(y,f),[y,f]),L=Fw(y);return S.createElement(S.Fragment,null,T.map(B=>S.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...r})),N.map(B=>S.createElement("link",{key:B,rel:"modulepreload",href:B,...r})),L.map(({key:B,link:G})=>S.createElement("link",{key:B,nonce:r.nonce,...G,crossOrigin:G.crossOrigin??r.crossOrigin})))}function Zw(...n){return i=>{n.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var Iw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Iw&&(window.__reactRouterVersion="7.13.0")}catch{}function Jw(n,i){return ES({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:qx({window:i?.window}),hydrationData:$w(),routes:n,mapRouteProperties:xw,hydrationRouteProperties:Sw,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function $w(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:Ww(n.errors)}),n}function Ww(n){if(!n)return null;let i=Object.entries(n),r={};for(let[l,c]of i)if(c&&c.__type==="RouteErrorResponse")r[l]=new el(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let d=new f(c.message);d.stack="",r[l]=d}catch{}}if(r[l]==null){let f=new Error(c.message);f.stack="",r[l]=f}}else r[l]=c;return r}var iv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rv=S.forwardRef(function({onClick:i,discover:r="render",prefetch:l="none",relative:c,reloadDocument:f,replace:d,state:m,target:g,to:p,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:T,...N},L){let{basename:B,unstable_useTransitions:G}=S.useContext(Kn),Y=typeof p=="string"&&iv.test(p),K=Ly(p,B);p=K.to;let W=ew(p,{relative:c}),[he,de,fe]=Pw(l,N),A=aE(p,{replace:d,state:m,target:g,preventScrollReset:x,relative:c,viewTransition:y,unstable_defaultShouldRevalidate:T,unstable_useTransitions:G});function P(ke){i&&i(ke),ke.defaultPrevented||A(ke)}let ie=S.createElement("a",{...N,...fe,href:K.absoluteURL||W,onClick:K.isExternal||f?i:P,ref:Zw(L,de),target:g,"data-discover":!Y&&r==="render"?"true":void 0});return he&&!Y?S.createElement(S.Fragment,null,ie,S.createElement(Kw,{page:W})):ie});rv.displayName="Link";var eE=S.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:l="",end:c=!1,style:f,to:d,viewTransition:m,children:g,...p},x){let y=il(d,{relative:p.relative}),T=bi(),N=S.useContext(nl),{navigator:L,basename:B}=S.useContext(Kn),G=N!=null&&oE(y)&&m===!0,Y=L.encodeLocation?L.encodeLocation(y).pathname:y.pathname,K=T.pathname,W=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;r||(K=K.toLowerCase(),W=W?W.toLowerCase():null,Y=Y.toLowerCase()),W&&B&&(W=Pn(W,B)||W);const he=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let de=K===Y||!c&&K.startsWith(Y)&&K.charAt(he)==="/",fe=W!=null&&(W===Y||!c&&W.startsWith(Y)&&W.charAt(Y.length)==="/"),A={isActive:de,isPending:fe,isTransitioning:G},P=de?i:void 0,ie;typeof l=="function"?ie=l(A):ie=[l,de?"active":null,fe?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let ke=typeof f=="function"?f(A):f;return S.createElement(rv,{...p,"aria-current":P,className:ie,ref:x,style:ke,to:d,viewTransition:m},typeof g=="function"?g(A):g)});eE.displayName="NavLink";var tE=S.forwardRef(({discover:n="render",fetcherKey:i,navigate:r,reloadDocument:l,replace:c,state:f,method:d=ko,action:m,onSubmit:g,relative:p,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:T,...N},L)=>{let{unstable_useTransitions:B}=S.useContext(Kn),G=sE(),Y=lE(m,{relative:p}),K=d.toLowerCase()==="get"?"get":"post",W=typeof m=="string"&&iv.test(m),he=de=>{if(g&&g(de),de.defaultPrevented)return;de.preventDefault();let fe=de.nativeEvent.submitter,A=fe?.getAttribute("formmethod")||d,P=()=>G(fe||de.currentTarget,{fetcherKey:i,method:A,navigate:r,replace:c,state:f,relative:p,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:T});B&&r!==!1?S.startTransition(()=>P()):P()};return S.createElement("form",{ref:L,method:K,action:Y,onSubmit:l?g:he,...N,"data-discover":!W&&n==="render"?"true":void 0})});tE.displayName="Form";function nE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sv(n){let i=S.useContext($i);return qe(i,nE(n)),i}function aE(n,{target:i,replace:r,state:l,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:m,unstable_useTransitions:g}={}){let p=Wy(),x=bi(),y=il(n,{relative:f});return S.useCallback(T=>{if(Ow(T,i)){T.preventDefault();let N=r!==void 0?r:ma(x)===ma(y),L=()=>p(n,{replace:N,state:l,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:m});g?S.startTransition(()=>L()):L()}},[x,p,y,r,l,i,n,c,f,d,m,g])}var iE=0,rE=()=>`__${String(++iE)}__`;function sE(){let{router:n}=sv("useSubmit"),{basename:i}=S.useContext(Kn),r=mw(),l=n.fetch,c=n.navigate;return S.useCallback(async(f,d={})=>{let{action:m,method:g,encType:p,formData:x,body:y}=zw(f,i);if(d.navigate===!1){let T=d.fetcherKey||rE();await l(T,r,d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:y,formMethod:d.method||g,formEncType:d.encType||p,flushSync:d.flushSync})}else await c(d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:y,formMethod:d.method||g,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[l,c,i,r])}function lE(n,{relative:i}={}){let{basename:r}=S.useContext(Kn),l=S.useContext(aa);qe(l,"useFormAction must be used inside a RouteContext");let[c]=l.matches.slice(-1),f={...il(n||".",{relative:i})},d=bi();if(n==null){f.search=d.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(x=>x==="")){m.delete("index"),g.filter(y=>y).forEach(y=>m.append("index",y));let x=m.toString();f.search=x?`?${x}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:da([r,f.pathname])),ma(f)}function oE(n,{relative:i}={}){let r=S.useContext(Wf);qe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=sv("useViewTransitionState"),c=il(n,{relative:i});if(!r.isTransitioning)return!1;let f=Pn(r.currentLocation.pathname,l)||r.currentLocation.pathname,d=Pn(r.nextLocation.pathname,l)||r.nextLocation.pathname;return Ho(c.pathname,d)!=null||Ho(c.pathname,f)!=null}function uE(n){return S.createElement(Ew,{flushSync:_y.flushSync,...n})}const lv=(...n)=>n.filter((i,r,l)=>!!i&&i.trim()!==""&&l.indexOf(i)===r).join(" ").trim();const cE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const fE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,l)=>l?l.toUpperCase():r.toLowerCase());const Kg=n=>{const i=fE(n);return i.charAt(0).toUpperCase()+i.slice(1)};var dE={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"};const hE=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const mE=S.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:d,...m},g)=>S.createElement("svg",{ref:g,...dE,width:i,height:i,stroke:n,strokeWidth:l?Number(r)*24/Number(i):r,className:lv("lucide",c),...!f&&!hE(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,x])=>S.createElement(p,x)),...Array.isArray(f)?f:[f]]));const vt=(n,i)=>{const r=S.forwardRef(({className:l,...c},f)=>S.createElement(mE,{ref:f,iconNode:i,className:lv(`lucide-${cE(Kg(n))}`,`lucide-${n}`,l),...c}));return r.displayName=Kg(n),r};const pE=[["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"}]],gE=vt("bell",pE);const yE=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],ov=vt("bot",yE);const vE=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],bE=vt("cable",vE);const xE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Nf=vt("circle-check",xE);const SE=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],wE=vt("circle-dashed",SE);const EE=[["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"}]],uv=vt("circle-x",EE);const TE=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],CE=vt("cpu",TE);const RE=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],cv=vt("download",RE);const AE=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],_E=vt("external-link",AE);const kE=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["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"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],NE=vt("folder-git-2",kE);const ME=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],OE=vt("info",ME);const DE=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],jE=vt("languages",DE);const zE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vr=vt("loader-circle",zE);const LE=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],UE=vt("lock-keyhole",LE);const BE=[["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"}]],qE=vt("refresh-cw",BE);const HE=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],QE=vt("rotate-ccw",HE);const GE=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],VE=vt("settings",GE);const YE=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],PE=vt("shield-check",YE);const KE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],FE=vt("square",KE);const XE=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ZE=vt("terminal",XE);const IE=[["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"}]],Qo=vt("triangle-alert",IE);const JE=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],$E=vt("users",JE);const WE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fv=vt("x",WE),Fg=n=>{let i;const r=new Set,l=(p,x)=>{const y=typeof p=="function"?p(i):p;if(!Object.is(y,i)){const T=i;i=x??(typeof y!="object"||y===null)?y:Object.assign({},i,y),r.forEach(N=>N(i,T))}},c=()=>i,m={setState:l,getState:c,getInitialState:()=>g,subscribe:p=>(r.add(p),()=>r.delete(p))},g=i=n(l,c,m);return m},eT=(n=>n?Fg(n):Fg),tT=n=>n;function nT(n,i=tT){const r=ne.useSyncExternalStore(n.subscribe,ne.useCallback(()=>i(n.getState()),[n,i]),ne.useCallback(()=>i(n.getInitialState()),[n,i]));return ne.useDebugValue(r),r}const Xg=n=>{const i=eT(n),r=l=>nT(i,l);return Object.assign(r,i),r},dv=(n=>n?Xg(n):Xg),Ks=dv(n=>({sidebarOpen:!0,theme:"system",settingsOpen:!1,settingsTab:"general",toggleSidebar:()=>n(i=>({sidebarOpen:!i.sidebarOpen})),setSidebarOpen:i=>n({sidebarOpen:i}),setTheme:i=>n({theme:i}),openSettings:i=>n({settingsOpen:!0,...i?{settingsTab:i}:{}}),closeSettings:()=>n({settingsOpen:!1}),setSettingsTab:i=>n({settingsTab:i})})),Zg="/api";function hv(n){return n.endsWith("/")?n.slice(0,-1):n}function mv(n){return!1}function aT(){return mv()?Zg:hv(Zg)}function iT(){return mv()?"":hv("")}const rT=aT();class sT{baseUrl;constructor(i){this.baseUrl=i}async request(i,r={}){const{params:l,...c}=r;let f=`${this.baseUrl}${i}`;if(l){const g=new URLSearchParams(l);f+=`?${g.toString()}`}const d={...c.headers};c.body!==void 0&&(d["Content-Type"]="application/json");const m=await fetch(f,{...c,headers:d,credentials:c.credentials??"same-origin"});if(!m.ok){const g=await m.json().catch(()=>({}));throw new rl(m.status,typeof g.message=="string"?g.message:typeof g.error=="string"?g.error:"Request failed",g)}if(m.status!==204)return m.json()}get(i,r){return this.request(i,{...r,method:"GET"})}post(i,r,l){return this.request(i,{...l,method:"POST",body:r?JSON.stringify(r):void 0})}put(i,r,l){return this.request(i,{...l,method:"PUT",body:r?JSON.stringify(r):void 0})}patch(i,r,l){return this.request(i,{...l,method:"PATCH",body:r?JSON.stringify(r):void 0})}delete(i,r){return this.request(i,{...r,method:"DELETE"})}}class rl extends Error{status;details;constructor(i,r,l={}){super(r),this.name="ApiError",this.status=i,this.details=l}}const Le=new sT(rT),xe={projects:{all:["projects"],list:n=>["projects","list",n],detail:n=>["projects","detail",n],gitCapability:n=>["projects","gitCapability",n]},tasks:{all:["tasks"],list:(n,i)=>["tasks","list",n,i],detail:n=>["tasks","detail",n],body:n=>["tasks","body",n],stats:n=>["tasks","stats",n]},workspaces:{all:["workspaces"],list:n=>["workspaces","list",n],detail:n=>["workspaces","detail",n],diff:n=>["workspaces","diff",n],gitStatus:n=>["workspaces","gitStatus",n]},previews:{all:["previews"],status:n=>["previews","status",n]},sessions:{all:["sessions"],detail:n=>["sessions","detail",n]},conversations:{all:["conversations"],list:n=>["conversations","list",n],detail:n=>["conversations","detail",n]},files:{all:["files"],tree:(n,i)=>["files","tree",n,i],content:(n,i)=>["files","content",n,i]},git:{all:["git"],changes:n=>["git","changes",n],diff:(n,i,r)=>["git","diff",n,i,r],log:n=>["git","log",n],commitFiles:(n,i)=>["git","commitFiles",n,i],commitDiff:(n,i,r)=>["git","commitDiff",n,i,r]},profiles:{all:["profiles"],defaults:["profiles","defaults"],agent:n=>["profiles","agent",n],variant:(n,i)=>["profiles","variant",n,i]},providers:{all:["providers"],detail:n=>["providers","detail",n]},tunnel:{status:["tunnel","status"]},notifications:{settings:["notifications","settings"]},appSettings:{detail:["app-settings"]},accessAuth:{status:["access-auth","status"],settings:["access-auth","settings"]},agentCli:{manifest:["agent-cli","manifest"],status:["agent-cli","status"],preview:n=>["agent-cli","preview",n],task:n=>["agent-cli","task",n],logs:n=>["agent-cli","logs",n]},system:{cursorAgentModels:["system","cursor-agent-models"],mcpConfig:["system","mcp-config"],slashCommandCatalog:(n,i)=>["system","slash-command-catalog",n??null,i??null],skillCatalog:(n,i)=>["system","skill-catalog",n??null,i??null]}};function lT(){return rn({queryKey:xe.appSettings.detail,queryFn:()=>Le.get("/app-settings")})}function oT(){const n=tt();return ht({mutationFn:i=>Le.put("/app-settings",i),onSuccess:()=>{n.invalidateQueries({queryKey:xe.appSettings.detail})}})}function GR(){return rn({queryKey:[...xe.appSettings.detail,"commit-message-defaults"],queryFn:()=>Le.get("/app-settings/commit-message-defaults")})}const uT={"zh-CN":{Settings:"设置",General:"通用",Back:"返回","Loading...":"加载中...","No options":"暂无选项","Processing...":"处理中...",Confirm:"确认",Cancel:"取消",Start:"开始","Starting...":"启动中...","General Settings":"通用设置","Display Language":"显示语言","Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.":"选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。",English:"English","Simplified Chinese":"简体中文","Language setting":"语言设置","Language setting could not be saved":"语言设置保存失败","Browse and select a Git repository, or type a path and press Enter":"浏览并选择一个 Git 仓库,或输入路径后按 Enter","Browse and select a directory, or type a path and press Enter":"浏览并选择一个目录,或输入路径后按 Enter","Select Current":"选择当前目录","Project Path":"项目路径","Create Local Project":"创建本地项目","Local project":"本地项目","Local projects only support local Solo tasks. Initialize Git to use worktrees and TeamRun.":"本地项目仅支持本地 Solo 任务。初始化 Git 后可使用工作树和 TeamRun。","You can also create it as a local project now. Local projects only support local Solo tasks until Git is initialized.":"你也可以现在将其创建为本地项目。初始化 Git 前,本地项目仅支持本地 Solo 任务。","This setting applies only to Git worktree projects.":"此设置仅适用于 Git 工作树项目。","Agent 配置":"Agent 配置",项目配置:"项目配置",通知:"通知",通用:"通用","AI Agent Task Management Dashboard":"AI Agent 任务管理面板","Project Management":"项目管理","Manage your AI agent projects":"管理你的 AI Agent 项目","View Projects":"查看项目","Task Board":"任务看板",Tasks:"任务","Kanban-style task management":"Kanban 风格的任务管理","Open Board":"打开看板",Workspace:"工作区","Git worktree isolated environments":"Git Worktree 隔离环境","Manage Workspaces":"管理工作区","Move to":"移动到","Delete Task":"删除任务","Drop into {title}":"放入 {title}","Drop here":"拖到此处","No tasks":"暂无任务","All Projects":"所有项目",Projects:"项目","Select View":"选择视图","Create New Project...":"创建新项目...","New Task":"新任务","New Project":"新项目",Search:"搜索","Search tasks...":"搜索任务...","Search conversations...":"搜索对话...","Recent tasks":"近期任务","Recent conversations":"最近对话","No matching tasks":"没有匹配的任务","No matching conversations":"没有匹配的对话","{count} tasks":"{count} 个任务","Clear filter":"清除筛选",Review:"待审查",Running:"进行中",Pending:"待开始",Done:"已完成",Cancelled:"已取消",Starting:"启动中",Completed:"已完成",Stopped:"已停止",Changes:"变更",History:"历史",Conversation:"对话",Conversations:"对话","New Conversation":"新对话","No conversations":"暂无对话","Conversation not found":"对话不存在","Delete this conversation?":"删除这个对话?","Ask a question...":"问一个问题...",Editor:"编辑器",Terminal:"终端",Preview:"预览","Coming soon...":"即将推出...",Modified:"已修改",Added:"已新增",Deleted:"已删除",Delete:"删除",Renamed:"已重命名","Loading diff...":"正在加载差异...","Failed to load diff.":"加载差异失败。","No diff content available.":"没有可显示的差异内容。","No workspace selected.":"未选择工作区。","Loading changes...":"正在加载变更...","Failed to load changes.":"加载变更失败。","No pending changes":"暂无待处理变更",Uncommitted:"未提交",Committed:"已提交","Select a file to view diff":"选择一个文件以查看差异","{count}s ago":"{count} 秒前","{count}m ago":"{count} 分钟前","{count}h ago":"{count} 小时前","{count}d ago":"{count} 天前","Loading files...":"正在加载文件列表...","No files changed":"没有文件变更","Loading history...":"正在加载历史记录...","Failed to load history.":"加载历史记录失败。","No commit history":"暂无提交历史","Load more":"加载更多","Select a commit to view changes":"选择一个提交以查看变更","Zoom out":"缩小","Reset zoom":"重置缩放","Zoom in":"放大","Fit to view":"适应视图","Failed to load image.":"加载图片失败。","Close tab":"关闭标签页",Close:"关闭","Expand file tree":"展开文件树","No open files":"暂无打开文件",Saving:"保存中",Unsaved:"未保存","Select a file from the tree to open.":"从文件树中选择一个文件以打开。","Loading file...":"正在加载文件...","Failed to load file":"加载文件失败","Failed to load":"加载失败","Failed to start. Please try again.":"启动失败,请重试",Files:"文件","No working directory":"未选择工作目录","Refresh file tree":"刷新文件树","Collapse file tree":"收起文件树","Shell {count}":"终端 {count}","New Terminal":"新终端","No terminals open":"暂无打开终端",Disconnected:"未连接","Connecting...":"连接中...",Connected:"已连接","No active session":"暂无活动会话","Create a workspace and start a session to see terminal output.":"创建工作区并启动会话后即可查看终端输出。","Process exited with code {code}":"进程已退出,退出码 {code}","Error: {message}":"错误: {message}","Session: {id}":"会话: {id}","Tunnel active":"隧道已启用","Share via tunnel":"通过隧道分享","Tunnel Active":"隧道已启用","Tunnel healthy":"隧道健康","Tunnel needs attention":"隧道需要注意","Tunnel unavailable":"隧道不可用","Tunnel starting":"隧道启动中","Tunnel is off":"隧道未开启","Checking tunnel health":"正在检查隧道健康","Observing original link":"正在观察原链接","Local service unavailable":"本地服务不可用","Tunnel process exited":"隧道进程已退出","Tunnel error":"隧道错误","New link generated":"新链接已生成","Use Agent Tower on your phone":"在手机上使用 Agent Tower","After enabling the tunnel, you can scan a QR code with your phone to visit this Agent Tower instance, assign tasks, and check agent status.":"开启隧道后,可以用手机扫码访问本机的 Agent Tower,用手机派任务、查看 Agent 状态。","Enable phone access":"开启手机访问","Starting tunnel...":"正在开启隧道...","Start a temporary Quick Tunnel when you need to share this Agent Tower session.":"需要分享当前 Agent Tower 会话时,可以启动一个临时 Quick Tunnel。","The Cloudflare tunnel is running and the local Agent Tower health check passed.":"Cloudflare 隧道正在运行,且本地 Agent Tower 健康检查已通过。","The Cloudflare tunnel is running. Agent Tower is waiting for the first local health check.":"Cloudflare 隧道正在运行,Agent Tower 正在等待首次本地健康检查。","The original public URL is currently unreachable. Agent Tower is watching for it to recover and will not generate a new link automatically.":"原公网链接当前不可访问。Agent Tower 正在观察它是否恢复,不会自动生成新链接。","The local Agent Tower target is not responding, so the tunnel cannot be considered healthy.":"本地 Agent Tower 目标没有响应,因此隧道不能视为健康。","The tunnel process has exited. The old Quick Tunnel link is unlikely to recover.":"隧道进程已退出,旧 Quick Tunnel 链接大概率无法恢复。","The tunnel reported an error. Check the diagnostics before generating a new link.":"隧道报告了错误。生成新链接前请先查看诊断信息。","A new Quick Tunnel link was generated. The old link and token are no longer valid.":"已生成新的 Quick Tunnel 链接。旧链接和 token 已失效。","Agent Tower is asking Cloudflare Quick Tunnel for a temporary public URL.":"Agent Tower 正在向 Cloudflare Quick Tunnel 申请临时公网链接。","Last checked":"上次检查","Last healthy":"上次健康",Never:"从未","Agent Tower is keeping the same URL and waiting for Cloudflare Quick Tunnel to recover.":"Agent Tower 会保留同一个 URL,并等待 Cloudflare Quick Tunnel 自行恢复。","The previous tunnel link and token are no longer valid.":"之前的隧道链接和 token 已不再有效。","Generating a new link will invalidate the current link. People using the old URL must receive the new one.":"生成新链接会使当前链接失效。正在使用旧 URL 的人需要收到新链接。","Regenerate link":"重新生成链接","Generating...":"生成中...","Token protected":"受 Token 保护","Copy shareable link":"复制分享链接","No tunnel link available":"暂无可用隧道链接","Hide token":"隐藏 Token","Show token":"显示 Token","Copy token":"复制 Token","Stopping...":"停止中...","Stop Tunnel":"停止隧道","Create & Start":"创建并启动","Create TeamRun":"创建 TeamRun","Creating TeamRun...":"正在创建 TeamRun...","Team Status":"团队状态","Team mode":"团队模式","Review reason":"审查原因",Members:"成员","No members":"暂无成员",Queue:"队列","No queued work requests":"暂无排队中的工作请求","Active invocations":"活动调用","No active invocations":"暂无活动调用","Recently completed":"最近完成","No completed invocations":"暂无已完成调用","New session per request":"每次新会话","Resume last session":"复用上次会话",Latest:"最新","Invocation history":"调用历史","No invocation history":"暂无调用历史","No invocations yet":"暂无调用记录","All members idle":"所有成员空闲",Log:"日志",Details:"详情",Workspaces:"工作区",Owner:"所有者",Parent:"父级",Selected:"已选",Select:"选择","View workspace":"查看工作区",Invocation:"调用",Session:"会话","View log":"查看日志","View details":"查看详情","Team room":"团队房间","No room messages yet":"暂无房间消息",Messages:"消息","Work requests":"工作请求","Active work":"进行中的工作",Working:"正在工作","Queued...":"排队中...","Waiting reply...":"等待回复...",running:"进行中",queued:"排队",waiting:"等待",ended:"已结束",Elapsed:"耗时",Failed:"失败","Session ended":"会话已结束","Failed to send room message":"发送房间消息失败",selected:"已选择","Back to bottom":"回到底部","Expand full message":"展开全部","Collapse message":"收起","Invocation details":"调用详情","Back to room":"返回群聊","Pending approval":"待审批","Tool Calls":"工具调用","No pending approvals":"暂无待审批项",Requester:"发起者",User:"用户",System:"系统","Waiting room reply":"等待房间回复",Queued:"排队中",Idle:"空闲","Queue if busy":"忙碌时排队","Cancel current if busy":"忙碌时取消当前并开始","Cancel queued":"取消排队",Approve:"批准",Approving:"批准中...",Reject:"拒绝",Rejecting:"拒绝中...",Cancelling:"取消中...","Failed to update work request":"更新工作请求失败","Failed to cancel work request":"取消工作请求失败",Stop:"停止","Stop running work?":"停止正在运行的工作?","Stop only":"仅停止","Stop + clear queue":"停止并清空队列",Stopping:"停止中...","Failed to stop member work":"停止成员工作失败",Yes:"是",No:"否","Creating Task...":"正在创建任务...","Creating Workspace...":"正在创建工作区...","Creating Session...":"正在创建会话...","Starting Agent...":"正在启动 Agent...","启动 Agent 失败":"启动 Agent 失败","重试启动 Agent":"重试启动 Agent","Create New Project":"创建新项目","Creating...":"创建中...","Checking...":"检查中...",Create:"创建","Create Project":"创建项目","Initialize Git repository?":"初始化 Git 仓库?","Initialize and Create":"初始化并创建","This directory is empty and does not have Git version control yet. Agent Tower can initialize Git and create the initial commit before creating the project.":"该目录为空且尚未启用 Git 版本管理。Agent Tower 可以先初始化 Git 并创建初始提交,然后再创建项目。","The selected directory is not a Git repository and is not empty. Initialize Git manually and make an initial commit, then create the project.":"所选目录不是 Git 仓库且不为空。请手动初始化 Git 并完成首次提交,然后再创建项目。","Selected path is not a valid directory":"所选路径不是有效目录","Could not check repository path":"无法检查仓库路径","Could not check project path":"无法检查项目路径","Project Name":"项目名称","e.g., Agent Tower":"例如:Agent Tower","Repository Path":"仓库路径","Create New Task":"创建新任务",Execution:"执行方式","Solo Agent":"Solo Agent",Project:"项目",Provider:"Provider",Agent:"Agent","Select project...":"选择项目...","Select provider...":"选择 Provider...","Task Title":"任务标题","e.g., Implement login flow":"例如:实现登录流程",Description:"描述","Optional...":"可选...","Optional description...":"可选描述...","Drop files here":"将文件拖到这里","Attach files":"添加文件","or paste files":"或粘贴文件","or paste/drag files":"或粘贴/拖拽文件","Drag to resize":"拖动以调整大小","Failed to create task":"创建任务失败","Failed to create project":"创建项目失败","Select a task from the sidebar to view logs, monitor execution, or interact with an agent.":"从侧边栏选择一个任务,以查看日志、监控执行过程,或与 Agent 交互。","Open in IDE":"在 IDE 中打开","Toggle Workspace":"切换工作区面板","More actions":"更多操作","No description":"暂无描述","Setup ({current}/{total}): {command}":"Setup({current}/{total}):{command}","Loading logs...":"正在加载日志...","Waiting for agent output...":"等待 Agent 输出...","No logs recorded for this session.":"当前会话暂无日志记录。","Scroll to bottom":"滚动到底部","Send failed. Please try again.":"发送失败,请重试","Drop files here...":"将文件拖到这里...","Continue conversation...":"继续对话...","Message Agent...":"给 Agent 发送消息...","Upload file":"上传文件","Uploading...":"上传中...",Send:"发送","Describe your task...":"描述你的任务...","Switch to TeamRun":"切换到 TeamRun","Switch to Solo Agent":"切换到单 Agent"," (unavailable)":"(不可用)","Manage Team Members":"管理团队成员","Add member":"添加成员","Save member":"保存成员","Edit member":"编辑成员","Remove member":"移除成员",Remove:"移除","Member added":"成员已添加","Member updated":"成员已更新","Member removed":"成员已移除","Failed to save member":"保存成员失败","Failed to remove member":"移除成员失败","Name, provider, and role prompt are required":"名称、Provider 和角色提示词不能为空","No active members":"暂无活跃成员","Add member from preset":"从预设添加成员","Choose a saved preset to add a ready-to-run member snapshot.":"选择已保存的预设,添加一个可直接工作的成员快照。","Custom member":"自定义成员",Custom:"自定义","Use preset":"使用预设",Preset:"预设","Select a member":"选择成员","Choose a member on the left to edit its future TeamRun configuration.":"从左侧选择成员,编辑其后续 TeamRun 配置。","Provider, role, workspace, and session changes apply to future work only.":"Provider、角色、工作区和会话变更只影响后续工作。","Create a one-off member snapshot for this TeamRun.":"为当前 TeamRun 创建一次性的成员快照。","Create a custom member for this TeamRun, or add presets from Team Collaboration Settings.":"可以为当前 TeamRun 创建自定义成员,或先在团队协作设置中添加预设。","Remove this member from future TeamRun work?":"将该成员从后续 TeamRun 工作中移除?",Name:"名称",Aliases:"别名",Avatar:"头像","Workspace policy":"工作区策略","Trigger policy":"触发策略","Session policy":"会话策略","Queue policy":"队列策略","Role prompt":"角色提示词",Capabilities:"能力","Comma separated":"用逗号分隔","No member presets":"暂无成员预设","...":"...","alice, a, reviewer":"alice, a, reviewer","Checking preview target...":"正在检查预览目标...","Configure a local preview target to display it here.":"配置本地预览目标后将在此显示。","Delete Project":"删除项目","Deleted projects are read-only":"已删除项目为只读","Deleting...":"删除中...","Enter a local preview URL on the Agent Tower machine.":"输入 Agent Tower 所在机器上的本地预览 URL。","Failed to delete project":"删除项目失败","Failed to load full message":"加载完整消息失败","Failed to restore project":"恢复项目失败","Failed to save preview target":"保存预览目标失败","Git Commit Message":"Git Commit Message",Loading:"加载中","Loopback only":"仅限本机回环地址","Mention members":"提及成员","Message the team room...":"向 Team Room 发送消息...","No active workspace.":"暂无活动工作区。","Open preview in new tab":"在新标签页打开预览","Preview target is not reachable":"预览目标不可访问","Preview target saved":"预览目标已保存",Private:"私密",Proxying:"代理中","Read-only":"只读",Refresh:"刷新","Refresh preview":"刷新预览","Remove mention":"移除提及","Restore Project":"恢复项目","Restoring...":"恢复中...",Save:"保存","Save preview target":"保存预览目标","Start the preview server, then refresh.":"启动预览服务后刷新。","Team members":"团队成员","this project":"此项目","This project is read-only":"此项目为只读","10 个首屏加载动画候选 · 颜色遵循 Agent Tower 设计规范 · 点击卡片查看全屏效果":"10 个首屏加载动画候选 · 颜色遵循 Agent Tower 设计规范 · 点击卡片查看全屏效果",设计推荐:"设计推荐","首选:Charcoal Breathe (#10)":"首选:Charcoal Breathe (#10)","备选A:Tower Pulse (#1)":"备选A:Tower Pulse (#1)","备选B:Terminal Cursor (#4)":"备选B:Terminal Cursor (#4)","品牌感最强,Charcoal 色块+Tower 图标呼吸,用户对产品的第一印象即品牌本身。":"品牌感最强,Charcoal 色块+Tower 图标呼吸,用户对产品的第一印象即品牌本身。","品牌图标直接出现,脉冲节奏稳定,不浮夸,适合工作台场景。":"品牌图标直接出现,脉冲节奏稳定,不浮夸,适合工作台场景。","终端光标闪烁,贴合 Agent/终端协作的核心场景,开发者亲切感强。":"终端光标闪烁,贴合 Agent/终端协作的核心场景,开发者亲切感强。","全屏预览:{name}":"全屏预览:{name}",关闭预览:"关闭预览","按 Esc 或点击关闭按钮退出":"按 Esc 或点击关闭按钮退出","Agent Tower 品牌图标配合脉冲光点,传达「系统就绪中」的品牌感。":"Agent Tower 品牌图标配合脉冲光点,传达「系统就绪中」的品牌感。","五根柱状条交错升降,暗喻任务编排队列,节奏感强。":"五根柱状条交错升降,暗喻任务编排队列,节奏感强。","双层同心圆环反向旋转,精密工具质感,不浮夸。":"双层同心圆环反向旋转,精密工具质感,不浮夸。","终端风格光标闪烁,与 Agent Tower 终端协作场景直接呼应。":"终端风格光标闪烁,与 Agent Tower 终端协作场景直接呼应。","三点波浪脉动,极简克制,适合工具型产品的默认加载。":"三点波浪脉动,极简克制,适合工具型产品的默认加载。","三层卡片微幅浮动,模拟看板层叠翻页,呼应任务管理语境。":"三层卡片微幅浮动,模拟看板层叠翻页,呼应任务管理语境。","水平光束往复滑过进度条,线性进度隐喻,不阻断视线。":"水平光束往复滑过进度条,线性进度隐喻,不阻断视线。","三列骨架屏微闪,预示看板布局,减少布局跳变。":"三列骨架屏微闪,预示看板布局,减少布局跳变。","圆环进度弧 + 中心菱形符号呼吸,兼具进度指示与品牌印记。":"圆环进度弧 + 中心菱形符号呼吸,兼具进度指示与品牌印记。","Charcoal 圆角色块呼吸缩放,内嵌 Tower 图标,品牌存在感最强。":"Charcoal 圆角色块呼吸缩放,内嵌 Tower 图标,品牌存在感最强。",active:"活跃",working:"工作中"},en:{设置:"Settings",通用:"General",返回:"Back","加载中...":"Loading...",暂无选项:"No options","处理中...":"Processing...",确认:"Confirm",取消:"Cancel",工具调用:"Tool Calls","失败 {count}":"Failed {count}",通用设置:"General Settings",显示语言:"Display Language","选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。":"Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.",简体中文:"Simplified Chinese",语言设置:"Language setting",语言设置保存失败:"Language setting could not be saved","Agent 配置":"Agent Settings",项目配置:"Project Settings",通知:"Notifications","MCP 配置":"MCP Config","复制下面的 JSON 到支持 MCP 的客户端配置中。桌面打包版使用 App 内置 runtime,不需要全局安装 agent-tower。":"Copy this JSON into an MCP-capable client config. The packaged desktop app uses the bundled runtime and does not require a global agent-tower install.",复制配置:"Copy Config","MCP 配置已复制":"MCP config copied","复制 MCP 配置失败":"Failed to copy MCP config","MCP 配置加载失败":"Failed to load MCP config","无需全局 CLI":"No global CLI needed","桌面打包 runtime":"Desktop packaged runtime","工作区 runtime":"Workspace runtime","当前版本只生成通用 MCP 配置,不会自动修改 Claude、Codex 或其他第三方客户端配置文件。":"This version only generates generic MCP config and does not modify Claude, Codex, or other third-party client config files automatically.","暂无项目,请先创建项目":"No projects yet. Create one first.",选择项目:"Select Project","选择项目...":"Select project...",自动复制文件:"Auto-copy Files","创建 worktree 时自动从主仓库复制的文件或目录。支持 glob 模式。":"Files or directories to copy from the main repository when creating a worktree. Glob patterns are supported.","适用于不在 git 管理中但启动必需的文件,如 .env、node_modules、数据库文件等":"Useful for required startup files that are not tracked by git, such as .env, node_modules, or database files.","Setup 脚本":"Setup Script","创建 worktree 后自动执行的命令,每行一条,按顺序执行。":"Commands to run automatically after creating the worktree, one per line in order.","命令在 worktree 目录下执行,单条命令超时 5 分钟,失败不会阻断后续命令":"Commands run inside the worktree directory. Each command times out after 5 minutes, and a failure does not block later commands.",常用命令:"Quick Commands","在终端中可快速执行的命令,不会自动运行。":"Commands that can be run quickly in the terminal. They are not executed automatically.","保存中...":"Saving...",保存:"Save",有未保存的更改:"You have unsaved changes",系统通知:"System Notifications",任务完成时弹出桌面通知:"Show a desktop notification when a task finishes.",第三方通知:"Third-party Notifications",选择一个第三方渠道接收通知:"Choose a third-party channel to receive notifications.",无:"None",飞书:"Feishu",测试发送:"Send Test",发送成功:"Sent successfully",发送失败:"Send failed","跳转地址(用于生成任务链接)":"Base URL (used to generate task links)",'通知卡片中的"查看任务"按钮将跳转到 {path}':'The "View Task" button in the notification card will open {path}',通知模板:"Notification Templates","支持变量: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}":"Supported variables: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}",标题模板:"Title Template",内容模板:"Body Template",'✅ "{taskTitle}" 已完成,等待审查':'✅ "{taskTitle}" is complete and ready for review',保存所有更改:"Save All Changes","启动失败: {message}":"Start failed: {message}",未知错误:"Unknown error",会话已停止:"Session stopped","Agent 交互演示":"Agent Interaction Demo","选择 Agent":"Select Agent","输入你的问题或任务...":"Enter your question or task...","启动中...":"Starting...",开始:"Start",对话:"Conversation",已连接:"Connected","连接中...":"Connecting...",未连接:"Disconnected",停止:"Stop","选择 Agent 并输入问题开始对话":"Select an agent and enter a prompt to start chatting.",你:"You","发送后续消息...":"Send a follow-up message...",发送:"Send",新会话:"New Session",未选择:"Not selected",连接:"Connection","Profiles 设置":"Profile Settings","配置变体 (Profile Variant)":"Profile Variant",输入任务:"Task Input","等待 Agent 响应...":"Waiting for agent output...","发送消息给 Agent...":"Send a message to the agent...","启动失败,请重试":"Failed to start. Please try again.",启动:"Start","创建工作空间...":"Creating workspace...","创建会话...":"Creating session...","启动 Agent...":"Starting agent...","启动 Agent":"Start Agent","选择 Provider":"Select Provider"," (不可用)":" (Unavailable)",任务描述:"Task Description","描述你想让 Agent 完成的任务...":"Describe the task you want the agent to complete...","输入文件路径...":"Enter a file path...",添加:"Add",添加此目录:"Add this directory",名称:"Name",命令:"Command",切换渠道:"Switch Provider","(默认)":"(Default)","留空为 auto;或直接输入模型 ID(与 cursor-agent --model 一致)":"Leave empty for auto, or enter a model ID directly (same as cursor-agent --model).","正在加载 cursor-agent 模型列表…":"Loading cursor-agent model list...",收起列表:"Collapse List","从本机 cursor-agent 选择({count} 个)":"Choose from local cursor-agent ({count})","筛选模型…":"Filter models...","默认 (auto)":"Default (auto)",无匹配项:"No matches",请求失败:"Request failed","无法从本机加载模型列表({error})。仍可手动输入;或在安装 cursor-agent 的机器上运行":"Could not load models from the local machine ({error}). You can still enter one manually, or run","查看 ID。":"to inspect available IDs.","JSON 格式错误":"Invalid JSON format","删除 Profile Variant":"Delete Profile Variant","确定删除 {agentType} / {variant}?":"Delete {agentType} / {variant}?",新增:"New",内置:"Built-in","新增 Variant — {agentType}":"New Variant — {agentType}","编辑 {variant}":"Edit {variant}","Variant 名称":"Variant Name","例如: CUSTOM":"e.g. CUSTOM","配置 (JSON)":"Configuration (JSON)","状态变更失败,该操作不被允许":"Status change failed. This action is not allowed.","Git 操作":"Git Operations",删除任务:"Delete Task","Setup 完成":"Setup complete","Setup 失败: {error}":"Setup failed: {error}","尚未启动 Agent":"No agent started yet","选择一个 Agent 来执行此任务":"Choose an agent to execute this task.","选择一个 Agent 来执行此任务,Agent 将自动创建工作空间并开始工作。":"Choose an agent to execute this task. The agent will create a workspace automatically and start working.",回到底部:"Back to Bottom","代码已合并,以上为历史沟通记录":"The code has been merged. The conversation above is historical.","启动新 Agent":"Start New Agent","确认删除任务「{title}」?此操作不可撤销。":'Delete task "{title}"? This action cannot be undone.',删除:"Delete","正在运行的 Agent 将被停止":"The running agent will be stopped.",分支上未合并的变更将丢失:"Unmerged changes on the branch will be lost.","关联的工作目录(worktree)将被清理":"The associated worktree directory will be cleaned up.","{opLabel} 冲突 — {count} 个文件":"{opLabel} conflicts — {count} files",中止操作:"Abort Operation",解决冲突:"Resolve Conflicts","解决 {opLabel} 冲突":"Resolve {opLabel} Conflicts","在 IDE 中打开":"Open in IDE","发送中...":"Sending...","AI 辅助解决":"Resolve with AI","冲突文件({count})":"Conflicted Files ({count})","选择 Session(AI 辅助解决)":"Choose Session (Resolve with AI)","选择一个 Session...":"Select a session...","没有可用的 Session,请在 IDE 中手动解决冲突。":"No session is available. Please resolve the conflicts manually in your IDE.","TeamRun 模式下会把处理冲突请求发送到 Team Room,由团队调度处理。":"In TeamRun mode, the conflict request will be sent to Team Room for team scheduling.","已发送到 Team Room":"Sent to Team Room",快捷命令:"Quick Commands",待办:"Todos","上下文: {used} / {max} tokens":"Context: {used} / {max} tokens","已使用: {used} tokens":"Used: {used} tokens",可用:"Available",不可用:"Unavailable",该类型暂无运行配置:"No runtime configuration is available for this type.","追加 Prompt":"Append Prompt","追加到每次 prompt 末尾的文本":"Text appended to the end of every prompt.",跳过权限确认:"Skip Permission Confirmation",模型:"Model",推理强度:"Reasoning Effort",强制执行:"Force Execution",跳过所有确认和沙盒:"Skip All Confirmations and Sandbox",Profile:"Profile","~/.codex/config.toml 中的 profile 名称":"Profile name in ~/.codex/config.toml",是:"Yes",否:"No",覆盖:"Overwrite",跳过:"Skip","JSON 语法错误":"Invalid JSON syntax","TOML 语法错误: {message}":"Invalid TOML syntax: {message}","编辑 Provider":"Edit Provider","新建 Provider":"New Provider","例如: Claude Code (官方)":"e.g. Claude Code (Official)","Agent 类型":"Agent Type","选择 Agent 类型":"Select Agent Type","设为该类型的默认 Provider":"Set as the default provider for this agent type",运行配置:"Runtime Configuration",环境变量:"Environment Variables","注入到 Agent 进程的环境变量。Codex 的":"Environment variables injected into the agent process. Codex","指定的是变量名,实际值需在此处设置。":"specifies the variable name in env_key, and the actual value must be set here.","变量名,如 AZURE_OPENAI_API_KEY":"Variable name, e.g. AZURE_OPENAI_API_KEY",值:"Value",添加变量:"Add Variable","CLI 原生配置 (config.toml)":"Native CLI Config (config.toml)","CLI 原生配置 (settings.json)":"Native CLI Config (settings.json)","直接填写 Codex":"Enter a Codex","格式的配置片段,通过":"configuration snippet directly and inject it via","参数注入。不会修改你的":". It will not modify your","文件。":"file.","对应 Claude Code 的":"This corresponds to Claude Code",通过:"and is injected through","参数注入。在":". Configure","中设置 ANTHROPIC_API_KEY、ANTHROPIC_BASE_URL 等。":"inside env, such as ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL.","导出 Provider 备份":"Export Provider Backup","导出中...":"Exporting...",导出备份:"Export Backup","导出的备份文件将包含完整的 Provider 配置,包括环境变量、CLI settings 等敏感信息。任何拿到文件的人都可能直接使用这些 Provider。":"The exported backup file contains the full provider configuration, including sensitive information such as environment variables and CLI settings. Anyone with this file may be able to use those providers directly.","这个功能用于备份和迁移,不用于分享配置。":"This feature is for backup and migration, not for sharing configuration.","导出内容只包含用户层配置:自定义 Provider,以及对内置 Provider 的覆盖。":"The export only contains user-level configuration: custom providers and overrides of built-in providers.","我已知晓该备份文件包含敏感信息,只会保存在安全位置。":"I understand that this backup contains sensitive information and will only store it in a secure location.","导入 Provider 备份":"Import Provider Backup","导入中...":"Importing...","确认导入 {count} 项":"Import {count} item(s)","导出时间:{value}":"Exported at: {value}","模式:完整备份(含敏感信息)":"Mode: Full backup (contains sensitive data)","文件内 Provider 数量:{count}":"Providers in file: {count}","将覆盖当前已有的 Provider:{name}":"This will overwrite the existing provider: {name}","当前同 ID Provider 配置一致,本次不会重复写入。":"The provider with the same ID is already identical. It will not be written again.","当前不存在同 ID Provider,将直接新增。":"No provider with the same ID exists. It will be created directly.","系统内置 Provider 不可删除":"Built-in providers cannot be deleted.","已恢复默认 Provider 配置":"Default provider configuration restored.","Provider 已删除":"Provider deleted.","删除 Provider 失败":"Failed to delete provider.","Provider 备份已导出":"Provider backup exported.","导出 Provider 备份失败":"Failed to export provider backup.","备份文件不是有效的 JSON":"The backup file is not valid JSON.",导入预览失败:"Failed to preview import.","导入完成,当前配置无需变更":"Import complete. No changes were needed.","导入完成:新增 {create},覆盖 {overwrite},跳过 {skip}":"Import complete: created {create}, overwritten {overwrite}, skipped {skip}","导入 Provider 备份失败":"Failed to import provider backup.","Provider 配置":"Provider Configuration","管理 AI Agent 的连接配置和运行参数":"Manage AI agent connection settings and runtime parameters.",导入备份:"Import Backup","暂无 Provider 配置":"No providers configured yet.",默认:"Default","CLI 配置:":"CLI Config:",已配置:"Configured","环境变量:":"Environment Variables:",编辑:"Edit",删除自定义覆盖并恢复默认:"Delete custom override and restore default","恢复默认 Provider":"Restore Default Provider",'确定删除 "{name}" 的自定义覆盖,并恢复系统默认配置?':'Delete the custom override for "{name}" and restore the system default configuration?','确定删除 "{name}"?此操作不可撤销。':'Delete "{name}"? This action cannot be undone.',恢复默认:"Restore Default","{count} 个未提交变更":"{count} uncommitted changes","{count} 个冲突文件":"{count} conflicted files",变基进行中:"Rebase in progress",合并进行中:"Merge in progress","领先 {count} 个提交":"{count} commits ahead","落后 {count} 个提交":"{count} commits behind",已是最新:"Up to date","工作区有未提交的变更,请先让 Agent 提交或手动处理后再执行 Rebase / Merge 操作。":"The workspace has uncommitted changes. Ask the agent to commit them or handle them manually before running Rebase / Merge.",变基失败:"Rebase failed",合并失败:"Merge failed",确认合并:"Confirm Merge","加载分支状态...":"Loading branch status...","变基中...":"Rebasing...","变基 (Rebase)":"Rebase","将当前分支变基到最新的 {targetBranch}":"Rebase the current branch onto the latest {targetBranch}","合并 (Merge)":"Merge","合并中...":"Merging...","Squash merge 到 {targetBranch}":"Squash merge into {targetBranch}",提交消息:"Commit Message","输入提交消息...":"Enter commit message...",留空将使用默认消息:"Leave blank to use the default message.","Git Commit Message":"Git Commit Message","配置自动生成 commit message 时使用的 Agent 渠道和提示词。":"Configure the agent provider and prompt used for auto-generating commit messages.",访问安全:"Access Security",访问密码:"Access Password","开启后,进入 Agent Tower 需要输入密码。":"When enabled, Agent Tower requires this password before opening.",未启用:"Off",已启用:"On",将启用:"Will turn on",将关闭:"Will turn off",修改密码:"Change password",退出登录:"Log out","退出中...":"Logging out...",退出登录失败:"Failed to log out",已退出登录:"Logged out",当前密码:"Current password",新密码:"New password",确认密码:"Confirm password",请输入当前密码:"Enter the current password","密码至少需要 8 个字符":"Password must be at least 8 characters",两次输入不一致:"Passwords do not match",当前密码不正确:"Current password is incorrect","关闭后不再要求访问密码。":"After turning it off, Agent Tower will no longer require an access password.","保存后其他已登录页面需要重新输入。":"After saving, other signed-in pages will need to enter the password again.",关闭访问密码:"Turn off access password",已关闭:"Turned off","密码不正确,请重试":"Incorrect password. Please try again.",输入访问密码继续:"Enter the access password to continue","验证中...":"Verifying...",解锁:"Unlock","访问状态加载失败,请刷新后重试。":"Failed to load access status. Refresh and try again.","Agent 渠道":"Agent Provider",跟随任务:"Follow Task",'"跟随任务"表示使用当前任务所用的 Agent 渠道。选择具体渠道可使用更经济的模型。':'"Follow Task" uses the same provider as the current task. Select a specific provider to use a more cost-effective model.',提示词模板:"Prompt Template","自定义生成 commit message 的提示词。留空则使用内置默认模板。":"Custom prompt for generating commit messages. Leave empty to use the built-in default template.",保存失败:"Save failed",已保存:"Saved",已创建:"Created",创建:"Create",单人:"Solo",团队:"Team",团队协作:"Team Collaboration",团队协作设置:"Team Collaboration Settings","管理成员预设与团队模板。":"Manage member presets and team templates.",成员预设:"Member Presets",团队模板:"Team Templates","点击列表项可编辑。":"Click an item to edit it.",当前没有成员预设:"No member presets yet.",当前没有团队模板:"No team templates yet.",创建新成员预设:"Create a new member preset",编辑成员预设:"Edit member preset",创建新团队模板:"Create a new team template",编辑团队模板:"Edit team template",成员预设名称:"Member preset name",成员预设别名:"Member preset aliases",成员预设头像:"Member preset avatar",成员预设角色提示词:"Member preset role prompt",团队模板名称:"Team template name",别名:"Aliases",头像:"Avatar",角色提示词:"Role Prompt",可用能力:"Capabilities",工作区策略:"Workspace Policy",触发策略:"Trigger Policy",共享:"Shared",独占:"Dedicated",仅提及:"Mention only",所有用户消息:"All user messages",读房间:"Read room",发房间消息:"Post room message",提及成员:"Mention members",停止成员工作:"Stop member work",标记可审查:"Mark ready for review",读文件:"Read files",写文件:"Write files",运行命令:"Run commands","读 diff":"Read diff",合并工作区:"Merge workspace","{count} 个成员":"{count} member(s)","Provider 列表加载失败":"Failed to load providers","Provider 列表加载失败,无法创建或修改成员预设。":"Failed to load providers. Member presets cannot be created or updated.",成员预设加载失败:"Failed to load member presets",团队模板加载失败:"Failed to load team templates","请稍后重试。":"Please try again later.",重试:"Retry","暂无可用 Provider,请先在 Agent 配置中创建。":"No available provider. Create one in Agent Settings first.","alice, a, reviewer":"alice, a, reviewer","选择顺序即保存顺序。":"Selection order is the saved order.",已选成员:"Selected Members","上移下移后即为保存顺序。":"Use up/down to change the saved order.",尚未选择成员预设:"No member presets selected yet.","先创建成员预设,再配置团队模板。":"Create member presets first, then configure a team template.",删除失败:"Delete failed",上移:"Move up",下移:"Move down","创建 TeamRun":"Create TeamRun",TeamRun:"TeamRun",模式:"Mode",执行模式:"Execution mode","TeamRun 模式":"TeamRun mode",确认模式:"Confirm mode",自动模式:"Auto mode","默认使用自动模式,团队消息会直接排队执行。":"Auto mode is the default. Team messages are queued for execution directly.","模板成员会先加入,随后按顺序追加所选成员。":"Template members are added first, then the selected members are appended in order.","请选择至少一个团队模板或成员预设。":"Select at least one team template or member preset.","该任务已经存在 TeamRun。请刷新后再试。":"This task already has a TeamRun. Refresh and try again.","创建 TeamRun 失败":"Failed to create TeamRun","TeamRun 创建失败,请检查团队配置后重试":"TeamRun creation failed. Please check team config and retry.","前往 /settings/team 创建":"Go to /settings/team to create one","欢迎使用 Agent Tower":"Welcome to Agent Tower","需要我帮你做点什么?":"What can I help you with?","描述任务,选择 Agent 或团队,即刻开始":"Describe a task, pick an Agent or team, and start right away","描述一个任务,AI Agent 将为你开始工作":"Describe a task and an AI agent will start working on it.","TeamRun 协作配置":"TeamRun Configuration",团队协作配置:"Team Collaboration Config","切换回单 Agent":"Switch to Solo Agent",追加成员:"Additional Members","{count} 个追加成员":"{count} additional member(s)",去创建:"Create",请选择团队模板或追加成员:"Select a team template or add members","工作树隔离改动,支持 TeamRun、Merge、Rebase 和冲突解决。":"Worktrees isolate changes and support TeamRun, Merge, Rebase, and conflict resolution.","初始化 Git 后可使用工作树模式。":"Initialize Git to use worktree mode.","本地模式会直接修改项目主目录,不会自动提交,也不能使用 Merge、Rebase 或冲突解决。":"Main directory mode modifies the project directory directly. Auto-commit, Merge, Rebase, and conflict resolution are unavailable.","非 Git 项目只能使用本地模式。":"Non-Git projects can only use main directory mode.","TeamRun 需要工作树模式。开启团队模式时会自动切换为工作树模式。":"TeamRun requires worktree mode. Enabling team mode will switch to worktree mode automatically.","启用 TeamRun 后可选择团队模板或成员。":"After enabling TeamRun, choose a team template or members.",收起:"Collapse","没有可用项目,请先创建或恢复项目":"No available projects. Please create or restore a project first.","任务已创建,但启动 Agent 失败,可在详情中重试":"Task created, but failed to start Agent. You can retry from the task detail.",冲突:"Conflict",变基中:"Rebasing",合并中:"Merging","{count} 未提交":"{count} uncommitted","落后 {count}":"Behind {count}",可合并:"Mergeable",查看变更详情:"View changes","分支落后 {count} 个提交,建议先执行变基 (Rebase) 同步最新代码。":"The branch is {count} commits behind. Consider rebasing to sync the latest code.","合并到 {target}":"Merge into {target}",需要先变基同步最新代码:"Rebase required to sync latest code",请先处理未提交变更:"Handle uncommitted changes first","中止中...":"Aborting...","正在检查工作区状态...":"Checking workspace status...",当前分支还没有任何变更:"No changes on this branch yet",调整工作区宽度:"Resize workspace panel","{files} 个文件 · {lines} 行":"{files} files · {lines} lines",更新:"Update",合并:"Merge","{count} 个本地改动未处理,需要先整理后再继续":"{count} local changes pending — clean them up before continuing","{count} 个文件存在冲突,需要处理后继续":"{count} files have conflicts — resolve them to continue","正在同步源分支更新...":"Syncing updates from source branch...","正在提交变更...":"Submitting changes...","源分支 {branch} 有 {count} 个更新":"Source branch {branch} has {count} updates","{count} 个文件变更,可以安全提交":"{count} file changes, safe to submit",同步更新:"Sync updates","正在同步...":"Syncing...",提交变更:"Submit changes",需要先同步源分支更新:"Sync source branch updates first","更新失败,请稍后重试":"Update failed. Please try again later.","提交失败,请稍后重试":"Submit failed. Please try again later.","正在提交...":"Submitting...",确认提交:"Confirm Submit",请描述本次修改的内容:"Describe the changes in this submission","建议以 feat、fix、docs、refactor、chore 开头,保持提交记录清晰。feat 新增功能,fix 修复问题,docs 文档更新,refactor 代码重构,chore 日常维护。":"Start with feat (new feature), fix (bug fix), docs (documentation), refactor (restructure), or chore (maintenance) to keep the history clean.",需要先处理本地改动:"Handle local changes first",处理冲突:"Resolve conflicts","正在撤销...":"Undoing...",撤销操作:"Undo operation",确认后会停止当前工作并取消队列:"Confirming will stop the current work and clear the queue",每次新会话:"New session per request",复用上次会话:"Resume last session",仅自己队列:"Own queue only",全队列待处理:"Team pending queue",代码审查:"Review","{count} 个文件":"{count} files",未选择工作区:"No workspace selected",没有可显示的差异内容:"No diff content available","还有 {count} 行变更被折叠,点击展开全部":"{count} more lines collapsed — click to expand all","正在加载差异...":"Loading diff...",差异加载失败:"Failed to load diff",变更加载失败:"Failed to load changes",没有匹配筛选条件的文件:"No files match the filter",该提交没有文件变更:"No file changes in this commit",没有待审查的变更:"No changes to review",未提交:"Uncommitted",已提交:"Committed","筛选文件...":"Filter files...",无匹配文件:"No matching files",暂无变更文件:"No changed files",提交记录:"Commits",全部变更:"All changes","正在加载提交记录...":"Loading commits...",暂无提交记录:"No commits yet",加载更多提交:"Load more commits","{count} 个成员预设":"{count} member preset(s)","{count} 个团队模板":"{count} team template(s)",本地模式:"Main directory mode",编辑模板:"Edit template",编辑预设:"Edit preset",标题:"Title",测试:"Test",测试消息发送成功:"Test message sent successfully",触发:"Trigger","创建 Provider 失败":"Failed to create provider","创建 worktree 后自动执行的命令,每行一条。在 worktree 目录下执行,单条超时 5 分钟。":"Commands to run automatically after creating a worktree, one per line. Commands run inside the worktree directory and time out after 5 minutes each.","创建 worktree 时自动从主仓库复制的文件或目录,适用于 .env、node_modules 等不在 git 管理中的文件。支持 glob。":"Files or directories to copy from the main repository when creating a worktree, such as .env or node_modules files not tracked by git. Glob patterns are supported.",创建新模板:"Create new template",创建新预设:"Create new preset",当前没有可配置的项目:"No configurable projects yet",导出:"Export",导入:"Import",队列:"Queue","发送失败,请检查 Webhook 地址":"Failed to send. Check the webhook URL.","发送失败: {message}":"Send failed: {message}",返回列表:"Back to list","飞书 Webhook":"Feishu Webhook",'该 Provider 未配置额外参数。点击"编辑"添加运行配置、环境变量或 CLI 配置。':'This provider has no extra parameters configured. Click "Edit" to add runtime configuration, environment variables, or CLI configuration.',个变体:"variants",个文件:"files","更新 Provider 失败":"Failed to update provider",工作区:"Workspace",工作树模式:"Worktree mode","勾选后会连项目文件一起删除,请谨慎选择。":"When checked, project files will also be deleted. Choose carefully.","勾选后会删除 repoPath 指向的本地仓库目录,并禁用代码/Git 相关能力。":"When checked, the local repository directory pointed to by repoPath will be deleted, and code/Git capabilities will be disabled.","勾选后会删除项目路径指向的本地目录,并禁用代码/Git 相关能力。":"When checked, the local directory at the project path will be deleted, and code/Git capabilities will be disabled.",关闭:"Off","管理 Agent 执行器的配置变体。每个变体定义一组运行参数。":"Manage configuration variants for agent executors. Each variant defines a set of runtime parameters.","合并到 {targetBranch}":"Merge into {targetBranch}","恢复该项目时需要重新绑定一个有效的 Git 仓库路径。":"Restoring this project requires rebinding a valid Git repository path.","恢复该项目时需要重新绑定一个有效的项目路径。":"Restoring this project requires rebinding a valid project path.","恢复后,项目会重新出现在默认项目列表中。":"After restore, the project will appear in the default project list again.",恢复项目:"Restore project",会话:"Session",加载失败:"Failed to load","将归档当前工作区并自动在新 Worktree 中重新启动 Agent,旧工作区内容保留供参考。":"The current workspace will be archived and the agent will restart automatically in a new worktree. The old workspace content is kept for reference.","界面语言会保存到本地数据库,重启后继续生效。":"The interface language is saved to the local database and remains active after restart.","仅支持 PNG、JPG、WebP 头像。":"Only PNG, JPG, and WebP avatars are supported.",可用预设:"Available presets",模板名称:"Template name",内容:"Content",能力:"capabilities","启动 Agent 失败":"Failed to start Agent",启用团队模式:"Enable team mode",清除:"Clear",确认重试:"Confirm retry",人:" members",任务完成时弹出系统通知:"Show a system notification when a task finishes.","删除 Provider":"Delete Provider",删除任务失败:"Failed to delete task",删除项目:"Delete project",上传:"Upload",尚未选择:"Nothing selected yet",跳转地址:"Link target",'通知卡片中的"查看任务"按钮跳转地址前缀':'URL prefix for the "View Task" button in notification cards',通知设置:"Notification Settings",同时删除本地项目文件:"Also delete local project files",头像上传失败:"Avatar upload failed","头像图片不能超过 2MB。":"Avatar image must be 2 MB or smaller.",头像已上传:"Avatar uploaded",团队模式:"Team mode","推送到外部渠道(飞书群机器人等)":"Push to external channels such as Feishu bot webhooks.",我已确认这会删除本地项目文件:"I understand this will delete local project files",先创建成员预设:"Create member presets first","项目「{title}」的本地仓库文件已删除。恢复前需要重新绑定一个有效的 Git 仓库路径。":'Local repository files for project "{title}" have been deleted. Rebind a valid Git repository path before restoring it.',"项目「{title}」的本地项目文件已删除。恢复前需要重新绑定一个有效的项目路径。":'Local project files for project "{title}" have been deleted. Rebind a valid project path before restoring it.',"项目「{title}」将从默认项目列表隐藏,但历史任务、workspace 和会话记录仍会保留。":'Project "{title}" will be hidden from the default project list, but historical tasks, workspaces, and sessions will be kept.',"项目将从默认列表隐藏,历史记录保留。可选同时删除本地文件。":"The project will be hidden from the default list while history is kept. You can also delete local files.",项目为只读历史:"Project is read-only history",项目已恢复:"Project restored",项目已删除:"Project deleted","项目已删除,本地仓库文件也已清理。恢复项目并重新绑定仓库后才能继续操作。":"The project was deleted and local repository files were removed. Restore the project and rebind a repository before continuing.","项目已删除,并清理了本地文件":"Project deleted and local files removed","项目已删除。恢复项目后才能继续创建会话或修改任务。":"The project was deleted. Restore it before creating sessions or editing tasks.","项目已删除。Workspace 以只读模式展示历史内容。":"The project was deleted. The workspace shows historical content in read-only mode.","项目已删除且本地仓库文件已清理。这里只保留历史视图。":"The project was deleted and local repository files were removed. Only the historical view remains here.",新建:"New",新建配置:"New configuration",新增模板:"New template",新增预设:"New preset",选择:"Select","选择 {name} 头像":"Select {name} avatar","选择...":"Select...","选择一个 Provider 查看详情":"Select a provider to view details",选择一个项目查看配置:"Select a project to view configuration",选择预设头像:"Select preset avatar",已删除:"Deleted",源码已删除:"Source deleted","暂无 Agent 配置":"No agent configuration yet","暂无 Profile 配置":"No profile configuration yet",暂无变体:"No variants yet",暂无成员预设:"No member presets yet",暂无团队模板:"No team templates yet","重试启动 Agent":"Retry starting Agent",重新开始:"Restart",重新开始任务:"Restart task",追加独立成员:"Add standalone members",桌面通知:"Desktop notifications","Agent 将直接修改项目主目录;不会自动提交,也不能使用 Merge、Rebase 或冲突解决流程。":"The agent will modify the project main directory directly. Auto-commit, Merge, Rebase, and conflict resolution flows are unavailable.","Agent Tower 会尽量校验仓库 identity;如果 remote URL 或目录名不同,会给出警告但允许继续。":"Agent Tower will try to verify repository identity. If the remote URL or directory name differs, it will show a warning but still allow restore.","Agent Tower 会尽量校验项目 identity;如果 remote URL 或目录名不同,会给出警告但允许继续。":"Agent Tower will try to verify project identity. If the remote URL or directory name differs, it will show a warning but still allow restore.","CLI 配置":"CLI Config","Profile 配置":"Profile Configuration","Provider 列表加载失败。":"Failed to load provider list.","10 个首屏加载动画候选 · 颜色遵循 Agent Tower 设计规范 · 点击卡片查看全屏效果":"10 first-screen loading animation candidates. Colors follow the Agent Tower design system. Click a card to view it fullscreen.",设计推荐:"Design recommendation","首选:Charcoal Breathe (#10)":"Top choice: Charcoal Breathe (#10)","备选A:Tower Pulse (#1)":"Alternative A: Tower Pulse (#1)","备选B:Terminal Cursor (#4)":"Alternative B: Terminal Cursor (#4)","品牌感最强,Charcoal 色块+Tower 图标呼吸,用户对产品的第一印象即品牌本身。":"Strongest brand presence: a breathing Charcoal block with the Tower icon, making the product brand the first impression.","品牌图标直接出现,脉冲节奏稳定,不浮夸,适合工作台场景。":"The brand icon appears directly with a steady pulse. It stays restrained and fits a workspace product.","终端光标闪烁,贴合 Agent/终端协作的核心场景,开发者亲切感强。":"A blinking terminal cursor matches the core agent and terminal collaboration flow and feels familiar to developers.","全屏预览:{name}":"Fullscreen preview: {name}",关闭预览:"Close preview","按 Esc 或点击关闭按钮退出":"Press Esc or click the close button to exit","Agent Tower 品牌图标配合脉冲光点,传达「系统就绪中」的品牌感。":'Agent Tower brand icon with a pulsing dot, conveying a branded "system is getting ready" state.',"五根柱状条交错升降,暗喻任务编排队列,节奏感强。":"Five bars rise in sequence, suggesting an orchestration queue with a strong rhythm.","双层同心圆环反向旋转,精密工具质感,不浮夸。":"Two concentric rings rotate in opposite directions for a precise tool feel without excess.","终端风格光标闪烁,与 Agent Tower 终端协作场景直接呼应。":"A terminal-style cursor blink that directly echoes Agent Tower terminal collaboration.","三点波浪脉动,极简克制,适合工具型产品的默认加载。":"A minimal three-dot wave, restrained enough for a default loading state in a tool product.","三层卡片微幅浮动,模拟看板层叠翻页,呼应任务管理语境。":"Three cards float subtly, suggesting stacked kanban pages and task management.","水平光束往复滑过进度条,线性进度隐喻,不阻断视线。":"A horizontal beam sweeps across a progress bar, implying linear progress without distraction.","三列骨架屏微闪,预示看板布局,减少布局跳变。":"Three shimmering skeleton columns preview the kanban layout and reduce layout shift.","圆环进度弧 + 中心菱形符号呼吸,兼具进度指示与品牌印记。":"A ring progress arc and breathing center diamond combine progress feedback with a brand mark.","Charcoal 圆角色块呼吸缩放,内嵌 Tower 图标,品牌存在感最强。":"A breathing Charcoal rounded block with the Tower icon embedded, giving the strongest brand presence.","正在加载...":"Loading..."}},pv=S.createContext(null),gv="agent-tower.locale";function yv(n){return n?n==="en"?"en":n==="zh-CN"?"zh-CN":null:null}function cT(){if(typeof window>"u")return null;try{return yv(window.localStorage.getItem(gv))}catch{return null}}function fT(n){if(!(typeof window>"u"))try{window.localStorage.setItem(gv,n)}catch{}}function dT(){return typeof navigator>"u"||navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en"}function vv(){return cT()??dT()}function hT(n,i){if(!i)return n;let r=n;for(const[l,c]of Object.entries(i))r=r.replaceAll(`{${l}}`,String(c??""));return r}let Mf=vv();function bv(n,i,r){const l=uT[n]?.[i]??i;return hT(l,r)}function Ki(n,i){return bv(Mf,n,i)}function mT({children:n}){const i=S.useRef(vv()),[r,l]=S.useState(i.current),{data:c}=lT(),f=oT(),d=S.useRef(!1),m=S.useCallback(x=>{Mf=x,l(x),document.documentElement.lang=x,fT(x)},[]);S.useEffect(()=>{const x=yv(c?.locale)??i.current;m(x),c&&c.locale===null&&!d.current&&(d.current=!0,f.mutate({locale:x}))},[c,m,f]);const g=S.useCallback(x=>{const y=Mf;m(x),f.mutate({locale:x},{onError:()=>{m(y),Ur.error(Ki("语言设置保存失败"))}})},[m,f]),p=S.useMemo(()=>({locale:r,setLocale:g,t:(x,y)=>bv(r,x,y)}),[r,g]);return v.jsx(pv.Provider,{value:p,children:n})}function xi(){const n=S.useContext(pv);if(!n)throw new Error("useI18n must be used within I18nProvider");return n}function xv(n){var i,r,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(r=xv(n[i]))&&(l&&(l+=" "),l+=r)}else for(r in n)n[r]&&(l&&(l+=" "),l+=r);return l}function Sv(){for(var n,i,r=0,l="",c=arguments.length;r<c;r++)(n=arguments[r])&&(i=xv(n))&&(l&&(l+=" "),l+=i);return l}const pT=(n,i)=>{const r=new Array(n.length+i.length);for(let l=0;l<n.length;l++)r[l]=n[l];for(let l=0;l<i.length;l++)r[n.length+l]=i[l];return r},gT=(n,i)=>({classGroupId:n,validator:i}),wv=(n=new Map,i=null,r)=>({nextPart:n,validators:i,classGroupId:r}),Go="-",Ig=[],yT="arbitrary..",vT=n=>{const i=xT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return bT(d);const m=d.split(Go),g=m[0]===""&&m.length>1?1:0;return Ev(m,g,i)},getConflictingClassGroupIds:(d,m)=>{if(m){const g=l[d],p=r[d];return g?p?pT(p,g):g:p||Ig}return r[d]||Ig}}},Ev=(n,i,r)=>{if(n.length-i===0)return r.classGroupId;const c=n[i],f=r.nextPart.get(c);if(f){const p=Ev(n,i+1,f);if(p)return p}const d=r.validators;if(d===null)return;const m=i===0?n.join(Go):n.slice(i).join(Go),g=d.length;for(let p=0;p<g;p++){const x=d[p];if(x.validator(m))return x.classGroupId}},bT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),r=i.indexOf(":"),l=i.slice(0,r);return l?yT+l:void 0})(),xT=n=>{const{theme:i,classGroups:r}=n;return ST(r,i)},ST=(n,i)=>{const r=wv();for(const l in n){const c=n[l];rd(c,r,l,i)}return r},rd=(n,i,r,l)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];wT(d,i,r,l)}},wT=(n,i,r,l)=>{if(typeof n=="string"){ET(n,i,r);return}if(typeof n=="function"){TT(n,i,r,l);return}CT(n,i,r,l)},ET=(n,i,r)=>{const l=n===""?i:Tv(i,n);l.classGroupId=r},TT=(n,i,r,l)=>{if(RT(n)){rd(n(l),i,r,l);return}i.validators===null&&(i.validators=[]),i.validators.push(gT(r,n))},CT=(n,i,r,l)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[m,g]=c[d];rd(g,Tv(i,m),r,l)}},Tv=(n,i)=>{let r=n;const l=i.split(Go),c=l.length;for(let f=0;f<c;f++){const d=l[f];let m=r.nextPart.get(d);m||(m=wv(),r.nextPart.set(d,m)),r=m}return r},RT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,AT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,r=Object.create(null),l=Object.create(null);const c=(f,d)=>{r[f]=d,i++,i>n&&(i=0,l=r,r=Object.create(null))};return{get(f){let d=r[f];if(d!==void 0)return d;if((d=l[f])!==void 0)return c(f,d),d},set(f,d){f in r?r[f]=d:c(f,d)}}},Of="!",Jg=":",_T=[],$g=(n,i,r,l,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:r,maybePostfixModifierPosition:l,isExternal:c}),kT=n=>{const{prefix:i,experimentalParseClassName:r}=n;let l=c=>{const f=[];let d=0,m=0,g=0,p;const x=c.length;for(let B=0;B<x;B++){const G=c[B];if(d===0&&m===0){if(G===Jg){f.push(c.slice(g,B)),g=B+1;continue}if(G==="/"){p=B;continue}}G==="["?d++:G==="]"?d--:G==="("?m++:G===")"&&m--}const y=f.length===0?c:c.slice(g);let T=y,N=!1;y.endsWith(Of)?(T=y.slice(0,-1),N=!0):y.startsWith(Of)&&(T=y.slice(1),N=!0);const L=p&&p>g?p-g:void 0;return $g(f,N,T,L)};if(i){const c=i+Jg,f=l;l=d=>d.startsWith(c)?f(d.slice(c.length)):$g(_T,!1,d,void 0,!0)}if(r){const c=l;l=f=>r({className:f,parseClassName:c})}return l},NT=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((r,l)=>{i.set(r,1e6+l)}),r=>{const l=[];let c=[];for(let f=0;f<r.length;f++){const d=r[f],m=d[0]==="[",g=i.has(d);m||g?(c.length>0&&(c.sort(),l.push(...c),c=[]),l.push(d)):c.push(d)}return c.length>0&&(c.sort(),l.push(...c)),l}},MT=n=>({cache:AT(n.cacheSize),parseClassName:kT(n),sortModifiers:NT(n),...vT(n)}),OT=/\s+/,DT=(n,i)=>{const{parseClassName:r,getClassGroupId:l,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],m=n.trim().split(OT);let g="";for(let p=m.length-1;p>=0;p-=1){const x=m[p],{isExternal:y,modifiers:T,hasImportantModifier:N,baseClassName:L,maybePostfixModifierPosition:B}=r(x);if(y){g=x+(g.length>0?" "+g:g);continue}let G=!!B,Y=l(G?L.substring(0,B):L);if(!Y){if(!G){g=x+(g.length>0?" "+g:g);continue}if(Y=l(L),!Y){g=x+(g.length>0?" "+g:g);continue}G=!1}const K=T.length===0?"":T.length===1?T[0]:f(T).join(":"),W=N?K+Of:K,he=W+Y;if(d.indexOf(he)>-1)continue;d.push(he);const de=c(Y,G);for(let fe=0;fe<de.length;++fe){const A=de[fe];d.push(W+A)}g=x+(g.length>0?" "+g:g)}return g},jT=(...n)=>{let i=0,r,l,c="";for(;i<n.length;)(r=n[i++])&&(l=Cv(r))&&(c&&(c+=" "),c+=l);return c},Cv=n=>{if(typeof n=="string")return n;let i,r="";for(let l=0;l<n.length;l++)n[l]&&(i=Cv(n[l]))&&(r&&(r+=" "),r+=i);return r},zT=(n,...i)=>{let r,l,c,f;const d=g=>{const p=i.reduce((x,y)=>y(x),n());return r=MT(p),l=r.cache.get,c=r.cache.set,f=m,m(g)},m=g=>{const p=l(g);if(p)return p;const x=DT(g,r);return c(g,x),x};return f=d,(...g)=>f(jT(...g))},LT=[],Bt=n=>{const i=r=>r[n]||LT;return i.isThemeGetter=!0,i},Rv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Av=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UT=/^\d+\/\d+$/,BT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,HT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jr=n=>UT.test(n),Ue=n=>!!n&&!Number.isNaN(Number(n)),fi=n=>!!n&&Number.isInteger(Number(n)),df=n=>n.endsWith("%")&&Ue(n.slice(0,-1)),qa=n=>BT.test(n),VT=()=>!0,YT=n=>qT.test(n)&&!HT.test(n),_v=()=>!1,PT=n=>QT.test(n),KT=n=>GT.test(n),FT=n=>!ue(n)&&!ce(n),XT=n=>Pr(n,Mv,_v),ue=n=>Rv.test(n),Pi=n=>Pr(n,Ov,YT),hf=n=>Pr(n,WT,Ue),Wg=n=>Pr(n,kv,_v),ZT=n=>Pr(n,Nv,KT),Eo=n=>Pr(n,Dv,PT),ce=n=>Av.test(n),Gs=n=>Kr(n,Ov),IT=n=>Kr(n,e2),ey=n=>Kr(n,kv),JT=n=>Kr(n,Mv),$T=n=>Kr(n,Nv),To=n=>Kr(n,Dv,!0),Pr=(n,i,r)=>{const l=Rv.exec(n);return l?l[1]?i(l[1]):r(l[2]):!1},Kr=(n,i,r=!1)=>{const l=Av.exec(n);return l?l[1]?i(l[1]):r:!1},kv=n=>n==="position"||n==="percentage",Nv=n=>n==="image"||n==="url",Mv=n=>n==="length"||n==="size"||n==="bg-size",Ov=n=>n==="length",WT=n=>n==="number",e2=n=>n==="family-name",Dv=n=>n==="shadow",t2=()=>{const n=Bt("color"),i=Bt("font"),r=Bt("text"),l=Bt("font-weight"),c=Bt("tracking"),f=Bt("leading"),d=Bt("breakpoint"),m=Bt("container"),g=Bt("spacing"),p=Bt("radius"),x=Bt("shadow"),y=Bt("inset-shadow"),T=Bt("text-shadow"),N=Bt("drop-shadow"),L=Bt("blur"),B=Bt("perspective"),G=Bt("aspect"),Y=Bt("ease"),K=Bt("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],de=()=>[...he(),ce,ue],fe=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[ce,ue,g],ie=()=>[jr,"full","auto",...P()],ke=()=>[fi,"none","subgrid",ce,ue],Ae=()=>["auto",{span:["full",fi,ce,ue]},fi,ce,ue],Se=()=>[fi,"auto",ce,ue],Oe=()=>["auto","min","max","fr",ce,ue],ze=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ee=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...P()],X=()=>[jr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[n,ce,ue],me=()=>[...he(),ey,Wg,{position:[ce,ue]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",JT,XT,{size:[ce,ue]}],q=()=>[df,Gs,Pi],H=()=>["","none","full",p,ce,ue],I=()=>["",Ue,Gs,Pi],ee=()=>["solid","dashed","dotted","double"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Ue,df,ey,Wg],Te=()=>["","none",L,ce,ue],Be=()=>["none",Ue,ce,ue],Gt=()=>["none",Ue,ce,ue],en=()=>[Ue,ce,ue],Je=()=>[jr,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qa],breakpoint:[qa],color:[VT],container:[qa],"drop-shadow":[qa],ease:["in","out","in-out"],font:[FT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qa],shadow:[qa],spacing:["px",Ue],text:[qa],"text-shadow":[qa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jr,ue,ce,G]}],container:["container"],columns:[{columns:[Ue,ue,ce,m]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:de()}],overflow:[{overflow:fe()}],"overflow-x":[{"overflow-x":fe()}],"overflow-y":[{"overflow-y":fe()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{start:ie()}],end:[{end:ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[fi,"auto",ce,ue]}],basis:[{basis:[jr,"full","auto",m,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ue,jr,"auto","initial","none",ue]}],grow:[{grow:["",Ue,ce,ue]}],shrink:[{shrink:["",Ue,ce,ue]}],order:[{order:[fi,"first","last","none",ce,ue]}],"grid-cols":[{"grid-cols":ke()}],"col-start-end":[{col:Ae()}],"col-start":[{"col-start":Se()}],"col-end":[{"col-end":Se()}],"grid-rows":[{"grid-rows":ke()}],"row-start-end":[{row:Ae()}],"row-start":[{"row-start":Se()}],"row-end":[{"row-end":Se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Oe()}],"auto-rows":[{"auto-rows":Oe()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...ze(),"normal"]}],"justify-items":[{"justify-items":[...Ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ee()]}],"align-content":[{content:["normal",...ze()]}],"align-items":[{items:[...Ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":ze()}],"place-items":[{"place-items":[...Ee(),"baseline"]}],"place-self":[{"place-self":["auto",...Ee()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[m,"screen",...X()]}],"min-w":[{"min-w":[m,"screen","none",...X()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,Gs,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ce,hf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",df,ue]}],"font-family":[{font:[IT,ue,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ce,ue]}],"line-clamp":[{"line-clamp":[Ue,"none",ce,hf]}],leading:[{leading:[f,...P()]}],"list-image":[{"list-image":["none",ce,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ue,"from-font","auto",ce,Pi]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[Ue,"auto",ce,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fi,ce,ue],radial:["",ce,ue],conic:[fi,ce,ue]},$T,ZT]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ue,ce,ue]}],"outline-w":[{outline:["",Ue,Gs,Pi]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",x,To,Eo]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",y,To,Eo]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[Ue,Pi]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",T,To,Eo]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[Ue,ce,ue]}],"mix-blend":[{"mix-blend":[...$(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":$()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[ce,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":he()}],"mask-image-conic-pos":[{"mask-conic":[Ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,ue]}],filter:[{filter:["","none",ce,ue]}],blur:[{blur:Te()}],brightness:[{brightness:[Ue,ce,ue]}],contrast:[{contrast:[Ue,ce,ue]}],"drop-shadow":[{"drop-shadow":["","none",N,To,Eo]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",Ue,ce,ue]}],"hue-rotate":[{"hue-rotate":[Ue,ce,ue]}],invert:[{invert:["",Ue,ce,ue]}],saturate:[{saturate:[Ue,ce,ue]}],sepia:[{sepia:["",Ue,ce,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,ue]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Ue,ce,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Ue,ce,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ue,ce,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ue,ce,ue]}],"backdrop-invert":[{"backdrop-invert":["",Ue,ce,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Ue,ce,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Ue,ce,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Ue,ce,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ue,"initial",ce,ue]}],ease:[{ease:["linear","initial",Y,ce,ue]}],delay:[{delay:[Ue,ce,ue]}],animate:[{animate:["none",K,ce,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,ce,ue]}],"perspective-origin":[{"perspective-origin":de()}],rotate:[{rotate:Be()}],"rotate-x":[{"rotate-x":Be()}],"rotate-y":[{"rotate-y":Be()}],"rotate-z":[{"rotate-z":Be()}],scale:[{scale:Gt()}],"scale-x":[{"scale-x":Gt()}],"scale-y":[{"scale-y":Gt()}],"scale-z":[{"scale-z":Gt()}],"scale-3d":["scale-3d"],skew:[{skew:en()}],"skew-x":[{"skew-x":en()}],"skew-y":[{"skew-y":en()}],transform:[{transform:[ce,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:de()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Je()}],"translate-x":[{"translate-x":Je()}],"translate-y":[{"translate-y":Je()}],"translate-z":[{"translate-z":Je()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,ue]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[Ue,Gs,Pi,hf]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n2=zT(t2);function Dt(...n){return n2(Sv(n))}function mf(n){let i=0;for(const r of n){const l=r.codePointAt(0);l>=19968&&l<=40959||l>=13312&&l<=19903||l>=65280&&l<=65376||l>=12288&&l<=12351?i+=2:i+=1}return i}function VR(n,i){if(mf(n)<=i)return n;const r=i-1,l=Math.ceil(r/2),c=Math.floor(r/2);let f="",d=0;for(const x of n){const y=mf(x);if(d+y>l)break;f+=x,d+=y}const m=[...n];let g="",p=0;for(let x=m.length-1;x>=0;x--){const y=mf(m[x]);if(p+y>c)break;g=m[x]+g,p+=y}return f+"…"+g}let Qr=0;function jv(){Qr++,Qr===1&&(document.body.style.overflow="hidden")}function Df(){Qr=Math.max(0,Qr-1),Qr===0&&(document.body.style.overflow="")}function a2(){return Qr}const ty=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ny=Sv,i2=(n,i)=>r=>{var l;if(i?.variants==null)return ny(n,r?.class,r?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(p=>{const x=r?.[p],y=f?.[p];if(x===null)return null;const T=ty(x)||ty(y);return c[p][T]}),m=r&&Object.entries(r).reduce((p,x)=>{let[y,T]=x;return T===void 0||(p[y]=T),p},{}),g=i==null||(l=i.compoundVariants)===null||l===void 0?void 0:l.reduce((p,x)=>{let{class:y,className:T,...N}=x;return Object.entries(N).every(L=>{let[B,G]=L;return Array.isArray(G)?G.includes({...f,...m}[B]):{...f,...m}[B]===G})?[...p,y,T]:p},[]);return ny(n,d,g,r?.class,r?.className)};function ay(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function r2(...n){return i=>{let r=!1;const l=n.map(c=>{const f=ay(c,i);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let c=0;c<l.length;c++){const f=l[c];typeof f=="function"?f():ay(n[c],null)}}}}function s2(n){const i=o2(n),r=S.forwardRef((l,c)=>{const{children:f,...d}=l,m=S.Children.toArray(f),g=m.find(c2);if(g){const p=g.props.children,x=m.map(y=>y===g?S.Children.count(p)>1?S.Children.only(null):S.isValidElement(p)?p.props.children:null:y);return v.jsx(i,{...d,ref:c,children:S.isValidElement(p)?S.cloneElement(p,void 0,x):null})}return v.jsx(i,{...d,ref:c,children:f})});return r.displayName=`${n}.Slot`,r}var l2=s2("Slot");function o2(n){const i=S.forwardRef((r,l)=>{const{children:c,...f}=r;if(S.isValidElement(c)){const d=d2(c),m=f2(f,c.props);return c.type!==S.Fragment&&(m.ref=l?r2(l,d):d),S.cloneElement(c,m)}return S.Children.count(c)>1?S.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var u2=Symbol("radix.slottable");function c2(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===u2}function f2(n,i){const r={...i};for(const l in i){const c=n[l],f=i[l];/^on[A-Z]/.test(l)?c&&f?r[l]=(...m)=>{const g=f(...m);return c(...m),g}:c&&(r[l]=c):l==="style"?r[l]={...c,...f}:l==="className"&&(r[l]=[c,f].filter(Boolean).join(" "))}return{...n,...r}}function d2(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}const h2=i2("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ha({className:n,variant:i="default",size:r="default",asChild:l=!1,...c}){const f=l?l2:"button";return v.jsx(f,{"data-slot":"button","data-variant":i,"data-size":r,className:Dt(h2({variant:i,size:r,className:n})),...c})}function _t({className:n,...i}){return v.jsx("div",{"data-slot":"skeleton","aria-hidden":"true",className:Dt("animate-pulse rounded-md bg-muted motion-reduce:animate-none",n),...i})}function m2({children:n,className:i}){return v.jsx("div",{className:Dt("mx-auto w-full max-w-4xl px-5 py-5 sm:px-8 sm:py-6",i),children:n})}function YR({title:n,description:i,actions:r,className:l}){return v.jsxs("div",{className:Dt("mb-5 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",l),children:[v.jsxs("div",{className:"min-w-0",children:[v.jsx("h2",{className:"text-xl font-semibold tracking-tight text-foreground",children:n}),i&&v.jsx("p",{className:"mt-1 text-[13px] leading-relaxed text-muted-foreground",children:i})]}),r&&v.jsx("div",{className:"flex flex-wrap items-center gap-2 shrink-0",children:r})]})}function PR({children:n,className:i}){return v.jsx("h3",{className:Dt("text-[12px] font-semibold uppercase tracking-wide text-muted-foreground",i),children:n})}function KR({label:n,description:i,icon:r,children:l,align:c="start",controlWidth:f="fixed",className:d}){return v.jsxs("div",{className:Dt("flex flex-col gap-3 py-5 sm:flex-row sm:justify-between sm:gap-8",c==="center"?"sm:items-center":"sm:items-start",d),children:[v.jsxs("div",{className:"flex min-w-0 items-start gap-3 sm:max-w-[360px]",children:[r&&v.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground","aria-hidden":"true",children:v.jsx(r,{size:15})}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("div",{className:"text-[13px] font-medium text-foreground",children:n}),i&&v.jsx("p",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:i})]})]}),v.jsx("div",{className:Dt("shrink-0",f==="fixed"?"w-full sm:w-[260px]":"w-auto"),children:l})]})}function FR({label:n,description:i,children:r,className:l,htmlFor:c}){return v.jsxs("div",{className:Dt("space-y-1.5",l),children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:c,className:"block text-[13px] font-medium text-foreground",children:n}),i&&v.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:i})]}),r]})}function XR({icon:n,message:i,action:r,className:l}){return v.jsxs("div",{className:Dt("rounded-xl border border-dashed border-border bg-muted/30 py-14 text-center",l),children:[n&&v.jsx(n,{size:48,strokeWidth:1.25,className:"mx-auto mb-3 text-muted-foreground/40","aria-hidden":"true"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:i}),r&&v.jsx("div",{className:"mt-4 flex justify-center",children:r})]})}function ZR({saving:n,onSave:i,onCancel:r,className:l}){const{t:c}=xi();return v.jsx("div",{className:Dt("sticky bottom-0 z-10 -mx-5 border-t border-border/60 bg-background/90 px-5 py-3 backdrop-blur sm:-mx-8 sm:px-8",l),children:v.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v.jsx("span",{className:"text-xs text-muted-foreground",children:c("有未保存的更改")}),v.jsxs("div",{className:"flex items-center gap-2",children:[r&&v.jsx(ha,{size:"sm",variant:"ghost",onClick:r,disabled:n,children:c("取消")}),v.jsx(ha,{size:"sm",onClick:i,disabled:n,children:c(n?"保存中...":"保存")})]})]})})}function p2({rows:n=3}){return v.jsxs("div",{role:"status","aria-label":"Loading",children:[v.jsx(_t,{className:"h-7 w-36"}),v.jsx("div",{className:"mt-6 divide-y divide-border/60",children:Array.from({length:n}).map((i,r)=>v.jsxs("div",{className:"flex items-start justify-between gap-8 py-5",children:[v.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[v.jsx(_t,{className:"h-4 w-32"}),v.jsx(_t,{className:"h-3 w-64 max-w-full"})]}),v.jsx(_t,{className:"h-9 w-[260px] shrink-0 rounded-lg"})]},r))})]})}function IR(){return v.jsxs("div",{role:"status","aria-label":"Loading",children:[v.jsx(_t,{className:"h-7 w-36"}),v.jsxs("div",{className:"mt-6 grid gap-5 lg:grid-cols-[240px_minmax(0,1fr)]",children:[v.jsx("div",{className:"space-y-1",children:Array.from({length:5}).map((n,i)=>v.jsxs("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",children:[v.jsx(_t,{className:"h-2 w-2 rounded-full"}),v.jsxs("div",{className:"flex-1 space-y-1.5",children:[v.jsx(_t,{className:"h-3.5 w-3/4"}),v.jsx(_t,{className:"h-2.5 w-1/2"})]})]},i))}),v.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[v.jsxs("div",{className:"flex items-start justify-between gap-4",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(_t,{className:"h-5 w-44"}),v.jsx(_t,{className:"h-3 w-28"})]}),v.jsx(_t,{className:"h-8 w-24 rounded-md"})]}),v.jsxs("div",{className:"mt-8 space-y-3",children:[v.jsx(_t,{className:"h-3 w-20"}),v.jsx(_t,{className:"h-24 w-full rounded-lg"}),v.jsx(_t,{className:"h-3 w-20"}),v.jsx(_t,{className:"h-16 w-full rounded-lg"})]})]})]})]})}function JR({cards:n=6}){return v.jsxs("div",{role:"status","aria-label":"Loading",children:[v.jsxs("div",{className:"flex items-center justify-between gap-4",children:[v.jsx(_t,{className:"h-7 w-36"}),v.jsx(_t,{className:"h-8 w-44 rounded-lg"})]}),v.jsx("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:n}).map((i,r)=>v.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-border bg-card p-4",children:[v.jsx(_t,{className:"h-10 w-10 shrink-0 rounded-full"}),v.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[v.jsx(_t,{className:"h-4 w-2/3"}),v.jsx(_t,{className:"h-3 w-1/2"}),v.jsx(_t,{className:"h-3 w-3/4"})]})]},r))})]})}const g2=S.lazy(()=>_n(()=>import("./GeneralSettingsPage-DM4iy6dp.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(n=>({default:n.GeneralSettingsPage}))),y2=S.lazy(()=>_n(()=>import("./ProviderSettingsPage-D9vu3rO0.js"),__vite__mapDeps([7,6,8,9,1,2,3,5,4,10,11,12,13,14,15,16,17,18])).then(n=>({default:n.ProviderSettingsPage}))),v2=S.lazy(()=>_n(()=>import("./AgentEnvironmentSettingsPage-DeMVC_O2.js"),[]).then(n=>({default:n.AgentEnvironmentSettingsPage}))),b2=S.lazy(()=>_n(()=>import("./TeamSettingsPage-QXwc1AJE.js"),__vite__mapDeps([19,8,9,1,2,3,10,11,12,13,20,6,15,17,21])).then(n=>({default:n.TeamSettingsPage}))),x2=S.lazy(()=>_n(()=>import("./ProjectSettingsPage-2dD_ahm-.js"),__vite__mapDeps([22,23,24,11,25,3,17,9,14,15])).then(n=>({default:n.ProjectSettingsPage}))),S2=S.lazy(()=>_n(()=>import("./NotificationSettingsPage-D17SAmMK.js"),__vite__mapDeps([26,1,2,3,5,27,25])).then(n=>({default:n.NotificationSettingsPage}))),w2=S.lazy(()=>_n(()=>import("./McpSettingsPage-CTe-SNfY.js"),__vite__mapDeps([28,29,3])).then(n=>({default:n.McpSettingsPage}))),E2=S.lazy(()=>_n(()=>import("./ProfileSettingsPage-B2rHV2eU.js"),__vite__mapDeps([30,31,9,8,4,32,2,17,18])).then(n=>({default:n.ProfileSettingsPage}))),iy=[{id:"general",label:"通用",icon:jE},{id:"agent-environment",label:"Agent 环境",icon:ov},{id:"agents",label:"Agent 配置",icon:CE},{id:"team",label:"团队协作",icon:$E},{id:"projects",label:"项目配置",icon:NE},{id:"notifications",label:"通知",icon:gE},{id:"mcp",label:"MCP 配置",icon:bE}];function T2({tab:n}){switch(n){case"general":return v.jsx(g2,{});case"agent-environment":return v.jsx(v2,{});case"agents":return v.jsx(y2,{});case"team":return v.jsx(b2,{});case"projects":return v.jsx(x2,{});case"notifications":return v.jsx(S2,{});case"mcp":return v.jsx(w2,{});case"agents-legacy":return v.jsx(E2,{})}}function C2(){return v.jsx(m2,{children:v.jsx(p2,{rows:3})})}function R2(){const{t:n}=xi(),i=Ks(p=>p.settingsOpen),r=Ks(p=>p.settingsTab),l=Ks(p=>p.closeSettings),c=Ks(p=>p.setSettingsTab),[f,d]=S.useState(!1),m=S.useRef(!1),g=S.useRef(null);return S.useEffect(()=>{if(i){const p=requestAnimationFrame(()=>d(!0));m.current||(jv(),m.current=!0);const x=requestAnimationFrame(()=>g.current?.focus());return()=>{cancelAnimationFrame(p),cancelAnimationFrame(x)}}else{const p=setTimeout(()=>d(!1),200);return m.current&&(Df(),m.current=!1),()=>clearTimeout(p)}},[i]),S.useEffect(()=>()=>{m.current&&(Df(),m.current=!1)},[]),S.useEffect(()=>{if(!i)return;const p=x=>{x.key==="Escape"&&a2()===1&&l()};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[i,l]),!f&&!i?null:v.jsxs("div",{className:Dt("fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6 transition-opacity duration-200 motion-reduce:transition-none",i?"opacity-100":"opacity-0 pointer-events-none"),children:[v.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm",onClick:l,"aria-hidden":"true"}),v.jsxs("div",{ref:g,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":n("设置"),className:Dt("relative flex w-full max-w-[1100px] flex-col overflow-hidden rounded-2xl bg-background shadow-[0_12px_16px_-4px_rgba(36,36,36,0.08)] ring-1 ring-foreground/5 transform transition-all duration-200 outline-none motion-reduce:transition-none","h-[min(calc(100vh-1.5rem),840px)] sm:h-[min(calc(100vh-3rem),840px)]",i?"scale-100 translate-y-0":"scale-[0.97] translate-y-1"),children:[v.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border/60 bg-muted/40 px-5 py-3 sm:px-6",children:[v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-primary text-primary-foreground","aria-hidden":"true",children:v.jsx(VE,{size:14})}),v.jsx("h2",{className:"text-[15px] font-semibold text-foreground",children:n("设置")})]}),v.jsx("button",{onClick:l,"aria-label":n("取消"),className:"flex h-7 w-7 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:v.jsx(fv,{size:15})})]}),v.jsx("div",{className:"sm:hidden flex shrink-0 border-b border-border/60 bg-background overflow-x-auto scrollbar-none",role:"tablist",children:iy.map(p=>v.jsxs("button",{role:"tab","aria-selected":r===p.id,onClick:()=>c(p.id),className:Dt("flex items-center gap-1.5 px-4 py-2.5 text-xs whitespace-nowrap transition-colors border-b-2 -mb-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset",r===p.id?"border-primary text-foreground font-medium":"border-transparent text-muted-foreground hover:text-foreground"),children:[v.jsx(p.icon,{size:13,"aria-hidden":"true"}),v.jsx("span",{children:n(p.label)})]},p.id))}),v.jsxs("div",{className:"flex flex-1 min-h-0",children:[v.jsx("nav",{"aria-label":n("设置"),className:"hidden sm:flex w-[180px] shrink-0 flex-col gap-0.5 border-r border-border/60 bg-muted/30 p-3 overflow-y-auto scrollbar-app-thin",children:iy.map(p=>v.jsxs("button",{"aria-current":r===p.id?"page":void 0,onClick:()=>c(p.id),className:Dt("flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",r===p.id?"bg-background text-foreground font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)] ring-1 ring-foreground/[0.04]":"text-muted-foreground hover:text-foreground hover:bg-background/60"),children:[v.jsx(p.icon,{size:15,className:"shrink-0","aria-hidden":"true"}),v.jsx("span",{children:n(p.label)})]},p.id))}),v.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto scrollbar-app-thin bg-background",children:v.jsx(S.Suspense,{fallback:v.jsx(C2,{}),children:v.jsx(T2,{tab:r})})})]})]})]})}const zv="agent-tower:desktop-titlebar",jf="agent-tower:desktop-platform",Ji={desktop:"1",desktopTitlebar:"integrated"},Lv=S.createContext(null),A2={usesIntegratedTitlebar:!1,desktopPlatform:"unknown",hasMacTrafficLights:!1,preserveDesktopSearch:n=>n};function _2(n){const i=new URLSearchParams(n);return i.get("desktop")===Ji.desktop&&i.get("desktopTitlebar")===Ji.desktopTitlebar}function Uv(n){return n==="darwin"||n==="win32"||n==="linux"?n:"unknown"}function k2(){if(typeof window>"u")return"unknown";try{return Uv(window.sessionStorage.getItem(jf))}catch{return"unknown"}}function N2(n){if(!(typeof window>"u"))try{n==="unknown"?window.sessionStorage.removeItem(jf):window.sessionStorage.setItem(jf,n)}catch{}}function M2(){if(typeof window>"u")return"none";try{return window.sessionStorage.getItem(zv)===Ji.desktopTitlebar?"integrated":"none"}catch{return"none"}}function O2(n){if(!(typeof window>"u"))try{n==="integrated"&&window.sessionStorage.setItem(zv,Ji.desktopTitlebar)}catch{}}function D2(n){return _2(n)?(O2("integrated"),"integrated"):M2()}function j2(n){const i=new URLSearchParams(n),r=Uv(i.get("desktopPlatform"));return i.get("desktop")===Ji.desktop&&r!=="unknown"?(N2(r),r):k2()}function ry(n,i){const r=new URLSearchParams(n);r.set("desktop",Ji.desktop),r.set("desktopTitlebar",Ji.desktopTitlebar),i!=="unknown"&&r.set("desktopPlatform",i);const l=r.toString();return l?`?${l}`:""}function z2(n,i){if(typeof n=="string"){const r=n.indexOf("#"),l=r>=0?n.slice(0,r):n,c=r>=0?n.slice(r):"",f=l.indexOf("?"),d=f>=0?l.slice(0,f):l,m=f>=0?l.slice(f):"";return`${d}${ry(m,i)}${c}`}return{...n,search:ry(n.search??"",i)}}function L2({children:n}){const i=bi(),r=S.useMemo(()=>D2(i.search),[i.search]),l=S.useMemo(()=>j2(i.search),[i.search]),c=r==="integrated",f=c&&l==="darwin",d=S.useMemo(()=>({usesIntegratedTitlebar:c,desktopPlatform:l,hasMacTrafficLights:f,preserveDesktopSearch:m=>c?z2(m,l):m}),[l,f,c]);return v.jsx(Lv.Provider,{value:d,children:n})}function Bv(){return S.useContext(Lv)??A2}function U2(){const n=Wy(),{preserveDesktopSearch:i}=Bv();return S.useMemo(()=>((l,c)=>typeof l=="number"?n(l):n(i(l),c)),[n,i])}function B2(){return rn({queryKey:xe.agentCli.manifest,queryFn:()=>Le.get("/agent-cli/manifest")})}function qv(){return rn({queryKey:xe.agentCli.status,queryFn:()=>Le.get("/agent-cli/status")})}function Hv(){const n=tt();return ht({mutationFn:()=>Le.post("/agent-cli/status/refresh"),onSuccess:i=>{n.setQueryData(xe.agentCli.status,i)}})}function q2(){const n=tt();return ht({mutationFn:i=>Le.post("/agent-cli/install-previews",{toolId:i}),onSuccess:i=>{n.setQueryData(xe.agentCli.preview(i.id),i)}})}function H2(n,i=!0){return rn({queryKey:n?xe.agentCli.task(n):["agent-cli","task",null],queryFn:()=>Le.get(`/agent-cli/install-tasks/${n}`),enabled:!!n&&i,refetchInterval:r=>{const l=r.state.data?.status;return l==="running"||l==="verifying"||l==="cancelling"?1e3:!1}})}function Q2(n,i=!0){return rn({queryKey:n?xe.agentCli.logs(n):["agent-cli","logs",null],queryFn:()=>Le.get(`/agent-cli/install-tasks/${n}/logs`),enabled:!!n&&i,refetchInterval:i&&n?1e3:!1})}function G2(){const n=tt();return ht({mutationFn:i=>Le.post("/agent-cli/install-tasks",{previewId:i}),onSuccess:({task:i})=>{n.setQueryData(xe.agentCli.task(i.id),i),n.invalidateQueries({queryKey:xe.agentCli.status})}})}function V2(){const n=tt();return ht({mutationFn:i=>Le.post(`/agent-cli/install-tasks/${i}/cancel`),onSuccess:i=>{n.setQueryData(xe.agentCli.task(i.id),i)}})}const Qv=["codex","claude-code","cursor-agent"];function Gv(n){return Qv.includes(n)}function Y2(n){return Qv.some(i=>n?.some(r=>r.toolId===i&&r.installStatus==="installed"))}const Mo=new Set(["succeeded","failed","cancelled"]),P2="AGENT_CLI_INSTALL_LOCAL_ONLY",K2=[];function F2(n){if(!(n instanceof rl))return;const i=n.details.code;return typeof i=="string"?i:void 0}function zr(n,i){return n instanceof rl&&(n.status===403||F2(n)===P2)?"需要在本机 Agent Tower 打开后安装。":n instanceof Error?n.message:i}function X2(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(2)} MB`}function Z2(n){return n==="darwin"?"macOS":n==="linux"?"Linux":n==="win32"?"Windows":n??"Unknown"}function I2(n){return n.map(i=>i.data.endsWith(`
14
+ `)?i.data:`${i.data}
15
+ `).join("")}function J2(n){switch(n?.installStatus){case"installed":return{label:"已安装",className:"bg-success/10 text-success",icon:Nf};case"legacy_detected":return{label:"Legacy 已检测",className:"bg-warning/10 text-warning",icon:Nf};case"missing":return{label:"未安装",className:"bg-muted text-muted-foreground",icon:uv};case"unsupported":return{label:"当前平台不支持",className:"bg-muted text-muted-foreground",icon:Qo};case"error":return{label:"检测失败",className:"bg-destructive/10 text-destructive",icon:Qo};default:return{label:"未检测",className:"bg-muted text-muted-foreground",icon:wE}}}function $2(n){switch(n){case"running":return"安装中";case"verifying":return"验证中";case"succeeded":return"已完成";case"failed":return"失败";case"cancelling":return"取消中";case"cancelled":return"已取消";default:return"未开始"}}function W2(n){return n?.installStatus==="installed"}function eC({status:n}){const{t:i}=xi(),r=J2(n),l=r.icon;return v.jsxs("span",{className:Dt("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-medium",r.className),children:[v.jsx(l,{size:11,"aria-hidden":"true"}),i(r.label)]})}function tC({item:n,status:i,selected:r,disabled:l,onSelect:c,onPreview:f,previewing:d,previewDisabled:m}){const{t:g}=xi(),p=n.install.kind==="downloaded-script"&&Gv(n.id),x=W2(i),y=i?.installStatus==="unsupported";return v.jsx("div",{className:Dt("rounded-lg border px-4 py-3 transition-colors",r?"border-primary bg-muted/30":"border-border bg-background"),children:v.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[v.jsxs("button",{type:"button",onClick:c,className:"min-w-0 flex-1 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.jsx("span",{className:"text-sm font-semibold text-foreground",children:n.displayName}),v.jsx(eC,{status:i}),n.legacy&&v.jsx("span",{className:"rounded-full bg-warning/10 px-2 py-0.5 text-[11px] font-medium text-warning",children:g("迁移中")})]}),v.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[v.jsx("span",{children:n.description??g("Agent CLI 工具")}),n.install.kind==="detect-only"&&v.jsx("span",{children:n.install.reason}),i?.version&&v.jsxs("span",{className:"font-mono",children:["v",i.version]}),i?.authStatus==="needs_interactive_login"&&v.jsx("span",{children:g("需要登录")})]})]}),v.jsx("div",{className:"flex shrink-0 items-center gap-2",children:p?v.jsxs("div",{className:"flex flex-col items-start gap-1 sm:items-end",children:[v.jsxs(ha,{size:"sm",variant:x?"outline":"default",onClick:f,disabled:l||m||d||y,children:[d?v.jsx(Vr,{className:"animate-spin",size:14}):v.jsx(cv,{size:14}),g(x?"重新预览":"预览安装")]}),y&&v.jsx("span",{className:"max-w-40 text-xs text-muted-foreground",children:g("当前平台不可安装。")})]}):v.jsxs(ha,{size:"sm",variant:"outline",disabled:!0,children:[v.jsx(OE,{size:14}),g("只检测")]})})]})})}function nC({preview:n,item:i,confirmed:r,onConfirmedChange:l,onInstall:c,installing:f,disabled:d}){const{t:m}=xi();return v.jsxs("section",{className:"rounded-lg border border-border bg-muted/20 p-4",children:[v.jsxs("div",{className:"flex items-start gap-2.5",children:[v.jsx(PE,{size:16,className:"mt-0.5 shrink-0 text-success","aria-hidden":"true"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("h3",{className:"text-sm font-semibold text-foreground",children:m("安装预览")}),v.jsx("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:m("安装任务将使用后端 manifest 中的受控计划执行,前端只提交工具选择和预览 ID。")})]})]}),v.jsxs("dl",{className:"mt-4 grid gap-3 text-xs sm:grid-cols-2",children:[v.jsxs("div",{children:[v.jsx("dt",{className:"text-muted-foreground",children:m("平台")}),v.jsx("dd",{className:"mt-1 font-medium text-foreground",children:Z2(n.platform)})]}),v.jsxs("div",{children:[v.jsx("dt",{className:"text-muted-foreground",children:m("脚本大小")}),v.jsx("dd",{className:"mt-1 font-medium text-foreground",children:X2(n.sizeBytes)})]}),v.jsxs("div",{className:"sm:col-span-2",children:[v.jsx("dt",{className:"text-muted-foreground",children:m("最终下载地址")}),v.jsx("dd",{className:"mt-1 break-all font-mono text-[11px] text-foreground",children:n.finalUrl})]}),v.jsxs("div",{children:[v.jsx("dt",{className:"text-muted-foreground",children:m("解释器")}),v.jsxs("dd",{className:"mt-1 break-all font-mono text-[11px] text-foreground",children:[n.interpreter.command,n.interpreter.args.length>0?` ${n.interpreter.args.join(" ")}`:""]})]}),v.jsxs("div",{children:[v.jsx("dt",{className:"text-muted-foreground",children:m("固定参数")}),v.jsx("dd",{className:"mt-1 break-all font-mono text-[11px] text-foreground",children:n.fixedArgs.length>0?n.fixedArgs.join(" "):m("无")})]}),v.jsxs("div",{className:"sm:col-span-2",children:[v.jsx("dt",{className:"text-muted-foreground",children:"SHA-256"}),v.jsx("dd",{className:"mt-1 break-all font-mono text-[11px] text-foreground",children:n.sha256})]})]}),i?.officialSources.length?v.jsxs("div",{className:"mt-4",children:[v.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:m("官方来源")}),v.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:i.officialSources.map(g=>v.jsxs("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground hover:bg-muted",children:[g.label,v.jsx(_E,{size:11,"aria-hidden":"true"})]},g.url))})]}):null,n.redirectChain.length>0&&v.jsxs("div",{className:"mt-4",children:[v.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:m("下载链路")}),v.jsx("div",{className:"mt-2 space-y-1 rounded-md bg-background px-3 py-2",children:n.redirectChain.map((g,p)=>v.jsxs("div",{className:"flex items-start justify-between gap-3 text-[11px]",children:[v.jsxs("span",{className:"break-all text-foreground",children:[g.host,g.path]}),v.jsx("span",{className:"shrink-0 font-mono text-muted-foreground",children:g.statusCode})]},`${g.url}-${p}`))})]}),n.riskNotes.length>0&&v.jsxs("div",{className:"mt-4 rounded-lg border border-warning/25 bg-warning/10 px-3 py-2.5",children:[v.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-warning",children:[v.jsx(Qo,{size:13,"aria-hidden":"true"}),m("安装风险")]}),v.jsx("ul",{className:"mt-2 space-y-1 text-xs leading-relaxed text-foreground",children:n.riskNotes.map(g=>v.jsxs("li",{children:["• ",g]},g))})]}),v.jsxs("label",{className:"mt-4 flex cursor-pointer items-start gap-2 rounded-lg border border-border bg-background px-3 py-2.5 text-xs leading-relaxed text-foreground",children:[v.jsx("input",{type:"checkbox",checked:r,onChange:g=>l(g.target.checked),className:"mt-0.5 h-4 w-4 rounded border-border"}),v.jsx("span",{children:m("我已确认官方来源、下载摘要和风险说明。")})]}),v.jsx("div",{className:"mt-4 flex justify-end",children:v.jsxs(ha,{onClick:c,disabled:!r||f||d,children:[f?v.jsx(Vr,{className:"animate-spin",size:14}):v.jsx(cv,{size:14}),m("确认安装")]})})]})}function aC({task:n,logs:i,onCancel:r,cancelling:l}){const{t:c}=xi(),f=n&&!Mo.has(n.status),d=n?.status==="failed",m=n?.status==="succeeded";return v.jsxs("section",{className:"rounded-lg border border-border bg-background p-4",children:[v.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[f?v.jsx(Vr,{className:"animate-spin text-primary",size:16,"aria-hidden":"true"}):m?v.jsx(Nf,{className:"text-success",size:16,"aria-hidden":"true"}):d?v.jsx(uv,{className:"text-destructive",size:16,"aria-hidden":"true"}):v.jsx(ZE,{className:"text-muted-foreground",size:16,"aria-hidden":"true"}),v.jsxs("div",{children:[v.jsx("h3",{className:"text-sm font-semibold text-foreground",children:c("安装任务")}),v.jsx("p",{className:"text-xs text-muted-foreground",children:c($2(n?.status))})]})]}),f&&v.jsxs(ha,{size:"sm",variant:"outline",onClick:r,disabled:l,children:[l?v.jsx(Vr,{className:"animate-spin",size:14}):v.jsx(FE,{size:14}),c("取消")]})]}),n?.errorMessage&&v.jsx("div",{className:"mt-3 rounded-md border border-destructive/25 bg-destructive/10 px-3 py-2 text-xs text-destructive",children:n.errorMessage}),v.jsx("pre",{className:"mt-4 max-h-56 overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-[11px] leading-relaxed text-foreground scrollbar-app-thin",children:i||c("等待安装日志...")})]})}function iC({variant:n="settings",onSkip:i}){const{t:r}=xi(),l=B2(),c=qv(),f=Hv(),d=q2(),m=G2(),g=V2(),[p,x]=S.useState(null),[y,T]=S.useState(null),[N,L]=S.useState(null),[B,G]=S.useState(!1),[Y,K]=S.useState(null),[W,he]=S.useState(null),de=S.useRef(!1),fe=S.useRef(null),A=S.useRef(0),P=H2(N),ie=N?P.data??(m.data?.task.id===N?m.data.task:void 0):void 0,ke=ie?!Mo.has(ie.status):!1,Ae=Q2(N,!!N&&(ke||!ie)),Se=l.data??K2,Oe=S.useMemo(()=>new Map((c.data?.tools??[]).map($=>[$.toolId,$])),[c.data]),ze=S.useMemo(()=>(Se.find(ae=>Gv(ae.id)&&Oe.get(ae.id)?.installStatus!=="installed")??Se[0])?.id??null,[Se,Oe]),Ee=p??ze,k=y?Se.find($=>$.id===y.toolId)??null:null,X=!!ie&&!Mo.has(ie.status),Q=I2(Ae.data?.entries??[]),me=()=>{T(null),G(!1)};S.useEffect(()=>{de.current||c.data?.stale&&(de.current=!0,f.mutate(void 0,{onError:$=>{K(zr($,r("检测失败")))}}))},[f,c.data?.stale,r]),S.useEffect(()=>{!ie||!Mo.has(ie.status)||fe.current!==ie.id&&(fe.current=ie.id,Ae.refetch(),f.mutate(void 0,{onError:$=>{K(zr($,r("检测失败")))}}))},[Ae,f,ie,r]);const ye=()=>{K(null),f.mutate(void 0,{onError:$=>{const ae=zr($,r("检测失败"));K(ae),Ur.error(ae)}})},C=$=>{A.current+=1,he(null),x($),me(),K(null)},q=$=>{const ae=A.current+1;A.current=ae,x($),he($),me(),K(null),d.mutate($,{onSuccess:Te=>{A.current!==ae||Te.toolId!==$||(T(Te),G(!1))},onError:Te=>{if(A.current!==ae)return;const Be=zr(Te,r("创建安装预览失败"));K(Be),Ur.error(Be)},onSettled:()=>{A.current===ae&&he(null)}})},H=()=>{if(!y||!k||y.toolId!==k.id||!B){G(!1),K(r("安装预览已失效,请重新预览当前工具。"));return}K(null),m.mutate(y.id,{onSuccess:$=>{L($.task.id),T(null),G(!1),Ur.success($.reused?r("已有安装任务正在运行"):r("安装任务已启动"))},onError:$=>{const ae=zr($,r("启动安装失败"));K(ae),Ur.error(ae)}})},I=()=>{N&&g.mutate(N,{onError:$=>{const ae=zr($,r("取消安装失败"));K(ae),Ur.error(ae)}})},ee=()=>{ie?.toolId&&(L(null),fe.current=null,q(ie.toolId))};return l.isLoading||c.isLoading?v.jsx("div",{className:"space-y-3",children:Array.from({length:4}).map(($,ae)=>v.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-muted"},ae))}):l.isError||c.isError?v.jsx("div",{role:"alert",className:"rounded-lg border border-destructive/25 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:r("Agent CLI 环境信息加载失败。")}):v.jsxs("div",{className:Dt("space-y-5",n==="onboarding"&&"max-h-[min(72vh,720px)] overflow-y-auto pr-1 scrollbar-app-thin"),children:[v.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.jsx("h3",{className:"text-base font-semibold text-foreground",children:r("Agent CLI 环境")}),c.data?.stale&&v.jsx("span",{className:"rounded-full bg-muted px-2 py-0.5 text-[11px] font-medium text-muted-foreground",children:r("状态待检测")})]}),v.jsx("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:r("Codex、Claude Code 和 Cursor 可通过官方安装计划引导安装;Gemini CLI 首版只检测。")})]}),v.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[i&&v.jsx(ha,{size:"sm",variant:"ghost",onClick:i,children:r("跳过")}),v.jsxs(ha,{size:"sm",variant:"outline",onClick:ye,disabled:f.isPending,children:[v.jsx(qE,{className:Dt(f.isPending&&"animate-spin"),size:14}),r("重新检测")]})]})]}),Y&&v.jsx("div",{role:"alert",className:"rounded-lg border border-warning/25 bg-warning/10 px-4 py-3 text-sm text-foreground",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Qo,{size:15,className:"mt-0.5 shrink-0 text-warning","aria-hidden":"true"}),v.jsx("span",{children:Y})]})}),v.jsx("div",{className:"grid gap-3",children:Se.map($=>v.jsx(tC,{item:$,status:Oe.get($.id),selected:$.id===Ee,disabled:X,onSelect:()=>C($.id),onPreview:()=>q($.id),previewing:d.isPending&&W===$.id,previewDisabled:d.isPending},$.id))}),y&&k&&v.jsx(nC,{preview:y,item:k,confirmed:B,onConfirmedChange:G,onInstall:H,installing:m.isPending,disabled:X}),ie&&v.jsxs("div",{className:"space-y-3",children:[v.jsx(aC,{task:ie,logs:Q,onCancel:I,cancelling:g.isPending}),ie.status==="failed"&&v.jsx("div",{className:"flex justify-end",children:v.jsxs(ha,{size:"sm",variant:"outline",onClick:ee,disabled:d.isPending,children:[v.jsx(QE,{size:14}),r("重试")]})})]})]})}const Vv="agentCliEnvironmentOnboardingSkipped";function rC(){return typeof window>"u"?!0:window.localStorage.getItem(Vv)==="true"}function sC(){typeof window>"u"||window.localStorage.setItem(Vv,"true")}function lC(){const{t:n}=xi(),i=qv(),r=Hv(),[l,c]=S.useState(rC),f=S.useRef(!1),d=S.useMemo(()=>{if(l)return!1;const g=i.data;return!g||g.stale?!1:!Y2(g.tools)},[l,i.data]);S.useEffect(()=>{l||f.current||!i.data?.stale||(f.current=!0,r.mutate())},[l,r,i.data?.stale]),S.useEffect(()=>{if(d)return jv(),()=>Df()},[d]);const m=()=>{sC(),c(!0)};return d?v.jsxs("div",{className:"fixed inset-0 z-[55] flex items-center justify-center p-3 sm:p-6",role:"dialog","aria-modal":"true","aria-label":n("Agent 环境引导"),children:[v.jsx("div",{className:"absolute inset-0 bg-black/25 backdrop-blur-sm","aria-hidden":"true"}),v.jsxs("div",{className:Dt("relative flex max-h-[calc(100vh-1.5rem)] w-full max-w-4xl flex-col overflow-hidden rounded-xl border border-border bg-background shadow-xl","sm:max-h-[calc(100vh-3rem)]"),children:[v.jsxs("div",{className:"flex shrink-0 items-start justify-between gap-4 border-b border-border/60 bg-muted/30 px-5 py-4",children:[v.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[v.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary text-primary-foreground","aria-hidden":"true",children:v.jsx(ov,{size:18})}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("h2",{className:"text-base font-semibold text-foreground",children:n("配置本机 Agent CLI")}),v.jsx("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:n("当前没有检测到可用的 Codex、Claude Code 或 Cursor CLI。可以先完成安装,也可以稍后从设置里打开。")})]})]}),v.jsx("button",{type:"button",onClick:m,"aria-label":n("跳过"),className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:v.jsx(fv,{size:16})})]}),v.jsx("div",{className:"min-h-0 flex-1 overflow-hidden p-5",children:v.jsx(iC,{variant:"onboarding",onSkip:m})})]})]}):null}function oC(){return v.jsx(L2,{children:v.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[v.jsx(Rw,{}),v.jsx(R2,{}),v.jsx(lC,{})]})})}const uC="/assets/agent-tower-logo-COx9gy77.png",cC=`
16
+ @media (prefers-reduced-motion: reduce) {
17
+ .loading-anim-area,
18
+ .loading-anim-area * {
19
+ animation-duration: 0.01ms !important;
20
+ animation-iteration-count: 1 !important;
21
+ transition-duration: 0.01ms !important;
22
+ }
23
+ }
24
+ `;function fC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsxs("div",{className:"relative w-10 h-10 loading-anim-area",children:[v.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-10 h-10 text-primary",children:[v.jsx("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",fill:"currentColor",className:"animate-pulse motion-reduce:animate-none"}),v.jsx("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-40"}),v.jsx("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-60"})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-primary animate-ping motion-reduce:animate-none opacity-40"})})]}),v.jsx("span",{className:"text-sm text-muted-foreground animate-pulse motion-reduce:animate-none",children:"Loading"})]})}function dC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx("div",{className:"flex items-end gap-1 h-8 loading-anim-area",children:[0,1,2,3,4].map(n=>v.jsx("div",{className:"w-1.5 bg-primary/80 rounded-full",style:{animation:`stackRise 1.2s ease-in-out ${n*.15}s infinite`,height:"8px"}},n))}),v.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),v.jsx("style",{children:`
25
+ @keyframes stackRise {
26
+ 0%, 100% { height: 8px; opacity: 0.4; }
27
+ 50% { height: 28px; opacity: 1; }
28
+ }
29
+ @media (prefers-reduced-motion: reduce) {
30
+ @keyframes stackRise {
31
+ 0%, 100% { height: 16px; opacity: 0.7; }
32
+ }
33
+ }
34
+ `})]})}function hC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsxs("div",{className:"relative w-10 h-10 loading-anim-area",children:[v.jsx("div",{className:"absolute inset-0 border-2 border-border rounded-full"}),v.jsx("div",{className:"absolute inset-0 border-2 border-transparent border-t-primary rounded-full",style:{animation:"orbitSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite"}}),v.jsx("div",{className:"absolute inset-[6px] border border-border/60 rounded-full"}),v.jsx("div",{className:"absolute inset-[6px] border border-transparent border-b-primary/60 rounded-full",style:{animation:"orbitSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse"}})]}),v.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),v.jsx("style",{children:`
35
+ @keyframes orbitSpin {
36
+ to { transform: rotate(360deg); }
37
+ }
38
+ @media (prefers-reduced-motion: reduce) {
39
+ @keyframes orbitSpin {
40
+ to { transform: rotate(0deg); }
41
+ }
42
+ }
43
+ `})]})}function mC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsxs("div",{className:"flex items-center gap-0.5 px-4 py-2 bg-primary rounded-lg loading-anim-area",children:[v.jsx("span",{className:"text-primary-foreground text-xs font-mono tracking-wider",children:"loading"}),v.jsx("span",{className:"inline-block w-[7px] h-4 bg-primary-foreground/80 ml-0.5",style:{animation:"termBlink 1s steps(1) infinite"}})]}),v.jsx("style",{children:`
44
+ @keyframes termBlink {
45
+ 0%, 50% { opacity: 1; }
46
+ 51%, 100% { opacity: 0; }
47
+ }
48
+ @media (prefers-reduced-motion: reduce) {
49
+ @keyframes termBlink {
50
+ 0%, 100% { opacity: 0.8; }
51
+ }
52
+ }
53
+ `})]})}function pC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx("div",{className:"flex items-center gap-2 loading-anim-area",children:[0,1,2].map(n=>v.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-primary",style:{animation:`dotWave 1.4s ease-in-out ${n*.2}s infinite`}},n))}),v.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),v.jsx("style",{children:`
54
+ @keyframes dotWave {
55
+ 0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
56
+ 40% { transform: scale(1); opacity: 1; }
57
+ }
58
+ @media (prefers-reduced-motion: reduce) {
59
+ @keyframes dotWave {
60
+ 0%, 100% { transform: scale(1); opacity: 0.7; }
61
+ }
62
+ }
63
+ `})]})}function gC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx("div",{className:"relative w-10 h-10 loading-anim-area",children:[0,1,2].map(n=>v.jsx("div",{className:"absolute rounded-md border border-border bg-background",style:{width:`${28-n*4}px`,height:`${28-n*4}px`,left:`${6+n*2}px`,top:`${6+n*2}px`,animation:`layerShift 2s ease-in-out ${n*.3}s infinite`,boxShadow:"0 1px 2px rgba(0,0,0,0.05)"}},n))}),v.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),v.jsx("style",{children:`
64
+ @keyframes layerShift {
65
+ 0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
66
+ 25% { transform: translate(-3px, -3px) rotate(-2deg); opacity: 0.8; }
67
+ 50% { transform: translate(0, -4px) rotate(0deg); opacity: 1; }
68
+ 75% { transform: translate(3px, -3px) rotate(2deg); opacity: 0.8; }
69
+ }
70
+ @media (prefers-reduced-motion: reduce) {
71
+ @keyframes layerShift {
72
+ 0%, 100% { transform: none; opacity: 0.8; }
73
+ }
74
+ }
75
+ `})]})}function yC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx("div",{className:"w-32 h-1 bg-border rounded-full overflow-hidden loading-anim-area",children:v.jsx("div",{className:"h-full bg-primary rounded-full",style:{animation:"progressBeam 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite"}})}),v.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),v.jsx("style",{children:`
76
+ @keyframes progressBeam {
77
+ 0% { width: 0%; margin-left: 0%; }
78
+ 50% { width: 60%; margin-left: 20%; }
79
+ 100% { width: 0%; margin-left: 100%; }
80
+ }
81
+ @media (prefers-reduced-motion: reduce) {
82
+ @keyframes progressBeam {
83
+ 0%, 100% { width: 40%; margin-left: 30%; }
84
+ }
85
+ }
86
+ `})]})}function vC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx("div",{className:"flex gap-2 loading-anim-area",children:[0,1,2].map(n=>v.jsxs("div",{className:"flex flex-col gap-1.5 w-16",children:[v.jsx("div",{className:"h-2 rounded-full bg-border",style:{animation:`shimmer 1.8s ease-in-out ${n*.2}s infinite`}}),[0,1].map(i=>v.jsx("div",{className:"h-6 rounded bg-muted",style:{animation:`shimmer 1.8s ease-in-out ${(n*2+i)*.15}s infinite`}},i))]},n))}),v.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),v.jsx("style",{children:`
87
+ @keyframes shimmer {
88
+ 0%, 100% { opacity: 0.4; }
89
+ 50% { opacity: 1; }
90
+ }
91
+ @media (prefers-reduced-motion: reduce) {
92
+ @keyframes shimmer {
93
+ 0%, 100% { opacity: 0.7; }
94
+ }
95
+ }
96
+ `})]})}function bC(){return v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx("div",{className:"relative w-10 h-10 loading-anim-area",children:v.jsxs("svg",{viewBox:"0 0 40 40",className:"w-10 h-10",children:[v.jsx("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"var(--border)",strokeWidth:"2"}),v.jsx("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"var(--primary)",strokeWidth:"2",strokeDasharray:"25 75",strokeLinecap:"round",style:{animation:"glyphRotate 1.2s linear infinite"},transform:"rotate(-90 20 20)"}),v.jsx("path",{d:"M20 10L14 16L20 22L26 16Z",fill:"var(--primary)",opacity:"0.8",style:{animation:"glyphFade 1.2s ease-in-out infinite"}})]})}),v.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),v.jsx("style",{children:`
97
+ @keyframes glyphRotate {
98
+ to { stroke-dashoffset: -100; }
99
+ }
100
+ @keyframes glyphFade {
101
+ 0%, 100% { opacity: 0.4; transform: scale(0.9); }
102
+ 50% { opacity: 0.9; transform: scale(1); }
103
+ }
104
+ @media (prefers-reduced-motion: reduce) {
105
+ @keyframes glyphRotate {
106
+ to { stroke-dashoffset: 0; }
107
+ }
108
+ @keyframes glyphFade {
109
+ 0%, 100% { opacity: 0.8; transform: scale(1); }
110
+ }
111
+ }
112
+ `})]})}function Yv({size:n="md"}){const i=n==="lg"?{container:"w-20 h-20",img:"w-16 h-16"}:{container:"w-12 h-12",img:"w-10 h-10"};return v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("div",{className:`flex items-center justify-center ${i.container} loading-anim-area`,children:v.jsx("img",{src:uC,alt:"Agent Tower",className:`${i.img} object-contain rounded-xl`,style:{animation:"charcoalBreathe 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"}})}),v.jsx("style",{children:`
113
+ @keyframes charcoalBreathe {
114
+ 0%, 100% { transform: scale(1); opacity: 0.85; }
115
+ 50% { transform: scale(1.08); opacity: 1; }
116
+ }
117
+ @media (prefers-reduced-motion: reduce) {
118
+ @keyframes charcoalBreathe {
119
+ 0%, 100% { transform: scale(1); opacity: 1; }
120
+ }
121
+ }
122
+ `})]})}const $R=[{id:"tower-pulse",name:"Tower Pulse",description:"Agent Tower 品牌图标配合脉冲光点,传达「系统就绪中」的品牌感。",component:fC},{id:"stack-rise",name:"Stack Rise",description:"五根柱状条交错升降,暗喻任务编排队列,节奏感强。",component:dC},{id:"orbit-ring",name:"Orbit Ring",description:"双层同心圆环反向旋转,精密工具质感,不浮夸。",component:hC},{id:"terminal-cursor",name:"Terminal Cursor",description:"终端风格光标闪烁,与 Agent Tower 终端协作场景直接呼应。",component:mC},{id:"dot-wave",name:"Dot Wave",description:"三点波浪脉动,极简克制,适合工具型产品的默认加载。",component:pC},{id:"layer-shift",name:"Layer Shift",description:"三层卡片微幅浮动,模拟看板层叠翻页,呼应任务管理语境。",component:gC},{id:"progress-beam",name:"Progress Beam",description:"水平光束往复滑过进度条,线性进度隐喻,不阻断视线。",component:yC},{id:"skeleton-board",name:"Skeleton Board",description:"三列骨架屏微闪,预示看板布局,减少布局跳变。",component:vC},{id:"glyph-rotate",name:"Glyph Rotate",description:"圆环进度弧 + 中心菱形符号呼吸,兼具进度指示与品牌印记。",component:bC},{id:"charcoal-breathe",name:"Charcoal Breathe",description:"Charcoal 圆角色块呼吸缩放,内嵌 Tower 图标,品牌存在感最强。",component:Yv}];function Lr(){const{usesIntegratedTitlebar:n}=Bv();return v.jsxs("div",{className:`fixed inset-0 z-50 flex items-center justify-center bg-background ${n?"app-region-drag":""}`,children:[v.jsx("style",{children:cC}),v.jsx(Yv,{size:"lg"})]})}const xC=S.lazy(()=>_n(()=>import("./ProjectKanbanPage-SpCqpcZ0.js"),__vite__mapDeps([33,10,11,2,12,8,9,34,35,13,3,23,20,6,17,36,24,25,27,32,21,1,16,15,29,37])).then(n=>({default:n.ProjectKanbanPage}))),sy=S.lazy(()=>_n(()=>import("./ConversationPage-ykUuKcMG.js"),__vite__mapDeps([38,10,11,2,12,36,3,35,13,23,20,6,17,27,15])).then(n=>({default:n.ConversationPage}))),SC=S.lazy(()=>_n(()=>import("./DemoPage-Cx-F46PV.js"),[]).then(n=>({default:n.DemoPage}))),wC=S.lazy(()=>_n(()=>import("./AgentDemoPage-UmBBXiZq.js"),__vite__mapDeps([39,36,2,3,10,11,12,34,31,21])).then(n=>({default:n.AgentDemoPage}))),EC=S.lazy(()=>_n(()=>import("./LoadingPreviewPage-C58uR8H7.js"),[]).then(n=>({default:n.LoadingPreviewPage}))),TC=new Set(["general","agent-environment","agents","team","projects","notifications","mcp","agents-legacy"]);function ly(){const n=U2(),{tab:i}=iw();return S.useEffect(()=>{const r=i&&TC.has(i)?i:"general";Ks.getState().openSettings(r),n("/",{replace:!0})},[n,i]),null}const CC=Jw([{path:"/",element:v.jsx(oC,{}),children:[{index:!0,element:v.jsx(S.Suspense,{fallback:v.jsx(Lr,{}),children:v.jsx(xC,{})})},{path:"conversations",element:v.jsx(S.Suspense,{fallback:v.jsx(Lr,{}),children:v.jsx(sy,{})})},{path:"conversations/:conversationId",element:v.jsx(S.Suspense,{fallback:v.jsx(Lr,{}),children:v.jsx(sy,{})})},{path:"demo",element:v.jsx(S.Suspense,{fallback:v.jsx(Lr,{}),children:v.jsx(SC,{})})},{path:"agent-demo",element:v.jsx(S.Suspense,{fallback:v.jsx(Lr,{}),children:v.jsx(wC,{})})},{path:"loading-preview",element:v.jsx(S.Suspense,{fallback:v.jsx(Lr,{}),children:v.jsx(EC,{})})},{path:"settings",element:v.jsx(ly,{})},{path:"settings/:tab",element:v.jsx(ly,{})}]}]);function RC(){return v.jsx(uE,{router:CC})}const pa=Object.create(null);pa.open="0";pa.close="1";pa.ping="2";pa.pong="3";pa.message="4";pa.upgrade="5";pa.noop="6";const Oo=Object.create(null);Object.keys(pa).forEach(n=>{Oo[pa[n]]=n});const zf={type:"error",data:"parser error"},Pv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Kv=typeof ArrayBuffer=="function",Fv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,sd=({type:n,data:i},r,l)=>Pv&&i instanceof Blob?r?l(i):oy(i,l):Kv&&(i instanceof ArrayBuffer||Fv(i))?r?l(i):oy(new Blob([i]),l):l(pa[n]+(i||"")),oy=(n,i)=>{const r=new FileReader;return r.onload=function(){const l=r.result.split(",")[1];i("b"+(l||""))},r.readAsDataURL(n)};function uy(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let pf;function AC(n,i){if(Pv&&n.data instanceof Blob)return n.data.arrayBuffer().then(uy).then(i);if(Kv&&(n.data instanceof ArrayBuffer||Fv(n.data)))return i(uy(n.data));sd(n,!1,r=>{pf||(pf=new TextEncoder),i(pf.encode(r))})}const cy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<cy.length;n++)Fs[cy.charCodeAt(n)]=n;const _C=n=>{let i=n.length*.75,r=n.length,l,c=0,f,d,m,g;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);const p=new ArrayBuffer(i),x=new Uint8Array(p);for(l=0;l<r;l+=4)f=Fs[n.charCodeAt(l)],d=Fs[n.charCodeAt(l+1)],m=Fs[n.charCodeAt(l+2)],g=Fs[n.charCodeAt(l+3)],x[c++]=f<<2|d>>4,x[c++]=(d&15)<<4|m>>2,x[c++]=(m&3)<<6|g&63;return p},kC=typeof ArrayBuffer=="function",ld=(n,i)=>{if(typeof n!="string")return{type:"message",data:Xv(n,i)};const r=n.charAt(0);return r==="b"?{type:"message",data:NC(n.substring(1),i)}:Oo[r]?n.length>1?{type:Oo[r],data:n.substring(1)}:{type:Oo[r]}:zf},NC=(n,i)=>{if(kC){const r=_C(n);return Xv(r,i)}else return{base64:!0,data:n}},Xv=(n,i)=>i==="blob"?n instanceof Blob?n:new Blob([n]):n instanceof ArrayBuffer?n:n.buffer,Zv="",MC=(n,i)=>{const r=n.length,l=new Array(r);let c=0;n.forEach((f,d)=>{sd(f,!1,m=>{l[d]=m,++c===r&&i(l.join(Zv))})})},OC=(n,i)=>{const r=n.split(Zv),l=[];for(let c=0;c<r.length;c++){const f=ld(r[c],i);if(l.push(f),f.type==="error")break}return l};function DC(){return new TransformStream({transform(n,i){AC(n,r=>{const l=r.length;let c;if(l<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,l);else if(l<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,l)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(r)})}})}let gf;function Co(n){return n.reduce((i,r)=>i+r.length,0)}function Ro(n,i){if(n[0].length===i)return n.shift();const r=new Uint8Array(i);let l=0;for(let c=0;c<i;c++)r[c]=n[0][l++],l===n[0].length&&(n.shift(),l=0);return n.length&&l<n[0].length&&(n[0]=n[0].slice(l)),r}function jC(n,i){gf||(gf=new TextDecoder);const r=[];let l=0,c=-1,f=!1;return new TransformStream({transform(d,m){for(r.push(d);;){if(l===0){if(Co(r)<1)break;const g=Ro(r,1);f=(g[0]&128)===128,c=g[0]&127,c<126?l=3:c===126?l=1:l=2}else if(l===1){if(Co(r)<2)break;const g=Ro(r,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),l=3}else if(l===2){if(Co(r)<8)break;const g=Ro(r,8),p=new DataView(g.buffer,g.byteOffset,g.length),x=p.getUint32(0);if(x>Math.pow(2,21)-1){m.enqueue(zf);break}c=x*Math.pow(2,32)+p.getUint32(4),l=3}else{if(Co(r)<c)break;const g=Ro(r,c);m.enqueue(ld(f?g:gf.decode(g),i)),l=0}if(c===0||c>n){m.enqueue(zf);break}}}})}const Iv=4;function jt(n){if(n)return zC(n)}function zC(n){for(var i in jt.prototype)n[i]=jt.prototype[i];return n}jt.prototype.on=jt.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this};jt.prototype.once=function(n,i){function r(){this.off(n,r),i.apply(this,arguments)}return r.fn=i,this.on(n,r),this};jt.prototype.off=jt.prototype.removeListener=jt.prototype.removeAllListeners=jt.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+n];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,c=0;c<r.length;c++)if(l=r[c],l===i||l.fn===i){r.splice(c,1);break}return r.length===0&&delete this._callbacks["$"+n],this};jt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),r=this._callbacks["$"+n],l=1;l<arguments.length;l++)i[l-1]=arguments[l];if(r){r=r.slice(0);for(var l=0,c=r.length;l<c;++l)r[l].apply(this,i)}return this};jt.prototype.emitReserved=jt.prototype.emit;jt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};jt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Po=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,r)=>r(i,0),Yn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),LC="arraybuffer";function Jv(n,...i){return i.reduce((r,l)=>(n.hasOwnProperty(l)&&(r[l]=n[l]),r),{})}const UC=Yn.setTimeout,BC=Yn.clearTimeout;function Ko(n,i){i.useNativeTimers?(n.setTimeoutFn=UC.bind(Yn),n.clearTimeoutFn=BC.bind(Yn)):(n.setTimeoutFn=Yn.setTimeout.bind(Yn),n.clearTimeoutFn=Yn.clearTimeout.bind(Yn))}const qC=1.33;function HC(n){return typeof n=="string"?QC(n):Math.ceil((n.byteLength||n.size)*qC)}function QC(n){let i=0,r=0;for(let l=0,c=n.length;l<c;l++)i=n.charCodeAt(l),i<128?r+=1:i<2048?r+=2:i<55296||i>=57344?r+=3:(l++,r+=4);return r}function $v(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function GC(n){let i="";for(let r in n)n.hasOwnProperty(r)&&(i.length&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return i}function VC(n){let i={},r=n.split("&");for(let l=0,c=r.length;l<c;l++){let f=r[l].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class YC extends Error{constructor(i,r,l){super(i),this.description=r,this.context=l,this.type="TransportError"}}class od extends jt{constructor(i){super(),this.writable=!1,Ko(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,r,l){return super.emitReserved("error",new YC(i,r,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const r=ld(i,this.socket.binaryType);this.onPacket(r)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,r={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const r=GC(i);return r.length?"?"+r:""}}class PC extends od{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const r=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||r()})),this.writable||(l++,this.once("drain",function(){--l||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const r=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};OC(i,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,MC(i,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=$v()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(i,r)}}let Wv=!1;try{Wv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const KC=Wv;function FC(){}class XC extends PC{constructor(i){if(super(i),typeof location<"u"){const r=location.protocol==="https:";let l=location.port;l||(l=r?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||l!==i.port}}doWrite(i,r){const l=this.request({method:"POST",data:i});l.on("success",r),l.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(r,l)=>{this.onError("xhr poll error",r,l)}),this.pollXhr=i}}let Gr=class Do extends jt{constructor(i,r,l){super(),this.createRequest=i,Ko(this,l),this._opts=l,this._method=l.method||"GET",this._uri=r,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var i;const r=Jv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(r);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&l.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var c;l.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=Do.requestsCount++,Do.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=FC,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Do.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Gr.requestsCount=0;Gr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",fy);else if(typeof addEventListener=="function"){const n="onpagehide"in Yn?"pagehide":"unload";addEventListener(n,fy,!1)}}function fy(){for(let n in Gr.requests)Gr.requests.hasOwnProperty(n)&&Gr.requests[n].abort()}const ZC=(function(){const n=e0({xdomain:!1});return n&&n.responseType!==null})();class IC extends XC{constructor(i){super(i);const r=i&&i.forceBase64;this.supportsBinary=ZC&&!r}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Gr(e0,this.uri(),i)}}function e0(n){const i=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||KC))return new XMLHttpRequest}catch{}if(!i)try{return new Yn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const t0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class JC extends od{get name(){return"websocket"}doOpen(){const i=this.uri(),r=this.opts.protocols,l=t0?{}:Jv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,r,l)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const l=i[r],c=r===i.length-1;sd(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}c&&Po(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=$v()),this.supportsBinary||(r.b64=1),this.createUri(i,r)}}const yf=Yn.WebSocket||Yn.MozWebSocket;class $C extends JC{createSocket(i,r,l){return t0?new yf(i,r,l):r?new yf(i,r):new yf(i)}doWrite(i,r){this.ws.send(r)}}class WC extends od{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const r=jC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=i.readable.pipeThrough(r).getReader(),c=DC();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{l.read().then(({done:m,value:g})=>{m||(this.onPacket(g),f())}).catch(m=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const l=i[r],c=r===i.length-1;this._writer.write(l).then(()=>{c&&Po(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const eR={websocket:$C,webtransport:WC,polling:IC},tR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,nR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Lf(n){if(n.length>8e3)throw"URI too long";const i=n,r=n.indexOf("["),l=n.indexOf("]");r!=-1&&l!=-1&&(n=n.substring(0,r)+n.substring(r,l).replace(/:/g,";")+n.substring(l,n.length));let c=tR.exec(n||""),f={},d=14;for(;d--;)f[nR[d]]=c[d]||"";return r!=-1&&l!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=aR(f,f.path),f.queryKey=iR(f,f.query),f}function aR(n,i){const r=/\/{2,9}/g,l=i.replace(r,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&l.splice(0,1),i.slice(-1)=="/"&&l.splice(l.length-1,1),l}function iR(n,i){const r={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,c,f){c&&(r[c]=f)}),r}const Uf=typeof addEventListener=="function"&&typeof removeEventListener=="function",jo=[];Uf&&addEventListener("offline",()=>{jo.forEach(n=>n())},!1);class yi extends jt{constructor(i,r){if(super(),this.binaryType=LC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(r=i,i=null),i){const l=Lf(i);r.hostname=l.host,r.secure=l.protocol==="https"||l.protocol==="wss",r.port=l.port,l.query&&(r.query=l.query)}else r.host&&(r.hostname=Lf(r.host).host);Ko(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(l=>{const c=l.prototype.name;this.transports.push(c),this._transportsByName[c]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=VC(this.opts.query)),Uf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},jo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const r=Object.assign({},this.opts.query);r.EIO=Iv,r.transport=i,this.id&&(r.sid=this.id);const l=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&yi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(i);r.open(),this.setTransport(r)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",yi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=i.data,this._onError(r);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let l=0;l<this.writeBuffer.length;l++){const c=this.writeBuffer[l].data;if(c&&(r+=HC(c)),l>0&&r>this._maxPayload)return this.writeBuffer.slice(0,l);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,Po(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,r,l){return this._sendPacket("message",i,r,l),this}send(i,r,l){return this._sendPacket("message",i,r,l),this}_sendPacket(i,r,l,c){if(typeof r=="function"&&(c=r,r=void 0),typeof l=="function"&&(c=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const f={type:i,data:r,options:l};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),i()},l=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():i()}):this.upgrading?l():i()),this}_onError(i){if(yi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Uf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=jo.indexOf(this._offlineEventListener);l!==-1&&jo.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,r),this.writeBuffer=[],this._prevBufferLen=0}}}yi.protocol=Iv;class rR extends yi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let r=this.createTransport(i),l=!1;yi.priorWebsocketSuccess=!1;const c=()=>{l||(r.send([{type:"ping",data:"probe"}]),r.once("packet",y=>{if(!l)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;yi.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(x(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=r.name,this.emitReserved("upgradeError",T)}}))};function f(){l||(l=!0,x(),r.close(),r=null)}const d=y=>{const T=new Error("probe error: "+y);T.transport=r.name,f(),this.emitReserved("upgradeError",T)};function m(){d("transport closed")}function g(){d("socket closed")}function p(y){r&&y.name!==r.name&&f()}const x=()=>{r.removeListener("open",c),r.removeListener("error",d),r.removeListener("close",m),this.off("close",g),this.off("upgrading",p)};r.once("open",c),r.once("error",d),r.once("close",m),this.once("close",g),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{l||r.open()},200):r.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const r=[];for(let l=0;l<i.length;l++)~this.transports.indexOf(i[l])&&r.push(i[l]);return r}}let sR=class extends rR{constructor(i,r={}){const l=typeof i=="object"?i:r;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(c=>eR[c]).filter(c=>!!c)),super(i,l)}};function lR(n,i="",r){let l=n;r=r||typeof location<"u"&&location,n==null&&(n=r.protocol+"//"+r.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=r.protocol+n:n=r.host+n),/^(https?|wss?):\/\//.test(n)||(typeof r<"u"?n=r.protocol+"//"+n:n="https://"+n),l=Lf(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const f=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+f+":"+l.port+i,l.href=l.protocol+"://"+f+(r&&r.port===l.port?"":":"+l.port),l}const oR=typeof ArrayBuffer=="function",uR=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,n0=Object.prototype.toString,cR=typeof Blob=="function"||typeof Blob<"u"&&n0.call(Blob)==="[object BlobConstructor]",fR=typeof File=="function"||typeof File<"u"&&n0.call(File)==="[object FileConstructor]";function ud(n){return oR&&(n instanceof ArrayBuffer||uR(n))||cR&&n instanceof Blob||fR&&n instanceof File}function zo(n,i){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let r=0,l=n.length;r<l;r++)if(zo(n[r]))return!0;return!1}if(ud(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return zo(n.toJSON(),!0);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&zo(n[r]))return!0;return!1}function dR(n){const i=[],r=n.data,l=n;return l.data=Bf(r,i),l.attachments=i.length,{packet:l,buffers:i}}function Bf(n,i){if(!n)return n;if(ud(n)){const r={_placeholder:!0,num:i.length};return i.push(n),r}else if(Array.isArray(n)){const r=new Array(n.length);for(let l=0;l<n.length;l++)r[l]=Bf(n[l],i);return r}else if(typeof n=="object"&&!(n instanceof Date)){const r={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(r[l]=Bf(n[l],i));return r}return n}function hR(n,i){return n.data=qf(n.data,i),delete n.attachments,n}function qf(n,i){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<i.length)return i[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let r=0;r<n.length;r++)n[r]=qf(n[r],i);else if(typeof n=="object")for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=qf(n[r],i));return n}const mR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ze;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Ze||(Ze={}));class pR{constructor(i){this.replacer=i}encode(i){return(i.type===Ze.EVENT||i.type===Ze.ACK)&&zo(i)?this.encodeAsBinary({type:i.type===Ze.EVENT?Ze.BINARY_EVENT:Ze.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let r=""+i.type;return(i.type===Ze.BINARY_EVENT||i.type===Ze.BINARY_ACK)&&(r+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(r+=i.nsp+","),i.id!=null&&(r+=i.id),i.data!=null&&(r+=JSON.stringify(i.data,this.replacer)),r}encodeAsBinary(i){const r=dR(i),l=this.encodeAsString(r.packet),c=r.buffers;return c.unshift(l),c}}class cd extends jt{constructor(i){super(),this.reviver=i}add(i){let r;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(i);const l=r.type===Ze.BINARY_EVENT;l||r.type===Ze.BINARY_ACK?(r.type=l?Ze.EVENT:Ze.ACK,this.reconstructor=new gR(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(ud(i)||i.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(i),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let r=0;const l={type:Number(i.charAt(0))};if(Ze[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ze.BINARY_EVENT||l.type===Ze.BINARY_ACK){const f=r+1;for(;i.charAt(++r)!=="-"&&r!=i.length;);const d=i.substring(f,r);if(d!=Number(d)||i.charAt(r)!=="-")throw new Error("Illegal attachments");l.attachments=Number(d)}if(i.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(i.charAt(r)===","||r===i.length););l.nsp=i.substring(f,r)}else l.nsp="/";const c=i.charAt(r+1);if(c!==""&&Number(c)==c){const f=r+1;for(;++r;){const d=i.charAt(r);if(d==null||Number(d)!=d){--r;break}if(r===i.length)break}l.id=Number(i.substring(f,r+1))}if(i.charAt(++r)){const f=this.tryParse(i.substr(r));if(cd.isPayloadValid(l.type,f))l.data=f;else throw new Error("invalid payload")}return l}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,r){switch(i){case Ze.CONNECT:return dy(r);case Ze.DISCONNECT:return r===void 0;case Ze.CONNECT_ERROR:return typeof r=="string"||dy(r);case Ze.EVENT:case Ze.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&mR.indexOf(r[0])===-1);case Ze.ACK:case Ze.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class gR{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const r=hR(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function dy(n){return Object.prototype.toString.call(n)==="[object Object]"}const yR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:cd,Encoder:pR,get PacketType(){return Ze}},Symbol.toStringTag,{value:"Module"}));function na(n,i,r){return n.on(i,r),function(){n.off(i,r)}}const vR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a0 extends jt{constructor(i,r,l){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=r,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[na(i,"open",this.onopen.bind(this)),na(i,"packet",this.onpacket.bind(this)),na(i,"error",this.onerror.bind(this)),na(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...r){var l,c,f;if(vR.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(r.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const d={type:Ze.EVENT,data:r};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const x=this.ids++,y=r.pop();this._registerAckCallback(x,y),d.id=x}const m=(c=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||c===void 0?void 0:c.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!m||(g?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(i,r){var l;const c=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(c===void 0){this.acks[i]=r;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===i&&this.sendBuffer.splice(m,1);r.call(this,new Error("operation has timed out"))},c),d=(...m)=>{this.io.clearTimeoutFn(f),r.apply(this,m)};d.withError=!0,this.acks[i]=d}emitWithAck(i,...r){return new Promise((l,c)=>{const f=(d,m)=>d?c(d):l(m);f.withError=!0,r.push(f),this.emit(i,...r)})}_addToQueue(i){let r;typeof i[i.length-1]=="function"&&(r=i.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((c,...f)=>(this._queue[0],c!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(c)):(this._queue.shift(),r&&r(null,...f)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!i||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Ze.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(l=>String(l.id)===i)){const l=this.acks[i];delete this.acks[i],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Ze.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ze.EVENT:case Ze.BINARY_EVENT:this.onevent(i);break;case Ze.ACK:case Ze.BINARY_ACK:this.onack(i);break;case Ze.DISCONNECT:this.ondisconnect();break;case Ze.CONNECT_ERROR:this.destroy();const l=new Error(i.data.message);l.data=i.data.data,this.emitReserved("connect_error",l);break}}onevent(i){const r=i.data||[];i.id!=null&&r.push(this.ack(i.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const l of r)l.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const r=this;let l=!1;return function(...c){l||(l=!0,r.packet({type:Ze.ACK,id:i,data:c}))}}onack(i){const r=this.acks[i.id];typeof r=="function"&&(delete this.acks[i.id],r.withError&&i.data.unshift(null),r.apply(this,i.data))}onconnect(i,r){this.id=i,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ze.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const r=this._anyListeners;for(let l=0;l<r.length;l++)if(i===r[l])return r.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const r=this._anyOutgoingListeners;for(let l=0;l<r.length;l++)if(i===r[l])return r.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const l of r)l.apply(this,i.data)}}}function Fr(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Fr.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),r=Math.floor(i*this.jitter*n);n=(Math.floor(i*10)&1)==0?n-r:n+r}return Math.min(n,this.max)|0};Fr.prototype.reset=function(){this.attempts=0};Fr.prototype.setMin=function(n){this.ms=n};Fr.prototype.setMax=function(n){this.max=n};Fr.prototype.setJitter=function(n){this.jitter=n};class Hf extends jt{constructor(i,r){var l;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(r=i,i=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Ko(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((l=r.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new Fr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=i;const c=r.parser||yR;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var r;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(r=this.backoff)===null||r===void 0||r.setMin(i),this)}randomizationFactor(i){var r;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(r=this.backoff)===null||r===void 0||r.setJitter(i),this)}reconnectionDelayMax(i){var r;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(r=this.backoff)===null||r===void 0||r.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new sR(this.uri,this.opts);const r=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const c=na(r,"open",function(){l.onopen(),i&&i()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),i?i(m):this.maybeReconnectOnOpen()},d=na(r,"error",f);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),r.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(d),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(na(i,"ping",this.onping.bind(this)),na(i,"data",this.ondata.bind(this)),na(i,"error",this.onerror.bind(this)),na(i,"close",this.onclose.bind(this)),na(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(r){this.onclose("parse error",r)}}ondecoded(i){Po(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,r){let l=this.nsps[i];return l?this._autoConnect&&!l.active&&l.connect():(l=new a0(this,i,r),this.nsps[i]=l),l}_destroy(i){const r=Object.keys(this.nsps);for(const l of r)if(this.nsps[l].active)return;this._close()}_packet(i){const r=this.encoder.encode(i);for(let l=0;l<r.length;l++)this.engine.write(r[l],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,r){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(c=>{c?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",c)):i.onreconnect()}))},r);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Vs={};function Lo(n,i){typeof n=="object"&&(i=n,n=void 0),i=i||{};const r=lR(n,i.path||"/socket.io"),l=r.source,c=r.id,f=r.path,d=Vs[c]&&f in Vs[c].nsps,m=i.forceNew||i["force new connection"]||i.multiplex===!1||d;let g;return m?g=new Hf(l,i):(Vs[c]||(Vs[c]=new Hf(l,i)),g=Vs[c]),r.query&&!i.query&&(i.query=r.queryKey),g.socket(r.path,i)}Object.assign(Lo,{Manager:Hf,Socket:a0,io:Lo,connect:Lo});const Ao="/events",eA={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},pi={SESSION_STDOUT:"session:stdout",SESSION_PATCH:"session:patch",SESSION_EXIT:"session:exit",SESSION_COMPLETED:"session:completed",SESSION_ID:"session:sessionId",SESSION_ERROR:"session:error",TASK_UPDATED:"task:updated",TASK_DELETED:"task:deleted",TERMINAL_STDOUT:"terminal:stdout",TERMINAL_EXIT:"terminal:exit",TERMINAL_SUBSCRIBED:"terminal:subscribed",TERMINAL_UNSUBSCRIBED:"terminal:unsubscribed",WORKSPACE_SETUP_PROGRESS:"workspace:setup_progress",WORKSPACE_COMMIT_MESSAGE_UPDATED:"workspace:commit_message_updated",WORKSPACE_HIBERNATED:"workspace:hibernated",WORKSPACE_GIT_CHANGED:"workspace:git_changed",TEAM_RUN_INVALIDATED:"team-run:invalidated"};class bR{socket=null;baseUrl;visibilityHandler=null;constructor(){this.baseUrl=iT()}getSocket(){return this.socket||(this.socket=Lo(`${this.baseUrl}${Ao}`,{autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${Ao} t=${Date.now()}`)}),this.socket.on("disconnect",i=>{console.log(`[Socket] Disconnected from ${Ao}: t=${Date.now()}`,i)}),this.socket.on("connect_error",i=>{console.error(`[Socket] Connection error on ${Ao}: t=${Date.now()}`,i.message)})),this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.socket&&!this.socket.connected&&(console.log("[Socket] Page became visible, socket disconnected — reconnecting"),this.socket.connect())},document.addEventListener("visibilitychange",this.visibilityHandler)),i}disconnect(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const Ws=new bR;function i0(n,i,r){const l=f=>Uo(f.queryKey,r),c=n.getQueriesData({predicate:l});return n.setQueriesData({predicate:l},f=>{if(!f||!Array.isArray(f.data))return f;const d=f.data.filter(m=>m.id!==i);return d.length===f.data.length?f:{...f,data:d,total:Math.max(0,f.total-(f.data.length-d.length))}}),n.removeQueries({queryKey:xe.tasks.detail(i),exact:!0}),n.removeQueries({queryKey:xe.tasks.body(i),exact:!0}),c}function Uo(n,i){return!Array.isArray(n)||n[0]!=="tasks"||n[1]!=="list"?!1:i?n[2]===i:!0}function xR(n,i){for(const[r,l]of i)n.setQueryData(r,l)}function tA(n,i){const r={};return i?.status!=null&&(r.status=i.status),i?.page!=null&&(r.page=String(i.page)),i?.limit!=null&&(r.limit=String(i.limit)),rn({queryKey:xe.tasks.list(n,i),queryFn:()=>Le.get(`/projects/${n}/tasks`,{params:r}),enabled:!!n})}function nA(n,i=!0){return rn({queryKey:xe.tasks.body(n),queryFn:()=>Le.get(`/tasks/${n}/body`),enabled:!!n&&i})}function aA(){const n=tt();return ht({mutationFn:({id:i,status:r})=>Le.patch(`/tasks/${i}/status`,{status:r}),onSuccess:i=>{n.invalidateQueries({queryKey:xe.tasks.all}),n.invalidateQueries({queryKey:xe.tasks.detail(i.id)})}})}function iA(){const n=tt();return ht({mutationFn:i=>Le.delete(`/tasks/${i}`),onMutate:async i=>(await n.cancelQueries({queryKey:xe.tasks.all}),{snapshots:i0(n,i)}),onError:(i,r,l)=>{l?.snapshots&&xR(n,l.snapshots)},onSuccess:()=>{n.invalidateQueries({queryKey:xe.tasks.all}),n.invalidateQueries({queryKey:xe.projects.all})}})}function rA(){const n=tt();return ht({mutationFn:i=>Le.post(`/tasks/${i}/retry`,{}),onSuccess:i=>{n.invalidateQueries({queryKey:xe.tasks.all}),n.invalidateQueries({queryKey:xe.workspaces.all}),n.invalidateQueries({queryKey:xe.tasks.detail(i.id)}),n.invalidateQueries({queryKey:xe.tasks.body(i.id)})}})}function SR(){const n=tt();S.useEffect(()=>{const i=Ws.connect(),r=()=>{n.invalidateQueries({queryKey:xe.tasks.all})},l=async f=>{await n.cancelQueries({predicate:d=>Uo(d.queryKey,f.projectId)}),n.invalidateQueries({predicate:d=>Uo(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:xe.tasks.detail(f.taskId)})},c=f=>{i0(n,f.taskId,f.projectId),n.invalidateQueries({predicate:d=>Uo(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:xe.projects.all})};return i.on("connect",r),i.on(pi.TASK_UPDATED,l),i.on(pi.TASK_DELETED,c),()=>{i.off("connect",r),i.off(pi.TASK_UPDATED,l),i.off(pi.TASK_DELETED,c)}},[n])}const Me={all:["team-runs"],memberPresets:["member-presets"],memberPresetDetail:n=>["member-presets","detail",n],teamTemplates:["team-templates"],teamTemplateDetail:n=>["team-templates","detail",n],task:n=>["team-runs","task",n],detail:n=>["team-runs","detail",n],messages:n=>["team-runs","messages",n],messageDetail:(n,i)=>["team-runs","messages",n,i],workRequests:n=>["team-runs","work-requests",n],invocations:n=>["team-runs","invocations",n]},r0=5e3;function s0(n,i){const r=n??[],l=r.findIndex(c=>c.id===i.id);return l>=0?r.map((c,f)=>f===l?i:c):[...r,i]}function hy(n,i){return!n||n.id!==i.teamRunId?n:{...n,messages:s0(n.messages,i)}}function l0(n,i){const r=n.getQueryData(Me.detail(i));if(r?.taskId)return r.taskId;const l=n.getQueriesData({queryKey:Me.all});for(const[,c]of l)if(c?.id===i&&c.taskId)return c.taskId}function Xr(n,i){const r=l0(n,i);n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Me.detail(i)}),n.invalidateQueries({queryKey:Me.workRequests(i)}),n.invalidateQueries({queryKey:Me.invocations(i)}),n.invalidateQueries({queryKey:xe.tasks.all}),n.invalidateQueries({queryKey:xe.workspaces.all}),r&&(n.invalidateQueries({queryKey:xe.tasks.detail(r)}),n.invalidateQueries({queryKey:Me.task(r)}),n.invalidateQueries({queryKey:xe.workspaces.list(r)}))}function sA(){return rn({queryKey:Me.memberPresets,queryFn:()=>Le.get("/member-presets")})}function lA(){const n=tt();return ht({mutationFn:i=>Le.post("/member-presets",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function oA(){const n=tt();return ht({mutationFn:({id:i,data:r})=>Le.patch(`/member-presets/${i}`,r),onSuccess:(i,r)=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.memberPresetDetail(r.id)}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function uA(){const n=tt();return ht({mutationFn:i=>Le.delete(`/member-presets/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function cA(){return rn({queryKey:Me.teamTemplates,queryFn:()=>Le.get("/team-templates")})}function fA(){const n=tt();return ht({mutationFn:i=>Le.post("/team-templates",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function dA(){const n=tt();return ht({mutationFn:({id:i,data:r})=>Le.patch(`/team-templates/${i}`,r),onSuccess:(i,r)=>{n.invalidateQueries({queryKey:Me.teamTemplates}),n.invalidateQueries({queryKey:Me.teamTemplateDetail(r.id)})}})}function hA(){const n=tt();return ht({mutationFn:i=>Le.delete(`/team-templates/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function mA(){const n=tt();return ht({mutationFn:({taskId:i,...r})=>Le.post(`/tasks/${i}/team-runs`,r),onSuccess:(i,r)=>{n.setQueryData(Me.task(r.taskId),i),n.setQueryData(Me.detail(i.id),i),n.setQueryData(Me.messages(i.id),i.messages??[]),n.setQueryData(Me.workRequests(i.id),i.workRequests??[]),n.setQueryData(Me.invocations(i.id),i.invocations??[]),n.invalidateQueries({queryKey:Me.task(r.taskId)}),n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:xe.tasks.all}),n.invalidateQueries({queryKey:xe.tasks.detail(r.taskId)}),n.invalidateQueries({queryKey:xe.workspaces.all}),n.invalidateQueries({queryKey:xe.workspaces.list(r.taskId)})},onError:(i,r)=>{n.invalidateQueries({queryKey:Me.task(r.taskId)}),n.invalidateQueries({queryKey:Me.all})}})}function pA(n){return rn({queryKey:Me.task(n),queryFn:async()=>{try{return await Le.get(`/tasks/${n}/team-run`)}catch(i){if(i instanceof rl&&i.status===404)return null;throw i}},enabled:!!n,retry:!1,refetchInterval:i=>i.state.data?r0:!1})}function gA(n){return rn({queryKey:Me.messages(n),queryFn:async()=>{try{return await Le.get(`/team-runs/${n}/messages`)}catch(i){if(i instanceof rl&&i.status===404)return[];throw i}},enabled:!!n,retry:!1,refetchInterval:r0})}function yA(n,i,r=!1){return rn({queryKey:Me.messageDetail(n,i),queryFn:()=>Le.get(`/team-runs/${n}/messages/${i}`),enabled:!!(n&&i&&r),retry:!1})}function vA(n){const i=tt();return ht({mutationFn:r=>Le.post(`/team-runs/${n}/messages`,r),onSuccess:r=>{i.setQueryData(Me.messages(n),c=>s0(c,r)),i.setQueryData(Me.detail(n),c=>hy(c,r));const l=l0(i,n);l&&i.setQueryData(Me.task(l),c=>hy(c,r)),i.invalidateQueries({queryKey:Me.all}),i.invalidateQueries({queryKey:["tasks"]}),i.invalidateQueries({queryKey:xe.workspaces.all})}})}function bA(n){const i=tt();return ht({mutationFn:r=>Le.post(`/team-runs/${n}/members`,r),onSuccess:()=>{Xr(i,n)}})}function xA(n){const i=tt();return ht({mutationFn:({memberId:r,data:l})=>Le.patch(`/team-runs/${n}/members/${r}`,l),onSuccess:()=>{Xr(i,n)}})}function SA(n){const i=tt();return ht({mutationFn:({memberId:r,stopActive:l=!0,cancelQueued:c=!0})=>Le.post(`/team-runs/${n}/members/${r}/remove`,{stopActive:l,cancelQueued:c}),onSuccess:()=>{Xr(i,n)}})}function wA(n){const i=tt();return ht({mutationFn:r=>Le.post(`/team-runs/work-requests/${r}/approve`),onSuccess:()=>{Xr(i,n)}})}function EA(n){const i=tt();return ht({mutationFn:r=>Le.post(`/team-runs/work-requests/${r}/reject`),onSuccess:()=>{Xr(i,n)}})}function TA(n){const i=tt();return ht({mutationFn:({memberId:r,cancelQueued:l})=>Le.post(`/team-runs/${n}/members/${r}/stop`,{cancelQueued:l}),onSuccess:()=>{Xr(i,n)}})}function fa(n,i){return n.scopes.includes(i)}function wR(){const n=tt();S.useEffect(()=>{const i=Ws.connect(),r=f=>{if(!f){n.invalidateQueries({queryKey:Me.all});return}n.invalidateQueries({queryKey:Me.detail(f.teamRunId)}),(fa(f,"team-run")||fa(f,"team-members"))&&n.invalidateQueries({queryKey:Me.all}),fa(f,"room-messages")&&n.invalidateQueries({queryKey:Me.messages(f.teamRunId)}),fa(f,"work-requests")&&n.invalidateQueries({queryKey:Me.workRequests(f.teamRunId)}),fa(f,"agent-invocations")&&n.invalidateQueries({queryKey:Me.invocations(f.teamRunId)}),f.taskId&&n.invalidateQueries({queryKey:Me.task(f.taskId)}),f.taskId&&(fa(f,"task")||fa(f,"team-run"))&&n.invalidateQueries({queryKey:xe.tasks.detail(f.taskId)}),f.projectId&&(fa(f,"task")||fa(f,"team-run"))&&n.invalidateQueries({queryKey:xe.tasks.list(f.projectId)}),fa(f,"workspaces")&&(n.invalidateQueries({queryKey:xe.workspaces.all}),f.taskId&&n.invalidateQueries({queryKey:xe.workspaces.list(f.taskId)}))},l=()=>r(),c=f=>r(f);return i.on("connect",l),i.on(pi.TEAM_RUN_INVALIDATED,c),()=>{i.off("connect",l),i.off(pi.TEAM_RUN_INVALIDATED,c)}},[n])}const ER=dv(n=>({visibleContext:null,setVisibleContext:i=>n({visibleContext:i})}));function TR(n){n.invalidateQueries({queryKey:xe.git.all,refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","gitStatus"],refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","diff"],refetchType:"none"})}function CR(n,i){i.workingDir&&(n.invalidateQueries({queryKey:xe.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:xe.git.log(i.workingDir),refetchType:"none"})),i.workspaceId&&n.invalidateQueries({queryKey:xe.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}function my(n,i,r){if(!(!i?.workspaceId||!i?.workingDir)){if(!r||r.workspaceId!==i.workspaceId||r.workingDir!==i.workingDir){CR(n,i);return}if(r.tab==="changes"){n.invalidateQueries({queryKey:xe.git.changes(i.workingDir)}),n.invalidateQueries({queryKey:xe.workspaces.gitStatus(i.workspaceId)}),n.invalidateQueries({queryKey:xe.git.log(i.workingDir),refetchType:"none"});return}n.invalidateQueries({queryKey:xe.git.log(i.workingDir)}),n.invalidateQueries({queryKey:xe.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:xe.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}}function RR(){const n=tt(),i=ER(r=>r.visibleContext);S.useEffect(()=>{const r=Ws.connect(),l=()=>{TR(n),i&&my(n,{workspaceId:i.workspaceId,workingDir:i.workingDir},i)},c=f=>{my(n,f,i)};return r.on("connect",l),r.on(pi.WORKSPACE_GIT_CHANGED,c),()=>{r.off("connect",l),r.off(pi.WORKSPACE_GIT_CHANGED,c)}},[n,i])}function AR(){return SR(),wR(),RR(),null}function _R({className:n,type:i="text",...r}){return v.jsx("input",{type:i,"data-slot":"input",className:Dt("w-full rounded-lg border border-input bg-background px-3 py-2 text-sm text-foreground transition-colors","placeholder:text-muted-foreground/70","focus:border-ring focus:outline-none focus-visible:border-ring","disabled:cursor-not-allowed disabled:bg-muted/50 disabled:text-muted-foreground","aria-invalid:border-destructive",n),...r})}function kR(){return rn({queryKey:xe.accessAuth.status,queryFn:()=>Le.get("/access-auth/status"),retry:!1})}function CA(n=!0){return rn({queryKey:xe.accessAuth.settings,queryFn:()=>Le.get("/access-auth/settings"),enabled:n})}function NR(){const n=tt();return ht({mutationFn:i=>Le.post("/access-auth/login",{password:i}),onSuccess:i=>{n.setQueryData(xe.accessAuth.status,i),n.invalidateQueries()}})}function RA(){const n=tt();return ht({mutationFn:()=>Le.post("/access-auth/logout",{}),onSuccess:i=>{n.setQueryData(xe.accessAuth.status,i),n.invalidateQueries()}})}function AA(){const n=tt();return ht({mutationFn:i=>Le.put("/access-auth/settings",i),onSuccess:()=>{n.invalidateQueries({queryKey:xe.accessAuth.status}),n.invalidateQueries({queryKey:xe.accessAuth.settings})}})}function MR(){return v.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-foreground",children:v.jsx(Vr,{size:18,className:"animate-spin text-muted-foreground motion-reduce:animate-none","aria-hidden":"true"})})}function OR(){const[n,i]=S.useState(""),r=NR(),l=r.isError?Ki("密码不正确,请重试"):null;return v.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4 text-foreground",children:v.jsxs("form",{className:"w-full max-w-sm space-y-5",onSubmit:c=>{c.preventDefault();const f=n;f&&r.mutate(f)},children:[v.jsxs("div",{className:"space-y-2 text-center",children:[v.jsx("div",{className:"mx-auto flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground",children:v.jsx(UE,{size:18,"aria-hidden":"true"})}),v.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:"Agent Tower"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:Ki("输入访问密码继续")})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(_R,{type:"password",autoFocus:!0,autoComplete:"current-password",value:n,onChange:c=>{i(c.target.value),r.reset()},"aria-invalid":!!l,placeholder:Ki("访问密码")}),l&&v.jsx("p",{className:"text-xs text-destructive",children:l})]}),v.jsxs(ha,{className:"w-full",type:"submit",disabled:!n||r.isPending,children:[r.isPending&&v.jsx(Vr,{size:14,className:"mr-2 animate-spin motion-reduce:animate-none","aria-hidden":"true"}),r.isPending?Ki("验证中..."):Ki("解锁")]})]})})}function DR({children:n}){const{data:i,isLoading:r,isError:l}=kR();return r?v.jsx(MR,{}):l?v.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4 text-sm text-muted-foreground",children:Ki("访问状态加载失败,请刷新后重试。")}):i?.enabled&&!i.authenticated?v.jsx(OR,{}):v.jsx(v.Fragment,{children:n})}function jR(){return S.useEffect(()=>(Ws.connect(),()=>Ws.disconnect()),[]),v.jsxs(mT,{children:[v.jsx(AR,{}),v.jsx(RC,{}),v.jsx(Dx,{position:"top-center",toastOptions:{className:"text-sm",style:{fontFamily:"inherit"},classNames:{error:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",success:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",default:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg"}}})]})}function zR(){return v.jsx(X1,{client:jx,children:v.jsx(DR,{children:v.jsx(jR,{})})})}const LR="/api/tunnel/bootstrap";async function UR(){const n=new URL(window.location.href),i=n.searchParams.get("token");if(!i)return;const r=await fetch(`${LR}?token=${encodeURIComponent(i)}`,{method:"POST",credentials:"same-origin"});if(!r.ok)throw new Error(`Tunnel bootstrap failed (${r.status})`);n.searchParams.delete("token"),window.history.replaceState({},"",n.toString())}async function BR(){try{await UR()}catch(n){console.error("[Tunnel] Failed to bootstrap tunnel session",n)}T1.createRoot(document.getElementById("root")).render(v.jsx(S.StrictMode,{children:v.jsx(zR,{})}))}BR();export{ZR as $,iC as A,ha as B,CE as C,sA as D,cA as E,lA as F,oA as G,uA as H,_R as I,fA as J,dA as K,$R as L,hA as M,JR as N,aT as O,Ws as P,pi as Q,cC as R,m2 as S,Qo as T,eA as U,Bv as V,rv as W,fv as X,VE as Y,FE as Z,IR as _,lT as a,dv as a$,QE as a0,p2 as a1,gE as a2,Vr as a3,Nf as a4,ZE as a5,U2 as a6,iw as a7,Ks as a8,Ki as a9,rx as aA,ne as aB,wA as aC,EA as aD,TA as aE,_E as aF,UE as aG,yA as aH,bA as aI,xA as aJ,SA as aK,qE as aL,rl as aM,ER as aN,mA as aO,vA as aP,pA as aQ,gA as aR,nA as aS,rA as aT,Me as aU,tA as aV,iA as aW,aA as aX,_n as aY,n2 as aZ,Sv as a_,NE as aa,py as ab,cv as ac,uv as ad,VR as ae,uC as af,$E as ag,OE as ah,H1 as ai,hg as aj,HR as ak,qR as al,Yr as am,qt as an,Bo as ao,vy as ap,Z1 as aq,$1 as ar,nx as as,W1 as at,ex as au,an as av,ix as aw,mg as ax,ax as ay,tx as az,GR as b,CA as c,oT as d,AA as e,RA as f,YR as g,KR as h,PR as i,v as j,vt as k,Dt as l,rn as m,tt as n,ht as o,Le as p,xe as q,S as r,XR as s,Ur as t,xi as u,FR as v,_t as w,jv as x,Df as y,_y as z};