orbital-command 0.1.4 → 0.3.0

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 (380) hide show
  1. package/bin/orbital.js +676 -53
  2. package/dist/assets/PrimitivesConfig-CrmQXYh4.js +32 -0
  3. package/dist/assets/QualityGates-BbasOsF3.js +21 -0
  4. package/dist/assets/SessionTimeline-CGeJsVvy.js +1 -0
  5. package/dist/assets/Settings-oiM496mc.js +12 -0
  6. package/dist/assets/SourceControl-B1fP2nJL.js +41 -0
  7. package/dist/assets/WorkflowVisualizer-CWLYf-f0.js +74 -0
  8. package/dist/assets/arrow-down-CPy85_J6.js +6 -0
  9. package/dist/assets/charts-DbDg0Psc.js +68 -0
  10. package/dist/assets/circle-x-Cwz6ZQDV.js +6 -0
  11. package/dist/assets/file-text-C46Xr65c.js +6 -0
  12. package/dist/assets/formatDistanceToNow-BMqsSP44.js +1 -0
  13. package/dist/assets/globe-Cn2yNZUD.js +6 -0
  14. package/dist/assets/index-Aj4sV8Al.css +1 -0
  15. package/dist/assets/index-Bc9dK3MW.js +354 -0
  16. package/dist/assets/key-OPaNTWJ5.js +6 -0
  17. package/dist/assets/minus-GMsbpKym.js +6 -0
  18. package/dist/assets/shield-DwAFkDYI.js +6 -0
  19. package/dist/assets/ui-BmsSg9jU.js +53 -0
  20. package/dist/assets/useWorkflowEditor-BJkTX_NR.js +16 -0
  21. package/dist/assets/{vendor-Dzv9lrRc.js → vendor-Bqt8AJn2.js} +1 -1
  22. package/dist/assets/zap-DfbUoOty.js +11 -0
  23. package/dist/favicon.svg +1 -0
  24. package/dist/index.html +6 -5
  25. package/dist/server/server/__tests__/data-routes.test.js +124 -0
  26. package/dist/server/server/__tests__/helpers/db.js +17 -0
  27. package/dist/server/server/__tests__/helpers/mock-emitter.js +8 -0
  28. package/dist/server/server/__tests__/scope-routes.test.js +137 -0
  29. package/dist/server/server/__tests__/sprint-routes.test.js +102 -0
  30. package/dist/server/server/__tests__/workflow-routes.test.js +107 -0
  31. package/dist/server/server/config-migrator.js +138 -0
  32. package/dist/server/server/config.js +17 -2
  33. package/dist/server/server/database.js +27 -12
  34. package/dist/server/server/global-config.js +143 -0
  35. package/dist/server/server/index.js +882 -252
  36. package/dist/server/server/init.js +579 -194
  37. package/dist/server/server/launch.js +29 -0
  38. package/dist/server/server/manifest-types.js +8 -0
  39. package/dist/server/server/manifest.js +454 -0
  40. package/dist/server/server/migrate-legacy.js +229 -0
  41. package/dist/server/server/parsers/event-parser.test.js +117 -0
  42. package/dist/server/server/parsers/scope-parser.js +74 -28
  43. package/dist/server/server/parsers/scope-parser.test.js +230 -0
  44. package/dist/server/server/project-context.js +255 -0
  45. package/dist/server/server/project-emitter.js +41 -0
  46. package/dist/server/server/project-manager.js +297 -0
  47. package/dist/server/server/routes/config-routes.js +1 -3
  48. package/dist/server/server/routes/data-routes.js +22 -110
  49. package/dist/server/server/routes/dispatch-routes.js +15 -9
  50. package/dist/server/server/routes/git-routes.js +74 -0
  51. package/dist/server/server/routes/manifest-routes.js +319 -0
  52. package/dist/server/server/routes/scope-routes.js +37 -23
  53. package/dist/server/server/routes/sync-routes.js +134 -0
  54. package/dist/server/server/routes/version-routes.js +1 -15
  55. package/dist/server/server/routes/workflow-routes.js +9 -3
  56. package/dist/server/server/schema.js +2 -0
  57. package/dist/server/server/services/batch-orchestrator.js +26 -16
  58. package/dist/server/server/services/claude-session-service.js +17 -14
  59. package/dist/server/server/services/deploy-service.test.js +119 -0
  60. package/dist/server/server/services/event-service.js +64 -1
  61. package/dist/server/server/services/event-service.test.js +191 -0
  62. package/dist/server/server/services/gate-service.test.js +105 -0
  63. package/dist/server/server/services/git-service.js +108 -4
  64. package/dist/server/server/services/github-service.js +110 -2
  65. package/dist/server/server/services/readiness-service.test.js +190 -0
  66. package/dist/server/server/services/scope-cache.js +5 -1
  67. package/dist/server/server/services/scope-cache.test.js +142 -0
  68. package/dist/server/server/services/scope-service.js +217 -126
  69. package/dist/server/server/services/scope-service.test.js +137 -0
  70. package/dist/server/server/services/sprint-orchestrator.js +7 -6
  71. package/dist/server/server/services/sprint-service.js +21 -1
  72. package/dist/server/server/services/sprint-service.test.js +238 -0
  73. package/dist/server/server/services/sync-service.js +434 -0
  74. package/dist/server/server/services/sync-types.js +2 -0
  75. package/dist/server/server/services/telemetry-service.js +143 -0
  76. package/dist/server/server/services/workflow-service.js +26 -5
  77. package/dist/server/server/services/workflow-service.test.js +159 -0
  78. package/dist/server/server/settings-sync.js +284 -0
  79. package/dist/server/server/update-planner.js +279 -0
  80. package/dist/server/server/utils/cc-hooks-parser.js +3 -0
  81. package/dist/server/server/utils/cc-hooks-parser.test.js +86 -0
  82. package/dist/server/server/utils/dispatch-utils.js +77 -20
  83. package/dist/server/server/utils/dispatch-utils.test.js +182 -0
  84. package/dist/server/server/utils/logger.js +37 -3
  85. package/dist/server/server/utils/package-info.js +30 -0
  86. package/dist/server/server/utils/route-helpers.js +10 -0
  87. package/dist/server/server/utils/terminal-launcher.js +79 -25
  88. package/dist/server/server/utils/worktree-manager.js +13 -4
  89. package/dist/server/server/validator.js +230 -0
  90. package/dist/server/server/watchers/global-watcher.js +63 -0
  91. package/dist/server/server/watchers/scope-watcher.js +27 -12
  92. package/dist/server/server/wizard/config-editor.js +237 -0
  93. package/dist/server/server/wizard/detect.js +96 -0
  94. package/dist/server/server/wizard/doctor.js +115 -0
  95. package/dist/server/server/wizard/index.js +155 -0
  96. package/dist/server/server/wizard/phases/confirm.js +39 -0
  97. package/dist/server/server/wizard/phases/project-setup.js +90 -0
  98. package/dist/server/server/wizard/phases/setup-wizard.js +66 -0
  99. package/dist/server/server/wizard/phases/welcome.js +35 -0
  100. package/dist/server/server/wizard/phases/workflow-setup.js +22 -0
  101. package/dist/server/server/wizard/types.js +29 -0
  102. package/dist/server/server/wizard/ui.js +74 -0
  103. package/dist/server/shared/__fixtures__/workflow-configs.js +75 -0
  104. package/dist/server/shared/default-workflow.json +65 -0
  105. package/dist/server/shared/onboarding-tour.test.js +81 -0
  106. package/dist/server/shared/project-colors.js +24 -0
  107. package/dist/server/shared/workflow-config.test.js +84 -0
  108. package/dist/server/shared/workflow-engine.test.js +302 -0
  109. package/dist/server/shared/workflow-normalizer.js +101 -0
  110. package/dist/server/shared/workflow-normalizer.test.js +100 -0
  111. package/dist/server/src/components/onboarding/tour-steps.js +84 -0
  112. package/package.json +20 -15
  113. package/schemas/orbital.config.schema.json +16 -1
  114. package/scripts/postinstall.js +55 -7
  115. package/server/__tests__/data-routes.test.ts +149 -0
  116. package/server/__tests__/helpers/db.ts +19 -0
  117. package/server/__tests__/helpers/mock-emitter.ts +10 -0
  118. package/server/__tests__/scope-routes.test.ts +157 -0
  119. package/server/__tests__/sprint-routes.test.ts +118 -0
  120. package/server/__tests__/workflow-routes.test.ts +120 -0
  121. package/server/config-migrator.ts +163 -0
  122. package/server/config.ts +26 -2
  123. package/server/database.ts +35 -18
  124. package/server/global-config.ts +200 -0
  125. package/server/index.ts +975 -287
  126. package/server/init.ts +625 -182
  127. package/server/launch.ts +32 -0
  128. package/server/manifest-types.ts +145 -0
  129. package/server/manifest.ts +494 -0
  130. package/server/migrate-legacy.ts +290 -0
  131. package/server/parsers/event-parser.test.ts +135 -0
  132. package/server/parsers/scope-parser.test.ts +270 -0
  133. package/server/parsers/scope-parser.ts +79 -31
  134. package/server/project-context.ts +309 -0
  135. package/server/project-emitter.ts +50 -0
  136. package/server/project-manager.ts +369 -0
  137. package/server/routes/config-routes.ts +3 -5
  138. package/server/routes/data-routes.ts +28 -141
  139. package/server/routes/dispatch-routes.ts +19 -11
  140. package/server/routes/git-routes.ts +77 -0
  141. package/server/routes/manifest-routes.ts +388 -0
  142. package/server/routes/scope-routes.ts +29 -25
  143. package/server/routes/sync-routes.ts +175 -0
  144. package/server/routes/version-routes.ts +1 -16
  145. package/server/routes/workflow-routes.ts +9 -3
  146. package/server/schema.ts +2 -0
  147. package/server/services/batch-orchestrator.ts +24 -16
  148. package/server/services/claude-session-service.ts +16 -14
  149. package/server/services/deploy-service.test.ts +145 -0
  150. package/server/services/deploy-service.ts +2 -2
  151. package/server/services/event-service.test.ts +242 -0
  152. package/server/services/event-service.ts +92 -3
  153. package/server/services/gate-service.test.ts +131 -0
  154. package/server/services/gate-service.ts +2 -2
  155. package/server/services/git-service.ts +137 -4
  156. package/server/services/github-service.ts +120 -2
  157. package/server/services/readiness-service.test.ts +217 -0
  158. package/server/services/scope-cache.test.ts +167 -0
  159. package/server/services/scope-cache.ts +4 -1
  160. package/server/services/scope-service.test.ts +169 -0
  161. package/server/services/scope-service.ts +220 -126
  162. package/server/services/sprint-orchestrator.ts +7 -7
  163. package/server/services/sprint-service.test.ts +271 -0
  164. package/server/services/sprint-service.ts +27 -3
  165. package/server/services/sync-service.ts +482 -0
  166. package/server/services/sync-types.ts +77 -0
  167. package/server/services/telemetry-service.ts +195 -0
  168. package/server/services/workflow-service.test.ts +190 -0
  169. package/server/services/workflow-service.ts +29 -9
  170. package/server/settings-sync.ts +359 -0
  171. package/server/update-planner.ts +346 -0
  172. package/server/utils/cc-hooks-parser.test.ts +96 -0
  173. package/server/utils/cc-hooks-parser.ts +4 -0
  174. package/server/utils/dispatch-utils.test.ts +245 -0
  175. package/server/utils/dispatch-utils.ts +97 -27
  176. package/server/utils/logger.ts +40 -3
  177. package/server/utils/package-info.ts +32 -0
  178. package/server/utils/route-helpers.ts +12 -0
  179. package/server/utils/terminal-launcher.ts +85 -25
  180. package/server/utils/worktree-manager.ts +9 -4
  181. package/server/validator.ts +270 -0
  182. package/server/watchers/global-watcher.ts +77 -0
  183. package/server/watchers/scope-watcher.ts +21 -9
  184. package/server/wizard/config-editor.ts +248 -0
  185. package/server/wizard/detect.ts +104 -0
  186. package/server/wizard/doctor.ts +114 -0
  187. package/server/wizard/index.ts +187 -0
  188. package/server/wizard/phases/confirm.ts +45 -0
  189. package/server/wizard/phases/project-setup.ts +106 -0
  190. package/server/wizard/phases/setup-wizard.ts +78 -0
  191. package/server/wizard/phases/welcome.ts +43 -0
  192. package/server/wizard/phases/workflow-setup.ts +28 -0
  193. package/server/wizard/types.ts +56 -0
  194. package/server/wizard/ui.ts +93 -0
  195. package/shared/__fixtures__/workflow-configs.ts +80 -0
  196. package/shared/default-workflow.json +65 -0
  197. package/shared/onboarding-tour.test.ts +94 -0
  198. package/shared/project-colors.ts +24 -0
  199. package/shared/workflow-config.test.ts +111 -0
  200. package/shared/workflow-config.ts +7 -0
  201. package/shared/workflow-engine.test.ts +388 -0
  202. package/shared/workflow-normalizer.test.ts +119 -0
  203. package/shared/workflow-normalizer.ts +118 -0
  204. package/templates/hooks/end-session.sh +3 -1
  205. package/templates/hooks/orbital-emit.sh +2 -2
  206. package/templates/hooks/orbital-report-deploy.sh +4 -4
  207. package/templates/hooks/orbital-report-gates.sh +4 -4
  208. package/templates/hooks/orbital-scope-update.sh +1 -1
  209. package/templates/hooks/scope-create-cleanup.sh +2 -2
  210. package/templates/hooks/scope-create-gate.sh +0 -1
  211. package/templates/hooks/scope-helpers.sh +18 -0
  212. package/templates/hooks/scope-prepare.sh +66 -11
  213. package/templates/migrations/renames.json +1 -0
  214. package/templates/orbital.config.json +7 -2
  215. package/templates/settings-hooks.json +1 -1
  216. package/templates/skills/git-commit/SKILL.md +9 -4
  217. package/templates/skills/git-dev/SKILL.md +8 -3
  218. package/templates/skills/git-main/SKILL.md +8 -2
  219. package/templates/skills/git-production/SKILL.md +6 -2
  220. package/templates/skills/git-staging/SKILL.md +8 -3
  221. package/templates/skills/scope-create/SKILL.md +17 -3
  222. package/templates/skills/scope-fix-review/SKILL.md +6 -3
  223. package/templates/skills/scope-implement/SKILL.md +4 -1
  224. package/templates/skills/scope-post-review/SKILL.md +63 -5
  225. package/templates/skills/scope-pre-review/SKILL.md +5 -2
  226. package/templates/skills/scope-verify/SKILL.md +5 -3
  227. package/templates/skills/test-code-review/SKILL.md +41 -33
  228. package/templates/skills/test-scaffold/SKILL.md +222 -0
  229. package/dist/assets/WorkflowVisualizer-BZ21PIIF.js +0 -84
  230. package/dist/assets/charts-D__PA1zp.js +0 -72
  231. package/dist/assets/index-D1G6i0nS.css +0 -1
  232. package/dist/assets/index-DpItvKpf.js +0 -419
  233. package/dist/assets/ui-BvF022GT.js +0 -53
  234. package/index.html +0 -15
  235. package/postcss.config.js +0 -6
  236. package/src/App.tsx +0 -33
  237. package/src/components/AgentBadge.tsx +0 -40
  238. package/src/components/BatchPreflightModal.tsx +0 -115
  239. package/src/components/CardDisplayToggle.tsx +0 -74
  240. package/src/components/ColumnHeaderActions.tsx +0 -55
  241. package/src/components/ColumnMenu.tsx +0 -99
  242. package/src/components/DeployHistory.tsx +0 -141
  243. package/src/components/DispatchModal.tsx +0 -164
  244. package/src/components/DispatchPopover.tsx +0 -139
  245. package/src/components/DragOverlay.tsx +0 -25
  246. package/src/components/DriftSidebar.tsx +0 -140
  247. package/src/components/EnvironmentStrip.tsx +0 -88
  248. package/src/components/ErrorBoundary.tsx +0 -62
  249. package/src/components/FilterChip.tsx +0 -105
  250. package/src/components/GateIndicator.tsx +0 -33
  251. package/src/components/IdeaDetailModal.tsx +0 -190
  252. package/src/components/IdeaFormDialog.tsx +0 -113
  253. package/src/components/KanbanColumn.tsx +0 -201
  254. package/src/components/MarkdownRenderer.tsx +0 -114
  255. package/src/components/NeonGrid.tsx +0 -128
  256. package/src/components/PromotionQueue.tsx +0 -89
  257. package/src/components/ScopeCard.tsx +0 -234
  258. package/src/components/ScopeDetailModal.tsx +0 -255
  259. package/src/components/ScopeFilterBar.tsx +0 -152
  260. package/src/components/SearchInput.tsx +0 -102
  261. package/src/components/SessionPanel.tsx +0 -335
  262. package/src/components/SprintContainer.tsx +0 -303
  263. package/src/components/SprintDependencyDialog.tsx +0 -78
  264. package/src/components/SprintPreflightModal.tsx +0 -138
  265. package/src/components/StatusBar.tsx +0 -168
  266. package/src/components/SwimCell.tsx +0 -67
  267. package/src/components/SwimLaneRow.tsx +0 -94
  268. package/src/components/SwimlaneBoardView.tsx +0 -108
  269. package/src/components/VersionBadge.tsx +0 -139
  270. package/src/components/ViewModeSelector.tsx +0 -114
  271. package/src/components/config/AgentChip.tsx +0 -53
  272. package/src/components/config/AgentCreateDialog.tsx +0 -321
  273. package/src/components/config/AgentEditor.tsx +0 -175
  274. package/src/components/config/DirectoryTree.tsx +0 -582
  275. package/src/components/config/FileEditor.tsx +0 -550
  276. package/src/components/config/HookChip.tsx +0 -50
  277. package/src/components/config/StageCard.tsx +0 -198
  278. package/src/components/config/TransitionZone.tsx +0 -173
  279. package/src/components/config/UnifiedWorkflowPipeline.tsx +0 -216
  280. package/src/components/config/WorkflowPipeline.tsx +0 -161
  281. package/src/components/source-control/BranchList.tsx +0 -93
  282. package/src/components/source-control/BranchPanel.tsx +0 -105
  283. package/src/components/source-control/CommitLog.tsx +0 -100
  284. package/src/components/source-control/CommitRow.tsx +0 -47
  285. package/src/components/source-control/GitHubPanel.tsx +0 -110
  286. package/src/components/source-control/GitHubSetupGuide.tsx +0 -52
  287. package/src/components/source-control/GitOverviewBar.tsx +0 -101
  288. package/src/components/source-control/PullRequestList.tsx +0 -69
  289. package/src/components/source-control/WorktreeList.tsx +0 -80
  290. package/src/components/ui/badge.tsx +0 -41
  291. package/src/components/ui/button.tsx +0 -55
  292. package/src/components/ui/card.tsx +0 -78
  293. package/src/components/ui/dialog.tsx +0 -94
  294. package/src/components/ui/popover.tsx +0 -33
  295. package/src/components/ui/scroll-area.tsx +0 -54
  296. package/src/components/ui/separator.tsx +0 -28
  297. package/src/components/ui/tabs.tsx +0 -52
  298. package/src/components/ui/toggle-switch.tsx +0 -35
  299. package/src/components/ui/tooltip.tsx +0 -27
  300. package/src/components/workflow/AddEdgeDialog.tsx +0 -217
  301. package/src/components/workflow/AddListDialog.tsx +0 -201
  302. package/src/components/workflow/ChecklistEditor.tsx +0 -239
  303. package/src/components/workflow/CommandPrefixManager.tsx +0 -118
  304. package/src/components/workflow/ConfigSettingsPanel.tsx +0 -189
  305. package/src/components/workflow/DirectionSelector.tsx +0 -133
  306. package/src/components/workflow/DispatchConfigPanel.tsx +0 -180
  307. package/src/components/workflow/EdgeDetailPanel.tsx +0 -236
  308. package/src/components/workflow/EdgePropertyEditor.tsx +0 -251
  309. package/src/components/workflow/EditToolbar.tsx +0 -138
  310. package/src/components/workflow/HookDetailPanel.tsx +0 -250
  311. package/src/components/workflow/HookExecutionLog.tsx +0 -24
  312. package/src/components/workflow/HookSourceModal.tsx +0 -129
  313. package/src/components/workflow/HooksDashboard.tsx +0 -363
  314. package/src/components/workflow/ListPropertyEditor.tsx +0 -251
  315. package/src/components/workflow/MigrationPreviewDialog.tsx +0 -237
  316. package/src/components/workflow/MovementRulesPanel.tsx +0 -188
  317. package/src/components/workflow/NodeDetailPanel.tsx +0 -245
  318. package/src/components/workflow/PresetSelector.tsx +0 -414
  319. package/src/components/workflow/SkillCommandBuilder.tsx +0 -174
  320. package/src/components/workflow/WorkflowEdgeComponent.tsx +0 -145
  321. package/src/components/workflow/WorkflowNode.tsx +0 -147
  322. package/src/components/workflow/graphLayout.ts +0 -186
  323. package/src/components/workflow/mergeHooks.ts +0 -85
  324. package/src/components/workflow/useEditHistory.ts +0 -88
  325. package/src/components/workflow/useWorkflowEditor.ts +0 -262
  326. package/src/components/workflow/validateConfig.ts +0 -70
  327. package/src/hooks/useActiveDispatches.ts +0 -198
  328. package/src/hooks/useBoardSettings.ts +0 -170
  329. package/src/hooks/useCardDisplay.ts +0 -57
  330. package/src/hooks/useCcHooks.ts +0 -24
  331. package/src/hooks/useConfigTree.ts +0 -51
  332. package/src/hooks/useEnforcementRules.ts +0 -46
  333. package/src/hooks/useEvents.ts +0 -59
  334. package/src/hooks/useFileEditor.ts +0 -165
  335. package/src/hooks/useGates.ts +0 -57
  336. package/src/hooks/useIdeaActions.ts +0 -53
  337. package/src/hooks/useKanbanDnd.ts +0 -410
  338. package/src/hooks/useOrbitalConfig.ts +0 -54
  339. package/src/hooks/usePipeline.ts +0 -47
  340. package/src/hooks/usePipelineData.ts +0 -338
  341. package/src/hooks/useReconnect.ts +0 -25
  342. package/src/hooks/useScopeFilters.ts +0 -125
  343. package/src/hooks/useScopeSessions.ts +0 -44
  344. package/src/hooks/useScopes.ts +0 -67
  345. package/src/hooks/useSearch.ts +0 -67
  346. package/src/hooks/useSettings.tsx +0 -187
  347. package/src/hooks/useSocket.ts +0 -25
  348. package/src/hooks/useSourceControl.ts +0 -105
  349. package/src/hooks/useSprintPreflight.ts +0 -55
  350. package/src/hooks/useSprints.ts +0 -154
  351. package/src/hooks/useStatusBarHighlight.ts +0 -18
  352. package/src/hooks/useSwimlaneBoardSettings.ts +0 -104
  353. package/src/hooks/useTheme.ts +0 -9
  354. package/src/hooks/useTransitionReadiness.ts +0 -53
  355. package/src/hooks/useVersion.ts +0 -155
  356. package/src/hooks/useViolations.ts +0 -65
  357. package/src/hooks/useWorkflow.tsx +0 -125
  358. package/src/hooks/useZoomModifier.ts +0 -19
  359. package/src/index.css +0 -797
  360. package/src/layouts/DashboardLayout.tsx +0 -113
  361. package/src/lib/collisionDetection.ts +0 -20
  362. package/src/lib/scope-fields.ts +0 -61
  363. package/src/lib/swimlane.ts +0 -146
  364. package/src/lib/utils.ts +0 -15
  365. package/src/main.tsx +0 -19
  366. package/src/socket.ts +0 -11
  367. package/src/types/index.ts +0 -497
  368. package/src/views/AgentFeed.tsx +0 -339
  369. package/src/views/DeployPipeline.tsx +0 -59
  370. package/src/views/EnforcementView.tsx +0 -378
  371. package/src/views/PrimitivesConfig.tsx +0 -500
  372. package/src/views/QualityGates.tsx +0 -1012
  373. package/src/views/ScopeBoard.tsx +0 -454
  374. package/src/views/SessionTimeline.tsx +0 -516
  375. package/src/views/Settings.tsx +0 -183
  376. package/src/views/SourceControl.tsx +0 -95
  377. package/src/views/WorkflowVisualizer.tsx +0 -382
  378. package/tailwind.config.js +0 -161
  379. package/tsconfig.json +0 -25
  380. package/vite.config.ts +0 -49
@@ -0,0 +1,68 @@
1
+ import{e as ti,g as ue,a as N,d as P}from"./vendor-Bqt8AJn2.js";function tb(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=tb(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=tb(e))&&(n&&(n+=" "),n+=t);return n}var Ga,mh;function Re(){if(mh)return Ga;mh=1;var e=Array.isArray;return Ga=e,Ga}var Ka,gh;function rb(){if(gh)return Ka;gh=1;var e=typeof ti=="object"&&ti&&ti.Object===Object&&ti;return Ka=e,Ka}var Xa,bh;function ot(){if(bh)return Xa;bh=1;var e=rb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xa=r,Xa}var Va,xh;function Kn(){if(xh)return Va;xh=1;var e=ot(),t=e.Symbol;return Va=t,Va}var Ya,wh;function pw(){if(wh)return Ya;wh=1;var e=Kn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return Ya=a,Ya}var Za,Oh;function dw(){if(Oh)return Za;Oh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Za=r,Za}var Ja,_h;function bt(){if(_h)return Ja;_h=1;var e=Kn(),t=pw(),r=dw(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Ja=o,Ja}var Qa,Sh;function xt(){if(Sh)return Qa;Sh=1;function e(t){return t!=null&&typeof t=="object"}return Qa=e,Qa}var eo,Ah;function Nr(){if(Ah)return eo;Ah=1;var e=bt(),t=xt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return eo=n,eo}var to,Ph;function ff(){if(Ph)return to;Ph=1;var e=Re(),t=Nr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return to=i,to}var ro,Th;function Mt(){if(Th)return ro;Th=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ro=e,ro}var no,Eh;function hf(){if(Eh)return no;Eh=1;var e=bt(),t=Mt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return no=o,no}var io,jh;function vw(){if(jh)return io;jh=1;var e=ot(),t=e["__core-js_shared__"];return io=t,io}var ao,Mh;function yw(){if(Mh)return ao;Mh=1;var e=vw(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return ao=r,ao}var oo,Ch;function nb(){if(Ch)return oo;Ch=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return oo=r,oo}var uo,$h;function mw(){if($h)return uo;$h=1;var e=hf(),t=yw(),r=Mt(),n=nb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return uo=l,uo}var co,Ih;function gw(){if(Ih)return co;Ih=1;function e(t,r){return t==null?void 0:t[r]}return co=e,co}var so,Rh;function Qt(){if(Rh)return so;Rh=1;var e=mw(),t=gw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return so=r,so}var lo,kh;function pa(){if(kh)return lo;kh=1;var e=Qt(),t=e(Object,"create");return lo=t,lo}var fo,Dh;function bw(){if(Dh)return fo;Dh=1;var e=pa();function t(){this.__data__=e?e(null):{},this.size=0}return fo=t,fo}var ho,Nh;function xw(){if(Nh)return ho;Nh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ho=e,ho}var po,qh;function ww(){if(qh)return po;qh=1;var e=pa(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return po=i,po}var vo,Bh;function Ow(){if(Bh)return vo;Bh=1;var e=pa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return vo=n,vo}var yo,Lh;function _w(){if(Lh)return yo;Lh=1;var e=pa(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return yo=r,yo}var mo,Fh;function Sw(){if(Fh)return mo;Fh=1;var e=bw(),t=xw(),r=ww(),n=Ow(),i=_w();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,mo=a,mo}var go,zh;function Aw(){if(zh)return go;zh=1;function e(){this.__data__=[],this.size=0}return go=e,go}var bo,Wh;function pf(){if(Wh)return bo;Wh=1;function e(t,r){return t===r||t!==t&&r!==r}return bo=e,bo}var xo,Uh;function da(){if(Uh)return xo;Uh=1;var e=pf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xo=t,xo}var wo,Hh;function Pw(){if(Hh)return wo;Hh=1;var e=da(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return wo=n,wo}var Oo,Gh;function Tw(){if(Gh)return Oo;Gh=1;var e=da();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Oo=t,Oo}var _o,Kh;function Ew(){if(Kh)return _o;Kh=1;var e=da();function t(r){return e(this.__data__,r)>-1}return _o=t,_o}var So,Xh;function jw(){if(Xh)return So;Xh=1;var e=da();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return So=t,So}var Ao,Vh;function va(){if(Vh)return Ao;Vh=1;var e=Aw(),t=Pw(),r=Tw(),n=Ew(),i=jw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ao=a,Ao}var Po,Yh;function df(){if(Yh)return Po;Yh=1;var e=Qt(),t=ot(),r=e(t,"Map");return Po=r,Po}var To,Zh;function Mw(){if(Zh)return To;Zh=1;var e=Sw(),t=va(),r=df();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return To=n,To}var Eo,Jh;function Cw(){if(Jh)return Eo;Jh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Eo=e,Eo}var jo,Qh;function ya(){if(Qh)return jo;Qh=1;var e=Cw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return jo=t,jo}var Mo,ep;function $w(){if(ep)return Mo;ep=1;var e=ya();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Mo=t,Mo}var Co,tp;function Iw(){if(tp)return Co;tp=1;var e=ya();function t(r){return e(this,r).get(r)}return Co=t,Co}var $o,rp;function Rw(){if(rp)return $o;rp=1;var e=ya();function t(r){return e(this,r).has(r)}return $o=t,$o}var Io,np;function kw(){if(np)return Io;np=1;var e=ya();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Io=t,Io}var Ro,ip;function vf(){if(ip)return Ro;ip=1;var e=Mw(),t=$w(),r=Iw(),n=Rw(),i=kw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ro=a,Ro}var ko,ap;function ib(){if(ap)return ko;ap=1;var e=vf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,ko=r,ko}var Do,op;function Dw(){if(op)return Do;op=1;var e=ib(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Do=r,Do}var No,up;function Nw(){if(up)return No;up=1;var e=Dw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return No=n,No}var qo,cp;function yf(){if(cp)return qo;cp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return qo=e,qo}var Bo,sp;function qw(){if(sp)return Bo;sp=1;var e=Kn(),t=yf(),r=Re(),n=Nr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Bo=o,Bo}var Lo,lp;function ab(){if(lp)return Lo;lp=1;var e=qw();function t(r){return r==null?"":e(r)}return Lo=t,Lo}var Fo,fp;function ob(){if(fp)return Fo;fp=1;var e=Re(),t=ff(),r=Nw(),n=ab();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Fo=i,Fo}var zo,hp;function ma(){if(hp)return zo;hp=1;var e=Nr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return zo=t,zo}var Wo,pp;function mf(){if(pp)return Wo;pp=1;var e=ob(),t=ma();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Wo=r,Wo}var Uo,dp;function ub(){if(dp)return Uo;dp=1;var e=mf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Uo=t,Uo}var Bw=ub();const He=ue(Bw);var Ho,vp;function Lw(){if(vp)return Ho;vp=1;function e(t){return t==null}return Ho=e,Ho}var Fw=Lw();const J=ue(Fw);var Go,yp;function zw(){if(yp)return Go;yp=1;var e=bt(),t=Re(),r=xt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Go=i,Go}var Ww=zw();const Xt=ue(Ww);var Uw=hf();const V=ue(Uw);var Hw=Mt();const qr=ue(Hw);var Ko={exports:{}},re={};/**
2
+ * @license React
3
+ * react-is.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var mp;function Gw(){if(mp)return re;mp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case s:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case c:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=c,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=s,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===c},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===s},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===s||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===y||p.getModuleId!==void 0)},re.typeOf=v,re}var gp;function Kw(){return gp||(gp=1,Ko.exports=Gw()),Ko.exports}var Xw=Kw(),Xo,bp;function cb(){if(bp)return Xo;bp=1;var e=bt(),t=xt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Xo=n,Xo}var Vo,xp;function Vw(){if(xp)return Vo;xp=1;var e=cb();function t(r){return e(r)&&r!=+r}return Vo=t,Vo}var Yw=Vw();const Br=ue(Yw);var Zw=cb();const Jw=ue(Zw);var Ze=function(t){return t===0?0:t>0?1:-1},Ft=function(t){return Xt(t)&&t.indexOf("%")===t.length-1},q=function(t){return Jw(t)&&!Br(t)},Qw=function(t){return J(t)},we=function(t){return q(t)||Xt(t)},eO=0,Xn=function(t){var r=++eO;return"".concat(t||"").concat(r)},Vt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!Xt(t))return n;var a;if(Ft(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Br(a)&&(a=n),i&&a>r&&(a=r),a},At=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},tO=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},We=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function yi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):He(n,t))===r})}var rO=function(t,r){return q(t)&&q(r)?t-r:Xt(t)&&Xt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function fr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Ks(e){"@babel/helpers - typeof";return Ks=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},Ks(e)}var nO=["viewBox","children"],iO=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],wp=["points","pathLength"],Yo={svg:nO,polygon:wp,polyline:wp},gf=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],mi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!qr(n))return null;var i={};return Object.keys(n).forEach(function(a){gf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},aO=function(t,r,n){return function(i){return t(r,n,i),null}},gi=function(t,r,n){if(!qr(t)||Ks(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];gf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=aO(o,r,n))}),i},oO=["children"],uO=["children"];function Op(e,t){if(e==null)return{};var r=cO(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Xs(e){"@babel/helpers - typeof";return Xs=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},Xs(e)}var _p={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ht=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Sp=null,Zo=null,bf=function e(t){if(t===Sp&&Array.isArray(Zo))return Zo;var r=[];return N.Children.forEach(t,function(n){J(n)||(Xw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Zo=r,Sp=t,r};function Je(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ht(i)}):n=[ht(t)],bf(e).forEach(function(i){var a=He(i,"type.displayName")||He(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ne(e,t){var r=Je(e,t);return r&&r[0]}var Ap=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},sO=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],lO=function(t){return t&&t.type&&Xt(t.type)&&sO.indexOf(t.type)>=0},fO=function(t){return t&&Xs(t)==="object"&&"clipDot"in t},hO=function(t,r,n,i){var a,o=(a=Yo==null?void 0:Yo[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||iO.includes(r))||n&&gf.includes(r)},Z=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!qr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;hO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Vs=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Pp(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Pp(a,o))return!1}return!0},Pp=function(t,r){if(J(t)&&J(r))return!0;if(!J(t)&&!J(r)){var n=t.props||{},i=n.children,a=Op(n,oO),o=r.props||{},u=o.children,c=Op(o,uO);return i&&u?fr(a,c)&&Vs(i,u):!i&&!u?fr(a,c):!1}return!1},Tp=function(t,r){var n=[],i={};return bf(t).forEach(function(a,o){if(lO(a))n.push(a);else if(a){var u=ht(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},pO=function(t){var r=t&&t.type;return r&&_p[r]?_p[r]:null},dO=function(t,r){return bf(r).indexOf(t)},vO=["children","width","height","viewBox","className","style","title","desc"];function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ys.apply(this,arguments)}function yO(e,t){if(e==null)return{};var r=mO(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zs(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=yO(e,vO),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return P.createElement("svg",Ys({},Z(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,c),t)}var gO=["children","className"];function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Js.apply(this,arguments)}function bO(e,t){if(e==null)return{};var r=xO(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var fe=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=bO(e,gO),a=ee("recharts-layer",n);return P.createElement("g",Js({className:a},Z(i,!0),{ref:t}),r)}),pt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},Jo,Ep;function wO(){if(Ep)return Jo;Ep=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Jo=e,Jo}var Qo,jp;function OO(){if(jp)return Qo;jp=1;var e=wO();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Qo=t,Qo}var eu,Mp;function sb(){if(Mp)return eu;Mp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return eu=c,eu}var tu,Cp;function _O(){if(Cp)return tu;Cp=1;function e(t){return t.split("")}return tu=e,tu}var ru,$p;function SO(){if($p)return ru;$p=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(m){return m.match(w)||[]}return ru=O,ru}var nu,Ip;function AO(){if(Ip)return nu;Ip=1;var e=_O(),t=sb(),r=SO();function n(i){return t(i)?r(i):e(i)}return nu=n,nu}var iu,Rp;function PO(){if(Rp)return iu;Rp=1;var e=OO(),t=sb(),r=AO(),n=ab();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return iu=i,iu}var au,kp;function TO(){if(kp)return au;kp=1;var e=PO(),t=e("toUpperCase");return au=t,au}var EO=TO();const ga=ue(EO);function oe(e){return function(){return e}}const lb=Math.cos,bi=Math.sin,Qe=Math.sqrt,xi=Math.PI,ba=2*xi,Qs=Math.PI,el=2*Qs,Bt=1e-6,jO=el-Bt;function fb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function MO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return fb;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class CO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?fb:MO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Bt)if(!(Math.abs(l*c-s*f)>Bt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=c*c+s*s,p=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Qs-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Bt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Bt||Math.abs(this._y1-f)>Bt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%el+el),h>jO?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Bt&&this._append`A${n},${n},0,${+(h>=Qs)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function xf(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new CO(t)}function wf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function hb(e){this._context=e}hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function xa(e){return new hb(e)}function pb(e){return e[0]}function db(e){return e[1]}function vb(e,t){var r=oe(!0),n=null,i=xa,a=null,o=xf(u);e=typeof e=="function"?e:e===void 0?pb:oe(e),t=typeof t=="function"?t:t===void 0?db:oe(t);function u(c){var s,f=(c=wf(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:oe(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:oe(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:oe(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function ri(e,t,r){var n=null,i=oe(!0),a=null,o=xa,u=null,c=xf(s);e=typeof e=="function"?e:e===void 0?pb:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?db:oe(+r);function s(l){var h,d,y,v=(l=wf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return vb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:oe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class yb{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function $O(e){return new yb(e,!0)}function IO(e){return new yb(e,!1)}const Of={draw(e,t){const r=Qe(t/xi);e.moveTo(r,0),e.arc(0,0,r,0,ba)}},RO={draw(e,t){const r=Qe(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},mb=Qe(1/3),kO=mb*2,DO={draw(e,t){const r=Qe(t/kO),n=r*mb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},NO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},qO=.8908130915292852,gb=bi(xi/10)/bi(7*xi/10),BO=bi(ba/10)*gb,LO=-lb(ba/10)*gb,FO={draw(e,t){const r=Qe(t*qO),n=BO*r,i=LO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ba*a/5,u=lb(o),c=bi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},ou=Qe(3),zO={draw(e,t){const r=-Qe(t/(ou*3));e.moveTo(0,r*2),e.lineTo(-ou*r,-r),e.lineTo(ou*r,-r),e.closePath()}},Le=-.5,Fe=Qe(3)/2,tl=1/Qe(12),WO=(tl/2+1)*3,UO={draw(e,t){const r=Qe(t/WO),n=r/2,i=r*tl,a=n,o=r*tl+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Le*n-Fe*i,Fe*n+Le*i),e.lineTo(Le*a-Fe*o,Fe*a+Le*o),e.lineTo(Le*u-Fe*c,Fe*u+Le*c),e.lineTo(Le*n+Fe*i,Le*i-Fe*n),e.lineTo(Le*a+Fe*o,Le*o-Fe*a),e.lineTo(Le*u+Fe*c,Le*c-Fe*u),e.closePath()}};function HO(e,t){let r=null,n=xf(i);e=typeof e=="function"?e:oe(e||Of),t=typeof t=="function"?t:oe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function wi(){}function Oi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function bb(e){this._context=e}bb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Oi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function GO(e){return new bb(e)}function xb(e){this._context=e}xb.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function KO(e){return new xb(e)}function wb(e){this._context=e}wb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XO(e){return new wb(e)}function Ob(e){this._context=e}Ob.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function VO(e){return new Ob(e)}function Dp(e){return e<0?-1:1}function Np(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Dp(a)+Dp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function qp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function uu(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function _i(e){this._context=e}_i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uu(this,this._t0,qp(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,uu(this,qp(this,r=Np(this,e,t)),r);break;default:uu(this,this._t0,r=Np(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function _b(e){this._context=new Sb(e)}(_b.prototype=Object.create(_i.prototype)).point=function(e,t){_i.prototype.point.call(this,t,e)};function Sb(e){this._context=e}Sb.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function YO(e){return new _i(e)}function ZO(e){return new _b(e)}function Ab(e){this._context=e}Ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Bp(e),i=Bp(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Bp(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function JO(e){return new Ab(e)}function wa(e,t){this._context=e,this._t=t}wa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function QO(e){return new wa(e,.5)}function e1(e){return new wa(e,0)}function t1(e){return new wa(e,1)}function vr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function rl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function r1(e,t){return e[t]}function n1(e){const t=[];return t.key=e,t}function i1(){var e=oe([]),t=rl,r=vr,n=r1;function i(a){var o=Array.from(e.apply(this,arguments),n1),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=wf(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?rl:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??vr,i):r},i}function a1(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}vr(e,t)}}function o1(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}vr(e,t)}}function u1(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,vr(e,t)}}function fn(e){"@babel/helpers - typeof";return fn=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},fn(e)}var c1=["type","size","sizeType"];function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nl.apply(this,arguments)}function Lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lp(Object(r),!0).forEach(function(n){s1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s1(e,t,r){return t=l1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l1(e){var t=f1(e,"string");return fn(t)=="symbol"?t:t+""}function f1(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h1(e,t){if(e==null)return{};var r=p1(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Pb={symbolCircle:Of,symbolCross:RO,symbolDiamond:DO,symbolSquare:NO,symbolStar:FO,symbolTriangle:zO,symbolWye:UO},d1=Math.PI/180,v1=function(t){var r="symbol".concat(ga(t));return Pb[r]||Of},y1=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*d1;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},m1=function(t,r){Pb["symbol".concat(ga(t))]=r},_f=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=h1(t,c1),s=Fp(Fp({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=v1(n),b=HO().type(p).size(y1(a,u,n));return b()},l=s.className,h=s.cx,d=s.cy,y=Z(s,!0);return h===+h&&d===+d&&a===+a?P.createElement("path",nl({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};_f.registerSymbol=m1;function yr(e){"@babel/helpers - typeof";return yr=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},yr(e)}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},il.apply(this,arguments)}function zp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zp(Object(r),!0).forEach(function(n){hn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Eb(n.key),n)}}function w1(e,t,r){return t&&x1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O1(e,t,r){return t=Si(t),_1(e,Tb()?Reflect.construct(t,r||[],Si(e).constructor):t.apply(e,r))}function _1(e,t){if(t&&(yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S1(e)}function S1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tb=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Si(e)}function A1(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&&al(e,t)}function al(e,t){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},al(e,t)}function hn(e,t,r){return t=Eb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eb(e){var t=P1(e,"string");return yr(t)=="symbol"?t:t+""}function P1(e,t){if(yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ze=32,Sf=(function(e){function t(){return b1(this,t),O1(this,t,arguments)}return A1(t,e),w1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ze/2,o=ze/6,u=ze/3,c=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ze,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
10
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
11
+ H`).concat(ze,"M").concat(2*u,",").concat(a,`
12
+ A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(ze/8,"h").concat(ze,"v").concat(ze*3/4,"h").concat(-ze,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var s=g1({},n);return delete s.legendIcon,P.cloneElement(n.legendIcon,s)}return P.createElement(_f,{fill:c,cx:a,cy:a,size:ze,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:ze,height:ze},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||c,p=ee(hn(hn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=V(d.value)?null:d.value;pt(!V(d.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=d.inactive?s:d.color;return P.createElement("li",il({className:p,style:l,key:"legend-item-".concat(y)},gi(n.props,d,y)),P.createElement(Zs,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,d,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);hn(Sf,"displayName","Legend");hn(Sf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var cu,Wp;function T1(){if(Wp)return cu;Wp=1;var e=va();function t(){this.__data__=new e,this.size=0}return cu=t,cu}var su,Up;function E1(){if(Up)return su;Up=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return su=e,su}var lu,Hp;function j1(){if(Hp)return lu;Hp=1;function e(t){return this.__data__.get(t)}return lu=e,lu}var fu,Gp;function M1(){if(Gp)return fu;Gp=1;function e(t){return this.__data__.has(t)}return fu=e,fu}var hu,Kp;function C1(){if(Kp)return hu;Kp=1;var e=va(),t=df(),r=vf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return hu=i,hu}var pu,Xp;function jb(){if(Xp)return pu;Xp=1;var e=va(),t=T1(),r=E1(),n=j1(),i=M1(),a=C1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,pu=o,pu}var du,Vp;function $1(){if(Vp)return du;Vp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return du=t,du}var vu,Yp;function I1(){if(Yp)return vu;Yp=1;function e(t){return this.__data__.has(t)}return vu=e,vu}var yu,Zp;function Mb(){if(Zp)return yu;Zp=1;var e=vf(),t=$1(),r=I1();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,yu=n,yu}var mu,Jp;function Cb(){if(Jp)return mu;Jp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return mu=e,mu}var gu,Qp;function $b(){if(Qp)return gu;Qp=1;function e(t,r){return t.has(r)}return gu=e,gu}var bu,ed;function Ib(){if(ed)return bu;ed=1;var e=Mb(),t=Cb(),r=$b(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,d=o.length,y=u.length;if(d!=y&&!(h&&y>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var b=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var O=o[b],m=u[b];if(s)var g=h?s(m,O,b,u,o,l):s(O,m,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,c,s,l)))return w.push(S)})){x=!1;break}}else if(!(O===m||f(O,m,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return bu=a,bu}var xu,td;function R1(){if(td)return xu;td=1;var e=ot(),t=e.Uint8Array;return xu=t,xu}var wu,rd;function k1(){if(rd)return wu;rd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return wu=e,wu}var Ou,nd;function Af(){if(nd)return Ou;nd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ou=e,Ou}var _u,id;function D1(){if(id)return _u;id=1;var e=Kn(),t=R1(),r=pf(),n=Ib(),i=k1(),a=Af(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(g,_,S,A,M,E,T){switch(S){case x:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case b:return!(g.byteLength!=_.byteLength||!E(new t(g),new t(_)));case c:case s:case h:return r(+g,+_);case f:return g.name==_.name&&g.message==_.message;case d:case v:return g==_+"";case l:var j=i;case y:var $=A&o;if(j||(j=a),g.size!=_.size&&!$)return!1;var C=T.get(g);if(C)return C==_;A|=u,T.set(g,_);var R=n(j(g),j(_),A,M,E,T);return T.delete(g),R;case p:if(O)return O.call(g)==O.call(_)}return!1}return _u=m,_u}var Su,ad;function Rb(){if(ad)return Su;ad=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Su=e,Su}var Au,od;function N1(){if(od)return Au;od=1;var e=Rb(),t=Re();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Au=r,Au}var Pu,ud;function q1(){if(ud)return Pu;ud=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Pu=e,Pu}var Tu,cd;function B1(){if(cd)return Tu;cd=1;function e(){return[]}return Tu=e,Tu}var Eu,sd;function L1(){if(sd)return Eu;sd=1;var e=q1(),t=B1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Eu=a,Eu}var ju,ld;function F1(){if(ld)return ju;ld=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return ju=e,ju}var Mu,fd;function z1(){if(fd)return Mu;fd=1;var e=bt(),t=xt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Mu=n,Mu}var Cu,hd;function Pf(){if(hd)return Cu;hd=1;var e=z1(),t=xt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Cu=a,Cu}var rn={exports:{}},$u,pd;function W1(){if(pd)return $u;pd=1;function e(){return!1}return $u=e,$u}rn.exports;var dd;function kb(){return dd||(dd=1,(function(e,t){var r=ot(),n=W1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(rn,rn.exports)),rn.exports}var Iu,vd;function Tf(){if(vd)return Iu;vd=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Iu=r,Iu}var Ru,yd;function Ef(){if(yd)return Ru;yd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ru=t,Ru}var ku,md;function U1(){if(md)return ku;md=1;var e=bt(),t=Ef(),r=xt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",g="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[g]=E[_]=E[S]=E[A]=E[M]=!0,E[n]=E[i]=E[p]=E[a]=E[b]=E[o]=E[u]=E[c]=E[s]=E[f]=E[l]=E[h]=E[d]=E[y]=E[v]=!1;function T(j){return r(j)&&t(j.length)&&!!E[e(j)]}return ku=T,ku}var Du,gd;function Db(){if(gd)return Du;gd=1;function e(t){return function(r){return t(r)}}return Du=e,Du}var nn={exports:{}};nn.exports;var bd;function H1(){return bd||(bd=1,(function(e,t){var r=rb(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(nn,nn.exports)),nn.exports}var Nu,xd;function Nb(){if(xd)return Nu;xd=1;var e=U1(),t=Db(),r=H1(),n=r&&r.isTypedArray,i=n?t(n):e;return Nu=i,Nu}var qu,wd;function G1(){if(wd)return qu;wd=1;var e=F1(),t=Pf(),r=Re(),n=kb(),i=Tf(),a=Nb(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),h=!l&&t(s),d=!l&&!h&&n(s),y=!l&&!h&&!d&&a(s),v=l||h||d||y,p=v?e(s.length,String):[],b=p.length;for(var x in s)(f||u.call(s,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&p.push(x);return p}return qu=c,qu}var Bu,Od;function K1(){if(Od)return Bu;Od=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Bu=t,Bu}var Lu,_d;function qb(){if(_d)return Lu;_d=1;function e(t,r){return function(n){return t(r(n))}}return Lu=e,Lu}var Fu,Sd;function X1(){if(Sd)return Fu;Sd=1;var e=qb(),t=e(Object.keys,Object);return Fu=t,Fu}var zu,Ad;function V1(){if(Ad)return zu;Ad=1;var e=K1(),t=X1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return zu=i,zu}var Wu,Pd;function Vn(){if(Pd)return Wu;Pd=1;var e=hf(),t=Ef();function r(n){return n!=null&&t(n.length)&&!e(n)}return Wu=r,Wu}var Uu,Td;function Oa(){if(Td)return Uu;Td=1;var e=G1(),t=V1(),r=Vn();function n(i){return r(i)?e(i):t(i)}return Uu=n,Uu}var Hu,Ed;function Y1(){if(Ed)return Hu;Ed=1;var e=N1(),t=L1(),r=Oa();function n(i){return e(i,r,t)}return Hu=n,Hu}var Gu,jd;function Z1(){if(jd)return Gu;jd=1;var e=Y1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),d=h.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var b=h[p];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++p<d;){b=h[p];var g=a[b],_=o[b];if(c)var S=l?c(_,g,b,o,a,f):c(g,_,b,a,o,f);if(!(S===void 0?g===_||s(g,_,u,c,f):S)){O=!1;break}m||(m=b=="constructor")}if(O&&!m){var A=a.constructor,M=o.constructor;A!=M&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return Gu=i,Gu}var Ku,Md;function J1(){if(Md)return Ku;Md=1;var e=Qt(),t=ot(),r=e(t,"DataView");return Ku=r,Ku}var Xu,Cd;function Q1(){if(Cd)return Xu;Cd=1;var e=Qt(),t=ot(),r=e(t,"Promise");return Xu=r,Xu}var Vu,$d;function Bb(){if($d)return Vu;$d=1;var e=Qt(),t=ot(),r=e(t,"Set");return Vu=r,Vu}var Yu,Id;function e_(){if(Id)return Yu;Id=1;var e=Qt(),t=ot(),r=e(t,"WeakMap");return Yu=r,Yu}var Zu,Rd;function t_(){if(Rd)return Zu;Rd=1;var e=J1(),t=df(),r=Q1(),n=Bb(),i=e_(),a=bt(),o=nb(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),y=o(t),v=o(r),p=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=s||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==c?w.constructor:void 0,g=m?o(m):"";if(g)switch(g){case d:return h;case y:return u;case v:return s;case p:return f;case b:return l}return O}),Zu=x,Zu}var Ju,kd;function r_(){if(kd)return Ju;kd=1;var e=jb(),t=Ib(),r=D1(),n=Z1(),i=t_(),a=Re(),o=kb(),u=Nb(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,b,x,w,O){var m=a(v),g=a(p),_=m?f:i(v),S=g?f:i(p);_=_==s?l:_,S=S==s?l:S;var A=_==l,M=S==l,E=_==S;if(E&&o(v)){if(!o(p))return!1;m=!0,A=!1}if(E&&!A)return O||(O=new e),m||u(v)?t(v,p,b,x,w,O):r(v,p,_,b,x,w,O);if(!(b&c)){var T=A&&d.call(v,"__wrapped__"),j=M&&d.call(p,"__wrapped__");if(T||j){var $=T?v.value():v,C=j?p.value():p;return O||(O=new e),w($,C,b,x,O)}}return E?(O||(O=new e),n(v,p,b,x,w,O)):!1}return Ju=y,Ju}var Qu,Dd;function jf(){if(Dd)return Qu;Dd=1;var e=r_(),t=xt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return Qu=r,Qu}var ec,Nd;function n_(){if(Nd)return ec;Nd=1;var e=jb(),t=jf(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var d=h[0],y=a[d],v=h[1];if(l&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new e;if(c)var b=c(y,v,d,a,o,p);if(!(b===void 0?t(v,y,r|n,c,p):b))return!1}}return!0}return ec=i,ec}var tc,qd;function Lb(){if(qd)return tc;qd=1;var e=Mt();function t(r){return r===r&&!e(r)}return tc=t,tc}var rc,Bd;function i_(){if(Bd)return rc;Bd=1;var e=Lb(),t=Oa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return rc=r,rc}var nc,Ld;function Fb(){if(Ld)return nc;Ld=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return nc=e,nc}var ic,Fd;function a_(){if(Fd)return ic;Fd=1;var e=n_(),t=i_(),r=Fb();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return ic=n,ic}var ac,zd;function o_(){if(zd)return ac;zd=1;function e(t,r){return t!=null&&r in Object(t)}return ac=e,ac}var oc,Wd;function u_(){if(Wd)return oc;Wd=1;var e=ob(),t=Pf(),r=Re(),n=Tf(),i=Ef(),a=ma();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var d=a(c[f]);if(!(h=u!=null&&s(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return oc=o,oc}var uc,Ud;function c_(){if(Ud)return uc;Ud=1;var e=o_(),t=u_();function r(n,i){return n!=null&&t(n,i,e)}return uc=r,uc}var cc,Hd;function s_(){if(Hd)return cc;Hd=1;var e=jf(),t=ub(),r=c_(),n=ff(),i=Lb(),a=Fb(),o=ma(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|c)}}return cc=s,cc}var sc,Gd;function Lr(){if(Gd)return sc;Gd=1;function e(t){return t}return sc=e,sc}var lc,Kd;function l_(){if(Kd)return lc;Kd=1;function e(t){return function(r){return r==null?void 0:r[t]}}return lc=e,lc}var fc,Xd;function f_(){if(Xd)return fc;Xd=1;var e=mf();function t(r){return function(n){return e(n,r)}}return fc=t,fc}var hc,Vd;function h_(){if(Vd)return hc;Vd=1;var e=l_(),t=f_(),r=ff(),n=ma();function i(a){return r(a)?e(n(a)):t(a)}return hc=i,hc}var pc,Yd;function Ct(){if(Yd)return pc;Yd=1;var e=a_(),t=s_(),r=Lr(),n=Re(),i=h_();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return pc=a,pc}var dc,Zd;function zb(){if(Zd)return dc;Zd=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return dc=e,dc}var vc,Jd;function p_(){if(Jd)return vc;Jd=1;function e(t){return t!==t}return vc=e,vc}var yc,Qd;function d_(){if(Qd)return yc;Qd=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return yc=e,yc}var mc,ev;function v_(){if(ev)return mc;ev=1;var e=zb(),t=p_(),r=d_();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return mc=n,mc}var gc,tv;function y_(){if(tv)return gc;tv=1;var e=v_();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return gc=t,gc}var bc,rv;function m_(){if(rv)return bc;rv=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return bc=e,bc}var xc,nv;function g_(){if(nv)return xc;nv=1;function e(){}return xc=e,xc}var wc,iv;function b_(){if(iv)return wc;iv=1;var e=Bb(),t=g_(),r=Af(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return wc=i,wc}var Oc,av;function x_(){if(av)return Oc;av=1;var e=Mb(),t=y_(),r=m_(),n=$b(),i=b_(),a=Af(),o=200;function u(c,s,f){var l=-1,h=t,d=c.length,y=!0,v=[],p=v;if(f)y=!1,h=r;else if(d>=o){var b=s?null:i(c);if(b)return a(b);y=!1,h=n,p=new e}else p=s?[]:v;e:for(;++l<d;){var x=c[l],w=s?s(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;s&&p.push(w),v.push(x)}else h(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return Oc=u,Oc}var _c,ov;function w_(){if(ov)return _c;ov=1;var e=Ct(),t=x_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return _c=r,_c}var O_=w_();const uv=ue(O_);function Wb(e,t,r){return t===!0?uv(e,r):V(t)?uv(e,t):e}function mr(e){"@babel/helpers - typeof";return mr=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},mr(e)}var __=["ref"];function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(r),!0).forEach(function(n){_a(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hb(n.key),n)}}function A_(e,t,r){return t&&sv(e.prototype,t),r&&sv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function P_(e,t,r){return t=Ai(t),T_(e,Ub()?Reflect.construct(t,r||[],Ai(e).constructor):t.apply(e,r))}function T_(e,t){if(t&&(mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E_(e)}function E_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ub(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ub=function(){return!!e})()}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ai(e)}function j_(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&&ol(e,t)}function ol(e,t){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ol(e,t)}function _a(e,t,r){return t=Hb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hb(e){var t=M_(e,"string");return mr(t)=="symbol"?t:t+""}function M_(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function C_(e,t){if(e==null)return{};var r=$_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function I_(e){return e.value}function R_(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=C_(t,__);return P.createElement(Sf,r)}var lv=1,hr=(function(e){function t(){var r;S_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=P_(this,t,[].concat(i)),_a(r,"lastBoundingBox",{width:-1,height:-1}),r}return j_(t,e),A_(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>lv||Math.abs(i.height-this.lastBoundingBox.height)>lv)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ut({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ut(ut({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=ut(ut({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},R_(a,ut(ut({},this.props),{},{payload:Wb(f,s,I_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ut(ut({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);_a(hr,"displayName","Legend");_a(hr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sc,fv;function k_(){if(fv)return Sc;fv=1;var e=Kn(),t=Pf(),r=Re(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Sc=i,Sc}var Ac,hv;function Gb(){if(hv)return Ac;hv=1;var e=Rb(),t=k_();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Ac=r,Ac}var Pc,pv;function D_(){if(pv)return Pc;pv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return Pc=e,Pc}var Tc,dv;function N_(){if(dv)return Tc;dv=1;var e=D_(),t=e();return Tc=t,Tc}var Ec,vv;function Kb(){if(vv)return Ec;vv=1;var e=N_(),t=Oa();function r(n,i){return n&&e(n,i,t)}return Ec=r,Ec}var jc,yv;function q_(){if(yv)return jc;yv=1;var e=Vn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return jc=t,jc}var Mc,mv;function Mf(){if(mv)return Mc;mv=1;var e=Kb(),t=q_(),r=t(e);return Mc=r,Mc}var Cc,gv;function Xb(){if(gv)return Cc;gv=1;var e=Mf(),t=Vn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return Cc=r,Cc}var $c,bv;function B_(){if(bv)return $c;bv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return $c=e,$c}var Ic,xv;function L_(){if(xv)return Ic;xv=1;var e=Nr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return Ic=t,Ic}var Rc,wv;function F_(){if(wv)return Rc;wv=1;var e=L_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Rc=t,Rc}var kc,Ov;function z_(){if(Ov)return kc;Ov=1;var e=yf(),t=mf(),r=Ct(),n=Xb(),i=B_(),a=Db(),o=F_(),u=Lr(),c=Re();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,p,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++d,value:v}});return i(y,function(v,p){return o(v,p,h)})}return kc=s,kc}var Dc,_v;function W_(){if(_v)return Dc;_v=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Dc=e,Dc}var Nc,Sv;function U_(){if(Sv)return Nc;Sv=1;var e=W_(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return Nc=r,Nc}var qc,Av;function H_(){if(Av)return qc;Av=1;function e(t){return function(){return t}}return qc=e,qc}var Bc,Pv;function Vb(){if(Pv)return Bc;Pv=1;var e=Qt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Bc=t,Bc}var Lc,Tv;function G_(){if(Tv)return Lc;Tv=1;var e=H_(),t=Vb(),r=Lr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Lc=n,Lc}var Fc,Ev;function K_(){if(Ev)return Fc;Ev=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Fc=n,Fc}var zc,jv;function X_(){if(jv)return zc;jv=1;var e=G_(),t=K_(),r=t(e);return zc=r,zc}var Wc,Mv;function V_(){if(Mv)return Wc;Mv=1;var e=Lr(),t=U_(),r=X_();function n(i,a){return r(t(i,a,e),i+"")}return Wc=n,Wc}var Uc,Cv;function Sa(){if(Cv)return Uc;Cv=1;var e=pf(),t=Vn(),r=Tf(),n=Mt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return Uc=i,Uc}var Hc,$v;function Y_(){if($v)return Hc;$v=1;var e=Gb(),t=z_(),r=V_(),n=Sa(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Hc=i,Hc}var Z_=Y_();const Cf=ue(Z_);function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ul.apply(this,arguments)}function J_(e,t){return rS(e)||tS(e,t)||eS(e,t)||Q_()}function Q_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eS(e,t){if(e){if(typeof e=="string")return Iv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iv(e,t)}}function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function rS(e){if(Array.isArray(e))return e}function Rv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rv(Object(r),!0).forEach(function(n){nS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nS(e,t,r){return t=iS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iS(e){var t=aS(e,"string");return pn(t)=="symbol"?t:t+""}function aS(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oS(e){return Array.isArray(e)&&we(e[0])&&we(e[1])?e.join(" ~ "):e}var uS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var T={padding:0,margin:0},j=(h?Cf(f,h):f).map(function($,C){if($.type==="none")return null;var R=Gc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),D=$.formatter||l||oS,B=$.value,L=$.name,U=B,G=L;if(D&&U!=null&&G!=null){var z=D(B,L,$,C,f);if(Array.isArray(z)){var K=J_(z,2);U=K[0],G=K[1]}else U=z}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:R},we(G)?P.createElement("span",{className:"recharts-tooltip-item-name"},G):null,we(G)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},U),P.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:T},j)}return null},O=Gc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Gc({margin:0},s),g=!J(v),_=g?v:"",S=ee("recharts-default-tooltip",d),A=ee("recharts-tooltip-label",y);g&&p&&f!==void 0&&f!==null&&(_=p(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",ul({className:S,style:O},M),P.createElement("p",{className:A,style:m},P.isValidElement(_)?_:"".concat(_)),w())};function dn(e){"@babel/helpers - typeof";return dn=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},dn(e)}function ni(e,t,r){return t=cS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cS(e){var t=sS(e,"string");return dn(t)=="symbol"?t:t+""}function sS(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kr="recharts-tooltip-wrapper",lS={visibility:"hidden"};function fS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(Kr,ni(ni(ni(ni({},"".concat(Kr,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(Kr,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(Kr,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(Kr,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function kv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,d=c[n];return h<d?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function hS(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function pS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=kv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=kv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=hS({translateX:f,translateY:l,useTranslate3d:u})):s=lS,{cssProperties:s,cssClasses:fS({translateX:f,translateY:l,coordinate:r})}}function gr(e){"@babel/helpers - typeof";return gr=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},gr(e)}function Dv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dv(Object(r),!0).forEach(function(n){sl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zb(n.key),n)}}function yS(e,t,r){return t&&vS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mS(e,t,r){return t=Pi(t),gS(e,Yb()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}function gS(e,t){if(t&&(gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bS(e)}function bS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yb=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pi(e)}function xS(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&&cl(e,t)}function cl(e,t){return cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cl(e,t)}function sl(e,t,r){return t=Zb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zb(e){var t=wS(e,"string");return gr(t)=="symbol"?t:t+""}function wS(e,t){if(gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qv=1,OS=(function(e){function t(){var r;dS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=mS(this,t,[].concat(i)),sl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),sl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return xS(t,e),yS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>qv||Math.abs(n.height-this.state.lastBoundingBox.height)>qv)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,d=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=pS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=Nv(Nv({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(S){n.wrapperNode=S}},s)}}])})(N.PureComponent),_S=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Fr={isSsr:_S()};function br(e){"@babel/helpers - typeof";return br=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},br(e)}function Bv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(r),!0).forEach(function(n){$f(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qb(n.key),n)}}function PS(e,t,r){return t&&AS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TS(e,t,r){return t=Ti(t),ES(e,Jb()?Reflect.construct(t,r||[],Ti(e).constructor):t.apply(e,r))}function ES(e,t){if(t&&(br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jS(e)}function jS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jb=function(){return!!e})()}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ti(e)}function MS(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&&ll(e,t)}function ll(e,t){return ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ll(e,t)}function $f(e,t,r){return t=Qb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qb(e){var t=CS(e,"string");return br(t)=="symbol"?t:t+""}function CS(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $S(e){return e.dataKey}function IS(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(uS,t)}var ct=(function(e){function t(){return SS(this,t),TS(this,t,arguments)}return MS(t,e),PS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,d=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Wb(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,$S));var g=m.length>0;return P.createElement(OS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:g,offset:d,position:p,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},IS(s,Lv(Lv({},this.props),{},{payload:m})))}}])})(N.PureComponent);$f(ct,"displayName","Tooltip");$f(ct,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Fr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Kc,Fv;function RS(){if(Fv)return Kc;Fv=1;var e=ot(),t=function(){return e.Date.now()};return Kc=t,Kc}var Xc,zv;function kS(){if(zv)return Xc;zv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Xc=t,Xc}var Vc,Wv;function DS(){if(Wv)return Vc;Wv=1;var e=kS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Vc=r,Vc}var Yc,Uv;function e0(){if(Uv)return Yc;Uv=1;var e=DS(),t=Mt(),r=Nr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return Yc=c,Yc}var Zc,Hv;function NS(){if(Hv)return Zc;Hv=1;var e=Mt(),t=RS(),r=e0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,d,y,v,p=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(b=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var $=f,C=l;return f=l=void 0,p=j,d=u.apply(C,$),d}function m(j){return p=j,y=setTimeout(S,c),b?O(j):d}function g(j){var $=j-v,C=j-p,R=c-$;return x?a(R,h-C):R}function _(j){var $=j-v,C=j-p;return v===void 0||$>=c||$<0||x&&C>=h}function S(){var j=t();if(_(j))return A(j);y=setTimeout(S,g(j))}function A(j){return y=void 0,w&&f?O(j):(f=l=void 0,d)}function M(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function E(){return y===void 0?d:A(t())}function T(){var j=t(),$=_(j);if(f=arguments,l=this,v=j,$){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(S,c),O(v)}return y===void 0&&(y=setTimeout(S,c)),d}return T.cancel=M,T.flush=E,T}return Zc=o,Zc}var Jc,Gv;function qS(){if(Gv)return Jc;Gv=1;var e=NS(),t=Mt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return Jc=n,Jc}var BS=qS();const t0=ue(BS);function vn(e){"@babel/helpers - typeof";return vn=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},vn(e)}function Kv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kv(Object(r),!0).forEach(function(n){LS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LS(e,t,r){return t=FS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FS(e){var t=zS(e,"string");return vn(t)=="symbol"?t:t+""}function zS(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WS(e,t){return KS(e)||GS(e,t)||HS(e,t)||US()}function US(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HS(e,t){if(e){if(typeof e=="string")return Xv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xv(e,t)}}function Xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function KS(e){if(Array.isArray(e))return e}var fN=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,d=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),g=N.useRef();g.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),S=WS(_,2),A=S[0],M=S[1],E=N.useCallback(function(j,$){M(function(C){var R=Math.round(j),D=Math.round($);return C.containerWidth===R&&C.containerHeight===D?C:{containerWidth:R,containerHeight:D}})},[]);N.useEffect(function(){var j=function(L){var U,G=L[0].contentRect,z=G.width,K=G.height;E(z,K),(U=g.current)===null||U===void 0||U.call(g,z,K)};v>0&&(j=t0(j,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(j),C=m.current.getBoundingClientRect(),R=C.width,D=C.height;return E(R,D),$.observe(m.current),function(){$.disconnect()}},[E,v]);var T=N.useMemo(function(){var j=A.containerWidth,$=A.containerHeight;if(j<0||$<0)return null;pt(Ft(o)||Ft(c),`The width(%s) and height(%s) are both fixed numbers,
15
+ maybe you don't need to use a ResponsiveContainer.`,o,c),pt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Ft(o)?j:o,R=Ft(c)?$:c;r&&r>0&&(C?R=C/r:R&&(C=R*r),h&&R>h&&(R=h)),pt(C>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
16
+ please check the style of container, or the props width(%s) and height(%s),
17
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
18
+ height and width.`,C,R,o,c,f,l,r);var D=!Array.isArray(d)&&ht(d.type).endsWith("Chart");return P.Children.map(d,function(B){return P.isValidElement(B)?N.cloneElement(B,ii({width:C,height:R},D?{style:ii({height:"100%",width:"100%",maxHeight:R,maxWidth:C},B.props.style)}:{})):B})},[r,d,c,h,l,f,A,o]);return P.createElement("div",{id:p?"".concat(p):void 0,className:ee("recharts-responsive-container",b),style:ii(ii({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},T)}),r0=function(t){return null};r0.displayName="Cell";function yn(e){"@babel/helpers - typeof";return yn=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},yn(e)}function Vv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vv(Object(r),!0).forEach(function(n){XS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XS(e,t,r){return t=VS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VS(e){var t=YS(e,"string");return yn(t)=="symbol"?t:t+""}function YS(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ar={widthCache:{},cacheCount:0},ZS=2e3,JS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Yv="recharts_measurement_span";function QS(e){var t=fl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var on=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Fr.isSsr)return{width:0,height:0};var n=QS(r),i=JSON.stringify({text:t,copyStyle:n});if(ar.widthCache[i])return ar.widthCache[i];try{var a=document.getElementById(Yv);a||(a=document.createElement("span"),a.setAttribute("id",Yv),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=fl(fl({},JS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return ar.widthCache[i]=c,++ar.cacheCount>ZS&&(ar.cacheCount=0,ar.widthCache={}),c}catch{return{width:0,height:0}}},eA=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function mn(e){"@babel/helpers - typeof";return mn=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},mn(e)}function Ei(e,t){return iA(e)||nA(e,t)||rA(e,t)||tA()}function tA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rA(e,t){if(e){if(typeof e=="string")return Zv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zv(e,t)}}function Zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function iA(e){if(Array.isArray(e))return e}function aA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uA(n.key),n)}}function oA(e,t,r){return t&&Jv(e.prototype,t),r&&Jv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uA(e){var t=cA(e,"string");return mn(t)=="symbol"?t:t+""}function cA(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ey=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,lA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,n0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},fA=Object.keys(n0),cr="NaN";function hA(e,t){return e*n0[t]}var ai=(function(){function e(t,r){aA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!sA.test(r)&&(this.num=NaN,this.unit=""),fA.includes(r)&&(this.num=hA(t,r),this.unit="px")}return oA(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=lA.exec(r))!==null&&n!==void 0?n:[],a=Ei(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function i0(e){if(e.includes(cr))return cr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Qv.exec(t))!==null&&r!==void 0?r:[],i=Ei(n,4),a=i[1],o=i[2],u=i[3],c=ai.parse(a??""),s=ai.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return cr;t=t.replace(Qv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=ey.exec(t))!==null&&l!==void 0?l:[],d=Ei(h,4),y=d[1],v=d[2],p=d[3],b=ai.parse(y??""),x=ai.parse(p??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return cr;t=t.replace(ey,w.toString())}return t}var ty=/\(([^()]*)\)/;function pA(e){for(var t=e;t.includes("(");){var r=ty.exec(t),n=Ei(r,2),i=n[1];t=t.replace(ty,i0(i))}return t}function dA(e){var t=e.replace(/\s+/g,"");return t=pA(t),t=i0(t),t}function vA(e){try{return dA(e)}catch{return cr}}function Qc(e){var t=vA(e.slice(5,-1));return t===cr?"":t}var yA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],mA=["dx","dy","angle","className","breakAll"];function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hl.apply(this,arguments)}function ry(e,t){if(e==null)return{};var r=gA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ny(e,t){return OA(e)||wA(e,t)||xA(e,t)||bA()}function bA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xA(e,t){if(e){if(typeof e=="string")return iy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iy(e,t)}}function iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function OA(e){if(Array.isArray(e))return e}var a0=/[ \f\n\r\t\v\u2028\u2029]+/,o0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];J(r)||(n?a=r.toString().split(""):a=r.toString().split(a0));var o=a.map(function(c){return{word:c,width:on(c,i).width}}),u=n?0:on(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},_A=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=q(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(R,D){var B=D.word,L=D.width,U=R[R.length-1];if(U&&(i==null||a||U.width+L+n<Number(i)))U.words.push(B),U.width+=L+n;else{var G={words:[B],width:L};R.push(G)}return R},[])},d=h(r),y=function(C){return C.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return d;for(var v="…",p=function(C){var R=l.slice(0,C),D=o0({breakAll:s,style:c,children:R+v}).wordsWithComputedWidth,B=h(D),L=B.length>o||y(B).width>Number(i);return[L,B]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var m=Math.floor((b+x)/2),g=m-1,_=p(g),S=ny(_,2),A=S[0],M=S[1],E=p(m),T=ny(E,1),j=T[0];if(!A&&!j&&(b=m+1),A&&j&&(x=m-1),!A&&j){O=M;break}w++}return O||d},ay=function(t){var r=J(t)?[]:t.toString().split(a0);return[{words:r}]},SA=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Fr.isSsr){var c,s,f=o0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return ay(i);return _A({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return ay(i)},oy="#808080",ji=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,b=p===void 0?oy:p,x=ry(t,yA),w=N.useMemo(function(){return SA({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,g=x.angle,_=x.className,S=x.breakAll,A=ry(x,mA);if(!we(n)||!we(a))return null;var M=n+(q(O)?O:0),E=a+(q(m)?m:0),T;switch(v){case"start":T=Qc("calc(".concat(s,")"));break;case"middle":T=Qc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:T=Qc("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var $=w[0].width,C=x.width;j.push("scale(".concat((q(C)?C/$:1)/$,")"))}return g&&j.push("rotate(".concat(g,", ").concat(M,", ").concat(E,")")),j.length&&(A.transform=j.join(" ")),P.createElement("text",hl({},Z(A,!0),{x:M,y:E,className:ee("recharts-text",_),textAnchor:d,fill:b.includes("url")?oy:b}),w.map(function(R,D){var B=R.words.join(S?"":" ");return P.createElement("tspan",{x:M,dy:D===0?T:u,key:"".concat(B,"-").concat(D)},B)}))};function Et(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function AA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function If(e){let t,r,n;e.length!==2?(t=Et,r=(u,c)=>Et(e(u),c),n=(u,c)=>e(u)-c):(t=e===Et||e===AA?e:PA,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function PA(){return 0}function u0(e){return e===null?NaN:+e}function*TA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const EA=If(Et),Yn=EA.right;If(u0).center;class uy extends Map{constructor(t,r=CA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(cy(this,t))}has(t){return super.has(cy(this,t))}set(t,r){return super.set(jA(this,t),r)}delete(t){return super.delete(MA(this,t))}}function cy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function jA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function MA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function CA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function $A(e=Et){if(e===Et)return c0;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function c0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const IA=Math.sqrt(50),RA=Math.sqrt(10),kA=Math.sqrt(2);function Mi(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=IA?10:a>=RA?5:a>=kA?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Mi(e,t,r*2):[u,c,s]}function pl(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Mi(t,e,r):Mi(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function dl(e,t,r){return t=+t,e=+e,r=+r,Mi(e,t,r)[2]}function vl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?dl(t,e,r):dl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function sy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ly(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function s0(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?c0:$A(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));s0(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(Xr(e,r,t),i(e[n],a)>0&&Xr(e,r,n);o<u;){for(Xr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Xr(e,r,u):(++u,Xr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Xr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function DA(e,t,r){if(e=Float64Array.from(TA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ly(e);if(t>=1)return sy(e);var n,i=(n-1)*t,a=Math.floor(i),o=sy(s0(e,a).subarray(0,a+1)),u=ly(e.subarray(a+1));return o+(u-o)*(i-a)}}function NA(e,t,r=u0){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function qA(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ke(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function wt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const yl=Symbol("implicit");function Rf(){var e=new uy,t=[],r=[],n=yl;function i(a){let o=e.get(a);if(o===void 0){if(n!==yl)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new uy;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Rf(t,r).unknown(n)},Ke.apply(i,arguments),i}function gn(){var e=Rf().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,y=d?i:n,v=d?n:i;a=(v-y)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var p=qA(h).map(function(b){return y+a*b});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return gn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Ke.apply(l(),arguments)}function l0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return l0(t())},e}function un(){return l0(gn.apply(null,arguments).paddingInner(1))}function kf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function f0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Zn(){}var bn=.7,Ci=1/bn,pr="\\s*([+-]?\\d+)\\s*",xn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BA=/^#([0-9a-f]{3,8})$/,LA=new RegExp(`^rgb\\(${pr},${pr},${pr}\\)$`),FA=new RegExp(`^rgb\\(${nt},${nt},${nt}\\)$`),zA=new RegExp(`^rgba\\(${pr},${pr},${pr},${xn}\\)$`),WA=new RegExp(`^rgba\\(${nt},${nt},${nt},${xn}\\)$`),UA=new RegExp(`^hsl\\(${xn},${nt},${nt}\\)$`),HA=new RegExp(`^hsla\\(${xn},${nt},${nt},${xn}\\)$`),fy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kf(Zn,wn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:hy,formatHex:hy,formatHex8:GA,formatHsl:KA,formatRgb:py,toString:py});function hy(){return this.rgb().formatHex()}function GA(){return this.rgb().formatHex8()}function KA(){return h0(this).formatHsl()}function py(){return this.rgb().formatRgb()}function wn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=BA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?dy(t):r===3?new Ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?oi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?oi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=LA.exec(e))?new Ie(t[1],t[2],t[3],1):(t=FA.exec(e))?new Ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zA.exec(e))?oi(t[1],t[2],t[3],t[4]):(t=WA.exec(e))?oi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UA.exec(e))?my(t[1],t[2]/100,t[3]/100,1):(t=HA.exec(e))?my(t[1],t[2]/100,t[3]/100,t[4]):fy.hasOwnProperty(e)?dy(fy[e]):e==="transparent"?new Ie(NaN,NaN,NaN,0):null}function dy(e){return new Ie(e>>16&255,e>>8&255,e&255,1)}function oi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ie(e,t,r,n)}function XA(e){return e instanceof Zn||(e=wn(e)),e?(e=e.rgb(),new Ie(e.r,e.g,e.b,e.opacity)):new Ie}function ml(e,t,r,n){return arguments.length===1?XA(e):new Ie(e,t,r,n??1)}function Ie(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}kf(Ie,ml,f0(Zn,{brighter(e){return e=e==null?Ci:Math.pow(Ci,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?bn:Math.pow(bn,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(Gt(this.r),Gt(this.g),Gt(this.b),$i(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vy,formatHex:vy,formatHex8:VA,formatRgb:yy,toString:yy}));function vy(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}`}function VA(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}${zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function yy(){const e=$i(this.opacity);return`${e===1?"rgb(":"rgba("}${Gt(this.r)}, ${Gt(this.g)}, ${Gt(this.b)}${e===1?")":`, ${e})`}`}function $i(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zt(e){return e=Gt(e),(e<16?"0":"")+e.toString(16)}function my(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ye(e,t,r,n)}function h0(e){if(e instanceof Ye)return new Ye(e.h,e.s,e.l,e.opacity);if(e instanceof Zn||(e=wn(e)),!e)return new Ye;if(e instanceof Ye)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Ye(o,u,c,e.opacity)}function YA(e,t,r,n){return arguments.length===1?h0(e):new Ye(e,t,r,n??1)}function Ye(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}kf(Ye,YA,f0(Zn,{brighter(e){return e=e==null?Ci:Math.pow(Ci,e),new Ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?bn:Math.pow(bn,e),new Ye(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ie(es(e>=240?e-240:e+120,i,n),es(e,i,n),es(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ye(gy(this.h),ui(this.s),ui(this.l),$i(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=$i(this.opacity);return`${e===1?"hsl(":"hsla("}${gy(this.h)}, ${ui(this.s)*100}%, ${ui(this.l)*100}%${e===1?")":`, ${e})`}`}}));function gy(e){return e=(e||0)%360,e<0?e+360:e}function ui(e){return Math.max(0,Math.min(1,e||0))}function es(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Df=e=>()=>e;function ZA(e,t){return function(r){return e+r*t}}function JA(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function QA(e){return(e=+e)==1?p0:function(t,r){return r-t?JA(t,r,e):Df(isNaN(t)?r:t)}}function p0(e,t){var r=t-e;return r?ZA(e,r):Df(isNaN(e)?t:e)}const by=(function e(t){var r=QA(t);function n(i,a){var o=r((i=ml(i)).r,(a=ml(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=p0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n})(1);function eP(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function tP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function rP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=zr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function nP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function et(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function iP(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=zr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var gl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ts=new RegExp(gl.source,"g");function aP(e){return function(){return e}}function oP(e){return function(t){return e(t)+""}}function uP(e,t){var r=gl.lastIndex=ts.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=gl.exec(e))&&(i=ts.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:et(n,i)})),r=ts.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?oP(c[0].x):aP(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function zr(e,t){var r=typeof t,n;return t==null||r==="boolean"?Df(t):(r==="number"?et:r==="string"?(n=wn(t))?(t=n,by):uP:t instanceof wn?by:t instanceof Date?nP:tP(t)?eP:Array.isArray(t)?rP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?iP:et)(e,t)}function Nf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var xy=180/Math.PI,bl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function d0(e,t,r,n,i,a){var o,u,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*r+t*n)&&(r-=e*c,n-=t*c),(u=Math.sqrt(r*r+n*n))&&(r/=u,n/=u,c/=u),e*n<t*r&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*xy,skewX:Math.atan(c)*xy,scaleX:o,scaleY:u}}var ci;function cP(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?bl:d0(t.a,t.b,t.c,t.d,t.e,t.f)}function sP(e){return e==null||(ci||(ci=document.createElementNS("http://www.w3.org/2000/svg","g")),ci.setAttribute("transform",e),!(e=ci.transform.baseVal.consolidate()))?bl:(e=e.matrix,d0(e.a,e.b,e.c,e.d,e.e,e.f))}function v0(e,t,r,n){function i(s){return s.length?s.pop()+" ":""}function a(s,f,l,h,d,y){if(s!==l||f!==h){var v=d.push("translate(",null,t,null,r);y.push({i:v-4,x:et(s,l)},{i:v-2,x:et(f,h)})}else(l||h)&&d.push("translate("+l+t+h+r)}function o(s,f,l,h){s!==f?(s-f>180?f+=360:f-s>180&&(s+=360),h.push({i:l.push(i(l)+"rotate(",null,n)-2,x:et(s,f)})):f&&l.push(i(l)+"rotate("+f+n)}function u(s,f,l,h){s!==f?h.push({i:l.push(i(l)+"skewX(",null,n)-2,x:et(s,f)}):f&&l.push(i(l)+"skewX("+f+n)}function c(s,f,l,h,d,y){if(s!==l||f!==h){var v=d.push(i(d)+"scale(",null,",",null,")");y.push({i:v-4,x:et(s,l)},{i:v-2,x:et(f,h)})}else(l!==1||h!==1)&&d.push(i(d)+"scale("+l+","+h+")")}return function(s,f){var l=[],h=[];return s=e(s),f=e(f),a(s.translateX,s.translateY,f.translateX,f.translateY,l,h),o(s.rotate,f.rotate,l,h),u(s.skewX,f.skewX,l,h),c(s.scaleX,s.scaleY,f.scaleX,f.scaleY,l,h),s=f=null,function(d){for(var y=-1,v=h.length,p;++y<v;)l[(p=h[y]).i]=p.x(d);return l.join("")}}}var hN=v0(cP,"px, ","px)","deg)"),pN=v0(sP,", ",")",")"),lP=1e-12;function wy(e){return((e=Math.exp(e))+1/e)/2}function fP(e){return((e=Math.exp(e))-1/e)/2}function hP(e){return((e=Math.exp(2*e))-1)/(e+1)}const dN=(function e(t,r,n){function i(a,o){var u=a[0],c=a[1],s=a[2],f=o[0],l=o[1],h=o[2],d=f-u,y=l-c,v=d*d+y*y,p,b;if(v<lP)b=Math.log(h/s)/t,p=function(_){return[u+_*d,c+_*y,s*Math.exp(t*_*b)]};else{var x=Math.sqrt(v),w=(h*h-s*s+n*v)/(2*s*r*x),O=(h*h-s*s-n*v)/(2*h*r*x),m=Math.log(Math.sqrt(w*w+1)-w),g=Math.log(Math.sqrt(O*O+1)-O);b=(g-m)/t,p=function(_){var S=_*b,A=wy(m),M=s/(r*x)*(A*hP(t*S+m)-fP(m));return[u+M*d,c+M*y,s*A/wy(t*S+m)]}}return p.duration=b*1e3*t/Math.SQRT2,p}return i.rho=function(a){var o=Math.max(.001,+a),u=o*o,c=u*u;return e(o,u,c)},i})(Math.SQRT2,2,4);function pP(e,t){t===void 0&&(t=e,e=zr);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function dP(e){return function(){return e}}function Ii(e){return+e}var Oy=[0,1];function Me(e){return e}function xl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:dP(isNaN(t)?NaN:.5)}function vP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function yP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=xl(i,n),a=r(o,a)):(n=xl(n,i),a=r(a,o)),function(u){return a(n(u))}}function mP(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=xl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=Yn(e,u,1,n)-1;return a[c](i[c](u))}}function Jn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Aa(){var e=Oy,t=Oy,r=zr,n,i,a,o=Me,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Me&&(o=vP(e[0],e[h-1])),u=h>2?mP:yP,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),et)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Ii),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Nf,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Me,f()):o!==Me},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function qf(){return Aa()(Me,Me)}function gP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ri(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xr(e){return e=Ri(Math.abs(e)),e?e[1]:NaN}function bP(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function xP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var wP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function On(e){if(!(t=wP.exec(e)))throw new Error("invalid format: "+e);var t;return new Bf({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}On.prototype=Bf.prototype;function Bf(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Bf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function OP(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var ki;function _P(e,t){var r=Ri(e,t);if(!r)return ki=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(ki=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ri(e,Math.max(0,t+a-1))[0]}function _y(e,t){var r=Ri(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Sy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:gP,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>_y(e*100,t),r:_y,s:_P,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ay(e){return e}var Py=Array.prototype.map,Ty=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function SP(e){var t=e.grouping===void 0||e.thousands===void 0?Ay:bP(Py.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Ay:xP(Py.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l,h){l=On(l);var d=l.fill,y=l.align,v=l.sign,p=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,g=l.type;g==="n"?(w=!0,g="g"):Sy[g]||(O===void 0&&(O=12),m=!0,g="g"),(b||d==="0"&&y==="=")&&(b=!0,d="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?r:p==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),S=(p==="$"?n:/[%p]/.test(g)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),A=Sy[g],M=/[defgprs%]/.test(g);O=O===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(T){var j=_,$=S,C,R,D;if(g==="c")$=A(T)+$,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?c:A(Math.abs(T),O),m&&(T=OP(T)),B&&+T==0&&v!=="+"&&(B=!1),j=(B?v==="("?v:u:v==="-"||v==="("?"":v)+j,$=(g==="s"&&!isNaN(T)&&ki!==void 0?Ty[8+ki/3]:"")+$+(B&&v==="("?")":""),M){for(C=-1,R=T.length;++C<R;)if(D=T.charCodeAt(C),48>D||D>57){$=(D===46?i+T.slice(C+1):T.slice(C))+$,T=T.slice(0,C);break}}}w&&!b&&(T=t(T,1/0));var L=j.length+T.length+$.length,U=L<x?new Array(x-L+1).join(d):"";switch(w&&b&&(T=t(U+T,U.length?x-$.length:1/0),U=""),y){case"<":T=j+T+$+U;break;case"=":T=j+U+T+$;break;case"^":T=U.slice(0,L=U.length>>1)+j+T+$+U.slice(L);break;default:T=U+j+T+$;break}return a(T)}return E.toString=function(){return l+""},E}function f(l,h){var d=Math.max(-8,Math.min(8,Math.floor(xr(h)/3)))*3,y=Math.pow(10,-d),v=s((l=On(l),l.type="f",l),{suffix:Ty[8+d/3]});return function(p){return v(y*p)}}return{format:s,formatPrefix:f}}var si,Lf,y0;AP({thousands:",",grouping:[3],currency:["$",""]});function AP(e){return si=SP(e),Lf=si.format,y0=si.formatPrefix,si}function PP(e){return Math.max(0,-xr(Math.abs(e)))}function TP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xr(t)/3)))*3-xr(Math.abs(e)))}function EP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xr(t)-xr(e))+1}function m0(e,t,r,n){var i=vl(e,t,r),a;switch(n=On(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=TP(i,o))&&(n.precision=a),y0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=EP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=PP(i))&&(n.precision=a-(n.type==="%")*2);break}}return Lf(n)}function $t(e){var t=e.domain;return e.ticks=function(r){var n=t();return pl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return m0(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=dl(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Di(){var e=qf();return e.copy=function(){return Jn(e,Di())},Ke.apply(e,arguments),$t(e)}function g0(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ii),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return g0(e).unknown(t)},e=arguments.length?Array.from(e,Ii):[0,1],$t(r)}function b0(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Ey(e){return Math.log(e)}function jy(e){return Math.exp(e)}function jP(e){return-Math.log(-e)}function MP(e){return-Math.exp(-e)}function CP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $P(e){return e===10?CP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function IP(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function My(e){return(t,r)=>-e(-t,r)}function Ff(e){const t=e(Ey,jy),r=t.domain;let n=10,i,a;function o(){return i=IP(n),a=$P(n),r()[0]<0?(i=My(i),a=My(a),e(jP,MP)):e(Ey,jy),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),d=i(f),y,v;const p=u==null?10:+u;let b=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}}else for(;h<=d;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}b.length*2<p&&(b=pl(s,f,p))}else b=pl(h,d,Math.min(d-h,p)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=On(c)).precision==null&&(c.trim=!0),c=Lf(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(b0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function x0(){const e=Ff(Aa()).domain([1,10]);return e.copy=()=>Jn(e,x0()).base(e.base()),Ke.apply(e,arguments),e}function Cy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function $y(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function zf(e){var t=1,r=e(Cy(t),$y(t));return r.constant=function(n){return arguments.length?e(Cy(t=+n),$y(t)):t},$t(r)}function w0(){var e=zf(Aa());return e.copy=function(){return Jn(e,w0()).constant(e.constant())},Ke.apply(e,arguments)}function Iy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function RP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function kP(e){return e<0?-e*e:e*e}function Wf(e){var t=e(Me,Me),r=1;function n(){return r===1?e(Me,Me):r===.5?e(RP,kP):e(Iy(r),Iy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},$t(t)}function Uf(){var e=Wf(Aa());return e.copy=function(){return Jn(e,Uf()).exponent(e.exponent())},Ke.apply(e,arguments),e}function DP(){return Uf.apply(null,arguments).exponent(.5)}function Ry(e){return Math.sign(e)*e*e}function NP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function O0(){var e=qf(),t=[0,1],r=!1,n;function i(a){var o=NP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ry(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ii)).map(Ry)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return O0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ke.apply(i,arguments),$t(i)}function _0(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=NA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Yn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Et),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return _0().domain(e).range(t).unknown(n)},Ke.apply(a,arguments)}function S0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Yn(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return S0().domain([e,t]).range(i).unknown(a)},Ke.apply($t(o),arguments)}function A0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Yn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return A0().domain(e).range(t).unknown(r)},Ke.apply(i,arguments)}const rs=new Date,ns=new Date;function Oe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>Oe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(rs.setTime(+a),ns.setTime(+o),e(rs),e(ns),Math.floor(r(rs,ns))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ni=Oe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ni.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ni);Ni.range;const st=1e3,Ue=st*60,lt=Ue*60,vt=lt*24,Hf=vt*7,ky=vt*30,is=vt*365,Wt=Oe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getUTCSeconds());Wt.range;const Gf=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*st)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getMinutes());Gf.range;const Kf=Oe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getUTCMinutes());Kf.range;const Xf=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*st-e.getMinutes()*Ue)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getHours());Xf.range;const Vf=Oe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCHours());Vf.range;const Qn=Oe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ue)/vt,e=>e.getDate()-1);Qn.range;const Pa=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vt,e=>e.getUTCDate()-1);Pa.range;const P0=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vt,e=>Math.floor(e/vt));P0.range;function er(e){return Oe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ue)/Hf)}const Ta=er(0),qi=er(1),qP=er(2),BP=er(3),wr=er(4),LP=er(5),FP=er(6);Ta.range;qi.range;qP.range;BP.range;wr.range;LP.range;FP.range;function tr(e){return Oe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Hf)}const Ea=tr(0),Bi=tr(1),zP=tr(2),WP=tr(3),Or=tr(4),UP=tr(5),HP=tr(6);Ea.range;Bi.range;zP.range;WP.range;Or.range;UP.range;HP.range;const Yf=Oe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Yf.range;const Zf=Oe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Zf.range;const yt=Oe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});yt.range;const mt=Oe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());mt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});mt.range;function T0(e,t,r,n,i,a){const o=[[Wt,1,st],[Wt,5,5*st],[Wt,15,15*st],[Wt,30,30*st],[a,1,Ue],[a,5,5*Ue],[a,15,15*Ue],[a,30,30*Ue],[i,1,lt],[i,3,3*lt],[i,6,6*lt],[i,12,12*lt],[n,1,vt],[n,2,2*vt],[r,1,Hf],[t,1,ky],[t,3,3*ky],[e,1,is]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const d=l&&typeof l.range=="function"?l:c(s,f,l),y=d?d.range(s,+f+1):[];return h?y.reverse():y}function c(s,f,l){const h=Math.abs(f-s)/l,d=If(([,,p])=>p).right(o,h);if(d===o.length)return e.every(vl(s/is,f/is,l));if(d===0)return Ni.every(Math.max(vl(s,f,l),1));const[y,v]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return y.every(v)}return[u,c]}const[GP,KP]=T0(mt,Zf,Ea,P0,Vf,Kf),[XP,VP]=T0(yt,Yf,Ta,Qn,Xf,Gf);function as(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function os(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Vr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function YP(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=Yr(i),f=Zr(i),l=Yr(a),h=Zr(a),d=Yr(o),y=Zr(o),v=Yr(u),p=Zr(u),b=Yr(c),x=Zr(c),w={a:D,A:B,b:L,B:U,c:null,d:Fy,e:Fy,f:bT,g:jT,G:CT,H:yT,I:mT,j:gT,L:E0,m:xT,M:wT,p:G,q:z,Q:Uy,s:Hy,S:OT,u:_T,U:ST,V:AT,w:PT,W:TT,x:null,X:null,y:ET,Y:MT,Z:$T,"%":Wy},O={a:K,A:ce,b:de,B:ke,c:null,d:zy,e:zy,f:DT,g:GT,G:XT,H:IT,I:RT,j:kT,L:M0,m:NT,M:qT,p:kt,q:Ce,Q:Uy,s:Hy,S:BT,u:LT,U:FT,V:zT,w:WT,W:UT,x:null,X:null,y:HT,Y:KT,Z:VT,"%":Wy},m={a:M,A:E,b:T,B:j,c:$,d:By,e:By,f:hT,g:qy,G:Ny,H:Ly,I:Ly,j:cT,L:fT,m:uT,M:sT,p:A,q:oT,Q:dT,s:vT,S:lT,u:tT,U:rT,V:nT,w:eT,W:iT,x:C,X:R,y:qy,Y:Ny,Z:aT,"%":pT};w.x=g(r,w),w.X=g(n,w),w.c=g(t,w),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(F,X){return function(Y){var k=[],he=-1,Q=0,me=F.length,ge,$e,Ot;for(Y instanceof Date||(Y=new Date(+Y));++he<me;)F.charCodeAt(he)===37&&(k.push(F.slice(Q,he)),($e=Dy[ge=F.charAt(++he)])!=null?ge=F.charAt(++he):$e=ge==="e"?" ":"0",(Ot=X[ge])&&(ge=Ot(Y,$e)),k.push(ge),Q=he+1);return k.push(F.slice(Q,he)),k.join("")}}function _(F,X){return function(Y){var k=Vr(1900,void 0,1),he=S(k,F,Y+="",0),Q,me;if(he!=Y.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(X&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(Q=os(Vr(k.y,0,1)),me=Q.getUTCDay(),Q=me>4||me===0?Bi.ceil(Q):Bi(Q),Q=Pa.offset(Q,(k.V-1)*7),k.y=Q.getUTCFullYear(),k.m=Q.getUTCMonth(),k.d=Q.getUTCDate()+(k.w+6)%7):(Q=as(Vr(k.y,0,1)),me=Q.getDay(),Q=me>4||me===0?qi.ceil(Q):qi(Q),Q=Qn.offset(Q,(k.V-1)*7),k.y=Q.getFullYear(),k.m=Q.getMonth(),k.d=Q.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),me="Z"in k?os(Vr(k.y,0,1)).getUTCDay():as(Vr(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(me+5)%7:k.w+k.U*7-(me+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,os(k)):as(k)}}function S(F,X,Y,k){for(var he=0,Q=X.length,me=Y.length,ge,$e;he<Q;){if(k>=me)return-1;if(ge=X.charCodeAt(he++),ge===37){if(ge=X.charAt(he++),$e=m[ge in Dy?X.charAt(he++):ge],!$e||(k=$e(F,Y,k))<0)return-1}else if(ge!=Y.charCodeAt(k++))return-1}return k}function A(F,X,Y){var k=s.exec(X.slice(Y));return k?(F.p=f.get(k[0].toLowerCase()),Y+k[0].length):-1}function M(F,X,Y){var k=d.exec(X.slice(Y));return k?(F.w=y.get(k[0].toLowerCase()),Y+k[0].length):-1}function E(F,X,Y){var k=l.exec(X.slice(Y));return k?(F.w=h.get(k[0].toLowerCase()),Y+k[0].length):-1}function T(F,X,Y){var k=b.exec(X.slice(Y));return k?(F.m=x.get(k[0].toLowerCase()),Y+k[0].length):-1}function j(F,X,Y){var k=v.exec(X.slice(Y));return k?(F.m=p.get(k[0].toLowerCase()),Y+k[0].length):-1}function $(F,X,Y){return S(F,t,X,Y)}function C(F,X,Y){return S(F,r,X,Y)}function R(F,X,Y){return S(F,n,X,Y)}function D(F){return o[F.getDay()]}function B(F){return a[F.getDay()]}function L(F){return c[F.getMonth()]}function U(F){return u[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function z(F){return 1+~~(F.getMonth()/3)}function K(F){return o[F.getUTCDay()]}function ce(F){return a[F.getUTCDay()]}function de(F){return c[F.getUTCMonth()]}function ke(F){return u[F.getUTCMonth()]}function kt(F){return i[+(F.getUTCHours()>=12)]}function Ce(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var X=g(F+="",w);return X.toString=function(){return F},X},parse:function(F){var X=_(F+="",!1);return X.toString=function(){return F},X},utcFormat:function(F){var X=g(F+="",O);return X.toString=function(){return F},X},utcParse:function(F){var X=_(F+="",!0);return X.toString=function(){return F},X}}}var Dy={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,ZP=/^%/,JP=/[\\^$*+?|[\]().{}]/g;function te(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function QP(e){return e.replace(JP,"\\$&")}function Yr(e){return new RegExp("^(?:"+e.map(QP).join("|")+")","i")}function Zr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function eT(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function tT(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function rT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function nT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function iT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ny(e,t,r){var n=Se.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function qy(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function aT(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function oT(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function uT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function By(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function cT(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Ly(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function fT(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function hT(e,t,r){var n=Se.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function pT(e,t,r){var n=ZP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function dT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function vT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Fy(e,t){return te(e.getDate(),t,2)}function yT(e,t){return te(e.getHours(),t,2)}function mT(e,t){return te(e.getHours()%12||12,t,2)}function gT(e,t){return te(1+Qn.count(yt(e),e),t,3)}function E0(e,t){return te(e.getMilliseconds(),t,3)}function bT(e,t){return E0(e,t)+"000"}function xT(e,t){return te(e.getMonth()+1,t,2)}function wT(e,t){return te(e.getMinutes(),t,2)}function OT(e,t){return te(e.getSeconds(),t,2)}function _T(e){var t=e.getDay();return t===0?7:t}function ST(e,t){return te(Ta.count(yt(e)-1,e),t,2)}function j0(e){var t=e.getDay();return t>=4||t===0?wr(e):wr.ceil(e)}function AT(e,t){return e=j0(e),te(wr.count(yt(e),e)+(yt(e).getDay()===4),t,2)}function PT(e){return e.getDay()}function TT(e,t){return te(qi.count(yt(e)-1,e),t,2)}function ET(e,t){return te(e.getFullYear()%100,t,2)}function jT(e,t){return e=j0(e),te(e.getFullYear()%100,t,2)}function MT(e,t){return te(e.getFullYear()%1e4,t,4)}function CT(e,t){var r=e.getDay();return e=r>=4||r===0?wr(e):wr.ceil(e),te(e.getFullYear()%1e4,t,4)}function $T(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function zy(e,t){return te(e.getUTCDate(),t,2)}function IT(e,t){return te(e.getUTCHours(),t,2)}function RT(e,t){return te(e.getUTCHours()%12||12,t,2)}function kT(e,t){return te(1+Pa.count(mt(e),e),t,3)}function M0(e,t){return te(e.getUTCMilliseconds(),t,3)}function DT(e,t){return M0(e,t)+"000"}function NT(e,t){return te(e.getUTCMonth()+1,t,2)}function qT(e,t){return te(e.getUTCMinutes(),t,2)}function BT(e,t){return te(e.getUTCSeconds(),t,2)}function LT(e){var t=e.getUTCDay();return t===0?7:t}function FT(e,t){return te(Ea.count(mt(e)-1,e),t,2)}function C0(e){var t=e.getUTCDay();return t>=4||t===0?Or(e):Or.ceil(e)}function zT(e,t){return e=C0(e),te(Or.count(mt(e),e)+(mt(e).getUTCDay()===4),t,2)}function WT(e){return e.getUTCDay()}function UT(e,t){return te(Bi.count(mt(e)-1,e),t,2)}function HT(e,t){return te(e.getUTCFullYear()%100,t,2)}function GT(e,t){return e=C0(e),te(e.getUTCFullYear()%100,t,2)}function KT(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function XT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Or(e):Or.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function VT(){return"+0000"}function Wy(){return"%"}function Uy(e){return+e}function Hy(e){return Math.floor(+e/1e3)}var or,$0,I0;YT({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function YT(e){return or=YP(e),$0=or.format,or.parse,I0=or.utcFormat,or.utcParse,or}function ZT(e){return new Date(e)}function JT(e){return e instanceof Date?+e:+new Date(+e)}function Jf(e,t,r,n,i,a,o,u,c,s){var f=qf(),l=f.invert,h=f.domain,d=s(".%L"),y=s(":%S"),v=s("%I:%M"),p=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(g){return(c(g)<g?d:u(g)<g?y:o(g)<g?v:a(g)<g?p:n(g)<g?i(g)<g?b:x:r(g)<g?w:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?h(Array.from(g,JT)):h().map(ZT)},f.ticks=function(g){var _=h();return e(_[0],_[_.length-1],g??10)},f.tickFormat=function(g,_){return _==null?m:s(_)},f.nice=function(g){var _=h();return(!g||typeof g.range!="function")&&(g=t(_[0],_[_.length-1],g??10)),g?h(b0(_,g)):f},f.copy=function(){return Jn(f,Jf(e,t,r,n,i,a,o,u,c,s))},f}function QT(){return Ke.apply(Jf(XP,VP,yt,Yf,Ta,Qn,Xf,Gf,Wt,$0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function eE(){return Ke.apply(Jf(GP,KP,mt,Zf,Ea,Pa,Vf,Kf,Wt,I0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ja(){var e=0,t=1,r,n,i,a,o=Me,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var d,y;return arguments.length?([d,y]=h,o=l(d,y),s):[o(0),o(1)]}}return s.range=f(zr),s.rangeRound=f(Nf),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function It(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function R0(){var e=$t(ja()(Me));return e.copy=function(){return It(e,R0())},wt.apply(e,arguments)}function k0(){var e=Ff(ja()).domain([1,10]);return e.copy=function(){return It(e,k0()).base(e.base())},wt.apply(e,arguments)}function D0(){var e=zf(ja());return e.copy=function(){return It(e,D0()).constant(e.constant())},wt.apply(e,arguments)}function Qf(){var e=Wf(ja());return e.copy=function(){return It(e,Qf()).exponent(e.exponent())},wt.apply(e,arguments)}function tE(){return Qf.apply(null,arguments).exponent(.5)}function N0(){var e=[],t=Me;function r(n){if(n!=null&&!isNaN(n=+n))return t((Yn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Et),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>DA(e,a/n))},r.copy=function(){return N0(t).domain(e)},wt.apply(r,arguments)}function Ma(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Me,f,l=!1,h;function d(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}d.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(v){return arguments.length?(l=!!v,d):l},d.interpolator=function(v){return arguments.length?(s=v,d):s};function y(v){return function(p){var b,x,w;return arguments.length?([b,x,w]=p,s=pP(v,[b,x,w]),d):[s(0),s(.5),s(1)]}}return d.range=y(zr),d.rangeRound=y(Nf),d.unknown=function(v){return arguments.length?(h=v,d):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function q0(){var e=$t(Ma()(Me));return e.copy=function(){return It(e,q0())},wt.apply(e,arguments)}function B0(){var e=Ff(Ma()).domain([.1,1,10]);return e.copy=function(){return It(e,B0()).base(e.base())},wt.apply(e,arguments)}function L0(){var e=zf(Ma());return e.copy=function(){return It(e,L0()).constant(e.constant())},wt.apply(e,arguments)}function eh(){var e=Wf(Ma());return e.copy=function(){return It(e,eh()).exponent(e.exponent())},wt.apply(e,arguments)}function rE(){return eh.apply(null,arguments).exponent(.5)}const Gy=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gn,scaleDiverging:q0,scaleDivergingLog:B0,scaleDivergingPow:eh,scaleDivergingSqrt:rE,scaleDivergingSymlog:L0,scaleIdentity:g0,scaleImplicit:yl,scaleLinear:Di,scaleLog:x0,scaleOrdinal:Rf,scalePoint:un,scalePow:Uf,scaleQuantile:_0,scaleQuantize:S0,scaleRadial:O0,scaleSequential:R0,scaleSequentialLog:k0,scaleSequentialPow:Qf,scaleSequentialQuantile:N0,scaleSequentialSqrt:tE,scaleSequentialSymlog:D0,scaleSqrt:DP,scaleSymlog:w0,scaleThreshold:A0,scaleTime:QT,scaleUtc:eE,tickFormat:m0},Symbol.toStringTag,{value:"Module"}));var us,Ky;function F0(){if(Ky)return us;Ky=1;var e=Nr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return us=t,us}var cs,Xy;function nE(){if(Xy)return cs;Xy=1;function e(t,r){return t>r}return cs=e,cs}var ss,Vy;function iE(){if(Vy)return ss;Vy=1;var e=F0(),t=nE(),r=Lr();function n(i){return i&&i.length?e(i,r,t):void 0}return ss=n,ss}var aE=iE();const Pt=ue(aE);var ls,Yy;function oE(){if(Yy)return ls;Yy=1;function e(t,r){return t<r}return ls=e,ls}var fs,Zy;function uE(){if(Zy)return fs;Zy=1;var e=F0(),t=oE(),r=Lr();function n(i){return i&&i.length?e(i,r,t):void 0}return fs=n,fs}var cE=uE();const Ca=ue(cE);var hs,Jy;function sE(){if(Jy)return hs;Jy=1;var e=yf(),t=Ct(),r=Xb(),n=Re();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return hs=i,hs}var ps,Qy;function lE(){if(Qy)return ps;Qy=1;var e=Gb(),t=sE();function r(n,i){return e(t(n,i),1)}return ps=r,ps}var fE=lE();const hE=ue(fE);var ds,em;function pE(){if(em)return ds;em=1;var e=jf();function t(r,n){return e(r,n)}return ds=t,ds}var dE=pE();const _n=ue(dE);var Wr=1e9,vE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},rh,le=!0,Ge="[DecimalError] ",Kt=Ge+"Invalid argument: ",th=Ge+"Exponent out of range: ",Ur=Math.floor,Lt=Math.pow,yE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qe,_e=1e7,se=7,z0=9007199254740991,Li=Ur(z0/se),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return dt(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ae(dt(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return ye(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(qe))throw Error(Ge+"NaN");if(r.s<1)throw Error(Ge+(r.s?"NaN":"-Infinity"));return r.eq(qe)?new n(0):(le=!1,t=dt(Sn(r,a),Sn(e,a),a),le=!0,ae(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?H0(t,e):W0(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ge+"NaN");return r.s?(le=!1,t=dt(r,e,0,1).times(e),le=!0,r.minus(t)):ae(new n(r),i)};W.naturalExponential=W.exp=function(){return U0(this)};W.naturalLogarithm=W.ln=function(){return Sn(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?W0(t,e):H0(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Kt+e);if(t=ye(i)+1,n=i.d.length-1,r=n*se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};W.squareRoot=W.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Ge+"NaN")}for(e=ye(u),le=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=tt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ur((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(dt(u,a,o+2)).times(.5),tt(a.d).slice(0,o)===(t=tt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return le=!0,ae(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=d.length,c<s&&(a=h,h=d,d=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+d[n]*h[i-n-1]+t,a[i--]=u%_e|0,t=u/_e|0;a[i]=(a[i]+t)%_e|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,le?ae(e,l.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(at(e,0,Wr),t===void 0?t=n.rounding:at(t,0,8),ae(r,e+ye(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Yt(n,!0):(at(e,0,Wr),t===void 0?t=i.rounding:at(t,0,8),n=ae(new i(n),e+1,t),r=Yt(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Yt(i):(at(e,0,Wr),t===void 0?t=a.rounding:at(t,0,8),n=ae(new a(i),e+ye(i)+1,t),r=Yt(n.abs(),!1,e+ye(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ae(new t(e),ye(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(qe);if(u=new c(u),!u.s){if(e.s<1)throw Error(Ge+"Infinity");return u}if(u.eq(qe))return u;if(n=c.precision,e.eq(qe))return ae(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=z0){for(i=new c(qe),t=Math.ceil(n/se+4),le=!1;r%2&&(i=i.times(u),rm(i.d,t)),r=Ur(r/2),r!==0;)u=u.times(u),rm(u.d,t);return le=!0,e.s<0?new c(qe).div(i):ae(i,n)}}else if(a<0)throw Error(Ge+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,le=!1,i=e.times(Sn(u,n+s)),le=!0,i=U0(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ye(i),n=Yt(i,r<=a.toExpNeg||r>=a.toExpPos)):(at(e,1,Wr),t===void 0?t=a.rounding:at(t,0,8),i=ae(new a(i),e,t),r=ye(i),n=Yt(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(at(e,1,Wr),t===void 0?t=n.rounding:at(t,0,8)),ae(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ye(e),r=e.constructor;return Yt(e,t<=r.toExpNeg||t>=r.toExpPos)};function W0(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),le?ae(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/se),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/_e|0,c[a]%=_e;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,le?ae(t,l):t}function at(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Kt+e)}function tt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=se-n.length,r&&(a+=St(r)),a+=n;o=e[t],n=o+"",r=se-n.length,r&&(a+=St(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var dt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%_e|0,o=a/_e|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*_e+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,d,y,v,p,b,x,w,O,m,g,_,S,A=n.constructor,M=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Ge+"Division by zero");for(c=n.e-i.e,_=T.length,m=E.length,d=new A(M),y=d.d=[],s=0;T[s]==(E[s]||0);)++s;if(T[s]>(E[s]||0)&&--c,a==null?x=a=A.precision:o?x=a+(ye(n)-ye(i))+1:x=a,x<0)return new A(0);if(x=x/se+2|0,s=0,_==1)for(f=0,T=T[0],x++;(s<m||f)&&x--;s++)w=f*_e+(E[s]||0),y[s]=w/T|0,f=w%T|0;else{for(f=_e/(T[0]+1)|0,f>1&&(T=e(T,f),E=e(E,f),_=T.length,m=E.length),O=_,v=E.slice(0,_),p=v.length;p<_;)v[p++]=0;S=T.slice(),S.unshift(0),g=T[0],T[1]>=_e/2&&++g;do f=0,u=t(T,v,_,p),u<0?(b=v[0],_!=p&&(b=b*_e+(v[1]||0)),f=b/g|0,f>1?(f>=_e&&(f=_e-1),l=e(T,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?S:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(T,v,_,p),u<1&&(f++,r(v,_<p?S:T,p))),p=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[p++]=E[O]||0:(v=[E[O]],p=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),d.e=c,ae(d,o?a+ye(d)+1:a)}})();function U0(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(ye(e)>16)throw Error(th+ye(e));if(!e.s)return new f(qe);for(le=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Lt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(qe),f.precision=u;;){if(i=ae(i.times(e),u),r=r.times(++c),o=a.plus(dt(i,r,u)),tt(o.d).slice(0,u)===tt(a.d).slice(0,u)){for(;s--;)a=ae(a.times(a),u);return f.precision=l,t==null?(le=!0,ae(a,l)):a}a=o}}function ye(e){for(var t=e.e*se,r=e.d[0];r>=10;r/=10)t++;return t}function vs(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(Ge+"LN10 precision limit exceeded");return ae(new e(e.LN10),t)}function St(e){for(var t="";e--;)t+="0";return t}function Sn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,d=e,y=d.d,v=d.constructor,p=v.precision;if(d.s<1)throw Error(Ge+(d.s?"NaN":"-Infinity"));if(d.eq(qe))return new v(0);if(t==null?(le=!1,s=p):s=t,d.eq(10))return t==null&&(le=!0),vs(v,s);if(s+=h,v.precision=s,r=tt(y),n=r.charAt(0),a=ye(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=tt(d.d),n=r.charAt(0),l++;a=ye(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return c=vs(v,s+2,p).times(a+""),d=Sn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=p,t==null?(le=!0,ae(d,p)):d;for(u=o=d=dt(d.minus(qe),d.plus(qe),s),f=ae(d.times(d),s),i=3;;){if(o=ae(o.times(f),s),c=u.plus(dt(o,new v(i),s)),tt(c.d).slice(0,s)===tt(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(vs(v,s+2,p).times(a+""))),u=dt(u,new v(l),s),v.precision=p,t==null?(le=!0,ae(u,p)):u;u=c,i+=2}}function tm(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ur(r/se),e.d=[],n=(r+1)%se,r<0&&(n+=se),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=se;n<i;)e.d.push(+t.slice(n,n+=se));t=t.slice(n),n=se-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),le&&(e.e>Li||e.e<-Li))throw Error(th+r)}else e.s=0,e.e=0,e.d=[0];return e}function ae(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=se,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/se),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=se,i=n-se+o}if(r!==void 0&&(a=Lt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Lt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ye(e),l.length=1,t=t-a-1,l[0]=Lt(10,(se-t%se)%se),e.e=Ur(-t/se)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Lt(10,se-n),l[f]=i>0?(s/Lt(10,o-i)%Lt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==_e&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=_e)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(le&&(e.e>Li||e.e<-Li))throw Error(th+ye(e));return e}function H0(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),le?ae(t,d):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(d/se),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=_e-1;--c[a],c[i]+=_e}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,le?ae(t,d):t):new h(0)}function Yt(e,t,r){var n,i=ye(e),a=tt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+St(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+St(-i-1)+a,r&&(n=r-o)>0&&(a+=St(n))):i>=o?(a+=St(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+St(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=St(n))),e.s<0?"-"+a:a}function rm(e,t){if(e.length>t)return e.length=t,!0}function G0(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Kt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return tm(o,a.toString())}else if(typeof a!="string")throw Error(Kt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,yE.test(a))tm(o,a);else throw Error(Kt+a)}if(i.prototype=W,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=G0,i.config=i.set=mE,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function mE(e){if(!e||typeof e!="object")throw Error(Ge+"Object expected");var t,r,n,i=["precision",1,Wr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ur(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Kt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Kt+r+": "+n);return this}var rh=G0(vE);qe=new rh(1);const ie=rh;function gE(e){return OE(e)||wE(e)||xE(e)||bE()}function bE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xE(e,t){if(e){if(typeof e=="string")return wl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wl(e,t)}}function wE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function OE(e){if(Array.isArray(e))return wl(e)}function wl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _E=function(t){return t},K0={},X0=function(t){return t===K0},nm=function(t){return function r(){return arguments.length===0||arguments.length===1&&X0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},SE=function e(t,r){return t===1?r:nm(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==K0}).length;return o>=t?r.apply(void 0,i):e(t-o,nm(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return X0(l)?c.shift():l});return r.apply(void 0,gE(f).concat(c))}))})},$a=function(t){return SE(t.length,t)},Ol=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},AE=$a(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),PE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return _E;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},_l=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},V0=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function TE(e){var t;return e===0?t=1:t=Math.floor(new ie(e).abs().log(10).toNumber())+1,t}function EE(e,t,r){for(var n=new ie(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var jE=$a(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),ME=$a(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),CE=$a(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ia={rangeStep:EE,getDigitCount:TE,interpolateNumber:jE,uninterpolateNumber:ME,uninterpolateTruncation:CE};function Sl(e){return RE(e)||IE(e)||Y0(e)||$E()}function $E(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function RE(e){if(Array.isArray(e))return Al(e)}function An(e,t){return NE(e)||DE(e,t)||Y0(e,t)||kE()}function kE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y0(e,t){if(e){if(typeof e=="string")return Al(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Al(e,t)}}function Al(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DE(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function NE(e){if(Array.isArray(e))return e}function Z0(e){var t=An(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function J0(e,t,r){if(e.lte(0))return new ie(0);var n=Ia.getDigitCount(e.toNumber()),i=new ie(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ie(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ie(Math.ceil(c))}function qE(e,t,r){var n=1,i=new ie(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ie(10).pow(Ia.getDigitCount(e)-1),i=new ie(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ie(Math.floor(e)))}else e===0?i=new ie(Math.floor((t-1)/2)):r||(i=new ie(Math.floor(e)));var o=Math.floor((t-1)/2),u=PE(AE(function(c){return i.add(new ie(c-o).mul(n)).toNumber()}),Ol);return u(0,t)}function Q0(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ie(0),tickMin:new ie(0),tickMax:new ie(0)};var a=J0(new ie(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ie(0):(o=new ie(e).add(t).div(2),o=o.sub(new ie(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ie(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Q0(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ie(u).mul(a)),tickMax:o.add(new ie(c).mul(a))})}function BE(e){var t=An(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=Z0([r,n]),c=An(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(Sl(Ol(0,i-1).map(function(){return 1/0}))):[].concat(Sl(Ol(0,i-1).map(function(){return-1/0})),[f]);return r>n?_l(l):l}if(s===f)return qE(s,i,a);var h=Q0(s,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=Ia.rangeStep(y,v.add(new ie(.1).mul(d)),d);return r>n?_l(p):p}function LE(e,t){var r=An(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Z0([n,i]),u=An(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=J0(new ie(s).sub(c).div(f-1),a,0),h=[].concat(Sl(Ia.rangeStep(new ie(c),new ie(s).sub(new ie(.99).mul(l)),l)),[s]);return n>i?_l(h):h}var FE=V0(BE),zE=V0(LE),WE="Invariant failed";function Zt(e,t){throw new Error(WE)}var UE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _r(e){"@babel/helpers - typeof";return _r=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},_r(e)}function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fi.apply(this,arguments)}function HE(e,t){return VE(e)||XE(e,t)||KE(e,t)||GE()}function GE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KE(e,t){if(e){if(typeof e=="string")return im(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return im(e,t)}}function im(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function VE(e){if(Array.isArray(e))return e}function YE(e,t){if(e==null)return{};var r=ZE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function JE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rx(n.key),n)}}function ej(e,t,r){return t&&QE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tj(e,t,r){return t=zi(t),rj(e,ex()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function rj(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nj(e)}function nj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ex(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ex=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function ij(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&&Pl(e,t)}function Pl(e,t){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pl(e,t)}function tx(e,t,r){return t=rx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rx(e){var t=aj(e,"string");return _r(t)=="symbol"?t:t+""}function aj(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ra=(function(e){function t(){return JE(this,t),tj(this,t,arguments)}return ij(t,e),ej(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=YE(n,UE),d=Z(h,!1);this.props.direction==="x"&&f.type!=="number"&&Zt();var y=c.map(function(v){var p=s(v,u),b=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var m=[],g,_;if(Array.isArray(O)){var S=HE(O,2);g=S[0],_=S[1]}else g=_=O;if(a==="vertical"){var A=f.scale,M=x+i,E=M+o,T=M-o,j=A(w-g),$=A(w+_);m.push({x1:$,y1:E,x2:$,y2:T}),m.push({x1:j,y1:M,x2:$,y2:M}),m.push({x1:j,y1:E,x2:j,y2:T})}else if(a==="horizontal"){var C=l.scale,R=b+i,D=R-o,B=R+o,L=C(w-g),U=C(w+_);m.push({x1:D,y1:U,x2:B,y2:U}),m.push({x1:R,y1:L,x2:R,y2:U}),m.push({x1:D,y1:L,x2:B,y2:L})}return P.createElement(fe,Fi({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),m.map(function(G){return P.createElement("line",Fi({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return P.createElement(fe,{className:"recharts-errorBars"},y)}}])})(P.Component);tx(Ra,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});tx(Ra,"displayName","ErrorBar");function Pn(e){"@babel/helpers - typeof";return Pn=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},Pn(e)}function am(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?am(Object(r),!0).forEach(function(n){oj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):am(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oj(e,t,r){return t=uj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uj(e){var t=cj(e,"string");return Pn(t)=="symbol"?t:t+""}function cj(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ne(r,hr);if(!o)return null;var u=hr.defaultProps,c=u!==void 0?qt(qt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?qt(qt({},h),l.props):{},y=d.dataKey,v=d.name,p=d.legendType,b=d.hide;return{inactive:b,dataKey:y,type:c.iconType||p||"square",color:nh(l),value:v||y,payload:d}}),qt(qt(qt({},c),hr.getWithHeight(o,i)),{},{payload:s,item:o})};function Tn(e){"@babel/helpers - typeof";return Tn=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},Tn(e)}function om(e){return hj(e)||fj(e)||lj(e)||sj()}function sj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lj(e,t){if(e){if(typeof e=="string")return Tl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tl(e,t)}}function fj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hj(e){if(Array.isArray(e))return Tl(e)}function Tl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?um(Object(r),!0).forEach(function(n){dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dr(e,t,r){return t=pj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pj(e){var t=dj(e,"string");return Tn(t)=="symbol"?t:t+""}function dj(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Be(e,t,r){return J(e)||J(t)?r:we(t)?He(e,t,r):V(t)?t(e):r}function cn(e,t,r,n){var i=hE(e,function(u){return Be(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[Ca(a),Pt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!J(u)}):i;return o.map(function(u){return we(u)||u instanceof Date?u:""})}var vj=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ze(l-f)!==Ze(h-l)){var y=[];if(Ze(h-l)===Ze(c[1]-c[0])){d=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+c[1]-c[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},nh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},yj=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var y=f[l[h]],v=y.items,p=y.cateAxisId,b=v.filter(function(_){return ht(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?pe(pe({},x),b[0].props):b[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var g=J(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:J(g)?void 0:Vt(g,n,0)})}}return o},mj=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Vt(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&d>0&&(h=!0,d*=.9,y=c*d);var v=(i-y)/2>>0,p={offset:v-s,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:p.offset+p.size+s,size:h?d:m.barSize}},_=[].concat(om(O),[g]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:p})}),_},l)}else{var b=Vt(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var _=[].concat(om(O),[{item:m.item,position:{offset:b+(x+s)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},gj=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=nx({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&q(t[d]))return pe(pe({},t),{},dr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&q(t[y]))return pe(pe({},t),{},dr({},y,t[y]+(h||0)))}return t},bj=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ix=function(t,r,n,i,a){var o=r.props.children,u=Je(o,Ra).filter(function(s){return bj(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Be(f,n);if(J(l))return s;var h=Array.isArray(l)?[Ca(l),Pt(l)]:[l,l],d=c.reduce(function(y,v){var p=Be(f,v,0),b=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},xj=function(t,r,n,i,a){var o=r.map(function(u){return ix(t,u,n,a,i)}).filter(function(u){return!J(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},ax=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&ix(t,c,s,i)||cn(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},ox=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},ux=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},ft=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ze(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!Br(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},ys=new WeakMap,li=function(t,r){if(typeof r!="function")return t;ys.has(t)||ys.set(t,new WeakMap);var n=ys.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},wj=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:gn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Di(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:un(),realScaleType:"point"}:a==="category"?{scale:gn(),realScaleType:"band"}:{scale:Di(),realScaleType:"linear"};if(Xt(i)){var c="scale".concat(ga(i));return{scale:(Gy[c]||un)(),realScaleType:Gy[c]?c:"point"}}return V(i)?{scale:i}:{scale:un(),realScaleType:"point"}},cm=1e-4,Oj=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-cm,o=Math.max(i[0],i[1])+cm,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},_j=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},Sj=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Aj=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=Br(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},Pj=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Br(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Tj={sign:Aj,expand:a1,none:vr,silhouette:o1,wiggle:u1,positive:Pj},Ej=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Tj[n],o=i1().keys(i).value(function(u,c){return+Be(u,c,0)}).order(rl).offset(a);return o(t)},jj=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?pe(pe({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(we(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Xn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return pe(pe({},l),{},dr({},b,x))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var b=d.stackGroups[p];return pe(pe({},v),{},dr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:Ej(t,b.items,a)}))},y)}return pe(pe({},l),{},dr({},h,d))},f)},Mj=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=FE(s,a,u);return t.domain([Ca(f),Pt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=zE(l,a,u);return{niceTicks:h}}return null};function sm(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!J(i[t.dataKey])){var u=yi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Be(i,J(o)?t.dataKey:o);return J(c)?null:t.scale(c)}var lm=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Be(o,r.dataKey,r.domain[u]);return J(c)?null:r.scale(c)-a/2+i},Cj=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},$j=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(we(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},Ij=function(t){return t.reduce(function(r,n){return[Ca(n.concat([r[0]]).filter(q)),Pt(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},cx=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=Ij(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},fm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,El=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(fm.test(t[0])){var a=+fm.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(hm.test(t[1])){var o=+hm.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Wi=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Cf(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},pm=function(t,r,n){return!t||!t.length||_n(t,He(n,"type.defaultProps.domain"))?r:t},sx=function(t,r){var n=t.type.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return pe(pe({},Z(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:nh(t),value:Be(r,i),type:c,payload:r,chartType:s,hide:f})};function En(e){"@babel/helpers - typeof";return En=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},En(e)}function dm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dm(Object(r),!0).forEach(function(n){Rj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rj(e,t,r){return t=kj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kj(e){var t=Dj(e,"string");return En(t)=="symbol"?t:t+""}function Dj(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ui=Math.PI/180,Nj=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-Ui*i)*n,y:r+Math.sin(-Ui*i)*n}},qj=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},Bj=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=qj({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:Nj(s),angleInRadian:s}},Lj=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},Fj=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},ym=function(t,r){var n=t.x,i=t.y,a=Bj({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=Lj(r),l=f.startAngle,h=f.endAngle,d=u,y;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;y=d>=h&&d<=l}return y?vm(vm({},r),{},{radius:o,angle:Fj(d,r)}):null};function jn(e){"@babel/helpers - typeof";return jn=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},jn(e)}var zj=["offset"];function Wj(e){return Kj(e)||Gj(e)||Hj(e)||Uj()}function Uj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hj(e,t){if(e){if(typeof e=="string")return jl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jl(e,t)}}function Gj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kj(e){if(Array.isArray(e))return jl(e)}function jl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xj(e,t){if(e==null)return{};var r=Vj(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mm(Object(r),!0).forEach(function(n){Yj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yj(e,t,r){return t=Zj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zj(e){var t=Jj(e,"string");return jn(t)=="symbol"?t:t+""}function Jj(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mn.apply(this,arguments)}var Qj=function(t){var r=t.value,n=t.formatter,i=J(t.children)?r:t.children;return V(n)?n(i):i},eM=function(t,r){var n=Ze(r-t),i=Math.min(Math.abs(r-t),360);return n*i},tM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,d=c.startAngle,y=c.endAngle,v=c.clockWise,p=(l+h)/2,b=eM(d,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=d+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var m=Pe(s,f,p,w),g=Pe(s,f,p,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
27
+ A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
28
+ `).concat(g.x,",").concat(g.y),S=J(t.id)?Xn("recharts-radial-line-"):t.id;return P.createElement("text",Mn({},n,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:_})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},rM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=Pe(o,u,s+n,h),y=d.x,v=d.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var p=(c+s)/2,b=Pe(o,u,p,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},nM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,p=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return xe(xe({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return xe(xe({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return xe(xe({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return xe(xe({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?xe({x:u+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?xe({x:u+s-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?xe({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?xe({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?xe({x:u+p,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?xe({x:u+s-p,y:c+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?xe({x:u+p,y:c+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?xe({x:u+s-p,y:c+f-h,textAnchor:b,verticalAnchor:d},_):qr(a)&&(q(a.x)||Ft(a.x))&&(q(a.y)||Ft(a.y))?xe({x:u+Vt(a.x,s),y:c+Vt(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):xe({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},iM=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=Xj(e,zj),i=xe({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||J(u)&&J(c)&&!N.isValidElement(s)&&!V(s))return null;if(N.isValidElement(s))return N.cloneElement(s,i);var d;if(V(s)){if(d=N.createElement(s,i),N.isValidElement(d))return d}else d=Qj(i);var y=iM(a),v=Z(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return tM(i,d,v);var p=y?rM(i):nM(i);return P.createElement(ji,Mn({className:ee("recharts-label",l)},v,p,{breakAll:h}),d)}Ee.displayName="Label";var lx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,y=t.left,v=t.width,p=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(p)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:p};if(q(d)&&q(y))return{x:d,y,width:v,height:p}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},aM=function(t,r){return t?t===!0?P.createElement(Ee,{key:"label-implicit",viewBox:r}):we(t)?P.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):V(t)?P.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):qr(t)?P.createElement(Ee,Mn({viewBox:r},t,{key:"label-implicit"})):null:null},oM=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=lx(t),o=Je(i,Ee).map(function(c,s){return N.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=aM(t.label,r||a);return[u].concat(Wj(o))};Ee.parseViewBox=lx;Ee.renderCallByParent=oM;var ms,gm;function uM(){if(gm)return ms;gm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ms=e,ms}var cM=uM();const sM=ue(cM);function Cn(e){"@babel/helpers - typeof";return Cn=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},Cn(e)}var lM=["valueAccessor"],fM=["data","dataKey","clockWise","id","textBreakAll"];function hM(e){return yM(e)||vM(e)||dM(e)||pM()}function pM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dM(e,t){if(e){if(typeof e=="string")return Ml(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ml(e,t)}}function vM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yM(e){if(Array.isArray(e))return Ml(e)}function Ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hi.apply(this,arguments)}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){mM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mM(e,t,r){return t=gM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gM(e){var t=bM(e,"string");return Cn(t)=="symbol"?t:t+""}function bM(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wm(e,t){if(e==null)return{};var r=xM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var wM=function(t){return Array.isArray(t.value)?sM(t.value):t.value};function jt(e){var t=e.valueAccessor,r=t===void 0?wM:t,n=wm(e,lM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=wm(n,fM);return!i||!i.length?null:P.createElement(fe,{className:"recharts-label-list"},i.map(function(f,l){var h=J(a)?r(f,l):Be(f&&f.payload,a),d=J(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement(Ee,Hi({},Z(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ee.parseViewBox(J(o)?f:xm(xm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}jt.displayName="LabelList";function OM(e,t){return e?e===!0?P.createElement(jt,{key:"labelList-implicit",data:t}):P.isValidElement(e)||V(e)?P.createElement(jt,{key:"labelList-implicit",data:t,content:e}):qr(e)?P.createElement(jt,Hi({data:t},e,{key:"labelList-implicit"})):null:null}function _M(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Je(n,jt).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=OM(e.label,t);return[a].concat(hM(i))}jt.renderCallByParent=_M;function $n(e){"@babel/helpers - typeof";return $n=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},$n(e)}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function Om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Om(Object(r),!0).forEach(function(n){SM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SM(e,t,r){return t=AM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AM(e){var t=PM(e,"string");return $n(t)=="symbol"?t:t+""}function PM(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TM=function(t,r){var n=Ze(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},fi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/Ui,h=s?a:a+o*l,d=Pe(r,n,f,h),y=Pe(r,n,i,h),v=s?a-o*l:a,p=Pe(r,n,f*Math.cos(l*Ui),v);return{center:d,circleTangency:y,lineTangency:p,theta:l}},fx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=TM(o,u),s=o+c,f=Pe(r,n,a,o),l=Pe(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
30
+ A `).concat(a,",").concat(a,`,0,
31
+ `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
32
+ `).concat(l.x,",").concat(l.y,`
33
+ `);if(i>0){var d=Pe(r,n,i,o),y=Pe(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,`
34
+ A `).concat(i,",").concat(i,`,0,
35
+ `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
36
+ `).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},EM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Ze(f-s),h=fi({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,y=h.lineTangency,v=h.theta,p=fi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=p.circleTangency,x=p.lineTangency,w=p.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
37
+ a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
38
+ a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
39
+ `):fx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
40
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
41
+ A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
42
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
43
+ `);if(i>0){var g=fi({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=g.circleTangency,S=g.lineTangency,A=g.theta,M=fi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=M.circleTangency,T=M.lineTangency,j=M.theta,$=c?Math.abs(s-f):Math.abs(s-f)-A-j;if($<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
44
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,`
45
+ A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
46
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},jM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},hx=function(t){var r=_m(_m({},jM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var d=ee("recharts-sector",h),y=o-a,v=Vt(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=EM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=fx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",Cl({},Z(r,!0),{className:d,d:p,role:"img"}))};function In(e){"@babel/helpers - typeof";return In=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},In(e)}function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$l.apply(this,arguments)}function Sm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Am(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(r),!0).forEach(function(n){MM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MM(e,t,r){return t=CM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CM(e){var t=$M(e,"string");return In(t)=="symbol"?t:t+""}function $M(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pm={curveBasisClosed:KO,curveBasisOpen:XO,curveBasis:GO,curveBumpX:$O,curveBumpY:IO,curveLinearClosed:VO,curveLinear:xa,curveMonotoneX:YO,curveMonotoneY:ZO,curveNatural:JO,curveStep:QO,curveStepAfter:t1,curveStepBefore:e1},hi=function(t){return t.x===+t.x&&t.y===+t.y},Jr=function(t){return t.x},Qr=function(t){return t.y},IM=function(t,r){if(V(t))return t;var n="curve".concat(ga(t));return(n==="curveMonotone"||n==="curveBump")&&r?Pm["".concat(n).concat(r==="vertical"?"Y":"X")]:Pm[n]||xa},RM=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=IM(n,u),l=s?a.filter(function(v){return hi(v)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(v){return hi(v)}):o,y=l.map(function(v,p){return Am(Am({},v),{},{base:d[p]})});return u==="vertical"?h=ri().y(Qr).x1(Jr).x0(function(v){return v.base.x}):h=ri().x(Jr).y1(Qr).y0(function(v){return v.base.y}),h.defined(hi).curve(f),h(y)}return u==="vertical"&&q(o)?h=ri().y(Qr).x1(Jr).x0(o):q(o)?h=ri().x(Jr).y1(Qr).y0(o):h=vb().x(Jr).y(Qr),h.defined(hi).curve(f),h(l)},sn=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?RM(t):i;return N.createElement("path",$l({},Z(t,!1),mi(t),{className:ee("recharts-curve",r),d:o,ref:a}))},gs={exports:{}},bs,Tm;function kM(){if(Tm)return bs;Tm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bs=e,bs}var xs,Em;function DM(){if(Em)return xs;Em=1;var e=kM();function t(){}function r(){}return r.resetWarningCache=t,xs=function(){function n(o,u,c,s,f,l){if(l!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},xs}var jm;function NM(){return jm||(jm=1,gs.exports=DM()()),gs.exports}var qM=NM();const ne=ue(qM),{getOwnPropertyNames:BM,getOwnPropertySymbols:LM}=Object,{hasOwnProperty:FM}=Object.prototype;function ws(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function pi(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function zM(e){return e!=null?e[Symbol.toStringTag]:void 0}function Mm(e){return BM(e).concat(LM(e))}const WM=Object.hasOwn||((e,t)=>FM.call(e,t));function rr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const UM="__v",HM="__o",GM="_owner",{getOwnPropertyDescriptor:Cm,keys:$m}=Object;function KM(e,t){return e.byteLength===t.byteLength&&Gi(new Uint8Array(e),new Uint8Array(t))}function XM(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function VM(e,t){return e.byteLength===t.byteLength&&Gi(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function YM(e,t){return rr(e.getTime(),t.getTime())}function ZM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function JM(e,t){return e===t}function Im(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,d=u.value;if(r.equals(h[0],d[0],c,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const QM=rr;function eC(e,t,r){const n=$m(e);let i=n.length;if($m(t).length!==i)return!1;for(;i-- >0;)if(!px(e,t,r,n[i]))return!1;return!0}function en(e,t,r){const n=Mm(e);let i=n.length;if(Mm(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!px(e,t,r,a)||(o=Cm(e,a),u=Cm(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function tC(e,t){return rr(e.valueOf(),t.valueOf())}function rC(e,t){return e.source===t.source&&e.flags===t.flags}function Rm(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function Gi(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function nC(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function px(e,t,r,n){return(n===GM||n===HM||n===UM)&&(e.$$typeof||t.$$typeof)?!0:WM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const iC="[object ArrayBuffer]",aC="[object Arguments]",oC="[object Boolean]",uC="[object DataView]",cC="[object Date]",sC="[object Error]",lC="[object Map]",fC="[object Number]",hC="[object Object]",pC="[object RegExp]",dC="[object Set]",vC="[object String]",yC={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},mC="[object URL]",gC=Object.prototype.toString;function bC({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:d,unknownTagComparators:y}){return function(p,b,x){if(p===b)return!0;if(p==null||b==null)return!1;const w=typeof p;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(p,b,x):w==="function"?a(p,b,x):!1;const O=p.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(p,b,x);if(Array.isArray(p))return t(p,b,x);if(O===Date)return n(p,b,x);if(O===RegExp)return f(p,b,x);if(O===Map)return o(p,b,x);if(O===Set)return l(p,b,x);const m=gC.call(p);if(m===cC)return n(p,b,x);if(m===pC)return f(p,b,x);if(m===lC)return o(p,b,x);if(m===dC)return l(p,b,x);if(m===hC)return typeof p.then!="function"&&typeof b.then!="function"&&c(p,b,x);if(m===mC)return d(p,b,x);if(m===sC)return i(p,b,x);if(m===aC)return c(p,b,x);if(yC[m])return h(p,b,x);if(m===iC)return e(p,b,x);if(m===uC)return r(p,b,x);if(m===oC||m===fC||m===vC)return s(p,b,x);if(y){let g=y[m];if(!g){const _=zM(p);_&&(g=y[_])}if(g)return g(p,b,x)}return!1}}function xC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:KM,areArraysEqual:r?en:XM,areDataViewsEqual:VM,areDatesEqual:YM,areErrorsEqual:ZM,areFunctionsEqual:JM,areMapsEqual:r?ws(Im,en):Im,areNumbersEqual:QM,areObjectsEqual:r?en:eC,arePrimitiveWrappersEqual:tC,areRegExpsEqual:rC,areSetsEqual:r?ws(Rm,en):Rm,areTypedArraysEqual:r?ws(Gi,en):Gi,areUrlsEqual:nC,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=pi(n.areArraysEqual),a=pi(n.areMapsEqual),o=pi(n.areObjectsEqual),u=pi(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function wC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function OC({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const _C=Rt();Rt({strict:!0});Rt({circular:!0});Rt({circular:!0,strict:!0});Rt({createInternalComparator:()=>rr});Rt({strict:!0,createInternalComparator:()=>rr});Rt({circular:!0,createInternalComparator:()=>rr});Rt({circular:!0,createInternalComparator:()=>rr,strict:!0});function Rt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=xC(e),o=bC(a),u=r?r(o):wC(o);return OC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function SC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function km(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):SC(i)};requestAnimationFrame(n)}function Il(e){"@babel/helpers - typeof";return Il=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},Il(e)}function AC(e){return jC(e)||EC(e)||TC(e)||PC()}function PC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TC(e,t){if(e){if(typeof e=="string")return Dm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dm(e,t)}}function Dm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function EC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jC(e){if(Array.isArray(e))return e}function MC(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=AC(o),c=u[0],s=u.slice(1);if(typeof c=="number"){km(i.bind(null,s),c);return}i(c),km(i.bind(null,s));return}Il(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function Nm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nm(Object(r),!0).forEach(function(n){dx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dx(e,t,r){return t=CC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=$C(e,"string");return Rn(t)==="symbol"?t:String(t)}function $C(e,t){if(Rn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},RC=function(t){return t},kC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ln=function(t,r){return Object.keys(r).reduce(function(n,i){return qm(qm({},n),{},dx({},i,t(i,r[i])))},{})},Bm=function(t,r,n){return t.map(function(i){return"".concat(kC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function DC(e,t){return BC(e)||qC(e,t)||vx(e,t)||NC()}function NC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function BC(e){if(Array.isArray(e))return e}function LC(e){return WC(e)||zC(e)||vx(e)||FC()}function FC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vx(e,t){if(e){if(typeof e=="string")return Rl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rl(e,t)}}function zC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WC(e){if(Array.isArray(e))return Rl(e)}function Rl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ki=1e-4,yx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},mx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Lm=function(t,r){return function(n){var i=yx(t,r);return mx(i,n)}},UC=function(t,r){return function(n){var i=yx(t,r),a=[].concat(LC(i.map(function(o,u){return o*u}).slice(1)),[0]);return mx(a,n)}},Fm=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=DC(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Lm(i,o),h=Lm(a,u),d=UC(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var m=l(w)-x,g=d(w);if(Math.abs(m-x)<Ki||g<Ki)return h(w);w=y(w-m/g)}return h(w)};return v.isStepper=!1,v},HC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var d=-(f-l)*n,y=h*a,v=h+(d-y)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<Ki&&Math.abs(v)<Ki?[l,0]:[p,v]};return c.isStepper=!0,c.dt=u,c},GC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Fm(i);case"spring":return HC();default:if(i.split("(")[0]==="cubic-bezier")return Fm(i)}return typeof i=="function"?i:null};function kn(e){"@babel/helpers - typeof";return kn=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},kn(e)}function zm(e){return VC(e)||XC(e)||gx(e)||KC()}function KC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VC(e){if(Array.isArray(e))return Dl(e)}function Wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wm(Object(r),!0).forEach(function(n){kl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kl(e,t,r){return t=YC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YC(e){var t=ZC(e,"string");return kn(t)==="symbol"?t:String(t)}function ZC(e,t){if(kn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JC(e,t){return t$(e)||e$(e,t)||gx(e,t)||QC()}function QC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gx(e,t){if(e){if(typeof e=="string")return Dl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dl(e,t)}}function Dl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function e$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function t$(e){if(Array.isArray(e))return e}var Xi=function(t,r,n){return t+(r-t)*n},Nl=function(t){var r=t.from,n=t.to;return r!==n},r$=function e(t,r,n){var i=ln(function(a,o){if(Nl(o)){var u=t(o.from,o.to,o.velocity),c=JC(u,2),s=c[0],f=c[1];return Ae(Ae({},o),{},{from:s,velocity:f})}return o},r);return n<1?ln(function(a,o){return Nl(o)?Ae(Ae({},o),{},{velocity:Xi(o.velocity,i[a].velocity,n),from:Xi(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const n$=(function(e,t,r,n,i){var a=IC(e,t),o=a.reduce(function(p,b){return Ae(Ae({},p),{},kl({},b,[e[b],t[b]]))},{}),u=a.reduce(function(p,b){return Ae(Ae({},p),{},kl({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return ln(function(b,x){return x.from},u)},d=function(){return!Object.values(u).filter(Nl).length},y=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=r$(r,u,w),i(Ae(Ae(Ae({},e),t),h())),s=b,d()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=ln(function(m,g){return Xi.apply(void 0,zm(g).concat([r(x)]))},o);if(i(Ae(Ae(Ae({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=ln(function(m,g){return Xi.apply(void 0,zm(g).concat([r(1)]))},o);i(Ae(Ae(Ae({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}var i$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function a$(e,t){if(e==null)return{};var r=o$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Os(e){return l$(e)||s$(e)||c$(e)||u$()}function u$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
52
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c$(e,t){if(e){if(typeof e=="string")return ql(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ql(e,t)}}function s$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l$(e){if(Array.isArray(e))return ql(e)}function ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Um(Object(r),!0).forEach(function(n){an(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function an(e,t,r){return t=bx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bx(n.key),n)}}function p$(e,t,r){return t&&h$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bx(e){var t=d$(e,"string");return Sr(t)==="symbol"?t:String(t)}function d$(e,t){if(Sr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v$(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&&Bl(e,t)}function Bl(e,t){return Bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bl(e,t)}function y$(e){var t=m$();return function(){var n=Vi(e),i;if(t){var a=Vi(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Ll(this,i)}}function Ll(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fl(e)}function Fl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m$(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}var gt=(function(e){v$(r,e);var t=y$(r);function r(n,i){var a;f$(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Fl(a)),a.changeStyle=a.changeStyle.bind(Fl(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Ll(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},Ll(a);a.state={style:c?an({},c,s):s}}else a.state={style:{}};return a}return p$(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var d={style:c?an({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(_C(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&h){var p={style:c?an({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(p)}this.runAnimation(Xe(Xe({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,d=n$(o,u,GC(s),c,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([h,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,d=function(v,p,b){if(b===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,m=p.style,g=p.properties,_=p.onAnimationEnd,S=b>0?o[b-1]:p,A=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Os(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:O}),x]);var M=Bm(A,x,O),E=Xe(Xe(Xe({},S.style),m),{},{transition:M});return[].concat(Os(v),[E,x,_]).filter(RC)};return this.manager.start([c].concat(Os(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=MC());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?an({},u,c):c,p=Bm(Object.keys(v),o,s);y.start([f,a,Xe(Xe({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=a$(i,i$),s=N.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(d){var y=d.props,v=y.style,p=v===void 0?{}:v,b=y.className,x=N.cloneElement(d,Xe(Xe({},c),{},{style:Xe(Xe({},p),f),className:b}));return x};return s===1?l(N.Children.only(a)):P.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);gt.displayName="Animate";gt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};gt.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};function Dn(e){"@babel/helpers - typeof";return Dn=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},Dn(e)}function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yi.apply(this,arguments)}function g$(e,t){return O$(e)||w$(e,t)||x$(e,t)||b$()}function b$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x$(e,t){if(e){if(typeof e=="string")return Hm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hm(e,t)}}function Hm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function O$(e){if(Array.isArray(e))return e}function Gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Km(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(r),!0).forEach(function(n){_$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _$(e,t,r){return t=S$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S$(e){var t=A$(e,"string");return Dn(t)=="symbol"?t:t+""}function A$(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xm=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
54
+ `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
55
+ `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
56
+ `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
57
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
58
+ L `).concat(t+n-c*y,",").concat(r,`
59
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
60
+ L `).concat(t+n,",").concat(r+i-u*y,`
61
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
62
+ L `).concat(t+c*y,",").concat(r+i,`
63
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},P$=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},T$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ih=function(t){var r=Km(Km({},T$),t),n=N.useRef(),i=N.useState(-1),a=g$(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=ee("recharts-rectangle",d);return x?P.createElement(gt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,g=O.height,_=O.x,S=O.y;return P.createElement(gt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:b,easing:y},P.createElement("path",Yi({},Z(r,!0),{className:w,d:Xm(_,S,m,g,h),ref:n})))}):P.createElement("path",Yi({},Z(r,!0),{className:w,d:Xm(c,s,f,l,h)}))};function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zl.apply(this,arguments)}var ah=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ee("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",zl({},Z(t,!1),mi(t),{className:o,cx:r,cy:n,r:i})):null};function Nn(e){"@babel/helpers - typeof";return Nn=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},Nn(e)}var E$=["x","y","top","left","width","height","className"];function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wl.apply(this,arguments)}function Vm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(r),!0).forEach(function(n){M$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M$(e,t,r){return t=C$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C$(e){var t=$$(e,"string");return Nn(t)=="symbol"?t:t+""}function $$(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I$(e,t){if(e==null)return{};var r=R$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var k$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},D$=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,y=t.className,v=I$(t,E$),p=j$({x:n,y:a,top:u,left:s,width:l,height:d},v);return!q(n)||!q(a)||!q(l)||!q(d)||!q(u)||!q(s)?null:P.createElement("path",Wl({},Z(p,!0),{className:ee("recharts-cross",y),d:k$(n,a,l,d,u,s)}))},_s,Ym;function N$(){if(Ym)return _s;Ym=1;var e=qb(),t=e(Object.getPrototypeOf,Object);return _s=t,_s}var Ss,Zm;function q$(){if(Zm)return Ss;Zm=1;var e=bt(),t=N$(),r=xt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return Ss=s,Ss}var B$=q$();const L$=ue(B$);var As,Jm;function F$(){if(Jm)return As;Jm=1;var e=bt(),t=xt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return As=n,As}var z$=F$();const W$=ue(z$);function qn(e){"@babel/helpers - typeof";return qn=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},qn(e)}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}function U$(e,t){return X$(e)||K$(e,t)||G$(e,t)||H$()}function H$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G$(e,t){if(e){if(typeof e=="string")return Qm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qm(e,t)}}function Qm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function X$(e){if(Array.isArray(e))return e}function eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(r),!0).forEach(function(n){V$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V$(e,t,r){return t=Y$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e){var t=Z$(e,"string");return qn(t)=="symbol"?t:t+""}function Z$(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rg=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},J$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Q$=function(t){var r=tg(tg({},J$),t),n=N.useRef(),i=N.useState(-1),a=U$(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=ee("recharts-trapezoid",d);return b?P.createElement(gt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,m=w.lowerWidth,g=w.height,_=w.x,S=w.y;return P.createElement(gt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},P.createElement("path",Zi({},Z(r,!0),{className:x,d:rg(_,S,O,m,g),ref:n})))}):P.createElement("g",null,P.createElement("path",Zi({},Z(r,!0),{className:x,d:rg(c,s,f,l,h)})))},eI=["option","shapeType","propTransformer","activeClassName","isActive"];function Bn(e){"@babel/helpers - typeof";return Bn=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},Bn(e)}function tI(e,t){if(e==null)return{};var r=rI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ji(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ng(Object(r),!0).forEach(function(n){nI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ng(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nI(e,t,r){return t=iI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iI(e){var t=aI(e,"string");return Bn(t)=="symbol"?t:t+""}function aI(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oI(e,t){return Ji(Ji({},t),e)}function uI(e,t){return e==="symbols"}function ig(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(ih,r);case"trapezoid":return P.createElement(Q$,r);case"sector":return P.createElement(hx,r);case"symbols":if(uI(t))return P.createElement(_f,r);break;default:return null}}function cI(e){return N.isValidElement(e)?e.props:e}function sI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?oI:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=tI(e,eI),s;if(N.isValidElement(t))s=N.cloneElement(t,Ji(Ji({},c),cI(t)));else if(V(t))s=t(c);else if(L$(t)&&!W$(t)){var f=i(t,c);s=P.createElement(ig,{shapeType:r,elementProps:f})}else{var l=c;s=P.createElement(ig,{shapeType:r,elementProps:l})}return u?P.createElement(fe,{className:o},s):s}function ka(e,t){return t!=null&&"trapezoids"in e.props}function Da(e,t){return t!=null&&"sectors"in e.props}function Ln(e,t){return t!=null&&"points"in e.props}function lI(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function fI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function hI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function pI(e,t){var r;return ka(e,t)?r=lI:Da(e,t)?r=fI:Ln(e,t)&&(r=hI),r}function dI(e,t){var r;return ka(e,t)?r="trapezoids":Da(e,t)?r="sectors":Ln(e,t)&&(r="points"),r}function vI(e,t){if(ka(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Da(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Ln(e,t)?t.payload:{}}function yI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=dI(r,t),a=vI(r,t),o=n.filter(function(c,s){var f=_n(a,c),l=r.props[i].filter(function(y){var v=pI(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var Ps,ag;function mI(){if(ag)return Ps;ag=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return Ps=r,Ps}var Ts,og;function xx(){if(og)return Ts;og=1;var e=e0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Ts=n,Ts}var Es,ug;function gI(){if(ug)return Es;ug=1;var e=mI(),t=Sa(),r=xx();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Es=n,Es}var js,cg;function bI(){if(cg)return js;cg=1;var e=gI(),t=e();return js=t,js}var xI=bI();const Qi=ue(xI);function Fn(e){"@babel/helpers - typeof";return Fn=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},Fn(e)}function sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){wx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wx(e,t,r){return t=wI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wI(e){var t=OI(e,"string");return Fn(t)=="symbol"?t:t+""}function OI(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _I=["Webkit","Moz","O","ms"],SI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=_I.reduce(function(a,o){return lg(lg({},a),{},wx({},o+n,r))},{});return i[t]=r,i};function Ar(e){"@babel/helpers - typeof";return Ar=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},Ar(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}function fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ms(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fg(Object(r),!0).forEach(function(n){De(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_x(n.key),n)}}function PI(e,t,r){return t&&hg(e.prototype,t),r&&hg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TI(e,t,r){return t=ta(t),EI(e,Ox()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function EI(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jI(e)}function jI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ox(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ox=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(e)}function MI(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&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function De(e,t,r){return t=_x(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _x(e){var t=CI(e,"string");return Ar(t)=="symbol"?t:t+""}function CI(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $I=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=un().domain(Qi(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},pg=function(t){return t.changedTouches&&!!t.changedTouches.length},Pr=(function(e){function t(r){var n;return AI(this,t),n=TI(this,t,[r]),De(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),De(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),De(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),De(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),De(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),De(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),De(n,"handleSlideDragStart",function(i){var a=pg(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return MI(t,e),PI(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:d-d%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Be(a[n],u,n);return V(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,d=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=pg(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-d-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,m=w.endIndex,g=function(){var S=p.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===S||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===S};this.setState(De(De({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(De({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return P.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=N.Children.only(s);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,d=c.ariaLabel,y=c.data,v=c.startIndex,p=c.endIndex,b=Math.max(n,this.props.x),x=Ms(Ms({},Z(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return P.createElement(fe,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,d=5,y={pointerEvents:"none",fill:s};return P.createElement(fe,{className:"recharts-brush-texts"},P.createElement(ji,ea({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(ji,ea({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,y=h.endX,v=h.isTextActive,p=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=ee("recharts-brush",a),O=P.Children.count(o)===1,m=SI("userSelect","none");return P.createElement(fe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),P.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):V(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Ms({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?$I({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(N.PureComponent);De(Pr,"displayName","Brush");De(Pr,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Cs,dg;function II(){if(dg)return Cs;dg=1;var e=Mf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Cs=t,Cs}var $s,vg;function RI(){if(vg)return $s;vg=1;var e=Cb(),t=Ct(),r=II(),n=Re(),i=Sa();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return $s=a,$s}var kI=RI();const DI=ue(kI);var it=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Is,yg;function NI(){if(yg)return Is;yg=1;var e=Vb();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Is=t,Is}var Rs,mg;function qI(){if(mg)return Rs;mg=1;var e=NI(),t=Kb(),r=Ct();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return Rs=n,Rs}var BI=qI();const LI=ue(BI);var ks,gg;function FI(){if(gg)return ks;gg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return ks=e,ks}var Ds,bg;function zI(){if(bg)return Ds;bg=1;var e=Mf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Ds=t,Ds}var Ns,xg;function WI(){if(xg)return Ns;xg=1;var e=FI(),t=zI(),r=Ct(),n=Re(),i=Sa();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Ns=a,Ns}var UI=WI();const Sx=ue(UI);var HI=["x","y"];function zn(e){"@babel/helpers - typeof";return zn=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},zn(e)}function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hl.apply(this,arguments)}function wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){GI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GI(e,t,r){return t=KI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KI(e){var t=XI(e,"string");return zn(t)=="symbol"?t:t+""}function XI(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VI(e,t){if(e==null)return{};var r=YI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ZI(e,t){var r=e.x,n=e.y,i=VI(e,HI),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return tn(tn(tn(tn(tn({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function Og(e){return P.createElement(sI,Hl({shapeType:"rectangle",propTransformer:ZI,activeClassName:"recharts-active-bar"},e))}var JI=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||Qw(n);return a?t(n,i):(a||Zt(),r)}},QI=["value","background"],Ax;function Tr(e){"@babel/helpers - typeof";return Tr=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},Tr(e)}function eR(e,t){if(e==null)return{};var r=tR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}function _g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tx(n.key),n)}}function nR(e,t,r){return t&&Sg(e.prototype,t),r&&Sg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iR(e,t,r){return t=na(t),aR(e,Px()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function aR(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oR(e)}function oR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Px=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function uR(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&&Gl(e,t)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gl(e,t)}function Tt(e,t,r){return t=Tx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tx(e){var t=cR(e,"string");return Tr(t)=="symbol"?t:t+""}function cR(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hr=(function(e){function t(){var r;rR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=iR(this,t,[].concat(i)),Tt(r,"state",{isAnimationFinished:!1}),Tt(r,"id",Xn("recharts-bar-")),Tt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Tt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return uR(t,e),nR(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=Z(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=ve(ve(ve({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(fe,ra({className:"recharts-bar-rectangle"},gi(i.props,l,h),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(h)}),P.createElement(Og,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return P.createElement(gt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,v=a.map(function(p,b){var x=h&&h[b];if(x){var w=We(x.x,p.x),O=We(x.y,p.y),m=We(x.width,p.width),g=We(x.height,p.height);return ve(ve({},p),{},{x:w(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var _=We(0,p.height),S=_(y);return ve(ve({},p),{},{y:p.y+p.height-S,height:S})}var A=We(0,p.width),M=A(y);return ve(ve({},p),{},{width:M})});return P.createElement(fe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!_n(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=Z(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=eR(s,QI);if(!l)return null;var d=ve(ve(ve(ve(ve({},h),{},{fill:"#eee"},l),c),gi(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(Og,ra({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Je(f,Ra);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,b){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:Be(p,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(fe,y,l.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,b=ee("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=J(v)?this.id:v;return P.createElement(fe,{className:b},x||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,P.createElement(fe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!d||p)&&jt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);Ax=Hr;Tt(Hr,"displayName","Bar");Tt(Hr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Fr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Tt(Hr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=_j(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?ve(ve({},v),r.props):r.props,b=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,g=Cj({numericAxis:O}),_=Je(x,r0),S=l.map(function(A,M){var E,T,j,$,C,R;s?E=Sj(s[f+M],m):(E=Be(A,b),Array.isArray(E)||(E=[g,E]));var D=JI(w,Ax.defaultProps.minPointSize)(E[1],M);if(y==="horizontal"){var B,L=[o.scale(E[0]),o.scale(E[1])],U=L[0],G=L[1];T=lm({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:A,index:M}),j=(B=G??U)!==null&&B!==void 0?B:void 0,$=d.size;var z=U-G;if(C=Number.isNaN(z)?0:z,R={x:T,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var K=Ze(C||D)*(Math.abs(D)-Math.abs(C));j-=K,C+=K}}else{var ce=[a.scale(E[0]),a.scale(E[1])],de=ce[0],ke=ce[1];if(T=de,j=lm({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:A,index:M}),$=ke-de,C=d.size,R={x:a.x,y:j,width:a.width,height:C},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var kt=Ze($||D)*(Math.abs(D)-Math.abs($));$+=kt}}return ve(ve(ve({},A),{},{x:T,y:j,width:$,height:C,value:s?E:E[1],payload:A,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[sx(r,A)],tooltipPosition:{x:T+$/2,y:j+C/2}})});return ve({data:S,layout:y},h)});function Wn(e){"@babel/helpers - typeof";return Wn=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},Wn(e)}function sR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ag(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ex(n.key),n)}}function lR(e,t,r){return t&&Ag(e.prototype,t),r&&Ag(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){Na(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Na(e,t,r){return t=Ex(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ex(e){var t=fR(e,"string");return Wn(t)=="symbol"?t:t+""}function fR(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jx=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!Ne(s,Hr);return f.reduce(function(d,y){var v=r[y],p=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,g="".concat(p).concat(O?"Mirror":""),_,S,A,M,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=b[1]-b[0],j=1/0,$=v.categoricalDomain.sort(rO);if($.forEach(function(ce,de){de>0&&(j=Math.min((ce||0)-($[de-1]||0),j))}),Number.isFinite(j)){var C=j/T,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*R/2),v.padding==="no-gap"){var D=Vt(t.barCategoryGap,C*R),B=C*R/2;_=B-D-(B-D)/R*D}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,m&&(S=[S[1],S[0]]);var L=wj(v,a,h),U=L.scale,G=L.realScaleType;U.domain(b).range(S),Oj(U);var z=Mj(U,Ve(Ve({},v),{},{realScaleType:G}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,A=n.left,M=l[g]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,A=l[g]-E*v.width,M=n.top);var K=Ve(Ve(Ve({},v),z),{},{realScaleType:G,x:A,y:M,scale:U,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=Wi(K,z),!v.hide&&i==="xAxis"?l[g]+=(E?-1:1)*K.height:v.hide||(l[g]+=(E?-1:1)*K.width),Ve(Ve({},d),{},Na({},y,K))},{})},Mx=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},hR=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Mx({x:r,y:n},{x:i,y:a})},Cx=(function(){function e(t){sR(this,e),this.scale=t}return lR(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Na(Cx,"EPS",1e-4);var oh=function(t){var r=Object.keys(t).reduce(function(n,i){return Ve(Ve({},n),{},Na({},i,Cx.create(t[i])))},{});return Ve(Ve({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return LI(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Sx(i,function(a,o){return r[o].isInRange(a)})}})};function pR(e){return(e%180+180)%180}var dR=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=pR(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},qs,Tg;function vR(){if(Tg)return qs;Tg=1;var e=Ct(),t=Vn(),r=Oa();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return qs=n,qs}var Bs,Eg;function yR(){if(Eg)return Bs;Eg=1;var e=xx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Bs=t,Bs}var Ls,jg;function mR(){if(jg)return Ls;jg=1;var e=zb(),t=Ct(),r=yR(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return Ls=i,Ls}var Fs,Mg;function gR(){if(Mg)return Fs;Mg=1;var e=vR(),t=mR(),r=e(t);return Fs=r,Fs}var bR=gR();const xR=ue(bR);var wR=ib();const OR=ue(wR);var _R=OR(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),uh=N.createContext(void 0),ch=N.createContext(void 0),$x=N.createContext(void 0),Ix=N.createContext({}),Rx=N.createContext(void 0),kx=N.createContext(0),Dx=N.createContext(0),Cg=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=_R(a);return P.createElement(uh.Provider,{value:n},P.createElement(ch.Provider,{value:i},P.createElement(Ix.Provider,{value:a},P.createElement($x.Provider,{value:f},P.createElement(Rx.Provider,{value:o},P.createElement(kx.Provider,{value:s},P.createElement(Dx.Provider,{value:c},u)))))))},SR=function(){return N.useContext(Rx)},Nx=function(t){var r=N.useContext(uh);r==null&&Zt();var n=r[t];return n==null&&Zt(),n},AR=function(){var t=N.useContext(uh);return At(t)},PR=function(){var t=N.useContext(ch),r=xR(t,function(n){return Sx(n.domain,Number.isFinite)});return r||At(t)},qx=function(t){var r=N.useContext(ch);r==null&&Zt();var n=r[t];return n==null&&Zt(),n},TR=function(){var t=N.useContext($x);return t},ER=function(){return N.useContext(Ix)},sh=function(){return N.useContext(Dx)},lh=function(){return N.useContext(kx)};function Er(e){"@babel/helpers - typeof";return Er=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},Er(e)}function jR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lx(n.key),n)}}function CR(e,t,r){return t&&MR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $R(e,t,r){return t=ia(t),IR(e,Bx()?Reflect.construct(t,r||[],ia(e).constructor):t.apply(e,r))}function IR(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RR(e)}function RR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bx=function(){return!!e})()}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(e)}function kR(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&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kl(e,t)}function $g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ig(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){fh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fh(e,t,r){return t=Lx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lx(e){var t=DR(e,"string");return Er(t)=="symbol"?t:t+""}function DR(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function NR(e,t){return FR(e)||LR(e,t)||BR(e,t)||qR()}function qR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BR(e,t){if(e){if(typeof e=="string")return Rg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rg(e,t)}}function Rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function FR(e){if(Array.isArray(e))return e}function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xl.apply(this,arguments)}var zR=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):V(t)?n=t(r):n=P.createElement("line",Xl({},r,{className:"recharts-reference-line-line"})),n},WR=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(it(s,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?p.reverse():p}if(r){var b=s.x,x=t.x.apply(b,{position:o});if(it(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+d},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(g){return t.apply(g,{position:o})});return it(s,"discard")&&DI(m,function(g){return!t.isInRange(g)})?null:m}return null};function UR(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=SR(),f=Nx(i),l=qx(a),h=TR();if(!s||!h)return null;pt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=oh({x:f.scale,y:l.scale}),y=we(t),v=we(r),p=n&&n.length===2,b=WR(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=NR(b,2),w=x[0],O=w.x,m=w.y,g=x[1],_=g.x,S=g.y,A=it(e,"hidden")?"url(#".concat(s,")"):void 0,M=Ig(Ig({clipPath:A},Z(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return P.createElement(fe,{className:ee("recharts-reference-line",u)},zR(o,M),Ee.renderCallByParent(e,hR({x1:O,y1:m,x2:_,y2:S})))}var hh=(function(e){function t(){return jR(this,t),$R(this,t,arguments)}return kR(t,e),CR(t,[{key:"render",value:function(){return P.createElement(UR,this.props)}}])})(P.Component);fh(hh,"displayName","ReferenceLine");fh(hh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vl.apply(this,arguments)}function jr(e){"@babel/helpers - typeof";return jr=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},jr(e)}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){qa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zx(n.key),n)}}function KR(e,t,r){return t&&GR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XR(e,t,r){return t=aa(t),VR(e,Fx()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function VR(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}function YR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fx=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function ZR(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&&Yl(e,t)}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,t)}function qa(e,t,r){return t=zx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zx(e){var t=JR(e,"string");return jr(t)=="symbol"?t:t+""}function JR(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var QR=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=oh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return it(t,"discard")&&!o.isInRange(u)?null:u},Ba=(function(e){function t(){return HR(this,t),XR(this,t,arguments)}return ZR(t,e),KR(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=we(i),f=we(a);if(pt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=QR(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,b=it(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=Dg(Dg({clipPath:b},Z(this.props,!0)),{},{cx:h,cy:d});return P.createElement(fe,{className:ee("recharts-reference-dot",p)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(P.Component);qa(Ba,"displayName","ReferenceDot");qa(Ba,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});qa(Ba,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(ah,Vl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zl.apply(this,arguments)}function Mr(e){"@babel/helpers - typeof";return Mr=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},Mr(e)}function Ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(r),!0).forEach(function(n){La(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ek(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ux(n.key),n)}}function rk(e,t,r){return t&&tk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nk(e,t,r){return t=oa(t),ik(e,Wx()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function ik(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ak(e)}function ak(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wx=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function ok(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&&Jl(e,t)}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,t)}function La(e,t,r){return t=Ux(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ux(e){var t=uk(e,"string");return Mr(t)=="symbol"?t:t+""}function uk(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ck=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=oh({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return it(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:Mx(d,y)},Fa=(function(e){function t(){return ek(this,t),nk(this,t,arguments)}return ok(t,e),rk(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;pt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=we(i),h=we(a),d=we(o),y=we(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=ck(l,h,d,y,this.props);if(!p&&!v)return null;var b=it(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(fe,{className:ee("recharts-reference-area",c)},t.renderRect(v,qg(qg({clipPath:b},Z(this.props,!0)),p)),Ee.renderCallByParent(this.props,p))}}])})(P.Component);La(Fa,"displayName","ReferenceArea");La(Fa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});La(Fa,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(ih,Zl({},t,{className:"recharts-reference-area-rect"})),r});function Hx(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function sk(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return dR(n,r)}function lk(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function ua(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function fk(e,t){return Hx(e,t+1)}function hk(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:Hx(n,s)};var v=c,p,b=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=c===0||ua(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function Un(e){"@babel/helpers - typeof";return Un=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},Un(e)}function Bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(r),!0).forEach(function(n){pk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pk(e,t,r){return t=dk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=vk(e,"string");return Un(t)=="symbol"?t:t+""}function vk(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yk(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var d=a[h],y,v=function(){return y===void 0&&(y=r(d,h)),y};if(h===o-1){var p=e*(d.coordinate+e*v()/2-c);a[h]=d=Te(Te({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Te(Te({},d),{},{tickCoord:d.coordinate});var b=ua(e,d.tickCoord,v,u,c);b&&(c=d.tickCoord-e*(v()/2+i),a[h]=Te(Te({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function mk(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Te(Te({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=ua(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Te(Te({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var g=e*(w.coordinate-e*m()/2-c);o[x]=w=Te(Te({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var _=ua(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[x]=Te(Te({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function ph(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(q(c)||Fr.isSsr)return fk(i,typeof c=="number"&&q(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?on(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=V(s)?s(w.value,O):w.value;return d==="width"?sk(on(m,{fontSize:t,letterSpacing:r}),y,l):on(m,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ze(i[1].coordinate-i[0].coordinate):1,b=lk(a,p,d);return c==="equidistantPreserveStart"?hk(p,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=mk(p,b,v,i,o,c==="preserveStartEnd"):h=yk(p,b,v,i,o),h.filter(function(x){return x.isShow}))}var gk=["viewBox"],bk=["viewBox"],xk=["ticks"];function Cr(e){"@babel/helpers - typeof";return Cr=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},Cr(e)}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(this,arguments)}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){dh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zs(e,t){if(e==null)return{};var r=wk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ok(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kx(n.key),n)}}function _k(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sk(e,t,r){return t=ca(t),Ak(e,Gx()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function Ak(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pk(e)}function Pk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gx=function(){return!!e})()}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function Tk(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&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function dh(e,t,r){return t=Kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kx(e){var t=Ek(e,"string");return Cr(t)=="symbol"?t:t+""}function Ek(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gr=(function(e){function t(r){var n;return Ok(this,t),n=Sk(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Tk(t,e),_k(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=zs(n,gk),u=this.props,c=u.viewBox,s=zs(u,bk);return!fr(a,c)||!fr(o,s)||!fr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,d,y,v,p,b,x,w=l?-1:1,O=n.tickSize||f,m=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=y=n.coordinate,p=o+ +!l*c,v=p-w*O,x=v-w*h,b=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,b=d-w*h,x=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,b=d+w*h,x=m;break;default:d=y=n.coordinate,p=o+ +l*c,v=p+w*O,x=v+w*h,b=m;break}return{line:{x1:d,y1:v,x2:y,y2:p},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=be(be(be({},Z(this.props,!1)),Z(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=be(be({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=be(be({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return P.createElement("line",sr({},l,{className:ee("recharts-cartesian-axis-line",He(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=ph(be(be({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=Z(this.props,!1),b=Z(f,!1),x=be(be({},p),{},{fill:"none"},Z(c,!1)),w=d.map(function(O,m){var g=o.getTickLineCoord(O),_=g.line,S=g.tick,A=be(be(be(be({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:s},b),S),{},{index:m,payload:O,visibleTicksCount:d.length,tickFormatter:l});return P.createElement(fe,sr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},gi(o.props,O,m)),c&&P.createElement("line",sr({},x,_,{className:ee("recharts-cartesian-axis-tick-line",He(c,"className"))})),f&&t.renderTickItem(f,A,"".concat(V(l)?l(O.value,m):O.value).concat(h||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,d=zs(l,xk),y=h;return V(c)&&(y=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:P.createElement(fe,{className:ee("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ee(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,be(be({},i),{},{className:u})):V(n)?o=n(be(be({},i),{},{className:u})):o=P.createElement(ji,sr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);dh(Gr,"displayName","CartesianAxis");dh(Gr,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var jk=["x1","y1","x2","y2","key"],Mk=["offset"];function Jt(e){"@babel/helpers - typeof";return Jt=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},Jt(e)}function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(n){Ck(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ck(e,t,r){return t=$k(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $k(e){var t=Ik(e,"string");return Jt(t)=="symbol"?t:t+""}function Ik(e,t){if(Jt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ut.apply(this,arguments)}function Wg(e,t){if(e==null)return{};var r=Rk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var kk=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return P.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Xx(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=Wg(t,jk),s=Z(c,!1);s.offset;var f=Wg(s,Mk);r=P.createElement("line",Ut({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Dk(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Xx(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Nk(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Xx(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function qk(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?i+o-h:f[d+1]-h;if(v<=0)return null;var p=d%t.length;return P.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function Bk(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?a+u-h:f[d+1]-h;if(v<=0)return null;var p=d%n.length;return P.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var Lk=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return ux(ph(je(je(je({},Gr.defaultProps),n),{},{ticks:ft(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Fk=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return ux(ph(je(je(je({},Gr.defaultProps),n),{},{ticks:ft(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},ur={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function zk(e){var t,r,n,i,a,o,u=sh(),c=lh(),s=ER(),f=je(je({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ur.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ur.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ur.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ur.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:ur.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:ur.verticalFill,x:q(e.x)?e.x:s.left,y:q(e.y)?e.y:s.top,width:q(e.width)?e.width:s.width,height:q(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,b=f.verticalValues,x=AR(),w=PR();if(!q(d)||d<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||Lk,m=f.horizontalCoordinatesGenerator||Fk,g=f.horizontalPoints,_=f.verticalPoints;if((!g||!g.length)&&V(m)){var S=p&&p.length,A=m({yAxis:w?je(je({},w),{},{ticks:S?p:w.ticks}):void 0,width:u,height:c,offset:s},S?!0:v);pt(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Jt(A),"]")),Array.isArray(A)&&(g=A)}if((!_||!_.length)&&V(O)){var M=b&&b.length,E=O({xAxis:x?je(je({},x),{},{ticks:M?b:x.ticks}):void 0,width:u,height:c,offset:s},M?!0:v);pt(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Jt(E),"]")),Array.isArray(E)&&(_=E)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(kk,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(Dk,Ut({},f,{offset:s,horizontalPoints:g,xAxis:x,yAxis:w})),P.createElement(Nk,Ut({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),P.createElement(qk,Ut({},f,{horizontalPoints:g})),P.createElement(Bk,Ut({},f,{verticalPoints:_})))}zk.displayName="CartesianGrid";var Wk=["layout","type","stroke","connectNulls","isRange","ref"],Uk=["key"],Vx;function $r(e){"@babel/helpers - typeof";return $r=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},$r(e)}function Yx(e,t){if(e==null)return{};var r=Hk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ht.apply(this,arguments)}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(r),!0).forEach(function(n){rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jx(n.key),n)}}function Kk(e,t,r){return t&&Hg(e.prototype,t),r&&Hg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xk(e,t,r){return t=sa(t),Vk(e,Zx()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function Vk(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yk(e)}function Yk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zx=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function Zk(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&&ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ef(e,t)}function rt(e,t,r){return t=Jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e){var t=Jk(e,"string");return $r(t)=="symbol"?t:t+""}function Jk(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nr=(function(e){function t(){var r;Gk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Xk(this,t,[].concat(i)),rt(r,"state",{isAnimationFinished:!0}),rt(r,"id",Xn("recharts-area-")),rt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),rt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return Zk(t,e),Kk(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,s=c.dot,f=c.points,l=c.dataKey,h=Z(this.props,!1),d=Z(s,!0),y=f.map(function(p,b){var x=_t(_t(_t({key:"dot-".concat(b),r:3},h),d),{},{index:b,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(s,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(fe,Ht({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,s=o[o.length-1].x,f=n*Math.abs(c-s),l=Pt(o.map(function(h){return h.y||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Pt(a.map(function(h){return h.y||0})),l)),q(l)?P.createElement("rect",{x:c<s?c:c-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].y,s=o[o.length-1].y,f=n*Math.abs(c-s),l=Pt(o.map(function(h){return h.x||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Pt(a.map(function(h){return h.x||0})),l)),q(l)?P.createElement("rect",{x:0,y:c<s?c:c-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,c=u.layout,s=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var d=Yx(u,Wk);return P.createElement(fe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(sn,Ht({},Z(d,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(sn,Ht({},Z(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&P.createElement(sn,Ht({},Z(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,d=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return P.createElement(gt,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(v){var w=v.length/u.length,O=u.map(function(S,A){var M=Math.floor(A*w);if(v[M]){var E=v[M],T=We(E.x,S.x),j=We(E.y,S.y);return _t(_t({},S),{},{x:T(x),y:j(x)})}return S}),m;if(q(c)&&typeof c=="number"){var g=We(p,c);m=g(x)}else if(J(c)||Br(c)){var _=We(p,0);m=_(x)}else m=c.map(function(S,A){var M=Math.floor(A*w);if(p[M]){var E=p[M],T=We(E.x,S.x),j=We(E.y,S.y);return _t(_t({},S),{},{x:T(x),y:j(x)})}return S});return a.renderAreaStatically(O,m,n,i)}return P.createElement(fe,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(fe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,s=this.state,f=s.prevPoints,l=s.prevBaseLine,h=s.totalLength;return c&&o&&o.length&&(!f&&h>0||!_n(f,o)||!_n(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.top,f=i.left,l=i.xAxis,h=i.yAxis,d=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=ee("recharts-area",c),O=l&&l.allowDataOverflow,m=h&&h.allowDataOverflow,g=O||m,_=J(p)?this.id:p,S=(n=Z(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,M=A===void 0?3:A,E=S.strokeWidth,T=E===void 0?2:E,j=fO(o)?o:{},$=j.clipDot,C=$===void 0?!0:$,R=M*2+T;return P.createElement(fe,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(_)},P.createElement("rect",{x:O?f:f-d/2,y:m?s:s-y/2,width:O?d:d*2,height:m?y:y*2})),!C&&P.createElement("clipPath",{id:"clipPath-dots-".concat(_)},P.createElement("rect",{x:f-R/2,y:s-R/2,width:d+R,height:y+R}))):null,x?null:this.renderArea(g,_),(o||x)&&this.renderDots(g,C,_),(!v||b)&&jt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(N.PureComponent);Vx=nr;rt(nr,"displayName","Area");rt(nr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Fr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});rt(nr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(q(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,s=c.scale.domain();if(c.type==="number"){var f=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return u==="dataMin"?s[0]:u==="dataMax"?s[1]:s[0]});rt(nr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,c=e.dataKey,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=t.layout,y=s&&s.length,v=Vx.getBaseValue(t,r,n,i),p=d==="horizontal",b=!1,x=l.map(function(O,m){var g;y?g=s[f+m]:(g=Be(O,c),Array.isArray(g)?b=!0:g=[v,g]);var _=g[1]==null||y&&Be(O,c)==null;return p?{x:sm({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(g[1]),value:g,payload:O}:{x:_?null:n.scale(g[1]),y:sm({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:g,payload:O}}),w;return y||b?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=p?i.scale(v):n.scale(v),_t({points:x,baseLine:w,layout:d,isRange:b},h)});rt(nr,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=ee("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Yx(t,Uk);r=P.createElement(ah,Ht({},a,{key:i,className:n}))}return r});function Ir(e){"@babel/helpers - typeof";return Ir=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},Ir(e)}function Qk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tw(n.key),n)}}function tD(e,t,r){return t&&eD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rD(e,t,r){return t=la(t),nD(e,Qx()?Reflect.construct(t,r||[],la(e).constructor):t.apply(e,r))}function nD(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iD(e)}function iD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qx=function(){return!!e})()}function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}function aD(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&&tf(e,t)}function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tf(e,t)}function ew(e,t,r){return t=tw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tw(e){var t=oD(e,"string");return Ir(t)=="symbol"?t:t+""}function oD(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rf.apply(this,arguments)}function uD(e){var t=e.xAxisId,r=sh(),n=lh(),i=Nx(t);return i==null?null:N.createElement(Gr,rf({},i,{className:ee("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ft(o,!0)}}))}var za=(function(e){function t(){return Qk(this,t),rD(this,t,arguments)}return aD(t,e),tD(t,[{key:"render",value:function(){return N.createElement(uD,this.props)}}])})(N.Component);ew(za,"displayName","XAxis");ew(za,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Rr(e){"@babel/helpers - typeof";return Rr=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},Rr(e)}function cD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iw(n.key),n)}}function lD(e,t,r){return t&&sD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fD(e,t,r){return t=fa(t),hD(e,rw()?Reflect.construct(t,r||[],fa(e).constructor):t.apply(e,r))}function hD(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pD(e)}function pD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rw=function(){return!!e})()}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(e)}function dD(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&&nf(e,t)}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nf(e,t)}function nw(e,t,r){return t=iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iw(e){var t=vD(e,"string");return Rr(t)=="symbol"?t:t+""}function vD(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},af.apply(this,arguments)}var yD=function(t){var r=t.yAxisId,n=sh(),i=lh(),a=qx(r);return a==null?null:N.createElement(Gr,af({},a,{className:ee("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return ft(u,!0)}}))},Wa=(function(e){function t(){return cD(this,t),fD(this,t,arguments)}return dD(t,e),lD(t,[{key:"render",value:function(){return N.createElement(yD,this.props)}}])})(N.Component);nw(Wa,"displayName","YAxis");nw(Wa,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Gg(e){return xD(e)||bD(e)||gD(e)||mD()}function mD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gD(e,t){if(e){if(typeof e=="string")return of(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return of(e,t)}}function bD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xD(e){if(Array.isArray(e))return of(e)}function of(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var uf=function(t,r,n,i,a){var o=Je(t,hh),u=Je(t,Ba),c=[].concat(Gg(o),Gg(u)),s=Je(t,Fa),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&it(p.props,"extendDomain")&&q(p.props[l])){var b=p.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),s.length){var d="".concat(l,"1"),y="".concat(l,"2");h=s.reduce(function(v,p){if(p.props[f]===n&&it(p.props,"extendDomain")&&q(p.props[d])&&q(p.props[y])){var b=p.props[d],x=p.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,p){return q(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},Ws={exports:{}},Kg;function wD(){return Kg||(Kg=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,h),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],d]:c._events[y].push(d):(c._events[y]=d,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,d=l.length,y=new Array(d);h<d;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,h,d,y){var v=r?r+s:s;if(!this._events[v])return!1;var p=this._events[v],b=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),b){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,m;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(s,p[w].fn,void 0,!0),b){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];p[w].fn.apply(p[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var v=0,p=[],b=y.length;v<b;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Ws)),Ws.exports}var OD=wD();const _D=ue(OD);var Us=new _D,Hs="recharts.syncMouseEvents";function Hn(e){"@babel/helpers - typeof";return Hn=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},Hn(e)}function SD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aw(n.key),n)}}function PD(e,t,r){return t&&AD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gs(e,t,r){return t=aw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aw(e){var t=TD(e,"string");return Hn(t)=="symbol"?t:t+""}function TD(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ED=(function(){function e(){SD(this,e),Gs(this,"activeIndex",0),Gs(this,"coordinateList",[]),Gs(this,"layout","horizontal")}return PD(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,d=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function jD(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function MD(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function ow(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Pe(t,r,n,i),u=Pe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function CD(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=Pe(u,c,s,l),d=Pe(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return ow(t);return[{x:n,y:i},{x:a,y:o}]}function Gn(e){"@babel/helpers - typeof";return Gn=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},Gn(e)}function Xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xg(Object(r),!0).forEach(function(n){$D(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $D(e,t,r){return t=ID(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ID(e){var t=RD(e,"string");return Gn(t)=="symbol"?t:t+""}function RD(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kD(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=sn;if(h==="ScatterChart")y=o,v=D$;else if(h==="BarChart")y=MD(l,o,c,f),v=ih;else if(l==="radial"){var p=ow(o),b=p.cx,x=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=hx}else y={points:CD(l,o,c)},v=sn;var g=di(di(di(di({stroke:"#ccc",pointerEvents:"none"},c),y),Z(d,!1)),{},{payload:u,payloadIndex:s,className:ee("recharts-tooltip-cursor",d.className)});return N.isValidElement(d)?N.cloneElement(d,g):N.createElement(v,g)}var DD=["item"],ND=["children","className","width","height","style","compact","title","desc"];function kr(e){"@babel/helpers - typeof";return kr=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},kr(e)}function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lr.apply(this,arguments)}function Vg(e,t){return LD(e)||BD(e,t)||cw(e,t)||qD()}function qD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function LD(e){if(Array.isArray(e))return e}function Yg(e,t){if(e==null)return{};var r=FD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sw(n.key),n)}}function UD(e,t,r){return t&&WD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HD(e,t,r){return t=ha(t),GD(e,uw()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function GD(e,t){if(t&&(kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KD(e)}function KD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uw=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function XD(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&&cf(e,t)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cf(e,t)}function Dr(e){return ZD(e)||YD(e)||cw(e)||VD()}function VD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cw(e,t){if(e){if(typeof e=="string")return sf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sf(e,t)}}function YD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZD(e){if(Array.isArray(e))return sf(e)}function sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=sw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sw(e){var t=JD(e,"string");return kr(t)=="symbol"?t:t+""}function JD(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QD={xAxis:["bottom","top"],yAxis:["left","right"]},eN={width:"100%",height:"100%"},lw={x:0,y:0};function vi(e){return e}var tN=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},rN=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return I(I(I({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),Pe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return lw},Ua=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Dr(u),Dr(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function fw(e){return e==="number"?[0,"auto"]:void 0}var lf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ua(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=yi(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Dr(c),[sx(s,h)]):c},[])},Jg=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=tN(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=vj(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=lf(t,r,f,l),d=rN(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},nN=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=ox(f,a);return n.reduce(function(y,v){var p,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,_=b.ticks,S=b.includeHidden,A=b[o];if(y[A])return y;var M=Ua(t.data,{graphicalItems:i.filter(function(z){var K,ce=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o];return ce===A}),dataStartIndex:c,dataEndIndex:s}),E=M.length,T,j,$;jD(b.domain,O,x)&&(T=El(b.domain,null,O),d&&(x==="number"||g!=="auto")&&($=cn(M,w,"category")));var C=fw(x);if(!T||T.length===0){var R,D=(R=b.domain)!==null&&R!==void 0?R:C;if(w){if(T=cn(M,w,x),x==="category"&&d){var B=tO(T);m&&B?(j=T,T=Qi(0,E)):m||(T=pm(D,T,v).reduce(function(z,K){return z.indexOf(K)>=0?z:[].concat(Dr(z),[K])},[]))}else if(x==="category")m?T=T.filter(function(z){return z!==""&&!J(z)}):T=pm(D,T,v).reduce(function(z,K){return z.indexOf(K)>=0||K===""||J(K)?z:[].concat(Dr(z),[K])},[]);else if(x==="number"){var L=xj(M,i.filter(function(z){var K,ce,de=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o],ke="hide"in z.props?z.props.hide:(ce=z.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return de===A&&(S||!ke)}),w,a,f);L&&(T=L)}d&&(x==="number"||g!=="auto")&&($=cn(M,w,"category"))}else d?T=Qi(0,E):u&&u[A]&&u[A].hasStack&&x==="number"?T=h==="expand"?[0,1]:cx(u[A].stackGroups,c,s):T=ax(M,i.filter(function(z){var K=o in z.props?z.props[o]:z.type.defaultProps[o],ce="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return K===A&&(S||!ce)}),x,f,!0);if(x==="number")T=uf(l,T,A,a,_),D&&(T=El(D,T,O));else if(x==="category"&&D){var U=D,G=T.every(function(z){return U.indexOf(z)>=0});G&&(T=U)}}return I(I({},y),{},H({},A,I(I({},b),{},{axisType:a,domain:T,categoricalDomain:$,duplicateDomain:j,originalDomain:(p=b.domain)!==null&&p!==void 0?p:C,isCategorical:d,layout:f})))},{})},iN=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=Ua(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=ox(f,a),v=-1;return n.reduce(function(p,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=fw("number");if(!p[w]){v++;var m;return y?m=Qi(0,d):u&&u[w]&&u[w].hasStack?(m=cx(u[w].stackGroups,c,s),m=uf(l,m,w,a)):(m=El(O,ax(h,n.filter(function(g){var _,S,A=o in g.props?g.props[o]:(_=g.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),m=uf(l,m,w,a)),I(I({},p),{},H({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:He(QD,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},aN=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Je(f,a),d={};return h&&h.length?d=nN(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=iN(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},oN=function(t){var r=At(t),n=ft(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Cf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Wi(r,n)}},Qg=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ne(r,Pr),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},uN=function(t){return!t||!t.length?!1:t.some(function(r){var n=ht(r&&r.type);return n&&n.indexOf("Bar")>=0})},eb=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},cN=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},d=Ne(l,Pr),y=Ne(l,hr),v=Object.keys(c).reduce(function(m,g){var _=c[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,m[S]+_.width)):m},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(m,g){var _=o[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,He(m,"".concat(S))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},p),v),x=b.bottom;d&&(b.bottom+=d.props.height||Pr.defaultProps.height),y&&r&&(b=gj(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},sN=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},hw=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,g=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=b.barSize,M=b.layout,E=b.barGap,T=b.barCategoryGap,j=b.maxBarSize,$=eb(M),C=$.numericAxisName,R=$.cateAxisName,D=uN(w),B=[];return w.forEach(function(L,U){var G=Ua(b.data,{graphicalItems:[L],dataStartIndex:_,dataEndIndex:S}),z=L.type.defaultProps!==void 0?I(I({},L.type.defaultProps),L.props):L.props,K=z.dataKey,ce=z.maxBarSize,de=z["".concat(C,"Id")],ke=z["".concat(R,"Id")],kt={},Ce=c.reduce(function(Dt,Nt){var Ha=x["".concat(Nt.axisType,"Map")],vh=z["".concat(Nt.axisType,"Id")];Ha&&Ha[vh]||Nt.axisType==="zAxis"||Zt();var yh=Ha[vh];return I(I({},Dt),{},H(H({},Nt.axisType,yh),"".concat(Nt.axisType,"Ticks"),ft(yh)))},kt),F=Ce[R],X=Ce["".concat(R,"Ticks")],Y=O&&O[de]&&O[de].hasStack&&$j(L,O[de].stackGroups),k=ht(L.type).indexOf("Bar")>=0,he=Wi(F,X),Q=[],me=D&&yj({barSize:A,stackGroups:O,totalSize:sN(Ce,R)});if(k){var ge,$e,Ot=J(ce)?j:ce,ir=(ge=($e=Wi(F,X,!0))!==null&&$e!==void 0?$e:Ot)!==null&&ge!==void 0?ge:0;Q=mj({barGap:E,barCategoryGap:T,bandSize:ir!==he?ir:he,sizeList:me[ke],maxBarSize:Ot}),ir!==he&&(Q=Q.map(function(Dt){return I(I({},Dt),{},{position:I(I({},Dt.position),{},{offset:Dt.position.offset-ir/2})})}))}var ei=L&&L.type&&L.type.getComposedData;ei&&B.push({props:I(I({},ei(I(I({},Ce),{},{displayedData:G,props:b,dataKey:K,item:L,bandSize:he,barPosition:Q,offset:m,stackedData:Y,layout:M,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:L.key||"item-".concat(U)},C,Ce[C]),R,Ce[R]),"animationId",g)),childIndex:dO(L,b.children),item:L})}),B},d=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!Ap({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,M=w.data,E=w.reverseStackOrder,T=eb(S),j=T.numericAxisName,$=T.cateAxisName,C=Je(_,n),R=jj(M,C,"".concat(j,"Id"),"".concat($,"Id"),A,E),D=c.reduce(function(z,K){var ce="".concat(K.axisType,"Map");return I(I({},z),{},H({},ce,aN(w,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===j&&R,dataStartIndex:O,dataEndIndex:m}))))},{}),B=cN(I(I({},D),{},{props:w,graphicalItems:C}),x==null?void 0:x.legendBBox);Object.keys(D).forEach(function(z){D[z]=f(w,D[z],B,z.replace("Map",""),r)});var L=D["".concat($,"Map")],U=oN(L),G=h(w,I(I({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:C,stackGroups:R,offset:B}));return I(I({formattedGraphicalItems:G,graphicalItems:C,offset:B,stackGroups:R},U),D)},y=(function(p){function b(x){var w,O,m;return zD(this,b),m=HD(this,b,[x]),H(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(m,"accessibilityManager",new ED),H(m,"handleLegendBBoxUpdate",function(g){if(g){var _=m.state,S=_.dataStartIndex,A=_.dataEndIndex,M=_.updateId;m.setState(I({legendBBox:g},d({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:M},I(I({},m.state),{},{legendBBox:g}))))}}),H(m,"handleReceiveSyncEvent",function(g,_,S){if(m.props.syncId===g){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),H(m,"handleBrushChange",function(g){var _=g.startIndex,S=g.endIndex;if(_!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:S},d({props:m.props,dataStartIndex:_,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(m,"handleMouseEnter",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseEnter;V(A)&&A(S,g)}}),H(m,"triggeredAfterMouseMove",function(g){var _=m.getMouseInfo(g),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseMove;V(A)&&A(S,g)}),H(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),H(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),H(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),H(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;V(S)&&S(_,g)}),H(m,"handleOuterEvent",function(g){var _=pO(g),S=He(m.props,"".concat(_));if(_&&V(S)){var A,M;/.*touch.*/i.test(_)?M=m.getMouseInfo(g.changedTouches[0]):M=m.getMouseInfo(g),S((A=M)!==null&&A!==void 0?A:{},g)}}),H(m,"handleClick",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onClick;V(A)&&A(S,g)}}),H(m,"handleMouseDown",function(g){var _=m.props.onMouseDown;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleMouseUp",function(g){var _=m.props.onMouseUp;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),H(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),H(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),H(m,"handleDoubleClick",function(g){var _=m.props.onDoubleClick;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleContextMenu",function(g){var _=m.props.onContextMenu;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&Us.emit(Hs,m.props.syncId,g,m.eventEmitterSymbol)}),H(m,"applySyncEvent",function(g){var _=m.props,S=_.layout,A=_.syncMethod,M=m.state.updateId,E=g.dataStartIndex,T=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(I({dataStartIndex:E,dataEndIndex:T},d({props:m.props,dataStartIndex:E,dataEndIndex:T,updateId:M},m.state)));else if(g.activeTooltipIndex!==void 0){var j=g.chartX,$=g.chartY,C=g.activeTooltipIndex,R=m.state,D=R.offset,B=R.tooltipTicks;if(!D)return;if(typeof A=="function")C=A(B,g);else if(A==="value"){C=-1;for(var L=0;L<B.length;L++)if(B[L].value===g.activeLabel){C=L;break}}var U=I(I({},D),{},{x:D.left,y:D.top}),G=Math.min(j,U.x+U.width),z=Math.min($,U.y+U.height),K=B[C]&&B[C].value,ce=lf(m.state,m.props.data,C),de=B[C]?{x:S==="horizontal"?B[C].coordinate:G,y:S==="horizontal"?z:B[C].coordinate}:lw;m.setState(I(I({},g),{},{activeLabel:K,activeCoordinate:de,activePayload:ce,activeTooltipIndex:C}))}else m.setState(g)}),H(m,"renderCursor",function(g){var _,S=m.state,A=S.isTooltipActive,M=S.activeCoordinate,E=S.activePayload,T=S.offset,j=S.activeTooltipIndex,$=S.tooltipAxisBandSize,C=m.getTooltipEventType(),R=(_=g.props.active)!==null&&_!==void 0?_:A,D=m.props.layout,B=g.key||"_recharts-cursor";return P.createElement(kD,{key:B,activeCoordinate:M,activePayload:E,activeTooltipIndex:j,chartName:r,element:g,isActive:R,layout:D,offset:T,tooltipAxisBandSize:$,tooltipEventType:C})}),H(m,"renderPolarAxis",function(g,_,S){var A=He(g,"type.axisType"),M=He(m.state,"".concat(A,"Map")),E=g.type.defaultProps,T=E!==void 0?I(I({},E),g.props):g.props,j=M&&M[T["".concat(A,"Id")]];return N.cloneElement(g,I(I({},j),{},{className:ee(A,j.className),key:g.key||"".concat(_,"-").concat(S),ticks:ft(j,!0)}))}),H(m,"renderPolarGrid",function(g){var _=g.props,S=_.radialLines,A=_.polarAngles,M=_.polarRadius,E=m.state,T=E.radiusAxisMap,j=E.angleAxisMap,$=At(T),C=At(j),R=C.cx,D=C.cy,B=C.innerRadius,L=C.outerRadius;return N.cloneElement(g,{polarAngles:Array.isArray(A)?A:ft(C,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(M)?M:ft($,!0).map(function(U){return U.coordinate}),cx:R,cy:D,innerRadius:B,outerRadius:L,key:g.key||"polar-grid",radialLines:S})}),H(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,_=m.props,S=_.children,A=_.width,M=_.height,E=m.props.margin||{},T=A-(E.left||0)-(E.right||0),j=nx({children:S,formattedGraphicalItems:g,legendWidth:T,legendContent:s});if(!j)return null;var $=j.item,C=Yg(j,DD);return N.cloneElement($,I(I({},C),{},{chartWidth:A,chartHeight:M,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),H(m,"renderTooltip",function(){var g,_=m.props,S=_.children,A=_.accessibilityLayer,M=Ne(S,ct);if(!M)return null;var E=m.state,T=E.isTooltipActive,j=E.activeCoordinate,$=E.activePayload,C=E.activeLabel,R=E.offset,D=(g=M.props.active)!==null&&g!==void 0?g:T;return N.cloneElement(M,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:D,label:C,payload:D?$:[],coordinate:j,accessibilityLayer:A})}),H(m,"renderBrush",function(g){var _=m.props,S=_.margin,A=_.data,M=m.state,E=M.offset,T=M.dataStartIndex,j=M.dataEndIndex,$=M.updateId;return N.cloneElement(g,{key:g.key||"_recharts-brush",onChange:li(m.handleBrushChange,g.props.onChange),data:A,x:q(g.props.x)?g.props.x:E.left,y:q(g.props.y)?g.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:q(g.props.width)?g.props.width:E.width,startIndex:T,endIndex:j,updateId:"brush-".concat($)})}),H(m,"renderReferenceElement",function(g,_,S){if(!g)return null;var A=m,M=A.clipPathId,E=m.state,T=E.xAxisMap,j=E.yAxisMap,$=E.offset,C=g.type.defaultProps||{},R=g.props,D=R.xAxisId,B=D===void 0?C.xAxisId:D,L=R.yAxisId,U=L===void 0?C.yAxisId:L;return N.cloneElement(g,{key:g.key||"".concat(_,"-").concat(S),xAxis:T[B],yAxis:j[U],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),H(m,"renderActivePoints",function(g){var _=g.item,S=g.activePoint,A=g.basePoint,M=g.childIndex,E=g.isRange,T=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,C=$.activeDot,R=$.dataKey,D=I(I({index:M,dataKey:R,cx:S.x,cy:S.y,r:4,fill:nh(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},Z(C,!1)),mi(C));return T.push(b.renderActiveDot(C,D,"".concat(j,"-activePoint-").concat(M))),A?T.push(b.renderActiveDot(C,I(I({},D),{},{cx:A.x,cy:A.y}),"".concat(j,"-basePoint-").concat(M))):E&&T.push(null),T}),H(m,"renderGraphicChild",function(g,_,S){var A=m.filterFormatItem(g,_,S);if(!A)return null;var M=m.getTooltipEventType(),E=m.state,T=E.isTooltipActive,j=E.tooltipAxis,$=E.activeTooltipIndex,C=E.activeLabel,R=m.props.children,D=Ne(R,ct),B=A.props,L=B.points,U=B.isRange,G=B.baseLine,z=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,K=z.activeDot,ce=z.hide,de=z.activeBar,ke=z.activeShape,kt=!!(!ce&&T&&D&&(K||de||ke)),Ce={};M!=="axis"&&D&&D.props.trigger==="click"?Ce={onClick:li(m.handleItemMouseEnter,g.props.onClick)}:M!=="axis"&&(Ce={onMouseLeave:li(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:li(m.handleItemMouseEnter,g.props.onMouseEnter)});var F=N.cloneElement(g,I(I({},A.props),Ce));function X(Nt){return typeof j.dataKey=="function"?j.dataKey(Nt.payload):null}if(kt)if($>=0){var Y,k;if(j.dataKey&&!j.allowDuplicatedCategory){var he=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());Y=yi(L,he,C),k=U&&G&&yi(G,he,C)}else Y=L==null?void 0:L[$],k=U&&G&&G[$];if(ke||de){var Q=g.props.activeIndex!==void 0?g.props.activeIndex:$;return[N.cloneElement(g,I(I(I({},A.props),Ce),{},{activeIndex:Q})),null,null]}if(!J(Y))return[F].concat(Dr(m.renderActivePoints({item:A,activePoint:Y,basePoint:k,childIndex:$,isRange:U})))}else{var me,ge=(me=m.getItemByXY(m.state.activeCoordinate))!==null&&me!==void 0?me:{graphicalItem:F},$e=ge.graphicalItem,Ot=$e.item,ir=Ot===void 0?g:Ot,ei=$e.childIndex,Dt=I(I(I({},A.props),Ce),{},{activeIndex:ei});return[N.cloneElement(ir,Dt),null,null]}return U?[F,null,null]:[F,null]}),H(m,"renderCustomized",function(g,_,S){return N.cloneElement(g,I(I({key:"recharts-customized-".concat(S)},m.props),m.state))}),H(m,"renderMap",{CartesianGrid:{handler:vi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:vi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:vi},YAxis:{handler:vi},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Xn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=t0(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return XD(b,p),UD(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,g=w.height,_=w.layout,S=Ne(O,ct);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=lf(this.state,m,A,M),T=this.state.tooltipTicks[A].coordinate,j=(this.state.offset.top+g)/2,$=_==="horizontal",C=$?{x:T,y:j}:{y:T,x:j},R=this.state.formattedGraphicalItems.find(function(B){var L=B.item;return L.type.name==="Scatter"});R&&(C=I(I({},C),R.props.points[A].tooltipPosition),E=R.props.points[A].tooltipPayload);var D={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:M,activePayload:E,activeCoordinate:C};this.setState(D),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Vs([Ne(w.children,ct)],[Ne(this.props.children,ct)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ne(this.props.children,ct);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=eA(m),_={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},S=m.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var M=this.state,E=M.xAxisMap,T=M.yAxisMap,j=this.getTooltipEventType(),$=Jg(this.state,this.props.data,this.props.layout,A);if(j!=="axis"&&E&&T){var C=At(E).scale,R=At(T).scale,D=C&&C.invert?C.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return I(I({},_),{},{xValue:D,yValue:B},$)}return $?I(I({},_),$):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,_=w/m,S=O/m;if(g==="horizontal"||g==="vertical"){var A=this.state.offset,M=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return M?{x:_,y:S}:null}var E=this.state,T=E.angleAxisMap,j=E.radiusAxisMap;if(T&&j){var $=At(T);return ym({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Ne(w,ct),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=mi(this.props,this.handleOuterEvent);return I(I({},_),g)}},{key:"addListener",value:function(){Us.on(Hs,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Us.removeListener(Hs,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,_=0,S=g.length;_<S;_++){var A=g[_];if(A.item===w||A.props.key===w.key||O===ht(A.item.type)&&m===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,_=O.height,S=O.width;return P.createElement("defs",null,P.createElement("clipPath",{id:w},P.createElement("rect",{x:m,y:g,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Vg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Vg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var _=0,S=m.length;_<S;_++){var A=m[_],M=A.props,E=A.item,T=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,j=ht(E.type);if(j==="Bar"){var $=(M.data||[]).find(function(B){return P$(w,B)});if($)return{graphicalItem:A,payload:$}}else if(j==="RadialBar"){var C=(M.data||[]).find(function(B){return ym(w,B)});if(C)return{graphicalItem:A,payload:C}}else if(ka(A,g)||Da(A,g)||Ln(A,g)){var R=yI({graphicalItem:A,activeTooltipItem:g,itemData:T.data}),D=T.activeIndex===void 0?R:T.activeIndex;return{graphicalItem:I(I({},A),{},{childIndex:D}),payload:Ln(A,g)?T.data[R]:A.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!Ap(this))return null;var O=this.props,m=O.children,g=O.className,_=O.width,S=O.height,A=O.style,M=O.compact,E=O.title,T=O.desc,j=Yg(O,ND),$=Z(j,!1);if(M)return P.createElement(Cg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(Zs,lr({},$,{width:_,height:S,title:E,desc:T}),this.renderClipPath(),Tp(m,this.renderMap)));if(this.props.accessibilityLayer){var C,R;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},$.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return P.createElement(Cg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",lr({className:ee("recharts-wrapper",g),style:I({position:"relative",cursor:"default",width:_,height:S},A)},D,{ref:function(L){w.container=L}}),P.createElement(Zs,lr({},$,{width:_,height:S,title:E,desc:T,style:eN}),this.renderClipPath(),Tp(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(y,"displayName",r),H(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(p,b){var x=p.dataKey,w=p.data,O=p.children,m=p.width,g=p.height,_=p.layout,S=p.stackOffset,A=p.margin,M=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var T=Qg(p);return I(I(I({},T),{},{updateId:0},d(I(I({props:p},T),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!fr(A,b.prevMargin)){var j=Qg(p),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=I(I({},Jg(b,w,_)),{},{updateId:b.updateId+1}),R=I(I(I({},j),$),C);return I(I(I({},R),d(I({props:p},R),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!Vs(O,b.prevChildren)){var D,B,L,U,G=Ne(O,Pr),z=G&&(D=(B=G.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:M,K=G&&(L=(U=G.props)===null||U===void 0?void 0:U.endIndex)!==null&&L!==void 0?L:E,ce=z!==M||K!==E,de=!J(w),ke=de&&!ce?b.updateId:b.updateId+1;return I(I({updateId:ke},d(I(I({props:p},b),{},{updateId:ke,dataStartIndex:z,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:K})}return null}),H(y,"renderActiveDot",function(p,b,x){var w;return N.isValidElement(p)?w=N.cloneElement(p,b):V(p)?w=p(b):w=P.createElement(ah,b),P.createElement(fe,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return P.createElement(y,lr({},b,{ref:x}))});return v.displayName=y.displayName,v},vN=hw({chartName:"BarChart",GraphicalChild:Hr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:za},{axisType:"yAxis",AxisComp:Wa}],formatAxisMap:jx}),yN=hw({chartName:"AreaChart",GraphicalChild:nr,axisComponents:[{axisType:"xAxis",AxisComp:za},{axisType:"yAxis",AxisComp:Wa}],formatAxisMap:jx});export{yN as A,vN as B,r0 as C,fN as R,ct as T,za as X,Wa as Y,Hr as a,zk as b,ee as c,nr as d,wn as e,by as f,uP as g,pN as h,et as i,hN as j,dN as k,zr as l};