@rpamis/comet 0.4.0-beta.13 → 0.4.0-beta.15

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 (361) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +13 -1
  3. package/assets/manifest.json +1 -1
  4. package/assets/skills/comet/SKILL.md +6 -5
  5. package/assets/skills/comet/reference/subagent-dispatch.md +2 -4
  6. package/assets/skills/comet/rules/comet-phase-guard.en.md +4 -3
  7. package/assets/skills/comet/rules/comet-phase-guard.md +4 -3
  8. package/assets/skills/comet/rules/comet-workflow-guard.en.md +1 -1
  9. package/assets/skills/comet/rules/comet-workflow-guard.md +1 -1
  10. package/assets/skills/comet/scripts/comet-archive.mjs +85 -85
  11. package/assets/skills/comet/scripts/comet-entry-runtime.mjs +1 -1
  12. package/assets/skills/comet/scripts/comet-guard.mjs +111 -111
  13. package/assets/skills/comet/scripts/comet-handoff.mjs +85 -85
  14. package/assets/skills/comet/scripts/comet-hook-guard.mjs +91 -89
  15. package/assets/skills/comet/scripts/comet-hook-router.mjs +124 -116
  16. package/assets/skills/comet/scripts/comet-resume-probe.mjs +77 -77
  17. package/assets/skills/comet/scripts/comet-runtime.mjs +188 -185
  18. package/assets/skills/comet/scripts/comet-state.mjs +108 -107
  19. package/assets/skills/comet/scripts/comet-yaml-validate.mjs +95 -95
  20. package/assets/skills/comet-any/SKILL.md +1 -1
  21. package/assets/skills/comet-any/reference/authoring-subagents.md +3 -11
  22. package/assets/skills/comet-any/reference/subagents/pause-points-author.md +1 -4
  23. package/assets/skills/comet-any/reference/subagents/reference-author.md +1 -4
  24. package/assets/skills/comet-any/reference/subagents/script-author.md +1 -4
  25. package/assets/skills/comet-any/reference/subagents/skill-core-author.md +1 -4
  26. package/assets/skills/comet-any/reference/subagents/skill-reviewer.md +1 -4
  27. package/assets/skills/comet-any/reference/subagents/workflow-entry-author.md +1 -4
  28. package/assets/skills/comet-build/SKILL.md +2 -2
  29. package/assets/skills/comet-native/SKILL.md +85 -11
  30. package/assets/skills/comet-native/reference/artifacts.md +3 -1
  31. package/assets/skills/comet-native/reference/commands.md +15 -6
  32. package/assets/skills/comet-native/reference/recovery.md +12 -1
  33. package/assets/skills/comet-native/scripts/comet-native-archive.mjs +124 -118
  34. package/assets/skills/comet-native/scripts/comet-native-check.mjs +116 -110
  35. package/assets/skills/comet-native/scripts/comet-native-checkpoint.mjs +110 -110
  36. package/assets/skills/comet-native/scripts/comet-native-doctor.mjs +121 -121
  37. package/assets/skills/comet-native/scripts/comet-native-evidence.mjs +83 -83
  38. package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +88 -82
  39. package/assets/skills/comet-native/scripts/comet-native-init.mjs +85 -85
  40. package/assets/skills/comet-native/scripts/comet-native-new.mjs +114 -114
  41. package/assets/skills/comet-native/scripts/comet-native-next.mjs +122 -122
  42. package/assets/skills/comet-native/scripts/comet-native-receipt.mjs +124 -116
  43. package/assets/skills/comet-native/scripts/comet-native-root.mjs +110 -110
  44. package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +154 -152
  45. package/assets/skills/comet-native/scripts/comet-native-select.mjs +110 -110
  46. package/assets/skills/comet-native/scripts/comet-native-show.mjs +80 -80
  47. package/assets/skills/comet-native/scripts/comet-native-spec.mjs +112 -112
  48. package/assets/skills/comet-native/scripts/comet-native-status.mjs +107 -107
  49. package/assets/skills-zh/comet/SKILL.md +3 -3
  50. package/assets/skills-zh/comet/reference/subagent-dispatch.md +2 -4
  51. package/assets/skills-zh/comet-any/SKILL.md +1 -1
  52. package/assets/skills-zh/comet-any/reference/authoring-subagents.md +3 -14
  53. package/assets/skills-zh/comet-any/reference/subagents/pause-points-author.md +1 -4
  54. package/assets/skills-zh/comet-any/reference/subagents/reference-author.md +1 -4
  55. package/assets/skills-zh/comet-any/reference/subagents/script-author.md +1 -4
  56. package/assets/skills-zh/comet-any/reference/subagents/skill-core-author.md +1 -4
  57. package/assets/skills-zh/comet-any/reference/subagents/skill-reviewer.md +1 -4
  58. package/assets/skills-zh/comet-any/reference/subagents/workflow-entry-author.md +1 -4
  59. package/assets/skills-zh/comet-build/SKILL.md +2 -2
  60. package/assets/skills-zh/comet-native/SKILL.md +86 -12
  61. package/assets/skills-zh/comet-native/reference/artifacts.md +3 -1
  62. package/assets/skills-zh/comet-native/reference/commands.md +17 -8
  63. package/assets/skills-zh/comet-native/reference/recovery.md +14 -3
  64. package/bin/fast-runtime-router.js +1 -0
  65. package/dist/app/cli/index.js +1 -0
  66. package/dist/app/cli/index.js.map +1 -1
  67. package/dist/app/commands/doctor.d.ts.map +1 -1
  68. package/dist/app/commands/doctor.js +138 -37
  69. package/dist/app/commands/doctor.js.map +1 -1
  70. package/dist/app/commands/i18n.d.ts +1 -1
  71. package/dist/app/commands/i18n.d.ts.map +1 -1
  72. package/dist/app/commands/i18n.js +90 -0
  73. package/dist/app/commands/i18n.js.map +1 -1
  74. package/dist/app/commands/init.d.ts.map +1 -1
  75. package/dist/app/commands/init.js +45 -12
  76. package/dist/app/commands/init.js.map +1 -1
  77. package/dist/app/commands/project-scope-selection.d.ts +2 -1
  78. package/dist/app/commands/project-scope-selection.d.ts.map +1 -1
  79. package/dist/app/commands/project-scope-selection.js +5 -7
  80. package/dist/app/commands/project-scope-selection.js.map +1 -1
  81. package/dist/app/commands/uninstall.d.ts +6 -0
  82. package/dist/app/commands/uninstall.d.ts.map +1 -1
  83. package/dist/app/commands/uninstall.js +197 -110
  84. package/dist/app/commands/uninstall.js.map +1 -1
  85. package/dist/app/commands/update.d.ts.map +1 -1
  86. package/dist/app/commands/update.js +81 -10
  87. package/dist/app/commands/update.js.map +1 -1
  88. package/dist/app/commands/workflow.d.ts +1 -0
  89. package/dist/app/commands/workflow.d.ts.map +1 -1
  90. package/dist/app/commands/workflow.js +9 -2
  91. package/dist/app/commands/workflow.js.map +1 -1
  92. package/dist/domains/comet-classic/classic-hook-guard.d.ts +5 -1
  93. package/dist/domains/comet-classic/classic-hook-guard.d.ts.map +1 -1
  94. package/dist/domains/comet-classic/classic-hook-guard.js +104 -20
  95. package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
  96. package/dist/domains/comet-classic/classic-layout-initialization.d.ts.map +1 -1
  97. package/dist/domains/comet-classic/classic-layout-initialization.js +8 -4
  98. package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -1
  99. package/dist/domains/comet-classic/classic-layout.d.ts.map +1 -1
  100. package/dist/domains/comet-classic/classic-layout.js +1 -0
  101. package/dist/domains/comet-classic/classic-layout.js.map +1 -1
  102. package/dist/domains/comet-classic/classic-plan-readiness.d.ts +12 -0
  103. package/dist/domains/comet-classic/classic-plan-readiness.d.ts.map +1 -0
  104. package/dist/domains/comet-classic/classic-plan-readiness.js +26 -0
  105. package/dist/domains/comet-classic/classic-plan-readiness.js.map +1 -0
  106. package/dist/domains/comet-classic/classic-project-config.d.ts +1 -0
  107. package/dist/domains/comet-classic/classic-project-config.d.ts.map +1 -1
  108. package/dist/domains/comet-classic/classic-project-config.js +13 -7
  109. package/dist/domains/comet-classic/classic-project-config.js.map +1 -1
  110. package/dist/domains/comet-classic/classic-state-command.d.ts.map +1 -1
  111. package/dist/domains/comet-classic/classic-state-command.js +58 -7
  112. package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
  113. package/dist/domains/comet-entry/hook-adapter.d.ts.map +1 -1
  114. package/dist/domains/comet-entry/hook-adapter.js +15 -2
  115. package/dist/domains/comet-entry/hook-adapter.js.map +1 -1
  116. package/dist/domains/comet-entry/hook-project-root.d.ts +3 -0
  117. package/dist/domains/comet-entry/hook-project-root.d.ts.map +1 -0
  118. package/dist/domains/comet-entry/hook-project-root.js +62 -0
  119. package/dist/domains/comet-entry/hook-project-root.js.map +1 -0
  120. package/dist/domains/comet-entry/hook-router-entry.d.ts +2 -1
  121. package/dist/domains/comet-entry/hook-router-entry.d.ts.map +1 -1
  122. package/dist/domains/comet-entry/hook-router-entry.js +6 -4
  123. package/dist/domains/comet-entry/hook-router-entry.js.map +1 -1
  124. package/dist/domains/comet-entry/hook-router.d.ts +2 -0
  125. package/dist/domains/comet-entry/hook-router.d.ts.map +1 -1
  126. package/dist/domains/comet-entry/hook-router.js +45 -9
  127. package/dist/domains/comet-entry/hook-router.js.map +1 -1
  128. package/dist/domains/comet-entry/hook-types.d.ts +1 -0
  129. package/dist/domains/comet-entry/hook-types.d.ts.map +1 -1
  130. package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -1
  131. package/dist/domains/comet-entry/init-workflow.js +2 -3
  132. package/dist/domains/comet-entry/init-workflow.js.map +1 -1
  133. package/dist/domains/comet-entry/project-activation.d.ts +12 -0
  134. package/dist/domains/comet-entry/project-activation.d.ts.map +1 -0
  135. package/dist/domains/comet-entry/project-activation.js +109 -0
  136. package/dist/domains/comet-entry/project-activation.js.map +1 -0
  137. package/dist/domains/comet-entry/resume-probe.d.ts.map +1 -1
  138. package/dist/domains/comet-entry/resume-probe.js +47 -26
  139. package/dist/domains/comet-entry/resume-probe.js.map +1 -1
  140. package/dist/domains/comet-entry/types.d.ts +1 -1
  141. package/dist/domains/comet-entry/types.d.ts.map +1 -1
  142. package/dist/domains/comet-native/native-archive-command.d.ts.map +1 -1
  143. package/dist/domains/comet-native/native-archive-command.js +43 -1
  144. package/dist/domains/comet-native/native-archive-command.js.map +1 -1
  145. package/dist/domains/comet-native/native-archive-inspection.d.ts.map +1 -1
  146. package/dist/domains/comet-native/native-archive-inspection.js +11 -0
  147. package/dist/domains/comet-native/native-archive-inspection.js.map +1 -1
  148. package/dist/domains/comet-native/native-archive-preflight.d.ts +10 -0
  149. package/dist/domains/comet-native/native-archive-preflight.d.ts.map +1 -1
  150. package/dist/domains/comet-native/native-archive-preflight.js +44 -0
  151. package/dist/domains/comet-native/native-archive-preflight.js.map +1 -1
  152. package/dist/domains/comet-native/native-change.d.ts +18 -1
  153. package/dist/domains/comet-native/native-change.d.ts.map +1 -1
  154. package/dist/domains/comet-native/native-change.js +72 -3
  155. package/dist/domains/comet-native/native-change.js.map +1 -1
  156. package/dist/domains/comet-native/native-check.d.ts.map +1 -1
  157. package/dist/domains/comet-native/native-check.js +13 -1
  158. package/dist/domains/comet-native/native-check.js.map +1 -1
  159. package/dist/domains/comet-native/native-cli-shared.d.ts +2 -2
  160. package/dist/domains/comet-native/native-cli-shared.d.ts.map +1 -1
  161. package/dist/domains/comet-native/native-cli-shared.js +24 -3
  162. package/dist/domains/comet-native/native-cli-shared.js.map +1 -1
  163. package/dist/domains/comet-native/native-conflict-inspection.d.ts +3 -1
  164. package/dist/domains/comet-native/native-conflict-inspection.d.ts.map +1 -1
  165. package/dist/domains/comet-native/native-conflict-inspection.js +20 -10
  166. package/dist/domains/comet-native/native-conflict-inspection.js.map +1 -1
  167. package/dist/domains/comet-native/native-continuation.d.ts.map +1 -1
  168. package/dist/domains/comet-native/native-continuation.js +16 -0
  169. package/dist/domains/comet-native/native-continuation.js.map +1 -1
  170. package/dist/domains/comet-native/native-diagnostics.d.ts +2 -0
  171. package/dist/domains/comet-native/native-diagnostics.d.ts.map +1 -1
  172. package/dist/domains/comet-native/native-diagnostics.js +43 -32
  173. package/dist/domains/comet-native/native-diagnostics.js.map +1 -1
  174. package/dist/domains/comet-native/native-evidence-storage.d.ts +6 -0
  175. package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -1
  176. package/dist/domains/comet-native/native-evidence-storage.js +24 -0
  177. package/dist/domains/comet-native/native-evidence-storage.js.map +1 -1
  178. package/dist/domains/comet-native/native-findings.d.ts.map +1 -1
  179. package/dist/domains/comet-native/native-findings.js +36 -0
  180. package/dist/domains/comet-native/native-findings.js.map +1 -1
  181. package/dist/domains/comet-native/native-hook-guard.js +2 -2
  182. package/dist/domains/comet-native/native-hook-guard.js.map +1 -1
  183. package/dist/domains/comet-native/native-new-command.d.ts.map +1 -1
  184. package/dist/domains/comet-native/native-new-command.js +22 -7
  185. package/dist/domains/comet-native/native-new-command.js.map +1 -1
  186. package/dist/domains/comet-native/native-receipt-command.d.ts.map +1 -1
  187. package/dist/domains/comet-native/native-receipt-command.js +14 -1
  188. package/dist/domains/comet-native/native-receipt-command.js.map +1 -1
  189. package/dist/domains/comet-native/native-receipt-errors.d.ts +23 -0
  190. package/dist/domains/comet-native/native-receipt-errors.d.ts.map +1 -0
  191. package/dist/domains/comet-native/native-receipt-errors.js +9 -0
  192. package/dist/domains/comet-native/native-receipt-errors.js.map +1 -0
  193. package/dist/domains/comet-native/native-receipt-refresh.d.ts +3 -0
  194. package/dist/domains/comet-native/native-receipt-refresh.d.ts.map +1 -1
  195. package/dist/domains/comet-native/native-receipt-refresh.js +13 -2
  196. package/dist/domains/comet-native/native-receipt-refresh.js.map +1 -1
  197. package/dist/domains/comet-native/native-root-move.d.ts.map +1 -1
  198. package/dist/domains/comet-native/native-root-move.js +54 -1
  199. package/dist/domains/comet-native/native-root-move.js.map +1 -1
  200. package/dist/domains/comet-native/native-snapshot.d.ts.map +1 -1
  201. package/dist/domains/comet-native/native-snapshot.js +71 -14
  202. package/dist/domains/comet-native/native-snapshot.js.map +1 -1
  203. package/dist/domains/comet-native/native-transitions.d.ts.map +1 -1
  204. package/dist/domains/comet-native/native-transitions.js +74 -42
  205. package/dist/domains/comet-native/native-transitions.js.map +1 -1
  206. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts +37 -4
  207. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts.map +1 -1
  208. package/dist/domains/comet-native/native-verification-receipt-runtime.js +192 -4
  209. package/dist/domains/comet-native/native-verification-receipt-runtime.js.map +1 -1
  210. package/dist/domains/comet-native/native-verification-runtime.d.ts +27 -1
  211. package/dist/domains/comet-native/native-verification-runtime.d.ts.map +1 -1
  212. package/dist/domains/comet-native/native-verification-runtime.js +29 -6
  213. package/dist/domains/comet-native/native-verification-runtime.js.map +1 -1
  214. package/dist/domains/comet-native/native-workspace.d.ts +39 -3
  215. package/dist/domains/comet-native/native-workspace.d.ts.map +1 -1
  216. package/dist/domains/comet-native/native-workspace.js +200 -8
  217. package/dist/domains/comet-native/native-workspace.js.map +1 -1
  218. package/dist/domains/dashboard/collector.d.ts +26 -1
  219. package/dist/domains/dashboard/collector.d.ts.map +1 -1
  220. package/dist/domains/dashboard/collector.js +381 -1
  221. package/dist/domains/dashboard/collector.js.map +1 -1
  222. package/dist/domains/dashboard/native-adapter.d.ts +15 -0
  223. package/dist/domains/dashboard/native-adapter.d.ts.map +1 -1
  224. package/dist/domains/dashboard/native-adapter.js +1 -1
  225. package/dist/domains/dashboard/native-adapter.js.map +1 -1
  226. package/dist/domains/dashboard/native-collector.d.ts +26 -1
  227. package/dist/domains/dashboard/native-collector.d.ts.map +1 -1
  228. package/dist/domains/dashboard/native-collector.js +284 -5
  229. package/dist/domains/dashboard/native-collector.js.map +1 -1
  230. package/dist/domains/dashboard/server.d.ts.map +1 -1
  231. package/dist/domains/dashboard/server.js +92 -3
  232. package/dist/domains/dashboard/server.js.map +1 -1
  233. package/dist/domains/dashboard/types.d.ts +41 -1
  234. package/dist/domains/dashboard/types.d.ts.map +1 -1
  235. package/dist/domains/dashboard/verify-parser.d.ts +1 -0
  236. package/dist/domains/dashboard/verify-parser.d.ts.map +1 -1
  237. package/dist/domains/dashboard/verify-parser.js +8 -4
  238. package/dist/domains/dashboard/verify-parser.js.map +1 -1
  239. package/dist/domains/dashboard/web/assets/{arc-mNt_SS1l.js → arc-ClrSujVb.js} +1 -1
  240. package/dist/domains/dashboard/web/assets/{architectureDiagram-3BPJPVTR-Bc5akVD6.js → architectureDiagram-3BPJPVTR-B4A_t84A.js} +1 -1
  241. package/dist/domains/dashboard/web/assets/{blockDiagram-GPEHLZMM-C43zhVBe.js → blockDiagram-GPEHLZMM-D72u2953.js} +1 -1
  242. package/dist/domains/dashboard/web/assets/{c4Diagram-AAUBKEIU-dToETarK.js → c4Diagram-AAUBKEIU-Ca5zba3N.js} +1 -1
  243. package/dist/domains/dashboard/web/assets/channel-B_u-_i2t.js +1 -0
  244. package/dist/domains/dashboard/web/assets/{chunk-2J33WTMH-C0oO137R.js → chunk-2J33WTMH-CCVPBm0J.js} +1 -1
  245. package/dist/domains/dashboard/web/assets/{chunk-4BX2VUAB-CGms1fgI.js → chunk-4BX2VUAB-JYluRsP-.js} +1 -1
  246. package/dist/domains/dashboard/web/assets/{chunk-55IACEB6-Bugl8v6f.js → chunk-55IACEB6-DfYm7pN7.js} +1 -1
  247. package/dist/domains/dashboard/web/assets/{chunk-727SXJPM-8ATNMlBG.js → chunk-727SXJPM-CwghIMO9.js} +1 -1
  248. package/dist/domains/dashboard/web/assets/{chunk-AQP2D5EJ-BNYjSSqU.js → chunk-AQP2D5EJ-BA_zgMXZ.js} +1 -1
  249. package/dist/domains/dashboard/web/assets/{chunk-FMBD7UC4-_nJAqSbe.js → chunk-FMBD7UC4-BAJLB5V6.js} +1 -1
  250. package/dist/domains/dashboard/web/assets/{chunk-ND2GUHAM-lyxYm5NX.js → chunk-ND2GUHAM-Bj6HWRwi.js} +1 -1
  251. package/dist/domains/dashboard/web/assets/{chunk-QZHKN3VN-PUMVeWpd.js → chunk-QZHKN3VN-B1kXfg5N.js} +1 -1
  252. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-BpA7BPgX.js +1 -0
  253. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-BpA7BPgX.js +1 -0
  254. package/dist/domains/dashboard/web/assets/{cose-bilkent-S5V4N54A-DzMqjexn.js → cose-bilkent-S5V4N54A-BBrkuiAU.js} +1 -1
  255. package/dist/domains/dashboard/web/assets/{cynefin-VYW2F7L2-B67ET0eq.js → cynefin-VYW2F7L2-DlFhgQHt.js} +1 -1
  256. package/dist/domains/dashboard/web/assets/{dagre-BM42HDAG-CQPMvRLK.js → dagre-BM42HDAG-B0Bk5oiP.js} +1 -1
  257. package/dist/domains/dashboard/web/assets/{demo-BuVau32v.js → demo-DZYPLZpF.js} +2 -2
  258. package/dist/domains/dashboard/web/assets/{diagram-2AECGRRQ-BRpLrFHM.js → diagram-2AECGRRQ-tvTUiBA2.js} +1 -1
  259. package/dist/domains/dashboard/web/assets/{diagram-5GNKFQAL-CPGWuGrE.js → diagram-5GNKFQAL-BZfcK29q.js} +1 -1
  260. package/dist/domains/dashboard/web/assets/{diagram-KO2AKTUF-D2wpX2iO.js → diagram-KO2AKTUF-BQahyP-C.js} +1 -1
  261. package/dist/domains/dashboard/web/assets/{diagram-LMA3HP47-D54mAbDu.js → diagram-LMA3HP47-D5bJnW2C.js} +1 -1
  262. package/dist/domains/dashboard/web/assets/{diagram-OG6HWLK6-ZGQDpSs_.js → diagram-OG6HWLK6-DTwWdzWJ.js} +1 -1
  263. package/dist/domains/dashboard/web/assets/{erDiagram-TEJ5UH35-C3qDo7sd.js → erDiagram-TEJ5UH35-BbvrdCp9.js} +1 -1
  264. package/dist/domains/dashboard/web/assets/{flowDiagram-I6XJVG4X-B7hStPd9.js → flowDiagram-I6XJVG4X-DgbR7Tcc.js} +1 -1
  265. package/dist/domains/dashboard/web/assets/{ganttDiagram-6RSMTGT7-IqcLFbTK.js → ganttDiagram-6RSMTGT7-wWMOA7F4.js} +1 -1
  266. package/dist/domains/dashboard/web/assets/{gitGraphDiagram-PVQCEYII-YrMZpzUu.js → gitGraphDiagram-PVQCEYII-DCxvMAUJ.js} +1 -1
  267. package/dist/domains/dashboard/web/assets/index-Bk1o-4VO.css +1 -0
  268. package/dist/domains/dashboard/web/assets/{index-icxk8_BP.js → index-Blit0P5Z.js} +1 -1
  269. package/dist/domains/dashboard/web/assets/index-g8vyW0R_.js +257 -0
  270. package/dist/domains/dashboard/web/assets/{infoDiagram-5YYISTIA-CcIgGK_7.js → infoDiagram-5YYISTIA-9qXEkzDe.js} +1 -1
  271. package/dist/domains/dashboard/web/assets/{ishikawaDiagram-YF4QCWOH-1x3rNjGP.js → ishikawaDiagram-YF4QCWOH-Dkf5othW.js} +1 -1
  272. package/dist/domains/dashboard/web/assets/{journeyDiagram-JHISSGLW-B2XiqMNP.js → journeyDiagram-JHISSGLW-C2_IkO4s.js} +1 -1
  273. package/dist/domains/dashboard/web/assets/{kanban-definition-UN3LZRKU-x46cGuo3.js → kanban-definition-UN3LZRKU-BxWgu4DL.js} +1 -1
  274. package/dist/domains/dashboard/web/assets/{linear-DFLqGZWl.js → linear-Dkr6p-Ro.js} +1 -1
  275. package/dist/domains/dashboard/web/assets/{mermaid.core-g3J6BACc.js → mermaid.core-DZUcsoG4.js} +4 -4
  276. package/dist/domains/dashboard/web/assets/{mindmap-definition-RKZ34NQL-CTdeKmcX.js → mindmap-definition-RKZ34NQL-C9xyxGfa.js} +1 -1
  277. package/dist/domains/dashboard/web/assets/{pieDiagram-4H26LBE5-C_obwjIf.js → pieDiagram-4H26LBE5-Dn67tdOF.js} +1 -1
  278. package/dist/domains/dashboard/web/assets/{quadrantDiagram-W4KKPZXB-B6Gnfz9M.js → quadrantDiagram-W4KKPZXB-Cy6iOcxc.js} +1 -1
  279. package/dist/domains/dashboard/web/assets/{requirementDiagram-4Y6WPE33-nX4PObnB.js → requirementDiagram-4Y6WPE33-B_gZONhx.js} +1 -1
  280. package/dist/domains/dashboard/web/assets/{sankeyDiagram-5OEKKPKP-QjDwwHgl.js → sankeyDiagram-5OEKKPKP-C3u-4dOk.js} +1 -1
  281. package/dist/domains/dashboard/web/assets/{sequenceDiagram-3UESZ5HK-BEEe0j6B.js → sequenceDiagram-3UESZ5HK-Xd3ByTVF.js} +1 -1
  282. package/dist/domains/dashboard/web/assets/{stateDiagram-AJRCARHV-CXfAaBgM.js → stateDiagram-AJRCARHV-CJGHL7Up.js} +1 -1
  283. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-rKvBgr6I.js +1 -0
  284. package/dist/domains/dashboard/web/assets/{timeline-definition-PNZ67QCA-BOzX2EnD.js → timeline-definition-PNZ67QCA-DvONX2YQ.js} +1 -1
  285. package/dist/domains/dashboard/web/assets/{vennDiagram-CIIHVFJN-C40vhXRq.js → vennDiagram-CIIHVFJN-B-L4qWy4.js} +1 -1
  286. package/dist/domains/dashboard/web/assets/{wardleyDiagram-YWT4CUSO-B1rm89JH.js → wardleyDiagram-YWT4CUSO-cf39WX2o.js} +1 -1
  287. package/dist/domains/dashboard/web/assets/{xychartDiagram-2RQKCTM6-BlMr59qK.js → xychartDiagram-2RQKCTM6-Dk1vcm3u.js} +1 -1
  288. package/dist/domains/dashboard/web/index.html +16 -16
  289. package/dist/domains/integrations/openspec.d.ts.map +1 -1
  290. package/dist/domains/integrations/openspec.js +5 -2
  291. package/dist/domains/integrations/openspec.js.map +1 -1
  292. package/dist/domains/skill/hook-lifecycle.d.ts +9 -0
  293. package/dist/domains/skill/hook-lifecycle.d.ts.map +1 -0
  294. package/dist/domains/skill/hook-lifecycle.js +48 -0
  295. package/dist/domains/skill/hook-lifecycle.js.map +1 -0
  296. package/dist/domains/skill/platform-inspect.d.ts +2 -0
  297. package/dist/domains/skill/platform-inspect.d.ts.map +1 -1
  298. package/dist/domains/skill/platform-inspect.js +170 -32
  299. package/dist/domains/skill/platform-inspect.js.map +1 -1
  300. package/dist/domains/skill/platform-install.d.ts +21 -1
  301. package/dist/domains/skill/platform-install.d.ts.map +1 -1
  302. package/dist/domains/skill/platform-install.js +174 -31
  303. package/dist/domains/skill/platform-install.js.map +1 -1
  304. package/dist/domains/skill/project-hook-projection.d.ts +14 -0
  305. package/dist/domains/skill/project-hook-projection.d.ts.map +1 -0
  306. package/dist/domains/skill/project-hook-projection.js +41 -0
  307. package/dist/domains/skill/project-hook-projection.js.map +1 -0
  308. package/dist/domains/skill/project-instructions.d.ts +3 -0
  309. package/dist/domains/skill/project-instructions.d.ts.map +1 -1
  310. package/dist/domains/skill/project-instructions.js +8 -0
  311. package/dist/domains/skill/project-instructions.js.map +1 -1
  312. package/dist/domains/skill/uninstall.d.ts +6 -2
  313. package/dist/domains/skill/uninstall.d.ts.map +1 -1
  314. package/dist/domains/skill/uninstall.js +192 -29
  315. package/dist/domains/skill/uninstall.js.map +1 -1
  316. package/dist/domains/workflow-contract/contained-atomic-write.d.ts +3 -0
  317. package/dist/domains/workflow-contract/contained-atomic-write.d.ts.map +1 -1
  318. package/dist/domains/workflow-contract/contained-atomic-write.js +15 -2
  319. package/dist/domains/workflow-contract/contained-atomic-write.js.map +1 -1
  320. package/dist/domains/workflow-contract/global-config.d.ts +10 -0
  321. package/dist/domains/workflow-contract/global-config.d.ts.map +1 -0
  322. package/dist/domains/workflow-contract/global-config.js +117 -0
  323. package/dist/domains/workflow-contract/global-config.js.map +1 -0
  324. package/dist/domains/workflow-contract/hook-target-scope.d.ts +6 -0
  325. package/dist/domains/workflow-contract/hook-target-scope.d.ts.map +1 -0
  326. package/dist/domains/workflow-contract/hook-target-scope.js +51 -0
  327. package/dist/domains/workflow-contract/hook-target-scope.js.map +1 -0
  328. package/dist/domains/workflow-contract/index.d.ts +2 -1
  329. package/dist/domains/workflow-contract/index.d.ts.map +1 -1
  330. package/dist/domains/workflow-contract/index.js +2 -1
  331. package/dist/domains/workflow-contract/index.js.map +1 -1
  332. package/dist/domains/workflow-contract/project-config-reader.d.ts +2 -0
  333. package/dist/domains/workflow-contract/project-config-reader.d.ts.map +1 -1
  334. package/dist/domains/workflow-contract/project-config-reader.js.map +1 -1
  335. package/dist/domains/workflow-contract/project-config-writer.d.ts.map +1 -1
  336. package/dist/domains/workflow-contract/project-config-writer.js +3 -2
  337. package/dist/domains/workflow-contract/project-config-writer.js.map +1 -1
  338. package/dist/domains/workflow-contract/project-config.d.ts +1 -0
  339. package/dist/domains/workflow-contract/project-config.d.ts.map +1 -1
  340. package/dist/domains/workflow-contract/project-config.js +9 -4
  341. package/dist/domains/workflow-contract/project-config.js.map +1 -1
  342. package/dist/domains/workflow-contract/types.d.ts +3 -0
  343. package/dist/domains/workflow-contract/types.d.ts.map +1 -1
  344. package/dist/platform/install/platforms.d.ts +2 -0
  345. package/dist/platform/install/platforms.d.ts.map +1 -1
  346. package/dist/platform/install/platforms.js +1 -0
  347. package/dist/platform/install/platforms.js.map +1 -1
  348. package/dist/platform/paths/git-worktree.d.ts +4 -1
  349. package/dist/platform/paths/git-worktree.d.ts.map +1 -1
  350. package/dist/platform/paths/git-worktree.js +34 -1
  351. package/dist/platform/paths/git-worktree.js.map +1 -1
  352. package/eval/local/tests/scaffold/test_utils.py +74 -0
  353. package/eval/pyproject.toml +4 -4
  354. package/eval/scaffold/shell/docker.sh +5 -0
  355. package/package.json +1 -1
  356. package/dist/domains/dashboard/web/assets/channel-b2wWDG4F.js +0 -1
  357. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-B9SWZywo.js +0 -1
  358. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-B9SWZywo.js +0 -1
  359. package/dist/domains/dashboard/web/assets/index-DhtBssCt.js +0 -257
  360. package/dist/domains/dashboard/web/assets/index-pr3axVDI.css +0 -1
  361. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-CD3nS4cC.js +0 -1
@@ -0,0 +1,257 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-DZUcsoG4.js","assets/purify.es-VaSPOPhr.js"])))=>i.map(i=>d[i]);
2
+ function IT(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function o(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=o(i);fetch(i.href,l)}})();const PT="modulepreload",BT=function(e){return"/"+e},V1={},ci=function(t,o,r){let i=Promise.resolve();if(o&&o.length>0){let p=function(m){return Promise.all(m.map(h=>Promise.resolve(h).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");i=p(o.map(m=>{if(m=BT(m),m in V1)return;V1[m]=!0;const h=m.endsWith(".css"),b=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":PT,h||(v.as="script"),v.crossOrigin="",v.href=m,f&&v.setAttribute("nonce",f),document.head.appendChild(v),h)return new Promise((x,C)=>{v.addEventListener("load",x),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return i.then(u=>{for(const f of u||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bp={exports:{}},wl={};var F1;function jT(){if(F1)return wl;F1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(r,i,l){var u=null;if(l!==void 0&&(u=""+l),i.key!==void 0&&(u=""+i.key),"key"in i){l={};for(var f in i)f!=="key"&&(l[f]=i[f])}else l=i;return i=l.ref,{$$typeof:e,type:r,key:u,ref:i!==void 0?i:null,props:l}}return wl.Fragment=t,wl.jsx=o,wl.jsxs=o,wl}var q1;function _T(){return q1||(q1=1,Bp.exports=jT()),Bp.exports}var O=_T(),jp={exports:{}},gt={};var U1;function HT(){if(U1)return gt;U1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function x(B){return B===null||typeof B!="object"?null:(B=v&&B[v]||B["@@iterator"],typeof B=="function"?B:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,R={};function E(B,F,k){this.props=B,this.context=F,this.refs=R,this.updater=k||C}E.prototype.isReactComponent={},E.prototype.setState=function(B,F){if(typeof B!="object"&&typeof B!="function"&&B!=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,B,F,"setState")},E.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function N(){}N.prototype=E.prototype;function $(B,F,k){this.props=B,this.context=F,this.refs=R,this.updater=k||C}var w=$.prototype=new N;w.constructor=$,S(w,E.prototype),w.isPureReactComponent=!0;var T=Array.isArray;function z(){}var A={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function j(B,F,k){var G=k.ref;return{$$typeof:e,type:B,key:F,ref:G!==void 0?G:null,props:k}}function L(B,F){return j(B.type,F,B.props)}function I(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function H(B){var F={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(k){return F[k]})}var W=/\/+/g;function J(B,F){return typeof B=="object"&&B!==null&&B.key!=null?H(""+B.key):F.toString(36)}function q(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(z,z):(B.status="pending",B.then(function(F){B.status==="pending"&&(B.status="fulfilled",B.value=F)},function(F){B.status==="pending"&&(B.status="rejected",B.reason=F)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function D(B,F,k,G,K){var te=typeof B;(te==="undefined"||te==="boolean")&&(B=null);var Y=!1;if(B===null)Y=!0;else switch(te){case"bigint":case"string":case"number":Y=!0;break;case"object":switch(B.$$typeof){case e:case t:Y=!0;break;case h:return Y=B._init,D(Y(B._payload),F,k,G,K)}}if(Y)return K=K(B),Y=G===""?"."+J(B,0):G,T(K)?(k="",Y!=null&&(k=Y.replace(W,"$&/")+"/"),D(K,F,k,"",function(ae){return ae})):K!=null&&(I(K)&&(K=L(K,k+(K.key==null||B&&B.key===K.key?"":(""+K.key).replace(W,"$&/")+"/")+Y)),F.push(K)),1;Y=0;var ie=G===""?".":G+":";if(T(B))for(var se=0;se<B.length;se++)G=B[se],te=ie+J(G,se),Y+=D(G,F,k,te,K);else if(se=x(B),typeof se=="function")for(B=se.call(B),se=0;!(G=B.next()).done;)G=G.value,te=ie+J(G,se++),Y+=D(G,F,k,te,K);else if(te==="object"){if(typeof B.then=="function")return D(q(B),F,k,G,K);throw F=String(B),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Y}function X(B,F,k){if(B==null)return B;var G=[],K=0;return D(B,G,"","",function(te){return F.call(k,te,K++)}),G}function V(B){if(B._status===-1){var F=B._result;F=F(),F.then(function(k){(B._status===0||B._status===-1)&&(B._status=1,B._result=k)},function(k){(B._status===0||B._status===-1)&&(B._status=2,B._result=k)}),B._status===-1&&(B._status=0,B._result=F)}if(B._status===1)return B._result.default;throw B._result}var Z=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},Q={map:X,forEach:function(B,F,k){X(B,function(){F.apply(this,arguments)},k)},count:function(B){var F=0;return X(B,function(){F++}),F},toArray:function(B){return X(B,function(F){return F})||[]},only:function(B){if(!I(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return gt.Activity=b,gt.Children=Q,gt.Component=E,gt.Fragment=o,gt.Profiler=i,gt.PureComponent=$,gt.StrictMode=r,gt.Suspense=p,gt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,gt.__COMPILER_RUNTIME={__proto__:null,c:function(B){return A.H.useMemoCache(B)}},gt.cache=function(B){return function(){return B.apply(null,arguments)}},gt.cacheSignal=function(){return null},gt.cloneElement=function(B,F,k){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var G=S({},B.props),K=B.key;if(F!=null)for(te in F.key!==void 0&&(K=""+F.key),F)!P.call(F,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&F.ref===void 0||(G[te]=F[te]);var te=arguments.length-2;if(te===1)G.children=k;else if(1<te){for(var Y=Array(te),ie=0;ie<te;ie++)Y[ie]=arguments[ie+2];G.children=Y}return j(B.type,K,G)},gt.createContext=function(B){return B={$$typeof:u,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:l,_context:B},B},gt.createElement=function(B,F,k){var G,K={},te=null;if(F!=null)for(G in F.key!==void 0&&(te=""+F.key),F)P.call(F,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(K[G]=F[G]);var Y=arguments.length-2;if(Y===1)K.children=k;else if(1<Y){for(var ie=Array(Y),se=0;se<Y;se++)ie[se]=arguments[se+2];K.children=ie}if(B&&B.defaultProps)for(G in Y=B.defaultProps,Y)K[G]===void 0&&(K[G]=Y[G]);return j(B,te,K)},gt.createRef=function(){return{current:null}},gt.forwardRef=function(B){return{$$typeof:f,render:B}},gt.isValidElement=I,gt.lazy=function(B){return{$$typeof:h,_payload:{_status:-1,_result:B},_init:V}},gt.memo=function(B,F){return{$$typeof:m,type:B,compare:F===void 0?null:F}},gt.startTransition=function(B){var F=A.T,k={};A.T=k;try{var G=B(),K=A.S;K!==null&&K(k,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(z,Z)}catch(te){Z(te)}finally{F!==null&&k.types!==null&&(F.types=k.types),A.T=F}},gt.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},gt.use=function(B){return A.H.use(B)},gt.useActionState=function(B,F,k){return A.H.useActionState(B,F,k)},gt.useCallback=function(B,F){return A.H.useCallback(B,F)},gt.useContext=function(B){return A.H.useContext(B)},gt.useDebugValue=function(){},gt.useDeferredValue=function(B,F){return A.H.useDeferredValue(B,F)},gt.useEffect=function(B,F){return A.H.useEffect(B,F)},gt.useEffectEvent=function(B){return A.H.useEffectEvent(B)},gt.useId=function(){return A.H.useId()},gt.useImperativeHandle=function(B,F,k){return A.H.useImperativeHandle(B,F,k)},gt.useInsertionEffect=function(B,F){return A.H.useInsertionEffect(B,F)},gt.useLayoutEffect=function(B,F){return A.H.useLayoutEffect(B,F)},gt.useMemo=function(B,F){return A.H.useMemo(B,F)},gt.useOptimistic=function(B,F){return A.H.useOptimistic(B,F)},gt.useReducer=function(B,F,k){return A.H.useReducer(B,F,k)},gt.useRef=function(B){return A.H.useRef(B)},gt.useState=function(B){return A.H.useState(B)},gt.useSyncExternalStore=function(B,F,k){return A.H.useSyncExternalStore(B,F,k)},gt.useTransition=function(){return A.H.useTransition()},gt.version="19.2.7",gt}var W1;function Qb(){return W1||(W1=1,jp.exports=HT()),jp.exports}var c=Qb();const ce=Xt(c),DT=IT({__proto__:null,default:ce},[c]),ft=e=>{const t=c.useRef(e);return t.current=e,c.useCallback((...r)=>t.current?.(...r),[])};function Oo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const G1=Oo()?c.useLayoutEffect:c.useEffect,un=(e,t)=>{const o=c.useRef(!0);G1(()=>e(o.current),t),G1(()=>(o.current=!1,()=>{o.current=!0}),[])},LT=(e,t)=>{un(o=>{if(!o)return e()},t)},RE=e=>{const t=c.useRef(!1),[o,r]=c.useState(e);c.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(l,u){u&&t.current||r(l)}return[o,i]};function To(e,t){const[o,r]=c.useState(e),i=t!==void 0?t:o;return un(l=>{l||r(t)},[t]),[i,r]}let ME=e=>+setTimeout(e,16),TE=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(ME=e=>window.requestAnimationFrame(e),TE=e=>window.cancelAnimationFrame(e));let X1=0;const Zb=new Map;function OE(e){Zb.delete(e)}const Lt=(e,t=1)=>{X1+=1;const o=X1;function r(i){if(i===0)OE(o),e();else{const l=ME(()=>{r(i-1)});Zb.set(o,l)}}return r(t),o};Lt.cancel=e=>{const t=Zb.get(e);return OE(e),TE(t)};function VT(){return{...DT}.useId}let k1=0;const Y1=VT(),Wr=Y1?(function(t){const o=Y1();return t||o}):(function(t){const[o,r]=c.useState("ssr-id");return c.useEffect(()=>{const i=k1;k1+=1,r(`rc_unique_${i}`)},[]),t||o});function ic(e,t,o){const r=c.useRef({});return(!("value"in r.current)||o(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function FT(e){const[,t]=c.useReducer(l=>l+1,0),o=c.useRef(e),r=ft(()=>o.current),i=ft(l=>{o.current=typeof l=="function"?l(o.current):l,t()});return[r,i]}var _p={exports:{}},ln={};var K1;function qT(){if(K1)return ln;K1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var R=S.$$typeof;switch(R){case e:switch(S=S.type,S){case o:case i:case r:case p:case m:case v:return S;default:switch(S=S&&S.$$typeof,S){case u:case f:case b:case h:return S;case l:return S;default:return R}}case t:return R}}}return ln.ContextConsumer=l,ln.ContextProvider=u,ln.Element=e,ln.ForwardRef=f,ln.Fragment=o,ln.Lazy=b,ln.Memo=h,ln.Portal=t,ln.Profiler=i,ln.StrictMode=r,ln.Suspense=p,ln.SuspenseList=m,ln.isContextConsumer=function(S){return C(S)===l},ln.isContextProvider=function(S){return C(S)===u},ln.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},ln.isForwardRef=function(S){return C(S)===f},ln.isFragment=function(S){return C(S)===o},ln.isLazy=function(S){return C(S)===b},ln.isMemo=function(S){return C(S)===h},ln.isPortal=function(S){return C(S)===t},ln.isProfiler=function(S){return C(S)===i},ln.isStrictMode=function(S){return C(S)===r},ln.isSuspense=function(S){return C(S)===p},ln.isSuspenseList=function(S){return C(S)===m},ln.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===o||S===i||S===r||S===p||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===h||S.$$typeof===u||S.$$typeof===l||S.$$typeof===f||S.$$typeof===x||S.getModuleId!==void 0)},ln.typeOf=C,ln}var Q1;function UT(){return Q1||(Q1=1,_p.exports=qT()),_p.exports}var Hp=UT();const WT=Symbol.for("react.element"),GT=Symbol.for("react.transitional.element"),XT=Symbol.for("react.fragment");function zE(e){return e&&typeof e=="object"&&(e.$$typeof===WT||e.$$typeof===GT)&&e.type===XT}const kT=Number(c.version.split(".")[0]),YT=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},oo=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:o=>{e.forEach(r=>{YT(r,o)})}},Gr=(...e)=>ic(()=>oo(...e),e,(t,o)=>t.length!==o.length||t.every((r,i)=>r!==o[i])),Es=e=>{if(!e)return!1;if(Jb(e)&&kT>=19)return!0;const t=Hp.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Hp.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==Hp.ForwardRef)};function Jb(e){return c.isValidElement(e)&&!zE(e)}const KT=e=>Jb(e)&&Es(e),pi=e=>{if(e&&Jb(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Pg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}const Z1="data-rc-order",J1="data-rc-priority",QT="rc-util-key",Bg=new Map;function AE({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:QT}function sf(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ZT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function e0(e){return Array.from((Bg.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function IE(e,t={}){if(!Oo())return null;const{csp:o,prepend:r,priority:i=0}=t,l=ZT(r),u=l==="prependQueue",f=document.createElement("style");f.setAttribute(Z1,l),u&&i&&f.setAttribute(J1,`${i}`),o?.nonce&&(f.nonce=o?.nonce),f.innerHTML=e;const p=sf(t),{firstChild:m}=p;if(r){if(u){const h=(t.styles||e0(p)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(Z1)))return!1;const v=Number(b.getAttribute(J1)||0);return i>=v});if(h.length)return p.insertBefore(f,h[h.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function PE(e,t={}){let{styles:o}=t;return o||=e0(sf(t)),o.find(r=>r.getAttribute(AE(t))===e)}function Gl(e,t={}){const o=PE(e,t);o&&sf(t).removeChild(o)}function JT(e,t){const o=Bg.get(e);if(!o||!Pg(document,o)){const r=IE("",t),{parentNode:i}=r;Bg.set(e,i),e.removeChild(r)}}function ai(e,t,o={}){const r=sf(o),i=e0(r),l={...o,styles:i};JT(r,l);const u=PE(t,l);if(u)return l.csp?.nonce&&u.nonce!==l.csp?.nonce&&(u.nonce=l.csp?.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;const f=IE(e,l);return f.setAttribute(AE(l),t),f}function gs(e){return e instanceof HTMLElement||e instanceof SVGElement}function ui(e){return e&&typeof e=="object"&&gs(e.nativeElement)?e.nativeElement:gs(e)?e:null}const t0=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:o}=e.getBBox();if(t||o)return!0}if(e.getBoundingClientRect){const{width:t,height:o}=e.getBoundingClientRect();if(t||o)return!0}}return!1});function eS(e,t=!1){if(t0(e)){const o=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(o)||e.isContentEditable||o==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),l=Number(i);let u=null;return i&&!Number.isNaN(l)?u=l:r&&u===null&&(u=0),r&&e.disabled&&(u=null),u!==null&&(u>=0||t&&u<0)}return!1}function n0(e,t=!1){const o=[...e.querySelectorAll("*")].filter(r=>eS(r,t));return eS(e,t)&&o.unshift(e),o}function BE(e,t){if(!e)return;e.focus(t);const{cursor:o}=t||{};if(o&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let fs=null,Ea=[];const jg=new Map,o0=new Map;function r0(){return Ea[Ea.length-1]}function eO(e){const t=r0();if(e&&t){let o;for(const[i,l]of jg.entries())if(l===t){o=i;break}const r=o0.get(o);return!!r&&(r===e||r.contains(e))}return!1}function tO(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Dp(){const e=r0(),{activeElement:t}=document;if(!eO(t))if(e&&!tO(e)){const o=n0(e);(o.includes(fs)?fs:o[0])?.focus({preventScroll:!0})}else fs=t}function tS(e){if(e.key==="Tab"){const{activeElement:t}=document,o=r0(),r=n0(o),i=r[r.length-1];e.shiftKey&&t===r[0]?fs=i:!e.shiftKey&&t===i&&(fs=r[0])}}function nO(e,t){return e&&(jg.set(t,e),Ea=Ea.filter(o=>o!==e),Ea.push(e),window.addEventListener("focusin",Dp),window.addEventListener("keydown",tS,!0),Dp()),()=>{fs=null,Ea=Ea.filter(o=>o!==e),jg.delete(t),o0.delete(t),Ea.length===0&&(window.removeEventListener("focusin",Dp),window.removeEventListener("keydown",tS,!0))}}function oO(e,t){const o=c.useRef(0),[r,i]=c.useState(0);c.useEffect(()=>{o.current=0},t),c.useEffect(()=>{const[l,u]=e(o.current);return u||(o.current+=1,i(f=>f+1)),l},[...t,r])}function jE(e,t){const o=Wr(),r=c.useRef(t);return r.current=t,oO(u=>{if(!e)return[void 0,!0];const f=r.current();return f?[nO(f,o),!0]:[void 0,u>=1]},[o,e]),[u=>{u&&o0.set(o,u)}]}function _E(e){return e?.getRootNode?.()}function rO(e){return _E(e)instanceof ShadowRoot}function _g(e){return rO(e)?_E(e):null}const rt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function aO(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,o=document.createElement("div");o.id=t;const r=o.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let i,l;if(e){const p=getComputedStyle(e);r.scrollbarColor=p.scrollbarColor,r.scrollbarWidth=p.scrollbarWidth;const m=getComputedStyle(e,"::-webkit-scrollbar"),h=parseInt(m.width,10),b=parseInt(m.height,10);try{const v=h?`width: ${m.width};`:"",x=b?`height: ${m.height};`:"";ai(`
3
+ #${t}::-webkit-scrollbar {
4
+ ${v}
5
+ ${x}
6
+ }`,t)}catch(v){console.error(v),i=h,l=b}}document.body.appendChild(o);const u=e&&i&&!Number.isNaN(i)?i:o.offsetWidth-o.clientWidth,f=e&&l&&!Number.isNaN(l)?l:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),Gl(t),{width:u,height:f}}function iO(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:aO(e)}let Hg={};const sO=e=>{};function lO(e,t){}function cO(e,t){}function uO(){Hg={}}function HE(e,t,o){!t&&!Hg[o]&&(e(!1,o),Hg[o]=!0)}function Yn(e,t){HE(lO,e,t)}function dO(e,t){HE(cO,e,t)}Yn.preMessage=sO;Yn.resetWarned=uO;Yn.noteOnce=dO;function Xl(e,t,o=!1){const r=new Set;function i(l,u,f=1){const p=r.has(l);if(Yn(!p,"Warning: There may be circular references"),p)return!1;if(l===u)return!0;if(o&&f>1)return!1;r.add(l);const m=f+1;if(Array.isArray(l)){if(!Array.isArray(u)||l.length!==u.length)return!1;for(let h=0;h<l.length;h++)if(!i(l[h],u[h],m))return!1;return!0}if(l&&u&&typeof l=="object"&&typeof u=="object"){const h=Object.keys(l);return h.length!==Object.keys(u).length?!1:h.every(b=>i(l[b],u[b],m))}return!1}return i(e,t)}var Nl={exports:{}},nS;function fO(){if(nS)return Nl.exports;nS=1,Nl.exports=r,Nl.exports.isMobile=r,Nl.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,o=/android|ipad|playbook|silk/i;function r(i){i||(i={});let l=i.ua;if(!l&&typeof navigator<"u"&&(l=navigator.userAgent),l&&l.headers&&typeof l.headers["user-agent"]=="string"&&(l=l.headers["user-agent"]),typeof l!="string")return!1;let u=e.test(l)&&!t.test(l)||!!i.tablet&&o.test(l);return!u&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&l.indexOf("Macintosh")!==-1&&l.indexOf("Safari")!==-1&&(u=!0),u}return Nl.exports}var mO=fO();const pO=Xt(mO);let Lp;const gO=()=>(typeof Lp>"u"&&(Lp=pO()),Lp);function xn(e,t){const o=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete o[r]}),o}const hO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
7
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
8
+ charSet checked classID className colSpan cols content contentEditable contextMenu
9
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
10
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
11
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
12
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
13
+ mediaGroup method min minLength multiple muted name noValidate nonce open
14
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
15
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
16
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
17
+ summary tabIndex target title type useMap value width wmode wrap`,bO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
18
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
19
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
20
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
21
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
22
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
23
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
24
+ onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
25
+ onAnimationStart onAnimationEnd onAnimationIteration
26
+ onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
27
+ onBeforeInput onReset onInvalid
28
+ onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,vO=`${hO} ${bO}`.split(/[\s\n]+/),yO="aria-",xO="data-";function oS(e,t){return e.indexOf(t)===0}function Qn(e,t=!1){let o;t===!1?o={aria:!0,data:!0,attr:!0}:t===!0?o={aria:!0}:o={...t};const r={};return Object.keys(e).forEach(i=>{(o.aria&&(i==="role"||oS(i,yO))||o.data&&oS(i,xO)||o.attr&&vO.includes(i))&&(r[i]=e[i])}),r}function zo(e,t={}){let o=[];return ce.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?o=o.concat(zo(r)):zE(r)&&r.props?o=o.concat(zo(r.props.children,t)):o.push(r))}),o}function rS(...e){const t={};for(const o of e)if(o)for(const r of Object.keys(o))o[r]!==void 0&&(t[r]=o[r]);return t}function Uo(e,t){let o=e;for(let r=0;r<t.length;r+=1){if(o==null)return;o=o[t[r]]}return o}function DE(e,t,o,r){if(!t.length)return o;const[i,...l]=t;let u;return!e&&typeof i=="number"?u=[]:Array.isArray(e)?u=[...e]:u={...e},r&&o===void 0&&l.length===1?delete u[i][l[0]]:u[i]=DE(u[i],l,o,r),u}function Ro(e,t,o,r=!1){return t.length&&r&&o===void 0&&!Uo(e,t.slice(0,-1))?e:DE(e,t,o,r)}function SO(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function aS(e){return Array.isArray(e)?[]:{}}const CO=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function $O(e,t={}){const{prepareArray:o}=t,r=o||(()=>[]);let i=aS(e[0]);return e.forEach(l=>{function u(f,p){const m=new Set(p),h=Uo(l,f),b=Array.isArray(h);if(b||SO(h)){if(!m.has(h)){m.add(h);const v=Uo(i,f);b?i=Ro(i,f,r(v,h)):(!v||typeof v!="object")&&(i=Ro(i,f,aS(h))),CO(h).forEach(x=>{Object.getOwnPropertyDescriptor(h,x).enumerable&&u([...f,x],m)})}}else i=Ro(i,f,h)}u([])}),i}function ls(...e){return $O(e)}var Vp={exports:{}},Rl={},Fp={exports:{}},qp={};var iS;function EO(){return iS||(iS=1,(function(e){function t(D,X){var V=D.length;D.push(X);e:for(;0<V;){var Z=V-1>>>1,Q=D[Z];if(0<i(Q,X))D[Z]=X,D[V]=Q,V=Z;else break e}}function o(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var X=D[0],V=D.pop();if(V!==X){D[0]=V;e:for(var Z=0,Q=D.length,B=Q>>>1;Z<B;){var F=2*(Z+1)-1,k=D[F],G=F+1,K=D[G];if(0>i(k,V))G<Q&&0>i(K,k)?(D[Z]=K,D[G]=V,Z=G):(D[Z]=k,D[F]=V,Z=F);else if(G<Q&&0>i(K,V))D[Z]=K,D[G]=V,Z=G;else break e}}return X}function i(D,X){var V=D.sortIndex-X.sortIndex;return V!==0?V:D.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],m=[],h=1,b=null,v=3,x=!1,C=!1,S=!1,R=!1,E=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function w(D){for(var X=o(m);X!==null;){if(X.callback===null)r(m);else if(X.startTime<=D)r(m),X.sortIndex=X.expirationTime,t(p,X);else break;X=o(m)}}function T(D){if(S=!1,w(D),!C)if(o(p)!==null)C=!0,z||(z=!0,H());else{var X=o(m);X!==null&&q(T,X.startTime-D)}}var z=!1,A=-1,P=5,j=-1;function L(){return R?!0:!(e.unstable_now()-j<P)}function I(){if(R=!1,z){var D=e.unstable_now();j=D;var X=!0;try{e:{C=!1,S&&(S=!1,N(A),A=-1),x=!0;var V=v;try{t:{for(w(D),b=o(p);b!==null&&!(b.expirationTime>D&&L());){var Z=b.callback;if(typeof Z=="function"){b.callback=null,v=b.priorityLevel;var Q=Z(b.expirationTime<=D);if(D=e.unstable_now(),typeof Q=="function"){b.callback=Q,w(D),X=!0;break t}b===o(p)&&r(p),w(D)}else r(p);b=o(p)}if(b!==null)X=!0;else{var B=o(m);B!==null&&q(T,B.startTime-D),X=!1}}break e}finally{b=null,v=V,x=!1}X=void 0}}finally{X?H():z=!1}}}var H;if(typeof $=="function")H=function(){$(I)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,J=W.port2;W.port1.onmessage=I,H=function(){J.postMessage(null)}}else H=function(){E(I,0)};function q(D,X){A=E(function(){D(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(D){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var V=v;v=X;try{return D()}finally{v=V}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var V=v;v=D;try{return X()}finally{v=V}},e.unstable_scheduleCallback=function(D,X,V){var Z=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?Z+V:Z):V=Z,D){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=V+Q,D={id:h++,callback:X,priorityLevel:D,startTime:V,expirationTime:Q,sortIndex:-1},V>Z?(D.sortIndex=V,t(m,D),o(p)===null&&D===o(m)&&(S?(N(A),A=-1):S=!0,q(T,V-Z))):(D.sortIndex=Q,t(p,D),C||x||(C=!0,z||(z=!0,H()))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var X=v;return function(){var V=v;v=X;try{return D.apply(this,arguments)}finally{v=V}}}})(qp)),qp}var sS;function wO(){return sS||(sS=1,Fp.exports=EO()),Fp.exports}var Up={exports:{}},Xn={};var lS;function NO(){if(lS)return Xn;lS=1;var e=Qb();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)m+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(p,m,h){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:b==null?null:""+b,children:p,containerInfo:m,implementation:h}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xn.createPortal=function(p,m){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return l(p,m,null,h)},Xn.flushSync=function(p){var m=u.T,h=r.p;try{if(u.T=null,r.p=2,p)return p()}finally{u.T=m,r.p=h,r.d.f()}},Xn.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},Xn.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Xn.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var h=m.as,b=f(h,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;h==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:x}):h==="script"&&r.d.X(p,{crossOrigin:b,integrity:v,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Xn.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var h=f(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},Xn.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var h=m.as,b=f(h,m.crossOrigin);r.d.L(p,h,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Xn.preloadModule=function(p,m){if(typeof p=="string")if(m){var h=f(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},Xn.requestFormReset=function(p){r.d.r(p)},Xn.unstable_batchedUpdates=function(p,m){return p(m)},Xn.useFormState=function(p,m,h){return u.H.useFormState(p,m,h)},Xn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Xn.version="19.2.7",Xn}var cS;function LE(){if(cS)return Up.exports;cS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Up.exports=NO(),Up.exports}var uS;function RO(){if(uS)return Rl;uS=1;var e=wO(),t=Qb(),o=LE();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(s=a.return),n=a.return;while(n)}return a.tag===3?s:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(l(n)!==n)throw Error(r(188))}function m(n){var a=n.alternate;if(!a){if(a=l(n),a===null)throw Error(r(188));return a!==n?null:n}for(var s=n,d=a;;){var g=s.return;if(g===null)break;var y=g.alternate;if(y===null){if(d=g.return,d!==null){s=d;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===s)return p(g),n;if(y===d)return p(g),a;y=y.sibling}throw Error(r(188))}if(s.return!==d.return)s=g,d=y;else{for(var M=!1,_=g.child;_;){if(_===s){M=!0,s=g,d=y;break}if(_===d){M=!0,d=g,s=y;break}_=_.sibling}if(!M){for(_=y.child;_;){if(_===s){M=!0,s=y,d=g;break}if(_===d){M=!0,d=y,s=g;break}_=_.sibling}if(!M)throw Error(r(189))}}if(s.alternate!==d)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:a}function h(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=h(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),$=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function H(n){return n===null||typeof n!="object"?null:(n=I&&n[I]||n["@@iterator"],typeof n=="function"?n:null)}var W=Symbol.for("react.client.reference");function J(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===W?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case S:return"Fragment";case E:return"Profiler";case R:return"StrictMode";case T:return"Suspense";case z:return"SuspenseList";case j:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case C:return"Portal";case $:return n.displayName||"Context";case N:return(n._context.displayName||"Context")+".Consumer";case w:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case A:return a=n.displayName||null,a!==null?a:J(n.type)||"Memo";case P:a=n._payload,n=n._init;try{return J(n(a))}catch{}}return null}var q=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},Z=[],Q=-1;function B(n){return{current:n}}function F(n){0>Q||(n.current=Z[Q],Z[Q]=null,Q--)}function k(n,a){Q++,Z[Q]=n.current,n.current=a}var G=B(null),K=B(null),te=B(null),Y=B(null);function ie(n,a){switch(k(te,a),k(K,n),k(G,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?u1(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=u1(a),n=d1(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}F(G),k(G,n)}function se(){F(G),F(K),F(te)}function ae(n){n.memoizedState!==null&&k(Y,n);var a=G.current,s=d1(a,n.type);a!==s&&(k(K,n),k(G,s))}function me(n){K.current===n&&(F(G),F(K)),Y.current===n&&(F(Y),Sl._currentValue=V)}var ne,ue;function ye(n){if(ne===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);ne=a&&a[1]||"",ue=-1<s.stack.indexOf(`
29
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
30
+ `+ne+n+ue}var ve=!1;function Ee(n,a){if(!n||ve)return"";ve=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(xe){var pe=xe}Reflect.construct(n,[],Me)}else{try{Me.call()}catch(xe){pe=xe}n.call(Me.prototype)}}else{try{throw Error()}catch(xe){pe=xe}(Me=n())&&typeof Me.catch=="function"&&Me.catch(function(){})}}catch(xe){if(xe&&pe&&typeof xe.stack=="string")return[xe.stack,pe.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),M=y[0],_=y[1];if(M&&_){var ee=M.split(`
31
+ `),fe=_.split(`
32
+ `);for(g=d=0;d<ee.length&&!ee[d].includes("DetermineComponentFrameRoot");)d++;for(;g<fe.length&&!fe[g].includes("DetermineComponentFrameRoot");)g++;if(d===ee.length||g===fe.length)for(d=ee.length-1,g=fe.length-1;1<=d&&0<=g&&ee[d]!==fe[g];)g--;for(;1<=d&&0<=g;d--,g--)if(ee[d]!==fe[g]){if(d!==1||g!==1)do if(d--,g--,0>g||ee[d]!==fe[g]){var $e=`
33
+ `+ee[d].replace(" at new "," at ");return n.displayName&&$e.includes("<anonymous>")&&($e=$e.replace("<anonymous>",n.displayName)),$e}while(1<=d&&0<=g);break}}}finally{ve=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?ye(s):""}function Ce(n,a){switch(n.tag){case 26:case 27:case 5:return ye(n.type);case 16:return ye("Lazy");case 13:return n.child!==a&&a!==null?ye("Suspense Fallback"):ye("Suspense");case 19:return ye("SuspenseList");case 0:case 15:return Ee(n.type,!1);case 11:return Ee(n.type.render,!1);case 1:return Ee(n.type,!0);case 31:return ye("Activity");default:return""}}function be(n){try{var a="",s=null;do a+=Ce(n,s),s=n,n=n.return;while(n);return a}catch(d){return`
34
+ Error generating stack: `+d.message+`
35
+ `+d.stack}}var ge=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,we=e.unstable_cancelCallback,Ie=e.unstable_shouldYield,Oe=e.unstable_requestPaint,je=e.unstable_now,nt=e.unstable_getCurrentPriorityLevel,Ye=e.unstable_ImmediatePriority,De=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,Je=e.unstable_LowPriority,Ue=e.unstable_IdlePriority,Pe=e.log,_e=e.unstable_setDisableYieldValue,We=null,Be=null;function he(n){if(typeof Pe=="function"&&_e(n),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(We,n)}catch{}}var Te=Math.clz32?Math.clz32:ot,Le=Math.log,Ge=Math.LN2;function ot(n){return n>>>=0,n===0?32:31-(Le(n)/Ge|0)|0}var Qe=256,ut=262144,Ct=4194304;function mt(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Nt(n,a,s){var d=n.pendingLanes;if(d===0)return 0;var g=0,y=n.suspendedLanes,M=n.pingedLanes;n=n.warmLanes;var _=d&134217727;return _!==0?(d=_&~y,d!==0?g=mt(d):(M&=_,M!==0?g=mt(M):s||(s=_&~n,s!==0&&(g=mt(s))))):(_=d&~y,_!==0?g=mt(_):M!==0?g=mt(M):s||(s=d&~n,s!==0&&(g=mt(s)))),g===0?0:a!==0&&a!==g&&(a&y)===0&&(y=g&-g,s=a&-a,y>=s||y===32&&(s&4194048)!==0)?a:g}function vt(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Pt(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 et(){var n=Ct;return Ct<<=1,(Ct&62914560)===0&&(Ct=4194304),n}function Bt(n){for(var a=[],s=0;31>s;s++)a.push(n);return a}function Ve(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Re(n,a,s,d,g,y){var M=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var _=n.entanglements,ee=n.expirationTimes,fe=n.hiddenUpdates;for(s=M&~s;0<s;){var $e=31-Te(s),Me=1<<$e;_[$e]=0,ee[$e]=-1;var pe=fe[$e];if(pe!==null)for(fe[$e]=null,$e=0;$e<pe.length;$e++){var xe=pe[$e];xe!==null&&(xe.lane&=-536870913)}s&=~Me}d!==0&&Ae(n,d,0),y!==0&&g===0&&n.tag!==0&&(n.suspendedLanes|=y&~(M&~a))}function Ae(n,a,s){n.pendingLanes|=a,n.suspendedLanes&=~a;var d=31-Te(a);n.entangledLanes|=a,n.entanglements[d]=n.entanglements[d]|1073741824|s&261930}function Se(n,a){var s=n.entangledLanes|=a;for(n=n.entanglements;s;){var d=31-Te(s),g=1<<d;g&a|n[d]&a&&(n[d]|=a),s&=~g}}function He(n,a){var s=a&-a;return s=(s&42)!==0?1:Fe(s),(s&(n.suspendedLanes|a))!==0?0:s}function Fe(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Ke(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ct(){var n=X.p;return n!==0?n:(n=window.event,n===void 0?32:P1(n.type))}function Jt(n,a){var s=X.p;try{return X.p=n,a()}finally{X.p=s}}var Rt=Math.random().toString(36).slice(2),dt="__reactFiber$"+Rt,Mt="__reactProps$"+Rt,on="__reactContainer$"+Rt,st="__reactEvents$"+Rt,ht="__reactListeners$"+Rt,$t="__reactHandles$"+Rt,Xe="__reactResources$"+Rt,it="__reactMarker$"+Rt;function _t(n){delete n[dt],delete n[Mt],delete n[st],delete n[ht],delete n[$t]}function en(n){var a=n[dt];if(a)return a;for(var s=n.parentNode;s;){if(a=s[on]||s[dt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(n=v1(n);n!==null;){if(s=n[dt])return s;n=v1(n)}return a}n=s,s=n.parentNode}return null}function Et(n){if(n=n[dt]||n[on]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Ft(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function gn(n){var a=n[Xe];return a||(a=n[Xe]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ht(n){n[it]=!0}var ro=new Set,br={};function Bn(n,a){ao(n,a),ao(n+"Capture",a)}function ao(n,a){for(br[n]=a,n=0;n<a.length;n++)ro.add(a[n])}var Yo=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]*$"),Io={},Gn={};function pt(n){return ge.call(Gn,n)?!0:ge.call(Io,n)?!1:Yo.test(n)?Gn[n]=!0:(Io[n]=!0,!1)}function Mn(n,a,s){if(pt(a))if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+s)}}function wn(n,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+s)}}function Zn(n,a,s,d){if(d===null)n.removeAttribute(s);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(a,s,""+d)}}function Tn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Pa(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function bi(n,a,s){var d=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var g=d.get,y=d.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return g.call(this)},set:function(M){s=""+M,y.call(this,M)}}),Object.defineProperty(n,a,{enumerable:d.enumerable}),{getValue:function(){return s},setValue:function(M){s=""+M},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Xr(n){if(!n._valueTracker){var a=Pa(n)?"checked":"value";n._valueTracker=bi(n,a,""+n[a])}}function Ps(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var s=a.getValue(),d="";return n&&(d=Pa(n)?n.checked?"true":"false":n.value),n=d,n!==s?(a.setValue(n),!0):!1}function kr(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Bs=/[\n"\\]/g;function io(n){return n.replace(Bs,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ke(n,a,s,d,g,y,M,_){n.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.type=M:n.removeAttribute("type"),a!=null?M==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Tn(a)):n.value!==""+Tn(a)&&(n.value=""+Tn(a)):M!=="submit"&&M!=="reset"||n.removeAttribute("value"),a!=null?Yr(n,M,Tn(a)):s!=null?Yr(n,M,Tn(s)):d!=null&&n.removeAttribute("value"),g==null&&y!=null&&(n.defaultChecked=!!y),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.name=""+Tn(_):n.removeAttribute("name")}function Dt(n,a,s,d,g,y,M,_){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),a!=null||s!=null){if(!(y!=="submit"&&y!=="reset"||a!=null)){Xr(n);return}s=s!=null?""+Tn(s):"",a=a!=null?""+Tn(a):s,_||a===n.value||(n.value=a),n.defaultValue=a}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,n.checked=_?n.checked:!!d,n.defaultChecked=!!d,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(n.name=M),Xr(n)}function Yr(n,a,s){a==="number"&&kr(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Kr(n,a,s,d){if(n=n.options,a){a={};for(var g=0;g<s.length;g++)a["$"+s[g]]=!0;for(s=0;s<n.length;s++)g=a.hasOwnProperty("$"+n[s].value),n[s].selected!==g&&(n[s].selected=g),g&&d&&(n[s].defaultSelected=!0)}else{for(s=""+Tn(s),a=null,g=0;g<n.length;g++){if(n[g].value===s){n[g].selected=!0,d&&(n[g].defaultSelected=!0);return}a!==null||n[g].disabled||(a=n[g])}a!==null&&(a.selected=!0)}}function js(n,a,s){if(a!=null&&(a=""+Tn(a),a!==n.value&&(n.value=a),s==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=s!=null?""+Tn(s):""}function _s(n,a,s,d){if(a==null){if(d!=null){if(s!=null)throw Error(r(92));if(q(d)){if(1<d.length)throw Error(r(93));d=d[0]}s=d}s==null&&(s=""),a=s}s=Tn(a),n.defaultValue=s,d=n.textContent,d===s&&d!==""&&d!==null&&(n.value=d),Xr(n)}function Qr(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=a;return}}n.textContent=a}var MR=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 sv(n,a,s){var d=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?d?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":d?n.setProperty(a,s):typeof s!="number"||s===0||MR.has(a)?a==="float"?n.cssFloat=s:n[a]=(""+s).trim():n[a]=s+"px"}function lv(n,a,s){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,s!=null){for(var d in s)!s.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?n.setProperty(d,""):d==="float"?n.cssFloat="":n[d]="");for(var g in a)d=a[g],a.hasOwnProperty(g)&&s[g]!==d&&sv(n,g,d)}else for(var y in a)a.hasOwnProperty(y)&&sv(n,y,a[y])}function zf(n){if(n.indexOf("-")===-1)return!1;switch(n){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 TR=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"]]),OR=/^[\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 $c(n){return OR.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function vr(){}var Af=null;function If(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var vi=null,yi=null;function cv(n){var a=Et(n);if(a&&(n=a.stateNode)){var s=n[Mt]||null;e:switch(n=a.stateNode,a.type){case"input":if(ke(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+io(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var d=s[a];if(d!==n&&d.form===n.form){var g=d[Mt]||null;if(!g)throw Error(r(90));ke(d,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<s.length;a++)d=s[a],d.form===n.form&&Ps(d)}break e;case"textarea":js(n,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&Kr(n,!!s.multiple,a,!1)}}}var Pf=!1;function uv(n,a,s){if(Pf)return n(a,s);Pf=!0;try{var d=n(a);return d}finally{if(Pf=!1,(vi!==null||yi!==null)&&(uu(),vi&&(a=vi,n=yi,yi=vi=null,cv(a),n)))for(a=0;a<n.length;a++)cv(n[a])}}function Hs(n,a){var s=n.stateNode;if(s===null)return null;var d=s[Mt]||null;if(d===null)return null;s=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,a,typeof s));return s}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bf=!1;if(yr)try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){Bf=!0}}),window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{Bf=!1}var Zr=null,jf=null,Ec=null;function dv(){if(Ec)return Ec;var n,a=jf,s=a.length,d,g="value"in Zr?Zr.value:Zr.textContent,y=g.length;for(n=0;n<s&&a[n]===g[n];n++);var M=s-n;for(d=1;d<=M&&a[s-d]===g[y-d];d++);return Ec=g.slice(n,1<d?1-d:void 0)}function wc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Nc(){return!0}function fv(){return!1}function so(n){function a(s,d,g,y,M){this._reactName=s,this._targetInst=g,this.type=d,this.nativeEvent=y,this.target=M,this.currentTarget=null;for(var _ in n)n.hasOwnProperty(_)&&(s=n[_],this[_]=s?s(y):y[_]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Nc:fv,this.isPropagationStopped=fv,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Nc)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Nc)},persist:function(){},isPersistent:Nc}),a}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rc=so(Ba),Ls=b({},Ba,{view:0,detail:0}),zR=so(Ls),_f,Hf,Vs,Mc=b({},Ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Vs&&(Vs&&n.type==="mousemove"?(_f=n.screenX-Vs.screenX,Hf=n.screenY-Vs.screenY):Hf=_f=0,Vs=n),_f)},movementY:function(n){return"movementY"in n?n.movementY:Hf}}),mv=so(Mc),AR=b({},Mc,{dataTransfer:0}),IR=so(AR),PR=b({},Ls,{relatedTarget:0}),Df=so(PR),BR=b({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),jR=so(BR),_R=b({},Ba,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),HR=so(_R),DR=b({},Ba,{data:0}),pv=so(DR),LR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VR={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"},FR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qR(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=FR[n])?!!a[n]:!1}function Lf(){return qR}var UR=b({},Ls,{key:function(n){if(n.key){var a=LR[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=wc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?VR[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lf,charCode:function(n){return n.type==="keypress"?wc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?wc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),WR=so(UR),GR=b({},Mc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gv=so(GR),XR=b({},Ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lf}),kR=so(XR),YR=b({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),KR=so(YR),QR=b({},Mc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),ZR=so(QR),JR=b({},Ba,{newState:0,oldState:0}),eM=so(JR),tM=[9,13,27,32],Vf=yr&&"CompositionEvent"in window,Fs=null;yr&&"documentMode"in document&&(Fs=document.documentMode);var nM=yr&&"TextEvent"in window&&!Fs,hv=yr&&(!Vf||Fs&&8<Fs&&11>=Fs),bv=" ",vv=!1;function yv(n,a){switch(n){case"keyup":return tM.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xv(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xi=!1;function oM(n,a){switch(n){case"compositionend":return xv(a);case"keypress":return a.which!==32?null:(vv=!0,bv);case"textInput":return n=a.data,n===bv&&vv?null:n;default:return null}}function rM(n,a){if(xi)return n==="compositionend"||!Vf&&yv(n,a)?(n=dv(),Ec=jf=Zr=null,xi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return hv&&a.locale!=="ko"?null:a.data;default:return null}}var aM={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 Sv(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!aM[n.type]:a==="textarea"}function Cv(n,a,s,d){vi?yi?yi.push(d):yi=[d]:vi=d,a=bu(a,"onChange"),0<a.length&&(s=new Rc("onChange","change",null,s,d),n.push({event:s,listeners:a}))}var qs=null,Us=null;function iM(n){r1(n,0)}function Tc(n){var a=Ft(n);if(Ps(a))return n}function $v(n,a){if(n==="change")return a}var Ev=!1;if(yr){var Ff;if(yr){var qf="oninput"in document;if(!qf){var wv=document.createElement("div");wv.setAttribute("oninput","return;"),qf=typeof wv.oninput=="function"}Ff=qf}else Ff=!1;Ev=Ff&&(!document.documentMode||9<document.documentMode)}function Nv(){qs&&(qs.detachEvent("onpropertychange",Rv),Us=qs=null)}function Rv(n){if(n.propertyName==="value"&&Tc(Us)){var a=[];Cv(a,Us,n,If(n)),uv(iM,a)}}function sM(n,a,s){n==="focusin"?(Nv(),qs=a,Us=s,qs.attachEvent("onpropertychange",Rv)):n==="focusout"&&Nv()}function lM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Tc(Us)}function cM(n,a){if(n==="click")return Tc(a)}function uM(n,a){if(n==="input"||n==="change")return Tc(a)}function dM(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var vo=typeof Object.is=="function"?Object.is:dM;function Ws(n,a){if(vo(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),d=Object.keys(a);if(s.length!==d.length)return!1;for(d=0;d<s.length;d++){var g=s[d];if(!ge.call(a,g)||!vo(n[g],a[g]))return!1}return!0}function Mv(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Tv(n,a){var s=Mv(n);n=0;for(var d;s;){if(s.nodeType===3){if(d=n+s.textContent.length,n<=a&&d>=a)return{node:s,offset:a-n};n=d}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Mv(s)}}function Ov(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Ov(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function zv(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=kr(n.document);a instanceof n.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)n=a.contentWindow;else break;a=kr(n.document)}return a}function Uf(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var fM=yr&&"documentMode"in document&&11>=document.documentMode,Si=null,Wf=null,Gs=null,Gf=!1;function Av(n,a,s){var d=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Gf||Si==null||Si!==kr(d)||(d=Si,"selectionStart"in d&&Uf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Gs&&Ws(Gs,d)||(Gs=d,d=bu(Wf,"onSelect"),0<d.length&&(a=new Rc("onSelect","select",null,a,s),n.push({event:a,listeners:d}),a.target=Si)))}function ja(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var Ci={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},Xf={},Iv={};yr&&(Iv=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function _a(n){if(Xf[n])return Xf[n];if(!Ci[n])return n;var a=Ci[n],s;for(s in a)if(a.hasOwnProperty(s)&&s in Iv)return Xf[n]=a[s];return n}var Pv=_a("animationend"),Bv=_a("animationiteration"),jv=_a("animationstart"),mM=_a("transitionrun"),pM=_a("transitionstart"),gM=_a("transitioncancel"),_v=_a("transitionend"),Hv=new Map,kf="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(" ");kf.push("scrollEnd");function Ko(n,a){Hv.set(n,a),Bn(a,[n])}var Oc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Po=[],$i=0,Yf=0;function zc(){for(var n=$i,a=Yf=$i=0;a<n;){var s=Po[a];Po[a++]=null;var d=Po[a];Po[a++]=null;var g=Po[a];Po[a++]=null;var y=Po[a];if(Po[a++]=null,d!==null&&g!==null){var M=d.pending;M===null?g.next=g:(g.next=M.next,M.next=g),d.pending=g}y!==0&&Dv(s,g,y)}}function Ac(n,a,s,d){Po[$i++]=n,Po[$i++]=a,Po[$i++]=s,Po[$i++]=d,Yf|=d,n.lanes|=d,n=n.alternate,n!==null&&(n.lanes|=d)}function Kf(n,a,s,d){return Ac(n,a,s,d),Ic(n)}function Ha(n,a){return Ac(n,null,null,a),Ic(n)}function Dv(n,a,s){n.lanes|=s;var d=n.alternate;d!==null&&(d.lanes|=s);for(var g=!1,y=n.return;y!==null;)y.childLanes|=s,d=y.alternate,d!==null&&(d.childLanes|=s),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(g=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,g&&a!==null&&(g=31-Te(s),n=y.hiddenUpdates,d=n[g],d===null?n[g]=[a]:d.push(a),a.lane=s|536870912),y):null}function Ic(n){if(50<pl)throw pl=0,ap=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ei={};function hM(n,a,s,d){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yo(n,a,s,d){return new hM(n,a,s,d)}function Qf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function xr(n,a){var s=n.alternate;return s===null?(s=yo(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,a=n.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function Lv(n,a){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,a=s.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Pc(n,a,s,d,g,y){var M=0;if(d=n,typeof n=="function")Qf(n)&&(M=1);else if(typeof n=="string")M=ST(n,s,G.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case j:return n=yo(31,s,a,g),n.elementType=j,n.lanes=y,n;case S:return Da(s.children,g,y,a);case R:M=8,g|=24;break;case E:return n=yo(12,s,a,g|2),n.elementType=E,n.lanes=y,n;case T:return n=yo(13,s,a,g),n.elementType=T,n.lanes=y,n;case z:return n=yo(19,s,a,g),n.elementType=z,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case $:M=10;break e;case N:M=9;break e;case w:M=11;break e;case A:M=14;break e;case P:M=16,d=null;break e}M=29,s=Error(r(130,n===null?"null":typeof n,"")),d=null}return a=yo(M,s,a,g),a.elementType=n,a.type=d,a.lanes=y,a}function Da(n,a,s,d){return n=yo(7,n,d,a),n.lanes=s,n}function Zf(n,a,s){return n=yo(6,n,null,a),n.lanes=s,n}function Vv(n){var a=yo(18,null,null,0);return a.stateNode=n,a}function Jf(n,a,s){return a=yo(4,n.children!==null?n.children:[],n.key,a),a.lanes=s,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Fv=new WeakMap;function Bo(n,a){if(typeof n=="object"&&n!==null){var s=Fv.get(n);return s!==void 0?s:(a={value:n,source:a,stack:be(a)},Fv.set(n,a),a)}return{value:n,source:a,stack:be(a)}}var wi=[],Ni=0,Bc=null,Xs=0,jo=[],_o=0,Jr=null,ar=1,ir="";function Sr(n,a){wi[Ni++]=Xs,wi[Ni++]=Bc,Bc=n,Xs=a}function qv(n,a,s){jo[_o++]=ar,jo[_o++]=ir,jo[_o++]=Jr,Jr=n;var d=ar;n=ir;var g=32-Te(d)-1;d&=~(1<<g),s+=1;var y=32-Te(a)+g;if(30<y){var M=g-g%5;y=(d&(1<<M)-1).toString(32),d>>=M,g-=M,ar=1<<32-Te(a)+g|s<<g|d,ir=y+n}else ar=1<<y|s<<g|d,ir=n}function em(n){n.return!==null&&(Sr(n,1),qv(n,1,0))}function tm(n){for(;n===Bc;)Bc=wi[--Ni],wi[Ni]=null,Xs=wi[--Ni],wi[Ni]=null;for(;n===Jr;)Jr=jo[--_o],jo[_o]=null,ir=jo[--_o],jo[_o]=null,ar=jo[--_o],jo[_o]=null}function Uv(n,a){jo[_o++]=ar,jo[_o++]=ir,jo[_o++]=Jr,ar=a.id,ir=a.overflow,Jr=n}var Fn=null,hn=null,jt=!1,ea=null,Ho=!1,nm=Error(r(519));function ta(n){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ks(Bo(a,n)),nm}function Wv(n){var a=n.stateNode,s=n.type,d=n.memoizedProps;switch(a[dt]=n,a[Mt]=d,s){case"dialog":Ot("cancel",a),Ot("close",a);break;case"iframe":case"object":case"embed":Ot("load",a);break;case"video":case"audio":for(s=0;s<hl.length;s++)Ot(hl[s],a);break;case"source":Ot("error",a);break;case"img":case"image":case"link":Ot("error",a),Ot("load",a);break;case"details":Ot("toggle",a);break;case"input":Ot("invalid",a),Dt(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Ot("invalid",a);break;case"textarea":Ot("invalid",a),_s(a,d.value,d.defaultValue,d.children)}s=d.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||d.suppressHydrationWarning===!0||l1(a.textContent,s)?(d.popover!=null&&(Ot("beforetoggle",a),Ot("toggle",a)),d.onScroll!=null&&Ot("scroll",a),d.onScrollEnd!=null&&Ot("scrollend",a),d.onClick!=null&&(a.onclick=vr),a=!0):a=!1,a||ta(n,!0)}function Gv(n){for(Fn=n.return;Fn;)switch(Fn.tag){case 5:case 31:case 13:Ho=!1;return;case 27:case 3:Ho=!0;return;default:Fn=Fn.return}}function Ri(n){if(n!==Fn)return!1;if(!jt)return Gv(n),jt=!0,!1;var a=n.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||xp(n.type,n.memoizedProps)),s=!s),s&&hn&&ta(n),Gv(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));hn=b1(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));hn=b1(n)}else a===27?(a=hn,ga(n.type)?(n=wp,wp=null,hn=n):hn=a):hn=Fn?Lo(n.stateNode.nextSibling):null;return!0}function La(){hn=Fn=null,jt=!1}function om(){var n=ea;return n!==null&&(fo===null?fo=n:fo.push.apply(fo,n),ea=null),n}function ks(n){ea===null?ea=[n]:ea.push(n)}var rm=B(null),Va=null,Cr=null;function na(n,a,s){k(rm,a._currentValue),a._currentValue=s}function $r(n){n._currentValue=rm.current,F(rm)}function am(n,a,s){for(;n!==null;){var d=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),n===s)break;n=n.return}}function im(n,a,s,d){var g=n.child;for(g!==null&&(g.return=n);g!==null;){var y=g.dependencies;if(y!==null){var M=g.child;y=y.firstContext;e:for(;y!==null;){var _=y;y=g;for(var ee=0;ee<a.length;ee++)if(_.context===a[ee]){y.lanes|=s,_=y.alternate,_!==null&&(_.lanes|=s),am(y.return,s,n),d||(M=null);break e}y=_.next}}else if(g.tag===18){if(M=g.return,M===null)throw Error(r(341));M.lanes|=s,y=M.alternate,y!==null&&(y.lanes|=s),am(M,s,n),M=null}else M=g.child;if(M!==null)M.return=g;else for(M=g;M!==null;){if(M===n){M=null;break}if(g=M.sibling,g!==null){g.return=M.return,M=g;break}M=M.return}g=M}}function Mi(n,a,s,d){n=null;for(var g=a,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var M=g.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var _=g.type;vo(g.pendingProps.value,M.value)||(n!==null?n.push(_):n=[_])}}else if(g===Y.current){if(M=g.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(n!==null?n.push(Sl):n=[Sl])}g=g.return}n!==null&&im(a,n,s,d),a.flags|=262144}function jc(n){for(n=n.firstContext;n!==null;){if(!vo(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Fa(n){Va=n,Cr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function qn(n){return Xv(Va,n)}function _c(n,a){return Va===null&&Fa(n),Xv(n,a)}function Xv(n,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},Cr===null){if(n===null)throw Error(r(308));Cr=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Cr=Cr.next=a;return s}var bM=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(s,d){n.push(d)}};this.abort=function(){a.aborted=!0,n.forEach(function(s){return s()})}},vM=e.unstable_scheduleCallback,yM=e.unstable_NormalPriority,On={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sm(){return{controller:new bM,data:new Map,refCount:0}}function Ys(n){n.refCount--,n.refCount===0&&vM(yM,function(){n.controller.abort()})}var Ks=null,lm=0,Ti=0,Oi=null;function xM(n,a){if(Ks===null){var s=Ks=[];lm=0,Ti=dp(),Oi={status:"pending",value:void 0,then:function(d){s.push(d)}}}return lm++,a.then(kv,kv),a}function kv(){if(--lm===0&&Ks!==null){Oi!==null&&(Oi.status="fulfilled");var n=Ks;Ks=null,Ti=0,Oi=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function SM(n,a){var s=[],d={status:"pending",value:null,reason:null,then:function(g){s.push(g)}};return n.then(function(){d.status="fulfilled",d.value=a;for(var g=0;g<s.length;g++)(0,s[g])(a)},function(g){for(d.status="rejected",d.reason=g,g=0;g<s.length;g++)(0,s[g])(void 0)}),d}var Yv=D.S;D.S=function(n,a){Ax=je(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&xM(n,a),Yv!==null&&Yv(n,a)};var qa=B(null);function cm(){var n=qa.current;return n!==null?n:fn.pooledCache}function Hc(n,a){a===null?k(qa,qa.current):k(qa,a.pool)}function Kv(){var n=cm();return n===null?null:{parent:On._currentValue,pool:n}}var zi=Error(r(460)),um=Error(r(474)),Dc=Error(r(542)),Lc={then:function(){}};function Qv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Zv(n,a,s){switch(s=n[s],s===void 0?n.push(a):s!==a&&(a.then(vr,vr),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ey(n),n;default:if(typeof a.status=="string")a.then(vr,vr);else{if(n=fn,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(d){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=d}},function(d){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ey(n),n}throw Wa=a,zi}}function Ua(n){try{var a=n._init;return a(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Wa=s,zi):s}}var Wa=null;function Jv(){if(Wa===null)throw Error(r(459));var n=Wa;return Wa=null,n}function ey(n){if(n===zi||n===Dc)throw Error(r(483))}var Ai=null,Qs=0;function Vc(n){var a=Qs;return Qs+=1,Ai===null&&(Ai=[]),Zv(Ai,n,a)}function Zs(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Fc(n,a){throw a.$$typeof===v?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function ty(n){function a(le,oe){if(n){var de=le.deletions;de===null?(le.deletions=[oe],le.flags|=16):de.push(oe)}}function s(le,oe){if(!n)return null;for(;oe!==null;)a(le,oe),oe=oe.sibling;return null}function d(le){for(var oe=new Map;le!==null;)le.key!==null?oe.set(le.key,le):oe.set(le.index,le),le=le.sibling;return oe}function g(le,oe){return le=xr(le,oe),le.index=0,le.sibling=null,le}function y(le,oe,de){return le.index=de,n?(de=le.alternate,de!==null?(de=de.index,de<oe?(le.flags|=67108866,oe):de):(le.flags|=67108866,oe)):(le.flags|=1048576,oe)}function M(le){return n&&le.alternate===null&&(le.flags|=67108866),le}function _(le,oe,de,Ne){return oe===null||oe.tag!==6?(oe=Zf(de,le.mode,Ne),oe.return=le,oe):(oe=g(oe,de),oe.return=le,oe)}function ee(le,oe,de,Ne){var at=de.type;return at===S?$e(le,oe,de.props.children,Ne,de.key):oe!==null&&(oe.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===P&&Ua(at)===oe.type)?(oe=g(oe,de.props),Zs(oe,de),oe.return=le,oe):(oe=Pc(de.type,de.key,de.props,null,le.mode,Ne),Zs(oe,de),oe.return=le,oe)}function fe(le,oe,de,Ne){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==de.containerInfo||oe.stateNode.implementation!==de.implementation?(oe=Jf(de,le.mode,Ne),oe.return=le,oe):(oe=g(oe,de.children||[]),oe.return=le,oe)}function $e(le,oe,de,Ne,at){return oe===null||oe.tag!==7?(oe=Da(de,le.mode,Ne,at),oe.return=le,oe):(oe=g(oe,de),oe.return=le,oe)}function Me(le,oe,de){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return oe=Zf(""+oe,le.mode,de),oe.return=le,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case x:return de=Pc(oe.type,oe.key,oe.props,null,le.mode,de),Zs(de,oe),de.return=le,de;case C:return oe=Jf(oe,le.mode,de),oe.return=le,oe;case P:return oe=Ua(oe),Me(le,oe,de)}if(q(oe)||H(oe))return oe=Da(oe,le.mode,de,null),oe.return=le,oe;if(typeof oe.then=="function")return Me(le,Vc(oe),de);if(oe.$$typeof===$)return Me(le,_c(le,oe),de);Fc(le,oe)}return null}function pe(le,oe,de,Ne){var at=oe!==null?oe.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return at!==null?null:_(le,oe,""+de,Ne);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case x:return de.key===at?ee(le,oe,de,Ne):null;case C:return de.key===at?fe(le,oe,de,Ne):null;case P:return de=Ua(de),pe(le,oe,de,Ne)}if(q(de)||H(de))return at!==null?null:$e(le,oe,de,Ne,null);if(typeof de.then=="function")return pe(le,oe,Vc(de),Ne);if(de.$$typeof===$)return pe(le,oe,_c(le,de),Ne);Fc(le,de)}return null}function xe(le,oe,de,Ne,at){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return le=le.get(de)||null,_(oe,le,""+Ne,at);if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case x:return le=le.get(Ne.key===null?de:Ne.key)||null,ee(oe,le,Ne,at);case C:return le=le.get(Ne.key===null?de:Ne.key)||null,fe(oe,le,Ne,at);case P:return Ne=Ua(Ne),xe(le,oe,de,Ne,at)}if(q(Ne)||H(Ne))return le=le.get(de)||null,$e(oe,le,Ne,at,null);if(typeof Ne.then=="function")return xe(le,oe,de,Vc(Ne),at);if(Ne.$$typeof===$)return xe(le,oe,de,_c(oe,Ne),at);Fc(oe,Ne)}return null}function Ze(le,oe,de,Ne){for(var at=null,qt=null,tt=oe,yt=oe=0,At=null;tt!==null&&yt<de.length;yt++){tt.index>yt?(At=tt,tt=null):At=tt.sibling;var Ut=pe(le,tt,de[yt],Ne);if(Ut===null){tt===null&&(tt=At);break}n&&tt&&Ut.alternate===null&&a(le,tt),oe=y(Ut,oe,yt),qt===null?at=Ut:qt.sibling=Ut,qt=Ut,tt=At}if(yt===de.length)return s(le,tt),jt&&Sr(le,yt),at;if(tt===null){for(;yt<de.length;yt++)tt=Me(le,de[yt],Ne),tt!==null&&(oe=y(tt,oe,yt),qt===null?at=tt:qt.sibling=tt,qt=tt);return jt&&Sr(le,yt),at}for(tt=d(tt);yt<de.length;yt++)At=xe(tt,le,yt,de[yt],Ne),At!==null&&(n&&At.alternate!==null&&tt.delete(At.key===null?yt:At.key),oe=y(At,oe,yt),qt===null?at=At:qt.sibling=At,qt=At);return n&&tt.forEach(function(xa){return a(le,xa)}),jt&&Sr(le,yt),at}function lt(le,oe,de,Ne){if(de==null)throw Error(r(151));for(var at=null,qt=null,tt=oe,yt=oe=0,At=null,Ut=de.next();tt!==null&&!Ut.done;yt++,Ut=de.next()){tt.index>yt?(At=tt,tt=null):At=tt.sibling;var xa=pe(le,tt,Ut.value,Ne);if(xa===null){tt===null&&(tt=At);break}n&&tt&&xa.alternate===null&&a(le,tt),oe=y(xa,oe,yt),qt===null?at=xa:qt.sibling=xa,qt=xa,tt=At}if(Ut.done)return s(le,tt),jt&&Sr(le,yt),at;if(tt===null){for(;!Ut.done;yt++,Ut=de.next())Ut=Me(le,Ut.value,Ne),Ut!==null&&(oe=y(Ut,oe,yt),qt===null?at=Ut:qt.sibling=Ut,qt=Ut);return jt&&Sr(le,yt),at}for(tt=d(tt);!Ut.done;yt++,Ut=de.next())Ut=xe(tt,le,yt,Ut.value,Ne),Ut!==null&&(n&&Ut.alternate!==null&&tt.delete(Ut.key===null?yt:Ut.key),oe=y(Ut,oe,yt),qt===null?at=Ut:qt.sibling=Ut,qt=Ut);return n&&tt.forEach(function(AT){return a(le,AT)}),jt&&Sr(le,yt),at}function sn(le,oe,de,Ne){if(typeof de=="object"&&de!==null&&de.type===S&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case x:e:{for(var at=de.key;oe!==null;){if(oe.key===at){if(at=de.type,at===S){if(oe.tag===7){s(le,oe.sibling),Ne=g(oe,de.props.children),Ne.return=le,le=Ne;break e}}else if(oe.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===P&&Ua(at)===oe.type){s(le,oe.sibling),Ne=g(oe,de.props),Zs(Ne,de),Ne.return=le,le=Ne;break e}s(le,oe);break}else a(le,oe);oe=oe.sibling}de.type===S?(Ne=Da(de.props.children,le.mode,Ne,de.key),Ne.return=le,le=Ne):(Ne=Pc(de.type,de.key,de.props,null,le.mode,Ne),Zs(Ne,de),Ne.return=le,le=Ne)}return M(le);case C:e:{for(at=de.key;oe!==null;){if(oe.key===at)if(oe.tag===4&&oe.stateNode.containerInfo===de.containerInfo&&oe.stateNode.implementation===de.implementation){s(le,oe.sibling),Ne=g(oe,de.children||[]),Ne.return=le,le=Ne;break e}else{s(le,oe);break}else a(le,oe);oe=oe.sibling}Ne=Jf(de,le.mode,Ne),Ne.return=le,le=Ne}return M(le);case P:return de=Ua(de),sn(le,oe,de,Ne)}if(q(de))return Ze(le,oe,de,Ne);if(H(de)){if(at=H(de),typeof at!="function")throw Error(r(150));return de=at.call(de),lt(le,oe,de,Ne)}if(typeof de.then=="function")return sn(le,oe,Vc(de),Ne);if(de.$$typeof===$)return sn(le,oe,_c(le,de),Ne);Fc(le,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,oe!==null&&oe.tag===6?(s(le,oe.sibling),Ne=g(oe,de),Ne.return=le,le=Ne):(s(le,oe),Ne=Zf(de,le.mode,Ne),Ne.return=le,le=Ne),M(le)):s(le,oe)}return function(le,oe,de,Ne){try{Qs=0;var at=sn(le,oe,de,Ne);return Ai=null,at}catch(tt){if(tt===zi||tt===Dc)throw tt;var qt=yo(29,tt,null,le.mode);return qt.lanes=Ne,qt.return=le,qt}}}var Ga=ty(!0),ny=ty(!1),oa=!1;function dm(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fm(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ra(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function aa(n,a,s){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,(kt&2)!==0){var g=d.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a,a=Ic(n),Dv(n,null,s),a}return Ac(n,d,a,s),Ic(n)}function Js(n,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var d=a.lanes;d&=n.pendingLanes,s|=d,a.lanes=s,Se(n,s)}}function mm(n,a){var s=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,s===d)){var g=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var M={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};y===null?g=y=M:y=y.next=M,s=s.next}while(s!==null);y===null?g=y=a:y=y.next=a}else g=y=a;s={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=a:n.next=a,s.lastBaseUpdate=a}var pm=!1;function el(){if(pm){var n=Oi;if(n!==null)throw n}}function tl(n,a,s,d){pm=!1;var g=n.updateQueue;oa=!1;var y=g.firstBaseUpdate,M=g.lastBaseUpdate,_=g.shared.pending;if(_!==null){g.shared.pending=null;var ee=_,fe=ee.next;ee.next=null,M===null?y=fe:M.next=fe,M=ee;var $e=n.alternate;$e!==null&&($e=$e.updateQueue,_=$e.lastBaseUpdate,_!==M&&(_===null?$e.firstBaseUpdate=fe:_.next=fe,$e.lastBaseUpdate=ee))}if(y!==null){var Me=g.baseState;M=0,$e=fe=ee=null,_=y;do{var pe=_.lane&-536870913,xe=pe!==_.lane;if(xe?(zt&pe)===pe:(d&pe)===pe){pe!==0&&pe===Ti&&(pm=!0),$e!==null&&($e=$e.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Ze=n,lt=_;pe=a;var sn=s;switch(lt.tag){case 1:if(Ze=lt.payload,typeof Ze=="function"){Me=Ze.call(sn,Me,pe);break e}Me=Ze;break e;case 3:Ze.flags=Ze.flags&-65537|128;case 0:if(Ze=lt.payload,pe=typeof Ze=="function"?Ze.call(sn,Me,pe):Ze,pe==null)break e;Me=b({},Me,pe);break e;case 2:oa=!0}}pe=_.callback,pe!==null&&(n.flags|=64,xe&&(n.flags|=8192),xe=g.callbacks,xe===null?g.callbacks=[pe]:xe.push(pe))}else xe={lane:pe,tag:_.tag,payload:_.payload,callback:_.callback,next:null},$e===null?(fe=$e=xe,ee=Me):$e=$e.next=xe,M|=pe;if(_=_.next,_===null){if(_=g.shared.pending,_===null)break;xe=_,_=xe.next,xe.next=null,g.lastBaseUpdate=xe,g.shared.pending=null}}while(!0);$e===null&&(ee=Me),g.baseState=ee,g.firstBaseUpdate=fe,g.lastBaseUpdate=$e,y===null&&(g.shared.lanes=0),ua|=M,n.lanes=M,n.memoizedState=Me}}function oy(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function ry(n,a){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)oy(s[n],a)}var Ii=B(null),qc=B(0);function ay(n,a){n=Ar,k(qc,n),k(Ii,a),Ar=n|a.baseLanes}function gm(){k(qc,Ar),k(Ii,Ii.current)}function hm(){Ar=qc.current,F(Ii),F(qc)}var xo=B(null),Do=null;function ia(n){var a=n.alternate;k(Nn,Nn.current&1),k(xo,n),Do===null&&(a===null||Ii.current!==null||a.memoizedState!==null)&&(Do=n)}function bm(n){k(Nn,Nn.current),k(xo,n),Do===null&&(Do=n)}function iy(n){n.tag===22?(k(Nn,Nn.current),k(xo,n),Do===null&&(Do=n)):sa()}function sa(){k(Nn,Nn.current),k(xo,xo.current)}function So(n){F(xo),Do===n&&(Do=null),F(Nn)}var Nn=B(0);function Uc(n){for(var a=n;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||$p(s)||Ep(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Er=0,bt=null,rn=null,zn=null,Wc=!1,Pi=!1,Xa=!1,Gc=0,nl=0,Bi=null,CM=0;function Sn(){throw Error(r(321))}function vm(n,a){if(a===null)return!1;for(var s=0;s<a.length&&s<n.length;s++)if(!vo(n[s],a[s]))return!1;return!0}function ym(n,a,s,d,g,y){return Er=y,bt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,D.H=n===null||n.memoizedState===null?qy:Pm,Xa=!1,y=s(d,g),Xa=!1,Pi&&(y=ly(a,s,d,g)),sy(n),y}function sy(n){D.H=al;var a=rn!==null&&rn.next!==null;if(Er=0,zn=rn=bt=null,Wc=!1,nl=0,Bi=null,a)throw Error(r(300));n===null||An||(n=n.dependencies,n!==null&&jc(n)&&(An=!0))}function ly(n,a,s,d){bt=n;var g=0;do{if(Pi&&(Bi=null),nl=0,Pi=!1,25<=g)throw Error(r(301));if(g+=1,zn=rn=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}D.H=Uy,y=a(s,d)}while(Pi);return y}function $M(){var n=D.H,a=n.useState()[0];return a=typeof a.then=="function"?ol(a):a,n=n.useState()[0],(rn!==null?rn.memoizedState:null)!==n&&(bt.flags|=1024),a}function xm(){var n=Gc!==0;return Gc=0,n}function Sm(n,a,s){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~s}function Cm(n){if(Wc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Wc=!1}Er=0,zn=rn=bt=null,Pi=!1,nl=Gc=0,Bi=null}function Jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zn===null?bt.memoizedState=zn=n:zn=zn.next=n,zn}function Rn(){if(rn===null){var n=bt.alternate;n=n!==null?n.memoizedState:null}else n=rn.next;var a=zn===null?bt.memoizedState:zn.next;if(a!==null)zn=a,rn=n;else{if(n===null)throw bt.alternate===null?Error(r(467)):Error(r(310));rn=n,n={memoizedState:rn.memoizedState,baseState:rn.baseState,baseQueue:rn.baseQueue,queue:rn.queue,next:null},zn===null?bt.memoizedState=zn=n:zn=zn.next=n}return zn}function Xc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ol(n){var a=nl;return nl+=1,Bi===null&&(Bi=[]),n=Zv(Bi,n,a),a=bt,(zn===null?a.memoizedState:zn.next)===null&&(a=a.alternate,D.H=a===null||a.memoizedState===null?qy:Pm),n}function kc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ol(n);if(n.$$typeof===$)return qn(n)}throw Error(r(438,String(n)))}function $m(n){var a=null,s=bt.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var d=bt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=Xc(),bt.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(n),d=0;d<n;d++)s[d]=L;return a.index++,s}function wr(n,a){return typeof a=="function"?a(n):a}function Yc(n){var a=Rn();return Em(a,rn,n)}function Em(n,a,s){var d=n.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=s;var g=n.baseQueue,y=d.pending;if(y!==null){if(g!==null){var M=g.next;g.next=y.next,y.next=M}a.baseQueue=g=y,d.pending=null}if(y=n.baseState,g===null)n.memoizedState=y;else{a=g.next;var _=M=null,ee=null,fe=a,$e=!1;do{var Me=fe.lane&-536870913;if(Me!==fe.lane?(zt&Me)===Me:(Er&Me)===Me){var pe=fe.revertLane;if(pe===0)ee!==null&&(ee=ee.next={lane:0,revertLane:0,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),Me===Ti&&($e=!0);else if((Er&pe)===pe){fe=fe.next,pe===Ti&&($e=!0);continue}else Me={lane:0,revertLane:fe.revertLane,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},ee===null?(_=ee=Me,M=y):ee=ee.next=Me,bt.lanes|=pe,ua|=pe;Me=fe.action,Xa&&s(y,Me),y=fe.hasEagerState?fe.eagerState:s(y,Me)}else pe={lane:Me,revertLane:fe.revertLane,gesture:fe.gesture,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},ee===null?(_=ee=pe,M=y):ee=ee.next=pe,bt.lanes|=Me,ua|=Me;fe=fe.next}while(fe!==null&&fe!==a);if(ee===null?M=y:ee.next=_,!vo(y,n.memoizedState)&&(An=!0,$e&&(s=Oi,s!==null)))throw s;n.memoizedState=y,n.baseState=M,n.baseQueue=ee,d.lastRenderedState=y}return g===null&&(d.lanes=0),[n.memoizedState,d.dispatch]}function wm(n){var a=Rn(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var d=s.dispatch,g=s.pending,y=a.memoizedState;if(g!==null){s.pending=null;var M=g=g.next;do y=n(y,M.action),M=M.next;while(M!==g);vo(y,a.memoizedState)||(An=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),s.lastRenderedState=y}return[y,d]}function cy(n,a,s){var d=bt,g=Rn(),y=jt;if(y){if(s===void 0)throw Error(r(407));s=s()}else s=a();var M=!vo((rn||g).memoizedState,s);if(M&&(g.memoizedState=s,An=!0),g=g.queue,Mm(fy.bind(null,d,g,n),[n]),g.getSnapshot!==a||M||zn!==null&&zn.memoizedState.tag&1){if(d.flags|=2048,ji(9,{destroy:void 0},dy.bind(null,d,g,s,a),null),fn===null)throw Error(r(349));y||(Er&127)!==0||uy(d,a,s)}return s}function uy(n,a,s){n.flags|=16384,n={getSnapshot:a,value:s},a=bt.updateQueue,a===null?(a=Xc(),bt.updateQueue=a,a.stores=[n]):(s=a.stores,s===null?a.stores=[n]:s.push(n))}function dy(n,a,s,d){a.value=s,a.getSnapshot=d,my(a)&&py(n)}function fy(n,a,s){return s(function(){my(a)&&py(n)})}function my(n){var a=n.getSnapshot;n=n.value;try{var s=a();return!vo(n,s)}catch{return!0}}function py(n){var a=Ha(n,2);a!==null&&mo(a,n,2)}function Nm(n){var a=Jn();if(typeof n=="function"){var s=n;if(n=s(),Xa){he(!0);try{s()}finally{he(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:n},a}function gy(n,a,s,d){return n.baseState=s,Em(n,rn,typeof d=="function"?d:wr)}function EM(n,a,s,d,g){if(Zc(n))throw Error(r(485));if(n=a.action,n!==null){var y={payload:g,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){y.listeners.push(M)}};D.T!==null?s(!0):y.isTransition=!1,d(y),s=a.pending,s===null?(y.next=a.pending=y,hy(a,y)):(y.next=s.next,a.pending=s.next=y)}}function hy(n,a){var s=a.action,d=a.payload,g=n.state;if(a.isTransition){var y=D.T,M={};D.T=M;try{var _=s(g,d),ee=D.S;ee!==null&&ee(M,_),by(n,a,_)}catch(fe){Rm(n,a,fe)}finally{y!==null&&M.types!==null&&(y.types=M.types),D.T=y}}else try{y=s(g,d),by(n,a,y)}catch(fe){Rm(n,a,fe)}}function by(n,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(d){vy(n,a,d)},function(d){return Rm(n,a,d)}):vy(n,a,s)}function vy(n,a,s){a.status="fulfilled",a.value=s,yy(a),n.state=s,a=n.pending,a!==null&&(s=a.next,s===a?n.pending=null:(s=s.next,a.next=s,hy(n,s)))}function Rm(n,a,s){var d=n.pending;if(n.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=s,yy(a),a=a.next;while(a!==d)}n.action=null}function yy(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function xy(n,a){return a}function Sy(n,a){if(jt){var s=fn.formState;if(s!==null){e:{var d=bt;if(jt){if(hn){t:{for(var g=hn,y=Ho;g.nodeType!==8;){if(!y){g=null;break t}if(g=Lo(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y==="F!"||y==="F"?g:null}if(g){hn=Lo(g.nextSibling),d=g.data==="F!";break e}}ta(d)}d=!1}d&&(a=s[0])}}return s=Jn(),s.memoizedState=s.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xy,lastRenderedState:a},s.queue=d,s=Ly.bind(null,bt,d),d.dispatch=s,d=Nm(!1),y=Im.bind(null,bt,!1,d.queue),d=Jn(),g={state:a,dispatch:null,action:n,pending:null},d.queue=g,s=EM.bind(null,bt,g,y,s),g.dispatch=s,d.memoizedState=n,[a,s,!1]}function Cy(n){var a=Rn();return $y(a,rn,n)}function $y(n,a,s){if(a=Em(n,a,xy)[0],n=Yc(wr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=ol(a)}catch(M){throw M===zi?Dc:M}else d=a;a=Rn();var g=a.queue,y=g.dispatch;return s!==a.memoizedState&&(bt.flags|=2048,ji(9,{destroy:void 0},wM.bind(null,g,s),null)),[d,y,n]}function wM(n,a){n.action=a}function Ey(n){var a=Rn(),s=rn;if(s!==null)return $y(a,s,n);Rn(),a=a.memoizedState,s=Rn();var d=s.queue.dispatch;return s.memoizedState=n,[a,d,!1]}function ji(n,a,s,d){return n={tag:n,create:s,deps:d,inst:a,next:null},a=bt.updateQueue,a===null&&(a=Xc(),bt.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=n.next=n:(d=s.next,s.next=n,n.next=d,a.lastEffect=n),n}function wy(){return Rn().memoizedState}function Kc(n,a,s,d){var g=Jn();bt.flags|=n,g.memoizedState=ji(1|a,{destroy:void 0},s,d===void 0?null:d)}function Qc(n,a,s,d){var g=Rn();d=d===void 0?null:d;var y=g.memoizedState.inst;rn!==null&&d!==null&&vm(d,rn.memoizedState.deps)?g.memoizedState=ji(a,y,s,d):(bt.flags|=n,g.memoizedState=ji(1|a,y,s,d))}function Ny(n,a){Kc(8390656,8,n,a)}function Mm(n,a){Qc(2048,8,n,a)}function NM(n){bt.flags|=4;var a=bt.updateQueue;if(a===null)a=Xc(),bt.updateQueue=a,a.events=[n];else{var s=a.events;s===null?a.events=[n]:s.push(n)}}function Ry(n){var a=Rn().memoizedState;return NM({ref:a,nextImpl:n}),function(){if((kt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function My(n,a){return Qc(4,2,n,a)}function Ty(n,a){return Qc(4,4,n,a)}function Oy(n,a){if(typeof a=="function"){n=n();var s=a(n);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function zy(n,a,s){s=s!=null?s.concat([n]):null,Qc(4,4,Oy.bind(null,a,n),s)}function Tm(){}function Ay(n,a){var s=Rn();a=a===void 0?null:a;var d=s.memoizedState;return a!==null&&vm(a,d[1])?d[0]:(s.memoizedState=[n,a],n)}function Iy(n,a){var s=Rn();a=a===void 0?null:a;var d=s.memoizedState;if(a!==null&&vm(a,d[1]))return d[0];if(d=n(),Xa){he(!0);try{n()}finally{he(!1)}}return s.memoizedState=[d,a],d}function Om(n,a,s){return s===void 0||(Er&1073741824)!==0&&(zt&261930)===0?n.memoizedState=a:(n.memoizedState=s,n=Px(),bt.lanes|=n,ua|=n,s)}function Py(n,a,s,d){return vo(s,a)?s:Ii.current!==null?(n=Om(n,s,d),vo(n,a)||(An=!0),n):(Er&42)===0||(Er&1073741824)!==0&&(zt&261930)===0?(An=!0,n.memoizedState=s):(n=Px(),bt.lanes|=n,ua|=n,a)}function By(n,a,s,d,g){var y=X.p;X.p=y!==0&&8>y?y:8;var M=D.T,_={};D.T=_,Im(n,!1,a,s);try{var ee=g(),fe=D.S;if(fe!==null&&fe(_,ee),ee!==null&&typeof ee=="object"&&typeof ee.then=="function"){var $e=SM(ee,d);rl(n,a,$e,Eo(n))}else rl(n,a,d,Eo(n))}catch(Me){rl(n,a,{then:function(){},status:"rejected",reason:Me},Eo())}finally{X.p=y,M!==null&&_.types!==null&&(M.types=_.types),D.T=M}}function RM(){}function zm(n,a,s,d){if(n.tag!==5)throw Error(r(476));var g=jy(n).queue;By(n,g,a,V,s===null?RM:function(){return _y(n),s(d)})}function jy(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:V},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:s},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function _y(n){var a=jy(n);a.next===null&&(a=n.alternate.memoizedState),rl(n,a.next.queue,{},Eo())}function Am(){return qn(Sl)}function Hy(){return Rn().memoizedState}function Dy(){return Rn().memoizedState}function MM(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var s=Eo();n=ra(s);var d=aa(a,n,s);d!==null&&(mo(d,a,s),Js(d,a,s)),a={cache:sm()},n.payload=a;return}a=a.return}}function TM(n,a,s){var d=Eo();s={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Zc(n)?Vy(a,s):(s=Kf(n,a,s,d),s!==null&&(mo(s,n,d),Fy(s,a,d)))}function Ly(n,a,s){var d=Eo();rl(n,a,s,d)}function rl(n,a,s,d){var g={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Zc(n))Vy(a,g);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var M=a.lastRenderedState,_=y(M,s);if(g.hasEagerState=!0,g.eagerState=_,vo(_,M))return Ac(n,a,g,0),fn===null&&zc(),!1}catch{}if(s=Kf(n,a,g,d),s!==null)return mo(s,n,d),Fy(s,a,d),!0}return!1}function Im(n,a,s,d){if(d={lane:2,revertLane:dp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Zc(n)){if(a)throw Error(r(479))}else a=Kf(n,s,d,2),a!==null&&mo(a,n,2)}function Zc(n){var a=n.alternate;return n===bt||a!==null&&a===bt}function Vy(n,a){Pi=Wc=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function Fy(n,a,s){if((s&4194048)!==0){var d=a.lanes;d&=n.pendingLanes,s|=d,a.lanes=s,Se(n,s)}}var al={readContext:qn,use:kc,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useLayoutEffect:Sn,useInsertionEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useSyncExternalStore:Sn,useId:Sn,useHostTransitionStatus:Sn,useFormState:Sn,useActionState:Sn,useOptimistic:Sn,useMemoCache:Sn,useCacheRefresh:Sn};al.useEffectEvent=Sn;var qy={readContext:qn,use:kc,useCallback:function(n,a){return Jn().memoizedState=[n,a===void 0?null:a],n},useContext:qn,useEffect:Ny,useImperativeHandle:function(n,a,s){s=s!=null?s.concat([n]):null,Kc(4194308,4,Oy.bind(null,a,n),s)},useLayoutEffect:function(n,a){return Kc(4194308,4,n,a)},useInsertionEffect:function(n,a){Kc(4,2,n,a)},useMemo:function(n,a){var s=Jn();a=a===void 0?null:a;var d=n();if(Xa){he(!0);try{n()}finally{he(!1)}}return s.memoizedState=[d,a],d},useReducer:function(n,a,s){var d=Jn();if(s!==void 0){var g=s(a);if(Xa){he(!0);try{s(a)}finally{he(!1)}}}else g=a;return d.memoizedState=d.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},d.queue=n,n=n.dispatch=TM.bind(null,bt,n),[d.memoizedState,n]},useRef:function(n){var a=Jn();return n={current:n},a.memoizedState=n},useState:function(n){n=Nm(n);var a=n.queue,s=Ly.bind(null,bt,a);return a.dispatch=s,[n.memoizedState,s]},useDebugValue:Tm,useDeferredValue:function(n,a){var s=Jn();return Om(s,n,a)},useTransition:function(){var n=Nm(!1);return n=By.bind(null,bt,n.queue,!0,!1),Jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,s){var d=bt,g=Jn();if(jt){if(s===void 0)throw Error(r(407));s=s()}else{if(s=a(),fn===null)throw Error(r(349));(zt&127)!==0||uy(d,a,s)}g.memoizedState=s;var y={value:s,getSnapshot:a};return g.queue=y,Ny(fy.bind(null,d,y,n),[n]),d.flags|=2048,ji(9,{destroy:void 0},dy.bind(null,d,y,s,a),null),s},useId:function(){var n=Jn(),a=fn.identifierPrefix;if(jt){var s=ir,d=ar;s=(d&~(1<<32-Te(d)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Gc++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=CM++,a="_"+a+"r_"+s.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Am,useFormState:Sy,useActionState:Sy,useOptimistic:function(n){var a=Jn();a.memoizedState=a.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=Im.bind(null,bt,!0,s),s.dispatch=a,[n,a]},useMemoCache:$m,useCacheRefresh:function(){return Jn().memoizedState=MM.bind(null,bt)},useEffectEvent:function(n){var a=Jn(),s={impl:n};return a.memoizedState=s,function(){if((kt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Pm={readContext:qn,use:kc,useCallback:Ay,useContext:qn,useEffect:Mm,useImperativeHandle:zy,useInsertionEffect:My,useLayoutEffect:Ty,useMemo:Iy,useReducer:Yc,useRef:wy,useState:function(){return Yc(wr)},useDebugValue:Tm,useDeferredValue:function(n,a){var s=Rn();return Py(s,rn.memoizedState,n,a)},useTransition:function(){var n=Yc(wr)[0],a=Rn().memoizedState;return[typeof n=="boolean"?n:ol(n),a]},useSyncExternalStore:cy,useId:Hy,useHostTransitionStatus:Am,useFormState:Cy,useActionState:Cy,useOptimistic:function(n,a){var s=Rn();return gy(s,rn,n,a)},useMemoCache:$m,useCacheRefresh:Dy};Pm.useEffectEvent=Ry;var Uy={readContext:qn,use:kc,useCallback:Ay,useContext:qn,useEffect:Mm,useImperativeHandle:zy,useInsertionEffect:My,useLayoutEffect:Ty,useMemo:Iy,useReducer:wm,useRef:wy,useState:function(){return wm(wr)},useDebugValue:Tm,useDeferredValue:function(n,a){var s=Rn();return rn===null?Om(s,n,a):Py(s,rn.memoizedState,n,a)},useTransition:function(){var n=wm(wr)[0],a=Rn().memoizedState;return[typeof n=="boolean"?n:ol(n),a]},useSyncExternalStore:cy,useId:Hy,useHostTransitionStatus:Am,useFormState:Ey,useActionState:Ey,useOptimistic:function(n,a){var s=Rn();return rn!==null?gy(s,rn,n,a):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:$m,useCacheRefresh:Dy};Uy.useEffectEvent=Ry;function Bm(n,a,s,d){a=n.memoizedState,s=s(d,a),s=s==null?a:b({},a,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var jm={enqueueSetState:function(n,a,s){n=n._reactInternals;var d=Eo(),g=ra(d);g.payload=a,s!=null&&(g.callback=s),a=aa(n,g,d),a!==null&&(mo(a,n,d),Js(a,n,d))},enqueueReplaceState:function(n,a,s){n=n._reactInternals;var d=Eo(),g=ra(d);g.tag=1,g.payload=a,s!=null&&(g.callback=s),a=aa(n,g,d),a!==null&&(mo(a,n,d),Js(a,n,d))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var s=Eo(),d=ra(s);d.tag=2,a!=null&&(d.callback=a),a=aa(n,d,s),a!==null&&(mo(a,n,s),Js(a,n,s))}};function Wy(n,a,s,d,g,y,M){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,y,M):a.prototype&&a.prototype.isPureReactComponent?!Ws(s,d)||!Ws(g,y):!0}function Gy(n,a,s,d){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,d),a.state!==n&&jm.enqueueReplaceState(a,a.state,null)}function ka(n,a){var s=a;if("ref"in a){s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}if(n=n.defaultProps){s===a&&(s=b({},s));for(var g in n)s[g]===void 0&&(s[g]=n[g])}return s}function Xy(n){Oc(n)}function ky(n){console.error(n)}function Yy(n){Oc(n)}function Jc(n,a){try{var s=n.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function Ky(n,a,s){try{var d=n.onCaughtError;d(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function _m(n,a,s){return s=ra(s),s.tag=3,s.payload={element:null},s.callback=function(){Jc(n,a)},s}function Qy(n){return n=ra(n),n.tag=3,n}function Zy(n,a,s,d){var g=s.type.getDerivedStateFromError;if(typeof g=="function"){var y=d.value;n.payload=function(){return g(y)},n.callback=function(){Ky(a,s,d)}}var M=s.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(n.callback=function(){Ky(a,s,d),typeof g!="function"&&(da===null?da=new Set([this]):da.add(this));var _=d.stack;this.componentDidCatch(d.value,{componentStack:_!==null?_:""})})}function OM(n,a,s,d,g){if(s.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=s.alternate,a!==null&&Mi(a,s,g,!0),s=xo.current,s!==null){switch(s.tag){case 31:case 13:return Do===null?du():s.alternate===null&&Cn===0&&(Cn=3),s.flags&=-257,s.flags|=65536,s.lanes=g,d===Lc?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([d]):a.add(d),lp(n,d,g)),!1;case 22:return s.flags|=65536,d===Lc?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([d]):s.add(d)),lp(n,d,g)),!1}throw Error(r(435,s.tag))}return lp(n,d,g),du(),!1}if(jt)return a=xo.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,d!==nm&&(n=Error(r(422),{cause:d}),ks(Bo(n,s)))):(d!==nm&&(a=Error(r(423),{cause:d}),ks(Bo(a,s))),n=n.current.alternate,n.flags|=65536,g&=-g,n.lanes|=g,d=Bo(d,s),g=_m(n.stateNode,d,g),mm(n,g),Cn!==4&&(Cn=2)),!1;var y=Error(r(520),{cause:d});if(y=Bo(y,s),ml===null?ml=[y]:ml.push(y),Cn!==4&&(Cn=2),a===null)return!0;d=Bo(d,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,n=g&-g,s.lanes|=n,n=_m(s.stateNode,d,n),mm(s,n),!1;case 1:if(a=s.type,y=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(da===null||!da.has(y))))return s.flags|=65536,g&=-g,s.lanes|=g,g=Qy(g),Zy(g,n,s,d),mm(s,g),!1}s=s.return}while(s!==null);return!1}var Hm=Error(r(461)),An=!1;function Un(n,a,s,d){a.child=n===null?ny(a,null,s,d):Ga(a,n.child,s,d)}function Jy(n,a,s,d,g){s=s.render;var y=a.ref;if("ref"in d){var M={};for(var _ in d)_!=="ref"&&(M[_]=d[_])}else M=d;return Fa(a),d=ym(n,a,s,M,y,g),_=xm(),n!==null&&!An?(Sm(n,a,g),Nr(n,a,g)):(jt&&_&&em(a),a.flags|=1,Un(n,a,d,g),a.child)}function ex(n,a,s,d,g){if(n===null){var y=s.type;return typeof y=="function"&&!Qf(y)&&y.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=y,tx(n,a,y,d,g)):(n=Pc(s.type,null,d,a,a.mode,g),n.ref=a.ref,n.return=a,a.child=n)}if(y=n.child,!Gm(n,g)){var M=y.memoizedProps;if(s=s.compare,s=s!==null?s:Ws,s(M,d)&&n.ref===a.ref)return Nr(n,a,g)}return a.flags|=1,n=xr(y,d),n.ref=a.ref,n.return=a,a.child=n}function tx(n,a,s,d,g){if(n!==null){var y=n.memoizedProps;if(Ws(y,d)&&n.ref===a.ref)if(An=!1,a.pendingProps=d=y,Gm(n,g))(n.flags&131072)!==0&&(An=!0);else return a.lanes=n.lanes,Nr(n,a,g)}return Dm(n,a,s,d,g)}function nx(n,a,s,d){var g=d.children,y=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(y=y!==null?y.baseLanes|s:s,n!==null){for(d=a.child=n.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;d=g&~y}else d=0,a.child=null;return ox(n,a,y,s,d)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Hc(a,y!==null?y.cachePool:null),y!==null?ay(a,y):gm(),iy(a);else return d=a.lanes=536870912,ox(n,a,y!==null?y.baseLanes|s:s,s,d)}else y!==null?(Hc(a,y.cachePool),ay(a,y),sa(),a.memoizedState=null):(n!==null&&Hc(a,null),gm(),sa());return Un(n,a,g,s),a.child}function il(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function ox(n,a,s,d,g){var y=cm();return y=y===null?null:{parent:On._currentValue,pool:y},a.memoizedState={baseLanes:s,cachePool:y},n!==null&&Hc(a,null),gm(),iy(a),n!==null&&Mi(n,a,d,!0),a.childLanes=g,null}function eu(n,a){return a=nu({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function rx(n,a,s){return Ga(a,n.child,null,s),n=eu(a,a.pendingProps),n.flags|=2,So(a),a.memoizedState=null,n}function zM(n,a,s){var d=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(jt){if(d.mode==="hidden")return n=eu(a,d),a.lanes=536870912,il(null,n);if(bm(a),(n=hn)?(n=h1(n,Ho),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Jr!==null?{id:ar,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},s=Vv(n),s.return=a,a.child=s,Fn=a,hn=null)):n=null,n===null)throw ta(a);return a.lanes=536870912,null}return eu(a,d)}var y=n.memoizedState;if(y!==null){var M=y.dehydrated;if(bm(a),g)if(a.flags&256)a.flags&=-257,a=rx(n,a,s);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(r(558));else if(An||Mi(n,a,s,!1),g=(s&n.childLanes)!==0,An||g){if(d=fn,d!==null&&(M=He(d,s),M!==0&&M!==y.retryLane))throw y.retryLane=M,Ha(n,M),mo(d,n,M),Hm;du(),a=rx(n,a,s)}else n=y.treeContext,hn=Lo(M.nextSibling),Fn=a,jt=!0,ea=null,Ho=!1,n!==null&&Uv(a,n),a=eu(a,d),a.flags|=4096;return a}return n=xr(n.child,{mode:d.mode,children:d.children}),n.ref=a.ref,a.child=n,n.return=a,n}function tu(n,a){var s=a.ref;if(s===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(n===null||n.ref!==s)&&(a.flags|=4194816)}}function Dm(n,a,s,d,g){return Fa(a),s=ym(n,a,s,d,void 0,g),d=xm(),n!==null&&!An?(Sm(n,a,g),Nr(n,a,g)):(jt&&d&&em(a),a.flags|=1,Un(n,a,s,g),a.child)}function ax(n,a,s,d,g,y){return Fa(a),a.updateQueue=null,s=ly(a,d,s,g),sy(n),d=xm(),n!==null&&!An?(Sm(n,a,y),Nr(n,a,y)):(jt&&d&&em(a),a.flags|=1,Un(n,a,s,y),a.child)}function ix(n,a,s,d,g){if(Fa(a),a.stateNode===null){var y=Ei,M=s.contextType;typeof M=="object"&&M!==null&&(y=qn(M)),y=new s(d,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=jm,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=d,y.state=a.memoizedState,y.refs={},dm(a),M=s.contextType,y.context=typeof M=="object"&&M!==null?qn(M):Ei,y.state=a.memoizedState,M=s.getDerivedStateFromProps,typeof M=="function"&&(Bm(a,s,M,d),y.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(M=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),M!==y.state&&jm.enqueueReplaceState(y,y.state,null),tl(a,d,y,g),el(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(n===null){y=a.stateNode;var _=a.memoizedProps,ee=ka(s,_);y.props=ee;var fe=y.context,$e=s.contextType;M=Ei,typeof $e=="object"&&$e!==null&&(M=qn($e));var Me=s.getDerivedStateFromProps;$e=typeof Me=="function"||typeof y.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,$e||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(_||fe!==M)&&Gy(a,y,d,M),oa=!1;var pe=a.memoizedState;y.state=pe,tl(a,d,y,g),el(),fe=a.memoizedState,_||pe!==fe||oa?(typeof Me=="function"&&(Bm(a,s,Me,d),fe=a.memoizedState),(ee=oa||Wy(a,s,ee,d,pe,fe,M))?($e||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=fe),y.props=d,y.state=fe,y.context=M,d=ee):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{y=a.stateNode,fm(n,a),M=a.memoizedProps,$e=ka(s,M),y.props=$e,Me=a.pendingProps,pe=y.context,fe=s.contextType,ee=Ei,typeof fe=="object"&&fe!==null&&(ee=qn(fe)),_=s.getDerivedStateFromProps,(fe=typeof _=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(M!==Me||pe!==ee)&&Gy(a,y,d,ee),oa=!1,pe=a.memoizedState,y.state=pe,tl(a,d,y,g),el();var xe=a.memoizedState;M!==Me||pe!==xe||oa||n!==null&&n.dependencies!==null&&jc(n.dependencies)?(typeof _=="function"&&(Bm(a,s,_,d),xe=a.memoizedState),($e=oa||Wy(a,s,$e,d,pe,xe,ee)||n!==null&&n.dependencies!==null&&jc(n.dependencies))?(fe||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,xe,ee),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,xe,ee)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=xe),y.props=d,y.state=xe,y.context=ee,d=$e):(typeof y.componentDidUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&pe===n.memoizedState||(a.flags|=1024),d=!1)}return y=d,tu(n,a),d=(a.flags&128)!==0,y||d?(y=a.stateNode,s=d&&typeof s.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,n!==null&&d?(a.child=Ga(a,n.child,null,g),a.child=Ga(a,null,s,g)):Un(n,a,s,g),a.memoizedState=y.state,n=a.child):n=Nr(n,a,g),n}function sx(n,a,s,d){return La(),a.flags|=256,Un(n,a,s,d),a.child}var Lm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vm(n){return{baseLanes:n,cachePool:Kv()}}function Fm(n,a,s){return n=n!==null?n.childLanes&~s:0,a&&(n|=$o),n}function lx(n,a,s){var d=a.pendingProps,g=!1,y=(a.flags&128)!==0,M;if((M=y)||(M=n!==null&&n.memoizedState===null?!1:(Nn.current&2)!==0),M&&(g=!0,a.flags&=-129),M=(a.flags&32)!==0,a.flags&=-33,n===null){if(jt){if(g?ia(a):sa(),(n=hn)?(n=h1(n,Ho),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Jr!==null?{id:ar,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},s=Vv(n),s.return=a,a.child=s,Fn=a,hn=null)):n=null,n===null)throw ta(a);return Ep(n)?a.lanes=32:a.lanes=536870912,null}var _=d.children;return d=d.fallback,g?(sa(),g=a.mode,_=nu({mode:"hidden",children:_},g),d=Da(d,g,s,null),_.return=a,d.return=a,_.sibling=d,a.child=_,d=a.child,d.memoizedState=Vm(s),d.childLanes=Fm(n,M,s),a.memoizedState=Lm,il(null,d)):(ia(a),qm(a,_))}var ee=n.memoizedState;if(ee!==null&&(_=ee.dehydrated,_!==null)){if(y)a.flags&256?(ia(a),a.flags&=-257,a=Um(n,a,s)):a.memoizedState!==null?(sa(),a.child=n.child,a.flags|=128,a=null):(sa(),_=d.fallback,g=a.mode,d=nu({mode:"visible",children:d.children},g),_=Da(_,g,s,null),_.flags|=2,d.return=a,_.return=a,d.sibling=_,a.child=d,Ga(a,n.child,null,s),d=a.child,d.memoizedState=Vm(s),d.childLanes=Fm(n,M,s),a.memoizedState=Lm,a=il(null,d));else if(ia(a),Ep(_)){if(M=_.nextSibling&&_.nextSibling.dataset,M)var fe=M.dgst;M=fe,d=Error(r(419)),d.stack="",d.digest=M,ks({value:d,source:null,stack:null}),a=Um(n,a,s)}else if(An||Mi(n,a,s,!1),M=(s&n.childLanes)!==0,An||M){if(M=fn,M!==null&&(d=He(M,s),d!==0&&d!==ee.retryLane))throw ee.retryLane=d,Ha(n,d),mo(M,n,d),Hm;$p(_)||du(),a=Um(n,a,s)}else $p(_)?(a.flags|=192,a.child=n.child,a=null):(n=ee.treeContext,hn=Lo(_.nextSibling),Fn=a,jt=!0,ea=null,Ho=!1,n!==null&&Uv(a,n),a=qm(a,d.children),a.flags|=4096);return a}return g?(sa(),_=d.fallback,g=a.mode,ee=n.child,fe=ee.sibling,d=xr(ee,{mode:"hidden",children:d.children}),d.subtreeFlags=ee.subtreeFlags&65011712,fe!==null?_=xr(fe,_):(_=Da(_,g,s,null),_.flags|=2),_.return=a,d.return=a,d.sibling=_,a.child=d,il(null,d),d=a.child,_=n.child.memoizedState,_===null?_=Vm(s):(g=_.cachePool,g!==null?(ee=On._currentValue,g=g.parent!==ee?{parent:ee,pool:ee}:g):g=Kv(),_={baseLanes:_.baseLanes|s,cachePool:g}),d.memoizedState=_,d.childLanes=Fm(n,M,s),a.memoizedState=Lm,il(n.child,d)):(ia(a),s=n.child,n=s.sibling,s=xr(s,{mode:"visible",children:d.children}),s.return=a,s.sibling=null,n!==null&&(M=a.deletions,M===null?(a.deletions=[n],a.flags|=16):M.push(n)),a.child=s,a.memoizedState=null,s)}function qm(n,a){return a=nu({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function nu(n,a){return n=yo(22,n,null,a),n.lanes=0,n}function Um(n,a,s){return Ga(a,n.child,null,s),n=qm(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function cx(n,a,s){n.lanes|=a;var d=n.alternate;d!==null&&(d.lanes|=a),am(n.return,a,s)}function Wm(n,a,s,d,g,y){var M=n.memoizedState;M===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:s,tailMode:g,treeForkCount:y}:(M.isBackwards=a,M.rendering=null,M.renderingStartTime=0,M.last=d,M.tail=s,M.tailMode=g,M.treeForkCount=y)}function ux(n,a,s){var d=a.pendingProps,g=d.revealOrder,y=d.tail;d=d.children;var M=Nn.current,_=(M&2)!==0;if(_?(M=M&1|2,a.flags|=128):M&=1,k(Nn,M),Un(n,a,d,s),d=jt?Xs:0,!_&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&cx(n,s,a);else if(n.tag===19)cx(n,s,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(g){case"forwards":for(s=a.child,g=null;s!==null;)n=s.alternate,n!==null&&Uc(n)===null&&(g=s),s=s.sibling;s=g,s===null?(g=a.child,a.child=null):(g=s.sibling,s.sibling=null),Wm(a,!1,g,s,y,d);break;case"backwards":case"unstable_legacy-backwards":for(s=null,g=a.child,a.child=null;g!==null;){if(n=g.alternate,n!==null&&Uc(n)===null){a.child=g;break}n=g.sibling,g.sibling=s,s=g,g=n}Wm(a,!0,s,null,y,d);break;case"together":Wm(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function Nr(n,a,s){if(n!==null&&(a.dependencies=n.dependencies),ua|=a.lanes,(s&a.childLanes)===0)if(n!==null){if(Mi(n,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,s=xr(n,n.pendingProps),a.child=s,s.return=a;n.sibling!==null;)n=n.sibling,s=s.sibling=xr(n,n.pendingProps),s.return=a;s.sibling=null}return a.child}function Gm(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&jc(n)))}function AM(n,a,s){switch(a.tag){case 3:ie(a,a.stateNode.containerInfo),na(a,On,n.memoizedState.cache),La();break;case 27:case 5:ae(a);break;case 4:ie(a,a.stateNode.containerInfo);break;case 10:na(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,bm(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(ia(a),a.flags|=128,null):(s&a.child.childLanes)!==0?lx(n,a,s):(ia(a),n=Nr(n,a,s),n!==null?n.sibling:null);ia(a);break;case 19:var g=(n.flags&128)!==0;if(d=(s&a.childLanes)!==0,d||(Mi(n,a,s,!1),d=(s&a.childLanes)!==0),g){if(d)return ux(n,a,s);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),k(Nn,Nn.current),d)break;return null;case 22:return a.lanes=0,nx(n,a,s,a.pendingProps);case 24:na(a,On,n.memoizedState.cache)}return Nr(n,a,s)}function dx(n,a,s){if(n!==null)if(n.memoizedProps!==a.pendingProps)An=!0;else{if(!Gm(n,s)&&(a.flags&128)===0)return An=!1,AM(n,a,s);An=(n.flags&131072)!==0}else An=!1,jt&&(a.flags&1048576)!==0&&qv(a,Xs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(n=Ua(a.elementType),a.type=n,typeof n=="function")Qf(n)?(d=ka(n,d),a.tag=1,a=ix(null,a,n,d,s)):(a.tag=0,a=Dm(null,a,n,d,s));else{if(n!=null){var g=n.$$typeof;if(g===w){a.tag=11,a=Jy(null,a,n,d,s);break e}else if(g===A){a.tag=14,a=ex(null,a,n,d,s);break e}}throw a=J(n)||n,Error(r(306,a,""))}}return a;case 0:return Dm(n,a,a.type,a.pendingProps,s);case 1:return d=a.type,g=ka(d,a.pendingProps),ix(n,a,d,g,s);case 3:e:{if(ie(a,a.stateNode.containerInfo),n===null)throw Error(r(387));d=a.pendingProps;var y=a.memoizedState;g=y.element,fm(n,a),tl(a,d,null,s);var M=a.memoizedState;if(d=M.cache,na(a,On,d),d!==y.cache&&im(a,[On],s,!0),el(),d=M.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:M.cache},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){a=sx(n,a,d,s);break e}else if(d!==g){g=Bo(Error(r(424)),a),ks(g),a=sx(n,a,d,s);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,hn=Lo(n.firstChild),Fn=a,jt=!0,ea=null,Ho=!0,s=ny(a,null,d,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(La(),d===g){a=Nr(n,a,s);break e}Un(n,a,d,s)}a=a.child}return a;case 26:return tu(n,a),n===null?(s=C1(a.type,null,a.pendingProps,null))?a.memoizedState=s:jt||(s=a.type,n=a.pendingProps,d=vu(te.current).createElement(s),d[dt]=a,d[Mt]=n,Wn(d,s,n),Ht(d),a.stateNode=d):a.memoizedState=C1(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return ae(a),n===null&&jt&&(d=a.stateNode=y1(a.type,a.pendingProps,te.current),Fn=a,Ho=!0,g=hn,ga(a.type)?(wp=g,hn=Lo(d.firstChild)):hn=g),Un(n,a,a.pendingProps.children,s),tu(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&jt&&((g=d=hn)&&(d=lT(d,a.type,a.pendingProps,Ho),d!==null?(a.stateNode=d,Fn=a,hn=Lo(d.firstChild),Ho=!1,g=!0):g=!1),g||ta(a)),ae(a),g=a.type,y=a.pendingProps,M=n!==null?n.memoizedProps:null,d=y.children,xp(g,y)?d=null:M!==null&&xp(g,M)&&(a.flags|=32),a.memoizedState!==null&&(g=ym(n,a,$M,null,null,s),Sl._currentValue=g),tu(n,a),Un(n,a,d,s),a.child;case 6:return n===null&&jt&&((n=s=hn)&&(s=cT(s,a.pendingProps,Ho),s!==null?(a.stateNode=s,Fn=a,hn=null,n=!0):n=!1),n||ta(a)),null;case 13:return lx(n,a,s);case 4:return ie(a,a.stateNode.containerInfo),d=a.pendingProps,n===null?a.child=Ga(a,null,d,s):Un(n,a,d,s),a.child;case 11:return Jy(n,a,a.type,a.pendingProps,s);case 7:return Un(n,a,a.pendingProps,s),a.child;case 8:return Un(n,a,a.pendingProps.children,s),a.child;case 12:return Un(n,a,a.pendingProps.children,s),a.child;case 10:return d=a.pendingProps,na(a,a.type,d.value),Un(n,a,d.children,s),a.child;case 9:return g=a.type._context,d=a.pendingProps.children,Fa(a),g=qn(g),d=d(g),a.flags|=1,Un(n,a,d,s),a.child;case 14:return ex(n,a,a.type,a.pendingProps,s);case 15:return tx(n,a,a.type,a.pendingProps,s);case 19:return ux(n,a,s);case 31:return zM(n,a,s);case 22:return nx(n,a,s,a.pendingProps);case 24:return Fa(a),d=qn(On),n===null?(g=cm(),g===null&&(g=fn,y=sm(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=s),g=y),a.memoizedState={parent:d,cache:g},dm(a),na(a,On,g)):((n.lanes&s)!==0&&(fm(n,a),tl(a,null,null,s),el()),g=n.memoizedState,y=a.memoizedState,g.parent!==d?(g={parent:d,cache:d},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),na(a,On,d)):(d=y.cache,na(a,On,d),d!==g.cache&&im(a,[On],s,!0))),Un(n,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Rr(n){n.flags|=4}function Xm(n,a,s,d,g){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(g&335544128)===g)if(n.stateNode.complete)n.flags|=8192;else if(Hx())n.flags|=8192;else throw Wa=Lc,um}else n.flags&=-16777217}function fx(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!R1(a))if(Hx())n.flags|=8192;else throw Wa=Lc,um}function ou(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?et():536870912,n.lanes|=a,Li|=a)}function sl(n,a){if(!jt)switch(n.tailMode){case"hidden":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function bn(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=0,d=0;if(a)for(var g=n.child;g!==null;)s|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=n,g=g.sibling;else for(g=n.child;g!==null;)s|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=n,g=g.sibling;return n.subtreeFlags|=d,n.childLanes=s,a}function IM(n,a,s){var d=a.pendingProps;switch(tm(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bn(a),null;case 1:return bn(a),null;case 3:return s=a.stateNode,d=null,n!==null&&(d=n.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),$r(On),se(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Ri(a)?Rr(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,om())),bn(a),null;case 26:var g=a.type,y=a.memoizedState;return n===null?(Rr(a),y!==null?(bn(a),fx(a,y)):(bn(a),Xm(a,g,null,d,s))):y?y!==n.memoizedState?(Rr(a),bn(a),fx(a,y)):(bn(a),a.flags&=-16777217):(n=n.memoizedProps,n!==d&&Rr(a),bn(a),Xm(a,g,n,d,s)),null;case 27:if(me(a),s=te.current,g=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==d&&Rr(a);else{if(!d){if(a.stateNode===null)throw Error(r(166));return bn(a),null}n=G.current,Ri(a)?Wv(a):(n=y1(g,d,s),a.stateNode=n,Rr(a))}return bn(a),null;case 5:if(me(a),g=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==d&&Rr(a);else{if(!d){if(a.stateNode===null)throw Error(r(166));return bn(a),null}if(y=G.current,Ri(a))Wv(a);else{var M=vu(te.current);switch(y){case 1:y=M.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:y=M.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":y=M.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":y=M.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":y=M.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof d.is=="string"?M.createElement("select",{is:d.is}):M.createElement("select"),d.multiple?y.multiple=!0:d.size&&(y.size=d.size);break;default:y=typeof d.is=="string"?M.createElement(g,{is:d.is}):M.createElement(g)}}y[dt]=a,y[Mt]=d;e:for(M=a.child;M!==null;){if(M.tag===5||M.tag===6)y.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===a)break e;for(;M.sibling===null;){if(M.return===null||M.return===a)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}a.stateNode=y;e:switch(Wn(y,g,d),g){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Rr(a)}}return bn(a),Xm(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,s),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==d&&Rr(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(r(166));if(n=te.current,Ri(a)){if(n=a.stateNode,s=a.memoizedProps,d=null,g=Fn,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}n[dt]=a,n=!!(n.nodeValue===s||d!==null&&d.suppressHydrationWarning===!0||l1(n.nodeValue,s)),n||ta(a,!0)}else n=vu(n).createTextNode(d),n[dt]=a,a.stateNode=n}return bn(a),null;case 31:if(s=a.memoizedState,n===null||n.memoizedState!==null){if(d=Ri(a),s!==null){if(n===null){if(!d)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[dt]=a}else La(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),n=!1}else s=om(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return a.flags&256?(So(a),a):(So(a),null);if((a.flags&128)!==0)throw Error(r(558))}return bn(a),null;case 13:if(d=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=Ri(a),d!==null&&d.dehydrated!==null){if(n===null){if(!g)throw Error(r(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[dt]=a}else La(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),g=!1}else g=om(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(So(a),a):(So(a),null)}return So(a),(a.flags&128)!==0?(a.lanes=s,a):(s=d!==null,n=n!==null&&n.memoizedState!==null,s&&(d=a.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),y=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==g&&(d.flags|=2048)),s!==n&&s&&(a.child.flags|=8192),ou(a,a.updateQueue),bn(a),null);case 4:return se(),n===null&&gp(a.stateNode.containerInfo),bn(a),null;case 10:return $r(a.type),bn(a),null;case 19:if(F(Nn),d=a.memoizedState,d===null)return bn(a),null;if(g=(a.flags&128)!==0,y=d.rendering,y===null)if(g)sl(d,!1);else{if(Cn!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(y=Uc(n),y!==null){for(a.flags|=128,sl(d,!1),n=y.updateQueue,a.updateQueue=n,ou(a,n),a.subtreeFlags=0,n=s,s=a.child;s!==null;)Lv(s,n),s=s.sibling;return k(Nn,Nn.current&1|2),jt&&Sr(a,d.treeForkCount),a.child}n=n.sibling}d.tail!==null&&je()>lu&&(a.flags|=128,g=!0,sl(d,!1),a.lanes=4194304)}else{if(!g)if(n=Uc(y),n!==null){if(a.flags|=128,g=!0,n=n.updateQueue,a.updateQueue=n,ou(a,n),sl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!jt)return bn(a),null}else 2*je()-d.renderingStartTime>lu&&s!==536870912&&(a.flags|=128,g=!0,sl(d,!1),a.lanes=4194304);d.isBackwards?(y.sibling=a.child,a.child=y):(n=d.last,n!==null?n.sibling=y:a.child=y,d.last=y)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=je(),n.sibling=null,s=Nn.current,k(Nn,g?s&1|2:s&1),jt&&Sr(a,d.treeForkCount),n):(bn(a),null);case 22:case 23:return So(a),hm(),d=a.memoizedState!==null,n!==null?n.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(s&536870912)!==0&&(a.flags&128)===0&&(bn(a),a.subtreeFlags&6&&(a.flags|=8192)):bn(a),s=a.updateQueue,s!==null&&ou(a,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==s&&(a.flags|=2048),n!==null&&F(qa),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),$r(On),bn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function PM(n,a){switch(tm(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return $r(On),se(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return me(a),null;case 31:if(a.memoizedState!==null){if(So(a),a.alternate===null)throw Error(r(340));La()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(So(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));La()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return F(Nn),null;case 4:return se(),null;case 10:return $r(a.type),null;case 22:case 23:return So(a),hm(),n!==null&&F(qa),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return $r(On),null;case 25:return null;default:return null}}function mx(n,a){switch(tm(a),a.tag){case 3:$r(On),se();break;case 26:case 27:case 5:me(a);break;case 4:se();break;case 31:a.memoizedState!==null&&So(a);break;case 13:So(a);break;case 19:F(Nn);break;case 10:$r(a.type);break;case 22:case 23:So(a),hm(),n!==null&&F(qa);break;case 24:$r(On)}}function ll(n,a){try{var s=a.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var g=d.next;s=g;do{if((s.tag&n)===n){d=void 0;var y=s.create,M=s.inst;d=y(),M.destroy=d}s=s.next}while(s!==g)}}catch(_){nn(a,a.return,_)}}function la(n,a,s){try{var d=a.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var y=g.next;d=y;do{if((d.tag&n)===n){var M=d.inst,_=M.destroy;if(_!==void 0){M.destroy=void 0,g=a;var ee=s,fe=_;try{fe()}catch($e){nn(g,ee,$e)}}}d=d.next}while(d!==y)}}catch($e){nn(a,a.return,$e)}}function px(n){var a=n.updateQueue;if(a!==null){var s=n.stateNode;try{ry(a,s)}catch(d){nn(n,n.return,d)}}}function gx(n,a,s){s.props=ka(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(d){nn(n,a,d)}}function cl(n,a){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var d=n.stateNode;break;case 30:d=n.stateNode;break;default:d=n.stateNode}typeof s=="function"?n.refCleanup=s(d):s.current=d}}catch(g){nn(n,a,g)}}function sr(n,a){var s=n.ref,d=n.refCleanup;if(s!==null)if(typeof d=="function")try{d()}catch(g){nn(n,a,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(g){nn(n,a,g)}else s.current=null}function hx(n){var a=n.type,s=n.memoizedProps,d=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&d.focus();break e;case"img":s.src?d.src=s.src:s.srcSet&&(d.srcset=s.srcSet)}}catch(g){nn(n,n.return,g)}}function km(n,a,s){try{var d=n.stateNode;nT(d,n.type,s,a),d[Mt]=a}catch(g){nn(n,n.return,g)}}function bx(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ga(n.type)||n.tag===4}function Ym(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||bx(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ga(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Km(n,a,s){var d=n.tag;if(d===5||d===6)n=n.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(n),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=vr));else if(d!==4&&(d===27&&ga(n.type)&&(s=n.stateNode,a=null),n=n.child,n!==null))for(Km(n,a,s),n=n.sibling;n!==null;)Km(n,a,s),n=n.sibling}function ru(n,a,s){var d=n.tag;if(d===5||d===6)n=n.stateNode,a?s.insertBefore(n,a):s.appendChild(n);else if(d!==4&&(d===27&&ga(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(ru(n,a,s),n=n.sibling;n!==null;)ru(n,a,s),n=n.sibling}function vx(n){var a=n.stateNode,s=n.memoizedProps;try{for(var d=n.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);Wn(a,d,s),a[dt]=n,a[Mt]=s}catch(y){nn(n,n.return,y)}}var Mr=!1,In=!1,Qm=!1,yx=typeof WeakSet=="function"?WeakSet:Set,Ln=null;function BM(n,a){if(n=n.containerInfo,vp=wu,n=zv(n),Uf(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var d=s.getSelection&&s.getSelection();if(d&&d.rangeCount!==0){s=d.anchorNode;var g=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var M=0,_=-1,ee=-1,fe=0,$e=0,Me=n,pe=null;t:for(;;){for(var xe;Me!==s||g!==0&&Me.nodeType!==3||(_=M+g),Me!==y||d!==0&&Me.nodeType!==3||(ee=M+d),Me.nodeType===3&&(M+=Me.nodeValue.length),(xe=Me.firstChild)!==null;)pe=Me,Me=xe;for(;;){if(Me===n)break t;if(pe===s&&++fe===g&&(_=M),pe===y&&++$e===d&&(ee=M),(xe=Me.nextSibling)!==null)break;Me=pe,pe=Me.parentNode}Me=xe}s=_===-1||ee===-1?null:{start:_,end:ee}}else s=null}s=s||{start:0,end:0}}else s=null;for(yp={focusedElem:n,selectionRange:s},wu=!1,Ln=a;Ln!==null;)if(a=Ln,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Ln=n;else for(;Ln!==null;){switch(a=Ln,y=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)g=n[s],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,s=a,g=y.memoizedProps,y=y.memoizedState,d=s.stateNode;try{var Ze=ka(s.type,g);n=d.getSnapshotBeforeUpdate(Ze,y),d.__reactInternalSnapshotBeforeUpdate=n}catch(lt){nn(s,s.return,lt)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,s=n.nodeType,s===9)Cp(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Cp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,Ln=n;break}Ln=a.return}}function xx(n,a,s){var d=s.flags;switch(s.tag){case 0:case 11:case 15:Or(n,s),d&4&&ll(5,s);break;case 1:if(Or(n,s),d&4)if(n=s.stateNode,a===null)try{n.componentDidMount()}catch(M){nn(s,s.return,M)}else{var g=ka(s.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(g,a,n.__reactInternalSnapshotBeforeUpdate)}catch(M){nn(s,s.return,M)}}d&64&&px(s),d&512&&cl(s,s.return);break;case 3:if(Or(n,s),d&64&&(n=s.updateQueue,n!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{ry(n,a)}catch(M){nn(s,s.return,M)}}break;case 27:a===null&&d&4&&vx(s);case 26:case 5:Or(n,s),a===null&&d&4&&hx(s),d&512&&cl(s,s.return);break;case 12:Or(n,s);break;case 31:Or(n,s),d&4&&$x(n,s);break;case 13:Or(n,s),d&4&&Ex(n,s),d&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=UM.bind(null,s),uT(n,s))));break;case 22:if(d=s.memoizedState!==null||Mr,!d){a=a!==null&&a.memoizedState!==null||In,g=Mr;var y=In;Mr=d,(In=a)&&!y?zr(n,s,(s.subtreeFlags&8772)!==0):Or(n,s),Mr=g,In=y}break;case 30:break;default:Or(n,s)}}function Sx(n){var a=n.alternate;a!==null&&(n.alternate=null,Sx(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&_t(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var yn=null,lo=!1;function Tr(n,a,s){for(s=s.child;s!==null;)Cx(n,a,s),s=s.sibling}function Cx(n,a,s){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(We,s)}catch{}switch(s.tag){case 26:In||sr(s,a),Tr(n,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:In||sr(s,a);var d=yn,g=lo;ga(s.type)&&(yn=s.stateNode,lo=!1),Tr(n,a,s),vl(s.stateNode),yn=d,lo=g;break;case 5:In||sr(s,a);case 6:if(d=yn,g=lo,yn=null,Tr(n,a,s),yn=d,lo=g,yn!==null)if(lo)try{(yn.nodeType===9?yn.body:yn.nodeName==="HTML"?yn.ownerDocument.body:yn).removeChild(s.stateNode)}catch(y){nn(s,a,y)}else try{yn.removeChild(s.stateNode)}catch(y){nn(s,a,y)}break;case 18:yn!==null&&(lo?(n=yn,p1(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),ki(n)):p1(yn,s.stateNode));break;case 4:d=yn,g=lo,yn=s.stateNode.containerInfo,lo=!0,Tr(n,a,s),yn=d,lo=g;break;case 0:case 11:case 14:case 15:la(2,s,a),In||la(4,s,a),Tr(n,a,s);break;case 1:In||(sr(s,a),d=s.stateNode,typeof d.componentWillUnmount=="function"&&gx(s,a,d)),Tr(n,a,s);break;case 21:Tr(n,a,s);break;case 22:In=(d=In)||s.memoizedState!==null,Tr(n,a,s),In=d;break;default:Tr(n,a,s)}}function $x(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ki(n)}catch(s){nn(a,a.return,s)}}}function Ex(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ki(n)}catch(s){nn(a,a.return,s)}}function jM(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new yx),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new yx),a;default:throw Error(r(435,n.tag))}}function au(n,a){var s=jM(n);a.forEach(function(d){if(!s.has(d)){s.add(d);var g=WM.bind(null,n,d);d.then(g,g)}})}function co(n,a){var s=a.deletions;if(s!==null)for(var d=0;d<s.length;d++){var g=s[d],y=n,M=a,_=M;e:for(;_!==null;){switch(_.tag){case 27:if(ga(_.type)){yn=_.stateNode,lo=!1;break e}break;case 5:yn=_.stateNode,lo=!1;break e;case 3:case 4:yn=_.stateNode.containerInfo,lo=!0;break e}_=_.return}if(yn===null)throw Error(r(160));Cx(y,M,g),yn=null,lo=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)wx(a,n),a=a.sibling}var Qo=null;function wx(n,a){var s=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:co(a,n),uo(n),d&4&&(la(3,n,n.return),ll(3,n),la(5,n,n.return));break;case 1:co(a,n),uo(n),d&512&&(In||s===null||sr(s,s.return)),d&64&&Mr&&(n=n.updateQueue,n!==null&&(d=n.callbacks,d!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?d:s.concat(d))));break;case 26:var g=Qo;if(co(a,n),uo(n),d&512&&(In||s===null||sr(s,s.return)),d&4){var y=s!==null?s.memoizedState:null;if(d=n.memoizedState,s===null)if(d===null)if(n.stateNode===null){e:{d=n.type,s=n.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":y=g.getElementsByTagName("title")[0],(!y||y[it]||y[dt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(d),g.head.insertBefore(y,g.querySelector("head > title"))),Wn(y,d,s),y[dt]=n,Ht(y),d=y;break e;case"link":var M=w1("link","href",g).get(d+(s.href||""));if(M){for(var _=0;_<M.length;_++)if(y=M[_],y.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){M.splice(_,1);break t}}y=g.createElement(d),Wn(y,d,s),g.head.appendChild(y);break;case"meta":if(M=w1("meta","content",g).get(d+(s.content||""))){for(_=0;_<M.length;_++)if(y=M[_],y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){M.splice(_,1);break t}}y=g.createElement(d),Wn(y,d,s),g.head.appendChild(y);break;default:throw Error(r(468,d))}y[dt]=n,Ht(y),d=y}n.stateNode=d}else N1(g,n.type,n.stateNode);else n.stateNode=E1(g,d,n.memoizedProps);else y!==d?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,d===null?N1(g,n.type,n.stateNode):E1(g,d,n.memoizedProps)):d===null&&n.stateNode!==null&&km(n,n.memoizedProps,s.memoizedProps)}break;case 27:co(a,n),uo(n),d&512&&(In||s===null||sr(s,s.return)),s!==null&&d&4&&km(n,n.memoizedProps,s.memoizedProps);break;case 5:if(co(a,n),uo(n),d&512&&(In||s===null||sr(s,s.return)),n.flags&32){g=n.stateNode;try{Qr(g,"")}catch(Ze){nn(n,n.return,Ze)}}d&4&&n.stateNode!=null&&(g=n.memoizedProps,km(n,g,s!==null?s.memoizedProps:g)),d&1024&&(Qm=!0);break;case 6:if(co(a,n),uo(n),d&4){if(n.stateNode===null)throw Error(r(162));d=n.memoizedProps,s=n.stateNode;try{s.nodeValue=d}catch(Ze){nn(n,n.return,Ze)}}break;case 3:if(Su=null,g=Qo,Qo=yu(a.containerInfo),co(a,n),Qo=g,uo(n),d&4&&s!==null&&s.memoizedState.isDehydrated)try{ki(a.containerInfo)}catch(Ze){nn(n,n.return,Ze)}Qm&&(Qm=!1,Nx(n));break;case 4:d=Qo,Qo=yu(n.stateNode.containerInfo),co(a,n),uo(n),Qo=d;break;case 12:co(a,n),uo(n);break;case 31:co(a,n),uo(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,au(n,d)));break;case 13:co(a,n),uo(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(su=je()),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,au(n,d)));break;case 22:g=n.memoizedState!==null;var ee=s!==null&&s.memoizedState!==null,fe=Mr,$e=In;if(Mr=fe||g,In=$e||ee,co(a,n),In=$e,Mr=fe,uo(n),d&8192)e:for(a=n.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(s===null||ee||Mr||In||Ya(n)),s=null,a=n;;){if(a.tag===5||a.tag===26){if(s===null){ee=s=a;try{if(y=ee.stateNode,g)M=y.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{_=ee.stateNode;var Me=ee.memoizedProps.style,pe=Me!=null&&Me.hasOwnProperty("display")?Me.display:null;_.style.display=pe==null||typeof pe=="boolean"?"":(""+pe).trim()}}catch(Ze){nn(ee,ee.return,Ze)}}}else if(a.tag===6){if(s===null){ee=a;try{ee.stateNode.nodeValue=g?"":ee.memoizedProps}catch(Ze){nn(ee,ee.return,Ze)}}}else if(a.tag===18){if(s===null){ee=a;try{var xe=ee.stateNode;g?g1(xe,!0):g1(ee.stateNode,!1)}catch(Ze){nn(ee,ee.return,Ze)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=n.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,au(n,s))));break;case 19:co(a,n),uo(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,au(n,d)));break;case 30:break;case 21:break;default:co(a,n),uo(n)}}function uo(n){var a=n.flags;if(a&2){try{for(var s,d=n.return;d!==null;){if(bx(d)){s=d;break}d=d.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var g=s.stateNode,y=Ym(n);ru(n,y,g);break;case 5:var M=s.stateNode;s.flags&32&&(Qr(M,""),s.flags&=-33);var _=Ym(n);ru(n,_,M);break;case 3:case 4:var ee=s.stateNode.containerInfo,fe=Ym(n);Km(n,fe,ee);break;default:throw Error(r(161))}}catch($e){nn(n,n.return,$e)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Nx(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Nx(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Or(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)xx(n,a.alternate,a),a=a.sibling}function Ya(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:la(4,a,a.return),Ya(a);break;case 1:sr(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&gx(a,a.return,s),Ya(a);break;case 27:vl(a.stateNode);case 26:case 5:sr(a,a.return),Ya(a);break;case 22:a.memoizedState===null&&Ya(a);break;case 30:Ya(a);break;default:Ya(a)}n=n.sibling}}function zr(n,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,g=n,y=a,M=y.flags;switch(y.tag){case 0:case 11:case 15:zr(g,y,s),ll(4,y);break;case 1:if(zr(g,y,s),d=y,g=d.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(fe){nn(d,d.return,fe)}if(d=y,g=d.updateQueue,g!==null){var _=d.stateNode;try{var ee=g.shared.hiddenCallbacks;if(ee!==null)for(g.shared.hiddenCallbacks=null,g=0;g<ee.length;g++)oy(ee[g],_)}catch(fe){nn(d,d.return,fe)}}s&&M&64&&px(y),cl(y,y.return);break;case 27:vx(y);case 26:case 5:zr(g,y,s),s&&d===null&&M&4&&hx(y),cl(y,y.return);break;case 12:zr(g,y,s);break;case 31:zr(g,y,s),s&&M&4&&$x(g,y);break;case 13:zr(g,y,s),s&&M&4&&Ex(g,y);break;case 22:y.memoizedState===null&&zr(g,y,s),cl(y,y.return);break;case 30:break;default:zr(g,y,s)}a=a.sibling}}function Zm(n,a){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Ys(s))}function Jm(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ys(n))}function Zo(n,a,s,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Rx(n,a,s,d),a=a.sibling}function Rx(n,a,s,d){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Zo(n,a,s,d),g&2048&&ll(9,a);break;case 1:Zo(n,a,s,d);break;case 3:Zo(n,a,s,d),g&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ys(n)));break;case 12:if(g&2048){Zo(n,a,s,d),n=a.stateNode;try{var y=a.memoizedProps,M=y.id,_=y.onPostCommit;typeof _=="function"&&_(M,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(ee){nn(a,a.return,ee)}}else Zo(n,a,s,d);break;case 31:Zo(n,a,s,d);break;case 13:Zo(n,a,s,d);break;case 23:break;case 22:y=a.stateNode,M=a.alternate,a.memoizedState!==null?y._visibility&2?Zo(n,a,s,d):ul(n,a):y._visibility&2?Zo(n,a,s,d):(y._visibility|=2,_i(n,a,s,d,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Zm(M,a);break;case 24:Zo(n,a,s,d),g&2048&&Jm(a.alternate,a);break;default:Zo(n,a,s,d)}}function _i(n,a,s,d,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var y=n,M=a,_=s,ee=d,fe=M.flags;switch(M.tag){case 0:case 11:case 15:_i(y,M,_,ee,g),ll(8,M);break;case 23:break;case 22:var $e=M.stateNode;M.memoizedState!==null?$e._visibility&2?_i(y,M,_,ee,g):ul(y,M):($e._visibility|=2,_i(y,M,_,ee,g)),g&&fe&2048&&Zm(M.alternate,M);break;case 24:_i(y,M,_,ee,g),g&&fe&2048&&Jm(M.alternate,M);break;default:_i(y,M,_,ee,g)}a=a.sibling}}function ul(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=n,d=a,g=d.flags;switch(d.tag){case 22:ul(s,d),g&2048&&Zm(d.alternate,d);break;case 24:ul(s,d),g&2048&&Jm(d.alternate,d);break;default:ul(s,d)}a=a.sibling}}var dl=8192;function Hi(n,a,s){if(n.subtreeFlags&dl)for(n=n.child;n!==null;)Mx(n,a,s),n=n.sibling}function Mx(n,a,s){switch(n.tag){case 26:Hi(n,a,s),n.flags&dl&&n.memoizedState!==null&&CT(s,Qo,n.memoizedState,n.memoizedProps);break;case 5:Hi(n,a,s);break;case 3:case 4:var d=Qo;Qo=yu(n.stateNode.containerInfo),Hi(n,a,s),Qo=d;break;case 22:n.memoizedState===null&&(d=n.alternate,d!==null&&d.memoizedState!==null?(d=dl,dl=16777216,Hi(n,a,s),dl=d):Hi(n,a,s));break;default:Hi(n,a,s)}}function Tx(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function fl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var d=a[s];Ln=d,zx(d,n)}Tx(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ox(n),n=n.sibling}function Ox(n){switch(n.tag){case 0:case 11:case 15:fl(n),n.flags&2048&&la(9,n,n.return);break;case 3:fl(n);break;case 12:fl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,iu(n)):fl(n);break;default:fl(n)}}function iu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var d=a[s];Ln=d,zx(d,n)}Tx(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:la(8,a,a.return),iu(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,iu(a));break;default:iu(a)}n=n.sibling}}function zx(n,a){for(;Ln!==null;){var s=Ln;switch(s.tag){case 0:case 11:case 15:la(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var d=s.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Ys(s.memoizedState.cache)}if(d=s.child,d!==null)d.return=s,Ln=d;else e:for(s=n;Ln!==null;){d=Ln;var g=d.sibling,y=d.return;if(Sx(d),d===s){Ln=null;break e}if(g!==null){g.return=y,Ln=g;break e}Ln=y}}}var _M={getCacheForType:function(n){var a=qn(On),s=a.data.get(n);return s===void 0&&(s=n(),a.data.set(n,s)),s},cacheSignal:function(){return qn(On).controller.signal}},HM=typeof WeakMap=="function"?WeakMap:Map,kt=0,fn=null,Tt=null,zt=0,tn=0,Co=null,ca=!1,Di=!1,ep=!1,Ar=0,Cn=0,ua=0,Ka=0,tp=0,$o=0,Li=0,ml=null,fo=null,np=!1,su=0,Ax=0,lu=1/0,cu=null,da=null,jn=0,fa=null,Vi=null,Ir=0,op=0,rp=null,Ix=null,pl=0,ap=null;function Eo(){return(kt&2)!==0&&zt!==0?zt&-zt:D.T!==null?dp():ct()}function Px(){if($o===0)if((zt&536870912)===0||jt){var n=ut;ut<<=1,(ut&3932160)===0&&(ut=262144),$o=n}else $o=536870912;return n=xo.current,n!==null&&(n.flags|=32),$o}function mo(n,a,s){(n===fn&&(tn===2||tn===9)||n.cancelPendingCommit!==null)&&(Fi(n,0),ma(n,zt,$o,!1)),Ve(n,s),((kt&2)===0||n!==fn)&&(n===fn&&((kt&2)===0&&(Ka|=s),Cn===4&&ma(n,zt,$o,!1)),lr(n))}function Bx(n,a,s){if((kt&6)!==0)throw Error(r(327));var d=!s&&(a&127)===0&&(a&n.expiredLanes)===0||vt(n,a),g=d?VM(n,a):sp(n,a,!0),y=d;do{if(g===0){Di&&!d&&ma(n,a,0,!1);break}else{if(s=n.current.alternate,y&&!DM(s)){g=sp(n,a,!1),y=!1;continue}if(g===2){if(y=a,n.errorRecoveryDisabledLanes&y)var M=0;else M=n.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){a=M;e:{var _=n;g=ml;var ee=_.current.memoizedState.isDehydrated;if(ee&&(Fi(_,M).flags|=256),M=sp(_,M,!1),M!==2){if(ep&&!ee){_.errorRecoveryDisabledLanes|=y,Ka|=y,g=4;break e}y=fo,fo=g,y!==null&&(fo===null?fo=y:fo.push.apply(fo,y))}g=M}if(y=!1,g!==2)continue}}if(g===1){Fi(n,0),ma(n,a,0,!0);break}e:{switch(d=n,y=g,y){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ma(d,a,$o,!ca);break e;case 2:fo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(g=su+300-je(),10<g)){if(ma(d,a,$o,!ca),Nt(d,0,!0)!==0)break e;Ir=a,d.timeoutHandle=f1(jx.bind(null,d,s,fo,cu,np,a,$o,Ka,Li,ca,y,"Throttled",-0,0),g);break e}jx(d,s,fo,cu,np,a,$o,Ka,Li,ca,y,null,-0,0)}}break}while(!0);lr(n)}function jx(n,a,s,d,g,y,M,_,ee,fe,$e,Me,pe,xe){if(n.timeoutHandle=-1,Me=a.subtreeFlags,Me&8192||(Me&16785408)===16785408){Me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vr},Mx(a,y,Me);var Ze=(y&62914560)===y?su-je():(y&4194048)===y?Ax-je():0;if(Ze=$T(Me,Ze),Ze!==null){Ir=y,n.cancelPendingCommit=Ze(Ux.bind(null,n,a,y,s,d,g,M,_,ee,$e,Me,null,pe,xe)),ma(n,y,M,!fe);return}}Ux(n,a,y,s,d,g,M,_,ee)}function DM(n){for(var a=n;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var d=0;d<s.length;d++){var g=s[d],y=g.getSnapshot;g=g.value;try{if(!vo(y(),g))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ma(n,a,s,d){a&=~tp,a&=~Ka,n.suspendedLanes|=a,n.pingedLanes&=~a,d&&(n.warmLanes|=a),d=n.expirationTimes;for(var g=a;0<g;){var y=31-Te(g),M=1<<y;d[y]=-1,g&=~M}s!==0&&Ae(n,s,a)}function uu(){return(kt&6)===0?(gl(0),!1):!0}function ip(){if(Tt!==null){if(tn===0)var n=Tt.return;else n=Tt,Cr=Va=null,Cm(n),Ai=null,Qs=0,n=Tt;for(;n!==null;)mx(n.alternate,n),n=n.return;Tt=null}}function Fi(n,a){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,aT(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Ir=0,ip(),fn=n,Tt=s=xr(n.current,null),zt=a,tn=0,Co=null,ca=!1,Di=vt(n,a),ep=!1,Li=$o=tp=Ka=ua=Cn=0,fo=ml=null,np=!1,(a&8)!==0&&(a|=a&32);var d=n.entangledLanes;if(d!==0)for(n=n.entanglements,d&=a;0<d;){var g=31-Te(d),y=1<<g;a|=n[g],d&=~y}return Ar=a,zc(),s}function _x(n,a){bt=null,D.H=al,a===zi||a===Dc?(a=Jv(),tn=3):a===um?(a=Jv(),tn=4):tn=a===Hm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Co=a,Tt===null&&(Cn=1,Jc(n,Bo(a,n.current)))}function Hx(){var n=xo.current;return n===null?!0:(zt&4194048)===zt?Do===null:(zt&62914560)===zt||(zt&536870912)!==0?n===Do:!1}function Dx(){var n=D.H;return D.H=al,n===null?al:n}function Lx(){var n=D.A;return D.A=_M,n}function du(){Cn=4,ca||(zt&4194048)!==zt&&xo.current!==null||(Di=!0),(ua&134217727)===0&&(Ka&134217727)===0||fn===null||ma(fn,zt,$o,!1)}function sp(n,a,s){var d=kt;kt|=2;var g=Dx(),y=Lx();(fn!==n||zt!==a)&&(cu=null,Fi(n,a)),a=!1;var M=Cn;e:do try{if(tn!==0&&Tt!==null){var _=Tt,ee=Co;switch(tn){case 8:ip(),M=6;break e;case 3:case 2:case 9:case 6:xo.current===null&&(a=!0);var fe=tn;if(tn=0,Co=null,qi(n,_,ee,fe),s&&Di){M=0;break e}break;default:fe=tn,tn=0,Co=null,qi(n,_,ee,fe)}}LM(),M=Cn;break}catch($e){_x(n,$e)}while(!0);return a&&n.shellSuspendCounter++,Cr=Va=null,kt=d,D.H=g,D.A=y,Tt===null&&(fn=null,zt=0,zc()),M}function LM(){for(;Tt!==null;)Vx(Tt)}function VM(n,a){var s=kt;kt|=2;var d=Dx(),g=Lx();fn!==n||zt!==a?(cu=null,lu=je()+500,Fi(n,a)):Di=vt(n,a);e:do try{if(tn!==0&&Tt!==null){a=Tt;var y=Co;t:switch(tn){case 1:tn=0,Co=null,qi(n,a,y,1);break;case 2:case 9:if(Qv(y)){tn=0,Co=null,Fx(a);break}a=function(){tn!==2&&tn!==9||fn!==n||(tn=7),lr(n)},y.then(a,a);break e;case 3:tn=7;break e;case 4:tn=5;break e;case 7:Qv(y)?(tn=0,Co=null,Fx(a)):(tn=0,Co=null,qi(n,a,y,7));break;case 5:var M=null;switch(Tt.tag){case 26:M=Tt.memoizedState;case 5:case 27:var _=Tt;if(M?R1(M):_.stateNode.complete){tn=0,Co=null;var ee=_.sibling;if(ee!==null)Tt=ee;else{var fe=_.return;fe!==null?(Tt=fe,fu(fe)):Tt=null}break t}}tn=0,Co=null,qi(n,a,y,5);break;case 6:tn=0,Co=null,qi(n,a,y,6);break;case 8:ip(),Cn=6;break e;default:throw Error(r(462))}}FM();break}catch($e){_x(n,$e)}while(!0);return Cr=Va=null,D.H=d,D.A=g,kt=s,Tt!==null?0:(fn=null,zt=0,zc(),Cn)}function FM(){for(;Tt!==null&&!Ie();)Vx(Tt)}function Vx(n){var a=dx(n.alternate,n,Ar);n.memoizedProps=n.pendingProps,a===null?fu(n):Tt=a}function Fx(n){var a=n,s=a.alternate;switch(a.tag){case 15:case 0:a=ax(s,a,a.pendingProps,a.type,void 0,zt);break;case 11:a=ax(s,a,a.pendingProps,a.type.render,a.ref,zt);break;case 5:Cm(a);default:mx(s,a),a=Tt=Lv(a,Ar),a=dx(s,a,Ar)}n.memoizedProps=n.pendingProps,a===null?fu(n):Tt=a}function qi(n,a,s,d){Cr=Va=null,Cm(a),Ai=null,Qs=0;var g=a.return;try{if(OM(n,g,a,s,zt)){Cn=1,Jc(n,Bo(s,n.current)),Tt=null;return}}catch(y){if(g!==null)throw Tt=g,y;Cn=1,Jc(n,Bo(s,n.current)),Tt=null;return}a.flags&32768?(jt||d===1?n=!0:Di||(zt&536870912)!==0?n=!1:(ca=n=!0,(d===2||d===9||d===3||d===6)&&(d=xo.current,d!==null&&d.tag===13&&(d.flags|=16384))),qx(a,n)):fu(a)}function fu(n){var a=n;do{if((a.flags&32768)!==0){qx(a,ca);return}n=a.return;var s=IM(a.alternate,a,Ar);if(s!==null){Tt=s;return}if(a=a.sibling,a!==null){Tt=a;return}Tt=a=n}while(a!==null);Cn===0&&(Cn=5)}function qx(n,a){do{var s=PM(n.alternate,n);if(s!==null){s.flags&=32767,Tt=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(n=n.sibling,n!==null)){Tt=n;return}Tt=n=s}while(n!==null);Cn=6,Tt=null}function Ux(n,a,s,d,g,y,M,_,ee){n.cancelPendingCommit=null;do mu();while(jn!==0);if((kt&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(y=a.lanes|a.childLanes,y|=Yf,Re(n,s,y,M,_,ee),n===fn&&(Tt=fn=null,zt=0),Vi=a,fa=n,Ir=s,op=y,rp=g,Ix=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,GM(qe,function(){return Yx(),null})):(n.callbackNode=null,n.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=D.T,D.T=null,g=X.p,X.p=2,M=kt,kt|=4;try{BM(n,a,s)}finally{kt=M,X.p=g,D.T=d}}jn=1,Wx(),Gx(),Xx()}}function Wx(){if(jn===1){jn=0;var n=fa,a=Vi,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=D.T,D.T=null;var d=X.p;X.p=2;var g=kt;kt|=4;try{wx(a,n);var y=yp,M=zv(n.containerInfo),_=y.focusedElem,ee=y.selectionRange;if(M!==_&&_&&_.ownerDocument&&Ov(_.ownerDocument.documentElement,_)){if(ee!==null&&Uf(_)){var fe=ee.start,$e=ee.end;if($e===void 0&&($e=fe),"selectionStart"in _)_.selectionStart=fe,_.selectionEnd=Math.min($e,_.value.length);else{var Me=_.ownerDocument||document,pe=Me&&Me.defaultView||window;if(pe.getSelection){var xe=pe.getSelection(),Ze=_.textContent.length,lt=Math.min(ee.start,Ze),sn=ee.end===void 0?lt:Math.min(ee.end,Ze);!xe.extend&&lt>sn&&(M=sn,sn=lt,lt=M);var le=Tv(_,lt),oe=Tv(_,sn);if(le&&oe&&(xe.rangeCount!==1||xe.anchorNode!==le.node||xe.anchorOffset!==le.offset||xe.focusNode!==oe.node||xe.focusOffset!==oe.offset)){var de=Me.createRange();de.setStart(le.node,le.offset),xe.removeAllRanges(),lt>sn?(xe.addRange(de),xe.extend(oe.node,oe.offset)):(de.setEnd(oe.node,oe.offset),xe.addRange(de))}}}}for(Me=[],xe=_;xe=xe.parentNode;)xe.nodeType===1&&Me.push({element:xe,left:xe.scrollLeft,top:xe.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<Me.length;_++){var Ne=Me[_];Ne.element.scrollLeft=Ne.left,Ne.element.scrollTop=Ne.top}}wu=!!vp,yp=vp=null}finally{kt=g,X.p=d,D.T=s}}n.current=a,jn=2}}function Gx(){if(jn===2){jn=0;var n=fa,a=Vi,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=D.T,D.T=null;var d=X.p;X.p=2;var g=kt;kt|=4;try{xx(n,a.alternate,a)}finally{kt=g,X.p=d,D.T=s}}jn=3}}function Xx(){if(jn===4||jn===3){jn=0,Oe();var n=fa,a=Vi,s=Ir,d=Ix;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?jn=5:(jn=0,Vi=fa=null,kx(n,n.pendingLanes));var g=n.pendingLanes;if(g===0&&(da=null),Ke(s),a=a.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(We,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=D.T,g=X.p,X.p=2,D.T=null;try{for(var y=n.onRecoverableError,M=0;M<d.length;M++){var _=d[M];y(_.value,{componentStack:_.stack})}}finally{D.T=a,X.p=g}}(Ir&3)!==0&&mu(),lr(n),g=n.pendingLanes,(s&261930)!==0&&(g&42)!==0?n===ap?pl++:(pl=0,ap=n):pl=0,gl(0)}}function kx(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Ys(a)))}function mu(){return Wx(),Gx(),Xx(),Yx()}function Yx(){if(jn!==5)return!1;var n=fa,a=op;op=0;var s=Ke(Ir),d=D.T,g=X.p;try{X.p=32>s?32:s,D.T=null,s=rp,rp=null;var y=fa,M=Ir;if(jn=0,Vi=fa=null,Ir=0,(kt&6)!==0)throw Error(r(331));var _=kt;if(kt|=4,Ox(y.current),Rx(y,y.current,M,s),kt=_,gl(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(We,y)}catch{}return!0}finally{X.p=g,D.T=d,kx(n,a)}}function Kx(n,a,s){a=Bo(s,a),a=_m(n.stateNode,a,2),n=aa(n,a,2),n!==null&&(Ve(n,2),lr(n))}function nn(n,a,s){if(n.tag===3)Kx(n,n,s);else for(;a!==null;){if(a.tag===3){Kx(a,n,s);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(da===null||!da.has(d))){n=Bo(s,n),s=Qy(2),d=aa(a,s,2),d!==null&&(Zy(s,d,a,n),Ve(d,2),lr(d));break}}a=a.return}}function lp(n,a,s){var d=n.pingCache;if(d===null){d=n.pingCache=new HM;var g=new Set;d.set(a,g)}else g=d.get(a),g===void 0&&(g=new Set,d.set(a,g));g.has(s)||(ep=!0,g.add(s),n=qM.bind(null,n,a,s),a.then(n,n))}function qM(n,a,s){var d=n.pingCache;d!==null&&d.delete(a),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,fn===n&&(zt&s)===s&&(Cn===4||Cn===3&&(zt&62914560)===zt&&300>je()-su?(kt&2)===0&&Fi(n,0):tp|=s,Li===zt&&(Li=0)),lr(n)}function Qx(n,a){a===0&&(a=et()),n=Ha(n,a),n!==null&&(Ve(n,a),lr(n))}function UM(n){var a=n.memoizedState,s=0;a!==null&&(s=a.retryLane),Qx(n,s)}function WM(n,a){var s=0;switch(n.tag){case 31:case 13:var d=n.stateNode,g=n.memoizedState;g!==null&&(s=g.retryLane);break;case 19:d=n.stateNode;break;case 22:d=n.stateNode._retryCache;break;default:throw Error(r(314))}d!==null&&d.delete(a),Qx(n,s)}function GM(n,a){return ze(n,a)}var pu=null,Ui=null,cp=!1,gu=!1,up=!1,pa=0;function lr(n){n!==Ui&&n.next===null&&(Ui===null?pu=Ui=n:Ui=Ui.next=n),gu=!0,cp||(cp=!0,kM())}function gl(n,a){if(!up&&gu){up=!0;do for(var s=!1,d=pu;d!==null;){if(n!==0){var g=d.pendingLanes;if(g===0)var y=0;else{var M=d.suspendedLanes,_=d.pingedLanes;y=(1<<31-Te(42|n)+1)-1,y&=g&~(M&~_),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(s=!0,t1(d,y))}else y=zt,y=Nt(d,d===fn?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||vt(d,y)||(s=!0,t1(d,y));d=d.next}while(s);up=!1}}function XM(){Zx()}function Zx(){gu=cp=!1;var n=0;pa!==0&&rT()&&(n=pa);for(var a=je(),s=null,d=pu;d!==null;){var g=d.next,y=Jx(d,a);y===0?(d.next=null,s===null?pu=g:s.next=g,g===null&&(Ui=s)):(s=d,(n!==0||(y&3)!==0)&&(gu=!0)),d=g}jn!==0&&jn!==5||gl(n),pa!==0&&(pa=0)}function Jx(n,a){for(var s=n.suspendedLanes,d=n.pingedLanes,g=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var M=31-Te(y),_=1<<M,ee=g[M];ee===-1?((_&s)===0||(_&d)!==0)&&(g[M]=Pt(_,a)):ee<=a&&(n.expiredLanes|=_),y&=~_}if(a=fn,s=zt,s=Nt(n,n===a?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d=n.callbackNode,s===0||n===a&&(tn===2||tn===9)||n.cancelPendingCommit!==null)return d!==null&&d!==null&&we(d),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||vt(n,s)){if(a=s&-s,a===n.callbackPriority)return a;switch(d!==null&&we(d),Ke(s)){case 2:case 8:s=De;break;case 32:s=qe;break;case 268435456:s=Ue;break;default:s=qe}return d=e1.bind(null,n),s=ze(s,d),n.callbackPriority=a,n.callbackNode=s,a}return d!==null&&d!==null&&we(d),n.callbackPriority=2,n.callbackNode=null,2}function e1(n,a){if(jn!==0&&jn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(mu()&&n.callbackNode!==s)return null;var d=zt;return d=Nt(n,n===fn?d:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d===0?null:(Bx(n,d,a),Jx(n,je()),n.callbackNode!=null&&n.callbackNode===s?e1.bind(null,n):null)}function t1(n,a){if(mu())return null;Bx(n,a,!0)}function kM(){iT(function(){(kt&6)!==0?ze(Ye,XM):Zx()})}function dp(){if(pa===0){var n=Ti;n===0&&(n=Qe,Qe<<=1,(Qe&261888)===0&&(Qe=256)),pa=n}return pa}function n1(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:$c(""+n)}function o1(n,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,n.id&&s.setAttribute("form",n.id),a.parentNode.insertBefore(s,a),n=new FormData(n),s.parentNode.removeChild(s),n}function YM(n,a,s,d,g){if(a==="submit"&&s&&s.stateNode===g){var y=n1((g[Mt]||null).action),M=d.submitter;M&&(a=(a=M[Mt]||null)?n1(a.formAction):M.getAttribute("formAction"),a!==null&&(y=a,M=null));var _=new Rc("action","action",null,d,g);n.push({event:_,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(pa!==0){var ee=M?o1(g,M):new FormData(g);zm(s,{pending:!0,data:ee,method:g.method,action:y},null,ee)}}else typeof y=="function"&&(_.preventDefault(),ee=M?o1(g,M):new FormData(g),zm(s,{pending:!0,data:ee,method:g.method,action:y},y,ee))},currentTarget:g}]})}}for(var fp=0;fp<kf.length;fp++){var mp=kf[fp],KM=mp.toLowerCase(),QM=mp[0].toUpperCase()+mp.slice(1);Ko(KM,"on"+QM)}Ko(Pv,"onAnimationEnd"),Ko(Bv,"onAnimationIteration"),Ko(jv,"onAnimationStart"),Ko("dblclick","onDoubleClick"),Ko("focusin","onFocus"),Ko("focusout","onBlur"),Ko(mM,"onTransitionRun"),Ko(pM,"onTransitionStart"),Ko(gM,"onTransitionCancel"),Ko(_v,"onTransitionEnd"),ao("onMouseEnter",["mouseout","mouseover"]),ao("onMouseLeave",["mouseout","mouseover"]),ao("onPointerEnter",["pointerout","pointerover"]),ao("onPointerLeave",["pointerout","pointerover"]),Bn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hl="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(" "),ZM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hl));function r1(n,a){a=(a&4)!==0;for(var s=0;s<n.length;s++){var d=n[s],g=d.event;d=d.listeners;e:{var y=void 0;if(a)for(var M=d.length-1;0<=M;M--){var _=d[M],ee=_.instance,fe=_.currentTarget;if(_=_.listener,ee!==y&&g.isPropagationStopped())break e;y=_,g.currentTarget=fe;try{y(g)}catch($e){Oc($e)}g.currentTarget=null,y=ee}else for(M=0;M<d.length;M++){if(_=d[M],ee=_.instance,fe=_.currentTarget,_=_.listener,ee!==y&&g.isPropagationStopped())break e;y=_,g.currentTarget=fe;try{y(g)}catch($e){Oc($e)}g.currentTarget=null,y=ee}}}}function Ot(n,a){var s=a[st];s===void 0&&(s=a[st]=new Set);var d=n+"__bubble";s.has(d)||(a1(a,n,2,!1),s.add(d))}function pp(n,a,s){var d=0;a&&(d|=4),a1(s,n,d,a)}var hu="_reactListening"+Math.random().toString(36).slice(2);function gp(n){if(!n[hu]){n[hu]=!0,ro.forEach(function(s){s!=="selectionchange"&&(ZM.has(s)||pp(s,!1,n),pp(s,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[hu]||(a[hu]=!0,pp("selectionchange",!1,a))}}function a1(n,a,s,d){switch(P1(a)){case 2:var g=NT;break;case 8:g=RT;break;default:g=Op}s=g.bind(null,a,s,n),g=void 0,!Bf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),d?g!==void 0?n.addEventListener(a,s,{capture:!0,passive:g}):n.addEventListener(a,s,!0):g!==void 0?n.addEventListener(a,s,{passive:g}):n.addEventListener(a,s,!1)}function hp(n,a,s,d,g){var y=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var M=d.tag;if(M===3||M===4){var _=d.stateNode.containerInfo;if(_===g)break;if(M===4)for(M=d.return;M!==null;){var ee=M.tag;if((ee===3||ee===4)&&M.stateNode.containerInfo===g)return;M=M.return}for(;_!==null;){if(M=en(_),M===null)return;if(ee=M.tag,ee===5||ee===6||ee===26||ee===27){d=y=M;continue e}_=_.parentNode}}d=d.return}uv(function(){var fe=y,$e=If(s),Me=[];e:{var pe=Hv.get(n);if(pe!==void 0){var xe=Rc,Ze=n;switch(n){case"keypress":if(wc(s)===0)break e;case"keydown":case"keyup":xe=WR;break;case"focusin":Ze="focus",xe=Df;break;case"focusout":Ze="blur",xe=Df;break;case"beforeblur":case"afterblur":xe=Df;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=mv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=IR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=kR;break;case Pv:case Bv:case jv:xe=jR;break;case _v:xe=KR;break;case"scroll":case"scrollend":xe=zR;break;case"wheel":xe=ZR;break;case"copy":case"cut":case"paste":xe=HR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=gv;break;case"toggle":case"beforetoggle":xe=eM}var lt=(a&4)!==0,sn=!lt&&(n==="scroll"||n==="scrollend"),le=lt?pe!==null?pe+"Capture":null:pe;lt=[];for(var oe=fe,de;oe!==null;){var Ne=oe;if(de=Ne.stateNode,Ne=Ne.tag,Ne!==5&&Ne!==26&&Ne!==27||de===null||le===null||(Ne=Hs(oe,le),Ne!=null&&lt.push(bl(oe,Ne,de))),sn)break;oe=oe.return}0<lt.length&&(pe=new xe(pe,Ze,null,s,$e),Me.push({event:pe,listeners:lt}))}}if((a&7)===0){e:{if(pe=n==="mouseover"||n==="pointerover",xe=n==="mouseout"||n==="pointerout",pe&&s!==Af&&(Ze=s.relatedTarget||s.fromElement)&&(en(Ze)||Ze[on]))break e;if((xe||pe)&&(pe=$e.window===$e?$e:(pe=$e.ownerDocument)?pe.defaultView||pe.parentWindow:window,xe?(Ze=s.relatedTarget||s.toElement,xe=fe,Ze=Ze?en(Ze):null,Ze!==null&&(sn=l(Ze),lt=Ze.tag,Ze!==sn||lt!==5&&lt!==27&&lt!==6)&&(Ze=null)):(xe=null,Ze=fe),xe!==Ze)){if(lt=mv,Ne="onMouseLeave",le="onMouseEnter",oe="mouse",(n==="pointerout"||n==="pointerover")&&(lt=gv,Ne="onPointerLeave",le="onPointerEnter",oe="pointer"),sn=xe==null?pe:Ft(xe),de=Ze==null?pe:Ft(Ze),pe=new lt(Ne,oe+"leave",xe,s,$e),pe.target=sn,pe.relatedTarget=de,Ne=null,en($e)===fe&&(lt=new lt(le,oe+"enter",Ze,s,$e),lt.target=de,lt.relatedTarget=sn,Ne=lt),sn=Ne,xe&&Ze)t:{for(lt=JM,le=xe,oe=Ze,de=0,Ne=le;Ne;Ne=lt(Ne))de++;Ne=0;for(var at=oe;at;at=lt(at))Ne++;for(;0<de-Ne;)le=lt(le),de--;for(;0<Ne-de;)oe=lt(oe),Ne--;for(;de--;){if(le===oe||oe!==null&&le===oe.alternate){lt=le;break t}le=lt(le),oe=lt(oe)}lt=null}else lt=null;xe!==null&&i1(Me,pe,xe,lt,!1),Ze!==null&&sn!==null&&i1(Me,sn,Ze,lt,!0)}}e:{if(pe=fe?Ft(fe):window,xe=pe.nodeName&&pe.nodeName.toLowerCase(),xe==="select"||xe==="input"&&pe.type==="file")var qt=$v;else if(Sv(pe))if(Ev)qt=uM;else{qt=lM;var tt=sM}else xe=pe.nodeName,!xe||xe.toLowerCase()!=="input"||pe.type!=="checkbox"&&pe.type!=="radio"?fe&&zf(fe.elementType)&&(qt=$v):qt=cM;if(qt&&(qt=qt(n,fe))){Cv(Me,qt,s,$e);break e}tt&&tt(n,pe,fe),n==="focusout"&&fe&&pe.type==="number"&&fe.memoizedProps.value!=null&&Yr(pe,"number",pe.value)}switch(tt=fe?Ft(fe):window,n){case"focusin":(Sv(tt)||tt.contentEditable==="true")&&(Si=tt,Wf=fe,Gs=null);break;case"focusout":Gs=Wf=Si=null;break;case"mousedown":Gf=!0;break;case"contextmenu":case"mouseup":case"dragend":Gf=!1,Av(Me,s,$e);break;case"selectionchange":if(fM)break;case"keydown":case"keyup":Av(Me,s,$e)}var yt;if(Vf)e:{switch(n){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else xi?yv(n,s)&&(At="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(At="onCompositionStart");At&&(hv&&s.locale!=="ko"&&(xi||At!=="onCompositionStart"?At==="onCompositionEnd"&&xi&&(yt=dv()):(Zr=$e,jf="value"in Zr?Zr.value:Zr.textContent,xi=!0)),tt=bu(fe,At),0<tt.length&&(At=new pv(At,n,null,s,$e),Me.push({event:At,listeners:tt}),yt?At.data=yt:(yt=xv(s),yt!==null&&(At.data=yt)))),(yt=nM?oM(n,s):rM(n,s))&&(At=bu(fe,"onBeforeInput"),0<At.length&&(tt=new pv("onBeforeInput","beforeinput",null,s,$e),Me.push({event:tt,listeners:At}),tt.data=yt)),YM(Me,n,fe,s,$e)}r1(Me,a)})}function bl(n,a,s){return{instance:n,listener:a,currentTarget:s}}function bu(n,a){for(var s=a+"Capture",d=[];n!==null;){var g=n,y=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=Hs(n,s),g!=null&&d.unshift(bl(n,g,y)),g=Hs(n,a),g!=null&&d.push(bl(n,g,y))),n.tag===3)return d;n=n.return}return[]}function JM(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function i1(n,a,s,d,g){for(var y=a._reactName,M=[];s!==null&&s!==d;){var _=s,ee=_.alternate,fe=_.stateNode;if(_=_.tag,ee!==null&&ee===d)break;_!==5&&_!==26&&_!==27||fe===null||(ee=fe,g?(fe=Hs(s,y),fe!=null&&M.unshift(bl(s,fe,ee))):g||(fe=Hs(s,y),fe!=null&&M.push(bl(s,fe,ee)))),s=s.return}M.length!==0&&n.push({event:a,listeners:M})}var eT=/\r\n?/g,tT=/\u0000|\uFFFD/g;function s1(n){return(typeof n=="string"?n:""+n).replace(eT,`
36
+ `).replace(tT,"")}function l1(n,a){return a=s1(a),s1(n)===a}function an(n,a,s,d,g,y){switch(s){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||Qr(n,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&Qr(n,""+d);break;case"className":wn(n,"class",d);break;case"tabIndex":wn(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":wn(n,s,d);break;case"style":lv(n,d,y);break;case"data":if(a!=="object"){wn(n,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||s!=="href")){n.removeAttribute(s);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(s);break}d=$c(""+d),n.setAttribute(s,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(s,"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 y=="function"&&(s==="formAction"?(a!=="input"&&an(n,a,"name",g.name,g,null),an(n,a,"formEncType",g.formEncType,g,null),an(n,a,"formMethod",g.formMethod,g,null),an(n,a,"formTarget",g.formTarget,g,null)):(an(n,a,"encType",g.encType,g,null),an(n,a,"method",g.method,g,null),an(n,a,"target",g.target,g,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(s);break}d=$c(""+d),n.setAttribute(s,d);break;case"onClick":d!=null&&(n.onclick=vr);break;case"onScroll":d!=null&&Ot("scroll",n);break;case"onScrollEnd":d!=null&&Ot("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(s=d.__html,s!=null){if(g.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}s=$c(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(s,""+d):n.removeAttribute(s);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":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":d===!0?n.setAttribute(s,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(s,d):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(s,d):n.removeAttribute(s);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(s):n.setAttribute(s,d);break;case"popover":Ot("beforetoggle",n),Ot("toggle",n),Mn(n,"popover",d);break;case"xlinkActuate":Zn(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Zn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Zn(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Zn(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Zn(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Zn(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Mn(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=TR.get(s)||s,Mn(n,s,d))}}function bp(n,a,s,d,g,y){switch(s){case"style":lv(n,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(s=d.__html,s!=null){if(g.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"children":typeof d=="string"?Qr(n,d):(typeof d=="number"||typeof d=="bigint")&&Qr(n,""+d);break;case"onScroll":d!=null&&Ot("scroll",n);break;case"onScrollEnd":d!=null&&Ot("scrollend",n);break;case"onClick":d!=null&&(n.onclick=vr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!br.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(g=s.endsWith("Capture"),a=s.slice(2,g?s.length-7:void 0),y=n[Mt]||null,y=y!=null?y[s]:null,typeof y=="function"&&n.removeEventListener(a,y,g),typeof d=="function")){typeof y!="function"&&y!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(a,d,g);break e}s in n?n[s]=d:d===!0?n.setAttribute(s,""):Mn(n,s,d)}}}function Wn(n,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ot("error",n),Ot("load",n);var d=!1,g=!1,y;for(y in s)if(s.hasOwnProperty(y)){var M=s[y];if(M!=null)switch(y){case"src":d=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:an(n,a,y,M,s,null)}}g&&an(n,a,"srcSet",s.srcSet,s,null),d&&an(n,a,"src",s.src,s,null);return;case"input":Ot("invalid",n);var _=y=M=g=null,ee=null,fe=null;for(d in s)if(s.hasOwnProperty(d)){var $e=s[d];if($e!=null)switch(d){case"name":g=$e;break;case"type":M=$e;break;case"checked":ee=$e;break;case"defaultChecked":fe=$e;break;case"value":y=$e;break;case"defaultValue":_=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(r(137,a));break;default:an(n,a,d,$e,s,null)}}Dt(n,y,_,ee,fe,M,g,!1);return;case"select":Ot("invalid",n),d=M=y=null;for(g in s)if(s.hasOwnProperty(g)&&(_=s[g],_!=null))switch(g){case"value":y=_;break;case"defaultValue":M=_;break;case"multiple":d=_;default:an(n,a,g,_,s,null)}a=y,s=M,n.multiple=!!d,a!=null?Kr(n,!!d,a,!1):s!=null&&Kr(n,!!d,s,!0);return;case"textarea":Ot("invalid",n),y=g=d=null;for(M in s)if(s.hasOwnProperty(M)&&(_=s[M],_!=null))switch(M){case"value":d=_;break;case"defaultValue":g=_;break;case"children":y=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:an(n,a,M,_,s,null)}_s(n,d,g,y);return;case"option":for(ee in s)s.hasOwnProperty(ee)&&(d=s[ee],d!=null)&&(ee==="selected"?n.selected=d&&typeof d!="function"&&typeof d!="symbol":an(n,a,ee,d,s,null));return;case"dialog":Ot("beforetoggle",n),Ot("toggle",n),Ot("cancel",n),Ot("close",n);break;case"iframe":case"object":Ot("load",n);break;case"video":case"audio":for(d=0;d<hl.length;d++)Ot(hl[d],n);break;case"image":Ot("error",n),Ot("load",n);break;case"details":Ot("toggle",n);break;case"embed":case"source":case"link":Ot("error",n),Ot("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(fe in s)if(s.hasOwnProperty(fe)&&(d=s[fe],d!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:an(n,a,fe,d,s,null)}return;default:if(zf(a)){for($e in s)s.hasOwnProperty($e)&&(d=s[$e],d!==void 0&&bp(n,a,$e,d,s,void 0));return}}for(_ in s)s.hasOwnProperty(_)&&(d=s[_],d!=null&&an(n,a,_,d,s,null))}function nT(n,a,s,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,M=null,_=null,ee=null,fe=null,$e=null;for(xe in s){var Me=s[xe];if(s.hasOwnProperty(xe)&&Me!=null)switch(xe){case"checked":break;case"value":break;case"defaultValue":ee=Me;default:d.hasOwnProperty(xe)||an(n,a,xe,null,d,Me)}}for(var pe in d){var xe=d[pe];if(Me=s[pe],d.hasOwnProperty(pe)&&(xe!=null||Me!=null))switch(pe){case"type":y=xe;break;case"name":g=xe;break;case"checked":fe=xe;break;case"defaultChecked":$e=xe;break;case"value":M=xe;break;case"defaultValue":_=xe;break;case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(r(137,a));break;default:xe!==Me&&an(n,a,pe,xe,d,Me)}}ke(n,M,_,ee,fe,$e,y,g);return;case"select":xe=M=_=pe=null;for(y in s)if(ee=s[y],s.hasOwnProperty(y)&&ee!=null)switch(y){case"value":break;case"multiple":xe=ee;default:d.hasOwnProperty(y)||an(n,a,y,null,d,ee)}for(g in d)if(y=d[g],ee=s[g],d.hasOwnProperty(g)&&(y!=null||ee!=null))switch(g){case"value":pe=y;break;case"defaultValue":_=y;break;case"multiple":M=y;default:y!==ee&&an(n,a,g,y,d,ee)}a=_,s=M,d=xe,pe!=null?Kr(n,!!s,pe,!1):!!d!=!!s&&(a!=null?Kr(n,!!s,a,!0):Kr(n,!!s,s?[]:"",!1));return;case"textarea":xe=pe=null;for(_ in s)if(g=s[_],s.hasOwnProperty(_)&&g!=null&&!d.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:an(n,a,_,null,d,g)}for(M in d)if(g=d[M],y=s[M],d.hasOwnProperty(M)&&(g!=null||y!=null))switch(M){case"value":pe=g;break;case"defaultValue":xe=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==y&&an(n,a,M,g,d,y)}js(n,pe,xe);return;case"option":for(var Ze in s)pe=s[Ze],s.hasOwnProperty(Ze)&&pe!=null&&!d.hasOwnProperty(Ze)&&(Ze==="selected"?n.selected=!1:an(n,a,Ze,null,d,pe));for(ee in d)pe=d[ee],xe=s[ee],d.hasOwnProperty(ee)&&pe!==xe&&(pe!=null||xe!=null)&&(ee==="selected"?n.selected=pe&&typeof pe!="function"&&typeof pe!="symbol":an(n,a,ee,pe,d,xe));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 lt in s)pe=s[lt],s.hasOwnProperty(lt)&&pe!=null&&!d.hasOwnProperty(lt)&&an(n,a,lt,null,d,pe);for(fe in d)if(pe=d[fe],xe=s[fe],d.hasOwnProperty(fe)&&pe!==xe&&(pe!=null||xe!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,a));break;default:an(n,a,fe,pe,d,xe)}return;default:if(zf(a)){for(var sn in s)pe=s[sn],s.hasOwnProperty(sn)&&pe!==void 0&&!d.hasOwnProperty(sn)&&bp(n,a,sn,void 0,d,pe);for($e in d)pe=d[$e],xe=s[$e],!d.hasOwnProperty($e)||pe===xe||pe===void 0&&xe===void 0||bp(n,a,$e,pe,d,xe);return}}for(var le in s)pe=s[le],s.hasOwnProperty(le)&&pe!=null&&!d.hasOwnProperty(le)&&an(n,a,le,null,d,pe);for(Me in d)pe=d[Me],xe=s[Me],!d.hasOwnProperty(Me)||pe===xe||pe==null&&xe==null||an(n,a,Me,pe,d,xe)}function c1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function oT(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,s=performance.getEntriesByType("resource"),d=0;d<s.length;d++){var g=s[d],y=g.transferSize,M=g.initiatorType,_=g.duration;if(y&&_&&c1(M)){for(M=0,_=g.responseEnd,d+=1;d<s.length;d++){var ee=s[d],fe=ee.startTime;if(fe>_)break;var $e=ee.transferSize,Me=ee.initiatorType;$e&&c1(Me)&&(ee=ee.responseEnd,M+=$e*(ee<_?1:(_-fe)/(ee-fe)))}if(--d,a+=8*(y+M)/(g.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var vp=null,yp=null;function vu(n){return n.nodeType===9?n:n.ownerDocument}function u1(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d1(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function xp(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Sp=null;function rT(){var n=window.event;return n&&n.type==="popstate"?n===Sp?!1:(Sp=n,!0):(Sp=null,!1)}var f1=typeof setTimeout=="function"?setTimeout:void 0,aT=typeof clearTimeout=="function"?clearTimeout:void 0,m1=typeof Promise=="function"?Promise:void 0,iT=typeof queueMicrotask=="function"?queueMicrotask:typeof m1<"u"?function(n){return m1.resolve(null).then(n).catch(sT)}:f1;function sT(n){setTimeout(function(){throw n})}function ga(n){return n==="head"}function p1(n,a){var s=a,d=0;do{var g=s.nextSibling;if(n.removeChild(s),g&&g.nodeType===8)if(s=g.data,s==="/$"||s==="/&"){if(d===0){n.removeChild(g),ki(a);return}d--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")d++;else if(s==="html")vl(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,vl(s);for(var y=s.firstChild;y;){var M=y.nextSibling,_=y.nodeName;y[it]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&y.rel.toLowerCase()==="stylesheet"||s.removeChild(y),y=M}}else s==="body"&&vl(n.ownerDocument.body);s=g}while(s);ki(a)}function g1(n,a){var s=n;n=0;do{var d=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=d}while(s)}function Cp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Cp(s),_t(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function lT(n,a,s,d){for(;n.nodeType===1;){var g=s;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(d){if(!n[it])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==g.rel||n.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||n.getAttribute("title")!==(g.title==null?null:g.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(g.src==null?null:g.src)||n.getAttribute("type")!==(g.type==null?null:g.type)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Lo(n.nextSibling),n===null)break}return null}function cT(n,a,s){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Lo(n.nextSibling),n===null))return null;return n}function h1(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Lo(n.nextSibling),n===null))return null;return n}function $p(n){return n.data==="$?"||n.data==="$~"}function Ep(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function uT(n,a){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||s.readyState!=="loading")a();else{var d=function(){a(),s.removeEventListener("DOMContentLoaded",d)};s.addEventListener("DOMContentLoaded",d),n._reactRetry=d}}function Lo(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var wp=null;function b1(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(a===0)return Lo(n.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}n=n.nextSibling}return null}function v1(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return n;a--}else s!=="/$"&&s!=="/&"||a++}n=n.previousSibling}return null}function y1(n,a,s){switch(a=vu(s),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function vl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);_t(n)}var Vo=new Map,x1=new Set;function yu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Pr=X.d;X.d={f:dT,r:fT,D:mT,C:pT,L:gT,m:hT,X:vT,S:bT,M:yT};function dT(){var n=Pr.f(),a=uu();return n||a}function fT(n){var a=Et(n);a!==null&&a.tag===5&&a.type==="form"?_y(a):Pr.r(n)}var Wi=typeof document>"u"?null:document;function S1(n,a,s){var d=Wi;if(d&&typeof a=="string"&&a){var g=io(a);g='link[rel="'+n+'"][href="'+g+'"]',typeof s=="string"&&(g+='[crossorigin="'+s+'"]'),x1.has(g)||(x1.add(g),n={rel:n,crossOrigin:s,href:a},d.querySelector(g)===null&&(a=d.createElement("link"),Wn(a,"link",n),Ht(a),d.head.appendChild(a)))}}function mT(n){Pr.D(n),S1("dns-prefetch",n,null)}function pT(n,a){Pr.C(n,a),S1("preconnect",n,a)}function gT(n,a,s){Pr.L(n,a,s);var d=Wi;if(d&&n&&a){var g='link[rel="preload"][as="'+io(a)+'"]';a==="image"&&s&&s.imageSrcSet?(g+='[imagesrcset="'+io(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(g+='[imagesizes="'+io(s.imageSizes)+'"]')):g+='[href="'+io(n)+'"]';var y=g;switch(a){case"style":y=Gi(n);break;case"script":y=Xi(n)}Vo.has(y)||(n=b({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:n,as:a},s),Vo.set(y,n),d.querySelector(g)!==null||a==="style"&&d.querySelector(yl(y))||a==="script"&&d.querySelector(xl(y))||(a=d.createElement("link"),Wn(a,"link",n),Ht(a),d.head.appendChild(a)))}}function hT(n,a){Pr.m(n,a);var s=Wi;if(s&&n){var d=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+io(d)+'"][href="'+io(n)+'"]',y=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Xi(n)}if(!Vo.has(y)&&(n=b({rel:"modulepreload",href:n},a),Vo.set(y,n),s.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(xl(y)))return}d=s.createElement("link"),Wn(d,"link",n),Ht(d),s.head.appendChild(d)}}}function bT(n,a,s){Pr.S(n,a,s);var d=Wi;if(d&&n){var g=gn(d).hoistableStyles,y=Gi(n);a=a||"default";var M=g.get(y);if(!M){var _={loading:0,preload:null};if(M=d.querySelector(yl(y)))_.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},s),(s=Vo.get(y))&&Np(n,s);var ee=M=d.createElement("link");Ht(ee),Wn(ee,"link",n),ee._p=new Promise(function(fe,$e){ee.onload=fe,ee.onerror=$e}),ee.addEventListener("load",function(){_.loading|=1}),ee.addEventListener("error",function(){_.loading|=2}),_.loading|=4,xu(M,a,d)}M={type:"stylesheet",instance:M,count:1,state:_},g.set(y,M)}}}function vT(n,a){Pr.X(n,a);var s=Wi;if(s&&n){var d=gn(s).hoistableScripts,g=Xi(n),y=d.get(g);y||(y=s.querySelector(xl(g)),y||(n=b({src:n,async:!0},a),(a=Vo.get(g))&&Rp(n,a),y=s.createElement("script"),Ht(y),Wn(y,"link",n),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(g,y))}}function yT(n,a){Pr.M(n,a);var s=Wi;if(s&&n){var d=gn(s).hoistableScripts,g=Xi(n),y=d.get(g);y||(y=s.querySelector(xl(g)),y||(n=b({src:n,async:!0,type:"module"},a),(a=Vo.get(g))&&Rp(n,a),y=s.createElement("script"),Ht(y),Wn(y,"link",n),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(g,y))}}function C1(n,a,s,d){var g=(g=te.current)?yu(g):null;if(!g)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=Gi(s.href),s=gn(g).hoistableStyles,d=s.get(a),d||(d={type:"style",instance:null,count:0,state:null},s.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=Gi(s.href);var y=gn(g).hoistableStyles,M=y.get(n);if(M||(g=g.ownerDocument||g,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,M),(y=g.querySelector(yl(n)))&&!y._p&&(M.instance=y,M.state.loading=5),Vo.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Vo.set(n,s),y||xT(g,n,s,M.state))),a&&d===null)throw Error(r(528,""));return M}if(a&&d!==null)throw Error(r(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Xi(s),s=gn(g).hoistableScripts,d=s.get(a),d||(d={type:"script",instance:null,count:0,state:null},s.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function Gi(n){return'href="'+io(n)+'"'}function yl(n){return'link[rel="stylesheet"]['+n+"]"}function $1(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function xT(n,a,s,d){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=n.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),Wn(a,"link",s),Ht(a),n.head.appendChild(a))}function Xi(n){return'[src="'+io(n)+'"]'}function xl(n){return"script[async]"+n}function E1(n,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var d=n.querySelector('style[data-href~="'+io(s.href)+'"]');if(d)return a.instance=d,Ht(d),d;var g=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return d=(n.ownerDocument||n).createElement("style"),Ht(d),Wn(d,"style",g),xu(d,s.precedence,n),a.instance=d;case"stylesheet":g=Gi(s.href);var y=n.querySelector(yl(g));if(y)return a.state.loading|=4,a.instance=y,Ht(y),y;d=$1(s),(g=Vo.get(g))&&Np(d,g),y=(n.ownerDocument||n).createElement("link"),Ht(y);var M=y;return M._p=new Promise(function(_,ee){M.onload=_,M.onerror=ee}),Wn(y,"link",d),a.state.loading|=4,xu(y,s.precedence,n),a.instance=y;case"script":return y=Xi(s.src),(g=n.querySelector(xl(y)))?(a.instance=g,Ht(g),g):(d=s,(g=Vo.get(y))&&(d=b({},s),Rp(d,g)),n=n.ownerDocument||n,g=n.createElement("script"),Ht(g),Wn(g,"link",d),n.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,xu(d,s.precedence,n));return a.instance}function xu(n,a,s){for(var d=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,y=g,M=0;M<d.length;M++){var _=d[M];if(_.dataset.precedence===a)y=_;else if(y!==g)break}y?y.parentNode.insertBefore(n,y.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(n,a.firstChild))}function Np(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Rp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Su=null;function w1(n,a,s){if(Su===null){var d=new Map,g=Su=new Map;g.set(s,d)}else g=Su,d=g.get(s),d||(d=new Map,g.set(s,d));if(d.has(n))return d;for(d.set(n,null),s=s.getElementsByTagName(n),g=0;g<s.length;g++){var y=s[g];if(!(y[it]||y[dt]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var M=y.getAttribute(a)||"";M=n+M;var _=d.get(M);_?_.push(y):d.set(M,[y])}}return d}function N1(n,a,s){n=n.ownerDocument||n,n.head.insertBefore(s,a==="title"?n.querySelector("head > title"):null)}function ST(n,a,s){if(s===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function R1(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function CT(n,a,s,d){if(s.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var g=Gi(d.href),y=a.querySelector(yl(g));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Cu.bind(n),a.then(n,n)),s.state.loading|=4,s.instance=y,Ht(y);return}y=a.ownerDocument||a,d=$1(d),(g=Vo.get(g))&&Np(d,g),y=y.createElement("link"),Ht(y);var M=y;M._p=new Promise(function(_,ee){M.onload=_,M.onerror=ee}),Wn(y,"link",d),s.instance=y}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=Cu.bind(n),a.addEventListener("load",s),a.addEventListener("error",s))}}var Mp=0;function $T(n,a){return n.stylesheets&&n.count===0&&Eu(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var d=setTimeout(function(){if(n.stylesheets&&Eu(n,n.stylesheets),n.unsuspend){var y=n.unsuspend;n.unsuspend=null,y()}},6e4+a);0<n.imgBytes&&Mp===0&&(Mp=62500*oT());var g=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Eu(n,n.stylesheets),n.unsuspend)){var y=n.unsuspend;n.unsuspend=null,y()}},(n.imgBytes>Mp?50:800)+a);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function Cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var $u=null;function Eu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,$u=new Map,a.forEach(ET,n),$u=null,Cu.call(n))}function ET(n,a){if(!(a.state.loading&4)){var s=$u.get(n);if(s)var d=s.get(null);else{s=new Map,$u.set(n,s);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var M=g[y];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(s.set(M.dataset.precedence,M),d=M)}d&&s.set(null,d)}g=a.instance,M=g.getAttribute("data-precedence"),y=s.get(M)||d,y===d&&s.set(null,g),s.set(M,g),this.count++,d=Cu.bind(this),g.addEventListener("load",d),g.addEventListener("error",d),y?y.parentNode.insertBefore(g,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(g,n.firstChild)),a.state.loading|=4}}var Sl={$$typeof:$,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function wT(n,a,s,d,g,y,M,_,ee){this.tag=1,this.containerInfo=n,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=Bt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.hiddenUpdates=Bt(null),this.identifierPrefix=d,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ee,this.incompleteTransitions=new Map}function M1(n,a,s,d,g,y,M,_,ee,fe,$e,Me){return n=new wT(n,a,s,M,ee,fe,$e,Me,_),a=1,y===!0&&(a|=24),y=yo(3,null,null,a),n.current=y,y.stateNode=n,a=sm(),a.refCount++,n.pooledCache=a,a.refCount++,y.memoizedState={element:d,isDehydrated:s,cache:a},dm(y),n}function T1(n){return n?(n=Ei,n):Ei}function O1(n,a,s,d,g,y){g=T1(g),d.context===null?d.context=g:d.pendingContext=g,d=ra(a),d.payload={element:s},y=y===void 0?null:y,y!==null&&(d.callback=y),s=aa(n,d,a),s!==null&&(mo(s,n,a),Js(s,n,a))}function z1(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<a?s:a}}function Tp(n,a){z1(n,a),(n=n.alternate)&&z1(n,a)}function A1(n){if(n.tag===13||n.tag===31){var a=Ha(n,67108864);a!==null&&mo(a,n,67108864),Tp(n,67108864)}}function I1(n){if(n.tag===13||n.tag===31){var a=Eo();a=Fe(a);var s=Ha(n,a);s!==null&&mo(s,n,a),Tp(n,a)}}var wu=!0;function NT(n,a,s,d){var g=D.T;D.T=null;var y=X.p;try{X.p=2,Op(n,a,s,d)}finally{X.p=y,D.T=g}}function RT(n,a,s,d){var g=D.T;D.T=null;var y=X.p;try{X.p=8,Op(n,a,s,d)}finally{X.p=y,D.T=g}}function Op(n,a,s,d){if(wu){var g=zp(d);if(g===null)hp(n,a,d,Nu,s),B1(n,d);else if(TT(g,n,a,s,d))d.stopPropagation();else if(B1(n,d),a&4&&-1<MT.indexOf(n)){for(;g!==null;){var y=Et(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var M=mt(y.pendingLanes);if(M!==0){var _=y;for(_.pendingLanes|=2,_.entangledLanes|=2;M;){var ee=1<<31-Te(M);_.entanglements[1]|=ee,M&=~ee}lr(y),(kt&6)===0&&(lu=je()+500,gl(0))}}break;case 31:case 13:_=Ha(y,2),_!==null&&mo(_,y,2),uu(),Tp(y,2)}if(y=zp(d),y===null&&hp(n,a,d,Nu,s),y===g)break;g=y}g!==null&&d.stopPropagation()}else hp(n,a,d,null,s)}}function zp(n){return n=If(n),Ap(n)}var Nu=null;function Ap(n){if(Nu=null,n=en(n),n!==null){var a=l(n);if(a===null)n=null;else{var s=a.tag;if(s===13){if(n=u(a),n!==null)return n;n=null}else if(s===31){if(n=f(a),n!==null)return n;n=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Nu=n,null}function P1(n){switch(n){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(nt()){case Ye:return 2;case De:return 8;case qe:case Je:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Ip=!1,ha=null,ba=null,va=null,Cl=new Map,$l=new Map,ya=[],MT="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 B1(n,a){switch(n){case"focusin":case"focusout":ha=null;break;case"dragenter":case"dragleave":ba=null;break;case"mouseover":case"mouseout":va=null;break;case"pointerover":case"pointerout":Cl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(a.pointerId)}}function El(n,a,s,d,g,y){return n===null||n.nativeEvent!==y?(n={blockedOn:a,domEventName:s,eventSystemFlags:d,nativeEvent:y,targetContainers:[g]},a!==null&&(a=Et(a),a!==null&&A1(a)),n):(n.eventSystemFlags|=d,a=n.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),n)}function TT(n,a,s,d,g){switch(a){case"focusin":return ha=El(ha,n,a,s,d,g),!0;case"dragenter":return ba=El(ba,n,a,s,d,g),!0;case"mouseover":return va=El(va,n,a,s,d,g),!0;case"pointerover":var y=g.pointerId;return Cl.set(y,El(Cl.get(y)||null,n,a,s,d,g)),!0;case"gotpointercapture":return y=g.pointerId,$l.set(y,El($l.get(y)||null,n,a,s,d,g)),!0}return!1}function j1(n){var a=en(n.target);if(a!==null){var s=l(a);if(s!==null){if(a=s.tag,a===13){if(a=u(s),a!==null){n.blockedOn=a,Jt(n.priority,function(){I1(s)});return}}else if(a===31){if(a=f(s),a!==null){n.blockedOn=a,Jt(n.priority,function(){I1(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ru(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var s=zp(n.nativeEvent);if(s===null){s=n.nativeEvent;var d=new s.constructor(s.type,s);Af=d,s.target.dispatchEvent(d),Af=null}else return a=Et(s),a!==null&&A1(a),n.blockedOn=s,!1;a.shift()}return!0}function _1(n,a,s){Ru(n)&&s.delete(a)}function OT(){Ip=!1,ha!==null&&Ru(ha)&&(ha=null),ba!==null&&Ru(ba)&&(ba=null),va!==null&&Ru(va)&&(va=null),Cl.forEach(_1),$l.forEach(_1)}function Mu(n,a){n.blockedOn===a&&(n.blockedOn=null,Ip||(Ip=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,OT)))}var Tu=null;function H1(n){Tu!==n&&(Tu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Tu===n&&(Tu=null);for(var a=0;a<n.length;a+=3){var s=n[a],d=n[a+1],g=n[a+2];if(typeof d!="function"){if(Ap(d||s)===null)continue;break}var y=Et(s);y!==null&&(n.splice(a,3),a-=3,zm(y,{pending:!0,data:g,method:s.method,action:d},d,g))}}))}function ki(n){function a(ee){return Mu(ee,n)}ha!==null&&Mu(ha,n),ba!==null&&Mu(ba,n),va!==null&&Mu(va,n),Cl.forEach(a),$l.forEach(a);for(var s=0;s<ya.length;s++){var d=ya[s];d.blockedOn===n&&(d.blockedOn=null)}for(;0<ya.length&&(s=ya[0],s.blockedOn===null);)j1(s),s.blockedOn===null&&ya.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(d=0;d<s.length;d+=3){var g=s[d],y=s[d+1],M=g[Mt]||null;if(typeof y=="function")M||H1(s);else if(M){var _=null;if(y&&y.hasAttribute("formAction")){if(g=y,M=y[Mt]||null)_=M.formAction;else if(Ap(g)!==null)continue}else _=M.action;typeof _=="function"?s[d+1]=_:(s.splice(d,3),d-=3),H1(s)}}}function D1(){function n(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(M){return g=M})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),d||setTimeout(s,20)}function s(){if(!d&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,g=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){d=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function Pp(n){this._internalRoot=n}Ou.prototype.render=Pp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var s=a.current,d=Eo();O1(s,d,n,a,null,null)},Ou.prototype.unmount=Pp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;O1(n.current,2,null,n,null,null),uu(),a[on]=null}};function Ou(n){this._internalRoot=n}Ou.prototype.unstable_scheduleHydration=function(n){if(n){var a=ct();n={blockedOn:null,target:n,priority:a};for(var s=0;s<ya.length&&a!==0&&a<ya[s].priority;s++);ya.splice(s,0,n),s===0&&j1(n)}};var L1=t.version;if(L1!=="19.2.7")throw Error(r(527,L1,"19.2.7"));X.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=m(a),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var zT={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{We=zu.inject(zT),Be=zu}catch{}}return Rl.createRoot=function(n,a){if(!i(n))throw Error(r(299));var s=!1,d="",g=Xy,y=ky,M=Yy;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(M=a.onRecoverableError)),a=M1(n,1,!1,null,null,s,d,null,g,y,M,D1),n[on]=a.current,gp(n),new Pp(a)},Rl.hydrateRoot=function(n,a,s){if(!i(n))throw Error(r(299));var d=!1,g="",y=Xy,M=ky,_=Yy,ee=null;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(M=s.onCaughtError),s.onRecoverableError!==void 0&&(_=s.onRecoverableError),s.formState!==void 0&&(ee=s.formState)),a=M1(n,1,!0,a,s??null,d,g,ee,y,M,_,D1),a.context=T1(null),s=a.current,d=Eo(),d=Fe(d),g=ra(d),g.callback=null,aa(s,g,d),s=d,a.current.lanes=s,Ve(a,s),lr(a),n[on]=a.current,gp(n),new Ou(a)},Rl.version="19.2.7",Rl}var dS;function MO(){if(dS)return Vp.exports;dS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vp.exports=RO(),Vp.exports}var VE=MO();const Dd="__rc_react_root__";function TO(e,t){const o=t[Dd]||VE.createRoot(t);o.render(e),t[Dd]=o}async function OO(e){return Promise.resolve().then(()=>{e[Dd]?.unmount(),delete e[Dd]})}var di=LE();const zO=c.createContext({}),Dg=c.createContext(null);function AO({children:e,onBatchResize:t}){const o=c.useRef(0),r=c.useRef([]),i=c.useContext(Dg),l=c.useCallback((u,f,p)=>{o.current+=1;const m=o.current;r.current.push({size:u,element:f,data:p}),Promise.resolve().then(()=>{m===o.current&&(t?.(r.current),r.current=[])}),i?.(u,f,p)},[t,i]);return c.createElement(Dg.Provider,{value:l},e)}const wa=new Map;function IO(e){e.forEach(t=>{const{target:o}=t;wa.get(o)?.forEach(r=>r(o))})}let Wp;function FE(){return Wp||(Wp=new ResizeObserver(IO)),Wp}function PO(e,t){wa.has(e)||(wa.set(e,new Set),FE().observe(e)),wa.get(e).add(t)}function BO(e,t){wa.has(e)&&(wa.get(e).delete(t),wa.get(e).size||(FE().unobserve(e),wa.delete(e)))}function qE(e,t,o,r){const i=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=ft(p=>{const{width:m,height:h}=p.getBoundingClientRect(),{offsetWidth:b,offsetHeight:v}=p,x=Math.floor(m),C=Math.floor(h);if(i.current.width!==x||i.current.height!==C||i.current.offsetWidth!==b||i.current.offsetHeight!==v){const S={width:x,height:C,offsetWidth:b,offsetHeight:v};i.current=S;const R=b===Math.round(m)?m:b,E=v===Math.round(h)?h:v,N={...S,offsetWidth:R,offsetHeight:E};r?.(N,p),Promise.resolve().then(()=>{o?.(N,p)})}}),u=typeof t=="function",f=c.useRef(0);c.useEffect(()=>{const p=u?t():t;return p&&e?PO(p,l):e&&u&&(f.current+=1),()=>{p&&BO(p,l)}},[e,u?f.current:t])}function jO(e,t){const{children:o,disabled:r,onResize:i,data:l}=e,u=c.useRef(null),f=c.useContext(Dg),p=typeof o=="function",m=p?o(u):o,h=!p&&c.isValidElement(m)&&Es(m),b=h?pi(m):null,v=Gr(b,u),x=()=>ui(u.current);return c.useImperativeHandle(t,()=>x()),qE(!r,x,i,(C,S)=>{f?.(C,S,l)}),h?c.cloneElement(m,{ref:v}):m}const _O=c.forwardRef(jO);function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Lg.apply(this,arguments)}const HO="rc-observer-key";function DO(e,t){const{children:o}=e;return(typeof o=="function"?[o]:zo(o)).map((i,l)=>{const u=i?.key||`${HO}-${l}`;return c.createElement(_O,Lg({},e,{key:u,ref:l===0?t:void 0}),i)})}const mr=c.forwardRef(DO);mr.Collection=AO;function UE(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(o=UE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function U(){for(var e,t,o=0,r="",i=arguments.length;o<i;o++)(e=arguments[o])&&(t=UE(e))&&(r&&(r+=" "),r+=t);return r}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function LO(e){if(Array.isArray(e))return Vg(e)}function VO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WE(e,t){if(e){if(typeof e=="string")return Vg(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Vg(e,t):void 0}}function FO(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
37
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ho(e){return LO(e)||VO(e)||WE(e)||FO()}const Ld="ant",a0="anticon",qO=["outlined","borderless","filled","underlined"],UO=(e,t)=>t||(e?`${Ld}-${e}`:Ld),xt=c.createContext({getPrefixCls:UO,iconPrefixCls:a0}),{Consumer:qV}=xt,fS={};function Kt(e){const t=c.useContext(xt),{getPrefixCls:o,direction:r,getPopupContainer:i,renderEmpty:l}=t,u=t[e];return{classNames:fS,styles:fS,...u,getPrefixCls:o,direction:r,getPopupContainer:i,renderEmpty:l}}function kl(e){for(var t=0,o,r=0,i=e.length;i>=4;++r,i-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const WO="%";function Fg(e){return e.join(WO)}let mS=0;class GO{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(Fg(t))}opGet(t){return this.cache.get(t)||null}update(t,o){return this.opUpdate(Fg(t),o)}opUpdate(t,o){const r=this.cache.get(t),i=o(r);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,mS),mS+=1)}}const i0="data-token-hash",Hr="data-css-hash",ii="__cssinjs_instance__";function XO(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Hr}]`)||[],{firstChild:o}=document.head;Array.from(t).forEach(i=>{i[ii]||=e,i[ii]===e&&document.head.insertBefore(i,o)});const r={};Array.from(document.querySelectorAll(`style[${Hr}]`)).forEach(i=>{const l=i.getAttribute(Hr);r[l]?i[ii]===e&&i.parentNode?.removeChild(i):r[l]=!0})}return new GO(e)}const sc=c.createContext({hashPriority:"low",cache:XO(),defaultCache:!0,autoPrefix:!1});function kO(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}class Vd{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,o=!1){let r={map:this.cache};return t.forEach(i=>{r?r=r?.map?.get(i):r=void 0}),r?.value&&o&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,o){if(!this.has(t)){if(this.size()+1>Vd.MAX_CACHE_SIZE+Vd.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((l,u)=>{const[,f]=l;return this.internalGet(u)[1]<f?[u,this.internalGet(u)[1]]:l},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(t)}let r=this.cache;t.forEach((i,l)=>{if(l===t.length-1)r.set(i,{value:[o,this.cacheCallTimes++]});else{const u=r.get(i);u?u.map||(u.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(t,o){const r=t.get(o[0]);if(o.length===1)return r.map?t.set(o[0],{map:r.map}):t.delete(o[0]),r.value?.[0];const i=this.deleteByPath(r.map,o.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(o[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(o=>!kO(o,t)),this.deleteByPath(this.cache,t)}}let pS=0;class GE{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=pS,t.length===0&&(t.length>0,void 0),pS+=1}getDerivativeToken(t){return this.derivatives.reduce((o,r)=>r(t,o),void 0)}}const Gp=new Vd;function qg(e){const t=Array.isArray(e)?e:[e];return Gp.has(t)||Gp.set(t,new GE(t)),Gp.get(t)}const YO=new WeakMap,Xp={};function KO(e,t){let o=YO;for(let r=0;r<t.length;r+=1){const i=t[r];o.has(i)||o.set(i,new WeakMap),o=o.get(i)}return o.has(Xp)||o.set(Xp,e()),o.get(Xp)}const gS=new WeakMap;function Ll(e){let t=gS.get(e)||"";return t||(Object.keys(e).forEach(o=>{const r=e[o];t+=o,r instanceof GE?t+=r.id:r&&typeof r=="object"?t+=Ll(r):t+=r}),t=kl(t),gS.set(e,t)),t}function QO(e,t){return kl(`${t}_${Ll(e)}`)}const Ug=Oo();function re(e){return typeof e=="number"?`${e}px`:e}function XE(e){const{hashCls:t,hashPriority:o="low"}=e||{};if(!t)return"";const r=`.${t}`;return o==="low"?`:where(${r})`:r}const ZO=e=>e!=null;function s0(e,t){const o=typeof t=="function"?t():t;return o?{...e,csp:{...e.csp,nonce:o}}:e}const Rd=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),JO=(e,t,o)=>{const{hashCls:r,hashPriority:i="low",scope:l}=o||{};if(!Object.keys(e).length)return"";const u=`${XE({hashCls:r,hashPriority:i})}.${t}`,f=[l].flat().filter(Boolean);return`${f.length?f.map(m=>`${u}.${m}`).join(", "):u}{${Object.entries(e).map(([m,h])=>`${m}:${h};`).join("")}}`},kE=(e,t,o)=>{const{hashCls:r,hashPriority:i="low",prefix:l,unitless:u,ignore:f,preserve:p}=o||{},m={},h={};return Object.entries(e).forEach(([b,v])=>{if(p?.[b])h[b]=v;else if((typeof v=="string"||typeof v=="number")&&!f?.[b]){const x=Rd(b,l);m[x]=typeof v=="number"&&!u?.[b]?`${v}px`:String(v),h[b]=`var(${x})`}}),[h,JO(m,t,{scope:o?.scope,hashCls:r,hashPriority:i})]},Au=new Map;function l0(e,t,o,r,i){const{cache:l}=c.useContext(sc),u=[e,...t],f=Fg(u),p=b=>{l.opUpdate(f,v=>{const[x=0,C]=v||[void 0,void 0],R=C||o(),E=[x,R];return b?b(E):E})};c.useMemo(()=>{p()},[f]);const h=l.opGet(f)[1];return c.useInsertionEffect(()=>(p(([b,v])=>[b+1,v]),Au.has(f)||(i?.(h),Au.set(f,!0),Promise.resolve().then(()=>{Au.delete(f)})),()=>{l.opUpdate(f,b=>{const[v=0,x]=b||[];return v-1===0?(r?.(x,!1),Au.delete(f),null):[v-1,x]})}),[f]),h}const e4={},t4="css",Ja=new Map;function n4(e){Ja.set(e,(Ja.get(e)||0)+1)}function o4(e,t){typeof document<"u"&&document.querySelectorAll(`style[${i0}="${e}"]`).forEach(r=>{r[ii]===t&&r.parentNode?.removeChild(r)})}const r4=-1;function a4(e,t){Ja.set(e,(Ja.get(e)||0)-1);const o=new Set;Ja.forEach((r,i)=>{r<=0&&o.add(i)}),Ja.size-o.size>r4&&o.forEach(r=>{o4(r,t),Ja.delete(r)})}const i4=(e,t,o,r)=>{let l={...o.getDerivativeToken(e),...t};return r&&(l=r(l)),l},s4="token";function l4(e,t,o){const{cache:{instanceId:r},container:i,hashPriority:l}=c.useContext(sc),{salt:u="",override:f=e4,formatToken:p,getComputedToken:m,cssVar:h,nonce:b}=o,v=KO(()=>Object.assign({},...t),t),x=Ll(v),C=Ll(f),S=Ll(h);return l0(s4,[u,e.id,x,C,S],()=>{const E=m?m(v,f,e):i4(v,f,e,p),N={...E},$=`${u}_${h.prefix}`,w=kl($),T=`${t4}-${w}`;N._tokenKey=QO(N,$);const[z,A]=kE(E,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve,hashPriority:l,hashCls:h.hashed?T:void 0});return z._hashId=w,n4(h.key),[z,T,N,A,h.key]},([,,,,E])=>{a4(E,r)},([,,,E,N])=>{if(!E)return;let $={mark:Hr,prepend:"queue",attachTo:i,priority:-999};$=s0($,b);const w=ai(E,kl(`css-var-${N}`),$);w[ii]=r,w.setAttribute(i0,N)})}var c4={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vn="-ms-",Vl="-moz-",Yt="-webkit-",YE="comm",c0="rule",u0="decl",UV="@media",u4="@import",WV="@supports",d4="@namespace",KE="@keyframes",f4="@layer",GV="@scope",m4=Math.abs,Fl=String.fromCharCode,Wg=Object.assign;function p4(e,t){return _n(e,0)^45?(((t<<2^_n(e,0))<<2^_n(e,1))<<2^_n(e,2))<<2^_n(e,3):0}function QE(e){return e.trim()}function Br(e,t){return(e=t.exec(e))?e[0]:e}function wt(e,t,o){return e.replace(t,o)}function kp(e,t){return e.indexOf(t)}function _n(e,t){return e.charCodeAt(t)|0}function fi(e,t,o){return e.slice(t,o)}function Jo(e){return e.length}function ZE(e){return e.length}function Pl(e,t){return t.push(e),e}function g4(e,t){return e.map(t).join("")}function hS(e,t){return e.filter(function(o){return!Br(o,t)})}var lf=1,hs=1,JE=0,Xo=0,Pn=0,ws="";function cf(e,t,o,r,i,l,u,f){return{value:e,root:t,parent:o,type:r,props:i,children:l,line:lf,column:hs,length:u,return:"",siblings:f}}function Ca(e,t){return Wg(cf("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Yi(e){for(;e.root;)e=Ca(e.root,{children:[e]});Pl(e,e.siblings)}function h4(){return Pn}function b4(){return Pn=Xo>0?_n(ws,--Xo):0,hs--,Pn===10&&(hs=1,lf--),Pn}function tr(){return Pn=Xo<JE?_n(ws,Xo++):0,hs++,Pn===10&&(hs=1,lf++),Pn}function Na(){return _n(ws,Xo)}function Md(){return Xo}function uf(e,t){return fi(ws,e,t)}function Yl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function v4(e){return lf=hs=1,JE=Jo(ws=e),Xo=0,[]}function y4(e){return ws="",e}function Yp(e){return QE(uf(Xo-1,Gg(e===91?e+2:e===40?e+1:e)))}function x4(e){for(;(Pn=Na())&&Pn<33;)tr();return Yl(e)>2||Yl(Pn)>3?"":" "}function S4(e,t){for(;--t&&tr()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return uf(e,Md()+(t<6&&Na()==32&&tr()==32))}function Gg(e){for(;tr();)switch(Pn){case e:return Xo;case 34:case 39:e!==34&&e!==39&&Gg(Pn);break;case 40:e===41&&Gg(e);break;case 92:tr();break}return Xo}function C4(e,t){for(;tr()&&e+Pn!==57;)if(e+Pn===84&&Na()===47)break;return"/*"+uf(t,Xo-1)+"*"+Fl(e===47?e:tr())}function $4(e){for(;!Yl(Na());)tr();return uf(e,Xo)}function bS(e){return y4(Td("",null,null,null,[""],e=v4(e),0,[0],e))}function Td(e,t,o,r,i,l,u,f,p){for(var m=0,h=0,b=u,v=0,x=0,C=0,S=1,R=1,E=1,N=0,$=0,w="",T=i,z=l,A=r,P=w;R;)switch(C=$,$=tr()){case 40:C!=108&&_n(P,b-1)==58?(N++,P+="("):P+=Yp($);break;case 41:N--,P+=")";break;case 34:case 39:case 91:P+=Yp($);break;case 9:case 10:case 13:case 32:if(N>0){P+=Fl($);break}P+=x4(C);break;case 92:P+=S4(Md()-1,7);continue;case 47:switch(Na()){case 42:case 47:Pl(E4(C4(tr(),Md()),t,o,p),p),(Yl(C||1)==5||Yl(Na()||1)==5)&&Jo(P)&&fi(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*S:f[m++]=Jo(P)*E;case 125*S:case 59:case 0:if(N>0&&$){P+=Fl($);break}switch($){case 0:case 125:R=0;case 59+h:E==-1&&(P=wt(P,/\f/g,"")),x>0&&(Jo(P)-b||S===0)&&Pl(x>32?yS(P+";",r,o,b-1,p):yS(wt(P," ","")+";",r,o,b-2,p),p);break;case 59:P+=";";default:if(Pl(A=vS(P,t,o,m,h,i,f,w,T=[],z=[],b,l),l),$===123)if(h===0)Td(P,t,A,A,T,l,b,f,z);else{switch(v){case 99:if(_n(P,3)===110)break;case 108:if(_n(P,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Td(e,A,A,r&&Pl(vS(e,A,A,0,0,i,f,w,i,T=[],b,z),z),i,z,b,f,r?T:z):Td(P,A,A,A,[""],z,0,f,z)}}m=h=x=0,S=E=1,w=P="",b=u;break;case 58:b=1+Jo(P),x=C;default:if(S<1){if($==123)--S;else if($==125&&S++==0&&b4()==125)continue}switch(P+=Fl($),$*S){case 38:E=h>0?1:(P+="\f",-1);break;case 44:if(N>0)break;f[m++]=(Jo(P)-1)*E,E=1;break;case 64:Na()===45&&(P+=Yp(tr())),v=Na(),h=b=Jo(w=P+=$4(Md())),$++;break;case 45:C===45&&Jo(P)==2&&(S=0)}}return l}function vS(e,t,o,r,i,l,u,f,p,m,h,b){for(var v=i-1,x=i===0?l:[""],C=ZE(x),S=0,R=0,E=0;S<r;++S)for(var N=0,$=fi(e,v+1,v=m4(R=u[S])),w=e;N<C;++N)(w=QE(R>0?x[N]+" "+$:wt($,/&\f/g,x[N])))&&(p[E++]=w);return cf(e,t,o,i===0?c0:f,p,m,h,b)}function E4(e,t,o,r){return cf(e,t,o,YE,Fl(h4()),fi(e,2,-2),0,r)}function yS(e,t,o,r,i){return cf(e,t,o,u0,fi(e,0,r),fi(e,r+1,-1),r,i)}function ew(e,t,o){switch(p4(e,t)){case 5103:return Yt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Yt+e+e;case 4855:return Yt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+e+Vl+e+vn+e+e;case 5936:switch(_n(e,t+11)){case 114:return Yt+e+vn+wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yt+e+vn+wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yt+e+vn+wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yt+e+vn+e+e;case 6165:return Yt+e+vn+"flex-"+e+e;case 5187:return Yt+e+wt(e,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+vn+"flex-$1$2")+e;case 5443:return Yt+e+vn+"flex-item-"+wt(e,/flex-|-self/g,"")+(Br(e,/flex-|baseline/)?"":vn+"grid-row-"+wt(e,/flex-|-self/g,""))+e;case 4675:return Yt+e+vn+"flex-line-pack"+wt(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yt+e+vn+wt(e,"shrink","negative")+e;case 5292:return Yt+e+vn+wt(e,"basis","preferred-size")+e;case 6060:return Yt+"box-"+wt(e,"-grow","")+Yt+e+vn+wt(e,"grow","positive")+e;case 4554:return Yt+wt(e,/([^-])(transform)/g,"$1"+Yt+"$2")+e;case 6187:return wt(wt(wt(e,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),e,"")+e;case 5495:case 3959:return wt(e,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return wt(wt(e,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+vn+"flex-pack:$3"),/space-between/,"justify")+Yt+e+e;case 4200:if(!Br(e,/flex-|baseline/))return vn+"grid-column-align"+fi(e,t)+e;break;case 2592:case 3360:return vn+wt(e,"template-","")+e;case 4384:case 3616:return o&&o.some(function(r,i){return t=i,Br(r.props,/grid-\w+-end/)})?~kp(e+(o=o[t].value),"span")?e:vn+wt(e,"-start","")+e+vn+"grid-row-span:"+(~kp(o,"span")?Br(o,/\d+/):+Br(o,/\d+/)-+Br(e,/\d+/))+";":vn+wt(e,"-start","")+e;case 4896:case 4128:return o&&o.some(function(r){return Br(r.props,/grid-\w+-start/)})?e:vn+wt(wt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return wt(e,/(.+)-inline(.+)/,Yt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jo(e)-1-t>6)switch(_n(e,t+1)){case 109:if(_n(e,t+4)!==45)break;case 102:return wt(e,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+Vl+(_n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~kp(e,"stretch")?ew(wt(e,"stretch","fill-available"),t,o)+e:e}break;case 5152:case 5920:return wt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,l,u,f,p,m){return vn+i+":"+l+m+(u?vn+i+"-span:"+(f?p:+p-+l)+m:"")+e});case 4949:if(_n(e,t+6)===121)return wt(e,":",":"+Yt)+e;break;case 6444:switch(_n(e,_n(e,14)===45?18:11)){case 120:return wt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yt+(_n(e,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+vn+"$2box$3")+e;case 100:return wt(e,":",":"+vn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return wt(e,"scroll-","scroll-snap-")+e}return e}function Kl(e,t){for(var o="",r=0;r<e.length;r++)o+=t(e[r],r,e,t)||"";return o}function xS(e,t,o,r){switch(e.type){case f4:if(e.children.length)break;case u4:case d4:case u0:return e.return=e.return||e.value;case YE:return"";case KE:return e.return=e.value+"{"+Kl(e.children,r)+"}";case c0:if(!Jo(e.value=e.props.join(",")))return""}return Jo(o=Kl(e.children,r))?e.return=e.value+"{"+o+"}":""}function w4(e){var t=ZE(e);return function(o,r,i,l){for(var u="",f=0;f<t;f++)u+=e[f](o,r,i,l)||"";return u}}function N4(e,t,o,r){if(e.length>-1&&!e.return)switch(e.type){case u0:e.return=ew(e.value,e.length,o);return;case KE:return Kl([Ca(e,{value:wt(e.value,"@","@"+Yt)})],r);case c0:if(e.length)return g4(o=e.props,function(i){switch(Br(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Yi(Ca(e,{props:[wt(i,/:(read-\w+)/,":"+Vl+"$1")]})),Yi(Ca(e,{props:[i]})),Wg(e,{props:hS(o,r)});break;case"::placeholder":Yi(Ca(e,{props:[wt(i,/:(plac\w+)/,":"+Yt+"input-$1")]})),Yi(Ca(e,{props:[wt(i,/:(plac\w+)/,":"+Vl+"$1")]})),Yi(Ca(e,{props:[wt(i,/:(plac\w+)/,vn+"input-$1")]})),Yi(Ca(e,{props:[i]})),Wg(e,{props:hS(o,r)});break}return""})}}const SS="data-ant-cssinjs-cache-path",tw="_FILE_STYLE__";let si,nw=!0;function R4(){if(!si&&(si={},Oo())){const e=document.createElement("div");e.className=SS,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[i,l]=r.split(":");si[i]=l});const o=document.querySelector(`style[${SS}]`);o&&(nw=!1,o.parentNode?.removeChild(o)),document.body.removeChild(e)}}function M4(e){return R4(),!!si[e]}function T4(e){const t=si[e];let o=null;if(t&&Oo())if(nw)o=tw;else{const r=document.querySelector(`style[${Hr}="${si[e]}"]`);r?o=r.innerHTML:delete si[e]}return[o,t]}const O4="_skip_check_",ow="_multi_value_";function Kp(e,t){return(t?Kl(bS(e),w4([N4,xS])):Kl(bS(e),xS)).replace(/\{%%%\:[^;];}/g,";")}function z4(e){return typeof e=="object"&&e&&(O4 in e||ow in e)}function CS(e,t,o="high"){if(!t)return e;const r=XE({hashCls:t,hashPriority:o});return e.split(",").map(l=>{const u=l.trim().split(/\s+/);let f=u[0]||"";const p=f.match(/^\w+/)?.[0]||"";return f=`${p}${r}${f.slice(p.length)}`,[f,...u.slice(1)].join(" ")}).join(",")}const Xg=(e,t={},{root:o,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:u,path:f,hashPriority:p,transformers:m=[],linters:h=[]}=t;let b="",v={};function x(R){const E=R.getName(l);if(!v[E]){const[N]=Xg(R.style,t,{root:!1,parentSelectors:i});v[E]=`@keyframes ${R.getName(l)}${N}`}}function C(R,E=[]){return R.forEach(N=>{Array.isArray(N)?C(N,E):N&&E.push(N)}),E}return C(Array.isArray(e)?e:[e]).forEach(R=>{const E=typeof R=="string"&&!o?{}:R;if(typeof E=="string")b+=`${E}
38
+ `;else if(E._keyframe)x(E);else{const N=m.reduce(($,w)=>w?.visit?.($)||$,E);Object.keys(N).forEach($=>{const w=N[$];if(typeof w=="object"&&w&&($!=="animationName"||!w._keyframe)&&!z4(w)){let T=!1,z=$.trim(),A=!1;(o||r)&&l?z.startsWith("@")?T=!0:z==="&"?z=CS("",l,p):z=CS($,l,p):o&&!l&&(z==="&"||z==="")&&(z="",A=!0);const[P,j]=Xg(w,t,{root:A,injectHash:T,parentSelectors:[...i,z]});v={...v,...j},b+=`${z}${P}`}else{let T=function(A,P){const j=A.replace(/[A-Z]/g,I=>`-${I.toLowerCase()}`);let L=P;!c4[A]&&typeof L=="number"&&L!==0&&(L=`${L}px`),A==="animationName"&&P?._keyframe&&(x(P),L=P.getName(l)),b+=`${j}:${L};`};const z=w?.value??w;typeof w=="object"&&w?.[ow]&&Array.isArray(z)?z.forEach(A=>{T($,A)}):ZO(z)&&T($,z)}})}}),o?u&&(b&&(b=`@layer ${u.name} {${b}}`),u.dependencies&&(v[`@layer ${u.name}`]=u.dependencies.map(R=>`@layer ${R}, ${u.name};`).join(`
39
+ `))):b=`{${b}}`,[b,v]};function rw(e,t){return kl(`${e.join("%")}${t}`)}const A4="style";function kg(e,t){const{path:o,hashId:r,layer:i,nonce:l,clientOnly:u,order:f=0}=e,{mock:p,hashPriority:m,container:h,transformers:b,linters:v,cache:x,layer:C,autoPrefix:S}=c.useContext(sc),R=[r||""];C&&R.push("layer"),R.push(...o);let E=Ug;l0(A4,R,()=>{const N=R.join("|");if(M4(N)){const[P,j]=T4(N);if(P)return[P,j,{},u,f]}const $=t(),[w,T]=Xg($,{hashId:r,hashPriority:m,layer:C?i:void 0,path:o.join("-"),transformers:b,linters:v}),z=Kp(w,S||!1),A=rw(R,z);return[z,A,T,u,f]},(N,$)=>{const[,w]=N;$&&Ug&&Gl(w,{mark:Hr,attachTo:h})},N=>{const[$,w,T,,z]=N;if(E&&$!==tw){let A={mark:Hr,prepend:C?!1:"queue",attachTo:h,priority:z};A=s0(A,l);const P=[],j=[];Object.keys(T).forEach(I=>{I.startsWith("@layer")?P.push(I):j.push(I)}),P.forEach(I=>{ai(Kp(T[I],S||!1),`_layer-${I}`,{...A,prepend:!0})});const L=ai($,w,A);L[ii]=x.instanceId,j.forEach(I=>{ai(Kp(T[I],S||!1),`_effect-${I}`,A)})}})}const I4="cssVar",P4=(e,t)=>{const{key:o,prefix:r,unitless:i,ignore:l,token:u,hashId:f,scope:p,nonce:m}=e,{cache:{instanceId:h},container:b,hashPriority:v}=c.useContext(sc),{_tokenKey:x}=u,C=Array.isArray(p)?p.join("@@"):p,S=[...e.path,o,C,x];return l0(I4,S,()=>{const E=t(),[N,$]=kE(E,o,{prefix:r,unitless:i,ignore:l,scope:p,hashPriority:v,hashCls:f}),w=rw(S,$);return[N,$,w,o]},([,,E])=>{Ug&&Gl(E,{mark:Hr,attachTo:b})},([,E,N])=>{if(!E)return;let $={mark:Hr,prepend:"queue",attachTo:b,priority:-999};$=s0($,m);const w=ai(E,N,$);w[ii]=h,w.setAttribute(i0,o)})};class St{name;style;constructor(t,o){this.name=t,this.style=o}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function Ki(e){return e.notSplit=!0,e}Ki(["borderTop","borderBottom"]),Ki(["borderTop"]),Ki(["borderBottom"]),Ki(["borderLeft","borderRight"]),Ki(["borderLeft"]),Ki(["borderRight"]);function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function B4(e){if(Array.isArray(e))return e}function j4(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r,i,l,u,f=[],p=!0,m=!1;try{if(l=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;p=!1}else for(;!(p=(r=l.call(o)).done)&&(f.push(r.value),f.length!==t);p=!0);}catch(h){m=!0,i=h}finally{try{if(!p&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(m)throw i}}return f}}function _4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aw(e,t){return B4(e)||j4(e,t)||WE(e,t)||_4()}function H4(e,t){if(nr(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t);if(nr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iw(e){var t=H4(e,"string");return nr(t)=="symbol"?t:t+""}function dr(e,t,o){return(t=iw(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function $S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function go(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?$S(Object(o),!0).forEach(function(r){dr(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):$S(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D4(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iw(r.key),r)}}function cc(e,t,o){return t&&D4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Od(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yg(e,t){return Yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},Yg(e,t)}function sw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yg(e,t)}function bs(e){return bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bs(e)}function d0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d0=function(){return!!e})()}function lw(e,t){if(t&&(nr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Od(e)}function L4(e){var t=d0();return function(){var o,r=bs(e);if(t){var i=bs(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return lw(this,o)}}var V4=cc(function e(){lc(this,e)}),cw="CALC_UNIT",F4=new RegExp(cw,"g");function Qp(e){return typeof e=="number"?"".concat(e).concat(cw):e}var q4=(function(e){sw(o,e);var t=L4(o);function o(r,i){var l;lc(this,o),l=t.call(this),dr(Od(l),"result",""),dr(Od(l),"unitlessCssVar",void 0),dr(Od(l),"lowPriority",void 0);var u=nr(r);return l.unitlessCssVar=i,r instanceof o?l.result="(".concat(r.result,")"):u==="number"?l.result=Qp(r):u==="string"&&(l.result=r),l}return cc(o,[{key:"add",value:function(i){return i instanceof o?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Qp(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof o?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Qp(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof o?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof o?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var l=this,u=i||{},f=u.unit,p=!0;return typeof f=="boolean"?p=f:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(p=!1),this.result=this.result.replace(F4,p?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),o})(V4),U4=function(t,o){var r=q4;return function(i){return new r(i,o)}},ES=function(t,o){return"".concat([o,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function wS(e,t,o,r){var i=go({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(f){var p=aw(f,2),m=p[0],h=p[1];if(i!=null&&i[m]||i!=null&&i[h]){var b;(b=i[h])!==null&&b!==void 0||(i[h]=i?.[m])}})}var u=go(go({},o),i);return Object.keys(u).forEach(function(f){u[f]===t[f]&&delete u[f]}),u}var uw=typeof CSSINJS_STATISTIC<"u",Kg=!0;function Gt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(!uw)return Object.assign.apply(Object,[{}].concat(t));Kg=!1;var r={};return t.forEach(function(i){if(nr(i)==="object"){var l=Object.keys(i);l.forEach(function(u){Object.defineProperty(r,u,{configurable:!0,enumerable:!0,get:function(){return i[u]}})})}}),Kg=!0,r}var NS={};function W4(){}var G4=function(t){var o,r=t,i=W4;return uw&&typeof Proxy<"u"&&(o=new Set,r=new Proxy(t,{get:function(u,f){if(Kg){var p;(p=o)===null||p===void 0||p.add(f)}return u[f]}}),i=function(u,f){var p;NS[u]={global:Array.from(o),component:go(go({},(p=NS[u])===null||p===void 0?void 0:p.component),f)}}),{token:r,keys:o,flush:i}};function RS(e,t,o){if(typeof o=="function"){var r;return o(Gt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return o??{}}function X4(e){return{max:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return"max(".concat(r.map(function(l){return re(l)}).join(","),")")},min:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return"min(".concat(r.map(function(l){return re(l)}).join(","),")")}}}var k4=1e3*60*10,Y4=(function(){function e(){lc(this,e),dr(this,"map",new Map),dr(this,"objectIDMap",new WeakMap),dr(this,"nextID",0),dr(this,"lastAccessBeat",new Map),dr(this,"accessBeat",0)}return cc(e,[{key:"set",value:function(o,r){this.clear();var i=this.getCompositeKey(o);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(o){var r=this.getCompositeKey(o),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(o){var r=this,i=o.map(function(l){return l&&nr(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(nr(l),"_").concat(l)});return i.join("|")}},{key:"getObjectID",value:function(o){if(this.objectIDMap.has(o))return this.objectIDMap.get(o);var r=this.nextID;return this.objectIDMap.set(o,r),this.nextID+=1,r}},{key:"clear",value:function(){var o=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,l){r-i>k4&&(o.map.delete(l),o.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),MS=new Y4;function K4(e,t){return ce.useMemo(function(){var o=MS.get(t);if(o)return o;var r=e();return MS.set(t,r),r},t)}var Q4=function(){return{}};function Z4(e){var t=e.useCSP,o=t===void 0?Q4:t,r=e.useToken,i=e.usePrefix,l=e.getResetStyles,u=e.getCommonStyle,f=e.getCompUnitless;function p(v,x,C,S){var R=Array.isArray(v)?v[0]:v;function E(P){return"".concat(String(R)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var N=S?.unitless||{},$=typeof f=="function"?f(v):{},w=go(go({},$),{},dr({},E("zIndexPopup"),!0));Object.keys(N).forEach(function(P){w[E(P)]=N[P]});var T=go(go({},S),{},{unitless:w,prefixToken:E}),z=h(v,x,C,T),A=m(R,C,T);return function(P){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,L=z(P,j),I=S?.extraCssVarPrefixCls,H=typeof I=="function"?I({prefixCls:P,rootCls:j}):I,W=A(H!=null&&H.length?[j].concat(ho(H)):j);return[L,W]}}function m(v,x,C){var S=C.unitless,R=C.prefixToken,E=C.ignore;return function(N){var $=r(),w=$.cssVar,T=$.realToken,z=o();return P4({path:[v],prefix:w.prefix,key:w.key,unitless:S,ignore:E,token:T,scope:N,nonce:function(){return z.nonce}},function(){var A=RS(v,T,x),P=wS(v,T,A,{deprecatedTokens:C?.deprecatedTokens});return A&&Object.keys(A).forEach(function(j){P[R(j)]=P[j],delete P[j]}),P}),w?.key}}function h(v,x,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},R=Array.isArray(v)?v:[v,v],E=aw(R,1),N=E[0],$=R.join("-"),w=e.layer||{name:"antd"};return function(T){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,A=r(),P=A.theme,j=A.realToken,L=A.hashId,I=A.token,H=A.cssVar,W=A.zeroRuntime,J=c.useMemo(function(){return W},[]);if(J)return L;var q=i(),D=q.rootPrefixCls,X=q.iconPrefixCls,V=o(),Z="css",Q=K4(function(){var K=new Set;return Object.keys(S.unitless||{}).forEach(function(te){K.add(Rd(te,H.prefix)),K.add(Rd(te,ES(N,H.prefix)))}),U4(Z,K)},[Z,N,H?.prefix]),B=X4(),F=B.max,k=B.min,G={theme:P,token:I,hashId:L,nonce:function(){return V.nonce},clientOnly:S.clientOnly,layer:w,order:S.order||-999};return typeof l=="function"&&kg(go(go({},G),{},{clientOnly:!1,path:["Shared",D]}),function(){return l(I,{prefix:{rootPrefixCls:D,iconPrefixCls:X},csp:V})}),kg(go(go({},G),{},{path:[$,T,X]}),function(){if(S.injectStyle===!1)return[];var K=G4(I),te=K.token,Y=K.flush,ie=RS(N,j,C),se=".".concat(T),ae=wS(N,j,ie,{deprecatedTokens:S.deprecatedTokens});ie&&nr(ie)==="object"&&Object.keys(ie).forEach(function(ye){ie[ye]="var(".concat(Rd(ye,ES(N,H.prefix)),")")});var me=Gt(te,{componentCls:se,prefixCls:T,iconCls:".".concat(X),antCls:".".concat(D),calc:Q,max:F,min:k},ie),ne=x(me,{hashId:L,prefixCls:T,rootPrefixCls:D,iconPrefixCls:X});Y(N,ae);var ue=typeof u=="function"?u(me,T,z,S.resetFont):null;return[S.resetStyle===!1?null:ue,ne]}),L}}function b(v,x,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},R=h(v,x,C,go({resetStyle:!1,order:-998},S)),E=function($){var w=$.prefixCls,T=$.rootCls,z=T===void 0?w:T;return R(w,z),null};return E}return{genStyleHooks:p,genSubStyleComponent:b,genComponentStyleHook:h}}const Ta=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function zd(e){return(e+8)/e}function J4(e){const t=Array.from({length:10}).map((o,r)=>{const i=r-1,l=e*Math.E**(i/5),u=r>1?Math.floor(l):Math.ceil(l);return Math.floor(u/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:zd(o)}))}const e6="6.5.2",dw={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ql={...dw,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
41
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
42
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},t6={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Vn=Math.round;function Zp(e,t){const o=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=o.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,o[i]||"",i);return o[3]?r[3]=o[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const TS=(e,t,o)=>o===0?e:e/100;function Ml(e,t){const o=t||255;return e>o?o:e<0?0:e}class En{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function o(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(l){return r.startsWith(l)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(i("rgb"))this.fromRgbString(r);else if(i("hsl"))this.fromHslString(r);else if(i("hsv")||i("hsb"))this.fromHsvString(r);else{const l=t6[r.toLowerCase()];l&&this.fromHexString(parseInt(l,36).toString(16).padStart(6,"0"))}}else if(t instanceof En)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(o("rgb"))this.r=Ml(t.r),this.g=Ml(t.g),this.b=Ml(t.b),this.a=typeof t.a=="number"?Ml(t.a,1):1;else if(o("hsl"))this.fromHsl(t);else if(o("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const o=this.toHsv();return o.h=t,this._c(o)}getLuminance(){function t(l){const u=l/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const o=t(this.r),r=t(this.g),i=t(this.b);return .2126*o+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Vn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const o=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*o-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const o=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:o,s:r,l:i,a:this.a})}lighten(t=10){const o=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:o,s:r,l:i,a:this.a})}mix(t,o=50){const r=this._c(t),i=o/100,l=f=>(r[f]-this[f])*i+this[f],u={r:Vn(l("r")),g:Vn(l("g")),b:Vn(l("b")),a:Vn(l("a")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const o=this._c(t),r=this.a+o.a*(1-this.a),i=l=>Vn((this[l]*this.a+o[l]*o.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const o=(this.r||0).toString(16);t+=o.length===2?o:"0"+o;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=Vn(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),o=Vn(this.getHSLSaturation()*100),r=Vn(this.getLightness()*100);return this.a!==1?`hsla(${t},${o}%,${r}%,${this.a})`:`hsl(${t},${o}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,o,r){const i=this.clone();return i[t]=Ml(o,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const o=t.replace("#","");function r(i,l){return parseInt(o[i]+o[l||i],16)}o.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=o[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=o[6]?r(6,7)/255:1)}fromHsl({h:t,s:o,l:r,a:i}){const l=(t%360+360)%360;if(this._h=l,this._hsl_s=o,this._l=r,this.a=typeof i=="number"?i:1,o<=0){const x=Vn(r*255);this.r=x,this.g=x,this.b=x;return}let u=0,f=0,p=0;const m=l/60,h=(1-Math.abs(2*r-1))*o,b=h*(1-Math.abs(m%2-1));m>=0&&m<1?(u=h,f=b):m>=1&&m<2?(u=b,f=h):m>=2&&m<3?(f=h,p=b):m>=3&&m<4?(f=b,p=h):m>=4&&m<5?(u=b,p=h):m>=5&&m<6&&(u=h,p=b);const v=r-h/2;this.r=Vn((u+v)*255),this.g=Vn((f+v)*255),this.b=Vn((p+v)*255)}fromHsv({h:t,s:o,v:r,a:i}){const l=(t%360+360)%360;this._h=l,this._hsv_s=o,this._v=r,this.a=typeof i=="number"?i:1;const u=Vn(r*255);if(this.r=u,this.g=u,this.b=u,o<=0)return;const f=l/60,p=Math.floor(f),m=f-p,h=Vn(r*(1-o)*255),b=Vn(r*(1-o*m)*255),v=Vn(r*(1-o*(1-m))*255);switch(p){case 0:this.g=v,this.b=h;break;case 1:this.r=b,this.b=h;break;case 2:this.r=h,this.b=v;break;case 3:this.r=h,this.g=b;break;case 4:this.r=v,this.g=h;break;default:this.g=h,this.b=b;break}}fromHsvString(t){const o=Zp(t,TS);this.fromHsv({h:o[0],s:o[1],v:o[2],a:o[3]})}fromHslString(t){const o=Zp(t,TS);this.fromHsl({h:o[0],s:o[1],l:o[2],a:o[3]})}fromRgbString(t){const o=Zp(t,(r,i)=>i.includes("%")?Vn(r/100*255):r);this.r=o[0],this.g=o[1],this.b=o[2],this.a=o[3]}}const Iu=2,OS=.16,n6=.05,o6=.05,r6=.15,fw=5,mw=4,a6=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function zS(e,t,o){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=o?Math.round(e.h)-Iu*t:Math.round(e.h)+Iu*t:r=o?Math.round(e.h)+Iu*t:Math.round(e.h)-Iu*t,r<0?r+=360:r>=360&&(r-=360),r}function AS(e,t,o){if(e.h===0&&e.s===0)return e.s;let r;return o?r=e.s-OS*t:t===mw?r=e.s+OS:r=e.s+n6*t,r>1&&(r=1),o&&t===fw&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function IS(e,t,o){let r;return o?r=e.v+o6*t:r=e.v-r6*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function pw(e,t={}){const o=[],r=new En(e),i=r.toHsv();for(let l=fw;l>0;l-=1){const u=new En({h:zS(i,l,!0),s:AS(i,l,!0),v:IS(i,l,!0)});o.push(u)}o.push(r);for(let l=1;l<=mw;l+=1){const u=new En({h:zS(i,l),s:AS(i,l),v:IS(i,l)});o.push(u)}return t.theme==="dark"?a6.map(({index:l,amount:u})=>new En(t.backgroundColor||"#141414").mix(o[l],u).toHexString()):o.map(l=>l.toHexString())}const ms={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Qg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Qg.primary=Qg[5];const Zg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Zg.primary=Zg[5];const Jg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Jg.primary=Jg[5];const eh=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];eh.primary=eh[5];const th=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];th.primary=th[5];const nh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];nh.primary=nh[5];const oh=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];oh.primary=oh[5];const rh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];rh.primary=rh[5];const ah=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ah.primary=ah[5];const ih=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ih.primary=ih[5];const sh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];sh.primary=sh[5];const lh=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];lh.primary=lh[5];const ch=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ch.primary=ch[5];const Jp={red:Qg,volcano:Zg,orange:Jg,gold:eh,yellow:th,lime:nh,green:oh,cyan:rh,blue:ah,geekblue:ih,purple:sh,magenta:lh,grey:ch};function i6(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:u,colorPrimary:f,colorBgBase:p,colorTextBase:m}=e,h=t(f),b=t(r),v=t(i),x=t(l),C=t(u),S=o(p,m),R=e.colorLink||e.colorInfo,E=t(R),N=new En(x[1]).mix(new En(x[3]),50).toHexString(),$={};return Ta.forEach(w=>{const T=e[w];if(T){const z=t(T);$[`${w}Hover`]=z[5],$[`${w}Active`]=z[7]}}),{...S,colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:b[1],colorSuccessBgHover:b[2],colorSuccessBorder:b[3],colorSuccessBorderHover:b[4],colorSuccessHover:b[4],colorSuccess:b[6],colorSuccessActive:b[7],colorSuccessTextHover:b[8],colorSuccessText:b[9],colorSuccessTextActive:b[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBgFilledHover:N,colorErrorBgActive:x[3],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],...$,colorBgMask:new En("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const s6=e=>{let t=e,o=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:i}};function l6(e){const{motionUnit:t,motionBase:o,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:i+1,...s6(r)}}const c6=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},u6=e=>{const t=J4(e),o=t.map(h=>h.size),r=t.map(h=>h.lineHeight),i=o[1],l=o[0],u=o[2],f=r[1],p=r[0],m=r[2];return{fontSizeSM:l,fontSize:i,fontSizeLG:u,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:f,lineHeightLG:m,lineHeightSM:p,fontHeight:Math.round(f*i),fontHeightLG:Math.round(m*u),fontHeightSM:Math.round(p*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function d6(e){const{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}const Fo=(e,t)=>new En(e).setA(t).toRgbString(),Qi=(e,t)=>new En(e).darken(t).toHexString(),f6=e=>{const t=pw(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},m6=(e,t,o)=>{const r=e||"#fff",i=t||"#000";return{colorBgBase:r,colorTextBase:i,colorShadow:o||"#000",colorText:Fo(i,.88),colorTextSecondary:Fo(i,.65),colorTextTertiary:Fo(i,.45),colorTextQuaternary:Fo(i,.25),colorFill:Fo(i,.15),colorFillSecondary:Fo(i,.06),colorFillTertiary:Fo(i,.04),colorFillQuaternary:Fo(i,.02),colorBgSolid:Fo(i,1),colorBgSolidHover:Fo(i,.75),colorBgSolidActive:Fo(i,.95),colorBgLayout:Qi(r,4),colorBgContainer:Qi(r,0),colorBgElevated:Qi(r,0),colorBgSpotlight:Fo(i,.85),colorBgBlur:"transparent",colorBorder:Qi(r,15),colorBorderDisabled:Qi(r,15),colorBorderSecondary:Qi(r,6)}};function p6(e){ms.pink=ms.magenta,Jp.pink=Jp.magenta;const t=Object.keys(dw).map(o=>{const r=e[o]===ms[o]?Jp[o]:pw(e[o]);return Array.from({length:10},()=>1).reduce((i,l,u)=>(i[`${o}-${u+1}`]=r[u],i[`${o}${u+1}`]=r[u],i),{})}).reduce((o,r)=>(o={...o,...r},o),{});return{...e,...t,...i6(e,{generateColorPalettes:f6,generateNeutralColorPalettes:m6}),...u6(e.fontSize),...d6(e),...c6(e),...l6(e)}}const gw=qg(p6),uh={token:Ql,override:{override:Ql},hashed:!0},hw=ce.createContext(uh);function eg(e){return e>=0&&e<=255}function Bl(e,t){const{r:o,g:r,b:i,a:l}=new En(e).toRgb();if(l<1)return e;const{r:u,g:f,b:p}=new En(t).toRgb();for(let m=.01;m<=1;m+=.01){const h=Math.round((o-u*(1-m))/m),b=Math.round((r-f*(1-m))/m),v=Math.round((i-p*(1-m))/m);if(eg(h)&&eg(b)&&eg(v))return new En({r:h,g:b,b:v,a:Math.round(m*100)/100}).toRgbString()}return new En({r:o,g:r,b:i,a:1}).toRgbString()}function g6(e){const{override:t,...o}=e,r={...t};Object.keys(Ql).forEach(R=>{delete r[R]});const i={...o,...r},l=new En(i.colorShadow),u=l.a,f=R=>l.clone().setA(u*R).toRgbString(),p=480,m=576,h=768,b=992,v=1200,x=1600,C=1920;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Bl(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Bl(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Bl(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Bl(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
43
+ 0 6px 16px 0 ${f(.08)},
44
+ 0 3px 6px -4px ${f(.12)},
45
+ 0 9px 28px 8px ${f(.05)}
46
+ `,boxShadowSecondary:`
47
+ 0 6px 16px 0 ${f(.08)},
48
+ 0 3px 6px -4px ${f(.12)},
49
+ 0 9px 28px 8px ${f(.05)}
50
+ `,boxShadowTertiary:`
51
+ 0 1px 2px 0 ${f(.05)},
52
+ 0 1px 6px -1px ${f(.03)},
53
+ 0 2px 4px 0 ${f(.03)}
54
+ `,screenXS:p,screenXSMin:p,screenXSMax:m-1,screenSM:m,screenSMMin:m,screenSMMax:h-1,screenMD:h,screenMDMin:h,screenMDMax:b-1,screenLG:b,screenLGMin:b,screenLGMax:v-1,screenXL:v,screenXLMin:v,screenXLMax:x-1,screenXXL:x,screenXXLMin:x,screenXXLMax:C-1,screenXXXL:C,screenXXXLMin:C,boxShadowPopoverArrow:`2px 2px 5px ${f(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${f(.08)}) drop-shadow(0 3px 6px ${f(.12)}) drop-shadow(0 9px 28px ${f(.05)})`,boxShadowCard:`
55
+ 0 1px 2px -2px ${f(.16)},
56
+ 0 3px 6px 0 ${f(.12)},
57
+ 0 5px 12px 4px ${f(.09)}
58
+ `,boxShadowDrawerRight:`
59
+ -6px 0 16px 0 ${f(.08)},
60
+ -3px 0 6px -4px ${f(.12)},
61
+ -9px 0 28px 8px ${f(.05)}
62
+ `,boxShadowDrawerLeft:`
63
+ 6px 0 16px 0 ${f(.08)},
64
+ 3px 0 6px -4px ${f(.12)},
65
+ 9px 0 28px 8px ${f(.05)}
66
+ `,boxShadowDrawerUp:`
67
+ 0 6px 16px 0 ${f(.08)},
68
+ 0 3px 6px -4px ${f(.12)},
69
+ 0 9px 28px 8px ${f(.05)}
70
+ `,boxShadowDrawerDown:`
71
+ 0 -6px 16px 0 ${f(.08)},
72
+ 0 -3px 6px -4px ${f(.12)},
73
+ 0 -9px 28px 8px ${f(.05)}
74
+ `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${f(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${f(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${f(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${f(.08)}`,...r}}const bw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},h6={motionBase:!0,motionUnit:!0},b6={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},vw=(e,t,o)=>{const r=o.getDerivativeToken(e),{override:i,...l}=t;let u={...r,override:i};return u=g6(u),l&&Object.entries(l).forEach(([f,p])=>{const{theme:m,...h}=p;let b=h;m&&(b=vw({...u,...h},{override:h},m)),u[f]=b}),u};function ko(){const{token:e,hashed:t,theme:o,override:r,cssVar:i,zeroRuntime:l}=ce.useContext(hw),{csp:u,getPrefixCls:f}=ce.useContext(xt),p={prefix:i?.prefix??f(),key:i?.key??"css-var-root"},m=`${e6}-${t||""}`,h=o||gw,[b,v,x]=l4(h,[Ql,e],{salt:m,override:r,getComputedToken:vw,cssVar:{...p,unitless:bw,ignore:h6,preserve:b6},nonce:u?.nonce});return[h,x,t?v:"",b,p,!!l]}const or={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Dn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),df=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),v6=new St("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),mi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ns=(e,t)=>({outline:`${re(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),Lr=(e,t)=>({"&:focus-visible":Ns(e,t)}),y6=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...Lr(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),x6=(e,t,o,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,l=o?`.${o}`:i,u={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let f={};return r!==!1&&(f={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...f,...u,[i]:u}}},yw=e=>({[`.${e}`]:{...df(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:v6,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),{genStyleHooks:Qt,genComponentStyleHook:S6,genSubStyleComponent:ff}=Z4({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(xt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,o,r,i,l]=ko();return{theme:e,realToken:t,hashId:o,token:r,cssVar:i,zeroRuntime:l}},useCSP:()=>{const{csp:e}=c.useContext(xt);return e??{}},getResetStyles:(e,t)=>{const o=y6(e);return[o,{"&":o},yw(t?.prefix.iconPrefixCls??a0)]},getCommonStyle:x6,getCompUnitless:()=>bw}),Vt=(e,t)=>{const o=`--${e.replace(/\./g,"")}-${t}-`;return[l=>`${o}${l}`,(l,u)=>u?`var(${o}${l}, ${u})`:`var(${o}${l})`]};function f0(e,t){return Ta.reduce((o,r)=>{const i=e[`${r}1`],l=e[`${r}3`],u=e[`${r}6`],f=e[`${r}7`];return{...o,...t(r,{lightColor:i,lightBorderColor:l,darkColor:u,textColor:f})}},{})}const C6=(e,t)=>(ko(),kg({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>yw(e)));var Pu={},PS;function $6(){if(PS)return Pu;PS=1,Object.defineProperty(Pu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return Pu.default=e,Pu}var E6=$6();const w6=Xt(E6),m0=c.createContext({}),BS="data-rc-order",jS="data-rc-priority",N6="rc-util-key",dh=new Map;function xw(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function R6(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}function Sw({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:N6}function p0(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function M6(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function g0(e){return Array.from((dh.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Cw(e,t={}){if(!xw())return null;const{csp:o,prepend:r,priority:i=0}=t,l=M6(r),u=l==="prependQueue",f=document.createElement("style");f.setAttribute(BS,l),u&&i&&f.setAttribute(jS,`${i}`),o?.nonce&&(f.nonce=o.nonce),f.innerHTML=e;const p=p0(t),{firstChild:m}=p;if(r){if(u){const h=(t.styles||g0(p)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(BS)))return!1;const v=Number(b.getAttribute(jS)||0);return i>=v});if(h.length)return p.insertBefore(f,h[h.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function T6(e,t={}){let{styles:o}=t;return o||=g0(p0(t)),o.find(r=>r.getAttribute(Sw(t))===e)}function O6(e,t){const o=dh.get(e);if(!o||!R6(document,o)){const r=Cw("",t);if(!r)return;const{parentNode:i}=r;dh.set(e,i),e.removeChild(r)}}function z6(e,t,o={}){if(!xw())return null;const r=p0(o),i=g0(r),l={...o,styles:i};O6(r,l);const u=T6(t,l);if(u)return l.csp?.nonce&&u.nonce!==l.csp.nonce&&(u.nonce=l.csp.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;const f=Cw(e,l);return f?.setAttribute(Sw(l),t),f}function A6(e){return e?.getRootNode?.()}function I6(e){const t=A6(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const _S={};function P6(e,t){e||_S[t]||(_S[t]=!0)}function B6(e){return e.replace(/-(.)/g,(t,o)=>o.toUpperCase())}function j6(e,t){P6(e,`[@ant-design/icons] ${t}`)}function HS(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function DS(e={}){return Object.keys(e).reduce((t,o)=>{const r=e[o];return o==="class"?(t.className=r,delete t.class):(delete t[o],t[B6(o)]=r),t},{})}function fh(e,t,o){return o?ce.createElement(e.tag,{key:t,...DS(e.attrs),...o},(e.children||[]).map((r,i)=>fh(r,`${t}-${e.tag}-${i}`))):ce.createElement(e.tag,{key:t,...DS(e.attrs)},(e.children||[]).map((r,i)=>fh(r,`${t}-${e.tag}-${i}`)))}const _6=`
75
+ .anticon {
76
+ display: inline-flex;
77
+ align-items: center;
78
+ color: inherit;
79
+ font-style: normal;
80
+ line-height: 0;
81
+ text-align: center;
82
+ text-transform: none;
83
+ vertical-align: -0.125em;
84
+ text-rendering: optimizeLegibility;
85
+ -webkit-font-smoothing: antialiased;
86
+ -moz-osx-font-smoothing: grayscale;
87
+ }
88
+
89
+ .anticon > * {
90
+ line-height: 1;
91
+ }
92
+
93
+ .anticon svg {
94
+ display: inline-block;
95
+ vertical-align: inherit;
96
+ }
97
+
98
+ .anticon::before {
99
+ display: none;
100
+ }
101
+
102
+ .anticon .anticon-icon {
103
+ display: block;
104
+ }
105
+
106
+ .anticon[tabindex] {
107
+ cursor: pointer;
108
+ }
109
+
110
+ .anticon-spin {
111
+ -webkit-animation: loadingCircle 1s infinite linear;
112
+ animation: loadingCircle 1s infinite linear;
113
+ }
114
+
115
+ @-webkit-keyframes loadingCircle {
116
+ 100% {
117
+ -webkit-transform: rotate(360deg);
118
+ transform: rotate(360deg);
119
+ }
120
+ }
121
+
122
+ @keyframes loadingCircle {
123
+ 100% {
124
+ -webkit-transform: rotate(360deg);
125
+ transform: rotate(360deg);
126
+ }
127
+ }
128
+ `,H6=e=>{const{csp:t,prefixCls:o,layer:r,zeroRuntime:i}=c.useContext(m0);let l=_6;o&&(l=l.replace(/anticon/g,o)),r&&(l=`@layer ${r} {
129
+ ${l}
130
+ }`),c.useEffect(()=>{if(i)return;const u=e.current,f=I6(u);z6(l,"@ant-design-icons",{prepend:!r,csp:t,attachTo:f})},[])},$w=e=>{const{icon:t,className:o,onClick:r,style:i,primaryColor:l,secondaryColor:u,...f}=e,p=c.useRef(null);if(H6(p),j6(HS(t),`icon should be icon definiton, but got ${t}`),!HS(t))return null;const m=t;return fh(m.icon,`svg-${m.name}`,{className:o,onClick:r,style:i,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...f,ref:p})};$w.displayName="IconReact";function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},mh.apply(this,arguments)}const Zt=c.forwardRef((e,t)=>{const{className:o,icon:r,spin:i,rotate:l,tabIndex:u,onClick:f,twoToneColor:p,...m}=e,{prefixCls:h="anticon",rootClassName:b}=c.useContext(m0),v=U(b,h,{[`${h}-${r.name}`]:!!r.name,[`${h}-spin`]:!!i||r.name==="loading"},o);let x=u;x===void 0&&f&&(x=-1);const C=l?{msTransform:`rotate(${l}deg)`,transform:`rotate(${l}deg)`}:void 0;return c.createElement("span",mh({role:"img","aria-label":r.name},m,{ref:t,tabIndex:x,onClick:f,className:v}),c.createElement($w,{icon:r,style:C}))});function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ph.apply(this,arguments)}const D6=(e,t)=>c.createElement(Zt,ph({},e,{ref:t,icon:w6})),uc=c.forwardRef(D6);var Bu={},LS;function L6(){if(LS)return Bu;LS=1,Object.defineProperty(Bu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};return Bu.default=e,Bu}var V6=L6();const F6=Xt(V6);function gh(){return gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},gh.apply(this,arguments)}const q6=(e,t)=>c.createElement(Zt,gh({},e,{ref:t,icon:F6})),gi=c.forwardRef(q6);var ju={},VS;function U6(){if(VS)return ju;VS=1,Object.defineProperty(ju,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};return ju.default=e,ju}var W6=U6();const G6=Xt(W6);function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},hh.apply(this,arguments)}const X6=(e,t)=>c.createElement(Zt,hh({},e,{ref:t,icon:G6})),gr=c.forwardRef(X6);var _u={},FS;function k6(){if(FS)return _u;FS=1,Object.defineProperty(_u,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return _u.default=e,_u}var Y6=k6();const K6=Xt(Y6);function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},bh.apply(this,arguments)}const Q6=(e,t)=>c.createElement(Zt,bh({},e,{ref:t,icon:K6})),mf=c.forwardRef(Q6);var Hu={},qS;function Z6(){if(qS)return Hu;qS=1,Object.defineProperty(Hu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return Hu.default=e,Hu}var J6=Z6();const ez=Xt(J6);function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},vh.apply(this,arguments)}const tz=(e,t)=>c.createElement(Zt,vh({},e,{ref:t,icon:ez})),pf=c.forwardRef(tz),Ew=c.createContext({}),nz=e=>{const{children:t,...o}=e,r=c.useMemo(()=>({motion:o.motion}),[o.motion]);return c.createElement(Ew.Provider,{value:r},t)},cr="none",Du="appear",Lu="enter",Vu="leave",US="none",er="prepare",ei="start",ti="active",h0="end",ww="prepared";function WS(e,t){const o={};return o[e.toLowerCase()]=t.toLowerCase(),o[`Webkit${e}`]=`webkit${t}`,o[`Moz${e}`]=`moz${t}`,o[`ms${e}`]=`MS${t}`,o[`O${e}`]=`o${t.toLowerCase()}`,o}function oz(e,t){const o={animationend:WS("Animation","AnimationEnd"),transitionend:WS("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete o.animationend.animation,"TransitionEvent"in t||delete o.transitionend.transition),o}const rz=oz(Oo(),typeof window<"u"?window:{});let Nw={};Oo()&&({style:Nw}=document.createElement("div"));const Fu={};function Rw(e){if(Fu[e])return Fu[e];const t=rz[e];if(t){const o=Object.keys(t),r=o.length;for(let i=0;i<r;i+=1){const l=o[i];if(Object.prototype.hasOwnProperty.call(t,l)&&l in Nw)return Fu[e]=t[l],Fu[e]}}return""}const Mw=Rw("animationend"),Tw=Rw("transitionend"),az=!!(Mw&&Tw),GS=Mw||"animationend",XS=Tw||"transitionend";function kS(e,t){if(!e)return null;if(typeof e=="object"){const o=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[o]}return`${e}-${t}`}const iz=(e=>{const t=c.useRef();function o(i){i&&(i.removeEventListener(XS,e),i.removeEventListener(GS,e))}function r(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(XS,e),i.addEventListener(GS,e),t.current=i)}return c.useEffect(()=>()=>{o(t.current),t.current=null},[]),[r,o]}),Ow=Oo()?c.useLayoutEffect:c.useEffect,sz=(()=>{const e=c.useRef(null);function t(){Lt.cancel(e.current)}function o(r,i=2){t();const l=Lt(()=>{i<=1?r({isCanceled:()=>l!==e.current}):o(r,i-1)});e.current=l}return c.useEffect(()=>()=>{t()},[]),[o,t]}),lz=[er,ei,ti,h0],cz=[er,ww],zw=!1,uz=!0;function Aw(e){return e===ti||e===h0}const dz=((e,t,o)=>{const[r,i]=RE(US),[l,u]=sz();function f(){i(er,!0)}const p=t?cz:lz;return Ow(()=>{if(r!==US&&r!==h0){const m=p.indexOf(r),h=p[m+1],b=o(r);b===zw?i(h,!0):h&&l(v=>{function x(){v.isCanceled()||i(h,!0)}b===!0?x():Promise.resolve(b).then(x)})}},[e,r]),c.useEffect(()=>()=>{u()},[]),[f,r]});function fz(e,t,o,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:l=!0,motionDeadline:u,motionLeaveImmediately:f,onAppearPrepare:p,onEnterPrepare:m,onLeavePrepare:h,onAppearStart:b,onEnterStart:v,onLeaveStart:x,onAppearActive:C,onEnterActive:S,onLeaveActive:R,onAppearEnd:E,onEnterEnd:N,onLeaveEnd:$,onVisibleChanged:w}){const[T,z]=c.useState(),[A,P]=FT(cr),[j,L]=c.useState([null,null]),I=A(),H=c.useRef(!1),W=c.useRef(null);function J(){return o()}const q=c.useRef(!1);function D(){P(cr),L([null,null])}const X=ft(ie=>{const se=A();if(se===cr)return;const ae=J();if(ie&&!ie.deadline&&ie.target!==ae)return;const me=q.current;let ne;se===Du&&me?ne=E?.(ae,ie):se===Lu&&me?ne=N?.(ae,ie):se===Vu&&me&&(ne=$?.(ae,ie)),me&&ne!==!1&&D()}),[V]=iz(X),Z=ie=>{switch(ie){case Du:return{[er]:p,[ei]:b,[ti]:C};case Lu:return{[er]:m,[ei]:v,[ti]:S};case Vu:return{[er]:h,[ei]:x,[ti]:R};default:return{}}},Q=c.useMemo(()=>Z(I),[I]),[B,F]=dz(I,!e,ie=>{if(ie===er){const se=Q[er];return se?se(J()):zw}return ie in Q&&L([Q[ie]?.(J(),null)||null,ie]),ie===ti&&I!==cr&&(V(J()),u>0&&(clearTimeout(W.current),W.current=setTimeout(()=>{X({deadline:!0})},u))),ie===ww&&D(),uz}),k=Aw(F);q.current=k;const G=c.useRef(null);Ow(()=>{if(H.current&&G.current===t)return;z(t);const ie=H.current;H.current=!0;let se;!ie&&t&&i&&(se=Du),ie&&t&&r&&(se=Lu),(ie&&!t&&l||!ie&&f&&!t&&l)&&(se=Vu);const ae=Z(se);se&&(e||ae[er])?(P(se),B()):P(cr),G.current=t},[t]),c.useEffect(()=>{(I===Du&&!i||I===Lu&&!r||I===Vu&&!l)&&P(cr)},[i,r,l]),c.useEffect(()=>()=>{H.current=!1,clearTimeout(W.current)},[]);const K=c.useRef(!1);c.useEffect(()=>{T&&(K.current=!0),T!==void 0&&I===cr&&((K.current||T)&&w?.(T),K.current=!0)},[T,I]);let te=j[0];Q[er]&&F===ei&&(te={transition:"none",...te});const Y=j[1];return[A,F,te,T??t,!H.current&&I===cr&&e&&i?"NONE":F===ei||F===ti?Y===F:!0]}function Iw(e){return e?.length<2}function mz(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function o(i,l){return!!(i.motionName&&t&&l!==!1)}const r=c.forwardRef((i,l)=>{const{visible:u=!0,removeOnLeave:f=!0,forceRender:p,children:m,motionName:h,leavedClassName:b,eventProps:v}=i,{motion:x}=c.useContext(Ew),C=o(i,x),S=c.useRef();function R(){return ui(S.current)}const[E,N,$,w,T]=fz(C,u,R,i),z=E(),A=c.useRef(w);w&&(A.current=!0);const P=c.useMemo(()=>{const I={};return Object.defineProperties(I,{nativeElement:{enumerable:!0,get:R},inMotion:{enumerable:!0,get:()=>()=>E()!==cr},enableMotion:{enumerable:!0,get:()=>()=>C}}),I},[]);c.useImperativeHandle(l,()=>P,[]);const j=c.useRef(0);T&&(j.current+=1);const L=c.useMemo(()=>{if(T==="NONE")return null;let I;const H={...v,visible:u};if(!m)I=null;else if(z===cr)w?I=m({...H},S):!f&&A.current&&b?I=m({...H,className:b},S):p||!f&&!b?I=m({...H,style:{display:"none"}},S):I=null;else{let W;N===er?W="prepare":Aw(N)?W="active":N===ei&&(W="start");const J=kS(h,`${z}-${W}`);I=m({...H,className:U(kS(h,z),{[J]:J&&W,[h]:typeof h=="string"}),style:$},S)}return I},[j.current]);if(Iw(m)&&KT(L)){const I=pi(L);if(I!==S)return c.cloneElement(L,{ref:oo(I,S)})}return L});return r.displayName="CSSMotion",r}const no=mz(az),yh="add",xh="keep",Sh="remove",tg="removed";function pz(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Ch(e=[]){return e.map(pz)}function gz(e=[],t=[]){let o=[],r=0;const i=t.length,l=Ch(e),u=Ch(t);l.forEach(m=>{let h=!1;for(let b=r;b<i;b+=1){const v=u[b];if(v.key===m.key){r<b&&(o=o.concat(u.slice(r,b).map(x=>({...x,status:yh}))),r=b),o.push({...v,status:xh}),r+=1,h=!0;break}}h||o.push({...m,status:Sh})}),r<i&&(o=o.concat(u.slice(r).map(m=>({...m,status:yh}))));const f={};return o.forEach(({key:m})=>{f[m]=(f[m]||0)+1}),Object.keys(f).filter(m=>f[m]>1).forEach(m=>{o=o.filter(({key:h,status:b})=>h!==m||b!==Sh),o.forEach(h=>{h.key===m&&(h.status=xh)})}),o}function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},$h.apply(this,arguments)}const hz=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bz(e,t=no){class o extends c.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:l}){const u=Ch(i);return{keyEntities:gz(l,u).filter(p=>{const m=l.find(({key:h})=>p.key===h);return!(m&&m.status===tg&&p.status===Sh)})}}removeKey=i=>{this.setState(l=>({keyEntities:l.keyEntities.map(f=>f.key!==i?f:{...f,status:tg})}),()=>{const{keyEntities:l}=this.state;l.filter(({status:f})=>f!==tg).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:i}=this.state,{component:l,children:u,onVisibleChanged:f,onAllRemoved:p,...m}=this.props,h=l||c.Fragment,b={};return hz.forEach(v=>{b[v]=m[v],delete m[v]}),delete m.keys,c.createElement(h,m,i.map(({status:v,...x},C)=>{const S=v===yh||v===xh;return c.createElement(t,$h({},b,{key:x.key,visible:S,eventProps:x,onVisibleChanged:R=>{f?.(R,{key:x.key}),R||this.removeKey(x.key)}}),Iw(u)?R=>u({...R,index:C}):(R,E)=>u({...R,index:C},E))}))}}return o}const vz=bz(),Kn=e=>e!=null,pr=e=>Kn(e)&&e!==!1&&e!=="",Go=e=>typeof e=="number"&&!Number.isNaN(e),Ra=e=>typeof e=="string",Wt=e=>e!==null&&typeof e=="object",mn=e=>typeof e=="function",ng=e=>Kn(e)&&mn(e.then),Pw=e=>Wt(e)&&"propertyName"in e&&Ra(e.propertyName),Eh=(e,t)=>{const o={...e};return Object.keys(t).forEach(r=>{t[r]._default?o[r]||(o[r]={}):o[r]=Eh(o[r],t[r])}),o},Bw=(e={},...t)=>t.filter(o=>!!o).reduce((o,r)=>(Object.keys(r).forEach(i=>{const l=e[i],u=r[i];if(l)if(Wt(u))o[i]=Bw(l,o[i],u);else{const{_default:f}=l;f&&(o[i]=o[i]||{},o[i][f]=U(o[i][f],u))}else o[i]=U(o[i],u)}),o),{}),yz=(e,...t)=>c.useMemo(()=>Bw.apply(void 0,[e].concat(t)),[e].concat(t)),xz=(...e)=>e.filter(t=>!!t).reduce((t,o={})=>(Object.keys(o).forEach(r=>{t[r]={...t[r],...o[r]}}),t),{}),Sz=(...e)=>c.useMemo(()=>xz.apply(void 0,e),[].concat(e)),pn=e=>c.useMemo(()=>e?{root:e}:void 0,[e]),vs=(e,t)=>mn(e)?e(t):e,dn=(e,t,o,r)=>{const i=e.map(p=>p?vs(p,o):void 0),l=t.map(p=>p?vs(p,o):void 0),u=yz.apply(void 0,[r].concat(ho(i))),f=Sz.apply(void 0,ho(l));return c.useMemo(()=>r?[Eh(u,r),Eh(f,r)]:[u,f],[u,f,r])},qu=(e,t,o)=>({background:e,[`${o}-icon`]:{color:t}}),Cz=e=>{const{componentCls:t,motionDurationSlow:o,marginXS:r,marginSM:i,fontSize:l,fontSizeLG:u,lineHeight:f,borderRadiusLG:p,motionEaseInOutCirc:m,withDescriptionIconSize:h,colorText:b,colorTextHeading:v,withDescriptionPadding:x,defaultPadding:C,lineWidth:S,lineType:R,colorSuccessBorder:E,colorWarningBorder:N,colorErrorBorder:$,colorInfoBorder:w}=e;return{[t]:{...Dn(e),position:"relative",display:"flex",alignItems:"center",padding:C,wordWrap:"break-word",borderRadius:p,borderWidth:re(S),borderStyle:R,[`&${t}-success`]:{borderColor:E},[`&${t}-info`]:{borderColor:w},[`&${t}-warning`]:{borderColor:N},[`&${t}-error`]:{borderColor:$},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:f},"&-title":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(T=>`${T} ${o} ${m}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:x,[`${t}-icon`]:{marginInlineEnd:i,fontSize:h,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:v,fontSize:u},[`${t}-description`]:{display:"block",color:b}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}},$z=e=>{const{componentCls:t,colorSuccess:o,colorSuccessBg:r,colorWarning:i,colorWarningBg:l,colorError:u,colorErrorBg:f,colorInfo:p,colorInfoBg:m}=e;return{[t]:{"&-success":qu(r,o,t),"&-info":qu(m,p,t),"&-warning":qu(l,i,t),"&-error":{...qu(f,u,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},Ez=e=>{const{componentCls:t,iconCls:o,motionDurationMid:r,marginXS:i,fontSizeIcon:l,colorIcon:u,colorIconHover:f}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:l,lineHeight:re(l),backgroundColor:"transparent",border:"none",cursor:"pointer",...Lr(e),[`${o}-close`]:{color:u,transition:`color ${r}`,"&:hover":{color:f}}},"&-close-text":{color:u,transition:`color ${r}`,"&:hover":{color:f}}}}},wz=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Nz=Qt("Alert",e=>[Cz(e),$z(e),Ez(e)],wz),Rz=e=>{const{icon:t,type:o,className:r,style:i,successIcon:l,infoIcon:u,warningIcon:f,errorIcon:p}=e,m={success:l??c.createElement(uc,null),info:u??c.createElement(pf,null),error:p??c.createElement(gi,null),warning:f??c.createElement(mf,null)};return c.createElement("span",{className:r,style:i},t??m[o])},Mz=e=>{const{isClosable:t,prefixCls:o,closeIcon:r,handleClose:i,ariaProps:l,className:u,style:f}=e,p=r===!0||r===void 0?c.createElement(gr,null):r;return t?c.createElement("button",{type:"button",onClick:i,className:U(`${o}-close-icon`,u),tabIndex:0,style:f,...l},p):null},jw=c.forwardRef((e,t)=>{const{description:o,prefixCls:r,message:i,title:l,banner:u,className:f,rootClassName:p,style:m,onMouseEnter:h,onMouseLeave:b,onClick:v,afterClose:x,showIcon:C,closable:S,closeText:R,closeIcon:E,action:N,id:$,styles:w,classNames:T,...z}=e,A=l??i,[P,j]=c.useState(!1),L=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:L.current}));const{getPrefixCls:I,direction:H,variant:W,closable:J,closeIcon:q,className:D,style:X,classNames:V,styles:Z,successIcon:Q,infoIcon:B,warningIcon:F,errorIcon:k}=Kt("alert"),G=I("alert",r),[K,te]=Nz(G),{onClose:Y,afterClose:ie}=Wt(S)?S:{},se=Oe=>{j(!0),(Y??e.onClose)?.(Oe)},ae=c.useMemo(()=>e.type!==void 0?e.type:u?"warning":"info",[e.type,u]),me=e.variant??W??"outlined",ne=c.useMemo(()=>Wt(S)&&S.closeIcon||R?!0:typeof S=="boolean"?S:E!==!1&&Kn(E)?!0:!!J,[R,E,S,J]),ue=u&&C===void 0?!0:C,ye={...e,prefixCls:G,variant:me,type:ae,showIcon:ue,closable:ne},ve=pn(X),Ee=pn(m),[Ce,be]=dn([V,T],[Z,ve,w,Ee],{props:ye}),ge=U(G,`${G}-${ae}`,`${G}-${me}`,{[`${G}-with-description`]:!!o,[`${G}-no-icon`]:!ue,[`${G}-banner`]:!!u,[`${G}-rtl`]:H==="rtl"},D,f,p,Ce.root,te,K),ze=Qn(z,{aria:!0,data:!0}),we=c.useMemo(()=>Wt(S)&&S.closeIcon?S.closeIcon:R||(E!==void 0?E:Wt(J)&&J.closeIcon?J.closeIcon:q),[E,S,J,R,q]),Ie=c.useMemo(()=>{const Oe=S??J;return Wt(Oe)?Qn(Oe,{data:!0,aria:!0}):{}},[S,J]);return c.createElement(no,{visible:!P,motionName:`${G}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Oe=>({maxHeight:Oe.offsetHeight}),onLeaveEnd:ie??x},({className:Oe,style:je},nt)=>c.createElement("div",{id:$,ref:oo(L,nt),"data-show":!P,className:U(ge,Oe),style:{...be.root,...je},onMouseEnter:h,onMouseLeave:b,onClick:v,role:"alert",...ze},ue?c.createElement(Rz,{className:U(`${G}-icon`,Ce.icon),style:be.icon,description:o,icon:e.icon,prefixCls:G,type:ae,successIcon:Q,infoIcon:B,warningIcon:F,errorIcon:k}):null,c.createElement("div",{className:U(`${G}-section`,Ce.section),style:be.section},A?c.createElement("div",{className:U(`${G}-title`,Ce.title),style:be.title},A):null,o?c.createElement("div",{className:U(`${G}-description`,Ce.description),style:be.description},o):null),N?c.createElement("div",{className:U(`${G}-actions`,Ce.actions),style:be.actions},N):null,c.createElement(Mz,{className:Ce.close,style:be.close,isClosable:ne,prefixCls:G,closeIcon:we,handleClose:se,ariaProps:Ie})))});function Tz(e,t,o){return t=bs(t),lw(e,d0()?Reflect.construct(t,o||[],bs(e).constructor):t.apply(e,o))}let Oz=(function(e){function t(){var o;return lc(this,t),o=Tz(this,t,arguments),o.state={error:void 0,info:{}},o}return sw(t,e),cc(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,title:i,description:l,id:u,children:f}=this.props,{error:p,info:m}=this.state,h=i??r,b=m?.componentStack||null,v=Kn(h)?h:p?.toString(),x=Kn(l)?l:b;return p?c.createElement(jw,{id:u,type:"error",title:v,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},x)}):f}}])})(c.PureComponent);const _w=jw;_w.ErrorBoundary=Oz;const hr=e=>`${e}-css-var`,zz=c.createContext(void 0),Az={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Iz={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Pz={...Iz,locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},Hw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},YS={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Pz},timePickerLocale:{...Hw}},wo="${label} is not a valid ${type}",Oa={locale:"en",Pagination:Az,DatePicker:YS,TimePicker:Hw,Calendar:YS,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Ad={...Oa.Modal},Id=[];const KS=()=>Id.reduce((e,t)=>({...e,...t}),Oa.Modal);function Bz(e){if(e){const t={...e};return Id.push(t),Ad=KS(),()=>{Id=Id.filter(o=>o!==t),Ad=KS()}}Ad={...Oa.Modal}}function jz(){return Ad}const b0=c.createContext(void 0),za=(e,t)=>{const o=c.useContext(b0),r=c.useMemo(()=>{const l=t||Oa[e],u=o?.[e]??{};return{...mn(l)?l():l,...u||{}}},[e,t,o]),i=c.useMemo(()=>{const l=o?.locale;return o?.exist&&!l?Oa.locale:l},[o]);return[r,i]},_z="internalMark",Hz=e=>{const{locale:t={},children:o,_ANT_MARK__:r}=e;c.useEffect(()=>Bz(t?.Modal),[t]);const i=c.useMemo(()=>({...t,exist:!0}),[t]);return c.createElement(b0.Provider,{value:i},o)},Dw=c.createContext(null);let Dz=!1;function Lz(e){return Dz}const QS=[];function Vz(e,t){const[o]=c.useState(()=>Oo()?document.createElement("div"):null),r=c.useRef(!1),i=c.useContext(Dw),[l,u]=c.useState(QS),f=i||(r.current?void 0:h=>{u(b=>[h,...b])});function p(){o.parentElement||document.body.appendChild(o),r.current=!0}function m(){o.parentElement?.removeChild(o),r.current=!1}return un(()=>(e?i?i(p):p():m(),m),[e]),un(()=>{l.length&&(l.forEach(h=>h()),u(QS))},[l]),[o,f]}function Fz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const qz=`rc-util-locker-${Date.now()}`;let ZS=0;function Uz(e){const t=!!e,[o]=c.useState(()=>(ZS+=1,`${qz}_${ZS}`));un(()=>{if(t){const r=iO(document.body).width,i=Fz();ai(`
131
+ html body {
132
+ overflow-y: hidden;
133
+ ${i?`width: calc(100% - ${r}px);`:""}
134
+ }`,o)}else Gl(o);return()=>{Gl(o)}},[t,o])}let ni=[];const Wz=200;let Lw=0;const Vw=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Lw<Wz)return;const o=ni.length;for(let r=o-1;r>=0;r-=1)ni[r].onEsc({top:r===o-1,event:e})}},Fw=()=>{Lw=Date.now()};function Gz(){window.addEventListener("keydown",Vw),window.addEventListener("compositionend",Fw)}function Xz(){ni.length===0&&(window.removeEventListener("keydown",Vw),window.removeEventListener("compositionend",Fw))}function kz(e,t){const o=Wr(),r=ft(t),i=()=>{ni.find(u=>u.id===o)||ni.push({id:o,onEsc:r})},l=()=>{ni=ni.filter(u=>u.id!==o)};c.useMemo(()=>{e?i():e||l()},[e]),c.useEffect(()=>{if(e)return i(),Gz(),()=>{l(),Xz()}},[e])}const JS=e=>e===!1?!1:!Oo()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,dc=c.forwardRef((e,t)=>{const{open:o,autoLock:r,getContainer:i,debug:l,autoDestroy:u=!0,children:f,onEsc:p}=e,[m,h]=c.useState(o),b=m||o;c.useEffect(()=>{(u||o)&&h(o)},[o,u]);const[v,x]=c.useState(()=>JS(i));c.useEffect(()=>{const T=JS(i);x(()=>T??null)});const[C,S]=Vz(b&&!v),R=v??C;Uz(r&&o&&Oo()&&(R===C||R===document.body)),kz(o,p);let E=null;f&&Es(f)&&t&&(E=pi(f));const N=Gr(E,t);if(!b||!Oo()||v===void 0)return null;const $=R===!1||Lz();let w=f;return t&&(w=c.cloneElement(f,{ref:N})),c.createElement(Dw.Provider,{value:S},$?w:di.createPortal(w,R))});function Yz(e){const{prefixCls:t,align:o,arrow:r,arrowPos:i}=e,{className:l,content:u,style:f}=r||{},{x:p=0,y:m=0}=i,h=c.useRef(null);if(!o||!o.points)return null;const b={position:"absolute"};if(o.autoArrow!==!1){const v=o.points[0],x=o.points[1],C=v[0],S=v[1],R=x[0],E=x[1];C===R||!["t","b"].includes(C)?b.top=m:C==="t"?b.top=0:b.bottom=0,S===E||!["l","r"].includes(S)?b.left=p:S==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:h,className:U(`${t}-arrow`,l),style:{...b,...f}},u)}function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wh.apply(this,arguments)}function Kz(e){const{prefixCls:t,open:o,zIndex:r,mask:i,motion:l,mobile:u}=e;return i?c.createElement(no,wh({},l,{motionAppear:!0,visible:o,removeOnLeave:!0}),({className:f})=>c.createElement("div",{style:{zIndex:r},className:U(`${t}-mask`,u&&`${t}-mobile-mask`,f)})):null}const Qz=c.memo(({children:e})=>e,(e,t)=>t.cache);function qw(e,t,o,r,i,l,u,f){const p="auto",m=e?{}:{left:"-1000vw",top:"-1000vh",right:p,bottom:p};if(!e&&(t||!o)){const{points:h}=r,b=r.dynamicInset||r._experimental?.dynamicInset,v=b&&h[0][1]==="r",x=b&&h[0][0]==="b";v?(m.right=i,m.left=p):(m.left=u,m.right=p),x?(m.bottom=l,m.top=p):(m.top=f,m.bottom=p)}return m}function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Nh.apply(this,arguments)}const Uw=c.forwardRef((e,t)=>{const{onEsc:o,popup:r,className:i,prefixCls:l,style:u,target:f,onVisibleChanged:p,open:m,keepDom:h,fresh:b,onClick:v,mask:x,arrow:C,arrowPos:S,align:R,motion:E,maskMotion:N,mobile:$,forceRender:w,getPopupContainer:T,autoDestroy:z,portal:A,children:P,zIndex:j,onMouseEnter:L,onMouseLeave:I,onPointerEnter:H,onPointerDownCapture:W,ready:J,offsetX:q,offsetY:D,offsetR:X,offsetB:V,onAlign:Z,onPrepare:Q,onResize:B,stretch:F,targetWidth:k,targetHeight:G}=e,K=typeof r=="function"?r():r,te=m||h,Y=!!$,[ie,se,ae]=c.useMemo(()=>$?[$.mask,$.maskMotion,$.motion]:[x,N,E],[$,x,N,E]),me=T?.length>0,[ne,ue]=c.useState(!T||!me);un(()=>{!ne&&me&&f&&ue(!0)},[ne,me,f]);const ye=ft((Ce,be)=>{B?.(Ce,be),Z()}),ve=qw(Y,J,m,R,X,V,q,D);if(!ne)return null;const Ee={};return F&&(F.includes("height")&&G?Ee.height=G:F.includes("minHeight")&&G&&(Ee.minHeight=G),F.includes("width")&&k?Ee.width=k:F.includes("minWidth")&&k&&(Ee.minWidth=k)),m||(Ee.pointerEvents="none"),c.createElement(A,{open:w||te,getContainer:T&&(()=>T(f)),autoDestroy:z,onEsc:o},c.createElement(Kz,{prefixCls:l,open:m,zIndex:j,mask:ie,motion:se,mobile:Y}),c.createElement(mr,{onResize:ye,disabled:!m},Ce=>c.createElement(no,Nh({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:`${l}-hidden`},ae,{onAppearPrepare:Q,onEnterPrepare:Q,visible:m,onVisibleChanged:be=>{E?.onVisibleChanged?.(be),p(be)}}),({className:be,style:ge},ze)=>{const we=U(l,be,i,{[`${l}-mobile`]:Y});return c.createElement("div",{ref:oo(Ce,t,ze),className:we,style:{"--arrow-x":`${S.x||0}px`,"--arrow-y":`${S.y||0}px`,...ve,...Ee,...ge,boxSizing:"border-box",zIndex:j,...u},onMouseEnter:L,onMouseLeave:I,onPointerEnter:H,onClick:v,onPointerDownCapture:W},C&&c.createElement(Yz,{prefixCls:l,arrow:C,arrowPos:S,align:R}),c.createElement(Qz,{cache:!m&&!b},K))})),P)}),Fd=c.createContext(null),Ww=c.createContext(null);function eC(e){return e?Array.isArray(e)?e:[e]:[]}function Zz(e,t,o){return c.useMemo(()=>{const r=eC(t??e),i=eC(o??e),l=new Set(r),u=new Set(i);return l.has("hover")&&!l.has("click")&&l.add("touch"),u.has("hover")&&!u.has("click")&&u.add("touch"),[l,u]},[e,t,o])}function Jz(e=[],t=[],o){const r=(i,l)=>i[l]||"";return o?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function Gw(e,t,o,r){const{points:i}=o,l=Object.keys(e);for(let u=0;u<l.length;u+=1){const f=l[u];if(Jz(e[f]?.points,i,r))return`${t}-placement-${f}`}return""}function fc(e){return e.ownerDocument.defaultView}function Rh(e){const t=[];let o=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;o;){const{overflowX:i,overflowY:l,overflow:u}=fc(o).getComputedStyle(o);[i,l,u].some(f=>r.includes(f))&&t.push(o),o=o.parentElement}return t}function Zl(e,t=1){return Number.isNaN(e)?t:e}function Tl(e){return Zl(parseFloat(e),0)}function tC(e,t){const o={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:l,borderTopWidth:u,borderBottomWidth:f,borderLeftWidth:p,borderRightWidth:m}=fc(r).getComputedStyle(r),h=r.getBoundingClientRect(),{offsetHeight:b,clientHeight:v,offsetWidth:x,clientWidth:C}=r,S=Tl(u),R=Tl(f),E=Tl(p),N=Tl(m),$=Zl(Math.round(h.width/x*1e3)/1e3),w=Zl(Math.round(h.height/b*1e3)/1e3),T=(x-C-E-N)*$,z=(b-v-S-R)*w,A=S*w,P=R*w,j=E*$,L=N*$;let I=0,H=0;if(i==="clip"){const X=Tl(l);I=X*$,H=X*w}const W=h.x+j-I,J=h.y+A-H,q=W+h.width+2*I-j-L-T,D=J+h.height+2*H-A-P-z;o.left=Math.max(o.left,W),o.top=Math.max(o.top,J),o.right=Math.min(o.right,q),o.bottom=Math.min(o.bottom,D)}),o}function nC(e,t=0){const o=`${t}`,r=o.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(o)}function oC(e,t){const[o,r]=t||[];return[nC(e.width,o),nC(e.height,r)]}function rC(e=""){return[e[0],e[1]]}function Zi(e,t){const o=t[0],r=t[1];let i,l;return o==="t"?l=e.y:o==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:l}}function Sa(e,t){const o={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=o[e[t]]||"c",r}function aC(e){return e.join("")}function Xw(e,t,o,r,i,l,u,f){const[p,m]=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),h=c.useRef(0),b=c.useMemo(()=>!t||f?[]:Rh(t),[t]),v=c.useRef({});e||(v.current={});const C=ft(()=>{if(t&&o&&e&&!f){let Le=function(pt,Mn,wn=Ee){const Zn=q.x+pt,Tn=q.y+Mn,Pa=Zn+K,bi=Tn+G,Xr=Math.max(Zn,wn.left),Ps=Math.max(Tn,wn.top),kr=Math.min(Pa,wn.right),Bs=Math.min(bi,wn.bottom);return Math.max(0,(kr-Xr)*(Bs-Ps))},Fe=function(){Re=q.y+Te,Ae=Re+G,Se=q.x+he,He=Se+K};const E=t,N=E.ownerDocument,$=fc(E),{position:w}=$.getComputedStyle(E),T=E.style.left,z=E.style.top,A=E.style.right,P=E.style.bottom,j=E.style.overflow,L=E.style.overflowX,I=E.style.overflowY,H={...i[r],...l},W=N.createElement("div");E.parentElement?.appendChild(W),W.style.left=`${E.offsetLeft}px`,W.style.top=`${E.offsetTop}px`,W.style.position=w,W.style.height=`${E.offsetHeight}px`,W.style.width=`${E.offsetWidth}px`,E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";let J;if(Array.isArray(o))J={x:o[0],y:o[1],width:0,height:0};else{const pt=o.getBoundingClientRect();pt.x=pt.x??pt.left,pt.y=pt.y??pt.top,J={x:pt.x,y:pt.y,width:pt.width,height:pt.height}}const q=E.getBoundingClientRect(),{height:D,width:X}=$.getComputedStyle(E);q.x=q.x??q.left,q.y=q.y??q.top;const{clientWidth:V,clientHeight:Z,scrollWidth:Q,scrollHeight:B,scrollTop:F,scrollLeft:k}=N.documentElement,G=q.height,K=q.width,te=J.height,Y=J.width,ie={left:0,top:0,right:V,bottom:Z},se={left:-k,top:-F,right:Q-k,bottom:B-F};let{htmlRegion:ae}=H;const me="visible",ne="visibleFirst";ae!=="scroll"&&ae!==ne&&(ae=me);const ue=ae===ne,ye=tC(se,b),ve=tC(ie,b),Ee=ae===me?ve:ye,Ce=ue?ve:Ee;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";const be=E.getBoundingClientRect();E.style.left=T,E.style.top=z,E.style.right=A,E.style.bottom=P,E.style.overflow=j,E.style.overflowX=L,E.style.overflowY=I,E.parentElement?.removeChild(W);const ge=Zl(Math.round(K/parseFloat(X)*1e3)/1e3),ze=Zl(Math.round(G/parseFloat(D)*1e3)/1e3);if(ge===0||ze===0||gs(o)&&!t0(o))return;const{offset:we,targetOffset:Ie}=H;let[Oe,je]=oC(q,we);const[nt,Ye]=oC(J,Ie);J.x-=nt,J.y-=Ye;const[De,qe]=H.points||[],Je=rC(qe),Ue=rC(De),Pe=Zi(J,Je),_e=Zi(q,Ue),We={...H};let Be=[Ue,Je],he=Pe.x-_e.x+Oe,Te=Pe.y-_e.y+je;const Ge=Le(he,Te),ot=Le(he,Te,ve),Qe=Zi(J,["t","l"]),ut=Zi(q,["t","l"]),Ct=Zi(J,["b","r"]),mt=Zi(q,["b","r"]),Nt=H.overflow||{},{adjustX:vt,adjustY:Pt,shiftX:et,shiftY:Bt}=Nt,Ve=pt=>typeof pt=="boolean"?pt:pt>=0;let Re,Ae,Se,He;Fe();const Ke=Ve(Pt),ct=Ue[0]===Je[0];if(Ke&&Ue[0]==="t"&&(Ae>Ce.bottom||v.current.bt)){let pt=Te;ct?pt-=G-te:pt=Qe.y-mt.y-je;const Mn=Le(he,pt),wn=Le(he,pt,ve);Mn>Ge||Mn===Ge&&(!ue||wn>=ot)?(v.current.bt=!0,Te=pt,je=-je,Be=[Sa(Be[0],0),Sa(Be[1],0)]):v.current.bt=!1}if(Ke&&Ue[0]==="b"&&(Re<Ce.top||v.current.tb)){let pt=Te;ct?pt+=G-te:pt=Ct.y-ut.y-je;const Mn=Le(he,pt),wn=Le(he,pt,ve);Mn>Ge||Mn===Ge&&(!ue||wn>=ot)?(v.current.tb=!0,Te=pt,je=-je,Be=[Sa(Be[0],0),Sa(Be[1],0)]):v.current.tb=!1}const Jt=Ve(vt),Rt=Ue[1]===Je[1];if(Jt&&Ue[1]==="l"&&(He>Ce.right||v.current.rl)){let pt=he;Rt?pt-=K-Y:pt=Qe.x-mt.x-Oe;const Mn=Le(pt,Te),wn=Le(pt,Te,ve);Mn>Ge||Mn===Ge&&(!ue||wn>=ot)?(v.current.rl=!0,he=pt,Oe=-Oe,Be=[Sa(Be[0],1),Sa(Be[1],1)]):v.current.rl=!1}if(Jt&&Ue[1]==="r"&&(Se<Ce.left||v.current.lr)){let pt=he;Rt?pt+=K-Y:pt=Ct.x-ut.x-Oe;const Mn=Le(pt,Te),wn=Le(pt,Te,ve);Mn>Ge||Mn===Ge&&(!ue||wn>=ot)?(v.current.lr=!0,he=pt,Oe=-Oe,Be=[Sa(Be[0],1),Sa(Be[1],1)]):v.current.lr=!1}We.points=[aC(Be[0]),aC(Be[1])],Fe();const dt=et===!0?0:et;typeof dt=="number"&&(Se<ve.left&&(he-=Se-ve.left-Oe,J.x+Y<ve.left+dt&&(he+=J.x-ve.left+Y-dt)),He>ve.right&&(he-=He-ve.right-Oe,J.x>ve.right-dt&&(he+=J.x-ve.right+dt)));const Mt=Bt===!0?0:Bt;typeof Mt=="number"&&(Re<ve.top&&(Te-=Re-ve.top-je,J.y+te<ve.top+Mt&&(Te+=J.y-ve.top+te-Mt)),Ae>ve.bottom&&(Te-=Ae-ve.bottom-je,J.y>ve.bottom-Mt&&(Te+=J.y-ve.bottom+Mt)));const on=q.x+he,st=on+K,ht=q.y+Te,$t=ht+G,Xe=J.x,it=Xe+Y,_t=J.y,en=_t+te,Et=Math.max(on,Xe),Ft=Math.min(st,it),Ht=(Et+Ft)/2-on,ro=Math.max(ht,_t),br=Math.min($t,en),ao=(ro+br)/2-ht;u?.(t,We);let Yo=be.right-q.x-(he+q.width),Io=be.bottom-q.y-(Te+q.height);ge===1&&(he=Math.floor(he),Yo=Math.floor(Yo)),ze===1&&(Te=Math.floor(Te),Io=Math.floor(Io));const Gn={ready:!0,offsetX:he/ge,offsetY:Te/ze,offsetR:Yo/ge,offsetB:Io/ze,arrowX:Ht/ge,arrowY:ao/ze,scaleX:ge,scaleY:ze,align:We};m(Gn)}}),S=()=>{h.current+=1;const E=h.current;Promise.resolve().then(()=>{h.current===E&&C()})},R=()=>{m(E=>({...E,ready:!1}))};return un(R,[r]),un(()=>{e||R()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,S]}function kw(){const e=c.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},o=(r,i)=>{t(),i===0?r():e.current=setTimeout(()=>{r()},i*1e3)};return c.useEffect(()=>()=>{t()},[]),o}function e3(e,t,o,r,i){un(()=>{if(e&&t&&o){let b=function(){r(),i()};const l=t,u=o,f=Rh(l),p=Rh(u),m=fc(u),h=new Set([m,...f,...p]);return h.forEach(v=>{v.addEventListener("scroll",b,{passive:!0})}),m.addEventListener("resize",b,{passive:!0}),r(),()=>{h.forEach(v=>{v.removeEventListener("scroll",b),m.removeEventListener("resize",b)})}}},[e,t,o])}function t3(e,t,o,r,i,l,u,f){const p=c.useRef(e);p.current=e;const m=c.useRef(!1);c.useEffect(()=>{if(t&&r&&(!i||l)){const b=()=>{m.current=!1},v=S=>{p.current&&!u(S.composedPath?.()?.[0]||S.target)&&!m.current&&f(!1)},x=fc(r);x.addEventListener("pointerdown",b,!0),x.addEventListener("mousedown",v,!0),x.addEventListener("contextmenu",v,!0);const C=_g(o);return C&&(C.addEventListener("mousedown",v,!0),C.addEventListener("contextmenu",v,!0)),()=>{x.removeEventListener("pointerdown",b,!0),x.removeEventListener("mousedown",v,!0),x.removeEventListener("contextmenu",v,!0),C&&(C.removeEventListener("mousedown",v,!0),C.removeEventListener("contextmenu",v,!0))}}},[t,o,r,i,l]);function h(){m.current=!0}return h}function n3(){const[e,t]=ce.useState(null),[o,r]=ce.useState(!1),[i,l]=ce.useState(!1),u=ce.useRef(null),f=ft(m=>{m===!1?(u.current=null,r(!1)):i&&o?u.current=m:(r(!0),t(m),u.current=null,o||l(!0))}),p=ft(m=>{m?(l(!1),u.current&&(t(u.current),u.current=null)):(l(!1),u.current=null)});return[f,o,e,p]}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Mh.apply(this,arguments)}const o3=e=>{const{prefixCls:t,isMobile:o,ready:r,open:i,align:l,offsetR:u,offsetB:f,offsetX:p,offsetY:m,arrowPos:h,popupSize:b,motion:v,uniqueContainerClassName:x,uniqueContainerStyle:C}=e,S=`${t}-unique-container`,[R,E]=ce.useState(!1),N=qw(o,r,i,l,u,f,p,m),$=ce.useRef(N);r&&($.current=N);const w={};return b&&(w.width=b.width,w.height=b.height),ce.createElement(no,Mh({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${S}-hidden`},v,{visible:i,onVisibleChanged:T=>{E(T)}}),({className:T,style:z})=>{const A=U(S,T,x,{[`${S}-visible`]:R});return ce.createElement("div",{className:A,style:{"--arrow-x":`${h?.x||0}px`,"--arrow-y":`${h?.y||0}px`,...$.current,...w,...z,...C}})})},r3=({children:e,postTriggerProps:t})=>{const[o,r,i,l]=n3(),u=c.useMemo(()=>!i||!t?i:t(i),[i,t]),[f,p]=c.useState(null),[m,h]=c.useState(null),b=c.useRef(null),v=ft(V=>{b.current=V,gs(V)&&f!==V&&p(V)}),x=c.useRef(null),C=kw(),S=ft((V,Z)=>{x.current=Z,C(()=>{o(V)},V.delay)}),R=V=>{C(()=>{x.current?.()||o(!1)},V)},E=ft(V=>{l(V)}),[N,$,w,T,z,A,P,,,j,L]=Xw(r,f,u?.target,u?.popupPlacement,u?.builtinPlacements||{},u?.popupAlign,void 0,!1),I=c.useMemo(()=>{if(!u)return"";const V=Gw(u.builtinPlacements||{},u.prefixCls||"",j,!1);return U(V,u.getPopupClassNameFromAlign?.(j))},[j,u?.getPopupClassNameFromAlign,u?.builtinPlacements,u?.prefixCls]),H=c.useMemo(()=>({show:S,hide:R}),[]);c.useEffect(()=>{L()},[u?.target]);const W=ft(()=>(L(),Promise.resolve())),J=c.useRef({}),q=c.useContext(Fd),D=c.useMemo(()=>({registerSubPopup:(V,Z)=>{J.current[V]=Z,q?.registerSubPopup(V,Z)}}),[q]),X=u?.prefixCls;return c.createElement(Ww.Provider,{value:H},e,u&&c.createElement(Fd.Provider,{value:D},c.createElement(Uw,{ref:v,portal:dc,onEsc:u.onEsc,prefixCls:X,popup:u.popup,className:U(u.popupClassName,I,`${X}-unique-controlled`),style:u.popupStyle,target:u.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:E,ready:N,offsetX:$,offsetY:w,offsetR:T,offsetB:z,onAlign:L,onPrepare:W,onResize:V=>h({width:V.offsetWidth,height:V.offsetHeight}),arrowPos:{x:A,y:P},align:j,zIndex:u.zIndex,mask:u.mask,arrow:u.arrow,motion:u.popupMotion,maskMotion:u.maskMotion,getPopupContainer:u.getPopupContainer},c.createElement(o3,{prefixCls:X,isMobile:!1,ready:N,open:r,align:j,offsetR:T,offsetB:z,offsetX:$,offsetY:w,arrowPos:{x:A,y:P},popupSize:m,motion:u.popupMotion,uniqueContainerClassName:U(u.uniqueContainerClassName,I),uniqueContainerStyle:u.uniqueContainerStyle}))))};function a3(e=dc){return c.forwardRef((o,r)=>{const{prefixCls:i="rc-trigger-popup",children:l,action:u="hover",showAction:f,hideAction:p,disabled:m=!1,popupVisible:h,defaultPopupVisible:b,onOpenChange:v,afterOpenChange:x,onPopupVisibleChange:C,afterPopupVisibleChange:S,mouseEnterDelay:R,mouseLeaveDelay:E=.1,focusDelay:N,blurDelay:$,mask:w,maskClosable:T=!0,getPopupContainer:z,forceRender:A,autoDestroy:P,popup:j,popupClassName:L,uniqueContainerClassName:I,uniqueContainerStyle:H,popupStyle:W,popupPlacement:J,builtinPlacements:q={},popupAlign:D,zIndex:X,stretch:V,getPopupClassNameFromAlign:Z,fresh:Q,unique:B,alignPoint:F,onPopupClick:k,onPopupAlign:G,arrow:K,popupMotion:te,maskMotion:Y,mobile:ie,...se}=o,ae=P||!1,me=h===void 0,ne=!!ie,ue=c.useRef({}),ye=c.useContext(Fd),ve=c.useMemo(()=>({registerSubPopup:(ke,Dt)=>{ue.current[ke]=Dt,ye?.registerSubPopup(ke,Dt)}}),[ye]),Ee=c.useContext(Ww),Ce=Wr(),[be,ge]=c.useState(null),ze=c.useRef(null),we=ft(ke=>{ze.current=ke,gs(ke)&&be!==ke&&ge(ke),ye?.registerSubPopup(Ce,ke)}),[Ie,Oe]=c.useState(null),je=c.useRef(null),nt=ft(ke=>{const Dt=ui(ke);gs(Dt)&&Ie!==Dt&&(Oe(Dt),je.current=Dt)}),Ye={},De=ft(ke=>{const Dt=Ie;return Dt?.contains(ke)||_g(Dt)?.host===ke||ke===Dt||be?.contains(ke)||_g(be)?.host===ke||ke===be||Object.values(ue.current).some(Yr=>Yr?.contains(ke)||ke===Yr)}),qe=K?{...K!==!0?K:{}}:null,[Je,Ue]=To(b||!1,h),Pe=Je||!1,_e=Pe&&!m,We=c.useMemo(()=>{const ke=typeof l=="function"?l({open:_e}):l;return c.Children.only(ke)},[l,_e]),Be=We?.props||{},he=ft(()=>_e),Te=ft((ke=0)=>({popup:j,target:Ie,delay:ke,prefixCls:i,popupClassName:L,uniqueContainerClassName:I,uniqueContainerStyle:H,popupStyle:W,popupPlacement:J,builtinPlacements:q,popupAlign:D,zIndex:X,mask:w,maskClosable:T,popupMotion:te,maskMotion:Y,arrow:qe,getPopupContainer:z,getPopupClassNameFromAlign:Z,id:Ce,onEsc:ut}));un(()=>{Ee&&B&&Ie&&!me&&!ye&&(_e?Ee.show(Te(R),he):Ee.hide(E))},[_e,Ie]);const Le=c.useRef(_e);Le.current=_e;const Ge=ft(ke=>{di.flushSync(()=>{Pe!==ke&&(Ue(ke),v?.(ke),C?.(ke))})}),ot=kw(),Qe=(ke,Dt=0)=>{if(h!==void 0){ot(()=>{Ge(ke)},Dt);return}if(Ee&&B&&me&&!ye){ke?Ee.show(Te(Dt),he):Ee.hide(Dt);return}ot(()=>{Ge(ke)},Dt)};function ut({top:ke}){ke&&Qe(!1)}const[Ct,mt]=c.useState(!1);un(ke=>{(!ke||_e)&&mt(!0)},[_e]);const[Nt,vt]=c.useState(null),[Pt,et]=c.useState(null),Bt=ke=>{et([ke.clientX,ke.clientY])},[Ve,Re,Ae,Se,He,Fe,Ke,ct,Jt,Rt,dt]=Xw(_e,be,F&&Pt!==null?Pt:Ie,J,q,D,G,ne),[Mt,on]=Zz(u,f,p),st=Mt.has("click"),ht=on.has("click")||on.has("contextMenu"),$t=ft(()=>{Ct||dt()});e3(_e,Ie,be,$t,()=>{Le.current&&F&&ht&&Qe(!1)}),un(()=>{$t()},[Pt,J]),un(()=>{_e&&!q?.[J]&&$t()},[JSON.stringify(D)]);const it=c.useMemo(()=>{const ke=Gw(q,i,Rt,F);return U(ke,Z?.(Rt))},[Rt,Z,q,i,F]);c.useImperativeHandle(r,()=>({nativeElement:je.current,popupElement:ze.current,forceAlign:$t}));const[_t,en]=c.useState(0),[Et,Ft]=c.useState(0),gn=()=>{if(V&&Ie){const ke=Ie.getBoundingClientRect();en(ke.width),Ft(ke.height)}},Ht=()=>{gn(),$t()},ro=ke=>{mt(!1),dt(),x?.(ke),S?.(ke)},br=()=>new Promise(ke=>{gn(),vt(()=>ke)});un(()=>{Nt&&(dt(),Nt(),vt(null))},[Nt]);function Bn(ke,Dt,Yr,Kr,js){Ye[ke]=(_s,...Qr)=>{(!js||!js())&&(Kr?.(_s),Qe(Dt,Yr)),Be[ke]?.(_s,...Qr)}}const ao=Mt.has("touch"),Yo=on.has("touch"),Io=c.useRef(!1);(ao||Yo)&&(Ye.onTouchStart=(...ke)=>{Io.current=!0,Le.current&&Yo?Qe(!1):!Le.current&&ao&&Qe(!0),Be.onTouchStart?.(...ke)}),(st||ht)&&(Ye.onClick=(ke,...Dt)=>{Le.current&&ht?Qe(!1):!Le.current&&st&&(Bt(ke),Qe(!0)),Be.onClick?.(ke,...Dt),Io.current=!1});const Gn=t3(_e,ht||Yo,Ie,be,w,T,De,Qe),pt=Mt.has("hover"),Mn=on.has("hover");let wn,Zn;const Tn=()=>Io.current;if(pt){const ke=Dt=>{Bt(Dt)};Bn("onMouseEnter",!0,R,ke,Tn),Bn("onPointerEnter",!0,R,ke,Tn),wn=Dt=>{(_e||Ct)&&be?.contains(Dt.target)&&Qe(!0,R)},F&&(Ye.onMouseMove=Dt=>{Be.onMouseMove?.(Dt)})}Mn&&(Bn("onMouseLeave",!1,E,void 0,Tn),Bn("onPointerLeave",!1,E,void 0,Tn),Zn=()=>{Qe(!1,E)}),Mt.has("focus")&&Bn("onFocus",!0,N),on.has("focus")&&Bn("onBlur",!1,$),Mt.has("contextMenu")&&(Ye.onContextMenu=(ke,...Dt)=>{Le.current&&on.has("contextMenu")?Qe(!1):(Bt(ke),Qe(!0)),ke.preventDefault(),Be.onContextMenu?.(ke,...Dt)});const Pa=c.useRef(!1);Pa.current||=A||_e||Ct;const bi={...Be,...Ye},Xr={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(ke=>{se[ke]&&(Xr[ke]=(...Dt)=>{bi[ke]?.(...Dt),se[ke](...Dt)})});const kr={x:Fe,y:Ke};qE(_e,Ie,Ht);const Bs=Gr(nt,pi(We)),io=c.cloneElement(We,{...bi,...Xr,ref:Bs});return c.createElement(c.Fragment,null,io,Pa.current&&(!Ee||!B)&&c.createElement(Fd.Provider,{value:ve},c.createElement(Uw,{portal:e,ref:we,prefixCls:i,popup:j,className:U(L,!ne&&it),style:W,target:Ie,onMouseEnter:wn,onMouseLeave:Zn,onPointerEnter:wn,zIndex:X,open:_e,keepDom:Ct,fresh:Q,onClick:k,onPointerDownCapture:Gn,mask:w,motion:te,maskMotion:Y,onVisibleChanged:ro,onPrepare:br,forceRender:A,autoDestroy:ae,getPopupContainer:z,onEsc:ut,align:Rt,arrow:qe,arrowPos:kr,ready:Ve,offsetX:Re,offsetY:Ae,offsetR:Se,offsetB:He,onAlign:$t,stretch:V,targetWidth:_t/ct,targetHeight:Et/Jt,mobile:ie})))})}const gf=a3(dc);function Yw(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const i3=(e,t,o)=>ce.isValidElement(e)?ce.cloneElement(e,mn(o)?o(e.props||{}):o):t;function Ao(e,t){return i3(e,e,t)}const s3=({children:e})=>{const{getPrefixCls:t}=ce.useContext(xt),o=t();return ce.isValidElement(e)?ce.createElement(no,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:i})=>Ao(e,l=>({className:U(l.className,i),style:{...l.style,...r}}))):e},Uu=[null,null];function l3(e){if(Uu[0]!==e){const t={};Object.keys(e).forEach(o=>{t[o]={...e[o],dynamicInset:!1}}),Uu[0]=e,Uu[1]=t}return Uu[1]}const Kw=({children:e})=>{const t=o=>{const{id:r,builtinPlacements:i,popup:l}=o,u=mn(l)?l():l,f=l3(i);return{...o,getPopupContainer:null,arrow:!1,popup:ce.createElement(s3,{key:r},u),builtinPlacements:f}};return ce.createElement(r3,{postTriggerProps:t},e)},Vr=c.createContext(!1),Qw=({children:e,disabled:t})=>{const o=c.useContext(Vr);return c.createElement(Vr.Provider,{value:t??o},e)},ys=c.createContext(void 0),c3=({children:e,size:t})=>{const o=c.useContext(ys);return c.createElement(ys.Provider,{value:t||o},e)};function u3(){const e=c.useContext(Vr),t=c.useContext(ys);return{componentDisabled:e,componentSize:t}}function d3(e,t,o){const r=e||{},i=r.inherit===!1||!t?{...uh,hashed:t?.hashed??uh.hashed,cssVar:t?.cssVar}:t,l=c.useId();return ic(()=>{if(!e)return t;const u={...i.components};Object.keys(e.components||{}).forEach(m=>{u[m]={...u[m],...e.components[m]}});const f=`css-var-${l.replace(/:/g,"")}`,p={prefix:o?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||f};return{...i,...r,token:{...i.token,...r.token},components:u,cssVar:p}},[r,i,o?.prefixCls,l],(u,f)=>u.some((p,m)=>{const h=f[m];return!Xl(p,h,!0)}))}const iC=c.createContext(!0);function f3(e){const t=c.useContext(iC),{children:o}=e,[,r]=ko(),{motion:i}=r,l=c.useRef(!1);return l.current||(l.current=t!==i),l.current?c.createElement(iC.Provider,{value:i},c.createElement(nz,{motion:i},o)):o}const m3=()=>null,p3=({iconPrefixCls:e,csp:t})=>(C6(e,t),null),g3=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],h3=e=>{const{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:i}=e},b3=e=>{const{children:t,csp:o,autoInsertSpaceInButton:r,alert:i,affix:l,anchor:u,app:f,form:p,locale:m,componentSize:h,direction:b,space:v,splitter:x,virtual:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:R,popupOverflow:E,legacyLocale:N,parentContext:$,iconPrefixCls:w,theme:T,componentDisabled:z,segmented:A,statistic:P,spin:j,calendar:L,carousel:I,cascader:H,collapse:W,typography:J,checkbox:q,descriptions:D,divider:X,drawer:V,skeleton:Z,steps:Q,image:B,layout:F,list:k,mentions:G,modal:K,progress:te,result:Y,slider:ie,breadcrumb:se,masonry:ae,menu:me,pagination:ne,input:ue,inputPassword:ye,inputSearch:ve,textArea:Ee,otp:Ce,empty:be,badge:ge,borderBeam:ze,radio:we,rate:Ie,ribbon:Oe,switch:je,transfer:nt,avatar:Ye,message:De,tag:qe,table:Je,card:Ue,cardMeta:Pe,tabs:_e,timeline:We,timePicker:Be,upload:he,notification:Te,tree:Le,colorPicker:Ge,datePicker:ot,rangePicker:Qe,flex:ut,wave:Ct,dropdown:mt,warning:Nt,tour:vt,tooltip:Pt,popover:et,popconfirm:Bt,qrcode:Ve,floatButton:Re,floatButtonGroup:Ae,variant:Se,inputNumber:He,treeSelect:Fe,watermark:Ke}=e,ct=c.useMemo(()=>Wt(m)&&Object.prototype.hasOwnProperty.call(m,"default")&&m.default?.locale?m.default:m,[m]),Jt=c.useCallback((Et,Ft)=>{const{prefixCls:gn}=e;if(Ft)return Ft;const Ht=gn||$.getPrefixCls("");return Et?`${Ht}-${Et}`:Ht},[$.getPrefixCls,e.prefixCls]),Rt=w||$.iconPrefixCls||a0,dt=o||$.csp,Mt=d3(T,$.theme,{prefixCls:Jt("")}),on={csp:dt,autoInsertSpaceInButton:r,alert:i,affix:l,anchor:u,app:f,locale:ct||N,direction:b,space:v,splitter:x,virtual:C,popupMatchSelectWidth:R??S,popupOverflow:E,getPrefixCls:Jt,iconPrefixCls:Rt,theme:Mt,segmented:A,statistic:P,spin:j,calendar:L,carousel:I,cascader:H,collapse:W,typography:J,checkbox:q,descriptions:D,divider:X,drawer:V,skeleton:Z,steps:Q,image:B,input:ue,inputPassword:ye,inputSearch:ve,textArea:Ee,otp:Ce,layout:F,list:k,mentions:G,modal:K,progress:te,result:Y,slider:ie,breadcrumb:se,masonry:ae,menu:me,pagination:ne,empty:be,badge:ge,borderBeam:ze,radio:we,rate:Ie,ribbon:Oe,switch:je,transfer:nt,avatar:Ye,message:De,tag:qe,table:Je,card:Ue,cardMeta:Pe,tabs:_e,timeline:We,timePicker:Be,upload:he,notification:Te,tree:Le,colorPicker:Ge,datePicker:ot,rangePicker:Qe,flex:ut,wave:Ct,dropdown:mt,warning:Nt,tour:vt,tooltip:Pt,popover:et,popconfirm:Bt,qrcode:Ve,floatButton:Re,floatButtonGroup:Ae,variant:Se,inputNumber:He,treeSelect:Fe,watermark:Ke},st={...$};Object.keys(on).forEach(Et=>{on[Et]!==void 0&&(st[Et]=on[Et])}),g3.forEach(Et=>{const Ft=e[Et];Ft&&(st[Et]=Ft)}),typeof r<"u"&&(st.button={autoInsertSpace:r,...st.button});const ht=ic(()=>st,st,(Et,Ft)=>{const gn=Object.keys(Et),Ht=Object.keys(Ft);return gn.length!==Ht.length||gn.some(ro=>Et[ro]!==Ft[ro])}),{layer:$t}=c.useContext(sc),Xe=c.useMemo(()=>({prefixCls:Rt,csp:dt,layer:$t?"antd":void 0,zeroRuntime:!!$t||Mt?.zeroRuntime}),[Rt,dt,$t,Mt?.zeroRuntime]);let it=c.createElement(c.Fragment,null,c.createElement(p3,{iconPrefixCls:Rt,csp:dt}),c.createElement(m3,{dropdownMatchSelectWidth:S}),t);const _t=c.useMemo(()=>ls(Oa.Form?.defaultValidateMessages||{},ht.locale?.Form?.defaultValidateMessages||{},ht.form?.validateMessages||{},p?.validateMessages||{}),[ht,p?.validateMessages]);Object.keys(_t).length>0&&(it=c.createElement(zz.Provider,{value:_t},it)),ct&&(it=c.createElement(Hz,{locale:ct,_ANT_MARK__:_z},it)),it=c.createElement(m0.Provider,{value:Xe},it),h&&(it=c.createElement(c3,{size:h},it)),it=c.createElement(f3,null,it),Pt?.unique&&(it=c.createElement(Kw,null,it));const en=c.useMemo(()=>{const{algorithm:Et,token:Ft,components:gn,cssVar:Ht,...ro}=Mt||{},br=Et&&(!Array.isArray(Et)||Et.length>0)?qg(Et):gw,Bn={};Object.entries(gn||{}).forEach(([Yo,Io])=>{const Gn={...Io};"algorithm"in Gn&&(Gn.algorithm===!0?Gn.theme=br:(Array.isArray(Gn.algorithm)||mn(Gn.algorithm))&&(Gn.theme=qg(Gn.algorithm)),delete Gn.algorithm),Bn[Yo]=Gn});const ao={...Ql,...Ft};return{...ro,theme:br,token:ao,components:Bn,override:{override:ao,...Bn},cssVar:Ht}},[Mt]);return T&&(it=c.createElement(hw.Provider,{value:en},it)),ht.warning&&(it=c.createElement(zO.Provider,{value:ht.warning},it)),z!==void 0&&(it=c.createElement(Qw,{disabled:z},it)),c.createElement(xt.Provider,{value:ht},it)},Aa=e=>{const t=c.useContext(xt),o=c.useContext(b0);return c.createElement(b3,{parentContext:t,legacyLocale:o,...e})};Aa.ConfigContext=xt;Aa.SizeContext=ys;Aa.config=h3;Aa.useConfig=u3;Object.defineProperty(Aa,"SizeContext",{get:()=>ys});function v3(){const[e,t]=c.useState({}),o=c.useCallback((r,i)=>{if(!i){t(u=>{if(!(r in u))return u;const f={...u};return delete f[r],f});return}const l={width:i.offsetWidth,height:i.offsetHeight};t(u=>{const f=u[r];return f&&f.width===l.width&&f.height===l.height?u:{...u,[r]:l}})},[]);return[e,o]}function y3(e,t,o=0){const[r,i]=v3(),[l,u,f,p]=c.useMemo(()=>{let m=0,h=0;const b=t?.threshold??0,v=new Map;let x,C;return e.slice().reverse().forEach((S,R)=>{const E=String(S.key),N=r[E]?.height??0,$=t&&R>0?m+(t.offset??0)-N:m;v.set(E,$),R===0&&(x=N,C=r[E]?.width??0),(!t||R<b)&&(h=Math.max(h,$+N)),t?m=$+N:m+=N+o}),[v,h,x,C]},[e,o,r,t]);return[l,i,u,f,p]}const sC=8,lC=3,x3=e=>{const t={offset:sC,threshold:lC};return e&&typeof e=="object"&&(t.offset=e.offset??sC,t.threshold=e.threshold??lC),[!!e,t]};function S3(e,t,o){const i=Math.max(typeof e=="number"?e:0,0)*1e3,l=ft(t),u=ft(o),[f,p]=c.useState(i>0),m=c.useRef(0),h=c.useRef(null);function b(){const C=Date.now(),S=h.current;S!==null&&(m.current+=C-S),h.current=C}const v=c.useCallback(()=>{b(),p(!1)},[]),x=c.useCallback(()=>{i>0?(h.current=Date.now(),p(!0)):u(0)},[i]);return c.useEffect(()=>{m.current=0,p(i>0)},[i]),c.useEffect(()=>{if(!f)return;let C=null;function S(){b(),m.current>=i?(u(1),l()):(u(Math.min(m.current/i,1)),C=Lt(S))}return S(),()=>{Lt.cancel(C)}},[i,f]),[x,v]}function C3(e){const t=c.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),o=c.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),r=c.useMemo(()=>Qn(o,!0),[o]);return[!!e,o,r]}const $3=({className:e,style:t,percent:o})=>c.createElement("progress",{className:e,max:"100",value:o,style:t});function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},qd.apply(this,arguments)}const E3=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,classNames:l,styles:u,components:f,title:p,description:m,icon:h,actions:b,role:v,closable:x,offset:C,notificationIndex:S,stackInThreshold:R,props:E,duration:N=4.5,showProgress:$,hovering:w,pauseOnHover:T=!0,onClick:z,onMouseEnter:A,onMouseLeave:P,onClose:j}=e,[L,I]=c.useState(0),H=`${o}-notice`,[W,J,q]=C3(x),D=ft(()=>{J.onClose?.(),j?.()}),[X,V]=c.useState(!1),[Z,Q]=S3(N,D,I),B=100-Math.min(Math.max(L*100,0),100),F=f?.progress||$3;c.useEffect(()=>{T&&(w?Q():X||Z())},[w,X,Q,Z,T]);function k(be){V(!0),T&&Q(),A?.(be)}function G(be){V(!1),T&&!w&&Z(),P?.(be)}function K(be){be.preventDefault(),be.stopPropagation(),D()}const te=c.useRef(C);C!==void 0&&(te.current=C);const Y=c.useRef(S);S!==void 0&&(Y.current=S);const ie=C??te.current,se=S??Y.current??0,ae=p!=null?c.createElement("div",{className:U(`${H}-title`,l?.title),style:u?.title},p):null,me=m!=null?c.createElement("div",{className:U(`${H}-description`,l?.description),style:u?.description},m):null,ne=ae!==null,ue=me!==null;let ye=null;ne&&ue?ye=c.createElement("div",{className:U(`${H}-section`,l?.section),style:u?.section},ae,me):ye=ae||me,h!=null&&(ye=c.createElement("div",{className:U(`${H}-wrapper`,l?.wrapper),style:u?.wrapper},c.createElement("div",{className:U(`${H}-icon`,l?.icon),style:u?.icon},h),ye));const ve=b?c.createElement("div",{className:U(`${H}-actions`,l?.actions),style:u?.actions},b):null,Ee={"--notification-index":se,...u?.root,...i};ie!==void 0&&(Ee["--notification-y"]=`${ie}px`);const Ce=v??E?.role??"alert";return c.createElement("div",qd({},E,{ref:t,role:Ce,"data-notification-index":se,className:U(H,r,l?.root,{[`${H}-closable`]:W,[`${H}-stack-in-threshold`]:R}),style:Ee,onClick:z,onMouseEnter:k,onMouseLeave:G}),ye,ve,W&&c.createElement("button",qd({className:U(`${H}-close`,l?.close),"aria-label":"Close"},q,{style:u?.close,onClick:K}),J.closeIcon),$&&typeof N=="number"&&N>0&&c.createElement(F,{className:U(`${H}-progress`,l?.progress),percent:B,style:u?.progress}))}),Zw=c.createContext({}),Jw=({children:e,classNames:t})=>{const o=c.useMemo(()=>({classNames:t}),[t]);return c.createElement(Zw.Provider,{value:o},e)};function Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Th.apply(this,arguments)}const w3=c.forwardRef((e,t)=>{const{listPrefixCls:o,height:r,topNoticeHeight:i=0,topNoticeWidth:l=0,className:u,style:f,...p}=e,m=`${o}-content`,h=c.useRef(r),b=h.current,v=r<b?"decrease":"increase";h.current=r;const x={...f,height:r,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${l}px`};return c.createElement("div",Th({},p,{className:U(m,`${m}-${v}`,u),style:x,ref:t}))});function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ud.apply(this,arguments)}const e2=["wrapper","root","icon","section","title","description","actions","close","progress"];function N3(e){return e2.reduce((t,o)=>(t[o]=U(...e.map(r=>r?.[o])),t),{})}function R3(e){return e2.reduce((t,o)=>(t[o]=Object.assign({},...e.map(r=>r?.[o])),t),{})}function M3(e,t){const o=String(t),r=e.findIndex(i=>i.key===o);if(r!==-1)return e.length-r-1}const T3=e=>{const{config:t,components:o,contextClassNames:r,classNames:i,styles:l,className:u,style:f,nodeRef:p,listHovering:m,stackEnabled:h,pauseOnHover:b,setNodeSize:v,onNoticeClose:x,...C}=e,{key:S,placement:R,...E}=t,N=String(S),$=c.useCallback(T=>{v(N,T)},[v,N]),w=Gr(p,$);return c.createElement(E3,Ud({},E,C,{ref:w,className:U(r?.notice,t.className,u),style:{...f,...t.style},classNames:N3([i,t.classNames]),styles:R3([l,t.styles]),components:{...o,...t.components},hovering:h&&m,pauseOnHover:t.pauseOnHover??b,onClose:()=>{t.onClose?.(),x?.(S)}}))},O3=e=>{const{configList:t=[],prefixCls:o="rc-notification",pauseOnHover:r,classNames:i,styles:l,components:u,stack:f,motion:p,placement:m,className:h,style:b,onNoticeClose:v,onAllRemoved:x}=e,{classNames:C}=c.useContext(Zw),S=c.useMemo(()=>t.map(V=>({config:V,key:String(V.key)})),[t]),R=typeof p=="function"?p(m):p,[E,{offset:N,threshold:$}]=x3(f),[w,T]=c.useState(!1),z=E&&(w||S.length<=$),A=c.useMemo(()=>{if(!(!E||z))return{offset:N,threshold:$}},[z,N,E,$]),[P,j]=c.useState(0),L=c.useRef(null),[I,H,W,J,q]=y3(t,A,P),D=!!t.length;c.useEffect(()=>{const V=L.current;if(!V)return;const{gap:Z,rowGap:Q}=window.getComputedStyle(V),B=parseFloat(Q||Z)||0;j(F=>F===B?F:B)},[D]);const X=`${o}-list`;return c.createElement("div",{className:U(o,X,`${o}-${m}`,C?.list,h,i?.list,{[`${o}-stack`]:E,[`${o}-stack-expanded`]:z,[`${X}-hovered`]:w}),onMouseEnter:()=>{T(!0)},onMouseLeave:()=>{T(!1)},style:{...l?.list,...b}},c.createElement(w3,{listPrefixCls:X,height:W,topNoticeHeight:J,topNoticeWidth:q,className:i?.listContent,style:l?.listContent,ref:L},c.createElement(vz,Ud({component:!1,keys:S,motionAppear:!0},R,{onAllRemoved:()=>{m&&x?.(m)}}),({config:V,className:Z,style:Q},B)=>{const{key:F}=V,k=String(F),G=M3(S,F),K=E&&G!==void 0&&G<$;return c.createElement(T3,{key:F,config:V,components:u,contextClassNames:C,classNames:i,styles:l,className:Z,style:Q,nodeRef:B,prefixCls:o,offset:I.get(k),notificationIndex:G,stackInThreshold:K,listHovering:w,stackEnabled:E,pauseOnHover:r,setNodeSize:H,onNoticeClose:v})})))},z3=c.forwardRef((e,t)=>{const{prefixCls:o="rc-notification",container:r,motion:i,maxCount:l,pauseOnHover:u,classNames:f,styles:p,components:m,className:h,style:b,onAllRemoved:v,stack:x,renderNotifications:C}=e,[S,R]=c.useState([]),[E,N]=c.useState({}),$=c.useRef(!1);c.useImperativeHandle(t,()=>({open:z=>{R(A=>{let P=[...A];const j=P.findIndex(I=>I.key===z.key),L={...z};return j>=0?(L.times=(A[j]?.times??0)+1,P[j]=L):(L.times=0,P.push(L)),l&&l>0&&P.length>l&&(P=P.slice(-l)),P})},close:z=>{R(A=>A.filter(P=>P.key!==z))},destroy:()=>{R([])}})),c.useEffect(()=>{const z={};S.forEach(A=>{const P=A.placement??"topRight";z[P]=z[P]||[],z[P].push(A)}),Object.keys(E).forEach(A=>{z[A]=z[A]||[]}),N(z)},[S]);const w=ft(z=>{N(A=>{const P={...A};return(P[z]||[]).length||delete P[z],P})});if(c.useEffect(()=>{Object.keys(E).length>0?$.current=!0:$.current&&(v?.(),$.current=!1)},[E,v]),!r)return null;const T=Object.keys(E);return di.createPortal(c.createElement(c.Fragment,null,T.map(z=>{const A=c.createElement(O3,{key:z,configList:E[z],placement:z,prefixCls:o,pauseOnHover:u,classNames:f,styles:p,components:m,className:h?.(z),style:b?.(z),motion:i,stack:x,onNoticeClose:P=>{R(j=>j.filter(L=>L.key!==P))},onAllRemoved:w});return C?c.cloneElement(C(A,{prefixCls:o,key:z}),{key:z}):A})),r)}),A3=()=>document.body;let cC=0;function I3(...e){const t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{const i=o[r];i!==void 0&&(t[r]=i)})}),t}function t2(e={}){const{getContainer:t=A3,motion:o,prefixCls:r,placement:i,closable:l,duration:u,showProgress:f,pauseOnHover:p,classNames:m,styles:h,components:b,maxCount:v,className:x,style:C,onAllRemoved:S,stack:R,renderNotifications:E}=e,N={placement:i,closable:l,duration:u,showProgress:f},[$,w]=c.useState(),T=c.useRef(null),[z,A]=c.useState([]),P=c.createElement(z3,{container:$,ref:T,prefixCls:r,motion:o,maxCount:v,pauseOnHover:p,classNames:m,styles:h,components:b,className:x,style:C,onAllRemoved:S,stack:R,renderNotifications:E}),j=ft(I=>{const H=I3(N,I);(H.key===null||H.key===void 0)&&(H.key=`rc-notification-${cC}`,cC+=1),A(W=>[...W,{type:"open",config:H}])}),L=c.useMemo(()=>({open:j,close:I=>{A(H=>[...H,{type:"close",key:I}])},destroy:()=>{A(I=>[...I,{type:"destroy"}])}}),[]);return c.useEffect(()=>{w(t())}),c.useEffect(()=>{T.current&&z.length&&(z.forEach(I=>{switch(I.type){case"open":T.current?.open(I.config);break;case"close":T.current?.close(I.key);break;case"destroy":T.current?.destroy();break}}),A(I=>{const H=I.filter(W=>!z.includes(W));return H.length===I.length?I:H}))},[z]),[L,P]}const n2=(e,t)=>c.useMemo(()=>{const o=e??t;return o?{...Wt(t)?t:{},...Wt(o)?o:{}}:!1},[e,t]);function o2(e,t){return{...Kn(e)&&{"--notification-top":re(e)},...Kn(t)&&{"--notification-bottom":re(t)}}}function P3(e){return{motionName:`${e}-fade`}}function B3(e,t,o){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:o?.closeIcon}var Wu={},uC;function j3(){if(uC)return Wu;uC=1,Object.defineProperty(Wu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return Wu.default=e,Wu}var _3=j3();const H3=Xt(_3);function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Oh.apply(this,arguments)}const D3=(e,t)=>c.createElement(Zt,Oh({},e,{ref:t,icon:H3})),hf=c.forwardRef(D3);function Wo(...e){return e.find(t=>t!==void 0)}const r2=e=>{const{allowClear:t,clearIcon:o,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:l,componentName:u}=e;return c.useMemo(()=>t??r??l?{clearIcon:Wo(Wt(t)?t?.clearIcon:o,Wt(r)?r?.clearIcon:i,ce.createElement(gi,null)),disabled:(Wt(t)?t?.disabled:void 0)??(Wt(r)?r?.disabled:void 0)}:!1,[t,o,r,i,l])},xs=e=>{if(!e)return;const{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},a2={},dC=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Kn(e)&&!Kn(t))return null;let o={closeIcon:typeof t!="boolean"&&Kn(t)?t:void 0};return Wt(e)&&(o={...o,...e}),o},L3=(e,t,o)=>e===!1?!1:e?rS(o,t,e):t===!1?!1:t?rS(o,t):o.closable?o:!1,V3=(e,t,o)=>{const{closeIconRender:r}=t,{closeIcon:i,...l}=e;let u=i;const f=Qn(l,!0);return Kn(u)&&(r&&(u=r(u)),u=ce.isValidElement(u)?ce.cloneElement(u,{"aria-label":o,...u.props,...f}):ce.createElement("span",{"aria-label":o,...f},u)),[u,f]},i2=(e,t,o=a2,r="Close")=>{const i=dC(e?.closable,e?.closeIcon),l=dC(t?.closable,t?.closeIcon),u={closeIcon:ce.createElement(gr,null),...o},f=L3(i,l,u),p=typeof f!="boolean"?!!f?.disabled:!1;if(f===!1)return[!1,null,p,{}];const[m,h]=V3(f,u,r);return[!0,m,p,h]},s2=(e,t,o=a2)=>{const[r]=za("global",Oa.global);return ce.useMemo(()=>i2(e,t,{closeIcon:ce.createElement(gr,null),...o},r.close),[e,t,o,r.close])},F3=()=>ce.useReducer(e=>e+1,0),zh=(e,t)=>{let o={};return Wt(e)&&(o=e),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},l2=(e,t,o,r)=>c.useMemo(()=>{const i=zh(e,r),l=zh(t),u={blur:!1,...l,...i,closable:i.closable??r??l.closable??!0},f=u.blur?`${o}-mask-blur`:void 0;return[u.enabled!==!1,{mask:f},!!u.closable]},[e,t,o,r]),fC=e=>e==="horizontal"||e==="vertical",c2=(e,t,o)=>c.useMemo(()=>{const r=fC(e);let i;return r?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=fC(o)?o:"horizontal",[i,i==="vertical"]},[o,e,t]),q3=()=>{const[e,t]=c.useState([]),o=c.useCallback(r=>(t(i=>[].concat(ho(i),[r])),()=>{t(i=>i.filter(l=>l!==r))}),[]);return[e,o]},bf=ce.createContext(void 0),$a=100,U3=10,v0=$a*U3,u2={Modal:$a,Drawer:$a,Popover:$a,Popconfirm:$a,Tooltip:$a,Tour:$a,FloatButton:$a},W3={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},G3=e=>e in u2,mc=(e,t)=>{const[,o]=ko(),r=ce.useContext(bf),i=G3(e);let l;if(t!==void 0)l=[t,t];else{let u=r??0;i?u+=(r?0:o.zIndexPopupBase)+u2[e]:u+=W3[e],l=[r===void 0?t:u,u]}return l},X3=e=>{const{motionDurationMid:t,motionEaseInOut:o}=e,r=`${t} ${o}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(i=>`${i} ${r}`).join(", ")}},d2=(e,t)=>{const{componentCls:o,antCls:r,colorSuccess:i,colorInfo:l,colorWarning:u,colorError:f,colorTextHeading:p,colorText:m,boxShadow:h,borderRadiusLG:b,fontSize:v,lineHeight:x,notificationBg:C,notificationPadding:S,notificationMarginEdge:R,margin:E,calc:N}=e,$=`${o}-notice`,[w,T]=Vt(r,"notification");return{[$]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${re(N(R).mul(2).equal())})`,padding:S,pointerEvents:"auto",[w("icon-font-size")]:t.iconFontSize,[w("title-font-size")]:t.titleFontSize,[w("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:m,background:C,borderRadius:b,boxShadow:h,fontSize:v,lineHeight:x,wordWrap:"break-word",overflow:"visible",...X3(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:N(E).mul(-1).equal(),height:E,content:'""'},...t.typeStyle&&{"&-success":{background:T("color-success-bg",C)},"&-error":{background:T("color-error-bg",C)},"&-info":{background:T("color-info-bg",C)},"&-warning":{background:T("color-warning-bg",C)}}},[`${$}-wrapper`]:{display:"flex",...t.contentStyle},[`${$}-title`]:{color:p,fontSize:T("title-font-size"),lineHeight:T("title-line-height")},[`${$}-icon`]:{flex:"none",fontSize:T("icon-font-size"),lineHeight:1,[`&${$}-icon-success`]:{color:i},[`&${$}-icon-info, &${$}-icon-loading`]:{color:l},[`&${$}-icon-warning`]:{color:u},[`&${$}-icon-error`]:{color:f}}}},f2=e=>{const{componentCls:t,progressBg:o,notificationProgressHeight:r,fontSize:i,borderRadiusLG:l,width:u,notificationIconSize:f,colorText:p,motionDurationMid:m,fontSizeLG:h,lineHeightLG:b,marginSM:v,marginXS:x,paddingLG:C,notificationPaddingVertical:S,notificationPaddingHorizontal:R,notificationCloseButtonSize:E,colorIcon:N,borderRadiusSM:$,colorIconHover:w,colorBgTextHover:T,colorBgTextActive:z}=e,A=`${t}-notice`;return{...d2(e,{width:u,iconFontSize:f,titleFontSize:h,titleLineHeight:b,contentStyle:{alignItems:"flex-start",gap:v},typeStyle:!0}),[`${A}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:x,minWidth:0},[`${A}-description`]:{color:p,fontSize:i},[`${A}-closable`]:{[`${A}-title, ${A}-description`]:{paddingInlineEnd:C},[`${A}-title + ${A}-description`]:{paddingInlineEnd:0}},[`${A}-close`]:{position:"absolute",top:S,insetInlineEnd:R,display:"flex",alignItems:"center",justifyContent:"center",width:E,height:E,color:N,background:"none",border:"none",borderRadius:$,outline:"none",transition:["color","background-color"].map(P=>`${P} ${m}`).join(", "),"&:hover":{color:w,backgroundColor:T},"&:active":{backgroundColor:z},...Lr(e)},[`${A}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${re(l)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:l},right:{_skip_check_:!0,value:l},"&, &::-webkit-progress-bar":{borderRadius:l,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:o},"&::-webkit-progress-value":{borderRadius:l,background:o}},[`${A}-actions`]:{float:"right",marginTop:v}}},k3=e=>{const{componentCls:t,width:o}=e,r=`${t}-notice`,i=`${r}-actions`,l=f2(e);return{[`${r}-pure-panel`]:{width:o,maxWidth:"100%",...l,[r]:{...l[r],position:"relative",width:"100%",maxWidth:"100%"},[i]:{...l[i],float:"none",textAlign:"end"}}}},Y3=e=>{const{componentCls:t}=e;return{[t]:f2(e)}},K3=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Q3="--notification-margin-edge",Z3=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),mC=e=>{const t=e?.x??"0",o=e?.y??"0";return`translate3d(${t}, ${o}, 0) scale(var(--notification-scale, 1))`},J3=(e,t)=>{const o=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:i,inlineEnd:l}=Z3(o,r),u=e==="top"||e==="bottom",f=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:o,blockEnd:i,horizontal:r,inlineEnd:l,motionOffset:u?{x:"-50%",y:f}:{x:f},baseMotionOffset:u?{x:"-50%"}:void 0,isCenterPlacement:u}},e5=e=>e==="bottom"?"column-reverse":"column",t5=e=>{const t=`var(${Q3}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},n5=e=>e==="bottom"?"center top":"center bottom",m2=e=>re(e.calc(e.marginXXL).mul(-1).equal()),o5=e=>{const t=m2(e);return`inset(${t} ${t} ${t} ${t})`},r5=(e,t)=>{const o=m2(e);return t==="bottom"?`inset(${o} ${o} 50% ${o})`:`inset(50% ${o} ${o} ${o})`},a5=(e,t)=>{const{componentCls:o}=e,{placement:r,vertical:i,blockEnd:l,horizontal:u,inlineEnd:f,isCenterPlacement:p}=t,m=`${o}-notice`,h=`${m}${o}-fade`,b=mC(t.motionOffset),v=mC(t.baseMotionOffset),x=n5(i);return{[`&${o}-${r}`]:{[i]:t5(i),[l]:"auto",display:"flex",flexDirection:e5(i),...p?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[u]:0,[f]:"auto"},[m]:{[i]:"var(--notification-y, 0)",...p?{left:"50%",transform:v}:{[u]:"var(--notification-x, 0)"},transformOrigin:x},[`${h}-appear-prepare, ${h}-enter-prepare`]:{opacity:0,transform:b,transition:"none"},[`${h}-appear-start, ${h}-enter-start`]:{opacity:0,transform:b},[`${h}-appear-active, ${h}-enter-active`]:{opacity:1,transform:v},[`${h}-leave-start`]:{opacity:1,transform:v},[`${h}-leave-active`]:{opacity:0,transform:b},[`&${o}-stack:not(${o}-stack-expanded)`]:{[m]:{clipPath:r5(e,i)},[`${m}[data-notification-index='0']`]:{clipPath:o5(e)}}}}},i5=(e,t=K3)=>{const{notificationMotionOffset:o}=e,r=re(o);return{...t.reduce((i,l)=>({...i,...a5(e,J3(l,r))}),{})}},s5=e=>{const{componentCls:t}=e;return{[t]:i5(e)}},l5=3,p2=e=>({zIndexPopup:e.zIndexPopupBase+v0+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),y0=e=>{const t=e.paddingMD,o=e.paddingLG;return Gt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},c5=e=>`inset(${e} ${e} ${e} ${e})`,u5=e=>{const{componentCls:t,motionDurationMid:o,motionDurationSlow:r,motionEaseInOut:i}=e,u=`${`${t}-list`}-content`;return{[u]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${u}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${o}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},d5=(e,t)=>{const{componentCls:o,notificationMarginEdge:r}=e,i="--notification-margin-edge",l=`${o}-notice`,u=`${o}-list`,f=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",p=t.stackVisibleCount??l5,m=`${l}:nth-last-child(n + ${p+1})`,h=re(e.calc(e.marginXXL).mul(-1).equal()),b=c5(h);return{[o]:{...Dn(e),[i]:re(r),position:"fixed",zIndex:e.zIndexPopup,width:f,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${o}-hook-holder`]:{position:"relative"},[`&${u}`]:{maxHeight:"100vh",padding:`var(${i})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...u5(e),[`&${o}-stack`]:{[l]:{clipPath:b},[`&:not(${o}-stack-expanded)`]:{[l]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${l}:not(${l}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[m]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${l}-actions`]:{float:"left"}}}}};ff(["Notification","PurePanel"],e=>k3(y0(e)),p2);const g2=(e,t)=>{const o=t.itemStyle??Y3;return[d5(e,t),o(e),s5(e)]},f5=Qt("Notification",e=>{const t=y0(e);return g2(t,{listWidthKey:"width"})},p2),h2=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),o=e.paddingSM;return Gt(y0(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:o})},b2=e=>({zIndexPopup:e.zIndexPopupBase+v0+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),x0=e=>{const{fontSize:t,fontSizeLG:o,lineHeight:r}=e;return d2(e,{width:"max-content",iconFontSize:o,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},m5=e=>{const{componentCls:t}=e,o=`${t}-notice`,r=`${t}-list-content`,i=x0(e),{"&::after":l,...u}=i[o],f={...u,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":{...f,top:`calc(var(--top-notificiation-height) - ${re(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${re(e.margin)})`},"&::after":{...f,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${re(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},p5=e=>{const{componentCls:t}=e,o=`${t}-notice`,r=x0(e);return{[`${o}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[o]:{...r[o],position:"relative",width:"max-content",maxWidth:"100%"}}}};ff(["Message","PurePanel"],e=>p5(h2(e)),b2);const g5=e=>({[e.componentCls]:x0(e)}),h5=Qt("Message",e=>{const t=h2(e);return[g2(t,{stackVisibleCount:1,itemStyle:g5}),m5(t)]},b2),b5={info:c.createElement(pf,null),success:c.createElement(uc,null),error:c.createElement(gi,null),warning:c.createElement(mf,null),loading:c.createElement(hf,null)},v5=(e,t)=>t||e&&b5[e]||null;function y5(e,t){return{motionName:t??`${e}-fade`}}function x5(e){let t;const o=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t?.()};return r.then=(i,l)=>o.then(i,l),r.promise=o,r}const S5=8,C5=3,$5=!1,E5=({children:e,prefixCls:t})=>{const o=hr(t),[r,i]=h5(t,o);return c.createElement(Jw,{classNames:{list:U(r,i,o)}},e)},w5=(e,{prefixCls:t,key:o})=>c.createElement(E5,{prefixCls:t,key:o},e),N5=c.forwardRef((e,t)=>{const{top:o,prefixCls:r,getContainer:i,maxCount:l,duration:u=C5,rtl:f,classNames:p,styles:m,transitionName:h,pauseOnHover:b=!0,stack:v,onAllRemoved:x}=e,{getPrefixCls:C,direction:S,getPopupContainer:R}=Kt("message"),{message:E}=c.useContext(xt),N=r||C("message"),[$,w]=dn([E?.classNames,p],[E?.styles,m],{props:e}),T=()=>o2(o??S5),z=()=>U({[`${N}-rtl`]:f??S==="rtl"}),A=()=>y5(N,h),P=n2(v,$5),[j,L]=t2({prefixCls:N,style:T,className:z,motion:A,closable:!1,duration:u,getContainer:()=>i?.()||R?.()||document.body,maxCount:l,onAllRemoved:x,classNames:$,styles:w,renderNotifications:w5,pauseOnHover:b,stack:P});return c.useImperativeHandle(t,()=>({...j,prefixCls:N,message:E})),L});let pC=0;function R5(e){const t=c.useRef(null);return[c.useMemo(()=>{const r=p=>{t.current?.close(p)},i=p=>{if(!t.current){const q=()=>{};return q.then=()=>{},q}const{open:m,prefixCls:h,message:b}=t.current,v=b?.className||{},x=b?.style||{},C=`${h}-notice`,{content:S,icon:R,type:E,key:N,className:$,style:w,onClose:T,classNames:z={},styles:A={},...P}=p;let j=N;Kn(j)||(pC+=1,j=`antd-message-${pC}`);const L={...e,...p},I=vs(z,{props:L}),H=vs(A,{props:L}),W=v5(E,R),J=E?`${C}-icon-${E}`:void 0;return x5(q=>(m({...P,key:j,icon:W,title:S,classNames:{...I,wrapper:U(E&&`${h}-${E}`,I?.wrapper),icon:U(J,I?.icon)},styles:H,placement:"top",className:U({[`${C}-${E}`]:E},$,v),style:{...x,...w},onClose:()=>{T?.(),q()}}),()=>{r(j)}))},u={open:i,destroy:p=>{p!==void 0?r(p):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(p=>{const m=(h,b,v)=>{let x;Wt(h)&&"content"in h?x=h:x={content:h};let C,S;mn(b)?S=b:(C=b,S=v);const R={onClose:S,duration:C,...x,type:p};return i(R)};u[p]=m}),u},[]),c.createElement(N5,{key:"message-holder",...e,ref:t})]}function M5(e){return R5(e)}const og=()=>({height:0,opacity:0}),gC=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),T5=e=>({height:e?.offsetHeight??0}),rg=(e,t)=>t?.deadline===!0||Pw(t)&&t.propertyName==="height",O5=(e=Ld)=>({motionName:`${e}-motion-collapse`,onAppearStart:og,onEnterStart:og,onAppearActive:gC,onEnterActive:gC,onLeaveStart:T5,onLeaveActive:og,onAppearEnd:rg,onEnterEnd:rg,onLeaveEnd:rg,motionDeadline:500}),Fr=(e,t,o)=>o!==void 0?o:`${e}-${t}`,z5=e=>{const{componentCls:t,colorPrimary:o,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:l,antCls:u}=e,[,f]=Vt(u,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:f("color",o),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(p=>`${p} ${l}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(p=>`${p} ${r} ${i}`).join(",")}}}}},A5=S6("Wave",z5),S0=`${Ld}-wave-target`,hC=e=>e?Ra(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function I5(e,t=null){const o=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:l}=o;return t&&hC(o[t])?o[t]:[r,i,l].find(hC)??null}function ag(e){return Number.isNaN(e)?0:e}const P5=e=>{const{className:t,target:o,component:r,colorSource:i}=e,l=c.useRef(null),{getPrefixCls:u}=c.useContext(xt),f=u(),[p]=Vt(f,"wave"),[m,h]=c.useState(null),[b,v]=c.useState([]),[x,C]=c.useState(0),[S,R]=c.useState(0),[E,N]=c.useState(0),[$,w]=c.useState(0),[T,z]=c.useState(!1),A={left:x,top:S,width:E,height:$,borderRadius:b.map(L=>`${L}px`).join(" ")};m&&(A[p("color")]=m);function P(){const L=getComputedStyle(o);h(I5(o,i));const I=L.position==="static",{borderLeftWidth:H,borderTopWidth:W}=L;C(I?o.offsetLeft:ag(-Number.parseFloat(H))),R(I?o.offsetTop:ag(-Number.parseFloat(W))),N(o.offsetWidth),w(o.offsetHeight);const{borderTopLeftRadius:J,borderTopRightRadius:q,borderBottomLeftRadius:D,borderBottomRightRadius:X}=L;v([J,q,X,D].map(V=>ag(Number.parseFloat(V))))}if(c.useEffect(()=>{if(o){const L=Lt(()=>{P(),z(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(P),I.observe(o)),()=>{Lt.cancel(L),I?.disconnect()}}},[o]),!T)return null;const j=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(S0);return c.createElement(no,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(L,I)=>{if(I.deadline||Pw(I)&&I.propertyName==="opacity"){const H=l.current?.parentElement;OO(H).then(()=>{H?.remove()})}return!1}},({className:L},I)=>c.createElement("div",{ref:oo(l,I),className:U(t,L,{"wave-quick":j}),style:A}))},B5=(e,t)=>{const{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),TO(c.createElement(P5,{...t,target:e}),r)},j5=(e,t,o,r)=>{const{wave:i}=c.useContext(xt),[,l,u]=ko(),f=ft(h=>{const b=e.current;if(i?.disabled||!b)return;const v=b.querySelector(`.${S0}`)||b,{showEffect:x}=i||{};(x||B5)(v,{className:t,token:l,component:o,event:h,hashId:u,colorSource:r})}),p=c.useRef(null);return c.useEffect(()=>()=>{Lt.cancel(p.current)},[]),h=>{Lt.cancel(p.current),p.current=Lt(()=>{f(h)})}},bC={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},v2=e=>{const{children:t,disabled:o,component:r,colorSource:i}=e,{getPrefixCls:l,wave:u}=c.useContext(xt),f=c.useRef(null),p=l("wave"),m=A5(p),h=j5(f,U(p,m),r,i);if(ce.useEffect(()=>{const v=f.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||o)return;const x=R=>{!t0(R.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||h(R)},C=u?.triggerType,S=C&&C in bC?bC[C]:"click";return v.addEventListener(S,x,!0),()=>{v.removeEventListener(S,x,!0)}},[o,u?.triggerType]),!ce.isValidElement(t))return t??null;const b=Es(t)?oo(pi(t),f):f;return Ao(t,{ref:b})},bo=e=>{const t=ce.useContext(ys);return ce.useMemo(()=>e?Ra(e)?e??t:mn(e)?e(t):t:t,[e,t])},_5=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},H5=Qt(["Space","Compact"],_5,()=>({}),{resetStyle:!1}),vf=c.createContext(null),Rs=(e,t)=>{const o=c.useContext(vf),r=c.useMemo(()=>{if(!o)return"";const{compactDirection:i,isFirstItem:l,isLastItem:u}=o,f=i==="vertical"?"-vertical-":"-";return U(`${e}-compact${f}item`,{[`${e}-compact${f}first-item`]:l,[`${e}-compact${f}last-item`]:u,[`${e}-compact${f}item-rtl`]:t==="rtl"})},[e,t,o]);return{compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},D5=e=>{const{children:t}=e;return c.createElement(vf.Provider,{value:null},t)},L5=e=>{const{children:t,...o}=e;return c.createElement(vf.Provider,{value:c.useMemo(()=>o,[o])},t)},y2=e=>{const{getPrefixCls:t,direction:o}=c.useContext(xt),{size:r,direction:i,orientation:l,block:u,prefixCls:f,className:p,rootClassName:m,children:h,vertical:b,...v}=e,[x,C]=c2(l,b,i),S=bo(z=>r??z),R=t("space-compact",f),[E]=H5(R),N=U(R,E,{[`${R}-rtl`]:o==="rtl",[`${R}-block`]:u,[`${R}-vertical`]:C},p,m),$=c.useContext(vf),w=zo(h),T=c.useMemo(()=>w.map((z,A)=>{const P=z?.key||`${R}-item-${A}`;return c.createElement(L5,{key:P,compactSize:S,compactDirection:x,isFirstItem:A===0&&(!$||$?.isFirstItem),isLastItem:A===w.length-1&&(!$||$?.isLastItem)},z)}),[w,$,x,S,R]);return w.length===0?null:c.createElement("div",{className:N,...v},T)},x2=c.createContext(void 0),V5=e=>{const{getPrefixCls:t,direction:o}=c.useContext(xt),{prefixCls:r,size:i,className:l,...u}=e,f=t("btn-group",r),[,,p]=ko(),m=c.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),h=U(f,{[`${f}-${m}`]:m,[`${f}-rtl`]:o==="rtl"},l,p);return c.createElement(x2.Provider,{value:i},c.createElement("div",{...u,className:h}))},vC=/^[\u4E00-\u9FA5]{2}$/,Ah=vC.test.bind(vC);function S2(e){return e==="danger"?{danger:!0}:{type:e}}function ig(e){return e==="text"||e==="link"}function F5(e,t,o,r){if(!pr(e))return;const i=t?" ":"";return!Ra(e)&&!Go(e)&&Ra(e.type)&&Ah(e.props.children)?Ao(e,l=>{const u=U(l.className,r)||void 0,f={...o,...l.style};return{...l,children:l.children.split("").join(i),className:u,style:f}}):Ra(e)?ce.createElement("span",{className:r,style:o},Ah(e)?e.split("").join(i):e):Yw(e)?ce.createElement("span",{className:r,style:o},e):Ao(e,l=>({...l,className:U(l.className,r)||void 0,style:{...l.style,...o}}))}function q5(e,t,o,r){let i=!1;const l=[];return ce.Children.forEach(e,u=>{const f=Ra(u)||Go(u);if(i&&f){const p=l.length-1,m=l[p];l[p]=`${m}${u}`}else l.push(u);i=f}),ce.Children.map(l,u=>F5(u,t,o,r))}["default","primary","danger"].concat(ho(Ta));const C2=c.forwardRef((e,t)=>{const{className:o,style:r,children:i,prefixCls:l}=e,u=U(`${l}-icon`,o);return ce.createElement("span",{ref:t,className:u,style:r},i)}),yC=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,iconClassName:l}=e,u=U(`${o}-loading-icon`,r);return ce.createElement(C2,{prefixCls:o,className:u,style:i,ref:t},ce.createElement(hf,{className:l}))}),sg=()=>({width:0,opacity:0,transform:"scale(0)"}),lg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),U5=e=>{const{prefixCls:t,loading:o,existIcon:r,className:i,style:l,mount:u}=e,f=!!o;return r?ce.createElement(yC,{prefixCls:t,className:i,style:l}):ce.createElement(no,{visible:f,motionName:`${t}-loading-icon-motion`,motionAppear:!u,motionEnter:!u,motionLeave:!u,removeOnLeave:!0,onAppearStart:sg,onAppearActive:lg,onEnterStart:sg,onEnterActive:lg,onLeaveStart:lg,onLeaveActive:sg},({className:p,style:m},h)=>{const b={...l,...m};return ce.createElement(yC,{prefixCls:t,className:U(i,p),style:b,ref:h})})},W5=e=>{const{componentCls:t,antCls:o,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${o}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(l=>`${l} ${r} ${i}`).join(", ")} !important`}},[`${o}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(l=>`${l} ${r} ${i}`).join(", ")} !important`}}}},xC=e=>({animationDuration:e,animationFillMode:"both"}),yf=(e,t,o,r,i=!1)=>{const l=i?"&":"";return{[`
135
+ ${l}${e}-enter,
136
+ ${l}${e}-appear
137
+ `]:{...xC(r),animationPlayState:"paused"},[`${l}${e}-leave`]:{...xC(r),animationPlayState:"paused"},[`
138
+ ${l}${e}-enter${e}-enter-active,
139
+ ${l}${e}-appear${e}-appear-active
140
+ `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}},G5=new St("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),X5=new St("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),$2=(e,t=!1)=>{const{antCls:o}=e,r=`${o}-fade`,i=t?"&":"";return[yf(r,G5,X5,e.motionDurationMid,t),{[`
141
+ ${i}${r}-enter,
142
+ ${i}${r}-appear
143
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},k5=new St("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y5=new St("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),K5=new St("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q5=new St("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Z5=new St("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J5=new St("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),eA=new St("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tA=new St("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),nA={"move-up":{inKeyframes:eA,outKeyframes:tA},"move-down":{inKeyframes:k5,outKeyframes:Y5},"move-left":{inKeyframes:K5,outKeyframes:Q5},"move-right":{inKeyframes:Z5,outKeyframes:J5}},SC=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=nA[t];return[yf(r,i,l,e.motionDurationMid),{[`
144
+ ${r}-enter,
145
+ ${r}-appear
146
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},C0=new St("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$0=new St("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),E0=new St("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),w0=new St("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),oA=new St("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),rA=new St("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),aA=new St("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),iA=new St("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),sA={"slide-up":{inKeyframes:C0,outKeyframes:$0},"slide-down":{inKeyframes:E0,outKeyframes:w0},"slide-left":{inKeyframes:oA,outKeyframes:rA},"slide-right":{inKeyframes:aA,outKeyframes:iA}},Ss=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=sA[t];return[yf(r,i,l,e.motionDurationMid),{[`
147
+ ${r}-enter,
148
+ ${r}-appear
149
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},lA=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),cA=new St("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),uA=new St("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),CC=new St("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$C=new St("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),dA=new St("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),fA=new St("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mA=new St("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),pA=new St("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),gA=new St("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),hA=new St("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),bA=new St("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),vA=new St("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),yA={zoom:{inKeyframes:cA,outKeyframes:uA},"zoom-big":{inKeyframes:CC,outKeyframes:$C},"zoom-big-fast":{inKeyframes:CC,outKeyframes:$C},"zoom-left":{inKeyframes:mA,outKeyframes:pA},"zoom-right":{inKeyframes:gA,outKeyframes:hA},"zoom-up":{inKeyframes:dA,outKeyframes:fA},"zoom-down":{inKeyframes:bA,outKeyframes:vA}},N0=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=yA[t];return[yf(r,i,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
150
+ ${r}-enter,
151
+ ${r}-appear
152
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},EC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),xA=e=>{const{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:i,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},EC(`${t}-primary`,i),EC(`${t}-danger`,l)]}},cg=e=>Math.round(Number(e||0)),SA=e=>{if(e instanceof En)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...o}=e;return{...o,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Jl extends En{constructor(t){super(SA(t))}toHsbString(){const t=this.toHsb(),o=cg(t.s*100),r=cg(t.b*100),i=cg(t.h),l=t.a,u=`hsb(${i}, ${o}%, ${r}%)`,f=`hsba(${i}, ${o}%, ${r}%, ${l.toFixed(l===0?0:2)})`;return l===1?u:f}toHsb(){const{v:t,...o}=this.toHsv();return{...o,b:t,a:this.a}}}const CA=e=>e instanceof Jl?e:new Jl(e);CA("#1677ff");const $A=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",EA=(e,t)=>e?$A(e,t):"";let Ih=(function(){function e(t){if(lc(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:i})=>({color:new e(r),percent:i})),this.metaColor=new Jl(this.colors[0].color.metaColor)):this.metaColor=new Jl(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return cc(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return EA(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((r,i)=>{const l=o.colors[i];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===o.toHexString()}}])})();var Gu={},wC;function wA(){if(wC)return Gu;wC=1,Object.defineProperty(Gu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};return Gu.default=e,Gu}var NA=wA();const RA=Xt(NA);function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ph.apply(this,arguments)}const MA=(e,t)=>c.createElement(Zt,Ph({},e,{ref:t,icon:RA})),NC=c.forwardRef(MA);function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fr.apply(null,arguments)}const TA=e=>e instanceof Ih?e:new Ih(e),OA=(e,t)=>{const{r:o,g:r,b:i,a:l}=e.toRgb(),u=new Jl(e.toRgbString()).onBackground(t).toHsv();return l<=.5?u.v>.5:o*.299+r*.587+i*.114>192},E2=e=>{const{paddingInline:t,onlyIconSize:o,borderColorDisabled:r}=e;return Gt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o,colorBorderDisabled:r})},w2=e=>{const t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??zd(t),l=e.contentLineHeightSM??zd(o),u=e.contentLineHeightLG??zd(r),f=OA(new Ih(e.colorBgSolid),"#fff")?"#000":"#fff",p=Ta.reduce((b,v)=>({...b,[`${v}ShadowColor`]:`0 ${re(e.controlOutlineWidth)} 0 ${Bl(e[`${v}1`],e.colorBgContainer)}`}),{}),m=e.colorBgContainerDisabled,h=e.colorBgContainerDisabled;return{...p,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:l,contentLineHeightLG:u,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*l)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*u)/2-e.lineWidth,0),defaultBgDisabled:m,dashedBgDisabled:h}},zA=e=>{const{componentCls:t,antCls:o,lineWidth:r,lineType:i}=e,[l,u]=Vt(o,"btn");return{[t]:[{[l("border-width")]:r,[l("border-color")]:"#000",[l("border-color-hover")]:u("border-color"),[l("border-color-active")]:u("border-color"),[l("border-color-disabled")]:u("border-color"),[l("border-style")]:i,[l("text-color")]:"#000",[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color"),[l("text-color-disabled")]:u("text-color"),[l("bg-color")]:"#ddd",[l("bg-color-hover")]:u("bg-color"),[l("bg-color-active")]:u("bg-color"),[l("bg-color-disabled")]:e.colorBgContainerDisabled,[l("bg-color-container")]:e.colorBgContainer,[l("shadow")]:"none"},{border:[u("border-width"),u("border-style"),u("border-color")].join(" "),color:u("text-color"),backgroundColor:u("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[u("border-width"),u("border-style"),u("border-color-hover")].join(" "),color:u("text-color-hover"),backgroundColor:u("bg-color-hover")},"&:active":{border:[u("border-width"),u("border-style"),u("border-color-active")].join(" "),color:u("text-color-active"),backgroundColor:u("bg-color-active")}}},{[`&${t}-variant-solid`]:{[l("solid-bg-color")]:u("color-base"),[l("solid-bg-color-hover")]:u("color-hover"),[l("solid-bg-color-active")]:u("color-active"),[l("border-color")]:"transparent",[l("text-color")]:e.colorTextLightSolid,[l("bg-color")]:u("solid-bg-color"),[l("bg-color-hover")]:u("solid-bg-color-hover"),[l("bg-color-active")]:u("solid-bg-color-active"),boxShadow:u("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("border-color")]:u("color-base"),[l("border-color-hover")]:u("color-hover"),[l("border-color-active")]:u("color-active"),[l("bg-color")]:u("bg-color-container"),[l("text-color")]:u("color-base"),[l("text-color-hover")]:u("color-hover"),[l("text-color-active")]:u("color-active"),boxShadow:u("shadow")},[`&${t}-variant-dashed`]:{[l("border-style")]:"dashed",[l("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[l("border-color")]:"transparent",[l("text-color")]:u("color-base"),[l("bg-color")]:u("color-light"),[l("bg-color-hover")]:u("color-light-hover"),[l("bg-color-active")]:u("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[l("border-color")]:"transparent",[l("text-color")]:u("color-base"),[l("text-color-hover")]:u("color-hover"),[l("text-color-active")]:u("color-active"),[l("bg-color")]:"transparent",[l("bg-color-hover")]:"transparent",[l("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[l("bg-color-hover")]:u("color-light"),[l("bg-color-active")]:u("color-light-active")}},{[`&${t}-variant-link`]:{[l("color-base")]:e.colorLink,[l("color-hover")]:e.colorLinkHover,[l("color-active")]:e.colorLinkActive,[l("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[l("color-base")]:e.colorPrimary,[l("color-hover")]:e.colorPrimaryHover,[l("color-active")]:e.colorPrimaryActive,[l("color-light")]:e.colorPrimaryBg,[l("color-light-hover")]:e.colorPrimaryBgHover,[l("color-light-active")]:e.colorPrimaryBorder,[l("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.primaryColor,[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")}},[`&${t}-color-dangerous`]:{[l("color-base")]:e.colorError,[l("color-hover")]:e.colorErrorHover,[l("color-active")]:e.colorErrorActive,[l("color-light")]:e.colorErrorBg,[l("color-light-hover")]:e.colorErrorBgFilledHover,[l("color-light-active")]:e.colorErrorBgActive,[l("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.dangerColor,[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")}},[`&${t}-color-default`]:{[l("solid-bg-color")]:e.colorBgSolid,[l("solid-bg-color-hover")]:e.colorBgSolidHover,[l("solid-bg-color-active")]:e.colorBgSolidActive,[l("color-base")]:e.defaultBorderColor,[l("color-hover")]:e.defaultHoverBorderColor,[l("color-active")]:e.defaultActiveBorderColor,[l("color-light")]:e.colorFillTertiary,[l("color-light-hover")]:e.colorFillSecondary,[l("color-light-active")]:e.colorFill,[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[l("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[l("text-color")]:e.solidTextColor,[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[l("text-color-hover")]:u("text-color"),[l("text-color-active")]:u("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("bg-color-container")]:e.defaultBg,[l("bg-color-hover")]:e.defaultHoverBg,[l("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[l("text-color")]:e.textTextColor,[l("text-color-hover")]:e.textTextHoverColor,[l("text-color-active")]:e.textTextActiveColor,[l("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultGhostColor,[l("border-color")]:e.defaultGhostBorderColor}}}},Ta.map(f=>{const p=e[`${f}6`],m=e[`${f}1`],h=e[`${f}Hover`],b=e[`${f}2`],v=e[`${f}3`],x=e[`${f}Active`],C=e[`${f}ShadowColor`];return{[`&${t}-color-${f}`]:{[l("color-base")]:p,[l("color-hover")]:h,[l("color-active")]:x,[l("color-light")]:m,[l("color-light-hover")]:b,[l("color-light-active")]:v,[l("shadow")]:C}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:u("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[l("bg-color")]:e.ghostBg,[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg,[l("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg}}}]}},AA=e=>{const{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:i,motionDurationSlow:l,motionEaseInOut:u,iconGap:f,calc:p}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:f,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...lA(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:df(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",[o]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":Lr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${l} ${u}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:p(f).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:p(f).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:p(f).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:p(f).mul(-1).equal()}}}}}},IA=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),R0=(e,t="")=>{const{componentCls:o,controlHeight:r,fontSize:i,borderRadius:l,buttonPaddingHorizontal:u,iconCls:f,buttonPaddingVertical:p,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:i,height:r,padding:`${re(p)} ${re(u)}`,borderRadius:l,[`&${o}-icon-only`]:{width:r,[f]:{fontSize:m}}}},{[`${o}${o}-circle${t}`]:IA(e)},{[`${o}${o}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${o}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},PA=e=>{const t=Gt(e,{fontSize:e.contentFontSize});return R0(t,e.componentCls)},BA=e=>{const t=Gt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return R0(t,`${e.componentCls}-sm`)},jA=e=>{const t=Gt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return R0(t,`${e.componentCls}-lg`)},_A=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},HA=Qt("Button",e=>{const t=E2(e);return[AA(t),PA(t),BA(t),jA(t),_A(t),zA(t),xA(t)]},w2,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function DA(e,t,o,r){const{focusElCls:i,focus:l,borderElCls:u}=o,f=u?"> *":"",p=f?` ${f}`:"",m=v=>v.filter(Boolean).map(x=>`&:${x}${p}`).join(","),h=m(["hover",i?`hover${i}`:null]),b=m([l?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[b]:{zIndex:3},[h]:{zIndex:4},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${f}`]:{zIndex:0}}}}function LA(e,t,o){const{borderElCls:r}=o,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function xf(e,t={focus:!0}){const{componentCls:o}=e,{componentCls:r}=t,i=r||o,l=`${i}-compact`;return{[l]:{...DA(e,l,t,i),...LA(i,l,t)}}}function VA(e,t,o){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function FA(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function qA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...VA(e,t,e.componentCls),...FA(e.componentCls,t)}}}const UA=e=>{const{antCls:t,componentCls:o,lineWidth:r,calc:i,colorBgContainer:l}=e,u=`${o}-variant-solid:not([disabled])`,f=i(r).mul(-1).equal(),[p,m]=Vt(t,"btn"),h=b=>({[`${o}-compact${b?"-vertical":""}-item`]:{[p("compact-connect-border-color")]:m("bg-color-hover"),[`&${u}`]:{transition:"none",[`& + ${u}:before`]:[{position:"absolute",backgroundColor:m("compact-connect-border-color"),content:'""'},b?{top:f,insetInline:f,height:r}:{insetBlock:f,insetInlineStart:f,width:r}],"&:hover:before":{display:"none"}}}});return[h(),h(!0),{[`${u}${o}-color-default`]:{[p("compact-connect-border-color")]:`color-mix(in srgb, ${m("bg-color-hover")} 75%, ${l})`}}]},WA=ff(["Button","compact"],e=>{const t=E2(e);return[xf(t),qA(t),UA(t)]},w2);function GA(e){if(Wt(e)){let t=e?.delay;return t=Go(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const XA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},kA=ce.forwardRef((e,t)=>{const{_skipSemantic:o,loading:r=!1,prefixCls:i,color:l,variant:u,type:f,danger:p=!1,shape:m,size:h,disabled:b,className:v,rootClassName:x,children:C,icon:S,iconPosition:R,iconPlacement:E,ghost:N=!1,block:$=!1,htmlType:w="button",classNames:T,styles:z,style:A,autoInsertSpace:P,autoFocus:j,...L}=e,I=zo(C),H=f||"default",{getPrefixCls:W,direction:J,autoInsertSpace:q,className:D,style:X,classNames:V,styles:Z,loadingIcon:Q,shape:B,color:F,variant:k}=Kt("button"),G=m||B||"default",[K,te]=c.useMemo(()=>{if(l&&u)return[l,u];if(f||p){const et=XA[H]||[];return p?["danger",et[1]]:et}return u==="solid"?["primary",u]:F&&k?[F,k]:k==="solid"?["primary",k]:["default","outlined"]},[l,u,f,p,F,k,H]),[Y,ie]=c.useMemo(()=>N&&te==="solid"?[K,"outlined"]:[K,te],[K,te,N]),se=Y==="danger",ae=se?"dangerous":Y,me=P??q??!0,ne=W("btn",i),[ue,ye]=HA(ne),ve=c.useContext(Vr),Ee=b??ve,Ce=c.useContext(x2),be=c.useMemo(()=>GA(r),[r]),[ge,ze]=c.useState(be.loading),[we,Ie]=c.useState(!1),Oe=c.useRef(null),je=Gr(t,Oe),nt=I.length===1&&!S&&!ig(ie),Ye=c.useRef(!0);ce.useEffect(()=>(Ye.current=!1,()=>{Ye.current=!0}),[]),un(()=>{let et=null;be.delay>0?et=setTimeout(()=>{et=null,ze(!0)},be.delay):ze(be.loading);function Bt(){et&&(clearTimeout(et),et=null)}return Bt},[be.delay,be.loading]),c.useEffect(()=>{if(!Oe.current||!me)return;const et=Oe.current.textContent||"";nt&&Ah(et)?we||Ie(!0):we&&Ie(!1)}),c.useEffect(()=>{j&&Oe.current?.focus()},[]);const De=ce.useCallback(et=>{if(ge||Ee){et.preventDefault();return}e.onClick?.(("href"in e,et))},[e.onClick,ge,Ee]),{compactSize:qe,compactItemClassnames:Je}=Rs(ne,J),Ue=bo(et=>h??qe??Ce??et),Pe=ge?"loading":S,_e=E??R??"start",We=xn(L,["navigate"]),Be={...e,type:H,color:Y,variant:ie,danger:se,shape:G,size:Ue,disabled:Ee,loading:ge,iconPlacement:_e},he=pn(X),Te=pn(A),[Le,Ge]=dn([o?void 0:V,T],[o?void 0:Z,he,z,Te],{props:Be}),ot=U(ne,ue,ye,{[`${ne}-${G}`]:G!=="default"&&G!=="square"&&G,[`${ne}-${H}`]:H,[`${ne}-dangerous`]:p,[`${ne}-color-${ae}`]:ae,[`${ne}-variant-${ie}`]:ie,[`${ne}-lg`]:Ue==="large",[`${ne}-sm`]:Ue==="small",[`${ne}-icon-only`]:!C&&C!==0&&!!Pe,[`${ne}-background-ghost`]:N&&!ig(ie),[`${ne}-loading`]:ge,[`${ne}-two-chinese-chars`]:we&&me&&!ge,[`${ne}-block`]:$,[`${ne}-rtl`]:J==="rtl",[`${ne}-icon-end`]:_e==="end"},Je,v,x,D,Le.root),Qe={className:Le.icon,style:Ge.icon},ut=et=>ce.createElement(C2,{prefixCls:ne,...Qe},et),Ct=ce.createElement(U5,{existIcon:!!S,prefixCls:ne,loading:ge,mount:Ye.current,...Qe}),mt=Wt(r)&&r.icon||Q;let Nt;S&&!ge?Nt=ut(S):r&&mt?Nt=ut(mt):Nt=Ct;const vt=pr(C)?q5(C,nt&&me,Ge.content,Le.content):null;if(We.href!==void 0)return ce.createElement("a",{...We,className:U(ot,{[`${ne}-disabled`]:Ee}),href:Ee?void 0:We.href,style:Ge.root,onClick:De,ref:je,tabIndex:Ee?-1:0,"aria-disabled":Ee},Nt,vt);let Pt=ce.createElement("button",{...L,type:w,className:ot,style:Ge.root,onClick:De,disabled:Ee,ref:je},Nt,vt,Je&&ce.createElement(WA,{prefixCls:ne}));return ig(ie)||(Pt=ce.createElement(v2,{component:"Button",disabled:ge},Pt)),Pt}),to=kA;to.Group=V5;to.__ANT_BUTTON=!0;const N2=e=>{const{type:t,children:o,prefixCls:r,buttonProps:i,close:l,autoFocus:u,emitEvent:f,isSilent:p,quitOnNullishReturnValue:m,actionFn:h}=e,b=c.useRef(!1),v=c.useRef(null),[x,C]=RE(!1),S=(...N)=>{l?.(...N)};c.useEffect(()=>{let N=null;return u&&(N=setTimeout(()=>{v.current?.focus({preventScroll:!0})})),()=>{N&&clearTimeout(N)}},[u]);const R=N=>{ng(N)&&(C(!0),N.then((...$)=>{C(!1,!0),S.apply(void 0,$),b.current=!1},$=>{if(C(!1,!0),b.current=!1,!p?.())return Promise.reject($)}))},E=N=>{if(b.current)return;if(b.current=!0,!h){S();return}let $;if(f){if($=h(N),m&&!ng($)){b.current=!1,S(N);return}}else if(h.length)$=h(l),b.current=!1;else if($=h(),!ng($)){S();return}R($)};return c.createElement(to,{...S2(t),onClick:E,loading:x,prefixCls:r,...i,ref:v},o)},pc=ce.createContext({}),{Provider:R2}=pc,RC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:i,rootPrefixCls:l,close:u,onCancel:f,onConfirm:p,onClose:m}=c.useContext(pc);return i?ce.createElement(N2,{isSilent:r,actionFn:f,close:(...h)=>{u?.(...h),p?.(!1),m?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},o):null},MC=()=>{const{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:i,okTextLocale:l,okType:u,onConfirm:f,onOk:p,onClose:m}=c.useContext(pc);return ce.createElement(N2,{isSilent:o,type:u||"primary",actionFn:p,close:(...h)=>{t?.(...h),f?.(!0),m?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},l)},M2=c.createContext({});function TC(e,t,o){let r=t;return!r&&o&&(r=`${e}-${o}`),r}function OC(e,t){let o=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){const i=e.document;o=i.documentElement[r],typeof o!="number"&&(o=i.body[r])}return o}function YA(e){const t=e.getBoundingClientRect(),o={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return o.left+=OC(i),o.top+=OC(i,!0),o}const KA=c.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wd.apply(this,arguments)}const QA=ce.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,title:l,ariaId:u,footer:f,closable:p,closeIcon:m,onClose:h,children:b,bodyStyle:v,bodyProps:x,modalRender:C,onMouseDown:S,onMouseUp:R,holderRef:E,visible:N,forceRender:$,width:w,height:T,classNames:z,styles:A,isFixedPos:P,focusTrap:j}=e,{panel:L}=ce.useContext(M2),I=c.useRef(null),H=Gr(E,L,I),[W]=jE(N&&P&&j!==!1,()=>I.current);ce.useImperativeHandle(t,()=>({focus:()=>{I.current?.focus({preventScroll:!0})}}));const J={};w!==void 0&&(J.width=w),T!==void 0&&(J.height=T);const q=f?ce.createElement("div",{className:U(`${o}-footer`,z?.footer),style:{...A?.footer}},f):null,D=l?ce.createElement("div",{className:U(`${o}-header`,z?.header),style:{...A?.header}},ce.createElement("div",{className:U(`${o}-title`,z?.title),id:u,style:{...A?.title}},l)):null,X=c.useMemo(()=>typeof p=="object"&&p!==null?p:p?{closeIcon:m??ce.createElement("span",{className:`${o}-close-x`})}:{},[p,m,o]),V=Qn(X,!0),Z=typeof p=="object"&&p.disabled,Q=p?ce.createElement("button",Wd({type:"button",onClick:h,"aria-label":"Close"},V,{className:U(`${o}-close`,z?.close),disabled:Z,style:A?.close}),X.closeIcon):null,B=ce.createElement("div",{className:U(`${o}-container`,z?.container),style:A?.container},Q,D,ce.createElement("div",Wd({className:U(`${o}-body`,z?.body),style:{...v,...A?.body}},x),b),q);return ce.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?u:null,"aria-modal":"true",ref:H,style:{...i,...J},className:U(o,r),onMouseDown:S,onMouseUp:R,tabIndex:-1,onFocus:F=>{W(F.target)}},ce.createElement(KA,{shouldUpdate:N||$},C?C(B):B))});function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Bh.apply(this,arguments)}const ZA=c.forwardRef((e,t)=>{const{prefixCls:o,title:r,style:i,className:l,visible:u,forceRender:f,destroyOnHidden:p,motionName:m,ariaId:h,onVisibleChanged:b,mousePosition:v}=e,x=c.useRef(null),C=c.useRef(null);c.useImperativeHandle(t,()=>({...C.current,inMotion:x.current.inMotion,enableMotion:x.current.enableMotion}));const[S,R]=c.useState(),E={};S&&(E.transformOrigin=S);function N(){if(!x.current?.nativeElement)return;const $=YA(x.current.nativeElement);R(v&&(v.x||v.y)?`${v.x-$.left}px ${v.y-$.top}px`:"")}return c.createElement(no,{visible:u,onVisibleChanged:b,onAppearPrepare:N,onEnterPrepare:N,forceRender:f,motionName:m,removeOnLeave:p,ref:x},({className:$,style:w},T)=>c.createElement(QA,Bh({},e,{ref:C,title:r,ariaId:h,prefixCls:o,holderRef:T,style:{...w,...i,...E},className:U(l,$)})))});function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},jh.apply(this,arguments)}const JA=e=>{const{prefixCls:t,style:o,visible:r,maskProps:i,motionName:l,className:u}=e;return c.createElement(no,{key:"mask",visible:r,motionName:l,leavedClassName:`${t}-mask-hidden`},({className:f,style:p},m)=>c.createElement("div",jh({ref:m,style:{...p,...o},className:U(`${t}-mask`,f,u)},i)))};function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ql.apply(this,arguments)}const e8=e=>{const{prefixCls:t="rc-dialog",zIndex:o,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:l,wrapClassName:u,wrapProps:f,onClose:p,afterOpenChange:m,afterClose:h,transitionName:b,animation:v,closable:x=!0,mask:C=!0,maskTransitionName:S,maskAnimation:R,maskClosable:E=!0,maskStyle:N,maskProps:$,rootClassName:w,rootStyle:T,classNames:z,styles:A}=e,P=c.useRef(null),j=c.useRef(null),L=c.useRef(null),[I,H]=c.useState(r),[W,J]=c.useState(!1),q=Wr();function D(){Pg(j.current,document.activeElement)||(P.current=document.activeElement)}function X(){Pg(j.current,document.activeElement)||L.current?.focus()}function V(){if(H(!1),C&&P.current&&i){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}I&&h?.()}function Z(K){K?X():V(),m?.(K)}function Q(K){p?.(K)}const B=c.useRef(!1);let F=null;E&&(F=K=>{j.current===K.target&&B.current&&Q(K)});function k(K){B.current=K.target===j.current}c.useEffect(()=>{if(r){if(B.current=!1,H(!0),D(),j.current){const K=getComputedStyle(j.current);J(K.position==="fixed")}}else I&&L.current.enableMotion()&&!L.current.inMotion()&&V()},[r]);const G={zIndex:o,...l,...A?.wrapper,display:I?null:"none"};return c.createElement("div",ql({className:U(`${t}-root`,w),style:T},Qn(e,{data:!0})),c.createElement(JA,{prefixCls:t,visible:C&&r,motionName:TC(t,S,R),style:{zIndex:o,...N,...A?.mask},maskProps:$,className:z?.mask}),c.createElement("div",ql({className:U(`${t}-wrap`,u,z?.wrapper),ref:j,onClick:F,onMouseDown:k,style:G},f),c.createElement(ZA,ql({},e,{isFixedPos:W,ref:L,closable:x,ariaId:q,prefixCls:t,visible:r&&I,onClose:Q,onVisibleChanged:Z,motionName:TC(t,b,v)}))))};function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_h.apply(this,arguments)}const t8=e=>{const{visible:t,getContainer:o,forceRender:r,destroyOnHidden:i=!1,afterClose:l,closable:u,panelRef:f,keyboard:p=!0,scrollLock:m=!0,onClose:h}=e,{scrollLock:b,...v}=e,[x,C]=c.useState(t),S=c.useMemo(()=>({panel:f}),[f]),R=({top:E,event:N})=>{if(E&&p){N.stopPropagation(),h?.(N);return}};return c.useEffect(()=>{t&&C(!0)},[t]),!r&&i&&!x?null:c.createElement(M2.Provider,{value:S},c.createElement(dc,{open:t||r||x,onEsc:R,autoDestroy:!1,getContainer:o,autoLock:m&&(t||x)},c.createElement(e8,_h({},v,{destroyOnHidden:i,afterClose:()=>{const E=u&&typeof u=="object"?u:{},{afterClose:N}=E||{};N?.(),l?.(),C(!1)}}))))},oi="RC_FORM_INTERNAL_HOOKS",cn=()=>{Yn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Cs=c.createContext({getFieldValue:cn,getFieldsValue:cn,getFieldError:cn,getFieldWarning:cn,getFieldsError:cn,isFieldsTouched:cn,isFieldTouched:cn,isFieldValidating:cn,isFieldsValidating:cn,resetFields:cn,setFields:cn,setFieldValue:cn,setFieldsValue:cn,validateFields:cn,submit:cn,getInternalHooks:()=>(cn(),{dispatch:cn,initEntityValue:cn,registerField:cn,useSubscribe:cn,setInitialValues:cn,destroyForm:cn,setCallbacks:cn,registerWatch:cn,getFields:cn,setValidateMessages:cn,setPreserve:cn,getInitialValue:cn})}),Gd=c.createContext(null);function Hh(e){return e==null?[]:Array.isArray(e)?e:[e]}function n8(e){return e&&!!e._init}function Dh(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const ug=Dh(),o8=/%[sdj%]/g;let r8=()=>{};function Lh(e){if(!e||!e.length)return null;const t={};return e.forEach(o=>{const r=o.field;t[r]=t[r]||[],t[r].push(o)}),t}function Mo(e,...t){let o=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(o8,l=>{if(l==="%%")return"%";if(o>=r)return l;switch(l){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch{return"[Circular]"}break;default:return l}}):e}function a8(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||a8(t)&&typeof e=="string"&&!e)}function i8(e,t,o){const r=[];let i=0;const l=e.length;function u(f){r.push(...f||[]),i++,i===l&&o(r)}e.forEach(f=>{t(f,u)})}function zC(e,t,o){let r=0;const i=e.length;function l(u){if(u&&u.length){o(u);return}const f=r;r=r+1,f<i?t(e[f],l):o([])}l([])}function s8(e){const t=[];return Object.keys(e).forEach(o=>{t.push(...e[o]||[])}),t}class AC extends Error{errors;fields;constructor(t,o){super("Async Validation Error"),this.errors=t,this.fields=o}}function l8(e,t,o,r,i){if(t.first){const b=new Promise((v,x)=>{const C=R=>(r(R),R.length?x(new AC(R,Lh(R))):v(i)),S=s8(e);zC(S,o,C)});return b.catch(v=>v),b}const l=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length;let p=0;const m=[],h=new Promise((b,v)=>{const x=C=>{if(m.push.apply(m,C),p++,p===f)return r(m),m.length?v(new AC(m,Lh(m))):b(i)};u.length||(r(m),b(i)),u.forEach(C=>{const S=e[C];l.indexOf(C)!==-1?zC(S,o,x):i8(S,o,x)})});return h.catch(b=>b),h}function c8(e){return!!(e&&e.message!==void 0)}function u8(e,t){let o=e;for(let r=0;r<t.length;r++){if(o==null)return o;o=o[t[r]]}return o}function IC(e,t){return o=>{let r;return e.fullFields?r=u8(t,e.fullFields):r=t[o.field||e.fullField],c8(o)?(o.field=o.field||e.fullField,o.fieldValue=r,o):{message:typeof o=="function"?o():o,fieldValue:r,field:o.field||e.fullField}}}function PC(e,t){if(t){for(const o in t)if(t.hasOwnProperty(o)){const r=t[o];typeof r=="object"&&typeof e[o]=="object"?e[o]={...e[o],...r}:e[o]=r}}return e}const Ji="enum",d8=(e,t,o,r,i)=>{e[Ji]=Array.isArray(e[Ji])?e[Ji]:[],e[Ji].indexOf(t)===-1&&r.push(Mo(i.messages[Ji],e.fullField,e[Ji].join(", ")))},f8=(e,t,o,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Mo(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(Mo(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},m8=(e,t,o,r,i)=>{const l=typeof e.len=="number",u=typeof e.min=="number",f=typeof e.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let m=t,h=null;const b=typeof t=="number",v=typeof t=="string",x=Array.isArray(t);if(b?h="number":v?h="string":x&&(h="array"),!h)return!1;x&&(m=t.length),v&&(m=t.replace(p,"_").length),l?m!==e.len&&r.push(Mo(i.messages[h].len,e.fullField,e.len)):u&&!f&&m<e.min?r.push(Mo(i.messages[h].min,e.fullField,e.min)):f&&!u&&m>e.max?r.push(Mo(i.messages[h].max,e.fullField,e.max)):u&&f&&(m<e.min||m>e.max)&&r.push(Mo(i.messages[h].range,e.fullField,e.min,e.max))},T2=(e,t,o,r,i,l)=>{e.required&&(!o.hasOwnProperty(e.field)||Hn(t,l||e.type))&&r.push(Mo(i.messages.required,e.fullField))};let Xu;const p8=(()=>{if(Xu)return Xu;const e="[a-fA-F\\d:]",t=T=>T&&T.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",o="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",u=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${o}|:${r}|:)`,`(?:${r}:){5}(?::${o}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${o}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${o}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${o}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${o}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${o}|(?::${r}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,f=new RegExp(`(?:^${o}$)|(?:^${u}$)`),p=new RegExp(`^${o}$`),m=new RegExp(`^${u}$`),h=T=>T&&T.exact?f:new RegExp(`(?:${t(T)}${o}${t(T)})|(?:${t(T)}${u}${t(T)})`,"g");h.v4=T=>T&&T.exact?p:new RegExp(`${t(T)}${o}${t(T)}`,"g"),h.v6=T=>T&&T.exact?m:new RegExp(`${t(T)}${u}${t(T)}`,"g");const b="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",x=h.v4().source,C=h.v6().source,w=`(?:${b}|www\\.)${v}(?:localhost|${x}|${C}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Xu=new RegExp(`(?:^${w}$)`,"i"),Xu}),dg={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},jl={integer(e){return jl.number(e)&&parseInt(e,10)===e},float(e){return jl.number(e)&&!jl.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!jl.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(dg.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(dg.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(p8())},hex(e){return typeof e=="string"&&!!e.match(dg.hex)}},g8=(e,t,o,r,i)=>{if(e.required&&t===void 0){T2(e,t,o,r,i);return}const l=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=e.type;l.indexOf(u)>-1?jl[u](t)||r.push(Mo(i.messages.types[u],e.fullField,e.type)):u&&typeof t!==e.type&&r.push(Mo(i.messages.types[u],e.fullField,e.type))},h8=(e,t,o,r,i)=>{(/^\s+$/.test(t)||t==="")&&r.push(Mo(i.messages.whitespace,e.fullField))},It={required:T2,whitespace:h8,type:g8,range:m8,enum:d8,pattern:f8},b8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i)}o(l)},v8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return o();It.required(e,t,r,l,i,"array"),t!=null&&(It.type(e,t,r,l,i),It.range(e,t,r,l,i))}o(l)},y8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),t!==void 0&&It.type(e,t,r,l,i)}o(l)},x8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"date")&&!e.required)return o();if(It.required(e,t,r,l,i),!Hn(t,"date")){let f;t instanceof Date?f=t:f=new Date(t),It.type(e,f,r,l,i),f&&It.range(e,f.getTime(),r,l,i)}}o(l)},S8="enum",C8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),t!==void 0&&It[S8](e,t,r,l,i)}o(l)},$8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),t!==void 0&&(It.type(e,t,r,l,i),It.range(e,t,r,l,i))}o(l)},E8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),t!==void 0&&(It.type(e,t,r,l,i),It.range(e,t,r,l,i))}o(l)},w8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),t!==void 0&&It.type(e,t,r,l,i)}o(l)},N8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===""&&(t=void 0),Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),t!==void 0&&(It.type(e,t,r,l,i),It.range(e,t,r,l,i))}o(l)},R8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),t!==void 0&&It.type(e,t,r,l,i)}o(l)},M8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"string")&&!e.required)return o();It.required(e,t,r,l,i),Hn(t,"string")||It.pattern(e,t,r,l,i)}o(l)},T8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();It.required(e,t,r,l,i),Hn(t)||It.type(e,t,r,l,i)}o(l)},O8=(e,t,o,r,i)=>{const l=[],u=Array.isArray(t)?"array":typeof t;It.required(e,t,r,l,i,u),o(l)},z8=(e,t,o,r,i)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"string")&&!e.required)return o();It.required(e,t,r,l,i,"string"),Hn(t,"string")||(It.type(e,t,r,l,i),It.range(e,t,r,l,i),It.pattern(e,t,r,l,i),e.whitespace===!0&&It.whitespace(e,t,r,l,i))}o(l)},ku=(e,t,o,r,i)=>{const l=e.type,u=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,l)&&!e.required)return o();It.required(e,t,r,u,i,l),Hn(t,l)||It.type(e,t,r,u,i)}o(u)},Ol={string:z8,method:w8,number:N8,boolean:y8,regexp:T8,integer:E8,float:$8,array:v8,object:R8,enum:C8,pattern:M8,date:x8,url:ku,hex:ku,email:ku,tel:ku,required:O8,any:b8};class Xd{static register=function(o,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ol[o]=r};static warning=r8;static messages=ug;static validators=Ol;rules=null;_messages=ug;constructor(t){this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(o=>{const r=t[o];this.rules[o]=Array.isArray(r)?r:[r]})}messages(t){return t&&(this._messages=PC(Dh(),t)),this._messages}validate(t,o={},r=()=>{}){let i=t,l=o,u=r;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function f(b){let v=[],x={};function C(S){Array.isArray(S)?v=v.concat(...S):v.push(S)}for(let S=0;S<b.length;S++)C(b[S]);v.length?(x=Lh(v),u(v,x)):u(null,i)}if(l.messages){let b=this.messages();b===ug&&(b=Dh()),PC(b,l.messages),l.messages=b}else l.messages=this.messages();const p={};(l.keys||Object.keys(this.rules)).forEach(b=>{const v=this.rules[b];let x=i[b];v.forEach(C=>{let S=C;typeof S.transform=="function"&&(i===t&&(i={...i}),x=i[b]=S.transform(x),x!=null&&(S.type=S.type||(Array.isArray(x)?"array":typeof x))),typeof S=="function"?S={validator:S}:S={...S},S.validator=this.getValidationMethod(S),S.validator&&(S.field=b,S.fullField=S.fullField||b,S.type=this.getType(S),p[b]=p[b]||[],p[b].push({rule:S,value:x,source:i,field:b}))})});const h={};return l8(p,l,(b,v)=>{const x=b.rule;let C=(x.type==="object"||x.type==="array")&&(typeof x.fields=="object"||typeof x.defaultField=="object");C=C&&(x.required||!x.required&&b.value),x.field=b.field;function S(N,$){return{...$,fullField:`${x.fullField}.${N}`,fullFields:x.fullFields?[...x.fullFields,N]:[N]}}function R(N=[]){let $=Array.isArray(N)?N:[N];!l.suppressWarning&&$.length&&Xd.warning("async-validator:",$),$.length&&x.message!==void 0&&x.message!==null&&($=[].concat(x.message));let w=$.map(IC(x,i));if(l.first&&w.length)return h[x.field]=1,v(w);if(!C)v(w);else{if(x.required&&!b.value)return x.message!==void 0?w=[].concat(x.message).map(IC(x,i)):l.error&&(w=[l.error(x,Mo(l.messages.required,x.field))]),v(w);let T={};x.defaultField&&Object.keys(b.value).map(P=>{T[P]=x.defaultField}),T={...T,...b.rule.fields};const z={};Object.keys(T).forEach(P=>{const j=T[P],L=Array.isArray(j)?j:[j];z[P]=L.map(S.bind(null,P))});const A=new Xd(z);A.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),A.validate(b.value,b.rule.options||l,P=>{const j=[];w&&w.length&&j.push(...w),P&&P.length&&j.push(...P),v(j.length?j:null)})}}let E;if(x.asyncValidator)E=x.asyncValidator(x,b.value,R,b.source,l);else if(x.validator){try{E=x.validator(x,b.value,R,b.source,l)}catch(N){console.error?.(N),l.suppressValidatorError||setTimeout(()=>{throw N},0),R(N.message)}E===!0?R():E===!1?R(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||`${x.fullField||x.field} fails`):E instanceof Array?R(E):E instanceof Error&&R(E.message)}E&&E.then&&E.then(()=>R(),N=>R(N))},b=>{f(b)},i)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Ol.hasOwnProperty(t.type))throw new Error(Mo("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const o=Object.keys(t),r=o.indexOf("message");return r!==-1&&o.splice(r,1),o.length===1&&o[0]==="required"?Ol.required:Ol[this.getType(t)]||void 0}}const po="'${name}' is not a valid ${type}",O2={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:po,method:po,array:po,object:po,number:po,date:po,boolean:po,integer:po,float:po,regexp:po,email:po,tel:po,url:po,hex:po},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},BC=Xd;function A8(e,t){return e.replace(/\\?\$\{\w+\}/g,o=>{if(o.startsWith("\\"))return o.slice(1);const r=o.slice(2,-1);return t[r]})}const jC="CODE_LOGIC_ERROR";async function Vh(e,t,o,r,i){const l={...o};if(delete l.ruleIndex,BC.warning=()=>{},l.validator){const v=l.validator;l.validator=(...x)=>{try{return v(...x)}catch(C){return console.error(C),Promise.reject(jC)}}}let u=null;l&&l.type==="array"&&l.defaultField&&(u=l.defaultField,delete l.defaultField);const f=new BC({[e]:[l]}),p=ls(O2,r.validateMessages);f.messages(p);let m=[];try{await Promise.resolve(f.validate({[e]:t},{...r}))}catch(v){v.errors&&(m=v.errors.map(({message:x},C)=>{const S=x===jC?p.default:x;return c.isValidElement(S)?c.cloneElement(S,{key:`error_${C}`}):S}))}if(!m.length&&u&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((x,C)=>Vh(`${e}.${C}`,x,u,r,i)))).reduce((x,C)=>[...x,...C],[]);const h={...o,name:e,enum:(o.enum||[]).join(", "),...i};return m.map(v=>typeof v=="string"?A8(v,h):v)}function I8(e,t,o,r,i,l){const u=e.join("."),f=o.map((m,h)=>{const b=m.validator,v={...m,ruleIndex:h};return b&&(v.validator=(x,C,S)=>{let R=!1;const N=b(x,C,(...$)=>{Promise.resolve().then(()=>{Yn(!R,"Your validator function has already return a promise. `callback` will be ignored."),R||S(...$)})});R=N&&typeof N.then=="function"&&typeof N.catch=="function",Yn(R,"`callback` is deprecated. Please return a promise instead."),R&&N.then(()=>{S()}).catch($=>{S($||" ")})}),v}).sort(({warningOnly:m,ruleIndex:h},{warningOnly:b,ruleIndex:v})=>!!m==!!b?h-v:m?1:-1);let p;if(i===!0)p=new Promise(async(m,h)=>{for(let b=0;b<f.length;b+=1){const v=f[b],x=await Vh(u,t,v,r,l);if(x.length){h([{errors:x,rule:v}]);return}}m([])});else{const m=f.map(h=>Vh(u,t,h,r,l).then(b=>({errors:b,rule:h})));p=(i?B8(m):P8(m)).then(h=>Promise.reject(h))}return p.catch(m=>m),p}async function P8(e){return Promise.all(e).then(t=>[].concat(...t))}async function B8(e){let t=0;return new Promise(o=>{e.forEach(r=>{r.then(i=>{i.errors.length&&o([i]),t+=1,t===e.length&&o([])})})})}function $n(e){return Hh(e)}function _C(e,t){let o={};return t.forEach(r=>{const i=Uo(e,r);o=Ro(o,r,i)}),o}function ps(e,t,o=!1){return e&&e.some(r=>kd(t,r,o))}function kd(e,t,o=!1){return!e||!t||!o&&e.length!==t.length?!1:t.every((r,i)=>e[i]===r)}function j8(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const o=Object.keys(e),r=Object.keys(t);return[...new Set([...o,...r])].every(l=>{const u=e[l],f=t[l];return typeof u=="function"&&typeof f=="function"?!0:u===f})}function _8(e,...t){const o=t[0];return o&&o.target&&typeof o.target=="object"&&e in o.target?o.target[e]:o}function HC(e,t,o){const{length:r}=e;if(t<0||t>=r||o<0||o>=r)return e;const i=e[t],l=t-o;return l>0?[...e.slice(0,o),i,...e.slice(o,t),...e.slice(t+1,r)]:l<0?[...e.slice(0,t),...e.slice(t+1,o+1),i,...e.slice(o+1,r)]:e}const z2=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class H8{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(o=>{this.namePathList.every(r=>!kd(r,o))&&this.namePathList.push(o)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;z2(()=>{if(t===this.taskId&&this.watcherList.size){const o=this.form.getForm(),r=o.getFieldsValue(),i=o.getFieldsValue(!0);this.watcherList.forEach(l=>{l(r,i,this.namePathList)}),this.namePathList=[]}})}}async function D8(){return new Promise(e=>{z2(()=>{Lt(()=>{e()})})})}function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Fh.apply(this,arguments)}const Qa=[],zl=[];function fg(e,t,o,r,i,l){return typeof e=="function"?e(t,o,"source"in l?{source:l.source}:{}):r!==i}class L8 extends c.PureComponent{static contextType=Cs;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Qa;warnings=zl;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:o}=t.fieldContext,{initEntityValue:r}=o(oi);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:o}=this.props;if(this.mounted=!0,o){const{getInternalHooks:r}=o,{registerField:i}=r(oi);this.cancelRegisterFunc=i(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:o,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,t,$n(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:o}=this.props,{prefixName:r=[]}=o;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:o}=this.props;return t.map(r=>typeof r=="function"?r(o):r)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:o}=this.props;if(o){const r={...this.getMeta(),destroy:t};Xl(this.metaCache,r)||o(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,o,r)=>{const{shouldUpdate:i,dependencies:l=[],onReset:u}=this.props,{store:f}=r,p=this.getNamePath(),m=this.getValue(t),h=this.getValue(f),b=o&&ps(o,p);switch(r.type==="valueUpdate"&&r.source==="external"&&!Xl(m,h)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Qa,this.warnings=zl,this.triggerMetaEvent()),r.type){case"reset":if(!o||b){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Qa,this.warnings=zl,this.triggerMetaEvent(),u?.(),this.refresh();return}break;case"remove":{if(i&&fg(i,t,f,m,h,r)){this.reRender();return}break}case"setField":{const{data:v}=r;if(b){"touched"in v&&(this.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(this.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(this.errors=v.errors||Qa),"warnings"in v&&(this.warnings=v.warnings||zl),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in v&&ps(o,p,!0)){this.reRender();return}if(i&&!p.length&&fg(i,t,f,m,h,r)){this.reRender();return}break}case"dependenciesUpdate":{if(l.map($n).some(x=>ps(r.relatedFields,x))){this.reRender();return}break}default:if(b||(!l.length||p.length||i)&&fg(i,t,f,m,h,r)){this.reRender();return}break}i===!0&&this.reRender()};validateRules=t=>{const o=this.getNamePath(),r=this.getValue(),{triggerName:i,validateOnly:l=!1,delayFrame:u}=t||{},f=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:p=!1,messageVariables:m,validateDebounce:h}=this.props;u&&await D8();let b=this.getRules();if(i&&(b=b.filter(x=>x).filter(x=>{const{validateTrigger:C}=x;return C?Hh(C).includes(i):!0})),h&&i&&(await new Promise(x=>{setTimeout(x,h)}),this.validatePromise!==f))return[];const v=I8(o,r,b,t,p,m);return v.catch(x=>x).then((x=Qa)=>{if(this.validatePromise===f){this.validatePromise=null;const C=[],S=[];x.forEach?.(({rule:{warningOnly:R},errors:E=Qa})=>{R?S.push(...E):C.push(...E)}),this.errors=C,this.warnings=S,this.triggerMetaEvent(),this.reRender()}}),v});return l||(this.validatePromise=f,this.dirty=!0,this.errors=Qa,this.warnings=zl,this.triggerMetaEvent(),this.reRender()),f};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:o}=t.getInternalHooks(oi);return o(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:!0}}const o=zo(t);return o.length!==1||!c.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:o}=this.props.fieldContext,r=this.getNamePath();return Uo(t||o(!0),r)};getControlled=(t={})=>{const{name:o,trigger:r="onChange",validateTrigger:i,getValueFromEvent:l,normalize:u,valuePropName:f="value",getValueProps:p,fieldContext:m}=this.props,h=i!==void 0?i:m.validateTrigger,b=this.getNamePath(),{getInternalHooks:v,getFieldsValue:x}=m,{dispatch:C}=v(oi),S=this.getValue(),R=p||(T=>({[f]:T})),E=t[r],N=o!==void 0?R(S):{},$={...t,...N};return $[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();const z=this.getValue();let A;l?A=l(...T):A=_8(f,...T),u&&(A=u(A,z,x(!0))),A!==z&&C({type:"updateValue",namePath:b,value:A}),E&&E(...T)},Hh(h||[]).forEach(T=>{const z=$[T];$[T]=(...A)=>{z&&z(...A);const{rules:P}=this.props;P&&P.length&&C({type:"validateField",namePath:b,triggerName:T})}}),$};render(){const{resetCount:t}=this.state,{children:o}=this.props,{child:r,isFunction:i}=this.getOnlyChild(o);let l;return i?l=r:c.isValidElement(r)?l=c.cloneElement(r,this.getControlled(r.props)):(Yn(!r,"`children` of Field is not validate ReactElement."),l=r),c.createElement(c.Fragment,{key:t},l)}}function A2({name:e,...t}){const o=c.useContext(Cs),r=c.useContext(Gd),i=e!==void 0?$n(e):void 0,l=t.isListField??!!r;let u="keep";return l||(u=`_${(i||[]).join("_")}`),c.createElement(L8,Fh({key:u,name:i,isListField:l},t,{fieldContext:o}))}function V8({name:e,initialValue:t,children:o,rules:r,validateTrigger:i,isListField:l}){const u=c.useContext(Cs),f=c.useContext(Gd),m=c.useRef({keys:[],id:0}).current,h=c.useMemo(()=>[...$n(u.prefixName)||[],...$n(e)],[u.prefixName,e]),b=c.useMemo(()=>({...u,prefixName:h}),[u,h]),v=c.useMemo(()=>({getKey:C=>{const S=h.length,R=C[S];return[m.keys[R],C.slice(S+1)]}}),[m,h]);if(typeof o!="function")return Yn(!1,"Form.List only accepts function as children."),null;const x=(C,S,{source:R})=>R==="internal"?!1:C!==S;return c.createElement(Gd.Provider,{value:v},c.createElement(Cs.Provider,{value:b},c.createElement(A2,{name:[],shouldUpdate:x,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:l??!!f},({value:C=[],onChange:S},R)=>{const{getFieldValue:E}=u,N=()=>E(h||[])||[],$={add:(T,z)=>{const A=N();z>=0&&z<=A.length?(m.keys=[...m.keys.slice(0,z),m.id,...m.keys.slice(z)],S([...A.slice(0,z),T,...A.slice(z)])):(m.keys=[...m.keys,m.id],S([...A,T])),m.id+=1},remove:T=>{const z=N(),A=new Set(Array.isArray(T)?T:[T]);A.size<=0||(m.keys=m.keys.filter((P,j)=>!A.has(j)),S(z.filter((P,j)=>!A.has(j))))},move(T,z){if(T===z)return;const A=N();T<0||T>=A.length||z<0||z>=A.length||(m.keys=HC(m.keys,T,z),S(HC(A,T,z)))}};let w=C||[];return Array.isArray(w)||(w=[]),o(w.map((T,z)=>{let A=m.keys[z];return A===void 0&&(m.keys[z]=m.id,A=m.keys[z],m.id+=1),{name:z,key:A,isListField:!0}}),$,R)})))}function F8(e){let t=!1,o=e.length;const r=[];return e.length?new Promise((i,l)=>{e.forEach((u,f)=>{u.catch(p=>(t=!0,p)).then(p=>{o-=1,r[f]=p,!(o>0)&&(t&&l(r),i(r))})})}):Promise.resolve([])}const qh="__@field_split__";function Yu(e){return e.map(t=>`${typeof t}:${t}`).join(qh)}class es{kvs=new Map;set(t,o){this.kvs.set(Yu(t),o)}get(t){return this.kvs.get(Yu(t))}getAsPrefix(t){const o=Yu(t),r=o+qh,i=[],l=this.kvs.get(o);return l!==void 0&&i.push(l),this.kvs.forEach((u,f)=>{f.startsWith(r)&&i.push(u)}),i}update(t,o){const r=this.get(t),i=o(r);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(Yu(t))}map(t){return[...this.kvs.entries()].map(([o,r])=>{const i=o.split(qh);return t({key:i.map(l=>{const[,u,f]=l.match(/^([^:]*):(.*)$/);return u==="number"?Number(f):f}),value:r})})}toJSON(){const t={};return this.map(({key:o,value:r})=>(t[o.join(".")]=r,null)),t}}class q8{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new H8(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===oi?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Yn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,o)=>{if(this.initialValues=t||{},o){let r=ls(t,this.store);this.prevWithoutPreserves?.map(({key:i})=>{r=Ro(r,i,Uo(t,i))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const o=new es;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||o.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=o}};getInitialValue=t=>{const o=Uo(this.initialValues,t);return t.length?ls(o):o};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(o=>o.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const o=new es;return this.getFieldEntities(t).forEach(r=>{const i=r.getNamePath();o.set(i,r)}),o};getFieldEntitiesForNamePathList=(t,o=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return o?t.flatMap(i=>{const l=$n(i),u=r.getAsPrefix(l);return u.length?u:[{INVALIDATE_NAME_PATH:l}]}):t.map(i=>{const l=$n(i);return r.get(l)||{INVALIDATE_NAME_PATH:$n(i)}})};getFieldsValue=(t,o)=>{this.warningUnhooked();let r,i;if(t===!0||Array.isArray(t)?(r=t,i=o):t&&typeof t=="object"&&(i=t.filter),r===!0&&!i)return this.store;const l=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),u=[],f=[];l.forEach(m=>{const h=m.INVALIDATE_NAME_PATH||m.getNamePath();if(m.isList?.()){f.push(h);return}if(!i)u.push(h);else{const b="getMeta"in m?m.getMeta():null;i(b)&&u.push(h)}});let p=_C(this.store,u.map($n));return f.forEach(m=>{Uo(p,m)||(p=Ro(p,m,[]))}),p};getFieldValue=t=>{this.warningUnhooked();const o=$n(t);return Uo(this.store,o)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,i)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:$n(t[i]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const o=$n(t);return this.getFieldsError([o])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const o=$n(t);return this.getFieldsError([o])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[o,r]=t;let i,l=!1;t.length===0?i=null:t.length===1?Array.isArray(o)?(i=o.map($n),l=!1):(i=null,l=o):(i=o.map($n),l=r);const u=this.getFieldEntities(!0),f=b=>b.isFieldTouched();if(!i)return l?u.every(b=>f(b)||b.isList()):u.some(f);const p=new es;i.forEach(b=>{p.set(b,[])}),u.forEach(b=>{const v=b.getNamePath();i.forEach(x=>{x.every((C,S)=>v[S]===C)&&p.update(x,C=>[...C,b])})});const m=b=>b.some(f),h=p.map(({value:b})=>b);return l?h.every(m):h.some(m)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const o=this.getFieldEntities();if(!t)return o.some(i=>i.isFieldValidating());const r=t.map($n);return o.some(i=>{const l=i.getNamePath();return ps(r,l)&&i.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const o=new es,r=this.getFieldEntities(!0);r.forEach(u=>{const{initialValue:f}=u.props,p=u.getNamePath();if(f!==void 0){const m=o.get(p)||new Set;m.add({entity:u,value:f}),o.set(p,m)}});const i=u=>{u.forEach(f=>{const{initialValue:p}=f.props;if(p!==void 0){const m=f.getNamePath();if(this.getInitialValue(m)!==void 0)Yn(!1,`Form already set 'initialValues' with path '${m.join(".")}'. Field can not overwrite it.`);else{const b=o.get(m);if(b&&b.size>1)Yn(!1,`Multiple Field with path '${m.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(b){const v=this.getFieldValue(m);!f.isListField()&&(!t.skipExist||v===void 0)&&this.updateStore(Ro(this.store,m,[...b][0].value))}}}})};let l;t.entities?l=t.entities:t.namePathList?(l=[],t.namePathList.forEach(u=>{const f=o.get(u);f&&l.push(...[...f].map(p=>p.entity))})):l=r,i(l)};resetFields=t=>{this.warningUnhooked();const o=this.store;if(!t){this.updateStore(ls(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(o,null,{type:"reset"}),this.notifyWatch();return}const r=t.map($n);r.forEach(i=>{const l=this.getInitialValue(i);this.updateStore(Ro(this.store,i,l))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(o,r,{type:"reset"}),this.notifyWatch(r)};setFields=t=>{this.warningUnhooked();const o=this.store,r=[];t.forEach(i=>{const{name:l,...u}=i,f=$n(l);r.push(f),"value"in u&&this.updateStore(Ro(this.store,f,u.value)),this.notifyObservers(o,[f],{type:"setField",data:i})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const i=r.getNamePath(),u={...r.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(u,"originRCField",{value:!0}),u});initEntityValue=t=>{const{initialValue:o}=t.props;if(o!==void 0){const r=t.getNamePath();Uo(this.store,r)===void 0&&this.updateStore(Ro(this.store,r,o))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const o=t.getNamePath();if(this.notifyWatch([o]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,i,l=[])=>{if(this.fieldEntities=this.fieldEntities.filter(u=>u!==t),!this.isMergedPreserve(i)&&(!r||l.length>1)){const u=r?void 0:this.getInitialValue(o);if(o.length&&this.getFieldValue(o)!==u&&this.fieldEntities.every(f=>!kd(f.getNamePath(),o))){const f=this.store;this.updateStore(Ro(f,o,u,!0)),this.notifyObservers(f,[o],{type:"remove"}),this.triggerDependenciesUpdate(f,o)}}this.notifyWatch([o])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:o,value:r}=t;this.updateValue(o,r);break}case"validateField":{const{namePath:o,triggerName:r}=t;this.validateFields([o],{triggerName:r});break}}};notifyObservers=(t,o,r)=>{if(this.subscribable){const i={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:l})=>{l(t,o,i)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,o)=>{const r=this.getDependencyChildrenFields(o);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[o,...r]}),r};updateValue=(t,o)=>{const r=$n(t),i=this.store;this.updateStore(Ro(this.store,r,o)),this.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const l=this.triggerDependenciesUpdate(i,r),{onValuesChange:u}=this.callbacks;if(u){const f=_C(this.store,[r]),p=this.getFieldsValue(),m=Ro(p,r,Uo(f,r));u(f,m)}this.triggerOnFieldsChange([r,...l])};setFieldsValue=t=>{this.warningUnhooked();const o=this.store;if(t){const r=ls(this.store,t);this.updateStore(r)}this.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,o)=>{this.setFields([{name:t,value:o,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const o=new Set,r=[],i=new es;this.getFieldEntities().forEach(u=>{const{dependencies:f}=u.props;(f||[]).forEach(p=>{const m=$n(p);i.update(m,(h=new Set)=>(h.add(u),h))})});const l=u=>{(i.get(u)||new Set).forEach(p=>{if(!o.has(p)){o.add(p);const m=p.getNamePath();p.isFieldDirty()&&m.length&&(r.push(m),l(m))}})};return l(t),r};triggerOnFieldsChange=(t,o)=>{const{onFieldsChange:r}=this.callbacks;if(r){const i=this.getFields();if(o){const u=new es;o.forEach(({name:f,errors:p})=>{u.set(f,p)}),i.forEach(f=>{f.errors=u.get(f.name)||f.errors})}const l=i.filter(({name:u})=>ps(t,u));l.length&&r(l,i)}};validateFields=(t,o)=>{this.warningUnhooked();let r,i;Array.isArray(t)||typeof t=="string"||typeof o=="string"?(r=t,i=o):i=t;const l=!!r,u=l?r.map($n):[],f=[...u],p=[],m=String(Date.now()),h=new Set,{recursive:b,dirty:v}=i||{};this.getFieldEntities(!0).forEach(R=>{const E=R.getNamePath();if(l||((!R.isList()||!u.some(N=>kd(N,E,!0)))&&f.push(E),u.push(E)),!(!R.props.rules||!R.props.rules.length)&&!(v&&!R.isFieldDirty())&&(h.add(E.join(m)),!l||ps(u,E,b))){const N=R.validateRules({validateMessages:{...O2,...this.validateMessages},...i});p.push(N.then(()=>({name:E,errors:[],warnings:[]})).catch($=>{const w=[],T=[];return $.forEach?.(({rule:{warningOnly:z},errors:A})=>{z?T.push(...A):w.push(...A)}),w.length?Promise.reject({name:E,errors:w,warnings:T}):{name:E,errors:w,warnings:T}}))}});const x=F8(p);this.lastValidatePromise=x,x.catch(R=>R).then(R=>{const E=R.map(({name:N})=>N);this.notifyObservers(this.store,E,{type:"validateFinish"}),this.triggerOnFieldsChange(E,R)});const C=x.then(()=>this.lastValidatePromise===x?Promise.resolve(this.getFieldsValue(f)):Promise.reject([])).catch(R=>{const E=R.filter($=>$&&$.errors.length),N=E[0]?.errors?.[0];return Promise.reject({message:N,values:this.getFieldsValue(u),errorFields:E,outOfDate:this.lastValidatePromise!==x})});C.catch(R=>R);const S=u.filter(R=>h.has(R.join(m)));return this.triggerOnFieldsChange(S),C};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:o}=this.callbacks;if(o)try{o(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:o}=this.callbacks;o&&o(t)})}}function I2(e){const t=c.useRef(null),[,o]=c.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{o({})},i=new q8(r);t.current=i.getForm()}return[t.current]}const Uh=c.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),U8=({validateMessages:e,onFormChange:t,onFormFinish:o,children:r})=>{const i=c.useContext(Uh),l=c.useRef({});return c.createElement(Uh.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(u,f)=>{t&&t(u,{changedFields:f,forms:l.current}),i.triggerFormChange(u,f)},triggerFormFinish:(u,f)=>{o&&o(u,{values:f,forms:l.current}),i.triggerFormFinish(u,f)},registerForm:(u,f)=>{u&&(l.current={...l.current,[u]:f}),i.registerForm(u,f)},unregisterForm:u=>{const f={...l.current};delete f[u],l.current=f,i.unregisterForm(u)}}},r)};function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wh.apply(this,arguments)}const W8=(e,t)=>{const{name:o,initialValues:r,fields:i,form:l,preserve:u,children:f,component:p="form",validateMessages:m,validateTrigger:h="onChange",onValuesChange:b,onFieldsChange:v,onFinish:x,onFinishFailed:C,clearOnDestroy:S,...R}=e,E=c.useRef(null),N=c.useContext(Uh),[$]=I2(l),{useSubscribe:w,setInitialValues:T,setCallbacks:z,setValidateMessages:A,setPreserve:P,destroyForm:j}=$.getInternalHooks(oi);c.useImperativeHandle(t,()=>({...$,nativeElement:E.current})),c.useEffect(()=>(N.registerForm(o,$),()=>{N.unregisterForm(o)}),[N,$,o]),A({...N.validateMessages,...m}),z({onValuesChange:b,onFieldsChange:(D,...X)=>{N.triggerFormChange(o,D),v&&v(D,...X)},onFinish:D=>{N.triggerFormFinish(o,D),x&&x(D)},onFinishFailed:C}),P(u);const L=c.useRef(null);T(r,!L.current),L.current||(L.current=!0),c.useEffect(()=>()=>j(S),[]);let I;const H=typeof f=="function";if(H){const D=$.getFieldsValue(!0);I=f(D,$)}else I=f;w(!H);const W=c.useRef(null);c.useEffect(()=>{j8(W.current||[],i||[])||$.setFields(i||[]),W.current=i},[i,$]);const J=c.useMemo(()=>({...$,validateTrigger:h}),[$,h]),q=c.createElement(Gd.Provider,{value:null},c.createElement(Cs.Provider,{value:J},I));return p===!1?q:c.createElement(p,Wh({},R,{ref:E,onSubmit:D=>{D.preventDefault(),D.stopPropagation(),$.submit()},onReset:D=>{D.preventDefault(),$.resetFields(),R.onReset?.(D)}}),q)};function mg(e){try{return JSON.stringify(e)}catch{return Math.random()}}function G8(...e){const[t,o={}]=e,r=n8(o)?{form:o}:o,i=r.form,[l,u]=c.useState(()=>typeof t=="function"?t({}):void 0),f=c.useMemo(()=>mg(l),[l]),p=c.useRef(f);p.current=f;const m=c.useContext(Cs),h=i||m,b=h&&h._init,{getFieldsValue:v,getInternalHooks:x}=h,{registerWatch:C}=x(oi),S=ft((E,N)=>{const $=r.preserve?N??v(!0):E??v(),w=typeof t=="function"?t($):Uo($,$n(t));mg(l)!==mg(w)&&u(w)}),R=typeof t=="function"?t:JSON.stringify(t);return c.useEffect(()=>{b&&S()},[b,R]),c.useEffect(()=>b?C((N,$)=>{S(N,$)}):void 0,[b]),l}const X8=c.forwardRef(W8),gc=X8;gc.FormProvider=U8;gc.Field=A2;gc.List=V8;gc.useForm=I2;gc.useWatch=G8;const qr=c.createContext({}),k8=({children:e,status:t,override:o})=>{const r=c.useContext(qr),i=c.useMemo(()=>{const l={...r};return o&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,o,r]);return c.createElement(qr.Provider,{value:i},e)},Y8=c.createContext(void 0),$s=e=>{const{space:t,form:o,children:r}=e;if(!pr(r))return null;let i=r;return o&&(i=ce.createElement(k8,{override:!0,status:!0},i)),t&&(i=ce.createElement(D5,null,i)),i},K8=()=>Oo()&&window.document.documentElement;function P2(e,t,o){return c.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}const Sf=e=>{const{prefixCls:t,className:o,style:r,size:i,shape:l}=e,u=U({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),f=U({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),p=c.useMemo(()=>Go(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return c.createElement("span",{className:U(t,u,f,o),style:{...p,...r}})},Q8=new St("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),M0=e=>({height:e,lineHeight:re(e)}),Ma=e=>({width:e,...M0(e)}),Z8=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Q8,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),pg=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...M0(e)}),J8=e=>{const{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:i,controlHeightSM:l}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...Ma(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Ma(i)},[`${t}${t}-sm`]:{...Ma(l)}}},eI=e=>{const{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:l,gradientFromColor:u,calc:f}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:u,borderRadius:o,...pg(t,f)},[`${r}-lg`]:{...pg(i,f)},[`${r}-sm`]:{...pg(l,f)}}},B2=e=>{const{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:r,calc:i}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...Ma(i(r).mul(2).equal())}},tI=e=>({[e.skeletonNodeCls]:{...B2(e)}}),nI=e=>{const{skeletonImageCls:t,imageSizeBase:o,calc:r}=e;return{[t]:{...B2(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Ma(o),maxWidth:r(o).mul(4).equal(),maxHeight:r(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},gg=(e,t,o)=>{const{skeletonButtonCls:r}=e;return{[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},hg=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...M0(e)}),oI=e=>{const{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:i,controlHeightSM:l,gradientFromColor:u,calc:f}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:u,borderRadius:t,width:f(r).mul(2).equal(),minWidth:f(r).mul(2).equal(),...hg(r,f)},...gg(e,r,o),[`${o}-lg`]:{...hg(i,f)},...gg(e,i,`${o}-lg`),[`${o}-sm`]:{...hg(l,f)},...gg(e,l,`${o}-sm`)}},rI=e=>{const{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:l,skeletonInputCls:u,skeletonNodeCls:f,skeletonImageCls:p,controlHeight:m,controlHeightLG:h,controlHeightSM:b,gradientFromColor:v,padding:x,marginSM:C,borderRadius:S,titleHeight:R,blockRadius:E,paragraphLiHeight:N,controlHeightXS:$,paragraphMarginTop:w}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:x,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:v,...Ma(m)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...Ma(h)},[`${o}-sm`]:{...Ma(b)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:R,background:v,borderRadius:E,[`+ ${i}`]:{marginBlockStart:b}},[i]:{padding:0,"> li":{width:"100%",height:N,listStyle:"none",background:v,borderRadius:E,"+ li":{marginBlockStart:$}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:C,[`+ ${i}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...oI(e),...J8(e),...eI(e),...tI(e),...nI(e)},[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[u]:{width:"100%"}},[`${t}${t}-active`]:{[`
153
+ ${r},
154
+ ${i} > li,
155
+ ${o},
156
+ ${l},
157
+ ${u},
158
+ ${f},
159
+ ${p}
160
+ `]:{...Z8(e)}}}},aI=e=>{const{colorFillContent:t,colorFill:o}=e,r=t,i=o;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},hc=Qt("Skeleton",e=>{const{componentCls:t,calc:o}=e,r=Gt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return rI(r)},aI,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),iI=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:i,active:l,style:u,styles:f,shape:p="circle",size:m,...h}=e,{getPrefixCls:b}=c.useContext(xt),v=b("skeleton",t),[x,C]=hc(v),S=bo(E=>m??E),R=U(v,`${v}-element`,{[`${v}-active`]:l},r?.root,o,i,x,C);return c.createElement("div",{className:R,style:f?.root},c.createElement(Sf,{prefixCls:`${v}-avatar`,className:r?.content,style:{...f?.content,...u},shape:p,size:S,...h}))},sI=e=>{const{prefixCls:t,className:o,rootClassName:r,classNames:i,active:l,style:u,styles:f,block:p=!1,size:m,...h}=e,{getPrefixCls:b}=c.useContext(xt),v=b("skeleton",t),[x,C]=hc(v),S=bo(E=>m??E),R=U(v,`${v}-element`,{[`${v}-active`]:l,[`${v}-block`]:p},i?.root,o,r,x,C);return c.createElement("div",{className:R,style:f?.root},c.createElement(Sf,{prefixCls:`${v}-button`,className:i?.content,style:{...f?.content,...u},size:S,...h}))},j2=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:i,internalClassName:l,style:u,styles:f,active:p,children:m}=e,{getPrefixCls:h}=c.useContext(xt),b=h("skeleton",t),[v,x]=hc(b),C=U(b,`${b}-element`,{[`${b}-active`]:p},v,r?.root,o,i,x);return c.createElement("div",{className:C,style:f?.root},c.createElement("div",{className:U(r?.content,l||`${b}-node`),style:{...f?.content,...u}},m))},lI=e=>{const{getPrefixCls:t}=c.useContext(xt),o=t("skeleton",e.prefixCls);return c.createElement(j2,{...e,internalClassName:`${o}-image`},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},cI=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:i,active:l,block:u,style:f,styles:p,size:m,...h}=e,{getPrefixCls:b}=c.useContext(xt),v=b("skeleton",t),[x,C]=hc(v),S=bo(E=>m??E),R=U(v,`${v}-element`,{[`${v}-active`]:l,[`${v}-block`]:u},r?.root,o,i,x,C);return c.createElement("div",{className:R,style:p?.root},c.createElement(Sf,{prefixCls:`${v}-input`,className:r?.content,style:{...p?.content,...f},size:S,...h}))},uI=(e,t)=>{const{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},dI=e=>{const{prefixCls:t,className:o,style:r,rows:i=0}=e,l=Array.from({length:i}).map((u,f)=>c.createElement("li",{key:f,style:{width:uI(f,e)}}));return c.createElement("ul",{className:U(t,o),style:r},l)},fI=({prefixCls:e,className:t,width:o,style:r})=>c.createElement("h3",{className:U(e,t),style:{width:o,...r}});function bg(e){return Wt(e)?e:{}}function mI(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function pI(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function gI(e,t){const o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}const Ia=e=>{const{prefixCls:t,loading:o,className:r,rootClassName:i,classNames:l,style:u,styles:f,children:p,avatar:m=!1,title:h=!0,paragraph:b=!0,active:v,round:x}=e,{getPrefixCls:C,direction:S,className:R,style:E,classNames:N,styles:$}=Kt("skeleton"),w=C("skeleton",t),[T,z]=hc(w),A={...e,avatar:m,title:h,paragraph:b},P=pn(E),j=pn(u),[L,I]=dn([N,l],[$,P,f,j],{props:A});if(o||!("loading"in e)){const H=!!m,W=!!h,J=!!b;let q;if(H){const V={className:L.avatar,prefixCls:`${w}-avatar`,...mI(W,J),...bg(m),style:I.avatar};q=c.createElement("div",{className:U(L.header,`${w}-header`),style:I.header},c.createElement(Sf,{...V}))}let D;if(W||J){let V;if(W){const Q={className:L.title,prefixCls:`${w}-title`,...pI(H,J),...bg(h),style:I.title};V=c.createElement(fI,{...Q})}let Z;if(J){const Q={className:L.paragraph,prefixCls:`${w}-paragraph`,...gI(H,W),...bg(b),style:I.paragraph};Z=c.createElement(dI,{...Q})}D=c.createElement("div",{className:U(L.section,`${w}-section`),style:I.section},V,Z)}const X=U(w,{[`${w}-with-avatar`]:H,[`${w}-active`]:v,[`${w}-rtl`]:S==="rtl",[`${w}-round`]:x},L.root,R,r,i,T,z);return c.createElement("div",{className:X,style:I.root},q,D)}return p??null};Ia.Button=sI;Ia.Avatar=iI;Ia.Input=cI;Ia.Image=lI;Ia.Node=j2;function DC(){}const hI=c.createContext({add:DC,remove:DC});function _2(e){const t=c.useContext(hI),o=c.useRef(null);return ft(i=>{if(i){const l=e?i.querySelector(e):i;l&&(t.add(l),o.current=l)}else t.remove(o.current)})}const LC=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=c.useContext(pc);return ce.createElement(to,{onClick:o,...e},t)},VC=()=>{const{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:i}=c.useContext(pc);return ce.createElement(to,{...S2(o),loading:e,onClick:i,...t},r)};function bI(e,t){return ce.createElement("span",{className:`${e}-close-x`},t||ce.createElement(gr,{className:`${e}-close-icon`}))}const vI=e=>{const{okText:t,okType:o="primary",cancelText:r,confirmLoading:i,onOk:l,onCancel:u,okButtonProps:f,cancelButtonProps:p,footer:m}=e,[h]=za("Modal",jz()),b=t||h?.okText,v=r||h?.cancelText,x=ce.useMemo(()=>({confirmLoading:i,okButtonProps:f,cancelButtonProps:p,okTextLocale:b,cancelTextLocale:v,okType:o,onOk:l,onCancel:u}),[i,f,p,b,v,o,l,u]);let C;return mn(m)||typeof m>"u"?(C=ce.createElement(ce.Fragment,null,ce.createElement(LC,null),ce.createElement(VC,null)),mn(m)&&(C=m(C,{OkBtn:VC,CancelBtn:LC})),C=ce.createElement(R2,{value:x},C)):C=m,ce.createElement(Qw,{disabled:!1},C)},yI=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},xI=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},SI=(e,t)=>{const{componentCls:o,gridColumns:r,antCls:i}=e,[l,u]=Vt(i,"grid"),[,f]=Vt(i,"col"),p={};for(let m=r;m>=0;m--)m===0?(p[`${o}${t}-${m}`]={display:"none"},p[`${o}-push-${m}`]={insetInlineStart:"auto"},p[`${o}-pull-${m}`]={insetInlineEnd:"auto"},p[`${o}${t}-push-${m}`]={insetInlineStart:"auto"},p[`${o}${t}-pull-${m}`]={insetInlineEnd:"auto"},p[`${o}${t}-offset-${m}`]={marginInlineStart:0},p[`${o}${t}-order-${m}`]={order:0}):(p[`${o}${t}-${m}`]=[{[l("display")]:"block",display:"block"},{display:u("display"),flex:`0 0 ${m/r*100}%`,maxWidth:`${m/r*100}%`}],p[`${o}${t}-push-${m}`]={insetInlineStart:`${m/r*100}%`},p[`${o}${t}-pull-${m}`]={insetInlineEnd:`${m/r*100}%`},p[`${o}${t}-offset-${m}`]={marginInlineStart:`${m/r*100}%`},p[`${o}${t}-order-${m}`]={order:m});return p[`${o}${t}-flex`]={flex:f(`${t.replace(/-/,"")}-flex`)},p},Gh=(e,t)=>SI(e,t),CI=(e,t,o)=>({[`@media (min-width: ${re(t)})`]:{...Gh(e,o)}}),$I=()=>({}),EI=()=>({});Qt("Grid",yI,$I);const H2=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin});Qt("Grid",e=>{const t=Gt(e,{gridColumns:24}),o=H2(t);return delete o.xs,[xI(t),Gh(t,""),Gh(t,"-xs"),Object.keys(o).map(r=>CI(t,o[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},EI);function FC(e){return{position:e,inset:0}}const wI=e=>{const{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...FC("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...FC("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:$2(e)}]},NI=e=>{const{componentCls:t,motionDurationMid:o}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${re(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Dn(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${re(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...Ns(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:re(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Lr(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${re(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
161
+ ${t}-body,
162
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},RI=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},MI=e=>{const{componentCls:t}=e,o=H2(e),r={...o};delete r.xs;const i=`--${t.replace(".","")}-`,l=Object.keys(r).map(u=>({[`@media (min-width: ${re(r[u])})`]:{width:`var(${i}${u}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ho(Object.keys(o).map((u,f)=>{const p=Object.keys(o)[f-1];return p?{[`${i}${u}-width`]:`var(${i}${p}-width)`}:null})),[{width:`var(${i}xs-width)`}],ho(l))}}},D2=e=>{const t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return Gt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},L2=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${re(e.padding)} ${re(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${re(e.paddingXS)} ${re(e.padding)}`:0,footerBorderTop:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${re(e.padding*2)} ${re(e.padding*2)} ${re(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),TI=Qt("Modal",e=>{const t=D2(e);return[NI(t),RI(t),wI(t),N0(t,"zoom"),MI(t)]},L2,{unitless:{titleLineHeight:!0}});let Xh;const OI=e=>{Xh={x:e.pageX,y:e.pageY},setTimeout(()=>{Xh=null},100)};K8()&&document.documentElement.addEventListener("click",OI,!0);const zI=e=>{const{prefixCls:t,className:o,rootClassName:r,open:i,wrapClassName:l,centered:u,getContainer:f,style:p,width:m=520,footer:h,classNames:b,styles:v,children:x,loading:C,confirmLoading:S,zIndex:R,mousePosition:E,onOk:N,onCancel:$,okButtonProps:w,cancelButtonProps:T,destroyOnHidden:z,destroyOnClose:A,panelRef:P=null,closable:j,mask:L,modalRender:I,maskClosable:H,_semanticOmit:W,scrollLock:J,focusTriggerAfterClose:q,focusable:D,_renderSemanticContent:X,...V}=e,{getPopupContainer:Z,getPrefixCls:Q,direction:B,className:F,style:k,classNames:G,styles:K,centered:te,cancelButtonProps:Y,okButtonProps:ie,mask:se,focusable:ae}=Kt("modal"),{modal:me}=c.useContext(xt),[ne,ue]=c.useMemo(()=>typeof j=="boolean"?[void 0,void 0]:[j?.afterClose,j?.onClose],[j]),ye=Q("modal",t),ve=Q(),[Ee,Ce,be]=l2(L,se,ye,H),ge=P2({...ae,...D},Ee,q),ze=et=>{S||($?.(et),ue?.())},we=et=>{N?.(et),ue?.()},Ie=hr(ye),[Oe,je]=TI(ye,Ie),nt=U(l,{[`${ye}-centered`]:u??te,[`${ye}-wrap-rtl`]:B==="rtl"}),Ye=h!==null&&!C?c.createElement(vI,{...e,okButtonProps:{...ie,...w},onOk:we,cancelButtonProps:{...Y,...T},onCancel:ze}):null,[De,qe,Je,Ue]=s2(xs(e),xs(me),{closable:!0,closeIcon:c.createElement(gr,{className:`${ye}-close-icon`}),closeIconRender:et=>bI(ye,et)}),Pe=De?{disabled:Je,closeIcon:qe,afterClose:ne,...Ue}:!1,_e=I?et=>c.createElement("div",{className:`${ye}-render`},I(et)):void 0,We=`.${ye}-${I?"render":"container"}`,Be=_2(We),he=oo(P,Be),[Te,Le]=mc("Modal",R),Ge={...e,width:m,panelRef:P,focusTriggerAfterClose:ge.focusTriggerAfterClose,focusable:ge,mask:Ee,maskClosable:be,zIndex:Te},[ot,Qe]=dn([G,b,Ce],[K,v],{props:Ge}),ut=W?xn(ot,W):ot,Ct=W?xn(Qe,W):Qe,mt=X?X({classNames:ot,styles:Qe}):x,[Nt,vt]=c.useMemo(()=>Wt(m)?[void 0,m]:[m,void 0],[m]),Pt=c.useMemo(()=>{const et={};return vt&&Object.keys(vt).forEach(Bt=>{const Ve=vt[Bt];Kn(Ve)&&(et[`--${ye}-${Bt}-width`]=Go(Ve)?`${Ve}px`:Ve)}),et},[ye,vt]);return c.createElement($s,{form:!0,space:!0},c.createElement(bf.Provider,{value:Le},c.createElement(t8,{width:Nt,...V,zIndex:Te,getContainer:f===void 0?Z:f,prefixCls:ye,rootClassName:U(Oe,r,je,Ie,ut.root),rootStyle:Ct.root,footer:Ye,visible:i,mousePosition:E??Xh,onClose:ze,closable:Pe,closeIcon:qe,transitionName:Fr(ve,"zoom",e.transitionName),maskTransitionName:Fr(ve,"fade",e.maskTransitionName),mask:Ee,maskClosable:be,scrollLock:J,className:U(Oe,o,F),style:{...k,...p,...Pt},classNames:{...ut,wrapper:U(ut.wrapper,nt)},styles:Ct,panelRef:he,destroyOnHidden:z??A,modalRender:_e,focusTriggerAfterClose:ge.focusTriggerAfterClose,focusTrap:ge.trap},C?c.createElement(Ia,{active:!0,title:!1,paragraph:{rows:4},className:`${ye}-body-skeleton`}):mt)))},AI=e=>{const{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:i,fontSize:l,lineHeight:u,modalTitleHeight:f,fontHeight:p,confirmBodyPadding:m}=e,h=`${t}-confirm`;return{[h]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${h}-body-wrapper`]:{...mi()},[`&${t} ${t}-body`]:{padding:m},[`${h}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(p).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(f).sub(i).equal()).div(2).equal()}},[`${h}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${re(e.marginSM)})`},[`${h}-body-no-icon ${h}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${h}-paragraph`]:{maxWidth:`calc(100% - ${re(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${h}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${h}-container`]:{color:e.colorText,fontSize:l,lineHeight:u},[`${h}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${h}-error ${h}-body > ${e.iconCls}`]:{color:e.colorError},[`${h}-warning ${h}-body > ${e.iconCls},
163
+ ${h}-confirm ${h}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${h}-info ${h}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${h}-success ${h}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},II=ff(["Modal","confirm"],e=>{const t=D2(e);return AI(t)},L2,{order:-1e3}),PI=["body"],BI=e=>{const{prefixCls:t,icon:o,okText:r,cancelText:i,confirmPrefixCls:l,type:u,okCancel:f,footer:p,locale:m,autoFocusButton:h,focusable:b,contentClassName:v,contentStyle:x,...C}=e,{infoIcon:S,successIcon:R,errorIcon:E,warningIcon:N}=Kt("modal");let $=o;if(o===void 0)switch(u){case"info":$=Wo(S,c.createElement(pf,null));break;case"success":$=Wo(R,c.createElement(uc,null));break;case"error":$=Wo(E,c.createElement(gi,null));break;default:$=Wo(N,c.createElement(mf,null))}const w=f??u==="confirm",T=c.useMemo(()=>{const X=b?.autoFocusButton||h;return X||X===null?X:"ok"},[h,b?.autoFocusButton]),[z]=za("Modal"),A=m||z,P=r||(w?A?.okText:A?.justOkText),j=i||A?.cancelText,{closable:L}=C,{onClose:I}=Wt(L)?L:{},H=c.useMemo(()=>({autoFocusButton:T,cancelTextLocale:j,okTextLocale:P,mergedOkCancel:w,onClose:I,...C}),[T,j,P,w,I,C]),W=c.createElement(c.Fragment,null,c.createElement(RC,null),c.createElement(MC,null)),J=pr(e.title),q=pr($),D=`${l}-body`;return c.createElement("div",{className:`${l}-body-wrapper`},c.createElement("div",{className:U(D,{[`${D}-has-title`]:J,[`${D}-no-icon`]:!q})},$,c.createElement("div",{className:`${l}-paragraph`},J&&c.createElement("span",{className:`${l}-title`},e.title),c.createElement("div",{className:U(`${l}-content`,v),style:x},e.content))),p===void 0||mn(p)?c.createElement(R2,{value:H},c.createElement("div",{className:`${l}-btns`},mn(p)?p(W,{OkBtn:MC,CancelBtn:RC}):W)):p,c.createElement(II,{prefixCls:t}))},jI=e=>{const{close:t,zIndex:o,maskStyle:r,direction:i,prefixCls:l,wrapClassName:u,rootPrefixCls:f,bodyStyle:p,closable:m=!1,onConfirm:h,styles:b,title:v,mask:x,maskClosable:C,okButtonProps:S,cancelButtonProps:R}=e,{cancelButtonProps:E,okButtonProps:N}=Kt("modal"),$=`${l}-confirm`,w=e.width||416,T=e.style||{},z=mn(b)?H=>({body:p,mask:r,...b(H)}):{body:p,mask:r,...b},A=xn(e,["bodyStyle","maskStyle"]),P=U($,`${$}-${e.type}`,{[`${$}-rtl`]:i==="rtl"},e.className),j=c.useMemo(()=>{const H=zh(x,C);return H.closable??(H.closable=!1),H},[x,C]),[,L]=ko(),I=c.useMemo(()=>o!==void 0?o:L.zIndexPopupBase+v0,[o,L]);return c.createElement(zI,{...A,className:P,wrapClassName:U({[`${$}-centered`]:!!e.centered},u),onCancel:()=>{t?.({triggerCancel:!0}),h?.(!1)},title:v,footer:null,transitionName:Fr(f||"","zoom",e.transitionName),maskTransitionName:Fr(f||"","fade",e.maskTransitionName),mask:j,style:T,styles:z,width:w,zIndex:I,closable:m,_semanticOmit:PI,_renderSemanticContent:({classNames:H,styles:W})=>c.createElement(BI,{...e,confirmPrefixCls:$,okButtonProps:{...N,...S},cancelButtonProps:{...E,...R},contentClassName:H.body,contentStyle:W.body})})},_I=e=>{const{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:i}=e;return c.createElement(Aa,{prefixCls:t,iconPrefixCls:o,direction:r,theme:i},c.createElement(jI,{...e}))};function HI(e){return{...e,type:"warning"}}function DI(e){return{...e,type:"info"}}function LI(e){return{...e,type:"success"}}function VI(e){return{...e,type:"error"}}function FI(e){return{...e,type:"confirm"}}const qI=c.forwardRef((e,t)=>{const{afterClose:o,config:r,...i}=e,[l,u]=c.useState(!0),[f,p]=c.useState(r),{direction:m,getPrefixCls:h}=c.useContext(xt),b=h("modal"),v=h(),x=()=>{o(),f.afterClose?.()},C=(...E)=>{u(!1),E.some($=>$?.triggerCancel)&&f.onCancel?.(()=>{},...E.slice(1))};c.useImperativeHandle(t,()=>({destroy:C,update:E=>{p(N=>{const $=mn(E)?E(N):E;return{...N,...$}})}}));const S=f.okCancel??f.type==="confirm",[R]=za("Modal",Oa.Modal);return c.createElement(_I,{prefixCls:b,rootPrefixCls:v,...f,close:C,open:l,afterClose:x,okText:f.okText||(S?R?.okText:R?.justOkText),direction:f.direction||m,cancelText:f.cancelText||R?.cancelText,...i})});let qC=0;const UI=c.memo(c.forwardRef((e,t)=>{const[o,r]=q3();return c.useImperativeHandle(t,()=>({patchElement:r}),[r]),c.createElement(c.Fragment,null,o)}));function WI(){const e=c.useRef(null),[t,o]=c.useState([]);c.useEffect(()=>{t.length&&(ho(t).forEach(u=>{u()}),o([]))},[t]);const r=c.useCallback(l=>function(f){qC+=1;const p=c.createRef();let m;const h=new Promise(S=>{m=S});let b=!1,v;const x=c.createElement(qI,{key:`modal-${qC}`,config:l(f),ref:p,afterClose:()=>{v?.()},isSilent:()=>b,onConfirm:S=>{m(S)}});return v=e.current?.patchElement(x),{destroy:()=>{function S(){p.current?.destroy()}p.current?S():o(R=>[].concat(ho(R),[S]))},update:S=>{function R(){p.current?.update(S)}p.current?R():o(E=>[].concat(ho(E),[R]))},then:S=>(b=!0,h.then(S))}},[]);return[c.useMemo(()=>({info:r(DI),success:r(LI),error:r(VI),warning:r(HI),confirm:r(FI)}),[r]),c.createElement(UI,{key:"modal-holder",ref:e})]}const GI={info:c.createElement(pf,null),success:c.createElement(uc,null),error:c.createElement(gi,null),warning:c.createElement(mf,null),loading:c.createElement(hf,null)};function V2(e,t){return t===null||t===!1?null:t||c.createElement(gr,{className:`${e}-close-icon`})}const XI=4.5,kI="topRight",YI={offset:8},KI=({children:e,prefixCls:t})=>{const o=hr(t),[r,i]=f5(t,o);return ce.createElement(Jw,{classNames:{list:U(r,i,o)}},e)},QI=(e,{prefixCls:t,key:o})=>ce.createElement(KI,{prefixCls:t,key:o},e),ZI=ce.forwardRef((e,t)=>{const{top:o,bottom:r,prefixCls:i,getContainer:l,maxCount:u,rtl:f,onAllRemoved:p,stack:m,duration:h=XI,pauseOnHover:b=!0,showProgress:v}=e,{getPrefixCls:x,getPopupContainer:C,direction:S}=Kt("notification"),{notification:R}=c.useContext(xt),E=i||x("notification"),N=c.useMemo(()=>Go(h)&&h>0?h:!1,[h]),[$,w]=dn([R?.classNames,e?.classNames],[R?.styles,e?.styles],{props:e}),T=()=>o2(o,r),z=()=>U({[`${E}-rtl`]:f??S==="rtl"}),A=()=>P3(E),P=n2(m,YI),[j,L]=t2({prefixCls:E,style:T,className:z,motion:A,closable:{closeIcon:V2(E)},duration:N,getContainer:()=>l?.()||C?.()||document.body,maxCount:u,pauseOnHover:b,showProgress:v,classNames:$,styles:w,onAllRemoved:p,renderNotifications:QI,stack:P});return ce.useImperativeHandle(t,()=>({...j,prefixCls:E,notification:R})),L});function JI(e){const t=ce.useRef(null),{notification:o}=ce.useContext(xt);return[ce.useMemo(()=>{const i=p=>{if(!t.current)return;const{open:m,prefixCls:h,notification:b}=t.current,v=b?.className||{},x=b?.style||{},C=`${h}-notice`,{title:S,message:R,description:E,icon:N,type:$,btn:w,actions:T,className:z,style:A,role:P="alert",closeIcon:j,closable:L,classNames:I={},styles:H={},...W}=p,J=S??R,q=pr(J),D=T??w,X=V2(C,B3(j,e,b)),[V,Z,,Q]=i2(xs({...e||{},...p}),xs(o),{closable:!0,closeIcon:X}),B=V?{onClose:Wt(L)?L.onClose:void 0,closeIcon:Z,...Q}:!1,F=vs(I,{props:p}),k=vs(H,{props:p}),G=N||($?GI[$]:null),K=!N&&$?`${C}-icon-${$}`:void 0;return m({placement:e?.placement??kI,...W,title:q?J:null,description:E,icon:G,actions:D,role:P,classNames:{...F,icon:U(K,F?.icon)},styles:{...k,root:{...x,...k?.root}},className:U({[`${C}-${$}`]:$},z,v),style:A,closable:B})},u={open:i,destroy:p=>{p!==void 0?t.current?.close(p):t.current?.destroy()}};return["success","info","warning","error"].forEach(p=>{u[p]=m=>i({...m,type:p})}),u},[e,o]),ce.createElement(ZI,{key:"notification-holder",...e,ref:t})]}function eP(e){return JI(e)}const UC=ce.createContext({}),F2=ce.createContext({message:{},notification:{},modal:{}}),tP=e=>{const{componentCls:t,colorText:o,fontSize:r,lineHeight:i,fontFamily:l}=e;return{[t]:{color:o,fontSize:r,lineHeight:i,fontFamily:l,[`&${t}-rtl`]:{direction:"rtl"}}}},nP=()=>({}),oP=Qt("App",tP,nP),rP=ce.forwardRef((e,t)=>{const{prefixCls:o,children:r,className:i,rootClassName:l,message:u,notification:f,style:p,component:m="div"}=e,{direction:h,getPrefixCls:b,className:v,style:x}=Kt("app"),C=b("app",o),[S,R]=oP(C),E=U(S,C,i,l,R,{[`${C}-rtl`]:h==="rtl"}),N=c.useContext(UC),$=ce.useMemo(()=>({message:{...N.message,...u},notification:{...N.notification,...f}}),[u,f,N.message,N.notification]),[w,T]=M5($.message),[z,A]=eP($.notification),[P,j]=WI(),L=ce.useMemo(()=>({message:w,notification:z,modal:P}),[w,z,P]),I=m===!1?ce.Fragment:m,H={className:U(v,E),style:{...x,...p}};return ce.createElement(F2.Provider,{value:L},ce.createElement(UC.Provider,{value:$},ce.createElement(I,{...m===!1?void 0:{...H,ref:t}},j,T,A,r)))}),aP=()=>ce.useContext(F2),T0=rP;T0.useApp=aP;function iP(e){return t=>c.createElement(Aa,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,{...t}))}const sP=(e,t,o,r,i)=>iP(u=>{const{prefixCls:f,style:p}=u,m=c.useRef(null),[h,b]=c.useState(0),[v,x]=c.useState(0),[C,S]=To(!1,u.open),{getPrefixCls:R}=c.useContext(xt),E=R("select",f);c.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(z=>{const A=z[0].target;b(A.offsetHeight+8),x(A.offsetWidth)}),T=setInterval(()=>{const z=`.${E}-dropdown`,A=m.current?.querySelector(z);A&&(clearInterval(T),w.observe(A))},10);return()=>{clearInterval(T),w.disconnect()}}},[E]);let N={...u,style:{...p,margin:0},open:C,getPopupContainer:()=>m.current};N={...N,[t]:{overflow:{adjustX:!1,adjustY:!1}}};const $={paddingBottom:h,position:"relative",minWidth:v};return c.createElement("div",{ref:m,style:$},c.createElement(e,{...N}))}),lP=(e,t,o,r,i=!1,l,u)=>{const f=c.useMemo(()=>typeof o=="boolean"?{allowClear:o}:o&&typeof o=="object"?o:{allowClear:!1},[o]);return c.useMemo(()=>{const p=!i&&f.allowClear!==!1&&(t.length||l)&&!(u==="combobox"&&l==="");return{allowClear:p,clearIcon:p?f.clearIcon||r||"×":null}},[f,r,i,t.length,l,u])},q2=c.createContext(null);function hi(){return c.useContext(q2)}function cP(e=250){const t=c.useRef(null),o=c.useRef(null);c.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function U2(e,t){return e.filter(o=>o).some(o=>o.contains(t)||o===t)}function uP(e,t,o,r){const i=ft(l=>{if(r)return;let u=l.target;u.shadowRoot&&l.composed&&(u=l.composedPath()[0]||u),l._ori_target&&(u=l._ori_target),t&&!U2(e(),u)&&o(!1)});c.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},kh.apply(this,arguments)}const dP=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},fP=(e,t)=>{const{prefixCls:o,disabled:r,visible:i,children:l,popupElement:u,animation:f,transitionName:p,popupStyle:m,popupClassName:h,direction:b="ltr",placement:v,builtinPlacements:x,popupMatchSelectWidth:C,popupRender:S,popupAlign:R,getPopupContainer:E,empty:N,onPopupVisibleChange:$,onPopupMouseEnter:w,onPopupMouseDown:T,onPopupBlur:z,...A}=e,P=`${o}-dropdown`;let j=u;S&&(j=S(u));const L=c.useMemo(()=>x||dP(C),[x,C]),I=f?`${P}-${f}`:p,H=typeof C=="number",W=c.useMemo(()=>C===!1||H?"minWidth":"width",[C,H]);let J=m;H&&(J={...m,width:C});const q=c.useRef(null);return c.useImperativeHandle(t,()=>({getPopupElement:()=>q.current?.popupElement})),c.createElement(gf,kh({},A,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:v||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:P,popupMotion:{motionName:I},popup:c.createElement("div",{onMouseEnter:w,onMouseDown:T,onBlur:z},j),ref:q,stretch:W,popupAlign:R,popupVisible:i,getPopupContainer:E,popupClassName:U(h,{[`${P}-empty`]:N}),popupStyle:J,onPopupVisibleChange:$}),l)},mP=c.forwardRef(fP);function WC(e,t){const{key:o}=e;let r;return"value"in e&&({value:r}=e),o??(r!==void 0?r:`rc-index-key-${t}`)}function Yh(e){return typeof e<"u"&&!Number.isNaN(e)}function W2(e,t){const{label:o,value:r,options:i,groupLabel:l}=e||{},u=o||(t?"children":"label");return{label:u,value:r||"value",options:i||"options",groupLabel:l||u}}function pP(e,{fieldNames:t,childrenAsData:o}={}){const r=[],{label:i,value:l,options:u,groupLabel:f}=W2(t,!1);function p(m,h){Array.isArray(m)&&m.forEach(b=>{if(h||!(u in b)){const v=b[l];r.push({key:WC(b,r.length),groupOption:h,data:b,label:b[i],value:v})}else{let v=b[f];v===void 0&&o&&(v=b.label),r.push({key:WC(b,r.length),group:!0,data:b,label:v}),p(b[u],!0)}})}return p(e,!1),r}function Kh(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Yn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const gP=(e,t,o)=>{if(!t||!t.length)return null;let r=!1;const i=(u,[f,...p])=>{if(!f)return[u];const m=u.split(f);return r=r||m.length>1,m.reduce((h,b)=>[...h,...i(b,p)],[]).filter(Boolean)},l=i(e,t);return r?typeof o<"u"?l.slice(0,o):l:null};function hP(e){const{visible:t,values:o}=e;if(!t)return null;const r=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${o.slice(0,r).map(({label:i,value:l})=>["number","string"].includes(typeof i)?i:l).join(", ")}`,o.length>r?", ...":null)}const bP=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},O0=(e,t=1)=>{if(t<=0){e();return}bP(()=>{O0(e,t-1)})};function vP(e,t,o,r){const[i,l]=c.useState(!1);c.useEffect(()=>{l(!0)},[]);const[u,f]=To(e,t),[p,m]=c.useState(!1),h=i?u:!1,b=r(h),v=c.useRef(0),x=ft(S=>{o&&b!==S&&o(S),f(S)}),C=ft((S,R={})=>{const{cancelFun:E}=R;v.current+=1;const N=v.current,$=typeof S=="boolean"?S:!b;m(!$);function w(){N===v.current&&!E?.()&&(x($),m(!1))}$?w():O0(()=>{w()})});return[h,b,C,p]}function vg(e){const{children:t,...o}=e;return t?c.createElement("div",o,t):null}const G2=c.createContext(null);function bc(){return c.useContext(G2)}const X2=c.forwardRef((e,t)=>{const{onChange:o,onKeyDown:r,onBlur:i,style:l,syncWidth:u,value:f,className:p,autoComplete:m,...h}=e,{prefixCls:b,mode:v,onSearch:x,onSearchSubmit:C,onInputBlur:S,autoFocus:R,tokenWithEnter:E,placeholder:N,components:{input:$="input"}}=bc(),{id:w,classNames:T,styles:z,open:A,activeDescendantId:P,role:j,disabled:L}=hi()||{},I=U(`${b}-input`,T?.input,p),H=c.useRef(!1),W=c.useRef(null),J=c.useRef(null);c.useImperativeHandle(t,()=>J.current);const q=K=>{let{value:te}=K.target;if(E&&W.current&&/[\r\n]/.test(W.current)){const Y=W.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");te=te.replace(Y,W.current)}W.current=null,x&&x(te,!0,H.current),o?.(K)},D=K=>{const{key:te}=K,{value:Y}=K.currentTarget;te==="Enter"&&v==="tags"&&!A&&!H.current&&C&&C(Y),r?.(K)},X=K=>{S?.(),i?.(K)},V=()=>{H.current=!0},Z=K=>{if(H.current=!1,v!=="combobox"){const{value:te}=K.currentTarget;x?.(te,!0,!1)}},Q=K=>{const{clipboardData:te}=K,Y=te?.getData("text");W.current=Y||""},[B,F]=c.useState(void 0);un(()=>{const K=J.current;if(u&&K){K.style.width="0px";const te=K.scrollWidth;F(te),K.style.width=""}},[u,f]);const k={id:w,type:"text",...h,ref:J,style:{...z?.input,...l,"--select-input-width":B},autoFocus:R,autoComplete:m||"new-password",className:I,disabled:L,value:f||"",onChange:q,onKeyDown:D,onBlur:X,onPaste:Q,onCompositionStart:V,onCompositionEnd:Z,role:j||"combobox","aria-expanded":A||!1,"aria-haspopup":"listbox","aria-owns":A?`${w}_list`:void 0,"aria-autocomplete":"list","aria-controls":A?`${w}_list`:void 0,"aria-activedescendant":A?P:void 0};if(c.isValidElement($)){const K=$.props||{},te={placeholder:e.placeholder||N,...k,...K};return Object.keys(K).forEach(Y=>{const ie=K[Y];typeof ie=="function"&&(te[Y]=(...se)=>{ie(...se),k[Y]?.(...se)})}),te.ref=oo($.ref,k.ref),c.cloneElement($,te)}const G=$;return c.createElement(G,k)});function k2(e){const{prefixCls:t,placeholder:o,displayValues:r}=bc(),{classNames:i,styles:l}=hi(),{show:u=!0}=e;return r.length?null:c.createElement("div",{className:U(`${t}-placeholder`,i?.placeholder),style:{visibility:u?"visible":"hidden",...l?.placeholder}},o)}const z0=c.createContext(null);function Y2(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function yP(e){return e!=null}function xP(e){return!e&&e!==0}function GC(e){return["string","number"].includes(typeof e)}function Qh(e){let t;return e&&(GC(e.title)?t=e.title.toString():GC(e.label)&&(t=e.label.toString())),t}function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Zh.apply(this,arguments)}const SP=c.forwardRef(({inputProps:e},t)=>{const{prefixCls:o,searchValue:r,activeValue:i,displayValues:l,maxLength:u,mode:f,components:p}=bc(),{triggerOpen:m,title:h,showSearch:b,classNames:v,styles:x}=hi(),C=c.useContext(z0),[S,R]=c.useState(!1),E=f==="combobox",N=l[0],$=c.useMemo(()=>E&&i&&!S&&m?i:b?r:"",[E,i,S,m,r,b]),[w,T,z,A]=c.useMemo(()=>{let I,H,W;if(N&&C?.flattenOptions){const q=C.flattenOptions.find(D=>D.value===N.value);q?.data&&(I=q.data.className,H=q.data.style,W=Qh(q.data))}return N&&!W&&(W=Qh(N)),h!==void 0&&(W=h),[I,H,W,!!I||!!H]},[N,C?.flattenOptions,h]);c.useEffect(()=>{E&&R(!1)},[E,i]);const P=N&&N.label!==null&&N.label!==void 0&&String(N.label).trim()!=="",L=!(E&&p?.input)?N?A?c.createElement("div",{className:U(`${o}-content-value`,w),style:{...$?{visibility:"hidden"}:{},...T},title:z},N.label):N.label:c.createElement(k2,{show:!$}):null;return c.createElement("div",{className:U(`${o}-content`,P&&`${o}-content-has-value`,$&&`${o}-content-has-search-value`,A&&`${o}-content-has-option-style`,v?.content),style:x?.content,title:A?void 0:z},L,c.createElement(X2,Zh({ref:t},e,{value:$,maxLength:f==="combobox"?u:void 0,onChange:I=>{R(!0),e.onChange?.(I)}})))}),ts=void 0;function CP(e,t){const{prefixCls:o,invalidate:r,item:i,renderItem:l,responsive:u,responsiveDisabled:f,registerSize:p,itemKey:m,className:h,style:b,children:v,display:x,order:C,component:S="div",...R}=e,E=u&&!x;function N(A){p(m,A)}c.useEffect(()=>()=>{N(null)},[]);const $=l&&i!==ts?l(i,{index:C}):v;let w;r||(w={opacity:E?0:1,height:E?0:ts,overflowY:E?"hidden":ts,order:u?C:ts,pointerEvents:E?"none":ts,position:E?"absolute":ts});const T={};E&&(T["aria-hidden"]=!0);let z=c.createElement(S,fr({className:U(!r&&o,h),style:{...w,...b}},T,R,{ref:t}),$);return u&&(z=c.createElement(mr,{onResize:({offsetWidth:A})=>{N(A)},disabled:f},z)),z}const _l=c.forwardRef(CP);function $P(e){if(typeof MessageChannel>"u")Lt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function EP(){const e=c.useRef(null);return o=>{e.current||(e.current=[],$P(()=>{di.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(o)}}function ns(e,t){const[o,r]=c.useState(t),i=ft(l=>{e(()=>{r(l)})});return[o,i]}const Yd=ce.createContext(null),wP=(e,t)=>{const o=c.useContext(Yd);if(!o){const{component:f="div",...p}=e;return c.createElement(f,fr({},p,{ref:t}))}const{className:r,...i}=o,{className:l,...u}=e;return c.createElement(Yd.Provider,{value:null},c.createElement(_l,fr({ref:t,className:U(r,l)},i,u)))},NP=c.forwardRef(wP),K2="responsive",Q2="invalidate";function RP(e){return`+ ${e.length} ...`}function MP(e,t){const{prefixCls:o="rc-overflow",data:r=[],renderItem:i,renderRawItem:l,itemKey:u,itemWidth:f=10,ssr:p,style:m,className:h,maxCount:b,renderRest:v,renderRawRest:x,prefix:C,suffix:S,component:R="div",itemComponent:E,onVisibleChange:N,...$}=e,w=p==="full",T=EP(),[z,A]=ns(T,null),P=z||0,[j,L]=ns(T,new Map),[I,H]=ns(T,0),[W,J]=ns(T,0),[q,D]=ns(T,0),[X,V]=ns(T,0),[Z,Q]=c.useState(null),[B,F]=c.useState(null),k=c.useMemo(()=>B===null&&w?Number.MAX_SAFE_INTEGER:B||0,[B,z]),[G,K]=c.useState(!1),te=`${o}-item`,Y=Math.max(I,W),ie=b===K2,se=r.length&&ie,ae=b===Q2,me=se||typeof b=="number"&&r.length>b,ne=c.useMemo(()=>{let Pe=r;return se?z===null&&w?Pe=r:Pe=r.slice(0,Math.min(r.length,P/f)):typeof b=="number"&&(Pe=r.slice(0,b)),Pe},[r,f,z,b,se]),ue=c.useMemo(()=>se?r.slice(k+1):r.slice(ne.length),[r,ne,se,k]),ye=c.useCallback((Pe,_e)=>typeof u=="function"?u(Pe):(u&&Pe?.[u])??_e,[u]),ve=c.useCallback(i||(Pe=>Pe),[i]);function Ee(Pe,_e,We){B===Pe&&(_e===void 0||_e===Z)||(F(Pe),We||(K(Pe<r.length-1),N?.(Pe)),_e!==void 0&&Q(_e))}function Ce(Pe,_e){A(_e.clientWidth)}function be(Pe,_e){L(We=>{const Be=new Map(We);return _e===null?Be.delete(Pe):Be.set(Pe,_e),Be})}function ge(Pe,_e){J(_e),H(W)}function ze(Pe,_e){D(_e)}function we(Pe,_e){V(_e)}function Ie(Pe){return j.get(ye(ne[Pe],Pe))}un(()=>{if(P&&typeof Y=="number"&&ne){let Pe=q+X;const _e=ne.length,We=_e-1;if(!_e){Ee(0,null);return}for(let Be=0;Be<_e;Be+=1){let he=Ie(Be);if(w&&(he=he||0),he===void 0){Ee(Be-1,void 0,!0);break}if(Pe+=he,We===0&&Pe<=P||Be===We-1&&Pe+Ie(We)<=P){Ee(We,null);break}else if(Pe+Y>P){Ee(Be-1,Pe-he-X+W);break}}S&&Ie(0)+X>P&&Q(null)}},[P,j,W,q,X,ye,ne]);const Oe=G&&!!ue.length;let je={};Z!==null&&se&&(je={position:"absolute",top:0,insetInlineStart:Z});const nt={prefixCls:te,responsive:se,component:E,invalidate:ae},Ye=l?(Pe,_e)=>{const We=ye(Pe,_e);return c.createElement(Yd.Provider,{key:We,value:{...nt,order:_e,item:Pe,itemKey:We,registerSize:be,display:_e<=k}},l(Pe,_e))}:(Pe,_e)=>{const We=ye(Pe,_e);return c.createElement(_l,fr({},nt,{order:_e,key:We,item:Pe,renderItem:ve,itemKey:We,registerSize:be,display:_e<=k}))},De={order:Oe?k:Number.MAX_SAFE_INTEGER,className:`${te}-rest`,registerSize:ge,display:Oe},qe=v||RP,Je=x?c.createElement(Yd.Provider,{value:{...nt,...De}},x(ue)):c.createElement(_l,fr({},nt,De),typeof qe=="function"?qe(ue):qe),Ue=c.createElement(R,fr({className:U(!ae&&o,h),style:m,ref:t},$),C&&c.createElement(_l,fr({},nt,{responsive:ie,responsiveDisabled:!se,order:-1,className:`${te}-prefix`,registerSize:ze,display:!0}),C),ne.map(Ye),me?Je:null,S&&c.createElement(_l,fr({},nt,{responsive:ie,responsiveDisabled:!se,order:k,className:`${te}-suffix`,registerSize:we,display:!0,style:je}),S));return ie?c.createElement(mr,{onResize:Ce,disabled:!se},Ue):Ue}const Dr=c.forwardRef(MP);Dr.Item=NP;Dr.RESPONSIVE=K2;Dr.INVALIDATE=Q2;const Z2=e=>{const{className:t,style:o,customizeIcon:r,customizeIconProps:i,children:l,onMouseDown:u,onClick:f}=e,p=typeof r=="function"?r(i):r;return c.createElement("span",{className:t,onMouseDown:m=>{m.preventDefault(),u?.(m)},style:{userSelect:"none",WebkitUserSelect:"none",...o},unselectable:"on",onClick:f,"aria-hidden":!0},p!==void 0?p:c.createElement("span",{className:U(t.split(/\s+/).map(m=>`${m}-icon`))},l))};function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Jh.apply(this,arguments)}function TP(e){return e.key??e.value}const XC=e=>{e.preventDefault(),e.stopPropagation()},OP=c.forwardRef(function({inputProps:t},o){const{prefixCls:r,displayValues:i,searchValue:l,mode:u,onSelectorRemove:f,removeIcon:p}=bc(),{disabled:m,showSearch:h,triggerOpen:b,rawOpen:v,toggleOpen:x,autoClearSearchValue:C,tagRender:S,maxTagPlaceholder:R,maxTagTextLength:E,maxTagCount:N,classNames:$,styles:w}=hi(),T=`${r}-selection-item`;let z=l;!v&&u==="multiple"&&C!==!1&&(z="");const A=h&&z||"",P=h&&!m,j=p??"×",L=R??(V=>`+ ${V.length} ...`),I=S,H=V=>{x(V)},W=V=>{f?.(V)},J=(V,Z,Q,B,F)=>c.createElement("span",{title:Qh(V),className:U(T,{[`${T}-disabled`]:Q},$?.item),style:w?.item},c.createElement("span",{className:U(`${T}-content`,$?.itemContent),style:w?.itemContent},Z),B&&c.createElement(Z2,{className:U(`${T}-remove`,$?.itemRemove),style:w?.itemRemove,onMouseDown:XC,onClick:F,customizeIcon:j},"×")),q=(V,Z,Q,B,F,k,G)=>{const K=te=>{XC(te),H(!b)};return c.createElement("span",{onMouseDown:K},I({label:Z,value:V,index:G?.index,disabled:Q,closable:B,onClose:F,isMaxTag:!!k}))},D=(V,Z)=>{const{disabled:Q,label:B,value:F}=V,k=!m&&!Q;let G=B;if(typeof E=="number"&&(typeof B=="string"||typeof B=="number")){const te=String(G);te.length>E&&(G=`${te.slice(0,E)}...`)}const K=te=>{te&&te.stopPropagation(),W(V)};return typeof I=="function"?q(F,G,Q,k,K,void 0,Z):J(V,G,Q,k,K)},X=V=>{if(!i.length)return null;const Z=typeof L=="function"?L(V):L;return typeof I=="function"?q(void 0,Z,!1,!1,void 0,!0):J({title:Z},Z,!1)};return c.createElement(Dr,{prefixCls:`${r}-content`,className:$?.content,style:w?.content,prefix:!i.length&&!A&&c.createElement(k2,null),data:i,renderItem:D,renderRest:X,suffix:c.createElement(X2,Jh({ref:o,disabled:m,readOnly:!P},t,{value:A||"",syncWidth:!0})),itemKey:TP,maxCount:N})}),zP=c.forwardRef(function(t,o){const{multiple:r,onInputKeyDown:i,tabIndex:l}=bc(),u=hi(),{showSearch:f}=u,m={...Qn(u,{aria:!0}),onKeyDown:i,readOnly:!f,tabIndex:l};return r?c.createElement(OP,{ref:o,inputProps:m}):c.createElement(SP,{ref:o,inputProps:m})});function AP(e){return e&&![rt.ESC,rt.SHIFT,rt.BACKSPACE,rt.TAB,rt.WIN_KEY,rt.ALT,rt.META,rt.WIN_KEY_RIGHT,rt.CTRL,rt.SEMICOLON,rt.EQUALS,rt.CAPS_LOCK,rt.CONTEXT_MENU,rt.UP,rt.LEFT,rt.RIGHT,rt.F1,rt.F2,rt.F3,rt.F4,rt.F5,rt.F6,rt.F7,rt.F8,rt.F9,rt.F10,rt.F11,rt.F12].includes(e)}function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Kd.apply(this,arguments)}const IP=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],PP=c.forwardRef(function(t,o){const{prefixCls:r,className:i,style:l,prefix:u,suffix:f,clearIcon:p,children:m,multiple:h,displayValues:b,placeholder:v,mode:x,searchValue:C,onSearch:S,onSearchSubmit:R,onInputBlur:E,maxLength:N,autoFocus:$,onMouseDown:w,onClearMouseDown:T,onInputKeyDown:z,onSelectorRemove:A,tokenWithEnter:P,components:j,...L}=t,{triggerOpen:I,toggleOpen:H,showSearch:W,disabled:J,loading:q,classNames:D,styles:X}=hi(),V=c.useRef(null),Z=c.useRef(null),Q=ft(Y=>{const{which:ie}=Y,se=Z.current instanceof HTMLTextAreaElement;if(!se&&I&&(ie===rt.UP||ie===rt.DOWN)&&Y.preventDefault(),z&&z(Y),se&&!I&&~[rt.UP,rt.DOWN,rt.LEFT,rt.RIGHT].indexOf(ie))return;!(Y.ctrlKey||Y.altKey||Y.metaKey)&&AP(ie)&&H(!0)});c.useImperativeHandle(o,()=>({focus:Y=>{(Z.current||V.current).focus?.(Y)},blur:()=>{(Z.current||V.current).blur?.()},nativeElement:ui(V.current)}));const B=ft(Y=>{if(!J){const ie=ui(Z.current);Y.nativeEvent._ori_target=ie;const se=ie===Y.target||ie?.contains(Y.target);ie&&!se&&Y.preventDefault();const ne=I&&!h&&(x==="combobox"||W)||I&&h&&se;Y.nativeEvent._select_lazy?I&&!h&&H(!1):(Z.current?.focus(),ne||H())}w?.(Y)}),{root:F}=j,k=xn(L,IP),G=Qn(k,{aria:!0}),K=Object.keys(G),te={...t,onInputKeyDown:Q};if(F){const Y=F.props||{},ie={...Y,...k};return Object.keys(Y).forEach(se=>{const ae=Y[se],me=k[se];typeof ae=="function"&&typeof me=="function"&&(ie[se]=(...ne)=>{me(...ne),ae(...ne)})}),c.isValidElement(F)?c.cloneElement(F,{...ie,ref:oo(F.ref,V)}):c.createElement(F,Kd({},ie,{ref:V}))}return c.createElement(G2.Provider,{value:te},c.createElement("div",Kd({},xn(k,K),{ref:V,className:i,style:l,onMouseDown:B}),c.createElement(vg,{className:U(`${r}-prefix`,D?.prefix),style:X?.prefix},u),c.createElement(zP,{ref:Z}),c.createElement(vg,{className:U(`${r}-suffix`,{[`${r}-suffix-loading`]:q},D?.suffix),style:X?.suffix},f),p&&c.createElement(vg,{className:U(`${r}-clear`,D?.clear),style:X?.clear,onMouseDown:Y=>{Y.nativeEvent._select_lazy=!0,T?.(Y)}},p),m))});function BP(e,t,o){return c.useMemo(()=>{let{root:r,input:i}=e||{};return o&&(r=o()),t&&(i=t()),{root:r,input:i}},[e,t,o])}function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},eb.apply(this,arguments)}const tb=e=>e==="tags"||e==="multiple",jP=c.forwardRef((e,t)=>{const{id:o,prefixCls:r,className:i,styles:l,classNames:u,showSearch:f,tagRender:p,showScrollBar:m="optional",direction:h,omitDomProps:b,displayValues:v,onDisplayValuesChange:x,emptyOptions:C,notFoundContent:S="Not Found",onClear:R,maxCount:E,placeholder:N,mode:$,disabled:w,loading:T,getInputElement:z,getRawInputElement:A,open:P,defaultOpen:j,onPopupVisibleChange:L,activeValue:I,onActiveValueChange:H,activeDescendantId:W,searchValue:J,autoClearSearchValue:q,onSearch:D,onSearchSplit:X,tokenSeparators:V,allowClear:Z,prefix:Q,suffix:B,suffixIcon:F,clearIcon:k,OptionList:G,animation:K,transitionName:te,popupStyle:Y,popupClassName:ie,popupMatchSelectWidth:se,popupRender:ae,popupAlign:me,placement:ne,builtinPlacements:ue,getPopupContainer:ye,showAction:ve=[],onFocus:Ee,onBlur:Ce,onKeyUp:be,onKeyDown:ge,onMouseDown:ze,components:we,...Ie}=e,Oe=tb($),je=c.useRef(null),nt=c.useRef(null),Ye=c.useRef(null),[De,qe]=c.useState(!1);c.useImperativeHandle(t,()=>({focus:je.current?.focus,blur:je.current?.blur,scrollTo:Xe=>Ye.current?.scrollTo(Xe),nativeElement:ui(je.current)}));const Je=BP(we,z,A),Ue=c.useMemo(()=>{if($!=="combobox")return J;const Xe=v[0]?.value;return typeof Xe=="string"||typeof Xe=="number"?String(Xe):""},[J,$,v]),Pe=$==="combobox"&&typeof z=="function"&&z()||null,_e=!S&&C,[We,Be,he,Te]=vP(j||!1,P,L,Xe=>w||_e?!1:Xe),Le=c.useMemo(()=>typeof V=="function"||(V||[]).some(Xe=>[`
164
+ `,`\r
165
+ `].includes(Xe)),[V]),Ge=c.useMemo(()=>typeof V=="function"?(Xe,it)=>{const _t=V(Xe),en=Array.isArray(_t)&&_t.length===1&&_t[0]===Xe;return!Array.isArray(_t)||!_t.length||en?null:typeof it<"u"?_t.slice(0,it):_t}:(Xe,it)=>gP(Xe,V,it),[V]),ot=(Xe,it,_t)=>{if(Oe&&Yh(E)&&v.length>=E)return;let en=!0,Et=Xe;H?.(null);const Ft=Yh(E)?E-v.length:void 0,gn=_t?null:Ge(Xe,Ft);return $!=="combobox"&&gn&&(Et="",X?.(gn),he(!1),en=!1),D&&Ue!==Et&&D(Et,{source:it?"typing":"effect"}),Xe&&it&&en&&he(!0),en},Qe=Xe=>{!Xe||!Xe.trim()||D(Xe,{source:"submit"})};c.useEffect(()=>{!We&&!Oe&&$!=="combobox"&&ot("",!1,!1)},[We]),c.useEffect(()=>{w&&(he(!1),qe(!1))},[w,Be]);const[ut,Ct]=cP(),mt=c.useRef(!1),Nt=Xe=>{const it=ut(),{key:_t}=Xe,en=_t==="Enter",Et=_t===" ";if(en||Et){const Ft=$==="combobox";(Et&&!(Ft||f)||en&&!Ft)&&Xe.preventDefault(),Be||he(!0)}if(Ct(!!Ue),_t==="Backspace"&&!it&&Oe&&!Ue&&v.length){const Ft=[...v];let gn=null;for(let Ht=Ft.length-1;Ht>=0;Ht-=1){const ro=Ft[Ht];if(!ro.disabled){Ft.splice(Ht,1),gn=ro;break}}gn&&x(Ft,{type:"remove",values:[gn]})}Be&&(!en||!mt.current)&&!Et&&(en&&(mt.current=!0),Ye.current?.onKeyDown(Xe)),ge?.(Xe)},vt=(Xe,...it)=>{Be&&Ye.current?.onKeyUp(Xe,...it),Xe.key==="Enter"&&(mt.current=!1),be?.(Xe,...it)},Pt=ft(Xe=>{const it=v.filter(_t=>_t!==Xe);x(it,{type:"remove",values:[Xe]})}),et=()=>{mt.current=!1},Bt=()=>[ui(je.current),nt.current?.getPopupElement()];uP(Bt,Be,he,!!Je.root);const Ve=c.useRef(!1),Re=Xe=>{qe(!0),w||(ve.includes("focus")&&he(!0),Ee?.(Xe))},Ae=()=>{Be&&!Ve.current&&he(!1,{cancelFun:()=>U2(Bt(),document.activeElement)})},Se=Xe=>{qe(!1),Ue&&($==="tags"?D(Ue,{source:"submit"}):$==="multiple"&&D("",{source:"blur"})),Ae(),w||Ce?.(Xe)},He=(Xe,...it)=>{const{target:_t}=Xe;nt.current?.getPopupElement()?.contains(_t)&&he&&he(!0),ze?.(Xe,...it),Ve.current=!0,O0(()=>{Ve.current=!1})},[,Fe]=c.useState({});function Ke(){Fe({})}let ct;Je.root&&(ct=Xe=>{he(Xe)});const Jt=c.useMemo(()=>({...e,notFoundContent:S,open:Be,triggerOpen:Be,rawOpen:We,id:o,showSearch:f,multiple:Oe,toggleOpen:he,showScrollBar:m,styles:l,classNames:u,lockOptions:Te}),[e,S,he,o,f,Oe,Be,We,m,l,u,Te]),Rt=c.useMemo(()=>{const Xe=B??F;return typeof Xe=="function"?Xe({searchValue:Ue,open:Be,focused:De,showSearch:f,loading:T}):Xe},[B,F,Ue,Be,De,f,T]),dt=()=>{R?.(),je.current?.focus(),x([],{type:"clear",values:v}),ot("",!1,!1)},{allowClear:Mt,clearIcon:on}=lP(r,v,Z,k,w,Ue,$),st=c.createElement(G,{ref:Ye}),ht=U(r,i,{[`${r}-focused`]:De,[`${r}-multiple`]:Oe,[`${r}-single`]:!Oe,[`${r}-allow-clear`]:Mt,[`${r}-show-arrow`]:Rt!=null,[`${r}-disabled`]:w,[`${r}-loading`]:T,[`${r}-open`]:Be,[`${r}-customize-input`]:Pe,[`${r}-show-search`]:f});let $t=c.createElement(PP,eb({},Ie,{ref:je,prefixCls:r,className:ht,focused:De,prefix:Q,suffix:Rt,clearIcon:on,multiple:Oe,mode:$,displayValues:v,placeholder:N,searchValue:Ue,activeValue:I,onSearch:ot,onSearchSubmit:Qe,onInputBlur:et,onFocus:Re,onBlur:Se,onClearMouseDown:dt,onKeyDown:Nt,onKeyUp:vt,onSelectorRemove:Pt,tokenWithEnter:Le,onMouseDown:He,components:Je}));return $t=c.createElement(mP,{ref:nt,disabled:w,prefixCls:r,visible:Be,popupElement:st,animation:K,transitionName:te,popupStyle:Y,popupClassName:ie,direction:h,popupMatchSelectWidth:se,popupRender:ae,popupAlign:me,placement:ne,builtinPlacements:ue,getPopupContainer:ye,empty:C,onPopupVisibleChange:ct,onPopupMouseEnter:Ke,onPopupMouseDown:He,onPopupBlur:Ae},$t),c.createElement(q2.Provider,{value:Jt},c.createElement(hP,{visible:De&&!Be,values:v}),$t)}),A0=()=>null;A0.isSelectOptGroup=!0;const I0=()=>null;I0.isSelectOption=!0;function nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},nb.apply(this,arguments)}const J2=c.forwardRef(({height:e,offsetY:t,offsetX:o,children:r,prefixCls:i,onInnerResize:l,innerProps:u,rtl:f,extra:p},m)=>{let h={},b={display:"flex",flexDirection:"column"};return t!==void 0&&(h={height:e,position:"relative",overflow:"hidden"},b={...b,transform:`translateY(${t}px)`,[f?"marginRight":"marginLeft"]:-o,position:"absolute",left:0,right:0,top:0}),c.createElement("div",{style:h},c.createElement(mr,{onResize:({offsetHeight:v})=>{v&&l&&l()}},c.createElement("div",nb({style:b,className:U({[`${i}-holder-inner`]:i}),ref:m},u),r,p)))});J2.displayName="Filler";function _P({children:e,setRef:t}){const o=c.useCallback(r=>{t(r)},[t]);return c.cloneElement(e,{ref:o})}function HP(e,t,o,r,i,l,u,{getKey:f}){return e.slice(t,o+1).map((p,m)=>{const h=t+m,b=u(p,h,{style:{width:r},offsetX:i}),v=f(p);return c.createElement(_P,{key:v,setRef:x=>l(p,x)},b)})}function DP(e,t,o){const r=e.length,i=t.length;let l,u;if(r===0&&i===0)return null;r<i?(l=e,u=t):(l=t,u=e);const f={__EMPTY_ITEM__:!0};function p(b){return b!==void 0?o(b):f}let m=null,h=Math.abs(r-i)!==1;for(let b=0;b<u.length;b+=1){const v=p(l[b]),x=p(u[b]);if(v!==x){m=b,h=h||v!==p(u[b+1]);break}}return m===null?null:{index:m,multiple:h}}function LP(e,t,o){const[r,i]=c.useState(e),[l,u]=c.useState(null);return c.useEffect(()=>{const f=DP(r||[],e||[],t);f?.index!==void 0&&u(e[f.index]),i(e)},[e]),[l]}const kC=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),eN=((e,t,o,r)=>{const i=c.useRef(!1),l=c.useRef(null);function u(){clearTimeout(l.current),i.current=!0,l.current=setTimeout(()=>{i.current=!1},50)}const f=c.useRef({top:e,bottom:t,left:o,right:r});return f.current.top=e,f.current.bottom=t,f.current.left=o,f.current.right=r,(p,m,h=!1)=>{const b=p?m<0&&f.current.left||m>0&&f.current.right:m<0&&f.current.top||m>0&&f.current.bottom;return h&&b?(clearTimeout(l.current),i.current=!1):(!b||i.current)&&u(),!i.current&&b}});function VP(e,t,o,r,i,l,u){const f=c.useRef(0),p=c.useRef(null),m=c.useRef(null),h=c.useRef(!1),b=eN(t,o,r,i);function v(N,$){if(Lt.cancel(p.current),b(!1,$))return;const w=N;if(!w._virtualHandled)w._virtualHandled=!0;else return;f.current+=$,m.current=$,kC||w.preventDefault(),p.current=Lt(()=>{const T=h.current?10:1;u(f.current*T,!1),f.current=0})}function x(N,$){u($,!0),kC||N.preventDefault()}const C=c.useRef(null),S=c.useRef(null);function R(N){if(!e)return;Lt.cancel(S.current),S.current=Lt(()=>{C.current=null},2);const{deltaX:$,deltaY:w,shiftKey:T}=N;let z=$,A=w;(C.current==="sx"||!C.current&&T&&w&&!$)&&(z=w,A=0,C.current="sx");const P=Math.abs(z),j=Math.abs(A);C.current===null&&(C.current=l&&P>j?"x":"y"),C.current==="y"?v(N,A):x(N,z)}function E(N){e&&(h.current=N.detail===m.current)}return[R,E]}function FP(e,t,o,r){const[i,l]=c.useMemo(()=>[new Map,[]],[e,o.id,r]);return(f,p=f)=>{let m=i.get(f),h=i.get(p);if(m===void 0||h===void 0){const b=e.length;for(let v=l.length;v<b;v+=1){const x=e[v],C=t(x);i.set(C,v);const S=o.get(C)??r;if(l[v]=(l[v-1]||0)+S,C===f&&(m=v),C===p&&(h=v),m!==void 0&&h!==void 0)break}}return{top:l[m-1]||0,bottom:l[h]}}}class qP{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,o){this.diffRecords.set(t,this.maps[t]),this.maps[t]=o,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function YC(e){const t=parseFloat(e);return isNaN(t)?0:t}function UP(e,t,o){const[r,i]=c.useState(0),l=c.useRef(new Map),u=c.useRef(new qP),f=c.useRef(0);function p(){f.current+=1}function m(b=!1){p();const v=()=>{let x=!1;l.current.forEach((C,S)=>{if(C&&C.offsetParent){const{offsetHeight:R}=C,{marginTop:E,marginBottom:N}=getComputedStyle(C),$=YC(E),w=YC(N),T=R+$+w;u.current.get(S)!==T&&(u.current.set(S,T),x=!0)}}),x&&i(C=>C+1)};if(b)v();else{f.current+=1;const x=f.current;Promise.resolve().then(()=>{x===f.current&&v()})}}function h(b,v){const x=e(b);l.current.get(x),v?(l.current.set(x,v),m()):l.current.delete(x)}return c.useEffect(()=>p,[]),[h,m,u.current,r]}const KC=14/15;function WP(e,t,o){const r=c.useRef(!1),i=c.useRef(0),l=c.useRef(0),u=c.useRef(null),f=c.useRef(null);let p;const m=v=>{if(r.current){const x=Math.ceil(v.touches[0].pageX),C=Math.ceil(v.touches[0].pageY);let S=i.current-x,R=l.current-C;const E=Math.abs(S)>Math.abs(R);E?i.current=x:l.current=C;const N=o(E,E?S:R,!1,v);N&&v.preventDefault(),clearInterval(f.current),N&&(f.current=setInterval(()=>{E?S*=KC:R*=KC;const $=Math.floor(E?S:R);(!o(E,$,!0)||Math.abs($)<=.1)&&clearInterval(f.current)},16))}},h=()=>{r.current=!1,p()},b=v=>{p(),v.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(v.touches[0].pageX),l.current=Math.ceil(v.touches[0].pageY),u.current=v.target,u.current.addEventListener("touchmove",m,{passive:!1}),u.current.addEventListener("touchend",h,{passive:!0}))};p=()=>{u.current&&(u.current.removeEventListener("touchmove",m),u.current.removeEventListener("touchend",h))},un(()=>(e&&t.current.addEventListener("touchstart",b,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",b),p(),clearInterval(f.current)}),[e])}function QC(e){return Math.floor(e**.5)}function Pd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function GP(e,t,o){c.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,l,u;const f=()=>{Lt.cancel(l)},p=()=>{f(),l=Lt(()=>{o(u),p()})},m=()=>{i=!1,f()},h=v=>{if(v.target.draggable||v.button!==0)return;const x=v;x._virtualHandled||(x._virtualHandled=!0,i=!0)},b=v=>{if(i){const x=Pd(v,!1),{top:C,bottom:S}=r.getBoundingClientRect();if(x<=C){const R=C-x;u=-QC(R),p()}else if(x>=S){const R=x-S;u=QC(R),p()}else f()}};return r.addEventListener("mousedown",h),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",b),r.ownerDocument.addEventListener("dragend",m),()=>{r.removeEventListener("mousedown",h),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",b),r.ownerDocument.removeEventListener("dragend",m),f()}}},[e])}const XP=10;function kP(e,t){const o=typeof e=="function"?e(t):e;return Number.isFinite(o)?o:0}function YP(e,t,o,r,i,l,u,f,p){const m=c.useRef(void 0),[h,b]=c.useState(null);return un(()=>{if(h&&h.times<XP){if(!e.current){b(z=>({...z}));return}u();const{targetAlign:v,originAlign:x,offset:C}=h,S=h.index>=0?h.index:t.findIndex(z=>i(z)===h.key),R=v||x,E=kP(C,{getSize:l,align:R}),N=e.current.clientHeight;let $=!1,w=v,T=null;if(N&&S>=0){let z=0,A=0,P=0;const j=Math.min(t.length-1,S);for(let I=0;I<=j;I+=1){const H=i(t[I]);A=z;const W=o.get(H);P=A+(W===void 0?r:W),z=P}let L=R==="top"?E:N-E;for(let I=j;I>=0;I-=1){const H=i(t[I]),W=o.get(H);if(W===void 0){$=!0;break}if(L-=W,L<=0)break}switch(R){case"top":T=A-E;break;case"bottom":T=P-N+E;break;default:{const{scrollTop:I}=e.current,H=I+N;A<I?w="top":P>H&&(w="bottom")}}T!==null&&f(T),T!==h.lastTop&&($=!0)}$&&b(z=>({...z,times:z.times+1,index:S,targetAlign:w,lastTop:T}))}},[h,e.current]),v=>{if(v==null){p();return}if(Lt.cancel(m.current),typeof v=="number")f(v);else if(v&&typeof v=="object"){let x,C;const{align:S}=v;"index"in v?{index:x}=v:(C=v.key,x=t.findIndex(E=>i(E)===C));const{offset:R=0}=v;b({times:0,index:x,key:C,offset:R,originAlign:S})}}}function ZC(e,t,o){if(t<=0||o<=0)return 0;const i=Math.max(Math.min(e,o),0)/o;let l=Math.ceil(i*t);return l=Math.max(l,0),l=Math.min(l,t),l}const JC=c.forwardRef((e,t)=>{const{prefixCls:o,rtl:r,scrollOffset:i,scrollRange:l,onStartMove:u,onStopMove:f,onScroll:p,horizontal:m,spinSize:h,containerSize:b,style:v,thumbStyle:x,showScrollBar:C}=e,[S,R]=c.useState(!1),[E,N]=c.useState(null),[$,w]=c.useState(null),T=!r,z=c.useRef(null),A=c.useRef(null),[P,j]=c.useState(C),L=c.useRef(void 0),I=()=>{C===!0||C===!1||(clearTimeout(L.current),j(!0),L.current=setTimeout(()=>{j(!1)},3e3))},H=l-b||0,W=b-h||0,J=c.useMemo(()=>i===0||H===0?0:i/H*W,[i,H,W]),q=K=>!!K&&A.current?.contains(K),D=K=>{const te=z.current;if(!te)return;const Y=te.getBoundingClientRect(),ie=Pd(K,m);let se;if(Number.isFinite(ie)){if(m){const ae=T?Y.left:Y.right;if(!Number.isFinite(ae))return;se=(T?ie-ae:ae-ie)-h/2}else{if(!Number.isFinite(Y.top))return;se=ie-Y.top-h/2}p(ZC(se,H,W),m)}},X=K=>{K.stopPropagation(),K.preventDefault(),!(K.button!==0||q(K.target))&&D(K)},V=c.useRef({top:J,dragging:S,pageY:E,startTop:$});V.current={top:J,dragging:S,pageY:E,startTop:$};const Z=ft(K=>{R(!0),N(Pd(K,m)),w(V.current.top),u(),K.stopPropagation(),K.preventDefault()});c.useEffect(()=>{const K=ie=>{ie.preventDefault()},te=z.current,Y=A.current;return te.addEventListener("touchstart",K,{passive:!1}),Y.addEventListener("touchstart",Z,{passive:!1}),()=>{te.removeEventListener("touchstart",K),Y.removeEventListener("touchstart",Z)}},[Z]);const Q=c.useRef(void 0);Q.current=H;const B=c.useRef(void 0);B.current=W,c.useEffect(()=>{if(S){let K;const te=ie=>{const{dragging:se,pageY:ae,startTop:me}=V.current;Lt.cancel(K);const ne=z.current.getBoundingClientRect(),ue=b/(m?ne.width:ne.height);if(se){const ye=(Pd(ie,m)-ae)*ue;let ve=me;!T&&m?ve-=ye:ve+=ye;const Ee=Q.current,Ce=B.current,be=ZC(ve,Ee,Ce);K=Lt(()=>{p(be,m)})}},Y=()=>{R(!1),f()};return window.addEventListener("mousemove",te,{passive:!0}),window.addEventListener("touchmove",te,{passive:!0}),window.addEventListener("mouseup",Y,{passive:!0}),window.addEventListener("touchend",Y,{passive:!0}),()=>{window.removeEventListener("mousemove",te),window.removeEventListener("touchmove",te),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),Lt.cancel(K)}}},[S]),c.useEffect(()=>(I(),()=>{clearTimeout(L.current)}),[i]),c.useImperativeHandle(t,()=>({delayHidden:I}));const F=`${o}-scrollbar`,k={position:"absolute",visibility:P?null:"hidden"},G={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(k,{height:8,left:0,right:0,bottom:0}),Object.assign(G,{height:"100%",width:h,[T?"left":"right"]:J})):(Object.assign(k,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(G,{width:"100%",height:h,top:J})),c.createElement("div",{ref:z,className:U(F,{[`${F}-horizontal`]:m,[`${F}-vertical`]:!m,[`${F}-visible`]:P}),style:{...k,...v},onMouseDown:X,onMouseMove:I},c.createElement("div",{ref:A,className:U(`${F}-thumb`,{[`${F}-thumb-moving`]:S}),style:{...G,...x},onMouseDown:Z}))}),KP=20;function e$(e=0,t=0){let o=e/t*e;return isNaN(o)&&(o=0),o=Math.max(o,KP),Math.floor(o)}function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ob.apply(this,arguments)}const QP=[],ZP={overflowY:"auto",overflowAnchor:"none"};function tN(e,t){const{prefixCls:o="rc-virtual-list",className:r,height:i,itemHeight:l,fullHeight:u=!0,style:f,data:p,children:m,itemKey:h,virtual:b,direction:v,scrollWidth:x,component:C="div",onScroll:S,onVirtualScroll:R,onVisibleChange:E,innerProps:N,extraRender:$,styles:w,showScrollBar:T="optional",...z}=e,A=c.useCallback(Ve=>typeof h=="function"?h(Ve):Ve?.[h],[h]),[P,j,L,I]=UP(A),H=!!(b!==!1&&i&&l),W=c.useMemo(()=>Object.values(L.maps).reduce((Ve,Re)=>Ve+Re,0),[L.id,L.maps]),J=H&&p&&(Math.max(l*p.length,W)>i||!!x),q=v==="rtl",D=U(o,{[`${o}-rtl`]:q},r),X=p||QP,V=c.useRef(null),Z=c.useRef(null),Q=c.useRef(null),[B,F]=c.useState(0),[k,G]=c.useState(0),[K,te]=c.useState(!1),Y=()=>{te(!0)},ie=()=>{te(!1)},se={getKey:A};function ae(Ve){F(Re=>{let Ae;typeof Ve=="function"?Ae=Ve(Re):Ae=Ve;const Se=De(Ae);return V.current.scrollTop=Se,Se})}const me=c.useRef({start:0,end:X.length}),ne=c.useRef(void 0),[ue]=LP(X,A);ne.current=ue;const{scrollHeight:ye,start:ve,end:Ee,offset:Ce}=c.useMemo(()=>{if(!H)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};if(!J)return{scrollHeight:Z.current?.offsetHeight||0,start:0,end:X.length-1,offset:void 0};let Ve=0,Re,Ae,Se;const He=X.length;for(let Fe=0;Fe<He;Fe+=1){const Ke=X[Fe],ct=A(Ke),Jt=L.get(ct),Rt=Ve+(Jt===void 0?l:Jt);Rt>=B&&Re===void 0&&(Re=Fe,Ae=Ve),Rt>B+i&&Se===void 0&&(Se=Fe),Ve=Rt}return Re===void 0&&(Re=0,Ae=0,Se=Math.ceil(i/l)),Se===void 0&&(Se=X.length-1),Se=Math.min(Se+1,X.length-1),{scrollHeight:Ve,start:Re,end:Se,offset:Ae}},[J,H,B,X,I,i]);me.current.start=ve,me.current.end=Ee,c.useLayoutEffect(()=>{const Ve=L.getRecord();if(Ve.size===1){const Re=Array.from(Ve.keys())[0],Ae=Ve.get(Re),Se=X[ve];if(Se&&Ae===void 0&&A(Se)===Re){const Ke=L.get(Re)-l;ae(ct=>ct+Ke)}}L.resetRecord()},[ye]);const[be,ge]=c.useState({width:0,height:i}),ze=Ve=>{ge({width:Ve.offsetWidth,height:Ve.offsetHeight})},we=c.useRef(null),Ie=c.useRef(null),Oe=c.useMemo(()=>e$(be.width,x),[be.width,x]),je=c.useMemo(()=>e$(be.height,ye),[be.height,ye]),nt=ye-i,Ye=c.useRef(nt);Ye.current=nt;function De(Ve){let Re=Ve;return Number.isNaN(Ye.current)||(Re=Math.min(Re,Ye.current)),Re=Math.max(Re,0),Re}const qe=B<=0,Je=B>=nt,Ue=k<=0,Pe=k>=x,_e=eN(qe,Je,Ue,Pe),We=()=>({x:q?-k:k,y:B}),Be=c.useRef(We()),he=ft(Ve=>{if(R){const Re={...We(),...Ve};(Be.current.x!==Re.x||Be.current.y!==Re.y)&&(R(Re),Be.current=Re)}});function Te(Ve,Re){const Ae=Ve;Re?(di.flushSync(()=>{G(Ae)}),he()):ae(Ae)}function Le(Ve){const{scrollTop:Re}=Ve.currentTarget;Re!==B&&ae(Re),S?.(Ve),he()}const Ge=Ve=>{let Re=Ve;const Ae=x?x-be.width:0;return Re=Math.max(Re,0),Re=Math.min(Re,Ae),Re},ot=ft((Ve,Re)=>{Re?(di.flushSync(()=>{G(Ae=>{const Se=Ae+(q?-Ve:Ve);return Ge(Se)})}),he()):ae(Ae=>Ae+Ve)}),[Qe,ut]=VP(H,qe,Je,Ue,Pe,!!x,ot);WP(H,V,(Ve,Re,Ae,Se)=>{const He=Se;return _e(Ve,Re,Ae)?!1:!He||!He._virtualHandled?(He&&(He._virtualHandled=!0),Qe({preventDefault(){},deltaX:Ve?Re:0,deltaY:Ve?0:Re}),!0):!1}),GP(J,V,Ve=>{ae(Re=>Re+Ve)}),un(()=>{function Ve(Ae){const Se=qe&&Ae.detail<0,He=Je&&Ae.detail>0;H&&!Se&&!He&&Ae.preventDefault()}const Re=V.current;return Re.addEventListener("wheel",Qe,{passive:!1}),Re.addEventListener("DOMMouseScroll",ut,{passive:!0}),Re.addEventListener("MozMousePixelScroll",Ve,{passive:!1}),()=>{Re.removeEventListener("wheel",Qe),Re.removeEventListener("DOMMouseScroll",ut),Re.removeEventListener("MozMousePixelScroll",Ve)}},[H,qe,Je]),un(()=>{if(x){const Ve=Ge(k);G(Ve),he({x:Ve})}},[be.width,x]);const Ct=()=>{we.current?.delayHidden(),Ie.current?.delayHidden()},mt=FP(X,A,L,l),Nt=YP(V,X,L,l,A,mt,()=>j(!0),ae,Ct);c.useImperativeHandle(t,()=>({nativeElement:Q.current,getScrollInfo:We,scrollTo:Ve=>{function Re(Ae){return Ae&&typeof Ae=="object"&&("left"in Ae||"top"in Ae)}Re(Ve)?(Ve.left!==void 0&&G(Ge(Ve.left)),Nt(Ve.top)):Nt(Ve)}})),un(()=>{if(E){const Ve=X.slice(ve,Ee+1);E(Ve,X)}},[ve,Ee,X]);const vt=$?.({start:ve,end:Ee,virtual:J,offsetX:k,scrollTop:B,offsetY:Ce,rtl:q,getSize:mt}),Pt=HP(X,ve,Ee,x,k,P,m,se);let et=null;i&&(et={[u?"height":"maxHeight"]:i,...ZP},H&&(et.overflowY="hidden",x&&(et.overflowX="hidden"),K&&(et.pointerEvents="none")));const Bt={};return q&&(Bt.dir="rtl"),c.createElement("div",ob({ref:Q,style:{...f,position:"relative"},className:D},Bt,z),c.createElement(mr,{onResize:ze},c.createElement(C,{className:`${o}-holder`,style:et,ref:V,onScroll:Le,onMouseEnter:Ct},c.createElement(J2,{prefixCls:o,height:ye,offsetX:k,offsetY:Ce,scrollWidth:x,onInnerResize:j,ref:Z,innerProps:N,rtl:q,extra:vt},Pt))),J&&ye>i&&c.createElement(JC,{ref:we,prefixCls:o,scrollOffset:B,scrollRange:ye,rtl:q,onScroll:Te,onStartMove:Y,onStopMove:ie,spinSize:je,containerSize:be.height,style:w?.verticalScrollBar,thumbStyle:w?.verticalScrollBarThumb,showScrollBar:T}),J&&x>be.width&&c.createElement(JC,{ref:Ie,prefixCls:o,scrollOffset:k,scrollRange:x,rtl:q,onScroll:Te,onStartMove:Y,onStopMove:ie,spinSize:Oe,containerSize:be.width,horizontal:!0,style:w?.horizontalScrollBar,thumbStyle:w?.horizontalScrollBarThumb,showScrollBar:T}))}const nN=c.forwardRef(tN);nN.displayName="List";const JP=c.forwardRef((e,t)=>tN({...e,virtual:!1},t));JP.displayName="List";function eB(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ul.apply(this,arguments)}function t$(e){return typeof e=="string"||typeof e=="number"}const tB=(e,t)=>{const{prefixCls:o,id:r,open:i,multiple:l,mode:u,searchValue:f,toggleOpen:p,notFoundContent:m,onPopupScroll:h,showScrollBar:b,lockOptions:v}=hi(),{maxCount:x,flattenOptions:C,onActiveValue:S,defaultActiveFirstOption:R,onSelect:E,menuItemSelectedIcon:N,rawValues:$,fieldNames:w,virtual:T,direction:z,listHeight:A,listItemHeight:P,optionRender:j,classNames:L,styles:I}=c.useContext(z0),H=`${o}-item`,W=ic(()=>C,[i,v],(ae,me)=>me[0]&&!me[1]),J=c.useRef(null),q=c.useMemo(()=>l&&Yh(x)&&$?.size>=x,[l,x,$?.size]),D=ae=>{ae.preventDefault()},X=ae=>{J.current?.scrollTo(typeof ae=="number"?{index:ae}:ae)},V=c.useCallback(ae=>u==="combobox"?!1:$.has(ae),[u,[...$].toString(),$.size]),Z=(ae,me=1)=>{const ne=W.length;for(let ue=0;ue<ne;ue+=1){const ye=(ae+ue*me+ne)%ne,{group:ve,data:Ee}=W[ye]||{};if(!ve&&!Ee?.disabled&&(V(Ee.value)||!q))return ye}return-1},[Q,B]=c.useState(()=>Z(0)),F=(ae,me=!1)=>{B(ae);const ne={source:me?"keyboard":"mouse"},ue=W[ae];if(!ue){S(null,-1,ne);return}S(ue.value,ae,ne)};c.useEffect(()=>{F(R!==!1?Z(0):-1)},[W.length,f]);const k=c.useCallback(ae=>u==="combobox"?String(ae).toLowerCase()===f.toLowerCase():$.has(ae),[u,f,[...$].toString(),$.size]);c.useEffect(()=>{let ae;if(!l&&i&&$.size===1){const me=Array.from($)[0],ne=W.findIndex(({data:ue})=>f?String(ue.value).startsWith(f):ue.value===me);ne!==-1&&(F(ne),ae=setTimeout(()=>{X(ne)}))}return i&&J.current?.scrollTo(void 0),()=>clearTimeout(ae)},[i,f]);const G=ae=>{ae!==void 0&&E(ae,{selected:!$.has(ae)}),l||p(!1)};if(c.useImperativeHandle(t,()=>({onKeyDown:ae=>{const{which:me,ctrlKey:ne}=ae;switch(me){case rt.N:case rt.P:case rt.UP:case rt.DOWN:{let ue=0;if(me===rt.UP?ue=-1:me===rt.DOWN?ue=1:eB()&&ne&&(me===rt.N?ue=1:me===rt.P&&(ue=-1)),ue!==0){const ye=Z(Q+ue,ue);X(ye),F(ye,!0)}break}case rt.TAB:case rt.ENTER:{const ue=W[Q];if(!ue||ue.data.disabled)return G(void 0);!q||$.has(ue.value)?G(ue.value):G(void 0),i&&ae.preventDefault();break}case rt.ESC:p(!1),i&&ae.stopPropagation()}},onKeyUp:()=>{},scrollTo:ae=>{X(ae)}})),W.length===0)return c.createElement("div",{role:"listbox",id:`${r}_list`,className:`${H}-empty`,onMouseDown:D},m);const K=Object.keys(w).map(ae=>w[ae]),te=ae=>ae.label;function Y(ae,me){const{group:ne}=ae;return{role:ne?"presentation":"option",id:`${r}_list_${me}`}}const ie=ae=>{const me=W[ae];if(!me)return null;const ne=me.data||{},{value:ue,disabled:ye}=ne,{group:ve}=me,Ee=Qn(ne,!0),Ce=te(me);return me?c.createElement("div",Ul({"aria-label":typeof Ce=="string"&&!ve?Ce:null},Ee,{key:ae},Y(me,ae),{"aria-selected":k(ue),"aria-disabled":ye}),ue):null},se={role:"listbox",id:`${r}_list`};return c.createElement(c.Fragment,null,T&&c.createElement("div",Ul({},se,{style:{height:0,width:0,overflow:"hidden"}}),ie(Q-1),ie(Q),ie(Q+1)),c.createElement(nN,{itemKey:"key",ref:J,data:W,height:A,itemHeight:P,fullHeight:!1,onMouseDown:D,onScroll:h,virtual:T,direction:z,innerProps:T?null:se,showScrollBar:b,className:L?.popup?.list,style:I?.popup?.list},(ae,me)=>{const{group:ne,groupOption:ue,data:ye,label:ve,value:Ee}=ae,{key:Ce}=ye;if(ne){const We=ye.title??(t$(ve)?ve.toString():void 0);return c.createElement("div",{className:U(H,`${H}-group`,ye.className),title:We},ve!==void 0?ve:Ce)}const{disabled:be,title:ge,children:ze,style:we,className:Ie,...Oe}=ye,je=xn(Oe,K),nt=V(Ee),Ye=be||!nt&&q,De=`${H}-option`,qe=U(H,De,Ie,L?.popup?.listItem,{[`${De}-grouped`]:ue,[`${De}-active`]:Q===me&&!Ye,[`${De}-disabled`]:Ye,[`${De}-selected`]:nt}),Je=te(ae),Ue=!N||typeof N=="function"||nt,Pe=typeof Je=="number"?Je:Je||Ee;let _e=t$(Pe)?Pe.toString():void 0;return ge!==void 0&&(_e=ge),c.createElement("div",Ul({},Qn(je),T?{}:Y(ae,me),{"aria-selected":T?void 0:k(Ee),"aria-disabled":Ye,className:qe,title:_e,onMouseMove:()=>{Q===me||Ye||F(me)},onClick:()=>{Ye||G(Ee)},style:{...I?.popup?.listItem,...we}}),c.createElement("div",{className:`${De}-content`},typeof j=="function"?j(ae,{index:me}):Pe),c.isValidElement(N)||nt,Ue&&c.createElement(Z2,{className:`${H}-option-state`,customizeIcon:N,customizeIconProps:{value:Ee,disabled:Ye,isSelected:nt}},nt?"✓":null))}))},nB=c.forwardRef(tB),oB=((e,t)=>{const o=c.useRef({values:new Map,options:new Map}),r=c.useMemo(()=>{const{values:l,options:u}=o.current,f=e.map(h=>h.label===void 0?{...h,label:l.get(h.value)?.label}:h),p=new Map,m=new Map;return f.forEach(h=>{p.set(h.value,h),m.set(h.value,t.get(h.value)||u.get(h.value))}),o.current.values=p,o.current.options=m,f},[e,t]),i=c.useCallback(l=>t.get(l)||o.current.options.get(l),[t]);return[r,i]});function yg(e,t){return Y2(e).join("").toUpperCase().includes(t)}const rB=((e,t,o,r,i)=>c.useMemo(()=>{if(!o||r===!1)return e;const{options:l,label:u,value:f}=t,p=[],m=typeof r=="function",h=o.toUpperCase(),b=m?r:(x,C)=>i&&i.length?i.some(S=>yg(C[S],h)):C[l]?yg(C[u!=="children"?u:"label"],h):yg(C[f],h),v=m?x=>Kh(x):x=>x;return e.forEach(x=>{if(x[l]){if(b(o,v(x)))p.push(x);else{const S=x[l].filter(R=>b(o,v(R)));S.length&&p.push({...x,[l]:S})}return}b(o,v(x))&&p.push(x)}),p},[e,r,i,o,t]));function aB(e){const{key:t,props:{children:o,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:o,...i}}function oN(e,t=!1){return zo(e).map((o,r)=>{if(!c.isValidElement(o)||!o.type)return null;const{type:{isSelectOptGroup:i},key:l,props:{children:u,...f}}=o;return t||!i?aB(o):{key:`__RC_SELECT_GRP__${l===null?r:l}__`,label:l,...f,options:oN(u)}}).filter(o=>o)}const iB=(e,t,o,r,i)=>c.useMemo(()=>{let l=e;!e&&(l=oN(t));const f=new Map,p=new Map,m=(b,v,x)=>{x&&typeof x=="string"&&b.set(v[x],v)},h=(b,v=!1)=>{for(let x=0;x<b.length;x+=1){const C=b[x];!C[o.options]||v?(f.set(C[o.value],C),m(p,C,o.label),r.forEach(S=>{m(p,C,S)}),m(p,C,i)):h(C[o.options],!0)}};return h(l),{options:l,valueOptions:f,labelOptions:p}},[e,t,o,r,i]);function n$(e){const t=c.useRef();return t.current=e,c.useCallback((...r)=>t.current(...r),[])}function sB(e,t,o){const{filterOption:r,searchValue:i,optionFilterProp:l,filterSort:u,onSearch:f,autoClearSearchValue:p}=t;return c.useMemo(()=>{const m=typeof e=="object",h={filterOption:r,searchValue:i,optionFilterProp:l,filterSort:u,onSearch:f,autoClearSearchValue:p,...m?e:{}};return[m||o==="combobox"||o==="tags"||o==="multiple"&&e===void 0?!0:e,h]},[o,e,r,i,l,u,f,p])}function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rb.apply(this,arguments)}const lB=["inputValue"];function cB(e){return!e||typeof e!="object"}const uB=c.forwardRef((e,t)=>{const{id:o,mode:r,prefixCls:i="rc-select",backfill:l,fieldNames:u,showSearch:f,searchValue:p,onSearch:m,autoClearSearchValue:h,filterOption:b,optionFilterProp:v,filterSort:x,onSelect:C,onDeselect:S,onActive:R,popupMatchSelectWidth:E=!0,optionLabelProp:N,options:$,optionRender:w,children:T,defaultActiveFirstOption:z,menuItemSelectedIcon:A,virtual:P,direction:j,listHeight:L=200,listItemHeight:I=20,labelRender:H,value:W,defaultValue:J,labelInValue:q,onChange:D,maxCount:X,classNames:V,styles:Z,...Q}=e,B={searchValue:p,onSearch:m,autoClearSearchValue:h,filterOption:b,optionFilterProp:v,filterSort:x},[F,k]=sB(f,B,r),{filterOption:G,searchValue:K,optionFilterProp:te,filterSort:Y,onSearch:ie,autoClearSearchValue:se=!0}=k,ae=c.useMemo(()=>te?Array.isArray(te)?te:[te]:[],[te]),me=Wr(o),ne=tb(r),ue=!!(!$&&T),ye=c.useMemo(()=>G===void 0&&r==="combobox"?!1:G,[G,r]),ve=c.useMemo(()=>W2(u,ue),[JSON.stringify(u),ue]),[Ee,Ce]=To("",K),be=Ee||"",ge=iB($,T,ve,ae,N),{valueOptions:ze,labelOptions:we,options:Ie}=ge,Oe=c.useCallback(Se=>Y2(Se).map(Fe=>{let Ke,ct,Jt,Rt;cB(Fe)?Ke=Fe:(ct=Fe.label,Ke=Fe.value);const dt=ze.get(Ke);return dt&&(ct===void 0&&(ct=dt?.[N||ve.label]),Jt=dt?.disabled,Rt=dt?.title),{label:ct,value:Ke,key:Ke,disabled:Jt,title:Rt}}),[ve,N,ze]),[je,nt]=To(J,W),Ye=c.useMemo(()=>{const He=Oe(ne&&je===null?[]:je);return r==="combobox"&&xP(He[0]?.value)?[]:He},[je,Oe,r,ne]),[De,qe]=oB(Ye,ze),Je=c.useMemo(()=>{if(!r&&De.length===1){const Se=De[0];if(Se.value===null&&(Se.label===null||Se.label===void 0))return[]}return De.map(Se=>({...Se,label:(typeof H=="function"?H(Se):Se.label)??Se.value}))},[r,De,H]),Ue=c.useMemo(()=>new Set(De.map(Se=>Se.value)),[De]);c.useEffect(()=>{if(r==="combobox"){const Se=De[0]?.value;Ce(yP(Se)?String(Se):"")}},[De]);const Pe=n$((Se,He)=>{const Fe=He??Se;return{[ve.value]:Se,[ve.label]:Fe}}),_e=c.useMemo(()=>{if(r!=="tags")return Ie;const Se=[...Ie],He=Fe=>ze.has(Fe);return[...De].sort((Fe,Ke)=>Fe.value<Ke.value?-1:1).forEach(Fe=>{const Ke=Fe.value;He(Ke)||Se.push(Pe(Ke,Fe.label))}),Se},[Pe,Ie,ze,De,r]),We=rB(_e,ve,be,ye,ae),Be=c.useMemo(()=>{const Se=He=>ae.length?ae.some(Fe=>He?.[Fe]===be):He?.value===be;return r!=="tags"||!be||We.some(He=>Se(He))||We.some(He=>He[ve.value]===be)||ze.get(be)?.disabled?We:[Pe(be),...We]},[Pe,ae,r,We,be,ve,ze]),he=Se=>[...Se].sort((Fe,Ke)=>Y(Fe,Ke,{searchValue:be})).map(Fe=>Array.isArray(Fe.options)?{...Fe,options:Fe.options.length>0?he(Fe.options):Fe.options}:Fe),Te=c.useMemo(()=>Y?he(Be):Be,[Be,Y,be]),Le=c.useMemo(()=>pP(Te,{fieldNames:ve,childrenAsData:ue}),[Te,ve,ue]),Ge=Se=>{const He=Oe(Se);if(nt(He),D&&(He.length!==De.length||He.some((Fe,Ke)=>De[Ke]?.value!==Fe?.value))){const Fe=q?He.map(({label:ct,value:Jt})=>({label:ct,value:Jt})):He.map(ct=>ct.value),Ke=He.map(ct=>Kh(qe(ct.value)));D(ne?Fe:Fe[0],ne?Ke:Ke[0])}},[ot,Qe]=c.useState(null),[ut,Ct]=c.useState(0),mt=z!==void 0?z:r!=="combobox",Nt=c.useRef(),vt=c.useCallback((Se,He,{source:Fe="keyboard"}={})=>{Ct(He),l&&r==="combobox"&&Se!==null&&Fe==="keyboard"&&Qe(String(Se));const Ke=Promise.resolve().then(()=>{Nt.current===Ke&&R?.(Se)});Nt.current=Ke},[l,r,R]),Pt=(Se,He,Fe)=>{const Ke=()=>{const ct=qe(Se);return[q?{label:ct?.[ve.label],value:Se}:Se,Kh(ct)]};if(He&&C){const[ct,Jt]=Ke();C(ct,Jt)}else if(!He&&S&&Fe!=="clear"){const[ct,Jt]=Ke();S(ct,Jt)}},et=n$((Se,He)=>{let Fe;const Ke=ne?He.selected:!0;Ke?Fe=ne?[...De,Se]:[Se]:Fe=De.filter(ct=>ct.value!==Se),Ge(Fe),Pt(Se,Ke),r==="combobox"?Qe(""):(!tb||se)&&(Ce(""),Qe(""))}),Bt=(Se,He)=>{Ge(Se);const{type:Fe,values:Ke}=He;(Fe==="remove"||Fe==="clear")&&Ke.forEach(ct=>{Pt(ct.value,!1,Fe)})},Ve=(Se,He)=>{if(Ce(Se),Qe(null),He.source==="submit"){const Fe=(Se||"").trim();if(Fe){if(ze.get(Fe)?.disabled){Ce("");return}const Ke=Array.from(new Set([...Ue,Fe]));Ge(Ke),Pt(Fe,!0),Ce("")}return}He.source!=="blur"&&(r==="combobox"&&Ge(Se),ie?.(Se))},Re=Se=>{let He=Se;r!=="tags"&&(He=Se.map(Ke=>we.get(Ke)?.value).filter(Ke=>Ke!==void 0)),r==="tags"&&(He=He.filter(Ke=>!ze.get(Ke)?.disabled));const Fe=Array.from(new Set([...Ue,...He]));Ge(Fe),Fe.forEach(Ke=>{Pt(Ke,!0)})},Ae=c.useMemo(()=>({...ge,flattenOptions:Le,onActiveValue:vt,defaultActiveFirstOption:mt,onSelect:et,menuItemSelectedIcon:A,rawValues:Ue,fieldNames:ve,virtual:P!==!1&&E!==!1,direction:j,listHeight:L,listItemHeight:I,childrenAsData:ue,maxCount:X,optionRender:w,classNames:V,styles:Z}),[X,ge,Le,vt,mt,et,A,Ue,ve,P,E,j,L,I,ue,w,V,Z]);return c.createElement(z0.Provider,{value:Ae},c.createElement(jP,rb({},Q,{id:me,prefixCls:i,ref:t,omitDomProps:lB,mode:r,classNames:V,styles:Z,displayValues:Je,onDisplayValuesChange:Bt,maxCount:X,direction:j,showSearch:F,searchValue:be,onSearch:Ve,autoClearSearchValue:se,onSearchSplit:Re,popupMatchSelectWidth:E,OptionList:nB,emptyOptions:!Le.length,activeValue:ot,activeDescendantId:`${me}_list_${ut}`})))}),P0=uB;P0.Option=I0;P0.OptGroup=A0;function o$(e,t,o){return e===!1?null:e===!0?o:e&&e[t]!==void 0?e[t]:o}const ec=(e,t,o)=>U({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o}),Cf=(e,t)=>t||e,ri=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new En(e).onBackground(t).toHexString(),dB=()=>{const[,e]=ko(),[t]=za("Empty"),{colorBgContainer:o,colorFill:r,colorFillSecondary:i,colorFillTertiary:l,colorTextQuaternary:u}=e,{panelBgColor:f,borderColor:p,detailColor:m,shadowColor:h,iconColor:b}=c.useMemo(()=>({panelBgColor:ri(l,o),borderColor:ri(u,o),detailColor:ri(r,o),shadowColor:ri(i,o),iconColor:o}),[o,r,i,l,u]);return c.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,t?.description||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.7)"},c.createElement("ellipse",{fillOpacity:".8",fill:h,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),c.createElement("path",{fill:p,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),c.createElement("path",{fill:f,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),c.createElement("path",{fill:m,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),c.createElement("path",{fill:m,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),c.createElement("g",{fill:b,transform:"translate(149.7 15.4)"},c.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),c.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},fB=()=>{const[,e]=ko(),[t]=za("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:l}=e,{borderColor:u,shadowColor:f,contentColor:p}=c.useMemo(()=>({borderColor:ri(o,l),shadowColor:ri(r,l),contentColor:ri(i,l)}),[o,r,i,l]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,t?.description||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:f,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:u},c.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),c.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:p}))))},mB=e=>{const{componentCls:t,margin:o,marginXS:r,marginXL:i,fontSize:l,lineHeight:u}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:u,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},pB=Qt("Empty",e=>{const{componentCls:t,controlHeightLG:o,calc:r}=e,i=Gt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return mB(i)}),rN=c.createElement(dB,null),aN=c.createElement(fB,null),jr=e=>{const{className:t,rootClassName:o,prefixCls:r,image:i,description:l,children:u,imageStyle:f,style:p,classNames:m,styles:h,...b}=e,{getPrefixCls:v,direction:x,className:C,style:S,classNames:R,styles:E,image:N}=Kt("empty"),$=v("empty",r),[w,T]=pB($),z=pn(S),A=pn(p),[P,j]=dn([R,m],[E,z,h,A],{props:e}),[L]=za("Empty"),I=typeof l<"u"?l:L?.description,H=typeof I=="string"?I:"empty",W=i??N??rN;let J=null;return typeof W=="string"?J=c.createElement("img",{draggable:!1,alt:H,src:W}):J=W,c.createElement("div",{className:U(w,T,$,C,{[`${$}-normal`]:W===aN,[`${$}-rtl`]:x==="rtl"},t,o,P.root),style:j.root,...b},c.createElement("div",{className:U(`${$}-image`,P.image),style:{...f,...j.image}},J),I&&c.createElement("div",{className:U(`${$}-description`,P.description),style:j.description},I),u&&c.createElement("div",{className:U(`${$}-footer`,P.footer),style:j.footer},u))};jr.PRESENTED_IMAGE_DEFAULT=rN;jr.PRESENTED_IMAGE_SIMPLE=aN;const gB=e=>{const{componentName:t}=e,{getPrefixCls:o}=c.useContext(xt),r=o("empty");switch(t){case"Table":case"List":return ce.createElement(jr,{image:jr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(jr,{image:jr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(jr,null)}},$f=(e,t,o)=>{const{variant:r,[e]:i}=c.useContext(xt),l=c.useContext(Y8),u=i?.variant;let f;typeof t<"u"?f=t:o===!1?f="borderless":f=l??u??r??"outlined";const p=qO.includes(f);return[f,p]},hB=e=>{const o={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function bB(e,t){return e||hB(t)}const r$=e=>{const{optionHeight:t,optionFontSize:o,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}},vB=e=>{const{antCls:t,componentCls:o}=e,r=`${o}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,u=`&${t}-slide-up-leave${t}-slide-up-leave-active`,f=`${o}-dropdown-placement-`,p=`${r}-option-selected`;return[{[`${o}-dropdown`]:{...Dn(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
166
+ ${i}${f}bottomLeft,
167
+ ${l}${f}bottomLeft
168
+ `]:{animationName:C0},[`
169
+ ${i}${f}topLeft,
170
+ ${l}${f}topLeft,
171
+ ${i}${f}topRight,
172
+ ${l}${f}topRight
173
+ `]:{animationName:E0},[`${u}${f}bottomLeft`]:{animationName:$0},[`
174
+ ${u}${f}topLeft,
175
+ ${u}${f}topRight
176
+ `]:{animationName:w0},"&-hidden":{display:"none"},[r]:{...r$(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...or},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...r$(e),color:e.colorTextDisabled}},[`${p}:has(+ ${p})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${p}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Ss(e,"slide-up"),Ss(e,"slide-down"),SC(e,"move-up"),SC(e,"move-down")]},yB=e=>{const{antCls:t,componentCls:o}=e,r={background:"transparent"},i=["> input[disabled]","> textarea[disabled]",`> ${o}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${o}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${o}-placeholder`]:{display:"none"},[`${o}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${o}-filled ${o}-content`]:{[`${t}-input-filled`]:r},[`&${o}-disabled ${o}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}},a$=4,xB=e=>{const{componentCls:t,calc:o,iconCls:r,paddingXS:i,paddingXXS:l,INTERNAL_FIXED_ITEM_MARGIN:u,lineWidth:f,lineType:p,colorIcon:m,colorIconHover:h,inputPaddingHorizontalBase:b,antCls:v}=e,[x,C]=Vt(v,"select");return{"&-multiple":{[x("multi-item-background")]:e.multipleItemBg,[x("multi-item-border-color")]:"transparent",[x("multi-item-border-radius")]:e.borderRadiusSM,[x("multi-item-height")]:e.multipleItemHeight,[x("multi-padding-base")]:`calc((${C("height")} - ${C("multi-item-height")}) / 2)`,[x("multi-padding-vertical")]:`calc(${C("multi-padding-base")} - ${u} - ${f})`,[x("multi-item-padding-horizontal")]:`calc(${b} - ${C("multi-padding-vertical")} - ${f} * 2)`,paddingBlock:C("multi-padding-vertical"),paddingInlineStart:`calc(${C("multi-padding-base")} - ${f})`,[`${t}-prefix`]:{marginInlineStart:C("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:C("line-height"),insetInlineStart:C("multi-item-padding-horizontal"),width:`calc(100% - ${C("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:C("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${a$}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
177
+ ${t}-content-item-suffix:first-child`]:{marginInlineStart:C("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${C("multi-item-height")} - ${f} * 2)`,border:`${f} ${p} ${C("multi-item-border-color")}`,display:"flex",marginBlock:u,marginInlineEnd:o(u).mul(2).equal(),background:C("multi-item-background"),borderRadius:C("multi-item-border-radius"),paddingInlineStart:i,paddingInlineEnd:l,transition:["height","line-height","padding"].map(S=>`${S} ${e.motionDurationSlow}`).join(","),"&-content":{...or,marginInlineEnd:l},"&-remove":{...df(),display:"inline-flex",alignItems:"center",color:m,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:h}}},[`${t}-input`]:{lineHeight:o(u).mul(2).add(C("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:a$,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[x("multi-item-height")]:e.multipleItemHeightSM,[x("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[x("multi-item-height")]:e.multipleItemHeightLG,[x("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[x("multi-item-border-color")]:e.colorSplit,[x("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[x("multi-item-border-color")]:"transparent"}}}}},xg=(e,t)=>{const{componentCls:o,antCls:r}=e,[i]=Vt(r,"select"),{border:l,borderHover:u,borderActive:f,borderOutline:p}=t,m=t.background||e.selectorBg||e.colorBgContainer;return{[i("border-color")]:l,[i("background-color")]:m,[i("affix-color")]:t.affixColor,[`&:not(${o}-disabled)`]:{"&:hover":{[i("border-color")]:u,[i("background-color")]:t.backgroundHover||m},[`&${o}-focused`]:{[i("border-color")]:f,[i("background-color")]:t.backgroundActive||m,boxShadow:`0 0 0 ${re(e.controlOutlineWidth)} ${p}`}},[`&${o}-disabled`]:{[i("border-color")]:t.borderDisabled||t.border,[i("background-color")]:t.backgroundDisabled||t.background}}},Ku=(e,t,o,r,i,l)=>{const{componentCls:u}=e;return{[`&${u}-${t}`]:[xg(e,o),{[`&${u}-status-error`]:xg(e,{...o,...r}),[`&${u}-status-warning`]:xg(e,{...o,...i})},l]}},Sg=(e,t)=>({outline:`${re(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:re(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),SB=e=>{const{componentCls:t,fontHeight:o,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:l,iconCls:u,antCls:f,max:p,calc:m}=e,[h,b]=Vt(f,"select"),v=p(m(l).sub(i).equal(),0);return{[t]:[{[h("border-radius")]:e.borderRadius,[h("border-color")]:"#000",[h("border-size")]:e.lineWidth,[h("background-color")]:e.colorBgContainer,[h("font-size")]:e.fontSize,[h("line-height")]:e.lineHeight,[h("font-height")]:o,[h("color")]:e.colorText,[h("affix-color")]:e.colorText,[h("height")]:r,[h("padding-horizontal")]:m(e.paddingSM).sub(e.lineWidth).equal(),[h("padding-vertical")]:`calc((${b("height")} - ${b("font-height")}) / 2 - ${b("border-size")})`,...Dn(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:b("border-radius"),borderWidth:b("border-size"),borderStyle:e.lineType,borderColor:b("border-color"),background:b("background-color"),fontSize:b("font-size"),lineHeight:b("line-height"),color:b("color"),paddingInline:b("padding-horizontal"),paddingBlock:b("padding-vertical"),[`${t}-prefix`]:{color:b("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...or,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:v,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[u]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[h("height")]:e.controlHeightSM,[h("padding-horizontal")]:m(e.paddingXS).sub(e.lineWidth).equal(),[h("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:b("padding-horizontal")}},"&-lg":{[h("height")]:e.controlHeightLG,[h("font-size")]:e.fontSizeLG,[h("line-height")]:e.lineHeightLG,[h("font-height")]:e.fontHeightLG,[h("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:b("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...or,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},xB(e),Ku(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),Ku(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Ku(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:Sg(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:Sg(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:Sg(e,e.colorWarning)}),Ku(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),yB(e)]}},CB=e=>{const{fontSize:t,lineHeight:o,lineWidth:r,controlHeight:i,controlHeightSM:l,controlHeightLG:u,paddingXXS:f,controlPaddingHorizontal:p,zIndexPopupBase:m,colorText:h,fontWeightStrong:b,controlItemBgActive:v,controlItemBgHover:x,colorBgContainer:C,colorFillSecondary:S,colorBgContainerDisabled:R,colorTextDisabled:E,colorPrimaryHover:N,colorPrimary:$,controlOutline:w}=e,T=f*2,z=r*2,A=Math.min(i-T,i-z),P=Math.min(l-T,l-z),j=Math.min(u-T,u-z);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(f/2),zIndexPopup:m+50,optionSelectedColor:h,optionSelectedFontWeight:b,optionSelectedBg:v,optionActiveBg:x,optionPadding:`${(i-t*o)/2}px ${p}px`,optionFontSize:t,optionLineHeight:o,optionHeight:i,selectorBg:C,clearBg:C,singleItemHeightLG:u,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:A,multipleItemHeightSM:P,multipleItemHeightLG:j,multipleSelectorBgDisabled:R,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:N,activeBorderColor:$,activeOutlineColor:w,selectAffixPadding:f}},$B=e=>{const{antCls:t,componentCls:o,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,l={[`${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[o]:{...Dn(e),[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...or,[`> ${t}-typography`]:{display:"inline"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(u=>`${u} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":l,"&:hover":l},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},EB=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},$B(e),vB(e),{[`${t}-rtl`]:{direction:"rtl"}},xf(e,{focusElCls:`${t}-focused`})]},wB=Qt("Select",(e,{rootPrefixCls:t})=>{const o=Gt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[EB(o),SB(o)]},CB,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Qu={},i$;function NB(){if(i$)return Qu;i$=1,Object.defineProperty(Qu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};return Qu.default=e,Qu}var RB=NB();const MB=Xt(RB);function ab(){return ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ab.apply(this,arguments)}const TB=(e,t)=>c.createElement(Zt,ab({},e,{ref:t,icon:MB})),Ms=c.forwardRef(TB);var Zu={},s$;function OB(){if(s$)return Zu;s$=1,Object.defineProperty(Zu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};return Zu.default=e,Zu}var zB=OB();const AB=Xt(zB);function ib(){return ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ib.apply(this,arguments)}const IB=(e,t)=>c.createElement(Zt,ib({},e,{ref:t,icon:AB})),PB=c.forwardRef(IB);var Ju={},l$;function BB(){if(l$)return Ju;l$=1,Object.defineProperty(Ju,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};return Ju.default=e,Ju}var jB=BB();const _B=Xt(jB);function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},sb.apply(this,arguments)}const HB=(e,t)=>c.createElement(Zt,sb({},e,{ref:t,icon:_B})),B0=c.forwardRef(HB);function DB({suffixIcon:e,contextSuffixIcon:t,clearIcon:o,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:l,removeIcon:u,contextRemoveIcon:f,loading:p,loadingIcon:m,contextLoadingIcon:h,searchIcon:b,contextSearchIcon:v,multiple:x,hasFeedback:C,showSuffixIcon:S,feedbackIcon:R,showArrow:E,componentName:N}){return c.useMemo(()=>{const $=Wo(o,r,c.createElement(gi,null)),w=P=>e===null&&!C&&!E?null:c.createElement(c.Fragment,null,S!==!1&&P,C&&R);let T=null;e!==void 0?T=w(e):p?T=w(Wo(m,h,c.createElement(hf,{spin:!0}))):T=({open:P,showSearch:j})=>w(P&&j?Wo(b,v,c.createElement(B0,null)):Wo(t,c.createElement(PB,null)));const z=Wo(i,l,x?c.createElement(Ms,null):null),A=Wo(u,f,c.createElement(gr,null));return{clearIcon:$,suffixIcon:T,itemIcon:z,removeIcon:A}},[e,t,o,r,i,l,u,f,p,m,h,b,v,x,C,S,R,E])}function LB(e){return ce.useMemo(()=>{if(e)return(...t)=>ce.createElement($s,{space:!0},e.apply(void 0,t))},[e])}function VB(e,t){return t!==void 0?t:e!==null}const iN="SECRET_COMBOBOX_MODE_DO_NOT_USE",FB=(e,t)=>{const{prefixCls:o,bordered:r,className:i,rootClassName:l,getPopupContainer:u,popupClassName:f,dropdownClassName:p,listHeight:m=256,placement:h,listItemHeight:b,size:v,disabled:x,notFoundContent:C,status:S,builtinPlacements:R,dropdownMatchSelectWidth:E,popupMatchSelectWidth:N,direction:$,style:w,allowClear:T,variant:z,popupStyle:A,dropdownStyle:P,transitionName:j,tagRender:L,maxCount:I,prefix:H,dropdownRender:W,popupRender:J,onDropdownVisibleChange:q,onOpenChange:D,styles:X,classNames:V,clearIcon:Z,showSearch:Q,...B}=e,{getPopupContainer:F,getPrefixCls:k,renderEmpty:G,direction:K,virtual:te,popupMatchSelectWidth:Y,popupOverflow:ie}=c.useContext(xt),{showSearch:se,allowClear:ae,style:me,styles:ne,className:ue,classNames:ye,clearIcon:ve,loadingIcon:Ee,menuItemSelectedIcon:Ce,removeIcon:be,suffixIcon:ge}=Kt("select"),[,ze]=ko(),we=b??ze?.controlHeight,Ie=k("select",o),Oe=k(),je=$??K,{compactSize:nt,compactItemClassnames:Ye}=Rs(Ie,je),[De,qe]=$f("select",z,r),Je=hr(Ie),[Ue,Pe]=wB(Ie,Je),_e=c.useMemo(()=>{const{mode:Xe}=e;if(Xe!=="combobox")return Xe===iN?"combobox":Xe},[e.mode]),We=_e==="multiple"||_e==="tags",Be=VB(e.suffixIcon,e.showArrow),he=N??E??Y,Te=LB(J||W),Le=D||q,{status:Ge,hasFeedback:ot,isFormItemInput:Qe,feedbackIcon:ut}=c.useContext(qr),Ct=Cf(Ge,S);let mt;C!==void 0?mt=C:_e==="combobox"?mt=null:mt=G?.("Select")||c.createElement(gB,{componentName:"Select"});const{suffixIcon:Nt,itemIcon:vt,removeIcon:Pt,clearIcon:et}=DB({...B,multiple:We,hasFeedback:ot,feedbackIcon:ut,showSuffixIcon:Be,componentName:"Select",clearIcon:Z,searchIcon:o$(Q,"searchIcon"),contextClearIcon:ve,contextLoadingIcon:Ee,contextMenuItemSelectedIcon:Ce,contextRemoveIcon:be,contextSearchIcon:o$(se,"searchIcon"),contextSuffixIcon:ge}),Bt=T??ae,Ve=Bt===!0?{clearIcon:et}:Bt,Re=Q??se,Ae=xn(B,["suffixIcon","itemIcon"]),Se=bo(Xe=>v??nt??Xe),He=c.useContext(Vr),Fe=x??He,Ke={...e,variant:De,status:Ct,disabled:Fe,size:Se},ct=pn(me),Jt=pn(w),[Rt,dt]=dn([ye,V],[ne,ct,X,Jt],{props:Ke},{popup:{_default:"root"}}),Mt=U(Rt.popup.root,f,p,{[`${Ie}-dropdown-${je}`]:je==="rtl"},l,Pe,Je,Ue),on={...dt.popup?.root,...A??P},st=U({[`${Ie}-lg`]:Se==="large",[`${Ie}-sm`]:Se==="small",[`${Ie}-rtl`]:je==="rtl",[`${Ie}-${De}`]:qe,[`${Ie}-in-form-item`]:Qe},ec(Ie,Ct,ot),Ye,ue,i,Rt.root,l,Pe,Je,Ue),ht=c.useMemo(()=>h!==void 0?h:je==="rtl"?"bottomRight":"bottomLeft",[h,je]),[$t]=mc("SelectLike",dt.popup.root?.zIndex??on.zIndex);return c.createElement(P0,{ref:t,virtual:te,classNames:Rt,styles:dt,showSearch:Re,...Ae,style:dt.root,popupMatchSelectWidth:he,transitionName:Fr(Oe,"slide-up",j),builtinPlacements:bB(R,ie),listHeight:m,listItemHeight:we,mode:_e,prefixCls:Ie,placement:ht,direction:je,prefix:H,suffixIcon:Nt,menuItemSelectedIcon:vt,removeIcon:Pt,allowClear:Ve,notFoundContent:mt,className:st,getPopupContainer:u||F,popupClassName:Mt,disabled:Fe,popupStyle:{...dt.popup.root,...on,zIndex:$t},maxCount:We?I:void 0,tagRender:We?L:void 0,popupRender:Te,onPopupVisibleChange:Le})},Ts=c.forwardRef(FB),qB=sP(Ts,"popupAlign");Ts.SECRET_COMBOBOX_MODE_DO_NOT_USE=iN;Ts.Option=I0;Ts.OptGroup=A0;Ts._InternalPanelDoNotUseOrYouWillBeFired=qB;const UB=["xxxl","xxl","xl","lg","md","sm","xs"],WB=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),GB=e=>{const t=e,o=[].concat(UB).reverse();return o.forEach((r,i)=>{const l=r.toUpperCase(),u=`screen${l}Min`,f=`screen${l}`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`);if(i<o.length-1){const p=`screen${l}Max`;if(!(t[f]<=t[p]))throw new Error(`${f}<=${p} fails : !(${t[f]}<=${t[p]})`);const h=`screen${o[i+1].toUpperCase()}Min`;if(!(t[p]<=t[h]))throw new Error(`${p}<=${h} fails : !(${t[p]}<=${t[h]})`)}}),e},XB=()=>{const[,e]=ko(),t=WB(GB(e));return ce.useMemo(()=>{const o=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return i=l,o.forEach(u=>{u(i)}),o.size>=1},subscribe(l){return o.size||this.register(),r+=1,o.set(r,l),l(i),r},unsubscribe(l){o.delete(l),o.size||this.unregister()},register(){Object.entries(t).forEach(([l,u])=>{const f=({matches:m})=>{this.dispatch({...i,[l]:m})},p=window.matchMedia(u);mn(p.addEventListener)&&p.addEventListener("change",f),this.matchHandlers[u]={mql:p,listener:f},f(p)})},unregister(){Object.values(t).forEach(l=>{const u=this.matchHandlers[l];mn(u?.mql.removeEventListener)&&u.mql.removeEventListener("change",u?.listener)}),o.clear()}}},[t])};function kB(e=!0,t={}){const o=c.useRef(t),[,r]=F3(),i=XB();return un(()=>{const l=i.subscribe(u=>{o.current=u,e&&r()});return()=>i.unsubscribe(l)},[e]),o.current}const sN=e=>{const{children:t,prefixCls:o,id:r,classNames:i,styles:l,className:u,style:f}=e;return c.createElement("div",{id:r,className:U(`${o}-container`,i?.container,u),style:{...l?.container,...f},role:"tooltip"},typeof t=="function"?t():t)},os={shiftX:64,adjustY:1},rs={adjustX:1,shiftY:!0},qo=[0,0],YB={left:{points:["cr","cl"],overflow:rs,offset:[-4,0],targetOffset:qo},right:{points:["cl","cr"],overflow:rs,offset:[4,0],targetOffset:qo},top:{points:["bc","tc"],overflow:os,offset:[0,-4],targetOffset:qo},bottom:{points:["tc","bc"],overflow:os,offset:[0,4],targetOffset:qo},topLeft:{points:["bl","tl"],overflow:os,offset:[0,-4],targetOffset:qo},leftTop:{points:["tr","tl"],overflow:rs,offset:[-4,0],targetOffset:qo},topRight:{points:["br","tr"],overflow:os,offset:[0,-4],targetOffset:qo},rightTop:{points:["tl","tr"],overflow:rs,offset:[4,0],targetOffset:qo},bottomRight:{points:["tr","br"],overflow:os,offset:[0,4],targetOffset:qo},rightBottom:{points:["bl","br"],overflow:rs,offset:[4,0],targetOffset:qo},bottomLeft:{points:["tl","bl"],overflow:os,offset:[0,4],targetOffset:qo},leftBottom:{points:["br","bl"],overflow:rs,offset:[-4,0],targetOffset:qo}};function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},lb.apply(this,arguments)}const KB=c.forwardRef((e,t)=>{const{trigger:o=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:l="rc-tooltip",children:u,onVisibleChange:f,afterVisibleChange:p,motion:m,placement:h="right",align:b={},destroyOnHidden:v=!1,defaultVisible:x,getTooltipContainer:C,arrowContent:S,overlay:R,id:E,showArrow:N=!0,classNames:$,styles:w,...T}=e,z=Wr(E),A=c.useRef(null);c.useImperativeHandle(t,()=>A.current);const P={...T};"visible"in e&&(P.popupVisible=e.visible);const j=c.useMemo(()=>{if(!N)return!1;const I=N===!0?{}:N;return{...I,className:U(I.className,$?.arrow),style:{...I.style,...w?.arrow},content:I.content??S}},[N,$?.arrow,w?.arrow,S]),L=({open:I})=>{const H=c.Children.only(u),W={"aria-describedby":R&&I?z:void 0};return c.cloneElement(H,W)};return c.createElement(gf,lb({popupClassName:$?.root,prefixCls:l,popup:c.createElement(sN,{key:"content",prefixCls:l,id:z,classNames:$,styles:w},R),action:o,builtinPlacements:YB,popupPlacement:h,ref:A,popupAlign:b,getPopupContainer:C,onOpenChange:f,afterOpenChange:p,popupMotion:m,defaultPopupVisible:x,autoDestroy:v,mouseLeaveDelay:i,popupStyle:w?.root,mouseEnterDelay:r,arrow:j,uniqueContainerClassName:$?.uniqueContainer,uniqueContainerStyle:w?.uniqueContainer},P),L)});function QB(e){const{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,i=t/2,l=0,u=i,f=r*1/Math.sqrt(2),p=i-r*(1-1/Math.sqrt(2)),m=i-o*(1/Math.sqrt(2)),h=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),b=2*i-m,v=h,x=2*i-f,C=p,S=2*i-l,R=u,E=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),N=r*(Math.sqrt(2)-1),$=`polygon(${N}px 100%, 50% ${N}px, ${2*i-N}px 100%, ${N}px 100%)`,w=`path('M ${l} ${u} A ${r} ${r} 0 0 0 ${f} ${p} L ${m} ${h} A ${o} ${o} 0 0 1 ${b} ${v} L ${x} ${C} A ${r} ${r} 0 0 0 ${S} ${R} Z')`;return{arrowShadowWidth:E,arrowPath:w,arrowPolygon:$}}const ZB=(e,t,o)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:l,arrowShadowWidth:u,borderRadiusXS:f,calc:p}=e,m={content:'""',position:"absolute",width:u,height:u,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${re(f)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return o&&(m.boxShadow=o),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:p(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,l]},content:'""'},"&::after":m}},lN=8;function cN(e){const{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:o?lN:r}}const JB=(e,t,o)=>{const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:l,arrowOffsetHorizontal:u,antCls:f}=e,[p]=Vt(f,"tooltip"),{arrowDistance:m=0,arrowShadow:h=!0}=o||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...ZB(e,t,h?i:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[p("arrow-offset-x")]:u,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-topRight":{[p("arrow-offset-x")]:`calc(100% - ${re(u)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:u}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[p("arrow-offset-x")]:u,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-bottomRight":{[p("arrow-offset-x")]:`calc(100% - ${re(u)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:u}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}}};function ej(e,t,o,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=Wt(r)?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+o,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+o,l.shiftX=!0,l.adjustX=!0;break}const u={...l,...i};return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const c$={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},tj={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},nj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function oj(e){const{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:i,borderRadius:l}=e,u=t/2,f={},p=cN({contentRadius:l,limitVerticalRadius:!0});return Object.keys(c$).forEach(m=>{const b={...r&&tj[m]||c$[m],offset:[0,0],dynamicInset:!0};switch(f[m]=b,nj.has(m)&&(b.autoArrow=!1),m){case"top":case"topLeft":case"topRight":b.offset[1]=-u-i;break;case"bottom":case"bottomLeft":case"bottomRight":b.offset[1]=u+i;break;case"left":case"leftTop":case"leftBottom":b.offset[0]=-u-i;break;case"right":case"rightTop":case"rightBottom":b.offset[0]=u+i;break}if(r)switch(m){case"topLeft":case"bottomLeft":b.offset[0]=-p.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":b.offset[0]=p.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":b.offset[1]=-p.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":b.offset[1]=p.arrowOffsetHorizontal*2-u;break}b.overflow=ej(m,p,t,o),b.htmlRegion="visibleFirst"}),f}const rj=ce.createContext(!1),aj=(e,t)=>{const o=r=>typeof r=="boolean"?{show:r}:r||{};return ce.useMemo(()=>{const r=o(e),i=o(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},u$="50%",ij=e=>{const{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:l,tooltipBorderRadius:u,zIndexPopup:f,controlHeight:p,dropShadowPopover:m,paddingSM:h,paddingXS:b,arrowOffsetHorizontal:v,sizePopupArrow:x,antCls:C}=e,[S,R]=Vt(C,"tooltip"),E=t(u).add(x).add(v).equal(),$={minWidth:t(u).mul(2).add(x).equal(),minHeight:p,padding:`${re(e.calc(h).div(2).equal())} ${re(b)}`,color:R("overlay-color",i),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:u,boxSizing:"border-box"},w={[S("valid-offset-x")]:R("arrow-offset-x","var(--arrow-x)"),transformOrigin:[R("valid-offset-x",u$),`var(--arrow-y, ${u$})`].join(" ")};return[{[o]:{...Dn(e),position:"absolute",zIndex:f,display:"block",width:"max-content",maxWidth:r,visibility:"visible",filter:m,...w,"&-hidden":{display:"none"},[S("arrow-background-color")]:l,[`${o}-container`]:[$,$2(e,!0)],[`&:has(~ ${o}-unique-container)`]:{[`${o}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:E},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(u,lN)}},[`${o}-content`]:{position:"relative"},...f0(e,(T,{darkColor:z})=>({[`&${o}-${T}`]:{[`${o}-container`]:{backgroundColor:z},[`${o}-arrow`]:{[S("arrow-background-color")]:z}}})),"&-rtl":{direction:"rtl"}}},JB(e,R("arrow-background-color"),{arrowShadow:!1}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${o}-unique-container`]:{...$,...w,position:"absolute",zIndex:t(f).sub(1).equal(),filter:m,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},sj=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...cN({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...QB(Gt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),uN=(e,t,o=!0)=>Qt("Tooltip",i=>{const{borderRadius:l,colorTextLightSolid:u,colorBgSpotlight:f,maxWidth:p}=i,m=Gt(i,{tooltipMaxWidth:p,tooltipColor:u,tooltipBorderRadius:l,tooltipBg:f});return[ij(m),N0(i,"zoom-big-fast")]},sj,{resetStyle:!1,injectStyle:o})(e,t),lj=Ta.map(e=>`${e}-inverse`);function j0(e,t=!0){return t?[].concat(ho(lj),ho(Ta)).includes(e):Ta.includes(e)}const dN=(e,t,o)=>{const r=j0(o),[i]=Vt(e,"tooltip"),l=U({[`${t}-${o}`]:o&&r}),u={},f={},p=TA(o).toRgb(),h=(.299*p.r+.587*p.g+.114*p.b)/255<.5?"#FFF":"#000";return o&&!r&&(u.background=o,u[i("overlay-color")]=h,f[i("arrow-background-color")]=o),{className:l,overlayStyle:u,arrowStyle:f}},cj=e=>{const{prefixCls:t,className:o,placement:r="top",title:i,color:l,overlayInnerStyle:u,classNames:f,styles:p}=e,{getPrefixCls:m}=c.useContext(xt),h=m("tooltip",t),b=m(),v=hr(h),[x,C]=uN(h,v),S=dN(b,h,l),R=S.arrowStyle,E=c.useMemo(()=>({container:{...u,...S.overlayStyle}}),[u,S.overlayStyle]),N={...e,placement:r},[$,w]=dn([f],[E,p],{props:N}),T=U(v,x,C,h,`${h}-pure`,`${h}-placement-${r}`,o,S.className);return c.createElement("div",{className:T,style:R},c.createElement("div",{className:`${h}-arrow`}),c.createElement(sN,{...e,className:x,prefixCls:h,classNames:$,styles:w},i))},uj=c.forwardRef((e,t)=>{const{prefixCls:o,openClassName:r,getTooltipContainer:i,color:l,children:u,afterOpenChange:f,arrow:p,destroyTooltipOnHide:m,destroyOnHidden:h,title:b,overlay:v,trigger:x,builtinPlacements:C,autoAdjustOverflow:S=!0,motion:R,getPopupContainer:E,placement:N="top",mouseEnterDelay:$=.1,mouseLeaveDelay:w=.1,rootClassName:T,styles:z,classNames:A,onOpenChange:P,overlayInnerStyle:j,overlayStyle:L,overlayClassName:I,...H}=e,[,W]=ko(),J=e["data-popover-inject"],{getPopupContainer:q,getPrefixCls:D,direction:X,...V}=Kt("tooltip"),{className:Z,style:Q,classNames:B,styles:F,arrow:k,trigger:G}=J?{}:V,K=aj(p,k),te=K.show,Y=x||G||"hover",ie=E||q,se=h??!!m,ae=c.useContext(rj),me=c.useRef(null),ne=()=>{me.current?.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:ne,nativeElement:me.current?.nativeElement,popupElement:me.current?.popupElement}));const[ue,ye]=To(e.defaultOpen??!1,e.open),ve=!b&&!v&&b!==0,Ee=Qe=>{ye(ve?!1:Qe),!ve&&P&&P(Qe)},Ce=c.useMemo(()=>C||oj({arrowPointAtCenter:K?.pointAtCenter??!1,autoAdjustOverflow:S,arrowWidth:te?W.sizePopupArrow:0,borderRadius:W.borderRadius,offset:W.marginXXS}),[K,C,W,te,S]),be=c.useMemo(()=>b===0?b:v||b||"",[v,b]),ge=c.createElement($s,{space:!0,form:!0},mn(be)?be():be),ze={...e,trigger:Y,builtinPlacements:Ce,getPopupContainer:ie,destroyOnHidden:se},[we,Ie]=dn([B,A],[F,z],{props:ze}),Oe=D("tooltip",o),je=D();let nt=ue;(!("open"in e)&&ve||ae)&&(nt=!1);const Ye=c.isValidElement(u)&&!Yw(u)?u:c.createElement("span",null,u),De=Ye.props,qe=!De.className||typeof De.className=="string"?U(De.className,r||`${Oe}-open`):De.className,Je=hr(Oe),[Ue,Pe]=uN(Oe,Je,!J),_e=dN(je,Oe,l),We=_e.arrowStyle,Be=U(Je,Ue,Pe),he=U(I,{[`${Oe}-rtl`]:X==="rtl"},_e.className,T,Be,Z,we.root),[Te,Le]=mc("Tooltip",H.zIndex),Ge={...Ie.container,...j,..._e.overlayStyle},ot=c.createElement(KB,{unique:!0,...H,zIndex:Te,showArrow:te,placement:N,mouseEnterDelay:$,mouseLeaveDelay:w,prefixCls:Oe,classNames:{root:he,container:we.container,arrow:we.arrow,uniqueContainer:U(Be,we.container)},styles:{root:{...We,...Ie.root,...Q,...L},container:Ge,uniqueContainer:Ge,arrow:Ie.arrow},ref:me,overlay:ge,visible:nt,onVisibleChange:Ee,afterVisibleChange:f,arrowContent:c.createElement("span",{className:`${Oe}-arrow-content`}),motion:{motionName:Fr(je,"zoom-big-fast",typeof R?.motionName=="string"?R?.motionName:void 0),motionDeadline:1e3},trigger:Y,builtinPlacements:Ce,getTooltipContainer:ie,destroyOnHidden:se},nt?Ao(Ye,{className:qe}):Ye);return c.createElement(bf.Provider,{value:Le},ot)}),Ur=uj;Ur._InternalPanelDoNotUseOrYouWillBeFired=cj;Ur.UniqueProvider=Kw;const d$=e=>{const{prefixCls:t,value:o,current:r,offset:i=0}=e;let l;return i&&(l={position:"absolute",top:`${i}00%`,left:0}),c.createElement("span",{style:l,className:U(`${t}-only-unit`,{current:r})},o)};function dj(e,t,o){let r=e,i=0;for(;(r+10)%10!==t;)r+=o,i+=o;return i}const fj=e=>{const{prefixCls:t,count:o,value:r}=e,i=Number(r),l=Math.abs(o),[u,f]=c.useState(i),[p,m]=c.useState(l),h=()=>{f(i),m(l)};c.useEffect(()=>{const x=setTimeout(h,1e3);return()=>clearTimeout(x)},[i]);let b,v;if(u===i||Number.isNaN(i)||Number.isNaN(u))b=[c.createElement(d$,{...e,key:i,current:!0})],v={transition:"none"};else{b=[];const x=i+10,C=[];for(let N=i;N<=x;N+=1)C.push(N);const S=p<l?1:-1,R=C.findIndex(N=>N%10===u);b=(S<0?C.slice(0,R+1):C.slice(R)).map((N,$)=>{const w=N%10;return c.createElement(d$,{...e,key:N,value:w,offset:S<0?$-R:$,current:$===R})}),v={transform:`translateY(${-dj(u,i,S)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:v,onTransitionEnd:h},b)},mj=c.forwardRef((e,t)=>{const{prefixCls:o,count:r,className:i,motionClassName:l,style:u,title:f,show:p,component:m="sup",children:h,...b}=e,{getPrefixCls:v}=c.useContext(xt),x=v("scroll-number",o),C={...b,"data-show":p,style:u,className:U(x,i,l),title:f};let S=r;if(r&&Number(r)%1===0){const R=String(r).split("");S=c.createElement("bdi",null,R.map((E,N)=>c.createElement(fj,{prefixCls:x,count:Number(r),value:E,key:R.length-N})))}return u?.borderColor&&(C.style={...u,boxShadow:`0 0 0 1px ${u.borderColor} inset`}),h?Ao(h,R=>({className:U(`${x}-custom-component`,R?.className,l)})):c.createElement(m,{...C,ref:t},S)}),pj=new St("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),gj=new St("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),hj=new St("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),bj=new St("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),vj=new St("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),yj=new St("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),xj=e=>{const{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:i,textFontSize:l,textFontSizeSM:u,statusSize:f,dotSize:p,textFontWeight:m,indicatorHeight:h,indicatorHeightSM:b,marginXS:v,calc:x}=e,C=`${r}-scroll-number`,S=f0(e,(R,{darkColor:E})=>({[`&${t} ${t}-color-${R}`]:{background:E,[`&:not(${t}-count)`]:{color:E},"a:hover &":{background:E}}}));return{[t]:{...Dn(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:h,height:h,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:re(h),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:x(h).div(2).equal(),boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:b,height:b,fontSize:u,lineHeight:re(b),borderRadius:x(b).div(2).equal()},[`${t}-multiple-words`]:{paddingInline:e.paddingInline,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:p,minWidth:p,height:p,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:yj,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:f,height:f,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfoTextHover,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:pj,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:v,color:e.colorText,fontSize:e.fontSize}},...S,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:gj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:hj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:bj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:vj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[C]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${C}-only`]:{position:"relative",display:"inline-block",height:h,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:h,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},fN=e=>{const{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:i}=e,l=t,u=o,f=e.colorTextLightSolid,p=e.colorError,m=e.colorErrorHover;return Gt(e,{badgeFontHeight:l,badgeShadowSize:u,badgeTextColor:f,badgeColor:p,badgeColorHover:m,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},mN=e=>{const{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:i,paddingXS:l}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2,paddingInline:l}},Sj=Qt("Badge",e=>{const t=fN(e);return xj(t)},mN),Cj=c.forwardRef((e,t)=>{const{prefixCls:o,scrollNumberPrefixCls:r,children:i,status:l,text:u,color:f,count:p=null,overflowCount:m=99,dot:h=!1,size:b="medium",title:v,offset:x,style:C,className:S,rootClassName:R,classNames:E,styles:N,showZero:$=!1,...w}=e,{getPrefixCls:T,direction:z,className:A,style:P,classNames:j,styles:L}=Kt("badge"),I=T("badge",o),[H,W]=Sj(I),J={...e,overflowCount:m,size:b,dot:h,showZero:$},[q,D]=dn([j,E],[L,N],{props:J}),X=p>m?`${m}+`:p,V=X==="0"||X===0||u==="0"||u===0,Z=p===null||V&&!$,Q=(Kn(l)||Kn(f))&&Z,B=Kn(l)||!V,F=h&&!V,k=F?"":X,G=c.useMemo(()=>(!pr(k)&&!pr(u)||V&&!$)&&!F,[k,V,$,F,u]),K=c.useRef(p);G||(K.current=p);const te=K.current,Y=c.useRef(k);G||(Y.current=k);const ie=Y.current,se=c.useRef(F);G||(se.current=F);const ae=c.useMemo(()=>{if(!x)return{...P,...C};const ze=Number.parseInt(x[0],10);return{...{marginTop:x[1],insetInlineEnd:-ze},...P,...C}},[x,C,P]),me=Ra(te)||Go(te)?te:void 0,ne=v===null||v===!1?void 0:v??me,ue=!G&&(u===0?$:!!u&&u!==!0),ye=ue?c.createElement("span",{className:`${I}-status-text`},u):null,ve=Wt(te)?Ao(te,ze=>({style:{...ae,...ze.style}})):void 0,Ee=j0(f,!1),Ce=U(q.indicator,{[`${I}-status-dot`]:Q,[`${I}-status-${l}`]:!!l,[`${I}-color-${f}`]:Ee}),be={};f&&!Ee&&(be.color=f,be.background=f);const ge=U(I,{[`${I}-status`]:Q,[`${I}-not-a-wrapper`]:!i,[`${I}-rtl`]:z==="rtl"},S,R,A,q.root,H,W);if(!i&&Q&&(u||B||!Z)){const ze=ae.color;return c.createElement("span",{ref:t,...w,className:ge,style:{...D.root,...ae}},c.createElement("span",{className:Ce,style:{...D.indicator,...be}}),ue&&c.createElement("span",{style:{color:ze},className:`${I}-status-text`},u))}return c.createElement("span",{ref:t,...w,className:ge,style:D.root},i,c.createElement(no,{visible:!G,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:ze})=>{const we=T("scroll-number",r),Ie=se.current,Oe=U(q.indicator,{[`${I}-dot`]:Ie,[`${I}-count`]:!Ie,[`${I}-count-sm`]:b==="small",[`${I}-multiple-words`]:!Ie&&ie&&ie.toString().length>1,[`${I}-status-${l}`]:!!l,[`${I}-color-${f}`]:Ee});let je={...D.indicator,...ae};return f&&!Ee&&(je=je||{},je.background=f),c.createElement(mj,{prefixCls:we,show:!G,motionClassName:ze,className:Oe,count:ie,title:ne,style:je,key:"scrollNumber"},ve)}),ye)}),$j=e=>{const{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:i,calc:l}=e,u=`${t}-ribbon`,f=`${t}-ribbon-wrapper`,p=f0(e,(m,{darkColor:h})=>({[`&${u}-color-${m}`]:{background:h,color:h}}));return{[f]:{position:"relative"},[u]:{...Dn(e),position:"absolute",top:r,padding:`0 ${re(e.paddingXS)}`,color:e.colorPrimary,lineHeight:re(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${u}-content`]:{color:e.badgeTextColor},[`${u}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${re(l(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...p,[`&${u}-placement-end`]:{insetInlineEnd:l(i).mul(-1).equal(),borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:l(i).mul(-1).equal(),borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},Ej=Qt(["Badge","Ribbon"],e=>{const t=fN(e);return $j(t)},mN),wj=e=>{const{className:t,prefixCls:o,style:r,color:i,children:l,text:u,placement:f="end",rootClassName:p,styles:m,classNames:h}=e,{getPrefixCls:b,direction:v,className:x,style:C,classNames:S,styles:R}=Kt("ribbon"),E=b("ribbon",o),N=`${E}-wrapper`,[$,w]=Ej(E,N),T={...e,placement:f},[z,A]=dn([S,h],[R,m],{props:T}),P=j0(i,!1),j=U(E,`${E}-placement-${f}`,{[`${E}-rtl`]:v==="rtl",[`${E}-color-${i}`]:P},t,x,z.indicator),L={},I={};return i&&!P&&(L.background=i,I.color=i),c.createElement("div",{className:U(N,p,$,w,z.root),style:A.root},l,c.createElement("div",{className:U(j,$),style:{...L,...A.indicator,...C,...r}},c.createElement("span",{className:U(`${E}-content`,z.content),style:A.content},u),c.createElement("div",{className:`${E}-corner`,style:I})))},pN=Cj;pN.Ribbon=wj;var ed={},f$;function Nj(){if(f$)return ed;f$=1,Object.defineProperty(ed,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};return ed.default=e,ed}var Rj=Nj();const Mj=Xt(Rj);function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},cb.apply(this,arguments)}const Tj=(e,t)=>c.createElement(Zt,cb({},e,{ref:t,icon:Mj})),m$=c.forwardRef(Tj),{ESC:Oj,TAB:zj}=rt;function Aj({visible:e,triggerRef:t,onVisibleChange:o,autoFocus:r,overlayRef:i}){const l=c.useRef(!1),u=()=>{e&&(t.current?.focus?.(),o?.(!1))},f=()=>i.current?.focus?(i.current.focus(),l.current=!0,!0):!1,p=m=>{switch(m.keyCode){case Oj:u();break;case zj:{let h=!1;l.current||(h=f()),h?m.preventDefault():u();break}}};c.useEffect(()=>e?(window.addEventListener("keydown",p),r&&Lt(f,3),()=>{window.removeEventListener("keydown",p),l.current=!1}):()=>{l.current=!1},[e])}const Ij=c.forwardRef((e,t)=>{const{overlay:o,arrow:r,prefixCls:i}=e,l=c.useMemo(()=>{let f;return typeof o=="function"?f=o():f=o,f},[o]),u=oo(t,pi(l));return ce.createElement(ce.Fragment,null,r&&ce.createElement("div",{className:`${i}-arrow`}),ce.cloneElement(l,{ref:Es(l)?u:void 0}))}),as={adjustX:1,adjustY:1},is=[0,0],Pj={topLeft:{points:["bl","tl"],overflow:as,offset:[0,-4],targetOffset:is},top:{points:["bc","tc"],overflow:as,offset:[0,-4],targetOffset:is},topRight:{points:["br","tr"],overflow:as,offset:[0,-4],targetOffset:is},bottomLeft:{points:["tl","bl"],overflow:as,offset:[0,4],targetOffset:is},bottom:{points:["tc","bc"],overflow:as,offset:[0,4],targetOffset:is},bottomRight:{points:["tr","br"],overflow:as,offset:[0,4],targetOffset:is}};function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ub.apply(this,arguments)}const Bj=ce.forwardRef((e,t)=>{const{arrow:o=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:l,align:u,placement:f="bottomLeft",placements:p=Pj,getPopupContainer:m,showAction:h,hideAction:b,overlayClassName:v,overlayStyle:x,visible:C,trigger:S=["hover"],autoFocus:R,overlay:E,children:N,onVisibleChange:$,disabled:w,...T}=e,[z,A]=ce.useState(),P="visible"in e?C:z,j=l?`${r}-${l}`:i,L=ce.useRef(null),I=ce.useRef(null),H=ce.useRef(null);ce.useImperativeHandle(t,()=>L.current);const W=G=>{A(G),$?.(G)};Aj({visible:P,triggerRef:H,onVisibleChange:W,autoFocus:R,overlayRef:I});const J=G=>{const{onOverlayClick:K}=e;A(!1),K&&K(G)},q=()=>ce.createElement(Ij,{ref:I,overlay:E,prefixCls:r,arrow:o}),D=()=>typeof E=="function"?q:q(),X=()=>{const{minOverlayWidthMatchTrigger:G,alignPoint:K}=e;return"minOverlayWidthMatchTrigger"in e?G:!K},V=()=>{const{openClassName:G}=e;return G!==void 0?G:`${r}-open`},Z=N,Q=U(Z.props?.className,P&&V()),B={className:Q,ref:oo(H,pi(Z))},F=Es(Z)?ce.cloneElement(Z,B):ce.createElement("span",{className:Q,ref:H},ce.cloneElement(Z,{className:Q}));let k=b;return!k&&S.indexOf("contextMenu")!==-1&&(k=["click"]),ce.createElement(gf,ub({builtinPlacements:p},T,{prefixCls:r,ref:L,popupClassName:U(v,{[`${r}-show-arrow`]:o}),popupStyle:x,action:S,showAction:h,hideAction:k,popupPlacement:f,popupAlign:u,popupMotion:{motionName:j},popupVisible:P,stretch:X()?"minWidth":"",popup:D(),onOpenChange:W,onPopupClick:J,getPopupContainer:m}),F)}),gN=c.createContext(null);function hN(e,t){return`${e}-${t}`}function bN(e){const t=c.useContext(gN);return hN(t,e)}const rr=c.createContext(null);function jj(e,t){const o={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(o[r]=i)}),o}function tc({children:e,locked:t,...o}){const r=c.useContext(rr),i=ic(()=>jj(r,o),[r,o],(l,u)=>!t&&(l[0]!==u[0]||!Xl(l[1],u[1],!0)));return c.createElement(rr.Provider,{value:i},e)}const _j=[],vN=c.createContext(null);function Ef(){return c.useContext(vN)}const yN=c.createContext(_j);function Os(e){const t=c.useContext(yN);return c.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const xN=c.createContext(null),_0=c.createContext({}),{LEFT:db,RIGHT:fb,UP:mb,DOWN:Bd,ENTER:jd,ESC:SN,HOME:Al,END:Il}=rt,p$=[mb,Bd,db,fb];function Hj(e,t,o,r){const i="prev",l="next",u="children",f="parent";if(e==="inline"&&r===jd)return{inlineTrigger:!0};const p={[mb]:i,[Bd]:l},m={[db]:o?l:i,[fb]:o?i:l,[Bd]:u,[jd]:u},h={[mb]:i,[Bd]:l,[jd]:u,[SN]:f,[db]:o?u:f,[fb]:o?f:u};switch({inline:p,horizontal:m,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h}[`${e}${t?"":"Sub"}`]?.[r]){case i:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function Dj(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Lj(e,t){let o=e||document.activeElement;for(;o;){if(t.has(o))return o;o=o.parentElement}return null}function H0(e,t){return n0(e,!0).filter(r=>t.has(r))}function g$(e,t,o,r=1){if(!e)return null;const i=H0(e,t),l=i.length;let u=i.findIndex(f=>o===f);return r<0?u===-1?u=l-1:u-=1:r>0&&(u+=1),u=(u+l)%l,i[u]}const Qd=(e,t)=>{const o=new Set,r=new Map,i=new Map;return e.forEach(l=>{const u=document.querySelector(`[data-menu-id='${hN(t,l)}']`);u&&(o.add(u),i.set(u,l),r.set(l,u))}),{elements:o,key2element:r,element2key:i}};function Vj(e,t,o,r,i,l,u,f,p,m){const h=c.useRef(),b=c.useRef();b.current=t;const v=()=>{Lt.cancel(h.current)};return c.useEffect(()=>()=>{v()},[]),x=>{const{which:C}=x;if([...p$,jd,SN,Al,Il].includes(C)){const S=l();let R=Qd(S,r);const{elements:E,key2element:N,element2key:$}=R,w=N.get(t),T=Lj(w,E),z=$.get(T),A=Hj(e,u(z,!0).length===1,o,C);if(!A&&C!==Al&&C!==Il)return;(p$.includes(C)||[Al,Il].includes(C))&&x.preventDefault();const P=j=>{if(j){let L=j;const I=j.querySelector("a");I?.getAttribute("href")&&(L=I);const H=$.get(j);f(H),v(),h.current=Lt(()=>{b.current===H&&L.focus()})}};if([Al,Il].includes(C)||A.sibling||!T){let j;!T||e==="inline"?j=i.current:j=Dj(T);let L;const I=H0(j,E);C===Al?L=I[0]:C===Il?L=I[I.length-1]:L=g$(j,E,T,A.offset),P(L)}else if(A.inlineTrigger)p(z);else if(A.offset>0)p(z,!0),v(),h.current=Lt(()=>{R=Qd(S,r);const j=T.getAttribute("aria-controls"),L=document.getElementById(j),I=g$(L,R.elements);P(I)},5);else if(A.offset<0){const j=u(z,!0),L=j[j.length-2],I=N.get(L);p(L,!1),P(I)}}m?.(x)}}function Fj(e){Promise.resolve().then(e)}const D0="__RC_UTIL_PATH_SPLIT__",h$=e=>e.join(D0),qj=e=>e.split(D0),pb="rc-menu-more";function Uj(){const[,e]=c.useState({}),t=c.useRef(new Map),o=c.useRef(new Map),[r,i]=c.useState([]),l=c.useRef(0),u=c.useRef(!1),f=()=>{u.current||e({})},p=c.useCallback((S,R)=>{const E=h$(R);o.current.set(E,S),t.current.set(S,E),l.current+=1;const N=l.current;Fj(()=>{N===l.current&&f()})},[]),m=c.useCallback((S,R)=>{const E=h$(R);o.current.delete(E),t.current.delete(S)},[]),h=c.useCallback(S=>{i(S)},[]),b=c.useCallback((S,R)=>{const E=t.current.get(S)||"",N=qj(E);return R&&r.includes(N[0])&&N.unshift(pb),N},[r]),v=c.useCallback((S,R)=>S.filter(E=>E!==void 0).some(E=>b(E,!0).includes(R)),[b]),x=()=>{const S=[...t.current.keys()];return r.length&&S.push(pb),S},C=c.useCallback(S=>{const R=`${t.current.get(S)}${D0}`,E=new Set;return[...o.current.keys()].forEach(N=>{N.startsWith(R)&&E.add(o.current.get(N))}),E},[]);return c.useEffect(()=>()=>{u.current=!0},[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:h,isSubPathKey:v,getKeyPath:b,getKeys:x,getSubPathKeys:C}}function Hl(e){const t=c.useRef(e);t.current=e;const o=c.useCallback((...r)=>t.current?.(...r),[]);return e?o:void 0}function CN(e,t,o,r){const{activeKey:i,onActive:l,onInactive:u}=c.useContext(rr),f={active:i===e};return t||(f.onMouseEnter=p=>{o?.({key:e,domEvent:p}),l(e)},f.onMouseLeave=p=>{r?.({key:e,domEvent:p}),u(e)}),f}function $N(e){const{mode:t,rtl:o,inlineIndent:r}=c.useContext(rr);if(t!=="inline")return null;const i=e;return o?{paddingRight:i*r}:{paddingLeft:i*r}}function EN({icon:e,props:t,children:o}){let r;return e===null||e===!1?null:(typeof e=="function"?r=c.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||o||null)}function Zd({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Yn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},nc.apply(this,arguments)}class Wj extends c.Component{render(){const{title:t,attribute:o,elementRef:r,...i}=this.props,l=xn(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Yn(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Dr.Item,nc({},o,{title:typeof t=="string"?t:void 0},l,{ref:r}))}}const Gj=c.forwardRef((e,t)=>{const{style:o,className:r,eventKey:i,warnKey:l,disabled:u,itemIcon:f,children:p,itemData:m,role:h,onMouseEnter:b,onMouseLeave:v,onClick:x,onKeyDown:C,onFocus:S,...R}=e,E=bN(i),{prefixCls:N,onItemClick:$,disabled:w,overflowDisabled:T,itemIcon:z,selectedKeys:A,onActive:P}=c.useContext(rr),{_internalRenderMenuItem:j}=c.useContext(_0),L=`${N}-item`,I=c.useRef(),H=c.useRef(),W=w||u,J=Gr(t,H),q=Os(i),D=Y=>{const ie=m||{key:i||"",label:p,itemIcon:f,extra:e.extra,title:e.title};return{key:i,keyPath:[...q].reverse(),item:I.current,domEvent:Y,itemData:m||ie}},X=f||z,{active:V,...Z}=CN(i,W,b,v),Q=A.includes(i),B=$N(q.length),F=Y=>{if(W)return;const ie=D(Y);x?.(Zd(ie)),$(ie)},k=Y=>{if(C?.(Y),Y.which===rt.ENTER){const ie=D(Y);x?.(Zd(ie)),$(ie)}},G=Y=>{P(i),S?.(Y)},K={};e.role==="option"&&(K["aria-selected"]=Q);let te=c.createElement(Wj,nc({ref:I,elementRef:J,role:h===null?"none":h||"menuitem",tabIndex:u?null:-1,"data-menu-id":T&&E?null:E},xn(R,["extra"]),Z,K,{component:"li","aria-disabled":u,style:{...B,...o},className:U(L,{[`${L}-active`]:V,[`${L}-selected`]:Q,[`${L}-disabled`]:W},r),onClick:F,onKeyDown:k,onFocus:G}),p,c.createElement(EN,{props:{...e,isSelected:Q},icon:X}));return j&&(te=j(te,e,{selected:Q})),te});function Xj(e,t){const{eventKey:o}=e,r=Ef(),i=Os(o);return c.useEffect(()=>{if(r)return r.registerPath(o,i),()=>{r.unregisterPath(o,i)}},[i]),r?null:c.createElement(Gj,nc({},e,{ref:t}))}const vc=c.forwardRef(Xj);function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},gb.apply(this,arguments)}const kj=({className:e,children:t,...o},r)=>{const{prefixCls:i,mode:l,rtl:u}=c.useContext(rr);return c.createElement("ul",gb({className:U(i,u&&`${i}-rtl`,`${i}-sub`,`${i}-${l==="inline"?"inline":"vertical"}`,e),role:"menu"},o,{"data-menu-list":!0,ref:r}),t)},wN=c.forwardRef(kj);function L0(e,t){return zo(e).map((o,r)=>{if(c.isValidElement(o)){const{key:i}=o;let l=o.props?.eventKey??i;l==null&&(l=`tmp_key-${[...t,r].join("-")}`);const f={key:l,eventKey:l};return c.cloneElement(o,f)}return o})}const kn={adjustX:1,adjustY:1},Yj={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},leftTop:{points:["tr","tl"],overflow:kn},leftBottom:{points:["br","bl"],overflow:kn},rightTop:{points:["tl","tr"],overflow:kn},rightBottom:{points:["bl","br"],overflow:kn}},Kj={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},rightTop:{points:["tr","tl"],overflow:kn},rightBottom:{points:["br","bl"],overflow:kn},leftTop:{points:["tl","tr"],overflow:kn},leftBottom:{points:["bl","br"],overflow:kn}};function NN(e,t,o){if(t)return t;if(o)return o[e]||o.other}const Qj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Zj({prefixCls:e,visible:t,children:o,popup:r,popupStyle:i,popupClassName:l,popupOffset:u,disabled:f,mode:p,onVisibleChange:m}){const{getPopupContainer:h,rtl:b,subMenuOpenDelay:v,subMenuCloseDelay:x,builtinPlacements:C,triggerSubMenuAction:S,forceSubMenuRender:R,rootClassName:E,motion:N,defaultMotions:$}=c.useContext(rr),[w,T]=c.useState(!1),z=b?{...Kj,...C}:{...Yj,...C},A=Qj[p],P=NN(p,N,$),j=c.useRef(P);p!=="inline"&&(j.current=P);const L={...j.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},I=c.useRef();return c.useEffect(()=>(I.current=Lt(()=>{T(t)}),()=>{Lt.cancel(I.current)}),[t]),c.createElement(gf,{prefixCls:e,popupClassName:U(`${e}-popup`,{[`${e}-rtl`]:b},l,E),stretch:p==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:z,popupPlacement:A,popupVisible:w,popup:r,popupStyle:i,popupAlign:u&&{offset:u},action:f?[]:[S],mouseEnterDelay:v,mouseLeaveDelay:x,onPopupVisibleChange:m,forceRender:R,popupMotion:L,fresh:!0},o)}function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},hb.apply(this,arguments)}function Jj({id:e,open:t,keyPath:o,children:r}){const i="inline",{prefixCls:l,forceSubMenuRender:u,motion:f,defaultMotions:p,mode:m}=c.useContext(rr),h=c.useRef(!1);h.current=m===i;const[b,v]=c.useState(!h.current),x=h.current?t:!1;c.useEffect(()=>{h.current&&v(!1)},[m]);const C={...NN(i,f,p)};o.length>1&&(C.motionAppear=!1);const S=C.onVisibleChanged;return C.onVisibleChanged=R=>(!h.current&&!R&&v(!0),S?.(R)),b?null:c.createElement(tc,{mode:i,locked:!h.current},c.createElement(no,hb({visible:x},C,{forceRender:u,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),({className:R,style:E})=>c.createElement(wN,{id:e,className:R,style:E},r)))}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},oc.apply(this,arguments)}const e_=c.forwardRef((e,t)=>{const{style:o,className:r,styles:i,classNames:l,title:u,eventKey:f,warnKey:p,disabled:m,internalPopupClose:h,children:b,itemIcon:v,expandIcon:x,popupClassName:C,popupOffset:S,popupStyle:R,onClick:E,onMouseEnter:N,onMouseLeave:$,onTitleClick:w,onTitleMouseEnter:T,onTitleMouseLeave:z,popupRender:A,...P}=e,j=bN(f),{prefixCls:L,mode:I,openKeys:H,disabled:W,overflowDisabled:J,activeKey:q,selectedKeys:D,itemIcon:X,expandIcon:V,onItemClick:Z,onOpenChange:Q,onActive:B,popupRender:F}=c.useContext(rr),{_internalRenderSubMenuItem:k}=c.useContext(_0),{isSubPathKey:G}=c.useContext(xN),K=Os(),te=`${L}-submenu`,Y=W||m,ie=c.useRef(),se=c.useRef(),ae=v??X,me=x??V,ne=H.includes(f),ue=!J&&ne,ye=G(D,f),{active:ve,...Ee}=CN(f,Y,T,z),[Ce,be]=c.useState(!1),ge=he=>{Y||be(he)},ze=he=>{ge(!0),N?.({key:f,domEvent:he})},we=he=>{ge(!1),$?.({key:f,domEvent:he})},Ie=c.useMemo(()=>ve||(I!=="inline"?Ce||G([q],f):!1),[I,ve,q,Ce,f,G]),Oe=$N(K.length),je=he=>{Y||(w?.({key:f,domEvent:he}),I==="inline"&&Q(f,!ne))},nt=Hl(he=>{E?.(Zd(he)),Z(he)}),Ye=he=>{I!=="inline"&&Q(f,he)},De=()=>{B(f)},qe=j&&`${j}-popup`,Je=c.useMemo(()=>c.createElement(EN,{icon:I!=="horizontal"?me:void 0,props:{...e,isOpen:ue,isSubMenu:!0}},c.createElement("i",{className:`${te}-arrow`})),[I,me,e,ue,te]);let Ue=c.createElement("div",oc({role:"menuitem",style:Oe,className:`${te}-title`,tabIndex:Y?null:-1,ref:ie,title:typeof u=="string"?u:null,"data-menu-id":J&&j?null:j,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":qe,"aria-disabled":Y,onClick:je,onFocus:De},Ee),u,Je);const Pe=c.useRef(I);I!=="inline"&&K.length>1?Pe.current="vertical":Pe.current=I;const _e=Pe.current,We=c.useMemo(()=>{const he=c.createElement(tc,{classNames:l,styles:i,mode:_e==="horizontal"?"vertical":_e},c.createElement(wN,{id:qe,ref:se},b)),Te=A||F;return Te?Te(he,{item:e,keys:K}):he},[A,F,K,qe,b,e,_e]);if(!J){const he=Pe.current;Ue=c.createElement(Zj,{mode:he,prefixCls:te,visible:!h&&ue&&I!=="inline",popupClassName:C,popupOffset:S,popupStyle:R,popup:We,disabled:Y,onVisibleChange:Ye},Ue)}let Be=c.createElement(Dr.Item,oc({ref:t,role:"none"},P,{component:"li",style:o,className:U(te,`${te}-${I}`,r,{[`${te}-open`]:ue,[`${te}-active`]:Ie,[`${te}-selected`]:ye,[`${te}-disabled`]:Y}),onMouseEnter:ze,onMouseLeave:we}),Ue,!J&&c.createElement(Jj,{id:qe,open:ue,keyPath:K},b));return k&&(Be=k(Be,e,{selected:ye,active:Ie,open:ue,disabled:Y})),c.createElement(tc,{classNames:l,styles:i,onItemClick:nt,mode:I==="horizontal"?"vertical":I,itemIcon:ae,expandIcon:me},Be)}),wf=c.forwardRef((e,t)=>{const{eventKey:o,children:r}=e,i=Os(o),l=L0(r,i),u=Ef();c.useEffect(()=>{if(u)return u.registerPath(o,i),()=>{u.unregisterPath(o,i)}},[i]);let f;return u?f=l:f=c.createElement(e_,oc({ref:t},e),l),c.createElement(yN.Provider,{value:i},f)});function V0({className:e,style:t}){const{prefixCls:o}=c.useContext(rr);return Ef()?null:c.createElement("li",{role:"separator",className:U(`${o}-item-divider`,e),style:t})}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Jd.apply(this,arguments)}const t_=c.forwardRef((e,t)=>{const{className:o,title:r,eventKey:i,children:l,...u}=e,{prefixCls:f,classNames:p,styles:m}=c.useContext(rr),h=`${f}-item-group`;return c.createElement("li",Jd({ref:t,role:"presentation"},u,{onClick:b=>b.stopPropagation(),className:U(h,o)}),c.createElement("div",{role:"presentation",className:U(`${h}-title`,p?.listTitle),style:m?.listTitle,title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:U(`${h}-list`,p?.list),style:m?.list},l))}),F0=c.forwardRef((e,t)=>{const{eventKey:o,children:r}=e,i=Os(o),l=L0(r,i);return Ef()?l:c.createElement(t_,Jd({ref:t},xn(e,["warnKey"])),l)});function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},cs.apply(this,arguments)}function bb(e,t,o){const{item:r,group:i,submenu:l,divider:u}=t;return(e||[]).map((f,p)=>{if(f&&typeof f=="object"){const{label:m,children:h,key:b,type:v,extra:x,...C}=f,S=b??`tmp-${p}`;if(h||v==="group")return v==="group"?c.createElement(i,cs({key:S},C,{title:m}),bb(h,t,o)):c.createElement(l,cs({key:S},C,{title:m}),bb(h,t,o));if(v==="divider")return c.createElement(u,cs({key:S},C));const R=!!x||x===0;return c.createElement(r,cs({key:S},C,{extra:x,itemData:{...f,key:S}}),R?c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}-item-label`},m),c.createElement("span",{className:`${o}-item-extra`},x)):m)}return null}).filter(f=>f)}function b$(e,t,o,r,i){let l=e;const u={divider:V0,item:vc,group:F0,submenu:wf,...r};return t&&(l=bb(t,u,i)),L0(l,o)}function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},vb.apply(this,arguments)}const Za=[],n_=c.forwardRef((e,t)=>{const{prefixCls:o="rc-menu",rootClassName:r,style:i,className:l,styles:u,classNames:f,tabIndex:p=0,items:m,children:h,direction:b,id:v,mode:x="vertical",inlineCollapsed:C,disabled:S,disabledOverflow:R,subMenuOpenDelay:E=.1,subMenuCloseDelay:N=.1,forceSubMenuRender:$,defaultOpenKeys:w,openKeys:T,activeKey:z,defaultActiveFirst:A,selectable:P=!0,multiple:j=!1,defaultSelectedKeys:L,selectedKeys:I,onSelect:H,onDeselect:W,inlineIndent:J=24,motion:q,defaultMotions:D,triggerSubMenuAction:X="hover",builtinPlacements:V,itemIcon:Z,expandIcon:Q,overflowedIndicator:B="...",overflowedIndicatorPopupClassName:F,getPopupContainer:k,onClick:G,onOpenChange:K,onKeyDown:te,openAnimation:Y,openTransitionName:ie,_internalRenderMenuItem:se,_internalRenderSubMenuItem:ae,_internalComponents:me,popupRender:ne,...ue}=e,[ye,ve]=c.useMemo(()=>[b$(h,m,Za,me,o),b$(h,m,Za,{},o)],[h,m,me]),[Ee,Ce]=c.useState(!1),be=c.useRef(),ge=Wr(v?`rc-menu-uuid-${v}`:"rc-menu-uuid"),ze=b==="rtl",[we,Ie]=To(w,T),Oe=we||Za,je=(st,ht=!1)=>{function $t(){Ie(st),K?.(st)}ht?di.flushSync($t):$t()},[nt,Ye]=c.useState(Oe),De=c.useRef(!1),[qe,Je]=c.useMemo(()=>(x==="inline"||x==="vertical")&&C?["vertical",C]:[x,!1],[x,C]),Ue=qe==="inline",[Pe,_e]=c.useState(qe),[We,Be]=c.useState(Je);c.useEffect(()=>{_e(qe),Be(Je),De.current&&(Ue?Ie(nt):je(Za))},[qe,Je]);const[he,Te]=c.useState(0),Le=he>=ye.length-1||Pe!=="horizontal"||R;c.useEffect(()=>{Ue&&Ye(Oe)},[Oe]),c.useEffect(()=>(De.current=!0,()=>{De.current=!1}),[]);const{registerPath:Ge,unregisterPath:ot,refreshOverflowKeys:Qe,isSubPathKey:ut,getKeyPath:Ct,getKeys:mt,getSubPathKeys:Nt}=Uj(),vt=c.useMemo(()=>({registerPath:Ge,unregisterPath:ot}),[Ge,ot]),Pt=c.useMemo(()=>({isSubPathKey:ut}),[ut]);c.useEffect(()=>{Qe(Le?Za:ye.slice(he+1).map(st=>st.key))},[he,Le]);const[et,Bt]=To(z||A&&ye[0]?.key,z),Ve=Hl(st=>{Bt(st)}),Re=Hl(()=>{Bt(void 0)});c.useImperativeHandle(t,()=>({list:be.current,focus:st=>{const ht=mt(),{elements:$t,key2element:Xe,element2key:it}=Qd(ht,ge),_t=H0(be.current,$t);let en;et&&ht.includes(et)?en=et:en=_t[0]?it.get(_t[0]):ye.find(Ft=>!Ft.props.disabled)?.key;const Et=Xe.get(en);en&&Et&&Et?.focus?.(st)},findItem:({key:st})=>{const ht=mt(),{key2element:$t}=Qd(ht,ge);return $t.get(st)||null}}));const[Ae,Se]=To(L||[],I),He=c.useMemo(()=>Array.isArray(Ae)?Ae:Ae==null?Za:[Ae],[Ae]),Fe=st=>{if(P){const{key:ht}=st,$t=He.includes(ht);let Xe;j?$t?Xe=He.filter(_t=>_t!==ht):Xe=[...He,ht]:Xe=[ht],Se(Xe);const it={...st,selectedKeys:Xe};$t?W?.(it):H?.(it)}!j&&Oe.length&&Pe!=="inline"&&je(Za)},Ke=Hl(st=>{G?.(Zd(st)),Fe(st)}),ct=Hl((st,ht)=>{let $t=Oe.filter(Xe=>Xe!==st);if(ht)$t.push(st);else if(Pe!=="inline"){const Xe=Nt(st);$t=$t.filter(it=>!Xe.has(it))}Xl(Oe,$t,!0)||je($t,!0)}),Rt=Vj(Pe,et,ze,ge,be,mt,Ct,Bt,(st,ht)=>{const $t=ht??!Oe.includes(st);ct(st,$t)},te);c.useEffect(()=>{Ce(!0)},[]);const dt=c.useMemo(()=>({_internalRenderMenuItem:se,_internalRenderSubMenuItem:ae}),[se,ae]),Mt=Pe!=="horizontal"||R?ye:ye.map((st,ht)=>c.createElement(tc,{key:st.key,overflowDisabled:ht>he,classNames:f,styles:u},st)),on=c.createElement(Dr,vb({id:v,ref:be,prefixCls:`${o}-overflow`,component:"ul",itemComponent:vc,className:U(o,`${o}-root`,`${o}-${Pe}`,l,{[`${o}-inline-collapsed`]:We,[`${o}-rtl`]:ze},r),dir:b,style:i,role:"menu",tabIndex:p,data:Mt,renderRawItem:st=>st,renderRawRest:st=>{const ht=st.length,$t=ht?ye.slice(-ht):null;return c.createElement(wf,{eventKey:pb,title:B,disabled:Le,internalPopupClose:ht===0,popupClassName:F},$t)},maxCount:Pe!=="horizontal"||R?Dr.INVALIDATE:Dr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:st=>{Te(st)},onKeyDown:Rt},ue));return c.createElement(_0.Provider,{value:dt},c.createElement(gN.Provider,{value:ge},c.createElement(tc,{prefixCls:o,rootClassName:r,classNames:f,styles:u,mode:Pe,openKeys:Oe,rtl:ze,disabled:S,motion:Ee?q:null,defaultMotions:Ee?D:null,activeKey:et,onActive:Ve,onInactive:Re,selectedKeys:He,inlineIndent:J,subMenuOpenDelay:E,subMenuCloseDelay:N,forceSubMenuRender:$,builtinPlacements:V,triggerSubMenuAction:X,getPopupContainer:k,itemIcon:Z,expandIcon:Q,onItemClick:Ke,onOpenChange:ct,popupRender:ne},c.createElement(xN.Provider,{value:Pt},on),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(vN.Provider,{value:vt},ve)))))}),zs=n_;zs.Item=vc;zs.SubMenu=wf;zs.ItemGroup=F0;zs.Divider=V0;var td={},v$;function o_(){if(v$)return td;v$=1,Object.defineProperty(td,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};return td.default=e,td}var r_=o_();const a_=Xt(r_);function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},yb.apply(this,arguments)}const i_=(e,t)=>c.createElement(Zt,yb({},e,{ref:t,icon:a_})),s_=c.forwardRef(i_),RN=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),l_=e=>{const{antCls:t,componentCls:o,colorText:r,footerBg:i,headerHeight:l,headerPadding:u,headerColor:f,footerPadding:p,fontSize:m,bodyBg:h,headerBg:b}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:h,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:l,padding:u,color:f,lineHeight:re(l),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:p,color:r,fontSize:m,background:i},[`${o}-content`]:{flex:"auto",color:r,minHeight:0}}},MN=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:r,colorText:i,controlHeightSM:l,marginXXS:u,colorTextLightSolid:f,colorBgContainer:p}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${m}px`,headerColor:i,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+u*2,triggerBg:"#002140",triggerColor:f,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:p,lightTriggerBg:p,lightTriggerColor:i}},TN=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],ON=Qt("Layout",l_,MN,{deprecatedTokens:TN}),c_=e=>{const{componentCls:t,siderBg:o,motionDurationMid:r,motionDurationSlow:i,antCls:l,triggerHeight:u,triggerColor:f,triggerBg:p,headerHeight:m,zeroTriggerWidth:h,zeroTriggerHeight:b,borderRadiusLG:v,lightSiderBg:x,lightTriggerColor:C,lightTriggerBg:S,bodyBg:R}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:u},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:u,color:f,lineHeight:re(u),textAlign:"center",background:p,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:b,color:f,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${re(v)} ${re(v)} 0`,cursor:"pointer",transition:`background-color ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderRadius:`${re(v)} 0 0 ${re(v)}`}},"&-light":{background:x,[`${t}-trigger`]:{color:C,background:S},[`${t}-zero-width-trigger`]:{color:C,background:S,border:`${re(e.lineWidth)} ${e.lineType} ${R}`,borderInlineStart:0}}}}},u_=Qt(["Layout","Sider"],c_,MN,{deprecatedTokens:TN}),y$={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},d_=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Nf=c.createContext({}),f_=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),zN=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,trigger:i,children:l,defaultCollapsed:u=!1,theme:f="dark",style:p={},collapsible:m=!1,reverseArrow:h=!1,width:b=200,collapsedWidth:v=80,zeroWidthTriggerStyle:x,breakpoint:C,onCollapse:S,onBreakpoint:R,classNames:E,styles:N,...$}=e,{siderHook:w}=c.useContext(RN),[T,z]=c.useState("collapsed"in e?e.collapsed:u),[A,P]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&z(e.collapsed)},[e.collapsed]);const j=(ne,ue)=>{"collapsed"in e||z(ne),S?.(ne,ue)},L={...e,collapsed:T,defaultCollapsed:u,theme:f,style:p,collapsible:m,reverseArrow:h,width:b,collapsedWidth:v,zeroWidthTriggerStyle:x,breakpoint:C,onCollapse:S,onBreakpoint:R},[I,H]=dn([E],[N],{props:L}),{getPrefixCls:W,direction:J}=c.useContext(xt),q=W("layout-sider",o),[D,X]=u_(q),V=c.useRef(null);V.current=ne=>{P(ne.matches),R?.(ne.matches),T!==ne.matches&&j(ne.matches,"responsive")},c.useEffect(()=>{function ne(ye){return V.current?.(ye)}let ue;return typeof window?.matchMedia<"u"&&C&&C in y$&&(ue=window.matchMedia(`screen and (max-width: ${y$[C]})`),mn(ue?.addEventListener)&&ue.addEventListener("change",ne),ne(ue)),()=>{mn(ue?.removeEventListener)&&ue.removeEventListener("change",ne)}},[C]),c.useEffect(()=>{const ne=f_("ant-sider-");return w.addSider(ne),()=>w.removeSider(ne)},[]);const Z=()=>{j(!T,"clickTrigger")},Q=xn($,["collapsed"]),B=T?v:b,F=d_(B)?`${B}px`:String(B),k=Number.parseFloat(String(v||0))===0?c.createElement("span",{onClick:Z,className:U(`${q}-zero-width-trigger`,`${q}-zero-width-trigger-${h?"right":"left"}`),style:x},i||c.createElement(s_,null)):null,G=J==="rtl"==!h,Y={expanded:G?c.createElement(NC,null):c.createElement(m$,null),collapsed:G?c.createElement(m$,null):c.createElement(NC,null)}[T?"collapsed":"expanded"],ie=i!==null?k||c.createElement("div",{className:`${q}-trigger`,onClick:Z,style:{width:F}},i||Y):null,se={...p,flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F},ae=U(q,`${q}-${f}`,{[`${q}-collapsed`]:!!T,[`${q}-has-trigger`]:m&&i!==null&&!k,[`${q}-below`]:!!A,[`${q}-zero-width`]:Number.parseFloat(F)===0},r,I.root,D,X),me=c.useMemo(()=>({siderCollapsed:T}),[T]);return c.createElement(Nf.Provider,{value:me},c.createElement("aside",{className:ae,...Q,style:{...H.root,...se},ref:t},c.createElement("div",{className:U(`${q}-children`,I.body),style:H.body},l),m||A&&k?ie:null))});var nd={},x$;function m_(){if(x$)return nd;x$=1,Object.defineProperty(nd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};return nd.default=e,nd}var p_=m_();const g_=Xt(p_);function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},xb.apply(this,arguments)}const h_=(e,t)=>c.createElement(Zt,xb({},e,{ref:t,icon:g_})),q0=c.forwardRef(h_),ef=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),AN=e=>{const{prefixCls:t,className:o,dashed:r,...i}=e,{getPrefixCls:l}=c.useContext(xt),u=l("menu",t),f=U({[`${u}-item-divider-dashed`]:!!r},o);return c.createElement(V0,{className:f,...i})},IN=e=>{const{className:t,children:o,icon:r,title:i,danger:l,extra:u}=e,{prefixCls:f,firstLevel:p,direction:m,disableMenuItemTitleTooltip:h,tooltip:b,inlineCollapsed:v,styles:x,classNames:C}=c.useContext(ef),S=A=>{const P=o?.[0],j=c.createElement("span",{className:U(`${f}-title-content`,p?C?.itemContent:C?.subMenu?.itemContent,{[`${f}-title-content-with-extra`]:!!u||u===0}),style:p?x?.itemContent:x?.subMenu?.itemContent},o);return(!r||c.isValidElement(o)&&o.type==="span")&&o&&A&&p&&typeof P=="string"?c.createElement("div",{className:`${f}-inline-collapsed-noicon`},P.charAt(0)):j},{siderCollapsed:R}=c.useContext(Nf);let E=i;typeof i>"u"?E=p?o:"":i===!1&&(E="");const N=b===!1?void 0:b,$=N&&N.title!==void 0?N.title:E,w={...N??null,title:$};!R&&!v&&(w.title=null,w.open=!1);const T=zo(o).length;let z=c.createElement(vc,{...xn(e,["title","icon","danger"]),className:U(p?C?.item:C?.subMenu?.item,{[`${f}-item-danger`]:l,[`${f}-item-only-child`]:(r?T+1:T)===1},t),style:{...p?x?.item:x?.subMenu?.item,...e.style},title:typeof i=="string"?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},Ao(r,A=>({className:U(`${f}-item-icon`,p?C?.itemIcon:C?.subMenu?.itemIcon,A.className),style:{...p?x?.itemIcon:x?.subMenu?.itemIcon,...A.style}})),S(v));if(!h&&b!==!1){const A=N&&N.placement?N.placement:m==="rtl"?"left":"right",P=`${f}-inline-collapsed-tooltip`,j=I=>({...I,root:U(P,I?.root)}),L=mn(N?.classNames)?I=>{const H=N.classNames(I);return j(H)}:j(N?.classNames);z=c.createElement(Ur,{...w,placement:A,classNames:L},z)}return z},S$=c.createContext(null),b_=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:r,colorSplit:i,lineWidth:l,lineType:u,itemPaddingInline:f}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${re(l)} ${u} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:f},[`> ${t}-item:hover,
178
+ > ${t}-item-active,
179
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(p=>`${p} ${o}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},v_=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
180
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${re(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${re(t)})`}}}}),C$=e=>Ns(e),$$=(e,t)=>{const{componentCls:o,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:l,groupTitleColor:u,itemBg:f,subMenuItemBg:p,itemSelectedBg:m,activeBarHeight:h,activeBarWidth:b,activeBarBorderWidth:v,motionDurationSlow:x,motionEaseInOut:C,motionEaseOut:S,itemPaddingInline:R,motionDurationMid:E,itemHoverColor:N,lineType:$,colorSplit:w,itemDisabledColor:T,dangerItemColor:z,dangerItemHoverColor:A,dangerItemSelectedColor:P,dangerItemActiveBg:j,dangerItemSelectedBg:L,popupBg:I,itemHoverBg:H,itemActiveBg:W,menuSubMenuBg:J,horizontalItemSelectedColor:q,horizontalItemSelectedBg:D,horizontalItemBorderRadius:X,horizontalItemHoverBg:V}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:r,background:f,[`&${o}-root:focus-visible`]:{...C$(e)},[`${o}-item`]:{"&-group-title, &-extra":{color:u}},[`${o}-submenu-selected > ${o}-submenu-title`]:{color:l},[`${o}-item, ${o}-submenu-title`]:{color:r,[`&:not(${o}-item-disabled):focus-visible`]:{...C$(e)}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${T} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:N}},[`${o}-submenu:not(${o}-submenu-selected)`]:{[`> ${o}-submenu-title:hover`]:{color:N}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:W}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:W}}},[`${o}-item-danger`]:{color:z,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:A}},[`&${o}-item:active`]:{background:j}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:i,[`&${o}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:m,[`&${o}-item-danger`]:{backgroundColor:L}},[`&${o}-submenu > ${o}`]:{backgroundColor:J},[`&${o}-popup > ${o}`]:{backgroundColor:I},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:I},[`&${o}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${o}-item, > ${o}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:X,"&::after":{position:"absolute",insetInline:R,bottom:0,borderBottom:`${re(h)} solid transparent`,transition:`border-color ${x} ${C}`,content:'""'},"&:hover, &-active, &-open":{background:V,"&::after":{borderBottomWidth:h,borderBottomColor:q}},"&-selected":{color:q,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:h,borderBottomColor:q}}}},[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${re(v)} ${$} ${w}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:p},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${re(b)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(Z=>`${Z} ${E} ${S}`).join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(Z=>`${Z} ${E} ${C}`).join(",")}}}}}},E$=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:r,padding:i,menuArrowSize:l,marginXS:u,itemMarginBlock:f,itemWidth:p,itemPaddingInline:m}=e,h=e.calc(l).add(i).add(u).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:re(o),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:f,width:p},[`> ${t}-item,
181
+ > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:re(o)},[`${t}-item-group-list ${t}-submenu-title,
182
+ ${t}-submenu-title`]:{paddingInlineEnd:h}}},y_=e=>{const{componentCls:t,iconCls:o,itemHeight:r,colorTextLightSolid:i,dropdownWidth:l,controlHeightLG:u,motionEaseOut:f,padding:p,paddingXL:m,itemMarginInline:h,fontSizeLG:b,motionDurationFast:v,motionDurationSlow:x,paddingXS:C,boxShadowSecondary:S,collapsedWidth:R,collapsedIconSize:E}=e,N={height:r,lineHeight:re(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...E$(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...E$(e),boxShadow:S}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${re(e.calc(u).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${x}`,`background-color ${x}`,`padding ${v} ${f}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:N,[`& ${t}-item-group-title`]:{paddingInlineStart:m}},[`${t}-item`]:N}},{[`${t}-inline-collapsed`]:{width:R,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:b,textAlign:"center",width:"100%"}}},[`> ${t}-item,
183
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
184
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
185
+ > ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${re(e.calc(E).div(2).equal())} - ${re(h)})`,textOverflow:"clip",[`
186
+ ${t}-submenu-arrow,
187
+ ${t}-submenu-expand-icon
188
+ `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:E,lineHeight:re(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:p},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...or,paddingInline:C}}}]},w$=e=>{const{componentCls:t,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:l,iconCls:u,iconSize:f,iconMarginInlineEnd:p}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background-color ${o}`,`padding calc(${o} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${u}`]:{minWidth:f,fontSize:f,transition:[`font-size ${r} ${l}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:p,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:{...df()},[`&${t}-item-only-child`]:{[`> ${u}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},N$=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:r,borderRadius:i,menuArrowSize:l,menuArrowOffset:u}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(f=>`${f} ${o}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:["background-color","transform","top","color"].map(f=>`${f} ${o} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${re(e.calc(u).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${re(u)})`}}}}},x_=e=>{const{antCls:t,componentCls:o,fontSize:r,motionDurationSlow:i,motionDurationMid:l,motionEaseInOut:u,paddingXS:f,padding:p,colorSplit:m,lineWidth:h,zIndexPopup:b,borderRadiusLG:v,subMenuItemBorderRadius:x,menuArrowSize:C,menuArrowOffset:S,lineType:R,groupTitleLineHeight:E,groupTitleFontSize:N,iconSize:$,iconMarginInlineEnd:w}=e,T=[`> ${t}-typography-ellipsis-single-line`,`> ${o}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[o]:{...mi(),"&-hidden":{display:"none"}}},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:{...Dn(e),...mi(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${re(f)} ${re(p)}`,fontSize:N,lineHeight:E,transition:`all ${i}`},[`&-horizontal ${o}-submenu`]:{transition:["border-color","background-color"].map(z=>`${z} ${i} ${u}`).join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${l}`].map(z=>`${z} ${u}`).join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(z=>`${z} ${i} ${u}`).join(",")},[`${o}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${o}-item-label`]:{flex:"auto",minWidth:0,...or},[T]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${o}-item-icon + ${o}-title-content-with-extra`]:{width:`calc(100% - ${re(e.calc($).add(w??0).equal())})`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:R,borderWidth:0,borderTopWidth:h,marginBlock:h,padding:0,"&-dashed":{borderStyle:"dashed"}},...w$(e),[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${re(e.calc(r).mul(2).equal())} ${re(p)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:b,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:{borderRadius:v,...w$(e),...N$(e),[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:x},[`${o}-submenu-title::after`]:{transition:`transform ${i} ${u}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...N$(e),[`&-inline-collapsed ${o}-submenu-arrow,
189
+ &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${re(S)})`},"&::after":{transform:`rotate(45deg) translateX(${re(e.calc(S).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${re(e.calc(C).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${re(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${re(S)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},S_=e=>{const{colorPrimary:t,colorError:o,colorTextDisabled:r,colorErrorBg:i,colorText:l,colorTextDescription:u,colorBgContainer:f,colorFillAlter:p,colorFillContent:m,lineWidth:h,lineWidthBold:b,controlItemBgActive:v,colorBgTextHover:x,controlHeightLG:C,lineHeight:S,colorBgElevated:R,marginXXS:E,padding:N,fontSize:$,controlHeightSM:w,fontSizeLG:T,colorTextLightSolid:z,colorErrorHover:A}=e,P=e.activeBarWidth??0,j=e.activeBarBorderWidth??h,L=e.itemMarginInline??e.marginXXS,I=new En(z).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:f,itemBg:f,colorItemBgHover:x,itemHoverBg:x,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:h,activeBarBorderWidth:j,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:S,collapsedWidth:C*2,popupBg:R,itemMarginBlock:E,itemPaddingInline:N,horizontalLineHeight:`${C*1.15}px`,iconSize:$,iconMarginInlineEnd:w-$,collapsedIconSize:T,groupTitleFontSize:$,darkItemDisabledColor:new En(z).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:z,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:z,darkDangerItemHoverColor:A,darkDangerItemSelectedColor:z,darkDangerItemActiveBg:o,itemWidth:P?`calc(100% + ${j}px)`:`calc(100% - ${L*2}px)`}},C_=(e,t=e,o=!0)=>Qt("Menu",i=>{const{colorBgElevated:l,controlHeightLG:u,fontSize:f,darkItemColor:p,darkDangerItemColor:m,darkItemBg:h,darkSubMenuItemBg:b,darkItemSelectedColor:v,darkItemSelectedBg:x,darkDangerItemSelectedBg:C,darkItemHoverBg:S,darkGroupTitleColor:R,darkItemHoverColor:E,darkItemDisabledColor:N,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:T,popupBg:z,darkPopupBg:A}=i,P=i.calc(f).div(7).mul(5).equal(),j=Gt(i,{menuArrowSize:P,menuHorizontalHeight:i.calc(u).mul(1.15).equal(),menuArrowOffset:i.calc(P).mul(.25).equal(),menuSubMenuBg:l,calc:i.calc,popupBg:z}),L=Gt(j,{itemColor:p,itemHoverColor:E,groupTitleColor:R,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:h,popupBg:A,subMenuItemBg:b,itemActiveBg:"transparent",itemSelectedBg:x,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:N,dangerItemColor:m,dangerItemHoverColor:$,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:C,menuSubMenuBg:b,horizontalItemSelectedColor:v,horizontalItemSelectedBg:x});return[x_(j),b_(j),y_(j),$$(j,"light"),$$(L,"dark"),v_(j),W5(j),Ss(j,"slide-up"),Ss(j,"slide-down"),N0(j,"zoom-big")]},S_,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:!0}})(e,t),PN=e=>{const{popupClassName:t,icon:o,title:r,theme:i}=e,l=c.useContext(ef),{prefixCls:u,inlineCollapsed:f,theme:p,classNames:m,styles:h}=l,b=Os();let v;if(!o)v=f&&!b.length&&r&&typeof r=="string"?c.createElement("div",{className:`${u}-inline-collapsed-noicon`},r.charAt(0)):c.createElement("span",{className:`${u}-title-content`},r);else{const S=c.isValidElement(r)&&r.type==="span";v=c.createElement(c.Fragment,null,Ao(o,R=>({className:U(R.className,`${u}-item-icon`,m?.itemIcon),style:{...R.style,...h?.itemIcon}})),S?r:c.createElement("span",{className:`${u}-title-content`},r))}const x=c.useMemo(()=>({...l,firstLevel:!1}),[l]),[C]=mc("Menu");return c.createElement(ef.Provider,{value:x},c.createElement(wf,{...xn(e,["icon"]),title:v,classNames:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},styles:{list:h?.subMenu?.list,listTitle:h?.subMenu?.itemTitle},popupClassName:U(u,t,m?.popup?.root,`${u}-${i||p}`),popupStyle:{zIndex:C,...e.popupStyle,...h?.popup?.root}}))};function Cg(e){return e===null||e===!1}const $_={item:IN,submenu:PN,divider:AN},E_=c.forwardRef((e,t)=>{const o=c.useContext(S$),r=o||{},{prefixCls:i,className:l,style:u,theme:f="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:m,tooltip:h,inlineCollapsed:b,siderCollapsed:v,rootClassName:x,mode:C,selectable:S,onClick:R,overflowedIndicatorPopupClassName:E,classNames:N,styles:$,...w}=e,{menu:T}=c.useContext(xt),{getPrefixCls:z,getPopupContainer:A,direction:P,className:j,style:L,classNames:I,styles:H}=Kt("menu"),W=z(),J=xn(w,["collapsedWidth"]);r.validator?.({mode:C});const q=ft((...ne)=>{R?.(...ne),r.onClick?.()}),D=r.mode||C,X=S??r.selectable,V=b??v,Z={...e,mode:D,inlineCollapsed:V,selectable:X,theme:f},Q=pn(L),B=pn(u),[F,k]=dn([I,N],[H,Q,$,B],{props:Z},{popup:{_default:"root"},subMenu:{_default:"item"}}),G={horizontal:{motionName:`${W}-slide-up`},inline:O5(W),other:{motionName:`${W}-zoom-big`}},K=z("menu",i||r.prefixCls),te=hr(K),[Y,ie]=C_(K,te,!o),se=U(`${K}-${f}`,j,l),ae=c.useMemo(()=>{if(mn(p)||Cg(p))return p||null;if(mn(r.expandIcon)||Cg(r.expandIcon))return r.expandIcon||null;if(mn(T?.expandIcon)||Cg(T?.expandIcon))return T?.expandIcon||null;const ne=p??r?.expandIcon??T?.expandIcon;return Ao(ne,{className:U(`${K}-submenu-expand-icon`,c.isValidElement(ne)?ne.props?.className:void 0)})},[p,r?.expandIcon,T?.expandIcon,K]),me=c.useMemo(()=>({prefixCls:K,inlineCollapsed:V||!1,direction:P,firstLevel:!0,theme:f,mode:D,disableMenuItemTitleTooltip:m,tooltip:h,classNames:F,styles:k}),[K,V,P,m,f,D,F,k,h]);return c.createElement(S$.Provider,{value:null},c.createElement(ef.Provider,{value:me},c.createElement(zs,{getPopupContainer:A,overflowedIndicator:c.createElement(q0,null),overflowedIndicatorPopupClassName:U(K,`${K}-${f}`,E),classNames:{list:F.list,listTitle:F.itemTitle},styles:{list:k.list,listTitle:k.itemTitle},mode:D,selectable:X,onClick:q,...J,inlineCollapsed:V,style:k.root,className:se,prefixCls:K,direction:P,defaultMotions:G,expandIcon:ae,ref:t,rootClassName:U(x,Y,r.rootClassName,ie,te,F.root),_internalComponents:$_})))}),yc=c.forwardRef((e,t)=>{const o=c.useRef(null),r=c.useContext(Nf);return c.useImperativeHandle(t,()=>({menu:o.current,focus:i=>{o.current?.focus(i)}})),c.createElement(E_,{ref:o,...e,...r})});yc.Item=IN;yc.SubMenu=PN;yc.Divider=AN;yc.ItemGroup=F0;function xc(e){return Gt(e,{inputAffixPadding:e.paddingXXS})}const Sc=e=>{const{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:i,controlHeightSM:l,controlHeightLG:u,fontSizeLG:f,lineHeightLG:p,paddingSM:m,controlPaddingHorizontalSM:h,controlPaddingHorizontal:b,colorFillAlter:v,colorPrimaryHover:x,colorPrimary:C,controlOutlineWidth:S,controlOutline:R,colorErrorOutline:E,colorWarningOutline:N,colorBgContainer:$,inputFontSize:w,inputFontSizeLG:T,inputFontSizeSM:z}=e,A=w||o,P=z||A,j=T||f,L=Math.round((t-A*r)/2*10)/10-i,I=Math.round((l-P*r)/2*10)/10-i,H=Math.ceil((u-j*p)/2*10)/10-i;return{paddingBlock:Math.max(L,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(H,0),paddingInline:m-i,paddingInlineSM:h-i,paddingInlineLG:b-i,addonBg:v,activeBorderColor:C,hoverBorderColor:x,activeShadow:`0 0 0 ${S}px ${R}`,errorActiveShadow:`0 0 0 ${S}px ${E}`,warningActiveShadow:`0 0 0 ${S}px ${N}`,hoverBg:$,activeBg:$,inputFontSize:A,inputFontSizeLG:j,inputFontSizeSM:P}},w_=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),U0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...w_(Gt(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),BN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),R$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...BN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),N_=(e,t)=>({"&-outlined":{...BN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...U0(e)},...R$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...R$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),M$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),R_=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...M$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...M$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...U0(e)}}}}),jN="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",_N=(e,t)=>({outline:`${re(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:re(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),T$=(e,t)=>({"&, & input, & textarea":{color:t.color},[jN]:_N(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),M_=(e,t)=>{const{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[jN]:_N(e,e.activeBorderColor),[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:T$(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${o}-status-warning`]:T$(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},HN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),O$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...HN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),T_=(e,t)=>({"&-filled":{...HN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...U0(e)},...O$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...O$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),z$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),O_=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...z$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...z$(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),DN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${re(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),A$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...DN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),z_=(e,t)=>({"&-underlined":{...DN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...A$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...A$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),A_=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),LN=e=>{const{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${re(t)} ${re(i)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},VN=e=>({padding:`${re(e.paddingBlockSM)} ${re(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),FN=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${re(e.paddingBlock)} ${re(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...A_(e.colorTextPlaceholder),"&-lg":{...LN(e),...t.largeStyle},"&-sm":{...VN(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),I_=e=>{const{componentCls:t,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...LN(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...VN(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${re(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${re(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${re(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${re(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${re(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...mi(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
190
+ & > ${t}-affix-wrapper,
191
+ & > ${t}-number-affix-wrapper,
192
+ & > ${o}-picker-range
193
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${o}-select,
194
+ & > ${o}-select-auto-complete ${t},
195
+ & > ${o}-cascader-picker ${t},
196
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
197
+ & > ${o}-select:first-child,
198
+ & > ${o}-select-auto-complete:first-child ${t},
199
+ & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
200
+ & > ${o}-select:last-child,
201
+ & > ${o}-cascader-picker:last-child ${t},
202
+ & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},P_=e=>{const{componentCls:t,controlHeightSM:o,lineWidth:r,calc:i}=e,u=i(o).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Dn(e),...FN(e),...N_(e),...T_(e),...M_(e),...z_(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:u,paddingBottom:u}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},B_=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Ns(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${re(e.inputAffixPadding)}`}}}},j_=e=>{const{componentCls:t,inputAffixPadding:o,colorTextDescription:r,motionDurationSlow:i,colorIcon:l,colorIconHover:u}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:{...FN(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o},"&-password-icon":{display:"inline-flex",color:l,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:u}}},...B_(e)},[`${t}-underlined`]:{borderRadius:0},[p]:{[`${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},__=e=>{const{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Dn(e),...I_(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...R_(e),...O_(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},H_=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},qN=Qt(["Input","Shared"],e=>{const t=Gt(e,xc(e));return[P_(t),j_(t)]},Sc,{resetFont:!1}),UN=Qt(["Input","Component"],e=>{const t=Gt(e,xc(e));return[__(t),H_(t),xf(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Sc,{resetFont:!1});var od={},I$;function D_(){if(I$)return od;I$=1,Object.defineProperty(od,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};return od.default=e,od}var L_=D_();const V_=Xt(L_);function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Sb.apply(this,arguments)}const F_=(e,t)=>c.createElement(Zt,Sb({},e,{ref:t,icon:V_})),q_=c.forwardRef(F_),W0=c.createContext(null),U_=e=>{const{activeTabOffset:t,horizontal:o,rtl:r,indicator:i={}}=e,{size:l,align:u="center"}=i,[f,p]=c.useState(),m=c.useRef(),h=ce.useCallback(v=>typeof l=="function"?l(v):typeof l=="number"?l:v,[l]);function b(){Lt.cancel(m.current)}return c.useEffect(()=>{const v={};if(t)if(o){v.width=h(t.width);const x=r?"right":"left";u==="start"&&(v[x]=t[x]),u==="center"&&(v[x]=t[x]+t.width/2,v.transform=r?"translateX(50%)":"translateX(-50%)"),u==="end"&&(v[x]=t[x]+t.width,v.transform="translateX(-100%)")}else v.height=h(t.height),u==="start"&&(v.top=t.top),u==="center"&&(v.top=t.top+t.height/2,v.transform="translateY(-50%)"),u==="end"&&(v.top=t.top+t.height,v.transform="translateY(-100%)");return b(),m.current=Lt(()=>{f&&v&&Object.keys(v).every(C=>{const S=v[C],R=f[C];return typeof S=="number"&&typeof R=="number"?Math.round(S)===Math.round(R):S===R})||p(v)}),b},[JSON.stringify(t),o,r,u,h]),{style:f}},P$={width:0,height:0,left:0,top:0};function W_(e,t,o){return c.useMemo(()=>{const r=new Map,i=t.get(e[0]?.key)||P$,l=i.left+i.width;for(let u=0;u<e.length;u+=1){const{key:f}=e[u];let p=t.get(f);p||(p=t.get(e[u-1]?.key)||P$);const m=r.get(f)||{...p};m.right=l-m.left-m.width,r.set(f,m)}return r},[e.map(r=>r.key).join("_"),t,o])}function B$(e,t){const o=c.useRef(e),[,r]=c.useState({});function i(l){const u=typeof l=="function"?l(o.current):l;u!==o.current&&t(u,o.current),o.current=u,r({})}return[o.current,i]}const G_=.1,j$=.01,_d=20,_$=.995**_d;function X_(e,t){const[o,r]=c.useState(),[i,l]=c.useState(0),[u,f]=c.useState(0),[p,m]=c.useState(),h=c.useRef();function b(E){const{screenX:N,screenY:$}=E.touches[0];r({x:N,y:$}),window.clearInterval(h.current)}function v(E){if(!o)return;const{screenX:N,screenY:$}=E.touches[0];r({x:N,y:$});const w=N-o.x,T=$-o.y;t(w,T);const z=Date.now();l(z),f(z-i),m({x:w,y:T})}function x(){if(o&&(r(null),m(null),p)){const E=p.x/u,N=p.y/u,$=Math.abs(E),w=Math.abs(N);if(Math.max($,w)<G_)return;let T=E,z=N;h.current=window.setInterval(()=>{if(Math.abs(T)<j$&&Math.abs(z)<j$){window.clearInterval(h.current);return}T*=_$,z*=_$,t(T*_d,z*_d)},_d)}}const C=c.useRef();function S(E){const{deltaX:N,deltaY:$}=E;let w=0;const T=Math.abs(N),z=Math.abs($);T===z?w=C.current==="x"?N:$:T>z?(w=N,C.current="x"):(w=$,C.current="y"),t(-w,-w)&&E.preventDefault()}const R=c.useRef(null);R.current={onTouchStart:b,onTouchMove:v,onTouchEnd:x,onWheel:S},c.useEffect(()=>{function E(T){R.current.onTouchStart(T)}function N(T){R.current.onTouchMove(T)}function $(T){R.current.onTouchEnd(T)}function w(T){R.current.onWheel(T)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",E,{passive:!0}),e.current.addEventListener("wheel",w,{passive:!1}),()=>{document.removeEventListener("touchmove",N),document.removeEventListener("touchend",$)}},[])}function WN(e){const[t,o]=c.useState(0),r=c.useRef(0),i=c.useRef();return i.current=e,LT(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,o(r.current))}}function k_(e){const t=c.useRef([]),[,o]=c.useState({}),r=c.useRef(typeof e=="function"?e():e),i=WN(()=>{let u=r.current;t.current.forEach(f=>{u=f(u)}),t.current=[],r.current=u,o({})});function l(u){t.current.push(u),i()}return[r.current,l]}const H$={width:0,height:0,left:0,top:0,right:0};function Y_(e,t,o,r,i,l,{tabs:u,tabPosition:f,rtl:p}){let m,h,b;return["top","bottom"].includes(f)?(m="width",h=p?"right":"left",b=Math.abs(o)):(m="height",h="top",b=-o),c.useMemo(()=>{if(!u.length)return[0,0];const v=u.length;let x=v;for(let S=0;S<v;S+=1){const R=e.get(u[S].key)||H$;if(Math.floor(R[h]+R[m])>Math.floor(b+t)){x=S-1;break}}let C=0;for(let S=v-1;S>=0;S-=1)if((e.get(u[S].key)||H$)[h]<b){C=S+1;break}return C>x?[0,-1]:[C,x]},[e,t,r,i,l,b,f,u.map(v=>v.key).join("_"),p])}function D$(e){let t;return e instanceof Map?(t={},e.forEach((o,r)=>{t[r]=o})):t=e,JSON.stringify(t)}const K_="TABS_DQ";function GN(e){return String(e).replace(/"/g,K_)}function G0(e,t,o,r){return!(!o||r||e===!1||e===void 0&&(t===!1||t===null))}const XN=c.forwardRef((e,t)=>{const{prefixCls:o,editable:r,locale:i,style:l}=e;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:`${o}-nav-add`,style:l,"aria-label":i?.addAriaLabel||"Add tab",onClick:u=>{r.onEdit("add",{event:u})}},r.addIcon||"+")}),L$=c.forwardRef((e,t)=>{const{position:o,prefixCls:r,extra:i}=e;if(!i)return null;let l,u={};return typeof i=="object"&&!c.isValidElement(i)?u=i:u.right=i,o==="right"&&(l=u.right),o==="left"&&(l=u.left),l?c.createElement("div",{className:`${r}-extra-content`,ref:t},l):null});function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Cb.apply(this,arguments)}const Q_=c.forwardRef((e,t)=>{const{prefixCls:o,id:r,tabs:i,locale:l,mobile:u,more:f={},style:p,className:m,editable:h,tabBarGutter:b,rtl:v,removeAriaLabel:x,onTabClick:C,getPopupContainer:S,popupClassName:R,popupStyle:E,classNames:N,styles:$}=e,[w,T]=c.useState(!1),[z,A]=c.useState(null),{icon:P="More"}=f,j=`${r}-more-popup`,L=`${o}-dropdown`,I=z!==null?`${j}-${z}`:null,H=l?.dropdownAriaLabel;function W(Q,B){Q.preventDefault(),Q.stopPropagation(),h.onEdit("remove",{key:B,event:Q})}const J=c.createElement(zs,{onClick:({key:Q,domEvent:B})=>{C(Q,B),T(!1)},prefixCls:`${L}-menu`,id:j,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[z],"aria-label":H!==void 0?H:"expanded dropdown"},i.map(Q=>{const{closable:B,disabled:F,closeIcon:k,key:G,label:K}=Q,te=G0(B,k,h,F);return c.createElement(vc,{key:G,id:`${j}-${G}`,role:"option","aria-controls":r&&`${r}-panel-${G}`,disabled:F},c.createElement("span",null,K),te&&c.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:U(`${L}-menu-item-remove`,N?.remove),style:$?.remove,onClick:Y=>{Y.stopPropagation(),W(Y,G)}},k||h.removeIcon||"×"))}));function q(Q){const B=i.filter(G=>!G.disabled);let F=B.findIndex(G=>G.key===z)||0;const k=B.length;for(let G=0;G<k;G+=1){F=(F+Q+k)%k;const K=B[F];if(!K.disabled){A(K.key);return}}}function D(Q){const{which:B}=Q;if(!w){[rt.DOWN,rt.SPACE,rt.ENTER].includes(B)&&(T(!0),Q.preventDefault());return}switch(B){case rt.UP:q(-1),Q.preventDefault();break;case rt.DOWN:q(1),Q.preventDefault();break;case rt.ESC:T(!1);break;case rt.SPACE:case rt.ENTER:z!==null&&C(z,Q);break}}c.useEffect(()=>{const Q=document.getElementById(I);Q?.scrollIntoView&&Q.scrollIntoView(!1)},[I,z]),c.useEffect(()=>{w||A(null)},[w]);const X={marginInlineStart:b};i.length||(X.visibility="hidden",X.order=1);const V=U(R,{[`${L}-rtl`]:v}),Z=u?null:c.createElement(Bj,Cb({prefixCls:L,overlay:J,visible:i.length?w:!1,onVisibleChange:T,overlayClassName:V,overlayStyle:E,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},f),c.createElement("button",{type:"button",className:`${o}-nav-more`,style:X,"aria-haspopup":"listbox","aria-controls":j,id:`${r}-more`,"aria-expanded":w,onKeyDown:D},P));return c.createElement("div",{className:U(`${o}-nav-operations`,m),style:p,ref:t},Z,c.createElement(XN,{prefixCls:o,locale:l,editable:h}))}),Z_=c.memo(Q_,(e,t)=>t.tabMoving),J_=e=>{const{prefixCls:t,id:o,active:r,focus:i,tab:{key:l,label:u,disabled:f,closeIcon:p,icon:m},closable:h,renderWrapper:b,removeAriaLabel:v,editable:x,onClick:C,onFocus:S,onBlur:R,onKeyDown:E,onMouseDown:N,onMouseUp:$,styles:w,classNames:T,tabCount:z,currentPosition:A}=e,P=`${t}-tab`,j=G0(h,p,x,f);function L(q){f||C(q)}function I(q){q.preventDefault(),q.stopPropagation(),x.onEdit("remove",{key:l,event:q})}const H=c.useMemo(()=>m&&typeof u=="string"?c.createElement("span",null,u):u,[u,m]),W=c.useRef(null);c.useEffect(()=>{i&&W.current&&W.current.focus()},[i]);const J=c.createElement("div",{key:l,"data-node-key":GN(l),className:U(P,T?.item,{[`${P}-with-remove`]:j,[`${P}-active`]:r,[`${P}-disabled`]:f,[`${P}-focus`]:i}),style:w?.item,onClick:L},c.createElement("div",{ref:W,role:"tab","aria-selected":r,id:o&&`${o}-tab-${l}`,className:`${P}-btn`,"aria-controls":o&&`${o}-panel-${l}`,"aria-disabled":f,tabIndex:f?null:r?0:-1,onClick:q=>{q.stopPropagation(),L(q)},onKeyDown:E,onMouseDown:N,onMouseUp:$,onFocus:S,onBlur:R},i&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${A} of ${z}`),m&&c.createElement("span",{className:`${P}-icon`},m),u&&H),j&&c.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:r?0:-1,className:U(`${P}-remove`,T?.remove),style:w?.remove,onClick:q=>{q.stopPropagation(),I(q)}},p||x.removeIcon||"×"));return b?b(J):J};function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},$b.apply(this,arguments)}const eH=(e,t)=>{const{offsetWidth:o,offsetHeight:r,offsetTop:i,offsetLeft:l}=e,{width:u,height:f,left:p,top:m}=e.getBoundingClientRect();return Math.abs(u-o)<1?[u,f,p-t.left,m-t.top]:[o,r,l,i]},ss=e=>{const{offsetWidth:t=0,offsetHeight:o=0}=e.current||{};if(e.current){const{width:r,height:i}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,i]}return[t,o]},rd=(e,t)=>e[t?0:1],V$=c.forwardRef((e,t)=>{const{className:o,style:r,id:i,animated:l,activeKey:u,rtl:f,extra:p,editable:m,locale:h,tabPosition:b,tabBarGutter:v,children:x,onTabClick:C,onTabScroll:S,indicator:R,classNames:E,styles:N}=e,{prefixCls:$,tabs:w}=c.useContext(W0),T=c.useRef(null),z=c.useRef(null),A=c.useRef(null),P=c.useRef(null),j=c.useRef(null),L=c.useRef(null),I=c.useRef(null),H=b==="top"||b==="bottom",[W,J]=B$(0,(Re,Ae)=>{H&&S&&S({direction:Re>Ae?"left":"right"})}),[q,D]=B$(0,(Re,Ae)=>{!H&&S&&S({direction:Re>Ae?"top":"bottom"})}),[X,V]=c.useState([0,0]),[Z,Q]=c.useState([0,0]),[B,F]=c.useState([0,0]),[k,G]=c.useState([0,0]),[K,te]=k_(new Map),Y=W_(w,K,Z[0]),ie=rd(X,H),se=rd(Z,H),ae=rd(B,H),me=rd(k,H),ne=Math.floor(ie)<Math.floor(se+ae),ue=ne?ie-me:ie-ae,ye=`${$}-nav-operations-hidden`;let ve=0,Ee=0;H&&f?(ve=0,Ee=Math.max(0,se-ue)):(ve=Math.min(0,ue-se),Ee=0);function Ce(Re){return Re<ve?ve:Re>Ee?Ee:Re}const be=c.useRef(null),[ge,ze]=c.useState();function we(){ze(Date.now())}function Ie(){be.current&&clearTimeout(be.current)}X_(P,(Re,Ae)=>{function Se(He,Fe){He(Ke=>Ce(Ke+Fe))}return ne?(H?Se(J,Re):Se(D,Ae),Ie(),we(),!0):!1}),c.useEffect(()=>(Ie(),ge&&(be.current=setTimeout(()=>{ze(0)},100)),Ie),[ge]);const[Oe,je]=Y_(Y,ue,H?W:q,se,ae,me,{...e,tabs:w}),nt=ft((Re=u)=>{const Ae=Y.get(Re)||{width:0,height:0,left:0,right:0,top:0};if(H){let Se=W;f?Ae.right<W?Se=Ae.right:Ae.right+Ae.width>W+ue&&(Se=Ae.right+Ae.width-ue):Ae.left<-W?Se=-Ae.left:Ae.left+Ae.width>-W+ue&&(Se=-(Ae.left+Ae.width-ue)),D(0),J(Ce(Se))}else{let Se=q;Ae.top<-q?Se=-Ae.top:Ae.top+Ae.height>-q+ue&&(Se=-(Ae.top+Ae.height-ue)),J(0),D(Ce(Se))}}),[Ye,De]=c.useState(),[qe,Je]=c.useState(!1),Ue=w.filter(Re=>!Re.disabled).map(Re=>Re.key),Pe=Re=>{const Ae=Ue.indexOf(Ye||u),Se=Ue.length,He=(Ae+Re+Se)%Se,Fe=Ue[He];De(Fe)},_e=(Re,Ae)=>{const Se=Ue.indexOf(Re),He=w.find(Ke=>Ke.key===Re);G0(He?.closable,He?.closeIcon,m,He?.disabled)&&(Ae.preventDefault(),Ae.stopPropagation(),m.onEdit("remove",{key:Re,event:Ae}),Se===Ue.length-1?Pe(-1):Pe(1))},We=(Re,Ae)=>{Je(!0),Ae.button===1&&_e(Re,Ae)},Be=Re=>{const{code:Ae}=Re,Se=f&&H,He=Ue[0],Fe=Ue[Ue.length-1];switch(Ae){case"ArrowLeft":{H&&Pe(Se?1:-1);break}case"ArrowRight":{H&&Pe(Se?-1:1);break}case"ArrowUp":{Re.preventDefault(),H||Pe(-1);break}case"ArrowDown":{Re.preventDefault(),H||Pe(1);break}case"Home":{Re.preventDefault(),De(He);break}case"End":{Re.preventDefault(),De(Fe);break}case"Enter":case"Space":{Re.preventDefault(),C(Ye??u,Re);break}case"Backspace":case"Delete":{_e(Ye,Re);break}}},he={};H?he.marginInlineStart=v:he.marginTop=v;const Te=w.map((Re,Ae)=>{const{key:Se}=Re;return c.createElement(J_,{id:i,prefixCls:$,key:Se,tab:Re,classNames:{item:E?.item,remove:E?.remove},styles:{item:Ae===0?N?.item:{...he,...N?.item},remove:N?.remove},closable:Re.closable,editable:m,active:Se===u,focus:Se===Ye,renderWrapper:x,removeAriaLabel:h?.removeAriaLabel,tabCount:Ue.length,currentPosition:Ae+1,onClick:He=>{C(Se,He)},onKeyDown:Be,onFocus:()=>{qe||De(Se),nt(Se),we(),P.current&&(f||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:()=>{De(void 0)},onMouseDown:He=>We(Se,He),onMouseUp:()=>{Je(!1)}})}),Le=()=>te(()=>{const Re=new Map,Ae=j.current?.getBoundingClientRect();return w.forEach(({key:Se})=>{const He=j.current?.querySelector(`[data-node-key="${GN(Se)}"]`);if(He){const[Fe,Ke,ct,Jt]=eH(He,Ae);Re.set(Se,{width:Fe,height:Ke,left:ct,top:Jt})}}),Re});c.useEffect(()=>{Le()},[w.map(Re=>Re.key).join("_")]);const Ge=WN(()=>{const Re=ss(T),Ae=ss(z),Se=ss(A);V([Re[0]-Ae[0]-Se[0],Re[1]-Ae[1]-Se[1]]);const He=ss(I);F(He);const Fe=ss(L);G(Fe);const Ke=ss(j);Q([Ke[0]-He[0],Ke[1]-He[1]]),Le()}),ot=w.slice(0,Oe),Qe=w.slice(je+1),ut=[...ot,...Qe],Ct=Y.get(u),{style:mt}=U_({activeTabOffset:Ct,horizontal:H,indicator:R,rtl:f});c.useEffect(()=>{nt()},[u,ve,Ee,D$(Ct),D$(Y),H]),c.useEffect(()=>{Ge()},[f]);const Nt=!!ut.length,vt=`${$}-nav-wrap`;let Pt,et,Bt,Ve;return H?f?(et=W>0,Pt=W!==Ee):(Pt=W<0,et=W!==ve):(Bt=q<0,Ve=q!==ve),c.createElement(mr,{onResize:Ge},c.createElement("div",{ref:Gr(t,T),role:"tablist","aria-orientation":H?"horizontal":"vertical",className:U(`${$}-nav`,o,E?.header),style:{...N?.header,...r},onKeyDown:()=>{we()}},c.createElement(L$,{ref:z,position:"left",extra:p,prefixCls:$}),c.createElement(mr,{onResize:Ge},c.createElement("div",{className:U(vt,{[`${vt}-ping-left`]:Pt,[`${vt}-ping-right`]:et,[`${vt}-ping-top`]:Bt,[`${vt}-ping-bottom`]:Ve}),ref:P},c.createElement(mr,{onResize:Ge},c.createElement("div",{ref:j,className:`${$}-nav-list`,style:{transform:`translate(${W}px, ${q}px)`,transition:ge?"none":void 0}},Te,c.createElement(XN,{ref:I,prefixCls:$,locale:h,editable:m,style:{...Te.length===0?void 0:he,visibility:Nt?"hidden":null}}),c.createElement("div",{className:U(`${$}-ink-bar`,E?.indicator,{[`${$}-ink-bar-animated`]:l.inkBar}),style:{...mt,...N?.indicator}}))))),c.createElement(Z_,$b({},e,{removeAriaLabel:h?.removeAriaLabel,ref:L,prefixCls:$,tabs:ut,className:!Nt&&ye,popupStyle:N?.popup,tabMoving:!!ge})),c.createElement(L$,{ref:A,position:"right",extra:p,prefixCls:$})))}),tH=({renderTabBar:e,...t})=>e?e(t,V$):c.createElement(V$,t),nH=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:i,id:l,active:u,tabKey:f,children:p}=e,m=c.Children.count(p)>0;return c.createElement("div",{id:l&&`${l}-panel-${f}`,role:"tabpanel",tabIndex:u&&m?0:-1,"aria-labelledby":l&&`${l}-tab-${f}`,"aria-hidden":!u,style:i,className:U(o,u&&`${o}-active`,r),ref:t},p)});function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},tf.apply(this,arguments)}const oH=e=>{const{id:t,activeKey:o,animated:r,tabPosition:i,destroyOnHidden:l,bodyStyle:u,bodyClassName:f,contentStyle:p,contentClassName:m}=e,{prefixCls:h,tabs:b}=c.useContext(W0),v=r.tabPane,x=`${h}-body`,C=`${h}-content`;return c.createElement("div",{className:U(`${x}-holder`)},c.createElement("div",{className:U(x,`${x}-${i}`,{[`${x}-animated`]:v},f),style:u},b.map(S=>{const{key:R,forceRender:E,style:N,className:$,destroyOnHidden:w,...T}=S,z=R===o;return c.createElement(no,tf({key:R,visible:z,forceRender:E,removeOnLeave:!!(l??w),leavedClassName:`${C}-hidden`},r.tabPaneMotion),({style:A,className:P},j)=>c.createElement(nH,tf({},T,{prefixCls:C,id:t,tabKey:R,animated:v,active:z,style:{...p,...N,...A},className:U(m,$,P),ref:j})))})))};function rH(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wl.apply(this,arguments)}let F$=0;const aH=c.forwardRef((e,t)=>{const{id:o,prefixCls:r="rc-tabs",className:i,items:l,direction:u,activeKey:f,defaultActiveKey:p,editable:m,animated:h,tabPosition:b="top",tabBarGutter:v,tabBarStyle:x,tabBarExtraContent:C,locale:S,more:R,destroyOnHidden:E,renderTabBar:N,onChange:$,onTabClick:w,onTabScroll:T,getPopupContainer:z,popupClassName:A,indicator:P,classNames:j,styles:L,...I}=e,H=c.useMemo(()=>(l||[]).filter(Y=>Y&&typeof Y=="object"&&"key"in Y),[l]),W=u==="rtl",J=rH(h),[q,D]=c.useState(!1);c.useEffect(()=>{D(gO())},[]);const[X,V]=To(p??H[0]?.key,f),[Z,Q]=c.useState(()=>H.findIndex(Y=>Y.key===X));c.useEffect(()=>{let Y=H.findIndex(ie=>ie.key===X);Y===-1&&(Y=Math.max(0,Math.min(Z,H.length-1)),V(H[Y]?.key)),Q(Y)},[H.map(Y=>Y.key).join("_"),X,Z]);const[B,F]=To(null,o);c.useEffect(()=>{o||(F(`rc-tabs-${F$}`),F$+=1)},[]);function k(Y,ie){w?.(Y,ie);const se=Y!==X;V(Y),se&&$?.(Y)}const G={id:B,activeKey:X,animated:J,tabPosition:b,rtl:W,mobile:q},K={...G,editable:m,locale:S,more:R,tabBarGutter:v,onTabClick:k,onTabScroll:T,extra:C,style:x,getPopupContainer:z,popupClassName:U(A,j?.popup),indicator:P,styles:L,classNames:j},te=c.useMemo(()=>({tabs:H,prefixCls:r}),[H,r]);return c.createElement(W0.Provider,{value:te},c.createElement("div",Wl({ref:t,id:o,className:U(r,`${r}-${b}`,{[`${r}-mobile`]:q,[`${r}-editable`]:m,[`${r}-rtl`]:W},i)},I),c.createElement(tH,Wl({},K,{renderTabBar:N})),c.createElement(oH,Wl({destroyOnHidden:E},G,{bodyStyle:L?.body,bodyClassName:j?.body,contentStyle:L?.content,contentClassName:j?.content,animated:J}))))}),iH={motionAppear:!1,motionEnter:!0,motionLeave:!0};function sH(e,t={inkBar:!0,tabPane:!1}){let o;return t===!1?o={inkBar:!1,tabPane:!1}:t===!0?o={inkBar:!0,tabPane:!0}:o={inkBar:!0,...Wt(t)?t:{}},o.tabPane&&(o.tabPaneMotion={...iH,motionName:Fr(e,"switch")}),o}function lH(e){return e.filter(t=>t)}function cH(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const o=zo(t).map(r=>{if(c.isValidElement(r)){const{key:i,props:l}=r,{tab:u,...f}=l||{};return{key:String(i),...f,label:u}}return null});return lH(o)}const uH=e=>{const{componentCls:t,motionDurationSlow:o}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[Ss(e,"slide-up"),Ss(e,"slide-down")]]},dH=e=>{const{componentCls:t,tabsCardPadding:o,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:u}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:r,border:`${re(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:u,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ns(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:re(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:re(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadiusLG)} 0 0 ${re(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},fH=e=>{const{antCls:t,componentCls:o,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${o}-dropdown`]:{...Dn(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomLeft,
203
+ &${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottomLeft,
204
+ &${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottom,
205
+ &${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottom,
206
+ &${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomRight,
207
+ &${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottomRight`]:{animationName:C0},[`&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-topLeft,
208
+ &${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-topLeft,
209
+ &${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-top,
210
+ &${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-top,
211
+ &${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-topRight,
212
+ &${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-topRight`]:{animationName:E0},[`&${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottomLeft,
213
+ &${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottom,
214
+ &${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottomRight`]:{animationName:$0},[`&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topLeft,
215
+ &${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-top,
216
+ &${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topRight`]:{animationName:w0},[`${o}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${re(i)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...or,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${re(e.paddingXXS)} ${re(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},mH=e=>{const{componentCls:t,margin:o,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:u,motionDurationSlow:f,calc:p}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${re(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(m=>`${m} ${f}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
217
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:p(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:u},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(m=>`${m} ${f}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:re(p(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:p(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},pH=e=>{const{componentCls:t,cardPaddingSM:o,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:l,horizontalItemPaddingSM:u,horizontalItemPaddingLG:f}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:f,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadius)} ${re(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${re(e.borderRadius)} ${re(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadius)} ${re(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadius)} 0 0 ${re(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},gH=e=>{const{componentCls:t,itemActiveColor:o,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:u,itemSelectedColor:f,itemColor:p}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:u,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:p,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Lr(e)},"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:f},[`&${m}-focus ${m}-btn:focus-visible`]:Ns(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},hH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:l(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},bH=e=>{const{componentCls:t,tabsCardPadding:o,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:u,colorBorderSecondary:f}=e;return{[t]:{...Dn(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${re(e.lineWidth)} ${e.lineType} ${f}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:u},...Lr(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...gH(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...Lr(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},vH=e=>{const{cardHeight:t,cardHeightSM:o,cardHeightLG:r,controlHeight:i,controlHeightLG:l}=e,u=t||l,f=o||i,p=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:u,cardHeightSM:f,cardHeightLG:p,cardPadding:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(f-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(p-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},yH=Qt("Tabs",e=>{const t=Gt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${re(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${re(e.horizontalItemGutter)}`});return[pH(t),hH(t),mH(t),fH(t),dH(t),bH(t),uH(t)]},vH),xH=()=>null,SH=c.forwardRef((e,t)=>{const{type:o,className:r,rootClassName:i,size:l,onEdit:u,hideAdd:f,centered:p,addIcon:m,removeIcon:h,moreIcon:b,more:v,popupClassName:x,children:C,items:S,animated:R,style:E,indicatorSize:N,indicator:$,classNames:w,styles:T,destroyInactiveTabPane:z,destroyOnHidden:A,tabPlacement:P,tabPosition:j,...L}=e,{prefixCls:I}=L,{getPrefixCls:H,direction:W,getPopupContainer:J,className:q,style:D,classNames:X,styles:V}=Kt("tabs"),{tabs:Z}=c.useContext(xt),Q=H("tabs",I),B=hr(Q),[F,k]=yH(Q,B),G=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:G.current}));let K;o==="editable-card"&&(K={onEdit:(Ce,{key:be,event:ge})=>{u?.(Ce==="add"?ge:be,Ce)},removeIcon:h??Z?.removeIcon??c.createElement(gr,null),addIcon:(m??Z?.addIcon)||c.createElement(q_,null),showAdd:f!==!0});const te=H(),Y=bo(l),ie=cH(S,C),se=sH(Q,R),ae={align:$?.align??Z?.indicator?.align,size:$?.size??N??Z?.indicator?.size??Z?.indicatorSize},me=c.useMemo(()=>{const Ce=P??j??void 0,be=W==="rtl";switch(Ce){case"start":return be?"right":"left";case"end":return be?"left":"right";default:return Ce}},[P,j,W]),ne={...e,size:Y,tabPlacement:me,items:ie},ue=pn(D),ye=pn(E),[ve,Ee]=dn([X,w],[V,ue,T,ye],{props:ne},{popup:{_default:"root"}});return c.createElement(aH,{ref:G,direction:W,getPopupContainer:J,...L,items:ie,className:U({[`${Q}-large`]:Y==="large",[`${Q}-small`]:Y==="small",[`${Q}-card`]:["card","editable-card"].includes(o),[`${Q}-editable-card`]:o==="editable-card",[`${Q}-centered`]:p},q,r,i,ve.root,F,k,B),classNames:{...ve,popup:U(x,F,k,B,ve.popup?.root)},styles:Ee,style:Ee.root,editable:K,more:{icon:Z?.more?.icon??Z?.moreIcon??b??c.createElement(q0,null),transitionName:`${te}-slide-up`,...v},prefixCls:Q,animated:se,indicator:ae,destroyOnHidden:A??z,tabPosition:me})}),X0=SH;X0.TabPane=xH;const kN=({prefixCls:e,className:t,hoverable:o=!0,...r})=>{const{getPrefixCls:i}=c.useContext(xt),l=i("card",e),u=U(`${l}-grid`,t,{[`${l}-grid-hoverable`]:o});return c.createElement("div",{...r,className:u})},CH=e=>{const{antCls:t,componentCls:o,headerHeight:r,headerPadding:i,tabsMarginBottom:l}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${re(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,...mi(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...or,[`
218
+ > ${o}-typography,
219
+ > ${o}-typography-edit-content
220
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},$H=e=>{const{cardPaddingBase:t,colorBorderSecondary:o,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
221
+ ${re(i)} 0 0 0 ${o},
222
+ 0 ${re(i)} 0 0 ${o},
223
+ ${re(i)} ${re(i)} 0 0 ${o},
224
+ ${re(i)} 0 0 0 ${o} inset,
225
+ 0 ${re(i)} 0 0 ${o} inset;
226
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},EH=e=>{const{componentCls:t,iconCls:o,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:l,actionsBg:u}=e;return{margin:0,padding:0,listStyle:"none",background:u,borderTop:`${re(e.lineWidth)} ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`,...mi(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:re(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:i,lineHeight:re(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${l}`}}}},wH=e=>({margin:`${re(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...mi(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...or},"&-description":{color:e.colorTextDescription}}),NH=e=>{const{componentCls:t,colorFillAlter:o,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${re(r)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${re(e.padding)} ${re(i)}`}}},RH=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},MH=e=>{const{componentCls:t,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:l,bodyPadding:u,extraColor:f,motionDurationMid:p}=e;return{[t]:{...Dn(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:CH(e),[`${t}-extra`]:{marginInlineStart:"auto",color:f,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:u,borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:$H(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:EH(e),[`${t}-meta`]:wH(e)},[`${t}-bordered`]:{border:`${re(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(m=>`${m} ${p}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:NH(e),[`${t}-loading`]:RH(e),[`${t}-rtl`]:{direction:"rtl"}}},TH=e=>{const{componentCls:t,bodyPaddingSM:o,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:l}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${re(r)}`,fontSize:l,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},OH=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),zH=Qt("Card",e=>{const t=Gt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[MH(t),TH(t)]},OH),AH=e=>{const{actionClasses:t,actions:o=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},o.map((i,l)=>{const u=`action-${l}`;return c.createElement("li",{style:{width:`${100/o.length}%`},key:u},c.createElement("span",null,i))}))},IH=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,rootClassName:i,style:l,extra:u,headStyle:f={},bodyStyle:p={},title:m,loading:h,bordered:b,variant:v,size:x,type:C,cover:S,actions:R,tabList:E,children:N,activeTabKey:$,defaultActiveTabKey:w,tabBarExtraContent:T,hoverable:z,tabProps:A={},classNames:P,styles:j,...L}=e,{getPrefixCls:I,direction:H,className:W,style:J,classNames:q,styles:D}=Kt("card"),[X]=$f("card",v,b),V=bo(x),Z={...e,size:V,variant:X},Q=pn(J),B=pn(l),[F,k]=dn([q,P],[D,Q,j,B],{props:Z}),G=Ye=>{e.onTabChange?.(Ye)},K=c.useMemo(()=>zo(N),[N]),te=c.useMemo(()=>K.some(Ye=>c.isValidElement(Ye)&&Ye.type===kN),[K]),Y=I("card",o),[ie,se]=zH(Y),ae=c.createElement(Ia,{loading:!0,active:!0,paragraph:{rows:4},title:!1},N),me=$!==void 0,ne={...A,[me?"activeKey":"defaultActiveKey"]:me?$:w,tabBarExtraContent:T};let ue;const ye=V!=="small"?"large":V,ve=E?c.createElement(X0,{size:ye,...ne,className:`${Y}-head-tabs`,onChange:G,items:E.map(({tab:Ye,...De})=>({label:Ye,...De}))}):null;if(m||u||ve){const Ye=U(`${Y}-head`,F.header),De=U(`${Y}-head-title`,F.title),qe=U(`${Y}-extra`,F.extra),Je={...f,...k.header};ue=c.createElement("div",{className:Ye,style:Je},c.createElement("div",{className:`${Y}-head-wrapper`},m&&c.createElement("div",{className:De,style:k.title},m),u&&c.createElement("div",{className:qe,style:k.extra},u)),ve)}const Ee=U(`${Y}-cover`,F.cover),Ce=S?c.createElement("div",{className:Ee,style:k.cover},S):null,be=U(`${Y}-body`,F.body),ge={...p,...k.body},ze=h||K.length?c.createElement("div",{className:be,style:ge},h?ae:N):null,we=U(`${Y}-actions`,F.actions),Ie=R?.length?c.createElement(AH,{actionClasses:we,actionStyle:k.actions,actions:R}):null,Oe=xn(L,["onTabChange"]),je=U(Y,W,{[`${Y}-loading`]:h,[`${Y}-bordered`]:X!=="borderless",[`${Y}-hoverable`]:z,[`${Y}-contain-grid`]:te,[`${Y}-contain-tabs`]:E?.length,[`${Y}-small`]:V==="small",[`${Y}-type-${C}`]:!!C,[`${Y}-rtl`]:H==="rtl"},r,i,ie,se,F.root),nt={...k.root};return c.createElement("div",{ref:t,...Oe,className:je,style:nt},ue,Ce,ze,Ie)}),PH=e=>{const{prefixCls:t,className:o,avatar:r,title:i,description:l,style:u,classNames:f,styles:p,...m}=e,{getPrefixCls:h,className:b,style:v,classNames:x,styles:C}=Kt("cardMeta"),R=`${h("card",t)}-meta`,E=pn(v),N=pn(u),[$,w]=dn([x,f],[C,E,p,N],{props:e}),T=U(R,o,b,$.root),z={...w.root},A=U(`${R}-avatar`,$.avatar),P=U(`${R}-title`,$.title),j=U(`${R}-description`,$.description),L=U(`${R}-section`,$.section),I=r?c.createElement("div",{className:A,style:w.avatar},r):null,H=i?c.createElement("div",{className:P,style:w.title},i):null,W=l?c.createElement("div",{className:j,style:w.description},l):null,J=H||W?c.createElement("div",{className:L,style:w.section},H,W):null;return c.createElement("div",{...m,className:T,style:z},I,J)},rc=IH;rc.Grid=kN;rc.Meta=PH;function BH(e,t,o){var r=o||{},i=r.noTrailing,l=i===void 0?!1:i,u=r.noLeading,f=u===void 0?!1:u,p=r.debounceMode,m=p===void 0?void 0:p,h,b=!1,v=0;function x(){h&&clearTimeout(h)}function C(R){var E=R||{},N=E.upcomingOnly,$=N===void 0?!1:N;x(),b=!$}function S(){for(var R=arguments.length,E=new Array(R),N=0;N<R;N++)E[N]=arguments[N];var $=this,w=Date.now()-v;if(b)return;function T(){v=Date.now(),t.apply($,E)}function z(){h=void 0}!f&&m&&!h&&T(),x(),m===void 0&&w>e?f?(v=Date.now(),l||(h=setTimeout(m?z:T,e))):T():l!==!0&&(h=setTimeout(m?z:T,m===void 0?e-w:e))}return S.cancel=C,S}function jH(e,t,o){var r={},i=r.atBegin,l=i===void 0?!1:i;return BH(e,t,{debounceMode:l!==!1})}const _H=e=>{const{componentCls:t,borderRadius:o,paddingSM:r,colorBorder:i,paddingXS:l,fontSizeLG:u,fontSizeSM:f,borderRadiusLG:p,borderRadiusSM:m,colorBgContainerDisabled:h,lineWidth:b,lineType:v,antCls:x}=e,[C,S]=Vt(x,"space-addon");return{[t]:[{...Dn(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:r,margin:0,borderWidth:b,borderStyle:v,borderRadius:o,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:u,borderRadius:p},"&-small":{paddingInline:l,borderRadius:m,fontSize:f},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[C("addon-border-color")]:i,[C("addon-background")]:h,[C("addon-border-color-outlined")]:i,[C("addon-background-filled")]:h,borderColor:S("addon-border-color"),background:S("addon-background"),"&-variant-outlined":{[C("addon-border-color")]:S("addon-border-color-outlined")},"&-variant-filled":{[C("addon-border-color")]:"transparent",[C("addon-background")]:S("addon-background-filled"),[`&${t}-disabled`]:{[C("addon-border-color")]:i,[C("addon-background")]:h}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[C("addon-border-color-outlined")]:e.colorError,[C("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[C("addon-border-color-outlined")]:e.colorWarning,[C("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},HH=Qt("Addon",e=>[_H(e),xf(e,{focus:!1})]),DH=ce.forwardRef((e,t)=>{const{className:o,children:r,style:i,prefixCls:l,variant:u="outlined",disabled:f,status:p,...m}=e,{getPrefixCls:h,direction:b}=ce.useContext(xt),v=h("space-addon",l),[x,C]=HH(v),{compactItemClassnames:S,compactSize:R}=Rs(v,b),E=ec(v,p),N=U(v,x,S,C,`${v}-variant-${u}`,E,{[`${v}-${R}`]:R,[`${v}-disabled`]:f},o);return ce.createElement("div",{ref:t,className:N,style:i,...m},r)});function LH(e){return!!(e.addonBefore||e.addonAfter)}function VH(e){return!!(e.prefix||e.suffix||e.allowClear)}function q$(e,t,o){const r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=o,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...l)=>{t.setSelectionRange(...l)},i}function nf(e,t,o,r){if(!o)return;let i=t;if(t.type==="click"){i=q$(t,e,""),o(i);return}if(e.type!=="file"&&r!==void 0){i=q$(t,e,r),o(i);return}o(i)}function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Eb.apply(this,arguments)}const YN=ce.forwardRef((e,t)=>{const{inputElement:o,children:r,prefixCls:i,prefix:l,suffix:u,addonBefore:f,addonAfter:p,className:m,style:h,disabled:b,readOnly:v,focused:x,triggerFocus:C,allowClear:S,value:R,handleReset:E,hidden:N,classes:$,classNames:w,dataAttrs:T,styles:z,components:A,onClear:P}=e,j=r??o,L=A?.affixWrapper||"span",I=A?.groupWrapper||"span",H=A?.wrapper||"span",W=A?.groupAddon||"span",J=c.useRef(null),q=Z=>{J.current?.contains(Z.target)&&C?.()},D=VH(e);let X=c.cloneElement(j,{value:R,className:U(j.props?.className,!D&&w?.variant)||null});const V=c.useRef(null);if(ce.useImperativeHandle(t,()=>({nativeElement:V.current||J.current})),D){let Z=null;if(S){const k=!b&&!v&&R&&!(typeof S=="object"&&S.disabled),G=`${i}-clear-icon`,K=typeof S=="object"&&S?.clearIcon?S.clearIcon:"✖";Z=ce.createElement("button",{type:"button",onClick:te=>{E?.(te),P?.()},onMouseDown:te=>te.preventDefault(),className:U(G,{[`${G}-hidden`]:!k,[`${G}-has-suffix`]:!!u},w?.clear),style:z?.clear},K)}const Q=`${i}-affix-wrapper`,B=U(Q,{[`${i}-disabled`]:b,[`${Q}-disabled`]:b,[`${Q}-focused`]:x,[`${Q}-readonly`]:v,[`${Q}-input-with-clear-btn`]:u&&S&&R},$?.affixWrapper,w?.affixWrapper,w?.variant),F=(u||S)&&ce.createElement("span",{className:U(`${i}-suffix`,w?.suffix),style:z?.suffix},Z,u);X=ce.createElement(L,Eb({className:B,style:z?.affixWrapper,onClick:q},T?.affixWrapper,{ref:J}),l&&ce.createElement("span",{className:U(`${i}-prefix`,w?.prefix),style:z?.prefix},l),X,F)}if(LH(e)){const Z=`${i}-group`,Q=`${Z}-addon`,B=`${Z}-wrapper`,F=U(`${i}-wrapper`,Z,$?.wrapper,w?.wrapper),k=U(B,{[`${B}-disabled`]:b},$?.group,w?.groupWrapper);X=ce.createElement(I,{className:k,ref:V},ce.createElement(H,{className:F},f&&ce.createElement(W,{className:Q},f),X,p&&ce.createElement(W,{className:Q},p)))}return ce.cloneElement(X,{className:U(X.props?.className,m)||null,style:{...X.props?.style,...h},hidden:N})});function KN(e,t){return c.useMemo(()=>{let o={};t&&(o.show=typeof t=="object"&&t.formatter?t.formatter:!!t),o={...o,...e};const{show:r,...i}=o;return{...i,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:i.strategy||(l=>l.length)}},[e,t])}function QN({countConfig:e,value:t,maxLength:o}){return c.useMemo(()=>{const r=e.max??o,i=e.strategy(t),l=!!r&&i>r,u=Number(r)>0,f=e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${u?` / ${r}`:""}`:void 0;return{mergedMax:r,isOutOfRange:l,dataCount:f}},[e,o,t])}function ZN({countConfig:e,getTarget:t}){const[o,r]=c.useState(null),i=c.useRef(t);return c.useEffect(()=>{i.current=t},[t]),c.useEffect(()=>{o&&(i.current()?.setSelectionRange(...o),r(null))},[o]),c.useCallback((u,f)=>{let p=u;return!f&&e.exceedFormatter&&e.max&&e.strategy(u)>e.max&&(p=e.exceedFormatter(u,{max:e.max}),u!==p&&r([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),p},[e])}function JN(e,t){const[o,r]=To(e,t),i=o==null?"":String(o);return{value:o,setValue:r,formatValue:i}}function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},of.apply(this,arguments)}const FH=c.forwardRef((e,t)=>{const{autoComplete:o,onChange:r,onFocus:i,onBlur:l,onPressEnter:u,onKeyDown:f,onKeyUp:p,prefixCls:m="rc-input",disabled:h,htmlSize:b,className:v,maxLength:x,suffix:C,showCount:S,count:R,type:E="text",classes:N,classNames:$,styles:w,onCompositionStart:T,onCompositionEnd:z,...A}=e,[P,j]=c.useState(!1),L=c.useRef(!1),I=c.useRef(!1),H=c.useRef(null),W=c.useRef(null),J=ne=>{H.current&&BE(H.current,ne)},{setValue:q,formatValue:D}=JN(e.defaultValue,e.value),X=KN(R,S),{isOutOfRange:V,dataCount:Z}=QN({countConfig:X,value:D,maxLength:x}),Q=ZN({countConfig:X,getTarget:()=>H.current});c.useImperativeHandle(t,()=>({focus:J,blur:()=>{H.current?.blur()},setSelectionRange:(ne,ue,ye)=>{H.current?.setSelectionRange(ne,ue,ye)},select:()=>{H.current?.select()},input:H.current,nativeElement:W.current?.nativeElement||H.current})),c.useEffect(()=>{I.current&&(I.current=!1),j(ne=>ne&&h?!1:ne)},[h]);const B=(ne,ue,ye)=>{const ve=Q(ue,L.current);ye.source==="compositionEnd"&&ue===ve||(q(ve),H.current&&nf(H.current,ne,r,ve))},F=ne=>{B(ne,ne.target.value,{source:"change"})},k=ne=>{L.current=!1,B(ne,ne.currentTarget.value,{source:"compositionEnd"}),z?.(ne)},G=ne=>{u&&ne.key==="Enter"&&!I.current&&!ne.nativeEvent.isComposing&&(I.current=!0,u(ne)),f?.(ne)},K=ne=>{ne.key==="Enter"&&(I.current=!1),p?.(ne)},te=ne=>{j(!0),i?.(ne)},Y=ne=>{I.current&&(I.current=!1),j(!1),l?.(ne)},ie=ne=>{q(""),J(),H.current&&nf(H.current,ne,r)},se=V&&`${m}-out-of-range`,ae=()=>{const ne=xn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ce.createElement("input",of({autoComplete:o},ne,{onChange:F,onFocus:te,onBlur:Y,onKeyDown:G,onKeyUp:K,className:U(m,{[`${m}-disabled`]:h},$?.input),style:w?.input,ref:H,size:b,type:E,onCompositionStart:ue=>{L.current=!0,T?.(ue)},onCompositionEnd:k}))},me=()=>C||X.show?ce.createElement(ce.Fragment,null,X.show&&ce.createElement("span",{className:U(`${m}-show-count-suffix`,{[`${m}-show-count-has-suffix`]:!!C},$?.count),style:{...w?.count}},Z),C):null;return ce.createElement(YN,of({},A,{prefixCls:m,className:U(v,se),handleReset:ie,value:D,focused:P,triggerFocus:J,suffix:me(),disabled:h,classes:N,classNames:$,styles:w,ref:W}),ae())}),qH=`
227
+ min-height:0 !important;
228
+ max-height:none !important;
229
+ height:0 !important;
230
+ visibility:hidden !important;
231
+ overflow:hidden !important;
232
+ position:absolute !important;
233
+ z-index:-1000 !important;
234
+ top:0 !important;
235
+ right:0 !important;
236
+ pointer-events: none !important;
237
+ `,UH=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],$g={};let No;function WH(e,t=!1){const o=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&$g[o])return $g[o];const r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),u=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),p={sizingStyle:UH.map(m=>`${m}:${r.getPropertyValue(m)}`).join(";"),paddingSize:l,borderSize:u,boxSizing:i};return t&&o&&($g[o]=p),p}function GH(e,t=!1,o=null,r=null){No||(No=document.createElement("textarea"),No.setAttribute("tab-index","-1"),No.setAttribute("aria-hidden","true"),No.setAttribute("name","hiddenTextarea"),document.body.appendChild(No)),e.getAttribute("wrap")?No.setAttribute("wrap",e.getAttribute("wrap")):No.removeAttribute("wrap");const{paddingSize:i,borderSize:l,boxSizing:u,sizingStyle:f}=WH(e,t);No.setAttribute("style",`${f};${qH}`),No.value=e.value||e.placeholder||"";let p,m,h,b=No.scrollHeight;if(u==="border-box"?b+=l:u==="content-box"&&(b-=i),o!==null||r!==null){No.value=" ";const x=No.scrollHeight-i;o!==null&&(p=x*o,u==="border-box"&&(p=p+i+l),b=Math.max(p,b)),r!==null&&(m=x*r,u==="border-box"&&(m=m+i+l),h=b>m?void 0:"hidden",b=Math.min(m,b))}const v={height:b,overflowY:h,resize:"none"};return p&&(v.minHeight=p),m&&(v.maxHeight=m),v}function wb(){return wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wb.apply(this,arguments)}const Eg=0,wg=1,Ng=2,XH=c.forwardRef((e,t)=>{const{prefixCls:o,defaultValue:r,value:i,autoSize:l,onResize:u,className:f,style:p,disabled:m,onChange:h,onInternalAutoSize:b,...v}=e,[x,C]=To(r,i),S=x??"",R=q=>{C(q.target.value),h?.(q)},E=c.useRef(null);c.useImperativeHandle(t,()=>({textArea:E.current}));const[N,$]=c.useMemo(()=>l&&typeof l=="object"?[l.minRows,l.maxRows]:[],[l]),w=!!l,[T,z]=c.useState(Ng),[A,P]=c.useState(),j=()=>{z(Eg)};un(()=>{w&&j()},[i,N,$,w]),un(()=>{if(T===Eg)z(wg);else if(T===wg){const q=GH(E.current,!1,N,$);z(Ng),P(q)}},[T]);const L=c.useRef(void 0),I=()=>{L.current!==void 0&&Lt.cancel(L.current)},H=q=>{T===Ng&&(u?.(q),l&&(I(),L.current=Lt(()=>{j()})))};c.useEffect(()=>I,[]);const J={...p,...w?A:null};return(T===Eg||T===wg)&&(J.overflowY="hidden",J.overflowX="hidden"),c.createElement(mr,{onResize:H,disabled:!(l||u)},c.createElement("textarea",wb({},v,{ref:E,style:J,className:U(o,f,{[`${o}-disabled`]:m}),disabled:m,value:S,onChange:R})))});function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Nb.apply(this,arguments)}const kH=ce.forwardRef(({defaultValue:e,value:t,onFocus:o,onBlur:r,onChange:i,allowClear:l,maxLength:u,onCompositionStart:f,onCompositionEnd:p,suffix:m,prefixCls:h="rc-textarea",showCount:b,count:v,className:x,style:C,disabled:S,hidden:R,classNames:E,styles:N,onResize:$,onClear:w,onPressEnter:T,readOnly:z,autoSize:A,onKeyDown:P,...j},L)=>{const[I,H]=ce.useState(!1),W=ce.useRef(!1),[J,q]=ce.useState(null),D=c.useRef(null),X=c.useRef(null),V=()=>X.current?.textArea||null,{setValue:Z,formatValue:Q}=JN(e,t),B=KN(v,b),{isOutOfRange:F,dataCount:k}=QN({countConfig:B,value:Q,maxLength:u}),G=ZN({countConfig:B,getTarget:()=>X.current?.textArea||null}),K=()=>{V()?.focus()};c.useImperativeHandle(L,()=>({resizableTextArea:X.current,focus:K,blur:()=>{V()?.blur()},nativeElement:D.current?.nativeElement||V()})),c.useEffect(()=>{H(Ce=>!S&&Ce)},[S]);const te=(Ce,be)=>{const ge=G(be,W.current);Z(ge),nf(Ce.currentTarget,Ce,i,ge)},Y=Ce=>{W.current=!0,f?.(Ce)},ie=Ce=>{W.current=!1,te(Ce,Ce.currentTarget.value),p?.(Ce)},se=Ce=>{te(Ce,Ce.target.value)},ae=Ce=>{Ce.key==="Enter"&&T&&!Ce.nativeEvent.isComposing&&T(Ce),P?.(Ce)},me=Ce=>{H(!0),o?.(Ce)},ne=Ce=>{H(!1),r?.(Ce)},ue=Ce=>{Z(""),K();const be=V();be&&nf(be,Ce,i)};let ye=m;B.show&&(ye=ce.createElement(ce.Fragment,null,ye,ce.createElement("span",{className:U(`${h}-data-count`,E?.count),style:N?.count},k)));const ve=Ce=>{$?.(Ce),V()?.style.height&&q(!0)},Ee=!A&&!b&&!l;return ce.createElement(YN,{ref:D,value:Q,allowClear:l,handleReset:ue,suffix:ye,prefixCls:h,classNames:{...E,affixWrapper:U(E?.affixWrapper,{[`${h}-show-count`]:b,[`${h}-textarea-allow-clear`]:l})},disabled:S,focused:I,className:U(x,F&&`${h}-out-of-range`),style:{...C,...J&&!Ee?{height:"auto"}:{}},dataAttrs:typeof k=="string"?{affixWrapper:{"data-count":k}}:void 0,styles:N,hidden:R,readOnly:z,onClear:w},ce.createElement(XH,Nb({},j,{autoSize:A,maxLength:u,onKeyDown:ae,onChange:se,onFocus:me,onBlur:ne,onCompositionStart:Y,onCompositionEnd:ie,className:U(E?.textarea),style:{resize:C?.resize,...N?.textarea},disabled:S,prefixCls:h,onResize:ve,ref:X,readOnly:z})))});function eR(e,t){const o=c.useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return c.useEffect(()=>(t&&r(),()=>o.current.forEach(i=>{i&&clearTimeout(i)})),[t]),r}function YH(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Rf=c.forwardRef((e,t)=>{const{prefixCls:o,bordered:r=!0,status:i,size:l,disabled:u,onBlur:f,onFocus:p,suffix:m,allowClear:h,addonAfter:b,addonBefore:v,className:x,style:C,styles:S,rootClassName:R,onChange:E,classNames:N,variant:$,...w}=e,{getPrefixCls:T,direction:z,allowClear:A,autoComplete:P,className:j,style:L,classNames:I,styles:H}=Kt("input"),W=T("input",o),J=c.useRef(null),q=hr(W),[D,X]=qN(W,R);UN(W,q);const{compactSize:V,compactItemClassnames:Z}=Rs(W,z),Q=bo(we=>l??V??we),B=ce.useContext(Vr),F=u??B,k={...e,size:Q,disabled:F},G=pn(L),K=pn(C),[te,Y]=dn([I,N],[H,G,S,K],{props:k}),{status:ie,hasFeedback:se,feedbackIcon:ae}=c.useContext(qr),me=Cf(ie,i),ne=YH(e)||!!se;c.useRef(ne);const ue=eR(J,!0),ye=we=>{ue(),f?.(we)},ve=we=>{ue(),p?.(we)},Ee=we=>{ue(),E?.(we)},Ce=(se||m)&&ce.createElement(ce.Fragment,null,m,se&&ae),be=r2({allowClear:h,contextAllowClear:A,componentName:"Input"}),[ge,ze]=$f("input",$,r);return ce.createElement(FH,{ref:oo(t,J),prefixCls:W,autoComplete:P,...w,disabled:F,onBlur:ye,onFocus:ve,style:Y.root,styles:Y,suffix:Ce,allowClear:be,className:U(x,R,X,q,Z,j,te.root),onChange:Ee,addonBefore:v&&ce.createElement($s,{form:!0,space:!0},v),addonAfter:b&&ce.createElement($s,{form:!0,space:!0},b),classNames:{...te,input:U({[`${W}-sm`]:Q==="small",[`${W}-lg`]:Q==="large",[`${W}-rtl`]:z==="rtl"},te.input,D),variant:U({[`${W}-${ge}`]:ze},ec(W,me)),affixWrapper:U({[`${W}-affix-wrapper-sm`]:Q==="small",[`${W}-affix-wrapper-lg`]:Q==="large",[`${W}-affix-wrapper-rtl`]:z==="rtl"},D),wrapper:U({[`${W}-group-rtl`]:z==="rtl"},D),groupWrapper:U({[`${W}-group-wrapper-sm`]:Q==="small",[`${W}-group-wrapper-lg`]:Q==="large",[`${W}-group-wrapper-rtl`]:z==="rtl",[`${W}-group-wrapper-${ge}`]:ze},ec(`${W}-group-wrapper`,me,se),D)}})}),U$=c.createContext(null),tR=c.createContext({});function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Rb.apply(this,arguments)}const KH=e=>{const{prefixCls:t,className:o,containerRef:r,...i}=e,{panel:l}=c.useContext(tR),u=Gr(l,r);return c.createElement("div",Rb({className:U(`${t}-section`,o),role:"dialog",ref:u},Qn(e,{aria:!0}),{"aria-modal":"true"},i))};function QH(e){const{prefixCls:t,direction:o,className:r,style:i,maxSize:l,containerRef:u,currentSize:f,onResize:p,onResizeEnd:m,onResizeStart:h}=e,[b,v]=c.useState(!1),[x,C]=c.useState(0),[S,R]=c.useState(0),E=o==="left"||o==="right",N=ft(z=>{z.preventDefault(),z.stopPropagation(),v(!0),C(E?z.clientX:z.clientY);let A;if(typeof f=="number")A=f;else if(u?.current){const P=u.current.getBoundingClientRect();A=E?P.width:P.height}R(A),h?.(A)}),$=ft(z=>{if(!b)return;let P=(E?z.clientX:z.clientY)-x;(o==="right"||o==="bottom")&&(P=-P);let j=S+P;j<0&&(j=0),l&&j>l&&(j=l),p?.(j)}),w=c.useCallback(()=>{if(b&&(v(!1),u?.current)){const z=u.current.getBoundingClientRect(),A=E?z.width:z.height;m?.(A)}},[b,u,m,E]);return c.useEffect(()=>{if(b)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",w),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",w)}},[b,$,w]),{dragElementProps:{className:U(`${t}-dragger`,`${t}-dragger-${o}`,{[`${t}-dragger-dragging`]:b,[`${t}-dragger-horizontal`]:E,[`${t}-dragger-vertical`]:!E},r),style:i,onMouseDown:N},isDragging:b}}function Rg(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&Yn(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function ZH(e,t,o,r,i){const l=r??i!==!1,[u]=jE(t&&l,e);return ce.useEffect(()=>{t&&o===!0&&e()?.focus({preventScroll:!0})},[t]),u}function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},us.apply(this,arguments)}const JH=(e,t)=>{const{prefixCls:o,open:r,placement:i,inline:l,push:u,forceRender:f,autoFocus:p,focusTrap:m,classNames:h,rootClassName:b,rootStyle:v,zIndex:x,className:C,id:S,style:R,motion:E,width:N,height:$,size:w,maxSize:T,children:z,mask:A,maskClosable:P,maskMotion:j,maskClassName:L,maskStyle:I,afterOpenChange:H,onClose:W,onMouseEnter:J,onMouseOver:q,onMouseLeave:D,onClick:X,onKeyDown:V,onKeyUp:Z,styles:Q,drawerRender:B,resizable:F,defaultSize:k}=e,G=c.useRef(null);c.useImperativeHandle(t,()=>G.current);const K=ZH(()=>G.current,r,p,m,A),[te,Y]=c.useState(!1),ie=c.useContext(U$);let se;typeof u=="boolean"?se=u?{}:{distance:0}:se=u||{};const ae=se?.distance??ie?.pushDistance??180,me=c.useMemo(()=>({pushDistance:ae,push:()=>{Y(!0)},pull:()=>{Y(!1)}}),[ae]);c.useEffect(()=>{r?ie?.push?.():ie?.pull?.()},[r]),c.useEffect(()=>()=>{ie?.pull?.()},[]);const ne=c.createElement(no,us({key:"mask"},j,{visible:A&&r}),({className:qe,style:Je},Ue)=>c.createElement("div",{className:U(`${o}-mask`,qe,h?.mask,L),style:{...Je,...I,...Q?.mask},onClick:P&&r?W:void 0,ref:Ue})),ue=typeof E=="function"?E(i):E,[ye,ve]=c.useState(),Ee=i==="left"||i==="right",Ce=c.useMemo(()=>Rg(w??(Ee?N:$)??ye??k??(Ee?378:void 0)),[w,N,$,k,Ee,ye]),be=c.useMemo(()=>{const qe={};if(te&&ae)switch(i){case"top":qe.transform=`translateY(${ae}px)`;break;case"bottom":qe.transform=`translateY(${-ae}px)`;break;case"left":qe.transform=`translateX(${ae}px)`;break;default:qe.transform=`translateX(${-ae}px)`;break}return Ee?qe.width=Rg(Ce):qe.height=Rg(Ce),qe},[te,ae,i,Ee,Ce]),ge=c.useRef(null),ze=!!F,we=typeof F=="object"&&F||{},Ie=ft(qe=>{ve(qe),we.onResize?.(qe)}),{dragElementProps:Oe,isDragging:je}=QH({prefixCls:`${o}-resizable`,direction:i,className:h?.dragger,style:Q?.dragger,maxSize:T,containerRef:ge,currentSize:Ce,onResize:Ie,onResizeStart:we.onResizeStart,onResizeEnd:we.onResizeEnd}),nt={onMouseEnter:J,onMouseOver:q,onMouseLeave:D,onClick:X,onKeyDown:V,onKeyUp:Z,onFocus:qe=>{K(qe.target)}},Ye=c.createElement(no,us({key:"panel"},ue,{visible:r,forceRender:f,onVisibleChanged:H,removeOnLeave:!1,leavedClassName:`${o}-content-wrapper-hidden`}),({className:qe,style:Je},Ue)=>{const Pe=c.createElement(KH,us({id:S,containerRef:Ue,prefixCls:o,className:U(C,h?.section),style:{...R,...Q?.section}},Qn(e,{aria:!0}),nt),z);return c.createElement("div",us({ref:ge,className:U(`${o}-content-wrapper`,je&&`${o}-content-wrapper-dragging`,h?.wrapper,!je&&qe),style:{...Je,...be,...Q?.wrapper}},Qn(e,{data:!0})),ze&&c.createElement("div",Oe),B?B(Pe):Pe)}),De={...v};return x&&(De.zIndex=x),c.createElement(U$.Provider,{value:me},c.createElement("div",{className:U(o,`${o}-${i}`,b,{[`${o}-open`]:r,[`${o}-inline`]:l}),style:De,tabIndex:-1,ref:G},ne,Ye))},eD=c.forwardRef(JH),tD=e=>{const{open:t=!1,prefixCls:o="rc-drawer",placement:r="right",autoFocus:i=!0,keyboard:l=!0,width:u,height:f,size:p,maxSize:m,mask:h=!0,maskClosable:b=!0,getContainer:v,forceRender:x,afterOpenChange:C,destroyOnHidden:S,onMouseEnter:R,onMouseOver:E,onMouseLeave:N,onClick:$,onKeyDown:w,onKeyUp:T,onClose:z,resizable:A,defaultSize:P,focusTriggerAfterClose:j,panelRef:L}=e,[I,H]=c.useState(!1),[W,J]=c.useState(!1);un(()=>{J(!0)},[]);const q=W?t:!1,D=c.useRef(null),X=c.useRef(null);un(()=>{q&&(X.current=document.activeElement)},[q]);const V=k=>{H(k),C?.(k),!k&&j!==!1&&X.current&&!D.current?.contains(X.current)&&X.current?.focus({preventScroll:!0})},Z=c.useMemo(()=>({panel:L}),[L]);if(!x&&!I&&!q&&S)return null;const B={...e,open:q,prefixCls:o,placement:r,autoFocus:i,keyboard:l,width:u,height:f,size:p,maxSize:m,defaultSize:P,mask:h,maskClosable:b,inline:v===!1,afterOpenChange:V,ref:D,resizable:A,...{onMouseEnter:R,onMouseOver:E,onMouseLeave:N,onClick:$,onKeyDown:w,onKeyUp:T}},F=({top:k,event:G})=>{k&&l&&(G.stopPropagation(),z?.(G))};return c.createElement(tR.Provider,{value:Z},c.createElement(dc,{open:q||x||I,autoDestroy:!1,getContainer:v,autoLock:h&&(q||I),onEsc:F},c.createElement(eD,B)))},nR=e=>{const{prefixCls:t,ariaId:o,title:r,footer:i,extra:l,closable:u,loading:f,onClose:p,headerStyle:m,bodyStyle:h,footerStyle:b,children:v,classNames:x,styles:C}=e,S=Kt("drawer"),{classNames:R,styles:E,closable:N}=S,[$,w]=dn([R,x],[E,C],{props:{...e,closable:u??N}}),T=c.useMemo(()=>{const I=u??N;if(I!==!1)return Wt(I)&&I?.placement==="end"?"end":"start"},[u,N]),z=c.useCallback(I=>c.createElement("button",{type:"button",onClick:p,className:U(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},$.close),style:w.close},I),[p,t,T,$.close,w.close]),[A,P]=s2(xs(e),xs(S),{closable:!0,closeIconRender:z}),j=()=>!r&&!A?null:c.createElement("div",{style:{...w.header,...m},className:U(`${t}-header`,$.header,{[`${t}-header-close-only`]:A&&!r&&!l})},c.createElement("div",{className:`${t}-header-title`},T==="start"&&P,r&&c.createElement("div",{className:U(`${t}-title`,$.title),style:w.title,id:o},r)),l&&c.createElement("div",{className:U(`${t}-extra`,$.extra),style:w.extra},l),T==="end"&&P),L=()=>i?c.createElement("div",{className:U(`${t}-footer`,$.footer),style:{...w.footer,...b}},i):null;return c.createElement(c.Fragment,null,j(),c.createElement("div",{className:U(`${t}-body`,$.body),style:{...w.body,...h}},f?c.createElement(Ia,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):v),L())},nD=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},oR=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),rR=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...oR({opacity:e},{opacity:1})}),oD=(e,t)=>[rR(.7,t),oR({transform:nD(e)},{transform:"none"})],rD=e=>{const{componentCls:t,motionDurationSlow:o}=e;return{[t]:{[`${t}-mask-motion`]:rR(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>({...r,[`&-${i}`]:oD(i,o)}),{})}}},aD=e=>{const{borderRadiusSM:t,componentCls:o,zIndexPopup:r,colorBgMask:i,colorBgElevated:l,motionDurationSlow:u,motionDurationMid:f,paddingXS:p,padding:m,paddingLG:h,fontSizeLG:b,lineHeightLG:v,lineWidth:x,lineType:C,colorSplit:S,marginXS:R,colorIcon:E,colorIconHover:N,colorBgTextHover:$,colorBgTextActive:w,colorText:T,fontWeightStrong:z,footerPaddingBlock:A,footerPaddingInline:P,draggerSize:j,calc:L}=e,I=`${o}-content-wrapper`,H=`${o}-resizable-dragger`;return{[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto",[`&${o}-mask-blur`]:{backdropFilter:"blur(4px)"}},[I]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${u}`,"&-hidden":{display:"none"}},[`&-left > ${I}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${I}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${I}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${I}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${re(m)} ${re(h)}`,fontSize:b,lineHeight:v,borderBottom:`${re(x)} ${C} ${S}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:L(b).add(p).equal(),height:L(b).add(p).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:E,fontWeight:z,fontSize:b,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${f}`,textRendering:"auto",[`&${o}-close-end`]:{marginInlineStart:R},[`&:not(${o}-close-end)`]:{marginInlineEnd:R},"&:hover":{color:N,backgroundColor:$,textDecoration:"none"},"&:active":{backgroundColor:w},...Lr(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:b,lineHeight:v},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:h,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${re(A)} ${re(P)}`,borderTop:`${re(x)} ${C} ${S}`},[H]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${H}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:j,cursor:"col-resize"},[`${H}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:j,cursor:"col-resize"},[`${H}-top`]:{insetInline:0,bottom:0,height:j,cursor:"row-resize"},[`${H}-bottom`]:{insetInline:0,top:0,height:j,cursor:"row-resize"},[`${I}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${o}-content`]:{pointerEvents:"none"},[`${o}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},iD=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),aR=Qt("Drawer",e=>{const t=Gt(e,{});return[aD(t),rD(t)]},iD),sD={distance:180},W$=378,G$={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},iR=e=>{const{rootClassName:t,size:o,defaultSize:r=W$,height:i,width:l,mask:u,push:f=sD,open:p,afterOpenChange:m,onClose:h,prefixCls:b,getContainer:v,panelRef:x=null,style:C,className:S,resizable:R,"aria-labelledby":E,focusable:N,maskClosable:$,maskStyle:w,drawerStyle:T,contentWrapperStyle:z,destroyOnClose:A,destroyOnHidden:P,...j}=e,{placement:L}=j,I=Wr(),H=j.title?I:void 0,{getPopupContainer:W,getPrefixCls:J,direction:q,className:D,style:X,classNames:V,styles:Z,mask:Q,focusable:B}=Kt("drawer"),F=J("drawer",b),[k,G]=aR(F),K=v===void 0&&W?()=>W(document.body):v,te=c.useMemo(()=>Go(o)?o:o==="large"?736:o==="default"?W$:typeof o=="string"?/^\d+(\.\d+)?$/.test(o)?Number(o):o:!L||L==="left"||L==="right"?l:i,[o,L,l,i]),Y={motionName:Fr(F,"mask-motion"),...G$},ie=je=>({motionName:Fr(F,`panel-motion-${je}`),...G$}),se=_2(),ae=oo(x,se),[me,ne]=mc("Drawer",j.zIndex),[ue,ye,ve]=l2(u,Q,F,$),Ee=P2({...B,...N},K!==!1&&ue),{classNames:Ce,styles:be,rootStyle:ge}=j,ze={...e,zIndex:me,panelRef:x,mask:ue,maskClosable:ve,defaultSize:r,push:f,focusable:Ee},[we,Ie]=dn([V,Ce],[Z,be],{props:ze}),Oe=U({"no-mask":!ue,[`${F}-rtl`]:q==="rtl"},t,k,G,we.root);return c.createElement($s,{form:!0,space:!0},c.createElement(bf.Provider,{value:ne},c.createElement(tD,{prefixCls:F,onClose:h,maskMotion:Y,motion:ie,...j,classNames:{mask:U(we.mask,ye.mask),section:we.section,wrapper:we.wrapper,dragger:we.dragger},styles:{mask:{...Ie.mask,...w},section:{...Ie.section,...T},wrapper:{...Ie.wrapper,...z},dragger:Ie.dragger},open:p,mask:ue,maskClosable:ve,push:f,size:te,defaultSize:r,style:{...X,...C},rootStyle:{...ge,...Ie.root},className:U(D,S),rootClassName:Oe,getContainer:K,afterOpenChange:m,panelRef:ae,zIndex:me,...R?{resizable:R}:{},"aria-labelledby":E??H,destroyOnHidden:P??A,focusTriggerAfterClose:Ee.focusTriggerAfterClose,focusTrap:Ee.trap},c.createElement(nR,{prefixCls:F,size:o,...j,ariaId:H,onClose:h}))))},lD=e=>{const{prefixCls:t,style:o,className:r,placement:i="right",...l}=e,{getPrefixCls:u}=c.useContext(xt),f=u("drawer",t),[p,m]=aR(f),h=U(f,`${f}-pure`,`${f}-${i}`,p,m,r);return c.createElement("div",{className:h,style:o},c.createElement(nR,{prefixCls:f,...l}))};iR._InternalPanelDoNotUseOrYouWillBeFired=lD;function X$(e){return["small","middle","medium","large"].includes(e)}function k$(e){return e?Go(e):!1}const sR=ce.createContext({latestIndex:0}),cD=sR.Provider,uD=e=>{const{className:t,prefix:o,index:r,children:i,separator:l,style:u,classNames:f,styles:p}=e,{latestIndex:m}=c.useContext(sR);return pr(i)?c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:u},i),r<m&&l&&c.createElement("span",{className:U(`${o}-item-separator`,f?.separator),style:p?.separator},l)):null},dD=e=>{const{componentCls:t,antCls:o}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},fD=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},mD=Qt("Space",e=>{const t=Gt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[dD(t),fD(t)]},()=>({}),{resetStyle:!1}),pD=c.forwardRef((e,t)=>{const{getPrefixCls:o,direction:r,size:i,className:l,style:u,classNames:f,styles:p}=Kt("space"),{size:m=i??"small",align:h,className:b,rootClassName:v,children:x,direction:C,orientation:S,prefixCls:R,split:E,separator:N,style:$,vertical:w,wrap:T=!1,classNames:z,styles:A,...P}=e,[j,L]=Array.isArray(m)?m:[m,m],I=X$(L),H=X$(j),W=k$(L),J=k$(j),q=zo(x,{keepEmpty:!0}),[D,X]=c2(S,w,C),V=h===void 0&&!X?"center":h,Z=N??E,Q=o("space",R),[B,F]=mD(Q),k={...e,size:m,orientation:D,align:V},[G,K]=dn([f,z],[p,A],{props:k}),te=U(Q,l,B,`${Q}-${D}`,{[`${Q}-rtl`]:r==="rtl",[`${Q}-align-${V}`]:V,[`${Q}-gap-row-${L}`]:I,[`${Q}-gap-col-${j}`]:H},b,v,F,G.root),Y=U(`${Q}-item`,G.item),ie=q.map((me,ne)=>{const ue=me?.key||`${Y}-${ne}`;return c.createElement(uD,{prefix:Q,classNames:G,styles:K,className:Y,key:ue,index:ne,separator:Z,style:K.item},me)}),se=c.useMemo(()=>({latestIndex:q.reduce((ne,ue,ye)=>pr(ue)?ye:ne,0)}),[q]);if(q.length===0)return null;const ae={};return T&&(ae.flexWrap="wrap"),!H&&J&&(ae.columnGap=j),!I&&W&&(ae.rowGap=L),c.createElement("div",{ref:t,className:te,style:{...ae,...K.root,...u,...$},...P},c.createElement(cD,{value:se},ie))}),k0=pD;k0.Compact=y2;k0.Addon=DH;var ad={},Y$;function gD(){if(Y$)return ad;Y$=1,Object.defineProperty(ad,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};return ad.default=e,ad}var hD=gD();const bD=Xt(hD);function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Mb.apply(this,arguments)}const vD=(e,t)=>c.createElement(Zt,Mb({},e,{ref:t,icon:bD})),yD=c.forwardRef(vD),xD=e=>{const{getPrefixCls:t,direction:o}=c.useContext(xt),{prefixCls:r,className:i}=e,l=t("input-group",r),u=t("input"),[f,p]=UN(u),m=U(l,p,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:o==="rtl"},f,i),h=c.useContext(qr),b=c.useMemo(()=>({...h,isFormItemInput:!1}),[h]);return c.createElement(qr.Provider,{value:b},c.createElement(k0.Compact,{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},SD=e=>{const{componentCls:t,paddingXS:o}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},CD=Qt(["Input","OTP"],e=>{const t=Gt(e,xc(e));return SD(t)},Sc),$D=c.forwardRef((e,t)=>{const{className:o,value:r,onChange:i,onActiveChange:l,index:u,mask:f,onFocus:p,...m}=e,{getPrefixCls:h}=c.useContext(xt),b=h("otp"),v=typeof f=="string"?f:r,x=c.useRef(null);c.useImperativeHandle(t,()=>x.current);const C=N=>{i(u,N.target.value)},S=()=>{Lt(()=>{const N=x.current?.input;document.activeElement===N&&N&&N.select()})},R=N=>{p?.(N),S()},E=N=>{const{key:$,ctrlKey:w,metaKey:T}=N;$==="ArrowLeft"?l(u-1):$==="ArrowRight"?l(u+1):$==="z"&&(w||T)?N.preventDefault():$==="Backspace"&&!r&&l(u-1),S()};return c.createElement("span",{className:`${b}-input-wrapper`,role:"presentation"},f&&r!==""&&r!==void 0&&c.createElement("span",{className:`${b}-mask-icon`,"aria-hidden":"true"},v),c.createElement(Rf,{"aria-label":`OTP Input ${u+1}`,type:f===!0?"password":"text",...m,ref:x,value:r,onInput:C,onFocus:R,onKeyDown:E,onMouseDown:S,onMouseUp:S,className:U(o,{[`${b}-mask-input`]:f})}))});function id(e){return(e||"").split("")}const ED=e=>{const{index:t,prefixCls:o,separator:r,className:i,style:l}=e,u=mn(r)?r(t):r;return u?c.createElement("span",{className:U(`${o}-separator`,i),style:l},u):null},wD=c.forwardRef((e,t)=>{const{prefixCls:o,length:r=6,size:i,defaultValue:l,value:u,onChange:f,formatter:p,separator:m,variant:h,disabled:b,status:v,autoFocus:x,mask:C,type:S,autoComplete:R,onInput:E,onFocus:N,inputMode:$,classNames:w,styles:T,className:z,style:A,...P}=e,{classNames:j,styles:L,getPrefixCls:I,direction:H,style:W,className:J}=Kt("otp"),q=I("otp",o),D={...e,length:r},X=pn(W),V=pn(A),[Z,Q]=dn([j,w],[L,X,T,V],{props:D}),B=Qn(P,{aria:!0,data:!0,attr:!0}),[F,k]=CD(q),G=bo(ge=>i??ge),K=c.useContext(qr),te=Cf(K.status,v),Y=c.useMemo(()=>({...K,status:te,hasFeedback:!1,feedbackIcon:null}),[K,te]),ie=c.useRef(null),se=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{se.current[0]?.focus()},blur:()=>{for(let ge=0;ge<r;ge+=1)se.current[ge]?.blur()},nativeElement:ie.current}));const ae=ge=>p?p(ge):ge,[me,ne]=c.useState(()=>id(ae(l||"")));c.useEffect(()=>{u!==void 0&&ne(id(u))},[u]);const ue=ft(ge=>{ne(ge),E&&E(ge),f&&ge.length===r&&ge.every(ze=>ze)&&ge.some((ze,we)=>me[we]!==ze)&&f(ge.join(""))}),ye=ft((ge,ze)=>{let we=ho(me);for(let Oe=0;Oe<ge;Oe+=1)we[Oe]||(we[Oe]="");ze.length<=1?we[ge]=ze:we=we.slice(0,ge).concat(id(ze)),we=we.slice(0,r);for(let Oe=we.length-1;Oe>=0&&!we[Oe];Oe-=1)we.pop();const Ie=ae(we.map(Oe=>Oe||" ").join(""));return we=id(Ie).map((Oe,je)=>Oe===" "&&!we[je]?we[je]:Oe),we}),ve=(ge,ze)=>{const we=ye(ge,ze),Ie=Math.min(ge+ze.length,r-1);Ie!==ge&&we[ge]!==void 0&&se.current[Ie]?.focus(),ue(we)},Ee=ge=>{se.current[ge]?.focus()},Ce=(ge,ze)=>{for(let we=0;we<ze;we+=1)if(!se.current[we]?.input?.value){se.current[we]?.focus();break}N?.(ge)},be={variant:h,disabled:b,status:te,mask:C,type:S,inputMode:$,autoComplete:R};return c.createElement("div",{...B,ref:ie,className:U(z,q,{[`${q}-sm`]:G==="small",[`${q}-lg`]:G==="large",[`${q}-rtl`]:H==="rtl"},k,F,J,Z.root),style:Q.root,role:"group"},c.createElement(qr.Provider,{value:Y},Array.from({length:r}).map((ge,ze)=>{const we=`otp-${ze}`,Ie=me[ze]||"";return c.createElement(c.Fragment,{key:we},c.createElement($D,{ref:Oe=>{se.current[ze]=Oe},index:ze,size:G,htmlSize:1,className:U(Z.input,`${q}-input`),style:Q.input,onChange:ve,value:Ie,onActiveChange:Ee,autoFocus:ze===0&&x,onFocus:Oe=>Ce(Oe,ze),...be}),ze<r-1&&c.createElement(ED,{separator:m,index:ze,prefixCls:q,className:U(Z.separator),style:Q.separator}))})))});var sd={},K$;function ND(){if(K$)return sd;K$=1,Object.defineProperty(sd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};return sd.default=e,sd}var RD=ND();const MD=Xt(RD);function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Tb.apply(this,arguments)}const TD=(e,t)=>c.createElement(Zt,Tb({},e,{ref:t,icon:MD})),OD=c.forwardRef(TD);var ld={},Q$;function zD(){if(Q$)return ld;Q$=1,Object.defineProperty(ld,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};return ld.default=e,ld}var AD=zD();const ID=Xt(AD);function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ob.apply(this,arguments)}const PD=(e,t)=>c.createElement(Zt,Ob({},e,{ref:t,icon:ID})),BD=c.forwardRef(PD),jD=e=>e?c.createElement(BD,null):c.createElement(OD,null),_D={click:"onClick",hover:"onMouseOver"},HD=c.forwardRef((e,t)=>{const{disabled:o,action:r="click",visibilityToggle:i=!0,iconRender:l,prefixCls:u,inputPrefixCls:f,suffix:p,className:m,style:h,classNames:b,styles:v,...x}=e,{getPrefixCls:C,className:S,style:R,classNames:E,styles:N,iconRender:$}=Kt("inputPassword"),[w]=za("global"),T=c.useContext(Vr),z=o??T,A={...e,disabled:z},[P,j]=dn([E,b],[N,v],{props:A}),L=Wt(i)&&i.visible!==void 0,[I,H]=c.useState(()=>L?i.visible:!1),W=c.useRef(null);c.useEffect(()=>{L&&H(i.visible)},[L,i]);const J=eR(W),q=()=>{if(z)return;I&&J();const F=!I;H(F),Wt(i)&&i.onVisibleChange?.(F)},D=F=>{const k=_D[r]||"",K=(l||$||jD)(I),te=Wt(i)?i.tabIndex:void 0;return c.createElement("span",{key:"passwordIcon",role:"button",tabIndex:z?-1:te??0,className:`${F}-icon`,"aria-disabled":z,"aria-pressed":I,"aria-label":I?w.hide:w.show,onMouseDown:Y=>{Y.preventDefault()},onMouseUp:Y=>{Y.preventDefault()},onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),q())},[k]:q},K)},X=C("input",f),V=C("input-password",u),Z=i&&D(V),Q=U(V,S,m,{[`${V}-${e.size}`]:!!e.size}),B={...x,type:I?"text":"password",prefixCls:X,suffix:c.createElement(c.Fragment,null,Z,p),disabled:z,className:Q,style:{...R,...h},classNames:P,styles:j};return c.createElement(Rf,{ref:oo(t,W),...B})}),DD=e=>{const{componentCls:t,antCls:o,calc:r,max:i}=e,l=`${t}-btn`,[u,f]=Vt(o,"input-search"),p=e.inputFontSizeSM??e.fontSize,m=i(e.controlHeightSM,r(p).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[u("btn-height")]:re(e.controlHeight),width:"100%",[l]:{height:f("btn-height"),"&:focus-visible":{zIndex:5},[`&${o}-btn-icon-only`]:{width:f("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[u("btn-height")]:re(e.controlHeightLG)},[`&${t}-small`]:{[u("btn-height")]:re(e.controlHeightSM)},[`&${t}-small ${l}`]:{minHeight:m,[`&${e.antCls}-btn-icon-only`]:{minWidth:m}}}}},LD=Qt(["Input","Search"],e=>{const t=Gt(e,xc(e));return DD(t)},Sc),VD=c.forwardRef((e,t)=>{const{prefixCls:o,inputPrefixCls:r,className:i,size:l,style:u,enterButton:f=!1,searchIcon:p,addonAfter:m,loading:h,disabled:b,onSearch:v,onChange:x,onCompositionStart:C,onCompositionEnd:S,variant:R,onPressEnter:E,classNames:N,styles:$,hidden:w,...T}=e,{direction:z,getPrefixCls:A,className:P,style:j,classNames:L,styles:I,searchIcon:H}=Kt("inputSearch"),W=c.useContext(Vr),J=b??W,q={...e,enterButton:f},[D,X]=dn([L,N],[I,$],{props:q},{button:{_default:"root"}}),V=c.useRef(!1),Z=A("input-search",o),Q=A("input",r),[B,F]=LD(Z),{compactSize:k}=Rs(Z,z),G=bo(we=>l??k??we),K=c.useRef(null),te=we=>{we?.target&&we.type==="click"&&v&&v(we.target.value,we,{source:"clear"}),x?.(we)},Y=we=>{document.activeElement===K.current?.input&&we.preventDefault()},ie=we=>{v&&v(K.current?.input?.value,we,{source:"input"})},se=we=>{V.current||h||(E?.(we),ie(we))},ae=typeof f=="boolean"?Wo(p,H,c.createElement(B0,null)):null,me=`${Z}-btn`,ne=U(me,{[`${me}-${R}`]:R});let ue;const ye=f||{},ve=ye.type&&ye.type.__ANT_BUTTON===!0;if(ve||ye.type==="button"){const we=ye.props;ue=Ao(ye,{disabled:J||we.disabled||!ve&&h,onMouseDown:Y,onClick:Ie=>{ye?.props?.onClick?.(Ie),ie(Ie)},key:"enterButton",...ve?{className:U(ne,we.className),loading:h||we.loading,size:G}:{}})}else ue=c.createElement(to,{classNames:D.button,styles:X.button,className:ne,color:f?"primary":"default",size:G,disabled:b,key:"enterButton",onMouseDown:Y,onClick:ie,loading:h,icon:ae,variant:R==="borderless"||R==="filled"||R==="underlined"?"text":f?"solid":void 0},f);m&&(ue=[ue,Ao(m,{key:"addonAfter"})]);const Ee=U(Z,F,{[`${Z}-rtl`]:z==="rtl",[`${Z}-${G}`]:!!G,[`${Z}-with-button`]:!!f},i,P,B,D.root),Ce=we=>{V.current=!0,C?.(we)},be=we=>{V.current=!1,S?.(we)},ge=Qn(T,{data:!0}),ze=xn({...T,classNames:xn(D,["button","root"]),styles:xn(X,["button","root"]),prefixCls:Q,type:"search",size:G,variant:R,onPressEnter:se,onCompositionStart:Ce,onCompositionEnd:be,onChange:te,disabled:b},Object.keys(ge));return c.createElement(y2,{className:Ee,style:{...X.root,...j,...u},...ge,hidden:w},c.createElement(Rf,{ref:oo(K,t),...ze}),ue)}),FD=e=>{const{componentCls:t,paddingLG:o}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
238
+ &-allow-clear > ${t},
239
+ &-affix-wrapper${r}-has-feedback ${t}
240
+ `]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},qD=Qt(["Input","TextArea"],e=>{const t=Gt(e,xc(e));return FD(t)},Sc,{resetFont:!1}),UD=c.forwardRef((e,t)=>{const{prefixCls:o,bordered:r=!0,size:i,disabled:l,status:u,allowClear:f,classNames:p,rootClassName:m,className:h,style:b,styles:v,variant:x,showCount:C,onMouseDown:S,onResize:R,...E}=e,{getPrefixCls:N,direction:$,allowClear:w,autoComplete:T,className:z,style:A,classNames:P,styles:j}=Kt("textArea"),L=c.useContext(Vr),I=l??L,{status:H,hasFeedback:W,feedbackIcon:J}=c.useContext(qr),q=Cf(H,u),D=pn(A),X=pn(b),[V,Z]=dn([P,p],[j,D,v,X],{props:e}),Q=c.useRef(null);c.useImperativeHandle(t,()=>({resizableTextArea:Q.current?.resizableTextArea,focus:Ce=>{BE(Q.current?.resizableTextArea?.textArea,Ce)},blur:()=>Q.current?.blur(),nativeElement:Q.current?.nativeElement||null}));const B=N("input",o),F=hr(B),[k,G]=qN(B,m);qD(B,F);const{compactSize:K,compactItemClassnames:te}=Rs(B,$),Y=bo(Ce=>i??K??Ce),[ie,se]=$f("textArea",x,r),ae=r2({allowClear:f,contextAllowClear:w,componentName:"TextArea"}),[me,ne]=c.useState(!1),[ue,ye]=c.useState(!1),ve=Ce=>{ne(!0),S?.(Ce);const be=()=>{ne(!1),document.removeEventListener("mouseup",be)};document.addEventListener("mouseup",be)},Ee=Ce=>{if(R?.(Ce),me&&mn(getComputedStyle)){const be=Q.current?.nativeElement?.querySelector("textarea");be&&getComputedStyle(be).resize==="both"&&ye(!0)}};return c.createElement(kH,{autoComplete:T,...E,style:Z.root,styles:Z,disabled:I,allowClear:ae,className:U(G,F,h,m,te,z,V.root,{[`${B}-textarea-affix-wrapper-resize-dirty`]:ue}),classNames:{...V,textarea:U({[`${B}-sm`]:Y==="small",[`${B}-lg`]:Y==="large"},k,V.textarea,me&&`${B}-mouse-active`),variant:U({[`${B}-${ie}`]:se},ec(B,q)),affixWrapper:U(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:$==="rtl",[`${B}-affix-wrapper-sm`]:Y==="small",[`${B}-affix-wrapper-lg`]:Y==="large",[`${B}-textarea-show-count`]:C||e.count?.show},k)},prefixCls:B,suffix:W&&c.createElement("span",{className:`${B}-textarea-suffix`},J),showCount:C,ref:Q,onResize:Ee,onMouseDown:ve})}),As=Rf;As.Group=xD;As.Search=VD;As.TextArea=UD;As.Password=HD;As.OTP=wD;function WD(e,t,o){return typeof o=="boolean"?o:e.length?!0:zo(t).some(i=>i.type===zN)}const Mf=({suffixCls:e,tagName:t,displayName:o})=>r=>c.forwardRef((l,u)=>c.createElement(r,{ref:u,suffixCls:e,tagName:t,...l})),Y0=c.forwardRef((e,t)=>{const{prefixCls:o,suffixCls:r,className:i,tagName:l,...u}=e,{getPrefixCls:f}=c.useContext(xt),p=f("layout",o),[m,h]=ON(p),b=r?`${p}-${r}`:p;return c.createElement(l,{className:U(o||b,i,m,h),ref:t,...u})}),GD=c.forwardRef((e,t)=>{const{direction:o}=c.useContext(xt),[r,i]=c.useState([]),{prefixCls:l,className:u,rootClassName:f,children:p,hasSider:m,tagName:h,style:b,...v}=e,x=xn(v,["suffixCls"]),{getPrefixCls:C,className:S,style:R}=Kt("layout"),E=C("layout",l),N=WD(r,p,m),[$,w]=ON(E),T=U(E,{[`${E}-has-sider`]:N,[`${E}-rtl`]:o==="rtl"},S,u,f,$,w),z=c.useMemo(()=>({siderHook:{addSider:A=>{i(P=>[].concat(ho(P),[A]))},removeSider:A=>{i(P=>P.filter(j=>j!==A))}}}),[]);return c.createElement(RN.Provider,{value:z},c.createElement(h,{ref:t,className:T,style:{...R,...b},...x},p))}),XD=Mf({tagName:"div",displayName:"Layout"})(GD),kD=Mf({suffixCls:"header",tagName:"header",displayName:"Header"})(Y0),YD=Mf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Y0),KD=Mf({suffixCls:"content",tagName:"main",displayName:"Content"})(Y0),Is=XD;Is.Header=kD;Is.Footer=YD;Is.Content=KD;Is.Sider=zN;Is._InternalSiderContext=Nf;const rf=100,lR=rf/5,cR=rf/2-lR/2,Mg=cR*2*Math.PI,Z$=50,J$=e=>{const{dotClassName:t,style:o,hasCircleCls:r}=e;return c.createElement("circle",{className:U(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:cR,cx:Z$,cy:Z$,strokeWidth:lR,style:o})},QD=({percent:e,prefixCls:t})=>{const o=`${t}-dot`,r=`${o}-holder`,i=`${r}-hidden`,[l,u]=c.useState(!1);un(()=>{e!==0&&u(!0)},[e]);const f=Math.max(Math.min(e,100),0);if(!l)return null;const p={strokeDashoffset:`${Mg/4}`,strokeDasharray:`${Mg*f/100} ${Mg*(100-f)/100}`};return c.createElement("span",{className:U(r,`${o}-progress`,{[i]:f<=0})},c.createElement("svg",{viewBox:`0 0 ${rf} ${rf}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f},c.createElement(J$,{dotClassName:o,hasCircleCls:!0}),c.createElement(J$,{dotClassName:o,style:p})))};function ZD(e){const{prefixCls:t,percent:o=0,className:r,style:i}=e,l=`${t}-dot`,u=`${l}-holder`,f=`${u}-hidden`;return c.createElement(c.Fragment,null,c.createElement("span",{className:U(u,r,o>0&&f),style:i},c.createElement("span",{className:U(l,`${t}-dot-spin`)},[1,2,3,4].map(p=>c.createElement("i",{className:`${t}-dot-item`,key:p})))),c.createElement(QD,{prefixCls:t,percent:o}))}function JD(e){const{prefixCls:t,indicator:o,percent:r,className:i,style:l}=e,u=`${t}-dot`;return o&&c.isValidElement(o)?Ao(o,f=>({className:U(f.className,u,i),style:{...f.style,...l},percent:r})):c.createElement(ZD,{prefixCls:t,percent:r,className:i,style:l})}const eL=new St("antSpinMove",{to:{opacity:1}}),tL=new St("antRotate",{to:{transform:"rotate(405deg)"}}),nL=e=>{const{componentCls:t}=e,o=`${t}-section`;return{[t]:{...Dn(e),position:"relative","&-rtl":{direction:"rtl"},[`&${o}, ${o}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${o}`]:{display:"inline-flex"},[o]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[o]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},oL=e=>{const{componentCls:t,antCls:o,motionDurationSlow:r}=e,[i,l]=Vt(o,"spin");return{[t]:{[i("dot-holder-size")]:e.dotSize,[i("dot-item-size")]:`calc((${l("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:l("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(u=>`${u} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:l("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:tL,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:l("dot-item-size"),height:l("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:eL,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(u=>`${u} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},rL=e=>{const{componentCls:t}=e,[o]=Vt(e.antCls,"spin");return{[t]:{"&-sm":{[o("dot-holder-size")]:e.dotSizeSM},"&-lg":{[o("dot-holder-size")]:e.dotSizeLG}}}},aL=e=>{const{controlHeightLG:t,controlHeight:o}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},iL=Qt("Spin",e=>{const t=Gt(e,{spinDotDefault:e.colorTextDescription});return[nL(t),oL(t),rL(t)]},aL),sL=200,eE=[[30,.05],[70,.03],[96,.01]];function lL(e,t){const[o,r]=c.useState(0),i=c.useRef(null),l=t==="auto";return c.useEffect(()=>(l&&e&&(r(0),i.current=setInterval(()=>{r(u=>{const f=100-u;for(let p=0;p<eE.length;p+=1){const[m,h]=eE[p];if(u<=m)return u+f*h}return u})},sL)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[l,e]),l?o:t}let uR;function cL(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const K0=e=>{const{prefixCls:t,spinning:o=!0,delay:r=0,className:i,rootClassName:l,size:u,tip:f,description:p,wrapperClassName:m,style:h,children:b,fullscreen:v=!1,indicator:x,percent:C,classNames:S,styles:R,...E}=e,{getPrefixCls:N,direction:$,indicator:w,className:T,style:z,classNames:A,styles:P}=Kt("spin"),j=N("spin",t),[L,I]=iL(j),[H,W]=c.useState(()=>o&&!cL(o,r)),J=lL(H,C);c.useEffect(()=>{if(o){const G=jH(r,()=>{W(!0)});return G(),()=>{G?.cancel?.()}}W(!1)},[r,o]);const q=bo(G=>u??G),D=p??f,X={...e,size:q,spinning:H,tip:D,description:D,fullscreen:v,children:b,percent:J},[V,Z]=dn([A,S],[P,R],{props:X}),Q=x??w??uR,B=typeof b<"u",F=B||v,k=c.createElement(c.Fragment,null,c.createElement(JD,{className:U(V.indicator),style:Z.indicator,prefixCls:j,indicator:Q,percent:J}),D&&c.createElement("div",{className:U(`${j}-description`,V.tip,V.description),style:{...Z.tip,...Z.description}},D));return c.createElement("div",{className:U(j,{[`${j}-sm`]:q==="small",[`${j}-lg`]:q==="large",[`${j}-spinning`]:H,[`${j}-rtl`]:$==="rtl",[`${j}-fullscreen`]:v},l,V.root,v&&V.mask,F?m:[`${j}-section`,V.section],T,i,L,I),style:{...Z.root,...F?{}:Z.section,...v?Z.mask:{},...z,...h},"aria-live":"polite","aria-busy":H,...E},H&&(F?c.createElement("div",{className:U(`${j}-section`,V.section),style:Z.section},k):k),B&&c.createElement("div",{className:U(`${j}-container`,V.container),style:Z.container},b))};K0.setDefaultIndicator=e=>{uR=e};const uL={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},dL=()=>{const e=c.useRef([]),t=c.useRef(null);return c.useEffect(()=>{const o=Date.now();let r=!1;e.current.forEach(i=>{if(!i)return;r=!0;const l=i.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.current&&o-t.current<100&&(l.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},tE=({bg:e,children:t})=>c.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function nE(e,t){return Object.keys(e).map(o=>{const r=parseFloat(o),i=`${Math.floor(r*t)}%`;return`${e[o]} ${i}`})}const fL=c.forwardRef((e,t)=>{const{prefixCls:o,color:r,gradientId:i,radius:l,className:u,style:f,ptg:p,strokeLinecap:m,strokeWidth:h,size:b,gapDegree:v}=e,x=r&&typeof r=="object",C=x?"#FFF":void 0,S=b/2,R=c.createElement("circle",{className:U(`${o}-circle-path`,u),r:l,cx:S,cy:S,stroke:C,strokeLinecap:m,strokeWidth:h,opacity:p===0?0:1,style:f,ref:t});if(!x)return R;const E=`${i}-conic`,N=v?`${180+v/2}deg`:"0deg",$=nE(r,(360-v)/360),w=nE(r,1),T=`conic-gradient(from ${N}, ${$.join(", ")})`,z=`linear-gradient(to ${v?"bottom":"top"}, ${w.join(", ")})`;return c.createElement(c.Fragment,null,c.createElement("mask",{id:E},R),c.createElement("foreignObject",{x:0,y:0,width:b,height:b,mask:`url(#${E})`},c.createElement(tE,{bg:z},c.createElement(tE,{bg:T}))))}),Dl=100,Tg=(e,t,o,r,i,l,u,f,p,m,h=0)=>{const b=o/100*360*((360-l)/360),v=l===0?0:{bottom:0,top:180,left:90,right:-90}[u];let x=(100-r)/100*t;p==="round"&&r!==100&&(x+=m/2,x>=t&&(x=t-.01));const C=Dl/2;return{stroke:typeof f=="string"?f:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:x+h,transform:`rotate(${i+b+v}deg)`,transformOrigin:`${C}px ${C}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},mL=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const o=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:ce.createElement("style",null,`@keyframes ${o} {
241
+ 0% { transform: rotate(0deg); }
242
+ 100% { transform: rotate(360deg); }
243
+ }`)}});function zb(){return zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},zb.apply(this,arguments)}function oE(e){const t=e??[];return Array.isArray(t)?t:[t]}const pL=e=>{const{id:t,prefixCls:o,classNames:r={},styles:i={},steps:l,strokeWidth:u,railWidth:f,gapDegree:p=0,gapPosition:m,railColor:h,strokeLinecap:b,style:v,className:x,strokeColor:C,percent:S,loading:R,...E}={...uL,...e},N=Dl/2,$=Wr(t),w=`${$}-gradient`,T=N-u/2,z=Math.PI*2*T,A=p>0?90+p/2:-90,P=z*((360-p)/360),{count:j,gap:L}=typeof l=="object"?l:{count:l,gap:2},I=oE(S),H=oE(C),W=H.find(F=>F&&typeof F=="object"),q=W&&typeof W=="object"?"butt":b,{indeterminateStyleProps:D,indeterminateStyleAnimation:X}=mL({id:$,loading:R}),V=Tg(z,P,0,100,A,p,m,h,q,u),Z=dL(),Q=()=>{let F=0;return I.map((k,G)=>{const K=H[G]||H[H.length-1],te=Tg(z,P,F,k,A,p,m,K,q,u);return F+=k,c.createElement(fL,{key:G,color:K,ptg:k,radius:T,prefixCls:o,gradientId:w,className:r.track,style:{...te,...D,...i.track},strokeLinecap:q,strokeWidth:u,gapDegree:p,ref:Y=>{Z[G]=Y},size:Dl})}).reverse()},B=()=>{const F=Math.round(j*(I[0]/100)),k=100/j;let G=0;return new Array(j).fill(null).map((K,te)=>{const Y=te<=F-1?H[0]:h,ie=Y&&typeof Y=="object"?`url(#${w})`:void 0,se=Tg(z,P,G,k,A,p,m,Y,"butt",u,L);return G+=(P-se.strokeDashoffset+L)*100/P,c.createElement("circle",{key:te,className:U(`${o}-circle-path`,r.track),r:T,cx:N,cy:N,stroke:ie,strokeWidth:u,opacity:1,style:{...se,...i.track},ref:ae=>{Z[te]=ae}})})};return c.createElement("svg",zb({className:U(`${o}-circle`,r.root,x),viewBox:`0 0 ${Dl} ${Dl}`,style:{...i.root,...v},id:t,role:"presentation"},E),!j&&c.createElement("circle",{className:U(`${o}-circle-rail`,r.rail),r:T,cx:N,cy:N,stroke:h,strokeLinecap:q,strokeWidth:f||u,style:{...V,...i.rail}}),j?B():Q(),X)};function li(e){return!e||e<0?0:e>100?100:e}function af({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const gL=({percent:e,success:t})=>{const o=li(af({success:t}));return[o,li(li(e)-o)]},hL=({success:e={},strokeColor:t})=>{const{strokeColor:o}=e;return[o||ms.green,t||null]},Tf=(e,t,o)=>{let r=-1,i=-1;if(t==="step"){const l=o.steps,u=o.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,i=u??8):Go(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=l}else if(t==="line"){const l=o?.strokeWidth;typeof e=="string"||typeof e>"u"?i=l||(e==="small"?6:8):Go(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,i]=e==="small"?[60,60]:[120,120]:Go(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},bL=3,vL=e=>bL/e*100,rE=["root","body","indicator"],yL=e=>{const{prefixCls:t,classNames:o,styles:r,railColor:i,trailColor:l,strokeLinecap:u="round",gapPosition:f,gapPlacement:p,gapDegree:m,width:h=120,type:b,children:v,success:x,size:C=h,steps:S}=e,{direction:R}=Kt("progress"),E=i??l,[N,$]=Tf(C,"circle");let{strokeWidth:w}=e;w===void 0&&(w=Math.max(vL(N),6));const T={width:N,height:$,fontSize:N*.15+6},z=c.useMemo(()=>{if(m||m===0)return m;if(b==="dashboard")return 75},[m,b]),A=gL(e),P=c.useMemo(()=>{const q=(p??f)||b==="dashboard"&&"bottom"||void 0,D=R==="rtl";switch(q){case"start":return D?"right":"left";case"end":return D?"left":"right";default:return q}},[R,p,f,b]),j=Wt(e.strokeColor),L=hL({success:x,strokeColor:e.strokeColor}),I=U(`${t}-body`,{[`${t}-circle-gradient`]:j},o.body),H=c.createElement(pL,{steps:S,percent:S?A[1]:A,strokeWidth:w,railWidth:w,strokeColor:S?L[1]:L,strokeLinecap:u,railColor:E,prefixCls:t,gapDegree:z,gapPosition:P,classNames:xn(o,rE),styles:xn(r,rE)}),W=N<=20,J=c.createElement("div",{className:I,style:{...T,...r.body}},H,!W&&v);return W?c.createElement(Ur,{title:v},J):J},Ab="--progress-line-stroke-color",xL=e=>{const t="-100%";return new St("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},SL=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{...Dn(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},CL=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:xL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},$L=e=>{const{componentCls:t,iconCls:o}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},EL=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},wL=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${o}`]:{fontSize:e.fontSizeSM}}}},NL=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),RL=Qt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),o=Gt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[SL(o),CL(o),$L(o),EL(o),wL(o)]},NL),ML=e=>{let t=[];return Object.keys(e).forEach(o=>{const r=Number.parseFloat(o.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[o]})}),t=t.sort((o,r)=>o.key-r.key),t.map(({key:o,value:r})=>`${r} ${o}%`).join(", ")},TL=(e,t)=>{const{from:o=ms.blue,to:r=ms.blue,direction:i=t==="rtl"?"to left":"to right",...l}=e;if(Object.keys(l).length!==0){const f=ML(l),p=`linear-gradient(${i}, ${f})`;return{background:p,[Ab]:p}}const u=`linear-gradient(${i}, ${o}, ${r})`;return{background:u,[Ab]:u}},OL=e=>{const{prefixCls:t,classNames:o,styles:r,direction:i,percent:l,size:u,strokeWidth:f,strokeColor:p,strokeLinecap:m="round",children:h,railColor:b,trailColor:v,percentPosition:x,success:C}=e,{align:S,type:R}=x,E=b??v,N=m==="square"||m==="butt"?0:void 0,$=u??[-1,f||(u==="small"?6:8)],[w,T]=Tf($,"line",{strokeWidth:f}),z={backgroundColor:E||void 0,borderRadius:N,height:T},A=`${t}-track`,P=p&&typeof p!="string"?TL(p,i):{[Ab]:p,background:p},j={width:`${li(l)}%`,height:T,borderRadius:N,...P},L=af(e),I={width:`${li(L)}%`,height:T,borderRadius:N,backgroundColor:C?.strokeColor};return c.createElement("div",{className:U(`${t}-body`,o.body,{[`${t}-body-layout-bottom`]:S==="center"&&R==="outer"}),style:{width:w>0?w:"100%",...r.body}},c.createElement("div",{className:U(`${t}-rail`,o.rail),style:{...z,...r.rail}},c.createElement("div",{className:U(A,o.track),style:{...j,...r.track}},R==="inner"&&h),L!==void 0&&c.createElement("div",{className:U(A,`${A}-success`,o.track),style:{...I,...r.track}})),R==="outer"&&h)},zL=e=>{const{classNames:t,styles:o,size:r,steps:i,rounding:l=Math.round,percent:u=0,strokeWidth:f=8,strokeColor:p,railColor:m,trailColor:h,prefixCls:b,children:v}=e,x=l(i*(u/100)),S=r??[r==="small"?2:14,f],[R,E]=Tf(S,"step",{steps:i,strokeWidth:f}),N=R/i,$=Array.from({length:i}),w=m??h;for(let T=0;T<i;T++){const z=Array.isArray(p)?p[T]:p;$[T]=c.createElement("div",{key:T,className:U(`${b}-steps-item`,{[`${b}-steps-item-active`]:T<=x-1},t.track),style:{backgroundColor:T<=x-1?z:w,width:N,height:E,...o.track}})}return c.createElement("div",{className:U(`${b}-steps-body`,t.body),style:o.body},$,v)},AL=["normal","exception","active","success"],IL=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,rootClassName:i,classNames:l,styles:u,steps:f,strokeColor:p,percent:m=0,size:h="medium",showInfo:b=!0,type:v="line",status:x,format:C,style:S,percentPosition:R={},...E}=e,{align:N="end",type:$="outer"}=R,w=Array.isArray(p)?p[0]:p,T=typeof p=="string"||Array.isArray(p)?p:void 0,z=c.useMemo(()=>{if(w){const se=typeof w=="string"?w:Object.values(w)[0];return new En(se).isLight()}return!1},[p]),A=c.useMemo(()=>{const se=af(e);return Number.parseInt(se!==void 0?(se??0)?.toString():(m??0)?.toString(),10)},[m,e.success]),P=c.useMemo(()=>!AL.includes(x)&&A>=100?"success":x||"normal",[x,A]),{getPrefixCls:j,direction:L,className:I,style:H,classNames:W,styles:J}=Kt("progress"),q=j("progress",o),[D,X]=RL(q),V={...e,percent:m,type:v,size:h,showInfo:b,percentPosition:R},Z=pn(H),Q=pn(S),[B,F]=dn([W,l],[J,Z,u,Q],{props:V}),k=v==="line",G=k&&!f,K=c.useMemo(()=>{if(!b)return null;const se=af(e);let ae;const me=C||(ue=>`${ue}%`),ne=k&&z&&$==="inner";return $==="inner"||C||P!=="exception"&&P!=="success"?ae=me(li(m),li(se)):P==="exception"?ae=k?c.createElement(gi,null):c.createElement(gr,null):P==="success"&&(ae=k?c.createElement(uc,null):c.createElement(Ms,null)),c.createElement("span",{className:U(`${q}-indicator`,{[`${q}-indicator-bright`]:ne,[`${q}-indicator-${N}`]:G,[`${q}-indicator-${$}`]:G},B.indicator),style:F.indicator,title:typeof ae=="string"?ae:void 0},ae)},[b,m,A,P,v,q,C,k,z,$,N,G,B.indicator,F.indicator]),te={...e,classNames:B,styles:F};let Y;v==="line"?Y=f?c.createElement(zL,{...te,strokeColor:T,prefixCls:q,steps:Wt(f)?f.count:f},K):c.createElement(OL,{...te,strokeColor:w,prefixCls:q,direction:L,percentPosition:{align:N,type:$}},K):(v==="circle"||v==="dashboard")&&(Y=c.createElement(yL,{...te,strokeColor:w,prefixCls:q,progressStatus:P},K));const ie=U(q,`${q}-status-${P}`,{[`${q}-${v==="dashboard"&&"circle"||v}`]:v!=="line",[`${q}-inline-circle`]:v==="circle"&&Tf(h,"circle")[0]<=20,[`${q}-line`]:G,[`${q}-line-align-${N}`]:G,[`${q}-line-position-${$}`]:G,[`${q}-steps`]:f,[`${q}-show-info`]:b,[`${q}-small`]:h==="small",[`${q}-rtl`]:L==="rtl"},I,r,i,B.root,D,X);return c.createElement("div",{ref:t,style:F.root,className:ie,role:"progressbar","aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":100,...xn(E,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},Y)});var cd={},aE;function PL(){if(aE)return cd;aE=1,Object.defineProperty(cd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};return cd.default=e,cd}var BL=PL();const jL=Xt(BL);function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ib.apply(this,arguments)}const _L=(e,t)=>c.createElement(Zt,Ib({},e,{ref:t,icon:jL})),HL=c.forwardRef(_L);function DL(e){const{prefixCls:t,className:o,style:r,status:i}=e,l=`${t}-rail`;return c.createElement("div",{className:U(l,`${l}-${i}`,o),style:r})}const LL=c.createContext({}),Q0=c.createContext(null);function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Pb.apply(this,arguments)}const dR=c.createContext({}),iE=c.forwardRef((e,t)=>{const{className:o,style:r,children:i,...l}=e,{prefixCls:u,classNames:f,styles:p}=c.useContext(Q0),{className:m,style:h}=c.useContext(dR),b=`${u}-item`;return c.createElement("div",Pb({},Qn(l,!1),{ref:t,className:U(`${b}-icon`,f.itemIcon,m,o),style:{...p.itemIcon,...h,...r}}),i)});function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Bb.apply(this,arguments)}function Og(e){return e!=null}function VL(e){const{prefixCls:t,classNames:o,styles:r,data:i,last:l,nextStatus:u,active:f,index:p,itemRender:m,iconRender:h,itemWrapperRender:b,onClick:v}=e,x=`${t}-item`,{railFollowPrevStatus:C}=c.useContext(LL),{ItemComponent:S}=c.useContext(Q0),{onClick:R,title:E,subTitle:N,content:$,description:w,disabled:T,icon:z,status:A,className:P,style:j,classNames:L={},styles:I={},...H}=i,W=$??w,J={item:{...i,content:W},index:p,active:f},q=!!(v||R)&&!T,D={};q&&(D.role="button",D.tabIndex=0,D.onClick=G=>{R?.(G),v(p)},D.onKeyDown=G=>{const{which:K}=G;(K===rt.ENTER||K===rt.SPACE)&&v(p)});const X=A||"wait",V=Og(E),Z=Og(N),Q=U(x,`${x}-${X}`,{[`${x}-custom`]:z,[`${x}-active`]:f,[`${x}-disabled`]:T===!0,[`${x}-empty-header`]:!V&&!Z},P,o.item,L.root);let B=c.createElement(iE,null);h&&(B=h(B,{...J,components:{Icon:iE}}));const F=c.createElement("div",{className:U(`${x}-wrapper`,o.itemWrapper,L.wrapper),style:{...r.itemWrapper,...I.wrapper}},c.createElement(dR.Provider,{value:{className:L.icon,style:I.icon}},B),c.createElement("div",{className:U(`${x}-section`,o.itemSection,L.section),style:{...r.itemSection,...I.section}},c.createElement("div",{className:U(`${x}-header`,o.itemHeader,L.header),style:{...r.itemHeader,...I.header}},V&&c.createElement("div",{className:U(`${x}-title`,o.itemTitle,L.title),style:{...r.itemTitle,...I.title}},E),Z&&c.createElement("div",{title:typeof N=="string"?N:void 0,className:U(`${x}-subtitle`,o.itemSubtitle,L.subtitle),style:{...r.itemSubtitle,...I.subtitle}},N),!l&&c.createElement(DL,{prefixCls:x,className:U(o.itemRail,L.rail),style:{...r.itemRail,...I.rail},status:C?A:u})),Og(W)&&c.createElement("div",{className:U(`${x}-content`,o.itemContent,L.content),style:{...r.itemContent,...I.content}},W)));let k=c.createElement(S,Bb({},H,D,{className:Q,style:{...r.item,...I.root,...j}}),b?b(F):F);return m&&(k=m(k,J)||null),k}function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},jb.apply(this,arguments)}const sE={};function FL(e){const{prefixCls:t="rc-steps",style:o,className:r,classNames:i=sE,styles:l=sE,rootClassName:u,orientation:f,titlePlacement:p,components:m,status:h="process",current:b=0,initial:v=0,onChange:x,items:C,iconRender:S,itemRender:R,itemWrapperRender:E,...N}=e,$=f==="vertical",w=$?"vertical":"horizontal",T=!$&&p==="vertical"?"vertical":"horizontal",z=U(t,`${t}-${w}`,`${t}-title-${T}`,u,r,i.root),A=ce.useMemo(()=>(C||[]).filter(Boolean),[C]),P=ce.useMemo(()=>A.map(({status:J},q)=>{const D=v+q;return J||(D===b?h:D<b?"finish":"wait")}),[A,h,b,v]),j=J=>{x&&b!==J&&x(J)},{root:L="div",item:I="div"}=m||{},H=ce.useMemo(()=>({prefixCls:t,classNames:i,styles:l,ItemComponent:I}),[t,i,l,I]),W=(J,q)=>{const D=v+q,X=P[q],V=P[q+1],Z={...J,status:X};return ce.createElement(VL,{key:D,prefixCls:t,classNames:i,styles:l,data:Z,nextStatus:V,active:D===b,index:D,last:A.length-1===q,iconRender:S,itemRender:R,itemWrapperRender:E,onClick:x&&j})};return ce.createElement(L,jb({className:z,style:{...o,...l?.root}},N),ce.createElement(Q0.Provider,{value:H},A.map(W)))}const qL=c.createContext(null),UL=e=>{const{prefixCls:t}=e;return c.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},c.createElement("title",null,"Arrow"),c.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},WL=e=>{const{prefixCls:t,rootPrefixCls:o,children:r,percent:i}=e,l=`${t}-item-progress-icon`,u=`${l}-circle`,[,f]=Vt(o,"cmp-steps"),p=`calc(${f("progress-radius")} * 2 * ${Math.PI*i/100}) 9999`;return c.createElement(c.Fragment,null,c.createElement("svg",{className:`${l}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i},c.createElement("title",null,"Progress"),c.createElement("circle",{className:U(u,`${u}-rail`)}),c.createElement("circle",{className:U(u,`${u}-ptg`),strokeDasharray:p,transform:"rotate(-90 50 50)"})),r)},GL=e=>{const{componentCls:t,antCls:o}=e,r=`${t}-item`,[i,l]=Vt(o,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${r}-rail`]:{[i("horizontal-rail-margin")]:`calc(${l("icon-size-max")} / 2 - ${l("rail-size")} / 2 + ${l("item-wrapper-padding-top")})`,position:"static",marginTop:l("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:l("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},XL=e=>{const{componentCls:t,customIconFontSize:o,motionDurationSlow:r,iconSize:i,lineWidth:l,lineType:u,antCls:f}=e,p=`${t}-item`,[m,h]=Vt(f,"cmp-steps");return{[t]:{[m("icon-size")]:i,[m("icon-border-width")]:l,[`${p}-icon`]:{width:h("icon-size"),height:h("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:h("icon-size"),textAlign:"center",borderRadius:h("icon-size"),border:`${h("icon-border-width")} ${u} transparent`,transition:["background-color","border","color","inset","transform"].map(b=>`${b} ${r}`).join(", "),zIndex:1},[`${p}-custom ${p}-icon`]:{background:"none",border:0,fontSize:o}}}},kL=e=>{const{componentCls:t,inlineDotSize:o,paddingXS:r,lineWidth:i,antCls:l,calc:u}=e,f=u(r).add(i).equal(),p=`${t}-item`,[m,h]=Vt(l,"cmp-steps");return{[`${t}-inline`]:{[m("items-offset")]:"0",[m("item-wrapper-padding-top")]:f,display:"inline-flex","&:before":{content:'""',flex:h("items-offset")},[p]:{[m("title-vertical-row-gap")]:r,[m("icon-size")]:o,[m("icon-size-active")]:o,[m("title-font-size")]:e.fontSizeSM,[m("title-line-height")]:e.lineHeightSM,[m("item-title-color")]:e.colorTextSecondary,[m("subtitle-font-size")]:e.fontSizeSM,[m("subtitle-line-height")]:e.lineHeightSM,[m("item-subtitle-color")]:e.colorTextQuaternary,[m("rail-size")]:e.lineWidth,[m("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${p}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function YL(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}const Z0=(e,t,o)=>{const{calc:r,componentCls:i,descriptionMaxWidth:l,antCls:u}=e,f=`${i}-item`,[,p]=Vt(u,"cmp-steps");return{[`@container style(${YL(l)})`]:[{[`${f}-icon`]:{marginInlineStart:r(l).sub(p("icon-size")).div(2).equal()},[`${f}-rail`]:{width:"auto",insetInlineStart:r(l).add(p("icon-size")).div(2).add(t).equal(),insetInlineEnd:r(l).sub(p("icon-size")).div(2).sub(t).mul(-1).equal()}},o]}},KL=e=>{const{componentCls:t,descriptionMaxWidth:o,marginXS:r,fontHeightLG:i,margin:l,paddingSM:u,marginXXS:f,antCls:p,calc:m}=e,h=`${t}-item`,[b,v]=Vt(p,"cmp-steps");return{[t]:{[b("icon-size-max")]:`max(${v("icon-size")}, ${v("icon-size-active",v("icon-size"))})`,[`${h}-icon`]:{marginBlockStart:`calc((${v("heading-height")} - ${v("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[b("title-horizontal-item-margin")]:l,[b("title-horizontal-rail-margin")]:l,[b("title-horizontal-title-height")]:i,[b("heading-height")]:`max(${v("icon-size")}, ${v("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${h}:not(:first-child)`]:{marginInlineStart:v("title-horizontal-item-margin")},[`${h}:last-child`]:{flex:"0 1 auto"},[`${h}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${h}-wrapper`]:{columnGap:e.margin},[`${h}-empty-header`]:{[`${h}-header`]:{minHeight:"auto"},[`${h}-content`]:{marginTop:m(v("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${h}-section`]:{flex:1,minWidth:0},[`${h}-header`]:{minHeight:v("heading-height")},[`${h}-title`]:{flex:"0 1 auto"},[`${h}-content`]:{maxWidth:o},[`${h}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${h}-rail`]:{[b("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:v("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[b("title-vertical-row-gap")]:u,[b("title-horizontal-rail-gap")]:f,[b("heading-height")]:v("icon-size-max"),[`> ${h}`]:{flex:"1 1 0%",[`${h}-wrapper`]:{flexDirection:"column",rowGap:v("title-vertical-row-gap"),alignItems:"center"},[`${h}-section`]:{alignSelf:"stretch"},[`${h}-header`]:{flexDirection:"column",alignItems:"center"},[`${h}-title, ${h}-subtitle, ${h}-content`]:{textAlign:"center",maxWidth:"100%"},[`${h}-subtitle`]:{margin:0},[`${h}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${v("icon-size")} - ${v("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${v("icon-size")} / 2 + ${v("title-horizontal-rail-gap")})`}},...Z0(e,r,{[`${h}:last-child`]:{flex:"none"},[`${h}-icon`]:{alignSelf:"flex-start"},[`${h}-section`]:{width:o}})}}},QL=e=>{const{componentCls:t}=e,o=`${t}-item`;return{[`${t}-max-count`]:{[`${o}-ellipsis`]:{[`${o}-title, ${o}-subtitle, ${o}-content`]:{color:e.colorTextDescription}}}}},ZL=e=>{const{componentCls:t,fontSizeIcon:o,navContentMaxWidth:r,navArrowColor:i,colorPrimary:l,motionDurationSlow:u,antCls:f,calc:p}=e,m=`${t}-item`,h=l,[b,v]=Vt(f,"cmp-steps");return{[`${t}${t}-navigation`]:{[m.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${m}-wrapper`]:{paddingBlock:e.paddingSM},[`${m}-section`]:{maxWidth:r},[`${m}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:h,transition:`all ${u}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${re(e.lineWidth)} ${e.lineType} ${i}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${i}`,content:'""'},[`&${m}-active`]:{[b("item-content-active-color")]:v("item-content-color"),[b("item-icon-active-bg-color")]:v("item-icon-bg-color"),[b("item-icon-active-border-color")]:v("item-icon-border-color"),[b("item-icon-active-text-color")]:v("item-icon-text-color")}},[`&${t}-horizontal`]:{[m]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${m}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:p(o).div(2).mul(-1).add("100%").equal(),width:o,height:o,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[m.repeat(4)]:{[`${m}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${m}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:p(o).div(3).mul(2).equal(),height:p(o).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},JL=e=>{const{componentCls:t,lineWidthBold:o,borderRadius:r,borderRadiusSM:i,motionDurationMid:l,paddingXS:u,lineType:f,paddingSM:p,antCls:m,calc:h}=e,b=`${t}-item`,[v,x]=Vt(m,"cmp-steps"),C=`${re(o)} ${f} ${x("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${b}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[b]:{flex:1,margin:0}}},{"&":{[v("panel-padding")]:p,[v("item-border-radius")]:r,[b]:{[v("panel-bg-color")]:x("item-icon-bg-color"),[v("panel-border-color")]:x("item-icon-border-color"),[v("panel-active-bg-color")]:x("item-icon-active-bg-color"),[v("panel-active-border-color")]:x("item-icon-active-border-color"),[v("panel-title-height")]:`calc(${x("title-font-size")} * ${x("title-line-height")})`,[v("item-base-height")]:h(x("panel-padding")).mul(2).add(x("icon-size")).add(x("panel-title-height")).equal(),[v("item-base-width")]:`calc(${x("item-base-height")} * 0.7071)`,transition:`background-color ${l}`}},[`${b}-icon`]:{display:"none"},[`${b}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:h(o).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:h(o).mul(2).add("100%").equal(),width:x("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:x("panel-bg-color"),stroke:x("panel-border-color"),strokeWidth:o,vectorEffect:"non-scaling-stroke",transition:`fill ${l}`}},[`${b}:last-child ${t}-panel-arrow`]:{display:"none"},[b]:{padding:x("panel-padding"),background:x("panel-bg-color"),position:"relative",borderBlock:C,"&:not(:first-child)":{paddingInlineStart:`calc(${x("panel-padding")} + ${x("item-base-width")})`},"&:first-child":{borderInlineStart:C,borderStartStartRadius:x("item-border-radius"),borderEndStartRadius:x("item-border-radius")},"&:last-child":{borderInlineEnd:C,borderStartEndRadius:x("item-border-radius"),borderEndEndRadius:x("item-border-radius")},"&-active":{background:x("panel-active-bg-color"),borderColor:x("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:x("panel-active-bg-color"),stroke:x("panel-active-border-color")}},[`${b}-title, ${b}-subtitle, ${b}-content`]:{color:x("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[v("panel-padding")]:u,[v("item-border-radius")]:i}},{[`&${t}-filled`]:{[b]:{"&:not(:first-child)":{clipPath:`polygon(${[`${re(o)} 0`,`calc(100% + ${x("item-base-width")}) 0`,`calc(100% + ${x("item-base-width")}) 100%`,`${re(o)} 100%`,`calc(${x("item-base-width")} + ${re(o)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:h(o).div(2).mul(-1).equal(),height:h(o).add("100%").equal()}}}]}},e9=e=>{const{calc:t,antCls:o,componentCls:r,lineWidthBold:i,motionDurationSlow:l}=e,u=`${r}-item`,[f,p]=Vt(o,"cmp-steps"),m=t(i).add(i).equal();return{[`${r}${r}-with-progress`]:{[f("item-wrapper-padding-top")]:m,[`${u}${u}-process`]:{[`${u}-icon`]:{position:"relative"}},[`${u}-progress-icon`]:{"&-svg":{[f("svg-size")]:t(m).mul(2).add(p("icon-size")).equal(),[f("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${p("svg-size")}, 1px)))`,fontSize:p("svg-size"),lineHeight:p("icon-size-ptg-unitless"),position:"absolute",inset:t(m).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:p("icon-size-ptg-unitless"),strokeWidth:t(p("icon-size-ptg-unitless")).mul(i).equal(),[f("progress-radius")]:t(p("svg-size")).sub(i).mul(p("icon-size-ptg-unitless")).div(2).equal(),r:p("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${l} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},t9=e=>{const{componentCls:t,iconSize:o,dotSize:r,dotCurrentSize:i,marginXXS:l,lineWidthBold:u,fontSizeSM:f,antCls:p}=e,m=`${t}-item`,[h,b]=Vt(p,"cmp-steps");return{[`${t}${t}-dot`]:{[h("icon-size-active")]:i,[h("icon-size")]:r,[h("dot-icon-size")]:r,[h("dot-icon-border-width")]:u,[h("rail-size")]:u,[h("icon-border-width")]:u,[`${m}-custom ${m}-icon`]:{fontSize:f},[`${m}-icon`]:{position:"relative","&:after":{content:'""',width:o,height:o,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${m}-active ${m}-icon`]:{[h("icon-size")]:b("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:Z0(e,l)}}}},n9=e=>{const{componentCls:t,lineWidthBold:o,antCls:r}=e,i=`${t}-item`,[,l]=Vt(r,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${i}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[i]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${l("item-base-width")}) 0px`,`calc(100% - ${re(o)}) 0px`,`calc(100% - ${l("item-base-width")} - ${re(o)}) 50%`,`calc(100% - ${re(o)}) 100%`,`calc(0px - ${l("item-base-width")}) 100%`].join(",")})`}}}}}}},o9=e=>{const{componentCls:t,iconSizeSM:o,fontSize:r,lineHeight:i,marginXS:l,fontHeight:u,marginSM:f,paddingXS:p,antCls:m}=e,[h]=Vt(m,"cmp-steps");return{[`${t}${t}-small`]:{[h("icon-size")]:o,[h("title-horizontal-item-margin")]:f,[h("title-vertical-row-gap")]:p,[h("title-font-size")]:r,[h("title-line-height")]:i,[h("title-horizontal-rail-margin")]:l,[h("title-horizontal-title-height")]:u,[`&${t}-horizontal${t}-title-vertical`]:Z0(e,l)}}},ud="wait",dd="process",fd="finish",md="error",r9=e=>{const{componentCls:t,colorTextDisabled:o,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:l,colorError:u,colorErrorHover:f,colorErrorBgFilledHover:p,colorFillTertiary:m,colorErrorBg:h,colorPrimaryBgHover:b,colorPrimaryBg:v,colorText:x,colorTextDescription:C,colorBgContainer:S,colorPrimaryHover:R,lineType:E,antCls:N}=e,$=`${t}-item`,[w,T]=Vt(N,"cmp-steps");return{[t]:[{[$]:{[w("item-solid-line-color")]:"#000",[w("item-title-color")]:"#000",[w("item-content-color")]:"#000",[w("item-subtitle-color")]:T("item-content-color"),[w("item-icon-custom-color")]:"#000",[w("item-icon-bg-color")]:"#000",[w("item-icon-border-color")]:"#000",[w("item-icon-text-color")]:"#fff",[w("item-icon-dot-color")]:"#000",[w("item-icon-dot-bg-color")]:T("item-icon-dot-color"),[w("item-icon-dot-border-color")]:T("item-icon-dot-color"),[w("item-text-hover-color")]:"#000",[w("item-icon-bg-hover-color")]:T("item-icon-bg-color"),[w("item-icon-border-hover-color")]:T("item-icon-border-color"),[w("item-icon-text-hover-color")]:T("item-icon-text-color"),[w("item-content-active-color")]:T("item-content-color"),[w("item-icon-active-bg-color")]:T("item-icon-bg-color"),[w("item-icon-active-border-color")]:T("item-icon-border-color"),[w("item-icon-active-text-color")]:T("item-icon-text-color"),[w("item-process-rail-line-style")]:E},[`${$}-rail`]:{borderColor:T("item-solid-line-color")},[`${$}-custom ${$}-icon`]:{color:T("item-icon-custom-color")},[`${$}-title`]:{color:T("item-title-color")},[`${$}-subtitle`]:{color:T("item-subtitle-color")},[`${$}-content`]:{color:T("item-content-color")},[`${$}-active ${$}-icon`]:{},[`${$}-active ${$}-content`]:{color:T("item-content-active-color")},[`${$}[role='button']:not(${$}-active):hover`]:{[`${$}-title, ${$}-content`]:{color:T("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${$}:not(${$}-custom)`]:{[`${$}-icon`]:{background:T("item-icon-bg-color"),borderColor:T("item-icon-border-color"),color:T("item-icon-text-color")},[`&[role='button']:not(${$}-active):hover`]:{[`${$}-icon`]:{background:T("item-icon-bg-hover-color"),borderColor:T("item-icon-border-hover-color"),color:T("item-icon-text-hover-color")}},[`&${$}-active`]:{[`${$}-icon`]:{background:T("item-icon-active-bg-color"),borderColor:T("item-icon-active-border-color"),color:T("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${$}-icon`]:{background:T("item-icon-dot-bg-color"),borderColor:T("item-icon-dot-border-color"),color:T("item-icon-dot-color"),[`&${$}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${$}-${ud}`]:{[w("item-icon-custom-color")]:o,[w("item-title-color")]:C,[w("item-content-color")]:C,[w("item-content-active-color")]:x,[w("item-text-hover-color")]:R},[`${$}-rail-${ud}`]:{[w("item-solid-line-color")]:o},[`${$}-${dd}`]:{[w("item-icon-custom-color")]:i,[w("item-title-color")]:x,[w("item-content-color")]:C,[w("item-content-active-color")]:x,[w("item-text-hover-color")]:R},[`${$}-rail-${dd}`]:{[w("item-solid-line-color")]:i,[w("rail-line-style")]:T("item-process-rail-line-style")},[`${$}-${fd}`]:{[w("item-icon-custom-color")]:i,[w("item-title-color")]:x,[w("item-content-color")]:C,[w("item-content-active-color")]:x,[w("item-text-hover-color")]:R},[`${$}-rail-${fd}`]:{[w("item-solid-line-color")]:i},[`${$}-${md}`]:{[w("item-icon-custom-color")]:u,[w("item-title-color")]:u,[w("item-content-color")]:u,[w("item-content-active-color")]:u,[w("item-text-hover-color")]:f},[`${$}-rail-${md}`]:{[w("item-solid-line-color")]:u}},{[`&${t}-filled`]:{[$]:{[w("item-icon-dot-border-color")]:"transparent"},[`${$}-${ud}`]:{[w("item-icon-bg-color")]:m,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:l,[w("item-icon-dot-bg-color")]:o,[w("item-icon-bg-hover-color")]:b,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:i,[w("item-icon-active-bg-color")]:i,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r},[`${$}-${dd}, ${$}-${fd}`]:{[w("item-icon-bg-color")]:v,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:i,[w("item-icon-dot-bg-color")]:i,[w("item-icon-bg-hover-color")]:b,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:i,[w("item-icon-active-bg-color")]:i,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r},[`${$}-${md}`]:{[w("item-icon-bg-color")]:h,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:u,[w("item-icon-dot-bg-color")]:u,[w("item-icon-bg-hover-color")]:p,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:u,[w("item-icon-active-bg-color")]:u,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r}}},{[`&${t}-outlined`]:{[$]:{[w("item-icon-dot-bg-color")]:"transparent"},[`${$}-${ud}`]:{[w("item-icon-bg-color")]:S,[w("item-icon-border-color")]:o,[w("item-icon-text-color")]:o,[w("item-icon-dot-color")]:o,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:R,[w("item-icon-text-hover-color")]:R,[w("item-icon-active-bg-color")]:m},[`${$}-${dd}, ${$}-${fd}`]:{[w("item-icon-bg-color")]:S,[w("item-icon-border-color")]:i,[w("item-icon-text-color")]:i,[w("item-icon-dot-color")]:i,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:R,[w("item-icon-text-hover-color")]:R,[w("item-icon-active-bg-color")]:v},[`${$}-${md}`]:{[w("item-icon-bg-color")]:S,[w("item-icon-border-color")]:u,[w("item-icon-text-color")]:u,[w("item-icon-dot-color")]:u,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:f,[w("item-icon-text-hover-color")]:f,[w("item-icon-active-bg-color")]:h}}}]}},a9=e=>{const{componentCls:t,marginXXS:o,paddingSM:r,controlHeight:i,antCls:l,calc:u}=e,f=`${t}-item`,[p,m]=Vt(l,"cmp-steps");return{[`${t}-vertical`]:{[p("vertical-rail-margin")]:u(o).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${f}`]:{minHeight:u(i).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${f}-icon`]:{marginInlineStart:`calc((${m("icon-size-max")} - ${m("icon-size")}) / 2)`},[`${f}-rail`]:{[p("rail-offset")]:u(m("heading-height")).sub(m("icon-size")).div(2).equal(),borderInlineStartWidth:m("rail-size"),position:"absolute",top:u(m("icon-size")).add(m("item-wrapper-padding-top")).add(m("rail-offset")).add(m("vertical-rail-margin")).equal(),insetInlineStart:u(m("icon-size-max")).div(2).equal(),bottom:u(m("vertical-rail-margin")).sub(m("rail-offset")).equal(),marginInlineStart:`calc(${m("rail-size")} / -2)`}}}}},i9=e=>{const{componentCls:t,antCls:o}=e,r=`${t}-item`,[i,l]=Vt(o,"cmp-steps");return{[t]:{[i("title-font-size")]:e.fontSizeLG,[i("title-line-height")]:e.lineHeightLG,[i("subtitle-font-size")]:e.fontSize,[i("subtitle-line-height")]:e.lineHeight,[i("item-wrapper-padding-top")]:"0px",[i("rail-size")]:e.lineWidth,[i("rail-line-style")]:e.lineType,...Dn(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[r]:{flex:"none",position:"relative"},[`${r}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:l("item-wrapper-padding-top")},[`${r}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${r}-title`]:{color:e.colorText,fontSize:l("title-font-size"),lineHeight:l("title-line-height"),wordBreak:"break-word"},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:l("subtitle-font-size"),lineHeight:l("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${r}-rail`]:{borderStyle:l("rail-line-style"),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:or},[`${r}[role='button']:not(${r}-active):hover`]:{cursor:"pointer"}}}},s9=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),l9=Qt("Steps",e=>{const t=Gt(e,{inlineDotSize:6});return[i9(t),XL(t),a9(t),GL(t),KL(t),o9(t),t9(t),r9(t),ZL(t),JL(t),kL(t),QL(t),e9(t),n9(t)]},s9);function c9(e,t){return{item:{...e,key:e.key??t},originIndex:t}}function u9(e,t,o,r,i){const l=e[o].key??o,u=e[r].key??r,p=e.slice(o+1,r).some(m=>m.status==="error")?"error":r-1<t?"finish":"wait";return{item:{key:`ellipsis-${l}-${u}`,title:"",icon:c.createElement(q0),status:p,disabled:!0,className:`${i}-item-ellipsis`},originIndex:-1}}function d9(e,t,o){const r=Math.min(Math.max(t,0),e-1),i=Math.min(o,e),l=new Set([0,r,e-1]);for(let u=1;l.size<i&&u<e;u+=1){const f=[r-u,r+u,u,e-1-u];for(const p of f){if(l.size>=i)break;p>=0&&p<e&&l.add(p)}}return Array.from(l).sort((u,f)=>u-f).flatMap((u,f,p)=>f>0&&u-p[f-1]>1?[null,u]:[u])}function f9(e,t,o,r,i){const l=r!==void 0&&r>=3&&e.length>r,u=t-o,f=c.useMemo(()=>{if(!l)return e.map((h,b)=>({item:h,originIndex:b}));const m=d9(e.length,u,r);return m.map((h,b)=>h===null?u9(e,u,m[b-1],m[b+1],i):c9(e[h],h))},[l,u,e,r,i]),p=f.findIndex(m=>m.originIndex===u);return{canApplyMaxCount:l,displaySteps:f,mappedDisplayCurrent:p>=0?p:u,displayItems:f.map(m=>m.item)}}const m9={itemIcon:S0},p9=e=>{const{size:t,className:o,rootClassName:r,style:i,variant:l="filled",type:u,classNames:f,styles:p,direction:m,orientation:h,responsive:b=!0,progressDot:v,labelPlacement:x,titlePlacement:C,ellipsis:S,maxCount:R,offset:E=0,items:N,percent:$,current:w=0,initial:T=0,onChange:z,iconRender:A,...P}=e,j=c.useContext(qL),L=Kt("steps"),{getPrefixCls:I,direction:H,className:W,style:J}=L;let q,D,X={};j?X={root:j.rootComponent,item:j.itemComponent}:{classNames:q,styles:D}=L;const V=I(),Z=I("steps",e.prefixCls),Q=`${Z}-item-icon`,[B,F]=l9(Z),[k]=Vt(V,"cmp-steps"),G=bo(t),K=c.useMemo(()=>(N||[]).filter(Boolean),[N]),{xs:te}=kB(b),Y=c.useMemo(()=>u&&u!=="default"?u:v?"dot":u,[v,u]),ie=Y==="inline",se=Y==="dot"||Y==="inline",ae=c.useMemo(()=>Y==="dot"&&mn(v)?v:void 0,[Y,v]),me=c.useMemo(()=>{const De=h||m;return Y==="panel"?"horizontal":b&&te||De==="vertical"?"vertical":"horizontal"},[h,m,Y,b,te]),ne=c.useMemo(()=>se||me==="vertical"?me==="vertical"?"horizontal":"vertical":u==="navigation"?"horizontal":C||x||"horizontal",[se,x,me,C,u]),ue=ie?void 0:$,{canApplyMaxCount:ye,displaySteps:ve,mappedDisplayCurrent:Ee,displayItems:Ce}=f9(K,w,T,R,Z),be={...e,variant:l,size:G,type:Y,orientation:me,titlePlacement:ne,current:w,initial:T,percent:ue,responsive:b,offset:E,ellipsis:S,maxCount:R},[ge,ze]=dn([m9,q,f],[D,p],{props:be}),we=(De,qe)=>{const{item:Je,index:Ue,active:Pe,components:{Icon:_e}}=qe,We=ve[Ue]?.originIndex,Be=We!==void 0&&We>=0?T+We:Ue,{status:he,icon:Te}=Je;let Le=null;if(se||Te)Le=Te;else switch(he){case"finish":Le=c.createElement(Ms,{className:`${Q}-finish`});break;case"error":Le=c.createElement(gr,{className:`${Q}-error`});break;default:{let ot=c.createElement("span",{className:`${Q}-number`},Be+1);he==="process"&&ue!==void 0&&(ot=c.createElement(WL,{prefixCls:Z,rootPrefixCls:V,percent:ue},ot)),Le=ot}}let Ge=c.createElement(_e,null,Le);return A?Ge=A(Ge,{index:Be,active:Pe,item:Je,components:{Icon:_e}}):mn(ae)&&(Ge=ae(Ge,{index:Be,...Je})),Ge},Ie=(De,qe)=>{let Je=De;return ie&&qe.item.content&&(Je=c.createElement(Ur,{destroyOnHidden:!0,title:qe.item.content},De)),c.createElement(v2,{component:"Steps",disabled:qe.item.disabled||!z,colorSource:l==="filled"?"color":null},Je)},Oe=Y==="panel"?De=>c.createElement(c.Fragment,null,De,c.createElement(UL,{prefixCls:Z})):void 0,je={[k("items-offset")]:`${E}`,...J,...i},nt=U(W,`${Z}-${l}`,{[`${Z}-${Y}`]:Y!=="dot"?Y:!1,[`${Z}-rtl`]:H==="rtl",[`${Z}-dot`]:se,[`${Z}-ellipsis`]:S,[`${Z}-max-count`]:ye,[`${Z}-with-progress`]:ue!==void 0,[`${Z}-small`]:G==="small"},o,r,B,F),Ye=De=>{const qe=ve[De];z&&qe&&qe.originIndex>=0&&z(T+qe.originIndex)};return c.createElement(FL,{...P,prefixCls:Z,className:nt,style:je,classNames:ge,styles:ze,orientation:me,titlePlacement:ne,components:X,initial:0,current:Ee,items:Ce,onChange:z?Ye:void 0,iconRender:we,itemRender:Ie,itemWrapperRender:Oe})};var pd={},lE;function g9(){if(lE)return pd;lE=1,Object.defineProperty(pd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return pd.default=e,pd}var h9=g9();const b9=Xt(h9);function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_b.apply(this,arguments)}const v9=(e,t)=>c.createElement(Zt,_b({},e,{ref:t,icon:b9})),fR=c.forwardRef(v9);var gd={},cE;function y9(){if(cE)return gd;cE=1,Object.defineProperty(gd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"};return gd.default=e,gd}var x9=y9();const S9=Xt(x9);function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Hb.apply(this,arguments)}const C9=(e,t)=>c.createElement(Zt,Hb({},e,{ref:t,icon:S9})),$9=c.forwardRef(C9);var hd={},uE;function E9(){if(uE)return hd;uE=1,Object.defineProperty(hd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};return hd.default=e,hd}var w9=E9();const N9=Xt(w9);function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Db.apply(this,arguments)}const R9=(e,t)=>c.createElement(Zt,Db({},e,{ref:t,icon:N9})),M9=c.forwardRef(R9);var bd={},dE;function T9(){if(dE)return bd;dE=1,Object.defineProperty(bd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"};return bd.default=e,bd}var O9=T9();const z9=Xt(O9);function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Lb.apply(this,arguments)}const A9=(e,t)=>c.createElement(Zt,Lb({},e,{ref:t,icon:z9})),mR=c.forwardRef(A9);var vd={},fE;function I9(){if(fE)return vd;fE=1,Object.defineProperty(vd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};return vd.default=e,vd}var P9=I9();const B9=Xt(P9);function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Vb.apply(this,arguments)}const j9=(e,t)=>c.createElement(Zt,Vb({},e,{ref:t,icon:B9})),J0=c.forwardRef(j9);var yd={},mE;function _9(){if(mE)return yd;mE=1,Object.defineProperty(yd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return yd.default=e,yd}var H9=_9();const D9=Xt(H9);function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Fb.apply(this,arguments)}const L9=(e,t)=>c.createElement(Zt,Fb({},e,{ref:t,icon:D9})),pR=c.forwardRef(L9);var xd={},pE;function V9(){if(pE)return xd;pE=1,Object.defineProperty(xd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"};return xd.default=e,xd}var F9=V9();const q9=Xt(F9);function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},qb.apply(this,arguments)}const U9=(e,t)=>c.createElement(Zt,qb({},e,{ref:t,icon:q9})),gR=c.forwardRef(U9);var Sd={},gE;function W9(){if(gE)return Sd;gE=1,Object.defineProperty(Sd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};return Sd.default=e,Sd}var G9=W9();const X9=Xt(G9);function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ub.apply(this,arguments)}const k9=(e,t)=>c.createElement(Zt,Ub({},e,{ref:t,icon:X9})),Y9=c.forwardRef(k9);var Cd={},hE;function K9(){if(hE)return Cd;hE=1,Object.defineProperty(Cd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};return Cd.default=e,Cd}var Q9=K9();const Z9=Xt(Q9);function Wb(){return Wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wb.apply(this,arguments)}const J9=(e,t)=>c.createElement(Zt,Wb({},e,{ref:t,icon:Z9})),e7=c.forwardRef(J9);var $d={},bE;function t7(){if(bE)return $d;bE=1,Object.defineProperty($d,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"};return $d.default=e,$d}var n7=t7();const o7=Xt(n7);function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Gb.apply(this,arguments)}const r7=(e,t)=>c.createElement(Zt,Gb({},e,{ref:t,icon:o7})),hR=c.forwardRef(r7);var Ed={},vE;function a7(){if(vE)return Ed;vE=1,Object.defineProperty(Ed,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};return Ed.default=e,Ed}var i7=a7();const s7=Xt(i7);function Xb(){return Xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Xb.apply(this,arguments)}const l7=(e,t)=>c.createElement(Zt,Xb({},e,{ref:t,icon:s7})),c7=c.forwardRef(l7);var wd={},yE;function u7(){if(yE)return wd;yE=1,Object.defineProperty(wd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};return wd.default=e,wd}var d7=u7();const f7=Xt(d7);function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},kb.apply(this,arguments)}const m7=(e,t)=>c.createElement(Zt,kb({},e,{ref:t,icon:f7})),p7=c.forwardRef(m7),g7=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,h7={USE_PROFILES:{html:!0},FORBID_TAGS:["style","iframe","object","embed","form","input","button"],FORBID_ATTR:["style"],ALLOWED_URI_REGEXP:g7},b7=/<!--\s*comet-native:acceptance-evidence:start\s*-->\s*([\s\S]*?)\s*<!--\s*comet-native:acceptance-evidence:end\s*-->/gu;function eo(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function v7(){const e=new Map;return{slug(t){let o=String(t??"").toLowerCase().replace(/[^\w\u4e00-\u9fa5\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");o||(o="heading");const r=e.get(o)??0;return e.set(o,r+1),r===0?o:`${o}-${r}`}}}async function _r(e){const t=(await ci(async()=>{const{default:r}=await import("./purify.es-VaSPOPhr.js");return{default:r}},[])).default;let o=t;if(typeof window>"u"||!window.document){const{JSDOM:r}=await ci(async()=>{const{JSDOM:i}=await import("jsdom");return{JSDOM:i}},[]);o=t(new r("").window)}return o.sanitize(String(e??""),h7)}function ev(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function tv(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function bR(e){return e==null?"":String(e)}function vR(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function y7(e){return e.includes("/check-receipts/")?"自动化检查回执":e.includes("/manual-evidence/")?"人工验证回执":"证据文件"}function x7(e){if(!Array.isArray(e)||!e.every(ev))return null;const t=e.length,o=e.filter(({status:f})=>f==="passed").length,r=e.filter(({status:f})=>f==="failed").length,i=new Set(e.flatMap(({evidence_refs:f})=>Array.isArray(f)?f.filter(p=>typeof p=="string"&&p.trim()):[])),l=r>0?"有未通过的验收项,需要继续处理。":"全部验收项已通过。",u=[...i].map(f=>`<li><span>${y7(f)}</span><code>${eo(f)}</code></li>`).join("");return['<section class="acceptance-evidence-summary" aria-label="验收证据摘要">',`<div class="acceptance-evidence-stat"><strong>${t}</strong><span>验收项</span></div>`,`<div class="acceptance-evidence-stat acceptance-evidence-stat-pass"><strong>${o}</strong><span>已通过</span></div>`,`<div class="acceptance-evidence-stat acceptance-evidence-stat-failed"><strong>${r}</strong><span>需关注</span></div>`,`<div class="acceptance-evidence-stat"><strong>${i.size}</strong><span>证据引用</span></div>`,"</section>",`<p class="acceptance-evidence-note">${l} 原始证据已保留在验证文件中。</p>`,u?`<section class="acceptance-evidence-references"><h3>引用证据</h3><ul>${u}</ul></section>`:""].join("")}function S7(e){return String(e??"").replace(b7,(t,o)=>{try{return x7(JSON.parse(o))??t}catch{return t}})}function C7(e,{className:t="yaml-kv-table"}={}){const o=e.map(([r,i])=>{const l=tv(i)?bR(i):vR(i);return`<tr><th scope="row">${eo(r)}</th><td>${eo(l)}</td></tr>`}).join("");return[`<table class="${eo(t)}">`,'<thead><tr><th scope="col">字段</th><th scope="col">值</th></tr></thead>',`<tbody>${o}</tbody>`,"</table>"].join("")}function yR(e){if(!Array.isArray(e)||e.length===0||!e.every(ev))return!1;const t=Object.keys(e[0]).sort().join("\0");return e.every(o=>Object.keys(o).sort().join("\0")===t)}function xR(e,{className:t="json-array-table"}={}){const o=Object.keys(e[0]),r=o.map(l=>`<th scope="col">${eo(l)}</th>`).join(""),i=e.map(l=>`<tr>${o.map(f=>{const p=l[f],m=tv(p)?bR(p):vR(p);return`<td>${eo(m)}</td>`}).join("")}</tr>`).join("");return[`<table class="${eo(t)}">`,`<thead><tr>${r}</tr></thead>`,`<tbody>${i}</tbody>`,"</table>"].join("")}function SR(e){const t=[],o=[];for(const[i,l]of Object.entries(e)){if(tv(l)){t.push([i,l]);continue}if(yR(l)){o.push(`<h3 id="${eo(i)}">${eo(i)}</h3>${xR(l)}`);continue}t.push([i,l])}const r=[];return t.length>0&&r.push(C7(t)),r.push(...o),r.join(`
244
+ `)||"<p>这个产物是空文件。</p>"}async function xE(e){const t=String(e??"");if(!t.trim())return _r("<p>这个产物是空文件。</p>");try{const{parse:o}=await ci(async()=>{const{parse:i}=await import("./index-DlSYK56b.js");return{parse:i}},[]),r=o(t);return r==null?_r("<p>这个产物是空文件。</p>"):typeof r!="object"||Array.isArray(r)?ac(["```yaml",t.replace(/\n$/,""),"```"].join(`
245
+ `)):_r(SR(r))}catch{return ac(["```yaml",t.replace(/\n$/,""),"```"].join(`
246
+ `))}}async function SE(e){const t=String(e??"");if(!t.trim())return _r("<p>这个产物是空文件。</p>");try{const o=JSON.parse(t);return o===null?_r("<p>这个产物是空文件。</p>"):yR(o)?_r(xR(o)):ev(o)?_r(SR(o)):ac(["```json",JSON.stringify(o,null,2),"```"].join(`
247
+ `))}catch{return ac(["```json",t.replace(/\n$/,""),"```"].join(`
248
+ `))}}async function ac(e){try{const{Marked:t}=await ci(async()=>{const{Marked:f}=await import("./marked.esm-DECB3bxB.js");return{Marked:f}},[]);let o=null;try{o=(await ci(async()=>{const{default:f}=await import("./index-Blit0P5Z.js");return{default:f}},[])).default}catch{}const r=v7(),i=new t;i.use({renderer:{heading({text:f,depth:p,tokens:m}){const h=r.slug(f),b=m&&this.parser?.parseInline?this.parser.parseInline(m):eo(f);return`<h${p} id="${eo(h)}">${b}</h${p}>`},code({text:f,lang:p}){if(p==="mermaid")return`<div class="mermaid">${eo(f)}</div>`;if(o){const m=p&&o.getLanguage(p)?p:"plaintext",h=o.highlight(f,{language:m}).value;return`<pre><code class="hljs language-${eo(m)}">${h}</code></pre>`}return`<pre><code>${eo(f)}</code></pre>`}}});const l=i.parse(S7(e)),u=typeof l=="string"?l:String(l);return _r(u)}catch{return _r(`<pre>${eo(e)}</pre>`)}}function $7(e){const t=e.querySelectorAll("h1, h2, h3"),o=[];return t.forEach(r=>{const i=r.id,l=r.textContent??"",u=parseInt(r.tagName[1],10);i&&l&&o.push({id:i,text:l,depth:u})}),o}async function E7(e){const t=e.querySelectorAll("div.mermaid");if(t.length!==0)try{const o=(await ci(async()=>{const{default:r}=await import("./mermaid.core-DZUcsoG4.js").then(i=>i.bl);return{default:r}},__vite__mapDeps([0,1]))).default;o.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif'}),await o.run({nodes:Array.from(t)})}catch{}}function ds(e,t=800,o=e){const[r,i]=c.useState(0);return c.useEffect(()=>{if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){i(e);return}const u=0,f=e,p=performance.now();let m=0;i(0);const h=b=>{const v=Math.min(1,(b-p)/t),x=1-Math.pow(1-v,3);i(u+f*x),v<1&&(m=requestAnimationFrame(h))};return m=requestAnimationFrame(h),()=>{cancelAnimationFrame(m)}},[t,o,e]),r}const w7="dashboard-workspace-region grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]";function CR({left:e,center:t,right:o,leftClassName:r="",stableFrame:i=!1}){const l=c.useRef(null),[u,f]=c.useState(0);c.useLayoutEffect(()=>{if(i){f(0);return}const m=l.current;if(!m)return;const h=()=>{const v=Math.ceil(m.getBoundingClientRect().height);f(x=>x===v?x:v)};if(h(),typeof ResizeObserver>"u")return;const b=new ResizeObserver(h);return b.observe(m),()=>b.disconnect()},[i]);const p=u>0?{"--dashboard-center-height":`${u}px`}:void 0;return O.jsxs("div",{className:`${w7} ${i?"dashboard-workspace-region-stable":""}`.trim(),style:p,children:[O.jsx("div",{className:`dashboard-workspace-side dashboard-workspace-left ${r}`.trim(),children:e}),O.jsx("div",{ref:l,className:"dashboard-workspace-center min-w-0",children:t}),O.jsx("div",{className:"dashboard-workspace-side dashboard-workspace-right xl:col-start-2 2xl:col-start-auto",children:o})]})}const Hd=[["shape","Shape"],["build","Build"],["verify","Verify"],["archive","Archive"]],nv=Object.fromEntries(Hd),$R={missing:"尚无验证",invalid:"验证无效",stale:"验证已过期",complete:"验证完整",partial:"部分验证",unknown:"状态未知"},N7={continue:"可继续","await-user":"等待用户",blocked:"已阻塞",done:"已完成"},R7={"work-phase":"继续当前阶段","advance-phase":"推进阶段",repair:"修复后重试",archive:"准备归档",none:"无需动作"},M7={"definite-conflict":"明确冲突","possible-overlap":"可能重叠"},zg=5;function T7(e){const t=e.acceptance;if(!t?.total)return null;const o=t.evidenced+t.skipped;return{covered:o,total:t.total,percent:Math.round(o/t.total*100),complete:t.missing===0}}function O7({native:e,git:t,query:o,tab:r="active",onTab:i,pagedChanges:l=null,total:u,hasMore:f=!1,pageLoading:p=!1,onLoadMore:m,selectedDetail:h=null,detailLoading:b=!1,detailError:v=null,onSelect:x,onRetryDetail:C,onPreview:S,onCopyChangeName:R}){const E=Array.isArray(l),N=c.useRef(null),$=c.useRef(null),[w,T]=c.useState(zg),z=o.trim().toLowerCase(),A=c.useMemo(()=>{const V=E?l:e?.changes??[];return E?V:V.filter(Z=>{const Q=r==="all"||r==="active"&&Z.status==="active"||Z.status===r,B=!z||Z.name.toLowerCase().includes(z);return Q&&B})},[e,z,l,E,r]),[P,j]=c.useState(null),L=c.useCallback(V=>`${V.status}:${V.archiveName??""}:${V.name}`,[]);c.useEffect(()=>{T(zg)},[z,E,r]);const I=c.useCallback(()=>{if(E){!p&&f&&m?.();return}T(V=>Math.min(V+zg,A.length))},[f,m,p,E,A.length]),H=E?A:A.slice(0,w),W=E?f:H.length<A.length;c.useEffect(()=>{if(!E||!W)return;const V=$.current;if(!V)return;const Z=N.current?.closest(".dashboard-content-shell"),Q=Z&&Z.scrollHeight>Z.clientHeight?Z:null,B=new IntersectionObserver(([k])=>{k.isIntersecting&&!p&&I()},{root:Q,rootMargin:"0px 0px 32px"});B.observe(V);const F=window.requestAnimationFrame(()=>{const k=V.getBoundingClientRect(),G=Q?.getBoundingClientRect(),K=G?.top??0,te=G?.bottom??window.innerHeight;k.top<=te+32&&k.bottom>=K&&!p&&I()});return()=>{window.cancelAnimationFrame(F),B.disconnect()}},[W,I,p,E]),c.useEffect(()=>{const V=N.current;if(!V||!W)return;const Z=window.requestAnimationFrame(()=>{const Q=V.scrollHeight<=V.clientHeight+1,F=V.getBoundingClientRect().bottom<=window.innerHeight+32;Q&&(window.innerWidth>=1024||F)&&I()});return()=>window.cancelAnimationFrame(Z)},[W,I,w]),c.useEffect(()=>{if(!W||window.innerWidth>=1024)return;const V=()=>{const Z=N.current;if(!Z||p)return;const{bottom:Q}=Z.getBoundingClientRect();Q<=window.innerHeight+32&&I()};return window.addEventListener("scroll",V,{passive:!0}),()=>window.removeEventListener("scroll",V)},[W,I,p]);const J=c.useCallback(V=>{if(!W||p)return;const{scrollTop:Z,clientHeight:Q,scrollHeight:B}=V.currentTarget;Z+Q>=B-32&&I()},[W,I,p]);c.useEffect(()=>{j(V=>H.some(Z=>L(Z)===V)?V:H[0]?L(H[0]):null)},[L,H]);const q=H.find(V=>L(V)===P)??H[0]??null;c.useEffect(()=>{q&&x?.(q)},[x,q]);const D=E?h:q,X=!!(e&&e.totalChangeCount>0);return O.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[O.jsx(CE,{title:"项目概览",hint:e?`Native 状态生成于 ${Yb(e.generatedAt)}`:"当前项目尚无 Native 状态"}),O.jsx(A7,{change:D??q}),O.jsx(I7,{native:e,loadedChanges:H}),O.jsx(CE,{title:"Native 变更工作区",hint:"查看轻量状态、验证结果与冲突摘要"}),!e||!X?O.jsx(q7,{}):O.jsx(CR,{stableFrame:!0,leftClassName:"native-workspace-left",left:O.jsx(B7,{changes:H,total:E?u??A.length:A.length,selectedName:q?.name??null,tab:r,onTab:i,onSelect:V=>j(L(V)),listRef:N,loadMoreRef:$,hasMore:W,pageLoading:p,onScroll:J}),center:D?O.jsx(j7,{change:D,onPreview:S,onCopyChangeName:R}):q&&(b||!v)?O.jsx("div",{className:"native-change-detail dashboard-change-detail-loading min-w-0 rounded-lg border border-border bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载 Native 变更详情…"}):v?O.jsxs("div",{className:"native-change-detail dashboard-change-detail-loading min-w-0 rounded-lg border border-border bg-bg p-10 text-center text-sm text-danger shadow-raised",children:[O.jsxs("p",{role:"alert",children:["Native 变更详情加载失败:",v.reason]}),O.jsx(to,{className:"mt-4",onClick:C,children:"重新加载"})]}):O.jsx(z7,{native:e,tab:r,query:o,onTab:i}),right:D?O.jsx(F7,{change:D,git:t}):null})]})}function z7({native:e,tab:t,query:o,onTab:r}){const i=(e?.archivedChangeCount??0)>0||(e?.changes??[]).some(p=>p.status==="archived"),l=t==="active"&&!o.trim()&&i,u=l?"当前没有活跃的 Native change":"没有匹配的 Native change",f=l?"当前项目的 Native 工作已全部归档。你可以查看历史验证记录与变更范围。":"调整搜索条件或切换筛选,即可继续查看项目中的 Native change。";return O.jsx("section",{className:"native-workspace-empty flex min-h-[360px] items-center justify-center rounded-lg bg-bg p-8 text-center shadow-raised xl:col-span-1 2xl:col-span-2",children:O.jsxs("div",{className:"max-w-sm",children:[O.jsx("span",{className:"mx-auto grid size-12 place-items-center rounded-2xl bg-accent-softer text-xl text-accent",children:"◇"}),O.jsx("h3",{className:"mt-5 text-lg font-semibold tracking-tight",children:u}),O.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:f}),l&&O.jsx(to,{className:"mt-5",type:"primary",onClick:()=>r("archived"),children:"查看已归档变更"})]})})}function A7({change:e}){return O.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[O.jsxs("div",{className:"dashboard-priority-title",children:[O.jsx(J0,{"aria-hidden":"true"}),O.jsx("span",{children:"下一步建议"})]}),O.jsx("p",{children:e?e.status==="archived"?"当前变更已经归档,可继续查看验证证据与历史进展。":e.progress?.nextAction??ov(e.continuation):"当前没有可展示的 Native change。"})]})}function CE({title:e,hint:t}){return O.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[O.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),O.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function I7({native:e,loadedChanges:t=[]}){const[o,r]=c.useState(0),i=e?.activeChangeCount??t.filter(h=>h.phase!=="archive").length,l=t.filter(h=>h.archiveReady).length,u=t.filter(h=>h.continuation?.requiresUserDecision).length,f=t.filter(h=>["invalid","stale","partial"].includes(h.verificationFreshness)).length,p=e?e.conflicts.definiteConflict+e.conflicts.possibleOverlap:0,m=[["活跃变更",i,"当前 Native workflow",i?"进行中":"清零",gR],["已加载可归档",l,"当前已加载结果",l?"就绪":"暂无",pR],["已加载等待用户",u,"当前已加载结果",u?"待确认":"无需",p7],["已加载验证需关注",f,"当前已加载结果",f?"复核":"健康",hR],["关联冲突",p,"Native change 关系",p?"关注":"无冲突",$9]];return O.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:m.map(([h,b,v,x,C],S)=>O.jsx(P7,{label:h,value:b,note:v,tag:x,icon:C,tone:`dashboard-summary-tone-${S+1}`,selected:o===S,onClick:()=>r(S)},h))})}function P7({label:e,value:t,note:o,tag:r,icon:i,tone:l,selected:u,onClick:f}){const p=ds(t,850,t);return O.jsxs("button",{type:"button","aria-pressed":u,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${l} ${u?"dashboard-summary-primary":""}`,onClick:f,children:[O.jsxs("div",{className:"dashboard-summary-card-top",children:[O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),O.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(p)})]}),O.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:O.jsx(i,{})})]}),O.jsx("span",{className:"dashboard-summary-status",children:r}),O.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:o})]})}function B7({changes:e,total:t,selectedName:o,tab:r,onTab:i,onSelect:l,listRef:u,loadMoreRef:f,hasMore:p,pageLoading:m,onScroll:h}){return O.jsxs("aside",{className:"native-changes-explorer flex min-h-0 flex-col rounded-lg border border-border bg-bg shadow-raised",children:[O.jsx("div",{className:"native-changes-explorer-header flex flex-none items-center border-b border-border-soft",children:O.jsxs("h3",{className:"font-semibold",children:["Changes Explorer ",O.jsx("span",{className:"native-changes-count",children:t})]})}),O.jsxs("div",{className:"native-changes-explorer-body flex min-h-0 flex-1 flex-col",children:[O.jsx("div",{className:"native-changes-explorer-tabs mb-4 flex flex-none items-end gap-8 border-b border-border-soft",children:[["active","活跃"],["archived","已归档"],["all","全部"]].map(([b,v])=>O.jsx("button",{type:"button",role:"tab","aria-selected":r===b,className:`native-change-tab ${r===b?"active":""}`,onClick:()=>i(b),children:v},b))}),O.jsxs("div",{ref:u,className:"native-change-list min-h-0 flex-1 space-y-2 overflow-y-auto",onScroll:h,children:[e.length===0?m?O.jsx("div",{className:"flex justify-center py-8",children:O.jsx(K0,{"aria-label":"正在加载 Native 变更列表"})}):O.jsx("div",{className:"py-8 text-center text-sm text-muted",children:r==="active"?"暂无活跃变更":r==="archived"?"暂无已归档变更":"没有匹配的 Native change"}):e.map(b=>{const v=T7(b);return O.jsx("div",{className:`native-change-list-item ${b.name===o?"selected":""}`,children:O.jsx("button",{type:"button",className:"native-change-row",onClick:()=>l(b),children:O.jsxs("div",{className:"flex w-full items-center gap-2.5 text-left",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("div",{className:"truncate font-semibold",children:b.name}),O.jsxs("div",{className:"mt-1 text-xs text-meta",children:[nv[b.phase]??"状态异常",v?` · ${v.covered}/${v.total}`:""]}),v&&O.jsx("div",{className:`native-change-progress mt-1 ${v.complete?"complete":""}`,role:"progressbar","aria-valuenow":v.percent,"aria-valuemin":"0","aria-valuemax":"100",children:O.jsx("span",{style:{width:`${v.percent}%`}})})]}),O.jsx(Cc,{tone:W7(b.verificationFreshness),children:$R[b.verificationFreshness]??"状态未知"})]})})},b.name)}),p&&O.jsx("div",{ref:f,className:"py-2 text-center text-xs text-meta","aria-live":"polite",children:"继续下滑加载更多"})]})]})]})}function j7({change:e,onPreview:t,onCopyChangeName:o}){const r=e.findings.codes,[i,l]=c.useState(!1);return c.useEffect(()=>l(!1),[e.name]),O.jsxs("section",{className:"native-change-detail min-w-0 rounded-lg border border-border bg-bg shadow-raised",children:[O.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("h3",{className:"truncate text-base font-semibold",children:e.name}),O.jsx(Ur,{title:"复制 Change 名称",children:O.jsx(to,{type:"text",size:"small",icon:i?O.jsx(Ms,{}):O.jsx(fR,{}),"aria-label":i?"已复制 Change 名称":"复制 Change 名称",onClick:()=>o?.(e.name)?.then(()=>{l(!0),window.setTimeout(()=>l(!1),1600)})})})]}),O.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[O.jsx("span",{children:"native"}),O.jsx("span",{children:e.status==="archived"?`归档于 ${e.archivedAt??"未知时间"}`:e.selected?"当前选中变更":"并行变更"}),O.jsx("span",{children:G7(e.approval)})]})]}),O.jsx(Cc,{tone:U7(e.phase),children:nv[e.phase]??"状态异常"})]}),O.jsxs("div",{className:"space-y-5 p-5",children:[O.jsx(V7,{phase:e.phase,archived:e.status==="archived"}),O.jsx(L7,{artifacts:e.artifacts,onPreview:t}),O.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[O.jsx(_7,{change:e}),O.jsx(H7,{change:e})]}),O.jsx(D7,{change:e}),r.length>0&&O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"结构化发现"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[r.length," 项"]})]}),O.jsx("ul",{className:"space-y-2",children:r.map(u=>O.jsx("li",{className:"break-all rounded-lg bg-surface px-3 py-2.5 font-mono text-xs leading-relaxed text-fg-2",children:u},u))})]})]})]})}function _7({change:e}){const t=e.progress,o=!!t?.checkpointAt;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"最近进展"}),O.jsx(Cc,{tone:o?"info":"neutral",children:o?"已记录 Checkpoint":"尚无 Checkpoint"})]}),O.jsx("p",{className:"min-h-10 text-sm leading-relaxed text-fg-2",children:t?.summary??"当前阶段还没有持久化进展摘要。"}),O.jsxs("div",{className:"mt-4 space-y-3 border-t border-border-soft pt-4 text-xs",children:[O.jsx($E,{label:"创建 change",value:Yb(t?.createdAt)}),O.jsx($E,{label:"最近 checkpoint",value:Yb(t?.checkpointAt),active:o})]}),O.jsxs("div",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3",children:[O.jsx("div",{className:"text-[11px] font-medium text-meta",children:"下一步"}),O.jsx("div",{className:"mt-1 text-xs font-medium leading-relaxed text-fg-2",children:e.status==="archived"?"已完成 · 无需后续操作":t?.nextAction??ov(e.continuation)})]})]})}function $E({label:e,value:t,active:o=!0}){return O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("span",{className:`size-2 shrink-0 rounded-full ${o?"bg-accent":"border border-border"}`}),O.jsx("span",{className:"text-muted",children:e}),O.jsx("span",{className:"ml-auto text-right font-mono text-fg-2",children:t})]})}function H7({change:e}){const t=e.specs,o=t?.capabilities??[],r=e.implementation;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"变更范围"}),O.jsxs("span",{className:"rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:[t?.total??0," 个 capability"]})]}),O.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[O.jsx(Ag,{label:"新增",value:t?.create??0,tone:"info"}),O.jsx(Ag,{label:"替换",value:t?.replace??0,tone:"warn"}),O.jsx(Ag,{label:"删除",value:t?.remove??0,tone:"danger"})]}),O.jsx("div",{className:"mt-4 space-y-2",children:o.length===0?O.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚未声明 Spec 变更。"}):o.map(i=>O.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border-soft px-3 py-2",children:[O.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-fg-2",children:i.capability}),O.jsx("span",{className:"text-[11px] text-meta",children:X7(i.operation)})]},`${i.capability}-${i.operation}`))}),r&&O.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-x-4 gap-y-2 border-t border-border-soft pt-4 text-xs",children:[O.jsx(ur,{label:"实现变更",value:`${r.changeCount} 项`}),O.jsx(ur,{label:"声明产物",value:`${r.declaredArtifactCount} 项`}),O.jsx(ur,{label:"未归属",value:`${r.unattributedCount} 项`}),O.jsx(ur,{label:"未解决范围",value:`${r.unresolvedCount} 项`})]})]})}function Ag({label:e,value:t,tone:o}){const r={info:"bg-info-soft text-info",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger"}[o];return O.jsxs("div",{className:"rounded-lg bg-surface-warm px-2 py-3",children:[O.jsx("div",{className:`text-lg font-bold tabular-nums ${t?r:"text-fg-2"}`,children:t}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function D7({change:e}){const t=e.acceptance,o=t?t.evidenced+t.skipped:0,r=t?.total?Math.round(o/t.total*100):0;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"验收覆盖"}),O.jsx(Cc,{tone:t&&t.missing===0?"ok":"warn",children:t?`${r}% 已处理`:"尚无验收投影"}),O.jsx("span",{className:"ml-auto text-xs text-meta",children:$R[e.verificationFreshness]??"状态未知"})]}),O.jsx("div",{className:"mt-4 h-2 overflow-hidden rounded-full bg-surface",children:O.jsx("span",{className:`block h-full rounded-full transition-[width] ${t?.missing===0?"bg-success":"bg-accent"}`,style:{width:`${r}%`}})}),O.jsxs("div",{className:"mt-4 grid grid-cols-4 gap-3 text-center",children:[O.jsx(Nd,{label:"总计",value:t?.total??0}),O.jsx(Nd,{label:"有证据",value:t?.evidenced??0}),O.jsx(Nd,{label:"已跳过",value:t?.skipped??0}),O.jsx(Nd,{label:"待补充",value:t?.missing??0})]})]})}function Nd({label:e,value:t}){return O.jsxs("div",{children:[O.jsx("div",{className:"text-xl font-bold tabular-nums",children:t}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function L7({artifacts:e,onPreview:t}){const o=e??[],r=o.filter(i=>i.exists).length;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[r,"/",o.length]})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[O.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:"Comet Native"}),O.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),O.jsxs("div",{className:"space-y-px",children:[o.map(i=>O.jsxs("button",{type:"button",className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${i.exists?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!i.exists,onClick:()=>t({key:i.key,name:i.label,preview:i}),children:[O.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:O.jsx("span",{className:`h-2 w-2 rounded-full ${i.exists?"bg-accent":"border border-border"}`})}),O.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:i.key}),O.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:i.exists?i.label:"未生成"})]},i.key)),o.length===0&&O.jsx("div",{className:"py-6 text-center text-sm text-muted",children:"暂无可预览产物"})]})]})]})}function V7({phase:e,archived:t}){const o=Math.max(0,Hd.findIndex(([r])=>r===e));return O.jsxs("article",{children:[O.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[O.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),O.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:t?"已归档":`当前 ${nv[e]??"状态异常"}`})]}),O.jsx("div",{className:"flex",children:Hd.map(([r,i],l)=>{const u=t||l<o?"done":l===o?"current":"pending";return O.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[l>0&&O.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${l<=o?"bg-accent":"bg-border"}`}),l<Hd.length-1&&O.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${l<o?"bg-accent":"bg-border"}`}),O.jsx("span",{"aria-label":`${i} ${u==="done"?"已完成":u==="current"?"当前阶段":"待进行"}`,className:`relative z-10 grid size-8 place-items-center rounded-full border text-sm font-bold ${u==="done"?"border-accent bg-accent text-white":u==="current"?"border-accent bg-bg text-accent":"border-border bg-bg text-fg-2"}`,children:u==="done"?"✓":l+1}),O.jsx("span",{className:`text-[13px] font-semibold ${u==="pending"?"text-fg-2":"text-accent"}`,children:i})]},r)})})]})}function F7({change:e,git:t}){const o=e.conflicts.peers,r=e.continuation;return O.jsxs("aside",{className:"space-y-5",children:[O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"继续与归档"}),O.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[O.jsx(ur,{label:"继续状态",value:e.status==="archived"?"已完成 · 已归档":ov(r)}),O.jsx(ur,{label:"用户决策",value:r?.requiresUserDecision?"需要":"不需要"}),O.jsx(ur,{label:"归档预检",value:e.archiveReady?"已就绪":"尚未就绪"})]})]}),O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsxs("div",{className:"flex items-center justify-between gap-3",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"Repair 状态"}),O.jsx(Cc,{tone:Y7(e.repair),children:k7(e.repair)})]}),O.jsx("p",{className:"mt-3 text-xs leading-relaxed text-muted",children:e.repair?e.repair.overrideRecorded?"已记录一次用户覆盖决定;后续重复失败仍会停止。":"检测到重复失败,Native 已停止自动修复。":"当前没有需要人工介入的重复失败。"})]}),O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsxs("div",{className:"flex items-center",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"关联冲突"}),O.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[o.length," 个"]})]}),o.length===0?O.jsx("p",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"未发现冲突变更。"}):O.jsx("ul",{className:"native-conflict-list space-y-2",children:o.map(i=>O.jsxs("li",{className:"rounded-xl border border-border-soft px-3 py-3",children:[O.jsx("div",{className:"break-all font-mono text-xs text-fg-2",children:i.change}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:M7[i.classification]??"可能重叠"})]},`${i.change}-${i.classification}`))})]}),t&&O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"Git 摘要"}),O.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[O.jsx(ur,{label:"分支",value:t.branch??"—"}),O.jsx(ur,{label:"HEAD",value:t.head??"—"}),O.jsx(ur,{label:"未提交文件",value:`${t.dirtyFiles??0} 个`})]})]})]})}function ur({label:e,value:t}){return O.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border-soft pb-3 last:border-0 last:pb-0",children:[O.jsx("dt",{className:"text-muted",children:e}),O.jsx("dd",{className:"text-right font-medium text-fg-2",children:t})]})}function Cc({tone:e="neutral",children:t}){const o={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[e]??"bg-surface text-fg-2";return O.jsx("span",{className:`inline-flex max-w-full items-center rounded-full px-2.5 py-1 text-xs font-semibold leading-tight ${o}`,children:O.jsx("span",{className:"break-words",children:t})})}function q7(){return O.jsxs("div",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[O.jsx("div",{className:"text-lg font-semibold",children:"当前没有 Native change"}),O.jsx("p",{className:"mt-2 text-sm text-muted",children:"Native 状态出现后会在这里展示。"})]})}function U7(e){return e==="archive"?"ok":e==="invalid"?"danger":e==="verify"?"warn":"info"}function W7(e){return e==="complete"?"ok":e==="partial"||e==="stale"?"warn":e==="invalid"?"danger":"neutral"}function ov(e){if(!e)return"状态未知";const t=N7[e.disposition]??"状态未知",o=R7[e.action]??"无需动作";return e.requiresUserDecision?`${t} · 需要用户决定`:`${t} · ${o}`}function G7(e){return e==="confirmed"?"需求已确认":e==="implicit"?"需求已隐式确认":"需求待确认"}function X7(e){return e==="create"?"新增":e==="replace"?"替换":e==="remove"?"删除":"未知操作"}function k7(e){return e?e.disposition==="hard-stop"?"已硬停止":"等待人工处理":"正常"}function Y7(e){return e?e.disposition==="hard-stop"?"danger":"warn":"ok"}function Yb(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(t)}function K7(e,t){if(!e)return t;const o=e.items.slice(0,t.items.length).map(l=>l.id),r=t.items.map(l=>l.id);if(e.total!==t.total||o.length!==r.length||!o.every((l,u)=>l===r[u]))return t;const i=new Map(t.items.map(l=>[l.id,l]));return{...e,items:e.items.map(l=>i.get(l.id)??l)}}function Q7(e){return e instanceof Error&&e.message==="Stale Native Dashboard change cursor"}async function ER(e){try{const t=await e.json();if(typeof t?.error=="string"&&t.error.trim())return new Error(t.error)}catch{}return new Error(`HTTP ${e.status}`)}function Z7({detailLoading:e,selectedId:t,selectedDetailId:o,visibleIds:r,failedDetailId:i}){return e||!t||i===t?!1:!(o===t&&r.includes(t))}function J7({detailLoading:e,selectedId:t,selectedDetailId:o,failedDetailId:r}){return r&&r===t?!1:e||!!(t&&!o)}const eV=3e4,tV="'Segoe UI Variable', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif",nV="Bahnschrift, 'Cascadia Mono', Consolas, monospace";function oV(){const[e,t]=c.useState(()=>{const r=localStorage.getItem("comet-theme"),i=r==="dark"||r==="light"?r:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return document.documentElement.setAttribute("data-theme",i),i});c.useLayoutEffect(()=>{const r=document.documentElement;r.classList.add("theme-switching"),r.setAttribute("data-theme",e),localStorage.setItem("comet-theme",e);const i=window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>r.classList.remove("theme-switching"))});return()=>window.cancelAnimationFrame(i)},[e]);const o=c.useCallback(()=>t(r=>r==="dark"?"light":"dark"),[]);return{theme:e,toggle:o}}const Kb=[["open","启动"],["design","设计"],["build","构建"],["verify","验证"],["archive","归档"]],rv={pass:"通过",fail:"验证失败",pending:"待验证",unknown:"未知"},wR={pass:"ok",fail:"danger",pending:"warn",unknown:"neutral"};function rV(){const{theme:e,toggle:t}=oV();return O.jsx(Aa,{theme:{token:{colorPrimary:e==="dark"?"#7fa8ff":"#255ed8",colorBgContainer:e==="dark"?"#151923":"#ffffff",colorBgElevated:e==="dark"?"#1a202b":"#ffffff",colorBgLayout:e==="dark"?"#0e1420":"#eef1f5",colorText:e==="dark"?"#edf2fb":"#101827",colorTextSecondary:e==="dark"?"#aab5c8":"#5f6979",colorBorder:e==="dark"?"#293345":"#e3e8ef",colorSplit:e==="dark"?"#293345":"#edf0f4",colorFillAlter:e==="dark"?"#182131":"#f6f8fb",colorInfoBg:e==="dark"?"#1a202b":"#e6f4ff",colorInfoBorder:e==="dark"?"#34597f":"#91caff",borderRadius:12,fontFamily:tV,fontFamilyCode:nV,fontSize:14,fontSizeHeading2:26,fontSizeHeading3:18,fontSizeHeading4:15}},children:O.jsx(T0,{children:O.jsx(aV,{theme:e,onToggleTheme:t})})})}function aV({theme:e,onToggleTheme:t}){const[o,r]=c.useState(null),[i,l]=c.useState(null),[u,f]=c.useState("classic"),[p,m]=c.useState([]),[h,b]=c.useState(!1),[v,x]=c.useState({active:null,archived:null,all:null}),[C,S]=c.useState({active:null,archived:null,all:null}),[R,E]=c.useState(null),[N,$]=c.useState(null),[w,T]=c.useState(null),[z,A]=c.useState(!1),[P,j]=c.useState(null),[L,I]=c.useState(null),[H,W]=c.useState(null),[J,q]=c.useState(!1),[D,X]=c.useState(null),[V,Z]=c.useState("active"),[Q,B]=c.useState(""),[F,k]=c.useState(!1),[G,K]=c.useState(!1),[te,Y]=c.useState(null),ie=c.useRef(null),se=c.useRef(null),ae=c.useRef(null),me=c.useRef(null),ne=c.useRef(null),ue=c.useRef(null),ye=c.useRef({active:null,archived:null,all:null}),ve=c.useRef({active:null,archived:null,all:null}),Ee=c.useRef(""),{message:Ce}=T0.useApp(),be=c.useCallback((he,Te="success")=>Ce[Te](he),[Ce]),ge=new URLSearchParams(window.location.search).has("demo"),ze=c.useRef(Q),we=c.useRef(V);ze.current=Q,we.current=V,c.useEffect(()=>{ue.current=L},[L]),c.useEffect(()=>{ye.current=v},[v]);const Ie=c.useCallback(async(he=!1)=>{if(!ge&&!i)return;ie.current?.abort();const Te=new AbortController;ie.current=Te,he&&k(!0);try{const Le=ge?await MV():await $V(i,Te.signal,ze.current);if(ie.current!==Te||Te.signal.aborted)return;if(ge){r(Le);const Ge=OV(Le,ue.current);I(Ge),W(NE(Le,Ge)),Ee.current=Q}else{const Ge=Le.initialChanges,ot=we.current,Qe=ze.current,ut=Qe!==Ee.current,Ct=ut?{active:Ge,archived:null,all:null}:{...ye.current,active:K7(ye.current.active,Ge)},mt=ot==="active"?Ct.active:Ct[ot];r(DV(Le,Ge)),ye.current=Ct,x(Ct);const Nt=ut?{active:null,archived:null,all:null}:ve.current;ve.current=Nt,S(Nt);const vt=HV(ut&&ot!=="active"?Ct[ot]:mt,ue.current),Pt=ue.current;I(vt),ue.current=vt,vt!==Pt&&(W(null),X(null),q(!1)),Ee.current=Qe}he&&be("状态已刷新")}catch(Le){if(Te.signal.aborted)return;be(`刷新失败:${Le.message}`,"error")}finally{ie.current===Te&&(ie.current=null,he&&k(!1))}},[i,be,ge]);c.useEffect(()=>{if(!ge&&(!h||!i))return;Ie(!1);const he=window.setInterval(()=>{Ie(!1)},eV);return()=>window.clearInterval(he)},[i,h,Ie,ge]),c.useEffect(()=>()=>{ie.current?.abort(),se.current?.abort(),ae.current?.abort(),me.current?.abort(),ne.current?.abort()},[]),c.useEffect(()=>{if(ge)return;let he=!1;return CV().then(Te=>{if(he)return;m(Te.projects??[]);const Le=(Te.projects??[]).filter(Qe=>Qe.availability==="available"),Ge=localStorage.getItem("comet-dashboard-project"),ot=Le.find(Qe=>Qe.id===Ge)?.id??Te.currentProjectId;l(Qe=>Qe??ot),b(!0)}).catch(Te=>{he||(b(!0),be(`项目列表加载失败:${Te.message}`,"error"))}),()=>{he=!0}},[ge]);const Oe=c.useCallback(async(he,Te=!1)=>{if(ge||!i||Te&&se.current)return;const Le=ye.current[he];if(Te&&!Le?.nextCursor)return;se.current?.abort();const Ge=new AbortController;se.current=Ge,E(he);try{const ot=await EV(i,he,{cursor:Te?Le?.nextCursor:void 0,query:Q,signal:Ge.signal});if(se.current!==Ge||Ge.signal.aborted)return;const Qe=Te&&Le?{...ot,items:[...Le.items,...ot.items]}:ot;x(ut=>({...ut,[he]:Qe})),r(ut=>ut&&LV(ut,he,Qe.items)),Ee.current=Q}catch(ot){if(Ge.signal.aborted)return;be(`变更列表加载失败:${ot.message}`,"error")}finally{se.current===Ge&&(se.current=null,E(null))}},[i,Q,be,ge]);c.useEffect(()=>{if(ge||!o||!i||Q===Ee.current)return;const he=window.setTimeout(()=>{ie.current?.abort(),se.current?.abort(),ae.current?.abort(),x({active:null,archived:null,all:null}),ye.current={active:null,archived:null,all:null},S({active:null,archived:null,all:null}),ve.current={active:null,archived:null,all:null}},250);return()=>window.clearTimeout(he)},[i,Q,o,ge]),c.useEffect(()=>{ge||!o||!i||v[V]||Oe(V)},[i,Oe,v,o,V,ge]);const je=c.useCallback(async(he,Te=!1)=>{if(ge||u!=="native"||!i||!o?.native||Te&&ae.current)return;const Le=ve.current[he];if(Te&&!Le?.nextCursor)return;ae.current?.abort();const Ge=new AbortController;ae.current=Ge,$(he);try{const ot=await wV(i,he,{cursor:Te?Le?.nextCursor:void 0,query:Q,signal:Ge.signal});if(ae.current!==Ge||Ge.signal.aborted)return;const Qe=Te&&Le?{...ot,items:[...Le.items,...ot.items]}:ot,ut={...ve.current,[he]:Qe};ve.current=ut,S(ut)}catch(ot){if(Ge.signal.aborted)return;if(Te&&Q7(ot)){const Qe={...ve.current,[he]:null};ve.current=Qe,S(Qe),be("Native 变更列表已更新,正在重新加载第一页。","info");return}be(`Native 变更列表加载失败:${ot.message}`,"error")}finally{ae.current===Ge&&(ae.current=null,$(null))}},[i,Q,o,be,ge,u]),nt=c.useCallback(async he=>{if(!he)return;if(j(null),ge){T(he);return}if(!i)return;me.current?.abort();const Te=new AbortController;me.current=Te,A(!0);try{const Le=await NV(i,he,Te.signal);if(me.current!==Te||Te.signal.aborted)return;T(Le)}catch(Le){if(Te.signal.aborted)return;j({change:he,reason:Le instanceof Error?Le.message:String(Le)}),be(`Native 变更详情加载失败:${Le.message}`,"error")}finally{me.current===Te&&(me.current=null,A(!1))}},[i,be,ge]);c.useEffect(()=>{ge||u!=="native"||!o?.native||C[V]||je(V)},[je,C,o,V,ge,u]);const Ye=H,De=c.useMemo(()=>ge?zV(o,V,Q):v[V]?.items??[],[v,Q,o,V,ge]),qe=v[V],Je=ge?De.length:qe?.total??De.length,Ue=C[V],Pe=V==="active"?o?.native?.activeChangeCount??0:V==="archived"?o?.native?.archivedChangeCount??0:o?.native?.totalChangeCount??0,_e=ge?o?.native?.changes?.length??0:Ue?.total??Pe,We=c.useCallback(async he=>{if(ue.current=he,I(he),X(null),ge){W(NE(o,he));return}if(!i)return;ne.current?.abort();const Te=new AbortController;ne.current=Te,q(!0);try{const Le=await RV(i,he,Te.signal);if(ne.current!==Te||Te.signal.aborted)return;W(Le)}catch(Le){if(Te.signal.aborted)return;X({id:he,message:Le instanceof Error?Le.message:String(Le)}),be(`变更详情加载失败:${Le.message}`,"error")}finally{ne.current===Te&&(ne.current=null,q(!1))}},[i,o,be,ge]);c.useEffect(()=>{if(ge||!o||!i||!Z7({detailLoading:J,selectedId:L,selectedDetailId:H?.id??null,visibleIds:De.map(Te=>Te.id),failedDetailId:D?.id??null}))return;const he=De[0]?.id??null;if(ne.current?.abort(),!he){ue.current=null,I(null),W(null),q(!1);return}We(he)},[i,J,D,We,H,L,o,ge,De]);const Be=c.useCallback(he=>Z(he),[]);return O.jsxs("main",{className:"dashboard-workbench min-h-screen bg-surface text-fg antialiased lg:grid lg:grid-cols-[var(--rail-w)_1fr]",children:[O.jsx(PV,{open:G,workflow:u,onWorkflow:f,onClose:()=>K(!1)}),G&&O.jsx("button",{className:"fixed inset-0 z-40 bg-black/30 lg:hidden","aria-label":"关闭导航",onClick:()=>K(!1)}),O.jsxs("section",{className:"min-w-0",children:[O.jsx(iV,{project:o?.project,projects:p,activeProjectId:i,onProjectSelect:he=>{localStorage.setItem("comet-dashboard-project",he),ie.current?.abort(),se.current?.abort(),ae.current?.abort(),me.current?.abort(),ne.current?.abort(),l(he),r(null),x({active:null,archived:null,all:null}),ye.current={active:null,archived:null,all:null},S({active:null,archived:null,all:null}),ve.current={active:null,archived:null,all:null},T(null),j(null),I(null),ue.current=null,W(null),X(null),B(""),K(!1)},loading:F,query:Q,onQuery:B,onMenu:()=>K(!0),onRefresh:()=>Ie(!0),theme:e,onToggleTheme:t}),O.jsx("div",{className:"dashboard-content-shell",children:O.jsx("div",{className:"dashboard-content-inner",children:o?u==="native"?O.jsx(O7,{native:o.native,git:o.git,query:Q,tab:V,onTab:Be,pagedChanges:ge?null:Ue?.items??[],total:_e,hasMore:!!Ue?.nextCursor,pageLoading:N===V||!ge&&!Ue,onLoadMore:()=>je(V,!0),selectedDetail:w,detailLoading:z,detailError:P,onSelect:nt,onRetryDetail:()=>P?.change&&nt(P.change),onPreview:Y,onCopyChangeName:he=>RR(he).then(()=>be("Change 名称已复制")).catch(()=>be("复制 Change 名称失败","error"))}):O.jsx(sV,{snapshot:o,visible:De,visibleTotal:Je,selected:Ye,selectedId:L,tab:V,onTab:Be,onSelect:We,hasMore:!!qe?.nextCursor,pageLoading:R===V,onLoadMore:()=>Oe(V,!0),detailLoading:J,detailError:D,onRetryDetail:()=>L&&We(L),onPreview:Y}):O.jsx(SV,{})})})]}),O.jsx(bV,{artifact:te,onClose:()=>Y(null)})]})}function iV({project:e,loading:t,query:o,onQuery:r,projects:i,activeProjectId:l,onProjectSelect:u,onMenu:f,onRefresh:p,theme:m,onToggleTheme:h}){return O.jsxs("header",{className:"comet-workbench-header sticky top-0 z-30 border-b border-border-soft bg-surface/90 backdrop-blur-xl",children:[O.jsx(to,{className:"comet-header-menu lg:hidden",type:"text",icon:O.jsx(Y9,{}),onClick:f,"aria-label":"打开导航"}),O.jsx("div",{className:"comet-header-context",children:O.jsx(Ts,{className:"comet-project-select",value:l??void 0,placeholder:e?.name??"选择项目",showSearch:!0,optionFilterProp:"searchText",optionLabelProp:"selectedLabel",classNames:{popup:{root:"comet-project-select-dropdown"}},onChange:u,options:i.map(b=>({value:b.id,disabled:b.availability!=="available",searchText:`${b.name} ${b.path}`,selectedLabel:b.name,label:O.jsxs("span",{className:"comet-project-option",children:[O.jsx("strong",{className:"comet-project-option-name",children:b.name}),O.jsx("small",{className:"comet-project-option-path",children:b.path})]})}))})}),O.jsx("div",{className:"comet-header-search",children:O.jsx(As,{value:o,onChange:b=>r(b.target.value),prefix:O.jsx(B0,{className:"text-meta"}),placeholder:"搜索变更、产物或文件…",allowClear:!0})}),O.jsxs("div",{className:"comet-header-actions",children:[O.jsx(Ur,{title:"立即刷新",children:O.jsx(to,{className:"comet-refresh-button",icon:O.jsx(HL,{}),loading:t,onClick:p,"aria-label":"立即刷新"})}),O.jsx(Ur,{title:m==="dark"?"切换到亮色模式":"切换到暗色模式",children:O.jsx(to,{className:"hidden sm:inline-flex",type:"text",icon:m==="dark"?O.jsx(c7,{}):O.jsx(e7,{}),onClick:h,"aria-label":m==="dark"?"切换到亮色模式":"切换到暗色模式"})})]})]})}function sV({snapshot:e,visible:t,visibleTotal:o,selected:r,selectedId:i,tab:l,onTab:u,onSelect:f,hasMore:p,pageLoading:m,onLoadMore:h,detailLoading:b,detailError:v,onRetryDetail:x,onPreview:C}){const S=e.summary.activeChanges+e.summary.archivedChanges>0,R=e.classicError&&S,E=J7({detailLoading:b,selectedId:i,selectedDetailId:r?.id??null,failedDetailId:v?.id??null});return O.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[O.jsx(EE,{title:"项目概览",hint:`生成于 ${iv(e.project.generatedAt)}`}),O.jsx(lV,{command:r?.next?.command,description:r?.next?.description}),O.jsx(BV,{snapshot:e}),O.jsx(EE,{title:"变更工作区",hint:"查看文件产物与项目进度"}),e.classicError&&!S?O.jsx(yV,{error:e.classicError}):S?O.jsxs(O.Fragment,{children:[R?O.jsx(vV,{error:e.classicError}):null,O.jsx(CR,{leftClassName:"dashboard-workspace-left-inner-scroll",stableFrame:!0,left:O.jsx(_V,{visible:t,total:o,selectedId:i,tab:l,onTab:u,onSelect:f,hasMore:p,pageLoading:m,onLoadMore:h}),center:r?O.jsx(FV,{change:r,onPreview:C}):E?O.jsx("div",{className:"change-detail dashboard-change-detail-loading min-w-0 rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载变更详情…"}):v?O.jsxs("div",{className:"change-detail min-w-0 rounded-lg bg-bg p-10 text-center text-sm text-danger shadow-raised",children:[O.jsxs("p",{role:"alert",children:["变更详情加载失败:",v.message]}),O.jsx(to,{className:"mt-4",onClick:x,children:"重试"})]}):null,right:r?O.jsx(fV,{change:r,git:e.git,onPreview:C}):null})]}):O.jsx(xV,{})]})}function lV({command:e,description:t}){return O.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[O.jsxs("div",{className:"dashboard-priority-title",children:[O.jsx(J0,{"aria-hidden":"true"}),O.jsx("span",{children:"下一步建议"})]}),O.jsx("p",{children:e?O.jsxs(O.Fragment,{children:["优先执行 ",O.jsx("code",{children:e}),t?`,${t}`:",完成当前工作流阶段。"]}):"当前变更没有待执行动作,可以继续检查产物与验证结果。"})]})}function EE({title:e,hint:t}){return O.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[O.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),O.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function cV({change:e,onPreview:t}){const o=new Map((e.artifactPreviews??[]).map(m=>[m.key,m])),r=e.artifacts?.grouped??[],i=r.length,l=r.filter(m=>m.exists).length,u=r.filter(m=>m.source==="openspec"),f=r.filter(m=>m.source==="superpowers"),p=r.filter(m=>m.source==="comet");return O.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[l,"/",i]})]}),O.jsxs("div",{className:"space-y-3",children:[O.jsx(Ig,{title:"OpenSpec",artifacts:u,previewByKey:o,onPreview:t}),O.jsx(Ig,{title:"Superpowers",artifacts:f,previewByKey:o,onPreview:t}),O.jsx(Ig,{title:"Comet",artifacts:p,previewByKey:o,onPreview:t})]})]})}function Ig({title:e,artifacts:t,previewByKey:o,onPreview:r}){return t.length===0?null:O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[O.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:e}),O.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),O.jsx("div",{className:"space-y-px",children:t.map(i=>{const l=o.get(i.key);return O.jsx(uV,{artifact:i,preview:l,onPreview:r},i.key)})})]})}function uV({artifact:e,preview:t,onPreview:o}){const r=e.exists,i=e.notApplicable,l=r?e.label:i?"无需生成":"未生成";return O.jsxs("button",{className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${r?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!r,onClick:()=>o({key:e.key,name:e.label,preview:t}),children:[O.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:r?O.jsx("span",{className:"h-2 w-2 rounded-full bg-accent"}):i?O.jsx("span",{className:"h-2 w-2 rounded-full border border-border bg-surface"}):O.jsx("span",{className:"h-2 w-2 rounded-full border border-border"})}),O.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:e.key}),O.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:l})]})}function dV({change:e}){const t=e.tasks.total,o=e.tasks.completed,r=Math.max(0,t-o),i=e.status==="archived",l=e.tasks.sections.filter($=>$.status==="done").length,u=e.tasks.sections.length,f=t?Math.round(o/t*100):0,p=ds(f,900,e.id),m=ds(o,900,e.id),h=ds(r,900,e.id),b=ds(l,900,e.id),v=Math.round(h),x=2*Math.PI*54,C=x*(1-p/100),S=r===0&&t>0,R=i||S?"bg-ok-soft text-success":"bg-accent-softer text-fg-2",E=i||S?"bg-success":"bg-accent",N=i?"已归档完成,流程已结束":S?`所有任务已完成,可以进入 ${e.phase==="verify"?"归档":"Verify"}`:`剩余 ${v} 项未完成,完成后进入 ${e.phase==="verify"?"归档":"Verify"}`;return O.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"任务进度"}),O.jsx("span",{className:`rounded-full px-2 py-0.5 text-[11px] font-medium ${S?"bg-ok-soft text-success":"bg-accent-soft text-accent"}`,children:S?"全部完成":`${v} 项待办`})]}),O.jsx("div",{className:"flex justify-center",children:O.jsxs("div",{className:"relative h-[110px] w-[110px]",children:[O.jsxs("svg",{className:"block size-full -rotate-90",viewBox:"0 0 120 120",role:"img","aria-label":`任务完成度 ${f}%`,children:[O.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"var(--color-border-soft)",strokeWidth:"7"}),O.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:S?"var(--color-success)":"var(--color-accent)",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:C})]}),O.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[O.jsxs("span",{className:"text-[26px] font-bold leading-none tabular-nums",children:[Math.round(p),"%"]}),O.jsx("span",{className:"mt-0.5 text-[10px] text-muted",children:"完成度"})]})]})}),O.jsxs("div",{className:"mt-4 flex items-center justify-center gap-6 text-center",children:[O.jsxs("div",{children:[O.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:Math.round(m)}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"已完成"})]}),O.jsx("div",{className:"h-6 w-px bg-border-soft"}),O.jsxs("div",{children:[O.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:v}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"剩余"})]}),O.jsx("div",{className:"h-6 w-px bg-border-soft"}),O.jsxs("div",{children:[O.jsxs("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:[Math.round(b),"/",u]}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"分组"})]})]}),e.tasks.sections.length>0&&O.jsx("div",{className:"mt-4 space-y-2.5 border-t border-border-soft pt-4",children:e.tasks.sections.map($=>{const w=$.total?Math.round($.completed/$.total*100):0,T=$.status==="done";return O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[O.jsx("span",{className:"truncate text-[11px] text-fg-2",children:$.title}),O.jsxs("span",{className:"shrink-0 pl-2 font-mono text-[10px] text-muted",children:[$.completed,"/",$.total]})]}),O.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-surface",children:O.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${T?"bg-success":"bg-accent"}`,style:{width:`${w}%`}})})]},$.title)})}),O.jsxs("div",{className:`mt-4 flex items-center gap-2 rounded-lg px-3 py-2 text-[11px] ${R}`,children:[O.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${E}`}),O.jsx("span",{children:N})]})]})}function fV({change:e,git:t,onPreview:o}){return O.jsxs("aside",{className:"min-h-[480px] space-y-4",children:[e.status==="archived"?O.jsx(pV,{change:e}):O.jsx(mV,{change:e}),O.jsx(gV,{change:e}),O.jsx(hV,{git:t})]})}function mV({change:e}){return O.jsxs(Of,{title:"下一步建议",tag:av(e.phase),children:[O.jsxs("div",{className:"rounded-xl bg-fg px-4 py-3 font-mono text-[13px] text-bg",children:[O.jsx("span",{className:"text-success",children:"$ "}),e.next?.command??"—"]}),O.jsx("p",{className:"text-sm text-fg-2",children:e.next?.reason??"暂无建议"}),O.jsx("p",{className:"text-[13px] leading-relaxed text-muted",children:e.next?.description??""})]})}function pV({change:e}){return O.jsxs(Of,{title:"归档摘要",tag:"已归档",children:[O.jsx("div",{className:"break-words rounded-xl bg-accent-soft px-4 py-3 font-mono text-[13px] text-accent",children:e.archive?.archiveName??e.name}),O.jsxs("p",{className:"break-words text-sm text-fg-2",children:["原名:",e.archive?.originalName??e.name," · 归档于:",e.archive?.archivedAt??"—"]}),O.jsxs("p",{className:"break-words text-[13px] leading-relaxed text-muted",children:["归档路径:",e.archive?.archivePath??e.path," · 任务:",e.tasks.completed," /"," ",e.tasks.total]})]})}function gV({change:e}){const t=e.risks??[];return O.jsx(Of,{title:"风险提示",tag:`${t.length} 项`,children:t.length===0?O.jsx("div",{className:"rounded-xl bg-surface-warm p-3 text-sm text-muted",children:"当前未发现阻塞风险。"}):O.jsx("div",{className:"space-y-2",children:t.map(o=>O.jsxs("div",{className:"rounded-xl border border-border-soft p-3",children:[O.jsxs("div",{className:"flex gap-2 text-sm font-semibold",children:[O.jsx("span",{className:o.level==="error"?"text-danger":o.level==="warning"?"text-warn":"text-meta",children:"●"}),O.jsx("span",{children:o.message})]}),O.jsx("div",{className:"mt-1 font-mono text-xs text-meta",children:o.code})]},`${o.code}-${o.message}`))})})}function hV({git:e}){return O.jsxs(Of,{title:"Git 快照",tag:`${e.dirtyFiles} 个未提交`,children:[O.jsx(wE,{k:"分支",v:e.branch??"—"}),O.jsx(wE,{k:"HEAD",v:e.head??"—"}),O.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"最近提交"}),O.jsx("ul",{className:"space-y-1",children:e.recentCommits.map(t=>O.jsx("li",{className:"truncate text-sm text-fg-2",children:t},t))}),O.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"未提交文件"}),O.jsx("ul",{className:"space-y-1",children:e.dirtyFileList.slice(0,5).map(t=>O.jsx("li",{className:"break-all font-mono text-xs text-warn",children:t},t))})]})}function Of({title:e,tag:t,children:o}){return O.jsxs("article",{className:"rounded-lg bg-bg p-5 shadow-card",children:[O.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[O.jsx("h4",{className:"font-semibold",children:e}),t&&O.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:t})]}),O.jsx("div",{className:"space-y-3",children:o})]})}function wE({k:e,v:t}){return O.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[O.jsx("span",{className:"w-16 shrink-0 text-muted",children:e}),O.jsx("span",{className:"min-w-0 truncate font-mono text-[13px]",children:t})]})}function bV({artifact:e,onClose:t}){const[o,r]=c.useState({status:"idle"}),[i,l]=c.useState(!1),[u,f]=c.useState([]),[p,m]=c.useState(""),h=c.useRef(null),b=c.useRef(null);if(c.useEffect(()=>{if(!e){l(!1);return}const x=window.scrollY,C={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,width:document.body.style.width};return document.body.style.position="fixed",document.body.style.top=`-${x}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",()=>{l(!1),document.body.style.position=C.position,document.body.style.top=C.top,document.body.style.left=C.left,document.body.style.right=C.right,document.body.style.width=C.width,window.scrollTo(0,x)}},[e]),c.useEffect(()=>{if(!e){r({status:"idle"});return}let x=!1;r({status:"loading"});const C=e.preview,S=C?.path??"",R=e.key==="cometYaml"||/\.ya?ml$/i.test(S),E=e.key==="handoff"||e.key==="checkpoint"||/\.json$/i.test(S),N=R||E,$=C?.exists?N?C.content?.trimEnd()||"":`${C.content?.trimEnd()||"这个产物是空文件。"}${C.truncated?`
249
+
250
+ > 内容过长,已截取前 256KB。`:""}`:C?`尚未生成 ${e.name}。`:"这个产物文件存在,但当前 dashboard 服务返回的数据里没有全文内容。请重启 dashboard 服务后再刷新页面。";return(async()=>{try{let w;if(C?.exists&&N?$.trim()?(w=E?await SE($):await xE($),C.truncated&&(w+="<p><em>内容过长,已截取前 256KB。</em></p>")):w=E?await SE(""):await xE(""):w=await ac($),x)return;if(!w.trim()){r({status:"empty"});return}r({status:"success",html:w})}catch(w){if(x)return;r({status:"error",message:w instanceof Error?w.message:"产物预览渲染失败,请重试"})}})(),()=>{x=!0}},[e]),c.useEffect(()=>{if(o.status==="success"&&h.current){E7(h.current);const x=$7(h.current);f(x),x.length>0&&m(x[0].id)}else f([]),m("")},[o]),c.useEffect(()=>{if(!i)return;const x=b.current,C=h.current;if(!x||!C||u.length===0)return;const S=()=>{const R=u.map(({id:N})=>document.getElementById(N)).filter(Boolean);let E=R[0]?.id??"";for(const N of R){const $=N.getBoundingClientRect(),w=x.getBoundingClientRect();$.top-w.top<=80&&(E=N.id)}m(E)};return x.addEventListener("scroll",S,{passive:!0}),()=>x.removeEventListener("scroll",S)},[u,i]),!e)return null;const v=e.preview;return O.jsxs("div",{className:i?"fixed inset-0 z-[90] flex":"fixed inset-0 z-[90] grid grid-cols-[minmax(0,1fr)_minmax(360px,760px)] max-sm:grid-cols-1",children:[!i&&O.jsx("button",{"aria-label":"关闭产物预览",className:"bg-black/30 max-sm:hidden",onClick:t}),O.jsxs("section",{className:["flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-bg",i?"h-full w-full":"border-l border-border shadow-[-20px_0_44px_rgba(0,0,0,0.12)]"].join(" "),children:[O.jsxs("header",{className:"flex items-start gap-3 border-b border-border-soft p-5",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("h2",{className:"text-xl font-bold",children:e.name}),O.jsxs("div",{className:"mt-1 flex items-start gap-1.5",children:[v?.path&&O.jsx("button",{type:"button",className:"grid size-7 shrink-0 place-items-center rounded-lg text-muted hover:bg-surface hover:text-fg-2","aria-label":"复制文件路径",onClick:async()=>{try{await navigator.clipboard.writeText(v.path),toast("路径已复制")}catch{toast("复制失败","error")}},children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),O.jsx("p",{className:"min-w-0 flex-1 break-all font-mono text-xs text-meta",children:v?.path??"当前服务未返回全文内容"})]}),(v?.size!=null||v?.updatedAt)&&O.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-3 text-[11px] text-muted",children:[v?.size!=null&&O.jsx("span",{children:IV(v.size)}),v?.updatedAt&&O.jsxs("span",{children:["更新于 ",iv(v.updatedAt)]})]})]}),O.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[O.jsx("button",{type:"button",className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:()=>l(x=>!x),"aria-label":i?"退出全屏":"全屏展示",children:i?O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})}):O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})})}),O.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:t,"aria-label":"关闭产物预览",children:"×"})]})]}),O.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[i&&u.length>0&&O.jsxs("nav",{"aria-label":"文档目录",className:"hidden w-[220px] shrink-0 overflow-y-auto border-r border-border-soft bg-surface px-3 py-4 sm:block",children:[O.jsx("p",{className:"mb-2 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted",children:"目录"}),O.jsx("ul",{className:"space-y-0.5",children:u.map(x=>O.jsx("li",{children:O.jsx("a",{href:`#${x.id}`,onClick:C=>{C.preventDefault();const S=document.getElementById(x.id),R=b.current;if(!S||!R)return;const E=S.getBoundingClientRect().top-R.getBoundingClientRect().top+R.scrollTop-16;R.scrollTo({top:E,behavior:"smooth"}),m(x.id)},className:["block rounded-md px-2 py-1.5 leading-snug transition-colors",x.depth===1?"text-[13px] font-medium":"",x.depth===2?"pl-4 text-xs":"",x.depth===3?"pl-7 text-xs":"",p===x.id?"bg-accent-soft font-medium text-accent":"text-fg-2 hover:bg-surface-warm hover:text-fg"].join(" "),children:x.text})},x.id))})]}),O.jsxs("div",{ref:b,className:["min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain",i?"px-12 py-6":"p-5"].join(" "),children:[o.status==="loading"&&O.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"正在加载..."}),o.status==="empty"&&O.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"该产物文件尚未生成"}),o.status==="error"&&O.jsx("p",{role:"alert",className:"py-10 text-center text-sm text-danger",children:o.message}),o.status==="success"&&O.jsx("article",{ref:h,className:"md-github",dangerouslySetInnerHTML:{__html:o.html}})]})]})]})]})}function NR({tone:e="neutral",children:t}){const o={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[e]??"bg-surface text-fg-2";return O.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold ${o}`,children:t})}function vV({error:e}){return O.jsxs("div",{role:"status",className:"mb-4 rounded-lg border border-warn/30 bg-warn-soft p-4 shadow-card",children:[O.jsx("h3",{className:"font-semibold text-warn",children:"Classic 数据部分读取失败"}),O.jsxs("p",{className:"mt-1 break-words text-sm text-fg-2",children:["已展示可读取的变更;请检查其余 Classic 产物目录后刷新。",e.message]})]})}function yV({error:e}){return O.jsxs("div",{role:"alert",className:"rounded-lg border border-danger/30 bg-danger-soft p-6 shadow-card",children:[O.jsx("h3",{className:"font-semibold text-danger",children:"Classic 数据读取失败"}),O.jsx("p",{className:"mt-2 break-words text-sm text-fg-2",children:e.message}),O.jsx("p",{className:"mt-3 text-sm text-muted",children:"请检查 .comet/config.yaml 与 Classic 产物目录,然后刷新 Dashboard。"})]})}function xV(){return O.jsxs("section",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[O.jsx("h3",{className:"text-lg font-semibold tracking-tight",children:"当前没有 Classic change"}),O.jsx("p",{className:"mt-2 text-sm text-muted",children:"Classic 变更出现后会在这里展示。"})]})}function SV(){return O.jsx("div",{className:"mx-auto max-w-dashboard rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载 dashboard..."})}async function CV(){const e=await fetch("/api/dashboard/projects",{cache:"no-store"});if(!e.ok)throw new Error(`HTTP ${e.status}`);return e.json()}async function $V(e,t,o=""){const r=new URLSearchParams;o.trim()&&r.set("q",o.trim());const i=r.toString()?`?${r.toString()}`:"",l=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/overview${i}`,{cache:"no-store",signal:t});if(!l.ok)throw new Error(`HTTP ${l.status}`);return l.json()}async function EV(e,t,o={}){const r=new URLSearchParams({status:t,limit:"5"});o.cursor&&r.set("cursor",o.cursor),o.query?.trim()&&r.set("q",o.query.trim());const i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/changes?${r.toString()}`,{cache:"no-store",signal:o.signal});if(!i.ok)throw new Error(`HTTP ${i.status}`);return i.json()}async function wV(e,t,o={}){const r=new URLSearchParams({status:t,limit:"5"});o.cursor&&r.set("cursor",o.cursor),o.query?.trim()&&r.set("q",o.query.trim());const i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/native-changes?${r.toString()}`,{cache:"no-store",signal:o.signal});if(!i.ok)throw await ER(i);return i.json()}async function NV(e,t,o){const r=new URLSearchParams({status:t.status,changeName:t.name});t.archiveName&&r.set("archiveName",t.archiveName);const i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/native-change?${r.toString()}`,{cache:"no-store",signal:o});if(!i.ok)throw await ER(i);return i.json()}async function RV(e,t,o){const r=new URLSearchParams({changeId:t}),i=await fetch(`/api/dashboard/projects/${encodeURIComponent(e)}/change?${r.toString()}`,{cache:"no-store",signal:o});if(!i.ok)throw new Error(`HTTP ${i.status}`);return i.json()}async function MV(){const e=await ci(()=>import("./demo-DZYPLZpF.js"),[]);return TV(e.DEMO_SNAPSHOT)}function TV(e){const t=o=>{const i=(o.artifacts?.grouped??[]).map(l=>({key:l.key,label:l.label,path:l.path,exists:l.exists,size:l.exists?1024+Math.floor(Math.random()*4096):void 0,updatedAt:l.exists?"2026-06-25T12:00:00.000Z":void 0,content:l.exists?`# ${l.label}
251
+
252
+ ${l.label}:${o.displayName}
253
+
254
+ - 当前阶段:${av(o.phase)}
255
+ - 任务进度:${o.tasks.completed}/${o.tasks.total}
256
+ - Verify:${rv[o.verify.result]??"未知"}
257
+ `:void 0}));return{...o,artifactPreviews:i}};return{...e,changes:{active:(e.changes.active??[]).map(t),archived:(e.changes.archived??[]).map(t)}}}function OV(e,t){const o=[...e.changes.active??[],...e.changes.archived??[]];return t&&o.some(r=>r.id===t)?t:e.changes.active?.[0]?.id??e.changes.archived?.[0]?.id??null}function NE(e,t){return!e||!t?null:[...e.changes.active??[],...e.changes.archived??[]].find(o=>o.id===t)??null}function zV(e,t,o){if(!e)return[];const r=t==="archived"?e.changes.archived??[]:t==="all"?[...e.changes.active??[],...e.changes.archived??[]]:e.changes.active??[],i=o.trim().toLowerCase();return i?r.filter(l=>[l.name,l.displayName,l.workflow,l.phase].filter(Boolean).join(" ").toLowerCase().includes(i)):r}function AV(e){return e.relativePath||e.name}function av(e){return Kb.find(([t])=>t===e)?.[1]??e??"未知"}function iv(e){if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const o=r=>String(r).padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}`}function IV(e){return e==null?null:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}async function RR(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.cssText="position:fixed;opacity:0;pointer-events:none",document.body.append(t),t.select();const o=document.execCommand("copy");if(t.remove(),!o)throw new Error("当前浏览器不支持复制")}VE.createRoot(document.getElementById("root")).render(O.jsx(rV,{}));function PV({open:e,workflow:t,onWorkflow:o,onClose:r}){const i=O.jsx(yc,{mode:"inline",selectedKeys:[t],items:[{key:"classic",icon:O.jsx(mR,{}),label:"Classic 工作流"},{key:"native",icon:O.jsx(yD,{}),label:"Native 工作流"}],onClick:({key:l})=>{o(l),r()}});return O.jsxs(O.Fragment,{children:[O.jsx(Is.Sider,{className:"dashboard-sidebar !hidden !bg-bg lg:!block",width:228,theme:"light",children:O.jsxs("div",{className:"flex h-full flex-col",children:[O.jsxs("div",{className:"dashboard-sidebar-brand flex items-center gap-2",children:[O.jsx("img",{src:"/favicon.png",alt:"Comet",className:"size-7 rounded-[7px]"}),O.jsxs("div",{children:[O.jsx("strong",{children:"Comet Dashboard"}),O.jsx("div",{className:"text-xs text-meta",children:"只读工作台"})]})]}),O.jsxs("div",{className:"dashboard-sidebar-navigation",children:[O.jsxs("div",{className:"dashboard-sidebar-feature",children:[O.jsx(M9,{"aria-hidden":"true"}),O.jsx("span",{children:"变更工作区"})]}),O.jsx("div",{className:"dashboard-sidebar-label",children:"工作流"}),i]}),O.jsxs("div",{className:"dashboard-sidebar-status",children:[O.jsxs("div",{className:"flex items-center gap-2 font-medium text-fg",children:[O.jsx(J0,{"aria-hidden":"true"}),"工作台状态"]}),O.jsx("div",{className:"mt-2 text-xs text-meta",children:"只读连接 · 自动同步"})]})]})}),O.jsx(iR,{title:"Comet 工作台",placement:"left",open:e,onClose:r,size:280,children:i})]})}function BV({snapshot:e}){const[t,o]=c.useState(0),r=[["活跃变更",e.summary.activeChanges,"当前 Classic workflow","进行中",gR],["已归档变更",e.summary.archivedChanges,"历史变更已归档","已完成",pR],["Verify 失败",e.summary.verifyFailed,"验证结果",e.summary.verifyFailed?"阻塞":"健康",hR],["未完成任务",e.summary.tasksIncomplete,"任务推进情况",e.summary.tasksIncomplete?"待办":"清零",Ms],["Git 未提交",e.summary.dirtyFiles,"工作区状态",e.summary.dirtyFiles?"未提交":"干净",mR]];return O.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:r.map(([i,l,u,f,p],m)=>O.jsx(jV,{title:i,value:l,note:u,status:f,icon:p,tone:`dashboard-summary-tone-${m+1}`,selected:t===m,onClick:()=>o(m)},i))})}function jV({title:e,value:t,note:o,status:r,icon:i,tone:l,selected:u,onClick:f}){const p=ds(t,850,t);return O.jsxs("button",{type:"button","aria-pressed":u,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${l} ${u?"dashboard-summary-primary":""}`,onClick:f,children:[O.jsxs("div",{className:"dashboard-summary-card-top",children:[O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),O.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(p)})]}),O.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:O.jsx(i,{})})]}),O.jsx("span",{className:"dashboard-summary-status",children:r}),O.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:o})]})}function _V({visible:e,total:t,selectedId:o,tab:r,onTab:i,onSelect:l,hasMore:u,pageLoading:f,onLoadMore:p}){const m=[["active","活跃"],["archived","已归档"],["all","全部"]].map(([h,b])=>({key:h,label:b}));return O.jsx(rc,{className:"classic-changes-explorer min-w-0",title:O.jsxs("span",{children:["Changes Explorer ",O.jsx(pN,{count:t,showZero:!0,className:"ml-2"})]}),children:O.jsx(X0,{activeKey:r,onChange:i,items:m.map(h=>({...h,children:O.jsx(VV,{visible:e,selectedId:o,onSelect:l,hasMore:u,pageLoading:f,onLoadMore:p})}))})})}function HV(e,t){const o=e?.items??[];return t&&o.some(r=>r.id===t)?t:o[0]?.id??null}function DV(e,t){return{...e,changes:{active:t?.items??[],archived:[]}}}function LV(e,t,o){return t==="active"?{...e,changes:{...e.changes,active:o}}:t==="archived"?{...e,changes:{...e.changes,archived:o}}:{...e,changes:{active:o.filter(r=>r.status==="active"),archived:o.filter(r=>r.status==="archived")}}}function VV({visible:e,selectedId:t,onSelect:o,hasMore:r,pageLoading:i,onLoadMore:l}){const u=c.useRef(null),f=c.useRef(null);c.useEffect(()=>{const m=u.current,h=f.current;if(!m||!h||!r||!l)return;const b=new IntersectionObserver(([v])=>{v.isIntersecting&&!i&&l()},{root:m});return b.observe(h),()=>b.disconnect()},[r,l,i]);const p=c.useCallback(m=>{if(!r||i||!l)return;const{scrollTop:h,clientHeight:b,scrollHeight:v}=m.currentTarget;h>0&&h+b>=v-24&&l()},[r,l,i]);return O.jsxs("div",{ref:u,className:"dashboard-change-list",onScroll:p,children:[e.length===0&&!i?O.jsx(jr,{image:jr.PRESENTED_IMAGE_SIMPLE,description:"暂无变更"}):e.map(m=>O.jsx("div",{className:`dashboard-change-list-item ${m.id===t?"selected":""} px-2`,children:O.jsx(to,{className:`dashboard-change-row ${m.id===t?"dashboard-change-row-selected":""}`,type:"text",block:!0,onClick:()=>o(m.id),children:O.jsxs("div",{className:"flex w-full items-center gap-2.5 text-left",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("strong",{className:"block truncate",children:m.displayName}),O.jsxs("span",{className:"mt-0.5 block text-xs text-meta",children:[av(m.phase)," · ",m.tasks.completed,"/",m.tasks.total]}),O.jsx(IL,{percent:m.tasks.total?Math.round(m.tasks.completed/m.tasks.total*100):0,className:"mt-1",size:"small",showInfo:!1})]}),O.jsx(NR,{tone:wR[m.verify.result]??"neutral",children:rv[m.verify.result]??"未知"})]})})},m.id)),O.jsx("div",{ref:f,className:"py-2 text-center text-xs text-meta","aria-live":"polite",children:i?O.jsx(K0,{size:"small"}):r?"继续下滑加载更多":null})]})}function FV({change:e,onPreview:t}){const[o,r]=c.useState(!1),i=e.status==="archived"?"archive":e.phase,l=Math.max(0,Kb.findIndex(([u])=>u===i));return O.jsxs(rc,{className:"change-detail min-w-0",title:O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("span",{className:"truncate",children:e.displayName}),O.jsx(Ur,{title:"复制 Change 名称",children:O.jsx(to,{type:"text",size:"small",icon:o?O.jsx(Ms,{}):O.jsx(fR,{}),"aria-label":o?"已复制 Change 名称":"复制 Change 名称",onClick:()=>RR(e.name).then(()=>{r(!0),toast("Change 名称已复制"),window.setTimeout(()=>r(!1),1600)}).catch(()=>toast("复制 Change 名称失败","error"))})})]}),extra:O.jsx(NR,{tone:e.status==="archived"?"neutral":wR[e.verify.result],children:e.status==="archived"?"已归档":rv[e.verify.result]}),children:[O.jsxs("div",{className:"mb-4 text-xs text-meta",children:[e.workflow??"—"," · 更新于 ",iv(e.updatedAt)," ·"," ",AV(e)]}),O.jsx(p9,{size:"small",current:l,items:Kb.map(([,u])=>({title:u}))}),O.jsx(_w,{className:"dashboard-next-step-alert",type:"info",showIcon:!0,title:e.next?.command?`下一步:${e.next.command}`:"该变更没有待执行的下一步",description:e.next?.description}),O.jsxs("div",{className:"change-detail-panels grid min-w-0 gap-4",children:[O.jsx(rc,{size:"small",title:"关键产物",children:O.jsx(cV,{change:e,onPreview:t})}),O.jsx(dV,{change:e})]})]})}export{YE as C,KE as K,f4 as L,UV as M,WV as S,ci as _,xS as a,GV as b,bS as c,Xt as g,w4 as m,Kl as s};