decocms 4.294.2 → 4.294.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-qZDg2e-H.js → AlertCircle-DLj-rBLn.js} +1 -1
- package/dist/client/assets/{AreaChart-D1rWRcUm.js → AreaChart-9FGrcqfj.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CatEVOI7.js → ArrowLeft-Bz-VyTFg.js} +1 -1
- package/dist/client/assets/{ArrowUp-DMDdMhAA.js → ArrowUp-C9wijSHC.js} +1 -1
- package/dist/client/assets/{Check-C5RWnyNL.js → Check-CTKt7DPp.js} +1 -1
- package/dist/client/assets/{CheckCircle-V0GvWvtd.js → CheckCircle-DOOBCpT9.js} +1 -1
- package/dist/client/assets/{ChevronDown-CeGZsBnS.js → ChevronDown-DCBuHd0m.js} +1 -1
- package/dist/client/assets/{ChevronRight-Dh8_6pj1.js → ChevronRight-CO9K42kJ.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Im3Lz_4E.js → ChevronSelectorVertical-Iu37Jtvz.js} +1 -1
- package/dist/client/assets/{ChevronUp-DCx43qHY.js → ChevronUp-D6fZUTvM.js} +1 -1
- package/dist/client/assets/{Copy01-DhfruII6.js → Copy01-C-9zesbF.js} +1 -1
- package/dist/client/assets/{CreditCard01-Cy0s6gAf.js → CreditCard01-CKM-Jz3x.js} +1 -1
- package/dist/client/assets/{DotsVertical-B39kxqbi.js → DotsVertical-CSkWlHZt.js} +1 -1
- package/dist/client/assets/{Download01-C1FmC7JV.js → Download01-DYsmBrAR.js} +1 -1
- package/dist/client/assets/{Eye-m8QZKf2Y.js → Eye-Bf1344cz.js} +1 -1
- package/dist/client/assets/{FilterLines-BBF-m2ZJ.js → FilterLines-D4VZo9JH.js} +1 -1
- package/dist/client/assets/{Globe01-C2F_PPuX.js → Globe01-Mlkbzavy.js} +1 -1
- package/dist/client/assets/{Globe04-CMCnFTSr.js → Globe04-CcZwBZDM.js} +1 -1
- package/dist/client/assets/{HardDrive-DmqNZKD8.js → HardDrive-rv6yXW9l.js} +1 -1
- package/dist/client/assets/{Key01-DbCU9LZF.js → Key01-C71Bncy8.js} +1 -1
- package/dist/client/assets/{LinkExternal01-kQnRXU4w.js → LinkExternal01-Bd5qXJx-.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-D5OpQeQe.js → LockUnlocked01-xUxyOLI6.js} +1 -1
- package/dist/client/assets/{LogOut01-BePTyd5L.js → LogOut01-CFPuWi87.js} +1 -1
- package/dist/client/assets/{Monitor01-DPqlemzQ.js → Monitor01-Db3wK3MU.js} +1 -1
- package/dist/client/assets/{Palette-DzT0S9Gl.js → Palette-Wf7ieWzf.js} +1 -1
- package/dist/client/assets/{Play-Btu3v5FX.js → Play-CTzOPD4i.js} +1 -1
- package/dist/client/assets/{Plus-B7vTVmKH.js → Plus-C20besyI.js} +1 -1
- package/dist/client/assets/{SearchLg-CAAIuTYj.js → SearchLg-BoAF9n4o.js} +1 -1
- package/dist/client/assets/{SearchMd-COQJLRw-.js → SearchMd-DbgBw9S_.js} +1 -1
- package/dist/client/assets/{Settings02-xEBQxvJD.js → Settings02-DVdySYD4.js} +1 -1
- package/dist/client/assets/{Share07-CLkT7SlV.js → Share07-TLJEQyW1.js} +1 -1
- package/dist/client/assets/{Shield01-C2USnj9G.js → Shield01-CVEumGx3.js} +1 -1
- package/dist/client/assets/{Stars01-DkoqcM4j.js → Stars01-BLlf5jfX.js} +1 -1
- package/dist/client/assets/{Stars02-4GZ9SjIq.js → Stars02-DSl09LS3.js} +1 -1
- package/dist/client/assets/{Sun-D0KW7MLF.js → Sun-D8Cz2KrR.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DwxljZOI.js → SwitchHorizontal01-DxrMcxk-.js} +1 -1
- package/dist/client/assets/{Tool01-tn2PFBHQ.js → Tool01-C-r-Zf-I.js} +1 -1
- package/dist/client/assets/{Tool02-BalBR7uK.js → Tool02-CQfhYBA-.js} +1 -1
- package/dist/client/assets/{Trash01-CwqV1gzD.js → Trash01-BaF7-rQA.js} +1 -1
- package/dist/client/assets/{TrendUp01-6TR_k_0Y.js → TrendUp01-DrIbuukS.js} +1 -1
- package/dist/client/assets/{Upload01-mqAHBbZV.js → Upload01-Eo8Y8gwt.js} +1 -1
- package/dist/client/assets/{User01-DWaPmCwS.js → User01-BmKTu46m.js} +1 -1
- package/dist/client/assets/{UserSquare-ClSByuB-.js → UserSquare-D5oHibl1.js} +1 -1
- package/dist/client/assets/{Users01-CFDNbxgJ.js → Users01-DdYj89q4.js} +1 -1
- package/dist/client/assets/{Users03-BT3gPqQL.js → Users03-BvmFpFso.js} +1 -1
- package/dist/client/assets/{XCircle-BOrCVYLf.js → XCircle-BLGxEUt7.js} +1 -1
- package/dist/client/assets/{XClose-DMSeuF30.js → XClose-KYQfxNAH.js} +1 -1
- package/dist/client/assets/{YAxis-CjueDU_j.js → YAxis-BzTUlY5S.js} +1 -1
- package/dist/client/assets/{Zap-CwYGo5D6.js → Zap-DSuzhrFd.js} +1 -1
- package/dist/client/assets/{ZapSquare-DkKtoQ7W.js → ZapSquare-B03SIXBG.js} +1 -1
- package/dist/client/assets/{access-gate-DXIgG9H-.js → access-gate-DXpndi2J.js} +1 -1
- package/dist/client/assets/{agent-icon-C9_7Msf7.js → agent-icon-LbhnjHwi.js} +1 -1
- package/dist/client/assets/{agents-list-CrYr2LdT.js → agents-list-BWtnoYa9.js} +1 -1
- package/dist/client/assets/{ai-providers-9B822Ytz.js → ai-providers-C9TvV_lY.js} +1 -1
- package/dist/client/assets/{alert-DeOSO_Ec.js → alert-Brn68O_I.js} +1 -1
- package/dist/client/assets/{alert-dialog-BWONJIzw.js → alert-dialog-CDXDBEVz.js} +1 -1
- package/dist/client/assets/{api-keys-BHGQjiZT.js → api-keys-C0YiI_0_.js} +1 -1
- package/dist/client/assets/{app-editor-GCmyfLNC.js → app-editor-ByjOzHF0.js} +1 -1
- package/dist/client/assets/{auth-BqxUQw-v.js → auth-CMC5pcXA.js} +1 -1
- package/dist/client/assets/{auth-catchall-q5v2tPZU.js → auth-catchall-C1obS0DM.js} +1 -1
- package/dist/client/assets/{auth-entry-Dx-_gZ2g.js → auth-entry-L4MYHhmA.js} +1 -1
- package/dist/client/assets/{auth-split-layout-YdeWuYN1.js → auth-split-layout-p8RpZGj-.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DRVU48ic.js → authenticate-and-persist-oauth-B1awg6G_.js} +1 -1
- package/dist/client/assets/{automation-list-row-BMiRTeOK.js → automation-list-row-DSW4dqyo.js} +1 -1
- package/dist/client/assets/{automation-runs-CzcGADVN.js → automation-runs-DwCd_zFP.js} +1 -1
- package/dist/client/assets/{automations-DDnrk0LJ.js → automations-C4N4GC8F.js} +1 -1
- package/dist/client/assets/{avatar-1XE5IjoT.js → avatar-DKKheiwZ.js} +1 -1
- package/dist/client/assets/{badge-CXIV4O-0.js → badge-BCfyeFAT.js} +1 -1
- package/dist/client/assets/{block-document-BufBxpL6.js → block-document-D9NoKYRN.js} +1 -1
- package/dist/client/assets/{breadcrumb-FUX_wv57.js → breadcrumb-DwyVLr-T.js} +1 -1
- package/dist/client/assets/{buckets-DQPGFSM3.js → buckets-NENIH_rY.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CNgfZPUK.js → bulk-category-panel-CWOO5lMW.js} +1 -1
- package/dist/client/assets/{capability-load-error-BKGEHfpt.js → capability-load-error-Bu5AJKz_.js} +1 -1
- package/dist/client/assets/{cards-DJSm_nho.js → cards-AP5XpAV6.js} +1 -1
- package/dist/client/assets/{category-editor-ByRsnfkE.js → category-editor-CAPnyo_p.js} +1 -1
- package/dist/client/assets/{chart-Bgue_7DQ.js → chart-D1jgldPO.js} +1 -1
- package/dist/client/assets/{chat-context-C-BdNZCf.js → chat-context-DQqAI1Uh.js} +1 -1
- package/dist/client/assets/{checkbox-DvC3nAT5.js → checkbox-BdDEdRtX.js} +1 -1
- package/dist/client/assets/{choose-editor-CFBXNqp3.js → choose-editor-d1jVshXq.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CUav6RQy.js → cli-auth-success-DZNcV7RU.js} +1 -1
- package/dist/client/assets/{collection-detail-LByozjyF.js → collection-detail-DCdfqXH6.js} +1 -1
- package/dist/client/assets/{collection-display-button-D4ItaSc8.js → collection-display-button-BkVeJ-Ht.js} +1 -1
- package/dist/client/assets/{collection-search-DBnGb4Zg.js → collection-search-swq3mYpH.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DCUZlFkx.js → collection-table-wrapper-BFeQBjk_.js} +1 -1
- package/dist/client/assets/{collection-tabs-CAUEdmSI.js → collection-tabs-B31Xr--3.js} +1 -1
- package/dist/client/assets/{command-Ct_4mokr.js → command-CtzJnf3P.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-C2UgJ-TR.js → commerce-onboarding-B6IdGbvD.js} +1 -1
- package/dist/client/assets/{config-DG69PD1X.js → config-CbfHHHdK.js} +1 -1
- package/dist/client/assets/{connect-DLRRtQi0.js → connect-28y6QTSQ.js} +1 -1
- package/dist/client/assets/{connection-Dg1mnPcO.js → connection-BuSysa2G.js} +1 -1
- package/dist/client/assets/{connection-card-CgUgSGsh.js → connection-card-BllYSe_U.js} +1 -1
- package/dist/client/assets/{connection-detail-CAhXUEiD.js → connection-detail-_XYLLvoB.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-gU6TF210.js → connection-form-helpers-C6PcVFY-.js} +1 -1
- package/dist/client/assets/{connections-tQk1fh_m.js → connections-Cu1bTJAX.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DDszDk42.js → decopilot-sse-pool-CvmARxhG.js} +1 -1
- package/dist/client/assets/{dialog-DYg0AoO0.js → dialog-D4htx8Dz.js} +1 -1
- package/dist/client/assets/{domain-settings-xR7ZmjBb.js → domain-settings-DEIyOLUp.js} +1 -1
- package/dist/client/assets/{drawer-DrqU_8fl.js → drawer-CuMUVmYp.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BGreHXNg.js → dropdown-menu-BE_ym3Aq.js} +1 -1
- package/dist/client/assets/{empty-state-DNKOHljA.js → empty-state-DANnu2Dm.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BI_gbc3h.js → extract-connection-data-BIGQQYkp.js} +1 -1
- package/dist/client/assets/{file-explorer-D9_-DWtI.js → file-explorer-DyEzRtBa.js} +1 -1
- package/dist/client/assets/{file-type-icon-Cr_jiDFe.js → file-type-icon-BenR9kqm.js} +1 -1
- package/dist/client/assets/{form-DUYaeuN1.js → form-DxT0qd-2.js} +1 -1
- package/dist/client/assets/{general-CVMzbMNL.js → general-BgW26EXn.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BjTlfZRh.js → github-repo-picker-DuwsdpzE.js} +1 -1
- package/dist/client/assets/{hooks-DvV-YCly.js → hooks-rNJx2Yiz.js} +1 -1
- package/dist/client/assets/{index-Bk7mmffp.js → index-BNizG_r4.js} +1 -1
- package/dist/client/assets/{index-DHLutK6v.js → index-BWXyDl1J.js} +3 -3
- package/dist/client/assets/{index-pYJ2-T-r.js → index-BXn0NwIo.js} +1 -1
- package/dist/client/assets/{index-RXRS2M8q.js → index-CdvEA4gL.js} +1 -1
- package/dist/client/assets/{index-CXtbLiKC.js → index-ChcGUNSF.js} +1 -1
- package/dist/client/assets/{index-CxsfTXSQ.js → index-DeW3li9q.js} +1 -1
- package/dist/client/assets/{index-BOALwCeh.js → index-Dstu6oca.js} +1 -1
- package/dist/client/assets/{index-BWVLjCpL.js → index-eyTxS6Bz.js} +6 -6
- package/dist/client/assets/{index-CgA3qf5E.js → index-ke_XwP2X.js} +1 -1
- package/dist/client/assets/{index-redirect-CUFx5Ci3.js → index-redirect-BJVKALX7.js} +1 -1
- package/dist/client/assets/{infra-billing-C7HR_T7J.js → infra-billing-CcvA504_.js} +1 -1
- package/dist/client/assets/{input-zNG5Uz1T.js → input-BmuxVBRq.js} +1 -1
- package/dist/client/assets/{integration-icon-CVsQlE88.js → integration-icon-BIrESC5L.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BocroOxJ.js → invite-member-dialog-DIItbiti.js} +1 -1
- package/dist/client/assets/{label-CEq9oqa2.js → label-CpzYUQhx.js} +1 -1
- package/dist/client/assets/{layout-DFoH_xu7.js → layout-DUzsu4c4.js} +1 -1
- package/dist/client/assets/{login-DQ-omlrv.js → login-RKrGsWpi.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DGSZYZtZ.js → mcp-oauth-fsNn1czb.js} +1 -1
- package/dist/client/assets/{members-1vFWUjqy.js → members-BrDpNquF.js} +1 -1
- package/dist/client/assets/{monaco-editor-BIUU4YtT.js → monaco-editor-CMqzV6OC.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Drb7zrQ3.js → monitoring-stats-row-B-2cTzBQ.js} +1 -1
- package/dist/client/assets/{multi-select-CeA0LiDA.js → multi-select-BQDrB1yk.js} +1 -1
- package/dist/client/assets/{oauth-callback-BLBnsV0m.js → oauth-callback-Ba4XCWyw.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-_ZIgbe1k.js → oauth-callback-ai-provider-JZoeFXxW.js} +1 -1
- package/dist/client/assets/{onboarding-DHEpPKxX.js → onboarding-Bk8dPUg3.js} +1 -1
- package/dist/client/assets/{org-layout-CZwey9tp.js → org-layout-Di5sK1cd.js} +1 -1
- package/dist/client/assets/{organization-choice-CinweDu8.js → organization-choice-CHzFbea4.js} +1 -1
- package/dist/client/assets/{orgs-Cewt5f_m.js → orgs-CKI_JjMZ.js} +1 -1
- package/dist/client/assets/{page-seo-form-DCXZwoTq.js → page-seo-form-DC6yxtgW.js} +1 -1
- package/dist/client/assets/{popover-CPDUuAsK.js → popover-3-nXGxsG.js} +1 -1
- package/dist/client/assets/{post-calendar-B2MLz9zN.js → post-calendar-_RxbEjvs.js} +1 -1
- package/dist/client/assets/{post-editor-xPbcpUyS.js → post-editor-htgRFHsC.js} +1 -1
- package/dist/client/assets/{primitives-bdzFl9KQ.js → primitives-By-oabkM.js} +1 -1
- package/dist/client/assets/{profile-DRVuFWo1.js → profile-itQSWHS0.js} +1 -1
- package/dist/client/assets/{project-app-view-C0-tH6m6.js → project-app-view-BtD2dHc2.js} +1 -1
- package/dist/client/assets/{prompts-DHayAFpv.js → prompts-B4jycXmo.js} +1 -1
- package/dist/client/assets/record-editor-DmWjrMIo.js +1 -0
- package/dist/client/assets/{redirect-editor-OElGvzsY.js → redirect-editor-CyQNXT5k.js} +1 -1
- package/dist/client/assets/registry-BokCitrd.js +2 -0
- package/dist/client/assets/{registry-layout-BTzECwAf.js → registry-layout-BjtKfm0C.js} +1 -1
- package/dist/client/assets/{reports-BlhyDDdZ.js → reports-D2AnuGQl.js} +1 -1
- package/dist/client/assets/{require-capability-BJjD7GXa.js → require-capability-DYqEh_0t.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Bi3hMcfQ.js → required-auth-layout-DPe5oune.js} +1 -1
- package/dist/client/assets/{reset-password-BLXOXnD3.js → reset-password-BcbVGV-U.js} +1 -1
- package/dist/client/assets/{review-settings-0bpnzbvB.js → review-settings-DET5Awcp.js} +1 -1
- package/dist/client/assets/{roles-C9DLuLWB.js → roles-Cm1qg0ow.js} +1 -1
- package/dist/client/assets/{scroll-area-Dw0578rC.js → scroll-area-BsxuvxbS.js} +1 -1
- package/dist/client/assets/{search-input-lOvS7ZZY.js → search-input-i6XUS8wH.js} +1 -1
- package/dist/client/assets/{secrets-DEtSas2W.js → secrets-DmB_3wh4.js} +1 -1
- package/dist/client/assets/{sections-editor-DDSHgrQf.js → sections-editor-CQaXh0aN.js} +1 -1
- package/dist/client/assets/{select-W8jorDji.js → select-OkaoLf52.js} +1 -1
- package/dist/client/assets/{select-model-CVJuTB71.js → select-model-DQ1JGbZ1.js} +1 -1
- package/dist/client/assets/{self-tool-result-DYCZ2dxI.js → self-tool-result-_Gq4fS8Q.js} +1 -1
- package/dist/client/assets/{seo-editor-CqSjFrJe.js → seo-editor-D3_wyic8.js} +1 -1
- package/dist/client/assets/{settings-layout-Cj60dDE0.js → settings-layout-ClrVUhfB.js} +1 -1
- package/dist/client/assets/{shell-controls-CcajpdEy.js → shell-controls-DkHGCWDm.js} +1 -1
- package/dist/client/assets/{shell-layout-BbKgiGKQ.js → shell-layout-H_tjyvHd.js} +1 -1
- package/dist/client/assets/{spinner-DEaGcbnH.js → spinner-BNsOVOLB.js} +1 -1
- package/dist/client/assets/{sso-DFyPw3S-.js → sso-CVRSygMq.js} +1 -1
- package/dist/client/assets/{store-B-DY1jsG.js → store-EFK86dJx.js} +1 -1
- package/dist/client/assets/store-registry-CAgXmIVJ.js +2 -0
- package/dist/client/assets/{super-agent-icon-DxowWKwv.js → super-agent-icon-uUxotzmO.js} +1 -1
- package/dist/client/assets/{switch-BsAR0Ue8.js → switch-jAw5NRFm.js} +1 -1
- package/dist/client/assets/{synced-repos-BxJ8BZWX.js → synced-repos-DHWcDJ5i.js} +1 -1
- package/dist/client/assets/{table-RKi74_kY.js → table-DSRHVWxU.js} +1 -1
- package/dist/client/assets/{tabs-DFRRVuh7.js → tabs-CkF_fW0Q.js} +1 -1
- package/dist/client/assets/{task-board-D9PHUZff.js → task-board-DmX2VpFs.js} +1 -1
- package/dist/client/assets/{tasks-CiijDgSs.js → tasks-C6LaWTXG.js} +1 -1
- package/dist/client/assets/{textarea-XbuS70jj.js → textarea-DzCWtryj.js} +1 -1
- package/dist/client/assets/{toggle-group-WZyFFujP.js → toggle-group-hvwloSYQ.js} +1 -1
- package/dist/client/assets/{toolbar-CmaLqa3-.js → toolbar-D9gkmlH9.js} +1 -1
- package/dist/client/assets/{track-BFh4WctH.js → track-CwWn2JFQ.js} +1 -1
- package/dist/client/assets/{types-CrdXjhQP.js → types-D8IG_8eU.js} +1 -1
- package/dist/client/assets/{use-ai-providers-WmO5B1wa.js → use-ai-providers-DZwpIJ4W.js} +1 -1
- package/dist/client/assets/{use-api-keys-CHuWewKt.js → use-api-keys-D39Ow3Yy.js} +1 -1
- package/dist/client/assets/{use-automations-g--nS4Go.js → use-automations-D--Rxx-_.js} +1 -1
- package/dist/client/assets/{use-autosave-BsqWx81g.js → use-autosave-BDzRVdw8.js} +1 -1
- package/dist/client/assets/{use-connection-D8j2CnOC.js → use-connection-tOCjDBfx.js} +1 -1
- package/dist/client/assets/{use-copy-lK-vhEre.js → use-copy-ICpw0Yw-.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bdpos1w0.js → use-create-virtual-mcp-DKiTnBa-.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DsCulVkO.js → use-debounced-autosave-C706dtM7.js} +1 -1
- package/dist/client/assets/{use-debounced-value-D5wCJf5h.js → use-debounced-value-DBMZQqKo.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CEhAvB_E.js → use-decopilot-events-DFaxDB0Z.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BAty9GWK.js → use-delete-connection-DY1dO96h.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CD-qM4Qw.js → use-deployment-admin-CwPi-zHy.js} +1 -1
- package/dist/client/assets/{use-destination-route-BMJNYrmL.js → use-destination-route-C8wZaTLq.js} +1 -1
- package/dist/client/assets/{use-file-configs-CEny8PB8.js → use-file-configs-rXyGhpyn.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DzHJHyr0.js → use-infinite-scroll-BUgjJwY5.js} +1 -1
- package/dist/client/assets/{use-join-requests-z_I5qiFl.js → use-join-requests-CbCMIasb.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-dyqIaOq0.js → use-mcp-auth-status-CyITsP1y.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Bac4vccq.js → use-mcp-client-DHZ5WVmn.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-FenH0JaE.js → use-mcp-tools-C69l20dV.js} +1 -1
- package/dist/client/assets/{use-members-_2HCzEHc.js → use-members-CAd4YLUd.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-yAkGdje4.js → use-navigate-to-agent-BWgdcI3Z.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Cb5lYh1t.js → use-org-auth-client-DPBNI0km.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DbzFw6wJ.js → use-org-repo-syncs-Df_iQEGc.js} +1 -1
- package/dist/client/assets/{use-org-sso-cefqXe6X.js → use-org-sso-Y-cX0M9u.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DA6OSxjH.js → use-organization-roles-Cazh8-rd.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BsgcrCz-.js → use-organization-settings-CGbImq1L.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-C8-xot4V.js → use-panel-navigate-CzBWJmh4.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BoC6e9Ko.js → use-registry-connections--wEDOuCo.js} +1 -1
- package/dist/client/assets/{use-secrets-CNOFekf-.js → use-secrets-BUOK8Q3X.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CFAiIdAN.js → use-section-preview-base-CQ_HgNgO.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CdtGOM4G.js → use-status-sounds-BcDDyChz.js} +1 -1
- package/dist/client/assets/{use-tags-CnmdA4eJ.js → use-tags-DQhkcWVg.js} +1 -1
- package/dist/client/assets/{use-view-mode-DHrNQrCI.js → use-view-mode-DyvonuSr.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-X7MaI4-V.js → use-virtual-mcp-zkag_-cI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CHJpyz-t.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-uqFTRGN7.js +1 -0
- package/dist/client/assets/{users-CNOqKONO.js → users-DBLID0_X.js} +1 -1
- package/dist/client/assets/{variant-calendar-DzbjSxwP.js → variant-calendar-pfbXNZPy.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C_beZllv.js → view-mode-toggle-ChPfg34r.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/record-editor-BabiokFj.js +0 -1
- package/dist/client/assets/registry-Bpp0Gik6.js +0 -2
- package/dist/client/assets/store-registry-CW8CS7Je.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CP11XfQS.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-vPet_vok.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,cA as de,cw as yn,cI as km,dM as Im,aH as Mm,aD as Tm}from"./index-DHLutK6v.js";import{r as Dm}from"./index-pYJ2-T-r.js";function X(e){return function(){return e}}const So=Math.PI,Co=2*So,$t=1e-6,Nm=Co-$t;function rd(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function jm(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return rd;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Rm{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?rd:jm(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>$t)if(!(Math.abs(f*l-s*c)>$t)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,h=i-u,m=l*l+s*s,y=v*v+h*h,g=Math.sqrt(m),x=Math.sqrt(d),b=a*Math.tan((So-Math.acos((m+d-y)/(2*g*x)))/2),w=b/x,P=b/g;Math.abs(w-1)>$t&&this._append`L${t+w*c},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*v>c*h)},${this._x1=t+P*l},${this._y1=r+P*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>$t||Math.abs(this._y1-c)>$t)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%Co+Co),d>Nm?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>$t&&this._append`A${n},${n},0,${+(d>=So)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function nd(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Rm(t)}function fu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function id(e){this._context=e}id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function zi(e){return new id(e)}function ad(e){return e[0]}function od(e){return e[1]}function ud(e,t){var r=X(!0),n=null,i=zi,a=null,o=nd(u);e=typeof e=="function"?e:e===void 0?ad:X(e),t=typeof t=="function"?t:t===void 0?od:X(t);function u(l){var s,c=(l=fu(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:X(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:X(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:X(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function Nn(e,t,r){var n=null,i=X(!0),a=null,o=zi,u=null,l=nd(s);e=typeof e=="function"?e:e===void 0?ad:X(+e),t=typeof t=="function"?t:X(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?od:X(+r);function s(f){var d,v,h,m=(f=fu(f)).length,y,g=!1,x,b=new Array(m),w=new Array(m);for(a==null&&(u=o(x=l())),d=0;d<=m;++d){if(!(d<m&&i(y=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(b[h],w[h]);u.lineEnd(),u.areaEnd()}g&&(b[d]=+e(y,d,f),w[d]=+t(y,d,f),u.point(n?+n(y,d,f):b[d],r?+r(y,d,f):w[d]))}if(x)return u=null,x+""||null}function c(){return ud().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:X(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:X(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:X(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class ld{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function $m(e){return new ld(e,!0)}function Lm(e){return new ld(e,!1)}function Jn(){}function ei(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function sd(e){this._context=e}sd.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:ei(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zm(e){return new sd(e)}function cd(e){this._context=e}cd.prototype={areaStart:Jn,areaEnd:Jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fm(e){return new cd(e)}function fd(e){this._context=e}fd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bm(e){return new fd(e)}function dd(e){this._context=e}dd.prototype={areaStart:Jn,areaEnd:Jn,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 Um(e){return new dd(e)}function $l(e){return e<0?-1:1}function Ll(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return($l(a)+$l(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function zl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Aa(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function ti(e){this._context=e}ti.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:Aa(this,this._t0,zl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Aa(this,zl(this,r=Ll(this,e,t)),r);break;default:Aa(this,this._t0,r=Ll(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function vd(e){this._context=new hd(e)}(vd.prototype=Object.create(ti.prototype)).point=function(e,t){ti.prototype.point.call(this,t,e)};function hd(e){this._context=e}hd.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Wm(e){return new ti(e)}function Km(e){return new vd(e)}function pd(e){this._context=e}pd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Fl(e),i=Fl(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Fl(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qm(e){return new pd(e)}function Fi(e,t){this._context=e,this._t=t}Fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Hm(e){return new Fi(e,.5)}function Vm(e){return new Fi(e,0)}function Ym(e){return new Fi(e,1)}function Ht(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Eo(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Gm(e,t){return e[t]}function Xm(e){const t=[];return t.key=e,t}function Zm(){var e=X([]),t=Eo,r=Ht,n=Gm;function i(a){var o=Array.from(e.apply(this,arguments),Xm),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=fu(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:X(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:X(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Eo:typeof a=="function"?a:X(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ht,i):r},i}function Qm(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ht(e,t)}}function Jm(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Ht(e,t)}}function ey(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var m=e[t[h]],y=m[n][1]||0,g=m[n-1][1]||0;v+=y-g}l+=f,s+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,Ht(e,t)}}function At(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ty(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function du(e){let t,r,n;e.length!==2?(t=At,r=(u,l)=>At(e(u),l),n=(u,l)=>e(u)-l):(t=e===At||e===ty?e:ry,r=e,n=e);function i(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<0?s=f+1:c=f}while(s<c)}return s}function a(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<=0?s=f+1:c=f}while(s<c)}return s}function o(u,l,s=0,c=u.length){const f=i(u,l,s,c-1);return f>s&&n(u[f-1],l)>-n(u[f],l)?f-1:f}return{left:i,center:o,right:a}}function ry(){return 0}function md(e){return e===null?NaN:+e}function*ny(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const iy=du(At),gn=iy.right;du(md).center;class Bl extends Map{constructor(t,r=uy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Ul(this,t))}has(t){return super.has(Ul(this,t))}set(t,r){return super.set(ay(this,t),r)}delete(t){return super.delete(oy(this,t))}}function Ul({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function ay({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function oy({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function uy(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ly(e=At){if(e===At)return yd;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function yd(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const sy=Math.sqrt(50),cy=Math.sqrt(10),fy=Math.sqrt(2);function ri(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=sy?10:a>=cy?5:a>=fy?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),l=Math.round(t*s),u/s<e&&++u,l/s>t&&--l,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),l=Math.round(t/s),u*s<e&&++u,l*s>t&&--l),l<u&&.5<=r&&r<2?ri(e,t,r*2):[u,l,s]}function ko(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ri(t,e,r):ri(e,t,r);if(!(a>=i))return[];const u=a-i+1,l=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)l[s]=(a-s)/-o;else for(let s=0;s<u;++s)l[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)l[s]=(i+s)/-o;else for(let s=0;s<u;++s)l[s]=(i+s)*o;return l}function Io(e,t,r){return t=+t,e=+e,r=+r,ri(e,t,r)[2]}function Mo(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Io(t,e,r):Io(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Wl(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Kl(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function gd(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?yd:ly(i);n>r;){if(n-r>600){const l=n-r+1,s=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),v=Math.max(r,Math.floor(t-s*f/l+d)),h=Math.min(n,Math.floor(t+(l-s)*f/l+d));gd(e,t,v,h,i)}const a=e[t];let o=r,u=n;for(Br(e,r,t),i(e[n],a)>0&&Br(e,r,n);o<u;){for(Br(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Br(e,r,u):(++u,Br(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Br(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function dy(e,t,r){if(e=Float64Array.from(ny(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Kl(e);if(t>=1)return Wl(e);var n,i=(n-1)*t,a=Math.floor(i),o=Wl(gd(e,a).subarray(0,a+1)),u=Kl(e.subarray(a+1));return o+(u-o)*(i-a)}}function vy(e,t,r=md){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function hy(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function $e(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function pt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const To=Symbol("implicit");function vu(){var e=new Bl,t=[],r=[],n=To;function i(a){let o=e.get(a);if(o===void 0){if(n!==To)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Bl;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return vu(t,r).unknown(n)},$e.apply(i,arguments),i}function hu(){var e=vu().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,l=0,s=0,c=.5;delete e.unknown;function f(){var d=t().length,v=i<n,h=v?i:n,m=v?n:i;a=(m-h)/Math.max(1,d-l+s*2),u&&(a=Math.floor(a)),h+=(m-h-a*(d-l))*c,o=a*(1-l),u&&(h=Math.round(h),o=Math.round(o));var y=hy(d).map(function(g){return h+a*g});return r(v?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(l=Math.min(1,s=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(s=+d,f()):s},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return hu(t(),[n,i]).round(u).paddingInner(l).paddingOuter(s).align(c)},$e.apply(f(),arguments)}function bd(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bd(t())},e}function py(){return bd(hu.apply(null,arguments).paddingInner(1))}function pu(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function bn(){}var en=.7,ni=1/en,mr="\\s*([+-]?\\d+)\\s*",tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",my=/^#([0-9a-f]{3,8})$/,yy=new RegExp(`^rgb\\(${mr},${mr},${mr}\\)$`),gy=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),by=new RegExp(`^rgba\\(${mr},${mr},${mr},${tn}\\)$`),wy=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${tn}\\)$`),xy=new RegExp(`^hsl\\(${tn},${Ze},${Ze}\\)$`),Py=new RegExp(`^hsla\\(${tn},${Ze},${Ze},${tn}\\)$`),ql={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};pu(bn,rn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hl,formatHex:Hl,formatHex8:Oy,formatHsl:Ay,formatRgb:Vl,toString:Vl});function Hl(){return this.rgb().formatHex()}function Oy(){return this.rgb().formatHex8()}function Ay(){return xd(this).formatHsl()}function Vl(){return this.rgb().formatRgb()}function rn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=my.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Yl(t):r===3?new Ae(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jn(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=yy.exec(e))?new Ae(t[1],t[2],t[3],1):(t=gy.exec(e))?new Ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=by.exec(e))?jn(t[1],t[2],t[3],t[4]):(t=wy.exec(e))?jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xy.exec(e))?Zl(t[1],t[2]/100,t[3]/100,1):(t=Py.exec(e))?Zl(t[1],t[2]/100,t[3]/100,t[4]):ql.hasOwnProperty(e)?Yl(ql[e]):e==="transparent"?new Ae(NaN,NaN,NaN,0):null}function Yl(e){return new Ae(e>>16&255,e>>8&255,e&255,1)}function jn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ae(e,t,r,n)}function _y(e){return e instanceof bn||(e=rn(e)),e?(e=e.rgb(),new Ae(e.r,e.g,e.b,e.opacity)):new Ae}function Do(e,t,r,n){return arguments.length===1?_y(e):new Ae(e,t,r,n??1)}function Ae(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}pu(Ae,Do,wd(bn,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?en:Math.pow(en,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Ut(this.r),Ut(this.g),Ut(this.b),ii(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:Gl,formatHex:Gl,formatHex8:Sy,formatRgb:Xl,toString:Xl}));function Gl(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}`}function Sy(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}${Ft((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xl(){const e=ii(this.opacity);return`${e===1?"rgb(":"rgba("}${Ut(this.r)}, ${Ut(this.g)}, ${Ut(this.b)}${e===1?")":`, ${e})`}`}function ii(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ft(e){return e=Ut(e),(e<16?"0":"")+e.toString(16)}function Zl(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Be(e,t,r,n)}function xd(e){if(e instanceof Be)return new Be(e.h,e.s,e.l,e.opacity);if(e instanceof bn||(e=rn(e)),!e)return new Be;if(e instanceof Be)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,l=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=l<.5?a+i:2-a-i,o*=60):u=l>0&&l<1?0:o,new Be(o,u,l,e.opacity)}function Cy(e,t,r,n){return arguments.length===1?xd(e):new Be(e,t,r,n??1)}function Be(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}pu(Be,Cy,wd(bn,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?en:Math.pow(en,e),new Be(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ae(_a(e>=240?e-240:e+120,i,n),_a(e,i,n),_a(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Be(Ql(this.h),Rn(this.s),Rn(this.l),ii(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ii(this.opacity);return`${e===1?"hsl(":"hsla("}${Ql(this.h)}, ${Rn(this.s)*100}%, ${Rn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ql(e){return e=(e||0)%360,e<0?e+360:e}function Rn(e){return Math.max(0,Math.min(1,e||0))}function _a(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const mu=e=>()=>e;function Ey(e,t){return function(r){return e+r*t}}function ky(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Iy(e){return(e=+e)==1?Pd:function(t,r){return r-t?ky(t,r,e):mu(isNaN(t)?r:t)}}function Pd(e,t){var r=t-e;return r?Ey(e,r):mu(isNaN(e)?t:e)}const Jl=(function e(t){var r=Iy(t);function n(i,a){var o=r((i=Do(i)).r,(a=Do(a)).r),u=r(i.g,a.g),l=r(i.b,a.b),s=Pd(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=l(c),i.opacity=s(c),i+""}}return n.gamma=e,n})(1);function My(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function Ty(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Dy(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=kr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function Ny(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ai(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function jy(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=kr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var No=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sa=new RegExp(No.source,"g");function Ry(e){return function(){return e}}function $y(e){return function(t){return e(t)+""}}function Ly(e,t){var r=No.lastIndex=Sa.lastIndex=0,n,i,a,o=-1,u=[],l=[];for(e=e+"",t=t+"";(n=No.exec(e))&&(i=Sa.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,l.push({i:o,x:ai(n,i)})),r=Sa.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?l[0]?$y(l[0].x):Ry(t):(t=l.length,function(s){for(var c=0,f;c<t;++c)u[(f=l[c]).i]=f.x(s);return u.join("")})}function kr(e,t){var r=typeof t,n;return t==null||r==="boolean"?mu(t):(r==="number"?ai:r==="string"?(n=rn(t))?(t=n,Jl):Ly:t instanceof rn?Jl:t instanceof Date?Ny:Ty(t)?My:Array.isArray(t)?Dy:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?jy:ai)(e,t)}function yu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function zy(e,t){t===void 0&&(t=e,e=kr);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function Fy(e){return function(){return e}}function oi(e){return+e}var es=[0,1];function be(e){return e}function jo(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Fy(isNaN(t)?NaN:.5)}function By(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Uy(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=jo(i,n),a=r(o,a)):(n=jo(n,i),a=r(a,o)),function(u){return a(n(u))}}function Wy(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=jo(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var l=gn(e,u,1,n)-1;return a[l](i[l](u))}}function wn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bi(){var e=es,t=es,r=kr,n,i,a,o=be,u,l,s;function c(){var d=Math.min(e.length,t.length);return o!==be&&(o=By(e[0],e[d-1])),u=d>2?Wy:Uy,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((s||(s=u(t,e.map(n),ai)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,oi),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=yu,c()},f.clamp=function(d){return arguments.length?(o=d?!0:be,c()):o!==be},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,c()}}function gu(){return Bi()(be,be)}function Ky(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ui(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function br(e){return e=ui(Math.abs(e)),e?e[1]:NaN}function qy(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),a.push(r.substring(i-=u,i+u)),!((l+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Hy(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Vy=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nn(e){if(!(t=Vy.exec(e)))throw new Error("invalid format: "+e);var t;return new bu({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]})}nn.prototype=bu.prototype;function bu(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+""}bu.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 Yy(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var li;function Gy(e,t){var r=ui(e,t);if(!r)return li=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(li=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ui(e,Math.max(0,t+a-1))[0]}function ts(e,t){var r=ui(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const rs={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ky,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)=>ts(e*100,t),r:ts,s:Gy,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ns(e){return e}var is=Array.prototype.map,as=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xy(e){var t=e.grouping===void 0||e.thousands===void 0?ns:qy(is.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ns:Hy(is.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f,d){f=nn(f);var v=f.fill,h=f.align,m=f.sign,y=f.symbol,g=f.zero,x=f.width,b=f.comma,w=f.precision,P=f.trim,O=f.type;O==="n"?(b=!0,O="g"):rs[O]||(w===void 0&&(w=12),P=!0,O="g"),(g||v==="0"&&h==="=")&&(g=!0,v="0",h="=");var S=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),E=(y==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),T=rs[O],I=/[defgprs%]/.test(O);w=w===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(_){var $=S,F=E,V,Pe,ze;if(O==="c")F=T(_)+F,_="";else{_=+_;var ge=_<0||1/_<0;if(_=isNaN(_)?l:T(Math.abs(_),w),P&&(_=Yy(_)),ge&&+_==0&&m!=="+"&&(ge=!1),$=(ge?m==="("?m:u:m==="-"||m==="("?"":m)+$,F=(O==="s"&&!isNaN(_)&&li!==void 0?as[8+li/3]:"")+F+(ge&&m==="("?")":""),I){for(V=-1,Pe=_.length;++V<Pe;)if(ze=_.charCodeAt(V),48>ze||ze>57){F=(ze===46?i+_.slice(V+1):_.slice(V))+F,_=_.slice(0,V);break}}}b&&!g&&(_=t(_,1/0));var pe=$.length+_.length+F.length,J=pe<x?new Array(x-pe+1).join(v):"";switch(b&&g&&(_=t(J+_,J.length?x-F.length:1/0),J=""),h){case"<":_=$+_+F+J;break;case"=":_=$+J+_+F;break;case"^":_=J.slice(0,pe=J.length>>1)+$+_+F+J.slice(pe);break;default:_=J+$+_+F;break}return a(_)}return M.toString=function(){return f+""},M}function c(f,d){var v=Math.max(-8,Math.min(8,Math.floor(br(d)/3)))*3,h=Math.pow(10,-v),m=s((f=nn(f),f.type="f",f),{suffix:as[8+v/3]});return function(y){return m(h*y)}}return{format:s,formatPrefix:c}}var $n,wu,Od;Zy({thousands:",",grouping:[3],currency:["$",""]});function Zy(e){return $n=Xy(e),wu=$n.format,Od=$n.formatPrefix,$n}function Qy(e){return Math.max(0,-br(Math.abs(e)))}function Jy(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(br(t)/3)))*3-br(Math.abs(e)))}function eg(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}function Ad(e,t,r,n){var i=Mo(e,t,r),a;switch(n=nn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Jy(i,o))&&(n.precision=a),Od(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=eg(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Qy(i))&&(n.precision=a-(n.type==="%")*2);break}}return wu(n)}function Et(e){var t=e.domain;return e.ticks=function(r){var n=t();return ko(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Ad(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],l,s,c=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);c-- >0;){if(s=Io(o,u,r),s===l)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function _d(){var e=gu();return e.copy=function(){return wn(e,_d())},$e.apply(e,arguments),Et(e)}function Sd(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,oi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Sd(e).unknown(t)},e=arguments.length?Array.from(e,oi):[0,1],Et(r)}function Cd(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function os(e){return Math.log(e)}function us(e){return Math.exp(e)}function tg(e){return-Math.log(-e)}function rg(e){return-Math.exp(-e)}function ng(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ig(e){return e===10?ng:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ag(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 ls(e){return(t,r)=>-e(-t,r)}function xu(e){const t=e(os,us),r=t.domain;let n=10,i,a;function o(){return i=ag(n),a=ig(n),r()[0]<0?(i=ls(i),a=ls(a),e(tg,rg)):e(os,us),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const l=r();let s=l[0],c=l[l.length-1];const f=c<s;f&&([s,c]=[c,s]);let d=i(s),v=i(c),h,m;const y=u==null?10:+u;let g=[];if(!(n%1)&&v-d<y){if(d=Math.floor(d),v=Math.ceil(v),s>0){for(;d<=v;++d)for(h=1;h<n;++h)if(m=d<0?h/a(-d):h*a(d),!(m<s)){if(m>c)break;g.push(m)}}else for(;d<=v;++d)for(h=n-1;h>=1;--h)if(m=d>0?h/a(-d):h*a(d),!(m<s)){if(m>c)break;g.push(m)}g.length*2<y&&(g=ko(s,c,y))}else g=ko(d,v,Math.min(v-d,y)).map(a);return f?g.reverse():g},t.tickFormat=(u,l)=>{if(u==null&&(u=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=nn(l)).precision==null&&(l.trim=!0),l=wu(l)),u===1/0)return l;const s=Math.max(1,n*u/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=s?l(c):""}},t.nice=()=>r(Cd(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Ed(){const e=xu(Bi()).domain([1,10]);return e.copy=()=>wn(e,Ed()).base(e.base()),$e.apply(e,arguments),e}function ss(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function cs(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Pu(e){var t=1,r=e(ss(t),cs(t));return r.constant=function(n){return arguments.length?e(ss(t=+n),cs(t)):t},Et(r)}function kd(){var e=Pu(Bi());return e.copy=function(){return wn(e,kd()).constant(e.constant())},$e.apply(e,arguments)}function fs(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function og(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ug(e){return e<0?-e*e:e*e}function Ou(e){var t=e(be,be),r=1;function n(){return r===1?e(be,be):r===.5?e(og,ug):e(fs(r),fs(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Et(t)}function Au(){var e=Ou(Bi());return e.copy=function(){return wn(e,Au()).exponent(e.exponent())},$e.apply(e,arguments),e}function lg(){return Au.apply(null,arguments).exponent(.5)}function ds(e){return Math.sign(e)*e*e}function sg(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Id(){var e=gu(),t=[0,1],r=!1,n;function i(a){var o=sg(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(ds(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,oi)).map(ds)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Id(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$e.apply(i,arguments),Et(i)}function Md(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=vy(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[gn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(At),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Md().domain(e).range(t).unknown(n)},$e.apply(a,arguments)}function Td(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[gn(n,l,0,r)]:a}function u(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,u()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,u()):i.slice()},o.invertExtent=function(l){var s=i.indexOf(l);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Td().domain([e,t]).range(i).unknown(a)},$e.apply(Et(o),arguments)}function Dd(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[gn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Dd().domain(e).range(t).unknown(r)},$e.apply(i,arguments)}const Ca=new Date,Ea=new Date;function ne(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return l;let s;do l.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return l},i.filter=a=>ne(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Ca.setTime(+a),Ea.setTime(+o),e(Ca),e(Ea),Math.floor(r(Ca,Ea))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const si=ne(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);si.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ne(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):si);si.range;const lt=1e3,Ne=lt*60,st=Ne*60,ft=st*24,_u=ft*7,vs=ft*30,ka=ft*365,Bt=ne(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCSeconds());Bt.range;const Su=ne(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt)},(e,t)=>{e.setTime(+e+t*Ne)},(e,t)=>(t-e)/Ne,e=>e.getMinutes());Su.range;const Cu=ne(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ne)},(e,t)=>(t-e)/Ne,e=>e.getUTCMinutes());Cu.range;const Eu=ne(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt-e.getMinutes()*Ne)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getHours());Eu.range;const ku=ne(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getUTCHours());ku.range;const xn=ne(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ne)/ft,e=>e.getDate()-1);xn.range;const Ui=ne(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ft,e=>e.getUTCDate()-1);Ui.range;const Nd=ne(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ft,e=>Math.floor(e/ft));Nd.range;function tr(e){return ne(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ne)/_u)}const Wi=tr(0),ci=tr(1),cg=tr(2),fg=tr(3),wr=tr(4),dg=tr(5),vg=tr(6);Wi.range;ci.range;cg.range;fg.range;wr.range;dg.range;vg.range;function rr(e){return ne(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/_u)}const Ki=rr(0),fi=rr(1),hg=rr(2),pg=rr(3),xr=rr(4),mg=rr(5),yg=rr(6);Ki.range;fi.range;hg.range;pg.range;xr.range;mg.range;yg.range;const Iu=ne(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());Iu.range;const Mu=ne(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());Mu.range;const dt=ne(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());dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ne(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});dt.range;const vt=ne(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());vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ne(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});vt.range;function jd(e,t,r,n,i,a){const o=[[Bt,1,lt],[Bt,5,5*lt],[Bt,15,15*lt],[Bt,30,30*lt],[a,1,Ne],[a,5,5*Ne],[a,15,15*Ne],[a,30,30*Ne],[i,1,st],[i,3,3*st],[i,6,6*st],[i,12,12*st],[n,1,ft],[n,2,2*ft],[r,1,_u],[t,1,vs],[t,3,3*vs],[e,1,ka]];function u(s,c,f){const d=c<s;d&&([s,c]=[c,s]);const v=f&&typeof f.range=="function"?f:l(s,c,f),h=v?v.range(s,+c+1):[];return d?h.reverse():h}function l(s,c,f){const d=Math.abs(c-s)/f,v=du(([,,y])=>y).right(o,d);if(v===o.length)return e.every(Mo(s/ka,c/ka,f));if(v===0)return si.every(Math.max(Mo(s,c,f),1));const[h,m]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return h.every(m)}return[u,l]}const[gg,bg]=jd(vt,Mu,Ki,Nd,ku,Cu),[wg,xg]=jd(dt,Iu,Wi,xn,Eu,Su);function Ia(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 Ma(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 Ur(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Pg(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,l=e.shortMonths,s=Wr(i),c=Kr(i),f=Wr(a),d=Kr(a),v=Wr(o),h=Kr(o),m=Wr(u),y=Kr(u),g=Wr(l),x=Kr(l),b={a:ze,A:ge,b:pe,B:J,c:null,d:bs,e:bs,f:qg,g:t0,G:n0,H:Ug,I:Wg,j:Kg,L:Rd,m:Hg,M:Vg,p:Mt,q:Fe,Q:Ps,s:Os,S:Yg,u:Gg,U:Xg,V:Zg,w:Qg,W:Jg,x:null,X:null,y:e0,Y:r0,Z:i0,"%":xs},w={a:Lr,A:zr,b:Fr,B:xa,c:null,d:ws,e:ws,f:l0,g:g0,G:w0,H:a0,I:o0,j:u0,L:Ld,m:s0,M:c0,p:Pa,q:Oa,Q:Ps,s:Os,S:f0,u:d0,U:v0,V:h0,w:p0,W:m0,x:null,X:null,y:y0,Y:b0,Z:x0,"%":xs},P={a:I,A:M,b:_,B:$,c:F,d:ys,e:ys,f:Lg,g:ms,G:ps,H:gs,I:gs,j:Ng,L:$g,m:Dg,M:jg,p:T,q:Tg,Q:Fg,s:Bg,S:Rg,u:Cg,U:Eg,V:kg,w:Sg,W:Ig,x:V,X:Pe,y:ms,Y:ps,Z:Mg,"%":zg};b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w);function O(N,k){return function(B){var C=[],Oe=-1,K=0,Se=N.length,Ce,Tt,Rl;for(B instanceof Date||(B=new Date(+B));++Oe<Se;)N.charCodeAt(Oe)===37&&(C.push(N.slice(K,Oe)),(Tt=hs[Ce=N.charAt(++Oe)])!=null?Ce=N.charAt(++Oe):Tt=Ce==="e"?" ":"0",(Rl=k[Ce])&&(Ce=Rl(B,Tt)),C.push(Ce),K=Oe+1);return C.push(N.slice(K,Oe)),C.join("")}}function S(N,k){return function(B){var C=Ur(1900,void 0,1),Oe=E(C,N,B+="",0),K,Se;if(Oe!=B.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(k&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(K=Ma(Ur(C.y,0,1)),Se=K.getUTCDay(),K=Se>4||Se===0?fi.ceil(K):fi(K),K=Ui.offset(K,(C.V-1)*7),C.y=K.getUTCFullYear(),C.m=K.getUTCMonth(),C.d=K.getUTCDate()+(C.w+6)%7):(K=Ia(Ur(C.y,0,1)),Se=K.getDay(),K=Se>4||Se===0?ci.ceil(K):ci(K),K=xn.offset(K,(C.V-1)*7),C.y=K.getFullYear(),C.m=K.getMonth(),C.d=K.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),Se="Z"in C?Ma(Ur(C.y,0,1)).getUTCDay():Ia(Ur(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(Se+5)%7:C.w+C.U*7-(Se+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Ma(C)):Ia(C)}}function E(N,k,B,C){for(var Oe=0,K=k.length,Se=B.length,Ce,Tt;Oe<K;){if(C>=Se)return-1;if(Ce=k.charCodeAt(Oe++),Ce===37){if(Ce=k.charAt(Oe++),Tt=P[Ce in hs?k.charAt(Oe++):Ce],!Tt||(C=Tt(N,B,C))<0)return-1}else if(Ce!=B.charCodeAt(C++))return-1}return C}function T(N,k,B){var C=s.exec(k.slice(B));return C?(N.p=c.get(C[0].toLowerCase()),B+C[0].length):-1}function I(N,k,B){var C=v.exec(k.slice(B));return C?(N.w=h.get(C[0].toLowerCase()),B+C[0].length):-1}function M(N,k,B){var C=f.exec(k.slice(B));return C?(N.w=d.get(C[0].toLowerCase()),B+C[0].length):-1}function _(N,k,B){var C=g.exec(k.slice(B));return C?(N.m=x.get(C[0].toLowerCase()),B+C[0].length):-1}function $(N,k,B){var C=m.exec(k.slice(B));return C?(N.m=y.get(C[0].toLowerCase()),B+C[0].length):-1}function F(N,k,B){return E(N,t,k,B)}function V(N,k,B){return E(N,r,k,B)}function Pe(N,k,B){return E(N,n,k,B)}function ze(N){return o[N.getDay()]}function ge(N){return a[N.getDay()]}function pe(N){return l[N.getMonth()]}function J(N){return u[N.getMonth()]}function Mt(N){return i[+(N.getHours()>=12)]}function Fe(N){return 1+~~(N.getMonth()/3)}function Lr(N){return o[N.getUTCDay()]}function zr(N){return a[N.getUTCDay()]}function Fr(N){return l[N.getUTCMonth()]}function xa(N){return u[N.getUTCMonth()]}function Pa(N){return i[+(N.getUTCHours()>=12)]}function Oa(N){return 1+~~(N.getUTCMonth()/3)}return{format:function(N){var k=O(N+="",b);return k.toString=function(){return N},k},parse:function(N){var k=S(N+="",!1);return k.toString=function(){return N},k},utcFormat:function(N){var k=O(N+="",w);return k.toString=function(){return N},k},utcParse:function(N){var k=S(N+="",!0);return k.toString=function(){return N},k}}}var hs={"-":"",_:" ",0:"0"},oe=/^\s*\d+/,Og=/^%/,Ag=/[\\^$*+?|[\]().{}]/g;function U(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function _g(e){return e.replace(Ag,"\\$&")}function Wr(e){return new RegExp("^(?:"+e.map(_g).join("|")+")","i")}function Kr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Sg(e,t,r){var n=oe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Cg(e,t,r){var n=oe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Eg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function kg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Ig(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ps(e,t,r){var n=oe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ms(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Mg(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Tg(e,t,r){var n=oe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Dg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ys(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Ng(e,t,r){var n=oe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gs(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function jg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Rg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function $g(e,t,r){var n=oe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Lg(e,t,r){var n=oe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function zg(e,t,r){var n=Og.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Fg(e,t,r){var n=oe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Bg(e,t,r){var n=oe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function bs(e,t){return U(e.getDate(),t,2)}function Ug(e,t){return U(e.getHours(),t,2)}function Wg(e,t){return U(e.getHours()%12||12,t,2)}function Kg(e,t){return U(1+xn.count(dt(e),e),t,3)}function Rd(e,t){return U(e.getMilliseconds(),t,3)}function qg(e,t){return Rd(e,t)+"000"}function Hg(e,t){return U(e.getMonth()+1,t,2)}function Vg(e,t){return U(e.getMinutes(),t,2)}function Yg(e,t){return U(e.getSeconds(),t,2)}function Gg(e){var t=e.getDay();return t===0?7:t}function Xg(e,t){return U(Wi.count(dt(e)-1,e),t,2)}function $d(e){var t=e.getDay();return t>=4||t===0?wr(e):wr.ceil(e)}function Zg(e,t){return e=$d(e),U(wr.count(dt(e),e)+(dt(e).getDay()===4),t,2)}function Qg(e){return e.getDay()}function Jg(e,t){return U(ci.count(dt(e)-1,e),t,2)}function e0(e,t){return U(e.getFullYear()%100,t,2)}function t0(e,t){return e=$d(e),U(e.getFullYear()%100,t,2)}function r0(e,t){return U(e.getFullYear()%1e4,t,4)}function n0(e,t){var r=e.getDay();return e=r>=4||r===0?wr(e):wr.ceil(e),U(e.getFullYear()%1e4,t,4)}function i0(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+U(t/60|0,"0",2)+U(t%60,"0",2)}function ws(e,t){return U(e.getUTCDate(),t,2)}function a0(e,t){return U(e.getUTCHours(),t,2)}function o0(e,t){return U(e.getUTCHours()%12||12,t,2)}function u0(e,t){return U(1+Ui.count(vt(e),e),t,3)}function Ld(e,t){return U(e.getUTCMilliseconds(),t,3)}function l0(e,t){return Ld(e,t)+"000"}function s0(e,t){return U(e.getUTCMonth()+1,t,2)}function c0(e,t){return U(e.getUTCMinutes(),t,2)}function f0(e,t){return U(e.getUTCSeconds(),t,2)}function d0(e){var t=e.getUTCDay();return t===0?7:t}function v0(e,t){return U(Ki.count(vt(e)-1,e),t,2)}function zd(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function h0(e,t){return e=zd(e),U(xr.count(vt(e),e)+(vt(e).getUTCDay()===4),t,2)}function p0(e){return e.getUTCDay()}function m0(e,t){return U(fi.count(vt(e)-1,e),t,2)}function y0(e,t){return U(e.getUTCFullYear()%100,t,2)}function g0(e,t){return e=zd(e),U(e.getUTCFullYear()%100,t,2)}function b0(e,t){return U(e.getUTCFullYear()%1e4,t,4)}function w0(e,t){var r=e.getUTCDay();return e=r>=4||r===0?xr(e):xr.ceil(e),U(e.getUTCFullYear()%1e4,t,4)}function x0(){return"+0000"}function xs(){return"%"}function Ps(e){return+e}function Os(e){return Math.floor(+e/1e3)}var or,Fd,Bd;P0({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 P0(e){return or=Pg(e),Fd=or.format,or.parse,Bd=or.utcFormat,or.utcParse,or}function O0(e){return new Date(e)}function A0(e){return e instanceof Date?+e:+new Date(+e)}function Tu(e,t,r,n,i,a,o,u,l,s){var c=gu(),f=c.invert,d=c.domain,v=s(".%L"),h=s(":%S"),m=s("%I:%M"),y=s("%I %p"),g=s("%a %d"),x=s("%b %d"),b=s("%B"),w=s("%Y");function P(O){return(l(O)<O?v:u(O)<O?h:o(O)<O?m:a(O)<O?y:n(O)<O?i(O)<O?g:x:r(O)<O?b:w)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,A0)):d().map(O0)},c.ticks=function(O){var S=d();return e(S[0],S[S.length-1],O??10)},c.tickFormat=function(O,S){return S==null?P:s(S)},c.nice=function(O){var S=d();return(!O||typeof O.range!="function")&&(O=t(S[0],S[S.length-1],O??10)),O?d(Cd(S,O)):c},c.copy=function(){return wn(c,Tu(e,t,r,n,i,a,o,u,l,s))},c}function _0(){return $e.apply(Tu(wg,xg,dt,Iu,Wi,xn,Eu,Su,Bt,Fd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function S0(){return $e.apply(Tu(gg,bg,vt,Mu,Ki,Ui,ku,Cu,Bt,Bd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function qi(){var e=0,t=1,r,n,i,a,o=be,u=!1,l;function s(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}s.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(f){return arguments.length?(u=!!f,s):u},s.interpolator=function(f){return arguments.length?(o=f,s):o};function c(f){return function(d){var v,h;return arguments.length?([v,h]=d,o=f(v,h),s):[o(0),o(1)]}}return s.range=c(kr),s.rangeRound=c(yu),s.unknown=function(f){return arguments.length?(l=f,s):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),s}}function kt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ud(){var e=Et(qi()(be));return e.copy=function(){return kt(e,Ud())},pt.apply(e,arguments)}function Wd(){var e=xu(qi()).domain([1,10]);return e.copy=function(){return kt(e,Wd()).base(e.base())},pt.apply(e,arguments)}function Kd(){var e=Pu(qi());return e.copy=function(){return kt(e,Kd()).constant(e.constant())},pt.apply(e,arguments)}function Du(){var e=Ou(qi());return e.copy=function(){return kt(e,Du()).exponent(e.exponent())},pt.apply(e,arguments)}function C0(){return Du.apply(null,arguments).exponent(.5)}function qd(){var e=[],t=be;function r(n){if(n!=null&&!isNaN(n=+n))return t((gn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(At),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>dy(e,a/n))},r.copy=function(){return qd(t).domain(e)},pt.apply(r,arguments)}function Hi(){var e=0,t=.5,r=1,n=1,i,a,o,u,l,s=be,c,f=!1,d;function v(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(n*m<n*a?u:l),s(f?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(f=!!m,v):f},v.interpolator=function(m){return arguments.length?(s=m,v):s};function h(m){return function(y){var g,x,b;return arguments.length?([g,x,b]=y,s=zy(m,[g,x,b]),v):[s(0),s(.5),s(1)]}}return v.range=h(kr),v.rangeRound=h(yu),v.unknown=function(m){return arguments.length?(d=m,v):d},function(m){return c=m,i=m(e),a=m(t),o=m(r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function Hd(){var e=Et(Hi()(be));return e.copy=function(){return kt(e,Hd())},pt.apply(e,arguments)}function Vd(){var e=xu(Hi()).domain([.1,1,10]);return e.copy=function(){return kt(e,Vd()).base(e.base())},pt.apply(e,arguments)}function Yd(){var e=Pu(Hi());return e.copy=function(){return kt(e,Yd()).constant(e.constant())},pt.apply(e,arguments)}function Nu(){var e=Ou(Hi());return e.copy=function(){return kt(e,Nu()).exponent(e.exponent())},pt.apply(e,arguments)}function E0(){return Nu.apply(null,arguments).exponent(.5)}var Ir=1e9,k0={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ru,Y=!0,Re="[DecimalError] ",Wt=Re+"Invalid argument: ",ju=Re+"Exponent out of range: ",Mr=Math.floor,Lt=Math.pow,I0=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ee,ie=1e7,q=7,Gd=9007199254740991,di=Mr(Gd/q),D={};D.absoluteValue=D.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};D.comparedTo=D.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};D.decimalPlaces=D.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*q;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};D.dividedBy=D.div=function(e){return ct(this,new this.constructor(e))};D.dividedToIntegerBy=D.idiv=function(e){var t=this,r=t.constructor;return W(ct(t,new r(e),0,1),r.precision)};D.equals=D.eq=function(e){return!this.cmp(e)};D.exponent=function(){return Q(this)};D.greaterThan=D.gt=function(e){return this.cmp(e)>0};D.greaterThanOrEqualTo=D.gte=function(e){return this.cmp(e)>=0};D.isInteger=D.isint=function(){return this.e>this.d.length-2};D.isNegative=D.isneg=function(){return this.s<0};D.isPositive=D.ispos=function(){return this.s>0};D.isZero=function(){return this.s===0};D.lessThan=D.lt=function(e){return this.cmp(e)<0};D.lessThanOrEqualTo=D.lte=function(e){return this.cmp(e)<1};D.logarithm=D.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ee))throw Error(Re+"NaN");if(r.s<1)throw Error(Re+(r.s?"NaN":"-Infinity"));return r.eq(Ee)?new n(0):(Y=!1,t=ct(an(r,a),an(e,a),a),Y=!0,W(t,i))};D.minus=D.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qd(t,e):Xd(t,(e.s=-e.s,e))};D.modulo=D.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Re+"NaN");return r.s?(Y=!1,t=ct(r,e,0,1).times(e),Y=!0,r.minus(t)):W(new n(r),i)};D.naturalExponential=D.exp=function(){return Zd(this)};D.naturalLogarithm=D.ln=function(){return an(this)};D.negated=D.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};D.plus=D.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Xd(t,e):Qd(t,(e.s=-e.s,e))};D.precision=D.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wt+e);if(t=Q(i)+1,n=i.d.length-1,r=n*q+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};D.squareRoot=D.sqrt=function(){var e,t,r,n,i,a,o,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(Re+"NaN")}for(e=Q(u),Y=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Ye(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Mr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(ct(u,a,o+2)).times(.5),Ye(a.d).slice(0,o)===(t=Ye(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(W(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return Y=!0,W(n,r)};D.times=D.mul=function(e){var t,r,n,i,a,o,u,l,s,c=this,f=c.constructor,d=c.d,v=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,s=v.length,l<s&&(a=d,d=v,v=a,o=l,l=s,s=o),a=[],o=l+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=l+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%ie|0,t=u/ie|0;a[i]=(a[i]+t)%ie|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Y?W(e,f.precision):e};D.toDecimalPlaces=D.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Je(e,0,Ir),t===void 0?t=n.rounding:Je(t,0,8),W(r,e+Q(r)+1,t))};D.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Vt(n,!0):(Je(e,0,Ir),t===void 0?t=i.rounding:Je(t,0,8),n=W(new i(n),e+1,t),r=Vt(n,!0,e+1)),r};D.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Vt(i):(Je(e,0,Ir),t===void 0?t=a.rounding:Je(t,0,8),n=W(new a(i),e+Q(i)+1,t),r=Vt(n.abs(),!1,e+Q(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};D.toInteger=D.toint=function(){var e=this,t=e.constructor;return W(new t(e),Q(e)+1,t.rounding)};D.toNumber=function(){return+this};D.toPower=D.pow=function(e){var t,r,n,i,a,o,u=this,l=u.constructor,s=12,c=+(e=new l(e));if(!e.s)return new l(Ee);if(u=new l(u),!u.s){if(e.s<1)throw Error(Re+"Infinity");return u}if(u.eq(Ee))return u;if(n=l.precision,e.eq(Ee))return W(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=c<0?-c:c)<=Gd){for(i=new l(Ee),t=Math.ceil(n/q+4),Y=!1;r%2&&(i=i.times(u),_s(i.d,t)),r=Mr(r/2),r!==0;)u=u.times(u),_s(u.d,t);return Y=!0,e.s<0?new l(Ee).div(i):W(i,n)}}else if(a<0)throw Error(Re+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,Y=!1,i=e.times(an(u,n+s)),Y=!0,i=Zd(i),i.s=a,i};D.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Q(i),n=Vt(i,r<=a.toExpNeg||r>=a.toExpPos)):(Je(e,1,Ir),t===void 0?t=a.rounding:Je(t,0,8),i=W(new a(i),e,t),r=Q(i),n=Vt(i,e<=r||r<=a.toExpNeg,e)),n};D.toSignificantDigits=D.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Je(e,1,Ir),t===void 0?t=n.rounding:Je(t,0,8)),W(new n(r),e,t)};D.toString=D.valueOf=D.val=D.toJSON=D[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Q(e),r=e.constructor;return Vt(e,t<=r.toExpNeg||t>=r.toExpPos)};function Xd(e,t){var r,n,i,a,o,u,l,s,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Y?W(t,f):t;if(l=e.d,s=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,u=s.length):(n=s,i=o,u=l.length),o=Math.ceil(f/q),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=l.length,a=s.length,u-a<0&&(a=u,n=s,s=l,l=n),r=0;a;)r=(l[--a]=l[a]+s[a]+r)/ie|0,l[a]%=ie;for(r&&(l.unshift(r),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,Y?W(t,f):t}function Je(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Wt+e)}function Ye(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=q-n.length,r&&(a+=xt(r)),a+=n;o=e[t],n=o+"",r=q-n.length,r&&(a+=xt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ct=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%ie|0,o=a/ie|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,l;if(a!=o)l=a>o?1:-1;else for(u=l=0;u<a;u++)if(n[u]!=i[u]){l=n[u]>i[u]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ie+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,l,s,c,f,d,v,h,m,y,g,x,b,w,P,O,S,E,T=n.constructor,I=n.s==i.s?1:-1,M=n.d,_=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Re+"Division by zero");for(l=n.e-i.e,S=_.length,P=M.length,v=new T(I),h=v.d=[],s=0;_[s]==(M[s]||0);)++s;if(_[s]>(M[s]||0)&&--l,a==null?x=a=T.precision:o?x=a+(Q(n)-Q(i))+1:x=a,x<0)return new T(0);if(x=x/q+2|0,s=0,S==1)for(c=0,_=_[0],x++;(s<P||c)&&x--;s++)b=c*ie+(M[s]||0),h[s]=b/_|0,c=b%_|0;else{for(c=ie/(_[0]+1)|0,c>1&&(_=e(_,c),M=e(M,c),S=_.length,P=M.length),w=S,m=M.slice(0,S),y=m.length;y<S;)m[y++]=0;E=_.slice(),E.unshift(0),O=_[0],_[1]>=ie/2&&++O;do c=0,u=t(_,m,S,y),u<0?(g=m[0],S!=y&&(g=g*ie+(m[1]||0)),c=g/O|0,c>1?(c>=ie&&(c=ie-1),f=e(_,c),d=f.length,y=m.length,u=t(f,m,d,y),u==1&&(c--,r(f,S<d?E:_,d))):(c==0&&(u=c=1),f=_.slice()),d=f.length,d<y&&f.unshift(0),r(m,f,y),u==-1&&(y=m.length,u=t(_,m,S,y),u<1&&(c++,r(m,S<y?E:_,y))),y=m.length):u===0&&(c++,m=[0]),h[s++]=c,u&&m[0]?m[y++]=M[w]||0:(m=[M[w]],y=1);while((w++<P||m[0]!==void 0)&&x--)}return h[0]||h.shift(),v.e=l,W(v,o?a+Q(v)+1:a)}})();function Zd(e,t){var r,n,i,a,o,u,l=0,s=0,c=e.constructor,f=c.precision;if(Q(e)>16)throw Error(ju+Q(e));if(!e.s)return new c(Ee);for(Y=!1,u=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Lt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new c(Ee),c.precision=u;;){if(i=W(i.times(e),u),r=r.times(++l),o=a.plus(ct(i,r,u)),Ye(o.d).slice(0,u)===Ye(a.d).slice(0,u)){for(;s--;)a=W(a.times(a),u);return c.precision=f,t==null?(Y=!0,W(a,f)):a}a=o}}function Q(e){for(var t=e.e*q,r=e.d[0];r>=10;r/=10)t++;return t}function Ta(e,t,r){if(t>e.LN10.sd())throw Y=!0,r&&(e.precision=r),Error(Re+"LN10 precision limit exceeded");return W(new e(e.LN10),t)}function xt(e){for(var t="";e--;)t+="0";return t}function an(e,t){var r,n,i,a,o,u,l,s,c,f=1,d=10,v=e,h=v.d,m=v.constructor,y=m.precision;if(v.s<1)throw Error(Re+(v.s?"NaN":"-Infinity"));if(v.eq(Ee))return new m(0);if(t==null?(Y=!1,s=y):s=t,v.eq(10))return t==null&&(Y=!0),Ta(m,s);if(s+=d,m.precision=s,r=Ye(h),n=r.charAt(0),a=Q(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=Ye(v.d),n=r.charAt(0),f++;a=Q(v),n>1?(v=new m("0."+r),a++):v=new m(n+"."+r.slice(1))}else return l=Ta(m,s+2,y).times(a+""),v=an(new m(n+"."+r.slice(1)),s-d).plus(l),m.precision=y,t==null?(Y=!0,W(v,y)):v;for(u=o=v=ct(v.minus(Ee),v.plus(Ee),s),c=W(v.times(v),s),i=3;;){if(o=W(o.times(c),s),l=u.plus(ct(o,new m(i),s)),Ye(l.d).slice(0,s)===Ye(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Ta(m,s+2,y).times(a+""))),u=ct(u,new m(f),s),m.precision=y,t==null?(Y=!0,W(u,y)):u;u=l,i+=2}}function As(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Mr(r/q),e.d=[],n=(r+1)%q,r<0&&(n+=q),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=q;n<i;)e.d.push(+t.slice(n,n+=q));t=t.slice(n),n=q-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Y&&(e.e>di||e.e<-di))throw Error(ju+r)}else e.s=0,e.e=0,e.d=[0];return e}function W(e,t,r){var n,i,a,o,u,l,s,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=q,i=t,s=f[c=0];else{if(c=Math.ceil((n+1)/q),a=f.length,c>=a)return e;for(s=a=f[c],o=1;a>=10;a/=10)o++;n%=q,i=n-q+o}if(r!==void 0&&(a=Lt(10,o-i-1),u=s/a%10|0,l=t<0||f[c+1]!==void 0||s%a,l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?i>0?s/Lt(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=Q(e),f.length=1,t=t-a-1,f[0]=Lt(10,(q-t%q)%q),e.e=Mr(-t/q)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Lt(10,q-n),f[c]=i>0?(s/Lt(10,o-i)%Lt(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==ie&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=ie)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Y&&(e.e>di||e.e<-di))throw Error(ju+Q(e));return e}function Qd(e,t){var r,n,i,a,o,u,l,s,c,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Y?W(t,v):t;if(l=e.d,f=t.d,n=t.e,s=e.e,l=l.slice(),o=s-n,o){for(c=o<0,c?(r=l,o=-o,u=f.length):(r=f,n=s,u=l.length),i=Math.max(Math.ceil(v/q),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,u=f.length,c=i<u,c&&(u=i),i=0;i<u;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),u=l.length,i=f.length-u;i>0;--i)l[u++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=ie-1;--l[a],l[i]+=ie}l[i]-=f[i]}for(;l[--u]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Y?W(t,v):t):new d(0)}function Vt(e,t,r){var n,i=Q(e),a=Ye(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+xt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+xt(-i-1)+a,r&&(n=r-o)>0&&(a+=xt(n))):i>=o?(a+=xt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+xt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=xt(n))),e.s<0?"-"+a:a}function _s(e,t){if(e.length>t)return e.length=t,!0}function Jd(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Wt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return As(o,a.toString())}else if(typeof a!="string")throw Error(Wt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,I0.test(a))As(o,a);else throw Error(Wt+a)}if(i.prototype=D,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=Jd,i.config=i.set=M0,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function M0(e){if(!e||typeof e!="object")throw Error(Re+"Object expected");var t,r,n,i=["precision",1,Ir,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Mr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Wt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Wt+r+": "+n);return this}var Ru=Jd(k0);Ee=new Ru(1);const z=Ru;var T0=["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"];function $u(e){if(typeof e!="string")return!1;var t=T0;return t.includes(e)}var D0=["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"],N0=new Set(D0);function ev(e){return typeof e!="string"?!1:N0.has(e)}function tv(e){return typeof e=="string"&&e.startsWith("data-")}function et(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(ev(r)||tv(r))&&(t[r]=e[r]);return t}function Lu(e){if(e==null)return null;if(p.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return et(t)}return typeof e=="object"&&!Array.isArray(e)?et(e):null}function St(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(ev(r)||tv(r)||$u(r))&&(t[r]=e[r]);return t}function j0(e){return e==null?null:p.isValidElement(e)?St(e.props):typeof e=="object"&&!Array.isArray(e)?St(e):null}var R0=["children","width","height","viewBox","className","style","title","desc"];function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ro.apply(null,arguments)}function $0(e,t){if(e==null)return{};var r,n,i=L0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function L0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var rv=p.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=$0(e,R0),f=a||{width:n,height:i,x:0,y:0},d=de("recharts-surface",o);return p.createElement("svg",Ro({},St(c),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),p.createElement("title",null,l),p.createElement("desc",null,s),r)}),z0=["children","className"];function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$o.apply(null,arguments)}function F0(e,t){if(e==null)return{};var r,n,i=B0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function B0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var tt=p.forwardRef((e,t)=>{var{children:r,className:n}=e,i=F0(e,z0),a=de("recharts-layer",n);return p.createElement("g",$o({className:a},St(i),{ref:t}),r)}),U0=p.createContext(null),Da={},Na={},Ss;function W0(){return Ss||(Ss=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Na)),Na}var ja={},Cs;function K0(){return Cs||(Cs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(ja)),ja}var Ra={},Es;function nv(){return Es||(Es=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Ra)),Ra}var $a={},La={},ks;function q0(){return ks||(ks=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(La)),La}var Is;function iv(){return Is||(Is=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q0(),r=nv();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],o=i.length;if(o===0)return a;let u=0,l="",s="",c=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];s?f==="\\"&&u+1<o?(u++,l+=i[u]):f===s?s="":l+=f:c?f==='"'||f==="'"?s=f:f==="]"?(c=!1,a.push(l),l=""):l+=f:f==="["?(c=!0,l&&(a.push(l),l="")):f==="."?l&&(a.push(l),l=""):l+=f,u++}return l&&a.push(l),a}e.toPath=n})($a)),$a}var Ms;function H0(){return Ms||(Ms=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=W0(),r=K0(),n=nv(),i=iv();function a(u,l,s){if(u==null)return s;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?r.isDeepKey(l)?a(u,i.toPath(l),s):s:c}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const c=u[l];return c===void 0?s:c}default:{if(Array.isArray(l))return o(u,l,s);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?s:c}}}function o(u,l,s){if(l.length===0)return s;let c=u;for(let f=0;f<l.length;f++){if(c==null||t.isUnsafeProperty(l[f]))return s;c=c[l[f]]}return c===void 0?s:c}e.get=a})(Da)),Da}var za,Ts;function V0(){return Ts||(Ts=1,za=H0().get),za}var Y0=V0();const Pr=yn(Y0);var G0=4;function av(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G0,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Wk(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+av(u)+a:i+a},"")}var Ge=e=>e===0?0:e>0?1:-1,rt=e=>typeof e=="number"&&e!=+e,Yt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,j=e=>(typeof e=="number"||e instanceof Number)&&!rt(e),Or=e=>j(e)||typeof e=="string",X0=0,on=e=>{var t=++X0;return"".concat(e||"").concat(t)},Gt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!j(t)&&typeof t!="string")return n;var a;if(Yt(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return rt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},ov=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function ur(e,t,r){return j(e)&&j(t)?av(e+r*(t-e)):t}function uv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Pr(n,t))===r)}var ae=e=>e===null||typeof e>"u",zu=e=>ae(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function _e(e){return e!=null}function Tr(){}var Kk=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Fu=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(p.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{$u(i)&&typeof r[i]=="function"&&(n[i]=(a=>r[i](r,a)))}),n},Z0=(e,t,r)=>n=>(e(t,r,n),null),Q0=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];$u(i)&&typeof a=="function"&&(n||(n={}),n[i]=Z0(a,t,r))}),n};function Ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ds(Object(r),!0).forEach(function(n){eb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eb(e,t,r){return(t=tb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tb(e){var t=rb(e,"string");return typeof t=="symbol"?t:t+""}function rb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nr(e,t){var r=J0({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}var Fa={},Ba={},Ns;function nb(){return Ns||(Ns=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Ba)),Ba}var js;function ib(){return js||(js=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nb();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Fa)),Fa}var Ua={},Rs;function ab(){return Rs||(Rs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Ua)),Ua}var Wa={},$s;function ob(){return $s||($s=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(Wa)),Wa}var Ka={},Ls;function ub(){return Ls||(Ls=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(Ka)),Ka}var Bu=p.createContext(null),lb=e=>e,ve=()=>{var e=p.useContext(Bu);return e?e.store.dispatch:lb},Vn=()=>{},sb=()=>Vn,cb=(e,t)=>e===t;function R(e){var t=p.useContext(Bu),r=p.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Vn,[t,e]);return km.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:sb,t?t.store.getState:Vn,t?t.store.getState:Vn,r,cb)}function fb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function db(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function vb(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var zs=e=>Array.isArray(e)?e:[e];function hb(e){const t=Array.isArray(e[0])?e[0]:e;return vb(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function pb(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var mb=class{constructor(e){this.value=e}deref(){return this.value}},yb=typeof WeakRef<"u"?WeakRef:mb,gb=0,Fs=1;function Ln(){return{s:gb,v:void 0,o:null,p:null}}function lv(e,t={}){let r=Ln();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let h=u.o;h===null&&(u.o=h=new WeakMap);const m=h.get(v);m===void 0?(u=Ln(),h.set(v,u)):u=m}else{let h=u.p;h===null&&(u.p=h=new Map);const m=h.get(v);m===void 0?(u=Ln(),h.set(v,u)):u=m}}const s=u;let c;if(u.s===Fs)c=u.v;else if(c=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,c)&&(c=f,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new yb(c):c}return s.s=Fs,s.v=c,c}return o.clearCache=()=>{r=Ln(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function bb(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},s=i.pop();typeof s=="object"&&(l=s,s=i.pop()),fb(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=lv,argsMemoizeOptions:h=[]}=c,m=zs(d),y=zs(h),g=hb(i),x=f(function(){return a++,s.apply(null,arguments)},...m),b=v(function(){o++;const P=pb(g,arguments);return u=x.apply(null,P),u},...y);return Object.assign(b,{resultFunc:s,memoizedResultFunc:x,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var A=bb(lv),wb=Object.assign((e,t=A)=>{db(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>wb}),qa={},Ha={},Va={},Bs;function xb(){return Bs||(Bs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r})(Va)),Va}var Ya={},Ga={},Us;function sv(){return Us||(Us=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Ga)),Ga}var Ws;function Pb(){return Ws||(Ws=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sv(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(Ya)),Ya}var Ks;function Ob(){return Ks||(Ks=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xb(),r=Pb(),n=iv();function i(a,o,u,l){if(a==null)return[];u=l?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const s=(v,h)=>{let m=v;for(let y=0;y<h.length&&m!=null;++y)m=m[h[y]];return m},c=(v,h)=>h==null||v==null?h:typeof v=="object"&&"key"in v?Object.hasOwn(h,v.key)?h[v.key]:s(h,v.path):typeof v=="function"?v(h):Array.isArray(v)?s(h,v):typeof h=="object"?h[v]:h,f=o.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return a.map(v=>({original:v,criteria:f.map(h=>c(h,v))})).slice().sort((v,h)=>{for(let m=0;m<f.length;m++){const y=t.compareValues(v.criteria[m],h.criteria[m],u[m]);if(y!==0)return y}return 0}).map(v=>v.original)}e.orderBy=i})(Ha)),Ha}var Xa={},qs;function Ab(){return qs||(qs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let s=0;s<u.length;s++){const c=u[s];Array.isArray(c)&&l<a?o(c,l+1):i.push(c)}};return o(r,0),i}e.flatten=t})(Xa)),Xa}var Za={},Hs;function cv(){return Hs||(Hs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ub(),r=ib(),n=ab(),i=ob();function a(o,u,l){return n.isObject(l)&&(typeof u=="number"&&r.isArrayLike(l)&&t.isIndex(u)&&u<l.length||typeof u=="string"&&u in l)?i.isEqualsSameValueZero(l[u],o):!1}e.isIterateeCall=a})(Za)),Za}var Vs;function _b(){return Vs||(Vs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ob(),r=Ab(),n=cv();function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(qa)),qa}var Qa,Ys;function Sb(){return Ys||(Ys=1,Qa=_b().sortBy),Qa}var Cb=Sb();const Uu=yn(Cb);var fv=e=>e.legend.settings,Eb=e=>e.legend.size,kb=e=>e.legend.payload;A([kb,fv],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Uu(n,r):n});function ce(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ib=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gs=Ib,Ja=()=>Math.random().toString(36).substring(7).split("").join("."),Mb={INIT:`@@redux/INIT${Ja()}`,REPLACE:`@@redux/REPLACE${Ja()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ja()}`},vi=Mb;function Wu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function dv(e,t,r){if(typeof e!="function")throw new Error(ce(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(dv)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function s(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function c(){if(l)throw new Error(ce(3));return i}function f(y){if(typeof y!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let g=!0;s();const x=u++;return o.set(x,y),function(){if(g){if(l)throw new Error(ce(6));g=!1,s(),o.delete(x),a=null}}}function d(y){if(!Wu(y))throw new Error(ce(7));if(typeof y.type>"u")throw new Error(ce(8));if(typeof y.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(x=>{x()}),y}function v(y){if(typeof y!="function")throw new Error(ce(10));n=y,d({type:vi.REPLACE})}function h(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ce(11));function x(){const w=g;w.next&&w.next(c())}return x(),{unsubscribe:y(x)}},[Gs](){return this}}}return d({type:vi.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:v,[Gs]:h}}function Tb(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:vi.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:vi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function vv(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{Tb(r)}catch(a){i=a}return function(o={},u){if(i)throw i;let l=!1;const s={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],v=o[f],h=d(v,u);if(typeof h>"u")throw u&&u.type,new Error(ce(14));s[f]=h,l=l||h!==v}return l=l||n.length!==Object.keys(o).length,l?s:o}}function hi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Db(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(ce(15))};const o={getState:i.getState,dispatch:(l,...s)=>a(l,...s)},u=e.map(l=>l(o));return a=hi(...u)(i.dispatch),{...i,dispatch:a}}}function hv(e){return Wu(e)&&"type"in e&&typeof e.type=="string"}var pv=Symbol.for("immer-nothing"),Xs=Symbol.for("immer-draftable"),we=Symbol.for("immer-state");function Ue(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ke=Object,Ar=ke.getPrototypeOf,pi="constructor",Vi="prototype",Lo="configurable",mi="enumerable",Yn="writable",un="value",ht=e=>!!e&&!!e[we];function Ke(e){return e?mv(e)||Gi(e)||!!e[Xs]||!!e[pi]?.[Xs]||Xi(e)||Zi(e):!1}var Nb=ke[Vi][pi].toString(),Zs=new WeakMap;function mv(e){if(!e||!Ku(e))return!1;const t=Ar(e);if(t===null||t===ke[Vi])return!0;const r=ke.hasOwnProperty.call(t,pi)&&t[pi];if(r===Object)return!0;if(!dr(r))return!1;let n=Zs.get(r);return n===void 0&&(n=Function.toString.call(r),Zs.set(r,n)),n===Nb}function Yi(e,t,r=!0){Pn(e)===0?(r?Reflect.ownKeys(e):ke.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Pn(e){const t=e[we];return t?t.type_:Gi(e)?1:Xi(e)?2:Zi(e)?3:0}var Qs=(e,t,r=Pn(e))=>r===2?e.has(t):ke[Vi].hasOwnProperty.call(e,t),zo=(e,t,r=Pn(e))=>r===2?e.get(t):e[t],yi=(e,t,r,n=Pn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function jb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Gi=Array.isArray,Xi=e=>e instanceof Map,Zi=e=>e instanceof Set,Ku=e=>typeof e=="object",dr=e=>typeof e=="function",eo=e=>typeof e=="boolean";function Rb(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var ot=e=>e.copy_||e.base_,qu=e=>e.modified_?e.copy_:e.base_;function Fo(e,t){if(Xi(e))return new Map(e);if(Zi(e))return new Set(e);if(Gi(e))return Array[Vi].slice.call(e);const r=mv(e);if(t===!0||t==="class_only"&&!r){const n=ke.getOwnPropertyDescriptors(e);delete n[we];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Yn]===!1&&(u[Yn]=!0,u[Lo]=!0),(u.get||u.set)&&(n[o]={[Lo]:!0,[Yn]:!0,[mi]:u[mi],[un]:e[o]})}return ke.create(Ar(e),n)}else{const n=Ar(e);if(n!==null&&r)return{...e};const i=ke.create(n);return ke.assign(i,e)}}function Hu(e,t=!1){return Qi(e)||ht(e)||!Ke(e)||(Pn(e)>1&&ke.defineProperties(e,{set:zn,add:zn,clear:zn,delete:zn}),ke.freeze(e),t&&Yi(e,(r,n)=>{Hu(n,!0)},!1)),e}function $b(){Ue(2)}var zn={[un]:$b};function Qi(e){return e===null||!Ku(e)?!0:ke.isFrozen(e)}var gi="MapSet",Bo="Patches",Js="ArrayMethods",yv={};function Xt(e){const t=yv[e];return t||Ue(0,e),t}var ec=e=>!!yv[e],ln,gv=()=>ln,Lb=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ec(gi)?Xt(gi):void 0,arrayMethodsPlugin_:ec(Js)?Xt(Js):void 0});function tc(e,t){t&&(e.patchPlugin_=Xt(Bo),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Uo(e){Wo(e),e.drafts_.forEach(zb),e.drafts_=null}function Wo(e){e===ln&&(ln=e.parent_)}var rc=e=>ln=Lb(ln,e);function zb(e){const t=e[we];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[we].modified_&&(Uo(t),Ue(4)),Ke(e)&&(e=ic(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[we].base_,e,t)}else e=ic(t,r);return Fb(t,e,!0),Uo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pv?e:void 0}function ic(e,t){if(Qi(t))return t;const r=t[we];if(!r)return bi(t,e.handledSet_,e);if(!Ji(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);xv(r,e)}return r.copy_}function Fb(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hu(t,r)}function bv(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ji=(e,t)=>e.scope_===t,Bb=[];function wv(e,t,r,n){const i=ot(e),a=e.type_;if(n!==void 0&&zo(i,n,a)===t){yi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Yi(i,(l,s)=>{if(ht(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??Bb;for(const u of o)yi(i,u,r,a)}function Ub(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Ji(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=qu(a);wv(e,a.draft_??a,o,r),xv(a,i)})}function xv(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}bv(e)}}function Wb(e,t,r){const{scope_:n}=e;if(ht(r)){const i=r[we];Ji(i,n)&&i.callbacks_.push(function(){Gn(e);const o=qu(i);wv(e,r,o,t)})}else Ke(r)&&e.callbacks_.push(function(){const a=ot(e);e.type_===3?a.has(r)&&bi(r,n.handledSet_,n):zo(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bi(zo(e.copy_,t,e.type_),n.handledSet_,n)})}function bi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ht(e)||t.has(e)||!Ke(e)||Qi(e)||(t.add(e),Yi(e,(n,i)=>{if(ht(i)){const a=i[we];if(Ji(a,r)){const o=qu(a);yi(e,n,o,e.type_),bv(a)}}else Ke(i)&&bi(i,t,r)})),e}function Kb(e,t){const r=Gi(e),n={type_:r?1:0,scope_:t?t.scope_:gv(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=wi;r&&(i=[n],a=sn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var wi={get(e,t){if(t===we)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=ot(e);if(!Qs(i,t,e.type_))return qb(e,i,t);const a=i[t];if(e.finalized_||!Ke(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Rb(t))return a;if(a===to(e.base_,t)){Gn(e);const o=e.type_===1?+t:t,u=qo(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in ot(e)},ownKeys(e){return Reflect.ownKeys(ot(e))},set(e,t,r){const n=Pv(ot(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=to(ot(e),t),a=i?.[we];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(jb(r,i)&&(r!==void 0||Qs(e.base_,t,e.type_)))return!0;Gn(e),Ko(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Wb(e,t,r)),!0},deleteProperty(e,t){return Gn(e),to(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ko(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ot(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Yn]:!0,[Lo]:e.type_!==1||t!=="length",[mi]:n[mi],[un]:r[t]}},defineProperty(){Ue(11)},getPrototypeOf(e){return Ar(e.base_)},setPrototypeOf(){Ue(12)}},sn={};for(let e in wi){let t=wi[e];sn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}sn.deleteProperty=function(e,t){return sn.set.call(this,e,t,void 0)};sn.set=function(e,t,r){return wi.set.call(this,e[0],t,r,e[0])};function to(e,t){const r=e[we];return(r?ot(r):e)[t]}function qb(e,t,r){const n=Pv(t,r);return n?un in n?n[un]:n.get?.call(e.draft_):void 0}function Pv(e,t){if(!(t in e))return;let r=Ar(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ar(r)}}function Ko(e){e.modified_||(e.modified_=!0,e.parent_&&Ko(e.parent_))}function Gn(e){e.copy_||(e.assigned_=new Map,e.copy_=Fo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Hb=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(dr(r)&&!dr(n)){const o=n;n=r;const u=this;return function(s=o,...c){return u.produce(s,f=>n.call(this,f,...c))}}dr(n)||Ue(6),i!==void 0&&!dr(i)&&Ue(7);let a;if(Ke(r)){const o=rc(this),u=qo(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?Uo(o):Wo(o)}return tc(o,i),nc(a,o)}else if(!r||!Ku(r)){if(a=n(r),a===void 0&&(a=r),a===pv&&(a=void 0),this.autoFreeze_&&Hu(a,!0),i){const o=[],u=[];Xt(Bo).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else Ue(1,r)},this.produceWithPatches=(r,n)=>{if(dr(r))return(u,...l)=>this.produceWithPatches(u,s=>r(s,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},eo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),eo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),eo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ke(t)||Ue(8),ht(t)&&(t=je(t));const r=rc(this),n=qo(r,t,void 0);return n[we].isManual_=!0,Wo(r),n}finishDraft(t,r){const n=t&&t[we];(!n||!n.isManual_)&&Ue(9);const{scope_:i}=n;return tc(i,r),nc(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Xt(Bo).applyPatches_;return ht(t)?i(t,r):this.produce(t,a=>i(a,r))}};function qo(e,t,r,n){const[i,a]=Xi(t)?Xt(gi).proxyMap_(t,r):Zi(t)?Xt(gi).proxySet_(t,r):Kb(t,r);return(r?.scope_??gv()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?Ub(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:s}=l;a.modified_&&s&&s.generatePatches_(a,[],l)}),i}function je(e){return ht(e)||Ue(10,e),Ov(e)}function Ov(e){if(!Ke(e)||Qi(e))return e;const t=e[we];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Fo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Fo(e,!0);return Yi(r,(i,a)=>{yi(r,i,Ov(a))},n),t&&(t.finalized_=!1),r}var Vb=new Hb,Av=Vb.produce;function _v(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var Yb=_v(),Gb=_v,Xb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hi:hi.apply(null,arguments)};function Me(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ie(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>hv(n)&&n.type===e,r}var Sv=class Gr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Gr.prototype)}static get[Symbol.species](){return Gr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Gr(...t[0].concat(this)):new Gr(...t.concat(this))}};function ac(e){return Ke(e)?Av(e,()=>{}):e}function Fn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Zb(e){return typeof e=="boolean"}var Qb=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Sv;return r&&(Zb(r)?o.push(Yb):o.push(Gb(r.extraArgument))),o},Cv="RTK_autoBatch",H=()=>e=>({payload:e,meta:{[Cv]:!0}}),oc=e=>t=>{setTimeout(t,e)},Ev=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:oc(10):e.type==="callback"?e.queueNotification:oc(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[Cv],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},Jb=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Sv(e);return n&&i.push(Ev(typeof n=="object"?n:void 0)),i};function ew(e){const t=Qb(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(Wu(r))u=vv(r);else throw new Error(Ie(1));let l;typeof n=="function"?l=n(t):l=t();let s=hi;i&&(s=Xb({trace:!1,...typeof i=="object"&&i}));const c=Db(...l),f=Jb(c);let d=typeof o=="function"?o(f):f();const v=s(...d);return dv(u,a,v)}function kv(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ie(28));if(u in t)throw new Error(Ie(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function tw(e){return typeof e=="function"}function rw(e,t){let[r,n,i]=kv(t),a;if(tw(e))a=()=>ac(e());else{const u=ac(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if(ht(c)){const v=f(c,l);return v===void 0?c:v}else{if(Ke(c))return Av(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var nw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",iw=(e=21)=>{let t="",r=e;for(;r--;)t+=nw[Math.random()*64|0];return t},aw=Symbol.for("rtk-slice-createasyncthunk");function ow(e,t){return`${e}/${t}`}function uw({creators:e}={}){const t=e?.asyncThunk?.[aw];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Ie(11));const o=(typeof n.reducers=="function"?n.reducers(sw()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(b,w){const P=typeof b=="string"?b:b.type;if(!P)throw new Error(Ie(12));if(P in l.sliceCaseReducersByType)throw new Error(Ie(13));return l.sliceCaseReducersByType[P]=w,s},addMatcher(b,w){return l.sliceMatchers.push({matcher:b,reducer:w}),s},exposeAction(b,w){return l.actionCreators[b]=w,s},exposeCaseReducer(b,w){return l.sliceCaseReducersByName[b]=w,s}};u.forEach(b=>{const w=o[b],P={reducerName:b,type:ow(i,b),createNotation:typeof n.reducers=="function"};fw(w)?vw(P,w,s,t):cw(P,w,s)});function c(){const[b={},w=[],P=void 0]=typeof n.extraReducers=="function"?kv(n.extraReducers):[n.extraReducers],O={...b,...l.sliceCaseReducersByType};return rw(n.initialState,S=>{for(let E in O)S.addCase(E,O[E]);for(let E of l.sliceMatchers)S.addMatcher(E.matcher,E.reducer);for(let E of w)S.addMatcher(E.matcher,E.reducer);P&&S.addDefaultCase(P)})}const f=b=>b,d=new Map,v=new WeakMap;let h;function m(b,w){return h||(h=c()),h(b,w)}function y(){return h||(h=c()),h.getInitialState()}function g(b,w=!1){function P(S){let E=S[b];return typeof E>"u"&&w&&(E=Fn(v,P,y)),E}function O(S=f){const E=Fn(d,w,()=>new WeakMap);return Fn(E,S,()=>{const T={};for(const[I,M]of Object.entries(n.selectors??{}))T[I]=lw(M,S,()=>Fn(v,S,y),w);return T})}return{reducerPath:b,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const x={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...g(a),injectInto(b,{reducerPath:w,...P}={}){const O=w??a;return b.inject({reducerPath:O,reducer:m},P),{...x,...g(O,!0)}}};return x}}function lw(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var ye=uw();function sw(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function cw({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!dw(n))throw new Error(Ie(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Me(e,o):Me(e))}function fw(e){return e._reducerDefinitionType==="asyncThunk"}function dw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function vw({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ie(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||Bn,pending:u||Bn,rejected:l||Bn,settled:s||Bn})}function Bn(){}var hw="task",Iv="listener",Mv="completed",Vu="cancelled",pw=`task-${Vu}`,mw=`task-${Mv}`,Ho=`${Iv}-${Vu}`,yw=`${Iv}-${Mv}`,ea=class{constructor(e){this.code=e,this.message=`${hw} ${Vu} (reason: ${e})`}name="TaskAbortError";message},Yu=(e,t)=>{if(typeof e!="function")throw new TypeError(Ie(32))},xi=()=>{},Tv=(e,t=xi)=>(e.catch(t),e),Dv=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Kt=e=>{if(e.aborted)throw new ea(e.reason)};function Nv(e,t){let r=xi;return new Promise((n,i)=>{const a=()=>i(new ea(e.reason));if(e.aborted){a();return}r=Dv(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=xi})}var gw=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof ea?"cancelled":"rejected",error:r}}finally{t?.()}},Pi=e=>t=>Tv(Nv(e,t).then(r=>(Kt(e),r))),jv=e=>{const t=Pi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:yr}=Object,uc={},ta="listenerMiddleware",bw=(e,t)=>{const r=n=>Dv(e,()=>n.abort(e.reason));return(n,i)=>{Yu(n);const a=new AbortController;r(a);const o=gw(async()=>{Kt(e),Kt(a.signal);const u=await n({pause:Pi(a.signal),delay:jv(a.signal),signal:a.signal});return Kt(a.signal),u},()=>a.abort(mw));return i?.autoJoin&&t.push(o.catch(xi)),{result:Pi(e)(o),cancel(){a.abort(pw)}}}},ww=(e,t)=>{const r=async(n,i)=>{Kt(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Nv(t,Promise.race(u));return Kt(t),l}finally{a()}};return(n,i)=>Tv(r(n,i))},Rv=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Me(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ie(21));return Yu(a),{predicate:i,type:t,effect:a}},$v=yr(e=>{const{type:t,predicate:r,effect:n}=Rv(e);return{id:iw(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ie(22))}}},{withTypes:()=>$v}),lc=(e,t)=>{const{type:r,effect:n,predicate:i}=Rv(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Vo=e=>{e.pending.forEach(t=>{t.abort(Ho)})},xw=(e,t)=>()=>{for(const r of t.keys())Vo(r);e.clear()},sc=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Lv=yr(Me(`${ta}/add`),{withTypes:()=>Lv}),Pw=Me(`${ta}/removeAll`),zv=yr(Me(`${ta}/remove`),{withTypes:()=>zv}),Ow=(...e)=>{console.error(`${ta}/error`,...e)},On=(e={})=>{const t=new Map,r=new Map,n=v=>{const h=r.get(v)??0;r.set(v,h+1)},i=v=>{const h=r.get(v)??1;h===1?r.delete(v):r.set(v,h-1)},{extra:a,onError:o=Ow}=e;Yu(o);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),h=>{v.unsubscribe(),h?.cancelActive&&Vo(v)}),l=v=>{const h=lc(t,v)??$v(v);return u(h)};yr(l,{withTypes:()=>l});const s=v=>{const h=lc(t,v);return h&&(h.unsubscribe(),v.cancelActive&&Vo(h)),!!h};yr(s,{withTypes:()=>s});const c=async(v,h,m,y)=>{const g=new AbortController,x=ww(l,g.signal),b=[];try{v.pending.add(g),n(v),await Promise.resolve(v.effect(h,yr({},m,{getOriginalState:y,condition:(w,P)=>x(w,P).then(Boolean),take:x,delay:jv(g.signal),pause:Pi(g.signal),extra:a,signal:g.signal,fork:bw(g.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((w,P,O)=>{w!==g&&(w.abort(Ho),O.delete(w))})},cancel:()=>{g.abort(Ho),v.pending.delete(g)},throwIfCancelled:()=>{Kt(g.signal)}})))}catch(w){w instanceof ea||sc(o,w,{raisedBy:"effect"})}finally{await Promise.all(b),g.abort(yw),i(v),v.pending.delete(g)}},f=xw(t,r);return{middleware:v=>h=>m=>{if(!hv(m))return h(m);if(Lv.match(m))return l(m.payload);if(Pw.match(m)){f();return}if(zv.match(m))return s(m.payload);let y=v.getState();const g=()=>{if(y===uc)throw new Error(Ie(23));return y};let x;try{if(x=h(m),t.size>0){const b=v.getState(),w=Array.from(t.values());for(const P of w){let O=!1;try{O=P.predicate(m,b,y)}catch(S){O=!1,sc(o,S,{raisedBy:"predicate"})}O&&c(P,m,v,g)}}}finally{y=uc}return x},startListening:l,stopListening:s,clearListeners:f}};function Ie(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Aw={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Fv=ye({name:"chartLayout",initialState:Aw,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:_w,setLayout:Sw,setChartSize:Cw,setScale:Ew}=Fv.actions,kw=Fv.reducer;function Bv(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function L(e){return Number.isFinite(e)}function Ct(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function cc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cc(Object(r),!0).forEach(function(n){Iw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iw(e,t,r){return(t=Mw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=Tw(e,"string");return typeof t=="symbol"?t:t+""}function Tw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function re(e,t,r){return ae(e)||ae(t)?r:Or(t)?Pr(e,t,r):typeof t=="function"?t(e):r}var Dw=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&j(e[a]))return vr(vr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&j(e[o]))return vr(vr({},e),{},{[o]:e[o]+(i||0)})}return e},it=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Hk=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Vk=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:c,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var h=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/h:0;if(m=v==="angleAxis"&&a&&a.length>=2?Ge(a[0]-a[1])*2*m:m,f||d){var y=(f||d||[]).map((g,x)=>{var b=n?n.indexOf(g):g,w=o.map(b);return L(w)?{coordinate:w+m,value:g,offset:m,index:x}:null}).filter(_e);return y}return l&&s?s.map((g,x)=>{var b=o.map(g);return L(b)?{coordinate:b+m,value:g,index:x,offset:m}:null}).filter(_e):o.ticks&&c!=null?o.ticks(c).map((g,x)=>{var b=o.map(g);return L(b)?{coordinate:b+m,value:g,index:x,offset:m}:null}).filter(_e):o.domain().map((g,x)=>{var b=o.map(g);return L(b)?{coordinate:b+m,value:n?n[g]:g,index:x,offset:m}:null}).filter(_e)},Yk=(e,t)=>{if(!t||t.length!==2||!j(t[0])||!j(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!j(e[0])||e[0]<r)&&(i[0]=r),(!j(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Nw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var l=e[u],s=l?.[i];if(s!=null){var c=s[1],f=s[0],d=rt(c)?f:c;d>=0?(s[0]=a,a+=d,s[1]=a):(s[0]=o,o+=d,s[1]=o)}}}},jw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],l=u?.[i];if(l!=null){var s=rt(l[1])?l[0]:l[1];s>=0?(l[0]=a,a+=s,l[1]=a):(l[0]=0,l[1]=0)}}}},Rw={sign:Nw,expand:Qm,none:Ht,silhouette:Jm,wiggle:ey,positive:jw},$w=(e,t,r)=>{var n,i=(n=Rw[r])!==null&&n!==void 0?n:Ht,a=Zm().keys(t).value((u,l)=>Number(re(u,l,0))).order(Eo).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((s,c)=>{var f=re(e[c],t[l],0);Array.isArray(f)&&f.length===2&&j(f[0])&&j(f[1])&&(s[0]=f[0],s[1]=f[1])})}),o};function Lw(e){return e==null?void 0:String(e)}function fc(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ae(i[t.dataKey])){var u=uv(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=re(i,ae(o)?t.dataKey:o),s=t.scale.map(l);return j(s)?s:null}var Gk=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=re(a,t.dataKey,t.scale.domain()[o]);if(ae(u))return null;var l=t.scale.map(u);return j(l)?l-i/2+n:null},Xk=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},zw=e=>{var t=e.flat(2).filter(j);return[Math.min(...t),Math.max(...t)]},Fw=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Bw=(e,t,r)=>{if(e!=null)return Fw(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,s)=>{var c=Bv(s,t,r),f=zw(c);return!L(f[0])||!L(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},dc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vc=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hc=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Uu(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],s=i[o-1];a=Math.min((l?.coordinate||0)-(s?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function pc(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return vr(vr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Uv(e,t){if(e)return String(e);if(typeof t=="string")return t}var Uw=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Ww=(e,t)=>t==="centric"?e.angle:e.radius,mt=e=>e.layout.width,yt=e=>e.layout.height,Kw=e=>e.layout.scale,Wv=e=>e.layout.margin,ra=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),na=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),qw="data-recharts-item-index",Hw="data-recharts-item-id",An=60;function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mc(Object(r),!0).forEach(function(n){Vw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vw(e,t,r){return(t=Yw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=Gw(e,"string");return typeof t=="symbol"?t:t+""}function Gw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xw=e=>e.brush.height;function Zw(e){var t=na(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:An;return r+i}return r},0)}function Qw(e){var t=na(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:An;return r+i}return r},0)}function Jw(e){var t=ra(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function ex(e){var t=ra(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var he=A([mt,yt,Wv,Xw,Zw,Qw,Jw,ex,fv,Eb],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=Un(Un({},f),c),v=d.bottom;d.bottom+=n,d=Dw(d,l,s);var h=e-d.left-d.right,m=t-d.top-d.bottom;return Un(Un({brushBottom:v},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),tx=A(he,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),rx=A(mt,yt,(e,t)=>({x:0,y:0,width:e,height:t})),nx=p.createContext(null),Le=()=>p.useContext(nx)!=null,ia=e=>e.brush,aa=A([ia,he,Wv],(e,t,r)=>({height:e.height,x:j(e.x)?e.x:t.left,y:j(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:j(e.width)?e.width:t.width})),ro={},no={},io={},yc;function ix(){return yc||(yc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const l=a!=null&&a.includes("leading"),s=a==null||a.includes("trailing"),c=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{s&&c(),m()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},h=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{h(),o=void 0,u=null},y=()=>{c()},g=function(...x){if(i?.aborted)return;o=this,u=x;const b=d==null;v(),l&&b&&c()};return g.schedule=v,g.cancel=m,g.flush=y,i?.addEventListener("abort",m,{once:!0}),g}e.debounce=t})(io)),io}var gc;function ax(){return gc||(gc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ix();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:l}=a,s=Array(2);o&&(s[0]="leading"),u&&(s[1]="trailing");let c,f=null;const d=t.debounce(function(...m){c=n.apply(this,m),f=null},i,{edges:s}),v=function(...m){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(c=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),c):(d.apply(this,m),c)},h=()=>(d.flush(),c);return v.cancel=d.cancel,v.flush=h,v}e.debounce=r})(no)),no}var bc;function ox(){return bc||(bc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ax();function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r})(ro)),ro}var ao,wc;function ux(){return wc||(wc=1,ao=ox().throttle),ao}var lx=ux();const sx=yn(lx);var xc=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},Xe={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Kv=(e,t,r)=>{var{width:n=Xe.width,height:i=Xe.height,aspect:a,maxHeight:o}=r,u=Yt(n)?e:Number(n),l=Yt(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},cx={width:0,height:0,overflow:"visible"},fx={width:0,overflowX:"visible"},dx={height:0,overflowY:"visible"},vx={},hx=e=>{var{width:t,height:r}=e,n=Yt(t),i=Yt(r);return n&&i?cx:n?fx:i?dx:vx};function px(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Xe.width,a=Xe.height):i===void 0?i=n&&n>0?void 0:Xe.width:a===void 0&&(a=n&&n>0?void 0:Xe.height),{width:i,height:a}}function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yo.apply(null,arguments)}function Pc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pc(Object(r),!0).forEach(function(n){mx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mx(e,t,r){return(t=yx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yx(e){var t=gx(e,"string");return typeof t=="symbol"?t:t+""}function gx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qv=p.createContext(Xe.initialDimension);function bx(e){return Ct(e.width)&&Ct(e.height)}function Hv(e){var{children:t,width:r,height:n}=e,i=p.useMemo(()=>({width:r,height:n}),[r,n]);return bx(i)?p.createElement(qv.Provider,{value:i},t):null}var Gu=()=>p.useContext(qv),wx=p.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Xe.initialDimension,width:i,height:a,minWidth:o=Xe.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=Xe.debounce,id:f,className:d,onResize:v,style:h={}}=e,m=p.useRef(null),y=p.useRef();y.current=v,p.useImperativeHandle(t,()=>m.current);var[g,x]=p.useState({containerWidth:n.width,containerHeight:n.height}),b=p.useCallback((E,T)=>{x(I=>{var M=Math.round(E),_=Math.round(T);return I.containerWidth===M&&I.containerHeight===_?I:{containerWidth:M,containerHeight:_}})},[]);p.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Tr;var E=_=>{var $,F=_[0];if(F!=null){var{width:V,height:Pe}=F.contentRect;b(V,Pe),($=y.current)===null||$===void 0||$.call(y,V,Pe)}};c>0&&(E=sx(E,c,{trailing:!0,leading:!1}));var T=new ResizeObserver(E),{width:I,height:M}=m.current.getBoundingClientRect();return b(I,M),T.observe(m.current),()=>{T.disconnect()}},[b,c]);var{containerWidth:w,containerHeight:P}=g;xc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=Kv(w,P,{width:i,height:a,aspect:r,maxHeight:l});return xc(O!=null&&O>0||S!=null&&S>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
1
|
+
import{r as p,cA as de,cw as yn,cI as km,dM as Im,aH as Mm,aD as Tm}from"./index-BWXyDl1J.js";import{r as Dm}from"./index-BXn0NwIo.js";function X(e){return function(){return e}}const So=Math.PI,Co=2*So,$t=1e-6,Nm=Co-$t;function rd(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function jm(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return rd;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Rm{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?rd:jm(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>$t)if(!(Math.abs(f*l-s*c)>$t)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,h=i-u,m=l*l+s*s,y=v*v+h*h,g=Math.sqrt(m),x=Math.sqrt(d),b=a*Math.tan((So-Math.acos((m+d-y)/(2*g*x)))/2),w=b/x,P=b/g;Math.abs(w-1)>$t&&this._append`L${t+w*c},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*v>c*h)},${this._x1=t+P*l},${this._y1=r+P*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>$t||Math.abs(this._y1-c)>$t)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%Co+Co),d>Nm?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>$t&&this._append`A${n},${n},0,${+(d>=So)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function nd(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Rm(t)}function fu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function id(e){this._context=e}id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function zi(e){return new id(e)}function ad(e){return e[0]}function od(e){return e[1]}function ud(e,t){var r=X(!0),n=null,i=zi,a=null,o=nd(u);e=typeof e=="function"?e:e===void 0?ad:X(e),t=typeof t=="function"?t:t===void 0?od:X(t);function u(l){var s,c=(l=fu(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:X(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:X(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:X(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function Nn(e,t,r){var n=null,i=X(!0),a=null,o=zi,u=null,l=nd(s);e=typeof e=="function"?e:e===void 0?ad:X(+e),t=typeof t=="function"?t:X(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?od:X(+r);function s(f){var d,v,h,m=(f=fu(f)).length,y,g=!1,x,b=new Array(m),w=new Array(m);for(a==null&&(u=o(x=l())),d=0;d<=m;++d){if(!(d<m&&i(y=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(b[h],w[h]);u.lineEnd(),u.areaEnd()}g&&(b[d]=+e(y,d,f),w[d]=+t(y,d,f),u.point(n?+n(y,d,f):b[d],r?+r(y,d,f):w[d]))}if(x)return u=null,x+""||null}function c(){return ud().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:X(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:X(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:X(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class ld{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function $m(e){return new ld(e,!0)}function Lm(e){return new ld(e,!1)}function Jn(){}function ei(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function sd(e){this._context=e}sd.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:ei(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zm(e){return new sd(e)}function cd(e){this._context=e}cd.prototype={areaStart:Jn,areaEnd:Jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fm(e){return new cd(e)}function fd(e){this._context=e}fd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bm(e){return new fd(e)}function dd(e){this._context=e}dd.prototype={areaStart:Jn,areaEnd:Jn,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 Um(e){return new dd(e)}function $l(e){return e<0?-1:1}function Ll(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return($l(a)+$l(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function zl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Aa(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function ti(e){this._context=e}ti.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:Aa(this,this._t0,zl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Aa(this,zl(this,r=Ll(this,e,t)),r);break;default:Aa(this,this._t0,r=Ll(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function vd(e){this._context=new hd(e)}(vd.prototype=Object.create(ti.prototype)).point=function(e,t){ti.prototype.point.call(this,t,e)};function hd(e){this._context=e}hd.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Wm(e){return new ti(e)}function Km(e){return new vd(e)}function pd(e){this._context=e}pd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Fl(e),i=Fl(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Fl(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qm(e){return new pd(e)}function Fi(e,t){this._context=e,this._t=t}Fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Hm(e){return new Fi(e,.5)}function Vm(e){return new Fi(e,0)}function Ym(e){return new Fi(e,1)}function Ht(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Eo(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Gm(e,t){return e[t]}function Xm(e){const t=[];return t.key=e,t}function Zm(){var e=X([]),t=Eo,r=Ht,n=Gm;function i(a){var o=Array.from(e.apply(this,arguments),Xm),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=fu(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:X(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:X(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Eo:typeof a=="function"?a:X(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ht,i):r},i}function Qm(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ht(e,t)}}function Jm(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Ht(e,t)}}function ey(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var m=e[t[h]],y=m[n][1]||0,g=m[n-1][1]||0;v+=y-g}l+=f,s+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,Ht(e,t)}}function At(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ty(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function du(e){let t,r,n;e.length!==2?(t=At,r=(u,l)=>At(e(u),l),n=(u,l)=>e(u)-l):(t=e===At||e===ty?e:ry,r=e,n=e);function i(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<0?s=f+1:c=f}while(s<c)}return s}function a(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<=0?s=f+1:c=f}while(s<c)}return s}function o(u,l,s=0,c=u.length){const f=i(u,l,s,c-1);return f>s&&n(u[f-1],l)>-n(u[f],l)?f-1:f}return{left:i,center:o,right:a}}function ry(){return 0}function md(e){return e===null?NaN:+e}function*ny(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const iy=du(At),gn=iy.right;du(md).center;class Bl extends Map{constructor(t,r=uy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Ul(this,t))}has(t){return super.has(Ul(this,t))}set(t,r){return super.set(ay(this,t),r)}delete(t){return super.delete(oy(this,t))}}function Ul({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function ay({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function oy({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function uy(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ly(e=At){if(e===At)return yd;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function yd(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const sy=Math.sqrt(50),cy=Math.sqrt(10),fy=Math.sqrt(2);function ri(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=sy?10:a>=cy?5:a>=fy?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),l=Math.round(t*s),u/s<e&&++u,l/s>t&&--l,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),l=Math.round(t/s),u*s<e&&++u,l*s>t&&--l),l<u&&.5<=r&&r<2?ri(e,t,r*2):[u,l,s]}function ko(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ri(t,e,r):ri(e,t,r);if(!(a>=i))return[];const u=a-i+1,l=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)l[s]=(a-s)/-o;else for(let s=0;s<u;++s)l[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)l[s]=(i+s)/-o;else for(let s=0;s<u;++s)l[s]=(i+s)*o;return l}function Io(e,t,r){return t=+t,e=+e,r=+r,ri(e,t,r)[2]}function Mo(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Io(t,e,r):Io(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Wl(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Kl(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function gd(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?yd:ly(i);n>r;){if(n-r>600){const l=n-r+1,s=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),v=Math.max(r,Math.floor(t-s*f/l+d)),h=Math.min(n,Math.floor(t+(l-s)*f/l+d));gd(e,t,v,h,i)}const a=e[t];let o=r,u=n;for(Br(e,r,t),i(e[n],a)>0&&Br(e,r,n);o<u;){for(Br(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Br(e,r,u):(++u,Br(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Br(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function dy(e,t,r){if(e=Float64Array.from(ny(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Kl(e);if(t>=1)return Wl(e);var n,i=(n-1)*t,a=Math.floor(i),o=Wl(gd(e,a).subarray(0,a+1)),u=Kl(e.subarray(a+1));return o+(u-o)*(i-a)}}function vy(e,t,r=md){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function hy(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function $e(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function pt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const To=Symbol("implicit");function vu(){var e=new Bl,t=[],r=[],n=To;function i(a){let o=e.get(a);if(o===void 0){if(n!==To)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Bl;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return vu(t,r).unknown(n)},$e.apply(i,arguments),i}function hu(){var e=vu().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,l=0,s=0,c=.5;delete e.unknown;function f(){var d=t().length,v=i<n,h=v?i:n,m=v?n:i;a=(m-h)/Math.max(1,d-l+s*2),u&&(a=Math.floor(a)),h+=(m-h-a*(d-l))*c,o=a*(1-l),u&&(h=Math.round(h),o=Math.round(o));var y=hy(d).map(function(g){return h+a*g});return r(v?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(l=Math.min(1,s=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(s=+d,f()):s},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return hu(t(),[n,i]).round(u).paddingInner(l).paddingOuter(s).align(c)},$e.apply(f(),arguments)}function bd(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bd(t())},e}function py(){return bd(hu.apply(null,arguments).paddingInner(1))}function pu(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function bn(){}var en=.7,ni=1/en,mr="\\s*([+-]?\\d+)\\s*",tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",my=/^#([0-9a-f]{3,8})$/,yy=new RegExp(`^rgb\\(${mr},${mr},${mr}\\)$`),gy=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),by=new RegExp(`^rgba\\(${mr},${mr},${mr},${tn}\\)$`),wy=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${tn}\\)$`),xy=new RegExp(`^hsl\\(${tn},${Ze},${Ze}\\)$`),Py=new RegExp(`^hsla\\(${tn},${Ze},${Ze},${tn}\\)$`),ql={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};pu(bn,rn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hl,formatHex:Hl,formatHex8:Oy,formatHsl:Ay,formatRgb:Vl,toString:Vl});function Hl(){return this.rgb().formatHex()}function Oy(){return this.rgb().formatHex8()}function Ay(){return xd(this).formatHsl()}function Vl(){return this.rgb().formatRgb()}function rn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=my.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Yl(t):r===3?new Ae(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jn(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=yy.exec(e))?new Ae(t[1],t[2],t[3],1):(t=gy.exec(e))?new Ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=by.exec(e))?jn(t[1],t[2],t[3],t[4]):(t=wy.exec(e))?jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xy.exec(e))?Zl(t[1],t[2]/100,t[3]/100,1):(t=Py.exec(e))?Zl(t[1],t[2]/100,t[3]/100,t[4]):ql.hasOwnProperty(e)?Yl(ql[e]):e==="transparent"?new Ae(NaN,NaN,NaN,0):null}function Yl(e){return new Ae(e>>16&255,e>>8&255,e&255,1)}function jn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ae(e,t,r,n)}function _y(e){return e instanceof bn||(e=rn(e)),e?(e=e.rgb(),new Ae(e.r,e.g,e.b,e.opacity)):new Ae}function Do(e,t,r,n){return arguments.length===1?_y(e):new Ae(e,t,r,n??1)}function Ae(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}pu(Ae,Do,wd(bn,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?en:Math.pow(en,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Ut(this.r),Ut(this.g),Ut(this.b),ii(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:Gl,formatHex:Gl,formatHex8:Sy,formatRgb:Xl,toString:Xl}));function Gl(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}`}function Sy(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}${Ft((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xl(){const e=ii(this.opacity);return`${e===1?"rgb(":"rgba("}${Ut(this.r)}, ${Ut(this.g)}, ${Ut(this.b)}${e===1?")":`, ${e})`}`}function ii(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ft(e){return e=Ut(e),(e<16?"0":"")+e.toString(16)}function Zl(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Be(e,t,r,n)}function xd(e){if(e instanceof Be)return new Be(e.h,e.s,e.l,e.opacity);if(e instanceof bn||(e=rn(e)),!e)return new Be;if(e instanceof Be)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,l=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=l<.5?a+i:2-a-i,o*=60):u=l>0&&l<1?0:o,new Be(o,u,l,e.opacity)}function Cy(e,t,r,n){return arguments.length===1?xd(e):new Be(e,t,r,n??1)}function Be(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}pu(Be,Cy,wd(bn,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?en:Math.pow(en,e),new Be(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ae(_a(e>=240?e-240:e+120,i,n),_a(e,i,n),_a(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Be(Ql(this.h),Rn(this.s),Rn(this.l),ii(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ii(this.opacity);return`${e===1?"hsl(":"hsla("}${Ql(this.h)}, ${Rn(this.s)*100}%, ${Rn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ql(e){return e=(e||0)%360,e<0?e+360:e}function Rn(e){return Math.max(0,Math.min(1,e||0))}function _a(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const mu=e=>()=>e;function Ey(e,t){return function(r){return e+r*t}}function ky(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Iy(e){return(e=+e)==1?Pd:function(t,r){return r-t?ky(t,r,e):mu(isNaN(t)?r:t)}}function Pd(e,t){var r=t-e;return r?Ey(e,r):mu(isNaN(e)?t:e)}const Jl=(function e(t){var r=Iy(t);function n(i,a){var o=r((i=Do(i)).r,(a=Do(a)).r),u=r(i.g,a.g),l=r(i.b,a.b),s=Pd(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=l(c),i.opacity=s(c),i+""}}return n.gamma=e,n})(1);function My(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function Ty(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Dy(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=kr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function Ny(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ai(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function jy(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=kr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var No=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sa=new RegExp(No.source,"g");function Ry(e){return function(){return e}}function $y(e){return function(t){return e(t)+""}}function Ly(e,t){var r=No.lastIndex=Sa.lastIndex=0,n,i,a,o=-1,u=[],l=[];for(e=e+"",t=t+"";(n=No.exec(e))&&(i=Sa.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,l.push({i:o,x:ai(n,i)})),r=Sa.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?l[0]?$y(l[0].x):Ry(t):(t=l.length,function(s){for(var c=0,f;c<t;++c)u[(f=l[c]).i]=f.x(s);return u.join("")})}function kr(e,t){var r=typeof t,n;return t==null||r==="boolean"?mu(t):(r==="number"?ai:r==="string"?(n=rn(t))?(t=n,Jl):Ly:t instanceof rn?Jl:t instanceof Date?Ny:Ty(t)?My:Array.isArray(t)?Dy:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?jy:ai)(e,t)}function yu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function zy(e,t){t===void 0&&(t=e,e=kr);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function Fy(e){return function(){return e}}function oi(e){return+e}var es=[0,1];function be(e){return e}function jo(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Fy(isNaN(t)?NaN:.5)}function By(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Uy(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=jo(i,n),a=r(o,a)):(n=jo(n,i),a=r(a,o)),function(u){return a(n(u))}}function Wy(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=jo(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var l=gn(e,u,1,n)-1;return a[l](i[l](u))}}function wn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bi(){var e=es,t=es,r=kr,n,i,a,o=be,u,l,s;function c(){var d=Math.min(e.length,t.length);return o!==be&&(o=By(e[0],e[d-1])),u=d>2?Wy:Uy,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((s||(s=u(t,e.map(n),ai)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,oi),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=yu,c()},f.clamp=function(d){return arguments.length?(o=d?!0:be,c()):o!==be},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,c()}}function gu(){return Bi()(be,be)}function Ky(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ui(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function br(e){return e=ui(Math.abs(e)),e?e[1]:NaN}function qy(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),a.push(r.substring(i-=u,i+u)),!((l+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Hy(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Vy=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nn(e){if(!(t=Vy.exec(e)))throw new Error("invalid format: "+e);var t;return new bu({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]})}nn.prototype=bu.prototype;function bu(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+""}bu.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 Yy(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var li;function Gy(e,t){var r=ui(e,t);if(!r)return li=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(li=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ui(e,Math.max(0,t+a-1))[0]}function ts(e,t){var r=ui(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const rs={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ky,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)=>ts(e*100,t),r:ts,s:Gy,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ns(e){return e}var is=Array.prototype.map,as=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xy(e){var t=e.grouping===void 0||e.thousands===void 0?ns:qy(is.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ns:Hy(is.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f,d){f=nn(f);var v=f.fill,h=f.align,m=f.sign,y=f.symbol,g=f.zero,x=f.width,b=f.comma,w=f.precision,P=f.trim,O=f.type;O==="n"?(b=!0,O="g"):rs[O]||(w===void 0&&(w=12),P=!0,O="g"),(g||v==="0"&&h==="=")&&(g=!0,v="0",h="=");var S=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),E=(y==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),T=rs[O],I=/[defgprs%]/.test(O);w=w===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(_){var $=S,F=E,V,Pe,ze;if(O==="c")F=T(_)+F,_="";else{_=+_;var ge=_<0||1/_<0;if(_=isNaN(_)?l:T(Math.abs(_),w),P&&(_=Yy(_)),ge&&+_==0&&m!=="+"&&(ge=!1),$=(ge?m==="("?m:u:m==="-"||m==="("?"":m)+$,F=(O==="s"&&!isNaN(_)&&li!==void 0?as[8+li/3]:"")+F+(ge&&m==="("?")":""),I){for(V=-1,Pe=_.length;++V<Pe;)if(ze=_.charCodeAt(V),48>ze||ze>57){F=(ze===46?i+_.slice(V+1):_.slice(V))+F,_=_.slice(0,V);break}}}b&&!g&&(_=t(_,1/0));var pe=$.length+_.length+F.length,J=pe<x?new Array(x-pe+1).join(v):"";switch(b&&g&&(_=t(J+_,J.length?x-F.length:1/0),J=""),h){case"<":_=$+_+F+J;break;case"=":_=$+J+_+F;break;case"^":_=J.slice(0,pe=J.length>>1)+$+_+F+J.slice(pe);break;default:_=J+$+_+F;break}return a(_)}return M.toString=function(){return f+""},M}function c(f,d){var v=Math.max(-8,Math.min(8,Math.floor(br(d)/3)))*3,h=Math.pow(10,-v),m=s((f=nn(f),f.type="f",f),{suffix:as[8+v/3]});return function(y){return m(h*y)}}return{format:s,formatPrefix:c}}var $n,wu,Od;Zy({thousands:",",grouping:[3],currency:["$",""]});function Zy(e){return $n=Xy(e),wu=$n.format,Od=$n.formatPrefix,$n}function Qy(e){return Math.max(0,-br(Math.abs(e)))}function Jy(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(br(t)/3)))*3-br(Math.abs(e)))}function eg(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}function Ad(e,t,r,n){var i=Mo(e,t,r),a;switch(n=nn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Jy(i,o))&&(n.precision=a),Od(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=eg(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Qy(i))&&(n.precision=a-(n.type==="%")*2);break}}return wu(n)}function Et(e){var t=e.domain;return e.ticks=function(r){var n=t();return ko(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Ad(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],l,s,c=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);c-- >0;){if(s=Io(o,u,r),s===l)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function _d(){var e=gu();return e.copy=function(){return wn(e,_d())},$e.apply(e,arguments),Et(e)}function Sd(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,oi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Sd(e).unknown(t)},e=arguments.length?Array.from(e,oi):[0,1],Et(r)}function Cd(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function os(e){return Math.log(e)}function us(e){return Math.exp(e)}function tg(e){return-Math.log(-e)}function rg(e){return-Math.exp(-e)}function ng(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ig(e){return e===10?ng:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ag(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 ls(e){return(t,r)=>-e(-t,r)}function xu(e){const t=e(os,us),r=t.domain;let n=10,i,a;function o(){return i=ag(n),a=ig(n),r()[0]<0?(i=ls(i),a=ls(a),e(tg,rg)):e(os,us),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const l=r();let s=l[0],c=l[l.length-1];const f=c<s;f&&([s,c]=[c,s]);let d=i(s),v=i(c),h,m;const y=u==null?10:+u;let g=[];if(!(n%1)&&v-d<y){if(d=Math.floor(d),v=Math.ceil(v),s>0){for(;d<=v;++d)for(h=1;h<n;++h)if(m=d<0?h/a(-d):h*a(d),!(m<s)){if(m>c)break;g.push(m)}}else for(;d<=v;++d)for(h=n-1;h>=1;--h)if(m=d>0?h/a(-d):h*a(d),!(m<s)){if(m>c)break;g.push(m)}g.length*2<y&&(g=ko(s,c,y))}else g=ko(d,v,Math.min(v-d,y)).map(a);return f?g.reverse():g},t.tickFormat=(u,l)=>{if(u==null&&(u=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=nn(l)).precision==null&&(l.trim=!0),l=wu(l)),u===1/0)return l;const s=Math.max(1,n*u/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=s?l(c):""}},t.nice=()=>r(Cd(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Ed(){const e=xu(Bi()).domain([1,10]);return e.copy=()=>wn(e,Ed()).base(e.base()),$e.apply(e,arguments),e}function ss(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function cs(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Pu(e){var t=1,r=e(ss(t),cs(t));return r.constant=function(n){return arguments.length?e(ss(t=+n),cs(t)):t},Et(r)}function kd(){var e=Pu(Bi());return e.copy=function(){return wn(e,kd()).constant(e.constant())},$e.apply(e,arguments)}function fs(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function og(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ug(e){return e<0?-e*e:e*e}function Ou(e){var t=e(be,be),r=1;function n(){return r===1?e(be,be):r===.5?e(og,ug):e(fs(r),fs(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Et(t)}function Au(){var e=Ou(Bi());return e.copy=function(){return wn(e,Au()).exponent(e.exponent())},$e.apply(e,arguments),e}function lg(){return Au.apply(null,arguments).exponent(.5)}function ds(e){return Math.sign(e)*e*e}function sg(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Id(){var e=gu(),t=[0,1],r=!1,n;function i(a){var o=sg(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(ds(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,oi)).map(ds)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Id(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$e.apply(i,arguments),Et(i)}function Md(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=vy(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[gn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(At),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Md().domain(e).range(t).unknown(n)},$e.apply(a,arguments)}function Td(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[gn(n,l,0,r)]:a}function u(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,u()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,u()):i.slice()},o.invertExtent=function(l){var s=i.indexOf(l);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Td().domain([e,t]).range(i).unknown(a)},$e.apply(Et(o),arguments)}function Dd(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[gn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Dd().domain(e).range(t).unknown(r)},$e.apply(i,arguments)}const Ca=new Date,Ea=new Date;function ne(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return l;let s;do l.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return l},i.filter=a=>ne(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Ca.setTime(+a),Ea.setTime(+o),e(Ca),e(Ea),Math.floor(r(Ca,Ea))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const si=ne(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);si.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ne(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):si);si.range;const lt=1e3,Ne=lt*60,st=Ne*60,ft=st*24,_u=ft*7,vs=ft*30,ka=ft*365,Bt=ne(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCSeconds());Bt.range;const Su=ne(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt)},(e,t)=>{e.setTime(+e+t*Ne)},(e,t)=>(t-e)/Ne,e=>e.getMinutes());Su.range;const Cu=ne(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ne)},(e,t)=>(t-e)/Ne,e=>e.getUTCMinutes());Cu.range;const Eu=ne(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt-e.getMinutes()*Ne)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getHours());Eu.range;const ku=ne(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getUTCHours());ku.range;const xn=ne(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ne)/ft,e=>e.getDate()-1);xn.range;const Ui=ne(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ft,e=>e.getUTCDate()-1);Ui.range;const Nd=ne(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ft,e=>Math.floor(e/ft));Nd.range;function tr(e){return ne(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ne)/_u)}const Wi=tr(0),ci=tr(1),cg=tr(2),fg=tr(3),wr=tr(4),dg=tr(5),vg=tr(6);Wi.range;ci.range;cg.range;fg.range;wr.range;dg.range;vg.range;function rr(e){return ne(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/_u)}const Ki=rr(0),fi=rr(1),hg=rr(2),pg=rr(3),xr=rr(4),mg=rr(5),yg=rr(6);Ki.range;fi.range;hg.range;pg.range;xr.range;mg.range;yg.range;const Iu=ne(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());Iu.range;const Mu=ne(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());Mu.range;const dt=ne(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());dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ne(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});dt.range;const vt=ne(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());vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ne(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});vt.range;function jd(e,t,r,n,i,a){const o=[[Bt,1,lt],[Bt,5,5*lt],[Bt,15,15*lt],[Bt,30,30*lt],[a,1,Ne],[a,5,5*Ne],[a,15,15*Ne],[a,30,30*Ne],[i,1,st],[i,3,3*st],[i,6,6*st],[i,12,12*st],[n,1,ft],[n,2,2*ft],[r,1,_u],[t,1,vs],[t,3,3*vs],[e,1,ka]];function u(s,c,f){const d=c<s;d&&([s,c]=[c,s]);const v=f&&typeof f.range=="function"?f:l(s,c,f),h=v?v.range(s,+c+1):[];return d?h.reverse():h}function l(s,c,f){const d=Math.abs(c-s)/f,v=du(([,,y])=>y).right(o,d);if(v===o.length)return e.every(Mo(s/ka,c/ka,f));if(v===0)return si.every(Math.max(Mo(s,c,f),1));const[h,m]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return h.every(m)}return[u,l]}const[gg,bg]=jd(vt,Mu,Ki,Nd,ku,Cu),[wg,xg]=jd(dt,Iu,Wi,xn,Eu,Su);function Ia(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 Ma(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 Ur(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Pg(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,l=e.shortMonths,s=Wr(i),c=Kr(i),f=Wr(a),d=Kr(a),v=Wr(o),h=Kr(o),m=Wr(u),y=Kr(u),g=Wr(l),x=Kr(l),b={a:ze,A:ge,b:pe,B:J,c:null,d:bs,e:bs,f:qg,g:t0,G:n0,H:Ug,I:Wg,j:Kg,L:Rd,m:Hg,M:Vg,p:Mt,q:Fe,Q:Ps,s:Os,S:Yg,u:Gg,U:Xg,V:Zg,w:Qg,W:Jg,x:null,X:null,y:e0,Y:r0,Z:i0,"%":xs},w={a:Lr,A:zr,b:Fr,B:xa,c:null,d:ws,e:ws,f:l0,g:g0,G:w0,H:a0,I:o0,j:u0,L:Ld,m:s0,M:c0,p:Pa,q:Oa,Q:Ps,s:Os,S:f0,u:d0,U:v0,V:h0,w:p0,W:m0,x:null,X:null,y:y0,Y:b0,Z:x0,"%":xs},P={a:I,A:M,b:_,B:$,c:F,d:ys,e:ys,f:Lg,g:ms,G:ps,H:gs,I:gs,j:Ng,L:$g,m:Dg,M:jg,p:T,q:Tg,Q:Fg,s:Bg,S:Rg,u:Cg,U:Eg,V:kg,w:Sg,W:Ig,x:V,X:Pe,y:ms,Y:ps,Z:Mg,"%":zg};b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w);function O(N,k){return function(B){var C=[],Oe=-1,K=0,Se=N.length,Ce,Tt,Rl;for(B instanceof Date||(B=new Date(+B));++Oe<Se;)N.charCodeAt(Oe)===37&&(C.push(N.slice(K,Oe)),(Tt=hs[Ce=N.charAt(++Oe)])!=null?Ce=N.charAt(++Oe):Tt=Ce==="e"?" ":"0",(Rl=k[Ce])&&(Ce=Rl(B,Tt)),C.push(Ce),K=Oe+1);return C.push(N.slice(K,Oe)),C.join("")}}function S(N,k){return function(B){var C=Ur(1900,void 0,1),Oe=E(C,N,B+="",0),K,Se;if(Oe!=B.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(k&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(K=Ma(Ur(C.y,0,1)),Se=K.getUTCDay(),K=Se>4||Se===0?fi.ceil(K):fi(K),K=Ui.offset(K,(C.V-1)*7),C.y=K.getUTCFullYear(),C.m=K.getUTCMonth(),C.d=K.getUTCDate()+(C.w+6)%7):(K=Ia(Ur(C.y,0,1)),Se=K.getDay(),K=Se>4||Se===0?ci.ceil(K):ci(K),K=xn.offset(K,(C.V-1)*7),C.y=K.getFullYear(),C.m=K.getMonth(),C.d=K.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),Se="Z"in C?Ma(Ur(C.y,0,1)).getUTCDay():Ia(Ur(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(Se+5)%7:C.w+C.U*7-(Se+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Ma(C)):Ia(C)}}function E(N,k,B,C){for(var Oe=0,K=k.length,Se=B.length,Ce,Tt;Oe<K;){if(C>=Se)return-1;if(Ce=k.charCodeAt(Oe++),Ce===37){if(Ce=k.charAt(Oe++),Tt=P[Ce in hs?k.charAt(Oe++):Ce],!Tt||(C=Tt(N,B,C))<0)return-1}else if(Ce!=B.charCodeAt(C++))return-1}return C}function T(N,k,B){var C=s.exec(k.slice(B));return C?(N.p=c.get(C[0].toLowerCase()),B+C[0].length):-1}function I(N,k,B){var C=v.exec(k.slice(B));return C?(N.w=h.get(C[0].toLowerCase()),B+C[0].length):-1}function M(N,k,B){var C=f.exec(k.slice(B));return C?(N.w=d.get(C[0].toLowerCase()),B+C[0].length):-1}function _(N,k,B){var C=g.exec(k.slice(B));return C?(N.m=x.get(C[0].toLowerCase()),B+C[0].length):-1}function $(N,k,B){var C=m.exec(k.slice(B));return C?(N.m=y.get(C[0].toLowerCase()),B+C[0].length):-1}function F(N,k,B){return E(N,t,k,B)}function V(N,k,B){return E(N,r,k,B)}function Pe(N,k,B){return E(N,n,k,B)}function ze(N){return o[N.getDay()]}function ge(N){return a[N.getDay()]}function pe(N){return l[N.getMonth()]}function J(N){return u[N.getMonth()]}function Mt(N){return i[+(N.getHours()>=12)]}function Fe(N){return 1+~~(N.getMonth()/3)}function Lr(N){return o[N.getUTCDay()]}function zr(N){return a[N.getUTCDay()]}function Fr(N){return l[N.getUTCMonth()]}function xa(N){return u[N.getUTCMonth()]}function Pa(N){return i[+(N.getUTCHours()>=12)]}function Oa(N){return 1+~~(N.getUTCMonth()/3)}return{format:function(N){var k=O(N+="",b);return k.toString=function(){return N},k},parse:function(N){var k=S(N+="",!1);return k.toString=function(){return N},k},utcFormat:function(N){var k=O(N+="",w);return k.toString=function(){return N},k},utcParse:function(N){var k=S(N+="",!0);return k.toString=function(){return N},k}}}var hs={"-":"",_:" ",0:"0"},oe=/^\s*\d+/,Og=/^%/,Ag=/[\\^$*+?|[\]().{}]/g;function U(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function _g(e){return e.replace(Ag,"\\$&")}function Wr(e){return new RegExp("^(?:"+e.map(_g).join("|")+")","i")}function Kr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Sg(e,t,r){var n=oe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Cg(e,t,r){var n=oe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Eg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function kg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Ig(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ps(e,t,r){var n=oe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ms(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Mg(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Tg(e,t,r){var n=oe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Dg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ys(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Ng(e,t,r){var n=oe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gs(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function jg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Rg(e,t,r){var n=oe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function $g(e,t,r){var n=oe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Lg(e,t,r){var n=oe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function zg(e,t,r){var n=Og.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Fg(e,t,r){var n=oe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Bg(e,t,r){var n=oe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function bs(e,t){return U(e.getDate(),t,2)}function Ug(e,t){return U(e.getHours(),t,2)}function Wg(e,t){return U(e.getHours()%12||12,t,2)}function Kg(e,t){return U(1+xn.count(dt(e),e),t,3)}function Rd(e,t){return U(e.getMilliseconds(),t,3)}function qg(e,t){return Rd(e,t)+"000"}function Hg(e,t){return U(e.getMonth()+1,t,2)}function Vg(e,t){return U(e.getMinutes(),t,2)}function Yg(e,t){return U(e.getSeconds(),t,2)}function Gg(e){var t=e.getDay();return t===0?7:t}function Xg(e,t){return U(Wi.count(dt(e)-1,e),t,2)}function $d(e){var t=e.getDay();return t>=4||t===0?wr(e):wr.ceil(e)}function Zg(e,t){return e=$d(e),U(wr.count(dt(e),e)+(dt(e).getDay()===4),t,2)}function Qg(e){return e.getDay()}function Jg(e,t){return U(ci.count(dt(e)-1,e),t,2)}function e0(e,t){return U(e.getFullYear()%100,t,2)}function t0(e,t){return e=$d(e),U(e.getFullYear()%100,t,2)}function r0(e,t){return U(e.getFullYear()%1e4,t,4)}function n0(e,t){var r=e.getDay();return e=r>=4||r===0?wr(e):wr.ceil(e),U(e.getFullYear()%1e4,t,4)}function i0(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+U(t/60|0,"0",2)+U(t%60,"0",2)}function ws(e,t){return U(e.getUTCDate(),t,2)}function a0(e,t){return U(e.getUTCHours(),t,2)}function o0(e,t){return U(e.getUTCHours()%12||12,t,2)}function u0(e,t){return U(1+Ui.count(vt(e),e),t,3)}function Ld(e,t){return U(e.getUTCMilliseconds(),t,3)}function l0(e,t){return Ld(e,t)+"000"}function s0(e,t){return U(e.getUTCMonth()+1,t,2)}function c0(e,t){return U(e.getUTCMinutes(),t,2)}function f0(e,t){return U(e.getUTCSeconds(),t,2)}function d0(e){var t=e.getUTCDay();return t===0?7:t}function v0(e,t){return U(Ki.count(vt(e)-1,e),t,2)}function zd(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function h0(e,t){return e=zd(e),U(xr.count(vt(e),e)+(vt(e).getUTCDay()===4),t,2)}function p0(e){return e.getUTCDay()}function m0(e,t){return U(fi.count(vt(e)-1,e),t,2)}function y0(e,t){return U(e.getUTCFullYear()%100,t,2)}function g0(e,t){return e=zd(e),U(e.getUTCFullYear()%100,t,2)}function b0(e,t){return U(e.getUTCFullYear()%1e4,t,4)}function w0(e,t){var r=e.getUTCDay();return e=r>=4||r===0?xr(e):xr.ceil(e),U(e.getUTCFullYear()%1e4,t,4)}function x0(){return"+0000"}function xs(){return"%"}function Ps(e){return+e}function Os(e){return Math.floor(+e/1e3)}var or,Fd,Bd;P0({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 P0(e){return or=Pg(e),Fd=or.format,or.parse,Bd=or.utcFormat,or.utcParse,or}function O0(e){return new Date(e)}function A0(e){return e instanceof Date?+e:+new Date(+e)}function Tu(e,t,r,n,i,a,o,u,l,s){var c=gu(),f=c.invert,d=c.domain,v=s(".%L"),h=s(":%S"),m=s("%I:%M"),y=s("%I %p"),g=s("%a %d"),x=s("%b %d"),b=s("%B"),w=s("%Y");function P(O){return(l(O)<O?v:u(O)<O?h:o(O)<O?m:a(O)<O?y:n(O)<O?i(O)<O?g:x:r(O)<O?b:w)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,A0)):d().map(O0)},c.ticks=function(O){var S=d();return e(S[0],S[S.length-1],O??10)},c.tickFormat=function(O,S){return S==null?P:s(S)},c.nice=function(O){var S=d();return(!O||typeof O.range!="function")&&(O=t(S[0],S[S.length-1],O??10)),O?d(Cd(S,O)):c},c.copy=function(){return wn(c,Tu(e,t,r,n,i,a,o,u,l,s))},c}function _0(){return $e.apply(Tu(wg,xg,dt,Iu,Wi,xn,Eu,Su,Bt,Fd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function S0(){return $e.apply(Tu(gg,bg,vt,Mu,Ki,Ui,ku,Cu,Bt,Bd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function qi(){var e=0,t=1,r,n,i,a,o=be,u=!1,l;function s(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}s.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(f){return arguments.length?(u=!!f,s):u},s.interpolator=function(f){return arguments.length?(o=f,s):o};function c(f){return function(d){var v,h;return arguments.length?([v,h]=d,o=f(v,h),s):[o(0),o(1)]}}return s.range=c(kr),s.rangeRound=c(yu),s.unknown=function(f){return arguments.length?(l=f,s):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),s}}function kt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ud(){var e=Et(qi()(be));return e.copy=function(){return kt(e,Ud())},pt.apply(e,arguments)}function Wd(){var e=xu(qi()).domain([1,10]);return e.copy=function(){return kt(e,Wd()).base(e.base())},pt.apply(e,arguments)}function Kd(){var e=Pu(qi());return e.copy=function(){return kt(e,Kd()).constant(e.constant())},pt.apply(e,arguments)}function Du(){var e=Ou(qi());return e.copy=function(){return kt(e,Du()).exponent(e.exponent())},pt.apply(e,arguments)}function C0(){return Du.apply(null,arguments).exponent(.5)}function qd(){var e=[],t=be;function r(n){if(n!=null&&!isNaN(n=+n))return t((gn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(At),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>dy(e,a/n))},r.copy=function(){return qd(t).domain(e)},pt.apply(r,arguments)}function Hi(){var e=0,t=.5,r=1,n=1,i,a,o,u,l,s=be,c,f=!1,d;function v(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(n*m<n*a?u:l),s(f?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(f=!!m,v):f},v.interpolator=function(m){return arguments.length?(s=m,v):s};function h(m){return function(y){var g,x,b;return arguments.length?([g,x,b]=y,s=zy(m,[g,x,b]),v):[s(0),s(.5),s(1)]}}return v.range=h(kr),v.rangeRound=h(yu),v.unknown=function(m){return arguments.length?(d=m,v):d},function(m){return c=m,i=m(e),a=m(t),o=m(r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function Hd(){var e=Et(Hi()(be));return e.copy=function(){return kt(e,Hd())},pt.apply(e,arguments)}function Vd(){var e=xu(Hi()).domain([.1,1,10]);return e.copy=function(){return kt(e,Vd()).base(e.base())},pt.apply(e,arguments)}function Yd(){var e=Pu(Hi());return e.copy=function(){return kt(e,Yd()).constant(e.constant())},pt.apply(e,arguments)}function Nu(){var e=Ou(Hi());return e.copy=function(){return kt(e,Nu()).exponent(e.exponent())},pt.apply(e,arguments)}function E0(){return Nu.apply(null,arguments).exponent(.5)}var Ir=1e9,k0={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ru,Y=!0,Re="[DecimalError] ",Wt=Re+"Invalid argument: ",ju=Re+"Exponent out of range: ",Mr=Math.floor,Lt=Math.pow,I0=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ee,ie=1e7,q=7,Gd=9007199254740991,di=Mr(Gd/q),D={};D.absoluteValue=D.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};D.comparedTo=D.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};D.decimalPlaces=D.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*q;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};D.dividedBy=D.div=function(e){return ct(this,new this.constructor(e))};D.dividedToIntegerBy=D.idiv=function(e){var t=this,r=t.constructor;return W(ct(t,new r(e),0,1),r.precision)};D.equals=D.eq=function(e){return!this.cmp(e)};D.exponent=function(){return Q(this)};D.greaterThan=D.gt=function(e){return this.cmp(e)>0};D.greaterThanOrEqualTo=D.gte=function(e){return this.cmp(e)>=0};D.isInteger=D.isint=function(){return this.e>this.d.length-2};D.isNegative=D.isneg=function(){return this.s<0};D.isPositive=D.ispos=function(){return this.s>0};D.isZero=function(){return this.s===0};D.lessThan=D.lt=function(e){return this.cmp(e)<0};D.lessThanOrEqualTo=D.lte=function(e){return this.cmp(e)<1};D.logarithm=D.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ee))throw Error(Re+"NaN");if(r.s<1)throw Error(Re+(r.s?"NaN":"-Infinity"));return r.eq(Ee)?new n(0):(Y=!1,t=ct(an(r,a),an(e,a),a),Y=!0,W(t,i))};D.minus=D.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qd(t,e):Xd(t,(e.s=-e.s,e))};D.modulo=D.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Re+"NaN");return r.s?(Y=!1,t=ct(r,e,0,1).times(e),Y=!0,r.minus(t)):W(new n(r),i)};D.naturalExponential=D.exp=function(){return Zd(this)};D.naturalLogarithm=D.ln=function(){return an(this)};D.negated=D.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};D.plus=D.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Xd(t,e):Qd(t,(e.s=-e.s,e))};D.precision=D.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wt+e);if(t=Q(i)+1,n=i.d.length-1,r=n*q+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};D.squareRoot=D.sqrt=function(){var e,t,r,n,i,a,o,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(Re+"NaN")}for(e=Q(u),Y=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Ye(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Mr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(ct(u,a,o+2)).times(.5),Ye(a.d).slice(0,o)===(t=Ye(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(W(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return Y=!0,W(n,r)};D.times=D.mul=function(e){var t,r,n,i,a,o,u,l,s,c=this,f=c.constructor,d=c.d,v=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,s=v.length,l<s&&(a=d,d=v,v=a,o=l,l=s,s=o),a=[],o=l+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=l+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%ie|0,t=u/ie|0;a[i]=(a[i]+t)%ie|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Y?W(e,f.precision):e};D.toDecimalPlaces=D.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Je(e,0,Ir),t===void 0?t=n.rounding:Je(t,0,8),W(r,e+Q(r)+1,t))};D.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Vt(n,!0):(Je(e,0,Ir),t===void 0?t=i.rounding:Je(t,0,8),n=W(new i(n),e+1,t),r=Vt(n,!0,e+1)),r};D.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Vt(i):(Je(e,0,Ir),t===void 0?t=a.rounding:Je(t,0,8),n=W(new a(i),e+Q(i)+1,t),r=Vt(n.abs(),!1,e+Q(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};D.toInteger=D.toint=function(){var e=this,t=e.constructor;return W(new t(e),Q(e)+1,t.rounding)};D.toNumber=function(){return+this};D.toPower=D.pow=function(e){var t,r,n,i,a,o,u=this,l=u.constructor,s=12,c=+(e=new l(e));if(!e.s)return new l(Ee);if(u=new l(u),!u.s){if(e.s<1)throw Error(Re+"Infinity");return u}if(u.eq(Ee))return u;if(n=l.precision,e.eq(Ee))return W(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=c<0?-c:c)<=Gd){for(i=new l(Ee),t=Math.ceil(n/q+4),Y=!1;r%2&&(i=i.times(u),_s(i.d,t)),r=Mr(r/2),r!==0;)u=u.times(u),_s(u.d,t);return Y=!0,e.s<0?new l(Ee).div(i):W(i,n)}}else if(a<0)throw Error(Re+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,Y=!1,i=e.times(an(u,n+s)),Y=!0,i=Zd(i),i.s=a,i};D.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Q(i),n=Vt(i,r<=a.toExpNeg||r>=a.toExpPos)):(Je(e,1,Ir),t===void 0?t=a.rounding:Je(t,0,8),i=W(new a(i),e,t),r=Q(i),n=Vt(i,e<=r||r<=a.toExpNeg,e)),n};D.toSignificantDigits=D.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Je(e,1,Ir),t===void 0?t=n.rounding:Je(t,0,8)),W(new n(r),e,t)};D.toString=D.valueOf=D.val=D.toJSON=D[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Q(e),r=e.constructor;return Vt(e,t<=r.toExpNeg||t>=r.toExpPos)};function Xd(e,t){var r,n,i,a,o,u,l,s,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Y?W(t,f):t;if(l=e.d,s=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,u=s.length):(n=s,i=o,u=l.length),o=Math.ceil(f/q),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=l.length,a=s.length,u-a<0&&(a=u,n=s,s=l,l=n),r=0;a;)r=(l[--a]=l[a]+s[a]+r)/ie|0,l[a]%=ie;for(r&&(l.unshift(r),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,Y?W(t,f):t}function Je(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Wt+e)}function Ye(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=q-n.length,r&&(a+=xt(r)),a+=n;o=e[t],n=o+"",r=q-n.length,r&&(a+=xt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ct=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%ie|0,o=a/ie|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,l;if(a!=o)l=a>o?1:-1;else for(u=l=0;u<a;u++)if(n[u]!=i[u]){l=n[u]>i[u]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ie+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,l,s,c,f,d,v,h,m,y,g,x,b,w,P,O,S,E,T=n.constructor,I=n.s==i.s?1:-1,M=n.d,_=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Re+"Division by zero");for(l=n.e-i.e,S=_.length,P=M.length,v=new T(I),h=v.d=[],s=0;_[s]==(M[s]||0);)++s;if(_[s]>(M[s]||0)&&--l,a==null?x=a=T.precision:o?x=a+(Q(n)-Q(i))+1:x=a,x<0)return new T(0);if(x=x/q+2|0,s=0,S==1)for(c=0,_=_[0],x++;(s<P||c)&&x--;s++)b=c*ie+(M[s]||0),h[s]=b/_|0,c=b%_|0;else{for(c=ie/(_[0]+1)|0,c>1&&(_=e(_,c),M=e(M,c),S=_.length,P=M.length),w=S,m=M.slice(0,S),y=m.length;y<S;)m[y++]=0;E=_.slice(),E.unshift(0),O=_[0],_[1]>=ie/2&&++O;do c=0,u=t(_,m,S,y),u<0?(g=m[0],S!=y&&(g=g*ie+(m[1]||0)),c=g/O|0,c>1?(c>=ie&&(c=ie-1),f=e(_,c),d=f.length,y=m.length,u=t(f,m,d,y),u==1&&(c--,r(f,S<d?E:_,d))):(c==0&&(u=c=1),f=_.slice()),d=f.length,d<y&&f.unshift(0),r(m,f,y),u==-1&&(y=m.length,u=t(_,m,S,y),u<1&&(c++,r(m,S<y?E:_,y))),y=m.length):u===0&&(c++,m=[0]),h[s++]=c,u&&m[0]?m[y++]=M[w]||0:(m=[M[w]],y=1);while((w++<P||m[0]!==void 0)&&x--)}return h[0]||h.shift(),v.e=l,W(v,o?a+Q(v)+1:a)}})();function Zd(e,t){var r,n,i,a,o,u,l=0,s=0,c=e.constructor,f=c.precision;if(Q(e)>16)throw Error(ju+Q(e));if(!e.s)return new c(Ee);for(Y=!1,u=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Lt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new c(Ee),c.precision=u;;){if(i=W(i.times(e),u),r=r.times(++l),o=a.plus(ct(i,r,u)),Ye(o.d).slice(0,u)===Ye(a.d).slice(0,u)){for(;s--;)a=W(a.times(a),u);return c.precision=f,t==null?(Y=!0,W(a,f)):a}a=o}}function Q(e){for(var t=e.e*q,r=e.d[0];r>=10;r/=10)t++;return t}function Ta(e,t,r){if(t>e.LN10.sd())throw Y=!0,r&&(e.precision=r),Error(Re+"LN10 precision limit exceeded");return W(new e(e.LN10),t)}function xt(e){for(var t="";e--;)t+="0";return t}function an(e,t){var r,n,i,a,o,u,l,s,c,f=1,d=10,v=e,h=v.d,m=v.constructor,y=m.precision;if(v.s<1)throw Error(Re+(v.s?"NaN":"-Infinity"));if(v.eq(Ee))return new m(0);if(t==null?(Y=!1,s=y):s=t,v.eq(10))return t==null&&(Y=!0),Ta(m,s);if(s+=d,m.precision=s,r=Ye(h),n=r.charAt(0),a=Q(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=Ye(v.d),n=r.charAt(0),f++;a=Q(v),n>1?(v=new m("0."+r),a++):v=new m(n+"."+r.slice(1))}else return l=Ta(m,s+2,y).times(a+""),v=an(new m(n+"."+r.slice(1)),s-d).plus(l),m.precision=y,t==null?(Y=!0,W(v,y)):v;for(u=o=v=ct(v.minus(Ee),v.plus(Ee),s),c=W(v.times(v),s),i=3;;){if(o=W(o.times(c),s),l=u.plus(ct(o,new m(i),s)),Ye(l.d).slice(0,s)===Ye(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Ta(m,s+2,y).times(a+""))),u=ct(u,new m(f),s),m.precision=y,t==null?(Y=!0,W(u,y)):u;u=l,i+=2}}function As(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Mr(r/q),e.d=[],n=(r+1)%q,r<0&&(n+=q),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=q;n<i;)e.d.push(+t.slice(n,n+=q));t=t.slice(n),n=q-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Y&&(e.e>di||e.e<-di))throw Error(ju+r)}else e.s=0,e.e=0,e.d=[0];return e}function W(e,t,r){var n,i,a,o,u,l,s,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=q,i=t,s=f[c=0];else{if(c=Math.ceil((n+1)/q),a=f.length,c>=a)return e;for(s=a=f[c],o=1;a>=10;a/=10)o++;n%=q,i=n-q+o}if(r!==void 0&&(a=Lt(10,o-i-1),u=s/a%10|0,l=t<0||f[c+1]!==void 0||s%a,l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?i>0?s/Lt(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=Q(e),f.length=1,t=t-a-1,f[0]=Lt(10,(q-t%q)%q),e.e=Mr(-t/q)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Lt(10,q-n),f[c]=i>0?(s/Lt(10,o-i)%Lt(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==ie&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=ie)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Y&&(e.e>di||e.e<-di))throw Error(ju+Q(e));return e}function Qd(e,t){var r,n,i,a,o,u,l,s,c,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Y?W(t,v):t;if(l=e.d,f=t.d,n=t.e,s=e.e,l=l.slice(),o=s-n,o){for(c=o<0,c?(r=l,o=-o,u=f.length):(r=f,n=s,u=l.length),i=Math.max(Math.ceil(v/q),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,u=f.length,c=i<u,c&&(u=i),i=0;i<u;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),u=l.length,i=f.length-u;i>0;--i)l[u++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=ie-1;--l[a],l[i]+=ie}l[i]-=f[i]}for(;l[--u]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Y?W(t,v):t):new d(0)}function Vt(e,t,r){var n,i=Q(e),a=Ye(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+xt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+xt(-i-1)+a,r&&(n=r-o)>0&&(a+=xt(n))):i>=o?(a+=xt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+xt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=xt(n))),e.s<0?"-"+a:a}function _s(e,t){if(e.length>t)return e.length=t,!0}function Jd(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Wt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return As(o,a.toString())}else if(typeof a!="string")throw Error(Wt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,I0.test(a))As(o,a);else throw Error(Wt+a)}if(i.prototype=D,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=Jd,i.config=i.set=M0,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function M0(e){if(!e||typeof e!="object")throw Error(Re+"Object expected");var t,r,n,i=["precision",1,Ir,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Mr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Wt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Wt+r+": "+n);return this}var Ru=Jd(k0);Ee=new Ru(1);const z=Ru;var T0=["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"];function $u(e){if(typeof e!="string")return!1;var t=T0;return t.includes(e)}var D0=["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"],N0=new Set(D0);function ev(e){return typeof e!="string"?!1:N0.has(e)}function tv(e){return typeof e=="string"&&e.startsWith("data-")}function et(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(ev(r)||tv(r))&&(t[r]=e[r]);return t}function Lu(e){if(e==null)return null;if(p.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return et(t)}return typeof e=="object"&&!Array.isArray(e)?et(e):null}function St(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(ev(r)||tv(r)||$u(r))&&(t[r]=e[r]);return t}function j0(e){return e==null?null:p.isValidElement(e)?St(e.props):typeof e=="object"&&!Array.isArray(e)?St(e):null}var R0=["children","width","height","viewBox","className","style","title","desc"];function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ro.apply(null,arguments)}function $0(e,t){if(e==null)return{};var r,n,i=L0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function L0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var rv=p.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=$0(e,R0),f=a||{width:n,height:i,x:0,y:0},d=de("recharts-surface",o);return p.createElement("svg",Ro({},St(c),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),p.createElement("title",null,l),p.createElement("desc",null,s),r)}),z0=["children","className"];function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$o.apply(null,arguments)}function F0(e,t){if(e==null)return{};var r,n,i=B0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function B0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var tt=p.forwardRef((e,t)=>{var{children:r,className:n}=e,i=F0(e,z0),a=de("recharts-layer",n);return p.createElement("g",$o({className:a},St(i),{ref:t}),r)}),U0=p.createContext(null),Da={},Na={},Ss;function W0(){return Ss||(Ss=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Na)),Na}var ja={},Cs;function K0(){return Cs||(Cs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(ja)),ja}var Ra={},Es;function nv(){return Es||(Es=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Ra)),Ra}var $a={},La={},ks;function q0(){return ks||(ks=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(La)),La}var Is;function iv(){return Is||(Is=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q0(),r=nv();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],o=i.length;if(o===0)return a;let u=0,l="",s="",c=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];s?f==="\\"&&u+1<o?(u++,l+=i[u]):f===s?s="":l+=f:c?f==='"'||f==="'"?s=f:f==="]"?(c=!1,a.push(l),l=""):l+=f:f==="["?(c=!0,l&&(a.push(l),l="")):f==="."?l&&(a.push(l),l=""):l+=f,u++}return l&&a.push(l),a}e.toPath=n})($a)),$a}var Ms;function H0(){return Ms||(Ms=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=W0(),r=K0(),n=nv(),i=iv();function a(u,l,s){if(u==null)return s;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?r.isDeepKey(l)?a(u,i.toPath(l),s):s:c}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const c=u[l];return c===void 0?s:c}default:{if(Array.isArray(l))return o(u,l,s);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?s:c}}}function o(u,l,s){if(l.length===0)return s;let c=u;for(let f=0;f<l.length;f++){if(c==null||t.isUnsafeProperty(l[f]))return s;c=c[l[f]]}return c===void 0?s:c}e.get=a})(Da)),Da}var za,Ts;function V0(){return Ts||(Ts=1,za=H0().get),za}var Y0=V0();const Pr=yn(Y0);var G0=4;function av(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G0,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Wk(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+av(u)+a:i+a},"")}var Ge=e=>e===0?0:e>0?1:-1,rt=e=>typeof e=="number"&&e!=+e,Yt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,j=e=>(typeof e=="number"||e instanceof Number)&&!rt(e),Or=e=>j(e)||typeof e=="string",X0=0,on=e=>{var t=++X0;return"".concat(e||"").concat(t)},Gt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!j(t)&&typeof t!="string")return n;var a;if(Yt(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return rt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},ov=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function ur(e,t,r){return j(e)&&j(t)?av(e+r*(t-e)):t}function uv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Pr(n,t))===r)}var ae=e=>e===null||typeof e>"u",zu=e=>ae(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function _e(e){return e!=null}function Tr(){}var Kk=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Fu=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(p.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{$u(i)&&typeof r[i]=="function"&&(n[i]=(a=>r[i](r,a)))}),n},Z0=(e,t,r)=>n=>(e(t,r,n),null),Q0=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];$u(i)&&typeof a=="function"&&(n||(n={}),n[i]=Z0(a,t,r))}),n};function Ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ds(Object(r),!0).forEach(function(n){eb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eb(e,t,r){return(t=tb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tb(e){var t=rb(e,"string");return typeof t=="symbol"?t:t+""}function rb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nr(e,t){var r=J0({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}var Fa={},Ba={},Ns;function nb(){return Ns||(Ns=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Ba)),Ba}var js;function ib(){return js||(js=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nb();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Fa)),Fa}var Ua={},Rs;function ab(){return Rs||(Rs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Ua)),Ua}var Wa={},$s;function ob(){return $s||($s=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(Wa)),Wa}var Ka={},Ls;function ub(){return Ls||(Ls=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(Ka)),Ka}var Bu=p.createContext(null),lb=e=>e,ve=()=>{var e=p.useContext(Bu);return e?e.store.dispatch:lb},Vn=()=>{},sb=()=>Vn,cb=(e,t)=>e===t;function R(e){var t=p.useContext(Bu),r=p.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Vn,[t,e]);return km.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:sb,t?t.store.getState:Vn,t?t.store.getState:Vn,r,cb)}function fb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function db(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function vb(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var zs=e=>Array.isArray(e)?e:[e];function hb(e){const t=Array.isArray(e[0])?e[0]:e;return vb(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function pb(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var mb=class{constructor(e){this.value=e}deref(){return this.value}},yb=typeof WeakRef<"u"?WeakRef:mb,gb=0,Fs=1;function Ln(){return{s:gb,v:void 0,o:null,p:null}}function lv(e,t={}){let r=Ln();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let h=u.o;h===null&&(u.o=h=new WeakMap);const m=h.get(v);m===void 0?(u=Ln(),h.set(v,u)):u=m}else{let h=u.p;h===null&&(u.p=h=new Map);const m=h.get(v);m===void 0?(u=Ln(),h.set(v,u)):u=m}}const s=u;let c;if(u.s===Fs)c=u.v;else if(c=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,c)&&(c=f,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new yb(c):c}return s.s=Fs,s.v=c,c}return o.clearCache=()=>{r=Ln(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function bb(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},s=i.pop();typeof s=="object"&&(l=s,s=i.pop()),fb(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=lv,argsMemoizeOptions:h=[]}=c,m=zs(d),y=zs(h),g=hb(i),x=f(function(){return a++,s.apply(null,arguments)},...m),b=v(function(){o++;const P=pb(g,arguments);return u=x.apply(null,P),u},...y);return Object.assign(b,{resultFunc:s,memoizedResultFunc:x,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var A=bb(lv),wb=Object.assign((e,t=A)=>{db(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>wb}),qa={},Ha={},Va={},Bs;function xb(){return Bs||(Bs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r})(Va)),Va}var Ya={},Ga={},Us;function sv(){return Us||(Us=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Ga)),Ga}var Ws;function Pb(){return Ws||(Ws=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sv(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(Ya)),Ya}var Ks;function Ob(){return Ks||(Ks=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xb(),r=Pb(),n=iv();function i(a,o,u,l){if(a==null)return[];u=l?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const s=(v,h)=>{let m=v;for(let y=0;y<h.length&&m!=null;++y)m=m[h[y]];return m},c=(v,h)=>h==null||v==null?h:typeof v=="object"&&"key"in v?Object.hasOwn(h,v.key)?h[v.key]:s(h,v.path):typeof v=="function"?v(h):Array.isArray(v)?s(h,v):typeof h=="object"?h[v]:h,f=o.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return a.map(v=>({original:v,criteria:f.map(h=>c(h,v))})).slice().sort((v,h)=>{for(let m=0;m<f.length;m++){const y=t.compareValues(v.criteria[m],h.criteria[m],u[m]);if(y!==0)return y}return 0}).map(v=>v.original)}e.orderBy=i})(Ha)),Ha}var Xa={},qs;function Ab(){return qs||(qs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let s=0;s<u.length;s++){const c=u[s];Array.isArray(c)&&l<a?o(c,l+1):i.push(c)}};return o(r,0),i}e.flatten=t})(Xa)),Xa}var Za={},Hs;function cv(){return Hs||(Hs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ub(),r=ib(),n=ab(),i=ob();function a(o,u,l){return n.isObject(l)&&(typeof u=="number"&&r.isArrayLike(l)&&t.isIndex(u)&&u<l.length||typeof u=="string"&&u in l)?i.isEqualsSameValueZero(l[u],o):!1}e.isIterateeCall=a})(Za)),Za}var Vs;function _b(){return Vs||(Vs=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ob(),r=Ab(),n=cv();function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(qa)),qa}var Qa,Ys;function Sb(){return Ys||(Ys=1,Qa=_b().sortBy),Qa}var Cb=Sb();const Uu=yn(Cb);var fv=e=>e.legend.settings,Eb=e=>e.legend.size,kb=e=>e.legend.payload;A([kb,fv],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Uu(n,r):n});function ce(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ib=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gs=Ib,Ja=()=>Math.random().toString(36).substring(7).split("").join("."),Mb={INIT:`@@redux/INIT${Ja()}`,REPLACE:`@@redux/REPLACE${Ja()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ja()}`},vi=Mb;function Wu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function dv(e,t,r){if(typeof e!="function")throw new Error(ce(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(dv)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function s(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function c(){if(l)throw new Error(ce(3));return i}function f(y){if(typeof y!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let g=!0;s();const x=u++;return o.set(x,y),function(){if(g){if(l)throw new Error(ce(6));g=!1,s(),o.delete(x),a=null}}}function d(y){if(!Wu(y))throw new Error(ce(7));if(typeof y.type>"u")throw new Error(ce(8));if(typeof y.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(x=>{x()}),y}function v(y){if(typeof y!="function")throw new Error(ce(10));n=y,d({type:vi.REPLACE})}function h(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ce(11));function x(){const w=g;w.next&&w.next(c())}return x(),{unsubscribe:y(x)}},[Gs](){return this}}}return d({type:vi.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:v,[Gs]:h}}function Tb(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:vi.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:vi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function vv(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{Tb(r)}catch(a){i=a}return function(o={},u){if(i)throw i;let l=!1;const s={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],v=o[f],h=d(v,u);if(typeof h>"u")throw u&&u.type,new Error(ce(14));s[f]=h,l=l||h!==v}return l=l||n.length!==Object.keys(o).length,l?s:o}}function hi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Db(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(ce(15))};const o={getState:i.getState,dispatch:(l,...s)=>a(l,...s)},u=e.map(l=>l(o));return a=hi(...u)(i.dispatch),{...i,dispatch:a}}}function hv(e){return Wu(e)&&"type"in e&&typeof e.type=="string"}var pv=Symbol.for("immer-nothing"),Xs=Symbol.for("immer-draftable"),we=Symbol.for("immer-state");function Ue(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ke=Object,Ar=ke.getPrototypeOf,pi="constructor",Vi="prototype",Lo="configurable",mi="enumerable",Yn="writable",un="value",ht=e=>!!e&&!!e[we];function Ke(e){return e?mv(e)||Gi(e)||!!e[Xs]||!!e[pi]?.[Xs]||Xi(e)||Zi(e):!1}var Nb=ke[Vi][pi].toString(),Zs=new WeakMap;function mv(e){if(!e||!Ku(e))return!1;const t=Ar(e);if(t===null||t===ke[Vi])return!0;const r=ke.hasOwnProperty.call(t,pi)&&t[pi];if(r===Object)return!0;if(!dr(r))return!1;let n=Zs.get(r);return n===void 0&&(n=Function.toString.call(r),Zs.set(r,n)),n===Nb}function Yi(e,t,r=!0){Pn(e)===0?(r?Reflect.ownKeys(e):ke.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Pn(e){const t=e[we];return t?t.type_:Gi(e)?1:Xi(e)?2:Zi(e)?3:0}var Qs=(e,t,r=Pn(e))=>r===2?e.has(t):ke[Vi].hasOwnProperty.call(e,t),zo=(e,t,r=Pn(e))=>r===2?e.get(t):e[t],yi=(e,t,r,n=Pn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function jb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Gi=Array.isArray,Xi=e=>e instanceof Map,Zi=e=>e instanceof Set,Ku=e=>typeof e=="object",dr=e=>typeof e=="function",eo=e=>typeof e=="boolean";function Rb(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var ot=e=>e.copy_||e.base_,qu=e=>e.modified_?e.copy_:e.base_;function Fo(e,t){if(Xi(e))return new Map(e);if(Zi(e))return new Set(e);if(Gi(e))return Array[Vi].slice.call(e);const r=mv(e);if(t===!0||t==="class_only"&&!r){const n=ke.getOwnPropertyDescriptors(e);delete n[we];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Yn]===!1&&(u[Yn]=!0,u[Lo]=!0),(u.get||u.set)&&(n[o]={[Lo]:!0,[Yn]:!0,[mi]:u[mi],[un]:e[o]})}return ke.create(Ar(e),n)}else{const n=Ar(e);if(n!==null&&r)return{...e};const i=ke.create(n);return ke.assign(i,e)}}function Hu(e,t=!1){return Qi(e)||ht(e)||!Ke(e)||(Pn(e)>1&&ke.defineProperties(e,{set:zn,add:zn,clear:zn,delete:zn}),ke.freeze(e),t&&Yi(e,(r,n)=>{Hu(n,!0)},!1)),e}function $b(){Ue(2)}var zn={[un]:$b};function Qi(e){return e===null||!Ku(e)?!0:ke.isFrozen(e)}var gi="MapSet",Bo="Patches",Js="ArrayMethods",yv={};function Xt(e){const t=yv[e];return t||Ue(0,e),t}var ec=e=>!!yv[e],ln,gv=()=>ln,Lb=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ec(gi)?Xt(gi):void 0,arrayMethodsPlugin_:ec(Js)?Xt(Js):void 0});function tc(e,t){t&&(e.patchPlugin_=Xt(Bo),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Uo(e){Wo(e),e.drafts_.forEach(zb),e.drafts_=null}function Wo(e){e===ln&&(ln=e.parent_)}var rc=e=>ln=Lb(ln,e);function zb(e){const t=e[we];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[we].modified_&&(Uo(t),Ue(4)),Ke(e)&&(e=ic(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[we].base_,e,t)}else e=ic(t,r);return Fb(t,e,!0),Uo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pv?e:void 0}function ic(e,t){if(Qi(t))return t;const r=t[we];if(!r)return bi(t,e.handledSet_,e);if(!Ji(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);xv(r,e)}return r.copy_}function Fb(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hu(t,r)}function bv(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ji=(e,t)=>e.scope_===t,Bb=[];function wv(e,t,r,n){const i=ot(e),a=e.type_;if(n!==void 0&&zo(i,n,a)===t){yi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Yi(i,(l,s)=>{if(ht(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??Bb;for(const u of o)yi(i,u,r,a)}function Ub(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Ji(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=qu(a);wv(e,a.draft_??a,o,r),xv(a,i)})}function xv(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}bv(e)}}function Wb(e,t,r){const{scope_:n}=e;if(ht(r)){const i=r[we];Ji(i,n)&&i.callbacks_.push(function(){Gn(e);const o=qu(i);wv(e,r,o,t)})}else Ke(r)&&e.callbacks_.push(function(){const a=ot(e);e.type_===3?a.has(r)&&bi(r,n.handledSet_,n):zo(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bi(zo(e.copy_,t,e.type_),n.handledSet_,n)})}function bi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ht(e)||t.has(e)||!Ke(e)||Qi(e)||(t.add(e),Yi(e,(n,i)=>{if(ht(i)){const a=i[we];if(Ji(a,r)){const o=qu(a);yi(e,n,o,e.type_),bv(a)}}else Ke(i)&&bi(i,t,r)})),e}function Kb(e,t){const r=Gi(e),n={type_:r?1:0,scope_:t?t.scope_:gv(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=wi;r&&(i=[n],a=sn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var wi={get(e,t){if(t===we)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=ot(e);if(!Qs(i,t,e.type_))return qb(e,i,t);const a=i[t];if(e.finalized_||!Ke(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Rb(t))return a;if(a===to(e.base_,t)){Gn(e);const o=e.type_===1?+t:t,u=qo(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in ot(e)},ownKeys(e){return Reflect.ownKeys(ot(e))},set(e,t,r){const n=Pv(ot(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=to(ot(e),t),a=i?.[we];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(jb(r,i)&&(r!==void 0||Qs(e.base_,t,e.type_)))return!0;Gn(e),Ko(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Wb(e,t,r)),!0},deleteProperty(e,t){return Gn(e),to(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ko(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ot(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Yn]:!0,[Lo]:e.type_!==1||t!=="length",[mi]:n[mi],[un]:r[t]}},defineProperty(){Ue(11)},getPrototypeOf(e){return Ar(e.base_)},setPrototypeOf(){Ue(12)}},sn={};for(let e in wi){let t=wi[e];sn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}sn.deleteProperty=function(e,t){return sn.set.call(this,e,t,void 0)};sn.set=function(e,t,r){return wi.set.call(this,e[0],t,r,e[0])};function to(e,t){const r=e[we];return(r?ot(r):e)[t]}function qb(e,t,r){const n=Pv(t,r);return n?un in n?n[un]:n.get?.call(e.draft_):void 0}function Pv(e,t){if(!(t in e))return;let r=Ar(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ar(r)}}function Ko(e){e.modified_||(e.modified_=!0,e.parent_&&Ko(e.parent_))}function Gn(e){e.copy_||(e.assigned_=new Map,e.copy_=Fo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Hb=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(dr(r)&&!dr(n)){const o=n;n=r;const u=this;return function(s=o,...c){return u.produce(s,f=>n.call(this,f,...c))}}dr(n)||Ue(6),i!==void 0&&!dr(i)&&Ue(7);let a;if(Ke(r)){const o=rc(this),u=qo(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?Uo(o):Wo(o)}return tc(o,i),nc(a,o)}else if(!r||!Ku(r)){if(a=n(r),a===void 0&&(a=r),a===pv&&(a=void 0),this.autoFreeze_&&Hu(a,!0),i){const o=[],u=[];Xt(Bo).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else Ue(1,r)},this.produceWithPatches=(r,n)=>{if(dr(r))return(u,...l)=>this.produceWithPatches(u,s=>r(s,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},eo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),eo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),eo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ke(t)||Ue(8),ht(t)&&(t=je(t));const r=rc(this),n=qo(r,t,void 0);return n[we].isManual_=!0,Wo(r),n}finishDraft(t,r){const n=t&&t[we];(!n||!n.isManual_)&&Ue(9);const{scope_:i}=n;return tc(i,r),nc(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Xt(Bo).applyPatches_;return ht(t)?i(t,r):this.produce(t,a=>i(a,r))}};function qo(e,t,r,n){const[i,a]=Xi(t)?Xt(gi).proxyMap_(t,r):Zi(t)?Xt(gi).proxySet_(t,r):Kb(t,r);return(r?.scope_??gv()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?Ub(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:s}=l;a.modified_&&s&&s.generatePatches_(a,[],l)}),i}function je(e){return ht(e)||Ue(10,e),Ov(e)}function Ov(e){if(!Ke(e)||Qi(e))return e;const t=e[we];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Fo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Fo(e,!0);return Yi(r,(i,a)=>{yi(r,i,Ov(a))},n),t&&(t.finalized_=!1),r}var Vb=new Hb,Av=Vb.produce;function _v(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var Yb=_v(),Gb=_v,Xb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hi:hi.apply(null,arguments)};function Me(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ie(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>hv(n)&&n.type===e,r}var Sv=class Gr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Gr.prototype)}static get[Symbol.species](){return Gr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Gr(...t[0].concat(this)):new Gr(...t.concat(this))}};function ac(e){return Ke(e)?Av(e,()=>{}):e}function Fn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Zb(e){return typeof e=="boolean"}var Qb=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Sv;return r&&(Zb(r)?o.push(Yb):o.push(Gb(r.extraArgument))),o},Cv="RTK_autoBatch",H=()=>e=>({payload:e,meta:{[Cv]:!0}}),oc=e=>t=>{setTimeout(t,e)},Ev=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:oc(10):e.type==="callback"?e.queueNotification:oc(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[Cv],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},Jb=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Sv(e);return n&&i.push(Ev(typeof n=="object"?n:void 0)),i};function ew(e){const t=Qb(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(Wu(r))u=vv(r);else throw new Error(Ie(1));let l;typeof n=="function"?l=n(t):l=t();let s=hi;i&&(s=Xb({trace:!1,...typeof i=="object"&&i}));const c=Db(...l),f=Jb(c);let d=typeof o=="function"?o(f):f();const v=s(...d);return dv(u,a,v)}function kv(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ie(28));if(u in t)throw new Error(Ie(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function tw(e){return typeof e=="function"}function rw(e,t){let[r,n,i]=kv(t),a;if(tw(e))a=()=>ac(e());else{const u=ac(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if(ht(c)){const v=f(c,l);return v===void 0?c:v}else{if(Ke(c))return Av(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var nw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",iw=(e=21)=>{let t="",r=e;for(;r--;)t+=nw[Math.random()*64|0];return t},aw=Symbol.for("rtk-slice-createasyncthunk");function ow(e,t){return`${e}/${t}`}function uw({creators:e}={}){const t=e?.asyncThunk?.[aw];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Ie(11));const o=(typeof n.reducers=="function"?n.reducers(sw()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(b,w){const P=typeof b=="string"?b:b.type;if(!P)throw new Error(Ie(12));if(P in l.sliceCaseReducersByType)throw new Error(Ie(13));return l.sliceCaseReducersByType[P]=w,s},addMatcher(b,w){return l.sliceMatchers.push({matcher:b,reducer:w}),s},exposeAction(b,w){return l.actionCreators[b]=w,s},exposeCaseReducer(b,w){return l.sliceCaseReducersByName[b]=w,s}};u.forEach(b=>{const w=o[b],P={reducerName:b,type:ow(i,b),createNotation:typeof n.reducers=="function"};fw(w)?vw(P,w,s,t):cw(P,w,s)});function c(){const[b={},w=[],P=void 0]=typeof n.extraReducers=="function"?kv(n.extraReducers):[n.extraReducers],O={...b,...l.sliceCaseReducersByType};return rw(n.initialState,S=>{for(let E in O)S.addCase(E,O[E]);for(let E of l.sliceMatchers)S.addMatcher(E.matcher,E.reducer);for(let E of w)S.addMatcher(E.matcher,E.reducer);P&&S.addDefaultCase(P)})}const f=b=>b,d=new Map,v=new WeakMap;let h;function m(b,w){return h||(h=c()),h(b,w)}function y(){return h||(h=c()),h.getInitialState()}function g(b,w=!1){function P(S){let E=S[b];return typeof E>"u"&&w&&(E=Fn(v,P,y)),E}function O(S=f){const E=Fn(d,w,()=>new WeakMap);return Fn(E,S,()=>{const T={};for(const[I,M]of Object.entries(n.selectors??{}))T[I]=lw(M,S,()=>Fn(v,S,y),w);return T})}return{reducerPath:b,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const x={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...g(a),injectInto(b,{reducerPath:w,...P}={}){const O=w??a;return b.inject({reducerPath:O,reducer:m},P),{...x,...g(O,!0)}}};return x}}function lw(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var ye=uw();function sw(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function cw({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!dw(n))throw new Error(Ie(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Me(e,o):Me(e))}function fw(e){return e._reducerDefinitionType==="asyncThunk"}function dw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function vw({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ie(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||Bn,pending:u||Bn,rejected:l||Bn,settled:s||Bn})}function Bn(){}var hw="task",Iv="listener",Mv="completed",Vu="cancelled",pw=`task-${Vu}`,mw=`task-${Mv}`,Ho=`${Iv}-${Vu}`,yw=`${Iv}-${Mv}`,ea=class{constructor(e){this.code=e,this.message=`${hw} ${Vu} (reason: ${e})`}name="TaskAbortError";message},Yu=(e,t)=>{if(typeof e!="function")throw new TypeError(Ie(32))},xi=()=>{},Tv=(e,t=xi)=>(e.catch(t),e),Dv=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Kt=e=>{if(e.aborted)throw new ea(e.reason)};function Nv(e,t){let r=xi;return new Promise((n,i)=>{const a=()=>i(new ea(e.reason));if(e.aborted){a();return}r=Dv(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=xi})}var gw=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof ea?"cancelled":"rejected",error:r}}finally{t?.()}},Pi=e=>t=>Tv(Nv(e,t).then(r=>(Kt(e),r))),jv=e=>{const t=Pi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:yr}=Object,uc={},ta="listenerMiddleware",bw=(e,t)=>{const r=n=>Dv(e,()=>n.abort(e.reason));return(n,i)=>{Yu(n);const a=new AbortController;r(a);const o=gw(async()=>{Kt(e),Kt(a.signal);const u=await n({pause:Pi(a.signal),delay:jv(a.signal),signal:a.signal});return Kt(a.signal),u},()=>a.abort(mw));return i?.autoJoin&&t.push(o.catch(xi)),{result:Pi(e)(o),cancel(){a.abort(pw)}}}},ww=(e,t)=>{const r=async(n,i)=>{Kt(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Nv(t,Promise.race(u));return Kt(t),l}finally{a()}};return(n,i)=>Tv(r(n,i))},Rv=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Me(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ie(21));return Yu(a),{predicate:i,type:t,effect:a}},$v=yr(e=>{const{type:t,predicate:r,effect:n}=Rv(e);return{id:iw(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ie(22))}}},{withTypes:()=>$v}),lc=(e,t)=>{const{type:r,effect:n,predicate:i}=Rv(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Vo=e=>{e.pending.forEach(t=>{t.abort(Ho)})},xw=(e,t)=>()=>{for(const r of t.keys())Vo(r);e.clear()},sc=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Lv=yr(Me(`${ta}/add`),{withTypes:()=>Lv}),Pw=Me(`${ta}/removeAll`),zv=yr(Me(`${ta}/remove`),{withTypes:()=>zv}),Ow=(...e)=>{console.error(`${ta}/error`,...e)},On=(e={})=>{const t=new Map,r=new Map,n=v=>{const h=r.get(v)??0;r.set(v,h+1)},i=v=>{const h=r.get(v)??1;h===1?r.delete(v):r.set(v,h-1)},{extra:a,onError:o=Ow}=e;Yu(o);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),h=>{v.unsubscribe(),h?.cancelActive&&Vo(v)}),l=v=>{const h=lc(t,v)??$v(v);return u(h)};yr(l,{withTypes:()=>l});const s=v=>{const h=lc(t,v);return h&&(h.unsubscribe(),v.cancelActive&&Vo(h)),!!h};yr(s,{withTypes:()=>s});const c=async(v,h,m,y)=>{const g=new AbortController,x=ww(l,g.signal),b=[];try{v.pending.add(g),n(v),await Promise.resolve(v.effect(h,yr({},m,{getOriginalState:y,condition:(w,P)=>x(w,P).then(Boolean),take:x,delay:jv(g.signal),pause:Pi(g.signal),extra:a,signal:g.signal,fork:bw(g.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((w,P,O)=>{w!==g&&(w.abort(Ho),O.delete(w))})},cancel:()=>{g.abort(Ho),v.pending.delete(g)},throwIfCancelled:()=>{Kt(g.signal)}})))}catch(w){w instanceof ea||sc(o,w,{raisedBy:"effect"})}finally{await Promise.all(b),g.abort(yw),i(v),v.pending.delete(g)}},f=xw(t,r);return{middleware:v=>h=>m=>{if(!hv(m))return h(m);if(Lv.match(m))return l(m.payload);if(Pw.match(m)){f();return}if(zv.match(m))return s(m.payload);let y=v.getState();const g=()=>{if(y===uc)throw new Error(Ie(23));return y};let x;try{if(x=h(m),t.size>0){const b=v.getState(),w=Array.from(t.values());for(const P of w){let O=!1;try{O=P.predicate(m,b,y)}catch(S){O=!1,sc(o,S,{raisedBy:"predicate"})}O&&c(P,m,v,g)}}}finally{y=uc}return x},startListening:l,stopListening:s,clearListeners:f}};function Ie(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Aw={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Fv=ye({name:"chartLayout",initialState:Aw,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:_w,setLayout:Sw,setChartSize:Cw,setScale:Ew}=Fv.actions,kw=Fv.reducer;function Bv(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function L(e){return Number.isFinite(e)}function Ct(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function cc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cc(Object(r),!0).forEach(function(n){Iw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iw(e,t,r){return(t=Mw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=Tw(e,"string");return typeof t=="symbol"?t:t+""}function Tw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function re(e,t,r){return ae(e)||ae(t)?r:Or(t)?Pr(e,t,r):typeof t=="function"?t(e):r}var Dw=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&j(e[a]))return vr(vr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&j(e[o]))return vr(vr({},e),{},{[o]:e[o]+(i||0)})}return e},it=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Hk=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Vk=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:c,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var h=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/h:0;if(m=v==="angleAxis"&&a&&a.length>=2?Ge(a[0]-a[1])*2*m:m,f||d){var y=(f||d||[]).map((g,x)=>{var b=n?n.indexOf(g):g,w=o.map(b);return L(w)?{coordinate:w+m,value:g,offset:m,index:x}:null}).filter(_e);return y}return l&&s?s.map((g,x)=>{var b=o.map(g);return L(b)?{coordinate:b+m,value:g,index:x,offset:m}:null}).filter(_e):o.ticks&&c!=null?o.ticks(c).map((g,x)=>{var b=o.map(g);return L(b)?{coordinate:b+m,value:g,index:x,offset:m}:null}).filter(_e):o.domain().map((g,x)=>{var b=o.map(g);return L(b)?{coordinate:b+m,value:n?n[g]:g,index:x,offset:m}:null}).filter(_e)},Yk=(e,t)=>{if(!t||t.length!==2||!j(t[0])||!j(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!j(e[0])||e[0]<r)&&(i[0]=r),(!j(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Nw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var l=e[u],s=l?.[i];if(s!=null){var c=s[1],f=s[0],d=rt(c)?f:c;d>=0?(s[0]=a,a+=d,s[1]=a):(s[0]=o,o+=d,s[1]=o)}}}},jw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],l=u?.[i];if(l!=null){var s=rt(l[1])?l[0]:l[1];s>=0?(l[0]=a,a+=s,l[1]=a):(l[0]=0,l[1]=0)}}}},Rw={sign:Nw,expand:Qm,none:Ht,silhouette:Jm,wiggle:ey,positive:jw},$w=(e,t,r)=>{var n,i=(n=Rw[r])!==null&&n!==void 0?n:Ht,a=Zm().keys(t).value((u,l)=>Number(re(u,l,0))).order(Eo).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((s,c)=>{var f=re(e[c],t[l],0);Array.isArray(f)&&f.length===2&&j(f[0])&&j(f[1])&&(s[0]=f[0],s[1]=f[1])})}),o};function Lw(e){return e==null?void 0:String(e)}function fc(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ae(i[t.dataKey])){var u=uv(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=re(i,ae(o)?t.dataKey:o),s=t.scale.map(l);return j(s)?s:null}var Gk=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=re(a,t.dataKey,t.scale.domain()[o]);if(ae(u))return null;var l=t.scale.map(u);return j(l)?l-i/2+n:null},Xk=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},zw=e=>{var t=e.flat(2).filter(j);return[Math.min(...t),Math.max(...t)]},Fw=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Bw=(e,t,r)=>{if(e!=null)return Fw(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,s)=>{var c=Bv(s,t,r),f=zw(c);return!L(f[0])||!L(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},dc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vc=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hc=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Uu(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],s=i[o-1];a=Math.min((l?.coordinate||0)-(s?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function pc(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return vr(vr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Uv(e,t){if(e)return String(e);if(typeof t=="string")return t}var Uw=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Ww=(e,t)=>t==="centric"?e.angle:e.radius,mt=e=>e.layout.width,yt=e=>e.layout.height,Kw=e=>e.layout.scale,Wv=e=>e.layout.margin,ra=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),na=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),qw="data-recharts-item-index",Hw="data-recharts-item-id",An=60;function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mc(Object(r),!0).forEach(function(n){Vw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vw(e,t,r){return(t=Yw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=Gw(e,"string");return typeof t=="symbol"?t:t+""}function Gw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xw=e=>e.brush.height;function Zw(e){var t=na(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:An;return r+i}return r},0)}function Qw(e){var t=na(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:An;return r+i}return r},0)}function Jw(e){var t=ra(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function ex(e){var t=ra(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var he=A([mt,yt,Wv,Xw,Zw,Qw,Jw,ex,fv,Eb],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=Un(Un({},f),c),v=d.bottom;d.bottom+=n,d=Dw(d,l,s);var h=e-d.left-d.right,m=t-d.top-d.bottom;return Un(Un({brushBottom:v},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),tx=A(he,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),rx=A(mt,yt,(e,t)=>({x:0,y:0,width:e,height:t})),nx=p.createContext(null),Le=()=>p.useContext(nx)!=null,ia=e=>e.brush,aa=A([ia,he,Wv],(e,t,r)=>({height:e.height,x:j(e.x)?e.x:t.left,y:j(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:j(e.width)?e.width:t.width})),ro={},no={},io={},yc;function ix(){return yc||(yc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const l=a!=null&&a.includes("leading"),s=a==null||a.includes("trailing"),c=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{s&&c(),m()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},h=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{h(),o=void 0,u=null},y=()=>{c()},g=function(...x){if(i?.aborted)return;o=this,u=x;const b=d==null;v(),l&&b&&c()};return g.schedule=v,g.cancel=m,g.flush=y,i?.addEventListener("abort",m,{once:!0}),g}e.debounce=t})(io)),io}var gc;function ax(){return gc||(gc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ix();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:l}=a,s=Array(2);o&&(s[0]="leading"),u&&(s[1]="trailing");let c,f=null;const d=t.debounce(function(...m){c=n.apply(this,m),f=null},i,{edges:s}),v=function(...m){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(c=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),c):(d.apply(this,m),c)},h=()=>(d.flush(),c);return v.cancel=d.cancel,v.flush=h,v}e.debounce=r})(no)),no}var bc;function ox(){return bc||(bc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ax();function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r})(ro)),ro}var ao,wc;function ux(){return wc||(wc=1,ao=ox().throttle),ao}var lx=ux();const sx=yn(lx);var xc=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},Xe={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Kv=(e,t,r)=>{var{width:n=Xe.width,height:i=Xe.height,aspect:a,maxHeight:o}=r,u=Yt(n)?e:Number(n),l=Yt(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},cx={width:0,height:0,overflow:"visible"},fx={width:0,overflowX:"visible"},dx={height:0,overflowY:"visible"},vx={},hx=e=>{var{width:t,height:r}=e,n=Yt(t),i=Yt(r);return n&&i?cx:n?fx:i?dx:vx};function px(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Xe.width,a=Xe.height):i===void 0?i=n&&n>0?void 0:Xe.width:a===void 0&&(a=n&&n>0?void 0:Xe.height),{width:i,height:a}}function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yo.apply(null,arguments)}function Pc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pc(Object(r),!0).forEach(function(n){mx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mx(e,t,r){return(t=yx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yx(e){var t=gx(e,"string");return typeof t=="symbol"?t:t+""}function gx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qv=p.createContext(Xe.initialDimension);function bx(e){return Ct(e.width)&&Ct(e.height)}function Hv(e){var{children:t,width:r,height:n}=e,i=p.useMemo(()=>({width:r,height:n}),[r,n]);return bx(i)?p.createElement(qv.Provider,{value:i},t):null}var Gu=()=>p.useContext(qv),wx=p.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Xe.initialDimension,width:i,height:a,minWidth:o=Xe.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=Xe.debounce,id:f,className:d,onResize:v,style:h={}}=e,m=p.useRef(null),y=p.useRef();y.current=v,p.useImperativeHandle(t,()=>m.current);var[g,x]=p.useState({containerWidth:n.width,containerHeight:n.height}),b=p.useCallback((E,T)=>{x(I=>{var M=Math.round(E),_=Math.round(T);return I.containerWidth===M&&I.containerHeight===_?I:{containerWidth:M,containerHeight:_}})},[]);p.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Tr;var E=_=>{var $,F=_[0];if(F!=null){var{width:V,height:Pe}=F.contentRect;b(V,Pe),($=y.current)===null||$===void 0||$.call(y,V,Pe)}};c>0&&(E=sx(E,c,{trailing:!0,leading:!1}));var T=new ResizeObserver(E),{width:I,height:M}=m.current.getBoundingClientRect();return b(I,M),T.observe(m.current),()=>{T.disconnect()}},[b,c]);var{containerWidth:w,containerHeight:P}=g;xc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=Kv(w,P,{width:i,height:a,aspect:r,maxHeight:l});return xc(O!=null&&O>0||S!=null&&S>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
2
2
|
please check the style of container, or the props width(%s) and height(%s),
|
|
3
3
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
4
4
|
height and width.`,O,S,i,a,o,u,r),p.createElement("div",{id:f?"".concat(f):void 0,className:de("recharts-responsive-container",d),style:Oc(Oc({},h),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:l}),ref:m},p.createElement("div",{style:hx({width:i,height:a})},p.createElement(Hv,{width:O,height:S},s)))}),Zk=p.forwardRef((e,t)=>{var r=Gu();if(Ct(r.width)&&Ct(r.height))return e.children;var{width:n,height:i}=px({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=Kv(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return j(a)&&j(o)?p.createElement(Hv,{width:a,height:o},e.children):p.createElement(wx,Yo({},e,{width:n,height:i,ref:t}))});function Xu(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Zu=()=>{var e,t=Le(),r=R(tx),n=R(aa),i=(e=R(ia))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},xx={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Qk=()=>{var e;return(e=R(he))!==null&&e!==void 0?e:xx},Px=()=>R(mt),Ox=()=>R(yt),G=e=>e.layout.layoutType,_n=()=>R(G),Vv=()=>{var e=_n();if(e==="horizontal"||e==="vertical")return e},Yv=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},Ax=()=>{var e=_n();return e!==void 0},Sn=e=>{var t=ve(),r=Le(),{width:n,height:i}=e,a=Gu(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),p.useEffect(()=>{!r&&Ct(o)&&Ct(u)&&t(Cw({width:o,height:u}))},[t,r,o,u]),null},Gv=Symbol.for("immer-nothing"),Ac=Symbol.for("immer-draftable"),Te=Symbol.for("immer-state");function We(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cn=Object.getPrototypeOf;function _r(e){return!!e&&!!e[Te]}function Zt(e){return e?Xv(e)||Array.isArray(e)||!!e[Ac]||!!e.constructor?.[Ac]||Cn(e)||ua(e):!1}var _x=Object.prototype.constructor.toString(),_c=new WeakMap;function Xv(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=_c.get(r);return n===void 0&&(n=Function.toString.call(r),_c.set(r,n)),n===_x}function Oi(e,t,r=!0){oa(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function oa(e){const t=e[Te];return t?t.type_:Array.isArray(e)?1:Cn(e)?2:ua(e)?3:0}function Go(e,t){return oa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zv(e,t,r){const n=oa(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Sx(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Cn(e){return e instanceof Map}function ua(e){return e instanceof Set}function zt(e){return e.copy_||e.base_}function Xo(e,t){if(Cn(e))return new Map(e);if(ua(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Xv(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Te];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(cn(e),n)}else{const n=cn(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Qu(e,t=!1){return la(e)||_r(e)||!Zt(e)||(oa(e)>1&&Object.defineProperties(e,{set:Wn,add:Wn,clear:Wn,delete:Wn}),Object.freeze(e),t&&Object.values(e).forEach(r=>Qu(r,!0))),e}function Cx(){We(2)}var Wn={value:Cx};function la(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Ex={};function Qt(e){const t=Ex[e];return t||We(0,e),t}var fn;function Qv(){return fn}function kx(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Sc(e,t){t&&(Qt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Zo(e){Qo(e),e.drafts_.forEach(Ix),e.drafts_=null}function Qo(e){e===fn&&(fn=e.parent_)}function Cc(e){return fn=kx(fn,e)}function Ix(e){const t=e[Te];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ec(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Te].modified_&&(Zo(t),We(4)),Zt(e)&&(e=Ai(t,e),t.parent_||_i(t,e)),t.patches_&&Qt("Patches").generateReplacementPatches_(r[Te].base_,e,t.patches_,t.inversePatches_)):e=Ai(t,r,[]),Zo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gv?e:void 0}function Ai(e,t,r){if(la(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Te];if(!i)return Oi(t,(a,o)=>kc(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return _i(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,u=!1;i.type_===3&&(o=new Set(a),a.clear(),u=!0),Oi(o,(l,s)=>kc(e,i,a,l,s,r,u),n),_i(e,a,!1),r&&e.patches_&&Qt("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function kc(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=la(i);if(!(u&&!o)){if(_r(i)){const l=a&&t&&t.type_!==3&&!Go(t.assigned_,n)?a.concat(n):void 0,s=Ai(e,i,l);if(Zv(r,n,s),_r(s))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Zt(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;Ai(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Cn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&_i(e,i)}}}function _i(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qu(t,r)}function Mx(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Qv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Ju;r&&(i=[n],a=dn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var Ju={get(e,t){if(t===Te)return e;const r=zt(e);if(!Go(r,t))return Tx(e,r,t);const n=r[t];return e.finalized_||!Zt(n)?n:n===oo(e.base_,t)?(uo(e),e.copy_[t]=eu(n,e)):n},has(e,t){return t in zt(e)},ownKeys(e){return Reflect.ownKeys(zt(e))},set(e,t,r){const n=Jv(zt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=oo(zt(e),t),a=i?.[Te];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Sx(r,i)&&(r!==void 0||Go(e.base_,t)))return!0;uo(e),Jo(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return oo(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,uo(e),Jo(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=zt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){We(11)},getPrototypeOf(e){return cn(e.base_)},setPrototypeOf(){We(12)}},dn={};Oi(Ju,(e,t)=>{dn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});dn.deleteProperty=function(e,t){return dn.set.call(this,e,t,void 0)};dn.set=function(e,t,r){return Ju.set.call(this,e[0],t,r,e[0])};function oo(e,t){const r=e[Te];return(r?zt(r):e)[t]}function Tx(e,t,r){const n=Jv(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Jv(e,t){if(!(t in e))return;let r=cn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=cn(r)}}function Jo(e){e.modified_||(e.modified_=!0,e.parent_&&Jo(e.parent_))}function uo(e){e.copy_||(e.copy_=Xo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dx=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...s){return o.produce(l,c=>r.call(this,c,...s))}}typeof r!="function"&&We(6),n!==void 0&&typeof n!="function"&&We(7);let i;if(Zt(t)){const a=Cc(this),o=eu(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?Zo(a):Qo(a)}return Sc(a,n),Ec(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Gv&&(i=void 0),this.autoFreeze_&&Qu(i,!0),n){const a=[],o=[];Qt("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else We(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,l=>t(l,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Zt(e)||We(8),_r(e)&&(e=Nx(e));const t=Cc(this),r=eu(e,void 0);return r[Te].isManual_=!0,Qo(t),r}finishDraft(e,t){const r=e&&e[Te];(!r||!r.isManual_)&&We(9);const{scope_:n}=r;return Sc(n,t),Ec(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Qt("Patches").applyPatches_;return _r(e)?n(e,t):this.produce(e,i=>n(i,t))}};function eu(e,t){const r=Cn(e)?Qt("MapSet").proxyMap_(e,t):ua(e)?Qt("MapSet").proxySet_(e,t):Mx(e,t);return(t?t.scope_:Qv()).drafts_.push(r),r}function Nx(e){return _r(e)||We(10,e),eh(e)}function eh(e){if(!Zt(e)||la(e))return e;const t=e[Te];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Xo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Xo(e,!0);return Oi(r,(i,a)=>{Zv(r,i,eh(a))},n),t&&(t.finalized_=!1),r}var jx=new Dx;jx.produce;var Rx={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},th=ye({name:"legend",initialState:Rx,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:H()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=je(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:H()},removeLegendPayload:{reducer(e,t){var r=je(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:H()}}}),{setLegendSize:Jk,setLegendSettings:eI,addLegendPayload:$x,replaceLegendPayload:Lx,removeLegendPayload:zx}=th.actions,Fx=th.reducer,lo={exports:{}},so={};var Ic;function Bx(){if(Ic)return so;Ic=1;var e=Im();function t(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,u=e.useDebugValue;return so.useSyncExternalStoreWithSelector=function(l,s,c,f,d){var v=i(null);if(v.current===null){var h={hasValue:!1,value:null};v.current=h}else h=v.current;v=o(function(){function y(P){if(!g){if(g=!0,x=P,P=f(P),d!==void 0&&h.hasValue){var O=h.value;if(d(O,P))return b=O}return b=P}if(O=b,r(x,P))return O;var S=f(P);return d!==void 0&&d(O,S)?(x=P,O):(x=P,b=S)}var g=!1,x,b,w=c===void 0?null:c;return[function(){return y(s())},w===null?void 0:function(){return y(w())}]},[s,c,f,d]);var m=n(l,v[0],v[1]);return a(function(){h.hasValue=!0,h.value=m},[m]),u(m),m},so}var Mc;function Ux(){return Mc||(Mc=1,lo.exports=Bx()),lo.exports}Ux();function Wx(e){e()}function Kx(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Wx(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Tc={notify(){},get:()=>[]};function qx(e,t){let r,n=Tc,i=0,a=!1;function o(m){c();const y=n.subscribe(m);let g=!1;return()=>{g||(g=!0,y(),f())}}function u(){n.notify()}function l(){h.onStateChange&&h.onStateChange()}function s(){return a}function c(){i++,r||(r=e.subscribe(l),n=Kx())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Tc)}function d(){a||(a=!0,c())}function v(){a&&(a=!1,f())}const h={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return h}var Hx=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vx=Hx(),Yx=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Gx=Yx(),Xx=()=>Vx||Gx?p.useLayoutEffect:p.useEffect,Zx=Xx();function Dc(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Qx(e,t){if(Dc(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!Dc(e[r[i]],t[r[i]]))return!1;return!0}var Jx=Symbol.for("react-redux-context"),e1=typeof globalThis<"u"?globalThis:{};function t1(){if(!p.createContext)return{};const e=e1[Jx]??=new Map;let t=e.get(p.createContext);return t||(t=p.createContext(null),e.set(p.createContext,t)),t}var r1=t1();function n1(e){const{children:t,context:r,serverState:n,store:i}=e,a=p.useMemo(()=>{const l=qx(i);return{store:i,subscription:l,getServerState:n?()=>n:void 0}},[i,n]),o=p.useMemo(()=>i.getState(),[i]);Zx(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const u=r||r1;return p.createElement(u.Provider,{value:a},t)}var i1=n1,a1=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function o1(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function sa(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(a1.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Qx(e[n],t[n]))return!1}else if(!o1(e[n],t[n]))return!1;return!0}var u1=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),En={isSsr:u1()};function l1(){var[e,t]=p.useState(()=>En.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return p.useEffect(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}var s1=()=>{var e;return(e=R(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tu.apply(null,arguments)}function Nc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nc(Object(r),!0).forEach(function(n){c1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c1(e,t,r){return(t=f1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=d1(e,"string");return typeof t=="symbol"?t:t+""}function d1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rc={curveBasisClosed:Fm,curveBasisOpen:Bm,curveBasis:zm,curveBumpX:$m,curveBumpY:Lm,curveLinearClosed:Um,curveLinear:zi,curveMonotoneX:Wm,curveMonotoneY:Km,curveNatural:qm,curveStep:Hm,curveStepAfter:Ym,curveStepBefore:Vm},Si=e=>L(e.x)&&L(e.y),$c=e=>e.base!=null&&Si(e.base)&&Si(e),qr=e=>e.x,Hr=e=>e.y,v1=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(zu(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=Rc["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return Rc[r]||zi},Lc={connectNulls:!1,type:"linear"},h1=e=>{var{type:t=Lc.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Lc.connectNulls}=e,o=v1(t,i),u=a?r.filter(Si):r;if(Array.isArray(n)){var l,s=r.map((h,m)=>jc(jc({},h),{},{base:n[m]}));i==="vertical"?l=Nn().y(Hr).x1(qr).x0(h=>h.base.x):l=Nn().x(qr).y1(Hr).y0(h=>h.base.y);var c=l.defined($c).curve(o),f=a?s.filter($c):s;return c(f)}var d;i==="vertical"&&j(n)?d=Nn().y(Hr).x1(qr).x0(n):j(n)?d=Nn().x(qr).y1(Hr).y0(n):d=ud().x(qr).y(Hr);var v=d.defined(Si).curve(o);return v(u)},co=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=_n();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=r&&r.length?h1(o):n;return p.createElement("path",tu({},et(e),Fu(e),{className:de("recharts-curve",t),d:u===null?void 0:u,ref:i}))};function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zc(Object(r),!0).forEach(function(n){p1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p1(e,t,r){return(t=m1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m1(e){var t=y1(e,"string");return typeof t=="symbol"?t:t+""}function y1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g1=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),tI=(e,t,r)=>e.map(n=>"".concat(g1(n)," ").concat(t,"ms ").concat(r)).join(","),b1=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),vn=(e,t)=>Object.keys(t).reduce((r,n)=>Fc(Fc({},r),{},{[n]:e(n,t[n])}),{});function Bc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bc(Object(r),!0).forEach(function(n){w1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w1(e,t,r){return(t=x1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x1(e){var t=P1(e,"string");return typeof t=="symbol"?t:t+""}function P1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ci=(e,t,r)=>e+(t-e)*r,ru=e=>{var{from:t,to:r}=e;return t!==r},rh=(e,t,r)=>{var n=vn((i,a)=>{if(ru(a)){var[o,u]=e(a.from,a.to,a.velocity);return te(te({},a),{},{from:o,velocity:u})}return a},t);return r<1?vn((i,a)=>ru(a)&&n[i]!=null?te(te({},a),{},{velocity:Ci(a.velocity,n[i].velocity,r),from:Ci(a.from,n[i].from,r)}):a,t):rh(e,n,r-1)};function O1(e,t,r,n,i,a){var o,u=n.reduce((d,v)=>te(te({},d),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>vn((d,v)=>v.from,u),s=()=>!Object.values(u).filter(ru).length,c=null,f=d=>{o||(o=d);var v=d-o,h=v/r.dt;u=rh(r,u,h),i(te(te(te({},e),t),l())),o=d,s()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function A1(e,t,r,n,i,a,o){var u=null,l=i.reduce((f,d)=>{var v=e[d],h=t[d];return v==null||h==null?f:te(te({},f),{},{[d]:[v,h]})},{}),s,c=f=>{s||(s=f);var d=(f-s)/n,v=vn((m,y)=>Ci(...y,r(d)),l);if(a(te(te(te({},e),t),v)),d<1)u=o.setTimeout(c);else{var h=vn((m,y)=>Ci(...y,r(1)),l);a(te(te(te({},e),t),h))}};return()=>(u=o.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}const _1=(e,t,r,n,i,a)=>{var o=b1(e,t);return r==null?()=>(i(te(te({},e),t)),()=>{}):r.isStepper===!0?O1(e,t,r,o,i,a):A1(e,t,r,n,o,i,a)};var Ei=1e-4,nh=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],ih=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Uc=(e,t)=>r=>{var n=nh(e,t);return ih(n,r)},S1=(e,t)=>r=>{var n=nh(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return ih(i,r)},C1=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},E1=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=C1(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},k1=(e,t,r,n)=>{var i=Uc(e,r),a=Uc(t,n),o=S1(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var c=s>1?1:s,f=c,d=0;d<8;++d){var v=i(f)-c,h=o(f);if(Math.abs(v-c)<Ei||h<Ei)return a(f);f=u(f-v/h)}return a(f)};return l.isStepper=!1,l},Wc=function(){return k1(...E1(...arguments))},I1=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,l)=>{var s=-(o-u)*r,c=l*n,f=l+(s-c)*i/1e3,d=l*i/1e3+o;return Math.abs(d-u)<Ei&&Math.abs(f)<Ei?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},M1=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Wc(e);case"spring":return I1();default:if(e.split("(")[0]==="cubic-bezier")return Wc(e)}return typeof e=="function"?e:null};function T1(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[l,...s]=u;if(typeof l=="number"){i=e.setTimeout(a.bind(null,s),l);return}a(l),i=e.setTimeout(a.bind(null,s));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class D1{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function N1(){return T1(new D1)}var j1=p.createContext(N1);function R1(e,t){var r=p.useContext(j1);return p.useMemo(()=>t??r(e),[e,t,r])}var $1={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Kc={t:0},fo={t:1};function L1(e){var t=nr(e,$1),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=l1(),f=r==="auto"?!En.isSsr&&!c:r,d=R1(t.animationId,t.animationManager),[v,h]=p.useState(f?Kc:fo),m=p.useRef(null);return p.useEffect(()=>{f||h(fo)},[f]),p.useEffect(()=>{if(!f||!n)return Tr;var y=_1(Kc,fo,M1(a),i,h,d.getTimeoutController()),g=()=>{m.current=y()};return d.start([l,o,g,i,u]),()=>{d.stop(),m.current&&m.current(),u()}},[f,n,i,a,o,l,u,d]),s(v.t)}function z1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=p.useRef(on(t)),n=p.useRef(e);return n.current!==e&&(r.current=on(t),n.current=e),r.current}function qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qc(Object(r),!0).forEach(function(n){F1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F1(e,t,r){return(t=B1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B1(e){var t=U1(e,"string");return typeof t=="symbol"?t:t+""}function U1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vc=Math.PI/180,W1=e=>e*180/Math.PI,Sr=(e,t,r,n)=>({x:e+Math.cos(-Vc*n)*r,y:t+Math.sin(-Vc*n)*r}),K1=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},q1=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},H1=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=q1({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,l=Math.acos(u);return n>a&&(l=2*Math.PI-l),{radius:o,angle:W1(l),angleInRadian:l}},V1=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},Y1=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},G1=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:a}=H1({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:l,endAngle:s}=V1(t),c=a,f;if(l<=s){for(;c>s;)c-=360;for(;c<l;)c+=360;f=c>=l&&c<=s}else{for(;c>l;)c-=360;for(;c<s;)c+=360;f=c>=s&&c<=l}return f?Hc(Hc({},t),{},{radius:i,angle:Y1(c,t)}):null},vo={},ho={},po={},Yc;function X1(){return Yc||(Yc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sv();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(po)),po}var Gc;function Z1(){return Gc||(Gc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X1();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(ho)),ho}var Xc;function Q1(){return Xc||(Xc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cv(),r=Z1();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const u=Math.max(Math.ceil((a-i)/(o||1)),0),l=new Array(u);for(let s=0;s<u;s++)l[s]=i,i+=o;return l}e.range=n})(vo)),vo}var mo,Zc;function J1(){return Zc||(Zc=1,mo=Q1().range),mo}var eP=J1();const ah=yn(eP);var qe=e=>e.chartData,el=A([qe],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ca=(e,t,r,n)=>n?el(e):qe(e),tP=(e,t,r)=>r?el(e):qe(e),rP=A([ca],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});A([el],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});var nP=A([qe],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});function Qe(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(L(t)&&L(r))return!0}return!1}function Qc(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function oh(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(L(r))i=r;else if(typeof r=="function")return;if(L(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Qe(o))return o}}function iP(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Qe(n))return Qc(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,u;if(i==="auto")t!=null&&(o=Math.min(...t));else if(j(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&dc.test(i)){var l=dc.exec(i);if(l==null||l[1]==null||t==null)o=void 0;else{var s=+l[1];o=t[0]-s}}else o=t?.[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(j(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t?.[1]))}catch{}else if(typeof a=="string"&&vc.test(a)){var c=vc.exec(a);if(c==null||c[1]==null||t==null)u=void 0;else{var f=+c[1];u=t[1]+f}}else u=t?.[1];var d=[o,u];if(Qe(d))return t==null?d:Qc(d,t,r)}}}function uh(e){var t;return e===0?t=1:t=Math.floor(new z(e).abs().log(10).toNumber())+1,t}function lh(e,t,r){for(var n=new z(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var sh=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},tl=(e,t,r)=>{if(e.lte(0))return new z(0);var n=uh(e.toNumber()),i=new z(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new z(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=u.mul(i);return t?new z(l.toNumber()):new z(Math.ceil(l.toNumber()))},ch=(e,t,r)=>{var n;if(e.lte(0))return new z(0);var i=[1,2,2.5,5],a=e.toNumber(),o=Math.floor(new z(a).abs().log(10).toNumber()),u=new z(10).pow(o),l=e.div(u).toNumber(),s=i.findIndex(v=>v>=l-1e-10);if(s===-1&&(u=u.mul(10),s=0),s+=r,s>=i.length){var c=Math.floor(s/i.length);s%=i.length,u=u.mul(new z(10).pow(c))}var f=(n=i[s])!==null&&n!==void 0?n:1,d=new z(f).mul(u);return t?d:new z(Math.ceil(d.toNumber()))},aP=(e,t,r)=>{var n=new z(1),i=new z(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new z(10).pow(uh(e)-1),i=new z(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new z(Math.floor(e)))}else e===0?i=new z(Math.floor((t-1)/2)):r||(i=new z(Math.floor(e)));for(var o=Math.floor((t-1)/2),u=[],l=0;l<t;l++)u.push(i.add(new z(l-o).mul(n)).toNumber());return u},fh=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:tl;if(!Number.isFinite((r-t)/(n-1)))return{step:new z(0),tickMin:new z(0),tickMax:new z(0)};var u=o(new z(r).sub(t).div(n-1),i,a),l;t<=0&&r>=0?l=new z(0):(l=new z(t).add(r).div(2),l=l.sub(new z(l).mod(u)));var s=Math.ceil(l.sub(t).div(u).toNumber()),c=Math.ceil(new z(r).sub(l).div(u).toNumber()),f=s+c+1;return f>n?fh(t,r,n,i,a+1,o):(f<n&&(c=r>0?c+(n-f):c,s=r>0?s:s+(n-f)),{step:u,tickMin:l.sub(new z(s).mul(u)),tickMax:l.add(new z(c).mul(u))})},Jc=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(i,2),[l,s]=sh([r,n]);if(l===-1/0||s===1/0){var c=s===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),s];return r>n?c.reverse():c}if(l===s)return aP(l,i,a);var f=o==="snap125"?ch:tl,{step:d,tickMin:v,tickMax:h}=fh(l,s,u,a,0,f),m=lh(v,h.add(new z(.1).mul(d)),d);return r>n?m.reverse():m},ef=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,l]=sh([n,i]);if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var s=o==="snap125"?ch:tl,c=Math.max(r,2),f=s(new z(l).sub(u).div(c-1),a,0),d=[...lh(new z(u),new z(l),f),l];return a===!1&&(d=d.map(v=>Math.round(v))),n>i?d.reverse():d},rI=e=>e.rootProps.maxBarSize,nI=e=>e.rootProps.barGap,oP=e=>e.rootProps.barCategoryGap,iI=e=>e.rootProps.barSize,fa=e=>e.rootProps.stackOffset,dh=e=>e.rootProps.reverseStackOrder,rl=e=>e.options.chartName,nl=e=>e.rootProps.syncId,vh=e=>e.rootProps.syncMethod,il=e=>e.options.eventEmitter,uP=e=>e.rootProps.baseValue,at={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Dt={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},He={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},da=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function al(e,t,r){if(r!=="auto")return r;if(e!=null)return it(e,t)?"category":"number"}function tf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tf(Object(r),!0).forEach(function(n){lP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lP(e,t,r){return(t=sP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sP(e){var t=cP(e,"string");return typeof t=="symbol"?t:t+""}function cP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rf={allowDataOverflow:Dt.allowDataOverflow,allowDecimals:Dt.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Dt.angleAxisId,includeHidden:!1,name:void 0,reversed:Dt.reversed,scale:Dt.scale,tick:Dt.tick,tickCount:void 0,ticks:void 0,type:Dt.type,unit:void 0,niceTicks:"auto"},nf={allowDataOverflow:He.allowDataOverflow,allowDecimals:He.allowDecimals,allowDuplicatedCategory:He.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:He.radiusAxisId,includeHidden:He.includeHidden,name:void 0,reversed:He.reversed,scale:He.scale,tick:He.tick,tickCount:He.tickCount,ticks:void 0,type:He.type,unit:void 0,niceTicks:"auto"},fP=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},ol=A([fP,Yv],(e,t)=>{var r;if(e!=null)return e;var n=(r=al(t,"angleAxis",rf.type))!==null&&r!==void 0?r:"category";return ki(ki({},rf),{},{type:n})}),dP=(e,t)=>e.polarAxis.radiusAxis[t],ul=A([dP,Yv],(e,t)=>{var r;if(e!=null)return e;var n=(r=al(t,"radiusAxis",nf.type))!==null&&r!==void 0?r:"category";return ki(ki({},nf),{},{type:n})}),va=e=>e.polarOptions,ll=A([mt,yt,he],K1),hh=A([va,ll],(e,t)=>{if(e!=null)return Gt(e.innerRadius,t,0)}),ph=A([va,ll],(e,t)=>{if(e!=null)return Gt(e.outerRadius,t,t*.8)}),vP=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},mh=A([va],vP);A([ol,mh],da);var yh=A([ll,hh,ph],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});A([ul,yh],da);var gh=A([G,va,hh,ph,mt,yt],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:l,endAngle:s}=t;return{cx:Gt(o,i,i/2),cy:Gt(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:s,clockWise:!1}}}),ue=(e,t)=>t,ha=(e,t,r)=>r;function sl(e){return e?.id}function bh(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var l,s=(l=u.data)!==null&&l!==void 0?l:n;if(!(s==null||s.length===0)){var c=sl(u);s.forEach((f,d)=>{var v=a==null||i?d:String(re(f,a,null)),h=re(f,u.dataKey,0),m;o.has(v)?m=o.get(v):m={},Object.assign(m,{[c]:h}),o.set(v,m)})}}),Array.from(o.values())}function cl(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var pa=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ma(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function hP(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var le=e=>{var t=G(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Dr=e=>e.tooltip.settings.axisId;function fl(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(a){function o(){return a.apply(this,arguments)}return o.toString=function(){return a.toString()},o})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var o=i[0],u=i[1];return o<=u?a>=o&&a<=u:a>=u&&a<=o},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,o)=>{var u=e(a);if(u!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var l=e.bandwidth();switch(o.position){case"middle":u+=l/2;break;case"end":u+=l;break}}return u}}}}}var pP=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Qe(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];L(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};const wh=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:hu,scaleDiverging:Hd,scaleDivergingLog:Vd,scaleDivergingPow:Nu,scaleDivergingSqrt:E0,scaleDivergingSymlog:Yd,scaleIdentity:Sd,scaleImplicit:To,scaleLinear:_d,scaleLog:Ed,scaleOrdinal:vu,scalePoint:py,scalePow:Au,scaleQuantile:Md,scaleQuantize:Td,scaleRadial:Id,scaleSequential:Ud,scaleSequentialLog:Wd,scaleSequentialPow:Du,scaleSequentialQuantile:qd,scaleSequentialSqrt:C0,scaleSequentialSymlog:Kd,scaleSqrt:lg,scaleSymlog:kd,scaleThreshold:Dd,scaleTime:_0,scaleUtc:S0,tickFormat:Ad},Symbol.toStringTag,{value:"Module"}));function mP(e){var t=wh;if(e in t&&typeof t[e]=="function")return t[e]();var r="scale".concat(zu(e));if(r in t&&typeof t[r]=="function")return t[r]()}function af(e,t,r){if(typeof e=="function")return e.copy().domain(t).range(r);if(e!=null){var n=mP(e);if(n!=null)return n.domain(t).range(r),n}}function dl(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?af(e.scale,r,n):af(t,r,n)}function yP(e){return"scale".concat(zu(e))}function gP(e){return yP(e)in wh}var xh=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string")return gP(n)?n:"point"}};function bP(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var a=Math.floor((r+n)/2);(i?e[a]<t:e[a]>t)?r=a+1:n=a}return r}function Ph(e,t){if(e){var r=t??e.domain(),n=r.map(a=>{var o;return(o=e(a))!==null&&o!==void 0?o:0}),i=e.range();if(!(r.length===0||i.length<2))return a=>{var o,u,l=bP(n,a);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var s=(o=n[l-1])!==null&&o!==void 0?o:0,c=(u=n[l])!==null&&u!==void 0?u:0;return Math.abs(a-s)<=Math.abs(a-c)?r[l-1]:r[l]}}}function wP(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):Ph(e,void 0)}function of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?of(Object(r),!0).forEach(function(n){xP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):of(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xP(e,t,r){return(t=PP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PP(e){var t=OP(e,"string");return typeof t=="symbol"?t:t+""}function OP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nu=[0,"auto"],ee={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},Oh=(e,t)=>e.cartesianAxis.xAxis[t],gt=(e,t)=>{var r=Oh(e,t);return r??ee},Ah={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:nu,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:An},AP=(e,t)=>e.cartesianAxis.yAxis[t],bt=(e,t)=>{var r=AP(e,t);return r??Ah},_P={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},vl=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??_P},xe=(e,t,r)=>{switch(t){case"xAxis":return gt(e,r);case"yAxis":return bt(e,r);case"zAxis":return vl(e,r);case"angleAxis":return ol(e,r);case"radiusAxis":return ul(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},SP=(e,t,r)=>{switch(t){case"xAxis":return gt(e,r);case"yAxis":return bt(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},kn=(e,t,r)=>{switch(t){case"xAxis":return gt(e,r);case"yAxis":return bt(e,r);case"angleAxis":return ol(e,r);case"radiusAxis":return ul(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},_h=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Sh(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Ch=e=>e.graphicalItems.cartesianItems,CP=A([ue,ha],Sh),Eh=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Nr=A([Ch,xe,CP],Eh,{memoizeOptions:{resultEqualityCheck:ma}}),kh=A([Nr],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(cl)),Ih=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),EP=A([Nr],Ih),Mh=e=>e.map(t=>t.data).filter(Boolean).flat(1),kP=A([Nr],e=>e.some(t=>!t.data)),Th=A([Nr],Mh,{memoizeOptions:{resultEqualityCheck:ma}}),Dh=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},hl=A([Th,ca],Dh),IP=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:re(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:re(i,n)}))):e.map(n=>({value:n})),Nh=(e,t,r,n,i,a)=>{var{chartData:o=[],dataStartIndex:u,dataEndIndex:l}=n,s=IP(e,t,r);if(i&&t?.dataKey!=null&&a.length>0){var c=o.slice(u,l+1),f=c.map(d=>({value:re(d,t.dataKey)})).filter(d=>d.value!=null);return[...f,...s]}return s},In=A([hl,xe,Nr,ca,kP,Th],Nh);function gr(e){if(Or(e)||e instanceof Date){var t=Number(e);if(L(t))return t}}function uf(e){if(Array.isArray(e)){var t=[gr(e[0]),gr(e[1])];return Qe(t)?t:void 0}var r=gr(e);if(r!=null)return[r,r]}function nt(e){return e.map(gr).filter(_e)}function MP(e,t){var r=gr(e),n=gr(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var TP=A([In],e=>e?.map(t=>t.value).sort(MP));function jh(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function DP(e,t,r){if(!r)return[];if(!r.length)return[];var n;if(typeof t=="number"&&!rt(t))n=t;else if(Array.isArray(t)){var i=nt(t);i.length>0&&(n=Math.max(...i))}return n==null?[]:nt(r.flatMap(a=>{var o=re(e,a.dataKey),u,l;if(Array.isArray(o)?[u,l]=o:u=l=o,!(!L(u)||!L(l)))return[n-u,n+l]}))}var se=e=>{var t=le(e),r=Dr(e);return kn(e,t,r)},Cr=A([se],e=>e?.dataKey),NP=A([kh,ca,se],bh),Rh=(e,t,r,n)=>{var i={},a=t.reduce((o,u)=>{if(u.stackId==null)return o;var l=o[u.stackId];return l==null&&(l=[]),l.push(u),o[u.stackId]=l,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[u,l]=o,s=n?[...l].reverse():l,c=s.map(sl);return[u,{stackedData:$w(e,c,r),graphicalItems:s}]}))},$h=A([NP,kh,fa,dh],Rh),Lh=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=Bw(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},jP=A([xe],e=>e.allowDataOverflow),pl=e=>{var t;if(e==null||!("domain"in e))return nu;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=nt(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:nu},zh=A([xe],pl),Fh=A([zh,jP],oh),RP=A([$h,qe,ue,Fh],Lh,{memoizeOptions:{resultEqualityCheck:pa}}),ml=e=>e.errorBars,$P=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>jh(r,n)),Mi=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),u=Math.max(...a);return[o,u]}},Bh=function(t,r,n,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u,l;if(n.length>0&&n.forEach(s=>{var c,f=s.data!=null?[...s.data]:o,d=(c=i[s.id])===null||c===void 0?void 0:c.filter(v=>jh(a,v));f.forEach(v=>{var h,m=re(v,(h=r.dataKey)!==null&&h!==void 0?h:s.dataKey),y=DP(v,m,d);if(y.length>=2){var g=Math.min(...y),x=Math.max(...y);(u==null||g<u)&&(u=g),(l==null||x>l)&&(l=x)}var b=uf(m);b!=null&&(u=u==null?b[0]:Math.min(u,b[0]),l=l==null?b[1]:Math.max(l,b[1]))})}),r?.dataKey!=null&&n.length===0&&t.forEach(s=>{var c=uf(re(s,r.dataKey));c!=null&&(u=u==null?c[0]:Math.min(u,c[0]),l=l==null?c[1]:Math.max(l,c[1]))}),L(u)&&L(l))return[u,l]},LP=A([hl,xe,EP,ml,ue,rP],Bh,{memoizeOptions:{resultEqualityCheck:pa}});function zP(e){var{value:t}=e;if(Or(t)||t instanceof Date)return t}var FP=(e,t,r)=>{var n=e.map(zP).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&ov(n))?ah(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},Uh=e=>e.referenceElements.dots,jr=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),BP=A([Uh,ue,ha],jr),Wh=e=>e.referenceElements.areas,UP=A([Wh,ue,ha],jr),Kh=e=>e.referenceElements.lines,WP=A([Kh,ue,ha],jr),qh=(e,t)=>{if(e!=null){var r=nt(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},KP=A(BP,ue,qh),Hh=(e,t)=>{if(e!=null){var r=nt(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},qP=A([UP,ue],Hh);function HP(e){var t;if(e.x!=null)return nt([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:nt(r)}function VP(e){var t;if(e.y!=null)return nt([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:nt(r)}var Vh=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?HP(n):VP(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},YP=A([WP,ue],Vh),GP=A(KP,YP,qP,(e,t,r)=>Mi(e,r,t)),Yh=(e,t,r,n,i,a,o,u)=>{if(r!=null)return r;var l=o==="vertical"&&u==="xAxis"||o==="horizontal"&&u==="yAxis",s=l?Mi(n,a,i):Mi(a,i);return iP(t,s,e.allowDataOverflow)},XP=A([xe,zh,Fh,RP,LP,GP,G,ue],Yh,{memoizeOptions:{resultEqualityCheck:pa}}),ZP=[0,1],Gh=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:l}=e,s=it(t,a);if(s&&u==null){var c;return ah(0,(c=r?.length)!==null&&c!==void 0?c:0)}return l==="category"?FP(n,e,s):i==="expand"&&!s?ZP:o}},yl=A([xe,G,hl,In,fa,ue,XP],Gh),Rr=A([xe,_h,rl],xh),Xh=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var i=pl(t),a=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&Qe(e)){if(a)return Jc(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return ef(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(a&&Qe(e))return Jc(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&Qe(e))return ef(e,t.tickCount,t.allowDecimals,"adaptive")}}},gl=A([yl,kn,Rr],Xh),Zh=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Qe(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],u=(i=r[0])!==null&&i!==void 0?i:0,l=t[1],s=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,u),Math.max(l,s)]}return t},QP=A([xe,yl,gl,ue],Zh),JP=A(In,xe,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(nt(e.map(f=>f.value))).sort((f,d)=>f-d),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var u=0;u<n.length-1;u++){var l=n[u],s=n[u+1];if(!(l==null||s==null)){var c=s-l;r=Math.min(r,c)}}return r/o}}),Qh=A(JP,G,oP,he,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!L(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=Gt(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),eO=(e,t,r)=>{var n=gt(e,t);return n==null||typeof n.padding!="string"?0:Qh(e,"xAxis",t,r,n.padding)},tO=(e,t,r)=>{var n=bt(e,t);return n==null||typeof n.padding!="string"?0:Qh(e,"yAxis",t,r,n.padding)},rO=A(gt,eO,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),nO=A(bt,tO,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),iO=A([he,rO,aa,ia,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),aO=A([he,G,nO,aa,ia,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Mn=(e,t,r,n)=>{var i;switch(t){case"xAxis":return iO(e,r,n);case"yAxis":return aO(e,r,n);case"zAxis":return(i=vl(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return mh(e);case"radiusAxis":return yh(e,r);default:return}},Jh=A([xe,Mn],da),oO=A([Rr,QP],pP),bl=A([xe,Rr,oO,Jh],dl),ep=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=it(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},wl=A([G,In,kn,ue],ep),ya=A([bl],fl);A([bl],wP);A([bl,TP],Ph);A([Nr,ml,ue],$P);function tp(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var ga=(e,t)=>t,ba=(e,t,r)=>r,uO=A(ra,ga,ba,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tp)),lO=A(na,ga,ba,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tp)),rp=(e,t)=>({width:e.width,height:t.height}),sO=(e,t)=>{var r=typeof t.width=="number"?t.width:An;return{width:r,height:e.height}},np=A(he,gt,rp),cO=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},fO=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},dO=A(yt,he,uO,ga,ba,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=rp(t,u);o==null&&(o=cO(t,n,e));var s=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(s)*l.height,o+=(s?-1:1)*l.height}),a}),vO=A(mt,he,lO,ga,ba,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=sO(t,u);o==null&&(o=fO(t,n,e));var s=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(s)*l.width,o+=(s?-1:1)*l.width}),a}),hO=(e,t)=>{var r=gt(e,t);if(r!=null)return dO(e,r.orientation,r.mirror)},pO=A([he,gt,hO,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),mO=(e,t)=>{var r=bt(e,t);if(r!=null)return vO(e,r.orientation,r.mirror)},aI=A([he,bt,mO,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),yO=A(he,bt,(e,t)=>{var r=typeof t.width=="number"?t.width:An;return{width:r,height:e.height}}),oI=(e,t,r)=>{switch(t){case"xAxis":return np(e,r).width;case"yAxis":return yO(e,r).height;default:return}},ip=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=it(e,n),l=t.map(c=>c.value),s=l.filter(c=>c!=null);if(o&&u&&a==="category"&&i&&ov(s))return l}},xl=A([G,In,xe,ue],ip),uI=A([G,SP,Rr,ya,xl,wl,Mn,gl,ue],(e,t,r,n,i,a,o,u,l)=>{if(t!=null){var s=it(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:a,duplicateDomain:i,isCategorical:s,niceTicks:u,range:o,realScaleType:r,scale:n}}}),gO=(e,t,r,n,i,a,o,u,l)=>{if(!(t==null||n==null)){var s=it(e,l),{type:c,ticks:f,tickCount:d}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,h=c==="category"&&n.bandwidth?n.bandwidth()/v:0;h=l==="angleAxis"&&a!=null&&a.length>=2?Ge(a[0]-a[1])*2*h:h;var m=f||i;return m?m.map((y,g)=>{var x=o?o.indexOf(y):y,b=n.map(x);return L(b)?{index:g,coordinate:b+h,value:y,offset:h}:null}).filter(_e):s&&u?u.map((y,g)=>{var x=n.map(y);return L(x)?{coordinate:x+h,value:y,index:g,offset:h}:null}).filter(_e):n.ticks?n.ticks(d).map((y,g)=>{var x=n.map(y);return L(x)?{coordinate:x+h,value:y,index:g,offset:h}:null}).filter(_e):n.domain().map((y,g)=>{var x=n.map(y);return L(x)?{coordinate:x+h,value:o?o[y]:y,index:g,offset:h}:null}).filter(_e)}},bO=A([G,kn,Rr,ya,gl,Mn,xl,wl,ue],gO),wO=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=it(e,o),{tickCount:l}=t,s=0;return s=o==="angleAxis"&&n?.length>=2?Ge(n[0]-n[1])*2*s:s,u&&a?a.map((c,f)=>{var d=r.map(c);return L(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(_e):r.ticks?r.ticks(l).map((c,f)=>{var d=r.map(c);return L(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(_e):r.domain().map((c,f)=>{var d=r.map(c);return L(d)?{coordinate:d+s,value:i?i[c]:c,index:f,offset:s}:null}).filter(_e)}},ap=A([G,kn,ya,Mn,xl,wl,ue],wO),op=A(xe,ya,(e,t)=>{if(!(e==null||t==null))return Ii(Ii({},e),{},{scale:t})}),xO=A([xe,Rr,yl,Jh],dl),PO=A([xO],fl);A((e,t,r)=>vl(e,r),PO,(e,t)=>{if(!(e==null||t==null))return Ii(Ii({},e),{},{scale:t})});var OO=A([G,ra,na],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),AO=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]};A([AO],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,i=e[0];for(var a of e){var o=Math.abs(a.coordinate-t);o<n&&(n=o,i=a)}return(r=i)===null||r===void 0?void 0:r.value}});var up=e=>e.options.defaultTooltipEventType,lp=e=>e.options.validateTooltipEventTypes;function sp(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Tn(e,t){var r=up(e),n=lp(e);return sp(t,r,n)}function lI(e){return R(t=>Tn(t,e))}var cp=(e,t)=>{var r,n=Number(t);if(!(rt(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},_O=e=>e.tooltip.settings,Ot={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},SO={itemInteraction:{click:Ot,hover:Ot},axisInteraction:{click:Ot,hover:Ot},keyboardInteraction:Ot,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},fp=ye({name:"tooltip",initialState:SO,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:H()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=je(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:H()},removeTooltipEntrySettings:{reducer(e,t){var r=je(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:H()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:CO,replaceTooltipEntrySettings:EO,removeTooltipEntrySettings:kO,setTooltipSettingsState:sI,setActiveMouseOverItemIndex:IO,mouseLeaveItem:cI,mouseLeaveChart:dp,setActiveClickItemIndex:fI,setMouseOverAxisIndex:vp,setMouseClickAxisIndex:MO,setSyncInteraction:Xr,setKeyboardInteraction:Ti}=fp.actions,TO=fp.reducer;function lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lf(Object(r),!0).forEach(function(n){DO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DO(e,t,r){return(t=NO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NO(e){var t=jO(e,"string");return typeof t=="symbol"?t:t+""}function jO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RO(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function $O(e){return e.index!=null}var hp=(e,t,r,n)=>{if(t==null)return Ot;var i=RO(e,t,r);if(i==null)return Ot;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if($O(i)){if(a)return Kn(Kn({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Kn(Kn({},Ot),{},{coordinate:i.coordinate})};function LO(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function zO(e,t){var r=LO(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function FO(e,t,r){if(r==null||t==null)return!0;var n=re(e,t);return n==null||!Qe(r)?!0:zO(n,r)}var Qr=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!L(a))return i;var o=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(o,Math.min(a,u)),s=t[l];return s==null||FO(s,r,n)?String(l):null},pp=(e,t,r,n,i,a,o)=>{if(a!=null){var u=o[0],l=u?.getPosition(a);if(l!=null)return l;var s=i?.[Number(a)];if(s)return r==="horizontal"?{x:s.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:s.coordinate}}},mp=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(n!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(o=>{var u;return((u=o.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},yp=e=>e.options.tooltipPayloadSearcher,$r=e=>e.tooltip;function sf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sf(Object(r),!0).forEach(function(n){BO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BO(e,t,r){return(t=UO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UO(e){var t=WO(e,"string");return typeof t=="symbol"?t:t+""}function WO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KO(e){if(typeof e=="string"||typeof e=="number")return e}function qO(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function HO(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function ff(e){if(typeof e=="string")return e}function VO(e){if(!(e==null||typeof e!="object")){var t="name"in e?KO(e.name):void 0,r="unit"in e?qO(e.unit):void 0,n="dataKey"in e?HO(e.dataKey):void 0,i="payload"in e?e.payload:void 0,a="color"in e?ff(e.color):void 0,o="fill"in e?ff(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:i,color:a,fill:o}}}function YO(e,t){return e??t}var gp=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:u,computedData:l,dataStartIndex:s,dataEndIndex:c}=r,f=[];return e.reduce((d,v)=>{var h,{dataDefinedOnItem:m,settings:y}=v,g=YO(m,u),x=Array.isArray(g)?Bv(g,s,c):g,b=(h=y?.dataKey)!==null&&h!==void 0?h:n,w=y?.nameKey,P;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&o==="axis"?P=uv(x,n,i):P=a(x,t,l,w),Array.isArray(P))P.forEach(S=>{var E,T,I=VO(S),M=I?.name,_=I?.dataKey,$=I?.payload,F=cf(cf({},y),{},{name:M,unit:I?.unit,color:(E=I?.color)!==null&&E!==void 0?E:y?.color,fill:(T=I?.fill)!==null&&T!==void 0?T:y?.fill});d.push(pc({tooltipEntrySettings:F,dataKey:_,payload:$,value:re($,_),name:M==null?void 0:String(M)}))});else{var O;d.push(pc({tooltipEntrySettings:y,dataKey:b,payload:P,value:re(P,b),name:(O=re(P,w))!==null&&O!==void 0?O:y?.name}))}return d},f)}},Pl=A([se,_h,rl],xh),GO=A([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),XO=A([le,Dr],Sh),ir=A([GO,se,XO],Eh,{memoizeOptions:{resultEqualityCheck:ma}}),ZO=A([ir],e=>e.filter(cl)),bp=A([ir],Mh,{memoizeOptions:{resultEqualityCheck:ma}}),QO=A([ir],e=>e.some(t=>!t.data)),Jt=A([bp,qe],Dh),JO=A([ZO,qe,se],bh),Ol=A([Jt,se,ir,qe,QO,bp],Nh),wp=A([se],pl),eA=A([se],e=>e.allowDataOverflow),xp=A([wp,eA],oh),tA=A([ir],e=>e.filter(cl)),rA=A([JO,tA,fa,dh],Rh),nA=A([rA,qe,le,xp],Lh),iA=A([ir],Ih),aA=A([Jt,se,iA,ml,le,nP],Bh,{memoizeOptions:{resultEqualityCheck:pa}}),oA=A([Uh,le,Dr],jr),uA=A([oA,le],qh),lA=A([Wh,le,Dr],jr),sA=A([lA,le],Hh),cA=A([Kh,le,Dr],jr),fA=A([cA,le],Vh),dA=A([uA,fA,sA],Mi),vA=A([se,wp,xp,nA,aA,dA,G,le],Yh),Er=A([se,G,Jt,Ol,fa,le,vA],Gh),hA=A([Er,se,Pl],Xh),pA=A([se,Er,hA,le],Zh),Pp=e=>{var t=le(e),r=Dr(e),n=!1;return Mn(e,t,r,n)},Op=A([se,Pp],da),mA=A([se,Pl,pA,Op],dl),yA=A([mA],fl),gA=A([G,Ol,se,le],ip),bA=A([G,Ol,se,le],ep),wA=(e,t,r,n,i,a,o,u)=>{if(t){var{type:l}=t,s=it(e,u);if(n){var c=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/c:0;return f=u==="angleAxis"&&i!=null&&i?.length>=2?Ge(i[0]-i[1])*2*f:f,s&&o?o.map((d,v)=>{var h=n.map(d);return L(h)?{coordinate:h+f,value:d,index:v,offset:f}:null}).filter(_e):n.domain().map((d,v)=>{var h=n.map(d);return L(h)?{coordinate:h+f,value:a?a[d]:d,index:v,offset:f}:null}).filter(_e)}}},It=A([G,se,Pl,yA,Pp,gA,bA,le],wA),Al=A([up,lp,_O],(e,t,r)=>sp(r.shared,e,t)),Ap=e=>e.tooltip.settings.trigger,_l=e=>e.tooltip.settings.defaultIndex,Dn=A([$r,Al,Ap,_l],hp),hn=A([Dn,Jt,Cr,Er],Qr),_p=A([It,hn],cp),xA=A([Dn],e=>{if(e)return e.dataKey}),PA=A([Dn],e=>{if(e)return e.graphicalItemId}),Sp=A([$r,Al,Ap,_l],mp),OA=A([mt,yt,G,he,It,_l,Sp],pp),AA=A([Dn,OA],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),_A=A([Dn],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),SA=A([Sp,hn,qe,Cr,_p,yp,Al],gp),CA=A([SA],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function df(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?df(Object(r),!0).forEach(function(n){EA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EA(e,t,r){return(t=kA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kA(e){var t=IA(e,"string");return typeof t=="symbol"?t:t+""}function IA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MA=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}},TA=(e,t,r,n)=>{var i=t.find(s=>s&&s.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return lr(lr(lr({},n),Sr(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:l}=n;return lr(lr(lr({},n),Sr(n.cx,n.cy,u,l)),{},{angle:l,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function DA(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var Cp=(e,t,r,n,i)=>{var a,o=(a=t?.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<o;u++){var l,s,c,f,d,v=u>0?(l=r[u-1])===null||l===void 0?void 0:l.coordinate:(s=r[o-1])===null||s===void 0?void 0:s.coordinate,h=(c=r[u])===null||c===void 0?void 0:c.coordinate,m=u>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,y=void 0;if(!(v==null||h==null||m==null))if(Ge(h-v)!==Ge(m-h)){var g=[];if(Ge(m-h)===Ge(i[1]-i[0])){y=m;var x=h+i[1]-i[0];g[0]=Math.min(x,(x+v)/2),g[1]=Math.max(x,(x+v)/2)}else{y=v;var b=m+i[1]-i[0];g[0]=Math.min(h,(b+h)/2),g[1]=Math.max(h,(b+h)/2)}var w=[Math.min(h,(y+h)/2),Math.max(h,(y+h)/2)];if(e>w[0]&&e<=w[1]||e>=g[0]&&e<=g[1]){var P;return(P=r[u])===null||P===void 0?void 0:P.index}}else{var O=Math.min(v,m),S=Math.max(v,m);if(e>(O+h)/2&&e<=(S+h)/2){var E;return(E=r[u])===null||E===void 0?void 0:E.index}}}else if(t)for(var T=0;T<o;T++){var I=t[T];if(I!=null){var M=t[T+1],_=t[T-1];if(T===0&&M!=null&&e<=(I.coordinate+M.coordinate)/2||T===o-1&&_!=null&&e>(I.coordinate+_.coordinate)/2||T>0&&T<o-1&&_!=null&&M!=null&&e>(I.coordinate+_.coordinate)/2&&e<=(I.coordinate+M.coordinate)/2)return I.index}}return-1},NA=()=>R(rl),Sl=(e,t)=>t,Ep=(e,t,r)=>r,Cl=(e,t,r,n)=>n,jA=A(It,e=>Uu(e,t=>t.coordinate)),El=A([$r,Sl,Ep,Cl],hp),kl=A([El,Jt,Cr,Er],Qr),RA=(e,t,r)=>{if(t!=null){var n=$r(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},kp=A([$r,Sl,Ep,Cl],mp),Di=A([mt,yt,G,he,It,Cl,kp],pp),dI=A([El,Di],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),$A=A([It,kl],cp),vI=A([kp,kl,qe,Cr,$A,yp,Sl],gp),hI=A([El,kl],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),LA=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&DA(e,o)){var u=Uw(e,t),l=Cp(u,a,i,r,n),s=MA(t,i,l,e);return{activeIndex:String(l),activeCoordinate:s}}},zA=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=G1(e,r);if(u){var l=Ww(u,t),s=Cp(l,o,a,n,i),c=TA(t,a,s,u);return{activeIndex:String(s),activeCoordinate:c}}}},FA=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?LA(e,t,n,i,a,o,u):zA(e,t,r,n,i,a,o)},BA=A(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),UA=A(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(at)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:hP}});function vf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(r),!0).forEach(function(n){WA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WA(e,t,r){return(t=KA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KA(e){var t=qA(e,"string");return typeof t=="symbol"?t:t+""}function qA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HA={},VA={zIndexMap:Object.values(at).reduce((e,t)=>hf(hf({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),HA)},YA=new Set(Object.values(at));function GA(e){return YA.has(e)}var Ip=ye({name:"zIndex",initialState:VA,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:H()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!GA(r)&&delete e.zIndexMap[r])},prepare:H()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:H()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:H()}}}),{registerZIndexPortal:XA,unregisterZIndexPortal:yo,registerZIndexPortalElement:ZA,unregisterZIndexPortalElement:QA}=Ip.actions,JA=Ip.reducer;function ar(e){var{zIndex:t,children:r}=e,n=Ax(),i=n&&t!==void 0&&t!==0,a=Le(),o=p.useRef(void 0),u=p.useRef(new Set),l=ve(),s=R(f=>BA(f,t,a));if(p.useLayoutEffect(()=>{if(!i){var f=u.current;f.forEach(v=>{l(yo({zIndex:v}))}),f.clear(),o.current=void 0;return}if(u.current.has(t)||(l(XA({zIndex:t})),u.current.add(t)),s){o.current=s;var d=u.current;d.forEach(v=>{v!==t&&(l(yo({zIndex:v})),d.delete(v))})}},[l,t,i,s]),p.useLayoutEffect(()=>{var f=u.current;return()=>{f.forEach(d=>{l(yo({zIndex:d}))}),f.clear()}},[l]),!i)return r;var c=s??o.current;return c?Mm.createPortal(r,c):null}var Mp=p.createContext(null),pI=()=>p.useContext(Mp),go={exports:{}},pf;function e_(){return pf||(pf=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,s,c){this.fn=l,this.context=s,this.once=c||!1}function a(l,s,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var v=new i(c,f||l,d),h=r?r+s:s;return l._events[h]?l._events[h].fn?l._events[h]=[l._events[h],v]:l._events[h].push(v):(l._events[h]=v,l._eventsCount++),l}function o(l,s){--l._eventsCount===0?l._events=new n:delete l._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],c,f;if(this._eventsCount===0)return s;for(f in c=this._events)t.call(c,f)&&s.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(c)):s},u.prototype.listeners=function(s){var c=r?r+s:s,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,v=f.length,h=new Array(v);d<v;d++)h[d]=f[d].fn;return h},u.prototype.listenerCount=function(s){var c=r?r+s:s,f=this._events[c];return f?f.fn?1:f.length:0},u.prototype.emit=function(s,c,f,d,v,h){var m=r?r+s:s;if(!this._events[m])return!1;var y=this._events[m],g=arguments.length,x,b;if(y.fn){switch(y.once&&this.removeListener(s,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,c),!0;case 3:return y.fn.call(y.context,c,f),!0;case 4:return y.fn.call(y.context,c,f,d),!0;case 5:return y.fn.call(y.context,c,f,d,v),!0;case 6:return y.fn.call(y.context,c,f,d,v,h),!0}for(b=1,x=new Array(g-1);b<g;b++)x[b-1]=arguments[b];y.fn.apply(y.context,x)}else{var w=y.length,P;for(b=0;b<w;b++)switch(y[b].once&&this.removeListener(s,y[b].fn,void 0,!0),g){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,c);break;case 3:y[b].fn.call(y[b].context,c,f);break;case 4:y[b].fn.call(y[b].context,c,f,d);break;default:if(!x)for(P=1,x=new Array(g-1);P<g;P++)x[P-1]=arguments[P];y[b].fn.apply(y[b].context,x)}}return!0},u.prototype.on=function(s,c,f){return a(this,s,c,f,!1)},u.prototype.once=function(s,c,f){return a(this,s,c,f,!0)},u.prototype.removeListener=function(s,c,f,d){var v=r?r+s:s;if(!this._events[v])return this;if(!c)return o(this,v),this;var h=this._events[v];if(h.fn)h.fn===c&&(!d||h.once)&&(!f||h.context===f)&&o(this,v);else{for(var m=0,y=[],g=h.length;m<g;m++)(h[m].fn!==c||d&&!h[m].once||f&&h[m].context!==f)&&y.push(h[m]);y.length?this._events[v]=y.length===1?y[0]:y:o(this,v)}return this},u.prototype.removeAllListeners=function(s){var c;return s?(c=r?r+s:s,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(go)),go.exports}var t_=e_();const r_=yn(t_);var pn=new r_,iu="recharts.syncEvent.tooltip",mf="recharts.syncEvent.brush",n_=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!rt(r))return e[r]}},i_={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},Tp=ye({name:"options",initialState:i_,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),a_=Tp.reducer,{createEventEmitter:o_}=Tp.actions;function u_(e){return e.tooltip.syncInteraction}var l_={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Dp=ye({name:"chartData",initialState:l_,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:yf,setDataStartEndIndexes:s_,setComputedData:mI}=Dp.actions,c_=Dp.reducer,f_=["x","y"];function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(r),!0).forEach(function(n){d_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d_(e,t,r){return(t=v_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_(e){var t=h_(e,"string");return typeof t=="symbol"?t:t+""}function h_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p_(e,t){if(e==null)return{};var r,n,i=m_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m_(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function y_(){var e=R(nl),t=R(il),r=ve(),n=R(vh),i=R(It),a=_n(),o=Zu(),u=R(l=>l.rootProps.className);p.useEffect(()=>{if(e==null)return Tr;var l=(s,c,f)=>{if(t!==f&&e===s){if(c.payload.active===!1){r(Xr({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(n==="index"){var d;if(o&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var v=c.payload.coordinate,{x:h,y:m}=v,y=p_(v,f_),{x:g,y:x,width:b,height:w}=c.payload.sourceViewBox,P=sr(sr({},y),{},{x:o.x+(b?(h-g)/b:0)*o.width,y:o.y+(w?(m-x)/w:0)*o.height});r(sr(sr({},c),{},{payload:sr(sr({},c.payload),{},{coordinate:P})}))}else r(c);return}if(i!=null){var O;if(typeof n=="function"){var S={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},E=n(i,S);O=i[E]}else n==="value"&&(O=i.find(Pe=>String(Pe.value)===c.payload.label));var{coordinate:T}=c.payload;if(T==null||o==null){r(Xr({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(O==null){r(Xr({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:I,y:M}=T,_=Math.min(I,o.x+o.width),$=Math.min(M,o.y+o.height),F={x:a==="horizontal"?O.coordinate:_,y:a==="horizontal"?$:O.coordinate},V=Xr({active:c.payload.active,coordinate:F,dataKey:c.payload.dataKey,index:String(O.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(V)}}};return pn.on(iu,l),()=>{pn.off(iu,l)}},[u,r,t,e,n,i,a,o])}function g_(){var e=R(nl),t=R(il),r=ve();p.useEffect(()=>{if(e==null)return Tr;var n=(i,a,o)=>{t!==o&&e===i&&r(s_(a))};return pn.on(mf,n),()=>{pn.off(mf,n)}},[r,t,e])}function b_(){var e=ve();p.useEffect(()=>{e(o_())},[e]),y_(),g_()}function yI(e,t,r,n,i,a){var o=R(h=>RA(h,e,t)),u=R(PA),l=R(il),s=R(nl),c=R(vh),f=R(u_),d=f?.sourceViewBox!=null,v=Zu();p.useEffect(()=>{if(!d&&s!=null&&l!=null){var h=Xr({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:v,graphicalItemId:u});pn.emit(iu,s,h,l)}},[d,r,o,u,i,n,l,s,c,a,v])}function w_(e,t,r){return(t=x_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x_(e){var t=P_(e,"string");return typeof t=="symbol"?t:t+""}function P_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class O_{constructor(t){w_(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bf(Object(r),!0).forEach(function(n){__(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function __(e,t,r){return(t=S_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S_(e){var t=C_(e,"string");return typeof t=="symbol"?t:t+""}function C_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E_={cacheSize:2e3,enableCache:!0},Np=A_({},E_),wf=new O_(Np.cacheSize),k_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},xf="recharts_measurement_span";function I_(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(u)}var Pf=(e,t)=>{try{var r=document.getElementById(xf);r||(r=document.createElement("span"),r.setAttribute("id",xf),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,k_,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Jr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||En.isSsr)return{width:0,height:0};if(!Np.enableCache)return Pf(t,r);var n=I_(t,r),i=wf.get(n);if(i)return i;var a=Pf(t,r);return wf.set(n,a),a},jp;function M_(e,t,r){return(t=T_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T_(e){var t=D_(e,"string");return typeof t=="symbol"?t:t+""}function D_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Of=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Af=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,N_=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,j_=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,R_={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},$_=["cm","mm","pt","pc","in","Q","px"];function L_(e){return $_.includes(e)}var hr="NaN";function z_(e,t){return e*R_[t]}class fe{static parse(t){var r,[,n,i]=(r=j_.exec(t))!==null&&r!==void 0?r:[];return n==null?fe.NaN:new fe(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,rt(t)&&(this.unit=""),r!==""&&!N_.test(r)&&(this.num=NaN,this.unit=""),L_(r)&&(this.num=z_(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new fe(NaN,""):new fe(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new fe(NaN,""):new fe(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new fe(NaN,""):new fe(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new fe(NaN,""):new fe(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return rt(this.num)}}jp=fe;M_(fe,"NaN",new jp(NaN,""));function Rp(e){if(e==null||e.includes(hr))return hr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=Of.exec(t))!==null&&r!==void 0?r:[],o=fe.parse(n??""),u=fe.parse(a??""),l=i==="*"?o.multiply(u):o.divide(u);if(l.isNaN())return hr;t=t.replace(Of,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,c,f,d]=(s=Af.exec(t))!==null&&s!==void 0?s:[],v=fe.parse(c??""),h=fe.parse(d??""),m=f==="+"?v.add(h):v.subtract(h);if(m.isNaN())return hr;t=t.replace(Af,m.toString())}return t}var _f=/\(([^()]*)\)/;function F_(e){for(var t=e,r;(r=_f.exec(t))!=null;){var[,n]=r;t=t.replace(_f,Rp(n))}return t}function B_(e){var t=e.replace(/\s+/g,"");return t=F_(t),t=Rp(t),t}function U_(e){try{return B_(e)}catch{return hr}}function bo(e){var t=U_(e.slice(5,-1));return t===hr?"":t}var W_=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],K_=["dx","dy","angle","className","breakAll"];function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},au.apply(null,arguments)}function Sf(e,t){if(e==null)return{};var r,n,i=q_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function q_(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var $p=/[ \f\n\r\t\v\u2028\u2029]+/,Lp=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];ae(t)||(r?i=t.toString().split(""):i=t.toString().split($p));var a=i.map(u=>({word:u,width:Jr(u,n).width})),o=r?0:Jr(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function zp(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function H_(e){return ae(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Fp=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:u}=a,l=i[i.length-1];if(l&&u!=null&&(t==null||n||l.width+u+r<Number(t)))l.words.push(o),l.width+=u+r;else{var s={words:[o],width:u};i.push(s)}return i},[]),Bp=e=>e.reduce((t,r)=>t.width>r.width?t:r),V_="…",Cf=(e,t,r,n,i,a,o,u)=>{var l=e.slice(0,t),s=Lp({breakAll:r,style:n,children:l+V_});if(!s)return[!1,[]];var c=Fp(s.wordsWithComputedWidth,a,o,u),f=c.length>i||Bp(c).width>Number(a);return[f,c]},Y_=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:l}=e,s=j(a),c=String(o),f=Fp(t,n,r,i);if(!s||i)return f;var d=f.length>a||Bp(f).width>Number(n);if(!d)return f;for(var v=0,h=c.length-1,m=0,y;v<=h&&m<=c.length-1;){var g=Math.floor((v+h)/2),x=g-1,[b,w]=Cf(c,x,l,u,a,n,r,i),[P]=Cf(c,g,l,u,a,n,r,i);if(!b&&!P&&(v=g+1),b&&P&&(h=g-1),!b&&P){y=w;break}m++}return y||f},Ef=e=>{var t=ae(e)?[]:e.toString().split($p);return[{words:t,width:void 0}]},G_=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!En.isSsr){var u,l,s=Lp({breakAll:a,children:n,style:i});if(s){var{wordsWithComputedWidth:c,spaceWidth:f}=s;u=c,l=f}else return Ef(n);return Y_({breakAll:a,children:n,maxLines:o,style:i},u,l,t,!!r)}return Ef(n)},Up="#808080",X_={angle:0,breakAll:!1,capHeight:"0.71em",fill:Up,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Il=p.forwardRef((e,t)=>{var r=nr(e,X_),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:l,textAnchor:s,verticalAnchor:c}=r,f=Sf(r,W_),d=p.useMemo(()=>G_({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:v,dy:h,angle:m,className:y,breakAll:g}=f,x=Sf(f,K_);if(!Or(n)||!Or(i)||d.length===0)return null;var b=Number(n)+(j(v)?v:0),w=Number(i)+(j(h)?h:0);if(!L(b)||!L(w))return null;var P;switch(c){case"start":P=bo("calc(".concat(o,")"));break;case"middle":P=bo("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:P=bo("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],S=d[0];if(l&&S!=null){var E=S.width,{width:T}=f;O.push("scale(".concat(j(T)&&j(E)?T/E:1,")"))}return m&&O.push("rotate(".concat(m,", ").concat(b,", ").concat(w,")")),O.length&&(x.transform=O.join(" ")),p.createElement("text",au({},St(x),{ref:t,x:b,y:w,className:de("recharts-text",y),textAnchor:s,fill:u.includes("url")?Up:u}),d.map((I,M)=>{var _=I.words.join(g?"":" ");return p.createElement("tspan",{x:b,dy:M===0?P:a,key:"".concat(_,"-").concat(M)},_)}))});Il.displayName="Text";function kf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kf(Object(r),!0).forEach(function(n){Z_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z_(e,t,r){return(t=Q_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q_(e){var t=J_(e,"string");return typeof t=="symbol"?t:t+""}function J_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eS=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:u,upperWidth:l,lowerWidth:s}=Xu(t),c=a,f=a+(l-s)/2,d=(c+f)/2,v=(l+s)/2,h=c+l/2,m=u>=0?1:-1,y=m*n,g=m>0?"end":"start",x=m>0?"start":"end",b=l>=0?1:-1,w=b*n,P=b>0?"end":"start",O=b>0?"start":"end",S=i;if(r==="top"){var E={x:c+l/2,y:o-y,horizontalAnchor:"middle",verticalAnchor:g};return S&&(E.height=Math.max(o-S.y,0),E.width=l),E}if(r==="bottom"){var T={x:f+s/2,y:o+u+y,horizontalAnchor:"middle",verticalAnchor:x};return S&&(T.height=Math.max(S.y+S.height-(o+u),0),T.width=s),T}if(r==="left"){var I={x:d-w,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"};return S&&(I.width=Math.max(I.x-S.x,0),I.height=u),I}if(r==="right"){var M={x:d+v+w,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return S&&(M.width=Math.max(S.x+S.width-M.x,0),M.height=u),M}var _=S?{width:v,height:u}:{};return r==="insideLeft"?Ve({x:d+w,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"},_):r==="insideRight"?Ve({x:d+v-w,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"},_):r==="insideTop"?Ve({x:c+l/2,y:o+y,horizontalAnchor:"middle",verticalAnchor:x},_):r==="insideBottom"?Ve({x:f+s/2,y:o+u-y,horizontalAnchor:"middle",verticalAnchor:g},_):r==="insideTopLeft"?Ve({x:c+w,y:o+y,horizontalAnchor:O,verticalAnchor:x},_):r==="insideTopRight"?Ve({x:c+l-w,y:o+y,horizontalAnchor:P,verticalAnchor:x},_):r==="insideBottomLeft"?Ve({x:f+w,y:o+u-y,horizontalAnchor:O,verticalAnchor:g},_):r==="insideBottomRight"?Ve({x:f+s-w,y:o+u-y,horizontalAnchor:P,verticalAnchor:g},_):r&&typeof r=="object"&&(j(r.x)||Yt(r.x))&&(j(r.y)||Yt(r.y))?Ve({x:a+Gt(r.x,v),y:o+Gt(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},_):Ve({x:h,y:o+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)},tS=["labelRef"],rS=["content"];function If(e,t){if(e==null)return{};var r,n,i=nS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nS(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mf(Object(r),!0).forEach(function(n){iS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iS(e,t,r){return(t=aS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aS(e){var t=oS(e,"string");return typeof t=="symbol"?t:t+""}function oS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ut.apply(null,arguments)}var Wp=p.createContext(null),uS=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:u}=e,l=p.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return p.createElement(Wp.Provider,{value:l},u)},Kp=()=>{var e=p.useContext(Wp),t=Zu();return e||(t?Xu(t):void 0)},lS=p.createContext(null),sS=()=>{var e=p.useContext(lS),t=R(gh);return e||t},cS=e=>{var{value:t,formatter:r}=e,n=ae(e.children)?t:e.children;return typeof r=="function"?r(n):n},qp=e=>e!=null&&typeof e=="function",fS=(e,t)=>{var r=Ge(t-e),n=Math.min(Math.abs(t-e),360);return r*n},dS=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:l,innerRadius:s,outerRadius:c,startAngle:f,endAngle:d,clockWise:v}=i,h=(s+c)/2,m=fS(f,d),y=m>=0?1:-1,g,x;switch(t){case"insideStart":g=f+y*a,x=v;break;case"insideEnd":g=d-y*a,x=!v;break;case"end":g=d+y*a,x=v;break;default:throw new Error("Unsupported position ".concat(t))}x=m<=0?x:!x;var b=Sr(u,l,h,g),w=Sr(u,l,h,g+(x?1:-1)*359),P="M".concat(b.x,",").concat(b.y,`
|