orbital-command 0.2.0 → 1.0.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.
- package/README.md +67 -42
- package/bin/commands/config.js +19 -0
- package/bin/commands/events.js +40 -0
- package/bin/commands/launch.js +126 -0
- package/bin/commands/manifest.js +283 -0
- package/bin/commands/registry.js +104 -0
- package/bin/commands/update.js +24 -0
- package/bin/lib/helpers.js +229 -0
- package/bin/orbital.js +147 -319
- package/dist/assets/Landing-CfQdHR0N.js +11 -0
- package/dist/assets/PrimitivesConfig-DThSipFy.js +32 -0
- package/dist/assets/QualityGates-B4kxM5UU.js +26 -0
- package/dist/assets/SessionTimeline-Bz1iZnmg.js +1 -0
- package/dist/assets/Settings-DLcZwbCT.js +12 -0
- package/dist/assets/SourceControl-BMNIz7Lt.js +36 -0
- package/dist/assets/WorkflowVisualizer-CxuSBOYu.js +69 -0
- package/dist/assets/arrow-down-DVPp6_qp.js +6 -0
- package/dist/assets/bot-NFaJBDn_.js +6 -0
- package/dist/assets/charts-LGLb8hyU.js +68 -0
- package/dist/assets/circle-x-IsFCkBZu.js +6 -0
- package/dist/assets/file-text-J1cebZXF.js +6 -0
- package/dist/assets/globe-WzeyHsUc.js +6 -0
- package/dist/assets/index-BdJ57EhC.css +1 -0
- package/dist/assets/index-o4ScMAuR.js +349 -0
- package/dist/assets/key-CKR8JJSj.js +6 -0
- package/dist/assets/minus-CHBsJyjp.js +6 -0
- package/dist/assets/radio-xqZaR-Uk.js +6 -0
- package/dist/assets/rocket-D_xvvNG6.js +6 -0
- package/dist/assets/shield-TdB1yv_a.js +6 -0
- package/dist/assets/ui-BmsSg9jU.js +53 -0
- package/dist/assets/useSocketListener-0L5yiN5i.js +1 -0
- package/dist/assets/useWorkflowEditor-CqeRWVQX.js +11 -0
- package/dist/assets/{vendor-Dzv9lrRc.js → vendor-Bqt8AJn2.js} +1 -1
- package/dist/assets/workflow-constants-Rw-GmgHZ.js +6 -0
- package/dist/assets/zap-C9wqYMpl.js +6 -0
- package/dist/favicon.svg +1 -0
- package/dist/index.html +6 -5
- package/dist/server/server/__tests__/data-routes.test.js +126 -0
- package/dist/server/server/__tests__/helpers/db.js +17 -0
- package/dist/server/server/__tests__/helpers/mock-emitter.js +8 -0
- package/dist/server/server/__tests__/scope-routes.test.js +138 -0
- package/dist/server/server/__tests__/sprint-routes.test.js +102 -0
- package/dist/server/server/__tests__/workflow-routes.test.js +107 -0
- package/dist/server/server/config-migrator.js +135 -0
- package/dist/server/server/config.js +51 -7
- package/dist/server/server/database.js +21 -28
- package/dist/server/server/global-config.js +143 -0
- package/dist/server/server/index.js +118 -276
- package/dist/server/server/init.js +243 -225
- package/dist/server/server/launch.js +29 -0
- package/dist/server/server/manifest-types.js +8 -0
- package/dist/server/server/manifest.js +454 -0
- package/dist/server/server/migrate-legacy.js +229 -0
- package/dist/server/server/parsers/event-parser.js +4 -1
- package/dist/server/server/parsers/event-parser.test.js +117 -0
- package/dist/server/server/parsers/scope-parser.js +74 -28
- package/dist/server/server/parsers/scope-parser.test.js +230 -0
- package/dist/server/server/project-context.js +265 -0
- package/dist/server/server/project-emitter.js +41 -0
- package/dist/server/server/project-manager.js +297 -0
- package/dist/server/server/routes/aggregate-routes.js +871 -0
- package/dist/server/server/routes/config-routes.js +41 -90
- package/dist/server/server/routes/data-routes.js +25 -123
- package/dist/server/server/routes/dispatch-routes.js +37 -15
- package/dist/server/server/routes/git-routes.js +74 -0
- package/dist/server/server/routes/manifest-routes.js +319 -0
- package/dist/server/server/routes/scope-routes.js +45 -28
- package/dist/server/server/routes/sync-routes.js +134 -0
- package/dist/server/server/routes/version-routes.js +1 -15
- package/dist/server/server/routes/workflow-routes.js +9 -3
- package/dist/server/server/schema.js +3 -0
- package/dist/server/server/services/batch-orchestrator.js +41 -17
- package/dist/server/server/services/claude-session-service.js +17 -14
- package/dist/server/server/services/config-service.js +10 -1
- package/dist/server/server/services/deploy-service.test.js +119 -0
- package/dist/server/server/services/event-service.js +64 -1
- package/dist/server/server/services/event-service.test.js +191 -0
- package/dist/server/server/services/gate-service.test.js +105 -0
- package/dist/server/server/services/git-service.js +108 -4
- package/dist/server/server/services/github-service.js +110 -2
- package/dist/server/server/services/readiness-service.test.js +190 -0
- package/dist/server/server/services/scope-cache.js +5 -1
- package/dist/server/server/services/scope-cache.test.js +142 -0
- package/dist/server/server/services/scope-service.js +222 -131
- package/dist/server/server/services/scope-service.test.js +137 -0
- package/dist/server/server/services/sprint-orchestrator.js +29 -15
- package/dist/server/server/services/sprint-service.js +23 -3
- package/dist/server/server/services/sprint-service.test.js +238 -0
- package/dist/server/server/services/sync-service.js +434 -0
- package/dist/server/server/services/sync-types.js +2 -0
- package/dist/server/server/services/workflow-service.js +26 -5
- package/dist/server/server/services/workflow-service.test.js +159 -0
- package/dist/server/server/settings-sync.js +284 -0
- package/dist/server/server/uninstall.js +195 -0
- package/dist/server/server/update-planner.js +279 -0
- package/dist/server/server/update.js +212 -0
- package/dist/server/server/utils/cc-hooks-parser.js +3 -0
- package/dist/server/server/utils/cc-hooks-parser.test.js +86 -0
- package/dist/server/server/utils/dispatch-utils.js +83 -24
- package/dist/server/server/utils/dispatch-utils.test.js +182 -0
- package/dist/server/server/utils/flag-builder.js +54 -0
- package/dist/server/server/utils/json-fields.js +14 -0
- package/dist/server/server/utils/json-fields.test.js +73 -0
- package/dist/server/server/utils/logger.js +37 -3
- package/dist/server/server/utils/package-info.js +30 -0
- package/dist/server/server/utils/route-helpers.js +47 -0
- package/dist/server/server/utils/route-helpers.test.js +115 -0
- package/dist/server/server/utils/terminal-launcher.js +79 -25
- package/dist/server/server/utils/worktree-manager.js +13 -4
- package/dist/server/server/validator.js +230 -0
- package/dist/server/server/watchers/event-watcher.js +28 -13
- package/dist/server/server/watchers/global-watcher.js +63 -0
- package/dist/server/server/watchers/scope-watcher.js +27 -12
- package/dist/server/server/wizard/config-editor.js +237 -0
- package/dist/server/server/wizard/detect.js +96 -0
- package/dist/server/server/wizard/doctor.js +115 -0
- package/dist/server/server/wizard/index.js +340 -0
- package/dist/server/server/wizard/phases/confirm.js +39 -0
- package/dist/server/server/wizard/phases/project-setup.js +90 -0
- package/dist/server/server/wizard/phases/setup-wizard.js +66 -0
- package/dist/server/server/wizard/phases/welcome.js +32 -0
- package/dist/server/server/wizard/phases/workflow-setup.js +22 -0
- package/dist/server/server/wizard/types.js +29 -0
- package/dist/server/server/wizard/ui.js +73 -0
- package/dist/server/shared/__fixtures__/workflow-configs.js +75 -0
- package/dist/server/shared/api-types.js +80 -1
- package/dist/server/shared/default-workflow.json +65 -0
- package/dist/server/shared/onboarding-tour.test.js +81 -0
- package/dist/server/shared/project-colors.js +24 -0
- package/dist/server/shared/workflow-config.test.js +84 -0
- package/dist/server/shared/workflow-engine.js +1 -1
- package/dist/server/shared/workflow-engine.test.js +302 -0
- package/dist/server/shared/workflow-normalizer.js +101 -0
- package/dist/server/shared/workflow-normalizer.test.js +100 -0
- package/dist/server/src/components/onboarding/tour-steps.js +84 -0
- package/package.json +34 -29
- package/schemas/orbital.config.schema.json +2 -5
- package/scripts/postinstall.js +18 -6
- package/scripts/release.sh +53 -0
- package/server/__tests__/data-routes.test.ts +151 -0
- package/server/__tests__/helpers/db.ts +19 -0
- package/server/__tests__/helpers/mock-emitter.ts +10 -0
- package/server/__tests__/scope-routes.test.ts +158 -0
- package/server/__tests__/sprint-routes.test.ts +118 -0
- package/server/__tests__/workflow-routes.test.ts +120 -0
- package/server/config-migrator.ts +160 -0
- package/server/config.ts +64 -12
- package/server/database.ts +22 -31
- package/server/global-config.ts +204 -0
- package/server/index.ts +139 -316
- package/server/init.ts +266 -234
- package/server/launch.ts +32 -0
- package/server/manifest-types.ts +145 -0
- package/server/manifest.ts +494 -0
- package/server/migrate-legacy.ts +290 -0
- package/server/parsers/event-parser.test.ts +135 -0
- package/server/parsers/event-parser.ts +4 -1
- package/server/parsers/scope-parser.test.ts +270 -0
- package/server/parsers/scope-parser.ts +79 -31
- package/server/project-context.ts +325 -0
- package/server/project-emitter.ts +50 -0
- package/server/project-manager.ts +368 -0
- package/server/routes/aggregate-routes.ts +968 -0
- package/server/routes/config-routes.ts +43 -85
- package/server/routes/data-routes.ts +34 -156
- package/server/routes/dispatch-routes.ts +46 -17
- package/server/routes/git-routes.ts +77 -0
- package/server/routes/manifest-routes.ts +388 -0
- package/server/routes/scope-routes.ts +39 -30
- package/server/routes/sync-routes.ts +175 -0
- package/server/routes/version-routes.ts +1 -16
- package/server/routes/workflow-routes.ts +9 -3
- package/server/schema.ts +3 -0
- package/server/services/batch-orchestrator.ts +41 -17
- package/server/services/claude-session-service.ts +16 -14
- package/server/services/config-service.ts +10 -1
- package/server/services/deploy-service.test.ts +145 -0
- package/server/services/deploy-service.ts +2 -2
- package/server/services/event-service.test.ts +242 -0
- package/server/services/event-service.ts +92 -3
- package/server/services/gate-service.test.ts +131 -0
- package/server/services/gate-service.ts +2 -2
- package/server/services/git-service.ts +137 -4
- package/server/services/github-service.ts +120 -2
- package/server/services/readiness-service.test.ts +217 -0
- package/server/services/scope-cache.test.ts +167 -0
- package/server/services/scope-cache.ts +4 -1
- package/server/services/scope-service.test.ts +169 -0
- package/server/services/scope-service.ts +224 -130
- package/server/services/sprint-orchestrator.ts +30 -15
- package/server/services/sprint-service.test.ts +271 -0
- package/server/services/sprint-service.ts +29 -5
- package/server/services/sync-service.ts +482 -0
- package/server/services/sync-types.ts +77 -0
- package/server/services/workflow-service.test.ts +190 -0
- package/server/services/workflow-service.ts +29 -9
- package/server/settings-sync.ts +359 -0
- package/server/uninstall.ts +214 -0
- package/server/update-planner.ts +346 -0
- package/server/update.ts +263 -0
- package/server/utils/cc-hooks-parser.test.ts +96 -0
- package/server/utils/cc-hooks-parser.ts +4 -0
- package/server/utils/dispatch-utils.test.ts +245 -0
- package/server/utils/dispatch-utils.ts +102 -30
- package/server/utils/flag-builder.ts +56 -0
- package/server/utils/json-fields.test.ts +83 -0
- package/server/utils/json-fields.ts +14 -0
- package/server/utils/logger.ts +40 -3
- package/server/utils/package-info.ts +32 -0
- package/server/utils/route-helpers.test.ts +144 -0
- package/server/utils/route-helpers.ts +50 -0
- package/server/utils/terminal-launcher.ts +85 -25
- package/server/utils/worktree-manager.ts +9 -4
- package/server/validator.ts +270 -0
- package/server/watchers/event-watcher.ts +24 -12
- package/server/watchers/global-watcher.ts +77 -0
- package/server/watchers/scope-watcher.ts +21 -9
- package/server/wizard/config-editor.ts +248 -0
- package/server/wizard/detect.ts +104 -0
- package/server/wizard/doctor.ts +114 -0
- package/server/wizard/index.ts +438 -0
- package/server/wizard/phases/confirm.ts +45 -0
- package/server/wizard/phases/project-setup.ts +106 -0
- package/server/wizard/phases/setup-wizard.ts +78 -0
- package/server/wizard/phases/welcome.ts +39 -0
- package/server/wizard/phases/workflow-setup.ts +28 -0
- package/server/wizard/types.ts +56 -0
- package/server/wizard/ui.ts +92 -0
- package/shared/__fixtures__/workflow-configs.ts +80 -0
- package/shared/api-types.ts +106 -0
- package/shared/onboarding-tour.test.ts +94 -0
- package/shared/project-colors.ts +24 -0
- package/shared/workflow-config.test.ts +111 -0
- package/shared/workflow-config.ts +7 -0
- package/shared/workflow-engine.test.ts +388 -0
- package/shared/workflow-engine.ts +1 -1
- package/shared/workflow-normalizer.test.ts +119 -0
- package/shared/workflow-normalizer.ts +118 -0
- package/templates/agents/QUICK-REFERENCE.md +1 -0
- package/templates/agents/README.md +1 -0
- package/templates/agents/SKILL-TRIGGERS.md +11 -0
- package/templates/agents/green-team/deep-dive.md +361 -0
- package/templates/hooks/end-session.sh +4 -1
- package/templates/hooks/init-session.sh +1 -0
- package/templates/hooks/orbital-emit.sh +2 -2
- package/templates/hooks/orbital-report-deploy.sh +4 -4
- package/templates/hooks/orbital-report-gates.sh +4 -4
- package/templates/hooks/orbital-scope-update.sh +1 -1
- package/templates/hooks/scope-commit-logger.sh +2 -2
- package/templates/hooks/scope-create-cleanup.sh +2 -2
- package/templates/hooks/scope-create-gate.sh +2 -5
- package/templates/hooks/scope-gate.sh +4 -6
- package/templates/hooks/scope-helpers.sh +28 -1
- package/templates/hooks/scope-lifecycle-gate.sh +14 -5
- package/templates/hooks/scope-prepare.sh +67 -12
- package/templates/hooks/scope-transition.sh +14 -6
- package/templates/hooks/time-tracker.sh +2 -5
- package/templates/migrations/renames.json +1 -0
- package/templates/orbital.config.json +8 -6
- package/{shared/default-workflow.json → templates/presets/default.json} +65 -0
- package/templates/presets/development.json +4 -4
- package/templates/presets/gitflow.json +7 -0
- package/templates/prompts/README.md +23 -0
- package/templates/prompts/deep-dive-audit.md +94 -0
- package/templates/quick/rules.md +56 -5
- package/templates/settings-hooks.json +1 -1
- package/templates/skills/git-commit/SKILL.md +27 -7
- package/templates/skills/git-dev/SKILL.md +13 -4
- package/templates/skills/git-main/SKILL.md +13 -3
- package/templates/skills/git-production/SKILL.md +9 -2
- package/templates/skills/git-staging/SKILL.md +11 -3
- package/templates/skills/scope-create/SKILL.md +17 -3
- package/templates/skills/scope-fix-review/SKILL.md +14 -7
- package/templates/skills/scope-implement/SKILL.md +15 -4
- package/templates/skills/scope-post-review/SKILL.md +77 -7
- package/templates/skills/scope-pre-review/SKILL.md +11 -4
- package/templates/skills/scope-verify/SKILL.md +5 -3
- package/templates/skills/test-code-review/SKILL.md +41 -33
- package/templates/skills/test-scaffold/SKILL.md +222 -0
- package/dist/assets/WorkflowVisualizer-BZ21PIIF.js +0 -84
- package/dist/assets/charts-D__PA1zp.js +0 -72
- package/dist/assets/index-D1G6i0nS.css +0 -1
- package/dist/assets/index-DpItvKpf.js +0 -419
- package/dist/assets/ui-BvF022GT.js +0 -53
- package/index.html +0 -15
- package/postcss.config.js +0 -6
- package/src/App.tsx +0 -33
- package/src/components/AgentBadge.tsx +0 -40
- package/src/components/BatchPreflightModal.tsx +0 -115
- package/src/components/CardDisplayToggle.tsx +0 -74
- package/src/components/ColumnHeaderActions.tsx +0 -55
- package/src/components/ColumnMenu.tsx +0 -99
- package/src/components/DeployHistory.tsx +0 -141
- package/src/components/DispatchModal.tsx +0 -164
- package/src/components/DispatchPopover.tsx +0 -139
- package/src/components/DragOverlay.tsx +0 -25
- package/src/components/DriftSidebar.tsx +0 -140
- package/src/components/EnvironmentStrip.tsx +0 -88
- package/src/components/ErrorBoundary.tsx +0 -62
- package/src/components/FilterChip.tsx +0 -105
- package/src/components/GateIndicator.tsx +0 -33
- package/src/components/IdeaDetailModal.tsx +0 -190
- package/src/components/IdeaFormDialog.tsx +0 -113
- package/src/components/KanbanColumn.tsx +0 -201
- package/src/components/MarkdownRenderer.tsx +0 -114
- package/src/components/NeonGrid.tsx +0 -128
- package/src/components/PromotionQueue.tsx +0 -89
- package/src/components/ScopeCard.tsx +0 -234
- package/src/components/ScopeDetailModal.tsx +0 -255
- package/src/components/ScopeFilterBar.tsx +0 -152
- package/src/components/SearchInput.tsx +0 -102
- package/src/components/SessionPanel.tsx +0 -335
- package/src/components/SprintContainer.tsx +0 -303
- package/src/components/SprintDependencyDialog.tsx +0 -78
- package/src/components/SprintPreflightModal.tsx +0 -138
- package/src/components/StatusBar.tsx +0 -168
- package/src/components/SwimCell.tsx +0 -67
- package/src/components/SwimLaneRow.tsx +0 -94
- package/src/components/SwimlaneBoardView.tsx +0 -108
- package/src/components/VersionBadge.tsx +0 -139
- package/src/components/ViewModeSelector.tsx +0 -114
- package/src/components/config/AgentChip.tsx +0 -53
- package/src/components/config/AgentCreateDialog.tsx +0 -321
- package/src/components/config/AgentEditor.tsx +0 -175
- package/src/components/config/DirectoryTree.tsx +0 -582
- package/src/components/config/FileEditor.tsx +0 -550
- package/src/components/config/HookChip.tsx +0 -50
- package/src/components/config/StageCard.tsx +0 -198
- package/src/components/config/TransitionZone.tsx +0 -173
- package/src/components/config/UnifiedWorkflowPipeline.tsx +0 -216
- package/src/components/config/WorkflowPipeline.tsx +0 -161
- package/src/components/source-control/BranchList.tsx +0 -93
- package/src/components/source-control/BranchPanel.tsx +0 -105
- package/src/components/source-control/CommitLog.tsx +0 -100
- package/src/components/source-control/CommitRow.tsx +0 -47
- package/src/components/source-control/GitHubPanel.tsx +0 -110
- package/src/components/source-control/GitHubSetupGuide.tsx +0 -52
- package/src/components/source-control/GitOverviewBar.tsx +0 -101
- package/src/components/source-control/PullRequestList.tsx +0 -69
- package/src/components/source-control/WorktreeList.tsx +0 -80
- package/src/components/ui/badge.tsx +0 -41
- package/src/components/ui/button.tsx +0 -55
- package/src/components/ui/card.tsx +0 -78
- package/src/components/ui/dialog.tsx +0 -94
- package/src/components/ui/popover.tsx +0 -33
- package/src/components/ui/scroll-area.tsx +0 -54
- package/src/components/ui/separator.tsx +0 -28
- package/src/components/ui/tabs.tsx +0 -52
- package/src/components/ui/toggle-switch.tsx +0 -35
- package/src/components/ui/tooltip.tsx +0 -27
- package/src/components/workflow/AddEdgeDialog.tsx +0 -217
- package/src/components/workflow/AddListDialog.tsx +0 -201
- package/src/components/workflow/ChecklistEditor.tsx +0 -239
- package/src/components/workflow/CommandPrefixManager.tsx +0 -118
- package/src/components/workflow/ConfigSettingsPanel.tsx +0 -189
- package/src/components/workflow/DirectionSelector.tsx +0 -133
- package/src/components/workflow/DispatchConfigPanel.tsx +0 -180
- package/src/components/workflow/EdgeDetailPanel.tsx +0 -236
- package/src/components/workflow/EdgePropertyEditor.tsx +0 -251
- package/src/components/workflow/EditToolbar.tsx +0 -138
- package/src/components/workflow/HookDetailPanel.tsx +0 -250
- package/src/components/workflow/HookExecutionLog.tsx +0 -24
- package/src/components/workflow/HookSourceModal.tsx +0 -129
- package/src/components/workflow/HooksDashboard.tsx +0 -363
- package/src/components/workflow/ListPropertyEditor.tsx +0 -251
- package/src/components/workflow/MigrationPreviewDialog.tsx +0 -237
- package/src/components/workflow/MovementRulesPanel.tsx +0 -188
- package/src/components/workflow/NodeDetailPanel.tsx +0 -245
- package/src/components/workflow/PresetSelector.tsx +0 -414
- package/src/components/workflow/SkillCommandBuilder.tsx +0 -174
- package/src/components/workflow/WorkflowEdgeComponent.tsx +0 -145
- package/src/components/workflow/WorkflowNode.tsx +0 -147
- package/src/components/workflow/graphLayout.ts +0 -186
- package/src/components/workflow/mergeHooks.ts +0 -85
- package/src/components/workflow/useEditHistory.ts +0 -88
- package/src/components/workflow/useWorkflowEditor.ts +0 -262
- package/src/components/workflow/validateConfig.ts +0 -70
- package/src/hooks/useActiveDispatches.ts +0 -198
- package/src/hooks/useBoardSettings.ts +0 -170
- package/src/hooks/useCardDisplay.ts +0 -57
- package/src/hooks/useCcHooks.ts +0 -24
- package/src/hooks/useConfigTree.ts +0 -51
- package/src/hooks/useEnforcementRules.ts +0 -46
- package/src/hooks/useEvents.ts +0 -59
- package/src/hooks/useFileEditor.ts +0 -165
- package/src/hooks/useGates.ts +0 -57
- package/src/hooks/useIdeaActions.ts +0 -53
- package/src/hooks/useKanbanDnd.ts +0 -410
- package/src/hooks/useOrbitalConfig.ts +0 -54
- package/src/hooks/usePipeline.ts +0 -47
- package/src/hooks/usePipelineData.ts +0 -338
- package/src/hooks/useReconnect.ts +0 -25
- package/src/hooks/useScopeFilters.ts +0 -125
- package/src/hooks/useScopeSessions.ts +0 -44
- package/src/hooks/useScopes.ts +0 -67
- package/src/hooks/useSearch.ts +0 -67
- package/src/hooks/useSettings.tsx +0 -187
- package/src/hooks/useSocket.ts +0 -25
- package/src/hooks/useSourceControl.ts +0 -105
- package/src/hooks/useSprintPreflight.ts +0 -55
- package/src/hooks/useSprints.ts +0 -154
- package/src/hooks/useStatusBarHighlight.ts +0 -18
- package/src/hooks/useSwimlaneBoardSettings.ts +0 -104
- package/src/hooks/useTheme.ts +0 -9
- package/src/hooks/useTransitionReadiness.ts +0 -53
- package/src/hooks/useVersion.ts +0 -155
- package/src/hooks/useViolations.ts +0 -65
- package/src/hooks/useWorkflow.tsx +0 -125
- package/src/hooks/useZoomModifier.ts +0 -19
- package/src/index.css +0 -797
- package/src/layouts/DashboardLayout.tsx +0 -113
- package/src/lib/collisionDetection.ts +0 -20
- package/src/lib/scope-fields.ts +0 -61
- package/src/lib/swimlane.ts +0 -146
- package/src/lib/utils.ts +0 -15
- package/src/main.tsx +0 -19
- package/src/socket.ts +0 -11
- package/src/types/index.ts +0 -497
- package/src/views/AgentFeed.tsx +0 -339
- package/src/views/DeployPipeline.tsx +0 -59
- package/src/views/EnforcementView.tsx +0 -378
- package/src/views/PrimitivesConfig.tsx +0 -500
- package/src/views/QualityGates.tsx +0 -1012
- package/src/views/ScopeBoard.tsx +0 -454
- package/src/views/SessionTimeline.tsx +0 -516
- package/src/views/Settings.tsx +0 -183
- package/src/views/SourceControl.tsx +0 -95
- package/src/views/WorkflowVisualizer.tsx +0 -382
- package/tailwind.config.js +0 -161
- package/tsconfig.json +0 -25
- package/vite.config.ts +0 -38
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{e as mi,g as oe,a as q,d as S}from"./vendor-Dzv9lrRc.js";function Ub(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=Ub(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function J(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Ub(e))&&(n&&(n+=" "),n+=t);return n}var mo,Vh;function Le(){if(Vh)return mo;Vh=1;var e=Array.isArray;return mo=e,mo}var go,Xh;function Hb(){if(Xh)return go;Xh=1;var e=typeof mi=="object"&&mi&&mi.Object===Object&&mi;return go=e,go}var bo,Yh;function ft(){if(Yh)return bo;Yh=1;var e=Hb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return bo=r,bo}var xo,Zh;function li(){if(Zh)return xo;Zh=1;var e=ft(),t=e.Symbol;return xo=t,xo}var wo,Jh;function dO(){if(Jh)return wo;Jh=1;var e=li(),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 wo=a,wo}var Oo,Qh;function vO(){if(Qh)return Oo;Qh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Oo=r,Oo}var _o,ep;function St(){if(ep)return _o;ep=1;var e=li(),t=dO(),r=vO(),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 _o=o,_o}var Ao,tp;function Pt(){if(tp)return Ao;tp=1;function e(t){return t!=null&&typeof t=="object"}return Ao=e,Ao}var So,rp;function en(){if(rp)return So;rp=1;var e=St(),t=Pt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return So=n,So}var Po,np;function Ff(){if(np)return Po;np=1;var e=Le(),t=en(),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 Po=i,Po}var To,ip;function Rt(){if(ip)return To;ip=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return To=e,To}var Eo,ap;function Wf(){if(ap)return Eo;ap=1;var e=St(),t=Rt(),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 Eo=o,Eo}var jo,op;function yO(){if(op)return jo;op=1;var e=ft(),t=e["__core-js_shared__"];return jo=t,jo}var Mo,up;function mO(){if(up)return Mo;up=1;var e=yO(),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 Mo=r,Mo}var $o,cp;function Kb(){if(cp)return $o;cp=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 $o=r,$o}var Io,sp;function gO(){if(sp)return Io;sp=1;var e=Wf(),t=mO(),r=Rt(),n=Kb(),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 Io=l,Io}var Co,lp;function bO(){if(lp)return Co;lp=1;function e(t,r){return t==null?void 0:t[r]}return Co=e,Co}var ko,fp;function cr(){if(fp)return ko;fp=1;var e=gO(),t=bO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ko=r,ko}var Ro,hp;function $a(){if(hp)return Ro;hp=1;var e=cr(),t=e(Object,"create");return Ro=t,Ro}var Do,pp;function xO(){if(pp)return Do;pp=1;var e=$a();function t(){this.__data__=e?e(null):{},this.size=0}return Do=t,Do}var No,dp;function wO(){if(dp)return No;dp=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return No=e,No}var qo,vp;function OO(){if(vp)return qo;vp=1;var e=$a(),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 qo=i,qo}var Lo,yp;function _O(){if(yp)return Lo;yp=1;var e=$a(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Lo=n,Lo}var Bo,mp;function AO(){if(mp)return Bo;mp=1;var e=$a(),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 Bo=r,Bo}var Fo,gp;function SO(){if(gp)return Fo;gp=1;var e=xO(),t=wO(),r=OO(),n=_O(),i=AO();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,Fo=a,Fo}var Wo,bp;function PO(){if(bp)return Wo;bp=1;function e(){this.__data__=[],this.size=0}return Wo=e,Wo}var zo,xp;function zf(){if(xp)return zo;xp=1;function e(t,r){return t===r||t!==t&&r!==r}return zo=e,zo}var Uo,wp;function Ia(){if(wp)return Uo;wp=1;var e=zf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Uo=t,Uo}var Ho,Op;function TO(){if(Op)return Ho;Op=1;var e=Ia(),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 Ho=n,Ho}var Ko,_p;function EO(){if(_p)return Ko;_p=1;var e=Ia();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ko=t,Ko}var Go,Ap;function jO(){if(Ap)return Go;Ap=1;var e=Ia();function t(r){return e(this.__data__,r)>-1}return Go=t,Go}var Vo,Sp;function MO(){if(Sp)return Vo;Sp=1;var e=Ia();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 Vo=t,Vo}var Xo,Pp;function Ca(){if(Pp)return Xo;Pp=1;var e=PO(),t=TO(),r=EO(),n=jO(),i=MO();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,Xo=a,Xo}var Yo,Tp;function Uf(){if(Tp)return Yo;Tp=1;var e=cr(),t=ft(),r=e(t,"Map");return Yo=r,Yo}var Zo,Ep;function $O(){if(Ep)return Zo;Ep=1;var e=SO(),t=Ca(),r=Uf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Zo=n,Zo}var Jo,jp;function IO(){if(jp)return Jo;jp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Jo=e,Jo}var Qo,Mp;function ka(){if(Mp)return Qo;Mp=1;var e=IO();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Qo=t,Qo}var eu,$p;function CO(){if($p)return eu;$p=1;var e=ka();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return eu=t,eu}var tu,Ip;function kO(){if(Ip)return tu;Ip=1;var e=ka();function t(r){return e(this,r).get(r)}return tu=t,tu}var ru,Cp;function RO(){if(Cp)return ru;Cp=1;var e=ka();function t(r){return e(this,r).has(r)}return ru=t,ru}var nu,kp;function DO(){if(kp)return nu;kp=1;var e=ka();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 nu=t,nu}var iu,Rp;function Hf(){if(Rp)return iu;Rp=1;var e=$O(),t=CO(),r=kO(),n=RO(),i=DO();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,iu=a,iu}var au,Dp;function Gb(){if(Dp)return au;Dp=1;var e=Hf(),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,au=r,au}var ou,Np;function NO(){if(Np)return ou;Np=1;var e=Gb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return ou=r,ou}var uu,qp;function qO(){if(qp)return uu;qp=1;var e=NO(),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 uu=n,uu}var cu,Lp;function Kf(){if(Lp)return cu;Lp=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 cu=e,cu}var su,Bp;function LO(){if(Bp)return su;Bp=1;var e=li(),t=Kf(),r=Le(),n=en(),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 su=o,su}var lu,Fp;function Vb(){if(Fp)return lu;Fp=1;var e=LO();function t(r){return r==null?"":e(r)}return lu=t,lu}var fu,Wp;function Xb(){if(Wp)return fu;Wp=1;var e=Le(),t=Ff(),r=qO(),n=Vb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return fu=i,fu}var hu,zp;function Ra(){if(zp)return hu;zp=1;var e=en();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return hu=t,hu}var pu,Up;function Gf(){if(Up)return pu;Up=1;var e=Xb(),t=Ra();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 pu=r,pu}var du,Hp;function Yb(){if(Hp)return du;Hp=1;var e=Gf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return du=t,du}var BO=Yb();const Ue=oe(BO);var vu,Kp;function FO(){if(Kp)return vu;Kp=1;function e(t){return t==null}return vu=e,vu}var WO=FO();const Y=oe(WO);var yu,Gp;function zO(){if(Gp)return yu;Gp=1;var e=St(),t=Le(),r=Pt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return yu=i,yu}var UO=zO();const rr=oe(UO);var HO=Wf();const V=oe(HO);var KO=Rt();const tn=oe(KO);var mu={exports:{}},ne={};/**
|
|
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 Vp;function GO(){if(Vp)return ne;Vp=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 g=p.$$typeof;switch(g){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 g}}case t:return g}}}return ne.ContextConsumer=o,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=c,ne.Fragment=r,ne.Lazy=h,ne.Memo=l,ne.Portal=t,ne.Profiler=i,ne.StrictMode=n,ne.Suspense=s,ne.SuspenseList=f,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(p){return v(p)===o},ne.isContextProvider=function(p){return v(p)===a},ne.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ne.isForwardRef=function(p){return v(p)===c},ne.isFragment=function(p){return v(p)===r},ne.isLazy=function(p){return v(p)===h},ne.isMemo=function(p){return v(p)===l},ne.isPortal=function(p){return v(p)===t},ne.isProfiler=function(p){return v(p)===i},ne.isStrictMode=function(p){return v(p)===n},ne.isSuspense=function(p){return v(p)===s},ne.isSuspenseList=function(p){return v(p)===f},ne.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)},ne.typeOf=v,ne}var Xp;function VO(){return Xp||(Xp=1,mu.exports=GO()),mu.exports}var XO=VO(),gu,Yp;function Zb(){if(Yp)return gu;Yp=1;var e=St(),t=Pt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return gu=n,gu}var bu,Zp;function YO(){if(Zp)return bu;Zp=1;var e=Zb();function t(r){return e(r)&&r!=+r}return bu=t,bu}var ZO=YO();const rn=oe(ZO);var JO=Zb();const QO=oe(JO);var Ie=function(t){return t===0?0:t>0?1:-1},Xt=function(t){return rr(t)&&t.indexOf("%")===t.length-1},N=function(t){return QO(t)&&!rn(t)},e_=function(t){return Y(t)},Ae=function(t){return N(t)||rr(t)},t_=0,nn=function(t){var r=++t_;return"".concat(t||"").concat(r)},Ce=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(!N(t)&&!rr(t))return n;var a;if(Xt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return rn(a)&&(a=n),i&&a>r&&(a=r),a},$t=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},r_=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},Ne=function(t,r){return N(t)&&N(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ci(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ue(n,t))===r})}var n_=function(t,r){return N(t)&&N(r)?t-r:rr(t)&&rr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function _r(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 bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}var i_=["viewBox","children"],a_=["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"],Jp=["points","pathLength"],xu={svg:i_,polygon:Jp,polyline:Jp},Vf=["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"],ki=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(q.isValidElement(t)&&(n=t.props),!tn(n))return null;var i={};return Object.keys(n).forEach(function(a){Vf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},o_=function(t,r,n){return function(i){return t(r,n,i),null}},nr=function(t,r,n){if(!tn(t)||bl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Vf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=o_(o,r,n))}),i},u_=["children"],c_=["children"];function Qp(e,t){if(e==null)return{};var r=s_(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 s_(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 xl(e){"@babel/helpers - typeof";return xl=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},xl(e)}var ed={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"},bt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},td=null,wu=null,Xf=function e(t){if(t===td&&Array.isArray(wu))return wu;var r=[];return q.Children.forEach(t,function(n){Y(n)||(XO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),wu=r,td=t,r};function Ye(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return bt(i)}):n=[bt(t)],Xf(e).forEach(function(i){var a=Ue(i,"type.displayName")||Ue(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function We(e,t){var r=Ye(e,t);return r&&r[0]}var rd=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!N(n)||n<=0||!N(i)||i<=0)},l_=["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"],f_=function(t){return t&&t.type&&rr(t.type)&&l_.indexOf(t.type)>=0},h_=function(t){return t&&xl(t)==="object"&&"clipDot"in t},p_=function(t,r,n,i){var a,o=(a=xu==null?void 0:xu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||a_.includes(r))||n&&Vf.includes(r)},H=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(q.isValidElement(t)&&(i=t.props),!tn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;p_((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},wl=function e(t,r){if(t===r)return!0;var n=q.Children.count(t);if(n!==q.Children.count(r))return!1;if(n===0)return!0;if(n===1)return nd(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(!nd(a,o))return!1}return!0},nd=function(t,r){if(Y(t)&&Y(r))return!0;if(!Y(t)&&!Y(r)){var n=t.props||{},i=n.children,a=Qp(n,u_),o=r.props||{},u=o.children,c=Qp(o,c_);return i&&u?_r(a,c)&&wl(i,u):!i&&!u?_r(a,c):!1}return!1},id=function(t,r){var n=[],i={};return Xf(t).forEach(function(a,o){if(f_(a))n.push(a);else if(a){var u=bt(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},d_=function(t){var r=t&&t.type;return r&&ed[r]?ed[r]:null},v_=function(t,r){return Xf(r).indexOf(t)},y_=["children","width","height","viewBox","className","style","title","desc"];function Ol(){return Ol=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},Ol.apply(this,arguments)}function m_(e,t){if(e==null)return{};var r=g_(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 g_(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 _l(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=m_(e,y_),f=i||{width:r,height:n,x:0,y:0},l=J("recharts-surface",a);return S.createElement("svg",Ol({},H(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),S.createElement("title",null,u),S.createElement("desc",null,c),t)}var b_=["children","className"];function Al(){return Al=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},Al.apply(this,arguments)}function x_(e,t){if(e==null)return{};var r=w_(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 w_(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 ee=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=x_(e,b_),a=J("recharts-layer",n);return S.createElement("g",Al({className:a},H(i,!0),{ref:t}),r)}),rt=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]},Ou,ad;function O_(){if(ad)return Ou;ad=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 Ou=e,Ou}var _u,od;function __(){if(od)return _u;od=1;var e=O_();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 _u=t,_u}var Au,ud;function Jb(){if(ud)return Au;ud=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 Au=c,Au}var Su,cd;function A_(){if(cd)return Su;cd=1;function e(t){return t.split("")}return Su=e,Su}var Pu,sd;function S_(){if(sd)return Pu;sd=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+")*",g=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+g,"g");function O(m){return m.match(w)||[]}return Pu=O,Pu}var Tu,ld;function P_(){if(ld)return Tu;ld=1;var e=A_(),t=Jb(),r=S_();function n(i){return t(i)?r(i):e(i)}return Tu=n,Tu}var Eu,fd;function T_(){if(fd)return Eu;fd=1;var e=__(),t=Jb(),r=P_(),n=Vb();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 Eu=i,Eu}var ju,hd;function E_(){if(hd)return ju;hd=1;var e=T_(),t=e("toUpperCase");return ju=t,ju}var j_=E_();const Da=oe(j_);function se(e){return function(){return e}}const Qb=Math.cos,Ri=Math.sin,nt=Math.sqrt,Di=Math.PI,Na=2*Di,Sl=Math.PI,Pl=2*Sl,Kt=1e-6,M_=Pl-Kt;function e0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return e0;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 I_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?e0:$_(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>Kt)if(!(Math.abs(l*c-s*f)>Kt)||!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,g=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Sl-Math.acos((v+h-p)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>Kt&&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)>Kt||Math.abs(this._y1-f)>Kt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Pl+Pl),h>M_?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>Kt&&this._append`A${n},${n},0,${+(h>=Sl)},${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 Yf(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 I_(t)}function Zf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function t0(e){this._context=e}t0.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 qa(e){return new t0(e)}function r0(e){return e[0]}function n0(e){return e[1]}function i0(e,t){var r=se(!0),n=null,i=qa,a=null,o=Yf(u);e=typeof e=="function"?e:e===void 0?r0:se(e),t=typeof t=="function"?t:t===void 0?n0:se(t);function u(c){var s,f=(c=Zf(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:se(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:se(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:se(!!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 gi(e,t,r){var n=null,i=se(!0),a=null,o=qa,u=null,c=Yf(s);e=typeof e=="function"?e:e===void 0?r0:se(+e),t=typeof t=="function"?t:se(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?n0:se(+r);function s(l){var h,d,y,v=(l=Zf(l)).length,p,g=!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))===g)if(g=!g)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()}g&&(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 i0().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:se(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:se(+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:se(!!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 a0{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 C_(e){return new a0(e,!0)}function k_(e){return new a0(e,!1)}const Jf={draw(e,t){const r=nt(t/Di);e.moveTo(r,0),e.arc(0,0,r,0,Na)}},R_={draw(e,t){const r=nt(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()}},o0=nt(1/3),D_=o0*2,N_={draw(e,t){const r=nt(t/D_),n=r*o0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},q_={draw(e,t){const r=nt(t),n=-r/2;e.rect(n,n,r,r)}},L_=.8908130915292852,u0=Ri(Di/10)/Ri(7*Di/10),B_=Ri(Na/10)*u0,F_=-Qb(Na/10)*u0,W_={draw(e,t){const r=nt(t*L_),n=B_*r,i=F_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Na*a/5,u=Qb(o),c=Ri(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Mu=nt(3),z_={draw(e,t){const r=-nt(t/(Mu*3));e.moveTo(0,r*2),e.lineTo(-Mu*r,-r),e.lineTo(Mu*r,-r),e.closePath()}},He=-.5,Ke=nt(3)/2,Tl=1/nt(12),U_=(Tl/2+1)*3,H_={draw(e,t){const r=nt(t/U_),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(He*n-Ke*i,Ke*n+He*i),e.lineTo(He*a-Ke*o,Ke*a+He*o),e.lineTo(He*u-Ke*c,Ke*u+He*c),e.lineTo(He*n+Ke*i,He*i-Ke*n),e.lineTo(He*a+Ke*o,He*o-Ke*a),e.lineTo(He*u+Ke*c,He*c-Ke*u),e.closePath()}};function K_(e,t){let r=null,n=Yf(i);e=typeof e=="function"?e:se(e||Jf),t=typeof t=="function"?t:se(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:se(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:se(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ni(){}function qi(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 c0(e){this._context=e}c0.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:qi(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:qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function G_(e){return new c0(e)}function s0(e){this._context=e}s0.prototype={areaStart:Ni,areaEnd:Ni,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:qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function V_(e){return new s0(e)}function l0(e){this._context=e}l0.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:qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X_(e){return new l0(e)}function f0(e){this._context=e}f0.prototype={areaStart:Ni,areaEnd:Ni,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 Y_(e){return new f0(e)}function pd(e){return e<0?-1:1}function dd(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(pd(a)+pd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function vd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function $u(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 Li(e){this._context=e}Li.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:$u(this,this._t0,vd(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,$u(this,vd(this,r=dd(this,e,t)),r);break;default:$u(this,this._t0,r=dd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function h0(e){this._context=new p0(e)}(h0.prototype=Object.create(Li.prototype)).point=function(e,t){Li.prototype.point.call(this,t,e)};function p0(e){this._context=e}p0.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 Z_(e){return new Li(e)}function J_(e){return new h0(e)}function d0(e){this._context=e}d0.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=yd(e),i=yd(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 yd(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 Q_(e){return new d0(e)}function La(e,t){this._context=e,this._t=t}La.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 e1(e){return new La(e,.5)}function t1(e){return new La(e,0)}function r1(e){return new La(e,1)}function Er(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 El(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function n1(e,t){return e[t]}function i1(e){const t=[];return t.key=e,t}function a1(){var e=se([]),t=El,r=Er,n=n1;function i(a){var o=Array.from(e.apply(this,arguments),i1),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=Zf(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:se(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:se(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?El:typeof a=="function"?a:se(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Er,i):r},i}function o1(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}Er(e,t)}}function u1(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}Er(e,t)}}function c1(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,g=v[n-1][1]||0;d+=p-g}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,Er(e,t)}}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 s1=["type","size","sizeType"];function jl(){return jl=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},jl.apply(this,arguments)}function md(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 gd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?md(Object(r),!0).forEach(function(n){l1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l1(e,t,r){return t=f1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=h1(e,"string");return jn(t)=="symbol"?t:t+""}function h1(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 p1(e,t){if(e==null)return{};var r=d1(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 d1(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 v0={symbolCircle:Jf,symbolCross:R_,symbolDiamond:N_,symbolSquare:q_,symbolStar:W_,symbolTriangle:z_,symbolWye:H_},v1=Math.PI/180,y1=function(t){var r="symbol".concat(Da(t));return v0[r]||Jf},m1=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*v1;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}},g1=function(t,r){v0["symbol".concat(Da(t))]=r},Qf=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=p1(t,s1),s=gd(gd({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=y1(n),g=K_().type(p).size(m1(a,u,n));return g()},l=s.className,h=s.cx,d=s.cy,y=H(s,!0);return h===+h&&d===+d&&a===+a?S.createElement("path",jl({},y,{className:J("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};Qf.registerSymbol=g1;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 Ml(){return Ml=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},Ml.apply(this,arguments)}function bd(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 b1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bd(Object(r),!0).forEach(function(n){Mn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w1(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,m0(n.key),n)}}function O1(e,t,r){return t&&w1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _1(e,t,r){return t=Bi(t),A1(e,y0()?Reflect.construct(t,r||[],Bi(e).constructor):t.apply(e,r))}function A1(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 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 y0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y0=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bi(e)}function P1(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&&$l(e,t)}function $l(e,t){return $l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$l(e,t)}function Mn(e,t,r){return t=m0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m0(e){var t=T1(e,"string");return jr(t)=="symbol"?t:t+""}function T1(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 Ge=32,eh=(function(e){function t(){return x1(this,t),_1(this,t,arguments)}return P1(t,e),O1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ge/2,o=Ge/6,u=Ge/3,c=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ge,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.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(Ge,"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 S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ge/8,"h").concat(Ge,"v").concat(Ge*3/4,"h").concat(-Ge,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var s=b1({},n);return delete s.legendIcon,S.cloneElement(n.legendIcon,s)}return S.createElement(Qf,{fill:c,cx:a,cy:a,size:Ge,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:Ge,height:Ge},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=J(Mn(Mn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var g=V(d.value)?null:d.value;rt(!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 S.createElement("li",Ml({className:p,style:l,key:"legend-item-".concat(y)},nr(n.props,d,y)),S.createElement(_l,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,d,y):g))})}},{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 S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(q.PureComponent);Mn(eh,"displayName","Legend");Mn(eh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Iu,xd;function E1(){if(xd)return Iu;xd=1;var e=Ca();function t(){this.__data__=new e,this.size=0}return Iu=t,Iu}var Cu,wd;function j1(){if(wd)return Cu;wd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Cu=e,Cu}var ku,Od;function M1(){if(Od)return ku;Od=1;function e(t){return this.__data__.get(t)}return ku=e,ku}var Ru,_d;function $1(){if(_d)return Ru;_d=1;function e(t){return this.__data__.has(t)}return Ru=e,Ru}var Du,Ad;function I1(){if(Ad)return Du;Ad=1;var e=Ca(),t=Uf(),r=Hf(),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 Du=i,Du}var Nu,Sd;function g0(){if(Sd)return Nu;Sd=1;var e=Ca(),t=E1(),r=j1(),n=M1(),i=$1(),a=I1();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,Nu=o,Nu}var qu,Pd;function C1(){if(Pd)return qu;Pd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return qu=t,qu}var Lu,Td;function k1(){if(Td)return Lu;Td=1;function e(t){return this.__data__.has(t)}return Lu=e,Lu}var Bu,Ed;function b0(){if(Ed)return Bu;Ed=1;var e=Hf(),t=C1(),r=k1();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,Bu=n,Bu}var Fu,jd;function x0(){if(jd)return Fu;jd=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 Fu=e,Fu}var Wu,Md;function w0(){if(Md)return Wu;Md=1;function e(t,r){return t.has(r)}return Wu=e,Wu}var zu,$d;function O0(){if($d)return zu;$d=1;var e=b0(),t=x0(),r=w0(),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 g=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<d;){var O=o[g],m=u[g];if(s)var b=h?s(m,O,g,u,o,l):s(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,c,s,l)))return w.push(A)})){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 zu=a,zu}var Uu,Id;function R1(){if(Id)return Uu;Id=1;var e=ft(),t=e.Uint8Array;return Uu=t,Uu}var Hu,Cd;function D1(){if(Cd)return Hu;Cd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Hu=e,Hu}var Ku,kd;function th(){if(kd)return Ku;kd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ku=e,Ku}var Gu,Rd;function N1(){if(Rd)return Gu;Rd=1;var e=li(),t=R1(),r=zf(),n=O0(),i=D1(),a=th(),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]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,A,P,j,E,T){switch(A){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!E(new t(b),new t(_)));case c:case s:case h:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case d:case v:return b==_+"";case l:var M=i;case y:var I=P&o;if(M||(M=a),b.size!=_.size&&!I)return!1;var $=T.get(b);if($)return $==_;P|=u,T.set(b,_);var k=n(M(b),M(_),P,j,E,T);return T.delete(b),k;case p:if(O)return O.call(b)==O.call(_)}return!1}return Gu=m,Gu}var Vu,Dd;function _0(){if(Dd)return Vu;Dd=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 Vu=e,Vu}var Xu,Nd;function q1(){if(Nd)return Xu;Nd=1;var e=_0(),t=Le();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Xu=r,Xu}var Yu,qd;function L1(){if(qd)return Yu;qd=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 Yu=e,Yu}var Zu,Ld;function B1(){if(Ld)return Zu;Ld=1;function e(){return[]}return Zu=e,Zu}var Ju,Bd;function F1(){if(Bd)return Ju;Bd=1;var e=L1(),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 Ju=a,Ju}var Qu,Fd;function W1(){if(Fd)return Qu;Fd=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Qu=e,Qu}var ec,Wd;function z1(){if(Wd)return ec;Wd=1;var e=St(),t=Pt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ec=n,ec}var tc,zd;function rh(){if(zd)return tc;zd=1;var e=z1(),t=Pt(),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 tc=a,tc}var xn={exports:{}},rc,Ud;function U1(){if(Ud)return rc;Ud=1;function e(){return!1}return rc=e,rc}xn.exports;var Hd;function A0(){return Hd||(Hd=1,(function(e,t){var r=ft(),n=U1(),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})(xn,xn.exports)),xn.exports}var nc,Kd;function nh(){if(Kd)return nc;Kd=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 nc=r,nc}var ic,Gd;function ih(){if(Gd)return ic;Gd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return ic=t,ic}var ac,Vd;function H1(){if(Vd)return ac;Vd=1;var e=St(),t=ih(),r=Pt(),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]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",j="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[b]=E[_]=E[A]=E[P]=E[j]=!0,E[n]=E[i]=E[p]=E[a]=E[g]=E[o]=E[u]=E[c]=E[s]=E[f]=E[l]=E[h]=E[d]=E[y]=E[v]=!1;function T(M){return r(M)&&t(M.length)&&!!E[e(M)]}return ac=T,ac}var oc,Xd;function S0(){if(Xd)return oc;Xd=1;function e(t){return function(r){return t(r)}}return oc=e,oc}var wn={exports:{}};wn.exports;var Yd;function K1(){return Yd||(Yd=1,(function(e,t){var r=Hb(),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})(wn,wn.exports)),wn.exports}var uc,Zd;function P0(){if(Zd)return uc;Zd=1;var e=H1(),t=S0(),r=K1(),n=r&&r.isTypedArray,i=n?t(n):e;return uc=i,uc}var cc,Jd;function G1(){if(Jd)return cc;Jd=1;var e=W1(),t=rh(),r=Le(),n=A0(),i=nh(),a=P0(),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):[],g=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,g)))&&p.push(x);return p}return cc=c,cc}var sc,Qd;function V1(){if(Qd)return sc;Qd=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return sc=t,sc}var lc,ev;function T0(){if(ev)return lc;ev=1;function e(t,r){return function(n){return t(r(n))}}return lc=e,lc}var fc,tv;function X1(){if(tv)return fc;tv=1;var e=T0(),t=e(Object.keys,Object);return fc=t,fc}var hc,rv;function Y1(){if(rv)return hc;rv=1;var e=V1(),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 hc=i,hc}var pc,nv;function fi(){if(nv)return pc;nv=1;var e=Wf(),t=ih();function r(n){return n!=null&&t(n.length)&&!e(n)}return pc=r,pc}var dc,iv;function Ba(){if(iv)return dc;iv=1;var e=G1(),t=Y1(),r=fi();function n(i){return r(i)?e(i):t(i)}return dc=n,dc}var vc,av;function Z1(){if(av)return vc;av=1;var e=q1(),t=F1(),r=Ba();function n(i){return e(i,r,t)}return vc=n,vc}var yc,ov;function J1(){if(ov)return yc;ov=1;var e=Z1(),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 g=h[p];if(!(l?g in o:n.call(o,g)))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;){g=h[p];var b=a[g],_=o[g];if(c)var A=l?c(_,b,g,o,a,f):c(b,_,g,a,o,f);if(!(A===void 0?b===_||s(b,_,u,c,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var P=a.constructor,j=o.constructor;P!=j&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof j=="function"&&j instanceof j)&&(O=!1)}return f.delete(a),f.delete(o),O}return yc=i,yc}var mc,uv;function Q1(){if(uv)return mc;uv=1;var e=cr(),t=ft(),r=e(t,"DataView");return mc=r,mc}var gc,cv;function eA(){if(cv)return gc;cv=1;var e=cr(),t=ft(),r=e(t,"Promise");return gc=r,gc}var bc,sv;function E0(){if(sv)return bc;sv=1;var e=cr(),t=ft(),r=e(t,"Set");return bc=r,bc}var xc,lv;function tA(){if(lv)return xc;lv=1;var e=cr(),t=ft(),r=e(t,"WeakMap");return xc=r,xc}var wc,fv;function rA(){if(fv)return wc;fv=1;var e=Q1(),t=Uf(),r=eA(),n=E0(),i=tA(),a=St(),o=Kb(),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),g=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,b=m?o(m):"";if(b)switch(b){case d:return h;case y:return u;case v:return s;case p:return f;case g:return l}return O}),wc=x,wc}var Oc,hv;function nA(){if(hv)return Oc;hv=1;var e=g0(),t=O0(),r=N1(),n=J1(),i=rA(),a=Le(),o=A0(),u=P0(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,g,x,w,O){var m=a(v),b=a(p),_=m?f:i(v),A=b?f:i(p);_=_==s?l:_,A=A==s?l:A;var P=_==l,j=A==l,E=_==A;if(E&&o(v)){if(!o(p))return!1;m=!0,P=!1}if(E&&!P)return O||(O=new e),m||u(v)?t(v,p,g,x,w,O):r(v,p,_,g,x,w,O);if(!(g&c)){var T=P&&d.call(v,"__wrapped__"),M=j&&d.call(p,"__wrapped__");if(T||M){var I=T?v.value():v,$=M?p.value():p;return O||(O=new e),w(I,$,g,x,O)}}return E?(O||(O=new e),n(v,p,g,x,w,O)):!1}return Oc=y,Oc}var _c,pv;function ah(){if(pv)return _c;pv=1;var e=nA(),t=Pt();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 _c=r,_c}var Ac,dv;function iA(){if(dv)return Ac;dv=1;var e=g0(),t=ah(),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 g=c(y,v,d,a,o,p);if(!(g===void 0?t(v,y,r|n,c,p):g))return!1}}return!0}return Ac=i,Ac}var Sc,vv;function j0(){if(vv)return Sc;vv=1;var e=Rt();function t(r){return r===r&&!e(r)}return Sc=t,Sc}var Pc,yv;function aA(){if(yv)return Pc;yv=1;var e=j0(),t=Ba();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 Pc=r,Pc}var Tc,mv;function M0(){if(mv)return Tc;mv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Tc=e,Tc}var Ec,gv;function oA(){if(gv)return Ec;gv=1;var e=iA(),t=aA(),r=M0();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 Ec=n,Ec}var jc,bv;function uA(){if(bv)return jc;bv=1;function e(t,r){return t!=null&&r in Object(t)}return jc=e,jc}var Mc,xv;function cA(){if(xv)return Mc;xv=1;var e=Xb(),t=rh(),r=Le(),n=nh(),i=ih(),a=Ra();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 Mc=o,Mc}var $c,wv;function sA(){if(wv)return $c;wv=1;var e=uA(),t=cA();function r(n,i){return n!=null&&t(n,i,e)}return $c=r,$c}var Ic,Ov;function lA(){if(Ov)return Ic;Ov=1;var e=ah(),t=Yb(),r=sA(),n=Ff(),i=j0(),a=M0(),o=Ra(),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 Ic=s,Ic}var Cc,_v;function an(){if(_v)return Cc;_v=1;function e(t){return t}return Cc=e,Cc}var kc,Av;function fA(){if(Av)return kc;Av=1;function e(t){return function(r){return r==null?void 0:r[t]}}return kc=e,kc}var Rc,Sv;function hA(){if(Sv)return Rc;Sv=1;var e=Gf();function t(r){return function(n){return e(n,r)}}return Rc=t,Rc}var Dc,Pv;function pA(){if(Pv)return Dc;Pv=1;var e=fA(),t=hA(),r=Ff(),n=Ra();function i(a){return r(a)?e(n(a)):t(a)}return Dc=i,Dc}var Nc,Tv;function ht(){if(Tv)return Nc;Tv=1;var e=oA(),t=lA(),r=an(),n=Le(),i=pA();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 Nc=a,Nc}var qc,Ev;function $0(){if(Ev)return qc;Ev=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 qc=e,qc}var Lc,jv;function dA(){if(jv)return Lc;jv=1;function e(t){return t!==t}return Lc=e,Lc}var Bc,Mv;function vA(){if(Mv)return Bc;Mv=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 Bc=e,Bc}var Fc,$v;function yA(){if($v)return Fc;$v=1;var e=$0(),t=dA(),r=vA();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Fc=n,Fc}var Wc,Iv;function mA(){if(Iv)return Wc;Iv=1;var e=yA();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Wc=t,Wc}var zc,Cv;function gA(){if(Cv)return zc;Cv=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 zc=e,zc}var Uc,kv;function bA(){if(kv)return Uc;kv=1;function e(){}return Uc=e,Uc}var Hc,Rv;function xA(){if(Rv)return Hc;Rv=1;var e=E0(),t=bA(),r=th(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Hc=i,Hc}var Kc,Dv;function wA(){if(Dv)return Kc;Dv=1;var e=b0(),t=mA(),r=gA(),n=w0(),i=xA(),a=th(),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 g=s?null:i(c);if(g)return a(g);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 Kc=u,Kc}var Gc,Nv;function OA(){if(Nv)return Gc;Nv=1;var e=ht(),t=wA();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Gc=r,Gc}var _A=OA();const qv=oe(_A);function I0(e,t,r){return t===!0?qv(e,r):V(t)?qv(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 AA=["ref"];function Lv(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 pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lv(Object(r),!0).forEach(function(n){Fa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bv(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,k0(n.key),n)}}function PA(e,t,r){return t&&Bv(e.prototype,t),r&&Bv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TA(e,t,r){return t=Fi(t),EA(e,C0()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function EA(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 jA(e)}function jA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C0=function(){return!!e})()}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(e)}function MA(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&&Il(e,t)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Il(e,t)}function Fa(e,t,r){return t=k0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k0(e){var t=$A(e,"string");return Mr(t)=="symbol"?t:t+""}function $A(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 IA(e,t){if(e==null)return{};var r=CA(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 CA(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 kA(e){return e.value}function RA(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=IA(t,AA);return S.createElement(eh,r)}var Fv=1,Ar=(function(e){function t(){var r;SA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=TA(this,t,[].concat(i)),Fa(r,"lastBoundingBox",{width:-1,height:-1}),r}return MA(t,e),PA(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)>Fv||Math.abs(i.height-this.lastBoundingBox.height)>Fv)&&(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?pt({},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 pt(pt({},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=pt(pt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},RA(a,pt(pt({},this.props),{},{payload:I0(f,s,kA)})))}}],[{key:"getWithHeight",value:function(n,i){var a=pt(pt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&N(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(q.PureComponent);Fa(Ar,"displayName","Legend");Fa(Ar,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Vc,Wv;function DA(){if(Wv)return Vc;Wv=1;var e=li(),t=rh(),r=Le(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Vc=i,Vc}var Xc,zv;function R0(){if(zv)return Xc;zv=1;var e=_0(),t=DA();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 Xc=r,Xc}var Yc,Uv;function NA(){if(Uv)return Yc;Uv=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 Yc=e,Yc}var Zc,Hv;function qA(){if(Hv)return Zc;Hv=1;var e=NA(),t=e();return Zc=t,Zc}var Jc,Kv;function D0(){if(Kv)return Jc;Kv=1;var e=qA(),t=Ba();function r(n,i){return n&&e(n,i,t)}return Jc=r,Jc}var Qc,Gv;function LA(){if(Gv)return Qc;Gv=1;var e=fi();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 Qc=t,Qc}var es,Vv;function oh(){if(Vv)return es;Vv=1;var e=D0(),t=LA(),r=t(e);return es=r,es}var ts,Xv;function N0(){if(Xv)return ts;Xv=1;var e=oh(),t=fi();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 ts=r,ts}var rs,Yv;function BA(){if(Yv)return rs;Yv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return rs=e,rs}var ns,Zv;function FA(){if(Zv)return ns;Zv=1;var e=en();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 ns=t,ns}var is,Jv;function WA(){if(Jv)return is;Jv=1;var e=FA();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 is=t,is}var as,Qv;function zA(){if(Qv)return as;Qv=1;var e=Kf(),t=Gf(),r=ht(),n=N0(),i=BA(),a=S0(),o=WA(),u=an(),c=Le();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,g){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 as=s,as}var os,ey;function UA(){if(ey)return os;ey=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 os=e,os}var us,ty;function HA(){if(ty)return us;ty=1;var e=UA(),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 us=r,us}var cs,ry;function KA(){if(ry)return cs;ry=1;function e(t){return function(){return t}}return cs=e,cs}var ss,ny;function q0(){if(ny)return ss;ny=1;var e=cr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ss=t,ss}var ls,iy;function GA(){if(iy)return ls;iy=1;var e=KA(),t=q0(),r=an(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return ls=n,ls}var fs,ay;function VA(){if(ay)return fs;ay=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 fs=n,fs}var hs,oy;function XA(){if(oy)return hs;oy=1;var e=GA(),t=VA(),r=t(e);return hs=r,hs}var ps,uy;function YA(){if(uy)return ps;uy=1;var e=an(),t=HA(),r=XA();function n(i,a){return r(t(i,a,e),i+"")}return ps=n,ps}var ds,cy;function Wa(){if(cy)return ds;cy=1;var e=zf(),t=fi(),r=nh(),n=Rt();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 ds=i,ds}var vs,sy;function ZA(){if(sy)return vs;sy=1;var e=R0(),t=zA(),r=YA(),n=Wa(),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 vs=i,vs}var JA=ZA();const uh=oe(JA);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 QA(e,t){return nS(e)||rS(e,t)||tS(e,t)||eS()}function eS(){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 tS(e,t){if(e){if(typeof e=="string")return ly(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 ly(e,t)}}function ly(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 rS(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 nS(e){if(Array.isArray(e))return e}function fy(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 ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(n){iS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iS(e,t,r){return t=aS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aS(e){var t=oS(e,"string");return $n(t)=="symbol"?t:t+""}function oS(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)}function uS(e){return Array.isArray(e)&&Ae(e[0])&&Ae(e[1])?e.join(" ~ "):e}var cS=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,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},M=(h?uh(f,h):f).map(function(I,$){if(I.type==="none")return null;var k=ys({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),R=I.formatter||l||uS,L=I.value,B=I.name,U=L,G=B;if(R&&U!=null&&G!=null){var W=R(L,B,I,$,f);if(Array.isArray(W)){var X=QA(W,2);U=X[0],G=X[1]}else U=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:k},Ae(G)?S.createElement("span",{className:"recharts-tooltip-item-name"},G):null,Ae(G)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},U),S.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},O=ys({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=ys({margin:0},s),b=!Y(v),_=b?v:"",A=J("recharts-default-tooltip",d),P=J("recharts-tooltip-label",y);b&&p&&f!==void 0&&f!==null&&(_=p(v,f));var j=x?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Cl({className:A,style:O},j),S.createElement("p",{className:P,style:m},S.isValidElement(_)?_:"".concat(_)),w())};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 bi(e,t,r){return t=sS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sS(e){var t=lS(e,"string");return In(t)=="symbol"?t:t+""}function lS(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 fn="recharts-tooltip-wrapper",fS={visibility:"hidden"};function hS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return J(fn,bi(bi(bi(bi({},"".concat(fn,"-right"),N(r)&&t&&N(t.x)&&r>=t.x),"".concat(fn,"-left"),N(r)&&t&&N(t.x)&&r<t.x),"".concat(fn,"-bottom"),N(n)&&t&&N(t.y)&&n>=t.y),"".concat(fn,"-top"),N(n)&&t&&N(t.y)&&n<t.y))}function hy(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&&N(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 pS(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 dS(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=hy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=hy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=pS({translateX:f,translateY:l,useTranslate3d:u})):s=fS,{cssProperties:s,cssClasses:hS({translateX:f,translateY:l,coordinate:r})}}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 py(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 dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?py(Object(r),!0).forEach(function(n){Rl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yS(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,B0(n.key),n)}}function mS(e,t,r){return t&&yS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gS(e,t,r){return t=Wi(t),bS(e,L0()?Reflect.construct(t,r||[],Wi(e).constructor):t.apply(e,r))}function bS(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 xS(e)}function xS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L0=function(){return!!e})()}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wi(e)}function wS(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 Rl(e,t,r){return t=B0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B0(e){var t=OS(e,"string");return $r(t)=="symbol"?t:t+""}function OS(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 vy=1,_S=(function(e){function t(){var r;vS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gS(this,t,[].concat(i)),Rl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Rl(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 wS(t,e),mS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>vy||Math.abs(n.height-this.state.lastBoundingBox.height)>vy)&&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,g=i.viewBox,x=i.wrapperStyle,w=dS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=dy(dy({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 S.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(A){n.wrapperNode=A}},s)}}])})(q.PureComponent),AS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},sr={isSsr:AS()};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 yy(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 my(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yy(Object(r),!0).forEach(function(n){ch(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yy(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 PS(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,W0(n.key),n)}}function TS(e,t,r){return t&&PS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ES(e,t,r){return t=zi(t),jS(e,F0()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function jS(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 MS(e)}function MS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F0=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function $S(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&&Dl(e,t)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dl(e,t)}function ch(e,t,r){return t=W0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W0(e){var t=IS(e,"string");return Ir(t)=="symbol"?t:t+""}function IS(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 CS(e){return e.dataKey}function kS(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(cS,t)}var dt=(function(e){function t(){return SS(this,t),ES(this,t,arguments)}return $S(t,e),TS(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,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=I0(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,CS));var b=m.length>0;return S.createElement(_S,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:b,offset:d,position:p,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},kS(s,my(my({},this.props),{},{payload:m})))}}])})(q.PureComponent);ch(dt,"displayName","Tooltip");ch(dt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!sr.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 ms,gy;function RS(){if(gy)return ms;gy=1;var e=ft(),t=function(){return e.Date.now()};return ms=t,ms}var gs,by;function DS(){if(by)return gs;by=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return gs=t,gs}var bs,xy;function NS(){if(xy)return bs;xy=1;var e=DS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return bs=r,bs}var xs,wy;function z0(){if(wy)return xs;wy=1;var e=NS(),t=Rt(),r=en(),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 xs=c,xs}var ws,Oy;function qS(){if(Oy)return ws;Oy=1;var e=Rt(),t=RS(),r=z0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,d,y,v,p=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(g=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(M){var I=f,$=l;return f=l=void 0,p=M,d=u.apply($,I),d}function m(M){return p=M,y=setTimeout(A,c),g?O(M):d}function b(M){var I=M-v,$=M-p,k=c-I;return x?a(k,h-$):k}function _(M){var I=M-v,$=M-p;return v===void 0||I>=c||I<0||x&&$>=h}function A(){var M=t();if(_(M))return P(M);y=setTimeout(A,b(M))}function P(M){return y=void 0,w&&f?O(M):(f=l=void 0,d)}function j(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function E(){return y===void 0?d:P(t())}function T(){var M=t(),I=_(M);if(f=arguments,l=this,v=M,I){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,c),O(v)}return y===void 0&&(y=setTimeout(A,c)),d}return T.cancel=j,T.flush=E,T}return ws=o,ws}var Os,_y;function LS(){if(_y)return Os;_y=1;var e=qS(),t=Rt(),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 Os=n,Os}var BS=LS();const U0=oe(BS);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)}function Ay(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 xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ay(Object(r),!0).forEach(function(n){FS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ay(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FS(e,t,r){return t=WS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WS(e){var t=zS(e,"string");return Cn(t)=="symbol"?t:t+""}function zS(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 US(e,t){return VS(e)||GS(e,t)||KS(e,t)||HS()}function HS(){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 KS(e,t){if(e){if(typeof e=="string")return Sy(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 Sy(e,t)}}function Sy(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 VS(e){if(Array.isArray(e))return e}var J2=q.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,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=q.useRef(null),b=q.useRef();b.current=x,q.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 _=q.useState({containerWidth:i.width,containerHeight:i.height}),A=US(_,2),P=A[0],j=A[1],E=q.useCallback(function(M,I){j(function($){var k=Math.round(M),R=Math.round(I);return $.containerWidth===k&&$.containerHeight===R?$:{containerWidth:k,containerHeight:R}})},[]);q.useEffect(function(){var M=function(B){var U,G=B[0].contentRect,W=G.width,X=G.height;E(W,X),(U=b.current)===null||U===void 0||U.call(b,W,X)};v>0&&(M=U0(M,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(M),$=m.current.getBoundingClientRect(),k=$.width,R=$.height;return E(k,R),I.observe(m.current),function(){I.disconnect()}},[E,v]);var T=q.useMemo(function(){var M=P.containerWidth,I=P.containerHeight;if(M<0||I<0)return null;rt(Xt(o)||Xt(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
15
|
-
maybe you don't need to use a ResponsiveContainer.`,o,c),rt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=Xt(o)?M:o,k=Xt(c)?I:c;r&&r>0&&($?k=$/r:k&&($=k*r),h&&k>h&&(k=h)),rt($>0||k>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.`,$,k,o,c,f,l,r);var R=!Array.isArray(d)&&bt(d.type).endsWith("Chart");return S.Children.map(d,function(L){return S.isValidElement(L)?q.cloneElement(L,xi({width:$,height:k},R?{style:xi({height:"100%",width:"100%",maxHeight:k,maxWidth:$},L.props.style)}:{})):L})},[r,d,c,h,l,f,P,o]);return S.createElement("div",{id:p?"".concat(p):void 0,className:J("recharts-responsive-container",g),style:xi(xi({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},T)}),sh=function(t){return null};sh.displayName="Cell";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 Py(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 Nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Py(Object(r),!0).forEach(function(n){XS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XS(e,t,r){return t=YS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YS(e){var t=ZS(e,"string");return kn(t)=="symbol"?t:t+""}function ZS(e,t){if(kn(e)!="object"||!e)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)}var vr={widthCache:{},cacheCount:0},JS=2e3,QS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ty="recharts_measurement_span";function eP(e){var t=Nl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var _n=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||sr.isSsr)return{width:0,height:0};var n=eP(r),i=JSON.stringify({text:t,copyStyle:n});if(vr.widthCache[i])return vr.widthCache[i];try{var a=document.getElementById(Ty);a||(a=document.createElement("span"),a.setAttribute("id",Ty),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Nl(Nl({},QS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return vr.widthCache[i]=c,++vr.cacheCount>JS&&(vr.cacheCount=0,vr.widthCache={}),c}catch{return{width:0,height:0}}},tP=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ui(e,t){return aP(e)||iP(e,t)||nP(e,t)||rP()}function rP(){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 nP(e,t){if(e){if(typeof e=="string")return Ey(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 Ey(e,t)}}function Ey(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 iP(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 aP(e){if(Array.isArray(e))return e}function oP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jy(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,cP(n.key),n)}}function uP(e,t,r){return t&&jy(e.prototype,t),r&&jy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cP(e){var t=sP(e,"string");return Rn(t)=="symbol"?t:t+""}function sP(e,t){if(Rn(e)!="object"||!e)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 String(e)}var My=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$y=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lP=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,fP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,H0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},hP=Object.keys(H0),gr="NaN";function pP(e,t){return e*H0[t]}var wi=(function(){function e(t,r){oP(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!lP.test(r)&&(this.num=NaN,this.unit=""),hP.includes(r)&&(this.num=pP(t,r),this.unit="px")}return uP(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=fP.exec(r))!==null&&n!==void 0?n:[],a=Ui(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function K0(e){if(e.includes(gr))return gr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=My.exec(t))!==null&&r!==void 0?r:[],i=Ui(n,4),a=i[1],o=i[2],u=i[3],c=wi.parse(a??""),s=wi.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return gr;t=t.replace(My,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=$y.exec(t))!==null&&l!==void 0?l:[],d=Ui(h,4),y=d[1],v=d[2],p=d[3],g=wi.parse(y??""),x=wi.parse(p??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return gr;t=t.replace($y,w.toString())}return t}var Iy=/\(([^()]*)\)/;function dP(e){for(var t=e;t.includes("(");){var r=Iy.exec(t),n=Ui(r,2),i=n[1];t=t.replace(Iy,K0(i))}return t}function vP(e){var t=e.replace(/\s+/g,"");return t=dP(t),t=K0(t),t}function yP(e){try{return vP(e)}catch{return gr}}function _s(e){var t=yP(e.slice(5,-1));return t===gr?"":t}var mP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],gP=["dx","dy","angle","className","breakAll"];function ql(){return ql=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},ql.apply(this,arguments)}function Cy(e,t){if(e==null)return{};var r=bP(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 bP(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 ky(e,t){return _P(e)||OP(e,t)||wP(e,t)||xP()}function xP(){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 wP(e,t){if(e){if(typeof e=="string")return Ry(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 Ry(e,t)}}function Ry(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 OP(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 _P(e){if(Array.isArray(e))return e}var G0=/[ \f\n\r\t\v\u2028\u2029]+/,V0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Y(r)||(n?a=r.toString().split(""):a=r.toString().split(G0));var o=a.map(function(c){return{word:c,width:_n(c,i).width}}),u=n?0:_n(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},AP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=N(o),l=u,h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(k,R){var L=R.word,B=R.width,U=k[k.length-1];if(U&&(i==null||a||U.width+B+n<Number(i)))U.words.push(L),U.width+=B+n;else{var G={words:[L],width:B};k.push(G)}return k},[])},d=h(r),y=function($){return $.reduce(function(k,R){return k.width>R.width?k:R})};if(!f)return d;for(var v="…",p=function($){var k=l.slice(0,$),R=V0({breakAll:s,style:c,children:k+v}).wordsWithComputedWidth,L=h(R),B=L.length>o||y(L).width>Number(i);return[B,L]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=p(b),A=ky(_,2),P=A[0],j=A[1],E=p(m),T=ky(E,1),M=T[0];if(!P&&!M&&(g=m+1),P&&M&&(x=m-1),!P&&M){O=j;break}w++}return O||d},Dy=function(t){var r=Y(t)?[]:t.toString().split(G0);return[{words:r}]},SP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!sr.isSsr){var c,s,f=V0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Dy(i);return AP({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Dy(i)},Ny="#808080",ir=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,g=p===void 0?Ny:p,x=Cy(t,mP),w=q.useMemo(function(){return SP({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,b=x.angle,_=x.className,A=x.breakAll,P=Cy(x,gP);if(!Ae(n)||!Ae(a))return null;var j=n+(N(O)?O:0),E=a+(N(m)?m:0),T;switch(v){case"start":T=_s("calc(".concat(s,")"));break;case"middle":T=_s("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:T=_s("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var I=w[0].width,$=x.width;M.push("scale(".concat((N($)?$/I:1)/I,")"))}return b&&M.push("rotate(".concat(b,", ").concat(j,", ").concat(E,")")),M.length&&(P.transform=M.join(" ")),S.createElement("text",ql({},H(P,!0),{x:j,y:E,className:J("recharts-text",_),textAnchor:d,fill:g.includes("url")?Ny:g}),w.map(function(k,R){var L=k.words.join(A?"":" ");return S.createElement("tspan",{x:j,dy:R===0?T:u,key:"".concat(L,"-").concat(R)},L)}))};function kt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function PP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lh(e){let t,r,n;e.length!==2?(t=kt,r=(u,c)=>kt(e(u),c),n=(u,c)=>e(u)-c):(t=e===kt||e===PP?e:TP,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 TP(){return 0}function X0(e){return e===null?NaN:+e}function*EP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const jP=lh(kt),hi=jP.right;lh(X0).center;class qy extends Map{constructor(t,r=IP){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(Ly(this,t))}has(t){return super.has(Ly(this,t))}set(t,r){return super.set(MP(this,t),r)}delete(t){return super.delete($P(this,t))}}function Ly({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function MP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function $P({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function IP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function CP(e=kt){if(e===kt)return Y0;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 Y0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kP=Math.sqrt(50),RP=Math.sqrt(10),DP=Math.sqrt(2);function Hi(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>=kP?10:a>=RP?5:a>=DP?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?Hi(e,t,r*2):[u,c,s]}function Ll(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?Hi(t,e,r):Hi(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 Bl(e,t,r){return t=+t,e=+e,r=+r,Hi(e,t,r)[2]}function Fl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Bl(t,e,r):Bl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function By(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Fy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Z0(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?Y0:CP(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));Z0(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(hn(e,r,t),i(e[n],a)>0&&hn(e,r,n);o<u;){for(hn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?hn(e,r,u):(++u,hn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function hn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function NP(e,t,r){if(e=Float64Array.from(EP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Fy(e);if(t>=1)return By(e);var n,i=(n-1)*t,a=Math.floor(i),o=By(Z0(e,a).subarray(0,a+1)),u=Fy(e.subarray(a+1));return o+(u-o)*(i-a)}}function qP(e,t,r=X0){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 LP(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 Je(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Tt(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 Wl=Symbol("implicit");function fh(){var e=new qy,t=[],r=[],n=Wl;function i(a){let o=e.get(a);if(o===void 0){if(n!==Wl)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 qy;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 fh(t,r).unknown(n)},Je.apply(i,arguments),i}function Dn(){var e=fh().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=LP(h).map(function(g){return y+a*g});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 Dn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Je.apply(l(),arguments)}function J0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return J0(t())},e}function An(){return J0(Dn.apply(null,arguments).paddingInner(1))}function hh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Q0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function pi(){}var Nn=.7,Ki=1/Nn,Sr="\\s*([+-]?\\d+)\\s*",qn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BP=/^#([0-9a-f]{3,8})$/,FP=new RegExp(`^rgb\\(${Sr},${Sr},${Sr}\\)$`),WP=new RegExp(`^rgb\\(${ut},${ut},${ut}\\)$`),zP=new RegExp(`^rgba\\(${Sr},${Sr},${Sr},${qn}\\)$`),UP=new RegExp(`^rgba\\(${ut},${ut},${ut},${qn}\\)$`),HP=new RegExp(`^hsl\\(${qn},${ut},${ut}\\)$`),KP=new RegExp(`^hsla\\(${qn},${ut},${ut},${qn}\\)$`),Wy={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};hh(pi,Ln,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zy,formatHex:zy,formatHex8:GP,formatHsl:VP,formatRgb:Uy,toString:Uy});function zy(){return this.rgb().formatHex()}function GP(){return this.rgb().formatHex8()}function VP(){return ex(this).formatHsl()}function Uy(){return this.rgb().formatRgb()}function Ln(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=BP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Hy(t):r===3?new qe(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=FP.exec(e))?new qe(t[1],t[2],t[3],1):(t=WP.exec(e))?new qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zP.exec(e))?Oi(t[1],t[2],t[3],t[4]):(t=UP.exec(e))?Oi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=HP.exec(e))?Vy(t[1],t[2]/100,t[3]/100,1):(t=KP.exec(e))?Vy(t[1],t[2]/100,t[3]/100,t[4]):Wy.hasOwnProperty(e)?Hy(Wy[e]):e==="transparent"?new qe(NaN,NaN,NaN,0):null}function Hy(e){return new qe(e>>16&255,e>>8&255,e&255,1)}function Oi(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function XP(e){return e instanceof pi||(e=Ln(e)),e?(e=e.rgb(),new qe(e.r,e.g,e.b,e.opacity)):new qe}function zl(e,t,r,n){return arguments.length===1?XP(e):new qe(e,t,r,n??1)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}hh(qe,zl,Q0(pi,{brighter(e){return e=e==null?Ki:Math.pow(Ki,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Nn:Math.pow(Nn,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe(er(this.r),er(this.g),er(this.b),Gi(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:Ky,formatHex:Ky,formatHex8:YP,formatRgb:Gy,toString:Gy}));function Ky(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}`}function YP(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}${Yt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gy(){const e=Gi(this.opacity);return`${e===1?"rgb(":"rgba("}${er(this.r)}, ${er(this.g)}, ${er(this.b)}${e===1?")":`, ${e})`}`}function Gi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function er(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yt(e){return e=er(e),(e<16?"0":"")+e.toString(16)}function Vy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tt(e,t,r,n)}function ex(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);if(e instanceof pi||(e=Ln(e)),!e)return new tt;if(e instanceof tt)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 tt(o,u,c,e.opacity)}function ZP(e,t,r,n){return arguments.length===1?ex(e):new tt(e,t,r,n??1)}function tt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}hh(tt,ZP,Q0(pi,{brighter(e){return e=e==null?Ki:Math.pow(Ki,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Nn:Math.pow(Nn,e),new tt(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 qe(As(e>=240?e-240:e+120,i,n),As(e,i,n),As(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new tt(Xy(this.h),_i(this.s),_i(this.l),Gi(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=Gi(this.opacity);return`${e===1?"hsl(":"hsla("}${Xy(this.h)}, ${_i(this.s)*100}%, ${_i(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xy(e){return e=(e||0)%360,e<0?e+360:e}function _i(e){return Math.max(0,Math.min(1,e||0))}function As(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 ph=e=>()=>e;function JP(e,t){return function(r){return e+r*t}}function QP(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 eT(e){return(e=+e)==1?tx:function(t,r){return r-t?QP(t,r,e):ph(isNaN(t)?r:t)}}function tx(e,t){var r=t-e;return r?JP(e,r):ph(isNaN(e)?t:e)}const Yy=(function e(t){var r=eT(t);function n(i,a){var o=r((i=zl(i)).r,(a=zl(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=tx(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 tT(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 rT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function nT(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]=on(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 iT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function it(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function aT(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]=on(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ul=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ss=new RegExp(Ul.source,"g");function oT(e){return function(){return e}}function uT(e){return function(t){return e(t)+""}}function cT(e,t){var r=Ul.lastIndex=Ss.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=Ul.exec(e))&&(i=Ss.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:it(n,i)})),r=Ss.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?uT(c[0].x):oT(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 on(e,t){var r=typeof t,n;return t==null||r==="boolean"?ph(t):(r==="number"?it:r==="string"?(n=Ln(t))?(t=n,Yy):cT:t instanceof Ln?Yy:t instanceof Date?iT:rT(t)?tT:Array.isArray(t)?nT:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?aT:it)(e,t)}function dh(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Zy=180/Math.PI,Hl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rx(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)*Zy,skewX:Math.atan(c)*Zy,scaleX:o,scaleY:u}}var Ai;function sT(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Hl:rx(t.a,t.b,t.c,t.d,t.e,t.f)}function lT(e){return e==null||(Ai||(Ai=document.createElementNS("http://www.w3.org/2000/svg","g")),Ai.setAttribute("transform",e),!(e=Ai.transform.baseVal.consolidate()))?Hl:(e=e.matrix,rx(e.a,e.b,e.c,e.d,e.e,e.f))}function nx(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:it(s,l)},{i:v-2,x:it(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:it(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:it(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:it(s,l)},{i:v-2,x:it(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 Q2=nx(sT,"px, ","px)","deg)"),eq=nx(lT,", ",")",")"),fT=1e-12;function Jy(e){return((e=Math.exp(e))+1/e)/2}function hT(e){return((e=Math.exp(e))-1/e)/2}function pT(e){return((e=Math.exp(2*e))-1)/(e+1)}const tq=(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,g;if(v<fT)g=Math.log(h/s)/t,p=function(_){return[u+_*d,c+_*y,s*Math.exp(t*_*g)]};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),b=Math.log(Math.sqrt(O*O+1)-O);g=(b-m)/t,p=function(_){var A=_*g,P=Jy(m),j=s/(r*x)*(P*pT(t*A+m)-hT(m));return[u+j*d,c+j*y,s*P/Jy(t*A+m)]}}return p.duration=g*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 dT(e,t){t===void 0&&(t=e,e=on);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 vT(e){return function(){return e}}function Vi(e){return+e}var Qy=[0,1];function ke(e){return e}function Kl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:vT(isNaN(t)?NaN:.5)}function yT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function mT(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Kl(i,n),a=r(o,a)):(n=Kl(n,i),a=r(a,o)),function(u){return a(n(u))}}function gT(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]=Kl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=hi(e,u,1,n)-1;return a[c](i[c](u))}}function di(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function za(){var e=Qy,t=Qy,r=on,n,i,a,o=ke,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==ke&&(o=yT(e[0],e[h-1])),u=h>2?gT:mT,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),it)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Vi),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=dh,f()},l.clamp=function(h){return arguments.length?(o=h?!0:ke,f()):o!==ke},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 vh(){return za()(ke,ke)}function bT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xi(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 Cr(e){return e=Xi(Math.abs(e)),e?e[1]:NaN}function xT(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 wT(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var OT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bn(e){if(!(t=OT.exec(e)))throw new Error("invalid format: "+e);var t;return new yh({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]})}Bn.prototype=yh.prototype;function yh(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+""}yh.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 _T(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 Yi;function AT(e,t){var r=Xi(e,t);if(!r)return Yi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Yi=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")+Xi(e,Math.max(0,t+a-1))[0]}function em(e,t){var r=Xi(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 tm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bT,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)=>em(e*100,t),r:em,s:AT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function rm(e){return e}var nm=Array.prototype.map,im=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ST(e){var t=e.grouping===void 0||e.thousands===void 0?rm:xT(nm.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?rm:wT(nm.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=Bn(l);var d=l.fill,y=l.align,v=l.sign,p=l.symbol,g=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,b=l.type;b==="n"?(w=!0,b="g"):tm[b]||(O===void 0&&(O=12),m=!0,b="g"),(g||d==="0"&&y==="=")&&(g=!0,d="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?r:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),A=(p==="$"?n:/[%p]/.test(b)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),P=tm[b],j=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(T){var M=_,I=A,$,k,R;if(b==="c")I=P(T)+I,T="";else{T=+T;var L=T<0||1/T<0;if(T=isNaN(T)?c:P(Math.abs(T),O),m&&(T=_T(T)),L&&+T==0&&v!=="+"&&(L=!1),M=(L?v==="("?v:u:v==="-"||v==="("?"":v)+M,I=(b==="s"&&!isNaN(T)&&Yi!==void 0?im[8+Yi/3]:"")+I+(L&&v==="("?")":""),j){for($=-1,k=T.length;++$<k;)if(R=T.charCodeAt($),48>R||R>57){I=(R===46?i+T.slice($+1):T.slice($))+I,T=T.slice(0,$);break}}}w&&!g&&(T=t(T,1/0));var B=M.length+T.length+I.length,U=B<x?new Array(x-B+1).join(d):"";switch(w&&g&&(T=t(U+T,U.length?x-I.length:1/0),U=""),y){case"<":T=M+T+I+U;break;case"=":T=M+U+T+I;break;case"^":T=U.slice(0,B=U.length>>1)+M+T+I+U.slice(B);break;default:T=U+M+T+I;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(Cr(h)/3)))*3,y=Math.pow(10,-d),v=s((l=Bn(l),l.type="f",l),{suffix:im[8+d/3]});return function(p){return v(y*p)}}return{format:s,formatPrefix:f}}var Si,mh,ix;PT({thousands:",",grouping:[3],currency:["$",""]});function PT(e){return Si=ST(e),mh=Si.format,ix=Si.formatPrefix,Si}function TT(e){return Math.max(0,-Cr(Math.abs(e)))}function ET(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Cr(t)/3)))*3-Cr(Math.abs(e)))}function jT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Cr(t)-Cr(e))+1}function ax(e,t,r,n){var i=Fl(e,t,r),a;switch(n=Bn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=ET(i,o))&&(n.precision=a),ix(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=jT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=TT(i))&&(n.precision=a-(n.type==="%")*2);break}}return mh(n)}function Dt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ll(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ax(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=Bl(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 Zi(){var e=vh();return e.copy=function(){return di(e,Zi())},Je.apply(e,arguments),Dt(e)}function ox(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,Vi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ox(e).unknown(t)},e=arguments.length?Array.from(e,Vi):[0,1],Dt(r)}function ux(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 am(e){return Math.log(e)}function om(e){return Math.exp(e)}function MT(e){return-Math.log(-e)}function $T(e){return-Math.exp(-e)}function IT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function CT(e){return e===10?IT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kT(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 um(e){return(t,r)=>-e(-t,r)}function gh(e){const t=e(am,om),r=t.domain;let n=10,i,a;function o(){return i=kT(n),a=CT(n),r()[0]<0?(i=um(i),a=um(a),e(MT,$T)):e(am,om),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 g=[];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;g.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;g.push(v)}g.length*2<p&&(g=Ll(s,f,p))}else g=Ll(h,d,Math.min(d-h,p)).map(a);return l?g.reverse():g},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Bn(c)).precision==null&&(c.trim=!0),c=mh(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(ux(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function cx(){const e=gh(za()).domain([1,10]);return e.copy=()=>di(e,cx()).base(e.base()),Je.apply(e,arguments),e}function cm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function bh(e){var t=1,r=e(cm(t),sm(t));return r.constant=function(n){return arguments.length?e(cm(t=+n),sm(t)):t},Dt(r)}function sx(){var e=bh(za());return e.copy=function(){return di(e,sx()).constant(e.constant())},Je.apply(e,arguments)}function lm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function RT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function DT(e){return e<0?-e*e:e*e}function xh(e){var t=e(ke,ke),r=1;function n(){return r===1?e(ke,ke):r===.5?e(RT,DT):e(lm(r),lm(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Dt(t)}function wh(){var e=xh(za());return e.copy=function(){return di(e,wh()).exponent(e.exponent())},Je.apply(e,arguments),e}function NT(){return wh.apply(null,arguments).exponent(.5)}function fm(e){return Math.sign(e)*e*e}function qT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function lx(){var e=vh(),t=[0,1],r=!1,n;function i(a){var o=qT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(fm(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,Vi)).map(fm)),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 lx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Je.apply(i,arguments),Dt(i)}function fx(){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]=qP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[hi(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(kt),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 fx().domain(e).range(t).unknown(n)},Je.apply(a,arguments)}function hx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[hi(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 hx().domain([e,t]).range(i).unknown(a)},Je.apply(Dt(o),arguments)}function px(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[hi(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 px().domain(e).range(t).unknown(r)},Je.apply(i,arguments)}const Ps=new Date,Ts=new Date;function Se(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=>Se(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)=>(Ps.setTime(+a),Ts.setTime(+o),e(Ps),e(Ts),Math.floor(r(Ps,Ts))),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 Ji=Se(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ji.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Se(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ji);Ji.range;const yt=1e3,Xe=yt*60,mt=Xe*60,Ot=mt*24,Oh=Ot*7,hm=Ot*30,Es=Ot*365,Zt=Se(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*yt)},(e,t)=>(t-e)/yt,e=>e.getUTCSeconds());Zt.range;const _h=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yt)},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getMinutes());_h.range;const Ah=Se(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getUTCMinutes());Ah.range;const Sh=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yt-e.getMinutes()*Xe)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getHours());Sh.range;const Ph=Se(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getUTCHours());Ph.range;const vi=Se(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xe)/Ot,e=>e.getDate()-1);vi.range;const Ua=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ot,e=>e.getUTCDate()-1);Ua.range;const dx=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ot,e=>Math.floor(e/Ot));dx.range;function lr(e){return Se(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())*Xe)/Oh)}const Ha=lr(0),Qi=lr(1),LT=lr(2),BT=lr(3),kr=lr(4),FT=lr(5),WT=lr(6);Ha.range;Qi.range;LT.range;BT.range;kr.range;FT.range;WT.range;function fr(e){return Se(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)/Oh)}const Ka=fr(0),ea=fr(1),zT=fr(2),UT=fr(3),Rr=fr(4),HT=fr(5),KT=fr(6);Ka.range;ea.range;zT.range;UT.range;Rr.range;HT.range;KT.range;const Th=Se(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());Th.range;const Eh=Se(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());Eh.range;const _t=Se(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());_t.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(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)});_t.range;const At=Se(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());At.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(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)});At.range;function vx(e,t,r,n,i,a){const o=[[Zt,1,yt],[Zt,5,5*yt],[Zt,15,15*yt],[Zt,30,30*yt],[a,1,Xe],[a,5,5*Xe],[a,15,15*Xe],[a,30,30*Xe],[i,1,mt],[i,3,3*mt],[i,6,6*mt],[i,12,12*mt],[n,1,Ot],[n,2,2*Ot],[r,1,Oh],[t,1,hm],[t,3,3*hm],[e,1,Es]];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=lh(([,,p])=>p).right(o,h);if(d===o.length)return e.every(Fl(s/Es,f/Es,l));if(d===0)return Ji.every(Math.max(Fl(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[GT,VT]=vx(At,Eh,Ka,dx,Ph,Ah),[XT,YT]=vx(_t,Th,Ha,vi,Sh,_h);function js(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 Ms(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 pn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ZT(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=dn(i),f=vn(i),l=dn(a),h=vn(a),d=dn(o),y=vn(o),v=dn(u),p=vn(u),g=dn(c),x=vn(c),w={a:R,A:L,b:B,B:U,c:null,d:gm,e:gm,f:xE,g:ME,G:IE,H:mE,I:gE,j:bE,L:yx,m:wE,M:OE,p:G,q:W,Q:wm,s:Om,S:_E,u:AE,U:SE,V:PE,w:TE,W:EE,x:null,X:null,y:jE,Y:$E,Z:CE,"%":xm},O={a:X,A:fe,b:ye,B:Be,c:null,d:bm,e:bm,f:NE,g:GE,G:XE,H:kE,I:RE,j:DE,L:gx,m:qE,M:LE,p:Bt,q:Re,Q:wm,s:Om,S:BE,u:FE,U:WE,V:zE,w:UE,W:HE,x:null,X:null,y:KE,Y:VE,Z:YE,"%":xm},m={a:j,A:E,b:T,B:M,c:I,d:ym,e:ym,f:pE,g:vm,G:dm,H:mm,I:mm,j:sE,L:hE,m:cE,M:lE,p:P,q:uE,Q:vE,s:yE,S:fE,u:rE,U:nE,V:iE,w:tE,W:aE,x:$,X:k,y:vm,Y:dm,Z:oE,"%":dE};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(F,Z){return function(Q){var D=[],de=-1,te=0,be=F.length,xe,De,Et;for(Q instanceof Date||(Q=new Date(+Q));++de<be;)F.charCodeAt(de)===37&&(D.push(F.slice(te,de)),(De=pm[xe=F.charAt(++de)])!=null?xe=F.charAt(++de):De=xe==="e"?" ":"0",(Et=Z[xe])&&(xe=Et(Q,De)),D.push(xe),te=de+1);return D.push(F.slice(te,de)),D.join("")}}function _(F,Z){return function(Q){var D=pn(1900,void 0,1),de=A(D,F,Q+="",0),te,be;if(de!=Q.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(Z&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(te=Ms(pn(D.y,0,1)),be=te.getUTCDay(),te=be>4||be===0?ea.ceil(te):ea(te),te=Ua.offset(te,(D.V-1)*7),D.y=te.getUTCFullYear(),D.m=te.getUTCMonth(),D.d=te.getUTCDate()+(D.w+6)%7):(te=js(pn(D.y,0,1)),be=te.getDay(),te=be>4||be===0?Qi.ceil(te):Qi(te),te=vi.offset(te,(D.V-1)*7),D.y=te.getFullYear(),D.m=te.getMonth(),D.d=te.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),be="Z"in D?Ms(pn(D.y,0,1)).getUTCDay():js(pn(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(be+5)%7:D.w+D.U*7-(be+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Ms(D)):js(D)}}function A(F,Z,Q,D){for(var de=0,te=Z.length,be=Q.length,xe,De;de<te;){if(D>=be)return-1;if(xe=Z.charCodeAt(de++),xe===37){if(xe=Z.charAt(de++),De=m[xe in pm?Z.charAt(de++):xe],!De||(D=De(F,Q,D))<0)return-1}else if(xe!=Q.charCodeAt(D++))return-1}return D}function P(F,Z,Q){var D=s.exec(Z.slice(Q));return D?(F.p=f.get(D[0].toLowerCase()),Q+D[0].length):-1}function j(F,Z,Q){var D=d.exec(Z.slice(Q));return D?(F.w=y.get(D[0].toLowerCase()),Q+D[0].length):-1}function E(F,Z,Q){var D=l.exec(Z.slice(Q));return D?(F.w=h.get(D[0].toLowerCase()),Q+D[0].length):-1}function T(F,Z,Q){var D=g.exec(Z.slice(Q));return D?(F.m=x.get(D[0].toLowerCase()),Q+D[0].length):-1}function M(F,Z,Q){var D=v.exec(Z.slice(Q));return D?(F.m=p.get(D[0].toLowerCase()),Q+D[0].length):-1}function I(F,Z,Q){return A(F,t,Z,Q)}function $(F,Z,Q){return A(F,r,Z,Q)}function k(F,Z,Q){return A(F,n,Z,Q)}function R(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return c[F.getMonth()]}function U(F){return u[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function W(F){return 1+~~(F.getMonth()/3)}function X(F){return o[F.getUTCDay()]}function fe(F){return a[F.getUTCDay()]}function ye(F){return c[F.getUTCMonth()]}function Be(F){return u[F.getUTCMonth()]}function Bt(F){return i[+(F.getUTCHours()>=12)]}function Re(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var Z=b(F+="",w);return Z.toString=function(){return F},Z},parse:function(F){var Z=_(F+="",!1);return Z.toString=function(){return F},Z},utcFormat:function(F){var Z=b(F+="",O);return Z.toString=function(){return F},Z},utcParse:function(F){var Z=_(F+="",!0);return Z.toString=function(){return F},Z}}}var pm={"-":"",_:" ",0:"0"},Ee=/^\s*\d+/,JT=/^%/,QT=/[\\^$*+?|[\]().{}]/g;function re(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 eE(e){return e.replace(QT,"\\$&")}function dn(e){return new RegExp("^(?:"+e.map(eE).join("|")+")","i")}function vn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function tE(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function rE(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function nE(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function iE(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function aE(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function dm(e,t,r){var n=Ee.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function vm(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function oE(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 uE(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function cE(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ym(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sE(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function mm(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function lE(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function fE(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function hE(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function pE(e,t,r){var n=Ee.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dE(e,t,r){var n=JT.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function vE(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function yE(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gm(e,t){return re(e.getDate(),t,2)}function mE(e,t){return re(e.getHours(),t,2)}function gE(e,t){return re(e.getHours()%12||12,t,2)}function bE(e,t){return re(1+vi.count(_t(e),e),t,3)}function yx(e,t){return re(e.getMilliseconds(),t,3)}function xE(e,t){return yx(e,t)+"000"}function wE(e,t){return re(e.getMonth()+1,t,2)}function OE(e,t){return re(e.getMinutes(),t,2)}function _E(e,t){return re(e.getSeconds(),t,2)}function AE(e){var t=e.getDay();return t===0?7:t}function SE(e,t){return re(Ha.count(_t(e)-1,e),t,2)}function mx(e){var t=e.getDay();return t>=4||t===0?kr(e):kr.ceil(e)}function PE(e,t){return e=mx(e),re(kr.count(_t(e),e)+(_t(e).getDay()===4),t,2)}function TE(e){return e.getDay()}function EE(e,t){return re(Qi.count(_t(e)-1,e),t,2)}function jE(e,t){return re(e.getFullYear()%100,t,2)}function ME(e,t){return e=mx(e),re(e.getFullYear()%100,t,2)}function $E(e,t){return re(e.getFullYear()%1e4,t,4)}function IE(e,t){var r=e.getDay();return e=r>=4||r===0?kr(e):kr.ceil(e),re(e.getFullYear()%1e4,t,4)}function CE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function bm(e,t){return re(e.getUTCDate(),t,2)}function kE(e,t){return re(e.getUTCHours(),t,2)}function RE(e,t){return re(e.getUTCHours()%12||12,t,2)}function DE(e,t){return re(1+Ua.count(At(e),e),t,3)}function gx(e,t){return re(e.getUTCMilliseconds(),t,3)}function NE(e,t){return gx(e,t)+"000"}function qE(e,t){return re(e.getUTCMonth()+1,t,2)}function LE(e,t){return re(e.getUTCMinutes(),t,2)}function BE(e,t){return re(e.getUTCSeconds(),t,2)}function FE(e){var t=e.getUTCDay();return t===0?7:t}function WE(e,t){return re(Ka.count(At(e)-1,e),t,2)}function bx(e){var t=e.getUTCDay();return t>=4||t===0?Rr(e):Rr.ceil(e)}function zE(e,t){return e=bx(e),re(Rr.count(At(e),e)+(At(e).getUTCDay()===4),t,2)}function UE(e){return e.getUTCDay()}function HE(e,t){return re(ea.count(At(e)-1,e),t,2)}function KE(e,t){return re(e.getUTCFullYear()%100,t,2)}function GE(e,t){return e=bx(e),re(e.getUTCFullYear()%100,t,2)}function VE(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function XE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Rr(e):Rr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function YE(){return"+0000"}function xm(){return"%"}function wm(e){return+e}function Om(e){return Math.floor(+e/1e3)}var yr,xx,wx;ZE({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 ZE(e){return yr=ZT(e),xx=yr.format,yr.parse,wx=yr.utcFormat,yr.utcParse,yr}function JE(e){return new Date(e)}function QE(e){return e instanceof Date?+e:+new Date(+e)}function jh(e,t,r,n,i,a,o,u,c,s){var f=vh(),l=f.invert,h=f.domain,d=s(".%L"),y=s(":%S"),v=s("%I:%M"),p=s("%I %p"),g=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(b){return(c(b)<b?d:u(b)<b?y:o(b)<b?v:a(b)<b?p:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?h(Array.from(b,QE)):h().map(JE)},f.ticks=function(b){var _=h();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:s(_)},f.nice=function(b){var _=h();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?h(ux(_,b)):f},f.copy=function(){return di(f,jh(e,t,r,n,i,a,o,u,c,s))},f}function ej(){return Je.apply(jh(XT,YT,_t,Th,Ha,vi,Sh,_h,Zt,xx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function tj(){return Je.apply(jh(GT,VT,At,Eh,Ka,Ua,Ph,Ah,Zt,wx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ga(){var e=0,t=1,r,n,i,a,o=ke,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(on),s.rangeRound=f(dh),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 Nt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ox(){var e=Dt(Ga()(ke));return e.copy=function(){return Nt(e,Ox())},Tt.apply(e,arguments)}function _x(){var e=gh(Ga()).domain([1,10]);return e.copy=function(){return Nt(e,_x()).base(e.base())},Tt.apply(e,arguments)}function Ax(){var e=bh(Ga());return e.copy=function(){return Nt(e,Ax()).constant(e.constant())},Tt.apply(e,arguments)}function Mh(){var e=xh(Ga());return e.copy=function(){return Nt(e,Mh()).exponent(e.exponent())},Tt.apply(e,arguments)}function rj(){return Mh.apply(null,arguments).exponent(.5)}function Sx(){var e=[],t=ke;function r(n){if(n!=null&&!isNaN(n=+n))return t((hi(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(kt),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)=>NP(e,a/n))},r.copy=function(){return Sx(t).domain(e)},Tt.apply(r,arguments)}function Va(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=ke,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 g,x,w;return arguments.length?([g,x,w]=p,s=dT(v,[g,x,w]),d):[s(0),s(.5),s(1)]}}return d.range=y(on),d.rangeRound=y(dh),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 Px(){var e=Dt(Va()(ke));return e.copy=function(){return Nt(e,Px())},Tt.apply(e,arguments)}function Tx(){var e=gh(Va()).domain([.1,1,10]);return e.copy=function(){return Nt(e,Tx()).base(e.base())},Tt.apply(e,arguments)}function Ex(){var e=bh(Va());return e.copy=function(){return Nt(e,Ex()).constant(e.constant())},Tt.apply(e,arguments)}function $h(){var e=xh(Va());return e.copy=function(){return Nt(e,$h()).exponent(e.exponent())},Tt.apply(e,arguments)}function nj(){return $h.apply(null,arguments).exponent(.5)}const _m=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Dn,scaleDiverging:Px,scaleDivergingLog:Tx,scaleDivergingPow:$h,scaleDivergingSqrt:nj,scaleDivergingSymlog:Ex,scaleIdentity:ox,scaleImplicit:Wl,scaleLinear:Zi,scaleLog:cx,scaleOrdinal:fh,scalePoint:An,scalePow:wh,scaleQuantile:fx,scaleQuantize:hx,scaleRadial:lx,scaleSequential:Ox,scaleSequentialLog:_x,scaleSequentialPow:Mh,scaleSequentialQuantile:Sx,scaleSequentialSqrt:rj,scaleSequentialSymlog:Ax,scaleSqrt:NT,scaleSymlog:sx,scaleThreshold:px,scaleTime:ej,scaleUtc:tj,tickFormat:ax},Symbol.toStringTag,{value:"Module"}));var $s,Am;function Xa(){if(Am)return $s;Am=1;var e=en();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 $s=t,$s}var Is,Sm;function jx(){if(Sm)return Is;Sm=1;function e(t,r){return t>r}return Is=e,Is}var Cs,Pm;function ij(){if(Pm)return Cs;Pm=1;var e=Xa(),t=jx(),r=an();function n(i){return i&&i.length?e(i,r,t):void 0}return Cs=n,Cs}var aj=ij();const It=oe(aj);var ks,Tm;function Mx(){if(Tm)return ks;Tm=1;function e(t,r){return t<r}return ks=e,ks}var Rs,Em;function oj(){if(Em)return Rs;Em=1;var e=Xa(),t=Mx(),r=an();function n(i){return i&&i.length?e(i,r,t):void 0}return Rs=n,Rs}var uj=oj();const Ya=oe(uj);var Ds,jm;function cj(){if(jm)return Ds;jm=1;var e=Kf(),t=ht(),r=N0(),n=Le();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Ds=i,Ds}var Ns,Mm;function sj(){if(Mm)return Ns;Mm=1;var e=R0(),t=cj();function r(n,i){return e(t(n,i),1)}return Ns=r,Ns}var lj=sj();const fj=oe(lj);var qs,$m;function hj(){if($m)return qs;$m=1;var e=ah();function t(r,n){return e(r,n)}return qs=t,qs}var pj=hj();const Dr=oe(pj);var un=1e9,dj={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ch,pe=!0,Ze="[DecimalError] ",tr=Ze+"Invalid argument: ",Ih=Ze+"Exponent out of range: ",cn=Math.floor,Gt=Math.pow,vj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ze,Pe=1e7,he=7,$x=9007199254740991,ta=cn($x/he),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.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};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*he;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return xt(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return ue(xt(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return ge(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.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(ze))throw Error(Ze+"NaN");if(r.s<1)throw Error(Ze+(r.s?"NaN":"-Infinity"));return r.eq(ze)?new n(0):(pe=!1,t=xt(Fn(r,a),Fn(e,a),a),pe=!0,ue(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kx(t,e):Ix(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ze+"NaN");return r.s?(pe=!1,t=xt(r,e,0,1).times(e),pe=!0,r.minus(t)):ue(new n(r),i)};z.naturalExponential=z.exp=function(){return Cx(this)};z.naturalLogarithm=z.ln=function(){return Fn(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ix(t,e):kx(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(tr+e);if(t=ge(i)+1,n=i.d.length-1,r=n*he+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};z.squareRoot=z.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(Ze+"NaN")}for(e=ge(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=at(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=cn((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(xt(u,a,o+2)).times(.5),at(a.d).slice(0,o)===(t=at(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ue(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,ue(n,r)};z.times=z.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%Pe|0,t=u/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?ue(e,l.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(st(e,0,un),t===void 0?t=n.rounding:st(t,0,8),ue(r,e+ge(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ar(n,!0):(st(e,0,un),t===void 0?t=i.rounding:st(t,0,8),n=ue(new i(n),e+1,t),r=ar(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ar(i):(st(e,0,un),t===void 0?t=a.rounding:st(t,0,8),n=ue(new a(i),e+ge(i)+1,t),r=ar(n.abs(),!1,e+ge(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return ue(new t(e),ge(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.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(ze);if(u=new c(u),!u.s){if(e.s<1)throw Error(Ze+"Infinity");return u}if(u.eq(ze))return u;if(n=c.precision,e.eq(ze))return ue(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=$x){for(i=new c(ze),t=Math.ceil(n/he+4),pe=!1;r%2&&(i=i.times(u),Cm(i.d,t)),r=cn(r/2),r!==0;)u=u.times(u),Cm(u.d,t);return pe=!0,e.s<0?new c(ze).div(i):ue(i,n)}}else if(a<0)throw Error(Ze+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(Fn(u,n+s)),pe=!0,i=Cx(i),i.s=a,i};z.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ge(i),n=ar(i,r<=a.toExpNeg||r>=a.toExpPos)):(st(e,1,un),t===void 0?t=a.rounding:st(t,0,8),i=ue(new a(i),e,t),r=ge(i),n=ar(i,e<=r||r<=a.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(st(e,1,un),t===void 0?t=n.rounding:st(t,0,8)),ue(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ge(e),r=e.constructor;return ar(e,t<=r.toExpNeg||t>=r.toExpPos)};function Ix(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)),pe?ue(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/he),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)/Pe|0,c[a]%=Pe;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,pe?ue(t,l):t}function st(e,t,r){if(e!==~~e||e<t||e>r)throw Error(tr+e)}function at(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=he-n.length,r&&(a+=Mt(r)),a+=n;o=e[t],n=o+"",r=he-n.length,r&&(a+=Mt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var xt=(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%Pe|0,o=a/Pe|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*Pe+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,g,x,w,O,m,b,_,A,P=n.constructor,j=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Ze+"Division by zero");for(c=n.e-i.e,_=T.length,m=E.length,d=new P(j),y=d.d=[],s=0;T[s]==(E[s]||0);)++s;if(T[s]>(E[s]||0)&&--c,a==null?x=a=P.precision:o?x=a+(ge(n)-ge(i))+1:x=a,x<0)return new P(0);if(x=x/he+2|0,s=0,_==1)for(f=0,T=T[0],x++;(s<m||f)&&x--;s++)w=f*Pe+(E[s]||0),y[s]=w/T|0,f=w%T|0;else{for(f=Pe/(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;A=T.slice(),A.unshift(0),b=T[0],T[1]>=Pe/2&&++b;do f=0,u=t(T,v,_,p),u<0?(g=v[0],_!=p&&(g=g*Pe+(v[1]||0)),f=g/b|0,f>1?(f>=Pe&&(f=Pe-1),l=e(T,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?A: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?A: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,ue(d,o?a+ge(d)+1:a)}})();function Cx(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(ge(e)>16)throw Error(Ih+ge(e));if(!e.s)return new f(ze);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Gt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(ze),f.precision=u;;){if(i=ue(i.times(e),u),r=r.times(++c),o=a.plus(xt(i,r,u)),at(o.d).slice(0,u)===at(a.d).slice(0,u)){for(;s--;)a=ue(a.times(a),u);return f.precision=l,t==null?(pe=!0,ue(a,l)):a}a=o}}function ge(e){for(var t=e.e*he,r=e.d[0];r>=10;r/=10)t++;return t}function Ls(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(Ze+"LN10 precision limit exceeded");return ue(new e(e.LN10),t)}function Mt(e){for(var t="";e--;)t+="0";return t}function Fn(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(Ze+(d.s?"NaN":"-Infinity"));if(d.eq(ze))return new v(0);if(t==null?(pe=!1,s=p):s=t,d.eq(10))return t==null&&(pe=!0),Ls(v,s);if(s+=h,v.precision=s,r=at(y),n=r.charAt(0),a=ge(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=at(d.d),n=r.charAt(0),l++;a=ge(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return c=Ls(v,s+2,p).times(a+""),d=Fn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=p,t==null?(pe=!0,ue(d,p)):d;for(u=o=d=xt(d.minus(ze),d.plus(ze),s),f=ue(d.times(d),s),i=3;;){if(o=ue(o.times(f),s),c=u.plus(xt(o,new v(i),s)),at(c.d).slice(0,s)===at(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Ls(v,s+2,p).times(a+""))),u=xt(u,new v(l),s),v.precision=p,t==null?(pe=!0,ue(u,p)):u;u=c,i+=2}}function Im(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=cn(r/he),e.d=[],n=(r+1)%he,r<0&&(n+=he),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=he;n<i;)e.d.push(+t.slice(n,n+=he));t=t.slice(n),n=he-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>ta||e.e<-ta))throw Error(Ih+r)}else e.s=0,e.e=0,e.d=[0];return e}function ue(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+=he,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/he),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=he,i=n-he+o}if(r!==void 0&&(a=Gt(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/Gt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ge(e),l.length=1,t=t-a-1,l[0]=Gt(10,(he-t%he)%he),e.e=cn(-t/he)||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=Gt(10,he-n),l[f]=i>0?(s/Gt(10,o-i)%Gt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Pe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Pe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(pe&&(e.e>ta||e.e<-ta))throw Error(Ih+ge(e));return e}function kx(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),pe?ue(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/he),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]=Pe-1;--c[a],c[i]+=Pe}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,pe?ue(t,d):t):new h(0)}function ar(e,t,r){var n,i=ge(e),a=at(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Mt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Mt(-i-1)+a,r&&(n=r-o)>0&&(a+=Mt(n))):i>=o?(a+=Mt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Mt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Mt(n))),e.s<0?"-"+a:a}function Cm(e,t){if(e.length>t)return e.length=t,!0}function Rx(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(tr+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 Im(o,a.toString())}else if(typeof a!="string")throw Error(tr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,vj.test(a))Im(o,a);else throw Error(tr+a)}if(i.prototype=z,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=Rx,i.config=i.set=yj,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 yj(e){if(!e||typeof e!="object")throw Error(Ze+"Object expected");var t,r,n,i=["precision",1,un,"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(cn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(tr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(tr+r+": "+n);return this}var Ch=Rx(dj);ze=new Ch(1);const ae=Ch;function mj(e){return wj(e)||xj(e)||bj(e)||gj()}function gj(){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 bj(e,t){if(e){if(typeof e=="string")return Gl(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 Gl(e,t)}}function xj(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function wj(e){if(Array.isArray(e))return Gl(e)}function Gl(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 Oj=function(t){return t},Dx={},Nx=function(t){return t===Dx},km=function(t){return function r(){return arguments.length===0||arguments.length===1&&Nx(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},_j=function e(t,r){return t===1?r:km(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!==Dx}).length;return o>=t?r.apply(void 0,i):e(t-o,km(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 Nx(l)?c.shift():l});return r.apply(void 0,mj(f).concat(c))}))})},Za=function(t){return _j(t.length,t)},Vl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},Aj=Za(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Sj=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Oj;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))}},Xl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},qx=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 Pj(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function Tj(e,t,r){for(var n=new ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Ej=Za(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),jj=Za(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),Mj=Za(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ja={rangeStep:Tj,getDigitCount:Pj,interpolateNumber:Ej,uninterpolateNumber:jj,uninterpolateTruncation:Mj};function Yl(e){return Cj(e)||Ij(e)||Lx(e)||$j()}function $j(){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 Ij(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Cj(e){if(Array.isArray(e))return Zl(e)}function Wn(e,t){return Dj(e)||Rj(e,t)||Lx(e,t)||kj()}function kj(){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 Lx(e,t){if(e){if(typeof e=="string")return Zl(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 Zl(e,t)}}function Zl(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 Rj(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 Dj(e){if(Array.isArray(e))return e}function Bx(e){var t=Wn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Fx(e,t,r){if(e.lte(0))return new ae(0);var n=Ja.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ae(Math.ceil(c))}function Nj(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(Ja.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=Sj(Aj(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),Vl);return u(0,t)}function Wx(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 ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=Fx(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ae(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Wx(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 ae(u).mul(a)),tickMax:o.add(new ae(c).mul(a))})}function qj(e){var t=Wn(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=Bx([r,n]),c=Wn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(Yl(Vl(0,i-1).map(function(){return 1/0}))):[].concat(Yl(Vl(0,i-1).map(function(){return-1/0})),[f]);return r>n?Xl(l):l}if(s===f)return Nj(s,i,a);var h=Wx(s,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=Ja.rangeStep(y,v.add(new ae(.1).mul(d)),d);return r>n?Xl(p):p}function Lj(e,t){var r=Wn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Bx([n,i]),u=Wn(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=Fx(new ae(s).sub(c).div(f-1),a,0),h=[].concat(Yl(Ja.rangeStep(new ae(c),new ae(s).sub(new ae(.99).mul(l)),l)),[s]);return n>i?Xl(h):h}var Bj=qx(qj),Fj=qx(Lj),Wj="Invariant failed";function or(e,t){throw new Error(Wj)}var zj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function 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 Uj(e,t){return Vj(e)||Gj(e,t)||Kj(e,t)||Hj()}function Hj(){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 Kj(e,t){if(e){if(typeof e=="string")return Rm(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 Rm(e,t)}}function Rm(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 Gj(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 Vj(e){if(Array.isArray(e))return e}function Xj(e,t){if(e==null)return{};var r=Yj(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 Yj(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 Zj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jj(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,Hx(n.key),n)}}function Qj(e,t,r){return t&&Jj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eM(e,t,r){return t=na(t),tM(e,zx()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function tM(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rM(e)}function rM(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 na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function nM(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 Ux(e,t,r){return t=Hx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(e){var t=iM(e,"string");return Nr(t)=="symbol"?t:t+""}function iM(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qa=(function(e){function t(){return Zj(this,t),eM(this,t,arguments)}return nM(t,e),Qj(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=Xj(n,zj),d=H(h,!1);this.props.direction==="x"&&f.type!=="number"&&or();var y=c.map(function(v){var p=s(v,u),g=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var A=Uj(O,2);b=A[0],_=A[1]}else b=_=O;if(a==="vertical"){var P=f.scale,j=x+i,E=j+o,T=j-o,M=P(w-b),I=P(w+_);m.push({x1:I,y1:E,x2:I,y2:T}),m.push({x1:M,y1:j,x2:I,y2:j}),m.push({x1:M,y1:E,x2:M,y2:T})}else if(a==="horizontal"){var $=l.scale,k=g+i,R=k-o,L=k+o,B=$(w-b),U=$(w+_);m.push({x1:R,y1:U,x2:L,y2:U}),m.push({x1:k,y1:B,x2:k,y2:U}),m.push({x1:R,y1:B,x2:L,y2:B})}return S.createElement(ee,ra({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 S.createElement("line",ra({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return S.createElement(ee,{className:"recharts-errorBars"},y)}}])})(S.Component);Ux(Qa,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Ux(Qa,"displayName","ErrorBar");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 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 zt(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){aM(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 aM(e,t,r){return t=oM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oM(e){var t=uM(e,"string");return zn(t)=="symbol"?t:t+""}function uM(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)}var Kx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=We(r,Ar);if(!o)return null;var u=Ar.defaultProps,c=u!==void 0?zt(zt({},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?zt(zt({},h),l.props):{},y=d.dataKey,v=d.name,p=d.legendType,g=d.hide;return{inactive:g,dataKey:y,type:c.iconType||p||"square",color:kh(l),value:v||y,payload:d}}),zt(zt(zt({},c),Ar.getWithHeight(o,i)),{},{payload:s,item:o})};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 Nm(e){return fM(e)||lM(e)||sM(e)||cM()}function cM(){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 sM(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 lM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fM(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 qm(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?qm(Object(r),!0).forEach(function(n){Pr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pr(e,t,r){return t=hM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hM(e){var t=pM(e,"string");return Un(t)=="symbol"?t:t+""}function pM(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 _e(e,t,r){return Y(e)||Y(t)?r:Ae(t)?Ue(e,t,r):V(t)?t(e):r}function Sn(e,t,r,n){var i=fj(e,function(u){return _e(u,t)});if(r==="number"){var a=i.filter(function(u){return N(u)||parseFloat(u)});return a.length?[Ya(a),It(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Y(u)}):i;return o.map(function(u){return Ae(u)||u instanceof Date?u:""})}var dM=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(Ie(l-f)!==Ie(h-l)){var y=[];if(Ie(h-l)===Ie(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 g=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>g[0]&&t<=g[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},kh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ve(ve({},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},vM=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,g=v.filter(function(_){return bt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ve(ve({},x),g[0].props):g[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var b=Y(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Y(b)?void 0:Ce(b,n,0)})}}return o},yM=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=Ce(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 b={item:m.item,position:{offset:p.offset+p.size+s,size:h?d:m.barSize}},_=[].concat(Nm(O),[b]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:p})}),_},l)}else{var g=Ce(n,i,0,!0);i-2*g-(c-1)*s<=0&&(s=0);var x=(i-2*g-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat(Nm(O),[{item:m.item,position:{offset:g+(x+s)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},mM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Kx({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"&&N(t[d]))return ve(ve({},t),{},Pr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&N(t[y]))return ve(ve({},t),{},Pr({},y,t[y]+(h||0)))}return t},gM=function(t,r,n){return Y(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Gx=function(t,r,n,i,a){var o=r.props.children,u=Ye(o,Qa).filter(function(s){return gM(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=_e(f,n);if(Y(l))return s;var h=Array.isArray(l)?[Ya(l),It(l)]:[l,l],d=c.reduce(function(y,v){var p=_e(f,v,0),g=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,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},bM=function(t,r,n,i,a){var o=r.map(function(u){return Gx(t,u,n,a,i)}).filter(function(u){return!Y(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},Vx=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Gx(t,c,s,i)||Sn(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},[])},Xx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Yx=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},gt=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?Ie(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!rn(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}})},Bs=new WeakMap,Pi=function(t,r){if(typeof r!="function")return t;Bs.has(t)||Bs.set(t,new WeakMap);var n=Bs.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},Zx=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:Dn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Zi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:An(),realScaleType:"point"}:a==="category"?{scale:Dn(),realScaleType:"band"}:{scale:Zi(),realScaleType:"linear"};if(rr(i)){var c="scale".concat(Da(i));return{scale:(_m[c]||An)(),realScaleType:_m[c]?c:"point"}}return V(i)?{scale:i}:{scale:An(),realScaleType:"point"}},Lm=1e-4,Jx=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])-Lm,o=Math.max(i[0],i[1])+Lm,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},xM=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},wM=function(t,r){if(!r||r.length!==2||!N(r[0])||!N(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(!N(t[0])||t[0]<n)&&(a[0]=n),(!N(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},OM=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=rn(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])}},_M=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=rn(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)}},AM={sign:OM,expand:o1,none:Er,silhouette:u1,wiggle:c1,positive:_M},SM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=AM[n],o=a1().keys(i).value(function(u,c){return+_e(u,c,0)}).order(El).offset(a);return o(t)},PM=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?ve(ve({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Ae(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[nn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ve(ve({},l),{},Pr({},g,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 g=d.stackGroups[p];return ve(ve({},v),{},Pr({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:SM(t,g.items,a)}))},y)}return ve(ve({},l),{},Pr({},h,d))},f)},Qx=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=Bj(s,a,u);return t.domain([Ya(f),It(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=Fj(l,a,u);return{niceTicks:h}}return null};function Bm(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&&!Y(i[t.dataKey])){var u=Ci(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=_e(i,Y(o)?t.dataKey:o);return Y(c)?null:t.scale(c)}var Fm=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=_e(o,r.dataKey,r.domain[u]);return Y(c)?null:r.scale(c)-a/2+i},TM=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]},EM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Ae(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},jM=function(t){return t.reduce(function(r,n){return[Ya(n.concat([r[0]]).filter(N)),It(n.concat([r[1]]).filter(N))]},[1/0,-1/0])},ew=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=jM(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})},Wm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ef=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(N(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Wm.test(t[0])){var a=+Wm.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(N(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(zm.test(t[1])){var o=+zm.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},ia=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=uh(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},Um=function(t,r,n){return!t||!t.length||Dr(t,Ue(n,"type.defaultProps.domain"))?r:t},tw=function(t,r){var n=t.type.defaultProps?ve(ve({},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 ve(ve({},H(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:kh(t),value:_e(r,i),type:c,payload:r,chartType:s,hide:f})};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 Hm(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 vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hm(Object(r),!0).forEach(function(n){rw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rw(e,t,r){return t=MM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e){var t=$M(e,"string");return Hn(t)=="symbol"?t:t+""}function $M(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(t==="string"?String:Number)(e)}function IM(e,t){return DM(e)||RM(e,t)||kM(e,t)||CM()}function CM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kM(e,t){if(e){if(typeof e=="string")return Km(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 Km(e,t)}}function Km(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 RM(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 DM(e){if(Array.isArray(e))return e}var aa=Math.PI/180,NM=function(t){return t*180/Math.PI},le=function(t,r,n,i){return{x:t+Math.cos(-aa*i)*n,y:r+Math.sin(-aa*i)*n}},nw=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},qM=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=Ce(t.cx,o,o/2),l=Ce(t.cy,u,u/2),h=nw(o,u,n),d=Ce(t.innerRadius,h,0),y=Ce(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(p,g){var x=r[g],w=x.domain,O=x.reversed,m;if(Y(x.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[d,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,_=IM(b,2);c=_[0],s=_[1]}var A=Zx(x,a),P=A.realScaleType,j=A.scale;j.domain(w).range(m),Jx(j);var E=Qx(j,vt(vt({},x),{},{realScaleType:P})),T=vt(vt(vt({},x),E),{},{range:m,radius:y,realScaleType:P,scale:j,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return vt(vt({},p),{},rw({},g,T))},{})},LM=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))},BM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=LM({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:NM(s),angleInRadian:s}},FM=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}},WM=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},Gm=function(t,r){var n=t.x,i=t.y,a=BM({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=FM(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?vt(vt({},r),{},{radius:o,angle:WM(d,r)}):null},iw=function(t){return!q.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};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)}var zM=["offset"];function UM(e){return VM(e)||GM(e)||KM(e)||HM()}function HM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KM(e,t){if(e){if(typeof e=="string")return tf(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 tf(e,t)}}function GM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VM(e){if(Array.isArray(e))return tf(e)}function tf(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 XM(e,t){if(e==null)return{};var r=YM(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 YM(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 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 Oe(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){ZM(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 ZM(e,t,r){return t=JM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JM(e){var t=QM(e,"string");return Kn(t)=="symbol"?t:t+""}function QM(e,t){if(Kn(e)!="object"||!e)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 Gn(){return Gn=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},Gn.apply(this,arguments)}var e$=function(t){var r=t.value,n=t.formatter,i=Y(t.children)?r:t.children;return V(n)?n(i):i},t$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),360);return n*i},r$=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,g=t$(d,y),x=g>=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=g<=0?O:!O;var m=le(s,f,p,w),b=le(s,f,p,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
|
|
28
|
-
A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
|
|
29
|
-
`).concat(b.x,",").concat(b.y),A=Y(t.id)?nn("recharts-radial-line-"):t.id;return S.createElement("text",Gn({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:A,d:_})),S.createElement("textPath",{xlinkHref:"#".concat(A)},r))},n$=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=le(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,g=le(o,u,p,h),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},i$=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,g=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 Oe(Oe({},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 Oe(Oe({},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:g,verticalAnchor:"middle"};return Oe(Oe({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+s+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return Oe(Oe({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?Oe({x:u+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?Oe({x:u+s-p,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?Oe({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?Oe({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?Oe({x:u+p,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?Oe({x:u+s-p,y:c+h,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?Oe({x:u+p,y:c+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?Oe({x:u+s-p,y:c+f-h,textAnchor:g,verticalAnchor:d},_):tn(a)&&(N(a.x)||Xt(a.x))&&(N(a.y)||Xt(a.y))?Oe({x:u+Ce(a.x,s),y:c+Ce(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):Oe({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},a$=function(t){return"cx"in t&&N(t.cx)};function Te(e){var t=e.offset,r=t===void 0?5:t,n=XM(e,zM),i=Oe({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||Y(u)&&Y(c)&&!q.isValidElement(s)&&!V(s))return null;if(q.isValidElement(s))return q.cloneElement(s,i);var d;if(V(s)){if(d=q.createElement(s,i),q.isValidElement(d))return d}else d=e$(i);var y=a$(a),v=H(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return r$(i,d,v);var p=y?n$(i):i$(i);return S.createElement(ir,Gn({className:J("recharts-label",l)},v,p,{breakAll:h}),d)}Te.displayName="Label";var aw=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,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(N(v)&&N(p)){if(N(l)&&N(h))return{x:l,y:h,width:v,height:p};if(N(d)&&N(y))return{x:d,y,width:v,height:p}}return N(l)&&N(h)?{x:l,y:h,width:0,height:0}:N(r)&&N(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},o$=function(t,r){return t?t===!0?S.createElement(Te,{key:"label-implicit",viewBox:r}):Ae(t)?S.createElement(Te,{key:"label-implicit",viewBox:r,value:t}):q.isValidElement(t)?t.type===Te?q.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):V(t)?S.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):tn(t)?S.createElement(Te,Gn({viewBox:r},t,{key:"label-implicit"})):null:null},u$=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=aw(t),o=Ye(i,Te).map(function(c,s){return q.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=o$(t.label,r||a);return[u].concat(UM(o))};Te.parseViewBox=aw;Te.renderCallByParent=u$;var Fs,Xm;function c$(){if(Xm)return Fs;Xm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Fs=e,Fs}var s$=c$();const l$=oe(s$);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)}var f$=["valueAccessor"],h$=["data","dataKey","clockWise","id","textBreakAll"];function p$(e){return m$(e)||y$(e)||v$(e)||d$()}function d$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v$(e,t){if(e){if(typeof e=="string")return rf(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 rf(e,t)}}function y$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m$(e){if(Array.isArray(e))return rf(e)}function rf(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 oa(){return oa=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},oa.apply(this,arguments)}function Ym(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 Zm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(r),!0).forEach(function(n){g$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g$(e,t,r){return t=b$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b$(e){var t=x$(e,"string");return Vn(t)=="symbol"?t:t+""}function x$(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 Jm(e,t){if(e==null)return{};var r=w$(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 w$(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 O$=function(t){return Array.isArray(t.value)?l$(t.value):t.value};function wt(e){var t=e.valueAccessor,r=t===void 0?O$:t,n=Jm(e,f$),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Jm(n,h$);return!i||!i.length?null:S.createElement(ee,{className:"recharts-label-list"},i.map(function(f,l){var h=Y(a)?r(f,l):_e(f&&f.payload,a),d=Y(u)?{}:{id:"".concat(u,"-").concat(l)};return S.createElement(Te,oa({},H(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Te.parseViewBox(Y(o)?f:Zm(Zm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}wt.displayName="LabelList";function _$(e,t){return e?e===!0?S.createElement(wt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||V(e)?S.createElement(wt,{key:"labelList-implicit",data:t,content:e}):tn(e)?S.createElement(wt,oa({data:t},e,{key:"labelList-implicit"})):null:null}function A$(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=Ye(n,wt).map(function(o,u){return q.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=_$(e.label,t);return[a].concat(p$(i))}wt.renderCallByParent=A$;function Xn(e){"@babel/helpers - typeof";return Xn=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},Xn(e)}function nf(){return nf=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},nf.apply(this,arguments)}function Qm(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 eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(r),!0).forEach(function(n){S$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S$(e,t,r){return t=P$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P$(e){var t=T$(e,"string");return Xn(t)=="symbol"?t:t+""}function T$(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ti=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)/aa,h=s?a:a+o*l,d=le(r,n,f,h),y=le(r,n,i,h),v=s?a-o*l:a,p=le(r,n,f*Math.cos(l*aa),v);return{center:d,circleTangency:y,lineTangency:p,theta:l}},ow=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=E$(o,u),s=o+c,f=le(r,n,a,o),l=le(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
|
|
31
|
-
A `).concat(a,",").concat(a,`,0,
|
|
32
|
-
`).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
|
|
33
|
-
`).concat(l.x,",").concat(l.y,`
|
|
34
|
-
`);if(i>0){var d=le(r,n,i,o),y=le(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,`
|
|
35
|
-
A `).concat(i,",").concat(i,`,0,
|
|
36
|
-
`).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
|
|
37
|
-
`).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},j$=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=Ie(f-s),h=Ti({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,y=h.lineTangency,v=h.theta,p=Ti({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),g=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,`
|
|
38
|
-
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
39
|
-
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
40
|
-
`):ow({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
|
|
41
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
|
|
42
|
-
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
|
|
43
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
|
44
|
-
`);if(i>0){var b=Ti({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=b.circleTangency,A=b.lineTangency,P=b.theta,j=Ti({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=j.circleTangency,T=j.lineTangency,M=j.theta,I=c?Math.abs(s-f):Math.abs(s-f)-P-M;if(I<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
|
|
45
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,`
|
|
46
|
-
A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
|
47
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},M$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},uw=function(t){var r=eg(eg({},M$),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=J("recharts-sector",h),y=o-a,v=Ce(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=j$({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=ow({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),S.createElement("path",nf({},H(r,!0),{className:d,d:p,role:"img"}))};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 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)}function tg(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 rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tg(Object(r),!0).forEach(function(n){$$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $$(e,t,r){return t=I$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I$(e){var t=C$(e,"string");return Yn(t)=="symbol"?t:t+""}function C$(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 ng={curveBasisClosed:V_,curveBasisOpen:X_,curveBasis:G_,curveBumpX:C_,curveBumpY:k_,curveLinearClosed:Y_,curveLinear:qa,curveMonotoneX:Z_,curveMonotoneY:J_,curveNatural:Q_,curveStep:e1,curveStepAfter:r1,curveStepBefore:t1},Ei=function(t){return t.x===+t.x&&t.y===+t.y},yn=function(t){return t.x},mn=function(t){return t.y},k$=function(t,r){if(V(t))return t;var n="curve".concat(Da(t));return(n==="curveMonotone"||n==="curveBump")&&r?ng["".concat(n).concat(r==="vertical"?"Y":"X")]:ng[n]||qa},R$=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=k$(n,u),l=s?a.filter(function(v){return Ei(v)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(v){return Ei(v)}):o,y=l.map(function(v,p){return rg(rg({},v),{},{base:d[p]})});return u==="vertical"?h=gi().y(mn).x1(yn).x0(function(v){return v.base.x}):h=gi().x(yn).y1(mn).y0(function(v){return v.base.y}),h.defined(Ei).curve(f),h(y)}return u==="vertical"&&N(o)?h=gi().y(mn).x1(yn).x0(o):N(o)?h=gi().x(yn).y1(mn).y0(o):h=i0().x(yn).y(mn),h.defined(Ei).curve(f),h(l)},Tr=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?R$(t):i;return q.createElement("path",af({},H(t,!1),ki(t),{className:J("recharts-curve",r),d:o,ref:a}))},Ws={exports:{}},zs,ig;function D$(){if(ig)return zs;ig=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zs=e,zs}var Us,ag;function N$(){if(ag)return Us;ag=1;var e=D$();function t(){}function r(){}return r.resetWarningCache=t,Us=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},Us}var og;function q$(){return og||(og=1,Ws.exports=N$()()),Ws.exports}var L$=q$();const ie=oe(L$),{getOwnPropertyNames:B$,getOwnPropertySymbols:F$}=Object,{hasOwnProperty:W$}=Object.prototype;function Hs(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ji(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 z$(e){return e!=null?e[Symbol.toStringTag]:void 0}function ug(e){return B$(e).concat(F$(e))}const U$=Object.hasOwn||((e,t)=>W$.call(e,t));function hr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const H$="__v",K$="__o",G$="_owner",{getOwnPropertyDescriptor:cg,keys:sg}=Object;function V$(e,t){return e.byteLength===t.byteLength&&ua(new Uint8Array(e),new Uint8Array(t))}function X$(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 Y$(e,t){return e.byteLength===t.byteLength&&ua(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Z$(e,t){return hr(e.getTime(),t.getTime())}function J$(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Q$(e,t){return e===t}function lg(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 eI=hr;function tI(e,t,r){const n=sg(e);let i=n.length;if(sg(t).length!==i)return!1;for(;i-- >0;)if(!cw(e,t,r,n[i]))return!1;return!0}function gn(e,t,r){const n=ug(e);let i=n.length;if(ug(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!cw(e,t,r,a)||(o=cg(e,a),u=cg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function rI(e,t){return hr(e.valueOf(),t.valueOf())}function nI(e,t){return e.source===t.source&&e.flags===t.flags}function fg(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 ua(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 iI(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 cw(e,t,r,n){return(n===G$||n===K$||n===H$)&&(e.$$typeof||t.$$typeof)?!0:U$(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const aI="[object ArrayBuffer]",oI="[object Arguments]",uI="[object Boolean]",cI="[object DataView]",sI="[object Date]",lI="[object Error]",fI="[object Map]",hI="[object Number]",pI="[object Object]",dI="[object RegExp]",vI="[object Set]",yI="[object String]",mI={"[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},gI="[object URL]",bI=Object.prototype.toString;function xI({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,g,x){if(p===g)return!0;if(p==null||g==null)return!1;const w=typeof p;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(p,g,x):w==="function"?a(p,g,x):!1;const O=p.constructor;if(O!==g.constructor)return!1;if(O===Object)return c(p,g,x);if(Array.isArray(p))return t(p,g,x);if(O===Date)return n(p,g,x);if(O===RegExp)return f(p,g,x);if(O===Map)return o(p,g,x);if(O===Set)return l(p,g,x);const m=bI.call(p);if(m===sI)return n(p,g,x);if(m===dI)return f(p,g,x);if(m===fI)return o(p,g,x);if(m===vI)return l(p,g,x);if(m===pI)return typeof p.then!="function"&&typeof g.then!="function"&&c(p,g,x);if(m===gI)return d(p,g,x);if(m===lI)return i(p,g,x);if(m===oI)return c(p,g,x);if(mI[m])return h(p,g,x);if(m===aI)return e(p,g,x);if(m===cI)return r(p,g,x);if(m===uI||m===hI||m===yI)return s(p,g,x);if(y){let b=y[m];if(!b){const _=z$(p);_&&(b=y[_])}if(b)return b(p,g,x)}return!1}}function wI({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:V$,areArraysEqual:r?gn:X$,areDataViewsEqual:Y$,areDatesEqual:Z$,areErrorsEqual:J$,areFunctionsEqual:Q$,areMapsEqual:r?Hs(lg,gn):lg,areNumbersEqual:eI,areObjectsEqual:r?gn:tI,arePrimitiveWrappersEqual:rI,areRegExpsEqual:nI,areSetsEqual:r?Hs(fg,gn):fg,areTypedArraysEqual:r?Hs(ua,gn):ua,areUrlsEqual:iI,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ji(n.areArraysEqual),a=ji(n.areMapsEqual),o=ji(n.areObjectsEqual),u=ji(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function OI(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function _I({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 AI=qt();qt({strict:!0});qt({circular:!0});qt({circular:!0,strict:!0});qt({createInternalComparator:()=>hr});qt({strict:!0,createInternalComparator:()=>hr});qt({circular:!0,createInternalComparator:()=>hr});qt({circular:!0,createInternalComparator:()=>hr,strict:!0});function qt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=wI(e),o=xI(a),u=r?r(o):OI(o);return _I({circular:t,comparator:o,createState:n,equals:u,strict:i})}function SI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function hg(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):SI(i)};requestAnimationFrame(n)}function of(e){"@babel/helpers - typeof";return of=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},of(e)}function PI(e){return MI(e)||jI(e)||EI(e)||TI()}function TI(){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 EI(e,t){if(e){if(typeof e=="string")return pg(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 pg(e,t)}}function pg(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 jI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MI(e){if(Array.isArray(e))return e}function $I(){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=PI(o),c=u[0],s=u.slice(1);if(typeof c=="number"){hg(i.bind(null,s),c);return}i(c),hg(i.bind(null,s));return}of(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 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 dg(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 vg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(r),!0).forEach(function(n){sw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sw(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=CI(e,"string");return Zn(t)==="symbol"?t:String(t)}function CI(e,t){if(Zn(e)!=="object"||e===null)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)}var kI=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},RI=function(t){return t},DI=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Pn=function(t,r){return Object.keys(r).reduce(function(n,i){return vg(vg({},n),{},sw({},i,t(i,r[i])))},{})},yg=function(t,r,n){return t.map(function(i){return"".concat(DI(i)," ").concat(r,"ms ").concat(n)}).join(",")};function NI(e,t){return BI(e)||LI(e,t)||lw(e,t)||qI()}function qI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LI(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 BI(e){if(Array.isArray(e))return e}function FI(e){return UI(e)||zI(e)||lw(e)||WI()}function WI(){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 lw(e,t){if(e){if(typeof e=="string")return uf(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 uf(e,t)}}function zI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UI(e){if(Array.isArray(e))return uf(e)}function uf(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 ca=1e-4,fw=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},hw=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},mg=function(t,r){return function(n){var i=fw(t,r);return hw(i,n)}},HI=function(t,r){return function(n){var i=fw(t,r),a=[].concat(FI(i.map(function(o,u){return o*u}).slice(1)),[0]);return hw(a,n)}},gg=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=NI(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=mg(i,o),h=mg(a,u),d=HI(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=d(w);if(Math.abs(m-x)<ca||b<ca)return h(w);w=y(w-m/b)}return h(w)};return v.isStepper=!1,v},KI=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)<ca&&Math.abs(v)<ca?[l,0]:[p,v]};return c.isStepper=!0,c.dt=u,c},GI=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 gg(i);case"spring":return KI();default:if(i.split("(")[0]==="cubic-bezier")return gg(i)}return typeof i=="function"?i: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)}function bg(e){return YI(e)||XI(e)||pw(e)||VI()}function VI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
51
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YI(e){if(Array.isArray(e))return sf(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 je(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){cf(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 cf(e,t,r){return t=ZI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZI(e){var t=JI(e,"string");return Jn(t)==="symbol"?t:String(t)}function JI(e,t){if(Jn(e)!=="object"||e===null)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 QI(e,t){return rC(e)||tC(e,t)||pw(e,t)||eC()}function eC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
52
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pw(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 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 tC(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 rC(e){if(Array.isArray(e))return e}var sa=function(t,r,n){return t+(r-t)*n},lf=function(t){var r=t.from,n=t.to;return r!==n},nC=function e(t,r,n){var i=Pn(function(a,o){if(lf(o)){var u=t(o.from,o.to,o.velocity),c=QI(u,2),s=c[0],f=c[1];return je(je({},o),{},{from:s,velocity:f})}return o},r);return n<1?Pn(function(a,o){return lf(o)?je(je({},o),{},{velocity:sa(o.velocity,i[a].velocity,n),from:sa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const iC=(function(e,t,r,n,i){var a=kI(e,t),o=a.reduce(function(p,g){return je(je({},p),{},cf({},g,[e[g],t[g]]))},{}),u=a.reduce(function(p,g){return je(je({},p),{},cf({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return Pn(function(g,x){return x.from},u)},d=function(){return!Object.values(u).filter(lf).length},y=function(g){s||(s=g);var x=g-s,w=x/r.dt;u=nC(r,u,w),i(je(je(je({},e),t),h())),s=g,d()||(c=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=Pn(function(m,b){return sa.apply(void 0,bg(b).concat([r(x)]))},o);if(i(je(je(je({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=Pn(function(m,b){return sa.apply(void 0,bg(b).concat([r(1)]))},o);i(je(je(je({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function qr(e){"@babel/helpers - typeof";return qr=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},qr(e)}var aC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function oC(e,t){if(e==null)return{};var r=uC(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 uC(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 Ks(e){return fC(e)||lC(e)||sC(e)||cC()}function cC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
53
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sC(e,t){if(e){if(typeof e=="string")return ff(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 ff(e,t)}}function lC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fC(e){if(Array.isArray(e))return ff(e)}function ff(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 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 Qe(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){On(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 On(e,t,r){return t=dw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pC(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,dw(n.key),n)}}function dC(e,t,r){return t&&pC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dw(e){var t=vC(e,"string");return qr(t)==="symbol"?t:String(t)}function vC(e,t){if(qr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yC(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&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(e,t)}function mC(e){var t=gC();return function(){var n=la(e),i;if(t){var a=la(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return pf(this,i)}}function pf(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return df(e)}function df(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gC(){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 la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}var lt=(function(e){yC(r,e);var t=mC(r);function r(n,i){var a;hC(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(df(a)),a.changeStyle=a.changeStyle.bind(df(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),pf(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},pf(a);a.state={style:c?On({},c,s):s}}else a.state={style:{}};return a}return dC(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?On({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(AI(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?On({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(p)}this.runAnimation(Qe(Qe({},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=iC(o,u,GI(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,g){if(g===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,m=p.style,b=p.properties,_=p.onAnimationEnd,A=g>0?o[g-1]:p,P=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Ks(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:x,easing:O}),x]);var j=yg(P,x,O),E=Qe(Qe(Qe({},A.style),m),{},{transition:j});return[].concat(Ks(v),[E,x,_]).filter(RI)};return this.manager.start([c].concat(Ks(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=$I());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?On({},u,c):c,p=yg(Object.keys(v),o,s);y.start([f,a,Qe(Qe({},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=oC(i,aC),s=q.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,g=y.className,x=q.cloneElement(d,Qe(Qe({},c),{},{style:Qe(Qe({},p),f),className:g}));return x};return s===1?l(q.Children.only(a)):S.createElement("div",null,q.Children.map(a,function(h){return l(h)}))}}]),r})(q.PureComponent);lt.displayName="Animate";lt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};lt.propTypes={from:ie.oneOfType([ie.object,ie.string]),to:ie.oneOfType([ie.object,ie.string]),attributeName:ie.string,duration:ie.number,begin:ie.number,easing:ie.oneOfType([ie.string,ie.func]),steps:ie.arrayOf(ie.shape({duration:ie.number.isRequired,style:ie.object.isRequired,easing:ie.oneOfType([ie.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ie.func]),properties:ie.arrayOf("string"),onAnimationEnd:ie.func})),children:ie.oneOfType([ie.node,ie.func]),isActive:ie.bool,canBegin:ie.bool,onAnimationEnd:ie.func,shouldReAnimate:ie.bool,onAnimationStart:ie.func,onAnimationReStart:ie.func};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 fa(){return fa=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},fa.apply(this,arguments)}function bC(e,t){return _C(e)||OC(e,t)||wC(e,t)||xC()}function xC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
54
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wC(e,t){if(e){if(typeof e=="string")return Og(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 Og(e,t)}}function Og(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 OC(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 _C(e){if(Array.isArray(e))return e}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 Ag(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){AC(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 AC(e,t,r){return t=SC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SC(e){var t=PC(e,"string");return Qn(t)=="symbol"?t:t+""}function PC(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 Sg=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,`,
|
|
55
|
-
`).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,`,
|
|
56
|
-
`).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,`,
|
|
57
|
-
`).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,`
|
|
58
|
-
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
|
|
59
|
-
L `).concat(t+n-c*y,",").concat(r,`
|
|
60
|
-
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
|
|
61
|
-
L `).concat(t+n,",").concat(r+i-u*y,`
|
|
62
|
-
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
|
|
63
|
-
L `).concat(t+c*y,",").concat(r+i,`
|
|
64
|
-
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},TC=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},EC={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rh=function(t){var r=Ag(Ag({},EC),t),n=q.useRef(),i=q.useState(-1),a=bC(i,2),o=a[0],u=a[1];q.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,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=J("recharts-rectangle",d);return x?S.createElement(lt,{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,b=O.height,_=O.x,A=O.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:y},S.createElement("path",fa({},H(r,!0),{className:w,d:Sg(_,A,m,b,h),ref:n})))}):S.createElement("path",fa({},H(r,!0),{className:w,d:Sg(c,s,f,l,h)}))},jC=["points","className","baseLinePoints","connectNulls"];function br(){return br=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},br.apply(this,arguments)}function MC(e,t){if(e==null)return{};var r=$C(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 $C(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 Pg(e){return RC(e)||kC(e)||CC(e)||IC()}function IC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
65
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CC(e,t){if(e){if(typeof e=="string")return vf(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 vf(e,t)}}function kC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RC(e){if(Array.isArray(e))return vf(e)}function vf(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 Tg=function(t){return t&&t.x===+t.x&&t.y===+t.y},DC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Tg(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Tg(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Tn=function(t,r){var n=DC(t);r&&(n=[n.reduce(function(a,o){return[].concat(Pg(a),Pg(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},NC=function(t,r,n){var i=Tn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Tn(r.reverse(),n).slice(1))},qC=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=MC(t,jC);if(!r||!r.length)return null;var u=J("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=NC(r,i,a);return S.createElement("g",{className:u},S.createElement("path",br({},H(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?S.createElement("path",br({},H(o,!0),{fill:"none",d:Tn(r,a)})):null,c?S.createElement("path",br({},H(o,!0),{fill:"none",d:Tn(i,a)})):null)}var f=Tn(r,a);return S.createElement("path",br({},H(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function yf(){return yf=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},yf.apply(this,arguments)}var eo=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=J("recharts-dot",a);return r===+r&&n===+n&&i===+i?q.createElement("circle",yf({},H(t,!1),ki(t),{className:o,cx:r,cy:n,r:i})):null};function ei(e){"@babel/helpers - typeof";return ei=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},ei(e)}var LC=["x","y","top","left","width","height","className"];function mf(){return mf=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},mf.apply(this,arguments)}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 BC(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){FC(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 FC(e,t,r){return t=WC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=zC(e,"string");return ei(t)=="symbol"?t:t+""}function zC(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UC(e,t){if(e==null)return{};var r=HC(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 HC(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 KC=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},GC=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=UC(t,LC),p=BC({x:n,y:a,top:u,left:s,width:l,height:d},v);return!N(n)||!N(a)||!N(l)||!N(d)||!N(u)||!N(s)?null:S.createElement("path",mf({},H(p,!0),{className:J("recharts-cross",y),d:KC(n,a,l,d,u,s)}))},Gs,jg;function VC(){if(jg)return Gs;jg=1;var e=Xa(),t=jx(),r=ht();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Gs=n,Gs}var XC=VC();const YC=oe(XC);var Vs,Mg;function ZC(){if(Mg)return Vs;Mg=1;var e=Xa(),t=ht(),r=Mx();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Vs=n,Vs}var JC=ZC();const QC=oe(JC);var ek=["cx","cy","angle","ticks","axisLine"],tk=["ticks","tick","angle","tickFormatter","stroke"];function Lr(e){"@babel/helpers - typeof";return Lr=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},Lr(e)}function En(){return En=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},En.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 Ut(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){to(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 Ig(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}function nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cg(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,yw(n.key),n)}}function ik(e,t,r){return t&&Cg(e.prototype,t),r&&Cg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ak(e,t,r){return t=ha(t),ok(e,vw()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function ok(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uk(e)}function uk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vw=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function ck(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&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function to(e,t,r){return t=yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yw(e){var t=sk(e,"string");return Lr(t)=="symbol"?t:t+""}function sk(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ro=(function(e){function t(){return nk(this,t),ak(this,t,arguments)}return ck(t,e),ik(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return le(u,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=YC(u,function(f){return f.coordinate||0}),s=QC(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,s=Ig(n,ek),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=le(i,a,f[0],o),h=le(i,a,f[1],o),d=Ut(Ut(Ut({},H(s,!1)),{},{fill:"none"},H(c,!1)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return S.createElement("line",En({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,s=i.stroke,f=Ig(i,tk),l=this.getTickTextAnchor(),h=H(f,!1),d=H(o,!1),y=a.map(function(v,p){var g=n.getTickValueCoord(v),x=Ut(Ut(Ut(Ut({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:s},d),{},{index:p},g),{},{payload:v});return S.createElement(ee,En({className:J("recharts-polar-radius-axis-tick",iw(o)),key:"tick-".concat(v.coordinate)},nr(n.props,v,p)),t.renderTickItem(o,x,c?c(v.value,p):v.value))});return S.createElement(ee,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(ee,{className:J("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Te.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):V(n)?o=n(i):o=S.createElement(ir,En({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(q.PureComponent);to(ro,"displayName","PolarRadiusAxis");to(ro,"axisType","radiusAxis");to(ro,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});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 Vt(){return Vt=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},Vt.apply(this,arguments)}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 Ht(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){no(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 lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rg(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,gw(n.key),n)}}function fk(e,t,r){return t&&Rg(e.prototype,t),r&&Rg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hk(e,t,r){return t=pa(t),pk(e,mw()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function pk(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 dk(e)}function dk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mw=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function vk(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&&bf(e,t)}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bf(e,t)}function no(e,t,r){return t=gw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=yk(e,"string");return Br(t)=="symbol"?t:t+""}function yk(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)}var mk=Math.PI/180,Dg=1e-5,io=(function(e){function t(){return lk(this,t),hk(this,t,arguments)}return vk(t,e),fk(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,s=i.tickSize,f=s||8,l=le(a,o,u,n.coordinate),h=le(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*mk),o;return a>Dg?o=i==="outer"?"start":"end":a<-Dg?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,c=n.axisLineType,s=Ht(Ht({},H(this.props,!1)),{},{fill:"none"},H(u,!1));if(c==="circle")return S.createElement(eo,Vt({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(h){return le(i,a,o,h.coordinate)});return S.createElement(qC,Vt({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,s=i.stroke,f=H(this.props,!1),l=H(o,!1),h=Ht(Ht({},f),{},{fill:"none"},H(u,!1)),d=a.map(function(y,v){var p=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=Ht(Ht(Ht({textAnchor:g},f),{},{stroke:"none",fill:s},l),{},{index:v,payload:y,x:p.x2,y:p.y2});return S.createElement(ee,Vt({className:J("recharts-polar-angle-axis-tick",iw(o)),key:"tick-".concat(y.coordinate)},nr(n.props,y,v)),u&&S.createElement("line",Vt({className:"recharts-polar-angle-axis-tick-line"},h,p)),o&&t.renderTickItem(o,x,c?c(y.value,v):y.value))});return S.createElement(ee,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(ee,{className:J("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):V(n)?o=n(i):o=S.createElement(ir,Vt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(q.PureComponent);no(io,"displayName","PolarAngleAxis");no(io,"axisType","angleAxis");no(io,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Xs,Ng;function gk(){if(Ng)return Xs;Ng=1;var e=T0(),t=e(Object.getPrototypeOf,Object);return Xs=t,Xs}var Ys,qg;function bk(){if(qg)return Ys;qg=1;var e=St(),t=gk(),r=Pt(),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 Ys=s,Ys}var xk=bk();const wk=oe(xk);var Zs,Lg;function Ok(){if(Lg)return Zs;Lg=1;var e=St(),t=Pt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Zs=n,Zs}var _k=Ok();const Ak=oe(_k);function ti(e){"@babel/helpers - typeof";return ti=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},ti(e)}function da(){return da=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},da.apply(this,arguments)}function Sk(e,t){return jk(e)||Ek(e,t)||Tk(e,t)||Pk()}function Pk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
66
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tk(e,t){if(e){if(typeof e=="string")return Bg(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 Bg(e,t)}}function Bg(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 Ek(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 jk(e){if(Array.isArray(e))return e}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 Wg(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){Mk(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 Mk(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 ti(t)=="symbol"?t:t+""}function Ik(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zg=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},Ck={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},kk=function(t){var r=Wg(Wg({},Ck),t),n=q.useRef(),i=q.useState(-1),a=Sk(i,2),o=a[0],u=a[1];q.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,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=J("recharts-trapezoid",d);return g?S.createElement(lt,{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:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,A=w.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},S.createElement("path",da({},H(r,!0),{className:x,d:zg(_,A,O,m,b),ref:n})))}):S.createElement("g",null,S.createElement("path",da({},H(r,!0),{className:x,d:zg(c,s,f,l,h)})))},Rk=["option","shapeType","propTransformer","activeClassName","isActive"];function ri(e){"@babel/helpers - typeof";return ri=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},ri(e)}function Dk(e,t){if(e==null)return{};var r=Nk(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 Nk(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 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 va(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){qk(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 qk(e,t,r){return t=Lk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lk(e){var t=Bk(e,"string");return ri(t)=="symbol"?t:t+""}function Bk(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fk(e,t){return va(va({},t),e)}function Wk(e,t){return e==="symbols"}function Hg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(Rh,r);case"trapezoid":return S.createElement(kk,r);case"sector":return S.createElement(uw,r);case"symbols":if(Wk(t))return S.createElement(Qf,r);break;default:return null}}function zk(e){return q.isValidElement(e)?e.props:e}function bw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Fk:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=Dk(e,Rk),s;if(q.isValidElement(t))s=q.cloneElement(t,va(va({},c),zk(t)));else if(V(t))s=t(c);else if(wk(t)&&!Ak(t)){var f=i(t,c);s=S.createElement(Hg,{shapeType:r,elementProps:f})}else{var l=c;s=S.createElement(Hg,{shapeType:r,elementProps:l})}return u?S.createElement(ee,{className:o},s):s}function ao(e,t){return t!=null&&"trapezoids"in e.props}function oo(e,t){return t!=null&&"sectors"in e.props}function ni(e,t){return t!=null&&"points"in e.props}function Uk(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 Hk(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Kk(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Gk(e,t){var r;return ao(e,t)?r=Uk:oo(e,t)?r=Hk:ni(e,t)&&(r=Kk),r}function Vk(e,t){var r;return ao(e,t)?r="trapezoids":oo(e,t)?r="sectors":ni(e,t)&&(r="points"),r}function Xk(e,t){if(ao(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(oo(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 ni(e,t)?t.payload:{}}function Yk(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=Vk(r,t),a=Xk(r,t),o=n.filter(function(c,s){var f=Dr(a,c),l=r.props[i].filter(function(y){var v=Gk(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 Ii;function Fr(e){"@babel/helpers - typeof";return Fr=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},Fr(e)}function xr(){return xr=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},xr.apply(this,arguments)}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 ce(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){Ve(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 Zk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gg(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,ww(n.key),n)}}function Jk(e,t,r){return t&&Gg(e.prototype,t),r&&Gg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qk(e,t,r){return t=ya(t),eR(e,xw()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function eR(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tR(e)}function tR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xw=function(){return!!e})()}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}function rR(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&&xf(e,t)}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xf(e,t)}function Ve(e,t,r){return t=ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ww(e){var t=nR(e,"string");return Fr(t)=="symbol"?t:t+""}function nR(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lt=(function(e){function t(r){var n;return Zk(this,t),n=Qk(this,t,[r]),Ve(n,"pieRef",null),Ve(n,"sectorRefs",[]),Ve(n,"id",nn("recharts-pie-")),Ve(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),V(i)&&i()}),Ve(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),V(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return rR(t,e),Jk(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,c=a.dataKey,s=a.valueKey,f=H(this.props,!1),l=H(o,!1),h=H(u,!1),d=o&&o.offsetRadius||20,y=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,x=le(v.cx,v.cy,v.outerRadius+d,g),w=ce(ce(ce(ce({},f),v),{},{stroke:"none"},l),{},{index:p,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=ce(ce(ce(ce({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:p,points:[le(v.cx,v.cy,v.outerRadius,g),x]}),m=c;return Y(c)&&Y(s)?m="value":Y(c)&&(m=s),S.createElement(ee,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,_e(v,m)))});return S.createElement(ee,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(s,f){if((s==null?void 0:s.startAngle)===0&&(s==null?void 0:s.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),h=c&&i.hasActiveIndex()?c:null,d=l?o:h,y=ce(ce({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return S.createElement(ee,xr({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},nr(i.props,s,f),{key:"sector-".concat(s==null?void 0:s.startAngle,"-").concat(s==null?void 0:s.endAngle,"-").concat(s.midAngle,"-").concat(f)}),S.createElement(bw,xr({option:d,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state,h=l.prevSectors,d=l.prevIsAnimationActive;return S.createElement(lt,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,p=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=h&&h[O],b=O>0?Ue(w,"paddingAngle",0):0;if(m){var _=Ne(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=ce(ce({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});p.push(A),x=A.endAngle}else{var P=w.endAngle,j=w.startAngle,E=Ne(0,P-j),T=E(v),M=ce(ce({},w),{},{startAngle:x+b,endAngle:x+T+b});p.push(M),x=M.endAngle}}),S.createElement(ee,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Dr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,c=i.label,s=i.cx,f=i.cy,l=i.innerRadius,h=i.outerRadius,d=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!N(s)||!N(f)||!N(l)||!N(h))return null;var v=J("recharts-pie",u);return S.createElement(ee,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),c&&this.renderLabels(o),Te.renderCallByParent(this.props,null,!1),(!d||y)&&wt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(V(n))return n(i);var o=J("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(Tr,xr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(V(n)&&(o=n(i),S.isValidElement(o)))return o;var u=J("recharts-pie-label-text",typeof n!="boolean"&&!V(n)?n.className:"");return S.createElement(ir,xr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(q.PureComponent);Ii=Lt;Ve(Lt,"displayName","Pie");Ve(Lt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!sr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ve(Lt,"parseDeltaAngle",function(e,t){var r=Ie(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Ve(Lt,"getRealPieData",function(e){var t=e.data,r=e.children,n=H(e,!1),i=Ye(r,sh);return t&&t.length?t.map(function(a,o){return ce(ce(ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return ce(ce({},n),a.props)}):[]});Ve(Lt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=nw(i,a),u=n+Ce(e.cx,i,i/2),c=r+Ce(e.cy,a,a/2),s=Ce(e.innerRadius,o,0),f=Ce(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});Ve(Lt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?ce(ce({},t.type.defaultProps),t.props):t.props,i=Ii.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,s=n.dataKey,f=n.nameKey,l=n.valueKey,h=n.tooltipType,d=Math.abs(n.minAngle),y=Ii.parseCoordinateOfPie(n,r),v=Ii.parseDeltaAngle(o,u),p=Math.abs(v),g=s;Y(s)&&Y(l)?(rt(!1,`Use "dataKey" to specify the value of pie,
|
|
67
|
-
the props "valueKey" will be deprecated in 1.1.0`),g="value"):Y(s)&&(rt(!1,`Use "dataKey" to specify the value of pie,
|
|
68
|
-
the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(A){return _e(A,g,0)!==0}).length,w=(p>=360?x:x-1)*c,O=p-x*d-w,m=i.reduce(function(A,P){var j=_e(P,g,0);return A+(N(j)?j:0)},0),b;if(m>0){var _;b=i.map(function(A,P){var j=_e(A,g,0),E=_e(A,f,P),T=(N(j)?j:0)/m,M;P?M=_.endAngle+Ie(v)*c*(j!==0?1:0):M=o;var I=M+Ie(v)*((j!==0?d:0)+T*O),$=(M+I)/2,k=(y.innerRadius+y.outerRadius)/2,R=[{name:E,value:j,payload:A,dataKey:g,type:h}],L=le(y.cx,y.cy,k,$);return _=ce(ce(ce({percent:T,cornerRadius:a,name:E,tooltipPayload:R,midAngle:$,middleRadius:k,tooltipPosition:L},A),y),{},{value:_e(A,g),startAngle:M,endAngle:I,payload:A,paddingAngle:Ie(v)*c}),_})}return ce(ce({},y),{},{sectors:b,data:i})});var Js,Vg;function iR(){if(Vg)return Js;Vg=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 Js=r,Js}var Qs,Xg;function Ow(){if(Xg)return Qs;Xg=1;var e=z0(),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 Qs=n,Qs}var el,Yg;function aR(){if(Yg)return el;Yg=1;var e=iR(),t=Wa(),r=Ow();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 el=n,el}var tl,Zg;function oR(){if(Zg)return tl;Zg=1;var e=aR(),t=e();return tl=t,tl}var uR=oR();const ma=oe(uR);function ii(e){"@babel/helpers - typeof";return ii=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},ii(e)}function Jg(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?Jg(Object(r),!0).forEach(function(n){_w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _w(e,t,r){return t=cR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cR(e){var t=sR(e,"string");return ii(t)=="symbol"?t:t+""}function sR(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lR=["Webkit","Moz","O","ms"],fR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=lR.reduce(function(a,o){return Qg(Qg({},a),{},_w({},o+n,r))},{});return i[t]=r,i};function Wr(e){"@babel/helpers - typeof";return Wr=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},Wr(e)}function ga(){return ga=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},ga.apply(this,arguments)}function eb(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 rl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(n){Fe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(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 tb(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 pR(e,t,r){return t&&tb(e.prototype,t),r&&tb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dR(e,t,r){return t=ba(t),vR(e,Aw()?Reflect.construct(t,r||[],ba(e).constructor):t.apply(e,r))}function vR(e,t){if(t&&(Wr(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 Aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aw=function(){return!!e})()}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(e)}function mR(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&&wf(e,t)}function wf(e,t){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wf(e,t)}function Fe(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=gR(e,"string");return Wr(t)=="symbol"?t:t+""}function gR(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bR=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=An().domain(ma(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}},rb=function(t){return t.changedTouches&&!!t.changedTouches.length},zr=(function(e){function t(r){var n;return hR(this,t),n=dR(this,t,[r]),Fe(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Fe(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Fe(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()}),Fe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Fe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Fe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Fe(n,"handleSlideDragStart",function(i){var a=rb(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 mR(t,e),pR(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=_e(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=rb(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,g={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)),g[o]=s+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var A=p.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===A||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===A};this.setState(Fe(Fe({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&b()&&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(Fe({},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 S.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=q.Children.only(s);return l?S.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,g=Math.max(n,this.props.x),x=rl(rl({},H(this.props,!1)),{},{x:g,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 S.createElement(ee,{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 S.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 S.createElement(ee,{className:"recharts-brush-texts"},S.createElement(ir,ga({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(ir,ga({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,g=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!N(u)||!N(c)||!N(s)||!N(f)||s<=0||f<=0)return null;var w=J("recharts-brush",a),O=S.Children.count(o)===1,m=fR("userSelect","none");return S.createElement(ee,{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||g||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 S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),S.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 S.isValidElement(n)?a=S.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 rl({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?bR({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}}])})(q.PureComponent);Fe(zr,"displayName","Brush");Fe(zr,"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 nl,nb;function xR(){if(nb)return nl;nb=1;var e=oh();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return nl=t,nl}var il,ib;function wR(){if(ib)return il;ib=1;var e=x0(),t=ht(),r=xR(),n=Le(),i=Wa();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 il=a,il}var OR=wR();const _R=oe(OR);var ct=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},al,ab;function AR(){if(ab)return al;ab=1;var e=q0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return al=t,al}var ol,ob;function SR(){if(ob)return ol;ob=1;var e=AR(),t=D0(),r=ht();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 ol=n,ol}var PR=SR();const TR=oe(PR);var ul,ub;function ER(){if(ub)return ul;ub=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 ul=e,ul}var cl,cb;function jR(){if(cb)return cl;cb=1;var e=oh();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return cl=t,cl}var sl,sb;function MR(){if(sb)return sl;sb=1;var e=ER(),t=jR(),r=ht(),n=Le(),i=Wa();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 sl=a,sl}var $R=MR();const Pw=oe($R);var IR=["x","y"];function ai(e){"@babel/helpers - typeof";return ai=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},ai(e)}function Of(){return Of=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},Of.apply(this,arguments)}function lb(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 bn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(n){CR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CR(e,t,r){return t=kR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kR(e){var t=RR(e,"string");return ai(t)=="symbol"?t:t+""}function RR(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DR(e,t){if(e==null)return{};var r=NR(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 NR(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 qR(e,t){var r=e.x,n=e.y,i=DR(e,IR),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 bn(bn(bn(bn(bn({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function fb(e){return S.createElement(bw,Of({shapeType:"rectangle",propTransformer:qR,activeClassName:"recharts-active-bar"},e))}var LR=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=N(n)||e_(n);return a?t(n,i):(a||or(),r)}},BR=["value","background"],Tw;function Ur(e){"@babel/helpers - typeof";return Ur=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},Ur(e)}function FR(e,t){if(e==null)return{};var r=WR(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 WR(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 xa(){return xa=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},xa.apply(this,arguments)}function hb(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 me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hb(Object(r),!0).forEach(function(n){Ct(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pb(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,jw(n.key),n)}}function UR(e,t,r){return t&&pb(e.prototype,t),r&&pb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HR(e,t,r){return t=wa(t),KR(e,Ew()?Reflect.construct(t,r||[],wa(e).constructor):t.apply(e,r))}function KR(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GR(e)}function GR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ew=function(){return!!e})()}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}function VR(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&&_f(e,t)}function _f(e,t){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_f(e,t)}function Ct(e,t,r){return t=jw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jw(e){var t=XR(e,"string");return Ur(t)=="symbol"?t:t+""}function XR(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sn=(function(e){function t(){var r;zR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=HR(this,t,[].concat(i)),Ct(r,"state",{isAnimationFinished:!1}),Ct(r,"id",nn("recharts-bar-")),Ct(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Ct(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return VR(t,e),UR(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=H(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=me(me(me({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(ee,xa({className:"recharts-bar-rectangle"},nr(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)}),S.createElement(fb,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 S.createElement(lt,{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,g){var x=h&&h[g];if(x){var w=Ne(x.x,p.x),O=Ne(x.y,p.y),m=Ne(x.width,p.width),b=Ne(x.height,p.height);return me(me({},p),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=Ne(0,p.height),A=_(y);return me(me({},p),{},{y:p.y+p.height-A,height:A})}var P=Ne(0,p.width),j=P(y);return me(me({},p),{},{width:j})});return S.createElement(ee,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||!Dr(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=H(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=FR(s,BR);if(!l)return null;var d=me(me(me(me(me({},h),{},{fill:"#eee"},l),c),nr(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return S.createElement(fb,xa({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=Ye(f,Qa);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,g){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:_e(p,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(ee,y,l.map(function(v){return S.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,g=J("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Y(v)?this.id:v;return S.createElement(ee,{className:g},x||w?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.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,S.createElement(ee,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!d||p)&&wt.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}}])})(q.PureComponent);Tw=sn;Ct(sn,"displayName","Bar");Ct(sn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!sr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ct(sn,"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=xM(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?me(me({},v),r.props):r.props,g=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,b=TM({numericAxis:O}),_=Ye(x,sh),A=l.map(function(P,j){var E,T,M,I,$,k;s?E=wM(s[f+j],m):(E=_e(P,g),Array.isArray(E)||(E=[b,E]));var R=LR(w,Tw.defaultProps.minPointSize)(E[1],j);if(y==="horizontal"){var L,B=[o.scale(E[0]),o.scale(E[1])],U=B[0],G=B[1];T=Fm({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:P,index:j}),M=(L=G??U)!==null&&L!==void 0?L:void 0,I=d.size;var W=U-G;if($=Number.isNaN(W)?0:W,k={x:T,y:o.y,width:I,height:o.height},Math.abs(R)>0&&Math.abs($)<Math.abs(R)){var X=Ie($||R)*(Math.abs(R)-Math.abs($));M-=X,$+=X}}else{var fe=[a.scale(E[0]),a.scale(E[1])],ye=fe[0],Be=fe[1];if(T=ye,M=Fm({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:P,index:j}),I=Be-ye,$=d.size,k={x:a.x,y:M,width:a.width,height:$},Math.abs(R)>0&&Math.abs(I)<Math.abs(R)){var Bt=Ie(I||R)*(Math.abs(R)-Math.abs(I));I+=Bt}}return me(me(me({},P),{},{x:T,y:M,width:I,height:$,value:s?E:E[1],payload:P,background:k},_&&_[j]&&_[j].props),{},{tooltipPayload:[tw(r,P)],tooltipPosition:{x:T+I/2,y:M+$/2}})});return me({data:A,layout:y},h)});function oi(e){"@babel/helpers - typeof";return oi=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},oi(e)}function YR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(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,Mw(n.key),n)}}function ZR(e,t,r){return t&&db(e.prototype,t),r&&db(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vb(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 et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vb(Object(r),!0).forEach(function(n){uo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uo(e,t,r){return t=Mw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=JR(e,"string");return oi(t)=="symbol"?t:t+""}function JR(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $w=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=!!We(s,sn);return f.reduce(function(d,y){var v=r[y],p=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(p).concat(O?"Mirror":""),_,A,P,j,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=g[1]-g[0],M=1/0,I=v.categoricalDomain.sort(n_);if(I.forEach(function(fe,ye){ye>0&&(M=Math.min((fe||0)-(I[ye-1]||0),M))}),Number.isFinite(M)){var $=M/T,k=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=$*k/2),v.padding==="no-gap"){var R=Ce(t.barCategoryGap,$*k),L=$*k/2;_=L-R-(L-R)/k*R}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=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)]:A=v.range,m&&(A=[A[1],A[0]]);var B=Zx(v,a,h),U=B.scale,G=B.realScaleType;U.domain(g).range(A),Jx(U);var W=Qx(U,et(et({},v),{},{realScaleType:G}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,P=n.left,j=l[b]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,P=l[b]-E*v.width,j=n.top);var X=et(et(et({},v),W),{},{realScaleType:G,x:P,y:j,scale:U,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=ia(X,W),!v.hide&&i==="xAxis"?l[b]+=(E?-1:1)*X.height:v.hide||(l[b]+=(E?-1:1)*X.width),et(et({},d),{},uo({},y,X))},{})},Iw=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)}},QR=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Iw({x:r,y:n},{x:i,y:a})},Cw=(function(){function e(t){YR(this,e),this.scale=t}return ZR(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)}}])})();uo(Cw,"EPS",1e-4);var Dh=function(t){var r=Object.keys(t).reduce(function(n,i){return et(et({},n),{},uo({},i,Cw.create(t[i])))},{});return et(et({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return TR(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Pw(i,function(a,o){return r[o].isInRange(a)})}})};function eD(e){return(e%180+180)%180}var tD=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=eD(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)},ll,yb;function rD(){if(yb)return ll;yb=1;var e=ht(),t=fi(),r=Ba();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 ll=n,ll}var fl,mb;function nD(){if(mb)return fl;mb=1;var e=Ow();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return fl=t,fl}var hl,gb;function iD(){if(gb)return hl;gb=1;var e=$0(),t=ht(),r=nD(),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 hl=i,hl}var pl,bb;function aD(){if(bb)return pl;bb=1;var e=rD(),t=iD(),r=e(t);return pl=r,pl}var oD=aD();const uD=oe(oD);var cD=Gb();const sD=oe(cD);var lD=sD(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("")}),Nh=q.createContext(void 0),qh=q.createContext(void 0),kw=q.createContext(void 0),Rw=q.createContext({}),Dw=q.createContext(void 0),Nw=q.createContext(0),qw=q.createContext(0),xb=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=lD(a);return S.createElement(Nh.Provider,{value:n},S.createElement(qh.Provider,{value:i},S.createElement(Rw.Provider,{value:a},S.createElement(kw.Provider,{value:f},S.createElement(Dw.Provider,{value:o},S.createElement(Nw.Provider,{value:s},S.createElement(qw.Provider,{value:c},u)))))))},fD=function(){return q.useContext(Dw)},Lw=function(t){var r=q.useContext(Nh);r==null&&or();var n=r[t];return n==null&&or(),n},hD=function(){var t=q.useContext(Nh);return $t(t)},pD=function(){var t=q.useContext(qh),r=uD(t,function(n){return Pw(n.domain,Number.isFinite)});return r||$t(t)},Bw=function(t){var r=q.useContext(qh);r==null&&or();var n=r[t];return n==null&&or(),n},dD=function(){var t=q.useContext(kw);return t},vD=function(){return q.useContext(Rw)},Lh=function(){return q.useContext(qw)},Bh=function(){return q.useContext(Nw)};function Hr(e){"@babel/helpers - typeof";return Hr=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},Hr(e)}function yD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mD(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,Ww(n.key),n)}}function gD(e,t,r){return t&&mD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bD(e,t,r){return t=Oa(t),xD(e,Fw()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function xD(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wD(e)}function wD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fw=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function OD(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&&Af(e,t)}function Af(e,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Af(e,t)}function wb(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 Ob(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wb(Object(r),!0).forEach(function(n){Fh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fh(e,t,r){return t=Ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ww(e){var t=_D(e,"string");return Hr(t)=="symbol"?t:t+""}function _D(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function AD(e,t){return ED(e)||TD(e,t)||PD(e,t)||SD()}function SD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
69
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PD(e,t){if(e){if(typeof e=="string")return _b(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 _b(e,t)}}function _b(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 TD(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 ED(e){if(Array.isArray(e))return e}function Sf(){return Sf=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},Sf.apply(this,arguments)}var jD=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):V(t)?n=t(r):n=S.createElement("line",Sf({},r,{className:"recharts-reference-line-line"})),n},MD=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(ct(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 g=s.x,x=t.x.apply(g,{position:o});if(ct(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(b){return t.apply(b,{position:o})});return ct(s,"discard")&&_R(m,function(b){return!t.isInRange(b)})?null:m}return null};function $D(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=fD(),f=Lw(i),l=Bw(a),h=dD();if(!s||!h)return null;rt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Dh({x:f.scale,y:l.scale}),y=Ae(t),v=Ae(r),p=n&&n.length===2,g=MD(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=AD(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,A=b.y,P=ct(e,"hidden")?"url(#".concat(s,")"):void 0,j=Ob(Ob({clipPath:P},H(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return S.createElement(ee,{className:J("recharts-reference-line",u)},jD(o,j),Te.renderCallByParent(e,QR({x1:O,y1:m,x2:_,y2:A})))}var Wh=(function(e){function t(){return yD(this,t),bD(this,t,arguments)}return OD(t,e),gD(t,[{key:"render",value:function(){return S.createElement($D,this.props)}}])})(S.Component);Fh(Wh,"displayName","ReferenceLine");Fh(Wh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Pf(){return Pf=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},Pf.apply(this,arguments)}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 Ab(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 Sb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ab(Object(r),!0).forEach(function(n){co(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ID(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CD(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,Uw(n.key),n)}}function kD(e,t,r){return t&&CD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RD(e,t,r){return t=_a(t),DD(e,zw()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function DD(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 ND(e)}function ND(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zw=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function qD(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 co(e,t,r){return t=Uw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uw(e){var t=LD(e,"string");return Kr(t)=="symbol"?t:t+""}function LD(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 String(e)}var BD=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Dh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ct(t,"discard")&&!o.isInRange(u)?null:u},so=(function(e){function t(){return ID(this,t),RD(this,t,arguments)}return qD(t,e),kD(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=Ae(i),f=Ae(a);if(rt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=BD(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,g=ct(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=Sb(Sb({clipPath:g},H(this.props,!0)),{},{cx:h,cy:d});return S.createElement(ee,{className:J("recharts-reference-dot",p)},t.renderDot(v,x),Te.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(S.Component);co(so,"displayName","ReferenceDot");co(so,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});co(so,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):V(e)?r=e(t):r=S.createElement(eo,Pf({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ef(){return Ef=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},Ef.apply(this,arguments)}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 Pb(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 Tb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FD(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,Kw(n.key),n)}}function zD(e,t,r){return t&&WD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UD(e,t,r){return t=Aa(t),HD(e,Hw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function HD(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 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 Hw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function GD(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&&jf(e,t)}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jf(e,t)}function lo(e,t,r){return t=Kw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kw(e){var t=VD(e,"string");return Gr(t)=="symbol"?t:t+""}function VD(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 XD=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=Dh({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 ct(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:Iw(d,y)},fo=(function(e){function t(){return FD(this,t),UD(this,t,arguments)}return GD(t,e),zD(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;rt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Ae(i),h=Ae(a),d=Ae(o),y=Ae(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=XD(l,h,d,y,this.props);if(!p&&!v)return null;var g=ct(this.props,"hidden")?"url(#".concat(f,")"):void 0;return S.createElement(ee,{className:J("recharts-reference-area",c)},t.renderRect(v,Tb(Tb({clipPath:g},H(this.props,!0)),p)),Te.renderCallByParent(this.props,p))}}])})(S.Component);lo(fo,"displayName","ReferenceArea");lo(fo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});lo(fo,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):V(e)?r=e(t):r=S.createElement(Rh,Ef({},t,{className:"recharts-reference-area-rect"})),r});function Gw(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 YD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return tD(n,r)}function ZD(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 Sa(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 JD(e,t){return Gw(e,t+1)}function QD(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:Gw(n,s)};var v=c,p,g=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=c===0||Sa(e,x,g,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(g()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function ui(e){"@babel/helpers - typeof";return ui=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},ui(e)}function Eb(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 Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(n){eN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eN(e,t,r){return t=tN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tN(e){var t=rN(e,"string");return ui(t)=="symbol"?t:t+""}function rN(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nN(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=Me(Me({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Me(Me({},d),{},{tickCoord:d.coordinate});var g=Sa(e,d.tickCoord,v,u,c);g&&(c=d.tickCoord-e*(v()/2+i),a[h]=Me(Me({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function iN(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=Me(Me({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=Sa(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Me(Me({},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 b=e*(w.coordinate-e*m()/2-c);o[x]=w=Me(Me({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Me(Me({},w),{},{tickCoord:w.coordinate});var _=Sa(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[x]=Me(Me({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function zh(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(N(c)||sr.isSsr)return JD(i,typeof c=="number"&&N(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?_n(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"?YD(_n(m,{fontSize:t,letterSpacing:r}),y,l):_n(m,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ie(i[1].coordinate-i[0].coordinate):1,g=ZD(a,p,d);return c==="equidistantPreserveStart"?QD(p,g,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=iN(p,g,v,i,o,c==="preserveStartEnd"):h=nN(p,g,v,i,o),h.filter(function(x){return x.isShow}))}var aN=["viewBox"],oN=["viewBox"],uN=["ticks"];function Vr(e){"@babel/helpers - typeof";return Vr=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},Vr(e)}function wr(){return wr=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},wr.apply(this,arguments)}function jb(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 we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jb(Object(r),!0).forEach(function(n){Uh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dl(e,t){if(e==null)return{};var r=cN(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 cN(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 sN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mb(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,Xw(n.key),n)}}function lN(e,t,r){return t&&Mb(e.prototype,t),r&&Mb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fN(e,t,r){return t=Pa(t),hN(e,Vw()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function hN(e,t){if(t&&(Vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pN(e)}function pN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vw=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function dN(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&&Mf(e,t)}function Mf(e,t){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mf(e,t)}function Uh(e,t,r){return t=Xw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xw(e){var t=vN(e,"string");return Vr(t)=="symbol"?t:t+""}function vN(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ln=(function(e){function t(r){var n;return sN(this,t),n=fN(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return dN(t,e),lN(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=dl(n,aN),u=this.props,c=u.viewBox,s=dl(u,oN);return!_r(a,c)||!_r(o,s)||!_r(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,g,x,w=l?-1:1,O=n.tickSize||f,m=N(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,g=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,g=d-w*h,x=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,g=d+w*h,x=m;break;default:d=y=n.coordinate,p=o+ +l*c,v=p+w*O,x=v+w*h,g=m;break}return{line:{x1:d,y1:v,x2:y,y2:p},tick:{x:g,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=we(we(we({},H(this.props,!1)),H(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=we(we({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=we(we({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return S.createElement("line",wr({},l,{className:J("recharts-cartesian-axis-line",Ue(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=zh(we(we({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=H(this.props,!1),g=H(f,!1),x=we(we({},p),{},{fill:"none"},H(c,!1)),w=d.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,A=b.tick,P=we(we(we(we({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:s},g),A),{},{index:m,payload:O,visibleTicksCount:d.length,tickFormatter:l});return S.createElement(ee,wr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},nr(o.props,O,m)),c&&S.createElement("line",wr({},x,_,{className:J("recharts-cartesian-axis-tick-line",Ue(c,"className"))})),f&&t.renderTickItem(f,P,"".concat(V(l)?l(O.value,m):O.value).concat(h||"")))});return S.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=dl(l,uN),y=h;return V(c)&&(y=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:S.createElement(ee,{className:J("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Te.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=J(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,we(we({},i),{},{className:u})):V(n)?o=n(we(we({},i),{},{className:u})):o=S.createElement(ir,wr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(q.Component);Uh(ln,"displayName","CartesianAxis");Uh(ln,"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 yN=["x1","y1","x2","y2","key"],mN=["offset"];function ur(e){"@babel/helpers - typeof";return ur=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},ur(e)}function $b(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 $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(n){gN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gN(e,t,r){return t=bN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e){var t=xN(e,"string");return ur(t)=="symbol"?t:t+""}function xN(e,t){if(ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jt(){return Jt=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},Jt.apply(this,arguments)}function Ib(e,t){if(e==null)return{};var r=wN(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 wN(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 ON=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 S.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Yw(e,t){var r;if(S.isValidElement(e))r=S.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=Ib(t,yN),s=H(c,!1);s.offset;var f=Ib(s,mN);r=S.createElement("line",Jt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function _N(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=$e($e({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Yw(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function AN(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=$e($e({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Yw(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function SN(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 S.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 S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function PN(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 S.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 S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var TN=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Yx(zh($e($e($e({},ln.defaultProps),n),{},{ticks:gt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},EN=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Yx(zh($e($e($e({},ln.defaultProps),n),{},{ticks:gt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},mr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function jN(e){var t,r,n,i,a,o,u=Lh(),c=Bh(),s=vD(),f=$e($e({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:mr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:mr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:mr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:mr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:mr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:mr.verticalFill,x:N(e.x)?e.x:s.left,y:N(e.y)?e.y:s.top,width:N(e.width)?e.width:s.width,height:N(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,g=f.verticalValues,x=hD(),w=pD();if(!N(d)||d<=0||!N(y)||y<=0||!N(l)||l!==+l||!N(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||TN,m=f.horizontalCoordinatesGenerator||EN,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&V(m)){var A=p&&p.length,P=m({yAxis:w?$e($e({},w),{},{ticks:A?p:w.ticks}):void 0,width:u,height:c,offset:s},A?!0:v);rt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ur(P),"]")),Array.isArray(P)&&(b=P)}if((!_||!_.length)&&V(O)){var j=g&&g.length,E=O({xAxis:x?$e($e({},x),{},{ticks:j?g:x.ticks}):void 0,width:u,height:c,offset:s},j?!0:v);rt(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ur(E),"]")),Array.isArray(E)&&(_=E)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(ON,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(_N,Jt({},f,{offset:s,horizontalPoints:b,xAxis:x,yAxis:w})),S.createElement(AN,Jt({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),S.createElement(SN,Jt({},f,{horizontalPoints:b})),S.createElement(PN,Jt({},f,{verticalPoints:_})))}jN.displayName="CartesianGrid";var MN=["layout","type","stroke","connectNulls","isRange","ref"],$N=["key"],Zw;function Xr(e){"@babel/helpers - typeof";return Xr=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},Xr(e)}function Jw(e,t){if(e==null)return{};var r=IN(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 IN(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 Qt(){return Qt=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},Qt.apply(this,arguments)}function Cb(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 jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(r),!0).forEach(function(n){ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kb(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,eO(n.key),n)}}function kN(e,t,r){return t&&kb(e.prototype,t),r&&kb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RN(e,t,r){return t=Ta(t),DN(e,Qw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function DN(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NN(e)}function NN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qw=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function qN(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&&$f(e,t)}function $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$f(e,t)}function ot(e,t,r){return t=eO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eO(e){var t=LN(e,"string");return Xr(t)=="symbol"?t:t+""}function LN(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pr=(function(e){function t(){var r;CN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=RN(this,t,[].concat(i)),ot(r,"state",{isAnimationFinished:!0}),ot(r,"id",nn("recharts-area-")),ot(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),ot(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return qN(t,e),kN(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=H(this.props,!1),d=H(s,!0),y=f.map(function(p,g){var x=jt(jt(jt({key:"dot-".concat(g),r:3},h),d),{},{index:g,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 S.createElement(ee,Qt({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=It(o.map(function(h){return h.y||0}));return N(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(It(a.map(function(h){return h.y||0})),l)),N(l)?S.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=It(o.map(function(h){return h.x||0}));return N(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(It(a.map(function(h){return h.x||0})),l)),N(l)?S.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=Jw(u,MN);return S.createElement(ee,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(Tr,Qt({},H(d,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&S.createElement(Tr,Qt({},H(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&S.createElement(Tr,Qt({},H(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 S.createElement(lt,{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(g){var x=g.t;if(v){var w=v.length/u.length,O=u.map(function(A,P){var j=Math.floor(P*w);if(v[j]){var E=v[j],T=Ne(E.x,A.x),M=Ne(E.y,A.y);return jt(jt({},A),{},{x:T(x),y:M(x)})}return A}),m;if(N(c)&&typeof c=="number"){var b=Ne(p,c);m=b(x)}else if(Y(c)||rn(c)){var _=Ne(p,0);m=_(x)}else m=c.map(function(A,P){var j=Math.floor(P*w);if(p[j]){var E=p[j],T=Ne(E.x,A.x),M=Ne(E.y,A.y);return jt(jt({},A),{},{x:T(x),y:M(x)})}return A});return a.renderAreaStatically(O,m,n,i)}return S.createElement(ee,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),S.createElement(ee,{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||!Dr(f,o)||!Dr(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 g=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-area",c),O=l&&l.allowDataOverflow,m=h&&h.allowDataOverflow,b=O||m,_=Y(p)?this.id:p,A=(n=H(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,j=P===void 0?3:P,E=A.strokeWidth,T=E===void 0?2:E,M=h_(o)?o:{},I=M.clipDot,$=I===void 0?!0:I,k=j*2+T;return S.createElement(ee,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?f:f-d/2,y:m?s:s-y/2,width:O?d:d*2,height:m?y:y*2})),!$&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:f-k/2,y:s-k/2,width:d+k,height:y+k}))):null,x?null:this.renderArea(b,_),(o||x)&&this.renderDots(b,$,_),(!v||g)&&wt.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}}])})(q.PureComponent);Zw=pr;ot(pr,"displayName","Area");ot(pr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!sr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ot(pr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(N(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]});ot(pr,"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=Zw.getBaseValue(t,r,n,i),p=d==="horizontal",g=!1,x=l.map(function(O,m){var b;y?b=s[f+m]:(b=_e(O,c),Array.isArray(b)?g=!0:b=[v,b]);var _=b[1]==null||y&&_e(O,c)==null;return p?{x:Bm({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(b[1]),value:b,payload:O}:{x:_?null:n.scale(b[1]),y:Bm({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:b,payload:O}}),w;return y||g?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),jt({points:x,baseLine:w,layout:d,isRange:g},h)});ot(pr,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(V(e))r=e(t);else{var n=J("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Jw(t,$N);r=S.createElement(eo,Qt({},a,{key:i,className:n}))}return r});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 BN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FN(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,nO(n.key),n)}}function WN(e,t,r){return t&&FN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zN(e,t,r){return t=Ea(t),UN(e,tO()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function UN(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 HN(e)}function HN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tO=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function KN(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&&If(e,t)}function If(e,t){return If=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},If(e,t)}function rO(e,t,r){return t=nO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nO(e){var t=GN(e,"string");return Yr(t)=="symbol"?t:t+""}function GN(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)}function Cf(){return Cf=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},Cf.apply(this,arguments)}function VN(e){var t=e.xAxisId,r=Lh(),n=Bh(),i=Lw(t);return i==null?null:q.createElement(ln,Cf({},i,{className:J("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return gt(o,!0)}}))}var ho=(function(e){function t(){return BN(this,t),zN(this,t,arguments)}return KN(t,e),WN(t,[{key:"render",value:function(){return q.createElement(VN,this.props)}}])})(q.Component);rO(ho,"displayName","XAxis");rO(ho,"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 Zr(e){"@babel/helpers - typeof";return Zr=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},Zr(e)}function XN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YN(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,oO(n.key),n)}}function ZN(e,t,r){return t&&YN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JN(e,t,r){return t=ja(t),QN(e,iO()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function QN(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e2(e)}function e2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iO=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function t2(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&&kf(e,t)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kf(e,t)}function aO(e,t,r){return t=oO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oO(e){var t=r2(e,"string");return Zr(t)=="symbol"?t:t+""}function r2(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(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)}var n2=function(t){var r=t.yAxisId,n=Lh(),i=Bh(),a=Bw(r);return a==null?null:q.createElement(ln,Rf({},a,{className:J("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return gt(u,!0)}}))},po=(function(e){function t(){return XN(this,t),JN(this,t,arguments)}return t2(t,e),ZN(t,[{key:"render",value:function(){return q.createElement(n2,this.props)}}])})(q.Component);aO(po,"displayName","YAxis");aO(po,"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 Rb(e){return u2(e)||o2(e)||a2(e)||i2()}function i2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a2(e,t){if(e){if(typeof e=="string")return Df(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 Df(e,t)}}function o2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u2(e){if(Array.isArray(e))return Df(e)}function Df(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 Nf=function(t,r,n,i,a){var o=Ye(t,Wh),u=Ye(t,so),c=[].concat(Rb(o),Rb(u)),s=Ye(t,fo),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&ct(p.props,"extendDomain")&&N(p.props[l])){var g=p.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}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&&ct(p.props,"extendDomain")&&N(p.props[d])&&N(p.props[y])){var g=p.props[d],x=p.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,p){return N(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},vl={exports:{}},Db;function c2(){return Db||(Db=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],g=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),g){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(g-1);w<g;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),g){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(g-1);m<g;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=[],g=y.length;v<g;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})(vl)),vl.exports}var s2=c2();const l2=oe(s2);var yl=new l2,ml="recharts.syncMouseEvents";function ci(e){"@babel/helpers - typeof";return ci=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},ci(e)}function f2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h2(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,uO(n.key),n)}}function p2(e,t,r){return t&&h2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gl(e,t,r){return t=uO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uO(e){var t=d2(e,"string");return ci(t)=="symbol"?t:t+""}function d2(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var v2=(function(){function e(){f2(this,e),gl(this,"activeIndex",0),gl(this,"coordinateList",[]),gl(this,"layout","horizontal")}return p2(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 y2(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&&N(n)&&N(i))return!0}return!1}function m2(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 cO(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=le(t,r,n,i),u=le(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function g2(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=le(u,c,s,l),d=le(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return cO(t);return[{x:n,y:i},{x:a,y:o}]}function si(e){"@babel/helpers - typeof";return si=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},si(e)}function Nb(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 Mi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nb(Object(r),!0).forEach(function(n){b2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b2(e,t,r){return t=x2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x2(e){var t=w2(e,"string");return si(t)=="symbol"?t:t+""}function w2(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function O2(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=Tr;if(h==="ScatterChart")y=o,v=GC;else if(h==="BarChart")y=m2(l,o,c,f),v=Rh;else if(l==="radial"){var p=cO(o),g=p.cx,x=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=uw}else y={points:g2(l,o,c)},v=Tr;var b=Mi(Mi(Mi(Mi({stroke:"#ccc",pointerEvents:"none"},c),y),H(d,!1)),{},{payload:u,payloadIndex:s,className:J("recharts-tooltip-cursor",d.className)});return q.isValidElement(d)?q.cloneElement(d,b):q.createElement(v,b)}var _2=["item"],A2=["children","className","width","height","style","compact","title","desc"];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 Or(){return Or=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},Or.apply(this,arguments)}function qb(e,t){return T2(e)||P2(e,t)||lO(e,t)||S2()}function S2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P2(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 T2(e){if(Array.isArray(e))return e}function Lb(e,t){if(e==null)return{};var r=E2(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 E2(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 j2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M2(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,fO(n.key),n)}}function $2(e,t,r){return t&&M2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function I2(e,t,r){return t=Ma(t),C2(e,sO()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function C2(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 k2(e)}function k2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sO=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function R2(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&&qf(e,t)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qf(e,t)}function Qr(e){return q2(e)||N2(e)||lO(e)||D2()}function D2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
72
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lO(e,t){if(e){if(typeof e=="string")return Lf(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 Lf(e,t)}}function N2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q2(e){if(Array.isArray(e))return Lf(e)}function Lf(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 Bb(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 C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=fO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fO(e){var t=L2(e,"string");return Jr(t)=="symbol"?t:t+""}function L2(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(t==="string"?String:Number)(e)}var B2={xAxis:["bottom","top"],yAxis:["left","right"]},F2={width:"100%",height:"100%"},hO={x:0,y:0};function $i(e){return e}var W2=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},z2=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 C(C(C({},i),le(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return C(C(C({},i),le(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return hO},vo=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(Qr(u),Qr(s)):u},[]);return o.length>0?o:t&&t.length&&N(i)&&N(a)?t.slice(i,a+1):[]};function pO(e){return e==="number"?[0,"auto"]:void 0}var Bf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=vo(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=Ci(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Qr(c),[tw(s,h)]):c},[])},Fb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=W2(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=dM(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Bf(t,r,f,l),d=z2(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},U2=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=Xx(f,a);return n.reduce(function(y,v){var p,g=v.type.defaultProps!==void 0?C(C({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,A=g.includeHidden,P=g[o];if(y[P])return y;var j=vo(t.data,{graphicalItems:i.filter(function(W){var X,fe=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return fe===P}),dataStartIndex:c,dataEndIndex:s}),E=j.length,T,M,I;y2(g.domain,O,x)&&(T=ef(g.domain,null,O),d&&(x==="number"||b!=="auto")&&(I=Sn(j,w,"category")));var $=pO(x);if(!T||T.length===0){var k,R=(k=g.domain)!==null&&k!==void 0?k:$;if(w){if(T=Sn(j,w,x),x==="category"&&d){var L=r_(T);m&&L?(M=T,T=ma(0,E)):m||(T=Um(R,T,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(Qr(W),[X])},[]))}else if(x==="category")m?T=T.filter(function(W){return W!==""&&!Y(W)}):T=Um(R,T,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||Y(X)?W:[].concat(Qr(W),[X])},[]);else if(x==="number"){var B=bM(j,i.filter(function(W){var X,fe,ye=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Be="hide"in W.props?W.props.hide:(fe=W.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return ye===P&&(A||!Be)}),w,a,f);B&&(T=B)}d&&(x==="number"||b!=="auto")&&(I=Sn(j,w,"category"))}else d?T=ma(0,E):u&&u[P]&&u[P].hasStack&&x==="number"?T=h==="expand"?[0,1]:ew(u[P].stackGroups,c,s):T=Vx(j,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],fe="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===P&&(A||!fe)}),x,f,!0);if(x==="number")T=Nf(l,T,P,a,_),R&&(T=ef(R,T,O));else if(x==="category"&&R){var U=R,G=T.every(function(W){return U.indexOf(W)>=0});G&&(T=U)}}return C(C({},y),{},K({},P,C(C({},g),{},{axisType:a,domain:T,categoricalDomain:I,duplicateDomain:M,originalDomain:(p=g.domain)!==null&&p!==void 0?p:$,isCategorical:d,layout:f})))},{})},H2=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=vo(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=Xx(f,a),v=-1;return n.reduce(function(p,g){var x=g.type.defaultProps!==void 0?C(C({},g.type.defaultProps),g.props):g.props,w=x[o],O=pO("number");if(!p[w]){v++;var m;return y?m=ma(0,d):u&&u[w]&&u[w].hasStack?(m=ew(u[w].stackGroups,c,s),m=Nf(l,m,w,a)):(m=ef(O,Vx(h,n.filter(function(b){var _,A,P=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],j="hide"in b.props?b.props.hide:(A=b.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===w&&!j}),"number",f),i.defaultProps.allowDataOverflow),m=Nf(l,m,w,a)),C(C({},p),{},K({},w,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ue(B2,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},K2=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=Ye(f,a),d={};return h&&h.length?d=U2(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=H2(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},G2=function(t){var r=$t(t),n=gt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:uh(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ia(r,n)}},Wb=function(t){var r=t.children,n=t.defaultShowTooltip,i=We(r,zr),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}},V2=function(t){return!t||!t.length?!1:t.some(function(r){var n=bt(r&&r.type);return n&&n.indexOf("Bar")>=0})},zb=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"}},X2=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=We(l,zr),y=We(l,Ar),v=Object.keys(c).reduce(function(m,b){var _=c[b],A=_.orientation;return!_.mirror&&!_.hide?C(C({},m),{},K({},A,m[A]+_.width)):m},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(m,b){var _=o[b],A=_.orientation;return!_.mirror&&!_.hide?C(C({},m),{},K({},A,Ue(m,"".concat(A))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=C(C({},p),v),x=g.bottom;d&&(g.bottom+=d.props.height||zr.defaultProps.height),y&&r&&(g=mM(g,i,n,r));var w=s-g.left-g.right,O=f-g.top-g.bottom;return C(C({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},Y2=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Hh=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(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,P=g.barSize,j=g.layout,E=g.barGap,T=g.barCategoryGap,M=g.maxBarSize,I=zb(j),$=I.numericAxisName,k=I.cateAxisName,R=V2(w),L=[];return w.forEach(function(B,U){var G=vo(g.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:A}),W=B.type.defaultProps!==void 0?C(C({},B.type.defaultProps),B.props):B.props,X=W.dataKey,fe=W.maxBarSize,ye=W["".concat($,"Id")],Be=W["".concat(k,"Id")],Bt={},Re=c.reduce(function(Ft,Wt){var yo=x["".concat(Wt.axisType,"Map")],Kh=W["".concat(Wt.axisType,"Id")];yo&&yo[Kh]||Wt.axisType==="zAxis"||or();var Gh=yo[Kh];return C(C({},Ft),{},K(K({},Wt.axisType,Gh),"".concat(Wt.axisType,"Ticks"),gt(Gh)))},Bt),F=Re[k],Z=Re["".concat(k,"Ticks")],Q=O&&O[ye]&&O[ye].hasStack&&EM(B,O[ye].stackGroups),D=bt(B.type).indexOf("Bar")>=0,de=ia(F,Z),te=[],be=R&&vM({barSize:P,stackGroups:O,totalSize:Y2(Re,k)});if(D){var xe,De,Et=Y(fe)?M:fe,dr=(xe=(De=ia(F,Z,!0))!==null&&De!==void 0?De:Et)!==null&&xe!==void 0?xe:0;te=yM({barGap:E,barCategoryGap:T,bandSize:dr!==de?dr:de,sizeList:be[Be],maxBarSize:Et}),dr!==de&&(te=te.map(function(Ft){return C(C({},Ft),{},{position:C(C({},Ft.position),{},{offset:Ft.position.offset-dr/2})})}))}var yi=B&&B.type&&B.type.getComposedData;yi&&L.push({props:C(C({},yi(C(C({},Re),{},{displayedData:G,props:g,dataKey:X,item:B,bandSize:de,barPosition:te,offset:m,stackedData:Q,layout:j,dataStartIndex:_,dataEndIndex:A}))),{},K(K(K({key:B.key||"item-".concat(U)},$,Re[$]),k,Re[k]),"animationId",b)),childIndex:v_(B,g.children),item:B})}),L},d=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!rd({props:w}))return null;var _=w.children,A=w.layout,P=w.stackOffset,j=w.data,E=w.reverseStackOrder,T=zb(A),M=T.numericAxisName,I=T.cateAxisName,$=Ye(_,n),k=PM(j,$,"".concat(M,"Id"),"".concat(I,"Id"),P,E),R=c.reduce(function(W,X){var fe="".concat(X.axisType,"Map");return C(C({},W),{},K({},fe,K2(w,C(C({},X),{},{graphicalItems:$,stackGroups:X.axisType===M&&k,dataStartIndex:O,dataEndIndex:m}))))},{}),L=X2(C(C({},R),{},{props:w,graphicalItems:$}),x==null?void 0:x.legendBBox);Object.keys(R).forEach(function(W){R[W]=f(w,R[W],L,W.replace("Map",""),r)});var B=R["".concat(I,"Map")],U=G2(B),G=h(w,C(C({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:$,stackGroups:k,offset:L}));return C(C({formattedGraphicalItems:G,graphicalItems:$,offset:L,stackGroups:k},U),R)},y=(function(p){function g(x){var w,O,m;return j2(this,g),m=I2(this,g,[x]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new v2),K(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,A=_.dataStartIndex,P=_.dataEndIndex,j=_.updateId;m.setState(C({legendBBox:b},d({props:m.props,dataStartIndex:A,dataEndIndex:P,updateId:j},C(C({},m.state),{},{legendBBox:b}))))}}),K(m,"handleReceiveSyncEvent",function(b,_,A){if(m.props.syncId===b){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),K(m,"handleBrushChange",function(b){var _=b.startIndex,A=b.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return C({dataStartIndex:_,dataEndIndex:A},d({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),K(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var A=C(C({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseEnter;V(P)&&P(A,b)}}),K(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),A=_?C(C({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseMove;V(P)&&P(A,b)}),K(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),K(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;V(A)&&A(_,b)}),K(m,"handleOuterEvent",function(b){var _=d_(b),A=Ue(m.props,"".concat(_));if(_&&V(A)){var P,j;/.*touch.*/i.test(_)?j=m.getMouseInfo(b.changedTouches[0]):j=m.getMouseInfo(b),A((P=j)!==null&&P!==void 0?P:{},b)}}),K(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var A=C(C({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onClick;V(P)&&P(A,b)}}),K(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),K(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),K(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),K(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&yl.emit(ml,m.props.syncId,b,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(b){var _=m.props,A=_.layout,P=_.syncMethod,j=m.state.updateId,E=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(C({dataStartIndex:E,dataEndIndex:T},d({props:m.props,dataStartIndex:E,dataEndIndex:T,updateId:j},m.state)));else if(b.activeTooltipIndex!==void 0){var M=b.chartX,I=b.chartY,$=b.activeTooltipIndex,k=m.state,R=k.offset,L=k.tooltipTicks;if(!R)return;if(typeof P=="function")$=P(L,b);else if(P==="value"){$=-1;for(var B=0;B<L.length;B++)if(L[B].value===b.activeLabel){$=B;break}}var U=C(C({},R),{},{x:R.left,y:R.top}),G=Math.min(M,U.x+U.width),W=Math.min(I,U.y+U.height),X=L[$]&&L[$].value,fe=Bf(m.state,m.props.data,$),ye=L[$]?{x:A==="horizontal"?L[$].coordinate:G,y:A==="horizontal"?W:L[$].coordinate}:hO;m.setState(C(C({},b),{},{activeLabel:X,activeCoordinate:ye,activePayload:fe,activeTooltipIndex:$}))}else m.setState(b)}),K(m,"renderCursor",function(b){var _,A=m.state,P=A.isTooltipActive,j=A.activeCoordinate,E=A.activePayload,T=A.offset,M=A.activeTooltipIndex,I=A.tooltipAxisBandSize,$=m.getTooltipEventType(),k=(_=b.props.active)!==null&&_!==void 0?_:P,R=m.props.layout,L=b.key||"_recharts-cursor";return S.createElement(O2,{key:L,activeCoordinate:j,activePayload:E,activeTooltipIndex:M,chartName:r,element:b,isActive:k,layout:R,offset:T,tooltipAxisBandSize:I,tooltipEventType:$})}),K(m,"renderPolarAxis",function(b,_,A){var P=Ue(b,"type.axisType"),j=Ue(m.state,"".concat(P,"Map")),E=b.type.defaultProps,T=E!==void 0?C(C({},E),b.props):b.props,M=j&&j[T["".concat(P,"Id")]];return q.cloneElement(b,C(C({},M),{},{className:J(P,M.className),key:b.key||"".concat(_,"-").concat(A),ticks:gt(M,!0)}))}),K(m,"renderPolarGrid",function(b){var _=b.props,A=_.radialLines,P=_.polarAngles,j=_.polarRadius,E=m.state,T=E.radiusAxisMap,M=E.angleAxisMap,I=$t(T),$=$t(M),k=$.cx,R=$.cy,L=$.innerRadius,B=$.outerRadius;return q.cloneElement(b,{polarAngles:Array.isArray(P)?P:gt($,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(j)?j:gt(I,!0).map(function(U){return U.coordinate}),cx:k,cy:R,innerRadius:L,outerRadius:B,key:b.key||"polar-grid",radialLines:A})}),K(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,A=_.children,P=_.width,j=_.height,E=m.props.margin||{},T=P-(E.left||0)-(E.right||0),M=Kx({children:A,formattedGraphicalItems:b,legendWidth:T,legendContent:s});if(!M)return null;var I=M.item,$=Lb(M,_2);return q.cloneElement(I,C(C({},$),{},{chartWidth:P,chartHeight:j,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),K(m,"renderTooltip",function(){var b,_=m.props,A=_.children,P=_.accessibilityLayer,j=We(A,dt);if(!j)return null;var E=m.state,T=E.isTooltipActive,M=E.activeCoordinate,I=E.activePayload,$=E.activeLabel,k=E.offset,R=(b=j.props.active)!==null&&b!==void 0?b:T;return q.cloneElement(j,{viewBox:C(C({},k),{},{x:k.left,y:k.top}),active:R,label:$,payload:R?I:[],coordinate:M,accessibilityLayer:P})}),K(m,"renderBrush",function(b){var _=m.props,A=_.margin,P=_.data,j=m.state,E=j.offset,T=j.dataStartIndex,M=j.dataEndIndex,I=j.updateId;return q.cloneElement(b,{key:b.key||"_recharts-brush",onChange:Pi(m.handleBrushChange,b.props.onChange),data:P,x:N(b.props.x)?b.props.x:E.left,y:N(b.props.y)?b.props.y:E.top+E.height+E.brushBottom-(A.bottom||0),width:N(b.props.width)?b.props.width:E.width,startIndex:T,endIndex:M,updateId:"brush-".concat(I)})}),K(m,"renderReferenceElement",function(b,_,A){if(!b)return null;var P=m,j=P.clipPathId,E=m.state,T=E.xAxisMap,M=E.yAxisMap,I=E.offset,$=b.type.defaultProps||{},k=b.props,R=k.xAxisId,L=R===void 0?$.xAxisId:R,B=k.yAxisId,U=B===void 0?$.yAxisId:B;return q.cloneElement(b,{key:b.key||"".concat(_,"-").concat(A),xAxis:T[L],yAxis:M[U],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:j})}),K(m,"renderActivePoints",function(b){var _=b.item,A=b.activePoint,P=b.basePoint,j=b.childIndex,E=b.isRange,T=[],M=_.props.key,I=_.item.type.defaultProps!==void 0?C(C({},_.item.type.defaultProps),_.item.props):_.item.props,$=I.activeDot,k=I.dataKey,R=C(C({index:j,dataKey:k,cx:A.x,cy:A.y,r:4,fill:kh(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},H($,!1)),ki($));return T.push(g.renderActiveDot($,R,"".concat(M,"-activePoint-").concat(j))),P?T.push(g.renderActiveDot($,C(C({},R),{},{cx:P.x,cy:P.y}),"".concat(M,"-basePoint-").concat(j))):E&&T.push(null),T}),K(m,"renderGraphicChild",function(b,_,A){var P=m.filterFormatItem(b,_,A);if(!P)return null;var j=m.getTooltipEventType(),E=m.state,T=E.isTooltipActive,M=E.tooltipAxis,I=E.activeTooltipIndex,$=E.activeLabel,k=m.props.children,R=We(k,dt),L=P.props,B=L.points,U=L.isRange,G=L.baseLine,W=P.item.type.defaultProps!==void 0?C(C({},P.item.type.defaultProps),P.item.props):P.item.props,X=W.activeDot,fe=W.hide,ye=W.activeBar,Be=W.activeShape,Bt=!!(!fe&&T&&R&&(X||ye||Be)),Re={};j!=="axis"&&R&&R.props.trigger==="click"?Re={onClick:Pi(m.handleItemMouseEnter,b.props.onClick)}:j!=="axis"&&(Re={onMouseLeave:Pi(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:Pi(m.handleItemMouseEnter,b.props.onMouseEnter)});var F=q.cloneElement(b,C(C({},P.props),Re));function Z(Wt){return typeof M.dataKey=="function"?M.dataKey(Wt.payload):null}if(Bt)if(I>=0){var Q,D;if(M.dataKey&&!M.allowDuplicatedCategory){var de=typeof M.dataKey=="function"?Z:"payload.".concat(M.dataKey.toString());Q=Ci(B,de,$),D=U&&G&&Ci(G,de,$)}else Q=B==null?void 0:B[I],D=U&&G&&G[I];if(Be||ye){var te=b.props.activeIndex!==void 0?b.props.activeIndex:I;return[q.cloneElement(b,C(C(C({},P.props),Re),{},{activeIndex:te})),null,null]}if(!Y(Q))return[F].concat(Qr(m.renderActivePoints({item:P,activePoint:Q,basePoint:D,childIndex:I,isRange:U})))}else{var be,xe=(be=m.getItemByXY(m.state.activeCoordinate))!==null&&be!==void 0?be:{graphicalItem:F},De=xe.graphicalItem,Et=De.item,dr=Et===void 0?b:Et,yi=De.childIndex,Ft=C(C(C({},P.props),Re),{},{activeIndex:yi});return[q.cloneElement(dr,Ft),null,null]}return U?[F,null,null]:[F,null]}),K(m,"renderCustomized",function(b,_,A){return q.cloneElement(b,C(C({key:"recharts-customized-".concat(A)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:$i,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:$i},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:$i},YAxis:{handler:$i},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:nn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=U0(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return R2(g,p),$2(g,[{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,b=w.height,_=w.layout,A=We(O,dt);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=Bf(this.state,m,P,j),T=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+b)/2,I=_==="horizontal",$=I?{x:T,y:M}:{y:T,x:M},k=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});k&&($=C(C({},$),k.props.points[P].tooltipPosition),E=k.props.points[P].tooltipPayload);var R={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:j,activePayload:E,activeCoordinate:$};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{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,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){wl([We(w.children,dt)],[We(this.props.children,dt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=We(this.props.children,dt);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(),b=tP(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},A=m.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,A);if(!P)return null;var j=this.state,E=j.xAxisMap,T=j.yAxisMap,M=this.getTooltipEventType(),I=Fb(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&E&&T){var $=$t(E).scale,k=$t(T).scale,R=$&&$.invert?$.invert(_.chartX):null,L=k&&k.invert?k.invert(_.chartY):null;return C(C({},_),{},{xValue:R,yValue:L},I)}return I?C(C({},_),I):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,A=O/m;if(b==="horizontal"||b==="vertical"){var P=this.state.offset,j=_>=P.left&&_<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return j?{x:_,y:A}:null}var E=this.state,T=E.angleAxisMap,M=E.radiusAxisMap;if(T&&M){var I=$t(T);return Gm({x:_,y:A},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=We(w,dt),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={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 _=ki(this.props,this.handleOuterEvent);return C(C({},_),b)}},{key:"addListener",value:function(){yl.on(ml,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){yl.removeListener(ml,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,A=b.length;_<A;_++){var P=b[_];if(P.item===w||P.props.key===w.key||O===bt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,A=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:w},S.createElement("rect",{x:m,y:b,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=qb(m,2),_=b[0],A=b[1];return C(C({},O),{},K({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=qb(m,2),_=b[0],A=b[1];return C(C({},O),{},K({},_,A.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,b=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var P=m[_],j=P.props,E=P.item,T=E.type.defaultProps!==void 0?C(C({},E.type.defaultProps),E.props):E.props,M=bt(E.type);if(M==="Bar"){var I=(j.data||[]).find(function(L){return TC(w,L)});if(I)return{graphicalItem:P,payload:I}}else if(M==="RadialBar"){var $=(j.data||[]).find(function(L){return Gm(w,L)});if($)return{graphicalItem:P,payload:$}}else if(ao(P,b)||oo(P,b)||ni(P,b)){var k=Yk({graphicalItem:P,activeTooltipItem:b,itemData:T.data}),R=T.activeIndex===void 0?k:T.activeIndex;return{graphicalItem:C(C({},P),{},{childIndex:R}),payload:ni(P,b)?T.data[k]:P.props.data[k]}}}return null}},{key:"render",value:function(){var w=this;if(!rd(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,A=O.height,P=O.style,j=O.compact,E=O.title,T=O.desc,M=Lb(O,A2),I=H(M,!1);if(j)return S.createElement(xb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(_l,Or({},I,{width:_,height:A,title:E,desc:T}),this.renderClipPath(),id(m,this.renderMap)));if(this.props.accessibilityLayer){var $,k;I.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,I.role=(k=this.props.role)!==null&&k!==void 0?k:"application",I.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},I.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return S.createElement(xb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Or({className:J("recharts-wrapper",b),style:C({position:"relative",cursor:"default",width:_,height:A},P)},R,{ref:function(B){w.container=B}}),S.createElement(_l,Or({},I,{width:_,height:A,title:E,desc:T,style:F2}),this.renderClipPath(),id(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(q.Component);K(y,"displayName",r),K(y,"defaultProps",C({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(y,"getDerivedStateFromProps",function(p,g){var x=p.dataKey,w=p.data,O=p.children,m=p.width,b=p.height,_=p.layout,A=p.stackOffset,P=p.margin,j=g.dataStartIndex,E=g.dataEndIndex;if(g.updateId===void 0){var T=Wb(p);return C(C(C({},T),{},{updateId:0},d(C(C({props:p},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!_r(P,g.prevMargin)){var M=Wb(p),I={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},$=C(C({},Fb(g,w,_)),{},{updateId:g.updateId+1}),k=C(C(C({},M),I),$);return C(C(C({},k),d(C({props:p},k),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(!wl(O,g.prevChildren)){var R,L,B,U,G=We(O,zr),W=G&&(R=(L=G.props)===null||L===void 0?void 0:L.startIndex)!==null&&R!==void 0?R:j,X=G&&(B=(U=G.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:E,fe=W!==j||X!==E,ye=!Y(w),Be=ye&&!fe?g.updateId:g.updateId+1;return C(C({updateId:Be},d(C(C({props:p},g),{},{updateId:Be,dataStartIndex:W,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:X})}return null}),K(y,"renderActiveDot",function(p,g,x){var w;return q.isValidElement(p)?w=q.cloneElement(p,g):V(p)?w=p(g):w=S.createElement(eo,g),S.createElement(ee,{className:"recharts-active-dot",key:x},w)});var v=q.forwardRef(function(g,x){return S.createElement(y,Or({},g,{ref:x}))});return v.displayName=y.displayName,v},rq=Hh({chartName:"BarChart",GraphicalChild:sn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ho},{axisType:"yAxis",AxisComp:po}],formatAxisMap:$w}),nq=Hh({chartName:"PieChart",GraphicalChild:Lt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:io},{axisType:"radiusAxis",AxisComp:ro}],formatAxisMap:qM,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),iq=Hh({chartName:"AreaChart",GraphicalChild:pr,axisComponents:[{axisType:"xAxis",AxisComp:ho},{axisType:"yAxis",AxisComp:po}],formatAxisMap:$w});export{iq as A,rq as B,sh as C,Ar as L,nq as P,J2 as R,dt as T,ho as X,po as Y,sn as a,Lt as b,J as c,jN as d,pr as e,Ln as f,Yy as g,cT as h,it as i,eq as j,Q2 as k,tq as l,on as m};
|