arize-phoenix 10.0.4__py3-none-any.whl → 12.28.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. {arize_phoenix-10.0.4.dist-info → arize_phoenix-12.28.1.dist-info}/METADATA +124 -72
  2. arize_phoenix-12.28.1.dist-info/RECORD +499 -0
  3. {arize_phoenix-10.0.4.dist-info → arize_phoenix-12.28.1.dist-info}/WHEEL +1 -1
  4. {arize_phoenix-10.0.4.dist-info → arize_phoenix-12.28.1.dist-info}/licenses/IP_NOTICE +1 -1
  5. phoenix/__generated__/__init__.py +0 -0
  6. phoenix/__generated__/classification_evaluator_configs/__init__.py +20 -0
  7. phoenix/__generated__/classification_evaluator_configs/_document_relevance_classification_evaluator_config.py +17 -0
  8. phoenix/__generated__/classification_evaluator_configs/_hallucination_classification_evaluator_config.py +17 -0
  9. phoenix/__generated__/classification_evaluator_configs/_models.py +18 -0
  10. phoenix/__generated__/classification_evaluator_configs/_tool_selection_classification_evaluator_config.py +17 -0
  11. phoenix/__init__.py +5 -4
  12. phoenix/auth.py +39 -2
  13. phoenix/config.py +1763 -91
  14. phoenix/datetime_utils.py +120 -2
  15. phoenix/db/README.md +595 -25
  16. phoenix/db/bulk_inserter.py +145 -103
  17. phoenix/db/engines.py +140 -33
  18. phoenix/db/enums.py +3 -12
  19. phoenix/db/facilitator.py +302 -35
  20. phoenix/db/helpers.py +1000 -65
  21. phoenix/db/iam_auth.py +64 -0
  22. phoenix/db/insertion/dataset.py +135 -2
  23. phoenix/db/insertion/document_annotation.py +9 -6
  24. phoenix/db/insertion/evaluation.py +2 -3
  25. phoenix/db/insertion/helpers.py +17 -2
  26. phoenix/db/insertion/session_annotation.py +176 -0
  27. phoenix/db/insertion/span.py +15 -11
  28. phoenix/db/insertion/span_annotation.py +3 -4
  29. phoenix/db/insertion/trace_annotation.py +3 -4
  30. phoenix/db/insertion/types.py +50 -20
  31. phoenix/db/migrations/versions/01a8342c9cdf_add_user_id_on_datasets.py +40 -0
  32. phoenix/db/migrations/versions/0df286449799_add_session_annotations_table.py +105 -0
  33. phoenix/db/migrations/versions/272b66ff50f8_drop_single_indices.py +119 -0
  34. phoenix/db/migrations/versions/58228d933c91_dataset_labels.py +67 -0
  35. phoenix/db/migrations/versions/699f655af132_experiment_tags.py +57 -0
  36. phoenix/db/migrations/versions/735d3d93c33e_add_composite_indices.py +41 -0
  37. phoenix/db/migrations/versions/a20694b15f82_cost.py +196 -0
  38. phoenix/db/migrations/versions/ab513d89518b_add_user_id_on_dataset_versions.py +40 -0
  39. phoenix/db/migrations/versions/d0690a79ea51_users_on_experiments.py +40 -0
  40. phoenix/db/migrations/versions/deb2c81c0bb2_dataset_splits.py +139 -0
  41. phoenix/db/migrations/versions/e76cbd66ffc3_add_experiments_dataset_examples.py +87 -0
  42. phoenix/db/models.py +669 -56
  43. phoenix/db/pg_config.py +10 -0
  44. phoenix/db/types/model_provider.py +4 -0
  45. phoenix/db/types/token_price_customization.py +29 -0
  46. phoenix/db/types/trace_retention.py +23 -15
  47. phoenix/experiments/evaluators/utils.py +3 -3
  48. phoenix/experiments/functions.py +160 -52
  49. phoenix/experiments/tracing.py +2 -2
  50. phoenix/experiments/types.py +1 -1
  51. phoenix/inferences/inferences.py +1 -2
  52. phoenix/server/api/auth.py +38 -7
  53. phoenix/server/api/auth_messages.py +46 -0
  54. phoenix/server/api/context.py +100 -4
  55. phoenix/server/api/dataloaders/__init__.py +79 -5
  56. phoenix/server/api/dataloaders/annotation_configs_by_project.py +31 -0
  57. phoenix/server/api/dataloaders/annotation_summaries.py +60 -8
  58. phoenix/server/api/dataloaders/average_experiment_repeated_run_group_latency.py +50 -0
  59. phoenix/server/api/dataloaders/average_experiment_run_latency.py +17 -24
  60. phoenix/server/api/dataloaders/cache/two_tier_cache.py +1 -2
  61. phoenix/server/api/dataloaders/dataset_dataset_splits.py +52 -0
  62. phoenix/server/api/dataloaders/dataset_example_revisions.py +0 -1
  63. phoenix/server/api/dataloaders/dataset_example_splits.py +40 -0
  64. phoenix/server/api/dataloaders/dataset_examples_and_versions_by_experiment_run.py +47 -0
  65. phoenix/server/api/dataloaders/dataset_labels.py +36 -0
  66. phoenix/server/api/dataloaders/document_evaluation_summaries.py +2 -2
  67. phoenix/server/api/dataloaders/document_evaluations.py +6 -9
  68. phoenix/server/api/dataloaders/experiment_annotation_summaries.py +88 -34
  69. phoenix/server/api/dataloaders/experiment_dataset_splits.py +43 -0
  70. phoenix/server/api/dataloaders/experiment_error_rates.py +21 -28
  71. phoenix/server/api/dataloaders/experiment_repeated_run_group_annotation_summaries.py +77 -0
  72. phoenix/server/api/dataloaders/experiment_repeated_run_groups.py +57 -0
  73. phoenix/server/api/dataloaders/experiment_runs_by_experiment_and_example.py +44 -0
  74. phoenix/server/api/dataloaders/last_used_times_by_generative_model_id.py +35 -0
  75. phoenix/server/api/dataloaders/latency_ms_quantile.py +40 -8
  76. phoenix/server/api/dataloaders/record_counts.py +37 -10
  77. phoenix/server/api/dataloaders/session_annotations_by_session.py +29 -0
  78. phoenix/server/api/dataloaders/span_cost_by_span.py +24 -0
  79. phoenix/server/api/dataloaders/span_cost_detail_summary_entries_by_generative_model.py +56 -0
  80. phoenix/server/api/dataloaders/span_cost_detail_summary_entries_by_project_session.py +57 -0
  81. phoenix/server/api/dataloaders/span_cost_detail_summary_entries_by_span.py +43 -0
  82. phoenix/server/api/dataloaders/span_cost_detail_summary_entries_by_trace.py +56 -0
  83. phoenix/server/api/dataloaders/span_cost_details_by_span_cost.py +27 -0
  84. phoenix/server/api/dataloaders/span_cost_summary_by_experiment.py +57 -0
  85. phoenix/server/api/dataloaders/span_cost_summary_by_experiment_repeated_run_group.py +64 -0
  86. phoenix/server/api/dataloaders/span_cost_summary_by_experiment_run.py +58 -0
  87. phoenix/server/api/dataloaders/span_cost_summary_by_generative_model.py +55 -0
  88. phoenix/server/api/dataloaders/span_cost_summary_by_project.py +152 -0
  89. phoenix/server/api/dataloaders/span_cost_summary_by_project_session.py +56 -0
  90. phoenix/server/api/dataloaders/span_cost_summary_by_trace.py +55 -0
  91. phoenix/server/api/dataloaders/span_costs.py +29 -0
  92. phoenix/server/api/dataloaders/table_fields.py +2 -2
  93. phoenix/server/api/dataloaders/token_prices_by_model.py +30 -0
  94. phoenix/server/api/dataloaders/trace_annotations_by_trace.py +27 -0
  95. phoenix/server/api/dataloaders/types.py +29 -0
  96. phoenix/server/api/exceptions.py +11 -1
  97. phoenix/server/api/helpers/dataset_helpers.py +5 -1
  98. phoenix/server/api/helpers/playground_clients.py +1243 -292
  99. phoenix/server/api/helpers/playground_registry.py +2 -2
  100. phoenix/server/api/helpers/playground_spans.py +8 -4
  101. phoenix/server/api/helpers/playground_users.py +26 -0
  102. phoenix/server/api/helpers/prompts/conversions/aws.py +83 -0
  103. phoenix/server/api/helpers/prompts/conversions/google.py +103 -0
  104. phoenix/server/api/helpers/prompts/models.py +205 -22
  105. phoenix/server/api/input_types/{SpanAnnotationFilter.py → AnnotationFilter.py} +22 -14
  106. phoenix/server/api/input_types/ChatCompletionInput.py +6 -2
  107. phoenix/server/api/input_types/CreateProjectInput.py +27 -0
  108. phoenix/server/api/input_types/CreateProjectSessionAnnotationInput.py +37 -0
  109. phoenix/server/api/input_types/DatasetFilter.py +17 -0
  110. phoenix/server/api/input_types/ExperimentRunSort.py +237 -0
  111. phoenix/server/api/input_types/GenerativeCredentialInput.py +9 -0
  112. phoenix/server/api/input_types/GenerativeModelInput.py +5 -0
  113. phoenix/server/api/input_types/ProjectSessionSort.py +161 -1
  114. phoenix/server/api/input_types/PromptFilter.py +14 -0
  115. phoenix/server/api/input_types/PromptVersionInput.py +52 -1
  116. phoenix/server/api/input_types/SpanSort.py +44 -7
  117. phoenix/server/api/input_types/TimeBinConfig.py +23 -0
  118. phoenix/server/api/input_types/UpdateAnnotationInput.py +34 -0
  119. phoenix/server/api/input_types/UserRoleInput.py +1 -0
  120. phoenix/server/api/mutations/__init__.py +10 -0
  121. phoenix/server/api/mutations/annotation_config_mutations.py +8 -8
  122. phoenix/server/api/mutations/api_key_mutations.py +19 -23
  123. phoenix/server/api/mutations/chat_mutations.py +154 -47
  124. phoenix/server/api/mutations/dataset_label_mutations.py +243 -0
  125. phoenix/server/api/mutations/dataset_mutations.py +21 -16
  126. phoenix/server/api/mutations/dataset_split_mutations.py +351 -0
  127. phoenix/server/api/mutations/experiment_mutations.py +2 -2
  128. phoenix/server/api/mutations/export_events_mutations.py +3 -3
  129. phoenix/server/api/mutations/model_mutations.py +210 -0
  130. phoenix/server/api/mutations/project_mutations.py +49 -10
  131. phoenix/server/api/mutations/project_session_annotations_mutations.py +158 -0
  132. phoenix/server/api/mutations/project_trace_retention_policy_mutations.py +8 -4
  133. phoenix/server/api/mutations/prompt_label_mutations.py +74 -65
  134. phoenix/server/api/mutations/prompt_mutations.py +65 -129
  135. phoenix/server/api/mutations/prompt_version_tag_mutations.py +11 -8
  136. phoenix/server/api/mutations/span_annotations_mutations.py +15 -10
  137. phoenix/server/api/mutations/trace_annotations_mutations.py +14 -10
  138. phoenix/server/api/mutations/trace_mutations.py +47 -3
  139. phoenix/server/api/mutations/user_mutations.py +66 -41
  140. phoenix/server/api/queries.py +768 -293
  141. phoenix/server/api/routers/__init__.py +2 -2
  142. phoenix/server/api/routers/auth.py +154 -88
  143. phoenix/server/api/routers/ldap.py +229 -0
  144. phoenix/server/api/routers/oauth2.py +369 -106
  145. phoenix/server/api/routers/v1/__init__.py +24 -4
  146. phoenix/server/api/routers/v1/annotation_configs.py +23 -31
  147. phoenix/server/api/routers/v1/annotations.py +481 -17
  148. phoenix/server/api/routers/v1/datasets.py +395 -81
  149. phoenix/server/api/routers/v1/documents.py +142 -0
  150. phoenix/server/api/routers/v1/evaluations.py +24 -31
  151. phoenix/server/api/routers/v1/experiment_evaluations.py +19 -8
  152. phoenix/server/api/routers/v1/experiment_runs.py +337 -59
  153. phoenix/server/api/routers/v1/experiments.py +479 -48
  154. phoenix/server/api/routers/v1/models.py +7 -0
  155. phoenix/server/api/routers/v1/projects.py +18 -49
  156. phoenix/server/api/routers/v1/prompts.py +54 -40
  157. phoenix/server/api/routers/v1/sessions.py +108 -0
  158. phoenix/server/api/routers/v1/spans.py +1091 -81
  159. phoenix/server/api/routers/v1/traces.py +132 -78
  160. phoenix/server/api/routers/v1/users.py +389 -0
  161. phoenix/server/api/routers/v1/utils.py +3 -7
  162. phoenix/server/api/subscriptions.py +305 -88
  163. phoenix/server/api/types/Annotation.py +90 -23
  164. phoenix/server/api/types/ApiKey.py +13 -17
  165. phoenix/server/api/types/AuthMethod.py +1 -0
  166. phoenix/server/api/types/ChatCompletionSubscriptionPayload.py +1 -0
  167. phoenix/server/api/types/CostBreakdown.py +12 -0
  168. phoenix/server/api/types/Dataset.py +226 -72
  169. phoenix/server/api/types/DatasetExample.py +88 -18
  170. phoenix/server/api/types/DatasetExperimentAnnotationSummary.py +10 -0
  171. phoenix/server/api/types/DatasetLabel.py +57 -0
  172. phoenix/server/api/types/DatasetSplit.py +98 -0
  173. phoenix/server/api/types/DatasetVersion.py +49 -4
  174. phoenix/server/api/types/DocumentAnnotation.py +212 -0
  175. phoenix/server/api/types/Experiment.py +264 -59
  176. phoenix/server/api/types/ExperimentComparison.py +5 -10
  177. phoenix/server/api/types/ExperimentRepeatedRunGroup.py +155 -0
  178. phoenix/server/api/types/ExperimentRepeatedRunGroupAnnotationSummary.py +9 -0
  179. phoenix/server/api/types/ExperimentRun.py +169 -65
  180. phoenix/server/api/types/ExperimentRunAnnotation.py +158 -39
  181. phoenix/server/api/types/GenerativeModel.py +245 -3
  182. phoenix/server/api/types/GenerativeProvider.py +70 -11
  183. phoenix/server/api/types/{Model.py → InferenceModel.py} +1 -1
  184. phoenix/server/api/types/ModelInterface.py +16 -0
  185. phoenix/server/api/types/PlaygroundModel.py +20 -0
  186. phoenix/server/api/types/Project.py +1278 -216
  187. phoenix/server/api/types/ProjectSession.py +188 -28
  188. phoenix/server/api/types/ProjectSessionAnnotation.py +187 -0
  189. phoenix/server/api/types/ProjectTraceRetentionPolicy.py +1 -1
  190. phoenix/server/api/types/Prompt.py +119 -39
  191. phoenix/server/api/types/PromptLabel.py +42 -25
  192. phoenix/server/api/types/PromptVersion.py +11 -8
  193. phoenix/server/api/types/PromptVersionTag.py +65 -25
  194. phoenix/server/api/types/ServerStatus.py +6 -0
  195. phoenix/server/api/types/Span.py +167 -123
  196. phoenix/server/api/types/SpanAnnotation.py +189 -42
  197. phoenix/server/api/types/SpanCostDetailSummaryEntry.py +10 -0
  198. phoenix/server/api/types/SpanCostSummary.py +10 -0
  199. phoenix/server/api/types/SystemApiKey.py +65 -1
  200. phoenix/server/api/types/TokenPrice.py +16 -0
  201. phoenix/server/api/types/TokenUsage.py +3 -3
  202. phoenix/server/api/types/Trace.py +223 -51
  203. phoenix/server/api/types/TraceAnnotation.py +149 -50
  204. phoenix/server/api/types/User.py +137 -32
  205. phoenix/server/api/types/UserApiKey.py +73 -26
  206. phoenix/server/api/types/node.py +10 -0
  207. phoenix/server/api/types/pagination.py +11 -2
  208. phoenix/server/app.py +290 -45
  209. phoenix/server/authorization.py +38 -3
  210. phoenix/server/bearer_auth.py +34 -24
  211. phoenix/server/cost_tracking/cost_details_calculator.py +196 -0
  212. phoenix/server/cost_tracking/cost_model_lookup.py +179 -0
  213. phoenix/server/cost_tracking/helpers.py +68 -0
  214. phoenix/server/cost_tracking/model_cost_manifest.json +3657 -830
  215. phoenix/server/cost_tracking/regex_specificity.py +397 -0
  216. phoenix/server/cost_tracking/token_cost_calculator.py +57 -0
  217. phoenix/server/daemons/__init__.py +0 -0
  218. phoenix/server/daemons/db_disk_usage_monitor.py +214 -0
  219. phoenix/server/daemons/generative_model_store.py +103 -0
  220. phoenix/server/daemons/span_cost_calculator.py +99 -0
  221. phoenix/server/dml_event.py +17 -0
  222. phoenix/server/dml_event_handler.py +5 -0
  223. phoenix/server/email/sender.py +56 -3
  224. phoenix/server/email/templates/db_disk_usage_notification.html +19 -0
  225. phoenix/server/email/types.py +11 -0
  226. phoenix/server/experiments/__init__.py +0 -0
  227. phoenix/server/experiments/utils.py +14 -0
  228. phoenix/server/grpc_server.py +11 -11
  229. phoenix/server/jwt_store.py +17 -15
  230. phoenix/server/ldap.py +1449 -0
  231. phoenix/server/main.py +26 -10
  232. phoenix/server/oauth2.py +330 -12
  233. phoenix/server/prometheus.py +66 -6
  234. phoenix/server/rate_limiters.py +4 -9
  235. phoenix/server/retention.py +33 -20
  236. phoenix/server/session_filters.py +49 -0
  237. phoenix/server/static/.vite/manifest.json +55 -51
  238. phoenix/server/static/assets/components-BreFUQQa.js +6702 -0
  239. phoenix/server/static/assets/{index-E0M82BdE.js → index-CTQoemZv.js} +140 -56
  240. phoenix/server/static/assets/pages-DBE5iYM3.js +9524 -0
  241. phoenix/server/static/assets/vendor-BGzfc4EU.css +1 -0
  242. phoenix/server/static/assets/vendor-DCE4v-Ot.js +920 -0
  243. phoenix/server/static/assets/vendor-codemirror-D5f205eT.js +25 -0
  244. phoenix/server/static/assets/vendor-recharts-V9cwpXsm.js +37 -0
  245. phoenix/server/static/assets/vendor-shiki-Do--csgv.js +5 -0
  246. phoenix/server/static/assets/vendor-three-CmB8bl_y.js +3840 -0
  247. phoenix/server/templates/index.html +40 -6
  248. phoenix/server/thread_server.py +1 -2
  249. phoenix/server/types.py +14 -4
  250. phoenix/server/utils.py +74 -0
  251. phoenix/session/client.py +56 -3
  252. phoenix/session/data_extractor.py +5 -0
  253. phoenix/session/evaluation.py +14 -5
  254. phoenix/session/session.py +45 -9
  255. phoenix/settings.py +5 -0
  256. phoenix/trace/attributes.py +80 -13
  257. phoenix/trace/dsl/helpers.py +90 -1
  258. phoenix/trace/dsl/query.py +8 -6
  259. phoenix/trace/projects.py +5 -0
  260. phoenix/utilities/template_formatters.py +1 -1
  261. phoenix/version.py +1 -1
  262. arize_phoenix-10.0.4.dist-info/RECORD +0 -405
  263. phoenix/server/api/types/Evaluation.py +0 -39
  264. phoenix/server/cost_tracking/cost_lookup.py +0 -255
  265. phoenix/server/static/assets/components-DULKeDfL.js +0 -4365
  266. phoenix/server/static/assets/pages-Cl0A-0U2.js +0 -7430
  267. phoenix/server/static/assets/vendor-WIZid84E.css +0 -1
  268. phoenix/server/static/assets/vendor-arizeai-Dy-0mSNw.js +0 -649
  269. phoenix/server/static/assets/vendor-codemirror-DBtifKNr.js +0 -33
  270. phoenix/server/static/assets/vendor-oB4u9zuV.js +0 -905
  271. phoenix/server/static/assets/vendor-recharts-D-T4KPz2.js +0 -59
  272. phoenix/server/static/assets/vendor-shiki-BMn4O_9F.js +0 -5
  273. phoenix/server/static/assets/vendor-three-C5WAXd5r.js +0 -2998
  274. phoenix/utilities/deprecation.py +0 -31
  275. {arize_phoenix-10.0.4.dist-info → arize_phoenix-12.28.1.dist-info}/entry_points.txt +0 -0
  276. {arize_phoenix-10.0.4.dist-info → arize_phoenix-12.28.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,59 +0,0 @@
1
- import{dy as mu,dz as zt,dA as ye,dB as Wr,r as B,by as Wt,dC as W,dD as z,dE as da,dF as X,R as A,dG as gu,dH as Dn,dI as bu,dJ as xu,dK as Ou,dL as Au,dM as wu,dN as Pu,dO as Wc,dP as Ti,dQ as fi,dR as Kc,dS as Z,q as at,dT as Su,dU as ju,dV as Eu,dW as $u,dX as Tu,dY as ku,dZ as Iu,d_ as Mn,d$ as Re,e0 as Fe,e1 as ki,e2 as Ii,e3 as rn,e4 as _i,e5 as _u,e6 as Hr,e7 as Cu,e8 as Du,e9 as Mu,ea as Bu,eb as Nu,ec as Lu,ed as Ru,ee as Fc,ef as zu,eg as Wu,eh as Ku,ei as Fu,ej as Vu,ek as Xu,el as De,em as Gu,en as Hu,eo as Uu,ep as Yu,eq as an,er as Vc,es as qu,et as Zu,eu as Ju,ev as Qu,ew as es}from"./vendor-oB4u9zuV.js";var se=function(e){return e===0?0:e>0?1:-1},tt=function(e){return Wr(e)&&e.indexOf("%")===e.length-1},M=function(e){return mu(e)&&!zt(e)},ne=function(e){return M(e)||Wr(e)},ts=0,Xe=function(e){var r=++ts;return"".concat(e||"").concat(r)},fe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!M(e)&&!Wr(e))return n;var i;if(tt(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return zt(i)&&(i=n),a&&i>r&&(i=r),i},Le=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},rs=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},te=function(e,r){return M(e)&&M(r)?function(n){return e+n*(r-e)}:function(){return r}};function on(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ye(n,e))===r})}var ns=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,a=0,i=0,o=0,c=1/0,l=-1/0,u=0,s=0,f=0;f<r;f++)u=e[f].cx||0,s=e[f].cy||0,n+=u,a+=s,i+=u*s,o+=u*u,c=Math.min(c,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:c,xmax:l,a:d,b:(a-d*n)/r}};function Ot(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var as=["viewBox","children"],is=["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"],Ci=["points","pathLength"],ta={svg:as,polygon:Ci,polyline:Ci},di=["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"],cn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!Wt(n))return null;var a={};return Object.keys(n).forEach(function(i){di.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},os=function(e,r,n){return function(a){return e(r,n,a),null}},Ve=function(e,r,n){if(!Wt(e)||pa(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];di.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=os(o,r,n))}),a},cs=["children"],ls=["children"];function Di(t,e){if(t==null)return{};var r=us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}var Mi={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ce=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Bi=null,ra=null,pi=function t(e){if(e===Bi&&Array.isArray(ra))return ra;var r=[];return B.Children.forEach(e,function(n){z(n)||(da.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),ra=r,Bi=e,r};function de(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return Ce(a)}):n=[Ce(e)],pi(t).forEach(function(a){var i=ye(a,"type.displayName")||ye(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function he(t,e){var r=de(t,e);return r&&r[0]}var Ni=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!M(n)||n<=0||!M(a)||a<=0)},ss=["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"],fs=function(e){return e&&e.type&&Wr(e.type)&&ss.indexOf(e.type)>=0},Xc=function(e){return e&&va(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},ds=function(e,r,n,a){var i,o=(i=ta==null?void 0:ta[a])!==null&&i!==void 0?i:[];return!W(e)&&(a&&o.includes(r)||is.includes(r))||n&&di.includes(r)},R=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(B.isValidElement(e)&&(a=e.props),!Wt(a))return null;var i={};return Object.keys(a).forEach(function(o){var c;ds((c=a)===null||c===void 0?void 0:c[o],o,r,n)&&(i[o]=a[o])}),i},ha=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Li(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!Li(i,o))return!1}return!0},Li=function(e,r){if(z(e)&&z(r))return!0;if(!z(e)&&!z(r)){var n=e.props||{},a=n.children,i=Di(n,cs),o=r.props||{},c=o.children,l=Di(o,ls);return a&&c?Ot(i,l)&&ha(a,c):!a&&!c?Ot(i,l):!1}return!1},Ri=function(e,r){var n=[],a={};return pi(e).forEach(function(i,o){if(fs(i))n.push(i);else if(i){var c=Ce(i.type),l=r[c]||{},u=l.handler,s=l.once;if(u&&(!s||!a[c])){var f=u(i,c,o);n.push(f),a[c]=!0}}}),n},ps=function(e){var r=e&&e.type;return r&&Mi[r]?Mi[r]:null},vs=function(e,r){return pi(r).indexOf(e)},hs=["children","width","height","viewBox","className","style","title","desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function ys(t,e){if(t==null)return{};var r=ms(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ms(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function ma(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,c=t.title,l=t.desc,u=ys(t,hs),s=a||{width:r,height:n,x:0,y:0},f=X("recharts-surface",i);return A.createElement("svg",ya({},R(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,l),e)}var gs=["children","className"];function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ga.apply(this,arguments)}function bs(t,e){if(t==null)return{};var r=xs(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xs(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var H=A.forwardRef(function(t,e){var r=t.children,n=t.className,a=bs(t,gs),i=X("recharts-layer",n);return A.createElement("g",ga({className:i},R(a,!0),{ref:e}),r)}),Se=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function sr(t){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(t)}var Os=["type","size","sizeType"];function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ba.apply(this,arguments)}function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(r),!0).forEach(function(n){As(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function As(t,e,r){return e=ws(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ws(t){var e=Ps(t,"string");return sr(e)=="symbol"?e:String(e)}function Ps(t,e){if(sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ss(t,e){if(t==null)return{};var r=js(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function js(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Gc={symbolCircle:Wc,symbolCross:Pu,symbolDiamond:wu,symbolSquare:Au,symbolStar:Ou,symbolTriangle:xu,symbolWye:bu},Es=Math.PI/180,$s=function(e){var r="symbol".concat(Dn(e));return Gc[r]||Wc},Ts=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*Es;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},ks=function(e,r){Gc["symbol".concat(Dn(e))]=r},Bn=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,c=o===void 0?"area":o,l=Ss(e,Os),u=Wi(Wi({},l),{},{type:n,size:i,sizeType:c}),s=function(){var g=$s(n),O=gu().type(g).size(Ts(i,c,n));return O()},f=u.className,d=u.cx,p=u.cy,m=R(u,!0);return d===+d&&p===+p&&i===+i?A.createElement("path",ba({},m,{className:X("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:s()})):null};Bn.registerSymbol=ks;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}function Ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ki(Object(r),!0).forEach(function(n){fr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uc(n.key),n)}}function Ds(t,e,r){return e&&Cs(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ms(t,e,r){return e=ln(e),Bs(t,Hc()?Reflect.construct(e,r||[],ln(t).constructor):e.apply(t,r))}function Bs(t,e){if(e&&(wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ns(t)}function Ns(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hc=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}function Ls(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oa(t,e)}function fr(t,e,r){return e=Uc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uc(t){var e=Rs(t,"string");return wt(e)=="symbol"?e:String(e)}function Rs(t,e){if(wt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(wt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ae=32,vi=function(t){Ls(e,t);function e(){return _s(this,e),Ms(this,e,arguments)}return Ds(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=Ae/2,o=Ae/6,c=Ae/3,l=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Ae,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(c,`
2
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*c,",").concat(i,`
3
- H`).concat(Ae,"M").concat(2*c,",").concat(i,`
4
- A`).concat(o,",").concat(o,",0,1,1,").concat(c,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ae/8,"h").concat(Ae,"v").concat(Ae*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var u=Is({},n);return delete u.legendIcon,A.cloneElement(n.legendIcon,u)}return A.createElement(Bn,{fill:l,cx:i,cy:i,size:Ae,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,c=a.layout,l=a.formatter,u=a.inactiveColor,s={x:0,y:0,width:Ae,height:Ae},f={display:c==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var y=p.formatter||l,g=X(fr(fr({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var O=W(p.value)?null:p.value;Se(!W(p.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 b=p.inactive?u:p.color;return A.createElement("li",xa({className:g,style:f,key:"legend-item-".concat(m)},Ve(n.props,p,m)),A.createElement(ma,{width:o,height:o,viewBox:s,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(O,p,m):O))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}]),e}(B.PureComponent);fr(vi,"displayName","Legend");fr(vi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function Yc(t,e,r){return e===!0?Ti(t,r):W(e)?Ti(t,e):t}function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(t)}var zs=["ref"];function Fi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fi(Object(r),!0).forEach(function(n){Nn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jc(n.key),n)}}function Ks(t,e,r){return e&&Vi(t.prototype,e),r&&Vi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fs(t,e,r){return e=un(e),Vs(t,qc()?Reflect.construct(e,r||[],un(t).constructor):e.apply(t,r))}function Vs(t,e){if(e&&(Pt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zc(t)}function qc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qc=function(){return!!t})()}function un(t){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},un(t)}function Zc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Aa(t,e)}function Aa(t,e){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Aa(t,e)}function Nn(t,e,r){return e=Jc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jc(t){var e=Gs(t,"string");return Pt(e)=="symbol"?e:String(e)}function Gs(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hs(t,e){if(t==null)return{};var r=Us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Ys(t){return t.value}function qs(t,e){if(A.isValidElement(t))return A.cloneElement(t,e);if(typeof t=="function")return A.createElement(t,e);e.ref;var r=Hs(e,zs);return A.createElement(vi,r)}var Xi=1,dr=function(t){Xs(e,t);function e(){var r;Ws(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Fs(this,e,[].concat(a)),Nn(Zc(r),"lastBoundingBox",{width:-1,height:-1}),r}return Ks(e,[{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,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Xi||Math.abs(a.height-this.lastBoundingBox.height)>Xi)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(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?Ze({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,c=a.verticalAlign,l=a.margin,u=a.chartWidth,s=a.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(c==="middle"){var m=this.getBBoxSnapshot();d={top:((s||0)-m.height)/2}}else d=c==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ze(Ze({},f),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,c=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,s=a.payload,f=Ze(Ze({position:"absolute",width:o||"auto",height:c||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},qs(i,Ze(Ze({},this.props),{},{payload:Yc(s,u,Ys)})))}}],[{key:"getWithHeight",value:function(n,a){var i=n.props.layout;return i==="vertical"&&M(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||a}:null}}]),e}(B.PureComponent);Nn(dr,"displayName","Legend");Nn(dr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function pr(t){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(t)}function wa(){return wa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wa.apply(this,arguments)}function Zs(t,e){return tf(t)||ef(t,e)||Qs(t,e)||Js()}function Js(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qs(t,e){if(t){if(typeof t=="string")return Gi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gi(t,e)}}function Gi(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ef(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function tf(t){if(Array.isArray(t))return t}function Hi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function na(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hi(Object(r),!0).forEach(function(n){rf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rf(t,e,r){return e=nf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nf(t){var e=af(t,"string");return pr(e)=="symbol"?e:String(e)}function af(t,e){if(pr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function of(t){return Array.isArray(t)&&ne(t[0])&&ne(t[1])?t.join(" ~ "):t}var cf=function(e){var r=e.separator,n=r===void 0?" : ":r,a=e.contentStyle,i=a===void 0?{}:a,o=e.itemStyle,c=o===void 0?{}:o,l=e.labelStyle,u=l===void 0?{}:l,s=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,y=e.label,g=e.labelFormatter,O=e.accessibilityLayer,b=O===void 0?!1:O,x=function(){if(s&&s.length){var $={padding:0,margin:0},k=(d?fi(s,d):s).map(function(T,D){if(T.type==="none")return null;var _=na({display:"block",paddingTop:4,paddingBottom:4,color:T.color||"#000"},c),N=T.formatter||f||of,L=T.value,V=T.name,G=L,U=V;if(N&&G!=null&&U!=null){var F=N(L,V,T,D,s);if(Array.isArray(F)){var Y=Zs(F,2);G=Y[0],U=Y[1]}else G=F}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:_},ne(U)?A.createElement("span",{className:"recharts-tooltip-item-name"},U):null,ne(U)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},G),A.createElement("span",{className:"recharts-tooltip-item-unit"},T.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:$},k)}return null},v=na({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),h=na({margin:0},u),w=!z(y),P=w?y:"",S=X("recharts-default-tooltip",p),E=X("recharts-tooltip-label",m);w&&g&&s!==void 0&&s!==null&&(P=g(y,s));var j=b?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",wa({className:S,style:v},j),A.createElement("p",{className:E,style:h},A.isValidElement(P)?P:"".concat(P)),x())};function vr(t){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(t)}function Ur(t,e,r){return e=lf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lf(t){var e=uf(t,"string");return vr(e)=="symbol"?e:String(e)}function uf(t,e){if(vr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Yt="recharts-tooltip-wrapper",sf={visibility:"hidden"};function ff(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return X(Yt,Ur(Ur(Ur(Ur({},"".concat(Yt,"-right"),M(r)&&e&&M(e.x)&&r>=e.x),"".concat(Yt,"-left"),M(r)&&e&&M(e.x)&&r<e.x),"".concat(Yt,"-bottom"),M(n)&&e&&M(e.y)&&n>=e.y),"".concat(Yt,"-top"),M(n)&&e&&M(e.y)&&n<e.y))}function Ui(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,a=t.offsetTopLeft,i=t.position,o=t.reverseDirection,c=t.tooltipDimension,l=t.viewBox,u=t.viewBoxDimension;if(i&&M(i[n]))return i[n];var s=r[n]-c-a,f=r[n]+a;if(e[n])return o[n]?s:f;if(o[n]){var d=s,p=l[n];return d<p?Math.max(f,l[n]):Math.max(s,l[n])}var m=f+c,y=l[n]+u;return m>y?Math.max(s,l[n]):Math.max(f,l[n])}function df(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function pf(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,a=t.position,i=t.reverseDirection,o=t.tooltipBox,c=t.useTranslate3d,l=t.viewBox,u,s,f;return o.height>0&&o.width>0&&r?(s=Ui({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=Ui({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=df({translateX:s,translateY:f,useTranslate3d:c})):u=sf,{cssProperties:u,cssClasses:ff({translateX:s,translateY:f,coordinate:r})}}function St(t){"@babel/helpers - typeof";return St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(t)}function Yi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function qi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yi(Object(r),!0).forEach(function(n){ja(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,el(n.key),n)}}function yf(t,e,r){return e&&hf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mf(t,e,r){return e=sn(e),gf(t,Qc()?Reflect.construct(e,r||[],sn(t).constructor):e.apply(t,r))}function gf(t,e){if(e&&(St(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pa(t)}function Qc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qc=function(){return!!t})()}function sn(t){return sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sn(t)}function Pa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sa(t,e)}function Sa(t,e){return Sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Sa(t,e)}function ja(t,e,r){return e=el(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function el(t){var e=xf(t,"string");return St(e)=="symbol"?e:String(e)}function xf(t,e){if(St(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(St(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zi=1,Of=function(t){bf(e,t);function e(){var r;vf(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=mf(this,e,[].concat(a)),ja(Pa(r),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ja(Pa(r),"handleKeyDown",function(o){if(o.key==="Escape"){var c,l,u,s;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&c!==void 0?c:0,y:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.y)!==null&&u!==void 0?u:0}})}}),r}return yf(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Zi||Math.abs(n.height-this.state.lastBoundingBox.height)>Zi)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,c=a.animationDuration,l=a.animationEasing,u=a.children,s=a.coordinate,f=a.hasPayload,d=a.isAnimationActive,p=a.offset,m=a.position,y=a.reverseDirection,g=a.useTranslate3d,O=a.viewBox,b=a.wrapperStyle,x=pf({allowEscapeViewBox:o,coordinate:s,offsetTopLeft:p,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:O}),v=x.cssClasses,h=x.cssProperties,w=qi(qi({transition:d&&i?"transform ".concat(c,"ms ").concat(l):void 0},h),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return A.createElement("div",{tabIndex:-1,className:v,style:w,ref:function(S){n.wrapperNode=S}},u)}}]),e}(B.PureComponent),Af=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Me={isSsr:Af()};function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function Ji(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Qi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ji(Object(r),!0).forEach(function(n){hi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ji(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rl(n.key),n)}}function Sf(t,e,r){return e&&Pf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function jf(t,e,r){return e=fn(e),Ef(t,tl()?Reflect.construct(e,r||[],fn(t).constructor):e.apply(t,r))}function Ef(t,e){if(e&&(jt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $f(t)}function $f(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tl=function(){return!!t})()}function fn(t){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fn(t)}function Tf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ea(t,e)}function Ea(t,e){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ea(t,e)}function hi(t,e,r){return e=rl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rl(t){var e=kf(t,"string");return jt(e)=="symbol"?e:String(e)}function kf(t,e){if(jt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function If(t){return t.dataKey}function _f(t,e){return A.isValidElement(t)?A.cloneElement(t,e):typeof t=="function"?A.createElement(t,e):A.createElement(cf,e)}var ke=function(t){Tf(e,t);function e(){return wf(this,e),jf(this,e,arguments)}return Sf(e,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,c=a.animationDuration,l=a.animationEasing,u=a.content,s=a.coordinate,f=a.filterNull,d=a.isAnimationActive,p=a.offset,m=a.payload,y=a.payloadUniqBy,g=a.position,O=a.reverseDirection,b=a.useTranslate3d,x=a.viewBox,v=a.wrapperStyle,h=m??[];f&&h.length&&(h=Yc(m.filter(function(P){return P.value!=null&&(P.hide!==!0||n.props.includeHidden)}),y,If));var w=h.length>0;return A.createElement(Of,{allowEscapeViewBox:o,animationDuration:c,animationEasing:l,isAnimationActive:d,active:i,coordinate:s,hasPayload:w,offset:p,position:g,reverseDirection:O,useTranslate3d:b,viewBox:x,wrapperStyle:v},_f(u,Qi(Qi({},this.props),{},{payload:h})))}}]),e}(B.PureComponent);hi(ke,"displayName","Tooltip");hi(ke,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Me.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:{}});function hr(t){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(t)}function eo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Yr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eo(Object(r),!0).forEach(function(n){Cf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Cf(t,e,r){return e=Df(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Df(t){var e=Mf(t,"string");return hr(e)=="symbol"?e:String(e)}function Mf(t,e){if(hr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bf(t,e){return zf(t)||Rf(t,e)||Lf(t,e)||Nf()}function Nf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lf(t,e){if(t){if(typeof t=="string")return to(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return to(t,e)}}function to(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rf(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function zf(t){if(Array.isArray(t))return t}var nb=B.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=t.width,o=i===void 0?"100%":i,c=t.height,l=c===void 0?"100%":c,u=t.minWidth,s=u===void 0?0:u,f=t.minHeight,d=t.maxHeight,p=t.children,m=t.debounce,y=m===void 0?0:m,g=t.id,O=t.className,b=t.onResize,x=t.style,v=x===void 0?{}:x,h=B.useRef(null),w=B.useRef();w.current=b,B.useImperativeHandle(e,function(){return Object.defineProperty(h.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),h.current},configurable:!0})});var P=B.useState({containerWidth:a.width,containerHeight:a.height}),S=Bf(P,2),E=S[0],j=S[1],C=B.useCallback(function(k,T){j(function(D){var _=Math.round(k),N=Math.round(T);return D.containerWidth===_&&D.containerHeight===N?D:{containerWidth:_,containerHeight:N}})},[]);B.useEffect(function(){var k=function(V){var G,U=V[0].contentRect,F=U.width,Y=U.height;C(F,Y),(G=w.current)===null||G===void 0||G.call(w,F,Y)};y>0&&(k=Kc(k,y,{trailing:!0,leading:!1}));var T=new ResizeObserver(k),D=h.current.getBoundingClientRect(),_=D.width,N=D.height;return C(_,N),T.observe(h.current),function(){T.disconnect()}},[C,y]);var $=B.useMemo(function(){var k=E.containerWidth,T=E.containerHeight;if(k<0||T<0)return null;Se(tt(o)||tt(l),`The width(%s) and height(%s) are both fixed numbers,
7
- maybe you don't need to use a ResponsiveContainer.`,o,l),Se(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=tt(o)?k:o,_=tt(l)?T:l;r&&r>0&&(D?_=D/r:_&&(D=_*r),d&&_>d&&(_=d)),Se(D>0||_>0,`The width(%s) and height(%s) of chart should be greater than 0,
8
- please check the style of container, or the props width(%s) and height(%s),
9
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
10
- height and width.`,D,_,o,l,s,f,r);var N=!Array.isArray(p)&&da.isElement(p)&&Ce(p.type).endsWith("Chart");return A.Children.map(p,function(L){return da.isElement(L)?B.cloneElement(L,Yr({width:D,height:_},N?{style:Yr({height:"100%",width:"100%",maxHeight:_,maxWidth:D},L.props.style)}:{})):L})},[r,p,l,d,f,s,E,o]);return A.createElement("div",{id:g?"".concat(g):void 0,className:X("recharts-responsive-container",O),style:Yr(Yr({},v),{},{width:o,height:l,minWidth:s,minHeight:f,maxHeight:d}),ref:h},$)}),Ln=function(e){return null};Ln.displayName="Cell";function yr(t){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yr(t)}function ro(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function $a(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ro(Object(r),!0).forEach(function(n){Wf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wf(t,e,r){return e=Kf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kf(t){var e=Ff(t,"string");return yr(e)=="symbol"?e:String(e)}function Ff(t,e){if(yr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var pt={widthCache:{},cacheCount:0},Vf=2e3,Xf={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},no="recharts_measurement_span";function Gf(t){var e=$a({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var rr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Me.isSsr)return{width:0,height:0};var n=Gf(r),a=JSON.stringify({text:e,copyStyle:n});if(pt.widthCache[a])return pt.widthCache[a];try{var i=document.getElementById(no);i||(i=document.createElement("span"),i.setAttribute("id",no),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=$a($a({},Xf),n);Object.assign(i.style,o),i.textContent="".concat(e);var c=i.getBoundingClientRect(),l={width:c.width,height:c.height};return pt.widthCache[a]=l,++pt.cacheCount>Vf&&(pt.cacheCount=0,pt.widthCache={}),l}catch{return{width:0,height:0}}},Hf=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function mr(t){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(t)}function dn(t,e){return Zf(t)||qf(t,e)||Yf(t,e)||Uf()}function Uf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yf(t,e){if(t){if(typeof t=="string")return ao(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ao(t,e)}}function ao(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qf(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function Zf(t){if(Array.isArray(t))return t}function Jf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function io(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ed(n.key),n)}}function Qf(t,e,r){return e&&io(t.prototype,e),r&&io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ed(t){var e=td(t,"string");return mr(e)=="symbol"?e:String(e)}function td(t,e){if(mr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var oo=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,co=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rd=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,nd=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,nl={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ad=Object.keys(nl),mt="NaN";function id(t,e){return t*nl[e]}var qr=function(){function t(e,r){Jf(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!rd.test(r)&&(this.num=NaN,this.unit=""),ad.includes(r)&&(this.num=id(e,r),this.unit="px")}return Qf(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(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,a=(n=nd.exec(r))!==null&&n!==void 0?n:[],i=dn(a,3),o=i[1],c=i[2];return new t(parseFloat(o),c??"")}}]),t}();function al(t){if(t.includes(mt))return mt;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=oo.exec(e))!==null&&r!==void 0?r:[],a=dn(n,4),i=a[1],o=a[2],c=a[3],l=qr.parse(i??""),u=qr.parse(c??""),s=o==="*"?l.multiply(u):l.divide(u);if(s.isNaN())return mt;e=e.replace(oo,s.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var f,d=(f=co.exec(e))!==null&&f!==void 0?f:[],p=dn(d,4),m=p[1],y=p[2],g=p[3],O=qr.parse(m??""),b=qr.parse(g??""),x=y==="+"?O.add(b):O.subtract(b);if(x.isNaN())return mt;e=e.replace(co,x.toString())}return e}var lo=/\(([^()]*)\)/;function od(t){for(var e=t;e.includes("(");){var r=lo.exec(e),n=dn(r,2),a=n[1];e=e.replace(lo,al(a))}return e}function cd(t){var e=t.replace(/\s+/g,"");return e=od(e),e=al(e),e}function ld(t){try{return cd(t)}catch{return mt}}function aa(t){var e=ld(t.slice(5,-1));return e===mt?"":e}var ud=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],sd=["dx","dy","angle","className","breakAll"];function Ta(){return Ta=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ta.apply(this,arguments)}function uo(t,e){if(t==null)return{};var r=fd(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function fd(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function so(t,e){return hd(t)||vd(t,e)||pd(t,e)||dd()}function dd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pd(t,e){if(t){if(typeof t=="string")return fo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fo(t,e)}}function fo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vd(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function hd(t){if(Array.isArray(t))return t}var il=/[ \f\n\r\t\v\u2028\u2029]+/,ol=function(e){var r=e.children,n=e.breakAll,a=e.style;try{var i=[];z(r)||(n?i=r.toString().split(""):i=r.toString().split(il));var o=i.map(function(l){return{word:l,width:rr(l,a).width}}),c=n?0:rr(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:c}}catch{return null}},yd=function(e,r,n,a,i){var o=e.maxLines,c=e.children,l=e.style,u=e.breakAll,s=M(o),f=c,d=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(_,N){var L=N.word,V=N.width,G=_[_.length-1];if(G&&(a==null||i||G.width+V+n<Number(a)))G.words.push(L),G.width+=V+n;else{var U={words:[L],width:V};_.push(U)}return _},[])},p=d(r),m=function(D){return D.reduce(function(_,N){return _.width>N.width?_:N})};if(!s)return p;for(var y="…",g=function(D){var _=f.slice(0,D),N=ol({breakAll:u,style:l,children:_+y}).wordsWithComputedWidth,L=d(N),V=L.length>o||m(L).width>Number(a);return[V,L]},O=0,b=f.length-1,x=0,v;O<=b&&x<=f.length-1;){var h=Math.floor((O+b)/2),w=h-1,P=g(w),S=so(P,2),E=S[0],j=S[1],C=g(h),$=so(C,1),k=$[0];if(!E&&!k&&(O=h+1),E&&k&&(b=h-1),!E&&k){v=j;break}x++}return v||p},po=function(e){var r=z(e)?[]:e.toString().split(il);return[{words:r}]},md=function(e){var r=e.width,n=e.scaleToFit,a=e.children,i=e.style,o=e.breakAll,c=e.maxLines;if((r||n)&&!Me.isSsr){var l,u,s=ol({breakAll:o,children:a,style:i});if(s){var f=s.wordsWithComputedWidth,d=s.spaceWidth;l=f,u=d}else return po(a);return yd({breakAll:o,children:a,maxLines:c,style:i},l,u,r,n)}return po(a)},vo="#808080",it=function(e){var r=e.x,n=r===void 0?0:r,a=e.y,i=a===void 0?0:a,o=e.lineHeight,c=o===void 0?"1em":o,l=e.capHeight,u=l===void 0?"0.71em":l,s=e.scaleToFit,f=s===void 0?!1:s,d=e.textAnchor,p=d===void 0?"start":d,m=e.verticalAnchor,y=m===void 0?"end":m,g=e.fill,O=g===void 0?vo:g,b=uo(e,ud),x=B.useMemo(function(){return md({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),v=b.dx,h=b.dy,w=b.angle,P=b.className,S=b.breakAll,E=uo(b,sd);if(!ne(n)||!ne(i))return null;var j=n+(M(v)?v:0),C=i+(M(h)?h:0),$;switch(y){case"start":$=aa("calc(".concat(u,")"));break;case"middle":$=aa("calc(".concat((x.length-1)/2," * -").concat(c," + (").concat(u," / 2))"));break;default:$=aa("calc(".concat(x.length-1," * -").concat(c,")"));break}var k=[];if(f){var T=x[0].width,D=b.width;k.push("scale(".concat((M(D)?D/T:1)/T,")"))}return w&&k.push("rotate(".concat(w,", ").concat(j,", ").concat(C,")")),k.length&&(E.transform=k.join(" ")),A.createElement("text",Ta({},R(E,!0),{x:j,y:C,className:X("recharts-text",P),textAnchor:p,fill:O.includes("url")?vo:O}),x.map(function(_,N){var L=_.words.join(S?"":" ");return A.createElement("tspan",{x:j,dy:N===0?$:c,key:L},L)}))};function gd(t){return Ad(t)||Od(t)||xd(t)||bd()}function bd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xd(t,e){if(t){if(typeof t=="string")return ka(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ka(t,e)}}function Od(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Ad(t){if(Array.isArray(t))return ka(t)}function ka(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var wd=function(e){return e},cl={},ll=function(e){return e===cl},ho=function(e){return function r(){return arguments.length===0||arguments.length===1&&ll(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},Pd=function t(e,r){return e===1?r:ho(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(c){return c!==cl}).length;return o>=e?r.apply(void 0,a):t(e-o,ho(function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var s=a.map(function(f){return ll(f)?l.shift():f});return r.apply(void 0,gd(s).concat(l))}))})},Rn=function(e){return Pd(e.length,e)},Ia=function(e,r){for(var n=[],a=e;a<r;++a)n[a-e]=a;return n},Sd=Rn(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),jd=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return wd;var a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(c,l){return l(c)},i.apply(void 0,arguments))}},_a=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},ul=function(e){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(c,l){return c===r[l]})||(r=i,n=e.apply(void 0,i)),n}};function Ed(t){var e;return t===0?e=1:e=Math.floor(new Z(t).abs().log(10).toNumber())+1,e}function $d(t,e,r){for(var n=new Z(t),a=0,i=[];n.lt(e)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var Td=Rn(function(t,e,r){var n=+t,a=+e;return n+r*(a-n)}),kd=Rn(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),Id=Rn(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const zn={rangeStep:$d,getDigitCount:Ed,interpolateNumber:Td,uninterpolateNumber:kd,uninterpolateTruncation:Id};function Ca(t){return Dd(t)||Cd(t)||sl(t)||_d()}function _d(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cd(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Dd(t){if(Array.isArray(t))return Da(t)}function gr(t,e){return Nd(t)||Bd(t,e)||sl(t,e)||Md()}function Md(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sl(t,e){if(t){if(typeof t=="string")return Da(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Da(t,e)}}function Da(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bd(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=t[Symbol.iterator](),c;!(n=(c=o.next()).done)&&(r.push(c.value),!(e&&r.length===e));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function Nd(t){if(Array.isArray(t))return t}function fl(t){var e=gr(t,2),r=e[0],n=e[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function dl(t,e,r){if(t.lte(0))return new Z(0);var n=zn.getDigitCount(t.toNumber()),a=new Z(10).pow(n),i=t.div(a),o=n!==1?.05:.1,c=new Z(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=c.mul(a);return e?l:new Z(Math.ceil(l))}function Ld(t,e,r){var n=1,a=new Z(t);if(!a.isint()&&r){var i=Math.abs(t);i<1?(n=new Z(10).pow(zn.getDigitCount(t)-1),a=new Z(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Z(Math.floor(t)))}else t===0?a=new Z(Math.floor((e-1)/2)):r||(a=new Z(Math.floor(t)));var o=Math.floor((e-1)/2),c=jd(Sd(function(l){return a.add(new Z(l-o).mul(n)).toNumber()}),Ia);return c(0,e)}function pl(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Z(0),tickMin:new Z(0),tickMax:new Z(0)};var i=dl(new Z(e).sub(t).div(r-1),n,a),o;t<=0&&e>=0?o=new Z(0):(o=new Z(t).add(e).div(2),o=o.sub(new Z(o).mod(i)));var c=Math.ceil(o.sub(t).div(i).toNumber()),l=Math.ceil(new Z(e).sub(o).div(i).toNumber()),u=c+l+1;return u>r?pl(t,e,r,n,a+1):(u<r&&(l=e>0?l+(r-u):l,c=e>0?c:c+(r-u)),{step:i,tickMin:o.sub(new Z(c).mul(i)),tickMax:o.add(new Z(l).mul(i))})}function Rd(t){var e=gr(t,2),r=e[0],n=e[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),c=fl([r,n]),l=gr(c,2),u=l[0],s=l[1];if(u===-1/0||s===1/0){var f=s===1/0?[u].concat(Ca(Ia(0,a-1).map(function(){return 1/0}))):[].concat(Ca(Ia(0,a-1).map(function(){return-1/0})),[s]);return r>n?_a(f):f}if(u===s)return Ld(u,a,i);var d=pl(u,s,o,i),p=d.step,m=d.tickMin,y=d.tickMax,g=zn.rangeStep(m,y.add(new Z(.1).mul(p)),p);return r>n?_a(g):g}function zd(t,e){var r=gr(t,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=fl([n,a]),c=gr(o,2),l=c[0],u=c[1];if(l===-1/0||u===1/0)return[n,a];if(l===u)return[l];var s=Math.max(e,2),f=dl(new Z(u).sub(l).div(s-1),i,0),d=[].concat(Ca(zn.rangeStep(new Z(l),new Z(u).sub(new Z(.99).mul(f)),f)),[u]);return n>a?_a(d):d}var Wd=ul(Rd),Kd=ul(zd),Fd=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function pn(){return pn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pn.apply(this,arguments)}function Vd(t,e){return Ud(t)||Hd(t,e)||Gd(t,e)||Xd()}function Xd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gd(t,e){if(t){if(typeof t=="string")return yo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yo(t,e)}}function yo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Hd(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function Ud(t){if(Array.isArray(t))return t}function Yd(t,e){if(t==null)return{};var r=qd(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function qd(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Kt(t){var e=t.offset,r=t.layout,n=t.width,a=t.dataKey,i=t.data,o=t.dataPointFormatter,c=t.xAxis,l=t.yAxis,u=Yd(t,Fd),s=R(u,!1);t.direction==="x"&&c.type!=="number"&&at(!1);var f=i.map(function(d){var p=o(d,a),m=p.x,y=p.y,g=p.value,O=p.errorVal;if(!O)return null;var b=[],x,v;if(Array.isArray(O)){var h=Vd(O,2);x=h[0],v=h[1]}else x=v=O;if(r==="vertical"){var w=c.scale,P=y+e,S=P+n,E=P-n,j=w(g-x),C=w(g+v);b.push({x1:C,y1:S,x2:C,y2:E}),b.push({x1:j,y1:P,x2:C,y2:P}),b.push({x1:j,y1:S,x2:j,y2:E})}else if(r==="horizontal"){var $=l.scale,k=m+e,T=k-n,D=k+n,_=$(g-x),N=$(g+v);b.push({x1:T,y1:N,x2:D,y2:N}),b.push({x1:k,y1:_,x2:k,y2:N}),b.push({x1:T,y1:_,x2:D,y2:_})}return A.createElement(H,pn({className:"recharts-errorBar",key:"bar-".concat(b.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},s),b.map(function(L){return A.createElement("line",pn({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return A.createElement(H,{className:"recharts-errorBars"},f)}Kt.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Kt.displayName="ErrorBar";function br(t){"@babel/helpers - typeof";return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},br(t)}function mo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ia(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?mo(Object(r),!0).forEach(function(n){Zd(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Zd(t,e,r){return e=Jd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jd(t){var e=Qd(t,"string");return br(e)=="symbol"?e:String(e)}function Qd(t,e){if(br(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vl=function(e){var r=e.children,n=e.formattedGraphicalItems,a=e.legendWidth,i=e.legendContent,o=he(r,dr);if(!o)return null;var c;return o.props&&o.props.payload?c=o.props&&o.props.payload:i==="children"?c=(n||[]).reduce(function(l,u){var s=u.item,f=u.props,d=f.sectors||f.data||[];return l.concat(d.map(function(p){return{type:o.props.iconType||s.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(l){var u=l.item,s=u.props,f=s.dataKey,d=s.name,p=s.legendType,m=s.hide;return{inactive:m,dataKey:f,type:o.props.iconType||p||"square",color:yi(u),value:d||f,payload:u.props}}),ia(ia(ia({},o.props),dr.getWithHeight(o,a)),{},{payload:c,item:o})};function xr(t){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(t)}function go(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function xe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?go(Object(r),!0).forEach(function(n){At(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):go(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function At(t,e,r){return e=ep(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ep(t){var e=tp(t,"string");return xr(e)=="symbol"?e:String(e)}function tp(t,e){if(xr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bo(t){return ip(t)||ap(t)||np(t)||rp()}function rp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function np(t,e){if(t){if(typeof t=="string")return Ma(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ma(t,e)}}function ap(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ip(t){if(Array.isArray(t))return Ma(t)}function Ma(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Q(t,e,r){return z(t)||z(e)?r:ne(e)?ye(t,e,r):W(e)?e(t):r}function nr(t,e,r,n){var a=Iu(t,function(c){return Q(c,e)});if(r==="number"){var i=a.filter(function(c){return M(c)||parseFloat(c)});return i.length?[Mn(i),Re(i)]:[1/0,-1/0]}var o=n?a.filter(function(c){return!z(c)}):a;return o.map(function(c){return ne(c)||c instanceof Date?c:""})}var op=function(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,c=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(c<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,u=0;u<c;u++){var s=u>0?a[u-1].coordinate:a[c-1].coordinate,f=a[u].coordinate,d=u>=c-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(se(f-s)!==se(d-f)){var m=[];if(se(d-f)===se(l[1]-l[0])){p=d;var y=f+l[1]-l[0];m[0]=Math.min(y,(y+s)/2),m[1]=Math.max(y,(y+s)/2)}else{p=s;var g=d+l[1]-l[0];m[0]=Math.min(f,(g+f)/2),m[1]=Math.max(f,(g+f)/2)}var O=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(e>O[0]&&e<=O[1]||e>=m[0]&&e<=m[1]){o=a[u].index;break}}else{var b=Math.min(s,d),x=Math.max(s,d);if(e>(b+f)/2&&e<=(x+f)/2){o=a[u].index;break}}}else for(var v=0;v<c;v++)if(v===0&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v>0&&v<c-1&&e>(n[v].coordinate+n[v-1].coordinate)/2&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v===c-1&&e>(n[v].coordinate+n[v-1].coordinate)/2){o=n[v].index;break}return o},yi=function(e){var r=e,n=r.type.displayName,a=e.props,i=a.stroke,o=a.fill,c;switch(n){case"Line":c=i;break;case"Area":case"Radar":c=i&&i!=="none"?i:o;break;default:c=o;break}return c},cp=function(e){var r=e.barSize,n=e.totalSize,a=e.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},c=Object.keys(i),l=0,u=c.length;l<u;l++)for(var s=i[c[l]].stackGroups,f=Object.keys(s),d=0,p=f.length;d<p;d++){var m=s[f[d]],y=m.items,g=m.cateAxisId,O=y.filter(function(h){return Ce(h.type).indexOf("Bar")>=0});if(O&&O.length){var b=O[0].props.barSize,x=O[0].props[g];o[x]||(o[x]=[]);var v=z(b)?r:b;o[x].push({item:O[0],stackList:O.slice(1),barSize:z(v)?void 0:fe(v,n,0)})}}return o},lp=function(e){var r=e.barGap,n=e.barCategoryGap,a=e.bandSize,i=e.sizeList,o=i===void 0?[]:i,c=e.maxBarSize,l=o.length;if(l<1)return null;var u=fe(r,a,0,!0),s,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=a/l,m=o.reduce(function(v,h){return v+h.barSize||0},0);m+=(l-1)*u,m>=a&&(m-=(l-1)*u,u=0),m>=a&&p>0&&(d=!0,p*=.9,m=l*p);var y=(a-m)/2>>0,g={offset:y-u,size:0};s=o.reduce(function(v,h){var w={item:h.item,position:{offset:g.offset+g.size+u,size:d?p:h.barSize}},P=[].concat(bo(v),[w]);return g=P[P.length-1].position,h.stackList&&h.stackList.length&&h.stackList.forEach(function(S){P.push({item:S,position:g})}),P},f)}else{var O=fe(n,a,0,!0);a-2*O-(l-1)*u<=0&&(u=0);var b=(a-2*O-(l-1)*u)/l;b>1&&(b>>=0);var x=c===+c?Math.min(b,c):b;s=o.reduce(function(v,h,w){var P=[].concat(bo(v),[{item:h.item,position:{offset:O+(b+u)*w+(b-x)/2,size:x}}]);return h.stackList&&h.stackList.length&&h.stackList.forEach(function(S){P.push({item:S,position:P[P.length-1].position})}),P},f)}return s},up=function(e,r,n,a){var i=n.children,o=n.width,c=n.margin,l=o-(c.left||0)-(c.right||0),u=vl({children:i,legendWidth:l});if(u){var s=a||{},f=s.width,d=s.height,p=u.align,m=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&p!=="center"&&M(e[p]))return xe(xe({},e),{},At({},p,e[p]+(f||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&m!=="middle"&&M(e[m]))return xe(xe({},e),{},At({},m,e[m]+(d||0)))}return e},sp=function(e,r,n){return z(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},hl=function(e,r,n,a,i){var o=r.props.children,c=de(o,Kt).filter(function(u){return sp(a,i,u.props.direction)});if(c&&c.length){var l=c.map(function(u){return u.props.dataKey});return e.reduce(function(u,s){var f=Q(s,n);if(z(f))return u;var d=Array.isArray(f)?[Mn(f),Re(f)]:[f,f],p=l.reduce(function(m,y){var g=Q(s,y,0),O=d[0]-Math.abs(Array.isArray(g)?g[0]:g),b=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(O,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},fp=function(e,r,n,a,i){var o=r.map(function(c){return hl(e,c,n,i,a)}).filter(function(c){return!z(c)});return o&&o.length?o.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]):null},yl=function(e,r,n,a,i){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&hl(e,l,u,a)||nr(e,u,n,i)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var c={};return o.reduce(function(l,u){for(var s=0,f=u.length;s<f;s++)c[u[s]]||(c[u[s]]=!0,l.push(u[s]));return l},[])},ml=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},gl=function(e,r,n,a){if(a)return e.map(function(l){return l.coordinate});var i,o,c=e.map(function(l){return l.coordinate===r&&(i=!0),l.coordinate===n&&(o=!0),l.coordinate});return i||c.push(r),o||c.push(n),c},_e=function(e,r,n){if(!e)return null;var a=e.scale,i=e.duplicateDomain,o=e.type,c=e.range,l=e.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/l:0;if(u=e.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?se(c[0]-c[1])*2*u:u,r&&(e.ticks||e.niceTicks)){var s=(e.ticks||e.niceTicks).map(function(f){var d=i?i.indexOf(f):f;return{coordinate:a(d)+u,value:f,offset:u}});return s.filter(function(f){return!zt(f.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(f,d){return{coordinate:a(f)+u,value:f,index:d,offset:u}}):a.ticks&&!n?a.ticks(e.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,d){return{coordinate:a(f)+u,value:i?i[f]:f,index:d,offset:u}})},oa=new WeakMap,Zr=function(e,r){if(typeof r!="function")return e;oa.has(e)||oa.set(e,new WeakMap);var n=oa.get(e);if(n.has(r))return n.get(r);var a=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},bl=function(e,r,n){var a=e.scale,i=e.type,o=e.layout,c=e.axisType;if(a==="auto")return o==="radial"&&c==="radiusAxis"?{scale:ki(),realScaleType:"band"}:o==="radial"&&c==="angleAxis"?{scale:Ii(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:rn(),realScaleType:"point"}:i==="category"?{scale:ki(),realScaleType:"band"}:{scale:Ii(),realScaleType:"linear"};if(Wr(a)){var l="scale".concat(Dn(a));return{scale:(_i[l]||rn)(),realScaleType:_i[l]?l:"point"}}return W(a)?{scale:a}:{scale:rn(),realScaleType:"point"}},xo=1e-4,xl=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,a=e.range(),i=Math.min(a[0],a[1])-xo,o=Math.max(a[0],a[1])+xo,c=e(r[0]),l=e(r[n-1]);(c<i||c>o||l<i||l>o)&&e.domain([r[0],r[n-1]])}},dp=function(e,r){if(!e)return null;for(var n=0,a=e.length;n<a;n++)if(e[n].item===r)return e[n].position;return null},pp=function(e,r){if(!r||r.length!==2||!M(r[0])||!M(r[1]))return e;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[e[0],e[1]];return(!M(e[0])||e[0]<n)&&(i[0]=n),(!M(e[1])||e[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},vp=function(e){var r=e.length;if(!(r<=0))for(var n=0,a=e[0].length;n<a;++n)for(var i=0,o=0,c=0;c<r;++c){var l=zt(e[c][n][1])?e[c][n][0]:e[c][n][1];l>=0?(e[c][n][0]=i,e[c][n][1]=i+l,i=e[c][n][1]):(e[c][n][0]=o,e[c][n][1]=o+l,o=e[c][n][1])}},hp=function(e){var r=e.length;if(!(r<=0))for(var n=0,a=e[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var c=zt(e[o][n][1])?e[o][n][0]:e[o][n][1];c>=0?(e[o][n][0]=i,e[o][n][1]=i+c,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},yp={sign:vp,expand:ku,none:Tu,silhouette:$u,wiggle:Eu,positive:hp},mp=function(e,r,n){var a=r.map(function(c){return c.props.dataKey}),i=yp[n],o=Su().keys(a).value(function(c,l){return+Q(c,l,0)}).order(ju).offset(i);return o(e)},gp=function(e,r,n,a,i,o){if(!e)return null;var c=o?r.reverse():r,l={},u=c.reduce(function(f,d){var p=d.props,m=p.stackId,y=p.hide;if(y)return f;var g=d.props[n],O=f[g]||{hasStack:!1,stackGroups:{}};if(ne(m)){var b=O.stackGroups[m]||{numericAxisId:n,cateAxisId:a,items:[]};b.items.push(d),O.hasStack=!0,O.stackGroups[m]=b}else O.stackGroups[Xe("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return xe(xe({},f),{},At({},g,O))},l),s={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,g){var O=p.stackGroups[g];return xe(xe({},y),{},At({},g,{numericAxisId:n,cateAxisId:a,items:O.items,stackedData:mp(e,O.items,i)}))},m)}return xe(xe({},f),{},At({},d,p))},s)},Ol=function(e,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,c=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=e.domain();if(!u.length)return null;var s=Wd(u,i,c);return e.domain([Mn(s),Re(s)]),{niceTicks:s}}if(i&&a==="number"){var f=e.domain(),d=Kd(f,i,c);return{niceTicks:d}}return null};function Et(t){var e=t.axis,r=t.ticks,n=t.bandSize,a=t.entry,i=t.index,o=t.dataKey;if(e.type==="category"){if(!e.allowDuplicatedCategory&&e.dataKey&&!z(a[e.dataKey])){var c=on(r,"value",a[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=Q(a,z(o)?e.dataKey:o);return z(l)?null:e.scale(l)}var Oo=function(e){var r=e.axis,n=e.ticks,a=e.offset,i=e.bandSize,o=e.entry,c=e.index;if(r.type==="category")return n[c]?n[c].coordinate+a:null;var l=Q(o,r.dataKey,r.domain[c]);return z(l)?null:r.scale(l)-i/2+a},bp=function(e){var r=e.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},xp=function(e,r){var n=e.props.stackId;if(ne(n)){var a=r[n];if(a){var i=a.items.indexOf(e);return i>=0?a.stackedData[i]:null}}return null},Op=function(e){return e.reduce(function(r,n){return[Mn(n.concat([r[0]]).filter(M)),Re(n.concat([r[1]]).filter(M))]},[1/0,-1/0])},Al=function(e,r,n){return Object.keys(e).reduce(function(a,i){var o=e[i],c=o.stackedData,l=c.reduce(function(u,s){var f=Op(s.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Ao=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,wo=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ba=function(e,r,n){if(W(e))return e(r,n);if(!Array.isArray(e))return r;var a=[];if(M(e[0]))a[0]=n?e[0]:Math.min(e[0],r[0]);else if(Ao.test(e[0])){var i=+Ao.exec(e[0])[1];a[0]=r[0]-i}else W(e[0])?a[0]=e[0](r[0]):a[0]=r[0];if(M(e[1]))a[1]=n?e[1]:Math.max(e[1],r[1]);else if(wo.test(e[1])){var o=+wo.exec(e[1])[1];a[1]=r[1]+o}else W(e[1])?a[1]=e[1](r[1]):a[1]=r[1];return a},vn=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!n||a>0)return a}if(e&&r&&r.length>=2){for(var i=fi(r,function(f){return f.coordinate}),o=1/0,c=1,l=i.length;c<l;c++){var u=i[c],s=i[c-1];o=Math.min((u.coordinate||0)-(s.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Po=function(e,r,n){return!e||!e.length||Fe(e,ye(n,"type.defaultProps.domain"))?r:e},wl=function(e,r){var n=e.props,a=n.dataKey,i=n.name,o=n.unit,c=n.formatter,l=n.tooltipType,u=n.chartType,s=n.hide;return xe(xe({},R(e,!1)),{},{dataKey:a,unit:o,formatter:c,name:i||a,color:yi(e),value:Q(r,a),type:l,payload:r,chartType:u,hide:s})};function Or(t){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(t)}function So(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?So(Object(r),!0).forEach(function(n){Pl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):So(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pl(t,e,r){return e=Ap(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ap(t){var e=wp(t,"string");return Or(e)=="symbol"?e:String(e)}function wp(t,e){if(Or(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pp(t,e){return $p(t)||Ep(t,e)||jp(t,e)||Sp()}function Sp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jp(t,e){if(t){if(typeof t=="string")return jo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jo(t,e)}}function jo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ep(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function $p(t){if(Array.isArray(t))return t}var hn=Math.PI/180,Tp=function(e){return e*180/Math.PI},J=function(e,r,n,a){return{x:e+Math.cos(-hn*a)*n,y:r+Math.sin(-hn*a)*n}},Sl=function(e,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(e-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},kp=function(e,r,n,a,i){var o=e.width,c=e.height,l=e.startAngle,u=e.endAngle,s=fe(e.cx,o,o/2),f=fe(e.cy,c,c/2),d=Sl(o,c,n),p=fe(e.innerRadius,d,0),m=fe(e.outerRadius,d,d*.8),y=Object.keys(r);return y.reduce(function(g,O){var b=r[O],x=b.domain,v=b.reversed,h;if(z(b.range))a==="angleAxis"?h=[l,u]:a==="radiusAxis"&&(h=[p,m]),v&&(h=[h[1],h[0]]);else{h=b.range;var w=h,P=Pp(w,2);l=P[0],u=P[1]}var S=bl(b,i),E=S.realScaleType,j=S.scale;j.domain(x).range(h),xl(j);var C=Ol(j,Ie(Ie({},b),{},{realScaleType:E})),$=Ie(Ie(Ie({},b),C),{},{range:h,radius:m,realScaleType:E,scale:j,cx:s,cy:f,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return Ie(Ie({},g),{},Pl({},O,$))},{})},Ip=function(e,r){var n=e.x,a=e.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},_p=function(e,r){var n=e.x,a=e.y,i=r.cx,o=r.cy,c=Ip({x:n,y:a},{x:i,y:o});if(c<=0)return{radius:c};var l=(n-i)/c,u=Math.acos(l);return a>o&&(u=2*Math.PI-u),{radius:c,angle:Tp(u),angleInRadian:u}},Cp=function(e){var r=e.startAngle,n=e.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},Dp=function(e,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),c=Math.min(i,o);return e+c*360},Eo=function(e,r){var n=e.x,a=e.y,i=_p({x:n,y:a},r),o=i.radius,c=i.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var s=Cp(r),f=s.startAngle,d=s.endAngle,p=c,m;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}return m?Ie(Ie({},r),{},{radius:o,angle:Dp(p,r)}):null},jl=function(e){return!B.isValidElement(e)&&!W(e)&&typeof e!="boolean"?e.className:""};function Ar(t){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(t)}var Mp=["offset"];function Bp(t){return zp(t)||Rp(t)||Lp(t)||Np()}function Np(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lp(t,e){if(t){if(typeof t=="string")return Na(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Na(t,e)}}function Rp(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function zp(t){if(Array.isArray(t))return Na(t)}function Na(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Wp(t,e){if(t==null)return{};var r=Kp(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Kp(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function $o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$o(Object(r),!0).forEach(function(n){Fp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fp(t,e,r){return e=Vp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vp(t){var e=Xp(t,"string");return Ar(e)=="symbol"?e:String(e)}function Xp(t,e){if(Ar(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wr(){return wr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wr.apply(this,arguments)}var Gp=function(e){var r=e.value,n=e.formatter,a=z(e.children)?r:e.children;return W(n)?n(a):a},Hp=function(e,r){var n=se(r-e),a=Math.min(Math.abs(r-e),360);return n*a},Up=function(e,r,n){var a=e.position,i=e.viewBox,o=e.offset,c=e.className,l=i,u=l.cx,s=l.cy,f=l.innerRadius,d=l.outerRadius,p=l.startAngle,m=l.endAngle,y=l.clockWise,g=(f+d)/2,O=Hp(p,m),b=O>=0?1:-1,x,v;a==="insideStart"?(x=p+b*o,v=y):a==="insideEnd"?(x=m-b*o,v=!y):a==="end"&&(x=m+b*o,v=y),v=O<=0?v:!v;var h=J(u,s,g,x),w=J(u,s,g,x+(v?1:-1)*359),P="M".concat(h.x,",").concat(h.y,`
20
- A`).concat(g,",").concat(g,",0,1,").concat(v?0:1,`,
21
- `).concat(w.x,",").concat(w.y),S=z(e.id)?Xe("recharts-radial-line-"):e.id;return A.createElement("text",wr({},n,{dominantBaseline:"central",className:X("recharts-radial-bar-label",c)}),A.createElement("defs",null,A.createElement("path",{id:S,d:P})),A.createElement("textPath",{xlinkHref:"#".concat(S)},r))},Yp=function(e){var r=e.viewBox,n=e.offset,a=e.position,i=r,o=i.cx,c=i.cy,l=i.innerRadius,u=i.outerRadius,s=i.startAngle,f=i.endAngle,d=(s+f)/2;if(a==="outside"){var p=J(o,c,u+n,d),m=p.x,y=p.y;return{x:m,y,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:c,textAnchor:"middle",verticalAnchor:"end"};var g=(l+u)/2,O=J(o,c,g,d),b=O.x,x=O.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},qp=function(e){var r=e.viewBox,n=e.parentViewBox,a=e.offset,i=e.position,o=r,c=o.x,l=o.y,u=o.width,s=o.height,f=s>=0?1:-1,d=f*a,p=f>0?"end":"start",m=f>0?"start":"end",y=u>=0?1:-1,g=y*a,O=y>0?"end":"start",b=y>0?"start":"end";if(i==="top"){var x={x:c+u/2,y:l-f*a,textAnchor:"middle",verticalAnchor:p};return re(re({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(i==="bottom"){var v={x:c+u/2,y:l+s+d,textAnchor:"middle",verticalAnchor:m};return re(re({},v),n?{height:Math.max(n.y+n.height-(l+s),0),width:u}:{})}if(i==="left"){var h={x:c-g,y:l+s/2,textAnchor:O,verticalAnchor:"middle"};return re(re({},h),n?{width:Math.max(h.x-n.x,0),height:s}:{})}if(i==="right"){var w={x:c+u+g,y:l+s/2,textAnchor:b,verticalAnchor:"middle"};return re(re({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:s}:{})}var P=n?{width:u,height:s}:{};return i==="insideLeft"?re({x:c+g,y:l+s/2,textAnchor:b,verticalAnchor:"middle"},P):i==="insideRight"?re({x:c+u-g,y:l+s/2,textAnchor:O,verticalAnchor:"middle"},P):i==="insideTop"?re({x:c+u/2,y:l+d,textAnchor:"middle",verticalAnchor:m},P):i==="insideBottom"?re({x:c+u/2,y:l+s-d,textAnchor:"middle",verticalAnchor:p},P):i==="insideTopLeft"?re({x:c+g,y:l+d,textAnchor:b,verticalAnchor:m},P):i==="insideTopRight"?re({x:c+u-g,y:l+d,textAnchor:O,verticalAnchor:m},P):i==="insideBottomLeft"?re({x:c+g,y:l+s-d,textAnchor:b,verticalAnchor:p},P):i==="insideBottomRight"?re({x:c+u-g,y:l+s-d,textAnchor:O,verticalAnchor:p},P):Wt(i)&&(M(i.x)||tt(i.x))&&(M(i.y)||tt(i.y))?re({x:c+fe(i.x,u),y:l+fe(i.y,s),textAnchor:"end",verticalAnchor:"end"},P):re({x:c+u/2,y:l+s/2,textAnchor:"middle",verticalAnchor:"middle"},P)},Zp=function(e){return"cx"in e&&M(e.cx)};function ie(t){var e=t.offset,r=e===void 0?5:e,n=Wp(t,Mp),a=re({offset:r},n),i=a.viewBox,o=a.position,c=a.value,l=a.children,u=a.content,s=a.className,f=s===void 0?"":s,d=a.textBreakAll;if(!i||z(c)&&z(l)&&!B.isValidElement(u)&&!W(u))return null;if(B.isValidElement(u))return B.cloneElement(u,a);var p;if(W(u)){if(p=B.createElement(u,a),B.isValidElement(p))return p}else p=Gp(a);var m=Zp(i),y=R(a,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Up(a,p,y);var g=m?Yp(a):qp(a);return A.createElement(it,wr({className:X("recharts-label",f)},y,g,{breakAll:d}),p)}ie.displayName="Label";var El=function(e){var r=e.cx,n=e.cy,a=e.angle,i=e.startAngle,o=e.endAngle,c=e.r,l=e.radius,u=e.innerRadius,s=e.outerRadius,f=e.x,d=e.y,p=e.top,m=e.left,y=e.width,g=e.height,O=e.clockWise,b=e.labelViewBox;if(b)return b;if(M(y)&&M(g)){if(M(f)&&M(d))return{x:f,y:d,width:y,height:g};if(M(p)&&M(m))return{x:p,y:m,width:y,height:g}}return M(f)&&M(d)?{x:f,y:d,width:0,height:0}:M(r)&&M(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:s||l||c||0,clockWise:O}:e.viewBox?e.viewBox:{}},Jp=function(e,r){return e?e===!0?A.createElement(ie,{key:"label-implicit",viewBox:r}):ne(e)?A.createElement(ie,{key:"label-implicit",viewBox:r,value:e}):B.isValidElement(e)?e.type===ie?B.cloneElement(e,{key:"label-implicit",viewBox:r}):A.createElement(ie,{key:"label-implicit",content:e,viewBox:r}):W(e)?A.createElement(ie,{key:"label-implicit",content:e,viewBox:r}):Wt(e)?A.createElement(ie,wr({viewBox:r},e,{key:"label-implicit"})):null:null},Qp=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var a=e.children,i=El(e),o=de(a,ie).map(function(l,u){return B.cloneElement(l,{viewBox:r||i,key:"label-".concat(u)})});if(!n)return o;var c=Jp(e.label,r||i);return[c].concat(Bp(o))};ie.parseViewBox=El;ie.renderCallByParent=Qp;function Pr(t){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pr(t)}var ev=["valueAccessor"],tv=["data","dataKey","clockWise","id","textBreakAll"];function rv(t){return ov(t)||iv(t)||av(t)||nv()}function nv(){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 av(t,e){if(t){if(typeof t=="string")return La(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return La(t,e)}}function iv(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ov(t){if(Array.isArray(t))return La(t)}function La(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yn(){return yn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yn.apply(this,arguments)}function To(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ko(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?To(Object(r),!0).forEach(function(n){cv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function cv(t,e,r){return e=lv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lv(t){var e=uv(t,"string");return Pr(e)=="symbol"?e:String(e)}function uv(t,e){if(Pr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Io(t,e){if(t==null)return{};var r=sv(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function sv(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var fv=function(e){return Array.isArray(e.value)?_u(e.value):e.value};function je(t){var e=t.valueAccessor,r=e===void 0?fv:e,n=Io(t,ev),a=n.data,i=n.dataKey,o=n.clockWise,c=n.id,l=n.textBreakAll,u=Io(n,tv);return!a||!a.length?null:A.createElement(H,{className:"recharts-label-list"},a.map(function(s,f){var d=z(i)?r(s,f):Q(s&&s.payload,i),p=z(c)?{}:{id:"".concat(c,"-").concat(f)};return A.createElement(ie,yn({},R(s,!0),u,p,{parentViewBox:s.parentViewBox,value:d,textBreakAll:l,viewBox:ie.parseViewBox(z(o)?s:ko(ko({},s),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}je.displayName="LabelList";function dv(t,e){return t?t===!0?A.createElement(je,{key:"labelList-implicit",data:e}):A.isValidElement(t)||W(t)?A.createElement(je,{key:"labelList-implicit",data:e,content:t}):Wt(t)?A.createElement(je,yn({data:e},t,{key:"labelList-implicit"})):null:null}function pv(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,a=de(n,je).map(function(o,c){return B.cloneElement(o,{data:e,key:"labelList-".concat(c)})});if(!r)return a;var i=dv(t.label,e);return[i].concat(rv(a))}je.renderCallByParent=pv;function Sr(t){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(t)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ra.apply(this,arguments)}function _o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Co(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_o(Object(r),!0).forEach(function(n){vv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_o(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vv(t,e,r){return e=hv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hv(t){var e=yv(t,"string");return Sr(e)=="symbol"?e:String(e)}function yv(t,e){if(Sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mv=function(e,r){var n=se(r-e),a=Math.min(Math.abs(r-e),359.999);return n*a},Jr=function(e){var r=e.cx,n=e.cy,a=e.radius,i=e.angle,o=e.sign,c=e.isExternal,l=e.cornerRadius,u=e.cornerIsExternal,s=l*(c?1:-1)+a,f=Math.asin(l/s)/hn,d=u?i:i+o*f,p=J(r,n,s,d),m=J(r,n,a,d),y=u?i-o*f:i,g=J(r,n,s*Math.cos(f*hn),y);return{center:p,circleTangency:m,lineTangency:g,theta:f}},$l=function(e){var r=e.cx,n=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.startAngle,c=e.endAngle,l=mv(o,c),u=o+l,s=J(r,n,i,o),f=J(r,n,i,u),d="M ".concat(s.x,",").concat(s.y,`
23
- A `).concat(i,",").concat(i,`,0,
24
- `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
25
- `).concat(f.x,",").concat(f.y,`
26
- `);if(a>0){var p=J(r,n,a,o),m=J(r,n,a,u);d+="L ".concat(m.x,",").concat(m.y,`
27
- A `).concat(a,",").concat(a,`,0,
28
- `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
29
- `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},gv=function(e){var r=e.cx,n=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,c=e.forceCornerRadius,l=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,f=se(s-u),d=Jr({cx:r,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=d.circleTangency,m=d.lineTangency,y=d.theta,g=Jr({cx:r,cy:n,radius:i,angle:s,sign:-f,cornerRadius:o,cornerIsExternal:l}),O=g.circleTangency,b=g.lineTangency,x=g.theta,v=l?Math.abs(u-s):Math.abs(u-s)-y-x;if(v<0)return c?"M ".concat(m.x,",").concat(m.y,`
30
- a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
31
- a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
32
- `):$l({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:u,endAngle:s});var h="M ".concat(m.x,",").concat(m.y,`
33
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
34
- A`).concat(i,",").concat(i,",0,").concat(+(v>180),",").concat(+(f<0),",").concat(O.x,",").concat(O.y,`
35
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
36
- `);if(a>0){var w=Jr({cx:r,cy:n,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=w.circleTangency,S=w.lineTangency,E=w.theta,j=Jr({cx:r,cy:n,radius:a,angle:s,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),C=j.circleTangency,$=j.lineTangency,k=j.theta,T=l?Math.abs(u-s):Math.abs(u-s)-E-k;if(T<0&&o===0)return"".concat(h,"L").concat(r,",").concat(n,"Z");h+="L".concat($.x,",").concat($.y,`
37
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
38
- A`).concat(a,",").concat(a,",0,").concat(+(T>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,`
39
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(S.x,",").concat(S.y,"Z")}else h+="L".concat(r,",").concat(n,"Z");return h},bv={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Tl=function(e){var r=Co(Co({},bv),e),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,c=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,s=r.startAngle,f=r.endAngle,d=r.className;if(o<i||s===f)return null;var p=X("recharts-sector",d),m=o-i,y=fe(c,m,0,!0),g;return y>0&&Math.abs(s-f)<360?g=gv({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:s,endAngle:f}):g=$l({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:s,endAngle:f}),A.createElement("path",Ra({},R(r,!0),{className:p,d:g,role:"img"}))};function jr(t){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(t)}function za(){return za=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},za.apply(this,arguments)}function Do(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Mo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Do(Object(r),!0).forEach(function(n){xv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Do(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xv(t,e,r){return e=Ov(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ov(t){var e=Av(t,"string");return jr(e)=="symbol"?e:String(e)}function Av(t,e){if(jr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bo={curveBasisClosed:Xu,curveBasisOpen:Vu,curveBasis:Fu,curveBumpX:Ku,curveBumpY:Wu,curveLinearClosed:zu,curveLinear:Fc,curveMonotoneX:Ru,curveMonotoneY:Lu,curveNatural:Nu,curveStep:Bu,curveStepAfter:Mu,curveStepBefore:Du},Qr=function(e){return e.x===+e.x&&e.y===+e.y},qt=function(e){return e.x},Zt=function(e){return e.y},wv=function(e,r){if(W(e))return e;var n="curve".concat(Dn(e));return(n==="curveMonotone"||n==="curveBump")&&r?Bo["".concat(n).concat(r==="vertical"?"Y":"X")]:Bo[n]||Fc},Pv=function(e){var r=e.type,n=r===void 0?"linear":r,a=e.points,i=a===void 0?[]:a,o=e.baseLine,c=e.layout,l=e.connectNulls,u=l===void 0?!1:l,s=wv(n,c),f=u?i.filter(function(y){return Qr(y)}):i,d;if(Array.isArray(o)){var p=u?o.filter(function(y){return Qr(y)}):o,m=f.map(function(y,g){return Mo(Mo({},y),{},{base:p[g]})});return c==="vertical"?d=Hr().y(Zt).x1(qt).x0(function(y){return y.base.x}):d=Hr().x(qt).y1(Zt).y0(function(y){return y.base.y}),d.defined(Qr).curve(s),d(m)}return c==="vertical"&&M(o)?d=Hr().y(Zt).x1(qt).x0(o):M(o)?d=Hr().x(qt).y1(Zt).y0(o):d=Cu().x(qt).y(Zt),d.defined(Qr).curve(s),d(f)},Ke=function(e){var r=e.className,n=e.points,a=e.path,i=e.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?Pv(e):a;return A.createElement("path",za({},R(e,!1),cn(e),{className:X("recharts-curve",r),d:o,ref:i}))};function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}function mn(){return mn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mn.apply(this,arguments)}function Sv(t,e){return Tv(t)||$v(t,e)||Ev(t,e)||jv()}function jv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ev(t,e){if(t){if(typeof t=="string")return No(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return No(t,e)}}function No(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $v(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function Tv(t){if(Array.isArray(t))return t}function Lo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ro(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Lo(Object(r),!0).forEach(function(n){kv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function kv(t,e,r){return e=Iv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iv(t){var e=_v(t,"string");return Er(e)=="symbol"?e:String(e)}function _v(t,e){if(Er(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zo=function(e,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),c=a>=0?1:-1,l=n>=0?1:-1,u=a>=0&&n>=0||a<0&&n<0?1:0,s;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],d=0,p=4;d<p;d++)f[d]=i[d]>o?o:i[d];s="M".concat(e,",").concat(r+c*f[0]),f[0]>0&&(s+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(e+l*f[0],",").concat(r)),s+="L ".concat(e+n-l*f[1],",").concat(r),f[1]>0&&(s+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
41
- `).concat(e+n,",").concat(r+c*f[1])),s+="L ".concat(e+n,",").concat(r+a-c*f[2]),f[2]>0&&(s+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
42
- `).concat(e+n-l*f[2],",").concat(r+a)),s+="L ".concat(e+l*f[3],",").concat(r+a),f[3]>0&&(s+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
43
- `).concat(e,",").concat(r+a-c*f[3])),s+="Z"}else if(o>0&&i===+i&&i>0){var m=Math.min(o,i);s="M ".concat(e,",").concat(r+c*m,`
44
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(e+l*m,",").concat(r,`
45
- L `).concat(e+n-l*m,",").concat(r,`
46
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(e+n,",").concat(r+c*m,`
47
- L `).concat(e+n,",").concat(r+a-c*m,`
48
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(e+n-l*m,",").concat(r+a,`
49
- L `).concat(e+l*m,",").concat(r+a,`
50
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(e,",").concat(r+a-c*m," Z")}else s="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return s},Cv=function(e,r){if(!e||!r)return!1;var n=e.x,a=e.y,i=r.x,o=r.y,c=r.width,l=r.height;if(Math.abs(c)>0&&Math.abs(l)>0){var u=Math.min(i,i+c),s=Math.max(i,i+c),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=s&&a>=f&&a<=d}return!1},Dv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mi=function(e){var r=Ro(Ro({},Dv),e),n=B.useRef(),a=B.useState(-1),i=Sv(a,2),o=i[0],c=i[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var v=n.current.getTotalLength();v&&c(v)}catch{}},[]);var l=r.x,u=r.y,s=r.width,f=r.height,d=r.radius,p=r.className,m=r.animationEasing,y=r.animationDuration,g=r.animationBegin,O=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||s!==+s||f!==+f||s===0||f===0)return null;var x=X("recharts-rectangle",p);return b?A.createElement(De,{canBegin:o>0,from:{width:s,height:f,x:l,y:u},to:{width:s,height:f,x:l,y:u},duration:y,animationEasing:m,isActive:b},function(v){var h=v.width,w=v.height,P=v.x,S=v.y;return A.createElement(De,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:y,isActive:O,easing:m},A.createElement("path",mn({},R(r,!0),{className:x,d:zo(P,S,h,w,d),ref:n})))}):A.createElement("path",mn({},R(r,!0),{className:x,d:zo(l,u,s,f,d)}))},Mv=["points","className","baseLinePoints","connectNulls"];function gt(){return gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gt.apply(this,arguments)}function Bv(t,e){if(t==null)return{};var r=Nv(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Nv(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Wo(t){return Wv(t)||zv(t)||Rv(t)||Lv()}function Lv(){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 Rv(t,e){if(t){if(typeof t=="string")return Wa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wa(t,e)}}function zv(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wv(t){if(Array.isArray(t))return Wa(t)}function Wa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ko=function(e){return e&&e.x===+e.x&&e.y===+e.y},Kv=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return e.forEach(function(n){Ko(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Ko(e[0])&&r[r.length-1].push(e[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},ar=function(e,r){var n=Kv(e);r&&(n=[n.reduce(function(i,o){return[].concat(Wo(i),Wo(o))},[])]);var a=n.map(function(i){return i.reduce(function(o,c,l){return"".concat(o).concat(l===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return n.length===1?"".concat(a,"Z"):a},Fv=function(e,r,n){var a=ar(e,n);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(ar(r.reverse(),n).slice(1))},Vv=function(e){var r=e.points,n=e.className,a=e.baseLinePoints,i=e.connectNulls,o=Bv(e,Mv);if(!r||!r.length)return null;var c=X("recharts-polygon",n);if(a&&a.length){var l=o.stroke&&o.stroke!=="none",u=Fv(r,a,i);return A.createElement("g",{className:c},A.createElement("path",gt({},R(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?A.createElement("path",gt({},R(o,!0),{fill:"none",d:ar(r,i)})):null,l?A.createElement("path",gt({},R(o,!0),{fill:"none",d:ar(a,i)})):null)}var s=ar(r,i);return A.createElement("path",gt({},R(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",className:c,d:s}))};function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ka.apply(this,arguments)}var Kr=function(e){var r=e.cx,n=e.cy,a=e.r,i=e.className,o=X("recharts-dot",i);return r===+r&&n===+n&&a===+a?A.createElement("circle",Ka({},R(e,!1),cn(e),{className:o,cx:r,cy:n,r:a})):null};function $r(t){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$r(t)}var Xv=["x","y","top","left","width","height","className"];function Fa(){return Fa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fa.apply(this,arguments)}function Fo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Gv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fo(Object(r),!0).forEach(function(n){Hv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hv(t,e,r){return e=Uv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uv(t){var e=Yv(t,"string");return $r(e)=="symbol"?e:String(e)}function Yv(t,e){if($r(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qv(t,e){if(t==null)return{};var r=Zv(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Zv(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Jv=function(e,r,n,a,i,o){return"M".concat(e,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},Qv=function(e){var r=e.x,n=r===void 0?0:r,a=e.y,i=a===void 0?0:a,o=e.top,c=o===void 0?0:o,l=e.left,u=l===void 0?0:l,s=e.width,f=s===void 0?0:s,d=e.height,p=d===void 0?0:d,m=e.className,y=qv(e,Xv),g=Gv({x:n,y:i,top:c,left:u,width:f,height:p},y);return!M(n)||!M(i)||!M(f)||!M(p)||!M(c)||!M(u)?null:A.createElement("path",Fa({},R(g,!0),{className:X("recharts-cross",m),d:Jv(n,i,f,p,c,u)}))},eh=["cx","cy","angle","ticks","axisLine"],th=["ticks","tick","angle","tickFormatter","stroke"];function $t(t){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(t)}function ir(){return ir=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ir.apply(this,arguments)}function Vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Je(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vo(Object(r),!0).forEach(function(n){Wn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xo(t,e){if(t==null)return{};var r=rh(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function rh(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Go(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Il(n.key),n)}}function ah(t,e,r){return e&&Go(t.prototype,e),r&&Go(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ih(t,e,r){return e=gn(e),oh(t,kl()?Reflect.construct(e,r||[],gn(t).constructor):e.apply(t,r))}function oh(t,e){if(e&&($t(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ch(t)}function ch(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kl=function(){return!!t})()}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function lh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Va(t,e)}function Va(t,e){return Va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Va(t,e)}function Wn(t,e,r){return e=Il(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Il(t){var e=uh(t,"string");return $t(e)=="symbol"?e:String(e)}function uh(t,e){if($t(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Kn=function(t){lh(e,t);function e(){return nh(this,e),ih(this,e,arguments)}return ah(e,[{key:"getTickValueCoord",value:function(n){var a=n.coordinate,i=this.props,o=i.angle,c=i.cx,l=i.cy;return J(c,l,a,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,a;switch(n){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,c=n.ticks,l=Gu(c,function(s){return s.coordinate||0}),u=Hu(c,function(s){return s.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,c=n.ticks,l=n.axisLine,u=Xo(n,eh),s=c.reduce(function(m,y){return[Math.min(m[0],y.coordinate),Math.max(m[1],y.coordinate)]},[1/0,-1/0]),f=J(a,i,s[0],o),d=J(a,i,s[1],o),p=Je(Je(Je({},R(u,!1)),{},{fill:"none"},R(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return A.createElement("line",ir({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,c=a.angle,l=a.tickFormatter,u=a.stroke,s=Xo(a,th),f=this.getTickTextAnchor(),d=R(s,!1),p=R(o,!1),m=i.map(function(y,g){var O=n.getTickValueCoord(y),b=Je(Je(Je(Je({textAnchor:f,transform:"rotate(".concat(90-c,", ").concat(O.x,", ").concat(O.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:g},O),{},{payload:y});return A.createElement(H,ir({className:X("recharts-polar-radius-axis-tick",jl(o)),key:"tick-".concat(y.coordinate)},Ve(n.props,y,g)),e.renderTickItem(o,b,l?l(y.value,g):y.value))});return A.createElement(H,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.axisLine,o=n.tick;return!a||!a.length?null:A.createElement(H,{className:X("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),ie.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return A.isValidElement(n)?o=A.cloneElement(n,a):W(n)?o=n(a):o=A.createElement(it,ir({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}]),e}(B.PureComponent);Wn(Kn,"displayName","PolarRadiusAxis");Wn(Kn,"axisType","radiusAxis");Wn(Kn,"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 Tt(t){"@babel/helpers - typeof";return Tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(t)}function et(){return et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},et.apply(this,arguments)}function Ho(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Qe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ho(Object(r),!0).forEach(function(n){Fn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ho(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function sh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Cl(n.key),n)}}function fh(t,e,r){return e&&Uo(t.prototype,e),r&&Uo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dh(t,e,r){return e=bn(e),ph(t,_l()?Reflect.construct(e,r||[],bn(t).constructor):e.apply(t,r))}function ph(t,e){if(e&&(Tt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vh(t)}function vh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_l=function(){return!!t})()}function bn(t){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bn(t)}function hh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xa(t,e)}function Xa(t,e){return Xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Xa(t,e)}function Fn(t,e,r){return e=Cl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cl(t){var e=yh(t,"string");return Tt(e)=="symbol"?e:String(e)}function yh(t,e){if(Tt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Tt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mh=Math.PI/180,gh=1e-5,Vn=function(t){hh(e,t);function e(){return sh(this,e),dh(this,e,arguments)}return fh(e,[{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.cx,o=a.cy,c=a.radius,l=a.orientation,u=a.tickSize,s=u||8,f=J(i,o,c,n.coordinate),d=J(i,o,c+(l==="inner"?-1:1)*s,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var a=this.props.orientation,i=Math.cos(-n.coordinate*mh),o;return i>gh?o=a==="outer"?"start":"end":i<-1e-5?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.radius,c=n.axisLine,l=n.axisLineType,u=Qe(Qe({},R(this.props,!1)),{},{fill:"none"},R(c,!1));if(l==="circle")return A.createElement(Kr,et({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var s=this.props.ticks,f=s.map(function(d){return J(a,i,o,d.coordinate)});return A.createElement(Vv,et({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,c=a.tickLine,l=a.tickFormatter,u=a.stroke,s=R(this.props,!1),f=R(o,!1),d=Qe(Qe({},s),{},{fill:"none"},R(c,!1)),p=i.map(function(m,y){var g=n.getTickLineCoord(m),O=n.getTickTextAnchor(m),b=Qe(Qe(Qe({textAnchor:O},s),{},{stroke:"none",fill:u},f),{},{index:y,payload:m,x:g.x2,y:g.y2});return A.createElement(H,et({className:X("recharts-polar-angle-axis-tick",jl(o)),key:"tick-".concat(m.coordinate)},Ve(n.props,m,y)),c&&A.createElement("line",et({className:"recharts-polar-angle-axis-tick-line"},d,g)),o&&e.renderTickItem(o,b,l?l(m.value,y):m.value))});return A.createElement(H,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.radius,o=n.axisLine;return i<=0||!a||!a.length?null:A.createElement(H,{className:X("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,a,i){var o;return A.isValidElement(n)?o=A.cloneElement(n,a):W(n)?o=n(a):o=A.createElement(it,et({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}]),e}(B.PureComponent);Fn(Vn,"displayName","PolarAngleAxis");Fn(Vn,"axisType","angleAxis");Fn(Vn,"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});function Tr(t){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(t)}function xn(){return xn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xn.apply(this,arguments)}function bh(t,e){return wh(t)||Ah(t,e)||Oh(t,e)||xh()}function xh(){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 Oh(t,e){if(t){if(typeof t=="string")return Yo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yo(t,e)}}function Yo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ah(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function wh(t){if(Array.isArray(t))return t}function qo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Zo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qo(Object(r),!0).forEach(function(n){Ph(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ph(t,e,r){return e=Sh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sh(t){var e=jh(t,"string");return Tr(e)=="symbol"?e:String(e)}function jh(t,e){if(Tr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jo=function(e,r,n,a,i){var o=n-a,c;return c="M ".concat(e,",").concat(r),c+="L ".concat(e+n,",").concat(r),c+="L ".concat(e+n-o/2,",").concat(r+i),c+="L ".concat(e+n-o/2-a,",").concat(r+i),c+="L ".concat(e,",").concat(r," Z"),c},Eh={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$h=function(e){var r=Zo(Zo({},Eh),e),n=B.useRef(),a=B.useState(-1),i=bh(a,2),o=i[0],c=i[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&c(x)}catch{}},[]);var l=r.x,u=r.y,s=r.upperWidth,f=r.lowerWidth,d=r.height,p=r.className,m=r.animationEasing,y=r.animationDuration,g=r.animationBegin,O=r.isUpdateAnimationActive;if(l!==+l||u!==+u||s!==+s||f!==+f||d!==+d||s===0&&f===0||d===0)return null;var b=X("recharts-trapezoid",p);return O?A.createElement(De,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:s,lowerWidth:f,height:d,x:l,y:u},duration:y,animationEasing:m,isActive:O},function(x){var v=x.upperWidth,h=x.lowerWidth,w=x.height,P=x.x,S=x.y;return A.createElement(De,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:y,easing:m},A.createElement("path",xn({},R(r,!0),{className:b,d:Jo(P,S,v,h,w),ref:n})))}):A.createElement("g",null,A.createElement("path",xn({},R(r,!0),{className:b,d:Jo(l,u,s,f,d)})))},Th=["option","shapeType","propTransformer","activeClassName","isActive"];function kr(t){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(t)}function kh(t,e){if(t==null)return{};var r=Ih(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ih(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Qo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function On(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qo(Object(r),!0).forEach(function(n){_h(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _h(t,e,r){return e=Ch(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ch(t){var e=Dh(t,"string");return kr(e)=="symbol"?e:String(e)}function Dh(t,e){if(kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mh(t,e){return On(On({},e),t)}function Bh(t,e){return t==="symbols"}function ec(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return A.createElement(mi,r);case"trapezoid":return A.createElement($h,r);case"sector":return A.createElement(Tl,r);case"symbols":if(Bh(e))return A.createElement(Bn,r);break;default:return null}}function Nh(t){return B.isValidElement(t)?t.props:t}function An(t){var e=t.option,r=t.shapeType,n=t.propTransformer,a=n===void 0?Mh:n,i=t.activeClassName,o=i===void 0?"recharts-active-shape":i,c=t.isActive,l=kh(t,Th),u;if(B.isValidElement(e))u=B.cloneElement(e,On(On({},l),Nh(e)));else if(W(e))u=e(l);else if(Uu(e)&&!Yu(e)){var s=a(e,l);u=A.createElement(ec,{shapeType:r,elementProps:s})}else{var f=l;u=A.createElement(ec,{shapeType:r,elementProps:f})}return c?A.createElement(H,{className:o},u):u}function Xn(t,e){return e!=null&&"trapezoids"in t.props}function Gn(t,e){return e!=null&&"sectors"in t.props}function Ir(t,e){return e!=null&&"points"in t.props}function Lh(t,e){var r,n,a=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,i=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return a&&i}function Rh(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function zh(t,e){var r=t.x===e.x,n=t.y===e.y,a=t.z===e.z;return r&&n&&a}function Wh(t,e){var r;return Xn(t,e)?r=Lh:Gn(t,e)?r=Rh:Ir(t,e)&&(r=zh),r}function Kh(t,e){var r;return Xn(t,e)?r="trapezoids":Gn(t,e)?r="sectors":Ir(t,e)&&(r="points"),r}function Fh(t,e){if(Xn(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Gn(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Ir(t,e)?e.payload:{}}function Vh(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,a=Kh(r,e),i=Fh(r,e),o=n.filter(function(l,u){var s=Fe(i,l),f=r.props[a].filter(function(m){var y=Wh(r,e);return y(m,e)}),d=r.props[a].indexOf(f[f.length-1]),p=u===d;return s&&p}),c=n.indexOf(o[o.length-1]);return c}var nn;function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}function bt(){return bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bt.apply(this,arguments)}function tc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ee(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tc(Object(r),!0).forEach(function(n){Oe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ml(n.key),n)}}function Gh(t,e,r){return e&&rc(t.prototype,e),r&&rc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hh(t,e,r){return e=wn(e),Uh(t,Dl()?Reflect.construct(e,r||[],wn(t).constructor):e.apply(t,r))}function Uh(t,e){if(e&&(kt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yt(t)}function Dl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dl=function(){return!!t})()}function wn(t){return wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wn(t)}function yt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ga(t,e)}function Ga(t,e){return Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ga(t,e)}function Oe(t,e,r){return e=Ml(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ml(t){var e=qh(t,"string");return kt(e)=="symbol"?e:String(e)}function qh(t,e){if(kt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(kt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ge=function(t){Yh(e,t);function e(r){var n;return Xh(this,e),n=Hh(this,e,[r]),Oe(yt(n),"pieRef",null),Oe(yt(n),"sectorRefs",[]),Oe(yt(n),"id",Xe("recharts-pie-")),Oe(yt(n),"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),W(a)&&a()}),Oe(yt(n),"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),W(a)&&a()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return Gh(e,[{key:"isActiveIndex",value:function(n){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(n)!==-1:n===a}},{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 a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,c=i.labelLine,l=i.dataKey,u=i.valueKey,s=R(this.props,!1),f=R(o,!1),d=R(c,!1),p=o&&o.offsetRadius||20,m=n.map(function(y,g){var O=(y.startAngle+y.endAngle)/2,b=J(y.cx,y.cy,y.outerRadius+p,O),x=ee(ee(ee(ee({},s),y),{},{stroke:"none"},f),{},{index:g,textAnchor:e.getTextAnchor(b.x,y.cx)},b),v=ee(ee(ee(ee({},s),y),{},{fill:"none",stroke:y.fill},d),{},{index:g,points:[J(y.cx,y.cy,y.outerRadius,O),b],key:"line"}),h=l;return z(l)&&z(u)?h="value":z(l)&&(h=u),A.createElement(H,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(g)},c&&e.renderLabelLineItem(c,v),e.renderLabelItem(o,x,Q(y,h)))});return A.createElement(H,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var a=this,i=this.props,o=i.activeShape,c=i.blendStroke,l=i.inactiveShape;return n.map(function(u,s){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var f=a.isActiveIndex(s),d=l&&a.hasActiveIndex()?l:null,p=f?o:d,m=ee(ee({},u),{},{stroke:c?u.fill:u.stroke,tabIndex:-1});return A.createElement(H,bt({ref:function(g){g&&!a.sectorRefs.includes(g)&&a.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},Ve(a.props,u,s),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(s)}),A.createElement(An,bt({option:p,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,a=this.props,i=a.sectors,o=a.isAnimationActive,c=a.animationBegin,l=a.animationDuration,u=a.animationEasing,s=a.animationId,f=this.state,d=f.prevSectors,p=f.prevIsAnimationActive;return A.createElement(De,{begin:c,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var y=m.t,g=[],O=i&&i[0],b=O.startAngle;return i.forEach(function(x,v){var h=d&&d[v],w=v>0?ye(x,"paddingAngle",0):0;if(h){var P=te(h.endAngle-h.startAngle,x.endAngle-x.startAngle),S=ee(ee({},x),{},{startAngle:b+w,endAngle:b+P(y)+w});g.push(S),b=S.endAngle}else{var E=x.endAngle,j=x.startAngle,C=te(0,E-j),$=C(y),k=ee(ee({},x),{},{startAngle:b+w,endAngle:b+$+w});g.push(k),b=k.endAngle}}),A.createElement(H,null,n.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(n){var a=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var c=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,a=n.sectors,i=n.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!Fe(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,a=this.props,i=a.hide,o=a.sectors,c=a.className,l=a.label,u=a.cx,s=a.cy,f=a.innerRadius,d=a.outerRadius,p=a.isAnimationActive,m=this.state.isAnimationFinished;if(i||!o||!o.length||!M(u)||!M(s)||!M(f)||!M(d))return null;var y=X("recharts-pie",c);return A.createElement(H,{tabIndex:this.props.rootTabIndex,className:y,ref:function(O){n.pieRef=O}},this.renderSectors(),l&&this.renderLabels(o),ie.renderCallByParent(this.props,null,!1),(!p||m)&&je.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return a.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:n.sectors!==a.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,a){return n>a?"start":n<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,a){if(A.isValidElement(n))return A.cloneElement(n,a);if(W(n))return n(a);var i=X("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(Ke,bt({},a,{type:"linear",className:i}))}},{key:"renderLabelItem",value:function(n,a,i){if(A.isValidElement(n))return A.cloneElement(n,a);var o=i;if(W(n)&&(o=n(a),A.isValidElement(o)))return o;var c=X("recharts-pie-label-text",typeof n!="boolean"&&!W(n)?n.className:"");return A.createElement(it,bt({},a,{alignmentBaseline:"middle",className:c}),o)}}]),e}(B.PureComponent);nn=Ge;Oe(Ge,"displayName","Pie");Oe(Ge,"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:!Me.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Oe(Ge,"parseDeltaAngle",function(t,e){var r=se(e-t),n=Math.min(Math.abs(e-t),360);return r*n});Oe(Ge,"getRealPieData",function(t){var e=t.props,r=e.data,n=e.children,a=R(t.props,!1),i=de(n,Ln);return r&&r.length?r.map(function(o,c){return ee(ee(ee({payload:o},a),o),i&&i[c]&&i[c].props)}):i&&i.length?i.map(function(o){return ee(ee({},a),o.props)}):[]});Oe(Ge,"parseCoordinateOfPie",function(t,e){var r=e.top,n=e.left,a=e.width,i=e.height,o=Sl(a,i),c=n+fe(t.props.cx,a,a/2),l=r+fe(t.props.cy,i,i/2),u=fe(t.props.innerRadius,o,0),s=fe(t.props.outerRadius,o,o*.8),f=t.props.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:c,cy:l,innerRadius:u,outerRadius:s,maxRadius:f}});Oe(Ge,"getComposedData",function(t){var e=t.item,r=t.offset,n=nn.getRealPieData(e);if(!n||!n.length)return null;var a=e.props,i=a.cornerRadius,o=a.startAngle,c=a.endAngle,l=a.paddingAngle,u=a.dataKey,s=a.nameKey,f=a.valueKey,d=a.tooltipType,p=Math.abs(e.props.minAngle),m=nn.parseCoordinateOfPie(e,r),y=nn.parseDeltaAngle(o,c),g=Math.abs(y),O=u;z(u)&&z(f)?(Se(!1,`Use "dataKey" to specify the value of pie,
53
- the props "valueKey" will be deprecated in 1.1.0`),O="value"):z(u)&&(Se(!1,`Use "dataKey" to specify the value of pie,
54
- the props "valueKey" will be deprecated in 1.1.0`),O=f);var b=n.filter(function(S){return Q(S,O,0)!==0}).length,x=(g>=360?b:b-1)*l,v=g-b*p-x,h=n.reduce(function(S,E){var j=Q(E,O,0);return S+(M(j)?j:0)},0),w;if(h>0){var P;w=n.map(function(S,E){var j=Q(S,O,0),C=Q(S,s,E),$=(M(j)?j:0)/h,k;E?k=P.endAngle+se(y)*l*(j!==0?1:0):k=o;var T=k+se(y)*((j!==0?p:0)+$*v),D=(k+T)/2,_=(m.innerRadius+m.outerRadius)/2,N=[{name:C,value:j,payload:S,dataKey:O,type:d}],L=J(m.cx,m.cy,_,D);return P=ee(ee(ee({percent:$,cornerRadius:i,name:C,tooltipPayload:N,midAngle:D,middleRadius:_,tooltipPosition:L},S),m),{},{value:Q(S,O),startAngle:k,endAngle:T,payload:S,paddingAngle:se(y)*l}),P})}return ee(ee({},m),{},{sectors:w,data:n})});function _r(t){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(t)}function nc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ac(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nc(Object(r),!0).forEach(function(n){Bl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bl(t,e,r){return e=Zh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zh(t){var e=Jh(t,"string");return _r(e)=="symbol"?e:String(e)}function Jh(t,e){if(_r(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qh=["Webkit","Moz","O","ms"],ey=function(e,r){var n=e.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Qh.reduce(function(i,o){return ac(ac({},i),{},Bl({},o+n,r))},{});return a[e]=r,a};function It(t){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(t)}function Pn(){return Pn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pn.apply(this,arguments)}function ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ca(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ic(Object(r),!0).forEach(function(n){ve(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ty(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ll(n.key),n)}}function ry(t,e,r){return e&&oc(t.prototype,e),r&&oc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ny(t,e,r){return e=Sn(e),ay(t,Nl()?Reflect.construct(e,r||[],Sn(t).constructor):e.apply(t,r))}function ay(t,e){if(e&&(It(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(t)}function Nl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nl=function(){return!!t})()}function Sn(t){return Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sn(t)}function Ee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ha(t,e)}function Ha(t,e){return Ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ha(t,e)}function ve(t,e,r){return e=Ll(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ll(t){var e=oy(t,"string");return It(e)=="symbol"?e:String(e)}function oy(t,e){if(It(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(It(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cy=function(e){var r=e.data,n=e.startIndex,a=e.endIndex,i=e.x,o=e.width,c=e.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=rn().domain(an(0,l)).range([i,i+o-c]),s=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(a),scale:u,scaleValues:s}},cc=function(e){return e.changedTouches&&!!e.changedTouches.length},_t=function(t){iy(e,t);function e(r){var n;return ty(this,e),n=ny(this,e,[r]),ve(Ee(n),"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),ve(Ee(n),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),ve(Ee(n),"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,c=a.startIndex;o==null||o({endIndex:i,startIndex:c})}),n.detachDragEndListener()}),ve(Ee(n),"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ve(Ee(n),"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ve(Ee(n),"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ve(Ee(n),"handleSlideDragStart",function(a){var i=cc(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(Ee(n),"startX"),endX:n.handleTravellerDragStart.bind(Ee(n),"endX")},n.state={},n}return ry(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,c=this.props,l=c.gap,u=c.data,s=u.length-1,f=Math.min(a,i),d=Math.max(a,i),p=e.getIndexInRange(o,f),m=e.getIndexInRange(o,d);return{startIndex:p-p%l,endIndex:m===s?s:m-m%l}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,c=a.dataKey,l=Q(i[n],c,n);return W(o)?o(l,n):l}},{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 a=this.state,i=a.slideMoveStartX,o=a.startX,c=a.endX,l=this.props,u=l.x,s=l.width,f=l.travellerWidth,d=l.startIndex,p=l.endIndex,m=l.onChange,y=n.pageX-i;y>0?y=Math.min(y,u+s-f-c,u+s-f-o):y<0&&(y=Math.max(y,u-o,u-c));var g=this.getIndex({startX:o+y,endX:c+y});(g.startIndex!==d||g.endIndex!==p)&&m&&m(g),this.setState({startX:o+y,endX:c+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=cc(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,c=a.endX,l=a.startX,u=this.state[o],s=this.props,f=s.x,d=s.width,p=s.travellerWidth,m=s.onChange,y=s.gap,g=s.data,O={startX:this.state.startX,endX:this.state.endX},b=n.pageX-i;b>0?b=Math.min(b,f+d-p-u):b<0&&(b=Math.max(b,f-u)),O[o]=u+b;var x=this.getIndex(O),v=x.startIndex,h=x.endIndex,w=function(){var S=g.length-1;return o==="startX"&&(c>l?v%y===0:h%y===0)||c<l&&h===S||o==="endX"&&(c>l?h%y===0:v%y===0)||c>l&&h===S};this.setState(ve(ve({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&w()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,c=o.scaleValues,l=o.startX,u=o.endX,s=this.state[a],f=c.indexOf(s);if(f!==-1){var d=f+n;if(!(d===-1||d>=c.length)){var p=c[d];a==="startX"&&p>=u||a==="endX"&&p<=l||this.setState(ve({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,c=n.height,l=n.fill,u=n.stroke;return A.createElement("rect",{stroke:u,fill:l,x:a,y:i,width:o,height:c})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,c=n.height,l=n.data,u=n.children,s=n.padding,f=B.Children.only(u);return f?A.cloneElement(f,{x:a,y:i,width:o,height:c,margin:s,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,c=this,l=this.props,u=l.y,s=l.travellerWidth,f=l.height,d=l.traveller,p=l.ariaLabel,m=l.data,y=l.startIndex,g=l.endIndex,O=Math.max(n,this.props.x),b=ca(ca({},R(this.props,!1)),{},{x:O,y:u,width:s,height:f}),x=p||"Min value: ".concat((i=m[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=m[g])===null||o===void 0?void 0:o.name);return A.createElement(H,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(h){["ArrowLeft","ArrowRight"].includes(h.key)&&(h.preventDefault(),h.stopPropagation(),c.handleTravellerMoveKeyboard(h.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,c=i.height,l=i.stroke,u=i.travellerWidth,s=Math.min(n,a)+u,f=Math.max(Math.abs(a-n)-u,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:s,y:o,width:f,height:c})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,o=n.y,c=n.height,l=n.travellerWidth,u=n.stroke,s=this.state,f=s.startX,d=s.endX,p=5,m={pointerEvents:"none",fill:u};return A.createElement(H,{className:"recharts-brush-texts"},A.createElement(it,Pn({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:o+c/2},m),this.getTextOfTick(a)),A.createElement(it,Pn({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+p,y:o+c/2},m),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,c=n.x,l=n.y,u=n.width,s=n.height,f=n.alwaysShowText,d=this.state,p=d.startX,m=d.endX,y=d.isTextActive,g=d.isSlideMoving,O=d.isTravellerMoving,b=d.isTravellerFocused;if(!a||!a.length||!M(c)||!M(l)||!M(u)||!M(s)||u<=0||s<=0)return null;var x=X("recharts-brush",i),v=A.Children.count(o)===1,h=ey("userSelect","none");return A.createElement(H,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:h},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(y||g||O||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,c=n.height,l=n.stroke,u=Math.floor(i+c/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:a,y:i,width:o,height:c,fill:l,stroke:"none"}),A.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return A.isValidElement(n)?i=A.cloneElement(n,a):W(n)?i=n(a):i=e.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,c=n.x,l=n.travellerWidth,u=n.updateId,s=n.startIndex,f=n.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return ca({prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:c,prevWidth:o},i&&i.length?cy({data:i,width:o,x:c,travellerWidth:l,startIndex:s,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||c!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([c,c+o-l]);var d=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:c,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,c=i-1;c-o>1;){var l=Math.floor((o+c)/2);n[l]>a?c=l:o=l}return a>=n[c]?c:o}}]),e}(B.PureComponent);ve(_t,"displayName","Brush");ve(_t,"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 Te=function(e,r){var n=e.alwaysShow,a=e.ifOverflow;return n&&(a="extendDomain"),a===r},ly=["x","y"];function Cr(t){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(t)}function Ua(){return Ua=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ua.apply(this,arguments)}function lc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Jt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lc(Object(r),!0).forEach(function(n){uy(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uy(t,e,r){return e=sy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sy(t){var e=fy(t,"string");return Cr(e)=="symbol"?e:String(e)}function fy(t,e){if(Cr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dy(t,e){if(t==null)return{};var r=py(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function py(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function vy(t,e){var r=t.x,n=t.y,a=dy(t,ly),i="".concat(r),o=parseInt(i,10),c="".concat(n),l=parseInt(c,10),u="".concat(e.height||a.height),s=parseInt(u,10),f="".concat(e.width||a.width),d=parseInt(f,10);return Jt(Jt(Jt(Jt(Jt({},e),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:s,width:d,name:e.name,radius:e.radius})}function uc(t){return A.createElement(An,Ua({shapeType:"rectangle",propTransformer:vy,activeClassName:"recharts-active-bar"},t))}var hy=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof e=="number")return e;var i=typeof n=="number";return i?e(n,a):(i||at(!1),r)}},yy=["value","background"],Rl;function Ct(t){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(t)}function my(t,e){if(t==null)return{};var r=gy(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function gy(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function jn(){return jn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jn.apply(this,arguments)}function sc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ae(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sc(Object(r),!0).forEach(function(n){ze(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function by(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wl(n.key),n)}}function xy(t,e,r){return e&&fc(t.prototype,e),r&&fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Oy(t,e,r){return e=En(e),Ay(t,zl()?Reflect.construct(e,r||[],En(t).constructor):e.apply(t,r))}function Ay(t,e){if(e&&(Ct(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qt(t)}function zl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zl=function(){return!!t})()}function En(t){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},En(t)}function Qt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ya(t,e)}function Ya(t,e){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ya(t,e)}function ze(t,e,r){return e=Wl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wl(t){var e=Py(t,"string");return Ct(e)=="symbol"?e:String(e)}function Py(t,e){if(Ct(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ct=function(t){wy(e,t);function e(){var r;by(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Oy(this,e,[].concat(a)),ze(Qt(r),"state",{isAnimationFinished:!1}),ze(Qt(r),"id",Xe("recharts-bar-")),ze(Qt(r),"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),ze(Qt(r),"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return xy(e,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,o=i.shape,c=i.dataKey,l=i.activeIndex,u=i.activeBar,s=R(this.props,!1);return n&&n.map(function(f,d){var p=d===l,m=p?u:o,y=ae(ae(ae({},s),f),{},{isActive:p,option:m,index:d,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return A.createElement(H,jn({className:"recharts-bar-rectangle"},Ve(a.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value)}),A.createElement(uc,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,o=a.layout,c=a.isAnimationActive,l=a.animationBegin,u=a.animationDuration,s=a.animationEasing,f=a.animationId,d=this.state.prevData;return A.createElement(De,{begin:l,duration:u,isActive:c,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,y=i.map(function(g,O){var b=d&&d[O];if(b){var x=te(b.x,g.x),v=te(b.y,g.y),h=te(b.width,g.width),w=te(b.height,g.height);return ae(ae({},g),{},{x:x(m),y:v(m),width:h(m),height:w(m)})}if(o==="horizontal"){var P=te(0,g.height),S=P(m);return ae(ae({},g),{},{y:g.y+g.height-S,height:S})}var E=te(0,g.width),j=E(m);return ae(ae({},g),{},{width:j})});return A.createElement(H,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Fe(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,c=a.activeIndex,l=R(this.props.background,!1);return i.map(function(u,s){u.value;var f=u.background,d=my(u,yy);if(!f)return null;var p=ae(ae(ae(ae(ae({},d),{},{fill:"#eee"},f),l),Ve(n.props,u,s)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:s,key:"background-bar-".concat(s),className:"recharts-bar-background-rectangle"});return A.createElement(uc,jn({option:n.props.background,isActive:s===c},p))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,c=i.xAxis,l=i.yAxis,u=i.layout,s=i.children,f=de(s,Kt);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,p=function(g,O){var b=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:b,errorVal:Q(g,O)}},m={clipPath:n?"url(#clipPath-".concat(a,")"):null};return A.createElement(H,m,f.map(function(y){return A.cloneElement(y,{key:"error-bar-".concat(a,"-").concat(y.props.dataKey),data:o,xAxis:c,yAxis:l,layout:u,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,o=n.className,c=n.xAxis,l=n.yAxis,u=n.left,s=n.top,f=n.width,d=n.height,p=n.isAnimationActive,m=n.background,y=n.id;if(a||!i||!i.length)return null;var g=this.state.isAnimationFinished,O=X("recharts-bar",o),b=c&&c.allowDataOverflow,x=l&&l.allowDataOverflow,v=b||x,h=z(y)?this.id:y;return A.createElement(H,{className:O},b||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(h)},A.createElement("rect",{x:b?u:u-f/2,y:x?s:s-d/2,width:b?f:f*2,height:x?d:d*2}))):null,A.createElement(H,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(h,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,h),(!p||g)&&je.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}]),e}(B.PureComponent);Rl=ct;ze(ct,"displayName","Bar");ze(ct,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Me.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ze(ct,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,a=t.bandSize,i=t.xAxis,o=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=t.stackedData,s=t.dataStartIndex,f=t.displayedData,d=t.offset,p=dp(n,r);if(!p)return null;var m=e.layout,y=r.props,g=y.dataKey,O=y.children,b=y.minPointSize,x=m==="horizontal"?o:i,v=u?x.scale.domain():null,h=bp({numericAxis:x}),w=de(O,Ln),P=f.map(function(S,E){var j,C,$,k,T,D;u?j=pp(u[s+E],v):(j=Q(S,g),Array.isArray(j)||(j=[h,j]));var _=hy(b,Rl.defaultProps.minPointSize)(j[1],E);if(m==="horizontal"){var N,L=[o.scale(j[0]),o.scale(j[1])],V=L[0],G=L[1];C=Oo({axis:i,ticks:c,bandSize:a,offset:p.offset,entry:S,index:E}),$=(N=G??V)!==null&&N!==void 0?N:void 0,k=p.size;var U=V-G;if(T=Number.isNaN(U)?0:U,D={x:C,y:o.y,width:k,height:o.height},Math.abs(_)>0&&Math.abs(T)<Math.abs(_)){var F=se(T||_)*(Math.abs(_)-Math.abs(T));$-=F,T+=F}}else{var Y=[i.scale(j[0]),i.scale(j[1])],le=Y[0],me=Y[1];if(C=le,$=Oo({axis:o,ticks:l,bandSize:a,offset:p.offset,entry:S,index:E}),k=me-le,T=p.size,D={x:i.x,y:$,width:i.width,height:T},Math.abs(_)>0&&Math.abs(k)<Math.abs(_)){var Vt=se(k||_)*(Math.abs(_)-Math.abs(k));k+=Vt}}return ae(ae(ae({},S),{},{x:C,y:$,width:k,height:T,value:u?j:j[1],payload:S,background:D},w&&w[E]&&w[E].props),{},{tooltipPayload:[wl(r,S)],tooltipPosition:{x:C+k/2,y:$+T/2}})});return ae({data:P,layout:m},d)});function Dr(t){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(t)}function Sy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Kl(n.key),n)}}function jy(t,e,r){return e&&dc(t.prototype,e),r&&dc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function pc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pc(Object(r),!0).forEach(function(n){Hn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hn(t,e,r){return e=Kl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kl(t){var e=Ey(t,"string");return Dr(e)=="symbol"?e:String(e)}function Ey(t,e){if(Dr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fl=function(e,r,n,a,i){var o=e.width,c=e.height,l=e.layout,u=e.children,s=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:c-n.bottom,bottomMirror:c-n.bottom},d=!!he(u,ct);return s.reduce(function(p,m){var y=r[m],g=y.orientation,O=y.domain,b=y.padding,x=b===void 0?{}:b,v=y.mirror,h=y.reversed,w="".concat(g).concat(v?"Mirror":""),P,S,E,j,C;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var $=O[1]-O[0],k=1/0,T=y.categoricalDomain.sort();if(T.forEach(function(le,me){me>0&&(k=Math.min((le||0)-(T[me-1]||0),k))}),Number.isFinite(k)){var D=k/$,_=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(P=D*_/2),y.padding==="no-gap"){var N=fe(e.barCategoryGap,D*_),L=D*_/2;P=L-N-(L-N)/_*N}}}a==="xAxis"?S=[n.left+(x.left||0)+(P||0),n.left+n.width-(x.right||0)-(P||0)]:a==="yAxis"?S=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(P||0),n.top+n.height-(x.bottom||0)-(P||0)]:S=y.range,h&&(S=[S[1],S[0]]);var V=bl(y,i,d),G=V.scale,U=V.realScaleType;G.domain(O).range(S),xl(G);var F=Ol(G,we(we({},y),{},{realScaleType:U}));a==="xAxis"?(C=g==="top"&&!v||g==="bottom"&&v,E=n.left,j=f[w]-C*y.height):a==="yAxis"&&(C=g==="left"&&!v||g==="right"&&v,E=f[w]-C*y.width,j=n.top);var Y=we(we(we({},y),F),{},{realScaleType:U,x:E,y:j,scale:G,width:a==="xAxis"?n.width:y.width,height:a==="yAxis"?n.height:y.height});return Y.bandSize=vn(Y,F),!y.hide&&a==="xAxis"?f[w]+=(C?-1:1)*Y.height:y.hide||(f[w]+=(C?-1:1)*Y.width),we(we({},p),{},Hn({},m,Y))},{})},Vl=function(e,r){var n=e.x,a=e.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},$y=function(e){var r=e.x1,n=e.y1,a=e.x2,i=e.y2;return Vl({x:r,y:n},{x:a,y:i})},Xl=function(){function t(e){Sy(this,t),this.scale=e}return jy(t,[{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]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(r)+c}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new t(r)}}]),t}();Hn(Xl,"EPS",1e-4);var gi=function(e){var r=Object.keys(e).reduce(function(n,a){return we(we({},n),{},Hn({},a,Xl.create(e[a])))},{});return we(we({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,c=i.position;return qu(a,function(l,u){return r[u].apply(l,{bandAware:o,position:c})})},isInRange:function(a){return Vc(a,function(i,o){return r[o].isInRange(i)})}})};function Ty(t){return(t%180+180)%180}var ky=function(e){var r=e.width,n=e.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Ty(a),o=i*Math.PI/180,c=Math.atan(n/r),l=o>c&&o<Math.PI-c?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Iy=Zu(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),bi=B.createContext(void 0),xi=B.createContext(void 0),Gl=B.createContext(void 0),Hl=B.createContext({}),Ul=B.createContext(void 0),Yl=B.createContext(0),ql=B.createContext(0),vc=function(e){var r=e.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=e.clipPathId,c=e.children,l=e.width,u=e.height,s=Iy(i);return A.createElement(bi.Provider,{value:n},A.createElement(xi.Provider,{value:a},A.createElement(Hl.Provider,{value:i},A.createElement(Gl.Provider,{value:s},A.createElement(Ul.Provider,{value:o},A.createElement(Yl.Provider,{value:u},A.createElement(ql.Provider,{value:l},c)))))))},_y=function(){return B.useContext(Ul)},Zl=function(e){var r=B.useContext(bi);r==null&&at(!1);var n=r[e];return n==null&&at(!1),n},Cy=function(){var e=B.useContext(bi);return Le(e)},Dy=function(){var e=B.useContext(xi),r=Ju(e,function(n){return Vc(n.domain,Number.isFinite)});return r||Le(e)},Jl=function(e){var r=B.useContext(xi);r==null&&at(!1);var n=r[e];return n==null&&at(!1),n},My=function(){var e=B.useContext(Gl);return e},By=function(){return B.useContext(Hl)},Oi=function(){return B.useContext(ql)},Ai=function(){return B.useContext(Yl)};function Mr(t){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(t)}function hc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function yc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hc(Object(r),!0).forEach(function(n){Ny(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ny(t,e,r){return e=Ly(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ly(t){var e=Ry(t,"string");return Mr(e)=="symbol"?e:String(e)}function Ry(t,e){if(Mr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zy(t,e){return Vy(t)||Fy(t,e)||Ky(t,e)||Wy()}function Wy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ky(t,e){if(t){if(typeof t=="string")return mc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mc(t,e)}}function mc(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fy(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function Vy(t){if(Array.isArray(t))return t}function qa(){return qa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qa.apply(this,arguments)}var Xy=function(e,r){var n;return A.isValidElement(e)?n=A.cloneElement(e,r):W(e)?n=e(r):n=A.createElement("line",qa({},r,{className:"recharts-reference-line-line"})),n},Gy=function(e,r,n,a,i,o,c,l,u){var s=i.x,f=i.y,d=i.width,p=i.height;if(n){var m=u.y,y=e.y.apply(m,{position:o});if(Te(u,"discard")&&!e.y.isInRange(y))return null;var g=[{x:s+d,y},{x:s,y}];return l==="left"?g.reverse():g}if(r){var O=u.x,b=e.x.apply(O,{position:o});if(Te(u,"discard")&&!e.x.isInRange(b))return null;var x=[{x:b,y:f+p},{x:b,y:f}];return c==="top"?x.reverse():x}if(a){var v=u.segment,h=v.map(function(w){return e.apply(w,{position:o})});return Te(u,"discard")&&Qu(h,function(w){return!e.isInRange(w)})?null:h}return null};function wi(t){var e=t.x,r=t.y,n=t.segment,a=t.xAxisId,i=t.yAxisId,o=t.shape,c=t.className,l=t.alwaysShow,u=_y(),s=Zl(a),f=Jl(i),d=My();if(!u||!d)return null;Se(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=gi({x:s.scale,y:f.scale}),m=ne(e),y=ne(r),g=n&&n.length===2,O=Gy(p,m,y,g,d,t.position,s.orientation,f.orientation,t);if(!O)return null;var b=zy(O,2),x=b[0],v=x.x,h=x.y,w=b[1],P=w.x,S=w.y,E=Te(t,"hidden")?"url(#".concat(u,")"):void 0,j=yc(yc({clipPath:E},R(t,!0)),{},{x1:v,y1:h,x2:P,y2:S});return A.createElement(H,{className:X("recharts-reference-line",c)},Xy(o,j),ie.renderCallByParent(t,$y({x1:v,y1:h,x2:P,y2:S})))}wi.displayName="ReferenceLine";wi.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Br(t){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(t)}function Za(){return Za=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Za.apply(this,arguments)}function gc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function bc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gc(Object(r),!0).forEach(function(n){Hy(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hy(t,e,r){return e=Uy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uy(t){var e=Yy(t,"string");return Br(e)=="symbol"?e:String(e)}function Yy(t,e){if(Br(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qy=function(e){var r=e.x,n=e.y,a=e.xAxis,i=e.yAxis,o=gi({x:a.scale,y:i.scale}),c=o.apply({x:r,y:n},{bandAware:!0});return Te(e,"discard")&&!o.isInRange(c)?null:c};function Fr(t){var e=t.x,r=t.y,n=t.r,a=t.alwaysShow,i=t.clipPathId,o=ne(e),c=ne(r);if(Se(a===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!o||!c)return null;var l=qy(t);if(!l)return null;var u=l.x,s=l.y,f=t.shape,d=t.className,p=Te(t,"hidden")?"url(#".concat(i,")"):void 0,m=bc(bc({clipPath:p},R(t,!0)),{},{cx:u,cy:s});return A.createElement(H,{className:X("recharts-reference-dot",d)},Fr.renderDot(f,m),ie.renderCallByParent(t,{x:u-n,y:s-n,width:2*n,height:2*n}))}Fr.displayName="ReferenceDot";Fr.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};Fr.renderDot=function(t,e){var r;return A.isValidElement(t)?r=A.cloneElement(t,e):W(t)?r=t(e):r=A.createElement(Kr,Za({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r};function Nr(t){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nr(t)}function Ja(){return Ja=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ja.apply(this,arguments)}function xc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Oc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xc(Object(r),!0).forEach(function(n){Zy(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Zy(t,e,r){return e=Jy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jy(t){var e=Qy(t,"string");return Nr(e)=="symbol"?e:String(e)}function Qy(t,e){if(Nr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var em=function(e,r,n,a,i){var o=i.x1,c=i.x2,l=i.y1,u=i.y2,s=i.xAxis,f=i.yAxis;if(!s||!f)return null;var d=gi({x:s.scale,y:f.scale}),p={x:e?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(c,{position:"end"}):d.x.rangeMax,y:a?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Te(i,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:Vl(p,m)};function Vr(t){var e=t.x1,r=t.x2,n=t.y1,a=t.y2,i=t.className,o=t.alwaysShow,c=t.clipPathId;Se(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=ne(e),u=ne(r),s=ne(n),f=ne(a),d=t.shape;if(!l&&!u&&!s&&!f&&!d)return null;var p=em(l,u,s,f,t);if(!p&&!d)return null;var m=Te(t,"hidden")?"url(#".concat(c,")"):void 0;return A.createElement(H,{className:X("recharts-reference-area",i)},Vr.renderRect(d,Oc(Oc({clipPath:m},R(t,!0)),p)),ie.renderCallByParent(t,p))}Vr.displayName="ReferenceArea";Vr.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};Vr.renderRect=function(t,e){var r;return A.isValidElement(t)?r=A.cloneElement(t,e):W(t)?r=t(e):r=A.createElement(mi,Ja({},e,{className:"recharts-reference-area-rect"})),r};function Ql(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],a=0;a<t.length;a+=e)n.push(t[a]);return n}function tm(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return ky(n,r)}function rm(t,e,r){var n=r==="width",a=t.x,i=t.y,o=t.width,c=t.height;return e===1?{start:n?a:i,end:n?a+o:i+c}:{start:n?a+o:i+c,end:n?a:i}}function $n(t,e,r,n,a){if(t*e<t*n||t*e>t*a)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-a)<=0}function nm(t,e){return Ql(t,e+1)}function am(t,e,r,n,a){for(var i=(n||[]).slice(),o=e.start,c=e.end,l=0,u=1,s=o,f=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:Ql(n,u)};var y=l,g,O=function(){return g===void 0&&(g=r(m,y)),g},b=m.coordinate,x=l===0||$n(t,b,O,s,c);x||(l=0,s=o,u+=1),x&&(s=b+t*(O()/2+a),l+=u)},d;u<=i.length;)if(d=f(),d)return d.v;return[]}function Lr(t){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(t)}function Ac(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ac(Object(r),!0).forEach(function(n){im(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function im(t,e,r){return e=om(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function om(t){var e=cm(t,"string");return Lr(e)=="symbol"?e:String(e)}function cm(t,e){if(Lr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lm(t,e,r,n,a){for(var i=(n||[]).slice(),o=i.length,c=e.start,l=e.end,u=function(d){var p=i[d],m,y=function(){return m===void 0&&(m=r(p,d)),m};if(d===o-1){var g=t*(p.coordinate+t*y()/2-l);i[d]=p=oe(oe({},p),{},{tickCoord:g>0?p.coordinate-g*t:p.coordinate})}else i[d]=p=oe(oe({},p),{},{tickCoord:p.coordinate});var O=$n(t,p.tickCoord,y,c,l);O&&(l=p.tickCoord-t*(y()/2+a),i[d]=oe(oe({},p),{},{isShow:!0}))},s=o-1;s>=0;s--)u(s);return i}function um(t,e,r,n,a,i){var o=(n||[]).slice(),c=o.length,l=e.start,u=e.end;if(i){var s=n[c-1],f=r(s,c-1),d=t*(s.coordinate+t*f/2-u);o[c-1]=s=oe(oe({},s),{},{tickCoord:d>0?s.coordinate-d*t:s.coordinate});var p=$n(t,s.tickCoord,function(){return f},l,u);p&&(u=s.tickCoord-t*(f/2+a),o[c-1]=oe(oe({},s),{},{isShow:!0}))}for(var m=i?c-1:c,y=function(b){var x=o[b],v,h=function(){return v===void 0&&(v=r(x,b)),v};if(b===0){var w=t*(x.coordinate-t*h()/2-l);o[b]=x=oe(oe({},x),{},{tickCoord:w<0?x.coordinate-w*t:x.coordinate})}else o[b]=x=oe(oe({},x),{},{tickCoord:x.coordinate});var P=$n(t,x.tickCoord,h,l,u);P&&(l=x.tickCoord+t*(h()/2+a),o[b]=oe(oe({},x),{},{isShow:!0}))},g=0;g<m;g++)y(g);return o}function Pi(t,e,r){var n=t.tick,a=t.ticks,i=t.viewBox,o=t.minTickGap,c=t.orientation,l=t.interval,u=t.tickFormatter,s=t.unit,f=t.angle;if(!a||!a.length||!n)return[];if(M(l)||Me.isSsr)return nm(a,typeof l=="number"&&M(l)?l:0);var d=[],p=c==="top"||c==="bottom"?"width":"height",m=s&&p==="width"?rr(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(x,v){var h=W(u)?u(x.value,v):x.value;return p==="width"?tm(rr(h,{fontSize:e,letterSpacing:r}),m,f):rr(h,{fontSize:e,letterSpacing:r})[p]},g=a.length>=2?se(a[1].coordinate-a[0].coordinate):1,O=rm(i,g,p);return l==="equidistantPreserveStart"?am(g,O,y,a,o):(l==="preserveStart"||l==="preserveStartEnd"?d=um(g,O,y,a,o,l==="preserveStartEnd"):d=lm(g,O,y,a,o),d.filter(function(b){return b.isShow}))}var sm=["viewBox"],fm=["viewBox"],dm=["ticks"];function Dt(t){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(t)}function xt(){return xt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xt.apply(this,arguments)}function wc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wc(Object(r),!0).forEach(function(n){Si(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function la(t,e){if(t==null)return{};var r=pm(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pm(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function vm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tu(n.key),n)}}function hm(t,e,r){return e&&Pc(t.prototype,e),r&&Pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ym(t,e,r){return e=Tn(e),mm(t,eu()?Reflect.construct(e,r||[],Tn(t).constructor):e.apply(t,r))}function mm(t,e){if(e&&(Dt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gm(t)}function gm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eu=function(){return!!t})()}function Tn(t){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(t)}function bm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qa(t,e)}function Qa(t,e){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Qa(t,e)}function Si(t,e,r){return e=tu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tu(t){var e=xm(t,"string");return Dt(e)=="symbol"?e:String(e)}function xm(t,e){if(Dt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ft=function(t){bm(e,t);function e(r){var n;return vm(this,e),n=ym(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return hm(e,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=la(n,sm),c=this.props,l=c.viewBox,u=la(c,fm);return!Ot(i,l)||!Ot(o,u)||!Ot(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,c=a.width,l=a.height,u=a.orientation,s=a.tickSize,f=a.mirror,d=a.tickMargin,p,m,y,g,O,b,x=f?-1:1,v=n.tickSize||s,h=M(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=m=n.coordinate,g=o+ +!f*l,y=g-x*v,b=y-x*d,O=h;break;case"left":y=g=n.coordinate,m=i+ +!f*c,p=m-x*v,O=p-x*d,b=h;break;case"right":y=g=n.coordinate,m=i+ +f*c,p=m+x*v,O=p+x*d,b=h;break;default:p=m=n.coordinate,g=o+ +f*l,y=g+x*v,b=y+x*d,O=h;break}return{line:{x1:p,y1:y,x2:m,y2:g},tick:{x:O,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,c=n.height,l=n.orientation,u=n.mirror,s=n.axisLine,f=ue(ue(ue({},R(this.props,!1)),R(s,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);f=ue(ue({},f),{},{x1:a,y1:i+d*c,x2:a+o,y2:i+d*c})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=ue(ue({},f),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+c})}return A.createElement("line",xt({},f,{className:X("recharts-cartesian-axis-line",ye(s,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var o=this,c=this.props,l=c.tickLine,u=c.stroke,s=c.tick,f=c.tickFormatter,d=c.unit,p=Pi(ue(ue({},this.props),{},{ticks:n}),a,i),m=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),g=R(this.props,!1),O=R(s,!1),b=ue(ue({},g),{},{fill:"none"},R(l,!1)),x=p.map(function(v,h){var w=o.getTickLineCoord(v),P=w.line,S=w.tick,E=ue(ue(ue(ue({textAnchor:m,verticalAnchor:y},g),{},{stroke:"none",fill:u},O),S),{},{index:h,payload:v,visibleTicksCount:p.length,tickFormatter:f});return A.createElement(H,xt({className:"recharts-cartesian-axis-tick",key:"tick-".concat(v.value,"-").concat(v.coordinate,"-").concat(v.tickCoord)},Ve(o.props,v,h)),l&&A.createElement("line",xt({},b,P,{className:X("recharts-cartesian-axis-tick-line",ye(l,"className"))})),s&&e.renderTickItem(s,E,"".concat(W(f)?f(v.value,h):v.value).concat(d||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,o=a.width,c=a.height,l=a.ticksGenerator,u=a.className,s=a.hide;if(s)return null;var f=this.props,d=f.ticks,p=la(f,dm),m=d;return W(l)&&(m=d&&d.length>0?l(this.props):l(p)),o<=0||c<=0||!m||!m.length?null:A.createElement(H,{className:X("recharts-cartesian-axis",u),ref:function(g){n.layerReference=g}},i&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),ie.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return A.isValidElement(n)?o=A.cloneElement(n,a):W(n)?o=n(a):o=A.createElement(it,xt({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}]),e}(B.Component);Si(Ft,"displayName","CartesianAxis");Si(Ft,"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 Om=["x1","y1","x2","y2","key"],Am=["offset"];function ot(t){"@babel/helpers - typeof";return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ot(t)}function Sc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ce(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(r),!0).forEach(function(n){wm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wm(t,e,r){return e=Pm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pm(t){var e=Sm(t,"string");return ot(e)=="symbol"?e:String(e)}function Sm(t,e){if(ot(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ot(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rt(){return rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rt.apply(this,arguments)}function jc(t,e){if(t==null)return{};var r=jm(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function jm(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Em=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,a=e.x,i=e.y,o=e.width,c=e.height;return A.createElement("rect",{x:a,y:i,width:o,height:c,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function ru(t,e){var r;if(A.isValidElement(t))r=A.cloneElement(t,e);else if(W(t))r=t(e);else{var n=e.x1,a=e.y1,i=e.x2,o=e.y2,c=e.key,l=jc(e,Om),u=R(l,!1);u.offset;var s=jc(u,Am);r=A.createElement("line",rt({},s,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:c}))}return r}function $m(t){var e=t.x,r=t.width,n=t.horizontal,a=n===void 0?!0:n,i=t.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(c,l){var u=ce(ce({},t),{},{x1:e,y1:c,x2:e+r,y2:c,key:"line-".concat(l),index:l});return ru(a,u)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Tm(t){var e=t.y,r=t.height,n=t.vertical,a=n===void 0?!0:n,i=t.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(c,l){var u=ce(ce({},t),{},{x1:c,y1:e,x2:c,y2:e+r,key:"line-".concat(l),index:l});return ru(a,u)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function km(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,a=t.y,i=t.width,o=t.height,c=t.horizontalPoints,l=t.horizontal,u=l===void 0?!0:l;if(!u||!e||!e.length)return null;var s=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==s[0]&&s.unshift(0);var f=s.map(function(d,p){var m=!s[p+1],y=m?a+o-d:s[p+1]-d;if(y<=0)return null;var g=p%e.length;return A.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:y,width:i,stroke:"none",fill:e[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Im(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,a=t.fillOpacity,i=t.x,o=t.y,c=t.width,l=t.height,u=t.verticalPoints;if(!r||!n||!n.length)return null;var s=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==s[0]&&s.unshift(0);var f=s.map(function(d,p){var m=!s[p+1],y=m?i+c-d:s[p+1]-d;if(y<=0)return null;var g=p%n.length;return A.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:y,height:l,stroke:"none",fill:n[g],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var _m=function(e,r){var n=e.xAxis,a=e.width,i=e.height,o=e.offset;return gl(Pi(ce(ce(ce({},Ft.defaultProps),n),{},{ticks:_e(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},Cm=function(e,r){var n=e.yAxis,a=e.width,i=e.height,o=e.offset;return gl(Pi(ce(ce(ce({},Ft.defaultProps),n),{},{ticks:_e(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},vt={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Dm(t){var e,r,n,a,i,o,c=Oi(),l=Ai(),u=By(),s=ce(ce({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:vt.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:vt.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:vt.horizontal,horizontalFill:(a=t.horizontalFill)!==null&&a!==void 0?a:vt.horizontalFill,vertical:(i=t.vertical)!==null&&i!==void 0?i:vt.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:vt.verticalFill,x:M(t.x)?t.x:u.left,y:M(t.y)?t.y:u.top,width:M(t.width)?t.width:u.width,height:M(t.height)?t.height:u.height}),f=s.x,d=s.y,p=s.width,m=s.height,y=s.syncWithTicks,g=s.horizontalValues,O=s.verticalValues,b=Cy(),x=Dy();if(!M(p)||p<=0||!M(m)||m<=0||!M(f)||f!==+f||!M(d)||d!==+d)return null;var v=s.verticalCoordinatesGenerator||_m,h=s.horizontalCoordinatesGenerator||Cm,w=s.horizontalPoints,P=s.verticalPoints;if((!w||!w.length)&&W(h)){var S=g&&g.length,E=h({yAxis:x?ce(ce({},x),{},{ticks:S?g:x.ticks}):void 0,width:c,height:l,offset:u},S?!0:y);Se(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ot(E),"]")),Array.isArray(E)&&(w=E)}if((!P||!P.length)&&W(v)){var j=O&&O.length,C=v({xAxis:b?ce(ce({},b),{},{ticks:j?O:b.ticks}):void 0,width:c,height:l,offset:u},j?!0:y);Se(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ot(C),"]")),Array.isArray(C)&&(P=C)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(Em,{fill:s.fill,fillOpacity:s.fillOpacity,x:s.x,y:s.y,width:s.width,height:s.height}),A.createElement($m,rt({},s,{offset:u,horizontalPoints:w,xAxis:b,yAxis:x})),A.createElement(Tm,rt({},s,{offset:u,verticalPoints:P,xAxis:b,yAxis:x})),A.createElement(km,rt({},s,{horizontalPoints:w})),A.createElement(Im,rt({},s,{verticalPoints:P})))}Dm.displayName="CartesianGrid";var Mm=["type","layout","connectNulls","ref"];function Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Bm(t,e){if(t==null)return{};var r=Nm(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Nm(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function or(){return or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},or.apply(this,arguments)}function Ec(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ec(Object(r),!0).forEach(function(n){Pe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ec(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ht(t){return Wm(t)||zm(t)||Rm(t)||Lm()}function Lm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rm(t,e){if(t){if(typeof t=="string")return ei(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ei(t,e)}}function zm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wm(t){if(Array.isArray(t))return ei(t)}function ei(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Km(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,au(n.key),n)}}function Fm(t,e,r){return e&&$c(t.prototype,e),r&&$c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vm(t,e,r){return e=kn(e),Xm(t,nu()?Reflect.construct(e,r||[],kn(t).constructor):e.apply(t,r))}function Xm(t,e){if(e&&(Mt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Be(t)}function nu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nu=function(){return!!t})()}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kn(t)}function Be(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ti(t,e)}function ti(t,e){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ti(t,e)}function Pe(t,e,r){return e=au(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function au(t){var e=Hm(t,"string");return Mt(e)=="symbol"?e:String(e)}function Hm(t,e){if(Mt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Un=function(t){Gm(e,t);function e(){var r;Km(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Vm(this,e,[].concat(a)),Pe(Be(r),"state",{isAnimationFinished:!0,totalLength:0}),Pe(Be(r),"generateSimpleStrokeDasharray",function(o,c){return"".concat(c,"px ").concat(o-c,"px")}),Pe(Be(r),"getStrokeDasharray",function(o,c,l){var u=l.reduce(function(O,b){return O+b});if(!u)return r.generateSimpleStrokeDasharray(c,o);for(var s=Math.floor(o/u),f=o%u,d=c-o,p=[],m=0,y=0;m<l.length;y+=l[m],++m)if(y+l[m]>f){p=[].concat(ht(l.slice(0,m)),[f-y]);break}var g=p.length%2===0?[0,d]:[d];return[].concat(ht(e.repeat(l,s)),ht(p),g).map(function(O){return"".concat(O,"px")}).join(", ")}),Pe(Be(r),"id",Xe("recharts-line-")),Pe(Be(r),"pathRef",function(o){r.mainCurve=o}),Pe(Be(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Pe(Be(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Fm(e,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,c=i.xAxis,l=i.yAxis,u=i.layout,s=i.children,f=de(s,Kt);if(!f)return null;var d=function(y,g){return{x:y.x,y:y.y,value:y.value,errorVal:Q(y.payload,g)}},p={clipPath:n?"url(#clipPath-".concat(a,")"):null};return A.createElement(H,p,f.map(function(m){return A.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:c,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var c=this.props,l=c.dot,u=c.points,s=c.dataKey,f=R(this.props,!1),d=R(l,!0),p=u.map(function(y,g){var O=pe(pe(pe({key:"dot-".concat(g),r:3},f),d),{},{value:y.value,dataKey:s,cx:y.x,cy:y.y,index:g,payload:y.payload});return e.renderDotItem(l,O)}),m={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return A.createElement(H,or({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(n,a,i,o){var c=this.props,l=c.type,u=c.layout,s=c.connectNulls;c.ref;var f=Bm(c,Mm),d=pe(pe(pe({},R(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:s});return A.createElement(Ke,or({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,a){var i=this,o=this.props,c=o.points,l=o.strokeDasharray,u=o.isAnimationActive,s=o.animationBegin,f=o.animationDuration,d=o.animationEasing,p=o.animationId,m=o.animateNewValues,y=o.width,g=o.height,O=this.state,b=O.prevPoints,x=O.totalLength;return A.createElement(De,{begin:s,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var h=v.t;if(b){var w=b.length/c.length,P=c.map(function($,k){var T=Math.floor(k*w);if(b[T]){var D=b[T],_=te(D.x,$.x),N=te(D.y,$.y);return pe(pe({},$),{},{x:_(h),y:N(h)})}if(m){var L=te(y*2,$.x),V=te(g/2,$.y);return pe(pe({},$),{},{x:L(h),y:V(h)})}return pe(pe({},$),{},{x:$.x,y:$.y})});return i.renderCurveStatically(P,n,a)}var S=te(0,x),E=S(h),j;if(l){var C="".concat(l).split(/[,\s]+/gim).map(function($){return parseFloat($)});j=i.getStrokeDasharray(E,x,C)}else j=i.generateSimpleStrokeDasharray(x,E);return i.renderCurveStatically(c,n,a,{strokeDasharray:j})})}},{key:"renderCurve",value:function(n,a){var i=this.props,o=i.points,c=i.isAnimationActive,l=this.state,u=l.prevPoints,s=l.totalLength;return c&&o&&o.length&&(!u&&s>0||!Fe(u,o))?this.renderCurveWithAnimation(n,a):this.renderCurveStatically(o,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,c=a.points,l=a.className,u=a.xAxis,s=a.yAxis,f=a.top,d=a.left,p=a.width,m=a.height,y=a.isAnimationActive,g=a.id;if(i||!c||!c.length)return null;var O=this.state.isAnimationFinished,b=c.length===1,x=X("recharts-line",l),v=u&&u.allowDataOverflow,h=s&&s.allowDataOverflow,w=v||h,P=z(g)?this.id:g,S=(n=R(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=S.r,j=E===void 0?3:E,C=S.strokeWidth,$=C===void 0?2:C,k=Xc(o)?o:{},T=k.clipDot,D=T===void 0?!0:T,_=j*2+$;return A.createElement(H,{className:x},v||h?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(P)},A.createElement("rect",{x:v?d:d-p/2,y:h?f:f-m/2,width:v?p:p*2,height:h?m:m*2})),!D&&A.createElement("clipPath",{id:"clipPath-dots-".concat(P)},A.createElement("rect",{x:d-_/2,y:f-_/2,width:p+_,height:m+_}))):null,!b&&this.renderCurve(w,P),this.renderErrorBar(w,P),(b||o)&&this.renderDots(w,D,P),(!y||O)&&je.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,a){for(var i=n.length%2!==0?[].concat(ht(n),[0]):n,o=[],c=0;c<a;++c)o=[].concat(ht(o),ht(i));return o}},{key:"renderDotItem",value:function(n,a){var i;if(A.isValidElement(n))i=A.cloneElement(n,a);else if(W(n))i=n(a);else{var o=X("recharts-line-dot",typeof n!="boolean"?n.className:"");i=A.createElement(Kr,or({},a,{className:o}))}return i}}]),e}(B.PureComponent);Pe(Un,"displayName","Line");Pe(Un,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Me.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Pe(Un,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,a=t.xAxisTicks,i=t.yAxisTicks,o=t.dataKey,c=t.bandSize,l=t.displayedData,u=t.offset,s=e.layout,f=l.map(function(d,p){var m=Q(d,o);return s==="horizontal"?{x:Et({axis:r,ticks:a,bandSize:c,entry:d,index:p}),y:z(m)?null:n.scale(m),value:m,payload:d}:{x:z(m)?null:r.scale(m),y:Et({axis:n,ticks:i,bandSize:c,entry:d,index:p}),value:m,payload:d}});return pe({points:f,layout:s},u)});var Um=["layout","type","stroke","connectNulls","isRange","ref"],iu;function Bt(t){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(t)}function Ym(t,e){if(t==null)return{};var r=qm(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function qm(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function nt(){return nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nt.apply(this,arguments)}function Tc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tc(Object(r),!0).forEach(function(n){$e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Zm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cu(n.key),n)}}function Jm(t,e,r){return e&&kc(t.prototype,e),r&&kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qm(t,e,r){return e=In(e),eg(t,ou()?Reflect.construct(e,r||[],In(t).constructor):e.apply(t,r))}function eg(t,e){if(e&&(Bt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return er(t)}function ou(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ou=function(){return!!t})()}function In(t){return In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},In(t)}function er(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ri(t,e)}function ri(t,e){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ri(t,e)}function $e(t,e,r){return e=cu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cu(t){var e=rg(t,"string");return Bt(e)=="symbol"?e:String(e)}function rg(t,e){if(Bt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Bt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lt=function(t){tg(e,t);function e(){var r;Zm(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Qm(this,e,[].concat(a)),$e(er(r),"state",{isAnimationFinished:!0}),$e(er(r),"id",Xe("recharts-area-")),$e(er(r),"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),W(o)&&o()}),$e(er(r),"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),W(o)&&o()}),r}return Jm(e,[{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(o&&!c)return null;var l=this.props,u=l.dot,s=l.points,f=l.dataKey,d=R(this.props,!1),p=R(u,!0),m=s.map(function(g,O){var b=Ne(Ne(Ne({key:"dot-".concat(O),r:3},d),p),{},{index:O,cx:g.x,cy:g.y,dataKey:f,value:g.value,payload:g.payload,points:s});return e.renderDotItem(u,b)}),y={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return A.createElement(H,nt({className:"recharts-area-dots"},y),m)}},{key:"renderHorizontalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,c=a.strokeWidth,l=o[0].x,u=o[o.length-1].x,s=n*Math.abs(l-u),f=Re(o.map(function(d){return d.y||0}));return M(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Re(i.map(function(d){return d.y||0})),f)),M(f)?A.createElement("rect",{x:l<u?l:l-s,y:0,width:s,height:Math.floor(f+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,c=a.strokeWidth,l=o[0].y,u=o[o.length-1].y,s=n*Math.abs(l-u),f=Re(o.map(function(d){return d.x||0}));return M(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Re(i.map(function(d){return d.x||0})),f)),M(f)?A.createElement("rect",{x:0,y:l<u?l:l-s,width:f+(c?parseInt("".concat(c),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(n){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,a,i,o){var c=this.props,l=c.layout,u=c.type,s=c.stroke,f=c.connectNulls,d=c.isRange;c.ref;var p=Ym(c,Um);return A.createElement(H,{clipPath:i?"url(#clipPath-".concat(o,")"):null},A.createElement(Ke,nt({},R(p,!0),{points:n,connectNulls:f,type:u,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),s!=="none"&&A.createElement(Ke,nt({},R(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),s!=="none"&&d&&A.createElement(Ke,nt({},R(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(n,a){var i=this,o=this.props,c=o.points,l=o.baseLine,u=o.isAnimationActive,s=o.animationBegin,f=o.animationDuration,d=o.animationEasing,p=o.animationId,m=this.state,y=m.prevPoints,g=m.prevBaseLine;return A.createElement(De,{begin:s,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var b=O.t;if(y){var x=y.length/c.length,v=c.map(function(S,E){var j=Math.floor(E*x);if(y[j]){var C=y[j],$=te(C.x,S.x),k=te(C.y,S.y);return Ne(Ne({},S),{},{x:$(b),y:k(b)})}return S}),h;if(M(l)&&typeof l=="number"){var w=te(g,l);h=w(b)}else if(z(l)||zt(l)){var P=te(g,0);h=P(b)}else h=l.map(function(S,E){var j=Math.floor(E*x);if(g[j]){var C=g[j],$=te(C.x,S.x),k=te(C.y,S.y);return Ne(Ne({},S),{},{x:$(b),y:k(b)})}return S});return i.renderAreaStatically(v,h,n,a)}return A.createElement(H,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(b))),A.createElement(H,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(c,l,n,a)))})}},{key:"renderArea",value:function(n,a){var i=this.props,o=i.points,c=i.baseLine,l=i.isAnimationActive,u=this.state,s=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return l&&o&&o.length&&(!s&&d>0||!Fe(s,o)||!Fe(f,c))?this.renderAreaWithAnimation(n,a):this.renderAreaStatically(o,c,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,c=a.points,l=a.className,u=a.top,s=a.left,f=a.xAxis,d=a.yAxis,p=a.width,m=a.height,y=a.isAnimationActive,g=a.id;if(i||!c||!c.length)return null;var O=this.state.isAnimationFinished,b=c.length===1,x=X("recharts-area",l),v=f&&f.allowDataOverflow,h=d&&d.allowDataOverflow,w=v||h,P=z(g)?this.id:g,S=(n=R(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=S.r,j=E===void 0?3:E,C=S.strokeWidth,$=C===void 0?2:C,k=Xc(o)?o:{},T=k.clipDot,D=T===void 0?!0:T,_=j*2+$;return A.createElement(H,{className:x},v||h?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(P)},A.createElement("rect",{x:v?s:s-p/2,y:h?u:u-m/2,width:v?p:p*2,height:h?m:m*2})),!D&&A.createElement("clipPath",{id:"clipPath-dots-".concat(P)},A.createElement("rect",{x:s-_/2,y:u-_/2,width:p+_,height:m+_}))):null,b?null:this.renderArea(w,P),(o||b)&&this.renderDots(w,D,P),(!y||O)&&je.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:n.points!==a.curPoints||n.baseLine!==a.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}]),e}(B.PureComponent);iu=lt;$e(lt,"displayName","Area");$e(lt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Me.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});$e(lt,"getBaseValue",function(t,e,r,n){var a=t.layout,i=t.baseValue,o=e.props.baseValue,c=o??i;if(M(c)&&typeof c=="number")return c;var l=a==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return c==="dataMin"?f:c==="dataMax"||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return c==="dataMin"?u[0]:c==="dataMax"?u[1]:u[0]});$e(lt,"getComposedData",function(t){var e=t.props,r=t.item,n=t.xAxis,a=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,c=t.bandSize,l=t.dataKey,u=t.stackedData,s=t.dataStartIndex,f=t.displayedData,d=t.offset,p=e.layout,m=u&&u.length,y=iu.getBaseValue(e,r,n,a),g=p==="horizontal",O=!1,b=f.map(function(v,h){var w;m?w=u[s+h]:(w=Q(v,l),Array.isArray(w)?O=!0:w=[y,w]);var P=w[1]==null||m&&Q(v,l)==null;return g?{x:Et({axis:n,ticks:i,bandSize:c,entry:v,index:h}),y:P?null:a.scale(w[1]),value:w,payload:v}:{x:P?null:n.scale(w[1]),y:Et({axis:a,ticks:o,bandSize:c,entry:v,index:h}),value:w,payload:v}}),x;return m||O?x=b.map(function(v){var h=Array.isArray(v.value)?v.value[0]:null;return g?{x:v.x,y:h!=null&&v.y!=null?a.scale(h):null}:{x:h!=null?n.scale(h):null,y:v.y}}):x=g?a.scale(y):n.scale(y),Ne({points:b,baseLine:x,layout:p,isRange:O},d)});$e(lt,"renderDotItem",function(t,e){var r;if(A.isValidElement(t))r=A.cloneElement(t,e);else if(W(t))r=t(e);else{var n=X("recharts-area-dot",typeof t!="boolean"?t.className:"");r=A.createElement(Kr,nt({},e,{className:n}))}return r});var Yn=function(){return null};Yn.displayName="ZAxis";Yn.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var ng=["option","isActive"];function cr(){return cr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cr.apply(this,arguments)}function ag(t,e){if(t==null)return{};var r=ig(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ig(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function og(t){var e=t.option,r=t.isActive,n=ag(t,ng);return typeof e=="string"?A.createElement(An,cr({option:A.createElement(Bn,cr({type:e},n)),isActive:r,shapeType:"symbols"},n)):A.createElement(An,cr({option:e,isActive:r,shapeType:"symbols"},n))}function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function lr(){return lr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lr.apply(this,arguments)}function Ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function be(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ic(Object(r),!0).forEach(function(n){We(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function cg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uu(n.key),n)}}function lg(t,e,r){return e&&_c(t.prototype,e),r&&_c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ug(t,e,r){return e=_n(e),sg(t,lu()?Reflect.construct(e,r||[],_n(t).constructor):e.apply(t,r))}function sg(t,e){if(e&&(Nt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tr(t)}function lu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lu=function(){return!!t})()}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_n(t)}function tr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ni(t,e)}function ni(t,e){return ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ni(t,e)}function We(t,e,r){return e=uu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uu(t){var e=dg(t,"string");return Nt(e)=="symbol"?e:String(e)}function dg(t,e){if(Nt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qn=function(t){fg(e,t);function e(){var r;cg(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=ug(this,e,[].concat(a)),We(tr(r),"state",{isAnimationFinished:!1}),We(tr(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),We(tr(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),We(tr(r),"id",Xe("recharts-scatter-")),r}return lg(e,[{key:"renderSymbolsStatically",value:function(n){var a=this,i=this.props,o=i.shape,c=i.activeShape,l=i.activeIndex,u=R(this.props,!1);return n.map(function(s,f){var d=l===f,p=d?c:o,m=be(be({key:"symbol-".concat(f)},u),s);return A.createElement(H,lr({className:"recharts-scatter-symbol"},Ve(a.props,s,f),{key:"symbol-".concat(s==null?void 0:s.cx,"-").concat(s==null?void 0:s.cy,"-").concat(s==null?void 0:s.size,"-").concat(f),role:"img"}),A.createElement(og,lr({option:p,isActive:d},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,a=this.props,i=a.points,o=a.isAnimationActive,c=a.animationBegin,l=a.animationDuration,u=a.animationEasing,s=a.animationId,f=this.state.prevPoints;return A.createElement(De,{begin:c,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var p=d.t,m=i.map(function(y,g){var O=f&&f[g];if(O){var b=te(O.cx,y.cx),x=te(O.cy,y.cy),v=te(O.size,y.size);return be(be({},y),{},{cx:b(p),cy:x(p),size:v(p)})}var h=te(0,y.size);return be(be({},y),{},{size:h(p)})});return A.createElement(H,null,n.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var n=this.props,a=n.points,i=n.isAnimationActive,o=this.state.prevPoints;return i&&a&&a.length&&(!o||!Fe(o,a))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(a)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var a=this.props,i=a.points,o=a.xAxis,c=a.yAxis,l=a.children,u=de(l,Kt);return u?u.map(function(s,f){var d=s.props,p=d.direction,m=d.dataKey;return A.cloneElement(s,{key:"".concat(p,"-").concat(m,"-").concat(i[f]),data:i,xAxis:o,yAxis:c,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(g,O){return{x:g.cx,y:g.cy,value:p==="x"?+g.node.x:+g.node.y,errorVal:Q(g,O)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,a=n.points,i=n.line,o=n.lineType,c=n.lineJointType,l=R(this.props,!1),u=R(i,!1),s,f;if(o==="joint")s=a.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=ns(a),p=d.xmin,m=d.xmax,y=d.a,g=d.b,O=function(v){return y*v+g};s=[{x:p,y:O(p)},{x:m,y:O(m)}]}var b=be(be(be({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:s});return A.isValidElement(i)?f=A.cloneElement(i,b):W(i)?f=i(b):f=A.createElement(Ke,lr({},b,{type:c})),A.createElement(H,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.points,o=n.line,c=n.className,l=n.xAxis,u=n.yAxis,s=n.left,f=n.top,d=n.width,p=n.height,m=n.id,y=n.isAnimationActive;if(a||!i||!i.length)return null;var g=this.state.isAnimationFinished,O=X("recharts-scatter",c),b=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,v=b||x,h=z(m)?this.id:m;return A.createElement(H,{className:O,clipPath:v?"url(#clipPath-".concat(h,")"):null},b||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(h)},A.createElement("rect",{x:b?s:s-d/2,y:x?f:f-p/2,width:b?d:d*2,height:x?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),A.createElement(H,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||g)&&je.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}}]),e}(B.PureComponent);We(qn,"displayName","Scatter");We(qn,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Me.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});We(qn,"getComposedData",function(t){var e=t.xAxis,r=t.yAxis,n=t.zAxis,a=t.item,i=t.displayedData,o=t.xAxisTicks,c=t.yAxisTicks,l=t.offset,u=a.props.tooltipType,s=de(a.props.children,Ln),f=z(e.dataKey)?a.props.dataKey:e.dataKey,d=z(r.dataKey)?a.props.dataKey:r.dataKey,p=n&&n.dataKey,m=n?n.range:Yn.defaultProps.range,y=m&&m[0],g=e.scale.bandwidth?e.scale.bandwidth():0,O=r.scale.bandwidth?r.scale.bandwidth():0,b=i.map(function(x,v){var h=Q(x,f),w=Q(x,d),P=!z(p)&&Q(x,p)||"-",S=[{name:z(e.dataKey)?a.props.name:e.name||e.dataKey,unit:e.unit||"",value:h,payload:x,dataKey:f,type:u},{name:z(r.dataKey)?a.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:x,dataKey:d,type:u}];P!=="-"&&S.push({name:n.name||n.dataKey,unit:n.unit||"",value:P,payload:x,dataKey:p,type:u});var E=Et({axis:e,ticks:o,bandSize:g,entry:x,index:v,dataKey:f}),j=Et({axis:r,ticks:c,bandSize:O,entry:x,index:v,dataKey:d}),C=P!=="-"?n.scale(P):y,$=Math.sqrt(Math.max(C,0)/Math.PI);return be(be({},x),{},{cx:E,cy:j,x:E-$,y:j-$,xAxis:e,yAxis:r,zAxis:n,width:2*$,height:2*$,size:C,node:{x:h,y:w,z:P},tooltipPayload:S,tooltipPosition:{x:E,y:j},payload:x},s&&s[v]&&s[v].props)});return be({points:b},l)});function ai(){return ai=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ai.apply(this,arguments)}var Zn=function(e){var r=e.xAxisId,n=Oi(),a=Ai(),i=Zl(r);return i==null?null:A.createElement(Ft,ai({},i,{className:X("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(c){return _e(c,!0)}}))};Zn.displayName="XAxis";Zn.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 ii(){return ii=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ii.apply(this,arguments)}var Jn=function(e){var r=e.yAxisId,n=Oi(),a=Ai(),i=Jl(r);return i==null?null:A.createElement(Ft,ii({},i,{className:X("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(c){return _e(c,!0)}}))};Jn.displayName="YAxis";Jn.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 Cc(t){return yg(t)||hg(t)||vg(t)||pg()}function pg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vg(t,e){if(t){if(typeof t=="string")return oi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oi(t,e)}}function hg(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yg(t){if(Array.isArray(t))return oi(t)}function oi(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ci=function(e,r,n,a,i){var o=de(e,wi),c=de(e,Fr),l=[].concat(Cc(o),Cc(c)),u=de(e,Vr),s="".concat(a,"Id"),f=a[0],d=r;if(l.length&&(d=l.reduce(function(y,g){if(g.props[s]===n&&Te(g.props,"extendDomain")&&M(g.props[f])){var O=g.props[f];return[Math.min(y[0],O),Math.max(y[1],O)]}return y},d)),u.length){var p="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(y,g){if(g.props[s]===n&&Te(g.props,"extendDomain")&&M(g.props[p])&&M(g.props[m])){var O=g.props[p],b=g.props[m];return[Math.min(y[0],O,b),Math.max(y[1],O,b)]}return y},d)}return i&&i.length&&(d=i.reduce(function(y,g){return M(g)?[Math.min(y[0],g),Math.max(y[1],g)]:y},d)),d},ua=new es,sa="recharts.syncMouseEvents";function Rr(t){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(t)}function mg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,su(n.key),n)}}function bg(t,e,r){return e&&gg(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function fa(t,e,r){return e=su(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function su(t){var e=xg(t,"string");return Rr(e)=="symbol"?e:String(e)}function xg(t,e){if(Rr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Og=function(){function t(){mg(this,t),fa(this,"activeIndex",0),fa(this,"coordinateList",[]),fa(this,"layout","horizontal")}return bg(t,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,o=r.container,c=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,s=r.offset,f=s===void 0?null:s,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=c??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??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 a=this.container.getBoundingClientRect(),i=a.x,o=a.y,c=a.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,s=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+l+u,d=o+this.offset.top+c/2+s;this.mouseHandlerCallback({pageX:f,pageY:d})}}}]),t}();function Ag(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],a=t==null?void 0:t[1];if(n&&a&&M(n)&&M(a))return!0}return!1}function wg(t,e,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-a:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-a,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function fu(t){var e=t.cx,r=t.cy,n=t.radius,a=t.startAngle,i=t.endAngle,o=J(e,r,n,a),c=J(e,r,n,i);return{points:[o,c],cx:e,cy:r,radius:n,startAngle:a,endAngle:i}}function Pg(t,e,r){var n,a,i,o;if(t==="horizontal")n=e.x,i=n,a=r.top,o=r.top+r.height;else if(t==="vertical")a=e.y,o=a,n=r.left,i=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var c=e.cx,l=e.cy,u=e.innerRadius,s=e.outerRadius,f=e.angle,d=J(c,l,u,f),p=J(c,l,s,f);n=d.x,a=d.y,i=p.x,o=p.y}else return fu(e);return[{x:n,y:a},{x:i,y:o}]}function zr(t){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(t)}function Dc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function en(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dc(Object(r),!0).forEach(function(n){Sg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sg(t,e,r){return e=jg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jg(t){var e=Eg(t,"string");return zr(e)=="symbol"?e:String(e)}function Eg(t,e){if(zr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $g(t){var e=t.element,r=t.tooltipEventType,n=t.isActive,a=t.activeCoordinate,i=t.activePayload,o=t.offset,c=t.activeTooltipIndex,l=t.tooltipAxisBandSize,u=t.layout,s=t.chartName;if(!e||!e.props.cursor||!n||!a||s!=="ScatterChart"&&r!=="axis")return null;var f,d=Ke;if(s==="ScatterChart")f=a,d=Qv;else if(s==="BarChart")f=wg(u,a,o,l),d=mi;else if(u==="radial"){var p=fu(a),m=p.cx,y=p.cy,g=p.radius,O=p.startAngle,b=p.endAngle;f={cx:m,cy:y,startAngle:O,endAngle:b,innerRadius:g,outerRadius:g},d=Tl}else f={points:Pg(u,a,o)},d=Ke;var x=en(en(en(en({stroke:"#ccc",pointerEvents:"none"},o),f),R(e.props.cursor,!1)),{},{payload:i,payloadIndex:c,className:X("recharts-tooltip-cursor",e.props.cursor.className)});return B.isValidElement(e.props.cursor)?B.cloneElement(e.props.cursor,x):B.createElement(d,x)}var Tg=["item"],kg=["children","className","width","height","style","compact","title","desc"];function Lt(t){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(t)}function ur(){return ur=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ur.apply(this,arguments)}function Mc(t,e){return Cg(t)||_g(t,e)||pu(t,e)||Ig()}function Ig(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _g(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(s){u=!0,a=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}function Cg(t){if(Array.isArray(t))return t}function Bc(t,e){if(t==null)return{};var r=Dg(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Dg(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Mg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vu(n.key),n)}}function Ng(t,e,r){return e&&Bg(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Lg(t,e,r){return e=Cn(e),Rg(t,du()?Reflect.construct(e,r||[],Cn(t).constructor):e.apply(t,r))}function Rg(t,e){if(e&&(Lt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(t)}function du(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(du=function(){return!!t})()}function Cn(t){return Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cn(t)}function q(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&li(t,e)}function li(t,e){return li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},li(t,e)}function Rt(t){return Fg(t)||Kg(t)||pu(t)||Wg()}function Wg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pu(t,e){if(t){if(typeof t=="string")return ui(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ui(t,e)}}function Kg(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Fg(t){if(Array.isArray(t))return ui(t)}function ui(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nc(Object(r),!0).forEach(function(n){K(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function K(t,e,r){return e=vu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vu(t){var e=Vg(t,"string");return Lt(e)=="symbol"?e:String(e)}function Vg(t,e){if(Lt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xg={xAxis:["bottom","top"],yAxis:["left","right"]},Gg={width:"100%",height:"100%"},hu={x:0,y:0};function tn(t){return t}var Hg=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},Ug=function(e,r,n,a){var i=r.find(function(s){return s&&s.index===n});if(i){if(e==="horizontal")return{x:i.coordinate,y:a.y};if(e==="vertical")return{x:a.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,c=a.radius;return I(I(I({},a),J(a.cx,a.cy,c,o)),{},{angle:o,radius:c})}var l=i.coordinate,u=a.angle;return I(I(I({},a),J(a.cx,a.cy,l,u)),{},{angle:u,radius:l})}return hu},Qn=function(e,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(c,l){var u=l.props.data;return u&&u.length?[].concat(Rt(c),Rt(u)):c},[]);return o.length>0?o:e&&e.length&&M(a)&&M(i)?e.slice(a,i+1):[]};function yu(t){return t==="number"?[0,"auto"]:void 0}var si=function(e,r,n,a){var i=e.graphicalItems,o=e.tooltipAxis,c=Qn(r,e);return n<0||!i||!i.length||n>=c.length?null:i.reduce(function(l,u){var s,f=(s=u.props.data)!==null&&s!==void 0?s:r;f&&e.dataStartIndex+e.dataEndIndex!==0&&(f=f.slice(e.dataStartIndex,e.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?c:f;d=on(p,o.dataKey,a)}else d=f&&f[n]||c[n];return d?[].concat(Rt(l),[wl(u,d)]):l},[])},Lc=function(e,r,n,a){var i=a||{x:e.chartX,y:e.chartY},o=Hg(i,n),c=e.orderedTooltipTicks,l=e.tooltipAxis,u=e.tooltipTicks,s=op(o,c,u,l);if(s>=0&&u){var f=u[s]&&u[s].value,d=si(e,r,s,f),p=Ug(n,c,s,i);return{activeTooltipIndex:s,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},Yg=function(e,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,c=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,s=e.layout,f=e.children,d=e.stackOffset,p=ml(s,i);return n.reduce(function(m,y){var g,O=y.props,b=O.type,x=O.dataKey,v=O.allowDataOverflow,h=O.allowDuplicatedCategory,w=O.scale,P=O.ticks,S=O.includeHidden,E=y.props[o];if(m[E])return m;var j=Qn(e.data,{graphicalItems:a.filter(function(F){return F.props[o]===E}),dataStartIndex:l,dataEndIndex:u}),C=j.length,$,k,T;Ag(y.props.domain,v,b)&&($=Ba(y.props.domain,null,v),p&&(b==="number"||w!=="auto")&&(T=nr(j,x,"category")));var D=yu(b);if(!$||$.length===0){var _,N=(_=y.props.domain)!==null&&_!==void 0?_:D;if(x){if($=nr(j,x,b),b==="category"&&p){var L=rs($);h&&L?(k=$,$=an(0,C)):h||($=Po(N,$,y).reduce(function(F,Y){return F.indexOf(Y)>=0?F:[].concat(Rt(F),[Y])},[]))}else if(b==="category")h?$=$.filter(function(F){return F!==""&&!z(F)}):$=Po(N,$,y).reduce(function(F,Y){return F.indexOf(Y)>=0||Y===""||z(Y)?F:[].concat(Rt(F),[Y])},[]);else if(b==="number"){var V=fp(j,a.filter(function(F){return F.props[o]===E&&(S||!F.props.hide)}),x,i,s);V&&($=V)}p&&(b==="number"||w!=="auto")&&(T=nr(j,x,"category"))}else p?$=an(0,C):c&&c[E]&&c[E].hasStack&&b==="number"?$=d==="expand"?[0,1]:Al(c[E].stackGroups,l,u):$=yl(j,a.filter(function(F){return F.props[o]===E&&(S||!F.props.hide)}),b,s,!0);if(b==="number")$=ci(f,$,E,i,P),N&&($=Ba(N,$,v));else if(b==="category"&&N){var G=N,U=$.every(function(F){return G.indexOf(F)>=0});U&&($=G)}}return I(I({},m),{},K({},E,I(I({},y.props),{},{axisType:i,domain:$,categoricalDomain:T,duplicateDomain:k,originalDomain:(g=y.props.domain)!==null&&g!==void 0?g:D,isCategorical:p,layout:s})))},{})},qg=function(e,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,c=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,s=e.layout,f=e.children,d=Qn(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=d.length,m=ml(s,i),y=-1;return n.reduce(function(g,O){var b=O.props[o],x=yu("number");if(!g[b]){y++;var v;return m?v=an(0,p):c&&c[b]&&c[b].hasStack?(v=Al(c[b].stackGroups,l,u),v=ci(f,v,b,i)):(v=Ba(x,yl(d,n.filter(function(h){return h.props[o]===b&&!h.props.hide}),"number",s),a.defaultProps.allowDataOverflow),v=ci(f,v,b,i)),I(I({},g),{},K({},b,I(I({axisType:i},a.defaultProps),{},{hide:!0,orientation:ye(Xg,"".concat(i,".").concat(y%2),null),domain:v,originalDomain:x,isCategorical:m,layout:s})))}return g},{})},Zg=function(e,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,c=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,s=e.children,f="".concat(a,"Id"),d=de(s,i),p={};return d&&d.length?p=Yg(e,{axes:d,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:c,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=qg(e,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:c,dataStartIndex:l,dataEndIndex:u})),p},Jg=function(e){var r=Le(e),n=_e(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:fi(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:vn(r,n)}},Rc=function(e){var r=e.children,n=e.defaultShowTooltip,a=he(r,_t),i=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Qg=function(e){return!e||!e.length?!1:e.some(function(r){var n=Ce(r&&r.type);return n&&n.indexOf("Bar")>=0})},zc=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},eb=function(e,r){var n=e.props,a=e.graphicalItems,i=e.xAxisMap,o=i===void 0?{}:i,c=e.yAxisMap,l=c===void 0?{}:c,u=n.width,s=n.height,f=n.children,d=n.margin||{},p=he(f,_t),m=he(f,dr),y=Object.keys(l).reduce(function(h,w){var P=l[w],S=P.orientation;return!P.mirror&&!P.hide?I(I({},h),{},K({},S,h[S]+P.width)):h},{left:d.left||0,right:d.right||0}),g=Object.keys(o).reduce(function(h,w){var P=o[w],S=P.orientation;return!P.mirror&&!P.hide?I(I({},h),{},K({},S,ye(h,"".concat(S))+P.height)):h},{top:d.top||0,bottom:d.bottom||0}),O=I(I({},g),y),b=O.bottom;p&&(O.bottom+=p.props.height||_t.defaultProps.height),m&&r&&(O=up(O,a,n,r));var x=u-O.left-O.right,v=s-O.top-O.bottom;return I(I({brushBottom:b},O),{},{width:Math.max(x,0),height:Math.max(v,0)})},tb=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},ji=function(e){var r,n=e.chartName,a=e.GraphicalChild,i=e.defaultTooltipEventType,o=i===void 0?"axis":i,c=e.validateTooltipEventTypes,l=c===void 0?["axis"]:c,u=e.axisComponents,s=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(g,O){var b=O.graphicalItems,x=O.stackGroups,v=O.offset,h=O.updateId,w=O.dataStartIndex,P=O.dataEndIndex,S=g.barSize,E=g.layout,j=g.barGap,C=g.barCategoryGap,$=g.maxBarSize,k=zc(E),T=k.numericAxisName,D=k.cateAxisName,_=Qg(b),N=[];return b.forEach(function(L,V){var G=Qn(g.data,{graphicalItems:[L],dataStartIndex:w,dataEndIndex:P}),U=L.props,F=U.dataKey,Y=U.maxBarSize,le=L.props["".concat(T,"Id")],me=L.props["".concat(D,"Id")],Vt={},ge=u.reduce(function(Ye,qe){var ea=O["".concat(qe.axisType,"Map")],Ei=L.props["".concat(qe.axisType,"Id")];ea&&ea[Ei]||qe.axisType==="zAxis"||at(!1);var $i=ea[Ei];return I(I({},Ye),{},K(K({},qe.axisType,$i),"".concat(qe.axisType,"Ticks"),_e($i)))},Vt),He=ge[D],Xr=ge["".concat(D,"Ticks")],ut=x&&x[le]&&x[le].hasStack&&xp(L,x[le].stackGroups),Xt=Ce(L.type).indexOf("Bar")>=0,Ue=vn(He,Xr),st=[],Gt=_&&cp({barSize:S,stackGroups:x,totalSize:tb(ge,D)});if(Xt){var Ht,ft,Ut=z(Y)?$:Y,dt=(Ht=(ft=vn(He,Xr,!0))!==null&&ft!==void 0?ft:Ut)!==null&&Ht!==void 0?Ht:0;st=lp({barGap:j,barCategoryGap:C,bandSize:dt!==Ue?dt:Ue,sizeList:Gt[me],maxBarSize:Ut}),dt!==Ue&&(st=st.map(function(Ye){return I(I({},Ye),{},{position:I(I({},Ye.position),{},{offset:Ye.position.offset-dt/2})})}))}var Gr=L&&L.type&&L.type.getComposedData;Gr&&N.push({props:I(I({},Gr(I(I({},ge),{},{displayedData:G,props:g,dataKey:F,item:L,bandSize:Ue,barPosition:st,offset:v,stackedData:ut,layout:E,dataStartIndex:w,dataEndIndex:P}))),{},K(K(K({key:L.key||"item-".concat(V)},T,ge[T]),D,ge[D]),"animationId",h)),childIndex:vs(L,g.children),item:L})}),N},m=function(g,O){var b=g.props,x=g.dataStartIndex,v=g.dataEndIndex,h=g.updateId;if(!Ni({props:b}))return null;var w=b.children,P=b.layout,S=b.stackOffset,E=b.data,j=b.reverseStackOrder,C=zc(P),$=C.numericAxisName,k=C.cateAxisName,T=de(w,a),D=gp(E,T,"".concat($,"Id"),"".concat(k,"Id"),S,j),_=u.reduce(function(U,F){var Y="".concat(F.axisType,"Map");return I(I({},U),{},K({},Y,Zg(b,I(I({},F),{},{graphicalItems:T,stackGroups:F.axisType===$&&D,dataStartIndex:x,dataEndIndex:v}))))},{}),N=eb(I(I({},_),{},{props:b,graphicalItems:T}),O==null?void 0:O.legendBBox);Object.keys(_).forEach(function(U){_[U]=f(b,_[U],N,U.replace("Map",""),n)});var L=_["".concat(k,"Map")],V=Jg(L),G=p(b,I(I({},_),{},{dataStartIndex:x,dataEndIndex:v,updateId:h,graphicalItems:T,stackGroups:D,offset:N}));return I(I({formattedGraphicalItems:G,graphicalItems:T,offset:N,stackGroups:D},V),_)};return r=function(y){zg(g,y);function g(O){var b,x,v;return Mg(this,g),v=Lg(this,g,[O]),K(q(v),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(q(v),"accessibilityManager",new Og),K(q(v),"handleLegendBBoxUpdate",function(h){if(h){var w=v.state,P=w.dataStartIndex,S=w.dataEndIndex,E=w.updateId;v.setState(I({legendBBox:h},m({props:v.props,dataStartIndex:P,dataEndIndex:S,updateId:E},I(I({},v.state),{},{legendBBox:h}))))}}),K(q(v),"handleReceiveSyncEvent",function(h,w,P){if(v.props.syncId===h){if(P===v.eventEmitterSymbol&&typeof v.props.syncMethod!="function")return;v.applySyncEvent(w)}}),K(q(v),"handleBrushChange",function(h){var w=h.startIndex,P=h.endIndex;if(w!==v.state.dataStartIndex||P!==v.state.dataEndIndex){var S=v.state.updateId;v.setState(function(){return I({dataStartIndex:w,dataEndIndex:P},m({props:v.props,dataStartIndex:w,dataEndIndex:P,updateId:S},v.state))}),v.triggerSyncEvent({dataStartIndex:w,dataEndIndex:P})}}),K(q(v),"handleMouseEnter",function(h){var w=v.getMouseInfo(h);if(w){var P=I(I({},w),{},{isTooltipActive:!0});v.setState(P),v.triggerSyncEvent(P);var S=v.props.onMouseEnter;W(S)&&S(P,h)}}),K(q(v),"triggeredAfterMouseMove",function(h){var w=v.getMouseInfo(h),P=w?I(I({},w),{},{isTooltipActive:!0}):{isTooltipActive:!1};v.setState(P),v.triggerSyncEvent(P);var S=v.props.onMouseMove;W(S)&&S(P,h)}),K(q(v),"handleItemMouseEnter",function(h){v.setState(function(){return{isTooltipActive:!0,activeItem:h,activePayload:h.tooltipPayload,activeCoordinate:h.tooltipPosition||{x:h.cx,y:h.cy}}})}),K(q(v),"handleItemMouseLeave",function(){v.setState(function(){return{isTooltipActive:!1}})}),K(q(v),"handleMouseMove",function(h){h.persist(),v.throttleTriggeredAfterMouseMove(h)}),K(q(v),"handleMouseLeave",function(h){v.throttleTriggeredAfterMouseMove.cancel();var w={isTooltipActive:!1};v.setState(w),v.triggerSyncEvent(w);var P=v.props.onMouseLeave;W(P)&&P(w,h)}),K(q(v),"handleOuterEvent",function(h){var w=ps(h),P=ye(v.props,"".concat(w));if(w&&W(P)){var S,E;/.*touch.*/i.test(w)?E=v.getMouseInfo(h.changedTouches[0]):E=v.getMouseInfo(h),P((S=E)!==null&&S!==void 0?S:{},h)}}),K(q(v),"handleClick",function(h){var w=v.getMouseInfo(h);if(w){var P=I(I({},w),{},{isTooltipActive:!0});v.setState(P),v.triggerSyncEvent(P);var S=v.props.onClick;W(S)&&S(P,h)}}),K(q(v),"handleMouseDown",function(h){var w=v.props.onMouseDown;if(W(w)){var P=v.getMouseInfo(h);w(P,h)}}),K(q(v),"handleMouseUp",function(h){var w=v.props.onMouseUp;if(W(w)){var P=v.getMouseInfo(h);w(P,h)}}),K(q(v),"handleTouchMove",function(h){h.changedTouches!=null&&h.changedTouches.length>0&&v.throttleTriggeredAfterMouseMove(h.changedTouches[0])}),K(q(v),"handleTouchStart",function(h){h.changedTouches!=null&&h.changedTouches.length>0&&v.handleMouseDown(h.changedTouches[0])}),K(q(v),"handleTouchEnd",function(h){h.changedTouches!=null&&h.changedTouches.length>0&&v.handleMouseUp(h.changedTouches[0])}),K(q(v),"triggerSyncEvent",function(h){v.props.syncId!==void 0&&ua.emit(sa,v.props.syncId,h,v.eventEmitterSymbol)}),K(q(v),"applySyncEvent",function(h){var w=v.props,P=w.layout,S=w.syncMethod,E=v.state.updateId,j=h.dataStartIndex,C=h.dataEndIndex;if(h.dataStartIndex!==void 0||h.dataEndIndex!==void 0)v.setState(I({dataStartIndex:j,dataEndIndex:C},m({props:v.props,dataStartIndex:j,dataEndIndex:C,updateId:E},v.state)));else if(h.activeTooltipIndex!==void 0){var $=h.chartX,k=h.chartY,T=h.activeTooltipIndex,D=v.state,_=D.offset,N=D.tooltipTicks;if(!_)return;if(typeof S=="function")T=S(N,h);else if(S==="value"){T=-1;for(var L=0;L<N.length;L++)if(N[L].value===h.activeLabel){T=L;break}}var V=I(I({},_),{},{x:_.left,y:_.top}),G=Math.min($,V.x+V.width),U=Math.min(k,V.y+V.height),F=N[T]&&N[T].value,Y=si(v.state,v.props.data,T),le=N[T]?{x:P==="horizontal"?N[T].coordinate:G,y:P==="horizontal"?U:N[T].coordinate}:hu;v.setState(I(I({},h),{},{activeLabel:F,activeCoordinate:le,activePayload:Y,activeTooltipIndex:T}))}else v.setState(h)}),K(q(v),"renderCursor",function(h){var w,P=v.state,S=P.isTooltipActive,E=P.activeCoordinate,j=P.activePayload,C=P.offset,$=P.activeTooltipIndex,k=P.tooltipAxisBandSize,T=v.getTooltipEventType(),D=(w=h.props.active)!==null&&w!==void 0?w:S,_=v.props.layout,N=h.key||"_recharts-cursor";return A.createElement($g,{key:N,activeCoordinate:E,activePayload:j,activeTooltipIndex:$,chartName:n,element:h,isActive:D,layout:_,offset:C,tooltipAxisBandSize:k,tooltipEventType:T})}),K(q(v),"renderPolarAxis",function(h,w,P){var S=ye(h,"type.axisType"),E=ye(v.state,"".concat(S,"Map")),j=E&&E[h.props["".concat(S,"Id")]];return B.cloneElement(h,I(I({},j),{},{className:X(S,j.className),key:h.key||"".concat(w,"-").concat(P),ticks:_e(j,!0)}))}),K(q(v),"renderPolarGrid",function(h){var w=h.props,P=w.radialLines,S=w.polarAngles,E=w.polarRadius,j=v.state,C=j.radiusAxisMap,$=j.angleAxisMap,k=Le(C),T=Le($),D=T.cx,_=T.cy,N=T.innerRadius,L=T.outerRadius;return B.cloneElement(h,{polarAngles:Array.isArray(S)?S:_e(T,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(E)?E:_e(k,!0).map(function(V){return V.coordinate}),cx:D,cy:_,innerRadius:N,outerRadius:L,key:h.key||"polar-grid",radialLines:P})}),K(q(v),"renderLegend",function(){var h=v.state.formattedGraphicalItems,w=v.props,P=w.children,S=w.width,E=w.height,j=v.props.margin||{},C=S-(j.left||0)-(j.right||0),$=vl({children:P,formattedGraphicalItems:h,legendWidth:C,legendContent:s});if(!$)return null;var k=$.item,T=Bc($,Tg);return B.cloneElement(k,I(I({},T),{},{chartWidth:S,chartHeight:E,margin:j,onBBoxUpdate:v.handleLegendBBoxUpdate}))}),K(q(v),"renderTooltip",function(){var h,w=v.props,P=w.children,S=w.accessibilityLayer,E=he(P,ke);if(!E)return null;var j=v.state,C=j.isTooltipActive,$=j.activeCoordinate,k=j.activePayload,T=j.activeLabel,D=j.offset,_=(h=E.props.active)!==null&&h!==void 0?h:C;return B.cloneElement(E,{viewBox:I(I({},D),{},{x:D.left,y:D.top}),active:_,label:T,payload:_?k:[],coordinate:$,accessibilityLayer:S})}),K(q(v),"renderBrush",function(h){var w=v.props,P=w.margin,S=w.data,E=v.state,j=E.offset,C=E.dataStartIndex,$=E.dataEndIndex,k=E.updateId;return B.cloneElement(h,{key:h.key||"_recharts-brush",onChange:Zr(v.handleBrushChange,h.props.onChange),data:S,x:M(h.props.x)?h.props.x:j.left,y:M(h.props.y)?h.props.y:j.top+j.height+j.brushBottom-(P.bottom||0),width:M(h.props.width)?h.props.width:j.width,startIndex:C,endIndex:$,updateId:"brush-".concat(k)})}),K(q(v),"renderReferenceElement",function(h,w,P){if(!h)return null;var S=q(v),E=S.clipPathId,j=v.state,C=j.xAxisMap,$=j.yAxisMap,k=j.offset,T=h.props,D=T.xAxisId,_=T.yAxisId;return B.cloneElement(h,{key:h.key||"".concat(w,"-").concat(P),xAxis:C[D],yAxis:$[_],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:E})}),K(q(v),"renderActivePoints",function(h){var w=h.item,P=h.activePoint,S=h.basePoint,E=h.childIndex,j=h.isRange,C=[],$=w.props.key,k=w.item.props,T=k.activeDot,D=k.dataKey,_=I(I({index:E,dataKey:D,cx:P.x,cy:P.y,r:4,fill:yi(w.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value,key:"".concat($,"-activePoint-").concat(E)},R(T,!1)),cn(T));return C.push(g.renderActiveDot(T,_)),S?C.push(g.renderActiveDot(T,I(I({},_),{},{cx:S.x,cy:S.y,key:"".concat($,"-basePoint-").concat(E)}))):j&&C.push(null),C}),K(q(v),"renderGraphicChild",function(h,w,P){var S=v.filterFormatItem(h,w,P);if(!S)return null;var E=v.getTooltipEventType(),j=v.state,C=j.isTooltipActive,$=j.tooltipAxis,k=j.activeTooltipIndex,T=j.activeLabel,D=v.props.children,_=he(D,ke),N=S.props,L=N.points,V=N.isRange,G=N.baseLine,U=S.item.props,F=U.activeDot,Y=U.hide,le=U.activeBar,me=U.activeShape,Vt=!!(!Y&&C&&_&&(F||le||me)),ge={};E!=="axis"&&_&&_.props.trigger==="click"?ge={onClick:Zr(v.handleItemMouseEnter,h.props.onClick)}:E!=="axis"&&(ge={onMouseLeave:Zr(v.handleItemMouseLeave,h.props.onMouseLeave),onMouseEnter:Zr(v.handleItemMouseEnter,h.props.onMouseEnter)});var He=B.cloneElement(h,I(I({},S.props),ge));function Xr(qe){return typeof $.dataKey=="function"?$.dataKey(qe.payload):null}if(Vt)if(k>=0){var ut,Xt;if($.dataKey&&!$.allowDuplicatedCategory){var Ue=typeof $.dataKey=="function"?Xr:"payload.".concat($.dataKey.toString());ut=on(L,Ue,T),Xt=V&&G&&on(G,Ue,T)}else ut=L==null?void 0:L[k],Xt=V&&G&&G[k];if(me||le){var st=h.props.activeIndex!==void 0?h.props.activeIndex:k;return[B.cloneElement(h,I(I(I({},S.props),ge),{},{activeIndex:st})),null,null]}if(!z(ut))return[He].concat(Rt(v.renderActivePoints({item:S,activePoint:ut,basePoint:Xt,childIndex:k,isRange:V})))}else{var Gt,Ht=(Gt=v.getItemByXY(v.state.activeCoordinate))!==null&&Gt!==void 0?Gt:{graphicalItem:He},ft=Ht.graphicalItem,Ut=ft.item,dt=Ut===void 0?h:Ut,Gr=ft.childIndex,Ye=I(I(I({},S.props),ge),{},{activeIndex:Gr});return[B.cloneElement(dt,Ye),null,null]}return V?[He,null,null]:[He,null]}),K(q(v),"renderCustomized",function(h,w,P){return B.cloneElement(h,I(I({key:"recharts-customized-".concat(P)},v.props),v.state))}),K(q(v),"renderMap",{CartesianGrid:{handler:tn,once:!0},ReferenceArea:{handler:v.renderReferenceElement},ReferenceLine:{handler:tn},ReferenceDot:{handler:v.renderReferenceElement},XAxis:{handler:tn},YAxis:{handler:tn},Brush:{handler:v.renderBrush,once:!0},Bar:{handler:v.renderGraphicChild},Line:{handler:v.renderGraphicChild},Area:{handler:v.renderGraphicChild},Radar:{handler:v.renderGraphicChild},RadialBar:{handler:v.renderGraphicChild},Scatter:{handler:v.renderGraphicChild},Pie:{handler:v.renderGraphicChild},Funnel:{handler:v.renderGraphicChild},Tooltip:{handler:v.renderCursor,once:!0},PolarGrid:{handler:v.renderPolarGrid,once:!0},PolarAngleAxis:{handler:v.renderPolarAxis},PolarRadiusAxis:{handler:v.renderPolarAxis},Customized:{handler:v.renderCustomized}}),v.clipPathId="".concat((b=O.id)!==null&&b!==void 0?b:Xe("recharts"),"-clip"),v.throttleTriggeredAfterMouseMove=Kc(v.triggeredAfterMouseMove,(x=O.throttleDelay)!==null&&x!==void 0?x:1e3/60),v.state={},v}return Ng(g,[{key:"componentDidMount",value:function(){var b,x;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,x=b.children,v=b.data,h=b.height,w=b.layout,P=he(x,ke);if(P){var S=P.props.defaultIndex;if(!(typeof S!="number"||S<0||S>this.state.tooltipTicks.length)){var E=this.state.tooltipTicks[S]&&this.state.tooltipTicks[S].value,j=si(this.state,v,S,E),C=this.state.tooltipTicks[S].coordinate,$=(this.state.offset.top+h)/2,k=w==="horizontal",T=k?{x:C,y:$}:{y:C,x:$},D=this.state.formattedGraphicalItems.find(function(N){var L=N.item;return L.type.name==="Scatter"});D&&(T=I(I({},T),D.props.points[S].tooltipPosition),j=D.props.points[S].tooltipPayload);var _={activeTooltipIndex:S,isTooltipActive:!0,activeLabel:E,activePayload:j,activeCoordinate:T};this.setState(_),this.renderCursor(P),this.accessibilityManager.setIndex(S)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var v,h;this.accessibilityManager.setDetails({offset:{left:(v=this.props.margin.left)!==null&&v!==void 0?v:0,top:(h=this.props.margin.top)!==null&&h!==void 0?h:0}})}return null}},{key:"componentDidUpdate",value:function(b){ha([he(b.children,ke)],[he(this.props.children,ke)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=he(this.props.children,ke);if(b&&typeof b.props.shared=="boolean"){var x=b.props.shared?"axis":"item";return l.indexOf(x)>=0?x:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var x=this.container,v=x.getBoundingClientRect(),h=Hf(v),w={chartX:Math.round(b.pageX-h.left),chartY:Math.round(b.pageY-h.top)},P=v.width/x.offsetWidth||1,S=this.inRange(w.chartX,w.chartY,P);if(!S)return null;var E=this.state,j=E.xAxisMap,C=E.yAxisMap,$=this.getTooltipEventType();if($!=="axis"&&j&&C){var k=Le(j).scale,T=Le(C).scale,D=k&&k.invert?k.invert(w.chartX):null,_=T&&T.invert?T.invert(w.chartY):null;return I(I({},w),{},{xValue:D,yValue:_})}var N=Lc(this.state,this.props.data,this.props.layout,S);return N?I(I({},w),N):null}},{key:"inRange",value:function(b,x){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,h=this.props.layout,w=b/v,P=x/v;if(h==="horizontal"||h==="vertical"){var S=this.state.offset,E=w>=S.left&&w<=S.left+S.width&&P>=S.top&&P<=S.top+S.height;return E?{x:w,y:P}:null}var j=this.state,C=j.angleAxisMap,$=j.radiusAxisMap;if(C&&$){var k=Le(C);return Eo({x:w,y:P},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,x=this.getTooltipEventType(),v=he(b,ke),h={};v&&x==="axis"&&(v.props.trigger==="click"?h={onClick:this.handleClick}:h={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var w=cn(this.props,this.handleOuterEvent);return I(I({},w),h)}},{key:"addListener",value:function(){ua.on(sa,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ua.removeListener(sa,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,x,v){for(var h=this.state.formattedGraphicalItems,w=0,P=h.length;w<P;w++){var S=h[w];if(S.item===b||S.props.key===b.key||x===Ce(S.item.type)&&v===S.childIndex)return S}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,x=this.state.offset,v=x.left,h=x.top,w=x.height,P=x.width;return A.createElement("defs",null,A.createElement("clipPath",{id:b},A.createElement("rect",{x:v,y:h,height:w,width:P})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(x,v){var h=Mc(v,2),w=h[0],P=h[1];return I(I({},x),{},K({},w,P.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(x,v){var h=Mc(v,2),w=h[0],P=h[1];return I(I({},x),{},K({},w,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var x;return(x=this.state.xAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getYScaleByAxisId",value:function(b){var x;return(x=this.state.yAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getItemByXY",value:function(b){var x=this.state,v=x.formattedGraphicalItems,h=x.activeItem;if(v&&v.length)for(var w=0,P=v.length;w<P;w++){var S=v[w],E=S.props,j=S.item,C=Ce(j.type);if(C==="Bar"){var $=(E.data||[]).find(function(_){return Cv(b,_)});if($)return{graphicalItem:S,payload:$}}else if(C==="RadialBar"){var k=(E.data||[]).find(function(_){return Eo(b,_)});if(k)return{graphicalItem:S,payload:k}}else if(Xn(S,h)||Gn(S,h)||Ir(S,h)){var T=Vh({graphicalItem:S,activeTooltipItem:h,itemData:j.props.data}),D=j.props.activeIndex===void 0?T:j.props.activeIndex;return{graphicalItem:I(I({},S),{},{childIndex:D}),payload:Ir(S,h)?j.props.data[T]:S.props.data[T]}}}return null}},{key:"render",value:function(){var b=this;if(!Ni(this))return null;var x=this.props,v=x.children,h=x.className,w=x.width,P=x.height,S=x.style,E=x.compact,j=x.title,C=x.desc,$=Bc(x,kg),k=R($,!1);if(E)return A.createElement(vc,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(ma,ur({},k,{width:w,height:P,title:j,desc:C}),this.renderClipPath(),Ri(v,this.renderMap)));if(this.props.accessibilityLayer){var T,D;k.tabIndex=(T=this.props.tabIndex)!==null&&T!==void 0?T:0,k.role=(D=this.props.role)!==null&&D!==void 0?D:"application",k.onKeyDown=function(N){b.accessibilityManager.keyboardEvent(N)},k.onFocus=function(){b.accessibilityManager.focus()}}var _=this.parseEventsOfWrapper();return A.createElement(vc,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",ur({className:X("recharts-wrapper",h),style:I({position:"relative",cursor:"default",width:w,height:P},S)},_,{ref:function(L){b.container=L}}),A.createElement(ma,ur({},k,{width:w,height:P,title:j,desc:C,style:Gg}),this.renderClipPath(),Ri(v,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),g}(B.Component),K(r,"displayName",n),K(r,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),K(r,"getDerivedStateFromProps",function(y,g){var O=y.dataKey,b=y.data,x=y.children,v=y.width,h=y.height,w=y.layout,P=y.stackOffset,S=y.margin,E=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var C=Rc(y);return I(I(I({},C),{},{updateId:0},m(I(I({props:y},C),{},{updateId:0}),g)),{},{prevDataKey:O,prevData:b,prevWidth:v,prevHeight:h,prevLayout:w,prevStackOffset:P,prevMargin:S,prevChildren:x})}if(O!==g.prevDataKey||b!==g.prevData||v!==g.prevWidth||h!==g.prevHeight||w!==g.prevLayout||P!==g.prevStackOffset||!Ot(S,g.prevMargin)){var $=Rc(y),k={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},T=I(I({},Lc(g,b,w)),{},{updateId:g.updateId+1}),D=I(I(I({},$),k),T);return I(I(I({},D),m(I({props:y},D),g)),{},{prevDataKey:O,prevData:b,prevWidth:v,prevHeight:h,prevLayout:w,prevStackOffset:P,prevMargin:S,prevChildren:x})}if(!ha(x,g.prevChildren)){var _,N,L,V,G=he(x,_t),U=G&&(_=(N=G.props)===null||N===void 0?void 0:N.startIndex)!==null&&_!==void 0?_:E,F=G&&(L=(V=G.props)===null||V===void 0?void 0:V.endIndex)!==null&&L!==void 0?L:j,Y=U!==E||F!==j,le=!z(b),me=le&&!Y?g.updateId:g.updateId+1;return I(I({updateId:me},m(I(I({props:y},g),{},{updateId:me,dataStartIndex:U,dataEndIndex:F}),g)),{},{prevChildren:x,dataStartIndex:U,dataEndIndex:F})}return null}),K(r,"renderActiveDot",function(y,g){var O;return B.isValidElement(y)?O=B.cloneElement(y,g):W(y)?O=y(g):O=A.createElement(Kr,g),A.createElement(H,{className:"recharts-active-dot",key:g.key},O)}),r},ab=ji({chartName:"BarChart",GraphicalChild:ct,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Zn},{axisType:"yAxis",AxisComp:Jn}],formatAxisMap:Fl}),ib=ji({chartName:"PieChart",GraphicalChild:Ge,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Vn},{axisType:"radiusAxis",AxisComp:Kn}],formatAxisMap:kp,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ob=ji({chartName:"ComposedChart",GraphicalChild:[Un,lt,ct,qn],axisComponents:[{axisType:"xAxis",AxisComp:Zn},{axisType:"yAxis",AxisComp:Jn},{axisType:"zAxis",AxisComp:Yn}],formatAxisMap:Fl});export{lt as A,ct as B,Ln as C,Un as L,Ge as P,nb as R,ke as T,Zn as X,Jn as Y,ib as a,Dm as b,ab as c,ob as d,wi as e,dr as f};