cartethyia 2.7.3 → 2.7.4

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 (352) hide show
  1. package/dist/dashboard/assets/{BannedPage-2TJD37Hb.js → BannedPage-ChG5svFb.js} +1 -1
  2. package/dist/dashboard/assets/BannedPage-ChG5svFb.js.gz +0 -0
  3. package/dist/dashboard/assets/{CliToolDetailPage-xefJNRmJ.js → CliToolDetailPage-BIcWQun7.js} +1 -1
  4. package/dist/dashboard/assets/CliToolDetailPage-BIcWQun7.js.gz +0 -0
  5. package/dist/dashboard/assets/{CliToolsPage-Rj9iHQ3F.js → CliToolsPage-Bf2VelDe.js} +1 -1
  6. package/dist/dashboard/assets/CliToolsPage-Bf2VelDe.js.gz +0 -0
  7. package/dist/dashboard/assets/{CombosPage-JEbYJFxw.js → CombosPage-DCgm5g6g.js} +1 -1
  8. package/dist/dashboard/assets/CombosPage-DCgm5g6g.js.gz +0 -0
  9. package/dist/dashboard/assets/ConsoleLogPage-a8mD0QF1.js +1 -0
  10. package/dist/dashboard/assets/ConsoleLogPage-a8mD0QF1.js.gz +0 -0
  11. package/dist/dashboard/assets/CustomizationPage-ggeMSjte.js +1 -0
  12. package/dist/dashboard/assets/CustomizationPage-ggeMSjte.js.gz +0 -0
  13. package/dist/dashboard/assets/HealthEventsModal-DzSWzE_j.js +1 -0
  14. package/dist/dashboard/assets/HealthEventsModal-DzSWzE_j.js.gz +0 -0
  15. package/dist/dashboard/assets/{LoginPage-C4w7vea-.js → LoginPage-U6AKaJcF.js} +1 -1
  16. package/dist/dashboard/assets/LoginPage-U6AKaJcF.js.gz +0 -0
  17. package/dist/dashboard/assets/{ModelPicker-BtPcAfot.js → ModelPicker-BMS2t8BA.js} +1 -1
  18. package/dist/dashboard/assets/ModelPicker-BMS2t8BA.js.gz +0 -0
  19. package/dist/dashboard/assets/OverviewPage-D2D4IiHl.js +1 -0
  20. package/dist/dashboard/assets/OverviewPage-D2D4IiHl.js.gz +0 -0
  21. package/dist/dashboard/assets/ProviderDetailPage-CrNf7j_X.js +5 -0
  22. package/dist/dashboard/assets/ProviderDetailPage-CrNf7j_X.js.gz +0 -0
  23. package/dist/dashboard/assets/ProvidersPage-BSDbquc1.js +1 -0
  24. package/dist/dashboard/assets/ProvidersPage-BSDbquc1.js.gz +0 -0
  25. package/dist/dashboard/assets/ProxyPage-lsrx7NYg.js +9 -0
  26. package/dist/dashboard/assets/ProxyPage-lsrx7NYg.js.gz +0 -0
  27. package/dist/dashboard/assets/QuotaPage-L0skzML8.js +1 -0
  28. package/dist/dashboard/assets/QuotaPage-L0skzML8.js.gz +0 -0
  29. package/dist/dashboard/assets/SettingsPage-CmAbjRHW.js +1 -0
  30. package/dist/dashboard/assets/SettingsPage-CmAbjRHW.js.gz +0 -0
  31. package/dist/dashboard/assets/{SetupPage-BQS0Rx_u.js → SetupPage-f0DE1h0-.js} +1 -1
  32. package/dist/dashboard/assets/SetupPage-f0DE1h0-.js.gz +0 -0
  33. package/dist/dashboard/assets/{SortableList-BAL5npBC.js → SortableList-ClzpwyET.js} +1 -1
  34. package/dist/dashboard/assets/SortableList-ClzpwyET.js.gz +0 -0
  35. package/dist/dashboard/assets/{StudioPage-TP7voAQ0.js → StudioPage-Cq5tW7hW.js} +3 -3
  36. package/dist/dashboard/assets/StudioPage-Cq5tW7hW.js.gz +0 -0
  37. package/dist/dashboard/assets/UsagePage-Dfc9rWQn.js +56 -0
  38. package/dist/dashboard/assets/UsagePage-Dfc9rWQn.js.gz +0 -0
  39. package/dist/dashboard/assets/api-keys-C38iXoO4.js +1 -0
  40. package/dist/dashboard/assets/api-keys-C38iXoO4.js.gz +0 -0
  41. package/dist/dashboard/assets/app-a159k0ub.css +2 -0
  42. package/dist/dashboard/assets/app-a159k0ub.css.gz +0 -0
  43. package/dist/dashboard/assets/assert-DbRA8EG2.js +15 -0
  44. package/dist/dashboard/assets/assert-DbRA8EG2.js.gz +0 -0
  45. package/dist/dashboard/assets/{badge-B_DMpMJN.js → badge-D9CS6dZk.js} +1 -1
  46. package/dist/dashboard/assets/badge-D9CS6dZk.js.gz +0 -0
  47. package/dist/dashboard/assets/{banner-DMrMPmth.js → banner-DympBNq4.js} +1 -1
  48. package/dist/dashboard/assets/banner-DympBNq4.js.gz +0 -0
  49. package/dist/dashboard/assets/{card-Be5Uzamx.js → card-ibRWU_uT.js} +1 -1
  50. package/dist/dashboard/assets/card-ibRWU_uT.js.gz +0 -0
  51. package/dist/dashboard/assets/cli-tools-63qBGaRw.js +1 -0
  52. package/dist/dashboard/assets/cli-tools-63qBGaRw.js.gz +0 -0
  53. package/dist/dashboard/assets/{clipboard-button-DOfrVmsi.js → clipboard-button-DJm-9pz7.js} +1 -1
  54. package/dist/dashboard/assets/clipboard-button-DJm-9pz7.js.gz +0 -0
  55. package/dist/dashboard/assets/{dialog-C9omdjQt.js → dialog-8fiE6tec.js} +1 -1
  56. package/dist/dashboard/assets/dialog-8fiE6tec.js.gz +0 -0
  57. package/dist/dashboard/assets/{drawer-Bm8WKaGY.js → drawer-CqGYeOrd.js} +1 -1
  58. package/dist/dashboard/assets/drawer-CqGYeOrd.js.gz +0 -0
  59. package/dist/dashboard/assets/{entry-q5HwZ8nN.js → entry-BSAsYsmV.js} +1 -1
  60. package/dist/dashboard/assets/entry-BSAsYsmV.js.gz +0 -0
  61. package/dist/dashboard/assets/entry-CiIQULZD.js +4 -0
  62. package/dist/dashboard/assets/entry-CiIQULZD.js.gz +0 -0
  63. package/dist/dashboard/assets/entry-Daz0lJ-W.js +1 -0
  64. package/dist/dashboard/assets/entry-Daz0lJ-W.js.gz +0 -0
  65. package/dist/dashboard/assets/{formatters-BTScrQpe.js → formatters-D-MTJxMr.js} +1 -1
  66. package/dist/dashboard/assets/formatters-D-MTJxMr.js.gz +0 -0
  67. package/dist/dashboard/assets/{github-badge-Orjuzemr.js → github-badge-CPK47xQx.js} +1 -1
  68. package/dist/dashboard/assets/github-badge-CPK47xQx.js.gz +0 -0
  69. package/dist/dashboard/assets/{index-cPrX5vn6.js → index-DBNPOfhV.js} +2 -2
  70. package/dist/dashboard/assets/index-DBNPOfhV.js.gz +0 -0
  71. package/dist/dashboard/assets/{inline-Dvux8w-0.js → inline-BT0zntEr.js} +1 -1
  72. package/dist/dashboard/assets/inline-BT0zntEr.js.gz +0 -0
  73. package/dist/dashboard/assets/{input-CU1Rgf3p.js → input-Da2ZViWg.js} +1 -1
  74. package/dist/dashboard/assets/input-Da2ZViWg.js.gz +0 -0
  75. package/dist/dashboard/assets/{layout-C_7A6H55.js → layout-BXNeLw6M.js} +1 -1
  76. package/dist/dashboard/assets/layout-BXNeLw6M.js.gz +0 -0
  77. package/dist/dashboard/assets/{list-row-CzFvogbj.js → list-row-BycOrrIV.js} +1 -1
  78. package/dist/dashboard/assets/list-row-BycOrrIV.js.gz +0 -0
  79. package/dist/dashboard/assets/live-DCQNZpF7.js +1 -0
  80. package/dist/dashboard/assets/live-DCQNZpF7.js.gz +0 -0
  81. package/dist/dashboard/assets/minimize-2-BTmMTK4o.js +1 -0
  82. package/dist/dashboard/assets/minimize-2-BTmMTK4o.js.gz +0 -0
  83. package/dist/dashboard/assets/{mutation-JJGQm8TD.js → mutation-Rr0TIvcj.js} +1 -1
  84. package/dist/dashboard/assets/mutation-Rr0TIvcj.js.gz +0 -0
  85. package/dist/dashboard/assets/network-9Yj2ZyLo.js +1 -0
  86. package/dist/dashboard/assets/network-9Yj2ZyLo.js.gz +0 -0
  87. package/dist/dashboard/assets/{numbers-BNDZnsUE.js → numbers-CEagj6ZZ.js} +2 -2
  88. package/dist/dashboard/assets/numbers-CEagj6ZZ.js.gz +0 -0
  89. package/dist/dashboard/assets/{query-keys-CLaNz8Xz.js → query-keys-BloKtaXJ.js} +1 -1
  90. package/dist/dashboard/assets/query-keys-BloKtaXJ.js.gz +0 -0
  91. package/dist/dashboard/assets/quota-Caw7wqci.js +1 -0
  92. package/dist/dashboard/assets/quota-Caw7wqci.js.gz +0 -0
  93. package/dist/dashboard/assets/routing-CO9zCUus.js +1 -0
  94. package/dist/dashboard/assets/routing-CO9zCUus.js.gz +0 -0
  95. package/dist/dashboard/assets/{select-B3iTetHN.js → select-BIYIBkMU.js} +2 -2
  96. package/dist/dashboard/assets/select-BIYIBkMU.js.gz +0 -0
  97. package/dist/dashboard/assets/settings-jS3-PNSA.js +1 -0
  98. package/dist/dashboard/assets/settings-jS3-PNSA.js.gz +0 -0
  99. package/dist/dashboard/assets/{stack-KrOrm7JZ.js → stack-DfgnFDWY.js} +1 -1
  100. package/dist/dashboard/assets/stack-DfgnFDWY.js.gz +0 -0
  101. package/dist/dashboard/assets/{state-DLS7IDMy.js → state-CkfdYWel.js} +1 -1
  102. package/dist/dashboard/assets/state-CkfdYWel.js.gz +0 -0
  103. package/dist/dashboard/assets/{switch-42ItvbAs.js → switch-SYm237HG.js} +1 -1
  104. package/dist/dashboard/assets/switch-SYm237HG.js.gz +0 -0
  105. package/dist/dashboard/assets/{useMutation-Dmnfh1Ue.js → useMutation-BQqCRNIi.js} +1 -1
  106. package/dist/dashboard/assets/useMutation-BQqCRNIi.js.gz +0 -0
  107. package/dist/dashboard/index.html +2 -2
  108. package/dist/dashboard/index.html.gz +0 -0
  109. package/dist/dashboard/precompressed-assets.json +55 -54
  110. package/migrations/full-postgres/0027_qoder_identity_genuine_seed.sql +9 -10
  111. package/migrations/full-postgres/0032_add_provider_pool_accounts.sql +53 -0
  112. package/migrations/full-postgres/0033_add_api_key_ban.sql +9 -0
  113. package/migrations/full-postgres/0034_add_api_key_ban_until.sql +7 -0
  114. package/migrations/full-postgres/0035_align_pool_account_status_enum.sql +21 -0
  115. package/migrations/lite-sqlite3/0027_qoder_identity_genuine_seed.sql +9 -10
  116. package/migrations/lite-sqlite3/0032_add_provider_pool_accounts.sql +44 -0
  117. package/migrations/lite-sqlite3/0033_add_api_key_ban.sql +8 -0
  118. package/migrations/lite-sqlite3/0034_add_api_key_ban_until.sql +5 -0
  119. package/migrations/lite-sqlite3/0035_align_pool_account_status_enum.sql +6 -0
  120. package/package.json +2 -1
  121. package/src/boot/app.ts +9 -8
  122. package/src/config/network.ts +7 -3
  123. package/src/console/api-keys/contracts.ts +52 -0
  124. package/src/console/api-keys/routes.ts +93 -4
  125. package/src/console/audit/routes.ts +3 -3
  126. package/src/console/auth/account-reset.ts +4 -4
  127. package/src/console/auth/session.ts +3 -3
  128. package/src/console/backup/contracts.ts +2 -0
  129. package/src/console/backup/export-endpoint.ts +6 -6
  130. package/src/console/backup/routes.ts +3 -3
  131. package/src/console/cli-tools/routes.ts +3 -3
  132. package/src/console/console-router-guards.ts +2 -2
  133. package/src/console/console-router.ts +4 -4
  134. package/src/console/data-management/routes.ts +3 -3
  135. package/src/console/domain-registration.ts +2 -2
  136. package/src/console/observability/contracts.ts +4 -0
  137. package/src/console/observability/live.ts +3 -3
  138. package/src/console/observability/logs.ts +3 -3
  139. package/src/console/observability/performance.ts +3 -3
  140. package/src/console/observability/routes.ts +3 -3
  141. package/src/console/observability/store.ts +16 -16
  142. package/src/console/providers/catalog/contracts.ts +43 -22
  143. package/src/console/providers/catalog/provider-operations.ts +17 -2
  144. package/src/console/providers/catalog/routes.ts +3 -3
  145. package/src/console/providers/catalog/store-helpers.ts +349 -326
  146. package/src/console/providers/catalog/store.ts +1523 -1292
  147. package/src/console/providers/detail/routes.ts +3 -3
  148. package/src/console/providers/oauth/routes.ts +3 -3
  149. package/src/console/quota/account-quota-tenant.ts +26 -1
  150. package/src/console/quota/account-test-egress.ts +4 -4
  151. package/src/console/routing/model/routes.ts +3 -3
  152. package/src/console/routing/pools/contracts.ts +11 -8
  153. package/src/console/routing/pools/operations.ts +14 -7
  154. package/src/console/routing/pools/probe-verdict.ts +8 -3
  155. package/src/console/routing/pools/relay-deploy.ts +9 -9
  156. package/src/console/routing/pools/routes.ts +3 -3
  157. package/src/console/routing/pools/store.ts +21 -1
  158. package/src/console/settings/routes.ts +3 -3
  159. package/src/console/share/share-router.ts +12 -12
  160. package/src/console/share/share-stats.ts +105 -35
  161. package/src/console/shared/read-through-cache.ts +38 -2
  162. package/src/console/updates/routes.ts +7 -4
  163. package/src/network/outbound-fetch.ts +75 -4
  164. package/src/network/pool/resolver.ts +39 -39
  165. package/src/network/pool-cooldown-store.ts +71 -16
  166. package/src/network/pool-health-machine.ts +21 -1
  167. package/src/network/rate-limit-verdict.ts +68 -0
  168. package/src/network/ssrf.ts +4 -4
  169. package/src/observability/event-query.ts +320 -16
  170. package/src/observability/telemetry-status.ts +1 -1
  171. package/src/persistence/db-sqlite.ts +7 -2
  172. package/src/persistence/readiness.ts +18 -6
  173. package/src/persistence/schema.ts +66 -7
  174. package/src/persistence/stores/api-key-store.ts +99 -3
  175. package/src/persistence/stores/telemetry-store.ts +1 -1
  176. package/src/protocol/codecs.ts +6 -6
  177. package/src/protocol/gateway-error.ts +6 -3
  178. package/src/protocol/image-generation.ts +2 -2
  179. package/src/protocol/response/chat.ts +2 -2
  180. package/src/protocol/response/codex.ts +1 -1
  181. package/src/protocol/response/gemini.ts +1 -1
  182. package/src/protocol/response/messages.ts +5 -5
  183. package/src/protocol/response/responses.ts +2 -2
  184. package/src/protocol/sse-decoder.ts +14 -3
  185. package/src/protocol/translation/capabilities.ts +2 -2
  186. package/src/protocol/upstream/send-claude-messages.ts +3 -3
  187. package/src/providers/adapters/base-adapter.ts +1 -1
  188. package/src/providers/adapters/compatible-adapter.ts +2 -2
  189. package/src/providers/authentication/oauth-refresh-service.ts +2 -2
  190. package/src/providers/configured-provider.ts +1 -1
  191. package/src/providers/discovery/probe-phases.ts +2 -2
  192. package/src/providers/discovery/probing-service.ts +12 -12
  193. package/src/providers/integrations/agentrouter/agentrouter.ts +2 -3
  194. package/src/providers/integrations/alibabacp/alibabacp.ts +2 -2
  195. package/src/providers/integrations/anthropic.ts +4 -11
  196. package/src/providers/integrations/antigravity/antigravity.ts +13 -24
  197. package/src/providers/integrations/buddy/buddy-catalog-shared.ts +1 -1
  198. package/src/providers/integrations/buddy/buddy-discovery-shared.ts +37 -6
  199. package/src/providers/integrations/buddy/buddy-identity.ts +22 -1
  200. package/src/providers/integrations/buddy/buddy-media.ts +16 -16
  201. package/src/providers/integrations/buddy/codebuddy/provider.ts +1 -1
  202. package/src/providers/integrations/buddy/workbuddy/provider.ts +1 -1
  203. package/src/providers/integrations/claude/claude-betas.ts +1 -1
  204. package/src/providers/integrations/claude/claude-credentials.ts +1 -1
  205. package/src/providers/integrations/claude/claude-slow-lane-retry.ts +1 -1
  206. package/src/providers/integrations/claude/claude.ts +3 -10
  207. package/src/providers/integrations/cline/cline.ts +1 -1
  208. package/src/providers/integrations/cloudflareai/cloudflareai.ts +4 -7
  209. package/src/providers/integrations/codex/codex-errors.ts +1 -1
  210. package/src/providers/integrations/codex/codex.ts +14 -15
  211. package/src/providers/integrations/commandcode/commandcode.ts +4 -4
  212. package/src/providers/integrations/commandcode/quota.ts +5 -1
  213. package/src/providers/integrations/cursor/cursor-http2.ts +11 -11
  214. package/src/providers/integrations/cursor/cursor.ts +15 -15
  215. package/src/providers/integrations/factory/factory.ts +4 -4
  216. package/src/providers/integrations/gemini.ts +11 -11
  217. package/src/providers/integrations/github/github.ts +6 -6
  218. package/src/providers/integrations/grok/grok.ts +2 -6
  219. package/src/providers/integrations/inferhub.ts +4 -11
  220. package/src/providers/integrations/kimi/kimi.ts +4 -11
  221. package/src/providers/integrations/kiro/kiro.ts +10 -10
  222. package/src/providers/integrations/muse/muse.ts +6 -9
  223. package/src/providers/integrations/perplexity.ts +2 -2
  224. package/src/providers/integrations/qoder/qoder-catalog.ts +47 -9
  225. package/src/providers/integrations/qoder/qoder-checkin.ts +26 -8
  226. package/src/providers/integrations/qoder/qoder-native-identity-store.ts +9 -8
  227. package/src/providers/integrations/qoder/qoder-realm.ts +15 -0
  228. package/src/providers/integrations/qoder/qoder-umid.ts +12 -13
  229. package/src/providers/integrations/qoder/qoder-virtual.ts +2 -2
  230. package/src/providers/integrations/qoder/qoder.ts +188 -22
  231. package/src/providers/integrations/tokenharbor.ts +2 -2
  232. package/src/providers/integrations/trae/trae.ts +6 -9
  233. package/src/providers/integrations/zcode/oauth.ts +1 -1
  234. package/src/providers/operations/provider-catalog-service.ts +4 -4
  235. package/src/providers/operations/provider-credential-service.ts +16 -4
  236. package/src/providers/operations/upstream-deadline.ts +3 -3
  237. package/src/providers/provider-contracts.ts +47 -3
  238. package/src/providers/provider-credential-resolver.ts +1 -1
  239. package/src/providers/provider-registry.ts +4 -4
  240. package/src/providers/quota/quota-contracts.ts +24 -10
  241. package/src/providers/quota/refresh.ts +2 -2
  242. package/src/providers/search/search-provider.ts +5 -5
  243. package/src/security/abuse.ts +4 -4
  244. package/src/security/admission/reasons.ts +17 -17
  245. package/src/security/api-key-auth.ts +4 -4
  246. package/src/shared/coerce.ts +19 -0
  247. package/src/transport/dispatch/attempt-finalize.ts +4 -3
  248. package/src/transport/dispatch/attempt-loop.ts +10 -7
  249. package/src/transport/dispatch/empty-stream.ts +6 -6
  250. package/src/transport/dispatch/generation.ts +9 -9
  251. package/src/transport/dispatch/leases.ts +8 -8
  252. package/src/transport/dispatch/proxy-request.ts +7 -7
  253. package/src/transport/dispatch/responses-compact.ts +11 -11
  254. package/src/transport/dispatch/retry-policy.ts +4 -67
  255. package/src/transport/dispatch/stream-bridge.ts +1 -1
  256. package/src/transport/dispatch/streaming/finalize.ts +9 -8
  257. package/src/transport/dispatch/systemone.ts +8 -8
  258. package/src/transport/dispatch/token-count.ts +9 -9
  259. package/src/transport/dispatch/websearch.ts +6 -6
  260. package/src/transport/drain-endpoint.ts +2 -2
  261. package/src/transport/failure-policy.ts +13 -6
  262. package/src/transport/guards/auth-guard.ts +6 -5
  263. package/src/transport/guards/body-policy.ts +4 -4
  264. package/src/transport/guards/error-lifecycle.ts +18 -3
  265. package/src/transport/guards/guard-errors.ts +7 -3
  266. package/src/transport/guards/headroom-guard.ts +1 -1
  267. package/src/transport/guards/pipeline.ts +6 -6
  268. package/src/transport/guards/readiness-guard.ts +16 -2
  269. package/src/transport/guards/request-context.ts +3 -3
  270. package/src/transport/request/preparer.ts +20 -20
  271. package/src/transport/request/state.ts +4 -7
  272. package/src/transport/routing/route-catalog.ts +97 -2
  273. package/src/transport/routing/route-model.ts +7 -7
  274. package/src/transport/routing/router.ts +2 -2
  275. package/src/transport/shutdown-notice.ts +19 -7
  276. package/src/transport/surface/completion.ts +1 -1
  277. package/src/transport/surface/messages/encode.ts +1 -1
  278. package/dist/dashboard/assets/BannedPage-2TJD37Hb.js.gz +0 -0
  279. package/dist/dashboard/assets/CliToolDetailPage-xefJNRmJ.js.gz +0 -0
  280. package/dist/dashboard/assets/CliToolsPage-Rj9iHQ3F.js.gz +0 -0
  281. package/dist/dashboard/assets/CombosPage-JEbYJFxw.js.gz +0 -0
  282. package/dist/dashboard/assets/ConsoleLogPage-C3xx_inM.js +0 -1
  283. package/dist/dashboard/assets/ConsoleLogPage-C3xx_inM.js.gz +0 -0
  284. package/dist/dashboard/assets/CustomizationPage-Dw306gJU.js +0 -1
  285. package/dist/dashboard/assets/CustomizationPage-Dw306gJU.js.gz +0 -0
  286. package/dist/dashboard/assets/HealthEventsModal-jaBo1TWV.js +0 -1
  287. package/dist/dashboard/assets/HealthEventsModal-jaBo1TWV.js.gz +0 -0
  288. package/dist/dashboard/assets/LoginPage-C4w7vea-.js.gz +0 -0
  289. package/dist/dashboard/assets/ModelPicker-BtPcAfot.js.gz +0 -0
  290. package/dist/dashboard/assets/OverviewPage-CGC5gNs1.js +0 -1
  291. package/dist/dashboard/assets/OverviewPage-CGC5gNs1.js.gz +0 -0
  292. package/dist/dashboard/assets/ProviderDetailPage-DQcthNGt.js +0 -4
  293. package/dist/dashboard/assets/ProviderDetailPage-DQcthNGt.js.gz +0 -0
  294. package/dist/dashboard/assets/ProvidersPage-0OsXRGXe.js +0 -1
  295. package/dist/dashboard/assets/ProvidersPage-0OsXRGXe.js.gz +0 -0
  296. package/dist/dashboard/assets/ProxyPage-DdPc8slb.js +0 -9
  297. package/dist/dashboard/assets/ProxyPage-DdPc8slb.js.gz +0 -0
  298. package/dist/dashboard/assets/QuotaPage-Ci5O4BnH.js +0 -1
  299. package/dist/dashboard/assets/QuotaPage-Ci5O4BnH.js.gz +0 -0
  300. package/dist/dashboard/assets/SettingsPage-CDZjTt87.js +0 -1
  301. package/dist/dashboard/assets/SettingsPage-CDZjTt87.js.gz +0 -0
  302. package/dist/dashboard/assets/SetupPage-BQS0Rx_u.js.gz +0 -0
  303. package/dist/dashboard/assets/SortableList-BAL5npBC.js.gz +0 -0
  304. package/dist/dashboard/assets/StudioPage-TP7voAQ0.js.gz +0 -0
  305. package/dist/dashboard/assets/UsagePage-Cj_fEzhg.js +0 -56
  306. package/dist/dashboard/assets/UsagePage-Cj_fEzhg.js.gz +0 -0
  307. package/dist/dashboard/assets/api-keys-MbI7e7rt.js +0 -1
  308. package/dist/dashboard/assets/api-keys-MbI7e7rt.js.gz +0 -0
  309. package/dist/dashboard/assets/app-B2vyPoII.css +0 -2
  310. package/dist/dashboard/assets/app-B2vyPoII.css.gz +0 -0
  311. package/dist/dashboard/assets/assert-C0YYuZJ4.js +0 -1
  312. package/dist/dashboard/assets/assert-C0YYuZJ4.js.gz +0 -0
  313. package/dist/dashboard/assets/badge-B_DMpMJN.js.gz +0 -0
  314. package/dist/dashboard/assets/banner-DMrMPmth.js.gz +0 -0
  315. package/dist/dashboard/assets/card-Be5Uzamx.js.gz +0 -0
  316. package/dist/dashboard/assets/cli-tools-muFRphDu.js +0 -1
  317. package/dist/dashboard/assets/cli-tools-muFRphDu.js.gz +0 -0
  318. package/dist/dashboard/assets/clipboard-button-DOfrVmsi.js.gz +0 -0
  319. package/dist/dashboard/assets/dialog-C9omdjQt.js.gz +0 -0
  320. package/dist/dashboard/assets/drawer-Bm8WKaGY.js.gz +0 -0
  321. package/dist/dashboard/assets/entry-DS90gUks.js +0 -1
  322. package/dist/dashboard/assets/entry-DS90gUks.js.gz +0 -0
  323. package/dist/dashboard/assets/entry-j40LJotO.js +0 -4
  324. package/dist/dashboard/assets/entry-j40LJotO.js.gz +0 -0
  325. package/dist/dashboard/assets/entry-q5HwZ8nN.js.gz +0 -0
  326. package/dist/dashboard/assets/formatters-BTScrQpe.js.gz +0 -0
  327. package/dist/dashboard/assets/github-badge-Orjuzemr.js.gz +0 -0
  328. package/dist/dashboard/assets/index-cPrX5vn6.js.gz +0 -0
  329. package/dist/dashboard/assets/inline-Dvux8w-0.js.gz +0 -0
  330. package/dist/dashboard/assets/input-CU1Rgf3p.js.gz +0 -0
  331. package/dist/dashboard/assets/layout-C_7A6H55.js.gz +0 -0
  332. package/dist/dashboard/assets/list-row-CzFvogbj.js.gz +0 -0
  333. package/dist/dashboard/assets/live-KaG15HLQ.js +0 -1
  334. package/dist/dashboard/assets/live-KaG15HLQ.js.gz +0 -0
  335. package/dist/dashboard/assets/minimize-2-D-MN8W8a.js +0 -1
  336. package/dist/dashboard/assets/minimize-2-D-MN8W8a.js.gz +0 -0
  337. package/dist/dashboard/assets/mutation-JJGQm8TD.js.gz +0 -0
  338. package/dist/dashboard/assets/numbers-BNDZnsUE.js.gz +0 -0
  339. package/dist/dashboard/assets/query-keys-CLaNz8Xz.js.gz +0 -0
  340. package/dist/dashboard/assets/quota-DZGyp0N5.js +0 -1
  341. package/dist/dashboard/assets/quota-DZGyp0N5.js.gz +0 -0
  342. package/dist/dashboard/assets/routing-BEH32QOC.js +0 -1
  343. package/dist/dashboard/assets/routing-BEH32QOC.js.gz +0 -0
  344. package/dist/dashboard/assets/select-B3iTetHN.js.gz +0 -0
  345. package/dist/dashboard/assets/settings-Dt3Eqbnq.js +0 -1
  346. package/dist/dashboard/assets/settings-Dt3Eqbnq.js.gz +0 -0
  347. package/dist/dashboard/assets/stack-KrOrm7JZ.js.gz +0 -0
  348. package/dist/dashboard/assets/state-DLS7IDMy.js.gz +0 -0
  349. package/dist/dashboard/assets/switch-42ItvbAs.js.gz +0 -0
  350. package/dist/dashboard/assets/useMutation-Dmnfh1Ue.js.gz +0 -0
  351. /package/dist/dashboard/assets/{app-wvwCi4Eh.js → app-BayTTy01.js} +0 -0
  352. /package/dist/dashboard/assets/{app-wvwCi4Eh.js.gz → app-BayTTy01.js.gz} +0 -0
@@ -1,56 +0,0 @@
1
- import{a as e,i as t,n,o as r,r as i,t as a}from"./jsx-runtime-CXUMngI_.js";import{i as o}from"./terminal-0_IjPWTk.js";import{n as s,t as c}from"./arrow-up-59ms1iiT.js";import{E as l,O as u,T as d,c as f,h as p,i as m,m as h,r as g,s as _,t as v}from"./numbers-BNDZnsUE.js";import{t as y}from"./circle-check-BU3v_mFW.js";import{a as b,c as x,d as S,f as C,i as w,l as T,m as E,n as D,o as O,p as k,r as A,s as j,t as M,u as N}from"./formatters-BTScrQpe.js";import{t as ee}from"./database-Dz9N3zGd.js";import{t as te}from"./eye-off-Bk5g2luF.js";import{t as ne}from"./eye-C_hawfH4.js";import{t as re}from"./image-BPaouViG.js";import{n as ie,r as ae,t as oe}from"./state-DLS7IDMy.js";import{t as se}from"./log-in-BmRjy60c.js";import{i as ce}from"./use-modal-focus-By7oJoGd.js";import{t as le}from"./minimize-2-D-MN8W8a.js";import{n as ue,t as de}from"./drawer-Bm8WKaGY.js";import{t as fe}from"./route-CNSNj9Zm.js";import{t as pe}from"./scaling-nWE4Cx8f.js";import{t as me}from"./wrench-B6E1oEuY.js";import{l as he,o as ge}from"./query-keys-CLaNz8Xz.js";import{B as _e,I as ve,L as ye,R as be,at as xe,b as Se,ct as Ce,g as we,mt as Te,z as Ee}from"./entry-j40LJotO.js";import{t as De}from"./use-reduced-motion-C4B0R6Sz.js";import{n as Oe,r as ke,t as Ae}from"./card-Be5Uzamx.js";import{n as je}from"./download-dRFo5_Wu.js";import{a as Me,m as Ne,o as Pe,p as Fe,t as Ie,u as Le}from"./tokens-COzario9.js";import{t as Re}from"./stack-KrOrm7JZ.js";import{n as ze}from"./inline-Dvux8w-0.js";import{r as Be,t as Ve}from"./layout-C_7A6H55.js";import{t as He}from"./banner-DMrMPmth.js";import{n as Ue}from"./privacy-mode-GM8bej85.js";import{t as We}from"./use-timeout-BwcBBRrT.js";import{r as Ge,t as Ke}from"./live-KaG15HLQ.js";var qe=n(`arrow-up-from-line`,[[`path`,{d:`m18 9-6-6-6 6`,key:`kcunyi`}],[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Je=n(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),Ye=n(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),Xe=n(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Ze=t(((e,t)=>{t.exports=Array.isArray})),Qe=t(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),$e=t(((e,t)=>{var n=Qe(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),et=t(((e,t)=>{t.exports=$e().Symbol})),tt=t(((e,t)=>{var n=et(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),nt=t(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),rt=t(((e,t)=>{var n=et(),r=tt(),i=nt(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),it=t(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),at=t(((e,t)=>{var n=rt(),r=it(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),ot=t(((e,t)=>{var n=Ze(),r=at(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),st=t(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),ct=t(((e,t)=>{var n=rt(),r=st(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),lt=t(((e,t)=>{t.exports=$e()[`__core-js_shared__`]})),ut=t(((e,t)=>{var n=lt(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),dt=t(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),ft=t(((e,t)=>{var n=ct(),r=ut(),i=st(),a=dt(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),pt=t(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),mt=t(((e,t)=>{var n=ft(),r=pt();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),ht=t(((e,t)=>{t.exports=mt()(Object,`create`)})),gt=t(((e,t)=>{var n=ht();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),_t=t(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),vt=t(((e,t)=>{var n=ht(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),yt=t(((e,t)=>{var n=ht(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),bt=t(((e,t)=>{var n=ht(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),xt=t(((e,t)=>{var n=gt(),r=_t(),i=vt(),a=yt(),o=bt();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),St=t(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ct=t(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),wt=t(((e,t)=>{var n=Ct();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Tt=t(((e,t)=>{var n=wt(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Et=t(((e,t)=>{var n=wt();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Dt=t(((e,t)=>{var n=wt();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Ot=t(((e,t)=>{var n=wt();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),kt=t(((e,t)=>{var n=St(),r=Tt(),i=Et(),a=Dt(),o=Ot();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),At=t(((e,t)=>{t.exports=mt()($e(),`Map`)})),jt=t(((e,t)=>{var n=xt(),r=kt(),i=At();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Mt=t(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Nt=t(((e,t)=>{var n=Mt();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Pt=t(((e,t)=>{var n=Nt();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),Ft=t(((e,t)=>{var n=Nt();function r(e){return n(this,e).get(e)}t.exports=r})),It=t(((e,t)=>{var n=Nt();function r(e){return n(this,e).has(e)}t.exports=r})),Lt=t(((e,t)=>{var n=Nt();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Rt=t(((e,t)=>{var n=jt(),r=Pt(),i=Ft(),a=It(),o=Lt();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),zt=t(((e,t)=>{var n=Rt(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),Bt=t(((e,t)=>{var n=zt(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Vt=t(((e,t)=>{var n=Bt(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Ht=t(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Ut=t(((e,t)=>{var n=et(),r=Ht(),i=Ze(),a=at(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Wt=t(((e,t)=>{var n=Ut();function r(e){return e==null?``:n(e)}t.exports=r})),Gt=t(((e,t)=>{var n=Ze(),r=ot(),i=Vt(),a=Wt();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Kt=t(((e,t)=>{var n=at(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),qt=t(((e,t)=>{var n=Gt(),r=Kt();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),Jt=t(((e,t)=>{var n=qt();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),Yt=t(((e,t)=>{function n(e){return e==null}t.exports=n})),Xt=t(((e,t)=>{var n=rt(),r=Ze(),i=it(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),Zt=t((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),Qt=t(((e,t)=>{t.exports=Zt()})),$t=t(((e,t)=>{var n=rt(),r=it(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),en=t(((e,t)=>{var n=$t();function r(e){return n(e)&&e!=+e}t.exports=r})),tn=r(Xt()),nn=r(en()),rn=r(Jt()),an=r($t()),P=r(Yt()),on=function(e){return e===0?0:e>0?1:-1},sn=function(e){return(0,tn.default)(e)&&e.indexOf(`%`)===e.length-1},F=function(e){return(0,an.default)(e)&&!(0,nn.default)(e)},cn=function(e){return(0,P.default)(e)},I=function(e){return F(e)||(0,tn.default)(e)},ln=0,un=function(e){var t=++ln;return`${e||``}${t}`},dn=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!F(e)&&!(0,tn.default)(e))return n;var i;if(sn(e)){var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return(0,nn.default)(i)&&(i=n),r&&i>t&&(i=t),i},fn=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},pn=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},mn=function(e,t){return F(e)&&F(t)?function(n){return e+n*(t-e)}:function(){return t}};function hn(e,t,n){return!e||!e.length?null:e.find(function(e){return e&&(typeof t==`function`?t(e):(0,rn.default)(e,t))===n})}var gn=function(e,t){return F(e)&&F(t)?e-t:(0,tn.default)(e)&&(0,tn.default)(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))};function _n(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}var L=r(i()),vn=r(st());function yn(e){"@babel/helpers - typeof";return yn=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},yn(e)}var bn=[`viewBox`,`children`],xn=`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`.split(`.`),Sn=[`points`,`pathLength`],Cn={svg:bn,polygon:Sn,polyline:Sn},wn=`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`.split(`.`),Tn=function(e,t){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,L.isValidElement)(e)&&(n=e.props),!(0,vn.default)(n))return null;var r={};return Object.keys(n).forEach(function(e){wn.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},En=function(e,t,n){return function(r){return e(t,n,r),null}},Dn=function(e,t,n){if(!(0,vn.default)(e)||yn(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];wn.includes(i)&&typeof a==`function`&&(r||={},r[i]=En(a,t,n))}),r},R=r(ct()),On=Qt(),kn=[`children`],An=[`children`];function jn(e,t){if(e==null)return{};var n=Mn(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mn(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Nn(e){"@babel/helpers - typeof";return Nn=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},Nn(e)}var Pn={click:`onClick`,mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,mouseout:`onMouseOut`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,touchcancel:`onTouchCancel`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchstart:`onTouchStart`,contextmenu:`onContextMenu`,dblclick:`onDoubleClick`},Fn=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},In=null,Ln=null,Rn=function e(t){if(t===In&&Array.isArray(Ln))return Ln;var n=[];return L.Children.forEach(t,function(t){(0,P.default)(t)||((0,On.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),Ln=n,In=t,n};function zn(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return Fn(e)}):[Fn(t)],Rn(e).forEach(function(e){var t=(0,rn.default)(e,`type.displayName`)||(0,rn.default)(e,`type.name`);r.indexOf(t)!==-1&&n.push(e)}),n}function Bn(e,t){var n=zn(e,t);return n&&n[0]}var Vn=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!F(n)||n<=0||!F(r)||r<=0)},Hn=`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`.split(`.`),Un=function(e){return e&&e.type&&(0,tn.default)(e.type)&&Hn.indexOf(e.type)>=0},Wn=function(e){return e&&Nn(e)===`object`&&`clipDot`in e},Gn=function(e,t,n,r){var i=Cn?.[r]??[];return t.startsWith(`data-`)||!(0,R.default)(e)&&(r&&i.includes(t)||xn.includes(t))||n&&wn.includes(t)},z=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,L.isValidElement)(e)&&(r=e.props),!(0,vn.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){Gn(r?.[e],e,t,n)&&(i[e]=r[e])}),i},Kn=function e(t,n){if(t===n)return!0;var r=L.Children.count(t);if(r!==L.Children.count(n))return!1;if(r===0)return!0;if(r===1)return qn(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!qn(a,o))return!1}return!0},qn=function(e,t){if((0,P.default)(e)&&(0,P.default)(t))return!0;if(!(0,P.default)(e)&&!(0,P.default)(t)){var n=e.props||{},r=n.children,i=jn(n,kn),a=t.props||{},o=a.children,s=jn(a,An);return r&&o?_n(i,s)&&Kn(r,o):!r&&!o&&_n(i,s)}return!1},Jn=function(e,t){var n=[],r={};return Rn(e).forEach(function(e,i){if(Un(e))n.push(e);else if(e){var a=Fn(e.type),o=t[a]||{},s=o.handler,c=o.once;if(s&&(!c||!r[a])){var l=s(e,a,i);n.push(l),r[a]=!0}}}),n},Yn=function(e){var t=e&&e.type;return t&&Pn[t]?Pn[t]:null},Xn=function(e,t){return Rn(t).indexOf(e)},Zn=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qn.apply(this,arguments)}function $n(e,t){if(e==null)return{};var n=er(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function er(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tr(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,l=$n(e,Zn),u=i||{width:n,height:r,x:0,y:0},d=p(`recharts-surface`,a);return L.createElement(`svg`,Qn({},z(l,!0,`svg`),{className:d,width:n,height:r,style:o,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`}),L.createElement(`title`,null,s),L.createElement(`desc`,null,c),t)}var nr=[`children`,`className`];function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rr.apply(this,arguments)}function ir(e,t){if(e==null)return{};var n=ar(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ar(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var B=L.forwardRef(function(e,t){var n=e.children,r=e.className,i=ir(e,nr),a=p(`recharts-layer`,r);return L.createElement(`g`,rr({className:a},z(i,!0),{ref:t}),n)}),or=t(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),sr=t(((e,t)=>{var n=or();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),cr=t(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),lr=t(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),ur=t(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),dr=t(((e,t)=>{var n=lr(),r=cr(),i=ur();function a(e){return r(e)?i(e):n(e)}t.exports=a})),fr=t(((e,t)=>{var n=sr(),r=cr(),i=dr(),a=Wt();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),pr=t(((e,t)=>{t.exports=fr()(`toUpperCase`)}));function V(e){return function(){return e}}var mr=Math.cos,hr=Math.sin,gr=Math.sqrt,_r=Math.PI;_r/2;var vr=2*_r,yr=Math.PI,br=2*yr,xr=1e-6,Sr=br-xr;function Cr(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function wr(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Cr;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Tr=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Cr:wr(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>xr){if(!(Math.abs(u*s-c*l)>xr)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((yr-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>xr&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>xr||Math.abs(this._y1-l)>xr)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%br+br),d>Sr?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>xr&&this._append`A${n},${n},0,${+(d>=yr)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};Tr.prototype;function Er(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Tr(t)}Array.prototype.slice;function Dr(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Or(e){this._context=e}Or.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function kr(e){return new Or(e)}function Ar(e){return e[0]}function jr(e){return e[1]}function Mr(e,t){var n=V(!0),r=null,i=kr,a=null,o=Er(s);e=typeof e==`function`?e:e===void 0?Ar:V(e),t=typeof t==`function`?t:t===void 0?jr:V(t);function s(s){var c,l=(s=Dr(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:V(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:V(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:V(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function Nr(e,t,n){var r=null,i=V(!0),a=null,o=kr,s=null,c=Er(l);e=typeof e==`function`?e:e===void 0?Ar:V(+e),t=typeof t==`function`?t:V(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?jr:V(+n);function l(l){var u,d,f,p=(l=Dr(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Mr().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:V(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:V(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:V(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:V(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:V(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:V(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:V(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Pr=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function Fr(e){return new Pr(e,!0)}function Ir(e){return new Pr(e,!1)}var Lr={draw(e,t){let n=gr(t/_r);e.moveTo(n,0),e.arc(0,0,n,0,vr)}},Rr={draw(e,t){let n=gr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},zr=gr(1/3),Br=zr*2,Vr={draw(e,t){let n=gr(t/Br),r=n*zr;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Hr={draw(e,t){let n=gr(t),r=-n/2;e.rect(r,r,n,n)}},Ur=.8908130915292852,Wr=hr(_r/10)/hr(7*_r/10),Gr=hr(vr/10)*Wr,Kr=-mr(vr/10)*Wr,qr={draw(e,t){let n=gr(t*Ur),r=Gr*n,i=Kr*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=vr*t/5,o=mr(a),s=hr(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Jr=gr(3),Yr={draw(e,t){let n=-gr(t/(Jr*3));e.moveTo(0,n*2),e.lineTo(-Jr*n,-n),e.lineTo(Jr*n,-n),e.closePath()}},Xr=-.5,Zr=gr(3)/2,Qr=1/gr(12),$r=(Qr/2+1)*3,ei={draw(e,t){let n=gr(t/$r),r=n/2,i=n*Qr,a=r,o=n*Qr+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Xr*r-Zr*i,Zr*r+Xr*i),e.lineTo(Xr*a-Zr*o,Zr*a+Xr*o),e.lineTo(Xr*s-Zr*c,Zr*s+Xr*c),e.lineTo(Xr*r+Zr*i,Xr*i-Zr*r),e.lineTo(Xr*a+Zr*o,Xr*o-Zr*a),e.lineTo(Xr*s+Zr*c,Xr*c-Zr*s),e.closePath()}};function ti(e,t){let n=null,r=Er(i);e=typeof e==`function`?e:V(e||Lr),t=typeof t==`function`?t:V(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:V(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:V(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function ni(){}function ri(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ii(e){this._context=e}ii.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ri(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ri(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ai(e){return new ii(e)}function oi(e){this._context=e}oi.prototype={areaStart:ni,areaEnd:ni,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ri(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function si(e){return new oi(e)}function ci(e){this._context=e}ci.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ri(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function li(e){return new ci(e)}function ui(e){this._context=e}ui.prototype={areaStart:ni,areaEnd:ni,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function di(e){return new ui(e)}function fi(e){return e<0?-1:1}function pi(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(fi(a)+fi(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function mi(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function hi(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function gi(e){this._context=e}gi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:hi(this,this._t0,mi(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,hi(this,mi(this,n=pi(this,e,t)),n);break;default:hi(this,this._t0,n=pi(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _i(e){this._context=new vi(e)}(_i.prototype=Object.create(gi.prototype)).point=function(e,t){gi.prototype.point.call(this,t,e)};function vi(e){this._context=e}vi.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function yi(e){return new gi(e)}function bi(e){return new _i(e)}function xi(e){this._context=e}xi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Si(e),i=Si(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Si(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ci(e){return new xi(e)}function wi(e,t){this._context=e,this._t=t}wi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Ti(e){return new wi(e,.5)}function Ei(e){return new wi(e,0)}function Di(e){return new wi(e,1)}function Oi(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ki(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Ai(e,t){return e[t]}function ji(e){let t=[];return t.key=e,t}function Mi(){var e=V([]),t=ki,n=Oi,r=Ai;function i(i){var a=Array.from(e.apply(this,arguments),ji),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=Dr(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:V(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:V(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?ki:typeof e==`function`?e:V(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Oi,i):n},i}function Ni(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Oi(e,t)}}function Pi(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Oi(e,t)}}function Fi(e,t){if((o=e.length)>0&&(a=(i=e[t[0]]).length)>0){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Oi(e,t)}}var Ii=r(pr());function Li(e){"@babel/helpers - typeof";return Li=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},Li(e)}var Ri=[`type`,`size`,`sizeType`];function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zi.apply(this,arguments)}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bi(Object(n),!0).forEach(function(t){Hi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hi(e,t,n){return t=Ui(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ui(e){var t=Wi(e,`string`);return Li(t)==`symbol`?t:t+``}function Wi(e,t){if(Li(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Li(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gi(e,t){if(e==null)return{};var n=Ki(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ki(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var qi={symbolCircle:Lr,symbolCross:Rr,symbolDiamond:Vr,symbolSquare:Hr,symbolStar:qr,symbolTriangle:Yr,symbolWye:ei},Ji=Math.PI/180,Yi=function(e){return qi[`symbol${(0,Ii.default)(e)}`]||Lr},Xi=function(e,t,n){if(t===`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 r=18*Ji;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**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}},Zi=function(e,t){qi[`symbol${(0,Ii.default)(e)}`]=t},Qi=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,o=a===void 0?`area`:a,s=Vi(Vi({},Gi(e,Ri)),{},{type:n,size:i,sizeType:o}),c=function(){var e=Yi(n);return ti().type(e).size(Xi(i,o,n))()},l=s.className,u=s.cx,d=s.cy,f=z(s,!0);return u===+u&&d===+d&&i===+i?L.createElement(`path`,zi({},f,{className:p(`recharts-symbols`,l),transform:`translate(${u}, ${d})`,d:c()})):null};Qi.registerSymbol=Zi;function $i(e){"@babel/helpers - typeof";return $i=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},$i(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ta(Object(n),!0).forEach(function(t){pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ra(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ma(r.key),r)}}function aa(e,t,n){return t&&ia(e.prototype,t),n&&ia(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oa(e,t,n){return t=ua(t),sa(e,la()?Reflect.construct(t,n||[],ua(e).constructor):t.apply(e,n))}function sa(e,t){if(t&&($i(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return ca(e)}function ca(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function la(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(la=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ua(e)}function da(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fa(e,t)}function fa(e,t){return fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fa(e,t)}function pa(e,t,n){return t=ma(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ma(e){var t=ha(e,`string`);return $i(t)==`symbol`?t:t+``}function ha(e,t){if($i(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($i(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ga=32,_a=function(e){function t(){return ra(this,t),oa(this,t,arguments)}return da(t,e),aa(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=ga/2,r=ga/6,i=ga/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return L.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:ga,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return L.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
2
- A${r},${r},0,1,1,${2*i},${n}
3
- H${ga}M${2*i},${n}
4
- A${r},${r},0,1,1,${i},${n}`,className:`recharts-legend-icon`});if(e.type===`rect`)return L.createElement(`path`,{stroke:`none`,fill:a,d:`M0,${ga/8}h${ga}v${ga*3/4}h${-ga}z`,className:`recharts-legend-icon`});if(L.isValidElement(e.legendIcon)){var o=na({},e);return delete o.legendIcon,L.cloneElement(e.legendIcon,o)}return L.createElement(Qi,{fill:a,cx:n,cy:n,size:ga,sizeType:`diameter`,type:e.type})}},{key:`renderItems`,value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,o=t.inactiveColor,s={x:0,y:0,width:ga,height:ga},c={display:i===`horizontal`?`inline-block`:`block`,marginRight:10},l={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return n.map(function(t,n){var i=t.formatter||a,u=p(pa(pa({"recharts-legend-item":!0},`legend-item-${n}`,!0),`inactive`,t.inactive));if(t.type===`none`)return null;var d=(0,R.default)(t.value)?null:t.value;(0,R.default)(t.value);var f=t.inactive?o:t.color;return L.createElement(`li`,ea({className:u,style:c,key:`legend-item-${n}`},Dn(e.props,t,n)),L.createElement(tr,{width:r,height:r,viewBox:s,style:l},e.renderIcon(t)),L.createElement(`span`,{className:`recharts-legend-item-text`,style:{color:f}},i?i(d,t,n):d))})}},{key:`render`,value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:n===`horizontal`?r:`left`};return L.createElement(`ul`,{className:`recharts-default-legend`,style:i},this.renderItems())}}])}(L.PureComponent);pa(_a,`displayName`,`Legend`),pa(_a,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`middle`,inactiveColor:`#ccc`});var va=t(((e,t)=>{var n=kt();function r(){this.__data__=new n,this.size=0}t.exports=r})),ya=t(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),ba=t(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),xa=t(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Sa=t(((e,t)=>{var n=kt(),r=At(),i=Rt(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),Ca=t(((e,t)=>{var n=kt(),r=va(),i=ya(),a=ba(),o=xa(),s=Sa();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),wa=t(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),Ta=t(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Ea=t(((e,t)=>{var n=Rt(),r=wa(),i=Ta();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),Da=t(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),Oa=t(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),ka=t(((e,t)=>{var n=Ea(),r=Da(),i=Oa(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),Aa=t(((e,t)=>{t.exports=$e().Uint8Array})),ja=t(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),Ma=t(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),Na=t(((e,t)=>{var n=et(),r=Aa(),i=Ct(),a=ka(),o=ja(),s=Ma(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),Pa=t(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),Fa=t(((e,t)=>{var n=Pa(),r=Ze();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),Ia=t(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),La=t(((e,t)=>{function n(){return[]}t.exports=n})),Ra=t(((e,t)=>{var n=Ia(),r=La(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),za=t(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),Ba=t(((e,t)=>{var n=rt(),r=it(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Va=t(((e,t)=>{var n=Ba(),r=it(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Ha=t(((e,t)=>{function n(){return!1}t.exports=n})),Ua=t(((e,t)=>{var n=$e(),r=Ha(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Wa=t(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=r})),Ga=t(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),Ka=t(((e,t)=>{var n=rt(),r=Ga(),i=it(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),qa=t(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Ja=t(((e,t)=>{var n=Qe(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Ya=t(((e,t)=>{var n=Ka(),r=qa(),i=Ja(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Xa=t(((e,t)=>{var n=za(),r=Va(),i=Ze(),a=Ua(),o=Wa(),s=Ya(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Za=t(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Qa=t(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),$a=t(((e,t)=>{t.exports=Qa()(Object.keys,Object)})),eo=t(((e,t)=>{var n=Za(),r=$a(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),to=t(((e,t)=>{var n=ct(),r=Ga();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),no=t(((e,t)=>{var n=Xa(),r=eo(),i=to();function a(e){return i(e)?n(e):r(e)}t.exports=a})),ro=t(((e,t)=>{var n=Fa(),r=Ra(),i=no();function a(e){return n(e,i,r)}t.exports=a})),io=t(((e,t)=>{var n=ro(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),ao=t(((e,t)=>{t.exports=mt()($e(),`DataView`)})),oo=t(((e,t)=>{t.exports=mt()($e(),`Promise`)})),so=t(((e,t)=>{t.exports=mt()($e(),`Set`)})),co=t(((e,t)=>{t.exports=mt()($e(),`WeakMap`)})),lo=t(((e,t)=>{var n=ao(),r=At(),i=oo(),a=so(),o=co(),s=rt(),c=dt(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),uo=t(((e,t)=>{var n=Ca(),r=ka(),i=Na(),a=io(),o=lo(),s=Ze(),c=Ua(),l=Ya(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),fo=t(((e,t)=>{var n=uo(),r=it();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),po=t(((e,t)=>{var n=Ca(),r=fo(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),mo=t(((e,t)=>{var n=st();function r(e){return e===e&&!n(e)}t.exports=r})),ho=t(((e,t)=>{var n=mo(),r=no();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),go=t(((e,t)=>{function n(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),_o=t(((e,t)=>{var n=po(),r=ho(),i=go();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),vo=t(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),yo=t(((e,t)=>{var n=Gt(),r=Va(),i=Ze(),a=Wa(),o=Ga(),s=Kt();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),bo=t(((e,t)=>{var n=vo(),r=yo();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),xo=t(((e,t)=>{var n=fo(),r=Jt(),i=bo(),a=ot(),o=mo(),s=go(),c=Kt(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),So=t(((e,t)=>{function n(e){return e}t.exports=n})),Co=t(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),wo=t(((e,t)=>{var n=qt();function r(e){return function(t){return n(t,e)}}t.exports=r})),To=t(((e,t)=>{var n=Co(),r=wo(),i=ot(),a=Kt();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),Eo=t(((e,t)=>{var n=_o(),r=xo(),i=So(),a=Ze(),o=To();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),Do=t(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),Oo=t(((e,t)=>{function n(e){return e!==e}t.exports=n})),ko=t(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),Ao=t(((e,t)=>{var n=Do(),r=Oo(),i=ko();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),jo=t(((e,t)=>{var n=Ao();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),Mo=t(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),No=t(((e,t)=>{function n(){}t.exports=n})),Po=t(((e,t)=>{var n=so(),r=No(),i=Ma();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),Fo=t(((e,t)=>{var n=Ea(),r=jo(),i=Mo(),a=Oa(),o=Po(),s=Ma(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),Io=r(t(((e,t)=>{var n=Eo(),r=Fo();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i}))());function Lo(e,t,n){return t===!0?(0,Io.default)(e,n):(0,R.default)(t)?(0,Io.default)(e,t):e}function Ro(e){"@babel/helpers - typeof";return Ro=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},Ro(e)}var zo=[`ref`];function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bo(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ho(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,$o(r.key),r)}}function Wo(e,t,n){return t&&Uo(e.prototype,t),n&&Uo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Go(e,t,n){return t=Yo(t),Ko(e,Jo()?Reflect.construct(t,n||[],Yo(e).constructor):t.apply(e,n))}function Ko(e,t){if(t&&(Ro(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return qo(e)}function qo(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Jo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jo=function(){return!!e})()}function Yo(e){return Yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yo(e)}function Xo(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zo(e,t)}function Zo(e,t){return Zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zo(e,t)}function Qo(e,t,n){return t=$o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(e){var t=es(e,`string`);return Ro(t)==`symbol`?t:t+``}function es(e,t){if(Ro(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ro(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ts(e,t){if(e==null)return{};var n=ns(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ns(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rs(e){return e.value}function is(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e==`function`)return L.createElement(e,t);t.ref;var n=ts(t,zo);return L.createElement(_a,n)}var as=1,os=function(e){function t(){var e;Ho(this,t);var n=[...arguments];return e=Go(this,t,[].concat(n)),Qo(e,`lastBoundingBox`,{width:-1,height:-1}),e}return Xo(t,e),Wo(t,[{key:`componentDidMount`,value:function(){this.updateBBox()}},{key:`componentDidUpdate`,value:function(){this.updateBBox()}},{key:`getBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:`updateBBox`,value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>as||Math.abs(t.height-this.lastBoundingBox.height)>as)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:`getBBoxSnapshot`,value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Vo({},this.lastBoundingBox):{width:0,height:0}}},{key:`getDefaultPosition`,value:function(e){var t=this.props,n=t.layout,r=t.align,i=t.verticalAlign,a=t.margin,o=t.chartWidth,s=t.chartHeight,c,l;if(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null)){if(r===`center`&&n===`vertical`){var u=this.getBBoxSnapshot();c={left:((o||0)-u.width)/2}}else c=r===`right`?{right:a&&a.right||0}:{left:a&&a.left||0}}if(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null)){if(i===`middle`){var d=this.getBBoxSnapshot();l={top:((s||0)-d.height)/2}}else l=i===`bottom`?{bottom:a&&a.bottom||0}:{top:a&&a.top||0}}return Vo(Vo({},c),l)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,o=t.payloadUniqBy,s=t.payload,c=Vo(Vo({position:`absolute`,width:r||`auto`,height:i||`auto`},this.getDefaultPosition(a)),a);return L.createElement(`div`,{className:`recharts-legend-wrapper`,style:c,ref:function(t){e.wrapperNode=t}},is(n,Vo(Vo({},this.props),{},{payload:Lo(s,o,rs)})))}}],[{key:`getWithHeight`,value:function(e,t){var n=Vo(Vo({},this.defaultProps),e.props).layout;return n===`vertical`&&F(e.props.height)?{height:e.props.height}:n===`horizontal`?{width:e.props.width||t}:null}}])}(L.PureComponent);Qo(os,`displayName`,`Legend`),Qo(os,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`bottom`});var ss=t(((e,t)=>{var n=et(),r=Va(),i=Ze(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),cs=t(((e,t)=>{var n=Pa(),r=ss();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),ls=t(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),us=t(((e,t)=>{t.exports=ls()()})),ds=t(((e,t)=>{var n=us(),r=no();function i(e,t){return e&&n(e,t,r)}t.exports=i})),fs=t(((e,t)=>{var n=to();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),ps=t(((e,t)=>{var n=ds();t.exports=fs()(n)})),ms=t(((e,t)=>{var n=ps(),r=to();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),hs=t(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),gs=t(((e,t)=>{var n=at();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),_s=t(((e,t)=>{var n=gs();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),vs=t(((e,t)=>{var n=Ht(),r=qt(),i=Eo(),a=ms(),o=hs(),s=qa(),c=_s(),l=So(),u=Ze();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),ys=t(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),bs=t(((e,t)=>{var n=ys(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),xs=t(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),Ss=t(((e,t)=>{var n=mt();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),Cs=t(((e,t)=>{var n=xs(),r=Ss(),i=So();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),ws=t(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),Ts=t(((e,t)=>{var n=Cs();t.exports=ws()(n)})),Es=t(((e,t)=>{var n=So(),r=bs(),i=Ts();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),Ds=t(((e,t)=>{var n=Ct(),r=to(),i=Wa(),a=st();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),Os=r(t(((e,t)=>{var n=cs(),r=vs(),i=Es(),a=Ds();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})}))());function ks(e){"@babel/helpers - typeof";return ks=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},ks(e)}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},As.apply(this,arguments)}function js(e,t){return Is(e)||Fs(e,t)||Ns(e,t)||Ms()}function Ms(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ns(e,t){if(e){if(typeof e==`string`)return Ps(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ps(e,t)}}function Ps(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fs(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Is(e){if(Array.isArray(e))return e}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ls(Object(n),!0).forEach(function(t){zs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zs(e,t,n){return t=Bs(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bs(e){var t=Vs(e,`string`);return ks(t)==`symbol`?t:t+``}function Vs(e,t){if(ks(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ks(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hs(e){return Array.isArray(e)&&I(e[0])&&I(e[1])?e.join(` ~ `):e}var Us=function(e){var t=e.separator,n=t===void 0?` : `:t,r=e.contentStyle,i=r===void 0?{}:r,a=e.itemStyle,o=a===void 0?{}:a,s=e.labelStyle,c=s===void 0?{}:s,l=e.payload,u=e.formatter,d=e.itemSorter,f=e.wrapperClassName,m=e.labelClassName,h=e.label,g=e.labelFormatter,_=e.accessibilityLayer,v=_!==void 0&&_,y=function(){if(l&&l.length){var e={padding:0,margin:0},t=(d?(0,Os.default)(l,d):l).map(function(e,t){if(e.type===`none`)return null;var r=Rs({display:`block`,paddingTop:4,paddingBottom:4,color:e.color||`#000`},o),i=e.formatter||u||Hs,a=e.value,s=e.name,c=a,d=s;if(i&&c!=null&&d!=null){var f=i(a,s,e,t,l);if(Array.isArray(f)){var p=js(f,2);c=p[0],d=p[1]}else c=f}return L.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${t}`,style:r},I(d)?L.createElement(`span`,{className:`recharts-tooltip-item-name`},d):null,I(d)?L.createElement(`span`,{className:`recharts-tooltip-item-separator`},n):null,L.createElement(`span`,{className:`recharts-tooltip-item-value`},c),L.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return L.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},t)}return null},b=Rs({margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},i),x=Rs({margin:0},c),S=!(0,P.default)(h),C=S?h:``,w=p(`recharts-default-tooltip`,f),T=p(`recharts-tooltip-label`,m);S&&g&&l!=null&&(C=g(h,l));var E=v?{role:`status`,"aria-live":`assertive`}:{};return L.createElement(`div`,As({className:w,style:b},E),L.createElement(`p`,{className:T,style:x},L.isValidElement(C)?C:`${C}`),y())};function Ws(e){"@babel/helpers - typeof";return Ws=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},Ws(e)}function Gs(e,t,n){return t=Ks(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ks(e){var t=qs(e,`string`);return Ws(t)==`symbol`?t:t+``}function qs(e,t){if(Ws(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ws(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Js=`recharts-tooltip-wrapper`,Ys={visibility:`hidden`};function Xs(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return p(Js,Gs(Gs(Gs(Gs({},`${Js}-right`,F(n)&&t&&F(t.x)&&n>=t.x),`${Js}-left`,F(n)&&t&&F(t.x)&&n<t.x),`${Js}-bottom`,F(r)&&t&&F(t.y)&&r>=t.y),`${Js}-top`,F(r)&&t&&F(t.y)&&r<t.y))}function Zs(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&F(a[r]))return a[r];var u=n[r]-s-i,d=n[r]+i;return t[r]?o[r]?u:d:o[r]?u<c[r]?Math.max(d,c[r]):Math.max(u,c[r]):d+s>c[r]+l?Math.max(u,c[r]):Math.max(d,c[r])}function Qs(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function $s(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,u,d;return o.height>0&&o.width>0&&n?(u=Zs({allowEscapeViewBox:t,coordinate:n,key:`x`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),d=Zs({allowEscapeViewBox:t,coordinate:n,key:`y`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=Qs({translateX:u,translateY:d,useTranslate3d:s})):l=Ys,{cssProperties:l,cssClasses:Xs({translateX:u,translateY:d,coordinate:n})}}function ec(e){"@babel/helpers - typeof";return ec=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},ec(e)}function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tc(Object(n),!0).forEach(function(t){pc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rc(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,mc(r.key),r)}}function ac(e,t,n){return t&&ic(e.prototype,t),n&&ic(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oc(e,t,n){return t=uc(t),sc(e,lc()?Reflect.construct(t,n||[],uc(e).constructor):t.apply(e,n))}function sc(e,t){if(t&&(ec(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return cc(e)}function cc(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function lc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lc=function(){return!!e})()}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uc(e)}function dc(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fc(e,t)}function fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fc(e,t)}function pc(e,t,n){return t=mc(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mc(e){var t=hc(e,`string`);return ec(t)==`symbol`?t:t+``}function hc(e,t){if(ec(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ec(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var gc=1,_c=function(e){function t(){var e;rc(this,t);var n=[...arguments];return e=oc(this,t,[].concat(n)),pc(e,`state`,{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pc(e,`handleKeyDown`,function(t){t.key===`Escape`&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:e.props.coordinate?.x??0,y:e.props.coordinate?.y??0}})}),e}return dc(t,e),ac(t,[{key:`updateBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>gc||Math.abs(e.height-this.state.lastBoundingBox.height)>gc)&&this.setState({lastBoundingBox:{width:e.width,height:e.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(){this.props.active&&this.updateBBox(),this.state.dismissed&&(this.props.coordinate?.x!==this.state.dismissedAtCoordinate.x||this.props.coordinate?.y!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.children,s=t.coordinate,c=t.hasPayload,l=t.isAnimationActive,u=t.offset,d=t.position,f=t.reverseDirection,p=t.useTranslate3d,m=t.viewBox,h=t.wrapperStyle,g=$s({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:u,position:d,reverseDirection:f,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:m}),_=g.cssClasses,v=g.cssProperties,y=nc(nc({transition:l&&n?`transform ${i}ms ${a}`:void 0},v),{},{pointerEvents:`none`,visibility:!this.state.dismissed&&n&&c?`visible`:`hidden`,position:`absolute`,top:0,left:0},h);return L.createElement(`div`,{tabIndex:-1,className:_,style:y,ref:function(t){e.wrapperNode=t}},o)}}])}(L.PureComponent),vc={isSsr:function(){return!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)}(),get:function(e){return vc[e]},set:function(e,t){if(typeof e==`string`)vc[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){vc[t]=e[t]})}}};function yc(e){"@babel/helpers - typeof";return yc=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},yc(e)}function bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bc(Object(n),!0).forEach(function(t){Mc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sc(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Nc(r.key),r)}}function wc(e,t,n){return t&&Cc(e.prototype,t),n&&Cc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tc(e,t,n){return t=kc(t),Ec(e,Oc()?Reflect.construct(t,n||[],kc(e).constructor):t.apply(e,n))}function Ec(e,t){if(t&&(yc(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Dc(e)}function Dc(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Oc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oc=function(){return!!e})()}function kc(e){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kc(e)}function Ac(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jc(e,t)}function jc(e,t){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jc(e,t)}function Mc(e,t,n){return t=Nc(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nc(e){var t=Pc(e,`string`);return yc(t)==`symbol`?t:t+``}function Pc(e,t){if(yc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fc(e){return e.dataKey}function Ic(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e==`function`?L.createElement(e,t):L.createElement(Us,t)}var Lc=function(e){function t(){return Sc(this,t),Tc(this,t,arguments)}return Ac(t,e),wc(t,[{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.content,s=t.coordinate,c=t.filterNull,l=t.isAnimationActive,u=t.offset,d=t.payload,f=t.payloadUniqBy,p=t.position,m=t.reverseDirection,h=t.useTranslate3d,g=t.viewBox,_=t.wrapperStyle,v=d??[];c&&v.length&&(v=Lo(d.filter(function(t){return t.value!=null&&(t.hide!==!0||e.props.includeHidden)}),f,Fc));var y=v.length>0;return L.createElement(_c,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:l,active:n,coordinate:s,hasPayload:y,offset:u,position:p,reverseDirection:m,useTranslate3d:h,viewBox:g,wrapperStyle:_},Ic(o,xc(xc({},this.props),{},{payload:v})))}}])}(L.PureComponent);Mc(Lc,`displayName`,`Tooltip`),Mc(Lc,`defaultProps`,{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!vc.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Rc=t(((e,t)=>{var n=$e();t.exports=function(){return n.Date.now()}})),zc=t(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),Bc=t(((e,t)=>{var n=zc(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),Vc=t(((e,t)=>{var n=Bc(),r=st(),i=at(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),Hc=t(((e,t)=>{var n=st(),r=Rc(),i=Vc(),a=`Expected a function`,o=Math.max,s=Math.min;function c(e,t,c){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(a);t=i(t)||0,n(c)&&(g=!!c.leading,_=`maxWait`in c,d=_?o(i(c.maxWait)||0,t):d,v=`trailing`in c?!!c.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?s(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=c})),Uc=r(t(((e,t)=>{var n=Hc(),r=st(),i=`Expected a function`;function a(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=a}))());function Wc(e){"@babel/helpers - typeof";return Wc=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},Wc(e)}function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Gc(Object(n),!0).forEach(function(t){qc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qc(e,t,n){return t=Jc(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jc(e){var t=Yc(e,`string`);return Wc(t)==`symbol`?t:t+``}function Yc(e,t){if(Wc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Wc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xc(e,t){return tl(e)||el(e,t)||Qc(e,t)||Zc()}function Zc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qc(e,t){if(e){if(typeof e==`string`)return $c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $c(e,t)}}function $c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function el(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function tl(e){if(Array.isArray(e))return e}var nl=(0,L.forwardRef)(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?`100%`:a,s=e.height,c=s===void 0?`100%`:s,l=e.minWidth,u=l===void 0?0:l,d=e.minHeight,f=e.maxHeight,m=e.children,h=e.debounce,g=h===void 0?0:h,_=e.id,v=e.className,y=e.onResize,b=e.style,x=b===void 0?{}:b,S=(0,L.useRef)(null),C=(0,L.useRef)();C.current=y,(0,L.useImperativeHandle)(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn(`The usage of ref.current.current is deprecated and will no longer be supported.`),S.current},configurable:!0})});var w=Xc((0,L.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,L.useCallback)(function(e,t){E(function(n){var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,L.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,i=n.height;D(r,i),(t=C.current)==null||t.call(C,r,i)};g>0&&(e=(0,Uc.default)(e,g,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect(),r=n.width,i=n.height;return D(r,i),t.observe(S.current),function(){t.disconnect()}},[D,g]);var O=(0,L.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;sn(o)||sn(c);var r=sn(o)?e:o,i=sn(c)?t:c;n&&n>0&&(r?i=r/n:i&&(r=i*n),f&&i>f&&(i=f));var a=!Array.isArray(m)&&Fn(m.type).endsWith(`Chart`);return L.Children.map(m,function(e){return L.isValidElement(e)?(0,L.cloneElement)(e,Kc({width:r,height:i},a?{style:Kc({height:`100%`,width:`100%`,maxHeight:i,maxWidth:r},e.props.style)}:{})):e})},[n,m,c,f,d,u,T,o]);return L.createElement(`div`,{id:_?`${_}`:void 0,className:p(`recharts-responsive-container`,v),style:Kc(Kc({},x),{},{width:o,height:c,minWidth:u,minHeight:d,maxHeight:f}),ref:S},O)}),rl=function(e){return null};rl.displayName=`Cell`;function il(e){"@babel/helpers - typeof";return il=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},il(e)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?al(Object(n),!0).forEach(function(t){sl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sl(e,t,n){return t=cl(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cl(e){var t=ll(e,`string`);return il(t)==`symbol`?t:t+``}function ll(e,t){if(il(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(il(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ul={widthCache:{},cacheCount:0},dl=2e3,fl={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},pl=`recharts_measurement_span`;function ml(e){var t=ol({},e);return Object.keys(t).forEach(function(e){t[e]||delete t[e]}),t}var hl=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||vc.isSsr)return{width:0,height:0};var n=ml(t),r=JSON.stringify({text:e,copyStyle:n});if(ul.widthCache[r])return ul.widthCache[r];try{var i=document.getElementById(pl);i||(i=document.createElement(`span`),i.setAttribute(`id`,pl),i.setAttribute(`aria-hidden`,`true`),document.body.appendChild(i));var a=ol(ol({},fl),n);Object.assign(i.style,a),i.textContent=`${e}`;var o=i.getBoundingClientRect(),s={width:o.width,height:o.height};return ul.widthCache[r]=s,++ul.cacheCount>dl&&(ul.cacheCount=0,ul.widthCache={}),s}catch{return{width:0,height:0}}},gl=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}function vl(e,t){return Cl(e)||Sl(e,t)||bl(e,t)||yl()}function yl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bl(e,t){if(e){if(typeof e==`string`)return xl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xl(e,t)}}function xl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sl(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Cl(e){if(Array.isArray(e))return e}function wl(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Dl(r.key),r)}}function El(e,t,n){return t&&Tl(e.prototype,t),n&&Tl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dl(e){var t=Ol(e,`string`);return _l(t)==`symbol`?t:t+``}function Ol(e,t){if(_l(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_l(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var kl=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Al=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jl=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ml=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Nl={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Pl=Object.keys(Nl),Fl=`NaN`;function Il(e,t){return e*Nl[t]}var Ll=function(){function e(t,n){wl(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=``),n!==``&&!jl.test(n)&&(this.num=NaN,this.unit=``),Pl.includes(n)&&(this.num=Il(t,n),this.unit=`px`)}return El(e,[{key:`add`,value:function(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}},{key:`subtract`,value:function(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}},{key:`multiply`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}},{key:`divide`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}},{key:`toString`,value:function(){return`${this.num}${this.unit}`}},{key:`isNaN`,value:function(){return Number.isNaN(this.num)}}],[{key:`parse`,value:function(t){var n=vl(Ml.exec(t)??[],3),r=n[1],i=n[2];return new e(parseFloat(r),i??``)}}])}();function Rl(e){if(e.includes(Fl))return Fl;for(var t=e;t.includes(`*`)||t.includes(`/`);){var n=vl(kl.exec(t)??[],4),r=n[1],i=n[2],a=n[3],o=Ll.parse(r??``),s=Ll.parse(a??``),c=i===`*`?o.multiply(s):o.divide(s);if(c.isNaN())return Fl;t=t.replace(kl,c.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var l=vl(Al.exec(t)??[],4),u=l[1],d=l[2],f=l[3],p=Ll.parse(u??``),m=Ll.parse(f??``),h=d===`+`?p.add(m):p.subtract(m);if(h.isNaN())return Fl;t=t.replace(Al,h.toString())}return t}var zl=/\(([^()]*)\)/;function Bl(e){for(var t=e;t.includes(`(`);){var n=vl(zl.exec(t),2)[1];t=t.replace(zl,Rl(n))}return t}function Vl(e){var t=e.replace(/\s+/g,``);return t=Bl(t),t=Rl(t),t}function Hl(e){try{return Vl(e)}catch{return Fl}}function Ul(e){var t=Hl(e.slice(5,-1));return t===Fl?``:t}var Wl=[`x`,`y`,`lineHeight`,`capHeight`,`scaleToFit`,`textAnchor`,`verticalAnchor`,`fill`],Gl=[`dx`,`dy`,`angle`,`className`,`breakAll`];function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kl.apply(this,arguments)}function ql(e,t){if(e==null)return{};var n=Jl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jl(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Yl(e,t){return eu(e)||$l(e,t)||Zl(e,t)||Xl()}function Xl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zl(e,t){if(e){if(typeof e==`string`)return Ql(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ql(e,t)}}function Ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $l(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function eu(e){if(Array.isArray(e))return e}var tu=/[ \f\n\r\t\v\u2028\u2029]+/,nu=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return(0,P.default)(t)||(i=n?t.toString().split(``):t.toString().split(tu)),{wordsWithComputedWidth:i.map(function(e){return{word:e,width:hl(e,r).width}}),spaceWidth:n?0:hl(`\xA0`,r).width}}catch{return null}},ru=function(e,t,n,r,i){var a=e.maxLines,o=e.children,s=e.style,c=e.breakAll,l=F(a),u=o,d=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(e,t){var a=t.word,o=t.width,s=e[e.length-1];if(s&&(r==null||i||s.width+o+n<Number(r)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[])},f=d(t),p=function(e){return e.reduce(function(e,t){return e.width>t.width?e:t})};if(!l)return f;for(var m=`…`,h=function(e){var t=nu({breakAll:c,style:s,children:u.slice(0,e)+m}).wordsWithComputedWidth,n=d(t);return[n.length>a||p(n).width>Number(r),n]},g=0,_=u.length-1,v=0,y;g<=_&&v<=u.length-1;){var b=Math.floor((g+_)/2),x=Yl(h(b-1),2),S=x[0],C=x[1],w=Yl(h(b),1)[0];if(!S&&!w&&(g=b+1),S&&w&&(_=b-1),!S&&w){y=C;break}v++}return y||f},iu=function(e){return[{words:(0,P.default)(e)?[]:e.toString().split(tu)}]},au=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,a=e.breakAll,o=e.maxLines;if((t||n)&&!vc.isSsr){var s,c,l=nu({breakAll:a,children:r,style:i});if(l){var u=l.wordsWithComputedWidth,d=l.spaceWidth;s=u,c=d}else return iu(r);return ru({breakAll:a,children:r,maxLines:o,style:i},s,c,t,n)}return iu(r)},ou=`#808080`,su=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.lineHeight,o=a===void 0?`1em`:a,s=e.capHeight,c=s===void 0?`0.71em`:s,l=e.scaleToFit,u=l!==void 0&&l,d=e.textAnchor,f=d===void 0?`start`:d,m=e.verticalAnchor,h=m===void 0?`end`:m,g=e.fill,_=g===void 0?ou:g,v=ql(e,Wl),y=(0,L.useMemo)(function(){return au({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:u,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,u,v.style,v.width]),b=v.dx,x=v.dy,S=v.angle,C=v.className,w=v.breakAll,T=ql(v,Gl);if(!I(n)||!I(i))return null;var E=n+(F(b)?b:0),D=i+(F(x)?x:0),O;switch(h){case`start`:O=Ul(`calc(${c})`);break;case`middle`:O=Ul(`calc(${(y.length-1)/2} * -${o} + (${c} / 2))`);break;default:O=Ul(`calc(${y.length-1} * -${o})`)}var k=[];if(u){var A=y[0].width,j=v.width;k.push(`scale(${(F(j)?j/A:1)/A})`)}return S&&k.push(`rotate(${S}, ${E}, ${D})`),k.length&&(T.transform=k.join(` `)),L.createElement(`text`,Kl({},z(T,!0),{x:E,y:D,className:p(`recharts-text`,C),textAnchor:f,fill:_.includes(`url`)?ou:_}),y.map(function(e,t){var n=e.words.join(w?``:` `);return L.createElement(`tspan`,{x:E,dy:t===0?O:o,key:`${n}-${t}`},n)}))};function cu(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lu(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uu(e){let t,n,r;e.length===2?(t=e===cu||e===lu?e:du,n=e,r=e):(t=cu,n=(t,n)=>cu(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function du(){return 0}function fu(e){return e===null?NaN:+e}function*pu(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var mu=uu(cu),hu=mu.right;mu.left,uu(fu).center;var gu=class extends Map{constructor(e,t=bu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(_u(this,e))}has(e){return super.has(_u(this,e))}set(e,t){return super.set(vu(this,e),t)}delete(e){return super.delete(yu(this,e))}};function _u({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function vu({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function yu({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function bu(e){return typeof e==`object`&&e?e.valueOf():e}function xu(e=cu){if(e===cu)return Su;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Su(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var Cu=Math.sqrt(50),wu=Math.sqrt(10),Tu=Math.sqrt(2);function Eu(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Cu?10:a>=wu?5:a>=Tu?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Eu(e,t,n*2):[s,c,l]}function Du(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?Eu(t,e,n):Eu(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function Ou(e,t,n){return t=+t,e=+e,n=+n,Eu(e,t,n)[2]}function ku(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?Ou(t,e,n):Ou(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Au(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function ju(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Mu(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Su:xu(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));Mu(e,t,u,d,i)}let a=e[t],o=n,s=r;for(Nu(e,n,t),i(e[r],a)>0&&Nu(e,n,r);o<s;){for(Nu(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?Nu(e,n,s):(++s,Nu(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Nu(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Pu(e,t,n){if(e=Float64Array.from(pu(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return ju(e);if(t>=1)return Au(e);var r,i=(r-1)*t,a=Math.floor(i),o=Au(Mu(e,a).subarray(0,a+1));return o+(ju(e.subarray(a+1))-o)*(i-a)}}function Fu(e,t,n=fu){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function Iu(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function Lu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Ru(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t)}return this}var zu=Symbol(`implicit`);function Bu(){var e=new gu,t=[],n=[],r=zu;function i(i){let a=e.get(i);if(a===void 0){if(r!==zu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new gu;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Bu(t,n).unknown(r)},Lu.apply(i,arguments),i}function Vu(){var e=Bu().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=Iu(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return Vu(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},Lu.apply(d(),arguments)}function Hu(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Hu(t())},e}function Uu(){return Hu(Vu.apply(null,arguments).paddingInner(1))}function Wu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Gu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ku(){}var qu=.7,Ju=1/qu,Yu=`\\s*([+-]?\\d+)\\s*`,Xu=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Zu=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Qu=/^#([0-9a-f]{3,8})$/,$u=RegExp(`^rgb\\(${Yu},${Yu},${Yu}\\)$`),ed=RegExp(`^rgb\\(${Zu},${Zu},${Zu}\\)$`),td=RegExp(`^rgba\\(${Yu},${Yu},${Yu},${Xu}\\)$`),nd=RegExp(`^rgba\\(${Zu},${Zu},${Zu},${Xu}\\)$`),rd=RegExp(`^hsl\\(${Xu},${Zu},${Zu}\\)$`),id=RegExp(`^hsla\\(${Xu},${Zu},${Zu},${Xu}\\)$`),ad={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wu(Ku,ud,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:od,formatHex:od,formatHex8:sd,formatHsl:cd,formatRgb:ld,toString:ld});function od(){return this.rgb().formatHex()}function sd(){return this.rgb().formatHex8()}function cd(){return Cd(this).formatHsl()}function ld(){return this.rgb().formatRgb()}function ud(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Qu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?dd(t):n===3?new hd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?fd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?fd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$u.exec(e))?new hd(t[1],t[2],t[3],1):(t=ed.exec(e))?new hd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=td.exec(e))?fd(t[1],t[2],t[3],t[4]):(t=nd.exec(e))?fd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rd.exec(e))?Sd(t[1],t[2]/100,t[3]/100,1):(t=id.exec(e))?Sd(t[1],t[2]/100,t[3]/100,t[4]):ad.hasOwnProperty(e)?dd(ad[e]):e===`transparent`?new hd(NaN,NaN,NaN,0):null}function dd(e){return new hd(e>>16&255,e>>8&255,e&255,1)}function fd(e,t,n,r){return r<=0&&(e=t=n=NaN),new hd(e,t,n,r)}function pd(e){return e instanceof Ku||(e=ud(e)),e?(e=e.rgb(),new hd(e.r,e.g,e.b,e.opacity)):new hd}function md(e,t,n,r){return arguments.length===1?pd(e):new hd(e,t,n,r??1)}function hd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Wu(hd,md,Gu(Ku,{brighter(e){return e=e==null?Ju:Ju**+e,new hd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qu:qu**+e,new hd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hd(bd(this.r),bd(this.g),bd(this.b),yd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gd,formatHex:gd,formatHex8:_d,formatRgb:vd,toString:vd}));function gd(){return`#${xd(this.r)}${xd(this.g)}${xd(this.b)}`}function _d(){return`#${xd(this.r)}${xd(this.g)}${xd(this.b)}${xd((isNaN(this.opacity)?1:this.opacity)*255)}`}function vd(){let e=yd(this.opacity);return`${e===1?`rgb(`:`rgba(`}${bd(this.r)}, ${bd(this.g)}, ${bd(this.b)}${e===1?`)`:`, ${e})`}`}function yd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function bd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xd(e){return e=bd(e),(e<16?`0`:``)+e.toString(16)}function Sd(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Td(e,t,n,r)}function Cd(e){if(e instanceof Td)return new Td(e.h,e.s,e.l,e.opacity);if(e instanceof Ku||(e=ud(e)),!e)return new Td;if(e instanceof Td)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Td(o,s,c,e.opacity)}function wd(e,t,n,r){return arguments.length===1?Cd(e):new Td(e,t,n,r??1)}function Td(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Wu(Td,wd,Gu(Ku,{brighter(e){return e=e==null?Ju:Ju**+e,new Td(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qu:qu**+e,new Td(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new hd(Od(e>=240?e-240:e+120,i,r),Od(e,i,r),Od(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Td(Ed(this.h),Dd(this.s),Dd(this.l),yd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=yd(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ed(this.h)}, ${Dd(this.s)*100}%, ${Dd(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ed(e){return e=(e||0)%360,e<0?e+360:e}function Dd(e){return Math.max(0,Math.min(1,e||0))}function Od(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var kd=e=>()=>e;function Ad(e,t){return function(n){return e+n*t}}function jd(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Md(e){return(e=+e)==1?Nd:function(t,n){return n-t?jd(t,n,e):kd(isNaN(t)?n:t)}}function Nd(e,t){var n=t-e;return n?Ad(e,n):kd(isNaN(e)?t:e)}var Pd=(function e(t){var n=Md(t);function r(e,t){var r=n((e=md(e)).r,(t=md(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Nd(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Fd(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Id(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ld(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=Kd(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Rd(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function zd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Bd(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Kd(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Vd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hd=new RegExp(Vd.source,`g`);function Ud(e){return function(){return e}}function Wd(e){return function(t){return e(t)+``}}function Gd(e,t){var n=Vd.lastIndex=Hd.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Vd.exec(e))&&(i=Hd.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:zd(r,i)})),n=Hd.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Wd(c[0].x):Ud(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Kd(e,t){var n=typeof t,r;return t==null||n===`boolean`?kd(t):(n===`number`?zd:n===`string`?(r=ud(t))?(t=r,Pd):Gd:t instanceof ud?Pd:t instanceof Date?Rd:Id(t)?Fd:Array.isArray(t)?Ld:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Bd:zd)(e,t)}function qd(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Jd(e,t){t===void 0&&(t=e,e=Kd);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function Yd(e){return function(){return e}}function Xd(e){return+e}var Zd=[0,1];function Qd(e){return e}function $d(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Yd(isNaN(t)?NaN:.5)}function ef(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function tf(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=$d(i,r),a=n(o,a)):(r=$d(r,i),a=n(a,o)),function(e){return a(r(e))}}function nf(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=$d(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=hu(e,t,1,r)-1;return a[n](i[n](t))}}function rf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function af(){var e=Zd,t=Zd,n=Kd,r,i,a,o=Qd,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==Qd&&(o=ef(e[0],e[n-1])),s=n>2?nf:tf,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),zd))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Xd),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=qd,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Qd,u()):o!==Qd},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function of(){return af()(Qd,Qd)}function sf(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function cf(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function lf(e){return e=cf(Math.abs(e)),e?e[1]:NaN}function uf(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function df(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var ff=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pf(e){if(!(t=ff.exec(e)))throw Error(`invalid format: `+e);var t;return new mf({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}pf.prototype=mf.prototype;function mf(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}mf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function hf(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var gf;function _f(e,t){var n=cf(e,t);if(!n)return gf=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(gf=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+cf(e,Math.max(0,t+a-1))[0]}function vf(e,t){var n=cf(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var yf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:sf,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>vf(e*100,t),r:vf,s:_f,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bf(e){return e}var xf=Array.prototype.map,Sf=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Cf(e){var t=e.grouping===void 0||e.thousands===void 0?bf:uf(xf.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?bf:df(xf.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=pf(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):yf[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=yf[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=hf(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&gf!==void 0?Sf[8+gf/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(lf(t)/3)))*3,r=10**-n,i=l((e=pf(e),e.type=`f`,e),{suffix:Sf[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var wf,Tf,Ef;Df({thousands:`,`,grouping:[3],currency:[`$`,``]});function Df(e){return wf=Cf(e),Tf=wf.format,Ef=wf.formatPrefix,wf}function Of(e){return Math.max(0,-lf(Math.abs(e)))}function kf(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(lf(t)/3)))*3-lf(Math.abs(e)))}function Af(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lf(t)-lf(e))+1}function jf(e,t,n,r){var i=ku(e,t,n),a;switch(r=pf(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=kf(i,o))&&(r.precision=a),Ef(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Af(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Of(i))&&(r.precision=a-(r.type===`%`)*2)}return Tf(r)}function Mf(e){var t=e.domain;return e.ticks=function(e){var n=t();return Du(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return jf(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=Ou(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Nf(){var e=of();return e.copy=function(){return rf(e,Nf())},Lu.apply(e,arguments),Mf(e)}function Pf(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Xd),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Pf(e).unknown(t)},e=arguments.length?Array.from(e,Xd):[0,1],Mf(n)}function Ff(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function If(e){return Math.log(e)}function Lf(e){return Math.exp(e)}function Rf(e){return-Math.log(-e)}function zf(e){return-Math.exp(-e)}function Bf(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function Vf(e){return e===10?Bf:e===Math.E?Math.exp:t=>e**+t}function Hf(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Uf(e){return(t,n)=>-e(-t,n)}function Wf(e){let t=e(If,Lf),n=t.domain,r=10,i,a;function o(){return i=Hf(r),a=Vf(r),n()[0]<0?(i=Uf(i),a=Uf(a),e(Rf,zf)):e(If,Lf),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=Du(o,s,p))}else m=Du(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=pf(n)).precision==null&&(n.trim=!0),n=Tf(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(Ff(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function Gf(){let e=Wf(af()).domain([1,10]);return e.copy=()=>rf(e,Gf()).base(e.base()),Lu.apply(e,arguments),e}function Kf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function qf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Jf(e){var t=1,n=e(Kf(t),qf(t));return n.constant=function(n){return arguments.length?e(Kf(t=+n),qf(t)):t},Mf(n)}function Yf(){var e=Jf(af());return e.copy=function(){return rf(e,Yf()).constant(e.constant())},Lu.apply(e,arguments)}function Xf(e){return function(t){return t<0?-((-t)**+e):t**+e}}function Zf(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Qf(e){return e<0?-e*e:e*e}function $f(e){var t=e(Qd,Qd),n=1;function r(){return n===1?e(Qd,Qd):n===.5?e(Zf,Qf):e(Xf(n),Xf(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Mf(t)}function ep(){var e=$f(af());return e.copy=function(){return rf(e,ep()).exponent(e.exponent())},Lu.apply(e,arguments),e}function tp(){return ep.apply(null,arguments).exponent(.5)}function np(e){return Math.sign(e)*e*e}function rp(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ip(){var e=of(),t=[0,1],n=!1,r;function i(t){var i=rp(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(np(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,Xd)).map(np)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return ip(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Lu.apply(i,arguments),Mf(i)}function ap(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=Fu(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[hu(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(cu),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return ap().domain(e).range(t).unknown(r)},Lu.apply(a,arguments)}function op(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[hu(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return op().domain([e,t]).range(i).unknown(a)},Lu.apply(Mf(o),arguments)}function sp(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[hu(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return sp().domain(e).range(t).unknown(n)},Lu.apply(i,arguments)}var cp=new Date,lp=new Date;function H(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>H(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(cp.setTime(+t),lp.setTime(+r),e(cp),e(lp),Math.floor(n(cp,lp))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var up=H(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);up.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?H(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):up),up.range;var dp=1e3,fp=dp*60,pp=fp*60,mp=pp*24,hp=mp*7,gp=mp*30,_p=mp*365,vp=H(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dp)},(e,t)=>(t-e)/dp,e=>e.getUTCSeconds());vp.range;var yp=H(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dp)},(e,t)=>{e.setTime(+e+t*fp)},(e,t)=>(t-e)/fp,e=>e.getMinutes());yp.range;var bp=H(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fp)},(e,t)=>(t-e)/fp,e=>e.getUTCMinutes());bp.range;var xp=H(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dp-e.getMinutes()*fp)},(e,t)=>{e.setTime(+e+t*pp)},(e,t)=>(t-e)/pp,e=>e.getHours());xp.range;var Sp=H(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pp)},(e,t)=>(t-e)/pp,e=>e.getUTCHours());Sp.range;var Cp=H(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fp)/mp,e=>e.getDate()-1);Cp.range;var wp=H(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mp,e=>e.getUTCDate()-1);wp.range;var Tp=H(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mp,e=>Math.floor(e/mp));Tp.range;function Ep(e){return H(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fp)/hp)}var Dp=Ep(0),Op=Ep(1),kp=Ep(2),Ap=Ep(3),jp=Ep(4),Mp=Ep(5),Np=Ep(6);Dp.range,Op.range,kp.range,Ap.range,jp.range,Mp.range,Np.range;function Pp(e){return H(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/hp)}var Fp=Pp(0),Ip=Pp(1),Lp=Pp(2),Rp=Pp(3),zp=Pp(4),Bp=Pp(5),Vp=Pp(6);Fp.range,Ip.range,Lp.range,Rp.range,zp.range,Bp.range,Vp.range;var Hp=H(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Hp.range;var Up=H(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Up.range;var Wp=H(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Wp.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:H(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Wp.range;var Gp=H(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gp.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:H(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Gp.range;function Kp(e,t,n,r,i,a){let o=[[vp,1,dp],[vp,5,5*dp],[vp,15,15*dp],[vp,30,30*dp],[a,1,fp],[a,5,5*fp],[a,15,15*fp],[a,30,30*fp],[i,1,pp],[i,3,3*pp],[i,6,6*pp],[i,12,12*pp],[r,1,mp],[r,2,2*mp],[n,1,hp],[t,1,gp],[t,3,3*gp],[e,1,_p]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=uu(([,,e])=>e).right(o,i);if(a===o.length)return e.every(ku(t/_p,n/_p,r));if(a===0)return up.every(Math.max(ku(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[qp,Jp]=Kp(Gp,Up,Fp,Tp,Sp,bp),[Yp,Xp]=Kp(Wp,Hp,Dp,Cp,xp,yp);function Zp(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Qp(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function $p(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function em(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=am(i),u=om(i),d=am(a),f=om(a),p=am(o),m=om(o),h=am(s),g=om(s),_=am(c),v=om(c),y={a:N,A:ee,b:te,B:ne,c:null,d:Dm,e:Dm,f:Mm,g:Um,G:Gm,H:Om,I:km,j:Am,L:jm,m:Nm,M:Pm,p:re,q:ie,Q:mh,s:hh,S:Fm,u:Im,U:Lm,V:zm,w:Bm,W:Vm,x:null,X:null,y:Hm,Y:Wm,Z:Km,"%":ph},b={a:ae,A:oe,b:se,B:ce,c:null,d:qm,e:qm,f:Qm,g:lh,G:dh,H:Jm,I:Ym,j:Xm,L:Zm,m:$m,M:eh,p:le,q:ue,Q:mh,s:hh,S:th,u:nh,U:rh,V:ah,w:oh,W:sh,x:null,X:null,y:ch,Y:uh,Z:fh,"%":ph},x={a:E,A:D,b:O,B:k,c:A,d:_m,e:_m,f:Cm,g:pm,G:fm,H:ym,I:ym,j:vm,L:Sm,m:gm,M:bm,p:T,q:hm,Q:Tm,s:Em,S:xm,u:cm,U:lm,V:um,w:sm,W:dm,x:j,X:M,y:pm,Y:fm,Z:mm,"%":wm};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=tm[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=$p(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Qp($p(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Ip.ceil(a):Ip(a),a=wp.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Zp($p(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Op.ceil(a):Op(a),a=Cp.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Qp($p(r.y,0,1)).getUTCDay():Zp($p(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Qp(r)):Zp(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in tm?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function ee(e){return a[e.getDay()]}function te(e){return c[e.getMonth()]}function ne(e){return s[e.getMonth()]}function re(e){return i[+(e.getHours()>=12)]}function ie(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function le(e){return i[+(e.getUTCHours()>=12)]}function ue(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var tm={"-":``,_:` `,0:`0`},U=/^\s*\d+/,nm=/^%/,rm=/[\\^$*+?|[\]().{}]/g;function W(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function im(e){return e.replace(rm,`\\$&`)}function am(e){return RegExp(`^(?:`+e.map(im).join(`|`)+`)`,`i`)}function om(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function sm(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function cm(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lm(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function um(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dm(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fm(e,t,n){var r=U.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function pm(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function mm(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function hm(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function gm(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _m(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vm(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ym(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function bm(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function xm(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Sm(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Cm(e,t,n){var r=U.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wm(e,t,n){var r=nm.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Tm(e,t,n){var r=U.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Em(e,t,n){var r=U.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Dm(e,t){return W(e.getDate(),t,2)}function Om(e,t){return W(e.getHours(),t,2)}function km(e,t){return W(e.getHours()%12||12,t,2)}function Am(e,t){return W(1+Cp.count(Wp(e),e),t,3)}function jm(e,t){return W(e.getMilliseconds(),t,3)}function Mm(e,t){return jm(e,t)+`000`}function Nm(e,t){return W(e.getMonth()+1,t,2)}function Pm(e,t){return W(e.getMinutes(),t,2)}function Fm(e,t){return W(e.getSeconds(),t,2)}function Im(e){var t=e.getDay();return t===0?7:t}function Lm(e,t){return W(Dp.count(Wp(e)-1,e),t,2)}function Rm(e){var t=e.getDay();return t>=4||t===0?jp(e):jp.ceil(e)}function zm(e,t){return e=Rm(e),W(jp.count(Wp(e),e)+(Wp(e).getDay()===4),t,2)}function Bm(e){return e.getDay()}function Vm(e,t){return W(Op.count(Wp(e)-1,e),t,2)}function Hm(e,t){return W(e.getFullYear()%100,t,2)}function Um(e,t){return e=Rm(e),W(e.getFullYear()%100,t,2)}function Wm(e,t){return W(e.getFullYear()%1e4,t,4)}function Gm(e,t){var n=e.getDay();return e=n>=4||n===0?jp(e):jp.ceil(e),W(e.getFullYear()%1e4,t,4)}function Km(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+W(t/60|0,`0`,2)+W(t%60,`0`,2)}function qm(e,t){return W(e.getUTCDate(),t,2)}function Jm(e,t){return W(e.getUTCHours(),t,2)}function Ym(e,t){return W(e.getUTCHours()%12||12,t,2)}function Xm(e,t){return W(1+wp.count(Gp(e),e),t,3)}function Zm(e,t){return W(e.getUTCMilliseconds(),t,3)}function Qm(e,t){return Zm(e,t)+`000`}function $m(e,t){return W(e.getUTCMonth()+1,t,2)}function eh(e,t){return W(e.getUTCMinutes(),t,2)}function th(e,t){return W(e.getUTCSeconds(),t,2)}function nh(e){var t=e.getUTCDay();return t===0?7:t}function rh(e,t){return W(Fp.count(Gp(e)-1,e),t,2)}function ih(e){var t=e.getUTCDay();return t>=4||t===0?zp(e):zp.ceil(e)}function ah(e,t){return e=ih(e),W(zp.count(Gp(e),e)+(Gp(e).getUTCDay()===4),t,2)}function oh(e){return e.getUTCDay()}function sh(e,t){return W(Ip.count(Gp(e)-1,e),t,2)}function ch(e,t){return W(e.getUTCFullYear()%100,t,2)}function lh(e,t){return e=ih(e),W(e.getUTCFullYear()%100,t,2)}function uh(e,t){return W(e.getUTCFullYear()%1e4,t,4)}function dh(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zp(e):zp.ceil(e),W(e.getUTCFullYear()%1e4,t,4)}function fh(){return`+0000`}function ph(){return`%`}function mh(e){return+e}function hh(e){return Math.floor(e/1e3)}var gh,_h,vh;yh({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function yh(e){return gh=em(e),_h=gh.format,gh.parse,vh=gh.utcFormat,gh.utcParse,gh}function bh(e){return new Date(e)}function xh(e){return e instanceof Date?+e:+new Date(+e)}function Sh(e,t,n,r,i,a,o,s,c,l){var u=of(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,xh)):f().map(bh)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(Ff(n,e)):u},u.copy=function(){return rf(u,Sh(e,t,n,r,i,a,o,s,c,l))},u}function Ch(){return Lu.apply(Sh(Yp,Xp,Wp,Hp,Dp,Cp,xp,yp,vp,_h).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wh(){return Lu.apply(Sh(qp,Jp,Gp,Up,Fp,wp,Sp,bp,vp,vh).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Th(){var e=0,t=1,n,r,i,a,o=Qd,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(Kd),l.rangeRound=u(qd),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function Eh(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Dh(){var e=Mf(Th()(Qd));return e.copy=function(){return Eh(e,Dh())},Ru.apply(e,arguments)}function Oh(){var e=Wf(Th()).domain([1,10]);return e.copy=function(){return Eh(e,Oh()).base(e.base())},Ru.apply(e,arguments)}function kh(){var e=Jf(Th());return e.copy=function(){return Eh(e,kh()).constant(e.constant())},Ru.apply(e,arguments)}function Ah(){var e=$f(Th());return e.copy=function(){return Eh(e,Ah()).exponent(e.exponent())},Ru.apply(e,arguments)}function jh(){return Ah.apply(null,arguments).exponent(.5)}function Mh(){var e=[],t=Qd;function n(n){if(n!=null&&!isNaN(n=+n))return t((hu(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(cu),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>Pu(e,r/t))},n.copy=function(){return Mh(t).domain(e)},Ru.apply(n,arguments)}function Nh(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=Qd,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=Jd(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(Kd),p.rangeRound=m(qd),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function Ph(){var e=Mf(Nh()(Qd));return e.copy=function(){return Eh(e,Ph())},Ru.apply(e,arguments)}function Fh(){var e=Wf(Nh()).domain([.1,1,10]);return e.copy=function(){return Eh(e,Fh()).base(e.base())},Ru.apply(e,arguments)}function Ih(){var e=Jf(Nh());return e.copy=function(){return Eh(e,Ih()).constant(e.constant())},Ru.apply(e,arguments)}function Lh(){var e=$f(Nh());return e.copy=function(){return Eh(e,Lh()).exponent(e.exponent())},Ru.apply(e,arguments)}function Rh(){return Lh.apply(null,arguments).exponent(.5)}var zh=e({scaleBand:()=>Vu,scaleDiverging:()=>Ph,scaleDivergingLog:()=>Fh,scaleDivergingPow:()=>Lh,scaleDivergingSqrt:()=>Rh,scaleDivergingSymlog:()=>Ih,scaleIdentity:()=>Pf,scaleImplicit:()=>zu,scaleLinear:()=>Nf,scaleLog:()=>Gf,scaleOrdinal:()=>Bu,scalePoint:()=>Uu,scalePow:()=>ep,scaleQuantile:()=>ap,scaleQuantize:()=>op,scaleRadial:()=>ip,scaleSequential:()=>Dh,scaleSequentialLog:()=>Oh,scaleSequentialPow:()=>Ah,scaleSequentialQuantile:()=>Mh,scaleSequentialSqrt:()=>jh,scaleSequentialSymlog:()=>kh,scaleSqrt:()=>tp,scaleSymlog:()=>Yf,scaleThreshold:()=>sp,scaleTime:()=>Ch,scaleUtc:()=>wh,tickFormat:()=>jf}),Bh=t(((e,t)=>{var n=at();function r(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===void 0?s===s&&!n(s):r(s,c)))var c=s,l=o}return l}t.exports=r})),Vh=t(((e,t)=>{function n(e,t){return e>t}t.exports=n})),Hh=t(((e,t)=>{var n=Bh(),r=Vh(),i=So();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),Uh=t(((e,t)=>{function n(e,t){return e<t}t.exports=n})),Wh=t(((e,t)=>{var n=Bh(),r=Uh(),i=So();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),Gh=t(((e,t)=>{var n=Ht(),r=Eo(),i=ms(),a=Ze();function o(e,t){return(a(e)?n:i)(e,r(t,3))}t.exports=o})),Kh=t(((e,t)=>{var n=cs(),r=Gh();function i(e,t){return n(r(e,t),1)}t.exports=i})),qh=t(((e,t)=>{var n=fo();function r(e,t){return n(e,t)}t.exports=r})),Jh=t(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0){if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i)}if((i=e[r=`LN10`])!==void 0){if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i)}return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}));function Yh(e){return $h(e)||Qh(e)||Zh(e)||Xh()}function Xh(){throw TypeError(`Invalid attempt to spread non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zh(e,t){if(e){if(typeof e==`string`)return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,t)}}function Qh(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function $h(e){if(Array.isArray(e))return eg(e)}function eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tg=function(e){return e},ng={"@@functional/placeholder":!0},rg=function(e){return e===ng},ig=function(e){return function t(){return arguments.length===0||arguments.length===1&&rg(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},ag=function e(t,n){return t===1?n:ig(function(){var r=[...arguments],i=r.filter(function(e){return e!==ng}).length;return i>=t?n.apply(void 0,r):e(t-i,ig(function(){var e=[...arguments],t=r.map(function(t){return rg(t)?e.shift():t});return n.apply(void 0,Yh(t).concat(e))}))})},og=function(e){return ag(e.length,e)},sg=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},cg=og(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),lg=function(){var e=[...arguments];if(!e.length)return tg;var t=e.reverse(),n=t[0],r=t.slice(1);return function(){return r.reduce(function(e,t){return t(e)},n.apply(void 0,arguments))}},ug=function(e){return Array.isArray(e)?e.reverse():e.split(``).reverse.join(``)},dg=function(e){var t=null,n=null;return function(){var r=[...arguments];return t&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}},G=r(Jh());function fg(e){return e===0?1:Math.floor(new G.default(e).abs().log(10).toNumber())+1}function pg(e,t,n){for(var r=new G.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var mg={rangeStep:pg,getDigitCount:fg,interpolateNumber:og(function(e,t,n){var r=+e;return r+n*(+t-r)}),uninterpolateNumber:og(function(e,t,n){var r=t-+e;return r||=1/0,(n-e)/r}),uninterpolateTruncation:og(function(e,t,n){var r=t-+e;return r||=1/0,Math.max(0,Math.min(1,(n-e)/r))})};function hg(e){return vg(e)||_g(e)||xg(e)||gg()}function gg(){throw TypeError(`Invalid attempt to spread non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _g(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function vg(e){if(Array.isArray(e))return Sg(e)}function yg(e,t){return wg(e)||Cg(e,t)||xg(e,t)||bg()}function bg(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xg(e,t){if(e){if(typeof e==`string`)return Sg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sg(e,t)}}function Sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cg(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function wg(e){if(Array.isArray(e))return e}function Tg(e){var t=yg(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function Eg(e,t,n){if(e.lte(0))return new G.default(0);var r=mg.getDigitCount(e.toNumber()),i=new G.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new G.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?s:new G.default(Math.ceil(s))}function Dg(e,t,n){var r=1,i=new G.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new G.default(10).pow(mg.getDigitCount(e)-1),i=new G.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new G.default(Math.floor(e)))}else e===0?i=new G.default(Math.floor((t-1)/2)):n||(i=new G.default(Math.floor(e)));var o=Math.floor((t-1)/2);return lg(cg(function(e){return i.add(new G.default(e-o).mul(r)).toNumber()}),sg)(0,t)}function Og(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new G.default(0),tickMin:new G.default(0),tickMax:new G.default(0)};var a=Eg(new G.default(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new G.default(0):(o=new G.default(e).add(t).div(2),o=o.sub(new G.default(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new G.default(t).sub(o).div(a).toNumber()),l=s+c+1;return l>n?Og(e,t,n,r,i+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:o.sub(new G.default(s).mul(a)),tickMax:o.add(new G.default(c).mul(a))})}function kg(e){var t=yg(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=yg(Tg([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(hg(sg(0,i-1).map(function(){return 1/0}))):[].concat(hg(sg(0,i-1).map(function(){return-1/0})),[l]);return n>r?ug(u):u}if(c===l)return Dg(c,i,a);var d=Og(c,l,o,a),f=d.step,p=d.tickMin,m=d.tickMax,h=mg.rangeStep(p,m.add(new G.default(.1).mul(f)),f);return n>r?ug(h):h}function Ag(e,t){var n=yg(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=yg(Tg([r,i]),2),s=o[0],c=o[1];if(s===-1/0||c===1/0)return[r,i];if(s===c)return[s];var l=Math.max(t,2),u=Eg(new G.default(c).sub(s).div(l-1),a,0),d=[].concat(hg(mg.rangeStep(new G.default(s),new G.default(c).sub(new G.default(.99).mul(u)),u)),[c]);return r>i?ug(d):d}var jg=dg(kg),Mg=dg(Ag),Ng=`Invariant failed`;function Pg(e,t){if(!e)throw Error(Ng)}var Fg=[`offset`,`layout`,`width`,`dataKey`,`data`,`dataPointFormatter`,`xAxis`,`yAxis`];function Ig(e){"@babel/helpers - typeof";return Ig=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},Ig(e)}function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lg.apply(this,arguments)}function Rg(e,t){return Ug(e)||Hg(e,t)||Bg(e,t)||zg()}function zg(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bg(e,t){if(e){if(typeof e==`string`)return Vg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vg(e,t)}}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hg(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ug(e){if(Array.isArray(e))return e}function Wg(e,t){if(e==null)return{};var n=Gg(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gg(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Kg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function qg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r_(r.key),r)}}function Jg(e,t,n){return t&&qg(e.prototype,t),n&&qg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yg(e,t,n){return t=$g(t),Xg(e,Qg()?Reflect.construct(t,n||[],$g(e).constructor):t.apply(e,n))}function Xg(e,t){if(t&&(Ig(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Zg(e)}function Zg(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Qg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qg=function(){return!!e})()}function $g(e){return $g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$g(e)}function e_(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t_(e,t)}function t_(e,t){return t_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t_(e,t)}function n_(e,t,n){return t=r_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r_(e){var t=i_(e,`string`);return Ig(t)==`symbol`?t:t+``}function i_(e,t){if(Ig(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ig(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var a_=function(e){function t(){return Kg(this,t),Yg(this,t,arguments)}return e_(t,e),Jg(t,[{key:`render`,value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,c=e.yAxis,l=z(Wg(e,Fg),!1);this.props.direction===`x`&&s.type!==`number`&&Pg(!1);var u=a.map(function(e){var a=o(e,i),u=a.x,d=a.y,f=a.value,p=a.errorVal;if(!p)return null;var m=[],h,g;if(Array.isArray(p)){var _=Rg(p,2);h=_[0],g=_[1]}else h=g=p;if(n===`vertical`){var v=s.scale,y=d+t,b=y+r,x=y-r,S=v(f-h),C=v(f+g);m.push({x1:C,y1:b,x2:C,y2:x}),m.push({x1:S,y1:y,x2:C,y2:y}),m.push({x1:S,y1:b,x2:S,y2:x})}else if(n===`horizontal`){var w=c.scale,T=u+t,E=T-r,D=T+r,O=w(f-h),k=w(f+g);m.push({x1:E,y1:k,x2:D,y2:k}),m.push({x1:T,y1:O,x2:T,y2:k}),m.push({x1:E,y1:O,x2:D,y2:O})}return L.createElement(B,Lg({className:`recharts-errorBar`,key:`bar-${m.map(function(e){return`${e.x1}-${e.x2}-${e.y1}-${e.y2}`})}`},l),m.map(function(e){return L.createElement(`line`,Lg({},e,{key:`line-${e.x1}-${e.x2}-${e.y1}-${e.y2}`}))}))});return L.createElement(B,{className:`recharts-errorBars`},u)}}])}(L.Component);n_(a_,`defaultProps`,{stroke:`black`,strokeWidth:1.5,width:5,offset:0,layout:`horizontal`}),n_(a_,`displayName`,`ErrorBar`);function o_(e){"@babel/helpers - typeof";return o_=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},o_(e)}function s_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s_(Object(n),!0).forEach(function(t){l_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l_(e,t,n){return t=u_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u_(e){var t=d_(e,`string`);return o_(t)==`symbol`?t:t+``}function d_(e,t){if(o_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(o_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var f_=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,a=Bn(t,os);if(!a)return null;var o=os.defaultProps,s=o===void 0?{}:c_(c_({},o),a.props),c=a.props&&a.props.payload?a.props&&a.props.payload:i===`children`?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.type.defaultProps,r=n===void 0?{}:c_(c_({},n),t.props),i=r.dataKey,a=r.name,o=r.legendType;return{inactive:r.hide,dataKey:i,type:s.iconType||o||`square`,color:j_(t),value:a||i,payload:r}});return c_(c_(c_({},s),os.getWithHeight(a,r)),{},{payload:c,item:a})},p_=r(Hh()),m_=r(Wh()),h_=r(Kh()),g_=r(qh());function __(e){"@babel/helpers - typeof";return __=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},__(e)}function v_(e){return S_(e)||x_(e)||b_(e)||y_()}function y_(){throw TypeError(`Invalid attempt to spread non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b_(e,t){if(e){if(typeof e==`string`)return C_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C_(e,t)}}function x_(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function S_(e){if(Array.isArray(e))return C_(e)}function C_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?w_(Object(n),!0).forEach(function(t){T_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T_(e,t,n){return t=E_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E_(e){var t=D_(e,`string`);return __(t)==`symbol`?t:t+``}function D_(e,t){if(__(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(__(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function O_(e,t,n){return(0,P.default)(e)||(0,P.default)(t)?n:I(t)?(0,rn.default)(e,t,n):(0,R.default)(t)?t(e):n}function k_(e,t,n,r){var i=(0,h_.default)(e,function(e){return O_(e,t)});if(n===`number`){var a=i.filter(function(e){return F(e)||parseFloat(e)});return a.length?[(0,m_.default)(a),(0,p_.default)(a)]:[1/0,-1/0]}return(r?i.filter(function(e){return!(0,P.default)(e)}):i).map(function(e){return I(e)||e instanceof Date?e:``})}var A_=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=-1,a=t?.length??0;if(a<=1)return 0;if(r&&r.axisType===`angleAxis`&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var o=r.range,s=0;s<a;s++){var c=s>0?n[s-1].coordinate:n[a-1].coordinate,l=n[s].coordinate,u=s>=a-1?n[0].coordinate:n[s+1].coordinate,d=void 0;if(on(l-c)!==on(u-l)){var f=[];if(on(u-l)===on(o[1]-o[0])){d=u;var p=l+o[1]-o[0];f[0]=Math.min(p,(p+c)/2),f[1]=Math.max(p,(p+c)/2)}else{d=c;var m=u+o[1]-o[0];f[0]=Math.min(l,(m+l)/2),f[1]=Math.max(l,(m+l)/2)}var h=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){i=n[s].index;break}}else{var g=Math.min(c,u),_=Math.max(c,u);if(e>(g+l)/2&&e<=(_+l)/2){i=n[s].index;break}}}else for(var v=0;v<a;v++)if(v===0&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v>0&&v<a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v===a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2){i=t[v].index;break}return i},j_=function(e){var t,n=e.type.displayName,r=(t=e.type)!=null&&t.defaultProps?K(K({},e.type.defaultProps),e.props):e.props,i=r.stroke,a=r.fill,o;switch(n){case`Line`:o=i;break;case`Area`:case`Radar`:o=i&&i!==`none`?i:a;break;default:o=a}return o},M_=function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,c=o.length;s<c;s++)for(var l=i[o[s]].stackGroups,u=Object.keys(l),d=0,f=u.length;d<f;d++){var p=l[u[d]],m=p.items,h=p.cateAxisId,g=m.filter(function(e){return Fn(e.type).indexOf(`Bar`)>=0});if(g&&g.length){var _=g[0].type.defaultProps,v=_===void 0?g[0].props:K(K({},_),g[0].props),y=v.barSize,b=v[h];a[b]||(a[b]=[]);var x=(0,P.default)(y)?t:y;a[b].push({item:g[0],stackList:g.slice(1),barSize:(0,P.default)(x)?void 0:dn(x,n,0)})}}return a},N_=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,a=i===void 0?[]:i,o=e.maxBarSize,s=a.length;if(s<1)return null;var c=dn(t,r,0,!0),l,u=[];if(a[0].barSize===+a[0].barSize){var d=!1,f=r/s,p=a.reduce(function(e,t){return e+t.barSize||0},0);p+=(s-1)*c,p>=r&&(p-=(s-1)*c,c=0),p>=r&&f>0&&(d=!0,f*=.9,p=s*f);var m={offset:((r-p)/2>>0)-c,size:0};l=a.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?f:t.barSize}},r=[].concat(v_(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var h=dn(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var g=(r-2*h-(s-1)*c)/s;g>1&&(g>>=0);var _=o===+o?Math.min(g,o):g;l=a.reduce(function(e,t,n){var r=[].concat(v_(e),[{item:t.item,position:{offset:h+(g+c)*n+(g-_)/2,size:_}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l},P_=function(e,t,n,r){var i=n.children,a=n.width,o=n.margin,s=f_({children:i,legendWidth:a-(o.left||0)-(o.right||0)});if(s){var c=r||{},l=c.width,u=c.height,d=s.align,f=s.verticalAlign,p=s.layout;if((p===`vertical`||p===`horizontal`&&f===`middle`)&&d!==`center`&&F(e[d]))return K(K({},e),{},T_({},d,e[d]+(l||0)));if((p===`horizontal`||p===`vertical`&&d===`center`)&&f!==`middle`&&F(e[f]))return K(K({},e),{},T_({},f,e[f]+(u||0)))}return e},F_=function(e,t,n){return(0,P.default)(t)?!0:e===`horizontal`?t===`yAxis`:e===`vertical`||n===`x`?t===`xAxis`:n!==`y`||t===`yAxis`},I_=function(e,t,n,r,i){var a=t.props.children,o=zn(a,a_).filter(function(e){return F_(r,i,e.props.direction)});if(o&&o.length){var s=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=O_(t,n);if((0,P.default)(r))return e;var i=Array.isArray(r)?[(0,m_.default)(r),(0,p_.default)(r)]:[r,r],a=s.reduce(function(e,n){var r=O_(t,n,0),a=i[0]-Math.abs(Array.isArray(r)?r[0]:r),o=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(o,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},L_=function(e,t,n,r,i){var a=t.map(function(t){return I_(e,t,n,i,r)}).filter(function(e){return!(0,P.default)(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},R_=function(e,t,n,r,i){var a=t.map(function(t){var a=t.props.dataKey;return n===`number`&&a&&I_(e,t,a,r)||k_(e,a,n,i)});if(n===`number`)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return a.reduce(function(e,t){for(var n=0,r=t.length;n<r;n++)o[t[n]]||(o[t[n]]=!0,e.push(t[n]));return e},[])},z_=function(e,t){return e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`},B_=function(e,t,n,r){if(r)return e.map(function(e){return e.coordinate});var i,a,o=e.map(function(e){return e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate});return i||o.push(t),a||o.push(n),o},V_=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,a=e.type,o=e.range,s=e.realScaleType===`scaleBand`?r.bandwidth()/2:2,c=(t||n)&&a===`category`&&r.bandwidth?r.bandwidth()/s:0;return c=e.axisType===`angleAxis`&&o?.length>=2?on(o[0]-o[1])*2*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(i?i.indexOf(e):e)+c,value:e,offset:c}}).filter(function(e){return!(0,nn.default)(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+c,value:e,offset:c}}):r.domain().map(function(e,t){return{coordinate:r(e)+c,value:i?i[e]:e,index:t,offset:c}})},H_=new WeakMap,U_=function(e,t){if(typeof t!=`function`)return e;H_.has(e)||H_.set(e,new WeakMap);var n=H_.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},W_=function(e,t,n){var r=e.scale,i=e.type,a=e.layout,o=e.axisType;if(r===`auto`)return a===`radial`&&o===`radiusAxis`?{scale:Vu(),realScaleType:`band`}:a===`radial`&&o===`angleAxis`?{scale:Nf(),realScaleType:`linear`}:i===`category`&&t&&(t.indexOf(`LineChart`)>=0||t.indexOf(`AreaChart`)>=0||t.indexOf(`ComposedChart`)>=0&&!n)?{scale:Uu(),realScaleType:`point`}:i===`category`?{scale:Vu(),realScaleType:`band`}:{scale:Nf(),realScaleType:`linear`};if((0,tn.default)(r)){var s=`scale${(0,Ii.default)(r)}`;return{scale:(zh[s]||Uu)(),realScaleType:zh[s]?s:`point`}}return(0,R.default)(r)?{scale:r}:{scale:Uu(),realScaleType:`point`}},G_=1e-4,K_=function(e){var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-G_,a=Math.max(r[0],r[1])+G_,o=e(t[0]),s=e(t[n-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[n-1]])}},q_=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},J_=function(e,t){if(!t||t.length!==2||!F(t[0])||!F(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!F(e[0])||e[0]<n)&&(i[0]=n),(!F(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Y_={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0,o=0;o<t;++o){var s=(0,nn.default)(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=a,e[o][n][1]=a+s,a=e[o][n][1])}},expand:Ni,none:Oi,silhouette:Pi,wiggle:Fi,positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0;a<t;++a){var o=(0,nn.default)(e[a][n][1])?e[a][n][0]:e[a][n][1];o>=0?(e[a][n][0]=i,e[a][n][1]=i+o,i=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},X_=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),i=Y_[n];return Mi().keys(r).value(function(e,t){return+O_(e,t,0)}).order(ki).offset(i)(e)},Z_=function(e,t,n,r,i,a){if(!e)return null;var o=(a?t.reverse():t).reduce(function(e,t){var i,a=(i=t.type)!=null&&i.defaultProps?K(K({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(a.hide)return e;var s=a[n],c=e[s]||{hasStack:!1,stackGroups:{}};if(I(o)){var l=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),c.hasStack=!0,c.stackGroups[o]=l}else c.stackGroups[un(`_stackId_`)]={numericAxisId:n,cateAxisId:r,items:[t]};return K(K({},e),{},T_({},s,c))},{});return Object.keys(o).reduce(function(t,a){var s=o[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,a){var o=s.stackGroups[a];return K(K({},t),{},T_({},a,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:X_(e,o.items,i)}))},{})),K(K({},t),{},T_({},a,s))},{})},Q_=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,a=t.originalDomain,o=t.allowDecimals,s=n||t.scale;if(s!==`auto`&&s!==`linear`)return null;if(i&&r===`number`&&a&&(a[0]===`auto`||a[1]===`auto`)){var c=e.domain();if(!c.length)return null;var l=jg(c,i,o);return e.domain([(0,m_.default)(l),(0,p_.default)(l)]),{niceTicks:l}}return i&&r===`number`?{niceTicks:Mg(e.domain(),i,o)}:null};function $_(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,P.default)(i[t.dataKey])){var s=hn(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var c=O_(i,(0,P.default)(o)?t.dataKey:o);return(0,P.default)(c)?null:t.scale(c)}var ev=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=O_(a,t.dataKey,t.domain[o]);return(0,P.default)(s)?null:t.scale(s)-i/2+r},tv=function(e){var t=e.numericAxis,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},nv=function(e,t){var n,r=((n=e.type)!=null&&n.defaultProps?K(K({},e.type.defaultProps),e.props):e.props).stackId;if(I(r)){var i=t[r];if(i){var a=i.items.indexOf(e);return a>=0?i.stackedData[a]:null}}return null},rv=function(e){return e.reduce(function(e,t){return[(0,m_.default)(t.concat([e[0]]).filter(F)),(0,p_.default)(t.concat([e[1]]).filter(F))]},[1/0,-1/0])},iv=function(e,t,n){return Object.keys(e).reduce(function(r,i){var a=e[i].stackedData.reduce(function(e,r){var i=rv(r.slice(t,n+1));return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},av=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ov=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sv=function(e,t,n){if((0,R.default)(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(F(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(av.test(e[0])){var i=+av.exec(e[0])[1];r[0]=t[0]-i}else r[0]=(0,R.default)(e[0])?e[0](t[0]):t[0];if(F(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(ov.test(e[1])){var a=+ov.exec(e[1])[1];r[1]=t[1]+a}else r[1]=(0,R.default)(e[1])?e[1](t[1]):t[1];return r},cv=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,Os.default)(t,function(e){return e.coordinate}),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c.coordinate||0)-(l.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},lv=function(e,t,n){return!e||!e.length||(0,g_.default)(e,(0,rn.default)(n,`type.defaultProps.domain`))?t:e},uv=function(e,t){var n=e.type.defaultProps?K(K({},e.type.defaultProps),e.props):e.props,r=n.dataKey,i=n.name,a=n.unit,o=n.formatter,s=n.tooltipType,c=n.chartType,l=n.hide;return K(K({},z(e,!1)),{},{dataKey:r,unit:a,formatter:o,name:i||r,color:j_(e),value:O_(t,r),type:s,payload:t,chartType:c,hide:l})};function dv(e){"@babel/helpers - typeof";return dv=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},dv(e)}function fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fv(Object(n),!0).forEach(function(t){mv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mv(e,t,n){return t=hv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hv(e){var t=gv(e,`string`);return dv(t)==`symbol`?t:t+``}function gv(e,t){if(dv(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(dv(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var _v=Math.PI/180,vv=function(e){return e*180/Math.PI},yv=function(e,t,n,r){return{x:e+Math.cos(-_v*r)*n,y:t+Math.sin(-_v*r)*n}},bv=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return Math.sqrt((n-i)**2+(r-a)**2)},xv=function(e,t){var n=e.x,r=e.y,i=t.cx,a=t.cy,o=bv({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:vv(c),angleInRadian:c}},Sv=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Cv=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},wv=function(e,t){var n=e.x,r=e.y,i=xv({x:n,y:r},t),a=i.radius,o=i.angle,s=t.innerRadius,c=t.outerRadius;if(a<s||a>c)return!1;if(a===0)return!0;var l=Sv(t),u=l.startAngle,d=l.endAngle,f=o,p;if(u<=d){for(;f>d;)f-=360;for(;f<u;)f+=360;p=f>=u&&f<=d}else{for(;f>u;)f-=360;for(;f<d;)f+=360;p=f>=d&&f<=u}return p?pv(pv({},t),{},{radius:a,angle:Cv(f,t)}):null};function Tv(e){"@babel/helpers - typeof";return Tv=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},Tv(e)}var Ev=[`offset`];function Dv(e){return jv(e)||Av(e)||kv(e)||Ov()}function Ov(){throw TypeError(`Invalid attempt to spread non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kv(e,t){if(e){if(typeof e==`string`)return Mv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mv(e,t)}}function Av(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function jv(e){if(Array.isArray(e))return Mv(e)}function Mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nv(e,t){if(e==null)return{};var n=Pv(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pv(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fv(Object(n),!0).forEach(function(t){Iv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iv(e,t,n){return t=Lv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lv(e){var t=Rv(e,`string`);return Tv(t)==`symbol`?t:t+``}function Rv(e,t){if(Tv(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Tv(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zv.apply(this,arguments)}var Bv=function(e){var t=e.value,n=e.formatter,r=(0,P.default)(e.children)?t:e.children;return(0,R.default)(n)?n(r):r},Vv=function(e,t){return on(t-e)*Math.min(Math.abs(t-e),360)},Hv=function(e,t,n){var r=e.position,i=e.viewBox,a=e.offset,o=e.className,s=i,c=s.cx,l=s.cy,u=s.innerRadius,d=s.outerRadius,f=s.startAngle,m=s.endAngle,h=s.clockWise,g=(u+d)/2,_=Vv(f,m),v=_>=0?1:-1,y,b;r===`insideStart`?(y=f+v*a,b=h):r===`insideEnd`?(y=m-v*a,b=!h):r===`end`&&(y=m+v*a,b=h),b=_<=0?b:!b;var x=yv(c,l,g,y),S=yv(c,l,g,y+(b?1:-1)*359),C=`M${x.x},${x.y}
15
- A${g},${g},0,1,${+!b},
16
- ${S.x},${S.y}`,w=(0,P.default)(e.id)?un(`recharts-radial-line-`):e.id;return L.createElement(`text`,zv({},n,{dominantBaseline:`central`,className:p(`recharts-radial-bar-label`,o)}),L.createElement(`defs`,null,L.createElement(`path`,{id:w,d:C})),L.createElement(`textPath`,{xlinkHref:`#${w}`},t))},Uv=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,a=i.cx,o=i.cy,s=i.innerRadius,c=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if(r===`outside`){var u=yv(a,o,c+n,l),d=u.x;return{x:d,y:u.y,textAnchor:d>=a?`start`:`end`,verticalAnchor:`middle`}}if(r===`center`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`middle`};if(r===`centerTop`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`start`};if(r===`centerBottom`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`end`};var f=yv(a,o,(s+c)/2,l);return{x:f.x,y:f.y,textAnchor:`middle`,verticalAnchor:`middle`}},Wv=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,a=t,o=a.x,s=a.y,c=a.width,l=a.height,u=l>=0?1:-1,d=u*r,f=u>0?`end`:`start`,p=u>0?`start`:`end`,m=c>=0?1:-1,h=m*r,g=m>0?`end`:`start`,_=m>0?`start`:`end`;if(i===`top`)return q(q({},{x:o+c/2,y:s-u*r,textAnchor:`middle`,verticalAnchor:f}),n?{height:Math.max(s-n.y,0),width:c}:{});if(i===`bottom`)return q(q({},{x:o+c/2,y:s+l+d,textAnchor:`middle`,verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if(i===`left`){var v={x:o-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`};return q(q({},v),n?{width:Math.max(v.x-n.x,0),height:l}:{})}if(i===`right`){var y={x:o+c+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`};return q(q({},y),n?{width:Math.max(n.x+n.width-y.x,0),height:l}:{})}var b=n?{width:c,height:l}:{};return i===`insideLeft`?q({x:o+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`},b):i===`insideRight`?q({x:o+c-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`},b):i===`insideTop`?q({x:o+c/2,y:s+d,textAnchor:`middle`,verticalAnchor:p},b):i===`insideBottom`?q({x:o+c/2,y:s+l-d,textAnchor:`middle`,verticalAnchor:f},b):i===`insideTopLeft`?q({x:o+h,y:s+d,textAnchor:_,verticalAnchor:p},b):i===`insideTopRight`?q({x:o+c-h,y:s+d,textAnchor:g,verticalAnchor:p},b):i===`insideBottomLeft`?q({x:o+h,y:s+l-d,textAnchor:_,verticalAnchor:f},b):i===`insideBottomRight`?q({x:o+c-h,y:s+l-d,textAnchor:g,verticalAnchor:f},b):(0,vn.default)(i)&&(F(i.x)||sn(i.x))&&(F(i.y)||sn(i.y))?q({x:o+dn(i.x,c),y:s+dn(i.y,l),textAnchor:`end`,verticalAnchor:`end`},b):q({x:o+c/2,y:s+l/2,textAnchor:`middle`,verticalAnchor:`middle`},b)},Gv=function(e){return`cx`in e&&F(e.cx)};function Kv(e){var t=e.offset,n=t===void 0?5:t,r=Nv(e,Ev),i=q({offset:n},r),a=i.viewBox,o=i.position,s=i.value,c=i.children,l=i.content,u=i.className,d=u===void 0?``:u,f=i.textBreakAll;if(!a||(0,P.default)(s)&&(0,P.default)(c)&&!(0,L.isValidElement)(l)&&!(0,R.default)(l))return null;if((0,L.isValidElement)(l))return(0,L.cloneElement)(l,i);var m;if((0,R.default)(l)){if(m=(0,L.createElement)(l,i),(0,L.isValidElement)(m))return m}else m=Bv(i);var h=Gv(a),g=z(i,!0);if(h&&(o===`insideStart`||o===`insideEnd`||o===`end`))return Hv(i,m,g);var _=h?Uv(i):Wv(i);return L.createElement(su,zv({className:p(`recharts-label`,d)},g,_,{breakAll:f}),m)}Kv.displayName=`Label`;var qv=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,a=e.endAngle,o=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,d=e.y,f=e.top,p=e.left,m=e.width,h=e.height,g=e.clockWise,_=e.labelViewBox;if(_)return _;if(F(m)&&F(h)){if(F(u)&&F(d))return{x:u,y:d,width:m,height:h};if(F(f)&&F(p))return{x:f,y:p,width:m,height:h}}return F(u)&&F(d)?{x:u,y:d,width:0,height:0}:F(t)&&F(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:a||r||0,innerRadius:c||0,outerRadius:l||s||o||0,clockWise:g}:e.viewBox?e.viewBox:{}},Jv=function(e,t){return e?e===!0?L.createElement(Kv,{key:`label-implicit`,viewBox:t}):I(e)?L.createElement(Kv,{key:`label-implicit`,viewBox:t,value:e}):(0,L.isValidElement)(e)?e.type===Kv?(0,L.cloneElement)(e,{key:`label-implicit`,viewBox:t}):L.createElement(Kv,{key:`label-implicit`,content:e,viewBox:t}):(0,R.default)(e)?L.createElement(Kv,{key:`label-implicit`,content:e,viewBox:t}):(0,vn.default)(e)?L.createElement(Kv,zv({viewBox:t},e,{key:`label-implicit`})):null:null};Kv.parseViewBox=qv,Kv.renderCallByParent=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=qv(e),a=zn(r,Kv).map(function(e,n){return(0,L.cloneElement)(e,{viewBox:t||i,key:`label-${n}`})});return n?[Jv(e.label,t||i)].concat(Dv(a)):a};var Yv=r(t(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n}))());function Xv(e){"@babel/helpers - typeof";return Xv=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},Xv(e)}var Zv=[`valueAccessor`],Qv=[`data`,`dataKey`,`clockWise`,`id`,`textBreakAll`];function $v(e){return ry(e)||ny(e)||ty(e)||ey()}function ey(){throw TypeError(`Invalid attempt to spread non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ty(e,t){if(e){if(typeof e==`string`)return iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iy(e,t)}}function ny(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ry(e){if(Array.isArray(e))return iy(e)}function iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ay.apply(this,arguments)}function oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oy(Object(n),!0).forEach(function(t){cy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cy(e,t,n){return t=ly(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ly(e){var t=uy(e,`string`);return Xv(t)==`symbol`?t:t+``}function uy(e,t){if(Xv(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Xv(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function dy(e,t){if(e==null)return{};var n=fy(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fy(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var py=function(e){return Array.isArray(e.value)?(0,Yv.default)(e.value):e.value};function my(e){var t=e.valueAccessor,n=t===void 0?py:t,r=dy(e,Zv),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,c=r.textBreakAll,l=dy(r,Qv);return!i||!i.length?null:L.createElement(B,{className:`recharts-label-list`},i.map(function(e,t){var r=(0,P.default)(a)?n(e,t):O_(e&&e.payload,a),i=(0,P.default)(s)?{}:{id:`${s}-${t}`};return L.createElement(Kv,ay({},z(e,!0),l,i,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:Kv.parseViewBox((0,P.default)(o)?e:sy(sy({},e),{},{clockWise:o})),key:`label-${t}`,index:t}))}))}my.displayName=`LabelList`;function hy(e,t){return e?e===!0?L.createElement(my,{key:`labelList-implicit`,data:t}):L.isValidElement(e)||(0,R.default)(e)?L.createElement(my,{key:`labelList-implicit`,data:t,content:e}):(0,vn.default)(e)?L.createElement(my,ay({data:t},e,{key:`labelList-implicit`})):null:null}function gy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=zn(r,my).map(function(e,n){return(0,L.cloneElement)(e,{data:t,key:`labelList-${n}`})});return n?[hy(e.label,t)].concat($v(i)):i}my.renderCallByParent=gy;function _y(e){"@babel/helpers - typeof";return _y=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},_y(e)}function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vy.apply(this,arguments)}function yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yy(Object(n),!0).forEach(function(t){xy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xy(e,t,n){return t=Sy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(e){var t=Cy(e,`string`);return _y(t)==`symbol`?t:t+``}function Cy(e,t){if(_y(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_y(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var wy=function(e,t){return on(t-e)*Math.min(Math.abs(t-e),359.999)},Ty=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/_v,d=c?i:i+a*u,f=yv(t,n,l,d),p=yv(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:yv(t,n,l*Math.cos(u*_v),m),theta:u}},Ey=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=wy(a,o),c=a+s,l=yv(t,n,i,a),u=yv(t,n,i,c),d=`M ${l.x},${l.y}
18
- A ${i},${i},0,
19
- ${+(Math.abs(s)>180)},${+(a>c)},
20
- ${u.x},${u.y}
21
- `;if(r>0){var f=yv(t,n,r,a),p=yv(t,n,r,c);d+=`L ${p.x},${p.y}
22
- A ${r},${r},0,
23
- ${+(Math.abs(s)>180)},${+(a<=c)},
24
- ${f.x},${f.y} Z`}else d+=`L ${t},${n} Z`;return d},Dy=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=on(l-c),d=Ty({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=Ty({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?`M ${p.x},${p.y}
25
- a${a},${a},0,0,1,${a*2},0
26
- a${a},${a},0,0,1,${-a*2},0
27
- `:Ey({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=`M ${p.x},${p.y}
28
- A${a},${a},0,0,${+(u<0)},${f.x},${f.y}
29
- A${i},${i},0,${+(y>180)},${+(u<0)},${g.x},${g.y}
30
- A${a},${a},0,0,${+(u<0)},${_.x},${_.y}
31
- `;if(r>0){var x=Ty({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=Ty({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=`L${D.x},${D.y}
32
- A${a},${a},0,0,${+(u<0)},${E.x},${E.y}
33
- A${r},${r},0,${+(k>180)},${+(u>0)},${S.x},${S.y}
34
- A${a},${a},0,0,${+(u<0)},${C.x},${C.y}Z`}else b+=`L${t},${n}Z`;return b},Oy={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ky=function(e){var t=by(by({},Oy),e),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,d=t.className;if(a<i||l===u)return null;var f=p(`recharts-sector`,d),m=a-i,h=dn(o,m,0,!0),g=h>0&&Math.abs(l-u)<360?Dy({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(h,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):Ey({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return L.createElement(`path`,vy({},z(t,!0),{className:f,d:g,role:`img`}))};function Ay(e){"@babel/helpers - typeof";return Ay=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},Ay(e)}function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jy.apply(this,arguments)}function My(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ny(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?My(Object(n),!0).forEach(function(t){Py(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Py(e,t,n){return t=Fy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fy(e){var t=Iy(e,`string`);return Ay(t)==`symbol`?t:t+``}function Iy(e,t){if(Ay(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ay(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ly={curveBasisClosed:si,curveBasisOpen:li,curveBasis:ai,curveBumpX:Fr,curveBumpY:Ir,curveLinearClosed:di,curveLinear:kr,curveMonotoneX:yi,curveMonotoneY:bi,curveNatural:Ci,curveStep:Ti,curveStepAfter:Di,curveStepBefore:Ei},Ry=function(e){return e.x===+e.x&&e.y===+e.y},zy=function(e){return e.x},By=function(e){return e.y},Vy=function(e,t){if((0,R.default)(e))return e;var n=`curve${(0,Ii.default)(e)}`;return(n===`curveMonotone`||n===`curveBump`)&&t?Ly[`${n}${t===`vertical`?`Y`:`X`}`]:Ly[n]||kr},Hy=function(e){var t=e.type,n=t===void 0?`linear`:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s!==void 0&&s,l=Vy(n,o),u=c?i.filter(function(e){return Ry(e)}):i,d;if(Array.isArray(a)){var f=c?a.filter(function(e){return Ry(e)}):a,p=u.map(function(e,t){return Ny(Ny({},e),{},{base:f[t]})});return d=o===`vertical`?Nr().y(By).x1(zy).x0(function(e){return e.base.x}):Nr().x(zy).y1(By).y0(function(e){return e.base.y}),d.defined(Ry).curve(l),d(p)}return d=o===`vertical`&&F(a)?Nr().y(By).x1(zy).x0(a):F(a)?Nr().x(zy).y1(By).y0(a):Mr().x(zy).y(By),d.defined(Ry).curve(l),d(u)},Uy=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?Hy(e):r;return L.createElement(`path`,jy({},z(e,!1),Tn(e),{className:p(`recharts-curve`,t),d:a,ref:i}))},Wy=t(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Gy=t(((e,t)=>{var n=Wy();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Ky=t(((e,t)=>{t.exports=Gy()()})),{getOwnPropertyNames:qy,getOwnPropertySymbols:Jy}=Object,{hasOwnProperty:Yy}=Object.prototype;function Xy(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function Zy(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function Qy(e){return e?.[Symbol.toStringTag]}function $y(e){return qy(e).concat(Jy(e))}var eb=Object.hasOwn||((e,t)=>Yy.call(e,t));function tb(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var nb=`__v`,rb=`__o`,ib=`_owner`,ab=typeof Float16Array<`u`,{getOwnPropertyDescriptor:ob,keys:sb}=Object;function cb(e,t){return e.byteLength===t.byteLength&&xb(new Uint8Array(e),new Uint8Array(t))}function lb(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-->0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function ub(e,t){return e.byteLength===t.byteLength&&xb(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function db(e,t){return tb(e.getTime(),t.getTime())}function fb(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&n.equals(e.cause,t.cause,`cause`,`cause`,e,t,n)}function pb(e,t){return e===t}function mb(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var hb=tb;function gb(e,t,n){let r=sb(e),i=r.length;if(sb(t).length!==i)return!1;for(;i-->0;)if(!Tb(e,t,n,r[i]))return!1;return!0}function _b(e,t,n){let r=$y(e),i=r.length;if($y(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!Tb(e,t,n,a)||(o=ob(e,a),s=ob(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function vb(e,t){return tb(e.valueOf(),t.valueOf())}function yb(e,t){return e.source===t.source&&e.flags===t.flags}function bb(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function xb(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;if(e instanceof Float64Array||e instanceof Float32Array||ab&&e instanceof Float16Array){for(;n-->0;)if(e[n]!==t[n]&&(e[n]===e[n]||t[n]===t[n]))return!1;return!0}for(;n-->0;)if(e[n]!==t[n])return!1;return!0}function Sb(e,t){return e.href===t.href||e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&Cb(e.searchParams,t.searchParams)}function Cb(e,t){let n=e.toString(),r=t.toString();return n===r||wb(n)===wb(r)}function wb(e){return e.split(`&`).sort().join(`&`)}function Tb(e,t,n,r){return(r===ib||r===rb||r===nb)&&(e.$$typeof||t.$$typeof)?!0:eb(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Eb=`[object ArrayBuffer]`,Db=`[object Arguments]`,Ob=`[object Boolean]`,kb=`[object DataView]`,Ab=`[object Date]`,jb=`[object Error]`,Mb=`[object Map]`,Nb=`[object Number]`,Pb=`[object Object]`,Fb=`[object RegExp]`,Ib=`[object Set]`,Lb=`[object String]`,Rb={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},zb=`[object URL]`,Bb=Object.prototype.toString;function Vb({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`&&a(h,g,_);let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);let b=Bb.call(h);if(b===Ab)return r(h,g,_);if(b===Fb)return u(h,g,_);if(b===Mb)return o(h,g,_);if(b===Ib)return d(h,g,_);if(b===Pb)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===zb)return p(h,g,_);if(b===jb)return i(h,g,_);if(b===Db)return c(h,g,_);if(Rb[b])return f(h,g,_);if(b===Eb)return e(h,g,_);if(b===kb)return n(h,g,_);if(b===Ob||b===Nb||b===Lb)return l(h,g,_);if(m){let e=m[b];if(!e){let t=Qy(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function Hb({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:cb,areArraysEqual:n?_b:lb,areDataViewsEqual:ub,areDatesEqual:db,areErrorsEqual:n?Xy(fb,_b):Xy(fb,gb),areFunctionsEqual:pb,areMapsEqual:n?Xy(mb,_b):mb,areNumbersEqual:hb,areObjectsEqual:n?_b:gb,arePrimitiveWrappersEqual:vb,areRegExpsEqual:yb,areSetsEqual:n?Xy(bb,_b):bb,areTypedArraysEqual:n?Xy(xb,_b):xb,areUrlsEqual:Sb,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=Zy(r.areArraysEqual),t=Zy(r.areErrorsEqual),n=Zy(r.areMapsEqual),i=Zy(r.areObjectsEqual),a=Zy(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function Ub(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function Wb({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}var Gb=Kb();Kb({strict:!0}),Kb({circular:!0}),Kb({circular:!0,strict:!0}),Kb({createInternalComparator:()=>tb}),Kb({strict:!0,createInternalComparator:()=>tb}),Kb({circular:!0,createInternalComparator:()=>tb}),Kb({circular:!0,createInternalComparator:()=>tb,strict:!0});function Kb(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=Vb(Hb(e));return Wb({circular:t,comparator:a,createState:r,equals:n?n(a):Ub(a),strict:i})}function qb(e){typeof requestAnimationFrame<`u`&&requestAnimationFrame(e)}function Jb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):qb(r)})}function Yb(e){"@babel/helpers - typeof";return Yb=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},Yb(e)}function Xb(e){return tx(e)||ex(e)||Qb(e)||Zb()}function Zb(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qb(e,t){if(e){if(typeof e==`string`)return $b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $b(e,t)}}function $b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ex(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function tx(e){if(Array.isArray(e))return e}function nx(){var e={},t=function(){return null},n=!1,r=function r(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=Xb(i),o=a[0],s=a.slice(1);if(typeof o==`number`){Jb(r.bind(null,s),o);return}r(o),Jb(r.bind(null,s));return}Yb(i)===`object`&&(e=i,t(e)),typeof i==`function`&&i()}};return{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function rx(e){"@babel/helpers - typeof";return rx=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},rx(e)}function ix(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ax(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ix(Object(n),!0).forEach(function(t){ox(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ix(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ox(e,t,n){return t=sx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sx(e){var t=cx(e,`string`);return rx(t)===`symbol`?t:String(t)}function cx(e,t){if(rx(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rx(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var lx=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})},ux=function(e){return e},dx=function(e){return e.replace(/([A-Z])/g,function(e){return`-${e.toLowerCase()}`})},fx=function(e,t){return Object.keys(t).reduce(function(n,r){return ax(ax({},n),{},ox({},r,e(r,t[r])))},{})},px=function(e,t,n){return e.map(function(e){return`${dx(e)} ${t}ms ${n}`}).join(`,`)};function mx(e,t){return _x(e)||gx(e,t)||bx(e,t)||hx()}function hx(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
36
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gx(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function _x(e){if(Array.isArray(e))return e}function vx(e){return Sx(e)||xx(e)||bx(e)||yx()}function yx(){throw TypeError(`Invalid attempt to spread non-iterable instance.
37
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bx(e,t){if(e){if(typeof e==`string`)return Cx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cx(e,t)}}function xx(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Sx(e){if(Array.isArray(e))return Cx(e)}function Cx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wx=1e-4,Tx=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},Ex=function(e,t){return e.map(function(e,n){return e*t**+n}).reduce(function(e,t){return e+t})},Dx=function(e,t){return function(n){return Ex(Tx(e,t),n)}},Ox=function(e,t){return function(n){var r=Tx(e,t);return Ex([].concat(vx(r.map(function(e,t){return e*t}).slice(1)),[0]),n)}},kx=function(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];if(e.length===1)switch(e[0]){case`linear`:t=0,n=0,r=1,i=1;break;case`ease`:t=.25,n=.1,r=.25,i=1;break;case`ease-in`:t=.42,n=0,r=1,i=1;break;case`ease-out`:t=.42,n=0,r=.58,i=1;break;case`ease-in-out`:t=0,n=0,r=.58,i=1;break;default:var a=e[0].split(`(`);if(a[0]===`cubic-bezier`&&a[1].split(`)`)[0].split(`,`).length===4){var o=mx(a[1].split(`)`)[0].split(`,`).map(function(e){return parseFloat(e)}),4);t=o[0],n=o[1],r=o[2],i=o[3]}}[t,r,n,i].every(function(e){return typeof e==`number`&&e>=0&&e<=1});var s=Dx(t,r),c=Dx(n,i),l=Ox(t,r),u=function(e){return e>1?1:e<0?0:e},d=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=s(n)-t,a=l(n);if(Math.abs(i-t)<wx||a<wx)return c(n);n=u(n-i/a)}return c(n)};return d.isStepper=!1,d},Ax=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?17:a,s=function(e,t,r){var a=r+(-(e-t)*n-r*i)*o/1e3,s=r*o/1e3+e;return Math.abs(s-t)<wx&&Math.abs(a)<wx?[t,0]:[s,a]};return s.isStepper=!0,s.dt=o,s},jx=function(){var e=[...arguments][0];if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return kx(e);case`spring`:return Ax();default:if(e.split(`(`)[0]===`cubic-bezier`)return kx(e)}return typeof e==`function`?e:null};function Mx(e){"@babel/helpers - typeof";return Mx=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},Mx(e)}function Nx(e){return Ix(e)||Fx(e)||Wx(e)||Px()}function Px(){throw TypeError(`Invalid attempt to spread non-iterable instance.
38
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fx(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ix(e){if(Array.isArray(e))return Gx(e)}function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lx(Object(n),!0).forEach(function(t){zx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zx(e,t,n){return t=Bx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bx(e){var t=Vx(e,`string`);return Mx(t)===`symbol`?t:String(t)}function Vx(e,t){if(Mx(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mx(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hx(e,t){return qx(e)||Kx(e,t)||Wx(e,t)||Ux()}function Ux(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
39
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wx(e,t){if(e){if(typeof e==`string`)return Gx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gx(e,t)}}function Gx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kx(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function qx(e){if(Array.isArray(e))return e}var Jx=function(e,t,n){return e+(t-e)*n},Yx=function(e){return e.from!==e.to},Xx=function e(t,n,r){var i=fx(function(e,n){if(Yx(n)){var r=Hx(t(n.from,n.to,n.velocity),2),i=r[0],a=r[1];return Rx(Rx({},n),{},{from:i,velocity:a})}return n},n);return r<1?fx(function(e,t){return Yx(t)?Rx(Rx({},t),{},{velocity:Jx(t.velocity,i[e].velocity,r),from:Jx(t.from,i[e].from,r)}):t},n):e(t,i,r-1)},Zx=(function(e,t,n,r,i){var a=lx(e,t),o=a.reduce(function(n,r){return Rx(Rx({},n),{},zx({},r,[e[r],t[r]]))},{}),s=a.reduce(function(n,r){return Rx(Rx({},n),{},zx({},r,{from:e[r],velocity:0,to:t[r]}))},{}),c=-1,l,u,d=function(){return null},f=function(){return fx(function(e,t){return t.from},s)},p=function(){return!Object.values(s).filter(Yx).length};return d=n.isStepper?function(r){l||=r;var a=(r-l)/n.dt;s=Xx(n,s,a),i(Rx(Rx(Rx({},e),t),f(s))),l=r,p()||(c=requestAnimationFrame(d))}:function(a){u||=a;var s=(a-u)/r,l=fx(function(e,t){return Jx.apply(void 0,Nx(t).concat([n(s)]))},o);if(i(Rx(Rx(Rx({},e),t),l)),s<1)c=requestAnimationFrame(d);else{var f=fx(function(e,t){return Jx.apply(void 0,Nx(t).concat([n(1)]))},o);i(Rx(Rx(Rx({},e),t),f))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}}),J=r(Ky());function Qx(e){"@babel/helpers - typeof";return Qx=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},Qx(e)}var $x=[`children`,`begin`,`duration`,`attributeName`,`easing`,`isActive`,`steps`,`from`,`to`,`canBegin`,`onAnimationEnd`,`shouldReAnimate`,`onAnimationReStart`];function eS(e,t){if(e==null)return{};var n=tS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tS(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function nS(e){return oS(e)||aS(e)||iS(e)||rS()}function rS(){throw TypeError(`Invalid attempt to spread non-iterable instance.
40
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iS(e,t){if(e){if(typeof e==`string`)return sS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sS(e,t)}}function aS(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function oS(e){if(Array.isArray(e))return sS(e)}function sS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cS(Object(n),!0).forEach(function(t){uS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uS(e,t,n){return t=mS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dS(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function fS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,mS(r.key),r)}}function pS(e,t,n){return t&&fS(e.prototype,t),n&&fS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mS(e){var t=hS(e,`string`);return Qx(t)===`symbol`?t:String(t)}function hS(e,t){if(Qx(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Qx(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gS(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_S(e,t)}function vS(e){var t=xS();return function(){var n=SS(e),r;if(t){var i=SS(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return yS(this,r)}}function yS(e,t){if(t&&(Qx(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return bS(e)}function bS(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function xS(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function SS(e){return SS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SS(e)}var CS=function(e){gS(n,e);var t=vS(n);function n(e,r){var i;dS(this,n),i=t.call(this,e,r);var a=i.props,o=a.isActive,s=a.attributeName,c=a.from,l=a.to,u=a.steps,d=a.children,f=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(bS(i)),i.changeStyle=i.changeStyle.bind(bS(i)),!o||f<=0)return i.state={style:{}},typeof d==`function`&&(i.state={style:l}),yS(i);if(u&&u.length)i.state={style:u[0].style};else if(c){if(typeof d==`function`)return i.state={style:c},yS(i);i.state={style:s?uS({},s,c):c}}else i.state={style:{}};return i}return pS(n,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,i=t.attributeName,a=t.shouldReAnimate,o=t.to,s=t.from,c=this.state.style;if(r){if(!n){var l={style:i?uS({},i,o):o};this.state&&c&&(i&&c[i]!==o||!i&&c!==o)&&this.setState(l);return}if(!(Gb(e.to,o)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=u||a?s:e.to;if(this.state&&c){var f={style:i?uS({},i,d):d};(i&&c[i]!==d||!i&&c!==d)&&this.setState(f)}this.runAnimation(lS(lS({},this.props),{},{from:d,begin:0}))}}}},{key:`componentWillUnmount`,value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&=(this.manager.stop(),null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:`handleStyleChange`,value:function(e){this.changeStyle(e)}},{key:`changeStyle`,value:function(e){this.mounted&&this.setState({style:e})}},{key:`runJSAnimation`,value:function(e){var t=this,n=e.from,r=e.to,i=e.duration,a=e.easing,o=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=Zx(n,r,jx(a),i,this.changeStyle);this.manager.start([c,o,function(){t.stopJSAnimation=l()},i,s])}},{key:`runStepAnimation`,value:function(e){var t=this,n=e.steps,r=e.begin,i=e.onAnimationStart,a=n[0],o=a.style,s=a.duration,c=s===void 0?0:s;return this.manager.start([i].concat(nS(n.reduce(function(e,r,i){if(i===0)return e;var a=r.duration,o=r.easing,s=o===void 0?`ease`:o,c=r.style,l=r.properties,u=r.onAnimationEnd,d=i>0?n[i-1]:r,f=l||Object.keys(c);if(typeof s==`function`||s===`spring`)return[].concat(nS(e),[t.runJSAnimation.bind(t,{from:d.style,to:c,duration:a,easing:s}),a]);var p=px(f,a,s),m=lS(lS(lS({},d.style),c),{},{transition:p});return[].concat(nS(e),[m,a,u]).filter(ux)},[o,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:`runAnimation`,value:function(e){this.manager||=nx();var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,a=e.easing,o=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),typeof a==`function`||typeof l==`function`||a===`spring`){this.runJSAnimation(e);return}if(c.length>1){this.runStepAnimation(e);return}var d=r?uS({},r,i):i,f=px(Object.keys(d),n,a);u.start([o,t,lS(lS({},d),{},{transition:f}),n,s])}},{key:`render`,value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=eS(e,$x),a=L.Children.count(t),o=this.state.style;if(typeof t==`function`)return t(o);if(!r||a===0||n<=0)return t;var s=function(e){var t=e.props,n=t.style,r=n===void 0?{}:n,a=t.className;return(0,L.cloneElement)(e,lS(lS({},i),{},{style:lS(lS({},r),o),className:a}))};return a===1?s(L.Children.only(t)):L.createElement(`div`,null,L.Children.map(t,function(e){return s(e)}))}}]),n}(L.PureComponent);CS.displayName=`Animate`,CS.defaultProps={begin:0,duration:1e3,from:``,to:``,attributeName:``,easing:`ease`,isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},CS.propTypes={from:J.default.oneOfType([J.default.object,J.default.string]),to:J.default.oneOfType([J.default.object,J.default.string]),attributeName:J.default.string,duration:J.default.number,begin:J.default.number,easing:J.default.oneOfType([J.default.string,J.default.func]),steps:J.default.arrayOf(J.default.shape({duration:J.default.number.isRequired,style:J.default.object.isRequired,easing:J.default.oneOfType([J.default.oneOf([`ease`,`ease-in`,`ease-out`,`ease-in-out`,`linear`]),J.default.func]),properties:J.default.arrayOf(`string`),onAnimationEnd:J.default.func})),children:J.default.oneOfType([J.default.node,J.default.func]),isActive:J.default.bool,canBegin:J.default.bool,onAnimationEnd:J.default.func,shouldReAnimate:J.default.bool,onAnimationStart:J.default.func,onAnimationReStart:J.default.func};var wS=CS;function TS(e){"@babel/helpers - typeof";return TS=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},TS(e)}function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(this,arguments)}function DS(e,t){return MS(e)||jS(e,t)||kS(e,t)||OS()}function OS(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
41
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kS(e,t){if(e){if(typeof e==`string`)return AS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AS(e,t)}}function AS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function MS(e){if(Array.isArray(e))return e}function NS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?NS(Object(n),!0).forEach(function(t){FS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FS(e,t,n){return t=IS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IS(e){var t=LS(e,`string`);return TS(t)==`symbol`?t:t+``}function LS(e,t){if(TS(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(TS(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var RS=function(e,t,n,r,i){var a=Math.min(Math.abs(n)/2,Math.abs(r)/2),o=r>=0?1:-1,s=n>=0?1:-1,c=+(r>=0&&n>=0||r<0&&n<0),l;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],d=0,f=4;d<f;d++)u[d]=i[d]>a?a:i[d];l=`M${e},${t+o*u[0]}`,u[0]>0&&(l+=`A ${u[0]},${u[0]},0,0,${c},${e+s*u[0]},${t}`),l+=`L ${e+n-s*u[1]},${t}`,u[1]>0&&(l+=`A ${u[1]},${u[1]},0,0,${c},
42
- ${e+n},${t+o*u[1]}`),l+=`L ${e+n},${t+r-o*u[2]}`,u[2]>0&&(l+=`A ${u[2]},${u[2]},0,0,${c},
43
- ${e+n-s*u[2]},${t+r}`),l+=`L ${e+s*u[3]},${t+r}`,u[3]>0&&(l+=`A ${u[3]},${u[3]},0,0,${c},
44
- ${e},${t+r-o*u[3]}`),l+=`Z`}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);l=`M ${e},${t+o*p}
45
- A ${p},${p},0,0,${c},${e+s*p},${t}
46
- L ${e+n-s*p},${t}
47
- A ${p},${p},0,0,${c},${e+n},${t+o*p}
48
- L ${e+n},${t+r-o*p}
49
- A ${p},${p},0,0,${c},${e+n-s*p},${t+r}
50
- L ${e+s*p},${t+r}
51
- A ${p},${p},0,0,${c},${e},${t+r-o*p} Z`}else l=`M ${e},${t} h ${n} v ${r} h ${-n} Z`;return l},zS=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,a=t.y,o=t.width,s=t.height;if(Math.abs(o)>0&&Math.abs(s)>0){var c=Math.min(i,i+o),l=Math.max(i,i+o),u=Math.min(a,a+s),d=Math.max(a,a+s);return n>=c&&n<=l&&r>=u&&r<=d}return!1},BS={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},VS=function(e){var t=PS(PS({},BS),e),n=(0,L.useRef)(),r=DS((0,L.useState)(-1),2),i=r[0],a=r[1];(0,L.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.width,l=t.height,u=t.radius,d=t.className,f=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isAnimationActive,_=t.isUpdateAnimationActive;if(o!==+o||s!==+s||c!==+c||l!==+l||c===0||l===0)return null;var v=p(`recharts-rectangle`,d);return _?L.createElement(wS,{canBegin:i>0,from:{width:c,height:l,x:o,y:s},to:{width:c,height:l,x:o,y:s},duration:m,animationEasing:f,isActive:_},function(e){var r=e.width,a=e.height,o=e.x,s=e.y;return L.createElement(wS,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,isActive:g,easing:f},L.createElement(`path`,ES({},z(t,!0),{className:v,d:RS(o,s,r,a,u),ref:n})))}):L.createElement(`path`,ES({},z(t,!0),{className:v,d:RS(o,s,c,l,u)}))};function HS(){return HS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HS.apply(this,arguments)}var US=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.className,a=p(`recharts-dot`,i);return t===+t&&n===+n&&r===+r?L.createElement(`circle`,HS({},z(e,!1),Tn(e),{className:a,cx:t,cy:n,r})):null};function WS(e){"@babel/helpers - typeof";return WS=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},WS(e)}var GS=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function KS(){return KS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KS.apply(this,arguments)}function qS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qS(Object(n),!0).forEach(function(t){YS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YS(e,t,n){return t=XS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XS(e){var t=ZS(e,`string`);return WS(t)==`symbol`?t:t+``}function ZS(e,t){if(WS(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(WS(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function QS(e,t){if(e==null)return{};var n=$S(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $S(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var eC=function(e,t,n,r,i,a){return`M${e},${i}v${r}M${a},${t}h${n}`},tC=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.top,o=a===void 0?0:a,s=e.left,c=s===void 0?0:s,l=e.width,u=l===void 0?0:l,d=e.height,f=d===void 0?0:d,m=e.className,h=QS(e,GS),g=JS({x:n,y:i,top:o,left:c,width:u,height:f},h);return!F(n)||!F(i)||!F(u)||!F(f)||!F(o)||!F(c)?null:L.createElement(`path`,KS({},z(g,!0),{className:p(`recharts-cross`,m),d:eC(n,i,u,f,o,c)}))},nC=t(((e,t)=>{t.exports=Qa()(Object.getPrototypeOf,Object)})),rC=t(((e,t)=>{var n=rt(),r=nC(),i=it(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),iC=t(((e,t)=>{var n=rt(),r=it(),i=`[object Boolean]`;function a(e){return e===!0||e===!1||r(e)&&n(e)==i}t.exports=a}));function aC(e){"@babel/helpers - typeof";return aC=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},aC(e)}function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oC.apply(this,arguments)}function sC(e,t){return fC(e)||dC(e,t)||lC(e,t)||cC()}function cC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lC(e,t){if(e){if(typeof e==`string`)return uC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uC(e,t)}}function uC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function fC(e){if(Array.isArray(e))return e}function pC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pC(Object(n),!0).forEach(function(t){hC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hC(e,t,n){return t=gC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gC(e){var t=_C(e,`string`);return aC(t)==`symbol`?t:t+``}function _C(e,t){if(aC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(aC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var vC=function(e,t,n,r,i){var a=n-r,o=`M ${e},${t}`;return o+=`L ${e+n},${t}`,o+=`L ${e+n-a/2},${t+i}`,o+=`L ${e+n-a/2-r},${t+i}`,o+=`L ${e},${t} Z`,o},yC={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},bC=function(e){var t=mC(mC({},yC),e),n=(0,L.useRef)(),r=sC((0,L.useState)(-1),2),i=r[0],a=r[1];(0,L.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.upperWidth,l=t.lowerWidth,u=t.height,d=t.className,f=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isUpdateAnimationActive;if(o!==+o||s!==+s||c!==+c||l!==+l||u!==+u||c===0&&l===0||u===0)return null;var _=p(`recharts-trapezoid`,d);return g?L.createElement(wS,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:u,x:o,y:s},to:{upperWidth:c,lowerWidth:l,height:u,x:o,y:s},duration:m,animationEasing:f,isActive:g},function(e){var r=e.upperWidth,a=e.lowerWidth,o=e.height,s=e.x,c=e.y;return L.createElement(wS,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,easing:f},L.createElement(`path`,oC({},z(t,!0),{className:_,d:vC(s,c,r,a,o),ref:n})))}):L.createElement(`g`,null,L.createElement(`path`,oC({},z(t,!0),{className:_,d:vC(o,s,c,l,u)})))},xC=r(rC()),SC=r(iC()),CC=[`option`,`shapeType`,`propTransformer`,`activeClassName`,`isActive`];function wC(e){"@babel/helpers - typeof";return wC=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},wC(e)}function TC(e,t){if(e==null)return{};var n=EC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EC(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function DC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DC(Object(n),!0).forEach(function(t){kC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kC(e,t,n){return t=AC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AC(e){var t=jC(e,`string`);return wC(t)==`symbol`?t:t+``}function jC(e,t){if(wC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(wC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function MC(e,t){return OC(OC({},t),e)}function NC(e,t){return e===`symbols`}function PC(e){var t=e.shapeType,n=e.elementProps;switch(t){case`rectangle`:return L.createElement(VS,n);case`trapezoid`:return L.createElement(bC,n);case`sector`:return L.createElement(ky,n);case`symbols`:if(NC(t,n))return L.createElement(Qi,n);break;default:return null}}function FC(e){return(0,L.isValidElement)(e)?e.props:e}function IC(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?MC:r,a=e.activeClassName,o=a===void 0?`recharts-active-shape`:a,s=e.isActive,c=TC(e,CC),l;if((0,L.isValidElement)(t))l=(0,L.cloneElement)(t,OC(OC({},c),FC(t)));else if((0,R.default)(t))l=t(c);else if((0,xC.default)(t)&&!(0,SC.default)(t)){var u=i(t,c);l=L.createElement(PC,{shapeType:n,elementProps:u})}else{var d=c;l=L.createElement(PC,{shapeType:n,elementProps:d})}return s?L.createElement(B,{className:o},l):l}function LC(e,t){return t!=null&&`trapezoids`in e.props}function RC(e,t){return t!=null&&`sectors`in e.props}function zC(e,t){return t!=null&&`points`in e.props}function BC(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)==null?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)==null?void 0:r.y)||e.y===t.y;return i&&a}function VC(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function HC(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function UC(e,t){var n;return LC(e,t)?n=BC:RC(e,t)?n=VC:zC(e,t)&&(n=HC),n}function WC(e,t){var n;return LC(e,t)?n=`trapezoids`:RC(e,t)?n=`sectors`:zC(e,t)&&(n=`points`),n}function GC(e,t){if(LC(e,t)){var n;return(n=t.tooltipPayload)==null||(n=n[0])==null||(n=n.payload)==null?void 0:n.payload}if(RC(e,t)){var r;return(r=t.tooltipPayload)==null||(r=r[0])==null||(r=r.payload)==null?void 0:r.payload}return zC(e,t)?t.payload:{}}function KC(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=WC(n,t),a=GC(n,t),o=r.filter(function(e,r){var o=(0,g_.default)(a,e),s=n.props[i].filter(function(e){return UC(n,t)(e,t)}),c=r===n.props[i].indexOf(s[s.length-1]);return o&&c});return r.indexOf(o[o.length-1])}var qC=t(((e,t)=>{var n=Math.ceil,r=Math.max;function i(e,t,i,a){for(var o=-1,s=r(n((t-e)/(i||1)),0),c=Array(s);s--;)c[a?s:++o]=e,e+=i;return c}t.exports=i})),JC=t(((e,t)=>{var n=Vc(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),YC=t(((e,t)=>{var n=qC(),r=Ds(),i=JC();function a(e){return function(t,a,o){return o&&typeof o!=`number`&&r(t,a,o)&&(a=o=void 0),t=i(t),a===void 0?(a=t,t=0):a=i(a),o=o===void 0?t<a?1:-1:i(o),n(t,a,o,e)}}t.exports=a})),XC=t(((e,t)=>{t.exports=YC()()}));function ZC(e){"@babel/helpers - typeof";return ZC=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},ZC(e)}function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?QC(Object(n),!0).forEach(function(t){ew(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ew(e,t,n){return t=tw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tw(e){var t=nw(e,`string`);return ZC(t)==`symbol`?t:t+``}function nw(e,t){if(ZC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ZC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rw=[`Webkit`,`Moz`,`O`,`ms`],iw=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=rw.reduce(function(e,r){return $C($C({},e),{},ew({},r+n,t))},{});return r[e]=t,r},aw=r(XC());function ow(e){"@babel/helpers - typeof";return ow=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},ow(e)}function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sw.apply(this,arguments)}function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cw(Object(n),!0).forEach(function(t){bw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uw(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function dw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,xw(r.key),r)}}function fw(e,t,n){return t&&dw(e.prototype,t),n&&dw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pw(e,t,n){return t=_w(t),mw(e,gw()?Reflect.construct(t,n||[],_w(e).constructor):t.apply(e,n))}function mw(e,t){if(t&&(ow(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return hw(e)}function hw(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function gw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gw=function(){return!!e})()}function _w(e){return _w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_w(e)}function vw(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yw(e,t)}function yw(e,t){return yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yw(e,t)}function bw(e,t,n){return t=xw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xw(e){var t=Sw(e,`string`);return ow(t)==`symbol`?t:t+``}function Sw(e,t){if(ow(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ow(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Cw=function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,a=e.width,o=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=Uu().domain((0,aw.default)(0,s)).range([i,i+a-o]),l=c.domain().map(function(e){return c(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}},ww=function(e){return e.changedTouches&&!!e.changedTouches.length},Tw=function(e){function t(e){var n;return uw(this,t),n=pw(this,t,[e]),bw(n,`handleDrag`,function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),bw(n,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),bw(n,`handleDragEnd`,function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,i=e.startIndex;r?.({endIndex:t,startIndex:i})}),n.detachDragEndListener()}),bw(n,`handleLeaveWrapper`,function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),bw(n,`handleEnterSlideOrTraveller`,function(){n.setState({isTextActive:!0})}),bw(n,`handleLeaveSlideOrTraveller`,function(){n.setState({isTextActive:!1})}),bw(n,`handleSlideDragStart`,function(e){var t=ww(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,`startX`),endX:n.handleTravellerDragStart.bind(n,`endX`)},n.state={},n}return vw(t,e),fw(t,[{key:`componentWillUnmount`,value:function(){this.leaveTimer&&=(clearTimeout(this.leaveTimer),null),this.detachDragEndListener()}},{key:`getIndex`,value:function(e){var n=e.startX,r=e.endX,i=this.state.scaleValues,a=this.props,o=a.gap,s=a.data.length-1,c=Math.min(n,r),l=Math.max(n,r),u=t.getIndexInRange(i,c),d=t.getIndexInRange(i,l);return{startIndex:u-u%o,endIndex:d===s?s:d-d%o}}},{key:`getTextOfTick`,value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,a=O_(n[e],i,e);return(0,R.default)(r)?r(a,e):a}},{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(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,a=this.props,o=a.x,s=a.width,c=a.travellerWidth,l=a.startIndex,u=a.endIndex,d=a.onChange,f=e.pageX-n;f>0?f=Math.min(f,o+s-c-i,o+s-c-r):f<0&&(f=Math.max(f,o-r,o-i));var p=this.getIndex({startX:r+f,endX:i+f});(p.startIndex!==l||p.endIndex!==u)&&d&&d(p),this.setState({startX:r+f,endX:i+f,slideMoveStartX:e.pageX})}},{key:`handleTravellerDragStart`,value:function(e,t){var n=ww(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:`handleTravellerMove`,value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,i=t.endX,a=t.startX,o=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,d=s.onChange,f=s.gap,p=s.data,m={startX:this.state.startX,endX:this.state.endX},h=e.pageX-n;h>0?h=Math.min(h,c+l-u-o):h<0&&(h=Math.max(h,c-o)),m[r]=o+h;var g=this.getIndex(m),_=g.startIndex,v=g.endIndex,y=function(){var e=p.length-1;return r===`startX`&&(i>a?_%f===0:v%f===0)||i<a&&v===e||r===`endX`&&(i>a?v%f===0:_%f===0)||i>a&&v===e};this.setState(bw(bw({},r,o+h),`brushMoveStartX`,e.pageX),function(){d&&y()&&d(g)})}},{key:`handleTravellerMoveKeyboard`,value:function(e,t){var n=this,r=this.state,i=r.scaleValues,a=r.startX,o=r.endX,s=this.state[t],c=i.indexOf(s);if(c!==-1){var l=c+e;if(!(l===-1||l>=i.length)){var u=i[l];t===`startX`&&u>=o||t===`endX`&&u<=a||this.setState(bw({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:`renderBackground`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,o=e.stroke;return L.createElement(`rect`,{stroke:o,fill:a,x:t,y:n,width:r,height:i})}},{key:`renderPanorama`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,o=e.children,s=e.padding,c=L.Children.only(o);return c?L.cloneElement(c,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:a}):null}},{key:`renderTravellerLayer`,value:function(e,n){var r=this,i=this.props,a=i.y,o=i.travellerWidth,s=i.height,c=i.traveller,l=i.ariaLabel,u=i.data,d=i.startIndex,f=i.endIndex,p=Math.max(e,this.props.x),m=lw(lw({},z(this.props,!1)),{},{x:p,y:a,width:o,height:s}),h=l||`Min value: ${u[d]?.name}, Max value: ${u[f]?.name}`;return L.createElement(B,{tabIndex:0,role:`slider`,"aria-label":h,"aria-valuenow":e,className:`recharts-brush-traveller`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){[`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard(e.key===`ArrowRight`?1:-1,n))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:`col-resize`}},t.renderTraveller(c,m))}},{key:`renderSlide`,value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,o=n.travellerWidth,s=Math.min(e,t)+o,c=Math.max(Math.abs(t-e)-o,0);return L.createElement(`rect`,{className:`recharts-brush-slide`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:`move`},stroke:`none`,fill:a,fillOpacity:.2,x:s,y:r,width:c,height:i})}},{key:`renderText`,value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,o=e.stroke,s=this.state,c=s.startX,l=s.endX,u=5,d={pointerEvents:`none`,fill:o};return L.createElement(B,{className:`recharts-brush-texts`},L.createElement(su,sw({textAnchor:`end`,verticalAnchor:`middle`,x:Math.min(c,l)-u,y:r+i/2},d),this.getTextOfTick(t)),L.createElement(su,sw({textAnchor:`start`,verticalAnchor:`middle`,x:Math.max(c,l)+a+u,y:r+i/2},d),this.getTextOfTick(n)))}},{key:`render`,value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,o=e.width,s=e.height,c=e.alwaysShowText,l=this.state,u=l.startX,d=l.endX,f=l.isTextActive,m=l.isSlideMoving,h=l.isTravellerMoving,g=l.isTravellerFocused;if(!t||!t.length||!F(i)||!F(a)||!F(o)||!F(s)||o<=0||s<=0)return null;var _=p(`recharts-brush`,n),v=L.Children.count(r)===1,y=iw(`userSelect`,`none`);return L.createElement(B,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(u,d),this.renderTravellerLayer(u,`startX`),this.renderTravellerLayer(d,`endX`),(f||m||h||g||c)&&this.renderText())}}],[{key:`renderDefaultTraveller`,value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,o=Math.floor(n+i/2)-1;return L.createElement(L.Fragment,null,L.createElement(`rect`,{x:t,y:n,width:r,height:i,fill:a,stroke:`none`}),L.createElement(`line`,{x1:t+1,y1:o,x2:t+r-1,y2:o,fill:`none`,stroke:`#fff`}),L.createElement(`line`,{x1:t+1,y1:o+2,x2:t+r-1,y2:o+2,fill:`none`,stroke:`#fff`}))}},{key:`renderTraveller`,value:function(e,n){return L.isValidElement(e)?L.cloneElement(e,n):(0,R.default)(e)?e(n):t.renderDefaultTraveller(n)}},{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.data,r=e.width,i=e.x,a=e.travellerWidth,o=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||o!==t.prevUpdateId)return lw({prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r},n&&n.length?Cw({data:n,width:r,x:i,travellerWidth:a,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([i,i+r-a]);var l=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:`getIndexInRange`,value:function(e,t){for(var n=e.length,r=0,i=n-1;i-r>1;){var a=Math.floor((r+i)/2);e[a]>t?i=a:r=a}return t>=e[i]?i:r}}])}(L.PureComponent);bw(Tw,`displayName`,`Brush`),bw(Tw,`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 Ew=t(((e,t)=>{var n=ps();function r(e,t){var r;return n(e,function(e,n,i){return r=t(e,n,i),!r}),!!r}t.exports=r})),Dw=t(((e,t)=>{var n=Da(),r=Eo(),i=Ew(),a=Ze(),o=Ds();function s(e,t,s){var c=a(e)?n:i;return s&&o(e,t,s)&&(t=void 0),c(e,r(t,3))}t.exports=s})),Ow=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r=`extendDomain`),r===t},kw=t(((e,t)=>{var n=Ss();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Aw=t(((e,t)=>{var n=kw(),r=ds(),i=Eo();function a(e,t){var a={};return t=i(t,3),r(e,function(e,r,i){n(a,r,t(e,r,i))}),a}t.exports=a})),jw=t(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}t.exports=n})),Mw=t(((e,t)=>{var n=ps();function r(e,t){var r=!0;return n(e,function(e,n,i){return r=!!t(e,n,i),r}),r}t.exports=r})),Nw=t(((e,t)=>{var n=jw(),r=Mw(),i=Eo(),a=Ze(),o=Ds();function s(e,t,s){var c=a(e)?n:r;return s&&o(e,t,s)&&(t=void 0),c(e,i(t,3))}t.exports=s})),Pw=[`x`,`y`];function Fw(e){"@babel/helpers - typeof";return Fw=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},Fw(e)}function Iw(){return Iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iw.apply(this,arguments)}function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lw(Object(n),!0).forEach(function(t){zw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zw(e,t,n){return t=Bw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bw(e){var t=Vw(e,`string`);return Fw(t)==`symbol`?t:t+``}function Vw(e,t){if(Fw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Fw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hw(e,t){if(e==null)return{};var n=Uw(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uw(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ww(e,t){var n=e.x,r=e.y,i=Hw(e,Pw),a=`${n}`,o=parseInt(a,10),s=`${r}`,c=parseInt(s,10),l=`${t.height||i.height}`,u=parseInt(l,10),d=`${t.width||i.width}`,f=parseInt(d,10);return Rw(Rw(Rw(Rw(Rw({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function Gw(e){return L.createElement(IC,Iw({shapeType:`rectangle`,propTransformer:Ww,activeClassName:`recharts-active-bar`},e))}var Kw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,r){if(typeof e==`number`)return e;var i=F(n)||cn(n);return i?e(n,r):(!i&&Pg(!1),t)}},qw=[`value`,`background`],Jw;function Yw(e){"@babel/helpers - typeof";return Yw=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},Yw(e)}function Xw(e,t){if(e==null)return{};var n=Zw(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zw(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}function $w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$w(Object(n),!0).forEach(function(t){uT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eT(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function tT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,dT(r.key),r)}}function nT(e,t,n){return t&&tT(e.prototype,t),n&&tT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rT(e,t,n){return t=sT(t),iT(e,oT()?Reflect.construct(t,n||[],sT(e).constructor):t.apply(e,n))}function iT(e,t){if(t&&(Yw(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return aT(e)}function aT(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function oT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oT=function(){return!!e})()}function sT(e){return sT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sT(e)}function cT(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lT(e,t)}function lT(e,t){return lT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lT(e,t)}function uT(e,t,n){return t=dT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dT(e){var t=fT(e,`string`);return Yw(t)==`symbol`?t:t+``}function fT(e,t){if(Yw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Yw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pT=function(e){function t(){var e;eT(this,t);var n=[...arguments];return e=rT(this,t,[].concat(n)),uT(e,`state`,{isAnimationFinished:!1}),uT(e,`id`,un(`recharts-bar-`)),uT(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),uT(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()}),e}return cT(t,e),nT(t,[{key:`renderRectanglesStatically`,value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,o=n.activeBar,s=z(this.props,!1);return e&&e.map(function(e,n){var c=n===a,l=c?o:r,u=Y(Y(Y({},s),e),{},{isActive:c,option:l,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return L.createElement(B,Qw({className:`recharts-bar-rectangle`},Dn(t.props,e,n),{key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${n}`}),L.createElement(Gw,u))})}},{key:`renderRectanglesWithAnimation`,value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,o=t.animationDuration,s=t.animationEasing,c=t.animationId,l=this.state.prevData;return L.createElement(wS,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},key:`bar-${c}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var i=t.t,a=n.map(function(e,t){var n=l&&l[t];if(n){var a=mn(n.x,e.x),o=mn(n.y,e.y),s=mn(n.width,e.width),c=mn(n.height,e.height);return Y(Y({},e),{},{x:a(i),y:o(i),width:s(i),height:c(i)})}if(r===`horizontal`){var u=mn(0,e.height)(i);return Y(Y({},e),{},{y:e.y+e.height-u,height:u})}var d=mn(0,e.width)(i);return Y(Y({},e),{},{width:d})});return L.createElement(B,null,e.renderRectanglesStatically(a))})}},{key:`renderRectangles`,value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return n&&t&&t.length&&(!r||!(0,g_.default)(r,t))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(t)}},{key:`renderBackground`,value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,a=z(this.props.background,!1);return n.map(function(t,n){t.value;var o=t.background,s=Xw(t,qw);if(!o)return null;var c=Y(Y(Y(Y(Y({},s),{},{fill:`#eee`},o),a),Dn(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return L.createElement(Gw,Qw({key:`background-bar-${n}`,option:e.props.background,isActive:n===i},c))})}},{key:`renderErrorBar`,value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,o=n.layout,s=n.children,c=zn(s,a_);if(!c)return null;var l=o===`vertical`?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:O_(e,t)}},d={clipPath:e?`url(#clipPath-${t})`:null};return L.createElement(B,d,c.map(function(e){return L.cloneElement(e,{key:`error-bar-${t}-${e.props.dataKey}`,data:r,xAxis:i,yAxis:a,layout:o,offset:l,dataPointFormatter:u})}))}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,o=e.left,s=e.top,c=e.width,l=e.height,u=e.isAnimationActive,d=e.background,f=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,h=p(`recharts-bar`,r),g=i&&i.allowDataOverflow,_=a&&a.allowDataOverflow,v=g||_,y=(0,P.default)(f)?this.id:f;return L.createElement(B,{className:h},g||_?L.createElement(`defs`,null,L.createElement(`clipPath`,{id:`clipPath-${y}`},L.createElement(`rect`,{x:g?o:o-c/2,y:_?s:s-l/2,width:g?c:c*2,height:_?l:l*2}))):null,L.createElement(B,{className:`recharts-bar-rectangles`,clipPath:v?`url(#clipPath-${y})`:null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!u||m)&&my.renderCallByParent(this.props,n))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.data===t.curData?null:{curData:e.data}:{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}}}])}(L.PureComponent);Jw=pT,uT(pT,`displayName`,`Bar`),uT(pT,`defaultProps`,{xAxisId:0,yAxisId:0,legendType:`rect`,minPointSize:0,hide:!1,data:[],layout:`vertical`,activeBar:!1,isAnimationActive:!vc.isSsr,animationBegin:0,animationDuration:400,animationEasing:`ease`}),uT(pT,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=q_(r,n);if(!p)return null;var m=t.layout,h=n.type.defaultProps,g=h===void 0?n.props:Y(Y({},h),n.props),_=g.dataKey,v=g.children,y=g.minPointSize,b=m===`horizontal`?o:a,x=l?b.scale.domain():null,S=tv({numericAxis:b}),C=zn(v,rl);return Y({data:d.map(function(e,t){var r,d,f,h,g,v;l?r=J_(l[u+t],x):(r=O_(e,_),Array.isArray(r)||(r=[S,r]));var b=Kw(y,Jw.defaultProps.minPointSize)(r[1],t);if(m===`horizontal`){var w=[o.scale(r[0]),o.scale(r[1])],T=w[0],E=w[1];d=ev({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:e,index:t}),f=E??T??void 0,h=p.size;var D=T-E;if(g=Number.isNaN(D)?0:D,v={x:d,y:o.y,width:h,height:o.height},Math.abs(b)>0&&Math.abs(g)<Math.abs(b)){var O=on(g||b)*(Math.abs(b)-Math.abs(g));f-=O,g+=O}}else{var k=[a.scale(r[0]),a.scale(r[1])],A=k[0],j=k[1];if(d=A,f=ev({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:e,index:t}),h=j-A,g=p.size,v={x:a.x,y:f,width:a.width,height:g},Math.abs(b)>0&&Math.abs(h)<Math.abs(b)){var M=on(h||b)*(Math.abs(b)-Math.abs(h));h+=M}}return Y(Y(Y({},e),{},{x:d,y:f,width:h,height:g,value:l?r:r[1],payload:e,background:v},C&&C[t]&&C[t].props),{},{tooltipPayload:[uv(n,e)],tooltipPosition:{x:d+h/2,y:f+g/2}})}),layout:m},f)});var mT=r(Aw()),hT=r(Nw());function gT(e){"@babel/helpers - typeof";return gT=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},gT(e)}function _T(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function vT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,CT(r.key),r)}}function yT(e,t,n){return t&&vT(e.prototype,t),n&&vT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bT(Object(n),!0).forEach(function(t){ST(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ST(e,t,n){return t=CT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CT(e){var t=wT(e,`string`);return gT(t)==`symbol`?t:t+``}function wT(e,t){if(gT(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gT(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var TT=function(e,t,n,r,i){var a=e.width,o=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},d=!!Bn(c,pT);return l.reduce(function(a,o){var c=t[o],l=c.orientation,f=c.domain,p=c.padding,m=p===void 0?{}:p,h=c.mirror,g=c.reversed,_=`${l}${h?`Mirror`:``}`,v,y,b,x,S;if(c.type===`number`&&(c.padding===`gap`||c.padding===`no-gap`)){var C=f[1]-f[0],w=1/0,T=c.categoricalDomain.sort(gn);if(T.forEach(function(e,t){t>0&&(w=Math.min((e||0)-(T[t-1]||0),w))}),Number.isFinite(w)){var E=w/C,D=c.layout===`vertical`?n.height:n.width;if(c.padding===`gap`&&(v=E*D/2),c.padding===`no-gap`){var O=dn(e.barCategoryGap,E*D),k=E*D/2;v=k-O-(k-O)/D*O}}}y=r===`xAxis`?[n.left+(m.left||0)+(v||0),n.left+n.width-(m.right||0)-(v||0)]:r===`yAxis`?s===`horizontal`?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0)+(v||0),n.top+n.height-(m.bottom||0)-(v||0)]:c.range,g&&(y=[y[1],y[0]]);var A=W_(c,i,d),j=A.scale,M=A.realScaleType;j.domain(f).range(y),K_(j);var N=Q_(j,xT(xT({},c),{},{realScaleType:M}));r===`xAxis`?(S=l===`top`&&!h||l===`bottom`&&h,b=n.left,x=u[_]-S*c.height):r===`yAxis`&&(S=l===`left`&&!h||l===`right`&&h,b=u[_]-S*c.width,x=n.top);var ee=xT(xT(xT({},c),N),{},{realScaleType:M,x:b,y:x,scale:j,width:r===`xAxis`?n.width:c.width,height:r===`yAxis`?n.height:c.height});return ee.bandSize=cv(ee,N),!c.hide&&r===`xAxis`?u[_]+=(S?-1:1)*ee.height:c.hide||(u[_]+=(S?-1:1)*ee.width),xT(xT({},a),{},ST({},o,ee))},{})},ET=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},DT=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return ET({x:t,y:n},{x:r,y:i})},OT=function(){function e(t){_T(this,e),this.scale=t}return yT(e,[{key:`domain`,get:function(){return this.scale.domain}},{key:`range`,get:function(){return this.scale.range}},{key:`rangeMin`,get:function(){return this.range()[0]}},{key:`rangeMax`,get:function(){return this.range()[1]}},{key:`bandwidth`,get:function(){return this.scale.bandwidth}},{key:`apply`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.bandAware,r=t.position;if(e!==void 0){if(r)switch(r){case`start`:return this.scale(e);case`middle`:var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case`end`:var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a;default:return this.scale(e)}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}},{key:`isInRange`,value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],[{key:`create`,value:function(t){return new e(t)}}])}();ST(OT,`EPS`,1e-4);var kT=function(e){var t=Object.keys(e).reduce(function(t,n){return xT(xT({},t),{},ST({},n,OT.create(e[n])))},{});return xT(xT({},t),{},{apply:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;return(0,mT.default)(e,function(e,n){return t[n].apply(e,{bandAware:r,position:i})})},isInRange:function(e){return(0,hT.default)(e,function(e,n){return t[n].isInRange(e)})}})};function AT(e){return(e%180+180)%180}var jT=function(e){var t=e.width,n=e.height,r=AT(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},MT=t(((e,t)=>{var n=Eo(),r=to(),i=no();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),NT=t(((e,t)=>{var n=JC();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),PT=t(((e,t)=>{var n=Do(),r=Eo(),i=NT(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),FT=t(((e,t)=>{t.exports=MT()(PT())})),IT=(0,r(zt()).default)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return[`l`,e.left,`t`,e.top,`w`,e.width,`h`,e.height].join(``)}),LT=r(FT()),RT=(0,L.createContext)(void 0),zT=(0,L.createContext)(void 0),BT=(0,L.createContext)(void 0),VT=(0,L.createContext)({}),HT=(0,L.createContext)(void 0),UT=(0,L.createContext)(0),WT=(0,L.createContext)(0),GT=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,a=e.clipPathId,o=e.children,s=e.width,c=e.height,l=IT(i);return L.createElement(RT.Provider,{value:n},L.createElement(zT.Provider,{value:r},L.createElement(VT.Provider,{value:i},L.createElement(BT.Provider,{value:l},L.createElement(HT.Provider,{value:a},L.createElement(UT.Provider,{value:c},L.createElement(WT.Provider,{value:s},o)))))))},KT=function(){return(0,L.useContext)(HT)},qT=function(e){var t=(0,L.useContext)(RT);t??Pg(!1);var n=t[e];return n??Pg(!1),n},JT=function(){return fn((0,L.useContext)(RT))},YT=function(){var e=(0,L.useContext)(zT);return(0,LT.default)(e,function(e){return(0,hT.default)(e.domain,Number.isFinite)})||fn(e)},XT=function(e){var t=(0,L.useContext)(zT);t??Pg(!1);var n=t[e];return n??Pg(!1),n},ZT=function(){return(0,L.useContext)(BT)},QT=function(){return(0,L.useContext)(VT)},$T=function(){return(0,L.useContext)(WT)},eE=function(){return(0,L.useContext)(UT)},tE=r(Dw());function nE(e){"@babel/helpers - typeof";return nE=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},nE(e)}function rE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function iE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,gE(r.key),r)}}function aE(e,t,n){return t&&iE(e.prototype,t),n&&iE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oE(e,t,n){return t=uE(t),sE(e,lE()?Reflect.construct(t,n||[],uE(e).constructor):t.apply(e,n))}function sE(e,t){if(t&&(nE(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return cE(e)}function cE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function lE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lE=function(){return!!e})()}function uE(e){return uE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uE(e)}function dE(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fE(e,t)}function fE(e,t){return fE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fE(e,t)}function pE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pE(Object(n),!0).forEach(function(t){hE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hE(e,t,n){return t=gE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gE(e){var t=_E(e,`string`);return nE(t)==`symbol`?t:t+``}function _E(e,t){if(nE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vE(e,t){return CE(e)||SE(e,t)||bE(e,t)||yE()}function yE(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bE(e,t){if(e){if(typeof e==`string`)return xE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xE(e,t)}}function xE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function SE(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function CE(e){if(Array.isArray(e))return e}function wE(){return wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wE.apply(this,arguments)}var TE=function(e,t){return L.isValidElement(e)?L.cloneElement(e,t):(0,R.default)(e)?e(t):L.createElement(`line`,wE({},t,{className:`recharts-reference-line-line`}))},EE=function(e,t,n,r,i,a,o,s,c){var l=i.x,u=i.y,d=i.width,f=i.height;if(n){var p=c.y,m=e.y.apply(p,{position:a});if(Ow(c,`discard`)&&!e.y.isInRange(m))return null;var h=[{x:l+d,y:m},{x:l,y:m}];return s===`left`?h.reverse():h}if(t){var g=c.x,_=e.x.apply(g,{position:a});if(Ow(c,`discard`)&&!e.x.isInRange(_))return null;var v=[{x:_,y:u+f},{x:_,y:u}];return o===`top`?v.reverse():v}if(r){var y=c.segment.map(function(t){return e.apply(t,{position:a})});return Ow(c,`discard`)&&(0,tE.default)(y,function(t){return!e.isInRange(t)})?null:y}return null};function DE(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className;e.alwaysShow;var c=KT(),l=qT(i),u=XT(a),d=ZT();if(!c||!d)return null;var f=EE(kT({x:l.scale,y:u.scale}),I(t),I(n),r&&r.length===2,d,e.position,l.orientation,u.orientation,e);if(!f)return null;var m=vE(f,2),h=m[0],g=h.x,_=h.y,v=m[1],y=v.x,b=v.y,x=mE(mE({clipPath:Ow(e,`hidden`)?`url(#${c})`:void 0},z(e,!0)),{},{x1:g,y1:_,x2:y,y2:b});return L.createElement(B,{className:p(`recharts-reference-line`,s)},TE(o,x),Kv.renderCallByParent(e,DT({x1:g,y1:_,x2:y,y2:b})))}var OE=function(e){function t(){return rE(this,t),oE(this,t,arguments)}return dE(t,e),aE(t,[{key:`render`,value:function(){return L.createElement(DE,this.props)}}])}(L.Component);hE(OE,`displayName`,`ReferenceLine`),hE(OE,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`});function kE(){return kE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kE.apply(this,arguments)}function AE(e){"@babel/helpers - typeof";return AE=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},AE(e)}function jE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ME(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jE(Object(n),!0).forEach(function(t){UE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function PE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,WE(r.key),r)}}function FE(e,t,n){return t&&PE(e.prototype,t),n&&PE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function IE(e,t,n){return t=BE(t),LE(e,zE()?Reflect.construct(t,n||[],BE(e).constructor):t.apply(e,n))}function LE(e,t){if(t&&(AE(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return RE(e)}function RE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function zE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zE=function(){return!!e})()}function BE(e){return BE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BE(e)}function VE(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HE(e,t)}function HE(e,t){return HE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HE(e,t)}function UE(e,t,n){return t=WE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WE(e){var t=GE(e,`string`);return AE(t)==`symbol`?t:t+``}function GE(e,t){if(AE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(AE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var KE=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,a=kT({x:r.scale,y:i.scale}),o=a.apply({x:t,y:n},{bandAware:!0});return Ow(e,`discard`)&&!a.isInRange(o)?null:o},qE=function(e){function t(){return NE(this,t),IE(this,t,arguments)}return VE(t,e),FE(t,[{key:`render`,value:function(){var e=this.props,n=e.x,r=e.y,i=e.r;e.alwaysShow;var a=e.clipPathId,o=I(n),s=I(r);if(!o||!s)return null;var c=KE(this.props);if(!c)return null;var l=c.x,u=c.y,d=this.props,f=d.shape,m=d.className,h=ME(ME({clipPath:Ow(this.props,`hidden`)?`url(#${a})`:void 0},z(this.props,!0)),{},{cx:l,cy:u});return L.createElement(B,{className:p(`recharts-reference-dot`,m)},t.renderDot(f,h),Kv.renderCallByParent(this.props,{x:l-i,y:u-i,width:2*i,height:2*i}))}}])}(L.Component);UE(qE,`displayName`,`ReferenceDot`),UE(qE,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#fff`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1}),UE(qE,`renderDot`,function(e,t){return L.isValidElement(e)?L.cloneElement(e,t):(0,R.default)(e)?e(t):L.createElement(US,kE({},t,{cx:t.cx,cy:t.cy,className:`recharts-reference-dot-dot`}))});function JE(){return JE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JE.apply(this,arguments)}function YE(e){"@babel/helpers - typeof";return YE=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},YE(e)}function XE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XE(Object(n),!0).forEach(function(t){cD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function $E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,lD(r.key),r)}}function eD(e,t,n){return t&&$E(e.prototype,t),n&&$E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tD(e,t,n){return t=aD(t),nD(e,iD()?Reflect.construct(t,n||[],aD(e).constructor):t.apply(e,n))}function nD(e,t){if(t&&(YE(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return rD(e)}function rD(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function iD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iD=function(){return!!e})()}function aD(e){return aD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aD(e)}function oD(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sD(e,t)}function sD(e,t){return sD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sD(e,t)}function cD(e,t,n){return t=lD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lD(e){var t=uD(e,`string`);return YE(t)==`symbol`?t:t+``}function uD(e,t){if(YE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(YE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var dD=function(e,t,n,r,i){var a=i.x1,o=i.x2,s=i.y1,c=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var d=kT({x:l.scale,y:u.scale}),f={x:e?d.x.apply(a,{position:`start`}):d.x.rangeMin,y:n?d.y.apply(s,{position:`start`}):d.y.rangeMin},p={x:t?d.x.apply(o,{position:`end`}):d.x.rangeMax,y:r?d.y.apply(c,{position:`end`}):d.y.rangeMax};return Ow(i,`discard`)&&(!d.isInRange(f)||!d.isInRange(p))?null:ET(f,p)},fD=function(e){function t(){return QE(this,t),tD(this,t,arguments)}return oD(t,e),eD(t,[{key:`render`,value:function(){var e=this.props,n=e.x1,r=e.x2,i=e.y1,a=e.y2,o=e.className;e.alwaysShow;var s=e.clipPathId,c=I(n),l=I(r),u=I(i),d=I(a),f=this.props.shape;if(!c&&!l&&!u&&!d&&!f)return null;var m=dD(c,l,u,d,this.props);if(!m&&!f)return null;var h=Ow(this.props,`hidden`)?`url(#${s})`:void 0;return L.createElement(B,{className:p(`recharts-reference-area`,o)},t.renderRect(f,ZE(ZE({clipPath:h},z(this.props,!0)),m)),Kv.renderCallByParent(this.props,m))}}])}(L.Component);cD(fD,`displayName`,`ReferenceArea`),cD(fD,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#ccc`,fillOpacity:.5,stroke:`none`,strokeWidth:1}),cD(fD,`renderRect`,function(e,t){return L.isValidElement(e)?L.cloneElement(e,t):(0,R.default)(e)?e(t):L.createElement(VS,JE({},t,{className:`recharts-reference-area-rect`}))});function pD(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)if(n===void 0||n(e[i])===!0)r.push(e[i]);else return;return r}function mD(e,t,n){return jT({width:e.width+t.width,height:e.height+t.height},n)}function hD(e,t,n){var r=n===`width`,i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function gD(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function _D(e,t){return pD(e,t+1)}function vD(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:pD(r,l)};var a=c,d,f=function(){return d===void 0&&(d=n(t,a)),d},p=t.coordinate,m=c===0||gD(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function yD(e){"@babel/helpers - typeof";return yD=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},yD(e)}function bD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bD(Object(n),!0).forEach(function(t){SD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SD(e,t,n){return t=CD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CD(e){var t=wD(e,`string`);return yD(t)==`symbol`?t:t+``}function wD(e,t){if(yD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TD(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,s=t.start,c=t.end,l=function(t){var r=a[t],l,u=function(){return l===void 0&&(l=n(r,t)),l};if(t===o-1){var d=e*(r.coordinate+e*u()/2-c);a[t]=r=xD(xD({},r),{},{tickCoord:d>0?r.coordinate-d*e:r.coordinate})}else a[t]=r=xD(xD({},r),{},{tickCoord:r.coordinate});gD(e,r.tickCoord,u,s,c)&&(c=r.tickCoord-e*(u()/2+i),a[t]=xD(xD({},r),{},{isShow:!0}))},u=o-1;u>=0;u--)l(u);return a}function ED(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=xD(xD({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),gD(e,u.tickCoord,function(){return d},c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=xD(xD({},u),{},{isShow:!0}))}for(var p=a?s-1:s,m=function(t){var r=o[t],a,s=function(){return a===void 0&&(a=n(r,t)),a};if(t===0){var u=e*(r.coordinate-e*s()/2-c);o[t]=r=xD(xD({},r),{},{tickCoord:u<0?r.coordinate-u*e:r.coordinate})}else o[t]=r=xD(xD({},r),{},{tickCoord:r.coordinate});gD(e,r.tickCoord,s,c,l)&&(c=r.tickCoord+e*(s()/2+i),o[t]=xD(xD({},r),{},{isShow:!0}))},h=0;h<p;h++)m(h);return o}function DD(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(F(c)||vc.isSsr)return _D(i,typeof c==`number`&&F(c)?c:0);var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?hl(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=function(e,r){var i=(0,R.default)(l)?l(e.value,r):e.value;return p===`width`?mD(hl(i,{fontSize:t,letterSpacing:n}),m,d):hl(i,{fontSize:t,letterSpacing:n})[p]},g=i.length>=2?on(i[1].coordinate-i[0].coordinate):1,_=hD(a,g,p);return c===`equidistantPreserveStart`?vD(g,_,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?ED(g,_,h,i,o,c===`preserveStartEnd`):TD(g,_,h,i,o),f.filter(function(e){return e.isShow}))}var OD=[`viewBox`],kD=[`viewBox`],AD=[`ticks`];function jD(e){"@babel/helpers - typeof";return jD=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},jD(e)}function MD(){return MD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MD.apply(this,arguments)}function ND(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ND(Object(n),!0).forEach(function(t){KD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ND(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PD(e,t){if(e==null)return{};var n=FD(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FD(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ID(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function LD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,qD(r.key),r)}}function RD(e,t,n){return t&&LD(e.prototype,t),n&&LD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zD(e,t,n){return t=UD(t),BD(e,HD()?Reflect.construct(t,n||[],UD(e).constructor):t.apply(e,n))}function BD(e,t){if(t&&(jD(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return VD(e)}function VD(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function HD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HD=function(){return!!e})()}function UD(e){return UD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UD(e)}function WD(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GD(e,t)}function GD(e,t){return GD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GD(e,t)}function KD(e,t,n){return t=qD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qD(e){var t=JD(e,`string`);return jD(t)==`symbol`?t:t+``}function JD(e,t){if(jD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(jD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var YD=function(e){function t(e){var n;return ID(this,t),n=zD(this,t,[e]),n.state={fontSize:``,letterSpacing:``},n}return WD(t,e),RD(t,[{key:`shouldComponentUpdate`,value:function(e,t){var n=e.viewBox,r=PD(e,OD),i=this.props,a=i.viewBox,o=PD(i,kD);return!_n(n,a)||!_n(r,o)||!_n(t,this.state)}},{key:`componentDidMount`,value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`)[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:`getTickLineCoord`,value:function(e){var t=this.props,n=t.x,r=t.y,i=t.width,a=t.height,o=t.orientation,s=t.tickSize,c=t.mirror,l=t.tickMargin,u,d,f,p,m,h,g=c?-1:1,_=e.tickSize||s,v=F(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case`top`:u=d=e.coordinate,p=r+ +!c*a,f=p-g*_,h=f-g*l,m=v;break;case`left`:f=p=e.coordinate,d=n+ +!c*i,u=d-g*_,m=u-g*l,h=v;break;case`right`:f=p=e.coordinate,d=n+ +c*i,u=d+g*_,m=u+g*l,h=v;break;default:u=d=e.coordinate,p=r+ +c*a,f=p+g*_,h=f+g*l,m=v}return{line:{x1:u,y1:f,x2:d,y2:p},tick:{x:m,y:h}}}},{key:`getTickTextAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r;switch(t){case`left`:r=n?`start`:`end`;break;case`right`:r=n?`end`:`start`;break;default:r=`middle`}return r}},{key:`getTickVerticalAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r=`end`;switch(t){case`left`:case`right`:r=`middle`;break;case`top`:r=n?`start`:`end`;break;default:r=n?`end`:`start`}return r}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,o=e.mirror,s=e.axisLine,c=X(X(X({},z(this.props,!1)),z(s,!1)),{},{fill:`none`});if(a===`top`||a===`bottom`){var l=+(a===`top`&&!o||a===`bottom`&&o);c=X(X({},c),{},{x1:t,y1:n+l*i,x2:t+r,y2:n+l*i})}else{var u=+(a===`left`&&!o||a===`right`&&o);c=X(X({},c),{},{x1:t+u*r,y1:n,x2:t+u*r,y2:n+i})}return L.createElement(`line`,MD({},c,{className:p(`recharts-cartesian-axis-line`,(0,rn.default)(s,`className`))}))}},{key:`renderTicks`,value:function(e,n,r){var i=this,a=this.props,o=a.tickLine,s=a.stroke,c=a.tick,l=a.tickFormatter,u=a.unit,d=DD(X(X({},this.props),{},{ticks:e}),n,r),f=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),h=z(this.props,!1),g=z(c,!1),_=X(X({},h),{},{fill:`none`},z(o,!1)),v=d.map(function(e,n){var r=i.getTickLineCoord(e),a=r.line,v=r.tick,y=X(X(X(X({textAnchor:f,verticalAnchor:m},h),{},{stroke:`none`,fill:s},g),v),{},{index:n,payload:e,visibleTicksCount:d.length,tickFormatter:l});return L.createElement(B,MD({className:`recharts-cartesian-axis-tick`,key:`tick-${e.value}-${e.coordinate}-${e.tickCoord}`},Dn(i.props,e,n)),o&&L.createElement(`line`,MD({},_,a,{className:p(`recharts-cartesian-axis-tick-line`,(0,rn.default)(o,`className`))})),c&&t.renderTickItem(c,y,`${(0,R.default)(l)?l(e.value,n):e.value}${u||``}`))});return L.createElement(`g`,{className:`recharts-cartesian-axis-ticks`},v)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,o=t.className;if(t.hide)return null;var s=this.props,c=s.ticks,l=PD(s,AD),u=c;return(0,R.default)(a)&&(u=c&&c.length>0?a(this.props):a(l)),r<=0||i<=0||!u||!u.length?null:L.createElement(B,{className:p(`recharts-cartesian-axis`,o),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),Kv.renderCallByParent(this.props))}}],[{key:`renderTickItem`,value:function(e,t,n){var r,i=p(t.className,`recharts-cartesian-axis-tick-value`);return r=L.isValidElement(e)?L.cloneElement(e,X(X({},t),{},{className:i})):(0,R.default)(e)?e(X(X({},t),{},{className:i})):L.createElement(su,MD({},t,{className:`recharts-cartesian-axis-tick-value`}),n),r}}])}(L.Component);KD(YD,`displayName`,`CartesianAxis`),KD(YD,`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 XD=[`x1`,`y1`,`x2`,`y2`,`key`],ZD=[`offset`];function QD(e){"@babel/helpers - typeof";return QD=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},QD(e)}function $D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$D(Object(n),!0).forEach(function(t){tO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tO(e,t,n){return t=nO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nO(e){var t=rO(e,`string`);return QD(t)==`symbol`?t:t+``}function rO(e,t){if(QD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(QD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function iO(){return iO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iO.apply(this,arguments)}function aO(e,t){if(e==null)return{};var n=oO(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oO(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var sO=function(e){var t=e.fill;if(!t||t===`none`)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.ry;return L.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function cO(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if((0,R.default)(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=z(aO(t,XD),!1);c.offset;var l=aO(c,ZD);n=L.createElement(`line`,iO({},l,{x1:r,y1:i,x2:a,y2:o,fill:`none`,key:s}))}return n}function lO(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0||r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return cO(i,eO(eO({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:`line-${a}`,index:a}))});return L.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},o)}function uO(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0||r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return cO(i,eO(eO({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:`line-${a}`,index:a}))});return L.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},o)}function dO(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(c===void 0||c)||!t||!t.length)return null;var l=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==l[0]&&l.unshift(0);var u=l.map(function(e,s){var c=l[s+1]?l[s+1]-e:i+o-e;if(c<=0)return null;var u=s%t.length;return L.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:c,width:a,stroke:`none`,fill:t[u],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return L.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function fO(e){var t=e.vertical,n=t===void 0||t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,l=e.verticalPoints;if(!n||!r||!r.length)return null;var u=l.map(function(e){return Math.round(e+a-a)}).sort(function(e,t){return e-t});a!==u[0]&&u.unshift(0);var d=u.map(function(e,t){var n=u[t+1]?u[t+1]-e:a+s-e;if(n<=0)return null;var l=t%r.length;return L.createElement(`rect`,{key:`react-${t}`,x:e,y:o,width:n,height:c,stroke:`none`,fill:r[l],fillOpacity:i,className:`recharts-cartesian-grid-bg`})});return L.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},d)}var pO=function(e,t){var n=e.xAxis,r=e.width,i=e.height,a=e.offset;return B_(DD(eO(eO(eO({},YD.defaultProps),n),{},{ticks:V_(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},mO=function(e,t){var n=e.yAxis,r=e.width,i=e.height,a=e.offset;return B_(DD(eO(eO(eO({},YD.defaultProps),n),{},{ticks:V_(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},hO={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[]};function gO(e){var t=$T(),n=eE(),r=QT(),i=eO(eO({},e),{},{stroke:e.stroke??hO.stroke,fill:e.fill??hO.fill,horizontal:e.horizontal??hO.horizontal,horizontalFill:e.horizontalFill??hO.horizontalFill,vertical:e.vertical??hO.vertical,verticalFill:e.verticalFill??hO.verticalFill,x:F(e.x)?e.x:r.left,y:F(e.y)?e.y:r.top,width:F(e.width)?e.width:r.width,height:F(e.height)?e.height:r.height}),a=i.x,o=i.y,s=i.width,c=i.height,l=i.syncWithTicks,u=i.horizontalValues,d=i.verticalValues,f=JT(),p=YT();if(!F(s)||s<=0||!F(c)||c<=0||!F(a)||a!==+a||!F(o)||o!==+o)return null;var m=i.verticalCoordinatesGenerator||pO,h=i.horizontalCoordinatesGenerator||mO,g=i.horizontalPoints,_=i.verticalPoints;if((!g||!g.length)&&(0,R.default)(h)){var v=u&&u.length,y=h({yAxis:p?eO(eO({},p),{},{ticks:v?u:p.ticks}):void 0,width:t,height:n,offset:r},v?!0:l);`${QD(y)}`,Array.isArray(y)&&(g=y)}if((!_||!_.length)&&(0,R.default)(m)){var b=d&&d.length,x=m({xAxis:f?eO(eO({},f),{},{ticks:b?d:f.ticks}):void 0,width:t,height:n,offset:r},b?!0:l);`${QD(x)}`,Array.isArray(x)&&(_=x)}return L.createElement(`g`,{className:`recharts-cartesian-grid`},L.createElement(sO,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),L.createElement(lO,iO({},i,{offset:r,horizontalPoints:g,xAxis:f,yAxis:p})),L.createElement(uO,iO({},i,{offset:r,verticalPoints:_,xAxis:f,yAxis:p})),L.createElement(dO,iO({},i,{horizontalPoints:g})),L.createElement(fO,iO({},i,{verticalPoints:_})))}gO.displayName=`CartesianGrid`;var _O=[`layout`,`type`,`stroke`,`connectNulls`,`isRange`,`ref`],vO=[`key`],yO;function bO(e){"@babel/helpers - typeof";return bO=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},bO(e)}function xO(e,t){if(e==null)return{};var n=SO(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SO(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CO(){return CO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CO.apply(this,arguments)}function wO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wO(Object(n),!0).forEach(function(t){IO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EO(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function DO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,LO(r.key),r)}}function OO(e,t,n){return t&&DO(e.prototype,t),n&&DO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kO(e,t,n){return t=NO(t),AO(e,MO()?Reflect.construct(t,n||[],NO(e).constructor):t.apply(e,n))}function AO(e,t){if(t&&(bO(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return jO(e)}function jO(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function MO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MO=function(){return!!e})()}function NO(e){return NO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NO(e)}function PO(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FO(e,t)}function FO(e,t){return FO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FO(e,t)}function IO(e,t,n){return t=LO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LO(e){var t=RO(e,`string`);return bO(t)==`symbol`?t:t+``}function RO(e,t){if(bO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var zO=function(e){function t(){var e;EO(this,t);var n=[...arguments];return e=kO(this,t,[].concat(n)),IO(e,`state`,{isAnimationFinished:!0}),IO(e,`id`,un(`recharts-area-`)),IO(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),(0,R.default)(t)&&t()}),IO(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),(0,R.default)(t)&&t()}),e}return PO(t,e),OO(t,[{key:`renderDots`,value:function(e,n,r){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var o=this.props,s=o.dot,c=o.points,l=o.dataKey,u=z(this.props,!1),d=z(s,!0),f=c.map(function(e,n){var r=TO(TO(TO({key:`dot-${n}`,r:3},u),d),{},{index:n,cx:e.x,cy:e.y,dataKey:l,value:e.value,payload:e.payload,points:c});return t.renderDotItem(s,r)}),p={clipPath:e?`url(#clipPath-${n?``:`dots-`}${r})`:null};return L.createElement(B,CO({className:`recharts-area-dots`},p),f)}},{key:`renderHorizontalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].x,o=r[r.length-1].x,s=e*Math.abs(a-o),c=(0,p_.default)(r.map(function(e){return e.y||0}));return F(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,p_.default)(n.map(function(e){return e.y||0})),c)),F(c)?L.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}},{key:`renderVerticalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].y,o=r[r.length-1].y,s=e*Math.abs(a-o),c=(0,p_.default)(r.map(function(e){return e.x||0}));return F(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,p_.default)(n.map(function(e){return e.x||0})),c)),F(c)?L.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}},{key:`renderClipRect`,value:function(e){return this.props.layout===`vertical`?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:`renderAreaStatically`,value:function(e,t,n,r){var i=this.props,a=i.layout,o=i.type,s=i.stroke,c=i.connectNulls,l=i.isRange;i.ref;var u=xO(i,_O);return L.createElement(B,{clipPath:n?`url(#clipPath-${r})`:null},L.createElement(Uy,CO({},z(u,!0),{points:e,connectNulls:c,type:o,baseLine:t,layout:a,stroke:`none`,className:`recharts-area-area`})),s!==`none`&&L.createElement(Uy,CO({},z(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:e})),s!==`none`&&l&&L.createElement(Uy,CO({},z(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:t})))}},{key:`renderAreaWithAnimation`,value:function(e,t){var n=this,r=this.props,i=r.points,a=r.baseLine,o=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,l=r.animationEasing,u=r.animationId,d=this.state,f=d.prevPoints,p=d.prevBaseLine;return L.createElement(wS,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:`area-${u}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(f){var s=f.length/i.length,c=i.map(function(e,t){var n=Math.floor(t*s);if(f[n]){var r=f[n],i=mn(r.x,e.x),a=mn(r.y,e.y);return TO(TO({},e),{},{x:i(o),y:a(o)})}return e}),l=F(a)&&typeof a==`number`?mn(p,a)(o):(0,P.default)(a)||(0,nn.default)(a)?mn(p,0)(o):a.map(function(e,t){var n=Math.floor(t*s);if(p[n]){var r=p[n],i=mn(r.x,e.x),a=mn(r.y,e.y);return TO(TO({},e),{},{x:i(o),y:a(o)})}return e});return n.renderAreaStatically(c,l,e,t)}return L.createElement(B,null,L.createElement(`defs`,null,L.createElement(`clipPath`,{id:`animationClipPath-${t}`},n.renderClipRect(o))),L.createElement(B,{clipPath:`url(#animationClipPath-${t})`},n.renderAreaStatically(i,a,e,t)))})}},{key:`renderArea`,value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,a=n.isAnimationActive,o=this.state,s=o.prevPoints,c=o.prevBaseLine,l=o.totalLength;return a&&r&&r.length&&(!s&&l>0||!(0,g_.default)(s,r)||!(0,g_.default)(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,o=e.left,s=e.xAxis,c=e.yAxis,l=e.width,u=e.height,d=e.isAnimationActive,f=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,h=r.length===1,g=p(`recharts-area`,i),_=s&&s.allowDataOverflow,v=c&&c.allowDataOverflow,y=_||v,b=(0,P.default)(f)?this.id:f,x=z(n,!1)??{r:3,strokeWidth:2},S=x.r,C=S===void 0?3:S,w=x.strokeWidth,T=w===void 0?2:w,E=(Wn(n)?n:{}).clipDot,D=E===void 0||E,O=C*2+T;return L.createElement(B,{className:g},_||v?L.createElement(`defs`,null,L.createElement(`clipPath`,{id:`clipPath-${b}`},L.createElement(`rect`,{x:_?o:o-l/2,y:v?a:a-u/2,width:_?l:l*2,height:v?u:u*2})),!D&&L.createElement(`clipPath`,{id:`clipPath-dots-${b}`},L.createElement(`rect`,{x:o-O/2,y:a-O/2,width:l+O,height:u+O}))):null,h?null:this.renderArea(y,b),(n||h)&&this.renderDots(y,D,b),(!d||m)&&my.renderCallByParent(this.props,r))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null:{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}}}])}(L.PureComponent);yO=zO,IO(zO,`displayName`,`Area`),IO(zO,`defaultProps`,{stroke:`#3182bd`,fill:`#3182bd`,fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:`line`,connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!vc.isSsr,animationBegin:0,animationDuration:1500,animationEasing:`ease`}),IO(zO,`getBaseValue`,function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue??a;if(F(o)&&typeof o==`number`)return o;var s=i===`horizontal`?r:n,c=s.scale.domain();if(s.type===`number`){var l=Math.max(c[0],c[1]),u=Math.min(c[0],c[1]);return o===`dataMin`?u:o===`dataMax`||l<0?l:Math.max(Math.min(c[0],c[1]),0)}return o===`dataMin`?c[0]:o===`dataMax`?c[1]:c[0]}),IO(zO,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=t.layout,m=l&&l.length,h=yO.getBaseValue(t,n,r,i),g=p===`horizontal`,_=!1,v=d.map(function(e,t){var n;m?n=l[u+t]:(n=O_(e,c),Array.isArray(n)?_=!0:n=[h,n]);var d=n[1]==null||m&&O_(e,c)==null;return g?{x:$_({axis:r,ticks:a,bandSize:s,entry:e,index:t}),y:d?null:i.scale(n[1]),value:n,payload:e}:{x:d?null:r.scale(n[1]),y:$_({axis:i,ticks:o,bandSize:s,entry:e,index:t}),value:n,payload:e}});return TO({points:v,baseLine:m||_?v.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?i.scale(t):null}:{x:t==null?null:r.scale(t),y:e.y}}):g?i.scale(h):r.scale(h),layout:p,isRange:_},f)}),IO(zO,`renderDotItem`,function(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if((0,R.default)(e))n=e(t);else{var r=p(`recharts-area-dot`,typeof e==`boolean`?``:e.className),i=t.key,a=xO(t,vO);n=L.createElement(US,CO({},a,{key:i,className:r}))}return n});function BO(e){"@babel/helpers - typeof";return BO=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},BO(e)}function VO(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function HO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,QO(r.key),r)}}function UO(e,t,n){return t&&HO(e.prototype,t),n&&HO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WO(e,t,n){return t=JO(t),GO(e,qO()?Reflect.construct(t,n||[],JO(e).constructor):t.apply(e,n))}function GO(e,t){if(t&&(BO(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return KO(e)}function KO(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function qO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qO=function(){return!!e})()}function JO(e){return JO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JO(e)}function YO(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XO(e,t)}function XO(e,t){return XO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XO(e,t)}function ZO(e,t,n){return t=QO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QO(e){var t=$O(e,`string`);return BO(t)==`symbol`?t:t+``}function $O(e,t){if(BO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(BO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ek(){return ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ek.apply(this,arguments)}function tk(e){var t=e.xAxisId,n=$T(),r=eE(),i=qT(t);return i==null?null:L.createElement(YD,ek({},i,{className:p(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return V_(e,!0)}}))}var nk=function(e){function t(){return VO(this,t),WO(this,t,arguments)}return YO(t,e),UO(t,[{key:`render`,value:function(){return L.createElement(tk,this.props)}}])}(L.Component);ZO(nk,`displayName`,`XAxis`),ZO(nk,`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 rk(e){"@babel/helpers - typeof";return rk=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},rk(e)}function ik(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ak(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,hk(r.key),r)}}function ok(e,t,n){return t&&ak(e.prototype,t),n&&ak(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sk(e,t,n){return t=dk(t),ck(e,uk()?Reflect.construct(t,n||[],dk(e).constructor):t.apply(e,n))}function ck(e,t){if(t&&(rk(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return lk(e)}function lk(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function uk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uk=function(){return!!e})()}function dk(e){return dk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dk(e)}function fk(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pk(e,t)}function pk(e,t){return pk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pk(e,t)}function mk(e,t,n){return t=hk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hk(e){var t=gk(e,`string`);return rk(t)==`symbol`?t:t+``}function gk(e,t){if(rk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _k(){return _k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_k.apply(this,arguments)}var vk=function(e){var t=e.yAxisId,n=$T(),r=eE(),i=XT(t);return i==null?null:L.createElement(YD,_k({},i,{className:p(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return V_(e,!0)}}))},yk=function(e){function t(){return ik(this,t),sk(this,t,arguments)}return fk(t,e),ok(t,[{key:`render`,value:function(){return L.createElement(vk,this.props)}}])}(L.Component);mk(yk,`displayName`,`YAxis`),mk(yk,`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 bk(e){return wk(e)||Ck(e)||Sk(e)||xk()}function xk(){throw TypeError(`Invalid attempt to spread non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sk(e,t){if(e){if(typeof e==`string`)return Tk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tk(e,t)}}function Ck(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function wk(e){if(Array.isArray(e))return Tk(e)}function Tk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ek=function(e,t,n,r,i){var a=zn(e,OE),o=zn(e,qE),s=[].concat(bk(a),bk(o)),c=zn(e,fD),l=`${r}Id`,u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[l]===n&&Ow(t.props,`extendDomain`)&&F(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),c.length){var f=`${u}1`,p=`${u}2`;d=c.reduce(function(e,t){if(t.props[l]===n&&Ow(t.props,`extendDomain`)&&F(t.props[f])&&F(t.props[p])){var r=t.props[f],i=t.props[p];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e},d)}return i&&i.length&&(d=i.reduce(function(e,t){return F(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},Dk=new(r(t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))())).default,Ok=`recharts.syncMouseEvents`;function kk(e){"@babel/helpers - typeof";return kk=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},kk(e)}function Ak(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function jk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Pk(r.key),r)}}function Mk(e,t,n){return t&&jk(e.prototype,t),n&&jk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nk(e,t,n){return t=Pk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pk(e){var t=Fk(e,`string`);return kk(t)==`symbol`?t:t+``}function Fk(e,t){if(kk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(kk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ik=function(){function e(){Ak(this,e),Nk(this,`activeIndex`,0),Nk(this,`coordinateList`,[]),Nk(this,`layout`,`horizontal`)}return Mk(e,[{key:`setDetails`,value:function(e){var t=e.coordinateList,n=t===void 0?null:t,r=e.container,i=r===void 0?null:r,a=e.layout,o=a===void 0?null:a,s=e.offset,c=s===void 0?null:s,l=e.mouseHandlerCallback,u=l===void 0?null:l;this.coordinateList=n??this.coordinateList??[],this.container=i??this.container,this.layout=o??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=u??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(e){if(this.coordinateList.length!==0)switch(e.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()}}},{key:`setIndex`,value:function(e){this.activeIndex=e}},{key:`spoofMouse`,value:function(){if(this.layout===`horizontal`&&this.coordinateList.length!==0){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=e.height,i=this.coordinateList[this.activeIndex].coordinate,a=window?.scrollX||0,o=window?.scrollY||0,s=t+i+a,c=n+this.offset.top+r/2+o;this.mouseHandlerCallback({pageX:s,pageY:c})}}}])}();function Lk(e,t,n){if(n===`number`&&t===!0&&Array.isArray(e)){var r=e?.[0],i=e?.[1];if(r&&i&&F(r)&&F(i))return!0}return!1}function Rk(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}function zk(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[yv(t,n,r,i),yv(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function Bk(e,t,n){var r,i,a,o;if(e===`horizontal`)r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e===`vertical`)i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null){if(e===`centric`){var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,d=t.angle,f=yv(s,c,l,d),p=yv(s,c,u,d);r=f.x,i=f.y,a=p.x,o=p.y}else return zk(t)}return[{x:r,y:i},{x:a,y:o}]}function Vk(e){"@babel/helpers - typeof";return Vk=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},Vk(e)}function Hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hk(Object(n),!0).forEach(function(t){Wk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wk(e,t,n){return t=Gk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gk(e){var t=Kk(e,`string`);return Vk(t)==`symbol`?t:t+``}function Kk(e,t){if(Vk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Vk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qk(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,a=e.activePayload,o=e.offset,s=e.activeTooltipIndex,c=e.tooltipAxisBandSize,l=e.layout,u=e.chartName,d=t.props.cursor??t.type.defaultProps?.cursor;if(!t||!d||!r||!i||u!==`ScatterChart`&&n!==`axis`)return null;var f,m=Uy;if(u===`ScatterChart`)f=i,m=tC;else if(u===`BarChart`)f=Rk(l,i,o,c),m=VS;else if(l===`radial`){var h=zk(i),g=h.cx,_=h.cy,v=h.radius;f={cx:g,cy:_,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},m=ky}else f={points:Bk(l,i,o)},m=Uy;var y=Uk(Uk(Uk(Uk({stroke:`#ccc`,pointerEvents:`none`},o),f),z(d,!1)),{},{payload:a,payloadIndex:s,className:p(`recharts-tooltip-cursor`,d.className)});return(0,L.isValidElement)(d)?(0,L.cloneElement)(d,y):(0,L.createElement)(m,y)}var Jk=[`item`],Yk=[`children`,`className`,`width`,`height`,`style`,`compact`,`title`,`desc`];function Xk(e){"@babel/helpers - typeof";return Xk=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},Xk(e)}function Zk(){return Zk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zk.apply(this,arguments)}function Qk(e,t){return tA(e)||eA(e,t)||gA(e,t)||$k()}function $k(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function tA(e){if(Array.isArray(e))return e}function nA(e,t){if(e==null)return{};var n=rA(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iA(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function aA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,xA(r.key),r)}}function oA(e,t,n){return t&&aA(e.prototype,t),n&&aA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sA(e,t,n){return t=dA(t),cA(e,uA()?Reflect.construct(t,n||[],dA(e).constructor):t.apply(e,n))}function cA(e,t){if(t&&(Xk(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return lA(e)}function lA(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function uA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uA=function(){return!!e})()}function dA(e){return dA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dA(e)}function fA(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pA(e,t)}function pA(e,t){return pA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pA(e,t)}function mA(e){return vA(e)||_A(e)||gA(e)||hA()}function hA(){throw TypeError(`Invalid attempt to spread non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gA(e,t){if(e){if(typeof e==`string`)return yA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yA(e,t)}}function _A(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function vA(e){if(Array.isArray(e))return yA(e)}function yA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bA(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t,n){return t=xA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xA(e){var t=SA(e,`string`);return Xk(t)==`symbol`?t:t+``}function SA(e,t){if(Xk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Xk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var CA={xAxis:[`bottom`,`top`],yAxis:[`left`,`right`]},wA={width:`100%`,height:`100%`},TA={x:0,y:0};function EA(e){return e}var DA=function(e,t){return t===`horizontal`?e.x:t===`vertical`?e.y:t===`centric`?e.angle:e.radius},OA=function(e,t,n,r){var i=t.find(function(e){return e&&e.index===n});if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.y};if(e===`vertical`)return{x:r.x,y:i.coordinate};if(e===`centric`){var a=i.coordinate,o=r.radius;return Z(Z(Z({},r),yv(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,c=r.angle;return Z(Z(Z({},r),yv(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return TA},kA=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,i=t.dataEndIndex,a=(n??[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(mA(e),mA(n)):e},[]);return a.length>0?a:e&&e.length&&F(r)&&F(i)?e.slice(r,i+1):[]};function AA(e){return e===`number`?[0,`auto`]:void 0}var jA=function(e,t,n,r){var i=e.graphicalItems,a=e.tooltipAxis,o=kA(t,e);return n<0||!i||!i.length||n>=o.length?null:i.reduce(function(i,s){var c=s.props.data??t;c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1));var l=a.dataKey&&!a.allowDuplicatedCategory?hn(c===void 0?o:c,a.dataKey,r):c&&c[n]||o[n];return l?[].concat(mA(i),[uv(s,l)]):i},[])},MA=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},a=DA(i,n),o=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=A_(a,o,c,s);if(l>=0&&c){var u=c[l]&&c[l].value;return{activeTooltipIndex:l,activeLabel:u,activePayload:jA(e,t,l,u),activeCoordinate:OA(n,o,l,i)}}return null},NA=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=e.stackOffset,f=z_(l,i);return n.reduce(function(t,n){var p=n.type.defaultProps===void 0?n.props:Z(Z({},n.type.defaultProps),n.props),m=p.type,h=p.dataKey,g=p.allowDataOverflow,_=p.allowDuplicatedCategory,v=p.scale,y=p.ticks,b=p.includeHidden,x=p[a];if(t[x])return t;var S=kA(e.data,{graphicalItems:r.filter(function(e){return(a in e.props?e.props[a]:e.type.defaultProps?.[a])===x}),dataStartIndex:s,dataEndIndex:c}),C=S.length,w,T,E;Lk(p.domain,g,m)&&(w=sv(p.domain,null,g),f&&(m===`number`||v!==`auto`)&&(E=k_(S,h,`category`)));var D=AA(m);if(!w||w.length===0){var O=p.domain??D;if(h){if(w=k_(S,h,m),m===`category`&&f){var k=pn(w);_&&k?(T=w,w=(0,aw.default)(0,C)):_||(w=lv(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(mA(e),[t])},[]))}else if(m===`category`)w=_?w.filter(function(e){return e!==``&&!(0,P.default)(e)}):lv(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0||t===``||(0,P.default)(t)?e:[].concat(mA(e),[t])},[]);else if(m===`number`){var A=L_(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===x&&(b||!n)}),h,i,l);A&&(w=A)}f&&(m===`number`||v!==`auto`)&&(E=k_(S,h,`category`))}else w=f?(0,aw.default)(0,C):o&&o[x]&&o[x].hasStack&&m===`number`?d===`expand`?[0,1]:iv(o[x].stackGroups,s,c):R_(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps.hide;return t===x&&(b||!n)}),m,l,!0);if(m===`number`)w=Ek(u,w,x,i,y),O&&(w=sv(O,w,g));else if(m===`category`&&O){var j=O;w.every(function(e){return j.indexOf(e)>=0})&&(w=j)}}return Z(Z({},t),{},Q({},x,Z(Z({},p),{},{axisType:i,domain:w,categoricalDomain:E,duplicateDomain:T,originalDomain:p.domain??D,isCategorical:f,layout:l})))},{})},PA=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=kA(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),f=d.length,p=z_(l,i),m=-1;return n.reduce(function(e,t){var h=(t.type.defaultProps===void 0?t.props:Z(Z({},t.type.defaultProps),t.props))[a],g=AA(`number`);if(!e[h]){m++;var _;return p?_=(0,aw.default)(0,f):o&&o[h]&&o[h].hasStack?(_=iv(o[h].stackGroups,s,c),_=Ek(u,_,h,i)):(_=sv(g,R_(d,n.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===h&&!n}),`number`,l),r.defaultProps.allowDataOverflow),_=Ek(u,_,h,i)),Z(Z({},e),{},Q({},h,Z(Z({axisType:i},r.defaultProps),{},{hide:!0,orientation:(0,rn.default)(CA,`${i}.${m%2}`,null),domain:_,originalDomain:g,isCategorical:p,layout:l})))}return e},{})},FA=function(e,t){var n=t.axisType,r=n===void 0?`xAxis`:n,i=t.AxisComp,a=t.graphicalItems,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u=`${r}Id`,d=zn(l,i),f={};return d&&d.length?f=NA(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c}):a&&a.length&&(f=PA(e,{Axis:i,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c})),f},IA=function(e){var t=fn(e),n=V_(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,Os.default)(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:cv(t,n)}},LA=function(e){var t=e.children,n=e.defaultShowTooltip,r=Bn(t,Tw),i=0,a=0;return e.data&&e.data.length!==0&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},RA=function(e){return!e||!e.length?!1:e.some(function(e){var t=Fn(e&&e.type);return t&&t.indexOf(`Bar`)>=0})},zA=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`}},BA=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,a=i===void 0?{}:i,o=e.yAxisMap,s=o===void 0?{}:o,c=n.width,l=n.height,u=n.children,d=n.margin||{},f=Bn(u,Tw),p=Bn(u,os),m=Object.keys(s).reduce(function(e,t){var n=s[t],r=n.orientation;return!n.mirror&&!n.hide?Z(Z({},e),{},Q({},r,e[r]+n.width)):e},{left:d.left||0,right:d.right||0}),h=Z(Z({},Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return!n.mirror&&!n.hide?Z(Z({},e),{},Q({},r,(0,rn.default)(e,`${r}`)+n.height)):e},{top:d.top||0,bottom:d.bottom||0})),m),g=h.bottom;f&&(h.bottom+=f.props.height||Tw.defaultProps.height),p&&t&&(h=P_(h,r,n,t));var _=c-h.left-h.right,v=l-h.top-h.bottom;return Z(Z({brushBottom:g},h),{},{width:Math.max(_,0),height:Math.max(v,0)})},VA=function(e,t){if(t===`xAxis`)return e[t].width;if(t===`yAxis`)return e[t].height},HA=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,i=r===void 0?`axis`:r,a=e.validateTooltipEventTypes,o=a===void 0?[`axis`]:a,s=e.axisComponents,c=e.legendContent,l=e.formatAxisMap,u=e.defaultProps,d=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,a=t.updateId,o=t.dataStartIndex,c=t.dataEndIndex,l=e.barSize,u=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,m=zA(u),h=m.numericAxisName,g=m.cateAxisName,_=RA(n),v=[];return n.forEach(function(n,m){var y=kA(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:c}),b=n.type.defaultProps===void 0?n.props:Z(Z({},n.type.defaultProps),n.props),x=b.dataKey,S=b.maxBarSize,C=b[`${h}Id`],w=b[`${g}Id`],T=s.reduce(function(e,n){var r=t[`${n.axisType}Map`],i=b[`${n.axisType}Id`];!(r&&r[i]||n.axisType===`zAxis`)&&Pg(!1);var a=r[i];return Z(Z({},e),{},Q(Q({},n.axisType,a),`${n.axisType}Ticks`,V_(a)))},{}),E=T[g],D=T[`${g}Ticks`],O=r&&r[C]&&r[C].hasStack&&nv(n,r[C].stackGroups),k=Fn(n.type).indexOf(`Bar`)>=0,A=cv(E,D),j=[],M=_&&M_({barSize:l,stackGroups:r,totalSize:VA(T,g)});if(k){var N=(0,P.default)(S)?p:S,ee=cv(E,D,!0)??N??0;j=N_({barGap:d,barCategoryGap:f,bandSize:ee===A?A:ee,sizeList:M[w],maxBarSize:N}),ee!==A&&(j=j.map(function(e){return Z(Z({},e),{},{position:Z(Z({},e.position),{},{offset:e.position.offset-ee/2})})}))}var te=n&&n.type&&n.type.getComposedData;te&&v.push({props:Z(Z({},te(Z(Z({},T),{},{displayedData:y,props:e,dataKey:x,item:n,bandSize:A,barPosition:j,offset:i,stackedData:O,layout:u,dataStartIndex:o,dataEndIndex:c}))),{},Q(Q(Q({key:n.key||`item-${m}`},h,T[h]),g,T[g]),`animationId`,a)),childIndex:Xn(n,e.children),item:n})}),v},f=function(e,r){var i=e.props,a=e.dataStartIndex,o=e.dataEndIndex,c=e.updateId;if(!Vn({props:i}))return null;var u=i.children,f=i.layout,p=i.stackOffset,m=i.data,h=i.reverseStackOrder,g=zA(f),_=g.numericAxisName,v=g.cateAxisName,y=zn(u,n),b=Z_(m,y,`${_}Id`,`${v}Id`,p,h),x=s.reduce(function(e,t){var n=`${t.axisType}Map`;return Z(Z({},e),{},Q({},n,FA(i,Z(Z({},t),{},{graphicalItems:y,stackGroups:t.axisType===_&&b,dataStartIndex:a,dataEndIndex:o}))))},{}),S=BA(Z(Z({},x),{},{props:i,graphicalItems:y}),r?.legendBBox);Object.keys(x).forEach(function(e){x[e]=l(i,x[e],S,e.replace(`Map`,``),t)});var C=x[`${v}Map`],w=IA(C);return Z(Z({formattedGraphicalItems:d(i,Z(Z({},x),{},{dataStartIndex:a,dataEndIndex:o,updateId:c,graphicalItems:y,stackGroups:b,offset:S})),graphicalItems:y,offset:S,stackGroups:b},w),x)},m=function(e){function n(e){var r;return iA(this,n),r=sA(this,n,[e]),Q(r,`eventEmitterSymbol`,Symbol(`rechartsEventEmitter`)),Q(r,`accessibilityManager`,new Ik),Q(r,`handleLegendBBoxUpdate`,function(e){if(e){var t=r.state,n=t.dataStartIndex,i=t.dataEndIndex,a=t.updateId;r.setState(Z({legendBBox:e},f({props:r.props,dataStartIndex:n,dataEndIndex:i,updateId:a},Z(Z({},r.state),{},{legendBBox:e}))))}}),Q(r,`handleReceiveSyncEvent`,function(e,t,n){if(r.props.syncId===e){if(n===r.eventEmitterSymbol&&typeof r.props.syncMethod!=`function`)return;r.applySyncEvent(t)}}),Q(r,`handleBrushChange`,function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var i=r.state.updateId;r.setState(function(){return Z({dataStartIndex:t,dataEndIndex:n},f({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:i},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),Q(r,`handleMouseEnter`,function(e){var t=r.getMouseInfo(e);if(t){var n=Z(Z({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseEnter;(0,R.default)(i)&&i(n,e)}}),Q(r,`triggeredAfterMouseMove`,function(e){var t=r.getMouseInfo(e),n=t?Z(Z({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseMove;(0,R.default)(i)&&i(n,e)}),Q(r,`handleItemMouseEnter`,function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),Q(r,`handleItemMouseLeave`,function(){r.setState(function(){return{isTooltipActive:!1}})}),Q(r,`handleMouseMove`,function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),Q(r,`handleMouseLeave`,function(e){r.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;(0,R.default)(n)&&n(t,e)}),Q(r,`handleOuterEvent`,function(e){var t=Yn(e),n=(0,rn.default)(r.props,`${t}`);t&&(0,R.default)(n)&&n((/.*touch.*/i.test(t)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))??{},e)}),Q(r,`handleClick`,function(e){var t=r.getMouseInfo(e);if(t){var n=Z(Z({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onClick;(0,R.default)(i)&&i(n,e)}}),Q(r,`handleMouseDown`,function(e){var t=r.props.onMouseDown;(0,R.default)(t)&&t(r.getMouseInfo(e),e)}),Q(r,`handleMouseUp`,function(e){var t=r.props.onMouseUp;(0,R.default)(t)&&t(r.getMouseInfo(e),e)}),Q(r,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),Q(r,`handleTouchStart`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),Q(r,`handleTouchEnd`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),Q(r,`handleDoubleClick`,function(e){var t=r.props.onDoubleClick;(0,R.default)(t)&&t(r.getMouseInfo(e),e)}),Q(r,`handleContextMenu`,function(e){var t=r.props.onContextMenu;(0,R.default)(t)&&t(r.getMouseInfo(e),e)}),Q(r,`triggerSyncEvent`,function(e){r.props.syncId!==void 0&&Dk.emit(Ok,r.props.syncId,e,r.eventEmitterSymbol)}),Q(r,`applySyncEvent`,function(e){var t=r.props,n=t.layout,i=t.syncMethod,a=r.state.updateId,o=e.dataStartIndex,s=e.dataEndIndex;if(e.dataStartIndex!==void 0||e.dataEndIndex!==void 0)r.setState(Z({dataStartIndex:o,dataEndIndex:s},f({props:r.props,dataStartIndex:o,dataEndIndex:s,updateId:a},r.state)));else if(e.activeTooltipIndex!==void 0){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,d=r.state,p=d.offset,m=d.tooltipTicks;if(!p)return;if(typeof i==`function`)u=i(m,e);else if(i===`value`){u=-1;for(var h=0;h<m.length;h++)if(m[h].value===e.activeLabel){u=h;break}}var g=Z(Z({},p),{},{x:p.left,y:p.top}),_=Math.min(c,g.x+g.width),v=Math.min(l,g.y+g.height),y=m[u]&&m[u].value,b=jA(r.state,r.props.data,u),x=m[u]?{x:n===`horizontal`?m[u].coordinate:_,y:n===`horizontal`?v:m[u].coordinate}:TA;r.setState(Z(Z({},e),{},{activeLabel:y,activeCoordinate:x,activePayload:b,activeTooltipIndex:u}))}else r.setState(e)}),Q(r,`renderCursor`,function(e){var n=r.state,i=n.isTooltipActive,a=n.activeCoordinate,o=n.activePayload,s=n.offset,c=n.activeTooltipIndex,l=n.tooltipAxisBandSize,u=r.getTooltipEventType(),d=e.props.active??i,f=r.props.layout,p=e.key||`_recharts-cursor`;return L.createElement(qk,{key:p,activeCoordinate:a,activePayload:o,activeTooltipIndex:c,chartName:t,element:e,isActive:d,layout:f,offset:s,tooltipAxisBandSize:l,tooltipEventType:u})}),Q(r,`renderPolarAxis`,function(e,t,n){var i=(0,rn.default)(e,`type.axisType`),a=(0,rn.default)(r.state,`${i}Map`),o=e.type.defaultProps,s=o===void 0?e.props:Z(Z({},o),e.props),c=a&&a[s[`${i}Id`]];return(0,L.cloneElement)(e,Z(Z({},c),{},{className:p(i,c.className),key:e.key||`${t}-${n}`,ticks:V_(c,!0)}))}),Q(r,`renderPolarGrid`,function(e){var t=e.props,n=t.radialLines,i=t.polarAngles,a=t.polarRadius,o=r.state,s=o.radiusAxisMap,c=o.angleAxisMap,l=fn(s),u=fn(c),d=u.cx,f=u.cy,p=u.innerRadius,m=u.outerRadius;return(0,L.cloneElement)(e,{polarAngles:Array.isArray(i)?i:V_(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:V_(l,!0).map(function(e){return e.coordinate}),cx:d,cy:f,innerRadius:p,outerRadius:m,key:e.key||`polar-grid`,radialLines:n})}),Q(r,`renderLegend`,function(){var e=r.state.formattedGraphicalItems,t=r.props,n=t.children,i=t.width,a=t.height,o=r.props.margin||{},s=f_({children:n,formattedGraphicalItems:e,legendWidth:i-(o.left||0)-(o.right||0),legendContent:c});if(!s)return null;var l=s.item,u=nA(s,Jk);return(0,L.cloneElement)(l,Z(Z({},u),{},{chartWidth:i,chartHeight:a,margin:o,onBBoxUpdate:r.handleLegendBBoxUpdate}))}),Q(r,`renderTooltip`,function(){var e=r.props,t=e.children,n=e.accessibilityLayer,i=Bn(t,Lc);if(!i)return null;var a=r.state,o=a.isTooltipActive,s=a.activeCoordinate,c=a.activePayload,l=a.activeLabel,u=a.offset,d=i.props.active??o;return(0,L.cloneElement)(i,{viewBox:Z(Z({},u),{},{x:u.left,y:u.top}),active:d,label:l,payload:d?c:[],coordinate:s,accessibilityLayer:n})}),Q(r,`renderBrush`,function(e){var t=r.props,n=t.margin,i=t.data,a=r.state,o=a.offset,s=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return(0,L.cloneElement)(e,{key:e.key||`_recharts-brush`,onChange:U_(r.handleBrushChange,e.props.onChange),data:i,x:F(e.props.x)?e.props.x:o.left,y:F(e.props.y)?e.props.y:o.top+o.height+o.brushBottom-(n.bottom||0),width:F(e.props.width)?e.props.width:o.width,startIndex:s,endIndex:c,updateId:`brush-${l}`})}),Q(r,`renderReferenceElement`,function(e,t,n){if(!e)return null;var i=r.clipPathId,a=r.state,o=a.xAxisMap,s=a.yAxisMap,c=a.offset,l=e.type.defaultProps||{},u=e.props,d=u.xAxisId,f=d===void 0?l.xAxisId:d,p=u.yAxisId,m=p===void 0?l.yAxisId:p;return(0,L.cloneElement)(e,{key:e.key||`${t}-${n}`,xAxis:o[f],yAxis:s[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})}),Q(r,`renderActivePoints`,function(e){var t=e.item,r=e.activePoint,i=e.basePoint,a=e.childIndex,o=e.isRange,s=[],c=t.props.key,l=t.item.type.defaultProps===void 0?t.item.props:Z(Z({},t.item.type.defaultProps),t.item.props),u=l.activeDot,d=l.dataKey,f=Z(Z({index:a,dataKey:d,cx:r.x,cy:r.y,r:4,fill:j_(t.item),strokeWidth:2,stroke:`#fff`,payload:r.payload,value:r.value},z(u,!1)),Tn(u));return s.push(n.renderActiveDot(u,f,`${c}-activePoint-${a}`)),i?s.push(n.renderActiveDot(u,Z(Z({},f),{},{cx:i.x,cy:i.y}),`${c}-basePoint-${a}`)):o&&s.push(null),s}),Q(r,`renderGraphicChild`,function(e,t,n){var i=r.filterFormatItem(e,t,n);if(!i)return null;var a=r.getTooltipEventType(),o=r.state,s=o.isTooltipActive,c=o.tooltipAxis,l=o.activeTooltipIndex,u=o.activeLabel,d=r.props.children,f=Bn(d,Lc),p=i.props,m=p.points,h=p.isRange,g=p.baseLine,_=i.item.type.defaultProps===void 0?i.item.props:Z(Z({},i.item.type.defaultProps),i.item.props),v=_.activeDot,y=_.hide,b=_.activeBar,x=_.activeShape,S=!!(!y&&s&&f&&(v||b||x)),C={};a!==`axis`&&f&&f.props.trigger===`click`?C={onClick:U_(r.handleItemMouseEnter,e.props.onClick)}:a!==`axis`&&(C={onMouseLeave:U_(r.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:U_(r.handleItemMouseEnter,e.props.onMouseEnter)});var w=(0,L.cloneElement)(e,Z(Z({},i.props),C));function T(e){return typeof c.dataKey==`function`?c.dataKey(e.payload):null}if(S){if(l>=0){var E,D;if(c.dataKey&&!c.allowDuplicatedCategory){var O=typeof c.dataKey==`function`?T:`payload.${c.dataKey.toString()}`;E=hn(m,O,u),D=h&&g&&hn(g,O,u)}else E=m?.[l],D=h&&g&&g[l];if(x||b){var k=e.props.activeIndex===void 0?l:e.props.activeIndex;return[(0,L.cloneElement)(e,Z(Z(Z({},i.props),C),{},{activeIndex:k})),null,null]}if(!(0,P.default)(E))return[w].concat(mA(r.renderActivePoints({item:i,activePoint:E,basePoint:D,childIndex:l,isRange:h})))}else{var A=(r.getItemByXY(r.state.activeCoordinate)??{graphicalItem:w}).graphicalItem,j=A.item,M=j===void 0?e:j,N=A.childIndex,ee=Z(Z(Z({},i.props),C),{},{activeIndex:N});return[(0,L.cloneElement)(M,ee),null,null]}}return h?[w,null,null]:[w,null]}),Q(r,`renderCustomized`,function(e,t,n){return(0,L.cloneElement)(e,Z(Z({key:`recharts-customized-${n}`},r.props),r.state))}),Q(r,`renderMap`,{CartesianGrid:{handler:EA,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:EA},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:EA},YAxis:{handler:EA},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId=`${e.id??un(`recharts`)}-clip`,r.throttleTriggeredAfterMouseMove=(0,Uc.default)(r.triggeredAfterMouseMove,e.throttleDelay??1e3/60),r.state={},r}return fA(n,e),oA(n,[{key:`componentDidMount`,value:function(){this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:this.props.margin.left??0,top:this.props.margin.top??0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:`displayDefaultTooltip`,value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,i=e.layout,a=Bn(t,Lc);if(a){var o=a.props.defaultIndex;if(!(typeof o!=`number`||o<0||o>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[o]&&this.state.tooltipTicks[o].value,c=jA(this.state,n,o,s),l=this.state.tooltipTicks[o].coordinate,u=(this.state.offset.top+r)/2,d=i===`horizontal`?{x:l,y:u}:{y:l,x:u},f=this.state.formattedGraphicalItems.find(function(e){return e.item.type.name===`Scatter`});f&&(d=Z(Z({},d),f.props.points[o].tooltipPosition),c=f.props.points[o].tooltipPayload);var p={activeTooltipIndex:o,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:d};this.setState(p),this.renderCursor(a),this.accessibilityManager.setIndex(o)}}}},{key:`getSnapshotBeforeUpdate`,value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:this.props.margin.left??0,top:this.props.margin.top??0}}),null):null}},{key:`componentDidUpdate`,value:function(e){Kn([Bn(e.children,Lc)],[Bn(this.props.children,Lc)])||this.displayDefaultTooltip()}},{key:`componentWillUnmount`,value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:`getTooltipEventType`,value:function(){var e=Bn(this.props.children,Lc);if(e&&typeof e.props.shared==`boolean`){var t=e.props.shared?`axis`:`item`;return o.indexOf(t)>=0?t:i}return i}},{key:`getMouseInfo`,value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=gl(n),i={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,o=this.inRange(i.chartX,i.chartY,a);if(!o)return null;var s=this.state,c=s.xAxisMap,l=s.yAxisMap,u=this.getTooltipEventType(),d=MA(this.state,this.props.data,this.props.layout,o);if(u!==`axis`&&c&&l){var f=fn(c).scale,p=fn(l).scale,m=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return Z(Z({},i),{},{xValue:m,yValue:h},d)}return d?Z(Z({},i),d):null}},{key:`inRange`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=this.props.layout,i=e/n,a=t/n;if(r===`horizontal`||r===`vertical`){var o=this.state.offset;return i>=o.left&&i<=o.left+o.width&&a>=o.top&&a<=o.top+o.height?{x:i,y:a}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=fn(c);return wv({x:i,y:a},u)}return null}},{key:`parseEventsOfWrapper`,value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Bn(e,Lc),r={};return n&&t===`axis`&&(r=n.props.trigger===`click`?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),Z(Z({},Tn(this.props,this.handleOuterEvent)),r)}},{key:`addListener`,value:function(){Dk.on(Ok,this.handleReceiveSyncEvent)}},{key:`removeListener`,value:function(){Dk.removeListener(Ok,this.handleReceiveSyncEvent)}},{key:`filterFormatItem`,value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,a=r.length;i<a;i++){var o=r[i];if(o.item===e||o.props.key===e.key||t===Fn(o.item.type)&&n===o.childIndex)return o}return null}},{key:`renderClipPath`,value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return L.createElement(`defs`,null,L.createElement(`clipPath`,{id:e},L.createElement(`rect`,{x:n,y:r,height:i,width:a})))}},{key:`getXScales`,value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=Qk(t,2),r=n[0],i=n[1];return Z(Z({},e),{},Q({},r,i.scale))},{}):null}},{key:`getYScales`,value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=Qk(t,2),r=n[0],i=n[1];return Z(Z({},e),{},Q({},r,i.scale))},{}):null}},{key:`getXScaleByAxisId`,value:function(e){var t;return(t=this.state.xAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getYScaleByAxisId`,value:function(e){var t;return(t=this.state.yAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getItemByXY`,value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var i=0,a=n.length;i<a;i++){var o=n[i],s=o.props,c=o.item,l=c.type.defaultProps===void 0?c.props:Z(Z({},c.type.defaultProps),c.props),u=Fn(c.type);if(u===`Bar`){var d=(s.data||[]).find(function(t){return zS(e,t)});if(d)return{graphicalItem:o,payload:d}}else if(u===`RadialBar`){var f=(s.data||[]).find(function(t){return wv(e,t)});if(f)return{graphicalItem:o,payload:f}}else if(LC(o,r)||RC(o,r)||zC(o,r)){var p=KC({graphicalItem:o,activeTooltipItem:r,itemData:l.data}),m=l.activeIndex===void 0?p:l.activeIndex;return{graphicalItem:Z(Z({},o),{},{childIndex:m}),payload:zC(o,r)?l.data[p]:o.props.data[p]}}}return null}},{key:`render`,value:function(){var e=this;if(!Vn(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,a=t.height,o=t.style,s=t.compact,c=t.title,l=t.desc,u=z(nA(t,Yk),!1);if(s)return L.createElement(GT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(tr,Zk({},u,{width:i,height:a,title:c,desc:l}),this.renderClipPath(),Jn(n,this.renderMap)));this.props.accessibilityLayer&&(u.tabIndex=this.props.tabIndex??0,u.role=this.props.role??`application`,u.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},u.onFocus=function(){e.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return L.createElement(GT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(`div`,Zk({className:p(`recharts-wrapper`,r),style:Z({position:`relative`,cursor:`default`,width:i,height:a},o)},d,{ref:function(t){e.container=t}}),L.createElement(tr,Zk({},u,{width:i,height:a,title:c,desc:l,style:wA}),this.renderClipPath(),Jn(n,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(L.Component);Q(m,`displayName`,t),Q(m,`defaultProps`,Z({layout:`horizontal`,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`},u)),Q(m,`getDerivedStateFromProps`,function(e,t){var n=e.dataKey,r=e.data,i=e.children,a=e.width,o=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(t.updateId===void 0){var p=LA(e);return Z(Z(Z({},p),{},{updateId:0},f(Z(Z({props:e},p),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(n!==t.prevDataKey||r!==t.prevData||a!==t.prevWidth||o!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!_n(l,t.prevMargin)){var m=LA(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},g=Z(Z({},MA(t,r,s)),{},{updateId:t.updateId+1}),_=Z(Z(Z({},m),h),g);return Z(Z(Z({},_),f(Z({props:e},_),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(!Kn(i,t.prevChildren)){var v=Bn(i,Tw),y=v?v.props?.startIndex??u:u,b=v?v.props?.endIndex??d:d,x=y!==u||b!==d,S=!(0,P.default)(r)&&!x?t.updateId:t.updateId+1;return Z(Z({updateId:S},f(Z(Z({props:e},t),{},{updateId:S,dataStartIndex:y,dataEndIndex:b}),t)),{},{prevChildren:i,dataStartIndex:y,dataEndIndex:b})}return null}),Q(m,`renderActiveDot`,function(e,t,n){var r=(0,L.isValidElement)(e)?(0,L.cloneElement)(e,t):(0,R.default)(e)?e(t):L.createElement(US,t);return L.createElement(B,{className:`recharts-active-dot`,key:n},r)});var h=(0,L.forwardRef)(function(e,t){return L.createElement(m,Zk({},e,{ref:t}))});return h.displayName=m.displayName,h}({chartName:`AreaChart`,GraphicalChild:zO,axisComponents:[{axisType:`xAxis`,AxisComp:nk},{axisType:`yAxis`,AxisComp:yk}],formatAxisMap:TT});function UA(e,t,n,r){let i={timeZone:n,hourCycle:`h23`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};r&&(i.year=`numeric`,i.timeZoneName=`shortOffset`);let a={};for(let n of new Intl.DateTimeFormat(t,i).formatToParts(e))a[n.type]=n.value;return a}var WA=`Asia/Jakarta`;function GA(e,t,n=WA){let r=new Date(e);if(Number.isNaN(r.getTime()))return e;let i=UA(r,t,n,!1);return`${i.month??``}-${i.day??``} ${i.hour??``}:${i.minute??``}`}function KA(e,t,n=WA){let r=new Date(e);if(Number.isNaN(r.getTime()))return e;let i=UA(r,t,n,!0);return`${i.year??``}-${i.month??``}-${i.day??``} ${i.hour??``}:${i.minute??``} ${i.timeZoneName??``}`}var $=a();function qA({period:e,metric:t}){let n=ye(e),r=De(),i=(0,L.useMemo)(()=>(n.data?.buckets??[]).map(e=>({...e,total:e.input+e.output})),[n.data]),a=t===`requests`?`requests`:t===`cached`?`cached`:`total`,o=i.some(e=>e[a]>0);return n.isPending&&!o?(0,$.jsx)(ae,{label:`Loading chart…`}):n.isError&&!o?(0,$.jsx)(ie,{message:`Failed to load chart data.`,onRetry:()=>void n.refetch()}):o?(0,$.jsx)(`div`,{className:`usage-panel-body h-113.5 w-full`,children:(0,$.jsx)(nl,{width:`100%`,height:`100%`,children:(0,$.jsxs)(HA,{data:i,margin:{top:8,right:8,left:-14,bottom:0},children:[(0,$.jsx)(`defs`,{children:(0,$.jsxs)(`linearGradient`,{id:`usageChartFill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,$.jsx)(`stop`,{offset:`0%`,stopColor:`var(--accent)`,stopOpacity:.45}),(0,$.jsx)(`stop`,{offset:`100%`,stopColor:`var(--accent)`,stopOpacity:.02})]})}),(0,$.jsx)(gO,{stroke:`var(--inner-border)`,strokeDasharray:`3 3`,vertical:!1}),(0,$.jsx)(nk,{dataKey:`t`,tick:{fontSize:10,fill:`var(--text-tertiary)`},tickFormatter:e=>GA(e),axisLine:!1,tickLine:!1,minTickGap:28}),(0,$.jsx)(yk,{tick:{fontSize:10,fill:`var(--text-tertiary)`},axisLine:!1,tickLine:!1,tickFormatter:e=>Le(e),width:48}),(0,$.jsx)(Lc,{contentStyle:{background:`var(--surface-2)`,border:`1px solid var(--inner-border)`,borderRadius:12,fontSize:12,color:`var(--text-primary)`},formatter:e=>[m(Number(e)),t],labelFormatter:e=>KA(String(e))}),(0,$.jsx)(zO,{type:`monotone`,dataKey:a,stroke:`var(--accent)`,strokeWidth:2,fill:`url(#usageChartFill)`,isAnimationActive:!r,animationDuration:250})]})})}):(0,$.jsx)(oe,{title:`No usage for this period`,message:`Route requests to populate the usage.`})}function JA({options:e,value:t,onChange:n,ariaLabel:r}){return(0,$.jsx)(`div`,{role:`tablist`,"aria-label":r,className:`flex flex-wrap gap-2 min-w-0`,children:e.map(e=>(0,$.jsx)(f,{role:`tab`,"aria-selected":t===e.id,variant:t===e.id?`primary`:`secondary`,size:`sm`,onClick:()=>n(e.id),children:e.label},e.id))})}function YA({label:e,wide:t,onToggleWide:n}){return(0,$.jsx)(f,{size:`icon`,variant:`ghost`,"aria-label":t?`Restore ${e} width`:`Widen ${e}`,"aria-pressed":t,title:t?`Restore width`:`Widen`,icon:t?(0,$.jsx)(le,{size:14}):(0,$.jsx)(ce,{size:14}),onClick:n})}var XA={200:`OK`,400:`Bad Request`,401:`Unauthorized`,402:`Payment Required`,403:`Forbidden`,404:`Not Found`,407:`Proxy Authentication Required`,408:`Request Timeout`,409:`Conflict`,413:`Payload Too Large`,415:`Unsupported Media Type`,422:`Unprocessable Entity`,429:`Too Many Requests`,499:`Client Closed Request`,500:`Internal Server Error`,501:`Not Implemented`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`,529:`Capacity Exhausted`};function ZA(e){let t=XA[e];return t===void 0?String(e):`${e} ${t}`}var QA={200:`OK`,400:`BAD`,401:`AUTH`,402:`QUOTA`,403:`DENY`,404:`MISS`,407:`PROXY`,408:`TIME`,409:`CONFL`,413:`LARGE`,415:`TYPE`,422:`UNPRO`,429:`RATE`,499:`ABORT`,500:`ERR`,501:`TODO`,502:`GATE`,503:`DOWN`,504:`TIME`,529:`CAP`};function $A(e){let t=QA[e];return t===void 0?String(e):`${e} ${t}`}function ej(e){return e===200?`ok`:e===499?`warn`:e>=400?`err`:`warn`}var tj={ok:`var(--green)`,err:`var(--red)`,warn:`var(--orange)`};function nj(e,t){if(t!==void 0){let e=t>=500||t>=400&&t!==499?`err`:t===200?`ok`:`warn`;return{code:$A(t),tone:e}}switch(e){case`completed`:return{code:$A(200),tone:`ok`};case`failed`:return{code:$A(500),tone:`err`};case`cancelled`:return{code:$A(499),tone:`warn`};case`truncated`:return{code:$A(502),tone:`err`};default:return{code:e,tone:`warn`}}}function rj(e,t){if(t!==void 0)return ZA(t);switch(e){case`completed`:return ZA(200);case`failed`:return ZA(500);case`cancelled`:return ZA(499);case`truncated`:return ZA(502);default:return e}}function ij(e,t,n){if(n===499||e===`cancelled`)return`499 · client aborted the request (${t??`cancelled`}) — not a gateway error`;if(n===200||e===`completed`)return`200 · request succeeded`;let r=rj(e,n);return t?`${r} · ${t}`:r}function aj({status:e,errorKind:t,httpStatus:n}){let[r,i]=(0,L.useState)(!1),a=nj(e,n),o=ij(e,t,n);return(0,$.jsxs)(`span`,{className:`relative inline-block`,children:[(0,$.jsx)(`button`,{type:`button`,onClick:()=>i(e=>!e),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),"aria-expanded":r,"aria-label":o,title:o,className:h(`font-mono font-bold tabular-nums bg-transparent border border-transparent`,`rounded-chip cursor-pointer px-2 py-0 text-[inherit]`),style:{color:tj[a.tone]},children:a.code}),r?(0,$.jsx)(`span`,{role:`status`,className:`absolute top-full z-30 mt-1.5 left-0 whitespace-normal min-w-110 max-w-140 border border-inner-border rounded-control bg-popover-bg shadow-popout px-5 py-4 font-sans font-normal text-badge leading-snug text-text-secondary`,children:o}):null]})}function oj(e){let t={transport_closed:`request was cancelled by client`,transport_unavailable:`upstream stream failed or ended before completion`,timeout:`request timed out before a response was received`,deadline_exceeded:`upstream stream stalled past the deadline`,invalid_request:`request was rejected as invalid`,internal_error:`the gateway was misconfigured for this request`,provider_error:`upstream provider returned an error`,platform_unavailable:`upstream provider was unavailable`,proxy_unreachable:`network proxy was unreachable`,proxy_auth_required:`network proxy rejected the credential`,quota_exceeded:`a rate limit or budget was exhausted`,authentication_failed:`upstream rejected the credential`,capacity_exhausted:`the API key's concurrency limit was reached`,provider_capacity_exhausted:`every account was at its max-inflight ceiling`,upstream_queued:`the upstream queued this request; retry after the stated interval`,model_not_found:`no route served this model`,context_length_exceeded:`the request exceeded the model's context window`,capability_unsupported:`the route does not support this request`,admission_unavailable:`gateway dependencies were unavailable`,unknown_error:`the upstream failure could not be classified`,accounts_unavailable:`no account for this route was available`,accounts_rate_limited:`every account for this route is rate limited or cooling down`,ambiguous_model:`the model id matched more than one route`,invalid_pool_limits:`the network pool limits were rejected`,max_connections_exceeded:`the connection ceiling was reached`,proxy_pool_capacity_exceeded:`the proxy pool had no free slot`,proxy_pool_cooldown:`the proxy pool is cooling down`,proxy_pool_unavailable:`no usable proxy pool was available`,proxy_pool_unhealthy:`the selected proxy pool could not establish a tunnel`,slug_reserved:`that slug is reserved by the gateway`,tenant_capacity_exhausted:`the tenant concurrency ceiling was reached`,tls_rejected:`the upstream TLS handshake was rejected`,tool_call_loop_detected:`the request looped on the same tool call`,tunnel_setup_failed:`the tunnel could not be established`,unsupported_field:`the request carried a field this route rejects`,shutting_down:`the gateway was draining for a restart`,restart_for_update:`the gateway was restarting for an update; retry shortly`,upstream_not_found:`the upstream route did not exist`,request_too_large:`the request body exceeded the size limit`,proxy_pool_provider_capacity_exceeded:`this provider reached its ceiling on the selected proxy pool`,proxy_pool_blocked:`the proxy pool refused this destination`,policy_rejected:`gateway policy refused this request`,link_not_found:`that share link does not exist`,link_expired:`that share link has expired`,link_revoked:`that share link was revoked`,link_disabled:`that share link is disabled`,invalid_sequence:`the request arrived out of sequence`,invalid_lifecycle:`the request is not valid in its current state`,unsupported_media_type:`the request's content type is not accepted`,upstream_conflict:`upstream reported a conflict`,upstream_unprocessable:`upstream could not process the request`,overloaded:`the gateway was overloaded; retry shortly`,client_router_denied:`the client router denied this request`,model_abuse_banned:`this address is banned for this key after repeated invalid model requests`};return e&&t[e]?t[e]:e?e.replaceAll(`_`,` `):`request failed`}function sj(e){return e===`cartethyia`?`Gateway`:e===`upstream`?`Upstream`:e===`network`?`Network`:``}function cj(e,t,n,r){if(e===`cancelled`){let e=sj(n),r=oj(t);return e?`Cancelled 499 · ${e}: ${r} — not a gateway error`:`Cancelled 499: ${r} — not a gateway error`}let i=nj(e,r).code.split(` `,1)[0]??e,a=sj(n),o=oj(t);return a?`${o} · ${i} · ${a}`:`${o} · ${i}`}var lj=200;function uj({status:e,count:t,pressed:n,onToggle:r}){let i=ZA(e),a=ej(e);return(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-2.5 min-h-10.5 px-3 py-0.5 border rounded-chip bg-surface-1 font-sans text-micro font-semibold leading-none whitespace-nowrap cursor-pointer ${n?`border-current`:`border-inner-border text-text-secondary hover:border-current`} ${a===`ok`?`text-green`:a===`warn`?`text-orange`:`text-red`} ${n?``:`hover:bg-surface-muted`}`,"data-tone":a,"aria-pressed":n,"aria-label":`Filter ${i}: ${m(t)} requests`,title:`Show ${m(t)} requests with HTTP ${i}`,onClick:()=>r(e),children:[(0,$.jsx)(`span`,{children:i}),(0,$.jsxs)(`span`,{className:`font-mono tabular-nums opacity-65`,"aria-hidden":`true`,children:[`· `,m(t)]})]})}function dj({counts:e,active:t,onToggle:n}){let[r,i]=(0,L.useState)(!1),a=(0,L.useRef)(null),o=e.filter(e=>e.count>0),s=o.filter(e=>e.status===lj),c=o.filter(e=>e.status!==lj),l=c.reduce((e,t)=>e+t.count,0),u=c.some(e=>e.status===t);return(0,L.useEffect)(()=>{if(!r)return;let e=e=>{a.current&&!a.current.contains(e.target)&&i(!1)},t=e=>{e.key===`Escape`&&i(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[r]),o.length===0?null:(0,$.jsxs)(`div`,{className:`inline-flex items-center flex-wrap gap-2`,role:`group`,"aria-label":`Filter requests by HTTP status`,children:[s.map(e=>(0,$.jsx)(uj,{status:e.status,count:e.count,pressed:t===e.status,onToggle:n},e.status)),c.length>0?(0,$.jsxs)(`div`,{ref:a,className:`relative`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-2.5 min-h-10.5 px-3 py-0.5 border rounded-chip bg-surface-1 font-sans text-micro font-semibold leading-none whitespace-nowrap cursor-pointer ${u?`border-current`:`border-inner-border text-text-secondary hover:border-current hover:bg-surface-muted`} ${u?ej(t??0)===`ok`?`text-green`:ej(t??0)===`warn`?`text-orange`:`text-red`:``}`,"data-tone":u?ej(t??0):void 0,"aria-pressed":u,"aria-expanded":r,"aria-haspopup":`menu`,"aria-label":`More statuses: ${m(l)} requests across ${c.length}`,onClick:()=>i(e=>!e),children:[(0,$.jsx)(`span`,{children:`More`}),(0,$.jsxs)(`span`,{className:`font-mono tabular-nums opacity-65`,"aria-hidden":`true`,children:[`· `,m(l)]}),(0,$.jsx)(Te,{size:10,"aria-hidden":`true`,className:h(`transition-transform`,r&&`rotate-180`)})]}),r?(0,$.jsx)(`div`,{role:`menu`,"aria-label":`Other HTTP statuses`,className:`absolute top-full z-50 mt-1 right-0 min-w-90 flex flex-col gap-1 border border-inner-border rounded-control bg-popover-bg shadow-popout p-2`,children:c.map(e=>(0,$.jsx)(`div`,{role:`none`,className:`[&>button]:w-full [&>button]:justify-between`,children:(0,$.jsx)(uj,{status:e.status,count:e.count,pressed:t===e.status,onToggle:e=>{n(e),i(!1)}})},e.status))}):null]}):null]})}function fj({count:e,uniqueIps:t,live:n}){let r=e,i=t,a=r===1?`request`:`requests`,o=i===1?`IP`:`IPs`,s;return s=n?r===null||i===null?`Waiting for the first in-flight snapshot`:`${r} ${a} executing right now from ${i} unique client ${o} — all clients combined, not a summary of the table below`:`Live feed disconnected — last seen value`,(0,$.jsxs)(`span`,{title:s,className:`inline-flex items-center gap-3 text-badge text-text-secondary whitespace-nowrap`,children:[(0,$.jsx)(`span`,{"aria-hidden":`true`,className:`w-3.5 h-3.5 rounded-[50%] shrink-0`,style:{background:n?`var(--success)`:`var(--text-tertiary)`,boxShadow:n?`0 0 6px var(--success)`:`none`}}),(0,$.jsx)(`span`,{className:`font-mono tabular-nums font-bold text-text-primary`,children:r===null||i===null?`In-flight unavailable`:`${r} in flight · ${i} ${o}`})]})}var pj=(0,L.createContext)({count:null,uniqueIps:null,live:!1});function mj({children:e}){let t=Ke(),n=(0,L.useMemo)(()=>({count:t.count,uniqueIps:t.uniqueIps,live:t.live}),[t.count,t.uniqueIps,t.live]);return(0,$.jsx)(pj.Provider,{value:n,children:e})}function hj(){let e=(0,L.useContext)(pj);return(0,$.jsx)(fj,{count:e.count,uniqueIps:e.uniqueIps,live:e.live})}function gj({pending:e,requests:t}){let n=(0,L.useContext)(pj);return(0,$.jsx)(Be,{label:`Requests`,fit:!0,value:e?`…`:m(t),detail:n.count===null||n.uniqueIps===null?`In-flight unavailable`:`${n.count} in flight from ${n.uniqueIps} IPs`,icon:(0,$.jsx)(o,{size:13})})}function _j({label:e,value:t,scale:n,onChange:r}){let i=t==null||!Number.isFinite(t)?null:Fe(t);if(i===null||i>=Me)return null;let a=n===-1?Math.min(i+1,Me):n>=Me?-1:n+1,o=n===-1?Pe[i]?.suffix??`raw`:n>=Me?`raw`:Pe[n]?.suffix??`raw`,s=a===-1?`default unit`:a>=Me?`exact count`:Pe[a]?.suffix;return(0,$.jsxs)(`button`,{type:`button`,"aria-label":`${e}: currently ${o}, switch to ${s}`,title:`Show ${s}`,onClick:()=>r(a),className:`font-mono tabular-nums inline-flex items-center gap-2 px-3.5 py-1.5 border border-inner-border rounded-pill bg-surface-2 text-text-secondary cursor-pointer text-micro font-bold tracking-[0.04em] leading-[1]`,children:[(0,$.jsx)(pe,{size:11,"aria-hidden":`true`}),o]})}function vj({pending:e,summary:t,tokenScale:n,onTokenScaleChange:r}){return(0,$.jsxs)(`div`,{className:`metric-grid grid gap-7 w-full min-w-0`,children:[(0,$.jsx)(gj,{pending:e,requests:t?.requests}),(0,$.jsx)(Be,{label:`Input tokens`,fit:!0,value:e?`…`:Ne(t?.inputTokens,n),detail:`Prompt tokens`,tone:`accent`,action:(0,$.jsx)(_j,{label:`Input tokens scale`,value:t?.inputTokens,scale:n,onChange:r})}),(0,$.jsx)(Be,{label:`Cached tokens`,fit:!0,value:e?`…`:Ne(t?.cachedTokens,n),detail:e?`Cache hit rate`:`${t?.cacheHitRate===void 0?0:Math.round(t.cacheHitRate*10)/10}% cache hit rate`,tone:`purple`,icon:(0,$.jsx)(ee,{size:13}),action:(0,$.jsx)(_j,{label:`Cached tokens scale`,value:t?.cachedTokens,scale:n,onChange:r})}),(0,$.jsx)(Be,{label:`Output tokens`,fit:!0,value:e?`…`:Ne(t?.outputTokens,n),detail:`Completion tokens`,icon:(0,$.jsx)(qe,{size:13}),action:(0,$.jsx)(_j,{label:`Output tokens scale`,value:t?.outputTokens,scale:n,onChange:r})}),(0,$.jsx)(Be,{label:`Est. cost`,value:e?`…`:T(t?.estimatedCostUsd),detail:`Estimated not billing`,tone:`orange`,icon:(0,$.jsx)(Ye,{size:13})})]})}var yj=274;function bj({period:e,dimension:t,onDimensionChange:n,wide:r,onToggleWide:i}){let a=ve(e,t),o=Se(),s=(0,L.useMemo)(()=>new Map((o.data??[]).map(e=>[e.providerId,e.label||e.displayName])),[o.data]),c=a.data?.dimension===t?a.data.rows:[],l=c.length>0?Math.max(...c.map(e=>e.total)):1,u=c.reduce((e,t)=>e+t.requests,0),d=c.reduce((e,t)=>e+t.errors,0),f=(()=>{if(a.isPending&&c.length===0)return`Loading…`;if(c.length===0)return`No traffic in this period`;let e=Math.max(0,u-d),t=u>0?Math.round(e/u*100):0,n=c.length===1?`group`:`groups`;return`${c.length} ${n} · ${m(u)} hits · ${t}% ok`})();return(0,$.jsxs)(Ae,{className:r?`col-span-full`:``,children:[(0,$.jsx)(ke,{title:`Breakdown`,subtitle:f,icon:(0,$.jsx)(me,{size:16}),leading:(0,$.jsx)(YA,{label:`Breakdown`,wide:r,onToggleWide:i}),action:(0,$.jsx)(JA,{ariaLabel:`Breakdown dimension`,value:t,onChange:n,options:[{id:`model`,label:`Model`},{id:`provider`,label:`Provider`},{id:`client`,label:`Client`},{id:`client_ip`,label:`Client IP`},{id:`key`,label:`Key`}]})}),(0,$.jsx)(Oe,{style:{height:`${yj}px`},children:a.isPending&&c.length===0?(0,$.jsx)(ae,{label:`Loading breakdown…`}):a.isError&&c.length===0?(0,$.jsx)(ie,{message:`Failed to load breakdown.`,onRetry:()=>void a.refetch()}):c.length===0?(0,$.jsx)(oe,{title:`No usage for this period`,message:`Route requests to populate the breakdown.`}):(0,$.jsx)(`div`,{className:`scroll-region flex h-full flex-col gap-4 pr-1`,children:c.map(e=>{let n=l>0?Math.max(2,e.total/l*100):2,r=t===`provider`?s.get(e.name)??e.name:t===`key`?e.label??`${e.name.slice(0,8)}…`:e.name,i=Math.max(0,e.requests-e.errors);return(0,$.jsxs)(`div`,{title:`${r} · ${m(e.requests)} hits · ${m(i)} ok · ${m(e.total)} tokens · ${T(e.costUsd)}`,className:`relative shrink-0 overflow-hidden rounded-control border border-inner-border bg-surface-2`,children:[(0,$.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[linear-gradient(to_right,color-mix(in_srgb,var(--accent)_20%,transparent),transparent)]`,style:{width:`${n}%`}}),(0,$.jsxs)(`div`,{className:`relative flex items-center justify-between gap-4 px-6 py-5`,children:[(0,$.jsx)(`span`,{className:`truncate font-mono tabular-nums min-w-0 flex-1 text-badge font-semibold`,children:r}),` `,(0,$.jsxs)(`span`,{className:`font-mono tabular-nums shrink-0 text-micro text-text-secondary`,children:[m(e.requests),` hit · `,m(i),` ok`]}),(0,$.jsx)(`span`,{className:`shrink-0 text-badge font-bold text-orange`,children:T(e.costUsd)}),(0,$.jsx)(`span`,{className:`shrink-0 text-badge font-bold text-purple`,children:Le(e.total)})]})]},e.name)})})})]})}function xj(e){if(typeof e==`string`){let t=e.trim();if(t.startsWith(`{`)||t.startsWith(`[`))try{let t=JSON.parse(e);return{text:JSON.stringify(t,null,2),bytes:new TextEncoder().encode(e).byteLength}}catch{return{text:e,bytes:new TextEncoder().encode(e).byteLength}}return{text:e,bytes:new TextEncoder().encode(e).byteLength}}return{text:JSON.stringify(e,null,2),bytes:new TextEncoder().encode(JSON.stringify(e)).byteLength}}function Sj({title:e,meta:t,icon:n,tone:r,last:i}){return(0,$.jsxs)(`div`,{className:`flex gap-5 min-w-0`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col items-center shrink-0`,children:[(0,$.jsx)(`span`,{"aria-hidden":`true`,className:`grid place-items-center w-11 h-11 rounded-pill`,style:{color:r??`var(--accent)`,background:`color-mix(in srgb, ${r??`var(--accent)`} 16%, var(--surface-2))`},children:n}),i?null:(0,$.jsx)(`span`,{"aria-hidden":`true`,className:`w-1 flex-1 min-h-7 bg-inner-border`})]}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,style:{paddingBottom:i?0:`12px`},children:[(0,$.jsx)(`div`,{className:`text-caption font-bold`,children:e}),(0,$.jsx)(`div`,{className:`select-text mt-1 whitespace-pre-line text-badge text-text-secondary [overflow-wrap:anywhere] break-words`,children:t})]})]})}function Cj({requestId:e,onClose:t}){let n=be(e),r=n.data,i=we(r?.providerId),a=e=>{let t=e?.accountId;return t?(i.data??[]).find(e=>e.id===t)?.label||`${t.slice(0,8)}…`:`—`},o=r?.apiKeyLabel??(r?.apiKeyId?`${r.apiKeyId.slice(0,8)}…`:`—`),s=r?.userAgent===`Cartethyia Probe`?`Probe`:o,[c,p]=(0,L.useState)(!1),[b,x]=(0,L.useState)(null),[S,C]=(0,L.useState)(!1),w=We(),E=()=>{navigator.clipboard?.writeText(r?.requestId??``),p(!0),w(()=>p(!1),1500)},D=(e,t)=>{let n=typeof t==`string`?t:JSON.stringify(t,null,2);navigator.clipboard?.writeText(n),x(e),w(()=>x(null),1500)},O=async()=>{if(r){C(!0);try{let e=await ge(`/system/usage/requests/${encodeURIComponent(r.requestId)}/download`);je(`telemetry-${r.requestId}.json`,JSON.stringify(e,null,2),`application/json`)}catch(e){_.error(he(e,`Could not download telemetry.`))}finally{C(!1)}}},k=(0,L.useMemo)(()=>[`request`,`clientResponse`,`providerRequest`,`providerResponse`].map(e=>{let t=r?.payloads?.[e];if(t===void 0)return{kind:e,text:null,bytes:null};try{let n=xj(t);return{kind:e,text:n.text,bytes:n.bytes}}catch{return{kind:e,text:null,bytes:null}}}),[r?.payloads]),A=e=>k.find(t=>t.kind===e)??{kind:e,text:null,bytes:null};return(0,$.jsx)(de,{open:e!==null,onClose:t,title:`Request Detail`,children:n.isPending?(0,$.jsxs)(Re,{gap:`12px`,children:[(0,$.jsx)(`div`,{className:`animate-pulse h-12 w-[66%] rounded-inset bg-surface-2`}),(0,$.jsx)(`div`,{className:`animate-pulse h-48 rounded-control bg-surface-2`}),(0,$.jsx)(`div`,{className:`animate-pulse h-48 rounded-control bg-surface-2`})]}):n.isError||!r?(0,$.jsx)(ie,{compact:!0,message:he(n.error,`Failed to load request detail.`),onRetry:()=>void n.refetch()}):(0,$.jsxs)(Re,{gap:`12px`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-4 rounded-control border border-inner-border bg-surface-2 px-6 py-4 min-w-0`,children:[(0,$.jsxs)(`span`,{className:`select-text font-mono tabular-nums min-w-0 flex-1 [overflow-wrap:anywhere] break-words text-badge`,title:r.requestId,children:[`request_id `,r.requestId]}),(0,$.jsx)(f,{variant:`ghost`,size:`sm`,icon:c?(0,$.jsx)(u,{size:12}):(0,$.jsx)(l,{size:12}),"aria-label":`Copy request ID`,title:`Copy request ID`,onClick:E,className:`shrink-0 p-1.5`})]}),(0,$.jsx)(`div`,{className:`grid grid-cols-2 gap-2`,children:(0,$.jsx)(f,{variant:`secondary`,size:`sm`,icon:(0,$.jsx)(d,{size:13}),disabled:S,title:`Download all captured telemetry for this request as JSON`,onClick:()=>void O(),className:`w-full`,children:`Download telemetry`})}),r.errorKind?(0,$.jsxs)(He,{tone:`danger`,live:`alert`,className:`flex flex-col gap-2 [overflow-wrap:anywhere] break-words`,children:[(0,$.jsx)(`strong`,{className:`text-caption`,children:cj(r.status,r.errorKind,r.errorOrigin,r.httpStatus)}),(0,$.jsx)(`span`,{className:`font-mono tabular-nums text-text-tertiary text-micro [overflow-wrap:anywhere]`,children:r.errorKind})]}):null,(0,$.jsxs)(`section`,{className:`border border-inner-border rounded-control overflow-hidden`,children:[(0,$.jsx)(`div`,{className:`border-b border-inner-border px-6 py-5 text-caption font-bold`,children:`Flow and Detail`}),(0,$.jsxs)(`div`,{className:`flex flex-col p-6`,children:[(0,$.jsx)(Sj,{icon:(0,$.jsx)(se,{size:13}),title:`Client request in`,meta:`Client IP : ${r.clientIp??`—`}\n${r.clientName??`—`} · ${r.userAgent??`—`} · ${r.surface??`—`} · ${r.mode===`stream`?`streaming`:`non-streaming`}`}),(0,$.jsx)(Sj,{icon:(0,$.jsx)(fe,{size:13}),title:`Gateway`,meta:`${g(r.durationMs)} total · TTFT ${g(r.ttfbMs)} · ${j(r.tokensPerSec)} · ${r.cachedTokens===void 0?`—`:m(r.cachedTokens)} from cache`}),(0,$.jsx)(Sj,{icon:(0,$.jsx)(Ce,{size:13}),title:`Upstream · ${r.providerId??`—`}`,meta:`${[a(r),r.model??`—`].filter(e=>e!==`—`).join(` · `)||`—`}\nApi Key : ${s}\nProxy : ${r.proxy??`direct`}`}),(0,$.jsx)(Sj,{icon:(0,$.jsx)(y,{size:13}),last:!0,title:`Response out`,meta:`${nj(r.status,r.httpStatus).code}${A(`clientResponse`).bytes===null?``:` · ${v(A(`clientResponse`).bytes)}`}${r.estimatedCost?` · ${T(r.estimatedCost)}`:``}`,tone:tj[nj(r.status,r.httpStatus).tone]})]})]}),(()=>{let e=r.payloadSignals,t=[{label:`Tool calls`,value:e?.toolCalls??`—`,icon:me},{label:`Images`,value:e?.images??`—`,icon:re},{label:`Attachments`,value:e?.attachments??`—`,icon:ue}];return(0,$.jsx)(`section`,{"aria-label":`Session signals`,className:`signal-grid grid gap-4 border border-inner-border rounded-control p-5 bg-surface-2`,children:t.map(({label:e,value:t,icon:n})=>(0,$.jsxs)(`div`,{className:`flex items-center gap-3.5 min-w-0 text-text-secondary`,children:[(0,$.jsx)(n,{size:14,"aria-hidden":`true`,className:`shrink-0 text-accent`}),(0,$.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere] text-badge`,children:[e,`: `,(0,$.jsx)(`strong`,{className:`text-text-primary`,children:t})]})]},e))})})(),[[`request`,`1. Client Request (Input)`,r.payloads?.request,se],[`providerRequest`,`2. Provider Request (Translated)`,r.payloads?.providerRequest,fe],[`providerResponse`,`3. Provider Response (Raw)`,r.payloads?.providerResponse,Ce],[`clientResponse`,`4. Client Response (Final)`,r.payloads?.clientResponse,y]].map(([e,t,n,r])=>(0,$.jsxs)(`details`,{className:`rounded-control border border-inner-border bg-surface-2 overflow-hidden`,children:[(0,$.jsxs)(`summary`,{className:`flex items-center justify-between gap-4 cursor-pointer px-6 py-5 text-caption font-bold`,children:[(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-3.5 min-w-0`,children:[(0,$.jsx)(r,{size:14,className:h(`shrink-0`,e===`request`?`text-accent`:`text-green`)}),(0,$.jsx)(`span`,{className:`[overflow-wrap:anywhere] break-words`,children:t})]}),(0,$.jsx)(`span`,{className:`font-mono tabular-nums shrink-0 text-text-tertiary text-micro font-medium`,children:v(A(e).bytes)})]}),n===void 0?(0,$.jsxs)(`div`,{className:`flex items-start gap-5 border-t border-inner-border bg-surface-1 px-6 py-7`,children:[(0,$.jsx)(ee,{size:15,className:`shrink-0 text-text-tertiary mt-0.5`}),(0,$.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-1.5`,children:[(0,$.jsx)(`strong`,{className:`text-caption text-text-secondary`,children:`No payload captured`}),(0,$.jsxs)(`span`,{className:`text-badge text-text-tertiary [overflow-wrap:anywhere] break-words`,children:[t,` is unavailable for this request.`]})]})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`flex justify-end border-t border-inner-border pt-2.5 px-4`,children:(0,$.jsx)(f,{variant:`ghost`,size:`sm`,icon:b===e?(0,$.jsx)(u,{size:11}):(0,$.jsx)(l,{size:11}),"aria-label":`Copy ${t}`,title:`Copy ${t}`,onClick:()=>D(e,n),className:`p-1`})}),(0,$.jsx)(`pre`,{className:`select-text font-mono tabular-nums max-h-128 overflow-auto whitespace-pre-wrap [overflow-wrap:break-word] break-words m-0 border-t border-inner-border pt-4 px-6 pb-6 text-micro text-text-secondary`,children:A(e).text})]})]},e))]})})}function wj(e,t){if(e)return e;let n=t===void 0?-1:t.indexOf(`/`);return n>0?t?.slice(0,n):void 0}var Tj=`Cartethyia Probe`;function Ej(e){return e?e.userAgent===Tj:!1}function Dj(e){return e?Ej(e)?`Probe`:e.apiKeyLabel?e.apiKeyLabel:e.apiKeyId?`${e.apiKeyId.slice(0,8)}…`:`—`:`—`}function Oj(e){return e?e.clientName?e.clientName:e.userAgent?e.userAgent:Ej(e)?`Provider test`:`—`:`—`}function kj(e){if(e.includes(`:`))return`${e.split(`:`).slice(0,2).join(`:`)}:…`;let t=e.split(`.`);return t.length===4?`${t.slice(0,3).join(`.`)}.x`:`…`}var Aj=[{key:`request`,bit:1,label:`Client request`,icon:se},{key:`providerRequest`,bit:2,label:`Provider request`,icon:fe},{key:`providerResponse`,bit:4,label:`Provider response`,icon:Ce},{key:`clientResponse`,bit:8,label:`Client response`,icon:y}];function jj({pending:e,avgMs:t,p50Ms:n,p95Ms:r,p99Ms:i,latencySampleCount:a,resolveSampleCount:o,periodLabel:s}){if(e)return null;let c=`Resolve — average time from request arrival to just before the upstream is called (credential, admission, pool slot, preparation). Not response latency. ${s} · ${m(o??0)} requests with a resolve measurement.`,l=(e,t)=>`${e} — the ${t} of total request duration (arrival to final byte), nearest rank. ${s} · from ${m(a??0)} requests.`,u=[{label:`Resolve`,value:t,title:c},{label:`P50`,value:n,title:l(`P50`,`median`)},{label:`P95`,value:r,title:l(`P95`,`95th percentile`)},{label:`P99`,value:i,title:l(`P99`,`99th percentile`)}];return(0,$.jsxs)(`div`,{role:`group`,"aria-label":`Routing latency summary`,className:`flex flex-wrap items-center gap-x-6 gap-y-3 border-b border-inner-border px-6 py-5 text-badge`,children:[(0,$.jsx)(fe,{size:12,"aria-hidden":`true`,className:`shrink-0 text-text-secondary`}),u.map(e=>(0,$.jsxs)(`span`,{title:e.title,className:`inline-flex items-baseline gap-1.5 font-mono tabular-nums leading-none text-caption`,children:[(0,$.jsx)(`span`,{className:`font-semibold tracking-label uppercase text-text-tertiary`,children:e.label}),(0,$.jsx)(`span`,{className:`font-semibold text-text-secondary`,children:g(e.value)})]},e.label))]})}function Mj({row:e,hideProviderName:t,maskIpEnabled:n,providerNames:r,isNew:i,onSelect:a}){let o=e.estimatedCost===void 0?`—`:T(e.estimatedCost),l=wj(e.providerId,e.model);return(0,$.jsxs)(`tr`,{onClick:a,className:`cursor-pointer transition-colors`,style:{background:i?`color-mix(in srgb, var(--accent) 14%, transparent)`:void 0},children:[(0,$.jsxs)(`td`,{className:`text-badge text-text-tertiary whitespace-nowrap`,children:[(0,$.jsx)(`div`,{children:x(e.startedAt)}),(0,$.jsx)(`div`,{className:`text-micro mt-0.5`,children:b(e.startedAt)})]}),(0,$.jsxs)(`td`,{className:`max-w-105`,children:[(0,$.jsx)(`div`,{className:`flex items-center gap-3 min-w-0`,children:(0,$.jsx)(`span`,{className:`truncate text-caption font-semibold`,title:l??`—`,children:t?`Mysterious`:l?r.get(l)??l:`—`})}),(0,$.jsx)(`div`,{className:`truncate font-mono text-badge text-text-tertiary mt-px`,title:e.model??`—`,children:t&&e.model&&e.model.includes(`/`)?e.model.slice(e.model.indexOf(`/`)+1):e.model??`—`}),e.reportedModel?(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-px min-w-0 text-micro text-text-tertiary`,title:`Reported by upstream: ${e.reportedModel}`,children:[(0,$.jsx)(E,{size:10,"aria-hidden":`true`,className:`shrink-0`}),(0,$.jsx)(`span`,{className:`truncate font-mono`,children:e.reportedModel})]}):null]}),(0,$.jsxs)(`td`,{className:`max-w-70`,children:[(0,$.jsx)(`div`,{className:`truncate text-caption font-semibold`,title:Dj(e),children:Dj(e)}),(0,$.jsx)(`div`,{className:`truncate font-mono text-badge text-text-tertiary mt-px`,title:Oj(e),children:Oj(e)}),(0,$.jsx)(`div`,{className:`truncate font-mono text-badge text-text-tertiary mt-px`,title:n&&e.clientIp?`Client IP masked`:e.clientIp??`—`,children:e.clientIp?n?kj(e.clientIp):e.clientIp:`—`})]}),(0,$.jsxs)(`td`,{className:`whitespace-nowrap text-badge`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{className:`font-mono tabular-nums inline-block min-w-[13ch] text-text-secondary`,children:e.mode===`stream`?`streaming`:`non-streaming`}),` `,(0,$.jsx)(aj,{status:e.status,errorKind:e.errorKind,httpStatus:e.httpStatus})]}),(0,$.jsx)(`div`,{className:`flex items-center gap-2.5 mt-px`,"aria-label":`Captured payload stages`,children:Aj.map(({key:t,bit:n,label:r,icon:i})=>{let a=e.payloadStages!==void 0&&(e.payloadStages&n)!==0;return(0,$.jsx)(`span`,{title:a?`${r} · captured`:`${r} · not captured`,className:a?`text-accent`:`text-text-tertiary opacity-45`,children:(0,$.jsx)(i,{size:11,"aria-hidden":`true`})},t)})}),(0,$.jsx)(`div`,{className:`truncate font-mono text-badge text-text-tertiary mt-px max-w-110`,title:N(e.surface),children:N(e.surface)})]}),(0,$.jsxs)(`td`,{className:`font-mono text-badge whitespace-nowrap text-right tabular-nums`,children:[(0,$.jsxs)(`div`,{className:`flex gap-6 justify-end`,children:[(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-text-secondary`,children:[(0,$.jsx)(c,{size:10,"aria-label":`Input tokens`}),` IN `,m(e.inputTokens)]}),(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-text-secondary`,children:[(0,$.jsx)(s,{size:10,"aria-label":`Output tokens`}),` OUT `,m(e.outputTokens)]})]}),(0,$.jsxs)(`div`,{className:`flex gap-6 justify-end mt-0.5 text-text-tertiary`,title:e.estimatedCost===void 0?`Unpriced model — no catalog rate`:void 0,children:[(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,$.jsx)(ee,{size:10,"aria-label":`Cached tokens`}),` CACHED `,m(e.cachedTokens??0)]}),(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,$.jsx)(Ye,{size:10,"aria-label":`Estimated cost`}),` COST `,o]}),e.creditUsed===void 0?null:(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2`,title:`Provider-billed credits for this turn`,children:[(0,$.jsx)(Je,{size:10,"aria-label":`Credits used`}),` `,O(e.creditUsed)]})]})]}),(0,$.jsx)(`td`,{className:`font-mono text-caption text-right text-text-secondary whitespace-nowrap`,children:j(e.tokensPerSec)}),(0,$.jsxs)(`td`,{className:`font-mono text-caption text-right text-text-secondary`,children:[(0,$.jsx)(`div`,{children:g(e.ttfbMs)}),e.resolveMs===void 0?null:(0,$.jsxs)(`div`,{className:`text-micro mt-0.5 text-text-tertiary`,title:`Gateway-side time before the upstream dispatch began`,children:[`(`,g(e.resolveMs),`)`]})]}),(0,$.jsx)(`td`,{className:`font-mono text-caption text-right text-text-secondary`,children:g(e.durationMs)})]})}function Nj(e,t,n){let r=new URLSearchParams(e);return r.set(t,n),r}function Pj(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function Fj(){let[e,t]=xe(),n=A(e.get(`period`)),r=D(e.get(`metric`)),i=M(e.get(`dim`)),a=w(e.get(`scale`)),[s,c]=(0,L.useState)(()=>new Set),l=(e,t)=>{e(e=>Pj(e,t))},[u,d]=(0,L.useState)(null),{enabled:p,setEnabled:m}=Ue(),[h,g]=(0,L.useState)(()=>{try{return localStorage.getItem(`cartethyia:usage:hide-provider`)===`true`}catch{return!1}}),_=()=>{g(e=>{let t=!e;try{localStorage.setItem(`cartethyia:usage:hide-provider`,String(t))}catch{}return t})},v=_e(n),y=Se(),b=(0,L.useMemo)(()=>new Map((y.data??[]).map(e=>[e.providerId,e.label||e.displayName])),[y.data]),[x,T]=(0,L.useState)(50),[E,O]=(0,L.useState)(null),j=Ee(n,x,E);Ge();let N=(0,L.useRef)(0),[ee,re]=(0,L.useState)(`startedAt`),[se,ce]=(0,L.useState)(`desc`),le=e=>{re(t=>t===e?(ce(e=>e===`asc`?`desc`:`asc`),t):(ce(e===`model`?`asc`:`desc`),e))},ue=(0,L.useRef)(new Set),[de,fe]=(0,L.useState)(new Set);(0,L.useEffect)(()=>{let e=j.data?.items??[];if(e.length===0)return;let t=ue.current;if(t.size===0){for(let n of e)t.add(n.requestId);return}let n=new Set;for(let r of e)t.has(r.requestId)||(t.add(r.requestId),n.add(r.requestId));if(n.size>0){fe(e=>new Set([...e,...n]));let e=window.setTimeout(()=>{fe(e=>{let t=new Set(e);for(let e of n)t.delete(e);return t})},3e3);return()=>window.clearTimeout(e)}},[j.data?.items]);let pe=e=>{let t=e.currentTarget;N.current=t.scrollTop,t.scrollHeight-t.scrollTop-t.clientHeight<40&&!j.isFetching&&he.length>=x&&x<500&&T(e=>e+50)},me=v.data?.totals,he=(0,L.useMemo)(()=>{let e=[...j.data?.items??[]],t=se===`asc`?1:-1,n=e=>typeof e==`number`&&Number.isFinite(e)?e:-1;return e.sort((e,r)=>{switch(ee){case`model`:return`${e.providerId??``}/${e.model??``}`.localeCompare(`${r.providerId??``}/${r.model??``}`)*t||e.startedAt.localeCompare(r.startedAt)*-1;case`status`:return((e.httpStatus??0)-(r.httpStatus??0))*t||e.startedAt.localeCompare(r.startedAt)*-1;case`tokens`:return((e.totalTokens??0)-(r.totalTokens??0))*t||e.startedAt.localeCompare(r.startedAt)*-1;case`tps`:return(n(e.tokensPerSec)-n(r.tokensPerSec))*t||e.startedAt.localeCompare(r.startedAt)*-1;case`ttft`:return(n(e.ttfbMs)-n(r.ttfbMs))*t||e.startedAt.localeCompare(r.startedAt)*-1;case`duration`:return(n(e.durationMs)-n(r.durationMs))*t||e.startedAt.localeCompare(r.startedAt)*-1;default:return e.startedAt.localeCompare(r.startedAt)*t}}),e},[j.data?.items,ee,se]);(0,L.useLayoutEffect)(()=>{let e=document.getElementById(`usage-requests-scroll`);e!==null&&(e.scrollTop=Math.min(N.current,e.scrollHeight))},[he.length]);let ge=()=>{N.current=0},ve=e=>{ge(),T(50),O(t=>t===e?null:e)},ye=(e,n)=>{t(t=>Nj(t,e,n),{replace:!0})};return(0,$.jsx)(mj,{children:(0,$.jsxs)(Re,{gap:`16px`,children:[(0,$.jsxs)(Ae,{children:[(0,$.jsx)(ke,{title:`Usage`,subtitle:S(n,v.isPending,me),icon:(0,$.jsx)(o,{size:16})}),(0,$.jsxs)(Oe,{className:`flex flex-col gap-8`,children:[(0,$.jsx)(vj,{pending:v.isPending,summary:me,tokenScale:a,onTokenScaleChange:e=>{t(t=>{let n=new URLSearchParams(t);return e===Ie?n.delete(`scale`):e===-1?n.set(`scale`,`auto`):n.set(`scale`,String(e)),n},{replace:!0})}}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-8 w-full min-w-0 max-medium:grid-cols-1`,children:[(0,$.jsx)(bj,{period:n,dimension:i,onDimensionChange:e=>ye(`dim`,e),wide:s.has(`breakdown`),onToggleWide:()=>l(c,`breakdown`)}),(0,$.jsxs)(Ae,{className:s.has(`traffic`)?`col-span-full`:``,children:[(0,$.jsx)(ke,{title:`Traffic`,subtitle:`Requests per bucket · ${k(n)}`,icon:(0,$.jsx)(Xe,{size:16}),leading:(0,$.jsx)(YA,{label:`Traffic`,wide:s.has(`traffic`),onToggleWide:()=>l(c,`traffic`)}),action:(0,$.jsxs)(ze,{gap:`6px`,className:`flex-wrap`,children:[(0,$.jsx)(JA,{ariaLabel:`Traffic metric`,value:r,onChange:e=>ye(`metric`,e),options:[{id:`requests`,label:`Requests`},{id:`tokens`,label:`Tokens`},{id:`cached`,label:`Cached`}]}),(0,$.jsx)(C,{value:n,onChange:e=>ye(`period`,e)})]})}),(0,$.jsx)(Oe,{children:(0,$.jsx)(qA,{period:n,metric:r})})]})]})]})]}),(0,$.jsxs)(Ae,{children:[(0,$.jsx)(ke,{title:`Requests`,subtitle:`Most recent first · ${he.length} entries · open a row to inspect`,subtitleAddon:(0,$.jsx)(dj,{counts:me?.statusCounts??[],active:E,onToggle:ve}),icon:(0,$.jsx)(o,{size:16}),action:(0,$.jsxs)(ze,{gap:`12px`,align:`center`,className:`flex-wrap`,children:[(0,$.jsx)(f,{variant:`ghost`,size:`sm`,icon:h?(0,$.jsx)(te,{size:13}):(0,$.jsx)(ne,{size:13}),onClick:_,title:h?`Show real provider names`:`Mask provider names as Mysterious`,className:`text-badge h-13 px-4 py-0 text-text-secondary`,children:h?`Provider masked`:`Mask provider`}),(0,$.jsx)(f,{variant:`ghost`,size:`sm`,icon:p?(0,$.jsx)(te,{size:13}):(0,$.jsx)(ne,{size:13}),onClick:()=>m(!p),title:p?`Show client addresses`:`Hide client addresses`,className:`text-badge h-13 px-4 py-0 text-text-secondary`,children:p?`IP masked`:`Mask IP`}),(0,$.jsx)(hj,{})]})}),(0,$.jsx)(Oe,{className:`p-0`,children:j.isPending&&he.length===0?(0,$.jsx)(ae,{compact:!0,label:`Loading requests…`}):j.isError&&he.length===0?(0,$.jsx)(ie,{compact:!0,message:`Could not load recent requests.`,onRetry:()=>void j.refetch()}):he.length===0?(0,$.jsx)(oe,{compact:!0,title:`No requests recorded for this period`,message:`Route requests through the gateway to populate the table.`,icon:(0,$.jsx)(o,{size:20})}):(0,$.jsxs)(`div`,{id:`usage-requests-scroll`,className:`rounded-control border border-inner-border bg-surface-1`,children:[(0,$.jsx)(jj,{pending:v.isPending,avgMs:me?.avgResolveMs,p50Ms:me?.latencyP50Ms,p95Ms:me?.latencyP95Ms,p99Ms:me?.latencyP99Ms,latencySampleCount:me?.latencySampleCount,resolveSampleCount:me?.resolveSampleCount,periodLabel:k(n)}),(0,$.jsx)(Ve,{maxHeight:445,onScroll:pe,headers:[{key:`startedAt`,label:`Time`,sortable:!0},{key:`model`,label:`Provider/model`,sortable:!0},{key:`apiKey`,label:`API Key`},{key:`status`,label:`Status`,sortable:!0},{key:`tokens`,label:`Tokens`,sortable:!0},{key:`tps`,label:`TPS`,sortable:!0},{key:`ttft`,label:`TTFT`,sortable:!0},{key:`duration`,label:`Done`,sortable:!0}],sortKey:ee,sortDirection:se,onSort:e=>le(e),children:he.map(e=>(0,$.jsx)(Mj,{row:e,hideProviderName:h,maskIpEnabled:p,providerNames:b,isNew:de.has(e.requestId),onSelect:()=>d(e.requestId)},e.requestId))})]})})]}),(0,$.jsx)(Cj,{requestId:u,onClose:()=>d(null)})]})})}export{Fj as default,b as formatAgo,O as formatCredit,N as surfaceFamilyLabel,Pj as toggleInSet,Nj as withParam};